@arcgis/core 6.0.0-next.57 → 6.0.0-next.59
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/Graphic.d.ts +1 -0
- package/WebLinkChart.d.ts +0 -12
- package/WebLinkChart.js +1 -1
- package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/applications/SceneViewer/sceneViewerUtils.d.ts +74 -0
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/arcadeCompiler.js +5 -5
- package/arcade/containerUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcgisGlobal.d.ts +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
- package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
- package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
- package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
- package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
- package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
- package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
- package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
- package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
- package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
- package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
- package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
- package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
- package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
- package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
- package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
- package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
- package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
- package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
- package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
- package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
- package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
- package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
- package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
- package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
- package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
- package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
- package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
- package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
- package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
- package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
- package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
- package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
- package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
- package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
- package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
- package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
- package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
- package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
- package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
- package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
- package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
- package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
- package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
- package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
- package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
- package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
- package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
- package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
- package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
- package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
- package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
- package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
- package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
- package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
- package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
- package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
- package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
- package/assets/esri/core/workers/chunks/{be0133fa63c5d6545a7f.js → 75667b1427a7f02f2cda.js} +33 -32
- package/assets/esri/core/workers/chunks/{b4018b21a03c0c909d23.js → 75a48b122254deb3ad59.js} +1 -1
- package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
- package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
- package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
- package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
- package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
- package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
- package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
- package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
- package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
- package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
- package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
- package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
- package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
- package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
- package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
- package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
- package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
- package/assets/esri/core/workers/chunks/956810d6f553c2198aae.js +1 -0
- package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
- package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
- package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
- package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
- package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
- package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
- package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
- package/assets/esri/core/workers/chunks/a27c2edd7e043643cdd1.js +1 -0
- package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
- package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
- package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
- package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
- package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
- package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
- package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
- package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
- package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
- package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
- package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
- package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
- package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
- package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
- package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
- package/assets/esri/core/workers/chunks/bd8ee0205f0a01d6d4d7.js +1 -0
- package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
- package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
- package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
- package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
- package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
- package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
- package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
- package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
- package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
- package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
- package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
- package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
- package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
- package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
- package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
- package/assets/esri/core/workers/chunks/{423c7a981b9a06b76cbd.js → d833fc1fe63c9917ae3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
- package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
- package/assets/esri/core/workers/chunks/dca6abf260c0bfb7c9c0.js +1 -0
- package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
- package/assets/esri/core/workers/chunks/{fc8cb947a677aa12348d.js → e38ffdb19132529beda7.js} +1 -1
- package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
- package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
- package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
- package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
- package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
- package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
- package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
- package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
- package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
- package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
- package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
- package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
- package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
- package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
- package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
- package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
- package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
- package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
- package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
- package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
- package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
- package/chunks/BlurEmission.glsl.js +7 -20
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/ColorMaterial.glsl.js +1 -1
- package/chunks/Component.glsl.js +1 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/Fog.glsl.js +5 -5
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/ImageMaterial.glsl.js +1 -1
- package/chunks/LineMarker.glsl.js +2 -2
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticAtmosphere.glsl.js +7 -9
- package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
- package/chunks/RibbonLine.glsl.js +154 -108
- package/chunks/Terrain.glsl.js +27 -27
- package/chunks/UPCPointRenderer.glsl.js +100 -0
- package/chunks/UnitFactory.js +1 -1
- package/chunks/Water.glsl.js +24 -24
- package/chunks/arcade.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
- package/chunks/arcgis-knowledge-client-core.js +4 -4
- package/chunks/array.js +1 -1
- package/chunks/basis_encoder.js +3 -3
- package/chunks/basis_transcoder.js +2 -2
- package/chunks/draco_mesh_decoder.js +2 -2
- package/chunks/dxt_encoder.js +3 -3
- package/chunks/i3s.js +2 -2
- package/chunks/languageUtils.js +1 -1
- package/chunks/lclayout.js +3 -3
- package/chunks/lerc-wasm.js +1 -1
- package/chunks/lyr3DWorker.js +2 -2
- package/chunks/pe.js +1 -1
- package/chunks/projector.js +1 -1
- package/chunks/qb3-wasm.js +1 -1
- package/chunks/vxlLayer.js +2 -2
- package/colorUtils.js +1 -1
- package/config.js +1 -1
- package/core/AsyncUpdate.js +1 -1
- package/core/Clonable.js +1 -1
- package/core/Identifiable.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/MultiOriginJSONSupport.js +1 -1
- package/core/NumericIdentifiable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
- package/core/accessorSupport/metadata.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/asyncUtils.js +1 -1
- package/core/handleUtils.js +1 -1
- package/core/mapCollectionUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/core/sql/SqlTimestampOffset.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/writeUtils.js +1 -1
- package/core/sql.js +1 -1
- package/core/urlUtils.js +1 -1
- package/core/workers/workers.js +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
- package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
- package/geometry/coordinateConversion/support/Format.d.ts +6 -30
- package/geometry/coordinateConversion/types.d.ts +15 -15
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/support/MeshMaterial.js +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
- package/geometry/support/meshUtils/elevationSampler.js +1 -1
- package/graphic/AggregateGraphicOrigin.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
- package/graphic/BuildingGraphicOrigin.js +1 -1
- package/graphic/CSVGraphicOrigin.js +1 -1
- package/graphic/CatalogGraphicOrigin.js +1 -1
- package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
- package/graphic/FeatureGraphicOrigin.js +1 -1
- package/graphic/GeoJSONGraphicOrigin.js +1 -1
- package/graphic/GeoRSSGraphicOrigin.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/KMLGraphicOrigin.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
- package/graphic/LinkChartGraphicOrigin.js +1 -1
- package/graphic/MapImageGraphicOrigin.js +1 -1
- package/graphic/MapNotesGraphicOrigin.js +1 -1
- package/graphic/OGCFeatureGraphicOrigin.js +1 -1
- package/graphic/OrientedImageryGraphicOrigin.js +1 -1
- package/graphic/ParquetGraphicOrigin.js +1 -1
- package/graphic/PointCloudGraphicOrigin.js +1 -1
- package/graphic/SceneGraphicOrigin.js +1 -1
- package/graphic/SketchGraphicOrigin.js +1 -1
- package/graphic/StreamGraphicOrigin.js +1 -1
- package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
- package/graphic/TileGraphicOrigin.js +1 -1
- package/graphic/TrackGraphicOrigin.js +1 -1
- package/graphic/VectorTileGraphicOrigin.js +1 -1
- package/graphic/VoxelGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/graphic/WFSGraphicOrigin.js +1 -1
- package/graphic/getLayerViewLayer.js +2 -0
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +8 -0
- package/kernel.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/LinkChartLayer.d.ts +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/PointCloudLayer.js +3 -3
- package/layers/VectorTileLayer.d.ts +17 -10
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/graphics/sources/CSVSource.js +1 -1
- package/layers/graphics/sources/GeoJSONSource.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
- package/layers/mixins/APIKeyMixin.js +1 -1
- package/layers/mixins/ArcGISCachedService.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/mixins/ArcGISService.js +1 -1
- package/layers/mixins/BlendLayer.js +1 -1
- package/layers/mixins/CustomParametersMixin.js +1 -1
- package/layers/mixins/DataElementMixin.js +1 -1
- package/layers/mixins/DataSeriesLayer.js +1 -1
- package/layers/mixins/DisplayFilteredLayer.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/mixins/FeatureEffectLayer.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/FeatureReductionLayer.js +1 -1
- package/layers/mixins/HeightModelInfoMixin.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/mixins/OrderedLayer.js +1 -1
- package/layers/mixins/PortalLayer.js +1 -1
- package/layers/mixins/PublishableLayer.js +1 -1
- package/layers/mixins/RasterJobHandlerMixin.js +1 -1
- package/layers/mixins/RasterPresetRendererMixin.js +1 -1
- package/layers/mixins/RefreshableLayer.js +1 -1
- package/layers/mixins/ReloadableLayer.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/mixins/TrackableLayer.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/datasets/xmlUtilities.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/Qb3.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/blosc.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
- package/layers/raster/formats/tiffTag.js +1 -1
- package/layers/raster/functions/colormaps.js +1 -1
- package/layers/support/TitleCreator.js +1 -1
- package/layers/support/WMTSSublayer.js +1 -1
- package/layers/support/geospatialPDFUtils.js +1 -1
- package/layers/support/imageUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/video/VideoController.js +14 -14
- package/legend/ActiveLayerInfo.js +1 -1
- package/legend/support/sizeRampUtils.js +1 -1
- package/libs/basisu/BasisUEncoder.js +1 -1
- package/libs/basisu/BasisUTranscoder.js +1 -1
- package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
- package/libs/dxtEncoder/DXTEncoder.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/libs/librust-parquet/loadParquetModule.js +1 -1
- package/libs/librust-text/loadTextModule.js +1 -1
- package/libs/linkchartlayout/LinkChartLayout.js +1 -1
- package/libs/maquette-advanced-projector/projector.js +1 -1
- package/package.json +2 -2
- package/popup/FeatureModel.js +1 -1
- package/popup/FeaturesModel.d.ts +6 -0
- package/popup/FeaturesModel.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/renderers/visualVariables/VisualVariableFactory.js +1 -1
- package/rest/identify.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
- package/rest/layerSources/utils.js +1 -1
- package/rest/networks/validateNetworkTopology.js +1 -1
- package/rest/support/AttributeBinsQuery.d.ts +41 -1
- package/rest/support/AttributeBinsQuery.js +1 -1
- package/rest/support/CameraInfoMixin.js +1 -1
- package/rest/support/NormalizationBinParametersMixin.js +1 -1
- package/rest/support/Query.d.ts +1 -2
- package/rest/support/generateRendererUtils.js +1 -1
- package/rest/versionManagement/gdbVersion/post.js +1 -1
- package/rest/versionManagement/gdbVersion/reconcile.js +1 -1
- package/rest/versionManagement/gdbVersion/serverVersionUtils.js +1 -1
- package/rest/versionManagement/gdbVersion/support/PostResult.d.ts +1 -1
- package/rest/versionManagement/gdbVersion/support/ReconcileResult.d.ts +1 -1
- package/smartMapping/raster/renderers/vectorField.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/statistics/histogram.js +1 -1
- package/smartMapping/statistics/types.d.ts +18 -0
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
- package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/support/BasemapStyle.js +1 -1
- package/support/LayersMixin.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/actions/ActionBase.d.ts +14 -2
- package/support/actions/ActionBase.js +1 -1
- package/support/actions/ActionButton.js +1 -1
- package/support/actions/ActionToggle.js +1 -1
- package/support/loadArcade.js +1 -1
- package/symbols/LineSymbol3DLayer.js +1 -1
- package/tables/support/templateUtils.js +1 -1
- package/versionManagement/VersionManagementService.d.ts +47 -1
- package/versionManagement/VersionManagementService.js +1 -1
- package/versionManagement/support/PostJobInfo.d.ts +61 -0
- package/versionManagement/support/PostJobInfo.js +2 -0
- package/versionManagement/support/ReconcileJobInfo.d.ts +61 -0
- package/versionManagement/support/ReconcileJobInfo.js +2 -0
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/utils.js +1 -1
- package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/BuildingSublayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWorker.js +1 -1
- package/views/3d/layers/PointCloudIntersector.js +2 -0
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/UPCPointRenderer.js +2 -0
- package/views/3d/layers/UPCPointRendererNode.js +2 -0
- package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
- package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
- package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
- package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
- package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
- package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
- package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometry.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
- package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +21 -12
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +41 -59
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleRangeBVH.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +15 -15
- package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
- package/views/Attribution.js +2 -2
- package/views/BreakpointsOwner.js +1 -1
- package/views/DOMContainer.d.ts +3 -2
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.d.ts +29 -3
- package/views/View.js +1 -1
- package/views/Viewport2DBaseMixin.js +1 -1
- package/views/Viewport2DMixin.js +1 -1
- package/views/animation/pointToPoint/Animation.js +1 -1
- package/views/interactive/Tooltip.d.ts +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
- package/views/layers/MapImageLayerView.js +1 -1
- package/views/layers/PointCloudLayerView.js +1 -1
- package/views/layers/RefreshableLayerView.js +1 -1
- package/views/layers/WMSLayerView.js +1 -1
- package/views/overlay/ViewOverlay.js +1 -1
- package/views/support/flow/utils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/types.d.ts +15 -0
- package/views/webgl/AllocationTracer.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/ShaderBuilder.js +23 -23
- package/views/webgl/ShaderTranspiler.js +1 -1
- package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
- package/views/webgl/capabilities.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
- package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
- package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/FeatureContentMixin.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
- package/widgets/smartMapping/support/utils.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +1 -1
- package/widgets/support/AnchorElementViewModel.js +1 -1
- package/widgets/support/GoTo.js +1 -1
- package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
- package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
- package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
- package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
- package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
- package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
- package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
- package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
- package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
- package/assets/esri/core/workers/chunks/10499abb7678e95d9f05.js +0 -1
- package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
- package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
- package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
- package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
- package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +0 -1
- package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
- package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
- package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
- package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
- package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
- package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
- package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
- package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +0 -1
- package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
- package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +0 -1
- package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
- package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
- package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
- package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
- package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
- package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
- package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
- package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +0 -1
- package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
- package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
- package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
- package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
- package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
- package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
- package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
- package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
- package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
- package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
- package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
- package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
- package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
- package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +0 -1
- package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
- package/assets/esri/core/workers/chunks/6a202ef9ba9b89e09153.js +0 -1
- package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
- package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
- package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
- package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
- package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
- package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
- package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +0 -1
- package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
- package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
- package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
- package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
- package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
- package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
- package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
- package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +0 -1
- package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
- package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
- package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
- package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
- package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
- package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
- package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
- package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
- package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
- package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
- package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +0 -1
- package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
- package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
- package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
- package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
- package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
- package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
- package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
- package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
- package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
- package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
- package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
- package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
- package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
- package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
- package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
- package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
- package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
- package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
- package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
- package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
- package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
- package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
- package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
- package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
- package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +0 -1
- package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
- package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
- package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
- package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
- package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
- package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
- package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
- package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +0 -1
- package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
- package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
- package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
- package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +0 -1
- package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
- package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +0 -1
- package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
- package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
- package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8331],{83349(e,t,r){r.d(t,{e:()=>o});const n=new Set;let i=!1;function o(e,t,r=2){let i=t&&t.length,o=i?t[0]*r:e.length;n.size&&n.clear();let l=s(e,0,o,r,!0),u=[];if(!l||l.next===l.prev)return u;let c=0,f=0,p=0;if(i&&(l=g(e,t,l,r)),e.length>80*r){c=e[0],f=e[1];let t=c,n=f;for(let i=r;i<o;i+=r){let r=e[i],o=e[i+1];r<c&&(c=r),o<f&&(f=o),r>t&&(t=r),o>n&&(n=o)}p=Math.max(t-c,n-f),p=0===p?0:32767/p}return a(l,u,c,f,p),u}function s(e,t,r,n,i){let o=null;if(i===H(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=D(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=D(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(I(o),o=o.next),o}function l(e,t=e){let r,o=t===e,s=e;do{r=!1,s===s.next||0!==n.size&&n.has(s)||!O(s,s.next)&&0!==j(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,I(s),s=s.prev,r=!0)}while(r||s!==t);return t}function a(e,t,r,n,o){o&&function(e,t,r,n){let i=e,o=0;do{i.z=_(i.x,i.y,t,r,n),T[o++]=i,i=i.next}while(i!==e);!function(e){if(e<=32)for(let t=1;t<e;t++){let e=T[t],r=e.z,n=t-1;for(;n>=0&&T[n].z>r;)T[n+1]=T[n],n--;T[n+1]=e}else{R.length<e&&(R=new Uint32Array(e),Z=new Uint32Array(e),S=Array(e));for(let t=0;t<e;t++)R[t]=T[t].z;N(e,T,R,S,Z,0),N(e,S,Z,T,R,8),N(e,T,R,S,Z,16),N(e,S,Z,T,R,24)}}(o);let s=null;for(let e=0;e<o;e++){let t=T[e];t.prevZ=s,s&&(s.nextZ=t),s=t}s.nextZ=null,T.fill(null,0,o),S.fill(null,0,o)}(e,r,n,o);let s=e,a=!1;for(;e.prev!==e.next;){let h=e.prev,g=e.next;if(j(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),I(e),e=g,s=g;else if((e=g)===s){if(i=!1,e=l(e),i){s=e;continue}if(!a){s=e=f(e,t),a=!0;continue}p(e,t,r,n,o);break}}}function u(e){let t=e.prev,r=e,n=e.next,i=t.x,o=r.x,s=n.x,l=t.y,a=r.y,u=n.y,c=Math.min(i,o,s),f=Math.min(l,a,u),p=Math.max(i,o,s),h=Math.max(l,a,u),g=n.next;for(;g!==t;){if(g.x>=c&&g.x<=p&&g.y>=f&&g.y<=h&&(i!==g.x||l!==g.y)&&E(i,l,o,a,s,u,g.x,g.y)&&j(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(e,t,r,n){let i=e.prev,o=e,s=e.next,l=i.x,a=o.x,u=s.x,c=i.y,f=o.y,p=s.y,h=Math.min(l,a,u),g=Math.min(c,f,p),y=Math.max(l,a,u),m=Math.max(c,f,p),d=_(h,g,t,r,n),x=_(y,m,t,r,n),v=e.prevZ;for(;v&&v.z>=d;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=m&&v!==s&&(l!==v.x||c!==v.y)&&E(l,c,a,f,u,p,v.x,v.y)&&j(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=y&&w.y>=g&&w.y<=m&&w!==s&&(l!==w.x||c!==w.y)&&E(l,c,a,f,u,p,w.x,w.y)&&j(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function f(e,t){let r=e,n=!1;do{let i=r.prev,o=r.next.next;P(i,r,r.next,o,!1)&&z(i,o)&&z(o,i)&&(t.push(i.i,r.i,o.i),I(r),I(r.next),r=e=o,n=!0),r=r.next}while(r!==e);return n?l(r):r}function p(e,t,r,n,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&L(o,e)){let s=F(o,e);return o=l(o,o.next),s=l(s,s.next),a(o,t,r,n,i),void a(s,t,r,n,i)}e=e.next}o=o.next}while(o!==e)}let h=!1;function g(e,t,r,i){let o=[];for(let r=0,l=t.length;r<l;r++){let a=s(e,t[r]*i,r<l-1?t[r+1]*i:e.length,i,!1);a===a.next&&n.add(a),o.push(B(a))}o.sort(y),function(e,t){let r=Math.ceil((e+2*t)/16)+t+2;d.length<4*r&&(d=new Float64Array(4*r)),x=0}(e.length/i,t.length),A(r,r),h=!0;for(let e=0;e<o.length;e++)r=m(o[e],r);return h=!1,l(r)}function y(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function m(e,t){let r=function(e,t){let r,n=t,i=e.x,o=e.y,s=-1/0;if(O(e,n))return n;for(let t=0,l=0;t<x;t++,l+=4){if(o<d[l+1]||o>d[l+3]||d[l]>i||d[l+2]<=s)continue;let a=b(t);n=M(t);do{if(n.prev.next===n){if(O(e,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){let e=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=i&&e>s&&(s=e,r=n.x<n.next.x?n:n.next,e===i))return r}}n=n.next}while(n!==a)}if(!r)return null;let l=r.x,a=r.y,u=Math.min(o,a),c=Math.max(o,a),f=1/0;for(let t=0,p=0;t<x;t++,p+=4){if(d[p+2]<l||d[p]>i||d[p+3]<u||d[p+1]>c)continue;let h=b(t);n=M(t);do{if(n.prev.next===n&&i>=n.x&&n.x>=l&&i!==n.x&&E(o<a?i:s,o,l,a,o<a?s:i,o,n.x,n.y)){let t=Math.abs(o-n.y)/(i-n.x);(z(n,e)||n.y===o&&n.next.y===o&&n.next.x>i)&&(t<f||t===f&&(n.x>r.x||n.x===r.x&&C(r,n)))&&(r=n,f=t)}n=n.next}while(n!==h)}return r}(e,t);if(!r)return t;let n=F(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let d=new Float64Array,x=0;const v=[],w=[];function A(e,t){let r=e;do{let e=x++;v[e]=r;let n=1/0,i=1/0,o=-1/0,s=-1/0,l=0;do{let t=r.next;r.z=e,r.x<n&&(n=r.x),r.x>o&&(o=r.x),r.y<i&&(i=r.y),r.y>s&&(s=r.y),t.x<n&&(n=t.x),t.x>o&&(o=t.x),t.y<i&&(i=t.y),t.y>s&&(s=t.y),r=t}while(++l<16&&r!==t);w[e]=r;let a=4*e;d[a]=n,d[a+1]=i,d[a+2]=o,d[a+3]=s}while(r!==t)}function b(e){let t=w[e];for(;t.prev.next!==t;)t=t.next;return w[e]=t,t}function M(e){let t=v[e];for(;t.prev.next!==t;)t=t.next;return v[e]=t,t}function C(e,t){return j(e.prev,e,t.prev)<0&&j(t.next,e,e.next)<0}const T=[];let S=[],R=new Uint32Array,Z=new Uint32Array;const U=new Uint32Array(256);function N(e,t,r,n,i,o){U.fill(0);for(let t=0;t<e;t++)U[r[t]>>>o&255]++;let s=0;for(let e=0;e<256;e++){let t=U[e];U[e]=s,s+=t}for(let s=0;s<e;s++){let e=r[s],l=U[e>>>o&255]++;n[l]=t[s],i[l]=e}}function _(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function B(e){let t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function E(e,t,r,n,i,o,s,l){return(i-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(n-l)>=(r-s)*(t-l)&&(r-s)*(o-l)>=(i-s)*(n-l)}function L(e,t){let r=O(e,t)&&j(e.prev,e,e.next)>0&&j(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||z(e,t)&&z(t,e)&&(0!==j(e.prev,e,t.prev)||0!==j(e,t.prev,t)))&&!function(e,t){let r=Math.min(e.x,t.x),n=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=e;do{let l=s.next;if(s.x>n&&l.x>n||s.x<r&&l.x<r||s.y>o&&l.y>o||s.y<i&&l.y<i)s=l;else{if(s.i!==e.i&&l.i!==e.i&&s.i!==t.i&&l.i!==t.i&&P(s,l,e,t))return!0;s=l}}while(s!==e);return!1}(e,t)&&(r||function(e,t){let r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{let e=r.next;r.y>o!=e.y>o&&i<(e.x-r.x)*(o-r.y)/(e.y-r.y)+r.x&&(n=!n),r=e}while(r!==e);return n}(e,t))}function j(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function P(e,t,r,n,i=!0){let o=j(e,t,r),s=j(e,t,n),l=j(r,n,e),a=j(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&$(e,r,t)||0===s&&$(e,n,t)||0===l&&$(r,e,n)||0===a&&$(r,t,n))}function $(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function z(e,t){return j(e.prev,e,e.next)<0?j(e,t,e.next)>=0&&j(e,e.prev,t)>=0:j(e,t,e.prev)<0||j(e,e.next,t)<0}function F(e,t){let r=k(e.i,e.x,e.y),n=k(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function D(e,t,r,n){let i=k(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function I(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),h&&function(e,t){let r=4*e.z;t.x<d[r]&&(d[r]=t.x),t.y<d[r+1]&&(d[r+1]=t.y),t.x>d[r+2]&&(d[r+2]=t.x),t.y>d[r+3]&&(d[r+3]=t.y)}(e.prev,e.next)}function k(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function H(e,t,r,n){let i=0;for(let o=t,s=r-n;o<r;o+=n)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}let W,K,q,V,G,Y=0,J=0;function Q(e,t,r,n,i,o){return(r-e)*(o-t)-(n-t)*(i-e)}function X(e,t,r,n,i,o,s,l){let a=e-s,u=t-l,c=r-s,f=n-l,p=i-s,h=o-l,g=a*a+u*u,y=c*c+f*f,m=p*p+h*h,d=g+y+m;return a*(f*m-y*h)-u*(c*m-y*p)+g*(c*h-f*p)<=1e-13*d*d}function ee(e){return e-e%3+(e+1)%3}o.deviation=function(e,t,r,n){let i=t&&t.length,o=i?t[0]*r:e.length,s=Math.abs(H(e,0,o,r));if(i)for(let n=0,i=t.length;n<i;n++){let o=t[n]*r,l=n<i-1?t[n+1]*r:e.length;s-=Math.abs(H(e,o,l,r))}let l=0;for(let t=0;t<n.length;t+=3){let i=n[t]*r,o=n[t+1]*r,s=n[t+2]*r;l+=Math.abs((e[i]-e[s])*(e[o+1]-e[i+1])-(e[i]-e[o])*(e[s+1]-e[i+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},o.flatten=function(e){let t=[],r=[],n=e[0][0].length,i=0,o=0;for(let s of e){for(let e of s)for(let r=0;r<n;r++)t.push(e[r]);o&&(i+=o,r.push(i)),o=s.length}return{vertices:t,holes:r,dimensions:n}},o.refine=function(e,t,r=2){let n=e,i=n.length;if(i<6)return;(function(e){(!W||W.length<e)&&(W=new Int32Array(e)),(!K||K.length<e)&&(K=new Int32Array(e)),(!G||G.length<e)&&(G=new Uint8Array(e));let t=1;for(;t<4*e;)t<<=1;(!q||q.length<t)&&(q=new Int32Array(t),V=new Uint32Array(t)),Y=t-1})(i),J++,K.fill(-1,0,i);let o=0;for(let e=0;e<i;e++){let t=n[e],r=n[ee(e)],i=t<r?t:r,s=t<r?r:t,l=(Math.imul(i,2654435761)^Math.imul(s,2246822507))&Y;for(;V[l]===J;){let t=q[l];if(-1!==t){let r=n[t],a=n[ee(t)];if(r===i&&a===s||r===s&&a===i){K[e]=t,K[t]=e,q[l]=-1,G[t]=1,W[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=W[--o];G[e]=0;let i=K[e];if(-1===i)continue;let s=e-e%3,l=i-i%3,a=s+(e+2)%3,u=s+(e+1)%3,c=l+(i+2)%3,f=l+(i+1)%3,p=n[a],h=n[e],g=n[u],y=n[c],m=t[p*r],d=t[p*r+1],x=t[h*r],v=t[h*r+1],w=t[g*r],A=t[g*r+1],b=t[y*r],M=t[y*r+1];if(!X(m,d,x,v,w,A,b,M)&&Q(m,d,x,v,b,M)>0&&Q(m,d,b,M,w,A)>0){n[e]=y,n[i]=p;let t=K[c],r=K[a];K[e]=t,-1!==t&&(K[t]=e),K[i]=r,-1!==r&&(K[r]=i),K[a]=c,K[c]=a,-1!==t&&0===G[e]&&(G[e]=1,W[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,W[o++]=i),-1!==K[u]&&0===G[u]&&(G[u]=1,W[o++]=u),-1!==K[f]&&0===G[f]&&(G[f]=1,W[o++]=f)}}}},73354(e,t,r){r.d(t,{a:()=>f,b:()=>l,c:()=>i,d:()=>s,e:()=>p,f:()=>c,l:()=>u,n:()=>h,t:()=>o}),r(44208);var n=r(72727);function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[4],h=r[5],g=r[6],y=r[8],m=r[9],d=r[10],x=r[12],v=r[13],w=r[14],A=0,b=0;for(let r=0;r<a;r++){let r=t[A],n=t[A+1],s=t[A+2];e[b]=u*r+p*n+y*s+x,e[b+1]=c*r+h*n+m*s+v,e[b+2]=f*r+g*n+d*s+w,A+=o,b+=i}return e}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[3],h=r[4],g=r[5],y=r[6],m=r[7],d=r[8],x=0,v=0;for(let r=0;r<a;r++){let r=t[x],n=t[x+1],s=t[x+2];e[v]=u*r+p*n+y*s,e[v+1]=c*r+h*n+m*s,e[v+2]=f*r+g*n+d*s,x+=o,v+=i}}function a(e,t,r,n=3,i=n){let o=Math.min(e.length/n,t.length/i),s=0,l=0;for(let a=0;a<o;a++)e[l]=r*t[s],e[l+1]=r*t[s+1],e[l+2]=r*t[s+2],s+=i,l+=n;return e}function u(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,n,i=3,o=i){let s=Math.min(e.length/i,t.length/o),l=0,a=0,u=1/2.2;for(let c=0;c<s;c++)e[a]=n*(r*t[l])**u,e[a+1]=n*(r*t[l+1])**u,e[a+2]=n*(r*t[l+2])**u,l+=o,a+=i}function f(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=0,c=0;for(let n=0;n<a;n++)e[c]=t[u]+r[0],e[c+1]=t[u+1]+r[1],e[c+2]=t[u+2]+r[2],u+=o,c+=i;return e}function p(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r=3,n=r){let i=Math.min(e.length/r,t.length/n),o=0,s=0;for(let l=0;l<i;l++){let i=t[o],l=t[o+1],a=t[o+2],u=i*i+l*l+a*a;if(u>0){let t=1/Math.sqrt(u);e[s]=t*i,e[s+1]=t*l,e[s+2]=t*a}o+=n,s+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:h,normalizeView:p,scale:a,scaleView:function(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let n=Math.min(e.count,t.count),i=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,l=t.typedBufferStride,a=0,u=0;for(let e=0;e<n;e++)i[u]=s[a]>>r,i[u+1]=s[a+1]>>r,i[u+2]=s[a+2]>>r,a+=l,u+=o},transformMat3:l,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},21287(e,t,r){r.d(t,{M5:()=>f,eV:()=>c});var n=r(78888),i=r(26306),o=r(49186),s=r(17676),l=r(84952);let a=null,u=!0;function c(e,t,r,n){if(!t||!r)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,r)}catch{u=!1}let i=function(e,t,r){return r||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),r.getContext("2d").createImageData(e,t)}(t,r,n);return i.data.set(e,0),i}async function f(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let r=(0,l.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,i.M)(r.data),mediaType:r.mediaType};let o=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(88439));if(e(a))return n(a,t)}if(c){let{isAnimatedPNG:e,parseApng:n}=await r.e(2390).then(()=>r(22390));if(e(a))return n(a,t)}return async function(e,t){let r=window.URL.createObjectURL(e);try{let{data:e}=await(0,n.A)(r,{...t,responseType:"image"});return e}catch(e){throw(0,s.zf)(e)?e:new o.A("invalid-image",`Could not fetch requested image at ${r}`)}finally{window.URL.revokeObjectURL(r)}}(new Blob([a],{type:u}),t)}},83300(e,t,r){r.d(t,{A:()=>Me});var n=r(32198),i=r(91429),o=r(69540),s=r(51850),l=r(92474),a=r(53966),u=r(61893),c=r(17676),f=r(36708),p=r(91075),h=r(86738),g=r(70328),y=r(24770),m=r(16939),d=r(95696),x=r(18251),v=r(73836),w=r(35522),A=r(65806),b=r(27615);function M(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var C=r(22141),T=r(72258);const S=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const R=(0,s.vt)(),Z=(0,s.vt)(),U=(0,s.vt)();var N=r(9093),_=r(5443),B=r(48353),E=r(9762),L=r(99917),j=r(98764),O=r(73354),P=r(4197);const $=(0,N.vt)(),z=(0,P.jh)(24);var F=r(49186),D=r(84952);function I(e){let t=(0,D.nM)(e.url);return r=>{let n=(0,D.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return Y.fromBlob(e,J(e.name,e.type))}const H=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,K=/\.gltf$/i,q=/\.glb$/i;function V({mimeType:e,source:t,name:r}){return H.test(e)||K.test(r)?{url:t.url,type:"gltf"}:W.test(e)||q.test(r)?{url:t.url,type:"glb"}:null}function G(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=V(i),"ESRI3DO_NORM.glb"===o&&(n=V(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new F.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new Y(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class Y{constructor(e,t=()=>{},r=new Map,n){this.url=e,this.dispose=t,this.files=r,this.type=n}static fromBlob(e,t){let r=URL.createObjectURL(e);return new Y(r,()=>URL.revokeObjectURL(r),void 0,t)}}function J(e,t){return H.test(t)||K.test(e)?"gltf":W.test(t)||K.test(e)?"glb":void 0}var Q=r(66895),X=r(29461),ee=r(77690),te=r(29242),re=r(58083),ne=r(67026),ie=r(82534);const oe=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,r,n=s.uY){if(null!=e){(0,re.$0)(ce,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)le[r]=e[t+r]-n[r];(0,w.Z0)(le,le,ce);for(let r=0;r<3;r++)e[t+r]=le[r]+n[r]}}}const le=(0,s.vt)(),ae=(0,N.vt)(),ue=(0,y.vt)(),ce=(0,N.vt)(),fe=(0,te.vt)(),pe=(0,s.vt)(),he=(0,ie.vt)(),ge=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function ye(e,t,r=s.uY){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)me[t]=e[n+t]-r[t];(0,w.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,s.vt)(),de=(0,s.vt)(),xe=(0,N.vt)(),ve=(0,s.vt)();var we,Ae=r(1193);const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:d.A,local:x.A}};let Me=we=class extends((0,o.OU)((0,l.WV)((0,u.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new d.A,this.transform=null,this.metadata=new X.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Ae.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,f.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){let{spatialReference:e,vertexSpace:t}=this,r=this;return function(e){let{spatialReference:t,vertexSpace:r,untransformedBounds:n}=e,i=(0,g.gE)(n,z);if((0,b.Hq)(r)&&e.transform&&(0,O.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,O.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,j.lO)(t),s=r.origin;if(!(0,L.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new _.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,B.l)(t,s,$,o),(0,O.t)(i,i,$),(0,E.projectBuffer)(i,o,0,i,t,0),(0,g.w1)((0,g.vY)(i),t)}({get transform(){return r.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){let{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,g.vt)(g.v_):(0,g.vY)(e)}get origin(){let e=(0,b.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;let{center:t,zmin:r}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:r,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||=[],this.components.push(m.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){let t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}a.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,r,n){return(0,y.AU)(e,t,r,Ce),function(e,t,r){if(!e.vertexAttributes?.position||0===t[3])return;let{spatialReference:n,vertexSpace:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=le;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(oe(),r.spatialReference,o,C.JP);(0,ne.x8)(he,(0,y.yo)(t),(0,y.$I)(t));let p=(0,re.O7)(ae,he,s.uY,s.Un,f),{localMatrix:g}=i,m=(0,re.lw)(ae,p,g);i.scale=(0,re.X_)((0,s.vt)(),m),(0,re.hs)(m,m,(0,w.DI)(le,i.scale));let d=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=d),i.translation=(0,re.sC)((0,s.vt)(),m)}(e,t,o):M(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=pe;if(!(0,A.g)(r,o,i)&&((0,C.CN)(oe(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(oe(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,B.l)(i,o,ce,i),(0,ee.z0)(fe,ce);let p=ue;(0,w.ei)((0,y.yo)(ue),(0,y.yo)(t),fe),p[3]=t[3],(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(oe(),n,i):(se(u,p,3,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&(se(c,p,3),!(0,C.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(se(f,p,4),!(0,C.Mv)(f,s,n,u,i,a))?(0,C.CN)(oe(),i,n):e.vertexAttributesChanged():(0,C.CN)(oe(),i,n)):(0,C.CN)(oe(),n,i)}(e,t,o):function(e,t,r){let n=pe;if((0,A.g)(r,n,e.spatialReference))se(e.vertexAttributes.position,t,3,n),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(oe(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,Ce,n),this}offset(e,t,r){if(!this._checkIfLoaded("offset()"))return this;let{vertexSpace:n,vertexAttributes:i}=this,o=i?.position;if(!o)return this;if((0,b.Hq)(n)){let[i,o,l]=n.origin;n.origin=(0,s.fA)(i+e,o+t,l+r)}else{for(let n=0;n<o.length;n+=3)o[n]+=e,o[n+1]+=t,o[n+2]+=r;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n,spatialReference:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=me;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(ge(),r.spatialReference,o,C.JP);let p=(0,w.hZ)(de,t,t,t),g=(0,re.O7)(xe,ie.zK,s.uY,p,f),{localMatrix:m}=i,d=(0,re.lw)(xe,g,m);i.scale=(0,re.X_)((0,s.vt)(),d),(0,re.hs)(d,d,(0,w.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,re.sC)((0,s.vt)(),d)}(e,t,o):M(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=ve;if(!(0,A.g)(r,o,i)&&((0,C.CN)(ge(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(ge(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(ge(),n,i):(ye(u,t,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,C.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,C.Mv)(f,s,n,u,i,a)?(0,C.CN)(ge(),i,n):e.vertexAttributesChanged():(0,C.CN)(ge(),i,n)):(0,C.CN)(ge(),n,i)}(e,t,o):function(e,t,r){let n=ve;if((0,A.g)(r,n,e.spatialReference))ye(e.vertexAttributes.position,t,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(ge(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,e,t),this}centerAt(e,t){return this._checkIfLoaded("centerAt()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n}=e,i=r?.origin??e.origin;(0,b.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,b.Hq)(n))return;let i=Z,o=R;if(!(0,A.g)(t,o,e.spatialReference))return void(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP);if(!(0,A.g)(r,i,e.spatialReference))return void(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP);let l=(0,w.Re)(U,o,i);n.origin=(0,w.WQ)((0,s.vt)(),n.origin,l)}(e,t,i):M(n,i.spatialReference)?function(e,t,r){let n=(0,s.fA)(r.x,r.y,r.z??0),i=(0,T.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,s.fA)(t.x,t.y,t.z??0),l=(0,T.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},d.A.absolute);if(!l)return;let{position:a,normal:u,tangent:c}=l;e.vertexAttributes.position=a,e.vertexAttributes.normal=u,e.vertexAttributes.tangent=c,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=Z,i=R;if((0,A.g)(t,i,e.spatialReference))if((0,A.g)(r,n,e.spatialReference))(function(e,t,r){if(e)for(let n=0;n<e.length;n+=3)for(let i=0;i<3;i++)e[n+i]+=t[i]-r[i]})(e.vertexAttributes.position,i,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP)}else(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP)}(e,t,i)}(this,e,t),this}load(e){let{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,n){switch(t.source.type){case"client":case"service":return async function(e,t,n){let{source:i}=t,{loadGLTFMesh:o}=await(0,c.qr)(r.e(5841).then(()=>r(35841)),n),s=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");return G(e.map(e=>({name:e.name,mimeType:e.type,source:k(e)})))}(e.files):k(e.files);case"service":return async function(e,t){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,c.nA)(e.map(async e=>{let r=await async function(e,t){let{parts:r,assetMimeType:n,assetName:i}=e;if(1===r.length)return new Y(r[0].partUrl);let o=await e.toBlob(t);return(0,c.Te)(t),Y.fromBlob(o,J(i,n))}(e);return(0,c.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,c.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,c.NK)();return G(r)}(e.assets,t);default:throw new F.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,c.Te)(n);let{mesh:{vertexAttributes:l,components:a},meta:{isDracoDecompressed:u}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:I(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(u)throw new F.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=a}(e,t,n);case"loadable":return t.source.load(e,n);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,Q.WO)((0,Q.QN)(e)))}cloneShallow(){return new we({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){let[{toBinaryGLTF:t}]=await Promise.all([r.e(4038).then(()=>r(84038)),this.load(e)]);return(0,c.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(a.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,i.MZ)({type:[m.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,i.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,Q.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0,type:X.O,clonable:(e,t)=>(0,Q.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,i.MZ)({type:Ae.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=we=(0,n.Cg)([(0,i.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>h,QT:()=>g});var n=r(32198),i=r(2741),o=r(49186),s=r(44208),l=r(53966);r(34727);class a{constructor(e,t){this.precision=e,this.importFactory=t,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const u=new a("f32",async()=>(await r.e(2997).then(()=>r(42997))).default);function c(e){null!==e.evictionTimer&&(clearTimeout(e.evictionTimer),e.evictionTimer=null)}function f(e){c(e);let t=e.exports;null===t||t.HEAP8.byteLength<10485760||(e.evictionTimer=setTimeout(()=>{e.evictionTimer=null,async function(e,t){try{let r=e.compiled;if(null===r)return;let n=await e.importFactory();if(e.exports!==t)return;let i=await n(p(r));e.exports===t&&(c(e),e.exports=i)}catch(t){l.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${e.precision.toUpperCase()}`,t)}}(e,t)},1e4))}function p(e){return{locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`),instantiateWasm:(t,r)=>(r(new WebAssembly.Instance(e,t),e),{})}}function h(){return function(e){if(null!==e.exports)return f(e),Promise.resolve();if(null!==e.loading)return e.loading;let t=async function(e){let t=await e.importFactory(),r=e.compiled??await async function(e){let t=`libtess-${e}.wasm`,r=(0,i.s)(`esri/core/libs/libtess/${t}`),n=await fetch(r,{credentials:"same-origin"});if(!n.ok)throw Error(`${n.status} : ${n.url}`);return WebAssembly.compile(await n.arrayBuffer())}(e.precision);e.compiled??=r,e.exports=await t(p(r)),f(e)}(e);e.loading=t;let r=()=>{e.loading===t&&(e.loading=null)};return t.then(r,r),t}(u)}function g(e,t,r=2){return function(e,t){c(e);try{return t()}finally{f(e)}}(u,()=>function(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=u.exports;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,n.mS)(i,d.from(l,e),!1),c=(0,n.mS)(i,x.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new d(l,f*r),!1),h=l.triangulate(a.ptr,c.ptr,c.size,r,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){let e=l.getError();0!==e&&console.warn("libtess:triangulation",function(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}(e))}return{buffer:p.slice(0,h*r),vertexCount:h}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}(e,t,r))}function y(e){return e.HEAPF32}function m(e){return e.HEAP32}new a("f64",async()=>(await r.e(9134).then(()=>r(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class d{static from(e,t){let r=new d(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){y(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return y(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class x{static from(e,t){let r=new x(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){m(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=m(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(r+e,r+t)}}},97146(e,t,r){r.d(t,{Dg:()=>o,lc:()=>f,my:()=>s,tM:()=>p,uW:()=>i});var n=r(34275);function i(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let r=!0,i=!0;return e.some((e,t)=>(r&&=0===e,i&&=e===t,!r&&!i)),r?function(e){if(1===e)return u;if(e<1024)return Array(e).fill(0);if(e>a.length){let t=Math.max(2*a.length,e);a=new Uint8Array(t)}return new Uint8Array(a.buffer,0,e)}(e.length):i?p(e.length):(0,n.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(let r of e){if(r>=65536)return(0,n.iu)(e)?e:new Uint32Array(e);r>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}let l=h(131072),a=new Uint8Array(65536);const u=[0],c=(()=>{let e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){if(e===u)return!0;if(!(0,n.iu)(e))return!1;let{buffer:t}=e;return t===c.buffer||t===l.buffer||t===a.buffer}function p(e){return 1===e?u:e<1024?function(e){let t=Array(e).fill(0);for(let r=0;r<e;r++)t[r]=r;return t}(e):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=h(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function h(e){let t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}},16939(e,t,r){r.d(t,{A:()=>h});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(25482),u=r(53966),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,l.OU)(a.o)){static from(e){return(0,s.PZ)(n,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},u.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,s.PZ)(f.A,e):(0,s.PZ)(c.A,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,i.Cg)([(0,o.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,o.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(93223);let u=class extends((0,s.OU)(l.o)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(25482),l=r(51850),a=r(93223);let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,n.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(91429),s=r(69540),l=r(25482),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:a.A.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:a.A.from(e))}clone(e){let t=(0,c.hz)(e),r=t?.materialMap?.get(this);if(r)return r;let n=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,n),n}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null==this.color?0:16,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null==this.colorTextureTransform?0:20,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null==this.normalTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(68197),o=r(91429),s=r(19211),l=r(35063),a=r(51147);let u=class extends s.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:l.A.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:l.A.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:l.A.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null==this.emissiveColor?0:16,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null==this.emissiveTextureTransform?0:20,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null==this.occlusionTextureTransform?0:20,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null==this.metallicRoughnessTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,r){r.d(t,{A:()=>m});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(21287),u=r(25482),c=r(97159),f=r(66895),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,m=class extends((0,l.OU)(u.o)){static{n=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,r,n){e instanceof HTMLImageElement?t[r]={type:"image-element",src:(0,c.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,c.t)(e.src,n),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload}:e instanceof ImageData&&(t[r]={type:"image-data",imageData:d(e)})}readData(e){switch(e.type){case"image-element":{let t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{let t=x(e.imageData),r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").putImageData(t,0,0),r}case"image-data":return x(e.imageData);case"video-element":{let t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){let{data:e,url:t}=this,r=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!!(t&&r(t)||e instanceof HTMLImageElement&&r(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){let e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null==this.url?null==this.data?t():this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++y),t(g.get(this.data))):t(this.url)}get memoryUsage(){let e=0;if(e+=null==this.url?0:this.url.length,null!=this.data){let t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){let t=(0,f.$N)(e),r=t?.textureMap?.get(this);if(r)return r;let n=super.clone(e);return t?.textureMap?.set(this,n),n}static from(e){return"string"==typeof e?new n({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new n({data:e}):(0,s.PZ)(n,e)}};function d(e){let t="";for(let r=0;r<e.data.length;r++)t+=String.fromCharCode(e.data[r]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){let t=atob(e.data),r=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return(0,a.eV)(r,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,i.Cg)([(0,o.MZ)({type:String,json:{write:c.w}})],m.prototype,"url",null),(0,i.Cg)([(0,o.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],m.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],m.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],m.prototype,"readData",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTexture")],m)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(91429),o=r(69540),s=r(25482);let l=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(4718),u=r(53966),c=r(31199);let f=n=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clonePositional(){let e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new n(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,o.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,o.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,o.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,o.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,o.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(e,t,r){function n(e,t,r){if(t<=0)return 0;let n=e-r;return n<0?0:Math.floor(n/t)+1}r.d(t,{k:()=>n}),r(53966)},31199(e,t,r){function n(e,t,r,n){let{loggerTag:i,stride:o}=t;return e.length%o===0?e:(n.error(i,`Invalid array length, expected a multiple of ${o}`),new r([]))}function i(e,t,r,i,o){if(!e)return e;if(e instanceof t)return n(e,i,t,o);for(let s of r)if(e instanceof s)return n(new t(e),i,t,o);if(Array.isArray(e))return n(new t(e),i,t,o);{let n=r.map(e=>`'${e.name}'`);return o.error(`Failed to set property, expected one of ${n}, but got ${e.constructor.name}`),new t([])}}function o(e,t,r){t[r]=function(e){let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r];return t}(e)}r.d(t,{B:()=>o,b:()=>i})},98331(e,t,r){r.d(t,{H5:()=>p,createWithExternalSource:()=>f});var n=r(49186),i=(r(17676),r(9762),r(4197),r(77690),r(29242)),o=(r(35522),r(51850));r(48353),r(13030),(0,i.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(62788);var s=r(95488);r(44208),r(83349),r(53966),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new s.I,new WeakSet;var l=r(83300),a=(r(16939),r(95696),r(73836));r(1193),r(66895),r(72258);var u=r(29461),c=r(27615);function f(e,t,r){let n=r?.extent??null,{spatialReference:i}=e,o=r?.transform?.clone()??new a.A,s=(0,c.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new u.O;return p.externalSources.push(f),new l.A({metadata:p,transform:o,vertexSpace:s,spatialReference:i})}function p(e,t){let{spatialReference:r}=e,i=t?.transform?.clone()??new a.A,o=(0,c.TE)(e,t),s=new l.A({transform:i,vertexSpace:o,spatialReference:r});return s.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),s}(0,o.vt)(),(0,i.vt)()},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>m,dK:()=>d,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(4576),i=r(17676),o=r(20557),s=r(78888);class l{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,n.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(r)}}class a{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){let{type:t,name:r}=e;return c.test(t)||f.test(r)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function g(e,t){if(e===t)return!0;let{source:r}=e,{source:n}=t;if(r===n)return!0;if("service"===r.type&&"service"===n.type){if(r.assets.length!==n.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...n.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function y(e,t){return e instanceof File?(0,o.rq)(e,t):(0,o.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function d(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(7762),l=r(36708),a=r(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new s.A,this._explicitDisplaySource=null,this.addHandles((0,l.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,a.yr)(e))throw Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,a.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,a.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(a.yr)}};(0,n.Cg)([(0,i.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,i.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,r){r.d(t,{$N:()=>c,Lz:()=>o,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>i});const n=Symbol("meshContext");function i(e){return e&&"object"==typeof e&&n in e?e[n]:void 0}function o(e,t){let r=i(e);return{...e,[n]:{...r,...t}}}const s=Symbol("meshMaterialContext");function l(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function a(e){if(l(e)?.materialMap)return e;let t={materialMap:new Map};return{...e,[s]:t}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){if(c(e)?.textureMap)return e;let t={textureMap:new Map};return{...e,[u]:t}}},27615(e,t,r){r.d(t,{CK:()=>a,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>f});var n=r(35522),i=r(86738),o=r(95696),s=r(18251);function l(e){return null!=e.origin}function a(e){return l(e.vertexSpace)}function u(e,t){if(!l(e))return null;let[r,n,o]=e.origin;return new i.A({x:r,y:n,z:o,spatialReference:t})}function c(e,t){let{x:r,y:n,z:i,spatialReference:l}=e,a=[r,n,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(l))?new s.A({origin:a}):new o.A({origin:a})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,n.t2)(e.origin,t.origin))}}}]);
|
|
1
|
+
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8331],{83349(e,t,r){r.d(t,{e:()=>o});const n=new Set;let i=!1;function o(e,t,r=2){let i=t&&t.length,o=i?t[0]*r:e.length;n.size&&n.clear();let l=s(e,0,o,r,!0),u=[];if(!l||l.next===l.prev)return u;let c=0,f=0,p=0;if(i&&(l=g(e,t,l,r)),e.length>80*r){c=e[0],f=e[1];let t=c,n=f;for(let i=r;i<o;i+=r){let r=e[i],o=e[i+1];r<c&&(c=r),o<f&&(f=o),r>t&&(t=r),o>n&&(n=o)}p=Math.max(t-c,n-f),p=0===p?0:32767/p}return a(l,u,c,f,p),u}function s(e,t,r,n,i){let o=null;if(i===H(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=D(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=D(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(I(o),o=o.next),o}function l(e,t=e){let r,o=t===e,s=e;do{r=!1,s===s.next||0!==n.size&&n.has(s)||!O(s,s.next)&&0!==j(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,I(s),s=s.prev,r=!0)}while(r||s!==t);return t}function a(e,t,r,n,o){o&&function(e,t,r,n){let i=e,o=0;do{i.z=_(i.x,i.y,t,r,n),T[o++]=i,i=i.next}while(i!==e);!function(e){if(e<=32)for(let t=1;t<e;t++){let e=T[t],r=e.z,n=t-1;for(;n>=0&&T[n].z>r;)T[n+1]=T[n],n--;T[n+1]=e}else{R.length<e&&(R=new Uint32Array(e),Z=new Uint32Array(e),S=Array(e));for(let t=0;t<e;t++)R[t]=T[t].z;N(e,T,R,S,Z,0),N(e,S,Z,T,R,8),N(e,T,R,S,Z,16),N(e,S,Z,T,R,24)}}(o);let s=null;for(let e=0;e<o;e++){let t=T[e];t.prevZ=s,s&&(s.nextZ=t),s=t}s.nextZ=null,T.fill(null,0,o),S.fill(null,0,o)}(e,r,n,o);let s=e,a=!1;for(;e.prev!==e.next;){let h=e.prev,g=e.next;if(j(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),I(e),e=g,s=g;else if((e=g)===s){if(i=!1,e=l(e),i){s=e;continue}if(!a){s=e=f(e,t),a=!0;continue}p(e,t,r,n,o);break}}}function u(e){let t=e.prev,r=e,n=e.next,i=t.x,o=r.x,s=n.x,l=t.y,a=r.y,u=n.y,c=Math.min(i,o,s),f=Math.min(l,a,u),p=Math.max(i,o,s),h=Math.max(l,a,u),g=n.next;for(;g!==t;){if(g.x>=c&&g.x<=p&&g.y>=f&&g.y<=h&&(i!==g.x||l!==g.y)&&E(i,l,o,a,s,u,g.x,g.y)&&j(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(e,t,r,n){let i=e.prev,o=e,s=e.next,l=i.x,a=o.x,u=s.x,c=i.y,f=o.y,p=s.y,h=Math.min(l,a,u),g=Math.min(c,f,p),y=Math.max(l,a,u),m=Math.max(c,f,p),d=_(h,g,t,r,n),x=_(y,m,t,r,n),v=e.prevZ;for(;v&&v.z>=d;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=m&&v!==s&&(l!==v.x||c!==v.y)&&E(l,c,a,f,u,p,v.x,v.y)&&j(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=y&&w.y>=g&&w.y<=m&&w!==s&&(l!==w.x||c!==w.y)&&E(l,c,a,f,u,p,w.x,w.y)&&j(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function f(e,t){let r=e,n=!1;do{let i=r.prev,o=r.next.next;P(i,r,r.next,o,!1)&&z(i,o)&&z(o,i)&&(t.push(i.i,r.i,o.i),I(r),I(r.next),r=e=o,n=!0),r=r.next}while(r!==e);return n?l(r):r}function p(e,t,r,n,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&L(o,e)){let s=F(o,e);return o=l(o,o.next),s=l(s,s.next),a(o,t,r,n,i),void a(s,t,r,n,i)}e=e.next}o=o.next}while(o!==e)}let h=!1;function g(e,t,r,i){let o=[];for(let r=0,l=t.length;r<l;r++){let a=s(e,t[r]*i,r<l-1?t[r+1]*i:e.length,i,!1);a===a.next&&n.add(a),o.push(B(a))}o.sort(y),function(e,t){let r=Math.ceil((e+2*t)/16)+t+2;d.length<4*r&&(d=new Float64Array(4*r)),x=0}(e.length/i,t.length),A(r,r),h=!0;for(let e=0;e<o.length;e++)r=m(o[e],r);return h=!1,l(r)}function y(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function m(e,t){let r=function(e,t){let r,n=t,i=e.x,o=e.y,s=-1/0;if(O(e,n))return n;for(let t=0,l=0;t<x;t++,l+=4){if(o<d[l+1]||o>d[l+3]||d[l]>i||d[l+2]<=s)continue;let a=b(t);n=M(t);do{if(n.prev.next===n){if(O(e,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){let e=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=i&&e>s&&(s=e,r=n.x<n.next.x?n:n.next,e===i))return r}}n=n.next}while(n!==a)}if(!r)return null;let l=r.x,a=r.y,u=Math.min(o,a),c=Math.max(o,a),f=1/0;for(let t=0,p=0;t<x;t++,p+=4){if(d[p+2]<l||d[p]>i||d[p+3]<u||d[p+1]>c)continue;let h=b(t);n=M(t);do{if(n.prev.next===n&&i>=n.x&&n.x>=l&&i!==n.x&&E(o<a?i:s,o,l,a,o<a?s:i,o,n.x,n.y)){let t=Math.abs(o-n.y)/(i-n.x);(z(n,e)||n.y===o&&n.next.y===o&&n.next.x>i)&&(t<f||t===f&&(n.x>r.x||n.x===r.x&&C(r,n)))&&(r=n,f=t)}n=n.next}while(n!==h)}return r}(e,t);if(!r)return t;let n=F(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let d=new Float64Array,x=0;const v=[],w=[];function A(e,t){let r=e;do{let e=x++;v[e]=r;let n=1/0,i=1/0,o=-1/0,s=-1/0,l=0;do{let t=r.next;r.z=e,r.x<n&&(n=r.x),r.x>o&&(o=r.x),r.y<i&&(i=r.y),r.y>s&&(s=r.y),t.x<n&&(n=t.x),t.x>o&&(o=t.x),t.y<i&&(i=t.y),t.y>s&&(s=t.y),r=t}while(++l<16&&r!==t);w[e]=r;let a=4*e;d[a]=n,d[a+1]=i,d[a+2]=o,d[a+3]=s}while(r!==t)}function b(e){let t=w[e];for(;t.prev.next!==t;)t=t.next;return w[e]=t,t}function M(e){let t=v[e];for(;t.prev.next!==t;)t=t.next;return v[e]=t,t}function C(e,t){return j(e.prev,e,t.prev)<0&&j(t.next,e,e.next)<0}const T=[];let S=[],R=new Uint32Array,Z=new Uint32Array;const U=new Uint32Array(256);function N(e,t,r,n,i,o){U.fill(0);for(let t=0;t<e;t++)U[r[t]>>>o&255]++;let s=0;for(let e=0;e<256;e++){let t=U[e];U[e]=s,s+=t}for(let s=0;s<e;s++){let e=r[s],l=U[e>>>o&255]++;n[l]=t[s],i[l]=e}}function _(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function B(e){let t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function E(e,t,r,n,i,o,s,l){return(i-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(n-l)>=(r-s)*(t-l)&&(r-s)*(o-l)>=(i-s)*(n-l)}function L(e,t){let r=O(e,t)&&j(e.prev,e,e.next)>0&&j(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||z(e,t)&&z(t,e)&&(0!==j(e.prev,e,t.prev)||0!==j(e,t.prev,t)))&&!function(e,t){let r=Math.min(e.x,t.x),n=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=e;do{let l=s.next;if(s.x>n&&l.x>n||s.x<r&&l.x<r||s.y>o&&l.y>o||s.y<i&&l.y<i)s=l;else{if(s.i!==e.i&&l.i!==e.i&&s.i!==t.i&&l.i!==t.i&&P(s,l,e,t))return!0;s=l}}while(s!==e);return!1}(e,t)&&(r||function(e,t){let r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{let e=r.next;r.y>o!=e.y>o&&i<(e.x-r.x)*(o-r.y)/(e.y-r.y)+r.x&&(n=!n),r=e}while(r!==e);return n}(e,t))}function j(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function P(e,t,r,n,i=!0){let o=j(e,t,r),s=j(e,t,n),l=j(r,n,e),a=j(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&$(e,r,t)||0===s&&$(e,n,t)||0===l&&$(r,e,n)||0===a&&$(r,t,n))}function $(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function z(e,t){return j(e.prev,e,e.next)<0?j(e,t,e.next)>=0&&j(e,e.prev,t)>=0:j(e,t,e.prev)<0||j(e,e.next,t)<0}function F(e,t){let r=k(e.i,e.x,e.y),n=k(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function D(e,t,r,n){let i=k(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function I(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),h&&function(e,t){let r=4*e.z;t.x<d[r]&&(d[r]=t.x),t.y<d[r+1]&&(d[r+1]=t.y),t.x>d[r+2]&&(d[r+2]=t.x),t.y>d[r+3]&&(d[r+3]=t.y)}(e.prev,e.next)}function k(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function H(e,t,r,n){let i=0;for(let o=t,s=r-n;o<r;o+=n)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}let W,K,q,V,G,Y=0,J=0;function Q(e,t,r,n,i,o){return(r-e)*(o-t)-(n-t)*(i-e)}function X(e,t,r,n,i,o,s,l){let a=e-s,u=t-l,c=r-s,f=n-l,p=i-s,h=o-l,g=a*a+u*u,y=c*c+f*f,m=p*p+h*h,d=g+y+m;return a*(f*m-y*h)-u*(c*m-y*p)+g*(c*h-f*p)<=1e-13*d*d}function ee(e){return e-e%3+(e+1)%3}o.deviation=function(e,t,r,n){let i=t&&t.length,o=i?t[0]*r:e.length,s=Math.abs(H(e,0,o,r));if(i)for(let n=0,i=t.length;n<i;n++){let o=t[n]*r,l=n<i-1?t[n+1]*r:e.length;s-=Math.abs(H(e,o,l,r))}let l=0;for(let t=0;t<n.length;t+=3){let i=n[t]*r,o=n[t+1]*r,s=n[t+2]*r;l+=Math.abs((e[i]-e[s])*(e[o+1]-e[i+1])-(e[i]-e[o])*(e[s+1]-e[i+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},o.flatten=function(e){let t=[],r=[],n=e[0][0].length,i=0,o=0;for(let s of e){for(let e of s)for(let r=0;r<n;r++)t.push(e[r]);o&&(i+=o,r.push(i)),o=s.length}return{vertices:t,holes:r,dimensions:n}},o.refine=function(e,t,r=2){let n=e,i=n.length;if(i<6)return;(function(e){(!W||W.length<e)&&(W=new Int32Array(e)),(!K||K.length<e)&&(K=new Int32Array(e)),(!G||G.length<e)&&(G=new Uint8Array(e));let t=1;for(;t<4*e;)t<<=1;(!q||q.length<t)&&(q=new Int32Array(t),V=new Uint32Array(t)),Y=t-1})(i),J++,K.fill(-1,0,i);let o=0;for(let e=0;e<i;e++){let t=n[e],r=n[ee(e)],i=t<r?t:r,s=t<r?r:t,l=(Math.imul(i,2654435761)^Math.imul(s,2246822507))&Y;for(;V[l]===J;){let t=q[l];if(-1!==t){let r=n[t],a=n[ee(t)];if(r===i&&a===s||r===s&&a===i){K[e]=t,K[t]=e,q[l]=-1,G[t]=1,W[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=W[--o];G[e]=0;let i=K[e];if(-1===i)continue;let s=e-e%3,l=i-i%3,a=s+(e+2)%3,u=s+(e+1)%3,c=l+(i+2)%3,f=l+(i+1)%3,p=n[a],h=n[e],g=n[u],y=n[c],m=t[p*r],d=t[p*r+1],x=t[h*r],v=t[h*r+1],w=t[g*r],A=t[g*r+1],b=t[y*r],M=t[y*r+1];if(!X(m,d,x,v,w,A,b,M)&&Q(m,d,x,v,b,M)>0&&Q(m,d,b,M,w,A)>0){n[e]=y,n[i]=p;let t=K[c],r=K[a];K[e]=t,-1!==t&&(K[t]=e),K[i]=r,-1!==r&&(K[r]=i),K[a]=c,K[c]=a,-1!==t&&0===G[e]&&(G[e]=1,W[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,W[o++]=i),-1!==K[u]&&0===G[u]&&(G[u]=1,W[o++]=u),-1!==K[f]&&0===G[f]&&(G[f]=1,W[o++]=f)}}}},73354(e,t,r){r.d(t,{a:()=>f,b:()=>l,c:()=>i,d:()=>s,e:()=>p,f:()=>c,l:()=>u,n:()=>h,t:()=>o}),r(44208);var n=r(72727);function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[4],h=r[5],g=r[6],y=r[8],m=r[9],d=r[10],x=r[12],v=r[13],w=r[14],A=0,b=0;for(let r=0;r<a;r++){let r=t[A],n=t[A+1],s=t[A+2];e[b]=u*r+p*n+y*s+x,e[b+1]=c*r+h*n+m*s+v,e[b+2]=f*r+g*n+d*s+w,A+=o,b+=i}return e}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[3],h=r[4],g=r[5],y=r[6],m=r[7],d=r[8],x=0,v=0;for(let r=0;r<a;r++){let r=t[x],n=t[x+1],s=t[x+2];e[v]=u*r+p*n+y*s,e[v+1]=c*r+h*n+m*s,e[v+2]=f*r+g*n+d*s,x+=o,v+=i}}function a(e,t,r,n=3,i=n){let o=Math.min(e.length/n,t.length/i),s=0,l=0;for(let a=0;a<o;a++)e[l]=r*t[s],e[l+1]=r*t[s+1],e[l+2]=r*t[s+2],s+=i,l+=n;return e}function u(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,n,i=3,o=i){let s=Math.min(e.length/i,t.length/o),l=0,a=0,u=1/2.2;for(let c=0;c<s;c++)e[a]=n*(r*t[l])**u,e[a+1]=n*(r*t[l+1])**u,e[a+2]=n*(r*t[l+2])**u,l+=o,a+=i}function f(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=0,c=0;for(let n=0;n<a;n++)e[c]=t[u]+r[0],e[c+1]=t[u+1]+r[1],e[c+2]=t[u+2]+r[2],u+=o,c+=i;return e}function p(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r=3,n=r){let i=Math.min(e.length/r,t.length/n),o=0,s=0;for(let l=0;l<i;l++){let i=t[o],l=t[o+1],a=t[o+2],u=i*i+l*l+a*a;if(u>0){let t=1/Math.sqrt(u);e[s]=t*i,e[s+1]=t*l,e[s+2]=t*a}o+=n,s+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:h,normalizeView:p,scale:a,scaleView:function(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let n=Math.min(e.count,t.count),i=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,l=t.typedBufferStride,a=0,u=0;for(let e=0;e<n;e++)i[u]=s[a]>>r,i[u+1]=s[a+1]>>r,i[u+2]=s[a+2]>>r,a+=l,u+=o},transformMat3:l,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},21287(e,t,r){r.d(t,{M5:()=>f,eV:()=>c});var n=r(78888),i=r(26306),o=r(49186),s=r(17676),l=r(84952);let a=null,u=!0;function c(e,t,r,n){if(!t||!r)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,r)}catch{u=!1}let i=function(e,t,r){return r||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),r.getContext("2d").createImageData(e,t)}(t,r,n);return i.data.set(e,0),i}async function f(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let r=(0,l.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,i.M)(r.data),mediaType:r.mediaType};let o=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(88439));if(e(a))return n(a,t)}if(c){let{isAnimatedPNG:e,parseApng:n}=await r.e(2390).then(()=>r(22390));if(e(a))return n(a,t)}return async function(e,t){let r=window.URL.createObjectURL(e);try{let{data:e}=await(0,n.A)(r,{...t,responseType:"image"});return e}catch(e){throw(0,s.zf)(e)?e:new o.A("invalid-image",`Could not fetch requested image at ${r}`)}finally{window.URL.revokeObjectURL(r)}}(new Blob([a],{type:u}),t)}},83300(e,t,r){r.d(t,{A:()=>Me});var n=r(32198),i=r(91429),o=r(69540),s=r(51850),l=r(92474),a=r(53966),u=r(61893),c=r(17676),f=r(36708),p=r(91075),h=r(86738),g=r(70328),y=r(24770),m=r(16939),d=r(95696),x=r(18251),v=r(73836),w=r(35522),A=r(65806),b=r(27615);function M(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var C=r(22141),T=r(72258);const S=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const R=(0,s.vt)(),Z=(0,s.vt)(),U=(0,s.vt)();var N=r(9093),_=r(5443),B=r(48353),E=r(9762),L=r(99917),j=r(98764),O=r(73354),P=r(4197);const $=(0,N.vt)(),z=(0,P.jh)(24);var F=r(49186),D=r(84952);function I(e){let t=(0,D.nM)(e.url);return r=>{let n=(0,D.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return Y.fromBlob(e,J(e.name,e.type))}const H=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,K=/\.gltf$/i,q=/\.glb$/i;function V({mimeType:e,source:t,name:r}){return H.test(e)||K.test(r)?{url:t.url,type:"gltf"}:W.test(e)||q.test(r)?{url:t.url,type:"glb"}:null}function G(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=V(i),"ESRI3DO_NORM.glb"===o&&(n=V(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new F.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new Y(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class Y{constructor(e,t=()=>{},r=new Map,n){this.url=e,this.dispose=t,this.files=r,this.type=n}static fromBlob(e,t){let r=URL.createObjectURL(e);return new Y(r,()=>URL.revokeObjectURL(r),void 0,t)}}function J(e,t){return H.test(t)||K.test(e)?"gltf":W.test(t)||K.test(e)?"glb":void 0}var Q=r(66895),X=r(29461),ee=r(77690),te=r(29242),re=r(58083),ne=r(67026),ie=r(82534);const oe=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,r,n=s.uY){if(null!=e){(0,re.$0)(ce,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)le[r]=e[t+r]-n[r];(0,w.Z0)(le,le,ce);for(let r=0;r<3;r++)e[t+r]=le[r]+n[r]}}}const le=(0,s.vt)(),ae=(0,N.vt)(),ue=(0,y.vt)(),ce=(0,N.vt)(),fe=(0,te.vt)(),pe=(0,s.vt)(),he=(0,ie.vt)(),ge=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function ye(e,t,r=s.uY){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)me[t]=e[n+t]-r[t];(0,w.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,s.vt)(),de=(0,s.vt)(),xe=(0,N.vt)(),ve=(0,s.vt)();var we,Ae=r(1193);const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:d.A,local:x.A}};let Me=we=class extends((0,o.OU)((0,l.WV)((0,u.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new d.A,this.transform=null,this.metadata=new X.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Ae.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,f.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){let{spatialReference:e,vertexSpace:t}=this,r=this;return function(e){let{spatialReference:t,vertexSpace:r,untransformedBounds:n}=e,i=(0,g.gE)(n,z);if((0,b.Hq)(r)&&e.transform&&(0,O.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,O.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,j.lO)(t),s=r.origin;if(!(0,L.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new _.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,B.l)(t,s,$,o),(0,O.t)(i,i,$),(0,E.projectBuffer)(i,o,0,i,t,0),(0,g.w1)((0,g.vY)(i),t)}({get transform(){return r.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){let{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,g.vt)(g.v_):(0,g.vY)(e)}get origin(){let e=(0,b.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;let{center:t,zmin:r}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:r,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||=[],this.components.push(m.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){let t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}a.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,r,n){return(0,y.AU)(e,t,r,Ce),function(e,t,r){if(!e.vertexAttributes?.position||0===t[3])return;let{spatialReference:n,vertexSpace:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=le;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(oe(),r.spatialReference,o,C.JP);(0,ne.x8)(he,(0,y.yo)(t),(0,y.$I)(t));let p=(0,re.O7)(ae,he,s.uY,s.Un,f),{localMatrix:g}=i,m=(0,re.lw)(ae,p,g);i.scale=(0,re.X_)((0,s.vt)(),m),(0,re.hs)(m,m,(0,w.DI)(le,i.scale));let d=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=d),i.translation=(0,re.sC)((0,s.vt)(),m)}(e,t,o):M(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=pe;if(!(0,A.g)(r,o,i)&&((0,C.CN)(oe(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(oe(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,B.l)(i,o,ce,i),(0,ee.z0)(fe,ce);let p=ue;(0,w.ei)((0,y.yo)(ue),(0,y.yo)(t),fe),p[3]=t[3],(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(oe(),n,i):(se(u,p,3,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&(se(c,p,3),!(0,C.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(se(f,p,4),!(0,C.Mv)(f,s,n,u,i,a))?(0,C.CN)(oe(),i,n):e.vertexAttributesChanged():(0,C.CN)(oe(),i,n)):(0,C.CN)(oe(),n,i)}(e,t,o):function(e,t,r){let n=pe;if((0,A.g)(r,n,e.spatialReference))se(e.vertexAttributes.position,t,3,n),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(oe(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,Ce,n),this}offset(e,t,r){if(!this._checkIfLoaded("offset()"))return this;let{vertexSpace:n,vertexAttributes:i}=this,o=i?.position;if(!o)return this;if((0,b.Hq)(n)){let[i,o,l]=n.origin;n.origin=(0,s.fA)(i+e,o+t,l+r)}else{for(let n=0;n<o.length;n+=3)o[n]+=e,o[n+1]+=t,o[n+2]+=r;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n,spatialReference:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=me;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(ge(),r.spatialReference,o,C.JP);let p=(0,w.hZ)(de,t,t,t),g=(0,re.O7)(xe,ie.zK,s.uY,p,f),{localMatrix:m}=i,d=(0,re.lw)(xe,g,m);i.scale=(0,re.X_)((0,s.vt)(),d),(0,re.hs)(d,d,(0,w.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,re.sC)((0,s.vt)(),d)}(e,t,o):M(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=ve;if(!(0,A.g)(r,o,i)&&((0,C.CN)(ge(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(ge(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(ge(),n,i):(ye(u,t,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,C.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,C.Mv)(f,s,n,u,i,a)?(0,C.CN)(ge(),i,n):e.vertexAttributesChanged():(0,C.CN)(ge(),i,n)):(0,C.CN)(ge(),n,i)}(e,t,o):function(e,t,r){let n=ve;if((0,A.g)(r,n,e.spatialReference))ye(e.vertexAttributes.position,t,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(ge(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,e,t),this}centerAt(e,t){return this._checkIfLoaded("centerAt()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n}=e,i=r?.origin??e.origin;(0,b.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,b.Hq)(n))return;let i=Z,o=R;if(!(0,A.g)(t,o,e.spatialReference))return void(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP);if(!(0,A.g)(r,i,e.spatialReference))return void(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP);let l=(0,w.Re)(U,o,i);n.origin=(0,w.WQ)((0,s.vt)(),n.origin,l)}(e,t,i):M(n,i.spatialReference)?function(e,t,r){let n=(0,s.fA)(r.x,r.y,r.z??0),i=(0,T.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,s.fA)(t.x,t.y,t.z??0),l=(0,T.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},d.A.absolute);if(!l)return;let{position:a,normal:u,tangent:c}=l;e.vertexAttributes.position=a,e.vertexAttributes.normal=u,e.vertexAttributes.tangent=c,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=Z,i=R;if((0,A.g)(t,i,e.spatialReference))if((0,A.g)(r,n,e.spatialReference))(function(e,t,r){if(e)for(let n=0;n<e.length;n+=3)for(let i=0;i<3;i++)e[n+i]+=t[i]-r[i]})(e.vertexAttributes.position,i,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP)}else(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP)}(e,t,i)}(this,e,t),this}load(e){let{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,n){switch(t.source.type){case"client":case"service":return async function(e,t,n){let{source:i}=t,{loadGLTFMesh:o}=await(0,c.qr)(r.e(5841).then(()=>r(35841)),n),s=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");return G(e.map(e=>({name:e.name,mimeType:e.type,source:k(e)})))}(e.files):k(e.files);case"service":return async function(e,t){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,c.nA)(e.map(async e=>{let r=await async function(e,t){let{parts:r,assetMimeType:n,assetName:i}=e;if(1===r.length)return new Y(r[0].partUrl);let o=await e.toBlob(t);return(0,c.Te)(t),Y.fromBlob(o,J(i,n))}(e);return(0,c.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,c.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,c.NK)();return G(r)}(e.assets,t);default:throw new F.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,c.Te)(n);let{mesh:{vertexAttributes:l,components:a},meta:{isDracoDecompressed:u}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:I(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(u)throw new F.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=a}(e,t,n);case"loadable":return t.source.load(e,n);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,Q.WO)((0,Q.QN)(e)))}cloneShallow(){return new we({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){let[{toBinaryGLTF:t}]=await Promise.all([r.e(4038).then(()=>r(84038)),this.load(e)]);return(0,c.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(a.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,i.MZ)({type:[m.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,i.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,Q.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0,type:X.O,clonable:(e,t)=>(0,Q.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,i.MZ)({type:Ae.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=we=(0,n.Cg)([(0,i.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>h,QT:()=>g});var n=r(32198),i=r(2741),o=r(49186),s=r(44208),l=r(53966);r(34727);class a{constructor(e,t){this.precision=e,this.importFactory=t,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const u=new a("f32",async()=>(await r.e(2997).then(()=>r(42997))).default);function c(e){null!==e.evictionTimer&&(clearTimeout(e.evictionTimer),e.evictionTimer=null)}function f(e){c(e);let t=e.exports;null===t||t.HEAP8.byteLength<10485760||(e.evictionTimer=setTimeout(()=>{e.evictionTimer=null,async function(e,t){try{let r=e.compiled;if(null===r)return;let n=await e.importFactory();if(e.exports!==t)return;let i=await n(p(r));e.exports===t&&(c(e),e.exports=i)}catch(t){l.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${e.precision.toUpperCase()}`,t)}}(e,t)},1e4))}function p(e){return{locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`),instantiateWasm:(t,r)=>(r(new WebAssembly.Instance(e,t),e),{})}}function h(){return function(e){if(null!==e.exports)return f(e),Promise.resolve();if(null!==e.loading)return e.loading;let t=async function(e){let t=await e.importFactory(),r=e.compiled??await async function(e){let t=`libtess-${e}.wasm`,r=(0,i.s)(`esri/core/libs/libtess/${t}`),n=await fetch(r,{credentials:"same-origin"});if(!n.ok)throw Error(`${n.status} : ${n.url}`);return WebAssembly.compile(await n.arrayBuffer())}(e.precision);e.compiled??=r,e.exports=await t(p(r)),f(e)}(e);e.loading=t;let r=()=>{e.loading===t&&(e.loading=null)};return t.then(r,r),t}(u)}function g(e,t,r=2){return function(e,t){c(e);try{return t()}finally{f(e)}}(u,()=>function(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=u.exports;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,n.mS)(i,d.from(l,e),!1),c=(0,n.mS)(i,x.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new d(l,f*r),!1),h=l.triangulate(a.ptr,c.ptr,c.size,r,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){let e=l.getError();0!==e&&console.warn("libtess:triangulation",function(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}(e))}return{buffer:p.slice(0,h*r),vertexCount:h}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}(e,t,r))}function y(e){return e.HEAPF32}function m(e){return e.HEAP32}new a("f64",async()=>(await r.e(9134).then(()=>r(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class d{static from(e,t){let r=new d(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){y(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return y(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class x{static from(e,t){let r=new x(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){m(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=m(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(r+e,r+t)}}},97146(e,t,r){r.d(t,{Dg:()=>o,lc:()=>f,my:()=>s,tM:()=>p,uW:()=>i});var n=r(34275);function i(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let r=!0,i=!0;return e.some((e,t)=>(r&&=0===e,i&&=e===t,!r&&!i)),r?function(e){if(1===e)return u;if(e<1024)return Array(e).fill(0);if(e>a.length){let t=Math.max(2*a.length,e);a=new Uint8Array(t)}return new Uint8Array(a.buffer,0,e)}(e.length):i?p(e.length):(0,n.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(let r of e){if(r>=65536)return(0,n.iu)(e)?e:new Uint32Array(e);r>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}let l=h(131072),a=new Uint8Array(65536);const u=[0],c=(()=>{let e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){if(e===u)return!0;if(!(0,n.iu)(e))return!1;let{buffer:t}=e;return t===c.buffer||t===l.buffer||t===a.buffer}function p(e){return 1===e?u:e<1024?function(e){let t=Array(e).fill(0);for(let r=0;r<e;r++)t[r]=r;return t}(e):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=h(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function h(e){let t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}},16939(e,t,r){r.d(t,{A:()=>h});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(25482),u=r(53966),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,l.OU)(a.o)){static from(e){return(0,s.PZ)(n,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},u.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,s.PZ)(f.A,e):(0,s.PZ)(c.A,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,i.Cg)([(0,o.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,o.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(93223);let u=class extends((0,s.OU)(l.o)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(25482),l=r(51850),a=r(93223);let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,n.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(91429),s=r(69540),l=r(25482),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:a.A.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:a.A.from(e))}clone(e){let t=(0,c.hz)(e),r=t?.materialMap?.get(this);if(r)return r;let n=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,n),n}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null==this.color?0:16,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null==this.colorTextureTransform?0:20,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+(null==this.normalTextureTransform?0:20)}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(68197),o=r(91429),s=r(19211),l=r(35063),a=r(51147);let u=class extends s.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:l.A.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:l.A.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:l.A.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null==this.emissiveColor?0:16,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null==this.emissiveTextureTransform?0:20,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null==this.occlusionTextureTransform?0:20,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+(null==this.metallicRoughnessTextureTransform?0:20)}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,r){r.d(t,{A:()=>m});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(21287),u=r(25482),c=r(97159),f=r(66895),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,m=class extends((0,l.OU)(u.o)){static{n=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,r,n){e instanceof HTMLImageElement?t[r]={type:"image-element",src:(0,c.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,c.t)(e.src,n),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload}:e instanceof ImageData&&(t[r]={type:"image-data",imageData:d(e)})}readData(e){switch(e.type){case"image-element":{let t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{let t=x(e.imageData),r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").putImageData(t,0,0),r}case"image-data":return x(e.imageData);case"video-element":{let t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){let{data:e,url:t}=this,r=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!!(t&&r(t)||e instanceof HTMLImageElement&&r(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){let e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null==this.url?null==this.data?t():this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++y),t(g.get(this.data))):t(this.url)}get memoryUsage(){let e=0;if(e+=null==this.url?0:this.url.length,null!=this.data){let t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){let t=(0,f.$N)(e),r=t?.textureMap?.get(this);if(r)return r;let n=super.clone(e);return t?.textureMap?.set(this,n),n}static from(e){return"string"==typeof e?new n({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new n({data:e}):(0,s.PZ)(n,e)}};function d(e){let t="";for(let r=0;r<e.data.length;r++)t+=String.fromCharCode(e.data[r]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){let t=atob(e.data),r=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return(0,a.eV)(r,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,i.Cg)([(0,o.MZ)({type:String,json:{write:c.w}})],m.prototype,"url",null),(0,i.Cg)([(0,o.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],m.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],m.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],m.prototype,"readData",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTexture")],m)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(91429),o=r(69540),s=r(25482);let l=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(4718),u=r(53966),c=r(31199);let f=n=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clonePositional(){let e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new n(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,o.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,o.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,o.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,o.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,o.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(e,t,r){function n(e,t,r){if(t<=0)return 0;let n=e-r;return n<0?0:Math.floor(n/t)+1}r.d(t,{k:()=>n}),r(53966)},31199(e,t,r){function n(e,t,r,n){let{loggerTag:i,stride:o}=t;return e.length%o===0?e:(n.error(i,`Invalid array length, expected a multiple of ${o}`),new r([]))}function i(e,t,r,i,o){if(!e)return e;if(e instanceof t)return n(e,i,t,o);for(let s of r)if(e instanceof s)return n(new t(e),i,t,o);if(Array.isArray(e))return n(new t(e),i,t,o);{let n=r.map(e=>`'${e.name}'`);return o.error(`Failed to set property, expected one of ${n}, but got ${e.constructor.name}`),new t([])}}function o(e,t,r){t[r]=function(e){let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r];return t}(e)}r.d(t,{B:()=>o,b:()=>i})},98331(e,t,r){r.d(t,{H5:()=>p,createWithExternalSource:()=>f});var n=r(49186),i=(r(17676),r(9762),r(4197),r(77690),r(29242)),o=(r(35522),r(51850));r(48353),r(13030),(0,i.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(62788);var s=r(95488);r(44208),r(83349),r(53966),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new s.I,new WeakSet;var l=r(83300),a=(r(16939),r(95696),r(73836));r(1193),r(66895),r(72258);var u=r(29461),c=r(27615);function f(e,t,r){let n=r?.extent??null,{spatialReference:i}=e,o=r?.transform?.clone()??new a.A,s=(0,c.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new u.O;return p.externalSources.push(f),new l.A({metadata:p,transform:o,vertexSpace:s,spatialReference:i})}function p(e,t){let{spatialReference:r}=e,i=t?.transform?.clone()??new a.A,o=(0,c.TE)(e,t),s=new l.A({transform:i,vertexSpace:o,spatialReference:r});return s.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),s}(0,o.vt)(),(0,i.vt)()},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>m,dK:()=>d,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(4576),i=r(17676),o=r(20557),s=r(78888);class l{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,n.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(r)}}class a{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){let{type:t,name:r}=e;return c.test(t)||f.test(r)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function g(e,t){if(e===t)return!0;let{source:r}=e,{source:n}=t;if(r===n)return!0;if("service"===r.type&&"service"===n.type){if(r.assets.length!==n.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...n.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function y(e,t){return e instanceof File?(0,o.rq)(e,t):(0,o.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function d(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(7762),l=r(36708),a=r(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new s.A,this._explicitDisplaySource=null,this.addHandles((0,l.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,a.yr)(e))throw Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,a.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,a.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(a.yr)}};(0,n.Cg)([(0,i.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,i.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,r){r.d(t,{$N:()=>c,Lz:()=>o,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>i});const n=Symbol("meshContext");function i(e){return e&&"object"==typeof e&&n in e?e[n]:void 0}function o(e,t){let r=i(e);return{...e,[n]:{...r,...t}}}const s=Symbol("meshMaterialContext");function l(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function a(e){if(l(e)?.materialMap)return e;let t={materialMap:new Map};return{...e,[s]:t}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){if(c(e)?.textureMap)return e;let t={textureMap:new Map};return{...e,[u]:t}}},27615(e,t,r){r.d(t,{CK:()=>a,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>f});var n=r(35522),i=r(86738),o=r(95696),s=r(18251);function l(e){return null!=e.origin}function a(e){return l(e.vertexSpace)}function u(e,t){if(!l(e))return null;let[r,n,o]=e.origin;return new i.A({x:r,y:n,z:o,spatialReference:t})}function c(e,t){let{x:r,y:n,z:i,spatialReference:l}=e,a=[r,n,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(l))?new s.A({origin:a}):new o.A({origin:a})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,n.t2)(e.origin,t.origin))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2122],{68197(t,e,r){r.d(e,{A:()=>u});var i=r(40876),n=r(56507),s=r(4576),a=r(34727);function o(t){return(0,a.qE)((0,n.Vr)(t),0,255)}function l(t,e){let r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}function h(t){return.2126*(0,i.Q6)(t.r)+.7152*(0,i.Q6)(t.g)+.0722*(0,i.Q6)(t.b)}class u{static blendColors(t,e,r,i=new u){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){let r=(0,i.lT)(t);return r?u.fromArray(r,e):null}static fromHex(t,e=new u){let r=(0,i.oW)(t);return r?u.fromArray(r,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){let r=(0,i.Eq)(t);return r?u.fromArray(r,e):null}static fromJSON(t){return null==t?void 0:new u([t[0],t[1],t[2],(t[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null==this.a?1:this.a,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){let r=t instanceof u?t:new u(t),i=h(this),n=h(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<e}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,s.yc)(t))u.fromArray(t,this);else{let e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){let e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return e?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){let e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){let e=o(this.r),r=o(this.g),i=o(this.b);return 0===t||1!==this.a?[e,r,i,o(255*this.a)]:[e,r,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}u.prototype.declaredClass="esri.Color"},40876(t,e,r){r.d(e,{Eq:()=>g,G1:()=>d,Q6:()=>w,TS:()=>s,V6:()=>n,Vm:()=>p,ay:()=>l,c1:()=>_,c4:()=>a,iw:()=>m,j5:()=>h,lT:()=>c,oW:()=>u,xV:()=>b});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(t){return!!i[t]||!!i[t.toLowerCase()]}function s(t){return i[t]??i[t.toLowerCase()]}function a(t){return[...s(t)]}function o(t,e,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?t+(e-t)*i:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,i=1){let n=(t%360+360)%360/360,s=r<=.5?r*(e+1):r+e-r*e,a=2*r-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),i]}function h(t){let e=t.length>5,r=e?8:4,i=(1<<r)-1,n=e?1:17,s=e?9===t.length:5===t.length,a=Number("0x"+t.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&i,a>>=r,l[3]=n*o/255),o=a&i,a>>=r,l[2]=n*o,o=a&i,a>>=r,l[1]=n*o,o=a&i,a>>=r,l[0]=n*o,l}function u(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{let e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),n=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function c(t){let e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){let t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){let e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=_(t[0]),t[1]=_(t[1]),t[2]=_(t[2]),t[3]=4===t.length?d(t[3]):1,t}function g(t){let e=n(t)?s(t):null;return e??=c(t),e??=u(t)}function p(t){let e=g(t);return null==e?null:[e[0]/255,e[1]/255,e[2]/255,e[3]]}function d(t){return y(t,0,1)}function _(t){return Math.round(y(t,0,255))}function y(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const m=1/2.2;function w(t){return t**2.2}function b(t){return t**m}},32488(t,e,r){r.d(e,{A:()=>A});const i=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],n=["آ","أ","إ","ا"],s=["ﻵ","ﻷ","ﻹ","ﻻ"],a=["ﻶ","ﻸ","ﻺ","ﻼ"],o="ا.ب.ت.ث.ج.ح.خ.د.ذ.ر.ز.س.ش.ص.ض.ط.ظ.ع.غ.ف.ق.ك.ل.م.ن.ه.و.ي.إ.أ.آ.ة.ى.ل.م.ن.ه.و.ي.إ.أ.آ.ة.ى.ی.ئ.ؤ".split("."),l="ﺍ.ﺏ.ﺕ.ﺙ.ﺝ.ﺡ.ﺥ.ﺩ.ﺫ.ﺭ.ﺯ.ﺱ.ﺵ.ﺹ.ﺽ.ﻁ.ﻅ.ﻉ.ﻍ.ﻑ.ﻕ.ﻙ.ﻝ.ﻡ.ﻥ.ﻩ.ﻭ.ﻱ.ﺇ.ﺃ.ﺁ.ﺓ.ﻯ.ﯼ.ﺉ.ﺅ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺉ.ﺅ".split("."),h="ﺎ.ﺐ.ﺖ.ﺚ.ﺞ.ﺢ.ﺦ.ﺪ.ﺬ.ﺮ.ﺰ.ﺲ.ﺶ.ﺺ.ﺾ.ﻂ.ﻆ.ﻊ.ﻎ.ﻒ.ﻖ.ﻚ.ﻞ.ﻢ.ﻦ.ﻪ.ﻮ.ﻲ.ﺈ.ﺄ.ﺂ.ﺔ.ﻰ.ﯽ.ﺊ.ﺆ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺊ.ﺆ".split("."),u="ﺎ.ﺒ.ﺘ.ﺜ.ﺠ.ﺤ.ﺨ.ﺪ.ﺬ.ﺮ.ﺰ.ﺴ.ﺸ.ﺼ.ﻀ.ﻄ.ﻈ.ﻌ.ﻐ.ﻔ.ﻘ.ﻜ.ﻠ.ﻤ.ﻨ.ﻬ.ﻮ.ﻴ.ﺈ.ﺄ.ﺂ.ﺔ.ﻰ.ﯿ.ﺌ.ﺆ.ﹱ.ﹲ.ﹴ.ﹷ.ﹹ.ﹻ.ﹽ.ﹿ.ﺀ.ﺌ.ﺆ".split("."),c="ﺍ.ﺑ.ﺗ.ﺛ.ﺟ.ﺣ.ﺧ.ﺩ.ﺫ.ﺭ.ﺯ.ﺳ.ﺷ.ﺻ.ﺿ.ﻃ.ﻇ.ﻋ.ﻏ.ﻓ.ﻗ.ﻛ.ﻟ.ﻣ.ﻧ.ﻫ.ﻭ.ﻳ.ﺇ.ﺃ.ﺁ.ﺓ.ﻯ.ﯾ.ﺋ.ﺅ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺋ.ﺅ".split("."),f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],g="ً.ً.ٌ.؟.ٍ.؟.َ.َ.ُ.ُ.ِ.ِ.ّ.ّ.ْ.ْ.ء.آ.آ.أ.أ.ؤ.ؤ.إ.إ.ئ.ئ.ئ.ئ.ا.ا.ب.ب.ب.ب.ة.ة.ت.ت.ت.ت.ث.ث.ث.ث.ج.ج.ج.ج.ح.ح.ح.ح.خ.خ.خ.خ.د.د.ذ.ذ.ر.ر.ز.ز.س.س.س.س.ش.ش.ش.ش.ص.ص.ص.ص.ض.ض.ض.ض.ط.ط.ط.ط.ظ.ظ.ظ.ظ.ع.ع.ع.ع.غ.غ.غ.غ.ف.ف.ف.ف.ق.ق.ق.ق.ك.ك.ك.ك.ل.ل.ل.ل.م.م.م.م.ن.ن.ن.ن.ه.ه.ه.ه.و.و.ى.ى.ي.ي.ي.ي.ﻵ.ﻶ.ﻷ.ﻸ.ﻹ.ﻺ.ﻻ.ﻼ.؟.؟.؟".split("."),p=["ء","ف"],d=["غ","ي"],_=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],y=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],m=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],w=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],b=[[18,18,18,18,18,18,18,18,18,6,5,6,8,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,5,5,5,6,8,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,18,18,18,18,18,18,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,9,4,11,11,11,11,4,4,4,4,0,4,4,18,4,4,11,11,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,12,12,1,12,12,1,12,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,11,11,7,9,7,4,4,12,12,12,12,12,12,12,12,12,12,12,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,3,3,3,3,3,3,3,3,3,3,11,3,3,7,7,7,12,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,3,4,12,12,12,12,12,12,7,7,12,12,4,12,12,12,12,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,12,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,18,18,18,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,11,11,11,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,18,18,18,18,18,4,4,4,4,4,18,18,18,18,18,18,2,0,4,4,2,2,2,2,2,2,10,10,4,4,4,0,2,2,2,2,2,2,2,2,2,2,10,10,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,12,1,1,1,1,1,1,1,1,1,1,10,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,11,4,4,10,10,4,4,4,4,4,11,11,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,18],[4,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,11,11,4,4,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class A{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,r){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,r){j=[],K=[];for(let i=0;i<r;i++)t[i]=i,e[i]=i,j[i]=i}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,r))return t;e=this.inputFormat,r=this.outputFormat;let i=t,n=Y,s=q(e.charAt(1)),a=q(r.charAt(1)),o=(e.startsWith("I")?"L":e.charAt(0))+s,l=(r.startsWith("I")?"L":r.charAt(0))+a,h=e.charAt(2)+r.charAt(2);n.defInFormat=o,n.defOutFormat=l,n.defSwap=h;let u=S(t,o,l,h,n),c=!1;return"R"===r.charAt(1)?c=!0:("C"===r.charAt(1)||"D"===r.charAt(1))&&(c="rtl"===this.checkContextual(u)),this.sourceToTarget=j,this.targetToSource=function(t){let e=Array(t.length);for(let r=0;r<t.length;r++)e[t[r]]=r;return e}(this.sourceToTarget),W=this.targetToSource,i=e.charAt(3)===r.charAt(3)?u:"S"===r.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);let r=(e=String(e)).split(""),i=0,n=1,s=r.length;t||(i=r.length-1,n=-1,s=1);let a=x(r,i,n,s),o="";for(let e=0;e<r.length;e++)R(a,a.length,e)>-1?($(W,e,!t,-1),j.splice(e,1)):o+=r[e];return o}(c,u):k(u,c,!0),this.sourceToTarget=j,this.targetToSource=W,this.levels=K,i}_inputFormatSetter(t){if(!X.test(t))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!X.test(t))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=T(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch{}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return tt.test(t)}}function S(t,e,r,i,n){let s=function(t,e,r){if(void 0===e.inFormat&&(e.inFormat=r.defInFormat),void 0===e.outFormat&&(e.outFormat=r.defOutFormat),void 0===e.swap&&(e.swap=r.defSwap),e.inFormat===e.outFormat)return e;let i,n=e.inFormat.slice(0,1),s=e.outFormat.slice(0,1),a=e.inFormat.slice(1,4),o=e.outFormat.slice(1,4);return a.startsWith("C")&&(i=T(t),a="ltr"===i||"rtl"===i?i.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+a),o.startsWith("C")&&(i=T(t),"rtl"===i?o="RTL":"ltr"===i?(i=function(t){let e=t.split("");return e.reverse(),T(e.join(""))}(t),o=i.toUpperCase()):o="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=s+o),e}(t,{inFormat:e,outFormat:r,swap:i},n);if(s.inFormat===s.outFormat)return t;e=s.inFormat,r=s.outFormat,i=s.swap;let a=e.slice(0,1),o=e.slice(1,4),l=r.slice(0,1),h=r.slice(1,4);if(n.inFormat=e,n.outFormat=r,n.swap=i,"L"===a&&"VLTR"===r){if("LTR"===o)return n.dir=H,L(t,n);if("RTL"===o)return n.dir=J,L(t,n)}if("V"===a&&"V"===l)return n.dir="RTL"===o?J:H,M(t,n);if("L"===a&&"VRTL"===r)return"LTR"===o?(n.dir=H,t=L(t,n)):(n.dir=J,t=L(t,n)),M(t);if("VLTR"===e&&"LLTR"===r)return n.dir=H,L(t,n);if("V"===a&&"L"===l&&o!==h)return t=M(t),"RTL"===o?S(t,"LLTR","VLTR",i,n):S(t,"LRTL","VRTL",i,n);if("VRTL"===e&&"LRTL"===r)return S(t,"LRTL","VRTL",i,n);if("L"===a&&"L"===l){let e=n.swap;return n.swap=e.slice(0,1)+"N","RTL"===o?(n.dir=J,t=L(t,n),n.swap="N"+e.slice(1,3),n.dir=H,t=L(t,n)):(n.dir=H,t=L(t,n),n.swap="N"+e.slice(1,3),t=S(t,"VLTR","LRTL",n.swap,n)),t}return t}function x(t,e,r,i,n){let o=0,u=[],f=0;for(let n=e;n*r<i;n+=r)if(F(t[n])||E(t[n])){if("ل"===t[n]&&B(t,n+r,r,i)){t[n]=G(t[n+r],0===o?s:a),n+=r,O(t,n,r,i),u[f]=n,f++,o=0;continue}let e=t[n];1===o?t[n]=U(t,n+r,r,i)?D(t[n]):z(t[n],h):!0===U(t,n+r,r,i)?t[n]=z(t[n],c):t[n]=z(t[n],l),E(e)||(o=1),!0===P(e)&&(o=0)}else o=0;return u}function T(t){let e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function k(t,e,r){if(0===t.length)return"";void 0===e&&(e=!0);let i="",s=(t=String(t)).split("");for(let a=0;a<t.length;a++){let o=!1;if(s[a]>="ﹰ"&&s[a]<"\ufeff"){let l=t.charCodeAt(a);s[a]>="ﻵ"&&s[a]<="ﻼ"?(e?(a>0&&r&&" "===s[a-1]?i=i.slice(0,-1)+"ل":(i+="ل",o=!0),i+=n[(l-65269)/2]):(i+=n[(l-65269)/2],i+="ل",a+1<t.length&&r&&" "===s[a+1]?a++:o=!0),o&&($(W,a,!0,1),j.splice(a,0,j[a]))):i+=g[l-65136]}else i+=s[a]}return i}function L(t,e){let r=t.split(""),i=[];return v(r,i,e),function(t,e,r){if(0!==r.hiLevel&&r.swap[0]!==r.swap[1])for(let r=0;r<t.length;r++)1===e[r]&&(t[r]=V(t[r]))}(r,i,e),C(2,r,i,e),C(1,r,i,e),K=i,r.join("")}function v(t,e,r){let i=t.length,n=r.dir?y:_,s=0,a=-1,o=[],l=[];r.hiLevel=r.dir,r.lastArabic=!1,r.hasUbatAl=!1,r.hasUbatB=!1,r.hasUbatS=!1;for(let e=0;e<i;e++)o[e]=N(t[e]);for(let h=0;h<i;h++){let i=s,u=I(t,o,l,h,r);l[h]=u,s=n[i][u];let c=240&s;s&=15;let f=n[s][Q];if(e[h]=f,c>0)if(16===c){for(let t=a;t<h;t++)e[t]=1;a=-1}else a=-1;if(n[s][Z])-1===a&&(a=h);else if(a>-1){for(let t=a;t<h;t++)e[t]=f;a=-1}5===o[h]&&(e[h]=0),r.hiLevel|=f}r.hasUbatS&&function(t,e,r,i){for(let n=0;n<r;n++)if(6===t[n]){e[n]=i.dir;for(let r=n-1;r>=0&&8===t[r];r--)e[r]=i.dir}}(o,e,i,r)}function N(t){let e=t.charCodeAt(0),r=w[e>>8];return r<100?r:b[r-100][255&e]}function M(t,e){let r=t.split("");if(e){let t=[];v(r,t,e),K=t}return r.reverse(),j.reverse(),r.join("")}function R(t,e,r){for(let i=0;i<e;i++)if(t[i]===r)return i;return-1}function F(t){for(let e=0;e<p.length;e++)if(t>=p[e]&&t<=d[e])return!0;return!1}function U(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;return!!(e*r<i&&F(t[e]))}function B(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;let s=" ";if(!(e*r<i))return!1;s=t[e];for(let t=0;t<n.length;t++)if(n[t]===s)return!0;return!1}function C(t,e,r,i){if(i.hiLevel<t)return;if(1===t&&i.dir===J&&!i.hasUbatB)return e.reverse(),void j.reverse();let n,s,a,o,l,h=e.length,u=0;for(;u<h;){if(r[u]>=t){for(n=u+1;n<h&&r[n]>=t;)n++;for(s=u,a=n-1;s<a;s++,a--)o=e[s],e[s]=e[a],e[a]=o,l=j[s],j[s]=j[a],j[a]=l;u=n}u++}}function I(t,e,r,i,n){let s=e[i];return{UBAT_L:()=>(n.lastArabic=!1,0),UBAT_R:()=>(n.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>n.lastArabic?3:2,UBAT_AL:()=>(n.lastArabic=!0,n.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,s;return i<1||i+1>=e.length||2!==(t=r[i-1])&&3!==t||2!==(s=e[i+1])&&3!==s?4:(n.lastArabic&&(s=3),s===t?s:4)},UBAT_ES:()=>2===(i>0?r[i-1]:5)&&i+1<e.length&&2===e[i+1]?2:4,UBAT_ET:()=>{if(i>0&&2===r[i-1])return 2;if(n.lastArabic)return 4;let t=i+1,s=e.length;for(;t<s&&11===e[t];)t++;return t<s&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===n.inFormat){let r=e.length,n=i+1;for(;n<r&&12===e[n];)n++;if(n<r){let r=t[i].charCodeAt(0),s=r>=1425&&r<=2303||64286===r,a=e[n];if(s&&(1===a||7===a))return 1}}return i<1||5===e[i-1]?4:r[i-1]},UBAT_B:()=>(n.lastArabic=!0,n.hasUbatB=!0,n.dir),UBAT_S:()=>(n.hasUbatS=!0,4),UBAT_LRE:()=>(n.lastArabic=!1,4),UBAT_RLE:()=>(n.lastArabic=!1,4),UBAT_LRO:()=>(n.lastArabic=!1,4),UBAT_RLO:()=>(n.lastArabic=!1,4),UBAT_PDF:()=>(n.lastArabic=!1,4),UBAT_BN:()=>4}[m[s]]()}function V(t){let e,r=0,n=i.length-1;for(;r<=n;)if(e=Math.floor((r+n)/2),t<i[e][0])n=e-1;else{if(!(t>i[e][0]))return i[e][1];r=e+1}return t}function P(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function D(t){for(let e=0;e<o.length;e++)if(t===o[e])return u[e];return t}function z(t,e){for(let r=0;r<o.length;r++)if(t===o[r])return e[r];return t}function E(t){return t>="ً"&&t<="ٕ"}function q(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function O(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;return e*r<i&&(t[e]=" ",!0)}function G(t,e){for(let r=0;r<n.length;r++)if(t===n[r])return e[r];return t}function $(t,e,r,i){for(let n=0;n<t.length;n++)(t[n]>e||!r&&t[n]===e)&&(t[n]+=i)}let j=[],W=[],K=[];const Y={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},Q=5,Z=6,H=0,J=1,X=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,tt=/[\u0591-\u06ff\ufb1d-\ufefc]/},6371(t,e,r){r.d(e,{y:()=>n});const i=new(r(32488).A);function n(t,e=!0){if(!i.hasBidiChar(t))return[t,!1,{...i}];let r;r="rtl"===i.checkContextual(t)?"IDNNN":"ICNNN";let n=e?"VLYSN":"VLYNN";return[i.bidiTransform(t,r,n),!0,{...i}]}},93687(t,e,r){r.d(e,{A:()=>s});var i=r(44208);const n=()=>!!(0,i.A)("esri-tests-disable-memory-pools");class s{constructor(t,e,r,i=1,n=0){this._creator=t,this._acquireFunction=e,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let t=0;t<n;t++)this._pool[t]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let e;if(n())e=this._creator();else{if(0===this._pool.length){let t=this.allocationSize;for(let e=0;e<t;e++)this._pool[e]=this._creator()}e=this._pool.pop()}return this._acquireFunction?this._acquireFunction(e,...t):function(t){return t?.acquire&&"function"==typeof t.acquire}(e)&&e.acquire(...t),e}release(t){t&&!n()&&(this._releaseFunction?this._releaseFunction(t):function(t){return t?.release&&"function"==typeof t.release}(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let e=t;e<this._pool.length;++e){let t=this._pool[e];this._dispose(t)}this._pool.length=t}}_dispose(t){"function"==typeof t.dispose&&t.dispose()}}},56507(t,e,r){r.d(e,{EK:()=>M,GB:()=>h,GX:()=>l,MB:()=>R,Nd:()=>V,PZ:()=>m,Qp:()=>f,Uv:()=>B,Vr:()=>u,Zu:()=>I,_e:()=>v,aq:()=>F,dp:()=>S,e6:()=>N,eC:()=>k,gK:()=>C,jz:()=>U,qf:()=>x,wB:()=>T});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function a(t){if(null==t)return t;let e=new Date(t);return isNaN(e.getTime())?(s().error("Accessor#set",`Invalid date value: '${t}', falling back to current date`),new Date):e}function o(t){return null==t?t:!!t}function l(t){return null==t?t:t.toString()}function h(t,e=0){return null==t?t:(t=parseFloat(t),isNaN(t)?e:t)}function u(t){return null==t?t:Math.round(parseFloat(t))}function c(t){return null}function f(t,e){return r=>{let i=t(r);return null!=e.step&&(i=Math.round(i/e.step)*e.step),null!=e.min&&(i=Math.max(e.min,i)),null!=e.max&&(i=Math.min(e.max,i)),i}}function g(t){return t?.constructor&&void 0!==t.constructor.__accessorMetadata__}function p(t,e){return null!=e&&t&&!(e instanceof t)}function d(t){return t&&"isCollection"in t}function _(t){return t?.Type?"function"==typeof t.Type?t.Type:t.Type.base:null}function y(t,e){return!!g(e)&&(s().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+w(t)+"'"),!0)}function m(t,e){return null==e?e:d(t)?function(t,e){if(!e?.constructor||!d(e.constructor))return y(t,e)?e:new t(e);let r=_(t.prototype.itemType),i=_(e.constructor.prototype.itemType);return r?i?r===i?e:r.prototype.isPrototypeOf(i.prototype)?new t(e):(y(t,e),e):new t(e):e}(t,e):p(t,e)?y(t,e)?e:new t(e):e}function w(t){return t?.prototype?.declaredClass||"unknown"}const b=new WeakMap;function A(t){switch(t){case Number:return t=>h(t);case U:return u;case Boolean:return o;case String:return l;case Date:return a;case B:return c;default:return(0,n.tE)(b,t,()=>m.bind(null,t))}}function S(t,e){let r=A(t);return 1===arguments.length?r:r(e)}function x(t){let e=A(t);return t=>e(t)}function T(t,e,r){return 1===arguments.length?T.bind(null,t):e&&(Array.isArray(e)?e.map(e=>t(e,r)):[t(e,r)])}function k(t,e){return 1===arguments.length?T(e=>S(t,e)):T(e=>S(t,e),e)}function L(t,e,r){return 0!==e&&Array.isArray(r)?r.map(r=>L(t,e-1,r)):t(r)}function v(t,e,r){if(2===arguments.length)return r=>v(t,e,r);if(!r)return r;r=L(t,e,r);let i=e,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let t=0;t<i;t++)r=[r];return r}function N(t,e,r){return 2===arguments.length?v(e=>S(t,e),e):v(e=>S(t,e),e,r)}function M(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!("string"===r||"number"===r||"function"===r&&t.length>1)})}function R(t,e){if(2===arguments.length)return R(t).call(null,e);let r=new Set,i=t.filter(t=>"function"!=typeof t),n=t.filter(t=>"function"==typeof t);for(let e of t)("string"==typeof e||"number"==typeof e)&&r.add(e);let a=null,o=null;return(t,e)=>{if(null==t)return t;let l=typeof t,h="string"===l||"number"===l;return h&&(r.has(t)||n.some(t=>"string"===l&&t===String||"number"===l&&t===Number))||"object"===l&&n.some(e=>!p(e,t))?t:(h&&i.length?(a||=i.map(t=>"string"==typeof t?`'${t}'`:`${t}`).join(", "),s().error("Accessor#set",`'${t}' is not a valid value for this property, only the following values are valid: ${a}`)):"object"==typeof t&&n.length?(o||=n.map(t=>w(t)).join(", "),s().error("Accessor#set",`'${t}' is not a valid value for this property, value must be one of ${o}`)):s().error("Accessor#set",`'${t}' is not a valid value for this property`),e&&(e.valid=!1),null)}}function F(t,e){if(2===arguments.length)return F(t).call(null,e);let r={},i=[],n=[];for(let e in t.typeMap){let s=t.typeMap[e];r[e]=S(s),i.push(w(s)),n.push(e)}let a=()=>`'${i.join("', '")}'`,o=()=>`'${n.join("', '")}'`,l="string"==typeof t.key?e=>e[t.key]:t.key;return e=>{if(t.base&&!p(t.base,e)||null==e)return e;let i=l(e)||t.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${a()}, or a plain object that can autocast (having .type = ${o()})`),null;if(!p(t.typeMap[i],e))return e;if("string"==typeof t.key&&!g(e)){let r={};for(let i in e)i!==t.key&&(r[i]=e[i]);return n(r)}return n(e)}}class U{}class B{}const C={native:t=>({type:"native",value:t}),array:t=>({type:"array",value:t}),oneOf:t=>({type:"one-of",values:t})};function I(t){if(!t||"object"!=typeof t&&"function"!=typeof t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function V(t){switch(t.type){case"native":return S(t.value);case"array":return T(V(t.value));case"one-of":return function(t){let e=null;return(r,i)=>D(r,t)?r:(e??=P(t),s().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),i&&(i.valid=!1),null)}(t);default:return null}}function P(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case U:return"integer";case Date:return"date";case B:return"null";default:return w(t.value)}case"array":return`array of ${P(t.value)}`;case"one-of":{let e=t.values.map(t=>P(t));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function D(t,e){if(null==t)return!0;switch(e.type){case"native":switch(e.value){case Number:case U:return"number"==typeof t;case Boolean:return"boolean"==typeof t;case String:return"string"==typeof t;case B:return null===t}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(t=>!D(t,e.value));case"one-of":return e.values.some(e=>D(t,e))}}},57582(t,e,r){r.d(e,{Vb:()=>i,af:()=>n,rK:()=>s}),r(92602);const i="arial-unicode-ms";function n(t){if(!t)return i;let e=t.toLowerCase().replaceAll(" ","-");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 s(t){let 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},34727(t,e,r){r.d(e,{$8:()=>x,Cc:()=>a,Hx:()=>d,Io:()=>A,KJ:()=>h,OS:()=>L,Sp:()=>f,XM:()=>u,YN:()=>c,ZH:()=>p,b6:()=>S,cU:()=>n,gg:()=>g,hs:()=>o,kU:()=>l,or:()=>k,pF:()=>N,pq:()=>v,qE:()=>s});const i=new Float32Array(1);function n(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,r){return Math.min(Math.max(t,e),r)}function a(t,e,r){return t+(e-t)*r}function o(t,e,r,i,n){return a(i,n,(t-e)/(r-e))}function l(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function u(t){return Math.acos(s(t,-1,1))}function c(t){return Math.asin(s(t,-1,1))}function f(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function g(t,e,r=1e-6){return!f(t,e,r)&&t>e}function p(t,e,r=1e-6){return!f(t,e,r)&&t<e}function d(t,e,r=1e-6){return f(t,e,r)||t>e}const _=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function y(t){return _.setFloat64(0,t),_.getBigInt64(0)}const m=1000000n,w=b(1);function b(t){let e=y(t=Math.abs(t)),r=function(t){return _.setBigInt64(0,t),_.getFloat64(0)}(e<=m?m:e-m);return Math.abs(t-r)}function A(t,e,r=w){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&b(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;let i=y(t),n=y(e);return!(i<0!=n<0||(i<n?n-i:i-n)>m)}function S(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let i=Math.abs(t-e),n=Math.abs(t),s=Math.abs(e);if(0===t||0===e||n<1e-12&&s<1e-12){if(i>.01*r)return!1}else if(i/(n+s)>r)return!1;return!0}function x(t){return T(Math.max(-v,Math.min(t,v)))}function T(t){return i[0]=t,i[0]}function k(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],i=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(f(e,1)&&f(r,1)&&f(i,1))}function L(t,e){return(t%e+e)%e}const v=T(34028234663852886e22);function N(t,e,r){if(void 0===r||0==+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let i=e.toString().split("e");return i=(e=Math[t](+(i[0]+"e"+(i[1]?+i[1]-r:-r)))).toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+r:r))}},69397(t,e,r){r.d(e,{JY:()=>g,Qf:()=>l,Qh:()=>a,lM:()=>s,ro:()=>h,rq:()=>u});var i=r(44208),n=r(34275);function s(t){if(!t)return 0;let e=c;for(let r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(t){if(!t)return 0;if(Array.isArray(t))return function(t){let e=f;for(let r of t)e+=o(r);return e}(t);if(ArrayBuffer.isView(t)&&"length"in t&&"number"==typeof t.length&&t.length>0)return t.byteLength+p;let e=c;for(let r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+h(e),0)}function h(t,e=16){return t?(0,n.iu)(t)?t.byteLength+p:Array.isArray(t)?u(t,e):0:0}function u(t,e){return f+t.length*e}const c=32,f=16,g=(0,i.A)("ios")||!(0,i.A)("chrome")&&!(0,i.A)("opr")?8:4,p=145},51624(t,e,r){r.d(e,{A:()=>h});var i=r(44208),n=r(69397),s=r(93687);const a=4294967296,o=new TextDecoder("utf-8"),l=(0,i.A)("safari")||(0,i.A)("ios")?6:(0,i.A)("ff")?12:32;class h{constructor(t,e,r=0,i=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,r,i)}[Symbol.dispose](){this.release()}_init(t,e,r,i){this._data=t,this._dataView=e,this._pos=r,this._end=i}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new h(this._data,this._dataView,this._pos,this._end)}clonePooled(){return h.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,r=0,i=t?.byteLength??0){let n=h.pool.acquire();return n._init(t,e,r,i),n}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;let e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;let t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128||(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)||(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)||(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)||(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128))return t;throw Error("Varint overflow")}getPackedEnd(){let t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){let t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){let t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){let t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getUint32(e+4,!0)*a;return this._skip(8),r}getSFixed64(){let t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getInt32(e+4,!0)*a;return this._skip(8),r}getDouble(){let t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){let t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){let t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){let t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){let t=this._getLength(),e=this._pos,r=this._toString(this._data,e,e+t);return this._skip(t),r}getBytes(){let t=this._getLength(),e=this._pos,r=this._toBytes(this._data,e,e+t);return this._skip(t),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,r,i){let n=this.getMessage(),s=t(n,e,r,i);return n.release(),s}processMessage(t){let e=this.getMessage(),r=t(e);return e.release(),r}getMessage(){let t=this._getLength(),e=h.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){h.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){let t=this._data,e=this._pos,r=0,i=0;if(this._end-e>=10){if(i=t[e++],r|=127&i,128&i&&(i=t[e++],r|=(127&i)<<7,128&i&&(i=t[e++],r|=(127&i)<<14,128&i&&(i=t[e++],r|=(127&i)<<21,128&i&&(i=t[e++],r+=268435456*(127&i),128&i&&(i=t[e++],r+=34359738368*(127&i),128&i&&(i=t[e++],r+=4398046511104*(127&i),128&i&&(i=t[e++],r+=562949953421312*(127&i),128&i&&(i=t[e++],r+=72057594037927940*(127&i),128&i&&(i=t[e++],r+=0x8000000000000000*(127&i),128&i))))))))))throw Error("Varint too long!")}else{let n=1;for(;e!==this._end&&(i=t[e],128&i);)++e,r+=(127&i)*n,n*=128;if(e===this._end)throw Error("Varint overrun!");++e,r+=i*n}return this._pos=e,r}_decodeSVarint(){let t,e=this._data,r=0,i=0,n=1&e[this._pos];if(i=e[this._pos++],r|=127&i,!(128&i&&(i=e[this._pos++],r|=(127&i)<<7,128&i)&&(i=e[this._pos++],r|=(127&i)<<14,128&i)&&(i=e[this._pos++],r|=(127&i)<<21,128&i)&&(i=e[this._pos++],r+=268435456*(127&i),128&i)&&(i=e[this._pos++],r+=34359738368*(127&i),128&i)&&(i=e[this._pos++],r+=4398046511104*(127&i),128&i)))return n?-(r+1)/2:r/2;if(t=BigInt(r),i=e[this._pos++],t+=562949953421312n*BigInt(127&i),!(128&i&&(i=e[this._pos++],t+=72057594037927936n*BigInt(127&i),128&i)&&(i=e[this._pos++],t+=9223372036854775808n*BigInt(127&i),128&i)))return Number(n?-(t+1n)/2n:t/2n);throw Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,r){if((r=Math.min(this._end,r))-e>l){let i=t.subarray(e,r);return o.decode(i)}let i="",n="";for(let s=e;s<r;++s){let e=t[s];128&e?n+="%"+e.toString(16):(i+=decodeURIComponent(n)+String.fromCharCode(e),n="")}return n.length&&(i+=decodeURIComponent(n)),i}_toBytes(t,e,r){return r=Math.min(this._end,r),new Uint8Array(t.buffer,e,r-e)}static{this.pool=new s.A(()=>new h(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},75585(t,e,r){function i(t){let e="normal",r="normal";if(t){let i=t.toLowerCase();i.includes("italic")?e="italic":i.includes("oblique")&&(e="oblique"),i.includes("bold")?r="bold":i.includes("light")&&(r="lighter")}return{style:e,weight:r}}r.d(e,{_:()=>i})},69754(t,e,r){r.d(e,{Z:()=>h,q:()=>l});var i=r(68197),n=r(75585);const s=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,a=/&(amp|lt|gt|quot|apos);/g,o=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function l(t){return o.test(t)}function h(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),r=[],i=[],n=u(e),s="",a=!1,o=t.textString,l=()=>{if(!s)return;let t=c(s);if(!t)return void(s="");let 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&&t.font.decoration===e.font.decoration&&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}),s=""},h=0;for(;h<o.length;){let t=o[h];if("<"!==t){s+=t,h++;continue}let e=o.indexOf(">",h+1);if(-1===e)return null;let i=f(o.slice(h+1,e));if(!i)return null;if(a=!0,l(),i.isEnd){let t=r.pop();if(!t||t.name!==i.name)return null;n=t.previous}else{let t=u(n);n=g(n,i),r.push({name:i.name,previous:t})}h=e+1}return r.length?null:(l(),a?i.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(a,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function f(t){let e=t.trim();if(!e)return null;let r=e.startsWith("/"),i=r?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(i);if(!n)return null;let a,o=n[1],l=i.slice(o.length),h={};for(s.lastIndex=0;a=s.exec(l);)h[a[1]]=a[3];return{isEnd:r,name:o,attributes:h}}function g(t,e){let r=u(t);switch(e.name.toUpperCase()){case"BOL":r.font.weight="bold";break;case"_BOL":r.font.weight="normal";break;case"ITA":r.font.style="italic";break;case"_ITA":r.font.style="normal";break;case"UND":r.font.decoration="underline";break;case"_UND":r.font.decoration="none";break;case"FNT":!function(t,e){let{name:r,style:i,size:s,scale:a,wght:o,ital:l}=e;if(r&&(t.font.family=r),i){let e=(0,n._)(i);t.font.style=e.style,t.font.weight=e.weight}if(o){let e=Number(o);t.font.weight=e>=600?"bold":"normal"}if(l){let e=Number(l);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(s){let e=Number(s);!isNaN(e)&&e>0&&(t.fontSize=e)}if(a){let e=Number(a);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(r,e.attributes);break;case"CLR":r.color=function(t){if(t.hex){let e=i.A.fromHex(t.hex)?.toArray();if(e){let r="alpha"in t?_(t.alpha):e[3];return[e[0],e[1],e[2],r]}}if("red"in t||"green"in t||"blue"in t)return[p(t.red),p(t.green),p(t.blue),_(t.alpha)];let e=d(t.cyan),r=d(t.magenta),n=d(t.yellow),s=d(t.black),a=_(t.alpha),o=d(t.tint,100)/100,l=1-s;return[Math.round(255*(1-e)*l*o),Math.round(255*(1-r)*l*o),Math.round(255*(1-n)*l*o),a]}(e.attributes);break;case"CHR":!function(t,e){let r=Number(e.spacing);!isNaN(r)&&r>=0&&(t.characterSpacing=r/100)}(r,e.attributes)}return r}function p(t){let 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){let r=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(r)?e:r)/100)}function _(t){return Math.round(255*d(t,100))}},92122(t,e,r){r.r(e),r.d(e,{default:()=>v});var i=r(6371),n=r(57582),s=r(44208),a=r(53966),o=r(17676),l=r(2741);let h=null;async function u(){return h||=async function(){let t=await r.e(7290).then(()=>r(87290));return await t.default({module_or_path:(0,l.s)("esri/libs/librust-text/pkg/text_bg.wasm")}),t}()}var c=r(78888),f=r(69754);const g={width:5,height:2,left:0,top:0};class p{constructor(t){this._values=new Float64Array(t),this._distances=new Float64Array(t),this._parabolaIndices=new Int32Array(t),this._parabolaBoundaries=new Float64Array(t+1)}compute(t,e,r){let{_values:i,_distances:n}=this;for(let s=0;s<e;s++){for(let n=0;n<r;n++)i[n]=t[n*e+s];this._compute1D(i,n,r);for(let i=0;i<r;i++)t[i*e+s]=n[i]}for(let s=0;s<r;s++){let r=s*e;for(let n=0;n<e;n++)i[n]=t[r+n];this._compute1D(i,n,e);for(let i=0;i<e;i++)t[r+i]=Math.sqrt(n[i])}}_compute1D(t,e,r){let{_parabolaIndices:i,_parabolaBoundaries:n}=this;i[0]=0,n[0]=-1/0,n[1]=1/0;let s=0;for(let e=1;e<r;e++){let r;do{let n=i[s];r=(t[e]+e*e-(t[n]+n*n))/(2*e-2*n)}while(r<=n[s]&&--s>-1);s++,i[s]=e,n[s]=r,n[s+1]=1/0}for(let s=0,a=0;s<r;s++){for(;n[a+1]<s;)a++;let r=s-i[a];e[s]=r*r+t[i[a]]}}}class d{constructor(t){this.pxDensity=4,this.sdfSizePx=t.sdfSizePx,this.sdfBufferPx=t.sdfBufferPx,this.rasterSizePx=this.pxDensity*this.sdfSizePx,this.rasterBufferPx=this.pxDensity*this.sdfBufferPx,this.radius=t.radius,this.cutoff=t.cutoff;let e=this.pxDensity*t.sdfSizePx*3;this.canvasSize=e;let r=new OffscreenCanvas(e,e);this.context=r.getContext("2d",{willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.gridOuter=new Float64Array(e*e),this.gridInner=new Float64Array(e*e),this.distanceTransform=new p(e)}draw(t,e){let{context:r,gridInner:i,gridOuter:n,rasterSizePx:s,rasterBufferPx:a,canvasSize:o,radius:l,cutoff:h}=this,u=s/t.units_per_em();this.context.fillStyle="black",this.context.strokeStyle="black",this.context.resetTransform(),this.context.clearRect(0,0,o,o),this.context.translate(s,s),this.context.scale(u,u);let c=t.paintCurves(e,r);if(!c)return null;let f=c.xMin*u,g=c.xMax*u,p=c.yMin*u,d=c.yMax*u;c.free();let _=Math.ceil(g-f),y=Math.ceil(d-p),m=Math.floor(s+f-a),w=Math.floor(s+p-a),b=_+2*a,A=y+2*a,S=new Float32Array(Math.max(b*A,0)),x=r.getImageData(m,w,b,A);n.fill(Number.MAX_VALUE,0,S.length),i.fill(0,0,S.length);for(let t=0;t<A;t++)for(let e=0;e<b;e++){let r=A-1-t,s=x.data[4*(r*b+e)+3]/255;if(0===s)continue;let a=t*b+e;if(1===s)n[a]=0,i[a]=Number.MAX_VALUE;else{let t=.5-s;n[a]=t>0?t*t:0,i[a]=t<0?t*t:0}}this.distanceTransform.compute(n,b,A),this.distanceTransform.compute(i,b,A);for(let t=0;t<S.length;t++)S[t]=n[t]-i[t];let T=Math.ceil(b/this.pxDensity),k=Math.ceil(A/this.pxDensity),L=this.pxDensity*this.pxDensity,v=new Uint8ClampedArray(Math.max(T*k,0));for(let t=0;t<k;t++)for(let e=0;e<T;e++){let r=0;for(let i=0;i<this.pxDensity;i++)for(let n=0;n<this.pxDensity;n++)e+n>b||t+i>A||(r+=S[(this.pxDensity*t+i)*b+(this.pxDensity*e+n)]);let i=r/this.pxDensity/L/l+h;v[t*T+e]=Math.round(255-255*i)}let N=u*t.face_height(),M=Math.round(d-N+2*a),R=Math.round(f-a);return{buffer:v,rect:{width:Math.ceil(_/this.pxDensity),height:Math.ceil(y/this.pxDensity),top:Math.round(M/this.pxDensity),left:Math.round(R/this.pxDensity)}}}}var _=r(92602),y=r(51624);class m{constructor(t){this._rects=[],this._shapings=[],this._bitmaps=[];let e=new Map,r=0;for(;t.next();)switch(t.tag()){case 1:{let i=t.getMessage();for(;i.next();)switch(i.tag()){case 3:{let t,n,s,a,o,l,h,u=i.getMessage();for(;u.next();)switch(u.tag()){case 1:t=u.getUInt32();break;case 2:n=u.getBytes();break;case 3:s=u.getUInt32();break;case 4:a=u.getUInt32();break;case 5:o=u.getSInt32();break;case 6:l=u.getSInt32();break;case 7:h=u.getUInt32();break;default:u.skip()}if(u.release(),t){let i={width:s,height:a,left:o,top:l};this._rects[t]=i;let u={xOffset:0,yOffset:0,xAdvance:h,yAdvance:0};if(this._shapings[t]=u,n){let i=n.length;e.set(t,n),this._bitmaps[t]={start:r,length:i},r+=i}}break}default:i.skip()}i.release();break}default:t.skip()}this._buffer=new Uint8Array(r);for(let[t,r]of e)this._buffer.set(r,this._bitmaps[t].start)}getRect(t){return this._rects.at(t)}getShaping(t){return this._shapings.at(t)}getBitmap(t){let e=this._bitmaps.at(t);if(void 0!==e&&0!==e.length)return this._buffer.subarray(e.start,e.start+e.length)}}class w{constructor(){this._ranges=[]}getRange(t){return this._ranges.at(t)}addRange(t,e){this._ranges[t]=e}}class b{constructor(t){this._glyphInfo=new Map,this._baseURL=t,this._woff2URL=`${_.A.fontsUrl}/woff2/{fontstack}.woff2`}async fetchRange(t,e,r){let i=this._getFontStack(t);if(i.getRange(e))return;let n=256*e,s=n+255,a=this._baseURL.replace("{fontstack}",t).replace("{range}",n+"-"+s);return(0,c.A)(a,{responseType:"array-buffer",signal:r?.signal}).then(t=>{i.addRange(e,new m(new y.A(new Uint8Array(t.data),new DataView(t.data))))})}async preloadASCIIRange(t){let e=this._getFontStack(t),r=this._baseURL.replace("{fontstack}",t).replace("{range}","0-255"),i=await(0,c.A)(r,{responseType:"array-buffer"}),n=new m(new y.A(new Uint8Array(i.data),new DataView(i.data)));for(let t=0;t<=255;t++)e.getRange(t)||e.addRange(t,n)}getRange(t,e){return this._glyphInfo.get(t)?.getRange(Math.floor(e/256))}woffURL(t){return this._woff2URL.replace("{fontstack}",t)}_getFontStack(t){return this._glyphInfo.get(t)||this._glyphInfo.set(t,new w),this._glyphInfo.get(t)}}function A(t,e,r,i){return 1|t<<1|!!r<<2|("Nearest"===i)<<3|e<<4}var S=r(18989);class x{constructor(t,e){this._width=0,this._height=0,this._free=[],this._width=t,this._height=e,this._free.push(new S.A(0,0,t,e))}get width(){return this._width}get height(){return this._height}allocate(t,e){if(t>this._width||e>this._height)return new S.A;let r=null,i=-1;for(let n=0;n<this._free.length;++n){let s=this._free[n];t<=s.width&&e<=s.height&&(null===r||s.y<=r.y&&s.x<=r.x)&&(r=s,i=n)}return null===r?new S.A:(this._free.splice(i,1),r.width<r.height?(r.width>t&&this._free.push(new S.A(r.x+t,r.y,r.width-t,e)),r.height>e&&this._free.push(new S.A(r.x,r.y+e,r.width,r.height-e))):(r.width>t&&this._free.push(new S.A(r.x+t,r.y,r.width-t,r.height)),r.height>e&&this._free.push(new S.A(r.x,r.y+e,t,r.height-e))),new S.A(r.x,r.y,t,e))}release(t){for(let e=0;e<this._free.length;++e){let r=this._free[e];if(r.y===t.y&&r.height===t.height&&r.x+r.width===t.x)r.width+=t.width;else if(r.x===t.x&&r.width===t.width&&r.y+r.height===t.y)r.height+=t.height;else if(t.y===r.y&&t.height===r.height&&t.x+t.width===r.x)r.x=t.x,r.width+=t.width;else{if(t.x!==r.x||t.width!==r.width||t.y+t.height!==r.y)continue;r.y=t.y,r.height+=t.height}this._free.splice(e,1),this.release(t)}this._free.push(t)}}const T="arial-unicode-ms-regular",k=/[\u0695\u0698\u06a9\u06af\u06b5\u06be\u06c6\u06cc\u06ce\u06d5\u06ca]|\p{Script=Thai}|\p{Script=Lao}|\p{Script=Tamil}|\p{Script=Khmer}/u,L=new Set(["Noto Sans Khmer","Noto Sans Lao","Noto Sans Myanmar","Noto Sans Thai"]);class v{constructor(){this._glyphSources=new Map,this._snapCoords=!0,this._currentPage=0,this._faces=new Map,this._facePromises=new Map,this._pbfRangePromises=new Map,this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._invalidFonts=new Set,this._preloadCache={},this._glyphSDFCreator=new d({sdfSizePx:24,sdfBufferPx:3,radius:8,cutoff:.25})}set remoteClient(t){this._client=t.createInvokeProxy();let e=(0,o.QZ)(this._client.getOptions());this._inited=this._init(e)}async rasterizeText(t,e,r){await this._inited;let i=e.symbol?(0,f.Z)(e):null;return i?{type:"rich-glyphs",runs:(await Promise.all(i.map(async e=>({fontSize:e.fontSize,characterSpacing:e.characterSpacing,decoration:e.font.decoration,color:e.color,glyphs:await this._rasterizeTextRun(t,e.font,e.text,r)})))).filter(t=>null!=t.glyphs)}:this._rasterizeTextRun(t,e.font,e.textString,r)}async _rasterizeTextRun(t,e,r,i){let o=(0,n.rK)(e),l=this._invalidFonts.has(o),h=!!(0,s.A)("esri-2d-force-complex-shaping"),u=!!(0,s.A)("esri-2d-complex-shaping")&&k.test(r),c=L.has(e.family),f=h||u||c,g=l?T:o,p=await this.getGlyphItems(r,f,t,g,!1,i);return p||=(((t,e="")=>{a.A.getLogger("esri.views.MapView").warnOnce(t,e)})(`Font ${o} is not available on the web, using "Arial Unicode MS Regular"`),this._invalidFonts.add(o),await this.getGlyphItems(r,f,t,T,!1,i))}async getGlyphItems(t,e,r,n,a,o){await this._inited;let l,h,u,c=this._getSource(r);if((0,s.A)("esri-2d-stabilize-glyphs")&&await this.preloadASCIIGlyphCache(c,n).catch(()=>{}),e){let e=await this._getFace(c,n);if(!e)return null;let r=this._glyphCache.get(n);r||(r=new Map,this._glyphCache.set(n,r));let{shaping:i,isRTL:s}=this._shape(e,t);u=s,l=i.map(t=>this._getShapedGlyph(e,r,t)),h={baseline:e.baseline()/24,midline:e.midline()/24}}else{let e=this._pbfGlyphCache.get(n);e||(e=new Map,this._pbfGlyphCache.set(n,e));let[r,s,h]=(0,i.y)(t),f=function(t){let e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return e}(r);try{await this._fetchRanges(c,n,f,o)}catch{return null}u=s,l=f.map(t=>this._getPBFGlyph(e,c,n,t,a)).filter(t=>!!t)}let f=l.filter(t=>t.needsRecord);return f.length>0&&await this._client.recordGlyphs(f),{type:"glyphs",glyphs:l,faceInfo:h,isRightToLeft:u,sdfSize:24,sdfRadius:8,sdfPadding:3}}async _init(t){let e=await t;if(!e)return;let{width:r,height:i,snapCoords:n}=e;this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._binPack=new x(r,i),this._snapCoords=n,this._currentPage=0,this._initDecorationGlyphs()}_getShapedGlyph(t,e,r){let i,n,s=e.get(r.glyphId);if(!s){i=this._glyphSDFCreator.draw(t,r.glyphId);let a=this._glyphSDFCreator.sdfBufferPx;s={mosaicItem:{rect:this._recordGlyph(i?.rect,a),page:this._currentPage,sdf:!0,textureKey:A(1,this._currentPage,!0)},glyphRect:i?.rect??{width:0,height:0,top:0,left:0}},e.set(r.glyphId,s),n=!0}return{mosaicItem:s.mosaicItem,rect:s.glyphRect,shaping:{xAdvance:r.xAdvance,yAdvance:r.yAdvance,xOffset:r.xOffset,yOffset:r.yOffset},code:r.isNewline?10:r.isWhitespace?32:NaN,sdf:i,needsRecord:n}}_getPBFGlyph(t,e,r,i,n=!1){let s,a,o=t.get(i);if(!o){let l=e.getRange(r,i),h=l?.getRect(i),u=l?.getShaping(i),c=l?.getBitmap(i);if(n&&(!h||!u))return;if(!h||!u)return M(i);s=c&&{buffer:c,rect:h},o={mosaicItem:{rect:c?this._recordGlyph(h,3):new S.A(0,0,0,0),sdf:!0,page:this._currentPage,textureKey:A(1,this._currentPage,!0)},rect:h,shaping:u,code:i},a=!0,t.set(i,o)}let{mosaicItem:l,rect:h,shaping:u}=o;return{mosaicItem:l,rect:h,shaping:u,code:i,sdf:s,needsRecord:a}}_shape(t,e){let r=this._glyphSDFCreator.sdfSizePx,[n,s,a]=(0,i.y)(e,!1),o=new Uint32Array(Array.from(n).map((t,e)=>a.levels[a.targetToSource[e]]));return{shaping:t.shape(n,o,r),isRTL:s}}async _getFace(t,e,r){if(this._faces.has(e))return this._faces.get(e);let i=t.woffURL(e);return await N(this._facePromises,e,async()=>{let t=await(0,c.A)(i,{responseType:"array-buffer",...r}),n=(await u()).Face.parseWoff2(new Uint8Array(t.data));this._faces.set(e,n)}),this._faces.get(e)}_getSource(t){return this._glyphSources.has(t)||this._glyphSources.set(t,new b(t)),this._glyphSources.get(t)}async _fetchRanges(t,e,r,i){let n=function(t){let e=new Set;for(let r of t)e.add(Math.floor(r/256));return e}(r),s=[];n.forEach(r=>{s.push(this._fetchRange(t,e,r,i))}),await Promise.all(s)}async _fetchRange(t,e,r,i){if(r>256)return;let n=e+r;return N(this._pbfRangePromises,n,()=>t.fetchRange(e,r,i))}_allocNewPage(){this._currentPage++,this._binPack=new x(this._binPack.width,this._binPack.height),this._initDecorationGlyphs()}_recordGlyph(t,e){let r=this._binPack;if(!t||0===t.width)return new S.A;let i=t.width+2*e,n=t.height+2*e,s=i,a=n;this._snapCoords&&(s+=i%4?4-i%4:4,a+=n%4?4-n%4:4);let o=r.allocate(s,a);return o.isEmpty?(this._allocNewPage(),r.allocate(s,a)):o}_initDecorationGlyphs(){this._recordGlyph(g,3),this._recordGlyph(g,3)}preloadASCIIGlyphCache(t,e){let r=this._preloadCache[e];if(null!=r)return r;let i=t.preloadASCIIRange(e).then(async()=>{let r=this._pbfGlyphCache.get(e);r||(r=new Map,this._pbfGlyphCache.set(e,r));let i=[];for(let n=0;n<256;n++){let s=this._getPBFGlyph(r,t,e,n);s?.needsRecord&&i.push(s)}await this._client.recordGlyphs(i)},t=>{throw delete this._preloadCache[e],t});return this._preloadCache[e]=i,i}}function N(t,e,r){return t.has(e)||t.set(e,r().finally(()=>{t.delete(e)}).catch(t=>{(0,o.jH)(t)})),t.get(e)}const M=t=>({mosaicItem:{rect:new S.A(0,0,0,0),sdf:!0,page:0,textureKey:A(1,0,!0)},rect:{left:0,width:0,height:0,top:0},shaping:{xAdvance:0,yAdvance:0,xOffset:0,yOffset:0},code:t,needsRecord:!0})},18989(t,e,r){r.d(e,{A:()=>i});class i{constructor(t=0,e=0,r=0,i=0){this.x=t,this.y=e,this.width=r,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)}}}}]);
|