@arcgis/core 5.0.0-next.73 → 5.0.0-next.75
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/Color.d.ts +8 -0
- package/WebDocument2D.d.ts +5 -30
- package/analysis/ElevationProfile/ElevationProfileLineQuery.d.ts +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0b666327e8090a6e6f6a.js +1 -0
- package/assets/esri/core/workers/chunks/16a7edb381621085a631.js +1 -0
- package/assets/esri/core/workers/chunks/{e246b256347a281c13fd.js → 22288b62da20a7a78a4f.js} +1 -1
- package/assets/esri/core/workers/chunks/{7e37a3005f2ad2c0a918.js → 23cf4cbc389d2b50e968.js} +1 -1
- package/assets/esri/core/workers/chunks/4750f55a289bc0cf3d77.js +1 -0
- package/assets/esri/core/workers/chunks/{935a6dccb88557f98189.js → 76b516b8c110ad983bf6.js} +8 -6
- package/assets/esri/core/workers/chunks/a5181292b309b8249bd8.js +1 -0
- package/assets/esri/core/workers/chunks/ae733ee050f27f7d8924.js +1 -0
- package/assets/esri/core/workers/chunks/{64985e9b6e2edb3ceb37.js → b498db9715a722c52995.js} +45 -58
- package/assets/esri/core/workers/chunks/befeca51530bba5e8073.js +1 -0
- package/assets/esri/core/workers/chunks/cd788ed111e1e35cf9c8.js +1 -0
- package/assets/esri/core/workers/chunks/f35021214e534d5e0446.js +1 -0
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +99 -22
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
- package/chunks/ComponentShader.glsl.js +1 -1
- package/chunks/GlowBlur.glsl.js +2 -3
- package/chunks/HUDMaterial.glsl.js +43 -56
- package/config.d.ts +6 -8
- package/config.js +1 -1
- package/core/Collection.d.ts +27 -1
- package/core/types.d.ts +0 -23
- package/core/urlUtils.d.ts +10 -0
- package/geometry/support/MeshTexture.d.ts +0 -2
- package/geometry/support/MeshVertexAttributes.d.ts +0 -2
- package/identity/IdentityManagerBase.d.ts +3 -6
- package/interfaces.d.ts +3 -3
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.d.ts +1 -4
- package/layers/BaseElevationLayer.d.ts +3 -6
- package/layers/BuildingSceneLayer.d.ts +1 -4
- package/layers/CSVLayer.d.ts +1 -4
- package/layers/CatalogLayer.d.ts +1 -4
- package/layers/DimensionLayer.d.ts +1 -4
- package/layers/ElevationLayer.d.ts +3 -6
- package/layers/FeatureLayer.d.ts +1 -4
- package/layers/GaussianSplatLayer.d.ts +0 -1
- package/layers/GeoJSONLayer.d.ts +1 -4
- package/layers/GeoRSSLayer.d.ts +1 -4
- package/layers/GraphicsLayer.d.ts +1 -4
- package/layers/GroupLayer.d.ts +1 -4
- package/layers/ImageryLayer.d.ts +1 -4
- package/layers/ImageryTileLayer.d.ts +1 -4
- package/layers/IntegratedMesh3DTilesLayer.d.ts +1 -4
- package/layers/IntegratedMeshLayer.d.ts +1 -4
- package/layers/KMLLayer.d.ts +1 -4
- package/layers/Layer.d.ts +2 -6
- package/layers/LineOfSightLayer.d.ts +1 -4
- package/layers/MapImageLayer.d.ts +1 -4
- package/layers/MapNotesLayer.d.ts +1 -4
- package/layers/MediaLayer.d.ts +1 -4
- package/layers/OGCFeatureLayer.d.ts +1 -4
- package/layers/OrientedImageryLayer.d.ts +1 -4
- package/layers/ParquetLayer.d.ts +1 -4
- package/layers/PointCloudLayer.d.ts +1 -4
- package/layers/RouteLayer.d.ts +2 -5
- package/layers/SceneLayer.d.ts +1 -4
- package/layers/SubtypeGroupLayer.d.ts +1 -12
- package/layers/TileLayer.d.ts +1 -4
- package/layers/UnknownLayer.d.ts +1 -4
- package/layers/UnsupportedLayer.d.ts +1 -4
- package/layers/VectorTileLayer.d.ts +1 -4
- package/layers/VideoLayer.d.ts +1 -4
- package/layers/ViewshedLayer.d.ts +1 -4
- package/layers/VoxelLayer.d.ts +1 -4
- package/layers/WCSLayer.d.ts +1 -4
- package/layers/WFSLayer.d.ts +1 -4
- package/layers/WMSLayer.d.ts +1 -4
- package/layers/WMTSLayer.d.ts +1 -4
- package/layers/catalog/CatalogDynamicGroupLayer.d.ts +1 -4
- package/layers/catalog/CatalogFootprintLayer.d.ts +1 -4
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +1 -6
- package/layers/mixins/EditBusLayer.d.ts +0 -1
- package/layers/mixins/PublishableLayer.d.ts +15 -0
- package/layers/support/FeatureFilter.d.ts +0 -1
- package/layers/support/MosaicRule.d.ts +0 -4
- package/layers/support/PublishingInfo.d.ts +1 -1
- package/layers/support/types.d.ts +2 -2
- package/layers/types.d.ts +19 -6
- package/package.json +1 -1
- package/portal/PortalUser.d.ts +1 -1
- package/renderers/support/RendererLegendOptions.d.ts +0 -1
- package/request/types.d.ts +0 -1
- package/rest/support/NormalizationBinParametersMixin.d.ts +18 -20
- package/rest/support/PrintTemplate.d.ts +0 -1
- package/rest/support/RelationshipQuery.d.ts +1 -10
- package/rest/support/types.d.ts +29 -3
- package/smartMapping/heuristics/binLevel.d.ts +1 -1
- package/smartMapping/heuristics/scaleRange.d.ts +1 -1
- package/smartMapping/heuristics/sizeRange.d.ts +1 -1
- package/smartMapping/heuristics/types.d.ts +0 -2
- package/smartMapping/labels/bins.d.ts +1 -1
- package/smartMapping/labels/clusters.d.ts +1 -1
- package/smartMapping/popup/clusters.d.ts +1 -1
- package/smartMapping/popup/templates.d.ts +1 -1
- package/smartMapping/raster/renderers/classBreaks.d.ts +1 -1
- package/smartMapping/raster/renderers/colormap.d.ts +1 -1
- package/smartMapping/raster/renderers/flow.d.ts +0 -1
- package/smartMapping/raster/renderers/rgb.d.ts +1 -1
- package/smartMapping/raster/renderers/shadedRelief.d.ts +0 -1
- package/smartMapping/raster/renderers/stretch.d.ts +1 -1
- package/smartMapping/raster/renderers/uniqueValue.d.ts +0 -1
- package/smartMapping/raster/renderers/vectorField.d.ts +0 -1
- package/smartMapping/raster/support/utils.d.ts +0 -2
- package/smartMapping/renderers/color.d.ts +6 -6
- package/smartMapping/renderers/dotDensity.d.ts +0 -1
- package/smartMapping/renderers/heatmap.d.ts +1 -1
- package/smartMapping/renderers/location.d.ts +0 -1
- package/smartMapping/renderers/opacity.d.ts +1 -1
- package/smartMapping/renderers/pieChart.d.ts +0 -2
- package/smartMapping/renderers/predominance.d.ts +0 -1
- package/smartMapping/renderers/relationship.d.ts +0 -1
- package/smartMapping/renderers/size.d.ts +4 -6
- package/smartMapping/renderers/type.d.ts +9 -5
- package/smartMapping/renderers/univariateColorSize.d.ts +2 -2
- package/smartMapping/statistics/classBreaks.d.ts +1 -1
- package/smartMapping/statistics/heatmapStatistics.d.ts +1 -1
- package/smartMapping/statistics/histogram.d.ts +1 -1
- package/smartMapping/statistics/predominantCategories.d.ts +1 -1
- package/smartMapping/statistics/summaryStatistics.d.ts +1 -1
- package/smartMapping/statistics/summaryStatisticsForAge.d.ts +1 -1
- package/smartMapping/statistics/support/ageUtils.d.ts +1 -1
- package/smartMapping/statistics/types.d.ts +26 -8
- package/smartMapping/statistics/uniqueValues.d.ts +1 -1
- package/smartMapping/symbology/color.d.ts +4 -4
- package/smartMapping/symbology/dotDensity.d.ts +3 -3
- package/smartMapping/symbology/flow.d.ts +3 -3
- package/smartMapping/symbology/heatmap.d.ts +3 -3
- package/smartMapping/symbology/location.d.ts +1 -1
- package/smartMapping/symbology/pieChart.d.ts +3 -3
- package/smartMapping/symbology/predominance.d.ts +3 -3
- package/smartMapping/symbology/relationship.d.ts +3 -3
- package/smartMapping/symbology/size.d.ts +1 -1
- package/smartMapping/symbology/support/colorRamps.d.ts +1 -1
- package/smartMapping/symbology/type.d.ts +3 -3
- package/support/revision.js +1 -1
- package/symbols/cim/types.d.ts +0 -12
- package/symbols/support/symbolUtils.d.ts +1 -1
- package/views/2d/MapViewConstraints.d.ts +2 -10
- package/views/2d/engine/brushes.js +1 -1
- package/views/2d/engine/vectorTiles/GlyphMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/MemoryBuffer.js +1 -1
- package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/VertexMemoryBuffer.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLBackgroundMaterial.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLCircleMaterial.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLFillMaterial.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLLineMaterial.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLSymbolMaterial.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/RenderingDevice.js +5 -0
- package/views/2d/engine/webgl/WGLContainer.js +1 -1
- package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
- package/views/2d/engine/webgl/number.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniques.js +5 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/meshUtils.js +1 -1
- package/views/3d/state/NearFarHeuristic.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +18 -14
- package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +23 -20
- package/views/BreakpointsOwner.d.ts +2 -2
- package/views/LinkChartView.d.ts +0 -2
- package/views/View2D.d.ts +3 -15
- package/views/input/types.d.ts +2 -13
- package/views/layers/BuildingComponentSublayerView.d.ts +0 -1
- package/views/types.d.ts +2 -9
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/VertexArrayObject.js +1 -1
- package/views/webgl/renderState.js +1 -1
- package/webdoc/ips/SmoothingProperties.d.ts +1 -1
- package/webdoc/ips/SmoothingProperties.js +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListVisibleElements.d.ts +10 -10
- package/widgets/BasemapLayerList/types.d.ts +6 -1
- package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +0 -9
- package/widgets/Bookmarks/types.d.ts +0 -4
- package/widgets/CatalogLayerList/CatalogLayerListVisibleElements.d.ts +2 -2
- package/widgets/CatalogLayerList/types.d.ts +5 -1
- package/widgets/Editor/VisibleElements.d.ts +0 -11
- package/widgets/ElevationProfile/types.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.d.ts +0 -1
- package/widgets/FeatureTable/VisibleElements.d.ts +2 -16
- package/widgets/FeatureTable/support/AttachmentsViewOptions.d.ts +5 -3
- package/widgets/FeatureTable/support/AttachmentsViewOptions.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features/FeaturesViewModel.d.ts +3 -27
- package/widgets/Features/FeaturesVisibleElements.d.ts +4 -4
- package/widgets/LayerList/LayerListViewModel.d.ts +20 -5
- package/widgets/LayerList/LayerListVisibleElements.d.ts +10 -12
- package/widgets/LayerList/ListItem.d.ts +33 -0
- package/widgets/LayerList/ListItemPanel.d.ts +8 -2
- package/widgets/LayerList/types.d.ts +58 -15
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Popup/PopupVisibleElements.d.ts +6 -6
- package/widgets/Popup/types.d.ts +1 -1
- package/widgets/ScaleRangeSlider/ScaleRanges.d.ts +1 -1
- package/widgets/Sketch/CreateToolVisibilityMap.d.ts +0 -4
- package/widgets/Sketch/VisibleElements.d.ts +0 -2
- package/widgets/Sketch/types.d.ts +1 -1
- package/widgets/TableList/ListItemPanel.d.ts +8 -0
- package/widgets/TableList/TableListViewModel.d.ts +9 -14
- package/widgets/TableList/TableListVisibleElements.d.ts +9 -11
- package/widgets/TableList/types.d.ts +13 -7
- package/widgets/support/SnappingControls/VisibleElements.d.ts +0 -4
- package/widgets/types.d.ts +1 -9
- package/assets/esri/core/workers/chunks/1d8fc0239c907ff5d1e8.js +0 -1
- package/assets/esri/core/workers/chunks/562cddaf63985e53ee6e.js +0 -1
- package/assets/esri/core/workers/chunks/b899b4e7979c13b99526.js +0 -1
- package/assets/esri/core/workers/chunks/d0ae8752419d5b761190.js +0 -1
- package/assets/esri/core/workers/chunks/df2ba5f9d57080fca183.js +0 -1
- package/assets/esri/core/workers/chunks/ee175fd4ec706f7878c0.js +0 -1
- package/assets/esri/core/workers/chunks/fc00d7278b43df813c54.js +0 -1
- package/layers/mixins/ScaleRange.d.ts +0 -16
- package/views/2d/engine/vectorTiles/shaders/Programs.js +0 -5
- package/views/2d/engine/vectorTiles/shaders/VTLMaterialManager.js +0 -5
- package/views/2d/engine/vectorTiles/shaders/sources/resolver.js +0 -5
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +0 -5
- package/views/2d/engine/vtlBrushes.js +0 -5
- package/views/2d/engine/webgl/brushes/WGLBrushVTLBackground.js +0 -5
- package/views/2d/engine/webgl/brushes/WGLBrushVTLCircle.js +0 -5
- package/views/2d/engine/webgl/brushes/WGLBrushVTLFill.js +0 -5
- package/views/2d/engine/webgl/brushes/WGLBrushVTLLine.js +0 -5
- package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +0 -5
- package/views/3d/webgl-engine/effects/glow/GlowPresets.glsl.js +0 -5
- package/widgets/FeatureTable/support/FeatureStore.d.ts +0 -1
|
@@ -85,7 +85,6 @@ export default abstract class VisibleElements extends Accessor {
|
|
|
85
85
|
* Indicates whether to display the sketch labels toggle. Default value is `true`.
|
|
86
86
|
*
|
|
87
87
|
* @default true
|
|
88
|
-
* @since 4.29
|
|
89
88
|
* @since 5.0
|
|
90
89
|
*/
|
|
91
90
|
accessor labelsToggle: boolean;
|
|
@@ -133,7 +132,6 @@ export default abstract class VisibleElements extends Accessor {
|
|
|
133
132
|
* Indicates whether to display the tooltips toggle. Default value is `true`.
|
|
134
133
|
*
|
|
135
134
|
* @default true
|
|
136
|
-
* @since 4.29
|
|
137
135
|
* @since 5.0
|
|
138
136
|
*/
|
|
139
137
|
accessor tooltipsToggle: boolean;
|
|
@@ -223,7 +223,7 @@ export interface ReshapeOptions {
|
|
|
223
223
|
*/
|
|
224
224
|
edgeOperation?: "none" | "offset" | "split";
|
|
225
225
|
/**
|
|
226
|
-
*
|
|
226
|
+
* Indicates if the user can create a circular arc from an existing straight-line edge by holding **`Shift`** while dragging a midpoint handle.
|
|
227
227
|
*
|
|
228
228
|
* @default true
|
|
229
229
|
* @since 5.0
|
|
@@ -45,9 +45,17 @@ export interface ListItemPanelProperties extends WidgetProperties, IdentifiableM
|
|
|
45
45
|
/**
|
|
46
46
|
* The content displayed in the ListItem panel. This can be a [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String),
|
|
47
47
|
* a [Widget](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html) instance, or an [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement).
|
|
48
|
+
*
|
|
49
|
+
* @see [content](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItemPanel.html#content)
|
|
48
50
|
*/
|
|
49
51
|
export type ListItemPanelContent = Widget | HTMLElement | string;
|
|
50
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Defines the content(s) that can be displayed in a ListItem panel. This can be a single content item
|
|
55
|
+
* or an array of content items, allowing for flexible panel layouts.
|
|
56
|
+
*
|
|
57
|
+
* @see [content](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItemPanel.html#content)
|
|
58
|
+
*/
|
|
51
59
|
export type ListItemPanelContents = ListItemPanelContent | ListItemPanelContent[];
|
|
52
60
|
|
|
53
61
|
/**
|
|
@@ -13,25 +13,20 @@ export interface TableListViewModelProperties extends EventedMixinProperties, Pa
|
|
|
13
13
|
|
|
14
14
|
export interface TableListViewModelEvents {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* custom function to execute when particular actions are clicked.
|
|
16
|
+
* Emitted when the user clicks an [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or
|
|
17
|
+
* [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html) in a table list.
|
|
18
|
+
* Use this event to run custom logic when a specific action is triggered.
|
|
20
19
|
*
|
|
21
|
-
* @
|
|
22
|
-
* tableList.on("trigger-action", function (event) {
|
|
23
|
-
* let item = event.item;
|
|
24
|
-
* // Capture the action id.
|
|
25
|
-
* let id = event.action.id;
|
|
26
|
-
*
|
|
27
|
-
* if (id === "information") {
|
|
28
|
-
* window.open(item.layer.url);
|
|
29
|
-
* }
|
|
30
|
-
* });
|
|
20
|
+
* @see [@trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#event-trigger-action)
|
|
31
21
|
*/
|
|
32
22
|
"trigger-action": TableListViewModelTriggerActionEvent;
|
|
33
23
|
}
|
|
34
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The event object for the `trigger-action` event in the table list.
|
|
27
|
+
*
|
|
28
|
+
* @see [@trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#event-trigger-action)
|
|
29
|
+
*/
|
|
35
30
|
export interface TableListViewModelTriggerActionEvent {
|
|
36
31
|
/** The action clicked by the user. */
|
|
37
32
|
action: Action;
|
|
@@ -4,49 +4,47 @@ import type Accessor from "../../core/Accessor.js";
|
|
|
4
4
|
export interface TableListVisibleElementsProperties extends Partial<Pick<TableListVisibleElements, "closeButton" | "collapseButton" | "errors" | "filter" | "flow" | "heading" | "statusIndicators" | "temporaryTableIndicators">> {}
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* The visible elements that are displayed within the
|
|
8
|
-
* This provides the ability to turn individual elements of the
|
|
9
|
-
*
|
|
10
|
-
* @since 5.0
|
|
7
|
+
* The visible elements that are displayed within the table list.
|
|
8
|
+
* This provides the ability to turn on/off individual elements of the table list.
|
|
11
9
|
*/
|
|
12
10
|
export default abstract class TableListVisibleElements extends Accessor {
|
|
13
11
|
/**
|
|
14
|
-
*
|
|
12
|
+
* Indicates whether to display a close button in the header.
|
|
15
13
|
*
|
|
16
14
|
* @default false
|
|
17
15
|
* @since 5.0
|
|
18
16
|
*/
|
|
19
17
|
accessor closeButton: boolean;
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
19
|
+
* Indicates whether to display a collapse button in the header.
|
|
22
20
|
*
|
|
23
21
|
* @default false
|
|
24
22
|
* @since 5.0
|
|
25
23
|
*/
|
|
26
24
|
accessor collapseButton: boolean;
|
|
27
25
|
/**
|
|
28
|
-
*
|
|
26
|
+
* Indicates whether to display layers with load errors.
|
|
29
27
|
*
|
|
30
28
|
* @default false
|
|
31
29
|
* @since 5.0
|
|
32
30
|
*/
|
|
33
31
|
accessor errors: boolean;
|
|
34
32
|
/**
|
|
35
|
-
*
|
|
33
|
+
* Indicates whether to display a filter input box when then number of list items is equal to or greater than the value set in [TableList#minFilterItems](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#minFilterItems), allowing users to filter tables by their title.
|
|
36
34
|
*
|
|
37
35
|
* @default false
|
|
38
36
|
* @since 5.0
|
|
39
37
|
*/
|
|
40
38
|
accessor filter: boolean;
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
40
|
+
* Determines whether the table list should be shown within its built-in [flow component](https://developers.arcgis.com/calcite-design-system/components/flow/) or if the flow component should be excluded. The table list will be displayed within its original flow component if set to `true`. The flow component will be omitted from the table list if set to `false`. To place the table list into an existing Calcite flow component, set this property to `false`.
|
|
43
41
|
*
|
|
44
42
|
* @default true
|
|
45
43
|
* @since 5.0
|
|
46
44
|
*/
|
|
47
45
|
accessor flow: boolean;
|
|
48
46
|
/**
|
|
49
|
-
*
|
|
47
|
+
* Indicates whether to display the table list heading. The heading text is "Table List". The heading level can be set with the [TableList#headingLevel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#headingLevel).
|
|
50
48
|
*
|
|
51
49
|
* @default false
|
|
52
50
|
* @since 5.0
|
|
@@ -60,7 +58,7 @@ export default abstract class TableListVisibleElements extends Accessor {
|
|
|
60
58
|
*/
|
|
61
59
|
accessor statusIndicators: boolean;
|
|
62
60
|
/**
|
|
63
|
-
*
|
|
61
|
+
* Indicates whether temporary table indicators will be displayed for tables with [Layer#persistenceEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#persistenceEnabled) set to `false`. A [temporary icon](https://developers.arcgis.com/calcite-design-system/icons/?icon=temporary&library=Calcite%20UI&query=temporary) will be displayed on the near side of the table title.
|
|
64
62
|
*
|
|
65
63
|
* @default false
|
|
66
64
|
* @since 5.0
|
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
import type ListItem from "./ListItem.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* See the example snippets in the [TableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html) documentation for more details.
|
|
4
|
+
* A function for customizing a list item as it is created in the table list.
|
|
6
5
|
*
|
|
7
6
|
* @param event - An object containing a list item created by the [TableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html).
|
|
8
7
|
* @since 5.0
|
|
8
|
+
* @see [TableList#listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#listItemCreatedFunction)
|
|
9
|
+
* @see [TableListViewModel#listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#listItemCreatedFunction)
|
|
9
10
|
*/
|
|
10
11
|
export type ListItemModifier = (event: ListItemModifierEvent) => void;
|
|
11
12
|
|
|
12
13
|
/** @since 5.0 */
|
|
13
14
|
export interface ListItemModifierEvent {
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* the text, actions, panel content, and visibility of the list item. See the
|
|
18
|
-
* documentation for the [LayerListViewModel#listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#listItemCreatedFunction) for more details.
|
|
16
|
+
* The event object passed to a listItemCreatedFunction in the layer lists.
|
|
17
|
+
* Provides access to the list item being created, allowing you to customize its properties, actions, panel content, or visibility before rendering.
|
|
19
18
|
*
|
|
20
19
|
* @since 5.0
|
|
20
|
+
* @see [TableList#listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#listItemCreatedFunction)
|
|
21
|
+
* @see [TableListViewModel#listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#listItemCreatedFunction)
|
|
21
22
|
*/
|
|
22
23
|
item: ListItem;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Describes the current state of the list items in the [TableListViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html).
|
|
28
|
+
*
|
|
29
|
+
* @since 5.0
|
|
30
|
+
* @see [TableListViewModel#state](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#state)
|
|
31
|
+
*/
|
|
26
32
|
export type State = "ready" | "loading" | "disabled";
|
|
@@ -7,7 +7,6 @@ export interface SnappingControlsVisibleElementsProperties extends Partial<Pick<
|
|
|
7
7
|
/**
|
|
8
8
|
* The available [GridControls](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GridControls.html) elements within the widget.
|
|
9
9
|
*
|
|
10
|
-
* @since 4.30
|
|
11
10
|
* @since 5.0
|
|
12
11
|
*/
|
|
13
12
|
gridControlsElements?: VisibleElementsProperties;
|
|
@@ -58,14 +57,12 @@ export default abstract class SnappingControlsVisibleElements extends Accessor {
|
|
|
58
57
|
* Indicates whether to display the grid controls widget embedded in snapping controls. Default is `true`.
|
|
59
58
|
*
|
|
60
59
|
* @default true
|
|
61
|
-
* @since 4.30
|
|
62
60
|
* @since 5.0
|
|
63
61
|
*/
|
|
64
62
|
accessor gridControls: boolean;
|
|
65
63
|
/**
|
|
66
64
|
* The available [GridControls](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GridControls.html) elements within the widget.
|
|
67
65
|
*
|
|
68
|
-
* @since 4.30
|
|
69
66
|
* @since 5.0
|
|
70
67
|
*/
|
|
71
68
|
get gridControlsElements(): GridControlsVisibleElements;
|
|
@@ -74,7 +71,6 @@ export default abstract class SnappingControlsVisibleElements extends Accessor {
|
|
|
74
71
|
* Indicates whether to display the grid display toggle embedded in grid controls. Default is `true`.
|
|
75
72
|
*
|
|
76
73
|
* @default true
|
|
77
|
-
* @since 4.30
|
|
78
74
|
* @since 5.0
|
|
79
75
|
*/
|
|
80
76
|
accessor gridEnabledToggle: boolean;
|
package/widgets/types.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ export type SymbolTableElementType = ImageSymbolTableElementInfo | SymbolTableEl
|
|
|
172
172
|
/**
|
|
173
173
|
* Describes the schema of the SymbolTableElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements). This
|
|
174
174
|
* legend element is used for [UniqueValueRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html) and
|
|
175
|
-
* [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html).
|
|
175
|
+
* [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html).
|
|
176
176
|
*
|
|
177
177
|
* @since 5.0
|
|
178
178
|
*/
|
|
@@ -298,7 +298,6 @@ export interface ImageSymbolTableElementInfo {
|
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* Describes the schema of the ColorRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
|
|
301
|
-
* See the table below for more details of the properties in this object.
|
|
302
301
|
*
|
|
303
302
|
* @since 5.0
|
|
304
303
|
*/
|
|
@@ -332,7 +331,6 @@ export interface ColorRampElement {
|
|
|
332
331
|
|
|
333
332
|
/**
|
|
334
333
|
* Describes the schema of the StretchRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
|
|
335
|
-
* See the table below for more details of the properties in this object.
|
|
336
334
|
*
|
|
337
335
|
* @since 5.0
|
|
338
336
|
*/
|
|
@@ -366,7 +364,6 @@ export interface StretchRampElement {
|
|
|
366
364
|
|
|
367
365
|
/**
|
|
368
366
|
* Describes the schema of the OpacityRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
|
|
369
|
-
* See the table below for more details of the properties in this object.
|
|
370
367
|
*
|
|
371
368
|
* @since 5.0
|
|
372
369
|
*/
|
|
@@ -400,7 +397,6 @@ export interface OpacityRampElement {
|
|
|
400
397
|
|
|
401
398
|
/**
|
|
402
399
|
* Describes the schema of the SizeRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
|
|
403
|
-
* See the table below for more details of the properties in this object.
|
|
404
400
|
*
|
|
405
401
|
* @since 5.0
|
|
406
402
|
*/
|
|
@@ -434,7 +430,6 @@ export interface SizeRampElement {
|
|
|
434
430
|
|
|
435
431
|
/**
|
|
436
432
|
* Describes the schema of the HeatmapRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
|
|
437
|
-
* See the table below for more details of the properties in this object.
|
|
438
433
|
*
|
|
439
434
|
* @since 5.0
|
|
440
435
|
*/
|
|
@@ -468,7 +463,6 @@ export interface HeatmapRampElement {
|
|
|
468
463
|
|
|
469
464
|
/**
|
|
470
465
|
* Describes the schema of the RelationshipRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
|
|
471
|
-
* See the table below for more details of the properties in this object.
|
|
472
466
|
*
|
|
473
467
|
* @since 5.0
|
|
474
468
|
*/
|
|
@@ -528,7 +522,6 @@ export interface RelationshipRampElement {
|
|
|
528
522
|
|
|
529
523
|
/**
|
|
530
524
|
* Describes the schema of the UnivariateColorSizeRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
|
|
531
|
-
* See the table below for more details of the properties in this object.
|
|
532
525
|
*
|
|
533
526
|
* @since 5.0
|
|
534
527
|
*/
|
|
@@ -556,7 +549,6 @@ export interface UnivariateColorSizeRampElement {
|
|
|
556
549
|
|
|
557
550
|
/**
|
|
558
551
|
* Describes the schema of the UnivariateColorSizeRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
|
|
559
|
-
* See the table below for more details of the properties in this object.
|
|
560
552
|
*
|
|
561
553
|
* @since 5.0
|
|
562
554
|
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5710,7982],{4513:(e,a,r)=>{r.d(a,{S:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(3508),r.e(6554),r.e(9036)]).then(r.bind(r,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(7330),r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(957),r.e(6606),r.e(8654),r.e(6647),r.e(6673),r.e(7005),r.e(8570),r.e(6011),r.e(8993),r.e(1437)]).then(r.bind(r,82411))).default,CSVLayer:async()=>(await Promise.all([r.e(7330),r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(957),r.e(6606),r.e(8654),r.e(6647),r.e(1197)]).then(r.bind(r,68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(957),r.e(6606),r.e(6647),r.e(893),r.e(8628),r.e(2593),r.e(9279),r.e(9481)]).then(r.bind(r,83508))).default,DimensionLayer:async()=>(await Promise.all([r.e(3508),r.e(3813)]).then(r.bind(r,71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(3508),r.e(9953),r.e(4802),r.e(8207)]).then(r.bind(r,68611))).default,FeatureLayer:async()=>(await Promise.all([r.e(7330),r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(957),r.e(6606),r.e(8654),r.e(6647),r.e(9247)]).then(r.bind(r,68654))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(3508),r.e(6673),r.e(6730)]).then(r.bind(r,36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(8766)]).then(r.bind(r,15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(3508),r.e(6554),r.e(5890)]).then(r.bind(r,63201))).default,GroupLayer:async()=>(await Promise.all([r.e(3508),r.e(5613),r.e(3562)]).then(r.bind(r,85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(9953),r.e(1956),r.e(893),r.e(6673),r.e(8610),r.e(5142),r.e(8824)]).then(r.bind(r,87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(9953),r.e(6673),r.e(8610),r.e(8144),r.e(5142),r.e(2168),r.e(9478)]).then(r.bind(r,9478))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(3508),r.e(6673),r.e(5942),r.e(1312)]).then(r.bind(r,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(3508),r.e(6673),r.e(6011),r.e(5942),r.e(7464)]).then(r.bind(r,74660))).default,KMLLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(1863)]).then(r.bind(r,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(6606),r.e(8368),r.e(4649),r.e(217),r.e(8441),r.e(3463),r.e(8948),r.e(8692)]).then(r.bind(r,28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(3508),r.e(6673),r.e(1224),r.e(9695)]).then(r.bind(r,49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(6606),r.e(8368),r.e(4649),r.e(217),r.e(8441),r.e(3463),r.e(8948),r.e(1728)]).then(r.bind(r,71728))).default,MapImageLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(957),r.e(893),r.e(7048),r.e(7656),r.e(5778)]).then(r.bind(r,7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(7330),r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(957),r.e(6606),r.e(8654),r.e(6647),r.e(3463),r.e(4769)]).then(r.bind(r,96299))).default,MediaLayer:async()=>(await Promise.all([r.e(7330),r.e(3508),r.e(3444),r.e(9203)]).then(r.bind(r,29203))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(8570),r.e(5977)]).then(r.bind(r,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(3508),r.e(6554),r.e(9573),r.e(2712)]).then(r.bind(r,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(7330),r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(957),r.e(6606),r.e(8654),r.e(6647),r.e(9361),r.e(5681)]).then(r.bind(r,9352))).default,ParquetLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(5695)]).then(r.bind(r,99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6673),r.e(7885)]).then(r.bind(r,77885))).default,RouteLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(217),r.e(9785)]).then(r.bind(r,34507))).default,SceneLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(1956),r.e(8399),r.e(6673),r.e(7005),r.e(8570),r.e(6011),r.e(8993),r.e(1086)]).then(r.bind(r,2e4))).default,StreamLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(1956),r.e(8399),r.e(1017),r.e(73)]).then(r.bind(r,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(7330),r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1956),r.e(8399),r.e(957),r.e(6606),r.e(6647),r.e(2318)]).then(r.bind(r,97483))).default,TileLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(957),r.e(893),r.e(4802),r.e(7048),r.e(3224)]).then(r.bind(r,71756))).default,UnknownLayer:async()=>(await r.e(146).then(r.bind(r,146))).default,UnsupportedLayer:async()=>(await r.e(5165).then(r.bind(r,45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(3508),r.e(6554),r.e(4802),r.e(5897),r.e(1776)]).then(r.bind(r,48757))).default,VideoLayer:async()=>(await Promise.all([r.e(3508),r.e(3910),r.e(6728),r.e(8303),r.e(957),r.e(3444),r.e(2274)]).then(r.bind(r,86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(3508),r.e(1224),r.e(6650)]).then(r.bind(r,96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(1005)]).then(r.bind(r,21005))).default,WCSLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(9953),r.e(8610),r.e(8144),r.e(5142),r.e(2168),r.e(5694)]).then(r.bind(r,20521))).default,WFSLayer:async()=>(await Promise.all([r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(8303),r.e(4903),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(9110)]).then(r.bind(r,21901))).default,WMSLayer:async()=>(await Promise.all([r.e(7330),r.e(3508),r.e(2869),r.e(6554),r.e(3910),r.e(6728),r.e(5181)]).then(r.bind(r,51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(3508),r.e(6554),r.e(4802),r.e(9573),r.e(309)]).then(r.bind(r,20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(3508),r.e(6554),r.e(9573),r.e(2848)]).then(r.bind(r,47314))).default}},7861:(e,a,r)=>{r.d(a,{L:()=>n});var t=r(11254);async function n(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},23154:(e,a,r)=>{r.d(a,{K:()=>f,Q:()=>s});var t=r(77548),n=r(7861);const l=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){const{loadContext:r,...l}=a||{},s=r?await r.fetchServiceMetadata(e,l):await(0,n.L)(e,l),i=(0,t.G$)();d(s),c(s);const o={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return o;const u=`${(0,t.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(u,l):await(0,n.L)(u,l);return d(y),c(y),o.layersJSON={layers:y.layers,tables:y.tables},o}function i(e){const{type:a}=e;return!!a&&l.has(a)}function o(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(o)}function u(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function d(e){e.layers?.forEach(u),e.tables?.forEach(y)}function f(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},27982:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>d});var t=r(49186),n=r(84952),l=r(60694),s=r(92009),i=r(23154),o=r(77548),c=r(4513),u=r(7861);const y={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function d(e){const{properties:a,url:c}=e,d={...a,url:c},p=await async function(e,a){let r=(0,l.qg)(e);if(null==r&&(r=await async function(e,a){const r=await(0,u.L)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":m(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&m(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.iz)(e):null;return{title:null!=o&&r.name||(0,n.e7)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.An)(e).path}}}(e,a)),null==r)throw new t.A("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let f;const w={FeatureServer:"FeatureLayer",KnowledgeGraphServer:"KnowledgeGraphLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer",VideoServer:"VideoLayer"},p="FeatureServer"===c,L="SceneServer"===c,b={parsedUrl:r,Constructor:null,layerId:p||L?d??void 0:void 0,layers:[],tables:[]};switch(c){case"MapServer":if(null!=d){const{type:r}=await(0,u.L)(e,{customParameters:a});switch(f="FeatureLayer",r){case"Catalog Layer":f="CatalogLayer";break;case"Catalog Dynamic Group Layer":throw new t.A("arcgis-layers:unsupported",`fromUrl() not supported for "${r}" layers`)}}else f=await async function(e,a){return(await(0,u.L)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,u.L)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;f=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,u.L)(r.url.path,{customParameters:a});if(f="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)f="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=o.XX[e]&&(f=o.XX[e])}}break}case"3DTilesServer":throw new t.A("arcgis-layers:unsupported","fromUrl() not supported for 3DTiles layers");case"FeatureServer":if(f="FeatureLayer",null!=d){const r=await(0,u.L)(e,{customParameters:a});b.sourceJSON=r,b.preferredUrl=(0,o.$x)(),f=(0,i.K)(r.type)}break;default:f=w[c]}if(y[f]&&null==d){const r=await async function(e,a,r){let t,n,l,c=!1;switch(a){case"FeatureServer":{const a=await(0,i.Q)(e,{customParameters:r});l=(0,o.$x)(e,{preferredHost:a.preferredHost}),c=!!a.layersJSON,t=a.layersJSON||a.serviceJSON;break}case"SceneServer":{const a=await async function(e,a){const r=await(0,u.L)(e,{customParameters:a}),t=r.layers?.[0];if(!t)return{serviceInfo:r};try{const{serverUrl:t}=await(0,s.L)(e),n=await(0,u.L)(t,{customParameters:a}).catch(()=>null);return n&&(r.tables=n.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,n=a.tableServerUrl;break}default:t=await(0,u.L)(e,{customParameters:r})}const y=t?.layers,d=t?.tables;return{preferredUrl:l,layers:y?.map(e=>({id:e.id})).reverse()||[],tables:d?.map(e=>({serverUrl:n,id:e.id})).reverse()||[],layerInfos:c?y:[],tableInfos:c?d:[]}}(e,c,a);if(p&&(b.preferredUrl=r.preferredUrl,b.sublayerInfos=r.layerInfos,b.tableInfos=r.tableInfos),1!==r.layers.length+r.tables.length)b.layers=r.layers,b.tables=r.tables,p&&r.layerInfos?.length&&(b.sublayerConstructorProvider=await async function(e){if(!e.length)return;const a=new Set,r=[];for(const{type:t}of e)a.has(t)||(a.add(t),r.push(h((0,i.K)(t))));const t=await Promise.all(r),n=new Map;return Array.from(a).forEach((e,a)=>{n.set(e,t[a])}),e=>n.get(e.type)}(r.layerInfos));else if(p||L){const e=r.layerInfos?.[0]??r.tableInfos?.[0];if(b.layerId=r.layers[0]?.id??r.tables[0]?.id,b.sourceJSON=e,p){const a=e?.type;f=(0,i.K)(a)}}}return b.Constructor=await h(f),b}(c,a?.customParameters),{Constructor:L,layerId:b,sourceJSON:S,parsedUrl:v,layers:P,tables:g}=p;if(P.length+g.length===0)return null!=b&&(d.layerId=b),null!=S&&(d.sourceJSON=S),new L(d);const I=new(0,(await Promise.all([r.e(3508),r.e(5613),r.e(3562)]).then(r.bind(r,85989))).default)({title:v.title});return await async function(e,a,r){const t=a.sublayerConstructorProvider;for(const{id:n,serverUrl:l}of a.layers){const s=f(a.sublayerInfos,n),i=w(l,n,s,(s&&t?.(s))??a.Constructor,r);e.add(i)}if(a.tables.length){const t=await h("FeatureLayer");a.tables.forEach(({id:n,serverUrl:l})=>{const s=w(l,n,f(a.tableInfos,n),t,r);e.tables.add(s)})}}(I,p,d),I}function f(e,a){return e?e.find(({id:e})=>e===a):null}function w(e,a,r,t,n){const l={...n,layerId:a};return null!=e&&(l.url=e),null!=r&&(l.sourceJSON=r),"sublayerTitleMode"in t.prototype&&(l.sublayerTitleMode="service-name"),new t(l)}function m(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function h(e){return(0,c.S[e])()}},92009:(e,a,r)=>{r.d(a,{L:()=>u});var t=r(70333),n=r(11254),l=r(49186),s=r(74887),i=r(60694),o=r(20655),c=r(80812);async function u(e,a){const r=(0,i.qg)(e);if(!r)throw new l.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const r=new c.default({id:a,apiKey:e.apiKey}),l=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.QP)(e)}return null}(e);null!=l&&(r.portal=new o.A({url:l}));try{return await r.load({signal:e.signal})}catch(e){return(0,s.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;const t=new c.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.QP)(e),null}}(u);if(!f?.url)throw new l.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const w=await d(f.url,u);return w.portalItem=f,w}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const r=(0,i.qg)(e);if(!r)throw new l.A("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};const o=y(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},f=d("anonymous").catch(()=>d("no-prompt")),[w,m]=await Promise.all([f,o]),h=m?.layers,p=w.data&&w.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,p.length);e++)if(h[e].id===s)return{serverUrl:t,layerId:p[e].id}}else if(null!=s&&s<p.length)return{serverUrl:t,layerId:p[s].id};throw new Error("could not find matching associated sublayer")}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5897],{4264:(t,e,i)=>{i.d(e,{lf:()=>At,L:()=>Ot,A4:()=>St,aR:()=>Bt,tU:()=>Lt,V1:()=>Nt,uU:()=>Mt});var r=i(19419),n=i(5408),s=i(13195),a=i(80081),o=i(63907),l=i(85079),u=i(74038);class h{constructor(t){this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildAttributesInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildAttributesInfo(),this._locations}get geometryLayout(){return this._geometryLayout||this._buildAttributesInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildAttributesInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildAttributesInfo(),this._uniforms}getShaderHeader(){return this._shaderHeader||this._buildAttributesInfo(),this._shaderHeader}getShaderMain(){return this._shaderMain||this._buildAttributesInfo(),this._shaderMain}setDataUniforms(t,e,i,r,n){const s=this.getUniforms();for(const a of s){const{name:s,type:o,getValue:l}=a,u=l(i,e,r,n);if(null!==u)switch(o){case"float":t.setUniform1f(s,u);break;case"vec2":t.setUniform2fv(s,u);break;case"vec4":t.setUniform4fv(s,u)}}}encodeAttributes(t,e,i,r){const n=this.attributesInfo,s=this.getEncodingInfos(),a=[];let o=0,l=0;for(const u of Object.keys(s)){const h=s[u],{type:c,precisionFactor:y,isLayout:p}=n[u],f=p?i.getLayoutProperty(u):i.getPaintProperty(u),_=f.interpolator?.getInterpolationRange(e);let m=0;for(const i of h){const{offset:n,bufferElementsToAdd:s}=i;if(s>0){for(let t=0;t<s;t++)a.push(0);o+=l,l=i.bufferElementsToAdd}const u=r??f.getValue(_?_[m]:e,t);switch(c){case 0:case 1:a[o]|=this._encodeByte(u*(y||1),8*n);break;case 2:case 3:a[o]|=this._encodeShort(u*(y||1),8*n);break;case 4:case 5:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8);break;case 6:case 7:a[o]|=this._encodeShort(u*(y||1),8*n),a[o]|=this._encodeShort(u*(y||1),8*n+16);break;case 8:case 9:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8),a[o]|=this._encodeByte(u*(y||1),8*n+16),a[o]|=this._encodeByte(u*(y||1),8*n+24);break;case 10:a[o]=this._encodeColor(u);break;case 11:case 12:this._encodePattern(o,a,u);break;default:throw new Error("Unsupported encoding type")}m++}}return a}getAtributeState(t){let e=0;const i=3+2*t;return e|=this._bit(i),e|=this._bit(i+1)<<1,e}static{this._encodingInfo={0:{dataType:o.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:o.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:o.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:o.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:o.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_buildAttributesInfo(){const t=[],e={},{attributesInfo:i,attributes:r}=this,n={};let s=-1,a=-1;for(const o of r){a++;const r=this.getAtributeState(a);if(0===r||3===r)continue;const l=i[o],u=[];e[o]=u;const c=l.type;for(let e=0;e<r;e++){const{dataType:e,bytesPerElement:i,count:r,normalized:a}=h._encodingInfo[c],o=i*r,l=`${e}-${!0===a}`;let y=n[l],p=0;if(!y||y.count+r>4)s++,y={dataIndex:s,count:0,offset:0},4!==r&&(n[l]=y),t.push({location:-1,name:"a_data_"+s,count:r,type:e,normalized:a}),p=Math.ceil(Math.max(o/4,1));else{const e=t[y.dataIndex];e.count+=r,p=Math.ceil(Math.max(e.count*i/4,1))-Math.ceil(Math.max(y.offset/4,1))}u.push({dataIndex:y.dataIndex,offset:y.offset,bufferElementsToAdd:p}),y.offset+=o,y.count+=r}}for(const e of t)switch(e.type){case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:e.count=4;break;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:e.count+=e.count%2}this._buildVertexBufferLayout(t),this._buildShaderInfo(t,e),this._propertyEncodingInfo=e}_buildVertexBufferLayout(t){const e=this.baseGeometryLayout;let i=e[0].stride;if(0===t.length)this._geometryLayout=e;else{const r=[];let n=i;for(const e of t)i+=c(e.type)*e.count;for(const t of e)r.push(new u._(t.name,t.count,t.type,t.offset,i,t.normalized));for(const e of t)r.push(new u._(e.name,e.count,e.type,n,i,e.normalized)),n+=c(e.type)*e.count;this._geometryLayout=r}this.opacityLayout?this._locations=(0,l._u)([this._geometryLayout,this.opacityLayout]):this._locations=(0,l.Xk)(this._geometryLayout),this._stride=i}_buildShaderInfo(t,e){let i="\n",r="\n";const n=[];for(const e of t)i+=`attribute ${this._getType(e.count)} ${e.name};\n`;const{attributesInfo:s,attributes:a}=this;let o=-1;for(const t of a){o++;const{name:a,type:l,precisionFactor:u,isLayout:c}=s[t],p=u&&1!==u?" * "+1/u:"",{bytesPerElement:f,count:_}=h._encodingInfo[l],m=t=>`a_data_${t.dataIndex}${y(_,t.offset,f)}`;switch(this.getAtributeState(o)){case 0:{const e=this._getType(_),s=`u_${a}`;n.push({name:s,type:e,getValue:(e,i,r,n)=>{const s=c?e.getLayoutValue(t,i):e.getPaintValue(t,i);if(11===l){const t=e.getDashKey(s,e.getLayoutValue("line-cap",i)),r=n.getMosaicItemPosition(t,!1);if(null==r)return null;const{tl:a,br:o}=r;return[a[0],o[1],o[0],a[1]]}if(12===l){const e=n.getMosaicItemPosition(s,!t.includes("line-"));if(null==e)return null;const{tl:i,br:r}=e;return[i[0],r[1],r[0],i[1]]}if(10===l){const t=s[3];return[t*s[0],t*s[1],t*s[2],t]}return s}}),i+=`uniform ${e} ${s};\n`,r+=`${e} ${a} = ${s};\n`}break;case 1:{const i=m(e[t][0]);r+=`${this._getType(_)} ${a} = ${i}${p};\n`}break;case 2:{const s=`u_t_${a}`;n.push({name:s,type:"float",getValue:(e,i,r,n)=>(c?e.getLayoutProperty(t):e.getPaintProperty(t)).interpolator.interpolationUniformValue(r,i)}),i+=`uniform float ${s};\n`;const o=m(e[t][0]),l=m(e[t][1]);r+=`${this._getType(_)} ${a} = mix(${o}${p}, ${l}${p}, ${s});\n`}}}this._shaderHeader=i,this._shaderMain=r,this._uniforms=n}_bit(t){return(this._key&1<<t)>>t}_getType(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw new Error("Invalid count")}_encodeColor(t){const e=255*t[3];return a.A.i8888to32(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,i){if(!i?.rect)return;const r=i.rect,n=i.width,s=i.height;e[t]=this._encodeShort(r.x+2,0),e[t]|=this._encodeShort(r.y+2+s,16),e[t+1]=this._encodeShort(r.x+2+n,0),e[t+1]|=this._encodeShort(r.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const c=t=>{switch(t){case o.pe.FLOAT:case o.pe.INT:case o.pe.UNSIGNED_INT:return 4;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:case o.pe.HALF_FLOAT:return 2;case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:return 1}},y=(t,e,i)=>{const r=e/i;if(1===t)switch(r){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(2===t)switch(r){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(3===t)switch(r){case 0:return".xyz";case 1:return".yzw"}return""};class p extends h{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.BYTE,0,2)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=p.GEOMETRY_LAYOUT,this.attributes=p.ATTRIBUTES,this.attributesInfo=p.ATTRIBUTES_INFO}}class f extends h{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1},"circle-color":{name:"color",type:10},"circle-opacity":{name:"opacity",type:1,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:1,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:10},"circle-stroke-opacity":{name:"stroke_opacity",type:1,precisionFactor:100},"circle-blur":{name:"blur",type:1,precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.attributes=f.ATTRIBUTES,this.attributesInfo=f.ATTRIBUTES_INFO}}class _ extends h{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100},"fill-pattern":{name:"tlbr",type:12,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=_.GEOMETRY_LAYOUT,this.attributes=_.ATTRIBUTES,this.attributesInfo=_.ATTRIBUTES_INFO}}class m extends h{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,8),new u._("a_offset",2,o.pe.BYTE,4,8),new u._("a_xnormal",2,o.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}constructor(t,e){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.attributes=e?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.attributesInfo=e?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE}}class g extends h{static{this.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_extrude_offset",4,o.pe.BYTE,4,16),new u._("a_dir_normal",4,o.pe.BYTE,8,16),new u._("a_accumulatedDistance",2,o.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-width":{name:"width",type:1,precisionFactor:2},"line-gap-width":{name:"gap_width",type:1,precisionFactor:2},"line-offset":{name:"offset",type:0,precisionFactor:2},"line-color":{name:"color",type:10},"line-opacity":{name:"opacity",type:1,precisionFactor:100},"line-blur":{name:"blur",type:1,precisionFactor:4},"line-pattern":{name:"tlbr",type:12,isOptional:!0},"line-dasharray":{name:"tlbr",type:11,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.attributes=g.ATTRIBUTES,this.attributesInfo=g.ATTRIBUTES_INFO}}const d=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_vertexOffset",2,o.pe.SHORT,4,16),new u._("a_texAngleRange",4,o.pe.UNSIGNED_BYTE,8,16),new u._("a_levelInfo",4,o.pe.UNSIGNED_BYTE,12,16)],x=[new u._("a_opacityInfo",1,o.pe.UNSIGNED_BYTE,0,1)];class b extends h{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10},"icon-opacity":{name:"opacity",type:1,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:10},"icon-halo-width":{name:"halo_width",type:1,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=b.ATTRIBUTES,this.attributesInfo=b.ATTRIBUTES_INFO}}class w extends h{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10},"text-opacity":{name:"opacity",type:1,precisionFactor:100},"text-halo-color":{name:"halo_color",type:10},"text-halo-width":{name:"halo_width",type:1,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"text-size":{name:"size",type:1,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=w.ATTRIBUTES,this.attributesInfo=w.ATTRIBUTES_INFO}}var v=i(68197),T=i(85334);function E(t,e,i,r){const n=3*t,s=3*(i-t)-n,a=1-n-s,o=3*e,l=3*(r-e)-o,u=1-o-l;function h(t){return((a*t+s)*t+n)*t}function c(t){return(3*a*t+2*s)*t+n}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let i,r,n,s,a,o;for(n=t,o=0;o<8;o++){if(s=h(n)-t,Math.abs(s)<e)return n;if(a=c(n),Math.abs(a)<1e-6)break;n-=s/a}if(i=0,r=1,n=t,n<i)return i;if(n>r)return r;for(;i<r;){if(s=h(n),Math.abs(s-t)<e)return n;t>s?i=n:r=n,n=.5*(r-i)+i}return n}(t,e))}}const I={};I.ease=E(.25,.1,.25,1),I.linear=E(0,0,1,1),I.easeIn=I["ease-in"]=E(.42,0,1,1),I.easeOut=I["ease-out"]=E(0,0,.58,1),I.easeInOut=I["ease-in-out"]=E(.42,0,.58,1);const P={kind:"null"},D={kind:"number"},R={kind:"string"},A={kind:"boolean"},S={kind:"color"},L={kind:"object"},N={kind:"value"};function O(t,e){return{kind:"array",itemType:t,n:e}}const B=[P,D,R,A,S,L,O(N)];function M(t){if("array"===t.kind){const e=M(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return P;if("string"==typeof t)return R;if("boolean"==typeof t)return A;if("number"==typeof t)return D;if(t instanceof v.A)return S;if(Array.isArray(t)){let e;for(const i of t){const t=U(i);if(e){if(e!==t){e=N;break}}else e=t}return O(e||N,t.length)}return"object"==typeof t?L:N}function k(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||k(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of B)if(k(t,e))return!0;return e.kind===t.kind}function G(t){if(null===t)return"";const e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof v.A?t.toString():JSON.stringify(t)}class z{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class V{constructor(){this.type=N}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new V}evaluate(t,e){return t?.id}}class F{constructor(){this.type=R}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new F}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class C{constructor(){this.type=L}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new C}evaluate(t,e){return t?.values}}class ${constructor(){this.type=D}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new $}evaluate(t,e){return e}}class H{constructor(t,e,i){this._lhs=t,this._rhs=e,this._compare=i,this.type=A}static parse(t,e,i){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new H(wt(t[1],e),wt(t[2],e),i)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class Y{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new Y(wt(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class q{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new q(i)}evaluate(t,e){for(const i of this._args)if(!i.evaluate(t,e))return!1;return!0}}class j{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new j(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!0;return!1}}class W{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new W(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!1;return!0}}class X{constructor(t,e,i){this.type=t,this._args=e,this._fallback=i}static parse(t,e,i){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let r;const n=[];for(let s=1;s<t.length-1;s+=2){const a=wt(t[s],e),o=wt(t[s+1],e,i);r||(r=o.type),n.push({condition:a,output:o})}const s=wt(t[t.length-1],e,i);return r||(r=s.type),new X(r,n,s)}evaluate(t,e){for(const i of this._args)if(i.condition.evaluate(t,e))return i.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class K{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let i;const r=[];for(let n=1;n<t.length;n++){const s=wt(t[n],e);i||(i=s.type),r.push(s)}return new K(i,r)}evaluate(t,e){for(const i of this._args){const r=i.evaluate(t,e);if(null!==r)return r}return null}}class Z{constructor(t,e,i,r,n){this.type=t,this._input=e,this._labels=i,this._outputs=r,this._fallback=n}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let i;const r=wt(t[1],e),n=[],s={};let a;for(let r=2;r<t.length-1;r+=2){let o=t[r];Array.isArray(o)||(o=[o]);for(const t of o){const e=typeof t;if("string"!==e&&"number"!==e)throw new Error('"match" requires string or number literal as labels');if(a){if(e!==a)throw new Error('"match" requires labels to have the same type')}else a=e;s[t]=n.length}const l=wt(t[r+1],e);i||(i=l.type),n.push(l)}return new Z(i,r,s,n,wt(t[t.length-1],e))}evaluate(t,e){const i=this._input.evaluate(t,e);return(this._outputs[this._labels[i]]||this._fallback).evaluate(t,e)}}class J{constructor(t,e,i,r,n){this._operator=t,this.type=e,this.interpolation=i,this.input=r,this._stops=n}static parse(t,e,i){const r=t[0];if(t.length<5)throw new Error(`"${r}" expects at least 4 arguments`);const n=t[1];if(!Array.isArray(n)||0===n.length)throw new Error(`"${n}" is not a valid interpolation`);switch(n[0]){case"linear":if(1!==n.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==n.length||"number"!=typeof n[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==n.length)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){const e=n[t];if("number"!=typeof e||e<0||e>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${n[0]}"`)}if(t.length%2!=1)throw new Error(`"${r}" expects an even number of arguments`);const s=wt(t[2],e,D);let a;"interpolate-hcl"===r||"interpolate-lab"===r?a=S:i&&"value"!==i.kind&&(a=i);const o=[];for(let i=3;i<t.length;i+=2){const n=t[i];if("number"!=typeof n)throw new Error(`"${r}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=n)throw new Error(`"${r}" requires strictly ascending stop inputs`);const s=wt(t[i+1],e,a);a||(a=s.type),o.push([n,s])}if(a&&a!==S&&a!==D&&("array"!==a.kind||a.itemType!==D))throw new Error(`"${r}" cannot interpolate type ${M(a)}`);return new J(r,a,n,s,o)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this.input.evaluate(t,e);if(r<=i[0][0])return i[0][1].evaluate(t,e);if(r>=i[i.length-1][0])return i[i.length-1][1].evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););const a=i[n-1][0],o=i[n][0],l=J.interpolationRatio(this.interpolation,r,a,o),u=i[n-1][1].evaluate(t,e),h=i[n][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(h))return u.map((t,e)=>(0,s.GW)(t,h[e],l));if("color"===this.type.kind&&u instanceof v.A&&h instanceof v.A){const t=new v.A(u),e=new v.A(h);return new v.A([(0,s.GW)(t.r,e.r,l),(0,s.GW)(t.g,e.g,l),(0,s.GW)(t.b,e.b,l),(0,s.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof h)return(0,s.GW)(u,h,l);throw new Error(`"${this._operator}" cannot interpolate type ${M(this.type)}`)}if("interpolate-hcl"===this._operator){const t=(0,T.RH)(u),e=(0,T.RH)(h),i=e.h-t.h,r=(0,T.$)({h:t.h+l*(i>180||i<-180?i-360*Math.round(i/360):i),c:(0,s.GW)(t.c,e.c,l),l:(0,s.GW)(t.l,e.l,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...r})}if("interpolate-lab"===this._operator){const t=(0,T.ZD)(u),e=(0,T.ZD)(h),i=(0,T.$)({l:(0,s.GW)(t.l,e.l,l),a:(0,s.GW)(t.a,e.a,l),b:(0,s.GW)(t.b,e.b,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...i})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const i=this._stops;if(1===i.length)return 0;if(t>=i[i.length-1][0])return 0;let r=0;for(;++r<i.length&&!(t<i[r][0]););const n=i[r-1][0],s=i[r][0];return J.interpolationRatio(this.interpolation,e,n,s)}getInterpolationRange(t){const e=this._stops;if(1===e.length){const t=e[0][0];return[t,t]}const i=e[e.length-1][0];if(t>=i)return[i,i];let r=0;for(;++r<e.length&&!(t<e[r][0]););return[e[r-1][0],e[r][0]]}static interpolationRatio(t,e,i,r){let n=0;return"linear"===t[0]?n=J._exponentialInterpolationRatio(e,1,i,r):"exponential"===t[0]?n=J._exponentialInterpolationRatio(e,t[1],i,r):"cubic-bezier"===t[0]&&(n=E(t[1],t[2],t[3],t[4])(J._exponentialInterpolationRatio(e,1,i,r),1e-5)),n<0?n=0:n>1&&(n=1),n}static _exponentialInterpolationRatio(t,e,i,r){const n=r-i;if(0===n)return 0;const s=t-i;return 1===e?s/n:(e**s-1)/(e**n-1)}}class Q{constructor(t,e,i){this.type=t,this._input=e,this._stops=i}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const i=wt(t[1],e,D);let r;const n=[];n.push([-1/0,wt(t[2],e)]);for(let i=3;i<t.length;i+=2){const s=t[i];if("number"!=typeof s)throw new Error('"step" requires stop inputs as literal numbers');if(n.length&&n[n.length-1][0]>=s)throw new Error('"step" requires strictly ascending stop inputs');const a=wt(t[i+1],e);r||(r=a.type),n.push([s,a])}return new Q(r,i,n)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this._input.evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););return this._stops[n-1][1].evaluate(t,e)}}class tt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,i){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const r=new z(e);for(let i=1;i<t.length-1;i+=2){const n=t[i];if("string"!=typeof n)throw new Error(`"let" requires a string to define variable names - found ${n}`);r.add(n,wt(t[i+1],e))}const n=wt(t[t.length-1],r,i);return new tt(n.type,n)}evaluate(t,e){return this._output.evaluate(t,e)}}class et{constructor(t,e){this.type=t,this.output=e}static parse(t,e,i){if(2!==t.length||"string"!=typeof t[1])throw new Error('"var" requires just one literal string argument');const r=e.get(t[1]);if(!r)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new et(i||N,r)}evaluate(t,e){return this.output.evaluate(t,e)}}class it{constructor(t,e,i){this.type=t,this._index=e,this._array=i}static parse(t,e){if(3!==t.length)throw new Error('"at" expects 2 arguments');const i=wt(t[1],e,D),r=wt(t[2],e);return new it(r.type.itemType,i,r)}evaluate(t,e){const i=this._index.evaluate(t,e),r=this._array.evaluate(t,e);if(i<0||i>=r.length)throw new Error('"at" index out of bounds');if(i!==Math.floor(i))throw new Error('"at" index must be an integer');return r[i]}}class rt{constructor(t,e){this._key=t,this._obj=e,this.type=N}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new rt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new rt(i,r);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[i]:t?.values[i]}}class nt{constructor(t,e){this._key=t,this._obj=e,this.type=A}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new nt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new nt(i,r);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?i in this._obj.evaluate(t,e):!!t?.values[i]}}class st{constructor(t,e){this._key=t,this._vals=e,this.type=A}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new st(wt(t[1],e),wt(t[2],e))}evaluate(t,e){const i=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(i)}}class at{constructor(t,e,i){this._item=t,this._array=e,this._from=i,this.type=D}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const i=wt(t[1],e),r=wt(t[2],e);if(4===t.length){const n=wt(t[3],e,D);return new at(i,r,n)}return new at(i,r)}evaluate(t,e){const i=this._item.evaluate(t,e),r=this._array.evaluate(t,e);if(this._from){const n=this._from.evaluate(t,e);if(n!==Math.floor(n))throw new Error('"index-of" index must be an integer');return r.indexOf(i,n)}return r.indexOf(i)}}class ot{constructor(t){this._arg=t,this.type=D}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const i=wt(t[1],e);return new ot(i)}evaluate(t,e){const i=this._arg.evaluate(t,e);if("string"==typeof i)return i.length;if(Array.isArray(i))return i.length;throw new Error('"length" expects string or array')}}class lt{constructor(t,e,i,r){this.type=t,this._array=e,this._from=i,this._to=r}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const i=wt(t[1],e),r=wt(t[2],e,D);if(r.type!==D)throw new Error('"slice" index must return a number');if(4===t.length){const n=wt(t[3],e,D);if(n.type!==D)throw new Error('"slice" index must return a number');return new lt(i.type,i,r,n)}return new lt(i.type,i,r)}evaluate(t,e){const i=this._array.evaluate(t,e);if(!Array.isArray(i)&&"string"!=typeof i)throw new Error('"slice" input must be an array or a string');const r=this._from.evaluate(t,e);if(r<0||r>=i.length)throw new Error('"slice" index out of bounds');if(r!==Math.floor(r))throw new Error('"slice" index must be an integer');if(this._to){const n=this._to.evaluate(t,e);if(n<0||n>=i.length)throw new Error('"slice" index out of bounds');if(n!==Math.floor(n))throw new Error('"slice" index must be an integer');return i.slice(r,n)}return i.slice(r)}}class ut{constructor(){this.type=A}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new ut}evaluate(t,e){return void 0!==t?.id}}class ht{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static parse(t,e,i){const r=t.slice(1).map(t=>wt(t,e));return new ht(r,i)}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class ct{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){const i=t.slice(1).map(t=>wt(t,e));return new ct(i,ct.ops[t[0]])}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class yt{constructor(t){this._args=t,this.type=R}static parse(t,e){return new yt(t.slice(1).map(t=>wt(t,e)))}evaluate(t,e){return this._args.map(i=>i.evaluate(t,e)).join("")}}class pt{constructor(t,e){this._arg=t,this._calculate=e,this.type=R}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw new Error(`${t[0]} expects 1 argument`);const i=wt(t[1],e);return new pt(i,pt.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class ft{constructor(t){this._args=t,this.type=S}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const i=t.slice(1).map(t=>wt(t,e));return new ft(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e));return new v.A({r:i,g:r,b:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class _t{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const i=t.slice(1).map(t=>wt(t,e));return new _t(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e)),s=this._validateAlpha(this._args[3].evaluate(t,e));return new v.A({r:i,g:r,b:n,a:s})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class mt{constructor(t){this._color=t,this.type=O(D,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const i=wt(t[1],e);return new mt(i)}evaluate(t,e){return new v.A(this._color.evaluate(t,e)).toRgba()}}class gt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0];if(t.length<2)throw new Error(`${i} expects at least one argument`);let r,n=1;if("array"===i){if(t.length>2){switch(t[1]){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;default:throw new Error('"array" type argument must be string, number or boolean')}n++}else r=N;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw new Error('"array" length argument must be a positive integer literal');n++}r=O(r,e)}else switch(i){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;case"object":r=L}const s=[];for(;n<t.length;n++){const i=wt(t[n],e);s.push(i)}return new gt(r,s)}evaluate(t,e){let i;for(const r of this._args){const n=r.evaluate(t,e);if(i=U(n),k(i,this.type))return n}throw new Error(`Expected ${M(this.type)} but got ${M(i)}`)}}class dt{static{this.types={"to-boolean":A,"to-color":S,"to-number":D,"to-string":R}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0],r=dt.types[i];if(r===A||r===R){if(2!==t.length)throw new Error(`${i} expects one argument`)}else if(t.length<2)throw new Error(`${i} expects at least one argument`);const n=[];for(let i=1;i<t.length;i++){const r=wt(t[i],e);n.push(r)}return new dt(r,n)}evaluate(t,e){if(this.type===A)return Boolean(this._args[0].evaluate(t,e));if(this.type===R)return G(this._args[0].evaluate(t,e));if(this.type===D){for(const i of this._args){const r=Number(i.evaluate(t,e));if(!isNaN(r))return r}return null}if(this.type===S){for(const i of this._args)try{const r=dt.toColor(i.evaluate(t,e));if(r instanceof v.A)return r}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return G(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof v.A)return t;if("string"==typeof t){const e=v.A.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return v.A.fromArray(t);throw new Error(`"${t}" is not a color`)}}class xt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw new Error('"literal" expects 1 argument');return new xt(t[1])}evaluate(t,e){return this._val}}class bt{constructor(t){this._arg=t,this.type=R}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new bt(wt(t[1],e))}evaluate(t,e){return M(U(this._arg.evaluate(t,e)))}}function wt(t,e,i){const r=typeof t;if("string"===r||"boolean"===r||"number"===r||null===t){if(i)switch(i.kind){case"string":"string"!==r&&(t=dt.toString(t));break;case"number":"number"!==r&&(t=dt.toNumber(t));break;case"color":t=dt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const n=t[0];if("string"!=typeof n)throw new Error("First element of expression must be a string");const s=vt[n];if(void 0===s)throw new Error(`Invalid expression operator "${n}"`);if(!s)throw new Error(`Unimplemented expression operator "${n}"`);return s.parse(t,e,i)}const vt={array:gt,boolean:gt,collator:null,format:null,image:null,literal:xt,number:gt,"number-format":null,object:gt,string:gt,"to-boolean":dt,"to-color":dt,"to-number":dt,"to-string":dt,typeof:bt,accumulated:null,"feature-state":null,"geometry-type":F,id:V,"line-progress":null,properties:C,at:it,get:rt,has:nt,in:st,"index-of":at,length:ot,slice:lt,"!":Y,"!=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t!==e)}},"<":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<e)}},"<=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<=e)}},"==":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t===e)}},">":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>e)}},">=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>=e)}},all:q,any:j,case:X,coalesce:K,match:Z,within:null,interpolate:J,"interpolate-hcl":J,"interpolate-lab":J,step:Q,let:tt,var:et,concat:yt,downcase:pt,"is-supported-script":null,"resolved-locale":null,upcase:pt,rgb:ft,rgba:_t,"to-rgba":mt,"-":class extends ht{static parse(t,e){switch(t.length){case 2:return ht.parse(t,e,t=>-t[0]);case 3:return ht.parse(t,e,t=>t[0]-t[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=1;for(const i of t)e*=i;return e})}},"/":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]/t[1]);throw new Error('"/" expects 2 arguments')}},"%":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]%t[1]);throw new Error('"%" expects 2 arguments')}},"^":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]**t[1]);throw new Error('"^" expects 1 or 2 arguments')}},"+":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=0;for(const i of t)e+=i;return e})}},abs:ct,acos:ct,asin:ct,atan:ct,ceil:ct,cos:ct,e:ct,floor:ct,ln:ct,ln2:ct,log10:ct,log2:ct,max:ct,min:ct,pi:ct,round:ct,sin:ct,sqrt:ct,tan:ct,zoom:$,"heatmap-density":null,"has-id":ut,none:W};class Tt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=wt(t,null,A);return new Tt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t))return!0;if(0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return Tt.convertComparison("==",t[1],t[2]);case"!=":return Tt.negate(Tt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Tt.convertComparison(e,t[1],t[2]);case"in":return Tt.convertIn(t[1],t.slice(2));case"!in":return Tt.negate(Tt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Tt.convertCombining(e,t.slice(1));case"has":return Tt.convertHas(t[1]);case"!has":return Tt.negate(Tt.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,i){switch(e){case"$type":return[t,["geometry-type"],i];case"$id":return[t,["id"],i];default:return[t,["get",e],i]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Et{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var It=i(40876);class Pt{constructor(t,e){let i;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":i=!0;break;case"array":i="number"===t.value;break;default:i=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&vt[e[0]]){const i={number:D,color:S,string:R,boolean:A,enum:R};try{const r=wt(e,null,"array"===t.type?O(i[t.value]||N,t.length):i[t.type]);this.getValue=this._buildExpression(r,t),this.isDataDriven=!0,r instanceof J&&r.input instanceof $&&(this.interpolator=r)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}i&&"interval"===e.type&&(i=!1);const r=e?.stops&&e.stops.length>0;if(r)for(const i of e.stops)i[1]=this._validate(i[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),r)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=i?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else r?this.getValue=i?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=Pt._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=G(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(i,r)=>{try{const n=t.evaluate(r,i);return void 0===n?e.default:this._validate(n,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),void 0!==n&&(n=this._validate(n,e)),null!=n?n:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),n=this._categorical(n,t.stops),void 0!==n?n:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interval(n,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interpolate(n,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const i=e.length;for(let r=0;r<i;r++)if(e[r][0]===t)return e[r][1]}_interval(t,e){const i=e.length;let r=0;for(let n=0;n<i&&e[n][0]<=t;n++)r=n;return e[r][1]}_interpolate(t,e,i){let r,n;const a=e.length;for(let i=0;i<a;i++){const s=e[i];if(!(s[0]<=t)){n=s;break}r=s}if(r&&n){const e=n[0]-r[0],a=t-r[0],o=1===i?a/e:(i**a-1)/(i**e-1);if(Array.isArray(r[1])){const t=r[1],e=n[1],i=[];for(let r=0;r<t.length;r++)i.push((0,s.GW)(t[r],e[r],o));return i}return(0,s.GW)(r[1],n[1],o)}return r?r[1]:n?n[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,It.Vm)(t)??void 0:t instanceof v.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}var Dt=i(76213);class Rt{constructor(t,e,i,r){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"],this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=i,this.uid=r,t){case 0:this._layoutDefinition=Et.backgroundLayoutDefinition,this._paintDefinition=Et.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Et.fillLayoutDefinition,this._paintDefinition=Et.fillPaintDefinition;break;case 2:this._layoutDefinition=Et.lineLayoutDefinition,this._paintDefinition=Et.linePaintDefinition;break;case 3:this._layoutDefinition=Et.symbolLayoutDefinition,this._paintDefinition=Et.symbolPaintDefinition;break;case 4:this._layoutDefinition=Et.circleLayoutDefinition,this._paintDefinition=Et.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=Tt.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,i){let r;const n=this._layoutProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._layoutDefinition[t].default),r}getPaintValue(t,e,i){let r;const n=this._paintProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._paintDefinition[t].default),r}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,i,r,n,s,a){return!1}getFeatureInflatedBounds(t,e,i,r){return null}_parseLayout(t){const e={};for(const i in t){const r=this._layoutDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}_parsePaint(t){const e={};for(const i in t){const r=this._paintDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}computeAttributesKey(t,e,i,r){let n=0,s=0;for(const t of e){let e=3;if(!t||t!==r){const r=i[t],{isLayout:n,isOptional:s}=r,a=n?this.getLayoutProperty(t):this.getPaintProperty(t);e=a?.interpolator?2:a?.isDataDriven?1:s&&!a?3:0}s|=e<<n,n+=2}return s<<3|t}}class At extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.backgroundMaterial=new p(this.computeAttributesKey(0,p.ATTRIBUTES,p.ATTRIBUTES_INFO))}}class St extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),a=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=n?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||a?.isDataDriven;const o=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!o,this.hasDataDrivenOutlineColor=o?.isDataDriven,this.hasDataDrivenOutline=o?o.isDataDriven:!!n&&n.isDataDriven,this.hasDataDrivenOutline=(o?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new _(this.computeAttributesKey(1,_.ATTRIBUTES,_.ATTRIBUTES_INFO)),this.outlineMaterial=new m(this.computeAttributesKey(2,this.outlineUsesFillColor?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("fill-translate",e,t),a=r*Math.max(s[0],s[1]);return n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a,n}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("fill-translate",a,r),this.getPaintValue("fill-translate-anchor",a,r),o,n.ih);return t-=h*c.x,e-=h*c.y,!!(0,s.s3)(t,e,u)||(0,s.ru)(t,e,u,h*i)}}class Lt extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("line-pattern");if(this.lineMaterial=new g(this.computeAttributesKey(3,g.ATTRIBUTES,g.ATTRIBUTES_INFO,n?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<Dt.Gh){const t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let i;switch(e){case 0:default:i="Butt";break;case 1:i="Round";break;case 2:i="Square"}return`dasharray-[${t.toString()}]-${i}`}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("line-translate",e,t),a=r*Math.max(s[0],s[1]);n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a;const o=r*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=r*(this.getPaintValue("line-width",e,t)/2);return n[0]-=o+l,n[1]-=o+l,n[2]+=o+l,n[3]+=o+l,n}isIntersectingFeature(t,e,i,r,a,o,l){let u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("line-translate",a,r),this.getPaintValue("line-translate-anchor",a,r),o,n.ih);t-=h*c.x,e-=h*c.y;const y=h*this.getPaintValue("line-offset",a,r)||0;0!==y&&(u=(0,s.cP)(u,-y));const p=this.getPaintValue("line-width",a,r);return(0,s.ru)(t,e,u,h*(i+p/2))}}class Nt extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.iconMaterial=new b(this.computeAttributesKey(4,b.ATTRIBUTES,b.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Ot extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.circleMaterial=new f(this.computeAttributesKey(5,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,i,r){const s=Ut(t);if(!s)return null;const a=this.getPaintValue("circle-translate",e,t),o=Math.max(a[0],a[1]);s[0]-=o,s[2]-=o,s[1]+=o,s[3]+=o;const l=r*(n.ih*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2);return s[0]-=l,s[1]-=l,s[2]+=l,s[3]+=l,s}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY,i*=h;const c=(0,s.yM)(this.getPaintValue("circle-translate",a,r),this.getPaintValue("circle-translate-anchor",a,r),o,h),y=h*(this.getPaintValue("circle-radius",a,r)+this.getPaintValue("circle-stroke-width",a,r));let p,f;for(const r of u)if(r)for(const n of r)if(p=n.x+c.x,f=n.y+c.y,Math.sqrt((t-p)*(t-p)+(e-f)*(e-f))-i<=y)return!0;return!1}}class Bt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("icon-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("icon-anchor",e),r=t.getLayoutProperty("icon-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("icon-offset",e),r=t.getLayoutProperty("icon-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("icon-padding",e),r=t.getLayoutProperty("icon-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("icon-rotate",e),r=t.getLayoutProperty("icon-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Mt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("text-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("text-anchor",e),r=t.getLayoutProperty("text-justify"),r?.isDataDriven?this._justifyProp=r:this.justify=t.getLayoutValue("text-justify",e),r=t.getLayoutProperty("text-letter-spacing"),r?.isDataDriven?this._letterSpacingProp=r:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),r=t.getLayoutProperty("text-line-height"),r?.isDataDriven?this._lineHeightProp=r:this.lineHeight=t.getLayoutValue("text-line-height",e),r=t.getLayoutProperty("text-max-angle"),r?.isDataDriven?this._maxAngleProp=r:this.maxAngle=t.getLayoutValue("text-max-angle",e),r=t.getLayoutProperty("text-max-width"),r?.isDataDriven?this._maxWidthProp=r:this.maxWidth=t.getLayoutValue("text-max-width",e),r=t.getLayoutProperty("text-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("text-offset",e),r=t.getLayoutProperty("text-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("text-padding",e),r=t.getLayoutProperty("text-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("text-rotate",e),r=t.getLayoutProperty("text-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("text-size",e),r=t.getLayoutProperty("text-writing-mode"),r?.isDataDriven?this._writingModeProp=r:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Ut(t){const e=t?.getGeometry();if(null==e)return null;let i=1/0,n=1/0,s=-1/0,a=-1/0;for(const t of e)if(t)for(const e of t)i=Math.min(i,e.x),n=Math.min(n,e.y),s=Math.max(s,e.x),a=Math.max(a,e.y);return(0,r.fA)(i,n,s,a)}},5408:(t,e,i)=>{i.d(e,{ih:()=>n,vA:()=>r});const r=4096,n=8},6774:(t,e,i)=>{i.d(e,{O3:()=>s,Ox:()=>a,bR:()=>r});class r{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new r(t[0],t[1])}clone(){return new r(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,r=this.y;return this.x=i*t-r*e,this.y=i*e+r*t,this}rotateReverse(t,e){const i=this.x,r=this.y;return this.x=i*t+r*e,this.y=-i*e+r*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static sub(t,e){return new r(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,r=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=n,this._tileSize=512*r,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new r(t,e),this._firstPt=new r(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),s=new r(t,e),a=r.distance(this._prevPt,s);let o,l,u,h,c,y,p,f;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,l=s,u=this._intersect(l,o),this._start=this._dist+a*(1-this._r),this._lineTo(u.x,u.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,o=s,u=this._intersect(l,o),this._lineTo(u.x,u.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=s;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(h=(this._xmin-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(h=(this._xmax-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(h=(this._ymin-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(h=(this._ymax-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymax))),0===i.length)c?y?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):y?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+a*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+a*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=a,this._prevIsIn=i,this._prevPt=s}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let r=i.length;for(;r>=4&&(i[0].x===i[1].x&&i[0].x===i[r-2].x||i[0].y===i[1].y&&i[0].y===i[r-2].y);)i.pop(),i[0].x=i[r-2].x,i[0].y=i[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let r=0;r<e;r++)i.push({line:t[r],start:this._starts[r]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,n,s;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,s=(n-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),n=t.y+s*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const r=(i-t.x)/(e.x-t.x),a=(n-t.y)/(e.y-t.y);r<a?(s=r,n=t.y+r*(e.y-t.y)):(s=a,i=t.x+a*(e.x-t.x))}return this._r=s,new r(i,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let n,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new r(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const i=n.x===t,a=n.y===e;if(i&&a)return;this._isH&&i||this._isV&&a?(n.x=t,n.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new r(t,e)),this._isH=i,this._isV=a)}else this._line.push(new r(t,e))}}class a{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new r(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new r(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const r=-e,n=t+e,s=-e,a=t+e,l=[],u=[],h=i.length;for(let t=0;t<h;++t){const e=i[t];if(!e||e.length<2)continue;let o,h=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],h.x===o.x&&(h.x<=r&&(h.y>o.y?(l.push(t),l.push(i),l.push(0),l.push(-1)):(u.push(t),u.push(i),u.push(0),u.push(-1))),h.x>=n&&(h.y<o.y?(l.push(t),l.push(i),l.push(1),l.push(-1)):(u.push(t),u.push(i),u.push(1),u.push(-1)))),h.y===o.y&&(h.y<=s&&(h.x<o.x?(l.push(t),l.push(i),l.push(2),l.push(-1)):(u.push(t),u.push(i),u.push(2),u.push(-1))),h.y>=a&&(h.x>o.x?(l.push(t),l.push(i),l.push(3),l.push(-1)):(u.push(t),u.push(i),u.push(3),u.push(-1)))),h=o}if(0===l.length||0===u.length)return;o.fillParent(i,u,l),o.fillParent(i,l,u);const c=[];o.calcDeltas(c,u,l),o.calcDeltas(c,l,u),o.addDeltas(c,i)}static fillParent(t,e,i){const r=i.length,n=e.length;for(let s=0;s<n;s+=4){const n=e[s],a=e[s+1],o=e[s+2],u=t[n][a-1],h=t[n][a];let c=8092,y=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==o)continue;const r=i[e],n=i[e+1],s=t[r][n-1],a=t[r][n];switch(o){case 0:case 1:if(l(u.y,s.y,a.y)&&l(h.y,s.y,a.y)){const t=Math.abs(a.y-s.y);t<c&&(c=t,y=e)}break;case 2:case 3:if(l(u.x,s.x,a.x)&&l(h.x,s.x,a.x)){const t=Math.abs(a.x-s.x);t<c&&(c=t,y=e)}}}e[s+3]=y}}static calcDeltas(t,e,i){const r=e.length;for(let n=0;n<r;n+=4){const r=[],s=o.calcDelta(n,e,i,r);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(s)}}static calcDelta(t,e,i,r){const n=e[t+3];if(-1===n)return 0;const s=r.length;return s>1&&r[s-2]===n?0:(r.push(n),o.calcDelta(n,i,e,r)+1)}static addDeltas(t,e){const i=t.length;let r=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>r&&(r=i)}for(let n=0;n<i;n+=4){const i=e[t[n]],s=t[n+1],a=r-t[n+3];switch(t[n+2]){case 0:i[s-1].x-=a,i[s].x-=a,1===s&&(i[i.length-1].x-=a),s===i.length-1&&(i[0].x-=a);break;case 1:i[s-1].x+=a,i[s].x+=a,1===s&&(i[i.length-1].x+=a),s===i.length-1&&(i[0].x+=a);break;case 2:i[s-1].y-=a,i[s].y-=a,1===s&&(i[i.length-1].y-=a),s===i.length-1&&(i[0].y-=a);break;case 3:i[s-1].y+=a,i[s].y+=a,1===s&&(i[i.length-1].y+=a),s===i.length-1&&(i[0].y+=a)}}}}const l=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},13195:(t,e,i)=>{i.d(e,{GW:()=>m,IU:()=>b,Jo:()=>a,MG:()=>s,Wh:()=>y,cP:()=>T,os:()=>h,p6:()=>_,pJ:()=>o,ru:()=>v,s3:()=>w,wV:()=>f,yM:()=>E,z0:()=>p});var r=i(95108),n=i(6774);const s=Number.POSITIVE_INFINITY,a=Math.PI,o=2*a,l=128/a,u=256/360,h=a/180,c=1/Math.LN2;function y(t,e){return(t%=e)>=0?t:t+e}function p(t){return y(t*l,256)}function f(t){return y(t*u,256)}function _(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}const g=8,d=14,x=16;function b(t){return g+Math.max((t-d)*x,0)}function w(t,e,i){let r,n,s,a=0;for(const o of i){r=o.length;for(let i=1;i<r;++i)n=o[i-1],s=o[i],n.y>e!=s.y>e&&((s.x-n.x)*(e-n.y)-(s.y-n.y)*(t-n.x)>0?a++:a--)}return 0!==a}function v(t,e,i,n){let s,a,o,l;const u=n*n;for(const n of i){const i=n.length;if(!(i<2)){s=n[0].x,a=n[0].y;for(let h=1;h<i;++h){if(o=n[h].x,l=n[h].y,(0,r.Ng)(t,e,s,a,o,l)<u)return!0;s=o,a=l}}}return!1}function T(t,e){if(0===e||Number.isNaN(e))return t;const i=[],r=new n.bR(0,0),s=new n.bR(0,0),a=new n.bR(0,0);for(let o=0;o<t.length;o++){const l=t[o],u=[];for(let t=0;t<l.length;t++){const i=l[t-1],o=l[t],h=l[t+1];0===t?r.setCoords(0,0):r.assignSub(o,i).normalize().rightPerpendicular(),t===l.length-1?s.setCoords(0,0):s.assignSub(h,o).normalize().rightPerpendicular(),a.assignAdd(r,s).normalize();const c=a.x*s.x+a.y*s.y;0!==c&&a.scale(1/c),u.push(n.bR.add(o,a.scale(e)))}i.push(u)}return i}function E(t,e,i,r){const s=new n.bR(t[0],t[1]);if(s.scale(r),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),r=Math.sin(t);s.rotate(e,r)}return s}},45013:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(4718),n=i(4264);class s{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,r.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,i)=>this._create(t,e,i)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){const e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){const i=this.getStyleLayerByUID(t),r=0!==i?.getLayoutValue("symbol-placement",e);let n=i?.getLayoutValue("icon-rotation-alignment",e);2===n&&(n=r?0:1);let s=i?.getLayoutValue("text-rotation-alignment",e);2===s&&(s=r?0:1);const a=i?.getPaintValue("icon-translate",e),o=i?.getPaintValue("icon-translate-anchor",e),l=i?.getPaintValue("text-translate",e),u=i?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:i?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:i?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:i?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:i?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:n,textRotationAlignment:s,iconTranslateAnchor:o,iconTranslate:a,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){const e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){const e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;const i=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let r,n=!0;const a=this._layerByName[t.id];if(a){const o=this.layers.indexOf(a);e||(e=o),e===o?(n=!1,r=s._recreateLayer(t,a),this.layers[e]=r,i.layers[e]=t):(this.layers.splice(o,1),i.layers.splice(o,1),r=this._create(t,e,this.layers),this.layers.splice(e,0,r),i.layers.splice(e,0,t))}else r=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(r),i.layers.push(t)):(this.layers.splice(e,0,r),i.layers.splice(e,0,t));this._layerByName[t.id]=r,this._uidToLayer.set(r.uid,r),n&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);const i=this.layers.indexOf(e);this.layers.splice(i,1),this._style.layers.splice(i,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){const e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:i.layout,paint:e},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].paint=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setLayoutProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:e,paint:i.paint},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].layout=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setStyleLayerVisibility(t,e){const i=this._layerByName[t];if(!i)return;const r=i.layout||{};r.visibility=e;const n={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:r,paint:i.paint},a=s._recreateLayer(n,i),o=this.layers.indexOf(i);this.layers[o]=a,this._style.layers[o].layout=r,this._layerByName[i.id]=a,this._uidToLayer.set(i.uid,a)}getStyleLayerVisibility(t){const e=this._layerByName[t];if(!e)return"none";const i=e.layout;return i?.visibility??"visible"}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let i=0;i<t.length;i++)t[i].z=1-(1+i)*e}_identifyRefLayers(){const t=[],e=[];let i=0;for(const r of this.layers){const n=r.layout;if(1===r.type){const e=r;let s=r.source+"|"+r.sourceLayer;s+="|"+(n?.visibility??""),s+="|"+r.minzoom,s+="|"+r.maxzoom,s+="|"+JSON.stringify(r.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(s+="|"+i),t.push({key:s,layer:r})}else if(2===r.type){const t=r,s=r.paint,a=null!=s&&(null!=s["line-pattern"]||null!=s["line-dasharray"]);let o=r.source+"|"+r.sourceLayer;o+="|"+(n?.visibility??""),o+="|"+r.minzoom,o+="|"+r.maxzoom,o+="|"+JSON.stringify(r.filter),o+="|"+(void 0!==n?n["line-cap"]:""),o+="|"+(void 0!==n?n["line-join"]:""),(t.hasDataDrivenLine||a)&&(o+="|"+i),e.push({key:o,layer:r})}++i}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,i;t.sort((t,e)=>t.key<e.key?-1:t.key>e.key?1:0);const r=t.length;for(let n=0;n<r;n++){const s=t[n];if(s.key===e)s.layer.refLayerId=i;else if(e=s.key,i=s.layer.id,1===s.layer.type){if(!s.layer.getPaintProperty("fill-outline-color"))for(let a=n+1;a<r;a++){const r=t[a];if(r.key!==e)break;if(r.layer.getPaintProperty("fill-outline-color")){t[n]=r,t[a]=s,i=r.layer.id;break}}}else if(2===s.layer.type){let a=s.layer;for(let o=n+1;o<r;o++){const r=t[o];if(r.key!==e)break;const l=r.layer;(a.canUseThinTessellation&&!l.canUseThinTessellation||!a.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(a=l,t[n]=r,t[o]=s,i=r.layer.id)}}}}_create(t,e,i){const r=1-(1+e)*(1/(i.length+1)),s=this._runningId++;switch(t.type){case"background":return new n.lf(0,t,r,s);case"fill":return new n.A4(1,t,r,s);case"line":return new n.tU(2,t,r,s);case"symbol":return new n.V1(3,t,r,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,r,s)}return null}static _recreateLayer(t,e){switch(t.type){case"background":return new n.lf(0,t,e.z,e.uid);case"fill":return new n.A4(1,t,e.z,e.uid);case"line":return new n.tU(2,t,e.z,e.uid);case"symbol":return new n.V1(3,t,e.z,e.uid);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,e.z,e.uid)}return null}}},63907:(t,e,i)=>{i.d(e,{$0:()=>c,CQ:()=>m,Fq:()=>f,H0:()=>s,SB:()=>l,WR:()=>r,XN:()=>a,iE:()=>o,ld:()=>u,nI:()=>_,pe:()=>n,r6:()=>y,vt:()=>h,yI:()=>p});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},a=Object.values(s),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},h={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},c=0,y=36064,p=36065,f=36066,_=33306,m={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},68197:(t,e,i)=>{i.d(e,{A:()=>u});var r=i(40876),n=i(4576),s=i(34727),a=i(56507);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class u{static blendColors(t,e,i,r=new u){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){const i=(0,r.lT)(t);return i?u.fromArray(i,e):null}static fromHex(t,e=new u){const i=(0,r.oW)(t);return i?u.fromArray(i,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,r.Eq)(t);return i?u.fromArray(i,e):null}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),i=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},69397:(t,e,i)=>{i.d(e,{$B:()=>n,Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>f,ez:()=>y,lM:()=>a,qK:()=>c});var r=i(34275);function n(t){return 32+t.length}const s=16;function a(t){if(!t)return 0;let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=y;for(let r=0;r<e;r++)i+=l(t[r]);return i}(t);let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return n(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+p:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return y+t.length*e}const c=32,y=16,p=145,f=64},74038:(t,e,i)=>{i.d(e,{_:()=>r});class r{constructor(t,e,i,r,n,s=!1,a=0,o=!1){this.name=t,this.count=e,this.type=i,this.offset=r,this.stride=n,this.normalized=s,this.divisor=a,this.integer=o}}},76213:(t,e,i)=>{i.d(e,{C2:()=>a,CQ:()=>r,DY:()=>n,GR:()=>_,Gh:()=>l,MZ:()=>y,TB:()=>f,U5:()=>o,_M:()=>u,cp:()=>m,eG:()=>s,fq:()=>p,hM:()=>c,ie:()=>h});const r=512,n=29,s=24,a=4,o=6,l=1.05,u=3,h=3,c=4,y=1,p=10,f=256,_=32,m=512},80081:(t,e,i)=>{i.d(e,{A:()=>r}),i(44208);class r{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}static i1616to32(t,e){return 65535&t|e<<16}static i8888to32(t,e,i,r){return 255&t|(255&e)<<8|(255&i)<<16|r<<24}static i8816to32(t,e,i){return 255&t|(255&e)<<8|i<<16}}},85079:(t,e,i)=>{i.d(e,{Xk:()=>n,_u:()=>s});var r=i(21818);function n(t){let e=0;return(0,r.z)(new Map(t.map(({name:t,count:i})=>{const r=[t,e];return 16===i?e+=4:9===i?e+=3:++e,r})))}function s(t){const e=new Map;let i=0;return t.forEach(t=>t.forEach(({name:t,count:r})=>{e.set(t,i),16===r?i+=4:9===r?i+=3:++i})),e}},85334:(t,e,i)=>{i.d(e,{$:()=>g,IB:()=>a,Iy:()=>w,N2:()=>d,RH:()=>b,ZD:()=>x});var r=i(68197),n=i(4576),s=i(4718);function a(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}i(34727),i(87317),i(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function y(t,e){const i=[];let r,n;if(t[0].length!==e.length)throw new Error("dimensions do not match");const s=t.length,a=t[0].length;let o=0;for(r=0;r<s;r++){for(o=0,n=0;n<a;n++)o+=t[r][n]*e[n];i.push(o)}return i}function p(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),i=y(h,e);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function f(t){const e=y(c,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function _(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function m(t){const e=t.l,i=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function g(t){return a(t)?t:u(t)?function(t){return f(m(function(t){const e=t.l,i=t.c,r=t.h;return{l:e,a:i*Math.cos(r),b:i*Math.sin(r)}}(t)))}(t):l(t)?function(t){return f(m(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?f(t):o(t)?function(t){const e=(t.h+360)%360/60,i=t.s/100,r=t.v/100*255,n=r*i,s=n*(1-Math.abs(e%2-1));let a;switch(Math.floor(e)){case 0:a={r:n,g:s,b:0};break;case 1:a={r:s,g:n,b:0};break;case 2:a={r:0,g:n,b:s};break;case 3:a={r:0,g:s,b:n};break;case 4:a={r:s,g:0,b:n};break;case 5:case 6:a={r:n,g:0,b:s};break;default:a={r:0,g:0,b:0}}return a.r=Math.round(a.r+r-n),a.g=Math.round(a.g+r-n),a.b=Math.round(a.b+r-n),a}(t):t}function d(t){return o(t)?t:function(t){const e=t.r,i=t.g,r=t.b,n=Math.max(e,i,r),s=n-Math.min(e,i,r);let a=n,o=0===s?0:n===e?(i-r)/s%6:n===i?(r-e)/s+2:(e-i)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(g(t))}function x(t){return l(t)?t:function(t){return _(p(t))}(g(t))}function b(t){return u(t)?t:function(t){return function(t){const e=t.l,i=t.a,r=t.b,n=Math.sqrt(i*i+r*r);let s=Math.atan2(r,i);return s=s>0?s:s+2*Math.PI,{l:e,c:n,h:s}}(_(p(t)))}(g(t))}function w(t,e,i={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new r.A(t):t)).length||1===e){const i=[],r=t[0];for(let t=0;t<e;t++)i.push(r.clone());return i}if(i.shuffle&&(t=(0,n.k4)((0,s.o8)(t),i.seed)),t.length>=e){const i=[],r=(t.length-1)/(e-1);for(let n=0;n<e;n++){const e=Math.round(n*r);i.push(t[e].clone())}return i}return function(t,e,i={}){const r=[],s=t.length-1,a=Math.ceil((e-t.length)/s);t:for(let n=0;n<s;n++){const s=t[n],o=t[n+1];for(let n=1;n<=a;n++){const l=n/(a+1);if(r.push(T(s,o,l,i)),r.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,n.k4)(r,i.seed??1)]}(t,e,i)}const v=(t,e)=>{const i=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+i))};function T(t,e,i,s={}){const a=t.r,o=t.g,l=t.b,u=e.r,h=e.g,c=e.b,y=Math.round(a+(u-a)*i),p=Math.round(o+(h-o)*i),f=Math.round(l+(c-l)*i);if(!s.offset)return new r.A([y,p,f]);const _=(0,n.Mo)(s.seed);return new r.A([v(y,_),v(p,_),v(f,_)])}}}]);
|