@arcgis/core 5.2.0-next.75 → 5.2.0-next.76
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/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/013c9cc198736a72f7f2.js +1 -0
- package/assets/esri/core/workers/chunks/0194244a3f437ad74045.js +1 -0
- package/assets/esri/core/workers/chunks/{4dcd4a052b40047a9230.js → 08cac27df6c216ae1995.js} +1 -1
- package/assets/esri/core/workers/chunks/08ec5461af74356e7570.js +1 -0
- package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +1 -0
- package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +1 -0
- package/assets/esri/core/workers/chunks/{5e1d84e97de0e662aaa9.js → 1142f8e9c80207d6bdae.js} +1 -1
- package/assets/esri/core/workers/chunks/16929524565a677db4dc.js +1 -0
- package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +1 -0
- package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +1 -0
- package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +1 -0
- package/assets/esri/core/workers/chunks/1ef28d4457c8c943ad19.js +1 -0
- package/assets/esri/core/workers/chunks/{2b93888e61ca638490cf.js → 20b54e7872d967f3be32.js} +1 -1
- package/assets/esri/core/workers/chunks/{5f31b375971ab067121e.js → 21f763694a41968ac21a.js} +1 -1
- package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +1 -0
- package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +1 -0
- package/assets/esri/core/workers/chunks/270ed3070d118edb3f37.js +1 -0
- package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +1 -0
- package/assets/esri/core/workers/chunks/315031323e11a18154e3.js +1 -0
- package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +1 -0
- package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +1 -0
- package/assets/esri/core/workers/chunks/{99e3aa4832ed87474ab4.js → 44857a76be2c0ac65bb9.js} +1 -1
- package/assets/esri/core/workers/chunks/{3e2b4e734aa20a308f3e.js → 46e56fac44e0fd26ba1d.js} +1 -1
- package/assets/esri/core/workers/chunks/{4491dc227c28e2ab4f8e.js → 484b251fbcbffcb58323.js} +1 -1
- package/assets/esri/core/workers/chunks/48e2d0bfb62e1f4f2ad9.js +1 -0
- package/assets/esri/core/workers/chunks/4945d6b0ca1812864185.js +1 -0
- package/assets/esri/core/workers/chunks/{7f2f2a92dce3f68e579b.js → 4b54444c04fbd6f42c18.js} +1 -1
- package/assets/esri/core/workers/chunks/4c82f5f23004f905a18f.js +1 -0
- package/assets/esri/core/workers/chunks/4f8ce5887102971bfa34.js +2 -0
- package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js → 532e3a59888e4cc13bd3.js} +2 -2
- package/assets/esri/core/workers/chunks/53eed0941a39b56cc034.js +1 -0
- package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +1 -0
- package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +1 -0
- package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +1 -0
- package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +1 -0
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +1 -0
- package/assets/esri/core/workers/chunks/5fd2aa0be03dfb494efa.js +1 -0
- package/assets/esri/core/workers/chunks/619aa1381296172ff47b.js +1 -0
- package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +1 -0
- package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +1 -0
- package/assets/esri/core/workers/chunks/680dd7b7638465eb33de.js +1 -0
- package/assets/esri/core/workers/chunks/6c740c411b085d2d08c4.js +1 -0
- package/assets/esri/core/workers/chunks/{b14961a9f1f40028f141.js → 6c982779d6d47ec99899.js} +1 -1
- package/assets/esri/core/workers/chunks/{0eb35e09765fd74eb698.js → 6e45ecf359bce3417f5d.js} +1 -1
- package/assets/esri/core/workers/chunks/{a52c88e2d837b525ff6c.js → 71ee7c51d2c60a180f1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js → 755b2d883fba90c4e688.js} +2 -2
- package/assets/esri/core/workers/chunks/{6b783f440c4a5d36e879.js → 75fc0b1db8e2e3fd2458.js} +1 -1
- package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +1 -0
- package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +1 -0
- package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +1 -0
- package/assets/esri/core/workers/chunks/83e54166ba634ec2bd89.js +1717 -0
- package/assets/esri/core/workers/chunks/87eaed6fdabd482d142e.js +1 -0
- package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +1 -0
- package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +1 -0
- package/assets/esri/core/workers/chunks/{67f54586156d1ab80257.js → 8b980c6b92cc4ea68ede.js} +1 -1
- package/assets/esri/core/workers/chunks/{4046bd65d7d0677f4600.js → 8d9a7fa14489897780d3.js} +1 -1
- package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +1 -0
- package/assets/esri/core/workers/chunks/9199300ffd225a1bbef1.js +1 -0
- package/assets/esri/core/workers/chunks/{5ba3a30b7cbfa9e3aa62.js → 94b9a61b4dbb83425a78.js} +1 -1
- package/assets/esri/core/workers/chunks/98613fded899c59f34a4.js +1 -0
- package/assets/esri/core/workers/chunks/{6743d726e45e7b660505.js → 9c3e6325dc60bcaf44d7.js} +1 -1
- package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +1 -0
- package/assets/esri/core/workers/chunks/{7a24cc0f3b4eff2bdb8e.js → 9e2e4d197a7a57c2a691.js} +1 -1
- package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js → a014c17fc210620da738.js} +2 -2
- package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js → a19be304219808268039.js} +2 -2
- package/assets/esri/core/workers/chunks/{53d165b4f30fd64e5d8a.js → a4e4fa4dd1a122bbf7cd.js} +1 -1
- package/assets/esri/core/workers/chunks/a5240c8a47842138f31f.js +1 -0
- package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +1 -0
- package/assets/esri/core/workers/chunks/a7727a2377470d586ff9.js +1 -0
- package/assets/esri/core/workers/chunks/a91c1d782346a9c7e1ef.js +1 -0
- package/assets/esri/core/workers/chunks/{6cd6d0cfd313f0475d98.js → ac59218847e5ef4c4160.js} +1 -1
- package/assets/esri/core/workers/chunks/ac87be2210f868524996.js +1 -0
- package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +1 -0
- package/assets/esri/core/workers/chunks/{43713bc6f7eea07259d0.js → b084829a3fd709dc47a8.js} +1 -1
- package/assets/esri/core/workers/chunks/{05f6887805d92da03122.js → b24fc7eeda580ef020d2.js} +1 -1
- package/assets/esri/core/workers/chunks/b37a20c5c4a4686257d4.js +1 -0
- package/assets/esri/core/workers/chunks/{43a65cab888d43954564.js → b4abf82b8ac974a55ae1.js} +1 -1
- package/assets/esri/core/workers/chunks/b950ddafba8125c84a5b.js +1 -0
- package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +1 -0
- package/assets/esri/core/workers/chunks/{0d3b2d9a19383bb63f0a.js → bad2c7219e95750906e1.js} +1 -1
- package/assets/esri/core/workers/chunks/bbc6b270d2032189107c.js +1 -0
- package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +1 -0
- package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +1 -0
- package/assets/esri/core/workers/chunks/{1c49c9472167a2e0c923.js → c17dda6fadb8bfad0d51.js} +1 -1
- package/assets/esri/core/workers/chunks/c1e5ffe9a251be5a0744.js +1 -0
- package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +1 -0
- package/assets/esri/core/workers/chunks/{762be5d3e6aeaea33f74.js → cef02ed3942c010da2e8.js} +1 -1
- package/assets/esri/core/workers/chunks/d520d407043bc52e5410.js +1 -0
- package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +1 -0
- package/assets/esri/core/workers/chunks/dbdd96e558936955acdb.js +1 -0
- package/assets/esri/core/workers/chunks/de927b1460bc384f5b87.js +1 -0
- package/assets/esri/core/workers/chunks/de9a1cce70581920f248.js +1 -0
- package/assets/esri/core/workers/chunks/dff932682d6386a861ce.js +1 -0
- package/assets/esri/core/workers/chunks/{2c31648a4b95275516ee.js → e227eb44cd139fe2bc1b.js} +1 -1
- package/assets/esri/core/workers/chunks/e4e5a171a4874c5af4a4.js +1 -0
- package/assets/esri/core/workers/chunks/{ddb92c815d17c67a45e6.js → e5d114f2b57d2b8e2f1c.js} +1 -1
- package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +1 -0
- package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +1 -0
- package/assets/esri/core/workers/chunks/{3de6e54b6ed0feae1940.js → eae51e827f629ab37207.js} +1 -1
- package/assets/esri/core/workers/chunks/eee1fd629619021ea279.js +1 -0
- package/assets/esri/core/workers/chunks/{b6cd165d0e58598f28a5.js → ef47a5da641cb0d33fdf.js} +1 -1
- package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +1 -0
- package/assets/esri/core/workers/chunks/{3dff36f6de181d9dcdc5.js → f40e4433e7608d0962a6.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1c7c877edc6948f3801.js → f4aa6e90200f61e623e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{36ec5b84e551ab08b24a.js → ff578f0ca68d652fece5.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
- package/chunks/HeatmapDensity.glsl.js +5 -5
- package/chunks/bundle2.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/config.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/support/centroid.js +1 -1
- package/geometry/support/extentUtils.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/package.json +2 -2
- package/support/revision.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectCircularSector.js +1 -1
- package/views/2d/engine/BitmapTile.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/imagery/RasterTile.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/RenderingDevice.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/animations/infos.js +1 -1
- package/views/2d/engine/webgl/animations/instructions.js +1 -1
- package/views/2d/engine/webgl/normalizedTileUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/Tile.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/types.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/uniformBufferUtils.js +2 -0
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/support/DisplayGL.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/DrapedZ.js +2 -0
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
- package/views/3d/webgl-engine/lib/PositionReader.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFields.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/UniformBufferLayout.js +1 -1
- package/views/webgl/UniformBufferObject.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +20 -6
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.d.ts +100 -0
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js +2 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
- package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +0 -1
- package/assets/esri/core/workers/chunks/0823961e5d0bdedbf8cf.js +0 -2
- package/assets/esri/core/workers/chunks/0aedeb837399d3f92e4a.js +0 -1
- package/assets/esri/core/workers/chunks/0bf644f93c180a2bc2f8.js +0 -705
- package/assets/esri/core/workers/chunks/0daaa89de339e8ea4b81.js +0 -1
- package/assets/esri/core/workers/chunks/1119a33245138e7b3914.js +0 -1
- package/assets/esri/core/workers/chunks/12234a63d3fa4bc25e7e.js +0 -1
- package/assets/esri/core/workers/chunks/1cf8fb704c48ac3d3b15.js +0 -1
- package/assets/esri/core/workers/chunks/2435ef7d11f8dbb920b7.js +0 -256
- package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +0 -1
- package/assets/esri/core/workers/chunks/27f574acf52f2c8bc2c9.js +0 -1
- package/assets/esri/core/workers/chunks/2d45daacec0d5ed38782.js +0 -1
- package/assets/esri/core/workers/chunks/2ea3ca68cfa4d34e8f3b.js +0 -1
- package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +0 -1
- package/assets/esri/core/workers/chunks/3235e14fedb19dd94807.js +0 -1
- package/assets/esri/core/workers/chunks/32f5112c848efec6c33b.js +0 -1
- package/assets/esri/core/workers/chunks/3bc2943035391b44d4cf.js +0 -29
- package/assets/esri/core/workers/chunks/3c32471785bc8570e41c.js +0 -1
- package/assets/esri/core/workers/chunks/4295822fa6ef743c76f1.js +0 -1
- package/assets/esri/core/workers/chunks/42d5ed44111bea77ec71.js +0 -1462
- package/assets/esri/core/workers/chunks/46873badbd6ce8ff4e1e.js +0 -1
- package/assets/esri/core/workers/chunks/4710f21b138a2c9a0345.js +0 -1
- package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +0 -1
- package/assets/esri/core/workers/chunks/4c2794687aea172775a0.js +0 -1
- package/assets/esri/core/workers/chunks/4d9bde9f66817a92ceca.js +0 -1
- package/assets/esri/core/workers/chunks/4fe2cca405180af23364.js +0 -1
- package/assets/esri/core/workers/chunks/519af918050b47f93516.js +0 -1
- package/assets/esri/core/workers/chunks/5600fc334d20c4f0c83d.js +0 -1
- package/assets/esri/core/workers/chunks/5627f562dea8bae2f346.js +0 -1
- package/assets/esri/core/workers/chunks/5bf4ab72b9634b06cc5d.js +0 -1
- package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +0 -1
- package/assets/esri/core/workers/chunks/6f58cb9dffe8016397a2.js +0 -1
- package/assets/esri/core/workers/chunks/6fc3553c52af6ace926d.js +0 -1
- package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +0 -1
- package/assets/esri/core/workers/chunks/7dc5aedc964eacd1be5a.js +0 -1
- package/assets/esri/core/workers/chunks/7f91e45156bbe88f9a62.js +0 -1
- package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +0 -1
- package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +0 -1
- package/assets/esri/core/workers/chunks/903e1cd8b76eff19ebdf.js +0 -1
- package/assets/esri/core/workers/chunks/917c11cb40a7742d7f98.js +0 -1
- package/assets/esri/core/workers/chunks/91d133c04ca764d74934.js +0 -1
- package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +0 -1
- package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +0 -1
- package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
- package/assets/esri/core/workers/chunks/96cec8a02ca96175d602.js +0 -1
- package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +0 -1
- package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +0 -1
- package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +0 -1
- package/assets/esri/core/workers/chunks/9cff18e6f751d1b3085e.js +0 -1
- package/assets/esri/core/workers/chunks/a101152066dd56259619.js +0 -1
- package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +0 -1
- package/assets/esri/core/workers/chunks/a3bf8aa81ee398da5b52.js +0 -1
- package/assets/esri/core/workers/chunks/a7a7d3289d4ca95f545f.js +0 -1
- package/assets/esri/core/workers/chunks/abb6c76d5dba3559a68e.js +0 -1
- package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +0 -1
- package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +0 -1
- package/assets/esri/core/workers/chunks/b78f509fd8e95f728178.js +0 -1
- package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +0 -1
- package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +0 -1
- package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +0 -1
- package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
- package/assets/esri/core/workers/chunks/c53b2be005721591e29b.js +0 -1
- package/assets/esri/core/workers/chunks/c82ab4f0908290e70ee9.js +0 -1
- package/assets/esri/core/workers/chunks/cc5ec6e99aa09342c704.js +0 -1
- package/assets/esri/core/workers/chunks/cd892c9603710d6130a9.js +0 -1
- package/assets/esri/core/workers/chunks/d021775cf747556660a5.js +0 -1
- package/assets/esri/core/workers/chunks/d633e98b0dfa0490e4de.js +0 -1
- package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +0 -1
- package/assets/esri/core/workers/chunks/d8eca13c127b443141b7.js +0 -1
- package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +0 -1
- package/assets/esri/core/workers/chunks/eb1a86159dbc098f06fe.js +0 -1
- package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +0 -1
- package/assets/esri/core/workers/chunks/ed1de8b7406269e217b9.js +0 -29
- package/assets/esri/core/workers/chunks/ee9eb381e675d2d01260.js +0 -1
- package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +0 -1
- package/assets/esri/core/workers/chunks/f43a0edf58941e2ac78e.js +0 -1
- package/assets/esri/core/workers/chunks/f78acff510ca615d42e4.js +0 -1
- package/assets/esri/core/workers/chunks/f7a5c4d22a24e1ac433c.js +0 -1
- package/chunks/geometryEngineBase.js +0 -2
- package/geometry/geometryAdapters/json.js +0 -2
- package/geometry/geometryEngineJSON.js +0 -2
- /package/assets/esri/core/workers/chunks/{0823961e5d0bdedbf8cf.js.LICENSE.txt → 4f8ce5887102971bfa34.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js.LICENSE.txt → 532e3a59888e4cc13bd3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js.LICENSE.txt → 755b2d883fba90c4e688.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js.LICENSE.txt → a014c17fc210620da738.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js.LICENSE.txt → a19be304219808268039.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4801],{48163(t,e,r){function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(-1,-1)}function c(){return i(1,0)}function f(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>s,vt:()=>n});const a=u(),h=o(),l=c(),d=f();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:a,UNIT_X:l,UNIT_Y:d,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:o,ones:u,unitX:c,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,h,"Un",0,a])},51850(t,e,r){function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function c(){return i(1,1,1)}function f(){return i(1,0,0)}function a(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(e,{CN:()=>u,ci:()=>o,fA:()=>i,o8:()=>s,vt:()=>n});const l=[0,0,0],d=c(),p=f(),y=a(),m=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:m,ZEROS:l,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:c,unitX:f,unitY:a,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Cb",0,m,"Cw",0,p,"JP",0,y,"Un",0,d,"uY",0,l])},91829(t,e,r){function n(){return[0,0,0,0]}function s(t,e,r,n){return[t,e,r,n]}function i(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function o(){return s(0,1,0,0)}function c(){return s(0,0,1,0)}function f(){return s(0,0,0,1)}r.d(e,{_Y:()=>f,fA:()=>s,vt:()=>n});const a=[0,0,0,0],h=i(),l=u(),d=o(),p=c(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:y,UNIT_X:l,UNIT_Y:d,UNIT_Z:p,ZEROS:a,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){const r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:s,ones:i,unitW:f,unitX:u,unitY:o,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,h,"uY",0,a])},34304(t,e,r){r.d(e,{DF:()=>c,FD:()=>s,ct:()=>f});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function c(t){return t*u}function f(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:f,toRadian:c},Symbol.toStringTag,{value:"Module"})),r.d(e,["Ov",0,i])},37585(t,e,r){r.d(e,{C:()=>i,Cc:()=>S,Io:()=>m,LI:()=>d,Ln:()=>y,Om:()=>M,Re:()=>c,S8:()=>T,T9:()=>h,WQ:()=>o,aI:()=>I,e$:()=>A,hG:()=>E,hZ:()=>u,hs:()=>p,l0:()=>g,qE:()=>l,t2:()=>b});var n=r(34727),s=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function c(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function f(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function a(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function h(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function l(t,e,r,s){return t[0]=(0,n.qE)(e[0],r[0],s[0]),t[1]=(0,n.qE)(e[1],r[1],s[1]),t}function d(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function p(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function y(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function m(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function E(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function B(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function _(t){const e=t[0],r=t[1];return e*e+r*r}function T(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function M(t,e){return t[0]*e[0]+t[1]*e[1]}function S(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function g(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function A(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]}function I(t,e){const r=t[0],n=t[1],i=e[0],u=e[1],o=(0,s.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-u)<=o*Math.max(1,Math.abs(n),Math.abs(u))}const R=B,w=c,N=f,v=a,x=m,C=E,O=_;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const c=(r*s+n*i)*u*o;return c>1?0:c<-1?Math.PI:Math.acos(c)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},clamp:l,copy:i,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:x,distance:m,div:v,divide:a,dot:M,equals:I,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:R,length:B,lerp:S,max:h,min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:N,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:T,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,s.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:A,round:d,scale:p,scaleAndAdd:y,set:u,sqrDist:C,sqrLen:O,squaredDistance:E,squaredLength:_,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:w,subtract:c,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:g,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,R,"jb",0,w,"xg",0,x])},35522(t,e,r){r.d(e,{$A:()=>b,Bw:()=>i,C:()=>u,Cc:()=>I,DI:()=>S,Io:()=>B,Ln:()=>E,Om:()=>A,Qr:()=>h,Re:()=>f,S8:()=>g,T9:()=>y,WQ:()=>c,Z0:()=>R,_S:()=>d,aI:()=>U,ei:()=>w,fw:()=>v,gL:()=>N,hG:()=>_,hZ:()=>o,hs:()=>m,jk:()=>p,lw:()=>a,m3:()=>T,oW:()=>F,t2:()=>O,tn:()=>l,ze:()=>M});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function c(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function h(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[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 d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function E(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function _(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function T(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function g(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2];return t[0]=s*c-i*o,t[1]=i*u-n*c,t[2]=n*o-s*u,t}function I(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function R(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function w(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function N(t,e,r){return v(t,e,r[0],r[1],r[2],r[3])}function v(t,e,r,n,s,i){const u=e[0],o=e[1],c=e[2],f=n*c-s*o,a=s*u-r*c,h=r*o-n*u,l=n*h-s*a,d=s*f-r*h,p=r*a-n*f,y=2*i;return t[0]=u+f*y+2*l,t[1]=o+a*y+2*d,t[2]=c+h*y+2*p,t}const x=(0,n.vt)(),C=(0,n.vt)();function O(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function U(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],c=e[2],f=(0,s.FD)();return Math.abs(r-u)<=f*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=f*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-c)<=f*Math.max(1,Math.abs(i),Math.abs(c))}function F(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=f,G=a,P=h,D=B,q=_,Y=i,V=T;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,e){g(x,t),g(C,e);const r=A(x,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,c=i*i,f=o*u,a=3*i*o,h=3*c*u,l=c*i;return t[0]=e[0]*f+r[0]*a+n[0]*h+s[0]*l,t[1]=e[1]*f+r[1]*a+n[1]*h+s[1]*l,t[2]=e[2]*f+r[2]*a+n[2]*h+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,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:b,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2],f=s*c-i*o,a=i*u-n*c,h=n*o-s*u,l=Math.sqrt(f*f+a*a+h*h);return t[0]=f/l,t[1]=a/l,t[2]=h/l,t},direction:F,dist:D,distance:B,div:P,divide:h,dot:A,equals:U,exactEquals:O,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,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,c=u*(i-2)+i,f=u*(i-1),a=u*(3-2*i);return t[0]=e[0]*o+r[0]*c+n[0]*f+s[0]*a,t[1]=e[1]*o+r[1]*c+n[1]*f+s[1]*a,t[2]=e[2]*o+r[2]*c+n[2]*f+s[2]*a,t},inverse:S,len:Y,length:i,lerp:I,max:y,min:p,mul:G,multiply:a,negate:M,normalize:g,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[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:m,scaleAndAdd:E,set:o,sign:d,sqrDist:q,sqrLen:V,squaredDistance:_,squaredLength:T,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:f,transformMat3:w,transformMat4:R,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:N,transformQuatValues:v},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,Y,"jb",0,L,"lo",0,q,"uE",0,V,"xg",0,D])},78955(t,e,r){r.d(e,{Bw:()=>m,C:()=>s,Cc:()=>T,LI:()=>l,Om:()=>_,S8:()=>B,T9:()=>h,WQ:()=>u,Z0:()=>M,aI:()=>g,hG:()=>y,hZ:()=>i,hs:()=>d,jk:()=>a,m3:()=>E,t2:()=>S});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function a(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function h(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function l(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function d(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function p(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(r*r+n*n+s*s+i*i)}function y(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return r*r+n*n+s*s+i*i}function m(t){const e=t[0],r=t[1],n=t[2],s=t[3];return Math.sqrt(e*e+r*r+n*n+s*s)}function E(t){const e=t[0],r=t[1],n=t[2],s=t[3];return e*e+r*r+n*n+s*s}function B(t,e){const r=e[0],n=e[1],s=e[2],i=e[3];let u=r*r+n*n+s*s+i*i;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=n*u,t[2]=s*u,t[3]=i*u),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function T(t,e,r,n){const s=e[0],i=e[1],u=e[2],o=e[3];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t[3]=o+n*(r[3]-o),t}function M(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12]*u,t[1]=r[1]*n+r[5]*s+r[9]*i+r[13]*u,t[2]=r[2]*n+r[6]*s+r[10]*i+r[14]*u,t[3]=r[3]*n+r[7]*s+r[11]*i+r[15]*u,t}function S(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function g(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=e[0],c=e[1],f=e[2],a=e[3],h=(0,n.FD)();return Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=h*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(i-f)<=h*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(u-a)<=h*Math.max(1,Math.abs(u),Math.abs(a))}const A=o,b=c,I=f,R=p,w=y,N=m,v=E;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:R,distance:p,div:I,divide:f,dot:_,equals:g,exactEquals:S,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:N,length:m,lerp:T,max:h,min:a,mul:b,multiply:c,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:B,random:function(t,e=1){const r=n.Ov;let s,i,u,o,c,f;do{s=2*r()-1,i=2*r()-1,c=s*s+i*i}while(c>=1);do{u=2*r()-1,o=2*r()-1,f=u*u+o*o}while(f>=1);const a=Math.sqrt((1-c)/f);return t[0]=e*s,t[1]=e*i,t[2]=e*u*a,t[3]=e*o*a,t},round:l,scale:d,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},set:i,sqrDist:w,sqrLen:v,squaredDistance:y,squaredLength:E,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:o,transformMat4:M,transformQuat:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2],f=r[3],a=f*n+o*i-c*s,h=f*s+c*n-u*i,l=f*i+u*s-o*n,d=-u*n-o*s-c*i;return t[0]=a*f+d*-u+h*-c-l*-o,t[1]=h*f+d*-o+l*-u-a*-c,t[2]=l*f+d*-c+a*-o-h*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},97146(t,e,r){r.d(e,{Dg:()=>i,lC:()=>o,my:()=>u,tM:()=>h,uW:()=>s});var n=r(34275);function s(t){return i(t,!0)}function i(t,e){if(Array.isArray(t)){if(t.length<1024)return t}else if(t.length<1024)return Array.from(t);let r=!0,s=!0;return t.some((t,e)=>(r=r&&0===t,s=s&&t===e,!r&&!s)),r?function(t){if(1===t)return f;if(t<1024)return new Array(t).fill(0);if(t>d.length){const e=Math.max(2*d.length,t);d=new Uint8Array(e)}return new Uint8Array(d.buffer,0,t)}(t.length):s?h(t.length):(0,n.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,n.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function u(t,e=t){return t<=1024?new Array(t):e<=65536?new Uint16Array(t):new Uint32Array(t)}function o(t,e,r){if(0===e.length)return t.slice();if(0===t.length)return e.slice();const n=u(t.length+e.length,r);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}let c=l(131072);const f=[0],a=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function h(t){return 1===t?f:t<1024?Array.from(new Uint16Array(a.buffer,0,t)):t<a.length?new Uint16Array(a.buffer,0,t):(t>c.length&&(c=l(Math.max(2*c.length,t))),new Uint32Array(c.buffer,0,t))}function l(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let d=new Uint8Array(65536)},13030(t,e,r){r.d(e,{Y$:()=>B,XW:()=>E,qB:()=>N,Qt:()=>$,My:()=>K,bf:()=>H,jZ:()=>b,j0:()=>I,Sx:()=>R,E$:()=>w,Qy:()=>it,h:()=>G,P:()=>Y,SL:()=>O,dy:()=>nt,ES:()=>ut,gH:()=>T,ZD:()=>_,si:()=>v,mJ:()=>k,UL:()=>tt,D6:()=>j,Yi:()=>P,An:()=>V,LC:()=>U,xs:()=>S,EC:()=>M,Xm:()=>x,Vp:()=>Q,zD:()=>et,m8:()=>Z,nS:()=>D,H$:()=>z,eI:()=>F,td:()=>st,Eq:()=>A,jz:()=>g,Aj:()=>C,E7:()=>J,Y4:()=>rt,TX:()=>W,Uz:()=>q,ml:()=>X,XP:()=>L});var n=r(34727),s=r(37585),i=r(48163),u=r(78955),o=r(91829),c=r(20498);class f{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class a{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,s.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var d=r(35522);class p{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,d.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}class y{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,u.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var m=r(620);class E extends h{constructor(t,e=0,r,n){(0,m.vA)(c.SX),super((0,c.pX)(),t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class B extends h{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class _ extends l{constructor(t,e=0,r,n){(0,m.vA)(c.SX),super((0,c.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f16"}}class T extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f32"}}class M extends p{constructor(t,e=0,r,n){(0,m.vA)(c.SX),super((0,c.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f16"}}class S extends p{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static fromTypedArray(t,e){return new S(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class g extends y{constructor(t,e=0,r,n){(0,m.vA)(c.SX),super((0,c.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f16"}}class A extends y{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f32"}}class b extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f32"}}class I extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="f64"}}class R extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f32"}}class w extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="f64"}}class N extends h{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class v extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f64"}}class x extends p{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(x,t,e)}static fromTypedArray(t,e){return new x(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class C extends y{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class O extends h{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u8"}}class U extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u8"}}class F extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(F,t,e)}static fromTypedArray(t,e){return new F(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class L extends y{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u8"}}class G extends h{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u16"}}class P extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u16"}}class D extends p{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u16"}}class q extends y{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u16"}}class Y extends h{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u32"}}class V extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u32"}}class z extends p{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class X extends y{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="u32"}}class H extends h{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i8"}}class j extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i8"}}class Z extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i8"}}class W extends y{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i8"}}class $ extends h{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class k extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i16"}}class Q extends p{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i16"}}class J extends y{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i16"}}class K extends h{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}class tt extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends p{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class rt extends y{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(rt,t,e)}static{this.ElementType="i32"}}class nt extends O{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,n.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(nt,t,e)}}class st extends L{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,u.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,u.jk)(ct,(0,u.T9)(ct,e,o.uY),o.Un),(0,u.hs)(ct,ct,255),(0,u.LI)(ct,ct),super.setVec(t,ct)}get(t,e){return super.get(t,e)/255}set(t,e,r){super.set(t,e,Math.round(255*(0,n.qE)(r,0,1)))}setValues(t,e,r,n,s){(0,u.hZ)(ct,e,r,n,s),this.setVec(t,ct)}slice(t,e){return this.sliceBuffer(st,t,e)}}class it extends ${constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return Math.max(super.get(t)/32767,-1)}set(t,e){super.set(t,Math.round(32767*(0,n.qE)(e,-1,1)))}slice(t,e){return this.sliceBuffer(it,t,e)}}class ut extends k{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,s.hZ)(ot,-1,-1),(0,s.T9)(e,(0,s.hs)(e,super.getVec(t,e),1/32767),ot)}setVec(t,e){(0,s.qE)(ot,e,i.IA,i.Un),(0,s.hs)(ot,ot,32767),(0,s.LI)(ot,ot),super.setVec(t,ot)}get(t,e){return Math.max(super.get(t,e)/32767,-1)}set(t,e,r){super.set(t,e,Math.round(32767*(0,n.qE)(r,-1,1)))}setValues(t,e,r){(0,s.hZ)(ot,e,r),this.setVec(t,ot)}slice(t,e){return this.sliceBuffer(ut,t,e)}}const ot=(0,i.vt)(),ct=(0,o.vt)()},90239(t,e,r){function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},20498(t,e,r){r.d(e,{SX:()=>i,pX:()=>s});let n=globalThis.Float16Array;function s(){return n}let i=!!n},1843(t,e,r){r.d(e,{BP:()=>h,l5:()=>l});var n=r(20498),s=r(13030),i=r(90239),u=r(4431),o=r(620),c=r(85079);class f{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,r+n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new f(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get usedMemory(){return this.byteLength}dispose(){}}class a{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:y(t[1].constructor)})))}freeze(){return this}get locations(){return(0,c.Xk)((0,u.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?s.ZD:s.gH,e),this}vec2f(t,e){return this._appendField(t,s.gH,e),this}vec2f64(t,e){return this._appendField(t,s.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?s.EC:s.xs,e),this}vec3f(t,e){return this._appendField(t,s.xs,e),this}vec3f64(t,e){return this._appendField(t,s.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?s.jz:s.Eq,e),this}vec4f(t,e){return this._appendField(t,s.Eq,e),this}vec4f64(t,e){return this._appendField(t,s.Aj,e),this}mat3f(t,e){return this._appendField(t,s.jZ,e),this}mat3f64(t,e){return this._appendField(t,s.j0,e),this}mat4f(t,e){return this._appendField(t,s.Sx,e),this}mat4f64(t,e){return this._appendField(t,s.E$,e),this}vec4u8(t,e){return this._appendField(t,s.XP,e),this}f16(t,e){return this._appendField(t,n.SX?s.XW:s.Y$,e),this}f32(t,e){return this._appendField(t,s.Y$,e),this}f64(t,e){return this._appendField(t,s.qB,e),this}u8(t,e){return this._appendField(t,s.SL,e),this}u16(t,e){return this._appendField(t,s.h,e),this}i8(t,e){return this._appendField(t,s.bf,e),this}vec2i8(t,e){return this._appendField(t,s.D6,e),this}vec2i16(t,e){return this._appendField(t,s.mJ,e),this}vec2u8(t,e){return this._appendField(t,s.LC,e),this}vec2u16(t,e){return this._appendField(t,s.Yi,e),this}vec4u16(t,e){return this._appendField(t,s.Uz,e),this}vec4i16(t,e){return this._appendField(t,s.E7,e),this}u32(t,e){return this._appendField(t,s.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,o.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,i.GJ)(e.ElementType),s=this._stride;this._fields.set(t,{constructor:e,size:n,offset:s,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,i.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new f(this,t)}createView(t,e){return new f(this,t,e)}clone(){const t=new a;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function h(){return new a}class l{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:p(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function p(t){return`${t.ElementType}_${t.ElementCount}`}function y(t){return m.get(t)}const m=new Map;d.forEach(t=>m.set(p(t),t))},4431(t,e,r){r.d(e,{U:()=>i});var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return t.fields.entries().map(([t,i])=>{const u=i.constructor.ElementCount,o=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(i.constructor.ElementType),c=i.offset,f=i.optional?.glNormalized??!1,a=i.optional?.integer??!1;return new s._(t,u,o,c,r,f,e,a)}).toArray()}},10614(t,e,r){r.d(e,{Tz:()=>u,aT:()=>i});var n=r(34727),s=r(35522);function i(t,e,r,n,s,i=2,u=0){const c=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),f=r*c,a=n*c,h=s<=0?(f>=0?1:-1)*(1-Math.abs(a)):f,l=s<=0?(a>=0?1:-1)*(1-Math.abs(f)):a,d=e*i+u;t[d]=o(h),t[d+1]=o(l)}function u(t,e,r,n=2,i=0){const u=r*n+i,o=c(e[u]),f=c(e[u+1]),a=1-Math.abs(o)-Math.abs(f);return t[2]=a,a<0?(t[0]=(o>=0?1:-1)*(1-Math.abs(f)),t[1]=(f>=0?1:-1)*(1-Math.abs(o))):(t[0]=o,t[1]=f),(0,s.S8)(t,t)}function o(t){return(0,n.qE)(Math.round(32767*t),-32767,32767)}function c(t){return(0,n.qE)(t/32767,-1,1)}r(51850)},620(t,e,r){r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(78955),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],c=(n[1]-t[1])/e[1];if(o>c&&(s=o,o=c,c=s),i>c||o>u)return!1;o>i&&(i=o),c<u&&(u=c);let f=(r[2]-t[2])/e[2],a=(n[2]-t[2])/e[2];return f>a&&(s=f,f=a,a=s),!(i>a||f>u||(a<u&&(u=a),u<0))}},99058(t,e,r){r.d(e,{I$:()=>B,gr:()=>M,In:()=>S});var n=r(4431),s=r(1843),i=r(63907);class u{constructor(t){this.internalFormat=t,this.channelByteStride=4,this.dataType=i.ld.UNSIGNED_INT,this.elementArrayConstructor=Uint32Array,this.pixelFormat=c[t],this.channels=o[this.pixelFormat],this.byteStride=this.channelByteStride*this.channels}}const o={36244:1,33320:2,36249:4},c={[i.H0.R32UI]:36244,[i.H0.RG32UI]:33320,[i.H0.RGBA32UI]:36249},f=[new u(i.H0.RGBA32UI),new u(i.H0.RG32UI),new u(i.H0.R32UI)];function a(t){let e=1/0,r=null;for(const n of f){const s=n.byteStride,i=(s-t%s)%s;i<e&&(e=i,r=n)}return r??f[2]}var h=r(20498),l=r(13030),d=r(90239);class p{constructor(t,e,r){this.elementCount=t,this.elementType=e,this.bufferViewConstructor=r,this.byteSize=function(t){return(0,d.GJ)(t.ElementType)*t.ElementCount}(r)}}const y={u8:new p(1,"uint",l.SL),u32:new p(1,"uint",l.P),vec4u32:new p(4,"uint",l.ml),vec4u8:new p(4,"uint",l.XP),unorm8:new p(1,"float",l.dy),vec4unorm8:new p(4,"float",l.td),snorm16:new p(1,"float",l.Qy),vec2snorm16:new p(2,"float",l.ES),f16:new p(1,"float",h.SX?l.XW:l.Y$),vec4f16:new p(4,"float",h.SX?l.jz:l.Eq),f32:new p(1,"float",l.Y$),vec2f32:new p(2,"float",l.gH),vec3f32:new p(3,"float",l.xs),vec4f32:new p(4,"float",l.Eq),mat3f32:new p(9,"float",l.jZ)};class m{constructor(t,e,r,n){this._declaration=t,this._byteOffset=e,this._creationInfo=n,this._startTexel=Math.floor(e/r);const s=n.byteSize;this._numTexels=Math.ceil((e+s)/r)-this._startTexel,this._texelByteStride=r}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class E{constructor(t,e,r,n=0){this.layout=t,this.byteOffset=n,this._bufferViews=new Map,this.buffer="number"==typeof e?new ArrayBuffer(e*t.byteStride):e,this.texelElementBuffer=new r(this.buffer,n);const s=this._bufferViews;for(const[t,e]of this.layout.fields)s.set(t,new e.bufferViewConstructor(this.buffer,n+e.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this._bufferViews.get(t);return null!=r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}copyItem(t,e){const{buffer:r,layout:n,byteOffset:s}=this,i=new Uint8Array(r),u=n.byteStride,o=s+t*u,c=s+e*u;i.copyWithin(c,o,o+u)}get usedMemory(){return this.byteLength}}const B=(0,s.BP)().vec3f("position").u16("componentIndex",{integer:!0}).freeze(),_=(0,s.BP)().vec2u8("sideness").freeze(),T=(0,n.U)(_),M=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),S=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),g=(0,n.U)(M,1),A=(0,n.U)(S,1);T.concat(g),T.concat(A),new class{constructor(t){this._fields=new Map;let e=0;const r=[];for(let n=0;n<t.length;++n){const s=t[n],{type:i}=s,u=y[i];r.push({declaration:s,byteOffset:e,creationInfo:u}),e+=u.byteSize}this.texelFormatInfo=a(e);const{texelByteStride:n}=this;e=Math.ceil(e/n)*n;const s=e,i=this._fields;for(const{declaration:t,byteOffset:e,creationInfo:s}of r)i.set(t.name,new m(t,e,n,s));this.byteStride=s,this.texelStride=Math.ceil(s/n)}get texelByteStride(){return this.texelFormatInfo.byteStride}get texelElementArrayConstructor(){return this.texelFormatInfo.elementArrayConstructor}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(t){return new E(this,t,this.texelElementArrayConstructor)}createView(t,e){return new E(this,t,this.texelElementArrayConstructor,e)}}([{name:"color",type:"vec4unorm8"},{name:"lineWidth",type:"u8"},{name:"extensionLength",type:"u8"},{name:"materialType",type:"u8"},{name:"opacity",type:"unorm8"},{name:"elevationOffset",type:"f32"}])},93406(t,e,r){r.d(e,{K:()=>o});var n=r(34727),s=r(15142),i=r(35522),u=r(51850);function o(t,e,r){const n=t.vertices.position,s=t.vertices.componentIndex,u=p.position0,o=p.position1,a=p.faceNormal0,l=p.faceNormal1,{edges:d,normals:y}=f(t),m=d.length/4,E=e.allocate(m);let B=0;const _=m,S=r?.allocate(_);let A=0,b=0,I=0;h.length=0;for(let t=0;t<m;++t){const e=4*t;n.getVec(d.data[e],u),n.getVec(d.data[e+1],o);const r=h.pushNew();r.index=4*t,r.length=(0,i.Io)(u,o)}h.sort((t,e)=>e.length-t.length);const R=new Array,w=new Array;h.forAll(({length:t,index:f})=>{const h=d.data[f],m=d.data[f+1],_=d.data[f+2],N=d.data[f+3],v=-1===N;if(n.getVec(h,u),n.getVec(m,o),v){const t=3*_;(0,i.hZ)(a,y.data[t],y.data[t+1],y.data[t+2]),(0,i.C)(l,a),p.componentIndex=s.get(h),p.cosAngle=(0,i.Om)(a,l)}else{let t=3*_;if((0,i.hZ)(a,y.data[t],y.data[t+1],y.data[t+2]),t=3*N,(0,i.hZ)(l,y.data[t],y.data[t+1],y.data[t+2]),p.componentIndex=s.get(h),p.cosAngle=(0,i.Om)(a,l),function(t,e){return t.cosAngle>e}(p,M))return;p.cosAngle<-.9999&&(0,i.C)(l,a)}b+=t,I++,v||function(t,e){return t.cosAngle<e}(p,g)?(e.write(E,B++,p),R.push(t)):c(p,T)&&(S&&r&&r.write(S,A++,p),w.push(t))});const N=new Float32Array(R.reverse()),v=new Float32Array(w.reverse()),x=S&&r?{instancesData:S.slice(0,A),lodInfo:{lengths:v}}:void 0;return{regular:{instancesData:E.slice(0,B),lodInfo:{lengths:N}},silhouette:x,averageEdgeLength:b/I}}function c(t,e){const r=(0,n.XM)(t.cosAngle);return(0,i.oW)(m,t.position1,t.position0),r*((0,i.Om)((0,i.$A)(y,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>e}function f(t){const e=t.faces.length/3,r=t.faces,n=t.neighbors,s=t.vertices.position;l.length=d.length=0;for(let t=0;t<e;t++){const e=3*t,u=n[e],o=n[e+1],c=n[e+2],f=r[e],a=r[e+1],h=r[e+2];s.getVec(f,E),s.getVec(a,B),s.getVec(h,_),(0,i.Re)(B,B,E),(0,i.Re)(_,_,E),(0,i.$A)(E,B,_),(0,i.S8)(E,E),d.pushArray(E),(-1===u||f<a)&&(l.push(f),l.push(a),l.push(t),l.push(u)),(-1===o||a<h)&&(l.push(a),l.push(h),l.push(t),l.push(o)),(-1===c||h<f)&&(l.push(h),l.push(f),l.push(t),l.push(c))}return{edges:l,normals:d}}class a{constructor(){this.index=0,this.length=0}}const h=new s.A({allocator:t=>t||new a,deallocator:null}),l=new s.A({deallocator:null}),d=new s.A({deallocator:null}),p=new class{constructor(){this.position0=(0,u.vt)(),this.position1=(0,u.vt)(),this.faceNormal0=(0,u.vt)(),this.faceNormal1=(0,u.vt)(),this.componentIndex=0,this.cosAngle=0}},y=(0,u.vt)(),m=(0,u.vt)(),E=(0,u.vt)(),B=(0,u.vt)(),_=(0,u.vt)(),T=(0,n.kU)(4),M=Math.cos(T),S=(0,n.kU)(35),g=Math.cos(S)},44801(t,e,r){r.d(e,{o6:()=>R,HY:()=>O,hx:()=>w,Jb:()=>C});var n=r(34727),s=r(97146);function i(t,e,r){const i=Array.isArray(t),a=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,a*e),l=r?.minReduction??0,d=r?.originalIndices||null,p=d?d.length:0,y=r?.componentOffsets||null;let m=0;if(y)for(let t=0;t<y.length-1;t++){const e=y[t+1]-y[t];e>m&&(m=e)}else m=a;const E=Math.floor(1.1*m)+1;(null==f||f.length<2*E)&&(f=new Uint32Array((0,n.cU)(2*E)));for(let t=0;t<2*E;t++)f[t]=0;let B=0;const _=!!y&&!!d,T=_?p:a;let M=(0,s.my)(a);const S=new Uint32Array(p),g=1.96;let A=0!==l?Math.ceil(4*g*g/(l*l)*l*(1-l)):T,b=1,I=y?y[1]:T;for(let t=0;t<T;t++){if(t===A){const e=1-B/t;if(e+g*Math.sqrt(e*(1-e)/t)<l)return null;A*=2}if(t===I){for(let t=0;t<2*E;t++)f[t]=0;if(d)for(let t=y[b-1];t<y[b];t++)S[t]=M[d[t]];I=y[++b]}const r=_?d[t]:t,n=r*e,s=c(h,n,e);let i=s%E,o=B;for(;0!==f[2*i+1];){if(f[2*i]===s){const t=f[2*i+1]-1;if(u(h,n,t*e,e)){o=M[t];break}}i++,i>=E&&(i-=E)}o===B&&(f[2*i]=s,f[2*i+1]=r+1,B++),M[r]=o}if(0!==l&&1-B/a<l)return null;if(_){for(let t=y[b-1];t<S.length;t++)S[t]=M[d[t]];M=(0,s.uW)(S)}const R=i?new Array(B):new Uint32Array(B*e);B=0;for(let t=0;t<T;t++)M[t]===B&&(o(h,(_?d[t]:t)*e,R,B*e,e),B++);if(d&&!_){const t=new Uint32Array(p);for(let e=0;e<t.length;e++)t[e]=M[d[e]];M=(0,s.uW)(t)}return{buffer:Array.isArray(R)?R:R.buffer,indices:M,uniqueCount:B}}function u(t,e,r,n){for(let s=0;s<n;s++)if(t[e+s]!==t[r+s])return!1;return!0}function o(t,e,r,n,s){for(let i=0;i<s;i++)r[n+i]=t[e+i]}function c(t,e,r){let n=0;for(let s=0;s<r;s++)n=t[e+s]+n|0,n=n+(n<<11)+(n>>>2)|0;return n>>>0}let f=null;function a(t,e,r){const n=e/3,s=new Uint32Array(r+1),i=new Uint32Array(r+1),u=(t,e)=>{t<e?s[t+1]++:i[e+1]++};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];u(r,n),u(n,s),u(s,r)}let o=0,c=0;for(let t=0;t<r;t++){const e=s[t+1],r=i[t+1];s[t+1]=o,i[t+1]=c,o+=e,c+=r}const f=new Uint32Array(6*n),a=s[r],h=(t,e,r)=>{if(t<e){const n=s[t+1]++;f[2*n]=e,f[2*n+1]=r}else{const n=i[e+1]++;f[2*a+2*n]=t,f[2*a+2*n+1]=r}};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];h(r,n,e),h(n,s,e),h(s,r,e)}const l=(t,e)=>{const r=2*t,n=e-t;for(let t=1;t<n;t++){const e=f[r+2*t],n=f[r+2*t+1];let s=t-1;for(;s>=0&&f[r+2*s]>e;s--)f[r+2*s+2]=f[r+2*s],f[r+2*s+3]=f[r+2*s+1];f[r+2*s+2]=e,f[r+2*s+3]=n}};for(let t=0;t<r;t++)l(s[t],s[t+1]),l(a+i[t],a+i[t+1]);const d=new Int32Array(3*n),p=(e,r)=>e===t[3*r]?0:e===t[3*r+1]?1:e===t[3*r+2]?2:-1,y=(t,e)=>{const r=p(t,e);d[3*e+r]=-1},m=(t,e,r,n)=>{const s=p(t,e);d[3*e+s]=n;const i=p(r,n);d[3*n+i]=e};for(let t=0;t<r;t++){let e=s[t];const r=s[t+1];let n=i[t];const u=i[t+1];for(;e<r&&n<u;){const r=f[2*e],s=f[2*a+2*n];r===s?(m(t,f[2*e+1],s,f[2*a+2*n+1]),e++,n++):r<s?(y(t,f[2*e+1]),e++):(y(s,f[2*a+2*n+1]),n++)}for(;e<r;)y(t,f[2*e+1]),e++;for(;n<u;)y(f[2*a+2*n],f[2*a+2*n+1]),n++}return d}var h=r(1843),l=r(99058),d=r(87811),p=r(35522),y=r(51850),m=r(10614);class E{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?S:M}write(t,e,r){b.seed=this._edgeHashFunction(r);const n=b.getIntRange(0,255),s=b.getIntRange(0,this.settings.variants-1),i=b.getFloat(),u=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex),t.variantOffset.set(e,n),t.variantStroke.set(e,s),t.variantExtension.set(e,u)}}const B=new Float32Array(6),_=new Uint32Array(B.buffer),T=new Uint32Array(1);function M(t){return B[0]=t.position0[0],B[1]=t.position0[1],B[2]=t.position0[2],B[3]=t.position1[0],B[4]=t.position1[1],B[5]=t.position1[2],T[0]=31*(31*(31*(31*(31*(166811+_[0])+_[1])+_[2])+_[3])+_[4])+_[5],T[0]}function S(t){const e=B;e[0]=g(t.position0[0]),e[1]=g(t.position0[1]),e[2]=g(t.position0[2]),e[3]=g(t.position1[0]),e[4]=g(t.position1[1]),e[5]=g(t.position1[2]),T[0]=5381;for(let t=0;t<_.length;t++)T[0]=31*T[0]+_[t];return T[0]}function g(t){return Math.round(1e4*t)/1e4}const A=(0,y.vt)(),b=new d.A;var I=r(93406);function R(t){const e=w(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return v.updateSettings(t.writerSettings),x.updateSettings(t.writerSettings),(0,I.K)(e,v,x)}function w(t,e,r,n){if(e){const e=a(r,n,t.count);return new N(r,n,e,t)}const s=i(t.buffer,t.stride/4,{originalIndices:r}),u=a(s.indices,n,s.uniqueCount);return{faces:s.indices,facesLength:s.indices.length,neighbors:u,vertices:l.I$.createView(s.buffer)}}class N{constructor(t,e,r,n){this.faces=t,this.facesLength=e,this.neighbors=r,this.vertices=n}}const v=new class{constructor(){this._commonWriter=new E}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return l.gr.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r),(0,p.WQ)(A,r.faceNormal0,r.faceNormal1),(0,p.S8)(A,A);const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;(0,m.aT)(n,e,A[0],A[1],A[2],s)}},x=new class{constructor(){this._commonWriter=new E}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return l.In.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r);{const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;(0,m.aT)(n,e,r.faceNormal0[0],r.faceNormal0[1],r.faceNormal0[2],s)}{const{typedBuffer:n,typedBufferStride:s}=t.normal2Compressed;(0,m.aT)(n,e,r.faceNormal1[0],r.faceNormal1[1],r.faceNormal1[2],s)}}},C=(0,h.BP)().vec3f("position0").vec3f("position1"),O=(0,h.BP)().vec3f("position0").vec3f("position1").u16("componentIndex",{integer:!0})},85079(t,e,r){r.d(e,{Sk:()=>u,Xk:()=>s,_u:()=>i});var n=r(21818);function s(t){let e=0;return(0,n.z)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function i(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}function u(t){return i(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u,this.integer=o}}},63907(t,e,r){const n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},i=Object.values(s),u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,s,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,i,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,n,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9177],{60999(e,t,r){r.d(t,{DZ:()=>g,Ke:()=>p,Tj:()=>c,UT:()=>m,aD:()=>y,jJ:()=>u});var n=r(5482),i=r(69622),s=r(97768),a=r(17676),o=r(10107),l=r(64108);function u(e,t,r){return(0,a.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,a.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function g(e){try{return h(await e)}catch(e){return(0,a.QP)(e),d(e)}}function m(e,t){return new f(e,t)}let f=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],f);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},35522(e,t,r){r.d(t,{$A:()=>x,Bw:()=>s,C:()=>a,Cc:()=>C,DI:()=>w,Io:()=>M,Ln:()=>y,Om:()=>A,Qr:()=>h,Re:()=>u,S8:()=>_,T9:()=>m,WQ:()=>l,Z0:()=>I,_S:()=>p,aI:()=>T,ei:()=>R,fw:()=>P,gL:()=>E,hG:()=>v,hZ:()=>o,hs:()=>f,jk:()=>g,lw:()=>c,m3:()=>S,oW:()=>j,t2:()=>k,tn:()=>d,ze:()=>b});var n=r(51850),i=r(34304);function s(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function g(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function m(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function f(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function y(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function M(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function v(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function S(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function b(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function w(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function _(e,t){const r=t[0],n=t[1],i=t[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function A(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function x(e,t,r){const n=t[0],i=t[1],s=t[2],a=r[0],o=r[1],l=r[2];return e[0]=i*l-s*o,e[1]=s*a-n*l,e[2]=n*o-i*a,e}function C(e,t,r,n){const i=t[0],s=t[1],a=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=a+n*(r[2]-a),e}function I(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function R(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function E(e,t,r){return P(e,t,r[0],r[1],r[2],r[3])}function P(e,t,r,n,i,s){const a=t[0],o=t[1],l=t[2],u=n*l-i*o,c=i*a-r*l,h=r*o-n*a,d=n*h-i*c,p=i*u-r*h,g=r*c-n*u,m=2*s;return e[0]=a+u*m+2*d,e[1]=o+c*m+2*p,e[2]=l+h*m+2*g,e}const U=(0,n.vt)(),L=(0,n.vt)();function k(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 r=e[0],n=e[1],s=e[2],a=t[0],o=t[1],l=t[2],u=(0,i.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function j(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2];let a=n*n+i*i+s*s;return a>0?(a=1/Math.sqrt(a),e[0]=n*a,e[1]=i*a,e[2]=s*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const H=u,O=c,W=h,Z=M,G=v,V=s,D=S;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){_(U,e),_(L,t);const r=A(U,L);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,i,s){const a=1-s,o=a*a,l=s*s,u=o*a,c=3*s*o,h=3*l*a,d=l*s;return e[0]=t[0]*u+r[0]*c+n[0]*h+i[0]*d,e[1]=t[1]*u+r[1]*c+n[1]*h+i[1]*d,e[2]=t[2]*u+r[2]*c+n[2]*h+i[2]*d,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,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:x,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],s=t[2],a=r[0],o=r[1],l=r[2],u=i*l-s*o,c=s*a-n*l,h=n*o-i*a,d=Math.sqrt(u*u+c*c+h*h);return e[0]=u/d,e[1]=c/d,e[2]=h/d,e},direction:j,dist:Z,distance:M,div:W,divide:h,dot:A,equals:T,exactEquals:k,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,r,n,i,s){const a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),c=a*(3-2*s);return e[0]=t[0]*o+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*o+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*o+r[2]*l+n[2]*u+i[2]*c,e},inverse:w,len:V,length:s,lerp:C,max:m,min:g,mul:O,multiply:c,negate:b,normalize:_,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=s*t,e},rotateX:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[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:f,scaleAndAdd:y,set:o,sign:p,sqrDist:G,sqrLen:D,squaredDistance:v,squaredLength:S,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:H,subtract:u,transformMat3:R,transformMat4:I,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:E,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,V,"jb",0,H,"lo",0,G,"uE",0,D,"xg",0,Z])},54239(e,t,r){r.d(t,{A:()=>y});var n,i=r(5482),s=r(4576),a=r(66552),o=r(25482),l=r(86211),u=r(67076),c=r(91429),h=r(97348),d=r(43937),p=r(36005);const g=(0,a.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=g.jsonValues.slice();(0,s.Xy)(m,"orthometric");const f=(0,a.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=n=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return g.write(e,t,r)}readHeightModel(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(M(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||f.read(e)||(r?.messages&&r.messages.push(M(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const i=(null!=t?h.B.get(t):null)??h.B.get(r);return i?new n({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(i.unit.name),vertCRS:i.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function M(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,c.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,i.Cg)([(0,d.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,i.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,i.Cg)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,i.Cg)([(0,p.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,i.Cg)([(0,p.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,i.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,i.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],y)},18768(e,t,r){var n=r(5482),i=r(53966),s=r(91429),a=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,i.A.getLogger(this)))}};return(0,n.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,n.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var n=r(5482),i=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(e,t,r){var n=r(5482),i=r(92602),s=r(70333),a=r(11254),o=r(60999),l=r(49186),u=r(36563),c=r(53966),h=r(97768),d=r(17676),p=r(84952),g=r(91429),m=r(77548),f=r(20655),y=r(80812),M=r(41318),v=r(10407),S=r(36005),b=r(43937);const w={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let _=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new y.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),n=new AbortController,i=(0,u.rE)(n);return this.addHandles(i,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:n.signal})}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let a,o;if(i)a=r.portal.url;else try{a=await(0,m.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!a||!(0,p.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,c=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new y.default({id:e,portal:{url:a}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=f.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?M.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&n&&!(0,p.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,g.MZ)({type:y.default})],_.prototype,"portalItem",null),(0,n.Cg)([(0,S.w)("web-document","portalItem",["itemId"])],_.prototype,"readPortalItem",null),(0,n.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],_.prototype,"writePortalItem",null),(0,n.Cg)([(0,g.MZ)({clonable:!1})],_.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasUpdateItemPrivileges",void 0),_=(0,n.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],_),_}])},25036(e,t,r){var n=r(5482),i=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},88546(e,t,r){r.d(t,{_8:()=>f,uB:()=>y});var n=r(34727),i=r(35522),s=r(51850),a=r(73941),o=r(5443),l=r(54239),u=r(16930),c=r(9762);const h=new u.A({wkid:4326,vcsWkid:115700}),d=new o.A(-180,-90,180,90,h);function p(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(const t of e)if("number"!=typeof t)return!1;return!0}const g=7645211,m={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function f(e){return!(!(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)||!e.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function y(e,t=!1){let r=new u.A({wkid:4326,vcsWkid:115700}),l=e.root?.boundingVolume,h=!1,d=e?.root?.transform;if(t&&(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)&&(e.root?.extensions?.ESRI_crs?.boundingVolume?.box||e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))r=new u.A(e.extensions?.ESRI_crs),l=e.root?.extensions?.ESRI_crs?.boundingVolume,d=e.root?.transform,h=!0;else if(!l)return new o.A(-180,-90,180,90,r);if(l.box){const e=l?.box;if(e[3]>g&&e[7]>g&&e[11]>g)return new o.A({...m,spatialReference:r})}const f=(0,s.vt)();if(!h&&l.region&&p(l.region,6)){const e=l.region,t=(0,n.KJ)(e[0]),i=(0,n.KJ)(e[1]),s=e[4],a=(0,n.KJ)(e[2]),u=(0,n.KJ)(e[3]),c=e[5];return new o.A({xmin:t,ymin:i,zmin:s,xmax:a,ymax:u,zmax:c,spatialReference:r})}if(l.sphere&&p(l.sphere,4)){const e=l.sphere,t=(0,s.fA)(e[0],e[1],e[2]),n=e[3]/Math.sqrt(3),g=(0,s.vt)();(0,i.Re)(g,t,(0,s.fA)(n,n,n));const m=(0,s.vt)();if((0,i.WQ)(m,t,(0,s.fA)(n,n,n)),d&&p(d,16)){const e=d;(0,i.Z0)(f,g,e),(0,i.C)(g,f),(0,i.Z0)(f,m,e),(0,i.C)(m,f)}h||((0,c.projectBuffer)(g,a.Ro,0,g,u.A.WGS84,0),(0,c.projectBuffer)(m,a.Ro,0,m,u.A.WGS84,0));const y=(0,s.vt)(),M=(0,s.vt)();return(0,i.jk)(y,g,m),(0,i.T9)(M,g,m),new o.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:r})}if(l.box&&p(l.box,12)){const e=l.box,t=(0,s.fA)(e[0],e[1],e[2]),n=(0,s.fA)(e[3],e[4],e[5]),g=(0,s.fA)(e[6],e[7],e[8]),m=(0,s.fA)(e[9],e[10],e[11]),f=[];for(let e=0;e<8;++e)f.push((0,s.vt)());if((0,i.WQ)(f[0],t,n),(0,i.WQ)(f[0],f[0],g),(0,i.WQ)(f[0],f[0],m),(0,i.jb)(f[1],t,n),(0,i.WQ)(f[1],f[1],g),(0,i.WQ)(f[1],f[1],m),(0,i.WQ)(f[2],t,n),(0,i.jb)(f[2],f[2],g),(0,i.WQ)(f[2],f[2],m),(0,i.jb)(f[3],t,n),(0,i.jb)(f[3],f[3],g),(0,i.WQ)(f[3],f[3],m),(0,i.WQ)(f[4],t,n),(0,i.WQ)(f[4],f[4],g),(0,i.jb)(f[4],f[4],m),(0,i.jb)(f[5],t,n),(0,i.WQ)(f[5],f[5],g),(0,i.jb)(f[5],f[5],m),(0,i.WQ)(f[6],t,n),(0,i.jb)(f[6],f[6],g),(0,i.jb)(f[6],f[6],m),(0,i.jb)(f[7],t,n),(0,i.jb)(f[7],f[7],g),(0,i.jb)(f[7],f[7],m),d&&p(d,16)){const e=d;for(let t=0;t<8;++t)(0,i.Z0)(f[t],f[t],e)}const y=(0,s.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,s.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let e=0;e<8;++e)h||(0,c.projectBuffer)(f[e],a.Ro,0,f[e],u.A.WGS84,0),(0,i.jk)(M,M,f[e]),(0,i.T9)(y,y,f[e]);return new o.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:r})}return new o.A(-180,-90,180,90,r)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]]),r.d(t,["Zx",0,h,"zq",0,d])},10407(e,t,r){r.d(t,{It:()=>p,LG:()=>a,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>l,sQ:()=>h});var n=r(91218),i=r(16930),s=r(28735);function a(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?a(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function p(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),a=!!r&&!!i?.includes("features:user:fullEdit");const o="update"===n||"admin"===n;return o?a=s=!0:a&&(s=!0),{features:{edit:s,fullEdit:a},content:{updateItem:o}}}r.d(t,["mm",0,d])},78553(e,t,r){r.d(t,{D:()=>s,p:()=>i});var n=r(56507);function i(e){const t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2438],{57582(t,e,s){s.d(e,{af:()=>n,rK:()=>h}),s(92602);const i="arial-unicode-ms";function n(t){if(!t)return i;const e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function h(t){const e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,s.d(e,["Vb",0,i])},85560(t,e,s){function i(){const t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,s,i){const n=e[i],h=e[i+1];t[i]=s[0]*n+s[2]*h+s[4],t[i+1]=s[1]*n+s[3]*h+s[5]}s.d(e,{vt:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){const e=new Float32Array(6);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},create:i,fromValues:function(t,e,s,i,n,h){const r=new Float32Array(6);return r[0]=t,r[1]=e,r[2]=s,r[3]=i,r[4]=n,r[5]=h,r},transform:n,transformMany:function(t,e,s,i=0,h=0,r=2){const o=h||e.length/r;for(let h=i;h<o;h++)n(t,e,s,h*r)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,s){function i(){return new Float32Array(2)}function n(t,e){const s=new Float32Array(2);return s[0]=t,s[1]=e,s}function h(){return i()}function r(){return n(1,1)}function o(){return n(1,0)}function a(){return n(0,1)}s.d(e,{fA:()=>n,vt:()=>i});const l=h(),c=r(),u=o(),_=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:_,ZEROS:l,clone:function(t){const e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:i,fromValues:n,ones:r,unitX:o,unitY:a,zeros:h},Symbol.toStringTag,{value:"Module"})),s.d(e,["Un",0,c,"uY",0,l])},16905(t,e,s){s.d(e,{$0:()=>a,D_:()=>n,Tl:()=>o,e$:()=>r,lw:()=>h});var i=s(34304);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function h(t,e,s){const i=e[0],n=e[1],h=e[2],r=e[3],o=e[4],a=e[5],l=s[0],c=s[1],u=s[2],_=s[3],p=s[4],f=s[5];return t[0]=i*l+h*c,t[1]=n*l+r*c,t[2]=i*u+h*_,t[3]=n*u+r*_,t[4]=i*p+h*f+o,t[5]=n*p+r*f+a,t}function r(t,e,s){const i=e[0],n=e[1],h=e[2],r=e[3],o=e[4],a=e[5],l=Math.sin(s),c=Math.cos(s);return t[0]=i*c+h*l,t[1]=n*c+r*l,t[2]=i*-l+h*c,t[3]=n*-l+r*c,t[4]=o,t[5]=a,t}function o(t,e,s){const i=e[0],n=e[1],h=e[2],r=e[3],o=e[4],a=e[5],l=s[0],c=s[1];return t[0]=i,t[1]=n,t[2]=h,t[3]=r,t[4]=i*l+h*c+o,t[5]=n*l+r*c+a,t}function a(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=s,t[2]=-s,t[3]=i,t[4]=0,t[5]=0,t}function l(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t}const c=h,u=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t},copy:function(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},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){const s=t[0],n=t[1],h=t[2],r=t[3],o=t[4],a=t[5],l=e[0],c=e[1],u=e[2],_=e[3],p=e[4],f=e[5],d=(0,i.FD)();return Math.abs(s-l)<=d*Math.max(1,Math.abs(s),Math.abs(l))&&Math.abs(n-c)<=d*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(h-u)<=d*Math.max(1,Math.abs(h),Math.abs(u))&&Math.abs(r-_)<=d*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(o-p)<=d*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-f)<=d*Math.max(1,Math.abs(a),Math.abs(f))},exactEquals:function(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]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:a,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:function(t,e){const s=e[0],i=e[1],n=e[2],h=e[3],r=e[4],o=e[5];let a=s*h-i*n;return a?(a=1/a,t[0]=h*a,t[1]=-i*a,t[2]=-n*a,t[3]=s*a,t[4]=(n*o-h*r)*a,t[5]=(i*r-s*o)*a,t):null},mul:c,multiply:h,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t},rotate:r,scale:function(t,e,s){const i=e[0],n=e[1],h=e[2],r=e[3],o=e[4],a=e[5],l=s[0],c=s[1];return t[0]=i*l,t[1]=n*l,t[2]=h*c,t[3]=r*c,t[4]=o,t[5]=a,t},set:function(t,e,s,i,n,h,r){return t[0]=e,t[1]=s,t[2]=i,t[3]=n,t[4]=h,t[5]=r,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:u,subtract:l,translate:o},Symbol.toStringTag,{value:"Module"}))},36745(t,e,s){s.d(e,{z:()=>o});var i=s(4718),n=s(51118),h=s(60408),r=s(92722);class o{static fromOptimized(t,e,s=1){return(new a).initialize(t,e,s)}static fromJSON(t){const[e,s]=c(t),i=(0,h.Pv)(t),n=(0,h.W0)(t);return(new u).initialize(e,s,i,n,1)}static fromOptimizedCIM(t,e,s=1){return(new _).initialize(t,e,s)}static fromJSONCIM(t,e=1){const[s,i]=c(t),n=(0,h.Pv)(t),r=(0,h.W0)(t);return(new p).initialize(s,i,n,r,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,i=1){return(new _).initialize(new r.A([],[],e,s),t,i)}static createEmptyJSON(t,e=!1,s=!1){return(new u).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,i=1){return(new _).initialize(new r.A([],[],e,s),t,i)}static createEmptyJSONCIM(t,e=!1,s=!1,i=1){return(new p).initialize([],t,e,s,i)}asJSON(){const t=(0,n.x)(this),{hasZ:e,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:s?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:s}:{paths:t,hasZ:e,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const i=t,n=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-i)*(e+n),-.5*s}invertY(){this.yFactor*=-1}}class a extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,s){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,s=this._pathOffset;return(new a).initialize(new r.A([this.pathSize],e.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let i=0;for(let n=this._pathOffset+e;n<t;n+=e){const t=s[n-e],h=s[n-e+1],r=s[n]-t,o=s[n+1]-h;i+=Math.sqrt(r*r+o*o)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let i=0;i<this._stride;i++)if(t[e+i]!==t[s+i])return!1;return!0}clone(){return(new a).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function c(t){return(0,h.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,h.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,h.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,h.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,h.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends o{initialize(t,e,s,i,n){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let i=1;i<t;i++){const t=e[i-1],n=e[i],h=t[0],r=t[1],o=n[0]-h,a=n[1]-r;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new u).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,n.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,s=new r.A([],[],t,e),{coords:i,lengths:n}=s;if("esriGeometryPoint"===this.geometryType)i.push(...this._paths[0][0]),n.length=0;else for(const s of this._paths){for(const n of s)i.push(n[0]),i.push(n[1]*this.yFactor),t&&i.push(n[2]),e&&i.push(n[this._mIndex]);n.push(s.length)}return s}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new u).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends a{initialize(t,e,s){return super.initialize(t,e,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new _).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class p extends u{initialize(t,e,s,i,n){return super.initialize(t,e,s,i,n)}clone(){return(new p).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},6774(t,e,s){s.d(e,{O3:()=>h,Ox:()=>r,bR:()=>i});class i{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new i(t[0],t[1])}clone(){return new i(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,s=Math.sqrt(t*t+e*e);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const s=this.x,i=this.y;return this.x=s*t-i*e,this.y=s*e+i*t,this}rotateReverse(t,e){const s=this.x,i=this.y;return this.x=s*t+i*e,this.y=-s*e+i*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const s=e.x-t.x,i=e.y-t.y;return Math.sqrt(s*s+i*i)}static add(t,e){return new i(t.x+e.x,t.y+e.y)}static sub(t,e){return new i(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,s){this.ratio=t,this.x=e,this.y=s}}class h{constructor(t,e,s,i=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=i,this._pixelMargin=n,this._tileSize=512*i,this._dz=t,this._yPos=e,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const s=t>>this._dz;e>s&&(e=s),this._margin=e,this._xmin=s*this._xPos-e,this._ymin=s*this._yPos-e,this._xmax=this._xmin+s+2*e,this._ymax=this._ymin+s+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new i(t,e),this._firstPt=new i(t,e),this._dist=0}lineTo(t,e){const s=this._isIn(t,e),h=new i(t,e),r=i.distance(this._prevPt,h);let o,a,l,c,u,_,p,f;if(s)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,a=h,l=this._intersect(a,o),this._start=this._dist+r*(1-this._r),this._lineTo(l.x,l.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=h,l=this._intersect(a,o),this._lineTo(l.x,l.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=h;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const s=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(c=(this._xmin-t.x)/(e.x-t.x),f=t.y+c*(e.y-t.y),f<=this._ymin?_=!1:f>=this._ymax?_=!0:s.push(new n(c,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(c=(this._xmax-t.x)/(e.x-t.x),f=t.y+c*(e.y-t.y),f<=this._ymin?_=!1:f>=this._ymax?_=!0:s.push(new n(c,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(c=(this._ymin-t.y)/(e.y-t.y),p=t.x+c*(e.x-t.x),p<=this._xmin?u=!1:p>=this._xmax?u=!0:s.push(new n(c,p,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(c=(this._ymax-t.y)/(e.y-t.y),p=t.x+c*(e.x-t.x),p<=this._xmin?u=!1:p>=this._xmax?u=!0:s.push(new n(c,p,this._ymax))),0===s.length)u?_?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):_?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+r*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+r*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=r,this._prevIsIn=s,this._prevPt=h}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const s=this._line;let i=s.length;for(;i>=4&&(s[0].x===s[1].x&&s[0].x===s[i-2].x||s[0].y===s[1].y&&s[0].y===s[i-2].y);)s.pop(),s[0].x=s[i-2].x,s[0].y=s[i-2].y,--i}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const s=[];for(let i=0;i<e;i++)s.push({line:t[i],start:this._starts[i]||0});return s}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let s,n,h;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,h=(n-t.y)/(e.y-t.y),s=t.x+h*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)s=e.x<=this._xmin?this._xmin:this._xmax,h=(s-t.x)/(e.x-t.x),n=t.y+h*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,s=e.x<=this._xmin?this._xmin:this._xmax;const i=(s-t.x)/(e.x-t.x),r=(n-t.y)/(e.y-t.y);i<r?(h=i,n=t.y+i*(e.y-t.y)):(h=r,s=t.x+r*(e.x-t.x))}return this._r=h,new i(s,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,s){3!==this._type?s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,e))):(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,s){let n,h;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new i(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const s=n.x===t,r=n.y===e;if(s&&r)return;this._isH&&s||this._isV&&r?(n.x=t,n.y=e,h=this._line[this._line.length-2],h.x===t&&h.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(h=this._line[this._line.length-2],this._isH=h.x===t,this._isV=h.y===e)):(this._isH=h.x===t,this._isV=h.y===e)):(this._line.push(new i(t,e)),this._isH=s,this._isV=r)}else this._line.push(new i(t,e))}}class r{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const s=this._ratio;this._line.push(new i(t*s,e*s))}lineTo(t,e){const s=this._ratio;this._line.push(new i(t*s,e*s))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,s){if(!s)return;const i=-e,n=t+e,h=-e,r=t+e,a=[],l=[],c=s.length;for(let t=0;t<c;++t){const e=s[t];if(!e||e.length<2)continue;let o,c=e[0];const u=e.length;for(let s=1;s<u;++s)o=e[s],c.x===o.x&&(c.x<=i&&(c.y>o.y?(a.push(t),a.push(s),a.push(0),a.push(-1)):(l.push(t),l.push(s),l.push(0),l.push(-1))),c.x>=n&&(c.y<o.y?(a.push(t),a.push(s),a.push(1),a.push(-1)):(l.push(t),l.push(s),l.push(1),l.push(-1)))),c.y===o.y&&(c.y<=h&&(c.x<o.x?(a.push(t),a.push(s),a.push(2),a.push(-1)):(l.push(t),l.push(s),l.push(2),l.push(-1))),c.y>=r&&(c.x>o.x?(a.push(t),a.push(s),a.push(3),a.push(-1)):(l.push(t),l.push(s),l.push(3),l.push(-1)))),c=o}if(0===a.length||0===l.length)return;o.fillParent(s,l,a),o.fillParent(s,a,l);const u=[];o.calcDeltas(u,l,a),o.calcDeltas(u,a,l),o.addDeltas(u,s)}static fillParent(t,e,s){const i=s.length,n=e.length;for(let h=0;h<n;h+=4){const n=e[h],r=e[h+1],o=e[h+2],l=t[n][r-1],c=t[n][r];let u=8092,_=-1;for(let e=0;e<i;e+=4){if(s[e+2]!==o)continue;const i=s[e],n=s[e+1],h=t[i][n-1],r=t[i][n];switch(o){case 0:case 1:if(a(l.y,h.y,r.y)&&a(c.y,h.y,r.y)){const t=Math.abs(r.y-h.y);t<u&&(u=t,_=e)}break;case 2:case 3:if(a(l.x,h.x,r.x)&&a(c.x,h.x,r.x)){const t=Math.abs(r.x-h.x);t<u&&(u=t,_=e)}}}e[h+3]=_}}static calcDeltas(t,e,s){const i=e.length;for(let n=0;n<i;n+=4){const i=[],h=o.calcDelta(n,e,s,i);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(h)}}static calcDelta(t,e,s,i){const n=e[t+3];if(-1===n)return 0;const h=i.length;return h>1&&i[h-2]===n?0:(i.push(n),o.calcDelta(n,s,e,i)+1)}static addDeltas(t,e){const s=t.length;let i=0;for(let e=0;e<s;e+=4){const s=t[e+3];s>i&&(i=s)}for(let n=0;n<s;n+=4){const s=e[t[n]],h=t[n+1],r=i-t[n+3];switch(t[n+2]){case 0:s[h-1].x-=r,s[h].x-=r,1===h&&(s[s.length-1].x-=r),h===s.length-1&&(s[0].x-=r);break;case 1:s[h-1].x+=r,s[h].x+=r,1===h&&(s[s.length-1].x+=r),h===s.length-1&&(s[0].x+=r);break;case 2:s[h-1].y-=r,s[h].y-=r,1===h&&(s[s.length-1].y-=r),h===s.length-1&&(s[0].y-=r);break;case 3:s[h-1].y+=r,s[h].y+=r,1===h&&(s[s.length-1].y+=r),h===s.length-1&&(s[0].y+=r)}}}}const a=(t,e,s)=>t>=e&&t<=s||t>=s&&t<=e},32011(t,e,s){s.d(e,{d:()=>a});var i=s(19419),n=s(537),h=s(12359),r=s(95108),o=s(12176);function a(t){if(0===t.totalSize)return null;const e=(0,n.z8)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let r=0,o=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>o&&(o=s,r=e)}if(t.seekPath(r),0===t.pathSize)return null;t.seekPathStart();const a=(0,n.B$)(t);if(Math.abs(o)<=2*s*s)return[(a[0]+a[2])/2,(a[1]+a[3])/2];t.seekPathStart();const _=(0,h.w2)(t,(0,i.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const p=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],x=[NaN,NaN,NaN,NaN];let P=!1,y=c(_,t,!0);0===y.distance&&(P=!0,p[0][0]=_[0],p[0][1]=_[1],y=c(_,t,!1)),f[0]=y.distance,x[0]=0;const M=[NaN,NaN];let b=!1,w=.25,C=-1,v=NaN;do{if(v=NaN,p[1]=u(t,d(a[0],a[2],w),0,e),isNaN(p[1][0])||isNaN(p[1][1])||(y=c(p[1],t,!1),v=y.distance),!isNaN(v)&&v>s&&l(p[1],t))b=!0,f[1]=v,x[1]=g(p[1],_);else if(!isNaN(v)&&v>C&&(C=v,M[0]=p[1][0],M[1]=p[1][1]),w-=.01,w<.1){if(!(C>=0))break;b=!0,f[1]=C,p[1][0]=M[0],p[1][1]=M[1],x[1]=g(p[1],_)}}while(!b);b=!1,w=.5,C=-1;let S=.01,z=1;do{if(v=NaN,p[2]=u(t,d(a[0],a[2],w),0,e),isNaN(p[2][0])||isNaN(p[2][1])||(y=c(p[2],t,!1),v=y.distance),!isNaN(v)&&v>s&&l(p[2],t))b=!0,f[2]=v,x[2]=g(p[2],_);else if(!isNaN(v)&&v>C)C=v,M[0]=p[2][0],M[1]=p[2][1];else if(v>C&&(C=v,M[0]=p[2][0],M[1]=p[2][1]),w=.5+S*z,S+=.01,z*=-1,w<.3||w>.7){if(!(C>=0))break;b=!0,f[2]=C,p[2][0]=M[0],p[2][1]=M[1],x[2]=g(p[2],_)}}while(!b);b=!1,w=.75,C=-1;do{if(v=NaN,p[3]=u(t,d(a[0],a[2],w),0,e),isNaN(p[3][0])||isNaN(p[3][1])||(y=c(p[3],t,!1),v=y.distance),!isNaN(v)&&v>s&&l(p[3],t))b=!0,f[3]=v,x[3]=g(p[3],_);else if(v>C&&(C=v,M[0]=p[3][0],M[1]=p[3][1]),w+=.01,w>.9){if(!(C>=0))break;b=!0,f[3]=C,p[3][0]=M[0],p[3][1]=M[1],x[3]=g(p[3],_)}}while(!b);const I=[0,1,2,3],A=P?0:1;let k;for(let t=A;t<4;t++)for(let t=A;t<3;t++){const e=x[t],s=x[t+1];m(e,s)>0&&(k=I[t],I[t]=I[t+1],I[t+1]=k,x[t]=s,x[t+1]=e)}let T=A,L=0,E=0;for(let t=A;t<4;t++){switch(t){case 0:E=2*f[I[t]];break;case 1:E=1.66666666*f[I[t]];break;case 2:E=1.33333333*f[I[t]];break;case 3:E=f[I[t]]}E>L&&(L=E,T=I[t])}return p[T]}function l(t,e){let s,i,n,h,r=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,i=e.y;e.nextPoint();s=n,i=h)n=e.x,h=e.y,i>t[1]!=h>t[1]&&((n-s)*(t[1]-i)-(h-i)*(t[0]-s)>0?r++:r--);return 0!==r}function c(t,e,s){if(s&&l(t,e))return{coord:t,distance:0};let i=1/0,n=0,h=0,o=[0,0],a=[0,0];const c=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(o[0]=e.x,o[1]=e.y;e.nextPoint();o=a){a=[e.x,e.y],(0,r.gR)(c,t,o,a);const s=g(t,c);s<i&&(i=s,n=c[0],h=c[1])}return{coord:[n,h],distance:Math.sqrt(i)}}function u(t,e,s,n){const h=[e,0];let r=1/0,a=1/0,l=!1,c=!1;const u=[[e,n[1]-1],[e,n[3]+1]],f=[0,0],d=[0,0],g=[0,0],m=[[0,0],[0,0]],x=(0,i.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(m[0][0]=t.x,m[0][1]=t.y;t.nextPoint();m[0][0]=m[1][0],m[0][1]=m[1][1]){if(m[1][0]=t.x,m[1][1]=t.y,null===_(x,m))continue;if(d[0]=u[0][0],d[1]=u[0][1],g[0]=u[1][0],g[1]=u[1][1],0===p(x,d,g))continue;if(!(0,o.Ql)(u[0],u[1],m[0],m[1],f))continue;const e=f[1];r>a?e<r&&(r=e,l=!0):e<a&&(a=e,c=!0)}return l&&c?h[1]=(r+a)/2:h[0]=h[1]=NaN,h}function _(t,e){if(e.length<2)return null;t||(t=(0,i.vt)());const[s,n]=e[0],[h,r]=e[1];return t[0]=Math.min(s,h),t[1]=Math.min(n,r),t[2]=Math.max(s,h),t[3]=Math.max(n,r),t}function p(t,e,s){let i=f(e,t),n=f(s,t);const h=t[0],r=t[1],o=t[2],a=t[3];if(i&n)return 0;if(!(i|n))return 4;const l=(i?1:0)|(n?2:0);do{const l=s[0]-e[0],c=s[1]-e[1];if(l>c)3&i?(1&i?(e[1]+=c*(h-e[0])/l,e[0]=h):(e[1]+=c*(o-e[0])/l,e[0]=o),i=f(e,t)):3&n?(1&n?(s[1]+=c*(h-s[0])/l,s[0]=h):(s[1]+=c*(o-s[0])/l,s[0]=o),n=f(s,t)):i?(4&i?(e[0]+=l*(r-e[1])/c,e[1]=r):(e[0]+=l*(a-e[1])/c,e[1]=a),i=f(e,t)):(4&n?(s[0]+=l*(r-s[1])/c,s[1]=r):(s[0]+=l*(a-s[1])/c,s[1]=a),n=f(s,t));else if(12&i?(4&i?(e[0]+=l*(r-e[1])/c,e[1]=r):(e[0]+=l*(a-e[1])/c,e[1]=a),i=f(e,t)):12&n?(4&n?(s[0]+=l*(r-s[1])/c,s[1]=r):(s[0]+=l*(a-s[1])/c,s[1]=a),n=f(s,t)):i?(1&i?(e[1]+=c*(h-e[0])/l,e[0]=h):(e[1]+=c*(o-e[0])/l,e[0]=o),i=f(e,t)):(1&n?(s[1]+=c*(h-s[0])/l,s[0]=h):(s[1]+=c*(o-s[0])/l,s[0]=o),n=f(s,t)),i&n)return 0}while(i|n);return l}function f(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function d(t,e,s){return t+(e-t)*s}function g(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function m(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),i=isNaN(e);return s<i?-1:s>i?1:0}},35833(t,e,s){s.d(e,{ai:()=>g,g1:()=>m,kT:()=>x,qc:()=>P});var i=s(36745),n=s(93146),h=s(6774);const r=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8089),s.e(6160)]).then(s.bind(s,46160))),o=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8872)]).then(s.bind(s,55666))),a=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(1060)]).then(s.bind(s,51190))),l=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(837)]).then(s.bind(s,97528))),c=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8089),s.e(795)]).then(s.bind(s,50795))),u=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8089),s.e(5605)]).then(s.bind(s,15605))),_=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(1075)]).then(s.bind(s,3637))),p=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8393)]).then(s.bind(s,25802))),f=(0,n.z)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(1948)]).then(s.bind(s,83299)));let d;function g(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return r.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return o.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),u.getImportPromise(),c.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return u.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),a.getImportPromise(),l.getImportPromise()]);default:return Promise.resolve()}}function m(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class x{constructor(t){this._geometry=t}next(){const t=this._geometry;return this._geometry=null,t}}function P(t,e,s){if(!t)return null;d||(d=new h.O3(0,0,0,1));const n=s?-1:1,r="esriGeometryPolygon"===t.geometryType,o=r?3:2,a=r?3:2;let l,c;for(d.reset(o),d.setPixelMargin(e+1),d.setExtent(512);t.nextPath();)if(!(t.pathSize<a)){for(t.nextPoint(),l=t.x,c=n*t.y,d.moveTo(l,c);t.nextPoint();)l=t.x,c=n*t.y,d.lineTo(l,c);r&&d.close()}const u=d.result(!1);if(u){const e=i.z.createEmptyOptimizedCIM(t.geometryType);for(const t of u){e.startPath();for(const s of t)e.pushXY(s.x,n*s.y)}return e.reset(),e}return null}s.d(e,["$Z",0,r,"NS",0,l,"Xs",0,a,"hd",0,c,"lX",0,o,"mO",0,u,"vZ",0,f,"xR",0,p,"yM",0,_])},26937(t,e,s){s.d(e,{A:()=>$t,c:()=>Kt});class i{static{this.instance=null}static local(){return null===i.instance&&(i.instance=new i),i.instance}execute(t,e,s){return new n(t,e)}}class n{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0!==e.angleTolerance?e.angleTolerance:120,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){const e=t.x,s=t.y;let i=e,n=s,h=t.pathSize,r=0,o=0,a=0,l=0,c=0,u=0;this._isClosed&&++h;for(let _=1;t.nextPoint()||_<h;++_){let p,f;this._isClosed&&_===h-1?(p=e,f=s):(p=t.x,f=t.y);const d=p-i,g=f-n,m=Math.sqrt(d*d+g*g);_>1&&m>0&&a>0&&(r*d+o*g)/m/a<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(l=d,c=g,u=m),m>0&&(i=p,n=f,r=d,o=g,a=m)}this._isClosed&&a>0&&u>0&&(r*l+o*c)/u/a<=this._maxCosAngle&&t.setControlPointAt(0)}}}var h=s(36745),r=s(51118),o=s(98939);function a(t,e){t[4]=e}class l{constructor(t,e=!0,s=!0,i=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!s&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=i,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new o.W}next(){if(!this.geometryCursor)return null;const t=this.processMultiPath(this.geometryCursor);if(this.iterateMultiPath&&t||(this.geometryCursor=null),!t)return null;const e=t.getAngle();if(this._angleToLine&&this._keepUpright&&Math.abs(e)>.5*Math.PI){const s=e+Math.PI,i=Math.atan2(Math.sin(s),Math.cos(s));Number.isNaN(i)||t.setRotate(i)}return t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;const e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class c{constructor(t,e,s,i=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=s,this.geomUnitsPerPoint=i,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();const t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}class u{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,s,i,n;for(e=t.x,s=t.y;t.nextPoint();e=s,s=n)if(i=t.x,n=t.y,i!==e||n!==s)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,s,i){const n=s-t,h=i-e;return Math.sqrt(n*n+h*h)}getSegLength(t){const[[e,s],[i,n]]=t;return this.getLength(e,s,i,n)}getCoord2D(t,e,s,i,n){return[t+(s-t)*n,e+(i-e)*n]}getSegCoord2D(t,e){const[[s,i],[n,h]]=t;return this.getCoord2D(s,i,n,h,e)}getAngle(t,e,s,i,n){const h=s-t,r=i-e;return Math.atan2(r,h)}getAngleCS(t,e,s,i,n,h){null==t&&(t=[0,0]);const r=i-e,o=n-s,a=Math.sqrt(r*r+o*o);return 0!==a?(t[0]=r/a,t[1]=o/a,t):(t[0]=1,t[1]=0,t)}getSegAngleCS(t,e,s){const[[i,n],[h,r]]=e;return this.getAngleCS(t,i,n,h,r,s)}cut(t,e,s,i,n,h){return[n<=0?[t,e]:this.getCoord2D(t,e,s,i,n),h>=1?[s,i]:this.getCoord2D(t,e,s,i,h)]}getSubCurve(t,e,s){const i=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(i,t,e,s)?i:null}appendSubCurve(t,e,s,i){t.startPath(),e.seekPathStart();let n=0,h=!0;if(!e.nextPoint())return!1;let r=e.x,o=e.y;for(;e.nextPoint();){const a=this.getLength(r,o,e.x,e.y);if(0!==a){if(h){if(n+a>s){const l=(s-n)/a;let c=1,u=!1;n+a>=i&&(c=(i-n)/a,u=!0);const _=this.cut(r,o,e.x,e.y,l,c);if(_&&t.pushPoints(_),u)break;h=!1}}else{if(n+a>i){const s=this.cut(r,o,e.x,e.y,0,(i-n)/a);s&&t.pushPoint(s[1]);break}t.pushXY(e.x,e.y)}n+=a,r=e.x,o=e.y}else r=e.x,o=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let s,i,n,h,r=0;for(s=t.x,i=t.y;t.nextPoint();s=n,i=h){n=t.x,h=t.y;const o=this.getLength(s,i,n,h);if(0!==o){if(r+o>e){const t=(e-r)/o;return this.getCoord2D(s,i,n,h,t)}r+=o}}return null}offset(t,e,s,i,n){if(!t||t.length<2)return null;let h=0,r=t[h++],o=h;for(;h<t.length;){const e=t[h];e[0]===r[0]&&e[1]===r[1]||(h!==o&&(t[o]=t[h]),r=t[o++]),h++}const a=t[0][0]===t[o-1][0]&&t[0][1]===t[o-1][1];if(a&&--o,o<(a?3:2))return null;const l=[];r=a?t[o-1]:null;let c=t[0];for(let n=0;n<o;n++){const h=n===o-1?a?t[0]:null:t[n+1];if(r)if(h){const t=[h[0]-c[0],h[1]-c[1]];this.normalize(t);const n=[c[0]-r[0],c[1]-r[1]];this.normalize(n);const o=n[0]*t[1]-n[1]*t[0],a=n[0]*t[0]+n[1]*t[1];if(0===o&&1===a){c=h;continue}if(o>=0==e<=0){if(a<1){const s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);const h=Math.sqrt((1+a)/2);if(h>1/i){const t=-Math.abs(e)/h;l.push([c[0]-s[0]*t,c[1]-s[1]*t])}}}else switch(s){case"Mitered":{const s=Math.sqrt((1+a)/2);if(s>0&&1/s<i){const i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const h=Math.abs(e)/s;l.push([c[0]-i[0]*h,c[1]-i[1]*h]);break}}case"Bevelled":l.push([c[0]+n[1]*e,c[1]-n[0]*e]),l.push([c[0]+t[1]*e,c[1]-t[0]*e]);break;case"Rounded":if(a<1){l.push([c[0]+n[1]*e,c[1]-n[0]*e]);const s=Math.floor(2.5*(1-a));if(s>0){const i=1/s;let h=i;for(let r=1;r<s;r++,h+=i){const s=[n[1]*(1-h)+t[1]*h,-n[0]*(1-h)-t[0]*h];this.normalize(s),l.push([c[0]+s[0]*e,c[1]+s[1]*e])}}l.push([c[0]+t[1]*e,c[1]-t[0]*e])}break;default:if(o<0)l.push([c[0]+(n[1]+n[0])*e,c[1]+(n[1]-n[0])*e]),l.push([c[0]+(t[1]-t[0])*e,c[1]-(t[0]+t[1])*e]);else{const s=Math.sqrt((1+Math.abs(a))/2),i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const h=e/s;l.push([c[0]-i[0]*h,c[1]-i[1]*h])}}}else{const t=[c[0]-r[0],c[1]-r[1]];this.normalize(t),l.push([c[0]+t[1]*e,c[1]-t[0]*e])}else{const t=[h[0]-c[0],h[1]-c[1]];this.normalize(t),l.push([c[0]+t[1]*e,c[1]-t[0]*e])}r=c,c=h}return l.length<(a?3:2)?null:(a&&l.push([l[0][0],l[0][1]]),l)}}const _=1.7320508075688772;class p{static{this.instance=null}static local(){return null===p.instance&&(p.instance=new p),p.instance}execute(t,e,s){return new f(t,e,s)}}class f extends c{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new u;const i=s.geomUnitsPerPoint;this._width=(void 0!==e.width?e.width:5)*i,this._arrowType=void 0!==e.geometricEffectArrowType?e.geometricEffectArrowType:void 0!==e.arrowType?e.arrowType:"OpenEnded",this._offsetFlattenError=.03*i}processPath(t){const e=h.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,s){const i=e.pathLength();let n=this._width;i<2*n&&(n=i/2);const h=this._curveHelper.getSubCurve(e,0,i-n);if(!h||!h.nextPath())return;h.seekPathStart();const o=n/2;if(this._curveHelper.isEmpty(h))return;const a=(0,r.A)(h),l=this._constructOffset(a,-o);if(!l)return;const c=this._constructOffset(a,o);if(!c)return;const u=this._constructArrowBasePoint(l,-o/2);if(!u)return;const _=this._constructArrowBasePoint(c,o/2);if(!_)return;e.seekInPath(e.pathSize-1);const p=[e.x,e.y];t.pushPath(c),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.setControlPoint(),s||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(c[0])),t.reset()}_constructCrossedArrow(t,e){const s=e.pathLength();let i=this._width;s<i*(1+_+1)&&(i=s/(1+_+1)),e.seekPathStart();const n=this._curveHelper.getSubCurve(e,0,s-i*(1+_));if(!n)return;n.nextPath();const h=i/2;if(this._curveHelper.isEmpty(n))return;const o=(0,r.A)(n),a=this._constructOffset(o,h);if(!a)return;const l=this._constructOffset(o,-h);if(!l)return;const c=this._curveHelper.getSubCurve(e,0,s-i);if(!c)return;if(c.nextPath(),this._curveHelper.isEmpty(c))return;const u=(0,r.A)(c),p=this._constructOffset(u,h);if(!p)return;const f=this._constructOffset(u,-h);if(!f)return;const d=p[p.length-1],g=this._constructArrowBasePoint(p,h/2);if(!g)return;const m=f[f.length-1],x=this._constructArrowBasePoint(f,-h/2);if(!x)return;e.seekInPath(e.pathSize-1);const P=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(m),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(P),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;const s=t[t.length-2],i=t[t.length-1],n=[i[0]-s[0],i[1]-s[1]];return this._curveHelper.normalize(n),[i[0]+n[1]*e,i[1]-n[0]*e]}}var d=s(16930),g=s(35833);class m{static{this.instance=null}static local(){return null===m.instance&&(m.instance=new m),m.instance}execute(t,e,s){return new x(t,e,s)}}class x{constructor(t,e,s){const i=s.geomUnitsPerPoint,n=s.tileKey,h=s.maxInflateSize;this._preventClipping=s.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new u,this._size=(void 0!==e.size?e.size:1)*i,this._maxInflateSize=h*i,this._offsetFlattenError=.03*i}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){const e=h.z.createEmptyOptimizedCIM(t.geometryType),s=(0,r.x)(t)[0],i=this._curveHelper.offset(s,this._size,"Rounded",4,this._offsetFlattenError);if(i)return e.pushPath(i),e}else if(this._size<0){const e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return h.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}const e=!this._preventClipping&&this._tileKey?(0,g.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;const s=g.$Z.module,i={...e.asJSON(),spatialReference:{wkid:d.A.WebMercator.wkid}},n=s.execute(i,this._size);return n?h.z.fromJSONCIM(n):null}return null}}var P=s(34727),y=s(28076);const M=Math.PI/180,b=2*Math.PI;class w{static{this.instance=null}static local(){return null===w.instance&&(w.instance=new w),w.instance}execute(t,e,s){return new C(t,e,s)}}class C{constructor(t,e,s){const i=s.geomUnitsPerPoint;this._inputGeometries=t,this._geomUnitsPerPoint=i,this._radius=(e.radius??y.D.CIMGeometricEffectCircularSector.radius)*i,this._startAngle=(e.startAngle??y.D.CIMGeometricEffectCircularSector.startangle)*M,this._endAngle=(e.endAngle??y.D.CIMGeometricEffectCircularSector.endangle)*M}next(){if(this._radius<=0)return null;let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolygon",t.hasZ,!1);let s=!1;for(;t.nextPath();)for(;t.nextPoint();)e.pushPath(this._buildRing(t.x,t.y,t.hasZ?t.z:void 0)),s=!0;if(s)return e}t=this._inputGeometries.next()}return null}_buildRing(t,e,s){const i=[this._makePoint(t,e,s)],n=v(this._startAngle);let h=v(this._endAngle);for(;h<n;)h+=b;const r=h-n;if(0===r)return i.push(this._makePoint(t+this._radius*Math.cos(h),e+this._radius*Math.sin(h),s)),i.push(this._makePoint(t,e,s)),i;const o=.25*this._geomUnitsPerPoint,a=this._radius<=.5*o?b:2*Math.acos((0,P.qE)(1-o/this._radius,-1,1)),l=Math.max(1,Math.ceil(r/a)),c=r/l;let u=h;for(let n=0;n<=l;n++,u-=c)i.push(this._makePoint(t+this._radius*Math.cos(u),e+this._radius*Math.sin(u),s));return i.push(this._makePoint(t,e,s)),i}_makePoint(t,e,s){return null==s?[t,e]:[t,e,s]}}function v(t){return(t%=b)<0?t+b:t}s(86211);var S=s(95108);class z{static{this.instance=null}static local(){return null===z.instance&&(z.instance=new z),z.instance}execute(t,e,s){return new I(t,e,s)}}class I{constructor(t,e,s){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=s.geomUnitsPerPoint??1,this._scale=s?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=s?.spatialReference??d.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){const e=this._processGeom((0,r.x)(t));if(e?.length)return h.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;const e=this._scale/(96*39.37*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,s,i){return[t[0]*e+s[0]*i,t[1]*e+s[1]*i]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,s){return[t[0]+e,t[1]+s]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){const s=e/this._norm(t);t[0]*=s,t[1]*=s}_leftPerpendicular(t){const e=-t[1],s=t[0];t[0]=e,t[1]=s}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){const e=t[1],s=-t[0];t[0]=e,t[1]=s}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,s){const i=t[0]*e-t[1]*s,n=t[0]*s+t[1]*e;t[0]=i,t[1]=n}_makeCtrlPt(t){const e=[t[0],t[1]];return a(e,1),e}_addAngledTicks(t,e,s,i){const n=this._sub(s,e);this._normalize(n);const h=this._crossProduct(n,this._sub(i,e));let r;r=h>0?this._rightPerp(n):this._leftPerp(n);const o=Math.abs(h)/2,a=[];a.push([e[0]+(r[0]-n[0])*o,e[1]+(r[1]-n[1])*o]),a.push(e),a.push(s),a.push([s[0]+(r[0]+n[0])*o,s[1]+(r[1]+n[1])*o]),t.push(a)}_addBezier2(t,e,s,i,n){if(0===n--)return void t.push(i);const h=this._mid(e,s),r=this._mid(s,i),o=this._mid(h,r);this._addBezier2(t,e,h,o,n),this._addBezier2(t,o,r,i,n)}_addBezier3(t,e,s,i,n,h){if(0===h--)return void t.push(n);const r=this._mid(e,s),o=this._mid(s,i),a=this._mid(i,n),l=this._mid(r,o),c=this._mid(o,a),u=this._mid(l,c);this._addBezier3(t,e,r,l,u,h),this._addBezier3(t,u,c,a,n,h)}_add90DegArc(t,e,s,i,n){const h=n??this._crossProduct(this._sub(s,e),this._sub(i,e))>0,r=this._mid(e,s),o=this._sub(r,e);h?this._leftPerpendicular(o):this._rightPerpendicular(o),r[0]+=o[0],r[1]+=o[1],this._addBezier3(t,e,this._mix(e,.33333,r,.66667),this._mix(s,.33333,r,.66667),s,4)}_addArrow(t,e,s){const i=e[0],n=e[1],h=e[e.length-1],r=this._sub(i,n),o=this._norm(r);this._normalize(r);const a=Math.abs(this._crossProduct(r,this._sub(h,n)));let l=this._dotProduct(r,this._sub(h,n));l<.05*o?l=.05*o:l>.95*o&&(l=.95*o);const c=.5*a,u=this._leftPerp(r),_=[n[0]+r[0]*l,n[1]+r[1]*l],p=e.length-1,f=[];f.push(s?[-u[0],-u[1]]:u);let d=[-r[0],-r[1]];for(let t=1;t<p-1;t++){const s=this._sub(e[t+1],e[t]);this._normalize(s);const i=this._dotProduct(s,d),n=this._crossProduct(s,d),h=Math.sqrt((1+i)/2),r=this._sub(s,d);this._normalize(r),r[0]/=h,r[1]/=h,f.push(n<0?[-r[0],-r[1]]:r),d=s}f.push(this._rightPerp(d));for(let s=f.length-1;s>0;s--)t.push([e[s][0]+f[s][0]*c,e[s][1]+f[s][1]*c]);t.push([_[0]+f[0][0]*c,_[1]+f[0][1]*c]),t.push([_[0]+f[0][0]*a,_[1]+f[0][1]*a]),t.push(i),t.push([_[0]-f[0][0]*a,_[1]-f[0][1]*a]),t.push([_[0]-f[0][0]*c,_[1]-f[0][1]*c]);for(let s=1;s<f.length;s++)t.push([e[s][0]-f[s][0]*c,e[s][1]-f[s][1]*c])}_addDash(t,e,s){const i=this._norm(s)/7;this._normalize(s);let n=[];for(let h=0;h<=7;h++)n.push([e[0]+s[0]*h*i,e[1]+s[1]*h*i]),1&h&&(t.push(n),n=[])}_cp2(t,e,s){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,s*this._defaultSize)}_cp3(t,e,s,i){if(t.length>=3)return t[2];const n=this._mix(t[0],1-s,e,s),h=this._sub(e,t[0]);return this._normalize(h),this._rightPerpendicular(h),[n[0]+h[0]*i*this._defaultSize,n[1]+h[1]*i*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;const e=t[0],s=this._cp2(t,-4,0),i=this._sub(e,s);this._normalize(i);const n=this._rightPerp(i);return[e,s,[e[0]+(n[0]-i[0])*this._defaultSize,e[1]+(n[1]-i[1])*this._defaultSize]]}_arrowLastSeg(t){const e=t[0],s=this._cp2(t,-4,0);let i;if(t.length>=3)i=t[t.length-1];else{const t=this._sub(e,s);this._normalize(t);const n=this._rightPerp(t);i=[e[0]+(n[0]-t[0])*this._defaultSize,e[1]+(n[1]-t[1])*this._defaultSize]}return[s,i]}_offsetPath(t,e){const s=g.mO.module.execute({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[i]=(0,r.x)(h.z.fromJSONCIM(s));return i?.length?i:null}_processGeom(t){if(!t)return null;const e=[];for(const s of t){const t=s.length>1&&(0,S.Yl)(s)<this._defaultSize;if(!s||0===s.length||t)continue;const i=s.length;let n=s[0];switch(this._rule){case"PerpendicularFromFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),h=[];h.push(i),h.push(this._mid(n,t)),e.push(h);break}case"ReversedFirstSegment":{const t=this._cp2(s,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(s.length<3)return[];const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),h=[];h.push(this._mid(t,i)),h.push(n),e.push(h);break}case"SecondSegmentWithTicks":{if(s.length<3)return[];const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),h=this._sub(i,t);let r;r=this._crossProduct(h,this._sub(n,t))>0?this._rightPerp(h):this._leftPerp(h);const o=[];o.push([t[0]+(r[0]-h[0])/3,t[1]+(r[1]-h[1])/3]),o.push(t),o.push(i),o.push([i[0]+(r[0]+h[0])/3,i[1]+(r[1]+h[1])/3]),e.push(o);break}case"DoublePerpendicular":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),h=this._mid(n,t),r=this._sub(h,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const a=[];a.push(n),a.push([i[0]+r[0]*o,i[1]+r[1]*o]),e.push(a);const l=[];l.push([i[0]-r[0]*o,i[1]-r[1]*o]),l.push(t),e.push(l);break}case"OppositeToFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),h=this._mid(n,t),r=this._sub(h,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const a=[];a.push([i[0]+r[0]*o,i[1]+r[1]*o]),a.push([i[0]-r[0]*o,i[1]-r[1]*o]),e.push(a);break}case"TriplePerpendicular":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),h=this._mid(n,t),r=this._sub(h,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const a=[];a.push([i[0]+r[0]*o*.8,i[1]+r[1]*o*.8]),a.push([h[0]+.8*(n[0]-h[0]),h[1]+.8*(n[1]-h[1])]),e.push(a),e.push([i,h]);const l=[];l.push([i[0]-r[0]*o*.8,i[1]-r[1]*o*.8]),l.push([h[0]+.8*(t[0]-h[0]),h[1]+.8*(t[1]-h[1])]),e.push(l);break}case"HalfCircleFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),h=this._mid(n,t);let r=this._sub(t,n);const o=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=Math.sqrt((1+o)/2),c=Math.sqrt((1-o)/2),u=[];let _;this._crossProduct(r,this._sub(i,n))>0?(u.push(n),r=this._sub(n,h),_=t):(u.push(t),r=this._sub(t,h),_=n),this._rotateDirect(r,l,c),r[0]/=l,r[1]/=l;for(let t=1;t<=18;t++)u.push(this._add(h,r)),this._rotateDirect(r,o,a);u.push(_),e.push(u);break}case"HalfCircleSecondSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,1,-1);let h=this._sub(n,t);this._normalize(h);const r=this._crossProduct(h,this._sub(i,t))/2;this._leftPerpendicular(h);const o=[t[0]+h[0]*r,t[1]+h[1]*r];h=this._sub(t,o);const a=Math.cos(Math.PI/18);let l=Math.sin(Math.PI/18);r>0&&(l=-l);const c=[t];for(let t=1;t<=18;t++)this._rotateDirect(h,a,l),c.push(this._add(o,h));e.push(c);break}case"HalfCircleExtended":{const t=this._cp2(s,0,-2),h=this._cp3(s,t,1,-1);let r;if(i>=4)r=s[3];else{const e=this._sub(n,t);r=this._add(h,e)}const o=this._dist(t,h)/2/.75,a=this._sub(t,n);this._normalize(a,o);const l=this._sub(h,r);this._normalize(l,o);const c=[r,h];e.push(c);const u=[this._clone(h)];this._addBezier3(u,h,this._add(h,l),this._add(t,a),t,4),u.push(n),e.push(u);break}case"OpenCircle":{const t=this._cp2(s,-2,0),i=this._sub(t,n),h=Math.cos(Math.PI/18),r=-Math.sin(Math.PI/18),o=[t];for(let t=1;t<=33;t++)this._rotateDirect(i,h,r),o.push(this._add(n,i));e.push(o);break}case"CoverageEdgesWithTicks":{const t=this._cp2(s,0,-1);let h,r;if(i>=3)h=s[2];else{const e=this._sub(t,n),s=this._leftPerp(e);h=[n[0]+s[0]-.25*e[0],n[1]+s[1]-.25*e[1]]}if(i>=4)r=s[3];else{const e=this._mid(n,t),s=this._sub(n,t);this._normalize(s),this._leftPerpendicular(s);const i=this._crossProduct(s,this._sub(h,e));this._rightPerpendicular(s),r=[h[0]+s[0]*i*2,h[1]+s[1]*i*2]}const o=this._sub(t,n);let a,l;a=this._crossProduct(o,this._sub(h,n))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push(h),l.push(n),l.push([n[0]+(a[0]-o[0])/3,n[1]+(a[1]-o[1])/3]),e.push(l),a=this._crossProduct(o,this._sub(r,t))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push([t[0]+(a[0]+o[0])/3,t[1]+(a[1]+o[1])/3]),l.push(t),l.push(r),e.push(l);break}case"GapExtentWithDoubleTicks":{const t=this._cp2(s,0,2),h=this._cp3(s,t,0,1);let r;if(i>=4)r=s[3];else{const e=this._sub(t,n);r=this._add(h,e)}this._addAngledTicks(e,n,t,this._mid(h,r)),this._addAngledTicks(e,h,r,this._mid(n,t));break}case"GapExtentMidline":{const t=this._cp2(s,2,0),h=this._cp3(s,t,0,1);let r;if(i>=4)r=s[3];else{const e=this._sub(t,n);r=this._add(h,e)}const o=[];o.push(this._mid(n,h)),o.push(this._mid(t,r)),e.push(o);break}case"Chevron":{const t=this._cp2(s,-1,-1);let h;if(i>=3)h=s[2];else{const e=this._sub(t,n);this._leftPerpendicular(e),h=this._add(n,e)}e.push([t,this._makeCtrlPt(n),h]);break}case"PerpendicularWithArc":{const t=this._cp2(s,0,-2),h=this._cp3(s,t,.5,-1),r=this._sub(t,n),o=this._norm(r);r[0]/=o,r[1]/=o;const a=this._crossProduct(r,this._sub(h,n));let l=this._dotProduct(r,this._sub(h,n));l<.05*o?l=.05*o:l>.95*o&&(l=.95*o);const c=[n[0]+r[0]*l,n[1]+r[1]*l];let u=this._leftPerp(r),_=[];if(_.push([c[0]-u[0]*a,c[1]-u[1]*a]),_.push([c[0]+u[0]*a,c[1]+u[1]*a]),e.push(_),i>=4){const t=s[3];let i=this._dotProduct(r,this._sub(t,n));i<.1*o?i=.1*o:i>.9*o&&(i=.9*o);const h=[n[0]+r[0]*i,n[1]+r[1]*i],a=this._crossProduct(r,this._sub(t,n)),l=[];l.push([h[0]-u[0]*a,h[1]-u[1]*a]),l.push([h[0]+u[0]*a,h[1]+u[1]*a]),e.push(l)}const p=[t[0]+u[0]*a,t[1]+u[1]*a];u=this._sub(t,p);const f=Math.cos(Math.PI/18);let d=Math.sin(Math.PI/18);a<0&&(d=-d),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(u,f,d),_.push(this._add(p,u));e.push(_);break}case"ClosedHalfCircle":{const t=this._cp2(s,2,0),i=this._mid(n,t),h=this._sub(t,i),r=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18),a=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(h,r,o),a.push(this._add(i,h));e.push(a);break}case"TripleParallelExtended":{const t=this._cp2(s,0,-2),i=this._cp3(s,t,1,-2),h=this._mid(n,t),r=this._sub(i,t);this._normalize(r);const o=Math.abs(this._crossProduct(r,this._sub(h,t)))/2,l=this._dist(t,i),c=[t,n];c.push([n[0]+r[0]*l*.5,n[1]+r[1]*l*.5]),e.push(c);const u=[];u.push([h[0]-r[0]*o,h[1]-r[1]*o]),u.push([h[0]+r[0]*l*.375,h[1]+r[1]*l*.375]),a(u[u.length-1],1),u.push([h[0]+r[0]*l*.75,h[1]+r[1]*l*.75]),e.push(u);const _=[t,i];e.push(_);break}case"ParallelWithTicks":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n)),o=this._leftPerp(h);this._addAngledTicks(e,n,t,i),this._addAngledTicks(e,this._add2(n,o[0]*r,o[1]*r),this._add2(t,o[0]*r,o[1]*r),this._mid(n,t));break}case"Parallel":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._leftPerp(h),o=this._crossProduct(h,this._sub(i,n));let a=[n,t];e.push(a),a=[],a.push([n[0]+r[0]*o,n[1]+r[1]*o]),a.push([t[0]+r[0]*o,t[1]+r[1]*o]),e.push(a);break}case"PerpendicularToFirstSegment":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._mid(n,t),r=this._sub(t,n);this._normalize(r);const o=this._crossProduct(r,this._sub(i,n));this._leftPerpendicular(r);const a=[];a.push([h[0]-r[0]*o*.25,h[1]-r[1]*o*.25]),a.push([h[0]+r[0]*o*1.25,h[1]+r[1]*o*1.25]),e.push(a);break}case"ParallelOffset":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h);const o=[];o.push([n[0]-h[0]*r,n[1]-h[1]*r]),o.push([t[0]-h[0]*r,t[1]-h[1]*r]),e.push(o);const a=[];a.push([n[0]+h[0]*r,n[1]+h[1]*r]),a.push([t[0]+h[0]*r,t[1]+h[1]*r]),e.push(a);break}case"OffsetOpposite":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h);const o=[];o.push([n[0]-h[0]*r,n[1]-h[1]*r]),o.push([t[0]-h[0]*r,t[1]-h[1]*r]),e.push(o);break}case"OffsetSame":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h);const o=[];o.push([n[0]+h[0]*r,n[1]+h[1]*r]),o.push([t[0]+h[0]*r,t[1]+h[1]*r]),e.push(o);break}case"CircleWithArc":{let t=this._cp2(s,3,0);const h=this._cp3(s,t,.5,-1);let r,o;if(i>=4)r=s[3],o=this._crossProduct(this._sub(r,t),this._sub(h,t))>0;else{r=t,o=this._crossProduct(this._sub(r,n),this._sub(h,n))>0;const e=24*this._geomUnitsPerPoint,s=this._sub(r,n);this._normalize(s,e);const i=Math.sqrt(2)/2;this._rotateDirect(s,i,o?i:-i),t=this._add(n,s)}const l=this._sub(t,n),c=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),_=[t];for(let t=1;t<=36;t++)this._rotateDirect(l,c,u),_.push(this._add(n,l));this._add90DegArc(_,t,r,h,o),a(_[_.length-8],1),e.push(_);break}case"DoubleJog":{let t,h=this._cp2(s,-3,1),r=this._cp3(s,h,-1,-.5);if(i>=4)t=s[3];else{const e=n;n=h,t=r;const s=this._dist(n,e),i=this._dist(t,e);let o=30*this._geomUnitsPerPoint;.5*s<o&&(o=.5*s),.5*i<o&&(o=.5*i),h=this._mix(n,o/s,e,(s-o)/s),r=this._mix(t,o/i,e,(i-o)/i)}const o=this._mid(n,h),a=this._mid(t,r),l=this._dist(n,h),c=this._dist(r,t);let u=Math.min(l,c)/8;u=Math.min(u,24*this._geomUnitsPerPoint);const _=Math.cos(Math.PI/4);let p=this._sub(n,h);this._normalize(p,u),this._crossProduct(p,this._sub(t,h))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(h),f.push(this._add(o,p)),f.push(this._sub(o,p)),f.push(n),e.push(f),p=this._sub(t,r),this._normalize(p,u),this._crossProduct(p,this._sub(n,r))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(r),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),h=this._sub(i,t);this._crossProduct(h,this._sub(n,t))>0?this._rightPerpendicular(h):this._leftPerpendicular(h);const r=[h[0]/8,h[1]/8],o=this._sub(this._mid(t,i),r);e.push([o,n]);break}case"LineExcludingLastSegment":{const t=this._arrowPath(s),i=[];let n=t.length-2;for(;n--;)i.push(t[n]);e.push(i);break}case"MultivertexArrow":{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!1),e.push(i);break}case"CrossedArrow":{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!0),e.push(i);break}case"ChevronArrow":{const[t,i]=this._arrowLastSeg(s),h=10*this._geomUnitsPerPoint,r=this._sub(n,t),o=this._norm(r);this._normalize(r);const a=this._crossProduct(r,this._sub(i,t));let l=this._dotProduct(r,this._sub(i,t));l<.05*o?l=.05*o:l>.95*o-h&&(l=.95*o-h);const c=[t[0]+r[0]*l,t[1]+r[1]*l],u=this._leftPerp(r),_=[];_.push([c[0]+u[0]*a+r[0]*h,c[1]+u[1]*a+r[1]*h]),_.push(n),_.push([c[0]-u[0]*a+r[0]*h,c[1]-u[1]*a+r[1]*h]),e.push(_);break}case"ChevronArrowOffset":{const[t,i]=this._arrowLastSeg(s),h=this._sub(n,t),r=this._norm(h);this._normalize(h);const o=this._crossProduct(h,this._sub(i,t));let a=this._dotProduct(h,this._sub(i,t));a<.05*r?a=.05*r:a>.95*r&&(a=.95*r);const l=[t[0]+h[0]*a,t[1]+h[1]*a];this._leftPerpendicular(h);const c=[];c.push([l[0]+h[0]*o*.5,l[1]+h[1]*o*.5]),c.push(this._mid(l,n)),c.push([l[0]-h[0]*o*.5,l[1]-h[1]*o*.5]),e.push(c);break}case"PartialFirstSegment":{const[t,i]=this._arrowLastSeg(s),h=this._sub(n,t),r=this._norm(h);this._normalize(h);let o=this._dotProduct(h,this._sub(i,t));o<.05*r?o=.05*r:o>.95*r&&(o=.95*r);const a=[t[0]+h[0]*o,t[1]+h[1]*o];e.push([t,a]);break}case"Arch":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,1),h=this._sub(n,t),r=this._mix(i,1,h,.55),o=this._mix(i,1,h,-.55),a=[n];this._addBezier2(a,n,r,i,4),this._addBezier2(a,i,o,t,4),e.push(a);break}case"CurvedParallelTicks":{const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),h=this._sub(i,t);this._crossProduct(h,this._sub(n,t))>0?this._rightPerpendicular(h):this._leftPerpendicular(h);const r=[h[0]/8,h[1]/8],o=this._sub(this._mid(t,i),r),a=this._sub(this._mix(t,.75,i,.25),r),l=this._sub(this._mix(t,.25,i,.75),r),c=[t];this._addBezier2(c,t,a,o,3),this._addBezier2(c,o,l,i,3),e.push(c);for(let t=0;t<8;t++){const s=c[2*t+1],i=[this._clone(s)];i.push(this._add(s,[h[0]/4,h[1]/4])),e.push(i)}break}case"Arc90Degrees":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,1),h=[t];this._add90DegArc(h,t,n,i),e.push(h);break}case"TipWithPerpendicularAndTicks":{const[t,i]=this._arrowLastSeg(s),h=10*this._geomUnitsPerPoint,r=this._sub(n,t),o=this._norm(r);this._normalize(r);let a=this._crossProduct(r,this._sub(i,t)),l=this._dotProduct(r,this._sub(i,t));l<.05*o?l=.05*o:l>.95*o-h&&(l=.95*o-h);const c=this._leftPerp(r),u=[n[0]-r[0]*h,n[1]-r[1]*h],_=.5*Math.max(o-l-h,h);a=Math.abs(a);const p=[];p.push([u[0]+c[0]*(a+_)-r[0]*_,u[1]+c[1]*(a+_)-r[1]*_]),p.push([u[0]+c[0]*a,u[1]+c[1]*a]),p.push([u[0]-c[0]*a,u[1]-c[1]*a]),p.push([u[0]-c[0]*(a+_)-r[0]*_,u[1]-c[1]*(a+_)-r[1]*_]),e.push(p),e.push([u,n]);break}case"ConcentricCircles":{const t=this._cp2(s,1,0),h=this._cp3(s,t,2,0),r=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18);let l=this._dist(t,n),c=[l,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,c)),this._rotateDirect(c,r,o);if(e.push(u),i>=4){u=[];const t=s[3];l=this._dist(t,n),c=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,c)),0===t&&(u.push(this._add(n,c)),a(u[1],1)),this._rotateDirect(c,r,o);e.push(u)}u=[],l=this._dist(h,n),c=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,c)),this._rotateDirect(c,r,o);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(s)[0];const[t,i]=this._arrowLastSeg(s),h=this._sub(n,t),r=this._norm(h);this._normalize(h);const o=Math.abs(this._crossProduct(h,this._sub(i,n)));let a=Math.abs(this._dotProduct(h,this._sub(i,n)));a<.05*r?a=.05*r:a>.95*r&&(a=.95*r);const l=Math.max(o,a),c=this._leftPerp(h);let u=[];const _=[n[0]-h[0]*a*.5+c[0]*o*.5,n[1]-h[1]*a*.5+c[1]*o*.5];u.push([_[0],_[1]]),_[0]+=h[0]*l*.5+c[0]*l*.4,_[1]+=h[1]*l*.5+c[1]*l*.4,u.push([_[0],_[1]]),_[0]-=c[0]*l*.25,_[1]-=c[1]*l*.25,u.push([_[0],_[1]]),_[0]+=h[0]*l*.5+c[0]*l*.4,_[1]+=h[1]*l*.5+c[1]*l*.4,u.push([_[0],_[1]]),e.push(u),u=[],_[0]=n[0]-h[0]*a*.5-c[0]*o*.5,_[1]=n[1]-h[1]*a*.5-c[1]*o*.5,u.push([_[0],_[1]]),_[0]+=h[0]*l*.5-c[0]*l*.4,_[1]+=h[1]*l*.5-c[1]*l*.4,u.push([_[0],_[1]]),_[0]+=c[0]*l*.25,_[1]+=c[1]*l*.25,u.push([_[0],_[1]]),_[0]+=h[0]*l*.5-c[0]*l*.4,_[1]+=h[1]*l*.5-c[1]*l*.4,u.push([_[0],_[1]]),e.push(u);break}case"LinkedChevrons":{const t=this._cp2(s,-5,0),i=this._cp3(s,t,-.2,1),h=this._sub(n,t);this._normalize(h);const r=this._leftPerp(h),o=Math.abs(this._crossProduct(h,this._sub(i,t)));e.push([t,n]);const a=[];a.push([n[0]-h[0]*o+r[0]*o,n[1]-h[1]*o+r[1]*o]),a.push(n),a.push([n[0]-h[0]*o-r[0]*o,n[1]-h[1]*o-r[1]*o]),e.push(a),this._addDash(e,t,[-h[0]*o+r[0]*o,-h[1]*o+r[1]*o]),this._addDash(e,t,[-h[0]*o-r[0]*o,-h[1]*o-r[1]*o]);break}case"SegmentThenHalfCircle":{const t=this._cp2(s,2,0),h=this._cp3(s,t,1.5,0);let r;r=i>=4?s[3]:this._cp3(s,t,1.25,-.5);const o=this._sub(t,n);this._normalize(o);const a=.5*this._dist(t,h),l=this._crossProduct(o,this._sub(r,n))>0,c=Math.cos(Math.PI/18);let u=Math.sin(Math.PI/18);l&&(u=-u);const _=[n,t];o[0]*=a,o[1]*=a;const p=this._add(t,o);o[0]=-o[0],o[1]=-o[1];for(let t=1;t<=18;t++)this._rotateDirect(o,c,u),_.push(this._add(p,o));e.push(_);break}case"LineWithStraightTicks":{const t=this._cp2(s,-2,1),i=this._cp3(s,t,-1,-.5),h=this._sub(i,t);this._normalize(h);const r=this._dotProduct(h,this._sub(t,n)),o=this._dotProduct(h,this._sub(i,n));let a=[n];a.push([n[0]+h[0]*r,n[1]+h[1]*r]),a.push(t),e.push(a),a=[n],a.push([n[0]+h[0]*o,n[1]+h[1]*o]),a.push(i),e.push(a);break}case"DoubleCurve":{const t=this._cp2(s,-5,-1),i=this._cp3(s,t,2,0),h=Math.atan2(1,5),r=Math.cos(h),o=Math.sin(h),l=this._sub(t,n),c=this._dist(n,t);this._normalize(l),this._rotateDirect(l,r,-o);const u=[n];u.push([n[0]+l[0]*c*.5,n[1]+l[1]*c*.5]),a(u[1],1),u.push([n[0]+l[0]*c*.8,n[1]+l[1]*c*.8]),this._addBezier2(u,u[2],[n[0]+l[0]*c,n[1]+l[1]*c],t,3);const _=this._sub(i,t),p=this._dist(t,i);this._normalize(_),this._rotateDirect(_,r,-o),this._addBezier2(u,t,[i[0]-_[0]*p,i[1]-_[1]*p],[i[0]-_[0]*p*.8,i[1]-_[1]*p*.8],3),u.push(i),e.push(u);break}case"ParallelWithTicksByWidth":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h),r>0?(this._addAngledTicks(e,n,[n[0]+h[0]*r,n[1]+h[1]*r],t),this._addAngledTicks(e,t,[t[0]+h[0]*r,t[1]+h[1]*r],n)):(this._addAngledTicks(e,[n[0]+h[0]*r,n[1]+h[1]*r],n,t),this._addAngledTicks(e,[t[0]+h[0]*r,t[1]+h[1]*r],n,t));break}case"EnclosingRoundedRectangle":{const t=this._cp2(s,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],i=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],h=i[0]-e[0],r=e[1]-i[1],o=Math.min(h,r)/10,a=[];a.push([e[0]+o+.75*(h-2*o),e[1]]),a.push([i[0]-o,e[1]]),this._add90DegArc(a,[i[0]-o,e[1]],[i[0],e[1]-o],[i[0],e[1]]),a.push([i[0],i[1]+o]),this._add90DegArc(a,[i[0],i[1]+o],[i[0]-o,i[1]],i),a.push([e[0]+o,i[1]]),this._add90DegArc(a,[e[0]+o,i[1]],[e[0],i[1]+o],[e[0],i[1]]),a.push([e[0],e[1]-o]),this._add90DegArc(a,[e[0],e[1]-o],[e[0]+o,e[1]],e),a.push([e[0]+o+.75*(h-2*o),e[1]]);break}case"ParallelOffsetByValue":{if(s.length<2||0===this._width)break;const t=this._offsetPath(s,.5*this._width);t&&e.push(t);const i=this._offsetPath(s,.5*-this._width);i&&e.push(i);break}default:e.push(s)}}return e}}class A{static{this.instance=null}static local(){return null===A.instance&&(A.instance=new A),A.instance}execute(t,e,s){return new k(t,e,s)}}class k extends c{constructor(t,e,s){super(t,!0,!0),this._curveHelper=new u;const i=s?.geomUnitsPerPoint;this._beginCut=(void 0!==e.beginCut?e.beginCut:1)*i,this._endCut=(void 0!==e.endCut?e.endCut:1)*i,this._middleCut=(void 0!==e.middleCut?e.middleCut:0)*i,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){const{_beginCut:e,_endCut:s,_middleCut:i}=this,n=t.pathLength(),r=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==s||0!==i)if(e+s+i>=n)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(r,t,0,e),this._curveHelper.appendSubCurve(r,t,.5*(n-i),.5*(n+i)),this._curveHelper.appendSubCurve(r,t,n-s,s)}else if(0===e&&0===s&&0===i)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else e+s+i<n&&(0===i?this._curveHelper.appendSubCurve(r,t,e,n-s):(this._curveHelper.appendSubCurve(r,t,e,.5*(n-i)),this._curveHelper.appendSubCurve(r,t,.5*(n+i),n-s)));return 0===r.totalSize?null:r}}class T{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let s=0;s<t.length;s++){let i=Math.abs(t[s]);e&&i<1e-7&&(i=1e-7),this._values.push(i),this._length+=i}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){const e=this._values?this._values.length:0;for(let s=0;s<e;++s)this._values[s]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class L{constructor(){this.pt=null,this.ca=0,this.sa=0}}class E{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class N extends u{constructor(t=0,e=!1){super(t,e),this._tempPos=new E,this._tempPt=[0,0],this._tolerance=.03,this._currentPosition=new E}updateTolerance(t){this._tolerance=.03*t}init(t,e,s=!0){return s?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=0){const s=new E;return!!this._nextPosition(t,s,null,e)&&(s.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);const[e,s]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=s}nextPointAndAngle(t,e,s=0){const i=this._tempPos;if(!this._nextPosition(t,i,null,s))return!1;i.copyTo(this._currentPosition),e.pt=this._getPoint(i);const[n,h]=this._getAngleCS(this._tempPt,i);return e.ca=n,e.sa=h,!0}nextCurve(t){if(0===t)return null;const e=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();const s=new E;return this._nextPosition(t,s,e,1)?(s.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,s,i){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(s){if(0===s.pathSize)if(0===n){const t=e.segment[0];s.pushXY(t[0],t[1])}else s.pushPoint(this.getSegCoord2D(e.segment,n));const t=e.segment[1];s.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return 0!==i&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===i?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,s){0===s.pathSize&&(0===n?s.pushPoint(e.segment[0]):s.pushPoint(this.getSegCoord2D(e.segment,n)));const t=e.abscissa/e.segmentLength;1===t?s.pushPoint(e.segment[1]):s.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){const s=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,s)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;const e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let s=e+this._partSegCount+1;if(s>=this._pathCursor.pathSize&&(s=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(s),this._patternLength>0){const t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap;let s=Math.round((this._partLength-(t+e))/this._patternLength);s<=0&&(s=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+s*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}var G=s(93397);class O{static{this.instance=null}static local(){return null===O.instance&&(O.instance=new O),O.instance}execute(t,e,s){return new R(t,e,s)}}class R extends c{constructor(t,e,s){super(t,!0,!0),this._firstCurve=null;const i=s.geomUnitsPerPoint;this._walker=new N,this._walker.updateTolerance(i),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*i,this._offsetAtEnd=(e.customEndingOffset??0)*i;let n=(0,G.FH)(e).dashTemplate;null==n&&(n=[]),n.length%2&&(n=[...n,...n]);let h=0;for(;h<n.length&&0===n[h];)h++;let r=0;const o=[];for(let t=h;t<n.length;t++)0===n[t]?r++:0===r?o.push(n[t]):1&r?(o[o.length-1]+=n[t],r=0):(o.push(n[t]),r=0);n=o,n.length<=1?n=0===n.length||h%2==0?[]:[-1]:n.length%2==1?h%2==1?n.unshift(0):n.push(0):h%2==1&&(n.unshift(0),n.push(0)),this._pattern=new T,this._pattern.init(n,!1),this._pattern.scale(i)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;const e=(0,r.A)(t);return h.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}const s=t.pathLength();if(this._pattern.isEmpty()||s<.1*this._pattern.length()){const e=(0,r.A)(t);return h.z.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){const e=(0,r.A)(t);return h.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let s=t/this._pattern.length();s-=Math.floor(s),t=s*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let i=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),i=!i;e-=t,i?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let s=this._walker.nextCurve(e);if(s)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)s.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&(s.pushCursor(this._firstCurve),this._firstCurve=null)):this.iteratePath=!0;else this.iteratePath=!1,s=this._firstCurve,this._firstCurve=null;return s?.reset(),s}}class X{static{this.instance=null}static local(){return null===X.instance&&(X.instance=new X),X.instance}execute(t,e,s){return new Y(t,e,s)}}class Y{constructor(t,e,s){this._inputGeometries=t,this._tileKey=s.tileKey,this._maxInflateSize=s.maxInflateSize*s.geomUnitsPerPoint,this._preventClipping=s.preventClipping,this._width=(void 0!==e.width?e.width:2)*s.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){const e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:h.z.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();const e=g.$Z.module,s=!this._preventClipping&&this._tileKey?(0,g.qc)(t,this._maxInflateSize,!0):t.clone();if(!s)continue;const i={...s.asJSON(),spatialReference:{wkid:d.A.WebMercator.wkid}},n=e.execute(i,-this._width);if(n)for(const t of n.rings)if(t){s.startPath();for(const e of t.reverse())s.pushXY(e[0],s.yFactor*e[1])}return s}}return null}}var F=s(537);class D{static{this.instance=null}static local(){return null===D.instance&&(D.instance=new D),D.instance}execute(t,e,s){return new W(t,e,s)}}class W{constructor(t,e,s){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next();const e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return H(t);case"ConvexHull":return this._constructConvexHull(t);default:return V(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{const e=g.lX.module,s={...t.asJSON(),spatialReference:{wkid:d.A.WebMercator.wkid}},i=e.execute(s);return i?h.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function H(t){const e=(0,F.z8)(t),s={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return h.z.fromJSONCIM(s)}function V(t){switch(t.geometryType){case"esriGeometryPolyline":{const e=[];for(;t.nextPath();)U(t,e);return h.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function U(t,e){if(t.seekPathStart(),!t.nextPoint())return;const s=t.x,i=t.y,n=[[s,i]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([s,i])}class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,s){return new q(t,e,s)}}class q extends c{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new u;const i=s.geomUnitsPerPoint;this._length=(void 0!==e.length?e.length:20)*i,this._angle=void 0!==e.angle?e.angle:225,this._position=void 0!==e.position?e.position:50,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);const s=t.x,i=t.y;t.seekInPath(t.pathSize-1);const n=t.x,r=t.y,o=[n-s,r-i];this._curveHelper.normalize(o);const a=s+(n-s)*this._position/100,l=i+(r-i)*this._position/100,c=Math.cos((90-this._angle)/180*Math.PI);let u=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(u=-u),this._mirror=!this._mirror;const _=[a-this._length/2*c,l-this._length/2*u],p=[a+this._length/2*c,l+this._length/2*u];return e.pushPath([[s,i],_,p,[n,r]]),e}}class J{static{this.instance=null}static local(){return null===J.instance&&(J.instance=new J),J.instance}execute(t,e,s){return new Z(t,e,s)}}class Z{constructor(t,e,s){this._inputGeometries=t;const i=s.geomUnitsPerPoint;this._offsetX=void 0!==e.offsetX?e.offsetX*i:0,this._offsetY=void 0!==e.offsetY?e.offsetY*i:0}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=t.x+e,t.y=t.y+s;return t.reset(),t}}var j=s(60408);class ${static{this.instance=null}static local(){return null===$.instance&&($.instance=new $),$.instance}execute(t,e,s){return new K(t,e,s)}}class K{constructor(t,e,s){const i=s.geomUnitsPerPoint,n=s.maxInflateSize;this._preventClipping=s.preventClipping,this._inputGeometries=t,this._tileKey=s.tileKey,this._curveHelper=new u,this._offset=(e.offset??1)*i,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*i),10),this._offsetFlattenError=.03*i}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){const e=(0,r.A)(t),s=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(s){const e=h.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(s),e}return null}const e=t.asJSON();if((0,j.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return h.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}const e=!this._preventClipping&&this._tileKey?(0,g.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;const s=g.xR.module,i=g.mO.module,n=g.hd.module,o=s.execute({...e.asJSON(),spatialReference:{wkid:d.A.WebMercator.wkid}});if(!o)continue;let a,l=Q(this._method);return"esriGeometryPolygon"===t.geometryType?("square"===l&&(l="bevel"),a=n.executeMany([o],[this._offset],l,"round")[0]):a=i.execute(o,-this._offset,{joins:l,flattenError:this._offsetFlattenError,miterLimit:4}),a?h.z.fromJSONCIM(a):null}return null}}function Q(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var tt=s(12359);class et{static{this.instance=null}static local(){return null===et.instance&&(et.instance=new et),et.instance}execute(t,e,s){return new st(t,e,s)}}class st{constructor(t,e,s){const i=s.geomUnitsPerPoint;this._inputGeometries=t,this._length=(void 0!==e.length?e.length:y.D.CIMGeometricEffectRadial.length)*i,this._angle=void 0!==e.angle?e.angle*Math.PI/180:y.D.CIMGeometricEffectRadial.angle,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]]),e}if("esriGeometryPolygon"===t.geometryType){const e=(0,tt.IK)(t);if(!e)return null;const s=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");return s.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),s}t=this._inputGeometries.next()}return null}}class it{static{this.instance=null}static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,s){return new nt(t,e,s)}}class nt{constructor(t,e,s){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return ht(t.clone());t=this._inputGeometries.next()}return null}}function ht(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);const s=t.x,i=t.y;t.seekInPath(t.pathSize-e-1);const n=t.x,h=t.y;t.x=s,t.y=i,t.seekInPath(e),t.x=n,t.y=h}return t.reset(),t}class rt{static{this.instance=null}static local(){return null===rt.instance&&(rt.instance=new rt),rt.instance}execute(t,e,s){return new ot(t,e,s)}}class ot{constructor(t,e,s){this._inputGeometries=t,this._rotateAngle=void 0!==e.angle?e.angle*Math.PI/180:0}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,F.z8)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),s,i)}t=this._inputGeometries.next()}return null}_rotate(t,e,s){const i=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){const h=t.x-e,r=t.y-s;t.x=e+h*i-r*n,t.y=s+h*n+r*i}return t.reset(),t}}class at{static{this.instance=null}static local(){return null===at.instance&&(at.instance=new at),at.instance}execute(t,e,s){return new lt(t,e,s)}}class lt{constructor(t,e,s){this._inputGeometries=t,this._xFactor=void 0!==e.xScaleFactor?e.xScaleFactor:1.15,this._yFactor=void 0!==e.yScaleFactor?e.yScaleFactor:1.15}next(){const t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor)return t;if("esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,F.z8)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),s,i)}}return null}_scaleCursor(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=s+(t.y-s)*this._yFactor;return t.reset(),t}}class ct{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw new Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,s){s&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(const s of this._polyline){if(t<e+s.length)return s[t-e];e+=s.length}return null}getGeometry(){return this._polyline}}class ut{static{this.instance=null}static local(){return null===ut.instance&&(ut.instance=new ut),ut.instance}execute(t,e,s){return new _t(t,e,s)}}class _t extends c{constructor(t,e,s){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}const e=[],s=new Array(t.pathSize);let i=0;for(t.seekPathStart();t.nextPoint();)s[i++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,r=!0,o=!1,a=!this._invert;i=0;const l=new ct;let c=e[0];for(;i<e.length-1;){const t=e[i+1],h=s[i],u=s[i+1];i++,r&&(a=h||u?this._invert:!this._invert,r=!1),a?(l.addSegment(c,t,n),n=!1):o=!0,c=t,u&&(a?(a=!1,n=!0):a=!0)}const u=l.getGeometry();if(0===u.length)return null;if(!o&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){const t=u[u.length-1];return t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]||t.push([t[0][0],t[0][1]]),h.z.fromJSONCIM({paths:u})}const _=u[u.length-1];return l.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&u.length>1&&(u[u.length-1].push(...u[0]),u.splice(0,1)),h.z.fromJSONCIM({paths:u})}}var pt=s(49186),ft=s(53966),dt=s(6774);const gt=()=>ft.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class mt{static{this.instance=null}static local(){return null===mt.instance&&(mt.instance=new mt),mt.instance}execute(t,e,s){return new xt(t,e,s)}}class xt extends c{constructor(t,e,s){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new dt.bR(NaN,NaN),this._lastWidth=0;const i=s.geomUnitsPerPoint;this._geomUnitsPerPoint=i,this._halfFromWidth=Math.abs(void 0!==e.fromWidth?e.fromWidth:0)*i*.5,this._halfToWidth=Math.abs(void 0!==e.toWidth?e.toWidth:1)*i*.5,this._originalLength=(void 0!==e.length?e.length:0)*i,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}const e=t.getCurrentPath().asJSON(),s=g.NS.module.execute(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),i=null==s?null:(0,j.Bi)(s)?s.rings:(0,j.Rg)(s)?s.paths:null;if(!i)return gt().error(new pt.A("mapview-bad-resource","Unable to process geometry")),null;const n=g.Xs.module.execute(s);if((0===this._originalLength||this._originalLength>n)&&n>0){this._length=n;const t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){const e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;const r=[];for(const t of i){const e=new ct,s=new ct;let i=0;this._setFromOffset(t.slice(0,2),e,s);for(let n=0,h=3;h<=t.length;++n,++h)i=this._setOffset(t.slice(n,h),i,e,s);this._setToOffset(t.slice(-2),i,e,s);const[n]=e.getGeometry(),[h]=s.getGeometry();r.push([...n,...h.reverse()])}const o={rings:r,spatialReference:{wkid:d.A.WebMercator.wkid}},a=g.yM.module.execute(o);return h.z.fromJSONCIM(a)}_setFromOffset([[t,e],[s,i]],n,h){const r=this._halfFromWidth,o=new dt.bR(s-t,i-e).normalize().scale(r);n.beginPath([t-o.y,e+o.x]),h.beginPath([t+o.y,e-o.x])}_setToOffset([[t,e],[s,i]],n,h,r){let o;o=(n+=Math.sqrt((s-t)**2+(i-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;const a=new dt.bR(s-t,i-e).normalize().scale(o);h.lineTo([s-a.y,i+a.x]),r.lineTo([s+a.y,i-a.x])}_setOffset([[t,e],[s,i],[n,h]],r,o,a){const l=Math.sqrt((s-t)**2+(i-e)**2);let c;c=r+l>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(r+l)/this._length,r+=l;const u=new dt.bR(s,i),_=new dt.bR(s-t,i-e).normalize(),p=new dt.bR(n-s,h-i).normalize(),f=dt.bR.sub(p,_),d=o.getPointCount(),g=a.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();const m=_.x*p.x+_.y*p.y;if(m>.99){const t=dt.bR.add(_,p).scale(c/2),e=t.clone().rotate(this._slopeC,this._slopeS);o.lineTo([u.x+e.x,u.y+e.y]);const s=t.rotateReverse(this._slopeC,this._slopeS);a.lineTo([u.x-s.x,u.y-s.y])}else{const s=_.x*p.y-_.y*p.x;if(f.scale(1/s),s<0){f.scale(-c).rotateReverse(this._slopeC,this._slopeS);const t=a.getXY(g-1);t||gt().error(new pt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const e=dt.bR.add(u,f).sub(dt.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){const t=_.clone().scale(-c).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-c).rotateReverse(this._slopeC,this._slopeS);a.lineTo([u.x+t.x,u.y+t.y]),a.lineTo([u.x,u.y]),a.lineTo([u.x+e.x,u.y+e.y])}else a.lineTo([u.x+f.x,u.y+f.y])}else{f.scale(c).rotate(this._slopeC,this._slopeS);const t=o.getXY(d-1);t||gt().error(new pt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const e=dt.bR.add(u,f).sub(dt.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){const t=_.clone().scale(c).rotate(this._slopeC,this._slopeS),e=p.clone().scale(c).rotate(this._slopeC,this._slopeS);o.lineTo([u.x+t.x,u.y+t.y]),o.lineTo([u.x,u.y]),o.lineTo([u.x+e.x,u.y+e.y])}else o.lineTo([u.x+f.x,u.y+f.y])}const i=Math.acos(m);let n=1;if(c>.25){const t=2*Math.acos(1-.25/c);t<i&&(n=Math.round(i/t))}const h=Math.cos(i/n),r=Math.sin(i/n),l=_.clone();if(s<0){l.rotate(this._slopeC,this._slopeS);const s=o.getXY(d-1);s||gt().error(new pt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const i=dt.bR.add(u,l.clone().scale(this._lastWidth)),n=dt.bR.sub(i,dt.bR.fromArray(s)),h=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&h>0){const s=new dt.bR(t,e),i=this._lastTangent1.clone().scale(this._lastWidth);i.rotate(this._slopeC,this._slopeS);const n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),o.lineTo([s.x+i.x,s.y+i.y]),o.lineTo([s.x,s.y]),o.lineTo([s.x+n.x,s.y+n.y])}}else{l.scale(-1).rotateReverse(this._slopeC,this._slopeS);const s=a.getXY(g-1);s||gt().error(new pt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const i=dt.bR.add(u,l.clone().scale(this._lastWidth)),n=dt.bR.sub(i,dt.bR.fromArray(s)),h=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&h>0){const s=new dt.bR(t,e),i=this._lastTangent1.clone().scale(-this._lastWidth);i.rotateReverse(this._slopeC,this._slopeS);const n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),a.lineTo([s.x+i.x,s.y+i.y]),a.lineTo([s.x,s.y]),a.lineTo([s.x+n.x,s.y+n.y])}}l.scale(c);for(let t=0;t<=n;t++)s<0?(o.lineTo([u.x+l.x,u.y+l.y]),l.rotateReverse(h,r)):(a.lineTo([u.x+l.x,u.y+l.y]),l.rotate(h,r))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=c,r}}class Pt{static{this.instance=null}static local(){return null===Pt.instance&&(Pt.instance=new Pt),Pt.instance}execute(t,e,s){return new yt(t,e,s)}}class yt{constructor(t,e,s){this._inputGeometries=t;const i=s.geomUnitsPerPoint;this._height=(void 0!==e.amplitude?e.amplitude:2)*i,this._period=(void 0!==e.period?e.period:3)*i,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new T,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new N,this._walker.updateTolerance(i)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;const e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){const e=h.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();const s=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,s,!1);break;case"Square":this._constructSquare(e,s);break;case"Triangle":this._constructTriangle(e,s);break;case"Random":this._constructCurve(e,s,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,s){let i=Math.round(e/this._period);0===i&&(i=1);const n=16*i+1,h=e/i,r=this._period/16,o=1/n,a=2*Math.PI*e/h,l=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new L;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let d=0;for(;;){if(!this._walker.nextPointAndAngle(r,f)){t.pushPoint(this._walker.getPathEnd());break}{const e=d;let i;if(d+=o,s){const t=this._height/2*(1+.3*Math.sin(_*a*e+l));i=t*Math.sin(a*e+c),i+=t*Math.sin(p*a*e+u),i/=2}else i=.5*this._height*Math.sin(.5*a*e);t.pushXY(f.pt[0]-i*f.sa,f.pt[1]+i*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new L;this._walker.curPointAndAngle(i);const n=new L;if(this._walker.nextPointAndAngle(this._period,n)){const h=new L;this._walker.nextPointAndAngle(this._period,h)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(i.pt[0]-this._height/2*i.sa,i.pt[1]+this._height/2*i.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(h.pt[0]+this._height/2*h.sa,h.pt[1]-this._height/2*h.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new L;this._walker.curPointAndAngle(i);const n=new L;if(this._walker.nextPointAndAngle(this._period/2,n)){const h=new L;this._walker.nextPointAndAngle(this._period,h)&&(this._walker.nextPosition(this._period/2)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(h.pt[0]+this._height/2*h.sa,h.pt[1]-this._height/2*h.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class Mt{static{this.instance=null}static local(){return null===Mt.instance&&(Mt.instance=new Mt),Mt.instance}execute(t,e,s){return new bt(t,e,s)}}class bt extends l{constructor(t,e,s){super(t),this._geometryWalker=new N,this._geometryWalker.updateTolerance(s),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*s,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*s,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*s,this._pattern=new T,this._pattern.init(e.placementTemplate),this._pattern.scale(s),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{"WithFullGap"===this._originalEndings&&this.isClosed?this._endings="WithMarkers":this._endings=this._originalEndings,this._pattern.extPtGap=0;let s,i=!0;switch(this._endings){case"NoConstraint":s=-this._position,s=this._adjustPosition(s),i=!1;break;case"WithHalfGap":default:s=-this._pattern.lastValue()/2;break;case"WithFullGap":s=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":s=0;break;case"Custom":s=-this._position,s=this._adjustPosition(s),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,i))return null;this._pattern.reset();let n=0;for(;s>n;)s-=n,n=this._pattern.nextValue();n-=s,e=n,this.iteratePath=!0}const s=new L;return this._geometryWalker.nextPointAndAngle(e,s)?"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(s.pt[0]-this._offset*s.sa,s.pt[1]+this._offset*s.ca),this._angleToLine&&this.internalPlacement.setRotateCS(s.ca,s.sa),this.internalPlacement):(this.iteratePath=!1,null)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class wt{static{this.instance=null}static local(){return null===wt.instance&&(wt.instance=new wt),wt.instance}execute(t,e,s){return new Ct(t,e,s)}}class Ct extends l{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new u,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._type=e.extremityPlacement??"Both",this._position=void 0!==e.offsetAlongLine?e.offsetAlongLine*s:0,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,s){if(this._placePerPart||(s?t.seekPath(0):t.seekPath(t.totalSize-1)),s||t.seekPathEnd(),s?t.nextPoint():t.prevPoint()){let i=0,[n,h]=[0,0],[r,o]=[t.x,t.y];const a=[0,0];for(;s?t.nextPoint():t.prevPoint();){n=r,h=o,r=t.x,o=t.y;const s=this._curveHelper.getLength(n,h,r,o);if(i+s>e){const t=(e-i)/s,[l,c]=this._curveHelper.getAngleCS(a,n,h,r,o,t),u=this._curveHelper.getCoord2D(n,h,r,o,t);return this.internalPlacement.setTranslate(u[0]-this._offset*c,u[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(-l,-c),this.internalPlacement}i+=s}}return null}}const vt=.001;class St{static{this.instance=null}static local(){return null===St.instance&&(St.instance=new St),St.instance}execute(t,e,s){return new zt(t,e,s)}}class zt extends l{constructor(t,e,s){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new N,this._walker.updateTolerance(s),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*s,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){const{fromGeometry:e}=g.vZ.module,s=e(t.getCurrentPath().asJSON()).getGeometry(),i=s.getPathStart(0);this._segmentIterator=s.querySegmentIteratorAtVertex(i),this._segCount=s.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=s.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);const e=!isNaN(this._from),s=!isNaN(this._to);e&&(this._from=Math.round(this._from/vt)*vt,Math.abs(this._from)<vt&&(this._from=0)),s&&(this._to=Math.round(this._to/vt)*vt,Math.abs(this._to)<vt&&(this._to=0));let i=e?Math.floor(this._from/this._interval):0,n=s?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(i*this._interval-this._from)<vt&&(!this._skipRate||i%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&s&&!(Math.abs(this._from-this._to)<vt))if(this._from<=this._to){i*this._interval<this._from+vt&&++i,n*this._interval>this._to-vt&&--n;for(let t=i;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{i*this._interval>this._from-vt&&--i,n*this._interval<this._to+vt&&++n;for(let t=n;t<=i;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){const t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<vt&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}const s=this._ms.pop(),i=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<vt?e:(s-this._from)/(this._to-this._from);this._seg.queryCoord2D(i,this._pt);const n=this._seg.getTangent(i);let{x:h,y:r}=n.normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*r,this._pt.y+this._offset*h),this._angleToLine&&(this._keepUpright&&h<0&&(h=-h,r=-r),this.internalPlacement.setRotateCS(h,r)),this.internalPlacement.setMeasure(s),this.internalPlacement}}class It{static{this.instance=null}static local(){return null===It.instance&&(It.instance=new It),It.instance}execute(t,e,s){return new At(t,e,s)}}class At extends l{constructor(t,e,s){super(t),this._walker=new N,this._walker.updateTolerance(s),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._beginGap=void 0!==e.beginPosition?e.beginPosition*s:0,this._endGap=void 0!==e.endPosition?e.endPosition*s:0,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new T,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){const t=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+t;e=s-this._prevPos,this._prevPos=s}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();const s=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+s;e=i-this._prevPos,this._prevPos=i,this.iteratePath=!0}const s=new L;return this._walker.nextPointAndAngle(e,s,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(s)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;const e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;const s=this._posIndex<this._positions.length;return this.iterateMultiPath=s,this.iteratePath=s,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;const s=t.pathLength();s<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(s),this._totalPathLen+=s)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){const s=Math.max(0,Math.min(e,this._totalPathLen));let i=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(s<=this._pathStarts[t]+this._pathLengths[t]){i=t;break}if(!t.seekPath(this._pathIndexes[i]))return null;if(!this._walker.init(t,this._pattern,!1))return null;const n=new L,h=Math.max(0,Math.min(s-this._pathStarts[i],this._pathLengths[i]));return this._walker.nextPointAndAngle(h,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);const e=this._isFirst&&this._flipFirst;let s,i;return this._angleToLine?(s=t.ca,i=t.sa):(s=1,i=0),e&&(s=-s,i=-i),this.internalPlacement.setRotateCS(s,i),this._isFirst=!1,this.internalPlacement}}var kt=s(87811);const Tt=512,Lt=24,Et=1e-6;class Nt{static{this.instance=null}static local(){return null===Nt.instance&&(Nt.instance=new Nt),Nt.instance}execute(t,e,s,i){return new Gt(t,e,s,i)}}class Gt{constructor(t,e,s,i){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*s,this._stepY=Math.abs(e.stepY??16)*s,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??"Fixed","Random"===this._gridType){const t=e.seed??13,s=1;this._randomLCG=new kt.A(t*s),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*s,this._offsetY=(e.offsetY??0)*s,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=i){const[t,e,s,n]=i.split("/"),h=parseFloat(t),r=parseFloat(e),o=parseFloat(s),a=parseFloat(n);this._graphicOriginX=-(a*2**h+o)*Tt,this._graphicOriginY=r*Tt,this._testInsidePolygon=!0}this._internalPlacement=new o.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Gt._randValues){Gt._randValues=[];for(let t=0;t<Lt;t++)for(let t=0;t<Lt;t++)Gt._randValues.push(this._randomLCG.getFloat()),Gt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,s,i,n,h,r,o,a,l,c,u,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,o=a=p=u=Number.MAX_VALUE,l=c=f=_=-Number.MAX_VALUE;const d=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)r=t.x,h=t.y,e=r-this._graphicOriginX-this._offsetX,s=h-this._graphicOriginY-this._offsetY,d?(i=this._cosAngle*e-this._sinAngle*s,n=this._sinAngle*e+this._cosAngle*s):(i=e,n=s),o=Math.min(o,i),l=Math.max(l,i),a=Math.min(a,n),c=Math.max(c,n),u=Math.min(u,h),_=Math.max(_,h),p=Math.min(p,r),f=Math.max(f,r);u=u!==Number.MAX_VALUE?u:-512-this._stepY,_=_!==-Number.MAX_VALUE?_:this._stepY,p=p!==Number.MAX_VALUE?p:-this._stepX,f=f!==-Number.MAX_VALUE?f:Tt+this._stepX;const g=_-u,m=f-p;if(this._verticalSubdivision=g>=m,this._polygonMin=this._verticalSubdivision?u:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=Tt-this._graphicOriginX-this._offsetX+this._stepX,s=-512-this._graphicOriginY-this._offsetY-this._stepY,i=0-this._graphicOriginY-this._offsetY+this._stepY;if(d){const n=[[t,s],[t,i],[e,s],[e,i]];t=s=Number.MAX_VALUE,e=i=-Number.MAX_VALUE;for(const h of n){const n=this._cosAngle*h[0]-this._sinAngle*h[1],r=this._sinAngle*h[0]+this._cosAngle*h[1];t=Math.min(t,n),e=Math.max(e,n),s=Math.min(s,r),i=Math.max(i,r)}}o=o!==Number.MAX_VALUE?Math.max(o,t):t,a=a!==Number.MAX_VALUE?Math.max(a,s):s,l=l!==-Number.MAX_VALUE?Math.min(l,e):e,c=c!==-Number.MAX_VALUE?Math.min(c,i):i}this._xMin=Math.round(o/this._stepX),this._xMax=Math.round(l/this._stepX),this._yMin=Math.round(a/this._stepY),this._yMax=Math.round(c/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,u,_)}_buildAccelerationMap(t,e,s,i,n){t.reset();const h=new Map,r=this._verticalSubdivision,o=r?n-i:s-e;let a=Math.ceil(o/10);if(a<=1)return;const l=Math.floor(o/a);let c,u,_,p,f,d,g,m,x,P,y;for(a++,this._delta=l,r?(x=-512-2*this._stepY,P=2*this._stepY,y=i):(x=-2*this._stepX,P=Tt+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(c=t.x,u=t.y;t.nextPoint();c=_,u=p){if(_=t.x,p=t.y,r){if(u===p||u<x&&p<x||u>P&&p>P)continue;f=Math.min(u,p),d=Math.max(u,p)}else{if(c===_||c<x&&_<x||c>P&&_>P)continue;f=Math.min(c,_),d=Math.max(c,_)}for(;f<d;)g=Math.floor((f-y)/l),Ot(g,c,u,_,p,h),f+=l;m=Math.floor((d-y)/l),m>g&&Ot(m,c,u,_,p,h)}this._accelerationMap=h}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);const e=this._currentY*this._stepY+this._offsetY;let s,i;if(this._currentX++,"Random"===this._gridType){const n=(this._currentX%Lt+Lt)%Lt,h=(this._currentY%Lt+Lt)%Lt;s=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Gt._randValues[h*Lt+n])*2/3,i=this._graphicOriginY+e+this._stepY*this._randomness*(.5-Gt._randValues[h*Lt+n+1])*2/3}else s=this._graphicOriginX+this._cosAngle*t+this._sinAngle*e,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*e;if(!this._testInsidePolygon||this._isInsidePolygon(s,i,this._geometryCursor))return this._internalPlacement.setTranslate(s,i),this._internalPlacement}}_isInsidePolygon(t,e,s){if(null==this._accelerationMap)return function(t,e,s){let i,n,h,r,o=0;for(t+=Et,e+=Et,s.reset();s.nextPath();)if(s.nextPoint())for(i=s.x,n=s.y;s.nextPoint();i=h,n=r)h=s.x,r=s.y,n>e!=r>e&&((h-i)*(e-n)-(r-n)*(t-i)>0?o++:o--);return 0!==o}(t,e,s);t+=Et,e+=Et;const i=this._verticalSubdivision,n=i?e:t,h=Math.floor((n-this._polygonMin)/this._delta),r=this._accelerationMap.get(h);if(!r)return!1;let o,a,l,c=0;for(const s of r){if(o=s[0],a=s[1],i){if(o[1]>e==a[1]>e)continue;l=(a[0]-o[0])*(e-o[1])-(a[1]-o[1])*(t-o[0])}else{if(o[0]>t==a[0]>t)continue;l=(a[1]-o[1])*(t-o[0])-(a[0]-o[0])*(e-o[1])}l>0?c++:c--}return 0!==c}}function Ot(t,e,s,i,n,h){let r=h.get(t);r||(r=[],h.set(t,r)),r.push([[e,s],[i,n]])}class Rt{static{this.instance=null}static local(){return null===Rt.instance&&(Rt.instance=new Rt),Rt.instance}execute(t,e,s){return new Xt(t,e,s)}}class Xt extends l{constructor(t,e,s){super(t),this._curveHelper=new u,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0!==e.startPointOffset?e.startPointOffset*s:0,this._epsilon=.001*s}processPath(t){const e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||(this.iteratePath=!0),t.nextPoint()){let[e,s]=[t.x,t.y],[i,n]=[0,0];const h=[0,0];for(;t.nextPoint();){i=t.x,n=t.y;const r=this._curveHelper.getLength(e,s,i,n);if(r<this._epsilon){e=i,s=n;continue}const o=.5+this._position/r,[a,l]=this._curveHelper.getAngleCS(h,e,s,i,n,o),c=this._curveHelper.getCoord2D(e,s,i,n,o);return this.internalPlacement.setTranslate(c[0]-this._offset*l,c[1]+this._offset*a),this._angleToLine&&this.internalPlacement.setRotateCS(a,l),this.internalPlacement}}return this.iteratePath=!1,null}const s="LineEnd"===this._relativeTo;return this.onLine(t,e,s)}onLine(t,e,s){let i,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),i=t.pathLength()/2+e;break;case"LineBeginning":i=e;break;case"LineEnd":i=e,n=!0}s?t.seekPathEnd():t.seekPathStart();let h=0;if(s?t.prevPoint():t.nextPoint()){let[e,r]=[t.x,t.y],[o,a]=[0,0];const l=[0,0];for(;s?t.prevPoint():t.nextPoint();){o=t.x,a=t.y;const s=this._curveHelper.getLength(e,r,o,a);if(h+s>i){const t=(i-h)/s,[c,u]=this._curveHelper.getAngleCS(l,e,r,o,a,t),_=this._curveHelper.getCoord2D(e,r,o,a,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*u,_[1]+p*c),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-c,-u):this.internalPlacement.setRotateCS(c,u)),this.internalPlacement}e=o,r=a,h+=s}}return null}}class Yt{static{this.instance=null}static local(){return null===Yt.instance&&(Yt.instance=new Yt),Yt.instance}execute(t,e,s){return new Ft(t,e,s)}}class Ft extends l{constructor(t,e,s){super(t),this._curveHelper=new u,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||(this._preparePath(t),this.iteratePath=!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;const e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let s=e[0],i=e[1];if(0!==this._offset){const t=Math.cos(e[2]),n=Math.sin(e[2]);s-=this._offset*n,i+=this._offset*t}return this.internalPlacement.setTranslate(s,i),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();const e=t.isClosed();let s=0,i=!1,n=0,h=0;if(t.seekPathStart(),t.nextPoint()){let r=t.x,o=t.y,a=t.getControlPoint(),l=!0,c=t.nextPoint();for(;c;){const u=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(r,o,u,_,0)),l?(l=!1,e?(s=n,i=a):(this._endPoints||this._controlPoints&&a)&&this._tags.push([r,o,n])):a?this._controlPoints&&this._tags.push([r,o,Dt(h,n)]):this._regularVertices&&this._tags.push([r,o,Dt(h,n)]),(this._angleToLine||0!==this._offset)&&(h=this._curveHelper.getAngle(r,o,u,_,1)),c=t.nextPoint(),c||(e?p||i?this._controlPoints&&this._tags.push([u,_,Dt(h,s)]):this._regularVertices&&this._tags.push([u,_,Dt(h,s)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([u,_,h])),r=u,o=_,a=p}}this._tagIterator=0}}function Dt(t,e){const s=Math.PI;for(;Math.abs(e-t)>s+2e-15;)e-t>s?e-=2*s:e+=2*s;return(t+e)/2}var Wt=s(32011);class Ht{static{this.instance=null}static local(){return null===Ht.instance&&(Ht.instance=new Ht),Ht.instance}execute(t,e,s){return new Vt(t,e,s)}}class Vt{constructor(t,e,s){this._geometryCursor=t,this._offsetX=void 0!==e.offsetX?e.offsetX*s:0,this._offsetY=void 0!==e.offsetY?e.offsetY*s:0,this._method=void 0!==e.method?e.method:"OnPolygon",this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new o.W}next(){const t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{const s=(0,tt.TP)(t);s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{const s=(0,F.z8)(t);s&&(this._internalPlacement.setTranslate((s[2]+s[0])/2+this._offsetX,(s[3]+s[1])/2+this._offsetY),e=!0)}break;default:{const s=(0,Wt.d)(t);null!==s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}var Ut=s(86235),Bt=s(14057);class qt{static{this.instance=null}static local(){return null===qt.instance&&(qt.instance=new qt),qt.instance}execute(t,e,s){return new Jt(t,s)}}class Jt{constructor(t,e){this._cursor=t,this._context=e}next(){const t=this._cursor.next();if(!t||0===t.totalSize)return null;const{matcher:e,target:s,tileKey:i}=this._context,n=e&&s&&null!=i?e.getMatcherGeometryOverride((0,Bt.$)(i,s.getObjectId())):null;if(!n)return t;const r=h.z.fromOptimizedCIM(n.geometry.clone(),n.geometryType);return r.invertY(),r}}class Zt{static{this.instance=null}static local(){return null===Zt.instance&&(Zt.instance=new Zt),Zt.instance}execute(t){return new jt(t)}}class jt extends l{constructor(t){super(t),this._curveHelper=new u}processPath(t){if(this.iteratePath=!0,t.nextPoint()){const[e,s]=[t.x,t.y];if(t.nextPoint()){const[i,n]=[t.x,t.y],h=(e+i)/2,r=(s+n)/2;this.internalPlacement.setTranslate(h,r);const o=this._curveHelper.getAngle(e,s,i,n,0);return this.internalPlacement.setRotate(o),this.internalPlacement}}return this.iteratePath=!1,null}}function $t(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return i.local();case"CIMGeometricEffectArrow":return p.local();case"CIMGeometricEffectBuffer":return m.local();case"CIMGeometricEffectCircularSector":return w.local();case"CIMGeometricEffectControlMeasureLine":return z.local();case"CIMGeometricEffectCut":return A.local();case"CIMGeometricEffectDashes":return O.local();case"CIMGeometricEffectDonut":return X.local();case"CIMGeometricEffectJog":return B.local();case"CIMGeometricEffectMove":return J.local();case"CIMGeometricEffectOffset":return $.local();case"CIMGeometricEffectRadial":return et.local();case"CIMGeometricEffectReverse":return it.local();case"CIMGeometricEffectRotate":return rt.local();case"CIMGeometricEffectScale":return at.local();case"CIMGeometricEffectSuppress":return ut.local();case"CIMGeometricEffectTaperedPolygon":return mt.local();case"CIMGeometricEffectWave":return Pt.local();case"CIMGeometricEffectEnclosingPolygon":return D.local();case"PrivateDimensionEffect":return Ut.HZ.local();case"PrivateMatcherGeometryOverrideEffect":return qt.local()}return null}function Kt(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return Mt.local();case"CIMMarkerPlacementAtExtremities":return wt.local();case"CIMMarkerPlacementAtMeasuredUnits":return St.local();case"CIMMarkerPlacementAtRatioPositions":return It.local();case"CIMMarkerPlacementInsidePolygon":return Nt.local();case"CIMMarkerPlacementOnLine":return Rt.local();case"PrivatePlacementMultipoint":return Zt.local();case"CIMMarkerPlacementOnVertices":return Yt.local();case"CIMMarkerPlacementPolygonCenter":return Ht.local()}return null}},98939(t,e,s){s.d(e,{W:()=>i});class i{constructor(){this.setIdentity()}getAngle(){return(null==this.rz||0===this.rz&&1!==this.rzCos&&0!==this.rzSin)&&(this.rz=Math.atan2(this.rzSin,this.rzCos)),this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=void 0,this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=void 0,this.rzSin=void 0}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},35521(t,e,s){var i=s(28076);i.D.CIMSolidStroke.capstyle,i.D.CIMSolidStroke.joinstyle,i.D.CIMSolidStroke.miterlimit},69754(t,e,s){s.d(e,{Z:()=>l,q:()=>a});var i=s(68197),n=s(93397);const h=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,r=/&(amp|lt|gt|quot|apos);/g,o=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|FNT|CHR)\b/i;function a(t){return o.test(t)}function l(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;const e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),s=[],i=[];let n=c(e),h="",r=!1;const o=t.textString,a=()=>{if(!h)return;const t=u(h);if(!t)return void(h="");const e=i[i.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:i.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),h=""};let l=0;for(;l<o.length;){const t=o[l];if("<"!==t){h+=t,l++;continue}const e=o.indexOf(">",l+1);if(-1===e)return null;const i=_(o.slice(l+1,e));if(!i)return null;if(r=!0,a(),i.isEnd){const t=s.pop();if(!t||t.name!==i.name)return null;n=t.previous}else{const t=c(n);n=p(n,i),s.push({name:i.name,previous:t})}l=e+1}return s.length?null:(a(),r?i.filter(t=>t.text.length>0):null)}function c(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function u(t){return t.replaceAll(r,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function _(t){const e=t.trim();if(!e)return null;const s=e.startsWith("/"),i=s?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(i);if(!n)return null;const r=n[1],o=i.slice(r.length),a={};let l;for(h.lastIndex=0;l=h.exec(o);)a[l[1]]=l[3];return{isEnd:s,name:r,attributes:a}}function p(t,e){const s=c(t);switch(e.name.toUpperCase()){case"BOL":s.font.weight="bold";break;case"_BOL":s.font.weight="normal";break;case"ITA":s.font.style="italic";break;case"_ITA":s.font.style="normal";break;case"FNT":!function(t,e){const{name:s,style:i,size:h,scale:r,wght:o,ital:a}=e;if(s&&(t.font.family=s),i){const e=(0,n._d)(i);t.font.style=e.style,t.font.weight=e.weight}if(o){const e=Number(o);t.font.weight=e>=600?"bold":"normal"}if(a){const e=Number(a);isNaN(e)||(t.font.style=0!==e?"italic":"normal")}if(h){const e=Number(h);!isNaN(e)&&e>0&&(t.fontSize=e)}if(r){const e=Number(r);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(s,e.attributes);break;case"CLR":s.color=function(t){if(t.hex){const e=i.A.fromHex(t.hex)?.toArray();if(e){const s="alpha"in t?g(t.alpha):e[3];return[e[0],e[1],e[2],s]}}if("red"in t||"green"in t||"blue"in t)return[f(t.red),f(t.green),f(t.blue),g(t.alpha)];const e=d(t.cyan),s=d(t.magenta),n=d(t.yellow),h=d(t.black),r=g(t.alpha),o=d(t.tint,100)/100,a=1-h;return[Math.round(255*(1-e)*a*o),Math.round(255*(1-s)*a*o),Math.round(255*(1-n)*a*o),r]}(e.attributes);break;case"CHR":!function(t,e){const s=Number(e.spacing);!isNaN(s)&&s>=0&&(t.characterSpacing=s/100)}(s,e.attributes)}return s}function f(t){const e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function d(t,e=0){const s=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(s)?e:s)/100)}function g(t){return Math.round(255*d(t,100))}},13195(t,e,s){s.d(e,{GW:()=>g,IU:()=>m,Wh:()=>_,cP:()=>y,p6:()=>d,ru:()=>P,s3:()=>x,wV:()=>f,yM:()=>M,z0:()=>p});var i=s(95108),n=s(6774);const h=Number.POSITIVE_INFINITY,r=Math.PI,o=2*r,a=128/r,l=256/360,c=r/180,u=1/Math.LN2;function _(t,e){return(t%=e)>=0?t:t+e}function p(t){return _(t*a,256)}function f(t){return _(t*l,256)}function d(t){return Math.log(t)*u}function g(t,e,s){return t*(1-s)+e*s}function m(t){return 8+Math.max(16*(t-14),0)}function x(t,e,s){let i,n,h,r=0;for(const o of s){i=o.length;for(let s=1;s<i;++s)n=o[s-1],h=o[s],n.y>e!=h.y>e&&((h.x-n.x)*(e-n.y)-(h.y-n.y)*(t-n.x)>0?r++:r--)}return 0!==r}function P(t,e,s,n){let h,r,o,a;const l=n*n;for(const n of s){const s=n.length;if(!(s<2)){h=n[0].x,r=n[0].y;for(let c=1;c<s;++c){if(o=n[c].x,a=n[c].y,(0,i.Ng)(t,e,h,r,o,a)<l)return!0;h=o,r=a}}}return!1}function y(t,e){if(0===e||Number.isNaN(e))return t;const s=[],i=new n.bR(0,0),h=new n.bR(0,0),r=new n.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],l=[];for(let t=0;t<a.length;t++){const s=a[t-1],o=a[t],c=a[t+1];0===t?i.setCoords(0,0):i.assignSub(o,s).normalize().rightPerpendicular(),t===a.length-1?h.setCoords(0,0):h.assignSub(c,o).normalize().rightPerpendicular(),r.assignAdd(i,h).normalize();const u=r.x*h.x+r.y*h.y;0!==u&&r.scale(1/u),l.push(n.bR.add(o,r.scale(e)))}s.push(l)}return s}function M(t,e,s,i){const h=new n.bR(t[0],t[1]);if(h.scale(i),"viewport"===e){const t=-s*(Math.PI/180),e=Math.cos(t),i=Math.sin(t);h.rotate(e,i)}return h}s.d(e,["Jo",0,r,"MG",0,h,"aA",0,l,"os",0,c,"pJ",0,o])},18989(t,e,s){s.d(e,{A:()=>i});class i{constructor(t=0,e=0,s=0,i=0){this.x=t,this.y=e,this.width=s,this.height=i}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},63933(t,e,s){function i(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function h(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function r(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}s.d(e,{Dy:()=>r,UD:()=>n,iT:()=>h,xy:()=>i})},15660(t,e,s){s.d(e,{A:()=>n});var i=s(88340);class n{constructor(t,e,s,n){this.transformedX=0,this.transformedY=0,this.center=(0,i.fA)(t,e),this.centerT=(0,i.vt)(),this.halfWidth=s/2,this.halfHeight=n/2,this.width=s,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){const s=Math.abs(t.centerT[0]-this.centerT[0]),i=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/s,h=(t.halfHeight+this.halfHeight+e)/i,r=Math.min(n,h);return Math.log2(r)}extend(t){const e=Math.min(this.xmin,t.xmin),s=Math.min(this.ymin,t.ymin),i=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-s,h=e+i/2,r=s+n/2;this.width=i,this.height=n,this.halfWidth=i/2,this.halfHeight=n/2,this.x=h,this.y=r}static deserialize(t){const e=t.readF32(),s=t.readF32(),i=t.readInt32(),h=t.readInt32();return new n(e,s,i,h)}}},75434(t,e,s){s.d(e,{HB:()=>b,tA:()=>M});var i=s(90629),n=s(16905),h=s(85560),r=s(37585),o=s(88340),a=s(63933),l=s(18989),c=s(15660);const u=Math.PI/180;class _{static fromGlyph(t,e,s,i,n){const{mosaicItem:h,rect:r,shaping:o,code:a}=s,l=h.rect;return new _({width:0===a?r.width:l.width*i,height:0===a?r.height:l.height*i,x:i*(t+o.xOffset+r.left),y:i*(e+o.yOffset-r.top),textureBinding:h.textureBinding,texcoords:{topLeft:[l.x,l.y],topRight:[l.x+l.width,l.y],bottomLeft:[l.x,l.y+l.height],bottomRight:[l.x+l.width,l.y+l.height]},fontSize:n?.fontSize,color:n?.color})}constructor(t){this._rotationT=(0,h.vt)(),this._transform=(0,h.vt)(),this._angle=0,this._bounds=null,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y,this.textureBinding=t.textureBinding,this.texcoords=t.texcoords,this.fontSize=t.fontSize,this.color=t.color}set angle(t){this._angle=t,(0,n.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){const{x:t,y:e,width:s,height:i}=this,o=(0,n.$0)((0,h.vt)(),-this.angle),a=(0,n.lw)((0,h.vt)(),o,this._transform);this._offsets={topLeft:(0,r.l0)([0,0],[t,e],a),topRight:(0,r.l0)([0,0],[t+s,e],a),bottomLeft:(0,r.l0)([0,0],[t,e+i],a),bottomRight:(0,r.l0)([0,0],[t+s,e+i],a)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){const t=this.offsets;let e=1/0,s=1/0,i=-1/0,n=-1/0;for(const[h,r]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,h),s=Math.min(s,r),i=Math.max(i,h),n=Math.max(n,r);const h=i-e,r=n-s,o=e+h/2,a=s+r/2;this._bounds=new c.A(o,a,h,r)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const p=(t,e)=>({code:0,mosaicItem:{rect:new l.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function f(t,e){return t.forEach(t=>(0,r.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class d{constructor(t,e,s,i){this._rotation=0,this._decorate(t,e,s,i),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==s.angle,this._transform=this._createGlyphTransform(this.bounds,s),this._borderLineSizePx=s.borderLineSizePx,(s.borderLineSizePx||s.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(const e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;const e=this._transform,s=(0,n.$0)((0,h.vt)(),t);(0,n.lw)(e,s,e);for(const t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,s,i){if(!s.decoration||"none"===s.decoration||!t.length)return;const n=s.scale,h=t[0].textureBinding;for(const r of e){const e=r.scale??n,o="underline"===s.decoration?r.baseline??i?.baseline??26:r.midline??i?.midline??16,a=r.startX*e,l=r.startY*e,c=(r.width+r.glyphWidthEnd)*e;t.push(_.fromGlyph(a,l+o*e,p(c,h),1))}}shapeBackground(t){const e=(1.5+(this._borderLineSizePx||0))/2,s=this._borderLineSizePx?e:0,{xmin:i,ymin:n,xmax:h,ymax:r,x:o,y:a,width:l,height:u}=this.bounds,_=[i-8,n-8],p=[h+8,n-8],d=[i-8,r+8],g=[h+8,r+8],m=f([[_[0]-e,_[1]-e],[p[0]+e,p[1]-e],[_[0]+s,_[1]+s],[p[0]-s,p[1]+s]],t),x=f([[d[0]+s,d[1]-s],[g[0]-s,g[1]-s],[d[0]-e,d[1]+e],[g[0]+e,g[1]+e]],t),P=f([[_[0]-e,_[1]-e],[_[0]+s,_[1]+s],[d[0]-e,d[1]+e],[d[0]+s,d[1]-s]],t),y=f([[p[0]-s,p[1]+s],[p[0]+e,p[1]-e],[g[0]-s,g[1]-s],[g[0]+e,g[1]+e]],t),M={main:f([_,p,d,g],t),top:m,bot:x,left:P,right:y};return[new c.A(o,a,l+2*e,u+2*e),M]}get boundsT(){const t=this.bounds,e=(0,r.hZ)((0,o.vt)(),t.x,t.y);if((0,r.l0)(e,e,this._transform),this._hasRotation){const s=Math.max(t.width,t.height);return new c.A(e[0],e[1],s,s)}return new c.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,s=1/0,i=0,n=0;for(const h of t)e=Math.min(e,h.offsets.topLeft[0]),s=Math.min(s,h.offsets.topLeft[1]),i=Math.max(i,h.offsets.bottomRight[0]),n=Math.max(n,h.offsets.bottomRight[1]);const h=i-e,r=n-s;return new c.A(e+h/2,s+r/2,h,r)}_createGlyphTransform(t,e){const s=u*e.angle,i=(0,h.vt)(),a=(0,o.vt)();return(0,n.Tl)(i,i,(0,r.hZ)(a,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,n.e$)(i,i,s):((0,n.Tl)(i,i,(0,r.hZ)(a,t.x,t.y)),(0,n.e$)(i,i,s),(0,n.Tl)(i,i,(0,r.hZ)(a,-t.x,-t.y))),i}}class g{constructor(t,e,s,i,n,h){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,s)),this.end=Math.max(0,Math.max(e,s)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=i,this.yMin=n,this.yMax=h}}const m=t=>10===t,x=t=>32===t;function P(t,e,s){let i=0;for(let n=e;n<s;n++)x(t[n].code)&&!m(t[n+1].code)&&i++;return i}function y(t,e){const s=e.scale,i=new Array,n=t.sdfPadding,{faceInfo:h,glyphs:r,isRightToLeft:o}=t,l="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,c=function(t,e,s){const i=new Array,n=1/s.scale,h=s.maxLineWidth*n,r=e?t.length-1:0,o=e?-1:t.length,a=e?-1:1;let l=r,c=0,u=0,_=l,p=_,f=0,d=1/0,P=0;for(;l!==o;){const{code:e,rect:s,shaping:n}=t[l],o=Math.abs(s.top);if(m(e)||x(e)||(d=Math.min(d,o),P=Math.max(P,o+s.height)),m(e))l!==r&&(i.push(new g(t,_,l-a,c,d===1/0?0:d,P)),d=1/0,P=0),c=0,_=l+a,p=l+a,u=0;else if(x(e))p=l+a,u=0,f=n.xAdvance,c+=n.xAdvance;else if(c>h){if(p!==_){const e=p-2*a;c-=f,i.push(new g(t,_,e,c-u,d,P)),d=1/0,P=0,_=p,c=u}else i.push(new g(t,_,l-a,c,d,P)),d=1/0,P=0,_=l,p=l,c=0;c+=n.xAdvance,u+=n.xAdvance}else c+=n.xAdvance,u+=n.xAdvance;l+=a}const y=new g(t,_,l-a,c,d,P);return y.start>=0&&y.end<t.length&&i.push(y),i}(r,o,e),u=c.length?function(t,e){let s=0;for(let e=0;e<t.length;e++){const{width:i}=t[e];s=Math.max(i,s)}const i="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+i-n,width:s}}(c,e):{y:0,height:0,width:0},p=l?o?1:-1:(0,a.xy)(e.horizontalAlignment),f=(0,a.UD)(e.verticalAlignment),y=2===f?1:0,M=y?0:f-1,b=h?.baseline??22,w=c.length>1,C=y?w?-u.y-u.height:-b:-u.y+M*(u.height/2);for(let h=0;h<c.length;h++){const{start:o,end:a,width:f}=c[h],d=l&&h<c.length-1?P(r,o,a):0,g=d>0?(u.width-f)/d:0;let y=-1*(p+1)*((g>0?u.width:f)/2)-n;const M=(t.isRightToLeft?c.length-1-h:h)*e.lineHeight+C-n;c[h].startX=y,c[h].startY=M;for(let t=o;t<=a;t++){const e=r[t];if(m(e.code))continue;const n=_.fromGlyph(y,M,e,s);y+=e.shaping.xAdvance,g>0&&x(e.code)&&(y+=g),i.push(n)}}return new d(i,c,e,h)}function M(t,e){return"glyphs"===t.type?y(t,e):function(t,e){const s=w(t,e),i=function(t,e){const s=[],i=e.maxLineWidth;let n=0,h=0,r=0,o=0,a=0,l=0;for(;n<t.length;){const e=t[n],{glyph:c}=e;if(m(c.code))0!==n&&s.push({width:h,start:o,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),h=0,o=n+1,a=o,r=0,l=0;else if(x(c.code))a=n+1,r=0,l=e.xAdvance,h+=e.xAdvance;else if(h>i){if(a!==o){const e=a-2;h-=l,s.push({width:h-r,start:o,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),o=a,h=r}else s.push({width:h,start:o,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),o=n,a=n,h=0;h+=e.xAdvance,r+=e.xAdvance}else h+=e.xAdvance,r+=e.xAdvance;n++}if(o<t.length){const e=t.length-1;s.push({width:h,start:o,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return function(t,e){for(let s=0;s<e.length;s++){const i=e[s];let n=0,h=1/0,r=0;for(let e=i.start;e<=i.end;e++){const s=t[e];m(s.glyph.code)||x(s.glyph.code)||(n=Math.max(n,s.baseline),r=Math.max(r,s.lineHeight))}let o=1/0,a=-1/0;for(let e=i.start;e<=i.end;e++){const s=t[e];m(s.glyph.code)||x(s.glyph.code)||(o=Math.min(o,n-s.baseline+s.top),a=Math.max(a,n-s.baseline+s.bottom),h=Math.min(h,n-s.baseline+s.midline))}i.baseline=n,i.midline=h===1/0?n:h,i.lineHeight=r||Math.max(0,a-o),i.yMin=o===1/0?0:o,i.yMax=a===-1/0?0:a,i.startY=s>0?e[s-1].startY+e[s-1].lineHeight:0}return e}(t,s)}(s,e),n=i.length?function(t){let e=0;for(const s of t)e=Math.max(s.width+s.glyphWidthEnd,e);const s=t[0].yMin,i=t[t.length-1];return{x:0,y:s,height:i.startY+i.yMax-s,width:e}}(i):{width:0},h=new Array,r="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,o=r?-1:(0,a.xy)(e.horizontalAlignment),l=(0,a.UD)(e.verticalAlignment),c=2===l,u=i.length?i[0].yMin:0,p=i.length?i[i.length-1].startY+i[i.length-1].yMax:0,f=p-u,g=c?i.length>1?-p:-(i[0]?.baseline??0):1===l?-u:-1===l?-p:-(u+f/2);for(let t=0;t<i.length;t++){const e=i[t],a=r&&t<i.length-1?C(s,e.start,e.end):0,l=a>0?(n.width-e.width)/a:0;let c=-1*(o+1)*((l>0?n.width:e.width)/2);const u=e.startY+g;e.startX=c,e.startY=u;for(let t=e.start;t<=e.end;t++){const i=s[t],{glyph:n,scale:r,fontSize:o}=i;if(m(n.code))continue;const a=u+e.baseline-i.baseline;h.push(_.fromGlyph(c/r,a/r,n,r,{fontSize:o,color:i.color})),c+=i.xAdvance,l>0&&x(n.code)&&(c+=l)}}return new d(h,i,e)}(t,e)}function b(t,e){return"glyphs"===t.type?function(t,e){const s=e.scale,{faceInfo:i,glyphs:n}=t,h=n.reduce((t,e)=>Math.max(t,e.rect.height),0),r=n.map(t=>_.fromGlyph(-t.rect.width/2,-h,t,s));return new d(r,[],e,i)}(t,e):function(t,e){const s=w(t,e),i=s.reduce((t,e)=>Math.max(t,e.glyph.rect.height*e.scale),0),n=s.filter(t=>!m(t.glyph.code)).map(t=>_.fromGlyph(-t.glyph.rect.width/2,-i/t.scale,t.glyph,t.scale,{fontSize:t.fontSize,color:t.color}));return new d(n,[],e)}(t,e)}function w(t,e){const s=e.lineHeightRatio??1,n=[];for(const e of t.runs){const t=(0,i.Lz)(e.fontSize),h=t/e.glyphs.sdfSize,r=t*(29/24)*s,o=(e.glyphs.faceInfo?.baseline??22)*h,a=(e.glyphs.faceInfo?.midline??16)*h,l=1+(e.characterSpacing??0);for(const s of e.glyphs.glyphs){const i=s.shaping.xAdvance*h,c=Math.abs(s.rect.top)*h,u=c+s.rect.height*h;n.push({glyph:s,scale:h,fontSize:t,color:e.color,xAdvance:m(s.code)||x(s.code)?i:i*l,top:c,bottom:u,lineHeight:r,baseline:o,midline:a})}}return n}function C(t,e,s){let i=0;for(let n=e;n<s;n++)x(t[n].glyph.code)&&!m(t[n+1].glyph.code)&&i++;return i}},69221(t,e,s){s.d(e,{Lu:()=>h,hV:()=>n});var i=s(90629);function n(t){return(0,i.PN)(Math.round((0,i.Lz)(t)))}function h(t){const e=(0,i.PN)(32),s=(0,i.PN)(512);return Math.max(e,Math.min(t||s,s))}s(39829)},86235(t,e,s){s.d(e,{HZ:()=>h});var i=s(36745),n=s(14057);class h{static{this.instance=null}static local(){return null===h.instance&&(h.instance=new h),h.instance}execute(t,e,s){return new r(t,e,s)}}class r{constructor(t,e,s){this._cursor=t,this._effect=e,this._context=s}next(){const t=this._cursor.next();if(t&&t.totalSize>0){const e=t.asJSON(),s=a[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return s?i.z.fromJSONCIM(s):null}return null}}function o(t,e){const s=e.matcher,i=e.target.getObjectId(),h=(0,n.$)(e.tileKey,i),r=s.getAnalyzedGraphic(h);return r?(r.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),r):null}const a={textPoint:function(t,e){const s=o(t,e);return s&&s.textPoint?{x:s.textPoint[0],y:s.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){const s=o(t,e);if(!s||!s.dimensionLine)return t;const i=s.dimensionLine[0],n=i[1][0],h=i[1][1],r=i[0][0],a=i[0][1];return{spatialReference:t.spatialReference,paths:[[[n,h],[r,a]]]}},endDimensionLine:function(t,e){const s=o(t,e);if(!s||!s.dimensionLine)return t;const i=s.dimensionLine[1],n=i[1][0],h=i[1][1],r=i[0][0],a=i[0][1];return{spatialReference:t.spatialReference,paths:[[[n,h],[r,a]]]}},beginExtensionLine:function(t,e){const s=o(t,e);if(!s||!s.extensionLines)return t;const i=s.extensionLines[0],n=i[0][0],h=i[0][1],r=i[1][0],a=i[1][1];return{spatialReference:t.spatialReference,paths:[[[n,h],[r,a]]]}},endExtensionLine:function(t,e){const s=o(t,e);if(!s||!s.extensionLines)return t;const i=s.extensionLines[1],n=i[0][0],h=i[0][1],r=i[1][0],a=i[1][1];return{spatialReference:t.spatialReference,paths:[[[n,h],[r,a]]]}}};s.d(e,["Bd",0,"beginMarker","Cr",0,"beginExtensionLine","FF",0,"endMarker","Fn",0,"beginDimensionLine","NR",0,"textPoint","tz",0,"endDimensionLine","w0",0,"endExtensionLine"])},14057(t,e,s){function i(t,e){return`${t}_${e}`}s.d(e,{$:()=>i})}}]);
|