@arcgis/core 5.2.0-next.112 → 5.2.0-next.113
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/Ground.d.ts +4 -5
- package/Ground.js +1 -1
- package/arcgisGlobal.d.ts +5 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/01ca17092545d72be7b6.js +1 -0
- package/assets/esri/core/workers/chunks/{f5a988bb850f7a7af143.js → 05b373a663cb5d4d722f.js} +1 -1
- package/assets/esri/core/workers/chunks/{36f8caeb574dcd5c0ed5.js → 0b727d7bf3e36e146725.js} +1 -1
- package/assets/esri/core/workers/chunks/0c65862e3dd810015491.js +1 -0
- package/assets/esri/core/workers/chunks/0e3e58ba8e2d358121a5.js +1 -0
- package/assets/esri/core/workers/chunks/0edebc6c516f0b9dac7b.js +1 -0
- package/assets/esri/core/workers/chunks/1004e77593dfa506cd5d.js +1 -0
- package/assets/esri/core/workers/chunks/184942ea601237c8241a.js +1 -0
- package/assets/esri/core/workers/chunks/20de0ea9fa08a6545978.js +1 -0
- package/assets/esri/core/workers/chunks/214d63813d268afc265d.js +1 -0
- package/assets/esri/core/workers/chunks/22e85819e23202a8ba90.js +1 -0
- package/assets/esri/core/workers/chunks/{6e677505d257e0848075.js → 23f9ab77e4e263f82636.js} +1 -1
- package/assets/esri/core/workers/chunks/28a04887ecaee5445d14.js +1 -0
- package/assets/esri/core/workers/chunks/{2fc5c1504691badc7792.js → 2ac2d0a7623dd060c144.js} +1 -1
- package/assets/esri/core/workers/chunks/2afce71e8b6ae86e0792.js +1 -0
- package/assets/esri/core/workers/chunks/36792b8a85e88044cb49.js +1 -0
- package/assets/esri/core/workers/chunks/36a7e19f43517aa94577.js +1 -0
- package/assets/esri/core/workers/chunks/{6e6cdff4bbe1ff2f44ac.js → 3ab25279aaa30f035038.js} +1 -1
- package/assets/esri/core/workers/chunks/{e6dae16208f6978b59e0.js → 3b499cfc89c8f87cdb20.js} +1 -1
- package/assets/esri/core/workers/chunks/445b0ca1b70730c9a2e6.js +1 -0
- package/assets/esri/core/workers/chunks/{24673aac70d6c949b6fa.js → 4bf2cc4d092601ff2b86.js} +1 -1
- package/assets/esri/core/workers/chunks/{d45483dd0dc2853b18b7.js → 4bfd63f3cf9208eb839b.js} +33 -33
- package/assets/esri/core/workers/chunks/501df20cdd09384f6ee2.js +1 -0
- package/assets/esri/core/workers/chunks/510a190a6f0a60ae38c3.js +1 -0
- package/assets/esri/core/workers/chunks/{89a785f8b61263e2d592.js → 552c92b01a5f02a115c5.js} +1 -1
- package/assets/esri/core/workers/chunks/564fdf0d663b773806cc.js +1 -0
- package/assets/esri/core/workers/chunks/{d9270f4935eb0d044db3.js → 57328c206f1e699ac06f.js} +1 -1
- package/assets/esri/core/workers/chunks/{50951fb13013b11b8a24.js → 58e62c8ce1292f4d3b06.js} +1 -1
- package/assets/esri/core/workers/chunks/5aee7739afb5160d4ace.js +1 -0
- package/assets/esri/core/workers/chunks/5b9925f23d4b10a7087e.js +1 -0
- package/assets/esri/core/workers/chunks/5f79ba5639067f734791.js +1 -0
- package/assets/esri/core/workers/chunks/{b013b70e40dfb6ce013e.js → 60c61f34733063730386.js} +1 -1
- package/assets/esri/core/workers/chunks/62b1f94f4fa978d4da48.js +1 -0
- package/assets/esri/core/workers/chunks/6b264006b96cbf93d8ed.js +1 -0
- package/assets/esri/core/workers/chunks/6b9d29ca568590358478.js +1 -0
- package/assets/esri/core/workers/chunks/{7c5310e0104c22da0261.js → 6c7cb7974969e3167f2b.js} +1 -1
- package/assets/esri/core/workers/chunks/6c82cbcd504c711a7450.js +1 -0
- package/assets/esri/core/workers/chunks/{e98b785e8f4edc8bd3ff.js → 6eceeca33fac8e900d9d.js} +1 -1
- package/assets/esri/core/workers/chunks/7232fc11b23777b6be94.js +1 -0
- package/assets/esri/core/workers/chunks/726ca458b98bb4334431.js +1 -0
- package/assets/esri/core/workers/chunks/785206da3962ba23de16.js +1 -0
- package/assets/esri/core/workers/chunks/{1c70620f40be02f532b5.js → 7b169eabafcc03bfaee6.js} +1 -1
- package/assets/esri/core/workers/chunks/7bbc3d22383388d11345.js +1 -0
- package/assets/esri/core/workers/chunks/{082069f80eee0407b828.js → 7edf57e31ff07af9032b.js} +1 -1
- package/assets/esri/core/workers/chunks/83ed38468e316302b157.js +1 -0
- package/assets/esri/core/workers/chunks/85c876ee9e63d5732937.js +1 -0
- package/assets/esri/core/workers/chunks/8f0ecf4d06ec7b67d4ed.js +1 -0
- package/assets/esri/core/workers/chunks/8f1c5f5e70d4b33d021d.js +1 -0
- package/assets/esri/core/workers/chunks/{a1916bca1af5c65be4b0.js → 90ab3c47138875070a53.js} +1 -1
- package/assets/esri/core/workers/chunks/{10389c87d9c6a43363ce.js → 917dec9c004218c58950.js} +1 -1
- package/assets/esri/core/workers/chunks/91f451b98e0f696043df.js +1 -0
- package/assets/esri/core/workers/chunks/943d0026ca4d49eb3ac2.js +1 -0
- package/assets/esri/core/workers/chunks/982a396bd4fffa62e911.js +1 -0
- package/assets/esri/core/workers/chunks/98a5327fd96d9542b39f.js +1 -0
- package/assets/esri/core/workers/chunks/9b9a60f1e0c48aa701f0.js +1 -0
- package/assets/esri/core/workers/chunks/9d92e6f0beed9a8580fa.js +1 -0
- package/assets/esri/core/workers/chunks/9df379041e8860fe7f01.js +1 -0
- package/assets/esri/core/workers/chunks/{1e8ceb4a4b28625236e3.js → a42505b978d54d36d3b6.js} +1 -1
- package/assets/esri/core/workers/chunks/{bfbe6ff786435fe1e7cf.js → a86a4e550a92f770d6d5.js} +1 -1
- package/assets/esri/core/workers/chunks/{a34eee4c9d4c1c2b8c49.js → ab60f3bc18b5ea504f70.js} +1 -1
- package/assets/esri/core/workers/chunks/{18b9ec6ba7a6c0fa2ac6.js → b1880d9f5eafd50ce84b.js} +1 -1
- package/assets/esri/core/workers/chunks/{777fc163530448eea13e.js → b4222152efaf73b37b53.js} +1 -1
- package/assets/esri/core/workers/chunks/b6ca73c1384f07b30b74.js +1 -0
- package/assets/esri/core/workers/chunks/bb4cbf6b7c35e8c78cc7.js +1 -0
- package/assets/esri/core/workers/chunks/bb831d23422acfb00ae2.js +1 -0
- package/assets/esri/core/workers/chunks/c0855be20ffcd52c7026.js +1 -0
- package/assets/esri/core/workers/chunks/{a0f742fd947104662d37.js → c6277236ec47586dca00.js} +1 -1
- package/assets/esri/core/workers/chunks/{3be33a129d3ae7dc4f06.js → caf38cf4d8542fb11c46.js} +1 -1
- package/assets/esri/core/workers/chunks/{2728eda8178e02fbca47.js → cd0f5cd0fefe7f49e3d8.js} +1 -1
- package/assets/esri/core/workers/chunks/{48a53bfeef11c32dadcc.js → d25fb32a233d2128afbe.js} +1 -1
- package/assets/esri/core/workers/chunks/d629708bf23da24ee523.js +1 -0
- package/assets/esri/core/workers/chunks/db141122060d8d9b38da.js +1 -0
- package/assets/esri/core/workers/chunks/dc1944a7601b518a9c48.js +1 -0
- package/assets/esri/core/workers/chunks/{573ee2e59d26bc75201e.js → dc8670f32bb0b93c1473.js} +1 -1
- package/assets/esri/core/workers/chunks/e1f2b07be33e33117313.js +1 -0
- package/assets/esri/core/workers/chunks/e52f30dfb7c82491a7f2.js +1 -0
- package/assets/esri/core/workers/chunks/e5906b28b981199fd489.js +1 -0
- package/assets/esri/core/workers/chunks/{b3293ee9f221423a6825.js → e611e452f04a9ce64cf8.js} +1 -1
- package/assets/esri/core/workers/chunks/{0f20c458f873564faff2.js → ec4f887153c24ab83f2c.js} +1 -1
- package/assets/esri/core/workers/chunks/{707b4ae689c4329cad3b.js → f40ceb5e03c699605302.js} +1 -1
- package/assets/esri/core/workers/chunks/{547a073c789fdfb78310.js → f42243c62dd0b6993816.js} +1 -1
- package/assets/esri/core/workers/chunks/f91cab9904020cf25d50.js +1 -0
- package/assets/esri/core/workers/chunks/f9b29d2ce1cd31c0fce1.js +1 -0
- package/assets/esri/core/workers/chunks/fdf5ceffec9d5185953d.js +1 -0
- package/assets/esri/views/3d/environment/resources/milkyway-band.ktx2 +0 -0
- package/chunks/DeepSky.glsl.js +1 -1
- package/chunks/FocusArea.glsl.js +1 -1
- package/chunks/GaussianSplatDepth.glsl.js +3 -3
- package/chunks/RibbonLine.glsl.js +15 -13
- package/config.js +1 -1
- package/geometry/Extent.js +1 -1
- package/geometry/operators/affineTransformOperator.d.ts +9 -3
- package/geometry/operators/affineTransformOperator.js +1 -1
- package/geometry/operators/alphaShapeOperator.d.ts +14 -4
- package/geometry/operators/alphaShapeOperator.js +1 -1
- package/geometry/operators/areaOperator.d.ts +11 -3
- package/geometry/operators/areaOperator.js +1 -1
- package/geometry/operators/autoCompleteOperator.d.ts +6 -2
- package/geometry/operators/autoCompleteOperator.js +1 -1
- package/geometry/operators/boundaryOperator.d.ts +9 -3
- package/geometry/operators/boundaryOperator.js +1 -1
- package/geometry/operators/bufferOperator.d.ts +19 -5
- package/geometry/operators/bufferOperator.js +1 -1
- package/geometry/operators/centroidOperator.d.ts +6 -2
- package/geometry/operators/centroidOperator.js +1 -1
- package/geometry/operators/clipOperator.d.ts +9 -3
- package/geometry/operators/clipOperator.js +1 -1
- package/geometry/operators/containsOperator.d.ts +9 -3
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/convexHullOperator.d.ts +17 -5
- package/geometry/operators/convexHullOperator.js +1 -1
- package/geometry/operators/crossesOperator.d.ts +9 -3
- package/geometry/operators/crossesOperator.js +1 -1
- package/geometry/operators/cutOperator.d.ts +6 -2
- package/geometry/operators/cutOperator.js +1 -1
- package/geometry/operators/densifyOperator.d.ts +14 -4
- package/geometry/operators/densifyOperator.js +1 -1
- package/geometry/operators/differenceOperator.d.ts +9 -3
- package/geometry/operators/differenceOperator.js +1 -1
- package/geometry/operators/disjointOperator.d.ts +9 -3
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/distanceOperator.d.ts +11 -3
- package/geometry/operators/distanceOperator.js +1 -1
- package/geometry/operators/equalsOperator.d.ts +9 -3
- package/geometry/operators/equalsOperator.js +1 -1
- package/geometry/operators/extendOperator.d.ts +11 -3
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/generalizeOperator.d.ts +14 -4
- package/geometry/operators/generalizeOperator.js +1 -1
- package/geometry/operators/geodesicBufferOperator.d.ts +25 -7
- package/geometry/operators/geodesicBufferOperator.js +1 -1
- package/geometry/operators/geodesicProximityOperator.d.ts +28 -8
- package/geometry/operators/geodesicProximityOperator.js +1 -1
- package/geometry/operators/geodeticAreaOperator.d.ts +17 -5
- package/geometry/operators/geodeticAreaOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.d.ts +20 -6
- package/geometry/operators/geodeticDensifyOperator.js +1 -1
- package/geometry/operators/geodeticDistanceOperator.d.ts +17 -5
- package/geometry/operators/geodeticDistanceOperator.js +1 -1
- package/geometry/operators/geodeticLengthOperator.d.ts +17 -5
- package/geometry/operators/geodeticLengthOperator.js +1 -1
- package/geometry/operators/geodeticUtilsOperator.d.ts +17 -5
- package/geometry/operators/geodeticUtilsOperator.js +1 -1
- package/geometry/operators/graphicBufferOperator.d.ts +11 -3
- package/geometry/operators/graphicBufferOperator.js +1 -1
- package/geometry/operators/integrateOperator.d.ts +6 -2
- package/geometry/operators/integrateOperator.js +1 -1
- package/geometry/operators/intersectionOperator.d.ts +12 -4
- package/geometry/operators/intersectionOperator.js +1 -1
- package/geometry/operators/intersectsOperator.d.ts +9 -3
- package/geometry/operators/intersectsOperator.js +1 -1
- package/geometry/operators/isNearOperator.d.ts +11 -3
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/json/bufferOperator.js +1 -1
- package/geometry/operators/json/containsOperator.js +1 -1
- package/geometry/operators/json/convexHullOperator.js +1 -1
- package/geometry/operators/json/crossesOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/json/generalizeOperator.js +1 -1
- package/geometry/operators/json/geodesicBufferOperator.js +1 -1
- package/geometry/operators/json/graphicBufferOperator.js +1 -1
- package/geometry/operators/json/intersectionOperator.js +1 -1
- package/geometry/operators/json/intersectsOperator.js +1 -1
- package/geometry/operators/json/lengthOperator.js +1 -1
- package/geometry/operators/json/offsetOperator.js +1 -1
- package/geometry/operators/json/overlapsOperator.js +1 -1
- package/geometry/operators/json/projectOperator.js +1 -1
- package/geometry/operators/json/simplifyOperator.js +1 -1
- package/geometry/operators/json/simplifyOperatorOGC.js +1 -1
- package/geometry/operators/json/touchesOperator.js +1 -1
- package/geometry/operators/json/unionOperator.js +1 -1
- package/geometry/operators/json/withinOperator.js +1 -1
- package/geometry/operators/labelPointOperator.d.ts +9 -3
- package/geometry/operators/labelPointOperator.js +1 -1
- package/geometry/operators/lengthOperator.d.ts +11 -3
- package/geometry/operators/lengthOperator.js +1 -1
- package/geometry/operators/linesToPolygonsOperator.d.ts +6 -2
- package/geometry/operators/linesToPolygonsOperator.js +1 -1
- package/geometry/operators/locateBetweenOperator.d.ts +6 -2
- package/geometry/operators/locateBetweenOperator.js +1 -1
- package/geometry/operators/minimumBoundingCircleOperator.d.ts +14 -4
- package/geometry/operators/minimumBoundingCircleOperator.js +1 -1
- package/geometry/operators/multiPartToSinglePartOperator.d.ts +11 -3
- package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
- package/geometry/operators/offsetOperator.d.ts +14 -4
- package/geometry/operators/offsetOperator.js +1 -1
- package/geometry/operators/overlapsOperator.d.ts +9 -3
- package/geometry/operators/overlapsOperator.js +1 -1
- package/geometry/operators/polygonOverlayOperator.d.ts +11 -3
- package/geometry/operators/polygonOverlayOperator.js +1 -1
- package/geometry/operators/polygonSlicerOperator.d.ts +22 -6
- package/geometry/operators/polygonSlicerOperator.js +1 -1
- package/geometry/operators/projectOperator.d.ts +15 -5
- package/geometry/operators/projectOperator.js +1 -1
- package/geometry/operators/proximityOperator.d.ts +22 -6
- package/geometry/operators/proximityOperator.js +1 -1
- package/geometry/operators/relateOperator.d.ts +12 -4
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/reshapeOperator.d.ts +6 -2
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/shapePreservingProjectOperator.d.ts +20 -6
- package/geometry/operators/shapePreservingProjectOperator.js +1 -1
- package/geometry/operators/simplifyOGCOperator.d.ts +3 -1
- package/geometry/operators/simplifyOGCOperator.js +1 -1
- package/geometry/operators/simplifyOperator.d.ts +12 -4
- package/geometry/operators/simplifyOperator.js +1 -1
- package/geometry/operators/singlePartToMultiPartOperator.js +1 -1
- package/geometry/operators/support/deprecatedOperator.js +2 -0
- package/geometry/operators/symmetricDifferenceOperator.d.ts +9 -3
- package/geometry/operators/symmetricDifferenceOperator.js +1 -1
- package/geometry/operators/touchesOperator.d.ts +9 -3
- package/geometry/operators/touchesOperator.js +1 -1
- package/geometry/operators/unionOperator.d.ts +9 -3
- package/geometry/operators/unionOperator.js +1 -1
- package/geometry/operators/withinOperator.d.ts +9 -3
- package/geometry/operators/withinOperator.js +1 -1
- package/geometry/support/intersectsBase.js +1 -1
- package/geometry/support/normalizeUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
- package/layers/list/BasemapItemCollection.d.ts +40 -14
- package/layers/list/BasemapItemCollection.js +1 -1
- package/layers/list/CatalogItemCollection.d.ts +29 -11
- package/layers/list/CatalogItemCollection.js +1 -1
- package/layers/list/Item.d.ts +66 -122
- package/layers/list/Item.js +1 -1
- package/layers/list/ItemPanel.d.ts +23 -34
- package/layers/list/LayerItemCollection.d.ts +33 -43
- package/layers/list/LayerItemCollection.js +1 -1
- package/layers/list/TableItem.d.ts +42 -53
- package/layers/list/TableItem.js +1 -1
- package/layers/list/TableItemCollection.d.ts +25 -55
- package/layers/list/TableItemCollection.js +1 -1
- package/layers/list/TableItemPanel.d.ts +25 -23
- package/layers/list/support/layerListUtils.js +1 -1
- package/layers/list/types.d.ts +158 -37
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/support/FeatureFilter.d.ts +2 -1
- package/layers/support/FeatureFilter.js +1 -1
- package/package.json +2 -2
- package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.d.ts +0 -1
- package/support/revision.js +1 -1
- package/symbols/LineSymbol3DLayer.d.ts +9 -3
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/OverrideHelper.js +1 -1
- package/symbols/cim/Rasterizer.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/dashUtils.js +2 -0
- package/symbols/cim/effects/EffectDashes.js +1 -1
- package/symbols/cim/fromCIMFontStyle.js +2 -0
- package/symbols/cim/richTextUtils.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/symbols/patterns/LinePattern3D.d.ts +10 -4
- package/symbols/patterns/LinePattern3D.js +1 -1
- package/symbols/patterns/LineTemplatePattern3D.d.ts +48 -0
- package/symbols/patterns/LineTemplatePattern3D.js +2 -0
- package/symbols/patterns/utils.js +1 -1
- package/symbols/support/Symbol3DOutline.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/decorGlyphRect.js +2 -0
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
- package/views/2d/engine/webgl/effects/highlight/MultiHighlightGradient.js +1 -1
- package/views/2d/engine/webgl/hashMosaic.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ShaderHighlight.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/GraphicsLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/MapNotesLayerView2D.js +1 -1
- package/views/2d/layers/RouteLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
- package/views/2d/layers/features/processor/AggregateStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/processor/bins/BinLevelState.js +1 -1
- package/views/2d/layers/features/processor/clusters/ClusterLevelState.js +1 -1
- package/views/2d/layers/features/processor/tracks/TrackLevelState.js +1 -1
- package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/graphics/AGraphicContainer.js +1 -1
- package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
- package/views/2d/layers/support/FilterSchema.js +2 -0
- package/views/2d/layers/support/HighlightRegistry.js +2 -0
- package/views/2d/layers/support/annodime/dimensionUtils.js +1 -1
- package/views/2d/layers/support/util.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
- package/views/3d/navigation/Navigation3D.d.ts +16 -0
- package/views/3d/navigation/Navigation3D.js +2 -0
- package/views/3d/navigation/modes/DefaultNavigationMode3D.d.ts +4 -0
- package/views/3d/navigation/modes/DefaultNavigationMode3D.js +2 -0
- package/views/3d/navigation/modes/GroundNavigationMode3D.d.ts +4 -0
- package/views/3d/navigation/modes/GroundNavigationMode3D.js +2 -0
- package/views/3d/navigation/modes/NavigationMode3D.d.ts +4 -0
- package/views/3d/navigation/modes/NavigationMode3D.js +2 -0
- package/views/3d/navigation/modes/NavigationMode3DUnion.d.ts +5 -0
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/terrain/ExtentHelper.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/effects/AmbientIllumination.js +2 -0
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatDepthRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +12 -8
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.js +1 -1
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/widgets/LayerList/LayerListViewModel.d.ts +1 -0
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList/ListItem.d.ts +4 -0
- package/widgets/LayerList/ListItemPanel.d.ts +3 -0
- package/widgets/OrientedImageryViewer/types.d.ts +2 -2
- package/widgets/OrientedImageryViewer.d.ts +20 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/support/iconUtils.js +1 -1
- package/assets/esri/core/workers/chunks/03601be8b0763f82e88f.js +0 -1
- package/assets/esri/core/workers/chunks/0bff8d589312be6588fe.js +0 -1
- package/assets/esri/core/workers/chunks/0de90b1ad8118457fd5a.js +0 -1
- package/assets/esri/core/workers/chunks/0e1a067ab243900d0371.js +0 -1
- package/assets/esri/core/workers/chunks/0ee6109e6578395a7900.js +0 -1
- package/assets/esri/core/workers/chunks/0ee7376c29e0fd8f676c.js +0 -1
- package/assets/esri/core/workers/chunks/13551987fbeaae154df8.js +0 -1
- package/assets/esri/core/workers/chunks/186350d720352bd5ff33.js +0 -1
- package/assets/esri/core/workers/chunks/25ecf94d776c3b6db0f3.js +0 -1
- package/assets/esri/core/workers/chunks/262052dfaec3af8a58b9.js +0 -1
- package/assets/esri/core/workers/chunks/2c01477b69c38f691e19.js +0 -1
- package/assets/esri/core/workers/chunks/307297e025eed110095f.js +0 -1
- package/assets/esri/core/workers/chunks/33422dca6f4bcaa0ea74.js +0 -1
- package/assets/esri/core/workers/chunks/33e583166ab3943ecf0e.js +0 -1
- package/assets/esri/core/workers/chunks/37ae52c71bf9c70fbb92.js +0 -1
- package/assets/esri/core/workers/chunks/3daddcb106a7009c5a70.js +0 -1
- package/assets/esri/core/workers/chunks/3de6e54b6ed0feae1940.js +0 -1
- package/assets/esri/core/workers/chunks/448f068a14f24f2f8a43.js +0 -1
- package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +0 -1
- package/assets/esri/core/workers/chunks/5134241be1f1bf25231a.js +0 -1
- package/assets/esri/core/workers/chunks/56163189fbe63aa11e94.js +0 -1
- package/assets/esri/core/workers/chunks/571cf99c3eab8e517542.js +0 -1
- package/assets/esri/core/workers/chunks/5762746cfb02a4119d82.js +0 -1
- package/assets/esri/core/workers/chunks/5830deda121e4c95d199.js +0 -1
- package/assets/esri/core/workers/chunks/58e4aecabca047f1d229.js +0 -1
- package/assets/esri/core/workers/chunks/5c8f423812a23c02c1fd.js +0 -1
- package/assets/esri/core/workers/chunks/5eb726317b6602f1e206.js +0 -1
- package/assets/esri/core/workers/chunks/6e2075bd4832ff0db68c.js +0 -1
- package/assets/esri/core/workers/chunks/7608de0d942b4c16b2f6.js +0 -1
- package/assets/esri/core/workers/chunks/7610dd0b46948b7bd840.js +0 -1
- package/assets/esri/core/workers/chunks/7737ab739eba6d81282d.js +0 -1
- package/assets/esri/core/workers/chunks/7be56ac60e580c806a5d.js +0 -1
- package/assets/esri/core/workers/chunks/7d9468e38f3bf006f86e.js +0 -1
- package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +0 -1
- package/assets/esri/core/workers/chunks/84dc2afd89263a311b81.js +0 -1
- package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +0 -1
- package/assets/esri/core/workers/chunks/ab332bd411d6c7d4190c.js +0 -1
- package/assets/esri/core/workers/chunks/bc9b96a539f28afcb8cb.js +0 -1
- package/assets/esri/core/workers/chunks/be69e2dda75b079362b2.js +0 -1
- package/assets/esri/core/workers/chunks/bf9eba555aebca2c132b.js +0 -1
- package/assets/esri/core/workers/chunks/c18de0f6cbeecee4ce34.js +0 -1
- package/assets/esri/core/workers/chunks/c9df18e9ff7367a004b6.js +0 -1
- package/assets/esri/core/workers/chunks/d33d08cb6856cd2eb35e.js +0 -1
- package/assets/esri/core/workers/chunks/e688e6e816824b53a25e.js +0 -1
- package/assets/esri/core/workers/chunks/ea068c797e3e462f4518.js +0 -1
- package/assets/esri/core/workers/chunks/eaf1d38f09744b7e84f5.js +0 -1
- package/assets/esri/core/workers/chunks/eff99e45d818e58fd443.js +0 -1
- package/assets/esri/core/workers/chunks/f219ba010c480bb75684.js +0 -1
- package/assets/esri/core/workers/chunks/f60d5ce49c173d5381ec.js +0 -1
- package/assets/esri/core/workers/chunks/f72f4413fc7461e11a2a.js +0 -1
- package/assets/esri/core/workers/chunks/f834aa732c3f06525089.js +0 -1
- package/assets/esri/core/workers/chunks/fae14e30fa7d81bf706e.js +0 -1
- package/assets/esri/core/workers/chunks/fb6f1b562ee0983c8c6e.js +0 -1
- package/assets/esri/core/workers/chunks/fc1658eae7b312502fab.js +0 -1
- package/views/2d/engine/webgl/Utils.js +0 -2
- package/views/2d/layers/support/HighlightCounter.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4538],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>a,c:()=>o,d:()=>i,e:()=>f,f:()=>u,l:()=>c,n:()=>m,t:()=>s}),n(44208);var r=n(72727);function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a),c=n[0],u=n[1],l=n[2],f=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],M=n[12],_=n[13],b=n[14];let x=0,v=0;for(let n=0;n<h;n++){const n=e[x],r=e[x+1],i=e[x+2];t[v]=c*n+f*r+p*i+M,t[v+1]=u*n+m*r+y*i+_,t[v+2]=l*n+d*r+g*i+b,x+=s,v+=o}return t}function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a),c=n[0],u=n[1],l=n[2],f=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8];let M=0,_=0;for(let n=0;n<h;n++){const n=e[M],r=e[M+1],i=e[M+2];t[_]=c*n+f*r+p*i,t[_+1]=u*n+m*r+y*i,t[_+2]=l*n+d*r+g*i,M+=s,_+=o}}function h(t,e,n,r=3,o=r){const s=Math.min(t.length/r,e.length/o);let i=0,a=0;for(let h=0;h<s;h++)t[a]=n*e[i],t[a+1]=n*e[i+1],t[a+2]=n*e[i+2],i+=o,a+=r;return t}function c(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,o=3,s=o){const i=Math.min(t.length/o,e.length/s);let a=0,h=0;const c=1/2.2;for(let u=0;u<i;u++)t[h]=r*(n*e[a])**c,t[h+1]=r*(n*e[a+1])**c,t[h+2]=r*(n*e[a+2])**c,a+=s,h+=o}function l(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a);let c=0,u=0;for(let r=0;r<h;r++)t[u]=e[c]+n[0],t[u+1]=e[c+1]+n[1],t[u+2]=e[c+2]+n[2],c+=s,u+=o;return t}function f(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let s=0,i=0;for(let a=0;a<o;a++){const o=e[s],a=e[s+1],h=e[s+2],c=o*o+a*a+h*h;if(c>0){const e=1/Math.sqrt(c);t[i]=e*o,t[i+1]=e*a,t[i+2]=e*h}s+=r,i+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:m,normalizeView:f,scale:h,scaleView:function(t,e,n){h(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,a=e.typedBufferStride;let h=0,c=0;for(let t=0;t<r;t++)o[c]=i[h]>>n,o[c+1]=i[h+1]>>n,o[c+2]=i[h+2]>>n,h+=a,c+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:l},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),o=n(69622),s=(n(44208),n(4718)),i=(n(53966),n(97768)),a=n(88620),h=n(64108);const c=Symbol("ClonableMixin"),u=t=>{var e;const n=t;let o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){const e=(0,a.oY)(this);(0,i.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,o={},h=new Map;for(const e in n){const i=n[e],a=r?.originOf(e),c=i.clonable;if(i.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[e];let l=null;if("function"==typeof c)l=c(u,t);else if("reference"===c)l=u;else if(l=(0,s.TU)(u,t),null!=u&&null==l)continue;0===a?h.set(e,l):o[e]=l}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(h.size){const t=(0,a.oY)(c)?.store;if(t)for(const[e,n]of h)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,h.$)("esri.core.Clonable")],o),o},l=u(o.A);n.d(e,["OU",0,u,"Pw",0,l])},95488(t,e,n){n.d(e,{I:()=>o});var r=n(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p){return[t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function s(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function h(){return s(1,1,1)}function c(){return s(1,0,0)}function u(){return s(0,1,0)}function l(){return s(0,0,1)}n.d(e,{CN:()=>i,ci:()=>a,fA:()=>s,o8:()=>o,vt:()=>r});const f=[0,0,0],m=h(),d=c(),p=u(),y=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:p,UNIT_Z:y,ZEROS:f,clone:o,create:r,freeze:i,fromArray:a,fromValues:s,ones:h,unitX:c,unitY:u,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,y,"Cw",0,d,"JP",0,p,"Un",0,m,"uY",0,f])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>s,D_:()=>a,N9:()=>_,O7:()=>w,Qw:()=>c,Tl:()=>f,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>M,hZ:()=>i,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>l,mg:()=>h,o1:()=>R,sC:()=>v,t2:()=>I,t5:()=>C,tZ:()=>N,ut:()=>O});var r=n(51850),o=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function i(t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=i,t[6]=a,t[7]=h,t[8]=c,t[9]=u,t[10]=l,t[11]=f,t[12]=m,t[13]=d,t[14]=p,t[15]=y,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function h(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],i=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=i,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){return u(t,e)||a(t),t}function u(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],h=e[6],c=e[7],u=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],M=n*a-r*i,_=n*h-o*i,b=n*c-s*i,x=r*h-o*a,v=r*c-s*a,S=o*c-s*h,A=u*p-l*d,R=u*y-f*d,w=u*g-m*d,T=l*y-f*p,C=l*g-m*p,E=f*g-m*y;let I=M*E-_*C+b*T+x*w-v*R+S*A;return I?(I=1/I,t[0]=(a*E-h*C+c*T)*I,t[1]=(o*C-r*E-s*T)*I,t[2]=(p*S-y*v+g*x)*I,t[3]=(f*v-l*S-m*x)*I,t[4]=(h*w-i*E-c*R)*I,t[5]=(n*E-o*w+s*R)*I,t[6]=(y*b-d*S-g*_)*I,t[7]=(u*S-f*b+m*_)*I,t[8]=(i*C-a*w+c*A)*I,t[9]=(r*w-n*C-s*A)*I,t[10]=(d*v-p*b+g*M)*I,t[11]=(l*b-u*v-m*M)*I,t[12]=(a*R-i*T-h*A)*I,t[13]=(n*T-r*R+o*A)*I,t[14]=(p*_-d*x-y*M)*I,t[15]=(u*x-l*_+f*M)*I,t):null}function l(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=e[4],h=e[5],c=e[6],u=e[7],l=e[8],f=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],M=e[15];let _=n[0],b=n[1],x=n[2],v=n[3];return t[0]=_*r+b*a+x*l+v*p,t[1]=_*o+b*h+x*f+v*y,t[2]=_*s+b*c+x*m+v*g,t[3]=_*i+b*u+x*d+v*M,_=n[4],b=n[5],x=n[6],v=n[7],t[4]=_*r+b*a+x*l+v*p,t[5]=_*o+b*h+x*f+v*y,t[6]=_*s+b*c+x*m+v*g,t[7]=_*i+b*u+x*d+v*M,_=n[8],b=n[9],x=n[10],v=n[11],t[8]=_*r+b*a+x*l+v*p,t[9]=_*o+b*h+x*f+v*y,t[10]=_*s+b*c+x*m+v*g,t[11]=_*i+b*u+x*d+v*M,_=n[12],b=n[13],x=n[14],v=n[15],t[12]=_*r+b*a+x*l+v*p,t[13]=_*o+b*h+x*f+v*y,t[14]=_*s+b*c+x*m+v*g,t[15]=_*i+b*u+x*d+v*M,t}function f(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],i=e[1],a=e[2],h=e[3],c=e[4],u=e[5],l=e[6],f=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=i,t[2]=a,t[3]=h,t[4]=c,t[5]=u,t[6]=l,t[7]=f,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+c*o+m*s+e[12],t[13]=i*r+u*o+d*s+e[13],t[14]=a*r+l*o+p*s+e[14],t[15]=h*r+f*o+y*s+e[15]}return t}function m(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let i=r[0],a=r[1],h=r[2],c=Math.sqrt(i*i+a*a+h*h);if(c<=(0,o.FD)())return void s(t,e);c=1/c,i*=c,a*=c,h*=c;const u=Math.sin(n),l=Math.cos(n),f=1-l,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],M=e[5],_=e[6],b=e[7],x=e[8],v=e[9],S=e[10],A=e[11],R=i*i*f+l,w=a*i*f+h*u,T=h*i*f-a*u,C=i*a*f-h*u,E=a*a*f+l,I=h*a*f+i*u,O=i*h*f+a*u,N=a*h*f-i*u,P=h*h*f+l;t[0]=m*R+g*w+x*T,t[1]=d*R+M*w+v*T,t[2]=p*R+_*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*C+g*E+x*I,t[5]=d*C+M*E+v*I,t[6]=p*C+_*E+S*I,t[7]=y*C+b*E+A*I,t[8]=m*O+g*N+x*P,t[9]=d*O+M*N+v*P,t[10]=p*O+_*N+S*P,t[11]=y*O+b*N+A*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],i=e[5],a=e[6],h=e[7],c=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+c*r,t[5]=i*o+u*r,t[6]=a*o+l*r,t[7]=h*o+f*r,t[8]=c*o-s*r,t[9]=u*o-i*r,t[10]=l*o-a*r,t[11]=f*o-h*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],s=n[1],i=n[2],h=Math.sqrt(r*r+s*s+i*i);if(h<=(0,o.FD)())return null;h=1/h,r*=h,s*=h,i*=h;const c=Math.sin(e),u=Math.cos(e),l=1-u;return t[0]=r*r*l+u,t[1]=s*r*l+i*c,t[2]=i*r*l-s*c,t[3]=0,t[4]=r*s*l-i*c,t[5]=s*s*l+u,t[6]=i*s*l+r*c,t[7]=0,t[8]=r*i*l+s*c,t[9]=s*i*l-r*c,t[10]=i*i*l+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=r+r,h=o+o,c=s+s,u=r*a,l=r*h,f=r*c,m=o*h,d=o*c,p=s*c,y=i*a,g=i*h,M=i*c;return t[0]=1-(m+p),t[1]=l+M,t[2]=f-g,t[3]=0,t[4]=l-M,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=f+g,t[9]=d-y,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const x=(0,r.vt)();function v(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],i=e[5],a=e[6],h=e[8],c=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+i*i+a*a),t[2]=Math.sqrt(h*h+c*c+u*u),t}function A(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function R(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=e[3],h=o+o,c=s+s,u=i+i,l=o*h,f=o*c,m=o*u,d=s*c,p=s*u,y=i*u,g=a*h,M=a*c,_=a*u,b=r[0],x=r[1],v=r[2];return t[0]=(1-(d+y))*b,t[1]=(f+_)*b,t[2]=(m-M)*b,t[3]=0,t[4]=(f-_)*x,t[5]=(1-(l+y))*x,t[6]=(p+g)*x,t[7]=0,t[8]=(m+M)*v,t[9]=(p-g)*v,t[10]=(1-(l+d))*v,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,o){const s=e[0],i=e[1],a=e[2],h=e[3],c=s+s,u=i+i,l=a+a,f=s*c,m=s*u,d=s*l,p=i*u,y=i*l,g=a*l,M=h*c,_=h*u,b=h*l,x=r[0],v=r[1],S=r[2],A=o[0],R=o[1],w=o[2],T=(1-(p+g))*x,C=(m+b)*x,E=(d-_)*x,I=(m-b)*v,O=(1-(f+g))*v,N=(y+M)*v,P=(d+_)*S,L=(y-M)*S,B=(1-(f+p))*S;return t[0]=T,t[1]=C,t[2]=E,t[3]=0,t[4]=I,t[5]=O,t[6]=N,t[7]=0,t[8]=P,t[9]=L,t[10]=B,t[11]=0,t[12]=n[0]+A-(T*A+I*R+P*w),t[13]=n[1]+R-(C*A+O*R+L*w),t[14]=n[2]+w-(E*A+N*R+B*w),t[15]=1,t}function T(t,e,n,r,o,s,i){const a=1/(n-e),h=1/(o-r),c=1/(s-i);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*h,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(o+r)*h,t[10]=(i+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s*2*c,t[15]=0,t}function C(t,e,n,r){const s=e[0],i=e[1],h=e[2];let c=s-n[0],u=i-n[1],l=h-n[2];const f=(0,o.FD)();if(Math.abs(c)<f&&Math.abs(u)<f&&Math.abs(l)<f)return void a(t);let m=1/Math.sqrt(c*c+u*u+l*l);c*=m,u*=m,l*=m;const d=r[0],p=r[1],y=r[2];let g=p*l-y*u,M=y*c-d*l,_=d*u-p*c;m=Math.sqrt(g*g+M*M+_*_),m?(m=1/m,g*=m,M*=m,_*=m):(g=0,M=0,_=0);let b=u*_-l*M,x=l*g-c*_,v=c*M-u*g;m=Math.sqrt(b*b+x*x+v*v),m?(m=1/m,b*=m,x*=m,v*=m):(b=0,x=0,v=0),t[0]=g,t[1]=b,t[2]=c,t[3]=0,t[4]=M,t[5]=x,t[6]=u,t[7]=0,t[8]=_,t[9]=v,t[10]=l,t[11]=0,t[12]=-(g*s+M*i+_*h),t[13]=-(b*s+x*i+v*h),t[14]=-(c*s+u*i+l*h),t[15]=1}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t){const e=(0,o.FD)(),n=t[0],r=t[1],s=t[2],i=t[4],a=t[5],h=t[6],c=t[8],u=t[9],l=t[10];return Math.abs(1-(n*n+i*i+c*c))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(s*s+h*h+l*l))<=e}function N(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=l,L=E;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],h=e[6],c=e[7],u=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(f*g-m*y)-l*(h*g-c*y)+p*(h*m-c*f),t[1]=-(r*(f*g-m*y)-l*(o*g-s*y)+p*(o*m-s*f)),t[2]=r*(h*g-c*y)-a*(o*g-s*y)+p*(o*c-s*h),t[3]=-(r*(h*m-c*f)-a*(o*m-s*f)+l*(o*c-s*h)),t[4]=-(i*(f*g-m*y)-u*(h*g-c*y)+d*(h*m-c*f)),t[5]=n*(f*g-m*y)-u*(o*g-s*y)+d*(o*m-s*f),t[6]=-(n*(h*g-c*y)-i*(o*g-s*y)+d*(o*c-s*h)),t[7]=n*(h*m-c*f)-i*(o*m-s*f)+u*(o*c-s*h),t[8]=i*(l*g-m*p)-u*(a*g-c*p)+d*(a*m-c*l),t[9]=-(n*(l*g-m*p)-u*(r*g-s*p)+d*(r*m-s*l)),t[10]=n*(a*g-c*p)-i*(r*g-s*p)+d*(r*c-s*a),t[11]=-(n*(a*m-c*l)-i*(r*m-s*l)+u*(r*c-s*a)),t[12]=-(i*(l*y-f*p)-u*(a*y-h*p)+d*(a*f-h*l)),t[13]=n*(l*y-f*p)-u*(r*y-o*p)+d*(r*f-o*l),t[14]=-(n*(a*y-h*p)-i*(r*y-o*p)+d*(r*h-o*a)),t[15]=n*(a*f-h*l)-i*(r*f-o*l)+u*(r*h-o*a),t},copy:s,determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],i=t[5],a=t[6],h=t[7],c=t[8],u=t[9],l=t[10],f=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*i-n*s)*(l*y-f*p)-(e*a-r*s)*(u*y-f*d)+(e*h-o*s)*(u*p-l*d)+(n*a-r*i)*(c*y-f*m)-(n*h-o*i)*(c*p-l*m)+(r*h-o*a)*(c*d-u*m)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],h=t[5],c=t[6],u=t[7],l=t[8],f=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],M=t[15],_=e[0],b=e[1],x=e[2],v=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],C=e[9],E=e[10],I=e[11],O=e[12],N=e[13],P=e[14],L=e[15],B=(0,o.FD)();return Math.abs(n-_)<=B*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-b)<=B*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(s-x)<=B*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(i-v)<=B*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(a-S)<=B*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(h-A)<=B*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(c-R)<=B*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(u-w)<=B*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(l-T)<=B*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(f-C)<=B*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(m-E)<=B*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(d-I)<=B*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=B*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(y-N)<=B*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-P)<=B*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(M-L)<=B*Math.max(1,Math.abs(M),Math.abs(L))},exactEquals:I,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=n+n,a=r+r,h=o+o,c=n*i,u=r*i,l=r*a,f=o*i,m=o*a,d=o*h,p=s*i,y=s*a,g=s*h;return t[0]=1-l-d,t[1]=u+g,t[2]=f-y,t[3]=0,t[4]=u-g,t[5]=1-c-d,t[6]=m+p,t[7]=0,t[8]=f+y,t[9]=m-p,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=x,r=-e[0],o=-e[1],s=-e[2],i=e[3],a=e[4],h=e[5],c=e[6],u=e[7],l=r*r+o*o+s*s+i*i;return l>0?(n[0]=2*(a*i+u*r+h*s-c*o)/l,n[1]=2*(h*i+u*o+c*r-a*s)/l,n[2]=2*(c*i+u*s+a*o-h*r)/l):(n[0]=2*(a*i+u*r+h*s-c*o),n[1]=2*(h*i+u*o+c*r-a*s),n[2]=2*(c*i+u*s+a*o-h*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:_,frustum:T,getRotation:A,getScale:S,getTranslation:v,hasIdentityRotation:N,identity:a,invert:u,invertOrIdentity:c,isOrthoNormal:O,lookAt:C,mul:P,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,s,i){const a=1/(e-n),h=1/(r-o),c=1/(s-i);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*a,t[13]=(o+r)*h,t[14]=(i+s)*c,t[15]=1,t},perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let i;return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),h=2/(i+a),c=2/(o+s);return t[0]=h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(i-a)*h*.5,t[9]=(o-s)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],h=e[3],c=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-c*r,t[1]=i*o-u*r,t[2]=a*o-l*r,t[3]=h*o-f*r,t[8]=s*r+c*o,t[9]=i*r+u*o,t[10]=a*r+l*o,t[11]=h*r+f*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],h=e[3],c=e[4],u=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+c*r,t[1]=i*o+u*r,t[2]=a*o+l*r,t[3]=h*o+f*r,t[4]=c*o-s*r,t[5]=u*o-i*r,t[6]=l*o-a*r,t[7]=f*o-h*r,t},scale:m,set:i,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:L,subtract:E,targetTo:function(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=r[0],h=r[1],c=r[2];let u=o-n[0],l=s-n[1],f=i-n[2],m=u*u+l*l+f*f;m>0&&(m=1/Math.sqrt(m),u*=m,l*=m,f*=m);let d=h*f-c*l,p=c*u-a*f,y=a*l-h*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=l*y-f*p,t[5]=f*d-u*y,t[6]=u*p-l*d,t[7]=0,t[8]=u,t[9]=l,t[10]=f,t[11]=0,t[12]=o,t[13]=s,t[14]=i,t[15]=1,t},translate:f,transpose:h},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>s,C:()=>i,Cc:()=>w,DI:()=>v,Io:()=>M,Ln:()=>g,Om:()=>A,Qr:()=>l,Re:()=>c,S8:()=>S,T9:()=>p,WQ:()=>h,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>C,fw:()=>I,gL:()=>E,hG:()=>_,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>B,t2:()=>P,tn:()=>f,ze:()=>x});var r=n(51850),o=n(34304);function s(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function h(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function _(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function v(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const n=e[0],r=e[1],o=e[2];let s=n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],h=n[2];return t[0]=o*h-s*a,t[1]=s*i-r*h,t[2]=r*a-o*i,t}function w(t,e,n,r){const o=e[0],s=e[1],i=e[2];return t[0]=o+r*(n[0]-o),t[1]=s+r*(n[1]-s),t[2]=i+r*(n[2]-i),t}function T(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*s+n[12],t[1]=n[1]*r+n[5]*o+n[9]*s+n[13],t[2]=n[2]*r+n[6]*o+n[10]*s+n[14],t}function C(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=r*n[0]+o*n[3]+s*n[6],t[1]=r*n[1]+o*n[4]+s*n[7],t[2]=r*n[2]+o*n[5]+s*n[8],t}function E(t,e,n){return I(t,e,n[0],n[1],n[2],n[3])}function I(t,e,n,r,o,s){const i=e[0],a=e[1],h=e[2],c=r*h-o*a,u=o*i-n*h,l=n*a-r*i,f=r*l-o*u,m=o*c-n*l,d=n*u-r*c,p=2*s;return t[0]=i+c*p+2*f,t[1]=a+u*p+2*m,t[2]=h+l*p+2*d,t}const O=(0,r.vt)(),N=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=e[0],a=e[1],h=e[2],c=(0,o.FD)();return Math.abs(n-i)<=c*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-h)<=c*Math.max(1,Math.abs(s),Math.abs(h))}function B(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],s=n[2]-e[2];let i=r*r+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const D=c,G=u,U=l,F=M,j=_,k=s,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:h,angle:function(t,e){S(O,t),S(N,e);const n=A(O,N);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,s){const i=1-s,a=i*i,h=s*s,c=a*i,u=3*s*a,l=3*h*i,f=h*s;return t[0]=e[0]*c+n[0]*u+r[0]*l+o[0]*f,t[1]=e[1]*c+n[1]*u+r[1]*l+o[1]*f,t[2]=e[2]*c+n[2]*u+r[2]*l+o[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:i,cross:R,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],h=n[2],c=o*h-s*a,u=s*i-r*h,l=r*a-o*i,f=Math.sqrt(c*c+u*u+l*l);return t[0]=c/f,t[1]=u/f,t[2]=l/f,t},direction:B,dist:F,distance:M,div:U,divide:l,dot:A,equals:L,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,s){const i=s*s,a=i*(2*s-3)+1,h=i*(s-2)+s,c=i*(s-1),u=i*(3-2*s);return t[0]=e[0]*a+n[0]*h+r[0]*c+o[0]*u,t[1]=e[1]*a+n[1]*h+r[1]*c+o[1]*u,t[2]=e[2]*a+n[2]*h+r[2]*c+o[2]*u,t},inverse:v,len:k,length:s,lerp:w,max:p,min:d,mul:G,multiply:u,negate:x,normalize:S,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,s=2*n()-1,i=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*e,t},rotateX:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0],s[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),s[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),s[1]=o[1],s[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),s[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),s[2]=o[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/k(t))},set:a,sign:m,sqrDist:j,sqrLen:Z,squaredDistance:_,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:D,subtract:c,transformMat3:C,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,k,"jb",0,D,"lo",0,j,"uE",0,Z])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),o=n(71511),s=n(36563),i=n(53966),a=n(97768),h=n(17676),c=n(83027);class u{constructor(t,e,n,r,o={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(t,{...o,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{o.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new l(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){const o=this._transferLists[t],s=o?o(e):[];return this._thread.invoke(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,h.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,h.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(f):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,h.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class l{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new o.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function f(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,o=n(32198),s=n(4576),i=n(4718),a=n(91429),h=n(5443),c=n(91075),u=n(86738),l=n(16930),f=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=l.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:o}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,i.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:o}=this;return new r({points:(0,i.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:o})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,o.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,o.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,o.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,o=n(32198),s=n(4718),i=n(91429),a=n(5443),h=n(91075),c=n(86738),u=n(16930),l=n(90634),f=n(56993),m=n(43937);let d=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=u.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:o}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],r=this.hasZ,o=this.hasM;return r&&!o?new c.A(n[0],n[1],n[2],void 0,this.spatialReference):o&&!r?new c.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&o?new c.A(n[0],n[1],n[2],n[3],this.spatialReference):new c.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new c.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new c.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,o.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,o.Cg)([(0,i.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,o.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,o.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,o.Cg)([(0,i.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,o.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,o.Cg)([(0,i.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>i});var r=n(51850),o=n(99917),s=n(9762);function i(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,s.projectBuffer)(a,t.spatialReference,0,e,n,0);const i=(0,o.tryProject)(t,n,r);return!!i&&(e[0]=i.x,e[1]=i.y,e[2]=i.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),o=n(16930),s=n(9762),i=n(65806);function a(t,e,n,o){return!(null==e||null==o||t.length<2)&&((0,r.canProjectWithoutEngine)(e,o)?(0,s.projectBuffer)(t,e,0,n,o,0,1):(h.x=t[0],h.y=t[1],h.z=t[2],h.spatialReference=e,(0,i.g)(h,n,o)))}const h={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>c,jh:()=>s,l5:()=>a,yH:()=>h});var r=n(34275),o=n(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function h(t,e){if(0===e.length)return i(t);if(0===t.length)return i(e);const n=s(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function c(t){return[...t]}function u(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>c});var r,o=n(32198),s=n(69540),i=n(25482),a=n(91429),h=n(93223);let c=class extends((0,s.OU)(i.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,h.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,n){n.d(e,{A:()=>c});var r=n(32198),o=n(69540),s=n(25482),i=n(91429),a=n(51850),h=n(93223);let c=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,h.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function i(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":i(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>c,Bi:()=>a,Pv:()=>u,Rg:()=>i,U9:()=>o,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>h})},80754(t,e,n){n.d(e,{kS:()=>c,kd:()=>h});var r=n(82799),o=n(16930),s=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,i.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,i.n1)(t)){const[n,r,o]=t.b;n[0]+=e,r[0]+=e,o[0]+=e;continue}t[0]+=e}for(const n of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(const t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>l,jZ:()=>u});var r=n(12195),o=n(19419),s=n(537),i=n(95108),a=n(60408),h=n(80754),c=n(21325);function u(t){return f(t,!0)}function l(t){return f(t,!1)}function f(t,e){if(null==t)return null;const n=t.spatialReference,o=(0,c.Vp)(n),i=(0,r.W)(t)?t.toJSON():t;if(!o)return i;const u=(0,c.K8)(n)?102100:4326,l=h.j7[u].maxX,f=h.j7[u].minX;if((0,a.fT)(i))return d(i,l,f);if((0,a.U9)(i))return i.points=i.points.map(t=>d(t,l,f)),i;if((0,a.ZC)(i))return m(i,o);if((0,a.Bi)(i)||(0,a.Rg)(i)){const t=(0,s.Rg)(b,i),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,h.kd)(n.xmin,f)*(2*l),o=0===r?i:(0,h.kS)(i,r);return n.xmin+=r,n.xmax+=r,n.xmax>l?M(o,l,e):n.xmin<f?M(o,f,e):o}return i}function m(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:o,xmin:s,xmax:i}=t,a=t.xmax-t.xmin,[h,c]=e.valid,{x:u,frameId:l}=p(t.xmin,e),{x:f,frameId:m}=p(t.xmax,e),d=u===f&&a>0;if(a>2*c){const t={xmin:s<i?u:f,ymin:r,xmax:c,ymax:o},e={xmin:h,ymin:r,xmax:s<i?f:u,ymax:o},a={xmin:0,ymin:r,xmax:c,ymax:o},d={xmin:h,ymin:r,xmax:0,ymax:o},p=[],g=[];y(t,a)&&p.push(l),y(t,d)&&g.push(l),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=l+1;t<m;t++)p.push(t),g.push(t);n.push(new _(t,[l]),new _(e,[m]),new _(a,p),new _(d,g))}else u>f||d?n.push(new _({xmin:u,ymin:r,xmax:c,ymax:o},[l]),new _({xmin:h,ymin:r,xmax:f,ymax:o},[m])):n.push(new _({xmin:u,ymin:r,xmax:f,ymax:o},[l]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,h.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,h.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t.x+=e*(-2*n)}}return t}function p(t,e){const[n,r]=e.valid,o=2*r;let s,i=0;return t>r?(s=Math.ceil(Math.abs(t-r)/o),t-=s*o,i=s):t<n&&(s=Math.ceil(Math.abs(t-n)/o),t+=s*o,i=-s),{x:t,frameId:i}}function y(t,e){const{xmin:n,ymin:r,xmax:o,ymax:s}=e;return g(t,n,r)&&g(t,n,s)&&g(t,o,s)&&g(t,o,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function M(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,i.m3)(t),n)return(new x).cut(t,e);const o=r?t.rings:t.paths,s=r?4:2,h=o.length,c=-2*e;for(let t=0;t<h;t++){const e=o[t];if(e&&e.length>=s){const t=[];for(const[n,...r]of e)t.push([n+c,...r]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class _{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,o.vt)();class x{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(v(t,e<=0?t[0]:this._xCut)),this._lineOut.push(v(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],o=Math.min(t.length,e.length);for(let s=2;s<o;s++)r.push(t[s]+n*(e[s]-t[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function v(t,e){const n=t.slice();return n[0]=e,n}function S(t,e,n){const r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=v(e,n):t.push(v(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>N,F8:()=>O,J2:()=>T,Yq:()=>E,_m:()=>C,iS:()=>I,wj:()=>P});var r=n(66552),o=n(73444),s=n(98623),i=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},l={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},M={...p,...y},_={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,...M},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,...M},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...d},"long-month-day-year-short-time-24":{...l,...g},"long-month-day-year-long-time":{...l,...p},"long-month-day-year-long-time-24":{...l,...M},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...d},"day-short-month-year-short-time-24":{...f,...g},"day-short-month-year-long-time":{...f,...p},"day-short-month-year-long-time-24":{...f,...M},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,...M},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},v=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),S=v.find(({type:t})=>"month"===t)?.value.toLowerCase();function A(){const t=(0,o.lR)();return(t&&x[t])??(0,o.QC)()}"mart"!==S&&(x.bs="sr-Latn-CS");let R=new WeakMap;const w=_["short-date-short-time"];function T(t){return _[t]}function C(t){const{dateStyle:e,timeStyle:n,hour12:r,year:o,month:s}=t,i={};return e?i.dateStyle=e:o&&(i.year=o,i.month=s||void 0),n&&!i.year&&(i.timeStyle=n,i.hour12="auto"===r?void 0:"always"===r),i}function E(t,e=w){return function(t){let e=R.get(t);if(!e){const n=A(),r=P(t.timeZone??"system"),o={...t,timeZone:r};e=new Intl.DateTimeFormat(n,o),R.set(t,e)}return e}(e).format(t)}function I(t,e=w){return E(new Date(t),{...e,...c,...h})}function O(t,e=w){return E(new Date(`1970-01-01T${t}Z`),{...e,...c,...a})}function N(t,e=w){const n=i.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return E(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,o={...e,timeZone:r};return n.toLocaleString(o,{locale:A()})}function P(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,o.Ml)(()=>{R=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>h,Ml:()=>y,QC:()=>l,lR:()=>u,oQ:()=>d});var r=n(36563);let o;n(44208);const s=globalThis.esriConfig?.locale,i=globalThis.document?.documentElement;function a(){const t=i?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function h(){return void 0===o&&(o=a()),o}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=h()){return f(t)?.language}function l(t=h()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=h()){return c.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){const t=a();o!==t&&([...p].forEach(e=>e(t)),o=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),i&&new MutationObserver(()=>{g()}).observe(i,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>l,MU:()=>u,yf:()=>m});var r=n(35522),o=n(51850),s=n(10614),i=n(63907),a=n(74038);class h{constructor(t,e){this.data=t,this.indices=e}}class c{constructor(t,e,n,r,o){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=o}}function u(t,e,n,c,u){return!c||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,i){const a=new h(t.slice().buffer,e);if(!i)return a;const c=n[0].stride,u=a.data.byteLength/c;for(const t of n)if("normalCompressed"===t.name){const{offset:e}=t,n=new Int16Array(a.data),h=(0,o.vt)();for(let t=0;t<u;++t)(0,s.Tz)(h,n,t,c/2,e/2),(0,r.ei)(h,h,i),(0,s.aT)(n,t,h[0],h[1],h[2],c/2,e/2)}else if("normal"===t.name){const{offset:e}=t,n=new Float32Array(a.data),s=(0,o.vt)();for(let t=0;t<u;++t){const o=(t*c+e)/4;s[0]=n[o],s[1]=n[o+1],s[2]=n[o+2],(0,r.ei)(s,s,i),n[o]=s[0],n[o+1]=s[1],n[o+2]=s[2]}}return a}(t,e,n,u):function(t,e,n,r){const o=n[0].stride,s=o/4,h=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),c=t.byteLength/o,u=1<n.length?n[1].offset/4:s,m=o+4;n.forEach((t,e)=>{t.stride=m,e>=1&&(t.offset+=4)}),n.splice(1,0,new a._("normalCompressed",2,i.pe.SHORT,12,m,!0));const d=l(e,h,s,r);return f(h,c,u,o,m,d)}(t,e,n,u)}function l(t,e,n,r){const o=t.length/3,s=e.length/n,{faceNormals:i,faceAreas:a,faceEdges:h,edgeFaces:c,vertexFaces:u,vertexFaceCountAndOffset:l}=function(t,e,n,r,o,s){const i=new Float32Array(3*o),a=new Float32Array(o),h=new Uint32Array(3*o),c=new Int32Array(3*o*2),u=3*o,l=new Uint32Array(u),f=new Uint32Array(2*n);for(let t=0;t<o;++t){const e=3*t;for(let t=0;t<3;++t)++f[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){const n=2*e;f[n+1]=t,t+=f[n]}for(let t=0;t<o;++t){const e=3*t;for(let n=0;n<3;++n)l[f[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)f[2*t+1]-=f[2*t]}let m=0;const d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){const e=2*t,n=4*f[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){const r=Math.min(t,e),o=Math.max(t,e),s=t<e?0:1,i=2*r,a=p[i],h=p[i+1];let u=-1;for(let t=a;t<h;t+=2)if(d[t]===o){u=d[t+1];break}return-1===u&&(u=m++,d[h]=o,d[h+1]=u,p[i+1]=h+2,c[2*u+(1-s)]=-1),c[2*u+s]=n,u}for(let n=0;n<r.length;n+=3){const o=r[n],c=o*e,u=t[c],l=t[c+1],f=t[c+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],M=t[d+2],_=r[n+2],b=_*e,x=u-p,v=l-g,S=f-M,A=u-t[b],R=l-t[b+1],w=f-t[b+2],T=v*w-S*R,C=S*A-x*w,E=x*R-v*A,I=Math.sqrt(T*T+C*C+E*E)||1,O=n/3;a[O]=.5*I;const N=1/I;if(s){const t=s[0]*T+s[3]*C+s[6]*E,e=s[1]*T+s[4]*C+s[7]*E,n=s[2]*T+s[5]*C+s[8]*E;i[3*O]=t*N,i[3*O+1]=e*N,i[3*O+2]=n*N}else i[3*O]=T*N,i[3*O+1]=C*N,i[3*O+2]=E*N;const P=y(o,m,O),L=y(m,_,O),B=y(_,o,O);h[3*O]=P,h[3*O+1]=L,h[3*O+2]=B}return{faceNormals:i,faceAreas:a,faceEdges:h,vertexFaces:l,vertexFaceCountAndOffset:f,edgeFaces:c}}(e,n,s,t,o,r);return function(t,e,n,r,o,s){const i=new Uint8Array(e),a=new Uint32Array(e),h=new Uint32Array(3*e);let c=0;const u=new Uint32Array(e);let l=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===i[t])continue;i[t]=1;const f=n[3*t],m=n[3*t+1],d=n[3*t+2];for(l=0,u[l++]=t,h[0]=o[3*t],h[1]=o[3*t+1],h[2]=o[3*t+2],c=3,a[t]=t+1;c>0;){const e=h[--c];for(let r=0;r<2;++r){const y=s[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;const g=n[3*y],M=n[3*y+1],_=n[3*y+2];if(Math.abs(1-(f*g+m*M+d*_))<p){u[l++]=y,i[y]=1;for(let t=0;t<3;++t){const n=o[3*y+t];n!==e&&(h[c++]=n)}}}}if(l>1){let t=0,e=0,o=0,s=0;for(let i=0;i<l;++i){const a=u[i],h=r[a];t+=h,e+=n[3*a]*h,o+=n[3*a+1]*h,s+=n[3*a+2]*h}const i=Math.sqrt(e*e+o*o+s*s)||1;e/=i,o/=i,s/=i;for(let i=0;i<l;++i){const a=u[i];n[3*a]=e,n[3*a+1]=o,n[3*a+2]=s,r[a]=t}}}}(t,o,i,a,h,c),d(o,s,t,i,a,u,l)}function f(t,e,n,r,o,s){const i=r/4,a=o/4,c=s.outputVertexCount,u=new Float32Array(c*a),l=new Uint32Array(u.buffer),f=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,o,s,i){for(let a=0;a<s;++a){const s=a*o,h=a*e;for(let e=0;e<n;++e)t[h+e]=r[s+e];t[h+n]=i[a];for(let e=n;e<o;++e)t[h+e+1]=r[s+e]}}(l,a,n,f,i,e,s.packedNormals),m(l,a,n,f,i,e,c,s.appendedVertexToOriginal,s.packedNormals,!0),new h(u.buffer,s.indices)}function m(t,e,n,r,o,s,i,a,h,c){for(let u=s;u<i;++u){const i=a[u-s]*o,l=u*e;for(let e=0;e<o;++e)t[l+e+(c&&e>=n?1:0)]=r[i+e];t[l+n]=h[u]}}function d(t,e,n,r,o,s,i){const a=3*t,h=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n);let u=e;const l=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),f=new ArrayBuffer(4*a),m=new Int16Array(f),d=new Uint32Array(f);let p=0,g=0;const M=new Uint32Array(t);let _=0;const b=1-y;for(let t=0;t<e;++t){p=i[2*t+1],g=p+i[2*t];let n=t;for(;p<g;){{const t=s[--g],e=3*t,i=r[e],a=r[e+1],h=r[e+2];_=0,M[_++]=t;let c=p;for(;c<g;){const t=s[c],e=3*t;if(i*r[e]+a*r[e+1]+h*r[e+2]>b){M[_++]=t;const e=--g;if(c<e){s[c]=s[e];continue}}++c}let u=0,l=0,f=0;if(1===_)u=i,l=a,f=h;else{for(let t=0;t<_;++t){const e=M[t],n=o[e],s=3*e;u+=r[s]*n,l+=r[s+1]*n,f+=r[s+2]*n}const t=Math.sqrt(u*u+l*l+f*f)||1;u/=t,l/=t,f/=t}{const t=1/(Math.abs(u)+Math.abs(l)+Math.abs(f)),e=u*t,r=l*t;let o=e,s=r;f<=0&&(o=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));const i=2*n,a=Math.round(32767*o),h=Math.round(32767*s);m[i]=a<-32767?-32767:a>32767?32767:a,m[i+1]=h<-32767?-32767:h>32767?32767:h}}if(n!==t)for(let e=0;e<_;++e){const r=3*M[e];h[r]===t&&(h[r]=n),h[r+1]===t&&(h[r+1]=n),h[r+2]===t&&(h[r+2]=n)}if(p>=g)break;n=u++,l[n-e]=t}}return new c(h,d,l,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>A,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>_,filterObbsForModificationsSync:()=>I,initialize:()=>P,interpretObbModificationResults:()=>E,process:()=>g,project:()=>v,setLegacySchema:()=>x,setModifications:()=>b,setModificationsSync:()=>T,test:()=>B,transformNormals:()=>S});var r=n(34727),o=n(77690),s=n(29242),i=n(58083),a=n(9093),h=n(16930),c=n(4197),u=n(95696),l=n(18251),f=n(73354),m=n(2741);let d;var p=n(89606),y=n(98697);async function g(t){w=await L();const e=[t.geometryBuffer];return{result:C(w,t,e),transferList:e}}async function M(t){w=await L();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=w._malloc(r),s=new Uint8Array(w.HEAPU8.buffer,o,r);s.set(new Uint8Array(n));const i=w.dracoDecompressPointCloudData(o,s.byteLength);if(w._free(o),i.error.length>0)throw new Error(`i3s.wasm: ${i.error}`);const a=i.featureIds?.length>0?i.featureIds.slice():null,h=i.positions.slice();return a&&e.push(a.buffer),e.push(h.buffer),{result:{positions:h,featureIds:a},transferList:e}}async function _(t){await L(),I(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function b(t){await L(),T(t)}async function x(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function v(t){const{localMatrix:e,origin:r,positions:o,vertexSpace:s}=t,i=h.A.fromJSON(t.inSpatialReference),a=h.A.fromJSON(t.outSpatialReference),f=e?(0,c.Vj)(e):void 0,m=(0,c.cj)(r);let d;const[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(()=>n(9762)),Promise.resolve().then(()=>n(99917))]);await y(i,a);const g=[0,0,0];if(!p(m,i,0,g,a,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(d=new Float64Array(o.length),!p(o,i,0,d,a,0,d.length/3))throw new Error("Failed to project")}else{const t="georeferenced"===s.type?u.A.fromJSON(s):l.A.fromJSON(s),{projectMeshVertexPositions:e}=await Promise.all([n.e(6860),n.e(4406)]).then(()=>n(74594)),r=e({vertexAttributes:{position:o},transform:f?{localMatrix:f}:void 0,vertexSpace:t,spatialReference:i},a);if(!r)throw new Error("Failed to project");d=r}const M=d.length,[_,b,x]=g;for(let t=0;t<M;t+=3)d[t]-=_,d[t+1]-=b,d[t+2]-=x;return{result:{projected:d,original:o,projectedOrigin:g},transferList:[d.buffer,o.buffer]}}async function S({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,f.b)(n,e,t),(0,r.or)(t)&&(0,f.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function A(t){O(t)}let R,w;function T(t){if(!w)return;const e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function C(t,e,n){const{context:r,globalTrafo:h,geometryElevationOffset:c,mbs:u,obbData:l,layouts:f,needNormals:m,computeNormals:d,elevationOffset:g,planetRadiusInGlobalMode:M,geometryBuffer:_,geometryDescriptor:b,geometryData:x,indexToVertexProjector:v,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(_.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,_.byteLength);T.set(new Uint8Array(_));const C=new Float64Array(t.HEAPU8.buffer,w,33);N(C,[NaN,NaN,NaN],0);let E=3;N(C,h,E),E+=16,N(C,u.center,E),E+=3,C[E++]=u.radius,l&&N(C,l,E++);const I={isDraco:!1,isLegacy:!1,color:f.some(t=>t.some(t=>"color"===t.name)),normal:m&&f.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:f.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:f.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},O=t.process(r,!!l,R,T.byteLength,b,I,w,g,v,S,A);if(t._free(w),t._free(R),O.error.length>0)throw new Error(`i3s.wasm: ${O.error}`);if(O.discarded)return null;const P=O.componentOffsets.length>0?O.componentOffsets.slice():null,L=O.featureIds.length>0?O.featureIds.slice():null,B=O.anchorIds.length>0?Array.from(O.anchorIds):null,D=O.anchors.length>0?Array.from(O.anchors):null,G=1===O.indicesType?new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2).slice():new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4).slice(),U=f[0].slice(),F=(0,o.z0)((0,s.vt)(),h),j=(0,p.MU)(O.interleavedVertedData,G,U,d&&!I.normal,F),k=O.positions.slice(),Z=function(t,e,n,r,o){const s=n?(0,a.o8)(n):(0,a.vt)();(0,i.lw)(s,e,s);const h=s[0],c=s[1],u=s[2],l=s[4],f=s[5],m=s[6],d=s[8],p=s[9],y=s[10],g=s[12],M=s[13],_=s[14];let b=1/0,x=-1/0;for(let e=0;e<t.length;e+=3){const n=t[e],s=t[e+1],i=t[e+2],a=n*u+s*m+i*y+_;let v=0;if(r>0){const t=n*h+s*l+i*d+g,e=n*c+s*f+i*p+M;v=Math.sqrt(t*t+e*e+a*a)-r}else v=a;v-=o,b=Math.min(b,v),x=Math.max(x,v)}return{minElevation:b,maxElevation:x}}(k,h,x?.geometries[0]?.transformation,M,c),{buffer:H,byteOffset:q,byteLength:z}=O.positionIndices,Y=1===O.positionIndicesType?new Uint16Array(H,q,z/2).slice():new Uint32Array(H,q,z/4).slice(),V=new y._b(U,j.data,j.indices,O.hasColors,O.hasModifications,{data:k,indices:Y});return L&&n.push(L.buffer),P&&n.push(P.buffer),n.push(j.data),n.push(j.indices.buffer),n.push(k.buffer),n.push(Y.buffer),new y.sQ(P,L,B,D,V,h,O.obb,Z.minElevation,Z.maxElevation)}function E(t){return 0===t?0:1===t?1:2===t?2:3}function I(t){if(!w)return;const{context:e,buffer:n}=t,r=w._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(w.HEAPU8.buffer,r,o),i=new Float64Array(n);s.set(i),w.filterOBBs(e,r,o),i.set(s),w._free(r)}function O(t){0===w?.destroy(t)&&(w=null,R=null,d=null)}function N(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function P(){w||await L()}async function L(){return w||(w=await(R??=(d??=(async()=>{const t=await n.e(2980).then(()=>n(82980));return await t.default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})})(),d))),w}const B={transform:(t,e)=>w&&C(w,t,e),destroy:O}},98697(t,e,n){n.d(e,{Cm:()=>m,H1:()=>_,Ir:()=>y,_b:()=>l,sQ:()=>f});var r=n(53966),o=n(15142),s=n(51850),i=n(35982),a=n(39829),h=n(99917),c=n(27993),u=n(89056);class l{constructor(t,e,n,r,o,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=o,this.positionData=s}}class f{constructor(t,e,n,r,o,s,i,a,h){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=o,this.globalTrafo=s,this.obb=i,this.geometryMinElevation=a,this.geometryMaxElevation=h}}class m extends i.B{constructor(t){super("SceneLayerWorker","process",{process:t=>[t.geometryBuffer],project:t=>[t.positions.buffer],transformNormals:t=>[t.normals.buffer]},t,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(t){for(const[e,n]of this._schemasByContext)t.invoke("setLegacySchema",{context:e,jsonSchema:n}).catch(()=>{});for(const e of this._modificationsByContext.values())t.invoke("setModifications",e).catch(()=>{})}setModifications(t,e,n){const r={context:t,modifications:e,isGeodetic:n};return this._modificationsByContext.set(t,r),this.broadcast(r,"setModifications")}setLegacySchema(t,e){const n=JSON.stringify(e);return this._schemasByContext.set(t,n),this.broadcast({context:t,jsonSchema:n},"setLegacySchema")}destroyContext(t){return this._schemasByContext.delete(t),this._modificationsByContext.delete(t),this.broadcast(t,"destroyContext")}async destroyContextAndSelf(t){await this.destroyContext(t),this.destroy()}project(t,e){return this.invokeMethod("project",t,e)}transformNormals(t,e){return this.invokeMethod("transformNormals",t,e)}}const d=new o.A({deallocator:null}),p=(0,s.vt)();function y(t,e,n,o=!1){d.clear();let s=1/0,i=1/0,c=-1/0,l=-1/0,f=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,m=t.geometry,p=m.spatialReference??n;if(p!==n&&!(0,h.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let y=m.rings;if(p!==n){const t=g(m.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}y=t}const _=y;if(o){const t=(0,u.jZ)(new a.A({rings:y,spatialReference:n}));null!=t&&(y=t.rings)}const b=1===_.length&&y.length>1?[...y.map(t=>[t]),_]:[y];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!M(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{f||=1===e;for(const t of b){d.push(e),d.push(t.length);for(const e of t){d.push(e.length);for(const t of e){const e=t[2]??0;d.push(t[0]),d.push(t[1]),d.push(e),s=Math.min(s,t[0]),i=Math.min(i,t[1]),c=Math.max(c,t[0]),l=Math.max(l,t[1])}}}}}if(null!=t)if(f){const e=1e-4;d.push(2),d.push(2),d.push(4),d.push(s-e),d.push(i-e),d.push(0),d.push(c+e),d.push(i-e),d.push(0),d.push(c+e),d.push(l+e),d.push(0),d.push(s-e),d.push(l+e),d.push(0),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0);d.push(3);const m=new Float64Array(d.length);for(let t=0;t<d.length;++t)m[t]=d.at(t);return m}function g(t,e,n){const r=[];for(const o of t){const t=[];for(const r of o){if(!(0,c.F)(r,e,p,n)||!M(p))return null;t.push([p[0],p[1],p[2]])}r.push(t)}return r}function M(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function _(t,e){let n=0;for(const r of e){const e=r.geometry,o=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==o&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){const o=e.rings[r];n+=1;for(let s=0;s<o.length;++s){const o=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,o)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>i,aT:()=>s});var r=n(34727),o=n(35522);function s(t,e,n,r,o,s=2,i=0){const h=1/(Math.abs(n)+Math.abs(r)+Math.abs(o)),c=n*h,u=r*h,l=o<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,f=o<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,m=e*s+i;t[m]=a(l),t[m+1]=a(f)}function i(t,e,n,r=2,s=0){const i=n*r+s,a=h(e[i]),c=h(e[i+1]),u=1-Math.abs(a)-Math.abs(c);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=c),(0,o.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function h(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,o,s=!1,i=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=o,this.normalized=s,this.divisor=i,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},o={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},s=Object.values(o),i={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.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:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.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};n.d(e,["CQ",0,{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},"H0",0,o,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,i,"pe",0,r,"vt",0,{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}])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9328],{83349(t,e,n){function r(t,e,n){n=n||2;var r,s,a,l,h,c,x,f=e&&e.length,y=f?e[0]*n:t.length,d=i(t,0,y,n,!0),g=[];if(!d||d.next===d.prev)return g;if(f&&(d=u(t,e,d,n)),t.length>80*n){r=a=t[0],s=l=t[1];for(var p=n;p<y;p+=n)(h=t[p])<r&&(r=h),(c=t[p+1])<s&&(s=c),h>a&&(a=h),c>l&&(l=c);x=0!==(x=Math.max(a-r,l-s))?1/x:0}return o(d,g,n,r,s,x),g}function i(t,e,n,r,i){var s,o;if(i===L(t,e,n,r)>0)for(s=e;s<n;s+=r)o=S(s,t[s],t[s+1],o);else for(s=n-r;s>=e;s-=r)o=S(s,t[s],t[s+1],o);if(o&&w(o,o.next)){var a=o.next;V(o),o=a}return o}function s(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!w(r,r.next)&&0!==b(r.prev,r,r.next))r=r.next;else{var i=r.prev;if(V(r),(r=e=i)===r.next)break;n=!0}}while(n||r!==e);return e}function o(t,e,n,r,i,u,x){if(t){!x&&u&&g(t,r,i,u);for(var f,y,d=t;t.prev!==t.next;)if(f=t.prev,y=t.next,u?l(t,r,i,u):a(t))e.push(f.i/n),e.push(t.i/n),e.push(y.i/n),V(t),t=y.next,d=y.next;else if((t=y)===d){x?1===x?o(t=h(s(t),e,n),e,n,r,i,u,2):2===x&&c(t,e,n,r,i,u):o(s(t),e,n,r,i,u,1);break}}}function a(t){var e=t.prev,n=t,r=t.next;if(b(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&b(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,n,r){var i=t.prev,s=t,o=t.next;if(b(i,s,o)>=0)return!1;for(var a=i.x<s.x?i.x<o.x?i.x:o.x:s.x<o.x?s.x:o.x,l=i.y<s.y?i.y<o.y?i.y:o.y:s.y<o.y?s.y:o.y,h=i.x>s.x?i.x>o.x?i.x:o.x:s.x>o.x?s.x:o.x,c=i.y>s.y?i.y>o.y?i.y:o.y:s.y>o.y?s.y:o.y,u=p(a,l,e,n,r),x=p(h,c,e,n,r),f=t.prevZ,y=t.nextZ;f&&f.z>=u&&y&&y.z<=x;){if(f!==t.prev&&f!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,f.x,f.y)&&b(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,y!==t.prev&&y!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,y.x,y.y)&&b(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;f&&f.z>=u;){if(f!==t.prev&&f!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,f.x,f.y)&&b(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;y&&y.z<=x;){if(y!==t.prev&&y!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,y.x,y.y)&&b(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function h(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!w(i,o)&&v(i,r,r.next,o)&&T(i,o)&&T(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),V(r),V(r.next),r=t=o),r=r.next}while(r!==t);return s(r)}function c(t,e,n,r,i,a){var l=t;do{for(var h=l.next.next;h!==l.prev;){if(l.i!==h.i&&I(l,h)){var c=k(l,h);return l=s(l,l.next),c=s(c,c.next),o(l,e,n,r,i,a),void o(c,e,n,r,i,a)}h=h.next}l=l.next}while(l!==t)}function u(t,e,n,r){var o,a,l,h=[];for(o=0,a=e.length;o<a;o++)(l=i(t,e[o]*r,o<a-1?e[o+1]*r:t.length,r,!1))===l.next&&(l.steiner=!0),h.push(_(l));for(h.sort(x),o=0;o<h.length;o++)n=s(n=y(h[o],n),n.next);return n}function x(t,e){return t.x-e.x}function f(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function y(t,e){var n=function(t,e){var n,r=e,i=t.x,s=t.y,o=-1/0;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){var a=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>o){if(o=a,a===i){if(s===r.y)return r;if(s===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===o)return n;var l,h=n,c=n.x,u=n.y,x=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&m(s<u?i:o,s,c,u,s<u?o:i,s,r.x,r.y)&&(l=Math.abs(s-r.y)/(i-r.x),T(r,t)&&(l<x||l===x&&(r.x>n.x||r.x===n.x&&d(n,r)))&&(n=r,x=l)),r=r.next}while(r!==h);return n}(t,e);if(!n)return e;var r=k(n,t),i=s(n,n.next);let o=f(r);return s(o,o.next),i=f(i),f(e===n?i:e)}function d(t,e){return b(t.prev,t,e.prev)<0&&b(e.next,t,t.next)<0}function g(t,e,n,r){var i=t;do{null===i.z&&(i.z=p(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,s,o,a,l,h=1;do{for(n=t,t=null,s=null,o=0;n;){for(o++,r=n,a=0,e=0;e<h&&(a++,r=r.nextZ);e++);for(l=h;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,l--),s?s.nextZ=i:t=i,i.prevZ=s,s=i;n=r}s.nextZ=null,h*=2}while(o>1)}(i)}function p(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function _(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function m(t,e,n,r,i,s,o,a){return(i-o)*(e-a)-(t-o)*(s-a)>=0&&(t-o)*(r-a)-(n-o)*(e-a)>=0&&(n-o)*(s-a)-(i-o)*(r-a)>=0}function I(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&v(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,s=(t.y+e.y)/2;do{n.y>s!=n.next.y>s&&n.next.y!==n.y&&i<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(b(t.prev,t,e.prev)||b(t,e.prev,e))||w(t,e)&&b(t.prev,t,t.next)>0&&b(e.prev,e,e.next)>0)}function b(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function w(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,n,r){var i=P(b(t,e,n)),s=P(b(t,e,r)),o=P(b(n,r,t)),a=P(b(n,r,e));return i!==s&&o!==a||!(0!==i||!M(t,n,e))||!(0!==s||!M(t,r,e))||!(0!==o||!M(n,t,r))||!(0!==a||!M(n,e,r))}function M(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function P(t){return t>0?1:t<0?-1:0}function T(t,e){return b(t.prev,t,t.next)<0?b(t,e,t.next)>=0&&b(t,t.prev,e)>=0:b(t,e,t.prev)<0||b(t,t.next,e)<0}function k(t,e){var n=new A(t.i,t.x,t.y),r=new A(e.i,e.x,e.y),i=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,s.next=r,r.prev=s,r}function S(t,e,n,r){var i=new A(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function V(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function A(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function L(t,e,n,r){for(var i=0,s=e,o=n-r;s<n;s+=r)i+=(t[o]-t[s])*(t[s+1]+t[o+1]),o=s;return i}n.d(e,{e:()=>r}),r.deviation=function(t,e,n,r){var i=e&&e.length,s=i?e[0]*n:t.length,o=Math.abs(L(t,0,s,n));if(i)for(var a=0,l=e.length;a<l;a++){var h=e[a]*n,c=a<l-1?e[a+1]*n:t.length;o-=Math.abs(L(t,h,c,n))}var u=0;for(a=0;a<r.length;a+=3){var x=r[a]*n,f=r[a+1]*n,y=r[a+2]*n;u+=Math.abs((t[x]-t[y])*(t[f+1]-t[x+1])-(t[x]-t[f])*(t[y+1]-t[x+1]))}return 0===o&&0===u?0:Math.abs((u-o)/o)},r.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var s=0;s<t[i].length;s++)for(var o=0;o<e;o++)n.vertices.push(t[i][s][o]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},51624(t,e,n){n.d(e,{A:()=>h});var r=n(44208),i=n(69397),s=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,r.A)("safari")||(0,r.A)("ios")?6:(0,r.A)("ff")?12:32;class h{constructor(t,e,n=0,r=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,n,r)}[Symbol.dispose](){this.release()}_init(t,e,n,r){this._data=t,this._dataView=e,this._pos=n,this._end=r}get usedMemory(){return 64+(0,i.Qf)(this._data)}asUnsafe(){return this}clone(){return new h(this._data,this._dataView,this._pos,this._end)}clonePooled(){return h.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,n=0,r=t?.byteLength??0){const i=h.pool.acquire();return i._init(t,e,n,r),i}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return t;throw new Error("Varint overflow")}getPackedEnd(){const t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){const t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,e=this._pos,n=t.getUint32(e,!0)+t.getUint32(e+4,!0)*o;return this._skip(8),n}getSFixed64(){const t=this._dataView,e=this._pos,n=t.getUint32(e,!0)+t.getInt32(e+4,!0)*o;return this._skip(8),n}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),e=this._pos,n=this._toString(this._data,e,e+t);return this._skip(t),n}getBytes(){const t=this._getLength(),e=this._pos,n=this._toBytes(this._data,e,e+t);return this._skip(t),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,n,r){const i=this.getMessage(),s=t(i,e,n,r);return i.release(),s}processMessage(t){const e=this.getMessage(),n=t(e);return e.release(),n}getMessage(){const t=this._getLength(),e=h.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){h.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let e=this._pos,n=0,r=0;if(this._end-e>=10)do{if(r=t[e++],n|=127&r,!(128&r))break;if(r=t[e++],n|=(127&r)<<7,!(128&r))break;if(r=t[e++],n|=(127&r)<<14,!(128&r))break;if(r=t[e++],n|=(127&r)<<21,!(128&r))break;if(r=t[e++],n+=268435456*(127&r),!(128&r))break;if(r=t[e++],n+=34359738368*(127&r),!(128&r))break;if(r=t[e++],n+=4398046511104*(127&r),!(128&r))break;if(r=t[e++],n+=562949953421312*(127&r),!(128&r))break;if(r=t[e++],n+=72057594037927940*(127&r),!(128&r))break;if(r=t[e++],n+=0x8000000000000000*(127&r),!(128&r))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;e!==this._end&&(r=t[e],128&r);)++e,n+=(127&r)*i,i*=128;if(e===this._end)throw new Error("Varint overrun!");++e,n+=r*i}return this._pos=e,n}_decodeSVarint(){const t=this._data;let e,n=0,r=0;const i=1&t[this._pos];if(r=t[this._pos++],n|=127&r,!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n|=(127&r)<<7,!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n|=(127&r)<<14,!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n|=(127&r)<<21,!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n+=268435456*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n+=34359738368*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n+=4398046511104*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(e=BigInt(n),r=t[this._pos++],e+=0x2000000000000n*BigInt(127&r),!(128&r))return Number(i?-(e+1n)/2n:e/2n);if(r=t[this._pos++],e+=0x100000000000000n*BigInt(127&r),!(128&r))return Number(i?-(e+1n)/2n:e/2n);if(r=t[this._pos++],e+=0x8000000000000000n*BigInt(127&r),!(128&r))return Number(i?-(e+1n)/2n:e/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,n){if((n=Math.min(this._end,n))-e>l){const r=t.subarray(e,n);return a.decode(r)}let r="",i="";for(let s=e;s<n;++s){const e=t[s];128&e?i+="%"+e.toString(16):(r+=decodeURIComponent(i)+String.fromCharCode(e),i="")}return i.length&&(r+=decodeURIComponent(i)),r}_toBytes(t,e,n){return n=Math.min(this._end,n),new Uint8Array(t.buffer,e,n-e)}static{this.pool=new s.A(()=>new h(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},51118(t,e,n){function r(t){const e=[];for(t.reset();t.nextPath();){const n=[];for(;t.nextPoint();){const e=[t.x,t.y];t.hasZ&&e.push(t.z),t.hasM&&e.push(t.m),n.push(e)}e.push(n)}return t.reset(),e}function i(t){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);return t.seekPathStart(),e}n.d(e,{A:()=>i,x:()=>r})},15585(t,e,n){n.d(e,{If:()=>f,O5:()=>p,O9:()=>d,QT:()=>g,l3:()=>y});var r=n(32198),i=n(2741),s=n(49186),o=n(44208),a=n(34727);let l=null,h=null,c=null,u=null;const x=(new Float32Array(0),new Uint32Array(0),new Uint32Array(0),new Uint32Array(0),{vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0});async function f(){return l??=async function(){const t=await n.e(2997).then(()=>n(42997)),e=await t.default({locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`)});c=e}(),l}async function y(){return h??=async function(){const t=await n.e(9134).then(()=>n(99134)),e=await t.default({locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`)});u=e}(),h}function d(){return null!==u}function g(t,e,n=2){const i={stack:[],error:void 0,hasError:!1};try{const a=c;if(!a)throw new s.A("libtess:not-loaded","libtessF32 not loaded");const l=(0,r.mS)(i,b.from(a,t),!1),h=(0,r.mS)(i,v.from(a,e),!1),u=t.length/n*4,x=(0,r.mS)(i,new b(a,u*n),!1),f=a.triangulate(l.ptr,h.ptr,h.size,n,x.ptr,u);if((0,o.A)("esri-tessellation-debug")){const t=a.getError();0!==t&&console.warn("libtess:triangulation",M(t))}return{buffer:x.slice(0,f*n),vertexCount:f}}catch(t){i.error=t,i.hasError=!0}finally{(0,r.hk)(i)}}function p(t,e,n=2,i=!0){const l={stack:[],error:void 0,hasError:!1};try{const h=u;if(!h)throw new s.A("libtess:not-loaded","libtessF64 not loaded");const c=(0,r.mS)(l,w.from(h,t),!1),f=(0,r.mS)(l,v.from(h,e),!1),y=(0,r.mS)(l,new v(h,1),!1),d=(0,r.mS)(l,new v(h,1),!1),g=(0,r.mS)(l,new v(h,1),!1),p=(0,r.mS)(l,new v(h,1),!1),{maxVertexCount:_,maxIndexCount:m,maxOutlineIndexCount:b,maxOutlineRingCount:P}=function(t,e){const n=t.reduce((t,e)=>t+e,0),r=t.length,i=Math.max(0,t.length-1),s=Math.max(0,n+2*i-2),o=Math.max(0,Math.ceil(2*n)),l=Math.max(0,Math.ceil(3*s*2)),h=(0,a.mP)(l,3),c=n>0?Math.max(2,Math.ceil(.25*n)):0,u=n>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:o,maxIndexCount:h,maxOutlineIndexCount:e?Math.max(0,n+r+c):0,maxOutlineRingCount:e?Math.max(0,r+u):0}}(e,i);let T=0,k=0,S=0,V=0,A=0;{const t={stack:[],error:void 0,hasError:!1};try{const e=(0,r.mS)(t,new w(h,_*n),!1),s=(0,r.mS)(t,new v(h,m),!1),o=(0,r.mS)(t,i?new v(h,b):null,!1),a=(0,r.mS)(t,i?new v(h,P):null,!1);if(h.triangulateIndexed(c.ptr,f.ptr,f.size,n,e.ptr,_,n,s.ptr,m,y.ptr,d.ptr,o?.ptr??0,b,a?.ptr??0,P,g.ptr,p.ptr),A=h.getError(),T=I(h)[y.ptr/Int32Array.BYTES_PER_ELEMENT],k=I(h)[d.ptr/Int32Array.BYTES_PER_ELEMENT],S=I(h)[g.ptr/Int32Array.BYTES_PER_ELEMENT],V=I(h)[p.ptr/Int32Array.BYTES_PER_ELEMENT],0===A){const t=e.slice(0,T*n);return{vertices:t,indices:s.slice(0,k),outlineIndices:i&&o?o.slice(0,S):x.outlineIndices,outlineRingLengths:i&&a?a.slice(0,V):x.outlineRingLengths,vertexCount:T,indexCount:k,outlineIndexCount:i?S:0,outlineRingCount:i?V:0}}}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}if(100903!==A)return(0,o.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",M(A)),x;const L=(0,r.mS)(l,new w(h,T*n),!1),D=(0,r.mS)(l,new v(h,k),!1),B=(0,r.mS)(l,i?new v(h,S):null,!1),E=(0,r.mS)(l,i?new v(h,V):null,!1);if(h.triangulateIndexed(c.ptr,f.ptr,f.size,n,L.ptr,T,n,D.ptr,k,y.ptr,d.ptr,B?.ptr??0,i?S:0,E?.ptr??0,i?V:0,g.ptr,p.ptr),A=h.getError(),0!==A)return(0,o.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",M(A)),x;const C=I(h)[y.ptr/Int32Array.BYTES_PER_ELEMENT],R=I(h)[d.ptr/Int32Array.BYTES_PER_ELEMENT],N=I(h)[g.ptr/Int32Array.BYTES_PER_ELEMENT],z=I(h)[p.ptr/Int32Array.BYTES_PER_ELEMENT],U=L.slice(0,C*n);return{vertices:U,indices:D.slice(0,R),outlineIndices:i&&B?B.slice(0,N):x.outlineIndices,outlineRingLengths:i&&E?E.slice(0,z):x.outlineRingLengths,vertexCount:C,indexCount:R,outlineIndexCount:i?N:0,outlineRingCount:i?z:0}}catch(t){l.error=t,l.hasError=!0}finally{(0,r.hk)(l)}}function _(t){return t.HEAPF64}function m(t){return t.HEAPF32}function I(t){return t.HEAP32}class b{static from(t,e){const n=new b(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){m(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return m(this._libtess).slice(n+t,n+e)}}class w{static from(t,e){const n=new w(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){_(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return _(this._libtess).slice(n+t,n+e)}}class v{static from(t,e){const n=new v(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){I(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return function(t){const e=I(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}(this._libtess).slice(n+t,n+e)}}function M(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}},537(t,e,n){n.d(e,{B$:()=>g,LJ:()=>p,Pj:()=>I,Rg:()=>y,Yz:()=>_,z8:()=>d});var r=n(19419),i=n(79567),s=n(52006);function o(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function a(t){return void 0!==t.points}function l(t){return void 0!==t.x&&void 0!==t.y}function h(t){return void 0!==t.paths}function c(t){return void 0!==t.rings}function u(t){return function(e,n){return null==e?n:null==n?e:t(e,n)}}const x=u(Math.min),f=u(Math.max);function y(t,e){return h(e)?_(t,e.curvePaths??e.paths,!1,!1)??t:c(e)?_(t,e.curveRings??e.rings,!1,!1)??t:a(e)?I(t,e.points,!1,!1,!1,!1):o(e)?m(t,e):(l(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.x,t[3]=e.y),t)}function d(t){let e,n,i,s;for(t.reset(),e=i=1/0,n=s=-1/0;t.nextPath();){const r=g(t);e=Math.min(r[0],e),i=Math.min(r[1],i),n=Math.max(r[2],n),s=Math.max(r[3],s)}return(0,r.vt)([e,i,n,s])}function g(t){let e,n,i,s;for(e=i=1/0,n=s=-1/0;t.nextPoint();)e=Math.min(t.x,e),i=Math.min(t.y,i),n=Math.max(t.x,n),s=Math.max(t.y,s);return(0,r.vt)([e,i,n,s])}function p(t,e){return h(e)?_(t,e.curvePaths??e.paths,!0,!1)??t:c(e)?_(t,e.curveRings??e.rings,!0,!1)??t:a(e)?I(t,e.points,!0,!1,!0,!1):o(e)?m(t,e,0,0,!0,!1):(l(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.x,t[4]=e.y,t[5]=e.z),t)}function _(t,e,n,o){const a=n?3:2;if(!e.length||!e[0].length)return null;let l,h,c,u,[y,d]=(0,s.yP)(e[0][0]),g=y,p=d;for(let t=0;t<e.length;t++){const _=e[t];for(let t=0;t<_.length;t++){const e=(0,s.yP)(_[t]),[m,I]=e;if(y=x(y,m),d=x(d,I),g=f(g,m),p=f(p,I),n&&e.length>2){const t=e[2];l=x(l,t),h=f(h,t)}if(o&&e.length>a){const t=e[a];c=x(c,t),u=f(u,t)}const b=_[t];if((0,s.Xq)(b)||t<1)continue;const w=(0,s.yP)(_[t-1]),v=(0,r.fA)(y,d,g,p);[y,d,g,p]=(0,i.e)(v,w,b)}}return n?o?(t[0]=y,t[1]=d,t[2]=l,t[3]=c,t[4]=g,t[5]=p,t[6]=h,t[7]=u,t.length=8,t):(t[0]=y,t[1]=d,t[2]=l,t[3]=g,t[4]=p,t[5]=h,t.length=6,t):o?(t[0]=y,t[1]=d,t[2]=c,t[3]=g,t[4]=p,t[5]=u,t.length=6,t):(t[0]=y,t[1]=d,t[2]=g,t[3]=p,t.length=4,t)}function m(t,e,n,r,i,s){const o=e.xmin,a=e.xmax,l=e.ymin,h=e.ymax;let c=e.zmin,u=e.zmax,x=e.mmin,f=e.mmax;return i?(c=c||0,u=u||0,s?(x=x||0,f=f||0,t[0]=o,t[1]=l,t[2]=c,t[3]=x,t[4]=a,t[5]=h,t[6]=u,t[7]=f,t):(t[0]=o,t[1]=l,t[2]=c,t[3]=a,t[4]=h,t[5]=u,t)):s?(x=x||0,f=f||0,t[0]=o,t[1]=l,t[2]=x,t[3]=a,t[4]=h,t[5]=f,t):(t[0]=o,t[1]=l,t[2]=a,t[3]=h,t)}function I(t,e,n,r,i,s){const o=n?3:2,a=r&&s,l=n&&i;if(!e.length||!e[0].length)return null;let h,c,u,y,[d,g]=e[0],[p,_]=e[0];for(let t=0;t<e.length;t++){const n=e[t],[r,i]=n;if(d=x(d,r),g=x(g,i),p=f(p,r),_=f(_,i),l&&n.length>2){const t=n[2];h=x(h,t),c=f(c,t)}if(a&&n.length>o){const t=n[o];u=x(h,t),y=f(c,t)}}return i?(h=h||0,c=c||0,s?(u=u||0,y=y||0,t[0]=d,t[1]=g,t[2]=h,t[3]=u,t[4]=p,t[5]=_,t[6]=c,t[7]=y,t):(t[0]=d,t[1]=g,t[2]=h,t[3]=p,t[4]=_,t[5]=c,t)):s?(u=u||0,y=y||0,t[0]=d,t[1]=g,t[2]=u,t[3]=p,t[4]=_,t[5]=y,t):(t[0]=d,t[1]=g,t[2]=p,t[3]=_,t)}},12359(t,e,n){n.d(e,{IK:()=>c,TP:()=>u,Ve:()=>a,Z4:()=>s,l8:()=>o,w2:()=>h});var r=n(51118),i=n(95108);function s({xmin:t,xmax:e,ymin:n,ymax:r,zmin:i,zmax:s,hasZ:o}){const a=[(t+e)/2,(n+r)/2];return o&&a.push((i+s)/2),a}function o(t){return function(t,e){if(!t?.length)return null;const n=[],r=[],s=e?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let n=0,i=t.length;n<i;n++){const i=l(t[n],e,s);i&&r.push(i)}if(r.sort((t,n)=>{let r=t[2]-n[2];return 0===r&&e&&(r=t[4]-n[4]),r}),r.length&&(n[0]=r[0][0],n[1]=r[0][1],e&&(n[2]=r[0][3]),(n[0]<s[0]||n[0]>s[1]||n[1]<s[2]||n[1]>s[3]||e&&(n[2]<s[4]||n[2]>s[5]))&&(n.length=0)),!n.length){const r=t[0]&&t[0].length?function(t,e){const n=e?[0,0,0]:[0,0],r=e?[0,0,0]:[0,0];let s=0,o=0,a=0,l=0;for(let h=0,c=t.length;h<c-1;h++){const c=t[h],u=t[h+1];if(c&&u){n[0]=c[0],n[1]=c[1],r[0]=u[0],r[1]=u[1],e&&c.length>2&&u.length>2&&(n[2]=c[2],r[2]=u[2]);const t=(0,i.R3)(n,r);if(t){s+=t;const n=(0,i.t9)(c,u);o+=t*n[0],a+=t*n[1],e&&n.length>2&&(l+=t*n[2])}}}return s>0?e?[o/s,a/s,l/s]:[o/s,a/s]:t.length?t[0]:null}(t[0],e):null;if(!r)return null;n[0]=r[0],n[1]=r[1],e&&r.length>2&&(n[2]=r[2])}return n}(t.rings,t.hasZ??!1)}function a(t){const e=o(t);if(!e)return null;const{hasZ:n,spatialReference:r}=t,[i,s,a]=e;return isNaN(i)||isNaN(s)||n&&isNaN(a)?null:{x:i,y:s,z:n?a:void 0,spatialReference:r}}function l(t,e,n){let r=0,i=0,s=0,o=0,a=0;const l=t.length?t[0][0]:0,h=t.length?t[0][1]:0,c=t.length&&e?t[0][2]:0;for(let u=0;u<t.length;u++){const x=t[u],f=t[(u+1)%t.length],[y,d,g]=x,p=y-l,_=d-h,[m,I,b]=f,w=m-l,v=I-h,M=p*v-w*_;if(o+=M,r+=(p+w)*M,i+=(_+v)*M,e&&x.length>2&&f.length>2){const t=g-c,e=b-c,n=p*e-w*t;s+=(t+e)*n,a+=n}y<n[0]&&(n[0]=y),y>n[1]&&(n[1]=y),d<n[2]&&(n[2]=d),d>n[3]&&(n[3]=d),e&&(g<n[4]&&(n[4]=g),g>n[5]&&(n[5]=g))}if(o>0&&(o*=-1),a>0&&(a*=-1),!o)return null;o*=.5,a*=.5;const u=[r/(6*o)+l,i/(6*o)+h,o];return e&&(n[4]===n[5]||0===a?(u[3]=(n[4]+n[5])/2,u[4]=0):(u[3]=s/(6*a)+c,u[4]=a)),u}function h(t,e){let n=0,r=0,i=0;t.nextPoint();const s=t.pathSize?t.x:0,o=t.pathSize?t.y:0;for(let a=0;a<t.pathSize;a++){t.seekInPath(a);const l=[t.x,t.y];t.seekInPath((a+1)%t.pathSize);const h=[t.x,t.y],[c,u]=l,x=c-s,f=u-o,[y,d]=h,g=y-s,p=d-o,_=x*p-g*f;i+=_,n+=(x+g)*_,r+=(f+p)*_,c<e[0]&&(e[0]=c),c>e[1]&&(e[1]=c),u<e[2]&&(e[2]=u),u>e[3]&&(e[3]=u)}return i>0&&(i*=-1),i?(i*=.5,[n/(6*i)+s,r/(6*i)+o,i]):null}function c(t){const{hasZ:e,totalSize:n}=t;if(0===n)return null;const s=[],o=[],a=e?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const e=l((0,r.A)(t),t.hasZ,a);e&&o.push(e)}if(o.sort((t,n)=>{let r=t[2]-n[2];return 0===r&&e&&(r=t[4]-n[4]),r}),o.length&&(s[0]=o[0][0],s[1]=o[0][1],e&&(s[2]=o[0][3]),(s[0]<a[0]||s[0]>a[1]||s[1]<a[2]||s[1]>a[3]||e&&(s[2]<a[4]||s[2]>a[5]))&&(s.length=0)),!s.length){t.reset(),t.nextPath();const n=t.pathSize?function(t){const{hasZ:e}=t,n=e?[0,0,0]:[0,0],r=e?[0,0,0]:[0,0];let s=0,o=0,a=0,l=0;if(t.nextPoint()){let h=t.x,c=t.y,u=t.z;for(;t.nextPoint();){const x=t.x,f=t.y,y=t.z;n[0]=h,n[1]=c,r[0]=x,r[1]=f,e&&(n[2]=u,r[2]=y);const d=(0,i.R3)(n,r);if(d){s+=d;const t=(0,i.t9)(n,r);o+=d*t[0],a+=d*t[1],e&&t.length>2&&(l+=d*t[2])}h=x,c=f,u=y}}return s>0?e?[o/s,a/s,l/s]:[o/s,a/s]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!n)return null;s[0]=n[0],s[1]=n[1],e&&n.length>2&&(s[2]=n[2])}return s}function u(t){let e=0;for(t.reset();t.nextPath();)e+=t.getCurrentRingArea();if(e<1e-6){const e=c(t);return e?[e[0],e[1]]:null}const n=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const r=[t.x,t.y];for(t.reset();t.nextPath();)f(n,r,t);return n[0]*=1/e,n[1]*=1/e,n[0]+=r[0],n[1]+=r[1],n}const x=1/3;function f(t,e,n){if(!t||!n||n.pathSize<3)return null;n.nextPoint();const r=n.x,i=n.y;n.nextPoint();let s,o=n.x-r,a=n.y-i,l=0,h=0;for(;n.nextPoint();)l=n.x-r,h=n.y-i,s=.5*x*(l*a-h*o),t[0]+=s*(o+l),t[1]+=s*(a+h),o=l,a=h;const c=n.getCurrentRingArea(),u=[r,i];return u[0]-=e[0],u[1]-=e[1],u[0]*=c,u[1]*=c,t[0]+=u[0],t[1]+=u[1],t}},95108(t,e,n){n.d(e,{$3:()=>c,Ng:()=>a,R3:()=>i,Xf:()=>o,Yl:()=>h,gR:()=>s,m3:()=>x,t9:()=>l});var r=n(4576);function i(t,e){const n=e[0]-t[0],r=e[1]-t[1];if(t.length>2&&e.length>2){const i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}return Math.sqrt(n*n+r*r)}function s(t,e,n,r){const[i,s]=e,[o,a]=n,[l,h]=r,c=l-o,u=h-a,x=c*c+u*u,f=(i-o)*c+(s-a)*u,y=Math.min(1,Math.max(0,f/x));return t[0]=o+c*y,t[1]=a+u*y,t}function o(t,e,n){let r,i,s,o,l=!1,h=1/0;for(n.reset();n.nextPath();)if(n.nextPoint())for(r=n.x,i=n.y;n.nextPoint();)s=n.x,o=n.y,i>e!=o>e&&t<(s-r)*(e-i)/(o-i)+r&&(l=!l),h=Math.min(h,a(t,e,r,i,s,o)),r=s,i=o;return 0===h?0:(l?1:-1)*Math.sqrt(h)}function a(t,e,n,r,i,s){let o=n,a=r,l=i-o,h=s-a;if(0!==l||0!==h){const n=((t-o)*l+(e-a)*h)/(l*l+h*h);n>1?(o=i,a=s):n>0&&(o+=l*n,a+=h*n)}return l=t-o,h=e-a,l*l+h*h}function l(t,e){return function(t,e,n){const r=t[0]+n*(e[0]-t[0]),i=t[1]+n*(e[1]-t[1]);return t.length>2&&e.length>2?[r,i,t[2]+n*(e[2]-t[2])]:[r,i]}(t,e,.5)}function h(t){const e=t.length;let n=0;for(let r=0;r<e-1;++r)n+=i(t[r],t[r+1]);return n}function c(t,e=0,n=1){let r=0;const i=t.length;let s=t[0];for(let o=1;o<i;o++){const i=t[o];r+=(i[e]-s[e])*(i[n]+s[n]),s=i}if(u(t)){const i=t[0];r+=(i[e]-s[e])*(i[n]+s[n])}return r>=0}function u(t){const e=t.length;return e>0&&!(0,r.aI)(t[0],t[e-1])}function x(t){if("rings"in t)for(const e of t.rings)u(e)&&e.push(e[0].slice())}n(52006)},97770(t,e,n){n.d(e,{Ey:()=>D,F8:()=>L,J2:()=>k,Yq:()=>V,_m:()=>S,iS:()=>A,wj:()=>B});var r=n(66552),i=n(73444),s=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},u={year:"numeric",month:"long",day:"numeric"},x={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},y={hour:"numeric",minute:"numeric"},d={...y,second:"numeric"},g={hourCycle:"h23"},p={...y,...g},_={...d,...g},m={"short-date":c,"short-date-short-time":{...c,...y},"short-date-short-time-24":{...c,...p},"short-date-long-time":{...c,...d},"short-date-long-time-24":{...c,..._},"short-date-le":c,"short-date-le-short-time":{...c,...y},"short-date-le-short-time-24":{...c,...p},"short-date-le-long-time":{...c,...d},"short-date-le-long-time-24":{...c,..._},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...y},"long-month-day-year-short-time-24":{...u,...p},"long-month-day-year-long-time":{...u,...d},"long-month-day-year-long-time-24":{...u,..._},"day-short-month-year":x,"day-short-month-year-short-time":{...x,...y},"day-short-month-year-short-time-24":{...x,...p},"day-short-month-year-long-time":{...x,...d},"day-short-month-year-long-time-24":{...x,..._},"long-date":f,"long-date-short-time":{...f,...y},"long-date-short-time-24":{...f,...p},"long-date-long-time":{...f,...d},"long-date-long-time-24":{...f,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":y,"long-time":d},I=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},w=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),v=w.find(({type:t})=>"month"===t)?.value.toLowerCase();function M(){const t=(0,i.lR)();return(t&&b[t])??(0,i.QC)()}"mart"!==v&&(b.bs="sr-Latn-CS");let P=new WeakMap;const T=m["short-date-short-time"];function k(t){return m[t]}function S(t){const{dateStyle:e,timeStyle:n,hour12:r,year:i,month:s}=t,o={};return e?o.dateStyle=e:i&&(o.year=i,o.month=s||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function V(t,e=T){return function(t){let e=P.get(t);if(!e){const n=M(),r=B(t.timeZone??"system"),i={...t,timeZone:r};e=new Intl.DateTimeFormat(n,i),P.set(t,e)}return e}(e).format(t)}function A(t,e=T){return V(new Date(t),{...e,...h,...l})}function L(t,e=T){return V(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function D(t,e=T){const n=o.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return V(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:r};return n.toLocaleString(i,{locale:M()})}function B(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,i.Ml)(()=>{P=new WeakMap}),n.d(e,["_v",0,I])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>g,QC:()=>u,lR:()=>c,oQ:()=>y});var r=n(36563);let i;n(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function l(){return void 0===i&&(i=a()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=l()){return x(t)?.language}function u(t=l()){const e=x(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function x(t=l()){return h.exec(t)?.groups}const f=[];function y(t){return f.push(t),(0,r.hA)(()=>{f.splice(f.indexOf(t),1)})}new Map;const d=[];function g(t){return d.push(t),(0,r.hA)(()=>d.splice(d.indexOf(t),1))}function p(){const t=a();i!==t&&([...d].forEach(e=>e(t)),i=t,[...f].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",p),o&&new MutationObserver(()=>{p()}).observe(o,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},36984(t,e,n){n.r(e),n.d(e,{default:()=>X});var r=n(17676),i=n(29953),s=n(6774),o=n(13195);function a(t){return 746===t||747===t||!(t<4352)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103&&!(t>=65097&&t<=65103)||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351&&!(t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=12592&&t<=12687||t>=43360&&t<=43391||t>=55216&&t<=55295||t>=4352&&t<=4607||t>=44032&&t<=55215||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12688&&t<=12703||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543&&12540!==t||t>=65280&&t<=65519&&!(65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||t>=65104&&t<=65135&&!(t>=65112&&t<=65118||t>=65123&&t<=65126)||t>=5120&&t<=5759||t>=6320&&t<=6399||t>=65040&&t<=65055||t>=19904&&t<=19967||t>=40960&&t<=42127||t>=42128&&t<=42191)}function l(t){return!(t<11904)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=65280&&t<=65519||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543||t>=65040&&t<=65055||t>=42128&&t<=42191||t>=40960&&t<=42127)}function h(t){switch(t){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(t){switch(t){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=n(18989);class x{constructor(t,e,n,r,i,s,o){this._glyphItems=t,this._maxWidth=e,this._lineHeight=n,this._letterSpacing=r,this._hAnchor=i,this._vAnchor=s,this._justify=o}getShaping(t,e,n){const r=this._letterSpacing,i=this._lineHeight,s=this._justify,o=this._maxWidth,u=[];let x=0,f=0;for(const e of t){const t=e.codePointAt(0);if(null==t)continue;const i=n&&a(t);let s;for(const e of this._glyphItems)if(s=e[t],s)break;u.push({codePoint:t,x,y:f,vertical:i,glyphItem:s}),s&&(x+=s.shaping.xAdvance+r)}let y=x;o>0&&(y=x/Math.max(1,Math.ceil(x/o)));const d=t.includes(""),g=[],p=u.length;for(let t=0;t<p-1;t++){const e=u[t].codePoint,n=l(e);if(h(e)||n){let r=0;if(10===e)r-=1e4;else if(n&&d)r+=150;else{40!==e&&65288!==e||(r+=50);const n=u[t+1].codePoint;41!==n&&65289!==n||(r+=50)}g.push(this._buildBreak(t+1,u[t].x,y,g,r,!1))}}const _=this._optimalBreaks(this._buildBreak(p,x,y,g,0,!0));let m=0;const I=e?-i:i;let b=0;for(let t=0;t<_.length;t++){const e=_[t];let n=b;for(;n<e&&c(u[n].codePoint);)u[n].glyphItem=null,++n;let r=e-1;for(;r>n&&c(u[r].codePoint);)u[r].glyphItem=null,--r;if(n<=r){const t=u[n].x;for(let e=n;e<=r;e++)u[e].x-=t,u[e].y=f;let e=u[r].x;u[r].glyphItem&&(e+=u[r].glyphItem.shaping.xAdvance),m=Math.max(e,m),s&&this._applyJustification(u,n,r)}b=e,f+=I}if(u.length>0){const t=_.length-1,n=(s-this._hAnchor)*m;let r=(-this._vAnchor*(t+1)+.5)*i;e&&t&&(r+=t*i);for(const t of u)t.x+=n,t.y+=r}return u.filter(t=>t.glyphItem)}static getTextBox(t,e){if(!t.length)return null;let n=1/0,r=1/0,i=0,s=0;for(const o of t){const t=o.glyphItem.shaping.xAdvance,a=o.x,l=o.y-17,h=a+t,c=l+e;n=Math.min(n,a),i=Math.max(i,h),r=Math.min(r,l),s=Math.max(s,c)}return{x:n,y:r,width:i-n,height:s-r}}static getBox(t){if(!t.length)return null;let e=1/0,n=1/0,r=0,i=0;for(const s of t){const{height:t,left:o,top:a,width:l}=s.glyphItem.rect,h=s.x,c=s.y-(t-Math.abs(a)),u=h+l+o,x=c+t;e=Math.min(e,h),r=Math.max(r,u),n=Math.min(n,c),i=Math.max(i,x)}return{x:e,y:n,width:r-e,height:i-n}}static addDecoration(t,e){const n=t.length;if(0===n)return;const r={rect:new u.A(4,0,4,8),sdf:!0,page:0};let i=t[0].x+t[0].glyphItem.rect.left,s=t[0].y;for(let o=1;o<n;o++){const n=t[o];if(n.y!==s){const a=t[o-1].x+t[o-1].glyphItem.rect.left+t[o-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:s+e-3,vertical:!1,glyphItem:{mosaicItem:r,rect:{width:a-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}}),s=n.y,i=n.x+n.glyphItem.rect.left}}const o=t[n-1].x+t[n-1].glyphItem.rect.left+t[n-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:s+e-3,vertical:!1,glyphItem:{mosaicItem:r,rect:{width:o-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}})}_breakScore(t,e,n,r){const i=(t-e)*(t-e);return r?t<e?i/2:2*i:i+Math.abs(n)*n}_buildBreak(t,e,n,r,i,s){let o=null,a=this._breakScore(e,n,i,s);for(const t of r){const r=e-t.x,l=this._breakScore(r,n,i,s)+t.score;l<=a&&(o=t,a=l)}return{index:t,x:e,score:a,previousBreak:o}}_optimalBreaks(t){return t?this._optimalBreaks(t.previousBreak).concat(t.index):[]}_applyJustification(t,e,n){const r=t[n],i=r.vertical?24:r.glyphItem?r.glyphItem.shaping.xAdvance:0,s=(r.x+i)*this._justify;for(let r=e;r<=n;r++)t[r].x-=s}}const f=.5;class y{constructor(t,e,n=0,r=-1,i=f){this.x=t,this.y=e,this.angle=n,this.segment=r,this.minzoom=i}}class d{constructor(t,e,n,r,i,s=f,a=o.MG){this.anchor=t,this.labelAngle=e,this.glyphAngle=n,this.page=r,this.alternateVerticalGlyph=i,this.minzoom=s,this.maxzoom=a}}class g{constructor(t,e,n,r,i,s,o,a,l,h,c,u){this.tl=t,this.tr=e,this.bl=n,this.br=r,this.mosaicRect=i,this.labelAngle=s,this.minAngle=o,this.maxAngle=a,this.anchor=l,this.minzoom=h,this.maxzoom=c,this.page=u}}class p{constructor(t){this.shapes=t}}class _{getIconPlacement(t,e,n){const r=new s.bR(t.x,t.y),i=0===n.rotationAlignment,a=n.keepUpright;let l=n.rotate*o.os;i&&(l+=t.angle);const h=new p([]);return h.iconColliders=[],this._addIconPlacement(h,r,e,n,l),i&&a&&this._addIconPlacement(h,r,e,n,l+o.Jo),h}_addIconPlacement(t,e,n,r,i){const a=n.rasterizationScale,l=n.width/a,h=n.height/a,c=r.offset;let u=c[0],x=c[1];switch(r.anchor){case 0:u-=l/2,x-=h/2;break;case 1:x-=h/2;break;case 2:u-=l,x-=h/2;break;case 3:u-=l/2;break;case 4:u-=l/2,x-=h;break;case 5:break;case 7:x-=h;break;case 6:u-=l;break;case 8:u-=l,x-=h}const y=n.rect,d=2/a,p=u-d,_=x-d,m=p+y.width/a,I=_+y.height/a,b=new s.bR(p,_),w=new s.bR(m,I),v=new s.bR(p,I),M=new s.bR(m,_);if(0!==i){const t=Math.cos(i),e=Math.sin(i);b.rotate(t,e),w.rotate(t,e),v.rotate(t,e),M.rotate(t,e)}const P=new g(b,M,v,w,y,i,0,256,e,f,o.MG,0);t.shapes.push(P);{const n=r.size,s=r.padding,a={xTile:e.x,yTile:e.y,dxPixels:u*n-s,dyPixels:x*n-s,hard:!r.optional,partIndex:0,width:l*n+2*s,height:h*n+2*s,angle:i,minLod:f,maxLod:o.MG};t.iconColliders.push(a)}}getTextPlacement(t,e,n,r){const i=new s.bR(t.x,t.y),{keepUpright:a,rotate:l,rotationAlignment:h,size:c}=r,u=l*o.os,y=0===h,_=a,m=r.padding;let I=f;const b=y?t.angle:0,w=t.segment>=0&&y,v=[],M=[],P=!w;let T=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,S=T,V=k;const A=(w||y)&&_,L=c/24;let D=!1;for(const t of e)if(t.vertical){D=!0;break}let B,E=0,C=0;if(!w&&D){const t=x.getTextBox(e,24*r.lineHeight);switch(r.anchor){case 1:E=t.height/2,C=-t.width/2;break;case 2:E=-t.height/2,C=t.width/2;break;case 3:E=t.height/2,C=t.width/2;break;case 4:E=-t.height/2,C=-t.width/2;break;case 5:E=t.height;break;case 7:C=-t.width;break;case 6:C=t.width;break;case 8:E=-t.height}}E+=24*r.offset[0],C+=24*r.offset[1];for(const a of e){const e=a.glyphItem?.mosaicItem,l=a.glyphItem?.rect;if(!e||e.rect.isEmpty)continue;const h=e.rect,c=e.page;if(v&&P){if(void 0!==B&&B!==a.y){let e,n,i,s;D?(e=-V+E,n=T+C,i=V-S,s=k-T):(e=T+E,n=S+C,i=k-T,s=V-S);const a={xTile:t.x,yTile:t.y,dxPixels:e*L-m,dyPixels:n*L-m,hard:!r.optional,partIndex:1,width:i*L+2*m,height:s*L+2*m,angle:u,minLod:f,maxLod:o.MG};v.push(a),T=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,S=T,V=k}B=a.y}const x=[];if(w){const e=.5*l.width,r=(a.x+l.left-3+e)*L*8;if(I=this._placeGlyph(t,I,r,n,t.segment,1,a.vertical,c,x),_&&(I=this._placeGlyph(t,I,r,n,t.segment,-1,a.vertical,c,x)),I>=2)break}else x.push(new d(i,b,b,c,!1)),y&&_&&x.push(new d(i,b+o.Jo,b+o.Jo,c,!1));const p=a.x+l.left,R=a.y-17-l.top,N=p+l.width,z=R+l.height;let U,F,O,G,Z,Y,W,q;if(!w&&D)if(a.vertical){const t=(p+N)/2-l.height/2,e=(R+z)/2+l.width/2;U=new s.bR(-e-3+E,t-3+C),F=new s.bR(U.x+h.width,U.y+h.height),O=new s.bR(U.x,F.y),G=new s.bR(F.x,U.y)}else U=new s.bR(3-R+E,p-3+C),F=new s.bR(U.x-h.height,U.y+h.width),O=new s.bR(F.x,U.y),G=new s.bR(U.x,F.y);else U=new s.bR(p-3+E,R-3+C),F=new s.bR(U.x+h.width,U.y+h.height),O=new s.bR(U.x,F.y),G=new s.bR(F.x,U.y);for(const e of x){let n,i,o,c;if(e.alternateVerticalGlyph){if(!Z){const t=(R+z)/2+C;Z=new s.bR((p+N)/2+E-l.height/2-3,t+l.width/2+3),Y=new s.bR(Z.x+h.height,Z.y-h.width),W=new s.bR(Y.x,Z.y),q=new s.bR(Z.x,Y.y)}n=Z,i=W,o=q,c=Y}else n=U,i=O,o=G,c=F;const x=R,f=z,y=e.glyphAngle+u;if(0!==y){const t=Math.cos(y),e=Math.sin(y);n=n.clone(),i=i?.clone(),o=o?.clone(),c=c?.clone(),n.rotate(t,e),c?.rotate(t,e),i?.rotate(t,e),o?.rotate(t,e)}let d=0,_=256;if(w&&D?a.vertical?e.alternateVerticalGlyph?(d=32,_=96):(d=224,_=32):(d=224,_=96):(d=192,_=64),M.push(new g(n,o,i,c,h,e.labelAngle,d,_,e.anchor,e.minzoom,e.maxzoom,e.page)),v&&(!A||this._legible(e.labelAngle)))if(P)p<T&&(T=p),x<S&&(S=x),N>k&&(k=N),f>V&&(V=f);else if(e.minzoom<2){const n={xTile:t.x,yTile:t.y,dxPixels:(p+E)*L-m,dyPixels:(x+E)*L-m,hard:!r.optional,partIndex:1,width:(N-p)*L+2*m,height:(f-x)*L+2*m,angle:y,minLod:e.minzoom,maxLod:e.maxzoom};v.push(n)}}}if(I>=2)return null;if(v&&P){let e,n,i,s;D?(e=-V+E,n=T+C,i=V-S,s=k-T):(e=T+E,n=S+C,i=k-T,s=V-S);const a={xTile:t.x,yTile:t.y,dxPixels:e*L-m,dyPixels:n*L-m,hard:!r.optional,partIndex:1,width:i*L+2*m,height:s*L+2*m,angle:u,minLod:f,maxLod:o.MG};v.push(a)}const R=new p(M);return v&&v.length>0&&(R.textColliders=v),R}_legible(t){const e=(0,o.z0)(t);return e<65||e>=193}_placeGlyph(t,e,n,r,i,a,l,h,c){let u=a;const x=u<0?(0,o.Wh)(t.angle+o.Jo,o.pJ):t.angle;let f=0;n<0&&(u*=-1,n*=-1,f=o.Jo),u>0&&++i;let y=new s.bR(t.x,t.y),g=r[i],p=o.MG;if(r.length<=i)return p;for(;;){const t=g.x-y.x,s=g.y-y.y,a=Math.sqrt(t*t+s*s),_=Math.max(n/a,e),m=t/a,I=s/a,b=(0,o.Wh)(Math.atan2(I,m)+f,o.pJ);if(c.push(new d(y,x,b,h,!1,_,p)),l&&c.push(new d(y,x,b,h,!0,_,p)),_<=e)return _;y=g.clone();do{if(i+=u,r.length<=i||i<0)return _;g=r[i]}while(y.isEqual(g));let w=g.x-y.x,v=g.y-y.y;const M=Math.sqrt(w*w+v*v);w*=a/M,v*=a/M,y.x-=w,y.y-=v,p=_}}}var m=n(51624),I=n(15585);class b{constructor(t,e,n=0){this.values={},this._geometry=void 0,this._pbfGeometry=null,this.featureIndex=n;const r=e.keys,i=e.values,s=t.asUnsafe();for(;s.next();)switch(s.tag()){case 1:this.id=s.getUInt64();break;case 2:{const t=s.getMessage().asUnsafe(),e=this.values;for(;!t.empty();){const n=t.getUInt32(),s=t.getUInt32();e[r[n]]=i[s]}t.release();break}case 3:this.type=s.getUInt32();break;case 4:this._pbfGeometry=s.getMessage();break;default:s.skip()}}getGeometry(t){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const e=this._pbfGeometry.asUnsafe();let n,r;this._pbfGeometry=null,t?t.reset(this.type):n=[];let i,o=1,a=0,l=0,h=0;for(;!e.empty();){if(0===a){const t=e.getUInt32();o=7&t,a=t>>3}switch(a--,o){case 1:l+=e.getSInt32(),h+=e.getSInt32(),t?t.moveTo(l,h):n&&(r&&n.push(r),r=[],r.push(new s.bR(l,h)));break;case 2:l+=e.getSInt32(),h+=e.getSInt32(),t?t.lineTo(l,h):r&&r.push(new s.bR(l,h));break;case 7:t?t.close():r&&!r[0].equals(l,h)&&r.push(r[0].clone());break;default:throw e.release(),new Error("Invalid path operation")}}return t?i=t.result():n&&(r&&n.push(r),i=n),e.release(),this._geometry=i,i}}n(44208);class w{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}}class v extends w{constructor(){super(12)}add(t,e,n){const r=this.array;r.push(t),r.push(e),r.push(n)}}class M{constructor(t){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=t.clone();const e=t.asUnsafe();for(;e.next();)switch(e.tag()){case 1:this.name=e.getString();break;case 3:this.keys.push(e.getString());break;case 4:this.values.push(e.processMessage(M._parseValue));break;case 5:this.extent=e.getUInt32();break;default:e.skip()}}getData(){return this._pbfLayer}static _parseValue(t){for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getInt64();case 5:return t.getUInt64();case 6:return t.getSInt64();case 7:return t.getBool();default:t.skip()}return null}}var P=n(89518);class T extends w{constructor(t){super(t)}add(t,e,n,r,i,s,o,a,l,h,c,u){const x=this.array;let f=(0,P.M9)(t,e);x.push(f);const y=31;f=(0,P.Ss)(Math.round(y*n),Math.round(y*r),Math.round(y*i),Math.round(y*s)),x.push(f),f=(0,P.Ss)(Math.round(y*o),Math.round(y*a),Math.round(y*l),Math.round(y*h)),x.push(f),f=(0,P.M9)(c,0),x.push(f),u&&x.push(...u)}}class k extends w{constructor(t){super(t)}add(t,e,n){const r=this.array;r.push((0,P.M9)(t,e)),n&&r.push(...n)}}class S extends w{constructor(t){super(t)}add(t,e,n,r,i,s,o){const a=this.array,l=this.index;let h=(0,P.M9)(t,e);return a.push(h),h=(0,P.Ss)(Math.round(15*n),Math.round(15*r),i,s),a.push(h),o&&a.push(...o),l}}class V extends w{constructor(t){super(t)}add(t,e,n,r,i,s,a,l,h,c,u,x){const f=this.array;let y=(0,P.M9)(t,e);f.push(y),y=(0,P.M9)(Math.round(8*n),Math.round(8*r)),f.push(y),y=(0,P.M9)((0,P.ws)(i/4,s/4),(0,P.ws)(l,h)),f.push(y),y=(0,P.M9)((0,P.ws)(0,(0,o.z0)(a)),(0,P.ws)(10*c,Math.min(10*u,255))),f.push(y),x&&f.push(...x)}}class A extends w{constructor(t){super(t)}add(t,e,n,r,i){const s=this.array,o=(0,P.M9)(2*t+n,2*e+r);s.push(o),i&&s.push(...i)}}class L{constructor(t,e,n){this.layerExtent=4096,this._features=[],this.layer=t,this.zoom=e,this._spriteInfo=n,this._filter=t.getFeatureFilter()}pushFeature(t){this._filter&&!this._filter.filter(t,this.zoom)||this._features.push(t)}hasFeatures(){return this._features.length>0}getResources(t,e,n){}}class D extends L{constructor(t,e,n,r,i){super(t,e,n),this.type=4,this._circleVertexBuffer=r,this._circleIndexBuffer=i}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(t){const e=this._circleVertexBuffer,n=this._circleIndexBuffer;this._circleIndexStart=3*n.index,this._circleIndexCount=0;const r=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);for(const s of this._features){const o=s.getGeometry(t);if(!o)continue;const a=r.circleMaterial.encodeAttributes(s,i,r);for(const t of o)if(t)for(const r of t){const t=e.index;e.add(r.x,r.y,0,0,a),e.add(r.x,r.y,0,1,a),e.add(r.x,r.y,1,0,a),e.add(r.x,r.y,1,1,a),n.add(t,t+1,t+2),n.add(t+1,t+2,t+3),this._circleIndexCount+=6}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this._circleVertexBuffer.array.length,t+=this._circleIndexBuffer.array.length;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let r=0;e[r++]=this.type,e[r++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[r++]=this.layerUIDs[t];e[r++]=this._circleIndexStart,e[r++]=this._circleIndexCount,e[r++]=this._circleVertexBuffer.array.length;for(let t=0;t<this._circleVertexBuffer.array.length;t++)n[r++]=this._circleVertexBuffer.array[t];e[r++]=this._circleIndexBuffer.array.length;for(let t=0;t<this._circleIndexBuffer.array.length;t++)e[r++]=this._circleIndexBuffer.array[t];return e.buffer}}var B=n(98291),E=n(83349);class C extends L{constructor(t,e,n,r,i,s,o){super(t,e,n),this.type=1,this._patternMap=new Map,this._fillVertexBuffer=r,this._fillIndexBuffer=i,this._outlineVertexBuffer=s,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(t,e,n){const r=this.layer,i=this.zoom,s=r.getPaintProperty("fill-pattern");if(s)if(s.isDataDriven)for(const t of this._features)e(s.getValue(i,t),!0);else e(s.getValue(i),!0)}processFeatures(t){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const e=this.layer,n=this.zoom,{fillMaterial:r,outlineMaterial:i,hasDataDrivenFill:s,hasDataDrivenOutline:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("fill-pattern"),l=a?.isDataDriven;let h=!a&&e.getPaintValue("fill-antialias",n);if(e.outlineUsesFillColor){if(h&&!e.hasDataDrivenOpacity){const t=e.getPaintValue("fill-opacity",n),r=e.getPaintValue("fill-opacity",n+1);t<1&&r<1&&(h=!1)}if(h&&!e.hasDataDrivenColor){const t=e.getPaintValue("fill-color",n),r=e.getPaintValue("fill-color",n+1);t[3]<1&&r[3]<1&&(h=!1)}}const c=this._features,u=t?.validateTessellation;if(l){const s=[];for(const l of c){const c=a.getValue(n,l),u=this._spriteInfo[c];if(!u?.rect)continue;const x=r.encodeAttributes(l,n,e,u),f=h&&o?i.encodeAttributes(l,n,e):[],y=l.getGeometry(t);s.push({ddFillAttributes:x,ddOutlineAttributes:f,page:u.page,geometry:y}),s.sort((t,e)=>t.page-e.page)}for(const{ddFillAttributes:t,ddOutlineAttributes:n,page:r,geometry:i}of s)this._processFeature(i,h,e.outlineUsesFillColor,t,n,u,r)}else for(const a of c){const l=s?r.encodeAttributes(a,n,e):null,c=h&&o?i.encodeAttributes(a,n,e):null,x=a.getGeometry(t);this._processFeature(x,h,e.outlineUsesFillColor,l,c,u)}}serialize(){let t=10;t+=this.layerUIDs.length,t+=this._fillVertexBuffer.array.length,t+=this._fillIndexBuffer.array.length,t+=this._outlineVertexBuffer.array.length,t+=this._outlineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let r=0;e[r++]=this.type,e[r++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[r++]=this.layerUIDs[t];e[r++]=this._fillIndexStart,e[r++]=this._fillIndexCount,e[r++]=this._outlineIndexStart,e[r++]=this._outlineIndexCount;const i=this._patternMap,s=i.size;if(e[r++]=s,s>0)for(const[t,[n,s]]of i)e[r++]=t,e[r++]=n,e[r++]=s;e[r++]=this._fillVertexBuffer.array.length;for(let t=0;t<this._fillVertexBuffer.array.length;t++)n[r++]=this._fillVertexBuffer.array[t];e[r++]=this._fillIndexBuffer.array.length;for(let t=0;t<this._fillIndexBuffer.array.length;t++)e[r++]=this._fillIndexBuffer.array[t];e[r++]=this._outlineVertexBuffer.array.length;for(let t=0;t<this._outlineVertexBuffer.array.length;t++)n[r++]=this._outlineVertexBuffer.array[t];e[r++]=this._outlineIndexBuffer.array.length;for(let t=0;t<this._outlineIndexBuffer.array.length;t++)e[r++]=this._outlineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,n,r,i,s,o){if(!t)return;const a=t.length,l=!i||0===i.length;if(e&&(!n||l))for(let e=0;e<a;e++)this._processOutline(t[e],i);let h;for(let e=0;e<a;e++){const n=C._area(t[e]);n>32?(void 0!==h&&this._processFill(t,h,r,s,o),h=[e]):n<-32&&void 0!==h&&h.push(e)}void 0!==h&&this._processFill(t,h,r,s,o)}_processOutline(t,e){const n=this._outlineVertexBuffer,r=this._outlineIndexBuffer,i=r.index;let o,a,l;const h=new s.bR(0,0),c=new s.bR(0,0),u=new s.bR(0,0);let x=-1,f=-1,y=-1,d=-1,g=-1,p=!1,_=t.length;if(_<2)return;const m=t[0];let I=t[_-1];for(;_&&I.isEqual(m);)--_,I=t[_-1];if(!(_-0<2)){for(let i=0;i<_;++i){0===i?(o=t[_-1],a=t[0],l=t[1],h.assignSub(a,o),h.normalize(),h.rightPerpendicular()):(o=a,a=l,l=i!==_-1?t[i+1]:t[0],h.assign(c));const s=this._isClipEdge(o,a);-1===d&&(p=s),c.assignSub(l,a),c.normalize(),c.rightPerpendicular();const m=h.x*c.y-h.y*c.x;u.assignAdd(h,c),u.normalize();const I=-u.x*-h.x+-u.y*-h.y;let b=Math.abs(0!==I?1/I:1);b>8&&(b=8),m>=0?(y=n.add(a.x,a.y,h.x,h.y,0,1,e),-1===d&&(d=y),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),f=n.add(a.x,a.y,b*-u.x,b*-u.y,0,-1,e),-1===g&&(g=f),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),x=f,f=y,y=n.add(a.x,a.y,u.x,u.y,0,1,e),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),f=n.add(a.x,a.y,c.x,c.y,0,1,e),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y)):(y=n.add(a.x,a.y,b*u.x,b*u.y,0,1,e),-1===d&&(d=y),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),f=n.add(a.x,a.y,-h.x,-h.y,0,-1,e),-1===g&&(g=f),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),x=f,f=y,y=n.add(a.x,a.y,-u.x,-u.y,0,-1,e),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),x=n.add(a.x,a.y,-c.x,-c.y,0,-1,e),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y))}x>=0&&f>=0&&d>=0&&!p&&r.add(x,f,d),x>=0&&d>=0&&g>=0&&!p&&r.add(x,g,d),this._outlineIndexCount+=3*(r.index-i)}}_processFill(t,e,n,r,i){let s;e.length>1&&(s=[]);let o=0;for(const n of e)0!==o&&s.push(o),o+=t[n].length;const a=2*o,l=B.A.acquire();for(const n of e){const e=t[n],r=e.length;for(let t=0;t<r;++t)l.push(e[t].x,e[t].y)}const h=(0,E.e)(l,s,2);if(E.e.deviation(l,s,2,h)>0){const r=e.map(e=>t[e].length),{buffer:s,vertexCount:o}=(0,I.QT)(l,r);if(o>0){const t=this._fillVertexBuffer.index;for(let t=0;t<o;t++)this._fillVertexBuffer.add(s[2*t],s[2*t+1],n);for(let e=0;e<o;e+=3){const n=t+e;this._fillIndexBuffer.add(n,n+1,n+2)}if(void 0!==i){const t=this._patternMap,e=t.get(i);e?e[1]+=o:t.set(i,[this._fillIndexStart+this._fillIndexCount,o])}this._fillIndexCount+=o}}else{const t=h.length;if(t>0){const e=this._fillVertexBuffer.index;let r=0;for(;r<a;)this._fillVertexBuffer.add(l[r++],l[r++],n);let s=0;for(;s<t;)this._fillIndexBuffer.add(e+h[s++],e+h[s++],e+h[s++]);if(void 0!==i){const e=this._patternMap,n=e.get(i);n?n[1]+=t:e.set(i,[this._fillIndexStart+this._fillIndexCount,t])}this._fillIndexCount+=t}}B.A.release(l)}_isClipEdge(t,e){return t.x===e.x?t.x<=-64||t.x>=4160:t.y===e.y&&(t.y<=-64||t.y>=4160)}static _area(t){let e=0;const n=t.length-1;for(let r=0;r<n;r++)e+=(t[r].x-t[r+1].x)*(t[r].y+t[r+1].y);return e+=(t[n].x-t[0].x)*(t[n].y+t[0].y),.5*e}}var R=n(83773);class N extends L{constructor(t,e,n,r,i){super(t,e,n),this.type=2,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=r,this.tessellationProperties._lineIndexBuffer=i,this._lineTessellator=new R.i(z(this.tessellationProperties),U(this.tessellationProperties),t.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(t,e,n){const r=this.layer,i=this.zoom,s=r.getPaintProperty("line-pattern"),o=r.getPaintProperty("line-dasharray"),a=r.getLayoutProperty("line-cap");if(!s&&!o)return;const l=a?.getValue(i)||0,h=a?.isDataDriven,c=s?.isDataDriven,u=o?.isDataDriven;if(c||u)for(const t of this._features)e(c?s.getValue(i,t):this._getDashArrayKey(t,i,r,o,h,a,l));else if(s)e(s.getValue(i));else if(o){const t=o.getValue(i);e(r.getDashKey(t,l))}}processFeatures(t){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const e=this.layer,n=this.zoom,r=this._features,i=this._tessellationOptions,{hasDataDrivenLine:s,lineMaterial:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("line-pattern"),l=e.getPaintProperty("line-dasharray"),h=a?.isDataDriven,c=l?.isDataDriven;let u;u=e.getLayoutProperty("line-cap");const x=u?.isDataDriven?u:null,f=x?null:e.getLayoutValue("line-cap",n),y=f||0,d=!!x;u=e.getLayoutProperty("line-join");const g=u?.isDataDriven?u:null,p=g?null:e.getLayoutValue("line-join",n);u=e.getLayoutProperty("line-miter-limit");const _=u?.isDataDriven?u:null,m=_?null:e.getLayoutValue("line-miter-limit",n);u=e.getLayoutProperty("line-round-limit");const I=u?.isDataDriven?u:null,b=I?null:e.getLayoutValue("line-round-limit",n);u=e.getPaintProperty("line-width");const w=u?.isDataDriven?u:null,v=w?null:e.getPaintValue("line-width",n);u=e.getPaintProperty("line-offset");const M=u?.isDataDriven?u:null,P=M?null:e.getPaintValue("line-offset",n);if(h||c){const s=[];for(const i of r){const r=h?a.getValue(n,i):this._getDashArrayKey(i,n,e,l,d,x,y),c=this._spriteInfo[r];if(!c?.rect)continue;const u=o.encodeAttributes(i,n,e,c),T=i.getGeometry(t);s.push({ddAttributes:u,page:c.page,cap:x?x.getValue(n,i):f,join:g?g.getValue(n,i):p,miterLimit:_?_.getValue(n,i):m,roundLimit:I?I.getValue(n,i):b,halfWidth:.5*(w?w.getValue(n,i):v),offset:M?M.getValue(n,i):P,geometry:T})}s.sort((t,e)=>t.page-e.page),i.textured=!0;for(const{ddAttributes:t,page:e,cap:n,join:r,miterLimit:o,roundLimit:a,halfWidth:l,offset:h,geometry:c}of s)i.capType=n,i.joinType=r,i.miterLimit=o,i.roundLimit=a,i.halfWidth=l,i.offset=h,this._processFeature(c,t,e)}else{if(a){const t=a.getValue(n),e=this._spriteInfo[t];if(!e?.rect)return}i.textured=!(!a&&!l),i.capType=f,i.joinType=p,i.miterLimit=m,i.roundLimit=b,i.halfWidth=.5*v,i.offset=P;for(const a of r){const r=s?o.encodeAttributes(a,n,e):null;x&&(i.capType=x.getValue(n,a)),g&&(i.joinType=g.getValue(n,a)),_&&(i.miterLimit=_.getValue(n,a)),I&&(i.roundLimit=I.getValue(n,a)),w&&(i.halfWidth=.5*w.getValue(n,a)),M&&(i.offset=M.getValue(n,a));const l=a.getGeometry(t);this._processFeature(l,r)}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this.tessellationProperties._lineVertexBuffer.array.length,t+=this.tessellationProperties._lineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let r=0;e[r++]=this.type,e[r++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[r++]=this.layerUIDs[t];e[r++]=this._lineIndexStart,e[r++]=this._lineIndexCount;const i=this._patternMap,s=i.size;if(e[r++]=s,s>0)for(const[t,[n,s]]of i)e[r++]=t,e[r++]=n,e[r++]=s;e[r++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineVertexBuffer.array.length;t++)n[r++]=this.tessellationProperties._lineVertexBuffer.array[t];e[r++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineIndexBuffer.array.length;t++)e[r++]=this.tessellationProperties._lineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,n){if(!t)return;const r=t.length;for(let i=0;i<r;i++)this._processGeometry(t[i],e,n)}_processGeometry(t,e,n){if(t.length<2)return;let r,i,s=t[0],o=1;for(;o<t.length;)r=t[o].x-s.x,i=t[o].y-s.y,r*r+i*i<1e-6?t.splice(o,1):(s=t[o],++o);if(t.length<2)return;const a=this.tessellationProperties._lineIndexBuffer,l=3*a.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=e,this._lineTessellator.tessellate(t,this._tessellationOptions);const h=3*a.index-l;if(void 0!==n){const t=this._patternMap,e=t.get(n);e?e[1]+=h:t.set(n,[l+this._lineIndexCount,h])}this._lineIndexCount+=h}_getDashArrayKey(t,e,n,r,i,s,o){const a=i?s.getValue(e,t):o,l=r.getValue(e,t);return n.getDashKey(l,a)}}const z=t=>(e,n,r,i,s,o,a,l,h,c,u)=>(t._lineVertexBuffer.add(e,n,a,l,r,i,s,o,h,c,u,t._ddValues),t._lineVertexBuffer.index-1),U=t=>(e,n,r)=>{t._lineIndexBuffer.add(e,n,r)};var F=n(32488),O=n(97768),G=n(799),Z=n(36745),Y=n(78957),W=n(92722);function q(t){let e=0;for(let n=0,r=t.length-1;n<t.length;r=n++)e+=(t[r].x-t[n].x)*(t[n].y+t[r].y);return.5*e}var K=n(4264);function j(t,e){return t.iconMosaicItem&&e.iconMosaicItem?t.iconMosaicItem.page===e.iconMosaicItem.page?0:t.iconMosaicItem.page-e.iconMosaicItem.page:t.iconMosaicItem&&!e.iconMosaicItem?1:!t.iconMosaicItem&&e.iconMosaicItem?-1:0}class H extends L{constructor(t,e,n,r,i,s,o,a,l){super(e,n,l.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=t,this._iconVertexBuffer=r,this._iconIndexBuffer=i,this._textVertexBuffer=s,this._textIndexBuffer=o,this._placementEngine=a,this._workerTileHandler=l}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new F.A}getResources(t,e,n){const r=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);const s=r.getLayoutProperty("icon-image"),o=r.getLayoutProperty("text-field");let a=r.getLayoutProperty("text-transform"),l=r.getLayoutProperty("text-font");const h=[];let c,u,x,f;s&&!s.isDataDriven&&(c=s.getValue(i)),o&&!o.isDataDriven&&(u=o.getValue(i)),a&&a.isDataDriven||(x=r.getLayoutValue("text-transform",i),a=null),l&&l.isDataDriven||(f=r.getLayoutValue("text-font",i),l=null);for(const y of this._features){const d=y.getGeometry(t);if(!d||0===d.length)continue;let g,p;s&&(g=s.isDataDriven?s.getValue(i,y):this._replaceKeys(c,y.values),g&&e(g));let _=!1;if(o&&(p=o.isDataDriven?o.getValue(i,y):this._replaceKeys(u,y.values),p)){switch(p=p.replaceAll("\\n","\n"),a&&(x=a.getValue(i,y)),x){case 2:p=p.toLowerCase();break;case 1:p=p.toUpperCase()}if(H._bidiEngine.hasBidiChar(p)){let t;t="rtl"===H._bidiEngine.checkContextual(p)?"IDNNN":"ICNNN",p=H._bidiEngine.bidiTransform(p,t,"VLYSN"),_=!0}if(p.length>0){l&&(f=l.getValue(i,y));for(const t of f){let e=n[t];e||(e=n[t]=new Set);for(const t of p){const n=t.codePointAt(0);null!=n&&e.add(n)}}}}if(!g&&!p)continue;const m=r.getLayoutValue("symbol-sort-key",i,y),I={feature:y,sprite:g,label:p,rtl:_,geometry:d,hash:(p?(0,G.Wm)(p):0)^(g?(0,G.Wm)(g):0),priority:m,textFont:f};h.push(I)}this._symbolFeatures=h}processFeatures(t){t&&t.setExtent(this.layerExtent);const e=this.layer,n=this.zoom,r=e.getLayoutValue("symbol-placement",n),i=0!==r,s=8*e.getLayoutValue("symbol-spacing",n),a=e.getLayoutProperty("icon-image"),l=e.getLayoutProperty("text-field"),h=a?new K.aR(e,n,i):null,c=l?new K.uU(e,n,i):null,u=this._workerTileHandler;let f;a&&(f=u.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const d=[];let g=1;c?.size&&(g=c.size/24);const p=c?c.maxAngle*o.os:0,_=c?8*c.size:0;for(const t of this._symbolFeatures){let o,a;h&&f&&t.sprite&&(o=f[t.sprite],o&&o.sdf&&(this._isIconSDF=!0)),o&&h.update(n,t.feature);let l=0;const m=t.label;if(m){(0,O.Lw)(c),c.update(n,t.feature);const e=i&&0===c.rotationAlignment?c.keepUpright:c.writingMode&&c.writingMode.includes(1);let r=.5;switch(c.anchor){case 5:case 1:case 7:r=0;break;case 6:case 2:case 8:r=1}let s=.5;switch(c.anchor){case 5:case 3:case 6:s=0;break;case 7:case 4:case 8:s=1}let o=.5;switch(c.justify){case 0:o=r;break;case 1:o=0;break;case 3:o=1}const h=24*c.letterSpacing,f=i?0:24*c.maxWidth,y=24*c.lineHeight,d=t.textFont.map(t=>u.getGlyphItems(t));if(a=new x(d,f,y,h,r,s,o).getShaping(m,t.rtl,e),a&&a.length>0){let t=1e30,e=-1e30;for(const n of a)t=Math.min(t,n.x),e=Math.max(e,n.x);l=(e-t+48)*g*8}}const I=H._getPlacementCandidates(e,r,t.feature,t.geometry);for(const e of I){let{vertices:n}=e;const u=[];if(1===r){if(a?.length&&c?.size){const t=8*c.size*(2+Math.min(2,4*Math.abs(c.offset[1])));n=H._smoothVertices(n,t)}H._pushAnchors(u,n,s,l)}else 2===r?H._pushCenterAnchor(u,n):3===t.feature.type?e.anchor?u.push(e.anchor):H._pushCentroid(u,n):u.push(new y(n[0].x,n[0].y));for(const e of u){if(e.x<0||e.x>4096||e.y<0||e.y>4096)continue;if(i&&l>0&&0===c?.rotationAlignment&&!H._honorsTextMaxAngle(n,e,l,p,_))continue;const r={shaping:a,line:n,iconMosaicItem:o,anchor:e,symbolFeature:t,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};d.push(r),this._processFeature(r,h,c)}}}d.sort(j),this._addPlacedGlyphs(),this._symbolInstances=d}serialize(){let t=14;t+=this.layerUIDs.length,t+=3*this.markerPageMap.size,t+=3*this.glyphsPageMap.size,t+=H._symbolsSerializationLength(this._symbolInstances),t+=this._iconVertexBuffer.array.length,t+=this._iconIndexBuffer.array.length,t+=this._textVertexBuffer.array.length,t+=this._textIndexBuffer.array.length;const e=new Uint32Array(t),n=new Int32Array(e.buffer),r=new Float32Array(e.buffer),[i,s,o]=this._sourceTileKey.split("/");let a=0;e[a++]=this.type,e[a++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[a++]=this.layerUIDs[t];e[a++]=this._isIconSDF?1:0,e[a++]=parseFloat(i),e[a++]=parseFloat(s),e[a++]=parseFloat(o),e[a++]=this.markerPageMap.size;for(const[t,[n,r]]of this.markerPageMap)e[a++]=t,e[a++]=n,e[a++]=r;e[a++]=this.glyphsPageMap.size;for(const[t,[n,r]]of this.glyphsPageMap)e[a++]=t,e[a++]=n,e[a++]=r;e[a++]=this._iconVertexBuffer.index/4,e[a++]=this._textVertexBuffer.index/4,a=H.serializeSymbols(e,n,r,a,this._symbolInstances),e[a++]=this._iconVertexBuffer.array.length;for(let t=0;t<this._iconVertexBuffer.array.length;t++)n[a++]=this._iconVertexBuffer.array[t];e[a++]=this._iconIndexBuffer.array.length;for(let t=0;t<this._iconIndexBuffer.array.length;t++)e[a++]=this._iconIndexBuffer.array[t];e[a++]=this._textVertexBuffer.array.length;for(let t=0;t<this._textVertexBuffer.array.length;t++)n[a++]=this._textVertexBuffer.array[t];e[a++]=this._textIndexBuffer.array.length;for(let t=0;t<this._textIndexBuffer.array.length;t++)e[a++]=this._textIndexBuffer.array[t];return e.buffer}static _symbolsSerializationLength(t){let e=0;e+=1;for(const n of t||[]){e+=5,e+=1;for(const t of n.textColliders)e+=10;for(const t of n.iconColliders)e+=10;e+=1,e+=2*n.textVertexRanges.length,e+=1,e+=2*n.iconVertexRanges.length}return e}static serializeSymbols(t,e,n,r,i){i=i||[],e[r++]=i.length;for(const t of i){e[r++]=t.anchor.x,e[r++]=t.anchor.y,e[r++]=t.symbolFeature.hash,e[r++]=t.symbolFeature.priority,e[r++]=t.symbolFeature.feature.featureIndex,e[r++]=t.textColliders.length+t.iconColliders.length;for(const i of t.textColliders)e[r++]=i.xTile,e[r++]=i.yTile,e[r++]=i.dxPixels,e[r++]=i.dyPixels,e[r++]=i.hard?1:0,e[r++]=i.partIndex,n[r++]=i.minLod,n[r++]=i.maxLod,e[r++]=i.width,e[r++]=i.height;for(const i of t.iconColliders)e[r++]=i.xTile,e[r++]=i.yTile,e[r++]=i.dxPixels,e[r++]=i.dyPixels,e[r++]=i.hard?1:0,e[r++]=i.partIndex,n[r++]=i.minLod,n[r++]=i.maxLod,e[r++]=i.width,e[r++]=i.height;e[r++]=t.textVertexRanges.length;for(const[n,i]of t.textVertexRanges)e[r++]=n,e[r++]=i;e[r++]=t.iconVertexRanges.length;for(const[n,i]of t.iconVertexRanges)e[r++]=n,e[r++]=i}return r}_replaceKeys(t,e){return t.replaceAll(/{([^{}]+)}/g,(t,n)=>n in e?e[n]:"")}_processFeature(t,e,n){const{line:r,iconMosaicItem:i,shaping:s,anchor:a}=t,l=this.zoom,h=this.layer,c=!!i;let u=!0;c&&(u=e?.optional||!i);const x=s&&s.length>0,f=!x||n?.optional;let y,d;if(c&&(y=this._placementEngine.getIconPlacement(a,i,e)),(y||u)&&(x&&(d=this._placementEngine.getTextPlacement(a,s,r,n)),d||f)){if(y&&d||(f||u?f||d?u||y||(d=null):y=null:(y=null,d=null)),d){const e=h.hasDataDrivenText?h.textMaterial.encodeAttributes(t.symbolFeature.feature,l,h):null;if(this._storePlacedGlyphs(t,d.shapes,l,n.rotationAlignment,e),d.textColliders){t.textColliders=d.textColliders;for(const t of d.textColliders){t.minLod=Math.max(l+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(l+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const n=Math.cos(e),r=Math.sin(e),i=t.dxPixels*n-t.dyPixels*r,s=t.dxPixels*r+t.dyPixels*n,o=(t.dxPixels+t.width)*n-t.dyPixels*r,a=(t.dxPixels+t.width)*r+t.dyPixels*n,l=t.dxPixels*n-(t.dyPixels+t.height)*r,h=t.dxPixels*r+(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n-(t.dyPixels+t.height)*r,u=(t.dxPixels+t.width)*r+(t.dyPixels+t.height)*n,x=Math.min(i,o,l,c),f=Math.max(i,o,l,c),y=Math.min(s,a,h,u),d=Math.max(s,a,h,u);t.dxPixels=x,t.dyPixels=y,t.width=f-x,t.height=d-y}}}}if(y){const n=h.hasDataDrivenIcon?h.iconMaterial.encodeAttributes(t.symbolFeature.feature,l,h):null;if(this._addPlacedIcons(t,y.shapes,l,i.page,1===e.rotationAlignment,n),y.iconColliders){t.iconColliders=y.iconColliders;for(const t of y.iconColliders){t.minLod=Math.max(l+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(l+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const n=Math.cos(e),r=Math.sin(e),i=t.dxPixels*n-t.dyPixels*r,s=t.dxPixels*r+t.dyPixels*n,o=(t.dxPixels+t.width)*n-t.dyPixels*r,a=(t.dxPixels+t.width)*r+t.dyPixels*n,l=t.dxPixels*n-(t.dyPixels+t.height)*r,h=t.dxPixels*r+(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n-(t.dyPixels+t.height)*r,u=(t.dxPixels+t.width)*r+(t.dyPixels+t.height)*n,x=Math.min(i,o,l,c),f=Math.max(i,o,l,c),y=Math.min(s,a,h,u),d=Math.max(s,a,h,u);t.dxPixels=x,t.dyPixels=y,t.width=f-x,t.height=d-y}}}}}}_addPlacedIcons(t,e,n,r,i,s){const a=Math.max(n-1,0),l=this._iconVertexBuffer,h=this._iconIndexBuffer,c=this._markerMap;for(const u of e){const e=i?0:Math.max(n+(0,o.p6)(u.minzoom),a),x=i?25:Math.min(n+(0,o.p6)(u.maxzoom),25);if(x<=e)continue;const f=u.tl,y=u.tr,d=u.bl,g=u.br,p=u.mosaicRect,_=u.labelAngle,m=u.minAngle,I=u.maxAngle,b=u.anchor,w=l.index,v=p.x,M=p.y,P=v+p.width,T=M+p.height,k=l.index;l.add(b.x,b.y,f.x,f.y,v,M,_,m,I,e,x,s),l.add(b.x,b.y,y.x,y.y,P,M,_,m,I,e,x,s),l.add(b.x,b.y,d.x,d.y,v,T,_,m,I,e,x,s),l.add(b.x,b.y,g.x,g.y,P,T,_,m,I,e,x,s),t.iconVertexRanges.length>0&&t.iconVertexRanges[0][0]+t.iconVertexRanges[0][1]===k?t.iconVertexRanges[0][1]+=4:t.iconVertexRanges.push([k,4]),h.add(w,w+1,w+2),h.add(w+1,w+2,w+3),c.has(r)?c.get(r)[1]+=6:c.set(r,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const t=this._textVertexBuffer,e=this._textIndexBuffer,n=this._glyphMap;for(const[r,i]of this._glyphBufferDataStorage)for(const s of i){const i=t.index,o=s.symbolInstance,a=s.ddAttributes,l=t.index;t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tl[0],s.tl[1],s.xmin,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tr[0],s.tr[1],s.xmax,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.bl[0],s.bl[1],s.xmin,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.br[0],s.br[1],s.xmax,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===l?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([l,4]),e.add(i,i+1,i+2),e.add(i+1,i+2,i+3),n.has(r)?n.get(r)[1]+=6:n.set(r,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(t,e,n,r,i){const s=Math.max(n-1,0),a=1===r;let l,h,c,u,x,f,y,d,g,p,_;for(const r of e)l=a?0:Math.max(n+(0,o.p6)(r.minzoom),s),h=a?25:Math.min(n+(0,o.p6)(r.maxzoom),25),h<=l||(c=r.tl,u=r.tr,x=r.bl,f=r.br,y=r.labelAngle,d=r.minAngle,g=r.maxAngle,p=r.anchor,_=r.mosaicRect,this._glyphBufferDataStorage.has(r.page)||this._glyphBufferDataStorage.set(r.page,[]),this._glyphBufferDataStorage.get(r.page).push({glyphAnchor:[p.x,p.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[x.x,x.y],br:[f.x,f.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:y,minAngle:d,maxAngle:g,minLod:l,maxLod:h,placementLod:s,symbolInstance:t,ddAttributes:i}))}static _pushAnchors(t,e,n,r){n+=r;let i=0;const a=e.length-1;for(let t=0;t<a;t++)i+=s.bR.distance(e[t],e[t+1]);let l=r||n;if(l*=.5,i<=l)return;const h=l/i;let c=0,u=-(n=i/Math.max(Math.round(i/n),1))/2;const x=e.length-1;for(let r=0;r<x;r++){const i=e[r],s=e[r+1],a=s.x-i.x,l=s.y-i.y,x=Math.sqrt(a*a+l*l);let f;for(;u+n<c+x;){u+=n;const e=(u-c)/x,d=(0,o.GW)(i.x,s.x,e),g=(0,o.GW)(i.y,s.y,e);void 0===f&&(f=Math.atan2(l,a)),t.push(new y(d,g,f,r,h))}c+=x}}static _pushCenterAnchor(t,e){let n=0;const r=e.length-1;for(let t=0;t<r;t++)n+=s.bR.distance(e[t],e[t+1]);const i=n/2;let a=0;const l=e.length-1;for(let n=0;n<l;n++){const r=e[n],s=e[n+1],l=s.x-r.x,h=s.y-r.y,c=Math.sqrt(l*l+h*h);if(i<a+c){const e=(i-a)/c,u=(0,o.GW)(r.x,s.x,e),x=(0,o.GW)(r.y,s.y,e),f=Math.atan2(h,l);return void t.push(new y(u,x,f,n,0))}a+=c}}static _deviation(t,e,n){const r=(e.x-t.x)*(n.x-e.x)+(e.y-t.y)*(n.y-e.y),i=(e.x-t.x)*(n.y-e.y)-(e.y-t.y)*(n.x-e.x);return Math.atan2(i,r)}static _honorsTextMaxAngle(t,e,n,r,i){let o=0;const a=n/2;let l=new s.bR(e.x,e.y),h=e.segment+1;for(;o>-a;){if(--h,h<0)return!1;o-=s.bR.distance(t[h],l),l=t[h]}o+=s.bR.distance(t[h],t[h+1]);const c=[];let u=0;const x=t.length;for(;o<a;){const e=t[h];let n,a=h;do{if(++a,a===x)return!1;n=t[a]}while(n.isEqual(e));let l,f=a;do{if(++f,f===x)return!1;l=t[f]}while(l.isEqual(n));const y=this._deviation(e,n,l);for(c.push({deviation:y,distToAnchor:o}),u+=y;o-c[0].distToAnchor>i;)u-=c.shift().deviation;if(Math.abs(u)>r)return!1;o+=s.bR.distance(n,l),h=a}return!0}static _smoothVertices(t,e){if(e<=0)return t;let n=t.length;if(n<3)return t;const r=[];let i=0,o=0;r.push(0);for(let e=1;e<n;e++){const n=s.bR.distance(t[e],t[e-1]);n>0&&(i+=n,r.push(i),o++,o!==e&&(t[o]=t[e]))}if(n=o+1,n<3)return t;e=Math.min(e,.2*i);const a=t[0].x,l=t[0].y,h=t[n-1].x,c=t[n-1].y,u=s.bR.sub(t[0],t[1]);u.normalize(),t[0].x+=e*u.x,t[0].y+=e*u.y,u.assignSub(t[n-1],t[n-2]),u.normalize(),t[n-1].x+=e*u.x,t[n-1].y+=e*u.y,r[0]-=e,r[n-1]+=e;const x=[];x.push(new s.bR(a,l));const f=1e-6,y=.5*e;for(let i=1;i<n-1;i++){let o=0,a=0,l=0;for(let n=i-1;n>=0;n--){const s=y+r[n+1]-r[i];if(s<0)break;const h=r[n+1]-r[n],c=r[i]-r[n]<y?1:s/h;if(c<f)break;const u=c*c,x=c*s-.5*u*h,d=c*h/e,g=t[n+1],p=t[n].x-g.x,_=t[n].y-g.y;o+=d/x*(g.x*c*s+.5*u*(s*p-h*g.x)-u*c*h*p/3),a+=d/x*(g.y*c*s+.5*u*(s*_-h*g.y)-u*c*h*_/3),l+=d}for(let s=i+1;s<n;s++){const n=y-r[s-1]+r[i];if(n<0)break;const h=r[s]-r[s-1],c=r[s]-r[i]<y?1:n/h;if(c<f)break;const u=c*c,x=c*n-.5*u*h,d=c*h/e,g=t[s-1],p=t[s].x-g.x,_=t[s].y-g.y;o+=d/x*(g.x*c*n+.5*u*(n*p-h*g.x)-u*c*h*p/3),a+=d/x*(g.y*c*n+.5*u*(n*_-h*g.y)-u*c*h*_/3),l+=d}x.push(new s.bR(o/l,a/l))}return x.push(new s.bR(h,c)),t[0].x=a,t[0].y=l,t[n-1].x=h,t[n-1].y=c,x}static _getPlacementCandidates(t,e,n,r){if(0!==e||3!==n.type||"geojson"!==t.sourceType)return r.map(t=>({anchor:null,vertices:t}));const i=function(t){let e=null,n=0,r=[],i=0;for(const s of t){const t=q(s);t>0?(i>n&&(n=i,e=r),r=[s],i=t):t<0&&r.length>0&&(r.push(s),i+=t)}if(i>n&&(e=r),!e)return null;const s=e.map(t=>t.length),o=[];for(const t of e)for(const e of t)o.push(e.x,e.y);const a=Z.z.fromOptimized(new W.A(s,o),"esriGeometryPolygon"),l=(0,Y.R)(a);return l?{x:l[0],y:l[1],vertices:e[0]}:null}(r);return i?[{anchor:new y(i.x,i.y),vertices:i.vertices}]:[]}static _pushCentroid(t,e){const n=4096,r=4096,i=e.length-1;let s=0,o=0,a=0,l=e[0].x,h=e[0].y;l>n&&(l=n),l<0&&(l=0),h>r&&(h=r),h<0&&(h=0);for(let t=1;t<i;t++){let i=e[t].x,c=e[t].y,u=e[t+1].x,x=e[t+1].y;i>n&&(i=n),i<0&&(i=0),c>r&&(c=r),c<0&&(c=0),u>n&&(u=n),u<0&&(u=0),x>r&&(x=r),x<0&&(x=0);const f=(i-l)*(x-h)-(u-l)*(c-h);s+=f*(l+i+u),o+=f*(h+c+x),a+=f}s/=3*a,o/=3*a,isNaN(s)||isNaN(o)||t.push(new y(s,o))}}class J{constructor(t,e,n,r,i,a,l){if(this._pbfTiles={},this._tileClippers={},this._client=n,this._tile=e,this._sourceDataMaxLOD=r,this._baseUrl=l,a){this._styleLayerUIDs=new Set;for(const t of a)this._styleLayerUIDs.add(t)}this._styleRepository=i,this._layers=this._styleRepository?.layers??[];const[h,c,u]=e.tileKey.split("/").map(parseFloat);this._level=h;const x=(0,o.IU)(this._level);for(const e of Object.keys(t)){const n=t[e];if(this._pbfTiles[e]=new m.A(new Uint8Array(n.protobuff),new DataView(n.protobuff)),n.refKey){const[t]=n.refKey.split("/").map(parseFloat),r=h-t;if(r>0){const t=(1<<r)-1,n=c&t,i=u&t;this._tileClippers[e]=new s.O3(r,n,i,8,x)}}this._tileClippers[e]||(this._tileClippers[e]=new s.Ox)}}_canParseStyleLayer(t){return!this._styleLayerUIDs||this._styleLayerUIDs.has(t)}async parse(t){const e=(0,I.If)(),n=this._initialize(t),{returnedBuckets:r}=n;this._processLayers(n),this._linkReferences(n),this._filterFeatures(n);const i=[],s=new Set,o=(t,e)=>{s.has(t)||(i.push({name:t,repeat:e}),s.add(t))},a={};for(const t of r)t.getResources(t.tileClipper,o,a);if(4===this._tile.status)return[];const l=this._fetchResources(i,a,t);return Promise.all([...l,e]).then(()=>this._processFeatures(n.returnedBuckets))}_initialize(t){const e=t?.signal;return{signal:e,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(t){const{sourceNameToTileData:e,zoom:n,layers:r,sourceNameToTileClipper:i,sourceNameToUniqueSourceLayerBuckets:s,sourceNameToUniqueSourceLayers:o,returnedBuckets:a,layerIdToBucket:l,referencerUIDToReferencedId:h}=t,c=this._sourceDataMaxLOD;for(let t=r.length-1;t>=0;t--){const u=r[t];if(n<c){if(u.minzoom&&n<Math.floor(u.minzoom)||u.maxzoom&&n>=u.maxzoom)continue}else if(u.maxzoom&&n>=u.maxzoom)continue;if(0===u.type||!this._canParseStyleLayer(u.uid)||!e[u.source]||!i[u.source])continue;const x=e[u.source],f=i[u.source],y=u.sourceLayer,d=x[y];if(d){let t=o[u.source];if(t||(t=o[u.source]=new Set),t.add(u.sourceLayer),u.refLayerId)h.set(u.uid,u.refLayerId);else{const t=this._createBucket(u);if(t){t.layerUIDs=[u.uid],t.layerExtent=d.extent,t.tileClipper=f;let e=s[u.source];e||(e=s[u.source]={});let n=e[y];n||(n=e[y]=[]),n.push(t),a.push(t),l[u.id]=t}}}}}_linkReferences(t){const{layerIdToBucket:e,referencerUIDToReferencedId:n}=t;n.forEach((t,n)=>{e[t]&&e[t].layerUIDs.push(n)})}_filterFeatures(t){const{signal:e,sourceNameToTileData:n,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:s}=t,o=10*this._level,a=10*(this._level+1),l=[],h=[];for(const t of Object.keys(s))s[t].forEach(e=>{l.push(e),h.push(t)});for(let t=0;t<l.length;t++){const s=h[t],c=l[t];if(!n[s]||!i[s])continue;const u=n[s][c],x=i[s][c];if(!x||0===x.length)continue;if((0,r.G4)(e))return;let f=0;const y=u.getData();for(;y.nextTag(2);){const t=y.getMessage(),e=new b(t,u,f++);t.release();const n=e.values;if(n){const t=n._minzoom;if(t&&t>=a)continue;const e=n._maxzoom;if(e&&e<=o)continue}for(const t of x)t.pushFeature(e)}}}_fetchResources(t,e,n){const r=[],i=this._tile.getWorkerTileHandler();let s,o;t.length>0&&(s=i.fetchSprites(t,this._client,n),r.push(s));for(const t in e){const s=e[t];s.size>0&&(o=i.fetchGlyphs(this._baseUrl,t,s,n),r.push(o))}return r}_processFeatures(t){const e=t.filter(t=>t.hasFeatures()||this._canParseStyleLayer(t.layer.uid));for(const t of e)t.processFeatures(t.tileClipper);return e}_parseTileData(t){const e={};for(const n of Object.keys(t)){const r=t[n],i={};for(;r.next();)switch(r.tag()){case 3:{const t=r.getMessage(),e=new M(t);t.release(),i[e.name]=e;break}default:r.skip()}e[n]=i}return e}_createBucket(t){switch(t.type){case 0:return null;case 1:return this._createFillBucket(t);case 2:return this._createLineBucket(t);case 4:return this._createCircleBucket(t);case 3:return this._createSymbolBucket(t)}}_createFillBucket(t){return new C(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new k(t.fillMaterial.getStride()),new v,new S(t.outlineMaterial.getStride()),new v)}_createLineBucket(t){return new N(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new T(t.lineMaterial.getStride()),new v)}_createCircleBucket(t){return new D(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new A(t.circleMaterial.getStride()),new v)}_createSymbolBucket(t){const e=this._tile;return new H(e.tileKey,t,this._level,new V(t.iconMaterial.getStride()),new v,new V(t.textMaterial.getStride()),new v,e.placementEngine,e.getWorkerTileHandler())}}class ${constructor(t,e,n,r){this.status=0,this.placementEngine=new _,this.tileKey=t,this.refKeys=e,this._workerTileHandler=n,this._styleRepository=r}release(){this.tileKey="",this.refKeys=null,this.status=0,this._workerTileHandler=null}async parse(t,e){const n=e?.signal;if(null!=n){const t=()=>{n.removeEventListener("abort",t),this.status=4};n.addEventListener("abort",t)}let i;const s={bucketsWithData:[],emptyBuckets:null};try{i=await this._parse(t,e)}catch(t){if((0,r.zf)(t))throw t;return{result:s,transferList:[]}}this.status=2;const o=s.bucketsWithData,a=[];for(const t of i)if(t.hasFeatures()){const e=t.serialize();o.push(e)}else a.push(t.layer.uid);const l=[...o];let h=null;return a.length>0&&(h=Uint32Array.from(a),l.push(h.buffer)),s.emptyBuckets=h,{result:s,transferList:l}}setObsolete(){this.status=4}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(t,e){const n=t.sourceName2DataAndRefKey;return 0===Object.keys(n).length?[]:(this.status=3,new J(n,this,e.client,t.sourceDataMaxLOD,this._styleRepository,t.styleLayerUIDs,t.baseUrl).parse(e))}}var Q=n(45013);class X{constructor(){this._spriteInfo={},this._glyphInfo={},this._sourceDataMaxLOD=25}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(t,e){const{key:n}=t,i={};for(const e of Object.keys(t.sourceName2DataAndRefKey)){const n=t.sourceName2DataAndRefKey[e];i[e]=n.refKey}const s=new $(n,i,this,this._styleRepository);this.initializeGlyphWorker(void 0,e);try{return await s.parse({...t,sourceDataMaxLOD:this._sourceDataMaxLOD},e)}catch(t){if(s.setObsolete(),s.release(),!(0,r.zf)(t))throw t;return null}}initializeGlyphWorker(t,e){return this._loaded??=(async()=>{const t=await e.client.invoke("openGlyphPorts"),n=await(0,i.N1)(t,{maxNumberOfConcurrentJobs:20});this._glyphWorker=n.createInvokeProxy()})()}updateStyle(t){if(!t||0===t.length||!this._styleRepository)return;const e=this._styleRepository;for(const n of t){const t=n.type,r=n.data;switch(t){case 0:e.setPaintProperties(r.layer,r.paint);break;case 1:e.setLayoutProperties(r.layer,r.layout);break;case 3:e.deleteStyleLayer(r.layer);break;case 2:e.setStyleLayer(r.layer,r.index);break;case 4:this._spriteInfo={}}}}setStyle(t){const{style:e,sourceDataMaxLOD:n}=t;this._styleRepository=new Q.A(e),this._sourceDataMaxLOD=n,this._spriteInfo={},this._glyphInfo={}}fetchSprites(t,e,n){const r=[],i=this._spriteInfo;for(const e of t)void 0===i[e.name]&&r.push(e);return 0===r.length?Promise.resolve():e.invoke("getSprites",r,{signal:n?.signal}).then(t=>{for(const e in t){const n=t[e];i[e]=n}})}getSpriteItems(){return this._spriteInfo}async fetchGlyphs(t,e,n,r){const i=[];let s=this._glyphInfo[e];if(s?n.forEach(t=>{s[t]||i.push(t)}):(s=this._glyphInfo[e]=[],n.forEach(t=>i.push(t))),0===i.length)return;if(await this._loaded,!this._glyphWorker)return void console.error("Failed to fetch glyphs: no worker connection");const o=String.fromCodePoint(...i),a=await this._glyphWorker.getGlyphItems(o,!1,t,e,!0,r);if(a)for(const t of a.glyphs)s[t.code]=t}getGlyphItems(t){return this._glyphInfo[t]}}},83773(t,e,n){function r(t,e){return t.x===e.x&&t.y===e.y}function i(t){if(!t)return;const e=t.length;if(e<=1)return;let n=0;for(let i=1;i<e;i++)r(t[i],t[n])||++n===i||(t[n]=t[i]);t.length=n+1}function s(t,e){return t.x=e.y,t.y=-e.x,t}function o(t,e){return t.x=-e.y,t.y=e.x,t}function a(t,e){return t.x=e.x,t.y=e.y,t}function l(t,e){return t.x=-e.x,t.y=-e.y,t}function h(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function c(t,e){return t.x*e.y-t.y*e.x}function u(t,e){return t.x*e.x+t.y*e.y}function x(t,e,n,r){return t.x=e.x*n+e.y*r,t.y=e.x*r-e.y*n,t}n.d(e,{i:()=>f});class f{constructor(t,e,n){this._writeVertex=t,this._writeTriangle=e,this._canUseThinTessellation=n,this._prevNormal={x:void 0,y:void 0},this._nextNormal={x:void 0,y:void 0},this._textureNormalLeft={x:0,y:1},this._textureNormalRight={x:0,y:-1},this._textureNormal={x:void 0,y:void 0},this._joinNormal={x:void 0,y:void 0},this._inner={x:void 0,y:void 0},this._outer={x:void 0,y:void 0},this._roundStart={x:void 0,y:void 0},this._roundEnd={x:void 0,y:void 0},this._startBreak={x:void 0,y:void 0},this._endBreak={x:void 0,y:void 0},this._innerPrev={x:void 0,y:void 0},this._innerNext={x:void 0,y:void 0},this._bevelStart={x:void 0,y:void 0},this._bevelEnd={x:void 0,y:void 0},this._bevelMiddle={x:void 0,y:void 0}}tessellate(t,e,n=this._canUseThinTessellation){i(t),n&&e.halfWidth<1.05&&!e.offset?this._tessellateThin(t,e):this._tessellate(t,e)}_tessellateThin(t,e){if(t.length<2)return;const n=e.wrapDistance||65535;let r=e.initialDistance||0,i=!1,s=t[0].x,o=t[0].y;const a=t.length;for(let e=1;e<a;++e){i&&(i=!1,r=0);let a=t[e].x,l=t[e].y,h=a-s,c=l-o,u=Math.sqrt(h*h+c*c);if(h/=u,c/=u,r+u>n){i=!0;const t=(n-r)/u;u=n-r,a=(1-t)*s+t*a,l=(1-t)*o+t*l,--e}const x=this._writeVertex(s,o,0,0,h,c,c,-h,0,-1,r),f=this._writeVertex(s,o,0,0,h,c,-c,h,0,1,r);r+=u;const y=this._writeVertex(a,l,0,0,h,c,c,-h,0,-1,r),d=this._writeVertex(a,l,0,0,h,c,-c,h,0,1,r);this._writeTriangle(x,f,y),this._writeTriangle(f,y,d),s=a,o=l}}_tessellate(t,e){const n=t[0],i=t[t.length-1],f=r(n,i),y=f?3:2;if(t.length<y)return;const d=e.pixelCoordRatio,g=null!=e.capType?e.capType:0,p=null!=e.joinType?e.joinType:2,_=null!=e.miterLimit?Math.min(e.miterLimit,4):2,m=null!=e.roundLimit?Math.min(e.roundLimit,1.05):1.05,I=null!=e.halfWidth?e.halfWidth:2,b=!!e.textured;let w,v,M,P=null;const T=this._prevNormal,k=this._nextNormal;let S=-1,V=-1;const A=this._joinNormal;let L,D;const B=this._textureNormalLeft,E=this._textureNormalRight,C=this._textureNormal;let R=-1,N=-1;const z=e.wrapDistance||65535;let U=e.initialDistance||0;const F=this._writeVertex,O=this._writeTriangle,G=(t,e,n,r,i,s)=>{const o=F(v,M,L,D,n,r,t,e,i,s,U);return R>=0&&N>=0&&o>=0&&O(R,N,o),R=N,N=o,o};f&&(w=t[t.length-2],k.x=i.x-w.x,k.y=i.y-w.y,V=h(k),k.x/=V,k.y/=V);let Z=!1;for(let e=0;e<t.length;++e){if(Z&&(Z=!1,U=0),w&&(T.x=-k.x,T.y=-k.y,S=V,U+S>z&&(Z=!0)),Z){const n=(z-U)/S;S=z-U,w={x:(1-n)*w.x+n*t[e].x,y:(1-n)*w.y+n*t[e].y},--e}else w=t[e];v=w.x,M=w.y;const n=e<=0&&!Z,r=e===t.length-1;if(n||(U+=S),P=r?f?t[1]:null:t[e+1],P?(k.x=P.x-v,k.y=P.y-M,V=h(k),k.x/=V,k.y/=V):(k.x=void 0,k.y=void 0),!f){if(n){o(A,k),L=A.x,D=A.y,2===g&&(G(-k.y-k.x,k.x-k.y,k.x,k.y,0,-1),G(k.y-k.x,-k.x-k.y,k.x,k.y,0,1)),1===g&&(G(-k.y-k.x,k.x-k.y,k.x,k.y,-1,-1),G(k.y-k.x,-k.x-k.y,k.x,k.y,-1,1)),1!==g&&0!==g||(G(-k.y,k.x,k.x,k.y,0,-1),G(k.y,-k.x,k.x,k.y,0,1));continue}if(r){s(A,T),L=A.x,D=A.y,1!==g&&0!==g||(G(T.y,-T.x,-T.x,-T.y,0,-1),G(-T.y,T.x,-T.x,-T.y,0,1)),2===g&&(G(T.y-T.x,-T.x-T.y,-T.x,-T.y,0,-1),G(-T.y-T.x,T.x-T.y,-T.x,-T.y,0,1)),1===g&&(G(T.y-T.x,-T.x-T.y,-T.x,-T.y,1,-1),G(-T.y-T.x,T.x-T.y,-T.x,-T.y,1,1));continue}}let i,y,F=-c(T,k);if(Math.abs(F)<.01)u(T,k)>0?(A.x=T.x,A.y=T.y,F=1,i=Number.MAX_VALUE,y=!0):(o(A,k),F=1,i=1,y=!1);else{A.x=(T.x+k.x)/F,A.y=(T.y+k.y)/F,i=h(A);const t=(i-1)*I*d;y=i>4||t>S&&t>V}L=A.x,D=A.y;let O=p;switch(p){case 0:i<1.05&&(O=2);break;case 1:i<m&&(O=2);break;case 2:i>_&&(O=0)}switch(O){case 2:if(G(A.x,A.y,-T.x,-T.y,0,-1),G(-A.x,-A.y,-T.x,-T.y,0,1),r)break;if(b){const t=Z?0:U;R=this._writeVertex(v,M,L,D,k.x,k.y,A.x,A.y,0,-1,t),N=this._writeVertex(v,M,L,D,k.x,k.y,-A.x,-A.y,0,1,t)}break;case 0:{const t=F<0;let e,n,i,h;if(t){const t=R;R=N,N=t,e=B,n=E}else e=E,n=B;if(y)i=t?o(this._innerPrev,T):s(this._innerPrev,T),h=t?s(this._innerNext,k):o(this._innerNext,k);else{const e=t?l(this._inner,A):a(this._inner,A);i=e,h=e}const c=t?s(this._bevelStart,T):o(this._bevelStart,T);G(i.x,i.y,-T.x,-T.y,e.x,e.y);const u=G(c.x,c.y,-T.x,-T.y,n.x,n.y);if(r)break;const f=t?o(this._bevelEnd,k):s(this._bevelEnd,k);if(y){const t=this._writeVertex(v,M,L,D,-T.x,-T.y,0,0,0,0,U);R=this._writeVertex(v,M,L,D,k.x,k.y,h.x,h.y,e.x,e.y,U),N=this._writeVertex(v,M,L,D,k.x,k.y,f.x,f.y,n.x,n.y,U),this._writeTriangle(u,t,N)}else{if(b){const t=this._bevelMiddle;t.x=(c.x+f.x)/2,t.y=(c.y+f.y)/2,x(C,t,-T.x,-T.y),G(t.x,t.y,-T.x,-T.y,C.x,C.y),x(C,t,k.x,k.y),R=this._writeVertex(v,M,L,D,k.x,k.y,t.x,t.y,C.x,C.y,U),N=this._writeVertex(v,M,L,D,k.x,k.y,h.x,h.y,e.x,e.y,U)}else{const t=R;R=N,N=t}G(f.x,f.y,k.x,k.y,n.x,n.y)}if(t){const t=R;R=N,N=t}break}case 1:{const t=F<0;let e,n;if(t){const t=R;R=N,N=t,e=B,n=E}else e=E,n=B;const h=t?l(this._inner,A):a(this._inner,A);let c,f;y?(c=t?o(this._innerPrev,T):s(this._innerPrev,T),f=t?s(this._innerNext,k):o(this._innerNext,k)):(c=h,f=h);const d=t?s(this._roundStart,T):o(this._roundStart,T),g=t?o(this._roundEnd,k):s(this._roundEnd,k),p=G(c.x,c.y,-T.x,-T.y,e.x,e.y),_=G(d.x,d.y,-T.x,-T.y,n.x,n.y);if(r)break;const m=this._writeVertex(v,M,L,D,-T.x,-T.y,0,0,0,0,U);y||this._writeTriangle(R,N,m);const I=l(this._outer,h),w=this._writeVertex(v,M,L,D,k.x,k.y,g.x,g.y,n.x,n.y,U);let P,S;const V=i>2;if(V){let e;i!==Number.MAX_VALUE?(I.x/=i,I.y/=i,e=u(T,I),e=(i*(e*e-1)+1)/e):e=-1,P=t?s(this._startBreak,T):o(this._startBreak,T),P.x+=T.x*e,P.y+=T.y*e,S=t?o(this._endBreak,k):s(this._endBreak,k),S.x+=k.x*e,S.y+=k.y*e}x(C,I,-T.x,-T.y);const z=this._writeVertex(v,M,L,D,-T.x,-T.y,I.x,I.y,C.x,C.y,U);x(C,I,k.x,k.y);const O=b?this._writeVertex(v,M,L,D,k.x,k.y,I.x,I.y,C.x,C.y,U):z,Z=m,Y=b?this._writeVertex(v,M,L,D,k.x,k.y,0,0,0,0,U):m;let W=-1,q=-1;if(V&&(x(C,P,-T.x,-T.y),W=this._writeVertex(v,M,L,D,-T.x,-T.y,P.x,P.y,C.x,C.y,U),x(C,S,k.x,k.y),q=this._writeVertex(v,M,L,D,k.x,k.y,S.x,S.y,C.x,C.y,U)),b?V?(this._writeTriangle(Z,_,W),this._writeTriangle(Z,W,z),this._writeTriangle(Y,O,q),this._writeTriangle(Y,q,w)):(this._writeTriangle(Z,_,z),this._writeTriangle(Y,O,w)):V?(this._writeTriangle(m,_,W),this._writeTriangle(m,W,q),this._writeTriangle(m,q,w)):(this._writeTriangle(m,_,z),this._writeTriangle(m,O,w)),y?(R=this._writeVertex(v,M,L,D,k.x,k.y,f.x,f.y,e.x,e.y,U),N=w):(R=b?this._writeVertex(v,M,L,D,k.x,k.y,f.x,f.y,e.x,e.y,U):p,this._writeTriangle(R,Y,w),N=w),t){const t=R;R=N,N=t}break}}}}}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"../../../../core/Error.js";import t from"../../../../core/Logger.js";import{PixelType as r}from"../../../webgl/enums.js";import{getDataTypeBytes as n}from"../../../webgl/getDataTypeBytes.js";import{VertexElementDescriptor as a}from"../../../webgl/VertexElementDescriptor.js";const s=()=>t.getLogger("esri.views.2d.engine.webgl.Utils");function o(t){switch(t){case r.UNSIGNED_BYTE:return 1;case r.UNSIGNED_SHORT_4_4_4_4:return 2;case r.FLOAT:return 4;default:return void s().error(new e("webgl-utils",`Unable to handle type ${t}`))}}function i(t){switch(t){case r.UNSIGNED_BYTE:return Uint8Array;case r.UNSIGNED_SHORT_4_4_4_4:return Uint16Array;case r.FLOAT:return Float32Array;default:return void s().error(new e("webgl-utils",`Unable to handle type ${t}`))}}function c(e){let t=0;const r=e.map(e=>{const r=new a(e.name,e.count,e.type,t,0,e.normalized||!1);return t+=e.count*n(e.type),r});return r.forEach(e=>e.stride=t),r}const l=e=>{const t=new Map;for(const r of e)t.set(r.name,r.location);return t};function u(e){return e[0]?.stride??0}const m=new Map,$=(e,t)=>{if(!m.has(e)){const r={bufferLayout:c(t),attributes:l(t)};m.set(e,r)}return m.get(e)},f=e=>e.includes("data:image/svg+xml");function d(e){const t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return t}const g=e=>!!e&&(e=e.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4));function p(e){if(null==e)return"";const{type:t}=e;switch(t){case"CIMMarkerPlacementAlongLineRandomSize":return`${t}-${e.seed}-${e.randomization}`;case"CIMMarkerPlacementAlongLineVariableSize":return`${t}-${e.maxRandomOffset}-${e.numberOfSizes}-${e.seed}-${e.variationMethod}`;case"CIMMarkerPlacementAtExtremities":return`${t}-${e.extremityPlacement}-${e.offsetAlongLine}`;case"CIMMarkerPlacementAtRatioPositions":return`${t}-${e.beginPosition}-${e.endPosition}-${e.flipFirst}-${JSON.stringify(e.positionArray)}`;case"CIMMarkerPlacementAtMeasuredUnits":return`${t}-${e.interval}-${e.skipMarkerRate}-${e.placeAtExtremities}`;case"CIMMarkerPlacementInsidePolygon":return`${t}-${e.stepX}-${e.stepY}-${e.randomness}-${e.gridType}-${e.seed}-${e.shiftOddRows}`;case"CIMMarkerPlacementOnLine":return`${t}-${e.relativeTo}-${e.startPointOffset}`;case"CIMMarkerPlacementOnVertices":return`${t}-${e.placeOnControlPoints}-${e.placeOnEndPoints}-${e.placeOnRegularVertices}`;case"CIMMarkerPlacementPolygonCenter":return`${t}-${e.method}`;default:return`${t}`}}export{d as charCodes,c as createAttributeLayout,$ as createProgramDescriptor,p as getCIMMarkerPlacementHash,i as getPixelArrayCtor,o as getPixelBytes,u as getStrideFromLayout,f as isSVGImage,g as isValidSVG};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import{getOrCreateMapValue as o}from"../../../../core/MapUtils.js";import s from"../../../../core/ReactiveMap.js";import{subclass as r}from"../../../../core/accessorSupport/decorators.js";let i=class extends t{constructor(){super(...arguments),this._idToCounters=new s}get size(){return this._idToCounters.size}get objectIds(){return this._idToCounters.keys()}get highlightNamesByObjectId(){return n(this._idToCounters)}add(e,t){let s=!1;for(const r of e){const e=o(this._idToCounters,r,()=>(s=!0,new Map)),i=e.get(t)??0;i||(s=!0),e.set(t,i+1)}return s}delete(e,t){let o=!1;for(const s of e){const e=this._idToCounters.get(s);if(!e)continue;let r=e.get(t);null!=r&&(r--,r>0?e.set(t,r):(e.delete(t),o=!0),0===e.size&&(this._idToCounters.delete(s),o=!0))}return o}};function*n(e){for(const[t,o]of e)yield[t,o.keys()]}i=e([r("esri.views.2d.layers.support.HighlightCounter")],i);export{i as HighlightCounter};
|