@agrotools1/at-components 0.2.4 → 0.2.5
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/dist/AGraphicContainer-d82e96aa.js +109 -0
- package/dist/APIKeyMixin-2ee64e59.js +19 -0
- package/dist/Analysis-449f84c5.js +31 -0
- package/dist/ArcGISCachedService-a838709f.js +47 -0
- package/dist/ArcGISService-7e5e8710.js +25 -0
- package/dist/AreaMeasurement2D-971dad40.js +405 -0
- package/dist/AreaMeasurement3D-48bc0242.js +488 -0
- package/dist/AttachmentInfo-ad88d558.js +34 -0
- package/dist/AttachmentQuery-c86dac15.js +18 -0
- package/dist/AttributeStore-3851ad0b.js +1707 -0
- package/dist/BaseDynamicLayerView2D-02baa49a.js +63 -0
- package/dist/BingMapsLayer-67c70069.js +112 -0
- package/dist/Bitmap-d455f554.js +128 -0
- package/dist/BitmapContainer-c78799ad.js +23 -0
- package/dist/BlendLayer-246e4998.js +13 -0
- package/dist/BoundsStore-b18f4e4e.js +63 -0
- package/dist/BufferObject-22d914df.js +100 -0
- package/dist/BufferView-5272765e.js +683 -0
- package/dist/BuildingSceneLayer-f08d5129.js +535 -0
- package/dist/Button-335b8469.js +36 -0
- package/dist/CSVLayer-40c0bd0e.js +208 -0
- package/dist/CSVSourceWorker-b8df4580.js +367 -0
- package/dist/CatalogDynamicGroupLayerView2D-3abd5c54.js +66 -0
- package/dist/CatalogFootprintLayerView2D-22c795e4.js +76 -0
- package/dist/CatalogLayer-74d18466.js +262 -0
- package/dist/CatalogLayerView2D-ffee45d8.js +52 -0
- package/dist/ClassBreaksDefinition-5a577d31.js +18 -0
- package/dist/ColorMaterial.glsl-bc384e65.js +64 -0
- package/dist/ColorSet-570396b9.js +45 -0
- package/dist/ColorStop-5009138a.js +29 -0
- package/dist/Container-f931e682.js +521 -0
- package/dist/CustomParametersMixin-9e8adcf6.js +12 -0
- package/dist/DefaultMaterial.glsl-092e1a97.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-43e030be.js +653 -0
- package/dist/DefaultTheme-59d78c72.js +130 -0
- package/dist/DeleteForwardEditsParameters-8b5196fa.js +18 -0
- package/dist/DimensionLayer-6fc6ab12.js +129 -0
- package/dist/DirectLineMeasurement3D-6823c93d.js +449 -0
- package/dist/DistanceMeasurement2D-a6cf62b6.js +303 -0
- package/dist/DoubleArray-bb8ff0fb.js +25 -0
- package/dist/Dropdown/Filter/test.mocks.d.ts +1 -1
- package/dist/Dropdown/List/test.mocks.d.ts +1 -1
- package/dist/EdgeProcessingWorker-c5511714.js +63 -0
- package/dist/EditBusLayer-513ca203.js +107 -0
- package/dist/ElevationInfo-234040e3.js +56 -0
- package/dist/ElevationLayer-599949a0.js +129 -0
- package/dist/ElevationQuery-aaa7fb05.js +598 -0
- package/dist/ElevationSamplerWorker-07be3a80.js +62 -0
- package/dist/ExportImageParameters-b28e28df.js +66 -0
- package/dist/ExportStrategy-d6fd38ed.js +93 -0
- package/dist/ExportWMSImageParameters-be4cc5df.js +33 -0
- package/dist/External-55b35c8d.js +110 -0
- package/dist/FeatureCollectionSnappingSource-fce9fa91.js +130 -0
- package/dist/FeatureCommandQueue-4e426066.js +1244 -0
- package/dist/FeatureEffect-0a86f0ba.js +39 -0
- package/dist/FeatureEffectLayer-13705792.js +13 -0
- package/dist/FeatureFilter-1635b86a.js +27 -0
- package/dist/FeatureLayer-d2f8e7c0.js +693 -0
- package/dist/FeatureLayerBase-40e10dd6.js +148 -0
- package/dist/FeatureLayerSource-ebd2bea5.js +444 -0
- package/dist/FeatureLayerView2D-23240236.js +1967 -0
- package/dist/FeaturePipelineWorker-8d07a1dd.js +3633 -0
- package/dist/FeatureReductionLayer-55609d4e.js +225 -0
- package/dist/FeatureReductionSelection-2f351ee7.js +22 -0
- package/dist/FeatureServiceSnappingSource-513edf0d.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-d6deecd4.js +747 -0
- package/dist/FeatureSet-ffd45984.js +188 -0
- package/dist/FeatureStore-9fd6c0f8.js +131 -0
- package/dist/FeatureTemplate-e4854302.js +12 -0
- package/dist/FeatureType-b4ef51c2.js +25 -0
- package/dist/FieldsIndex-91fb234a.js +109 -0
- package/dist/FormTemplate-67f4d44e.js +350 -0
- package/dist/GeoJSONLayer-e3495648.js +236 -0
- package/dist/GeoJSONSourceWorker-b0ee6d8e.js +247 -0
- package/dist/GeoRSSLayer-afac8cf1.js +73 -0
- package/dist/GeoRSSLayerView2D-b03f6564.js +140 -0
- package/dist/GeometryUtils-058e30f4.js +403 -0
- package/dist/GraphicContainer-d0803f7a.js +26 -0
- package/dist/GraphicManipulator-797ae6c6.js +1499 -0
- package/dist/GraphicsLayer-a30f80da.js +38 -0
- package/dist/GraphicsLayerView2D-0c92e0f2.js +114 -0
- package/dist/GraphicsSnappingSource-e928ab8c.js +273 -0
- package/dist/GraphicsView2D-963eb026.js +620 -0
- package/dist/GroupLayer-7f131ab8.js +147 -0
- package/dist/GroupLayerView2D-5fcc27fc.js +98 -0
- package/dist/HUDMaterial.glsl-3b450c01.js +65 -0
- package/dist/HighlightCounter-fda615cd.js +41 -0
- package/dist/HighlightGraphicContainer-8cfde780.js +18 -0
- package/dist/I3SBinaryReader-a4021fad.js +310 -0
- package/dist/I3SLayerDefinitions-f004f8b6.js +55 -0
- package/dist/I3SUtil-040e44af.js +59 -0
- package/dist/IdentityManager-012e74ca.js +899 -0
- package/dist/ImageHistogramParameters-f7c4c804.js +905 -0
- package/dist/ImageryLayer-c3f0176f.js +1799 -0
- package/dist/ImageryLayerView2D-5a14beb5.js +352 -0
- package/dist/ImageryTileLayer-a93e8471.js +2157 -0
- package/dist/ImageryTileLayerView2D-3e9fea94.js +1110 -0
- package/dist/Indices-f0dca4b5.js +67 -0
- package/dist/IntegratedMesh3DTilesLayer-7e70c76e.js +112 -0
- package/dist/IntegratedMeshLayer-2283f8d9.js +141 -0
- package/dist/InteractiveAnalysisViewModel-f0a0c72a.js +7397 -0
- package/dist/InterleavedLayout-9490090b.js +163 -0
- package/dist/KMLLayer-06b7037f.js +162 -0
- package/dist/KMLLayerView2D-59f96ec9.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-6c8c4aae.js +43 -0
- package/dist/LRUCache-fc532e9b.js +32 -0
- package/dist/LabelClass-eae6271b.js +135 -0
- package/dist/LabelMetric-ee740bd1.js +400 -0
- package/dist/LaserlinePath.glsl-f58264f5.js +64 -0
- package/dist/Laserlines.glsl-14ab8523.js +65 -0
- package/dist/LayerFloorInfo-6ac1a57d.js +15 -0
- package/dist/LayerView-e41297e4.js +206 -0
- package/dist/LercWorker-22ed35b2.js +157 -0
- package/dist/LineOfSightLayer-6bf67bb7.js +147 -0
- package/dist/LinkChartLayer-e9a861f0.js +1027 -0
- package/dist/Lyr3DWorker-29f7a041.js +82 -0
- package/dist/MagnifierPrograms-1584f9b5.js +806 -0
- package/dist/MapImageLayer-b89cf158.js +169 -0
- package/dist/MapImageLayerView2D-e3f4a4cc.js +146 -0
- package/dist/MapNotesLayer-966f3446.js +283 -0
- package/dist/MapNotesLayerView2D-4aedef2a.js +161 -0
- package/dist/MapServiceLayerViewHelper-4f262166.js +288 -0
- package/dist/MeasurementWidgetContent-82971f95.js +2642 -0
- package/dist/MediaLayer-697a7c14.js +523 -0
- package/dist/MediaLayerView2D-64897044.js +332 -0
- package/dist/MemCache-0861cc28.js +227 -0
- package/dist/MemorySourceWorker-e1c531ac.js +222 -0
- package/dist/Mesh-44c8f6ba.js +980 -0
- package/dist/MeshLocalVertexSpace-6fe3a662.js +19 -0
- package/dist/MultiOriginJSONSupport-248453ac.js +158 -0
- package/dist/Notifications/index.d.ts +1 -0
- package/dist/OGCFeatureLayer-2daa0551.js +211 -0
- package/dist/OGCFeatureLayerView2D-7cebf7e0.js +82 -0
- package/dist/ObjectStack-424092a9.js +21 -0
- package/dist/Octree-21d216f2.js +495 -0
- package/dist/OpenStreetMapLayer-ade6fa9d.js +30 -0
- package/dist/OperationalLayer-097ad3e0.js +44 -0
- package/dist/OrderByInfo-e9ed942d.js +16 -0
- package/dist/OrderedLayer-fef2b56e.js +26 -0
- package/dist/OrientedImageryLayer-424a6234.js +216 -0
- package/dist/OverlayCompositing.glsl-1954a291.js +65 -0
- package/dist/OverrideHelper-f8aace2c.js +242 -0
- package/dist/PBFDecoderWorker-15cd639d.js +213 -0
- package/dist/PointCloudLayer-c820d269.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-e7d37f08.js +115 -0
- package/dist/PointCloudWorker-3e28270d.js +212 -0
- package/dist/PooledRBush-e4cbf810.js +272 -0
- package/dist/Popup-2c03dbc0.js +3990 -0
- package/dist/PortalLayer-09e5a300.js +126 -0
- package/dist/Program-ed5a5aa3.js +694 -0
- package/dist/ProgramTemplate-976cfde1.js +35 -0
- package/dist/QueryEngine-8915348b.js +896 -0
- package/dist/QueryTask-f386d91d.js +119 -0
- package/dist/RasterSymbolizer-6177c6ec.js +3024 -0
- package/dist/RasterVFDisplayObject-6411b56f.js +581 -0
- package/dist/RasterWorker-f825daf0.js +78 -0
- package/dist/RawBlockCache-0d61962b.js +185 -0
- package/dist/RealisticTree.glsl-c9fd0d3c.js +42 -0
- package/dist/RefreshableLayer-0945a308.js +80 -0
- package/dist/RefreshableLayerView-4956f17c.js +16 -0
- package/dist/Relationship-9a82bd43.js +64 -0
- package/dist/RelationshipQuery-68ad49a7.js +22 -0
- package/dist/RenderingContext-49610ad9.js +889 -0
- package/dist/RibbonLine.glsl-6314f72e.js +65 -0
- package/dist/RouteLayer-ff5c8f33.js +786 -0
- package/dist/RouteLayerView2D-2cc60ad2.js +195 -0
- package/dist/SDFHelper-b08be611.js +140 -0
- package/dist/SSAO.glsl-0e92c4e5.js +43 -0
- package/dist/SSAOBlur.glsl-a2bb2587.js +42 -0
- package/dist/ScaleRangeLayer-ab226dbd.js +21 -0
- package/dist/SceneLayer-884ec175.js +542 -0
- package/dist/SceneLayerSnappingSource-aa2944b9.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-5616c206.js +112 -0
- package/dist/SceneLayerWorker-9745b8b5.js +164 -0
- package/dist/SceneService-da855dda.js +215 -0
- package/dist/Scheduler-b3c40220.js +373 -0
- package/dist/Search/test.mocks.d.ts +1 -1
- package/dist/Search/utils.d.ts +1 -1
- package/dist/ShadedColorMaterial.glsl-f953e894.js +64 -0
- package/dist/SnappingOperation-be595c42.js +48 -0
- package/dist/SourceLayerData-ec8ab72c.js +116 -0
- package/dist/SpatialFilter-7d64232d.js +1701 -0
- package/dist/Stop-c022e866.js +281 -0
- package/dist/StreamLayer-d603abd8.js +188 -0
- package/dist/StreamLayerView2D-6d6618cf.js +164 -0
- package/dist/StyleRepository-2f08de17.js +2212 -0
- package/dist/SublayersOwner-cc0e4f54.js +545 -0
- package/dist/SubtypeGroupLayer-bacf048d.js +514 -0
- package/dist/SubtypeGroupLayerView2D-b3ed2c1a.js +84 -0
- package/dist/TechniqueInstance-397b7dc2.js +233 -0
- package/dist/TemporalLayer-7844bd88.js +23 -0
- package/dist/Texture-b1727861.js +501 -0
- package/dist/TextureOnly.glsl-ffd4a7df.js +65 -0
- package/dist/Theme-12cb681b.js +3426 -0
- package/dist/Tick-25d07d27.js +723 -0
- package/dist/TileContainer-ab77d7a6.js +31 -0
- package/dist/TileInfoTilemapCache-3e97ab02.js +38 -0
- package/dist/TileLayer-03cfc8ab.js +194 -0
- package/dist/TileLayerView2D-3cfd6a21.js +187 -0
- package/dist/TilemapCache-36e3c4b7.js +189 -0
- package/dist/TimeInfo-cea2517f.js +42 -0
- package/dist/TimeOnly-5a143001.js +706 -0
- package/dist/Tooltip-2b4711cb.js +138 -0
- package/dist/TopFeaturesQuery-285284f1.js +32 -0
- package/dist/TurboLine-708823a3.js +565 -0
- package/dist/UniqueValueRenderer-3d92c0b9.js +1039 -0
- package/dist/UnknownLayer-d3dbe7c9.js +30 -0
- package/dist/UnknownTimeZone-ed4def19.js +15 -0
- package/dist/UnsupportedLayer-40bbb9f5.js +31 -0
- package/dist/UpdateTracking2D-23c8ff3f.js +8566 -0
- package/dist/Util-2ba07f64.js +57 -0
- package/dist/VectorTileLayer-ba191a02.js +544 -0
- package/dist/VectorTileLayerView2D-bd3971cd.js +2108 -0
- package/dist/Version-d45bee25.js +33 -0
- package/dist/VertexArrayObject-08a9d938.js +73 -0
- package/dist/VertexColor.glsl-cfafd4c9.js +2683 -0
- package/dist/VertexSnappingCandidate-cbae227c.js +13 -0
- package/dist/VideoLayerView2D-ec66c226.js +124 -0
- package/dist/VoxelLayer-888a65f9.js +631 -0
- package/dist/WFSLayer-786bdecd.js +221 -0
- package/dist/WFSSourceWorker-a212500b.js +157 -0
- package/dist/WGLContainer-f05c906a.js +5426 -0
- package/dist/WMSLayer-b2c46060.js +536 -0
- package/dist/WMSLayerView2D-a90672e9.js +117 -0
- package/dist/WMTSLayer-860b1a45.js +531 -0
- package/dist/WMTSLayerView2D-c492825d.js +142 -0
- package/dist/WebTileLayer-e178eb17.js +110 -0
- package/dist/WhereClause-ad3cc5ae.js +2766 -0
- package/dist/WorkerHandle-ef6ad49b.js +47 -0
- package/dist/WorkerTileHandler-c2b98dae.js +1539 -0
- package/dist/action-46ccf03a.js +198 -0
- package/dist/action-group-9785519d.js +145 -0
- package/dist/action-menu-f423306a.js +1759 -0
- package/dist/agrotools-theme.css +2 -2
- package/dist/agrotools-theme.css.map +1 -1
- package/dist/apng-66c828d8.js +392 -0
- package/dist/arcade-af30f385.js +229 -0
- package/dist/arcadeAsyncRuntime-fdce05e3.js +943 -0
- package/dist/arcadeUtils-2b5a1e68.js +8741 -0
- package/dist/arcgis-knowledge-client-core-192a1ac0.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-4fb6c777.js +1218 -0
- package/dist/arcgisLayers-f43f9183.js +152 -0
- package/dist/associatedFeatureServiceUtils-15949591.js +92 -0
- package/dist/axisAngleDegrees-de05cd64.js +49 -0
- package/dist/basis_transcoder-6f118404.js +1248 -0
- package/dist/calcite-action-bar-9722a11e.js +303 -0
- package/dist/calcite-action-f5829479.js +22 -0
- package/dist/calcite-action-group-3e77994f.js +28 -0
- package/dist/calcite-button-8979d383.js +228 -0
- package/dist/calcite-flow-b50ce308.js +128 -0
- package/dist/calcite-flow-item-57549b16.js +499 -0
- package/dist/calcite-icon-fb43725c.js +16 -0
- package/dist/calcite-input-fcc054c7.js +24 -0
- package/dist/calcite-label-10d65c11.js +79 -0
- package/dist/calcite-list-2847bddc.js +2135 -0
- package/dist/calcite-list-item-53cde043.js +576 -0
- package/dist/calcite-list-item-group-256eb990.js +71 -0
- package/dist/calcite-loader-022a5436.js +14 -0
- package/dist/calcite-modal-5b1a23d9.js +333 -0
- package/dist/calcite-notice-17009704.js +181 -0
- package/dist/calcite-option-c7d00181.js +94 -0
- package/dist/calcite-scrim-1dced2db.js +18 -0
- package/dist/calcite-select-a96a55a3.js +231 -0
- package/dist/capabilities-3f86754a.js +50 -0
- package/dist/chartCommon-af8c14ae.js +256 -0
- package/dist/chartUtilsAm5-418cf95f.js +2954 -0
- package/dist/clientSideDefaults-2aad569c.js +39 -0
- package/dist/colorRamps-0fae1fde.js +38 -0
- package/dist/colorUtils-6d5e716b.js +164 -0
- package/dist/commonProperties-d1f695a2.js +60 -0
- package/dist/computeTranslationToOriginAndRotation-cba163ab.js +60 -0
- package/dist/conditionalSlot-14f35023.js +27 -0
- package/dist/createConnection-f3b9e606.js +299 -0
- package/dist/dataUtils-65604399.js +1421 -0
- package/dist/deduplicate-16f30199.js +89 -0
- package/dist/defaults-b7c93d2a.js +31 -0
- package/dist/deleteForwardEdits-f31f885d.js +13 -0
- package/dist/diffUtils-54c1c039.js +90 -0
- package/dist/drapedUtils-166cd4c2.js +75 -0
- package/dist/earcut-ffaa9a50.js +292 -0
- package/dist/edgeProcessing-1a2c4169.js +252 -0
- package/dist/editingSupport-ffa6f639.js +203 -0
- package/dist/editsZScale-2840378a.js +37 -0
- package/dist/elevationInfoUtils-c1caf596.js +126 -0
- package/dist/executeForIds-b9c9164b.js +14 -0
- package/dist/executeForTopCount-8a73aea7.js +17 -0
- package/dist/executeForTopExtents-a3d0b42e.js +17 -0
- package/dist/executeForTopIds-f14d5790.js +17 -0
- package/dist/executeQueryJSON-6cd89bed.js +15 -0
- package/dist/executeQueryPBF-e1d32cfc.js +152 -0
- package/dist/executeRelationshipQuery-5cadcb20.js +53 -0
- package/dist/executeTopFeaturesQuery-32dda453.js +18 -0
- package/dist/featureConversionUtils-a5f0b9b2.js +479 -0
- package/dist/featureLayerUtils-828813e8.js +250 -0
- package/dist/featureLayerUtils-9e9f97c1.js +142 -0
- package/dist/featureSetUtils-2f86a02f.js +2530 -0
- package/dist/featuresetbase-bb981400.js +707 -0
- package/dist/featuresetgeom-0185b49f.js +99 -0
- package/dist/featuresetstats-3d689b79.js +81 -0
- package/dist/featuresetstring-83733fad.js +95 -0
- package/dist/fetchService-25e9ba70.js +33 -0
- package/dist/fieldProperties-cd5649d9.js +33 -0
- package/dist/floatRGBA-005cc596.js +20 -0
- package/dist/form-41e8f739.js +138 -0
- package/dist/geohashUtils-776cae3b.js +85 -0
- package/dist/geojson-7ef69d00.js +208 -0
- package/dist/geomasync-43a66474.js +567 -0
- package/dist/geometryEngine-e18a460d.js +192 -0
- package/dist/geometryEngineAsync-ae21d4e2.js +217 -0
- package/dist/geometryEngineBase-d653892b.js +18463 -0
- package/dist/geometryEngineJSON-031f6196.js +46 -0
- package/dist/geometryEngineJSON-9aeb41cd.js +171 -0
- package/dist/geometryEngineWorker-1c2f96e6.js +11 -0
- package/dist/geometryServiceUtils-50afe031.js +28 -0
- package/dist/georeference-cf051555.js +291 -0
- package/dist/gif-3fe5f761.js +323 -0
- package/dist/gltfexport-3ec498d6.js +705 -0
- package/dist/groupLayerUtils-5b8e1f89.js +39 -0
- package/dist/heatmapUtils-b512588d.js +45 -0
- package/dist/highlightReasons-b0f772b2.js +19 -0
- package/dist/hydrated-36edecd6.js +40 -0
- package/dist/i3s-239f062a.js +809 -0
- package/dist/icon-5e93376e.js +127 -0
- package/dist/imageBitmapUtils-142daeaf.js +23 -0
- package/dist/imageUtils-27ed5e73.js +89 -0
- package/dist/imageUtils-901282e9.js +69 -0
- package/dist/imageryUtils-b1dd3a54.js +43 -0
- package/dist/index-6ebf29c1.js +43667 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -14
- package/dist/input-message-20d19cfb.js +92 -0
- package/dist/input2-8da11a51.js +575 -0
- package/dist/interactive-bcb1b82d.js +80 -0
- package/dist/jsonContext-45fce1e1.js +15 -0
- package/dist/jsonUtils-09f69988.js +86 -0
- package/dist/jsonUtils-1f447d0c.js +476 -0
- package/dist/jsonUtils-db906457.js +59 -0
- package/dist/kmlUtils-6412718d.js +112 -0
- package/dist/knowledgeGraphService-80890106.js +739 -0
- package/dist/knowledgegraph-475723f0.js +149 -0
- package/dist/labelUtils-85708580.js +61 -0
- package/dist/labelingInfo-62fc9d21.js +46 -0
- package/dist/layersCreator-a94b60fe.js +151 -0
- package/dist/layersLoader-39c74edb.js +197 -0
- package/dist/lazyLayerLoader-7922c10d.js +10 -0
- package/dist/lclayout-6ac84378.js +773 -0
- package/dist/lengthUtils-6a89d855.js +5 -0
- package/dist/lerc-wasm-b8b3cd2c.js +325 -0
- package/dist/libtess-61451fa0.js +269 -0
- package/dist/libtess-asm-fef1a4ca.js +3673 -0
- package/dist/lineSegment-f45db35c.js +76 -0
- package/dist/loadGLTFMesh-2f9cee21.js +181 -0
- package/dist/loadable-c29cb205.js +24 -0
- package/dist/loader-d9b4787f.js +79 -0
- package/dist/lyr3DWorker-33babc2c.js +2108 -0
- package/dist/mapViewDeps-f5b886c8.js +3052 -0
- package/dist/mediaLayerUtils-5a2c2fe8.js +35 -0
- package/dist/meshFeatureSet-2312bbe6.js +126 -0
- package/dist/meshVertexSpaceUtils-c9b69510.js +58 -0
- package/dist/multidimensionalUtils-e85f5a78.js +290 -0
- package/dist/normalizeUtilsSync-555b1847.js +181 -0
- package/dist/number-72e1a662.js +128 -0
- package/dist/objectResourceUtils-abe804cf.js +1455 -0
- package/dist/observers-f3bd3593.js +30 -0
- package/dist/ogcFeatureUtils-7097c17e.js +206 -0
- package/dist/openCloseComponent-67a2c20c.js +37 -0
- package/dist/orientedBoundingBox-4ae2c366.js +447 -0
- package/dist/parser-7a76caf9.js +488 -0
- package/dist/pbf-0b9b579c.js +215 -0
- package/dist/pbfQueryUtils-baba23c7.js +422 -0
- package/dist/pe-wasm-d080c07b.js +887 -0
- package/dist/persistable-82932da9.js +89 -0
- package/dist/perspectiveUtils-1b383b17.js +42 -0
- package/dist/pieChart-eca78f7c.js +555 -0
- package/dist/plane-84e27261.js +160 -0
- package/dist/popupUtils-b72d32fb.js +22 -0
- package/dist/popupUtils-cde1d105.js +50 -0
- package/dist/portalItemUtils-28314a3f.js +57 -0
- package/dist/portalLayers-eeaa6e57.js +312 -0
- package/dist/portalUtils-457f542e.js +7 -0
- package/dist/programUtils-0c20a48e.js +59 -0
- package/dist/project-1b5431dd.js +21 -0
- package/dist/projectPointToVector-1f1d1dc7.js +14 -0
- package/dist/projectVectorToVector-b7e757a1.js +13 -0
- package/dist/quantityUtils-b64583f9.js +33 -0
- package/dist/quantizationUtils-9e478e23.js +68 -0
- package/dist/quat-5502b70d.js +104 -0
- package/dist/query-b2397453.js +89 -0
- package/dist/queryAttachments-4361fd2f.js +39 -0
- package/dist/queryEngineUtils-f24bc98c.js +21 -0
- package/dist/queryTopFeatures-e06aa562.js +50 -0
- package/dist/queryZScale-b18ec359.js +12 -0
- package/dist/rasterProjectionHelper-935c256c.js +577 -0
- package/dist/rasterUtils-efad8a20.js +122 -0
- package/dist/rasterizingUtils-80de9b14.js +46 -0
- package/dist/request-cae502b7.js +46 -0
- package/dist/requestImageUtils-caebcf1e.js +8 -0
- package/dist/resourceExtension-7d14f4fc.js +17 -0
- package/dist/resourceUtils-8d97f5bf.js +42 -0
- package/dist/resourceUtils-be991ca4.js +69 -0
- package/dist/resourceUtils-fa1a565f.js +62 -0
- package/dist/saveAPIKeyUtils-9f0454db.js +8 -0
- package/dist/saveUtils-22a6caa6.js +24 -0
- package/dist/scaleUtils-ba5596ad.js +23 -0
- package/dist/scrim-5b1b6156.js +114 -0
- package/dist/serviceCapabilitiesUtils-3a47b26b.js +64 -0
- package/dist/sourceUtils-ded5acd6.js +71 -0
- package/dist/sphere-418b76df.js +199 -0
- package/dist/statsWorker-a082453a.js +37 -0
- package/dist/streamLayerUtils-22aa35f2.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-aa4777b6.js +75 -0
- package/dist/styleUtils-e5f7ddb7.js +14 -0
- package/dist/sublayerUtils-7c5ebfea.js +37 -0
- package/dist/substitute-da3c695d.js +52 -0
- package/dist/symbolColorUtils-5d3e355f.js +8 -0
- package/dist/symbolLayerUtils-47cdd4d1.js +31 -0
- package/dist/symbologySnappingCandidates-6ebf1df0.js +221 -0
- package/dist/t9n-c80e56d9.js +349 -0
- package/dist/testSVGPremultipliedAlpha-b9ff88ef.js +94 -0
- package/dist/timeSupport-8d2432f7.js +410 -0
- package/dist/triangle-07f96fb9.js +98 -0
- package/dist/unitConversionUtils-c1bfd22b.js +17 -0
- package/dist/unitFormatUtils-e75be0c3.js +40 -0
- package/dist/uploadAssetErrors-3493bdb9.js +70 -0
- package/dist/uploadAssets-24fe5279.js +330 -0
- package/dist/utils-17d83806.js +2746 -0
- package/dist/utils-717efd4b.js +73 -0
- package/dist/utils-74e8e651.js +433 -0
- package/dist/utils-7c8f1d3f.js +232 -0
- package/dist/utils-94cbe432.js +79 -0
- package/dist/utils-a76b92ed.js +34 -0
- package/dist/utils-e73651cf.js +419 -0
- package/dist/utils-f46de72c.js +91 -0
- package/dist/utils3-eb04cacb.js +75 -0
- package/dist/vec3-61daf837.js +81 -0
- package/dist/vec42-27060a00.js +125 -0
- package/dist/versionUtils-c9c03a5d.js +161 -0
- package/dist/visualVariableUtils-bc9bfef1.js +267 -0
- package/dist/webStyleSymbolUtils-0990caa8.js +48 -0
- package/dist/webglDeps-812387f7.js +23 -0
- package/dist/wfsUtils-fdccd660.js +343 -0
- package/dist/workerHelper-d8d5f17b.js +11 -0
- package/dist/xyChart-94c1ef04.js +3335 -0
- package/package.json +1 -1
- package/dist/AGraphicContainer-75e55bb8.js +0 -109
- package/dist/APIKeyMixin-688c6ac6.js +0 -19
- package/dist/Accordion/Accordion.d.ts +0 -49
- package/dist/Analysis-53f71911.js +0 -31
- package/dist/ArcGISCachedService-ea7559f0.js +0 -47
- package/dist/ArcGISService-a447176d.js +0 -25
- package/dist/AreaMeasurement2D-4d0db109.js +0 -405
- package/dist/AreaMeasurement3D-a2a10ea8.js +0 -488
- package/dist/AttachmentInfo-a2849bf0.js +0 -34
- package/dist/AttachmentQuery-e743e06f.js +0 -18
- package/dist/AttributeStore-6a3291d4.js +0 -1707
- package/dist/Avatar/Avatar.d.ts +0 -66
- package/dist/BaseDynamicLayerView2D-b3ff0eae.js +0 -63
- package/dist/BingMapsLayer-689d8e88.js +0 -112
- package/dist/Bitmap-e2b1f93c.js +0 -128
- package/dist/BitmapContainer-4dcc4a14.js +0 -23
- package/dist/BlendLayer-113fd3b8.js +0 -13
- package/dist/BoundsStore-3598604e.js +0 -63
- package/dist/BufferObject-59880a47.js +0 -100
- package/dist/BufferView-2cfe8c7d.js +0 -683
- package/dist/BuildingSceneLayer-a3e4a869.js +0 -535
- package/dist/Button/Button.d.ts +0 -82
- package/dist/Button-5e85250d.js +0 -36
- package/dist/CSVLayer-a68a64b8.js +0 -208
- package/dist/CSVSourceWorker-cf1fee99.js +0 -367
- package/dist/CatalogDynamicGroupLayerView2D-a4ae390f.js +0 -66
- package/dist/CatalogFootprintLayerView2D-145014a4.js +0 -76
- package/dist/CatalogLayer-48e7048b.js +0 -262
- package/dist/CatalogLayerView2D-8b4a4d47.js +0 -52
- package/dist/Checkbox/Checkbox.d.ts +0 -87
- package/dist/ClassBreaksDefinition-e2d8b3cc.js +0 -18
- package/dist/ColorMaterial.glsl-a7c70d21.js +0 -64
- package/dist/ColorSet-f4b34654.js +0 -45
- package/dist/ColorStop-1111f0fd.js +0 -29
- package/dist/Container-4a2d8bcd.js +0 -521
- package/dist/CustomParametersMixin-601866cc.js +0 -12
- package/dist/DataTable/Column/Column.d.ts +0 -36
- package/dist/DataTable/Counters/Counters.d.ts +0 -41
- package/dist/DataTable/DataTable.d.ts +0 -113
- package/dist/DefaultMaterial.glsl-9243ba6c.js +0 -42
- package/dist/DefaultMaterial_COLOR_GAMMA-bf0d97c7.js +0 -653
- package/dist/DefaultTheme-e96ad45b.js +0 -130
- package/dist/DeleteForwardEditsParameters-bd5164e3.js +0 -18
- package/dist/DimensionLayer-d51dcf5e.js +0 -129
- package/dist/DirectLineMeasurement3D-7b426a46.js +0 -449
- package/dist/DistanceMeasurement2D-1f05b105.js +0 -303
- package/dist/DoubleArray-4f276822.js +0 -25
- package/dist/Dropdown/Dropdown.core.d.ts +0 -31
- package/dist/Dropdown/List/Dropdown.List.d.ts +0 -84
- package/dist/EdgeProcessingWorker-317b2f9a.js +0 -63
- package/dist/EditBusLayer-55763028.js +0 -107
- package/dist/ElevationInfo-5be88917.js +0 -56
- package/dist/ElevationLayer-754634d4.js +0 -129
- package/dist/ElevationQuery-1e84df59.js +0 -598
- package/dist/ElevationSamplerWorker-1c01b3d8.js +0 -62
- package/dist/ExportImageParameters-e00a1031.js +0 -66
- package/dist/ExportStrategy-ba992e25.js +0 -93
- package/dist/ExportWMSImageParameters-395804ac.js +0 -33
- package/dist/External-77e767f4.js +0 -110
- package/dist/FeatureCollectionSnappingSource-d1435805.js +0 -130
- package/dist/FeatureCommandQueue-4db7f162.js +0 -1244
- package/dist/FeatureEffect-5b570804.js +0 -39
- package/dist/FeatureEffectLayer-171a9749.js +0 -13
- package/dist/FeatureFilter-db89ec09.js +0 -27
- package/dist/FeatureLayer-881827c7.js +0 -693
- package/dist/FeatureLayerBase-b410d8eb.js +0 -148
- package/dist/FeatureLayerSource-e5eba81e.js +0 -444
- package/dist/FeatureLayerView2D-107b4ed6.js +0 -1967
- package/dist/FeaturePipelineWorker-2b42d98d.js +0 -3633
- package/dist/FeatureReductionLayer-1f3f6a98.js +0 -225
- package/dist/FeatureReductionSelection-b0c4bcaf.js +0 -22
- package/dist/FeatureServiceSnappingSource-fde9a8da.js +0 -481
- package/dist/FeatureServiceSnappingSourceWorker-d4113c50.js +0 -747
- package/dist/FeatureSet-595ae550.js +0 -188
- package/dist/FeatureStore-87fbe804.js +0 -131
- package/dist/FeatureTemplate-c810cba6.js +0 -12
- package/dist/FeatureType-22de76b9.js +0 -25
- package/dist/FieldsIndex-390b005f.js +0 -109
- package/dist/FormTemplate-728de82d.js +0 -350
- package/dist/GeoJSONLayer-fbf5ee27.js +0 -236
- package/dist/GeoJSONSourceWorker-30cd4133.js +0 -247
- package/dist/GeoRSSLayer-2addf639.js +0 -73
- package/dist/GeoRSSLayerView2D-29c15edb.js +0 -140
- package/dist/GeometryUtils-80d3036a.js +0 -403
- package/dist/GraphicContainer-2b112072.js +0 -26
- package/dist/GraphicManipulator-84ac0573.js +0 -1499
- package/dist/GraphicsLayer-ee9f874e.js +0 -38
- package/dist/GraphicsLayerView2D-c5eda7d2.js +0 -114
- package/dist/GraphicsSnappingSource-3dd1e9b3.js +0 -273
- package/dist/GraphicsView2D-40686b59.js +0 -620
- package/dist/GroupLayer-fd168a3e.js +0 -147
- package/dist/GroupLayerView2D-f4078b54.js +0 -98
- package/dist/HUDMaterial.glsl-bea5cb7c.js +0 -65
- package/dist/HighlightCounter-b3b4b206.js +0 -41
- package/dist/HighlightGraphicContainer-c00c331b.js +0 -18
- package/dist/I3SBinaryReader-d3a26893.js +0 -310
- package/dist/I3SLayerDefinitions-2bea64c8.js +0 -55
- package/dist/I3SUtil-ab1a91f5.js +0 -59
- package/dist/IdentityManager-8e14d109.js +0 -899
- package/dist/ImageHistogramParameters-711f313f.js +0 -905
- package/dist/ImageryLayer-fbaf4d8c.js +0 -1799
- package/dist/ImageryLayerView2D-199eb1fd.js +0 -352
- package/dist/ImageryTileLayer-48671dc9.js +0 -2157
- package/dist/ImageryTileLayerView2D-8ac1ee64.js +0 -1110
- package/dist/Indices-2f9cf62d.js +0 -67
- package/dist/Input/Input.core.d.ts +0 -4709
- package/dist/IntegratedMesh3DTilesLayer-89d862a2.js +0 -112
- package/dist/IntegratedMeshLayer-53f792e4.js +0 -141
- package/dist/InteractiveAnalysisViewModel-d7dd665d.js +0 -7397
- package/dist/InterleavedLayout-ff67e161.js +0 -163
- package/dist/KMLLayer-7a4cfa2a.js +0 -162
- package/dist/KMLLayerView2D-d0874e8d.js +0 -253
- package/dist/KnowledgeGraphLayerView2D-70d956b2.js +0 -43
- package/dist/LRUCache-5bebd9a8.js +0 -32
- package/dist/LabelClass-63459c37.js +0 -135
- package/dist/LabelMetric-09a9cd38.js +0 -400
- package/dist/LaserlinePath.glsl-731dbba1.js +0 -64
- package/dist/Laserlines.glsl-26d42447.js +0 -65
- package/dist/LayerFloorInfo-5c67a822.js +0 -15
- package/dist/LayerView-405cecd2.js +0 -206
- package/dist/Legend/Legend.d.ts +0 -73
- package/dist/LercWorker-a7892aa0.js +0 -157
- package/dist/LineOfSightLayer-abad68f7.js +0 -147
- package/dist/LinkChartLayer-c36d2a81.js +0 -1027
- package/dist/Lyr3DWorker-8f4c6c50.js +0 -82
- package/dist/MagnifierPrograms-ddc85113.js +0 -806
- package/dist/Map/Map.d.ts +0 -26
- package/dist/MapImageLayer-04f4cdcb.js +0 -169
- package/dist/MapImageLayerView2D-712dd60f.js +0 -146
- package/dist/MapNotesLayer-83fcba8e.js +0 -283
- package/dist/MapNotesLayerView2D-f0ad0a82.js +0 -161
- package/dist/MapServiceLayerViewHelper-6c746a26.js +0 -288
- package/dist/MeasurementWidgetContent-fc0c1569.js +0 -2642
- package/dist/MediaLayer-05162eaf.js +0 -523
- package/dist/MediaLayerView2D-474c563b.js +0 -332
- package/dist/MemCache-8f96824a.js +0 -227
- package/dist/MemorySourceWorker-08562524.js +0 -222
- package/dist/Mesh-3208420e.js +0 -980
- package/dist/MeshLocalVertexSpace-59268d9e.js +0 -19
- package/dist/Modal/Modal.d.ts +0 -106
- package/dist/MultiOriginJSONSupport-365740bb.js +0 -158
- package/dist/OGCFeatureLayer-7201d1ee.js +0 -211
- package/dist/OGCFeatureLayerView2D-d242f130.js +0 -82
- package/dist/ObjectStack-bad354ab.js +0 -21
- package/dist/Octree-cbaefa65.js +0 -495
- package/dist/OpenStreetMapLayer-b3c8020b.js +0 -30
- package/dist/OperationalLayer-30f48d16.js +0 -44
- package/dist/OrderByInfo-9bd0a8fe.js +0 -16
- package/dist/OrderedLayer-2962d196.js +0 -26
- package/dist/OrientedImageryLayer-5d599e15.js +0 -216
- package/dist/OverlayCompositing.glsl-334c68d5.js +0 -65
- package/dist/OverrideHelper-7981ecc2.js +0 -242
- package/dist/PBFDecoderWorker-48f7e620.js +0 -213
- package/dist/Paginator/Paginator.d.ts +0 -43
- package/dist/PointCloudLayer-5b804571.js +0 -197
- package/dist/PointCloudUniqueValueRenderer-9ef1db42.js +0 -115
- package/dist/PointCloudWorker-9e88daea.js +0 -212
- package/dist/PooledRBush-afceba5f.js +0 -272
- package/dist/Popup-89e3fd56.js +0 -3990
- package/dist/PortalLayer-21d22eb9.js +0 -126
- package/dist/Program-09ee8c67.js +0 -694
- package/dist/ProgramTemplate-be811b23.js +0 -35
- package/dist/ProgressBar/ProgressBar.d.ts +0 -85
- package/dist/QueryEngine-810a7f24.js +0 -896
- package/dist/QueryTask-013cc810.js +0 -119
- package/dist/RadioButton/RadioButton.d.ts +0 -87
- package/dist/RasterSymbolizer-ae063ee7.js +0 -3024
- package/dist/RasterVFDisplayObject-fe2f7ea2.js +0 -581
- package/dist/RasterWorker-7efcbd4d.js +0 -78
- package/dist/RawBlockCache-5a644219.js +0 -185
- package/dist/RealisticTree.glsl-4e33ae57.js +0 -42
- package/dist/RefreshableLayer-e64dd0ee.js +0 -80
- package/dist/RefreshableLayerView-61f7dd9a.js +0 -16
- package/dist/Relationship-adcdce15.js +0 -64
- package/dist/RelationshipQuery-0c20b8ed.js +0 -22
- package/dist/RenderingContext-29b578ca.js +0 -889
- package/dist/RibbonLine.glsl-038f5cac.js +0 -65
- package/dist/RouteLayer-479e0ccc.js +0 -786
- package/dist/RouteLayerView2D-1a646f54.js +0 -195
- package/dist/SDFHelper-9abcbcca.js +0 -140
- package/dist/SSAO.glsl-5d41f99f.js +0 -43
- package/dist/SSAOBlur.glsl-7ebf8f5c.js +0 -42
- package/dist/ScaleRangeLayer-3bbd6ead.js +0 -21
- package/dist/SceneLayer-b19fa11e.js +0 -542
- package/dist/SceneLayerSnappingSource-f53ddd8a.js +0 -218
- package/dist/SceneLayerSnappingSourceWorker-80f48214.js +0 -112
- package/dist/SceneLayerWorker-bab8aeb0.js +0 -164
- package/dist/SceneService-0c4fac79.js +0 -215
- package/dist/Scheduler-9db9a8cf.js +0 -373
- package/dist/Search/Search.d.ts +0 -99
- package/dist/Select/Item/Item.d.ts +0 -104
- package/dist/Select/Multiple/Select.multiple.d.ts +0 -90
- package/dist/Select/Select.core.d.ts +0 -78
- package/dist/Select/Single/Select.single.d.ts +0 -66
- package/dist/ShadedColorMaterial.glsl-a2dd0bb3.js +0 -64
- package/dist/SnappingOperation-25ff52da.js +0 -48
- package/dist/SourceLayerData-ec301fa4.js +0 -116
- package/dist/SpatialFilter-351a1d5e.js +0 -1701
- package/dist/Stop-595501a7.js +0 -281
- package/dist/StreamLayer-d5ebd4d3.js +0 -188
- package/dist/StreamLayerView2D-8a39daaa.js +0 -164
- package/dist/StyleRepository-dd283243.js +0 -2212
- package/dist/SublayersOwner-0be88fd0.js +0 -545
- package/dist/SubtypeGroupLayer-8386c037.js +0 -514
- package/dist/SubtypeGroupLayerView2D-97b63aa1.js +0 -84
- package/dist/Tabs/Tab/Tab.d.ts +0 -69
- package/dist/Tabs/Tabs.d.ts +0 -50
- package/dist/Tag/Tag.d.ts +0 -52
- package/dist/TechniqueInstance-87f77cd3.js +0 -233
- package/dist/TemporalLayer-7c15b8a6.js +0 -23
- package/dist/Texture-c1f5f21b.js +0 -501
- package/dist/TextureOnly.glsl-acae1d94.js +0 -65
- package/dist/Theme-72a69427.js +0 -3426
- package/dist/Tick-d7f9b999.js +0 -723
- package/dist/TileContainer-20f11bc5.js +0 -31
- package/dist/TileInfoTilemapCache-a50aaed0.js +0 -38
- package/dist/TileLayer-ce04649f.js +0 -194
- package/dist/TileLayerView2D-0f45ff75.js +0 -187
- package/dist/TilemapCache-95b53d5a.js +0 -189
- package/dist/TimeInfo-f17e0ff9.js +0 -42
- package/dist/TimeOnly-63922f1a.js +0 -706
- package/dist/Tipograph/Paragraph/Paragraph.d.ts +0 -25
- package/dist/Tipograph/Title/Title.d.ts +0 -25
- package/dist/Toggle/Toggle.d.ts +0 -45
- package/dist/Tooltip-a21a6650.js +0 -138
- package/dist/TopFeaturesQuery-9e4228e7.js +0 -32
- package/dist/TurboLine-aeb14d6e.js +0 -565
- package/dist/UniqueValueRenderer-7532473e.js +0 -1039
- package/dist/UnknownLayer-99d4832b.js +0 -30
- package/dist/UnknownTimeZone-4c0a5184.js +0 -15
- package/dist/UnsupportedLayer-f439265c.js +0 -31
- package/dist/UpdateTracking2D-a1164b3d.js +0 -8566
- package/dist/Upload/Upload.d.ts +0 -206
- package/dist/Util-26f81cc4.js +0 -57
- package/dist/VectorTileLayer-8b5289d2.js +0 -544
- package/dist/VectorTileLayerView2D-00d98337.js +0 -2108
- package/dist/Version-2556ea28.js +0 -33
- package/dist/VertexArrayObject-5595c535.js +0 -73
- package/dist/VertexColor.glsl-01eb58bb.js +0 -2683
- package/dist/VertexSnappingCandidate-c1e2992a.js +0 -13
- package/dist/VideoLayerView2D-e92c8bab.js +0 -124
- package/dist/VoxelLayer-e57c2b7b.js +0 -631
- package/dist/WFSLayer-486fff2e.js +0 -221
- package/dist/WFSSourceWorker-3d8ac573.js +0 -157
- package/dist/WGLContainer-1441483b.js +0 -5426
- package/dist/WMSLayer-07ea95cc.js +0 -536
- package/dist/WMSLayerView2D-8b67d5da.js +0 -117
- package/dist/WMTSLayer-b52fbe0c.js +0 -531
- package/dist/WMTSLayerView2D-8ca1d522.js +0 -142
- package/dist/WebTileLayer-dd24dee2.js +0 -110
- package/dist/WhereClause-2eefa48c.js +0 -2766
- package/dist/WorkerHandle-f6b5ac7b.js +0 -47
- package/dist/WorkerTileHandler-e060fab5.js +0 -1539
- package/dist/action-a2d13907.js +0 -198
- package/dist/action-group-af071314.js +0 -145
- package/dist/action-menu-c759068f.js +0 -1759
- package/dist/apng-b33ce902.js +0 -392
- package/dist/arcade-b05c8c22.js +0 -229
- package/dist/arcadeAsyncRuntime-9b4a7891.js +0 -943
- package/dist/arcadeUtils-41691d12.js +0 -8741
- package/dist/arcgis-knowledge-client-core-2217ce57.js +0 -1218
- package/dist/arcgis-knowledge-client-core-simd-ab44590a.js +0 -1218
- package/dist/arcgisLayers-0ea0be85.js +0 -152
- package/dist/associatedFeatureServiceUtils-09077513.js +0 -92
- package/dist/axisAngleDegrees-1c3d7520.js +0 -49
- package/dist/basis_transcoder-292f1aaf.js +0 -1248
- package/dist/calcite-action-ad0d1e23.js +0 -22
- package/dist/calcite-action-bar-1b2de6d0.js +0 -303
- package/dist/calcite-action-group-aacf8ec4.js +0 -28
- package/dist/calcite-button-125cbd95.js +0 -228
- package/dist/calcite-flow-c9a6e8fa.js +0 -128
- package/dist/calcite-flow-item-eb314bb8.js +0 -499
- package/dist/calcite-icon-07f22bc6.js +0 -16
- package/dist/calcite-input-167be799.js +0 -24
- package/dist/calcite-label-7de34a6b.js +0 -79
- package/dist/calcite-list-2087f9ca.js +0 -2135
- package/dist/calcite-list-item-3419fb5f.js +0 -576
- package/dist/calcite-list-item-group-3a6545e3.js +0 -71
- package/dist/calcite-loader-16bcfb95.js +0 -14
- package/dist/calcite-modal-f608731f.js +0 -333
- package/dist/calcite-notice-88ee1edf.js +0 -181
- package/dist/calcite-option-375585a2.js +0 -94
- package/dist/calcite-scrim-751cf767.js +0 -18
- package/dist/calcite-select-62db97da.js +0 -231
- package/dist/capabilities-359df394.js +0 -50
- package/dist/chartCommon-cceb2530.js +0 -256
- package/dist/chartUtilsAm5-08a29408.js +0 -2954
- package/dist/clientSideDefaults-b5450c9b.js +0 -39
- package/dist/colorRamps-314c4b5a.js +0 -38
- package/dist/colorUtils-6e9b620c.js +0 -164
- package/dist/commonProperties-3399f319.js +0 -60
- package/dist/computeTranslationToOriginAndRotation-0b0f32ad.js +0 -60
- package/dist/conditionalSlot-012fd5da.js +0 -27
- package/dist/createConnection-f1189f51.js +0 -299
- package/dist/dataUtils-950a0ae9.js +0 -1421
- package/dist/deduplicate-eabb5f9e.js +0 -89
- package/dist/defaults-e5c5ee75.js +0 -31
- package/dist/deleteForwardEdits-ea9258ea.js +0 -13
- package/dist/diffUtils-04a71a59.js +0 -90
- package/dist/drapedUtils-2515520d.js +0 -75
- package/dist/earcut-192842ab.js +0 -292
- package/dist/edgeProcessing-da003f69.js +0 -252
- package/dist/editingSupport-9f04ba1b.js +0 -203
- package/dist/editsZScale-97938687.js +0 -37
- package/dist/elevationInfoUtils-e1edd62e.js +0 -126
- package/dist/executeForIds-3b8a1698.js +0 -14
- package/dist/executeForTopCount-6c6cd2f2.js +0 -17
- package/dist/executeForTopExtents-86851593.js +0 -17
- package/dist/executeForTopIds-24bc9dea.js +0 -17
- package/dist/executeQueryJSON-cf7d748b.js +0 -15
- package/dist/executeQueryPBF-ad416846.js +0 -152
- package/dist/executeRelationshipQuery-9b6666bf.js +0 -53
- package/dist/executeTopFeaturesQuery-4ac72bd2.js +0 -18
- package/dist/featureConversionUtils-67a121da.js +0 -479
- package/dist/featureLayerUtils-a4002773.js +0 -142
- package/dist/featureLayerUtils-a7e985d2.js +0 -250
- package/dist/featureSetUtils-11fcb3c4.js +0 -2530
- package/dist/featuresetbase-47894167.js +0 -707
- package/dist/featuresetgeom-bff2aa07.js +0 -99
- package/dist/featuresetstats-14a3fe2b.js +0 -81
- package/dist/featuresetstring-de2b64db.js +0 -95
- package/dist/fetchService-b6d76f5e.js +0 -33
- package/dist/fieldProperties-a9fbe289.js +0 -33
- package/dist/floatRGBA-2bc6800c.js +0 -20
- package/dist/form-e210eee8.js +0 -138
- package/dist/geohashUtils-085312a3.js +0 -85
- package/dist/geojson-f0bc401a.js +0 -208
- package/dist/geomasync-3c3b5e8d.js +0 -567
- package/dist/geometryEngine-2772790a.js +0 -192
- package/dist/geometryEngineAsync-db2e5674.js +0 -217
- package/dist/geometryEngineBase-8b327072.js +0 -18463
- package/dist/geometryEngineJSON-95268e88.js +0 -171
- package/dist/geometryEngineJSON-fc48a48b.js +0 -46
- package/dist/geometryEngineWorker-2fbc65f7.js +0 -11
- package/dist/geometryServiceUtils-ed9cb722.js +0 -28
- package/dist/georeference-f6f67e9b.js +0 -291
- package/dist/gif-a4043534.js +0 -323
- package/dist/gltfexport-d028c5c9.js +0 -705
- package/dist/groupLayerUtils-22dde377.js +0 -39
- package/dist/heatmapUtils-8e578a0a.js +0 -45
- package/dist/highlightReasons-ab23926f.js +0 -19
- package/dist/hydrated-219f2b0c.js +0 -40
- package/dist/i3s-b5ed4851.js +0 -809
- package/dist/icon-8711ff33.js +0 -127
- package/dist/imageBitmapUtils-dc97b3de.js +0 -23
- package/dist/imageUtils-0a71062a.js +0 -69
- package/dist/imageUtils-a4c7c9bf.js +0 -89
- package/dist/imageryUtils-d21fd540.js +0 -43
- package/dist/index-f28919b2.js +0 -43440
- package/dist/input-message-3df877b9.js +0 -92
- package/dist/input2-32e36924.js +0 -575
- package/dist/interactive-c1e1aeaf.js +0 -80
- package/dist/jsonContext-4622e179.js +0 -15
- package/dist/jsonUtils-9f58b7bb.js +0 -476
- package/dist/jsonUtils-d9bb6102.js +0 -86
- package/dist/jsonUtils-e40213c1.js +0 -59
- package/dist/kmlUtils-5f8f6cf6.js +0 -112
- package/dist/knowledgeGraphService-a34bf3b0.js +0 -739
- package/dist/knowledgegraph-68124c78.js +0 -149
- package/dist/labelUtils-3a1386e4.js +0 -61
- package/dist/labelingInfo-69c9f8f4.js +0 -46
- package/dist/layersCreator-5e6fe7f2.js +0 -151
- package/dist/layersLoader-f96735c7.js +0 -197
- package/dist/lazyLayerLoader-142515c4.js +0 -10
- package/dist/lclayout-639ec791.js +0 -773
- package/dist/lengthUtils-8796ccf3.js +0 -5
- package/dist/lerc-wasm-acb341bd.js +0 -325
- package/dist/libtess-a9e7192e.js +0 -269
- package/dist/libtess-asm-8de2fb72.js +0 -3673
- package/dist/lineSegment-2790f546.js +0 -76
- package/dist/loadGLTFMesh-33064e6d.js +0 -181
- package/dist/loadable-4558719f.js +0 -24
- package/dist/loader-4dbc522d.js +0 -79
- package/dist/lyr3DWorker-3365d66f.js +0 -2108
- package/dist/mapViewDeps-67ec1d27.js +0 -3052
- package/dist/mediaLayerUtils-612838fb.js +0 -35
- package/dist/meshFeatureSet-07b96756.js +0 -126
- package/dist/meshVertexSpaceUtils-673c2055.js +0 -58
- package/dist/multidimensionalUtils-79cc2536.js +0 -290
- package/dist/normalizeUtilsSync-9fd98ab4.js +0 -181
- package/dist/number-110986f5.js +0 -128
- package/dist/objectResourceUtils-1b8d1c03.js +0 -1455
- package/dist/observers-507c19a0.js +0 -30
- package/dist/ogcFeatureUtils-3c65f06a.js +0 -206
- package/dist/openCloseComponent-89dc4d35.js +0 -37
- package/dist/orientedBoundingBox-46d44acf.js +0 -447
- package/dist/parser-8f715684.js +0 -488
- package/dist/pbf-4ce99129.js +0 -215
- package/dist/pbfQueryUtils-23cca540.js +0 -422
- package/dist/pe-wasm-d186391a.js +0 -887
- package/dist/persistable-09062510.js +0 -89
- package/dist/perspectiveUtils-9da629d6.js +0 -42
- package/dist/pieChart-92709a5c.js +0 -555
- package/dist/plane-2b39f8eb.js +0 -160
- package/dist/popupUtils-dc099446.js +0 -22
- package/dist/popupUtils-e53c5c04.js +0 -50
- package/dist/portalItemUtils-39079445.js +0 -57
- package/dist/portalLayers-efcd5403.js +0 -312
- package/dist/portalUtils-44b1ac04.js +0 -7
- package/dist/programUtils-c22a40e2.js +0 -59
- package/dist/project-4759dc23.js +0 -21
- package/dist/projectPointToVector-1d9098bc.js +0 -14
- package/dist/projectVectorToVector-add01592.js +0 -13
- package/dist/quantityUtils-afe6e5b7.js +0 -33
- package/dist/quantizationUtils-51d3a038.js +0 -68
- package/dist/quat-22f56b72.js +0 -104
- package/dist/query-8cf3e12b.js +0 -89
- package/dist/queryAttachments-0a63ea2f.js +0 -39
- package/dist/queryEngineUtils-a1db57f0.js +0 -21
- package/dist/queryTopFeatures-b4fb05ad.js +0 -50
- package/dist/queryZScale-112cd8e3.js +0 -12
- package/dist/rasterProjectionHelper-3ae0fcfd.js +0 -577
- package/dist/rasterUtils-6868b6b6.js +0 -122
- package/dist/rasterizingUtils-922f43e7.js +0 -46
- package/dist/request-fd620c13.js +0 -46
- package/dist/requestImageUtils-f8f50ad7.js +0 -8
- package/dist/resourceExtension-f0327971.js +0 -17
- package/dist/resourceUtils-2e33090d.js +0 -69
- package/dist/resourceUtils-db0d7e83.js +0 -42
- package/dist/resourceUtils-ff5eafc3.js +0 -62
- package/dist/saveAPIKeyUtils-32bb955d.js +0 -8
- package/dist/saveUtils-d4ad8f94.js +0 -24
- package/dist/scaleUtils-a3ce8cc6.js +0 -23
- package/dist/scrim-7ef1cdf5.js +0 -114
- package/dist/serviceCapabilitiesUtils-cafdd4bc.js +0 -64
- package/dist/sourceUtils-1a30f8aa.js +0 -71
- package/dist/sphere-84d1e36b.js +0 -199
- package/dist/statsWorker-efb7a41b.js +0 -37
- package/dist/streamLayerUtils-4c5b417e.js +0 -31
- package/dist/styleUtils-8f0e3848.js +0 -75
- package/dist/styleUtils-a61894cc.js +0 -14
- package/dist/sublayerUtils-aaa67481.js +0 -37
- package/dist/substitute-7b4a925f.js +0 -52
- package/dist/symbolColorUtils-45615b74.js +0 -8
- package/dist/symbolLayerUtils-6ee325f3.js +0 -31
- package/dist/symbologySnappingCandidates-a56c7bbb.js +0 -221
- package/dist/t9n-b5ab99e4.js +0 -349
- package/dist/testSVGPremultipliedAlpha-a89a8569.js +0 -94
- package/dist/timeSupport-76d5ec0e.js +0 -410
- package/dist/triangle-95e355d3.js +0 -98
- package/dist/unitConversionUtils-b0c2c156.js +0 -17
- package/dist/unitFormatUtils-b79fea5c.js +0 -40
- package/dist/uploadAssetErrors-7ef907ce.js +0 -70
- package/dist/uploadAssets-99a2ec95.js +0 -330
- package/dist/utils-0da4a164.js +0 -419
- package/dist/utils-0e163cdb.js +0 -433
- package/dist/utils-421c60f9.js +0 -73
- package/dist/utils-6e4fc34d.js +0 -91
- package/dist/utils-9612bce6.js +0 -34
- package/dist/utils-99bb2971.js +0 -2746
- package/dist/utils-d1f92cf8.js +0 -79
- package/dist/utils-e30b7de3.js +0 -232
- package/dist/utils3-41d8e55d.js +0 -75
- package/dist/vec3-ab2339d6.js +0 -81
- package/dist/vec42-1a7bd7a6.js +0 -125
- package/dist/versionUtils-b6c13869.js +0 -161
- package/dist/visualVariableUtils-1a38c540.js +0 -267
- package/dist/webStyleSymbolUtils-6f89a405.js +0 -48
- package/dist/webglDeps-dcb6738a.js +0 -23
- package/dist/wfsUtils-d679c9b9.js +0 -343
- package/dist/workerHelper-8fb7376f.js +0 -11
- package/dist/xyChart-b3c4e27e.js +0 -3335
|
@@ -0,0 +1,1701 @@
|
|
|
1
|
+
import { x as T, n as f, t as g, s as m, a as y, r as j } from "./WhereClause-ad3cc5ae.js";
|
|
2
|
+
import { D as X, an as h, ao as P, ap as k, aq as L, ar as x, as as O, at as ee, au as te, av as ne, aw as ae, ax as F, ay as re, az as se, aA as G, aB as B, aC as H } from "./arcadeUtils-2b5a1e68.js";
|
|
3
|
+
import { n as M, m as ie, a as z } from "./TimeOnly-5a143001.js";
|
|
4
|
+
import { hb as le, bR as oe, ez as Z } from "./index-6ebf29c1.js";
|
|
5
|
+
import { union as ue, geodesicArea as ce, planarArea as he, geodesicLength as de, planarLength as pe, relate as _e, crosses as fe, touches as ge, within as me, overlaps as ye, contains as Se, intersects as Y } from "./geometryEngineAsync-ae21d4e2.js";
|
|
6
|
+
import { Z as we } from "./FieldsIndex-91fb234a.js";
|
|
7
|
+
class E {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._databaseTypeMetaData = {}, this._layerInfo = {};
|
|
10
|
+
}
|
|
11
|
+
clearDatabaseType(e) {
|
|
12
|
+
this._databaseTypeMetaData[e] === void 0 && delete this._databaseTypeMetaData[e];
|
|
13
|
+
}
|
|
14
|
+
getDatabaseType(e) {
|
|
15
|
+
return e === "MUSTBESET" || this._databaseTypeMetaData[e] === void 0 ? null : this._databaseTypeMetaData[e];
|
|
16
|
+
}
|
|
17
|
+
setDatabaseType(e, t) {
|
|
18
|
+
this._databaseTypeMetaData[e] = t;
|
|
19
|
+
}
|
|
20
|
+
getLayerInfo(e) {
|
|
21
|
+
return this._layerInfo[e] === void 0 ? null : this._layerInfo[e];
|
|
22
|
+
}
|
|
23
|
+
setLayerInfo(e, t) {
|
|
24
|
+
this._layerInfo[e] = t;
|
|
25
|
+
}
|
|
26
|
+
clearLayerInfo(e) {
|
|
27
|
+
this._layerInfo[e] !== void 0 && delete this._layerInfo[e];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
E.applicationCache = null;
|
|
31
|
+
class Te {
|
|
32
|
+
constructor(e, t) {
|
|
33
|
+
this._lastId = -1, this._progress = t, this._parent = e;
|
|
34
|
+
}
|
|
35
|
+
reset() {
|
|
36
|
+
this._lastId = -1;
|
|
37
|
+
}
|
|
38
|
+
async nextBatchAsArcadeFeatures(e, t) {
|
|
39
|
+
const n = await this.nextBatch(e);
|
|
40
|
+
return n === null ? n : n.map((a) => X.createFromGraphicLikeObject(a.geometry, a.attributes, this._parent, t));
|
|
41
|
+
}
|
|
42
|
+
nextBatch(e) {
|
|
43
|
+
if (this._parent._mainSetInUse !== null)
|
|
44
|
+
return this._parent._mainSetInUse.then((a) => this.nextBatch(e), (a) => this.nextBatch(e));
|
|
45
|
+
const t = { returnpromise: null, hasset: !1 }, n = [];
|
|
46
|
+
return t.returnpromise = new Promise((a, s) => {
|
|
47
|
+
this._parent._getSet(this._progress).then((i) => {
|
|
48
|
+
const l = i._known;
|
|
49
|
+
let o = l.length - 1;
|
|
50
|
+
if (l[l.length - 1] === "GETPAGES" && (o -= 1), this._lastId + e > o && l.length > 0 && l[l.length - 1] === "GETPAGES")
|
|
51
|
+
return void this._parent._expandPagedSet(i, this._parent._maxQueryRate(), 0, 0, this._progress).then((c) => {
|
|
52
|
+
t.hasset = !0, this._parent._mainSetInUse = null, this.nextBatch(e).then(a, s);
|
|
53
|
+
}, (c) => {
|
|
54
|
+
t.hasset = !0, this._parent._mainSetInUse = null, s(c);
|
|
55
|
+
});
|
|
56
|
+
const u = i._candidates;
|
|
57
|
+
if (o >= this._lastId + e || u.length === 0) {
|
|
58
|
+
for (let c = 0; c < e; c++) {
|
|
59
|
+
const p = c + this._lastId + 1;
|
|
60
|
+
if (p >= l.length)
|
|
61
|
+
break;
|
|
62
|
+
n[c] = l[p];
|
|
63
|
+
}
|
|
64
|
+
return this._lastId += n.length, n.length === 0 && (t.hasset = !0, this._parent._mainSetInUse = null, a([])), void this._parent._getFeatureBatch(n, this._progress).then((c) => {
|
|
65
|
+
t.hasset = !0, this._parent._mainSetInUse = null, a(c);
|
|
66
|
+
}, (c) => {
|
|
67
|
+
t.hasset = !0, this._parent._mainSetInUse = null, s(c);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
this._parent._refineSetBlock(i, this._parent._maxProcessingRate(), this._progress).then(() => {
|
|
71
|
+
t.hasset = !0, this._parent._mainSetInUse = null, this.nextBatch(e).then(a, s);
|
|
72
|
+
}, (c) => {
|
|
73
|
+
t.hasset = !0, this._parent._mainSetInUse = null, s(c);
|
|
74
|
+
});
|
|
75
|
+
}, (i) => {
|
|
76
|
+
t.hasset = !0, this._parent._mainSetInUse = null, s(i);
|
|
77
|
+
});
|
|
78
|
+
}), t.hasset === !1 && (this._parent._mainSetInUse = t.returnpromise, t.hasset = !0), t.returnpromise;
|
|
79
|
+
}
|
|
80
|
+
next() {
|
|
81
|
+
if (this._parent._mainSetInUse !== null)
|
|
82
|
+
return this._parent._mainSetInUse.then((t) => this.next(), (t) => this.next());
|
|
83
|
+
const e = { returnpromise: null, hasset: !1 };
|
|
84
|
+
return e.returnpromise = new Promise((t, n) => {
|
|
85
|
+
this._parent._getSet(this._progress).then((a) => {
|
|
86
|
+
const s = a._known;
|
|
87
|
+
this._lastId < s.length - 1 ? s[this._lastId + 1] === "GETPAGES" ? this._parent._expandPagedSet(a, this._parent._maxQueryRate(), 0, 0, this._progress).then((i) => (e.hasset = !0, this._parent._mainSetInUse = null, this.next())).then(t, n) : (this._lastId += 1, this._parent._getFeature(a, s[this._lastId], this._progress).then((i) => {
|
|
88
|
+
e.hasset = !0, this._parent._mainSetInUse = null, t(i);
|
|
89
|
+
}, (i) => {
|
|
90
|
+
e.hasset = !0, this._parent._mainSetInUse = null, n(i);
|
|
91
|
+
})) : a._candidates.length > 0 ? this._parent._refineSetBlock(a, this._parent._maxProcessingRate(), this._progress).then(() => {
|
|
92
|
+
e.hasset = !0, this._parent._mainSetInUse = null, this.next().then(t, n);
|
|
93
|
+
}, (i) => {
|
|
94
|
+
e.hasset = !0, this._parent._mainSetInUse = null, n(i);
|
|
95
|
+
}) : (e.hasset = !0, this._parent._mainSetInUse = null, t(null));
|
|
96
|
+
}, (a) => {
|
|
97
|
+
e.hasset = !0, this._parent._mainSetInUse = null, n(a);
|
|
98
|
+
});
|
|
99
|
+
}), e.hasset === !1 && (this._parent._mainSetInUse = e.returnpromise, e.hasset = !0), e.returnpromise;
|
|
100
|
+
}
|
|
101
|
+
async count() {
|
|
102
|
+
if (this._parent._totalCount !== -1)
|
|
103
|
+
return this._parent._totalCount;
|
|
104
|
+
const e = await this._parent._getSet(this._progress), t = await this._refineAllSets(e);
|
|
105
|
+
return this._parent._totalCount = t._known.length, this._parent._totalCount;
|
|
106
|
+
}
|
|
107
|
+
async _refineAllSets(e) {
|
|
108
|
+
if (e._known.length > 0 && e._known[e._known.length - 1] === "GETPAGES")
|
|
109
|
+
return await this._parent._expandPagedSet(e, this._parent._maxQueryRate(), 0, 1, this._progress), this._refineAllSets(e);
|
|
110
|
+
if (e._candidates.length > 0) {
|
|
111
|
+
if (e._known[e._candidates.length - 1] === "GETPAGES")
|
|
112
|
+
return await this._parent._expandPagedSet(e, this._parent._maxQueryRate(), 0, 2, this._progress), this._refineAllSets(e);
|
|
113
|
+
const t = await this._parent._refineSetBlock(e, this._parent._maxProcessingRate(), this._progress);
|
|
114
|
+
return t._candidates.length > 0 ? this._refineAllSets(t) : t;
|
|
115
|
+
}
|
|
116
|
+
return e;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
class D {
|
|
120
|
+
constructor(e, t, n, a) {
|
|
121
|
+
this._lastFetchedIndex = 0, this._ordered = !1, this.pagesDefinition = null, this._candidates = e, this._known = t, this._ordered = n, this.pagesDefinition = a;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function K(r, e) {
|
|
125
|
+
return d(r == null ? void 0 : r.parseTree, e, r == null ? void 0 : r.parameters);
|
|
126
|
+
}
|
|
127
|
+
function Ye(r, e, t) {
|
|
128
|
+
return d(r, e, t);
|
|
129
|
+
}
|
|
130
|
+
function Ke(r, e, t, n) {
|
|
131
|
+
return T.create(d(r.parseTree, h.Standardised, r.parameters, e, t), n, r.timeZone);
|
|
132
|
+
}
|
|
133
|
+
function Qe(r, e, t = "AND") {
|
|
134
|
+
return T.create("((" + K(r, h.Standardised) + ")" + t + "(" + K(e, h.Standardised) + "))", r.fieldsIndex, r.timeZone);
|
|
135
|
+
}
|
|
136
|
+
function d(r, e, t, n = null, a = null) {
|
|
137
|
+
let s, i, l, o;
|
|
138
|
+
switch (r.type) {
|
|
139
|
+
case "interval":
|
|
140
|
+
return Ee(d(r.value, e, t, n, a), r.qualifier, r.op);
|
|
141
|
+
case "case-expression": {
|
|
142
|
+
let u = " CASE ";
|
|
143
|
+
r.format === "simple" && (u += d(r.operand, e, t, n, a));
|
|
144
|
+
for (let c = 0; c < r.clauses.length; c++)
|
|
145
|
+
u += " WHEN " + d(r.clauses[c].operand, e, t, n, a) + " THEN " + d(r.clauses[c].value, e, t, n, a);
|
|
146
|
+
return r.else !== null && (u += " ELSE " + d(r.else, e, t, n, a)), u += " END ", u;
|
|
147
|
+
}
|
|
148
|
+
case "parameter": {
|
|
149
|
+
const u = t[r.value.toLowerCase()];
|
|
150
|
+
if (typeof u == "string")
|
|
151
|
+
return "'" + t[r.value.toLowerCase()].toString().replaceAll("'", "''") + "'";
|
|
152
|
+
if (P(u) || k(u))
|
|
153
|
+
return R(u, e);
|
|
154
|
+
if (L(u))
|
|
155
|
+
return q(u, e);
|
|
156
|
+
if (x(u))
|
|
157
|
+
return U(u, e);
|
|
158
|
+
if (O(u))
|
|
159
|
+
return Q(u, e);
|
|
160
|
+
if (u instanceof Array) {
|
|
161
|
+
const c = [];
|
|
162
|
+
for (let p = 0; p < u.length; p++)
|
|
163
|
+
typeof u[p] == "string" ? c.push("'" + u[p].toString().replaceAll("'", "''") + "'") : P(u[p]) || k(u[p]) ? c.push(R(u[p], e)) : L(u[p]) ? c.push(q(u[p], e)) : x(u[p]) ? c.push(U(u[p], e)) : O(u[p]) ? c.push(Q(u[p], e)) : c.push(u[p].toString());
|
|
164
|
+
return c;
|
|
165
|
+
}
|
|
166
|
+
return u.toString();
|
|
167
|
+
}
|
|
168
|
+
case "expression-list":
|
|
169
|
+
i = [];
|
|
170
|
+
for (const u of r.value)
|
|
171
|
+
i.push(d(u, e, t, n, a));
|
|
172
|
+
return i;
|
|
173
|
+
case "unary-expression":
|
|
174
|
+
return " ( NOT " + d(r.expr, e, t, n, a) + " ) ";
|
|
175
|
+
case "binary-expression":
|
|
176
|
+
switch (r.operator) {
|
|
177
|
+
case "AND":
|
|
178
|
+
return " (" + d(r.left, e, t, n, a) + " AND " + d(r.right, e, t, n, a) + ") ";
|
|
179
|
+
case "OR":
|
|
180
|
+
return " (" + d(r.left, e, t, n, a) + " OR " + d(r.right, e, t, n, a) + ") ";
|
|
181
|
+
case "IS":
|
|
182
|
+
if (r.right.type !== "null")
|
|
183
|
+
throw new f(g.UnsupportedIsRhs);
|
|
184
|
+
return " (" + d(r.left, e, t, n, a) + " IS NULL )";
|
|
185
|
+
case "ISNOT":
|
|
186
|
+
if (r.right.type !== "null")
|
|
187
|
+
throw new f(g.UnsupportedIsRhs);
|
|
188
|
+
return " (" + d(r.left, e, t, n, a) + " IS NOT NULL )";
|
|
189
|
+
case "IN":
|
|
190
|
+
return s = [], r.right.type === "expression-list" ? (s = d(r.right, e, t, n, a), " (" + d(r.left, e, t, n, a) + " IN (" + s.join(",") + ")) ") : (o = d(r.right, e, t, n, a), o instanceof Array ? " (" + d(r.left, e, t, n, a) + " IN (" + o.join(",") + ")) " : " (" + d(r.left, e, t, n, a) + " IN (" + o + ")) ");
|
|
191
|
+
case "NOT IN":
|
|
192
|
+
return s = [], r.right.type === "expression-list" ? (s = d(r.right, e, t, n, a), " (" + d(r.left, e, t, n, a) + " NOT IN (" + s.join(",") + ")) ") : (o = d(r.right, e, t, n, a), o instanceof Array ? " (" + d(r.left, e, t, n, a) + " NOT IN (" + o.join(",") + ")) " : " (" + d(r.left, e, t, n, a) + " NOT IN (" + o + ")) ");
|
|
193
|
+
case "BETWEEN":
|
|
194
|
+
return l = d(r.right, e, t, n, a), " (" + d(r.left, e, t, n, a) + " BETWEEN " + l[0] + " AND " + l[1] + " ) ";
|
|
195
|
+
case "NOTBETWEEN":
|
|
196
|
+
return l = d(r.right, e, t, n, a), " (" + d(r.left, e, t, n, a) + " NOT BETWEEN " + l[0] + " AND " + l[1] + " ) ";
|
|
197
|
+
case "LIKE":
|
|
198
|
+
return r.escape !== "" ? " (" + d(r.left, e, t, n, a) + " LIKE " + d(r.right, e, t, n, a) + " ESCAPE '" + r.escape + "') " : " (" + d(r.left, e, t, n, a) + " LIKE " + d(r.right, e, t, n, a) + ") ";
|
|
199
|
+
case "NOT LIKE":
|
|
200
|
+
return r.escape !== "" ? " (" + d(r.left, e, t, n, a) + " NOT LIKE " + d(r.right, e, t, n, a) + " ESCAPE '" + r.escape + "') " : " (" + d(r.left, e, t, n, a) + " NOT LIKE " + d(r.right, e, t, n, a) + ") ";
|
|
201
|
+
case "<>":
|
|
202
|
+
case "<":
|
|
203
|
+
case ">":
|
|
204
|
+
case ">=":
|
|
205
|
+
case "<=":
|
|
206
|
+
case "=":
|
|
207
|
+
case "*":
|
|
208
|
+
case "-":
|
|
209
|
+
case "+":
|
|
210
|
+
case "/":
|
|
211
|
+
return " (" + d(r.left, e, t, n, a) + " " + r.operator + " " + d(r.right, e, t, n, a) + ") ";
|
|
212
|
+
case "||":
|
|
213
|
+
return " (" + d(r.left, e, t, n, a) + " " + (e === h.SqlServer ? "+" : r.operator) + " " + d(r.right, e, t, n, a) + ") ";
|
|
214
|
+
}
|
|
215
|
+
throw new f(g.UnsupportedOperator, { operator: r.operator });
|
|
216
|
+
case "null":
|
|
217
|
+
return "null";
|
|
218
|
+
case "boolean":
|
|
219
|
+
return r.value === !0 ? "1" : "0";
|
|
220
|
+
case "string":
|
|
221
|
+
return "'" + r.value.toString().replaceAll("'", "''") + "'";
|
|
222
|
+
case "timestamp":
|
|
223
|
+
return `timestamp '${r.value}'`;
|
|
224
|
+
case "date":
|
|
225
|
+
return `date '${r.value}'`;
|
|
226
|
+
case "time":
|
|
227
|
+
return `time '${r.value}'`;
|
|
228
|
+
case "number":
|
|
229
|
+
return r.value.toString();
|
|
230
|
+
case "current-time":
|
|
231
|
+
return Fe(r.mode === "date", e);
|
|
232
|
+
case "column-reference":
|
|
233
|
+
return n ? n.toLowerCase() === r.column.toLowerCase() ? "(" + a + ")" : r.delimited === !0 ? `"${r.column.split('"').join('""')}"` : r.column : r.column;
|
|
234
|
+
case "data-type":
|
|
235
|
+
return r.value;
|
|
236
|
+
case "function": {
|
|
237
|
+
const u = d(r.args, e, t, n, a);
|
|
238
|
+
return Ie(r.name, u, e);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
throw new f(g.UnsupportedSyntax, { node: r.type });
|
|
242
|
+
}
|
|
243
|
+
function Ie(r, e, t) {
|
|
244
|
+
switch (r.toLowerCase().trim()) {
|
|
245
|
+
case "cos":
|
|
246
|
+
case "sin":
|
|
247
|
+
case "tan":
|
|
248
|
+
case "cosh":
|
|
249
|
+
case "tanh":
|
|
250
|
+
case "sinh":
|
|
251
|
+
case "acos":
|
|
252
|
+
case "asin":
|
|
253
|
+
case "atan":
|
|
254
|
+
case "floor":
|
|
255
|
+
case "log10":
|
|
256
|
+
case "log":
|
|
257
|
+
case "abs":
|
|
258
|
+
if (e.length !== 1)
|
|
259
|
+
throw new f(g.InvalidFunctionParameters, { function: r.toLowerCase().trim() });
|
|
260
|
+
return `${r.toUpperCase().trim()}(${e[0]})`;
|
|
261
|
+
case "ceiling":
|
|
262
|
+
case "ceil":
|
|
263
|
+
if (e.length !== 1)
|
|
264
|
+
throw new f(g.InvalidFunctionParameters, { function: "ceiling" });
|
|
265
|
+
switch (t) {
|
|
266
|
+
case h.Standardised:
|
|
267
|
+
case h.StandardisedNoInterval:
|
|
268
|
+
}
|
|
269
|
+
return "CEILING(" + e[0] + ")";
|
|
270
|
+
case "mod":
|
|
271
|
+
case "power":
|
|
272
|
+
case "nullif":
|
|
273
|
+
if (e.length !== 2)
|
|
274
|
+
throw new f(g.InvalidFunctionParameters, { function: r.toLowerCase().trim() });
|
|
275
|
+
return `${r.toUpperCase().trim()}(${e[0]},${e[1]})`;
|
|
276
|
+
case "round":
|
|
277
|
+
if (e.length === 2)
|
|
278
|
+
return "ROUND(" + e[0] + "," + e[1] + ")";
|
|
279
|
+
if (e.length === 1)
|
|
280
|
+
return "ROUND(" + e[0] + ")";
|
|
281
|
+
throw new f(g.InvalidFunctionParameters, { function: "round" });
|
|
282
|
+
case "truncate":
|
|
283
|
+
if (e.length < 1 || e.length > 2)
|
|
284
|
+
throw new f(g.InvalidFunctionParameters, { function: "truncate" });
|
|
285
|
+
return t === h.SqlServer ? "ROUND(" + e[0] + (e.length === 1 ? "0" : "," + e[1]) + ",1)" : "TRUNCATE(" + e[0] + (e.length === 1 ? ")" : "," + e[1] + ")");
|
|
286
|
+
case "char_length":
|
|
287
|
+
case "len":
|
|
288
|
+
if (e.length !== 1)
|
|
289
|
+
throw new f(g.InvalidFunctionParameters, { function: "char_length" });
|
|
290
|
+
switch (t) {
|
|
291
|
+
case h.SqlServer:
|
|
292
|
+
return "LEN(" + e[0] + ")";
|
|
293
|
+
case h.Oracle:
|
|
294
|
+
return "LENGTH(" + e[0] + ")";
|
|
295
|
+
default:
|
|
296
|
+
return "CHAR_LENGTH(" + e[0] + ")";
|
|
297
|
+
}
|
|
298
|
+
case "coalesce":
|
|
299
|
+
case "concat": {
|
|
300
|
+
if (e.length < 1)
|
|
301
|
+
throw new f(g.InvalidFunctionParameters, { function: r.toLowerCase() });
|
|
302
|
+
let n = r.toUpperCase().trim() + "(";
|
|
303
|
+
for (let a = 0; a < e.length; a++)
|
|
304
|
+
a !== 0 && (n += ","), n += e[a];
|
|
305
|
+
return n += ")", n;
|
|
306
|
+
}
|
|
307
|
+
case "lower":
|
|
308
|
+
case "lcase":
|
|
309
|
+
if (e.length !== 1)
|
|
310
|
+
throw new f(g.InvalidFunctionParameters, { function: "lower" });
|
|
311
|
+
return "LOWER(" + e[0] + ")";
|
|
312
|
+
case "upper":
|
|
313
|
+
case "ucase":
|
|
314
|
+
if (e.length !== 1)
|
|
315
|
+
throw new f(g.InvalidFunctionParameters, { function: "upper" });
|
|
316
|
+
return "UPPER(" + e[0] + ")";
|
|
317
|
+
case "substring": {
|
|
318
|
+
let n = "";
|
|
319
|
+
switch (t) {
|
|
320
|
+
case h.Oracle:
|
|
321
|
+
return n = "SUBSTR(" + e[0] + "," + e[1], e.length === 3 && (n += "," + e[2]), n += ")", n;
|
|
322
|
+
case h.SqlServer:
|
|
323
|
+
return n = e.length === 3 ? "SUBSTRING(" + e[0] + "," + e[1] + "," + e[2] + ")" : "SUBSTRING(" + e[0] + ", " + e[1] + ", LEN(" + e[0] + ") - " + e[1] + ")", n;
|
|
324
|
+
default:
|
|
325
|
+
return n = "SUBSTRING(" + e[0] + " FROM " + e[1], e.length === 3 && (n += " FOR " + e[2]), n += ")", n;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
case "extract":
|
|
329
|
+
return "EXTRACT(" + e[0].replaceAll("'", "") + " FROM " + e[1] + ")";
|
|
330
|
+
case "cast": {
|
|
331
|
+
let n = "";
|
|
332
|
+
switch (t) {
|
|
333
|
+
case h.Oracle:
|
|
334
|
+
switch (e[1].type) {
|
|
335
|
+
case "date":
|
|
336
|
+
n = "DATE";
|
|
337
|
+
break;
|
|
338
|
+
case "float":
|
|
339
|
+
n = "DOUBLE";
|
|
340
|
+
break;
|
|
341
|
+
case "integer":
|
|
342
|
+
n = "INTEGER";
|
|
343
|
+
break;
|
|
344
|
+
case "real":
|
|
345
|
+
n = "REAL";
|
|
346
|
+
break;
|
|
347
|
+
case "smallint":
|
|
348
|
+
n = "SMALLINT";
|
|
349
|
+
break;
|
|
350
|
+
case "timestamp":
|
|
351
|
+
n = "TIMESTAMP";
|
|
352
|
+
break;
|
|
353
|
+
case "varchar":
|
|
354
|
+
n = "VARCHAR(" + e[1].size.toString() + ")";
|
|
355
|
+
}
|
|
356
|
+
return `CAST(${e[0]} AS ${n})`;
|
|
357
|
+
case h.Postgres:
|
|
358
|
+
switch (e[1].type) {
|
|
359
|
+
case "date":
|
|
360
|
+
n = "DATE";
|
|
361
|
+
break;
|
|
362
|
+
case "float":
|
|
363
|
+
n = "DOUBLE PRECISION";
|
|
364
|
+
break;
|
|
365
|
+
case "integer":
|
|
366
|
+
n = "INT";
|
|
367
|
+
break;
|
|
368
|
+
case "real":
|
|
369
|
+
n = "REAL";
|
|
370
|
+
break;
|
|
371
|
+
case "smallint":
|
|
372
|
+
n = "SMALLINT";
|
|
373
|
+
break;
|
|
374
|
+
case "timestamp":
|
|
375
|
+
n = "TIMESTAMP";
|
|
376
|
+
break;
|
|
377
|
+
case "varchar":
|
|
378
|
+
n = "VARCHAR(" + e[1].size.toString() + ")";
|
|
379
|
+
}
|
|
380
|
+
return `CAST(${e[0]} AS ${n})`;
|
|
381
|
+
case h.SqlServer:
|
|
382
|
+
switch (e[1].type) {
|
|
383
|
+
case "date":
|
|
384
|
+
n = "DATE";
|
|
385
|
+
break;
|
|
386
|
+
case "float":
|
|
387
|
+
n = "FLOAT";
|
|
388
|
+
break;
|
|
389
|
+
case "integer":
|
|
390
|
+
n = "INT";
|
|
391
|
+
break;
|
|
392
|
+
case "real":
|
|
393
|
+
n = "REAL";
|
|
394
|
+
break;
|
|
395
|
+
case "smallint":
|
|
396
|
+
n = "SMALLINT";
|
|
397
|
+
break;
|
|
398
|
+
case "timestamp":
|
|
399
|
+
n = "DATETIME";
|
|
400
|
+
break;
|
|
401
|
+
case "varchar":
|
|
402
|
+
n = "VARCHAR(" + e[1].size.toString() + ")";
|
|
403
|
+
}
|
|
404
|
+
return `CAST(${e[0]} AS ${n})`;
|
|
405
|
+
default:
|
|
406
|
+
switch (e[1].type) {
|
|
407
|
+
case "date":
|
|
408
|
+
n = "DATE";
|
|
409
|
+
break;
|
|
410
|
+
case "float":
|
|
411
|
+
n = "FLOAT";
|
|
412
|
+
break;
|
|
413
|
+
case "integer":
|
|
414
|
+
n = "INTEGER";
|
|
415
|
+
break;
|
|
416
|
+
case "real":
|
|
417
|
+
n = "REAL";
|
|
418
|
+
break;
|
|
419
|
+
case "smallint":
|
|
420
|
+
n = "SMALLINT";
|
|
421
|
+
break;
|
|
422
|
+
case "timestamp":
|
|
423
|
+
n = "TIMESTAMP";
|
|
424
|
+
break;
|
|
425
|
+
case "varchar":
|
|
426
|
+
n = "VARCHAR(" + e[1].size.toString() + ")";
|
|
427
|
+
}
|
|
428
|
+
return `CAST(${e[0]} AS ${n})`;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
throw new f(g.InvalidFunctionParameters, { function: r });
|
|
433
|
+
}
|
|
434
|
+
function U(r, e) {
|
|
435
|
+
const t = r.toDateTime(), n = t.hour === 0 && t.minute === 0 && t.second === 0 && t.millisecond === 0;
|
|
436
|
+
switch (e) {
|
|
437
|
+
case h.FILEGDB:
|
|
438
|
+
case h.Standardised:
|
|
439
|
+
case h.StandardisedNoInterval:
|
|
440
|
+
return n ? `date '${t.toFormat("yyyy-LL-dd")}'` : `timestamp '${t.toFormat("yyyy-LL-dd HH:mm:ss")}'`;
|
|
441
|
+
case h.Oracle:
|
|
442
|
+
return n ? `TO_DATE('${t.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')` : `TO_DATE('${t.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;
|
|
443
|
+
case h.SqlServer:
|
|
444
|
+
return `'${t.toFormat(n ? "yyyy-LL-dd" : "yyyy-LL-dd HH:mm:ss")}'`;
|
|
445
|
+
case h.PGDB:
|
|
446
|
+
return `#${t.toFormat(n ? "LL-dd-yyyy" : "LL-dd-yyyy HH:mm:ss")}#`;
|
|
447
|
+
case h.Postgres:
|
|
448
|
+
return `TIMESTAMP '${t.toFormat(n ? "yyyy-LL-dd" : "yyyy-LL-dd HH:mm:ss")}'`;
|
|
449
|
+
default:
|
|
450
|
+
return `timestamp '${t.toFormat("yyyy-LL-dd HH:mm:ss")}'`;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
function Q(r, e) {
|
|
454
|
+
switch (e) {
|
|
455
|
+
case h.FILEGDB:
|
|
456
|
+
case h.Standardised:
|
|
457
|
+
case h.StandardisedNoInterval:
|
|
458
|
+
return r.toSQLWithKeyword();
|
|
459
|
+
case h.Oracle:
|
|
460
|
+
return `TO_DATE('${r.toFormat("Y-MM-DD")}'`;
|
|
461
|
+
case h.SqlServer:
|
|
462
|
+
return `'${r.toFormat("Y-MM-DD")}'`;
|
|
463
|
+
case h.PGDB:
|
|
464
|
+
return `#${r.toFormat("Y-MM-DD")}#`;
|
|
465
|
+
case h.Postgres:
|
|
466
|
+
return `TIMESTAMP '${r.toFormat("Y-MM-DD")}'`;
|
|
467
|
+
default:
|
|
468
|
+
return r.toSQLWithKeyword();
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
function q(r, e) {
|
|
472
|
+
switch (r instanceof M && (r = r.toStorageString()), e) {
|
|
473
|
+
case h.Oracle:
|
|
474
|
+
return `TO_DATE('${r}', 'HH24:MI:SS')`;
|
|
475
|
+
case h.SqlServer:
|
|
476
|
+
return `'${r}'`;
|
|
477
|
+
case h.FILEGDB:
|
|
478
|
+
case h.Standardised:
|
|
479
|
+
case h.StandardisedNoInterval:
|
|
480
|
+
case h.Postgres:
|
|
481
|
+
default:
|
|
482
|
+
return `time '${r}'`;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function R(r, e) {
|
|
486
|
+
return U(ie.dateTimeToArcadeDate(k(r) ? r : le.fromJSDate(r)), e);
|
|
487
|
+
}
|
|
488
|
+
function Fe(r, e) {
|
|
489
|
+
switch (e) {
|
|
490
|
+
case h.FILEGDB:
|
|
491
|
+
case h.Standardised:
|
|
492
|
+
case h.StandardisedNoInterval:
|
|
493
|
+
case h.Oracle:
|
|
494
|
+
return r ? "CURRENT_DATE" : "CURRENT_TIMESTAMP";
|
|
495
|
+
case h.SqlServer:
|
|
496
|
+
return r ? "CAST(GETDATE() AS DATE)" : "GETDATE()";
|
|
497
|
+
case h.PGDB:
|
|
498
|
+
case h.Postgres:
|
|
499
|
+
default:
|
|
500
|
+
return r ? "CURRENT_DATE" : "CURRENT_TIMESTAMP";
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
function be(r, e, t = {}) {
|
|
504
|
+
const n = {}, a = {}, s = { esriFieldTypeSmallInteger: "integer", esriFieldTypeInteger: "integer", esriFieldTypeBigInteger: "integer", esriFieldTypeSingle: "double", esriFieldTypeDouble: "double", esriFieldTypeString: "string", esriFieldTypeTimeOnly: "time-only", esriFieldTypeDateOnly: "date-only", esriFieldTypeTimestampOffset: "timestamp-offset", esriFieldTypeDate: "date", esriFieldTypeOID: "integer", esriFieldTypeGUID: "guid", esriFieldTypeGlobalID: "guid", oid: "integer", long: "integer", "small-integer": "integer", integer: "integer", "big-integer": "integer", single: "double", "time-only": "time-only", "date-only": "date-only", "timestamp-offset": "timestemp-offset", double: "double", date: "date", guid: "guid", "global-id": "guid", string: "string" };
|
|
505
|
+
for (const i of e) {
|
|
506
|
+
const l = i.type ? s[i.type] : void 0;
|
|
507
|
+
n[i.name.toLowerCase()] = l === void 0 ? "" : l;
|
|
508
|
+
}
|
|
509
|
+
for (const i in t) {
|
|
510
|
+
const l = s[t[i]];
|
|
511
|
+
a[i.toLowerCase()] = l === void 0 ? "" : l;
|
|
512
|
+
}
|
|
513
|
+
switch (S(n, r.parseTree, r.parameters, a)) {
|
|
514
|
+
case "double":
|
|
515
|
+
return "double";
|
|
516
|
+
case "integer":
|
|
517
|
+
return "integer";
|
|
518
|
+
case "date":
|
|
519
|
+
return "date";
|
|
520
|
+
case "date-only":
|
|
521
|
+
return "date-only";
|
|
522
|
+
case "time-only":
|
|
523
|
+
return "time-only";
|
|
524
|
+
case "timestamp-offset":
|
|
525
|
+
return "timestamp-offset";
|
|
526
|
+
case "string":
|
|
527
|
+
return "string";
|
|
528
|
+
case "global-id":
|
|
529
|
+
case "guid":
|
|
530
|
+
return "guid";
|
|
531
|
+
}
|
|
532
|
+
return "";
|
|
533
|
+
}
|
|
534
|
+
function S(r, e, t, n) {
|
|
535
|
+
var s, i, l, o, u;
|
|
536
|
+
let a;
|
|
537
|
+
switch (e.type) {
|
|
538
|
+
case "interval":
|
|
539
|
+
return "integer";
|
|
540
|
+
case "case-expression": {
|
|
541
|
+
const c = [];
|
|
542
|
+
if (e.format === "simple") {
|
|
543
|
+
for (let p = 0; p < e.clauses.length; p++)
|
|
544
|
+
c.push(S(r, e.clauses[p].value, t, n));
|
|
545
|
+
e.else !== null && c.push(S(r, e.else, t, n));
|
|
546
|
+
} else {
|
|
547
|
+
for (let p = 0; p < e.clauses.length; p++)
|
|
548
|
+
c.push(S(r, e.else, t, n));
|
|
549
|
+
e.else !== null && c.push(S(r, e.else, t, n));
|
|
550
|
+
}
|
|
551
|
+
return C(c);
|
|
552
|
+
}
|
|
553
|
+
case "parameter": {
|
|
554
|
+
const c = n[e.value.toLowerCase()];
|
|
555
|
+
if (c === void 0 && t) {
|
|
556
|
+
const p = t[e.value.toLowerCase()];
|
|
557
|
+
if (p === void 0 || p === null)
|
|
558
|
+
return "";
|
|
559
|
+
if (typeof p == "string" || p instanceof String)
|
|
560
|
+
return "string";
|
|
561
|
+
if (typeof p == "boolean")
|
|
562
|
+
return "boolean";
|
|
563
|
+
if (P(p) || x(p))
|
|
564
|
+
return "date";
|
|
565
|
+
if (O(p))
|
|
566
|
+
return "date-only";
|
|
567
|
+
if (L(p))
|
|
568
|
+
return "time-only";
|
|
569
|
+
if (typeof p == "number")
|
|
570
|
+
return p % 1 == 0 ? "integer" : "double";
|
|
571
|
+
}
|
|
572
|
+
return c === void 0 ? "" : c;
|
|
573
|
+
}
|
|
574
|
+
case "expression-list": {
|
|
575
|
+
const c = [];
|
|
576
|
+
for (const p of e.value)
|
|
577
|
+
c.push(S(r, p, t, n));
|
|
578
|
+
return c;
|
|
579
|
+
}
|
|
580
|
+
case "unary-expression":
|
|
581
|
+
return "boolean";
|
|
582
|
+
case "binary-expression":
|
|
583
|
+
switch (e.operator) {
|
|
584
|
+
case "AND":
|
|
585
|
+
case "OR":
|
|
586
|
+
case "IN":
|
|
587
|
+
case "NOT IN":
|
|
588
|
+
case "BETWEEN":
|
|
589
|
+
case "NOTBETWEEN":
|
|
590
|
+
case "LIKE":
|
|
591
|
+
case "NOT LIKE":
|
|
592
|
+
case "<>":
|
|
593
|
+
case "<":
|
|
594
|
+
case ">":
|
|
595
|
+
case ">=":
|
|
596
|
+
case "<=":
|
|
597
|
+
case "=":
|
|
598
|
+
return "boolean";
|
|
599
|
+
case "IS":
|
|
600
|
+
case "ISNOT":
|
|
601
|
+
if (e.right.type !== "null")
|
|
602
|
+
throw new f(g.UnsupportedIsRhs);
|
|
603
|
+
return "boolean";
|
|
604
|
+
case "*":
|
|
605
|
+
case "-":
|
|
606
|
+
case "+":
|
|
607
|
+
case "/":
|
|
608
|
+
return C([S(r, e.left, t, n), S(r, e.right, t, n)]);
|
|
609
|
+
case "||":
|
|
610
|
+
return "string";
|
|
611
|
+
default:
|
|
612
|
+
throw new f(g.UnsupportedOperator, { operator: e.operator });
|
|
613
|
+
}
|
|
614
|
+
case "null":
|
|
615
|
+
return "";
|
|
616
|
+
case "boolean":
|
|
617
|
+
return "boolean";
|
|
618
|
+
case "string":
|
|
619
|
+
return "string";
|
|
620
|
+
case "number":
|
|
621
|
+
return e.value === null ? "" : e.value % 1 == 0 ? "integer" : "double";
|
|
622
|
+
case "date":
|
|
623
|
+
return "date";
|
|
624
|
+
case "timestamp":
|
|
625
|
+
return e.withtimezone ? "timestamp-offset" : "date";
|
|
626
|
+
case "time":
|
|
627
|
+
return "time-only";
|
|
628
|
+
case "current-time":
|
|
629
|
+
return "date";
|
|
630
|
+
case "column-reference": {
|
|
631
|
+
const c = r[e.column.toLowerCase()];
|
|
632
|
+
return c === void 0 ? "" : c;
|
|
633
|
+
}
|
|
634
|
+
case "function":
|
|
635
|
+
switch (e.name.toLowerCase()) {
|
|
636
|
+
case "cast":
|
|
637
|
+
switch (((i = (s = e.args) == null ? void 0 : s.value[1]) == null ? void 0 : i.value.type) ?? "") {
|
|
638
|
+
case "integer":
|
|
639
|
+
case "smallint":
|
|
640
|
+
return "integer";
|
|
641
|
+
case "real":
|
|
642
|
+
case "float":
|
|
643
|
+
return "double";
|
|
644
|
+
case "date":
|
|
645
|
+
case "timestamp":
|
|
646
|
+
return ((u = (o = (l = e.args) == null ? void 0 : l.value[1]) == null ? void 0 : o.value) == null ? void 0 : u.withtimezone) === !0 ? "timestamp-offset" : "date";
|
|
647
|
+
case "time":
|
|
648
|
+
return "time-only";
|
|
649
|
+
case "varchar":
|
|
650
|
+
return "string";
|
|
651
|
+
default:
|
|
652
|
+
return "";
|
|
653
|
+
}
|
|
654
|
+
case "position":
|
|
655
|
+
case "extract":
|
|
656
|
+
case "char_length":
|
|
657
|
+
case "mod":
|
|
658
|
+
return "integer";
|
|
659
|
+
case "round":
|
|
660
|
+
if (a = S(r, e.args, t, n), a instanceof Array) {
|
|
661
|
+
if (a.length <= 0)
|
|
662
|
+
return "double";
|
|
663
|
+
a = a[0];
|
|
664
|
+
}
|
|
665
|
+
return a;
|
|
666
|
+
case "sign":
|
|
667
|
+
return "integer";
|
|
668
|
+
case "ceiling":
|
|
669
|
+
case "floor":
|
|
670
|
+
case "abs":
|
|
671
|
+
return a = S(r, e.args, t, n), a instanceof Array && (a = C(a)), a === "integer" || a === "double" ? a : "double";
|
|
672
|
+
case "area":
|
|
673
|
+
case "length":
|
|
674
|
+
case "log":
|
|
675
|
+
case "log10":
|
|
676
|
+
case "sin":
|
|
677
|
+
case "cos":
|
|
678
|
+
case "tan":
|
|
679
|
+
case "asin":
|
|
680
|
+
case "acos":
|
|
681
|
+
case "atan":
|
|
682
|
+
case "cosh":
|
|
683
|
+
case "sinh":
|
|
684
|
+
case "tanh":
|
|
685
|
+
case "power":
|
|
686
|
+
return "double";
|
|
687
|
+
case "substring":
|
|
688
|
+
case "trim":
|
|
689
|
+
case "concat":
|
|
690
|
+
case "lower":
|
|
691
|
+
case "upper":
|
|
692
|
+
return "string";
|
|
693
|
+
case "truncate":
|
|
694
|
+
return "double";
|
|
695
|
+
case "nullif":
|
|
696
|
+
case "coalesce":
|
|
697
|
+
return a = S(r, e.args, t, n), a instanceof Array ? a.length > 0 ? a[0] : "" : a;
|
|
698
|
+
}
|
|
699
|
+
return "";
|
|
700
|
+
}
|
|
701
|
+
throw new f(g.UnsupportedSyntax, { node: e.type });
|
|
702
|
+
}
|
|
703
|
+
const V = { boolean: 1, string: 2, integer: 3, double: 4, date: 5 };
|
|
704
|
+
function C(r) {
|
|
705
|
+
if (r) {
|
|
706
|
+
let e = "";
|
|
707
|
+
for (const t of r)
|
|
708
|
+
t !== "" && (e = e === "" || V[e] < V[t] ? t : e);
|
|
709
|
+
return e;
|
|
710
|
+
}
|
|
711
|
+
return "";
|
|
712
|
+
}
|
|
713
|
+
function qe(r, e) {
|
|
714
|
+
return w(r.parseTree, e);
|
|
715
|
+
}
|
|
716
|
+
function De(r) {
|
|
717
|
+
return (r == null ? void 0 : r.parseTree.type) === "column-reference";
|
|
718
|
+
}
|
|
719
|
+
function w(r, e) {
|
|
720
|
+
if (r == null)
|
|
721
|
+
return !1;
|
|
722
|
+
switch (r.type) {
|
|
723
|
+
case "when-clause":
|
|
724
|
+
return w(r.operand, e) || w(r.value, e);
|
|
725
|
+
case "case-expression":
|
|
726
|
+
for (const t of r.clauses)
|
|
727
|
+
if (w(t, e))
|
|
728
|
+
return !0;
|
|
729
|
+
return !(r.format !== "simple" || !w(r.operand, e)) || !(r.else === null || !w(r.else, e));
|
|
730
|
+
case "parameter":
|
|
731
|
+
case "null":
|
|
732
|
+
case "boolean":
|
|
733
|
+
case "date":
|
|
734
|
+
case "timestamp":
|
|
735
|
+
case "time":
|
|
736
|
+
case "string":
|
|
737
|
+
case "number":
|
|
738
|
+
return !1;
|
|
739
|
+
case "expression-list":
|
|
740
|
+
for (const t of r.value)
|
|
741
|
+
if (w(t, e))
|
|
742
|
+
return !0;
|
|
743
|
+
return !1;
|
|
744
|
+
case "unary-expression":
|
|
745
|
+
return w(r.expr, e);
|
|
746
|
+
case "binary-expression":
|
|
747
|
+
return w(r.left, e) || w(r.right, e);
|
|
748
|
+
case "column-reference":
|
|
749
|
+
return e.toLowerCase() === r.column.toLowerCase();
|
|
750
|
+
case "function":
|
|
751
|
+
return w(r.args, e);
|
|
752
|
+
}
|
|
753
|
+
return !1;
|
|
754
|
+
}
|
|
755
|
+
function N(r) {
|
|
756
|
+
let e = "";
|
|
757
|
+
return e += r.period.toUpperCase(), e;
|
|
758
|
+
}
|
|
759
|
+
function Ee(r, e, t) {
|
|
760
|
+
let n = "";
|
|
761
|
+
return n = e.type === "interval-period" ? N(e) : N(e.start) + " TO " + N(e.end), "INTERVAL " + t + " " + r + " " + n;
|
|
762
|
+
}
|
|
763
|
+
function ve(r) {
|
|
764
|
+
return r = +r, isFinite(r) ? r - r % 1 || (r < 0 ? -0 : r === 0 ? r : 0) : r;
|
|
765
|
+
}
|
|
766
|
+
function A(r) {
|
|
767
|
+
let e = 0;
|
|
768
|
+
for (let t = 0; t < r.length; t++)
|
|
769
|
+
e += r[t];
|
|
770
|
+
return e / r.length;
|
|
771
|
+
}
|
|
772
|
+
function J(r) {
|
|
773
|
+
const e = A(r);
|
|
774
|
+
let t = 0;
|
|
775
|
+
for (let n = 0; n < r.length; n++)
|
|
776
|
+
t += (e - r[n]) ** 2;
|
|
777
|
+
return t / r.length;
|
|
778
|
+
}
|
|
779
|
+
function W(r) {
|
|
780
|
+
const e = A(r);
|
|
781
|
+
let t = 0;
|
|
782
|
+
for (let n = 0; n < r.length; n++)
|
|
783
|
+
t += (e - r[n]) ** 2;
|
|
784
|
+
return t / (r.length - 1);
|
|
785
|
+
}
|
|
786
|
+
function $(r) {
|
|
787
|
+
let e = 0;
|
|
788
|
+
for (let t = 0; t < r.length; t++)
|
|
789
|
+
e += r[t];
|
|
790
|
+
return e;
|
|
791
|
+
}
|
|
792
|
+
function Ae(r, e) {
|
|
793
|
+
const t = [], n = {}, a = [];
|
|
794
|
+
for (let s = 0; s < r.length; s++) {
|
|
795
|
+
if (r[s] !== void 0 && r[s] !== null) {
|
|
796
|
+
const i = r[s];
|
|
797
|
+
if (ee(i) || te(i))
|
|
798
|
+
n[i] === void 0 && (t.push(i), n[i] = 1);
|
|
799
|
+
else {
|
|
800
|
+
let l = !1;
|
|
801
|
+
for (let o = 0; o < a.length; o++)
|
|
802
|
+
ne(a[o], i) === !0 && (l = !0);
|
|
803
|
+
l === !1 && (a.push(i), t.push(i));
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
if (t.length >= e && e !== -1)
|
|
807
|
+
return t;
|
|
808
|
+
}
|
|
809
|
+
return t;
|
|
810
|
+
}
|
|
811
|
+
function Ve(r) {
|
|
812
|
+
switch (r.toLowerCase()) {
|
|
813
|
+
case "distinct":
|
|
814
|
+
return "distinct";
|
|
815
|
+
case "avg":
|
|
816
|
+
case "mean":
|
|
817
|
+
return "avg";
|
|
818
|
+
case "min":
|
|
819
|
+
return "min";
|
|
820
|
+
case "sum":
|
|
821
|
+
return "sum";
|
|
822
|
+
case "max":
|
|
823
|
+
return "max";
|
|
824
|
+
case "stdev":
|
|
825
|
+
case "stddev":
|
|
826
|
+
return "stddev";
|
|
827
|
+
case "var":
|
|
828
|
+
case "variance":
|
|
829
|
+
return "var";
|
|
830
|
+
case "count":
|
|
831
|
+
return "count";
|
|
832
|
+
}
|
|
833
|
+
return "";
|
|
834
|
+
}
|
|
835
|
+
function Je(r, e, t = 1e3) {
|
|
836
|
+
switch (r.toLowerCase()) {
|
|
837
|
+
case "distinct":
|
|
838
|
+
return Ae(e, t);
|
|
839
|
+
case "avg":
|
|
840
|
+
case "mean":
|
|
841
|
+
return A(e);
|
|
842
|
+
case "min":
|
|
843
|
+
return Math.min.apply(Math, e);
|
|
844
|
+
case "sum":
|
|
845
|
+
return $(e);
|
|
846
|
+
case "max":
|
|
847
|
+
return Math.max.apply(Math, e);
|
|
848
|
+
case "stdev":
|
|
849
|
+
case "stddev":
|
|
850
|
+
return Math.sqrt(J(e));
|
|
851
|
+
case "var":
|
|
852
|
+
case "variance":
|
|
853
|
+
return J(e);
|
|
854
|
+
case "count":
|
|
855
|
+
return e.length;
|
|
856
|
+
}
|
|
857
|
+
return 0;
|
|
858
|
+
}
|
|
859
|
+
async function Re(r, e, t) {
|
|
860
|
+
const n = await v(r, e, t, !0);
|
|
861
|
+
return n.length === 0 ? null : Math.min.apply(Math, n);
|
|
862
|
+
}
|
|
863
|
+
async function Ce(r, e, t) {
|
|
864
|
+
const n = await v(r, e, t, !0);
|
|
865
|
+
return n.length === 0 ? null : Math.max.apply(Math, n);
|
|
866
|
+
}
|
|
867
|
+
async function Ne(r, e, t) {
|
|
868
|
+
let n = "";
|
|
869
|
+
e && !De(e) && (n = be(e, r.fields));
|
|
870
|
+
const a = await v(r, e, t, !0);
|
|
871
|
+
if (a.length === 0)
|
|
872
|
+
return null;
|
|
873
|
+
const s = A(a);
|
|
874
|
+
return s === null ? s : n === "integer" ? ve(s) : s;
|
|
875
|
+
}
|
|
876
|
+
async function Pe(r, e, t) {
|
|
877
|
+
const n = await v(r, e, t, !0);
|
|
878
|
+
return n.length === 0 ? null : W(n);
|
|
879
|
+
}
|
|
880
|
+
async function ke(r, e, t) {
|
|
881
|
+
const n = await v(r, e, t, !0);
|
|
882
|
+
return n.length === 0 ? null : Math.sqrt(W(n));
|
|
883
|
+
}
|
|
884
|
+
async function Le(r, e, t) {
|
|
885
|
+
const n = await v(r, e, t, !0);
|
|
886
|
+
return n.length === 0 ? null : $(n);
|
|
887
|
+
}
|
|
888
|
+
async function xe(r, e) {
|
|
889
|
+
return r.iterator(e).count();
|
|
890
|
+
}
|
|
891
|
+
async function v(r, e, t, n = !1) {
|
|
892
|
+
const a = r.iterator(t), s = [], i = { ticker: 0 };
|
|
893
|
+
let l = await a.next();
|
|
894
|
+
for (; l !== null; ) {
|
|
895
|
+
if (i.ticker++, t.aborted)
|
|
896
|
+
throw new m(y.Cancelled);
|
|
897
|
+
i.ticker % 100 == 0 && (i.ticker = 0, await new Promise((u) => {
|
|
898
|
+
setTimeout(u, 0);
|
|
899
|
+
}));
|
|
900
|
+
const o = e == null ? void 0 : e.calculateValue(l);
|
|
901
|
+
o === null ? n === !1 && (s[s.length] = o) : s[s.length] = o instanceof z || o instanceof M ? o.toNumber() : o instanceof j ? o.toMilliseconds() : o, l = await a.next();
|
|
902
|
+
}
|
|
903
|
+
return s;
|
|
904
|
+
}
|
|
905
|
+
async function Oe(r, e, t = 1e3, n = null) {
|
|
906
|
+
const a = r.iterator(n), s = [], i = {}, l = { ticker: 0 };
|
|
907
|
+
let o = await a.next();
|
|
908
|
+
for (; o !== null; ) {
|
|
909
|
+
if (l.ticker++, n && n.aborted)
|
|
910
|
+
throw new m(y.Cancelled);
|
|
911
|
+
l.ticker % 100 == 0 && (l.ticker = 0, await new Promise((p) => {
|
|
912
|
+
setTimeout(p, 0);
|
|
913
|
+
}));
|
|
914
|
+
const u = e == null ? void 0 : e.calculateValue(o);
|
|
915
|
+
let c = u;
|
|
916
|
+
if (u instanceof z ? c = "!!DATEONLY!!-" + u.toString() : u instanceof j ? c = "!!TSOFFSETONLY!!-" + u.toString() : u instanceof M ? c = "!!TIMEONLY!!-" + u.toString() : u instanceof Date && (c = "!!DATE!!-" + u.toString()), u != null && i[c] === void 0 && (s.push(u), i[c] = 1), s.length >= t && t !== -1)
|
|
917
|
+
return s;
|
|
918
|
+
o = await a.next();
|
|
919
|
+
}
|
|
920
|
+
return s;
|
|
921
|
+
}
|
|
922
|
+
class _ {
|
|
923
|
+
constructor(e) {
|
|
924
|
+
this.recentlyUsedQueries = null, this.featureSetQueryInterceptor = null, this._idstates = [], this._parent = null, this._wset = null, this._mainSetInUse = null, this._maxProcessing = 200, this._maxQuery = 500, this._totalCount = -1, this._databaseType = h.NotEvaluated, this._databaseTypeProbed = null, this.declaredRootClass = "esri.arcade.featureset.support.FeatureSet", this._featureCache = [], this.typeIdField = null, this.types = null, this.subtypeField = null, this.subtypes = null, this.fields = null, this.geometryType = "", this.objectIdField = "", this.globalIdField = "", this.spatialReference = null, this.hasM = !1, this.hasZ = !1, this._transparent = !1, this.loaded = !1, this._loadPromise = null, this._fieldsIndex = null, this.fsetInfo = null, e != null && e.lrucache && (this.recentlyUsedQueries = e.lrucache), e != null && e.interceptor && (this.featureSetQueryInterceptor = e.interceptor);
|
|
925
|
+
}
|
|
926
|
+
optimisePagingFeatureQueries(e) {
|
|
927
|
+
this._parent && this._parent.optimisePagingFeatureQueries(e);
|
|
928
|
+
}
|
|
929
|
+
_hasMemorySource() {
|
|
930
|
+
return !0;
|
|
931
|
+
}
|
|
932
|
+
prop(e, t) {
|
|
933
|
+
return t === void 0 ? this[e] : (this[e] !== void 0 && (this[e] = t), this);
|
|
934
|
+
}
|
|
935
|
+
end() {
|
|
936
|
+
return this._parent !== null && this._parent._transparent === !0 ? this._parent.end() : this._parent;
|
|
937
|
+
}
|
|
938
|
+
_ensureLoaded() {
|
|
939
|
+
return this.load();
|
|
940
|
+
}
|
|
941
|
+
load() {
|
|
942
|
+
return this._loadPromise === null && (this._loadPromise = this.loadImpl()), this._loadPromise;
|
|
943
|
+
}
|
|
944
|
+
async loadImpl() {
|
|
945
|
+
var e, t;
|
|
946
|
+
return ((e = this._parent) == null ? void 0 : e.loaded) === !0 ? (this._initialiseFeatureSet(), this) : (await ((t = this._parent) == null ? void 0 : t.load()), this._initialiseFeatureSet(), this);
|
|
947
|
+
}
|
|
948
|
+
_initialiseFeatureSet() {
|
|
949
|
+
this._parent !== null ? (this.fields = this._parent.fields.slice(0), 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.subtypeField = this._parent.subtypeField, this.subtypes = this._parent.subtypes) : (this.fields = [], this.typeIdField = "", this.subtypeField = "", this.objectIdField = "", this.globalIdField = "", this.spatialReference = new oe({ wkid: 4326 }), this.geometryType = ae.point);
|
|
950
|
+
}
|
|
951
|
+
getField(e, t) {
|
|
952
|
+
let n;
|
|
953
|
+
return (t = t || this.fields) && (e = e.toLowerCase(), t.some((a) => (a && a.name.toLowerCase() === e && (n = a), !!n))), n;
|
|
954
|
+
}
|
|
955
|
+
getFieldsIndex() {
|
|
956
|
+
return this._fieldsIndex === null && (this._fieldsIndex = we.fromLayer({ timeInfo: this.timeInfo, editFieldsInfo: this.editFieldsInfo, dateFieldsTimeZone: this.dateFieldsTimeZone, datesInUnknownTimezone: this.datesInUnknownTimezone, fields: this.fields })), this._fieldsIndex;
|
|
957
|
+
}
|
|
958
|
+
_maxProcessingRate() {
|
|
959
|
+
return this._parent !== null ? Math.min(this._maxProcessing, this._parent._maxProcessingRate()) : Math.min(this._maxProcessing, this._maxQueryRate());
|
|
960
|
+
}
|
|
961
|
+
_maxQueryRate() {
|
|
962
|
+
return this._parent !== null ? Math.max(this._maxQuery, this._parent._maxQueryRate()) : this._maxQuery;
|
|
963
|
+
}
|
|
964
|
+
_checkCancelled(e) {
|
|
965
|
+
if (e != null && e.aborted)
|
|
966
|
+
throw new m(y.Cancelled);
|
|
967
|
+
}
|
|
968
|
+
nativeCapabilities() {
|
|
969
|
+
return this._parent.nativeCapabilities();
|
|
970
|
+
}
|
|
971
|
+
async _canDoAggregates(e, t, n, a, s) {
|
|
972
|
+
return this._parent !== null && this._parent._canDoAggregates(e, t, n, a, s);
|
|
973
|
+
}
|
|
974
|
+
async _getAggregatePagesDataSourceDefinition(e, t, n, a, s, i, l) {
|
|
975
|
+
if (this._parent === null)
|
|
976
|
+
throw new m(y.NeverReach);
|
|
977
|
+
return this._parent._getAggregatePagesDataSourceDefinition(e, t, n, a, s, i, l);
|
|
978
|
+
}
|
|
979
|
+
async _getAgregagtePhysicalPage(e, t, n) {
|
|
980
|
+
if (this._parent === null)
|
|
981
|
+
throw new m(y.NeverReach);
|
|
982
|
+
return this._parent._getAgregagtePhysicalPage(e, t, n);
|
|
983
|
+
}
|
|
984
|
+
async databaseType() {
|
|
985
|
+
if (this._databaseType === h.NotEvaluated) {
|
|
986
|
+
if (E.applicationCache !== null) {
|
|
987
|
+
const e = E.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());
|
|
988
|
+
if (e !== null)
|
|
989
|
+
return e;
|
|
990
|
+
}
|
|
991
|
+
if (this._databaseTypeProbed !== null)
|
|
992
|
+
return this._databaseTypeProbed;
|
|
993
|
+
try {
|
|
994
|
+
this._databaseTypeProbed = this._getDatabaseTypeImpl(), E.applicationCache !== null && E.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(), this._databaseTypeProbed);
|
|
995
|
+
} catch (e) {
|
|
996
|
+
throw E.applicationCache !== null && E.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()), e;
|
|
997
|
+
}
|
|
998
|
+
return this._databaseTypeProbed;
|
|
999
|
+
}
|
|
1000
|
+
return this._databaseType;
|
|
1001
|
+
}
|
|
1002
|
+
async _getDatabaseTypeImpl() {
|
|
1003
|
+
const e = [{ thetype: h.SqlServer, testwhere: "(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0" }, { thetype: h.Oracle, testwhere: "(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0" }, { thetype: h.StandardisedNoInterval, testwhere: "(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0" }];
|
|
1004
|
+
for (const t of e)
|
|
1005
|
+
if (await this._runDatabaseProbe(t.testwhere) === !0)
|
|
1006
|
+
return t.thetype;
|
|
1007
|
+
return h.StandardisedNoInterval;
|
|
1008
|
+
}
|
|
1009
|
+
_cacheableFeatureSetSourceKey() {
|
|
1010
|
+
return "MUSTBESET";
|
|
1011
|
+
}
|
|
1012
|
+
async _runDatabaseProbe(e) {
|
|
1013
|
+
if (this._parent !== null)
|
|
1014
|
+
return this._parent._runDatabaseProbe(e);
|
|
1015
|
+
throw new m(y.NotImplemented);
|
|
1016
|
+
}
|
|
1017
|
+
isTable() {
|
|
1018
|
+
var e;
|
|
1019
|
+
return ((e = this._parent) == null ? void 0 : e.isTable()) ?? !1;
|
|
1020
|
+
}
|
|
1021
|
+
_featureFromCache(e) {
|
|
1022
|
+
if (this._featureCache[e] !== void 0)
|
|
1023
|
+
return this._featureCache[e];
|
|
1024
|
+
}
|
|
1025
|
+
_isInFeatureSet(e) {
|
|
1026
|
+
return F.Unknown;
|
|
1027
|
+
}
|
|
1028
|
+
_getSet(e) {
|
|
1029
|
+
throw new m(y.NotImplemented);
|
|
1030
|
+
}
|
|
1031
|
+
async _getFeature(e, t, n) {
|
|
1032
|
+
if (this._checkCancelled(n), this._featureFromCache(t) !== void 0)
|
|
1033
|
+
return this._featureFromCache(t);
|
|
1034
|
+
if (await this._getFeatures(e, t, this._maxProcessingRate(), n), this._checkCancelled(n), this._featureFromCache(t) !== void 0)
|
|
1035
|
+
return this._featureFromCache(t);
|
|
1036
|
+
throw new m(y.MissingFeatures);
|
|
1037
|
+
}
|
|
1038
|
+
async _getFeatureBatch(e, t) {
|
|
1039
|
+
this._checkCancelled(t);
|
|
1040
|
+
const n = new D([], e, !1, null), a = [];
|
|
1041
|
+
await this._getFeatures(n, -1, e.length, t), this._checkCancelled(t);
|
|
1042
|
+
for (const s of e)
|
|
1043
|
+
this._featureFromCache(s) !== void 0 && a.push(this._featureFromCache(s));
|
|
1044
|
+
return a;
|
|
1045
|
+
}
|
|
1046
|
+
async _getFeatures(e, t, n, a) {
|
|
1047
|
+
return "success";
|
|
1048
|
+
}
|
|
1049
|
+
_getFilteredSet(e, t, n, a, s) {
|
|
1050
|
+
throw new m(y.NotImplemented);
|
|
1051
|
+
}
|
|
1052
|
+
async _refineSetBlock(e, t, n) {
|
|
1053
|
+
if (this._checkIfNeedToExpandCandidatePage(e, this._maxQueryRate()) === !0)
|
|
1054
|
+
return await this._expandPagedSet(e, this._maxQueryRate(), 0, 0, n), this._refineSetBlock(e, t, n);
|
|
1055
|
+
this._checkCancelled(n);
|
|
1056
|
+
const a = e._candidates.length;
|
|
1057
|
+
this._refineKnowns(e, t);
|
|
1058
|
+
let s = a - e._candidates.length;
|
|
1059
|
+
if (e._candidates.length === 0 || s >= t)
|
|
1060
|
+
return e;
|
|
1061
|
+
if (await this._refineIfParentKnown(e, t - s, n), this._checkCancelled(n), this._refineKnowns(e, t - s), s = a - e._candidates.length, s < t && e._candidates.length > 0) {
|
|
1062
|
+
const i = t - s, l = this._prepareFetchAndRefineSet(e._candidates);
|
|
1063
|
+
return await this._fetchAndRefineFeatures(l, l.length > i ? i : e._candidates.length, n), this._checkCancelled(n), this._refineKnowns(e, t - s), e;
|
|
1064
|
+
}
|
|
1065
|
+
return e;
|
|
1066
|
+
}
|
|
1067
|
+
_fetchAndRefineFeatures(e, t, n) {
|
|
1068
|
+
return null;
|
|
1069
|
+
}
|
|
1070
|
+
_prepareFetchAndRefineSet(e) {
|
|
1071
|
+
const t = [];
|
|
1072
|
+
for (let n = 0; n < e.length; n++)
|
|
1073
|
+
this._isPhysicalFeature(e[n]) && t.push(e[n]);
|
|
1074
|
+
return t;
|
|
1075
|
+
}
|
|
1076
|
+
_isPhysicalFeature(e) {
|
|
1077
|
+
return this._parent === null || this._parent._isPhysicalFeature(e);
|
|
1078
|
+
}
|
|
1079
|
+
_refineKnowns(e, t) {
|
|
1080
|
+
let n = 0, a = null;
|
|
1081
|
+
const s = [];
|
|
1082
|
+
t = this._maxQueryRate();
|
|
1083
|
+
for (let i = 0; i < e._candidates.length && e._candidates[i] !== "GETPAGES"; i++) {
|
|
1084
|
+
let l = !1;
|
|
1085
|
+
const o = this._candidateIdTransform(e._candidates[i]);
|
|
1086
|
+
o !== e._candidates[i] && (l = !0);
|
|
1087
|
+
const u = this._isInFeatureSet(o);
|
|
1088
|
+
if (u === F.InFeatureSet)
|
|
1089
|
+
l === !0 ? e._known.includes(o) || (e._known.push(o), n += 1) : (e._known.push(e._candidates[i]), n += 1), a === null ? a = { start: i, end: i } : a.end === i - 1 ? a.end = i : (s.push(a), a = { start: i, end: i });
|
|
1090
|
+
else if (u === F.NotInFeatureSet)
|
|
1091
|
+
a === null ? a = { start: i, end: i } : a.end === i - 1 ? a.end = i : (s.push(a), a = { start: i, end: i }), n += 1;
|
|
1092
|
+
else if (u === F.Unknown && (n += 1, e._ordered === !0))
|
|
1093
|
+
break;
|
|
1094
|
+
if (n >= t)
|
|
1095
|
+
break;
|
|
1096
|
+
}
|
|
1097
|
+
a !== null && s.push(a);
|
|
1098
|
+
for (let i = s.length - 1; i >= 0; i--)
|
|
1099
|
+
e._candidates.splice(s[i].start, s[i].end - s[i].start + 1);
|
|
1100
|
+
}
|
|
1101
|
+
_refineIfParentKnown(e, t, n) {
|
|
1102
|
+
const a = new D([], [], e._ordered, null);
|
|
1103
|
+
return a._candidates = e._candidates.slice(0), this._parent._refineSetBlock(a, t, n);
|
|
1104
|
+
}
|
|
1105
|
+
_candidateIdTransform(e) {
|
|
1106
|
+
return this._parent._candidateIdTransform(e);
|
|
1107
|
+
}
|
|
1108
|
+
_checkIfNeedToExpandKnownPage(e, t) {
|
|
1109
|
+
if (e.pagesDefinition === null)
|
|
1110
|
+
return !1;
|
|
1111
|
+
let n = 0;
|
|
1112
|
+
for (let a = e._lastFetchedIndex; a < e._known.length; a++) {
|
|
1113
|
+
if (e._known[a] === "GETPAGES")
|
|
1114
|
+
return !0;
|
|
1115
|
+
if (this._featureCache[e._known[a]] === void 0 && (n += 1, n >= t))
|
|
1116
|
+
break;
|
|
1117
|
+
}
|
|
1118
|
+
return !1;
|
|
1119
|
+
}
|
|
1120
|
+
_checkIfNeedToExpandCandidatePage(e, t) {
|
|
1121
|
+
if (e.pagesDefinition === null)
|
|
1122
|
+
return !1;
|
|
1123
|
+
let n = 0;
|
|
1124
|
+
for (let a = 0; a < e._candidates.length; a++) {
|
|
1125
|
+
if (e._candidates[a] === "GETPAGES")
|
|
1126
|
+
return !0;
|
|
1127
|
+
if (n += 1, n >= t)
|
|
1128
|
+
break;
|
|
1129
|
+
}
|
|
1130
|
+
return !1;
|
|
1131
|
+
}
|
|
1132
|
+
async _expandPagedSet(e, t, n, a, s) {
|
|
1133
|
+
if (this._parent === null)
|
|
1134
|
+
throw new m(y.NotImplemented);
|
|
1135
|
+
return this._parent._expandPagedSet(e, t, n, a, s);
|
|
1136
|
+
}
|
|
1137
|
+
async _expandPagedSetFeatureSet(e, t, n, a, s) {
|
|
1138
|
+
if (e._known.length > 0 && e._known[e._known.length - 1] === "GETPAGES" && (a = 1), a === 0 && e._candidates.length > 0 && e._candidates[e._candidates.length - 1] === "GETPAGES" && (a = 2), a === 0)
|
|
1139
|
+
return "finished";
|
|
1140
|
+
const i = await this._getPage(e, a, s);
|
|
1141
|
+
return n + i < t ? this._expandPagedSet(e, t, n + i, 0, s) : "success";
|
|
1142
|
+
}
|
|
1143
|
+
async _getPage(e, t, n) {
|
|
1144
|
+
const a = t === 1 ? e._known : e._candidates;
|
|
1145
|
+
if (e.pagesDefinition.internal.set.length > e.pagesDefinition.resultOffset || e.pagesDefinition.internal.fullyResolved === !0) {
|
|
1146
|
+
a.length = a.length - 1;
|
|
1147
|
+
let s = 0;
|
|
1148
|
+
for (let l = 0; l < e.pagesDefinition.resultRecordCount && !(e.pagesDefinition.resultOffset + l >= e.pagesDefinition.internal.set.length); l++)
|
|
1149
|
+
a[a.length] = e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset + l], s++;
|
|
1150
|
+
e.pagesDefinition.resultOffset += s;
|
|
1151
|
+
let i = !1;
|
|
1152
|
+
return e.pagesDefinition.internal.fullyResolved === !0 && e.pagesDefinition.internal.set.length <= e.pagesDefinition.resultOffset && (i = !0), i === !1 && a.push("GETPAGES"), s;
|
|
1153
|
+
}
|
|
1154
|
+
return await this._getPhysicalPage(e, t, n), this._getPage(e, t, n);
|
|
1155
|
+
}
|
|
1156
|
+
_getPhysicalPage(e, t, n) {
|
|
1157
|
+
return null;
|
|
1158
|
+
}
|
|
1159
|
+
_clonePageDefinition(e) {
|
|
1160
|
+
return this._parent === null ? null : this._parent._clonePageDefinition(e);
|
|
1161
|
+
}
|
|
1162
|
+
_first(e) {
|
|
1163
|
+
return this.iterator(e).next();
|
|
1164
|
+
}
|
|
1165
|
+
first(e) {
|
|
1166
|
+
return this._first(e);
|
|
1167
|
+
}
|
|
1168
|
+
async calculateStatistic(e, t, n, a) {
|
|
1169
|
+
await this._ensureLoaded();
|
|
1170
|
+
let s = await this._stat(e, t, "", null, null, n, a);
|
|
1171
|
+
return s.calculated === !1 && (s = await this._manualStat(e, t, n, a)), s.result;
|
|
1172
|
+
}
|
|
1173
|
+
async _manualStat(e, t, n, a) {
|
|
1174
|
+
let s = null;
|
|
1175
|
+
switch (e.toLowerCase()) {
|
|
1176
|
+
case "count":
|
|
1177
|
+
return s = await xe(this, a), { calculated: !0, result: s };
|
|
1178
|
+
case "distinct":
|
|
1179
|
+
return s = await Oe(this, t, n, a), { calculated: !0, result: s };
|
|
1180
|
+
case "avg":
|
|
1181
|
+
case "mean":
|
|
1182
|
+
return s = await Ne(this, t, a), { calculated: !0, result: s };
|
|
1183
|
+
case "stdev":
|
|
1184
|
+
return s = await ke(this, t, a), { calculated: !0, result: s };
|
|
1185
|
+
case "variance":
|
|
1186
|
+
return s = await Pe(this, t, a), { calculated: !0, result: s };
|
|
1187
|
+
case "sum":
|
|
1188
|
+
return s = await Le(this, t, a), { calculated: !0, result: s };
|
|
1189
|
+
case "min":
|
|
1190
|
+
return s = await Re(this, t, a), { calculated: !0, result: s };
|
|
1191
|
+
case "max":
|
|
1192
|
+
return s = await Ce(this, t, a), { calculated: !0, result: s };
|
|
1193
|
+
default:
|
|
1194
|
+
return { calculated: !0, result: 0 };
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
async _stat(e, t, n, a, s, i, l) {
|
|
1198
|
+
const o = await this._parent._stat(e, t, n, a, s, i, l);
|
|
1199
|
+
return o.calculated === !1 ? s === null && n === "" && a === null ? this._manualStat(e, t, i, l) : { calculated: !1 } : o;
|
|
1200
|
+
}
|
|
1201
|
+
_unionAllGeomSelf(e) {
|
|
1202
|
+
const t = this.iterator(this._defaultTracker(e)), n = [];
|
|
1203
|
+
return new Promise((a, s) => {
|
|
1204
|
+
this._unionShapeInBatches(n, t, a, s);
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1207
|
+
_unionAllGeom(e) {
|
|
1208
|
+
return new Promise((t, n) => {
|
|
1209
|
+
const a = this.iterator(this._defaultTracker(e)), s = [];
|
|
1210
|
+
this._unionShapeInBatches(s, a, t, n);
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
_unionShapeInBatches(e, t, n, a) {
|
|
1214
|
+
t.next().then((s) => {
|
|
1215
|
+
try {
|
|
1216
|
+
s !== null && s.geometry !== null && e.push(s.geometry), e.length > 30 || s === null && e.length > 1 ? ue(e).then((i) => {
|
|
1217
|
+
try {
|
|
1218
|
+
s === null ? n(i) : (e = [i], this._unionShapeInBatches(e, t, n, a));
|
|
1219
|
+
} catch (l) {
|
|
1220
|
+
a(l);
|
|
1221
|
+
}
|
|
1222
|
+
}, a) : s === null ? e.length === 1 ? n(e[0]) : n(null) : this._unionShapeInBatches(e, t, n, a);
|
|
1223
|
+
} catch (i) {
|
|
1224
|
+
a(i);
|
|
1225
|
+
}
|
|
1226
|
+
}, a);
|
|
1227
|
+
}
|
|
1228
|
+
iterator(e) {
|
|
1229
|
+
return new Te(this, e);
|
|
1230
|
+
}
|
|
1231
|
+
intersection(e, t = !1) {
|
|
1232
|
+
return _._featuresetFunctions.intersection.bind(this)(e, t);
|
|
1233
|
+
}
|
|
1234
|
+
difference(e, t = !1, n = !0) {
|
|
1235
|
+
return _._featuresetFunctions.difference.bind(this)(e, t, n);
|
|
1236
|
+
}
|
|
1237
|
+
symmetricDifference(e, t = !1, n = !0) {
|
|
1238
|
+
return _._featuresetFunctions.symmetricDifference.bind(this)(e, t, n);
|
|
1239
|
+
}
|
|
1240
|
+
morphShape(e, t, n = "unknown", a = null) {
|
|
1241
|
+
return _._featuresetFunctions.morphShape.bind(this)(e, t, n, a);
|
|
1242
|
+
}
|
|
1243
|
+
morphShapeAndAttributes(e, t, n = "unknown") {
|
|
1244
|
+
return _._featuresetFunctions.morphShapeAndAttributes.bind(this)(e, t, n);
|
|
1245
|
+
}
|
|
1246
|
+
union(e, t = !1) {
|
|
1247
|
+
return _._featuresetFunctions.union.bind(this)(e, t);
|
|
1248
|
+
}
|
|
1249
|
+
intersects(e) {
|
|
1250
|
+
return _._featuresetFunctions.intersects.bind(this)(e);
|
|
1251
|
+
}
|
|
1252
|
+
envelopeIntersects(e) {
|
|
1253
|
+
return _._featuresetFunctions.envelopeIntersects.bind(this)(e);
|
|
1254
|
+
}
|
|
1255
|
+
contains(e) {
|
|
1256
|
+
return _._featuresetFunctions.contains.bind(this)(e);
|
|
1257
|
+
}
|
|
1258
|
+
overlaps(e) {
|
|
1259
|
+
return _._featuresetFunctions.overlaps.bind(this)(e);
|
|
1260
|
+
}
|
|
1261
|
+
relate(e, t) {
|
|
1262
|
+
return _._featuresetFunctions.relate.bind(this)(e, t);
|
|
1263
|
+
}
|
|
1264
|
+
within(e) {
|
|
1265
|
+
return _._featuresetFunctions.within.bind(this)(e);
|
|
1266
|
+
}
|
|
1267
|
+
touches(e) {
|
|
1268
|
+
return _._featuresetFunctions.touches.bind(this)(e);
|
|
1269
|
+
}
|
|
1270
|
+
top(e) {
|
|
1271
|
+
return _._featuresetFunctions.top.bind(this)(e);
|
|
1272
|
+
}
|
|
1273
|
+
crosses(e) {
|
|
1274
|
+
return _._featuresetFunctions.crosses.bind(this)(e);
|
|
1275
|
+
}
|
|
1276
|
+
buffer(e, t, n, a = !0) {
|
|
1277
|
+
return _._featuresetFunctions.buffer.bind(this)(e, t, n, a);
|
|
1278
|
+
}
|
|
1279
|
+
filter(e, t = null) {
|
|
1280
|
+
return _._featuresetFunctions.filter.bind(this)(e, t);
|
|
1281
|
+
}
|
|
1282
|
+
orderBy(e) {
|
|
1283
|
+
return _._featuresetFunctions.orderBy.bind(this)(e);
|
|
1284
|
+
}
|
|
1285
|
+
dissolve(e, t) {
|
|
1286
|
+
return _._featuresetFunctions.dissolve.bind(this)(e, t);
|
|
1287
|
+
}
|
|
1288
|
+
groupby(e, t) {
|
|
1289
|
+
return _._featuresetFunctions.groupby.bind(this)(e, t);
|
|
1290
|
+
}
|
|
1291
|
+
reduce(e, t = null, n) {
|
|
1292
|
+
return new Promise((a, s) => {
|
|
1293
|
+
this._reduceImpl(this.iterator(this._defaultTracker(n)), e, t, 0, a, s, 0);
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
_reduceImpl(e, t, n, a, s, i, l) {
|
|
1297
|
+
try {
|
|
1298
|
+
if (++l > 1e3)
|
|
1299
|
+
return void setTimeout(() => {
|
|
1300
|
+
l = 0, this._reduceImpl(e, t, n, a, s, i, l);
|
|
1301
|
+
});
|
|
1302
|
+
e.next().then((o) => {
|
|
1303
|
+
try {
|
|
1304
|
+
if (o === null)
|
|
1305
|
+
s(n);
|
|
1306
|
+
else {
|
|
1307
|
+
const u = t(n, o, a, this);
|
|
1308
|
+
Z(u) ? u.then((c) => {
|
|
1309
|
+
this._reduceImpl(e, t, c, a + 1, s, i, l);
|
|
1310
|
+
}, i) : this._reduceImpl(e, t, u, a + 1, s, i, l);
|
|
1311
|
+
}
|
|
1312
|
+
} catch (u) {
|
|
1313
|
+
i(u);
|
|
1314
|
+
}
|
|
1315
|
+
}, i);
|
|
1316
|
+
} catch (o) {
|
|
1317
|
+
i(o);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
removeField(e) {
|
|
1321
|
+
return _._featuresetFunctions.removeField.bind(this)(e);
|
|
1322
|
+
}
|
|
1323
|
+
addField(e, t, n = null) {
|
|
1324
|
+
return _._featuresetFunctions.addField.bind(this)(e, t, n);
|
|
1325
|
+
}
|
|
1326
|
+
sumArea(e, t = !1, n) {
|
|
1327
|
+
const a = re(e);
|
|
1328
|
+
return this.reduce((s, i) => i.geometry === null ? 0 : t ? ce(i.geometry, a).then((l) => s + l) : he(i.geometry, a).then((l) => s + l), 0, n);
|
|
1329
|
+
}
|
|
1330
|
+
sumLength(e, t = !1, n) {
|
|
1331
|
+
const a = se(e);
|
|
1332
|
+
return this.reduce((s, i) => i.geometry === null ? 0 : t ? de(i.geometry, a).then((l) => s + l) : pe(i.geometry, a).then((l) => s + l), 0, n);
|
|
1333
|
+
}
|
|
1334
|
+
_substituteVars(e, t) {
|
|
1335
|
+
if (t !== null) {
|
|
1336
|
+
const n = {};
|
|
1337
|
+
for (const a in t)
|
|
1338
|
+
n[a.toLowerCase()] = t[a];
|
|
1339
|
+
e.parameters = n;
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
async distinct(e, t = 1e3, n = null, a) {
|
|
1343
|
+
await this.load();
|
|
1344
|
+
const s = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
|
|
1345
|
+
return this._substituteVars(s, n), this.calculateStatistic("distinct", s, t, this._defaultTracker(a));
|
|
1346
|
+
}
|
|
1347
|
+
async min(e, t = null, n) {
|
|
1348
|
+
await this.load();
|
|
1349
|
+
const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
|
|
1350
|
+
return this._substituteVars(a, t), this.calculateStatistic("min", a, -1, this._defaultTracker(n));
|
|
1351
|
+
}
|
|
1352
|
+
async max(e, t = null, n) {
|
|
1353
|
+
await this.load();
|
|
1354
|
+
const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
|
|
1355
|
+
return this._substituteVars(a, t), this.calculateStatistic("max", a, -1, this._defaultTracker(n));
|
|
1356
|
+
}
|
|
1357
|
+
async avg(e, t = null, n) {
|
|
1358
|
+
await this.load();
|
|
1359
|
+
const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
|
|
1360
|
+
return this._substituteVars(a, t), this.calculateStatistic("avg", a, -1, this._defaultTracker(n));
|
|
1361
|
+
}
|
|
1362
|
+
async sum(e, t = null, n) {
|
|
1363
|
+
await this.load();
|
|
1364
|
+
const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
|
|
1365
|
+
return this._substituteVars(a, t), this.calculateStatistic("sum", a, -1, this._defaultTracker(n));
|
|
1366
|
+
}
|
|
1367
|
+
async stdev(e, t = null, n) {
|
|
1368
|
+
await this.load();
|
|
1369
|
+
const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
|
|
1370
|
+
return this._substituteVars(a, t), this.calculateStatistic("stdev", a, -1, this._defaultTracker(n));
|
|
1371
|
+
}
|
|
1372
|
+
async variance(e, t = null, n) {
|
|
1373
|
+
await this.load();
|
|
1374
|
+
const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
|
|
1375
|
+
return this._substituteVars(a, t), this.calculateStatistic("variance", a, -1, this._defaultTracker(n));
|
|
1376
|
+
}
|
|
1377
|
+
async count(e) {
|
|
1378
|
+
return await this.load(), this.calculateStatistic("count", T.create("1", this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC), -1, this._defaultTracker(e));
|
|
1379
|
+
}
|
|
1380
|
+
_defaultTracker(e) {
|
|
1381
|
+
return e ?? { aborted: !1 };
|
|
1382
|
+
}
|
|
1383
|
+
forEach(e, t) {
|
|
1384
|
+
return new Promise((n, a) => {
|
|
1385
|
+
this._forEachImpl(this.iterator(this._defaultTracker(t)), e, this, n, a, 0);
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
_forEachImpl(e, t, n, a, s, i) {
|
|
1389
|
+
try {
|
|
1390
|
+
if (++i > 1e3)
|
|
1391
|
+
return void setTimeout(() => {
|
|
1392
|
+
i = 0, this._forEachImpl(e, t, n, a, s, i);
|
|
1393
|
+
}, 0);
|
|
1394
|
+
e.next().then((l) => {
|
|
1395
|
+
try {
|
|
1396
|
+
if (l === null)
|
|
1397
|
+
a(n);
|
|
1398
|
+
else {
|
|
1399
|
+
const o = t(l);
|
|
1400
|
+
o == null ? this._forEachImpl(e, t, n, a, s, i) : Z(o) ? o.then(() => {
|
|
1401
|
+
try {
|
|
1402
|
+
this._forEachImpl(e, t, n, a, s, i);
|
|
1403
|
+
} catch (u) {
|
|
1404
|
+
s(u);
|
|
1405
|
+
}
|
|
1406
|
+
}, s) : this._forEachImpl(e, t, n, a, s, i);
|
|
1407
|
+
}
|
|
1408
|
+
} catch (o) {
|
|
1409
|
+
s(o);
|
|
1410
|
+
}
|
|
1411
|
+
}, s);
|
|
1412
|
+
} catch (l) {
|
|
1413
|
+
s(l);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
convertToJSON(e) {
|
|
1417
|
+
const t = { layerDefinition: { geometryType: this.geometryType, fields: [] }, featureSet: { features: [], geometryType: this.geometryType } };
|
|
1418
|
+
for (let n = 0; n < this.fields.length; n++)
|
|
1419
|
+
t.layerDefinition.fields.push(G(this.fields[n]));
|
|
1420
|
+
return this.reduce((n, a) => {
|
|
1421
|
+
var i;
|
|
1422
|
+
const s = { geometry: (i = a.geometry) == null ? void 0 : i.toJSON(), attributes: {} };
|
|
1423
|
+
for (const l in a.attributes)
|
|
1424
|
+
s.attributes[l] = a.attributes[l];
|
|
1425
|
+
return t.featureSet.features.push(s), 1;
|
|
1426
|
+
}, 0, e).then(() => t);
|
|
1427
|
+
}
|
|
1428
|
+
castToText(e = !1) {
|
|
1429
|
+
return "object, FeatureSet";
|
|
1430
|
+
}
|
|
1431
|
+
queryAttachments(e, t, n, a, s) {
|
|
1432
|
+
return this._parent.queryAttachments(e, t, n, a, s);
|
|
1433
|
+
}
|
|
1434
|
+
serviceUrl() {
|
|
1435
|
+
return this._parent.serviceUrl();
|
|
1436
|
+
}
|
|
1437
|
+
subtypeMetaData() {
|
|
1438
|
+
return this.subtypeField && this.subtypes ? { subtypeField: this.subtypeField, subtypes: this.subtypes ? this.subtypes.map((e) => ({ name: e.name, code: e.code })) : [] } : this.typeIdField ? { subtypeField: this.typeIdField, subtypes: this.types ? this.types.map((e) => ({ name: e.name, code: e.id })) : [] } : null;
|
|
1439
|
+
}
|
|
1440
|
+
relationshipMetaData() {
|
|
1441
|
+
return this._parent.relationshipMetaData();
|
|
1442
|
+
}
|
|
1443
|
+
get gdbVersion() {
|
|
1444
|
+
return this._parent ? this._parent.gdbVersion : "";
|
|
1445
|
+
}
|
|
1446
|
+
schema() {
|
|
1447
|
+
const e = [];
|
|
1448
|
+
for (const t of this.fields)
|
|
1449
|
+
e.push(G(t));
|
|
1450
|
+
return { objectIdField: this.objectIdField, globalIdField: this.globalIdField, geometryType: B[this.geometryType] === void 0 ? "esriGeometryNull" : B[this.geometryType], fields: e };
|
|
1451
|
+
}
|
|
1452
|
+
async convertToText(e, t) {
|
|
1453
|
+
if (e === "schema")
|
|
1454
|
+
return await this._ensureLoaded(), JSON.stringify(this.schema());
|
|
1455
|
+
if (e === "featureset") {
|
|
1456
|
+
await this._ensureLoaded();
|
|
1457
|
+
const n = [];
|
|
1458
|
+
await this.reduce((s, i) => {
|
|
1459
|
+
const l = { geometry: i.geometry ? i.geometry.toJSON() : null, attributes: i.attributes };
|
|
1460
|
+
return l.geometry !== null && l.geometry.spatialReference && delete l.geometry.spatialReference, n.push(l), 1;
|
|
1461
|
+
}, 0, t);
|
|
1462
|
+
const a = this.schema();
|
|
1463
|
+
return a.features = n, a.spatialReference = this.spatialReference.toJSON(), JSON.stringify(a);
|
|
1464
|
+
}
|
|
1465
|
+
return this.castToText();
|
|
1466
|
+
}
|
|
1467
|
+
getFeatureByObjectId(e, t) {
|
|
1468
|
+
return this._parent.getFeatureByObjectId(e, t);
|
|
1469
|
+
}
|
|
1470
|
+
getOwningSystemUrl() {
|
|
1471
|
+
return this._parent.getOwningSystemUrl();
|
|
1472
|
+
}
|
|
1473
|
+
getIdentityUser() {
|
|
1474
|
+
return this._parent.getIdentityUser();
|
|
1475
|
+
}
|
|
1476
|
+
getRootFeatureSet() {
|
|
1477
|
+
return this._parent !== null ? this._parent.getRootFeatureSet() : this;
|
|
1478
|
+
}
|
|
1479
|
+
getDataSourceFeatureSet() {
|
|
1480
|
+
return this._parent !== null ? this._parent.getDataSourceFeatureSet() : this;
|
|
1481
|
+
}
|
|
1482
|
+
castAsJson(e = null) {
|
|
1483
|
+
return (e == null ? void 0 : e.featureset) === "keeptype" ? this : (e == null ? void 0 : e.featureset) === "none" ? null : { type: "FeatureSet" };
|
|
1484
|
+
}
|
|
1485
|
+
async castAsJsonAsync(e = null, t = null) {
|
|
1486
|
+
var s;
|
|
1487
|
+
if ((t == null ? void 0 : t.featureset) === "keeptype")
|
|
1488
|
+
return this;
|
|
1489
|
+
if ((t == null ? void 0 : t.featureset) === "schema")
|
|
1490
|
+
return await this._ensureLoaded(), JSON.parse(JSON.stringify(this.schema()));
|
|
1491
|
+
if ((t == null ? void 0 : t.featureset) === "none")
|
|
1492
|
+
return null;
|
|
1493
|
+
await this._ensureLoaded();
|
|
1494
|
+
const n = [];
|
|
1495
|
+
await this.reduce((i, l) => {
|
|
1496
|
+
const o = { geometry: l.geometry ? (t == null ? void 0 : t.keepGeometryType) === !0 ? l.geometry : l.geometry.toJSON() : null, attributes: l.attributes };
|
|
1497
|
+
return o.geometry !== null && o.geometry.spatialReference && (t == null ? void 0 : t.keepGeometryType) !== !0 && delete o.geometry.spatialReference, n.push(o), 1;
|
|
1498
|
+
}, 0, e);
|
|
1499
|
+
const a = this.schema();
|
|
1500
|
+
return a.features = n, a.spatialReference = (t == null ? void 0 : t.keepGeometryType) === !0 ? this.spatialReference : (s = this.spatialReference) == null ? void 0 : s.toJSON(), a;
|
|
1501
|
+
}
|
|
1502
|
+
fieldTimeZone(e) {
|
|
1503
|
+
return this.getFieldsIndex().getTimeZone(e);
|
|
1504
|
+
}
|
|
1505
|
+
get preferredTimeZone() {
|
|
1506
|
+
var e;
|
|
1507
|
+
return ((e = this._parent) == null ? void 0 : e.preferredTimeZone) ?? null;
|
|
1508
|
+
}
|
|
1509
|
+
get dateFieldsTimeZone() {
|
|
1510
|
+
var e;
|
|
1511
|
+
return ((e = this._parent) == null ? void 0 : e.dateFieldsTimeZone) ?? null;
|
|
1512
|
+
}
|
|
1513
|
+
get dateFieldsTimeZoneDefaultUTC() {
|
|
1514
|
+
if (this.datesInUnknownTimezone)
|
|
1515
|
+
return "unknown";
|
|
1516
|
+
const e = this.dateFieldsTimeZone ?? "UTC";
|
|
1517
|
+
return e === "" ? "UTC" : e;
|
|
1518
|
+
}
|
|
1519
|
+
get datesInUnknownTimezone() {
|
|
1520
|
+
return this._parent.datesInUnknownTimezone;
|
|
1521
|
+
}
|
|
1522
|
+
get editFieldsInfo() {
|
|
1523
|
+
var e;
|
|
1524
|
+
return ((e = this._parent) == null ? void 0 : e.editFieldsInfo) ?? null;
|
|
1525
|
+
}
|
|
1526
|
+
get timeInfo() {
|
|
1527
|
+
var e;
|
|
1528
|
+
return ((e = this._parent) == null ? void 0 : e.timeInfo) ?? null;
|
|
1529
|
+
}
|
|
1530
|
+
set featureSetInfo(e) {
|
|
1531
|
+
this.fsetInfo = e;
|
|
1532
|
+
}
|
|
1533
|
+
async getFeatureSetInfo() {
|
|
1534
|
+
var e;
|
|
1535
|
+
return this.fsetInfo ?? await ((e = this._parent) == null ? void 0 : e.getFeatureSetInfo()) ?? null;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
_._featuresetFunctions = {};
|
|
1539
|
+
class b extends _ {
|
|
1540
|
+
constructor(e) {
|
|
1541
|
+
super(e), this.declaredClass = "esri.layers.featureset.sources.Empty", this._maxProcessing = 1e3, this._wset = new D([], [], !1, null), this._parent = e.parentfeatureset, this._databaseType = h.Standardised;
|
|
1542
|
+
}
|
|
1543
|
+
async _getSet() {
|
|
1544
|
+
return this._wset;
|
|
1545
|
+
}
|
|
1546
|
+
optimisePagingFeatureQueries() {
|
|
1547
|
+
}
|
|
1548
|
+
_isInFeatureSet() {
|
|
1549
|
+
return F.NotInFeatureSet;
|
|
1550
|
+
}
|
|
1551
|
+
async _getFeature() {
|
|
1552
|
+
throw new m(y.NeverReach);
|
|
1553
|
+
}
|
|
1554
|
+
async queryAttachments() {
|
|
1555
|
+
return [];
|
|
1556
|
+
}
|
|
1557
|
+
async _getFeatures() {
|
|
1558
|
+
return "success";
|
|
1559
|
+
}
|
|
1560
|
+
_featureFromCache() {
|
|
1561
|
+
return null;
|
|
1562
|
+
}
|
|
1563
|
+
async _fetchAndRefineFeatures() {
|
|
1564
|
+
throw new m(y.NeverReach);
|
|
1565
|
+
}
|
|
1566
|
+
async _getFilteredSet() {
|
|
1567
|
+
return new D([], [], !1, null);
|
|
1568
|
+
}
|
|
1569
|
+
_stat(e, t, n, a, s, i, l) {
|
|
1570
|
+
return this._manualStat(e, t, i, l);
|
|
1571
|
+
}
|
|
1572
|
+
async _canDoAggregates() {
|
|
1573
|
+
return !1;
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
class I extends _ {
|
|
1577
|
+
constructor(e) {
|
|
1578
|
+
super(e), this._relation = "", this._relationGeom = null, this._relationString = "", this.declaredClass = "esri.arcade.featureset.actions.SpatialFilter", this._relationString = e.relationString, this._parent = e.parentfeatureset, this._maxProcessing = 40, this._relation = e.relation, this._relationGeom = e.relationGeom;
|
|
1579
|
+
}
|
|
1580
|
+
async _getSet(e) {
|
|
1581
|
+
if (this._wset === null) {
|
|
1582
|
+
await this._ensureLoaded();
|
|
1583
|
+
const t = await this._parent._getFilteredSet(this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, null, null, e);
|
|
1584
|
+
return this._checkCancelled(e), this._wset = new D(t._candidates.slice(0), t._known.slice(0), t._ordered, this._clonePageDefinition(t.pagesDefinition)), this._wset;
|
|
1585
|
+
}
|
|
1586
|
+
return this._wset;
|
|
1587
|
+
}
|
|
1588
|
+
_isInFeatureSet(e) {
|
|
1589
|
+
let t = this._parent._isInFeatureSet(e);
|
|
1590
|
+
return t === F.NotInFeatureSet ? t : (t = this._idstates[e], t === void 0 ? F.Unknown : t);
|
|
1591
|
+
}
|
|
1592
|
+
_getFeature(e, t, n) {
|
|
1593
|
+
return this._parent._getFeature(e, t, n);
|
|
1594
|
+
}
|
|
1595
|
+
_getFeatures(e, t, n, a) {
|
|
1596
|
+
return this._parent._getFeatures(e, t, n, a);
|
|
1597
|
+
}
|
|
1598
|
+
_featureFromCache(e) {
|
|
1599
|
+
return this._parent._featureFromCache(e);
|
|
1600
|
+
}
|
|
1601
|
+
async executeSpatialRelationTest(e) {
|
|
1602
|
+
if (e.geometry === null)
|
|
1603
|
+
return !1;
|
|
1604
|
+
switch (this._relation) {
|
|
1605
|
+
case "esriSpatialRelEnvelopeIntersects":
|
|
1606
|
+
return Y(H(this._relationGeom), H(e.geometry));
|
|
1607
|
+
case "esriSpatialRelIntersects":
|
|
1608
|
+
return Y(this._relationGeom, e.geometry);
|
|
1609
|
+
case "esriSpatialRelContains":
|
|
1610
|
+
return Se(this._relationGeom, e.geometry);
|
|
1611
|
+
case "esriSpatialRelOverlaps":
|
|
1612
|
+
return ye(this._relationGeom, e.geometry);
|
|
1613
|
+
case "esriSpatialRelWithin":
|
|
1614
|
+
return me(this._relationGeom, e.geometry);
|
|
1615
|
+
case "esriSpatialRelTouches":
|
|
1616
|
+
return ge(this._relationGeom, e.geometry);
|
|
1617
|
+
case "esriSpatialRelCrosses":
|
|
1618
|
+
return fe(this._relationGeom, e.geometry);
|
|
1619
|
+
case "esriSpatialRelRelation":
|
|
1620
|
+
return _e(this._relationGeom, e.geometry, this._relationString ?? "");
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
async _fetchAndRefineFeatures(e, t, n) {
|
|
1624
|
+
var l;
|
|
1625
|
+
const a = new D([], e, !1, null), s = Math.min(t, e.length);
|
|
1626
|
+
await ((l = this._parent) == null ? void 0 : l._getFeatures(a, -1, s, n)), this._checkCancelled(n);
|
|
1627
|
+
const i = [];
|
|
1628
|
+
for (let o = 0; o < s; o++) {
|
|
1629
|
+
const u = this._parent._featureFromCache(e[o]);
|
|
1630
|
+
i.push(await this.executeSpatialRelationTest(u));
|
|
1631
|
+
}
|
|
1632
|
+
for (let o = 0; o < t; o++)
|
|
1633
|
+
i[o] === !0 ? this._idstates[e[o]] = F.InFeatureSet : this._idstates[e[o]] = F.NotInFeatureSet;
|
|
1634
|
+
return "success";
|
|
1635
|
+
}
|
|
1636
|
+
async _getFilteredSet(e, t, n, a, s) {
|
|
1637
|
+
await this._ensureLoaded();
|
|
1638
|
+
const i = await this._parent._getFilteredSet(this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, n, a, s);
|
|
1639
|
+
let l;
|
|
1640
|
+
return this._checkCancelled(s), l = t !== null ? new D(i._candidates.slice(0).concat(i._known.slice(0)), [], i._ordered, this._clonePageDefinition(i.pagesDefinition)) : new D(i._candidates.slice(0), i._known.slice(0), i._ordered, this._clonePageDefinition(i.pagesDefinition)), l;
|
|
1641
|
+
}
|
|
1642
|
+
async _stat(e, t, n, a, s, i, l) {
|
|
1643
|
+
if (n !== "")
|
|
1644
|
+
return { calculated: !1 };
|
|
1645
|
+
const o = await this._parent._stat(e, t, this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, s, i, l);
|
|
1646
|
+
return o.calculated === !1 ? s === null && n === "" && a === null ? this._manualStat(e, t, i, l) : { calculated: !1 } : o;
|
|
1647
|
+
}
|
|
1648
|
+
async _canDoAggregates(e, t, n, a, s) {
|
|
1649
|
+
return n === "" && a === null && this._parent !== null && this._parent._canDoAggregates(e, t, this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, s);
|
|
1650
|
+
}
|
|
1651
|
+
async _getAggregatePagesDataSourceDefinition(e, t, n, a, s, i, l) {
|
|
1652
|
+
if (this._parent === null)
|
|
1653
|
+
throw new m(y.NeverReach);
|
|
1654
|
+
return this._parent._getAggregatePagesDataSourceDefinition(e, t, this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, s, i, l);
|
|
1655
|
+
}
|
|
1656
|
+
static registerAction() {
|
|
1657
|
+
_._featuresetFunctions.intersects = function(e) {
|
|
1658
|
+
return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelIntersects", relationGeom: e });
|
|
1659
|
+
}, _._featuresetFunctions.envelopeIntersects = function(e) {
|
|
1660
|
+
return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelEnvelopeIntersects", relationGeom: e });
|
|
1661
|
+
}, _._featuresetFunctions.contains = function(e) {
|
|
1662
|
+
return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelContains", relationGeom: e });
|
|
1663
|
+
}, _._featuresetFunctions.overlaps = function(e) {
|
|
1664
|
+
return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelOverlaps", relationGeom: e });
|
|
1665
|
+
}, _._featuresetFunctions.within = function(e) {
|
|
1666
|
+
return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelWithin", relationGeom: e });
|
|
1667
|
+
}, _._featuresetFunctions.touches = function(e) {
|
|
1668
|
+
return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelTouches", relationGeom: e });
|
|
1669
|
+
}, _._featuresetFunctions.crosses = function(e) {
|
|
1670
|
+
return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelCrosses", relationGeom: e });
|
|
1671
|
+
}, _._featuresetFunctions.relate = function(e, t) {
|
|
1672
|
+
return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelRelation", relationGeom: e, relationString: t });
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
getFieldsIndex() {
|
|
1676
|
+
return this._parent.getFieldsIndex();
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
export {
|
|
1680
|
+
De as D,
|
|
1681
|
+
q as E,
|
|
1682
|
+
Ee as F,
|
|
1683
|
+
be as I,
|
|
1684
|
+
Fe as L,
|
|
1685
|
+
Q as S,
|
|
1686
|
+
U as T,
|
|
1687
|
+
K as a,
|
|
1688
|
+
Ve as b,
|
|
1689
|
+
E as c,
|
|
1690
|
+
Je as d,
|
|
1691
|
+
I as f,
|
|
1692
|
+
Qe as g,
|
|
1693
|
+
Ke as m,
|
|
1694
|
+
Ye as p,
|
|
1695
|
+
D as t,
|
|
1696
|
+
b as u,
|
|
1697
|
+
qe as v,
|
|
1698
|
+
R as w,
|
|
1699
|
+
_ as x,
|
|
1700
|
+
Ie as y
|
|
1701
|
+
};
|