@arcgis/core 5.2.0-next.6 → 5.2.0-next.7
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/WebLinkChart.d.ts +1 -1
- package/WebMap.d.ts +2 -2
- package/WebScene.d.ts +3 -3
- package/arcade.d.ts +9 -9
- package/arcgisGlobal.d.ts +4 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/03354ad3d74d858173b4.js +1 -0
- package/assets/esri/core/workers/chunks/{07a242ea908aa8e2ba28.js → 09a4139fc6d069ab6928.js} +1 -1
- package/assets/esri/core/workers/chunks/09d0e430c66788a2626f.js +640 -0
- package/assets/esri/core/workers/chunks/0a510acf50915e00c62b.js +1 -0
- package/assets/esri/core/workers/chunks/{829a0583b8a228c65379.js → 0b169bb1969f86232a1a.js} +1 -1
- package/assets/esri/core/workers/chunks/{20e2d11f6de438ee883e.js → 0ded58ccb83f624f1460.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1ac98f48bb6d43d97c8.js → 0f3654c8157ec8f22869.js} +3 -3
- package/assets/esri/core/workers/chunks/19dcae83be0fc0aced02.js +1 -0
- package/assets/esri/core/workers/chunks/1eabe746481e0b228498.js +1 -0
- package/assets/esri/core/workers/chunks/{c27cb2a83a1d2e004501.js → 238478cfe493fd4a6100.js} +1 -1
- package/assets/esri/core/workers/chunks/{bf706a5d065a357de51b.js → 2413b383b7f2bdcd4ced.js} +1 -1
- package/assets/esri/core/workers/chunks/277718031c903da2b3b9.js +1 -0
- package/assets/esri/core/workers/chunks/{7ed5b669010db58845f8.js → 294f2803aac000c99693.js} +1 -1
- package/assets/esri/core/workers/chunks/{093f27e4e4781870b431.js → 297ae764445e6f73a5ea.js} +1 -1
- package/assets/esri/core/workers/chunks/2b36a54927f5a7281da3.js +1 -0
- package/assets/esri/core/workers/chunks/{be0eab592db0e651b023.js → 2b814bb51704a5b4fdc2.js} +6 -6
- package/assets/esri/core/workers/chunks/3172d7fc23787a287191.js +1 -0
- package/assets/esri/core/workers/chunks/{eedee0af459e6b8a6116.js → 33e0130e6a40fc768978.js} +1 -1
- package/assets/esri/core/workers/chunks/343ba5ea459e96ba79c6.js +1 -0
- package/assets/esri/core/workers/chunks/{a2159df718a7f2f59271.js → 38a2f34661563c7c29c1.js} +1 -1
- package/assets/esri/core/workers/chunks/3a5c1c501808352857bd.js +1 -0
- package/assets/esri/core/workers/chunks/{a96c7432ca97cbeef4b8.js → 3db898a38a7c5f0efb48.js} +1 -1
- package/assets/esri/core/workers/chunks/3fbb6ff940156a981983.js +1 -0
- package/assets/esri/core/workers/chunks/{24eaf1349ffe10e616e6.js → 40c4e14e7bb505ef10a3.js} +1 -1
- package/assets/esri/core/workers/chunks/4104fa1ede36bcee9be5.js +1 -0
- package/assets/esri/core/workers/chunks/{b002304a45856b024b46.js → 4714241189c13d0db897.js} +1 -1
- package/assets/esri/core/workers/chunks/485d20152495c27b8074.js +1 -0
- package/assets/esri/core/workers/chunks/{16b90d8f628a412ba4ba.js → 4894997bfa438f66da36.js} +1 -1
- package/assets/esri/core/workers/chunks/{0e774f14ba274832f390.js → 520e0e5307eef27becc6.js} +1 -1
- package/assets/esri/core/workers/chunks/53d165b4f30fd64e5d8a.js +1 -0
- package/assets/esri/core/workers/chunks/{c83fea0d0ebd0d8e43fd.js → 542f5469f7b42026b24f.js} +1 -1
- package/assets/esri/core/workers/chunks/5553279998ae07b60f5f.js +1 -0
- package/assets/esri/core/workers/chunks/{cda99b543a0e1979346c.js → 5cb1b950249d651f3837.js} +1 -1
- package/assets/esri/core/workers/chunks/{7601278ebced0c0c31cf.js → 5e3e0d7b85dfd52d1c7d.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5a2c28dc26c065ea355.js → 62dfbdc847be4800e833.js} +22 -20
- package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js → 62e77e3c5ca9b4887923.js} +2 -2
- package/assets/esri/core/workers/chunks/{cc479daacd2cf715baa8.js → 62fc3c367f736c73b0d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{b1f1271434af302938e8.js → 643c33a98f2d30a92001.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c1515e020e32e177b54.js → 6a5356ebed70e0f8f979.js} +1 -1
- package/assets/esri/core/workers/chunks/{3402fb9c596b582311c7.js → 75839240022b280929f7.js} +1 -1
- package/assets/esri/core/workers/chunks/77a4f6f224d7ca4b69f4.js +1 -0
- package/assets/esri/core/workers/chunks/{6637f19b82555738a1d5.js → 78aa5bc6af2758da20d0.js} +1 -1
- package/assets/esri/core/workers/chunks/7df94cb985db41815fad.js +2 -0
- package/assets/esri/core/workers/chunks/{153dc2a0b08a0e44a881.js → 8419934bec7723b0feef.js} +1 -1
- package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js → 875cce0be4f6c89f80f3.js} +2 -2
- package/assets/esri/core/workers/chunks/{c319c3b85cdec73a9f45.js → 877c848beaf9a939862c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae74f722fb385e45fcf1.js → 893c0d28a5bf3f9f29f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{5abe34bb0110694f7b42.js → 90953a827bc89d0e6bd5.js} +1 -1
- package/assets/esri/core/workers/chunks/{14c6419568d8a7a15cd6.js → 92ab5886aa2d8b9b179f.js} +1 -1
- package/assets/esri/core/workers/chunks/{4e676e888a935c507d90.js → 93d4bda22bde33fafa57.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbb23db01f3cf629d32e.js → 992a90ecbab931198fd0.js} +1 -1
- package/assets/esri/core/workers/chunks/{1765042635084f75d2b3.js → 9b676606bf839b7aa433.js} +1 -1
- package/assets/esri/core/workers/chunks/a261f4c22224511fdfff.js +1 -0
- package/assets/esri/core/workers/chunks/{ea8f642b1db933d2c26f.js → a2ac139d0975085279a6.js} +1 -1
- package/assets/esri/core/workers/chunks/a4d3cbc02dc1186a9a6d.js +1 -0
- package/assets/esri/core/workers/chunks/a8ec5b85c2fa6fb4f391.js +1 -0
- package/assets/esri/core/workers/chunks/{6af77529c977d034d287.js → b23009d9f8eb7c20ce45.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f55d60d3adc31283296.js → b79428c5093614174e76.js} +1 -1
- package/assets/esri/core/workers/chunks/b9bdb1f05e904c3655e4.js +1 -0
- package/assets/esri/core/workers/chunks/c4fc85281ca83af7abaf.js +1 -0
- package/assets/esri/core/workers/chunks/c983e5ce0ff952b65d7f.js +1 -0
- package/assets/esri/core/workers/chunks/{f79bd469b25099a31274.js → ca6907e14b1dde4d5c07.js} +1 -1
- package/assets/esri/core/workers/chunks/cbbd94c53e75efc99876.js +1 -0
- package/assets/esri/core/workers/chunks/{8f94c90fdb0333da2d0f.js → cfd28eba44cf5a296c6d.js} +1 -1
- package/assets/esri/core/workers/chunks/{e9dcc3e9dbafe9bbed84.js → d21480b078ec9680d4c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{ace1899a8e5162b4018d.js → d6bb8db22ba85ad05fd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js → d9d4754062758789f186.js} +2 -2
- package/assets/esri/core/workers/chunks/{d35c475f004367e333eb.js → e094364e54981c91e1b4.js} +1 -1
- package/assets/esri/core/workers/chunks/e33d2ede6c9f1527d51b.js +1 -0
- package/assets/esri/core/workers/chunks/{3e3134e4bc34d4e07179.js → e545df5ea7c0ced92cee.js} +1 -1
- package/assets/esri/core/workers/chunks/{49f6c9e9980b8c624fd7.js → f02fe24177e56a7e42b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js → f5731ad4cfbbf1cc569a.js} +2 -2
- package/assets/esri/themes/base/widgets/_DatePicker.scss +1 -1
- package/chunks/RealisticTree.glsl.js +17 -15
- package/config.d.ts +2 -2
- package/config.js +1 -1
- package/core/Collection.d.ts +25 -25
- package/core/Error.d.ts +1 -1
- package/core/JSONSupport.d.ts +1 -1
- package/core/promiseUtils.d.ts +3 -3
- package/core/reactiveUtils.d.ts +4 -4
- package/core/sql/WhereClause.d.ts +1 -1
- package/core/timeUtils.d.ts +1 -1
- package/core/workers/Connection.d.ts +9 -9
- package/core/workers.d.ts +1 -1
- package/editing/types.d.ts +3 -3
- package/geometry/Mesh.d.ts +9 -2
- package/geometry/Mesh.js +1 -1
- package/geometry/support/MeshMaterial.d.ts +5 -5
- package/geometry/support/MeshTexture.d.ts +19 -19
- package/geometry/support/jsonUtils.d.ts +1 -1
- package/geometry/support/meshUtils.d.ts +130 -2
- package/geometry/support/meshUtils.js +1 -1
- package/identity/Credential.d.ts +1 -1
- package/identity/IdentityManager.d.ts +1 -1
- package/identity/OAuthInfo.d.ts +1 -1
- package/identity/ServerInfo.d.ts +2 -2
- package/interfaces.d.ts +13 -0
- package/intl/number.d.ts +3 -3
- package/intl/substitute.d.ts +2 -2
- package/intl.d.ts +28 -28
- package/kernel.js +1 -1
- package/layers/AnnotationLayer.js +1 -1
- package/layers/BaseDynamicLayer.d.ts +5 -5
- package/layers/BaseTileLayer.d.ts +4 -4
- package/layers/BuildingSceneLayer.d.ts +1 -1
- package/layers/CSVLayer.d.ts +7 -1
- package/layers/CatalogLayer.d.ts +6 -0
- package/layers/DimensionFeatureLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +44 -7
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeoJSONLayer.d.ts +7 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/MapImageLayer.d.ts +5 -5
- package/layers/MediaLayer.d.ts +2 -2
- package/layers/OrientedImageryLayer.d.ts +29 -2
- package/layers/ParquetLayer.d.ts +7 -1
- package/layers/SceneLayer.d.ts +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/StreamLayer.d.ts +1 -1
- package/layers/SubtypeGroupLayer.d.ts +7 -1
- package/layers/TileLayer.d.ts +2 -2
- package/layers/VideoLayer.d.ts +1 -1
- package/layers/VoxelLayer.d.ts +4 -4
- package/layers/WCSLayer.d.ts +2 -2
- package/layers/WFSLayer.d.ts +6 -0
- package/layers/WebTileLayer.d.ts +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +20 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +6 -0
- package/layers/mixins/ArcGISImageService.d.ts +7 -1
- package/layers/mixins/BlendLayer.d.ts +1 -1
- package/layers/mixins/DataSeriesLayer.d.ts +161 -0
- package/layers/mixins/DataSeriesLayer.js +2 -0
- package/layers/mixins/FeatureLayerBase.d.ts +3 -3
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/support/DateTimeFieldFormat.d.ts +10 -10
- package/layers/support/FeatureEffect.d.ts +22 -22
- package/layers/support/FeatureReductionBinning.d.ts +12 -0
- package/layers/support/FeatureReductionCluster.d.ts +12 -0
- package/layers/support/Field.d.ts +2 -2
- package/layers/support/ImageElement.d.ts +1 -1
- package/layers/support/MosaicRule.d.ts +0 -2
- package/layers/support/NumberFieldFormat.d.ts +5 -5
- package/layers/support/StreamConnection.d.ts +1 -1
- package/layers/support/Sublayer.d.ts +2 -2
- package/layers/support/SubtypeSublayer.d.ts +14 -1
- package/layers/support/TimeSeriesFieldTimeMapping.d.ts +30 -0
- package/layers/support/TimeSeriesFieldTimeMapping.js +2 -0
- package/layers/support/TimeSeriesInfo.d.ts +149 -0
- package/layers/support/TimeSeriesInfo.js +2 -0
- package/layers/support/VideoElement.d.ts +1 -1
- package/layers/support/dataSeriesUtils.d.ts +18 -0
- package/layers/support/dataSeriesUtils.js +2 -0
- package/layers/support/kmlUtils.js +1 -1
- package/layers/support/timeSeriesUtils.d.ts +27 -0
- package/layers/support/timeSeriesUtils.js +2 -0
- package/layers/types.d.ts +1 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
- package/networks/CircuitManager.d.ts +1 -1
- package/networks/Network.d.ts +1 -1
- package/networks/UnitIdentifierManager.d.ts +1 -1
- package/networks/support/NamedTraceConfiguration.d.ts +1 -1
- package/networks/support/TraceConfiguration.d.ts +2 -2
- package/networks/support/UNTraceConfiguration.d.ts +3 -3
- package/networks/support/jsonTypes.d.ts +7 -1
- package/networks/support/utils.js +1 -1
- package/package.json +3 -3
- package/popup/content/CustomContent.d.ts +1 -1
- package/portal/Portal.d.ts +2 -2
- package/portal/jsonTypes.d.ts +2 -2
- package/renderers/support/AuthoringInfo.d.ts +14 -1
- package/renderers/support/AuthoringInfo.js +1 -1
- package/renderers/support/AuthoringInfoVisualVariable.d.ts +14 -1
- package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
- package/renderers/support/jsonUtils.d.ts +1 -1
- package/renderers/support/utils.d.ts +1 -1
- package/renderers/visualVariables/RotationVariable.d.ts +16 -1
- package/renderers/visualVariables/RotationVariable.js +1 -1
- package/request/types.d.ts +23 -23
- package/rest/geometryService.d.ts +1 -1
- package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +1 -1
- package/rest/knowledgeGraph/GraphApplyEdits.d.ts +1 -1
- package/rest/knowledgeGraph/GraphProperty.d.ts +5 -1
- package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +2 -2
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
- package/rest/knowledgeGraphService.d.ts +13 -13
- package/rest/layerSources/DynamicDataLayer.d.ts +1 -1
- package/rest/print.d.ts +1 -1
- package/rest/support/AttributeBinsQuery.d.ts +16 -2
- package/rest/support/ClosestFacilityParameters.d.ts +6 -6
- package/rest/support/LastMileDeliveryParameters.d.ts +4 -4
- package/rest/support/LocationToAddressParameters.d.ts +1 -1
- package/rest/support/PrintTemplate.d.ts +5 -5
- package/rest/support/Query.d.ts +18 -4
- package/rest/support/RouteParameters.d.ts +5 -5
- package/rest/support/ServiceAreaParameters.d.ts +6 -6
- package/rest/support/TopFeaturesQuery.d.ts +16 -2
- package/rest/support/meshFeatureSet.js +1 -1
- package/smartMapping/renderers/color.d.ts +40 -0
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.d.ts +8 -0
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.d.ts +38 -0
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +2 -0
- package/smartMapping/renderers/type.d.ts +20 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/renderers/univariateColorSize.d.ts +19 -0
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/support/revision.js +1 -1
- package/support/tests/setupServiceMocksMesh.js +1 -1
- package/support/timeUtils.d.ts +3 -3
- package/symbols/Font.d.ts +7 -7
- package/symbols/WebStyleSymbol.d.ts +11 -11
- package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
- package/symbols/support/Symbol3DEmissive.d.ts +8 -2
- package/symbols/support/jsonUtils.d.ts +1 -1
- package/time/TimeExtent.d.ts +2 -2
- package/versionManagement/VersionManagementService.d.ts +8 -8
- package/versionManagement/VersionManager.d.ts +13 -3
- package/versionManagement/VersioningState.d.ts +4 -4
- package/views/2d/MapViewConstraints.d.ts +29 -25
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +4 -20
- package/views/2d/layers/BaseLayerViewGL2D.d.ts +6 -22
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.d.ts +1 -1
- package/views/3d/glTF/internal/resourceUtils.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/webgl/RenderNode.d.ts +7 -7
- package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/BreakpointsOwner.d.ts +1 -1
- package/views/DOMContainer.d.ts +6 -6
- package/views/Magnifier.d.ts +1 -1
- package/views/MapView.d.ts +1 -1
- package/views/SceneView.d.ts +2 -2
- package/views/View2D.d.ts +62 -54
- package/views/Viewport2DMixin.d.ts +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileError.d.ts +1 -1
- package/views/input/gamepad/GamepadInputDevice.d.ts +1 -1
- package/views/input/types.d.ts +15 -15
- package/views/layers/FeatureLikeLayerView.d.ts +7 -4
- package/views/layers/GraphicsLayerView.d.ts +6 -3
- package/views/layers/ImageryLayerView.d.ts +4 -0
- package/views/navigation/Navigation.d.ts +1 -1
- package/views/support/WebAssemblyRequirements.js +1 -1
- package/views/types.d.ts +1 -1
- package/webscene/Glow.d.ts +0 -4
- package/widgets/BasemapGallery.d.ts +1 -1
- package/widgets/BasemapLayerList.d.ts +1 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm.d.ts +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Bookmarks.d.ts +1 -1
- package/widgets/BuildingExplorer.d.ts +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -2
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion.d.ts +2 -2
- package/widgets/Daylight.d.ts +1 -1
- package/widgets/Directions.d.ts +1 -1
- package/widgets/Editor.d.ts +1 -1
- package/widgets/Feature.d.ts +1 -1
- package/widgets/FeatureForm.d.ts +1 -1
- package/widgets/FeatureTable/FieldColumn.d.ts +1 -14
- package/widgets/FeatureTable/Grid/Column.d.ts +1 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -1
- package/widgets/FeatureTemplates.d.ts +1 -1
- package/widgets/FloorFilter.d.ts +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -3
- package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
- package/widgets/Fullscreen.d.ts +3 -3
- package/widgets/LayerList/ListItemPanel.d.ts +5 -5
- package/widgets/Legend.d.ts +1 -1
- package/widgets/Locate/LocateViewModel.d.ts +2 -2
- package/widgets/Locate.d.ts +1 -1
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/Popup.d.ts +1 -1
- package/widgets/Print/PrintViewModel.d.ts +2 -2
- package/widgets/Print/TemplateOptions.d.ts +4 -4
- package/widgets/Print.d.ts +6 -6
- package/widgets/Search/SearchViewModel.d.ts +5 -5
- package/widgets/Search.d.ts +4 -4
- package/widgets/ShadowCast.d.ts +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +1 -1
- package/widgets/Slice.d.ts +1 -1
- package/widgets/TableList/ListItemPanel.d.ts +5 -5
- package/widgets/Track/TrackViewModel.d.ts +3 -3
- package/widgets/Track.d.ts +3 -3
- package/widgets/UtilityNetworkTrace.d.ts +1 -1
- package/widgets/VersionManagement/VersionManagementViewModel.d.ts +2 -2
- package/widgets/Weather.d.ts +1 -1
- package/widgets/Widget.d.ts +1 -1
- package/widgets/support/forms/formUtils.js +1 -1
- package/widgets/support/types.d.ts +1 -1
- package/widgets/support/widget.d.ts +6 -6
- package/assets/esri/core/workers/chunks/1ddbf5f507ac153234be.js +0 -1
- package/assets/esri/core/workers/chunks/29615df388a0df022d8c.js +0 -1
- package/assets/esri/core/workers/chunks/2bd334f9ab89334df713.js +0 -1
- package/assets/esri/core/workers/chunks/319ff04282dc8ae38b56.js +0 -2
- package/assets/esri/core/workers/chunks/3a6678ee9990d7e83e15.js +0 -1
- package/assets/esri/core/workers/chunks/3b3986276e70297d573b.js +0 -1
- package/assets/esri/core/workers/chunks/46fbd519cc1a37923bfc.js +0 -1
- package/assets/esri/core/workers/chunks/4ef53455c8bc6efee80e.js +0 -1
- package/assets/esri/core/workers/chunks/51ee6102f5f4840a5b47.js +0 -1
- package/assets/esri/core/workers/chunks/58994b6bfcda5f2ada80.js +0 -1
- package/assets/esri/core/workers/chunks/6db274f6767102a39021.js +0 -1
- package/assets/esri/core/workers/chunks/77769663cd712822d33e.js +0 -1
- package/assets/esri/core/workers/chunks/8c5a41ae68775bac3446.js +0 -1
- package/assets/esri/core/workers/chunks/b08a1255dacf6cfcf139.js +0 -640
- package/assets/esri/core/workers/chunks/b098469e0010a6b44df9.js +0 -1
- package/assets/esri/core/workers/chunks/ca1b0cb14ea9ae1bf2a3.js +0 -1
- package/assets/esri/core/workers/chunks/ca4245414d8ecd217f9d.js +0 -1
- package/assets/esri/core/workers/chunks/d3af51a6d9014ff46170.js +0 -1
- package/assets/esri/core/workers/chunks/d561dc933d8fe1672d85.js +0 -1
- package/assets/esri/core/workers/chunks/e38836bfcc7a15a2fd1f.js +0 -1
- package/assets/esri/core/workers/chunks/e645f992ec6f935ee3a5.js +0 -1
- package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +0 -1
- package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +0 -1
- /package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js.LICENSE.txt → 62e77e3c5ca9b4887923.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{319ff04282dc8ae38b56.js.LICENSE.txt → 7df94cb985db41815fad.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js.LICENSE.txt → 875cce0be4f6c89f80f3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js.LICENSE.txt → d9d4754062758789f186.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js.LICENSE.txt → f5731ad4cfbbf1cc569a.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8245],{11006(e,t,n){function i(e,t,n,i,r){s(e,t,n||0,i||e.length-1,r||a)}function s(e,t,n,i,a){for(;i>n;){if(i-n>600){var o=i-n+1,l=t-n+1,u=Math.log(o),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(o-c)/o)*(l-o/2<0?-1:1);s(e,t,Math.max(n,Math.floor(t-l*c/o+d)),Math.min(i,Math.floor(t+(o-l)*c/o+d)),a)}var p=e[t],f=n,h=i;for(r(e,n,t),a(e[i],p)>0&&r(e,n,i);f<h;){for(r(e,f,h),f++,h--;a(e[f],p)<0;)f++;for(;a(e[h],p)>0;)h--}0===a(e[n],p)?r(e,n,h):r(e,++h,i),h<=t&&(n=h+1),t<=h&&(i=h-1)}}function r(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function a(e,t){return e<t?-1:e>t?1:0}n.d(t,{q:()=>i})},69052(e,t,n){n.d(t,{hr:()=>s,ie:()=>l,uC:()=>o});var i=n(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return r(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+a(this.range,e-t,n)}minimalMonotonic(e,t,n){return r(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(i)?n:i}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function r(e,t,n,i,s=0,r=!1){return(i-=s)<t?i+=a(e,t-i):i>n&&(i-=a(e,i-n)),r&&i===n&&(i=t),i+s}function a(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const o=new s(0,2*Math.PI),l=(new s(-Math.PI,Math.PI),new s(0,360))},56512(e,t,n){function i(e){let t,n,i=[],s=!1;return function(...r){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(r,i)||(n=e.apply(this,r),t=this,i=r,s=!0),n}}n.d(t,{B:()=>i})},44794(e,t,n){n.d(t,{v:()=>o});var i=n(4718),s=n(62788),r=n(95488);class a{constructor(e,t){this._observable=new r.I,this._value=e,this._equalityFunction=t}get value(){return(0,s.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function o(e,t=i.gh){return new a(e,t)}},44123(e,t,n){n.d(t,{WhereClauseCache:()=>r});var i=n(66344),s=n(89696);class r{constructor(e,t){this._cache=new i.q(e),this._invalidCache=new i.q(t)}get(e,t){const n=`${t?.uid}:${e}`,i=this._cache.get(n);if(i)return i;if(null!=this._invalidCache.get(n))return null;try{const i=s.A.create(e,{fieldsIndex:t});return this._cache.put(n,i),i}catch(e){return this._invalidCache.put(n,e),null}}getError(e,t){const n=`${t?.uid}:${e}`;return this._invalidCache.get(n)??null}}},159(e,t,n){n.d(t,{A:()=>u});var i,s=n(5482),r=n(69540),a=n(25482),o=n(91429),l=n(99157);let u=i=class extends((0,r.OU)(a.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,s.Cg)([(0,o.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,s.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>l});var i,s=n(5482),r=n(69540),a=n(25482),o=n(91429);let l=i=class extends((0,r.OU)(a.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,o.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],l.prototype,"isInverse",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=i=(0,s.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>s});var i=n(49208);function s(e,t,n,s,r,a,o=Math.floor(e.length/3)){const l=(0,i.jd)(t,r);if(null==l)return!1;if(l===i.pO){if(e===s&&n===a)return!0;const t=n+3*o;for(let i=n,r=a;i<t;i++,r++)s[r]=e[i]??0;return!0}const u=n+3*o;for(let t=n,i=a;t<u;t+=3,i+=3)l(e,t,s,i);return!0}},49208(e,t,n){n.d(t,{Tp:()=>d,jd:()=>c,pO:()=>f,w5:()=>u});var i=n(34727),s=n(86211),r=n(73941),a=n(79258),o=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:v,6:null,8:null,0:null,3:m,11:y,2:f,4:E},5:{5:f,7:null,9:null,10:f,1:v,6:null,8:null,0:null,3:m,11:y,2:f,4:E},7:{5:null,7:f,9:null,10:f,1:null,6:_,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:S,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,n,i){const s=e[t]/O,r=C-2*Math.atan(Math.exp(-e[t+1]/O)),a=O+(e[t+2]??0),o=Math.cos(r)*a;n[i]=Math.cos(s)*o,n[i+1]=Math.sin(s)*o,n[i+2]=Math.sin(r)*a},6:null,8:null,0:null,3:f,11:function(e,t,n,i){h(e,t,n,i),y(n,i,n,i)},2:h,4:function(e,t,n,i){h(e,t,n,i),E(n,i,n,i)}},4:{5:F,7:null,9:null,10:F,1:function(e,t,n,i){F(e,t,n,i),v(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){F(e,t,n,i),m(n,i,n,i)},11:function(e,t,n,i){F(e,t,n,i),y(n,i,n,i)},2:F,4:f},1:{5:w,7:null,9:null,10:w,1:f,6:null,8:null,0:null,3:function(e,t,n,i){w(e,t,n,i),m(n,i,n,i)},11:function(e,t,n,i){w(e,t,n,i),y(n,i,n,i)},2:w,4:function(e,t,n,i){w(e,t,n,i),E(n,i,n,i)}},6:{5:null,7:I,9:null,10:I,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:R,10:R,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:v,6:_,8:S,0:null,3:m,11:y,2:f,4:E},11:{5:g,7:null,9:null,10:g,1:function(e,t,n,i){g(e,t,n,i),v(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){g(e,t,n,i),m(n,i,n,i)},11:f,2:g,4:function(e,t,n,i){g(e,t,n,i),E(n,i,n,i)}}};function c(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(A.source.spatialReference===e&&A.dest.spatialReference===t)return A;const n=p(e,A.source),i=p(t,A.dest);return 0===n&&0===i?(0,l.aI)(e,t)?A.projector=f:A.projector=null:A.projector=u[n][i],A}function p(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,r.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===r.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===r.FY.wkt?t.spatialReferenceId=6:e.wkt===r.LJ.wkt?t.spatialReferenceId=8:(0,r.q8)(e)?t.spatialReferenceId=7:(0,r.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t]??0)}function h(e,t,n,i){n[i]=b*(e[t]/O),n[i+1]=b*(C-2*Math.atan(Math.exp(-e[t+1]/O))),n[i+2]=e[t+2]??0}function m(e,t,n,s){!function(e,t,n,s,r){const a=.4999999*Math.PI,o=(0,i.qE)(M*e[t+1],-a,a),l=Math.sin(o);n[s++]=M*e[t]*r.radius,n[s++]=r.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[s]=e[t+2]??0}(e,t,n,s,a.$O)}function y(e,t,n,i){n[i]=e[t]*N,n[i+1]=e[t+1]*N,n[i+2]=e[t+2]??0}function g(e,t,n,i){n[i]=e[t]*P,n[i+1]=e[t+1]*P,n[i+2]=e[t+2]??0}function x(e,t,n,i,s){const r=s+(e[t+2]??0),a=M*e[t],o=M*e[t+1],l=Math.cos(o)*r;n[i]=Math.cos(a)*l,n[i+1]=Math.sin(a)*l,n[i+2]=Math.sin(o)*r}function S(e,t,n,i){x(e,t,n,i,a.Sw.radius)}function _(e,t,n,i){x(e,t,n,i,a.sH.radius)}function v(e,t,n,i){x(e,t,n,i,a.$O.radius)}function T(e,t,n,s,r){const a=e[t],o=e[t+1],l=e[t+2]??0,u=Math.sqrt(a*a+o*o+l*l),c=(0,i.YN)(l/(0===u?1:u)),d=Math.atan2(o,a);n[s++]=b*d,n[s++]=b*c,n[s]=u-r}function R(e,t,n,i){T(e,t,n,i,a.Sw.radius)}function I(e,t,n,i){T(e,t,n,i,a.sH.radius)}function w(e,t,n,i){T(e,t,n,i,a.$O.radius)}function E(e,t,n,i){!function(e,t,n,i,s){const r=M*e[t],a=M*e[t+1],o=e[t+2]??0,l=Math.sin(a),u=Math.cos(a),c=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);n[i++]=(c+o)*u*Math.cos(r),n[i++]=(c+o)*u*Math.sin(r),n[i++]=(c*(1-s.eccentricitySquared)+o)*l}(e,t,n,i,a.$O)}function F(e,t,n,i){const s=o.TP,r=e[t],l=e[t+1],u=e[t+2]??0;let c,d,p,f,h,m,y,g,x,S,_,v,T,R,I,w,E,F,A,M,C;c=Math.abs(u),d=r*r+l*l,p=Math.sqrt(d),f=d+u*u,h=Math.sqrt(f),M=Math.atan2(l,r),m=u*u/f,y=d/f,R=s.a2/h,I=s.a3-s.a4/h,y>.3?(g=c/h*(1+y*(s.a1+R+m*I)/h),A=Math.asin(g),S=g*g,x=Math.sqrt(1-S)):(x=p/h*(1-m*(s.a5-R-y*I)/h),A=Math.acos(x),S=1-x*x,g=Math.sqrt(S)),_=1-a.$O.eccentricitySquared*S,v=a.$O.radius/Math.sqrt(_),T=s.a6*v,R=p-v*x,I=c-T*g,E=x*R+g*I,w=x*I-g*R,F=w/(T/_+E),A+=F,C=E+w*F/2,u<0&&(A=-A),n[i++]=b*M,n[i++]=b*A,n[i]=C}const A={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},M=(0,i.kU)(1),b=(0,i.KJ)(1),C=.5*Math.PI,O=a.$O.radius,N=O*Math.PI/180,P=180/(O*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>Z,initializeProjection:()=>$,isEqualBaseGCS:()=>H,isLoaded:()=>O,isLoadedOrLoad:()=>N,isLoadedOrLoadFor:()=>P,load:()=>D,project:()=>V,projectAsync:()=>U,projectExtent:()=>se,projectMany:()=>G,projectMultipoint:()=>K,projectOrLoad:()=>L,projectOrLoadMany:()=>k,projectPoint:()=>Y,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>W,requiresLoad:()=>z,test:()=>Q,tryProject:()=>B,unload:()=>j});var i=n(49186),s=n(17676),r=n(62788),a=n(95488),o=n(51850),l=n(21276),u=n(73941),c=n(5443),d=n(91075),p=n(48526),f=n(86738),h=n(39829),m=n(82799),y=n(16930),g=n(98764),x=n(159),S=n(9762),_=n(49208);function v(e,t,n,i,s,r){return T[0]=e,T[1]=t,T[2]=n,(0,S.projectBuffer)(T,i,0,s,r,0)}const T=(0,o.vt)();var R=n(60408),I=n(21325),w=n(52006);let E=null,F=null,A=null,M=null,b={};const C=new a.I;function O(){return!!(F?.isLoaded()&&A?.isLoaded()&&M?.isLoaded())}function N(){return!!O()||((0,r.gc)(C),D(),!1)}function P(e,t){return!e||!t||Z(e,t)||N()}function z(e,t){return!Z(e,t)&&!O()}async function D(e){null==E&&(E=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(F=e,F.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(A=e,A.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(M=e,M.load()))])),await E,(0,s.Te)(e),C.notify()}function V(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),G(e,e[0].spatialReference,t,n)):((0,l.f)(e),G([e],e.spatialReference,t,n)[0])}function G(e,t,n,i){if(null==t||null==n)return e;if(Z(t,n,i))return e.map(e=>W(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return G(e.map(e=>W(e,t,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(n))return G(e,t,y.A.WGS84).map(e=>W(e,y.A.WGS84,n));if(!O())throw new q;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:M.getTransformation(t,n,i.areaOfInterestExtent)||new x.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let s=b[e];s||(s=M.getTransformation(t,n)||new x.A,b[e]=s),i={geographicTransformation:s,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof d.A?F.executeMany(e,n,i):A.executeMany(e,n,i)}function B(e,t,n){try{return V(e,t,n)}catch(e){return null}}function L(e,t){const n=k([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function k(e,t,n){if(!O())for(const n of e)if(null!=n&&!(0,I.aI)(n.spatialReference,t)&&(0,I.fn)(n.spatialReference)&&(0,I.fn)(t)&&!Z(n.spatialReference,t))return(0,r.gc)(C),{pending:D(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,I.aI)(e.spatialReference,t)?e:(0,I.fn)(e.spatialReference)&&(0,I.fn)(t)?V(e,t,n):null)}}class q extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function j(){E=null,F=null,A=null,M=null,b={}}const Q={get loadPromise(){return E}};async function U(e,t,n){if((0,s.Te)(n),!e)return e;const i=k(Array.isArray(e)?e:[e],t,n);if(i.pending)return await i.pending,(0,s.Te)(n),U(e,t,n);const r=i.geometries??[];return Array.isArray(e)?r:r[0]}function Z(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,I.aI)(e,t)||(0,I.fn)(e)&&(0,I.fn)(t)&&!!(0,_.jd)(e,t))}function H(e,t){if((0,I.aI)(e,t))return!0;if(!(0,I.fn)(e)||!(0,I.fn)(t))return!1;const n=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e),i=(0,I.oT)(t)||(0,I.K8)(t)||(0,I.x1)(t);return n&&i}async function $(e,t,n,i){if(O())return(0,s.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:s}of e)if(t&&n&&!Z(t,n,s))return D(i)}else if(e&&t&&!Z(e,t,n))return D(i);return(0,s.NO)(i)}function W(e,t,n){return e?(0,R.fT)(e)?J(e,t,new f.A,n,0):(0,R.ZC)(e)?re(e,t,new c.A,n,0):(0,R.Bi)(e)?ie(e,t,new h.A,n,0):(0,R.Rg)(e)?te(e,t,new m.A,n,0):(0,R.U9)(e)?X(e,t,new p.A,n,0):null:null}function Y(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,n,i)}function J(e,t,n,i,s){ue[0]=e.x,ue[1]=e.y;const r=e.z;return ue[2]=void 0!==r?r:s,(0,S.projectBuffer)(ue,t,0,ue,i,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=i,void 0!==r||(0,u.xP)(i)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function K(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,s){const{points:r,hasZ:a,hasM:o}=e,l=[],u=r.length,c=[];for(const e of r)c.push(e[0],e[1],a?e[2]:s);if(!(0,S.projectBuffer)(c,t,0,c,i,0,u))return null;const d=le(a,i);for(let e=0;e<u;++e){const t=3*e,n=c[t],i=c[t+1];d&&o?l.push([n,i,c[t+2],r[e][3]]):d?l.push([n,i,c[t+2]]):o?l.push([n,i,r[e][2]]):l.push([n,i])}return n.points=l,n.spatialReference=i,n.hasZ=a,n.hasM=o,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,s){const{curvePaths:r,paths:a,hasZ:o,hasM:l}=e;if(!(r?oe(r,o??!1,l??!1,t,n.curvePaths=[],i,s):ae(a,o??!1,l??!1,t,n.paths,i,s)))return null;const u=le(o,i);return n.spatialReference=i,n.hasZ=u,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,s){const{curveRings:r,rings:a,hasZ:o,hasM:l}=e;return(r?oe(r,o??!1,l??!1,t,n.curveRings=[],i,s):ae(a,o??!1,l??!1,t,n.rings,i,s))?(n.spatialReference=i,n.hasZ=le(o,i),n.hasM=l,n):null}function se(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,i)}function re(e,t,n,i,s){const{xmin:r,ymin:a,xmax:o,ymax:l,hasZ:u,hasM:c}=e;if(!v(r,a,u?e.zmin:s,t,ue,i))return null;const d=le(u,i);return n.xmin=ue[0],n.ymin=ue[1],d&&(n.zmin=ue[2]),v(o,l,u?e.zmax:s,t,ue,i)?(n.xmax=ue[0],n.ymax=ue[1],d&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function ae(e,t,n,i,s,r,a=0){const o=new Array;for(const n of e)for(const e of n)o.push(e[0],e[1],t?e[2]:a);if(!(0,S.projectBuffer)(o,i,0,o,r,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,r);for(const t of e){const e=new Array;for(const i of t){const t=o.slice(l,l+=3);c||t.pop(),n&&t.push(i[u]),e.push(t)}s.push(e)}return!0}function oe(e,t,n,i,s,r,a=0){const o=new Array;for(const n of e)for(const e of n){if((0,w.FG)(e))return!1;if((0,w.aO)(e)){const[n,i]=e.c;o.push(n[0],n[1],t?n[2]:a,i[0],i[1],a);continue}if((0,w.n1)(e)){const[n,i,s]=e.b;o.push(n[0],n[1],t?n[2]:a,i[0],i[1],a,s[0],s[1],a);continue}const n=e;o.push(n[0],n[1],t?n[2]:a)}if(!(0,S.projectBuffer)(o,i,0,o,r,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,r);for(const t of e){const e=new Array;for(const i of t){const t=o.slice(l,l+=3);if(c||t.pop(),n&&t.push((0,w.yP)(i)[u]),(0,w.FG)(i))return!1;if((0,w.aO)(i)){const n=o[l++],i=o[l++];++l,e.push({c:[t,[n,i]]});continue}if((0,w.n1)(i)){const n=o[l++],i=o[l++];++l;const s=o[l++],r=o[l++];++l,e.push({b:[t,[n,i],[s,r]]});continue}e.push(t)}s.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,I.aI)(t,g.Y0)}const ue=(0,o.vt)()},98764(e,t,n){n.d(t,{GD:()=>a,Y0:()=>u,lO:()=>c});var i=n(73941),s=n(16930),r=n(21325);const a=new s.A(i.fv),o=new s.A(i.FY),l=new s.A(i.LJ),u=new s.A(i.Ro);function c(e){const t=d.get(e);if(t)return t;let n=a;if(e)if(e===o)n=o;else if(e===l)n=l;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,r.tl)(t)||(0,r.tl)(i)?n=o:((0,r.ZL)(t)||(0,r.ZL)(i))&&(n=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===p?n=o:e===f&&(n=l)}}}return d.set(e,n),n}const d=new Map,p=o.wkt.toUpperCase(),f=l.wkt.toUpperCase()},46329(e,t,n){n.d(t,{y:()=>d});var i=n(49186),s=n(4305),r=n(513),a=n(50954),o=n(52006),l=n(49663),u=n(46068),c=n(59803);function d(e,t,n){if((0,o.Xq)(t))return(0,c.T)(e,t,n);if((0,o.n1)(t)){const r=(0,s.m_)(e,t,n)[0];if(null==r)throw new i.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return r}if((0,o.aO)(t)){const i=(0,a.pM)(e,t);return(0,r.fM)(i,n)}if((0,o.DA)(t)){const i=(0,l.io)(e,t);return(0,r.fM)(i,n)}const d=(0,u.SW)(e,t);return(0,u.pb)(d,n)}},31411(e,t,n){n.d(t,{GS:()=>I,gh:()=>E});var i=n(49186),s=n(56512),r=n(65864),a=n(4305),o=n(50954),l=n(52006),u=n(49663),c=n(46068),d=n(15507);const p=1e-6,f=[0,0];function h(e){return{maxSegmentLength:e.maxSegmentLength??0,maxDeviation:e.maxDeviation??0,maxSegmentsPerCurve:e.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(e.minSegmentsPerCurve??1,1)}}class m{constructor(e,t){this.curveStart=e,this.curveEnd=t,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(e,t){this.tStart=0,this.arcStart=e,this.tEndStack.push(1),this.arcEndStack.push(t)}splitAt(e){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(e),this.arcEndStack.push(this.interpolate(e))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(e,{maxDeviation:t,maxSegmentLength:n,maxSegmentsPerCurve:i,minSegmentsPerCurve:s}){const r=n*n,a=t*t,o=1/i,l=this.interpolate(0),u=this.interpolate(1);(0,d.kb)(this.curveStart,l)>p&&e.push(l),this.initialize(l,u);const c=1/s;for(let e=s-1;e>0;e--){const t=e*c;this.pop(),this.splitAt(t)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===r||!isFinite(r)||(0,d.kb)(this.arcStart,this.arcEnd)<r)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(e.push(this.arcEnd),this.next()):this.splitInHalf();return(0,d.kb)(this.curveEnd,u)>p&&e.push([...this.curveEnd]),e}}class y extends m{constructor(e,t){const[n,i,s]=t.b;super(e,n),this._controlPointsStack=[],this._curveControlPoints=[i,s],this._arcControlPoints=[i,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(e){const{arcStart:t,arcEnd:n,tStart:i,tEnd:s}=this,[r,a]=this._arcControlPoints,o=(e-i)/(s-i),l=(0,d.RS)([],t,r,o),u=(0,d.RS)(f,r,a,o),c=(0,d.RS)([],a,n,o),p=(0,d.RS)([],l,u,o),h=(0,d.RS)([],u,c,o),m=(0,d.RS)([],p,h,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([h,c]),this.tEndStack.push(e),this.arcEndStack.push(m),this._arcControlPoints[0]=l,this._arcControlPoints[1]=p,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(e){const{curveStart:t,curveEnd:n}=this,[i,s]=this._curveControlPoints;return(0,a.B4)(t,i,s,n,e)}getDeviation2(){const{arcStart:e,arcEnd:t}=this,[n,i]=this._arcControlPoints;return Math.max((0,d.yE)(n,e,t),(0,d.yE)(i,e,t))}}class g extends m{constructor(e,t){const[n]=t.a;super(e,n),this._derivedEllipse=(0,c.SW)(e,t)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(e){return(0,c.Uk)(this._derivedEllipse,e)}getDeviation2(){return(0,d.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function x(e,t,n,{cx:i,cy:s,radius:r,thetaStart:a,thetaEnd:o,isInvalid:l},{maxDeviation:u,maxSegmentLength:c,maxSegmentsPerCurve:f,minSegmentsPerCurve:h}){if(l)return e.push([...n]),e;const m=2*r,y=[i+r*Math.cos(a),s+r*Math.sin(a)],g=[i+r*Math.cos(o),s+r*Math.sin(o)];(0,d.kb)(t,y)>p&&e.push(y);const x=Math.abs(o-a),S=c>0&&c<m?2*Math.asin(c/m):x,_=u>0&&u<=r?2*Math.acos(1-u/r):x,v=Math.min(S,_),T=Math.min(f,Math.max(h,Math.ceil(Math.abs(x/v)))),R=1/T;for(let t=1;t<T;t++){const n=t*R,l=a*(1-n)+o*n;e.push([i+r*Math.cos(l),s+r*Math.sin(l)])}return e.push(g),(0,d.kb)(n,g)>p&&e.push([...n]),e}function S(e,t,n,i){return new y(t,n).densify(e,i)}function _(e,t,n,i){const s=(0,o.pM)(t,n),[r]=n.c;return x(e,t,r,s,i)}function v(e,t,n,i){const s=(0,u.io)(t,n),[r]=n.a;return x(e,t,r,s,i)}function T(e,t,n,i){const[s,r,a,o,l,u,c]=n.a;return 0===u||0===c?(e.push([...s]),e):new g(t,n).densify(e,i)}function R(e,t,n,i){return(0,l.Xq)(n)?(e.push([...n]),e):(0,l.n1)(n)?S(e,t,n,i):(0,l.aO)(n)?_(e,t,n,i):(0,l.DA)(n)?v(e,t,n,i):T(e,t,n,i)}function I(e,t={}){if(!(0,l.Ed)(e))return e;const n=h(t),i=(0,l.FD)(e),s=[];for(const e of i){const t=[];for(let i=0;i<e.length-1;i++){const s=i+1,r=[...(0,l.yP)(e[i])];0===i&&t.push(r),R(t,r,e[s],n)}s.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},paths:s,spatialReference:e.spatialReference}:{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},rings:s,spatialReference:e.spatialReference}}const w=(0,s.B)(e=>({maxDeviation:0,maxSegmentLength:100*e,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function E(e,t,s){const a=new Set(t);return await async function(e,t,s){let r=null;for(const a of e)if(a&&(0,l.Ed)(a)&&null==a.spatialReference.xyTolerance&&(0,l.V8)(a,t)){const e=a.spatialReference;if(!e)throw new i.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const t=F(e);if(s.has(t))a.spatialReference=s.get(t);else{r||(r=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const o=r.fromSpatialReference(e),l=o?.getTolerance();if(null==l)throw new i.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=a.spatialReference.clone();u.read({xyTolerance:l}),a.spatialReference=u,s.set(t,u)}}}(e,a,s),e.map(e=>{if(!e||!(0,l.Ed)(e))return e;const n=e.spatialReference.xyTolerance;if(null==n)return e;const i=w(n);return(0,r.rS)(function(e,t,n){if(!(0,l.Ed)(e))return e;const i=new Set(t),s=h(n),r=(0,l.FD)(e),a=[];let o=!1;for(const e of r){const t=[];for(let n=0;n<e.length-1;n++){const r=n+1,a=[...(0,l.yP)(e[n])];0===n&&t.push(a);const u=e[r];(0,l.Xq)(u)?t.push([...u]):(0,l.n1)(u)&&!i.has("cubic-bezier")?S(t,a,u,s):(0,l.aO)(u)&&!i.has("circular-arc")?_(t,a,u,s):(0,l.DA)(u)&&!i.has("elliptic-arc")?v(t,a,u,s):(0,l.wY)(u)&&!i.has("elliptic-arc")?T(t,a,u,s):(t.push((0,l.tk)(u)),o=!0)}a.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},spatialReference:e.spatialReference,...o?{curvePaths:a}:{paths:a}}:{hasZ:e.hasZ,hasM:e.hasM,spatialReference:e.spatialReference,...o?{curveRings:a}:{rings:a}}}(e,t,i))})}function F(e){if(null!=e.wkid)return`${e.wkid}`;if(null!=e.wkt)return e.wkt;const t="toJSON"in e&&"function"==typeof e.toJSON?e.toJSON():e;return JSON.stringify(t)}},34403(e,t,n){n.d(t,{TP:()=>a});var i=n(79258);Math.PI;const s=i.$O.radius,r=i.$O.eccentricitySquared,a={a1:s*r,a2:s*r*s*r,a3:s*r*r/2,a4:s*r*s*r*2.5,a5:s*r+s*r*r/2,a6:1-r};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},17136(e,t,n){n.d(t,{Y_:()=>b,O7:()=>A,el:()=>F});var i=n(92602),s=n(69052),r=n(49186),a=n(53966),o=n(39829),l=n(82799),u=n(16930),c=n(80754),d=n(21325),p=n(28735),f=n(52006),h=n(31411),m=n(11254),y=n(60408),g=n(65864),x=n(2272),S=n(84952),_=n(92300);const v=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function T(e){return"polygon"===e[0].type}function R(e){return"polyline"===e[0].type}function I(e,t,n){const i=1e6;if(t){const t=(0,f.Ed)(e)?(0,h.GS)(e,{maxSegmentLength:i}):function(e,t){if(!(e instanceof l.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new r.A("internal:geometry",e)}const n=(0,c.r8)(e),i=[];for(const e of n){const n=[];i.push(n),n.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const s=e[i][0],r=e[i][1],a=e[i+1][0],o=e[i+1][1],l=Math.sqrt((a-s)*(a-s)+(o-r)*(o-r)),u=(o-r)/l,c=(a-s)/l,d=l/t;if(d>1){for(let e=1;e<=d-1;e++){const i=e*t,a=c*i+s,o=u*i+r;n.push([a,o])}const e=(l+Math.floor(d-1)*t)/2,i=c*e+s,a=u*e+r;n.push([i,a])}n.push([a,o])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:i,spatialReference:e.spatialReference}):new l.A({paths:i,spatialReference:e.spatialReference})}(e,i);e=(0,p.ci)(t,!0)}return n&&(e=(0,c.kS)(e,n)),e}function w(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,c.kd)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,c.kd)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,c.kd)(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<n){const t=(0,c.kd)(i,n);e=e.clone().offset(t*(-2*n),0)}}return e}function E(e,t){let n=-1;for(let i=0;i<t.cutIndexes.length;i++){const s=t.cutIndexes[i],r=t.geometries[i],a=(0,c.r8)(r);for(let e=0;e<a.length;e++){const t=a[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const i=t[e][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,c.kd)(n,180);for(let n=0;n<t.length;n++){const t=r.getPoint(e,n);r.setPoint(e,n,t.clone().offset(i,0))}return!0}})}if(s===n){if(T(e))for(const t of(0,c.r8)(r))e[s]=e[s].addRing(t);else if(R(e))for(const t of(0,c.r8)(r))e[s]=e[s].addPath(t)}else n=s,e[s]=r}return e}async function F(e,t,n){if(!Array.isArray(e))return F([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let r,a,u,f,h,T,R,A,M=0;const b=[],C=[];for(const t of e)if(null!=t)if(r||(r=t.spatialReference,a=(0,d.Vp)(r),u=r.isWebMercator,T=u?102100:4326,f=c.j7[T].maxX,h=c.j7[T].minX,R=c.j7[T].plus180Line,A=c.j7[T].minus180Line),a)if("mesh"===t.type)C.push(t);else if("point"===t.type)C.push(w(t.clone(),f,h));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>w(e,f,h)),C.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,a);C.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,n=(0,c.kd)(e.xmin,h)*(2*f);let i=0===n?t.clone():(0,c.kS)(t.clone(),n);e.offset(n,0);let{xmin:s,xmax:r}=e;s=Number(s.toFixed(9)),r=Number(r.toFixed(9)),e.intersects(R)&&r!==f?(M=r>M?r:M,i=I(i,u),b.push(i),C.push("cut")):e.intersects(A)&&s!==h?(M=r*(2*f)>M?r*(2*f):M,i=I(i,u,360),b.push(i),C.push("cut")):C.push(i)}else C.push(t.clone());else C.push(t);else C.push(t);let O=(0,c.kd)(M,f),N=-90;const P=O,z=new l.A;for(;O>0;){const e=360*O-180;z.addPath([[e,N],[e,-1*N]]),N*=-1,O--}if(b.length>0&&P>0){const t=E(b,await async function(e,t,n,i){const s=(0,x.Dl)(e),r=t[0].spatialReference,a={...i,responseType:"json",query:{...s.query,f:"json",sr:(0,d.YX)(r),target:JSON.stringify({geometryType:(0,y.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},o=await(0,m.A)(s.path+"/cut",a),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,g.rS)(e);return t.spatialReference=r,t})}}(s,b,z,n)),i=[],r=[];for(let n=0;n<C.length;n++){const s=C[n];if("cut"!==s)r.push(s);else{const s=t.shift(),a=e[n];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&s.rings.length>=a.rings.length?(i.push(s),r.push("simplify")):r.push(u?(0,p.Gh)(s):s)}}if(!i.length)return r;const a=await async function(e,t,n){const i="string"==typeof e?(0,S.An)(e):e,s=t[0].spatialReference,r=(0,y.$B)(t[0]),a={...n,query:{...i.query,f:"json",sr:(0,d.YX)(s),geometries:JSON.stringify((0,_.X)(t))}},{data:o}=await(0,m.A)(i.path+"/simplify",a);return(0,_.V)(o.geometries,r,s)}(s,i,n),o=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?o.push(t):o.push(u?(0,p.Gh)(a.shift()):a.shift())}return o}const D=[];for(let e=0;e<C.length;e++){const t=C[e];if("cut"!==t)D.push(t);else{const e=b.shift();D.push(!0===u?(0,p.Gh)(e):e)}}return D}function A(e,t,n){const i=(0,d.Vp)(n);if(null==i)return e;const[s,r]=i.valid,a=2*r;let o=0,l=0;t>r?o=Math.ceil(Math.abs(t-r)/a):t<s&&(o=-Math.ceil(Math.abs(t-s)/a)),e>r?l=Math.ceil(Math.abs(e-r)/a):e<s&&(l=-Math.ceil(Math.abs(e-s)/a));let u=e+(o-l)*a;const c=u-t;return c>r?u-=a:c<s&&(u+=a),u}function M(e){const t=(0,d.Vp)(e);if(null==t)return null;const[n,i]=t.valid;return new s.hr(n,i)}const b=M(u.A.WGS84);M(u.A.WebMercator)},80754(e,t,n){n.d(t,{j7:()=>o,kS:()=>u,kd:()=>l,r8:()=>c});var i=n(82799),s=n(16930),r=n(60408),a=n(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,a.Ed)(e))for(const n of function(e){return(0,r.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of n){if((0,a.aO)(e)){const[n,i]=e.c;n[0]+=t,i[0]+=t;continue}if((0,a.FG)(e)){const[n,i]=e.a;n[0]+=t,i[0]+=t;continue}if((0,a.n1)(e)){const[n,i,s]=e.b;n[0]+=t,i[0]+=t,s[0]+=t;continue}e[0]+=t}for(const n of c(e))for(const e of n)e[0]+=t;return e}function c(e){return(0,r.Bi)(e)?e.rings:e.paths}},62577(e,t,n){function i(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function s(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:n,translate:i}=e,s=n[0]??1,r=n[1]??1;return{originPosition:"lowerLeft",scale:[s,"lowerLeft"===t?r:-r,n[2]??1,n[3]??1],translate:[i[0]??0,i[1]??0,i[2]??0,i[3]??0]}}function r({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function a({scale:e,translate:t},n){return Math.round((n-t[1])/e[1])}function o({scale:e,translate:t},n){return n*e[0]+t[0]}function l({scale:e,translate:t},n){return n*e[1]+t[1]}function u({scale:e,translate:t},n){return(n??0)*e[2]+t[2]}function c({scale:e,translate:t},n){return n?n*e[3]+t[3]:0}function d(e,t){return e&&t?m:e&&!t?f:!e&&t?h:p}n.d(t,{$X:()=>_,B2:()=>a,Gy:()=>g,IE:()=>r,P5:()=>v,Q1:()=>s,SW:()=>x,Tr:()=>S,VV:()=>i});const p=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let s=o(e,i[0]),r=l(e,i[1]);n[0]=[s,r];const{scale:a,originPosition:u}=e,c=a[0],d="lowerLeft"===u?a[1]:-a[1];for(let e=1;e<t.length;e++){const[i,a]=t[e];s+=c*i,r+=d*a,n[e]=[s,r]}return n},f=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let s=o(e,i[0]),r=l(e,i[1]);n[0]=[s,r,u(e,i[2])];const{scale:a,originPosition:c}=e,d=a[0],p="lowerLeft"===c?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l]=t[i];s+=d*a,r+=p*o,n[i]=[s,r,u(e,l)]}return n},h=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let s=o(e,i[0]),r=l(e,i[1]);n[0]=[s,r,c(e,i[2])];const{scale:a,originPosition:u}=e,d=a[0],p="lowerLeft"===u?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l]=t[i];s+=d*a,r+=p*o,n[i]=[s,r,c(e,l)]}return n},m=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let s=o(e,i[0]),r=l(e,i[1]);n[0]=[s,r,u(e,i[2]),c(e,i[3])];const{scale:a,originPosition:d}=e,p=a[0],f="lowerLeft"===d?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l,d]=t[i];s+=p*a,r+=f*o,n[i]=[s,r,u(e,l),c(e,d)]}return n};function y(e,t,n){const i=new Array(n.length);for(let s=0;s<n.length;s++)i[s]=t(e,n[s]);return i}function g(e,t,n){const i=s(e);return t.x=r(i,n.x),t.y=a(i,n.y),null!=n.z&&(t.z=function({scale:e,translate:t},n){return Math.round(((n??0)-t[2])/e[2])}(i,n.z)),null!=n.m&&(t.m=function({scale:e,translate:t},n){return n?Math.round((n-t[3])/e[3]):0}(i,n.m)),t}function x(e,t,n,i=n?.hasZ??!1,r=n?.hasM??!1){if(null!=n){const a=s(e);t.points=d(i,r)(a,n.points),t.hasZ=i,t.hasM=r}return t}function S(e,t,n,i=null!=n?.z,r=null!=n?.m){if(null==n)return t;const a=s(e);return t.x=o(a,n.x),t.y=l(a,n.y),i&&(t.z=u(a,n.z)),r&&(t.m=c(a,n.m)),t}function _(e,t,n,i=n?.hasZ??!1,r=n?.hasM??!1){if(null!=n){const a=s(e);t.rings=y(a,d(i,r),n.rings),t.hasZ=i,t.hasM=r}return t}function v(e,t,n,i=n?.hasZ??!1,r=n?.hasM??!1){if(null!=n){const a=s(e);t.paths=y(a,d(i,r),n.paths),t.hasZ=i,t.hasM=r}return t}},75752(e,t,n){n.d(t,{do:()=>B,Wc:()=>k});var i=n(4576),s=n(21818),r=n(49186),a=(n(44208),n(4718)),o=n(97768),l=n(17676),u=n(86211),c=n(12195),d=n(91218),p=n(70328),f=n(19419),h=n(537),m=n(60408),y=n(65864),g=n(17136),x=n(21325),S=n(90708),_=n(29441),v=n(51441),T=n(31464);class R{constructor(){this._storage=new Map,this._purgeInterval=5,this._sweep=()=>{if(this._timer=void 0,!this._storage)return;const e=1e3*this._purgeInterval,t=performance.now()-e;for(const[n,i]of this._storage){if(!(i.time<t))return void(this._storage.size>0&&(this._timer=setTimeout(this._sweep,e)));this._storage.delete(n)}}}destroy(){this._storage?.clear(),this._storage=null,clearTimeout(this._timer)}put(e,t){this._storage?.set(e,new w(t)),this._scheduleSweep()}get(e){const t=this._storage?.get(e);if(t)return this._storage?.delete(e),t.time=performance.now(),this._storage?.set(e,t),t.items}clear(){this._storage?.clear()}_scheduleSweep(){this._storage&&(this._timer??=setTimeout(this._sweep,1e3*this._purgeInterval))}get test(){}}let I=0;class w{constructor(e){this.items=e,this.time=performance.now(),this.id=I++}}var E=n(99352),F=n(8384),A=n(58727),M=n(62660),b=n(43668);const C="unsupported-query";async function O(e,{fieldsIndex:t,geometryType:n,spatialReference:i,availableFields:s}){if(null!=e.geometryPrecision||e.multipatchOption&&"xyFootprint"!==e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new r.A(C,"Unsupported query options",{query:e});return N(t,s,e),function(e,t,n){const{outStatistics:i,groupByFieldsForStatistics:s,having:a}=n,o=s?.length,l=i?.length;if(a){if(!o||!l)throw new r.A(C,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:n});(0,_.eD)(e,t,a,i,n)}if(l){if(null==(u=i)||!u.every(e=>"exceedslimit"!==e.statisticType))return;const a=i.map(e=>e.onStatisticField).filter(Boolean);(0,_.MG)(e,t,a,{expressionName:"onStatisticFields",query:n}),o&&(0,_.MG)(e,t,s,{expressionName:"groupByFieldsForStatistics",query:n});for(const s of i){const{onStatisticField:i,statisticType:a}=s;if("percentile_disc"!==a&&"percentile_cont"!==a||!("statisticParameters"in s))e.get(i)&&"count"!==a&&"min"!==a&&"max"!==a&&(0,_.MG)(e,t,[i],{expressionName:`outStatistics with '${a}' statistic type`,allowedFieldTypes:P,query:n});else{const{statisticParameters:e}=s;if(!e)throw new r.A(C,"statisticParameters should be set for percentile type",{definition:s,query:n})}}}var u}(t,s,e),Promise.all([(0,M.c0)(e,n,i),(0,T.Nk)(i,e.outSR)]).then(()=>e)}function N(e,t,n){const{returnDistinctValues:i,outStatistics:s}=n,a=s?s.map(e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase()).filter(Boolean):[];if("orderByFields"in n&&n.orderByFields&&n.orderByFields.length>0){const i=" asc",s=" desc",r=n.orderByFields.map(e=>{const t=e.toLowerCase();return t.includes(i)?t.split(i)[0]:t.includes(s)?t.split(s)[0]:e}).filter(e=>!a.includes(e));(0,_.MG)(e,t,r,{expressionName:"orderByFields",query:n})}if("outFields"in n)if(n.outFields?.length)(0,_.MG)(e,t,n.outFields,{expressionName:"outFields",query:n,allowedFieldTypes:"all"});else if(i)throw new r.A(C,"outFields should be specified for returnDistinctValues",{query:n});(0,_.SN)(e,t,n.where,n)}const P=new Set([..._.vl,..._.VW]);async function z(e,t,n,i){let s=[];if(n.valueExpression){const{arcadeUtils:e}=await(0,b.l)();s=e.extractFieldNames(n.valueExpression)}if(n.field&&s.push(n.field),n.field2&&s.push(n.field2),n.field3&&s.push(n.field3),n.normalizationField&&s.push(n.normalizationField),!s.length&&!n.valueExpression)throw new r.A(C,"field or valueExpression is required",{params:n});(0,_.MG)(e,t,s,{expressionName:"statistics",query:i})}var D=n(86420),V=n(95466),G=n(92359);class B{constructor(e){this._changeHandle=null,this.capabilities={query:E.F},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._cache=e.cache??new R,this.timeInfo=e.timeInfo,this.featureIdInfo=e.featureIdInfo,this._changeHandle=this.featureStore.events.on("changed",()=>this._clearCache()),this.fieldsIndex=(0,c.W)(e.fieldsIndex)?e.fieldsIndex:V.A.fromJSON(e.fieldsIndex),!e.availableFields||1===e.availableFields.length&&"*"===e.availableFields[0]?this.availableFields=new Set(this.fieldsIndex.fields.map(e=>e.name)):this.availableFields=new Set(e.availableFields.map(e=>this.fieldsIndex.get(e)?.name).filter(e=>null!=e)),e.scheduler&&e.priority?this._frameTask=e.scheduler.registerTask(e.priority):this._frameTask=G.nu}destroy(){this._changeHandle=(0,o.xt)(this._changeHandle),this._frameTask=(0,o.xt)(this._frameTask),this._clearCache(),(0,o.pR)(this._cache)}get featureAdapter(){return this.featureStore.featureAdapter}async executeQuery(e,t){const n=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryFeatureSet(e),n)}async executeQueryForCount(e={},t){const n=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForCount(e),n)}async executeQueryForExtent(e,t){const n=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForExtent(e),n)}async executeQueryForIds(e,t){return Array.from(await this.executeQueryForIdSet(e,t))}async executeQueryForIdSet(e,t){const n=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForIdSet(e),n)}async executeQueryForLatestObservations(e,t){const n=(0,l.Mq)(t);if(!this.timeInfo?.trackIdField)throw new r.A("unsupported-query","Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});return await this._frameTask.scheduleGenerator(()=>this._executeQueryForLatestObservations(e),n)}async executeQueryForOpaqueFeatures(e,t){const n=(0,l.Mq)(t);return(await this._frameTask.scheduleGenerator(()=>this._executeQuery(e,{}),n)).items}async executeAttributeBinsQuery(e,t){const n=(0,l.Mq)(t);return e=(0,a.o8)(e),await this._frameTask.scheduleGenerator(()=>this._executeAttributeBinsQuery(e),n)}async executeQueryForSummaryStatistics(e={},t,n){const i=(0,l.Mq)(n);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSummaryStatistics(e,t),i)}async executeQueryForUniqueValues(e={},t,n){const i=(0,l.Mq)(n);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForUniqueValues(e,t),i)}async executeQueryForClassBreaks(e={},t,n){const i=(0,l.Mq)(n);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForClassBreaks(e,t),i)}async executeQueryForHistogram(e={},t,n){const i=(0,l.Mq)(n);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForHistogram(e,t),i)}async executeQueryForSnapping(e,t){const n=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSnapping(e,n),n)}async fetchRecomputedExtents(e){const t=(0,l.Mq)(e);this._timeExtentPromise||=(0,D.W)(this.timeInfo,this.featureStore);const[n,i]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,l.Te)(t),{fullExtent:n,timeExtent:i}}_clearCache(){this._cache.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async*_executeQueryFeatureSet(e){try{const t=yield*this._executeQuery(e,{});return yield,await t.createQueryResponse()}catch(t){if(t!==A.v8)throw t;return await new F.G([],e,this).createQueryResponse()}}async*_executeQueryForCount(e){try{const t=yield*this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null});return yield,t.createQueryResponseForCount()}catch(e){if(e!==A.v8)throw e;return 0}}async*_executeQueryForExtent(e){const t=e.outSR;try{const n=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;const i=n.size;if(!i)return{count:0,extent:null};const s=await this._getBounds(n.items,n.spatialReference,t??this.spatialReference);return yield,{count:i,extent:s}}catch(e){if(e===A.v8)return{count:0,extent:null};throw e}}async*_executeQueryForIdSet(e){try{const t=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;const n=t.items,i=new Set;for(const e of n)i.add(t.featureAdapter.getObjectId(e));return i}catch(e){if(e===A.v8)return new Set;throw e}}async*_executeQueryForLatestObservations(e){try{const t=yield*this._executeQuery(e,{});return yield,this._filterLatest(t),yield,await t.createQueryResponse()}catch(t){if(t!==A.v8)throw t;return await new F.G([],e,this).createQueryResponse()}}async*_executeAttributeBinsQuery(e){let t;try{e=await(0,A.iJ)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t){const n=e.bin;if(!n.onField&&!n.onExpression?.value||"autoIntervalBin"===n.type&&null==n.parameters.numberOfBins||"dateBin"===n.type&&(null==n.parameters.number||null==n.parameters.unit)||"fixedBoundariesBin"===n.type&&null==n.parameters.boundaries||"fixedIntervalBin"===n.type&&null==n.parameters.interval)throw new r.A(C,"Unsupported query options",{query:e});return O(e,t)}(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const n=yield*this._executeSceneFilterQuery(e);yield,t=yield*this._executeGeometryQuery(e,n),yield,this._executeAggregateIdsQuery(t),yield,this._executeObjectIdsQuery(t),yield,this._executeTimeQuery(t),yield,this._executeAttributesQuery(t),yield}catch(n){if(n!==A.v8)throw n;t=new F.G([],e,this)}return await t.createQueryBinsResponse(e)}async*_executeQueryForSummaryStatistics(e={},t){const{field:n,normalizationField:i,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:n,normalizationField:i,valueExpression:s});return yield,await r.createSummaryStatisticsResponse(t)}async*_executeQueryForUniqueValues(e={},t){const{field:n,field2:i,field3:s,valueExpression:r}=t,a=yield*this._executeQueryForStatistics(e,{field:n,field2:i,field3:s,valueExpression:r});return yield,await a.createUniqueValuesResponse(t)}async*_executeQueryForClassBreaks(e,t){const{field:n,normalizationField:i,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:n,normalizationField:i,valueExpression:s});return yield,await r.createClassBreaksResponse(t)}async*_executeQueryForHistogram(e,t){const{field:n,normalizationField:i,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:n,normalizationField:i,valueExpression:s});return yield,await r.createHistogramResponse(t)}async*_executeQueryForSnapping(e,t){const{point:n,distance:i,returnEdge:s,vertexMode:r}=e;if(!s&&"none"===r)return{candidates:[]};let o=(0,a.o8)(e.query);o=await(0,A.T2)(o,this.definitionExpression,this.spatialReference),yield,o=await O(o,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const l=!(0,x.aI)(n.spatialReference,this.spatialReference);l&&(await(0,T.Nk)(n.spatialReference,this.spatialReference),yield);const u="number"==typeof i?i:i.x,c="number"==typeof i?i:i.y,d={xmin:n.x-u,xmax:n.x+u,ymin:n.y-c,ymax:n.y+c,spatialReference:n.spatialReference},p=l?(0,T.Cv)(d,this.spatialReference):d;if(!p)return{candidates:[]};const f=(await(0,g.el)((0,y.rS)(n),null,{signal:t}))[0];yield;const h=(await(0,g.el)((0,y.rS)(p),null,{signal:t}))[0];if(yield,null==f||null==h)return{candidates:[]};const m=await this._searchFeatures(L(h.toJSON()));yield;const S=new F.G(m,o,this);this._executeObjectIdsQuery(S),yield,this._executeTimeQuery(S),yield,this._executeAttributesQuery(S),yield,yield*this._executeGeometryQueryForSnapping(S),yield;const _=f.toJSON(),v=l?(0,T.Cv)(_,this.spatialReference):_,R=l?Math.max(p.xmax-p.xmin,p.ymax-p.ymin)/2:i;return S.createSnappingResponse({...e,point:v,distance:R},o.returnZ,n.spatialReference)}async _getBounds(e,t,n){const i=(0,p.hZ)((0,p.vt)(),p.qv);return await this.featureStore.forEachBounds(e,e=>(0,p.RF)(i,e)),k(i,t,n,this.spatialReference,this.hasZ)}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then(e=>this._getBounds(e,this.spatialReference,this.spatialReference)),this._fullExtentPromise}async _getAllFeaturesQueryEngineResult(e){return new F.G(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){const e=[];this._allFeaturesPromise=(async()=>await this.featureStore.forEach(t=>e.push(t)))().then(()=>(0,s.z)(e))}const e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async*_executeQuery(e,t){e=(0,a.o8)(e),e=await(0,A.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await O(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield,e={...e,...t};const n=yield*this._executeSceneFilterQuery(e);yield;const i=yield*this._executeGeometryQuery(e,n);return yield,this._executeAggregateIdsQuery(i),yield,this._executeObjectIdsQuery(i),yield,this._executeTimeQuery(i),yield,this._executeAttributesQuery(i),i}async*_executeSceneFilterQuery(e){if(null==e.sceneFilter)return null;const{outSR:t,returnGeometry:n,returnCentroid:i}=e,s=this.featureStore.featureSpatialReference,r=e.sceneFilter.geometry,a=null==s||(0,x.aI)(s,r.spatialReference)?r:(0,T.Cv)(r,s);if(!a)return null;const o=n||i,l=(0,x.fn)(t)&&!(0,x.aI)(this.spatialReference,t)&&o?async e=>this._project(e,t):e=>e;yield;const u=this.featureAdapter,c=await this._searchFeatures(L(a));if(yield,"disjoint"===e.sceneFilter.spatialRelationship){if(!c.length)return null;const t=new Set;for(const e of c)t.add(u.getObjectId(e));const n=await this._getAllFeatures();yield;const i=await(0,M.xt)("esriSpatialRelDisjoint",a,this.geometryType);yield;const s=e=>!t.has(u.getObjectId(e))||i(u.getGeometry(e)),r=yield*this._runSpatialFilter(n,s);yield;const o=new F.G(r,e,this);return await l(o)}if(!c.length)return new F.G([],e,this);if(this._canExecuteSinglePass(a,e))return await l(new F.G(c,e,this));const d=await(0,M.xt)("esriSpatialRelContains",a,this.geometryType);yield;const p=yield*this._runSpatialFilter(c,e=>d(u.getGeometry(e)));return yield,await l(new F.G(p,e,this))}async*_executeGeometryQuery(e,t){if(null!=t&&0===t.items.length)return t;const{geometry:n,outSR:s,returnGeometry:r,returnCentroid:a}=e,o=t?null:this._getCacheKey(e),l=o?this._cache.get(o):null;if(l)return new F.G(l,e,this);const u=(0,x.fn)(s)&&!(0,x.aI)(this.spatialReference,s),c=r||a,d=async e=>(u&&c&&await this._project(e,s),o&&this._cache.put(o,e.items),e),p=this.featureStore.featureSpatialReference,f=!n||null==p||(0,x.aI)(p,n.spatialReference)?n:(0,T.Cv)(n,p);if(!f)return await d(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));yield;const h=this.featureAdapter;let m=await this._searchFeatures(L(n));yield;const y=e.spatialRel??"esriSpatialRelIntersects";if("esriSpatialRelDisjoint"===y){if(!m.length)return await d(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));const n=new Set;for(const e of m)n.add(h.getObjectId(e));let i;null!=t?i=t.items:(yield,i=await this._getAllFeatures(),yield);const s=await(0,M.xt)(y,f,this.geometryType);yield;const r=e=>!n.has(h.getObjectId(e))||s(h.getGeometry(e)),a=yield*this._runSpatialFilter(i,r);yield;const o=new F.G(a,e,this);return await d(o)}if(null!=t){const e=new i.vW;m=m.filter(n=>(0,i.qh)(t.items,n,t.items.length,e)>=0)}if(!m.length){const t=new F.G([],e,this);return o&&this._cache.put(o,t.items),t}if(this._canExecuteSinglePass(f,e))return await d(new F.G(m,e,this));const g=await(0,M.xt)(y,f,this.geometryType);yield;const S=yield*this._runSpatialFilter(m,e=>g(h.getGeometry(e)));return yield,await d(new F.G(S,e,this))}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds?.length||null==this.aggregateAdapter)return;const t=new Set;for(const n of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(n).forEach(e=>t.add(e));const n=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(n(e)))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds?.length)return;const t=new Set(e.query.objectIds),n=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(n(e)))}_executeTimeQuery(e){if(0===e.items.length)return;const t=(0,D.I)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;const t=(0,_.j4)(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw new TypeError("Where clause is not standardized");e.items=e.items.filter(e=>t.testFeature(e,this.featureAdapter))}}async*_executeGeometryQueryForSnapping(e){const{query:t}=e,{spatialRel:n}=t;if(!e?.items?.length||!t.geometry||!n)return;const i=await(0,M.xt)(n,t.geometry,this.geometryType);yield;const s=this.featureAdapter,r=yield*this._runSpatialFilter(e.items,e=>i(s.getGeometry(e)));e.items=r}*_runSpatialFilter(e,t){if(!t)return e;if(null==this._frameTask)return e.filter(e=>t(e));let n=yield;const i=new Array;for(const s of e)t(s)&&i.push(s),n.madeProgress(),n.done&&(n=yield);return i}_filterLatest(e){const{trackIdField:t,startTimeField:n,endTimeField:i}=this.timeInfo,s=i||n,r=new Map,a=this.featureAdapter.getAttribute;for(const n of e.items){const e=a(n,t),i=a(n,s),o=r.get(e);(!o||i>a(o,s))&&r.set(e,n)}e.items=Array.from(r.values())}_getCacheKey(e){const{geometry:t,spatialRel:n,returnGeometry:i,returnCentroid:s,outSR:r,resultType:a,cacheHint:o}=e;if("tile"!==a&&!o)return null;const l=i||s;return(0,x.fn)(r)&&!(0,x.aI)(this.spatialReference,r)&&l?JSON.stringify([t,n,r]):JSON.stringify([t,n])}_canExecuteSinglePass(e,t){const{spatialRel:n}=t;return(0,M.tC)(e)&&("esriSpatialRelEnvelopeIntersects"===n||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===n||"esriSpatialRelContains"===n))}async _project(e,t){if(!t||(0,x.aI)(this.spatialReference,t))return e;const n=this.featureAdapter,i=(0,d.isLoaded)()?await this._getFullExtent():void 0,r=await(0,T.lK)(e.items.map(e=>(0,v.pL)(this.geometryType,n.getGeometry(e))),this.spatialReference,t,{areaOfInterestExtent:i});return e.items=(0,s.z)(r.map((t,i)=>n.cloneWithGeometry(e.items[i],(0,S.Ux)(t,this.hasZ,this.hasM),this.geometryType))),e}async _searchFeatures(e){const t=new Set;await Promise.all(e.map(e=>this.featureStore.forEachInBounds(e,e=>t.add(e))));const n=Array.from(t.values());return t.clear(),n}async*_executeQueryForStatistics(e,t){e=(0,a.o8)(e);try{e=await(0,A.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t,{fieldsIndex:n,geometryType:i,spatialReference:s,availableFields:a}){if(null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new r.A(C,"Unsupported query options",{query:e});return N(n,a,e),Promise.all([z(n,a,t,e),(0,M.c0)(e,i,s),(0,T.Nk)(s,e.outSR)]).then(()=>e)}(e,t,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const n=yield*this._executeSceneFilterQuery(e);yield;const i=yield*this._executeGeometryQuery(e,n);return yield,this._executeAggregateIdsQuery(i),yield,this._executeObjectIdsQuery(i),yield,this._executeTimeQuery(i),yield,this._executeAttributesQuery(i),yield,i}catch(t){if(t!==A.v8)throw t;return new F.G([],e,this)}}get test(){}}function L(e){if((0,M.tC)(e)){if((0,m.ZC)(e))return[(0,f.fA)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,m.Bi)(e))return e.rings.map(e=>(0,f.fA)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1])))}return[(0,h.Rg)((0,f.vt)(),e)]}function k(e,t,n,i,s){const r={xmin:e[0],ymin:e[1],xmax:e[3],ymax:e[4],spatialReference:(0,v.ag)(i)};s&&isFinite(e[2])&&isFinite(e[5])&&(r.zmin=e[2],r.zmax=e[5],r.hasZ=!0);const a=(0,T.Cv)(r,t,n);if(a.spatialReference=(0,v.ag)(n),a.xmax-a.xmin===0){const e=(0,u.GA)(a.spatialReference);a.xmin-=e,a.xmax+=e}if(a.ymax-a.ymin===0){const e=(0,u.GA)(a.spatialReference);a.ymin-=e,a.ymax+=e}if(s&&null!=a.zmin&&null!=a.zmax&&a.zmax-a.zmin===0){const e=(0,u.GA)(a.spatialReference);a.zmin-=e,a.zmax+=e}return a}},99352(e,t,n){n.d(t,{F:()=>i,P:()=>s});const i={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},s={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}},8384(e,t,n){n.d(t,{G:()=>O});var i=n(4576),s=n(4718),r=n(16930),a=n(12359),o=n(90634),l=n(62577),u=n(21325),c=n(46329),d=n(52006),p=n(88930),f=n(29441),h=n(51441),m=n(30524),y=n(1873),g=n(43668);class x{constructor(e,t,n){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=n,this.featureAdapter=t;const i=e.outFields;if(i&&!i.includes("*")){this.outFields=i;let e=0;for(const t of i){const i=(0,f.Wq)(t),s=this.fieldsIndex.get(i),r=s?null:(0,f.j4)(i,n),a=s?s.name:(0,f.SY)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach(e=>this.getAttributes(e)),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,n){if(n)return this.featureAdapter.getAttribute(e,n.name);const i=t;let s=null;return this._fieldDataCache.has(i)?s=this._fieldDataCache.get(i)?.clause:n||(s=(0,f.j4)(t,this.fieldsIndex),this._fieldDataCache.set(i,{alias:i,clause:s})),s?.calculateValue(e,this.featureAdapter)}getDataValues(e,t,n=!0){const i=t.normalizationType,s=t.normalizationTotal,r=this.fieldsIndex.get(t.field),a=(0,m.zD)(r)||(0,m.Ah)(r),o=(0,m.OH)(r);return e.map(e=>{let r=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(r=`${(0,y.gJ)(r)}${t.fieldDelimiter}${(0,y.gJ)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,y.gJ)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):"string"==typeof r&&n&&(a?r=r?new Date(r).getTime():null:o&&(r=r?(0,p.rb)(r):null)),i&&Number.isFinite(r)){const n="field"===i&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;r=(0,y.zS)(r,i,n,s)}return r})}async getExpressionValues(e,t,n,i,s){const{arcadeUtils:r}=await(0,g.l)(),a=r.hasGeometryOperations(t);a&&await r.enableGeometryOperations();const o=r.createFunction(t),l=r.getViewInfo(n),u={fields:this.fieldsIndex.fields};return e.map(e=>{const t={attributes:this.featureAdapter.getAttributes(e),layer:u,geometry:a?{...(0,h.pL)(i.geometryType,this.featureAdapter.getGeometry(e)),spatialReference:n.spatialReference}:null},c=r.createExecContext(t,l,s);return r.executeFunction(o,c)})}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,f.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,f.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){const t=this.outFields;if(!t?.length)return this.featureAdapter.getAttributes(e);const n={};for(const i of t){const{alias:t,clause:s}=this._fieldDataCache.get(i);n[t]=s?s.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return n}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;const t=this.outFields,n=[];if(t)for(const i of t){const{alias:t}=this._fieldDataCache.get(i);n.push(e[t])}else for(const t in e)n.push(e[t]);const i=`${(t||["*"]).join(",")}=${n.join(",")}`;let s=this._returnDistinctMap.get(i)||0;return this._returnDistinctMap.set(i,++s),s>1?null:e}}var S=n(31464),_=n(58727);class v{constructor(e,t,n){this.objectId=e,this.target=t,this.distance=n}}class T extends v{constructor(e,t,n){super(e,t,n),this.type="vertex"}}class R extends v{constructor(e,t,n,i,s,r=!1,a=null){super(e,t,n),this.start=i,this.end=s,this.draped=r,this.curve=a,this.type="edge"}}var I=n(5834),w=n(59977),E=n(57231),F=n(11440),A=n(60909),M=n(98623),b=n(92647);const C="bin";class O{constructor(e,t,n){this.items=e,this.query=t,this.geometryType=n.geometryType,this.hasZ=!!t.returnZ&&n.hasZ,this.hasM=!!t.returnM&&n.hasM,this.fieldsIndex=n.fieldsIndex,this.spatialReference=n.spatialReference,this.featureAdapter=n.featureAdapter,this.featureIdInfo=n.featureIdInfo}get size(){return this.items.length}createQueryResponseForCount(){const e=new x(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:n,outStatistics:i}=this.query,s=t?.length;if(!s)return 1;const r=new Map,a=new Map,o=new Set;for(const s of i){const{statisticType:i}=s,l="exceedslimit"!==i?s.onStatisticField:void 0;if(!a.has(l)){const n=[];for(const i of t){const t=this._getAttributeValues(e,i,this.items,r);n.push(t)}a.set(l,this._calculateUniqueValues(n,this.items,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:i,items:s}=u[t],r=i.join(",");n&&!e.validateItems(s,n)||o.add(r)}}return o.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some(e=>"exceedslimit"===e.statisticType)?this._createExceedsLimitQueryResponse():await this._createStatisticsQueryResponse(this.query,this.items):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){const t=this.query.geometry;(0,u.fn)(this.query.outSR)&&!(0,u.aI)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,h.ag)({spatialReference:this.query.outSR,...(0,S.Cv)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,h.ag)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t,n){const i=this.featureAdapter,{point:s}=e,r="number"==typeof e.distance?e.distance:e.distance.x,a="number"==typeof e.distance?e.distance:e.distance.y;function o(e,t){const n=(e-s.x)/r,i=(t-s.y)/a;return n*n+i*i}const l={candidates:[]},u="esriGeometryPolygon"===this.geometryType,p="esriGeometryPolyline"===this.geometryType||"esriGeometryPoint"===this.geometryType,f=this._getPointCreator(t,this.spatialReference,n),h=new P(null,0),m=new P(null,0),y={x:0,y:0,z:0};for(const e of this.items){const t=i.getObjectId(e),n=i.getGeometryWithCurves?.(e);if(null!=n){x(n,t);continue}const s=i.getGeometry(e);null==s||g(s,t)}return l.candidates.sort((e,t)=>e.distance-t.distance),l;function g(t,n){const{coords:i,stride:r}=t,a=t.isPoint?z:t.lengths;if(h.coords=i,m.coords=i,e.returnEdge){let e=0;for(let t=0;t<a.length;t++){const i=a[t],c=e;for(let t=0;t<i;t++,e+=r){if(!u&&t===i-1)continue;if(h.coordsIndex=e,m.coordsIndex=t===i-1?c:e+r,!N(y,s,h,m))continue;const a=o(y.x,y.y);a<=1&&l.candidates.push(new R(n,f(y),Math.sqrt(a),f(h),f(m)))}}}if("all"===e.vertexMode){let e=0;for(let t=0;t<a.length;t++){const i=a[t],s=e,c=m;c.coordsIndex=s;for(let t=0;t<i;t++,e+=r){if(h.coordsIndex=e,u&&t===i-1&&h.x===c.x&&h.y===c.y)continue;const s=o(h.x,h.y);s<=1&&l.candidates.push(new T(n,f(h),Math.sqrt(s)))}}}else if(p&&"ends"===e.vertexMode){let e=0;const t=[];for(let n=0;n<a.length;n++){t.push(e);const i=a[n];e+=i*r,i>1&&t.push(e-r)}for(const e of t){h.coordsIndex=e;const t=o(h.x,h.y);t<=1&&l.candidates.push(new T(n,f(h),Math.sqrt(t)))}}}function x(t,n){const{candidates:i}=l,r={x:0,y:0,z:0};if(e.returnEdge){const e=[s.x,s.y],a=new P(e,0),l=new P(e,0);for(const{segments:s}of t.parts)for(const{start:t,curve:u}of s){const{curvePoint:s}=(0,c.y)(t,u,e),p=o(...s);if(p>1)continue;[r.x,r.y]=s,a.coords=t,l.coords=(0,d.yP)(u);const h=(0,d.Xq)(u)?null:(0,d.tk)(u);i.push(new R(n,f(r),Math.sqrt(p),f(a),f(l),!1,h))}}function a(e){r.x=t.vertexXY[2*e],r.y=t.vertexXY[2*e+1];const s=o(r.x,r.y);s>1||(r.z=t.vertexZ?.[e]??0,i.push(new T(n,f(r),Math.sqrt(s))))}if("all"===e.vertexMode){const{vertexCount:e}=t;for(let t=0;t<e;++t)a(t);return}if("ends"===e.vertexMode)switch(t.type){case"point":a(0);break;case"polyline":for(let e=0;e<t.partCount;++e){const n=t.partOffsets[e],i=t.partOffsets[e+1]-1;a(n),i!==n&&a(i)}}}}_getPointCreator(e,t,n){const i=null==n||(0,u.aI)(t,n)?e=>e:e=>(0,S.Cv)(e,t,n),{hasZ:s}=this;return s&&e?({x:e,y:t,z:n})=>i({x:e,y:t,z:n}):({x:e,y:t})=>i({x:e,y:t,z:0})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:n,normalizationField:i,normalizationType:s,normalizationTotal:r,minValue:a,maxValue:o,scale:l,timeZone:u,outStatisticTypes:c}=e,d=this.fieldsIndex.get(t),p=(0,m.vE)(d)||(0,m.zD)(d)||(0,m.Ah)(d),f=await this._getDataValues({field:t,valueExpression:n,normalizationField:i,normalizationType:s,normalizationTotal:r,scale:l,timeZone:u},this.items),h=(0,y.Vb)({normalizationType:s,normalizationField:i,minValue:a,maxValue:o}),g={value:.5,fieldType:d?.type},x=(0,m.yM)(d)?(0,y.z9)({values:f,supportsNullCount:h,percentileParams:g,outStatisticTypes:c}):(0,y.G_)({values:f,minValue:a,maxValue:o,useSampleStdDev:!s,supportsNullCount:h,percentileParams:g,outStatisticTypes:c});return(0,y.oZ)(x,c,p)}async createUniqueValuesResponse(e){const{field:t,valueExpression:n,domains:i,returnAllCodedValues:s,scale:r,timeZone:a}=e,o=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:n,scale:r,timeZone:a},this.items,!1),l=(0,y.b3)(o);return(0,y.lv)(l,i,s,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:n,normalizationField:i,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numClasses:c,scale:d,timeZone:p}=e,f=await this._getDataValues({field:t,valueExpression:n,normalizationField:i,normalizationType:s,normalizationTotal:r,scale:d,timeZone:p},this.items),h=(0,y.Rw)(f,{field:t,normalizationField:i,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numClasses:c});return(0,y.jM)(h,a)}async createHistogramResponse(e){const{field:t,valueExpression:n,normalizationField:i,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numBins:c,scale:d,timeZone:p}=e,f=await this._getDataValues({field:t,valueExpression:n,normalizationField:i,normalizationType:s,normalizationTotal:r,scale:d,timeZone:p},this.items);return(0,y.$y)(f,{field:t,normalizationField:i,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numBins:c})}_sortFeatures(e,t,n){if(e.length>1&&t?.length)for(const i of t.slice().reverse()){const{compare:t,fieldOrExpression:s,fieldInfo:r}=D(i,this.fieldsIndex);e.sort((e,i)=>t(n(e,s,r),n(i,s,r)))}}_topNFeatures(e,t,n,s){if(e.length>1&&t?.length){const r=t.map(e=>{const{compare:t,fieldOrExpression:n,fieldInfo:i}=D(e,this.fieldsIndex);return(e,r)=>t(s(e,n,i),s(r,n,i))}).reduceRight((e,t)=>(n,i)=>{const s=t(n,i);return 0===s||Number.isNaN(s)?e(n,i):s}),a=[];for(const t of e)(0,i.HX)(a,t,n,r);return a}return e.slice(0,n)}_createFeatureQueryResponse(e){const{items:t,geometryType:n,hasM:i,hasZ:s,featureIdInfo:r,spatialReference:a}=this,{outFields:o,outSR:u,quantizationParameters:c,resultRecordCount:d,resultOffset:p,returnZ:f,returnM:m}=e,y=null!=d&&t.length>(p||0)+d,g=o&&(o.includes("*")?[...this.fieldsIndex.fields]:o.map(e=>this.fieldsIndex.get(e)));return{exceededTransferLimit:y,features:this._createFeatures(e,t),fields:g,geometryType:n,hasM:i&&m,hasZ:s&&f,objectIdFieldName:"object-id"===r.type?r.fieldName:null,spatialReference:(0,h.ag)(u||a),transform:c&&(0,l.VV)(c)||null}}_createFeatures(e,t){const n=new x(e,this.featureAdapter,this.fieldsIndex),{hasM:i,hasZ:s}=this,{orderByFields:r,quantizationParameters:a,returnGeometry:o,returnCentroid:u,maxAllowableOffset:c,resultOffset:d,resultRecordCount:p,returnZ:f=!1,returnM:m=!1}=e,y=s&&f,g=i&&m;let S;const _=d||0,v=null!=p?_+p:null;null!=v&&v<=5e3&&v<t.length?S=this._topNFeatures(t,r,v,(e,t,i)=>n.getFieldValue(e,t,i)):(S=[...t],this._sortFeatures(S,r,(e,t,i)=>n.getFieldValue(e,t,i))),(_>0||null!=v)&&(S=S.slice(_,v??void 0));const T=[];let R=0;if(this.geometryType&&(o||u)){const e=(0,l.VV)(a)??void 0,t="esriGeometryPolygon"===this.geometryType||"esriGeometryPolyline"===this.geometryType;if(o&&!u)for(const i of S){const s=this.featureAdapter.getGeometry(i),r=this._addFeatureJSONMetadata(i,{attributes:n.getAttributes(i),geometry:(0,h.pL)(this.geometryType,s,c,e,y,g)});t&&s&&!r.geometry&&(r.centroid=(0,h.LQ)(this,this.featureAdapter.getCentroid(i,this),e)),T[R++]=r}else if(!o&&u)for(const t of S)T[R++]=this._addFeatureJSONMetadata(t,{attributes:n.getAttributes(t),centroid:(0,h.LQ)(this,this.featureAdapter.getCentroid(t,this),e)});else for(const t of S)T[R++]=this._addFeatureJSONMetadata(t,{attributes:n.getAttributes(t),centroid:(0,h.LQ)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,h.pL)(this.geometryType,this.featureAdapter.getGeometry(t),c,e,y,g)})}else for(const e of S){const t=n.getAttributes(e);t&&(T[R++]=this._addFeatureJSONMetadata(e,{attributes:t}))}return T}_addFeatureJSONMetadata(e,t){const n=this.featureAdapter.getMetadata?.(e);return void 0!==n&&(t.metadata=n),t}_createExceedsLimitQueryResponse(){let e=!1,t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;for(const e of this.query.outStatistics??[])if("exceedslimit"===e.statisticType){t=null!=e.maxPointCount?e.maxPointCount:Number.POSITIVE_INFINITY,n=null!=e.maxRecordCount?e.maxRecordCount:Number.POSITIVE_INFINITY,i=null!=e.maxVertexCount?e.maxVertexCount:Number.POSITIVE_INFINITY;break}return e="esriGeometryPoint"===this.geometryType?this.items.length>t:this.items.length>n||this.items.reduce((e,t)=>{const n=this.featureAdapter.getGeometry(t);return e+(n?.size??0)},0)>i,{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(e)}}]}}async _createStatisticsQueryResponse(e,t,n={attributes:{}}){const i=[],s=new Map,r=new Map,a=new Map,o=new Map,l=new x(e,this.featureAdapter,this.fieldsIndex),u=e.outStatistics,{groupByFieldsForStatistics:c,having:d,orderByFields:p,resultRecordCount:f}=e,h=c?.length,y=!!h,g=y?c[0]:null,S=y&&!this.fieldsIndex.get(g);for(const p of u??[]){const{outStatisticFieldName:u,statisticType:f}=p,x=p,_="exceedslimit"!==f?p.onStatisticField:void 0,v="percentile_disc"===f||"percentile_cont"===f,T="EnvelopeAggregate"===f||"CentroidAggregate"===f||"ConvexHullAggregate"===f,R=y&&1===h&&(_===g||S)&&"count"===f;if(y){if(!a.has(_)){const e=[];for(const n of c){const i=this._getAttributeValues(l,n,t,s);e.push(i)}a.set(_,this._calculateUniqueValues(e,t,!T&&l.returnDistinctValues))}const n=a.get(_);if(!n)continue;const i=Object.keys(n);for(const r of i){const{count:i,data:a,items:p,itemPositions:f}=n[r],h=a.join(",");if(!d||l.validateItems(p,d)){const n=o.get(h)||{attributes:{}};if(e.returnAggIds&&(n.aggregateIds=p.map(e=>this.featureAdapter.getObjectId(e)).filter(e=>null!=e)),T){n.aggregateGeometries||(n.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:t}=await this._getAggregateGeometry(x,p);n.aggregateGeometries[t]=e}else{let e=null;if(R)e=i;else{const n=this._getAttributeValues(l,_,t,s),i=f.map(e=>n[e]);e=v&&"statisticParameters"in x?this._getPercentileValue(x,i):this._getStatisticValue(x,i,null,l.returnDistinctValues)}n.attributes[u]=e}let r=0;c.forEach((e,t)=>n.attributes[this.fieldsIndex.get(e)?e:"EXPR_"+ ++r]=a[t]),o.set(h,n)}}}else if(T){n.aggregateGeometries||(n.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:i}=await this._getAggregateGeometry(x,t);n.aggregateGeometries[i]=e}else{const e=this._getAttributeValues(l,_,t,s);n.attributes[u]=v&&"statisticParameters"in x?this._getPercentileValue(x,e):this._getStatisticValue(x,e,r,l.returnDistinctValues)}const I="min"!==f&&"max"!==f||!(0,m.yM)(this.fieldsIndex.get(_))&&!this._isAnyDateField(_)?null:this.fieldsIndex.get(_)?.type;i.push({name:u,alias:u,type:I||"esriFieldTypeDouble"})}const _=y?Array.from(o.values()):[n];return this._sortFeatures(_,p,(e,t)=>e.attributes[t]),f&&(_.length=Math.min(f,_.length)),{fields:i,features:_}}_isAnyDateField(e){const t=this.fieldsIndex.get(e);return(0,m.vE)(t)||(0,m.zD)(t)||(0,m.Ah)(t)||(0,m.OH)(t)}async _getAggregateGeometry(e,t){const{convexHull:i,union:s}=await n.e(1023).then(n.bind(n,81023)),{statisticType:r,outStatisticFieldName:l}=e,{featureAdapter:u,spatialReference:c,geometryType:d}=this,p=t.map(e=>(0,h.pL)(d,u.getGeometry(e))),f=i(c,p,!0)[0],m={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===r){const e=f?(0,o.v)(f):(0,o.HA)(s(c,p));m.aggregateGeometries={...e,spatialReference:c},m.outStatisticFieldName=l||"extent"}else if("CentroidAggregate"===r){const e=f?(0,a.l8)(f):(0,a.Z4)((0,o.HA)(s(c,p)));m.aggregateGeometries={x:e[0],y:e[1],spatialReference:c},m.outStatisticFieldName=l||"centroid"}else"ConvexHullAggregate"===r&&(m.aggregateGeometries=f,m.outStatisticFieldName=l||"convexHull");return m}_getStatisticValue(e,t,n,i){const{onStatisticField:s,statisticType:r}=e;let a=null;return a=n?.has(s)?n.get(s):(0,m.yM)(this.fieldsIndex.get(s))||this._isAnyDateField(s)?(0,y.z9)({values:t,returnDistinct:i}):(0,y.G_)({values:i?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),n&&n.set(s,a),a["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:n,statisticParameters:i,statisticType:s}=e,{value:r,orderBy:a}=i,o=this.fieldsIndex.get(n);return(0,y.qg)(t,{value:r,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===s})}_getAttributeValues(e,t,n,i){if(i.has(t))return i.get(t);const s=this.fieldsIndex.get(t),r=n.map(n=>e.getFieldValue(n,t,s));return i.set(t,r),r}_calculateUniqueValues(e,t,n){const i={},s=t.length;for(let r=0;r<s;r++){const s=t[r],a=[];for(const t of e)a.push(t[r]);const o=a.join(",");null==i[o]?i[o]={count:1,data:a,items:[s],itemPositions:[r]}:(n||i[o].count++,i[o].items.push(s),i[o].itemPositions.push(r))}return i}async _getDataValues(e,t,n=!0){const i=new x(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:a,scale:o,timeZone:l}=e,u=r.A.fromJSON(this.query.outSR||this.spatialReference);return a?i.getExpressionValues(t,a,{viewingMode:"map",scale:o,spatialReference:u},{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM},l):i.getDataValues(t,(0,s.o8)(e),n)}_calculateHistogramBins(e,t,n){if(null==t.min&&null==t.max)return[];const i=t.intervals,s=t.min??0,r=t.max??0,a=i.map(([e,t])=>({minValue:e,maxValue:t,count:0,items:[]}));for(let t=0;t<e.length;t++){const o=e[t],l=n[t];if(null!=o&&o>=s&&o<=r){const e=(0,y.Ak)(i,o);e>-1&&(a[e].count++,a[e].items.push(l))}}return a}async createQueryBinsResponse(e){const t=e.bin?.splitBy;if(!t)return this._createBinsResponse(e);const{value:n,outAlias:i,valueType:s}=t,r=[],a=[{name:i??n,alias:i??n,type:s??"esriFieldTypeString"},{name:C,alias:C,type:"esriFieldTypeInteger"}],o=new x(e,this.featureAdapter,this.fieldsIndex),l=new Map,u=[...this.items];this._sortFeatures(u,[n],(e,t,n)=>o.getFieldValue(e,t,n));const c=this._getAttributeValues(o,n,u,l),d=this._calculateUniqueValues([c],u,o.returnDistinctValues);for(const t in d){const{items:s}=d[t],o=await this._createBinsResponse(e,s);if(r.push(...o.features.map(e=>({...e,attributes:{...e.attributes,[i??n]:t}}))),o.fields)for(const e of o.fields)a.some(t=>t.name===e.name)||a.push(e)}return{fields:a,features:r}}async _createBinsResponse(e,t){const n=e.bin;switch(t=t??this.items,n.type){case"autoIntervalBin":return this._createAutoIntervalBinsResponse(I.A.fromJSON(n),e,t);case"dateBin":return this._createDateBinsResponse(w.A.fromJSON(n),e,t);case"fixedBoundariesBin":return this._createFixedBoundariesBinsResponse(F.A.fromJSON(n),e,t);case"fixedIntervalBin":return this._createFixedIntervalBinsResponse(A.A.fromJSON(n),e,t)}}async _createAutoIntervalBinsResponse(e,t,n){const{field:i,normalizationField:s,numBins:r,normalizationType:a,normalizationTotal:o,start:l,end:u}=e,c=await this._getDataValues({field:e.field||e.expression,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},n),d=(0,y.sU)(c,{field:i,normalizationField:s,normalizationType:a,normalizationTotal:o,numBins:r,minValue:(0,_.dO)(a?e.normalizationMinValue:l,!1),maxValue:(0,_.dO)(a?e.normalizationMaxValue:u,!1)}),p=this._calculateHistogramBins(c,d,n);return this._createFeaturesFromHistogramBins(p,t)}async _createDateBinsResponse(e,t,n){const{field:i,interval:s,start:r,end:a,snapToData:o,returnFullIntervalBin:l,offset:u,firstDayOfWeek:c}=e,d=s.unit,p=await this._getDataValues({field:i||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},n),f=(0,m.OH)(this.fieldsIndex.get(i)),h=E.g.toJSON(d),y=p.filter(Boolean).sort((e,t)=>e-t),g=null!=r?(0,_.dO)(r,f):y[0],x=null!=a?(0,_.dO)(a,f):y[y.length-1],S=[];if(null!=g&&null!=x){const e={zone:t.outTimeReference?.ianaTimeZone??M.n$},n=u?.unit?E.g.toJSON(u.unit):"milliseconds",i={[n]:u?.value||0},r=b.c9.fromMillis(g,e).minus(i),a=b.c9.fromMillis(x,e).minus(i),d="number"==typeof c&&c>=1&&c<=7?c:7,p=(e,t)=>{const n=(e.weekday-t+7)%7;return e.minus({days:n}).startOf("day")};if("last"===o){let e="week"===h?((e,t)=>p(e,t).plus({days:7}))(a,d):a;for(;e>r;){const t=e.minus({[h]:s.value});if(t<r){S.unshift([l?t.plus(i).toMillis():r.plus(i).toMillis(),e.plus(i).toMillis()]);break}S.unshift([t.plus(i).toMillis(),e.plus(i).toMillis()]),e=t}}else{let e="first"===o?r:"week"===h?p(r,d):r.startOf(h);for(;e<=a;){const t=e.plus({[h]:s.value});if(t>a){S.push([e.plus(i).toMillis(),l?t.plus(i).toMillis():a.plus(i).toMillis()]);break}S.push([e.plus(i).toMillis(),t.plus(i).toMillis()]),e=t}}}const v=this._calculateHistogramBins(p,{intervals:S,min:g,max:x},n);return this._createFeaturesFromHistogramBins(v,t)}async _createFixedBoundariesBinsResponse(e,t,n){const{field:i}=e,s=await this._getDataValues({field:i||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},n),r=(0,m.OH)(this.fieldsIndex.get(i)),a=e.boundaries.map(e=>(0,_.dO)(e,r)).sort((e,t)=>e-t),o=[];for(let e=0;e<a.length-1;e++)o.push([a[e],a[e+1]]);const l={intervals:o,min:a.at(0),max:a.at(-1)},u=this._calculateHistogramBins(s,l,n);return this._createFeaturesFromHistogramBins(u,t)}async _createFixedIntervalBinsResponse(e,t,n){const{field:i,interval:s,normalizationType:r,start:a,end:o}=e,l=await this._getDataValues({field:i||e.expression,normalizationField:e.normalizationField,normalizationType:r,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},n),u=(0,m.OH)(this.fieldsIndex.get(i)),c=(0,y.sU)(l,{field:i,classificationMethod:"defined-interval",definedInterval:s,minValue:(0,_.dO)(r?e.normalizationMinValue:a,u),maxValue:(0,_.dO)(r?e.normalizationMaxValue:o,u)},!0),d=this._calculateHistogramBins(l,c,n);return this._createFeaturesFromHistogramBins(d,t)}async _createFeaturesFromHistogramBins(e,t){const{upperBoundaryAlias:n,lowerBoundaryAlias:i}=t,s=i||"lowerBoundary",r=n||"upperBoundary",a=[],o=[{name:s,alias:s,type:"esriFieldTypeDouble"},{name:r,alias:r,type:"esriFieldTypeDouble"}],l=t.bin?.stackBy?.value,u=t.bin?.stackBy?.outAlias;l&&o.push({name:C,alias:C,type:"esriFieldTypeInteger"},{name:u??l,alias:u??l,type:"esriFieldTypeString"});let c=0;const d="dateBin"===t.bin.type,p=t.outTimeReference?.ianaTimeZone;for(const n of e){const{minValue:e,maxValue:i,items:f}=n,h={attributes:{}};let m;if(h.attributes[s]=d&&p&&null!=e?b.c9.fromMillis(e,{zone:p}).toISO():e,t.bin.hideUpperBound||(h.attributes[r]=d&&p&&null!=i?b.c9.fromMillis(i,{zone:p}).toISO():i),t.returnAggIds&&(h.aggregateIds=f.map(e=>this.featureAdapter.getObjectId(e)).filter(e=>null!=e)),l?(m=await this._createStatisticsQueryResponse({...t,groupByFieldsForStatistics:[l],orderByFields:[l]},f),h.attributes[C]=++c,"flat"===t.bin.jsonStyle?a.push(...m.features.map(({attributes:{EXPR_1:e,...t},...n})=>({...n,attributes:u??e?{...t,[u??e]:e,...h.attributes}:{...t,...h.attributes}}))):(h.stackedAttributes=m.features.map(({attributes:{EXPR_1:e,...t}})=>u??e?{...t,[u??e]:e}:t),a.push(h))):(t.bin?.splitBy&&(h.attributes[C]=++c),m=await this._createStatisticsQueryResponse(t,f,h),a.push(h)),m.fields)for(const e of m.fields)o.some(t=>t.name===e.name)||o.push(e)}return"desc"===t.binOrder&&a.reverse(),{fields:o,features:a}}}function N(e,t,n,i){const s=i.x-n.x,r=i.y-n.y,a=t.x-n.x,o=t.y-n.y,l=s*s+r*r;if(0===l)return!1;const u=a*s+o*r,c=Math.min(1,Math.max(0,u/l));return e.x=n.x+s*c,e.y=n.y+r*c,!0}class P{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}const z=[1];function D(e,t){const n=e.split(" "),i=n[0],s=t.get(i),r=!!n[1]&&"desc"===n[1].toLowerCase();return{compare:(0,y.FM)(s?.type,r,"case-insensitive"),fieldOrExpression:i,fieldInfo:s}}},29441(e,t,n){n.d(t,{MG:()=>x,SN:()=>f,SY:()=>g,VW:()=>c,Wq:()=>y,eD:()=>h,j4:()=>m,vl:()=>u});var i=n(49186),s=n(44123),r=n(98453);const a=new s.WhereClauseCache(50,500),o="unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]),c=new Set(["esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]),d=new Set(["esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...u,...c]);function p(e,t,n={}){const s=m(t,e);if(!s){const n=a.getError(t,e);throw new i.A(o,"invalid SQL expression",{expression:t,error:n})}const r=n.expressionName||"expression";if(n.validateStandardized&&!s.isStandardized)throw new i.A(o,`${r} is not standard`,{expression:t});if(n.validateAggregate&&!s.isAggregate)throw new i.A(o,`${r} does not contain a valid aggregate function`,{expression:t});return s.fieldNames}function f(e,t,n,i){if(!n)return!0;const s="where clause";return x(e,t,p(e,n,{validateStandardized:!0,expressionName:s}),{expressionName:s,query:i}),!0}function h(e,t,n,s,r){if(!n)return!0;const a="having clause",l=p(e,n,{validateAggregate:!0,expressionName:a});x(e,t,l,{expressionName:a,query:r});const u=m(n,e),c=u?.getExpressions().every(t=>{const{aggregateType:n,field:i}=t,r=e.get(i)?.name;return s.some(t=>{const{onStatisticField:i,statisticType:s}=t,a=e.get(i)?.name;return a===r&&s.toLowerCase().trim()===n})});if(!c)throw new i.A(o,"expressions in having clause should also exist in outStatistics",{having:n});return!0}function m(e,t){return e?a.get(e,t):null}function y(e){return/\((.*?)\)/.test(e)?e:e.split(l)[0]}function g(e){return e.split(l)[1]}function x(e,t,n,s={}){const r=new Map;if(function(e,t,n,i,s){const r=s.includes("*")?[...n,...s.filter(e=>"*"!==e)]:s;for(const s of r)if(t.get(s))S(e,t,n,i,s);else try{const r=p(t,y(s),{validateStandardized:!0});for(const s of r)S(e,t,n,i,s)}catch(t){e.set(s,{type:"expression-error",expression:s,error:t})}}(r,e,t,s.allowedFieldTypes??d,n),r.size){const e=s.expressionName??"expression";throw new i.A(o,`${e} contains invalid or missing fields`,{errors:Array.from(r.values()),query:s.query})}}function S(e,t,n,i,s){const a=t.get(s);a?n.has(a.name)?"all"!==i&&!1===i?.has(a.type)&&e.set(s,{type:"invalid-type",fieldName:a.name,fieldType:r.m.fromJSON(a.type),allowedFieldTypes:Array.from(i,e=>r.m.fromJSON(e))}):e.set(s,{type:"missing-field",fieldName:a.name}):e.set(s,{type:"invalid-field",fieldName:s})}},51441(e,t,n){n.d(t,{LQ:()=>s,ag:()=>a,pL:()=>r});var i=n(90708);function s(e,t,n,s=e.hasZ,r=e.hasM){if(null==t)return null;const a=e.hasZ&&s,o=e.hasM&&r;if(n){const e=(0,i.Nl)(t,"esriGeometryPoint",n,s,r);return(0,i.DF)(e,a,o)}return(0,i.DF)(t,a,o)}function r(e,t,n,s,r,a){if(null==t)return null;const o="coords"in t?t:t.geometry;if(null==o)return null;const{hasZ:l,hasM:u}=o,c=l&&(r??=l),d=u&&(a??=u);if(n){let t=(0,i.kz)(o,e,n,r,a);return s&&(t=(0,i.Nl)(t,e,s)),(0,i.zv)(t,e,c,d)}if(s){const t=(0,i.Nl)(o,e,s,r,a);return(0,i.zv)(t,e,c,d)}return(0,i.zv)(o,e,c,d)}function a(e){return e&&o in e?JSON.parse(JSON.stringify(e,l)):e}const o="_geVersion",l=(e,t)=>e===o?void 0:t},31464(e,t,n){n.d(t,{Cv:()=>h,Nk:()=>d,lK:()=>y});var i=n(4576),s=n(91218),r=n(21325),a=n(28735);const o=[0,0];function l(e,t){if(!t)return null;if("x"in t){const n={x:0,y:0};return[n.x,n.y]=e(t.x,t.y,o),null!=t.z&&(n.z=t.z),null!=t.m&&(n.m=t.m),n}if("xmin"in t){const n={xmin:0,ymin:0,xmax:0,ymax:0};return[n.xmin,n.ymin]=e(t.xmin,t.ymin,o),[n.xmax,n.ymax]=e(t.xmax,t.ymax,o),t.hasZ&&(n.zmin=t.zmin,n.zmax=t.zmax,n.hasZ=!0),t.hasM&&(n.mmin=t.mmin,n.mmax=t.mmax,n.hasM=!0),n}return"rings"in t?{rings:u(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:u(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:c(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function u(e,t){const n=[];for(const i of e)n.push(c(i,t));return n}function c(e,t){const n=[];for(const i of e){const e=t(i[0],i[1],[0,0]);n.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return n}async function d(e,t){if(!e||!t)return;const n=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(i.Ru):[e];await(0,s.initializeProjection)(n.map(e=>({source:e,dest:t})))}const p=l.bind(null,a.je),f=l.bind(null,a.tD);function h(e,t,n,i){if(!e)return null;if(n||(n=t,t=e.spatialReference),!(0,r.fn)(t)||!(0,r.fn)(n)||(0,r.aI)(t,n))return e;if((0,a.y7)(t,n)){const t=(0,r.K8)(n)?p(e):f(e);return t.spatialReference=n,t}return(0,s.projectMany)([e],t,n,i)[0]}const m=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,n,i){if(!e?.length||!t||!n||(0,r.aI)(t,n))return e;const s={geometries:e,inSpatialReference:t,outSpatialReference:n,options:i,resolve:Promise.withResolvers()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:n,outSpatialReference:i,resolve:o,options:l}=e,u=t.filter(e=>null!=e);let c;c=(0,a.y7)(n,i)&&null==l?.extendedParams?(0,r.K8)(i)?u.map(p):u.map(f):(0,s.projectMany)(u,n,i,l);let d=0;const h=t.map(e=>null==e?null:c[d++]);o.resolve(h),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(e,t,n,i){return m.push(e,t,n,i)}},58727(e,t,n){n.d(t,{GC:()=>y,T2:()=>g,VY:()=>f,dO:()=>S,iJ:()=>m,v8:()=>h});var i=n(49186),s=n(66552),r=n(86211),a=n(91218),o=n(90634),l=n(60408),u=n(65864),c=n(17136),d=n(21325),p=n(31464);const f=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),h=Object.freeze({});async function m(e,t,n){const i=e.bin;return i.onField&&(i.onField=i.onField.trim()),i.onExpression?.value&&(i.onExpression.value=i.onExpression.value.trim()),i.splitBy&&(i.splitBy.value&&(i.splitBy.value=i.splitBy.value.trim()),i.splitBy.outAlias&&(i.splitBy.outAlias=i.splitBy.outAlias.trim())),i.stackBy&&(i.stackBy.value&&(i.stackBy.value=i.stackBy.value.trim()),i.stackBy.outAlias&&(i.stackBy.outAlias=i.stackBy.outAlias.trim())),"normalizationField"in i.parameters&&i.parameters.normalizationField&&(i.parameters.normalizationField=i.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),y(e,t,n)}async function y(e,t,n){const{outFields:i,orderByFields:s,groupByFieldsForStatistics:r,outStatistics:a}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),g(e,t,n)}async function g(e,t,s){if(!e)return null;let{where:a}=e;if(e.where=a=a?.trim(),(!a||/^1 *= *1$/.test(a)||t&&t===a)&&(e.where=null),!e.geometry)return e;let m=await async function(e){const{distance:t,units:s}=e,a=e.geometry;if(null==t||"vertexAttributes"in a)return a;const o=a.spatialReference,u=s?f.fromJSON(s):(0,r.Ij)(o),c=o&&((0,d.EA)(o)||(0,d.K8)(o))?a:await(0,p.Nk)(o,d.KK).then(()=>(0,p.Cv)(a,d.KK)),h=await n.e(9159).then(n.bind(n,49159));await h.load();const m=h.execute(c,t||1,{unit:u})??void 0;if(!m||!(0,l.Bi)(m)||0===m.rings.length)throw new i.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return m}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;m=(0,o.HA)(m),m.spatialReference=t}if(m){await(0,p.Nk)(m.spatialReference,s),m=function(e,t){const n=e.spatialReference;return x(e,t)&&(0,l.ZC)(e)?{spatialReference:n,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(m,s);const t=(await(0,c.el)((0,u.rS)(m)))[0];if(null==t)throw h;const n="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,i=n&&x(m,s)?{extendedParams:{densificationStep:8*n}}:void 0,r=t.toJSON(),a=(0,p.Cv)(r,r.spatialReference,s,i);if(!a)throw h;a.spatialReference=s,e.geometry=a}return e}function x(e,t){if(!e)return!1;const n=e.spatialReference;return((0,l.ZC)(e)||(0,l.Bi)(e)||(0,l.Rg)(e))&&!(0,d.aI)(n,t)&&!(0,a.canProjectWithoutEngine)(n,t)}function S(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}},62660(e,t,n){n.d(t,{tC:()=>T,c0:()=>v,xt:()=>_});var i=n(49186),s=n(94078),r=n(12176),a=n(60408),o=n(21325);function l(e,t){return c(e,t.coords[0],t.coords[1])}function u(e,t){const{coords:n,lengths:i,stride:s}=t;if(!i)return!1;for(let t=0,r=0;t<i.length;t++,r+=s)if(!c(e,n[r],n[r+1]))return!1;return!0}function c(e,t,n){if(!e)return!1;const{coords:i,lengths:s,stride:r}=e;let a=!1,o=0;for(const e of s)a=d(a,i,r,o,e,t,n),o+=e*r;return a}function d(e,t,n,i,s,r,a){let o=e,l=i;for(let e=i,u=i+s*n;e<u;e+=n){l=e+n,l===u&&(l=i);const s=t[e],c=t[e+1],d=t[l],p=t[l+1];(c<a&&p>=a||p<a&&c>=a)&&s+(a-c)/(p-c)*(d-s)<r&&(o=!o)}return o}var p=n(90708),f=n(51441),h=n(31464);const m="unsupported-query",y={esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},g={esriGeometryPoint:!0,esriGeometryMultiPatch:!1,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},x={esriGeometryPoint:!0,esriGeometryMultiPatch:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1},S={esriSpatialRelIntersects:()=>Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(8414)]).then(n.bind(n,55284)),esriSpatialRelContains:()=>Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(609)]).then(n.bind(n,51508)),esriSpatialRelCrosses:()=>Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(7316)]).then(n.bind(n,85672)),esriSpatialRelDisjoint:()=>Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6960)]).then(n.bind(n,7978)),esriSpatialRelEnvelopeIntersects:null,esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:()=>Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(3304)]).then(n.bind(n,46178)),esriSpatialRelTouches:()=>Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(7987)]).then(n.bind(n,83547)),esriSpatialRelWithin:()=>Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1787)]).then(n.bind(n,85445)),esriSpatialRelRelation:null};async function _(e,t,n){if((0,a.Bi)(t)){if("esriGeometryPoint"===n&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){const e=(0,p.Ye)(t,!1,!1);return t=>l(e,t)}if("esriGeometryMultipoint"===n){const n=(0,p.Ye)(t,!1,!1);if("esriSpatialRelContains"===e)return e=>u(n,e)}}if((0,a.ZC)(t)){if("esriGeometryPoint"===n&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return e=>(0,s.qz)(t,(0,f.pL)(n,e));if("esriGeometryMultipoint"===n&&"esriSpatialRelContains"===e)return e=>(0,s.rL)(t,(0,f.pL)(n,e));if("esriSpatialRelIntersects"===e){const e="mesh"===(i=n)?r.xB:(0,r.xK)(i);return i=>e(t,(0,f.pL)(n,i))}}var i;"esriSpatialRelEnvelopeIntersects"===e&&(e="esriSpatialRelIntersects");const o=await function(e){const t=S[e];if(null==t)throw new Error(`Cannot load unsupported spatial operator: ${e}`);return t()}(e);return e=>o.execute(t,(0,f.pL)(n,e))}async function v(e,t,n){const{spatialRel:s,geometry:r}=e;if(r){if(null==(l=s)||!0!==y[l])throw new i.A(m,"Unsupported query spatial relationship",{query:e});if((0,o.fn)(r.spatialReference)&&(0,o.fn)(n)){if(!function(e){return null!=e&&!0===g[(0,a.$B)(e)]}(r))throw new i.A(m,"Unsupported query geometry type",{query:e});if(!function(e){return null!=e&&!0===x[e]}(t))throw new i.A(m,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,h.Nk)(e.geometry?.spatialReference,e.outSR)}}var l}function T(e){if((0,a.ZC)(e))return!0;if((0,a.Bi)(e)){for(const t of e.rings){if(5!==t.length)return!1;if(t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1}return!0}return!1}},86420(e,t,n){n.d(t,{I:()=>r,W:()=>s});var i=n(21818);async function s(e,t){if(!e)return null;const n=t.featureAdapter,{startTimeField:s,endTimeField:r}=e;let a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;if(s&&r)await t.forEach(e=>{const t=n.getAttribute((0,i.z)(e),s),l=n.getAttribute((0,i.z)(e),r);null==t||isNaN(t)||(a=Math.min(a,t)),null==l||isNaN(l)||(o=Math.max(o,l))});else{const e=s||r;await t.forEach(t=>{const s=n.getAttribute((0,i.z)(t),e);null==s||isNaN(s)||(a=Math.min(a,s),o=Math.max(o,s))})}return{start:a,end:o}}function r(e,t,n){if(!t||!e)return null;const{startTimeField:i,endTimeField:s}=e;if(!i&&!s)return null;const{start:r,end:a}=t;if(null===r&&null===a)return null;if(void 0===r&&void 0===a)return()=>!1;const o=n.getAttributeAsTimestamp?.bind(n)??n.getAttribute.bind(n);return i&&s?function(e,t,n,i,s){return null!=i&&null!=s?r=>{const a=e(r,t),o=e(r,n);return(null==a||a<=s)&&(null==o||o>=i)}:null!=i?t=>{const s=e(t,n);return null==s||s>=i}:null!=s?n=>{const i=e(n,t);return null==i||i<=s}:void 0}(o,i,s,r,a):function(e,t,n,i){return null!=n&&null!=i&&n===i?i=>e(i,t)===n:null!=n&&null!=i?s=>{const r=e(s,t);return null!=r&&r>=n&&r<=i}:null!=n?i=>{const s=e(i,t);return null!=s&&s>=n}:null!=i?n=>{const s=e(n,t);return null!=s&&s<=i}:void 0}(o,i||s,r,a)}},92300(e,t,n){n.d(t,{V:()=>a,X:()=>r});var i=n(60408),s=n(65864);function r(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function a(e,t,n){const i=(0,s.xD)(t);return e.map(e=>{const t=i.fromJSON(e);return t.spatialReference=n,t})}},5834(e,t,n){n.d(t,{A:()=>d});var i=n(5482),s=n(93637),r=n(91429),a=n(56507),o=n(41266),l=n(41366),u=n(93223);function c(e,t,n){(0,s.sM)(n,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(o.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],d.prototype,"numBins",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,i.Cg)([(0,r.$K)("esri.rest.support.AutoIntervalBinParameters")],d),d.from=(0,a.dp)(d)},41266(e,t,n){n.d(t,{A:()=>m});var i=n(5482),s=n(69540),r=n(66552),a=n(25482),o=n(91429),l=n(56507),u=n(93223);const c=new r.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let d=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"outAlias",write:!0}})],d.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:String})],d.prototype,"responseType",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"value",void 0),(0,i.Cg)([(0,u.e)(c)],d.prototype,"valueType",void 0),d=(0,i.Cg)([(0,o.$K)("esri.rest.support.AttributeBinsGrouping")],d);const p=d;d.from=(0,l.dp)(d);const f=new r.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),h=new r.J({naturalLog:"natural-log",squareRoot:"square-root"});let m=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],m.prototype,"expression",void 0),(0,i.Cg)([(0,u.e)(f,{name:"onExpression.valueType"})],m.prototype,"expressionValueType",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"onField",write:!0}})],m.prototype,"field",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],m.prototype,"firstDayOfWeek",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hideUpperBound",void 0),(0,i.Cg)([(0,o.MZ)({type:p,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],m.prototype,"splitBy",void 0),(0,i.Cg)([(0,o.MZ)({type:p,json:{write:{target:{stackBy:{type:p},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>p.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],m.prototype,"stackBy",void 0),(0,i.Cg)([(0,u.e)(h)],m.prototype,"transformation",void 0),m=(0,i.Cg)([(0,o.$K)("esri.rest.support.BinParametersBase")],m)},59977(e,t,n){n.d(t,{A:()=>y});var i=n(5482),s=n(93637),r=n(91429),a=n(56507),o=n(41266),l=n(69540),u=n(25482),c=n(57231),d=n(93223);let p=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"number",write:!0}})],p.prototype,"value",void 0),(0,i.Cg)([(0,d.e)(c.g)],p.prototype,"unit",void 0),p=(0,i.Cg)([(0,r.$K)("esri.rest.support.DateBinTimeInterval")],p);const f=p;function h(e,t,n){(0,s.sM)(n,"string"==typeof e?e:e?.getTime(),t)}function m(e,t){const n=e.parameters[t];return n?"string"==typeof n?n:new Date(n):null}p.from=(0,a.dp)(p);let y=class extends o.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,i.Cg)([(0,r.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>m(t,"end")},write:{writer:h}}})],y.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({type:f,json:{name:"parameters",write:!0}})],y.prototype,"interval",void 0),(0,i.Cg)([(0,r.MZ)({type:f,json:{name:"parameters.offset",write:!0}})],y.prototype,"offset",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],y.prototype,"returnFullIntervalBin",void 0),(0,i.Cg)([(0,r.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>m(t,"start")},write:{writer:h}}})],y.prototype,"start",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],y.prototype,"snapToData",void 0),(0,i.Cg)([(0,d.e)({dateBin:"date"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,r.$K)("esri.rest.support.DateBinParameters")],y),y.from=(0,a.dp)(y)},57231(e,t,n){n.d(t,{g:()=>i});const i=(0,n(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},11440(e,t,n){n.d(t,{A:()=>u});var i=n(5482),s=n(93637),r=n(91429),a=n(56507),o=n(41266),l=n(93223);let u=class extends o.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,n){(0,s.sM)(n,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,i.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,r.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,a.dp)(u)},60909(e,t,n){n.d(t,{A:()=>d});var i=n(5482),s=n(93637),r=n(91429),a=n(56507),o=n(41266),l=n(41366),u=n(93223);function c(e,t,n){(0,s.sM)(n,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(o.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],d.prototype,"interval",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,i.Cg)([(0,r.$K)("esri.rest.support.FixedIntervalBinParameters")],d),d.from=(0,a.dp)(d)},41366(e,t,n){n.d(t,{K:()=>d,Q:()=>l});var i=n(5482),s=n(66552),r=n(53966),a=n(91429),o=n(93223);const l=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&c||n&&u||null,t&&n&&r.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,o.e)(l,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,a.$K)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},1873(e,t,n){n.d(t,{$y:()=>P,Ak:()=>D,FM:()=>h,G_:()=>p,Rw:()=>O,Vb:()=>c,b3:()=>A,gJ:()=>u,jM:()=>N,lv:()=>b,oZ:()=>F,qg:()=>f,sU:()=>z,z9:()=>d,zS:()=>C});var i=n(9760),s=n(84892);const r=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,a=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),o=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),l=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function c(e){const t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!i}function d(e){const{outStatisticTypes:t}=e,n=e.returnDistinct?[...new Set(e.values)]:e.values,i=n.filter(e=>null!=e).sort(),s=i.length,r={count:s,min:i[0],max:i[s-1]};return e.supportsNullCount&&(r.nullcount=n.length-s),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(r.median=f(n,e.percentileParams)),r}function p(e){const{values:t,useSampleStdDev:n,supportsNullCount:i,outStatisticTypes:s}=e;let r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=null,l=null,u=null,c=null,d=0;const p=null==e.minValue?-1/0:e.minValue,h=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=p&&e<=h&&(o=null===o?e:o+e,r=Math.min(r,e),a=Math.max(a,e),d++):"string"==typeof e&&d++;if(d&&null!=o){l=o/d;let e=0;for(const n of t)Number.isFinite(n)&&n>=p&&n<=h&&(e+=(n-l)**2);c=n?d>1?e/(d-1):0:d>0?e/d:0,u=Math.sqrt(c)}else r=null,a=null;const m={avg:l,count:d,max:a,min:r,stddev:u,sum:o,variance:c};return i&&(m.nullcount=t.length-d),!e.percentileParams||s?.include?.length&&!s.include.includes("median")||s?.exclude?.length&&s.exclude.includes("median")||(m.median=f(t,e.percentileParams)),m}function f(e,t){const{fieldType:n,value:i,orderBy:s,isDiscrete:r}=t,a=h(n,"desc"===s,"case-insensitive");if(0===(e=[...e].filter(e=>null!=e).sort((e,t)=>a(e,t))).length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];const o=(e.length-1)*i,l=Math.floor(o),u=l+1,c=o%1,d=e[l],p=e[u];return u>=e.length||r||"string"==typeof d||"string"==typeof p?d:d*(1-c)+p*c}function h(e,t,n="case-sensitive"){if(e){if(a.has(e))return w(t);if(o.has(e))return T(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?S:x}(t);const i=T(t,"case-sensitive"===n);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(E(e),E(t))}const i=t?1:-1,s=w(t),r=T(t,"case-sensitive"===n),l=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?s(e,t):"string"==typeof e&&"string"==typeof t?r(e,t):l(e,t)??i}const m=(e,t)=>null==e?null==t?0:1:null==t?-1:null,y=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?m:y}const x=(e,t)=>y(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),S=(e,t)=>m(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),_=(e,t)=>y(e,t)??(e===t?0:e<t?-1:1),v=(e,t)=>m(e,t)??(e===t?0:e<t?1:-1);function T(e,t){if(t)return e?v:_;const n=g(e);return e?(e,t)=>{const i=n(e,t);return null!=i?i:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const i=n(e,t);return null!=i?i:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const R=(e,t)=>m(e,t)??t-e,I=(e,t)=>y(e,t)??e-t;function w(e){return e?R:I}function E(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function F(e,t,n){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:l.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return n?(["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e):e}function A(e){const t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function M(e){return"coded-value"!==e?.type?[]:e.codedValues.map(e=>e.code)}function b(e,t,n,i){const s=e.count,r=[];if(n&&t){const e=[],n=M(t[0]);for(const s of n)if(t[1]){const n=M(t[1]);for(const r of n)if(t[2]){const n=M(t[2]);for(const t of n)e.push(`${u(s)}${i}${u(r)}${i}${u(t)}`)}else e.push(`${u(s)}${i}${u(r)}`)}else e.push(s);for(const t of e)s.hasOwnProperty(t)||(s[t]={data:t,count:0})}for(const e in s){const t=s[e];r.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:r}}function C(e,t,n,i){let s=null;switch(t){case"log":0!==e&&(s=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(s=e/i*100);break;case"field":Number.isFinite(n)&&0!==n&&(s=e/n);break;case"natural-log":e>0&&(s=Math.log(e));break;case"square-root":e>0&&(s=e**.5)}return s}function O(e,t,n){const r=function(e){const{breakCount:t,field:n,normalizationField:s,normalizationType:r}=e,a=e.classificationMethod||"equal-interval",o="standard-deviation"===a?e.standardDeviationInterval||1:void 0,l="defined-interval"===a?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:n,classificationMethod:a,normalizationField:"field"===r?s:void 0,normalizationType:r,standardDeviationInterval:o,definedInterval:l})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,n){const i=t??-1/0,s=n??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=s)}(e,t.minValue,t.maxValue),(0,s.t)({definition:r,values:e,normalizationTotal:t.normalizationTotal},n)}function N(e,t){let n=e.classBreaks;const i=n.length,s=n[0]?.minValue,a=n[i-1]?.maxValue,o="standard-deviation"===t,l=r;return n=n.map(e=>{const t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(o&&t){const e=t.match(l),i=e?.map(e=>+e.trim())??[];2===i.length?(n.minStdDev=i[0],n.maxStdDev=i[1],i[0]<0&&i[1]>0&&(n.hasAvg=!0)):1===i.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=i[0]):t.includes(">")&&(n.minStdDev=i[0],n.maxStdDev=null))}return n}),{minValue:s,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function P(e,t){const n=z(e,t);if(null==n.min&&null==n.max)return{bins:[],minValue:n.min,maxValue:n.max,normalizationTotal:t.normalizationTotal};const i=n.intervals,s=n.min??0,r=n.max??0,a=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(const t of e)if(null!=t&&t>=s&&t<=r){const e=D(i,t);e>-1&&a[e].count++}return{bins:a,minValue:s,maxValue:r,normalizationTotal:t.normalizationTotal}}function z(e,t,n=!1){const{field:i,classificationMethod:s,standardDeviationInterval:r,definedInterval:a,normalizationType:o,normalizationField:l,normalizationTotal:u,minValue:d,maxValue:f}=t,h=t.numBins||10;let m=null,y=null,g=null;if(s&&"equal-interval"!==s||o){const{classBreaks:t}=O(e,{field:i,normalizationType:o,normalizationField:l,normalizationTotal:u,classificationMethod:s,standardDeviationInterval:r,definedInterval:a,minValue:d,maxValue:f,numClasses:h},null!=d&&null!=f?[d,f]:void 0);m=t[0]?.minValue,y=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=d&&null!=f)m=d,y=f;else{const t=p({values:e,minValue:d,maxValue:f,useSampleStdDev:!o,supportsNullCount:c({normalizationType:o,normalizationField:l,minValue:d,maxValue:f})});m=t.min??null,y=t.max??null}g=function(e,t,n){const i=(t-e)/n,s=[];let r,a=e;for(let e=1;e<=n;e++)r=a+i,r=Number(r.toFixed(16)),s.push([a,e===n?t:r]),a=r;return s}(m??0,y??0,h)}if(n&&g.length){const e=g.at(-1)[1];g.push([e,e])}return{min:m,max:y,intervals:g}}function D(e,t){let n=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){n=i;break}return n}},92359(e,t,n){n.d(t,{nu:()=>d,W6:()=>u}),n(4576),n(71511),n(44208),n(53966);var i=n(17676),s=(n(36708),n(44794),n(78659)),r=n(5482),a=n(69622),o=n(91429);let l=class extends a.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,r.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,r.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,n(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,s.l5)(6.5),(0,s.l5)(1),(0,s.l5)(30),(0,s.l5)(1e3/30),(0,s.l5)(100);const c=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};c.enabled=!1;const d=new class{remove(){}processQueue(){}schedule(e,t,n){try{if((0,i.G4)(t)){const e=(0,i.NK)();return n?Promise.resolve(n(e)):Promise.reject(e)}return(0,i.z7)(e(c))}catch(e){return Promise.reject(e)}}reschedule(e,t,n){return this.schedule(e,t,n)}async scheduleGenerator(e,t,n){if((0,i.G4)(t)){const e=(0,i.NK)();if(n)return n(e);throw e}const s=e(c);for(;;){const e=s.next(c),r=(0,i.$X)(e)?await e:e;if((0,i.G4)(t)){const e=(0,i.NK)();if(n){const t=n(e),r=s.return(null);return(0,i.$X)(r)&&await(0,i.QZ)(r),t}const t=s.throw(e);throw(0,i.$X)(t)&&await(0,i.QZ)(t),e}if(r.done)return r.value}}}}}]);
|