@arcgis/core 6.0.0-next.57 → 6.0.0-next.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Graphic.d.ts +1 -0
- package/WebLinkChart.d.ts +0 -12
- package/WebLinkChart.js +1 -1
- package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/applications/SceneViewer/sceneViewerUtils.d.ts +74 -0
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/arcadeCompiler.js +5 -5
- package/arcade/containerUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcgisGlobal.d.ts +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
- package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
- package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
- package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
- package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
- package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
- package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
- package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
- package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
- package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
- package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
- package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
- package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
- package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
- package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
- package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
- package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
- package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
- package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
- package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
- package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
- package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
- package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
- package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
- package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
- package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
- package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
- package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
- package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
- package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
- package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
- package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
- package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
- package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
- package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
- package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
- package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
- package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
- package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
- package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
- package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
- package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
- package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
- package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
- package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
- package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
- package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
- package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
- package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
- package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
- package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
- package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
- package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
- package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
- package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
- package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
- package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
- package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
- package/assets/esri/core/workers/chunks/{be0133fa63c5d6545a7f.js → 75667b1427a7f02f2cda.js} +33 -32
- package/assets/esri/core/workers/chunks/{b4018b21a03c0c909d23.js → 75a48b122254deb3ad59.js} +1 -1
- package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
- package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
- package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
- package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
- package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
- package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
- package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
- package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
- package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
- package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
- package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
- package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
- package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
- package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
- package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
- package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
- package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
- package/assets/esri/core/workers/chunks/956810d6f553c2198aae.js +1 -0
- package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
- package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
- package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
- package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
- package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
- package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
- package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
- package/assets/esri/core/workers/chunks/a27c2edd7e043643cdd1.js +1 -0
- package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
- package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
- package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
- package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
- package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
- package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
- package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
- package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
- package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
- package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
- package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
- package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
- package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
- package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
- package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
- package/assets/esri/core/workers/chunks/bd8ee0205f0a01d6d4d7.js +1 -0
- package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
- package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
- package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
- package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
- package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
- package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
- package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
- package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
- package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
- package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
- package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
- package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
- package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
- package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
- package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
- package/assets/esri/core/workers/chunks/{423c7a981b9a06b76cbd.js → d833fc1fe63c9917ae3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
- package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
- package/assets/esri/core/workers/chunks/dca6abf260c0bfb7c9c0.js +1 -0
- package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
- package/assets/esri/core/workers/chunks/{fc8cb947a677aa12348d.js → e38ffdb19132529beda7.js} +1 -1
- package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
- package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
- package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
- package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
- package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
- package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
- package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
- package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
- package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
- package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
- package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
- package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
- package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
- package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
- package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
- package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
- package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
- package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
- package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
- package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
- package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
- package/chunks/BlurEmission.glsl.js +7 -20
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/ColorMaterial.glsl.js +1 -1
- package/chunks/Component.glsl.js +1 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/Fog.glsl.js +5 -5
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/ImageMaterial.glsl.js +1 -1
- package/chunks/LineMarker.glsl.js +2 -2
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticAtmosphere.glsl.js +7 -9
- package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
- package/chunks/RibbonLine.glsl.js +154 -108
- package/chunks/Terrain.glsl.js +27 -27
- package/chunks/UPCPointRenderer.glsl.js +100 -0
- package/chunks/UnitFactory.js +1 -1
- package/chunks/Water.glsl.js +24 -24
- package/chunks/arcade.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
- package/chunks/arcgis-knowledge-client-core.js +4 -4
- package/chunks/array.js +1 -1
- package/chunks/basis_encoder.js +3 -3
- package/chunks/basis_transcoder.js +2 -2
- package/chunks/draco_mesh_decoder.js +2 -2
- package/chunks/dxt_encoder.js +3 -3
- package/chunks/i3s.js +2 -2
- package/chunks/languageUtils.js +1 -1
- package/chunks/lclayout.js +3 -3
- package/chunks/lerc-wasm.js +1 -1
- package/chunks/lyr3DWorker.js +2 -2
- package/chunks/pe.js +1 -1
- package/chunks/projector.js +1 -1
- package/chunks/qb3-wasm.js +1 -1
- package/chunks/vxlLayer.js +2 -2
- package/colorUtils.js +1 -1
- package/config.js +1 -1
- package/core/AsyncUpdate.js +1 -1
- package/core/Clonable.js +1 -1
- package/core/Identifiable.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/MultiOriginJSONSupport.js +1 -1
- package/core/NumericIdentifiable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
- package/core/accessorSupport/metadata.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/asyncUtils.js +1 -1
- package/core/handleUtils.js +1 -1
- package/core/mapCollectionUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/core/sql/SqlTimestampOffset.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/writeUtils.js +1 -1
- package/core/sql.js +1 -1
- package/core/urlUtils.js +1 -1
- package/core/workers/workers.js +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
- package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
- package/geometry/coordinateConversion/support/Format.d.ts +6 -30
- package/geometry/coordinateConversion/types.d.ts +15 -15
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/support/MeshMaterial.js +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
- package/geometry/support/meshUtils/elevationSampler.js +1 -1
- package/graphic/AggregateGraphicOrigin.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
- package/graphic/BuildingGraphicOrigin.js +1 -1
- package/graphic/CSVGraphicOrigin.js +1 -1
- package/graphic/CatalogGraphicOrigin.js +1 -1
- package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
- package/graphic/FeatureGraphicOrigin.js +1 -1
- package/graphic/GeoJSONGraphicOrigin.js +1 -1
- package/graphic/GeoRSSGraphicOrigin.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/KMLGraphicOrigin.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
- package/graphic/LinkChartGraphicOrigin.js +1 -1
- package/graphic/MapImageGraphicOrigin.js +1 -1
- package/graphic/MapNotesGraphicOrigin.js +1 -1
- package/graphic/OGCFeatureGraphicOrigin.js +1 -1
- package/graphic/OrientedImageryGraphicOrigin.js +1 -1
- package/graphic/ParquetGraphicOrigin.js +1 -1
- package/graphic/PointCloudGraphicOrigin.js +1 -1
- package/graphic/SceneGraphicOrigin.js +1 -1
- package/graphic/SketchGraphicOrigin.js +1 -1
- package/graphic/StreamGraphicOrigin.js +1 -1
- package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
- package/graphic/TileGraphicOrigin.js +1 -1
- package/graphic/TrackGraphicOrigin.js +1 -1
- package/graphic/VectorTileGraphicOrigin.js +1 -1
- package/graphic/VoxelGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/graphic/WFSGraphicOrigin.js +1 -1
- package/graphic/getLayerViewLayer.js +2 -0
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +8 -0
- package/kernel.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/LinkChartLayer.d.ts +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/PointCloudLayer.js +3 -3
- package/layers/VectorTileLayer.d.ts +17 -10
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/graphics/sources/CSVSource.js +1 -1
- package/layers/graphics/sources/GeoJSONSource.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
- package/layers/mixins/APIKeyMixin.js +1 -1
- package/layers/mixins/ArcGISCachedService.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/mixins/ArcGISService.js +1 -1
- package/layers/mixins/BlendLayer.js +1 -1
- package/layers/mixins/CustomParametersMixin.js +1 -1
- package/layers/mixins/DataElementMixin.js +1 -1
- package/layers/mixins/DataSeriesLayer.js +1 -1
- package/layers/mixins/DisplayFilteredLayer.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/mixins/FeatureEffectLayer.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/FeatureReductionLayer.js +1 -1
- package/layers/mixins/HeightModelInfoMixin.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/mixins/OrderedLayer.js +1 -1
- package/layers/mixins/PortalLayer.js +1 -1
- package/layers/mixins/PublishableLayer.js +1 -1
- package/layers/mixins/RasterJobHandlerMixin.js +1 -1
- package/layers/mixins/RasterPresetRendererMixin.js +1 -1
- package/layers/mixins/RefreshableLayer.js +1 -1
- package/layers/mixins/ReloadableLayer.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/mixins/TrackableLayer.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/datasets/xmlUtilities.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/Qb3.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/blosc.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
- package/layers/raster/formats/tiffTag.js +1 -1
- package/layers/raster/functions/colormaps.js +1 -1
- package/layers/support/TitleCreator.js +1 -1
- package/layers/support/WMTSSublayer.js +1 -1
- package/layers/support/geospatialPDFUtils.js +1 -1
- package/layers/support/imageUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/video/VideoController.js +14 -14
- package/legend/ActiveLayerInfo.js +1 -1
- package/legend/support/sizeRampUtils.js +1 -1
- package/libs/basisu/BasisUEncoder.js +1 -1
- package/libs/basisu/BasisUTranscoder.js +1 -1
- package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
- package/libs/dxtEncoder/DXTEncoder.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/libs/librust-parquet/loadParquetModule.js +1 -1
- package/libs/librust-text/loadTextModule.js +1 -1
- package/libs/linkchartlayout/LinkChartLayout.js +1 -1
- package/libs/maquette-advanced-projector/projector.js +1 -1
- package/package.json +2 -2
- package/popup/FeatureModel.js +1 -1
- package/popup/FeaturesModel.d.ts +6 -0
- package/popup/FeaturesModel.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/renderers/visualVariables/VisualVariableFactory.js +1 -1
- package/rest/identify.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
- package/rest/layerSources/utils.js +1 -1
- package/rest/networks/validateNetworkTopology.js +1 -1
- package/rest/support/AttributeBinsQuery.d.ts +41 -1
- package/rest/support/AttributeBinsQuery.js +1 -1
- package/rest/support/CameraInfoMixin.js +1 -1
- package/rest/support/NormalizationBinParametersMixin.js +1 -1
- package/rest/support/Query.d.ts +1 -2
- package/rest/support/generateRendererUtils.js +1 -1
- package/rest/versionManagement/gdbVersion/post.js +1 -1
- package/rest/versionManagement/gdbVersion/reconcile.js +1 -1
- package/rest/versionManagement/gdbVersion/serverVersionUtils.js +1 -1
- package/rest/versionManagement/gdbVersion/support/PostResult.d.ts +1 -1
- package/rest/versionManagement/gdbVersion/support/ReconcileResult.d.ts +1 -1
- package/smartMapping/raster/renderers/vectorField.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/statistics/histogram.js +1 -1
- package/smartMapping/statistics/types.d.ts +18 -0
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
- package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/support/BasemapStyle.js +1 -1
- package/support/LayersMixin.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/actions/ActionBase.d.ts +14 -2
- package/support/actions/ActionBase.js +1 -1
- package/support/actions/ActionButton.js +1 -1
- package/support/actions/ActionToggle.js +1 -1
- package/support/loadArcade.js +1 -1
- package/symbols/LineSymbol3DLayer.js +1 -1
- package/tables/support/templateUtils.js +1 -1
- package/versionManagement/VersionManagementService.d.ts +47 -1
- package/versionManagement/VersionManagementService.js +1 -1
- package/versionManagement/support/PostJobInfo.d.ts +61 -0
- package/versionManagement/support/PostJobInfo.js +2 -0
- package/versionManagement/support/ReconcileJobInfo.d.ts +61 -0
- package/versionManagement/support/ReconcileJobInfo.js +2 -0
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/utils.js +1 -1
- package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/BuildingSublayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWorker.js +1 -1
- package/views/3d/layers/PointCloudIntersector.js +2 -0
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/UPCPointRenderer.js +2 -0
- package/views/3d/layers/UPCPointRendererNode.js +2 -0
- package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
- package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
- package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
- package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
- package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
- package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
- package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometry.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
- package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +21 -12
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +41 -59
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleRangeBVH.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +15 -15
- package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
- package/views/Attribution.js +2 -2
- package/views/BreakpointsOwner.js +1 -1
- package/views/DOMContainer.d.ts +3 -2
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.d.ts +29 -3
- package/views/View.js +1 -1
- package/views/Viewport2DBaseMixin.js +1 -1
- package/views/Viewport2DMixin.js +1 -1
- package/views/animation/pointToPoint/Animation.js +1 -1
- package/views/interactive/Tooltip.d.ts +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
- package/views/layers/MapImageLayerView.js +1 -1
- package/views/layers/PointCloudLayerView.js +1 -1
- package/views/layers/RefreshableLayerView.js +1 -1
- package/views/layers/WMSLayerView.js +1 -1
- package/views/overlay/ViewOverlay.js +1 -1
- package/views/support/flow/utils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/types.d.ts +15 -0
- package/views/webgl/AllocationTracer.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/ShaderBuilder.js +23 -23
- package/views/webgl/ShaderTranspiler.js +1 -1
- package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
- package/views/webgl/capabilities.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
- package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
- package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/FeatureContentMixin.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
- package/widgets/smartMapping/support/utils.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +1 -1
- package/widgets/support/AnchorElementViewModel.js +1 -1
- package/widgets/support/GoTo.js +1 -1
- package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
- package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
- package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
- package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
- package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
- package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
- package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
- package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
- package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
- package/assets/esri/core/workers/chunks/10499abb7678e95d9f05.js +0 -1
- package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
- package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
- package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
- package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
- package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +0 -1
- package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
- package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
- package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
- package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
- package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
- package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
- package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
- package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +0 -1
- package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
- package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +0 -1
- package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
- package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
- package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
- package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
- package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
- package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
- package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
- package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +0 -1
- package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
- package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
- package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
- package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
- package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
- package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
- package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
- package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
- package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
- package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
- package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
- package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
- package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
- package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +0 -1
- package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
- package/assets/esri/core/workers/chunks/6a202ef9ba9b89e09153.js +0 -1
- package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
- package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
- package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
- package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
- package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
- package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
- package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +0 -1
- package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
- package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
- package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
- package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
- package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
- package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
- package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
- package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +0 -1
- package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
- package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
- package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
- package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
- package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
- package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
- package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
- package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
- package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
- package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
- package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +0 -1
- package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
- package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
- package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
- package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
- package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
- package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
- package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
- package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
- package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
- package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
- package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
- package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
- package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
- package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
- package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
- package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
- package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
- package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
- package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
- package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
- package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
- package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
- package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
- package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
- package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +0 -1
- package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
- package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
- package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
- package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
- package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
- package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
- package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
- package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +0 -1
- package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
- package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
- package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
- package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +0 -1
- package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
- package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +0 -1
- package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
- package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
- package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1560,6744],{52106(e,t,r){r.d(t,{A:()=>A});var i,o,l=r(32198),n=r(91429),s=r(69540),a=r(51447),u=r(25482),p=r(53966),c=r(36708),h=r(12195),y=r(24326),g=r(65864),d=r(50498),f=r(55156),m=r(60950),b=r(54339),w=r(40124),v=r(94128),S=r(33910);const x=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let A=class extends((0,s.OU)(u.o)){static{i=v.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,y.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,m.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(x);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],x)}};(0,l.Cg)([(0,n.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,g.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],A.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,n.MZ)({value:null})],A.prototype,"attributes",null),(0,l.Cg)([(0,n.MZ)({value:null,types:d.yR,json:{read:g.rS}})],A.prototype,"geometry",null),(0,l.Cg)([(0,n.MZ)()],A.prototype,"distance",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean})],A.prototype,"isAggregate",void 0),(0,l.Cg)([(0,n.MZ)({clonable:!1})],A.prototype,"layer",void 0),(0,l.Cg)([(0,n.MZ)({clonable:"reference"})],A.prototype,"origin",void 0),(0,l.Cg)([(0,n.MZ)({type:w.A,value:null})],A.prototype,"popupTemplate",null),(0,l.Cg)([(0,n.MZ)({clonable:"reference"})],A.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,n.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],A.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,n.MZ)({value:null,types:S.Es})],A.prototype,"symbol",null),(0,l.Cg)([(0,n.MZ)({clonable:!1,json:{read:!1,write:!1}})],A.prototype,"_version",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,value:!0})],A.prototype,"visible",null),A=o=(0,l.Cg)([(0,n.$K)("esri.Graphic")],A)},46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){let[r,l]=e.split(".",2),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!l?.match||!n.test(l)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new o(parseInt(r,10),parseInt(l,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>h});var i=r(56372),o=r(7762),l=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):s(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let l=o.filter(e=>!i.includes(e)),h=i.filter(e=>!o.includes(e)),y=i.filter(r=>o.includes(r)&&u(e,r)!==u(t,r)).concat(l,h).sort(),g=p(e);if(g&&n.has(g)&&y.length)return{type:"complete",oldValue:e,newValue:t};let d,f=s(e)&&s(t);for(let i of y){let o,l=u(e,i),n=u(t,i);if((f||"function"!=typeof l&&"function"!=typeof n)&&l!==n&&(null!=l||null!=n)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(l,n);else if(l instanceof Date&&n instanceof Date){if(l.getTime()===n.getTime())continue;o={type:"complete",oldValue:l,newValue:n}}else o="object"==typeof l&&"object"==typeof n&&p(l)===p(n)?c(l,n):{type:"complete",oldValue:l,newValue:n};null!=o&&(null==d?d={type:"partial",diff:{[i]:o}}:d.diff[i]=o)}}return d}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},58318(e,t,r){r.d(t,{C:()=>u,X:()=>a});var i=r(32198),o=r(91429),l=r(10107),n=r(7762),s=r(62885);r(44208),r(53966);let a=class extends n.A{constructor(e){super(e),this.addHandles([this.on("before-add",e=>{e.item??e.preventDefault()}),this.on("after-add",e=>this._own(e.item)),this.on("after-remove",e=>this._release(e.item))])}get owner(){return this._get("owner")}set owner(e){this.destroyed||e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(let e of this.items)this._own(e)}_releaseAll(){for(let e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(n.A.ofType(this.itemType.Type))(e):new n.A(e)}};function u(e,t){return{type:e,cast:s.H,set(r){let i=(0,s.V)(r,this._get(t),e);i&&!i.destroyed&&(i.owner=this),this._set(t,i)}}}(0,i.Cg)([(0,l.MZ)()],a.prototype,"owner",null),a=(0,i.Cg)([(0,o.$K)("esri.core.support.OwningCollection")],a)},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),o=r(91429),l=r(93637),n=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new n.A;return o.read(i,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,l.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r)},"ne",0,a])},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(91429),l=r(69540),n=r(66552),s=r(25482);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,l.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureTemplate")],u)},46499(e,t,r){var i,o,l=r(32198),n=r(91429),s=r(90360),a=(r(44208),r(66552)),u=r(25482),p=r(4718),c=r(90629),h=r(59868),y=r(73838),g=r(33910),d=r(73913),f=r(32730),m=r(77548),b=r(36005),w=r(43937);const v=new a.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,m.TU)(r?.layer)}}function x(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function C(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let A=class extends u.o{static{i=f.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],l=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,f.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,f.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&x(i))e=new d.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,f.XJ)(this)}getLabelExpressionArcade(){return(0,f.BI)(this)}getLabelExpressionSingleField(){return(0,f.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,p.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,p.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],A.prototype,"name",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],A.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],A.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],A.prototype,"labelExpression",void 0),(0,l.Cg)([(0,b.w)("labelExpression")],A.prototype,"readLabelExpression",null),(0,l.Cg)([(0,w.K)("labelExpression")],A.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,n.MZ)({type:d.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return x(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],A.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,w.K)("labelExpressionInfo")],A.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,n.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],A.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],A.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,n.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],A.prototype,"labelPosition",void 0),(0,l.Cg)([(0,n.MZ)({type:Number})],A.prototype,"maxScale",void 0),(0,l.Cg)([(0,w.K)("maxScale")],A.prototype,"writeMaxScale",null),(0,l.Cg)([(0,n.MZ)({type:Number})],A.prototype,"minScale",void 0),(0,l.Cg)([(0,w.K)("minScale")],A.prototype,"writeMinScale",null),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],A.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,cast:c.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],A.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,n.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,s.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,s.C)({types:g.Rv})},write:y.oO,default:null}},write:y.oO,default:null}})],A.prototype,"symbol",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=o=(0,l.Cg)([(0,n.$K)("esri.layers.support.LabelClass")],A);const M=A;r.d(t,["A",0,M])},73913(e,t,r){var i,o=r(32198),l=r(91429),n=r(25482),s=r(32730),a=r(36005),u=r(43937);let p=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,o.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],p);const c=p;r.d(t,["A",0,c])},91880(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),l=r(91429),n=r(66552),s=r(25482);const a=new n.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>l});var i=r(34727),o=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let l=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let n=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=p(e.at(0)?.minScale),l=c(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(p(o.minScale),c(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=p(e),r=p(r),t=c(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function c(e){return e||0}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),o=r(53966),l=r(46499);const n=()=>o.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function c(e,t){let r=[];for(let o of e){let e=o.labelPlacement,l=p[t];if(!o.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!l)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(o);else{let i=l[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=o.clone();s.labelPlacement=i,r.push(s)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),o=r(53966),l=r(46140),n=r(95466),s=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?l.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(let e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);let h=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))h.delete(e);h.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:h});let y=await(0,s.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let g=!n||!n.greaterEqual(4,0);g&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let d=new u(r,g);return new a(g,p,y,d)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class u extends s.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>b});var i,o=r(32198),l=r(91429),n=r(66552),s=r(25482),a=r(4718),u=r(16930),p=r(60408),c=r(65864),h=r(50498),y=r(52106),g=r(20437),d=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,y.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,l=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=l.length;e<t;e++)n?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[l,n]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+i,e=>o-e*n,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let l=e[t],n=r.fromJSON(l),s=l.geometry?.spatialReference;null!=n.geometry&&!s&&(n.geometry.spatialReference=i);let a=l.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o,l=[];for(let n=0,s=e.length;n<s;n++){let s=e[n];if(n>0){let e=t(s[0]),n=r(s[1]);(e!==i||n!==o)&&(l.push([e-i,n-o]),i=e,o=n)}else i=t(s[0]),o=r(s[1]),l.push([i,o])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,p.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],n=this._quantizePoints(l,t,r);n&&o.push(n)}return o.length>0?((0,p.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,n,s=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(l+=o[0],n+=o[1]):(l=o[0],n=o[1]),o[0]=t(l),o[1]=r(n)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let l,n,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(l+=i[0],n+=i[1]):(l=i[0],n=i[1]),i[0]=t(l),i[1]=r(n)}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,l.MZ)({type:[y.A],json:{write:!0}})],b.prototype,"features",void 0),(0,o.Cg)([(0,d.w)("features")],b.prototype,"readFeatures",null),(0,o.Cg)([(0,l.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,o.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,o.Cg)([(0,l.MZ)({types:h.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,d.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,o.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},98809(e,t,r){r.d(t,{Y:()=>u});var i=r(32198),o=r(91429),l=r(56507),n=r(58318),s=r(52106),a=r(7695);let u=class extends n.X{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,i.Cg)([(0,a.u)({Type:s.A,ensureType:(0,l.dp)(s.A)})],u.prototype,"itemType",void 0),u=(0,i.Cg)([(0,o.$K)("esri.support.GraphicsCollection")],u)},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},l={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,l])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[3693],{85978(e,t,r){r.d(t,{A:()=>a});var i=r(87449),n=r(11221);r(33325);class a extends n.t1{constructor(e){super(),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._parent=e.parentfeatureset,this._databaseType=0}async _queryAll(){return n.An.features}async query(e){return n.An}async queryStat(e){return await this._manualStat(e.stat,e.field,e.limit??1e3,e.abortSignal)}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new i.dr("NeverReach")}async queryAttachments(){return[]}}},3693(e,t,r){r.r(t),r.d(t,{registerFunctions:()=>be});var i=r(17676),n=r(89696),a=r(52106),l=r(18589),s=r(20437),o=r(51447),u=r(53966),d=r(66552);new d.J({Clean:"clean",Dirty:"dirty",Invalid:"invalid",Deleted:"deleted"}),new d.J({Physical:"physical",Virtual:"virtual"}),new d.J({consumers:"consumers",providers:"providers","consumers and providers":"consumers-and-providers",none:"none"}),new d.J({"Start and End":"start-and-end",Start:"start",Midspan:"midspan",End:"end"}),new d.J({Available:"available",Consumed:"consumed",Reserved:"reserved"}),new d.J({startingPoint:"starting-point",barrier:"barrier",stoppingPoint:"stopping-point"}),new d.J({connected:"connected",upstream:"upstream",downstream:"downstream",shortestPath:"shortest-path",subnetwork:"subnetwork",subnetworkController:"subnetwork-controller",loops:"loops",isolation:"isolation",path:"path",circuit:"circuit"});const f="{00000000-0000-0000-0000-000000000000}",c=new d.J({junctionJunctionConnectivity:"junction-junction-connectivity",connectivity:"connectivity",attachment:"attachment",containment:"containment",junctionEdgeFromConnectivity:"junction-edge-from-connectivity",junctionEdgeMidspanConnectivity:"junction-edge-midspan-connectivity",junctionEdgeToConnectivity:"junction-edge-to-connectivity"});new d.J({normal:"normal",rebuild:"rebuild",forceRebuild:"force-rebuild"}),new d.J({unspecified:"unspecified",dirtyAreaExpansion:"dirty-area-expansion",firstContainers:"first-containers",spatialParents:"spatial-parents",topContainers:"top-containers",errorsNotModified:"errors-not-modified",modifiedObjects:"modified-objects"}),new d.J({none:"none",dirty:"dirty",notDirty:"not-dirty"}),new d.J({none:"none",inError:"in-error",notInError:"not-in-error"});var p=r(78888),h=r(2272),m=r(32198),y=r(91429),g=r(25482),w=r(82799);let I=class extends g.o{constructor(e){super(e),this.type="networkElement",this.assetGroupCode=null,this.assetTypeCode=null,this.globalId=null,this.networkSourceId=null,this.objectId=null,this.positionFrom=null,this.positionTo=null,this.terminalId=null,this.flowDirection=null}};(0,m.Cg)([(0,y.MZ)({json:{write:!1}})],I.prototype,"type",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],I.prototype,"assetGroupCode",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],I.prototype,"assetTypeCode",void 0),(0,m.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],I.prototype,"globalId",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],I.prototype,"networkSourceId",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],I.prototype,"objectId",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],I.prototype,"positionFrom",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],I.prototype,"positionTo",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],I.prototype,"terminalId",void 0),(0,m.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],I.prototype,"flowDirection",void 0),I=(0,m.Cg)([(0,y.$K)("esri.rest.networks.support.NetworkElement")],I);let F=class extends I{constructor(e){super(e),this.type="telecomNetworkElement",this.firstUnit=null,this.lastUnit=null,this.terminalId=null}};(0,m.Cg)([(0,y.MZ)({json:{write:!1}})],F.prototype,"type",void 0),(0,m.Cg)([(0,y.MZ)({json:{write:!0}})],F.prototype,"firstUnit",void 0),(0,m.Cg)([(0,y.MZ)({json:{write:!0}})],F.prototype,"lastUnit",void 0),(0,m.Cg)([(0,y.MZ)({readOnly:!0})],F.prototype,"terminalId",void 0),F=(0,m.Cg)([(0,y.$K)("esri.rest.networks.support.TelecomNetworkElement")],F);var b=r(36005),A=r(43937);let S=class extends g.o{constructor(e){super(e),this.globalId=null,this.associationType=null,this.fromNetworkElement=null,this.toNetworkElement=null,this.geometry=null,this.errorMessage=null,this.percentAlong=null,this.errorCode=null,this.isContentVisible=null,this.status=null}readFromNetworkElement(e,t){return t.fromFirstUnit||t.fromLastUnit?new F({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,firstUnit:t.fromFirstUnit,lastUnit:t.fromLastUnit}):new I({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,terminalId:t.fromTerminalId})}writeFromNetworkElement(e,t){if(e&&(t.fromGlobalId=e.globalId,t.fromNetworkSourceId=e.networkSourceId,t.fromTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){let r=e;t.fromFirstUnit=r.firstUnit,t.fromLastUnit=r.lastUnit}}readToNetworkElement(e,t){return t.toFirstUnit||t.toLastUnit?new F({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,firstUnit:t.toFirstUnit,lastUnit:t.toLastUnit}):new I({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,terminalId:t.toTerminalId})}writeToNetworkElement(e,t){if(e&&(t.toGlobalId=e.globalId,t.toNetworkSourceId=e.networkSourceId,t.toTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){let r=e;t.toFirstUnit=r.firstUnit,t.toLastUnit=r.lastUnit}}equals(e){if(this.globalId===f&&e.globalId===f){function t(e,t){return e.networkSourceId===t.networkSourceId&&e.globalId===t.globalId&&e.terminalId===t.terminalId&&e.firstUnit===t.firstUnit&&e.lastUnit===t.lastUnit}let r=this.fromNetworkElement,i=this.toNetworkElement,n=e.fromNetworkElement,a=e.toNetworkElement,l=t(r,n),s=t(i,a);return l&&s&&this.associationType===e.associationType}return null!=this.globalId&&null!=e.globalId&&this.globalId===e.globalId}};(0,m.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],S.prototype,"globalId",void 0),(0,m.Cg)([(0,y.MZ)({type:c.apiValues,json:{type:c.jsonValues,read:c.read,write:c.write}})],S.prototype,"associationType",void 0),(0,m.Cg)([(0,y.MZ)({type:I,json:{write:{target:{fromGlobalId:{type:String},fromNetworkSourceId:{type:Number},fromTerminalId:{type:Number},fromFirstUnit:{type:Number},fromLastUnit:{type:Number}}},read:{source:["fromGlobalId","fromNetworkSourceId","fromTerminalId","fromFirstUnit","fromLastUnit"]}}})],S.prototype,"fromNetworkElement",void 0),(0,m.Cg)([(0,b.w)("fromNetworkElement")],S.prototype,"readFromNetworkElement",null),(0,m.Cg)([(0,A.K)("fromNetworkElement")],S.prototype,"writeFromNetworkElement",null),(0,m.Cg)([(0,y.MZ)({type:I,json:{write:{target:{toGlobalId:{type:String},toNetworkSourceId:{type:Number},toTerminalId:{type:Number},toFirstUnit:{type:Number},toLastUnit:{type:Number}}},read:{source:["toGlobalId","toNetworkSourceId","toTerminalId","toFirstUnit","toLastUnit"]}}})],S.prototype,"toNetworkElement",void 0),(0,m.Cg)([(0,b.w)("toNetworkElement")],S.prototype,"readToNetworkElement",null),(0,m.Cg)([(0,A.K)("toNetworkElement")],S.prototype,"writeToNetworkElement",null),(0,m.Cg)([(0,y.MZ)({type:w.A,json:{write:!0}})],S.prototype,"geometry",void 0),(0,m.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],S.prototype,"errorMessage",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],S.prototype,"percentAlong",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],S.prototype,"errorCode",void 0),(0,m.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"isContentVisible",void 0),(0,m.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],S.prototype,"status",void 0),S=(0,m.Cg)([(0,y.$K)("esri.rest.networks.support.Association")],S);const N=S;let T=class extends g.o{constructor(e){super(e),this.associations=[]}};function _(e){let{returnDeletes:t,elements:r,gdbVersion:i,moment:n}=e.toJSON();return{returnDeletes:t,elements:JSON.stringify(r.map(e=>({globalId:e.globalId,networkSourceId:e.networkSourceId,terminalId:e.terminalId}))),types:JSON.stringify(e.types.map(e=>c.toJSON(e))).replaceAll('"connectivity"','"junctionJunctionConnectivity"'),gdbVersion:i,moment:n??Date.now()}}(0,m.Cg)([(0,y.MZ)({type:[N],json:{write:!0}})],T.prototype,"associations",void 0),T=(0,m.Cg)([(0,y.$K)("esri.rest.networks.support.QueryAssociationsResult")],T);var C,v=r(56507);let x=C=class extends g.o{static from(e){return(0,v.PZ)(C,e)}constructor(e){super(e),this.returnDeletes=!1,this.elements=[],this.types=[],this.gdbVersion=null,this.moment=null}};(0,m.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"returnDeletes",void 0),(0,m.Cg)([(0,y.MZ)({type:[I],json:{write:!0}})],x.prototype,"elements",void 0),(0,m.Cg)([(0,y.MZ)({type:[c.apiValues],json:{type:c.jsonValues,read:c.read,write:c.write}})],x.prototype,"types",void 0),(0,m.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],x.prototype,"gdbVersion",void 0),(0,m.Cg)([(0,y.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.moment=e?.getTime()}}}})],x.prototype,"moment",void 0),x=C=(0,m.Cg)([(0,y.$K)("esri.rest.networks.support.QueryAssociationsParameters")],x);var D=r(66131),E=r(47609),k=r(66395),L=r(59534),U=r(85935),Z=r(93833),$=r(1262),j=r(48938),M=r(87449),W=r(11221),B=r(33325),q=r(80609);class R{constructor(e){this.field=e,this.sqlRewritable=!1}postInitialization(e,t){}}class P extends R{constructor(e){super(e),this.sqlRewritable=!0}extractValue(e){return e.attributes[this.field.name]}rewriteSql(e){return{rewritten:this.sqlRewritable,where:e}}}class V extends R{constructor(e,t,r){super((0,B.ke)(e)),this.originalField=e,this.sqlRewritable=!0,this.field.name=t,this.field.alias=r}rewriteSql(e,t){return{rewritten:this.sqlRewritable,where:(0,q.bD)(e,this.field.name,this.originalField.name,t.getFieldsIndex())}}extractValue(e){return e.attributes[this.originalField.name]}}class G extends R{constructor(e,t,r){super(e),this.codefield=t,this._stringToCode=r,this._codeToString={};for(let e in r)this._codeToString[r[e]]=e;this.sqlRewritable=!0}static{this.BADNESS="_!!!_BAD_LKP_!!!!"}rewriteSql(e,t){let r=this.evaluateNodeToWhereClause(e.parseTree,0,this.field.name,this.codefield instanceof n.A?(0,q.YY)(this.codefield,0):this.codefield,e.parameters);return r.includes(G.BADNESS)?{rewritten:!1,where:e}:{rewritten:this.sqlRewritable,where:n.A.create(r,{fieldsIndex:t._parent.getFieldsIndex(),timeZone:t.dateFieldsTimeZoneDefaultUTC})}}evaluateNodeToWhereClause(e,t,r=null,i=null,n){switch(e.type){case"interval":return(0,q.oj)(this.evaluateNodeToWhereClause(e.value,t,r,i,n),e.qualifier,e.op);case"case-expression":{let i=" CASE ";"simple"===e.format&&(i+=this.evaluateNodeToWhereClause(e.operand,t,r,G.BADNESS,n));for(let a of e.clauses)i+=" WHEN "+this.evaluateNodeToWhereClause(a.operand,t,r,G.BADNESS,n)+" THEN "+this.evaluateNodeToWhereClause(a.value,t,r,G.BADNESS,n);return null!==e.else&&(i+=" ELSE "+this.evaluateNodeToWhereClause(e.else,t,r,G.BADNESS,n)),i+=" END "}case"parameter":{let r=n[e.value.toLowerCase()];return"string"==typeof r?"'"+r.toString().replaceAll("'","''")+"'":(0,B.$P)(r)||(0,B.Lk)(r)?(0,q.bm)(r,t):(0,B.eg)(r)?(0,q.F1)(r,t):(0,B.rX)(r)?(0,q.R8)(r,t):(0,B.f0)(r)?(0,q.Nf)(r,t):Array.isArray(r)?r.map(e=>"string"==typeof e?"'"+e.toString().replaceAll("'","''")+"'":(0,B.$P)(e)||(0,B.Lk)(e)?(0,q.bm)(e,t):(0,B.eg)(e)?(0,q.F1)(e,t):(0,B.rX)(e)?(0,q.R8)(e,t):(0,B.f0)(e)?(0,q.Nf)(e,t):e.toString()):r.toString()}case"expression-list":return Array.from(e.value,e=>this.evaluateNodeToWhereClause(e,t,r,i,n));case"unary-expression":return" ( NOT "+this.evaluateNodeToWhereClause(e.expr,t,r,G.BADNESS,n)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" AND "+this.evaluateNodeToWhereClause(e.right,t,r,i,n)+") ";case"OR":return" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" OR "+this.evaluateNodeToWhereClause(e.right,t,r,i,n)+") ";case"IS":if("null"!==e.right.type)throw new $.L("UnsupportedIsRhs");return" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new $.L("UnsupportedIsRhs");return" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" IS NOT NULL )";case"IN":{if("expression-list"===e.right.type){if("column-reference"===e.left.type&&e.left.column.toUpperCase()===this.field.name.toUpperCase()){let a=[],l=!0;for(let t of e.right.value){if("string"!==t.type){l=!1;break}if(void 0===this._stringToCode[t.value]){l=!1;break}a.push(this._stringToCode[t.value].toString())}if(l)return" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" IN ("+a.join(",")+")) "}let a=this.evaluateNodeToWhereClause(e.right,t,r,i,n);return" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" IN ("+a.join(",")+")) "}let a=this.evaluateNodeToWhereClause(e.right,t,r,i,n);return Array.isArray(a)?" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" IN ("+a.join(",")+")) ":" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" IN ("+a+")) "}case"NOT IN":{if("expression-list"===e.right.type){if("column-reference"===e.left.type&&e.left.column.toUpperCase()===this.field.name.toUpperCase()){let a=[],l=!0;for(let t of e.right.value){if("string"!==t.type){l=!1;break}if(void 0===this._stringToCode[t.value]){l=!1;break}a.push(this._stringToCode[t.value].toString())}if(l)return" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" NOT IN ("+a.join(",")+")) "}let a=this.evaluateNodeToWhereClause(e.right,t,r,i,n);return" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" NOT IN ("+a.join(",")+")) "}let a=this.evaluateNodeToWhereClause(e.right,t,r,i,n);return Array.isArray(a)?" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" NOT IN ("+a.join(",")+")) ":" ("+this.evaluateNodeToWhereClause(e.left,t,r,i,n)+" NOT IN ("+a+")) "}case"BETWEEN":{let i=this.evaluateNodeToWhereClause(e.right,t,r,G.BADNESS,n);return" ("+this.evaluateNodeToWhereClause(e.left,t,r,G.BADNESS,n)+" BETWEEN "+i[0]+" AND "+i[1]+" ) "}case"NOTBETWEEN":{let i=this.evaluateNodeToWhereClause(e.right,t,r,G.BADNESS,n);return" ("+this.evaluateNodeToWhereClause(e.left,t,r,G.BADNESS,n)+" NOT BETWEEN "+i[0]+" AND "+i[1]+" ) "}case"LIKE":return""===e.escape?" ("+this.evaluateNodeToWhereClause(e.left,t,r,G.BADNESS,n)+" LIKE "+this.evaluateNodeToWhereClause(e.right,t,r,G.BADNESS,n)+") ":" ("+this.evaluateNodeToWhereClause(e.left,t,r,G.BADNESS,n)+" LIKE "+this.evaluateNodeToWhereClause(e.right,t,r,G.BADNESS,n)+" ESCAPE '"+e.escape+"') ";case"NOT LIKE":return""===e.escape?" ("+this.evaluateNodeToWhereClause(e.left,t,r,G.BADNESS,n)+" NOT LIKE "+this.evaluateNodeToWhereClause(e.right,t,r,G.BADNESS,n)+") ":" ("+this.evaluateNodeToWhereClause(e.left,t,r,G.BADNESS,n)+" NOT LIKE "+this.evaluateNodeToWhereClause(e.right,t,r,G.BADNESS,n)+" ESCAPE '"+e.escape+"') ";case"<>":case"=":if("column-reference"===e.left.type&&"string"===e.right.type){if(e.left.column.toUpperCase()===this.field.name.toUpperCase()&&void 0!==this._stringToCode[e.right.value.toString()])return" ("+i+" "+e.operator+" "+this._stringToCode[e.right.value.toString()].toString()+") "}else if("column-reference"===e.right.type&&"string"===e.left.type&&e.right.column.toUpperCase()===this.field.name.toUpperCase())return" ("+this._stringToCode[e.left.value.toString()].toString()+" "+e.operator+" "+i+") ";return" ("+this.evaluateNodeToWhereClause(e.left,t,r,G.BADNESS,n)+" "+e.operator+" "+this.evaluateNodeToWhereClause(e.right,t,r,G.BADNESS,n)+") ";case"<":case">":case">=":case"<=":case"*":case"-":case"+":case"/":case"||":return" ("+this.evaluateNodeToWhereClause(e.left,t,r,G.BADNESS,n)+" "+e.operator+" "+this.evaluateNodeToWhereClause(e.right,t,r,G.BADNESS,n)+") "}case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return(0,q.C6)(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return r&&r.toLowerCase()===e.column.toLowerCase()?"("+i+")":(0,q.Kb)(e);case"data-type":return e.value;case"function":{let i=this.evaluateNodeToWhereClause(e.args,t,r,G.BADNESS,n);return(0,q.F6)(e.name,i,t)}}throw new $.L("UnsupportedSyntax",{node:e.type})}extractValue(e){if(this.codefield instanceof n.A){let t=this.codefield.calculateValueCompiled(e);return this._codeToString[n.A.convertValueToStorageFormat(t)]}return this._codeToString[e.attributes[this.codefield]]}}class O extends R{constructor(e,t){super(e),this._sql=t}rewriteSql(e,t){return{rewritten:!0,where:(0,q.bD)(e,this.field.name,(0,q.YY)(this._sql,0),t.getFieldsIndex())}}extractValue(e){return n.A.convertValueToStorageFormat(this._sql.calculateValueCompiled(e),this.field.type)}}class K extends W.t1{static findField(e,t){for(let r of e)if(r.name.toLowerCase()===t.toString().toLowerCase())return r;return null}constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Adapted",this._maxProcessing=30,this._parent=e.parentfeatureset,this._adaptedFields=e.adaptedFields,this._extraFilter=e.extraFilter}_initialiseFeatureSet(){this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.fields=[];for(let e of this._adaptedFields)e.postInitialization(this,this._parent),this.fields.push(e.field)}async _queryAll(){return await this._ensureLoaded(),this._extraFilter?(await this.query({abortSignal:j._})).features:this._calculateFields(await this._parent.queryAll(j._))}async query(e){let t=e.where??null,r=this._reformulateWithoutAdaptions(t),i=r.cannot;t=r.where;let n=!r.cannot,a=!1,l=e.orderBy;if(null!=l){a=!0;let e=[];for(let t of this._adaptedFields)if(!(t instanceof P)&&!0===l.scanForField(t.field.name)){if(!(t instanceof V)){l=null,a=!1,n=!1;break}e.push({field:t.field.name,newfield:t.originalField.name})}l&&e.length>0&&(l=l.replaceFields(e))}null==t?t=this._extraFilter:null!=this._extraFilter&&(t=(0,q.kg)(this._extraFilter,t)),await this._ensureLoaded();let s=await this._parent.query({...e,where:t,orderBy:l,limit:n?e.limit:null});return(0,M.dZ)(e.abortSignal),i?{...s,filterApplied:!1,ordered:!!a&&s.ordered,features:this._calculateFields(s.features)}:{...s,ordered:!!a&&s.ordered,features:this._calculateFields(s.features)}}async*_calculateFields(e){for await(let t of e)yield t.map(e=>{let t={};for(let r of this._adaptedFields)t[r.field.name]=r.extractValue(e);return{attributes:t,geometry:e.geometry}})}async queryStat(e){let t=!1,r=e.field,i=this._reformulateWithoutAdaptions(r);t=i.cannot,r=i.where;let n=e.where??null;if(i=this._reformulateWithoutAdaptions(n),t||=i.cannot,n=i.where,null==n?n=this._extraFilter:null!==this._extraFilter&&(n=(0,q.kg)(this._extraFilter,n)),t)return null==n&&null==e.spatialFilter?this._manualStat(e.stat,r,e.limit??1e3,e.abortSignal):{calculated:!1};let a=await this._parent.queryStat({...e,field:r,where:n});return a.calculated?a:null==n&&null==e.spatialFilter?this._manualStat(e.stat,r,e.limit??1e3,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){for(let t of e.groupBy)for(let e of this._adaptedFields)if(t.toLowerCase()===e.field.name.toLowerCase()&&!(e instanceof P))return!1;let t=[];for(let r of e.statistics)if(null!==r.workingexpr){let e=this._reformulateWithoutAdaptions(r.workingexpr);if(e.cannot)return!1;let i=r.clone();i.workingexpr=e.where,t.push(i)}else t.push(r);let r=e.where??null,i=this._reformulateWithoutAdaptions(r);return!i.cannot&&(r=i.where,null===r?r=this._extraFilter:null!==this._extraFilter&&(r=(0,q.kg)(this._extraFilter,r)),this._parent.canQueryAggregate({...e,statistics:t,where:r}))}async queryAggregate(e){let t=[];for(let r of e.statistics)if(null!==r.workingexpr){let e=this._reformulateWithoutAdaptions(r.workingexpr);if(e.cannot)throw new M.dr("NeverReach");let i=r.clone();i.workingexpr=e.where,t.push(i)}else t.push(r);let r=e.where??null,i=this._reformulateWithoutAdaptions(r);if(i.cannot)throw new M.dr("NeverReach");return r=i.where,null===r?r=this._extraFilter:null!==this._extraFilter&&(r=(0,q.kg)(this._extraFilter,r)),this._parent.queryAggregate({...e,statistics:t,where:r})}_reformulateWithoutAdaptions(e){let t={cannot:!1,where:e};if(null!==e)for(let r of this._adaptedFields)if(!0===(0,q.Ju)(e,r.field.name)){let i=r.rewriteSql(e,this);if(!0!==i.rewritten){t.cannot=!0,t.where=null;break}t.where=i.where}return t}}var J=r(35704),z=r(80200),H=r(74639),Q=r(78878);function Y(e,t){return e===t?0:null===e?-1:null===t?1:e<t?-1:1}class X{constructor(e){let t=e.split(",");this._fields=[],this._directions=[];for(let e=0;e<t.length;e++){let r=t[e].match(/\S+/g);this._fields.push(r[0]),2===r.length?"asc"===r[1].toLowerCase()?this._directions.push(1):this._directions.push(0):this._directions.push(1)}}toOrderByFields(){return this._fields.map((e,t)=>e+(1===this._directions[t]?" ASC":" DESC"))}order(e){e.sort(this.toComparator())}toComparator(){return(e,t)=>{for(let r=0;r<this._fields.length;r++){let i=this.featureValue(e,this._fields[r],r),n=this.featureValue(t,this._fields[r],r),a=0;if(a=1===this._directions[r]?Y(i,n):-1*Y(i,n),0!==a)return a}return 0}}scanForField(e){for(let t=0;t<this._fields.length;t++)if(this._fields[t].toLowerCase().trim()===e.toLowerCase().trim())return!0;return!1}replaceFields(e){let t="";for(let r=0;r<this._fields.length;r++){0!==r&&(t+=",");let i=this._fields[r];for(let t of e)if(i.toLowerCase()===t.field.toLowerCase()){i=t.newfield;break}t+=i,1===this._directions[r]?t+=" ASC":t+=" DESC"}return new X(t)}featureValue(e,t,r){let i=e.attributes[t];if(void 0!==i)return i;for(let i in e.attributes)if(t.toLowerCase()===i.toLowerCase())return this._fields[r]=i,e.attributes[i];return null}}class ee{constructor(){this.field="",this.tofieldname="",this.typeofstat="MIN",this.workingexpr=null}clone(){let e=new ee;return e.field=this.field,e.tofieldname=this.tofieldname,e.typeofstat=this.typeofstat,e.workingexpr=this.workingexpr,e}static parseStatField(e,t,r,i){let a=new ee;a.field=e;let l=n.A.create(t,{fieldsIndex:r,timeZone:i}),s=function(e){if("function"===e.parseTree.type){if(0===e.parseTree.args.value.length)return{name:e.parseTree.name,expr:null};if(e.parseTree.args.value.length>1)throw new $.L("MissingStatisticParameters");let t=n.A.create((0,q.Mi)(e.parseTree.args.value[0],0,e.parameters),{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser});return{name:e.parseTree.name,expr:t}}return null}(l);if(null===s)throw new $.L("UnsupportedSqlFunction",{function:""});let o=s.name.toUpperCase().trim();if("MIN"===o){if(a.typeofstat="MIN",a.workingexpr=s.expr,null===l)throw new $.L("InvalidFunctionParameters",{function:"min"})}else if("MAX"===o){if(a.typeofstat="MAX",a.workingexpr=s.expr,null===l)throw new $.L("InvalidFunctionParameters",{function:"max"})}else if("COUNT"===o)a.typeofstat="COUNT",a.workingexpr=s.expr;else if("STDEV"===o){if(a.typeofstat="STDDEV",a.workingexpr=s.expr,null===l)throw new $.L("InvalidFunctionParameters",{function:"stdev"})}else if("SUM"===o){if(a.typeofstat="SUM",a.workingexpr=s.expr,null===l)throw new $.L("InvalidFunctionParameters",{function:"sum"})}else if("MEAN"===o){if(a.typeofstat="AVG",a.workingexpr=s.expr,null===l)throw new $.L("InvalidFunctionParameters",{function:o})}else if("AVG"===o){if(a.typeofstat="AVG",a.workingexpr=s.expr,null===l)throw new $.L("InvalidFunctionParameters",{function:"avg"})}else{if("VAR"!==o)throw new $.L("UnsupportedSqlFunction",{function:o});if(a.typeofstat="VAR",a.workingexpr=s.expr,null===l)throw new $.L("InvalidFunctionParameters",{function:"var"})}return a}toStatisticsName(){switch(this.typeofstat.toUpperCase()){case"MIN":return"min";case"MAX":return"max";case"SUM":return"sum";case"COUNT":default:return"count";case"VAR":return"var";case"STDDEV":return"stddev";case"AVG":return"avg"}}}var te=r(4576);class re extends W.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.OrderBy",this._maxProcessing=100,this._parent=e.parentfeatureset,this._orderByClause=e.orderbyclause}async _queryAll(){return(await this.query({abortSignal:j._})).features}async query(e){if(null!=e.orderBy)return this._parent.query(e);await this._ensureLoaded();let t=await this._parent.query({...e,orderBy:this._orderByClause});return(0,M.dZ)(e.abortSignal),!1===t.ordered?{...t,ordered:!0,features:null!=e.limit&&e.limit<=5e3?this._topNFeatures(t.features,e.limit,e.abortSignal):this._sortFeatures(t.features,e.abortSignal)}:t}async*_sortFeatures(e,t){let r=[];for await(let i of e)r.push(i),await(0,Q.a5)(),(0,M.dZ)(t);let i=r.flat();this._orderByClause.order(i),yield*(0,te.Ho)(i,this._maxQueryRate())}async*_topNFeatures(e,t,r){let i=[],n=this._orderByClause.toComparator();for await(let a of e){for(let e of a)(0,te.HX)(i,e,t,n);await(0,Q.a5)(),(0,M.dZ)(r)}yield*(0,te.Ho)(i,this._maxQueryRate())}async queryStat(e){let t=await this._parent.queryStat(e);return t.calculated?t:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??1e3,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){return this._parent.canQueryAggregate(e)}async queryAggregate(e){return this._parent.queryAggregate(e)}getFieldsIndex(){return this._parent.getFieldsIndex()}}const ie=new L.b(["MIN","MAX","VAR","STDDEV","COUNT","SUM","AVG"],[["VARIANCE","VAR"],["AVERAGE","AVG"],["MEAN","AVG"],["STDEV","STDDEV"]]);class ne extends W.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Aggregate",this._decodedStatsFields=[],this._decodedGroupByFields=[],this._canDoSimpleGroupBy=!0,this._physicalGroupByFields=[],this.objectIdField="ROW__ID",this._adaptedFields=[],this._uniqueIds=1,this._maxQuery=10,this._maxProcessing=10,this._parent=e.parentfeatureset,this._config=e}isTable(){return!0}_nextUniqueName(e){for(;1===e["T"+this._uniqueIds.toString()];)this._uniqueIds++;let t="T"+this._uniqueIds.toString();return e[t]=1,t}_convertToEsriFieldType(e){return e}_initialiseFeatureSet(){let e=this._parent.getFieldsIndex();this.objectIdField="ROW__ID",this.globalIdField="";let t=!1,r=1;for(;!1===t;){let e=!1;for(let t of this._config.groupbyfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}if(!1===e)for(let t of this._config.statsfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}!1===e?t=!0:(this.objectIdField="ROW__ID"+r.toString(),r++)}for(let t of this._config.statsfields){let r=new ee;r.field=t.name,r.tofieldname=t.name,r.workingexpr=t.expression instanceof n.A?t.expression:n.A.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),r.typeofstat=ie.lookup(t.statistic)??"COUNT",this._decodedStatsFields.push(r)}this._decodedGroupByFields=[];for(let t of this._config.groupbyfields){let r={name:t.name,singlefield:null,tofieldname:t.name,expression:t.expression instanceof n.A?t.expression:n.A.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),sqlType:null};this._decodedGroupByFields.push(r)}let i={};this.geometryType=this._parent.geometryType,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField="";for(let e of this._parent.fields)i[e.name.toUpperCase()]=1;this.types=null,this.subtypes=null,this.subtypeField="",this.fields=[];let a=new ee;a.field=this._nextUniqueName(i),a.tofieldname=this.objectIdField,a.workingexpr=n.A.create(this._parent.objectIdField,{fieldsIndex:this._parent.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),a.typeofstat="MIN",this._decodedStatsFields.push(a);for(let e of this._decodedGroupByFields){let t=new s.A;if(e.name=this._nextUniqueName(i),t.name=e.tofieldname,t.alias=t.name,(0,q.DA)(e.expression)){let r=this._parent.getField((0,q.YY)(e.expression,0));if(!r)throw new M.dr("AggregationFieldNotFound");e.name=r.name,e.singlefield=r.name,this._physicalGroupByFields.push(r.name),t.type=r.type,e.sqlType=r.type}else{t.type=this._convertToEsriFieldType((0,q.IY)(e.expression,this._parent.fields));let r=new s.A;r.name=e.name,r.alias=r.name,this._physicalGroupByFields.push(e.name),this._adaptedFields.push(new O(r,e.expression)),this._canDoSimpleGroupBy=!1,e.sqlType=t.type}this.fields.push(t)}if(this._adaptedFields.length>0)for(let e of this._parent.fields)this._adaptedFields.push(new P(e));for(let e of this._decodedStatsFields){let t=new s.A;e.field=this._nextUniqueName(i),t.name=e.tofieldname,t.alias=t.name;let r=null;if(null!=e.workingexpr&&(0,q.DA)(e.workingexpr)){let t=(0,q.YY)(e.workingexpr,0);if(r=this._parent.getField(t),!r)throw new M.dr("AggregationFieldNotFound")}switch(e.typeofstat){case"SUM":t.type=null==r?"double":r.type;break;case"MIN":case"MAX":t.type=null==r?(0,q.IY)(e.workingexpr,this._parent.fields)||"double":r.type;break;case"COUNT":t.type="integer";break;case"STDDEV":case"VAR":case"AVG":t.type="double";break;default:e.typeofstat}this.fields.push(t)}}async _queryAll(){return(await this.query({abortSignal:j._})).features}async query(e){if(null!=e.spatialFilter)return W.An;let t={ordered:!1,nowhereclause:!1};await this._ensureLoaded();let r=e.where;if(null!=r)for(let e of this._decodedStatsFields)if(!0===(0,q.Ju)(r,e.tofieldname)){t.nowhereclause=!0,r=null;break}let i=e.orderBy;if(null!=i){t.ordered=!0;for(let e of this._decodedStatsFields)if(!0===i.scanForField(e.tofieldname)){i=null,t.ordered=!1;break}if(null!==i)for(let e of this._decodedGroupByFields)if(null===e.singlefield&&!0===i.scanForField(e.tofieldname)){i=null,t.ordered=!1;break}}if(!1!==this._canDoSimpleGroupBy&&await this._parent.canQueryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:null,spatialFilter:null,abortSignal:e.abortSignal})){let n=await this._parent.queryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:r?this._reformulateWhereClauseWithoutGroupByFields(r):null,spatialFilter:null,orderBy:i?this._reformulateOrderClauseWithoutGroupByFields(i):null,abortSignal:e.abortSignal});return(0,M.dZ)(e.abortSignal),{...n,filterApplied:!t.nowhereclause&&n.filterApplied,ordered:!0===t.ordered&&n.ordered,features:this._fixAggregateAttributeNames(n.features)}}let n=this._adaptedFields.length>0?new K({parentfeatureset:this._parent,adaptedFields:this._adaptedFields,extraFilter:null}):this._parent;if(!0===t.nowhereclause){let t=new re({parentfeatureset:n,orderbyclause:new X(this._physicalGroupByFields.join(",")+","+this._parent.objectIdField+" ASC")});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await t.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}let a=n;null!=r&&(a=new J.A({parentfeatureset:a,whereclause:this._reformulateWhereClauseWithoutGroupByFields(r)}));let l=new re({parentfeatureset:a,orderbyclause:new X(this._physicalGroupByFields.join(",")+","+this._parent.objectIdField+" ASC")});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await l.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}async*_fixAggregateAttributeNames(e){for await(let t of e)yield t.map(e=>{let t={geometry:e.geometry,attributes:{}},r={};for(let t in e.attributes)r[t.toLowerCase()]=e.attributes[t];for(let e of this._decodedGroupByFields)t.attributes[e.tofieldname]=r[e.name.toLowerCase()];for(let e of this._decodedStatsFields)t.attributes[e.tofieldname]=r[e.field.toLowerCase()];return t})}async*_aggregateSortedFeatureGroups(e,t,r){let i=null,n=[];for await(let a of e){await(0,Q.a5)(),(0,M.dZ)(r);for(let e of a){let t=this._generateAggregateHash(e);null==i?i={features:[e],id:t}:t===i.id?i.features.push(e):(n.push(this._calculateAndAppendAggregateItem(i)),i={features:[e],id:t})}n.length>=t&&(yield n,n=[])}null!=i&&(n.push(this._calculateAndAppendAggregateItem(i)),yield n)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new M.dr("NeverReach")}_reformulateWhereClauseWithoutStatsFields(e){for(let t of this._decodedStatsFields)e=(0,q.bD)(e,t.tofieldname,(0,q.YY)(t.workingexpr,0),this._parent.getFieldsIndex());return e}_reformulateWhereClauseWithoutGroupByFields(e){for(let t of this._decodedGroupByFields)t.tofieldname!==t.name&&(e=(0,q.bD)(e,t.tofieldname,(0,q.YY)(t.expression,0),this._parent.getFieldsIndex()));return e}_reformulateOrderClauseWithoutGroupByFields(e){let t=[];for(let e of this._decodedGroupByFields)e.tofieldname!==e.name&&t.push({field:e.tofieldname,newfield:e.name});return t.length>0?e.replaceFields(t):e}_calculateFieldStat(e,t,r){let i=[];for(let r of e.features)null===t.workingexpr?i.push(null):i.push(t.workingexpr.calculateValue(r));r.attributes[t.tofieldname]=n.A.convertValueToStorageFormat((0,H.s)(t.typeofstat,[i]))}_calculateAndAppendAggregateItem(e){let t={attributes:{}};for(let r of this._decodedGroupByFields){let i=r.singlefield?e.features[0].attributes[r.singlefield]:n.A.convertValueToStorageFormat(r.expression.calculateValue(e.features[0]),r.sqlType);t.attributes[r.tofieldname]=i}for(let r of this._decodedStatsFields)this._calculateFieldStat(e,r,t);return t}_generateAggregateHash(e){let t="";for(let r of this._decodedGroupByFields){let i=r.singlefield?e.attributes[r.singlefield]:r.expression.calculateValue(e);t+=null==i?":":":"+i.toString()}return(0,z.d)(t,z.T.String)}async getFeatureByObjectId(){throw new M.dr("NotImplemented")}}async function*ae(e,t){let r=t;for await(let t of e)if(r>=t.length?(r-=t.length,yield t):(yield t.slice(0,r),r=0),r<=0)break}class le extends W.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Top",this._maxProcessing=100,this._parent=e.parentfeatureset,this._limit=e.topnum}async _queryAll(){return(await this.query({abortSignal:j._})).features}async query(e){let t=null!=e.limit&&null==e.where&&null==e.spatialFilter&&null==e.orderBy?Math.min(e.limit,this._limit):this._limit;await this._ensureLoaded();let{features:r}=await this._parent.query({limit:t,abortSignal:e.abortSignal});return{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:!1,features:ae(r,t)}}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new M.dr("NeverReach")}getFieldsIndex(){return this._parent.getFieldsIndex()}}var se=r(85978),oe=r(30235),ue=r(96685),de=r(93818),fe=r(80672),ce=r(334),pe=r(54218);function he(e,t,r){let i=e.getVariables();if(i.length>0){let n={};for(let e of i)n[e]=t.evaluateIdentifier(r,{name:e});e.parameters=n}return e}function me(e,t,r=null){for(let r in e)if(r.toLowerCase()===t.toLowerCase())return e[r];return r}function ye(e){if(null===e)return null;let t={type:me(e,"type",""),name:me(e,"name","")};if("range"===t.type)t.range=me(e,"range",[]);else{t.codedValues=[];for(let r of me(e,"codedValues",[]))t.codedValues.push({name:me(r,"name",""),code:me(r,"code",null)})}return t}function ge(e){if(null===e)return null;let t={},r=me(e,"wkt");null!==r&&(t.wkt=r);let i=me(e,"wkid");return null!==i&&(t.wkid=i),t}function we(e){if(null===e)return null;let t={hasZ:me(e,"hasz",!1),hasM:me(e,"hasm",!1)},r=me(e,"spatialreference");null!=r&&(t.spatialReference=ge(r));let i=me(e,"x",null);if(null!==i)return t.x=i,t.y=me(e,"y",null),t.hasZ&&(t.z=me(e,"z",null)),t.hasM&&(t.m=me(e,"m",null)),t;let n=me(e,"rings",null);if(null!==n)return t.rings=n,t;let a=me(e,"paths",null);if(null!==a)return t.paths=a,t;let l=me(e,"points",null);if(null!==l)return t.points=l,t;for(let r of["xmin","xmax","ymin","ymax","zmin","zmax","mmin","mmax"]){let i=me(e,r,null);null!==i&&(t[r]=i)}return t}function Ie(e){return"utc"===e?.toLowerCase()?"UTC":"unknown"===e?.toLowerCase()?"Unknown":e}function Fe(e){if(null==e)return["*"];if((0,Q.g)(e)&&(e=e.toArray()),!(0,pe.cy)(e))throw new U.D$("InvalidParameter",null);for(let t of e)if(!(0,pe.Kg)(t))throw new U.D$("InvalidParameter",null);return e}function be(e){if("async"===e.mode){e.functions.timezone=function(t,r){return e.standardFunctionAsync(t,r,async(e,i,n)=>{if((0,Q.E)(n,1,2,r),(0,Q.r)(n[0])||(0,Q.q)(n[0]))return"Unknown";if((0,Q.k)(n[0])){if(await n[0].load(),1===n.length||null===n[1])return n[0].datesInUnknownTimezone?Ie("unknown"):Ie(n[0].dateFieldsTimeZone);if(!(n[1]instanceof k.A)||!1===n[1].hasField("type"))throw new U.D$("InvalidParameter",r);let e=n[1].field("type");if(!1===(0,pe.Kg)(e))throw new U.D$("InvalidParameter",r);switch((0,Q.w)(e).toLowerCase()){case"preferredtimezone":return Ie(n[0].preferredTimeZone);case"editfieldsinfo":return Ie(n[0].editFieldsInfo?.timeZone??null);case"timeinfo":return Ie(n[0].timeInfo?.timeZone??null);case"field":if(n[1].hasField("fieldname")&&(0,pe.Kg)(n[1].field("fieldname")))return Ie(n[0].fieldTimeZone((0,Q.w)(n[1].field("fieldname"))))}throw new U.D$("InvalidParameter",r)}let a=(0,Q.T)(n[0],(0,Q.S)(t));if(null===a)return null;let l=a.timeZone;return"system"===l?D.lY.systemTimeZoneCanonicalName:"utc"===l.toLowerCase()?"UTC":"unknown"===l.toLowerCase()?"Unknown":l})},e.functions.sqltimestamp=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,i)=>{(0,Q.E)(i,1,3,r);let n=i[0];if((0,Q.f)(n)){if(1===i.length)return n.toSQLWithKeyword();if(2===i.length)return n.changeTimeZone((0,Q.w)(i[1])).toSQLWithKeyword();throw new U.D$("InvalidParameter",r)}if((0,Q.q)(n))return n.toSQLWithKeyword();if((0,Q.k)(n)){if(3!==i.length)throw new U.D$("InvalidParameter",r);await n.load();let e=(0,Q.w)(i[1]);if((0,Q.q)(i[2]))return i[2].toSQLWithKeyword();if(!1===(0,Q.f)(i[2]))throw new U.D$("InvalidParameter",r);let t=n.fieldTimeZone(e);return null==t?i[2].toSQLWithKeyword():i[2].changeTimeZone(t).toSQLWithKeyword()}throw new U.D$("InvalidParameter",r)})},e.signatures.push({name:"sqltimestamp",min:2,max:4}),e.functions.featuresetbyid=function(t,r){return e.standardFunctionAsync(t,r,(e,t,i)=>{if((0,Q.E)(i,2,4,r),(0,Q.j)(i[0])){let e=(0,Q.w)(i[1]),t=Fe(i[2]),r=(0,Q.M)((0,Q.N)(i[3],!0));return i[0].featureSetById(e,r,t)}throw new U.D$("InvalidParameter",r)})},e.signatures.push({name:"featuresetbyid",min:2,max:4});let t=new L.b(["datasource","parent","root"]);e.functions.getfeatureset=function(r,i){return e.standardFunctionAsync(r,i,async(e,n,a)=>{if((0,Q.E)(a,1,2,i),(0,Q.h)(a[0])){let e=null==a[1]?"datasource":t.lookup((0,Q.w)(a[1]));return(0,ue.convertToFeatureSet)(a[0].fullSchema(),e,r.lrucache,r.interceptor,r.spatialReference)}throw new U.D$("InvalidParameter",i)})},e.signatures.push({name:"getfeatureset",min:1,max:2}),e.functions.featuresetbyportalitem=function(t,r){return e.standardFunctionAsync(t,r,(e,i,n)=>{if((0,Q.E)(n,2,5,r),null===n[0])throw new U.D$("PortalRequired",r);if(n[0]instanceof E.A){let e=(0,Q.w)(n[1]),r=(0,Q.w)(n[2]),i=Fe(n[3]),a=(0,Q.M)((0,Q.N)(n[4],!0)),l=(0,fe.RI)(t,n[0]);return(0,ue.constructFeatureSetFromPortalItem)(e,r,t.spatialReference,i,a,l,t.lrucache,t.interceptor)}if(!1===(0,pe.Kg)(n[0]))throw new U.D$("PortalRequired",r);let a=(0,Q.w)(n[0]),l=(0,Q.w)(n[1]),s=Fe(n[2]),o=(0,Q.M)((0,Q.N)(n[3],!0));return(0,ue.constructFeatureSetFromPortalItem)(a,l,t.spatialReference,s,o,(0,fe.Iq)(t),t.lrucache,t.interceptor)})},e.signatures.push({name:"featuresetbyportalitem",min:2,max:5}),e.functions.featuresetbyname=function(t,r){return e.standardFunctionAsync(t,r,(e,t,i)=>{if((0,Q.E)(i,2,4,r),(0,Q.j)(i[0])){let e=(0,Q.w)(i[1]),t=Fe(i[2]),r=(0,Q.M)((0,Q.N)(i[3],!0));return i[0].featureSetByName(e,r,t)}throw new U.D$("InvalidParameter",r)})},e.signatures.push({name:"featuresetbyname",min:2,max:4}),e.functions.featureset=function(t,r){return e.standardFunction(t,r,(e,i,n)=>{(0,Q.E)(n,1,1,r);let a={layerDefinition:{geometryType:"",objectIdField:"",globalIdField:"",typeIdField:"",hasM:!1,hasZ:!1,fields:[]},featureSet:{geometryType:"",features:[]}};if((0,pe.Kg)(n[0])){let e=JSON.parse(n[0]);void 0===e.layerDefinition?(a.featureSet.features=e.features,a.featureSet.geometryType=e.geometryType,a.layerDefinition.geometryType=a.featureSet.geometryType,a.layerDefinition.objectIdField=e.objectIdFieldName??"",a.layerDefinition.typeIdField=e.typeIdFieldName,a.layerDefinition.globalIdField=e.globalIdFieldName,a.layerDefinition.fields=e.fields,e.spatialReference&&(a.layerDefinition.spatialReference=e.spatialReference)):(a.layerDefinition=e.layerDefinition,a.featureSet=e.featureSet,e.layerDefinition.spatialReference&&(a.layerDefinition.spatialReference=e.layerDefinition.spatialReference))}else{if(!(n[0]instanceof k.A))throw new U.D$("InvalidParameter",r);{let e=JSON.parse(n[0].castToText(!0)),t=me(e,"layerdefinition");if(null!==t){a.layerDefinition.geometryType=me(t,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.globalIdField=me(t,"globalidfield",""),a.layerDefinition.objectIdField=me(t,"objectidfield",""),a.layerDefinition.typeIdField=me(t,"typeidfield",""),a.layerDefinition.hasZ=!0===me(t,"hasz",!1),a.layerDefinition.hasM=!0===me(t,"hasm",!1);let r=me(t,"spatialreference");r&&(a.layerDefinition.spatialReference=ge(r));let i=[];for(let e of me(t,"fields",[])){let t={name:me(e,"name",""),alias:me(e,"alias",""),type:me(e,"type",""),nullable:me(e,"nullable",!0),editable:me(e,"editable",!0),length:me(e,"length",null),domain:ye(me(e,"domain"))};i.push(t)}a.layerDefinition.fields=i;let n=me(e,"featureset");if(n){let e={};for(let t of i)e[t.name.toLowerCase()]=t.name;for(let t of me(n,"features",[])){let r={},i=me(t,"attributes",{});for(let t in i)r[e[t.toLowerCase()]]=i[t];a.featureSet.features.push({attributes:r,geometry:we(me(t,"geometry"))})}}}else{a.layerDefinition.hasZ=!0===me(e,"hasz",!1),a.layerDefinition.hasM=!0===me(e,"hasm",!1),a.layerDefinition.geometryType=me(e,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.objectIdField=me(e,"objectidfieldname",""),a.layerDefinition.typeIdField=me(e,"typeidfieldname","");let t=me(e,"spatialreference");t&&(a.layerDefinition.spatialReference=ge(t));let i=[],n=me(e,"fields",null);if(!(0,pe.cy)(n))throw new U.D$("InvalidParameter",r);for(let e of n){let t={name:me(e,"name",""),alias:me(e,"alias",""),type:me(e,"type",""),nullable:me(e,"nullable",!0),editable:me(e,"editable",!0),length:me(e,"length",null),domain:ye(me(e,"domain"))};i.push(t)}a.layerDefinition.fields=i;let l={};for(let e of i)l[e.name.toLowerCase()]=e.name;let s=me(e,"features",null);if((0,pe.cy)(s))for(let e of s){let t={},r=me(e,"attributes",{});for(let e in r)t[l[e.toLowerCase()]]=r[e];a.featureSet.features.push({attributes:t,geometry:we(me(e,"geometry",null))})}else s=null,a.featureSet.features=s}}}if(!1===function(e){return!(!e.layerDefinition||!e.featureSet||!1===function(e){for(let t of["",null,"esriGeometryNull","esriGeometryPoint","esriGeometryPolyline","esriGeometryPolygon","esriGeometryMultipoint","esriGeometryEnvelope"])if(t===e)return!0;return!1}(e.layerDefinition.geometryType)||!1===(0,pe.cy)(e.layerDefinition.fields)||!1===(0,pe.cy)(e.featureSet.features))}(a))throw new U.D$("InvalidParameter",r);return a.layerDefinition.geometryType||(a.layerDefinition.geometryType="esriGeometryNull"),oe.A.create(a,t.spatialReference)})},e.signatures.push({name:"featureset",min:1,max:1}),e.functions.filter=function(t,r){return e.standardFunctionAsync(t,r,async(a,l,s)=>{if((0,Q.E)(s,2,2,r),(0,pe.cy)(s[0])||(0,Q.g)(s[0])){let e,n=[],a=s[0];if(a instanceof de.A&&(a=a.toArray()),!(0,Q.i)(s[1]))throw new U.D$("InvalidParameter",r);e=s[1].createFunction(t);for(let t of a){let r=e(t);(0,i.$X)(r)?!0===await r&&n.push(t):!0===r&&n.push(t)}return n}if((0,Q.k)(s[0])){let r=await s[0].load(),i=n.A.create(s[1],{fieldsIndex:r.getFieldsIndex(),timeZone:r.dateFieldsTimeZoneDefaultUTC}),a=i.getVariables();if(a.length>0){let r={};for(let i of a)r[i]=e.evaluateIdentifier(t,{name:i});i.parameters=r}return new J.A({parentfeatureset:s[0],whereclause:i})}throw new U.D$("InvalidParameter",r)})},e.signatures.push({name:"filter",min:2,max:2}),e.functions.orderby=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,i)=>{if((0,Q.E)(i,2,2,r),(0,Q.k)(i[0])){let e=new X(i[1]);return new re({parentfeatureset:i[0],orderbyclause:e})}throw new U.D$("InvalidParameter",r)})},e.signatures.push({name:"orderby",min:2,max:2}),e.functions.top=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,i)=>{if((0,Q.E)(i,2,2,r),(0,Q.k)(i[0]))return new le({parentfeatureset:i[0],topnum:i[1]});if((0,pe.cy)(i[0]))return(0,Q.v)(i[1])>=i[0].length?i[0].slice():i[0].slice(0,(0,Q.v)(i[1]));if((0,Q.g)(i[0]))return(0,Q.v)(i[1])>=i[0].length()?i[0].slice():i[0].slice(0,(0,Q.v)(i[1]));throw new U.D$("InvalidParameter",r)})},e.signatures.push({name:"top",min:2,max:2}),e.functions.first=function(t,r){return e.standardFunctionAsync(t,r,async(e,i,n)=>{if((0,Q.E)(n,1,1,r),(0,Q.k)(n[0])){let r=await n[0].first(e.abortSignal);if(null!==r){let e=Z.Xj.createFromGraphicLikeObject(r.geometry,r.attributes,n[0],t.timeZone);return e._underlyingGraphic=r,e}return r}return(0,pe.cy)(n[0])?0===n[0].length?null:n[0][0]:(0,Q.g)(n[0])?0===n[0].length()?null:n[0].get(0):null})},e.signatures.push({name:"first",min:1,max:1}),e.functions.attachments=function(t,r){return e.standardFunctionAsync(t,r,async(e,i,n)=>{(0,Q.E)(n,1,2,r);let a={minsize:-1,maxsize:-1,types:null,returnMetadata:!1};if(n.length>1)if(n[1]instanceof k.A){if(n[1].hasField("minsize")&&(a.minsize=(0,Q.v)(n[1].field("minsize"))),n[1].hasField("metadata")&&(a.returnMetadata=(0,Q.M)(n[1].field("metadata"))),n[1].hasField("maxsize")&&(a.maxsize=(0,Q.v)(n[1].field("maxsize"))),n[1].hasField("types")){let e=(0,Q.P)(n[1].field("types"),!1);e.length>0&&(a.types=e)}}else if(null!==n[1])throw new U.D$("InvalidParameter",r);if((0,Q.h)(n[0])){let e,r=n[0].fullSchema();if((0,Q.k)(r))e=r;else{if(null==r||!(0,B.eB)(r))return[];e=(0,ue.constructFeatureSet)(r,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}return await e.load(),e.queryAttachments(n[0].field(e.objectIdField),a.minsize,a.maxsize,a.types,a.returnMetadata)}if(null===n[0])return[];throw new U.D$("InvalidParameter",r)})},e.signatures.push({name:"attachments",min:1,max:2}),e.functions.featuresetbyrelationshipname=function(t,r){return e.standardFunctionAsync(t,r,async(e,i,a)=>{(0,Q.E)(a,2,4,r);let l=a[0],s=(0,Q.w)(a[1]),o=Fe(a[2]),u=(0,Q.M)((0,Q.N)(a[3],!0));if(null===a[0])return null;if(!(0,Q.h)(a[0]))throw new U.D$("InvalidParameter",r);let d,f=l.fullSchema();if((0,Q.k)(f))d=f;else{if(null==f||!(0,B.eB)(f))return null;d=(0,ue.constructFeatureSet)(f,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}d=await d.load();let c=d.relationshipMetadata().filter(e=>e.name===s);if(0===c.length)return null;if(void 0!==c[0].relationshipTableId&&null!==c[0].relationshipTableId&&c[0].relationshipTableId>-1)return(0,ue.constructFeatureSetFromRelationship)(d,c[0],l.field(d.objectIdField),d.spatialReference,o,u,t.lrucache,t.interceptor);let p=d.serviceUrl();if(!p)return null;p=p.endsWith("/")?p+c[0].relatedTableId.toString():p+"/"+c[0].relatedTableId.toString();let h=await(0,ue.constructFeatureSetFromUrl)(p,d.spatialReference,o,u,t.lrucache,t.interceptor);await h.load();let m=h.relationshipMetadata();if(m=m.filter(e=>e.id===c[0].id),!1===l.hasField(c[0].keyField)||null===l.field(c[0].keyField)){let e=await d.getFeatureByObjectId(l.field(d.objectIdField),[c[0].keyField]);if(e){let t=n.A.create(m[0].keyField+"= @id",{fieldsIndex:h.getFieldsIndex(),timeZone:h.dateFieldsTimeZoneDefaultUTC});return t.parameters={id:e.attributes[c[0].keyField]},new J.A({parentfeatureset:h,whereclause:t})}return new se.A({parentfeatureset:h})}let y=n.A.create(m[0].keyField+"= @id",{fieldsIndex:h.getFieldsIndex(),timeZone:h.dateFieldsTimeZoneDefaultUTC});return y.parameters={id:l.field(c[0].keyField)},new J.A({parentfeatureset:h,whereclause:y})})},e.signatures.push({name:"featuresetbyrelationshipname",min:2,max:4}),e.functions.featuresetbyassociation=function(t,r){return e.standardFunctionAsync(t,r,async(e,i,d)=>{(0,Q.E)(d,2,3,r);let f=d[0],c=(0,L.B)((0,Q.w)((0,Q.N)(d[1],""))),m=(0,pe.Kg)(d[2])?(0,Q.w)(d[2]):null;if(null===d[0])return null;if(!(0,Q.h)(d[0]))throw new U.D$("InvalidParameter",r);let y,g=f.fullSchema();if((0,Q.k)(g))y=g;else{if(null==g||!(0,B.eB)(g))return null;y=(0,ue.constructFeatureSet)(g,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}await y.load();let w=y.serviceUrl(),F=await(0,ue.constructAssociationMetaDataFeatureSetFromUrl)(w,t.spatialReference,!0);if(F.unVersion>=8)return await async function(e,t,r,i,n,d){let f=await e.getFeatureSetInfo();if(null===(f?.layerId??null)||!n.layerIdLookup.get(f.layerId))return null;let c=e.serviceUrl().replace(/\/FeatureServer/i,"/UtilityNetworkServer"),m=[];switch(r){case"connected":m.push("connectivity"),m.push("junction-edge-from-connectivity"),m.push("junction-edge-to-connectivity"),m.push("junction-edge-midspan-connectivity"),m.push("junction-junction-connectivity");break;case"container":case"content":m.push("containment");break;case"structure":case"attached":m.push("attachment");break;case"junctionedge":m.push("junction-edge-from-connectivity"),m.push("junction-edge-to-connectivity");break;case"midspan":m.push("junction-edge-midspan-connectivity");break;default:throw new U.D$("InvalidParameter",d)}let y=null,g=!1;if(null!==i&&""!==i&&void 0!==i){for(let e of n.terminals)e.terminalName===i&&(y=e.terminalId);null===y&&(g=!0)}let w=[];if(!g){let i=new I({globalId:t.field(e.globalIdField),networkSourceId:n.layerIdLookup.get(f.layerId).sourceId,...y?{terminalId:y}:""}),l=await async function(e,t){let r=(0,h.Dl)(e),i={..._(t),f:"json"},n=(0,h.lF)({...r.query,...i}),a=(0,h.jV)(n,{method:"post"}),l=`${r.path}/associations/query`,{data:s}=await(0,p.A)(l,a),d=T.fromJSON(s);return t.types.includes("connectivity")&&(0,o.Lx)(u.A.getLogger("esri/rest/networks/support/QueryAssociationsParameters"),"types",{replacement:"Please use 'junction-junction-connectivity' instead of 'connectivity'.",see:"https://arcg.is/11Tr8a#types",version:"4.29",warnOnce:!0}),d}(c,new x({types:m,elements:[i]})),s=0;for(let e of l.associations){let t=null,l="",o="";if(e.fromNetworkElement?.globalId===i.globalId?(t=e.toNetworkElement,o="to"):e.toNetworkElement?.globalId===i.globalId&&(t=e.fromNetworkElement,o="from"),!t)continue;switch(r){case"attached":if("attachment"!==e.associationType||"to"!==o)continue;break;case"structure":if("attachment"!==e.associationType||"from"!==o)continue;break;case"container":if("containment"!==e.associationType||"from"!==o)continue;break;case"content":if("containment"!==e.associationType||"to"!==o)continue;break;case"connected":break;case"junctionedge":"junction-edge-to-connectivity"===e.associationType?l="to":"junction-edge-from-connectivity"===e.associationType&&(l="from");break;case"midspan":if("junction-edge-midspan-connectivity"!==e.associationType)continue}let u=n.sourceIdLookup.get(t.networkSourceId)?.className??"";w.push(new a.A({geometry:null,attributes:{objectId:s++,globalId:t.globalId,percentAlong:e.percentAlong??0,isContentVisible:+!e.isContentVisible,className:u,side:l}}))}}let F=new l.default({source:w,geometryType:null,objectIdField:"objectId",globalIdField:"globalId",fields:[new s.A({name:"objectId",alias:"objectId",type:"oid"}),new s.A({name:"globalId",alias:"globalId",type:"global-id"}),new s.A({name:"percentAlong",alias:"percentAlong",type:"double"}),new s.A({name:"side",alias:"side",type:"string"}),new s.A({name:"isContentVisible",alias:"isContentVisible",type:"integer"}),new s.A({name:"className",alias:"className",type:"string"})]});return(0,ue.constructFeatureSet)(F)}(y,f,c,m,F,r);let b=F.associations;if(null==b)return null;let A=null,S=null,N=!1;if(null!==m&&""!==m&&void 0!==m){for(let e of F.terminals)e.terminalName===m&&(S=e.terminalId);null===S&&(N=!0)}let C=b.getFieldsIndex(),v=C.get("TOGLOBALID").name,D=C.get("FROMGLOBALID").name,E=C.get("TOTERMINALID").name,k=C.get("FROMTERMINALID").name,Z=C.get("FROMNETWORKSOURCEID").name,$=C.get("TONETWORKSOURCEID").name,j=C.get("ASSOCIATIONTYPE").name,M=C.get("ISCONTENTVISIBLE").name,W=C.get("OBJECTID").name;for(let e of y.fields)if("global-id"===e.type){A=f.field(e.name);break}let q=null,R=new O(new s.A({name:"percentalong",alias:"percentalong",type:"double"}),n.A.create("0",{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC})),J=new O(new s.A({name:"side",alias:"side",type:"string"}),n.A.create("''",{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC})),z="globalid",H="globalId",Y={};for(let e in F.lkp)Y[e]=F.lkp[e].sourceId;let X=new G(new s.A({name:"classname",alias:"classname",type:"string"}),null,Y),ee="";switch(c){case"midspan":{ee=`((${v}='${A}') OR ( ${D}='${A}')) AND (${j} IN (5))`,X.codefield=n.A.create(`CASE WHEN (${v}='${A}') THEN ${Z} ELSE ${$} END`,{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC});let e=(0,B.ke)(K.findField(b.fields,D));e.name=z,e.alias=z,q=new O(e,n.A.create(`CASE WHEN (${D}='${A}') THEN ${v} ELSE ${D} END`,{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC})),R=F.unVersion>=4?new P(K.findField(b.fields,C.get("PERCENTALONG").name)):new O(new s.A({name:"percentalong",alias:"percentalong",type:"double"}),n.A.create("0",{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC}));break}case"junctionedge":{ee=`((${v}='${A}') OR ( ${D}='${A}')) AND (${j} IN (4,6))`,X.codefield=n.A.create(`CASE WHEN (${v}='${A}') THEN ${Z} ELSE ${$} END`,{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC});let e=(0,B.ke)(K.findField(b.fields,D));e.name=z,e.alias=z,q=new O(e,n.A.create(`CASE WHEN (${D}='${A}') THEN ${v} ELSE ${D} END`,{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC})),J=new O(new s.A({name:"side",alias:"side",type:"string"}),n.A.create(`CASE WHEN (${j}=4) THEN 'from' ELSE 'to' END`,{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC}));break}case"connected":{let e=`${v}='@T'`,t=`${D}='@T'`;null!==S&&(e+=` AND ${E}=@A`,t+=` AND ${k}=@A`),ee="(("+e+") OR ("+t+"))",ee=(0,Q.a1)(ee,"@T",A??""),e=(0,Q.a1)(e,"@T",A??""),null!==S&&(e=(0,Q.a1)(e,"@A",S.toString()),ee=(0,Q.a1)(ee,"@A",S.toString())),X.codefield=n.A.create("CASE WHEN "+e+` THEN ${Z} ELSE ${$} END`,{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC});let r=(0,B.ke)(K.findField(b.fields,D));r.name=z,r.alias=z,q=new O(r,n.A.create("CASE WHEN "+e+` THEN ${D} ELSE ${v} END`,{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC}));break}case"container":ee=`${v}='${A}' AND ${j} = 2`,null!==S&&(ee+=` AND ${E} = `+S.toString()),X.codefield=Z,ee="( "+ee+" )",q=new V(K.findField(b.fields,D),z,z);break;case"content":ee=`(${D}='${A}' AND ${j} = 2)`,null!==S&&(ee+=` AND ${k} = `+S.toString()),X.codefield=$,ee="( "+ee+" )",q=new V(K.findField(b.fields,v),z,z);break;case"structure":ee=`(${v}='${A}' AND ${j} = 3)`,null!==S&&(ee+=` AND ${E} = `+S.toString()),X.codefield=Z,ee="( "+ee+" )",q=new V(K.findField(b.fields,D),z,H);break;case"attached":ee=`(${D}='${A}' AND ${j} = 3)`,null!==S&&(ee+=` AND ${k} = `+S.toString()),X.codefield=$,ee="( "+ee+" )",q=new V(K.findField(b.fields,v),z,H);break;default:throw new U.D$("InvalidParameter",r)}return N&&(ee="1 <> 1"),new K({parentfeatureset:b,adaptedFields:[new P(K.findField(b.fields,W)),new P(K.findField(b.fields,M)),q,J,X,R],extraFilter:ee?n.A.create(ee,{fieldsIndex:b.getFieldsIndex(),timeZone:b.dateFieldsTimeZoneDefaultUTC}):null})})},e.signatures.push({name:"featuresetbyassociation",min:2,max:6}),e.functions.groupby=function(t,r){return e.standardFunctionAsync(t,r,async(i,a,l)=>{if((0,Q.E)(l,3,3,r),!(0,Q.k)(l[0]))throw new U.D$("InvalidParameter",r);let s=await l[0].load(),o=[],u=[],d=!1,f=[];if((0,pe.Kg)(l[1]))f.push(l[1]);else if(l[1]instanceof k.A)f.push(l[1]);else if((0,pe.cy)(l[1]))f=l[1];else{if(!(0,Q.g)(l[1]))throw new U.D$("InvalidParameter",r);f=l[1].toArray()}for(let e of f)if((0,pe.Kg)(e)){let t=n.A.create((0,Q.w)(e),{fieldsIndex:s.getFieldsIndex(),timeZone:s.dateFieldsTimeZoneDefaultUTC}),r=!0===(0,q.DA)(t)?(0,Q.w)(e):"%%%%FIELDNAME";o.push({name:r,expression:t}),"%%%%FIELDNAME"===r&&(d=!0)}else{if(!(e instanceof k.A))throw new U.D$("InvalidParameter",r);{let t=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",i=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===t&&(d=!0),!t||!(0,pe.Kg)(t)||!(0,pe.Kg)(i))throw new U.D$("InvalidParameter",r);o.push({name:t,expression:n.A.create(i||t,{fieldsIndex:s.getFieldsIndex(),timeZone:s.dateFieldsTimeZoneDefaultUTC})})}}if(f=[],(0,pe.Kg)(l[2]))f.push(l[2]);else if((0,pe.cy)(l[2]))f=l[2];else if((0,Q.g)(l[2]))f=l[2].toArray();else{if(!(l[2]instanceof k.A))throw new U.D$("InvalidParameter",r);f.push(l[2])}for(let e of f){if(!(e instanceof k.A))throw new U.D$("InvalidParameter",r);{let t=e.hasField("name")?e.field("name"):"",i=e.hasField("statistic")?e.field("statistic"):"",a=e.hasField("expression")?e.field("expression"):"";if(!(t&&(0,pe.Kg)(t)&&i&&(0,pe.Kg)(i)&&a&&(0,pe.Kg)(a)))throw new U.D$("InvalidParameter",r);u.push({name:t,statistic:i,expression:n.A.create(a,{fieldsIndex:s.getFieldsIndex(),timeZone:s.dateFieldsTimeZoneDefaultUTC})})}}if(d){let e={};for(let t of s.fields)e[t.name.toLowerCase()]=1;for(let t of o)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);for(let t of u)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(let r of o)if("%%%%FIELDNAME"===r.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,r.name="FIELD_"+t.toString()}}for(let r of o)he(r.expression,e,t);for(let r of u)he(r.expression,e,t);return new ne({parentfeatureset:l[0],groupbyfields:o,statsfields:u})})},e.signatures.push({name:"groupby",min:3,max:3}),e.functions.distinct=function(t,r){return e.standardFunctionAsync(t,r,async(i,a,l)=>{if((0,Q.k)(l[0])){(0,Q.E)(l,2,2,r);let i=await l[0].load(),a=[],s=[];if((0,pe.Kg)(l[1]))s.push(l[1]);else if(l[1]instanceof k.A)s.push(l[1]);else if((0,pe.cy)(l[1]))s=l[1];else{if(!(0,Q.g)(l[1]))throw new U.D$("InvalidParameter",r);s=l[1].toArray()}let o=!1;for(let e of s)if((0,pe.Kg)(e)){let t=n.A.create((0,Q.w)(e),{fieldsIndex:i.getFieldsIndex(),timeZone:i.dateFieldsTimeZoneDefaultUTC}),r=!0===(0,q.DA)(t)?(0,Q.w)(e):"%%%%FIELDNAME";a.push({name:r,expression:t}),"%%%%FIELDNAME"===r&&(o=!0)}else{if(!(e instanceof k.A))throw new U.D$("InvalidParameter",r);{let t=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",l=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===t&&(o=!0),!t||!(0,pe.Kg)(t)||!(0,pe.Kg)(l))throw new U.D$("InvalidParameter",r);a.push({name:t,expression:n.A.create(l||t,{fieldsIndex:i.getFieldsIndex(),timeZone:i.dateFieldsTimeZoneDefaultUTC})})}}if(o){let e={};for(let t of i.fields)e[t.name.toLowerCase()]=1;for(let t of a)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(let r of a)if("%%%%FIELDNAME"===r.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,r.name="FIELD_"+t.toString()}}for(let r of a)he(r.expression,e,t);return new ne({parentfeatureset:l[0],groupbyfields:a,statsfields:[]})}return function(e){if(1===e.length){if((0,pe.cy)(e[0]))return(0,ce.dM)(e[0],-1);if((0,Q.g)(e[0]))return(0,ce.dM)(e[0].toArray(),-1)}return(0,ce.dM)(e,-1)}(l)})},e.functions.getfeaturesetinfo=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,i)=>{if((0,Q.E)(i,1,1,r),!(0,Q.k)(i[0]))return null;let n=await i[0].getFeatureSetInfo();return n?k.A.createMutable({__proto__:null,layerId:n.layerId,layerName:n.layerName,itemId:n.itemId,serviceLayerUrl:n.serviceLayerUrl,webMapLayerId:n.webMapLayerId??null,webMapLayerTitle:n.webMapLayerTitle??null,className:null,objectClassId:null}):null})},e.signatures.push({name:"getfeaturesetinfo",min:1,max:1}),e.functions.filterbysubtypecode=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,i)=>{if((0,Q.E)(i,2,2,r),(0,Q.k)(i[0])){let e=await i[0].load(),t=i[1];if(!(0,pe.Fq)(t))throw new U.D$("InvalidParameter",r);if(e.subtypeField){let t=n.A.create(`${e.subtypeField}= ${i[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new J.A({parentfeatureset:i[0],whereclause:t})}if(null===e.typeIdField||""===e.typeIdField)throw new U.D$("FeatureSetDoesNotHaveSubtypes",r);let a=n.A.create(`${e.typeIdField}= ${i[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new J.A({parentfeatureset:i[0],whereclause:a})}throw new U.D$("InvalidParameter",r)})},e.signatures.push({name:"filterbysubtypecode",min:2,max:2})}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[9187],{79187(t,i,s){s.r(i),s.d(i,{Envelope2D:()=>r});var e=s(55537),n=s(83661);class r{m_EnvelopeType=2;xmin;ymin;xmax;ymax;static construct(t,i,s,e){return new r(t,i,s,e)}constructor(t,i,s,e){void 0===t?(this.xmin=NaN,this.ymin=NaN,this.xmax=NaN,this.ymax=NaN):"number"==typeof t?(this.xmin=t,this.ymin=i,this.xmax=s,this.ymax=e):(this.xmin=t.xmin,this.ymin=t.ymin,this.xmax=t.xmax,this.ymax=t.ymax),this.normalize()}static constructEmpty(){return new r(NaN,NaN,NaN,NaN)}clone(){return new r(this)}assign(t){return this.xmin=t.xmin,this.xmax=t.xmax,this.ymin=t.ymin,this.ymax=t.ymax,this}width(){return this.xmax-this.xmin}height(){return this.ymax-this.ymin}maxDimension(){return Math.max(this.width(),this.height())}minDimension(){return Math.min(this.width(),this.height())}sqrDiagonal(){let t=this.width(),i=this.height();return t*t+i*i}diagonal(){return Math.sqrt(this.sqrDiagonal())}getCenterX(){return.5*(this.xmin+this.xmax)}getCenterY(){return.5*(this.ymin+this.ymax)}getCenter(){return n.P.construct(this.getCenterX(),this.getCenterY())}queryCenter(t){t.x=.5*(this.xmin+this.xmax),t.y=.5*(this.ymin+this.ymax)}setEmpty(){this.xmin=NaN,this.ymin=NaN,this.xmax=NaN,this.ymax=NaN}setInfinite(){this.xmin=-1/0,this.xmax=1/0,this.ymin=-1/0,this.ymax=1/0}isDegenerate(t){return!this.isEmpty()&&(this.width()<=t||this.height()<=t)}isZero(){return!(this.isEmpty()||this.width()&&this.height())}isEmpty(){return Number.isNaN(this.xmin)||Number.isNaN(this.ymin)||Number.isNaN(this.xmax)||Number.isNaN(this.ymax)}mergeNeCoords(t,i){this.xmin>t?this.xmin=t:this.xmax<t&&(this.xmax=t),this.ymin>i?this.ymin=i:this.ymax<i&&(this.ymax=i)}mergeNe(t){this.mergeNeCoords(t.x,t.y)}mergeCoords(t,i){this.isEmpty()?(this.xmin=t,this.ymin=i,this.xmax=t,this.ymax=i):(this.xmin>t?this.xmin=t:this.xmax<t&&(this.xmax=t),this.ymin>i?this.ymin=i:this.ymax<i&&(this.ymax=i))}merge(t){this.mergeCoords(t.x,t.y)}mergeEnvelope2D(t){t.isEmpty()||(this.mergeCoords(t.xmin,t.ymin),this.mergeNeCoords(t.xmax,t.ymax))}mergePoints(t,i){for(let s=0;s<i;){if(!this.isEmpty()){for(let e=s;e<i;e++)this.mergeNe(t[e]);break}this.setCoords(t[s]),s++}}mergePointsInterleaved(t,i,s){for(let e=2*i,n=e+2*s;e<n;e+=2)this.mergeCoords(t.read(e),t.read(e+1))}inflateCoords(t,i){this.isEmpty()||(this.xmin-=t,this.xmax+=t,this.ymin-=i,this.ymax+=i,(this.xmin>this.xmax||this.ymin>this.ymax)&&this.setEmpty())}getInflatedCoords(t,i){let s=this.clone();return s.inflateCoords(t,i),s}inflate(t){this.inflateCoords(t,t)}getInflated(t){let i=this.clone();return i.inflateCoords(t,t),i}zoom(t,i){this.isEmpty()||this.setCoords({center:this.getCenter(),width:t*this.width(),height:i*this.height()})}scale(t){t<0&&this.setEmpty(),this.xmin*=t,this.xmax*=t,this.ymin*=t,this.ymax*=t}equals(t,i){return!(!this.isEmpty()||!t.isEmpty())||(i?Math.abs(this.xmin-t.xmin)<=i&&Math.abs(this.ymin-t.ymin)<=i&&Math.abs(this.xmax-t.xmax)<=i&&Math.abs(this.ymax-t.ymax)<=i:this.xmin===t.xmin&&this.ymin===t.ymin&&this.xmax===t.xmax&&this.ymax===t.ymax)}setCoords(t){void 0===t.xmin?void 0===t.x?void 0===t.pt1?void 0===t.env2D?void 0===t.pt?void 0===t.center?(0,e.a)("unrecognized input type for setCoords"):(this.xmin=t.center.x-.5*t.width,this.xmax=this.xmin+t.width,this.ymin=t.center.y-.5*t.height,this.ymax=this.ymin+t.height,this.normalize()):(this.xmin=t.pt.x,this.xmax=t.pt.x,this.ymin=t.pt.y,this.ymax=t.pt.y):(this.xmin=t.env2D.xmin,this.xmax=t.env2D.xmax,this.ymin=t.env2D.ymin,this.ymax=t.env2D.ymax,this.normalize()):(this.xmin=t.pt1.x,this.ymin=t.pt1.y,this.xmax=t.pt2.x,this.ymax=t.pt2.y,this.normalize()):(this.xmin=t.x,this.xmax=t.x,this.ymin=t.y,this.ymax=t.y):(this.xmin=t.xmin,this.xmax=t.xmax,this.ymin=t.ymin,this.ymax=t.ymax),this.normalize()}queryIntervalX(t){this.isEmpty()?t.setEmpty():t.setCoords(this.xmin,this.xmax)}queryIntervalY(t){this.isEmpty()?t.setEmpty():t.setCoords(this.ymin,this.ymax)}setFromPoints(t,i){if(0===i)return void this.setEmpty();if(Array.isArray(t)){let s=t;this.setCoords(s[0]);for(let t=1;t<i;){if(!this.isEmpty()){for(let e=t;e<i;e++)this.mergeNe(s[e]);return}this.setCoords(s[t]),t++}return}let s=t;this.setCoords({x:s[0],y:s[1]});for(let t=1,e=2*i;t<e;t+=2){if(!this.isEmpty()){for(let e=t,n=2*i;e<n;e+=2)this.mergeNeCoords(s[e],s[e+1]);return}this.setCoords({x:s[t],y:s[t+1]}),t+=2}}normalize(){let t=!1;this.xmin<=this.xmax||([this.xmin,this.xmax]=[this.xmax,this.xmin],t=!0),this.ymin<=this.ymax||([this.ymin,this.ymax]=[this.ymax,this.ymin],t=!0),t&&!(this.xmin<=this.xmax&&this.ymin<=this.ymax)&&this.setEmpty()}isValid(){return this.isEmpty()||this.xmin<=this.xmax&&this.ymin<=this.ymax}getLowerLeft(){return new n.P(this.xmin,this.ymin)}getLowerRight(){return new n.P(this.xmax,this.ymin)}getUpperLeft(){return new n.P(this.xmin,this.ymax)}getUpperRight(){return new n.P(this.xmax,this.ymax)}move(t,i){this.isEmpty()||(this.xmin+=t,this.ymin+=i,this.xmax+=t,this.ymax+=i)}centerAtCoords(t,i){this.move(t-this.getCenterX(),i-this.getCenterY())}centerAt(t){this.centerAtCoords(t.x,t.y)}containsCoords(t,i){return t>=this.xmin&&t<=this.xmax&&i>=this.ymin&&i<=this.ymax}contains(t){return this.containsCoords(t.x,t.y)}containsEnvelope(t){return t.xmin>=this.xmin&&t.xmax<=this.xmax&&t.ymin>=this.ymin&&t.ymax<=this.ymax}containsExclusiveCoords(t,i){return t>this.xmin&&t<this.xmax&&i>this.ymin&&i<this.ymax}containsExclusive(t){return this.containsExclusiveCoords(t.x,t.y)}containsExclusiveEnvelope(t){return t.xmin>this.xmin&&t.xmax<this.xmax&&t.ymin>this.ymin&&t.ymax<this.ymax}isIntersecting(t){return(this.xmin<=t.xmin?this.xmax>=t.xmin:t.xmax>=this.xmin)&&(this.ymin<=t.ymin?this.ymax>=t.ymin:t.ymax>=this.ymin)}isIntersectingNe(t){return(this.xmin<=t.xmin?this.xmax>=t.xmin:t.xmax>=this.xmin)&&(this.ymin<=t.ymin?this.ymax>=t.ymin:t.ymax>=this.ymin)}intersect(t){if(this.isEmpty())return!1;if(t.isEmpty())return this.setEmpty(),!1;t.xmin>this.xmin&&(this.xmin=t.xmin),t.xmax<this.xmax&&(this.xmax=t.xmax),t.ymin>this.ymin&&(this.ymin=t.ymin),t.ymax<this.ymax&&(this.ymax=t.ymax);let i=this.xmin<=this.xmax&&this.ymin<=this.ymax;return i||this.setEmpty(),i}queryCorner(t){switch(3&t){case 0:return new n.P(this.xmin,this.ymin);case 1:return new n.P(this.xmin,this.ymax);case 2:return new n.P(this.xmax,this.ymax);default:return new n.P(this.xmax,this.ymin)}}queryCorners(t){t[0].setCoords(this.xmin,this.ymin),t[1].setCoords(this.xmin,this.ymax),t[2].setCoords(this.xmax,this.ymax),t[3].setCoords(this.xmax,this.ymin)}queryCornersReversed(t){t[0].setCoords(this.xmin,this.ymin),t[1].setCoords(this.xmax,this.ymin),t[2].setCoords(this.xmax,this.ymax),t[3].setCoords(this.xmin,this.ymax)}reaspect(t,i){if(this.isEmpty())return;let s=t/i,e=.5*this.width(),n=.5*this.height()*s;if(e<=n){let t=this.getCenterX();this.xmin=t-n,this.xmax=t+n}else{let t=e/s,i=this.getCenterY();this.ymin=i-t,this.ymax=i+t}this.normalize()}getArea(){return this.isEmpty()?0:this.width()*this.height()}getLength(){return this.isEmpty()?0:2*(this.width()+this.height())}clipCode(t){return+(t.x<this.xmin)|(t.x>this.xmax)<<1|(t.y<this.ymin)<<2|(t.y>this.ymax)<<3}static XLESSXMIN=1;static YLESSYMIN=4;static XMASK=3;static YMASK=12;clipLine(t,i){let s=this.clipCode(t),e=this.clipCode(i);if(s&e)return 0;if(!(s|e))return 4;let n=!!s|(e?2:0);do{let n=i.x-t.x,h=i.y-t.y;if(Math.abs(n)>Math.abs(h)?s&r.XMASK?(s&r.XLESSXMIN?(t.y+=h*(this.xmin-t.x)/n,t.x=this.xmin):(t.y+=h*(this.xmax-t.x)/n,t.x=this.xmax),s=this.clipCode(t)):e&r.XMASK?(e&r.XLESSXMIN?(i.y+=h*(this.xmin-i.x)/n,i.x=this.xmin):(i.y+=h*(this.xmax-i.x)/n,i.x=this.xmax),e=this.clipCode(i)):s?(s&r.YLESSYMIN?(t.x+=n*(this.ymin-t.y)/h,t.y=this.ymin):(t.x+=n*(this.ymax-t.y)/h,t.y=this.ymax),s=this.clipCode(t)):(e&r.YLESSYMIN?(i.x+=n*(this.ymin-i.y)/h,i.y=this.ymin):(i.x+=n*(this.ymax-i.y)/h,i.y=this.ymax),e=this.clipCode(i)):s&r.YMASK?(s&r.YLESSYMIN?(t.x+=n*(this.ymin-t.y)/h,t.y=this.ymin):(t.x+=n*(this.ymax-t.y)/h,t.y=this.ymax),s=this.clipCode(t)):e&r.YMASK?(e&r.YLESSYMIN?(i.x+=n*(this.ymin-i.y)/h,i.y=this.ymin):(i.x+=n*(this.ymax-i.y)/h,i.y=this.ymax),e=this.clipCode(i)):s?(s&r.XLESSXMIN?(t.y+=h*(this.xmin-t.x)/n,t.x=this.xmin):(t.y+=h*(this.xmax-t.x)/n,t.x=this.xmax),s=this.clipCode(t)):(e&r.XLESSXMIN?(i.y+=h*(this.xmin-i.x)/n,i.x=this.xmin):(i.y+=h*(this.xmax-i.x)/n,i.x=this.xmax),e=this.clipCode(i)),s&e)return 0}while(s|e);return n}distanceFromEnvelope(t){return Math.sqrt(this.sqrDistanceEnvelope(t,null,null))}distance(t){return Math.sqrt(this.sqrDistance(t))}sqrDistanceEnvelope(t,i,s){if(!i&&!s){if(this.isEmpty()||t.isEmpty())return NaN;let i,s=0,e=0;return i=this.xmin-t.xmax,i>s&&(s=i),i=this.ymin-t.ymax,i>e&&(e=i),i=t.xmin-this.xmax,i>s&&(s=i),i=t.ymin-this.ymax,i>e&&(e=i),s*s+e*e}if(this.isEmpty()||t.isEmpty())return i&&i.setNAN(),s&&s.setNAN(),NaN;let e,n=0,r=0,h=Math.max(this.xmin,t.xmin),u=Math.max(this.ymin,t.ymin);return i&&i.setCoords(h,u),s&&s.setCoords(h,u),e=this.xmin-t.xmax,e>n&&(n=e,i&&(i.x=this.xmin),s&&(s.x=t.xmax)),e=this.ymin-t.ymax,e>r&&(r=e,i&&(i.y=this.ymin),s&&(s.y=t.ymax)),e=t.xmin-this.xmax,e>n&&(n=e,i&&(i.x=this.xmax),s&&(s.x=t.xmin)),e=t.ymin-this.ymax,e>r&&(r=e,i&&(i.y=this.ymax),s&&(s.y=t.ymin)),n*n+r*r}sqrDistance(t,i){if(void 0===i){if(this.isEmpty()||t.isNAN())return NaN;let i,s=0,e=0;return i=this.xmin-t.x,i>s&&(s=i),i=this.ymin-t.y,i>e&&(e=i),i=t.x-this.xmax,i>s&&(s=i),i=t.y-this.ymax,i>e&&(e=i),s*s+e*e}if(this.isEmpty()||t.isNAN())return i.setNAN(),NaN;i.assign(t);let s,e=0,n=0;return s=this.xmin-t.x,s>e&&(e=s,i.x=this.xmin),s=this.ymin-t.y,s>n&&(n=s,i.y=this.ymin),s=t.x-this.xmax,s>e&&(e=s,i.x=this.xmax),s=t.y-this.ymax,s>n&&(n=s,i.y=this.ymax),e*e+n*n}sqrMaxMinDistanceEnvelope(t){if(this.isEmpty()||t.isEmpty())return NaN;let i=Number.MAX_VALUE;{let s=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymin),e=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymax),r=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymin),h=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmin,t.ymax),e=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymax),r=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymax),h=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmax,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymin),e=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymax),r=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymin),h=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmin,t.ymin),e=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymin),r=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymin),h=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmax,t.ymin);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}return i}sqrMaxDistanceEnvelope(t){if(this.isEmpty()||t.isEmpty())return NaN;let i=0,s=(0,n.m)(n.P,4);this.queryCorners(s);let e=(0,n.m)(n.P,4);t.queryCorners(e);for(let t=0;t<4;t++)for(let r=0;r<4;r++){let h=n.P.sqrDistance(s[t],e[r]);h>i&&(i=h)}return i}sqrMaxMinDistance(t){let i,s=n.P.sqrDistance(t,this.getLowerLeft()),e=n.P.sqrDistance(t,this.getUpperLeft()),r=n.P.sqrDistance(t,this.getLowerRight()),h=n.P.sqrDistance(t,this.getUpperRight()),u=Math.max(s,e);return i=Math.max(s,r),u>i&&(u=i),i=Math.max(e,h),u>i&&(u=i),i=Math.max(r,h),u>i&&(u=i),u}sqrMinDistance(t){return this.contains(t)?0:this.sqrDistance(t)}sqrMaxDistance(t){let i=n.P.sqrDistance(t,this.getLowerLeft());return i=Math.max(n.P.sqrDistance(t,this.getUpperLeft()),i),i=Math.max(n.P.sqrDistance(t,this.getUpperRight()),i),Math.max(n.P.sqrDistance(t,this.getLowerRight()),i)}snapToBoundary(t){if(t.isNAN())return!1;if(this.isEmpty())return t.setNAN(),!0;let i=!0;if(t.x<this.xmin?t.x=this.xmin:t.x>this.xmax?t.x=this.xmax:i=!1,t.y<this.ymin?t.y=this.ymin:t.y>this.ymax?t.y=this.ymax:i=!1,i)return!0;if(t.x===this.xmin||t.x===this.xmax||t.y===this.ymin||t.y===this.ymax)return!1;let s=this.xmax-t.x,e=t.x-this.xmin,n=this.ymax-t.y,r=t.y-this.ymin;return Math.max(s,e)>Math.max(n,r)?t.y=r<n?this.ymin:this.ymax:t.x=e<s?this.xmin:this.xmax,!0}snapClip(t){let i=(0,n.c)(t.x,this.xmin,this.xmax),s=(0,n.c)(t.y,this.ymin,this.ymax);return n.P.construct(i,s)}boundaryDistance(t){if(this.isEmpty()||t.isNAN())return NaN;if(t.x===this.xmin)return t.y-this.ymin;let i=this.ymax-this.ymin,s=this.xmax-this.xmin;if(t.y===this.ymax)return i+t.x-this.xmin;if(t.x===this.xmax)return i+s+this.ymax-t.y;if(t.y===this.ymin)return 2*i+s+this.xmax-t.x;let e=new n.P;return e.setCoordsPoint2D(t),this.snapToBoundary(e),this.boundaryDistance(e)}envelopeSide(t){if(this.isEmpty())return-1;let i=this.boundaryDistance(t),s=this.ymax-this.ymin,e=this.xmax-this.xmin;return i<s?0:(i-=s)<e?1:i-e<s?2:3}querySide(t,i){switch(t){case 0:i.constructFromCoords(this.xmin,this.ymin,this.xmin,this.ymax);break;case 1:i.constructFromCoords(this.xmin,this.ymax,this.xmax,this.ymax);break;case 2:i.constructFromCoords(this.xmax,this.ymax,this.xmax,this.ymin);break;case 3:i.constructFromCoords(this.xmax,this.ymin,this.xmin,this.ymin);break;default:(0,e.t)("query_side")}return i}isPointOnBoundary(t,i){return Math.abs(t.x-this.xmin)<=i||Math.abs(t.x-this.xmax)<=i||Math.abs(t.y-this.ymin)<=i||Math.abs(t.y-this.ymax)<=i}calculateToleranceFromEnvelope(){return this.isEmpty()?(0,n.g)():(Math.abs(this.xmin)+Math.abs(this.xmax)+Math.abs(this.ymin)+Math.abs(this.ymax)+1)*(0,n.g)()}toString(){return`[${this.xmin}, ${this.ymin}, ${this.xmax}, ${this.ymax}]`}}},55537(t,i,s){function e(t,i){try{if(!t)throw Error(i)}catch(t){throw t}}s.d(i,{A:()=>S,B:()=>z,C:()=>P,D:()=>F,G:()=>o,a:()=>q,b:()=>w,c:()=>R,d:()=>A,e:()=>E,f:()=>y,g:()=>e,h:()=>_,i:()=>f,j:()=>p,k:()=>b,l:()=>v,m:()=>d,n:()=>g,o:()=>M,p:()=>L,q:()=>C,r:()=>I,s:()=>B,t:()=>T,u:()=>c,v:()=>N,w:()=>Z,x:()=>D,y:()=>G,z:()=>k});class n extends Error{constructor(t,i){super(i),this.m_AdditionalMessage=i,this.m_ErrorType=t,this.name="GeometryError"}what(){return function(t){switch(t){case 1:return"Unknown error";case 2:return"Corrupted geometry";case 3:return"Empty geometry";case 4:return"Math singularity";case 5:return"Buffer is too small";case 6:return"Invalid shape type";case 7:return"Projection out of supported range";case 8:return"Non simple geometry";case 9:return"Cannot calculate geodesic";case 10:return"Notation conversion";case 11:return"Missing grid file";case 12:return"Invalid call";case 13:return"Internal error";case 14:return"Not implemented";case 15:return"IO error";case 16:return"Invalid 3D";case 17:return"An ambiguous geography edge with antipodal points";case 18:return"Geocentric coordinates require ellipsoidal height";case 19:return"Geography cannot be projected into a gnomonic plane or a result of an operation cannot fit into a gnomonic plane";case 20:return"Geometry is too large to be exported in to a given format";case 22:return"Operation is canceled by the user";case 21:return"The operation, such as projection or geodetic computation, cannot be performed without pe-wasm loaded";default:return"unknown error"}}(this.m_ErrorType)}additionalMessage(){return this.m_AdditionalMessage?this.m_AdditionalMessage:""}code(){return this.m_ErrorType}m_AdditionalMessage;m_ErrorType}class r extends n{constructor(t){super(2,t),this.name="CorruptedGeometryError"}}class h extends n{constructor(t){super(3,t),this.name="EmptyGeometryError"}}class u extends n{constructor(t){super(4,t),this.name="MathSingularityError"}}class a extends n{constructor(t){super(21,t),this.name="ProjectionEngineNotLoadedError"}}class m extends n{constructor(t){super(8,t),this.name="NonSimpleGeometryError"}}var o,l;(l=o||={})[l.enumUnknown=0]="enumUnknown",l[l.enumPoint=513]="enumPoint",l[l.enumLine=5122]="enumLine",l[l.enumBezier=5123]="enumBezier",l[l.enumEllipticArc=5124]="enumEllipticArc",l[l.enumEnvelope=3077]="enumEnvelope",l[l.enumMultiPoint=8710]="enumMultiPoint",l[l.enumPolyline=25607]="enumPolyline",l[l.enumPolygon=27656]="enumPolygon",l[l.enumMultipatch=40969]="enumMultipatch",l[l.enumGeometryCollection=3594]="enumGeometryCollection",l[l.enumRationalBezier2=5134]="enumRationalBezier2",l[l.enumBezier2=5135]="enumBezier2",l[l.enumRationalBezier23d=5392]="enumRationalBezier23d",l[l.enumGreatArc3d=5393]="enumGreatArc3d";const x=[0,0,1,1,1,2,0,1,2,3,-1,-1,-1,-1,1,1];function c(t){return x[15&t]}function y(t){return!!(512&t)}function d(t){return!!(1024&t)}function v(t){return!!(2048&t)}function _(t){return!!(4096&t)}function f(t){return!!(8192&t)}function p(t){return!!(16384&t)}function b(t){return!!(32768&t)}function N(t){let i=t.getGeometryType();return f(i)?t.getPointCount():t.isEmpty()?0:i===o.enumEnvelope?4:i===o.enumPoint?1:_(i)?2:void A("missing type")}function g(t){let i=t.getGeometryType();if(p(i))return t.hasNonLinearSegments();if(i===o.enumGeometryCollection){let i=t;for(let t=0,s=i.getGeometryCount();t<s;t++)if(g(i.getGeometry(t)))return!0;return!1}return!!_(i)&&i!==o.enumLine}function E(t){throw new a(t)}function M(t){throw new r(t)}function T(t){throw Error(t)}function w(t){throw new u(t)}function D(){T("Geometry type is not supported for 3D operations.")}function C(t){throw new n(12,t)}function P(t){throw new h(t)}function q(t){throw new n(14,t)}function I(t){throw Error(t)}function A(t){throw new n(13,t)}function z(t){throw Error(t)}function S(t){throw new m(t)}function L(t){t&&g(t)&&q("Operation does not support curves.")}function R(t){t&&b(t.getGeometryType())&&q("Unsupported geometry type.")}function Z(t){t===o.enumGeometryCollection&&T("Geometry_collection instances are not supported in this operation")}function B(t){Z(t.getGeometryType())}function G(t){T(`bad wkid: ${t}`)}function k(t){let i="bad wkt: ";i+=t,i+="...",T(i)}function F(t,i){t||T(i)}},83661(t,i,s){s.d(i,{$:()=>M,A:()=>E,B:()=>ai,C:()=>xi,D:()=>Pt,E:()=>m,F:()=>Dt,G:()=>jt,H:()=>w,I:()=>bi,J:()=>L,K:()=>n,L:()=>ui,M:()=>Ai,N:()=>gt,O:()=>mi,P:()=>ki,Q:()=>di,R:()=>Gi,S:()=>zt,T:()=>v,U:()=>Bi,V:()=>Zi,W:()=>yi,X:()=>pt,Y:()=>Wt,Z:()=>l,_:()=>Ei,a:()=>ct,a0:()=>li,a1:()=>Ut,a2:()=>fi,a3:()=>oi,a4:()=>xt,a5:()=>ft,a6:()=>pi,a7:()=>$t,a8:()=>Kt,a9:()=>_,aA:()=>b,aB:()=>it,aC:()=>Lt,aD:()=>Si,aE:()=>ot,aF:()=>qi,aG:()=>bt,aH:()=>Y,aI:()=>B,aJ:()=>at,aK:()=>G,aL:()=>ii,aM:()=>yt,aa:()=>Ct,ab:()=>Ni,ac:()=>lt,ad:()=>o,ae:()=>zi,af:()=>At,ag:()=>z,ah:()=>S,ai:()=>_t,aj:()=>P,ak:()=>Ti,al:()=>Pi,am:()=>Bt,an:()=>Di,ao:()=>q,ap:()=>I,aq:()=>f,ar:()=>Li,as:()=>D,at:()=>C,au:()=>Mi,av:()=>wi,aw:()=>st,ax:()=>et,ay:()=>Tt,az:()=>p,b:()=>dt,c:()=>gi,d:()=>It,e:()=>k,f:()=>T,g:()=>_i,h:()=>Et,i:()=>ti,j:()=>Jt,k:()=>Xt,l:()=>St,m:()=>wt,n:()=>tt,o:()=>qt,p:()=>Zt,q:()=>Rt,r:()=>A,s:()=>Z,t:()=>Ht,u:()=>F,v:()=>Nt,w:()=>vt,x:()=>Mt,y:()=>R,z:()=>N});var e=s(55537);class n{constructor(t){this.sum=t,this.compensation=0}assign(t){return this.compensation=t.compensation,this.sum=t.sum,this}reset(){this.sum=this.compensation=0}resetToStart(t){this.sum=t,this.compensation=0}normalize(){let t=[NaN];this.sum=W(this.sum,this.compensation,t),this.compensation=t[0]}add(t){let i,s=this.sum+t;if(Math.abs(this.sum)>=Math.abs(t)){let e=this.sum-s+t;i=this.compensation+e}else{let e=t-s+this.sum;i=this.compensation+e}this.sum=s,this.compensation=i}sub(t){this.add(-t)}addProduct(t,i){let s=[0],e=K(t,i,s);this.add(e),this.add(s[0])}mul(t){let i=new n(0);i.addProduct(this.sum,t),i.addProduct(this.compensation,t),this.assign(i)}getResult(){return this.sum+this.compensation}pe(t){return this.add(t),this}me(t){return this.add(-t),this}sum;compensation}const r=[5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1],h=[-1,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3];function u(t){let i=0;return 65535n&t||(i+=16,t>>=16n),255n&t||(i+=8,t>>=8n),15n&t||(i+=4,t>>=4n),i+r[Number(BigInt.asUintN(4,t))]}function a(t){let i=0;return 4294967295n&t||(i=32,t>>=32n),i+u(BigInt.asUintN(32,t))}class m{m_EnvelopeType=1;vmin;vmax;constructor(t,i){void 0===t?this.setEmpty():t instanceof m?(this.vmin=t.vmin,this.vmax=t.vmax):(this.vmin=t,this.vmax=i,this.normalize())}static construct(t,i){return new m(t,i)}static constructEmpty(){return new m}setCoords(t,i){this.vmin=t,this.vmax=i,this.normalize()}setCoordsFromEnvelope(t){this.vmin=t.vmin,this.vmax=t.vmax}setEmpty(){this.vmin=NaN,this.vmax=NaN}getCenter(){return.5*(this.vmin+this.vmax)}equalsRange(t,i){return jt(this.vmin,t)&&jt(this.vmax,i)}equals(t,i){return!(!this.isEmpty()||!t.isEmpty())||(void 0===i?this.vmin===t.vmin&&this.vmax===t.vmax:Math.abs(this.vmin-t.vmin)<=i&&Math.abs(this.vmax-t.vmax)<=i)}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(t){this.isEmpty()||(this.vmin+=t,this.vmax+=t)}contains(t){return t.vmin>=this.vmin&&t.vmax<=this.vmax}containsCoordinate(t){return t>=this.vmin&&t<=this.vmax}containsRightExclusive(t){return t>=this.vmin&&t<this.vmax}containsExclusiveCoordinate(t){return t>this.vmin&&t<this.vmax}containsExclusive(t){return t.vmin>this.vmin&&t.vmax<this.vmax}isIntersecting(t){return this.vmin<=t.vmin?this.vmax>=t.vmin:t.vmax>=this.vmin}mergeCoordinate(t){this.isEmpty()?(this.vmin=t,this.vmax=t):this.mergeNeCoordinate(t)}merge(t){if(t.isEmpty())return;let i=t.vmin,s=t.vmax;this.mergeCoordinate(i),this.mergeCoordinate(s)}mergeNe(t){let i=t.vmin,s=t.vmax;this.mergeNeCoordinate(i),this.mergeNeCoordinate(s)}mergeNeCoordinate(t){t<this.vmin?this.vmin=t:t>this.vmax&&(this.vmax=t)}intersect(t){this.isEmpty()||t.isEmpty()?this.setEmpty():(this.vmin<t.vmin&&(this.vmin=t.vmin),this.vmax>t.vmax&&(this.vmax=t.vmax),this.vmin>this.vmax&&this.setEmpty())}inflate(t){this.isEmpty()||(this.vmin-=t,this.vmax+=t,this.vmax<this.vmin&&this.setEmpty())}normalize(){this.vmin<=this.vmax||(this.vmin>this.vmax?this.vmax=dt(this.vmin,this.vmin=this.vmax):this.setEmpty())}isValid(){return this.isEmpty()||this.vmin<=this.vmax}snapClip(t){return gi(t,this.vmin,this.vmax)}calculateToleranceFromEnvelope(){return this.isEmpty()?2**-52*100:(Math.abs(this.vmin)+Math.abs(this.vmax)+1)*(2**-52*100)}static unit(){return o}normalizeNoNAN(){this.vmin>this.vmax&&(this.vmax=dt(this.vmin,this.vmin=this.vmax))}setCoordsNoNAN(t,i){this.vmin=t,this.vmax=i,this.normalizeNoNAN()}clone(){return new m(this.vmin,this.vmax)}}const o=new m(0,1);class l{m_value;m_eps;static getNAN(){return new l(NaN)}constructor(t,i){this.m_value=t??0,this.m_eps=i??0}[Symbol.toPrimitive](t){return this}clone(){return new l(this.m_value,this.m_eps)}assign(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}scaleError(t){this.m_eps*=t}setError(t){this.m_eps=t}set(t,i){return this.m_value=t,this.m_eps=i??0,this}setWithEps(t,i){return void 0===i&&(i=1),this.m_value=t,this.m_eps=l.ulp(t)*i,this}setE(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}precise(){return new l(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(t){return this.clone().addThis(t)}addE(t){return this.clone().addThisE(t)}addThisE(t){let i=this.m_value+t.m_value,s=this.m_eps+t.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}addThis(t){let i=this.m_value+t,s=this.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}subE(t){return this.clone().subThisE(t)}sub(t){return this.clone().subThis(t)}subThisE(t){let i=this.m_value-t.m_value,s=this.m_eps+t.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}subThis(t){let i=this.m_value-t,s=this.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}setAddE(t,i){return this.m_value=t.m_value+i.m_value,this.m_eps=t.m_eps+i.m_eps+l.ulp(this.m_value),this}setAdd(t,i){return this.m_value=t+i,this.m_eps=l.ulp(this.m_value),this}setAddEN(t,i){return this.m_value=t.m_value+i,this.m_eps=t.m_eps+l.ulp(this.m_value),this}setAddNE(t,i){return this.m_value=t+i.m_value,this.m_eps=i.m_eps+l.ulp(this.m_value),this}setSubE(t,i){return this.m_value=t.m_value-i.m_value,this.m_eps=t.m_eps+i.m_eps+l.ulp(this.m_value),this}setSub(t,i){return this.m_value=t-i,this.m_eps=l.ulp(this.m_value),this}setSubEN(t,i){return this.m_value=t.m_value-i,this.m_eps=t.m_eps+l.ulp(this.m_value),this}setSubNE(t,i){return this.m_value=t-i.m_value,this.m_eps=i.m_eps+l.ulp(this.m_value),this}mulThisE(t){let i=this.m_value*t.m_value;return this.m_eps=this.m_eps*Math.abs(t.m_value)+t.m_eps*Math.abs(this.m_value)+this.m_eps*t.m_eps+l.ulp(i),this.m_value=i,this}mulThis(t){let i=this.m_value*t;return this.m_eps=this.m_eps*Math.abs(t)+l.ulp(i),this.m_value=i,this}mul(t){return this.clone().mulThis(t)}mulE(t){return this.clone().mulThisE(t)}setMulE(t,i){let s=t.m_value*i.m_value;return this.m_eps=t.m_eps*Math.abs(i.m_value)+i.m_eps*Math.abs(t.m_value)+t.m_eps*i.m_eps+l.ulp(s),this.m_value=s,this}setMul(t,i){return this.m_value=t*i,this.m_eps=l.ulp(this.m_value),this}setMulEN(t,i){return this.setE(t),this.mulThis(i)}setMulNE(t,i){return this.setE(i),this.mulThis(t)}mulThisByPower2(t){return this.m_value*=t,this.m_eps*=Math.abs(t),this}static st_mulByPower2(t,i){return new l(t.m_value,t.m_eps).mulThisByPower2(i)}divE(t){return this.clone().divThisE(t)}divThisE(t){let i=Math.abs(t.m_value),s=this.m_value/t.m_value,e=(this.m_eps+Math.abs(s)*t.m_eps)/i;if(t.m_eps>.01*i){let s=t.m_eps/i;e*=1+(1+s)*s}return this.m_value=s,this.m_eps=e+l.ulp(s),this}divThis(t){let i=Math.abs(t);return this.m_value/=t,this.m_eps=this.m_eps/i+l.ulp(this.m_value),this}setDivE(t,i){return this.setE(t),this.divThisE(i)}setDiv(t,i){return this.m_value=t/i,this.m_eps=l.ulp(this.m_value),this}setDivEN(t,i){return this.setE(t),this.divThis(i)}setDivNE(t,i){return this.set(t),this.divThisE(i)}divThisByPower2(t){return this.m_value/=t,this.m_eps/=Math.abs(t),this}invThis(){return this.setE(_.clone().divThisE(this)),this}sqrt(){return this.clone().sqrtThis()}sqrtThis(){let t,i;return this.m_value>=0?(t=Math.sqrt(this.m_value),i=this.m_value>10*this.m_eps?.5*this.m_eps/t:this.m_value>this.m_eps?t-Math.sqrt(this.m_value-this.m_eps):Math.max(t,Math.sqrt(this.m_value+this.m_eps)-t),i+=l.ulp(t)):this.m_value<-this.m_eps?(t=NaN,i=NaN):(t=0,i=Math.sqrt(this.m_eps)),this.m_value=t,this.m_eps=i,this}sqr(){return this.clone().sqrThis()}sqrThis(){let t=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+l.ulp(t),this.m_value=t,this}setSin(t){let i=Math.sin(t.m_value),s=Math.cos(t.m_value);this.m_value=i;let e=Math.abs(i),n=Math.abs(t.value());return this.m_eps=(Math.abs(s)+.5*e*t.m_eps)*t.m_eps+l.ulp(e+n),this}static ulp(t){let i=Yt(t),s=((9218868437227405312n&i)>>52n)-1075n;return s>-1023n?(i=s+1023n<<52n,function(t){return Ft[0]=t,kt[0]}(i)):0===t?0:Number.MIN_VALUE}setCos(t){let i=Math.sin(t.m_value),s=Math.cos(t.m_value);this.m_value=s;let e=Math.abs(s),n=Math.abs(t.value());return this.m_eps=(Math.abs(i)+.5*e*t.m_eps)*t.m_eps+l.ulp(e+n),this}static st_cosAndSin(t,i,s){let e=Math.sin(t.m_value),n=Math.cos(t.m_value);s.m_value=e,i.m_value=n;let r=Math.abs(e),h=Math.abs(n),u=Math.abs(t.value());s.m_eps=(Math.abs(n)+.5*r*t.m_eps)*t.m_eps+l.ulp(r+u),i.m_eps=(Math.abs(e)+.5*h*t.m_eps)*t.m_eps+l.ulp(h+u)}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(t){return m.construct(this.m_value-this.m_eps,this.m_value+this.m_eps).isIntersecting(t)}isInIntervalExclusive(t){let i=t.vmin+this.m_eps,s=t.vmax-this.m_eps;return i<this.m_value&&s>this.m_value}eq(t){return Math.abs(this.m_value-t.m_value)<=this.m_eps+t.m_eps}ne(t){return!this.eq(t)}gt(t){return this.m_value-t.m_value>this.m_eps+t.m_eps}lt(t){return t.m_value-this.m_value>this.m_eps+t.m_eps}ge(t){return!this.lt(t)}le(t){return!this.gt(t)}tolEQ(t,i){return Math.abs(this.m_value-t.m_value)<=i||this.eq(t)}tolNE(t,i){return!this.tolEQ(t,i)}tolGT(t,i){return this.m_value-t.m_value>i&&this.gt(t)}tolLT(t,i){return t.m_value-this.m_value>i&&this.lt(t)}tolGE(t,i){return!this.tolLT(t,i)}tolLE(t,i){return!this.tolGT(t,i)}isZero(){return Math.abs(this.m_value)<=this.m_eps}isFuzzyZero(){return this.isZero()&&0!==this.m_eps}tolIsZero(t){return Math.abs(this.m_value)<=Math.max(this.m_eps,t)}setPi(){this.setE(d)}setEuler(){this.set(2.718281828459045,2**-52)}static dimensions=1;static size(){return 1}}function x(t,i){let s=Ot(t),e=Ot(i),n=53-a(s),r=53-a(e);return(n>=0?n:0)+(r>=0?r:0)<=52}function c(t,i){let s=t+i;return s-t===i&&s-i===t}function y(t,i){let s=t-i;return t-s===i&&i+s===t}const d=new l(Math.PI,2**-52*.5),v=new l(0,0),_=new l(1,0),f=new l(4,0);function p(t,i,s){return t.addE(i.subE(t).mulE(s))}function b(t,i,s){return i.subE(i.subE(t).mulE(_.subE(s)))}function N(t){let i;if(0===t)i=1;else if(Math.abs(t)>.01)i=function(t){return Math.atanh(t)}(t)/t;else{let s;i=0;let e=t*t;for(let t=2*Math.trunc(-36.841361487904734/Math.log(e)+2.5)-1;t>1;t-=2)s=1/t,i=(i+s)*e;i+=1}return i}function g(t){let i,s=Math.PI*Math.PI/6;if(1===t)i=s;else if(t>1)i=s;else if(0===t)i=t;else if(t<0){let s=1+(t=Math.abs(t)),e=Math.log(s);i=e*e/-2-g(t/s)}else if(t>.5){let e=1-t,n=Math.log(t)*Math.log(e);i=s-g(e)-n}else{i=0;let s=1+Math.trunc(-16*Math.log(10)/Math.log(t)+1.5),e=s;for(let n=s;n>0;n--,--e)i*=t,i+=1/(e*e);i*=t}return i}function E(t,i){let s=i*t;if(Math.abs(i)<.1){let i=0;for(let t=60;t>=1;t--)i*=s,i+=1/t/t;return i*=t}return g(s)/i}function M(t,i){return t<i?St(t,i):St(i,t)}function T(t,i){let s=Math.abs(t);return i>=0?s:-s}function w(t){return Math.round(t)}function D(t,i,s,e,n){n[0]=i[0]+(s[0]-i[0])*e,n[1]=i[1]+(s[1]-i[1])*e,3===t&&(n[2]=i[2]+(s[2]-i[2])*e)}function C(t,i,s,e,n){n[0]=s[0]-(s[0]-i[0])*(1-e),n[1]=s[1]-(s[1]-i[1])*(1-e),3===t&&(n[2]=s[2]-(s[2]-i[2])*(1-e))}function P(t,i,s,e,n){e<=.5?D(t,i,s,e,n):C(t,i,s,e,n)}function q(t,i,s,e,n){n[0]=i[0].addE(s[0].subE(i[0]).mulE(e)),n[1]=i[1].addE(s[1].subE(i[1]).mulE(e))}function I(t,i,s,e,n){n[0]=s[0].subE(s[0].subE(i[0]).mulE(_.subE(e))),n[1]=s[1].subE(s[1].subE(i[1]).mulE(_.subE(e)))}function A(t,i,s){return s<=.5?t+(i-t)*s:i-(i-t)*(1-s)}function z(t,i,s){return t+(i-t)*s}function S(t,i,s){return i-(i-t)*(1-s)}function L(t,i,s,e){s<=.5?(e.x=t.x+(i.x-t.x)*s,e.y=t.y+(i.y-t.y)*s):(e.x=i.x-(i.x-t.x)*(1-s),e.y=i.y-(i.y-t.y)*(1-s))}function R(t,i,s,e){s<=.5?(e.x=t.x+(i.x-t.x)*s,e.y=t.y+(i.y-t.y)*s,e.z=t.z+(i.z-t.z)*s):(e.x=i.x-(i.x-t.x)*(1-s),e.y=i.y-(i.y-t.y)*(1-s),e.z=i.z-(i.z-t.z)*(1-s))}function Z(t){return t*t}function B(t){return t*t*t}function G(t){return 1/Math.sqrt(t)}function k(t){return t<0?-1:+(t>0)}function F(t,i,s,e){let n=[0],r=[0],h=[0];return W(K(t,s,n),K(i,e,r),h)+(n[0]+r[0]+h[0])}const X=[0],U=[0];function Y(t,i,s){return function(t,i,s,e){return W(W(W(t,i,H),s,J),H[0]+J[0],e)}(K(t,i,X),s,X[0],U)}const O=[0],Q=[0],V=[0],j=[0];function K(t,i,s){let e=t*i;return $(t,O,Q),$(i,V,j),s[0]=Q[0]*j[0]-(e-O[0]*V[0]-Q[0]*V[0]-O[0]*j[0]),e}function $(t,i,s){let e=134217729*t;i[0]=e-(e-t),s[0]=t-i[0]}const H=[0],J=[0];function W(t,i,s){let e=t+i;return s[0]=Math.abs(t)>Math.abs(i)?t-e+i:i-e+t,e}function tt(t,i){return t%i}function it(t){let i,s=1-t;if(0===s)return 1;if(s<=.01){let t=s,e=Math.log(t);i=1+t*(.4431471805599453-.25*e+t*(.05680519270997949-.09375*e+t*(.02183137044373718-.05859375*e+t*(.011544521417308362-.042724609375*e+t*(.00714200031339596-.0336456298828125*e+t*(.004854743337164948-.027757644653320312*e+t*(.003514687963781376-.023627042770385742*e)))))))}else{if(t<.016){let i=t;return Di()*(1-i*(.25+i*(.046875+i*(.01953125+i*(.01068115234375+i*(.0067291259765625+i*(.004626274108886719+i*(.0033752918243408203+.0025710230693221092*i))))))))}i=nt(0,s,1)-t*rt(0,s,1)/3}return gi(i,1,Di())}function st(t,i,s=NaN){if((0,e.g)(i>=0&&i<=1),0===i)return t;let n=1,r=t;if(r<0&&(r=-r,n=-1),1===i){let t=Math.round(r/Ti()),i=r-t*Ti();return n*(2*t+Math.sin(i))}let h=Di(),u=Math.floor(r/h);1&u?r=(u+1)*h-r:r-=u*h;let a,m=Math.sin(r),o=Number.isNaN(s)?it(i):s;if(1===m)a=o+Math.sqrt(1-i)*(r-h);else{let t=r*r;if(.01424*t**4<=2*2**-52)a=r*(1+t*i*(-1/6+t*((4-3*i)/120-(16+(45*i-60)*i)/5040*t)));else if(i<=.01){let t=Math.sin(2*r),s=Math.sin(4*r),e=Math.sin(6*r),n=Math.sin(8*r),h=Math.sin(10*r);a=r+i*((2*-r+t)/8+i*((-3*r+2*t-.25*s)/64+i*((-20*r+15*t-3*s+e/3)/1024+i*(5*(-140*r+112*t-28*s+16/3*e-.5*n)/65536+7*i*((-63*r+52.5*t-15*s+3.75*e-.625*n+.05*h)/65536+i*(-693*r+594*t-185.625*s+1.375*e-12.375*n+1.8*h-.125*Math.sin(12*r))/1048576)))))}else{let t=m*m,s=Math.cos(r),e=s*s,n=ht(m,s,i);a=m*(nt(e,n,1)-i*t*rt(e,n,1)/3)}}return 1&u?a=o*(u+1)-a:a+=o*u,n*a}function et(t,i,s=NaN){if(0===t)return 0;let e=1,n=t;t<0&&(n=-n,e=-1);let r=Number.isNaN(s)?it(i):s,h=Math.floor(n/r);1&h?n=(h+1)*r-n:n-=h*r;let u=n<=0?0:n>=r?Di():function(t,i,s){if(0===i)return t;if(1===i)return Math.asin(t);let e=0,n=!0;if(t<.2){let s=t*t,r=t*(1+s*i*(1/6+s*((13*i-4)/120+(16-284*i+493*i*i)/5040*s))),h=Math.abs(i*(4944*i-64-31224*i*i+37369*i*i*i)/362880*t**9);if(h<Math.abs(r)*2**-52)return r;e=r,n=h>.1*r}if(n){let n=1-i,r=1-t/s,h=Math.sqrt(r*r+n*n),u=Math.atan2(n,t+2**-52);e=Di()+Math.sqrt(h)*(u-Di())}let r=0;for(let n=0;n<7;n++){r=st(e,i,s);let h=ht(Math.sin(e),Math.cos(e),i);if(e-=(r-t)/Math.sqrt(h),n>0&&Math.abs(r-t)<=4*bi()*t)break}return e}(n,i,r);return 1&h?u=Di()*(h+1)-u:u+=Di()*h,e*u}function nt(t,i,s){(0,e.g)((0===t?0:1)+(0===i?0:1)+1>1);let n=t,r=i,h=s;for(;;){let t=Math.sqrt(n*r)+Math.sqrt(r*h)+Math.sqrt(h*n);n=.25*(n+t),r=.25*(r+t),h=.25*(h+t);let i=(n+r+h)/3,s=(i-n)/i,e=(i-r)/i,u=(i-h)/i;if(Math.abs(s)<=.0024&&Math.abs(e)<=.0024&&Math.abs(u)<=.0024){let t=s*e-u*u,n=s*e*u;return(1+(1/24*t-.1-3/44*n-5*t*t/208+t*n/16)*t+(1/14+3*n/104)*n)/Math.sqrt(i)}}}function rt(t,i,s){(0,e.g)(0!==t||0!==i);let r=t,h=i,u=s,a=new n(0),m=1;for(;;){let t=.2*(r+h+3*u),i=(t-r)/t,s=(t-h)/t,e=(t-u)/t;if(Math.abs(i)<=.0015&&Math.abs(s)<=.0015&&Math.abs(e)<=.0015){let n=i*s,r=e*e,h=n-r,u=n-6*r,o=u+h+h,l=3/26,x=u*(.10227272727272728*u-.21428571428571427-1.5*l*e*o),c=e*(.16666666666666666*o+e*(-.4090909090909091*h+e*l*n));return 3*a.getResult()+m*(1+x+c)/(t*Math.sqrt(t))}let n=Math.sqrt(r),o=Math.sqrt(h),l=Math.sqrt(u),x=n*(o+l)+o*l;a.add(m/(l*(u+x))),m*=.25,r=.25*(r+x),h=.25*(h+x),u=.25*(u+x)}}function ht(t,i,s){return t<.999?1-s*Z(t):1-s+s*Z(i)}const ut=new class{values;constructor(t){for(this.values=[[1]];this.values.length<t+1;){let t=this.values.at(-1),i=It(t.length+1,1);for(let s=1;s<t.length;++s)i[s]=t[s-1]+t[s];this.values.push(i)}}get(t,i){return this.values[t][i]}}(32);function at(t,i){if(t<ut.values.length)return ut.get(t,i);let s=Math.exp(((0,e.g)(0),0));return s+.01>2147483647&&(0,e.r)("The result value of n choose k is out of range"),s+.01}function mt(t,i){if(t.isZero())return t.clone();let s=t.clone().divThis(t);if(i<0)return s.divThis(mt(t,-i));for(t=t.clone(),i=Math.trunc(i);1&i&&s.mulThis(t),i>>=1;)t.mulThis(t);return s}function ot(t,i){if(0===i)return[];let s=t[0].clone().mulDoubleThis(0),e=[];e.length=i;let n=i-1;for(let i=0;i<=n;++i){e[i]=s.clone();for(let s=0;s<=i;++s)e[i].addThis(t[s].clone().mulDoubleThis(at(i,s)/at(n,s)))}return e}function lt(t,i,s,n,r){return 0===t?0===n?i:1===n?s:r:1===t?0===n?i:1===n?s:A(i,s,n):(2===t&&(0,e.a)("angular interpolation"),void(0,e.a)(""))}function xt(t,i,s,n,r,h,u,a){if(0===t)for(let t=0;t<h;++t)n[t+r]=0===u?i[t]:1===u?s[t]:a;else if(1===t)if(0===u)ct(n,i,r,0,h);else if(1===u)ct(n,s,r,0,h);else for(let t=0;t<h;++t)n[t+r]=A(i[t],s[t],u);else if(2===t)if(0===u)ct(n,i,r,0,h);else if(1===u)ct(n,s,r,0,h);else{let t=0;for(let e=0,a=r;e<h;++e,++a)n[a]=A(i[e],s[e],u),t+=n[a]*n[a];if(t>0){t=Math.sqrt(t);for(let i=r;i<r+h;++i)n[i]/=t}else{for(let t=r;t<r+h;++t)n[t]=0;n[r]=1}}else(0,e.a)("")}function ct(t,i,s,e,n){if(0===n)return;let r=0,h=s,u=e;for(;r++<n;)t[h++]=i[u++]}function yt(t,i,s){let e=0;for(let n=0;!e&&n<s;++n)e=t[n]-i[n];return e}function dt(t,i){return t}function vt(t){t.sort((t,i)=>t<i?-1:+(t>i))}function _t(t,i){let s=t.slice(0,i);vt(s),ct(t,s,0,0,i)}function ft(t,i,s,e){let n=t.slice(i,i+s);n.sort(e),ct(t,n,i,0,s)}function pt(t,i){return t<i?-1:+(t>i)}function bt(t,i,s,e){return t<s?-1:t>s?1:i<e?-1:+(i>e)}function Nt(t,i){if(t.length<2)return t.length;let s=0;for(let e=1;e<t.length;++e)i(t[e],t[s])||(s++,t[e]=dt(t[s],t[s]=t[e]));return 1+s}function gt(t,i){t[i]=t.at(-1),t.pop()}function Et(t,i=!1){return{[Symbol.dispose](){this.bForget||t()},bForget:i}}function Mt(t,i,s){t.length=i,t.fill(s)}function Tt(t,i,s){t.length=s;for(let e=0;e<s;++e)t[e]=new i}function wt(t,i){let s=Array(i);for(let e=0;e<i;++e)s[e]=new t;return s}function Dt(t,i,s){for(let e=0;e<s;++e)t[e].assign(i[e]);return s}function Ct(t,i){let s=t.slice(0,i);for(let t=0;t<i;++t)s[t]=s[t].clone();return s}function Pt(t){return Array.from({length:t},()=>null)}function qt(t,i){return Array.from({length:i},()=>t())}function It(t,i){let s=Array(t);return s.fill(i),s}function At(t,i){return i in t&&1===Object.getOwnPropertyNames(t).length}class zt{m_elts;constructor(...t){this.m_elts=t}get length(){return this.m_elts.length}at(t){return this.m_elts[t]}[Symbol.dispose](){for(let t of this.m_elts)t[Symbol.dispose]()}}function St(t,i){return{first:t,second:i}}const Lt=Math.PI,Rt=2*Math.PI,Zt=.5*Math.PI;class Bt{m_cr;m_cc;m_v;constructor(t,i){this.m_cr=t,this.m_cc=i,this.m_v=It(t*i,0)}get(t,i){return this.m_v[t*this.m_cc+i]}set(t,i,s){this.m_v[t*this.m_cc+i]=s}inc(t,i){return++this.m_v[t*this.m_cc+i]}}const Gt=new ArrayBuffer(8),kt=new Float64Array(Gt),Ft=new BigUint64Array(Gt),Xt=1e16;function Ut(){return 2**-52*vi}function Yt(t){return kt[0]=t,Ft[0]}function Ot(t){return 4503599627370495n&Yt(t)}function Qt(t){return Number((9218868437227405312n&Yt(t))>>52n)}function Vt(t){if(0n===t)return-1n;if(1n===t||-1n===t)return 0n;t<0n&&(t=-t);let i=0n,s=512n,e=1n<<i+s;for(;t>=e;)i+=s,s<<=1n,e<<=s;let n=i;s>>=1n;let r=n+s;for(;s>0n;)t<1n<<r||(n=r),s>>=1n,r=n+s;return n}function jt(t,i){return t===i||Number.isNaN(t)&&Number.isNaN(i)}function Kt(t,i,s){return t===i||Math.abs(t-i)<=s||Number.isNaN(t)&&Number.isNaN(i)}function $t(t,i){return t<i?-1:+(t>i)}function Ht(t,i){if(t<i)return-1;if(t>i)return 1;if(t===i)return 0;{let s=Number.isNaN(t),e=Number.isNaN(i);return s<e?-1:+(s>e)}}function Jt(){return 2147483647}function Wt(){return 32767}function ti(){return 2147483647}function ii(){return-2147483648}const si=2147483647,ei=BigInt(si),ni=2166136261,ri=16777619,hi=1099511628211n;function ui(t){let i=ni;for(let s=0,e=t.length;s<e;++s)i=(i^t.charCodeAt(s))*ri;return i&si}function ai(t,i){return i+2654435769+(t<<6)+(t>>2)&si}function mi(t,i){return ai(t,ci(i))}function oi(t){return ai(3735928559,t)}function li(t,i){return ai(t,oi(i))}function xi(t){return function(t){let i=ni,s=t;return i=(i^255&s)*ri,s>>=8,i=(i^255&s)*ri,s>>=8,i=(i^255&s)*ri,s>>=8,i=(i^255&s)*ri,i&si}(t)}function ci(t){return Number(function(t){let i=14695981039346656037n,s=t;return i=(i^255n&s)*hi,s>>=8n,i=(i^255n&s)*hi,s>>=8n,i=(i^255n&s)*hi,s>>=8n,i=(i^255n&s)*hi,s>>=8n,i=(i^255n&s)*hi,s>>=8n,i=(i^255n&s)*hi,s>>=8n,i=(i^255n&s)*hi,i&ei}(t))}function yi(t){return ci(Yt(function(t){return qi(t)}(t)))}function di(t){return function(t){return 1103515245*t+12345&2147483647}(t)}const vi=100;function _i(){return 2**-52*100}function fi(){return.38196601125010515}function pi(){return 1.4142135623730951}function bi(){return 2**-52}function Ni(t,i,s){return t===i||t===s}function gi(t,i,s){return t>=i?t<=s?t:s:i}function Ei(t,i,s){let e=t[0];if(e>=i){if(e<=s)return!1;t[0]=s}else t[0]=i;return!0}function Mi(t,i){return t>=i?i:t<-i?-i:t}function Ti(){return Lt}function wi(){return Rt}function Di(){return Zt}const Ci=3*Di();function Pi(){return Ci}function qi(t){return t+0}function Ii(t){return{v:t}}class Ai{static s_sm=9223372036854775808n;static s_em=9218868437227405312n;static s_fm=4503599627370495n;static s_emax=2047n;m_rn=Ii(0n);m_rd=Ii(1n);m_bNaN=!1;m_bNormalized=!1;m_power=0;m_sign=0;static constructAssign(t,i){let s=t.clone();return void 0!==i&&s.limitPrecisionThis(i),s}static constructDouble(t){return(new Ai).setDouble(t)}static constructInt64(t){return(new Ai).setInt64(t)}static constructRational(t,i){return(new Ai).setRational(t,i)}static constructInt32(t){return this.constructInt64(BigInt(Math.trunc(t)))}[Symbol.toPrimitive](t){return this}compare(t){return this.lt(t)?-1:+!!this.gt(t)}assignCopy(t){return this.setThis(t)}abs(){return this.clone().absThis()}absThis(){return this.isNAN()||(this.m_sign*=this.m_sign),this}clone(){return(new Ai).setThis(this)}setThis(t){return this.m_bNaN=t.m_bNaN,this.m_bNormalized=t.m_bNormalized,this.m_rn.v=t.m_rn.v,this.m_rd.v=t.m_rd.v,this.m_power=t.m_power,this.m_sign=t.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(),0===t)return this;if(Number.isInteger(t)&&Math.abs(t)<2147483647)return this.setInt32(t);let i=Yt(t),s=(i&Ai.s_em)>>52n,n=!!(i&Ai.s_sm),r=i&Ai.s_fm;if(s===Ai.s_emax)return r?(this.m_rn.v=this.m_rd.v=0n,this.m_bNaN=!0,this):(this.m_rn.v=n?-1n:1n,this.m_rd.v=0n,this);0n===s&&(0,e.a)("denormalized numbers not yet implemented");let h=s-1023n,u=h>=0n?h:0n,a=h<0n?-h:0n;return this.m_rn.v=(1n<<52n|r)<<u,this.m_rd.v=1n<<52n+a,this.m_sign=n?-1:1,this.m_bNormalized=!1,this.normalizeThis()}setInt64(t){return 0n===t?this.setZero():(this.m_bNaN=!1,this.m_sign=t>0n?1:-1,this.m_rn.v=t>0n?t:-t,this.m_rd.v=1n,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setRational(t,i){return 0n===t?0n===i?this.setNAN():this.setZero():0n===i?t>0n?this.setPositiveInf():this.setNegativeInf():(this.m_sign=(t>0n?1:-1)*(i>0n?1:-1),this.m_rn.v=t>0n?t:-t,this.m_rd.v=i>0n?i:-i,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setInt32(t){return this.setInt64(BigInt(Math.trunc(t)))}getDouble(){return this.convertToDouble()}toDouble(){return this.convertToDouble()}value(){return this.convertToDouble()}isNAN(){return this.m_bNaN}isPositiveInf(){return!this.isNAN()&&0n===this.m_rd.v&&1===this.m_sign}isNegativeInf(){return!this.isNAN()&&0n===this.m_rd.v&&-1===this.m_sign}isFinite(){return!this.isNAN()&&0n!==this.m_rd.v}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(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())this.setNAN();else{if(this.isPositiveInf()&&t.isNegativeInf())return this.setPositiveInf(),this;if(this.isNegativeInf()&&t.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&t.isPositiveInf())return this.setNegativeInf(),this}return this.isNAN()?this:this.opPlusMinus(t,!1)}thisSubAbs(t){return(0,e.g)(0),this}mulThis(t){return t.isNAN()&&this.setNAN(),this.isNAN()?this:(this.m_sign*=t.m_sign,0===this.m_sign?this.setZero():(this.m_rn.v*=t.m_rn.v,this.m_rd.v*=t.m_rd.v,this.m_power+=t.m_power,this.m_bNormalized=!1,this.normalizeThis(),this))}mulDoubleThis(t){return this.mulThis(Ai.constructDouble(t))}thisMulInt64(t){return(0,e.g)(0),this}thisMulInt32(t){return(0,e.g)(0),this}divThis(t){return this.mulThis(t.clone().invertThis())}divDoubleThis(t){return this.divThis(Ai.constructDouble(t))}addDoubleThis(t){return this.addThis(Ai.constructDouble(t))}subDoubleThis(t){return this.subThis(Ai.constructDouble(t))}mul(t){return this.clone().mulThis(t)}mulBigIntThis(t){return this.mulThis(Ai.constructInt64(t))}mulDouble(t){return this.clone().mulThis(Ai.constructDouble(t))}div(t){return this.clone().divThis(t)}divDouble(t){return this.clone().divDoubleThis(t)}add(t){return this.clone().addThis(t)}fmSubThis(t,i){return this.subThis(t.clone().mulThis(i))}fmAddThis(t,i){return this.addThis(t.clone().mulThis(i))}addThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())return this.setPositiveInf(),this;if(this.isPositiveInf()&&t.isNegativeInf())this.setNAN();else{if(this.isNegativeInf()&&t.isNegativeInf())return this.setNegativeInf(),this;this.isNegativeInf()&&t.isPositiveInf()&&this.setNAN()}return this.isNAN()?this:this.opPlusMinus(t,!0)}addDouble(t){return this.clone().addThis(Ai.constructDouble(t))}sub(t){return this.clone().subThis(t)}subDouble(t){return this.clone().subThis(Ai.constructDouble(t))}isZero(){return 0===this.m_sign}equals(t){return this.clone().subThis(t).isZero()}lt(t){return!(this.isNAN()||t.isNAN()||this.isPositiveInf()&&t.isPositiveInf()||this.isNegativeInf()&&t.isNegativeInf()||this.isPositiveInf())&&(!!t.isPositiveInf()||this.clone().sub(t).LZ())}absLessAbs(t){return this.abs().lt(t.abs())}gt(t){return this.clone().sub(t).GZ()}lte(t){return this.sub(t).LEZ()}gte(t){return this.sub(t).GEZ()}normalizeThis(){if(this.m_bNormalized)return this;if(0n===this.m_rn.v)return this.setZero();let t=0,i=4294967295n;for(;0n===(this.m_rn.v&i)&&i<=this.m_rn.v;)i<<=32n,t+=32;i&=this.m_rn.v,i>>=BigInt(t),t+=u(BigInt.asUintN(32,i))-1;let s=0;for(i=4294967295n;0n===(this.m_rd.v&i)&&i<=this.m_rd.v;)i<<=32n,s+=32;return i&=this.m_rd.v,i>>=BigInt(s),s+=u(BigInt.asUintN(32,i))-1,this.m_rn.v>>=BigInt(t),this.m_rd.v>>=BigInt(s),this.m_power+=t-s,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):0n===this.m_rn.v?(this.setPositiveInf(),this):(this.m_rd=dt(this.m_rn,this.m_rn=this.m_rd),this.m_power=-this.m_power,this)}limitPrecisionThis(t){if(0===t)return this;if(this.isZero())return this.setZero();if(!this.isFinite())return this;this.normalizeThis();let i=Number(Vt(this.m_rn.v));if(i>t){let s=i-t;this.m_rn.v>>=BigInt(i-t),this.m_power+=s}if(i=Number(Vt(this.m_rd.v)),i>t){let s=i-t;this.m_rd.v>>=BigInt(i-t),this.m_power-=s}return this}hiBitIndex(){return Math.max(Number(Vt(this.m_rn.v)),Number(Vt(this.m_rd.v)))}ldexp(t){return this.clone().ldexpThis(t)}ldexpThis(t){return t&&(this.m_bNormalized=!1,this.m_power+=t,this.normalizeThis()),this}static lerp(t,i,s){return Ai.lerpLo(i,i,s)}static lerpLo(t,i,s){return i.sub(t).mulThis(s).addThis(t)}static lerpHi(t,i,s){return i.sub(t).mulThis(zi.sub(s)).addThis(t)}LZ(){return!this.isNAN()&&-1===this.m_sign}GZ(){return!this.isNAN()&&1===this.m_sign}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(t,i){if(t.m_sign<0n&&(0,e.r)("MP_value: sqrt(-1)"),t.isZero())return t.clone();let s=52,n=2220446049250313e-31;for(;s<i;)2*s<=i?(n*=n,s*=2):(n*=2220446049250313e-31,s+=52);s+=52;let r,h=Vt(t.m_rn.v),u=Vt(t.m_rd.v),a=t.m_power+Number(h-u),m=new Ai;Math.abs(a)>200?(1&Math.abs(a)&&(a+=1),r=Ai.constructAssign(t,53).ldexpThis(-a).value(),m.setThis(t).ldexpThis(-a),(0,e.g)(Number.isFinite(r))):(m.setThis(t),r=m.value(),(0,e.g)(Number.isFinite(r)),a=0),r=Math.sqrt(r);let o=Ai.constructDouble(r),l=Ai.constructDouble(n);l.mulThis(o).ldexpThis(1);let x,c=n*r*2,y=o.clone(),d=new Ai;for(let t=0;t<10;++t){y.mulThis(o),d.setThis(m).subThis(y).absThis();let t=d.value();if(x=1,t<.9)for(;t>c;)t*=t,++x;else x=4;if(d.lte(l))break;for(let t=0;t<x;t++)y.setThis(o).divThis(m).invertThis().addThis(o).ldexpThis(-1).limitPrecisionThis(s),o.setThis(y)}return o.ldexpThis(a/2)}static cubicRoot(t,i){if(t.isZero())return t.clone();let s=52,e=2220446049250313e-31;for(;s<i;)2*s<=i?(e*=e,s*=2):(e*=2220446049250313e-31,s+=52);s+=52;let n=Math.abs(t.value())**(1/3),r=Ai.constructDouble(n),h=r.clone();h.sqrThis().mulDoubleThis(3).mulDoubleThis(e),h.limitPrecisionThis(32),t.LZ()&&r.negateThis();for(let i=0;i<10;++i){let i=r.clone();i.sqrThis().mulThis(r);let e=i.clone();if(e.subThis(t),e.absThis().limitPrecisionThis(32),e.lte(h))break;e.setThis(t),e.ldexpThis(1),e.addThis(i);let n=i.clone();n.ldexpThis(1),n.addThis(t),e.divThis(n),r.mulThis(e),r.limitPrecisionThis(s)}return r}isInTheRangeOfDouble(){return(0,e.g)(0),!1}sign(){return this.m_sign}cosAndSin(t,i){(0,e.g)(0)}pow(t){return mt(this,t)}static nan(){return(0,e.g)(0),new Ai}convertToDouble(){if(this.m_bNaN)return NaN;if(this.isZero())return 0;if(0n===this.m_rd.v)return 1===this.m_sign?1/0:-1/0;let t=-1===this.m_sign,i=this.m_rn.v<<(this.m_power>=0?BigInt(this.m_power):0n),s=this.m_rd.v<<(this.m_power<0?BigInt(-this.m_power):0n),e=i/s,n=Number(e);if(BigInt(n)!==e)return t?-n:n;let r=i-e*s;if(r){let t=Vt(s)-1023n;t>0n&&(s>>=t,r<<=52n,r>>=t);let i=Number(r);Number.isFinite(i)||(r>>=52n,i=Number(r),t=0n),t>0n&&(i/=2**52),n+=i/Number(s)}return t?-n:n}signVal(){return 1===this.m_sign?1n:-1===this.m_sign?-1n:0n}opPlusMinus(t,i){let s,e,n=Math.min(this.m_power,t.m_power);this.m_power>n?(s=BigInt(this.m_power-n),e=0n):(s=0n,e=BigInt(t.m_power-n));let r=this.signVal()*this.m_rn.v*t.m_rd.v<<s,h=t.signVal()*t.m_rn.v*this.m_rd.v<<e;return this.m_rn.v=i?r+h:r-h,this.m_rd.v*=t.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 zi=Ai.constructInt32(1),Si=Ai.constructInt32(0),Li=Ai.constructDouble(.5);function Ri(t,i){let s=Qt(t),e=Qt(i);if(s===e){let e=53-function(t,i){return function(t){let i=0;return 18446744069414584320n&t&&(i=32,t>>=32n),i+function(t){let i=0;return 4294901760n&t&&(i+=16,t>>=16n),65280n&t&&(i+=8,t>>=8n),240n&t&&(i+=4,t>>=4n),i+h[Number(BigInt.asUintN(4,t))]+1}(t)}(t^i)}(Ot(t),Ot(i));return s-e}return s>e?s:e}function Zi(t,i){for(let s=0,e=0,n=t.length;s<n;s+=2,e++)i[e].x=t[s],i[e].y=t[s+1]}function Bi(t){let i=new Float64Array(2*t.length);for(let s=0,e=t.length;s<e;++s){let e=s<<1;i[e]=t[s].x,i[e+1]=t[s].y}return i}function Gi(t){let i=wt(ki,t.length);for(let s=0,e=t.length;s<e;++s)i[s].setCoords(t[s][0],t[s][1]);return i}class ki{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(t,i){return new ki(t,i)}constructor(t,i){void 0===t?this.x=this.y=NaN:(this.x=t,this.y=i)}clone(){return new ki(this.x,this.y)}assign(t){this.setCoordsPoint2D(t)}setCoords(t,i){return this.x=t,this.y=i,this}setCoordsPoint2D(t){this.x=t.x,this.y=t.y}isEqualPoint2D(t,i){return void 0===i?this.x===t.x&&this.y===t.y:Math.abs(this.x-t.x)<=i&&Math.abs(this.y-t.y)<=i}isEqual(t,i,s){return void 0===s?this.x===t&&this.y===i:Math.abs(this.x-t)<=s&&Math.abs(this.y-i)<=s}equalsPoint2D(t,i){return this.isEqualPoint2D(t,i)}setSub(t,i){this.x=t.x-i.x,this.y=t.y-i.y}addThis(t){return this.x+=t.x,this.y+=t.y,this}setAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}absoluteOther(t){}absolute(){return(0,e.g)(0),this}setNegate(){this.x=-this.x,this.y=-this.y}setNegateOther(t){this.x=-t.x,this.y=-t.y}interpolateThis(t,i){}interpolate(t,i,s){(0,e.g)(0)}scaleAddThis(t,i){this.x=this.x*t+i.x,this.y=this.y*t+i.y}setScaleAdd(t,i,s){this.x=i.x*t+s.x,this.y=i.y*t+s.y}scaleOther(t,i){(0,e.g)(0)}scale(t){this.x*=t,this.y*=t}compare(t){return this.y<t.y?-1:this.y>t.y?1:this.x<t.x?-1:+(this.x>t.x)}compareX(t){return this.x<t.x?-1:this.x>t.x?1:this.y<t.y?-1:+(this.y>t.y)}normalizeOther(t){(0,e.g)(0)}normalize(){let t=this.length();return t?(this.x/=t,this.y/=t):(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(t,i){return(0,e.g)(0),{}}static average(t,i){let s=new ki;if(0===i)return s.setNAN(),s;if(1===i)return s.assign(t[0]),s;let e=new n(t[0].x),r=new n(t[0].y);for(let s=1;s<i;s++)e.add(t[s].x),r.add(t[s].y),255&s||(e.normalize(),r.normalize());return s.x=e.getResult()/i,s.y=r.getResult()/i,s}static calculateLength(t,i){let s=new n(0);for(let e=1;e<i;e++)s.add(ki.distance(t[e],t[e-1]));return s.getResult()}offset(t,i){let s=ki.distance(t,i),e=ki.construct(this.x,this.y);if(0===s)return ki.distance(e,t);let n=i.clone();return n.subThis(t),e.subThis(t),e.crossProduct(n)/s}side(t,i){return t.equals(i)?+!this.equals(t):ki.orientationRobust(i,t,this)}static sqrDistance(t,i){let s=t.x-i.x,e=t.y-i.y;return s*s+e*e}static sqrDistanceCoords(t,i,s,e){let n=s-t,r=e-i;return n*n+r*r}static distance(t,i){return Math.sqrt(ki.sqrDistance(t,i))}dotProduct(t){return this.x*t.x+this.y*t.y}dotProductAbs(t){return Math.abs(this.x*t.x)+Math.abs(this.y*t.y)}crossProduct(t){return this.x*t.y-this.y*t.x}crossProductAbs(t){return(0,e.g)(0),0}rotateDirect(t,i){let s=this.x*t-this.y*i,e=this.x*i+this.y*t;this.x=s,this.y=e}rotateReverse(t,i){let s=this.x*t+this.y*i,e=-this.x*i+this.y*t;this.x=s,this.y=e}leftPerpendicularThis(){let t=this.x;this.x=-this.y,this.y=t}leftPerpendicularOther(t){let i=t.x;this.x=-t.y,this.y=i}rightPerpendicularThis(){let t=this.x;this.x=this.y,this.y=-t}rightPerpendicularOther(t){let i=t.x;this.x=t.y,this.y=-i}equals(t){return this.x===t.x&&this.y===t.y}notequals(t){return this.x!==t.x||this.y!==t.y}not(){return!this.x&&!this.y}gt(t){return this.y>t.y||this.y===t.y&&this.x>t.x}gte(t){return!this.lt(t)}lt(t){return this.y<t.y||this.y===t.y&&this.x<t.x}lte(t){return!this.gt(t)}subThis(t){return this.x-=t.x,this.y-=t.y,this}divThis(t){return this.x/=t,this.y/=t,this}add(t){return new ki(this.x+t.x,this.y+t.y)}sub(t){return new ki(this.x-t.x,this.y-t.y)}negateThis(){return this.x=-this.x,this.y=-this.y,this}negate(){return new ki(-this.x,-this.y)}mul(t){return new ki(this.x*t,this.y*t)}mulThis(t){return this.x*=t,this.y*=t,this}divide(t){return new ki(this.x/t,this.y/t)}setNAN(){this.x=this.y=NaN}isNAN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}static getNAN(){return new ki(NaN,NaN)}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)}isZero(){return 0===this.x&&0===this.y}norm(t){switch(t){case 0:{let t=Math.abs(this.x),i=Math.abs(this.y),s=t-i;return s>=0?t:s<=0?i: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:(0,e.t)("norm")}}getQuarter(){return ki.getQuarterCoords(this.x,this.y)}static getQuarterCoords(t,i){return t>0?i>=0?1:4:i>0?2:0===t?4:3}static compareVectors(t,i){let s=t.getQuarter(),e=i.getQuarter();return e===s?ki.orientationRobustImpl(ki.construct(0,0),i,t,!0):s<e?-1:1}static compareVectorsOrigin(t,i,s){let e=i.sub(t),n=s.sub(t),r=e.getQuarter(),h=n.getQuarter();return h===r?ki.orientationRobustImpl(t,s,i,!0):r<h?-1:1}static orientationRobust(t,i,s){return ki.orientationRobustImpl(t,i,s,!1)}static orientationRobustEx(t,i,s,e){if(t.equals(i)||s.equals(e))return 0;let n=i.x-t.x,r=i.y-t.y,h=e.x-s.x,u=e.y-s.y;{let t=ki.getQuarterCoords(n,r)-1,i=ki.getQuarterCoords(h,u)-1,s=ki.d[t][i];if(0!==s)return s}let a=n*u,m=r*h,o=4*2**-52*(Math.abs(a)+Math.abs(m)),l=a-m;return Math.abs(l)>=o?l<0?-1:+(l>0):ki.orientationRobustExMp(t,i,s,e)}static orientationRobustExMp(t,i,s,e){let n=Ai.constructDouble(i.x),r=Ai.constructDouble(e.x);n.subThis(Ai.constructDouble(t.x)),r.subThis(Ai.constructDouble(s.x));let h=Ai.constructDouble(i.y),u=Ai.constructDouble(e.y);return h.subThis(Ai.constructDouble(t.y)),u.subThis(Ai.constructDouble(s.y)),n.mulThis(u),h.mulThis(r),n.subThis(h),n.LZ()?-1:+!!n.GZ()}static orientationNonRobust(t,i,s){let e=i.sub(t).crossProduct(s.sub(t));return e<0?-1:+(e>0)}static orientationRobustImpl(t,i,s,e){if(i.isEqualPoint2D(t)||s.isEqualPoint2D(t)||i.isEqualPoint2D(s))return 0;let n=i.x-t.x,r=i.y-t.y,h=s.x-t.x,u=s.y-t.y;if(!e){let t=ki.getQuarterCoords(n,r)-1,i=ki.getQuarterCoords(h,u)-1,s=ki.d[t][i];if(0!==s)return s}let a=(Math.abs(n)+Math.abs(r)+Math.abs(h)+Math.abs(u))*(Math.abs(i.x)+Math.abs(i.y)+Math.abs(s.x)+Math.abs(s.y))*8*2**-52,m=n*u-r*h;if(Math.abs(m)>a)return m<0?-1:1;if(y(i.x,t.x)&&y(s.y,t.y)&&y(i.y,t.y)&&y(s.x,t.x)&&x(n,u)&&x(r,h)){let t=n*u,i=r*h;if(y(t,i)){let s=t-i;return s<0?-1:+(s>0)}}return ki.orientationRobustMp(t,i,s)}static orientationRobustMp(t,i,s){let e=Ai.constructDouble(i.x),n=Ai.constructDouble(s.x);{let i=Ai.constructDouble(t.x);e.subThis(i),n.subThis(i)}let r=Ai.constructDouble(s.y),h=Ai.constructDouble(i.y);{let i=Ai.constructDouble(t.y);r.subThis(i),h.subThis(i)}return e.mulThis(r),h.mulThis(n),e.subThis(h),e.LZ()?-1:+!!e.GZ()}static inCircleRobust(t,i,s,e){let n=new l,r=new l;n.set(t.x),n.subThis(e.x),r.set(t.y),r.subThis(e.y);let h=new l,u=new l;h.set(i.x),h.subThis(e.x),u.set(i.y),u.subThis(e.y);let a=new l,m=new l;a.set(s.x),a.subThis(e.x),m.set(s.y),m.subThis(e.y);let o=n.mulE(u).subE(r.mulE(h)),x=h.mulE(m).subE(u.mulE(a)),c=n.mulE(m).subE(r.mulE(a)),y=n.mulE(n).addE(r.mulE(r)),d=h.mulE(h).addE(u.mulE(u)),v=a.mulE(a).addE(m.mulE(m)),_=y.mulE(x).subE(d.mulE(c)).addE(v.mulE(o));if(!_.isFuzzyZero()){let t=_.value();return t<0?-1:+(t>0)}return ki.inCircleRobustMp(t,i,s,e)}static inCircleRobustMp(t,i,s,e){do{if(!(y(t.x,e.x)&&y(t.y,e.y)&&y(i.x,e.x)&&y(i.y,e.y)&&y(s.x,e.x)&&y(s.y,e.y)))break;let n=t.x-e.x,r=t.y-e.y,h=i.x-e.x,u=i.y-e.y,a=s.x-e.x,m=s.y-e.y;if(!(x(n,u)&&x(r,h)&&x(h,m)&&x(u,a)&&x(n,m)&&x(r,a)&&x(n,n)&&x(r,r)&&x(h,h)&&x(u,u)&&x(a,a)&&x(m,m)))break;let o=n*u,l=r*h,d=h*m,v=u*a,_=n*m,f=r*a,p=n*n,b=r*r,N=h*h,g=u*u,E=a*a,M=m*m;if(!(y(o,l)&&y(d,v)&&y(_,f)&&c(p,b)&&c(N,g)&&c(E,M)))break;let T=o-l,w=d-v,D=_-f,C=p+b,P=N+g,q=E+M;if(!x(C,w)||!x(P,D)||!x(q,T))break;let I=C*w,A=P*D,z=q*T;if(!y(I,A))break;let S=I-A;if(!c(S,z))break;let L=S+z;return L<0?-1:+(L>0)}while(0);let n=Ai.constructDouble(e.x),r=Ai.constructDouble(e.y),h=Ai.constructDouble(t.x),u=Ai.constructDouble(t.y);h.subThis(n),u.subThis(r);let a=Ai.constructDouble(i.x),m=Ai.constructDouble(i.y);a.subThis(n),m.subThis(r);let o=Ai.constructDouble(s.x),l=Ai.constructDouble(s.y);o.subThis(n),l.subThis(r);let d=h.mul(m).sub(u.mul(a)),v=a.mul(l).sub(m.mul(o)),_=h.mul(l).sub(u.mul(o)),f=h.mul(h).add(u.mul(u)),p=a.mul(a).add(m.mul(m)),b=o.mul(o).add(l.mul(l)),N=f.mul(v).sub(p.mul(_)).add(b.mul(d));return N.LZ()?-1:+!!N.GZ()}static inCircleRobustMp3Point(t,i,s){let e=Ai.constructDouble(t.x),n=Ai.constructDouble(t.y),r=Ai.constructDouble(i.x),h=Ai.constructDouble(i.y),u=Ai.constructDouble(s.x),a=Ai.constructDouble(s.y),m=u.mul(u).add(a.mul(a)).sub(u.mul(e).add(a.mul(n)).add(u.mul(r)).add(a.mul(h))).add(e.mul(r).add(n.mul(h)));return m.LZ()?-1:+!!m.GZ()}static inCircleRobust3Point(t,i,s){let e=new l(t.x),n=new l(t.y),r=new l(i.x),h=new l(i.y),u=new l(s.x),a=new l(s.y),m=u.mulE(u).addE(a.mulE(a)).subE(u.mulE(e).addE(a.mulE(n)).addE(u.mulE(r)).addE(a.mulE(h))).addE(e.mulE(r).addE(n.mulE(h)));if(!m.isFuzzyZero()){let t=m.value();return t<0?-1:+(t>0)}return ki.inCircleRobustMp3Point(t,i,s)}static calculateCircleCenterFromThreePoints(t,i,s){if(t.equals(s)||t.equals(i)||s.equals(i))return ki.getNAN();let e=function(t,i,s){let e=new l(i.x);e.subThis(t.x);let n=new l(i.y);n.subThis(t.y);let r=new l(s.x);r.subThis(t.x);let h=new l(s.y);h.subThis(t.y);let u=e.clone();u.mulThisE(h);let a=n.clone();if(a.mulThisE(r),u.subThisE(a),0===u.value())return ki.getNAN();u.mulThis(2);let m=e.clone();m.mulThisE(e);let o=n.clone();o.mulThisE(n);let x=m.clone();x.addThisE(o);let c=r.clone();c.mulThisE(r);let y=h.clone();y.mulThisE(h);let d=c.clone();d.addThisE(y);let v=n.clone();v.mulThisE(d),a=h.clone(),a.mulThisE(x),v.subThisE(a),v.divThisE(u);let _=e.clone();_.mulThisE(d),a=r.clone(),a.mulThisE(x),_.subThisE(a),_.divThisE(u);let f=ki.construct(t.x-v.value(),t.y+_.value()),p=t.sub(f).length(),b=i.sub(f).length(),N=s.sub(f).length(),g=1e-15*(p+Math.abs(t.x)+Math.abs(i.x)+Math.abs(s.x)+Math.abs(t.y)+Math.abs(i.y)+Math.abs(s.y));return Math.abs(p-b)<=g&&Math.abs(p-N)<=g&&v.eps()<g&&_.eps()<g?f:ki.getNAN()}(t,i,s);return e.isNAN()?function(t,i,s){let e=Ai.constructDouble(i.x);e.subDoubleThis(t.x);let n=Ai.constructDouble(i.y);n.subDoubleThis(t.y);let r=Ai.constructDouble(s.x);r.subDoubleThis(t.x);let h=Ai.constructDouble(s.y);h.subDoubleThis(t.y);let u=e.clone();u.mulThis(h);let a=n.clone();if(a.mulThis(r),u.subThis(a),u.isZero())return ki.getNAN();u.mulDoubleThis(2);let m=e.clone();m.mulThis(e);let o=n.clone();o.mulThis(n);let l=m.clone();l.addThis(o);let x=r.clone();x.mulThis(r);let c=h.clone();c.mulThis(h);let y=x.clone();y.addThis(c);let d=n.clone();d.mulThis(y),a=h.clone(),a.mulThis(l),d.subThis(a),d.divThis(u);let v=e.clone();return v.mulThis(y),a=r.clone(),a.mulThis(l),v.subThis(a),v.divThis(u),ki.construct(t.x-d.value(),t.y+v.value())}(t,i,s):e}static calculateAngle(t,i){return Math.atan2(t.crossProduct(i),t.dotProduct(i))}static isBisectorRobust(t,i,s){return(0,e.g)(0),!1}static size(){return 2}get 0(){return this.x}get 1(){return this.y}set 0(t){this.x=t}set 1(t){this.y=t}static c_compare_zorder_xx=[2,0];static c_compare_zorder_yy=[1,0];static compareZorder(t,i){let s=ki.c_compare_zorder_xx[+(t.x<0)]|ki.c_compare_zorder_yy[+(t.y<0)],e=ki.c_compare_zorder_xx[+(i.x<0)]|ki.c_compare_zorder_yy[+(i.y<0)];if(s===e){let s=0,e=0;for(let n=0;n<2;++n){let r=Ri(t[n],i[n]);r>s&&(s=r,e=n)}return t[e]<i[e]}return s<e}static lerp(t,i,s){let e=new ki;return L(t,i,s,e),e}static getClosestCoordinate(t,i,s,e=!1){let n=ki.getNAN();n.setSub(i,t);let r=n.sqrLength();if(0===r)return.5;if(i.isEqualPoint2D(s))return 1;let h=ki.getNAN();h.setSub(s,t);let u=h.dotProduct(n)/r;return e||(u<0?u=0:u>1&&(u=1)),u}static intersectLinesAtOnePoint(t,i,s,e){if(t.equals(i)||s.equals(e))return ki.getNAN();let n=i.x-t.x,r=s.x-e.x,h=i.y-t.y,u=s.y-e.y,a=n*u-r*h;if(!a)return ki.getNAN();let m=a;if(0===m)return ki.getNAN();let o=(s.x-t.x)*u-(s.y-t.y)*r;o/=m;let l=new ki;return L(t,i,o,l),l.isFinite()?l:ki.getNAN()}toString(){return`[${this.x},${this.y}]`}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1737],{40876(e,t,n){n.d(t,{Eq:()=>m,G1:()=>g,Q6:()=>b,TS:()=>l,V6:()=>r,Vm:()=>f,ay:()=>o,c1:()=>p,c4:()=>a,iw:()=>v,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>_});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!i[e]||!!i[e.toLowerCase()]}function l(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...l(e)]}function s(e,t,n){n<0&&++n,n>1&&--n;let i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function o(e,t,n,i=1){let r=(e%360+360)%360/360,l=n<=.5?n*(t+1):n+t-n*t,a=2*n-l;return[Math.round(255*s(a,l,r+1/3)),Math.round(255*s(a,l,r)),Math.round(255*s(a,l,r-1/3)),i]}function u(e){let t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,l=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let s,o=[0,0,0,1];return l&&(s=a&i,a>>=n,o[3]=r*s/255),s=a&i,a>>=n,o[2]=r*s,s=a&i,a>>=n,o[1]=r*s,s=a&i,a>>=n,o[0]=r*s,o}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return o(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function m(e){let t=r(e)?l(e):null;return t??=c(e),t??=h(e)}function f(e){let t=m(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function g(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const v=1/2.2;function b(e){return e**2.2}function _(e){return e**v}},7762(e,t,n){var i,r=n(32198),l=n(10107),a=n(7695),s=n(64108),o=n(56507),u=n(62788),h=n(95488),c=n(98291),d=n(4576),m=n(65529),f=n(36563),g=n(4718),p=n(53966),y=n(93687),v=n(76030),b=n(12195);class _{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class M{constructor(e,t,n,i,r){this.target=e,this.added=t,this.removed=n,this.start=i,this.deleteCount=r}}const w=new y.A(()=>new _,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function T(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function x(e){return e?e instanceof N?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function F(e){if(e?.length)return e[0]}function C(e,t,n,i){let r=Math.min(e.length-n,t.length-i),l=0;for(;l<r&&e[n+l]===t[i+l];)l++;return l}function S(e,t,n,i){t&&t.forEach((t,r,l)=>{e.push(t),S(e,n.call(i,t,r,l),n,i)})}const z=new Set,V=new Set,D=new Set,I=new Map;let k=0,N=i=class extends m.nJ{static ofType(e){if(!e)return i;if(I.has(e))return I.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let n=class extends i{};return(0,r.Cg)([(0,a.u)({Type:e,ensureType:"function"==typeof e?(0,o.dp)(e):(0,o.aq)(e)})],n.prototype,"itemType",void 0),n=(0,r.Cg)([(0,s.$K)(`esri.core.Collection<${t}>`)],n),I.set(e,n),n}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(function(e){return e?(0,d.yc)(e)||e instanceof N?{items:e}:e:{}}(e)),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new h.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:k++})}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?p.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,u.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,x(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,f.hA)();if("change"===e){let e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,f.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){let n="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{n()?.call(null,e),i.remove()});return i}add(e,t){if((0,u.gc)(this._observable),this._emitBeforeChanges(1))return this;let n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,u.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let n=this.getNextIndex(t);return this._splice(n,0,x(e)),this._emitAfterChanges(1),this}at(e){if((0,u.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,u.gc)(this._observable),this._createNewInstance({items:this._items.map(g.o8)})}concat(...e){(0,u.gc)(this._observable);let t=e.map(x);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let n=this._splice(0,this.length),i=n.length;for(let r=0;r<i;r++)e.call(t,n[r],r,n);this._emitAfterChanges(2)}destroyAll(){this.drain(T)}destroyMany(e){let t=this.removeMany(e);return t.forEach(T),t}every(e,t){return(0,u.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,u.gc)(this._observable);let n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,u.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,u.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,u.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,u.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,u.gc)(this._observable);let n=[];return S(n,this,e,t),new i(n)}forEach(e,t){return(0,u.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,u.gc)(this._observable),this._items[e]}getNextIndex(e){(0,u.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,u.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,u.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,u.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,u.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,u.gc)(this._observable);let n=this._items.map(e,t);return new i({items:n})}reorder(e,t=this.length-1){(0,u.gc)(this._observable);let n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=F(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,u.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,u.gc)(this._observable);let n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,u.gc)(this._observable);let n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,u.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,u.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=F(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,u.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof i?e.toArray():e,n=this._items,r=[],l=t.length;for(let e=0;e<l;e++){let i=t[e],l=n.indexOf(i);if(l>-1){let i=1+C(t,n,e+1,l+1),a=this._splice(l,i);a&&a.length>0&&r.push.apply(r,a),e+=i-1}}return this._emitAfterChanges(2),r}reverse(){if((0,u.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=F(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,u.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,u.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,u.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let i=(t?2:0)|!!n.length;if(this._emitBeforeChanges(i))return[];let r=this._splice(e,t,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,u.gc)(this._observable),this._items.slice()}toJSON(e){return(0,u.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,u.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,u.gc)(this._observable),this._items.toString()}unshift(...e){return(0,u.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){let i,r,l=this._items,a=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,v._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(r=l.splice(e,t),this.hasEventListener("before-remove")){let t=w.acquire();t.target=this,t.cancellable=!0;for(let n=0,a=r.length;n<a;n++)i=r[n],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(r.splice(n,1),l.splice(e,0,i),e+=1,--n,--a);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=w.acquire();e.target=this,e.cancellable=!1;let t=r.length;for(let n=0;n<t;n++)e.reset(r[n]),this.emit("after-remove",e);w.release(e)}}if(n?.length){if(a){let e=[];for(let t of n){let n=a.ensureType(t);(null!=n||null==t)&&e.push(n)}n=e}let t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),r=e===this.length;if(t||i){let a=w.acquire();a.target=this,a.cancellable=!0;let s=w.acquire();s.target=this,s.cancellable=!1;for(let o of n)t?(a.reset(o),this.emit("before-add",a),a.defaultPrevented||(r?l.push(o):l.splice(e++,0,o),this._length=l.length,i&&(s.reset(o),this.emit("after-add",s)))):(r?l.push(o):l.splice(e++,0,o),this._length=l.length,s.reset(o),this.emit("after-add",s));w.release(s),w.release(a)}else{if(r)for(let e of n)l.push(e);else l.splice(e,0,...n);this._length=l.length}}if((n?.length||r?.length)&&this._notifyChangeEvent(n,r),this.hasEventListener("after-splice")){let i=new M(this,n,r,e,t);this.emit("after-splice",i)}return r}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let n=w.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,w.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;z.clear(),V.clear(),D.clear();for(let{added:t,removed:n}of e){if(t)if(0===D.size&&0===V.size)for(let e of t)z.add(e);else for(let e of t)V.has(e)?(D.add(e),V.delete(e)):D.has(e)||z.add(e);if(n)if(0===D.size&&0===z.size)for(let e of n)V.add(e);else for(let e of n)z.has(e)?z.delete(e):(D.delete(e),V.add(e))}let n=c.A.acquire();z.forEach(e=>{n.push(e)});let i=c.A.acquire();V.forEach(e=>{i.push(e)});let r=this._items,l=t.items,a=c.A.acquire();if(D.forEach(e=>{l.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(n.length||i.length||a.length)){let e={target:this,added:n,removed:i,moved:a},r=t.listeners.length;for(let n=0;n<r;n++){let i=t.listeners[n];i.removed||i.callback.call(this,e)}}c.A.release(n),c.A.release(i),c.A.release(a)}z.clear(),V.clear(),D.clear()}};(0,r.Cg)([(0,l.MZ)()],N.prototype,"_updating",void 0),(0,r.Cg)([(0,l.MZ)()],N.prototype,"_length",void 0),(0,r.Cg)([(0,l.MZ)()],N.prototype,"length",null),(0,r.Cg)([(0,l.MZ)()],N.prototype,"items",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],N.prototype,"updating",null),N=i=(0,r.Cg)([(0,s.$K)("esri.core.Collection")],N);const L=N;n.d(t,["A",0,L])},65529(e,t,n){var i=n(56372),r=n(36563);const l=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let n=this._listenersMap?.get(e);if(!n)return!1;let i=!1;for(let e of n.slice()){let n="deref"in e?e.deref():e;n?n?.call(this,t):i=!0}return i&&(n=n.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,n)),n.length>0}on(e,t){if(Array.isArray(e)){let n=e.map(e=>this.on(e,t));return(0,r.vE)(n)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),(0,r.hA)(()=>{let n=this._listenersMap?.get(e),i=n?.indexOf(t)??-1;i>=0&&n.splice(i,1)})}once(e,t){let n=this.on(e,e=>{n.remove(),("deref"in t?t.deref():t)?.call(null,e)});return n}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},a=l(class{}),s=a,o=l(i.A);n.d(t,["Zt",0,l,"a$",0,a,"bk",0,s,"nJ",0,o])},7695(e,t,n){function i(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>i})},91829(e,t,n){function i(){return[0,0,0,0]}function r(e,t,n,i){return[e,t,n,i]}function l(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function s(){return r(0,1,0,0)}function o(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(t,{Un:()=>c,_Y:()=>u,fA:()=>r,uY:()=>h,vt:()=>i});const h=[0,0,0,0],c=l(),d=a(),m=s(),f=o(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:g,UNIT_X:d,UNIT_Y:m,UNIT_Z:f,ZEROS:h,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:function(e,t,n,i){return[e,t,n,i]},fromArray:function(e,t=[0,0,0,0]){let n=Math.min(4,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:r,ones:l,unitW:u,unitX:a,unitY:s,unitZ:o,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},78955(e,t,n){n.d(t,{Bw:()=>p,C:()=>r,Cc:()=>_,LI:()=>d,Om:()=>b,S8:()=>v,T9:()=>c,WQ:()=>a,Z0:()=>M,aI:()=>T,hG:()=>g,hZ:()=>l,hs:()=>m,jk:()=>h,m3:()=>y,t2:()=>w});var i=n(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function s(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function o(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function h(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function c(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function f(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(n*n+i*i+r*r+l*l)}function g(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return n*n+i*i+r*r+l*l}function p(e){let t=e[0],n=e[1],i=e[2],r=e[3];return Math.sqrt(t*t+n*n+i*i+r*r)}function y(e){let t=e[0],n=e[1],i=e[2],r=e[3];return t*t+n*n+i*i+r*r}function v(e,t){let n=t[0],i=t[1],r=t[2],l=t[3],a=n*n+i*i+r*r+l*l;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=i*a,e[2]=r*a,e[3]=l*a),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function _(e,t,n,i){let r=t[0],l=t[1],a=t[2],s=t[3];return e[0]=r+i*(n[0]-r),e[1]=l+i*(n[1]-l),e[2]=a+i*(n[2]-a),e[3]=s+i*(n[3]-s),e}function M(e,t,n){let i=t[0],r=t[1],l=t[2],a=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*l+n[12]*a,e[1]=n[1]*i+n[5]*r+n[9]*l+n[13]*a,e[2]=n[2]*i+n[6]*r+n[10]*l+n[14]*a,e[3]=n[3]*i+n[7]*r+n[11]*l+n[15]*a,e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function T(e,t){let n=e[0],r=e[1],l=e[2],a=e[3],s=t[0],o=t[1],u=t[2],h=t[3],c=(0,i.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(l-u)<=c*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(a-h)<=c*Math.max(1,Math.abs(a),Math.abs(h))}const x=s,F=o,C=u,S=f,z=g,V=p,D=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:r,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:f,div:C,divide:u,dot:b,equals:T,exactEquals:w,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:V,length:p,lerp:_,max:c,min:h,mul:F,multiply:o,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){let n,r,l,a,s,o,u=i.Ov;do{n=2*u()-1,r=2*u()-1,s=n*n+r*r}while(s>=1);do{l=2*u()-1,a=2*u()-1,o=l*l+a*a}while(o>=1);let h=Math.sqrt((1-s)/o);return e[0]=t*n,e[1]=t*r,e[2]=t*l*h,e[3]=t*a*h,e},round:d,scale:m,scaleAndAdd:function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e[3]=t[3]+n[3]*i,e},set:l,sqrDist:z,sqrLen:D,squaredDistance:g,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:x,subtract:s,transformMat4:M,transformQuat:function(e,t,n){let i=t[0],r=t[1],l=t[2],a=n[0],s=n[1],o=n[2],u=n[3],h=u*i+s*l-o*r,c=u*r+o*i-a*l,d=u*l+a*r-s*i,m=-a*i-s*r-o*l;return e[0]=h*u+m*-a+c*-o-d*-s,e[1]=c*u+m*-s+d*-a-h*-o,e[2]=d*u+m*-o+h*-s-c*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},90629(e,t,n){n.d(t,{L7:()=>l,Lz:()=>a,PN:()=>s,cr:()=>o,gs:()=>h,ps:()=>r,r_:()=>c,tc:()=>u}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,r=s(1),l=a(1);function a(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){let t=e.match(i);if(t){let n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),l="px"===i?s(n):n;return r?-l:l}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function c(e=0,t=0,n=0){return[e,t,n]}},88930(e,t,n){n.d(t,{S1:()=>s,VW:()=>o,lL:()=>u,rb:()=>h,t:()=>c});var i=n(34747),r=n(97770);n(98623);const l=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function s(e,t,n,l="system"){if("unknown"===n)return e;let a=new i.oh((0,r.wj)(l)),s=i.c9.fromJSDate(e,{zone:a}),o="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),s.plus({[o]:t}).toJSDate()}function o(e,t,n="milliseconds"){let i=e.getTime(),r=c(t,n,"milliseconds");return new Date(i+r)}function u(e,t,n="system"){let{unit:l}=t,a=Math.max(1,Math.trunc(t.value)),s=new i.oh((0,r.wj)(n)),o=i.c9.fromJSDate(e,{zone:s}),u=e=>e-e%a;switch(l){case"milliseconds":return o.startOf("second").plus({millisecond:u(o.millisecond)}).toJSDate();case"seconds":return o.startOf("minute").plus({second:u(o.second)}).toJSDate();case"minutes":return o.startOf("hour").plus({minute:u(o.minute)}).toJSDate();case"hours":return o.startOf("day").plus({hour:u(o.hour)}).toJSDate();case"days":return o.startOf("month").plus({day:u(o.day-1)}).toJSDate();case"weeks":{let e=o.startOf("year").startOf("week"),t=Math.floor(o.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return o.startOf("year").plus({month:u(o.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=o.startOf("year"),t=("decades"===l?10:"centuries"===l?100:1)*a,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){let t=l.exec(e);if(!t)return null;let{hh:n,mm:i,ss:r,ms:s}=t.groups;return Number(n)*a.hours+Number(i)*a.minutes+Number(r||0)*a.seconds+Number(s||0)}function c(e,t,n){return 0===e?0:e*a[t]/a[n]}},62577(e,t,n){function i(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null==e.extent?[0,0,0,0]:[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]}:null}function r(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;let{originPosition:t,scale:n,translate:i}=e,r=n[0]??1,l=n[1]??1;return{originPosition:"lowerLeft",scale:[r,"lowerLeft"===t?l:-l,n[2]??1,n[3]??1],translate:[i[0]??0,i[1]??0,i[2]??0,i[3]??0]}}function l({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function a({scale:e,translate:t},n){return Math.round((n-t[1])/e[1])}function s({scale:e,translate:t},n){return n*e[0]+t[0]}function o({scale:e,translate:t},n){return n*e[1]+t[1]}function u({scale:e,translate:t},n){return(n??0)*e[2]+t[2]}function h({scale:e,translate:t},n){return n?n*e[3]+t[3]:0}function c(e,t){return e&&t?g:e&&!t?m:!e&&t?f:d}n.d(t,{$X:()=>_,B2:()=>a,Gy:()=>y,IE:()=>l,P5:()=>M,Q1:()=>r,SW:()=>v,Tr:()=>b,VV:()=>i});const d=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l];let{scale:a,originPosition:u}=e,h=a[0],c="lowerLeft"===u?a[1]:-a[1];for(let e=1;e<t.length;e++){let[i,a]=t[e];r+=h*i,l+=c*a,n[e]=[r,l]}return n},m=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,u(e,i[2])];let{scale:a,originPosition:h}=e,c=a[0],d="lowerLeft"===h?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o]=t[i];r+=c*a,l+=d*s,n[i]=[r,l,u(e,o)]}return n},f=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,h(e,i[2])];let{scale:a,originPosition:u}=e,c=a[0],d="lowerLeft"===u?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o]=t[i];r+=c*a,l+=d*s,n[i]=[r,l,h(e,o)]}return n},g=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,u(e,i[2]),h(e,i[3])];let{scale:a,originPosition:c}=e,d=a[0],m="lowerLeft"===c?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o,c]=t[i];r+=d*a,l+=m*s,n[i]=[r,l,u(e,o),h(e,c)]}return n};function p(e,t,n){let i=Array(n.length);for(let r=0;r<n.length;r++)i[r]=t(e,n[r]);return i}function y(e,t,n){let i=r(e);return t.x=l(i,n.x),t.y=a(i,n.y),null!=n.z&&(t.z=function({scale:e,translate:t},n){return Math.round(((n??0)-t[2])/e[2])}(i,n.z)),null!=n.m&&(t.m=function({scale:e,translate:t},n){return n?Math.round((n-t[3])/e[3]):0}(i,n.m)),t}function v(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){if(null!=n){let a=r(e);t.points=c(i,l)(a,n.points),t.hasZ=i,t.hasM=l}return t}function b(e,t,n,i=null!=n?.z,l=null!=n?.m){if(null==n)return t;let a=r(e);return t.x=s(a,n.x),t.y=o(a,n.y),i&&(t.z=u(a,n.z)),l&&(t.m=h(a,n.m)),t}function _(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){return null!=n&&(t.rings=p(r(e),c(i,l),n.rings),t.hasZ=i,t.hasM=l),t}function M(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){return null!=n&&(t.paths=p(r(e),c(i,l),n.paths),t.hasZ=i,t.hasM=l),t}},97770(e,t,n){n.d(t,{Ey:()=>D,F8:()=>V,J2:()=>F,Yq:()=>S,_m:()=>C,_v:()=>_,iS:()=>z,wj:()=>I});var i=n(34747),r=n(66552),l=n(98623),a=n(73444);const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},o={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},v={...g,...p},b={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...y},"short-date-long-time":{...h,...g},"short-date-long-time-24":{...h,...v},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...y},"short-date-le-long-time":{...h,...g},"short-date-le-long-time-24":{...h,...v},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...y},"long-month-day-year-long-time":{...c,...g},"long-month-day-year-long-time-24":{...c,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...g},"day-short-month-year-long-time-24":{...d,...v},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...y},"long-date-long-time":{...m,...g},"long-date-long-time-24":{...m,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},_=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function w(){let e=(0,a.lR)();return(e&&M[e])??(0,a.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(M.bs="sr-Latn-CS");let T=new WeakMap;const x=b["short-date-short-time"];function F(e){return b[e]}function C(e){let{dateStyle:t,timeStyle:n,hour12:i,year:r,month:l}=e,a={};return t?a.dateStyle=t:r&&(a.year=r,a.month=l||void 0),n&&!a.year&&(a.timeStyle=n,a.hour12="auto"===i?void 0:"always"===i),a}function S(e,t=x){return function(e){let t=T.get(e);if(!t){let n=w(),i=I(e.timeZone??"system"),r={...e,timeZone:i};t=new Intl.DateTimeFormat(n,r),T.set(e,t)}return t}(t).format(e)}function z(e,t=x){return S(new Date(e),{...t,...u,...o})}function V(e,t=x){return S(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function D(e,t=x){let n=i.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return S(n.toJSDate(),t);let r=0===n.offset?"UTC":t.timeZone,l={...t,timeZone:r};return n.toLocaleString(l,{locale:w()})}function I(e){switch(e){case"system":return l.N;case l.L:return"UTC";default:return e}}(0,a.Ml)(()=>{T=new WeakMap})},73444(e,t,n){n.d(t,{JK:()=>o,Ml:()=>p,QC:()=>c,lR:()=>h,oQ:()=>f});var i=n(36563);let r;n(44208);const l=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function s(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return l??e??t??"en"}function o(){return void 0===r&&(r=s()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=o()){return d(e)?.language}function c(e=o()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=o()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,i.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const g=[];function p(e){return g.push(e),(0,i.hA)(()=>g.splice(g.indexOf(e),1))}function y(){let e=s();r!==e&&([...g].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),a&&new MutationObserver(()=>{y()}).observe(a,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),r=n(53966),l=n(12195),a=n(98623),s=n(56400),o=n(30524);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let n=[];for(let e of this.fields){let t=e?.name,i=(0,o.GZ)(t);if(t&&i){let r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,l=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,s.ZS)(e.dateFieldsTimeReference):null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??c:r.dateFieldsTimeReference?(0,s.ZS)(r.dateFieldsTimeReference):c??"UTC":null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,s.ZS)(i.timeReference):c:null,f=new Map([[(0,o.NF)(r?.creationDateField??""),d],[(0,o.NF)(r?.editDateField??""),d],[(0,o.NF)(l),m],[(0,o.NF)(u),m]]);for(let{name:i,type:r}of e.fields)if(h.has(r))t.set(i,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,a.L);else{let e=f.get((0,o.NF)(i??""))??c;t.set(i,e)}return t}},61760(e,t,n){n.d(t,{PU:()=>l,YW:()=>s,hv:()=>a,zp:()=>r}),n(78955),n(91829),n(34727);var i=n(90629);function r(e){return(0,i.PN)(2.4*e)}function l(e){return(0,i.Lz)(e)/2.4}function a(e,t,n){let i=Math.sqrt(e**2+t**2)/n;return i>1?0:3/(Math.PI*n**2)*(1-i**2)**2}function s(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},9760(e,t,n){n.d(t,{A:()=>h});var i=n(32198),r=n(91429),l=n(66552),a=n(25482),s=n(93223);const o=new l.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new l.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let h=class extends a.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,s.e)({classBreaksDef:"class-breaks-definition"})],h.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"breakCount",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"classificationField",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{read:o.read,write:o.write}})],h.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,i.Cg)([(0,r.MZ)({json:{read:u.read,write:u.write}})],h.prototype,"normalizationType",void 0),(0,i.Cg)([(0,r.MZ)({value:null,json:{write:!0}})],h.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,r.MZ)({value:null,json:{write:!0}})],h.prototype,"definedInterval",null),h=(0,i.Cg)([(0,r.$K)("esri.rest.support.ClassBreaksDefinition")],h)},84892(e,t,n){n.d(t,{t:()=>l});var i=n(53966);function r(e,t){return Number(e.toFixed(t))}function l(e,t){let{normalizationTotal:n}=e;return{classBreaks:a(e,t),normalizationTotal:n}}function a(e,t){let n=e.definition,{classificationMethod:i,normalizationType:l,definedInterval:a}=n,u=n.breakCount??1,h=[],c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);let[d,m]=t??[c.at(0),c.at(-1)];if("equal-interval"===i)if(c.length>=u){let e=(m-d)/u,t=d;for(let n=1;n<u;n++){let i=r(d+n*e,6);h.push({minValue:t,maxValue:i,label:s(t,i,l)}),t=i}h.push({minValue:t,maxValue:m,label:s(t,m,l)})}else c.forEach(e=>{h.push({minValue:e,maxValue:e,label:s(e,e,l)})});else if("natural-breaks"===i){let t=function(e){let t=[],n=[],i=Number.MIN_VALUE,r=1,l=-1;for(let a=0;a<e.length;a++){let s=e[a];s===i?(r++,n[l]=r):null!==s&&(t.push(s),i=s,r=1,n.push(r),l++)}return{uniqueValues:t,valueFrequency:n}}(c),n=e.valueFrequency||t.valueFrequency,i=o(t.uniqueValues,n,u),a=d;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let n=r(t.uniqueValues[i[e]],6);h.push({minValue:a,maxValue:n,label:s(a,n,l)}),a=n}h.push({minValue:a,maxValue:m,label:s(a,m,l)})}else if("quantile"===i)if(c.length>=u&&d!==m){let e=d,t=Math.ceil(c.length/u),n=0;for(let i=1;i<u;i++){let r=t+n-1;r>c.length&&(r=c.length-1),r<0&&(r=0),h.push({minValue:e,maxValue:c[r],label:s(e,c[r],l)}),e=c[r],n+=t,t=Math.ceil((c.length-n)/(u-i))}h.push({minValue:e,maxValue:m,label:s(e,m,l)})}else{let e=-1;for(let t=0;t<c.length;t++){let n=c[t];n!==e&&(e=n,h.push({minValue:e,maxValue:n,label:s(e,n,l)}),e=n)}}else if("standard-deviation"===i){let e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}(c),t=function(e,t){let n=0;for(let i=0;i<e.length;i++){let r=e[i];n+=(r-t)*(r-t)}return n/=e.length,Math.sqrt(n)}(c,e);if(0===t)h.push({minValue:c[0],maxValue:c[0],label:s(c[0],c[0],l)});else{let n=function(e,t,n,i,r){let l=Math.max(i-e,t-i)/r/n;return l>=1?1:l>=.5?.5:.25}(d,m,u,e,t)*t,i=0,a=d;for(let t=u;t>=1;t--){let o=r(e-(t-.5)*n,6);h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++}let o=r(e+.5*n,6);h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++;for(let t=1;t<=u;t++)o=i===2*u?m:r(e+(t+.5)*n,6),h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++}}else if("defined-interval"===i){if(!a)return h;let[e,n]=t??[c.at(0),c.at(-1)],i=Math.ceil((n-e)/a),o=e;for(let t=1;t<i;t++){let n=r(e+t*a,6);h.push({minValue:o,maxValue:n,label:s(o,n,l)}),o=n}h.push({minValue:o,maxValue:n,label:s(o,n,l)})}return h}function s(e,t,n){return e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t}function o(e,t,n){let i=e.length,r=[];n>i&&(n=i);for(let e=0;e<n;e++)r.push(Math.round(e*i/n-1));r.push(i-1);let l=u(r,e,t,n);return function(e,t,n,i,r,l){let a=0,s=0,o=0,u=0,c=!0;for(let d=0;d<2&&c;d++){0===d&&(c=!1);for(let d=0;d<l-1;d++)for(;n[d+1]+1!==n[d+2];){n[d+1]=n[d+1]+1;let l=h(d,n,i,r);o=l.sbMean,a=l.sbSdcm;let m=h(d+1,n,i,r);if(u=m.sbMean,s=m.sbSdcm,!(a+s<t[d]+t[d+1])){n[d+1]=n[d+1]-1;break}t[d]=a,t[d+1]=s,e[d]=o,e[d+1]=u,c=!0}for(let d=l-1;d>0;d--)for(;n[d]!==n[d-1]+1;){n[d]=n[d]-1;let l=h(d-1,n,i,r);o=l.sbMean,a=l.sbSdcm;let m=h(d,n,i,r);if(u=m.sbMean,s=m.sbSdcm,!(a+s<t[d-1]+t[d])){n[d]=n[d]+1;break}t[d-1]=a,t[d]=s,e[d-1]=o,e[d]=u,c=!0}}return c}(l.mean,l.sdcm,r,e,t,n)&&(l=u(r,e,t,n)),r}function u(e,t,n,i){let r=[],l=[],a=[],s=0,o=[],u=[];for(let r=0;r<i;r++){let i=h(r,e,t,n);o.push(i.sbMean),u.push(i.sbSdcm),s+=u[r]}let c,d=s,m=!0;for(;m||s<d;){m=!1,r=[];for(let t=0;t<i;t++)r.push(e[t]);for(let n=0;n<i;n++)for(let r=e[n]+1;r<=e[n+1];r++)if(c=t[r],n>0&&r!==e[n+1]&&Math.abs(c-o[n])>Math.abs(c-o[n-1]))e[n]=r;else if(n<i-1&&e[n]!==r-1&&Math.abs(c-o[n])>Math.abs(c-o[n+1])){e[n+1]=r-1;break}d=s,s=0,l=[],a=[];for(let r=0;r<i;r++){l.push(o[r]),a.push(u[r]);let i=h(r,e,t,n);o[r]=i.sbMean,u[r]=i.sbSdcm,s+=u[r]}}if(s>d){for(let t=0;t<i;t++)e[t]=r[t],o[t]=l[t],u[t]=a[t];s=d}return{mean:o,sdcm:u}}function h(e,t,n,r){let l=0,a=0;for(let i=t[e]+1;i<=t[e+1];i++){let e=r[i];l+=n[i]*e,a+=e}a<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let s=l/a,o=0;for(let i=t[e]+1;i<=t[e+1];i++)o+=r[i]*(n[i]-s)**2;return{sbMean:s,sbSdcm:o}}},26412(e,t,n){n.r(t),n.d(t,{classBreaks:()=>b,heatmapStatistics:()=>M,histogram:()=>_,summaryStatistics:()=>y,uniqueValues:()=>v});var i=n(1873),r=(n(49186),n(90629)),l=n(88930),a=n(86738),s=n(16930),o=n(62577),u=n(21325),h=n(95466),c=n(30524),d=n(61760),m=n(43668),f=n(4560);let g;async function p(e,t,n=!0){if(!t)return[];let r,{field:a,field2:o,field3:u,fieldDelimiter:d,sqlExpression:p,fieldInfos:y,timeZone:v}=e,b=a&&y?.find(e=>e.name.toLowerCase()===a.toLowerCase()),_=!!b&&(0,c.OH)(b),M=!!b&&(0,f.fs)(b),w=e.valueExpression,T=e.normalizationType,x=e.normalizationField,F=e.normalizationTotal,C=[],S=e.viewInfoParams,z=null;if(w){if(!g){let{arcadeUtils:e}=await(0,m.l)();g=e}g.hasGeometryOperations(w)&&await g.enableGeometryOperations(),z=g.createFunction(w),r=S?g.getViewInfo({viewingMode:S.viewingMode,scale:S.scale,spatialReference:new s.A(S.spatialReference)}):null}let V=e.fieldInfos,D=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!V?null:{fields:V};for await(let e of t){let t,s=e.attributes;if(p){let n=await(0,f.j4)(p,new h.A(V));n&&(t=n.calculateValue(e.attributes))}else if(w){let n=D?Object.assign({},e,{layer:D}):e,i=g.createExecContext(n,r,v);t=g.executeFunction(z,i)}else s&&(t=s[a],o?(t=`${(0,i.gJ)(t)}${d}${(0,i.gJ)(s[o])}`,u&&(t=`${t}${d}${(0,i.gJ)(s[u])}`)):"string"==typeof t&&n&&(M?t=t?new Date(t).getTime():null:_&&(t=t?(0,l.rb)(t):null)));if(T&&"number"==typeof t&&isFinite(t)){let e=s&&parseFloat(s[x]);t=(0,i.zS)(t,T,e,F)}C.push(t)}return C}async function y(e){let{attribute:t,features:n}=e,{normalizationType:r,normalizationField:l,minValue:a,maxValue:s,fieldType:o,outStatisticTypes:u}=t,h=await p({field:t.field,valueExpression:t.valueExpression,normalizationType:r,normalizationField:l,normalizationTotal:t.normalizationTotal,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),c=(0,i.Vb)({normalizationType:r,normalizationField:l,minValue:a,maxValue:s}),d={value:.5,fieldType:o},m="esriFieldTypeString"===o?(0,i.z9)({values:h,supportsNullCount:c,percentileParams:d,outStatisticTypes:u}):(0,i.G_)({values:h,minValue:a,maxValue:s,useSampleStdDev:!r,supportsNullCount:c,percentileParams:d,outStatisticTypes:u});return(0,i.oZ)(m,u,"esriFieldTypeDate"===o)}async function v(e){let{attribute:t,features:n}=e,r=await p({field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,valueExpression:t.valueExpression,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n,!1),l=(0,i.b3)(r);return(0,i.lv)(l,t.domains,t.returnAllCodedValues,t.fieldDelimiter)}async function b(e){let{attribute:t,features:n}=e,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o}=t,u=await p({field:r,valueExpression:t.valueExpression,normalizationType:l,normalizationField:a,normalizationTotal:s,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),h=(0,i.Rw)(u,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numClasses:t.numClasses,minValue:t.minValue,maxValue:t.maxValue});return(0,i.jM)(h,o)}async function _(e){let{attribute:t,features:n}=e,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o}=t,u=await p({field:r,valueExpression:t.valueExpression,sqlExpression:t.sqlExpression,normalizationType:l,normalizationField:a,normalizationTotal:s,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n);return(0,i.$y)(u,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numBins:t.numBins,minValue:t.minValue,maxValue:t.maxValue})}async function M(e){let{attribute:t,features:n}=e,{field:i,radius:l,transform:s,spatialReference:h}=t,c=t.size??[0,0],m=function(e,t,n,i){let r=(0,u.d9)(n)?(0,u.Vp)(n):null,l=r?Math.round((r.valid[1]-r.valid[0])/t.scale[0]):null;return e.map(e=>{let n=new a.A(e.geometry);return(0,o.Gy)(t,n,n),e.geometry=r?function(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}(n,l??0,i[0]):n,e})}(n??[],s,h,c);return function(e,t=18,n,i,l){let a=new Float64Array(i*l);t=Math.round((0,r.Lz)(t));let s=1/0,o=-1/0,u=(0,d.YW)(n);for(let{geometry:n,attributes:r}of e){let{x:e,y:h}=n,c=Math.max(0,e-t),m=Math.max(0,h-t),f=Math.min(l,h+t),g=Math.min(i,e+t),p=+u(r);for(let n=m;n<f;n++)for(let r=c;r<g;r++){let l=n*i+r,u=(0,d.hv)(r-e,n-h,t)*p,c=a[l]+=u;s=Math.min(s,c),o=Math.max(o,c)}}return{min:s,max:o}}(m,l??void 0,i,c[0],c[1])}},4560(e,t,n){n.d(t,{i0:()=>u,j4:()=>o,fs:()=>s});var i=n(97770),r=n(30524);n(7762),n(84952),n(27865),n(43281),n(98623);var l=n(56400);let a;function s(e){return(0,r.vE)(e)||(0,r.zD)(e)||(0,r.Ah)(e)}async function o(e,t){return e?(a||=new(await Promise.all([n.e(9696),n.e(4123)]).then(()=>n(44123)).then(e=>e.WhereClauseCache))(50,500),a.get(e,t)):null}function u(e,t){let n,r,{format:a,fieldFormat:s,timeZoneOptions:o,fieldType:u}=t??{},h=s?(0,i._m)(s):null;if(o&&({timeZone:n,timeZoneName:r}=(0,l.hv)(o.layerTimeZone,o.datesInUnknownTimezone,o.viewTimeZone,h||(0,i.J2)(a||"short-date-short-time"),u)),"string"==typeof e&&isNaN(Date.parse("time-only"===u?`1970-01-01T${e}Z`:e)))return e;switch(u){case"date-only":{let t=h||(0,i.J2)(a||"short-date");return"string"==typeof e?(0,i.iS)(e,{...t}):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"time-only":{let t=h||(0,i.J2)(a||"short-time");return"string"==typeof e?(0,i.F8)(e,t):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"timestamp-offset":{let t=a||h||o?h||(0,i.J2)(a||"short-date-short-time"):void 0,l=t?{...t,timeZone:n,timeZoneName:r}:void 0;return"string"==typeof e?(0,i.Ey)(e,l):(0,i.Yq)(e,l)}default:{let t=a||h||o?h||(0,i.J2)(a||"short-date-short-time"):void 0;return(0,i.Yq)("string"==typeof e?new Date(e):e,t?{...t,timeZone:n,timeZoneName:r}:void 0)}}}new Set(["integer","small-integer"])},1873(e,t,n){n.d(t,{$y:()=>L,Ak:()=>Z,FM:()=>f,G_:()=>d,Rw:()=>k,Vb:()=>h,b3:()=>z,gJ:()=>u,jM:()=>N,lv:()=>D,oZ:()=>S,qg:()=>m,sU:()=>A,z9:()=>c,zS:()=>I});var i=n(9760),r=n(84892);const l=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,a=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),s=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),o=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function h(e){let t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!i}function c(e){let{outStatisticTypes:t}=e,n=e.returnDistinct?[...new Set(e.values)]:e.values,i=n.filter(e=>null!=e).sort(),r=i.length,l={count:r,min:i[0],max:i[r-1]};return e.supportsNullCount&&(l.nullcount=n.length-r),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(l.median=m(n,e.percentileParams)),l}function d(e){let{values:t,useSampleStdDev:n,supportsNullCount:i,outStatisticTypes:r}=e,l=1/0,a=-1/0,s=null,o=null,u=null,h=null,c=0,d=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=d&&e<=f&&(s=null===s?e:s+e,l=Math.min(l,e),a=Math.max(a,e),c++):"string"==typeof e&&c++;if(c&&null!=s){o=s/c;let e=0;for(let n of t)Number.isFinite(n)&&n>=d&&n<=f&&(e+=(n-o)**2);h=n?c>1?e/(c-1):0:c>0?e/c:0,u=Math.sqrt(h)}else l=null,a=null;let g={avg:o,count:c,max:a,min:l,stddev:u,sum:s,variance:h};return i&&(g.nullcount=t.length-c),!e.percentileParams||r?.include?.length&&!r.include.includes("median")||r?.exclude?.length&&r.exclude.includes("median")||(g.median=m(t,e.percentileParams)),g}function m(e,t){let{fieldType:n,value:i,orderBy:r,isDiscrete:l}=t,a=f(n,"desc"===r,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>a(e,t)),0===e.length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];let s=(e.length-1)*i,o=Math.floor(s),u=o+1,h=s%1,c=e[o],d=e[u];return u>=e.length||l||"string"==typeof c||"string"==typeof d?c:c*(1-h)+d*h}function f(e,t,n="case-sensitive"){if(e){if(a.has(e))return F(t);if(s.has(e))return w(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?b:v}(t);let i=w(t,"case-sensitive"===n);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(C(e),C(t))}let i=t?1:-1,r=F(t),l=w(t,"case-sensitive"===n),o=y(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?r(e,t):"string"==typeof e&&"string"==typeof t?l(e,t):o(e,t)??i}const g=(e,t)=>null==e?null==t?0:1:null==t?-1:null,p=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function y(e){return e?g:p}const v=(e,t)=>p(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),b=(e,t)=>g(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),_=(e,t)=>p(e,t)??(e===t?0:e<t?-1:1),M=(e,t)=>g(e,t)??(e===t?0:e<t?1:-1);function w(e,t){if(t)return e?M:_;let n=y(e);return e?(e,t)=>n(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>n(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const T=(e,t)=>g(e,t)??t-e,x=(e,t)=>p(e,t)??e-t;function F(e){return e?T:x}function C(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function S(e,t,n){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:o.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return n&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function z(e){let t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function V(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function D(e,t,n,i){let r=e.count,l=[];if(n&&t){let e=[],n=V(t[0]);for(let r of n)if(t[1]){let n=V(t[1]);for(let l of n)if(t[2]){let n=V(t[2]);for(let t of n)e.push(`${u(r)}${i}${u(l)}${i}${u(t)}`)}else e.push(`${u(r)}${i}${u(l)}`)}else e.push(r);for(let t of e)r.hasOwnProperty(t)||(r[t]={data:t,count:0})}for(let e in r){let t=r[e];l.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:l}}function I(e,t,n,i){let r=null;switch(t){case"log":0!==e&&(r=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(r=e/i*100);break;case"field":Number.isFinite(n)&&0!==n&&(r=e/n);break;case"natural-log":e>0&&(r=Math.log(e));break;case"square-root":e>0&&(r=e**.5)}return r}function k(e,t,n){let l=function(e){let{breakCount:t,field:n,normalizationField:r,normalizationType:l}=e,a=e.classificationMethod||"equal-interval",s="standard-deviation"===a?e.standardDeviationInterval||1:void 0,o="defined-interval"===a?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:n,classificationMethod:a,normalizationField:"field"===l?r:void 0,normalizationType:l,standardDeviationInterval:s,definedInterval:o})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,n){let i=t??-1/0,r=n??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=r)}(e,t.minValue,t.maxValue),(0,r.t)({definition:l,values:e,normalizationTotal:t.normalizationTotal},n)}function N(e,t){let n=e.classBreaks,i=n.length,r=n[0]?.minValue,a=n[i-1]?.maxValue,s="standard-deviation"===t,o=l;return n=n.map(e=>{let t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(s&&t){let e=t.match(o)?.map(e=>+e.trim())??[];2===e.length?(n.minStdDev=e[0],n.maxStdDev=e[1],e[0]<0&&e[1]>0&&(n.hasAvg=!0)):1===e.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=e[0]):t.includes(">")&&(n.minStdDev=e[0],n.maxStdDev=null))}return n}),{minValue:r,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function L(e,t){let n=A(e,t);if(null==n.min&&null==n.max)return{bins:[],minValue:n.min,maxValue:n.max,normalizationTotal:t.normalizationTotal};let i=n.intervals,r=n.min??0,l=n.max??0,a=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(let t of e)if(null!=t&&t>=r&&t<=l){let e=Z(i,t);e>-1&&a[e].count++}return{bins:a,minValue:r,maxValue:l,normalizationTotal:t.normalizationTotal}}function A(e,t,n=!1){let{field:i,classificationMethod:r,standardDeviationInterval:l,definedInterval:a,normalizationType:s,normalizationField:o,normalizationTotal:u,minValue:c,maxValue:m}=t,f=t.numBins||10,g=null,p=null,y=null;if(r&&"equal-interval"!==r||s){let{classBreaks:t}=k(e,{field:i,normalizationType:s,normalizationField:o,normalizationTotal:u,classificationMethod:r,standardDeviationInterval:l,definedInterval:a,minValue:c,maxValue:m,numClasses:f},null!=c&&null!=m?[c,m]:void 0);g=t[0]?.minValue,p=t[t.length-1]?.maxValue,y=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=c&&null!=m)g=c,p=m;else{let t=d({values:e,minValue:c,maxValue:m,useSampleStdDev:!s,supportsNullCount:h({normalizationType:s,normalizationField:o,minValue:c,maxValue:m})});g=t.min??null,p=t.max??null}y=function(e,t,n){let i,r=(t-e)/n,l=[],a=e;for(let e=1;e<=n;e++)i=a+r,i=Number(i.toFixed(16)),l.push([a,e===n?t:i]),a=i;return l}(g??0,p??0,f)}if(n&&y.length){let e=y.at(-1)[1];y.push([e,e])}return{min:g,max:p,intervals:y}}function Z(e,t){let n=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){n=i;break}return n}}}]);
|