@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([[8528,3645],{44247:(e,t,r)=>{async function n(e,t){const{WhereClause:n}=await Promise.all([r.e(3220),r.e(988)]).then(r.bind(r,63220));return n.create(e,t)}function i(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{_:()=>i,u:()=>n})},75824:(e,t,r)=>{r.d(t,{Md:()=>o,m0:()=>s,qG:()=>i});var n=r(39452);class i{}function o(e){return e instanceof n.C?e===i.instance:"unknown"===e?.toString().toLowerCase()}function s(e){return o(e)?i.instance:e}i.instance=new n._C("Etc/UTC")},77048:(e,t,r)=>{r.d(t,{C6:()=>c,FZ:()=>h,K:()=>v,K8:()=>a,MZ:()=>l,Qv:()=>m,Su:()=>i,UN:()=>q,WK:()=>o,WO:()=>d,WU:()=>s,eC:()=>u,is:()=>g,mK:()=>y,qe:()=>p,qy:()=>f,yK:()=>w});var n=r(95247);function i(e=q){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,o,s,l=i()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=o,l[5]=s,l}function s(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.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 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[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}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[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function p(e,t,r=0,n=t.length/3){let i=e[0],o=e[1],s=e[2],l=e[3],a=e[4],p=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),p=Math.max(p,t[r+3*e+2]);e[0]=i,e[1]=o,e[2]=s,e[3]=l,e[4]=a,e[5]=p}function u(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 y(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 d(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?d(e,v):i(v)}function m(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 f(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,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 n=0;n<e.length;n++)if(!r(e[n],t[n]))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],q=[0,0,0,0,0,0];i()},20480:(e,t,r)=>{r.d(t,{WW:()=>S});var n=r(6220),i=r(20744),o=r(66360),s=r(7488),l=r(48516),a=r(44048),p=r(60544),u=r(29120),c=(r(60708),r(2600)),y=r(6704),d=r(21980),h=r(28176),m=r(81976);const f=()=>o.c.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function v(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.c||e instanceof s.c)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw f().error(e),new i.c(e)}const r=(0,a.iM)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const i=e[n][0],o=e[n][1],s=e[n+1][0],l=e[n+1][1],a=Math.sqrt((s-i)*(s-i)+(l-o)*(l-o)),p=(l-o)/a,u=(s-i)/a,c=a/t;if(c>1){for(let e=1;e<=c-1;e++){const n=e*t,s=u*n+i,l=p*n+o;r.push([s,l])}const e=(a+Math.floor(c-1)*t)/2,n=u*e+i,s=p*e+o;r.push([n,s])}r.push([s,l])}}return function(e){return"polygon"===e.type}(e)?new s.c({rings:n,spatialReference:e.spatialReference}):new l.c({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.aq)(t,!0)}return r&&(e=(0,a.wb)(e,r)),e}function q(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,a.yK)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,a.yK)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,a.yK)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,a.yK)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function _(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const i=t.cutIndexes[n],o=t.geometries[n],s=(0,a.iM)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,a.yK)(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(n,0))}return!0}}))}if(i===r){if(g(e))for(const t of(0,a.iM)(o))e[i]=e[i].addRing(t);else if(w(e))for(const t of(0,a.iM)(o))e[i]=e[i].addPath(t)}else r=i,e[i]=o}return e}async function S(e,t,r){if(!Array.isArray(e))return S([e],t);t&&"string"!=typeof t&&f().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof t?t:t?.url??n.default.geometryServiceUrl;let o,g,w,b,x,T,F,O,N=0;const M=[],R=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,g=(0,p.Nq)(o),w=o.isWebMercator,T=w?102100:4326,b=a.Hh[T].maxX,x=a.Hh[T].minX,F=a.Hh[T].plus180Line,O=a.Hh[T].minus180Line),g)if("mesh"===t.type)R.push(t);else if("point"===t.type)R.push(q(t.clone(),b,x));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>q(e,b,x))),R.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);R.push(e.rings?new s.c(e):e)}else if(t.extent){const e=t.extent,r=(0,a.yK)(e.xmin,x)*(2*b);let n=0===r?t.clone():(0,a.wb)(t.clone(),r);e.offset(r,0),e.intersects(F)&&e.xmax!==b?(N=e.xmax>N?e.xmax:N,n=v(n,w),M.push(n),R.push("cut")):e.intersects(O)&&e.xmin!==x?(N=e.xmax*(2*b)>N?e.xmax*(2*b):N,n=v(n,w,360),M.push(n),R.push("cut")):R.push(n)}else R.push(t.clone());else R.push(t);else R.push(t);let C=(0,a.yK)(N,b),I=-90;const E=C,A=new l.c;for(;C>0;){const e=360*C-180;A.addPath([[e,I],[e,-1*I]]),I*=-1,C--}if(M.length>0&&E>0){const t=_(M,await async function(e,t,r,n){const i=(0,d.UX)(e),o=t[0].spatialReference,s={...n,responseType:"json",query:{...i.query,f:"json",sr:(0,p.um)(o),target:JSON.stringify({geometryType:(0,y.Ce)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},l=await(0,c.c)(i.path+"/cut",s),{cutIndexes:a,geometries:u=[]}=l.data;return{cutIndexes:a,geometries:u.map((e=>{const t=(0,y.h4)(e);return t.spatialReference=o,t}))}}(i,M,A,r)),n=[],o=[];for(let r=0;r<R.length;r++){const i=R[r];if("cut"!==i)o.push(i);else{const i=t.shift(),s=e[r];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&i.rings.length>=s.rings.length?(n.push(i),o.push("simplify")):o.push(w?(0,u.w7)(i):i)}}if(!n.length)return o;const s=await async function(e,t,r){const n="string"==typeof e?(0,h.as)(e):e,i=t[0].spatialReference,o=(0,y.Ce)(t[0]),s={...r,query:{...n.query,f:"json",sr:(0,p.um)(i),geometries:JSON.stringify((0,m.y)(t))}},{data:l}=await(0,c.c)(n.path+"/simplify",s);return(0,m.Q)(l.geometries,o,i)}(i,n,r),l=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?l.push(t):l.push(w?(0,u.w7)(s.shift()):s.shift())}return l}const L=[];for(let e=0;e<R.length;e++){const t=R[e];if("cut"!==t)L.push(t);else{const e=M.shift();L.push(!0===w?(0,u.w7)(e):e)}}return L}},44048:(e,t,r)=>{r.d(t,{Hh:()=>s,iM:()=>p,wb:()=>a,yK:()=>l});var n=r(48516),i=r(56156),o=r(6704);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.c({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.c.WebMercator}),minus180Line:new n.c({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.c({paths:[[[180,-180],[180,180]]],spatialReference:i.c.WGS84}),minus180Line:new n.c({paths:[[[-180,-180],[-180,180]]],spatialReference:i.c.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const r=p(e);for(const e of r)for(const r of e)r[0]+=t;return e}function p(e){return(0,o.Cs)(e)?e.rings:e.paths}},37784:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var n=r(41948),i=(r(60708),r(6444)),o=(r(17988),r(2952)),s=r(20744),l=r(62088),a=r(26496),p=r(58820),u=r(69504),c=r(1580),y=(r(9456),r(66360),r(33600)),d=r(12552),h=r(18996),m=r(60074),f=r(83372),g=r(20480),w=r(60544),v=r(672),q=(r(72052),r(30604));let _=class extends o.c{constructor(e){super(e),this.addHandles([this.on("before-add",(e=>{null==e.item&&e.preventDefault()})),this.on("after-add",(e=>this._own(e.item))),this.on("after-remove",(e=>this._release(e.item)))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(o.c.ofType(this.itemType.Type))(e):new o.c(e)}};(0,n._)([(0,c.qq)()],_.prototype,"owner",null),_=(0,n._)([(0,d.c)("esri.core.support.OwningCollection")],_);var S=r(81436),b=r(25216),x=r(3116),T=r(53368),F=r(14179);let O=class extends _{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,n._)([(0,F.E)({Type:i.c,ensureType:(0,T.ey)(i.c)})],O.prototype,"itemType",void 0),O=(0,n._)([(0,d.c)("esri.support.GraphicsCollection")],O);var N=r(27136);let M=class extends((0,b.W)((0,x.I)(S.c))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new O,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};var R,C;(0,n._)([(0,c.qq)({type:N.c})],M.prototype,"elevationInfo",void 0),(0,n._)([(0,c.qq)((R=O,C="graphics",{type:R,cast:q.W,set(e){const t=(0,q.q)(e,this._get(C),R);t.owner=this,this._set(C,t)}}))],M.prototype,"graphics",void 0),(0,n._)([(0,c.qq)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,n._)([(0,c.qq)()],M.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],M.prototype,"type",void 0),(0,n._)([(0,c.qq)({constructOnly:!0})],M.prototype,"internal",void 0),M=(0,n._)([(0,d.c)("esri.layers.GraphicsLayer")],M);const I=M;var E=r(46019),A=r(66576),L=r(98768),D=r(600),j=r(47472),J=r(7432),G=r(49736),P=r(28652),z=r(56156),Q=r(95247);function V(e){return"markup"===e.featureCollectionType||e.layers.some((e=>null!=e.layerDefinition.visibilityField||!B(e)))}function B({layerDefinition:e,featureSet:t}){const r=e.geometryType??t.geometryType;return $.find((t=>r===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type))}function K(){return new Q.c({xmin:-180,ymin:-90,xmax:180,ymax:90})}const W=new D.c({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),Z=new D.c({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255});let U=class extends I{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",(e=>{e.item.sourceLayer=this.layer})),this.graphics.on("after-remove",(e=>{e.item.sourceLayer=null}))}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?null==t?(0,m.projectOrLoad)(K(),e).geometry:(0,f.WU)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,f.FZ)();return this.graphics.forEach((r=>{const n=null!=r.geometry?(0,m.projectOrLoad)(r.geometry,e).geometry:null;null!=n&&(0,f.ws)(t,"point"===n.type?n:n.extent,t)})),(0,f.yK)(t,f.K)?null:t}get sublayers(){return this.graphics}};(0,n._)([(0,c.qq)({readOnly:!0})],U.prototype,"fullExtent",null),(0,n._)([(0,c.qq)({readOnly:!0})],U.prototype,"fullBounds",null),(0,n._)([(0,c.qq)({readOnly:!0})],U.prototype,"sublayers",null),(0,n._)([(0,c.qq)()],U.prototype,"layer",void 0),(0,n._)([(0,c.qq)()],U.prototype,"layerId",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],U.prototype,"visibilityMode",void 0),U=(0,n._)([(0,d.c)("esri.layers.MapNotesLayer.MapNotesSublayer")],U);const $=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new j.c).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new J.c).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new G.c).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new G.c).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new P.c).toJSON()}];let k=class extends((0,b.W)((0,x.I)((0,A.Y)((0,L.K)((0,a.U)(S.c)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=z.c.WGS84,this.sublayers=new o.c($.map((e=>new U({id:e.id,layerId:e.layerId,title:e.title,layer:this})))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,r){return{operations:{supportsMapNotesEditing:!V(t)&&"portal-item"!==r?.origin}}}readFeatureCollections(e,t,r){if(!V(t))return null;const n=t.layers.map((e=>{const t=new v.default;return t.read(e,r),t}));return new o.c({items:n})}readLegacyfeatureCollectionJSON(e,t){return V(t)?(0,l.ct)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,f.FZ)();return null!=this.sublayers?this.sublayers.forEach((({fullBounds:e})=>null!=e?(0,f.ws)(t,e,t):t),t):this.featureCollectionJSON?.layers.some((e=>e.layerDefinition.extent))&&this.featureCollectionJSON.layers.forEach((r=>{const n=(0,m.projectOrLoad)(r.layerDefinition.extent,e).geometry;null!=n&&(0,f.ws)(t,n,t)})),(0,f.yK)(t,f.K)?(0,m.projectOrLoad)(K(),e).geometry:(0,f.WU)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?z.c.fromJSON(t.layers[0].layerDefinition.spatialReference):z.c.WGS84}readSublayers(e,t,r){if(V(t))return null;const n=[];let s=t.layers.reduce(((e,t)=>Math.max(e,t.layerDefinition.id??-1)),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:r}=e,o=t.id??s++,l=B(e);if(null!=l){const e=new U({id:l.id,title:t.name,layerId:o,layer:this,graphics:r.features.map((({geometry:e,symbol:t,attributes:r,popupInfo:n})=>i.c.fromJSON({attributes:r,geometry:e,symbol:t,popupTemplate:n})))});n.push(e)}}return new o.c(n)}writeSublayers(e,t,r,n){const{minScale:i,maxScale:o}=this;if(null==e)return;const l=e.some((e=>e.graphics.length>0));if(!this.capabilities.operations.supportsMapNotesEditing)return void(l&&n?.messages?.push(new s.c("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const a=[];let u=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if(null!=e.geometry){u=e.geometry.spatialReference.toJSON();break e}for(const t of $){const r=e.find((e=>t.id===e.id));this._writeMapNoteSublayer(a,r,t,i,o,u,n)}(0,p.qQ)("featureCollection.layers",a,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,l.ct)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if(null==this.sublayers)return;let e=null;const t=[];for(const r of this.sublayers)for(const n of r.graphics)if(null!=n.geometry){const r=n.geometry;e?(0,w.yK)(r.spatialReference,e)||((0,m.canProjectWithoutEngine)(r.spatialReference,e)||(0,m.isLoaded)()||await(0,m.load)(),n.geometry=(0,m.project)(r,e)):e=r.spatialReference,t.push(n)}const r=await(0,g.WW)(t.map((e=>e.geometry)));t.forEach(((e,t)=>e.geometry=r[t]))}_findSublayer(e){return null==this.sublayers?null:this.sublayers?.find((t=>t.id===e))??null}_writeMapNoteSublayer(e,t,r,n,i,o,s){const a=[];if(null!=t){for(const e of t.graphics)this._writeMapNote(a,e,r.geometryType,s);this._normalizeObjectIds(a,W),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,l.ct)(r.identifyingSymbol)}},id:t.layerId,geometryType:r.geometryTypeJSON,minScale:n,maxScale:i,objectIdField:"OBJECTID",fields:[W.toJSON(),Z.toJSON()],spatialReference:o},featureSet:{features:a,geometryType:r.geometryTypeJSON}})}}_writeMapNote(e,t,r,n){if(null==t)return;const{geometry:i,symbol:o,popupTemplate:s}=t;if(null==i)return;if(i.type!==r)return void n?.messages?.push(new u.c("map-notes-layer:invalid-geometry-type",`Geometry "${i.type}" cannot be saved in "${r}" layer`,{graphic:t}));if(null==o)return void n?.messages?.push(new u.c("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const l={attributes:{...t.attributes},geometry:i.toJSON(),symbol:o.toJSON()};null!=s&&(l.popupInfo=s.toJSON()),e.push(l)}_normalizeObjectIds(e,t){const r=t.name;let n=(0,E.A)(r,e)+1;const i=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[r]||i.has(e[r]))&&(e[r]=n++),i.add(e[r])}}};(0,n._)([(0,c.qq)({readOnly:!0})],k.prototype,"capabilities",void 0),(0,n._)([(0,y.E)(["portal-item","web-map"],"capabilities",["layers"])],k.prototype,"readCapabilities",null),(0,n._)([(0,c.qq)({readOnly:!0})],k.prototype,"featureCollections",void 0),(0,n._)([(0,y.E)(["web-map","portal-item"],"featureCollections",["layers"])],k.prototype,"readFeatureCollections",null),(0,n._)([(0,c.qq)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],k.prototype,"featureCollectionJSON",void 0),(0,n._)([(0,y.E)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],k.prototype,"readLegacyfeatureCollectionJSON",null),(0,n._)([(0,c.qq)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],k.prototype,"featureCollectionType",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],k.prototype,"fullExtent",null),(0,n._)([(0,c.qq)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],k.prototype,"legendEnabled",void 0),(0,n._)([(0,c.qq)({type:["show","hide","hide-children"]})],k.prototype,"listMode",void 0),(0,n._)([(0,c.qq)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"minScale",void 0),(0,n._)([(0,y.E)(["web-map","portal-item"],"minScale",["layers"])],k.prototype,"readMinScale",null),(0,n._)([(0,c.qq)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"maxScale",void 0),(0,n._)([(0,y.E)(["web-map","portal-item"],"maxScale",["layers"])],k.prototype,"readMaxScale",null),(0,n._)([(0,c.qq)({readOnly:!0})],k.prototype,"multipointLayer",null),(0,n._)([(0,c.qq)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],k.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],k.prototype,"pointLayer",null),(0,n._)([(0,c.qq)({readOnly:!0})],k.prototype,"polygonLayer",null),(0,n._)([(0,c.qq)({readOnly:!0})],k.prototype,"polylineLayer",null),(0,n._)([(0,c.qq)({type:z.c})],k.prototype,"spatialReference",void 0),(0,n._)([(0,y.E)(["web-map","portal-item"],"spatialReference",["layers"])],k.prototype,"readSpatialReference",null),(0,n._)([(0,c.qq)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],k.prototype,"sublayers",void 0),(0,n._)([(0,y.E)("web-map","sublayers",["layers"])],k.prototype,"readSublayers",null),(0,n._)([(0,h.G)("web-map","sublayers")],k.prototype,"writeSublayers",null),(0,n._)([(0,c.qq)({readOnly:!0})],k.prototype,"textLayer",null),(0,n._)([(0,c.qq)()],k.prototype,"title",void 0),(0,n._)([(0,c.qq)({readOnly:!0,json:{read:!1}})],k.prototype,"type",void 0),k=(0,n._)([(0,d.c)("esri.layers.MapNotesLayer")],k);const H=k},85152:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,i,o]=e,s=i-t,l=o-r;return new n([5],[t,r,s,0,0,l,-s,0,0,-l])}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 n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[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 n(this.lengths,e,this.hasIndeterminateRingOrder)):new n(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},46019:(e,t,r)=>{r.d(t,{A:()=>i,q:()=>n});const n=1;function i(e,t){let r=0;for(const n of t){const t=n.attributes?.[e];"number"==typeof t&&isFinite(t)&&(r=Math.max(r,t))}return r}},38724:(e,t,r)=>{r.d(t,{C:()=>s});var n=r(41948),i=r(1580),o=(r(9456),r(66360),r(72052),r(12552));const s=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,n._)([(0,i.qq)({type:String})],t.prototype,"apiKey",null),t=(0,n._)([(0,o.c)("esri.layers.mixins.APIKeyMixin")],t),t}},16660:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(41948),i=r(66360),o=r(1580),s=(r(9456),r(72052),r(12552)),l=r(48212);const a=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,l.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,l.oR)(e,i.c.getLogger(this)))}};return(0,n._)([(0,o.qq)()],t.prototype,"title",null),(0,n._)([(0,o.qq)({type:String})],t.prototype,"url",null),t=(0,n._)([(0,s.c)("esri.layers.mixins.ArcGISService")],t),t}},87352:(e,t,r)=>{r.d(t,{c:()=>c});var n=r(41948),i=r(3856),o=r(14628),s=r(40504),l=r(1580),a=(r(9456),r(66360),r(72052),r(12552));const p=new o.O({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,i.q)(s.am)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n._)([(0,l.qq)({json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,l.qq)({json:{write:!0}})],u.prototype,"description",void 0),(0,n._)([(0,l.qq)({json:{read:p.read,write:p.write}})],u.prototype,"drawingTool",void 0),(0,n._)([(0,l.qq)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,n._)([(0,l.qq)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,n._)([(0,a.c)("esri.layers.support.FeatureTemplate")],u);const c=u},79648:(e,t,r)=>{r.d(t,{c:()=>d});var n=r(41948),i=r(3856),o=r(40504),s=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),a=r(12552),p=r(18996),u=r(89812),c=r(87352);let y=class extends((0,i.q)(o.am)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.h4)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n._)([(0,s.qq)({json:{write:!0}})],y.prototype,"id",void 0),(0,n._)([(0,s.qq)({json:{write:!0}})],y.prototype,"name",void 0),(0,n._)([(0,s.qq)({json:{write:!0}})],y.prototype,"domains",void 0),(0,n._)([(0,l.E)("domains")],y.prototype,"readDomains",null),(0,n._)([(0,p.G)("domains")],y.prototype,"writeDomains",null),(0,n._)([(0,s.qq)({type:[c.c],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,n._)([(0,a.c)("esri.layers.support.FeatureType")],y);const d=y},600:(e,t,r)=>{r.d(t,{c:()=>f});var n,i=r(41948),o=r(14628),s=r(40504),l=r(1580),a=r(53368),p=(r(72052),r(9456),r(9968)),u=r(33600),c=r(12552),y=r(89812),d=r(36408);const h=new o.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 m=n=class extends s.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 n({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,i._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,i._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,i._)([(0,l.qq)()],m.prototype,"description",void 0),(0,i._)([(0,u.E)("description")],m.prototype,"readDescription",null),(0,i._)([(0,l.qq)({types:y.i2,json:{read:{reader:y.h4},write:!0}})],m.prototype,"domain",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,i._)([(0,l.qq)({type:a.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,i._)([(0,p.G)(d.M)],m.prototype,"type",void 0),(0,i._)([(0,l.qq)()],m.prototype,"valueType",void 0),(0,i._)([(0,u.E)("valueType",["description"])],m.prototype,"readValueType",null),(0,i._)([(0,l.qq)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=n=(0,i._)([(0,c.c)("esri.layers.support.Field")],m);const f=m},16424:(e,t,r)=>{r.d(t,{c:()=>y});var n=r(20744),i=r(40504),o=r(66360),s=r(86916),l=r(75824),a=r(564),p=r(28484),u=r(39452);const c=new Map;class y{static fromJSON(e){return new y(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new y(e.fields??[],f(e))}static fromLayerJSON(e){return new y(e.fields??[],f(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,n=h(t);if(t&&n){const i=d(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(n,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Mz)(e)||(0,a.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,a.Mz)(e)||(0,a.w1)(e)||e.nullable||void 0!==(0,a.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(d(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?(o.c.getLogger("esri.layers.support.FieldsIndex").error(new n.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),p.Gw):m.has(t.type)?p.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===p.OI?l.qG.instance:t===p.Gw?u.Kq.utcInstance:(0,s.wJ)(c,t,(()=>u._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.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 d(e){return e.trim().toLowerCase()}function h(e){return(0,a.gP)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:i}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.Mt)(e.dateFieldsTimeReference):null,a=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.dateFieldsTimeReference?(0,p.Mt)(i.dateFieldsTimeReference):l??p.Gw:null,u=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,p.Mt)(n.timeReference):l:null,c=new Map([[d(i?.creationDateField??""),a],[d(i?.editDateField??""),a],[d(o),u],[d(s),u]]);for(const{name:n,type:i}of e.fields)if(m.has(i))t.set(n,p.OI);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(n,null);else if(r)t.set(n,p.OI);else{const e=c.get(d(n??""))??l;t.set(n,e)}return t}},24144:(e,t,r)=>{r.d(t,{c:()=>u});var n,i=r(41948),o=r(2952),s=r(40504),l=r(1580),a=(r(9456),r(66360),r(72052),r(12552));let p=n=class extends s.am{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.c}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],p.prototype,"floorField",void 0),(0,i._)([(0,l.qq)({json:{read:!1,write:!1}})],p.prototype,"viewAllMode",void 0),(0,i._)([(0,l.qq)({json:{read:!1,write:!1}})],p.prototype,"viewAllLevelIds",void 0),p=n=(0,i._)([(0,a.c)("esri.layers.support.LayerFloorInfo")],p);const u=p},89812:(e,t,r)=>{r.d(t,{h4:()=>x,i2:()=>b}),r(9456);var n,i=r(41948),o=r(62088),s=r(1580),l=(r(66360),r(9968)),a=r(12552),p=r(40504);r(72052);let u=n=class extends p.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i._)([(0,s.qq)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=n=(0,i._)([(0,a.c)("esri.layers.support.CodedValue")],u);const c=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let y=class extends p.am{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,l.G)(c)],y.prototype,"type",void 0),y=(0,i._)([(0,a.c)("esri.layers.support.Domain")],y);const d=y;var h;let m=h=class extends d{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,o.ct)(this.codedValues),name:this.name})}};(0,i._)([(0,s.qq)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,i._)([(0,l.G)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=h=(0,i._)([(0,a.c)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;r(20744);let w=g=class extends d{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,i._)([(0,l.G)({inherited:"inherited"})],w.prototype,"type",void 0),w=g=(0,i._)([(0,a.c)("esri.layers.support.InheritedDomain")],w);const v=w;var q;let _=q=class extends d{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new q({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,s.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]}}}})],_.prototype,"maxValue",void 0),(0,i._)([(0,s.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]}}}})],_.prototype,"minValue",void 0),(0,i._)([(0,l.G)({range:"range"})],_.prototype,"type",void 0),_=q=(0,i._)([(0,a.c)("esri.layers.support.RangeDomain")],_);const S=_,b={key:"type",base:d,typeMap:{range:_,"coded-value":f,inherited:v}};function x(e){if(!e?.type)return null;switch(e.type){case"range":return S.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return v.fromJSON(e)}return null}},36408:(e,t,r)=>{r.d(t,{M:()=>n});const n=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:()=>b,I5:()=>m,Wi:()=>g,Y$:()=>h,cF:()=>f,wf:()=>w,y6:()=>d});var n=r(88264);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+i,"i"),p=new RegExp(o+"$","i"),u='"',c=u+" + ",y=" + "+u;function d(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 m(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=d(e.labelExpression),t.type="conventional"),t}function f(e){const t=m(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=m(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 b(t.expression)}return null}function w(e){let t;return e?(t=(0,n.qq)(e,(e=>i+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(s,c).replaceAll(l,y)):t='""',t}const v=/^\s*\{([^}]+)\}\s*$/i,q=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,S=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=q.exec(e)||_.exec(e);return t?t[1]||t[3]:(t=S.exec(e),t?t[2]:null)}},54712:(e,t,r)=>{r.d(t,{S:()=>c});var n=r(9456),i=r(48212);function o(e,t,r){return!!l(e,t,r)}function s(e,t,r){return l(e,t,r)}function l(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}const a={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function p(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function u(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function c(e,t){return{analytics:y(e),attachment:d(e),data:h(e),metadata:m(e),operations:f(e.capabilities,e,t),query:g(e,t),queryRelated:w(e),queryTopFeatures:v(e),editing:q(e)}}function y(e){return{supportsCacheHint:u(e.advancedQueryCapabilities,"queryAnalytics")}}function d(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:u(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:o(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=a[e.name];t&&(r[t]=!!e.isEnabled)})),r}function h(e){return{isVersioned:o(e,"isDataVersioned",!1),supportsAttachment:o(e,"hasAttachments",!1),supportsM:o(e,"hasM",!1),supportsZ:o(e,"hasZ",!1)}}function m(e){return{supportsAdvancedFieldProperties:o(e,"supportsFieldDescriptionProperty",!1)}}function f(e,t,r){const n=e?e.toLowerCase().split(",").map((e=>e.trim())):[],s=r?(0,i.K0)(r):null,l=n.includes(null!=s&&"MapServer"===s.serverType?"data":"query"),a=n.includes("editing")&&!t.datesInUnknownTimezone;let p=a&&n.includes("create"),u=a&&n.includes("delete"),c=a&&n.includes("update");const y=n.includes("changetracking"),d=t.advancedQueryCapabilities;return a&&!(p||u||c)&&(p=u=c=!0),{supportsCalculate:o(t,"supportsCalculate",!1),supportsTruncate:o(t,"supportsTruncate",!1),supportsValidateSql:o(t,"supportsValidateSql",!1),supportsAdd:p,supportsDelete:u,supportsEditing:a,supportsChangeTracking:y,supportsQuery:l,supportsQueryAnalytics:o(d,"supportsQueryAnalytic",!1),supportsQueryAttachments:o(d,"supportsQueryAttachments",!1),supportsQueryTopFeatures:o(d,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:o(t,"supportsAttachmentsResizing",!1),supportsSync:n.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:o(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:o(t,"supportsAsyncConvert3D",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,l=e.ownershipBasedAccessControlForFeatures,a=e.archivingInfo,c=e.currentVersion,y=t?.includes("MapServer"),d=!y||c>=(0,n.c)("mapserver-pbf-version-support"),h=(0,i.Wq)(t),m=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:o(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:o(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:o(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:p(r),supportsCentroid:o(r,"supportsReturningGeometryCentroid",!1),supportsDistance:o(r,"supportsQueryWithDistance",!1),supportsDistinct:o(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:o(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:o(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:o(r,"supportsHavingClause",!1),supportsOrderBy:o(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:o(r,"supportsPagination",!1),supportsQuantization:o(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:o(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:o(e,"supportsReturningQueryGeometry",!1),supportsResultType:o(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:o(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:o(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:o(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:o(r,"supportsTopFeaturesQuery",!1),supportsQueryByAnonymous:o(l,"allowAnonymousToQuery",!0),supportsQueryByOthers:o(l,"allowOthersToQuery",!0),supportsHistoricMoment:o(a,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:d&&m.has("pbf"),supportsDisjointSpatialRelationship:o(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:o(r,"supportsQueryWithCacheHint",!1)||u(r,"query"),supportsDefaultSpatialReference:o(r,"supportsDefaultSR",!1),supportsCompactGeometry:h,supportsFullTextSearch:o(r,"supportsFullTextSearch",!1),maxRecordCountFactor:s(e,"maxRecordCountFactor",void 0),maxRecordCount:s(e,"maxRecordCount",void 0),standardMaxRecordCount:s(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:s(e,"tileMaxRecordCount",void 0)}}function w(e){const t=e.advancedQueryCapabilities,r=o(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:o(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:u(t,"queryRelated")}}function v(e){return{supportsCacheHint:u(e.advancedQueryCapabilities,"queryTopFilter")}}function q(e){const t=e.ownershipBasedAccessControlForFeatures,r=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:o(e,"allowGeometryUpdates",!0),supportsGlobalId:o(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:o(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:o(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:o(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:o(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:o(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:o(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:o(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:o(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:o(r,"supportsAsyncApplyEdits",!1),zDefault:s(e,"zDefault",void 0)}}},81976:(e,t,r)=>{r.d(t,{Q:()=>o,y:()=>i});var n=r(6704);function i(e){return{geometryType:(0,n.Ce)(e[0]),geometries:e.map((e=>e.toJSON()))}}function o(e,t,r){const i=(0,n.uG)(t);return e.map((e=>{const t=i.fromJSON(e);return t.spatialReference=r,t}))}},21012:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(37924);function i(e,t,r){if(!r?.features||!r.hasZ)return;const i=(0,n.O)(r.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of r.features)i(e.geometry)}},59500:(e,t,r)=>{r.d(t,{c:()=>v});var n,i=r(41948),o=r(60708),s=r(6444),l=r(14628),a=r(40504),p=r(62088),u=r(1580),c=(r(9456),r(66360),r(33600)),y=r(12552),d=r(18996),h=r(56156),m=r(6704),f=r(600);const g=new l.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends a.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),n=[];for(let t=0;t<e.length;t++){const i=e[t],o=s.c.fromJSON(i),l=i.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=i.aggregateGeometries,p=o.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],n=a[e],i=n?.spatialReference;null==t||i||(t.spatialReference=r)}n.push(o)}return n}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,m.h4)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=h.c.fromJSON(t.spatialReference)),n}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 n(this.cloneProperties())}cloneProperties(){return(0,p.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 n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.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:[n,i],scale:[o,s]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*o+n),(e=>i-e*s),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,i;const o=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===n&&s===i||(o.push([e-n,s-i]),n=e,i=s)}else n=t(l[0]),i=r(l[1]),o.push([n,i])}return o.length>0?o: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 n=(0,m.Cs)(e)?e.rings:e.paths,i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,r);s&&i.push(s)}return i.length>0?((0,m.Cs)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,m.Cs)(e)?e.rings:e.paths;let s,l;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[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),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,l;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=r(l)}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i._)([(0,u.qq)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,u.qq)({type:[s.c],json:{write:!0}})],w.prototype,"features",void 0),(0,i._)([(0,c.E)("features")],w.prototype,"readFeatures",null),(0,i._)([(0,u.qq)({type:[f.c],json:{write:!0}})],w.prototype,"fields",void 0),(0,i._)([(0,u.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i._)([(0,d.G)("geometryType")],w.prototype,"writeGeometryType",null),(0,i._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i._)([(0,u.qq)({types:o.Su,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i._)([(0,c.E)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i._)([(0,u.qq)({type:h.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i._)([(0,d.G)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i._)([(0,u.qq)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i._)([(0,y.c)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const v=w},21980:(e,t,r)=>{r.d(t,{OW:()=>l,UX:()=>s,sR:()=>o}),r(6220),r(47620);var n=r(62088),i=r(28176);function o(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,i.as)(e):(0,n.ct)(e)}function l(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const o=e[i];if(null!=o&&"function"!=typeof o)if(Array.isArray(o))n[i]=o.map((e=>l({item:e},t,r).item));else if("object"==typeof o)if(o.toJSON){const e=o.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?o:JSON.stringify(o);else n[i]=o}return n}r(20572)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[387],{20480:(e,t,r)=>{r.d(t,{WW:()=>v});var a=r(6220),n=r(20744),s=r(66360),i=r(7488),o=r(48516),l=r(44048),u=r(60544),d=r(29120),c=(r(60708),r(2600)),p=r(6704),f=r(21980),h=r(28176),y=r(81976);const m=()=>s.c.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function b(e,t,r){if(t){const t=function(e,t){if(!(e instanceof o.c||e instanceof i.c)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw m().error(e),new n.c(e)}const r=(0,l.iM)(e),a=[];for(const e of r){const r=[];a.push(r),r.push([e[0][0],e[0][1]]);for(let a=0;a<e.length-1;a++){const n=e[a][0],s=e[a][1],i=e[a+1][0],o=e[a+1][1],l=Math.sqrt((i-n)*(i-n)+(o-s)*(o-s)),u=(o-s)/l,d=(i-n)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const a=e*t,i=d*a+n,o=u*a+s;r.push([i,o])}const e=(l+Math.floor(c-1)*t)/2,a=d*e+n,i=u*e+s;r.push([a,i])}r.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new i.c({rings:a,spatialReference:e.spatialReference}):new o.c({paths:a,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.aq)(t,!0)}return r&&(e=(0,l.wb)(e,r)),e}function F(e,t,r){if(Array.isArray(e)){const a=e[0];if(a>t){const r=(0,l.yK)(a,t);e[0]=a+r*(-2*t)}else if(a<r){const t=(0,l.yK)(a,r);e[0]=a+t*(-2*r)}}else{const a=e.x;if(a>t){const r=(0,l.yK)(a,t);e=e.clone().offset(r*(-2*t),0)}else if(a<r){const t=(0,l.yK)(a,r);e=e.clone().offset(t*(-2*r),0)}}return e}function A(e,t){let r=-1;for(let a=0;a<t.cutIndexes.length;a++){const n=t.cutIndexes[a],s=t.geometries[a],i=(0,l.iM)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const a=t[e][0];r=a>r?a:r}r=Number(r.toFixed(9));const a=-360*(0,l.yK)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(a,0))}return!0}}))}if(n===r){if(g(e))for(const t of(0,l.iM)(s))e[n]=e[n].addRing(t);else if(w(e))for(const t of(0,l.iM)(s))e[n]=e[n].addPath(t)}else r=n,e[n]=s}return e}async function v(e,t,r){if(!Array.isArray(e))return v([e],t);t&&"string"!=typeof t&&m().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??a.default.geometryServiceUrl;let s,g,w,I,R,S,$,E,O=0;const x=[],k=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,g=(0,u.Nq)(s),w=s.isWebMercator,S=w?102100:4326,I=l.Hh[S].maxX,R=l.Hh[S].minX,$=l.Hh[S].plus180Line,E=l.Hh[S].minus180Line),g)if("mesh"===t.type)k.push(t);else if("point"===t.type)k.push(F(t.clone(),I,R));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>F(e,I,R))),k.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);k.push(e.rings?new i.c(e):e)}else if(t.extent){const e=t.extent,r=(0,l.yK)(e.xmin,R)*(2*I);let a=0===r?t.clone():(0,l.wb)(t.clone(),r);e.offset(r,0),e.intersects($)&&e.xmax!==I?(O=e.xmax>O?e.xmax:O,a=b(a,w),x.push(a),k.push("cut")):e.intersects(E)&&e.xmin!==R?(O=e.xmax*(2*I)>O?e.xmax*(2*I):O,a=b(a,w,360),x.push(a),k.push("cut")):k.push(a)}else k.push(t.clone());else k.push(t);else k.push(t);let L=(0,l.yK)(O,I),M=-90;const U=L,q=new o.c;for(;L>0;){const e=360*L-180;q.addPath([[e,M],[e,-1*M]]),M*=-1,L--}if(x.length>0&&U>0){const t=A(x,await async function(e,t,r,a){const n=(0,f.UX)(e),s=t[0].spatialReference,i={...a,responseType:"json",query:{...n.query,f:"json",sr:(0,u.um)(s),target:JSON.stringify({geometryType:(0,p.Ce)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,c.c)(n.path+"/cut",i),{cutIndexes:l,geometries:d=[]}=o.data;return{cutIndexes:l,geometries:d.map((e=>{const t=(0,p.h4)(e);return t.spatialReference=s,t}))}}(n,x,q,r)),a=[],s=[];for(let r=0;r<k.length;r++){const n=k[r];if("cut"!==n)s.push(n);else{const n=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&n.rings.length>=i.rings.length?(a.push(n),s.push("simplify")):s.push(w?(0,d.w7)(n):n)}}if(!a.length)return s;const i=await async function(e,t,r){const a="string"==typeof e?(0,h.as)(e):e,n=t[0].spatialReference,s=(0,p.Ce)(t[0]),i={...r,query:{...a.query,f:"json",sr:(0,u.um)(n),geometries:JSON.stringify((0,y.y)(t))}},{data:o}=await(0,c.c)(a.path+"/simplify",i);return(0,y.Q)(o.geometries,s,n)}(n,a,r),o=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?o.push(t):o.push(w?(0,d.w7)(i.shift()):i.shift())}return o}const W=[];for(let e=0;e<k.length;e++){const t=k[e];if("cut"!==t)W.push(t);else{const e=x.shift();W.push(!0===w?(0,d.w7)(e):e)}}return W}},44048:(e,t,r)=>{r.d(t,{Hh:()=>i,iM:()=>u,wb:()=>l,yK:()=>o});var a=r(48516),n=r(56156),s=r(6704);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new a.c({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.c.WebMercator}),minus180Line:new a.c({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new a.c({paths:[[[180,-180],[180,180]]],spatialReference:n.c.WGS84}),minus180Line:new a.c({paths:[[[-180,-180],[-180,180]]],spatialReference:n.c.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,s.Cs)(e)?e.rings:e.paths}},62768:(e,t,r)=>{r.d(t,{applyEdits:()=>v,cV:()=>b,cd:()=>A,uploadAssets:()=>x});var a=r(6444),n=r(2952),s=r(20744),i=r(62088),o=r(66360),l=r(10860),u=r(28176),d=r(63564),c=r(20480),p=r(60544),f=r(6576),h=r(564),y=r(4048),m=r(71068);function g(e){return null!=e?.applyEdits}function w(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function b(e){return e.every(w)}function F(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function A(e){return e.every(F)}async function v(e,t,r,a={}){let u;const c="gdbVersion"in e?e.gdbVersion:null,p=a.gdbVersion??c;if((0,f.iC)(e)&&e.url)u=(0,f.mK)(e.url,e.layerId,p,"original-and-current-features"===a.returnServiceEditsOption);else{u=(0,l.qG)(),u.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:u.promise};e.emit("apply-edits",t)}try{const{results:l,edits:c}=await async function(e,t,r,a){if(await e.load(),!g(t))throw new s.c(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,m.UX)(e))throw new s.c(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,r){const a=(0,m.kZ)(e),i=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),l=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),u=null!=e.infoFor3D;if(function(e,t,r,a,n,i){if(!e||!a&&!n)throw new s.c(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&r?.globalIdUsed)throw new s.c(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&n)throw new s.c(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&n)throw new s.c(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,a,r,!!i,!!l,`${e.type}-layer`),!a.data.isVersioned&&r?.gdbVersion)throw new s.c(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!a.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new s.c(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const c={...r};if(null!=c.rollbackOnFailureEnabled||a.editing.supportsRollbackOnFailure||(c.rollbackOnFailureEnabled=!0),c.rollbackOnFailureEnabled||"original-and-current-features"!==c.returnServiceEditsOption||(!1===c.rollbackOnFailureEnabled&&o.c.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),c.rollbackOnFailureEnabled=!0),!a.editing.supportsReturnServiceEditsInSourceSpatialReference&&c.returnServiceEditsInSourceSR)throw new s.c(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(c.returnServiceEditsInSourceSR&&"original-and-current-features"!==c.returnServiceEditsOption)throw new s.c(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(e,t,r){const a=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&n.c.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(a.addFeatures?.length&&!t.operations.supportsAdd)throw new s.c(`${r}:unsupported-operation`,"Layer does not support adding features.");if(a.updateFeatures?.length&&!t.operations.supportsUpdate)throw new s.c(`${r}:unsupported-operation`,"Layer does not support updating features.");if(a.deleteFeatures?.length&&!t.operations.supportsDelete)throw new s.c(`${r}:unsupported-operation`,"Layer does not support deleting features.");return a.addFeatures=a.addFeatures.map(E),a.updateFeatures=a.updateFeatures.map(E),a.addAssetFeatures=[],a}(t,a,`${e.type}-layer`),f=r?.globalIdUsed||u,h=e.fields.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(f){const{globalIdField:t}=e;if(null==t)throw new s.c(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach((e=>function(e,t){const{attributes:r}=e;null==r[t]&&(r[t]=(0,d.cf)())}(e,t)))}return p.addFeatures.forEach((t=>function(e,t,r,a){I(e,t,r,a),R(e,t)}(t,e,f,h))),p.updateFeatures.forEach((t=>function(e,t,r,a){I(e,t,r,a),R(e,t);const n=(0,m.kZ)(t);if("geometry"in e&&null!=e.geometry&&!n?.editing.supportsGeometryUpdate)throw new s.c(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,f,h))),p.deleteFeatures.forEach((t=>function(e,t,r,a){I(e,t,r,a)}(t,e,f,h))),p.addAttachments.forEach((t=>S(t,e))),p.updateAttachments.forEach((t=>S(t,e))),u&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,a=(0,y.me)("model/gltf-binary",r.supportedFormats)??(0,y.If)("glb",r.supportedFormats);if(!a||!r.editFormats.includes(a))throw new s.c(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:n}=e;for(const t of e.addFeatures??[])O(t)&&n.push(t);for(const t of e.updateFeatures??[])O(t)&&n.push(t)}(p,e),{edits:await $(p),options:c}}(e,r,a);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,a),p=e=>e.filter((e=>!e.error)).map(i.ct),f={edits:c,addedFeatures:p(l.addFeatureResults),updatedFeatures:p(l.updateFeatureResults),deletedFeatures:p(l.deleteFeatureResults),addedAttachments:p(l.addAttachmentResults),updatedAttachments:p(l.updateAttachmentResults),deletedAttachments:p(l.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:l.editMoment?new Date(l.editMoment):null,globalIdToObjectId:a.globalIdToObjectId};return l.editedFeatureResults?.length&&(f.editedFeatures=l.editedFeatureResults),u.resolve(f),l}catch(e){throw u.reject(e),e}}function I(e,t,r,a){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new s.c(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new s.c(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(a.length&&"attributes"in e)for(const r of a){const a=e.attributes[r.name];if(void 0!==a&&!(0,h.mS)(r,a))throw new s.c(`${t.type}-layer:invalid-parameter`,`Big-integer field '${r.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new s.c(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new s.c(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function R(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D){const{geometry:r}=e,{spatialReference:a,vertexSpace:n}=r,i="local"===n.type,o=a.isGeographic,l=a.isWebMercator,u=t.spatialReference,d=(0,p.yK)(u,a);if(!(i&&(o||l)||!i&&!o&&d))throw new s.c(`${t.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${n.type} vertex space and a spatial reference wkid:${a.wkid} to a layer with spatial reference wkid:${u?.wkid??"unknown"} is not supported`)}}function S(e,t){const{feature:r,attachment:a}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!a.globalId)throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!a.data&&!a.uploadId)throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(a.data instanceof File&&a.data.name||a.name))throw new s.c(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&a.uploadId)throw new s.c(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof a.data){const e=(0,u.nV)(a.data);if(e&&!e.isBase64)throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function $(e){const t=e.addFeatures??[],r=e.updateFeatures??[],a=t.concat(r).map((e=>e.geometry)),n=await(0,c.WW)(a),s=t.length,i=r.length;return n.slice(0,s).forEach(((e,r)=>t[r].geometry=e)),n.slice(s,s+i).forEach(((e,t)=>r[t].geometry=e)),e}function E(e){const t=new a.c;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function O(e){return"mesh"===e?.geometry?.type}function x(e,t,r,a){if(!g(t))throw new s.c(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new s.c(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,a)}},81976:(e,t,r)=>{r.d(t,{Q:()=>s,y:()=>n});var a=r(6704);function n(e){return{geometryType:(0,a.Ce)(e[0]),geometries:e.map((e=>e.toJSON()))}}function s(e,t,r){const n=(0,a.uG)(t);return e.map((e=>{const t=n.fromJSON(e);return t.spatialReference=r,t}))}},21980:(e,t,r)=>{r.d(t,{OW:()=>o,UX:()=>i,sR:()=>s}),r(6220),r(47620);var a=r(62088),n=r(28176);function s(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,n.as)(e):(0,a.ct)(e)}function o(e,t,r){const a={};for(const n in e){if("declaredClass"===n)continue;const s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))a[n]=s.map((e=>o({item:e},t,r).item));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[n]);a[n]=t?e:JSON.stringify(e)}else a[n]=t?s:JSON.stringify(s);else a[n]=s}return a}r(20572)}}]);
|