@arcgis/core 6.0.0-next.56 → 6.0.0-next.58
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/WebLinkChart.d.ts +0 -12
- package/WebLinkChart.js +1 -1
- package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00c227bcecc28fe278bb.js +1 -0
- 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/1afc8820c283ef785729.js +1 -0
- package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
- package/assets/esri/core/workers/chunks/1c874f86bfd0963aa3d2.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/294097140e349e073b7e.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/2f31766bc0f9d1d70c5a.js +1 -0
- package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
- package/assets/esri/core/workers/chunks/32d5aae2e0953420216a.js +1 -0
- package/assets/esri/core/workers/chunks/35109db6a6be66f895f7.js +1 -0
- package/assets/esri/core/workers/chunks/373b140f92eda3857f82.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/3fc4b7d0ee460fc96176.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/{dfa1b0308e5e82d1ddfe.js → 5e4de4ddd3bdc74100e0.js} +34 -33
- 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/651e33be8bb3995d749f.js +1 -0
- package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
- package/assets/esri/core/workers/chunks/690041373d03d02a3044.js +1 -0
- 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/721f43554b9654481de7.js +1 -0
- package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.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/8920d0b11951b57d6a66.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/92d97e0fcc20dd5f5ac4.js +1 -0
- package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.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/9ca84fa9423654061d05.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/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/b10c534cbe311d17b7d5.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/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/cb0e3614b78c78040662.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/d22e3b5d836dffdf91cc.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/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
- package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
- package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
- 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/e42e9dd3c933f5f864ab.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 +4 -17
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/ColorMaterial.glsl.js +1 -1
- package/chunks/Component.glsl.js +2 -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 +3 -3
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GlobalIllumination.glsl.js +12 -11
- package/chunks/GlobalIlluminationBlur.glsl.js +6 -4
- 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 +2 -2
- package/chunks/Terrain.glsl.js +28 -27
- package/chunks/UPCPointRenderer.glsl.js +100 -0
- package/chunks/UnitFactory.js +1 -1
- package/chunks/Water.glsl.js +25 -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/memoryEstimations.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 +0 -1
- 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/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/dehydratedFeatures.js +1 -1
- package/layers/graphics/transferFeatures.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/fieldUtils.d.ts +129 -57
- package/layers/support/fieldUtils.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/networks/Network.js +1 -1
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/package.json +2 -2
- 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/CameraInfoMixin.js +1 -1
- package/rest/support/NormalizationBinParametersMixin.js +1 -1
- package/rest/support/generateRendererUtils.js +1 -1
- package/smartMapping/raster/renderers/vectorField.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.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/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/GroundView3D.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/i3s/I3SIntersectionHandler.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/Tiles3DBVH.js +1 -1
- package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
- package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/GroundAndIMSurface.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/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.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/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectFixedBVH.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/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/lastFrameUniforms.js +1 -1
- 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/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 +15 -12
- 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.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/globalIlluminationUniforms.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +30 -53
- 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/RayIntersections.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/TriangleIntersectionData.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/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +89 -0
- 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/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/BreakpointsOwner.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/View.d.ts +27 -1
- 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/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/110f78d5e78732750097.js +0 -1
- package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
- package/assets/esri/core/workers/chunks/193a73a2c7f4f8482c21.js +0 -1
- package/assets/esri/core/workers/chunks/20acb6f3ed5140b6c6c6.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/2ad6db80a508285a3e5d.js +0 -1
- package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
- package/assets/esri/core/workers/chunks/2d4788be418a4e5f6606.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/333140b18aeb5a50b654.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/3982409149571a827390.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/4761cd436abceee858bf.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/4de08ead94660025075b.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/56f227e1a9e51d1fd742.js +0 -1
- package/assets/esri/core/workers/chunks/5bd451c7db17ee8f0315.js +0 -1
- package/assets/esri/core/workers/chunks/5c34d49a6c9cc34b7626.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/62ddd3a82864e26f009a.js +0 -1
- package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.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/703373f529c1c334cfad.js +0 -1
- 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/733c32d8091427d84de7.js +0 -1
- package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.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/835e0315661003caa71f.js +0 -1
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
- package/assets/esri/core/workers/chunks/860552f49f17de2f3353.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/88df1b8b295d3aed649f.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/9b727f45dfea84357b57.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/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/a05a2c2aaf0c288f9681.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/ab76170c374fd67ce8cd.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/aebd12488b4004e207a3.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/c7b1c6d57603fa385c54.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/cd8181600623e18f511c.js +0 -1
- package/assets/esri/core/workers/chunks/cef537fa9705dd1cf685.js +0 -1
- package/assets/esri/core/workers/chunks/d33403d578fbeecaf844.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/ddbfa664e69612295785.js +0 -1
- package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
- package/assets/esri/core/workers/chunks/ded81c504bf44806ca7d.js +0 -1
- package/assets/esri/core/workers/chunks/e0466387b2ab54d706ca.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/ee70be138831cc2a0f56.js +0 -1
- package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
- package/assets/esri/core/workers/chunks/efd6ea0966f60ab19520.js +0 -1
- package/assets/esri/core/workers/chunks/f23c4fd014126ea7abc6.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/f52d081bbde5c95265cf.js +0 -1
- package/assets/esri/core/workers/chunks/f6e40f3faf0c80cf1b3a.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/fbd5f3b81cd9f061824d.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
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +0 -70
package/chunks/Point2D.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as e,g as t,r as n,t as r}from"./Geometry.js";class i{constructor(e){this.sum=e,this.compensation=0}assign(e){return this.compensation=e.compensation,this.sum=e.sum,this}reset(){this.sum=this.compensation=0}resetToStart(e){this.sum=e,this.compensation=0}normalize(){let e=[NaN];this.sum=P(this.sum,this.compensation,e),this.compensation=e[0]}add(e){let t=this.sum+e,n;if(Math.abs(this.sum)>=Math.abs(e)){let r=this.sum-t+e;n=this.compensation+r}else{let r=e-t+this.sum;n=this.compensation+r}this.sum=t,this.compensation=n}sub(e){this.add(-e)}addProduct(e,t){let n=[0],r=N(e,t,n);this.add(r),this.add(n[0])}mul(e){let t=new i(0);t.addProduct(this.sum,e),t.addProduct(this.compensation,e),this.assign(t)}getResult(){return this.sum+this.compensation}pe(e){return this.add(e),this}me(e){return this.add(-e),this}sum;compensation}const a=[5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1],o=[-1,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3];function s(e){let t=0;return e&65535n||(t+=16,e>>=16n),e&255n||(t+=8,e>>=8n),e&15n||(t+=4,e>>=4n),t+a[Number(BigInt.asUintN(4,e))]}function c(e){let t=0;return e&4294901760n&&(t+=16,e>>=16n),e&65280n&&(t+=8,e>>=8n),e&240n&&(t+=4,e>>=4n),t+o[Number(BigInt.asUintN(4,e))]+1}function l(e){let t=0;return e&4294967295n||(t=32,e>>=32n),t+s(BigInt.asUintN(32,e))}function u(e){let t=0;return e&18446744069414584320n&&(t=32,e>>=32n),t+c(e)}class d{m_EnvelopeType=1;vmin;vmax;constructor(e,t){e===void 0?this.setEmpty():e instanceof d?(this.vmin=e.vmin,this.vmax=e.vmax):(this.vmin=e,this.vmax=t,this.normalize())}static construct(e,t){return new d(e,t)}static constructEmpty(){return new d}setCoords(e,t){this.vmin=e,this.vmax=t,this.normalize()}setCoordsFromEnvelope(e){this.vmin=e.vmin,this.vmax=e.vmax}setEmpty(){this.vmin=NaN,this.vmax=NaN}getCenter(){return .5*(this.vmin+this.vmax)}equalsRange(e,t){return U(this.vmin,e)&&U(this.vmax,t)}equals(e,t){return this.isEmpty()&&e.isEmpty()?!0:t===void 0?this.vmin===e.vmin&&this.vmax===e.vmax:Math.abs(this.vmin-e.vmin)<=t&&Math.abs(this.vmax-e.vmax)<=t}width(){return this.vmax-this.vmin}isEmpty(){return Number.isNaN(this.vmin)||Number.isNaN(this.vmax)}isZero(){return this.vmin===this.vmax}setInfinite(){this.vmin=-1/0,this.vmax=1/0}move(e){this.isEmpty()||(this.vmin+=e,this.vmax+=e)}contains(e){return e.vmin>=this.vmin&&e.vmax<=this.vmax}containsCoordinate(e){return e>=this.vmin&&e<=this.vmax}containsRightExclusive(e){return e>=this.vmin&&e<this.vmax}containsExclusiveCoordinate(e){return e>this.vmin&&e<this.vmax}containsExclusive(e){return e.vmin>this.vmin&&e.vmax<this.vmax}isIntersecting(e){return this.vmin<=e.vmin?this.vmax>=e.vmin:e.vmax>=this.vmin}mergeCoordinate(e){this.isEmpty()?(this.vmin=e,this.vmax=e):this.mergeNeCoordinate(e)}merge(e){if(e.isEmpty())return;let t=e.vmin,n=e.vmax;this.mergeCoordinate(t),this.mergeCoordinate(n)}mergeNe(e){let t=e.vmin,n=e.vmax;this.mergeNeCoordinate(t),this.mergeNeCoordinate(n)}mergeNeCoordinate(e){e<this.vmin?this.vmin=e:e>this.vmax&&(this.vmax=e)}intersect(e){this.isEmpty()||e.isEmpty()?this.setEmpty():(this.vmin<e.vmin&&(this.vmin=e.vmin),this.vmax>e.vmax&&(this.vmax=e.vmax),this.vmin>this.vmax&&this.setEmpty())}inflate(e){this.isEmpty()||(this.vmin-=e,this.vmax+=e,this.vmax<this.vmin&&this.setEmpty())}normalize(){this.vmin<=this.vmax||(this.vmin>this.vmax?this.vmax=L(this.vmin,this.vmin=this.vmax):this.setEmpty())}isValid(){return this.isEmpty()||this.vmin<=this.vmax}snapClip(e){return Rt(e,this.vmin,this.vmax)}calculateToleranceFromEnvelope(){return this.isEmpty()?Y():(Math.abs(this.vmin)+Math.abs(this.vmax)+1)*Y()}static unit(){return f}normalizeNoNAN(){this.vmin>this.vmax&&(this.vmax=L(this.vmin,this.vmin=this.vmax))}setCoordsNoNAN(e,t){this.vmin=e,this.vmax=t,this.normalizeNoNAN()}clone(){return new d(this.vmin,this.vmax)}}const f=new d(0,1);class p{m_value;m_eps;static getNAN(){return new p(NaN)}constructor(e,t){this.m_value=e??0,this.m_eps=t??0}[Symbol.toPrimitive](e){return this}clone(){return new p(this.m_value,this.m_eps)}assign(e){return this.m_value=e.m_value,this.m_eps=e.m_eps,this}scaleError(e){this.m_eps*=e}setError(e){this.m_eps=e}set(e,t){return this.m_value=e,this.m_eps=t??0,this}setWithEps(e,t){return t===void 0&&(t=1),this.m_value=e,this.m_eps=p.ulp(e)*t,this}setE(e){return this.m_value=e.m_value,this.m_eps=e.m_eps,this}precise(){return new p(this.m_value)}value(){return this.m_value}toDouble(){return this.m_value}eps(){return this.m_eps}resetError(){return this.m_eps=0,this}absThis(){return this.m_value=Math.abs(this.m_value),this}add(e){return this.clone().addThis(e)}addE(e){return this.clone().addThisE(e)}addThisE(e){let t=this.m_value+e.m_value,n=this.m_eps+e.m_eps+p.ulp(t);return this.m_value=t,this.m_eps=n,this}addThis(e){let t=this.m_value+e,n=this.m_eps+p.ulp(t);return this.m_value=t,this.m_eps=n,this}subE(e){return this.clone().subThisE(e)}sub(e){return this.clone().subThis(e)}subThisE(e){let t=this.m_value-e.m_value,n=this.m_eps+e.m_eps+p.ulp(t);return this.m_value=t,this.m_eps=n,this}subThis(e){let t=this.m_value-e,n=this.m_eps+p.ulp(t);return this.m_value=t,this.m_eps=n,this}setAddE(e,t){return this.m_value=e.m_value+t.m_value,this.m_eps=e.m_eps+t.m_eps+p.ulp(this.m_value),this}setAdd(e,t){return this.m_value=e+t,this.m_eps=p.ulp(this.m_value),this}setAddEN(e,t){return this.m_value=e.m_value+t,this.m_eps=e.m_eps+p.ulp(this.m_value),this}setAddNE(e,t){return this.m_value=e+t.m_value,this.m_eps=t.m_eps+p.ulp(this.m_value),this}setSubE(e,t){return this.m_value=e.m_value-t.m_value,this.m_eps=e.m_eps+t.m_eps+p.ulp(this.m_value),this}setSub(e,t){return this.m_value=e-t,this.m_eps=p.ulp(this.m_value),this}setSubEN(e,t){return this.m_value=e.m_value-t,this.m_eps=e.m_eps+p.ulp(this.m_value),this}setSubNE(e,t){return this.m_value=e-t.m_value,this.m_eps=t.m_eps+p.ulp(this.m_value),this}mulThisE(e){let t=this.m_value*e.m_value;return this.m_eps=this.m_eps*Math.abs(e.m_value)+e.m_eps*Math.abs(this.m_value)+this.m_eps*e.m_eps+p.ulp(t),this.m_value=t,this}mulThis(e){let t=this.m_value*e;return this.m_eps=this.m_eps*Math.abs(e)+p.ulp(t),this.m_value=t,this}mul(e){return this.clone().mulThis(e)}mulE(e){return this.clone().mulThisE(e)}setMulE(e,t){let n=e.m_value*t.m_value;return this.m_eps=e.m_eps*Math.abs(t.m_value)+t.m_eps*Math.abs(e.m_value)+e.m_eps*t.m_eps+p.ulp(n),this.m_value=n,this}setMul(e,t){return this.m_value=e*t,this.m_eps=p.ulp(this.m_value),this}setMulEN(e,t){return this.setE(e),this.mulThis(t)}setMulNE(e,t){return this.setE(t),this.mulThis(e)}mulThisByPower2(e){return this.m_value*=e,this.m_eps*=Math.abs(e),this}static st_mulByPower2(e,t){return new p(e.m_value,e.m_eps).mulThisByPower2(t)}divE(e){return this.clone().divThisE(e)}divThisE(e){let t=Math.abs(e.m_value),n=this.m_value/e.m_value,r=(this.m_eps+Math.abs(n)*e.m_eps)/t;if(e.m_eps>.01*t){let n=e.m_eps/t;r*=1+(1+n)*n}return this.m_value=n,this.m_eps=r+p.ulp(n),this}divThis(e){let t=Math.abs(e);return this.m_value/=e,this.m_eps=this.m_eps/t+p.ulp(this.m_value),this}setDivE(e,t){return this.setE(e),this.divThisE(t)}setDiv(e,t){return this.m_value=e/t,this.m_eps=p.ulp(this.m_value),this}setDivEN(e,t){return this.setE(e),this.divThis(t)}setDivNE(e,t){return this.set(e),this.divThisE(t)}divThisByPower2(e){return this.m_value/=e,this.m_eps/=Math.abs(e),this}invThis(){return this.setE(b.clone().divThisE(this)),this}sqrt(){return this.clone().sqrtThis()}sqrtThis(){let e,t;return this.m_value>=0?(e=Math.sqrt(this.m_value),t=this.m_value>10*this.m_eps?.5*this.m_eps/e:this.m_value>this.m_eps?e-Math.sqrt(this.m_value-this.m_eps):Math.max(e,Math.sqrt(this.m_value+this.m_eps)-e),t+=p.ulp(e)):this.m_value<-this.m_eps?(e=NaN,t=NaN):(e=0,t=Math.sqrt(this.m_eps)),this.m_value=e,this.m_eps=t,this}sqr(){return this.clone().sqrThis()}sqrThis(){let e=this.m_value*this.m_value;return this.m_eps=2*this.m_eps*Math.abs(this.m_value)+this.m_eps*this.m_eps+p.ulp(e),this.m_value=e,this}setSin(e){let t=Math.sin(e.m_value),n=Math.cos(e.m_value);this.m_value=t;let r=Math.abs(t),i=Math.abs(e.value());return this.m_eps=(Math.abs(n)+r*.5*e.m_eps)*e.m_eps+p.ulp(r+i),this}static ulp(e){let t=B(e),n=((t&9218868437227405312n)>>52n)-1075n;return n>-1023n?(t=n+1023n<<52n,ft(t)):e===0?0:Number.MIN_VALUE}setCos(e){let t=Math.sin(e.m_value),n=Math.cos(e.m_value);this.m_value=n;let r=Math.abs(n),i=Math.abs(e.value());return this.m_eps=(Math.abs(t)+r*.5*e.m_eps)*e.m_eps+p.ulp(r+i),this}static st_cosAndSin(e,t,n){let r=Math.sin(e.m_value),i=Math.cos(e.m_value);n.m_value=r,t.m_value=i;let a=Math.abs(r),o=Math.abs(i),s=Math.abs(e.value());n.m_eps=(Math.abs(i)+a*.5*e.m_eps)*e.m_eps+p.ulp(a+s),t.m_eps=(Math.abs(r)+o*.5*e.m_eps)*e.m_eps+p.ulp(o+s)}negate(){return this.clone().negateThis()}negateThis(){return this.m_value=-this.m_value,this}setAbs(){return this.m_value=Math.abs(this.m_value),this}isInInterval(e){return d.construct(this.m_value-this.m_eps,this.m_value+this.m_eps).isIntersecting(e)}isInIntervalExclusive(e){let t=e.vmin+this.m_eps,n=e.vmax-this.m_eps;return t<this.m_value&&n>this.m_value}eq(e){return Math.abs(this.m_value-e.m_value)<=this.m_eps+e.m_eps}ne(e){return!this.eq(e)}gt(e){return this.m_value-e.m_value>this.m_eps+e.m_eps}lt(e){return e.m_value-this.m_value>this.m_eps+e.m_eps}ge(e){return!this.lt(e)}le(e){return!this.gt(e)}tolEQ(e,t){return Math.abs(this.m_value-e.m_value)<=t||this.eq(e)}tolNE(e,t){return!this.tolEQ(e,t)}tolGT(e,t){return this.m_value-e.m_value>t&&this.gt(e)}tolLT(e,t){return e.m_value-this.m_value>t&&this.lt(e)}tolGE(e,t){return!this.tolLT(e,t)}tolLE(e,t){return!this.tolGT(e,t)}isZero(){return Math.abs(this.m_value)<=this.m_eps}isFuzzyZero(){return this.isZero()&&this.m_eps!==0}tolIsZero(e){return Math.abs(this.m_value)<=Math.max(this.m_eps,e)}setPi(){this.setE(v)}setEuler(){this.set(2.718281828459045,_())}static dimensions=1;static size(){return 1}}function m(e,t){let n=V(e),r=V(t),i=53-l(n),a=53-l(r);return(i>=0?i:0)+(a>=0?a:0)<=52}function h(e,t){let n=e,r=t,i=n+r;return i-n===r&&i-r===n}function g(e,t){let n=e,r=t,i=n-r;return n-i===r&&r+i===n}function _(){return X()}const v=new p(Math.PI,_()*.5),y=new p(0,0),b=new p(1,0),x=new p(4,0);function S(e,t,n){return e.addE(t.subE(e).mulE(n))}function ee(e,t,n){return t.subE(t.subE(e).mulE(b.subE(n)))}function te(e){return Math.atanh(e)}function ne(e){let t;if(e===0)t=1;else if(Math.abs(e)>.01)t=te(e)/e;else{let n;t=0;let r=e*e,i=Math.trunc(-36.841361487904734/Math.log(r)+2.5);for(let e=2*i-1;e>1;e-=2)n=1/e,t=(t+n)*r;t+=1}return t}function C(e){let t=Math.PI*Math.PI/6,n;if(e===1)n=t;else if(e>1)n=t;else if(e===0)n=e;else if(e<0){e=Math.abs(e);let t=1+e,r=Math.log(t);n=r*r/-2-C(e/t)}else if(e>.5){let r=1-e,i=Math.log(e)*Math.log(r);n=t-C(r)-i}else{n=0;let t=1+Math.trunc(-16*Math.log(10)/Math.log(e)+1.5),r=t;for(let i=t;i>0;i--,--r)n*=e,n+=1/(r*r);n*=e}return n}function re(e,t){let n=t*e;if(Math.abs(t)<.1){let t=0;for(let e=60;e>=1;e--)t*=n,t+=1/e/e;return t*=e,t}return C(n)/t}function w(e,t){return e<t?z(e,t):z(t,e)}function T(e,t){let n=Math.abs(e);return t>=0?n:-n}function ie(e){return Math.round(e)}function E(e,t,n,r,i){i[0]=t[0]+(n[0]-t[0])*r,i[1]=t[1]+(n[1]-t[1])*r,e===3&&(i[2]=t[2]+(n[2]-t[2])*r)}function D(e,t,n,r,i){i[0]=n[0]-(n[0]-t[0])*(1-r),i[1]=n[1]-(n[1]-t[1])*(1-r),e===3&&(i[2]=n[2]-(n[2]-t[2])*(1-r))}function O(e,t,n,r,i){r<=.5?E(e,t,n,r,i):D(e,t,n,r,i)}function ae(e,t,n,r,i){i[0]=t[0].addE(n[0].subE(t[0]).mulE(r)),i[1]=t[1].addE(n[1].subE(t[1]).mulE(r))}function oe(e,t,n,r,i){i[0]=n[0].subE(n[0].subE(t[0]).mulE(b.subE(r))),i[1]=n[1].subE(n[1].subE(t[1]).mulE(b.subE(r)))}function k(e,t,n){let r;return r=n<=.5?e+(t-e)*n:t-(t-e)*(1-n),r}function se(e,t,n){return e+(t-e)*n}function ce(e,t,n){return t-(t-e)*(1-n)}function A(e,t,n,r){n<=.5?(r.x=e.x+(t.x-e.x)*n,r.y=e.y+(t.y-e.y)*n):(r.x=t.x-(t.x-e.x)*(1-n),r.y=t.y-(t.y-e.y)*(1-n))}function le(e,t,n,r){n<=.5?(r.x=e.x+(t.x-e.x)*n,r.y=e.y+(t.y-e.y)*n,r.z=e.z+(t.z-e.z)*n):(r.x=t.x-(t.x-e.x)*(1-n),r.y=t.y-(t.y-e.y)*(1-n),r.z=t.z-(t.z-e.z)*(1-n))}function j(e){return e*e}function ue(e){return e*e*e}function de(e){return 1/Math.sqrt(e)}function fe(e){return e<0?-1:+(e>0)}function pe(e,t,n,r){let i=[0],a=N(e,n,i),o=[0],s=N(t,r,o),c=[0];return P(a,s,c)+(i[0]+o[0]+c[0])}const me=[0],he=[0];function ge(e,t,n){return Ce(N(e,t,me),n,me[0],he)}const M=[0],_e=[0],ve=[0],ye=[0];function N(e,t,n){let r=e*t;return be(e,M,_e),be(t,ve,ye),n[0]=_e[0]*ye[0]-(r-M[0]*ve[0]-_e[0]*ve[0]-M[0]*ye[0]),r}function be(e,t,n){let r=0x8000001*e;t[0]=r-(r-e),n[0]=e-t[0]}const xe=[0],Se=[0];function Ce(e,t,n,r){return P(P(P(e,t,xe),n,Se),xe[0]+Se[0],r)}function P(e,t,n){let r=e+t;return n[0]=Math.abs(e)>Math.abs(t)?e-r+t:t-r+e,r}function we(e,t){return e%t}function Te(e){let t=1-e;if(t===0)return 1;let n;if(t<=.01){let e=t,r=Math.log(e);n=1+e*(.4431471805599453-.25*r+e*(.05680519270997949-.09375*r+e*(.02183137044373718-.05859375*r+e*(.011544521417308362-.042724609375*r+e*(.00714200031339596-.0336456298828125*r+e*(.004854743337164948-.027757644653320312*r+e*(.003514687963781376-.023627042770385742*r)))))))}else if(e<.016){let t=e;return Z()*(1-t*(.25+t*(.046875+t*(.01953125+t*(.01068115234375+t*(.0067291259765625+t*(.004626274108886719+t*(.0033752918243408203+t*.0025710230693221092))))))))}else n=Oe(0,t,1)-e*ke(0,t,1)/3;return Rt(n,1,Z())}function Ee(e,n,r=NaN){if(t(n>=0&&n<=1),n===0)return e;let i=1,a=e;if(a<0&&(a=-a,i=-1),n===1){let e=Math.round(a/Vt()),t=a-e*Vt(),n=2*e+Math.sin(t);return i*n}let o=Z(),s=Math.floor(a/o);s&1?a=(s+1)*o-a:a-=s*o;let c=Math.sin(a),l=Number.isNaN(r)?Te(n):r,u;if(c===1)u=l+Math.sqrt(1-n)*(a-o);else{let e=a*a;if(.01424*e**4<=2*X())u=a*(1+e*n*(-1/6+e*((4-3*n)/120-(16+(-60+45*n)*n)/5040*e)));else if(n<=.01){let e=Math.sin(2*a),t=Math.sin(4*a),r=Math.sin(6*a),i=Math.sin(8*a),o=Math.sin(10*a),s=Math.sin(12*a),c=n;u=a+c*((-a*2+e)/8+c*((-3*a+2*e-t*.25)/64+c*((-20*a+15*e-3*t+r/3)/1024+c*(5*(-140*a+112*e-28*t+16/3*r-.5*i)/65536+c*7*((-63*a+52.5*e-15*t+3.75*r-.625*i+.05*o)/65536+c*(-693*a+594*e-185.625*t+1.375*r-12.375*i+1.8*o-.125*s)/1048576)))))}else{let e=c*c,t=Math.cos(a),r=t*t,i=Ae(c,t,n);u=c*(Oe(r,i,1)-n*e*ke(r,i,1)/3)}}return s&1?u=l*(s+1)-u:u+=l*s,i*u}function De(e,t,n=NaN){if(e===0)return 0;let r=1,i=e;e<0&&(i=-i,r=-1);let a=Number.isNaN(n)?Te(t):n,o=Math.floor(i/a);o&1?i=(o+1)*a-i:i-=o*a;let s=i<=0?0:i>=a?Z():je(i,t,a);return o&1?s=Z()*(o+1)-s:s+=Z()*o,r*s}function Oe(e,n,r){t((e===0?0:1)+(n===0?0:1)+1>1);let i=e,a=n,o=r;for(;;){let e=Math.sqrt(i*a),t=Math.sqrt(a*o),n=Math.sqrt(o*i),r=e+t+n;i=.25*(i+r),a=.25*(a+r),o=.25*(o+r);let s=(i+a+o)/3,c=(s-i)/s,l=(s-a)/s,u=(s-o)/s;if(Math.abs(c)<=.0024&&Math.abs(l)<=.0024&&Math.abs(u)<=.0024){let e=c*l-u*u,t=c*l*u;return(1+(-.1+1/24*e-3/44*t-5*e*e/208+e*t/16)*e+(1/14+3*t/104)*t)/Math.sqrt(s)}}}function ke(e,n,r){t(e!==0||n!==0);let a=e,o=n,s=r,c=new i(0),l=1;for(;;){let e=(a+o+3*s)*.2,t=(e-a)/e,n=(e-o)/e,r=(e-s)/e;if(Math.abs(t)<=.0015&&Math.abs(n)<=.0015&&Math.abs(r)<=.0015){let i=t*n,a=r*r,o=i-a,s=i-6*a,u=s+o+o,d=3/26,f=s*(-.21428571428571427+.10227272727272728*s-1.5*d*r*u),p=r*(.16666666666666666*u+r*(-.4090909090909091*o+r*d*i));return 3*c.getResult()+l*(1+f+p)/(e*Math.sqrt(e))}let i=Math.sqrt(a),u=Math.sqrt(o),d=Math.sqrt(s),f=i*(u+d)+u*d;c.add(l/(d*(s+f))),l*=.25,a=(a+f)*.25,o=(o+f)*.25,s=(s+f)*.25}}function Ae(e,t,n){return e<.999?1-n*j(e):1-n+n*j(t)}function je(e,t,n){if(t===0)return e;if(t===1)return Math.asin(e);let r=0,i=!0;if(e<.2){let n=e*e,a=e*(1+n*t*(1/6+n*((13*t-4)/120+(16-284*t+493*t*t)/5040*n))),o=Math.abs(t*(-64+4944*t-31224*t*t+37369*t*t*t)/362880*e**9);if(o<Math.abs(a)*X())return a;r=a,i=o>a*.1}if(i){let i=1-t,a=1-e/n,o=Math.sqrt(a*a+i*i),s=Math.atan2(i,e+X());r=Z()+Math.sqrt(o)*(s-Z())}let a=0;for(let i=0;i<7;i++){a=Ee(r,t,n);let o=Ae(Math.sin(r),Math.cos(r),t);if(r-=(a-e)/Math.sqrt(o),i>0&&Math.abs(a-e)<=4*X()*e)break}return r}class Me{values;constructor(e){for(this.values=[[1]];this.values.length<e+1;){let e=this.values.at(-1),t=R(e.length+1,1);for(let n=1;n<e.length;++n)t[n]=e[n-1]+e[n];this.values.push(t)}}get(e,t){return this.values[e][t]}}function Ne(e,n){return t(0),0}const Pe=new Me(32);function F(e,t){if(e<Pe.values.length)return Pe.get(e,t);let r=Math.exp(Ne());return r+.01>W()&&n(`The result value of n choose k is out of range`),r+.01}function Fe(e,t){if(e.isZero())return e.clone();let n=e.clone().divThis(e);if(t<0)return n.divThis(Fe(e,-t));for(e=e.clone(),t=Math.trunc(t);t&1&&n.mulThis(e),t>>=1,t;)e.mulThis(e);return n}function Ie(e,t){if(t===0)return[];let n=e[0].clone().mulDoubleThis(0),r=[];r.length=t;let i=t-1;for(let t=0;t<=i;++t){r[t]=n.clone();for(let n=0;n<=t;++n)r[t].addThis(e[n].clone().mulDoubleThis(F(t,n)/F(i,n)))}return r}function Le(t,n,r,i,a){if(t===0)return i===0?n:i===1?r:a;if(t===1)return i===0?n:i===1?r:k(n,r,i);t===2&&e(`angular interpolation`),e(``)}function Re(t,n,r,i,a,o,s,c){if(t===0)for(let e=0;e<o;++e)i[e+a]=s===0?n[e]:s===1?r[e]:c;else if(t===1){if(s===0)I(i,n,a,0,o);else if(s===1)I(i,r,a,0,o);else for(let e=0;e<o;++e)i[e+a]=k(n[e],r[e],s)}else if(t===2){if(s===0)I(i,n,a,0,o);else if(s===1)I(i,r,a,0,o);else{let e=0;for(let t=0,c=a;t<o;++t,++c)i[c]=k(n[t],r[t],s),e+=i[c]*i[c];if(e>0){e=Math.sqrt(e);for(let t=a;t<a+o;++t)i[t]/=e}else{for(let e=a;e<a+o;++e)i[e]=0;i[a]=1}}}else e(``)}function I(e,t,n,r,i){if(i===0)return;let a=0,o=n,s=r;for(;a++<i;)e[o++]=t[s++]}function ze(e,t,n){let r=0;for(let i=0;!r&&i<n;++i)r=e[i]-t[i];return r}function L(e,t){return e}function Be(e){e.sort((e,t)=>e<t?-1:+(e>t))}function Ve(e,t){let n=e.slice(0,t);Be(n),I(e,n,0,0,t)}function He(e,t,n,r){let i=e.slice(t,t+n);i.sort(r),I(e,i,t,0,n)}function Ue(e,t){return e<t?-1:+(e>t)}function We(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:+(t>r)}function Ge(e,t){if(e.length<2)return e.length;let n=0;for(let r=1;r<e.length;++r)t(e[r],e[n])||(n++,e[r]=L(e[n],e[n]=e[r]));return 1+n}function Ke(e,t){e[t]=e.at(-1),e.pop()}function qe(e,t=!1){return{[Symbol.dispose](){this.bForget||e()},bForget:t}}function Je(e,t,n){e.length=t,e.fill(n)}function Ye(e,t,n){e.length=n;for(let r=0;r<n;++r)e[r]=new t}function Xe(e,t){let n=Array(t);for(let r=0;r<t;++r)n[r]=new e;return n}function Ze(e,t,n){for(let r=0;r<n;++r)e[r].assign(t[r]);return n}function Qe(e,t){let n=e.slice(0,t);for(let e=0;e<t;++e)n[e]=n[e].clone();return n}function $e(e){return Array.from({length:e},()=>null)}function et(e,t){return Array.from({length:t},()=>e())}function R(e,t){let n=Array(e);return n.fill(t),n}function tt(e,t){return t in e&&Object.getOwnPropertyNames(e).length===1}class nt{m_elts;constructor(...e){this.m_elts=e}get length(){return this.m_elts.length}at(e){return this.m_elts[e]}[Symbol.dispose](){for(let e of this.m_elts)e[Symbol.dispose]()}}function z(e,t){return{first:e,second:t}}const rt=Math.PI,it=2*Math.PI,at=.5*Math.PI;class ot{m_cr;m_cc;m_v;constructor(e,t){this.m_cr=e,this.m_cc=t,this.m_v=R(e*t,0)}get(e,t){return this.m_v[e*this.m_cc+t]}set(e,t,n){this.m_v[e*this.m_cc+t]=n}inc(e,t){return++this.m_v[e*this.m_cc+t]}}const st=new ArrayBuffer(8),ct=new Float64Array(st),lt=new BigUint64Array(st),ut=1e16;function dt(){return 2**-52*Pt}function B(e){return ct[0]=e,lt[0]}function ft(e){return lt[0]=e,ct[0]}function V(e){return B(e)&4503599627370495n}function pt(e){return Number((B(e)&9218868437227405312n)>>52n)}function H(e){if(e===0n)return-1n;if(e===1n||e===-1n)return 0n;e<0n&&(e=-e);let t=0n,n=512n,r=1n<<t+n;for(;e>=r;)t+=n,n<<=1n,r<<=n;let i=t;n>>=1n;let a=i+n;for(;n>0n;)e<1n<<a||(i=a),n>>=1n,a=i+n;return i}function U(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function mt(e,t,n){return e===t||Math.abs(e-t)<=n||Number.isNaN(e)&&Number.isNaN(t)}function ht(e,t){return e<t?-1:+(e>t)}function gt(e,t){if(e<t)return-1;if(e>t)return 1;if(e===t)return 0;{let n=Number.isNaN(e),r=Number.isNaN(t);return n<r?-1:+(n>r)}}function _t(){return 0x7fffffff}function vt(){return 32767}function W(){return 0x7fffffff}function yt(){return-0x80000000}const G=W(),bt=BigInt(G),xt=0x811c9dc5,K=16777619;function St(e){let t=xt,n=e;return t=(t^n&255)*K,n>>=8,t=(t^n&255)*K,n>>=8,t=(t^n&255)*K,n>>=8,t=(t^n&255)*K,t&G}const q=1099511628211n;function Ct(e){let t=14695981039346656037n,n=e;return t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,t&bt}function wt(e){return 0x41c64e6d*e+12345&0x7fffffff}function Tt(e){let t=xt;for(let n=0,r=e.length;n<r;++n)t=(t^e.charCodeAt(n))*K;return t&G}function J(e,t){return t+0x9e3779b9+(e<<6)+(e>>2)&G}function Et(e,t){return J(e,At(t))}function Dt(e){return J(0xdeadbeef,e)}function Ot(e,t){return J(e,Dt(t))}function kt(e){return St(e)}function At(e){return Number(Ct(e))}function jt(e){return Gt(e)}function Mt(e){return At(B(jt(e)))}function Nt(e){return wt(e)}const Pt=100;function Y(){return 2**-52*100}function Ft(){return .38196601125010515}function It(){return 1.4142135623730951}function X(){return 2**-52}function Lt(e,t,n){return e===t||e===n}function Rt(e,t,n){return e>=t?e<=n?e:n:t}function zt(e,t,n){let r=e[0];if(!(r>=t))e[0]=t;else if(!(r<=n))e[0]=n;else return!1;return!0}function Bt(e,t){return e>=t?t:e<-t?-t:e}function Vt(){return rt}function Ht(){return it}function Z(){return at}const Ut=3*Z();function Wt(){return Ut}function Gt(e){return e+0}function Kt(e){return{v:e}}class Q{static s_sm=9223372036854775808n;static s_em=9218868437227405312n;static s_fm=4503599627370495n;static s_emax=2047n;m_rn=Kt(0n);m_rd=Kt(1n);m_bNaN=!1;m_bNormalized=!1;m_power=0;m_sign=0;static constructAssign(e,t){let n=e.clone();return t!==void 0&&n.limitPrecisionThis(t),n}static constructDouble(e){return new Q().setDouble(e)}static constructInt64(e){return new Q().setInt64(e)}static constructRational(e,t){return new Q().setRational(e,t)}static constructInt32(e){return this.constructInt64(BigInt(Math.trunc(e)))}[Symbol.toPrimitive](e){return this}compare(e){return this.lt(e)?-1:+!!this.gt(e)}assignCopy(e){return this.setThis(e)}abs(){return this.clone().absThis()}absThis(){return this.isNAN()||(this.m_sign*=this.m_sign),this}clone(){return new Q().setThis(this)}setThis(e){return this.m_bNaN=e.m_bNaN,this.m_bNormalized=e.m_bNormalized,this.m_rn.v=e.m_rn.v,this.m_rd.v=e.m_rd.v,this.m_power=e.m_power,this.m_sign=e.m_sign,this}setZero(){return this.m_rn.v=0n,this.m_rd.v=1n,this.m_bNaN=!1,this.m_power=0,this.m_bNormalized=!0,this.m_sign=0,this}setDouble(t){if(this.setZero(),t===0)return this;if(Number.isInteger(t)&&Math.abs(t)<W())return this.setInt32(t);let n=B(t),r=(n&Q.s_em)>>52n,i=!!(n&Q.s_sm),a=n&Q.s_fm;if(r===Q.s_emax)return a?(this.m_rn.v=this.m_rd.v=0n,this.m_bNaN=!0,this):(this.m_rn.v=i?-1n:1n,this.m_rd.v=0n,this);r===0n&&e(`denormalized numbers not yet implemented`);let o=r-1023n,s=o>=0n?o:0n,c=o<0n?-o:0n;return this.m_rn.v=(1n<<52n|a)<<s,this.m_rd.v=1n<<52n+c,this.m_sign=i?-1:1,this.m_bNormalized=!1,this.normalizeThis()}setInt64(e){return e===0n?this.setZero():(this.m_bNaN=!1,this.m_sign=e>0n?1:-1,this.m_rn.v=e>0n?e:-e,this.m_rd.v=1n,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setRational(e,t){return e===0n?t===0n?this.setNAN():this.setZero():t===0n?e>0n?this.setPositiveInf():this.setNegativeInf():(this.m_sign=(e>0n?1:-1)*(t>0n?1:-1),this.m_rn.v=e>0n?e:-e,this.m_rd.v=t>0n?t:-t,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setInt32(e){return this.setInt64(BigInt(Math.trunc(e)))}getDouble(){return this.convertToDouble()}toDouble(){return this.convertToDouble()}value(){return this.convertToDouble()}isNAN(){return this.m_bNaN}isPositiveInf(){return!this.isNAN()&&this.m_rd.v===0n&&this.m_sign===1}isNegativeInf(){return!this.isNAN()&&this.m_rd.v===0n&&this.m_sign===-1}isFinite(){return!this.isNAN()&&this.m_rd.v!==0n}setNAN(){return this.m_bNaN=!0,this.m_rn.v=0n,this.m_rd.v=0n,this.m_power=0,this.m_bNormalized=!0,this}setPositiveInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=1,this.m_power=0,this}setNegativeInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=-1,this.m_power=0,this}subThis(e){if(e.isNAN()&&this.setNAN(),this.isPositiveInf()&&e.isPositiveInf())this.setNAN();else if(this.isPositiveInf()&&e.isNegativeInf())return this.setPositiveInf(),this;else if(this.isNegativeInf()&&e.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&e.isPositiveInf())return this.setNegativeInf(),this;return this.isNAN()?this:this.opPlusMinus(e,!1)}thisSubAbs(e){return t(0),this}mulThis(e){return e.isNAN()&&this.setNAN(),this.isNAN()?this:(this.m_sign*=e.m_sign,this.m_sign===0?this.setZero():(this.m_rn.v*=e.m_rn.v,this.m_rd.v*=e.m_rd.v,this.m_power+=e.m_power,this.m_bNormalized=!1,this.normalizeThis(),this))}mulDoubleThis(e){return this.mulThis(Q.constructDouble(e))}thisMulInt64(e){return t(0),this}thisMulInt32(e){return t(0),this}divThis(e){return this.mulThis(e.clone().invertThis())}divDoubleThis(e){return this.divThis(Q.constructDouble(e))}addDoubleThis(e){return this.addThis(Q.constructDouble(e))}subDoubleThis(e){return this.subThis(Q.constructDouble(e))}mul(e){return this.clone().mulThis(e)}mulBigIntThis(e){return this.mulThis(Q.constructInt64(e))}mulDouble(e){return this.clone().mulThis(Q.constructDouble(e))}div(e){return this.clone().divThis(e)}divDouble(e){return this.clone().divDoubleThis(e)}add(e){return this.clone().addThis(e)}fmSubThis(e,t){return this.subThis(e.clone().mulThis(t))}fmAddThis(e,t){return this.addThis(e.clone().mulThis(t))}addThis(e){if(e.isNAN()&&this.setNAN(),this.isPositiveInf()&&e.isPositiveInf())return this.setPositiveInf(),this;if(this.isPositiveInf()&&e.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&e.isNegativeInf())return this.setNegativeInf(),this;else this.isNegativeInf()&&e.isPositiveInf()&&this.setNAN();return this.isNAN()?this:this.opPlusMinus(e,!0)}addDouble(e){return this.clone().addThis(Q.constructDouble(e))}sub(e){return this.clone().subThis(e)}subDouble(e){return this.clone().subThis(Q.constructDouble(e))}isZero(){return this.m_sign===0}equals(e){return this.clone().subThis(e).isZero()}lt(e){return this.isNAN()||e.isNAN()||this.isPositiveInf()&&e.isPositiveInf()||this.isNegativeInf()&&e.isNegativeInf()||this.isPositiveInf()?!1:e.isPositiveInf()?!0:this.clone().sub(e).LZ()}absLessAbs(e){return this.abs().lt(e.abs())}gt(e){return this.clone().sub(e).GZ()}lte(e){return this.sub(e).LEZ()}gte(e){return this.sub(e).GEZ()}normalizeThis(){if(this.m_bNormalized)return this;if(this.m_rn.v===0n)return this.setZero();let e=0,t=4294967295n;for(;(this.m_rn.v&t)===0n&&t<=this.m_rn.v;)t<<=32n,e+=32;t&=this.m_rn.v,t>>=BigInt(e),e+=s(BigInt.asUintN(32,t))-1;let n=0;for(t=4294967295n;(this.m_rd.v&t)===0n&&t<=this.m_rd.v;)t<<=32n,n+=32;return t&=this.m_rd.v,t>>=BigInt(n),n+=s(BigInt.asUintN(32,t))-1,this.m_rn.v>>=BigInt(e),this.m_rd.v>>=BigInt(n),this.m_power+=e-n,this.m_rn.v>1n&&this.m_rd.v>1n&&(this.m_rn.v%this.m_rd.v===0n?(this.m_rn.v/=this.m_rd.v,this.m_rd.v=1n):this.m_rd.v%this.m_rn.v===0n&&(this.m_rd.v/=this.m_rn.v,this.m_rn.v=1n)),this.m_bNormalized=!0,this}negateThis(){return this.isNAN()||(this.m_sign*=-1),this}negate(){return this.clone().negateThis()}invertThis(){return this.isNAN()?this:this.isPositiveInf()||this.isNegativeInf()?(this.setZero(),this):this.m_rn.v===0n?(this.setPositiveInf(),this):(this.m_rd=L(this.m_rn,this.m_rn=this.m_rd),this.m_power=-this.m_power,this)}limitPrecisionThis(e){if(e===0)return this;if(this.isZero())return this.setZero();if(!this.isFinite())return this;this.normalizeThis();let t=Number(H(this.m_rn.v));if(t>e){let n=t-e;this.m_rn.v>>=BigInt(t-e),this.m_power+=n}if(t=Number(H(this.m_rd.v)),t>e){let n=t-e;this.m_rd.v>>=BigInt(t-e),this.m_power-=n}return this}hiBitIndex(){return Math.max(Number(H(this.m_rn.v)),Number(H(this.m_rd.v)))}ldexp(e){return this.clone().ldexpThis(e)}ldexpThis(e){return e&&(this.m_bNormalized=!1,this.m_power+=e,this.normalizeThis()),this}static lerp(e,t,n){return Q.lerpLo(t,t,n)}static lerpLo(e,t,n){return t.sub(e).mulThis(n).addThis(e)}static lerpHi(e,t,n){return t.sub(e).mulThis(qt.sub(n)).addThis(e)}LZ(){return!this.isNAN()&&this.m_sign===-1}GZ(){return!this.isNAN()&&this.m_sign===1}LEZ(){return!this.isNAN()&&this.m_sign<=0}GEZ(){return!this.isNAN()&&this.m_sign>=0}toString(){return this.toDouble().toString()}sqr(){return this.clone().sqrThis()}sqrThis(){return this.mulThis(this.clone())}static sqrt(e,r){if(e.m_sign<0n&&n(`MP_value: sqrt(-1)`),e.isZero())return e.clone();let i=52,a=2220446049250313e-31;for(;i<r;)2*i<=r?(a*=a,i*=2):(a*=2220446049250313e-31,i+=52);i+=52;let o=H(e.m_rn.v),s=H(e.m_rd.v),c=e.m_power+Number(o-s),l,u=new Q;Math.abs(c)>200?(Math.abs(c)&1&&(c+=1),l=Q.constructAssign(e,53).ldexpThis(-c).value(),u.setThis(e).ldexpThis(-c),t(Number.isFinite(l))):(u.setThis(e),l=u.value(),t(Number.isFinite(l)),c=0),l=Math.sqrt(l);let d=Q.constructDouble(l),f=Q.constructDouble(a);f.mulThis(d).ldexpThis(1);let p=a*l*2,m=d.clone(),h=new Q,g;for(let e=0;e<10;++e){m.mulThis(d),h.setThis(u).subThis(m).absThis();let e=h.value();if(g=1,e<.9)for(;e>p;)e*=e,++g;else g=4;if(h.lte(f))break;for(let e=0;e<g;e++)m.setThis(d).divThis(u).invertThis().addThis(d).ldexpThis(-1).limitPrecisionThis(i),d.setThis(m)}return d.ldexpThis(c/2)}static cubicRoot(e,t){if(e.isZero())return e.clone();let n=52,r=2220446049250313e-31;for(;n<t;)2*n<=t?(r*=r,n*=2):(r*=2220446049250313e-31,n+=52);n+=52;let i=Math.abs(e.value())**(1/3),a=Q.constructDouble(i),o=a.clone();o.sqrThis().mulDoubleThis(3).mulDoubleThis(r),o.limitPrecisionThis(32),e.LZ()&&a.negateThis();for(let t=0;t<10;++t){let t=a.clone();t.sqrThis().mulThis(a);let r=t.clone();if(r.subThis(e),r.absThis().limitPrecisionThis(32),r.lte(o))break;r.setThis(e),r.ldexpThis(1),r.addThis(t);let i=t.clone();i.ldexpThis(1),i.addThis(e),r.divThis(i),a.mulThis(r),a.limitPrecisionThis(n)}return a}isInTheRangeOfDouble(){return t(0),!1}sign(){return this.m_sign}cosAndSin(e,n){t(0)}pow(e){return Fe(this,e)}static nan(){return t(0),new Q}convertToDouble(){if(this.m_bNaN)return NaN;if(this.isZero())return 0;if(this.m_rd.v===0n)return this.m_sign===1?1/0:-1/0;let e=this.m_sign===-1,t=this.m_rn.v<<(this.m_power>=0?BigInt(this.m_power):0n),n=this.m_rd.v<<(this.m_power<0?BigInt(-this.m_power):0n),r=t/n,i=Number(r);if(BigInt(i)!==r)return e?-i:i;let a=t-r*n;if(a){let e=H(n)-(1023n-0n);e>0n&&(n>>=e,a<<=52n,a>>=e);let t=Number(a);Number.isFinite(t)||(a>>=52n,t=Number(a),e=0n),e>0n&&(t/=2**52);let r=t/Number(n);i+=r}return e?-i:i}signVal(){return this.m_sign===1?1n:this.m_sign===-1?-1n:0n}opPlusMinus(e,t){let n=Math.min(this.m_power,e.m_power),r,i;this.m_power>n?(r=BigInt(this.m_power-n),i=0n):(r=0n,i=BigInt(e.m_power-n));let a=this.signVal()*this.m_rn.v*e.m_rd.v<<r,o=e.signVal()*e.m_rn.v*this.m_rd.v<<i;return this.m_rn.v=t?a+o:a-o,this.m_rd.v*=e.m_rd.v,this.m_power=n,this.m_sign=1,this.m_rn.v<0n&&(this.m_sign=-1,this.m_rn.v=-this.m_rn.v),this.m_bNormalized=!1,this.normalizeThis(),this}}const qt=Q.constructInt32(1),Jt=Q.constructInt32(0),Yt=Q.constructDouble(.5);function Xt(e,t){return u(e^t)}function Zt(e,t){let n=pt(e),r=pt(t);if(n===r){let r=53-Xt(V(e),V(t));return n-=r,n}return n>r?n:r}function Qt(e,t){for(let n=0,r=0,i=e.length;n<i;n+=2,r++)t[r].x=e[n],t[r].y=e[n+1]}function $t(e){let t=new Float64Array(e.length*2);for(let n=0,r=e.length;n<r;++n){let r=n<<1;t[r]=e[n].x,t[r+1]=e[n].y}return t}function en(e){let t=Xe($,e.length);for(let n=0,r=e.length;n<r;++n)t[n].setCoords(e[n][0],e[n][1]);return t}class ${static dimensions=2;x;y;static d=[[0,1,0,-1],[-1,0,1,0],[0,-1,0,1],[1,0,-1,0]];static construct(e,t){return new $(e,t)}constructor(e,t){e===void 0?this.x=this.y=NaN:(this.x=e,this.y=t)}clone(){return new $(this.x,this.y)}assign(e){this.setCoordsPoint2D(e)}setCoords(e,t){return this.x=e,this.y=t,this}setCoordsPoint2D(e){this.x=e.x,this.y=e.y}isEqualPoint2D(e,t){return t===void 0?this.x===e.x&&this.y===e.y:Math.abs(this.x-e.x)<=t&&Math.abs(this.y-e.y)<=t}isEqual(e,t,n){return n===void 0?this.x===e&&this.y===t:Math.abs(this.x-e)<=n&&Math.abs(this.y-t)<=n}equalsPoint2D(e,t){return this.isEqualPoint2D(e,t)}setSub(e,t){this.x=e.x-t.x,this.y=e.y-t.y}addThis(e){return this.x+=e.x,this.y+=e.y,this}setAdd(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}absoluteOther(e){}absolute(){return t(0),this}setNegate(){this.x=-this.x,this.y=-this.y}setNegateOther(e){this.x=-e.x,this.y=-e.y}interpolateThis(e,t){}interpolate(e,n,r){t(0)}scaleAddThis(e,t){this.x=this.x*e+t.x,this.y=this.y*e+t.y}setScaleAdd(e,t,n){this.x=t.x*e+n.x,this.y=t.y*e+n.y}scaleOther(e,n){t(0)}scale(e){this.x*=e,this.y*=e}compare(e){return this.y<e.y?-1:this.y>e.y?1:this.x<e.x?-1:+(this.x>e.x)}compareX(e){return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:+(this.y>e.y)}normalizeOther(e){t(0)}normalize(){let e=this.length();return e?(this.x/=e,this.y/=e):(this.x=1,this.y=0),this}getUnitVector(){return this.clone().normalize()}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}sqrLength(){return this.x*this.x+this.y*this.y}static averageFast(e,n){return t(0),{}}static average(e,t){let n=new $;if(t===0)return n.setNAN(),n;if(t===1)return n.assign(e[0]),n;let r=new i(e[0].x),a=new i(e[0].y);for(let n=1;n<t;n++)r.add(e[n].x),a.add(e[n].y),n&255||(r.normalize(),a.normalize());return n.x=r.getResult()/t,n.y=a.getResult()/t,n}static calculateLength(e,t){let n=new i(0);for(let r=1;r<t;r++)n.add($.distance(e[r],e[r-1]));return n.getResult()}offset(e,t){let n=$.distance(e,t),r=$.construct(this.x,this.y);if(n===0)return $.distance(r,e);let i=t.clone();return i.subThis(e),r.subThis(e),r.crossProduct(i)/n}side(e,t){return e.equals(t)?+!this.equals(e):$.orientationRobust(t,e,this)}static sqrDistance(e,t){let n=e.x-t.x,r=e.y-t.y;return n*n+r*r}static sqrDistanceCoords(e,t,n,r){let i=n-e,a=r-t;return i*i+a*a}static distance(e,t){return Math.sqrt($.sqrDistance(e,t))}dotProduct(e){return this.x*e.x+this.y*e.y}dotProductAbs(e){return Math.abs(this.x*e.x)+Math.abs(this.y*e.y)}crossProduct(e){return this.x*e.y-this.y*e.x}crossProductAbs(e){return t(0),0}rotateDirect(e,t){let n=this.x*e-this.y*t,r=this.x*t+this.y*e;this.x=n,this.y=r}rotateReverse(e,t){let n=this.x*e+this.y*t,r=-this.x*t+this.y*e;this.x=n,this.y=r}leftPerpendicularThis(){let e=this.x;this.x=-this.y,this.y=e}leftPerpendicularOther(e){let t=e.x;this.x=-e.y,this.y=t}rightPerpendicularThis(){let e=this.x;this.x=this.y,this.y=-e}rightPerpendicularOther(e){let t=e.x;this.x=e.y,this.y=-t}equals(e){return this.x===e.x&&this.y===e.y}notequals(e){return this.x!==e.x||this.y!==e.y}not(){return!this.x&&!this.y}gt(e){return this.y>e.y||this.y===e.y&&this.x>e.x}gte(e){return!this.lt(e)}lt(e){return this.y<e.y||this.y===e.y&&this.x<e.x}lte(e){return!this.gt(e)}subThis(e){return this.x-=e.x,this.y-=e.y,this}divThis(e){return this.x/=e,this.y/=e,this}add(e){return new $(this.x+e.x,this.y+e.y)}sub(e){return new $(this.x-e.x,this.y-e.y)}negateThis(){return this.x=-this.x,this.y=-this.y,this}negate(){return new $(-this.x,-this.y)}mul(e){return new $(this.x*e,this.y*e)}mulThis(e){return this.x*=e,this.y*=e,this}divide(e){return new $(this.x/e,this.y/e)}setNAN(){this.x=this.y=NaN}isNAN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}static getNAN(){return new $(NaN,NaN)}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)}isZero(){return this.x===0&&this.y===0}norm(e){switch(e){case 0:{let e=Math.abs(this.x),t=Math.abs(this.y),n=e-t;return n>=0?e:n<=0?t:NaN}case 1:return Math.abs(this.x)+Math.abs(this.y);case 2:return Math.sqrt(this.x*this.x+this.y*this.y);default:r(`norm`)}}getQuarter(){return $.getQuarterCoords(this.x,this.y)}static getQuarterCoords(e,t){return e>0?t>=0?1:4:t>0?2:e===0?4:3}static compareVectors(e,t){let n=e.getQuarter(),r=t.getQuarter();return r===n?$.orientationRobustImpl($.construct(0,0),t,e,!0):n<r?-1:1}static compareVectorsOrigin(e,t,n){let r=t.sub(e),i=n.sub(e),a=r.getQuarter(),o=i.getQuarter();return o===a?$.orientationRobustImpl(e,n,t,!0):a<o?-1:1}static orientationRobust(e,t,n){return $.orientationRobustImpl(e,t,n,!1)}static orientationRobustEx(e,t,n,r){if(e.equals(t)||n.equals(r))return 0;let i=t.x-e.x,a=t.y-e.y,o=r.x-n.x,s=r.y-n.y;{let e=$.getQuarterCoords(i,a)-1,t=$.getQuarterCoords(o,s)-1,n=$.d[e][t];if(n!==0)return n}let c=i*s,l=a*o,u=4*X()*(Math.abs(c)+Math.abs(l)),d=c-l;return Math.abs(d)>=u?d<0?-1:+(d>0):$.orientationRobustExMp(e,t,n,r)}static orientationRobustExMp(e,t,n,r){let i=Q.constructDouble(t.x),a=Q.constructDouble(r.x);i.subThis(Q.constructDouble(e.x)),a.subThis(Q.constructDouble(n.x));let o=Q.constructDouble(t.y),s=Q.constructDouble(r.y);return o.subThis(Q.constructDouble(e.y)),s.subThis(Q.constructDouble(n.y)),i.mulThis(s),o.mulThis(a),i.subThis(o),i.LZ()?-1:+!!i.GZ()}static orientationNonRobust(e,t,n){let r=t.sub(e).crossProduct(n.sub(e));return r<0?-1:+(r>0)}static orientationRobustImpl(e,t,n,r){if(t.isEqualPoint2D(e)||n.isEqualPoint2D(e)||t.isEqualPoint2D(n))return 0;let i=t.x-e.x,a=t.y-e.y,o=n.x-e.x,s=n.y-e.y;if(!r){let e=$.getQuarterCoords(i,a)-1,t=$.getQuarterCoords(o,s)-1,n=$.d[e][t];if(n!==0)return n}let c=Math.abs(i),l=Math.abs(a),u=Math.abs(o),d=Math.abs(s),f=Math.abs(t.x),p=Math.abs(t.y),h=Math.abs(n.x),v=Math.abs(n.y),y=(c+l+u+d)*(f+p+h+v)*8*_(),b=i*s-a*o;if(Math.abs(b)>y)return b<0?-1:1;if(g(t.x,e.x)&&g(n.y,e.y)&&g(t.y,e.y)&&g(n.x,e.x)&&m(i,s)&&m(a,o)){let e=i*s,t=a*o;if(g(e,t)){let n=e-t;return n<0?-1:+(n>0)}}return $.orientationRobustMp(e,t,n)}static orientationRobustMp(e,t,n){let r=Q.constructDouble(t.x),i=Q.constructDouble(n.x);{let t=Q.constructDouble(e.x);r.subThis(t),i.subThis(t)}let a=Q.constructDouble(n.y),o=Q.constructDouble(t.y);{let t=Q.constructDouble(e.y);a.subThis(t),o.subThis(t)}return r.mulThis(a),o.mulThis(i),r.subThis(o),r.LZ()?-1:+!!r.GZ()}static inCircleRobust(e,t,n,r){let i=new p,a=new p;i.set(e.x),i.subThis(r.x),a.set(e.y),a.subThis(r.y);let o=new p,s=new p;o.set(t.x),o.subThis(r.x),s.set(t.y),s.subThis(r.y);let c=new p,l=new p;c.set(n.x),c.subThis(r.x),l.set(n.y),l.subThis(r.y);let u=i.mulE(s).subE(a.mulE(o)),d=o.mulE(l).subE(s.mulE(c)),f=i.mulE(l).subE(a.mulE(c)),m=i.mulE(i).addE(a.mulE(a)),h=o.mulE(o).addE(s.mulE(s)),g=c.mulE(c).addE(l.mulE(l)),_=m.mulE(d).subE(h.mulE(f)).addE(g.mulE(u));if(!_.isFuzzyZero()){let e=_.value();return e<0?-1:+(e>0)}return $.inCircleRobustMp(e,t,n,r)}static inCircleRobustMp(e,t,n,r){do{if(!(g(e.x,r.x)&&g(e.y,r.y))||!(g(t.x,r.x)&&g(t.y,r.y))||!(g(n.x,r.x)&&g(n.y,r.y)))break;let i=e.x-r.x,a=e.y-r.y,o=t.x-r.x,s=t.y-r.y,c=n.x-r.x,l=n.y-r.y;if(!(m(i,s)&&m(a,o))||!(m(o,l)&&m(s,c))||!(m(i,l)&&m(a,c))||!(m(i,i)&&m(a,a))||!(m(o,o)&&m(s,s))||!(m(c,c)&&m(l,l)))break;let u=i*s,d=a*o,f=o*l,p=s*c,_=i*l,v=a*c,y=i*i,b=a*a,x=o*o,S=s*s,ee=c*c,te=l*l;if(!g(u,d)||!g(f,p)||!g(_,v)||!h(y,b)||!h(x,S)||!h(ee,te))break;let ne=u-d,C=f-p,re=_-v,w=y+b,T=x+S,ie=ee+te;if(!m(w,C)||!m(T,re)||!m(ie,ne))break;let E=w*C,D=T*re,O=ie*ne;if(!g(E,D))break;let ae=E-D;if(!h(ae,O))break;let oe=ae+O;return oe<0?-1:+(oe>0)}while(0);let i=Q.constructDouble(r.x),a=Q.constructDouble(r.y),o=Q.constructDouble(e.x),s=Q.constructDouble(e.y);o.subThis(i),s.subThis(a);let c=Q.constructDouble(t.x),l=Q.constructDouble(t.y);c.subThis(i),l.subThis(a);let u=Q.constructDouble(n.x),d=Q.constructDouble(n.y);u.subThis(i),d.subThis(a);let f=o.mul(l).sub(s.mul(c)),p=c.mul(d).sub(l.mul(u)),_=o.mul(d).sub(s.mul(u)),v=o.mul(o).add(s.mul(s)),y=c.mul(c).add(l.mul(l)),b=u.mul(u).add(d.mul(d)),x=v.mul(p).sub(y.mul(_)).add(b.mul(f));return x.LZ()?-1:+!!x.GZ()}static inCircleRobustMp3Point(e,t,n){let r=Q.constructDouble(e.x),i=Q.constructDouble(e.y),a=Q.constructDouble(t.x),o=Q.constructDouble(t.y),s=Q.constructDouble(n.x),c=Q.constructDouble(n.y),l=s.mul(s).add(c.mul(c)).sub(s.mul(r).add(c.mul(i)).add(s.mul(a)).add(c.mul(o))).add(r.mul(a).add(i.mul(o)));return l.LZ()?-1:+!!l.GZ()}static inCircleRobust3Point(e,t,n){let r=new p(e.x),i=new p(e.y),a=new p(t.x),o=new p(t.y),s=new p(n.x),c=new p(n.y),l=s.mulE(s).addE(c.mulE(c)).subE(s.mulE(r).addE(c.mulE(i)).addE(s.mulE(a)).addE(c.mulE(o))).addE(r.mulE(a).addE(i.mulE(o)));if(!l.isFuzzyZero()){let e=l.value();return e<0?-1:+(e>0)}return $.inCircleRobustMp3Point(e,t,n)}static calculateCircleCenterFromThreePoints(e,t,n){if(e.equals(n)||e.equals(t)||n.equals(t))return $.getNAN();let r=tn(e,t,n);return r.isNAN()?nn(e,t,n):r}static calculateAngle(e,t){return Math.atan2(e.crossProduct(t),e.dotProduct(t))}static isBisectorRobust(e,n,r){return t(0),!1}static size(){return 2}get 0(){return this.x}get 1(){return this.y}set 0(e){this.x=e}set 1(e){this.y=e}static c_compare_zorder_xx=[2,0];static c_compare_zorder_yy=[1,0];static compareZorder(e,t){let n=$.c_compare_zorder_xx[+(e.x<0)]|$.c_compare_zorder_yy[+(e.y<0)],r=$.c_compare_zorder_xx[+(t.x<0)]|$.c_compare_zorder_yy[+(t.y<0)];if(n===r){let n=0,r=0;for(let i=0;i<2;++i){let a=Zt(e[i],t[i]);a>n&&(n=a,r=i)}return e[r]<t[r]}return n<r}static lerp(e,t,n){let r=new $;return A(e,t,n,r),r}static getClosestCoordinate(e,t,n,r=!1){let i=$.getNAN();i.setSub(t,e);let a=i.sqrLength();if(a===0)return .5;if(t.isEqualPoint2D(n))return 1;let o=$.getNAN();o.setSub(n,e);let s=o.dotProduct(i)/a;return r||(s<0?s=0:s>1&&(s=1)),s}static intersectLinesAtOnePoint(e,t,n,r){if(e.equals(t)||n.equals(r))return $.getNAN();let i=t.x-e.x,a=n.x-r.x,o=t.y-e.y,s=n.y-r.y,c=i*s-a*o;if(!c)return $.getNAN();let l=c;if(l===0)return $.getNAN();let u=(n.x-e.x)*s-(n.y-e.y)*a;u/=l;let d=new $;return A(e,t,u,d),d.isFinite()?d:$.getNAN()}toString(){return`[${this.x},${this.y}]`}}function tn(e,t,n){let r=new p(t.x);r.subThis(e.x);let i=new p(t.y);i.subThis(e.y);let a=new p(n.x);a.subThis(e.x);let o=new p(n.y);o.subThis(e.y);let s=r.clone();s.mulThisE(o);let c=i.clone();if(c.mulThisE(a),s.subThisE(c),s.value()===0)return $.getNAN();s.mulThis(2);let l=r.clone();l.mulThisE(r);let u=i.clone();u.mulThisE(i);let d=l.clone();d.addThisE(u);let f=a.clone();f.mulThisE(a);let m=o.clone();m.mulThisE(o);let h=f.clone();h.addThisE(m);let g=i.clone();g.mulThisE(h),c=o.clone(),c.mulThisE(d),g.subThisE(c),g.divThisE(s);let _=r.clone();_.mulThisE(h),c=a.clone(),c.mulThisE(d),_.subThisE(c),_.divThisE(s);let v=$.construct(e.x-g.value(),e.y+_.value()),y=e.sub(v).length(),b=t.sub(v).length(),x=n.sub(v).length(),S=1e-15*(y+Math.abs(e.x)+Math.abs(t.x)+Math.abs(n.x)+Math.abs(e.y)+Math.abs(t.y)+Math.abs(n.y));return Math.abs(y-b)<=S&&Math.abs(y-x)<=S&&g.eps()<S&&_.eps()<S?v:$.getNAN()}function nn(e,t,n){let r=Q.constructDouble(t.x);r.subDoubleThis(e.x);let i=Q.constructDouble(t.y);i.subDoubleThis(e.y);let a=Q.constructDouble(n.x);a.subDoubleThis(e.x);let o=Q.constructDouble(n.y);o.subDoubleThis(e.y);let s=r.clone();s.mulThis(o);let c=i.clone();if(c.mulThis(a),s.subThis(c),s.isZero())return $.getNAN();s.mulDoubleThis(2);let l=r.clone();l.mulThis(r);let u=i.clone();u.mulThis(i);let d=l.clone();d.addThis(u);let f=a.clone();f.mulThis(a);let p=o.clone();p.mulThis(o);let m=f.clone();m.addThis(p);let h=i.clone();h.mulThis(m),c=o.clone(),c.mulThis(d),h.subThis(c),h.divThis(s);let g=r.clone();return g.mulThis(m),c=a.clone(),c.mulThis(d),g.subThis(c),g.divThis(s),$.construct(e.x-h.value(),e.y+g.value())}export{w as $,re as A,J as B,kt as C,$e as D,d as E,Ze as F,U as G,ie as H,X as I,A as J,i as K,Tt as L,Q as M,Ke as N,Et as O,$ as P,Nt as Q,en as R,nt as S,y as T,$t as U,Qt as V,Mt as W,Ue as X,vt as Y,p as Z,zt as _,I as a,Ot as a0,dt as a1,Ft as a2,Dt as a3,Re as a4,He as a5,It as a6,ht as a7,mt as a8,b as a9,ee as aA,Te as aB,rt as aC,Jt as aD,Ie as aE,Gt as aF,We as aG,ge as aH,ue as aI,F as aJ,de as aK,yt as aL,ze as aM,Qe as aa,Lt as ab,Le as ac,f as ad,qt as ae,tt as af,se as ag,ce as ah,Ve as ai,O as aj,Vt as ak,Wt as al,ot as am,Z as an,ae as ao,oe as ap,x as aq,Yt as ar,E as as,D as at,Bt as au,Ht as av,Ee as aw,De as ax,Ye as ay,S as az,L as b,Rt as c,R as d,fe as e,T as f,Y as g,qe as h,W as i,_t as j,ut as k,z as l,Xe as m,we as n,et as o,at as p,it as q,k as r,j as s,gt as t,pe as u,Ge as v,Be as w,Je as x,le as y,ne as z};
|
|
2
|
+
import{a as e,g as t,r as n,t as r}from"./Geometry.js";class i{constructor(e){this.sum=e,this.compensation=0}assign(e){return this.compensation=e.compensation,this.sum=e.sum,this}reset(){this.sum=this.compensation=0}resetToStart(e){this.sum=e,this.compensation=0}normalize(){let e=[NaN];this.sum=P(this.sum,this.compensation,e),this.compensation=e[0]}add(e){let t=this.sum+e,n;if(Math.abs(this.sum)>=Math.abs(e)){let r=this.sum-t+e;n=this.compensation+r}else{let r=e-t+this.sum;n=this.compensation+r}this.sum=t,this.compensation=n}sub(e){this.add(-e)}addProduct(e,t){let n=[0],r=N(e,t,n);this.add(r),this.add(n[0])}mul(e){let t=new i(0);t.addProduct(this.sum,e),t.addProduct(this.compensation,e),this.assign(t)}getResult(){return this.sum+this.compensation}pe(e){return this.add(e),this}me(e){return this.add(-e),this}sum;compensation}const a=[5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1],o=[-1,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3];function s(e){let t=0;return e&65535n||(t+=16,e>>=16n),e&255n||(t+=8,e>>=8n),e&15n||(t+=4,e>>=4n),t+a[Number(BigInt.asUintN(4,e))]}function c(e){let t=0;return e&4294901760n&&(t+=16,e>>=16n),e&65280n&&(t+=8,e>>=8n),e&240n&&(t+=4,e>>=4n),t+o[Number(BigInt.asUintN(4,e))]+1}function l(e){let t=0;return e&4294967295n||(t=32,e>>=32n),t+s(BigInt.asUintN(32,e))}function u(e){let t=0;return e&18446744069414584320n&&(t=32,e>>=32n),t+c(e)}class d{m_EnvelopeType=1;vmin;vmax;constructor(e,t){e===void 0?this.setEmpty():e instanceof d?(this.vmin=e.vmin,this.vmax=e.vmax):(this.vmin=e,this.vmax=t,this.normalize())}static construct(e,t){return new d(e,t)}static constructEmpty(){return new d}setCoords(e,t){this.vmin=e,this.vmax=t,this.normalize()}setCoordsFromEnvelope(e){this.vmin=e.vmin,this.vmax=e.vmax}setEmpty(){this.vmin=NaN,this.vmax=NaN}getCenter(){return .5*(this.vmin+this.vmax)}equalsRange(e,t){return U(this.vmin,e)&&U(this.vmax,t)}equals(e,t){return this.isEmpty()&&e.isEmpty()?!0:t===void 0?this.vmin===e.vmin&&this.vmax===e.vmax:Math.abs(this.vmin-e.vmin)<=t&&Math.abs(this.vmax-e.vmax)<=t}width(){return this.vmax-this.vmin}isEmpty(){return Number.isNaN(this.vmin)||Number.isNaN(this.vmax)}isZero(){return this.vmin===this.vmax}setInfinite(){this.vmin=-1/0,this.vmax=1/0}move(e){this.isEmpty()||(this.vmin+=e,this.vmax+=e)}contains(e){return e.vmin>=this.vmin&&e.vmax<=this.vmax}containsCoordinate(e){return e>=this.vmin&&e<=this.vmax}containsRightExclusive(e){return e>=this.vmin&&e<this.vmax}containsExclusiveCoordinate(e){return e>this.vmin&&e<this.vmax}containsExclusive(e){return e.vmin>this.vmin&&e.vmax<this.vmax}isIntersecting(e){return this.vmin<=e.vmin?this.vmax>=e.vmin:e.vmax>=this.vmin}mergeCoordinate(e){this.isEmpty()?(this.vmin=e,this.vmax=e):this.mergeNeCoordinate(e)}merge(e){if(e.isEmpty())return;let t=e.vmin,n=e.vmax;this.mergeCoordinate(t),this.mergeCoordinate(n)}mergeNe(e){let t=e.vmin,n=e.vmax;this.mergeNeCoordinate(t),this.mergeNeCoordinate(n)}mergeNeCoordinate(e){e<this.vmin?this.vmin=e:e>this.vmax&&(this.vmax=e)}intersect(e){this.isEmpty()||e.isEmpty()?this.setEmpty():(this.vmin<e.vmin&&(this.vmin=e.vmin),this.vmax>e.vmax&&(this.vmax=e.vmax),this.vmin>this.vmax&&this.setEmpty())}inflate(e){this.isEmpty()||(this.vmin-=e,this.vmax+=e,this.vmax<this.vmin&&this.setEmpty())}normalize(){this.vmin<=this.vmax||(this.vmin>this.vmax?this.vmax=L(this.vmin,this.vmin=this.vmax):this.setEmpty())}isValid(){return this.isEmpty()||this.vmin<=this.vmax}snapClip(e){return Rt(e,this.vmin,this.vmax)}calculateToleranceFromEnvelope(){return this.isEmpty()?Y():(Math.abs(this.vmin)+Math.abs(this.vmax)+1)*Y()}static unit(){return f}normalizeNoNAN(){this.vmin>this.vmax&&(this.vmax=L(this.vmin,this.vmin=this.vmax))}setCoordsNoNAN(e,t){this.vmin=e,this.vmax=t,this.normalizeNoNAN()}clone(){return new d(this.vmin,this.vmax)}}const f=new d(0,1);class p{m_value;m_eps;static getNAN(){return new p(NaN)}constructor(e,t){this.m_value=e??0,this.m_eps=t??0}[Symbol.toPrimitive](e){return this}clone(){return new p(this.m_value,this.m_eps)}assign(e){return this.m_value=e.m_value,this.m_eps=e.m_eps,this}scaleError(e){this.m_eps*=e}setError(e){this.m_eps=e}set(e,t){return this.m_value=e,this.m_eps=t??0,this}setWithEps(e,t){return t===void 0&&(t=1),this.m_value=e,this.m_eps=p.ulp(e)*t,this}setE(e){return this.m_value=e.m_value,this.m_eps=e.m_eps,this}precise(){return new p(this.m_value)}value(){return this.m_value}toDouble(){return this.m_value}eps(){return this.m_eps}resetError(){return this.m_eps=0,this}absThis(){return this.m_value=Math.abs(this.m_value),this}add(e){return this.clone().addThis(e)}addE(e){return this.clone().addThisE(e)}addThisE(e){let t=this.m_value+e.m_value,n=this.m_eps+e.m_eps+p.ulp(t);return this.m_value=t,this.m_eps=n,this}addThis(e){let t=this.m_value+e,n=this.m_eps+p.ulp(t);return this.m_value=t,this.m_eps=n,this}subE(e){return this.clone().subThisE(e)}sub(e){return this.clone().subThis(e)}subThisE(e){let t=this.m_value-e.m_value,n=this.m_eps+e.m_eps+p.ulp(t);return this.m_value=t,this.m_eps=n,this}subThis(e){let t=this.m_value-e,n=this.m_eps+p.ulp(t);return this.m_value=t,this.m_eps=n,this}setAddE(e,t){return this.m_value=e.m_value+t.m_value,this.m_eps=e.m_eps+t.m_eps+p.ulp(this.m_value),this}setAdd(e,t){return this.m_value=e+t,this.m_eps=p.ulp(this.m_value),this}setAddEN(e,t){return this.m_value=e.m_value+t,this.m_eps=e.m_eps+p.ulp(this.m_value),this}setAddNE(e,t){return this.m_value=e+t.m_value,this.m_eps=t.m_eps+p.ulp(this.m_value),this}setSubE(e,t){return this.m_value=e.m_value-t.m_value,this.m_eps=e.m_eps+t.m_eps+p.ulp(this.m_value),this}setSub(e,t){return this.m_value=e-t,this.m_eps=p.ulp(this.m_value),this}setSubEN(e,t){return this.m_value=e.m_value-t,this.m_eps=e.m_eps+p.ulp(this.m_value),this}setSubNE(e,t){return this.m_value=e-t.m_value,this.m_eps=t.m_eps+p.ulp(this.m_value),this}mulThisE(e){let t=this.m_value*e.m_value;return this.m_eps=this.m_eps*Math.abs(e.m_value)+e.m_eps*Math.abs(this.m_value)+this.m_eps*e.m_eps+p.ulp(t),this.m_value=t,this}mulThis(e){let t=this.m_value*e;return this.m_eps=this.m_eps*Math.abs(e)+p.ulp(t),this.m_value=t,this}mul(e){return this.clone().mulThis(e)}mulE(e){return this.clone().mulThisE(e)}setMulE(e,t){let n=e.m_value*t.m_value;return this.m_eps=e.m_eps*Math.abs(t.m_value)+t.m_eps*Math.abs(e.m_value)+e.m_eps*t.m_eps+p.ulp(n),this.m_value=n,this}setMul(e,t){return this.m_value=e*t,this.m_eps=p.ulp(this.m_value),this}setMulEN(e,t){return this.setE(e),this.mulThis(t)}setMulNE(e,t){return this.setE(t),this.mulThis(e)}mulThisByPower2(e){return this.m_value*=e,this.m_eps*=Math.abs(e),this}static st_mulByPower2(e,t){return new p(e.m_value,e.m_eps).mulThisByPower2(t)}divE(e){return this.clone().divThisE(e)}divThisE(e){let t=Math.abs(e.m_value),n=this.m_value/e.m_value,r=(this.m_eps+Math.abs(n)*e.m_eps)/t;if(e.m_eps>.01*t){let n=e.m_eps/t;r*=1+(1+n)*n}return this.m_value=n,this.m_eps=r+p.ulp(n),this}divThis(e){let t=Math.abs(e);return this.m_value/=e,this.m_eps=this.m_eps/t+p.ulp(this.m_value),this}setDivE(e,t){return this.setE(e),this.divThisE(t)}setDiv(e,t){return this.m_value=e/t,this.m_eps=p.ulp(this.m_value),this}setDivEN(e,t){return this.setE(e),this.divThis(t)}setDivNE(e,t){return this.set(e),this.divThisE(t)}divThisByPower2(e){return this.m_value/=e,this.m_eps/=Math.abs(e),this}invThis(){return this.setE(b.clone().divThisE(this)),this}sqrt(){return this.clone().sqrtThis()}sqrtThis(){let e,t;return this.m_value>=0?(e=Math.sqrt(this.m_value),t=this.m_value>10*this.m_eps?.5*this.m_eps/e:this.m_value>this.m_eps?e-Math.sqrt(this.m_value-this.m_eps):Math.max(e,Math.sqrt(this.m_value+this.m_eps)-e),t+=p.ulp(e)):this.m_value<-this.m_eps?(e=NaN,t=NaN):(e=0,t=Math.sqrt(this.m_eps)),this.m_value=e,this.m_eps=t,this}sqr(){return this.clone().sqrThis()}sqrThis(){let e=this.m_value*this.m_value;return this.m_eps=2*this.m_eps*Math.abs(this.m_value)+this.m_eps*this.m_eps+p.ulp(e),this.m_value=e,this}setSin(e){let t=Math.sin(e.m_value),n=Math.cos(e.m_value);this.m_value=t;let r=Math.abs(t),i=Math.abs(e.value());return this.m_eps=(Math.abs(n)+r*.5*e.m_eps)*e.m_eps+p.ulp(r+i),this}static ulp(e){let t=B(e),n=((t&9218868437227405312n)>>52n)-1075n;return n>-1023n?(t=n+1023n<<52n,ft(t)):e===0?0:Number.MIN_VALUE}setCos(e){let t=Math.sin(e.m_value),n=Math.cos(e.m_value);this.m_value=n;let r=Math.abs(n),i=Math.abs(e.value());return this.m_eps=(Math.abs(t)+r*.5*e.m_eps)*e.m_eps+p.ulp(r+i),this}static st_cosAndSin(e,t,n){let r=Math.sin(e.m_value),i=Math.cos(e.m_value);n.m_value=r,t.m_value=i;let a=Math.abs(r),o=Math.abs(i),s=Math.abs(e.value());n.m_eps=(Math.abs(i)+a*.5*e.m_eps)*e.m_eps+p.ulp(a+s),t.m_eps=(Math.abs(r)+o*.5*e.m_eps)*e.m_eps+p.ulp(o+s)}negate(){return this.clone().negateThis()}negateThis(){return this.m_value=-this.m_value,this}setAbs(){return this.m_value=Math.abs(this.m_value),this}isInInterval(e){return d.construct(this.m_value-this.m_eps,this.m_value+this.m_eps).isIntersecting(e)}isInIntervalExclusive(e){let t=e.vmin+this.m_eps,n=e.vmax-this.m_eps;return t<this.m_value&&n>this.m_value}eq(e){return Math.abs(this.m_value-e.m_value)<=this.m_eps+e.m_eps}ne(e){return!this.eq(e)}gt(e){return this.m_value-e.m_value>this.m_eps+e.m_eps}lt(e){return e.m_value-this.m_value>this.m_eps+e.m_eps}ge(e){return!this.lt(e)}le(e){return!this.gt(e)}tolEQ(e,t){return Math.abs(this.m_value-e.m_value)<=t||this.eq(e)}tolNE(e,t){return!this.tolEQ(e,t)}tolGT(e,t){return this.m_value-e.m_value>t&&this.gt(e)}tolLT(e,t){return e.m_value-this.m_value>t&&this.lt(e)}tolGE(e,t){return!this.tolLT(e,t)}tolLE(e,t){return!this.tolGT(e,t)}isZero(){return Math.abs(this.m_value)<=this.m_eps}isFuzzyZero(){return this.isZero()&&this.m_eps!==0}tolIsZero(e){return Math.abs(this.m_value)<=Math.max(this.m_eps,e)}setPi(){this.setE(v)}setEuler(){this.set(2.718281828459045,_())}static dimensions=1;static size(){return 1}}function m(e,t){let n=V(e),r=V(t),i=53-l(n),a=53-l(r);return(i>=0?i:0)+(a>=0?a:0)<=52}function h(e,t){let n=e,r=t,i=n+r;return i-n===r&&i-r===n}function g(e,t){let n=e,r=t,i=n-r;return n-i===r&&r+i===n}function _(){return X()}const v=new p(Math.PI,_()*.5),y=new p(0,0),b=new p(1,0),x=new p(4,0);function S(e,t,n){return e.addE(t.subE(e).mulE(n))}function ee(e,t,n){return t.subE(t.subE(e).mulE(b.subE(n)))}function te(e){return Math.atanh(e)}function ne(e){let t;if(e===0)t=1;else if(Math.abs(e)>.01)t=te(e)/e;else{let n;t=0;let r=e*e,i=Math.trunc(-36.841361487904734/Math.log(r)+2.5);for(let e=2*i-1;e>1;e-=2)n=1/e,t=(t+n)*r;t+=1}return t}function C(e){let t=Math.PI*Math.PI/6,n;if(e===1)n=t;else if(e>1)n=t;else if(e===0)n=e;else if(e<0){e=Math.abs(e);let t=1+e,r=Math.log(t);n=r*r/-2-C(e/t)}else if(e>.5){let r=1-e,i=Math.log(e)*Math.log(r);n=t-C(r)-i}else{n=0;let t=1+Math.trunc(-16*Math.log(10)/Math.log(e)+1.5),r=t;for(let i=t;i>0;i--,--r)n*=e,n+=1/(r*r);n*=e}return n}function re(e,t){let n=t*e;if(Math.abs(t)<.1){let t=0;for(let e=60;e>=1;e--)t*=n,t+=1/e/e;return t*=e}return C(n)/t}function w(e,t){return e<t?z(e,t):z(t,e)}function T(e,t){let n=Math.abs(e);return t>=0?n:-n}function ie(e){return Math.round(e)}function E(e,t,n,r,i){i[0]=t[0]+(n[0]-t[0])*r,i[1]=t[1]+(n[1]-t[1])*r,e===3&&(i[2]=t[2]+(n[2]-t[2])*r)}function D(e,t,n,r,i){i[0]=n[0]-(n[0]-t[0])*(1-r),i[1]=n[1]-(n[1]-t[1])*(1-r),e===3&&(i[2]=n[2]-(n[2]-t[2])*(1-r))}function O(e,t,n,r,i){r<=.5?E(e,t,n,r,i):D(e,t,n,r,i)}function ae(e,t,n,r,i){i[0]=t[0].addE(n[0].subE(t[0]).mulE(r)),i[1]=t[1].addE(n[1].subE(t[1]).mulE(r))}function oe(e,t,n,r,i){i[0]=n[0].subE(n[0].subE(t[0]).mulE(b.subE(r))),i[1]=n[1].subE(n[1].subE(t[1]).mulE(b.subE(r)))}function k(e,t,n){return n<=.5?e+(t-e)*n:t-(t-e)*(1-n)}function se(e,t,n){return e+(t-e)*n}function ce(e,t,n){return t-(t-e)*(1-n)}function A(e,t,n,r){n<=.5?(r.x=e.x+(t.x-e.x)*n,r.y=e.y+(t.y-e.y)*n):(r.x=t.x-(t.x-e.x)*(1-n),r.y=t.y-(t.y-e.y)*(1-n))}function le(e,t,n,r){n<=.5?(r.x=e.x+(t.x-e.x)*n,r.y=e.y+(t.y-e.y)*n,r.z=e.z+(t.z-e.z)*n):(r.x=t.x-(t.x-e.x)*(1-n),r.y=t.y-(t.y-e.y)*(1-n),r.z=t.z-(t.z-e.z)*(1-n))}function j(e){return e*e}function ue(e){return e*e*e}function de(e){return 1/Math.sqrt(e)}function fe(e){return e<0?-1:+(e>0)}function pe(e,t,n,r){let i=[0],a=N(e,n,i),o=[0],s=N(t,r,o),c=[0];return P(a,s,c)+(i[0]+o[0]+c[0])}const me=[0],he=[0];function ge(e,t,n){return Ce(N(e,t,me),n,me[0],he)}const M=[0],_e=[0],ve=[0],ye=[0];function N(e,t,n){let r=e*t;return be(e,M,_e),be(t,ve,ye),n[0]=_e[0]*ye[0]-(r-M[0]*ve[0]-_e[0]*ve[0]-M[0]*ye[0]),r}function be(e,t,n){let r=0x8000001*e;t[0]=r-(r-e),n[0]=e-t[0]}const xe=[0],Se=[0];function Ce(e,t,n,r){return P(P(P(e,t,xe),n,Se),xe[0]+Se[0],r)}function P(e,t,n){let r=e+t;return n[0]=Math.abs(e)>Math.abs(t)?e-r+t:t-r+e,r}function we(e,t){return e%t}function Te(e){let t=1-e;if(t===0)return 1;let n;if(t<=.01){let e=t,r=Math.log(e);n=1+e*(.4431471805599453-.25*r+e*(.05680519270997949-.09375*r+e*(.02183137044373718-.05859375*r+e*(.011544521417308362-.042724609375*r+e*(.00714200031339596-.0336456298828125*r+e*(.004854743337164948-.027757644653320312*r+e*(.003514687963781376-.023627042770385742*r)))))))}else if(e<.016){let t=e;return Z()*(1-t*(.25+t*(.046875+t*(.01953125+t*(.01068115234375+t*(.0067291259765625+t*(.004626274108886719+t*(.0033752918243408203+t*.0025710230693221092))))))))}else n=Oe(0,t,1)-e*ke(0,t,1)/3;return Rt(n,1,Z())}function Ee(e,n,r=NaN){if(t(n>=0&&n<=1),n===0)return e;let i=1,a=e;if(a<0&&(a=-a,i=-1),n===1){let e=Math.round(a/Vt()),t=a-e*Vt(),n=2*e+Math.sin(t);return i*n}let o=Z(),s=Math.floor(a/o);s&1?a=(s+1)*o-a:a-=s*o;let c=Math.sin(a),l=Number.isNaN(r)?Te(n):r,u;if(c===1)u=l+Math.sqrt(1-n)*(a-o);else{let e=a*a;if(.01424*e**4<=2*X())u=a*(1+e*n*(-1/6+e*((4-3*n)/120-(16+(-60+45*n)*n)/5040*e)));else if(n<=.01){let e=Math.sin(2*a),t=Math.sin(4*a),r=Math.sin(6*a),i=Math.sin(8*a),o=Math.sin(10*a),s=Math.sin(12*a),c=n;u=a+c*((-a*2+e)/8+c*((-3*a+2*e-t*.25)/64+c*((-20*a+15*e-3*t+r/3)/1024+c*(5*(-140*a+112*e-28*t+16/3*r-.5*i)/65536+c*7*((-63*a+52.5*e-15*t+3.75*r-.625*i+.05*o)/65536+c*(-693*a+594*e-185.625*t+1.375*r-12.375*i+1.8*o-.125*s)/1048576)))))}else{let e=c*c,t=Math.cos(a),r=t*t,i=Ae(c,t,n);u=c*(Oe(r,i,1)-n*e*ke(r,i,1)/3)}}return s&1?u=l*(s+1)-u:u+=l*s,i*u}function De(e,t,n=NaN){if(e===0)return 0;let r=1,i=e;e<0&&(i=-i,r=-1);let a=Number.isNaN(n)?Te(t):n,o=Math.floor(i/a);o&1?i=(o+1)*a-i:i-=o*a;let s=i<=0?0:i>=a?Z():je(i,t,a);return o&1?s=Z()*(o+1)-s:s+=Z()*o,r*s}function Oe(e,n,r){t((e===0?0:1)+(n===0?0:1)+1>1);let i=e,a=n,o=r;for(;;){let e=Math.sqrt(i*a),t=Math.sqrt(a*o),n=Math.sqrt(o*i),r=e+t+n;i=.25*(i+r),a=.25*(a+r),o=.25*(o+r);let s=(i+a+o)/3,c=(s-i)/s,l=(s-a)/s,u=(s-o)/s;if(Math.abs(c)<=.0024&&Math.abs(l)<=.0024&&Math.abs(u)<=.0024){let e=c*l-u*u,t=c*l*u;return(1+(-.1+1/24*e-3/44*t-5*e*e/208+e*t/16)*e+(1/14+3*t/104)*t)/Math.sqrt(s)}}}function ke(e,n,r){t(e!==0||n!==0);let a=e,o=n,s=r,c=new i(0),l=1;for(;;){let e=(a+o+3*s)*.2,t=(e-a)/e,n=(e-o)/e,r=(e-s)/e;if(Math.abs(t)<=.0015&&Math.abs(n)<=.0015&&Math.abs(r)<=.0015){let i=t*n,a=r*r,o=i-a,s=i-6*a,u=s+o+o,d=3/26,f=s*(-.21428571428571427+.10227272727272728*s-1.5*d*r*u),p=r*(.16666666666666666*u+r*(-.4090909090909091*o+r*d*i));return 3*c.getResult()+l*(1+f+p)/(e*Math.sqrt(e))}let i=Math.sqrt(a),u=Math.sqrt(o),d=Math.sqrt(s),f=i*(u+d)+u*d;c.add(l/(d*(s+f))),l*=.25,a=(a+f)*.25,o=(o+f)*.25,s=(s+f)*.25}}function Ae(e,t,n){return e<.999?1-n*j(e):1-n+n*j(t)}function je(e,t,n){if(t===0)return e;if(t===1)return Math.asin(e);let r=0,i=!0;if(e<.2){let n=e*e,a=e*(1+n*t*(1/6+n*((13*t-4)/120+(16-284*t+493*t*t)/5040*n))),o=Math.abs(t*(-64+4944*t-31224*t*t+37369*t*t*t)/362880*e**9);if(o<Math.abs(a)*X())return a;r=a,i=o>a*.1}if(i){let i=1-t,a=1-e/n,o=Math.sqrt(a*a+i*i),s=Math.atan2(i,e+X());r=Z()+Math.sqrt(o)*(s-Z())}let a=0;for(let i=0;i<7;i++){a=Ee(r,t,n);let o=Ae(Math.sin(r),Math.cos(r),t);if(r-=(a-e)/Math.sqrt(o),i>0&&Math.abs(a-e)<=4*X()*e)break}return r}class Me{values;constructor(e){for(this.values=[[1]];this.values.length<e+1;){let e=this.values.at(-1),t=R(e.length+1,1);for(let n=1;n<e.length;++n)t[n]=e[n-1]+e[n];this.values.push(t)}}get(e,t){return this.values[e][t]}}function Ne(e,n){return t(0),0}const Pe=new Me(32);function F(e,t){if(e<Pe.values.length)return Pe.get(e,t);let r=Math.exp(Ne());return r+.01>W()&&n(`The result value of n choose k is out of range`),r+.01}function Fe(e,t){if(e.isZero())return e.clone();let n=e.clone().divThis(e);if(t<0)return n.divThis(Fe(e,-t));for(e=e.clone(),t=Math.trunc(t);t&1&&n.mulThis(e),t>>=1,t;)e.mulThis(e);return n}function Ie(e,t){if(t===0)return[];let n=e[0].clone().mulDoubleThis(0),r=[];r.length=t;let i=t-1;for(let t=0;t<=i;++t){r[t]=n.clone();for(let n=0;n<=t;++n)r[t].addThis(e[n].clone().mulDoubleThis(F(t,n)/F(i,n)))}return r}function Le(t,n,r,i,a){if(t===0)return i===0?n:i===1?r:a;if(t===1)return i===0?n:i===1?r:k(n,r,i);t===2&&e(`angular interpolation`),e(``)}function Re(t,n,r,i,a,o,s,c){if(t===0)for(let e=0;e<o;++e)i[e+a]=s===0?n[e]:s===1?r[e]:c;else if(t===1){if(s===0)I(i,n,a,0,o);else if(s===1)I(i,r,a,0,o);else for(let e=0;e<o;++e)i[e+a]=k(n[e],r[e],s)}else if(t===2){if(s===0)I(i,n,a,0,o);else if(s===1)I(i,r,a,0,o);else{let e=0;for(let t=0,c=a;t<o;++t,++c)i[c]=k(n[t],r[t],s),e+=i[c]*i[c];if(e>0){e=Math.sqrt(e);for(let t=a;t<a+o;++t)i[t]/=e}else{for(let e=a;e<a+o;++e)i[e]=0;i[a]=1}}}else e(``)}function I(e,t,n,r,i){if(i===0)return;let a=0,o=n,s=r;for(;a++<i;)e[o++]=t[s++]}function ze(e,t,n){let r=0;for(let i=0;!r&&i<n;++i)r=e[i]-t[i];return r}function L(e,t){return e}function Be(e){e.sort((e,t)=>e<t?-1:+(e>t))}function Ve(e,t){let n=e.slice(0,t);Be(n),I(e,n,0,0,t)}function He(e,t,n,r){let i=e.slice(t,t+n);i.sort(r),I(e,i,t,0,n)}function Ue(e,t){return e<t?-1:+(e>t)}function We(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:+(t>r)}function Ge(e,t){if(e.length<2)return e.length;let n=0;for(let r=1;r<e.length;++r)t(e[r],e[n])||(n++,e[r]=L(e[n],e[n]=e[r]));return 1+n}function Ke(e,t){e[t]=e.at(-1),e.pop()}function qe(e,t=!1){return{[Symbol.dispose](){this.bForget||e()},bForget:t}}function Je(e,t,n){e.length=t,e.fill(n)}function Ye(e,t,n){e.length=n;for(let r=0;r<n;++r)e[r]=new t}function Xe(e,t){let n=Array(t);for(let r=0;r<t;++r)n[r]=new e;return n}function Ze(e,t,n){for(let r=0;r<n;++r)e[r].assign(t[r]);return n}function Qe(e,t){let n=e.slice(0,t);for(let e=0;e<t;++e)n[e]=n[e].clone();return n}function $e(e){return Array.from({length:e},()=>null)}function et(e,t){return Array.from({length:t},()=>e())}function R(e,t){let n=Array(e);return n.fill(t),n}function tt(e,t){return t in e&&Object.getOwnPropertyNames(e).length===1}class nt{m_elts;constructor(...e){this.m_elts=e}get length(){return this.m_elts.length}at(e){return this.m_elts[e]}[Symbol.dispose](){for(let e of this.m_elts)e[Symbol.dispose]()}}function z(e,t){return{first:e,second:t}}const rt=Math.PI,it=2*Math.PI,at=.5*Math.PI;class ot{m_cr;m_cc;m_v;constructor(e,t){this.m_cr=e,this.m_cc=t,this.m_v=R(e*t,0)}get(e,t){return this.m_v[e*this.m_cc+t]}set(e,t,n){this.m_v[e*this.m_cc+t]=n}inc(e,t){return++this.m_v[e*this.m_cc+t]}}const st=new ArrayBuffer(8),ct=new Float64Array(st),lt=new BigUint64Array(st),ut=1e16;function dt(){return 2**-52*Pt}function B(e){return ct[0]=e,lt[0]}function ft(e){return lt[0]=e,ct[0]}function V(e){return B(e)&4503599627370495n}function pt(e){return Number((B(e)&9218868437227405312n)>>52n)}function H(e){if(e===0n)return-1n;if(e===1n||e===-1n)return 0n;e<0n&&(e=-e);let t=0n,n=512n,r=1n<<t+n;for(;e>=r;)t+=n,n<<=1n,r<<=n;let i=t;n>>=1n;let a=i+n;for(;n>0n;)e<1n<<a||(i=a),n>>=1n,a=i+n;return i}function U(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function mt(e,t,n){return e===t||Math.abs(e-t)<=n||Number.isNaN(e)&&Number.isNaN(t)}function ht(e,t){return e<t?-1:+(e>t)}function gt(e,t){if(e<t)return-1;if(e>t)return 1;if(e===t)return 0;{let n=Number.isNaN(e),r=Number.isNaN(t);return n<r?-1:+(n>r)}}function _t(){return 0x7fffffff}function vt(){return 32767}function W(){return 0x7fffffff}function yt(){return-0x80000000}const G=W(),bt=BigInt(G),xt=0x811c9dc5,K=16777619;function St(e){let t=xt,n=e;return t=(t^n&255)*K,n>>=8,t=(t^n&255)*K,n>>=8,t=(t^n&255)*K,n>>=8,t=(t^n&255)*K,t&G}const q=1099511628211n;function Ct(e){let t=14695981039346656037n,n=e;return t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,n>>=8n,t=(t^n&255n)*q,t&bt}function wt(e){return 0x41c64e6d*e+12345&0x7fffffff}function Tt(e){let t=xt;for(let n=0,r=e.length;n<r;++n)t=(t^e.charCodeAt(n))*K;return t&G}function J(e,t){return t+0x9e3779b9+(e<<6)+(e>>2)&G}function Et(e,t){return J(e,At(t))}function Dt(e){return J(0xdeadbeef,e)}function Ot(e,t){return J(e,Dt(t))}function kt(e){return St(e)}function At(e){return Number(Ct(e))}function jt(e){return Gt(e)}function Mt(e){return At(B(jt(e)))}function Nt(e){return wt(e)}const Pt=100;function Y(){return 2**-52*100}function Ft(){return .38196601125010515}function It(){return 1.4142135623730951}function X(){return 2**-52}function Lt(e,t,n){return e===t||e===n}function Rt(e,t,n){return e>=t?e<=n?e:n:t}function zt(e,t,n){let r=e[0];if(!(r>=t))e[0]=t;else if(!(r<=n))e[0]=n;else return!1;return!0}function Bt(e,t){return e>=t?t:e<-t?-t:e}function Vt(){return rt}function Ht(){return it}function Z(){return at}const Ut=3*Z();function Wt(){return Ut}function Gt(e){return e+0}function Kt(e){return{v:e}}class Q{static s_sm=9223372036854775808n;static s_em=9218868437227405312n;static s_fm=4503599627370495n;static s_emax=2047n;m_rn=Kt(0n);m_rd=Kt(1n);m_bNaN=!1;m_bNormalized=!1;m_power=0;m_sign=0;static constructAssign(e,t){let n=e.clone();return t!==void 0&&n.limitPrecisionThis(t),n}static constructDouble(e){return new Q().setDouble(e)}static constructInt64(e){return new Q().setInt64(e)}static constructRational(e,t){return new Q().setRational(e,t)}static constructInt32(e){return this.constructInt64(BigInt(Math.trunc(e)))}[Symbol.toPrimitive](e){return this}compare(e){return this.lt(e)?-1:+!!this.gt(e)}assignCopy(e){return this.setThis(e)}abs(){return this.clone().absThis()}absThis(){return this.isNAN()||(this.m_sign*=this.m_sign),this}clone(){return new Q().setThis(this)}setThis(e){return this.m_bNaN=e.m_bNaN,this.m_bNormalized=e.m_bNormalized,this.m_rn.v=e.m_rn.v,this.m_rd.v=e.m_rd.v,this.m_power=e.m_power,this.m_sign=e.m_sign,this}setZero(){return this.m_rn.v=0n,this.m_rd.v=1n,this.m_bNaN=!1,this.m_power=0,this.m_bNormalized=!0,this.m_sign=0,this}setDouble(t){if(this.setZero(),t===0)return this;if(Number.isInteger(t)&&Math.abs(t)<W())return this.setInt32(t);let n=B(t),r=(n&Q.s_em)>>52n,i=!!(n&Q.s_sm),a=n&Q.s_fm;if(r===Q.s_emax)return a?(this.m_rn.v=this.m_rd.v=0n,this.m_bNaN=!0,this):(this.m_rn.v=i?-1n:1n,this.m_rd.v=0n,this);r===0n&&e(`denormalized numbers not yet implemented`);let o=r-1023n,s=o>=0n?o:0n,c=o<0n?-o:0n;return this.m_rn.v=(1n<<52n|a)<<s,this.m_rd.v=1n<<52n+c,this.m_sign=i?-1:1,this.m_bNormalized=!1,this.normalizeThis()}setInt64(e){return e===0n?this.setZero():(this.m_bNaN=!1,this.m_sign=e>0n?1:-1,this.m_rn.v=e>0n?e:-e,this.m_rd.v=1n,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setRational(e,t){return e===0n?t===0n?this.setNAN():this.setZero():t===0n?e>0n?this.setPositiveInf():this.setNegativeInf():(this.m_sign=(e>0n?1:-1)*(t>0n?1:-1),this.m_rn.v=e>0n?e:-e,this.m_rd.v=t>0n?t:-t,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setInt32(e){return this.setInt64(BigInt(Math.trunc(e)))}getDouble(){return this.convertToDouble()}toDouble(){return this.convertToDouble()}value(){return this.convertToDouble()}isNAN(){return this.m_bNaN}isPositiveInf(){return!this.isNAN()&&this.m_rd.v===0n&&this.m_sign===1}isNegativeInf(){return!this.isNAN()&&this.m_rd.v===0n&&this.m_sign===-1}isFinite(){return!this.isNAN()&&this.m_rd.v!==0n}setNAN(){return this.m_bNaN=!0,this.m_rn.v=0n,this.m_rd.v=0n,this.m_power=0,this.m_bNormalized=!0,this}setPositiveInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=1,this.m_power=0,this}setNegativeInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=-1,this.m_power=0,this}subThis(e){if(e.isNAN()&&this.setNAN(),this.isPositiveInf()&&e.isPositiveInf())this.setNAN();else if(this.isPositiveInf()&&e.isNegativeInf())return this.setPositiveInf(),this;else if(this.isNegativeInf()&&e.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&e.isPositiveInf())return this.setNegativeInf(),this;return this.isNAN()?this:this.opPlusMinus(e,!1)}thisSubAbs(e){return t(0),this}mulThis(e){return e.isNAN()&&this.setNAN(),this.isNAN()?this:(this.m_sign*=e.m_sign,this.m_sign===0?this.setZero():(this.m_rn.v*=e.m_rn.v,this.m_rd.v*=e.m_rd.v,this.m_power+=e.m_power,this.m_bNormalized=!1,this.normalizeThis(),this))}mulDoubleThis(e){return this.mulThis(Q.constructDouble(e))}thisMulInt64(e){return t(0),this}thisMulInt32(e){return t(0),this}divThis(e){return this.mulThis(e.clone().invertThis())}divDoubleThis(e){return this.divThis(Q.constructDouble(e))}addDoubleThis(e){return this.addThis(Q.constructDouble(e))}subDoubleThis(e){return this.subThis(Q.constructDouble(e))}mul(e){return this.clone().mulThis(e)}mulBigIntThis(e){return this.mulThis(Q.constructInt64(e))}mulDouble(e){return this.clone().mulThis(Q.constructDouble(e))}div(e){return this.clone().divThis(e)}divDouble(e){return this.clone().divDoubleThis(e)}add(e){return this.clone().addThis(e)}fmSubThis(e,t){return this.subThis(e.clone().mulThis(t))}fmAddThis(e,t){return this.addThis(e.clone().mulThis(t))}addThis(e){if(e.isNAN()&&this.setNAN(),this.isPositiveInf()&&e.isPositiveInf())return this.setPositiveInf(),this;if(this.isPositiveInf()&&e.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&e.isNegativeInf())return this.setNegativeInf(),this;else this.isNegativeInf()&&e.isPositiveInf()&&this.setNAN();return this.isNAN()?this:this.opPlusMinus(e,!0)}addDouble(e){return this.clone().addThis(Q.constructDouble(e))}sub(e){return this.clone().subThis(e)}subDouble(e){return this.clone().subThis(Q.constructDouble(e))}isZero(){return this.m_sign===0}equals(e){return this.clone().subThis(e).isZero()}lt(e){return this.isNAN()||e.isNAN()||this.isPositiveInf()&&e.isPositiveInf()||this.isNegativeInf()&&e.isNegativeInf()||this.isPositiveInf()?!1:e.isPositiveInf()?!0:this.clone().sub(e).LZ()}absLessAbs(e){return this.abs().lt(e.abs())}gt(e){return this.clone().sub(e).GZ()}lte(e){return this.sub(e).LEZ()}gte(e){return this.sub(e).GEZ()}normalizeThis(){if(this.m_bNormalized)return this;if(this.m_rn.v===0n)return this.setZero();let e=0,t=4294967295n;for(;(this.m_rn.v&t)===0n&&t<=this.m_rn.v;)t<<=32n,e+=32;t&=this.m_rn.v,t>>=BigInt(e),e+=s(BigInt.asUintN(32,t))-1;let n=0;for(t=4294967295n;(this.m_rd.v&t)===0n&&t<=this.m_rd.v;)t<<=32n,n+=32;return t&=this.m_rd.v,t>>=BigInt(n),n+=s(BigInt.asUintN(32,t))-1,this.m_rn.v>>=BigInt(e),this.m_rd.v>>=BigInt(n),this.m_power+=e-n,this.m_rn.v>1n&&this.m_rd.v>1n&&(this.m_rn.v%this.m_rd.v===0n?(this.m_rn.v/=this.m_rd.v,this.m_rd.v=1n):this.m_rd.v%this.m_rn.v===0n&&(this.m_rd.v/=this.m_rn.v,this.m_rn.v=1n)),this.m_bNormalized=!0,this}negateThis(){return this.isNAN()||(this.m_sign*=-1),this}negate(){return this.clone().negateThis()}invertThis(){return this.isNAN()?this:this.isPositiveInf()||this.isNegativeInf()?(this.setZero(),this):this.m_rn.v===0n?(this.setPositiveInf(),this):(this.m_rd=L(this.m_rn,this.m_rn=this.m_rd),this.m_power=-this.m_power,this)}limitPrecisionThis(e){if(e===0)return this;if(this.isZero())return this.setZero();if(!this.isFinite())return this;this.normalizeThis();let t=Number(H(this.m_rn.v));if(t>e){let n=t-e;this.m_rn.v>>=BigInt(t-e),this.m_power+=n}if(t=Number(H(this.m_rd.v)),t>e){let n=t-e;this.m_rd.v>>=BigInt(t-e),this.m_power-=n}return this}hiBitIndex(){return Math.max(Number(H(this.m_rn.v)),Number(H(this.m_rd.v)))}ldexp(e){return this.clone().ldexpThis(e)}ldexpThis(e){return e&&(this.m_bNormalized=!1,this.m_power+=e,this.normalizeThis()),this}static lerp(e,t,n){return Q.lerpLo(t,t,n)}static lerpLo(e,t,n){return t.sub(e).mulThis(n).addThis(e)}static lerpHi(e,t,n){return t.sub(e).mulThis(qt.sub(n)).addThis(e)}LZ(){return!this.isNAN()&&this.m_sign===-1}GZ(){return!this.isNAN()&&this.m_sign===1}LEZ(){return!this.isNAN()&&this.m_sign<=0}GEZ(){return!this.isNAN()&&this.m_sign>=0}toString(){return this.toDouble().toString()}sqr(){return this.clone().sqrThis()}sqrThis(){return this.mulThis(this.clone())}static sqrt(e,r){if(e.m_sign<0n&&n(`MP_value: sqrt(-1)`),e.isZero())return e.clone();let i=52,a=2220446049250313e-31;for(;i<r;)2*i<=r?(a*=a,i*=2):(a*=2220446049250313e-31,i+=52);i+=52;let o=H(e.m_rn.v),s=H(e.m_rd.v),c=e.m_power+Number(o-s),l,u=new Q;Math.abs(c)>200?(Math.abs(c)&1&&(c+=1),l=Q.constructAssign(e,53).ldexpThis(-c).value(),u.setThis(e).ldexpThis(-c),t(Number.isFinite(l))):(u.setThis(e),l=u.value(),t(Number.isFinite(l)),c=0),l=Math.sqrt(l);let d=Q.constructDouble(l),f=Q.constructDouble(a);f.mulThis(d).ldexpThis(1);let p=a*l*2,m=d.clone(),h=new Q,g;for(let e=0;e<10;++e){m.mulThis(d),h.setThis(u).subThis(m).absThis();let e=h.value();if(g=1,e<.9)for(;e>p;)e*=e,++g;else g=4;if(h.lte(f))break;for(let e=0;e<g;e++)m.setThis(d).divThis(u).invertThis().addThis(d).ldexpThis(-1).limitPrecisionThis(i),d.setThis(m)}return d.ldexpThis(c/2)}static cubicRoot(e,t){if(e.isZero())return e.clone();let n=52,r=2220446049250313e-31;for(;n<t;)2*n<=t?(r*=r,n*=2):(r*=2220446049250313e-31,n+=52);n+=52;let i=Math.abs(e.value())**(1/3),a=Q.constructDouble(i),o=a.clone();o.sqrThis().mulDoubleThis(3).mulDoubleThis(r),o.limitPrecisionThis(32),e.LZ()&&a.negateThis();for(let t=0;t<10;++t){let t=a.clone();t.sqrThis().mulThis(a);let r=t.clone();if(r.subThis(e),r.absThis().limitPrecisionThis(32),r.lte(o))break;r.setThis(e),r.ldexpThis(1),r.addThis(t);let i=t.clone();i.ldexpThis(1),i.addThis(e),r.divThis(i),a.mulThis(r),a.limitPrecisionThis(n)}return a}isInTheRangeOfDouble(){return t(0),!1}sign(){return this.m_sign}cosAndSin(e,n){t(0)}pow(e){return Fe(this,e)}static nan(){return t(0),new Q}convertToDouble(){if(this.m_bNaN)return NaN;if(this.isZero())return 0;if(this.m_rd.v===0n)return this.m_sign===1?1/0:-1/0;let e=this.m_sign===-1,t=this.m_rn.v<<(this.m_power>=0?BigInt(this.m_power):0n),n=this.m_rd.v<<(this.m_power<0?BigInt(-this.m_power):0n),r=t/n,i=Number(r);if(BigInt(i)!==r)return e?-i:i;let a=t-r*n;if(a){let e=H(n)-(1023n-0n);e>0n&&(n>>=e,a<<=52n,a>>=e);let t=Number(a);Number.isFinite(t)||(a>>=52n,t=Number(a),e=0n),e>0n&&(t/=2**52);let r=t/Number(n);i+=r}return e?-i:i}signVal(){return this.m_sign===1?1n:this.m_sign===-1?-1n:0n}opPlusMinus(e,t){let n=Math.min(this.m_power,e.m_power),r,i;this.m_power>n?(r=BigInt(this.m_power-n),i=0n):(r=0n,i=BigInt(e.m_power-n));let a=this.signVal()*this.m_rn.v*e.m_rd.v<<r,o=e.signVal()*e.m_rn.v*this.m_rd.v<<i;return this.m_rn.v=t?a+o:a-o,this.m_rd.v*=e.m_rd.v,this.m_power=n,this.m_sign=1,this.m_rn.v<0n&&(this.m_sign=-1,this.m_rn.v=-this.m_rn.v),this.m_bNormalized=!1,this.normalizeThis(),this}}const qt=Q.constructInt32(1),Jt=Q.constructInt32(0),Yt=Q.constructDouble(.5);function Xt(e,t){return u(e^t)}function Zt(e,t){let n=pt(e),r=pt(t);if(n===r){let r=53-Xt(V(e),V(t));return n-=r}return n>r?n:r}function Qt(e,t){for(let n=0,r=0,i=e.length;n<i;n+=2,r++)t[r].x=e[n],t[r].y=e[n+1]}function $t(e){let t=new Float64Array(e.length*2);for(let n=0,r=e.length;n<r;++n){let r=n<<1;t[r]=e[n].x,t[r+1]=e[n].y}return t}function en(e){let t=Xe($,e.length);for(let n=0,r=e.length;n<r;++n)t[n].setCoords(e[n][0],e[n][1]);return t}class ${static dimensions=2;x;y;static d=[[0,1,0,-1],[-1,0,1,0],[0,-1,0,1],[1,0,-1,0]];static construct(e,t){return new $(e,t)}constructor(e,t){e===void 0?this.x=this.y=NaN:(this.x=e,this.y=t)}clone(){return new $(this.x,this.y)}assign(e){this.setCoordsPoint2D(e)}setCoords(e,t){return this.x=e,this.y=t,this}setCoordsPoint2D(e){this.x=e.x,this.y=e.y}isEqualPoint2D(e,t){return t===void 0?this.x===e.x&&this.y===e.y:Math.abs(this.x-e.x)<=t&&Math.abs(this.y-e.y)<=t}isEqual(e,t,n){return n===void 0?this.x===e&&this.y===t:Math.abs(this.x-e)<=n&&Math.abs(this.y-t)<=n}equalsPoint2D(e,t){return this.isEqualPoint2D(e,t)}setSub(e,t){this.x=e.x-t.x,this.y=e.y-t.y}addThis(e){return this.x+=e.x,this.y+=e.y,this}setAdd(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}absoluteOther(e){}absolute(){return t(0),this}setNegate(){this.x=-this.x,this.y=-this.y}setNegateOther(e){this.x=-e.x,this.y=-e.y}interpolateThis(e,t){}interpolate(e,n,r){t(0)}scaleAddThis(e,t){this.x=this.x*e+t.x,this.y=this.y*e+t.y}setScaleAdd(e,t,n){this.x=t.x*e+n.x,this.y=t.y*e+n.y}scaleOther(e,n){t(0)}scale(e){this.x*=e,this.y*=e}compare(e){return this.y<e.y?-1:this.y>e.y?1:this.x<e.x?-1:+(this.x>e.x)}compareX(e){return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:+(this.y>e.y)}normalizeOther(e){t(0)}normalize(){let e=this.length();return e?(this.x/=e,this.y/=e):(this.x=1,this.y=0),this}getUnitVector(){return this.clone().normalize()}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}sqrLength(){return this.x*this.x+this.y*this.y}static averageFast(e,n){return t(0),{}}static average(e,t){let n=new $;if(t===0)return n.setNAN(),n;if(t===1)return n.assign(e[0]),n;let r=new i(e[0].x),a=new i(e[0].y);for(let n=1;n<t;n++)r.add(e[n].x),a.add(e[n].y),n&255||(r.normalize(),a.normalize());return n.x=r.getResult()/t,n.y=a.getResult()/t,n}static calculateLength(e,t){let n=new i(0);for(let r=1;r<t;r++)n.add($.distance(e[r],e[r-1]));return n.getResult()}offset(e,t){let n=$.distance(e,t),r=$.construct(this.x,this.y);if(n===0)return $.distance(r,e);let i=t.clone();return i.subThis(e),r.subThis(e),r.crossProduct(i)/n}side(e,t){return e.equals(t)?+!this.equals(e):$.orientationRobust(t,e,this)}static sqrDistance(e,t){let n=e.x-t.x,r=e.y-t.y;return n*n+r*r}static sqrDistanceCoords(e,t,n,r){let i=n-e,a=r-t;return i*i+a*a}static distance(e,t){return Math.sqrt($.sqrDistance(e,t))}dotProduct(e){return this.x*e.x+this.y*e.y}dotProductAbs(e){return Math.abs(this.x*e.x)+Math.abs(this.y*e.y)}crossProduct(e){return this.x*e.y-this.y*e.x}crossProductAbs(e){return t(0),0}rotateDirect(e,t){let n=this.x*e-this.y*t,r=this.x*t+this.y*e;this.x=n,this.y=r}rotateReverse(e,t){let n=this.x*e+this.y*t,r=-this.x*t+this.y*e;this.x=n,this.y=r}leftPerpendicularThis(){let e=this.x;this.x=-this.y,this.y=e}leftPerpendicularOther(e){let t=e.x;this.x=-e.y,this.y=t}rightPerpendicularThis(){let e=this.x;this.x=this.y,this.y=-e}rightPerpendicularOther(e){let t=e.x;this.x=e.y,this.y=-t}equals(e){return this.x===e.x&&this.y===e.y}notequals(e){return this.x!==e.x||this.y!==e.y}not(){return!this.x&&!this.y}gt(e){return this.y>e.y||this.y===e.y&&this.x>e.x}gte(e){return!this.lt(e)}lt(e){return this.y<e.y||this.y===e.y&&this.x<e.x}lte(e){return!this.gt(e)}subThis(e){return this.x-=e.x,this.y-=e.y,this}divThis(e){return this.x/=e,this.y/=e,this}add(e){return new $(this.x+e.x,this.y+e.y)}sub(e){return new $(this.x-e.x,this.y-e.y)}negateThis(){return this.x=-this.x,this.y=-this.y,this}negate(){return new $(-this.x,-this.y)}mul(e){return new $(this.x*e,this.y*e)}mulThis(e){return this.x*=e,this.y*=e,this}divide(e){return new $(this.x/e,this.y/e)}setNAN(){this.x=this.y=NaN}isNAN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}static getNAN(){return new $(NaN,NaN)}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)}isZero(){return this.x===0&&this.y===0}norm(e){switch(e){case 0:{let e=Math.abs(this.x),t=Math.abs(this.y),n=e-t;return n>=0?e:n<=0?t:NaN}case 1:return Math.abs(this.x)+Math.abs(this.y);case 2:return Math.sqrt(this.x*this.x+this.y*this.y);default:r(`norm`)}}getQuarter(){return $.getQuarterCoords(this.x,this.y)}static getQuarterCoords(e,t){return e>0?t>=0?1:4:t>0?2:e===0?4:3}static compareVectors(e,t){let n=e.getQuarter(),r=t.getQuarter();return r===n?$.orientationRobustImpl($.construct(0,0),t,e,!0):n<r?-1:1}static compareVectorsOrigin(e,t,n){let r=t.sub(e),i=n.sub(e),a=r.getQuarter(),o=i.getQuarter();return o===a?$.orientationRobustImpl(e,n,t,!0):a<o?-1:1}static orientationRobust(e,t,n){return $.orientationRobustImpl(e,t,n,!1)}static orientationRobustEx(e,t,n,r){if(e.equals(t)||n.equals(r))return 0;let i=t.x-e.x,a=t.y-e.y,o=r.x-n.x,s=r.y-n.y;{let e=$.getQuarterCoords(i,a)-1,t=$.getQuarterCoords(o,s)-1,n=$.d[e][t];if(n!==0)return n}let c=i*s,l=a*o,u=4*X()*(Math.abs(c)+Math.abs(l)),d=c-l;return Math.abs(d)>=u?d<0?-1:+(d>0):$.orientationRobustExMp(e,t,n,r)}static orientationRobustExMp(e,t,n,r){let i=Q.constructDouble(t.x),a=Q.constructDouble(r.x);i.subThis(Q.constructDouble(e.x)),a.subThis(Q.constructDouble(n.x));let o=Q.constructDouble(t.y),s=Q.constructDouble(r.y);return o.subThis(Q.constructDouble(e.y)),s.subThis(Q.constructDouble(n.y)),i.mulThis(s),o.mulThis(a),i.subThis(o),i.LZ()?-1:+!!i.GZ()}static orientationNonRobust(e,t,n){let r=t.sub(e).crossProduct(n.sub(e));return r<0?-1:+(r>0)}static orientationRobustImpl(e,t,n,r){if(t.isEqualPoint2D(e)||n.isEqualPoint2D(e)||t.isEqualPoint2D(n))return 0;let i=t.x-e.x,a=t.y-e.y,o=n.x-e.x,s=n.y-e.y;if(!r){let e=$.getQuarterCoords(i,a)-1,t=$.getQuarterCoords(o,s)-1,n=$.d[e][t];if(n!==0)return n}let c=Math.abs(i),l=Math.abs(a),u=Math.abs(o),d=Math.abs(s),f=Math.abs(t.x),p=Math.abs(t.y),h=Math.abs(n.x),v=Math.abs(n.y),y=(c+l+u+d)*(f+p+h+v)*8*_(),b=i*s-a*o;if(Math.abs(b)>y)return b<0?-1:1;if(g(t.x,e.x)&&g(n.y,e.y)&&g(t.y,e.y)&&g(n.x,e.x)&&m(i,s)&&m(a,o)){let e=i*s,t=a*o;if(g(e,t)){let n=e-t;return n<0?-1:+(n>0)}}return $.orientationRobustMp(e,t,n)}static orientationRobustMp(e,t,n){let r=Q.constructDouble(t.x),i=Q.constructDouble(n.x);{let t=Q.constructDouble(e.x);r.subThis(t),i.subThis(t)}let a=Q.constructDouble(n.y),o=Q.constructDouble(t.y);{let t=Q.constructDouble(e.y);a.subThis(t),o.subThis(t)}return r.mulThis(a),o.mulThis(i),r.subThis(o),r.LZ()?-1:+!!r.GZ()}static inCircleRobust(e,t,n,r){let i=new p,a=new p;i.set(e.x),i.subThis(r.x),a.set(e.y),a.subThis(r.y);let o=new p,s=new p;o.set(t.x),o.subThis(r.x),s.set(t.y),s.subThis(r.y);let c=new p,l=new p;c.set(n.x),c.subThis(r.x),l.set(n.y),l.subThis(r.y);let u=i.mulE(s).subE(a.mulE(o)),d=o.mulE(l).subE(s.mulE(c)),f=i.mulE(l).subE(a.mulE(c)),m=i.mulE(i).addE(a.mulE(a)),h=o.mulE(o).addE(s.mulE(s)),g=c.mulE(c).addE(l.mulE(l)),_=m.mulE(d).subE(h.mulE(f)).addE(g.mulE(u));if(!_.isFuzzyZero()){let e=_.value();return e<0?-1:+(e>0)}return $.inCircleRobustMp(e,t,n,r)}static inCircleRobustMp(e,t,n,r){do{if(!(g(e.x,r.x)&&g(e.y,r.y))||!(g(t.x,r.x)&&g(t.y,r.y))||!(g(n.x,r.x)&&g(n.y,r.y)))break;let i=e.x-r.x,a=e.y-r.y,o=t.x-r.x,s=t.y-r.y,c=n.x-r.x,l=n.y-r.y;if(!(m(i,s)&&m(a,o))||!(m(o,l)&&m(s,c))||!(m(i,l)&&m(a,c))||!(m(i,i)&&m(a,a))||!(m(o,o)&&m(s,s))||!(m(c,c)&&m(l,l)))break;let u=i*s,d=a*o,f=o*l,p=s*c,_=i*l,v=a*c,y=i*i,b=a*a,x=o*o,S=s*s,ee=c*c,te=l*l;if(!g(u,d)||!g(f,p)||!g(_,v)||!h(y,b)||!h(x,S)||!h(ee,te))break;let ne=u-d,C=f-p,re=_-v,w=y+b,T=x+S,ie=ee+te;if(!m(w,C)||!m(T,re)||!m(ie,ne))break;let E=w*C,D=T*re,O=ie*ne;if(!g(E,D))break;let ae=E-D;if(!h(ae,O))break;let oe=ae+O;return oe<0?-1:+(oe>0)}while(0);let i=Q.constructDouble(r.x),a=Q.constructDouble(r.y),o=Q.constructDouble(e.x),s=Q.constructDouble(e.y);o.subThis(i),s.subThis(a);let c=Q.constructDouble(t.x),l=Q.constructDouble(t.y);c.subThis(i),l.subThis(a);let u=Q.constructDouble(n.x),d=Q.constructDouble(n.y);u.subThis(i),d.subThis(a);let f=o.mul(l).sub(s.mul(c)),p=c.mul(d).sub(l.mul(u)),_=o.mul(d).sub(s.mul(u)),v=o.mul(o).add(s.mul(s)),y=c.mul(c).add(l.mul(l)),b=u.mul(u).add(d.mul(d)),x=v.mul(p).sub(y.mul(_)).add(b.mul(f));return x.LZ()?-1:+!!x.GZ()}static inCircleRobustMp3Point(e,t,n){let r=Q.constructDouble(e.x),i=Q.constructDouble(e.y),a=Q.constructDouble(t.x),o=Q.constructDouble(t.y),s=Q.constructDouble(n.x),c=Q.constructDouble(n.y),l=s.mul(s).add(c.mul(c)).sub(s.mul(r).add(c.mul(i)).add(s.mul(a)).add(c.mul(o))).add(r.mul(a).add(i.mul(o)));return l.LZ()?-1:+!!l.GZ()}static inCircleRobust3Point(e,t,n){let r=new p(e.x),i=new p(e.y),a=new p(t.x),o=new p(t.y),s=new p(n.x),c=new p(n.y),l=s.mulE(s).addE(c.mulE(c)).subE(s.mulE(r).addE(c.mulE(i)).addE(s.mulE(a)).addE(c.mulE(o))).addE(r.mulE(a).addE(i.mulE(o)));if(!l.isFuzzyZero()){let e=l.value();return e<0?-1:+(e>0)}return $.inCircleRobustMp3Point(e,t,n)}static calculateCircleCenterFromThreePoints(e,t,n){if(e.equals(n)||e.equals(t)||n.equals(t))return $.getNAN();let r=tn(e,t,n);return r.isNAN()?nn(e,t,n):r}static calculateAngle(e,t){return Math.atan2(e.crossProduct(t),e.dotProduct(t))}static isBisectorRobust(e,n,r){return t(0),!1}static size(){return 2}get 0(){return this.x}get 1(){return this.y}set 0(e){this.x=e}set 1(e){this.y=e}static c_compare_zorder_xx=[2,0];static c_compare_zorder_yy=[1,0];static compareZorder(e,t){let n=$.c_compare_zorder_xx[+(e.x<0)]|$.c_compare_zorder_yy[+(e.y<0)],r=$.c_compare_zorder_xx[+(t.x<0)]|$.c_compare_zorder_yy[+(t.y<0)];if(n===r){let n=0,r=0;for(let i=0;i<2;++i){let a=Zt(e[i],t[i]);a>n&&(n=a,r=i)}return e[r]<t[r]}return n<r}static lerp(e,t,n){let r=new $;return A(e,t,n,r),r}static getClosestCoordinate(e,t,n,r=!1){let i=$.getNAN();i.setSub(t,e);let a=i.sqrLength();if(a===0)return .5;if(t.isEqualPoint2D(n))return 1;let o=$.getNAN();o.setSub(n,e);let s=o.dotProduct(i)/a;return r||(s<0?s=0:s>1&&(s=1)),s}static intersectLinesAtOnePoint(e,t,n,r){if(e.equals(t)||n.equals(r))return $.getNAN();let i=t.x-e.x,a=n.x-r.x,o=t.y-e.y,s=n.y-r.y,c=i*s-a*o;if(!c)return $.getNAN();let l=c;if(l===0)return $.getNAN();let u=(n.x-e.x)*s-(n.y-e.y)*a;u/=l;let d=new $;return A(e,t,u,d),d.isFinite()?d:$.getNAN()}toString(){return`[${this.x},${this.y}]`}}function tn(e,t,n){let r=new p(t.x);r.subThis(e.x);let i=new p(t.y);i.subThis(e.y);let a=new p(n.x);a.subThis(e.x);let o=new p(n.y);o.subThis(e.y);let s=r.clone();s.mulThisE(o);let c=i.clone();if(c.mulThisE(a),s.subThisE(c),s.value()===0)return $.getNAN();s.mulThis(2);let l=r.clone();l.mulThisE(r);let u=i.clone();u.mulThisE(i);let d=l.clone();d.addThisE(u);let f=a.clone();f.mulThisE(a);let m=o.clone();m.mulThisE(o);let h=f.clone();h.addThisE(m);let g=i.clone();g.mulThisE(h),c=o.clone(),c.mulThisE(d),g.subThisE(c),g.divThisE(s);let _=r.clone();_.mulThisE(h),c=a.clone(),c.mulThisE(d),_.subThisE(c),_.divThisE(s);let v=$.construct(e.x-g.value(),e.y+_.value()),y=e.sub(v).length(),b=t.sub(v).length(),x=n.sub(v).length(),S=1e-15*(y+Math.abs(e.x)+Math.abs(t.x)+Math.abs(n.x)+Math.abs(e.y)+Math.abs(t.y)+Math.abs(n.y));return Math.abs(y-b)<=S&&Math.abs(y-x)<=S&&g.eps()<S&&_.eps()<S?v:$.getNAN()}function nn(e,t,n){let r=Q.constructDouble(t.x);r.subDoubleThis(e.x);let i=Q.constructDouble(t.y);i.subDoubleThis(e.y);let a=Q.constructDouble(n.x);a.subDoubleThis(e.x);let o=Q.constructDouble(n.y);o.subDoubleThis(e.y);let s=r.clone();s.mulThis(o);let c=i.clone();if(c.mulThis(a),s.subThis(c),s.isZero())return $.getNAN();s.mulDoubleThis(2);let l=r.clone();l.mulThis(r);let u=i.clone();u.mulThis(i);let d=l.clone();d.addThis(u);let f=a.clone();f.mulThis(a);let p=o.clone();p.mulThis(o);let m=f.clone();m.addThis(p);let h=i.clone();h.mulThis(m),c=o.clone(),c.mulThis(d),h.subThis(c),h.divThis(s);let g=r.clone();return g.mulThis(m),c=a.clone(),c.mulThis(d),g.subThis(c),g.divThis(s),$.construct(e.x-h.value(),e.y+g.value())}export{w as $,re as A,J as B,kt as C,$e as D,d as E,Ze as F,U as G,ie as H,X as I,A as J,i as K,Tt as L,Q as M,Ke as N,Et as O,$ as P,Nt as Q,en as R,nt as S,y as T,$t as U,Qt as V,Mt as W,Ue as X,vt as Y,p as Z,zt as _,I as a,Ot as a0,dt as a1,Ft as a2,Dt as a3,Re as a4,He as a5,It as a6,ht as a7,mt as a8,b as a9,ee as aA,Te as aB,rt as aC,Jt as aD,Ie as aE,Gt as aF,We as aG,ge as aH,ue as aI,F as aJ,de as aK,yt as aL,ze as aM,Qe as aa,Lt as ab,Le as ac,f as ad,qt as ae,tt as af,se as ag,ce as ah,Ve as ai,O as aj,Vt as ak,Wt as al,ot as am,Z as an,ae as ao,oe as ap,x as aq,Yt as ar,E as as,D as at,Bt as au,Ht as av,Ee as aw,De as ax,Ye as ay,S as az,L as b,Rt as c,R as d,fe as e,T as f,Y as g,qe as h,W as i,_t as j,ut as k,z as l,Xe as m,we as n,et as o,at as p,it as q,k as r,j as s,gt as t,pe as u,Ge as v,Be as w,Je as x,le as y,ne as z};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{ShaderBuilder as e}from"../views/webgl/ShaderBuilder.js";import{mainDepth as t}from"../views/3d/webgl-engine/core/shaderLibrary/bindUniforms.js";import{
|
|
2
|
+
import{ShaderBuilder as e}from"../views/webgl/ShaderBuilder.js";import{mainDepth as t}from"../views/3d/webgl-engine/core/shaderLibrary/bindUniforms.js";import{outputEmission as n}from"../views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js";import{renderClouds as r}from"../views/3d/webgl-engine/core/shaderLibrary/renderClouds.glsl.js";import{Gamma as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{mainLightDirection as a}from"../views/3d/webgl-engine/core/shaderLibrary/shading/lightingUniforms.js";import{cameraPosition as o}from"../views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js";import{BooleanPassUniform as s}from"../views/3d/webgl-engine/core/shaderModules/BooleanPassUniform.js";import{Float3PassUniform as c}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{Float4PassUniform as l}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatBindUniform as u}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as d}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{FloatsPassUniform as f}from"../views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js";import{glsl as p,If as m}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{ScreenSpacePassAtmosphere as h}from"../views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js";import{SphereIntersect as g}from"../views/3d/webgl-engine/shaders/SphereIntersect.glsl.js";import{ToneMapping as _}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{getHeightParameters as v}from"../views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js";import{ChapmanRaymarching as y}from"../views/3d/webgl-engine/effects/atmosphere/ChapmanRaymarching.glsl.js";function b(b){let x=new e;x.include(h);let{outputs:S,fragment:C}=x;return S.add(`fragColor`,`vec4`,0),C.include(i),C.include(g),C.include(_),C.include(y,!1),C.uniforms.add(a,new s(`reduced`,({reduced:e})=>e),new f(`heightParameters`,5,(e,t)=>v(t,e)),o,new d(`innerFadeDistance`,e=>e.innerFadeDistance),new l(`undergroundColor`,e=>e.undergroundColor),new d(`altitudeFade`,e=>e.altitudeFade)).code.add(p`vec4 applyUndergroundAtmosphere(vec3 rayDir, vec3 lightDirection, vec4 fragColor) {
|
|
3
3
|
float rayPlanetDistance = heightParameters[3];
|
|
4
4
|
vec2 rayPlanetIntersect = sphereIntersect(cameraPosition, rayDir, rayPlanetDistance);
|
|
5
5
|
if (!((rayPlanetIntersect.x <= rayPlanetIntersect.y) && rayPlanetIntersect.y > 0.0)) {
|
|
@@ -16,7 +16,7 @@ if (relDist > 1.0) {
|
|
|
16
16
|
return color;
|
|
17
17
|
}
|
|
18
18
|
return mix(fragColor, color, smoothstep(0.0, 1.0, relDist * relDist));
|
|
19
|
-
}`),
|
|
19
|
+
}`),b.hasClouds&&x.include(r),C.include(_),C.uniforms.add(new c(`backgroundColor`,e=>e.backgroundColor),t,o).main.add(p`
|
|
20
20
|
vec3 rayDir = normalize(worldRay);
|
|
21
21
|
float depthSample = reduced ? 1.0 : texture(mainDepth, uv).r;
|
|
22
22
|
if (depthSample != 1.0) {
|
|
@@ -25,7 +25,7 @@ return mix(fragColor, color, smoothstep(0.0, 1.0, relDist * relDist));
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
vec3 rimLight = vec3(0.0);
|
|
28
|
-
vec4 clouds = reduced ? vec4(vec3(0.0), 1.0) : ${m(
|
|
28
|
+
vec4 clouds = reduced ? vec4(vec3(0.0), 1.0) : ${m(b.hasClouds,`renderClouds(normalize(worldRay), cameraPosition, rimLight)`,`vec4(vec3(0.0), 1.0)`)};
|
|
29
29
|
vec3 sun = reduced ? vec3(0.0) : getSun(rayDir, mainLightDirection) * clouds.a;
|
|
30
30
|
vec3 color = linearizeGamma(backgroundColor) +
|
|
31
31
|
raymarchAtmosphere(rayDir, mainLightDirection, -1.0);
|
|
@@ -39,17 +39,15 @@ return mix(fragColor, color, smoothstep(0.0, 1.0, relDist * relDist));
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// Occlude the sky, but not the rim light emitted by the clouds themselves.
|
|
42
|
-
fragColor.rgb = clouds.rgb
|
|
42
|
+
fragColor.rgb = clouds.rgb + fragColor.rgb * clouds.a;
|
|
43
43
|
fragColor.a = 1.0 - (1.0 - fragColor.a) * clouds.a;
|
|
44
|
-
`),
|
|
44
|
+
`),b.hasEmission?(x.include(n,b),C.uniforms.add(new u(`emissionFade`,e=>e.emissionFade)),C.main.add(p`if (emissionFade < 1.0) {
|
|
45
45
|
vec3 colorWithRim = tonemapKhronosNeutral(fragColor.rgb + rimLight);
|
|
46
46
|
vec3 colorWithoutRim = tonemapKhronosNeutral(fragColor.rgb);
|
|
47
47
|
fragColor.rgb += (sun + colorWithRim - colorWithoutRim) * (1.0 - emissionFade);
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
float emissionNoise = ditherNoise(fragEmission);
|
|
51
|
-
fragEmission.rgb = fragEmission.rgb * floatBlendOutputScale + emissionNoise;`)):T.main.add(p`if (!reduced) {
|
|
49
|
+
outputEmission(vec4(sun + rimLight, 1.0));`)):C.main.add(p`if (!reduced) {
|
|
52
50
|
vec3 colorWithRim = tonemapKhronosNeutral(fragColor.rgb + rimLight);
|
|
53
51
|
vec3 colorWithoutRim = tonemapKhronosNeutral(fragColor.rgb);
|
|
54
52
|
fragColor.rgb += (sun + colorWithRim - colorWithoutRim);
|
|
55
|
-
}`),
|
|
53
|
+
}`),C.main.add(p`fragColor = applyUndergroundAtmosphere(rayDir, mainLightDirection, fragColor);`),x}const x=Object.freeze(Object.defineProperty({__proto__:null,build:b},Symbol.toStringTag,{value:`Module`}));export{x as R,b};
|
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{ShaderBuilder as e}from"../views/webgl/ShaderBuilder.js";import{mainDepth as t}from"../views/3d/webgl-engine/core/shaderLibrary/bindUniforms.js";import{
|
|
2
|
+
import{ShaderBuilder as e}from"../views/webgl/ShaderBuilder.js";import{mainDepth as t}from"../views/3d/webgl-engine/core/shaderLibrary/bindUniforms.js";import{outputEmission as n}from"../views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js";import{renderClouds as r}from"../views/3d/webgl-engine/core/shaderLibrary/renderClouds.glsl.js";import{Gamma as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{mainLightDirection as a}from"../views/3d/webgl-engine/core/shaderLibrary/shading/lightingUniforms.js";import{cameraPosition as o}from"../views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js";import{ColorConversion as s}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{FloatBindUniform as c}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{If as l,glsl as u}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{ScreenSpacePassAtmosphere as f}from"../views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js";import{ToneMapping as p}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{ChapmanApproximationPassParameters as m,ChapmanApproximation as h}from"../views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js";class g extends m{}function _(m){let g=new e;g.include(f,{needUVs:!0,needEyeDirection:!1});let{outputs:_,fragment:v}=g;_.add(`fragColor`,`vec4`,0),v.include(h),v.include(p),v.include(s),v.include(i);let{hasEmission:y,hasClouds:b}=m;return b&&g.include(r),y&&(g.include(n,m),v.uniforms.add(new c(`emissionFade`,e=>e.emissionFade))),v.uniforms.add(a,t,o,new d(`colorTexture`,e=>e.color)).main.add(u`
|
|
3
3
|
float depthSample = texture(mainDepth, uv).r;
|
|
4
4
|
fragColor = vec4(0);
|
|
5
|
-
${l(x,`fragEmission = vec4(0);`)};
|
|
6
5
|
|
|
7
6
|
if(depthSample == 1.0) {
|
|
8
7
|
vec3 rayDir = normalize(worldRay);
|
|
9
8
|
vec3 rimLight = vec3(0.0);
|
|
10
|
-
vec4 clouds = ${l(
|
|
9
|
+
vec4 clouds = ${l(b,`renderClouds(normalize(worldRay), cameraPosition, rimLight)`,`vec4(vec3(0.0), 1.0)`)};
|
|
11
10
|
vec3 sun = getSun(rayDir, mainLightDirection) * clouds.a;
|
|
12
11
|
fragColor = premultiplyAlpha(texture(colorTexture, uv));
|
|
13
12
|
|
|
14
13
|
// Occlude the sky, but not the rim light emitted by the clouds themselves.
|
|
15
14
|
// Cloud alpha is transmittance; cloud RGB already contains its coverage.
|
|
16
|
-
fragColor.rgb = clouds.rgb
|
|
15
|
+
fragColor.rgb = clouds.rgb + fragColor.rgb * clouds.a;
|
|
17
16
|
fragColor.a = 1.0 - (1.0 - fragColor.a) * clouds.a;
|
|
18
17
|
|
|
19
|
-
${l(
|
|
18
|
+
${l(y,u`
|
|
20
19
|
if (emissionFade < 1.0) {
|
|
21
20
|
vec3 colorWithRim = tonemapKhronosNeutral(fragColor.rgb + rimLight);
|
|
22
21
|
vec3 colorWithoutRim = tonemapKhronosNeutral(fragColor.rgb);
|
|
23
22
|
fragColor.rgb += (sun + colorWithRim - colorWithoutRim) * (1.0 - emissionFade);
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
float emissionNoise = ditherNoise(fragEmission);
|
|
28
|
-
fragEmission.rgb = fragEmission.rgb * floatBlendOutputScale + emissionNoise;
|
|
24
|
+
outputEmission(vec4(sun + rimLight, 1.0));
|
|
29
25
|
`,u`
|
|
30
26
|
vec3 colorWithRim = tonemapKhronosNeutral(fragColor.rgb + rimLight);
|
|
31
27
|
vec3 colorWithoutRim = tonemapKhronosNeutral(fragColor.rgb);
|
|
32
28
|
fragColor.rgb += (sun + colorWithRim - colorWithoutRim);
|
|
33
29
|
`)}
|
|
34
30
|
}
|
|
35
|
-
`),
|
|
31
|
+
`),g}const v=Object.freeze(Object.defineProperty({__proto__:null,RealisticAtmosphereCompositingPassParameters:g,build:_},Symbol.toStringTag,{value:`Module`}));export{g as R,v as a,_ as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{ShaderBuilder as e}from"../views/webgl/ShaderBuilder.js";import{RibbonVertexPosition as t}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js";import{EvaluateAmbientOcclusion as n}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import{EvaluateSceneLighting as ee}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{forwardLocalUp as te}from"../views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js";import{mainLightIntensity as ne}from"../views/3d/webgl-engine/core/shaderLibrary/shading/lightingUniforms.js";import{LineStipple as re,computePixelSize as ie}from"../views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js";import{MarkerSizing as ae}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js";import{PiUtils as r}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PiUtils.glsl.js";import{positionOutsideClipSpace as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PositionOutsideClipSpace.js";import{readFragmentShadow as a}from"../views/3d/webgl-engine/core/shaderLibrary/shading/readFragmentShadow.glsl.js";import{sliceDraw as o}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{metersPerRenderUnit as s,screenPixelSizePerDistance as c,inverseProjectionMatrix as l,nearFar as u,viewport as d,pixelRatio as f}from"../views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js";import{ColorConversion as oe}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{NoPerspectiveWrite as p,NoPerspectiveRead as m}from"../views/3d/webgl-engine/core/shaderLibrary/util/NoPerspective.glsl.js";import{getPackedUint32Field as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/PackedUint32.glsl.js";import{
|
|
2
|
+
import{ShaderBuilder as e}from"../views/webgl/ShaderBuilder.js";import{RibbonVertexPosition as t}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js";import{EvaluateAmbientOcclusion as n}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import{EvaluateSceneLighting as ee}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{forwardLocalUp as te}from"../views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js";import{mainLightIntensity as ne}from"../views/3d/webgl-engine/core/shaderLibrary/shading/lightingUniforms.js";import{LineStipple as re,computePixelSize as ie}from"../views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js";import{MarkerSizing as ae}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js";import{PiUtils as r}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PiUtils.glsl.js";import{positionOutsideClipSpace as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PositionOutsideClipSpace.js";import{readFragmentShadow as a}from"../views/3d/webgl-engine/core/shaderLibrary/shading/readFragmentShadow.glsl.js";import{sliceDraw as o}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{metersPerRenderUnit as s,screenPixelSizePerDistance as c,inverseProjectionMatrix as l,nearFar as u,viewport as d,pixelRatio as f}from"../views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js";import{ColorConversion as oe}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{NoPerspectiveWrite as p,NoPerspectiveRead as m}from"../views/3d/webgl-engine/core/shaderLibrary/util/NoPerspective.glsl.js";import{getPackedUint32Field as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/PackedUint32.glsl.js";import{addProjView as g}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as _}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as v}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as y,If as b}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{ribbonLineVertexInfoPacking as x,ribbonLineVertexTypePacking as S,ribbonSubdivisionScale as se}from"../views/3d/webgl-engine/lib/RibbonLineVertexInfo.js";import{alphaCutoff as ce}from"../views/3d/webgl-engine/shaders/alphaCutoff.glsl.js";import{animatedAlpha as C}from"../views/3d/webgl-engine/shaders/animatedAlpha.glsl.js";import{groundMetersToScreenRatio as w,planarDistanceToScreenRatio as T}from"../views/3d/webgl-engine/shaders/lineUniforms.js";import{outputColorHighlightOLID as E}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{getTextureBackedBufferModule as D}from"../views/3d/webgl-engine/shaders/RibbonLineTextureBuffer.glsl.js";const O=1;function k(O){let k=new e,{attributes:A,varyings:j,vertex:M,fragment:N}=k,{applyMarkerOffset:P,draped:F,shadingEnabled:I,output:L,capType:R,stippleEnabled:z,falloffEnabled:B,wireframe:V,innerColorEnabled:H,hasAnimation:U,hasScreenSizePerspective:W,worldSized:G,imagePattern:le,useFlatJoinVarying:K}=O,q=R===2,J=z&&q,Y=B||J,ue=z||q,X=z&&O.usePerspectiveCorrectStipple,Z=G&&!F,Q=D(O).createBuilder(k,O);M.inputs.add(`position`,()=>Q.getTextureAttribute(`position`)),O.hasVVSize?M.inputs.add(`sizeFeatureAttribute`,()=>Q.getTextureAttribute(`sizeFeatureAttribute`)):M.inputs.add(`size`,()=>O.hasVertexSize?Q.getTextureAttribute(`size`):y`1.0`),O.hasVVOpacity&&M.inputs.add(`opacityFeatureAttribute`,()=>Q.getTextureAttribute(`opacityFeatureAttribute`)),O.hasVVColor?M.inputs.add(`colorFeatureAttribute`,()=>Q.getTextureAttribute(`colorFeatureAttribute`)):M.inputs.add(`color`,()=>O.hasVertexColor?Q.getTextureAttribute(`color`):y`vec4(1.0)`),N.include(r),k.include(t,O),k.include(re,O),L===11?(k.varyings.add(`objectAndLayerIdColorVarying`,`vec4`),M.code.add(y`
|
|
3
3
|
vec4 getOlidColor() {
|
|
4
4
|
return ${Q.getTextureAttribute(`olidColor`)};
|
|
5
5
|
}
|
|
@@ -505,7 +505,7 @@ float stippleAlpha = lineCoverage > 0.0 ? min(stippleCoverage, lineCoverage) / l
|
|
|
505
505
|
color.a = noPerspectiveRead(color.a);`),H&&N.uniforms.add(new _(`innerColor`,e=>e.innerColor??e.color),new v(`innerWidth`,(e,t)=>e.innerWidth*t.camera.pixelRatio)).main.add(y`float distToInner = abs(lineDistance) - innerWidth;
|
|
506
506
|
float innerAA = clamp(0.5 - distToInner, 0.0, 1.0);
|
|
507
507
|
float innerAlpha = innerColor.a + color.a * (1.0 - innerColor.a);
|
|
508
|
-
color = mix(color, vec4(innerColor.rgb, innerAlpha), innerAA);`),N.main.add(`vec4 albedo = blendStipple(color, stippleAlpha);`),B&&(N.uniforms.add(new v(`falloff`,e=>e.falloff)),N.main.add(y`albedo.a *= pow(max(0.0, 1.0 - abs(lineDistanceNorm)), falloff);`)),N.main.add(y`albedo.a *= ${J?`lineCoverage`:`lineFeatheringFactor(lineWidth, lineDistance)`};`),U&&(M.main.add(`vec4 animatedAlphaTimeStamps = ${Q.getTextureAttribute(`timeStamps`)};`),k.include(C,O),N.main.add(`albedo.a *= animatedAlpha();`)),I?(k.include(te,O),M.main.add(y`forwardLocalUp(position
|
|
508
|
+
color = mix(color, vec4(innerColor.rgb, innerAlpha), innerAA);`),N.main.add(`vec4 albedo = blendStipple(color, stippleAlpha);`),B&&(N.uniforms.add(new v(`falloff`,e=>e.falloff)),N.main.add(y`albedo.a *= pow(max(0.0, 1.0 - abs(lineDistanceNorm)), falloff);`)),N.main.add(y`albedo.a *= ${J?`lineCoverage`:`lineFeatheringFactor(lineWidth, lineDistance)`};`),U&&(M.main.add(`vec4 animatedAlphaTimeStamps = ${Q.getTextureAttribute(`timeStamps`)};`),k.include(C,O),N.main.add(`albedo.a *= animatedAlpha();`)),I?(k.include(te,O),M.main.add(y`forwardLocalUp(position);`),M.main.add(`forwardLinearDepthToReadShadow();`),k.include(a,O),N.include(ee,O),N.include(n,O),N.uniforms.add(ne).main.add(y`vec3 normal = normalize(upNormal);
|
|
509
509
|
float additionalAmbientScale = additionalDirectedAmbientLight(normal);
|
|
510
510
|
float shadow = readFragmentShadow(additionalAmbientScale);
|
|
511
511
|
float ssao = evaluateAmbientOcclusionInverse();
|
package/chunks/Terrain.glsl.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{translate as e}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as t}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{
|
|
2
|
+
import{translate as e}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as t}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{ShaderBuilder as n}from"../views/webgl/ShaderBuilder.js";import{NormalAttribute as r}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttribute as i}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{VertexTangent as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTangent.glsl.js";import{waterNormals as o}from"../views/3d/webgl-engine/core/shaderLibrary/bindUniforms.js";import{clampShadowPosition as s}from"../views/3d/webgl-engine/core/shaderLibrary/clampShadowPosition.glsl.js";import{addLinearDepth as c}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{outputDepth as l}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js";import{OutputHighlight as u}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{OutputHighlightOverlay as d}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlightOverlay.js";import{EvaluateAmbientOcclusion as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import{EvaluateSceneLighting as p,addAmbientBoostFactor as m}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{forwardLocalUp as h}from"../views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js";import{lightingGlobalFactor as g,mainLightDirection as _,mainLightIntensity as v}from"../views/3d/webgl-engine/core/shaderLibrary/shading/lightingUniforms.js";import{readShadowDraw as y}from"../views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js";import{sliceDraw as b}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{OverlayTerrain as x}from"../views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js";import{OverlayTerrainPassParameters as S,TerrainTexture as C}from"../views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js";import{Transform as w}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{viewNormal as T,nearFar as E}from"../views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js";import{addProjView as D,addLocalOrigin as O,addCameraPosition as k}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{glsl as A,If as j}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Matrix4DrawUniform as M}from"../views/3d/webgl-engine/core/shaderModules/Matrix4DrawUniform.js";import{alphaCutoff as N}from"../views/3d/webgl-engine/shaders/alphaCutoff.glsl.js";import{outputColorHighlightOLID as P}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";class F extends S{constructor(){super(...arguments),this.useStencil=!1}}function I(t){let S=new n,{attributes:F,vertex:I,fragment:R,varyings:z}=S;F.add(`position`,`vec3`),S.include(r,t),S.include(i,t);function B(){I.code.add(A`vec3 getNormal() {
|
|
3
3
|
float z = 1.0 - abs(normalCompressed.x) - abs(normalCompressed.y);
|
|
4
4
|
vec3 n = vec3(normalCompressed + vec2(normalCompressed.x >= 0.0 ? 1.0 : -1.0,
|
|
5
5
|
normalCompressed.y >= 0.0 ? 1.0 : -1.0) * min(z, 0.0), z);
|
|
6
6
|
return normalize(n);
|
|
7
|
-
}`)}
|
|
7
|
+
}`)}D(I,t),S.include(w),R.include(N);let{output:V,tileBorders:H,transparencyMode:U,overlayEnabled:W,renderOccluded:G,hasWaterOverlay:K,emissionReflections:q,emissionDimmingPass:J}=t,Y=U===2||U===3,X=W&&Y;switch(V){case 0:case 1:case 2:{O(I,t),S.include(C,t),R.include(p,t),W&&S.include(x,t),K&&S.include(a,t),z.add(`vnormal`,`vec3`),z.add(`vpos`,`vec3`,{invariant:!0}),B(),I.main.add(A`
|
|
8
8
|
vpos = position;
|
|
9
9
|
vec3 positionWorld = position + localOrigin;
|
|
10
10
|
gl_Position = transformPosition(proj, view, vpos);
|
|
11
11
|
vnormal = getNormal();
|
|
12
|
-
${
|
|
12
|
+
${j(K,A`forwardVertexTangent(vnormal);`)}
|
|
13
13
|
|
|
14
14
|
forwardTextureCoordinatesWithTransform(uv0);
|
|
15
|
-
${
|
|
16
|
-
${
|
|
15
|
+
${j(W,`setOverlayVTC(uv0);`)}
|
|
16
|
+
${j(H,`forwardTextureCoordinates();`)}
|
|
17
17
|
forwardLinearDepthToReadShadow();
|
|
18
|
-
`),
|
|
18
|
+
`),S.include(h,t),I.main.add(A`forwardLocalUp(position);`);let n=V===0&&!G?``:`discard`;S.include(y,t),R.include(b,t),R.include(p,t),R.include(f,t),S.include(P,t),k(R,t),m(R),R.uniforms.add(g),K&&(R.uniforms.add(o,new M(`view`,({origin:t},{camera:n})=>e(L,n.viewMatrix,t))),O(R,t)),R.uniforms.add(_,v).main.add(A`
|
|
19
19
|
vec3 normal = normalize(vnormal);
|
|
20
20
|
float lightAlignment = dot(normal, mainLightDirection);
|
|
21
21
|
|
|
@@ -23,25 +23,25 @@ return normalize(n);
|
|
|
23
23
|
float shadow = readShadow(additionalAmbientScale, vpos);
|
|
24
24
|
vec4 tileColor = getTileColor();
|
|
25
25
|
|
|
26
|
-
${
|
|
26
|
+
${j(W,A`vec4 overlayColorOpaque = getOverlayColor(ovColorTex, vtcOverlay);
|
|
27
27
|
vec4 overlayColor = overlayOpacity * overlayColorOpaque;
|
|
28
|
-
${
|
|
28
|
+
${j(Y,`if (overlayColor.a < alphaCutoff) ${n};`)}
|
|
29
29
|
vec4 groundColor = tileColor;
|
|
30
30
|
tileColor = blendColorsPremultiplied(overlayColor, tileColor);`)}
|
|
31
31
|
|
|
32
|
-
if(tileColor.a < alphaCutoff) ${
|
|
32
|
+
if(tileColor.a < alphaCutoff) ${n};
|
|
33
33
|
|
|
34
34
|
bool sliced = rejectBySlice(vpos);
|
|
35
35
|
if (sliced) {
|
|
36
36
|
tileColor *= groundSliceOpacity;
|
|
37
37
|
}
|
|
38
|
-
`);let
|
|
38
|
+
`);let r=A`float ssao = evaluateAmbientOcclusionInverse();
|
|
39
39
|
vec3 viewDirection = normalize(vpos - cameraPosition);
|
|
40
40
|
vec3 albedo = tileColor.rgb;
|
|
41
41
|
vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor;
|
|
42
|
-
finalColor = vec4(evaluateSceneLighting(normal, albedo, shadow, 1.0 - ssao, additionalLight, viewDirection, upNormal), tileColor.a);`;
|
|
42
|
+
finalColor = vec4(evaluateSceneLighting(normal, albedo, shadow, 1.0 - ssao, additionalLight, viewDirection, upNormal), tileColor.a);`;R.main.add(A`
|
|
43
43
|
vec4 finalColor = vec4(0.0);
|
|
44
|
-
${
|
|
44
|
+
${j(K,A`vec4 overlayWaterMask = getOverlayColor(waterNormals, vtcOverlay);
|
|
45
45
|
float waterNormalLength = length(overlayWaterMask);
|
|
46
46
|
if (waterNormalLength > 0.95) {
|
|
47
47
|
mat3 tbnMatrix = mat3(tbnTangent, tbnBiTangent, normal);
|
|
@@ -53,26 +53,27 @@ finalColor = vec4(evaluateSceneLighting(normal, albedo, shadow, 1.0 - ssao, addi
|
|
|
53
53
|
// un-gamma the ground color to mix in linear space
|
|
54
54
|
finalColor = mix(groundColor, waterColorNonLinear, waterColorLinear.w) * opacity;
|
|
55
55
|
} else {
|
|
56
|
-
${
|
|
57
|
-
}`,
|
|
58
|
-
${
|
|
56
|
+
${r}
|
|
57
|
+
}`,r)}
|
|
58
|
+
${j(H,A`vec2 dVuv = fwidth(vuv0);
|
|
59
59
|
vec2 edgeFactors = smoothstep(vec2(0.0), 1.5 * dVuv, min(vuv0, 1.0 - vuv0));
|
|
60
60
|
float edgeFactor = 1.0 - min(edgeFactors.x, edgeFactors.y);
|
|
61
61
|
finalColor = mix(finalColor, vec4(1.0, 0.0, 0.0, 1.0), edgeFactor);`)}
|
|
62
|
-
outputColorHighlightOLID(applySlice(finalColor, vpos), finalColor.rgb, 0.0)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
outputColorHighlightOLID(applySlice(finalColor, vpos), finalColor.rgb, 0.0);
|
|
63
|
+
${j(K&&q&&!J,`fragEmission.rgb += waterEmission * fragEmission.a;`)}`)}break;case 3:X&&S.include(x,t),I.main.add(A`
|
|
64
|
+
${j(X,`setOverlayVTC(uv0);`)}
|
|
65
|
+
gl_Position = transformPosition(proj, view, position);`),R.main.add(`${j(X,`if (getCombinedOverlayColor().a < alphaCutoff) discard;`)}`);break;case 5:case 6:case 7:case 8:S.include(l,t),R.main.add(`outputDepth(linearDepth);`);case 9:c(S),I.uniforms.add(E).main.add(`gl_Position = transformPositionWithDepth(proj, view, position, nearFar, linearDepth);`),S.include(s,t),R.main.add(``);break;case 4:X&&S.include(x,t),z.add(`vnormal`,`vec3`),I.uniforms.add(T),B(),I.main.add(A`
|
|
66
|
+
${j(X,`setOverlayVTC(uv0);`)}
|
|
66
67
|
gl_Position = transformPosition(proj, view, position);
|
|
67
68
|
vnormal = normalize((viewNormal * vec4(getNormal(), 1.0)).xyz);
|
|
68
|
-
`),
|
|
69
|
-
if (opacity < alphaCutoff) discard;`),
|
|
69
|
+
`),R.main.add(`float opacity = 1.0;`),X&&R.main.add(A`opacity = getCombinedOverlayColor().a;
|
|
70
|
+
if (opacity < alphaCutoff) discard;`),R.main.add(A`vec3 normal = normalize(vnormal);
|
|
70
71
|
if (gl_FrontFacing == false) {
|
|
71
72
|
normal = -normal;
|
|
72
73
|
}
|
|
73
|
-
fragColor = vec4(vec3(0.5) + 0.5 * normal, opacity);`);break;case 10:
|
|
74
|
-
${
|
|
75
|
-
gl_Position = transformPosition(proj, view, position);`),
|
|
76
|
-
${
|
|
77
|
-
`);break;case 11:if(
|
|
78
|
-
setOverlayVTC(uv0);`),
|
|
74
|
+
fragColor = vec4(vec3(0.5) + 0.5 * normal, opacity);`);break;case 10:W&&(S.include(x,t),S.include(d,t)),I.main.add(A`
|
|
75
|
+
${j(W,`setOverlayVTC(uv0);`)}
|
|
76
|
+
gl_Position = transformPosition(proj, view, position);`),S.include(u,t),R.main.add(A`
|
|
77
|
+
${j(W,`calculateOcclusionAndOutputHighlight(getAllOverlayHighlightValuesEncoded());`,`calculateOcclusionAndOutputHighlight();`)}
|
|
78
|
+
`);break;case 11:if(W)S.include(x,t),I.main.add(A`gl_Position = transformPosition(proj, view, position);
|
|
79
|
+
setOverlayVTC(uv0);`),R.main.add(A`fragColor = getOverlayColorTexel();`);else{let e=U===0;I.main.add(A`${j(e,`gl_Position = transformPosition(proj, view, position);`)}`),R.main.add(A`fragColor = vec4(0.0);`)}}return S}const L=t(),R=Object.freeze(Object.defineProperty({__proto__:null,TerrainPassParameters:F,build:I},Symbol.toStringTag,{value:`Module`}));export{F as T,R as a,I as b};
|