@arcgis/core 5.1.0-next.71 → 5.1.0-next.72
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/PopupTemplate.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/003fd7745966fe03510c.js +1 -0
- package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +1 -0
- package/assets/esri/core/workers/chunks/{36031cb53c486630f3c9.js → 026d3fa331caec1ea3d2.js} +1 -1
- package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +1 -0
- package/assets/esri/core/workers/chunks/{c06d021180418f2014de.js → 02876e434dc91c42b2f4.js} +1 -1
- package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +1 -0
- package/assets/esri/core/workers/chunks/{a5a46d0a0831497cf1b4.js → 0783890816bac45277b9.js} +1 -1
- package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +1 -0
- package/assets/esri/core/workers/chunks/0839da55707f7c4cf780.js +1 -0
- package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +1 -0
- package/assets/esri/core/workers/chunks/{d69110ec4078c583a05e.js → 0d96e39380fd84cea9ba.js} +1 -1
- package/assets/esri/core/workers/chunks/0dad0bca8d58b2c63d22.js +1 -0
- package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +1 -0
- package/assets/esri/core/workers/chunks/127cd8fee3717a473fc5.js +1 -0
- package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +1 -0
- package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +1 -0
- package/assets/esri/core/workers/chunks/1661684357912726a72a.js +1 -0
- package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +1 -0
- package/assets/esri/core/workers/chunks/1961b59756933e0a82f2.js +1 -0
- package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +1 -0
- package/assets/esri/core/workers/chunks/1f85646936200a399c15.js +1 -0
- package/assets/esri/core/workers/chunks/{deb8a0b306d7b9c86b97.js → 2171aaa147aa4d9fc5b5.js} +1 -1
- package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +1 -0
- package/assets/esri/core/workers/chunks/260d4571722cb1ff1366.js +1 -0
- package/assets/esri/core/workers/chunks/{3e972ae291df1844017d.js → 266ba61b72a278d93a26.js} +1 -1
- package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +1 -0
- package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +1 -0
- package/assets/esri/core/workers/chunks/{333a0038d782d8a34d58.js → 2abf124e2956e4f76688.js} +1 -1
- package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +1 -0
- package/assets/esri/core/workers/chunks/{f6d5dd2eef0d9918096e.js → 30e710ec4d22c43d4e7e.js} +1 -1
- package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +1 -0
- package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +1 -0
- package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +1 -0
- package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +1 -0
- package/assets/esri/core/workers/chunks/3cd9bd20e75ba4d5b294.js +1 -0
- package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +1 -0
- package/assets/esri/core/workers/chunks/{7cb6d8f7eaf762279632.js → 3ea5a18b264628dc37f0.js} +1 -1
- package/assets/esri/core/workers/chunks/41809c16544ec25120fa.js +1 -0
- package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +1 -0
- package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +1 -0
- package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +1 -0
- package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +1 -0
- package/assets/esri/core/workers/chunks/47f2113357b2aa4f4f37.js +1 -0
- package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +1 -0
- package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +1 -0
- package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +1 -0
- package/assets/esri/core/workers/chunks/4eed175277eb0df3c821.js +1 -0
- package/assets/esri/core/workers/chunks/{916a8f3eed1fafdc7242.js → 54d07eadf113f0e4e506.js} +1 -1
- package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +1 -0
- package/assets/esri/core/workers/chunks/{9187d1caca1fd2d713e0.js → 55369c5bd65bcaf78da1.js} +1 -1
- package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +1 -0
- package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +1 -0
- package/assets/esri/core/workers/chunks/{e77d958cb62536b8eebc.js → 5a4d7ba6dc1d4b41d80d.js} +1 -1
- package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +1 -0
- package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +1 -0
- package/assets/esri/core/workers/chunks/{fe68c28d3c61f116ff23.js → 5ef37f37e405b3bb5450.js} +1 -1
- package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +1 -0
- package/assets/esri/core/workers/chunks/{c92352b0e39576ca317a.js → 61ef14e42bc09b787d89.js} +1 -1
- package/assets/esri/core/workers/chunks/656d6963e8f837fbf28f.js +1 -0
- package/assets/esri/core/workers/chunks/68b47a5a50e0b5fffca2.js +1 -0
- package/assets/esri/core/workers/chunks/{a5afcd633b32e6ee31a7.js → 6a0352d20596ca3f4b64.js} +1 -1
- package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +1 -0
- package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +1 -0
- package/assets/esri/core/workers/chunks/6ea8b0d68881d16a2432.js +1 -0
- package/assets/esri/core/workers/chunks/6f9ea461c268c421f9c9.js +1 -0
- package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +1 -0
- package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +1 -0
- package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +1 -0
- package/assets/esri/core/workers/chunks/751609831b283903ba48.js +1 -0
- package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +1 -0
- package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +1 -0
- package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +1 -0
- package/assets/esri/core/workers/chunks/84772b023d04e415f17f.js +1 -0
- package/assets/esri/core/workers/chunks/{123e920e4460124ec3bb.js → 88b480a1d1fb01778798.js} +9 -30
- package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +1 -0
- package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +1 -0
- package/assets/esri/core/workers/chunks/8a14e3db28c403b046cf.js +1 -0
- package/assets/esri/core/workers/chunks/8a664451845a47048859.js +1 -0
- package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +1 -0
- package/assets/esri/core/workers/chunks/{4d51261d6131c07402cd.js → 8acee3fba488f202f82f.js} +1 -1
- package/assets/esri/core/workers/chunks/91a0227a64a944af3286.js +596 -0
- package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +1 -0
- package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +1 -0
- package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +1 -0
- package/assets/esri/core/workers/chunks/9d434360dfce1e49b7b9.js +1 -0
- package/assets/esri/core/workers/chunks/9f4b97204def91567e3c.js +1 -0
- package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +1 -0
- package/assets/esri/core/workers/chunks/{58b3c888c8bfedbe6443.js → a37fc886227365f7ecd5.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +1 -0
- package/assets/esri/core/workers/chunks/{f89976ec97938bf86996.js → abc06d10c7ac8ba5b0e4.js} +1 -1
- package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +1 -0
- package/assets/esri/core/workers/chunks/{fef5dc19736f12dfa99a.js → af5db0372d526e592fcc.js} +1 -1
- package/assets/esri/core/workers/chunks/{eb3cdc4ff45243fc3cc5.js → b475f5492c6e3fd4cca8.js} +1 -1
- package/assets/esri/core/workers/chunks/b495f14d90abe8d1a558.js +1 -0
- package/assets/esri/core/workers/chunks/{6ac5ec3ecbca8860338b.js → b54b7cc6b23a70fed700.js} +1 -1
- package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +1 -0
- package/assets/esri/core/workers/chunks/b79058f5bda6fcac22f8.js +1 -0
- package/assets/esri/core/workers/chunks/b801631b58e6fc6cec8a.js +1 -0
- package/assets/esri/core/workers/chunks/{31071a43e2c03984d619.js → b92794def31592a6a25f.js} +1 -1
- package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +1 -0
- package/assets/esri/core/workers/chunks/bea70be8e38b8c83ccd2.js +1 -0
- package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +1 -0
- package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +1 -0
- package/assets/esri/core/workers/chunks/c1838822b096d5f36a8b.js +1 -0
- package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +1 -0
- package/assets/esri/core/workers/chunks/{c2882a9e67124b7c18be.js → c503c79ba5761f7abbeb.js} +1 -1
- package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +1 -0
- package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +1 -0
- package/assets/esri/core/workers/chunks/{3b7cda16e656db450f11.js → d2aa75816e84b1e7fd25.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d8670f6fa8952b7bab6.js → d950d5c2844206502ff0.js} +1 -1
- package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +1 -0
- package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +1 -0
- package/assets/esri/core/workers/chunks/{967758a05170545cd371.js → dcc719e15b2e0cce1f3b.js} +1 -1
- package/assets/esri/core/workers/chunks/{6bb090f3e5c18604cb39.js → dd5b362bded458afa2d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{e957d52cb9643961a843.js → de583214195eff13cb00.js} +58 -45
- package/assets/esri/core/workers/chunks/dec6d41d614105e6fd93.js +1 -0
- package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +1 -0
- package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +1 -0
- package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +1 -0
- package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +1 -0
- package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +1 -0
- package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +1 -0
- package/assets/esri/core/workers/chunks/{231f502cd15f30d12be2.js → f1673e723b336204ad77.js} +1 -1
- package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +1 -0
- package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +1 -0
- package/chunks/CheckerBoard.glsl.js +3 -5
- package/chunks/ColorMaterial.glsl.js +4 -6
- package/chunks/ComponentShader.glsl.js +42 -44
- package/chunks/DefaultMaterial.glsl.js +21 -23
- package/chunks/EdgeShader.glsl.js +9 -11
- package/chunks/GaussianSplat.glsl.js +8 -8
- package/chunks/ImageMaterial.glsl.js +5 -7
- package/chunks/LineCallout.glsl.js +9 -12
- package/chunks/LineMarker.glsl.js +24 -26
- package/chunks/Path.glsl.js +15 -17
- package/chunks/Pattern.glsl.js +25 -27
- package/chunks/RealisticTree.glsl.js +11 -13
- package/chunks/RibbonLine.glsl.js +42 -45
- package/chunks/ShadedColorMaterial.glsl.js +8 -9
- package/chunks/Water.glsl.js +18 -20
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/FlatFeature.js +1 -1
- package/layers/graphics/FlatFeatureSet.js +1 -1
- package/layers/graphics/OptimizedFeature.js +1 -1
- package/layers/graphics/data/AttributesBuilder.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/flatFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/support/LabelClass.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/package.json +1 -1
- package/popupTemplateUtils.js +2 -0
- package/renderers/visualVariables/SizeVariable.js +1 -1
- package/renderers/visualVariables/support/sizeVariableUtils.js +1 -1
- package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
- package/rest/support/OutDistance.js +2 -0
- package/rest/support/Query.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/StreamLayerView3D.js +1 -1
- package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialGlobalParameters.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +20 -32
- package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +5 -3
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/Compositor.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.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/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/video/VideoOperationalDataView.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +19 -3
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable/VisibleElements.d.ts +15 -1
- package/widgets/FeatureTable/VisibleElements.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +15 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/09ecb36e44096e577af8.js +0 -1
- package/assets/esri/core/workers/chunks/0ca06ea649bbdb93ff49.js +0 -1
- package/assets/esri/core/workers/chunks/10308c9f3f0d709d96bc.js +0 -1
- package/assets/esri/core/workers/chunks/141edf5ed890105a079b.js +0 -1
- package/assets/esri/core/workers/chunks/160b9a76b75875507c86.js +0 -1
- package/assets/esri/core/workers/chunks/16dfdee05704df249e95.js +0 -1
- package/assets/esri/core/workers/chunks/17ef955dc48e329aa184.js +0 -1
- package/assets/esri/core/workers/chunks/18001536ed345955121a.js +0 -1
- package/assets/esri/core/workers/chunks/20e715e3aeb1c3265901.js +0 -1
- package/assets/esri/core/workers/chunks/238f51d0b36f998017b8.js +0 -1
- package/assets/esri/core/workers/chunks/2cee6d751c5e73fe09d4.js +0 -1
- package/assets/esri/core/workers/chunks/314140e2e9b813191907.js +0 -1
- package/assets/esri/core/workers/chunks/3158a3487d3e8a61b680.js +0 -1
- package/assets/esri/core/workers/chunks/3b1446286a9b87f34761.js +0 -1
- package/assets/esri/core/workers/chunks/3f7fd58ee7d71989fc83.js +0 -1
- package/assets/esri/core/workers/chunks/41396724040180d2537f.js +0 -1
- package/assets/esri/core/workers/chunks/416e031bafc0189544fa.js +0 -1
- package/assets/esri/core/workers/chunks/55ee78923987ed17ea8c.js +0 -1
- package/assets/esri/core/workers/chunks/56c7d7c7217557375fb6.js +0 -1
- package/assets/esri/core/workers/chunks/5a1d975b3e9e6b7eff67.js +0 -1
- package/assets/esri/core/workers/chunks/5f6942ac94acd7842926.js +0 -1
- package/assets/esri/core/workers/chunks/6118706b9a038e9a06b8.js +0 -1
- package/assets/esri/core/workers/chunks/6d15229b3fa84a7acf4d.js +0 -599
- package/assets/esri/core/workers/chunks/7314c0131403cac84ad7.js +0 -1
- package/assets/esri/core/workers/chunks/73545bb13c70f6a347a4.js +0 -1
- package/assets/esri/core/workers/chunks/73a045061e69a22b6869.js +0 -1
- package/assets/esri/core/workers/chunks/75669912cddcb5db52c8.js +0 -1
- package/assets/esri/core/workers/chunks/7ca32806e47be15109a4.js +0 -1
- package/assets/esri/core/workers/chunks/7d6ed65bbcd279448191.js +0 -1
- package/assets/esri/core/workers/chunks/81f149e45c79b9b086fb.js +0 -1
- package/assets/esri/core/workers/chunks/84fa25f66a6949290221.js +0 -1
- package/assets/esri/core/workers/chunks/852aabbf671d2ca9cd33.js +0 -1
- package/assets/esri/core/workers/chunks/854fe80272b59fafc2e9.js +0 -1
- package/assets/esri/core/workers/chunks/861817be5e050e9522ab.js +0 -1
- package/assets/esri/core/workers/chunks/89345a682dea60ef1643.js +0 -1
- package/assets/esri/core/workers/chunks/8985402c328b90af5724.js +0 -1
- package/assets/esri/core/workers/chunks/89fdf9ad10ca8fbb08a5.js +0 -1
- package/assets/esri/core/workers/chunks/8b094330323d9b16fb5d.js +0 -1
- package/assets/esri/core/workers/chunks/90aed8c4b266832f84ca.js +0 -1
- package/assets/esri/core/workers/chunks/9776c2db337222ceceef.js +0 -1
- package/assets/esri/core/workers/chunks/990853e9df38fdfc58b5.js +0 -1
- package/assets/esri/core/workers/chunks/9a21ba0c45a96b94c05e.js +0 -1
- package/assets/esri/core/workers/chunks/9a235c92f21df2c17aa8.js +0 -1
- package/assets/esri/core/workers/chunks/9b56162ac67c992193ce.js +0 -1
- package/assets/esri/core/workers/chunks/9f1f5fb648302c43ad12.js +0 -1
- package/assets/esri/core/workers/chunks/a1e6187c239fdc7553ed.js +0 -1
- package/assets/esri/core/workers/chunks/a4b6fdbc995be03d2afb.js +0 -1
- package/assets/esri/core/workers/chunks/a760be8fa6c6ea6b745c.js +0 -1
- package/assets/esri/core/workers/chunks/a8782286ce3c0d6c20e6.js +0 -1
- package/assets/esri/core/workers/chunks/a96692514dcaa50340dd.js +0 -1
- package/assets/esri/core/workers/chunks/a994a3c912a33b2f4100.js +0 -1
- package/assets/esri/core/workers/chunks/aa7aaeae31ddb259e55e.js +0 -1
- package/assets/esri/core/workers/chunks/abcc5fb71be2bd94878c.js +0 -1
- package/assets/esri/core/workers/chunks/aecb05df4ad1454f5435.js +0 -1
- package/assets/esri/core/workers/chunks/aecb105db7cec2c9c4c5.js +0 -1
- package/assets/esri/core/workers/chunks/b19f33e026a2a43b17c4.js +0 -1
- package/assets/esri/core/workers/chunks/b3950d5f1f3352521504.js +0 -1
- package/assets/esri/core/workers/chunks/b3f0600729227b458a75.js +0 -1
- package/assets/esri/core/workers/chunks/b5922991d2f450e6a9d9.js +0 -1
- package/assets/esri/core/workers/chunks/b8643976a7f984552d94.js +0 -1
- package/assets/esri/core/workers/chunks/b8a11d32a4847513619b.js +0 -1
- package/assets/esri/core/workers/chunks/b8acb6c2538053c01cc6.js +0 -1
- package/assets/esri/core/workers/chunks/ba4259aa050169c1d523.js +0 -1
- package/assets/esri/core/workers/chunks/bbaf1d9835671c0165ca.js +0 -1
- package/assets/esri/core/workers/chunks/bcefdf9753d9d2f6f1be.js +0 -1
- package/assets/esri/core/workers/chunks/c178e2cfc34603661b1d.js +0 -1
- package/assets/esri/core/workers/chunks/c3e80c0e29ac6a7a6f80.js +0 -1
- package/assets/esri/core/workers/chunks/c79827f879d1d58d3f1b.js +0 -1
- package/assets/esri/core/workers/chunks/c92b40a532e708e506cc.js +0 -1
- package/assets/esri/core/workers/chunks/cb903ccbce87172a0757.js +0 -1
- package/assets/esri/core/workers/chunks/cda2e445eb2ac269abdf.js +0 -1
- package/assets/esri/core/workers/chunks/ce44e172e2847fd8df14.js +0 -1
- package/assets/esri/core/workers/chunks/cff7e921649aef715c78.js +0 -1
- package/assets/esri/core/workers/chunks/d315098b038a96084ff5.js +0 -1
- package/assets/esri/core/workers/chunks/d8c0d18f0132872decd3.js +0 -1
- package/assets/esri/core/workers/chunks/db0061a6d5bf454cc509.js +0 -1
- package/assets/esri/core/workers/chunks/dcfafcf4386f2940d000.js +0 -1
- package/assets/esri/core/workers/chunks/e2b034c391c603f7f825.js +0 -1
- package/assets/esri/core/workers/chunks/e3a73d9acebccd3ba49b.js +0 -1
- package/assets/esri/core/workers/chunks/e67bdd8bf38ebe89a344.js +0 -1
- package/assets/esri/core/workers/chunks/e797d45eba0884dc7e6f.js +0 -1
- package/assets/esri/core/workers/chunks/e81a3da05fcff97b4752.js +0 -1
- package/assets/esri/core/workers/chunks/e9dd60d0220036545ebb.js +0 -1
- package/assets/esri/core/workers/chunks/ea6d3b7c7d720aa7bc94.js +0 -1
- package/assets/esri/core/workers/chunks/eb9982bc866976fef960.js +0 -1
- package/assets/esri/core/workers/chunks/ec4669a0edeca94710e0.js +0 -1
- package/assets/esri/core/workers/chunks/ef9d74f8d5a502fda809.js +0 -1
- package/assets/esri/core/workers/chunks/f09446b9ff937a84d6d3.js +0 -1
- package/assets/esri/core/workers/chunks/f0bc5e8e44d53b73d431.js +0 -1
- package/assets/esri/core/workers/chunks/f653970d983f17fb764b.js +0 -1
- package/assets/esri/core/workers/chunks/f9edc685099f51363f41.js +0 -1
- package/assets/esri/core/workers/chunks/fa687ba2d66fcc2501da.js +0 -1
- package/assets/esri/core/workers/chunks/fb9a889ec9fd23739a14.js +0 -1
- package/assets/esri/core/workers/chunks/fe1b67ab7748a3aef231.js +0 -1
- package/chunks/HUDCompositing.glsl.js +0 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +0 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +0 -8
- package/views/3d/webgl-engine/effects/fboFormatUtils.js +0 -2
- package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[122,742,4342,4744,7694],{52106(e,t,n){n.d(t,{A:()=>T});var r,i,o=n(5482),s=n(37838),l=n(69540),a=n(51447),u=n(25482),c=n(53966),p=n(36708),f=n(24326),h=n(91429),d=n(12195),g=n(65864),m=n(50498),y=n(55156),w=n(60950),v=n(54339),M=n(94128),b=n(33910);function x(e){if(null==e)return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let T=class extends((0,l.OU)(u.o)){static{r=M.Z}static{i=this}constructor(e){super(e),this[r]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,w.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:x(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,d.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(i.action=r),"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,o.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,g.rS)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],T.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,h.MZ)({value:null})],T.prototype,"attributes",null),(0,o.Cg)([(0,h.MZ)({value:null,types:m.yR,json:{read:g.rS}})],T.prototype,"geometry",null),(0,o.Cg)([(0,h.MZ)({type:Boolean})],T.prototype,"isAggregate",void 0),(0,o.Cg)([(0,h.MZ)({clonable:!1})],T.prototype,"layer",void 0),(0,o.Cg)([(0,h.MZ)({clonable:"reference"})],T.prototype,"origin",void 0),(0,o.Cg)([(0,h.MZ)({type:s.A,value:null})],T.prototype,"popupTemplate",null),(0,o.Cg)([(0,h.MZ)({clonable:"reference"})],T.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,h.MZ)({value:null,types:b.Es})],T.prototype,"symbol",null),(0,o.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],T.prototype,"_version",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean,value:!0})],T.prototype,"visible",null),T=i=(0,o.Cg)([(0,h.$K)("esri.Graphic")],T)},46140(e,t,n){n.d(t,{A:()=>i});var r=n(49186);class i{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new r.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[n,o]=e.split("."),s=/^\s*\d+\s*$/;if(!n?.match||!s.test(n))throw new r.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new r.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const l=parseInt(n,10),a=parseInt(o,10);return new i(l,a,t)}}},6797(e,t,n){n.d(t,{Ui:()=>f});var r=n(69622),i=n(7762),o=n(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof r.A}function a(e){return e instanceof i.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const r=a(e),i=a(t);if(0===r.length&&0===i.length)return;if(!r.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=i.filter(e=>!r.includes(e)),f=r.filter(e=>!i.includes(e)),h=r.filter(n=>i.includes(n)&&u(e,n)!==u(t,n)).concat(o,f).sort(),d=c(e);if(d&&s.has(d)&&h.length)return{type:"complete",oldValue:e,newValue:t};let g;const m=l(e)&&l(t);for(const r of h){const i=u(e,r),o=u(t,r);let s;if((m||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(n&&n[r]&&"function"==typeof n[r])s=n[r]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&c(i)===c(o)?p(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=g?g.diff[r]=s:g={type:"partial",diff:{[r]:s}})}}return g}function f(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(e,t,n,r,i,o,s,l,a,u,c,p,f,h,d,g){return[e,t,n,r,i,o,s,l,a,u,c,p,f,h,d,g]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>C,DI:()=>x,Il:()=>D,Io:()=>w,Ln:()=>y,Om:()=>_,Qr:()=>p,Re:()=>u,S8:()=>T,T9:()=>g,WQ:()=>a,Z0:()=>I,_S:()=>h,aI:()=>P,ei:()=>j,fw:()=>F,g7:()=>Z,gL:()=>S,hG:()=>v,hZ:()=>l,hs:()=>m,jb:()=>N,jk:()=>d,lo:()=>G,lw:()=>c,m3:()=>M,oW:()=>$,t2:()=>O,tn:()=>f,uE:()=>q,xg:()=>L,ze:()=>b});var r=n(51850),i=n(34304);function o(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function p(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function f(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function d(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function w(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function M(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function b(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function T(e,t){const n=t[0],r=t[1],i=t[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],l=n[1],a=n[2];return e[0]=i*a-o*l,e[1]=o*s-r*a,e[2]=r*l-i*s,e}function C(e,t,n,r){const i=t[0],o=t[1],s=t[2];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=s+r*(n[2]-s),e}function I(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12],e[1]=n[1]*r+n[5]*i+n[9]*o+n[13],e[2]=n[2]*r+n[6]*i+n[10]*o+n[14],e}function j(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e}function S(e,t,n){return F(e,t,n[0],n[1],n[2],n[3])}function F(e,t,n,r,i,o){const s=t[0],l=t[1],a=t[2],u=r*a-i*l,c=i*s-n*a,p=n*l-r*s,f=r*p-i*c,h=i*u-n*p,d=n*c-r*u,g=2*o;return e[0]=s+u*g+2*f,e[1]=l+c*g+2*h,e[2]=a+p*g+2*d,e}function Z(e,t){T(R,e),T(z,t);const n=_(R,z);return n>1?0:n<-1?Math.PI:Math.acos(n)}const R=(0,r.vt)(),z=(0,r.vt)();function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function P(e,t){if(e===t)return!0;const n=e[0],r=e[1],o=e[2],s=t[0],l=t[1],a=t[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))}function $(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],o=n[2]-t[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const N=u,E=c,k=p,L=w,G=v,D=o,q=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:a,angle:Z,bezier:function(e,t,n,r,i,o){const s=1-o,l=s*s,a=o*o,u=l*s,c=3*o*l,p=3*a*s,f=a*o;return e[0]=t[0]*u+n[0]*c+r[0]*p+i[0]*f,e[1]=t[1]*u+n[1]*c+r[1]*p+i[1]*f,e[2]=t[2]*u+n[2]*c+r[2]*p+i[2]*f,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:A,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],l=n[1],a=n[2],u=i*a-o*l,c=o*s-r*a,p=r*l-i*s,f=Math.sqrt(u*u+c*c+p*p);return e[0]=u/f,e[1]=c/f,e[2]=p/f,e},direction:$,dist:L,distance:w,div:k,divide:p,dot:_,equals:P,exactEquals:O,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,o){const s=o*o,l=s*(2*o-3)+1,a=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return e[0]=t[0]*l+n[0]*a+r[0]*u+i[0]*c,e[1]=t[1]*l+n[1]*a+r[1]*u+i[1]*c,e[2]=t[2]*l+n[2]*a+r[2]*u+i[2]*c,e},inverse:x,len:D,length:o,lerp:C,max:g,min:d,mul:E,multiply:c,negate:b,normalize:T,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=o*t,e},rotateX:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:y,set:l,sign:h,sqrDist:G,sqrLen:q,squaredDistance:v,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:N,subtract:u,transformMat3:j,transformMat4:I,transformQuat:S,transformQuatValues:F},Symbol.toStringTag,{value:"Module"}))},16494(e,t,n){n.d(t,{Nd:()=>l,W5:()=>s});var r=n(17632);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new r.I({whiteList:i,onTagAttr:(e,t,n)=>{const r=`${t}="${n}"`;if(o.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},13069(e,t,n){n.d(t,{AG:()=>l,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},159(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),o=n(69540),s=n(25482),l=n(91429),a=n(99157);let u=r=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,i.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>a});var r,i=n(5482),o=n(69540),s=n(25482),l=n(91429);let a=r=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=r=(0,i.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>i});var r=n(49208);function i(e,t,n,i,o,s,l=Math.floor(e.length/3)){const a=(0,r.jd)(t,o);if(null==a)return!1;if(a===r.pO){if(e===i&&n===s)return!0;const t=n+3*l;for(let r=n,o=s;r<t;r++,o++)i[o]=e[r]??0;return!0}const u=n+3*l;for(let t=n,r=s;t<u;t+=3,r+=3)a(e,t,i,r);return!0}},49208(e,t,n){n.d(t,{Tp:()=>p,jd:()=>c,pO:()=>h,w5:()=>u});var r=n(34727),i=n(86211),o=n(73941),s=n(79258),l=n(34403),a=n(21325);const u={2:{5:h,7:null,9:null,10:h,1:b,6:null,8:null,0:null,3:g,11:m,2:h,4:C},5:{5:h,7:null,9:null,10:h,1:b,6:null,8:null,0:null,3:g,11:m,2:h,4:C},7:{5:null,7:h,9:null,10:h,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(e,t,n,r){const i=e[t]/R,o=Z-2*Math.atan(Math.exp(-e[t+1]/R)),s=R+(e[t+2]??0),l=Math.cos(o)*s;n[r]=Math.cos(i)*l,n[r+1]=Math.sin(i)*l,n[r+2]=Math.sin(o)*s},6:null,8:null,0:null,3:h,11:function(e,t,n,r){d(e,t,n,r),m(n,r,n,r)},2:d,4:function(e,t,n,r){d(e,t,n,r),C(n,r,n,r)}},4:{5:I,7:null,9:null,10:I,1:function(e,t,n,r){I(e,t,n,r),b(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){I(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){I(e,t,n,r),m(n,r,n,r)},2:I,4:h},1:{5:A,7:null,9:null,10:A,1:h,6:null,8:null,0:null,3:function(e,t,n,r){A(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){A(e,t,n,r),m(n,r,n,r)},2:A,4:function(e,t,n,r){A(e,t,n,r),C(n,r,n,r)}},6:{5:null,7:_,9:null,10:_,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:b,6:M,8:v,0:null,3:g,11:m,2:h,4:C},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),b(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),g(n,r,n,r)},11:h,2:y,4:function(e,t,n,r){y(e,t,n,r),C(n,r,n,r)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=f(e,j.source),r=f(t,j.dest);return 0===n&&0===r?(0,a.aI)(e,t)?j.projector=h:j.projector=null:j.projector=u[n][r],j}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function h(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function d(e,t,n,r){n[r]=F*(e[t]/R),n[r+1]=F*(Z-2*Math.atan(Math.exp(-e[t+1]/R))),n[r+2]=e[t+2]??0}function g(e,t,n,i){!function(e,t,n,i,o){const s=.4999999*Math.PI,l=(0,r.qE)(S*e[t+1],-s,s),a=Math.sin(l);n[i++]=S*e[t]*o.radius,n[i++]=o.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[i]=e[t+2]??0}(e,t,n,i,s.$O)}function m(e,t,n,r){n[r]=e[t]*z,n[r+1]=e[t+1]*z,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*O,n[r+1]=e[t+1]*O,n[r+2]=e[t+2]??0}function w(e,t,n,r,i){const o=i+(e[t+2]??0),s=S*e[t],l=S*e[t+1],a=Math.cos(l)*o;n[r]=Math.cos(s)*a,n[r+1]=Math.sin(s)*a,n[r+2]=Math.sin(l)*o}function v(e,t,n,r){w(e,t,n,r,s.Sw.radius)}function M(e,t,n,r){w(e,t,n,r,s.sH.radius)}function b(e,t,n,r){w(e,t,n,r,s.$O.radius)}function x(e,t,n,i,o){const s=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(s*s+l*l+a*a),c=(0,r.YN)(a/(0===u?1:u)),p=Math.atan2(l,s);n[i++]=F*p,n[i++]=F*c,n[i]=u-o}function T(e,t,n,r){x(e,t,n,r,s.Sw.radius)}function _(e,t,n,r){x(e,t,n,r,s.sH.radius)}function A(e,t,n,r){x(e,t,n,r,s.$O.radius)}function C(e,t,n,r){!function(e,t,n,r,i){const o=S*e[t],s=S*e[t+1],l=e[t+2]??0,a=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);n[r++]=(c+l)*u*Math.cos(o),n[r++]=(c+l)*u*Math.sin(o),n[r++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,n,r,s.$O)}function I(e,t,n,r){const i=l.TP,o=e[t],a=e[t+1],u=e[t+2]??0;let c,p,f,h,d,g,m,y,w,v,M,b,x,T,_,A,C,I,j,S,Z;c=Math.abs(u),p=o*o+a*a,f=Math.sqrt(p),h=p+u*u,d=Math.sqrt(h),S=Math.atan2(a,o),g=u*u/h,m=p/h,T=i.a2/d,_=i.a3-i.a4/d,m>.3?(y=c/d*(1+m*(i.a1+T+g*_)/d),j=Math.asin(y),v=y*y,w=Math.sqrt(1-v)):(w=f/d*(1-g*(i.a5-T-m*_)/d),j=Math.acos(w),v=1-w*w,y=Math.sqrt(v)),M=1-s.$O.eccentricitySquared*v,b=s.$O.radius/Math.sqrt(M),x=i.a6*b,T=f-b*w,_=c-x*y,C=w*T+y*_,A=w*_-y*T,I=A/(x/M+C),j+=I,Z=C+A*I/2,u<0&&(j=-j),n[r++]=F*S,n[r++]=F*j,n[r]=Z}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},S=(0,r.kU)(1),F=(0,r.KJ)(1),Z=.5*Math.PI,R=s.$O.radius,z=R*Math.PI/180,O=180/(R*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>J,initializeProjection:()=>B,isEqualBaseGCS:()=>V,isLoaded:()=>R,isLoadedOrLoad:()=>z,isLoadedOrLoadFor:()=>O,load:()=>$,project:()=>N,projectAsync:()=>K,projectExtent:()=>ie,projectMany:()=>E,projectMultipoint:()=>Q,projectOrLoad:()=>L,projectOrLoadMany:()=>G,projectPoint:()=>Y,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>W,requiresLoad:()=>P,test:()=>U,tryProject:()=>k,unload:()=>q});var r=n(49186),i=n(17676),o=n(62788),s=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),h=n(86738),d=n(39829),g=n(82799),m=n(16930),y=n(98764),w=n(159),v=n(9762),M=n(49208);function b(e,t,n,r,i,o){return x[0]=e,x[1]=t,x[2]=n,(0,v.projectBuffer)(x,r,0,i,o,0)}const x=(0,l.vt)();var T=n(60408),_=n(21325),A=n(52006);let C=null,I=null,j=null,S=null,F={};const Z=new s.I;function R(){return!!(I?.isLoaded()&&j?.isLoaded()&&S?.isLoaded())}function z(){return!!R()||((0,o.gc)(Z),$(),!1)}function O(e,t){return!e||!t||J(e,t)||z()}function P(e,t){return!J(e,t)&&!R()}async function $(e){null==C&&(C=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(I=e,I.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(j=e,j.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(S=e,S.load()))])),await C,(0,i.Te)(e),Z.notify()}function N(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),E(e,e[0].spatialReference,t,n)):((0,a.f)(e),E([e],e.spatialReference,t,n)[0])}function E(e,t,n,r){if(null==t||null==n)return e;if(J(t,n,r))return e.map(e=>W(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return E(e.map(e=>W(e,t,m.A.WGS84)),m.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return E(e,t,m.A.WGS84).map(e=>W(e,m.A.WGS84,n));if(!R())throw new D;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:S.getTransformation(t,n,r.areaOfInterestExtent)||new w.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let i=F[e];i||(i=S.getTransformation(t,n)||new w.A,F[e]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?I.executeMany(e,n,r):j.executeMany(e,n,r)}function k(e,t,n){try{return N(e,t,n)}catch(e){return null}}function L(e,t){const n=G([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(e,t,n){if(!R())for(const n of e)if(null!=n&&!(0,_.aI)(n.spatialReference,t)&&(0,_.fn)(n.spatialReference)&&(0,_.fn)(t)&&!J(n.spatialReference,t))return(0,o.gc)(Z),{pending:$(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,_.aI)(e.spatialReference,t)?e:(0,_.fn)(e.spatialReference)&&(0,_.fn)(t)?N(e,t,n):null)}}class D extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){C=null,I=null,j=null,S=null,F={}}const U={get loadPromise(){return C}};async function K(e,t,n){if((0,i.Te)(n),!e)return e;const r=G(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,i.Te)(n),K(e,t,n);const o=r.geometries??[];return Array.isArray(e)?o:o[0]}function J(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,_.aI)(e,t)||(0,_.fn)(e)&&(0,_.fn)(t)&&!!(0,M.jd)(e,t))}function V(e,t){if((0,_.aI)(e,t))return!0;if(!(0,_.fn)(e)||!(0,_.fn)(t))return!1;const n=(0,_.oT)(e)||(0,_.K8)(e)||(0,_.x1)(e),r=(0,_.oT)(t)||(0,_.K8)(t)||(0,_.x1)(t);return n&&r}async function B(e,t,n,r){if(R())return(0,i.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:i}of e)if(t&&n&&!J(t,n,i))return $(r)}else if(e&&t&&!J(e,t,n))return $(r);return(0,i.NO)(r)}function W(e,t,n){return e?(0,T.fT)(e)?H(e,t,new h.A,n,0):(0,T.ZC)(e)?oe(e,t,new c.A,n,0):(0,T.Bi)(e)?re(e,t,new d.A,n,0):(0,T.Rg)(e)?te(e,t,new g.A,n,0):(0,T.U9)(e)?X(e,t,new f.A,n,0):null:null}function Y(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,n,r)}function H(e,t,n,r,i){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:i,(0,v.projectBuffer)(ue,t,0,ue,r,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=r,void 0!==o||(0,u.xP)(r)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Q(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,r)}function X(e,t,n,r,i){const{points:o,hasZ:s,hasM:l}=e,a=[],u=o.length,c=[];for(const e of o)c.push(e[0],e[1],s?e[2]:i);if(!(0,v.projectBuffer)(c,t,0,c,r,0,u))return null;const p=ae(s,r);for(let e=0;e<u;++e){const t=3*e,n=c[t],r=c[t+1];p&&l?a.push([n,r,c[t+2],o[e][3]]):p?a.push([n,r,c[t+2]]):l?a.push([n,r,o[e][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=s,n.hasM=l,n}function ee(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,r)}function te(e,t,n,r,i){const{curvePaths:o,paths:s,hasZ:l,hasM:a}=e;if(!(o?le(o,l??!1,a??!1,t,n.curvePaths=[],r,i):se(s,l??!1,a??!1,t,n.paths,r,i)))return null;const u=ae(l,r);return n.spatialReference=r,n.hasZ=u,n.hasM=a,n}function ne(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,r)}function re(e,t,n,r,i){const{curveRings:o,rings:s,hasZ:l,hasM:a}=e;return(o?le(o,l??!1,a??!1,t,n.curveRings=[],r,i):se(s,l??!1,a??!1,t,n.rings,r,i))?(n.spatialReference=r,n.hasZ=ae(l,r),n.hasM=a,n):null}function ie(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=oe(e,e.spatialReference,t,n,r)}function oe(e,t,n,r,i){const{xmin:o,ymin:s,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!b(o,s,u?e.zmin:i,t,ue,r))return null;const p=ae(u,r);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),b(l,a,u?e.zmax:i,t,ue,r)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function se(e,t,n,r,i,o,s=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(l,r,0,l,o,0))return!1;let a=0;i.length=0;const u=t?3:2,c=ae(t,o);for(const t of e){const e=new Array;for(const r of t){const t=l.slice(a,a+=3);c||t.pop(),n&&t.push(r[u]),e.push(t)}i.push(e)}return!0}function le(e,t,n,r,i,o,s=0){const l=new Array;for(const n of e)for(const e of n){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[n,r]=e.c;l.push(n[0],n[1],t?n[2]:s,r[0],r[1],s);continue}if((0,A.n1)(e)){const[n,r,i]=e.b;l.push(n[0],n[1],t?n[2]:s,r[0],r[1],s,i[0],i[1],s);continue}const n=e;l.push(n[0],n[1],t?n[2]:s)}if(!(0,v.projectBuffer)(l,r,0,l,o,0))return!1;let a=0;i.length=0;const u=t?3:2,c=ae(t,o);for(const t of e){const e=new Array;for(const r of t){const t=l.slice(a,a+=3);if(c||t.pop(),n&&t.push((0,A.yP)(r)[u]),(0,A.FG)(r))return!1;if((0,A.aO)(r)){const n=l[a++],r=l[a++];++a,e.push({c:[t,[n,r]]});continue}if((0,A.n1)(r)){const n=l[a++],r=l[a++];++a;const i=l[a++],o=l[a++];++a,e.push({b:[t,[n,r],[i,o]]});continue}e.push(t)}i.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,_.aI)(t,y.Y0)}const ue=(0,l.vt)()},98764(e,t,n){n.d(t,{GD:()=>s,Y0:()=>u,lO:()=>c});var r=n(73941),i=n(16930),o=n(21325);const s=new i.A(r.fv),l=new i.A(r.FY),a=new i.A(r.LJ),u=new i.A(r.Ro);function c(e){const t=p.get(e);if(t)return t;let n=s;if(e)if(e===l)n=l;else if(e===a)n=a;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,o.tl)(t)||(0,o.tl)(r)?n=l:((0,o.ZL)(t)||(0,o.ZL)(r))&&(n=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?n=l:e===h&&(n=a)}}}return p.set(e,n),n}const p=new Map,f=l.wkt.toUpperCase(),h=a.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>a,cj:()=>l,jh:()=>o,l5:()=>s});var r=n(34275),i=n(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e){return[...e]}function a(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>v,DC:()=>p,Ej:()=>h,Ie:()=>y,Jt:()=>w,Ne:()=>d,RF:()=>c,aI:()=>b,fA:()=>s,gE:()=>a,hZ:()=>m,iT:()=>f,is:()=>M,qv:()=>x,vI:()=>g,vY:()=>l,v_:()=>T,vt:()=>o,w1:()=>u}),n(35522);var r=n(5443),i=(n(19419),n(4197));function o(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,n,r,i,s,l=o()){return l[0]=e,l[1]=t,l[2]=n,l[3]=r,l[4]=i,l[5]=s,l}function l(e,t=o()){return function(e,t,n,r=o()){return m(r,x),function(e,t,n=0,r=t.length/3){let i=e[0],o=e[1],s=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),o=Math.min(o,t[n+3*e+1]),s=Math.min(s,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=o,e[2]=s,e[3]=l,e[4]=a,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function a(e,t=(0,i.jh)(24)){const[n,r,o,s,l,a]=e;return t[0]=n,t[1]=r,t[2]=o,t[3]=n,t[4]=r,t[5]=a,t[6]=n,t[7]=l,t[8]=o,t[9]=n,t[10]=l,t[11]=a,t[12]=s,t[13]=r,t[14]=o,t[15]=s,t[16]=r,t[17]=a,t[18]=s,t[19]=l,t[20]=o,t[21]=s,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function h(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function g(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?m(e,x):o(x)}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function b(e,t,n){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const x=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];o()},34403(e,t,n){n.d(t,{TP:()=>s});var r=n(79258);Math.PI;const i=r.$O.radius,o=r.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},50498(e,t,n){n.d(t,{Ye:()=>p,gy:()=>c,iI:()=>h,yR:()=>f});var r=n(66552),i=n(5443),o=n(91075),s=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:o.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:l.A,polyline:u.A,polygon:a.A}},h=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},62815(e,t,n){n.d(t,{N:()=>l,d:()=>a});var r=n(86211),i=n(73941),o=n(21325),s=n(52006);function l(e,t,n){const r=a(t,n);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function a(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,i.xP)(e)||(0,i.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},55156(e,t,n){n.d(t,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&r in t?e[r]:void 0;var t}},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},52136(e,t,n){n.d(t,{p:()=>o});var r=n(5482),i=n(91429);const o=e=>{const t=e;let n=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r.Cg)([(0,i.MZ)({type:String})],n.prototype,"apiKey",null),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],n),n}},32756(e,t,n){n.d(t,{Rr:()=>l,fY:()=>u,ne:()=>a});var r=n(5482),i=n(93637),o=n(91429),s=n(91880);function l(e,t,n){if(!e)return null;const r=e.find(e=>!!e.field);if(!r)return null;const i=new s.A;return i.read(r,n),[i]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,n,r){const o=e.find(e=>!!e.field);o&&(0,i.sM)(n,[o.toJSON()],t)}}}},u=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,r.Cg)([(0,o.MZ)(a)],n.prototype,"orderBy",void 0),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],n),n}},28032(e,t,n){n.d(t,{A:()=>a});var r=n(5482),i=n(69540),o=n(25482),s=n(91429),l=n(56400);let a=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,s.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,n){n.d(t,{A:()=>u});var r=n(5482),i=n(69540),o=n(66552),s=n(25482),l=n(91429);const a=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,r.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,n){n.d(t,{A:()=>p});var r=n(5482),i=n(69540),o=n(25482),s=n(91429),l=n(8631),a=n(29005),u=n(36005),c=n(43937);let p=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const n of Object.keys(e))t[n]=(0,l.r)(e[n]);return t}writeDomains(e,t){const n={};for(const t of Object.keys(e))e[t]&&(n[t]=e[t]?.toJSON());t.domains=n}};(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"domains",void 0),(0,r.Cg)([(0,u.w)("domains")],p.prototype,"readDomains",null),(0,r.Cg)([(0,c.K)("domains")],p.prototype,"writeDomains",null),(0,r.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,r.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],p)},37352(e,t,n){n.d(t,{A:()=>a});var r,i=n(5482),o=n(7762),s=n(25482),l=n(91429);let a=r=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,i.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),o=n(66552),s=n(25482),l=n(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{r=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,i.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=r=(0,i.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,n){n.d(t,{A:()=>c});var r=n(5482),i=n(69540),o=n(66552),s=n(25482),l=n(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],c.prototype,"cardinality",void 0),(0,r.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,r.Cg)([(0,l.$K)("esri.layers.support.Relationship")],c)},17311(e,t,n){n.d(t,{A:()=>h});var r=n(5482),i=n(69622),o=n(4576),s=n(60999),l=n(7762),a=n(16494),u=n(91429),c=n(30524),p=n(43668);const f=/<br\s*\/*>/gi;let h=class extends i.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([n.e(4560),n.e(9301)]).then(n.bind(n,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const n=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(n.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:n,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(n,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const n=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of n){const n=t.split("."),r=this.fieldsIndex.get(n.at(-1)??"");r&&e.add(r.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const n of t){const t=this.fieldsIndex.get(n);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,n){const r=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],n)).get(r)??""}async getTitles(e,t,n){const r=new Map,i=n?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);n?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:l}=this,u=l&&s;t.forEach(t=>{const c=t.getObjectId()??t.attributes[e.objectIdField];let p=u?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,i).global,layer:e,text:l}):"";n?.removeHTML&&(p=a.Nd.sanitize(p).replaceAll(f," ")),r.set(c,p)})}catch{}return r}async _checkAndReQueryGraphics(e,t){const n=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(n.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const r=e.createQuery();r.where="1=1",r.outFields=[...this.requiredFields],r.objectIds=n;const i=await e.queryFeatures(r);if(i?.features.length===t.length)return i.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const n of e){if(!n.fieldName)continue;const e=this.fieldsIndex.get(n.fieldName),r=e?.name??n.fieldName;n.fieldName=r,t.set(r.toLowerCase(),n)}return t}_createFormattedAttributes(e,t,n="system"){const r=this.effectivePopupTemplate?.fieldInfos??[],i={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const n=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{i[`expression/${e.name}`]=e.func({vars:{$feature:n}})}catch{}}const o={...t.attributes,...i};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:o,graphic:t,timeZone:n,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,r.Cg)([(0,u.MZ)()],h.prototype,"_featureUtils",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,r.Cg)([(0,u.MZ)()],h.prototype,"displayField",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,r.Cg)([(0,u.MZ)()],h.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"fieldInfoMap",null),(0,r.Cg)([(0,u.MZ)()],h.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"objectIdField",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"requiredFields",null),h=(0,r.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],h)},41560(e,t,n){n.d(t,{Ch:()=>s,mW:()=>o});var r=n(34727),i=n(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,n){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],p(r));return t}(e);if(o&&((0,r.gg)(t,o[0])||(0,r.ZH)(n,o[1])))return"";const s=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const i=c(e.at(0)?.minScale),o=p(e.at(-1)?.maxScale);if((0,r.ZH)(i,t)||(0,r.gg)(o,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],i=e[t+1];if((0,r.ZH)(c(i.minScale),p(n.maxScale)))return!0}return!1}(s,t,n)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,n)&&(yield r)}}function a(e,t,n,i){return e=c(e),n=c(n),t=p(t),!(!(0,r.Sp)(n,e)&&(i??n)>e||(0,r.Hx)(t,n)||void 0!==i&&(0,r.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},32730(e,t,n){n.d(t,{BI:()=>h,D3:()=>p,XJ:()=>f,lc:()=>c,mX:()=>g,rU:()=>d,tH:()=>M,vK:()=>b,zA:()=>x});var r=n(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function p(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function h(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return g(t.expression);case"arcade":return t.expression}return null}function d(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(m);return t?.[1].trim()||null}(t.expression);case"arcade":return M(t.expression)}return null}function g(e){let t;return e?(t=(0,r.HC)(e,e=>i+'$feature["'+e+'"]'+o),t=a.test(t)?t.replace(a,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(l,' + "')):t='""',t}const m=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function M(e){if(!e)return null;let t=y.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function x(e){return null!=e&&"object"==typeof e&&b in e}},5757(e,t,n){n.d(t,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}},73681(e,t,n){n.d(t,{n:()=>a});var r=n(49186),i=n(53966),o=n(46140),s=n(95466),l=n(55674);class a{static async from(e,t,n){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const f=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))f.delete(e);f.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:f});const h=await(0,l.xR)(e.expression,null,p);if(!h)throw new r.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const d=!s||!s.greaterEqual(4,0);d&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const g=new u(n,d);return new a(d,c,h,g)}constructor(e,t,n,r){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=r}get itemNames(){return this._itemNames}evaluate(e,t,n,r){try{return this._reader.bind(e,n,r),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},98205(e,t,n){n.d(t,{KZ:()=>l,eh:()=>s,gf:()=>o,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const n=t||s(e),r=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},58501(e,t,n){n.d(t,{q:()=>i});var r=n(62815);function i(e,t,n){if(!n?.features||!n.hasZ)return;const i=(0,r.N)(n.geometryType,t,e.outSpatialReference);if(i)for(const e of n.features)i(e.geometry)}},22671(e,t,n){n.d(t,{A:()=>w});var r,i=n(5482),o=n(52106),s=n(66552),l=n(25482),a=n(4718),u=n(91429),c=n(16930),p=n(60408),f=n(65864),h=n(50498),d=n(20437),g=n(36005),m=n(43937);const y=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=r=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,n,r){if(e)return void y.write(e,t,n,r);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void y.write(e.geometry.type,t,n,r)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,r=(0,f.rS)(e);return r&&!n&&t.spatialReference&&(r.spatialReference=c.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let n=0;n<t.features.length;n++){const r=t.features[n];if(r.geometry){const t=e?.[n];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,n],translate:[r,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((i-e)/n));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[r,i],scale:[o,s]}=n;let l=null,a=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;l=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;a=n=>null==n?n:n*t+e}const u=this._getHydrationFunction(e,e=>e*o+r,e=>i-e*s,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const r=c.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const o=e[t],s=n.fromJSON(o),l=o.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=r);const a=o.aggregateGeometries,u=s.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],n=a[e],i=n?.spatialReference;null==t||i||(t.spatialReference=r)}i.push(s)}return i}_quantizePoints(e,t,n){let r,i;const o=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=n(l[1]);e===r&&s===i||(o.push([e-r,s-i]),r=e,i=s)}else r=t(l[0]),i=n(l[1]),o.push([r,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,p.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,o=r.length;e<o;e++){const o=r[e],s=this._quantizePoints(o,t,n);s&&i.push(s)}return i.length>0?((0,p.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,n);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,r,i){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,p.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,r=o.length;e<r;e++){const r=o[e];for(let e=0,i=r.length;e<i;e++){const i=r[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=n(l)}}if(r&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2]),n[3]=i(n[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,l;for(let e=0,r=o.length;e<r;e++){const r=o[e];e>0?(s+=r[0],l+=r[1]):(s=r[0],l=r[1]),r[0]=t(s),r[1]=n(l)}if(r&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2]),t[3]=i(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i.Cg)([(0,g.w)("features")],w.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[d.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:y.read}}})],w.prototype,"geometryType",void 0),(0,i.Cg)([(0,m.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:h.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,g.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,m.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=r=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,n){n.d(t,{K:()=>p,Q:()=>a});var r=n(5482),i=n(66552),o=n(53966),s=n(91429),l=n(93223);const a=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",p=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&c||n&&u||null,t&&n&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,r.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},55674(e,t,n){n.d(t,{Ad:()=>h,Gj:()=>m,QY:()=>f,lL:()=>y,xR:()=>d});var r=n(66131),i=n(49186),o=(n(44208),n(44729)),s=n(15032),l=n(65864),a=n(95466),u=n(43668),c=n(98623);const p=["geometry","scale","timeProperties"];function f(e,t){if(null!=t)for(const n of p)t.hasArcadeDependency(n)&&e.add(n);return e}function h(e,t){return g.create(e,t,null,["$feature","$view"])}function d(e,t,n){return g.create(e,t,n,["$feature","$view","$config"])}class g{static async create(e,t,n,r){const{arcade:o,Dictionary:s}=await(0,u.l)();let l;try{l=o.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=o.scriptUsesGeometryEngine(l);a&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,l,null,!1,a);const c={vars:r.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=o.compileScript(l,c);let f=null;null!=n&&(f=new s(n),f.immutable=!0);const h=new s;return h.immutable=!1,h.setField("scale",0),new g(e,o,l,p,t,h,f,s)}constructor(e,t,n,r,i,o,s,l){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=r,this._spatialReference=i,this._viewDict=o,this._configDict=s,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=n?r.lY.epochToArcadeDate(i,n):r.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=o?null!=n?r.lY.epochToArcadeDate(o,n):r.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const r=t??new a.A(y(e.attributes));this._boundTarget=e,this._boundSchema.fields=r.fields,this._boundSchema.fieldsIndex=r,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?r.lY.unknownEpochToArcadeDate(t):r.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function y(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},11831(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),o=n(25482),s=n(90629),l=n(91429),a=n(5760);let u=r=class extends o.o{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(e){this._set("size",e)}castSize(e){return(0,s.cr)(e)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,l.MZ)({type:a.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:(e,t,n)=>({enabled:!n||!n.textSymbol3D})}}})],u.prototype,"size",null),(0,i.Cg)([(0,l.wg)("size")],u.prototype,"castSize",null),(0,i.Cg)([(0,l.MZ)({type:a._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,i.Cg)([(0,l.MZ)({type:a.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=r=(0,i.Cg)([(0,l.$K)("esri.symbols.Font")],u)},68249(e,t,n){n.d(t,{A:()=>d});var r,i=n(5482),o=n(68197),s=n(4718),l=n(90629),a=n(91429),u=n(11831),c=n(20378),p=n(5760),f=n(93223),h=n(43937);let d=r=class extends c.A{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(e,t,n){if(e&&"string"!=typeof e)return e;const r={};return e&&(r.text=e),t&&(r.font=t),n&&(r.color=n),r}get haloSize(){return this._get("haloSize")??null}set haloSize(e){this._set("haloSize",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(e){this._set("lineWidth",e)}writeLineWidth(e,t,n,r){r&&"string"!=typeof r?r.origin:t[n]=e}castLineWidth(e){return(0,l.cr)(e)}writeLineHeight(e,t,n,r){r&&"string"!=typeof r?r.origin:t[n]=e}clone(){return new r({angle:this.angle,backgroundColor:(0,s.o8)(this.backgroundColor),borderLineColor:(0,s.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,s.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,s.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],d.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],d.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},cast:l.cr})],d.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],d.prototype,"font",void 0),(0,i.Cg)([(0,a.MZ)({...p.rM,json:{write:!0}})],d.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"kerning",void 0),(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],d.prototype,"haloColor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"haloSize",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rotated",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"text",void 0),(0,i.Cg)([(0,f.e)({esriTS:"text"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({...p.x0,json:{write:!0}})],d.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"xoffset",null),(0,i.Cg)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"yoffset",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],d.prototype,"angle",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,a.MZ)({type:Number})],d.prototype,"lineWidth",null),(0,i.Cg)([(0,h.K)("lineWidth")],d.prototype,"writeLineWidth",null),(0,i.Cg)([(0,a.wg)("lineWidth")],d.prototype,"castLineWidth",null),(0,i.Cg)([(0,a.MZ)(p.Tb)],d.prototype,"lineHeight",void 0),(0,i.Cg)([(0,h.K)("lineHeight")],d.prototype,"writeLineHeight",null),d=r=(0,i.Cg)([(0,a.$K)("esri.symbols.TextSymbol")],d)},5760(e,t,n){n.d(t,{NM:()=>l,Tb:()=>a,_R:()=>s,h9:()=>o,rM:()=>u,x0:()=>c,y7:()=>p});var r=n(34727),i=n(56507);const o=["none","underline","line-through"],s=["normal","italic","oblique"],l=["normal","lighter","bold","bolder"],a={type:Number,cast:e=>{const t=(0,i.GB)(e);return 0===t?1:(0,r.qE)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},c={type:["baseline","top","middle","bottom"],nonNullable:!0},p=8}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1918,1948,2722,3931,5611,6061,6312,7837,7992,8125,9169,9285],{5482(e,t,n){function r(e,t,n,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(s=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");s&&(r=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>i,mS:()=>s}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function i(e){function t(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function s(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(s);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(s,function(e){return t(e),s()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},15546(e,t,n){n.d(t,{a:()=>i,c:()=>o});var r=n(55537),s=n(83661);function o(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return a(e);case r.G.enumPolyline:return h(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new s.K(0),n=new s.K(0),r=e.getImpl(),o=r.getAttributeStreamRef(0),i=r.getPointCount(),a=new s.P;for(let e=0;e<i;e++)o.queryPoint2D(2*e,a),t.add(a.x),n.add(a.y);const u=new s.P;return u.setCoords(t.getResult(),n.getResult()),u.divThis(i)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return s.P.construct(Number.NaN,Number.NaN)}return s.P.construct(Number.NaN,Number.NaN)}function i(e,t){return a(e,t)}function a(e,t=-1){const n=new s.K(0),r=new s.K(0),o=e.getImpl();let i;const a=o.hasNonLinearSegments();let h;const f=o.getXY(0);if(-1===t){if(h=o.calculateArea2D(),0===h)return l(e);a&&(i=o.querySegmentIterator());for(let e=0,t=o.getPathCount();e<t;e++)u(f,o,e,n,r),a&&c(f,i,n,r)}else{if(h=o.calculateRingArea2D(t),0===h)return l(e,t);a&&(i=o.querySegmentIterator(),i.resetToPath(t)),u(f,o,t,n,r),a&&c(f,i,n,r)}const m=new s.P,p=new s.P;return m.setCoords(n.getResult(),r.getResult()),p.assign(m.mul(1/h).add(f)),p}function u(e,t,n,r,o){const i=t.getPathStart(n),a=t.getPathEnd(n);if(a-i<3)return;const u=t.getAttributeStreamRef(0),c=u.readPoint2D(2*i),l=u.readPoint2D(2*(i+1));l.subThis(c);const h=new s.K(0),f=t.hasNonLinearSegments(),m=1/3,p=new s.P;for(let e=i+2;e<a;e++){u.queryPoint2D(2*e,p),p.subThis(c);const t=.5*p.crossProduct(l);f&&h.add(t);const n=m*t;r.add((l.x+p.x)*n),o.add((l.y+p.y)*n),l.setCoordsPoint2D(p)}const g=f?h.getResult():t.calculateRingArea2D(n),d=c.sub(e).mul(g);r.add(d.x),o.add(d.y)}function c(e,t,n,s){let o;for(t.nextPath()||(0,r.d)("centroid");null!==(o=t.nextCurve());){const t=o.calculateWeightedAreaCentroid2D(e);n.add(t.x),s.add(t.y)}}function l(e,t=-1){return h(e.getImpl(),t)}function h(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new s.K(0),r=new s.K(0);for(let t=0;t<e.getPathCount();++t){const s=e.getXY(e.getPathStart(t));n.add(s.x),r.add(s.y)}return s.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new s.K(0),o=new s.K(0),i=e.querySegmentIterator();for(-1!==t&&i.resetToPath(t);i.nextPath();){const n=i.getPathIndex(),s=e.getXY(e.getPathStart(n));for(;i.hasNextSegment();){const e=i.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(s.mul(t));r.add(n.x),o.add(n.y)}const a=s.mul(e.calculatePathLength2D(n));if(r.add(a.x),o.add(a.y),-1!==t)break}const a=new s.P;return a.setCoords(r.getResult(),o.getResult()),a.mul(1/n)}},26640(e,t,n){n.d(t,{D:()=>M,m:()=>l,s:()=>y,w:()=>d});var r=n(5482),s=n(55537),o=n(88885),i=n(15756),a=n(83661),u=n(79187),c=n(95213);function l(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function h(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function f(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function m(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function g(e,t){const n=l();m(n,e),m(e,t),m(t,n)}function d(e,t,n,r,o,a){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,i.l)(e,t.getEndXY(),0))return f(o,t.getEndXY(),-1,Number.NaN),f(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,i.l)(t,e.getEndXY(),0))return f(o,e.getEndXY(),-1,Number.NaN),f(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function y(e){const t=e.getPathCount(),n=(0,a.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let o=r,i=e.getPathStart(s);o<t;++o,++i)n[o]=i;r=t}return(0,o.s)(e.getPointCount(),n),n}function v(e,t){return!!Number.isNaN(t)||e<=t}function x(e){const t=new o.P;return t.addEnvelope(e,!1),t}class M{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==c.P.type||t.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=h(new a.P,(0,a.j)(),Number.NaN),o=h(new a.P,(0,a.j)(),Number.NaN),i=this._ExecuteBruteForce(e,t,s,o);return v(i,this.m_maxDistance)?(null!==n&&m(n,s),null!==r&&m(r,o),i):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=h(new a.P,(0,a.j)(),Number.NaN),s=h(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),o=t.getXY();return f(n,s,0,0),f(r,o,0,0),Math.sqrt(a.P.sqrDistance(s,o))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let o=this.m_maxSqrDistance,i=o,u=!1;const c=t.getPointCount(),l=new a.P;for(let e=0;e<c;++e)if(t.queryXY(e,l),i=a.P.sqrDistance(s,l),this.m_bIsNearCalc){if(i<=o)return 0}else if(!(i>o)&&(!u&&i===o||i<o)&&(o=i,f(n,s,0,0),f(r,l,e,0),u=!0,0===o))return 0;return u?Math.sqrt(o):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const o=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=e.getXY();if(!o&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,i.l)(t,c,0))return f(n,c,0,0),f(r,c,-1,Number.NaN),0;t.getImpl().getAccelerators();let l=this.m_maxSqrDistance,h=l,m=-1;const p=new u.Envelope2D,g=t.querySegmentIterator();let d=!1;for(;g.nextPath();)for(;g.hasNextSegment();){const e=g.nextSegment();e.queryEnvelope(p);const t=p.sqrDistance(c);if(t>l)continue;if(!this.m_bIsNearCalc&&d&&t===l)continue;m=e.getClosestCoordinate(c,!1);const s=e.getCoord2D(m);if(h=a.P.sqrDistance(c,s),this.m_bIsNearCalc){if(h<=l)return 0}else if(!(h>l)&&(!d||h<l)&&(l=h,f(n,c,0,0),f(r,s,g.getStartPointIndex(),m),d=!0,0===l))return 0}return d?Math.sqrt(l):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();f(n,s,0,0),f(r,s,-1,Number.NaN);const o=t.asEnvelope2D();return o.contains(s)?0:Math.sqrt(o.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,x(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,o,i){const u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===o&&1===i){const r=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)())),o=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)()));if((r>=4||o>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,o)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const l=[e],h=[t],m=this.swapGeometriesIfBGtA(l,h);m&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i=(0,a.c)(o,o=i),g(n,s)),(0,r.mS)(u,(0,a.h)(()=>{g(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!m),!1);const p=l[0].getImpl(),d=h[0].getImpl(),y=p.getPointCount(),v=d.getPointCount(),x=v>1;let M=!1;const P=new a.P,_=new a.P;for(let e=0;e<y;e+=o){if(p.queryXY(e,P),x){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=c)return 0}else if(e>=c)continue}for(let t=0;t<v;t+=i){d.queryXY(t,_);const r=a.P.sqrDistance(P,_);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||M&&r===c)&&(!M||r<c)&&(f(n,P,e,0),f(s,_,t,0),M=!0,c=r,0===c))return M?Math.sqrt(c):Number.POSITIVE_INFINITY}}return M?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(e){u.error=e,u.hasError=!0}finally{(0,r.hk)(u)}}distanceMultipointMultipath(e,t,n,r){let o=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const c=t.querySegmentIterator();c.stripAttributes();const l=new u.Envelope2D,h=new a.P;let m=this.m_maxSqrDistance;const p=e.getImpl(),g=p.getPointCount(),d=g>1;let y=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();if(e.queryLooseEnvelope(l),d){const e=l.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>m)continue}else if(e>m||y&&e===m)continue}for(let s=0;s<g;s++){if(p.queryXY(s,h),o&&0!==(0,i.l)(t,h,0))return f(n,h,-1,Number.NaN),f(r,h,s,0),0;{const e=l.sqrDistance(h);if(this.m_bIsNearCalc){if(e>m)continue}else if(e>m)continue}const a=e.getClosestCoordinate(h,!1),u=e.getCoord2D(a);h.subThis(u);const g=h.sqrLength();if(this.m_bIsNearCalc){if(g<=m)return 0}else if(!(g>m)&&(!y||g<m)&&(m=g,f(n,p.getXY(s),s,0),f(r,u,c.getStartPointIndex(),a),y=!0,0===m))return 0}o=!1}return y?Math.sqrt(m):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,x(e),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(x(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),o=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(o,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,x(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const i={stack:[],error:void 0,hasError:!1};try{const c=[e],h=[t],f=this.swapGeometriesIfAGtB(c,h);f&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),g(n,s)),(0,r.mS)(i,(0,a.h)(()=>{g(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);const v=c[0],x=h[0],M=v.querySegmentIterator();M.stripAttributes();const P=x.querySegmentIterator();if(P.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(v,x,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=l(),t=l();if(d(v,x,M,P,e,t))return m(n,e),m(s,t),0}const _=y(v),w=[],N=new o.S,S=new u.Envelope2D,b=new u.Envelope2D,C=new u.Envelope2D;let I=this.m_maxSqrDistance,A=!0,R=!1;for(let e=0,t=_.length;e<t;++e){v.querySegment(_[e],N,!0);const t=N.get();if(t.queryEnvelope(S),!(S.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>I)){if(this.m_bIsNearCalc&&S.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=I)return 0;for(;P.nextPath();){if(this.progress_(),A)x.queryPathEnvelope(P.getPathIndex(),C),w[P.getPathIndex()]=C.clone();else if(S.sqrDistanceEnvelope(w[P.getPathIndex()],null,null)>I)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(b),S.sqrDistanceEnvelope(b,null,null)<=I){const o=!S.isIntersecting(b),i=[0],a=[0];let u=t.distance(r,o,i,a);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<I||u===I&&_[e]<n.index){if(R=!0,p(n,t,_[e],i[0]),p(s,r,P.getStartPointIndex(),a[0]),0===u)return 0;I=u}}}}P.resetToFirstPath(),A=!1}}return R?Math.sqrt(I):Number.POSITIVE_INFINITY}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,a.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},61691(e,t,n){n.d(t,{G:()=>r});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>s});var r=n(61691);class s extends r.G{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},65708(e,t,n){n.d(t,{a:()=>i,e:()=>o});var r=n(86211),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateArea2D();if(o&&n){const t=(0,s.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const i=(0,r.B5)(t);i!==n&&(i?o=(0,r.oU)(o,i,n):(o=Math.sqrt(o),o*=(0,r.GA)(t),o**=2,o=(0,r.oU)(o,"square-meters",n)))}return o}const i=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}))},48265(e,t,n){n.d(t,{c:()=>u,e:()=>i});var r=n(15546),s=n(78125);const o=new class{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,r.c)(e)}};function i(e){const t=o.execute((0,s.fromGeometry)(e),null);return(0,s.toPoint)(t,(0,s.getSpatialReference)(e))}const a=o.supportsCurves(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},16346(e,t,n){n.d(t,{d:()=>l,e:()=>u});var r=n(55537),s=n(26640),o=n(86211),i=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,o,i,a){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const u=e,c=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const l=new s.D(a,n).calculate(u,c,o,i);return Number.isFinite(l)?l:Number.NaN}};function u(e,t,n={}){const{unit:r}=n;let s=a.execute((0,i.fromGeometry)(e),(0,i.fromGeometry)(t),null);if(s&&r){const t=(0,i.getSpatialReference)(e);s=(0,o.PQ)(s,t,r)}return s}const c=a.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,execute:u,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},49590(e,t,n){n.d(t,{e:()=>f,g:()=>m,l:()=>h});var r=n(86211),s=n(86742),o=n(5808);let i,a,u,c;function l(){return!!i&&(0,s.s1)()}async function h(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,a=e.fromSpatialReference,u=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,l=u(e);let h=(0,s.g7)(i(e),a(l),o.O[n]);return h&&c&&(h=(0,r.oU)(h,"square-meters",c)),h}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:h,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},39663(e,t,n){n.d(t,{e:()=>f,g:()=>m,l:()=>h});var r=n(86211),s=n(35223),o=n(5808);let i,a,u,c;function l(){return!!i&&(0,s.s1)()}async function h(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,a=e.fromSpatialReference,u=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,l=u(e);let h=(0,s.g7)(i(e),a(l),o.O[n]);return h&&c&&(h=(0,r.oU)(h,"meters",c)),h}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:h,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},7817(e,t,n){n.d(t,{e:()=>o,l:()=>a,s:()=>i});var r=n(86211),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateLength2D();if(o&&n){const t=(0,s.getSpatialReference)(e);o=(0,r.PQ)(o,t,n)}return o}const i=!0,a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},10222(e,t,n){n.d(t,{e:()=>o,s:()=>a});var r=n(81150),s=n(78125);function o(e){const t=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),!1),t)}const i=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(e){const t=e.map(s.fromGeometry),n=(0,s.getSpatialReference)(e);return(0,r.zo)(t,(0,s.fromSpatialReference)(n),!1).map(e=>(0,s.toGeometry)(e,n))},isSimple:function(e){return(0,r.Pg)((0,s.fromGeometry)(e),(0,s.fromSpatialReference)((0,s.getSpatialReference)(e)),!1)},supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},69540(e,t,n){n.d(t,{OU:()=>l,Pw:()=>h});var r=n(5482),s=n(69622),o=(n(44208),n(4718)),i=(n(53966),n(97768)),a=n(88620),u=n(64108);const c=Symbol("ClonableMixin"),l=e=>{var t;const n=e;let s=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,a.oY)(this);(0,i.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,r=t.store,s={},u=new Map;for(const t in n){const i=n[t],a=r?.originOf(t),c=i.clonable;if(i.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const l=this[t];let h=null;if("function"==typeof c)h=c(l,e);else if("reference"===c)h=l;else if(h=(0,o.TU)(l,e),null!=l&&null==h)continue;0===a?u.set(t,h):s[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(s);if(u.size){const e=(0,a.oY)(c)?.store;if(e)for(const[t,n]of u)e.set(t,n,0)}return c}};return s=(0,r.Cg)([(0,u.$)("esri.core.Clonable")],s),s},h=l(s.A)},95488(e,t,n){n.d(t,{I:()=>s});var r=n(11406);class s extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>s,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:r,fromValues:function(e,t,n,r,s,o,i,a,u,c,l,h,f,m,p,g){return[e,t,n,r,s,o,i,a,u,c,l,h,f,m,p,g]}},Symbol.toStringTag,{value:"Module"}))},51850(e,t,n){function r(){return[0,0,0]}function s(e){return[e[0],e[1],e[2]]}function o(e,t,n){return[e,t,n]}function i(e,t,n){return[e,t,n]}function a(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function u(){return[0,0,0]}function c(){return o(1,1,1)}function l(){return o(1,0,0)}function h(){return o(0,1,0)}function f(){return o(0,0,1)}n.d(t,{CN:()=>i,Cb:()=>y,Cw:()=>g,JP:()=>d,S:()=>c,Ul:()=>u,Un:()=>p,ci:()=>a,fA:()=>o,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],p=c(),g=l(),d=h(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:g,UNIT_Y:d,UNIT_Z:y,ZEROS:m,clone:s,create:r,freeze:i,fromArray:a,fromValues:o,ones:c,unitX:l,unitY:h,unitZ:f,zeros:u},Symbol.toStringTag,{value:"Module"}))},34304(e,t,n){n.d(t,{DF:()=>u,FD:()=>s,Ov:()=>o,ct:()=>c});let r=1e-6;function s(){return r}const o=Math.random,i=Math.PI/180,a=180/Math.PI;function u(e){return e*i}function c(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:s,setEpsilon:function(e){r=e},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>S,Bw:()=>o,C:()=>i,Cc:()=>b,DI:()=>_,Il:()=>V,Io:()=>v,Ln:()=>y,Om:()=>N,Qr:()=>h,Re:()=>c,S8:()=>w,T9:()=>g,WQ:()=>u,Z0:()=>C,_S:()=>m,aI:()=>T,ei:()=>I,fw:()=>R,g7:()=>D,gL:()=>A,hG:()=>x,hZ:()=>a,hs:()=>d,jb:()=>Z,jk:()=>p,lo:()=>Y,lw:()=>l,m3:()=>M,oW:()=>q,t2:()=>G,tn:()=>f,uE:()=>F,xg:()=>B,ze:()=>P});var r=n(51850),s=n(34304);function o(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function u(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function f(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function d(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(n*n+r*r+s*s)}function x(e,t){const n=t[0]-e[0],r=t[1]-e[1],s=t[2]-e[2];return n*n+r*r+s*s}function M(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function P(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const n=t[0],r=t[1],s=t[2];let o=n*n+r*r+s*s;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function N(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function S(e,t,n){const r=t[0],s=t[1],o=t[2],i=n[0],a=n[1],u=n[2];return e[0]=s*u-o*a,e[1]=o*i-r*u,e[2]=r*a-s*i,e}function b(e,t,n,r){const s=t[0],o=t[1],i=t[2];return e[0]=s+r*(n[0]-s),e[1]=o+r*(n[1]-o),e[2]=i+r*(n[2]-i),e}function C(e,t,n){const r=t[0],s=t[1],o=t[2];return e[0]=n[0]*r+n[4]*s+n[8]*o+n[12],e[1]=n[1]*r+n[5]*s+n[9]*o+n[13],e[2]=n[2]*r+n[6]*s+n[10]*o+n[14],e}function I(e,t,n){const r=t[0],s=t[1],o=t[2];return e[0]=r*n[0]+s*n[3]+o*n[6],e[1]=r*n[1]+s*n[4]+o*n[7],e[2]=r*n[2]+s*n[5]+o*n[8],e}function A(e,t,n){return R(e,t,n[0],n[1],n[2],n[3])}function R(e,t,n,r,s,o){const i=t[0],a=t[1],u=t[2],c=r*u-s*a,l=s*i-n*u,h=n*a-r*i,f=r*h-s*l,m=s*c-n*h,p=n*l-r*c,g=2*o;return e[0]=i+c*g+2*f,e[1]=a+l*g+2*m,e[2]=u+h*g+2*p,e}function D(e,t){w(E,e),w(O,t);const n=N(E,O);return n>1?0:n<-1?Math.PI:Math.acos(n)}const E=(0,r.vt)(),O=(0,r.vt)();function G(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function T(e,t){if(e===t)return!0;const n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],u=t[2],c=(0,s.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(o-u)<=c*Math.max(1,Math.abs(o),Math.abs(u))}function q(e,t,n){const r=n[0]-t[0],s=n[1]-t[1],o=n[2]-t[2];let i=r*r+s*s+o*o;return i>0?(i=1/Math.sqrt(i),e[0]=r*i,e[1]=s*i,e[2]=o*i,e):(e[0]=0,e[1]=0,e[2]=0,e)}const Z=c,j=l,z=h,B=v,Y=x,V=o,F=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:D,bezier:function(e,t,n,r,s,o){const i=1-o,a=i*i,u=o*o,c=a*i,l=3*o*a,h=3*u*i,f=u*o;return e[0]=t[0]*c+n[0]*l+r[0]*h+s[0]*f,e[1]=t[1]*c+n[1]*l+r[1]*h+s[1]*f,e[2]=t[2]*c+n[2]*l+r[2]*h+s[2]*f,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:i,cross:S,crossAndNormalize:function(e,t,n){const r=t[0],s=t[1],o=t[2],i=n[0],a=n[1],u=n[2],c=s*u-o*a,l=o*i-r*u,h=r*a-s*i,f=Math.sqrt(c*c+l*l+h*h);return e[0]=c/f,e[1]=l/f,e[2]=h/f,e},direction:q,dist:B,distance:v,div:z,divide:h,dot:N,equals:T,exactEquals:G,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,s,o){const i=o*o,a=i*(2*o-3)+1,u=i*(o-2)+o,c=i*(o-1),l=i*(3-2*o);return e[0]=t[0]*a+n[0]*u+r[0]*c+s[0]*l,e[1]=t[1]*a+n[1]*u+r[1]*c+s[1]*l,e[2]=t[2]*a+n[2]*u+r[2]*c+s[2]*l,e},inverse:_,len:V,length:o,lerp:b,max:g,min:p,mul:j,multiply:l,negate:P,normalize:w,random:function(e,t=1){const n=s.Ov,r=2*n()*Math.PI,o=2*n()-1,i=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*i,e[1]=Math.sin(r)*i,e[2]=o*t,e},rotateX:function(e,t,n,r){const s=[],o=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],o[0]=s[0],o[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),o[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateY:function(e,t,n,r){const s=[],o=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],o[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),o[1]=s[1],o[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateZ:function(e,t,n,r){const s=[],o=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],o[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),o[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),o[2]=s[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:d,scaleAndAdd:y,set:a,sign:m,sqrDist:Y,sqrLen:F,squaredDistance:x,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:Z,subtract:c,transformMat3:I,transformMat4:C,transformQuat:A,transformQuatValues:R},Symbol.toStringTag,{value:"Module"}))},69397(e,t,n){n.d(t,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>o,qK:()=>l});var r=n(34275);const s=16;function o(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let n=h;for(let r=0;r<t;r++)n+=a(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return h+e.length*t}const l=32,h=16,f=145,m=64},17799(e,t,n){n.d(t,{T9:()=>a,d_:()=>s,gT:()=>o});var r=n(86211);function s(e,t){return{type:(0,r.t$)(t),value:e,unit:t}}function o(e,t){return{type:(0,r.t$)(t),value:e,unit:t}}function i(e,t,n="arithmetic"){return{type:(0,r.t$)(t),value:e,unit:t,rotationType:n}}function a(e,t){return null==e?t:null==t||e.value>(0,r.oU)(t.value,t.unit,e.unit)?e:t}s(0,"meters"),o(0,"square-meters"),i(0,"radians"),i(0,"degrees"),i(0,"degrees","geographic")},87992(e,t,n){n.d(t,{JR:()=>S,ME:()=>_,MY:()=>b,NO:()=>P,Nh:()=>N,V2:()=>D,_s:()=>E,e6:()=>G,gh:()=>w,tr:()=>q,uX:()=>d});var r=n(5482),s=n(69397),o=n(16930),i=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),l=n(50954),h=n(79567),f=n(52006),m=n(49663),p=n(46068),g=n(92722);class d{constructor({type:e,spatialReference:t,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:l,segmentParams:h,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=l,this.segmentParams=h,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:n}=this;return e&&e-t-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?s.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:n,hasZ:r,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=D(e,t,n,r,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:l}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(l.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,n+1)),a.partOffsets.set(e.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(n.subarray(0,t),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,u.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const n=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,n)=>Math.abs(e-n)>t||isNaN(e)!==isNaN(n);for(let t=0;t<this.vertexCount;++t)if(n(this.vertexXY[2*t],e.vertexXY[2*t])||n(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(n(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(e){this.geometry=e,this.value=new v(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(e){this.geometry=e,this.index=-1,this._readVertex=A(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new M(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=A(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[n++],r=t[n++],s=t[n++],o=t[n++];return{b:[this.end,[e,r],[s,o]]}}const r=t[n++],s=t[n++],o=t[n++],i=t[n++],a=t[n++],u=t[n++];n++,n++;const c=t[n++],l=t[n++];if(!Boolean(4&r)&&1===o)return{c:[this.end,[c,l]]};const h=2&r?0:1,f=1&r?0:1;return{a:[this.end,[a,u],h,f,i,s,o]}}}function P(e,t){const n={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,r.mS)(n,new C(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:n,vertexXY:s,vertexZ:o,vertexM:a}=e,u=I(e);if(e.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new C(e,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:n}of t.segments)(0,h.e)(s,e,n),e=(0,f.yP)(n)}const[o,a,c,l]=s;t={xmin:o,ymin:a,xmax:c,ymax:l,spatialReference:u}}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}else{let e,r,o,i;e=r=1/0,o=i=-1/0;for(let t=0;t<n;++t){const n=s[2*t],a=s[2*t+1];e=Math.min(e,n),o=Math.max(o,n),r=Math.min(r,a),i=Math.max(i,a)}t={xmin:e,ymin:r,xmax:o,ymax:i,spatialReference:u}}if(o){let e=1/0,n=-1/0;for(const t of o)e=Math.min(e,t),n=Math.max(n,t);t.zmin=e,t.zmax=n}if(a){let e=1/0,n=-1/0;for(const t of a)e=Math.min(e,t),n=Math.max(n,t);t.mmin=e,t.mmax=n}return t}(e)),t}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}function _(e){let t,n,r;if((0,a.fT)(e)){r="point";const{x:s,y:o,z:i,m:a}=e,u=[s,o];null!=i&&u.push(i),null!=a&&u.push(a),n=[[u]],t=1}else(0,a.U9)(e)?(r="multipoint",n=[e.points],t=e.points.length):(0,a.Rg)(e)?(r="polyline",n=e.curvePaths??e.paths,t=n.reduce((e,t)=>e+t.length,0)):(r="polygon",n=e.curveRings??e.rings,t=n.reduce((e,t)=>(0===t.length||(e+=t.length,R(t[0],(0,f.yP)(t.at(-1)))&&--e),e),0));const s=D(r,t,r.includes("point")?0:n.length,(0,a.Pv)(e),(0,a.W0)(e),(0,f.Ed)(e)),{hasZ:o,hasM:i,vertexXY:u,vertexZ:c,vertexM:l}=s;function h(e){u[2*p]=e[0],u[2*p+1]=e[1],o&&(c[p]=e[2]),i&&(l[p]=e[m]),++p}s.spatialReference=e.spatialReference??void 0;const m=s.hasZ?3:2;let p=0;if(!s.isMultipart()){if(!o&&!i){for(const[e,t]of n[0])u[2*p]=e,u[2*p+1]=t,++p;return s}for(const e of n[0])h(e);return s}const g="polygon"===r,{partOffsets:d}=s;let y=0;if(!s.hasCurves()){for(const e of n){if(d[y++]=p,0===e.length)continue;let t=e.length;if(g&&R(e[0],e.at(-1))&&--t,o||i)for(let n=0;n<t;++n)h(e[n]);else for(let n=0;n<t;++n){const[t,r]=e[n];u[2*p]=t,u[2*p+1]=r,++p}}return d[y]=p,s}function v(e){const t=x+e;if(t<=(s.segmentParams?.length??0))return;let n=t*Z;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let x=0;for(const e of n){if(s.partOffsets[y++]=p,0===e.length)continue;const t=e[0];let n=t;for(let t=1;t<e.length;++t){const r=e[t];h(n);const o=p-1;(0,f.wY)(r)?(v(10),++s.segmentCountArc,x=E(n,r,s,o,x),n=r.a[0]):(0,f.DA)(r)?(v(10),++s.segmentCountArc,x=O(n,r,s,o,x),n=r.a[0]):(0,f.aO)(r)?(v(10),++s.segmentCountArc,x=G(n,r,s,o,x),n=r.c[0]):(0,f.n1)(r)?(v(4),++s.segmentCountBezier,x=q(0,r,s,o,x),n=r.b[0]):n=r}g&&R(t,n)||h(n)}return s.partOffsets[y]=p,s}function w(e){const t=A(e),{vertexCount:n,partCount:r,hasZ:s,hasM:o}=e,i=I(e);if("point"===e.type){const[t,n]=e.vertexXY,r=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:n,z:r,m:s,spatialReference:i}}let a=0;if("multipoint"===e.type){const e=[];for(;a<n;)e.push(t(a++));return{points:e,spatialReference:i,hasZ:s,hasM:o}}const u="polygon"===e.type;if(!e.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=e.partOffsets[s+1],o=new Array;for(;a<r;)o.push(t(a++));u&&o.length>0&&o.push(o[0]),n.push(o)}return u?{rings:n,hasZ:s,hasM:o,spatialReference:i}:{paths:n,hasZ:s,hasM:o,spatialReference:i}}const c=new Array;for(const{segments:t,startVertex:n}of e.parts){const e=[n];for(const{curve:n}of t)e.push(n);c.push(e)}return u?{rings:[],curveRings:c,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:c,hasZ:s,hasM:o,spatialReference:i}}function N(e,{lengths:t,coords:n,hasZ:r,hasM:s},o){const i=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?i:0);r??=!1,s??=!1;const c=D(e,u,i,r,s,!1,0,0);if(c.spatialReference=o??void 0,!c.isMultipart()){for(let e=0,t=0;e<u;++e)c.vertexXY[2*e]=n[t++],c.vertexXY[2*e+1]=n[t++],r&&(c.vertexZ[e]=n[t++]),s&&(c.vertexM[e]=n[t++]);return c}const l=2+Number(r)+Number(s);let h=0,f=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[f],o=t+e-Number(a);c.partOffsets[++f]=o;for(let e=t;e<o;++e)c.vertexXY[2*e]=n[h++],c.vertexXY[2*e+1]=n[h++],r&&(c.vertexZ[e]=n[h++]),s&&(c.vertexM[e]=n[h++]);a&&(h+=l)}return c}function S({type:e,vertexCount:t,vertexXY:n,vertexZ:r,vertexM:s,partCount:o,partOffsets:i,hasZ:a,hasM:u}){const c=new g.A([],[],a,u);o=Math.max(o,1);const l="polygon"===e;let h=0;for(let e=0;e<o;++e){const o=i?.[e+1]??t,f=c.coords.length;for(let e=h;e<o;++e)c.coords.push(n[2*e],n[2*e+1]),a&&c.coords.push(r[e]),u&&c.coords.push(s[e]);if(l){const e=h;c.coords.push(n[2*e],n[2*e+1]),a&&c.coords.push(r[e]),u&&c.coords.push(s[e])}c.lengths.push((c.coords.length-f)/c.stride),h=o}return"point"===e&&(c.lengths.length=0),c}function b(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,n=e.isCustomWkid()?0:e.getOldID();if(n<=0)return{wkt:t};let r=e.getLatestID();(r<=0||r===n)&&(r=void 0);const s=e.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:t};const o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:n,wkt:t,latestWkid:r,vcsWkid:o,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new d({...e.toFlatGeometry(),spatialReference:t})}class C{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const n of t)e[n]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function I({spatialReference:e}){return e instanceof o.A?e.toJSON():e}function A({vertexXY:e,vertexZ:t,vertexM:n}){return t?n?r=>[e[2*r],e[2*r+1],t[r],n[r]]:n=>[e[2*n],e[2*n+1],t[n]]:n?t=>[e[2*t],e[2*t+1],n[t]]:t=>[e[2*t],e[2*t+1]]}function R(e,t){return e.every((e,n)=>e===t[n])}function D(e,t,n,r,s,o,i,a){i??=0,a??=0;const u=new d({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;r&&(c+=Float64Array.BYTES_PER_ELEMENT*t),s&&(c+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),o&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(c);let h=0;return u.vertexXY=new Float64Array(l,h,2*t),h+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(l,h,t),h+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(l,h,t),h+=u.vertexM.byteLength),o&&(u.segmentParams=new Float64Array(l,h,u.segmentParamCount),h+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,h,t),u.segmentIndices.fill(j),h+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,h,n+1),h+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,h,n+1),h+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),o&&(u.segmentFlags=new Int8Array(l,h,t),u.segmentFlags.fill(1),h+=u.segmentFlags.byteLength),u}function E(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const[a,[u,c],l,h,f,m,g]=t.a;let d=4;h||(d|=1),l||(d|=2);const y=(0,p.SW)(e,t),[v,x]=(0,p.Uk)(y,.5);return s[i++]=d,s[i++]=m,s[i++]=g,s[i++]=f,s[i++]=u,s[i++]=c,s[i++]=y.u2-y.u1,s[i++]=y.u1,s[i++]=v,s[i++]=x,i}function O(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const a=(0,m.io)(e,t);return T(a,4,...(0,c.mq)(a,.5),s,i)}function G(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){return n[o]=4,r[o]=i,T((0,l.pM)(e,t),0,...t.c[1],s,i)}function T(e,t,n,r,s,o){const{cx:i,cy:a,thetaStart:u,thetaEnd:c,radius:l}=e;return u>c||(t|=1),Math.abs(c-u)<=Math.PI||(t|=2),s[o++]=t,s[o++]=l,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=c-u,s[o++]=u,s[o++]=n,s[o++]=r,o}function q(e,{b:[t,[n,r],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:u},c,l){return i[c]=2,a[c]=l,u[l++]=n,u[l++]=r,u[l++]=s,u[l++]=o,l}const Z=1.61803,j=-1},91075(e,t,n){n.d(t,{A:()=>u});var r=n(5482),s=n(25482),o=n(91429),i=n(16930),a=n(36005);let u=class extends s.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=i.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof i.A)return e;if(null!=e){const n=new i.A;return n.read(e,t),n}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,r.Cg)([(0,o.MZ)()],u.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],u.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,r.Cg)([(0,o.MZ)({type:i.A,json:{write:!0},value:i.A.WGS84})],u.prototype,"spatialReference",void 0),(0,r.Cg)([(0,a.w)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,r.Cg)([(0,o.$K)("esri.geometry.Geometry")],u)},86738(e,t,n){n.d(t,{A:()=>x});var r=n(5482),s=n(69622),o=n(53966),i=n(91429),a=n(56507),u=n(91075),c=n(16930),l=n(21325),h=n(28735);function f({x:e,y:t,spatialReference:n},r=[0,0]){if(n){if((0,l.K8)(n))return(0,h.tD)(e,t,r);if((0,l.EA)(n))return r[0]=e,r[1]=t,r}return null}const m=[0,0];var p,g=n(43937),d=n(36005);const y=[0,0];function v(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let x=p=class extends u.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const n=e._get("spatialReference");t._set("spatialReference",s.A.isFrozen(n)?n:n.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,n,r,s){let i;if(Array.isArray(e))i=e,s=t,e=i[0],t=i[1],n=i[2],r=i[3];else if(e&&"object"==typeof e){if(i=e,e=null!=i.x?i.x:i.longitude,t=null!=i.y?i.y:i.latitude,n=i.z,r=i.m,(s=i.spatialReference)&&"esri.geometry.SpatialReference"!==s.declaredClass&&(s=new c.A(s)),null!=i.longitude||null!=i.latitude)if(null==i.longitude)o.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==i.latitude)o.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!i.declaredClass&&s?.isWebMercator){const n=(0,h.je)(i.longitude,i.latitude,y);e=n[0],t=n[1]}}else v(n)?(s=n,n=null):v(r)&&(s=r,r=null);const a={x:e,y:t};return null==a.x&&null!=a.y?o.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&o.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=s&&(a.spatialReference=s),null!=n&&(a.z=n),null!=r&&(a.m=r),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return f(this,m)?.[1]??null}set latitude(e){const{spatialReference:t,x:n}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,h.je)(n,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return f(this,m)?.[0]??null}set longitude(e){const{y:t,spatialReference:n}=this;null!=e&&n&&(n.isWebMercator?this._set("x",(0,h.je)(e,t,y)[0]):n.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,n){t[n]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new p;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return p.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:n,z:r,m:s,spatialReference:o}=this,{z:i,m:a}=e;let{x:u,y:c,spatialReference:l}=e;if(!o.equals(l))if(o.isWebMercator&&l.isWGS84)[u,c]=(0,h.je)(u,c),l=o;else{if(!o.isWGS84||!l.isWebMercator)return!1;[u,c]=(0,h.tD)(u,c),l=o}return t===u&&n===c&&r===i&&s===a&&o.wkid===l.wkid}offset(e,t,n){return this.x+=e,this.y+=t,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const e=(0,l.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[n,r]=e.valid,s=2*r;let o;return t>r?(o=Math.ceil(Math.abs(t-r)/s),t-=o*s):t<n&&(o=Math.ceil(Math.abs(t-n)/s),t+=o*s),this._set("x",t),this}distance(e){return function(e,t){const n=e.x-t.x,r=e.y-t.y,s=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(n*n+r*r+s*s)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,i.MZ)({readOnly:!0})],x.prototype,"cache",null),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],x.prototype,"hasM",null),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],x.prototype,"hasZ",null),(0,r.Cg)([(0,i.MZ)({type:Number})],x.prototype,"latitude",null),(0,r.Cg)([(0,i.MZ)({type:Number})],x.prototype,"longitude",null),(0,r.Cg)([(0,i.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,i.wg)(e=>isNaN(e)?e:(0,a.GB)(e))],x.prototype,"x",void 0),(0,r.Cg)([(0,g.K)("x")],x.prototype,"writeX",null),(0,r.Cg)([(0,d.w)("x")],x.prototype,"readX",null),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],x.prototype,"z",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],x.prototype,"m",void 0),x=p=(0,r.Cg)([(0,i.$K)("esri.geometry.Point")],x),x.prototype.toJSON.isDefaultToJSON=!0},21276(e,t,n){n.d(t,{H:()=>o,f:()=>s});var r=n(49186);function s(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new r.A("internal:mesh","Mesh geometries are not supported for this operation")}function o(e){e.forEach(s)}},11918(e,t,n){n.r(t),n.d(t,{execute:()=>d,isLoaded:()=>p,load:()=>g,supportsCurves:()=>m});var r=n(86211),s=n(83290);let o;function i(){return!!o&&(0,s.i)()}async function a(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6859),n.e(2764)]).then(n.bind(n,12764)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,s.l)()]);o=new e.OperatorGeodeticDistance,t(s.p)}}function u(e,t,n,r){return o.execute(e,t,n,r,null)}var c=n(5808);let l,h,f,m;function p(){return!!l&&i()}async function g(){if(!p()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(3931)]).then(n.bind(n,78125)),a()]);l=e.fromGeometry,h=e.fromSpatialReference,f=e.getSpatialReference,m=o.supportsCurves()}}function d(e,t,n={}){const{curveType:s="geodesic",unit:o}=n,i=f(e);let a=u(l(e),l(t),h(i),c.O[s]);return a&&o&&(a=(0,r.oU)(a,"meters",o)),a}},86742(e,t,n){n.d(t,{Hh:()=>i,fz:()=>u,g7:()=>a,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6859),n.e(6558)]).then(n.bind(n,6558)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticArea,t(r.p)}}function a(e,t,n){return s.execute(e,t,n,null)}function u(){return s.supportsCurves()}},35223(e,t,n){n.d(t,{Hh:()=>i,fz:()=>u,g7:()=>a,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticLength,t(r.p)}}function a(e,t,n){return s.execute(e,t,n,null)}function u(){return s.supportsCurves()}},81150(e,t,n){n.d(t,{Pg:()=>u,fz:()=>c,g7:()=>i,zo:()=>a});var r=n(76061),s=(n(55537),n(88885),n(15756));n(95213);const o=new s.f;function i(e,t,n){return o.execute(e,t,n,null)}function a(e,t,n){const s=o.executeMany(new r.S(e),t,n,null);return Array.from(s)}function u(e,t,n){return o.isSimpleAsFeature(e,t,n,null,null)}function c(){return o.supportsCurves()}},159(e,t,n){n.d(t,{A:()=>c});var r,s=n(5482),o=n(69540),i=n(25482),a=n(91429),u=n(99157);let c=r=class extends((0,o.OU)(i.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,s.Cg)([(0,a.MZ)({type:[u.A],nonNullable:!0,json:{name:"geoTransforms"}})],c.prototype,"steps",void 0),c=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],c)},99157(e,t,n){n.d(t,{A:()=>u});var r,s=n(5482),o=n(69540),i=n(25482),a=n(91429);let u=r=class extends((0,o.OU)(i.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],u.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"wkid",void 0),u=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],u)},78125(e,t,n){n.r(t),n.d(t,{fromExtent:()=>d,fromGeometry:()=>g,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>x,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>P,fromSpatialReference:()=>_,getSpatialReference:()=>p,toExtent:()=>N,toGeometry:()=>w,toMultipoint:()=>S,toPoint:()=>b,toPolygon:()=>C,toPolyline:()=>I});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function p(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function g(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return M(e);case"polygon":return x(e);case"extent":return d(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function d(e){if(!e.getCacheValue(m)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){const t=new i.M,n=new o.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function x(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function M(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function P(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function _(e){return e.cache?(e.cache[m]??=(0,f.fromSpatialReference)(e),e.cache[m]):(0,f.fromSpatialReference)(e)}function w(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return b(e,t);case s.G.enumEnvelope:return N(e,t);case s.G.enumMultiPoint:return S(e,t);case s.G.enumPolyline:return I(e,t);case s.G.enumPolygon:return C(e,t)}return null}function N(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(2,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(1,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(m,e),n}function S(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:s,points:i,spatialReference:t});return c.setCacheValue(m,e),c}function b(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(m,e),n}function C(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}function I(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}},5808(e,t,n){n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>s});var r=n(49208);function s(e,t,n,s,o,i,a=Math.floor(e.length/3)){const u=(0,r.jd)(t,o);if(null==u)return!1;if(u===r.pO){if(e===s&&n===i)return!0;const t=n+3*a;for(let r=n,o=i;r<t;r++,o++)s[o]=e[r]??0;return!0}const c=n+3*a;for(let t=n,r=i;t<c;t+=3,r+=3)u(e,t,s,r);return!0}},65806(e,t,n){n.d(t,{g:()=>i});var r=n(51850),s=n(91218),o=n(9762);function i(e,t,n,r){if((0,s.canProjectWithoutEngine)(e.spatialReference,n))return a[0]=e.x,a[1]=e.y,a[2]=e.z??0,(0,o.projectBuffer)(a,e.spatialReference,0,t,n,0);const i=(0,s.tryProject)(e,n,r);return!!i&&(t[0]=i.x,t[1]=i.y,t[2]=i.z??0,!0)}const a=(0,r.vt)()},27993(e,t,n){n.d(t,{F:()=>a});var r=n(91218),s=n(16930),o=n(9762),i=n(65806);function a(e,t,n,s){return!(null==t||null==s||e.length<2)&&((0,r.canProjectWithoutEngine)(t,s)?(0,o.projectBuffer)(e,t,0,n,s,0,1):(u.x=e[0],u.y=e[1],u.z=e[2],u.spatialReference=t,(0,i.g)(u,n,s)))}const u={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:s.A.WGS84,type:"point"}},49208(e,t,n){n.d(t,{Tp:()=>h,jd:()=>l,pO:()=>m,w5:()=>c});var r=n(34727),s=n(86211),o=n(73941),i=n(79258),a=n(34403),u=n(21325);const c={2:{5:m,7:null,9:null,10:m,1:P,6:null,8:null,0:null,3:g,11:d,2:m,4:b},5:{5:m,7:null,9:null,10:m,1:P,6:null,8:null,0:null,3:g,11:d,2:m,4:b},7:{5:null,7:m,9:null,10:m,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:x,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(e,t,n,r){const s=e[t]/E,o=D-2*Math.atan(Math.exp(-e[t+1]/E)),i=E+(e[t+2]??0),a=Math.cos(o)*i;n[r]=Math.cos(s)*a,n[r+1]=Math.sin(s)*a,n[r+2]=Math.sin(o)*i},6:null,8:null,0:null,3:m,11:function(e,t,n,r){p(e,t,n,r),d(n,r,n,r)},2:p,4:function(e,t,n,r){p(e,t,n,r),b(n,r,n,r)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,r){C(e,t,n,r),P(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){C(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){C(e,t,n,r),d(n,r,n,r)},2:C,4:m},1:{5:S,7:null,9:null,10:S,1:m,6:null,8:null,0:null,3:function(e,t,n,r){S(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){S(e,t,n,r),d(n,r,n,r)},2:S,4:function(e,t,n,r){S(e,t,n,r),b(n,r,n,r)}},6:{5:null,7:N,9:null,10:N,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:w,10:w,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:P,6:M,8:x,0:null,3:g,11:d,2:m,4:b},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),P(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),g(n,r,n,r)},11:m,2:y,4:function(e,t,n,r){y(e,t,n,r),b(n,r,n,r)}}};function l(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(I.source.spatialReference===e&&I.dest.spatialReference===t)return I;const n=f(e,I.source),r=f(t,I.dest);return 0===n&&0===r?(0,u.aI)(e,t)?I.projector=m:I.projector=null:I.projector=c[n][r],I}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,u.oT)(e)?t.spatialReferenceId=2:(0,u.K8)(e)?t.spatialReferenceId=3:(0,u.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function p(e,t,n,r){n[r]=R*(e[t]/E),n[r+1]=R*(D-2*Math.atan(Math.exp(-e[t+1]/E))),n[r+2]=e[t+2]??0}function g(e,t,n,s){!function(e,t,n,s,o){const i=.4999999*Math.PI,a=(0,r.qE)(A*e[t+1],-i,i),u=Math.sin(a);n[s++]=A*e[t]*o.radius,n[s++]=o.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[s]=e[t+2]??0}(e,t,n,s,i.$O)}function d(e,t,n,r){n[r]=e[t]*O,n[r+1]=e[t+1]*O,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*G,n[r+1]=e[t+1]*G,n[r+2]=e[t+2]??0}function v(e,t,n,r,s){const o=s+(e[t+2]??0),i=A*e[t],a=A*e[t+1],u=Math.cos(a)*o;n[r]=Math.cos(i)*u,n[r+1]=Math.sin(i)*u,n[r+2]=Math.sin(a)*o}function x(e,t,n,r){v(e,t,n,r,i.Sw.radius)}function M(e,t,n,r){v(e,t,n,r,i.sH.radius)}function P(e,t,n,r){v(e,t,n,r,i.$O.radius)}function _(e,t,n,s,o){const i=e[t],a=e[t+1],u=e[t+2]??0,c=Math.sqrt(i*i+a*a+u*u),l=(0,r.YN)(u/(0===c?1:c)),h=Math.atan2(a,i);n[s++]=R*h,n[s++]=R*l,n[s]=c-o}function w(e,t,n,r){_(e,t,n,r,i.Sw.radius)}function N(e,t,n,r){_(e,t,n,r,i.sH.radius)}function S(e,t,n,r){_(e,t,n,r,i.$O.radius)}function b(e,t,n,r){!function(e,t,n,r,s){const o=A*e[t],i=A*e[t+1],a=e[t+2]??0,u=Math.sin(i),c=Math.cos(i),l=s.radius/Math.sqrt(1-s.eccentricitySquared*u*u);n[r++]=(l+a)*c*Math.cos(o),n[r++]=(l+a)*c*Math.sin(o),n[r++]=(l*(1-s.eccentricitySquared)+a)*u}(e,t,n,r,i.$O)}function C(e,t,n,r){const s=a.TP,o=e[t],u=e[t+1],c=e[t+2]??0;let l,h,f,m,p,g,d,y,v,x,M,P,_,w,N,S,b,C,I,A,D;l=Math.abs(c),h=o*o+u*u,f=Math.sqrt(h),m=h+c*c,p=Math.sqrt(m),A=Math.atan2(u,o),g=c*c/m,d=h/m,w=s.a2/p,N=s.a3-s.a4/p,d>.3?(y=l/p*(1+d*(s.a1+w+g*N)/p),I=Math.asin(y),x=y*y,v=Math.sqrt(1-x)):(v=f/p*(1-g*(s.a5-w-d*N)/p),I=Math.acos(v),x=1-v*v,y=Math.sqrt(x)),M=1-i.$O.eccentricitySquared*x,P=i.$O.radius/Math.sqrt(M),_=s.a6*P,w=f-P*v,N=l-_*y,b=v*w+y*N,S=v*N-y*w,C=S/(_/M+b),I+=C,D=b+S*C/2,c<0&&(I=-I),n[r++]=R*A,n[r++]=R*I,n[r]=D}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},A=(0,r.kU)(1),R=(0,r.KJ)(1),D=.5*Math.PI,E=i.$O.radius,O=E*Math.PI/180,G=180/(E*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>X,initializeProjection:()=>W,isEqualBaseGCS:()=>J,isLoaded:()=>E,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>G,load:()=>q,project:()=>Z,projectAsync:()=>L,projectExtent:()=>se,projectMany:()=>j,projectMultipoint:()=>H,projectOrLoad:()=>B,projectOrLoadMany:()=>Y,projectPoint:()=>$,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>U,requiresLoad:()=>T,test:()=>k,tryProject:()=>z,unload:()=>F});var r=n(49186),s=n(17676),o=n(62788),i=n(95488),a=n(51850),u=n(21276),c=n(73941),l=n(5443),h=n(91075),f=n(48526),m=n(86738),p=n(39829),g=n(82799),d=n(16930),y=n(98764),v=n(159),x=n(9762),M=n(49208);function P(e,t,n,r,s,o){return _[0]=e,_[1]=t,_[2]=n,(0,x.projectBuffer)(_,r,0,s,o,0)}const _=(0,a.vt)();var w=n(60408),N=n(21325),S=n(52006);let b=null,C=null,I=null,A=null,R={};const D=new i.I;function E(){return!!(C?.isLoaded()&&I?.isLoaded()&&A?.isLoaded())}function O(){return!!E()||((0,o.gc)(D),q(),!1)}function G(e,t){return!e||!t||X(e,t)||O()}function T(e,t){return!X(e,t)&&!E()}async function q(e){null==b&&(b=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(C=e,C.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(I=e,I.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(A=e,A.load()))])),await b,(0,s.Te)(e),D.notify()}function Z(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,u.H)(e),j(e,e[0].spatialReference,t,n)):((0,u.f)(e),j([e],e.spatialReference,t,n)[0])}function j(e,t,n,r){if(null==t||null==n)return e;if(X(t,n,r))return e.map(e=>U(e,t,n));if(null==r?.geographicTransformation&&(0,c.jA)(t))return j(e.map(e=>U(e,t,d.A.WGS84)),d.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,c.jA)(n))return j(e,t,d.A.WGS84).map(e=>U(e,d.A.WGS84,n));if(!E())throw new V;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:A.getTransformation(t,n,r.areaOfInterestExtent)||new v.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let s=R[e];s||(s=A.getTransformation(t,n)||new v.A,R[e]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?C.executeMany(e,n,r):I.executeMany(e,n,r)}function z(e,t,n){try{return Z(e,t,n)}catch(e){return null}}function B(e,t){const n=Y([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function Y(e,t,n){if(!E())for(const n of e)if(null!=n&&!(0,N.aI)(n.spatialReference,t)&&(0,N.fn)(n.spatialReference)&&(0,N.fn)(t)&&!X(n.spatialReference,t))return(0,o.gc)(D),{pending:q(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,N.aI)(e.spatialReference,t)?e:(0,N.fn)(e.spatialReference)&&(0,N.fn)(t)?Z(e,t,n):null)}}class V extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function F(){b=null,C=null,I=null,A=null,R={}}const k={get loadPromise(){return b}};async function L(e,t,n){if((0,s.Te)(n),!e)return e;const r=Y(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,s.Te)(n),L(e,t,n);const o=r.geometries??[];return Array.isArray(e)?o:o[0]}function X(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,N.aI)(e,t)||(0,N.fn)(e)&&(0,N.fn)(t)&&!!(0,M.jd)(e,t))}function J(e,t){if((0,N.aI)(e,t))return!0;if(!(0,N.fn)(e)||!(0,N.fn)(t))return!1;const n=(0,N.oT)(e)||(0,N.K8)(e)||(0,N.x1)(e),r=(0,N.oT)(t)||(0,N.K8)(t)||(0,N.x1)(t);return n&&r}async function W(e,t,n,r){if(E())return(0,s.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:s}of e)if(t&&n&&!X(t,n,s))return q(r)}else if(e&&t&&!X(e,t,n))return q(r);return(0,s.NO)(r)}function U(e,t,n){return e?(0,w.fT)(e)?K(e,t,new m.A,n,0):(0,w.ZC)(e)?oe(e,t,new l.A,n,0):(0,w.Bi)(e)?re(e,t,new p.A,n,0):(0,w.Rg)(e)?te(e,t,new g.A,n,0):(0,w.U9)(e)?Q(e,t,new f.A,n,0):null:null}function $(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=K(e,e.spatialReference,t,n,r)}function K(e,t,n,r,s){ce[0]=e.x,ce[1]=e.y;const o=e.z;return ce[2]=void 0!==o?o:s,(0,x.projectBuffer)(ce,t,0,ce,r,0)?(n.x=ce[0],n.y=ce[1],n.spatialReference=r,void 0!==o||(0,c.xP)(r)?(n.z=ce[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function H(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,r)}function Q(e,t,n,r,s){const{points:o,hasZ:i,hasM:a}=e,u=[],c=o.length,l=[];for(const e of o)l.push(e[0],e[1],i?e[2]:s);if(!(0,x.projectBuffer)(l,t,0,l,r,0,c))return null;const h=ue(i,r);for(let e=0;e<c;++e){const t=3*e,n=l[t],r=l[t+1];h&&a?u.push([n,r,l[t+2],o[e][3]]):h?u.push([n,r,l[t+2]]):a?u.push([n,r,o[e][2]]):u.push([n,r])}return n.points=u,n.spatialReference=r,n.hasZ=i,n.hasM=a,n}function ee(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,r)}function te(e,t,n,r,s){const{curvePaths:o,paths:i,hasZ:a,hasM:u}=e;if(!(o?ae(o,a??!1,u??!1,t,n.curvePaths=[],r,s):ie(i,a??!1,u??!1,t,n.paths,r,s)))return null;const c=ue(a,r);return n.spatialReference=r,n.hasZ=c,n.hasM=u,n}function ne(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,r)}function re(e,t,n,r,s){const{curveRings:o,rings:i,hasZ:a,hasM:u}=e;return(o?ae(o,a??!1,u??!1,t,n.curveRings=[],r,s):ie(i,a??!1,u??!1,t,n.rings,r,s))?(n.spatialReference=r,n.hasZ=ue(a,r),n.hasM=u,n):null}function se(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=oe(e,e.spatialReference,t,n,r)}function oe(e,t,n,r,s){const{xmin:o,ymin:i,xmax:a,ymax:u,hasZ:c,hasM:l}=e;if(!P(o,i,c?e.zmin:s,t,ce,r))return null;const h=ue(c,r);return n.xmin=ce[0],n.ymin=ce[1],h&&(n.zmin=ce[2]),P(a,u,c?e.zmax:s,t,ce,r)?(n.xmax=ce[0],n.ymax=ce[1],h&&(n.zmax=ce[2]),l&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function ie(e,t,n,r,s,o,i=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:i);if(!(0,x.projectBuffer)(a,r,0,a,o,0))return!1;let u=0;s.length=0;const c=t?3:2,l=ue(t,o);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(u,u+=3);l||t.pop(),n&&t.push(r[c]),e.push(t)}s.push(e)}return!0}function ae(e,t,n,r,s,o,i=0){const a=new Array;for(const n of e)for(const e of n){if((0,S.FG)(e))return!1;if((0,S.aO)(e)){const[n,r]=e.c;a.push(n[0],n[1],t?n[2]:i,r[0],r[1],i);continue}if((0,S.n1)(e)){const[n,r,s]=e.b;a.push(n[0],n[1],t?n[2]:i,r[0],r[1],i,s[0],s[1],i);continue}const n=e;a.push(n[0],n[1],t?n[2]:i)}if(!(0,x.projectBuffer)(a,r,0,a,o,0))return!1;let u=0;s.length=0;const c=t?3:2,l=ue(t,o);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(u,u+=3);if(l||t.pop(),n&&t.push((0,S.yP)(r)[c]),(0,S.FG)(r))return!1;if((0,S.aO)(r)){const n=a[u++],r=a[u++];++u,e.push({c:[t,[n,r]]});continue}if((0,S.n1)(r)){const n=a[u++],r=a[u++];++u;const s=a[u++],o=a[u++];++u,e.push({b:[t,[n,r],[s,o]]});continue}e.push(t)}s.push(e)}return!0}function ue(e,t){return e||(0,c.xP)(t)||(0,N.aI)(t,y.Y0)}const ce=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>i,Y0:()=>c,lO:()=>l});var r=n(73941),s=n(16930),o=n(21325);const i=new s.A(r.fv),a=new s.A(r.FY),u=new s.A(r.LJ),c=new s.A(r.Ro);function l(e){const t=h.get(e);if(t)return t;let n=i;if(e)if(e===a)n=a;else if(e===u)n=u;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,o.tl)(t)||(0,o.tl)(r)?n=a:((0,o.ZL)(t)||(0,o.ZL)(r))&&(n=u);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?n=a:e===m&&(n=u)}}}return h.set(e,n),n}const h=new Map,f=a.wkt.toUpperCase(),m=u.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>o,l5:()=>i});var r=n(34275),s=n(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function i(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,s.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>x,DC:()=>h,Ej:()=>m,Ie:()=>y,Jt:()=>v,Ne:()=>p,RF:()=>l,aI:()=>P,fA:()=>i,gE:()=>u,hZ:()=>d,iT:()=>f,is:()=>M,qv:()=>_,vI:()=>g,vY:()=>a,v_:()=>w,vt:()=>o,w1:()=>c}),n(35522);var r=n(5443),s=(n(19419),n(4197));function o(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,s,i,a=o()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=s,a[5]=i,a}function a(e,t=o()){return function(e,t,n,r=o()){return d(r,_),function(e,t,n=0,r=t.length/3){let s=e[0],o=e[1],i=e[2],a=e[3],u=e[4],c=e[5];for(let e=0;e<r;e++)s=Math.min(s,t[n+3*e]),o=Math.min(o,t[n+3*e+1]),i=Math.min(i,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=a,e[4]=u,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){const[n,r,o,i,a,u]=e;return t[0]=n,t[1]=r,t[2]=o,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=o,t[9]=n,t[10]=a,t[11]=u,t[12]=i,t[13]=r,t[14]=o,t[15]=i,t[16]=r,t[17]=u,t[18]=i,t[19]=a,t[20]=o,t[21]=i,t[22]=a,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function p(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function g(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?d(e,_):o(_)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function x(e,t,n,r,s){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function P(e,t,n){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];o()},34403(e,t,n){n.d(t,{TP:()=>i});var r=n(79258);Math.PI;const s=r.$O.radius,o=r.$O.eccentricitySquared,i={a1:s*o,a2:s*o*s*o,a3:s*o*o/2,a4:s*o*s*o*2.5,a5:s*o+s*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function o(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function u(e){return"object"==typeof e&&"vertexAttributes"in e}function c(e){return e?o(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function l(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>c,Bi:()=>a,Pv:()=>l,Rg:()=>i,U9:()=>s,W0:()=>h,ZC:()=>r,fT:()=>o,uW:()=>u})},28735(e,t,n){n.d(t,{Cv:()=>d,Gh:()=>x,ci:()=>M,je:()=>y,jg:()=>h,tD:()=>v,y7:()=>g,yw:()=>l});var r=n(4718),s=n(21276),o=n(16930),i=n(79258),a=n(21325);function u(e){return 57.29577951308232*e}function c(e){return.017453292519943*e}function l(e){return e/i.$O.radius}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/i.$O.radius))}function f(e){return null!=e.wkid||null!=e.wkt}const m=[0,0];function p(e,t,n,r,s){const o=e,i=s;if(i.spatialReference=n,"x"in o&&"x"in i)[i.x,i.y]=t(o.x,o.y,m,r);else if("xmin"in o&&"xmin"in i)[i.xmin,i.ymin]=t(o.xmin,o.ymin,m,r),[i.xmax,i.ymax]=t(o.xmax,o.ymax,m,r);else if("paths"in o&&"paths"in i||"rings"in o&&"rings"in i){const e="paths"in o?o.paths:o.rings,n=[];let s;for(let o=0;o<e.length;o++){const i=e[o];s=[],n.push(s);for(let e=0;e<i.length;e++)s.push(t(i[e][0],i[e][1],[0,0],r)),i[e].length>2&&s[e].push(i[e][2]),i[e].length>3&&s[e].push(i[e][3])}"paths"in i?i.paths=n:i.rings=n}else if("points"in o&&"points"in i){const e=o.points,n=[];for(let s=0;s<e.length;s++)n[s]=t(e[s][0],e[s][1],[0,0],r),e[s].length>2&&n[s].push(e[s][2]),e[s].length>3&&n[s].push(e[s][3]);i.points=n}return s}function g(e,t){const n=e&&(f(e)?e:e.spatialReference),r=t&&(f(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!n||!r)&&(!!(0,a.aI)(r,n)||(0,a.K8)(r)&&(0,a.oT)(n)||(0,a.K8)(n)&&(0,a.oT)(r))}function d(e,t){if(null==e)return null;const n=e.spatialReference,s=t&&(f(t)?t:t.spatialReference);return g(n,s)?(0,a.aI)(n,s)?(0,r.o8)(e):(0,a.K8)(s)?p(e,y,o.A.WebMercator,!1,(0,r.o8)(e)):(0,a.oT)(s)?p(e,v,o.A.WGS84,!1,(0,r.o8)(e)):null:null}function y(e,t,n=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const r=c(t);return n[0]=c(e)*i.$O.radius,n[1]=i.$O.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function v(e,t,n=[0,0],r=!1){if(e===a.Mc[0])n[0]=-180;else if(e===a.Mc[1])n[0]=180;else{const t=u(e/i.$O.radius);n[0]=r?t:t-360*Math.floor((t+180)/360)}return n[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/i.$O.radius))),n}function x(e,t=!1,n=(0,r.o8)(e)){return(0,s.f)(e),(0,s.f)(n),p(e,y,o.A.WebMercator,t,n)}function M(e,t=!1,n=(0,r.o8)(e)){return(0,s.f)(e),(0,s.f)(n),p(e,v,o.A.WGS84,t,n)}},92722(e,t,n){n.d(t,{A:()=>s});var r=n(69397);class s{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new s(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const o=n-e,i=r-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*t],o=this.coords[r*t+1];for(let i=1;i<n;i+=1){const n=r*(t+i),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-s)*(u+o),s=a,o=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(t+s);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:s}=this;for(const e of n){for(let n=1;n<e;n++){const e=s*(r+n);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return e?(e.set(o),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new s(this.lengths,n,!1,!1)}}},32728(e,t,n){n.d(t,{YH:()=>a,hG:()=>o,nu:()=>u,wp:()=>i}),n(34727);var r=n(35522),s=n(51850);function o(e){const t=e[0]*e[0]+e[4]*e[4]+e[8]*e[8],n=e[1]*e[1]+e[5]*e[5]+e[9]*e[9],r=e[2]*e[2]+e[6]*e[6]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}function i(e,t){const n=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),s=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),o=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,r.hZ)(e,n,s,o),e}function a(e,t,n){n=n||e;const s=(0,r.Om)(e,t);(0,r.hZ)(n,e[0]-s*t[0],e[1]-s*t[1],e[2]-s*t[2]),(0,r.S8)(n,n)}function u(e,t,n,o=(0,s.vt)()){const i=(0,r.Bw)(e),a=(0,r.Bw)(t),u=(0,r.Om)(e,t)/(i*a);if(u<.9999999999999999){const s=Math.acos(u),h=((1-n)*i+n*a)/Math.sin(s),f=h/i*Math.sin((1-n)*s),m=h/a*Math.sin(n*s);return(0,r.hs)(c,e,f),(0,r.hs)(l,t,m),(0,r.WQ)(o,c,l)}return(0,r.Cc)(o,e,t,n)}(0,s.vt)(),(0,s.vt)(),(0,s.vt)();const c=(0,s.vt)(),l=(0,s.vt)()},69396(e,t,n){n.r(t),n.d(t,{area2D:()=>Z,areaHorizontal:()=>J,autoArea2D:()=>V,autoDistance2DBetweenPoints:()=>k,autoLength2D:()=>F,autoSize2D:()=>L,distance2DBetweenPoints:()=>Y,geodeticArea:()=>A,geodeticDistanceBetweenPoints:()=>T,geodeticDistanceBetweenPointsMany:()=>q,geodeticLength:()=>G,length2D:()=>B,preloadGeodetic:()=>R});var r=n(17799),s=n(86211),o=n(35522),i=n(51850),a=n(73941),u=n(48526),c=n(86738),l=n(39829),h=n(82799),f=n(91218),m=n(16930),p=n(98764),g=n(65708),d=n(48265),y=n(16346),v=n(49590),x=n(11918),M=n(39663),P=n(7817),_=n(10222),w=n(27993);function N(e,t,n,r,s){(0,o.C)(S,e),(0,o.WQ)(b,e,t),(0,w.F)(S,n,S,s),(0,w.F)(b,n,b,s),(0,o.Re)(r,b,S),(0,o.S8)(r,r)}const S=(0,i.vt)(),b=(0,i.vt)();var C=n(21325),I=n(32728);async function A({geometryJSON:e,options:t}){await Promise.allSettled([(0,v.l)(),t?.returnLength?(0,M.l)():void 0]);const n=D(e,t),o=t?.unit??"square-meters",i=(0,_.e)(n)??n,a=(0,v.e)(i,{unit:o,...t}),u=(0,r.gT)(a,o),c=t?.lengthUnit??(0,s.Bd)(o);return{area:u,centroid:t?.returnCentroid?E(i).toJSON():void 0,length:t?.returnLength?await O(i,{unit:c}):void 0}}function R(){(0,v.l)(),(0,M.l)(),(0,x.load)()}function D(e,t){const n="rings"in e?l.A.fromJSON(e):h.A.fromJSON(e);if(t?.stagedPoint){const e=c.A.fromJSON(t.stagedPoint),r=("rings"in n?n.rings:n.paths).at(-1);if(r){const{x:t,y:s,z:o,m:i}=e,a=n.hasZ&&n.hasM?[t,s,o??0,i??0]:n.hasZ?[t,s,o??0]:n.hasM?[t,s,i??0]:[t,s];r.push(a)}}return n}function E(e){return(0,d.e)(e)}async function O(e,t){await(0,M.l)();const n=t?.unit??"meters";return(0,r.d_)((0,M.e)(e,{...t,unit:n}),n)}function G({geometryJSON:e,options:t}){return O(D(e,t),t)}async function T({geometry1JSON:e,geometry2JSON:t,options:n}){await(0,x.load)();const s=c.A.fromJSON(e),o=c.A.fromJSON(t),i=n?.unit??"meters";return(0,r.d_)((0,x.execute)(s,o,{...n,unit:i}),i)}async function q({geometry1JSON:e,geometry2JSON:t,options:n}){await(0,x.load)();const s=u.A.fromJSON(e),o=u.A.fromJSON(t);if(s.points.length!==o.points.length)throw new Error("Input multipoints must have the same number of points.");const i=s.points.length,a=n?.unit??"meters",c=[],l={...n,unit:a};for(let e=0;e<i;e++){const t=s.getPoint(e),n=o.getPoint(e);c.push(null!=t&&null!=n?(0,r.d_)((0,x.execute)(t,n,l),a):null)}return c}function Z({geometryJSON:e,options:t}){return j(D(e,t),t)}function j(e,t){const n=t?.unit??"square-meters",o=t?.lengthUnit??(0,s.Bd)(n),i=(0,_.e)(e)??e,a=(0,g.e)(i,{unit:n,...t});return{area:(0,r.gT)(a,n),centroid:t?.returnCentroid?E(i).toJSON():void 0,length:t?.returnLength?z(i,{unit:o}):void 0}}function z(e,t){const n=t?.unit??"meters";return(0,r.d_)((0,P.e)(e,{...t,unit:n}),n)}function B({geometryJSON:e,options:t}){return z(D(e,t),t)}function Y({geometry1JSON:e,geometry2JSON:t,options:n}){const s=c.A.fromJSON(e),o=c.A.fromJSON(t),i=n?.unit??"meters";return(0,r.d_)((0,y.e)(s,o,{...n,unit:i}),i)}async function V(e){return X(e.geometryJSON.spatialReference,A,Z)(e)}async function F(e){return X(e.geometryJSON.spatialReference,G,B)(e)}async function k(e){return X(e.geometry1JSON.spatialReference,T,Y)(e)}async function L(e){const t=X(e.topLeftJSON.spatialReference,T,Y),{topLeftJSON:n,topRightJSON:s,bottomRightJSON:o,bottomLeftJSON:i,options:a}=e,[u,c,l,h]=await Promise.all([t({geometry1JSON:i,geometry2JSON:o,options:a}),t({geometry1JSON:n,geometry2JSON:s,options:a}),t({geometry1JSON:o,geometry2JSON:s,options:a}),t({geometry1JSON:i,geometry2JSON:n,options:a})]);return{width:(0,r.T9)(u,c),height:(0,r.T9)(h,l)}}function X(e,t,n){switch(r=e,(0,C.EA)(r)||(0,C.K8)(r)?0:1){case 0:return t;case 1:return n}var r}function J(e){const{geometryJSON:t}=e,n=function(e){return e?(0,a.B3)(e)?(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e)||(0,a.jA)(e)||(0,C.aI)(e,p.Y0)?{mode:1,spatialReference:p.Y0}:{mode:0,spatialReference:e}:{mode:1,spatialReference:(0,p.lO)(e)}:null}(t.spatialReference);if(!n)throw new Error("Cannot compute horizontal area without a valid spatial reference.");switch(n.mode){case 0:return Z(e);case 1:return function(e,{geometryJSON:t,options:n}){const r=D(t,n),s=H,o=$,i=K,a=(0,C.aI)(r.spatialReference,e.spatialReference)?r.clone():(0,f.projectWithoutEngine)(r,r.spatialReference,e.spatialReference);if(!a)throw new Error(`Cannot project geometry from ${r.spatialReference?.wkid??"unknown"} to ${e.spatialReference.wkid}.`);U(a,s,o,i);const{area:u,centroid:c,length:l}=j(a,n);return{area:u,centroid:W(c,s,o,i,e.spatialReference,r.spatialReference),length:l}}(n,e)}}function W(e,t,n,r,s,i){if(!e)return e;(0,o.hs)(n,n,e.x),(0,o.hs)(r,r,e.y);const a=Q;return(0,o.WQ)(a,n,r),(0,o.WQ)(a,a,t),e.x=a[0],e.y=a[1],e.z=a[2],e.spatialReference=s,(0,f.projectWithoutEngine)(e,e.spatialReference,i)?.toJSON()??void 0}function U(e,t,n,r){let s=0;(0,o.hZ)(t,0,0,0);for(const n of e.rings)for(const e of n)t[0]+=e[0],t[1]+=e[1],t[2]+=e[2],s++;(0,o.hs)(t,t,1/s);const i=ee;(0,o.S8)(i,t);const a=te,u=Math.atan2(i[1],i[0]);(0,o.hZ)(a,-Math.sin(u),Math.cos(u),0),(0,C.aI)(e.spatialReference,p.Y0)&&(N(t,i,p.GD,i,e.spatialReference),N(t,a,p.GD,a,e.spatialReference)),(0,I.YH)(a,i,n),(0,o.$A)(r,n,i);const c=Q;for(const s of e.rings)for(const e of s){(0,o.hZ)(c,e[0],e[1],e[2]),(0,o.Re)(c,c,t);const s=(0,o.Om)(n,c),i=(0,o.Om)(r,c);e[0]=s,e[1]=i}e.hasZ=!1,e.spatialReference=m.A.WebMercator}const $=(0,i.vt)(),K=(0,i.vt)(),H=(0,i.vt)(),Q=(0,i.vt)(),ee=(0,i.vt)(),te=(0,i.vt)()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[218,2722,6160],{9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,n,e,r,i,o,u,s,a,c,h,f,l,m,M,d){return[t,n,e,r,i,o,u,s,a,c,h,f,l,m,M,d]}},Symbol.toStringTag,{value:"Module"}))},51850(t,n,e){function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function o(t,n,e){return[t,n,e]}function u(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function a(){return[0,0,0]}function c(){return o(1,1,1)}function h(){return o(1,0,0)}function f(){return o(0,1,0)}function l(){return o(0,0,1)}e.d(n,{CN:()=>u,Cb:()=>g,Cw:()=>d,JP:()=>x,S:()=>c,Ul:()=>a,Un:()=>M,ci:()=>s,fA:()=>o,o8:()=>i,uY:()=>m,vt:()=>r});const m=[0,0,0],M=c(),d=h(),x=f(),g=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:x,UNIT_Z:g,ZEROS:m,clone:i,create:r,freeze:u,fromArray:s,fromValues:o,ones:c,unitX:h,unitY:f,unitZ:l,zeros:a},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>w,Bw:()=>o,C:()=>u,Cc:()=>A,DI:()=>I,Il:()=>Y,Io:()=>y,Ln:()=>g,Om:()=>N,Qr:()=>f,Re:()=>c,S8:()=>v,T9:()=>d,WQ:()=>a,Z0:()=>S,_S:()=>m,aI:()=>C,ei:()=>T,fw:()=>z,g7:()=>G,gL:()=>E,hG:()=>b,hZ:()=>s,hs:()=>x,jb:()=>q,jk:()=>M,lo:()=>V,lw:()=>h,m3:()=>p,oW:()=>P,t2:()=>j,tn:()=>l,uE:()=>U,xg:()=>Z,ze:()=>_});var r=e(51850),i=e(34304);function o(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function l(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function m(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function d(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function x(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function p(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function _(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function I(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function v(t,n){const e=n[0],r=n[1],i=n[2];let o=e*e+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function N(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],i=n[1],o=n[2],u=e[0],s=e[1],a=e[2];return t[0]=i*a-o*s,t[1]=o*u-r*a,t[2]=r*s-i*u,t}function A(t,n,e,r){const i=n[0],o=n[1],u=n[2];return t[0]=i+r*(e[0]-i),t[1]=o+r*(e[1]-o),t[2]=u+r*(e[2]-u),t}function S(t,n,e){const r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*o+e[12],t[1]=e[1]*r+e[5]*i+e[9]*o+e[13],t[2]=e[2]*r+e[6]*i+e[10]*o+e[14],t}function T(t,n,e){const r=n[0],i=n[1],o=n[2];return t[0]=r*e[0]+i*e[3]+o*e[6],t[1]=r*e[1]+i*e[4]+o*e[7],t[2]=r*e[2]+i*e[5]+o*e[8],t}function E(t,n,e){return z(t,n,e[0],e[1],e[2],e[3])}function z(t,n,e,r,i,o){const u=n[0],s=n[1],a=n[2],c=r*a-i*s,h=i*u-e*a,f=e*s-r*u,l=r*f-i*h,m=i*c-e*f,M=e*h-r*c,d=2*o;return t[0]=u+c*d+2*l,t[1]=s+h*d+2*m,t[2]=a+f*d+2*M,t}function G(t,n){v(O,t),v(R,n);const e=N(O,R);return e>1?0:e<-1?Math.PI:Math.acos(e)}const O=(0,r.vt)(),R=(0,r.vt)();function j(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function C(t,n){if(t===n)return!0;const e=t[0],r=t[1],o=t[2],u=n[0],s=n[1],a=n[2],c=(0,i.FD)();return Math.abs(e-u)<=c*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-a)<=c*Math.max(1,Math.abs(o),Math.abs(a))}function P(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],o=e[2]-n[2];let u=r*r+i*i+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=i*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=c,D=h,F=f,Z=y,V=b,Y=o,U=p;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:a,angle:G,bezier:function(t,n,e,r,i,o){const u=1-o,s=u*u,a=o*o,c=s*u,h=3*o*s,f=3*a*u,l=a*o;return t[0]=n[0]*c+e[0]*h+r[0]*f+i[0]*l,t[1]=n[1]*c+e[1]*h+r[1]*f+i[1]*l,t[2]=n[2]*c+e[2]*h+r[2]*f+i[2]*l,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:u,cross:w,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],o=n[2],u=e[0],s=e[1],a=e[2],c=i*a-o*s,h=o*u-r*a,f=r*s-i*u,l=Math.sqrt(c*c+h*h+f*f);return t[0]=c/l,t[1]=h/l,t[2]=f/l,t},direction:P,dist:Z,distance:y,div:F,divide:f,dot:N,equals:C,exactEquals:j,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,o){const u=o*o,s=u*(2*o-3)+1,a=u*(o-2)+o,c=u*(o-1),h=u*(3-2*o);return t[0]=n[0]*s+e[0]*a+r[0]*c+i[0]*h,t[1]=n[1]*s+e[1]*a+r[1]*c+i[1]*h,t[2]=n[2]*s+e[2]*a+r[2]*c+i[2]*h,t},inverse:I,len:Y,length:o,lerp:A,max:d,min:M,mul:D,multiply:h,negate:_,normalize:v,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,o=2*e()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*n,t},rotateX:function(t,n,e,r){const i=[],o=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],o=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],o=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:x,scaleAndAdd:g,set:s,sign:m,sqrDist:V,sqrLen:U,squaredDistance:b,squaredLength:p,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:c,transformMat3:T,transformMat4:S,transformQuat:E,transformQuatValues:z},Symbol.toStringTag,{value:"Module"}))},69397(t,n,e){e.d(n,{Qf:()=>a,Qh:()=>u,RS:()=>i,Ul:()=>m,i5:()=>l,lM:()=>o,qK:()=>h});var r=e(34275);const i=16;function o(t){if(!t)return 0;let n=h;for(const e in t)t.hasOwnProperty(e)&&(n+=s(t[e],!1));return n}function u(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const n=t.length;if(0===n||"number"==typeof t[0])return c(t,8);let e=f;for(let r=0;r<n;r++)e+=s(t[r]);return e}(t);let n=h;for(const e in t)t.hasOwnProperty(e)&&(n+=s(t[e]));return n}function s(t,n=!0){switch(typeof t){case"object":return n?u(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return i;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,n)=>t+(n?(0,r.iu)(n)?n.byteLength+l:Array.isArray(n)?c(n,i):0:0),0)}function c(t,n){return f+t.length*n}const h=32,f=16,l=145,m=64},15227(t,n,e){e.d(n,{fz:()=>m,g7:()=>f,yv:()=>l});var r=e(76061),i=e(61691),o=e(55537),u=e(15756),s=e(79187),a=e(1352);class c extends i.G{constructor(t,n,e,r,i,o,u){super(),this.m_currentUnionEnvelope2D=new s.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=u,this.m_bufferer=new a.B(u),this.m_inputGeoms=t,this.m_spatialReference=n,this.m_distances=e,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=i}tock(){return!0}getRank(){return 1}next(){{let t;for(;t=this.m_inputGeoms.next();)return(0,o.c)(t),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(t,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(t,n){return this.m_bufferer.buffer(t,n,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const h=new class{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(t,n,e){return!1}canAccelerateGeometry(t){return!1}executeMany(t,n,e,r,i){return this.executeManyEx(t,n,e,Number.NaN,96,r,i)}execute(t,n,e,i){Number.isFinite(e)||(0,o.a)("Invalid distance for buffer operation");const u=new r.S([t]),s=[e],a=this.executeMany(u,n,s,!1,i).next();return a||(0,o.d)("null buffer output"),a}executeManyEx(t,n,e,r,i,s,a){if(void 0!==e.find(t=>!Number.isFinite(t))&&(0,o.a)("Invalid distance for buffer operation"),s){const o=new c(t,n,e,r,i,!1,a);return(new u.p).executeMany(o,n,a,2)}return new c(t,n,e,r,i,!1,a)}};function f(t,n,e){return h.execute(t,n,e,null)}function l(t,n,e,i,o,u){const s=h.executeManyEx(new r.S(t),n,e,i,o,u,null);return Array.from(s)}function m(){return h.supportsCurves()}},46160(t,n,e){e.r(n),e.d(n,{execute:()=>s,executeMany:()=>a});var r=e(4576),i=e(86211),o=e(15227),u=e(83299);function s(t,n,e={}){const{unit:r}=e,s=(0,u.getSpatialReference)(t);r&&s&&(n=(0,i.UW)(n,r,s));const a=(0,u.fromGeometry)(t),c=a.getSpatialReference();return(0,u.toGeometry)((0,o.g7)(a.getGeometry(),c,n),c)}function a(t,n,e={}){let{maxDeviation:s=NaN,maxVerticesInFullCircle:a=96,union:c=!1,unit:h}=e;const f=(0,u.getSpatialReference)(t);h&&f&&(n=n.map(t=>(0,i.UW)(t,h,f)),s&&(s=(0,i.UW)(s,h,f)));const[l,m]=(0,u.fromGeometries)(t);return(0,o.yv)(l,m,n,s,a,c).map(t=>(0,u.toGeometry)(t,m)).filter(r.Ru)}},4197(t,n,e){e.d(n,{Vj:()=>a,cj:()=>s,jh:()=>o,l5:()=>u});var r=e(34275),i=e(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function u(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function s(t){return[...t]}function a(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>b,DC:()=>f,Ej:()=>m,Ie:()=>g,Jt:()=>y,Ne:()=>M,RF:()=>h,aI:()=>_,fA:()=>u,gE:()=>a,hZ:()=>x,iT:()=>l,is:()=>p,qv:()=>I,vI:()=>d,vY:()=>s,v_:()=>v,vt:()=>o,w1:()=>c}),e(35522);var r=e(5443),i=(e(19419),e(4197));function o(t=v){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function u(t,n,e,r,i,u,s=o()){return s[0]=t,s[1]=n,s[2]=e,s[3]=r,s[4]=i,s[5]=u,s}function s(t,n=o()){return function(t,n,e,r=o()){return x(r,I),function(t,n,e=0,r=n.length/3){let i=t[0],o=t[1],u=t[2],s=t[3],a=t[4],c=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),o=Math.min(o,n[e+3*t+1]),u=Math.min(u,n[e+3*t+2]),s=Math.max(s,n[e+3*t]),a=Math.max(a,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=i,t[1]=o,t[2]=u,t[3]=s,t[4]=a,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function a(t,n=(0,i.jh)(24)){const[e,r,o,u,s,a]=t;return n[0]=e,n[1]=r,n[2]=o,n[3]=e,n[4]=r,n[5]=a,n[6]=e,n[7]=s,n[8]=o,n[9]=e,n[10]=s,n[11]=a,n[12]=u,n[13]=r,n[14]=o,n[15]=u,n[16]=r,n[17]=a,n[18]=u,n[19]=s,n[20]=o,n[21]=u,n[22]=s,n[23]=a,n}function c(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function h(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function m(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function M(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function d(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function x(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function g(t){return t?x(t,I):o(I)}function y(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function b(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function p(t){return 6===t.length}function _(t,n,e){if(null==t||null==n)return t===n;if(!p(t)||!p(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];o()},92722(t,n,e){e.d(n,{A:()=>i});var r=e(69397);class i{constructor(t=[],n=[],e=!1,r=!1){this.lengths=t??[],this.coords=n??[],this.hasZ=e,this.hasM=r}static fromJSON({lengths:t,coords:n,hasZ:e,hasM:r}){return new i(t,n,e||!1,r||!1)}static fromRect([t,n,e,r]){const o=e-t,u=r-n;return new i([5],[t,n,o,0,0,u,-o,0,0,-u])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,n)=>t+n,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,n=0;for(const e of this.lengths){if(e<3)continue;const{stride:r}=this;let i=this.coords[r*n],o=this.coords[r*n+1];for(let u=1;u<e;u+=1){const e=r*(n+u),s=this.coords[e],a=this.coords[e+1];t+=-.5*(s-i)*(a+o),i=s,o=a}n+=e}return t}forEachVertex(t){let n=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:e}=this;for(const r of this.lengths){for(let i=0;i<r;i++){const r=e*(n+i);t(this.coords[r],this.coords[r+1])}n+=r}}deltaDecode(){const t=this.clone(),{coords:n,lengths:e}=t;let r=0;const{stride:i}=this;for(const t of e){for(let e=1;e<t;e++){const t=i*(r+e);n[t]+=n[t-i],n[t+1]+=n[t+1-i]}r+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const n=Array.from(this.lengths),{stride:e,size:r}=this,o=this.coords.slice(0,r*e);return t?(t.set(o),new i(n,t,this.hasZ,this.hasM)):new i(n,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:t,size:n}=this;if(2===t)return this;const e=new Array(n*t);for(let n=0,r=0;n<e.length;n+=t)e[r++]=this.coords[n],e[r++]=this.coords[n+1];return new i(this.lengths,e,!1,!1)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1666,2722,5611,7992,8125,9285],{9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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:()=>s,vt:()=>r,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:s,create:r,fromValues:function(t,e,n,r,s,a,i,o,u,h,c,f,l,m,g,x){return[t,e,n,r,s,a,i,o,u,h,c,f,l,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function o(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 u(){return[0,0,0]}function h(){return a(1,1,1)}function c(){return a(1,0,0)}function f(){return a(0,1,0)}function l(){return a(0,0,1)}n.d(e,{CN:()=>i,Cb:()=>M,Cw:()=>x,JP:()=>p,S:()=>h,Ul:()=>u,Un:()=>g,ci:()=>o,fA:()=>a,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=h(),x=c(),p=f(),M=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:x,UNIT_Y:p,UNIT_Z:M,ZEROS:m,clone:s,create:r,freeze:i,fromArray:o,fromValues:a,ones:h,unitX:c,unitY:f,unitZ:l,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>a,C:()=>i,Cc:()=>V,DI:()=>E,Il:()=>G,Io:()=>y,Ln:()=>M,Om:()=>b,Qr:()=>f,Re:()=>h,S8:()=>P,T9:()=>x,WQ:()=>u,Z0:()=>A,_S:()=>m,aI:()=>N,ei:()=>Z,fw:()=>w,g7:()=>S,gL:()=>O,hG:()=>d,hZ:()=>o,hs:()=>p,jb:()=>T,jk:()=>g,lo:()=>k,lw:()=>c,m3:()=>v,oW:()=>F,t2:()=>Y,tn:()=>l,uE:()=>B,xg:()=>L,ze:()=>C});var r=n(51850),s=n(34304);function a(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 o(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,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 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 f(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){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 g(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 x(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 p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function M(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 y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function d(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function P(t,e){const n=e[0],r=e[1],s=e[2];let a=n*n+r*r+s*s;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){const r=e[0],s=e[1],a=e[2],i=n[0],o=n[1],u=n[2];return t[0]=s*u-a*o,t[1]=a*i-r*u,t[2]=r*o-s*i,t}function V(t,e,n,r){const s=e[0],a=e[1],i=e[2];return t[0]=s+r*(n[0]-s),t[1]=a+r*(n[1]-a),t[2]=i+r*(n[2]-i),t}function A(t,e,n){const r=e[0],s=e[1],a=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*a+n[12],t[1]=n[1]*r+n[5]*s+n[9]*a+n[13],t[2]=n[2]*r+n[6]*s+n[10]*a+n[14],t}function Z(t,e,n){const r=e[0],s=e[1],a=e[2];return t[0]=r*n[0]+s*n[3]+a*n[6],t[1]=r*n[1]+s*n[4]+a*n[7],t[2]=r*n[2]+s*n[5]+a*n[8],t}function O(t,e,n){return w(t,e,n[0],n[1],n[2],n[3])}function w(t,e,n,r,s,a){const i=e[0],o=e[1],u=e[2],h=r*u-s*o,c=s*i-n*u,f=n*o-r*i,l=r*f-s*c,m=s*h-n*f,g=n*c-r*h,x=2*a;return t[0]=i+h*x+2*l,t[1]=o+c*x+2*m,t[2]=u+f*x+2*g,t}function S(t,e){P(_,t),P(R,e);const n=b(_,R);return n>1?0:n<-1?Math.PI:Math.acos(n)}const _=(0,r.vt)(),R=(0,r.vt)();function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function N(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],i=e[0],o=e[1],u=e[2],h=(0,s.FD)();return Math.abs(n-i)<=h*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-u)<=h*Math.max(1,Math.abs(a),Math.abs(u))}function F(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],a=n[2]-e[2];let i=r*r+s*s+a*a;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=s*i,t[2]=a*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=h,X=c,z=f,L=y,k=d,G=a,B=v;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:u,angle:S,bezier:function(t,e,n,r,s,a){const i=1-a,o=i*i,u=a*a,h=o*i,c=3*a*o,f=3*u*i,l=u*a;return t[0]=e[0]*h+n[0]*c+r[0]*f+s[0]*l,t[1]=e[1]*h+n[1]*c+r[1]*f+s[1]*l,t[2]=e[2]*h+n[2]*c+r[2]*f+s[2]*l,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:I,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],a=e[2],i=n[0],o=n[1],u=n[2],h=s*u-a*o,c=a*i-r*u,f=r*o-s*i,l=Math.sqrt(h*h+c*c+f*f);return t[0]=h/l,t[1]=c/l,t[2]=f/l,t},direction:F,dist:L,distance:y,div:z,divide:f,dot:b,equals:N,exactEquals:Y,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,s,a){const i=a*a,o=i*(2*a-3)+1,u=i*(a-2)+a,h=i*(a-1),c=i*(3-2*a);return t[0]=e[0]*o+n[0]*u+r[0]*h+s[0]*c,t[1]=e[1]*o+n[1]*u+r[1]*h+s[1]*c,t[2]=e[2]*o+n[2]*u+r[2]*h+s[2]*c,t},inverse:E,len:G,length:a,lerp:V,max:x,min:g,mul:X,multiply:c,negate:C,normalize:P,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,a=2*n()-1,i=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=a*e,t},rotateX:function(t,e,n,r){const s=[],a=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],a[0]=s[0],a[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),a[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],a=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],a[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),a[1]=s[1],a[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],a=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],a[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),a[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),a[2]=s[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[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:p,scaleAndAdd:M,set:o,sign:m,sqrDist:k,sqrLen:B,squaredDistance:d,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:h,transformMat3:Z,transformMat4:A,transformQuat:O,transformQuatValues:w},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>m,i5:()=>l,lM:()=>a,qK:()=>c});var r=n(34275);const s=16;function a(t){if(!t)return 0;let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=f;for(let r=0;r<e;r++)n+=o(t[r]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?i(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const c=32,f=16,l=145,m=64},87992(t,e,n){n.d(e,{JR:()=>I,ME:()=>E,MY:()=>V,NO:()=>C,Nh:()=>b,V2:()=>S,_s:()=>_,e6:()=>Y,gh:()=>P,tr:()=>F,uX:()=>p});var r=n(5482),s=n(69397),a=n(16930),i=(n(70328),n(19419)),o=n(60408),u=n(21325),h=n(513),c=n(50954),f=n(79567),l=n(52006),m=n(49663),g=n(46068),x=n(92722);class p{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:a,partCount:i,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:f,segmentCountArc:l,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=f,this.segmentCountArc=l,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:a,segmentCountBezier:i}=this,o=S(t,e,n,r,s,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,n+1)),o.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(n.subarray(0,e),0),o.segmentParams.set(r.subarray(0,s),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new M(this):[][Symbol.iterator]()}}class M{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=O(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=O(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],a=e[n++];return{b:[this.end,[t,r],[s,a]]}}const r=e[n++],s=e[n++],a=e[n++],i=e[n++],o=e[n++],u=e[n++];n++,n++;const h=e[n++],c=e[n++];if(!Boolean(4&r)&&1===a)return{c:[this.end,[h,c]]};const f=2&r?0:1,l=1&r?0:1;return{a:[this.end,[o,u],f,l,i,s,a]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,r.mS)(n,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:a,vertexM:o}=t,u=Z(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new A(t,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,f.e)(s,t,n),t=(0,l.yP)(n)}const[a,o,h,c]=s;e={xmin:a,ymin:o,xmax:h,ymax:c,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,a,i;t=r=1/0,a=i=-1/0;for(let e=0;e<n;++e){const n=s[2*e],o=s[2*e+1];t=Math.min(t,n),a=Math.max(a,n),r=Math.min(r,o),i=Math.max(i,o)}e={xmin:t,ymin:r,xmax:a,ymax:i,spatialReference:u}}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(o){let t=1/0,n=-1/0;for(const e of o)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function E(t){let e,n,r;if((0,o.fT)(t)){r="point";const{x:s,y:a,z:i,m:o}=t,u=[s,a];null!=i&&u.push(i),null!=o&&u.push(o),n=[[u]],e=1}else(0,o.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,o.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const s=S(r,e,r.includes("point")?0:n.length,(0,o.Pv)(t),(0,o.W0)(t),(0,l.Ed)(t)),{hasZ:a,hasM:i,vertexXY:u,vertexZ:h,vertexM:c}=s;function f(t){u[2*g]=t[0],u[2*g+1]=t[1],a&&(h[g]=t[2]),i&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!a&&!i){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])f(t);return s}const x="polygon"===r,{partOffsets:p}=s;let M=0;if(!s.hasCurves()){for(const t of n){if(p[M++]=g,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,a||i)for(let n=0;n<e;++n)f(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return p[M]=g,s}function y(t){const e=d+t;if(e<=(s.segmentParams?.length??0))return;let n=e*T;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let d=0;for(const t of n){if(s.partOffsets[M++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];f(n);const a=g-1;(0,l.wY)(r)?(y(10),++s.segmentCountArc,d=_(n,r,s,a,d),n=r.a[0]):(0,l.DA)(r)?(y(10),++s.segmentCountArc,d=R(n,r,s,a,d),n=r.a[0]):(0,l.aO)(r)?(y(10),++s.segmentCountArc,d=Y(n,r,s,a,d),n=r.c[0]):(0,l.n1)(r)?(y(4),++s.segmentCountBezier,d=F(0,r,s,a,d),n=r.b[0]):n=r}x&&w(e,n)||f(n)}return s.partOffsets[M]=g,s}function P(t){const e=O(t),{vertexCount:n,partCount:r,hasZ:s,hasM:a}=t,i=Z(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:i}}let o=0;if("multipoint"===t.type){const t=[];for(;o<n;)t.push(e(o++));return{points:t,spatialReference:i,hasZ:s,hasM:a}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],a=new Array;for(;o<r;)a.push(e(o++));u&&a.length>0&&a.push(a[0]),n.push(a)}return u?{rings:n,hasZ:s,hasM:a,spatialReference:i}:{paths:n,hasZ:s,hasM:a,spatialReference:i}}const h=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:a,spatialReference:i}:{paths:[],curvePaths:h,hasZ:s,hasM:a,spatialReference:i}}function b(t,{lengths:e,coords:n,hasZ:r,hasM:s},a){const i=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?i:0);r??=!1,s??=!1;const h=S(t,u,i,r,s,!1,0,0);if(h.spatialReference=a??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=n[e++],h.vertexXY[2*t+1]=n[e++],r&&(h.vertexZ[t]=n[e++]),s&&(h.vertexM[t]=n[e++]);return h}const c=2+Number(r)+Number(s);let f=0,l=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[l],a=e+t-Number(o);h.partOffsets[++l]=a;for(let t=e;t<a;++t)h.vertexXY[2*t]=n[f++],h.vertexXY[2*t+1]=n[f++],r&&(h.vertexZ[t]=n[f++]),s&&(h.vertexM[t]=n[f++]);o&&(f+=c)}return h}function I({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:a,partOffsets:i,hasZ:o,hasM:u}){const h=new x.A([],[],o,u);a=Math.max(a,1);const c="polygon"===t;let f=0;for(let t=0;t<a;++t){const a=i?.[t+1]??e,l=h.coords.length;for(let t=f;t<a;++t)h.coords.push(n[2*t],n[2*t+1]),o&&h.coords.push(r[t]),u&&h.coords.push(s[t]);if(c){const t=f;h.coords.push(n[2*t],n[2*t+1]),o&&h.coords.push(r[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-l)/h.stride),f=a}return"point"===t&&(h.lengths.length=0),h}function V(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const a=s.isCustomWkid()?0:s.getOldID();if(a<=0)return{wkt:e};let i=t.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:a,latestVcsWkid:i}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function Z({spatialReference:t}){return t instanceof a.A?t.toJSON():t}function O({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,n)=>t===e[n])}function S(t,e,n,r,s,a,i,o){i??=0,o??=0;const u=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(n+1)*Int32Array.BYTES_PER_ELEMENT,h+=(n+1)*Int8Array.BYTES_PER_ELEMENT),a&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let f=0;return u.vertexXY=new Float64Array(c,f,2*e),f+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(c,f,e),f+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,f,e),f+=u.vertexM.byteLength),a&&(u.segmentParams=new Float64Array(c,f,u.segmentParamCount),f+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,f,e),u.segmentIndices.fill(X),f+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,f,n+1),f+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,f,n+1),f+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),a&&(u.segmentFlags=new Int8Array(c,f,e),u.segmentFlags.fill(1),f+=u.segmentFlags.byteLength),u}function _(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},a,i){n[a]=4,r[a]=i;const[o,[u,h],c,f,l,m,x]=e.a;let p=4;f||(p|=1),c||(p|=2);const M=(0,g.SW)(t,e),[y,d]=(0,g.Uk)(M,.5);return s[i++]=p,s[i++]=m,s[i++]=x,s[i++]=l,s[i++]=u,s[i++]=h,s[i++]=M.u2-M.u1,s[i++]=M.u1,s[i++]=y,s[i++]=d,i}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},a,i){n[a]=4,r[a]=i;const o=(0,m.io)(t,e);return N(o,4,...(0,h.mq)(o,.5),s,i)}function Y(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},a,i){return n[a]=4,r[a]=i,N((0,c.pM)(t,e),0,...e.c[1],s,i)}function N(t,e,n,r,s,a){const{cx:i,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[a++]=e,s[a++]=c,s[a++]=1,s[a++]=0,s[a++]=i,s[a++]=o,s[a++]=h-u,s[a++]=u,s[a++]=n,s[a++]=r,a}function F(t,{b:[e,[n,r],[s,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:u},h,c){return i[h]=2,o[h]=c,u[c++]=n,u[c++]=r,u[c++]=s,u[c++]=a,c}const T=1.61803,X=-1},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>M,fromPoint:()=>y,fromPolygon:()=>d,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>b,toGeometry:()=>P,toMultipoint:()=>I,toPoint:()=>V,toPolygon:()=>A,toPolyline:()=>Z});var r=n(83661),s=(n(79187),n(55537)),a=n(95213),i=n(88885),o=n(5443),u=n(48526),h=n(86738),c=n(39829),f=n(82799),l=(n(90293),n(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return y(t);case"multipoint":return M(t);case"polyline":return v(t);case"polygon":return d(t);case"extent":return p(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function p(t){if(!t.getCacheValue(m)){const e=new a.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const e=new i.M,n=new a.P,r=t.points,s=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,a=r.length;t<a;t++){const a=r[t];n.setXYCoords(a[0],a[1]),o&&n.setZ(a[2]??0),s&&n.setM(a[u]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,a=(0,l.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,a=(0,l.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,a=(0,l.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function E(t){return t.cache?(t.cache[m]??=(0,l.fromSpatialReference)(t),t.cache[m]):(0,l.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return V(t,e);case s.G.enumEnvelope:return b(t,e);case s.G.enumMultiPoint:return I(t,e);case s.G.enumPolyline:return Z(t,e);case s.G.enumPolygon:return A(t,e)}return null}function b(t,e){if(t.isEmpty())return null;const n=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function I(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],o=new a.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,o);const n=[o.getX(),o.getY()];s&&n.push(o.getZ()),r&&n.push(o.getM()),i.push(n)}const h=new u.A({hasM:r,hasZ:s,points:i,spatialReference:e});return h.setCacheValue(m,t),h}function V(t,e){if(t instanceof r.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function A(t,e){if(t.isEmpty())return null;const n=c.A.fromJSON({...(0,l.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function Z(t,e){if(t.isEmpty())return null;const n=f.A.fromJSON({...(0,l.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>o,jh:()=>a,l5:()=>i});var r=n(34275),s=n(9093);function a(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function i(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function o(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>d,DC:()=>f,Ej:()=>m,Ie:()=>M,Jt:()=>y,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>i,gE:()=>u,hZ:()=>p,iT:()=>l,is:()=>v,qv:()=>E,vI:()=>x,vY:()=>o,v_:()=>P,vt:()=>a,w1:()=>h}),n(35522);var r=n(5443),s=(n(19419),n(4197));function a(t=P){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,s,i,o=a()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o[4]=s,o[5]=i,o}function o(t,e=a()){return function(t,e,n,r=a()){return p(r,E),function(t,e,n=0,r=e.length/3){let s=t[0],a=t[1],i=t[2],o=t[3],u=t[4],h=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),a=Math.min(a,e[n+3*t+1]),i=Math.min(i,e[n+3*t+2]),o=Math.max(o,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=s,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,a,i,o,u]=t;return e[0]=n,e[1]=r,e[2]=a,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=o,e[8]=a,e[9]=n,e[10]=o,e[11]=u,e[12]=i,e[13]=r,e[14]=a,e[15]=i,e[16]=r,e[17]=u,e[18]=i,e[19]=o,e[20]=a,e[21]=i,e[22]=o,e[23]=u,e}function h(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function x(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function p(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}function M(t){return t?p(t,E):a(E)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function d(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!v(t)||!v(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],P=[0,0,0,0,0,0];a()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const a=n-t,i=r-e;return new s([5],[t,e,a,0,0,i,-a,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],a=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),o=this.coords[n],u=this.coords[n+1];t+=-.5*(o-s)*(u+a),s=o,a=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,a=this.coords.slice(0,r*n);return t?(t.set(a),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(a),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
|