@arcgis/core 4.29.0-next.20240213 → 4.29.0-next.20240215
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/0b1b69ebd990f41353c1.js +1 -0
- package/assets/esri/core/workers/chunks/114d51dd75389b2a1fda.js +1 -0
- package/assets/esri/core/workers/chunks/{274e623323e24250ca46.js → 1594f06a2d7d9439c62e.js} +1 -1
- package/assets/esri/core/workers/chunks/1a25ba411b89e050fbb7.js +1 -0
- package/assets/esri/core/workers/chunks/1b8b502d8a675cde6720.js +1 -0
- package/assets/esri/core/workers/chunks/1bbbcd3cbf0bfa198f42.js +1 -0
- package/assets/esri/core/workers/chunks/{cc1c958aad790a44048b.js → 1ca28af7c516d8283bb0.js} +1 -1
- package/assets/esri/core/workers/chunks/1fa5c8af69a09a3730b3.js +1 -0
- package/assets/esri/core/workers/chunks/246cba9cd5cadba6be08.js +1 -0
- package/assets/esri/core/workers/chunks/{254b4ee3621bbe345bb1.js → 2a86b04442b1dca63c22.js} +1 -1
- package/assets/esri/core/workers/chunks/321caafd807c08c68d52.js +1 -0
- package/assets/esri/core/workers/chunks/38e82572f7abaf5a7ed9.js +1 -0
- package/assets/esri/core/workers/chunks/397f15b5bce6838db084.js +1 -0
- package/assets/esri/core/workers/chunks/{aeb3067160ce77692c3a.js → 47e6119be4a4a5ed640d.js} +1 -1
- package/assets/esri/core/workers/chunks/486f98d88d65f15131c3.js +1 -0
- package/assets/esri/core/workers/chunks/{49afeac45250b15b5f36.js → 48c6a9ed53cf4f9255b0.js} +1 -1
- package/assets/esri/core/workers/chunks/4dbdb729648eb1af08e6.js +1 -0
- package/assets/esri/core/workers/chunks/53678102f4d598dc32de.js +1 -0
- package/assets/esri/core/workers/chunks/5527bf305b5f3607befb.js +1 -0
- package/assets/esri/core/workers/chunks/586d90a0c6a0cb605fcc.js +1 -0
- package/assets/esri/core/workers/chunks/608be8ebf772aefc36a5.js +1 -0
- package/assets/esri/core/workers/chunks/639de796c2cbfb386a14.js +1 -0
- package/assets/esri/core/workers/chunks/65070fb591f6ef8313c3.js +1 -0
- package/assets/esri/core/workers/chunks/748d1a5f18d495eb5294.js +1 -0
- package/assets/esri/core/workers/chunks/{f5bc29159e821b89ca8e.js → 752082be991f1cc8558f.js} +1 -1
- package/assets/esri/core/workers/chunks/{eb2d6f1ee63b40ae0736.js → 774b655498289b1b36bb.js} +1 -1
- package/assets/esri/core/workers/chunks/{d5f06a7b0ea7951c8dd0.js → 77cedc1758ab427a232d.js} +1 -1
- package/assets/esri/core/workers/chunks/7e0031822b94d2477a21.js +1 -0
- package/assets/esri/core/workers/chunks/8044f34d295ec36aa3f1.js +1 -0
- package/assets/esri/core/workers/chunks/{c479831e94aae0c03125.js → 8c9fb2601488998013ba.js} +1 -1
- package/assets/esri/core/workers/chunks/9321d74b31e8e7323682.js +1 -0
- package/assets/esri/core/workers/chunks/94d72650d556fd0eecc3.js +1 -0
- package/assets/esri/core/workers/chunks/964405c552fb6a336c48.js +1 -0
- package/assets/esri/core/workers/chunks/9a758de08dfa57735879.js +1 -0
- package/assets/esri/core/workers/chunks/{f03d62ab7806b68d0b62.js → 9fbf61675e2a5374f754.js} +1 -1
- package/assets/esri/core/workers/chunks/a39d25b164c5a2822255.js +1 -0
- package/assets/esri/core/workers/chunks/aba1f7d4d6e04d9d81b0.js +1 -0
- package/assets/esri/core/workers/chunks/b3d562a546253c28cc91.js +1 -0
- package/assets/esri/core/workers/chunks/{e6dbf0a7b7b1cf64f23f.js → c538f5f8cfdbcc12c205.js} +1 -1
- package/assets/esri/core/workers/chunks/d88503c97cf39b2e9763.js +1 -0
- package/assets/esri/core/workers/chunks/d98d883776437de4fe2e.js +1 -0
- package/assets/esri/core/workers/chunks/{1c6914ded7db720f7bf7.js → daf6eab5dd198ca9a67b.js} +1 -1
- package/assets/esri/core/workers/chunks/e62f972f4f8cff0e9f30.js +1108 -0
- package/assets/esri/core/workers/chunks/{e4da908079417cc2f495.js → ee0c77889059815a31b2.js} +1 -1
- package/chunks/Precipitation.glsl.js +1 -1
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsPlanar.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/sphere.js +1 -1
- package/chunks/terrainUtilsPlanar.js +1 -1
- package/chunks/vec32.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/support/clipRay.js +1 -1
- package/geometry/support/lineSegment.js +1 -1
- package/geometry/support/meshUtils/bounds.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/ray.js +1 -1
- package/geometry/support/triangle.js +1 -1
- package/geometry/support/vector.js +1 -1
- package/interfaces.d.ts +18 -22
- package/layers/graphics/applyEditsUtils.js +1 -1
- package/layers/graphics/editingSupport.js +1 -1
- package/networks/Network.js +1 -1
- package/package.json +1 -1
- package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/defaultCIMValues.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/navigation/actions/Pan.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/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/support/measurementUtils.js +1 -1
- package/views/3d/animation/pointToPoint/Camera.js +1 -1
- package/views/3d/camera/constraintUtils/altitude.js +1 -1
- package/views/3d/camera/constraintUtils/common.js +1 -1
- package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/environment/CloudsParameters.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/MarsAtmosphere.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
- package/views/3d/interactive/editingTools/lineGraphicVisualElementUtils.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/extentUtils.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/support/Segment.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/uvUtils.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/global/ZoomController.js +1 -1
- package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/local/ZoomController.js +1 -1
- package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
- package/views/3d/state/controllers/momentum/PanPlanarMomentumController.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/cameraUtilsInternal.js +1 -1
- package/views/3d/support/dito.js +1 -1
- package/views/3d/support/intersectionUtils.js +1 -1
- package/views/3d/support/mathUtils.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/PointsOfInterest.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +9 -7
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceConstants.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
- package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.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/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/View.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/drawSurfaces.js +1 -1
- package/views/draw/support/surfaceCoordinateSystems.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/snapping/SnappingOptions.js +1 -1
- package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
- package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
- package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
- package/views/interactive/snapping/hints/PointSnappingHint.js +1 -1
- package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
- package/views/navigation/PanPlanarMomentumEstimator.js +1 -1
- package/views/navigation/gamepadAndKeyboardUtils.js +1 -1
- package/views/support/angularMeasurementUtils.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/components/FooterActions.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00b9e92f8df245a83921.js +0 -1
- package/assets/esri/core/workers/chunks/02ee044597c89c86b934.js +0 -1
- package/assets/esri/core/workers/chunks/05ebb9cec0e1826b283f.js +0 -1
- package/assets/esri/core/workers/chunks/131e3542af1209a6012a.js +0 -1
- package/assets/esri/core/workers/chunks/1c1c5c51c62799ec36a2.js +0 -1
- package/assets/esri/core/workers/chunks/2b7513fe57eca6cff7c3.js +0 -1
- package/assets/esri/core/workers/chunks/3129b4ee700ac9d7d41b.js +0 -1
- package/assets/esri/core/workers/chunks/39ddb17a37478cfc8699.js +0 -1
- package/assets/esri/core/workers/chunks/42ab9c282bb267c3db03.js +0 -1
- package/assets/esri/core/workers/chunks/43d31149dffdfbcc6295.js +0 -1
- package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +0 -1
- package/assets/esri/core/workers/chunks/50cdc59426ba859027e2.js +0 -1
- package/assets/esri/core/workers/chunks/56719b6faef5c8bd710b.js +0 -1
- package/assets/esri/core/workers/chunks/5dbb3ef6fdd25ac632ad.js +0 -1
- package/assets/esri/core/workers/chunks/61c4bb58ef9f2d99c75e.js +0 -1
- package/assets/esri/core/workers/chunks/63e27f0b4d8b3b471ec4.js +0 -1
- package/assets/esri/core/workers/chunks/75ebdb2665150bb78279.js +0 -1
- package/assets/esri/core/workers/chunks/784b6a8216b97440b180.js +0 -1
- package/assets/esri/core/workers/chunks/79d15189a0376c97e29e.js +0 -1
- package/assets/esri/core/workers/chunks/8d119dc0a92ad3612daa.js +0 -1
- package/assets/esri/core/workers/chunks/936d1815acb6b5d64c61.js +0 -1
- package/assets/esri/core/workers/chunks/968808e99f08677152cb.js +0 -1106
- package/assets/esri/core/workers/chunks/96d0dce206a456dcb481.js +0 -1
- package/assets/esri/core/workers/chunks/9f2579a20f6daab959b6.js +0 -1
- package/assets/esri/core/workers/chunks/a4b78e7523942719cc19.js +0 -1
- package/assets/esri/core/workers/chunks/a5babc10f47c24651d15.js +0 -1
- package/assets/esri/core/workers/chunks/aa3f59d61778796eebd2.js +0 -1
- package/assets/esri/core/workers/chunks/b05d70c34e32d34c681c.js +0 -1
- package/assets/esri/core/workers/chunks/b89f95c8513ff224cd98.js +0 -1
- package/assets/esri/core/workers/chunks/f392ac49879bf421469e.js +0 -1
- package/assets/esri/core/workers/chunks/f9e9675f1c2287231653.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2612],{13452:(e,t,r)=>{r.d(t,{c:()=>p});var s=r(41948),i=r(3856),n=r(40504),o=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(9968)),u=r(12552),c=r(4736);let d=class extends((0,i.q)(n.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.QJ)(this.value,this.unit,"milliseconds")}};(0,s._)([(0,l.G)(c.e,{nonNullable:!0})],d.prototype,"unit",void 0),(0,s._)([(0,a.qq)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,s._)([(0,u.c)("esri.TimeInterval")],d);const p=d},54792:(e,t,r)=>{r.d(t,{c:()=>n});var s=r(67432),i=r(9592);class n{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._observable=new i.n,this._items=new Set}get length(){return(0,s.am)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.am)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.am)(this._observable),yield*this._items}}},44247:(e,t,r)=>{async function s(e,t){const{WhereClause:s}=await Promise.all([r.e(3220),r.e(988)]).then(r.bind(r,63220));return s.create(e,t)}function i(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{_:()=>i,u:()=>s})},75824:(e,t,r)=>{r.d(t,{Md:()=>n,m0:()=>o,qG:()=>i});var s=r(39452);class i{}function n(e){return e instanceof s.C?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return n(e)?i.instance:e}i.instance=new s._C("Etc/UTC")},46448:(e,t,r)=>{r.d(t,{c:()=>u});var s=r(38912),i=r(10860),n=r(54792),o=r(13056),a=r(25512),l=r(38432);class u{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new n.c}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,s)=>{let n=!0;const o=e=>{(0,i.wp)(t.signal),n&&(n=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let n=0;n<e.length;++n){const a=e[n];(0,i.eW)(a)?this._clientPromises[n]=a.then((e=>(this._clients[n]=new l.default(e,t,this._ongoingJobsQueue),o(r),this._clients[n])),(()=>(o(s),null))):(this._clients[n]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[n]=Promise.resolve(this._clients[n]),o(r))}}))}broadcast(e,t,r){const s=new Array(this._clientPromises.length);for(let i=0;i<this._clientPromises.length;++i){const n=this._clientPromises[i];s[i]=n.then((s=>s?.invoke(e,t,r)))}return s}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,i.Uh)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.S)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const s=(0,i.qG)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,resolver:s});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return s.promise}createInvokeProxy(e){return(0,a.Y)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,s.Ip)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let s=0;s<this._clientPromises.length;++s)this._clientPromises[s].then((i=>{i&&(t[s]=i.openPort()),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},13056:(e,t,r)=>{r.d(t,{S:()=>n,s:()=>i});const s=new FinalizationRegistry((e=>{e.close()}));function i(e,t){s.register(e,t,t)}function n(e){s.unregister(e)}},35268:(e,t,r)=>{r.d(t,{eU:()=>G});var s=r(20744),i=r(9456),n=r(10860),o=r(46448),a=r(13056),l=r(38432),u=r(66360),c=r(70680),d=r(2600),p=r(28176);const h={async request(e,t){const r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,p.OO)(e.url)?.after?s:"array-buffer";const i=await(0,d.c)(e.url,r),n={data:i.data,httpStatus:i.httpStatus,ssl:i.ssl};switch(i.requestOptions?.responseType){case"native-request-init":return delete n.data.signal,n;case"blob":n.data=await n.data.arrayBuffer();break;case"json":n.data=(new TextEncoder).encode(JSON.stringify(n.data)).buffer;break;case"text":n.data=(new TextEncoder).encode(n.data).buffer}return{result:n,transferList:[n.data]}}};var m=r(31056),f=r(24832),y=r(6220),g=(r(2016),r(47620));const w={};var v=r(52324);class _{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class b{constructor(){this._dispatcher=new _,this._workerPostMessage({type:m.MessageType.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.o)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.o)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,m.mO)(e);if(t&&t.type===m.MessageType.OPEN){const{modulePath:e,jobId:r}=t;let s=await l.default.loadWorker(e);s||(s=await import(e));const i=l.default.connect(s);this._workerPostMessage({type:m.MessageType.OPENED,jobId:r,data:i})}}}var q=r(89960),x=r(69880);const F=()=>u.c.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:I}=m.MessageType;let E,O;const S="Failed to create Worker. Fallback to execute module in main thread";async function T(e){return new Promise((t=>{function r(i){const n=(0,m.mO)(i);n&&n.type===I&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),F().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new b).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)}))}let R=0;const{ABORT:P,INVOKE:k,OPEN:N,OPENED:j,RESPONSE:M}=m.MessageType;class C{static async create(e){const t=await async function(){if(!(0,i.c)("esri-workers"))return T(new b);if(!E&&!O)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,s)=>{if(t){if(t.aborted)return s(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:ABORT,jobId:n}),s(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:s}),self.postMessage({type:INVOKE,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n??s}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case OPEN:let n;function t(e){const o=n.connect(e);self.postMessage({type:OPENED,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case RESPONSE:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split('"{CONFIGURATION}"').join(`'${function(){let e;if(null!=y.default.default){const t={...y.default};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(y.default));e.assetsPath=(0,p.WM)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.WM)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,q.a8)(),e.has={"esri-csp-restrictions":(0,i.c)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,i.c)("esri-2d-update-debug"),"esri-2d-log-updating":(0,i.c)("esri-2d-log-updating"),"featurelayer-pbf":(0,i.c)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,i.c)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,i.c)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,i.c)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,i.c)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,i.c)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,i.c)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,i.c)("featurelayer-snapshot-enabled"),"esri-atomics":(0,i.c)("esri-atomics"),"esri-shared-array-buffer":(0,i.c)("esri-shared-array-buffer"),"esri-tiles-debug":(0,i.c)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,i.c)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,i.c)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.WM)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.WM)(e.workers.workerPath):e.workers.workerPath=(0,p.WM)((0,f.O)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=y.default.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=w.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,q.a8)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),s={buildDate:x.W,fullVersion:g.c1,revision:x.m};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}()}'`);E=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){O=e||{}}let e;if(E)try{e=new Worker(E,{name:"esri-worker-"+R++})}catch(t){F().warn(S,O),e=new b}else F().warn(S,O),e=new b;return T(e)}();return new C(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),u.c.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,m.EH)();return new Promise(((t,i)=>{const o={resolve:t,reject:i,abortHandle:(0,n.Ij)(r,(()=>{this._outJobs.delete(s),this._post({type:P,jobId:s})}))};this._outJobs.set(s,o),this._post({type:N,jobId:s,modulePath:e})}))}_onMessage(e){const t=(0,m.mO)(e);if(t)switch(t.type){case j:this._onOpenedMessage(t);break;case M:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case k:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:i}=e,o=i?new AbortController:null,a=this._inJobs,l=h[t];let u;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);u=l.call(null,s,{signal:o?o.signal:null})}catch(e){return void this._post({type:M,jobId:r,error:(0,m.O)(e)})}(0,n.eW)(u)?(a.set(r,{controller:o,promise:u}),u.then((e=>{a.has(r)&&(a.delete(r),this._post({type:M,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,n.mA)(e)||this._post({type:M,jobId:r,error:(0,m.O)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:M,jobId:r},u)}_onOpenedMessage(e){const{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,c.oR)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:i}=e,n=this._outJobs.get(t);n&&(this._outJobs.delete(t),(0,c.oR)(n.abortHandle),r?n.reject(s.c.fromJSON(JSON.parse(r))):n.resolve(i))}_post(e,t,r){return(0,m.E9)(this.worker,e,t,r)}}const U=(0,i.c)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,i.c)("workers-pool-size")):0;let A=(0,i.c)("esri-mobile")?Math.min(U,3):U;A||(A=(0,i.c)("safari")&&(0,i.c)("mac")?7:2);let D=0;const L=[];async function J(e,t){const r=new o.c,{registryTarget:s,...i}=t;return await r.open(e,i),s&&(0,a.s)(s,r),r}async function G(e,t={}){if("string"!=typeof e)throw new s.c("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,i.c)("host-webworker")&&!(0,i.c)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,n.wp)(t.signal);const s=t.client||r;return J([l.default.connect(r)],{...t,client:s})}if(await async function(){if(H)return H;W=new AbortController;const e=[];for(let t=0;t<A;t++){const r=C.create(t).then((e=>(L[t]=e,e)));e.push(r)}return H=Promise.all(e),H}(),(0,n.wp)(t.signal),"dedicated"===r){const r=D++%A;return J([await L[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,A);if(r<A){const s=new Array(r);for(let i=0;i<r;++i){const r=D++%A;s[i]=L[r].open(e,t)}return J(s,t)}}return J(L.map((r=>r.open(e,t))),t)}let W,H=null},77048:(e,t,r)=>{r.d(t,{C6:()=>d,FZ:()=>m,K:()=>v,K8:()=>l,MZ:()=>a,Qv:()=>f,Su:()=>i,UN:()=>_,WK:()=>n,WO:()=>h,WU:()=>o,eC:()=>c,is:()=>g,mK:()=>p,qe:()=>u,qy:()=>y,yK:()=>w});var s=r(95247);function i(e=_){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function n(e,t,r,s,n,o,a=i()){return a[0]=e,a[1]=t,a[2]=r,a[3]=s,a[4]=n,a[5]=o,a}function o(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new s.c(r?{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 a(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 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 u(e,t,r=0,s=t.length/3){let i=e[0],n=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<s;e++)i=Math.min(i,t[r+3*e]),n=Math.min(n,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=n,e[2]=o,e[3]=a,e[4]=l,e[5]=u}function c(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 d(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function p(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function h(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 m(e){return e?h(e,v):i(v)}function f(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 y(e,t,r,s,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=s,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(r){for(let s=0;s<e.length;s++)if(!r(e[s],t[s]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];i()},53440:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var s=r(41948),i=(r(60708),r(82692)),n=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624),r(24948),r(70236),r(37284)),o=r(26496),a=r(58820),l=r(28176),u=r(1580),c=r(53368),d=(r(72052),r(9456)),p=r(12552),h=r(18996),m=r(97492),f=r(81436),y=r(20744),g=r(95800),w=r(66360),v=r(10860),_=r(35268),b=r(17724),q=r(44808),x=r(59500),F=r(28484),I=r(95247);let E=class extends g.c{constructor(){super(...arguments),this._connection=null,this._workerHandler=null,this.capabilities=(0,b.G4)(!1,!1),this.type="wfs",this.refresh=(0,v.Cu)((async()=>{await this.load();const e={customParameters:this.layer.customParameters,maxRecordCount:this.layer.maxRecordCount,maxTotalRecordCount:this.layer.maxTotalRecordCount,maxPageCount:this.layer.maxPageCount},{extent:t}=await this._workerHandler.refresh(e);return t&&(this.sourceJSON.extent=t),{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:t})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,t);return x.c.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._workerHandler.queryFeatures(e?e.toJSON():void 0,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._workerHandler.queryFeatureCount(e?e.toJSON():void 0,t)}async queryObjectIds(e,t={}){return await this.load(t),this._workerHandler.queryObjectIds(e?e.toJSON():void 0,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._workerHandler.queryExtent(e?e.toJSON():void 0,t);return{count:r.count,extent:I.c.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._workerHandler.querySnapping(e,t)}async _createLoadOptions(e){const{url:t,customParameters:r,name:s,namespaceUri:i,fields:n,geometryType:o,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,swapXY:c}=this.layer,d="defaults"===this.layer.originOf("spatialReference")?void 0:this.layer.spatialReference;if(!t)throw new y.c("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,q.iO)(t,{customParameters:r,...e}));const p=["fields","geometryType","name","namespaceUri","swapXY"].some((e=>null==this.layer[e])),h=p?await(0,q.O8)(this.wfsCapabilities,s,i,{spatialReference:d,customParameters:r,signal:e?.signal}):{...(0,q.k1)(n??[]),geometryType:o,name:s,namespaceUri:i,spatialReference:d,swapXY:c},f=(0,q.oZ)(this.wfsCapabilities.readFeatureTypes(),h.name,h.namespaceUri),g=m.U.toJSON(h.geometryType),{operations:w}=this.wfsCapabilities,v=w.GetFeature.url,_=w.GetFeature.outputFormat;return{customParameters:r,featureType:f,fields:h.fields?.map((e=>e.toJSON()))??[],geometryField:h.geometryField,geometryType:g,getFeatureUrl:v,getFeatureOutputFormat:_,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,objectIdField:h.objectIdField,spatialReference:h.spatialReference?.toJSON(),swapXY:!!h.swapXY}}async _startWorker(e){const[t,r]=await(0,v.Dv)([this._createLoadOptions(e),(0,_.eU)("WFSSourceWorker",{...e,strategy:(0,d.c)("feature-layers-workers")?"dedicated":"local",registryTarget:this})]),s=t.error||r.error||null,i=r.value||null;if(s)throw i&&i.close(),s;const n=t.value;this._connection=r.value,this._workerHandler=this._connection.createInvokeProxy();const o=await this._workerHandler.load(n,e);for(const e of o.warnings)w.c.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});this.sourceJSON={dateFieldsTimeReference:{timeZoneIANA:F.Gw},extent:o.extent,fields:n.fields,geometryType:n.geometryType,objectIdField:n.objectIdField,geometryField:n.geometryField,drawingInfo:(0,b.w7)(n.geometryType),name:n.featureType.title,wfsInfo:{name:n.featureType.name,featureUrl:n.getFeatureUrl,maxFeatures:n.maxRecordCount,swapXY:n.swapXY,supportedSpatialReferences:n.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:n.featureType.namespaceUri}}}};(0,s._)([(0,u.qq)()],E.prototype,"capabilities",void 0),(0,s._)([(0,u.qq)({constructOnly:!0})],E.prototype,"layer",void 0),(0,s._)([(0,u.qq)()],E.prototype,"sourceJSON",void 0),(0,s._)([(0,u.qq)()],E.prototype,"type",void 0),(0,s._)([(0,u.qq)()],E.prototype,"wfsCapabilities",void 0),E=(0,s._)([(0,p.c)("esri.layers.graphics.sources.WFSSource")],E);var O,S=r(25216),T=r(28584),R=r(13116),P=r(66888),k=r(66576),N=r(30112),j=r(98768),M=r(26916),C=r(3116),U=r(19560),A=r(21488),D=r(600),L=r(81732),J=r(564),G=r(6168),W=r(34880),H=r(95776),z=r(65548),$=r(56156);const B=(0,L.l)();let Q=O=class extends((0,N.W)((0,T.G)((0,P.c)((0,R.w)((0,S.W)((0,U.u)((0,M.G)((0,C.I)((0,k.Y)((0,j.K)((0,o.U)(f.c)))))))))))){static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:s,geometryType:i,name:n,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:c,wfsCapabilities:d}=e;return new O({customParameters:t,fields:r,geometryField:s,geometryType:i,name:n,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:c,wfsCapabilities:d})}constructor(e){super(e),this.copyright=null,this.customParameters=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxRecordCount=3e3,this.maxPageCount=10,this.maxTotalRecordCount=2e5,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new E({layer:this}),this.spatialReference=$.c.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.version=void 0}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo","spatialReference","name","namespaceUri"],"service"),(0,J.Gi)(this.renderer,this.fieldsIndex),(0,J.Wc)(this.timeInfo,this.fieldsIndex)}))),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const s=e.filter((e=>e.name!==q.Av));this.geometryField&&s.unshift(new D.c({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,a.qQ)(r,s.map((e=>e.toJSON())),t)}get parsedUrl(){return(0,l.as)(this.url)}set renderer(e){(0,J.Gi)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,z.Ap)(this,e)}createQuery(){const e=new H.c;e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(H.c.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(H.c.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(H.c.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(H.c.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh();return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"capabilities",null),(0,s._)([(0,u.qq)({type:String})],Q.prototype,"copyright",void 0),(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"createQueryVersion",null),(0,s._)([(0,u.qq)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],Q.prototype,"customParameters",void 0),(0,s._)([(0,u.qq)((0,F.SM)("dateFieldsTimeReference"))],Q.prototype,"dateFieldsTimeZone",void 0),(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"defaultPopupTemplate",null),(0,s._)([(0,u.qq)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Q.prototype,"definitionExpression",void 0),(0,s._)([(0,u.qq)({type:String})],Q.prototype,"displayField",void 0),(0,s._)([(0,u.qq)(A.Kg)],Q.prototype,"elevationInfo",void 0),(0,s._)([(0,u.qq)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"featureUrl",void 0),(0,s._)([(0,u.qq)({type:[D.c],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],Q.prototype,"fields",void 0),(0,s._)([(0,h.G)("fields")],Q.prototype,"writeFields",null),(0,s._)([(0,u.qq)(B.fieldsIndex)],Q.prototype,"fieldsIndex",void 0),(0,s._)([(0,u.qq)({type:I.c,json:{name:"extent"}})],Q.prototype,"fullExtent",void 0),(0,s._)([(0,u.qq)()],Q.prototype,"geometryField",void 0),(0,s._)([(0,u.qq)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:m.U.read},write:{target:"layerDefinition.geometryType",writer:m.U.write,ignoreOrigin:!0},origins:{service:{read:m.U.read}}}})],Q.prototype,"geometryType",void 0),(0,s._)([(0,u.qq)({type:String})],Q.prototype,"id",void 0),(0,s._)([(0,u.qq)(A.Wu)],Q.prototype,"labelsVisible",void 0),(0,s._)([(0,u.qq)({type:[G.c],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:W.E},write:!0}})],Q.prototype,"labelingInfo",void 0),(0,s._)([(0,u.qq)(A.Uj)],Q.prototype,"legendEnabled",void 0),(0,s._)([(0,u.qq)({type:["show","hide"]})],Q.prototype,"listMode",void 0),(0,s._)([(0,u.qq)({type:String})],Q.prototype,"objectIdField",void 0),(0,s._)([(0,u.qq)({type:["WFS"]})],Q.prototype,"operationalLayerType",void 0),(0,s._)([(0,u.qq)({type:c.Ab,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"maxRecordCount",void 0),(0,s._)([(0,u.qq)({type:c.Ab})],Q.prototype,"maxPageCount",void 0),(0,s._)([(0,u.qq)({type:c.Ab})],Q.prototype,"maxTotalRecordCount",void 0),(0,s._)([(0,u.qq)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],Q.prototype,"mode",void 0),(0,s._)([(0,u.qq)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"name",void 0),(0,s._)([(0,u.qq)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"namespaceUri",void 0),(0,s._)([(0,u.qq)(A.ms)],Q.prototype,"opacity",void 0),(0,s._)([(0,u.qq)(B.outFields)],Q.prototype,"outFields",void 0),(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"parsedUrl",null),(0,s._)([(0,u.qq)(A.Ou)],Q.prototype,"popupEnabled",void 0),(0,s._)([(0,u.qq)({type:i.c,json:{name:"popupInfo",write:!0}})],Q.prototype,"popupTemplate",void 0),(0,s._)([(0,u.qq)({types:n.U,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:n.Q,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],Q.prototype,"renderer",null),(0,s._)([(0,u.qq)(A.Q9)],Q.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"source",void 0),(0,s._)([(0,u.qq)({type:$.c,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],Q.prototype,"spatialReference",void 0),(0,s._)([(0,u.qq)({readOnly:!0,type:[c.Ab],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"spatialReferences",void 0),(0,s._)([(0,u.qq)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"swapXY",void 0),(0,s._)([(0,u.qq)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],Q.prototype,"title",void 0),(0,s._)([(0,u.qq)({json:{read:!1},readOnly:!0})],Q.prototype,"type",void 0),(0,s._)([(0,u.qq)(A.qW)],Q.prototype,"url",void 0),(0,s._)([(0,u.qq)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"version",void 0),(0,s._)([(0,u.qq)()],Q.prototype,"wfsCapabilities",null),Q=O=(0,s._)([(0,p.c)("esri.layers.WFSLayer")],Q);const Z=Q},34888:(e,t,r)=>{r.d(t,{ED:()=>i,_M:()=>s});class s{constructor(e=null,t={},r,s){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=s,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new s(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new s(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function i(e){return!!e.geometry?.coords?.length}},85152:(e,t,r)=>{r.d(t,{c:()=>s});class s{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,i,n]=e,o=i-t,a=n-r;return new s([5],[t,r,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];for(let r=0;r<s;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=s}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let s=0;for(const e of r){for(let r=1;r<e;r++)t[2*(s+r)]+=t[2*(s+r)-2],t[2*(s+r)+1]+=t[2*(s+r)-1];s+=e}return e}clone(e){if(0===this.lengths.length)return new s([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new s(this.lengths,e,this.hasIndeterminateRingOrder)):new s(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},13136:(e,t,r)=>{r.d(t,{u:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},17724:(e,t,r)=>{r.d(t,{G4:()=>p,GA:()=>c,QD:()=>d,w7:()=>a});var s=r(9456),i=r(62088),n=r(13136),o=r(9504);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.qe:"esriGeometryPolyline"===e?o.MZ:o.yq}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,s.c)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.ct)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.u,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},13116:(e,t,r)=>{r.d(t,{w:()=>O});var s,i=r(41948),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552)),a=r(20744),l=r(40504),u=r(58820),c=r(24676),d=r(60708),p=r(25228),h=r(14628),m=r(62088),f=r(95776);const y=new h.O({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new h.O({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=s=class extends l.am{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:s,timeExtent:i,objectIds:n,units:o,distance:a}=this;return new f.c({geometry:(0,m.ct)(r),objectIds:(0,m.ct)(n),spatialRelationship:s,timeExtent:(0,m.ct)(i),where:t,units:o,distance:a,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:i,objectIds:n,units:o,distance:a}=this;return new s({geometry:(0,m.ct)(t),objectIds:(0,m.ct)(n),spatialRelationship:r,timeExtent:(0,m.ct)(i),where:e,units:o,distance:a})}};(0,i._)([(0,n.qq)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,i._)([(0,n.qq)({types:d.Su,json:{write:!0}})],w.prototype,"geometry",void 0),(0,i._)([(0,n.qq)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,i._)([(0,n.qq)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,i._)([(0,n.qq)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,i._)([(0,n.qq)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,i._)([(0,n.qq)({type:p.c,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=s=(0,i._)([(0,o.c)("esri.layers.support.FeatureFilter")],w);const v=w;var _;const b={read:{reader:c.gH},write:{writer:c.GA,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},q={read:{reader:c.gH},write:{writer:c.GA,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},x={name:"showExcludedLabels",default:!0};let F=_=class extends l.am{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new a.c("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new a.c("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new _({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,i._)([(0,n.qq)({type:v,json:{write:{allowNull:!0,writer(e,t,r,s){const i=e?.write({},s);i&&0!==Object.keys(i).length?(0,u.qQ)(r,i,t):(0,u.qQ)(r,null,t)}}}})],F.prototype,"filter",void 0),(0,i._)([(0,n.qq)({json:{write:!0,origins:{"web-map":b,"portal-item":b}}})],F.prototype,"includedEffect",void 0),(0,i._)([(0,n.qq)({json:{write:!0,origins:{"web-map":q,"portal-item":q}}})],F.prototype,"excludedEffect",void 0),(0,i._)([(0,n.qq)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":x,"portal-item":x}}})],F.prototype,"excludedLabelsVisible",void 0),F=_=(0,i._)([(0,o.c)("esri.layers.support.FeatureEffect")],F);const I=F,E={write:{allowNull:!0}},O=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,i._)([(0,n.qq)({type:I,json:{origins:{"web-map":E,"portal-item":E}}})],t.prototype,"featureEffect",void 0),t=(0,i._)([(0,o.c)("esri.layers.mixins.FeatureEffectLayer")],t),t}},30112:(e,t,r)=>{r.d(t,{W:()=>c});var s=r(41948),i=r(58820),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552)),a=r(35968);function l(e,t,r){if(!e)return null;const s=e.find((e=>!!e.field));if(!s)return null;const i=new a.c;return i.read(s,r),[i]}function u(e,t,r,s){const n=e.find((e=>!!e.field));n&&(0,i.qQ)(r,[n.toJSON()],t)}const c=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,n.qq)({type:[a.c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:l},write:{target:"layerDefinition.orderBy",writer:u}}})],t.prototype,"orderBy",void 0),t=(0,s._)([(0,o.c)("esri.layers.mixins.OrderedLayer")],t),t}},19560:(e,t,r)=>{r.d(t,{u:()=>p});var s=r(41948),i=r(25228),n=r(13452),o=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),l=r(12552),u=r(564),c=r(99336),d=r(4736);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const s=r.timeOffset,i=d.e.fromJSON(r.timeOffsetUnits);return s&&i?new n.c({value:s,unit:i}):null}set timeInfo(e){(0,u.Wc)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,s._)([(0,o.qq)({type:i.c,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,s._)([(0,o.qq)({type:n.c})],t.prototype,"timeOffset",void 0),(0,s._)([(0,a.E)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,s._)([(0,o.qq)({value:null,type:c.c,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,s._)([(0,o.qq)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,s._)([(0,l.c)("esri.layers.mixins.TemporalLayer")],t),t}},16424:(e,t,r)=>{r.d(t,{c:()=>p});var s=r(20744),i=r(40504),n=r(66360),o=r(86916),a=r(75824),l=r(564),u=r(28484),c=r(39452);const d=new Map;class p{static fromJSON(e){return new p(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new p(e.fields??[],y(e))}static fromLayerJSON(e){return new p(e.fields??[],y(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,s=m(t);if(t&&s){const i=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(s,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.Mz)(e)||(0,l.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.Mz)(e)||(0,l.w1)(e)||e.nullable||void 0!==(0,l.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.c.getLogger("esri.layers.support.FieldsIndex").error(new s.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.Gw):f.has(t.type)?u.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.OI?a.qG.instance:t===u.Gw?c.Kq.utcInstance:(0,o.wJ)(d,t,(()=>c._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,i.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function m(e){return(0,l.gP)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function y(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:s,editFieldsInfo:i}=e,n=(s?"startField"in s?s.startField:s.startTimeField:"")??"",o=(s?"endField"in s?s.endField:s.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.Mt)(e.dateFieldsTimeReference):null,l=i?function(e){return"timeZone"in e}(i)?i.timeZone??a:i.dateFieldsTimeReference?(0,u.Mt)(i.dateFieldsTimeReference):a??u.Gw:null,c=s?function(e){return"timeZone"in e}(s)?s.timeZone??a:s.timeReference?(0,u.Mt)(s.timeReference):a:null,d=new Map([[h(i?.creationDateField??""),l],[h(i?.editDateField??""),l],[h(n),c],[h(o),c]]);for(const{name:s,type:i}of e.fields)if(f.has(i))t.set(s,u.OI);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(s,null);else if(r)t.set(s,u.OI);else{const e=d.get(h(s??""))??a;t.set(s,e)}return t}},35968:(e,t,r)=>{r.d(t,{c:()=>d});var s,i=r(41948),n=r(14628),o=r(40504),a=r(1580),l=(r(9456),r(66360),r(72052),r(12552));const u=new n.O({asc:"ascending",desc:"descending"});let c=s=class extends o.am{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new s({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i._)([(0,a.qq)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i._)([(0,a.qq)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,i._)([(0,a.qq)({type:u.apiValues,json:{read:u.read,write:u.write}})],c.prototype,"order",void 0),c=s=(0,i._)([(0,l.c)("esri.layers.support.OrderByInfo")],c);const d=c},99336:(e,t,r)=>{r.d(t,{c:()=>f});var s=r(41948),i=r(25228),n=r(13452),o=r(3856),a=r(40504),l=r(1580),u=(r(9456),r(66360),r(72052),r(33600)),c=r(12552),d=r(18996),p=r(28484);function h(e,t){return n.c.fromJSON({value:e,unit:t})}let m=class extends((0,o.q)(a.am)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),s=new Date(t.timeExtent[1]);return new i.c({start:r,end:s})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,s._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,s._)([(0,l.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,s._)([(0,l.qq)({type:i.c,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,s._)([(0,u.E)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,s._)([(0,d.G)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,s._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,s._)([(0,l.qq)({type:n.c,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,s._)([(0,u.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,s._)([(0,d.G)("interval")],m.prototype,"writeInterval",null),(0,s._)([(0,l.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,s._)([(0,l.qq)((0,p.SM)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,s._)([(0,l.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,s._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),m=(0,s._)([(0,c.c)("esri.layers.support.TimeInfo")],m);const f=m},36408:(e,t,r)=>{r.d(t,{M:()=>s});const s=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},4144:(e,t,r)=>{r.d(t,{GC:()=>x,I5:()=>f,Wi:()=>g,Y$:()=>m,cF:()=>y,wf:()=>w,y6:()=>h});var s=r(88264);const i="__begin__",n="__end__",o=new RegExp(i,"ig"),a=new RegExp(n,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(n+"$","i"),c='"',d=c+" + ",p=" + "+c;function h(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=h(e.labelExpression),t.type="conventional"),t}function y(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(v);return t?.[1].trim()||null}(t.expression);case"arcade":return x(t.expression)}return null}function w(e){let t;return e?(t=(0,s.qq)(e,(e=>i+'$feature["'+e+'"]'+n)),t=l.test(t)?t.replace(l,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,d).replaceAll(a,p)):t='""',t}const v=/^\s*\{([^}]+)\}\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,q=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function x(e){if(!e)return null;let t=_.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=q.exec(e),t?t[2]:null)}},4736:(e,t,r)=>{r.d(t,{e:()=>s});const s=(0,r(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},59500:(e,t,r)=>{r.d(t,{c:()=>v});var s,i=r(41948),n=r(60708),o=r(6444),a=r(14628),l=r(40504),u=r(62088),c=r(1580),d=(r(9456),r(66360),r(33600)),p=r(12552),h=r(18996),m=r(56156),f=r(6704),y=r(600);const g=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=s=class extends l.am{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=m.c.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const i=e[t],n=o.c.fromJSON(i),a=i.geometry?.spatialReference;null==n.geometry||a||(n.geometry.spatialReference=r);const l=i.aggregateGeometries,u=n.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],s=l[e],i=s?.spatialReference;null==t||i||(t.spatialReference=r)}s.push(n)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,f.h4)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=m.c.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,u.ct)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e?.[r];s.geometry=t?.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,i]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,i],scale:[n,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*n+s),(e=>i-e*o),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,i;const n=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===s&&o===i||(n.push([e-s,o-i]),s=e,i=o)}else s=t(a[0]),i=r(a[1]),n.push([s,i])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,f.Cs)(e)?e.rings:e.paths,i=[];for(let e=0,n=s.length;e<n;e++){const n=s[e],o=this._quantizePoints(n,t,r);o&&i.push(o)}return i.length>0?((0,f.Cs)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Cs)(e)?e.rings:e.paths;let o,a;for(let e=0,s=n.length;e<s;e++){const s=n[e];for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}}if(s&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=i(r[3])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,a;for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=r(a)}if(s&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2]),t[3]=i(t[3])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,c.qq)({type:[o.c],json:{write:!0}})],w.prototype,"features",void 0),(0,i._)([(0,d.E)("features")],w.prototype,"readFeatures",null),(0,i._)([(0,c.qq)({type:[y.c],json:{write:!0}})],w.prototype,"fields",void 0),(0,i._)([(0,c.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i._)([(0,h.G)("geometryType")],w.prototype,"writeGeometryType",null),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i._)([(0,c.qq)({types:n.Su,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i._)([(0,d.E)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i._)([(0,c.qq)({type:m.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i._)([(0,h.G)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i._)([(0,c.qq)({json:{write:!0}})],w.prototype,"transform",void 0),w=s=(0,i._)([(0,p.c)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const v=w}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8772,8792,8136,8648],{44247:(e,t,r)=>{async function i(e,t){const{WhereClause:i}=await Promise.all([r.e(3220),r.e(988)]).then(r.bind(r,63220));return i.create(e,t)}function s(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{_:()=>s,u:()=>i})},75824:(e,t,r)=>{r.d(t,{Md:()=>n,m0:()=>o,qG:()=>s});var i=r(39452);class s{}function n(e){return e instanceof i.C?e===s.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return n(e)?s.instance:e}s.instance=new i._C("Etc/UTC")},77048:(e,t,r)=>{r.d(t,{C6:()=>c,FZ:()=>h,K:()=>q,K8:()=>l,MZ:()=>a,Qv:()=>f,Su:()=>s,UN:()=>v,WK:()=>n,WO:()=>y,WU:()=>o,eC:()=>p,is:()=>g,mK:()=>d,qe:()=>u,qy:()=>m,yK:()=>w});var i=r(95247);function s(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function n(e,t,r,i,n,o,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=o,a}function o(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.c(r?{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 a(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 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 u(e,t,r=0,i=t.length/3){let s=e[0],n=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)s=Math.min(s,t[r+3*e]),n=Math.min(n,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=n,e[2]=o,e[3]=a,e[4]=l,e[5]=u}function p(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 c(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function d(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function y(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 h(e){return e?y(e,q):s(q)}function f(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 m(e,t,r,i,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const q=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];s()},20324:(e,t,r)=>{r.r(t),r.d(t,{default:()=>te});var i=r(41948),s=r(2600),n=r(3856),o=r(2952),a=r(20744),l=r(26496),u=r(10860),p=r(28176),c=r(1580),d=(r(9456),r(66360)),y=(r(72052),r(12552)),h=r(81436),f=r(38912),m=r(11004),g=r(86916),w=r(25216),q=r(3116),v=r(21488),b=r(83928),_=r(35968),x=r(54872),F=r(9764),I=r(76160);class S{constructor(e,t){this.objectId=e,this.itemSource=t,this.count=0,this.layer=null,this.sortValue=void 0}}const R=new m.o(20,(e=>e.destroy()));let T=class extends((0,q.I)((0,w.W)((0,l.U)(h.c)))){constructor(e){super(e),this._oidToReference=new Map,this._layerToReference=new Map,this._portals=new Map,this.layers=new o.c,this.maximumVisibleSublayers=10,this.opacity=1,this.title="Layers In View",this.type="catalog-dynamic-group",this.visible=!0}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}get _orderBy(){return this.parent.orderBy?.find((e=>!e.valueExpression&&e.field))??new _.c({field:this.parent.objectIdField})}get _referenceComparator(){const e=this._orderBy,t=this.parent.fieldsIndex.get(e.field),r=(0,I.rZ)(t?.toJSON().type,"descending"===e.order);return(e,t)=>r(e.sortValue,t.sortValue)||e.objectId-e.objectId}acquireLayer(e){const t=e.getObjectId(),r=(0,g.wJ)(this._oidToReference,t,(()=>this._createLayerReference(e)));return r.count++,(0,f.uU)((()=>{r.count--,r.count||this._disposeLayerReference(r)}))}_createLayerReference(e){const t=e.getObjectId(),r=e.getAttribute(this.parent.itemSourceField),i=new S(t,r);if(R.get(r))return this._addLayer(R.pop(r),i,e),i;let s;try{s=JSON.parse(r)}catch(e){return d.c.getLogger(this).error(e),i}return this._createLayer(s).then((t=>{this.destroyed||0===i.count?(R.get(r)||R.put(i.itemSource,t),i.layer=null):this._addLayer(t,i,e)})).catch((()=>{})),i}_addLayer(e,t,r){this._layerToReference.set(e,t),t.sortValue=r.getAttribute(this._orderBy.field),t.layer=e,e.parent=this,this.layers.add(e),this.layers.sort(((e,t)=>this._referenceComparator(this._layerToReference.get(e),this._layerToReference.get(t))))}_disposeLayerReference(e){e.layer&&(this._layerToReference.delete(e.layer),this.layers.remove(e.layer),R.put(e.itemSource,e.layer)),this._oidToReference.delete(e.objectId)}async _createLayer(e){if(!function(e){return"object"==typeof e&&null!=e&&"itemId"in e&&"portalUrl"in e}(e))return new(await b.q.UnsupportedLayer());const{itemId:t,portalUrl:r}=e,i=(0,g.wJ)(this._portals,r,(()=>new x.c({url:r})));return h.c.fromPortalItem(new F.default({id:t,portal:i}))}};(0,i._)([(0,c.qq)()],T.prototype,"_orderBy",null),(0,i._)([(0,c.qq)()],T.prototype,"_referenceComparator",null),(0,i._)([(0,c.qq)({readOnly:!0})],T.prototype,"layers",void 0),(0,i._)([(0,c.qq)()],T.prototype,"maximumVisibleSublayers",void 0),(0,i._)([(0,c.qq)(v.o9)],T.prototype,"opacity",void 0),(0,i._)([(0,c.qq)({type:String,json:{name:"title",write:!0}})],T.prototype,"title",void 0),(0,i._)([(0,c.qq)({json:{read:!1}})],T.prototype,"type",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{name:"visibility",write:!0}})],T.prototype,"visible",void 0),T=(0,i._)([(0,y.c)("esri.layers.catalog.CatalogDynamicGroupLayer")],T);const j=T;var O=r(82692),E=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624),r(24948),r(70236),r(37284)),M=r(13116),C=r(6168),A=r(34880),N=r(65548);let L=class extends((0,q.I)((0,M.w)((0,w.W)((0,l.U)(h.c))))){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.opacity=1,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}get fields(){return this.parent.fields}get fieldsIndex(){return this.parent.fieldsIndex}get geometryType(){return this.parent.geometryType}get objectIdField(){return this.parent.objectIdField}get orderBy(){return this.parent.orderBy}createPopupTemplate(e){const t={fields:this.parent.fields,objectIdField:this.parent.objectIdField,title:this.title};return(0,N.Ap)(t,e)}createQuery(){return this.parent.createQuery()}queryFeatures(e,t){return this.parent.queryFeatures(e,t)}};(0,i._)([(0,c.qq)({readOnly:!0})],L.prototype,"defaultPopupTemplate",null),(0,i._)([(0,c.qq)({type:[C.c],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:A.E,write:!0}})],L.prototype,"labelingInfo",void 0),(0,i._)([(0,c.qq)(v.Wu)],L.prototype,"labelsVisible",void 0),(0,i._)([(0,c.qq)(v.Uj)],L.prototype,"legendEnabled",void 0),(0,i._)([(0,c.qq)(v.o9)],L.prototype,"opacity",void 0),(0,i._)([(0,c.qq)(v.Ou)],L.prototype,"popupEnabled",void 0),(0,i._)([(0,c.qq)({type:O.c,json:{name:"popupInfo",write:!0}})],L.prototype,"popupTemplate",void 0),(0,i._)([(0,c.qq)({types:E.U,json:{name:"layerDefinition.drawingInfo.renderer"}})],L.prototype,"renderer",void 0),(0,i._)([(0,c.qq)({json:{read:!1}})],L.prototype,"type",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{name:"visibility",write:!0}})],L.prototype,"visible",void 0),L=(0,i._)([(0,y.c)("esri.layers.catalog.CatalogFootprintLayer")],L);const P=L;var G=r(50572),V=r(17724),D=r(38724),Q=r(16660),B=r(28584),z=r(36388),U=r(66576),Z=r(30112),J=r(98768),$=r(26916),W=r(19560),K=r(70388),k=r(81732),H=r(98984),Y=r(95776);const X=(0,k.l)();let ee=class extends((0,z.S)((0,w.W)((0,Z.W)((0,W.u)((0,q.I)((0,$.G)((0,Q.u)((0,U.Y)((0,J.K)((0,l.U)((0,B.G)((0,D.C)((0,n.q)(h.c)))))))))))))){constructor(e){super(e),this.dynamicGroupLayer=new j({parent:this}),this.fields=null,this.fieldsIndex=null,this.footprintLayer=new P({parent:this}),this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new o.c([this.dynamicGroupLayer,this.footprintLayer]),this.source=new G.default({layer:this}),this.type="catalog"}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(u.CE).then((async()=>{if(!this.url)throw new a.c("catalog-layer:missing-url","Catalog layer must be created with a url");if(this.url&&null==this.layerId){const e=await this._fetchFirstValidLayerId(t);if(null==e)throw new a.c("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:this.url});this.layerId=e}await this.source.load(),this.source.sourceJSON&&(this.sourceJSON=this.source.sourceJSON,this.read(this.source.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}))})).then((()=>(0,K.oh)(this,"load",e)));return this.addResolvingPromise(r),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get parsedUrl(){const e=(0,p.as)(this.url);return null!=e&&null!=this.layerId&&(e.path=(0,p.kn)(e.path,this.layerId.toString())),e}createQuery(){const e=new Y.c,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fieldsIndex.get(e)?.domain}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Y.c.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r.footprintLayer;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(Y.c.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(Y.c.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(Y.c.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,H.o)(this,e)}read(e,t){super.read(e,t);let r=e.footprintLayer;r||"service"!==t?.origin||(r={layerDefinition:{drawingInfo:(0,V.w7)(e.geometryType)}}),this.footprintLayer.read(r,t)}_fetchFirstValidLayerId(e){return(0,s.c)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return Array.isArray(t.layers)?t.layers.find((e=>"Catalog Layer"===e.type))?.id:void 0}))}};(0,i._)([(0,c.qq)({readOnly:!0})],ee.prototype,"createQueryVersion",null),(0,i._)([(0,c.qq)({...X.fields,json:{origins:{service:{name:"fields"}}}})],ee.prototype,"fields",void 0),(0,i._)([(0,c.qq)(X.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,i._)([(0,c.qq)({json:{read:!1,write:!1}})],ee.prototype,"footprintLayer",void 0),(0,i._)([(0,c.qq)()],ee.prototype,"itemSourceField",void 0),(0,i._)([(0,c.qq)()],ee.prototype,"itemTypeField",void 0),(0,i._)([(0,c.qq)()],ee.prototype,"layers",void 0),(0,i._)([(0,c.qq)({value:"CatalogLayer",type:["CatalogLayer"]})],ee.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.qq)()],ee.prototype,"outFields",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],ee.prototype,"parsedUrl",null),(0,i._)([(0,c.qq)()],ee.prototype,"source",void 0),(0,i._)([(0,c.qq)({json:{read:!1}})],ee.prototype,"type",void 0),ee=(0,i._)([(0,y.c)("esri.layers.CatalogLayer")],ee);const te=ee},85152:(e,t,r)=>{r.d(t,{c:()=>i});class i{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,s,n]=e,o=s-t,a=n-r;return new i([5],[t,r,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const i=this.lengths[r];for(let r=0;r<i;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=i}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let i=0;for(const e of r){for(let r=1;r<e;r++)t[2*(i+r)]+=t[2*(i+r)-2],t[2*(i+r)+1]+=t[2*(i+r)-1];i+=e}return e}clone(e){if(0===this.lengths.length)return new i([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new i(this.lengths,e,this.hasIndeterminateRingOrder)):new i(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},38724:(e,t,r)=>{r.d(t,{C:()=>o});var i=r(41948),s=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,s.qq)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,n.c)("esri.layers.mixins.APIKeyMixin")],t),t}},16660:(e,t,r)=>{r.d(t,{u:()=>l});var i=r(41948),s=r(66360),n=r(1580),o=(r(9456),r(72052),r(12552)),a=r(48212);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.K0)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.oR)(e,s.c.getLogger(this)))}};return(0,i._)([(0,n.qq)()],t.prototype,"title",null),(0,i._)([(0,n.qq)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,o.c)("esri.layers.mixins.ArcGISService")],t),t}},13116:(e,t,r)=>{r.d(t,{w:()=>R});var i,s=r(41948),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552)),a=r(20744),l=r(40504),u=r(58820),p=r(24676),c=r(60708),d=r(25228),y=r(14628),h=r(62088),f=r(95776);const m=new y.O({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new y.O({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=i=class extends l.am{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:s,objectIds:n,units:o,distance:a}=this;return new f.c({geometry:(0,h.ct)(r),objectIds:(0,h.ct)(n),spatialRelationship:i,timeExtent:(0,h.ct)(s),where:t,units:o,distance:a,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:s,objectIds:n,units:o,distance:a}=this;return new i({geometry:(0,h.ct)(t),objectIds:(0,h.ct)(n),spatialRelationship:r,timeExtent:(0,h.ct)(s),where:e,units:o,distance:a})}};(0,s._)([(0,n.qq)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,s._)([(0,n.qq)({types:c.Su,json:{write:!0}})],w.prototype,"geometry",void 0),(0,s._)([(0,n.qq)({type:m.apiValues,json:{name:"spatialRel",read:{reader:m.read},write:{allowNull:!1,writer:m.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,s._)([(0,n.qq)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,s._)([(0,n.qq)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,s._)([(0,n.qq)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,s._)([(0,n.qq)({type:d.c,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=i=(0,s._)([(0,o.c)("esri.layers.support.FeatureFilter")],w);const q=w;var v;const b={read:{reader:p.gH},write:{writer:p.GA,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},_={read:{reader:p.gH},write:{writer:p.GA,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},x={name:"showExcludedLabels",default:!0};let F=v=class extends l.am{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new a.c("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new a.c("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,s._)([(0,n.qq)({type:q,json:{write:{allowNull:!0,writer(e,t,r,i){const s=e?.write({},i);s&&0!==Object.keys(s).length?(0,u.qQ)(r,s,t):(0,u.qQ)(r,null,t)}}}})],F.prototype,"filter",void 0),(0,s._)([(0,n.qq)({json:{write:!0,origins:{"web-map":b,"portal-item":b}}})],F.prototype,"includedEffect",void 0),(0,s._)([(0,n.qq)({json:{write:!0,origins:{"web-map":_,"portal-item":_}}})],F.prototype,"excludedEffect",void 0),(0,s._)([(0,n.qq)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":x,"portal-item":x}}})],F.prototype,"excludedLabelsVisible",void 0),F=v=(0,s._)([(0,o.c)("esri.layers.support.FeatureEffect")],F);const I=F,S={write:{allowNull:!0}},R=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,s._)([(0,n.qq)({type:I,json:{origins:{"web-map":S,"portal-item":S}}})],t.prototype,"featureEffect",void 0),t=(0,s._)([(0,o.c)("esri.layers.mixins.FeatureEffectLayer")],t),t}},30112:(e,t,r)=>{r.d(t,{W:()=>p});var i=r(41948),s=r(58820),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552)),a=r(35968);function l(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const s=new a.c;return s.read(i,r),[s]}function u(e,t,r,i){const n=e.find((e=>!!e.field));n&&(0,s.qQ)(r,[n.toJSON()],t)}const p=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,n.qq)({type:[a.c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:l},write:{target:"layerDefinition.orderBy",writer:u}}})],t.prototype,"orderBy",void 0),t=(0,i._)([(0,o.c)("esri.layers.mixins.OrderedLayer")],t),t}},600:(e,t,r)=>{r.d(t,{c:()=>m});var i,s=r(41948),n=r(14628),o=r(40504),a=r(1580),l=r(53368),u=(r(72052),r(9456),r(9968)),p=r(33600),c=r(12552),d=r(89812),y=r(36408);const h=new n.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=i=class extends o.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,s._)([(0,a.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,s._)([(0,a.qq)()],f.prototype,"description",void 0),(0,s._)([(0,p.E)("description")],f.prototype,"readDescription",null),(0,s._)([(0,a.qq)({types:d.i2,json:{read:{reader:d.h4},write:!0}})],f.prototype,"domain",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,s._)([(0,a.qq)({type:l.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,s._)([(0,u.G)(y.M)],f.prototype,"type",void 0),(0,s._)([(0,a.qq)()],f.prototype,"valueType",void 0),(0,s._)([(0,p.E)("valueType",["description"])],f.prototype,"readValueType",null),(0,s._)([(0,a.qq)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,s._)([(0,c.c)("esri.layers.support.Field")],f);const m=f},16424:(e,t,r)=>{r.d(t,{c:()=>d});var i=r(20744),s=r(40504),n=r(66360),o=r(86916),a=r(75824),l=r(564),u=r(28484),p=r(39452);const c=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],m(e))}static fromLayerJSON(e){return new d(e.fields??[],m(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=h(t);if(t&&i){const s=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(i,e),r.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.Mz)(e)||(0,l.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.Mz)(e)||(0,l.w1)(e)||e.nullable||void 0!==(0,l.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(h(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.c.getLogger("esri.layers.support.FieldsIndex").error(new i.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.Gw):f.has(t.type)?u.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.OI?a.qG.instance:t===u.Gw?p.Kq.utcInstance:(0,o.wJ)(c,t,(()=>p._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,s.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function h(e){return(0,l.gP)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function m(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:s}=e,n=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.Mt)(e.dateFieldsTimeReference):null,l=s?function(e){return"timeZone"in e}(s)?s.timeZone??a:s.dateFieldsTimeReference?(0,u.Mt)(s.dateFieldsTimeReference):a??u.Gw:null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??a:i.timeReference?(0,u.Mt)(i.timeReference):a:null,c=new Map([[y(s?.creationDateField??""),l],[y(s?.editDateField??""),l],[y(n),p],[y(o),p]]);for(const{name:i,type:s}of e.fields)if(f.has(s))t.set(i,u.OI);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(i,null);else if(r)t.set(i,u.OI);else{const e=c.get(y(i??""))??a;t.set(i,e)}return t}},24144:(e,t,r)=>{r.d(t,{c:()=>p});var i,s=r(41948),n=r(2952),o=r(40504),a=r(1580),l=(r(9456),r(66360),r(72052),r(12552));let u=i=class extends o.am{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.c}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,s._)([(0,a.qq)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,s._)([(0,a.qq)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=i=(0,s._)([(0,l.c)("esri.layers.support.LayerFloorInfo")],u);const p=u},35968:(e,t,r)=>{r.d(t,{c:()=>c});var i,s=r(41948),n=r(14628),o=r(40504),a=r(1580),l=(r(9456),r(66360),r(72052),r(12552));const u=new n.O({asc:"ascending",desc:"descending"});let p=i=class extends o.am{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],p.prototype,"valueExpression",void 0),(0,s._)([(0,a.qq)({type:u.apiValues,json:{read:u.read,write:u.write}})],p.prototype,"order",void 0),p=i=(0,s._)([(0,l.c)("esri.layers.support.OrderByInfo")],p);const c=p},89812:(e,t,r)=>{r.d(t,{h4:()=>F,i2:()=>x}),r(9456);var i,s=r(41948),n=r(62088),o=r(1580),a=(r(66360),r(9968)),l=r(12552),u=r(40504);r(72052);let p=i=class extends u.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,s._)([(0,o.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,s._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],p.prototype,"code",void 0),p=i=(0,s._)([(0,l.c)("esri.layers.support.CodedValue")],p);const c=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.am{constructor(e){super(e),this.name=null,this.type=null}};(0,s._)([(0,o.qq)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,a.G)(c)],d.prototype,"type",void 0),d=(0,s._)([(0,l.c)("esri.layers.support.Domain")],d);const y=d;var h;let f=h=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,n.ct)(this.codedValues),name:this.name})}};(0,s._)([(0,o.qq)({type:[p],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,s._)([(0,a.G)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=h=(0,s._)([(0,l.c)("esri.layers.support.CodedValueDomain")],f);const m=f;var g;r(20744);let w=g=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,s._)([(0,a.G)({inherited:"inherited"})],w.prototype,"type",void 0),w=g=(0,s._)([(0,l.c)("esri.layers.support.InheritedDomain")],w);const q=w;var v;let b=v=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],b.prototype,"maxValue",void 0),(0,s._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],b.prototype,"minValue",void 0),(0,s._)([(0,a.G)({range:"range"})],b.prototype,"type",void 0),b=v=(0,s._)([(0,l.c)("esri.layers.support.RangeDomain")],b);const _=b,x={key:"type",base:y,typeMap:{range:b,"coded-value":m,inherited:q}};function F(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return q.fromJSON(e)}return null}},70388:(e,t,r)=>{r.d(t,{wj:()=>q,cV:()=>_,ig:()=>V,i:()=>Q,cJ:()=>C,WC:()=>F,oh:()=>G,s1:()=>I,sD:()=>w,wl:()=>z,yo:()=>M,gx:()=>B,Q1:()=>S,iq:()=>j,YL:()=>T,W2:()=>R,ms:()=>O,UN:()=>E,Y9:()=>A,qY:()=>N,Ce:()=>L,kd:()=>b,Wm:()=>x});var i=r(47620),s=r(17988),n=r(40196),o=r(20744),a=r(14628),l=r(44247),u=r(64408),p=r(95776);async function c(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=d(e));const i=function(e){return d(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),s=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let n=null;for(;;){const o=await e.source.queryFeaturesJSON(t,r);if(null==n?n=o:n.features=n.features.concat(o.features),n.exceededTransferLimit=o.exceededTransferLimit,!s||!o.exceededTransferLimit)break;t.start+=i}return n}function d(e){return e.capabilities.query.supportsMaxRecordCountFactor?p.c.MAX_MAX_RECORD_COUNT_FACTOR:1}var y=r(71068),h=r(64624),f=r(24948),m=r(19212),g=r(18648);const w=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function q(e,t,r,i){const s=await P(e);if(await v(e,t,i),!s.addAttachment)throw new o.c(i,"Layer source does not support addAttachment capability");return s.addAttachment(t,r)}function v(e,t,r){const{attributes:i}=t,{objectIdField:s}=e;return e.capabilities?.data?.supportsAttachment?t?i?s&&i[s]?Promise.resolve():Promise.reject(new o.c(r,`feature is missing the identifying attribute ${s}`)):Promise.reject(new o.c(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.c(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.c(r,"this layer doesn't support attachments"))}async function b(e,t,r,i,s){const n=await P(e);if(await v(e,t,s),!n.updateAttachment)throw new o.c(s,"Layer source does not support updateAttachment capability");return n.updateAttachment(t,r,i)}async function _(e,t,i){const{applyEdits:s}=await r.e(2768).then(r.bind(r,62768)),n=await e.load(),{source:o,globalIdField:a}=n;let l=i;return("feature"===n.type?n.infoFor3D:null)&&null!=t.deleteFeatures&&null!=a&&(l={...l,globalIdToObjectId:await z(e,t.deleteFeatures,a)}),s(n,o,t,i)}async function x(e,t,i){const{uploadAssets:s}=await r.e(2768).then(r.bind(r,62768)),n=await e.load();return s(n,n.source,t,i)}async function F(e,t,r,i){const s=await P(e);if(await v(e,t,i),!s.deleteAttachments)throw new o.c(i,"Layer source does not support deleteAttachments capability");return s.deleteAttachments(t,r)}async function I(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new o.c(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function S(e,t,r,i){t=m.c.from(t),await e.load();const s=e.source,n=e.capabilities;if(!n?.data?.supportsAttachment)throw new o.c(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:p,size:c,start:d,where:y}=t;if(!n?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||c?.length>0||p||d||y))throw new o.c(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||y))throw new o.c(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!s.queryAttachments)throw new o.c(i,"Layer source does not support queryAttachments capability",t);return s.queryAttachments(t)}async function R(e,t,r,i){const s=await P(e);if(!s.queryObjectIds)throw new o.c(i,"Layer source does not support queryObjectIds capability");return s.queryObjectIds(p.c.from(t)??e.createQuery(),r)}async function T(e,t,r,i){const s=await P(e);if(!s.queryFeatureCount)throw new o.c(i,"Layer source does not support queryFeatureCount capability");return s.queryFeatureCount(p.c.from(t)??e.createQuery(),r)}async function j(e,t,r,i){const s=await P(e);if(!s.queryExtent)throw new o.c(i,"Layer source does not support queryExtent capability");return s.queryExtent(p.c.from(t)??e.createQuery(),r)}async function O(e,t,r,i){const s=await P(e);if(!s.queryRelatedFeatures)throw new o.c(i,"Layer source does not support queryRelatedFeatures capability");return s.queryRelatedFeatures(g.default.from(t),r)}async function E(e,t,r,i){const s=await P(e);if(!s.queryRelatedFeaturesCount)throw new o.c(i,"Layer source does not support queryRelatedFeaturesCount capability");return s.queryRelatedFeaturesCount(g.default.from(t),r)}async function M(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.u)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function C(e){const t=new p.c,r=e.capabilities?.data,i=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:s,timeExtent:n}=e;return t.timeExtent=null!=s&&null!=n?n.offset(-s.value,s.unit):n||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function A(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function N(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function L(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function P(e){return(await e.load()).source}async function G(e,t,r){const s=e.parsedUrl?.path;s&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const s=await(0,y.mK)(e,t);s&&(r=await i.id.checkSignInStatus(`${s}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(s,r)}function V(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const D=(0,u.g)({types:s.IX});function Q(e,t){if(e.defaultSymbol)return e.types?.length?new f.c({defaultSymbol:D(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:D(e.symbol,e,t)})))}):new h.c({symbol:D(e.defaultSymbol,e,t)})}function B(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function z(e,t,r){if(null==t)return null;const i=[],{objectIdField:s}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:i}=e;t={globalId:i[r],objectId:null!=i[s]&&-1!==i[s]?i[s]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||i.push(t.globalId))})),0===i.length)return null;const o=e.createQuery();o.where=i.map((e=>`${r}='${e}'`)).join(" OR "),o.returnGeometry=!1,o.outFields=[s,r],o.cacheHint=!1;const a=await(0,n.SO)(c(e,o));if(!a.ok)return null;const l=new Map,u=a.value.features;for(const e of u){const t=e.attributes[r],i=e.attributes[s];null!=t&&null!=i&&-1!==i&&l.set(t,i)}return l}},81732:(e,t,r)=>{r.d(t,{l:()=>l});var i=r(9456),s=r(66360),n=r(600),o=r(16424),a=r(564);function l(){return{fields:{type:[n.c],value:null,set:function(e){if(e&&(0,i.c)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");s.c.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.c.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||s.c.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.OO)(this.fieldsIndex,e)}}}}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},4144:(e,t,r)=>{r.d(t,{GC:()=>x,I5:()=>f,Wi:()=>g,Y$:()=>h,cF:()=>m,wf:()=>w,y6:()=>y});var i=r(88264);const s="__begin__",n="__end__",o=new RegExp(s,"ig"),a=new RegExp(n,"ig"),l=new RegExp("^"+s,"i"),u=new RegExp(n+"$","i"),p='"',c=p+" + ",d=" + "+p;function y(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=y(e.labelExpression),t.type="conventional"),t}function m(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(q);return t?.[1].trim()||null}(t.expression);case"arcade":return x(t.expression)}return null}function w(e){let t;return e?(t=(0,i.qq)(e,(e=>s+'$feature["'+e+'"]'+n)),t=l.test(t)?t.replace(l,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(o,c).replaceAll(a,d)):t='""',t}const q=/^\s*\{([^}]+)\}\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,_=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function x(e){if(!e)return null;let t=v.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=_.exec(e),t?t[2]:null)}},54712:(e,t,r)=>{r.d(t,{S:()=>c});var i=r(9456),s=r(48212);function n(e,t,r){return!!a(e,t,r)}function o(e,t,r){return a(e,t,r)}function a(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function u(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function p(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function c(e,t){return{analytics:d(e),attachment:y(e),data:h(e),metadata:f(e),operations:m(e.capabilities,e,t),query:g(e,t),queryRelated:w(e),queryTopFeatures:q(e),editing:v(e)}}function d(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:p(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:n(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=l[e.name];t&&(r[t]=!!e.isEnabled)})),r}function h(e){return{isVersioned:n(e,"isDataVersioned",!1),supportsAttachment:n(e,"hasAttachments",!1),supportsM:n(e,"hasM",!1),supportsZ:n(e,"hasZ",!1)}}function f(e){return{supportsAdvancedFieldProperties:n(e,"supportsFieldDescriptionProperty",!1)}}function m(e,t,r){const i=e?e.toLowerCase().split(",").map((e=>e.trim())):[],o=r?(0,s.K0)(r):null,a=i.includes(null!=o&&"MapServer"===o.serverType?"data":"query"),l=i.includes("editing")&&!t.datesInUnknownTimezone;let u=l&&i.includes("create"),p=l&&i.includes("delete"),c=l&&i.includes("update");const d=i.includes("changetracking"),y=t.advancedQueryCapabilities;return l&&!(u||p||c)&&(u=p=c=!0),{supportsCalculate:n(t,"supportsCalculate",!1),supportsTruncate:n(t,"supportsTruncate",!1),supportsValidateSql:n(t,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:p,supportsEditing:l,supportsChangeTracking:d,supportsQuery:a,supportsQueryAnalytics:n(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:n(y,"supportsQueryAttachments",!1),supportsQueryTopFeatures:n(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:n(t,"supportsAttachmentsResizing",!1),supportsSync:i.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:n(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:n(t,"supportsAsyncConvert3D",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,l=e.archivingInfo,c=e.currentVersion,d=t?.includes("MapServer"),y=!d||c>=(0,i.c)("mapserver-pbf-version-support"),h=(0,s.Wq)(t),f=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:n(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:n(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:n(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:u(r),supportsCentroid:n(r,"supportsReturningGeometryCentroid",!1),supportsDistance:n(r,"supportsQueryWithDistance",!1),supportsDistinct:n(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:n(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:n(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:n(r,"supportsHavingClause",!1),supportsOrderBy:n(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:n(r,"supportsPagination",!1),supportsQuantization:n(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:n(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:n(e,"supportsReturningQueryGeometry",!1),supportsResultType:n(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:n(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:n(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:n(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:n(r,"supportsTopFeaturesQuery",!1),supportsQueryByAnonymous:n(a,"allowAnonymousToQuery",!0),supportsQueryByOthers:n(a,"allowOthersToQuery",!0),supportsHistoricMoment:n(l,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&f.has("pbf"),supportsDisjointSpatialRelationship:n(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:n(r,"supportsQueryWithCacheHint",!1)||p(r,"query"),supportsDefaultSpatialReference:n(r,"supportsDefaultSR",!1),supportsCompactGeometry:h,supportsFullTextSearch:n(r,"supportsFullTextSearch",!1),maxRecordCountFactor:o(e,"maxRecordCountFactor",void 0),maxRecordCount:o(e,"maxRecordCount",void 0),standardMaxRecordCount:o(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:o(e,"tileMaxRecordCount",void 0)}}function w(e){const t=e.advancedQueryCapabilities,r=n(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:n(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:p(t,"queryRelated")}}function q(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryTopFilter")}}function v(e){const t=e.ownershipBasedAccessControlForFeatures,r=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:n(e,"allowGeometryUpdates",!0),supportsGlobalId:n(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:n(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:n(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:n(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:n(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:n(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:n(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:n(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:n(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:n(r,"supportsAsyncApplyEdits",!1),zDefault:o(e,"zDefault",void 0)}}},49624:(e,t,r)=>{r.d(t,{W:()=>o});var i=r(24296),s=r(60544);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function o(e,t,r){if(!e&&!t||!r)return;const s=(0,i.gl)(r);a(e,r,s),a(t,r,s)}function a(e,t,r){if(e)for(const i of e)l(i.geometry,t,r)}function l(e,t,r){if(!e?.spatialReference||(0,s.yK)(e.spatialReference,t))return;const o=(0,i.gl)(e.spatialReference)/r;if(1!==o)if("x"in e)null!=e.z&&(e.z*=o);else if("rings"in e)n(e,e.rings,o);else if("paths"in e)n(e,e.paths,o);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=o)}},21012:(e,t,r)=>{r.d(t,{M:()=>s});var i=r(37924);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.O)(r.geometryType,t,e.outSpatialReference);if(null!=s)for(const e of r.features)s(e.geometry)}},59500:(e,t,r)=>{r.d(t,{c:()=>q});var i,s=r(41948),n=r(60708),o=r(6444),a=r(14628),l=r(40504),u=r(62088),p=r(1580),c=(r(9456),r(66360),r(33600)),d=r(12552),y=r(18996),h=r(56156),f=r(6704),m=r(600);const g=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.am{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.c.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],n=o.c.fromJSON(s),a=s.geometry?.spatialReference;null==n.geometry||a||(n.geometry.spatialReference=r);const l=s.aggregateGeometries,u=n.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}i.push(n)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.h4)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.c.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.ct)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[n,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*n+i),(e=>s-e*o),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const n=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===s||(n.push([e-i,o-s]),i=e,s=o)}else i=t(a[0]),s=r(a[1]),n.push([i,s])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Cs)(e)?e.rings:e.paths,s=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],o=this._quantizePoints(n,t,r);o&&s.push(o)}return s.length>0?((0,f.Cs)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Cs)(e)?e.rings:e.paths;let o,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=r(a)}}if(i&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,p.qq)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,s._)([(0,p.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,p.qq)({type:[o.c],json:{write:!0}})],w.prototype,"features",void 0),(0,s._)([(0,c.E)("features")],w.prototype,"readFeatures",null),(0,s._)([(0,p.qq)({type:[m.c],json:{write:!0}})],w.prototype,"fields",void 0),(0,s._)([(0,p.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,s._)([(0,y.G)("geometryType")],w.prototype,"writeGeometryType",null),(0,s._)([(0,p.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,s._)([(0,p.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,s._)([(0,p.qq)({types:n.Su,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,s._)([(0,c.E)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,s._)([(0,p.qq)({type:h.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,s._)([(0,y.G)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,s._)([(0,p.qq)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,s._)([(0,d.c)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const q=w},18648:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var i,s=r(41948),n=(r(60708),r(40504)),o=r(62088),a=r(1580),l=r(53368),u=r(12552),p=r(18996),c=r(88204),d=r(56156);let y=i=class extends n.am{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,o.ct)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,s._)([(0,a.qq)({type:c.U,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,s._)([(0,a.qq)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,s._)([(0,a.qq)({type:Date})],y.prototype,"historicMoment",void 0),(0,s._)([(0,p.G)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,s._)([(0,a.qq)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,a.qq)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,s._)([(0,a.qq)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,s._)([(0,a.qq)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,s._)([(0,a.qq)({type:d.c,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,s._)([(0,a.qq)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,s._)([(0,p.G)("start"),(0,p.G)("num")],y.prototype,"writeStart",null),(0,s._)([(0,a.qq)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,s._)([(0,a.qq)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=i=(0,s._)([(0,u.c)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.ey)(y);const h=y}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8344],{16848:(t,e,n)=>{n.d(e,{Oo:()=>d,eG:()=>b,ii:()=>w});var r=n(20744),i=n(62088),o=n(66360),a=n(91180),s=n(4636);const c=()=>o.c.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(t,e,n){let i="",o=0;for(;o<n;){const a=t[e+o];if(a<128)i+=String.fromCharCode(a),o++;else if(a>=192&&a<224){if(o+1>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const s=(31&a)<<6|63&t[e+o+1];i+=String.fromCharCode(s),o+=2}else if(a>=224&&a<240){if(o+2>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(15&a)<<12|(63&t[e+o+1])<<6|63&t[e+o+2];i+=String.fromCharCode(s),o+=3}else{if(!(a>=240&&a<248))throw new r.c("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(o+3>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(7&a)<<18|(63&t[e+o+1])<<12|(63&t[e+o+2])<<6|63&t[e+o+3];if(s>=65536){const t=55296+(s-65536>>10),e=56320+(1023&s);i+=String.fromCharCode(t,e)}else i+=String.fromCharCode(s);o+=4}}}return i}function h(t,e){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let i=0;i<e.length;i++){const o=e[i],a=o.valueType||o.type,s=p[a];n.fields[o.property]=s(t,r),r+=y[a].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){const i=[];let o,a,s=0;for(a=0;a<t;a+=1){if(o=e[a],o>0){if(i.push(u(n,s,o-1)),0!==n[s+o-1])throw new r.c("string-array-error","Invalid string array: missing null termination.")}else i.push(null);s+=o}return i}function d(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function l(t,e,n){const o=null!=e.header?h(t,e.header):{byteOffset:0,byteCount:0,fields:{count:n}},a={header:o,byteOffset:o.byteCount,byteCount:0,entries:Object.create(null)};let s=o.byteCount;for(let t=0;t<e.ordering.length;t++){const n=e.ordering[t],c=(0,i.ct)(e[n]);if(c.count=o.fields.count??0,"String"===c.valueType){if(c.byteOffset=s,c.byteCount=o.fields[n+"ByteCount"],"UTF-8"!==c.encoding)throw new r.c("unsupported-encoding","Unsupported String encoding.",{encoding:c.encoding});if(c.timeEncoding&&"ECMA_ISO8601"!==c.timeEncoding)throw new r.c("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:c.timeEncoding})}else{if(!_(c.valueType))throw new r.c("unsupported-value-type","Unsupported binary valueType",{valueType:c.valueType});{const t=S(c.valueType);s+=s%t!=0?t-s%t:0,c.byteOffset=s,c.byteCount=t*c.valuesPerElement*c.count}}s+=c.byteCount??0,a.entries[n]=c}return a.byteCount=s-a.byteOffset,a}function g(t,e,n){if(e!==t&&c().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.c("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){const n=h(t,e&&e.header);let r=n.byteCount;const i={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},o=n.fields,a=null!=o.vertexCount?o.vertexCount:o.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const n={...e.vertexAttributes[t],byteOffset:r,count:a},o=m[t]||"_"+t;i.vertexAttributes[o]=n,r+=S(n.valueType)*n.valuesPerElement*a}const s=o.faceCount;if(e.faces&&s){i.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const n={...e.faces[t],byteOffset:r,count:s};i.faces[t]=n,r+=S(n.valueType)*n.valuesPerElement*s}}const c=o.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&c){i.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const n={...e.featureAttributes[t],byteOffset:r,count:c};i.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:S(n.valueType))*n.valuesPerElement*c}}return g(r,t.byteLength,"geometry"),i.byteCount=r-i.byteOffset,i}const m={position:s.K.POSITION,normal:s.K.NORMAL,color:s.K.COLOR,uv0:s.K.UV0,region:s.K.UVREGION};function w(t,e,n){if("lepcc-rgb"===t.encoding)return(0,a.us)(e);if("lepcc-intensity"===t.encoding)return(0,a.Yj)(e);if(null!=t.encoding&&""!==t.encoding)throw new r.c("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(c().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(c().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const i=l(e,t,n);g(i.byteOffset+i.byteCount,e.byteLength,"attribute");const o=i.entries.attributeValues||i.entries.objectIds;if(o){if("String"===o.valueType){const t=i.entries.attributeByteCounts,n=d(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,o);return o.timeEncoding?function(t,e,n){return f(t,e,n).map((t=>{const e=t?Date.parse(t):null;return e&&!Number.isNaN(e)?e:null}))}(t.count,n,r):f(t.count,n,r)}return d(e,o)}throw new r.c("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},p={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function _(t){return y.hasOwnProperty(t)}function S(t){return _(t)?y[t].BYTES_PER_ELEMENT:0}},91180:(t,e,n)=>{n.d(e,{K6:()=>u,Yj:()=>w,us:()=>g});var r=n(20744);const i=!0,o={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function a(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+o.identifierOffset,o.identifierLength)),version:e.getUint16(n+o.versionOffset,i),checksum:e.getUint32(n+o.checksumOffset,i)}}const s={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function c(t,e){return{sizeLo:t.getUint32(e+s.sizeLo,i),sizeHi:t.getUint32(e+s.sizeHi,i),minX:t.getFloat64(e+s.minX,i),minY:t.getFloat64(e+s.minY,i),minZ:t.getFloat64(e+s.minZ,i),maxX:t.getFloat64(e+s.maxX,i),maxY:t.getFloat64(e+s.maxY,i),maxZ:t.getFloat64(e+s.maxZ,i),errorX:t.getFloat64(e+s.errorX,i),errorY:t.getFloat64(e+s.errorY,i),errorZ:t.getFloat64(e+s.errorZ,i),count:t.getUint32(e+s.count,i),reserved:t.getUint32(e+s.reserved,i)}}function u(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:u}=a(t,e,n);if(n+=o.byteCount,"LEPCC "!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(u>1)throw new r.c("lepcc-decode-error","Unknown version");const f=c(e,n);if(n+=s.byteCount,f.sizeHi*2**32+f.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),l=[],g=[],b=[],m=[];if(n=h(t,n,l),n=h(t,n,g),n=h(t,n,b),n=h(t,n,m),n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad length");let w=0,y=0;for(let t=0;t<l.length;t++){y+=l[t];let e=0;for(let n=0;n<g[t];n++){e+=b[w];const t=m[w];d[3*w]=Math.min(f.maxX,f.minX+2*f.errorX*e),d[3*w+1]=Math.min(f.maxY,f.minY+2*f.errorY*y),d[3*w+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*t),w++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function h(t,e,n){const r=[];e=f(t,e,r);const i=[];for(let o=0;o<r.length;o++){i.length=0,e=f(t,e,i);for(let t=0;t<i.length;t++)n.push(i[t]+r[o])}return e}function f(t,e,n){const o=new DataView(t,e),a=o.getUint8(0),s=31&a,c=!!(32&a),u=(192&a)>>6;let h=0;if(0===u)h=o.getUint32(1,i),e+=5;else if(1===u)h=o.getUint16(1,i),e+=3;else{if(2!==u)throw new r.c("lepcc-decode-error","Bad count type");h=o.getUint8(1),e+=2}if(c)throw new r.c("lepcc-decode-error","LUT not implemented");const f=Math.ceil(h*s/8),d=new Uint8Array(t,e,f);let l=0,g=0,b=0;const m=-1>>>32-s;for(let t=0;t<h;t++){for(;g<s;)l|=d[b]<<g,g+=8,b+=1;n[t]=l&m,l>>>=s,g-=s,g+s>32&&(l|=d[b-1]>>8-g)}return e+b}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function l(t,e){return{sizeLo:t.getUint32(e+d.sizeLo,i),sizeHi:t.getUint32(e+d.sizeHi,i),count:t.getUint32(e+d.count,i),colorMapCount:t.getUint16(e+d.colorMapCount,i),lookupMethod:t.getUint8(e+d.lookupMethod),compressionMethod:t.getUint8(e+d.compressionMethod)}}function g(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:s}=a(t,e,n);if(n+=o.byteCount,"ClusterRGB"!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(s>1)throw new r.c("lepcc-decode-error","Unknown version");const c=l(e,n);if(n+=d.byteCount,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");if((2===c.lookupMethod||1===c.lookupMethod)&&0===c.compressionMethod){if(3*c.colorMapCount+c.count+n!==t.byteLength||c.colorMapCount>256)throw new r.c("lepcc-decode-error","Bad count");const e=new Uint8Array(t,n,3*c.colorMapCount),i=new Uint8Array(t,n+3*c.colorMapCount,c.count),o=new Uint8Array(3*c.count);for(let t=0;t<c.count;t++){const n=i[t];o[3*t]=e[3*n],o[3*t+1]=e[3*n+1],o[3*t+2]=e[3*n+2]}return o}if(0===c.lookupMethod&&0===c.compressionMethod){if(3*c.count+n!==t.byteLength||0!==c.colorMapCount)throw new r.c("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(c.lookupMethod<=2&&1===c.compressionMethod){if(n+3!==t.byteLength||1!==c.colorMapCount)throw new r.c("lepcc-decode-error","Bad count");const i=e.getUint8(n),o=e.getUint8(n+1),a=e.getUint8(n+2),s=new Uint8Array(3*c.count);for(let t=0;t<c.count;t++)s[3*t]=i,s[3*t+1]=o,s[3*t+2]=a;return s}throw new r.c("lepcc-decode-error","Bad method "+c.lookupMethod+","+c.compressionMethod)}const b={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function m(t,e){return{sizeLo:t.getUint32(e+b.sizeLo,i),sizeHi:t.getUint32(e+b.sizeHi,i),count:t.getUint32(e+b.count,i),scaleFactor:t.getUint16(e+b.scaleFactor,i),bitsPerPoint:t.getUint8(e+b.bitsPerPoint),reserved:t.getUint8(e+b.reserved)}}function w(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:s}=a(t,e,n);if(n+=o.byteCount,"Intensity "!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(s>1)throw new r.c("lepcc-decode-error","Unknown version");const c=m(e,n);if(n+=b.byteCount,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const u=new Uint16Array(c.count);if(8===c.bitsPerPoint){if(c.count+n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const e=new Uint8Array(t,n,c.count);for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}else if(16===c.bitsPerPoint){if(2*c.count+n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const e=new Uint16Array(t,n,c.count);for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}else{const e=[];if(f(t,n,e)!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}return u}},29244:(t,e,n)=>{n.d(e,{Eb:()=>_t,er:()=>jt});var r=n(77556),i=n(68612),o=n(87104),a=n(41512),s=n(2620),c=n(98472),u=n(62484),h=n(74784),f=n(37008),d=n(22080),l=n(82448),g=n(51120),b=n(62880),m=n(38380),w=n(58632),y=n(60544),p=n(20136),_=n(21288),S=n(85256),M=n(89560);const C=1e-6,U=(0,u.Su)(),P=(0,u.Su)();function z(t,e,n,r,i,o,a,s,c,u){return function(t,e,n){let r=yt(t.maxVert[0],t.minVert[0]),i=0;for(let e=1;e<7;++e){const n=yt(t.maxVert[e],t.minVert[e]);n>r&&(r=n,i=e)}gt(e,t.minVert[i]),gt(n,t.maxVert[i])}(t,r,i),yt(r,i)<C?1:(dt(a,r,i),mt(a,a),function(t,e,n,r){const{data:i,size:o}=t;let a=Number.NEGATIVE_INFINITY,s=0;for(let t=0;t<i.length;t+=o){L[0]=i[t]-e[0],L[1]=i[t+1]-e[1],L[2]=i[t+2]-e[2];const r=n[0]*L[0]+n[1]*L[1]+n[2]*L[2],o=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],c=L[0]*L[0]+L[1]*L[1]+L[2]*L[2]-r*r/o;c>a&&(a=c,s=t)}return gt(r,i,s),a}(e,r,a,o)<C?2:(dt(s,i,o),mt(s,s),dt(c,o,r),mt(c,c),bt(n,s,a),mt(n,n),H(e,n,a,s,c,u),0))}const I=(0,u.Su)(),v=(0,u.Su)(),x=(0,u.Su)(),j=(0,u.Su)(),A=(0,u.Su)(),O=(0,u.Su)(),F=(0,u.Su)(),B=(0,u.Su)();function T(t,e,n,r,i,o,a,s,c){(function(t,e,n,r,i){!function(t,e,n,r,i){const{data:o,size:a}=t;gt(r,o),gt(i,r),n[0]=pt(Z,e),n[1]=n[0];for(let t=a;t<o.length;t+=a){const a=o[t]*e[0]+o[t+1]*e[1]+o[t+2]*e[2];a<n[0]&&(n[0]=a,gt(r,o,t)),a>n[1]&&(n[1]=a,gt(i,o,t))}}(t,e,V,i,r);const o=pt(n,e);V[1]-C<=o&&(r[0]=void 0),V[0]+C>=o&&(i[0]=void 0)})(t,e,n,I,v),void 0!==I[0]&&(dt(x,I,n),mt(x,x),dt(j,I,r),mt(j,j),dt(A,I,i),mt(A,A),bt(O,j,o),mt(O,O),bt(F,A,a),mt(F,F),bt(B,x,s),mt(B,B),H(t,O,o,j,x,c),H(t,F,a,A,j,c),H(t,B,s,x,A,c)),void 0!==v[0]&&(dt(x,v,n),mt(x,x),dt(j,v,r),mt(j,j),dt(A,v,i),mt(A,A),bt(O,j,o),mt(O,O),bt(F,A,a),mt(F,F),bt(B,x,s),mt(B,B),H(t,O,o,j,x,c),H(t,F,a,A,j,c),H(t,B,s,x,A,c))}const L=[0,0,0],V=(0,S.Su)(),E=(0,u.Su)(),q=(0,u.Su)(),N=(0,u.Su)(),Y=(0,u.Su)(),D=(0,u.Su)(),k=(0,u.Su)();function H(t,e,n,r,i,o){if(wt(e)<C)return;bt(E,n,e),bt(q,r,e),bt(N,i,e),X(t,e,V),D[1]=V[0],Y[1]=V[1],k[1]=Y[1]-D[1];const a=[n,r,i],s=[E,q,N];for(let n=0;n<3;++n){X(t,a[n],V),D[0]=V[0],Y[0]=V[1],X(t,s[n],V),D[2]=V[0],Y[2]=V[1],k[0]=Y[0]-D[0],k[2]=Y[2]-D[2];const r=ht(k);r<o.quality&&(gt(o.b0,a[n]),gt(o.b1,e),gt(o.b2,s[n]),o.quality=r)}}const Z=(0,u.Su)();function X(t,e,n){const{data:r,size:i}=t;n[0]=Number.POSITIVE_INFINITY,n[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=i){const i=r[t]*e[0]+r[t+1]*e[1]+r[t+2]*e[2];n[0]=Math.min(n[0],i),n[1]=Math.max(n[1],i)}}function K(t,e,n){n.center=t,n.halfSize=(0,c.i)(e,e,.5),n.quaternion=s.IJ}const W=(0,u.Su)(),R=(0,u.Su)(),G=(0,u.Su)(),Q=(0,u.Su)(),J=(0,u.Su)(),$=(0,u.Su)();function tt(t,e,n){gt(W,e),Math.abs(e[0])>Math.abs(e[1])&&Math.abs(e[0])>Math.abs(e[2])?W[0]=0:Math.abs(e[1])>Math.abs(e[2])?W[1]=0:W[2]=0,wt(W)<C&&(W[0]=W[1]=W[2]=1),bt(R,e,W),mt(R,R),bt(G,e,R),mt(G,G),et(t,e,R,G,Q,J),dt($,J,Q),st(e,R,G,Q,J,$,n)}function et(t,e,n,r,i,o){X(t,e,V),i[0]=V[0],o[0]=V[1],X(t,n,V),i[1]=V[0],o[1]=V[1],X(t,r,V),i[2]=V[0],o[2]=V[1]}const nt=(0,u.Su)(),rt=(0,u.Su)(),it=(0,u.Su)(),ot=(0,i.WK)(1,0,0,0,1,0,0,0,1),at=(0,s.Su)();function st(t,e,n,r,i,o,a){ot[0]=t[0],ot[1]=t[1],ot[2]=t[2],ot[3]=e[0],ot[4]=e[1],ot[5]=e[2],ot[6]=n[0],ot[7]=n[1],ot[8]=n[2],a.quaternion=function(t,e){const n=e[0]+e[4]+e[8];if(n>0){let r=Math.sqrt(n+1);t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r}else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);const r=(n+1)%3,i=(n+2)%3;let o=Math.sqrt(e[3*n+n]-e[3*r+r]-e[3*i+i]+1);t[n]=.5*o,o=.5/o,t[3]=(e[3*r+i]-e[3*i+r])*o,t[r]=(e[3*r+n]+e[3*n+r])*o,t[i]=(e[3*i+n]+e[3*n+i])*o}return t}(at,ot),ft(nt,r,i),lt(nt,nt,.5),lt(rt,t,nt[0]),lt(it,e,nt[1]),ft(rt,rt,it),lt(it,n,nt[2]),a.center=(0,c.g)(rt,rt,it),a.halfSize=(0,c.i)(nt,o,.5)}class ct{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let e=0;this.minProj=new Float64Array(this.buffer,e,7),e+=56,this.maxProj=new Float64Array(this.buffer,e,7),e+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const n=new Array(7),r=new Array(7),{data:i,size:o}=t;for(let t=0;t<i.length;t+=o){let e=i[t];e<this.minProj[0]&&(this.minProj[0]=e,n[0]=t),e>this.maxProj[0]&&(this.maxProj[0]=e,r[0]=t),e=i[t+1],e<this.minProj[1]&&(this.minProj[1]=e,n[1]=t),e>this.maxProj[1]&&(this.maxProj[1]=e,r[1]=t),e=i[t+2],e<this.minProj[2]&&(this.minProj[2]=e,n[2]=t),e>this.maxProj[2]&&(this.maxProj[2]=e,r[2]=t),e=i[t]+i[t+1]+i[t+2],e<this.minProj[3]&&(this.minProj[3]=e,n[3]=t),e>this.maxProj[3]&&(this.maxProj[3]=e,r[3]=t),e=i[t]+i[t+1]-i[t+2],e<this.minProj[4]&&(this.minProj[4]=e,n[4]=t),e>this.maxProj[4]&&(this.maxProj[4]=e,r[4]=t),e=i[t]-i[t+1]+i[t+2],e<this.minProj[5]&&(this.minProj[5]=e,n[5]=t),e>this.maxProj[5]&&(this.maxProj[5]=e,r[5]=t),e=i[t]-i[t+1]-i[t+2],e<this.minProj[6]&&(this.minProj[6]=e,n[6]=t),e>this.maxProj[6]&&(this.maxProj[6]=e,r[6]=t)}for(let t=0;t<7;++t){let e=n[t];gt(this.minVert[t],i,e),e=r[t],gt(this.maxVert[t],i,e)}}}class ut{constructor(){this.b0=(0,u.WK)(1,0,0),this.b1=(0,u.WK)(0,1,0),this.b2=(0,u.WK)(0,0,1),this.quality=0}}function ht(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ft(t,e,n){t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2]}function dt(t,e,n){t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2]}function lt(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}function gt(t,e,n=0){t[0]=e[n],t[1]=e[n+1],t[2]=e[n+2]}function bt(t,e,n){const r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a}function mt(t,e){const n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];if(n>0){const r=1/Math.sqrt(n);t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r}}function wt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function yt(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function pt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}class _t{constructor(t=u.cX,e=Ht,n=s.IJ){this._data=[t[0],t[1],t[2],e[0],e[1],e[2],n[0],n[1],n[2],n[3]]}clone(){const t=new _t;return t._data=this._data.slice(),t}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const e=new _t;return e._data=t.slice(),e}static fromJSON(t){return new _t(t.center,t.halfSize,t.quaternion)}copy(t){this._data=t.data.slice()}get center(){return(0,c.s)(p.Wq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,e,n){this._data[0]=t,this._data[1]=e,this._data[2]=n}get halfSize(){return(0,c.s)(p.Wq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,a.WO)(p.QX.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const e=St,n=this._data;e[0]=n[6],e[1]=n[7],e[2]=n[8],e[3]=n[9];for(let r=0;r<8;++r){const i=t[r];i[0]=(1&r?-1:1)*n[3],i[1]=(2&r?-1:1)*n[4],i[2]=(4&r?-1:1)*n[5],(0,c.r)(i,i,e),i[0]+=n[0],i[1]+=n[1],i[2]+=n[2]}}isVisible(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],e=this._data[4],n=this._data[5];return Math.sqrt(t*t+e*e+n*n)}intersectSphere(t){Ut[0]=this._data[0]-t[0],Ut[1]=this._data[1]-t[1],Ut[2]=this._data[2]-t[2];const e=this.getQuaternion(Mt);return(0,a.fO)(St,e),(0,c.r)(Ut,Ut,St),(0,c.u)(Ut,Ut),Pt[0]=Math.min(Ut[0],this._data[3]),Pt[1]=Math.min(Ut[1],this._data[4]),Pt[2]=Math.min(Ut[2],this._data[5]),(0,c.v)(Pt,Ut)<t[3]*t[3]}intersectSphereWithMBS(t,e=this.radius){const n=this._data;Ut[0]=n[0]-t[0],Ut[1]=n[1]-t[1],Ut[2]=n[2]-t[2];const r=t[3],i=r+e;return!((0,c.w)(Ut)>i*i)&&(St[0]=-n[6],St[1]=-n[7],St[2]=-n[8],St[3]=n[9],(0,c.r)(Ut,Ut,St),(0,c.u)(Ut,Ut),Pt[0]=Math.min(Ut[0],n[3]),Pt[1]=Math.min(Ut[1],n[4]),Pt[2]=Math.min(Ut[2],n[5]),(0,c.v)(Pt,Ut)<r*r)}intersectPlane(t){const e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],n=this.projectedRadius((0,w.Oq)(t));return e>n?1:e<-n?-1:0}intersectRay(t,e,n=0){const r=this._data,i=St;i[0]=-r[6],i[1]=-r[7],i[2]=-r[8],i[3]=r[9],Ut[0]=t[0]-r[0],Ut[1]=t[1]-r[1],Ut[2]=t[2]-r[2];const o=(0,c.r)(Ut,Ut,St),a=(0,c.r)(Pt,e,St);let s=-1/0,u=1/0;const h=this.getHalfSize(Vt);for(let t=0;t<3;t++){const e=o[t],r=a[t],i=h[t]+n;if(Math.abs(r)>1e-6){const t=(i-e)/r,n=(-i-e)/r;s=Math.max(s,Math.min(t,n)),u=Math.min(u,Math.max(t,n))}else if(e>i||e<-i)return!1}return s<=u}projectedArea(t,e,n,i){const o=this.getQuaternion(Mt);(0,a.fO)(St,o),Ut[0]=t[0]-this._data[0],Ut[1]=t[1]-this._data[1],Ut[2]=t[2]-this._data[2],(0,c.r)(Ut,Ut,St);const s=this.getHalfSize(Vt),u=Ut[0]<-s[0]?-1:Ut[0]>s[0]?1:0,f=Ut[1]<-s[1]?-1:Ut[1]>s[1]?1:0,d=Ut[2]<-s[2]?-1:Ut[2]>s[2]?1:0,l=Math.abs(u)+Math.abs(f)+Math.abs(d);if(0===l)return 1/0;const g=1===l?4:6,b=6*(u+3*f+9*d+13);(0,r.KU)(Et,o),(0,r.aU)(Et,Et,s);const m=this.getCenter(Tt);for(let t=0;t<g;t++){const n=xt[b+t];(0,c.s)(Ut,((1&n)<<1)-1,(2&n)-1,((4&n)>>1)-1),(0,c.t)(Ut,Ut,Et),(0,c.g)(zt,m,Ut),zt[3]=1,(0,h.t)(zt,zt,e);const r=1/Math.max(1e-6,zt[3]);vt[2*t]=zt[0]*r,vt[2*t+1]=zt[1]*r}const w=2*g-2;let y=vt[0]*(vt[3]-vt[w+1])+vt[w]*(vt[1]-vt[w-1]);for(let t=2;t<w;t+=2)y+=vt[t]*(vt[t+3]-vt[t-1]);return Math.abs(y)*n*i*.125}projectedRadius(t){const e=this.getQuaternion(Mt);return(0,a.fO)(St,e),(0,c.r)(Ut,t,St),Math.abs(Ut[0]*this._data[3])+Math.abs(Ut[1]*this._data[4])+Math.abs(Ut[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,w.Oq)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,w.Oq)(t))}toAaBoundingBox(t){const e=this.getQuaternion(Mt),n=(0,r.KU)(Et,e),i=this._data[3]*Math.abs(n[0])+this._data[4]*Math.abs(n[3])+this._data[5]*Math.abs(n[6]),o=this._data[3]*Math.abs(n[1])+this._data[4]*Math.abs(n[4])+this._data[5]*Math.abs(n[7]),a=this._data[3]*Math.abs(n[2])+this._data[4]*Math.abs(n[5])+this._data[5]*Math.abs(n[8]);t[0]=this._data[0]-i,t[1]=this._data[1]-o,t[2]=this._data[2]-a,t[3]=this._data[0]+i,t[4]=this._data[1]+o,t[5]=this._data[2]+a}transform(t,e,n,r=0,i=(0,l._s)(n),o=(0,l._s)(e),s=(0,m.Mx)(e,o)){if(n===i)e.isGeographic?function(t,e,n,r,i=(0,l._s)(n)){const o=(0,d.e0)(n),s=1+Math.max(0,r)/(o.radius+t.centerZ);t.getCenter(Bt),Bt[2]+=r,(0,b.projectBuffer)(Bt,n,0,Bt,i,0,1),e.center=Bt;const u=t.getQuaternion(Mt);e.quaternion=u,(0,a.fO)(St,u),(0,c.s)(Yt,0,0,1),(0,c.r)(Yt,Yt,St);const h=t.getHalfSize(Vt);(0,c.s)(Yt,h[0]*Math.abs(Yt[0]),h[1]*Math.abs(Yt[1]),h[2]*Math.abs(Yt[2])),(0,c.i)(Yt,Yt,o.inverseFlattening),(0,c.g)(Yt,h,Yt),e.halfSize=(0,c.i)(Yt,Yt,s)}(this,t,e,r,o):function(t,e,n,r,i=(0,l._s)(n),o=(0,m.Mx)(n,i)){t.getCorners(Nt),t.getCenter(Bt),Bt[2]+=r,(0,g.y)(n,Bt,qt,i),e.setCenter(qt[12],qt[13],qt[14]);const s=2*Math.sqrt(1+qt[0]+qt[5]+qt[10]);St[0]=(qt[6]-qt[9])/s,St[1]=(qt[8]-qt[2])/s,St[2]=(qt[1]-qt[4])/s,St[3]=.25*s;const u=t.getQuaternion(Mt);e.quaternion=(0,a.iW)(St,St,u),(0,a.fO)(St,St),(0,c.s)(Dt,0,0,0);const h=e.getCenter(Lt);for(const t of Nt)t[2]+=r,o(t,0,t,0),(0,c.y)(Yt,t,h),(0,c.r)(Yt,Yt,St),(0,c.B)(Dt,Dt,Yt);e.halfSize=Dt}(this,t,e,r,o,s);else if(e.isWGS84&&(n.isWebMercator||(0,y.GK)(n)))!function(t,e,n,r,i){e.getCenter(Tt),Tt[2]+=i;const o=(0,l._s)(n);(0,b.projectBuffer)(Tt,t,0,Tt,o,0,1),At(o,e,Tt,n,r)}(e,this,n,t,r);else if(e.isWebMercator&&(0,y.GK)(n))!function(t,e,n,r,i){e.getCenter(Tt),Tt[2]+=i,At(t,e,Tt,n,r)}(e,this,n,t,r);else{const i=this.getCenter(Tt);i[2]+=r,(0,b.projectBuffer)(i,e,0,i,n,0,1),t.center=i,this!==t&&(t.quaternion=this.getQuaternion(Mt),t.halfSize=this.getHalfSize(Vt))}}}const St=(0,s.Su)(),Mt=(0,s.Su)(),Ct=(0,s.Su)(),Ut=(0,u.Su)(),Pt=(0,u.Su)(),zt=(0,f.Su)();function It(t,e=new _t){return function(t,e){const{data:n,size:r}=t,i=n.length/r;if(i<=0)return;const o=new ct(t);ft(U,o.minProj,o.maxProj),lt(U,U,.5),dt(P,o.maxProj,o.minProj);const a=ht(P),s=new ut;s.quality=a,i<14&&(t=new M.Y(new Float64Array(o.buffer,112,42),3));const c=(0,u.Su)(),h=(0,u.Su)(),f=(0,u.Su)(),d=(0,u.Su)(),l=(0,u.Su)(),g=(0,u.Su)(),b=(0,u.Su)();switch(z(o,t,b,c,h,f,d,l,g,s)){case 1:return void K(U,P,e);case 2:return void tt(t,d,e)}T(t,b,c,h,f,d,l,g,s),et(t,s.b0,s.b1,s.b2,Q,J);const m=(0,u.Su)();dt(m,J,Q),s.quality=ht(m),s.quality<a?st(s.b0,s.b1,s.b2,Q,J,m,e):K(U,P,e)}(t,e),e}const vt=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],xt=(()=>{const t=new Int8Array(162);let e=0;const n=n=>{for(let r=0;r<n.length;r++)t[e+r]=n[r];e+=6};return n([6,2,3,1,5,4]),n([0,2,3,1,5,4]),n([0,2,3,7,5,4]),n([0,1,3,2,6,4]),n([0,1,3,2,0,0]),n([0,1,5,7,3,2]),n([0,1,3,7,6,4]),n([0,1,3,7,6,2]),n([0,1,5,7,6,2]),n([0,1,5,4,6,2]),n([0,1,5,4,0,0]),n([0,1,3,7,5,4]),n([0,2,6,4,0,0]),n([0,0,0,0,0,0]),n([1,3,7,5,0,0]),n([2,3,7,6,4,0]),n([2,3,7,6,0,0]),n([2,3,1,5,7,6]),n([0,1,5,7,6,2]),n([0,1,5,7,6,4]),n([0,1,3,7,6,4]),n([4,5,7,6,2,0]),n([4,5,7,6,0,0]),n([4,5,1,3,7,6]),n([0,2,3,7,5,4]),n([6,2,3,7,5,4]),n([6,2,3,1,5,4]),t})();function jt(t,e,n,r,i){const o=t.getQuaternion(Mt);i.quaternion=o,(0,a.fO)(St,o);const s=t.getCenter(Tt),h=t.getHalfSize(Vt);if(r===_.UZ.Global){(0,c.r)(Yt,s,St),(0,c.u)(Dt,Yt),(0,c.x)(kt,Dt,h),(0,c.y)(kt,Dt,kt);const r=(0,c.l)(kt);(0,c.g)(kt,Dt,h);const o=(0,c.l)(kt);if(r<n)i.center=s,(0,c.s)(Yt,n,n,n),i.halfSize=(0,c.g)(Yt,h,Yt);else{const a=o>0?1+e/o:1,s=r>0?1+n/r:1,u=(s+a)/2,f=(s-a)/2;(0,c.i)(kt,Dt,f),i.halfSize=(0,c.q)(kt,kt,h,u),(0,c.i)(kt,Dt,u),(0,c.q)(kt,kt,h,f),(0,c.z)(Yt,Yt),(0,c.A)(Yt,kt,Yt);const d=t.getQuaternion(Ct);i.center=(0,c.r)(Yt,Yt,d)}}else{i.center=(0,c.q)(Yt,s,u.wx,(n+e)/2);const t=(0,c.r)(Yt,u.wx,St);(0,c.u)(t,t),i.halfSize=(0,c.q)(Dt,h,t,(n-e)/2)}return i}function At(t,e,n,i,o){const a=e.getQuaternion(Mt),s=(0,r.KU)(Et,a),c=e.getHalfSize(Vt);for(let t=0;t<8;++t){for(let e=0;e<3;++e)Bt[e]=c[e]*(0!=(t&1<<e)?-1:1);for(let e=0;e<3;++e){let r=n[e];for(let t=0;t<3;++t)r+=Bt[t]*s[3*t+e];Ot[3*t+e]=r}}(0,b.projectBuffer)(Ot,t,0,Ot,i,0,8),It(Ft,o)}const Ot=new Array(24),Ft=new M.Y(Ot,3),Bt=(0,u.Su)(),Tt=(0,u.Su)(),Lt=(0,u.Su)(),Vt=(0,u.Su)(),Et=(0,i.Su)(),qt=(0,o.Su)(),Nt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Yt=(0,u.Su)(),Dt=(0,u.Su)(),kt=(0,u.Su)(),Ht=(0,u.WK)(-1,-1,-1)},21288:(t,e,n)=>{var r;n.d(e,{UZ:()=>r}),function(t){t[t.Global=1]="Global",t[t.Local=2]="Local"}(r||(r={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8344],{16848:(t,e,n)=>{n.d(e,{Oo:()=>d,eG:()=>b,ii:()=>w});var r=n(20744),i=n(62088),o=n(66360),a=n(91180),s=n(4636);const c=()=>o.c.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(t,e,n){let i="",o=0;for(;o<n;){const a=t[e+o];if(a<128)i+=String.fromCharCode(a),o++;else if(a>=192&&a<224){if(o+1>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const s=(31&a)<<6|63&t[e+o+1];i+=String.fromCharCode(s),o+=2}else if(a>=224&&a<240){if(o+2>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(15&a)<<12|(63&t[e+o+1])<<6|63&t[e+o+2];i+=String.fromCharCode(s),o+=3}else{if(!(a>=240&&a<248))throw new r.c("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(o+3>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(7&a)<<18|(63&t[e+o+1])<<12|(63&t[e+o+2])<<6|63&t[e+o+3];if(s>=65536){const t=55296+(s-65536>>10),e=56320+(1023&s);i+=String.fromCharCode(t,e)}else i+=String.fromCharCode(s);o+=4}}}return i}function h(t,e){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let i=0;i<e.length;i++){const o=e[i],a=o.valueType||o.type,s=p[a];n.fields[o.property]=s(t,r),r+=y[a].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){const i=[];let o,a,s=0;for(a=0;a<t;a+=1){if(o=e[a],o>0){if(i.push(u(n,s,o-1)),0!==n[s+o-1])throw new r.c("string-array-error","Invalid string array: missing null termination.")}else i.push(null);s+=o}return i}function d(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function l(t,e,n){const o=null!=e.header?h(t,e.header):{byteOffset:0,byteCount:0,fields:{count:n}},a={header:o,byteOffset:o.byteCount,byteCount:0,entries:Object.create(null)};let s=o.byteCount;for(let t=0;t<e.ordering.length;t++){const n=e.ordering[t],c=(0,i.ct)(e[n]);if(c.count=o.fields.count??0,"String"===c.valueType){if(c.byteOffset=s,c.byteCount=o.fields[n+"ByteCount"],"UTF-8"!==c.encoding)throw new r.c("unsupported-encoding","Unsupported String encoding.",{encoding:c.encoding});if(c.timeEncoding&&"ECMA_ISO8601"!==c.timeEncoding)throw new r.c("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:c.timeEncoding})}else{if(!_(c.valueType))throw new r.c("unsupported-value-type","Unsupported binary valueType",{valueType:c.valueType});{const t=S(c.valueType);s+=s%t!=0?t-s%t:0,c.byteOffset=s,c.byteCount=t*c.valuesPerElement*c.count}}s+=c.byteCount??0,a.entries[n]=c}return a.byteCount=s-a.byteOffset,a}function g(t,e,n){if(e!==t&&c().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.c("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){const n=h(t,e&&e.header);let r=n.byteCount;const i={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},o=n.fields,a=null!=o.vertexCount?o.vertexCount:o.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const n={...e.vertexAttributes[t],byteOffset:r,count:a},o=m[t]||"_"+t;i.vertexAttributes[o]=n,r+=S(n.valueType)*n.valuesPerElement*a}const s=o.faceCount;if(e.faces&&s){i.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const n={...e.faces[t],byteOffset:r,count:s};i.faces[t]=n,r+=S(n.valueType)*n.valuesPerElement*s}}const c=o.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&c){i.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const n={...e.featureAttributes[t],byteOffset:r,count:c};i.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:S(n.valueType))*n.valuesPerElement*c}}return g(r,t.byteLength,"geometry"),i.byteCount=r-i.byteOffset,i}const m={position:s.K.POSITION,normal:s.K.NORMAL,color:s.K.COLOR,uv0:s.K.UV0,region:s.K.UVREGION};function w(t,e,n){if("lepcc-rgb"===t.encoding)return(0,a.us)(e);if("lepcc-intensity"===t.encoding)return(0,a.Yj)(e);if(null!=t.encoding&&""!==t.encoding)throw new r.c("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(c().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(c().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const i=l(e,t,n);g(i.byteOffset+i.byteCount,e.byteLength,"attribute");const o=i.entries.attributeValues||i.entries.objectIds;if(o){if("String"===o.valueType){const t=i.entries.attributeByteCounts,n=d(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,o);return o.timeEncoding?function(t,e,n){return f(t,e,n).map((t=>{const e=t?Date.parse(t):null;return e&&!Number.isNaN(e)?e:null}))}(t.count,n,r):f(t.count,n,r)}return d(e,o)}throw new r.c("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},p={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function _(t){return y.hasOwnProperty(t)}function S(t){return _(t)?y[t].BYTES_PER_ELEMENT:0}},91180:(t,e,n)=>{n.d(e,{K6:()=>u,Yj:()=>w,us:()=>g});var r=n(20744);const i=!0,o={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function a(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+o.identifierOffset,o.identifierLength)),version:e.getUint16(n+o.versionOffset,i),checksum:e.getUint32(n+o.checksumOffset,i)}}const s={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function c(t,e){return{sizeLo:t.getUint32(e+s.sizeLo,i),sizeHi:t.getUint32(e+s.sizeHi,i),minX:t.getFloat64(e+s.minX,i),minY:t.getFloat64(e+s.minY,i),minZ:t.getFloat64(e+s.minZ,i),maxX:t.getFloat64(e+s.maxX,i),maxY:t.getFloat64(e+s.maxY,i),maxZ:t.getFloat64(e+s.maxZ,i),errorX:t.getFloat64(e+s.errorX,i),errorY:t.getFloat64(e+s.errorY,i),errorZ:t.getFloat64(e+s.errorZ,i),count:t.getUint32(e+s.count,i),reserved:t.getUint32(e+s.reserved,i)}}function u(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:u}=a(t,e,n);if(n+=o.byteCount,"LEPCC "!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(u>1)throw new r.c("lepcc-decode-error","Unknown version");const f=c(e,n);if(n+=s.byteCount,f.sizeHi*2**32+f.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),l=[],g=[],b=[],m=[];if(n=h(t,n,l),n=h(t,n,g),n=h(t,n,b),n=h(t,n,m),n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad length");let w=0,y=0;for(let t=0;t<l.length;t++){y+=l[t];let e=0;for(let n=0;n<g[t];n++){e+=b[w];const t=m[w];d[3*w]=Math.min(f.maxX,f.minX+2*f.errorX*e),d[3*w+1]=Math.min(f.maxY,f.minY+2*f.errorY*y),d[3*w+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*t),w++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function h(t,e,n){const r=[];e=f(t,e,r);const i=[];for(let o=0;o<r.length;o++){i.length=0,e=f(t,e,i);for(let t=0;t<i.length;t++)n.push(i[t]+r[o])}return e}function f(t,e,n){const o=new DataView(t,e),a=o.getUint8(0),s=31&a,c=!!(32&a),u=(192&a)>>6;let h=0;if(0===u)h=o.getUint32(1,i),e+=5;else if(1===u)h=o.getUint16(1,i),e+=3;else{if(2!==u)throw new r.c("lepcc-decode-error","Bad count type");h=o.getUint8(1),e+=2}if(c)throw new r.c("lepcc-decode-error","LUT not implemented");const f=Math.ceil(h*s/8),d=new Uint8Array(t,e,f);let l=0,g=0,b=0;const m=-1>>>32-s;for(let t=0;t<h;t++){for(;g<s;)l|=d[b]<<g,g+=8,b+=1;n[t]=l&m,l>>>=s,g-=s,g+s>32&&(l|=d[b-1]>>8-g)}return e+b}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function l(t,e){return{sizeLo:t.getUint32(e+d.sizeLo,i),sizeHi:t.getUint32(e+d.sizeHi,i),count:t.getUint32(e+d.count,i),colorMapCount:t.getUint16(e+d.colorMapCount,i),lookupMethod:t.getUint8(e+d.lookupMethod),compressionMethod:t.getUint8(e+d.compressionMethod)}}function g(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:s}=a(t,e,n);if(n+=o.byteCount,"ClusterRGB"!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(s>1)throw new r.c("lepcc-decode-error","Unknown version");const c=l(e,n);if(n+=d.byteCount,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");if((2===c.lookupMethod||1===c.lookupMethod)&&0===c.compressionMethod){if(3*c.colorMapCount+c.count+n!==t.byteLength||c.colorMapCount>256)throw new r.c("lepcc-decode-error","Bad count");const e=new Uint8Array(t,n,3*c.colorMapCount),i=new Uint8Array(t,n+3*c.colorMapCount,c.count),o=new Uint8Array(3*c.count);for(let t=0;t<c.count;t++){const n=i[t];o[3*t]=e[3*n],o[3*t+1]=e[3*n+1],o[3*t+2]=e[3*n+2]}return o}if(0===c.lookupMethod&&0===c.compressionMethod){if(3*c.count+n!==t.byteLength||0!==c.colorMapCount)throw new r.c("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(c.lookupMethod<=2&&1===c.compressionMethod){if(n+3!==t.byteLength||1!==c.colorMapCount)throw new r.c("lepcc-decode-error","Bad count");const i=e.getUint8(n),o=e.getUint8(n+1),a=e.getUint8(n+2),s=new Uint8Array(3*c.count);for(let t=0;t<c.count;t++)s[3*t]=i,s[3*t+1]=o,s[3*t+2]=a;return s}throw new r.c("lepcc-decode-error","Bad method "+c.lookupMethod+","+c.compressionMethod)}const b={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function m(t,e){return{sizeLo:t.getUint32(e+b.sizeLo,i),sizeHi:t.getUint32(e+b.sizeHi,i),count:t.getUint32(e+b.count,i),scaleFactor:t.getUint16(e+b.scaleFactor,i),bitsPerPoint:t.getUint8(e+b.bitsPerPoint),reserved:t.getUint8(e+b.reserved)}}function w(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:s}=a(t,e,n);if(n+=o.byteCount,"Intensity "!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(s>1)throw new r.c("lepcc-decode-error","Unknown version");const c=m(e,n);if(n+=b.byteCount,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const u=new Uint16Array(c.count);if(8===c.bitsPerPoint){if(c.count+n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const e=new Uint8Array(t,n,c.count);for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}else if(16===c.bitsPerPoint){if(2*c.count+n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const e=new Uint16Array(t,n,c.count);for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}else{const e=[];if(f(t,n,e)!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}return u}},29244:(t,e,n)=>{n.d(e,{Eb:()=>_t,er:()=>jt});var r=n(77556),i=n(68612),o=n(87104),a=n(41512),s=n(2620),c=n(98472),u=n(62484),h=n(74784),f=n(37008),d=n(22080),l=n(82448),g=n(51120),b=n(62880),m=n(38380),w=n(58632),y=n(60544),p=n(20136),_=n(21288),S=n(85256),M=n(89560);const C=1e-6,U=(0,u.Su)(),P=(0,u.Su)();function z(t,e,n,r,i,o,a,s,c,u){return function(t,e,n){let r=yt(t.maxVert[0],t.minVert[0]),i=0;for(let e=1;e<7;++e){const n=yt(t.maxVert[e],t.minVert[e]);n>r&&(r=n,i=e)}gt(e,t.minVert[i]),gt(n,t.maxVert[i])}(t,r,i),yt(r,i)<C?1:(dt(a,r,i),mt(a,a),function(t,e,n,r){const{data:i,size:o}=t;let a=Number.NEGATIVE_INFINITY,s=0;for(let t=0;t<i.length;t+=o){L[0]=i[t]-e[0],L[1]=i[t+1]-e[1],L[2]=i[t+2]-e[2];const r=n[0]*L[0]+n[1]*L[1]+n[2]*L[2],o=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],c=L[0]*L[0]+L[1]*L[1]+L[2]*L[2]-r*r/o;c>a&&(a=c,s=t)}return gt(r,i,s),a}(e,r,a,o)<C?2:(dt(s,i,o),mt(s,s),dt(c,o,r),mt(c,c),bt(n,s,a),mt(n,n),H(e,n,a,s,c,u),0))}const I=(0,u.Su)(),v=(0,u.Su)(),x=(0,u.Su)(),j=(0,u.Su)(),A=(0,u.Su)(),O=(0,u.Su)(),F=(0,u.Su)(),B=(0,u.Su)();function T(t,e,n,r,i,o,a,s,c){(function(t,e,n,r,i){!function(t,e,n,r,i){const{data:o,size:a}=t;gt(r,o),gt(i,r),n[0]=pt(Z,e),n[1]=n[0];for(let t=a;t<o.length;t+=a){const a=o[t]*e[0]+o[t+1]*e[1]+o[t+2]*e[2];a<n[0]&&(n[0]=a,gt(r,o,t)),a>n[1]&&(n[1]=a,gt(i,o,t))}}(t,e,V,i,r);const o=pt(n,e);V[1]-C<=o&&(r[0]=void 0),V[0]+C>=o&&(i[0]=void 0)})(t,e,n,I,v),void 0!==I[0]&&(dt(x,I,n),mt(x,x),dt(j,I,r),mt(j,j),dt(A,I,i),mt(A,A),bt(O,j,o),mt(O,O),bt(F,A,a),mt(F,F),bt(B,x,s),mt(B,B),H(t,O,o,j,x,c),H(t,F,a,A,j,c),H(t,B,s,x,A,c)),void 0!==v[0]&&(dt(x,v,n),mt(x,x),dt(j,v,r),mt(j,j),dt(A,v,i),mt(A,A),bt(O,j,o),mt(O,O),bt(F,A,a),mt(F,F),bt(B,x,s),mt(B,B),H(t,O,o,j,x,c),H(t,F,a,A,j,c),H(t,B,s,x,A,c))}const L=[0,0,0],V=(0,S.Su)(),E=(0,u.Su)(),q=(0,u.Su)(),N=(0,u.Su)(),Y=(0,u.Su)(),D=(0,u.Su)(),k=(0,u.Su)();function H(t,e,n,r,i,o){if(wt(e)<C)return;bt(E,n,e),bt(q,r,e),bt(N,i,e),X(t,e,V),D[1]=V[0],Y[1]=V[1],k[1]=Y[1]-D[1];const a=[n,r,i],s=[E,q,N];for(let n=0;n<3;++n){X(t,a[n],V),D[0]=V[0],Y[0]=V[1],X(t,s[n],V),D[2]=V[0],Y[2]=V[1],k[0]=Y[0]-D[0],k[2]=Y[2]-D[2];const r=ht(k);r<o.quality&&(gt(o.b0,a[n]),gt(o.b1,e),gt(o.b2,s[n]),o.quality=r)}}const Z=(0,u.Su)();function X(t,e,n){const{data:r,size:i}=t;n[0]=Number.POSITIVE_INFINITY,n[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=i){const i=r[t]*e[0]+r[t+1]*e[1]+r[t+2]*e[2];n[0]=Math.min(n[0],i),n[1]=Math.max(n[1],i)}}function K(t,e,n){n.center=t,n.halfSize=(0,c.h)(e,e,.5),n.quaternion=s.IJ}const W=(0,u.Su)(),R=(0,u.Su)(),G=(0,u.Su)(),Q=(0,u.Su)(),J=(0,u.Su)(),$=(0,u.Su)();function tt(t,e,n){gt(W,e),Math.abs(e[0])>Math.abs(e[1])&&Math.abs(e[0])>Math.abs(e[2])?W[0]=0:Math.abs(e[1])>Math.abs(e[2])?W[1]=0:W[2]=0,wt(W)<C&&(W[0]=W[1]=W[2]=1),bt(R,e,W),mt(R,R),bt(G,e,R),mt(G,G),et(t,e,R,G,Q,J),dt($,J,Q),st(e,R,G,Q,J,$,n)}function et(t,e,n,r,i,o){X(t,e,V),i[0]=V[0],o[0]=V[1],X(t,n,V),i[1]=V[0],o[1]=V[1],X(t,r,V),i[2]=V[0],o[2]=V[1]}const nt=(0,u.Su)(),rt=(0,u.Su)(),it=(0,u.Su)(),ot=(0,i.WK)(1,0,0,0,1,0,0,0,1),at=(0,s.Su)();function st(t,e,n,r,i,o,a){ot[0]=t[0],ot[1]=t[1],ot[2]=t[2],ot[3]=e[0],ot[4]=e[1],ot[5]=e[2],ot[6]=n[0],ot[7]=n[1],ot[8]=n[2],a.quaternion=function(t,e){const n=e[0]+e[4]+e[8];if(n>0){let r=Math.sqrt(n+1);t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r}else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);const r=(n+1)%3,i=(n+2)%3;let o=Math.sqrt(e[3*n+n]-e[3*r+r]-e[3*i+i]+1);t[n]=.5*o,o=.5/o,t[3]=(e[3*r+i]-e[3*i+r])*o,t[r]=(e[3*r+n]+e[3*n+r])*o,t[i]=(e[3*i+n]+e[3*n+i])*o}return t}(at,ot),ft(nt,r,i),lt(nt,nt,.5),lt(rt,t,nt[0]),lt(it,e,nt[1]),ft(rt,rt,it),lt(it,n,nt[2]),a.center=(0,c.g)(rt,rt,it),a.halfSize=(0,c.h)(nt,o,.5)}class ct{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let e=0;this.minProj=new Float64Array(this.buffer,e,7),e+=56,this.maxProj=new Float64Array(this.buffer,e,7),e+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const n=new Array(7),r=new Array(7),{data:i,size:o}=t;for(let t=0;t<i.length;t+=o){let e=i[t];e<this.minProj[0]&&(this.minProj[0]=e,n[0]=t),e>this.maxProj[0]&&(this.maxProj[0]=e,r[0]=t),e=i[t+1],e<this.minProj[1]&&(this.minProj[1]=e,n[1]=t),e>this.maxProj[1]&&(this.maxProj[1]=e,r[1]=t),e=i[t+2],e<this.minProj[2]&&(this.minProj[2]=e,n[2]=t),e>this.maxProj[2]&&(this.maxProj[2]=e,r[2]=t),e=i[t]+i[t+1]+i[t+2],e<this.minProj[3]&&(this.minProj[3]=e,n[3]=t),e>this.maxProj[3]&&(this.maxProj[3]=e,r[3]=t),e=i[t]+i[t+1]-i[t+2],e<this.minProj[4]&&(this.minProj[4]=e,n[4]=t),e>this.maxProj[4]&&(this.maxProj[4]=e,r[4]=t),e=i[t]-i[t+1]+i[t+2],e<this.minProj[5]&&(this.minProj[5]=e,n[5]=t),e>this.maxProj[5]&&(this.maxProj[5]=e,r[5]=t),e=i[t]-i[t+1]-i[t+2],e<this.minProj[6]&&(this.minProj[6]=e,n[6]=t),e>this.maxProj[6]&&(this.maxProj[6]=e,r[6]=t)}for(let t=0;t<7;++t){let e=n[t];gt(this.minVert[t],i,e),e=r[t],gt(this.maxVert[t],i,e)}}}class ut{constructor(){this.b0=(0,u.WK)(1,0,0),this.b1=(0,u.WK)(0,1,0),this.b2=(0,u.WK)(0,0,1),this.quality=0}}function ht(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ft(t,e,n){t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2]}function dt(t,e,n){t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2]}function lt(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}function gt(t,e,n=0){t[0]=e[n],t[1]=e[n+1],t[2]=e[n+2]}function bt(t,e,n){const r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a}function mt(t,e){const n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];if(n>0){const r=1/Math.sqrt(n);t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r}}function wt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function yt(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function pt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}class _t{constructor(t=u.cX,e=Ht,n=s.IJ){this._data=[t[0],t[1],t[2],e[0],e[1],e[2],n[0],n[1],n[2],n[3]]}clone(){const t=new _t;return t._data=this._data.slice(),t}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const e=new _t;return e._data=t.slice(),e}static fromJSON(t){return new _t(t.center,t.halfSize,t.quaternion)}copy(t){this._data=t.data.slice()}get center(){return(0,c.s)(p.Wq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,e,n){this._data[0]=t,this._data[1]=e,this._data[2]=n}get halfSize(){return(0,c.s)(p.Wq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,a.WO)(p.QX.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const e=St,n=this._data;e[0]=n[6],e[1]=n[7],e[2]=n[8],e[3]=n[9];for(let r=0;r<8;++r){const i=t[r];i[0]=(1&r?-1:1)*n[3],i[1]=(2&r?-1:1)*n[4],i[2]=(4&r?-1:1)*n[5],(0,c.r)(i,i,e),i[0]+=n[0],i[1]+=n[1],i[2]+=n[2]}}isVisible(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],e=this._data[4],n=this._data[5];return Math.sqrt(t*t+e*e+n*n)}intersectSphere(t){Ut[0]=this._data[0]-t[0],Ut[1]=this._data[1]-t[1],Ut[2]=this._data[2]-t[2];const e=this.getQuaternion(Mt);return(0,a.fO)(St,e),(0,c.r)(Ut,Ut,St),(0,c.u)(Ut,Ut),Pt[0]=Math.min(Ut[0],this._data[3]),Pt[1]=Math.min(Ut[1],this._data[4]),Pt[2]=Math.min(Ut[2],this._data[5]),(0,c.v)(Pt,Ut)<t[3]*t[3]}intersectSphereWithMBS(t,e=this.radius){const n=this._data;Ut[0]=n[0]-t[0],Ut[1]=n[1]-t[1],Ut[2]=n[2]-t[2];const r=t[3],i=r+e;return!((0,c.w)(Ut)>i*i)&&(St[0]=-n[6],St[1]=-n[7],St[2]=-n[8],St[3]=n[9],(0,c.r)(Ut,Ut,St),(0,c.u)(Ut,Ut),Pt[0]=Math.min(Ut[0],n[3]),Pt[1]=Math.min(Ut[1],n[4]),Pt[2]=Math.min(Ut[2],n[5]),(0,c.v)(Pt,Ut)<r*r)}intersectPlane(t){const e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],n=this.projectedRadius((0,w.Oq)(t));return e>n?1:e<-n?-1:0}intersectRay(t,e,n=0){const r=this._data,i=St;i[0]=-r[6],i[1]=-r[7],i[2]=-r[8],i[3]=r[9],Ut[0]=t[0]-r[0],Ut[1]=t[1]-r[1],Ut[2]=t[2]-r[2];const o=(0,c.r)(Ut,Ut,St),a=(0,c.r)(Pt,e,St);let s=-1/0,u=1/0;const h=this.getHalfSize(Vt);for(let t=0;t<3;t++){const e=o[t],r=a[t],i=h[t]+n;if(Math.abs(r)>1e-6){const t=(i-e)/r,n=(-i-e)/r;s=Math.max(s,Math.min(t,n)),u=Math.min(u,Math.max(t,n))}else if(e>i||e<-i)return!1}return s<=u}projectedArea(t,e,n,i){const o=this.getQuaternion(Mt);(0,a.fO)(St,o),Ut[0]=t[0]-this._data[0],Ut[1]=t[1]-this._data[1],Ut[2]=t[2]-this._data[2],(0,c.r)(Ut,Ut,St);const s=this.getHalfSize(Vt),u=Ut[0]<-s[0]?-1:Ut[0]>s[0]?1:0,f=Ut[1]<-s[1]?-1:Ut[1]>s[1]?1:0,d=Ut[2]<-s[2]?-1:Ut[2]>s[2]?1:0,l=Math.abs(u)+Math.abs(f)+Math.abs(d);if(0===l)return 1/0;const g=1===l?4:6,b=6*(u+3*f+9*d+13);(0,r.KU)(Et,o),(0,r.aU)(Et,Et,s);const m=this.getCenter(Tt);for(let t=0;t<g;t++){const n=xt[b+t];(0,c.s)(Ut,((1&n)<<1)-1,(2&n)-1,((4&n)>>1)-1),(0,c.t)(Ut,Ut,Et),(0,c.g)(zt,m,Ut),zt[3]=1,(0,h.t)(zt,zt,e);const r=1/Math.max(1e-6,zt[3]);vt[2*t]=zt[0]*r,vt[2*t+1]=zt[1]*r}const w=2*g-2;let y=vt[0]*(vt[3]-vt[w+1])+vt[w]*(vt[1]-vt[w-1]);for(let t=2;t<w;t+=2)y+=vt[t]*(vt[t+3]-vt[t-1]);return Math.abs(y)*n*i*.125}projectedRadius(t){const e=this.getQuaternion(Mt);return(0,a.fO)(St,e),(0,c.r)(Ut,t,St),Math.abs(Ut[0]*this._data[3])+Math.abs(Ut[1]*this._data[4])+Math.abs(Ut[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,w.Oq)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,w.Oq)(t))}toAaBoundingBox(t){const e=this.getQuaternion(Mt),n=(0,r.KU)(Et,e),i=this._data[3]*Math.abs(n[0])+this._data[4]*Math.abs(n[3])+this._data[5]*Math.abs(n[6]),o=this._data[3]*Math.abs(n[1])+this._data[4]*Math.abs(n[4])+this._data[5]*Math.abs(n[7]),a=this._data[3]*Math.abs(n[2])+this._data[4]*Math.abs(n[5])+this._data[5]*Math.abs(n[8]);t[0]=this._data[0]-i,t[1]=this._data[1]-o,t[2]=this._data[2]-a,t[3]=this._data[0]+i,t[4]=this._data[1]+o,t[5]=this._data[2]+a}transform(t,e,n,r=0,i=(0,l._s)(n),o=(0,l._s)(e),s=(0,m.Mx)(e,o)){if(n===i)e.isGeographic?function(t,e,n,r,i=(0,l._s)(n)){const o=(0,d.e0)(n),s=1+Math.max(0,r)/(o.radius+t.centerZ);t.getCenter(Bt),Bt[2]+=r,(0,b.projectBuffer)(Bt,n,0,Bt,i,0,1),e.center=Bt;const u=t.getQuaternion(Mt);e.quaternion=u,(0,a.fO)(St,u),(0,c.s)(Yt,0,0,1),(0,c.r)(Yt,Yt,St);const h=t.getHalfSize(Vt);(0,c.s)(Yt,h[0]*Math.abs(Yt[0]),h[1]*Math.abs(Yt[1]),h[2]*Math.abs(Yt[2])),(0,c.h)(Yt,Yt,o.inverseFlattening),(0,c.g)(Yt,h,Yt),e.halfSize=(0,c.h)(Yt,Yt,s)}(this,t,e,r,o):function(t,e,n,r,i=(0,l._s)(n),o=(0,m.Mx)(n,i)){t.getCorners(Nt),t.getCenter(Bt),Bt[2]+=r,(0,g.y)(n,Bt,qt,i),e.setCenter(qt[12],qt[13],qt[14]);const s=2*Math.sqrt(1+qt[0]+qt[5]+qt[10]);St[0]=(qt[6]-qt[9])/s,St[1]=(qt[8]-qt[2])/s,St[2]=(qt[1]-qt[4])/s,St[3]=.25*s;const u=t.getQuaternion(Mt);e.quaternion=(0,a.iW)(St,St,u),(0,a.fO)(St,St),(0,c.s)(Dt,0,0,0);const h=e.getCenter(Lt);for(const t of Nt)t[2]+=r,o(t,0,t,0),(0,c.y)(Yt,t,h),(0,c.r)(Yt,Yt,St),(0,c.u)(Yt,Yt),(0,c.B)(Dt,Dt,Yt);e.halfSize=Dt}(this,t,e,r,o,s);else if(e.isWGS84&&(n.isWebMercator||(0,y.GK)(n)))!function(t,e,n,r,i){e.getCenter(Tt),Tt[2]+=i;const o=(0,l._s)(n);(0,b.projectBuffer)(Tt,t,0,Tt,o,0,1),At(o,e,Tt,n,r)}(e,this,n,t,r);else if(e.isWebMercator&&(0,y.GK)(n))!function(t,e,n,r,i){e.getCenter(Tt),Tt[2]+=i,At(t,e,Tt,n,r)}(e,this,n,t,r);else{const i=this.getCenter(Tt);i[2]+=r,(0,b.projectBuffer)(i,e,0,i,n,0,1),t.center=i,this!==t&&(t.quaternion=this.getQuaternion(Mt),t.halfSize=this.getHalfSize(Vt))}}}const St=(0,s.Su)(),Mt=(0,s.Su)(),Ct=(0,s.Su)(),Ut=(0,u.Su)(),Pt=(0,u.Su)(),zt=(0,f.Su)();function It(t,e=new _t){return function(t,e){const{data:n,size:r}=t,i=n.length/r;if(i<=0)return;const o=new ct(t);ft(U,o.minProj,o.maxProj),lt(U,U,.5),dt(P,o.maxProj,o.minProj);const a=ht(P),s=new ut;s.quality=a,i<14&&(t=new M.Y(new Float64Array(o.buffer,112,42),3));const c=(0,u.Su)(),h=(0,u.Su)(),f=(0,u.Su)(),d=(0,u.Su)(),l=(0,u.Su)(),g=(0,u.Su)(),b=(0,u.Su)();switch(z(o,t,b,c,h,f,d,l,g,s)){case 1:return void K(U,P,e);case 2:return void tt(t,d,e)}T(t,b,c,h,f,d,l,g,s),et(t,s.b0,s.b1,s.b2,Q,J);const m=(0,u.Su)();dt(m,J,Q),s.quality=ht(m),s.quality<a?st(s.b0,s.b1,s.b2,Q,J,m,e):K(U,P,e)}(t,e),e}const vt=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],xt=(()=>{const t=new Int8Array(162);let e=0;const n=n=>{for(let r=0;r<n.length;r++)t[e+r]=n[r];e+=6};return n([6,2,3,1,5,4]),n([0,2,3,1,5,4]),n([0,2,3,7,5,4]),n([0,1,3,2,6,4]),n([0,1,3,2,0,0]),n([0,1,5,7,3,2]),n([0,1,3,7,6,4]),n([0,1,3,7,6,2]),n([0,1,5,7,6,2]),n([0,1,5,4,6,2]),n([0,1,5,4,0,0]),n([0,1,3,7,5,4]),n([0,2,6,4,0,0]),n([0,0,0,0,0,0]),n([1,3,7,5,0,0]),n([2,3,7,6,4,0]),n([2,3,7,6,0,0]),n([2,3,1,5,7,6]),n([0,1,5,7,6,2]),n([0,1,5,7,6,4]),n([0,1,3,7,6,4]),n([4,5,7,6,2,0]),n([4,5,7,6,0,0]),n([4,5,1,3,7,6]),n([0,2,3,7,5,4]),n([6,2,3,7,5,4]),n([6,2,3,1,5,4]),t})();function jt(t,e,n,r,i){const o=t.getQuaternion(Mt);i.quaternion=o,(0,a.fO)(St,o);const s=t.getCenter(Tt),h=t.getHalfSize(Vt);if(r===_.UZ.Global){(0,c.r)(Yt,s,St),(0,c.u)(Dt,Yt),(0,c.x)(kt,Dt,h),(0,c.y)(kt,Dt,kt);const r=(0,c.l)(kt);(0,c.g)(kt,Dt,h);const o=(0,c.l)(kt);if(r<n)i.center=s,(0,c.s)(Yt,n,n,n),i.halfSize=(0,c.g)(Yt,h,Yt);else{const a=o>0?1+e/o:1,s=r>0?1+n/r:1,u=(s+a)/2,f=(s-a)/2;(0,c.h)(kt,Dt,f),i.halfSize=(0,c.q)(kt,kt,h,u),(0,c.h)(kt,Dt,u),(0,c.q)(kt,kt,h,f),(0,c.z)(Yt,Yt),(0,c.A)(Yt,kt,Yt);const d=t.getQuaternion(Ct);i.center=(0,c.r)(Yt,Yt,d)}}else{i.center=(0,c.q)(Yt,s,u.wx,(n+e)/2);const t=(0,c.r)(Yt,u.wx,St);(0,c.u)(t,t),i.halfSize=(0,c.q)(Dt,h,t,(n-e)/2)}return i}function At(t,e,n,i,o){const a=e.getQuaternion(Mt),s=(0,r.KU)(Et,a),c=e.getHalfSize(Vt);for(let t=0;t<8;++t){for(let e=0;e<3;++e)Bt[e]=c[e]*(0!=(t&1<<e)?-1:1);for(let e=0;e<3;++e){let r=n[e];for(let t=0;t<3;++t)r+=Bt[t]*s[3*t+e];Ot[3*t+e]=r}}(0,b.projectBuffer)(Ot,t,0,Ot,i,0,8),It(Ft,o)}const Ot=new Array(24),Ft=new M.Y(Ot,3),Bt=(0,u.Su)(),Tt=(0,u.Su)(),Lt=(0,u.Su)(),Vt=(0,u.Su)(),Et=(0,i.Su)(),qt=(0,o.Su)(),Nt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Yt=(0,u.Su)(),Dt=(0,u.Su)(),kt=(0,u.Su)(),Ht=(0,u.WK)(-1,-1,-1)},21288:(t,e,n)=>{var r;n.d(e,{UZ:()=>r}),function(t){t[t.Global=1]="Global",t[t.Local=2]="Local"}(r||(r={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3180],{68612:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,s,c){return[t,n,e,r,o,a,u,s,c]}e.d(n,{IJ:()=>a,Su:()=>r,WK:()=>o});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,n){return new Float64Array(t,n,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,16)},fromValues:function(t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I){return[t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,n,e)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},85256:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function a(){return o(1,1)}function u(){return o(1,0)}function s(){return o(0,1)}e.d(n,{Qw:()=>c,Su:()=>r,WK:()=>o});const c=a(),i=u(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:i,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,n,e)=>{e.d(n,{KU:()=>f,QT:()=>E,S_:()=>s,WO:()=>a,_7:()=>c,aU:()=>l,iW:()=>i,kr:()=>o,oL:()=>u,yy:()=>M});var r=e(47364);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,u,s,c,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=s,t[7]=c,t[8]=i,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c;let E=e*f+r*M+o*h;return E?(E=1/E,t[0]=f*E,t[1]=(-l*r+o*i)*E,t[2]=(s*r-o*u)*E,t[3]=M*E,t[4]=(l*e-o*c)*E,t[5]=(-s*e+o*a)*E,t[6]=h*E,t[7]=(-i*e+r*c)*E,t[8]=(u*e-r*a)*E,t):null}function c(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8];return t[0]=u*l-s*i,t[1]=o*i-r*l,t[2]=r*s-o*u,t[3]=s*c-a*l,t[4]=e*l-o*c,t[5]=o*a-e*s,t[6]=a*i-u*c,t[7]=r*c-e*i,t[8]=e*u-r*a,t}function i(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1],E=e[2],I=e[3],S=e[4],O=e[5],T=e[6],A=e[7],N=e[8];return t[0]=M*r+h*u+E*i,t[1]=M*o+h*s+E*l,t[2]=M*a+h*c+E*f,t[3]=I*r+S*u+O*i,t[4]=I*o+S*s+O*l,t[5]=I*a+S*c+O*f,t[6]=T*r+A*u+N*i,t[7]=T*o+A*s+N*l,t[8]=T*a+A*c+N*f,t}function l(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,s=r+r,c=o+o,i=e*u,l=r*u,f=r*s,M=o*u,h=o*s,E=o*c,I=a*u,S=a*s,O=a*c;return t[0]=1-f-E,t[3]=l-O,t[6]=M+S,t[1]=l+O,t[4]=1-i-E,t[7]=h-I,t[2]=M-S,t[5]=h+I,t[8]=1-i-f,t}function M(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=n[9],M=n[10],h=n[11],E=n[12],I=n[13],S=n[14],O=n[15],T=e*s-r*u,A=e*c-o*u,N=e*i-a*u,m=r*c-o*s,R=r*i-a*s,b=o*i-a*c,d=l*I-f*E,_=l*S-M*E,C=l*O-h*E,L=f*S-M*I,P=f*O-h*I,p=M*O-h*S;let F=T*p-A*P+N*L+m*C-R*_+b*d;return F?(F=1/F,t[0]=(s*p-c*P+i*L)*F,t[1]=(c*C-u*p-i*_)*F,t[2]=(u*P-s*C+i*d)*F,t[3]=(o*P-r*p-a*L)*F,t[4]=(e*p-o*C+a*_)*F,t[5]=(r*C-e*P-a*d)*F,t[6]=(I*b-S*R+O*m)*F,t[7]=(S*N-E*b-O*A)*F,t[8]=(E*R-I*N+O*T)*F,t):null}function h(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}function E(t){const n=(0,r.Au)(),e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+i*i))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n}const I=i,S=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],s=t[6],c=t[7],i=t[8];return n*(i*a-u*c)+e*(-i*o+u*s)+r*(c*o-a*s)},equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8],M=n[0],h=n[1],E=n[2],I=n[3],S=n[4],O=n[5],T=n[6],A=n[7],N=n[8],m=(0,r.Au)();return Math.abs(e-M)<=m*Math.max(1,Math.abs(e),Math.abs(M))&&Math.abs(o-h)<=m*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-E)<=m*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(u-I)<=m*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-S)<=m*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-O)<=m*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(i-T)<=m*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(l-A)<=m*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-N)<=m*Math.max(1,Math.abs(f),Math.abs(N))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:E,mul:I,multiply:i,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],s=n[6],c=n[8],i=n[9],l=n[10],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c,E=e*f+r*M+o*h;if(!E)return null;const I=1/E;return t[0]=f*I,t[1]=(-l*r+o*i)*I,t[2]=(s*r-o*u)*I,t[3]=M*I,t[4]=(l*e-o*c)*I,t[5]=(-s*e+o*a)*I,t[6]=h*I,t[7]=(-i*e+r*c)*I,t[8]=(u*e-r*a)*I,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=Math.sin(e),h=Math.cos(e);return t[0]=h*r+M*u,t[1]=h*o+M*s,t[2]=h*a+M*c,t[3]=h*u-M*r,t[4]=h*s-M*o,t[5]=h*c-M*a,t[6]=i,t[7]=l,t[8]=f,t},scale:l,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:S,subtract:h,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=s,t[5]=c,t[6]=M*r+h*u+i,t[7]=M*o+h*s+l,t[8]=M*a+h*c+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},41512:(t,n,e)=>{e.d(n,{C0:()=>l,WO:()=>O,Wu:()=>I,fO:()=>h,iW:()=>f,sF:()=>P,yG:()=>i});var r=e(68612),o=e(2620),a=e(62484),u=e(47364),s=e(98472),c=e(74784);function i(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function l(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,u.Au)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=e[0],c=e[1],i=e[2],l=e[3];return t[0]=r*l+u*s+o*i-a*c,t[1]=o*l+u*c+a*s-r*i,t[2]=a*l+u*i+r*c-o*s,t[3]=u*l-r*s-o*c-a*i,t}function M(t,n,e,r){const o=n[0],a=n[1],s=n[2],c=n[3];let i,l,f,M,h,E=e[0],I=e[1],S=e[2],O=e[3];return l=o*E+a*I+s*S+c*O,l<0&&(l=-l,E=-E,I=-I,S=-S,O=-O),1-l>(0,u.Au)()?(i=Math.acos(l),f=Math.sin(i),M=Math.sin((1-r)*i)/f,h=Math.sin(r*i)/f):(M=1-r,h=r),t[0]=M*o+h*E,t[1]=M*a+h*I,t[2]=M*s+h*S,t[3]=M*c+h*O,t}function h(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function E(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const o=(e+1)%3,a=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*o+o]-n[3*a+a]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*o+a]-n[3*a+o])*r,t[o]=(n[3*o+e]+n[3*e+o])*r,t[a]=(n[3*a+e]+n[3*e+a])*r}return t}function I(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const a=Math.sin(n),u=Math.cos(n),s=Math.sin(e),c=Math.cos(e),i=Math.sin(r),l=Math.cos(r);return t[0]=a*c*l-u*s*i,t[1]=u*s*l+a*c*i,t[2]=u*c*i-a*s*l,t[3]=u*c*l+a*s*i,t}const S=c.c,O=c.s,T=c.g,A=f,N=c.d,m=c.h,R=c.l,b=c.i,d=b,_=c.j,C=_,L=c.n,P=c.a,p=c.e,F=(0,a.Su)(),y=(0,a.WK)(1,0,0),g=(0,a.WK)(0,1,0),w=(0,o.Su)(),D=(0,o.Su)(),U=(0,r.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:T,calculateW:function(t,n){const e=n[0],r=n[1],o=n[2];return t[0]=e,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-o*o)),t},conjugate:h,copy:S,dot:m,equals:p,exactEquals:P,fromEuler:I,fromMat3:E,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e*e+r*r+o*o+a*a,s=u?1/u:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-o*s,t[3]=a*s,t},len:d,length:b,lerp:R,mul:A,multiply:f,normalize:L,random:function(t){const n=u.QR,e=n(),r=n(),o=n(),a=Math.sqrt(1-e),s=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+u*s,t[1]=o*c+a*s,t[2]=a*c-o*s,t[3]=u*c-r*s,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c-a*s,t[1]=o*c+u*s,t[2]=a*c+r*s,t[3]=u*c-o*s,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+o*s,t[1]=o*c-r*s,t[2]=a*c+u*s,t[3]=u*c-a*s,t},rotationTo:function(t,n,e){const r=(0,s.j)(n,e);return r<-.999999?((0,s.b)(F,y,n),(0,s.C)(F)<1e-6&&(0,s.b)(F,g,n),(0,s.n)(F,F),i(t,F,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(F,n,e),t[0]=F[0],t[1]=F[1],t[2]=F[2],t[3]=1+r,L(t,t))},scale:N,set:O,setAxes:function(t,n,e,r){const o=U;return o[0]=e[0],o[3]=e[1],o[6]=e[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],L(t,E(t,o))},setAxisAngle:i,slerp:M,sqlerp:function(t,n,e,r,o,a){return M(w,n,o,a),M(D,e,r,a),M(t,w,D,2*a*(1-a)),t},sqrLen:C,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},51120:(t,n,e)=>{e.d(n,{y:()=>i});var r=e(53648),o=e(15008),a=e(62484);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),a=Math.sin(n),u=Math.cos(n),s=e;return s[0]=-r,s[4]=-a*o,s[8]=u*o,s[12]=0,s[1]=o,s[5]=-a*r,s[9]=u*r,s[13]=0,s[2]=0,s[6]=u,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(38380),c=e(60544);function i(t,n,e,r){if(null==t||null==r)return!1;const a=(0,s.Se)(t,s.Wy),i=(0,s.Se)(r,s.mq);if(a===i&&!l(i)&&(a!==s.o3.UNKNOWN||(0,c.yK)(t,r)))return(0,o.mu)(e,n),!0;if(l(i)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),u(f*M[0],f*M[1],e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}if((i===s.o3.WEB_MERCATOR||i===s.o3.PLATE_CARREE||i===s.o3.WGS84)&&(a===s.o3.WGS84||a===s.o3.CGCS2000&&i===s.o3.PLATE_CARREE||a===s.o3.SPHERICAL_ECEF||a===s.o3.WEB_MERCATOR)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),a===s.o3.SPHERICAL_ECEF?function(t,n,e){u(t,n,e),(0,o.oL)(e,e)}(f*M[0],f*M[1],e):(0,o.ZX)(e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}return!1}function l(t){return t===s.o3.SPHERICAL_ECEF||t===s.o3.SPHERICAL_MARS_PCPF||t===s.o3.SPHERICAL_MOON_PCPF}const f=(0,r.EF)(1),M=(0,a.Su)(),h=(0,a.Su)()},82448:(t,n,e)=>{e.d(n,{_s:()=>i});var r=e(22080),o=e(56156),a=e(60544);const u=new o.c(r._),s=new o.c(r.IP),c=new o.c(r.Om);function i(t){const n=l.get(t);if(n)return n;let e=u;if(t)if(t===s)e=s;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.cJ)(n)||(0,a.cJ)(r)?e=s:((0,a.C_)(n)||(0,a.C_)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===f?e=s:t===M&&(e=c)}}}return l.set(t,e),e}new o.c(r.MJ);const l=new Map,f=s.wkt.toUpperCase(),M=c.wkt.toUpperCase()},58632:(t,n,e)=>{e.d(n,{Su:()=>a,XX:()=>s,Oq:()=>u}),e(53648);var r=e(98472),o=e(62484);function a(t=E){return[t[0],t[1],t[2],t[3]]}function u(t){return t}function s(t,n,e,o=0,u=Math.floor(e*(1/3)),E=Math.floor(e*(2/3))){if(e<3)return!1;n(i,o);let I=u,S=!1;for(;I<e-1&&!S;)n(l,I),I++,S=!(0,r.i)(i,l);if(!S)return!1;for(I=Math.max(I,E),S=!1;I<e&&!S;)n(f,I),I++,(0,r.f)(M,i,l),(0,r.n)(M,M),(0,r.f)(h,l,f),(0,r.n)(h,h),S=!(0,r.i)(i,f)&&!(0,r.i)(l,f)&&Math.abs((0,r.j)(M,h))<c;return S?(function(t,n,e,r=a()){const o=e[0]-n[0],u=e[1]-n[1],s=e[2]-n[2],c=t[0]-n[0],i=t[1]-n[1],l=t[2]-n[2],f=u*l-s*i,M=s*c-o*l,h=o*i-u*c,E=f*f+M*M+h*h,I=Math.abs(E-1)>1e-5&&E>1e-12?1/Math.sqrt(E):1;r[0]=f*I,r[1]=M*I,r[2]=h*I,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(i,l,f,t),!0):(0!==o||1!==u||2!==E)&&s(t,n,e,0,1,2)}e(74784),e(48880),e(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const c=.99619469809,i=(0,o.Su)(),l=(0,o.Su)(),f=(0,o.Su)(),M=(0,o.Su)(),h=(0,o.Su)(),E=[0,0,1,0];var I,S;(S=I||(I={}))[S.NONE=0]="NONE",S[S.CLAMP=1]="CLAMP",S[S.INFINITE_MIN=4]="INFINITE_MIN",S[S.INFINITE_MAX=8]="INFINITE_MAX",I.INFINITE_MIN,I.INFINITE_MAX,I.INFINITE_MAX},48880:(t,n,e)=>{e.d(n,{i4:()=>u});var r=e(53648),o=e(98472),a=e(62484);function u(t,n){const e=(0,o.j)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,r.Uj)(e)}(0,a.Su)(),(0,a.Su)()},20136:(t,n,e)=>{e.d(n,{SW:()=>M,QX:()=>h,Wq:()=>f});var r=e(52324),o=e(68612),a=e(87104),u=e(2620),s=e(85256),c=e(62484),i=e(37008);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(s.Su)}static createVec3f64(){return new l(c.Su)}static createVec4f64(){return new l(i.Su)}static createMat3f64(){return new l(o.Su)}static createMat4f64(){return new l(a.Su)}static createQuatf64(){return new l(u.Su)}get test(){return{length:this._items.length}}}l.createVec2f64();const f=l.createVec3f64(),M=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64()),h=l.createQuatf64()},89560:(t,n,e)=>{e.d(n,{O:()=>o,Y:()=>r});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class o extends r{constructor(t,n,e,r=!1,o=e){super(t,e,o),this.indices=n,this.exclusive=r}}},4636:(t,n,e)=>{var r;e.d(n,{K:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2732],{98472:(t,n,e)=>{e.d(n,{A:()=>A,B:()=>N,C:()=>y,D:()=>B,G:()=>R,a:()=>f,b:()=>L,c:()=>_,e:()=>D,f:()=>T,g:()=>s,h:()=>S,i:()=>G,j:()=>l,k:()=>h,l:()=>o,m:()=>H,n:()=>M,o:()=>C,p:()=>I,q:()=>O,r:()=>P,s:()=>i,t:()=>d,u:()=>c,v:()=>b,w:()=>V,x:()=>a,y:()=>m,z:()=>u});var r=e(62484),E=e(47364);function o(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function _(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function T(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function A(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function R(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function c(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function u(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function a(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function N(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function S(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function O(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function I(t,n){const e=n[0]-t[0],r=n[1]-t[1],E=n[2]-t[2];return Math.sqrt(e*e+r*r+E*E)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1],E=n[2]-t[2];return e*e+r*r+E*E}function C(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function M(t,n){const e=n[0],r=n[1],E=n[2];let o=e*e+r*r+E*E;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function l(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function L(t,n,e){const r=n[0],E=n[1],o=n[2],_=e[0],i=e[1],s=e[2];return t[0]=E*s-o*i,t[1]=o*_-r*s,t[2]=r*i-E*_,t}function h(t,n,e,r){const E=n[0],o=n[1],_=n[2];return t[0]=E+r*(e[0]-E),t[1]=o+r*(e[1]-o),t[2]=_+r*(e[2]-_),t}function D(t,n,e){const r=n[0],E=n[1],o=n[2];return t[0]=e[0]*r+e[4]*E+e[8]*o+e[12],t[1]=e[1]*r+e[5]*E+e[9]*o+e[13],t[2]=e[2]*r+e[6]*E+e[10]*o+e[14],t}function d(t,n,e){const r=n[0],E=n[1],o=n[2];return t[0]=r*e[0]+E*e[3]+o*e[6],t[1]=r*e[1]+E*e[4]+o*e[7],t[2]=r*e[2]+E*e[5]+o*e[8],t}function P(t,n,e){const r=e[0],E=e[1],o=e[2],_=e[3],i=n[0],s=n[1],T=n[2],A=E*T-o*s,R=o*i-r*T,c=r*s-E*i,u=E*c-o*R,a=o*A-r*c,N=r*R-E*A,S=2*_;return t[0]=i+A*S+2*u,t[1]=s+R*S+2*a,t[2]=T+c*S+2*N,t}const U=(0,r.Su)(),F=(0,r.Su)();function G(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function B(t,n,e){const r=e[0]-n[0],E=e[1]-n[1],o=e[2]-n[2];let _=r*r+E*E+o*o;return _>0?(_=1/Math.sqrt(_),t[0]=r*_,t[1]=E*_,t[2]=o*_,t):(t[0]=0,t[1]=0,t[2]=0,t)}const m=T,p=A,g=R,H=I,b=f,y=o,V=C;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:s,angle:function(t,n){M(U,t),M(F,n);const e=l(U,F);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,E,o){const _=1-o,i=_*_,s=o*o,T=i*_,A=3*o*i,R=3*s*_,c=s*o;return t[0]=n[0]*T+e[0]*A+r[0]*R+E[0]*c,t[1]=n[1]*T+e[1]*A+r[1]*R+E[1]*c,t[2]=n[2]*T+e[2]*A+r[2]*R+E[2]*c,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},copy:_,cross:L,direction:B,dist:H,distance:I,div:g,divide:R,dot:l,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],o=t[2],_=n[0],i=n[1],s=n[2],T=(0,E.Au)();return Math.abs(e-_)<=T*Math.max(1,Math.abs(e),Math.abs(_))&&Math.abs(r-i)<=T*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-s)<=T*Math.max(1,Math.abs(o),Math.abs(s))},exactEquals:G,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,E,o){const _=o*o,i=_*(2*o-3)+1,s=_*(o-2)+o,T=_*(o-1),A=_*(3-2*o);return t[0]=n[0]*i+e[0]*s+r[0]*T+E[0]*A,t[1]=n[1]*i+e[1]*s+r[1]*T+E[1]*A,t[2]=n[2]*i+e[2]*s+r[2]*T+E[2]*A,t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},len:y,length:o,lerp:h,max:N,min:a,mul:p,multiply:A,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},normalize:M,random:function(t,n){n=n||1;const e=E.QR,r=2*e()*Math.PI,o=2*e()-1,_=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*_,t[1]=Math.sin(r)*_,t[2]=o*n,t},rotateX:function(t,n,e,r){const E=[],o=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],o[0]=E[0],o[1]=E[1]*Math.cos(r)-E[2]*Math.sin(r),o[2]=E[1]*Math.sin(r)+E[2]*Math.cos(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateY:function(t,n,e,r){const E=[],o=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],o[0]=E[2]*Math.sin(r)+E[0]*Math.cos(r),o[1]=E[1],o[2]=E[2]*Math.cos(r)-E[0]*Math.sin(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateZ:function(t,n,e,r){const E=[],o=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],o[0]=E[0]*Math.cos(r)-E[1]*Math.sin(r),o[1]=E[0]*Math.sin(r)+E[1]*Math.cos(r),o[2]=E[2],t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:S,scaleAndAdd:O,set:i,sign:u,sqrDist:b,sqrLen:V,squaredDistance:f,squaredLength:C,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:m,subtract:T,transformMat3:d,transformMat4:D,transformQuat:P},Symbol.toStringTag,{value:"Module"}))},85256:(t,n,e)=>{function r(){return[0,0]}function E(t,n){return[t,n]}function o(){return E(1,1)}function _(){return E(1,0)}function i(){return E(0,1)}e.d(n,{Qw:()=>s,Su:()=>r,WK:()=>E});const s=o(),T=_(),A=i();Object.freeze(Object.defineProperty({__proto__:null,ONES:s,UNIT_X:T,UNIT_Y:A,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:E,ones:o,unitX:_,unitY:i,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},62484:(t,n,e)=>{function r(){return[0,0,0]}function E(t){return[t[0],t[1],t[2]]}function o(t,n,e){return[t,n,e]}function _(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function i(){return o(1,1,1)}function s(){return o(1,0,0)}function T(){return o(0,1,0)}function A(){return o(0,0,1)}e.d(n,{IR:()=>a,Qw:()=>c,Su:()=>r,UV:()=>u,WK:()=>o,cX:()=>R,ct:()=>E,eu:()=>_,wx:()=>N});const R=[0,0,0],c=i(),u=s(),a=T(),N=A();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:a,UNIT_Z:N,ZEROS:R,clone:E,create:r,createView:function(t,n){return new Float64Array(t,n,3)},fromArray:_,fromValues:o,ones:i,unitX:s,unitY:T,unitZ:A,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},47364:(t,n,e)=>{e.d(n,{Af:()=>s,Au:()=>E,QR:()=>o,Yf:()=>T});let r=1e-6;function E(){return r}const o=Math.random,_=Math.PI/180,i=180/Math.PI;function s(t){return t*_}function T(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:E,setEpsilon:function(t){r=t},toDegree:T,toRadian:s},Symbol.toStringTag,{value:"Module"}))},37648:(t,n,e)=>{e.d(n,{Cq:()=>c,WO:()=>E,c9:()=>a,m4:()=>u,qy:()=>s});var r=e(47364);function E(t,n,e){return t[0]=n,t[1]=e,t}function o(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function _(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function i(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function s(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function T(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function A(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function R(t){const n=t[0],e=t[1];return n*n+e*e}function c(t,n,e,r){const E=n[0],o=n[1];return t[0]=E+r*(e[0]-E),t[1]=o+r*(e[1]-o),t}function u(t,n,e){const r=n[0],E=n[1];return t[0]=e[0]*r+e[2]*E+e[4],t[1]=e[1]*r+e[3]*E+e[5],t}function a(t,n,e,r){const E=n[0]-e[0],o=n[1]-e[1],_=Math.sin(r),i=Math.cos(r);return t[0]=E*i-o*_+e[0],t[1]=E*_+o*i+e[1],t}const N=A,S=o,O=_,I=i,f=s,C=T,M=R;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t},angle:function(t,n){const e=t[0],r=t[1],E=n[0],o=n[1];let _=e*e+r*r;_>0&&(_=1/Math.sqrt(_));let i=E*E+o*o;i>0&&(i=1/Math.sqrt(i));const s=(e*E+r*o)*_*i;return s>1?0:s<-1?Math.PI:Math.acos(s)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},copy:function(t,n){return t[0]=n[0],t[1]=n[1],t},cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:f,distance:s,div:I,divide:i,dot:function(t,n){return t[0]*n[0]+t[1]*n[1]},equals:function(t,n){const e=t[0],E=t[1],o=n[0],_=n[1],i=(0,r.Au)();return Math.abs(e-o)<=i*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(E-_)<=i*Math.max(1,Math.abs(E),Math.abs(_))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]},floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:N,length:A,lerp:c,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:O,multiply:_,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:function(t,n){const e=n[0],r=n[1];let E=e*e+r*r;return E>0&&(E=1/Math.sqrt(E),t[0]=n[0]*E,t[1]=n[1]*E),t},projectAndScale:function(t,n,e,r,E){let o=n[0]-e[0],_=n[1]-e[1];const i=(r[0]*o+r[1]*_)*(E-1);return o=r[0]*i,_=r[1]*i,t[0]=n[0]+o,t[1]=n[1]+_,t},random:function(t,n){n=n||1;const e=2*(0,r.QR)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:a,round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},scale:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t},scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},set:E,sqrDist:C,sqrLen:M,squaredDistance:T,squaredLength:R,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:S,subtract:o,transformMat2:function(t,n,e){const r=n[0],E=n[1];return t[0]=e[0]*r+e[2]*E,t[1]=e[1]*r+e[3]*E,t},transformMat2d:u,transformMat3:function(t,n,e){const r=n[0],E=n[1];return t[0]=e[0]*r+e[3]*E+e[6],t[1]=e[1]*r+e[4]*E+e[7],t},transformMat4:function(t,n,e){const r=n[0],E=n[1];return t[0]=e[0]*r+e[4]*E+e[12],t[1]=e[1]*r+e[5]*E+e[13],t}},Symbol.toStringTag,{value:"Module"}))},53648:(t,n,e)=>{e.d(n,{Cq:()=>i,EF:()=>T,Iv:()=>I,SE:()=>C,UB:()=>A,Uj:()=>R,aU:()=>s,gJ:()=>S,gP:()=>u,ig:()=>f,qk:()=>_,sj:()=>c,w7:()=>o});var r=e(98472);const E=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function _(t,n,e){return Math.min(Math.max(t,n),e)}function i(t,n,e){return t+(n-t)*e}function s(t,n,e,r,E){return i(r,E,(t-n)/(e-n))}function T(t){return t*Math.PI/180}function A(t){return 180*t/Math.PI}function R(t){return Math.acos(_(t,-1,1))}function c(t){return Math.asin(_(t,-1,1))}function u(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}const a=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const N=BigInt("1000000");function S(t){return O(Math.max(-C,Math.min(t,C)))}function O(t){return E[0]=t,E[0]}function I(t,n){const e=(0,r.l)(t),E=c(t[2]/e),o=Math.atan2(t[1]/e,t[0]/e);return(0,r.s)(n,e,E,o),n}function f(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(u(n,1)&&u(e,1)&&u(r,1))}!function(t){const n=function(t){return a.setFloat64(0,t),a.getBigInt64(0)}(t=Math.abs(t)),e=function(t){return a.setBigInt64(0,t),a.getFloat64(0)}(n<=N?N:n-N);Math.abs(t-e)}(1);const C=O(34028234663852886e22)},92896:(t,n,e)=>{e.d(n,{mc:()=>E});var r=e(72008);function E(t,n=!1){return t<=r._?n?new Array(t).fill(0):new Array(t):new Float32Array(t)}},98132:(t,n,e)=>{function r(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}e.d(n,{Ad:()=>r})},77080:(t,n,e)=>{e.d(n,{g:()=>o});var r=e(53648),E=e(97143);function o(t,n,e){const o=Array.isArray(t),A=o?t.length/n:t.byteLength/(4*n),R=o?t:new Uint32Array(t,0,A*n),c=e?.minReduction??0,u=e?.originalIndices||null,a=u?u.length:0,N=e?.componentOffsets||null;let S=0;if(N)for(let t=0;t<N.length-1;t++){const n=N[t+1]-N[t];n>S&&(S=n)}else S=A;const O=Math.floor(1.1*S)+1;(null==T||T.length<2*O)&&(T=new Uint32Array((0,r.w7)(2*O)));for(let t=0;t<2*O;t++)T[t]=0;let I=0;const f=!!N&&!!u,C=f?a:A;let M=(0,E.aw)(A);const l=new Uint32Array(a),L=1.96;let h=0!==c?Math.ceil(4*L*L/(c*c)*c*(1-c)):C,D=1,d=N?N[1]:C;for(let t=0;t<C;t++){if(t===h){const n=1-I/t;if(n+L*Math.sqrt(n*(1-n)/t)<c)return null;h*=2}if(t===d){for(let t=0;t<2*O;t++)T[t]=0;if(u)for(let t=N[D-1];t<N[D];t++)l[t]=M[u[t]];d=N[++D]}const e=f?u[t]:t,r=e*n,E=s(R,r,n);let o=E%O,i=I;for(;0!==T[2*o+1];){if(T[2*o]===E){const t=T[2*o+1]-1;if(_(R,r,t*n,n)){i=M[t];break}}o++,o>=O&&(o-=O)}i===I&&(T[2*o]=E,T[2*o+1]=e+1,I++),M[e]=i}if(0!==c&&1-I/A<c)return null;if(f){for(let t=N[D-1];t<l.length;t++)l[t]=M[u[t]];M=(0,E.Uv)(l)}const P=o?new Array(I):new Uint32Array(I*n);I=0;for(let t=0;t<C;t++)M[t]===I&&(i(R,(f?u[t]:t)*n,P,I*n,n),I++);if(u&&!f){const t=new Uint32Array(a);for(let n=0;n<t.length;n++)t[n]=M[u[n]];M=(0,E.Uv)(t)}return{buffer:Array.isArray(P)?P:P.buffer,indices:M,uniqueCount:I}}function _(t,n,e,r){for(let E=0;E<r;E++)if(t[n+E]!==t[e+E])return!1;return!0}function i(t,n,e,r,E){for(let o=0;o<E;o++)e[r+o]=t[n+o]}function s(t,n,e){let r=0;for(let E=0;E<e;E++)r=t[n+E]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let T=null},72364:(t,n,e)=>{e.d(n,{U1:()=>T,iC:()=>s});var r=e(71004),E=e(98132),o=e(90736);class _{constructor(t,n){this.layout=t,this.buffer="number"==typeof n?new ArrayBuffer(n*t.stride):n;for(const n of t.fields.keys()){const e=t.fields.get(n);this[n]=new e.constructor(this.buffer,e.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,n){const e=this[t];return e&&e.elementCount===n.ElementCount&&e.elementType===n.ElementType?e:null}slice(t,n){return new _(this.layout,this.buffer.slice(t*this.stride,n*this.stride))}copyFrom(t,n=0,e=0,r=t.count){const E=this.stride;if(E%4==0){const o=new Uint32Array(t.buffer,n*E,r*E/4);new Uint32Array(this.buffer,e*E,r*E/4).set(o)}else{const o=new Uint8Array(t.buffer,n*E,r*E);new Uint8Array(this.buffer,e*E,r*E).set(o)}return this}get usedMemory(){return this.byteLength}dispose(){}}class i{constructor(t=null){this._stride=0,this._lastAligned=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach((t=>this._fields.set(t[0],{...t[1],constructor:c(t[1].constructor)}))))}vec2f(t,n){return this._appendField(t,r.U7,n),this}vec2f64(t,n){return this._appendField(t,r.wT,n),this}vec3f(t,n){return this._appendField(t,r.Yj,n),this}vec3f64(t,n){return this._appendField(t,r.Ax,n),this}vec4f(t,n){return this._appendField(t,r._5,n),this}vec4f64(t,n){return this._appendField(t,r.Ip,n),this}mat3f(t,n){return this._appendField(t,r.Ko,n),this}mat3f64(t,n){return this._appendField(t,r.m_,n),this}mat4f(t,n){return this._appendField(t,r.IL,n),this}mat4f64(t,n){return this._appendField(t,r.mF,n),this}vec4u8(t,n){return this._appendField(t,r.sb,n),this}f32(t,n){return this._appendField(t,r.AZ,n),this}f64(t,n){return this._appendField(t,r.oN,n),this}u8(t,n){return this._appendField(t,r.Kg,n),this}u16(t,n){return this._appendField(t,r.E_,n),this}i8(t,n){return this._appendField(t,r.kV,n),this}vec2i8(t,n){return this._appendField(t,r.oR,n),this}vec2i16(t,n){return this._appendField(t,r.iN,n),this}vec2u8(t,n){return this._appendField(t,r.eS,n),this}vec4u16(t,n){return this._appendField(t,r.Ig,n),this}u32(t,n){return this._appendField(t,r.Ym,n),this}_appendField(t,n,e){if(this._fields.has(t))return void(0,o.Uc)(!1,`${t} already added to vertex buffer layout`);const r=n.ElementCount*(0,E.Ad)(n.ElementType),_=this._stride;this._stride+=r,this._fields.set(t,{size:r,constructor:n,offset:_,optional:e})}createBuffer(t){return new _(this,t)}createView(t){return new _(this,t)}clone(){const t=new i;return t._stride=this._stride,t._fields=new Map,this._fields.forEach(((n,e)=>t._fields.set(e,n))),t.BufferType=this.BufferType,t}get stride(){if(this._lastAligned!==this._fields.size){let t=1;this._fields.forEach((n=>t=Math.max(t,(0,E.Ad)(n.constructor.ElementType)))),this._stride=Math.floor((this._stride+t-1)/t)*t,this._lastAligned=this._fields.size}return this._stride}get fields(){return this._fields}}function s(){return new i}class T{constructor(t){this.fields=new Array,t.fields.forEach(((t,n)=>{const e={...t,constructor:R(t.constructor)};this.fields.push([n,e])})),this.stride=t.stride}}const A=[r.AZ,r.U7,r.Yj,r._5,r.Ko,r.IL,r.oN,r.wT,r.Ax,r.Ip,r.m_,r.mF,r.Kg,r.eS,r.IN,r.sb,r.E_,r.kg,r.k5,r.Ig,r.Ym,r.qZ,r.ER,r.q$,r.kV,r.oR,r.Oq,r.mq,r.Mt,r.iN,r.g7,r.OS,r.Ep,r.mI,r.Yv,r.i9];function R(t){return`${t.ElementType}_${t.ElementCount}`}function c(t){return u.get(t)}const u=new Map;A.forEach((t=>u.set(R(t),t)))},73440:(t,n,e)=>{e.d(n,{W:()=>o});var r=e(77800),E=e(91811);function o(t,n=0){const e=t.stride;return Array.from(t.fields.keys()).map((r=>{const o=t.fields.get(r),i=o.constructor.ElementCount,s=_(o.constructor.ElementType),T=o.offset,A=!(!o.optional||!o.optional.glNormalized);return new E.q(r,i,s,T,e,A,n)}))}function _(t){const n=i[t];if(n)return n;throw new Error("BufferType not supported in WebGL")}const i={u8:r.Ck.UNSIGNED_BYTE,u16:r.Ck.UNSIGNED_SHORT,u32:r.Ck.UNSIGNED_INT,i8:r.Ck.BYTE,i16:r.Ck.SHORT,i32:r.Ck.INT,f32:r.Ck.FLOAT}},4636:(t,n,e)=>{var r;e.d(n,{K:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))},80036:(t,n,e)=>{e.d(n,{If:()=>_,sn:()=>s,wj:()=>T});var r=e(73440),E=e(72364),o=e(4636);const _=(0,E.iC)().vec3f(o.K.POSITION).u16(o.K.COMPONENTINDEX),i=(0,E.iC)().vec2u8(o.K.SIDENESS),s=((0,r.W)(i),(0,E.iC)().vec3f(o.K.POSITION0).vec3f(o.K.POSITION1).vec2i16(o.K.NORMALCOMPRESSED).u16(o.K.COMPONENTINDEX).u8(o.K.VARIANTOFFSET,{glNormalized:!0}).u8(o.K.VARIANTSTROKE).u8(o.K.VARIANTEXTENSION,{glNormalized:!0})),T=(0,E.iC)().vec3f(o.K.POSITION0).vec3f(o.K.POSITION1).vec2i16(o.K.NORMALCOMPRESSED).vec2i16(o.K.NORMAL2COMPRESSED).u16(o.K.COMPONENTINDEX).u8(o.K.VARIANTOFFSET,{glNormalized:!0}).u8(o.K.VARIANTSTROKE).u8(o.K.VARIANTEXTENSION,{glNormalized:!0});new Map([[o.K.POSITION0,0],[o.K.POSITION1,1],[o.K.COMPONENTINDEX,2],[o.K.VARIANTOFFSET,3],[o.K.VARIANTSTROKE,4],[o.K.VARIANTEXTENSION,5],[o.K.NORMALCOMPRESSED,6],[o.K.NORMAL2COMPRESSED,7],[o.K.SIDENESS,8]])},79968:(t,n,e)=>{e.d(n,{k:()=>A});var r=e(92400),E=e(53648),o=e(98472),_=e(62484);const i=-1;var s,T;function A(t,n,e,_=O){const s=t.vertices.position,T=t.vertices.componentIndex,A=(0,E.EF)(_.anglePlanar),S=(0,E.EF)(_.angleSignificantEdge),I=Math.cos(S),f=Math.cos(A),C=N.edge,M=C.position0,l=C.position1,L=C.faceNormal0,h=C.faceNormal1,D=a(t),d=function(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors;let E=0;for(let t=0;t<n;t++){const n=r[3*t],o=r[3*t+1],_=r[3*t+2],s=e[3*t],T=e[3*t+1],A=e[3*t+2];E+=n===i||s<T?1:0,E+=o===i||T<A?1:0,E+=_===i||A<s?1:0}const o=new Int32Array(4*E);let _=0;for(let t=0;t<n;t++){const n=r[3*t],E=r[3*t+1],s=r[3*t+2],T=e[3*t],A=e[3*t+1],R=e[3*t+2];(n===i||T<A)&&(o[_++]=T,o[_++]=A,o[_++]=t,o[_++]=n),(E===i||A<R)&&(o[_++]=A,o[_++]=R,o[_++]=t,o[_++]=E),(s===i||R<T)&&(o[_++]=R,o[_++]=T,o[_++]=t,o[_++]=s)}return o}(t),P=d.length/4,U=n.allocate(P);let F=0;const G=P,B=e.allocate(G);let m=0,p=0,g=0;const H=(0,r.ik)(0,P),b=new Float32Array(P);b.forEach(((t,n,e)=>{s.getVec(d[4*n],M),s.getVec(d[4*n+1],l),e[n]=(0,o.p)(M,l)})),H.sort(((t,n)=>b[n]-b[t]));const y=new Array,V=new Array;for(let t=0;t<P;t++){const r=H[t],E=b[r],_=d[4*r],a=d[4*r+1],N=d[4*r+2],S=d[4*r+3],O=S===i;if(s.getVec(_,M),s.getVec(a,l),O)(0,o.s)(L,D[3*N],D[3*N+1],D[3*N+2]),(0,o.c)(h,L),C.componentIndex=T.get(_),C.cosAngle=(0,o.j)(L,h);else{if((0,o.s)(L,D[3*N],D[3*N+1],D[3*N+2]),(0,o.s)(h,D[3*S],D[3*S+1],D[3*S+2]),C.componentIndex=T.get(_),C.cosAngle=(0,o.j)(L,h),c(C,f))continue;C.cosAngle<-.9999&&(0,o.c)(h,L)}p+=E,g++,O||R(C,I)?(n.write(U,F++,C),y.push(E)):u(C,A)&&(e.write(B,m++,C),V.push(E))}const v=new Float32Array(y.reverse()),w=new Float32Array(V.reverse());return{regular:{instancesData:n.trim(U,F),lodInfo:{lengths:v}},silhouette:{instancesData:e.trim(B,m),lodInfo:{lengths:w}},averageEdgeLength:p/g}}function R(t,n){return t.cosAngle<n}function c(t,n){return t.cosAngle>n}function u(t,n){const e=(0,E.Uj)(t.cosAngle),r=N.fwd,_=N.ortho;return(0,o.D)(r,t.position1,t.position0),e*((0,o.j)((0,o.b)(_,t.faceNormal0,t.faceNormal1),r)>0?-1:1)>n}function a(t){const n=t.faces.length/3,e=t.vertices.position,r=t.faces,E=S.v0,_=S.v1,i=S.v2,s=new Float32Array(3*n);for(let t=0;t<n;t++){const n=r[3*t],T=r[3*t+1],A=r[3*t+2];e.getVec(n,E),e.getVec(T,_),e.getVec(A,i),(0,o.f)(_,_,E),(0,o.f)(i,i,E),(0,o.b)(E,_,i),(0,o.n)(E,E),s[3*t]=E[0],s[3*t+1]=E[1],s[3*t+2]=E[2]}return s}(T=s||(s={}))[T.SOLID=0]="SOLID",T[T.SKETCH=1]="SKETCH";const N={edge:{position0:(0,_.Su)(),position1:(0,_.Su)(),faceNormal0:(0,_.Su)(),faceNormal1:(0,_.Su)(),componentIndex:0,cosAngle:0},ortho:(0,_.Su)(),fwd:(0,_.Su)()},S={v0:(0,_.Su)(),v1:(0,_.Su)(),v2:(0,_.Su)()},O={anglePlanar:4,angleSignificantEdge:35}},75980:(t,n,e)=>{e.d(n,{Aj:()=>U,or:()=>g,In:()=>F,qu:()=>p});var r=e(77080);function E(t,n,e){const r=n/3,E=new Uint32Array(e+1),o=new Uint32Array(e+1),_=(t,n)=>{t<n?E[t+1]++:o[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],E=t[3*n+2];_(e,r),_(r,E),_(E,e)}let i=0,s=0;for(let t=0;t<e;t++){const n=E[t+1],e=o[t+1];E[t+1]=i,o[t+1]=s,i+=n,s+=e}const T=new Uint32Array(6*r),A=E[e],R=(t,n,e)=>{if(t<n){const r=E[t+1]++;T[2*r]=n,T[2*r+1]=e}else{const r=o[n+1]++;T[2*A+2*r]=t,T[2*A+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],E=t[3*n+2];R(e,r,n),R(r,E,n),R(E,e,n)}const c=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=T[e+2*t],r=T[e+2*t+1];let E=t-1;for(;E>=0&&T[e+2*E]>n;E--)T[e+2*E+2]=T[e+2*E],T[e+2*E+3]=T[e+2*E+1];T[e+2*E+2]=n,T[e+2*E+3]=r}};for(let t=0;t<e;t++)c(E[t],E[t+1]),c(A+o[t],A+o[t+1]);const u=new Int32Array(3*r),a=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,N=(t,n)=>{const e=a(t,n);u[3*n+e]=-1},S=(t,n,e,r)=>{const E=a(t,n);u[3*n+E]=r;const o=a(e,r);u[3*r+o]=n};for(let t=0;t<e;t++){let n=E[t];const e=E[t+1];let r=o[t];const _=o[t+1];for(;n<e&&r<_;){const e=T[2*n],E=T[2*A+2*r];e===E?(S(t,T[2*n+1],E,T[2*A+2*r+1]),n++,r++):e<E?(N(t,T[2*n+1]),n++):(N(E,T[2*A+2*r+1]),r++)}for(;n<e;)N(t,T[2*n+1]),n++;for(;r<_;)N(T[2*A+2*r],T[2*A+2*r+1]),r++}return u}var o=e(72364),_=e(4636),i=e(80036),s=e(72052),T=e(98472),A=e(62484),R=e(73440),c=e(53648);function u(t,n,e,r,E,o=2){const _=1/(Math.abs(e)+Math.abs(r)+Math.abs(E)),i=e*_,s=r*_,T=E<=0?(i>=0?1:-1)*(1-Math.abs(s)):i,A=E<=0?(s>=0?1:-1)*(1-Math.abs(i)):s,R=n*o;t[R]=a(T),t[R+1]=a(A)}function a(t){return(0,c.qk)(Math.round(32767*t),-32767,32767)}e(92896);class N{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?C:f}write(t,n,e){const r=this._edgeHashFunction(e);d.seed=r;const E=d.getIntRange(0,255),o=d.getIntRange(0,this.settings.variants-1),_=d.getFloat(),i=255*(.5*function(t,n){const e=t<0?-1:1;return Math.abs(t)**1.2*e}(-(1-Math.min(_/.7,1))+Math.max(0,_-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,E),t.variantStroke.set(n,o),t.variantExtension.set(n,i)}trim(t,n){return t.slice(0,n)}}const S=new Float32Array(6),O=new Uint32Array(S.buffer),I=new Uint32Array(1);function f(t){const n=S;n[0]=t.position0[0],n[1]=t.position0[1],n[2]=t.position0[2],n[3]=t.position1[0],n[4]=t.position1[1],n[5]=t.position1[2],I[0]=5381;for(let t=0;t<O.length;t++)I[0]=31*I[0]+O[t];return I[0]}function C(t){const n=S;n[0]=l(t.position0[0]),n[1]=l(t.position0[1]),n[2]=l(t.position0[2]),n[3]=l(t.position1[0]),n[4]=l(t.position1[1]),n[5]=l(t.position1[2]),I[0]=5381;for(let t=0;t<O.length;t++)I[0]=31*I[0]+O[t];return I[0]}const M=1e4;function l(t){return Math.round(t*M)/M}class L{constructor(){this._commonWriter=new N}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return i.sn.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,T.g)(D,e.faceNormal0,e.faceNormal1),(0,T.n)(D,D);const{typedBuffer:r,typedBufferStride:E}=t.normalCompressed;u(r,n,D[0],D[1],D[2],E)}trim(t,n){return this._commonWriter.trim(t,n)}}L.Layout=i.sn,L.glLayout=(0,R.W)(i.sn,1);class h{constructor(){this._commonWriter=new N}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return i.wj.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:E}=t.normalCompressed;u(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],E)}{const{typedBuffer:r,typedBufferStride:E}=t.normal2Compressed;u(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],E)}}trim(t,n){return this._commonWriter.trim(t,n)}}h.Layout=i.wj,h.glLayout=(0,R.W)(i.wj,1);const D=(0,A.Su)(),d=new s.c;var P=e(79968);function U(t){const n=F(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return B.updateSettings(t.writerSettings),m.updateSettings(t.writerSettings),(0,P.k)(n,B,m)}function F(t,n,e,o){if(n){const n=E(e,o,t.count);return new G(e,o,n,t)}const _=(0,r.g)(t.buffer,t.stride/4,{originalIndices:e,originalIndicesLength:o}),s=E(_.indices,o,_.uniqueCount);return{faces:_.indices,facesLength:_.indices.length,neighbors:s,vertices:i.If.createView(_.buffer)}}class G{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const B=new L,m=new h,p=(0,o.iC)().vec3f(_.K.POSITION0).vec3f(_.K.POSITION1),g=(0,o.iC)().vec3f(_.K.POSITION0).vec3f(_.K.POSITION1).u16(_.K.COMPONENTINDEX)},91811:(t,n,e)=>{e.d(n,{q:()=>r});class r{constructor(t,n,e,r,E,o=!1,_=0){this.name=t,this.count=n,this.type=e,this.offset=r,this.stride=E,this.normalized=o,this.divisor=_}}},77800:(t,n,e)=>{var r,E,o,_,i,s,T,A,R,c,u,a,N,S,O,I,f,C,M,l,L,h,D;e.d(n,{Ck:()=>A,GE:()=>d,Gs:()=>M,Id:()=>S,K:()=>i,OK:()=>I,QD:()=>c,Qb:()=>f,Qx:()=>h,Qz:()=>a,SC:()=>s,UV:()=>O,Ud:()=>u,Uf:()=>E,YT:()=>_,_m:()=>C,c5:()=>N,et:()=>R,kl:()=>l,sl:()=>r,sr:()=>P,vs:()=>T,w$:()=>o,y4:()=>L}),function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(r||(r={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(E||(E={})),function(t){t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(o||(o={})),function(t){t[t.ADD=32774]="ADD",t[t.MIN=32775]="MIN",t[t.MAX=32776]="MAX",t[t.SUBTRACT=32778]="SUBTRACT",t[t.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(_||(_={})),function(t){t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t[t.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",t[t.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",t[t.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",t[t.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",t[t.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(i||(i={})),function(t){t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(s||(s={})),function(t){t[t.CW=2304]="CW",t[t.CCW=2305]="CCW"}(T||(T={})),function(t){t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT"}(A||(A={})),function(t){t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS"}(R||(R={})),function(t){t[t.ZERO=0]="ZERO",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP"}(c||(c={})),function(t){t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(u||(u={})),function(t){t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(a||(a={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_3D=32879]="TEXTURE_3D",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(N||(N={})),function(t){t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.RED=6403]="RED",t[t.RG=33319]="RG",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER"}(S||(S={})),function(t){t[t.RGBA4=32854]="RGBA4",t[t.R16F=33325]="R16F",t[t.RG16F=33327]="RG16F",t[t.RGB32F=34837]="RGB32F",t[t.RGBA16F=34842]="RGBA16F",t[t.R32F=33326]="R32F",t[t.RG32F=33328]="RG32F",t[t.RGBA32F=34836]="RGBA32F",t[t.R11F_G11F_B10F=35898]="R11F_G11F_B10F",t[t.RGB8=32849]="RGB8",t[t.RGBA8=32856]="RGBA8",t[t.RGB5_A1=32855]="RGB5_A1",t[t.R8=33321]="R8",t[t.RG8=33323]="RG8",t[t.R8I=33329]="R8I",t[t.R8UI=33330]="R8UI",t[t.R16I=33331]="R16I",t[t.R16UI=33332]="R16UI",t[t.R32I=33333]="R32I",t[t.R32UI=33334]="R32UI",t[t.RG8I=33335]="RG8I",t[t.RG8UI=33336]="RG8UI",t[t.RG16I=33337]="RG16I",t[t.RG16UI=33338]="RG16UI",t[t.RG32I=33339]="RG32I",t[t.RG32UI=33340]="RG32UI",t[t.RGB16F=34843]="RGB16F",t[t.RGB9_E5=35901]="RGB9_E5",t[t.SRGB8=35905]="SRGB8",t[t.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",t[t.RGB565=36194]="RGB565",t[t.RGBA32UI=36208]="RGBA32UI",t[t.RGB32UI=36209]="RGB32UI",t[t.RGBA16UI=36214]="RGBA16UI",t[t.RGB16UI=36215]="RGB16UI",t[t.RGBA8UI=36220]="RGBA8UI",t[t.RGB8UI=36221]="RGB8UI",t[t.RGBA32I=36226]="RGBA32I",t[t.RGB32I=36227]="RGB32I",t[t.RGBA16I=36232]="RGBA16I",t[t.RGB16I=36233]="RGB16I",t[t.RGBA8I=36238]="RGBA8I",t[t.RGB8I=36239]="RGB8I",t[t.R8_SNORM=36756]="R8_SNORM",t[t.RG8_SNORM=36757]="RG8_SNORM",t[t.RGB8_SNORM=36758]="RGB8_SNORM",t[t.RGBA8_SNORM=36759]="RGBA8_SNORM",t[t.RGB10_A2=32857]="RGB10_A2",t[t.RGB10_A2UI=36975]="RGB10_A2UI"}(O||(O={})),function(t){t[t.FLOAT=5126]="FLOAT",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.INT=5124]="INT",t[t.HALF_FLOAT=5131]="HALF_FLOAT",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(I||(I={})),function(t){t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",t[t.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",t[t.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",t[t.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(f||(f={})),function(t){t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_READ=35045]="STATIC_READ",t[t.DYNAMIC_READ=35049]="DYNAMIC_READ",t[t.STREAM_READ=35041]="STREAM_READ",t[t.STATIC_COPY=35046]="STATIC_COPY",t[t.DYNAMIC_COPY=35050]="DYNAMIC_COPY",t[t.STREAM_COPY=35042]="STREAM_COPY"}(C||(C={})),function(t){t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER"}(M||(M={})),function(t){t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",t[t.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(t){t[t.Texture=0]="Texture",t[t.BufferObject=1]="BufferObject",t[t.VertexArrayObject=2]="VertexArrayObject",t[t.Shader=3]="Shader",t[t.Program=4]="Program",t[t.FramebufferObject=5]="FramebufferObject",t[t.Renderbuffer=6]="Renderbuffer",t[t.TransformFeedback=7]="TransformFeedback",t[t.Sync=8]="Sync",t[t.UNCOUNTED=9]="UNCOUNTED",t[t.LinesOfCode=9]="LinesOfCode",t[t.Uniform=10]="Uniform",t[t.COUNT=11]="COUNT"}(L||(L={})),function(t){t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",t[t.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",t[t.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",t[t.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",t[t.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",t[t.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",t[t.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",t[t.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",t[t.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",t[t.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",t[t.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",t[t.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",t[t.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",t[t.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",t[t.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(h||(h={})),function(t){t[t.NONE=0]="NONE",t[t.BACK=1029]="BACK"}(D||(D={}));const d=33306;var P,U,F,G,B,m,p;!function(t){t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(t){t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT=5124]="INT",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",t[t.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",t[t.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",t[t.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",t[t.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",t[t.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",t[t.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",t[t.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",t[t.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",t[t.SAMPLER_3D=35679]="SAMPLER_3D",t[t.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",t[t.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",t[t.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",t[t.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",t[t.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",t[t.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",t[t.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",t[t.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",t[t.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",t[t.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",t[t.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",t[t.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(t){t[t.OBJECT_TYPE=37138]="OBJECT_TYPE",t[t.SYNC_CONDITION=37139]="SYNC_CONDITION",t[t.SYNC_STATUS=37140]="SYNC_STATUS",t[t.SYNC_FLAGS=37141]="SYNC_FLAGS"}(F||(F={})),function(t){t[t.UNSIGNALED=37144]="UNSIGNALED",t[t.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(t){t[t.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",t[t.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",t[t.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",t[t.WAIT_FAILED=37149]="WAIT_FAILED"}(B||(B={})),function(t){t[t.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(t){t[t.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(p||(p={}))}}]);
|