@agrotools1/at-components 0.2.3 → 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.
Files changed (910) hide show
  1. package/dist/AGraphicContainer-d82e96aa.js +109 -0
  2. package/dist/APIKeyMixin-2ee64e59.js +19 -0
  3. package/dist/Analysis-449f84c5.js +31 -0
  4. package/dist/ArcGISCachedService-a838709f.js +47 -0
  5. package/dist/ArcGISService-7e5e8710.js +25 -0
  6. package/dist/AreaMeasurement2D-971dad40.js +405 -0
  7. package/dist/AreaMeasurement3D-48bc0242.js +488 -0
  8. package/dist/AttachmentInfo-ad88d558.js +34 -0
  9. package/dist/AttachmentQuery-c86dac15.js +18 -0
  10. package/dist/AttributeStore-3851ad0b.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-02baa49a.js +63 -0
  12. package/dist/BingMapsLayer-67c70069.js +112 -0
  13. package/dist/Bitmap-d455f554.js +128 -0
  14. package/dist/BitmapContainer-c78799ad.js +23 -0
  15. package/dist/BlendLayer-246e4998.js +13 -0
  16. package/dist/BoundsStore-b18f4e4e.js +63 -0
  17. package/dist/BufferObject-22d914df.js +100 -0
  18. package/dist/BufferView-5272765e.js +683 -0
  19. package/dist/BuildingSceneLayer-f08d5129.js +535 -0
  20. package/dist/Button-335b8469.js +36 -0
  21. package/dist/CSVLayer-40c0bd0e.js +208 -0
  22. package/dist/CSVSourceWorker-b8df4580.js +367 -0
  23. package/dist/CardWithInsights/CardWithInsights.d.ts +2 -1
  24. package/dist/CatalogDynamicGroupLayerView2D-3abd5c54.js +66 -0
  25. package/dist/CatalogFootprintLayerView2D-22c795e4.js +76 -0
  26. package/dist/CatalogLayer-74d18466.js +262 -0
  27. package/dist/CatalogLayerView2D-ffee45d8.js +52 -0
  28. package/dist/ClassBreaksDefinition-5a577d31.js +18 -0
  29. package/dist/ColorMaterial.glsl-bc384e65.js +64 -0
  30. package/dist/ColorSet-570396b9.js +45 -0
  31. package/dist/ColorStop-5009138a.js +29 -0
  32. package/dist/Container-f931e682.js +521 -0
  33. package/dist/CustomParametersMixin-9e8adcf6.js +12 -0
  34. package/dist/DefaultMaterial.glsl-092e1a97.js +42 -0
  35. package/dist/DefaultMaterial_COLOR_GAMMA-43e030be.js +653 -0
  36. package/dist/DefaultTheme-59d78c72.js +130 -0
  37. package/dist/DeleteForwardEditsParameters-8b5196fa.js +18 -0
  38. package/dist/DimensionLayer-6fc6ab12.js +129 -0
  39. package/dist/DirectLineMeasurement3D-6823c93d.js +449 -0
  40. package/dist/DistanceMeasurement2D-a6cf62b6.js +303 -0
  41. package/dist/DoubleArray-bb8ff0fb.js +25 -0
  42. package/dist/Dropdown/Filter/test.mocks.d.ts +6 -0
  43. package/dist/Dropdown/List/test.mocks.d.ts +6 -0
  44. package/dist/EdgeProcessingWorker-c5511714.js +63 -0
  45. package/dist/EditBusLayer-513ca203.js +107 -0
  46. package/dist/ElevationInfo-234040e3.js +56 -0
  47. package/dist/ElevationLayer-599949a0.js +129 -0
  48. package/dist/ElevationQuery-aaa7fb05.js +598 -0
  49. package/dist/ElevationSamplerWorker-07be3a80.js +62 -0
  50. package/dist/ExportImageParameters-b28e28df.js +66 -0
  51. package/dist/ExportStrategy-d6fd38ed.js +93 -0
  52. package/dist/ExportWMSImageParameters-be4cc5df.js +33 -0
  53. package/dist/External-55b35c8d.js +110 -0
  54. package/dist/Faq/Faq.d.ts +1 -1
  55. package/dist/Faq/index.d.ts +1 -1
  56. package/dist/FeatureCollectionSnappingSource-fce9fa91.js +130 -0
  57. package/dist/FeatureCommandQueue-4e426066.js +1244 -0
  58. package/dist/FeatureEffect-0a86f0ba.js +39 -0
  59. package/dist/FeatureEffectLayer-13705792.js +13 -0
  60. package/dist/FeatureFilter-1635b86a.js +27 -0
  61. package/dist/FeatureLayer-d2f8e7c0.js +693 -0
  62. package/dist/FeatureLayerBase-40e10dd6.js +148 -0
  63. package/dist/FeatureLayerSource-ebd2bea5.js +444 -0
  64. package/dist/FeatureLayerView2D-23240236.js +1967 -0
  65. package/dist/FeaturePipelineWorker-8d07a1dd.js +3633 -0
  66. package/dist/FeatureReductionLayer-55609d4e.js +225 -0
  67. package/dist/FeatureReductionSelection-2f351ee7.js +22 -0
  68. package/dist/FeatureServiceSnappingSource-513edf0d.js +481 -0
  69. package/dist/FeatureServiceSnappingSourceWorker-d6deecd4.js +747 -0
  70. package/dist/FeatureSet-ffd45984.js +188 -0
  71. package/dist/FeatureStore-9fd6c0f8.js +131 -0
  72. package/dist/FeatureTemplate-e4854302.js +12 -0
  73. package/dist/FeatureType-b4ef51c2.js +25 -0
  74. package/dist/FieldsIndex-91fb234a.js +109 -0
  75. package/dist/FormTemplate-67f4d44e.js +350 -0
  76. package/dist/GeoJSONLayer-e3495648.js +236 -0
  77. package/dist/GeoJSONSourceWorker-b0ee6d8e.js +247 -0
  78. package/dist/GeoRSSLayer-afac8cf1.js +73 -0
  79. package/dist/GeoRSSLayerView2D-b03f6564.js +140 -0
  80. package/dist/GeometryUtils-058e30f4.js +403 -0
  81. package/dist/GraphicContainer-d0803f7a.js +26 -0
  82. package/dist/GraphicManipulator-797ae6c6.js +1499 -0
  83. package/dist/GraphicsLayer-a30f80da.js +38 -0
  84. package/dist/GraphicsLayerView2D-0c92e0f2.js +114 -0
  85. package/dist/GraphicsSnappingSource-e928ab8c.js +273 -0
  86. package/dist/GraphicsView2D-963eb026.js +620 -0
  87. package/dist/GroupLayer-7f131ab8.js +147 -0
  88. package/dist/GroupLayerView2D-5fcc27fc.js +98 -0
  89. package/dist/HUDMaterial.glsl-3b450c01.js +65 -0
  90. package/dist/HighlightCounter-fda615cd.js +41 -0
  91. package/dist/HighlightGraphicContainer-8cfde780.js +18 -0
  92. package/dist/I3SBinaryReader-a4021fad.js +310 -0
  93. package/dist/I3SLayerDefinitions-f004f8b6.js +55 -0
  94. package/dist/I3SUtil-040e44af.js +59 -0
  95. package/dist/IdentityManager-012e74ca.js +899 -0
  96. package/dist/ImageHistogramParameters-f7c4c804.js +905 -0
  97. package/dist/ImageryLayer-c3f0176f.js +1799 -0
  98. package/dist/ImageryLayerView2D-5a14beb5.js +352 -0
  99. package/dist/ImageryTileLayer-a93e8471.js +2157 -0
  100. package/dist/ImageryTileLayerView2D-3e9fea94.js +1110 -0
  101. package/dist/Indices-f0dca4b5.js +67 -0
  102. package/dist/Input/index.d.ts +4547 -3
  103. package/dist/IntegratedMesh3DTilesLayer-7e70c76e.js +112 -0
  104. package/dist/IntegratedMeshLayer-2283f8d9.js +141 -0
  105. package/dist/InteractiveAnalysisViewModel-f0a0c72a.js +7397 -0
  106. package/dist/InterleavedLayout-9490090b.js +163 -0
  107. package/dist/KMLLayer-06b7037f.js +162 -0
  108. package/dist/KMLLayerView2D-59f96ec9.js +253 -0
  109. package/dist/KnowledgeGraphLayerView2D-6c8c4aae.js +43 -0
  110. package/dist/LRUCache-fc532e9b.js +32 -0
  111. package/dist/LabelClass-eae6271b.js +135 -0
  112. package/dist/LabelMetric-ee740bd1.js +400 -0
  113. package/dist/LaserlinePath.glsl-f58264f5.js +64 -0
  114. package/dist/Laserlines.glsl-14ab8523.js +65 -0
  115. package/dist/LayerFloorInfo-6ac1a57d.js +15 -0
  116. package/dist/LayerView-e41297e4.js +206 -0
  117. package/dist/LercWorker-22ed35b2.js +157 -0
  118. package/dist/LineOfSightLayer-6bf67bb7.js +147 -0
  119. package/dist/LinkChartLayer-e9a861f0.js +1027 -0
  120. package/dist/Lyr3DWorker-29f7a041.js +82 -0
  121. package/dist/MagnifierPrograms-1584f9b5.js +806 -0
  122. package/dist/MapImageLayer-b89cf158.js +169 -0
  123. package/dist/MapImageLayerView2D-e3f4a4cc.js +146 -0
  124. package/dist/MapNotesLayer-966f3446.js +283 -0
  125. package/dist/MapNotesLayerView2D-4aedef2a.js +161 -0
  126. package/dist/MapServiceLayerViewHelper-4f262166.js +288 -0
  127. package/dist/MeasurementWidgetContent-82971f95.js +2642 -0
  128. package/dist/MediaLayer-697a7c14.js +523 -0
  129. package/dist/MediaLayerView2D-64897044.js +332 -0
  130. package/dist/MemCache-0861cc28.js +227 -0
  131. package/dist/MemorySourceWorker-e1c531ac.js +222 -0
  132. package/dist/Mesh-44c8f6ba.js +980 -0
  133. package/dist/MeshLocalVertexSpace-6fe3a662.js +19 -0
  134. package/dist/MultiOriginJSONSupport-248453ac.js +158 -0
  135. package/dist/Notifications/index.d.ts +1 -0
  136. package/dist/OGCFeatureLayer-2daa0551.js +211 -0
  137. package/dist/OGCFeatureLayerView2D-7cebf7e0.js +82 -0
  138. package/dist/ObjectStack-424092a9.js +21 -0
  139. package/dist/Octree-21d216f2.js +495 -0
  140. package/dist/OpenStreetMapLayer-ade6fa9d.js +30 -0
  141. package/dist/OperationalLayer-097ad3e0.js +44 -0
  142. package/dist/OrderByInfo-e9ed942d.js +16 -0
  143. package/dist/OrderedLayer-fef2b56e.js +26 -0
  144. package/dist/OrientedImageryLayer-424a6234.js +216 -0
  145. package/dist/OverlayCompositing.glsl-1954a291.js +65 -0
  146. package/dist/OverrideHelper-f8aace2c.js +242 -0
  147. package/dist/PBFDecoderWorker-15cd639d.js +213 -0
  148. package/dist/PointCloudLayer-c820d269.js +197 -0
  149. package/dist/PointCloudUniqueValueRenderer-e7d37f08.js +115 -0
  150. package/dist/PointCloudWorker-3e28270d.js +212 -0
  151. package/dist/PooledRBush-e4cbf810.js +272 -0
  152. package/dist/Popup-2c03dbc0.js +3990 -0
  153. package/dist/PortalLayer-09e5a300.js +126 -0
  154. package/dist/Program-ed5a5aa3.js +694 -0
  155. package/dist/ProgramTemplate-976cfde1.js +35 -0
  156. package/dist/QueryEngine-8915348b.js +896 -0
  157. package/dist/QueryTask-f386d91d.js +119 -0
  158. package/dist/RasterSymbolizer-6177c6ec.js +3024 -0
  159. package/dist/RasterVFDisplayObject-6411b56f.js +581 -0
  160. package/dist/RasterWorker-f825daf0.js +78 -0
  161. package/dist/RawBlockCache-0d61962b.js +185 -0
  162. package/dist/RealisticTree.glsl-c9fd0d3c.js +42 -0
  163. package/dist/RefreshableLayer-0945a308.js +80 -0
  164. package/dist/RefreshableLayerView-4956f17c.js +16 -0
  165. package/dist/Relationship-9a82bd43.js +64 -0
  166. package/dist/RelationshipQuery-68ad49a7.js +22 -0
  167. package/dist/RenderingContext-49610ad9.js +889 -0
  168. package/dist/RibbonLine.glsl-6314f72e.js +65 -0
  169. package/dist/RouteLayer-ff5c8f33.js +786 -0
  170. package/dist/RouteLayerView2D-2cc60ad2.js +195 -0
  171. package/dist/SDFHelper-b08be611.js +140 -0
  172. package/dist/SSAO.glsl-0e92c4e5.js +43 -0
  173. package/dist/SSAOBlur.glsl-a2bb2587.js +42 -0
  174. package/dist/ScaleRangeLayer-ab226dbd.js +21 -0
  175. package/dist/SceneLayer-884ec175.js +542 -0
  176. package/dist/SceneLayerSnappingSource-aa2944b9.js +218 -0
  177. package/dist/SceneLayerSnappingSourceWorker-5616c206.js +112 -0
  178. package/dist/SceneLayerWorker-9745b8b5.js +164 -0
  179. package/dist/SceneService-da855dda.js +215 -0
  180. package/dist/Scheduler-b3c40220.js +373 -0
  181. package/dist/Search/index.d.ts +1 -0
  182. package/dist/Search/test.mocks.d.ts +3 -0
  183. package/dist/Search/utils.d.ts +3 -0
  184. package/dist/Select/index.d.ts +3 -3
  185. package/dist/ShadedColorMaterial.glsl-f953e894.js +64 -0
  186. package/dist/SnappingOperation-be595c42.js +48 -0
  187. package/dist/SourceLayerData-ec8ab72c.js +116 -0
  188. package/dist/SpatialFilter-7d64232d.js +1701 -0
  189. package/dist/Stop-c022e866.js +281 -0
  190. package/dist/StreamLayer-d603abd8.js +188 -0
  191. package/dist/StreamLayerView2D-6d6618cf.js +164 -0
  192. package/dist/StyleRepository-2f08de17.js +2212 -0
  193. package/dist/SublayersOwner-cc0e4f54.js +545 -0
  194. package/dist/SubtypeGroupLayer-bacf048d.js +514 -0
  195. package/dist/SubtypeGroupLayerView2D-b3ed2c1a.js +84 -0
  196. package/dist/TechniqueInstance-397b7dc2.js +233 -0
  197. package/dist/TemporalLayer-7844bd88.js +23 -0
  198. package/dist/Texture-b1727861.js +501 -0
  199. package/dist/TextureOnly.glsl-ffd4a7df.js +65 -0
  200. package/dist/Theme-12cb681b.js +3426 -0
  201. package/dist/Tick-25d07d27.js +723 -0
  202. package/dist/TileContainer-ab77d7a6.js +31 -0
  203. package/dist/TileInfoTilemapCache-3e97ab02.js +38 -0
  204. package/dist/TileLayer-03cfc8ab.js +194 -0
  205. package/dist/TileLayerView2D-3cfd6a21.js +187 -0
  206. package/dist/TilemapCache-36e3c4b7.js +189 -0
  207. package/dist/TimeInfo-cea2517f.js +42 -0
  208. package/dist/TimeOnly-5a143001.js +706 -0
  209. package/dist/Tooltip-2b4711cb.js +138 -0
  210. package/dist/TopFeaturesQuery-285284f1.js +32 -0
  211. package/dist/TurboLine-708823a3.js +565 -0
  212. package/dist/UniqueValueRenderer-3d92c0b9.js +1039 -0
  213. package/dist/UnknownLayer-d3dbe7c9.js +30 -0
  214. package/dist/UnknownTimeZone-ed4def19.js +15 -0
  215. package/dist/UnsupportedLayer-40bbb9f5.js +31 -0
  216. package/dist/UpdateTracking2D-23c8ff3f.js +8566 -0
  217. package/dist/Upload/index.d.ts +1 -1
  218. package/dist/Util-2ba07f64.js +57 -0
  219. package/dist/VectorTileLayer-ba191a02.js +544 -0
  220. package/dist/VectorTileLayerView2D-bd3971cd.js +2108 -0
  221. package/dist/Version-d45bee25.js +33 -0
  222. package/dist/VertexArrayObject-08a9d938.js +73 -0
  223. package/dist/VertexColor.glsl-cfafd4c9.js +2683 -0
  224. package/dist/VertexSnappingCandidate-cbae227c.js +13 -0
  225. package/dist/VideoLayerView2D-ec66c226.js +124 -0
  226. package/dist/VoxelLayer-888a65f9.js +631 -0
  227. package/dist/WFSLayer-786bdecd.js +221 -0
  228. package/dist/WFSSourceWorker-a212500b.js +157 -0
  229. package/dist/WGLContainer-f05c906a.js +5426 -0
  230. package/dist/WMSLayer-b2c46060.js +536 -0
  231. package/dist/WMSLayerView2D-a90672e9.js +117 -0
  232. package/dist/WMTSLayer-860b1a45.js +531 -0
  233. package/dist/WMTSLayerView2D-c492825d.js +142 -0
  234. package/dist/WebTileLayer-e178eb17.js +110 -0
  235. package/dist/WhereClause-ad3cc5ae.js +2766 -0
  236. package/dist/WorkerHandle-ef6ad49b.js +47 -0
  237. package/dist/WorkerTileHandler-c2b98dae.js +1539 -0
  238. package/dist/action-46ccf03a.js +198 -0
  239. package/dist/action-group-9785519d.js +145 -0
  240. package/dist/action-menu-f423306a.js +1759 -0
  241. package/dist/agrotools-theme.css +2 -2
  242. package/dist/agrotools-theme.css.map +1 -1
  243. package/dist/apng-66c828d8.js +392 -0
  244. package/dist/arcade-af30f385.js +229 -0
  245. package/dist/arcadeAsyncRuntime-fdce05e3.js +943 -0
  246. package/dist/arcadeUtils-2b5a1e68.js +8741 -0
  247. package/dist/arcgis-knowledge-client-core-192a1ac0.js +1218 -0
  248. package/dist/arcgis-knowledge-client-core-simd-4fb6c777.js +1218 -0
  249. package/dist/arcgisLayers-f43f9183.js +152 -0
  250. package/dist/associatedFeatureServiceUtils-15949591.js +92 -0
  251. package/dist/axisAngleDegrees-de05cd64.js +49 -0
  252. package/dist/basis_transcoder-6f118404.js +1248 -0
  253. package/dist/calcite-action-bar-9722a11e.js +303 -0
  254. package/dist/calcite-action-f5829479.js +22 -0
  255. package/dist/calcite-action-group-3e77994f.js +28 -0
  256. package/dist/calcite-button-8979d383.js +228 -0
  257. package/dist/calcite-flow-b50ce308.js +128 -0
  258. package/dist/calcite-flow-item-57549b16.js +499 -0
  259. package/dist/calcite-icon-fb43725c.js +16 -0
  260. package/dist/calcite-input-fcc054c7.js +24 -0
  261. package/dist/calcite-label-10d65c11.js +79 -0
  262. package/dist/calcite-list-2847bddc.js +2135 -0
  263. package/dist/calcite-list-item-53cde043.js +576 -0
  264. package/dist/calcite-list-item-group-256eb990.js +71 -0
  265. package/dist/calcite-loader-022a5436.js +14 -0
  266. package/dist/calcite-modal-5b1a23d9.js +333 -0
  267. package/dist/calcite-notice-17009704.js +181 -0
  268. package/dist/calcite-option-c7d00181.js +94 -0
  269. package/dist/calcite-scrim-1dced2db.js +18 -0
  270. package/dist/calcite-select-a96a55a3.js +231 -0
  271. package/dist/capabilities-3f86754a.js +50 -0
  272. package/dist/chartCommon-af8c14ae.js +256 -0
  273. package/dist/chartUtilsAm5-418cf95f.js +2954 -0
  274. package/dist/clientSideDefaults-2aad569c.js +39 -0
  275. package/dist/colorRamps-0fae1fde.js +38 -0
  276. package/dist/colorUtils-6d5e716b.js +164 -0
  277. package/dist/commonProperties-d1f695a2.js +60 -0
  278. package/dist/computeTranslationToOriginAndRotation-cba163ab.js +60 -0
  279. package/dist/conditionalSlot-14f35023.js +27 -0
  280. package/dist/createConnection-f3b9e606.js +299 -0
  281. package/dist/dataUtils-65604399.js +1421 -0
  282. package/dist/deduplicate-16f30199.js +89 -0
  283. package/dist/defaults-b7c93d2a.js +31 -0
  284. package/dist/deleteForwardEdits-f31f885d.js +13 -0
  285. package/dist/diffUtils-54c1c039.js +90 -0
  286. package/dist/drapedUtils-166cd4c2.js +75 -0
  287. package/dist/earcut-ffaa9a50.js +292 -0
  288. package/dist/edgeProcessing-1a2c4169.js +252 -0
  289. package/dist/editingSupport-ffa6f639.js +203 -0
  290. package/dist/editsZScale-2840378a.js +37 -0
  291. package/dist/elevationInfoUtils-c1caf596.js +126 -0
  292. package/dist/executeForIds-b9c9164b.js +14 -0
  293. package/dist/executeForTopCount-8a73aea7.js +17 -0
  294. package/dist/executeForTopExtents-a3d0b42e.js +17 -0
  295. package/dist/executeForTopIds-f14d5790.js +17 -0
  296. package/dist/executeQueryJSON-6cd89bed.js +15 -0
  297. package/dist/executeQueryPBF-e1d32cfc.js +152 -0
  298. package/dist/executeRelationshipQuery-5cadcb20.js +53 -0
  299. package/dist/executeTopFeaturesQuery-32dda453.js +18 -0
  300. package/dist/featureConversionUtils-a5f0b9b2.js +479 -0
  301. package/dist/featureLayerUtils-828813e8.js +250 -0
  302. package/dist/featureLayerUtils-9e9f97c1.js +142 -0
  303. package/dist/featureSetUtils-2f86a02f.js +2530 -0
  304. package/dist/featuresetbase-bb981400.js +707 -0
  305. package/dist/featuresetgeom-0185b49f.js +99 -0
  306. package/dist/featuresetstats-3d689b79.js +81 -0
  307. package/dist/featuresetstring-83733fad.js +95 -0
  308. package/dist/fetchService-25e9ba70.js +33 -0
  309. package/dist/fieldProperties-cd5649d9.js +33 -0
  310. package/dist/floatRGBA-005cc596.js +20 -0
  311. package/dist/form-41e8f739.js +138 -0
  312. package/dist/geohashUtils-776cae3b.js +85 -0
  313. package/dist/geojson-7ef69d00.js +208 -0
  314. package/dist/geomasync-43a66474.js +567 -0
  315. package/dist/geometryEngine-e18a460d.js +192 -0
  316. package/dist/geometryEngineAsync-ae21d4e2.js +217 -0
  317. package/dist/geometryEngineBase-d653892b.js +18463 -0
  318. package/dist/geometryEngineJSON-031f6196.js +46 -0
  319. package/dist/geometryEngineJSON-9aeb41cd.js +171 -0
  320. package/dist/geometryEngineWorker-1c2f96e6.js +11 -0
  321. package/dist/geometryServiceUtils-50afe031.js +28 -0
  322. package/dist/georeference-cf051555.js +291 -0
  323. package/dist/gif-3fe5f761.js +323 -0
  324. package/dist/gltfexport-3ec498d6.js +705 -0
  325. package/dist/groupLayerUtils-5b8e1f89.js +39 -0
  326. package/dist/heatmapUtils-b512588d.js +45 -0
  327. package/dist/highlightReasons-b0f772b2.js +19 -0
  328. package/dist/hydrated-36edecd6.js +40 -0
  329. package/dist/i3s-239f062a.js +809 -0
  330. package/dist/icon-5e93376e.js +127 -0
  331. package/dist/imageBitmapUtils-142daeaf.js +23 -0
  332. package/dist/imageUtils-27ed5e73.js +89 -0
  333. package/dist/imageUtils-901282e9.js +69 -0
  334. package/dist/imageryUtils-b1dd3a54.js +43 -0
  335. package/dist/index-6ebf29c1.js +43667 -0
  336. package/dist/index.d.ts +4 -0
  337. package/dist/index.js +17 -13
  338. package/dist/input-message-20d19cfb.js +92 -0
  339. package/dist/input2-8da11a51.js +575 -0
  340. package/dist/interactive-bcb1b82d.js +80 -0
  341. package/dist/jsonContext-45fce1e1.js +15 -0
  342. package/dist/jsonUtils-09f69988.js +86 -0
  343. package/dist/jsonUtils-1f447d0c.js +476 -0
  344. package/dist/jsonUtils-db906457.js +59 -0
  345. package/dist/kmlUtils-6412718d.js +112 -0
  346. package/dist/knowledgeGraphService-80890106.js +739 -0
  347. package/dist/knowledgegraph-475723f0.js +149 -0
  348. package/dist/labelUtils-85708580.js +61 -0
  349. package/dist/labelingInfo-62fc9d21.js +46 -0
  350. package/dist/layersCreator-a94b60fe.js +151 -0
  351. package/dist/layersLoader-39c74edb.js +197 -0
  352. package/dist/lazyLayerLoader-7922c10d.js +10 -0
  353. package/dist/lclayout-6ac84378.js +773 -0
  354. package/dist/lengthUtils-6a89d855.js +5 -0
  355. package/dist/lerc-wasm-b8b3cd2c.js +325 -0
  356. package/dist/libtess-61451fa0.js +269 -0
  357. package/dist/libtess-asm-fef1a4ca.js +3673 -0
  358. package/dist/lineSegment-f45db35c.js +76 -0
  359. package/dist/loadGLTFMesh-2f9cee21.js +181 -0
  360. package/dist/loadable-c29cb205.js +24 -0
  361. package/dist/loader-d9b4787f.js +79 -0
  362. package/dist/lyr3DWorker-33babc2c.js +2108 -0
  363. package/dist/mapViewDeps-f5b886c8.js +3052 -0
  364. package/dist/mediaLayerUtils-5a2c2fe8.js +35 -0
  365. package/dist/meshFeatureSet-2312bbe6.js +126 -0
  366. package/dist/meshVertexSpaceUtils-c9b69510.js +58 -0
  367. package/dist/multidimensionalUtils-e85f5a78.js +290 -0
  368. package/dist/normalizeUtilsSync-555b1847.js +181 -0
  369. package/dist/number-72e1a662.js +128 -0
  370. package/dist/objectResourceUtils-abe804cf.js +1455 -0
  371. package/dist/observers-f3bd3593.js +30 -0
  372. package/dist/ogcFeatureUtils-7097c17e.js +206 -0
  373. package/dist/openCloseComponent-67a2c20c.js +37 -0
  374. package/dist/orientedBoundingBox-4ae2c366.js +447 -0
  375. package/dist/parser-7a76caf9.js +488 -0
  376. package/dist/pbf-0b9b579c.js +215 -0
  377. package/dist/pbfQueryUtils-baba23c7.js +422 -0
  378. package/dist/pe-wasm-d080c07b.js +887 -0
  379. package/dist/persistable-82932da9.js +89 -0
  380. package/dist/perspectiveUtils-1b383b17.js +42 -0
  381. package/dist/pieChart-eca78f7c.js +555 -0
  382. package/dist/plane-84e27261.js +160 -0
  383. package/dist/popupUtils-b72d32fb.js +22 -0
  384. package/dist/popupUtils-cde1d105.js +50 -0
  385. package/dist/portalItemUtils-28314a3f.js +57 -0
  386. package/dist/portalLayers-eeaa6e57.js +312 -0
  387. package/dist/portalUtils-457f542e.js +7 -0
  388. package/dist/programUtils-0c20a48e.js +59 -0
  389. package/dist/project-1b5431dd.js +21 -0
  390. package/dist/projectPointToVector-1f1d1dc7.js +14 -0
  391. package/dist/projectVectorToVector-b7e757a1.js +13 -0
  392. package/dist/quantityUtils-b64583f9.js +33 -0
  393. package/dist/quantizationUtils-9e478e23.js +68 -0
  394. package/dist/quat-5502b70d.js +104 -0
  395. package/dist/query-b2397453.js +89 -0
  396. package/dist/queryAttachments-4361fd2f.js +39 -0
  397. package/dist/queryEngineUtils-f24bc98c.js +21 -0
  398. package/dist/queryTopFeatures-e06aa562.js +50 -0
  399. package/dist/queryZScale-b18ec359.js +12 -0
  400. package/dist/rasterProjectionHelper-935c256c.js +577 -0
  401. package/dist/rasterUtils-efad8a20.js +122 -0
  402. package/dist/rasterizingUtils-80de9b14.js +46 -0
  403. package/dist/request-cae502b7.js +46 -0
  404. package/dist/requestImageUtils-caebcf1e.js +8 -0
  405. package/dist/resourceExtension-7d14f4fc.js +17 -0
  406. package/dist/resourceUtils-8d97f5bf.js +42 -0
  407. package/dist/resourceUtils-be991ca4.js +69 -0
  408. package/dist/resourceUtils-fa1a565f.js +62 -0
  409. package/dist/saveAPIKeyUtils-9f0454db.js +8 -0
  410. package/dist/saveUtils-22a6caa6.js +24 -0
  411. package/dist/scaleUtils-ba5596ad.js +23 -0
  412. package/dist/scrim-5b1b6156.js +114 -0
  413. package/dist/serviceCapabilitiesUtils-3a47b26b.js +64 -0
  414. package/dist/sourceUtils-ded5acd6.js +71 -0
  415. package/dist/sphere-418b76df.js +199 -0
  416. package/dist/statsWorker-a082453a.js +37 -0
  417. package/dist/streamLayerUtils-22aa35f2.js +31 -0
  418. package/dist/style.css +1 -1
  419. package/dist/styleUtils-aa4777b6.js +75 -0
  420. package/dist/styleUtils-e5f7ddb7.js +14 -0
  421. package/dist/sublayerUtils-7c5ebfea.js +37 -0
  422. package/dist/substitute-da3c695d.js +52 -0
  423. package/dist/symbolColorUtils-5d3e355f.js +8 -0
  424. package/dist/symbolLayerUtils-47cdd4d1.js +31 -0
  425. package/dist/symbologySnappingCandidates-6ebf1df0.js +221 -0
  426. package/dist/t9n-c80e56d9.js +349 -0
  427. package/dist/testSVGPremultipliedAlpha-b9ff88ef.js +94 -0
  428. package/dist/timeSupport-8d2432f7.js +410 -0
  429. package/dist/triangle-07f96fb9.js +98 -0
  430. package/dist/unitConversionUtils-c1bfd22b.js +17 -0
  431. package/dist/unitFormatUtils-e75be0c3.js +40 -0
  432. package/dist/uploadAssetErrors-3493bdb9.js +70 -0
  433. package/dist/uploadAssets-24fe5279.js +330 -0
  434. package/dist/utils-17d83806.js +2746 -0
  435. package/dist/utils-717efd4b.js +73 -0
  436. package/dist/utils-74e8e651.js +433 -0
  437. package/dist/utils-7c8f1d3f.js +232 -0
  438. package/dist/utils-94cbe432.js +79 -0
  439. package/dist/utils-a76b92ed.js +34 -0
  440. package/dist/utils-e73651cf.js +419 -0
  441. package/dist/utils-f46de72c.js +91 -0
  442. package/dist/utils3-eb04cacb.js +75 -0
  443. package/dist/vec3-61daf837.js +81 -0
  444. package/dist/vec42-27060a00.js +125 -0
  445. package/dist/versionUtils-c9c03a5d.js +161 -0
  446. package/dist/visualVariableUtils-bc9bfef1.js +267 -0
  447. package/dist/webStyleSymbolUtils-0990caa8.js +48 -0
  448. package/dist/webglDeps-812387f7.js +23 -0
  449. package/dist/wfsUtils-fdccd660.js +343 -0
  450. package/dist/workerHelper-d8d5f17b.js +11 -0
  451. package/dist/xyChart-94c1ef04.js +3335 -0
  452. package/package.json +1 -1
  453. package/dist/AGraphicContainer-98a4c8a4.js +0 -109
  454. package/dist/APIKeyMixin-9511e0a5.js +0 -19
  455. package/dist/Accordion/Accordion.d.ts +0 -49
  456. package/dist/Analysis-4b1d1fb5.js +0 -31
  457. package/dist/ArcGISCachedService-93e2cb27.js +0 -47
  458. package/dist/ArcGISService-3f8d89c1.js +0 -25
  459. package/dist/AreaMeasurement2D-e0bb230c.js +0 -405
  460. package/dist/AreaMeasurement3D-a9959ecf.js +0 -488
  461. package/dist/AttachmentInfo-601c56e2.js +0 -34
  462. package/dist/AttachmentQuery-3504d550.js +0 -18
  463. package/dist/AttributeStore-b90878e3.js +0 -1707
  464. package/dist/Avatar/Avatar.d.ts +0 -66
  465. package/dist/BaseDynamicLayerView2D-b2faf028.js +0 -63
  466. package/dist/BingMapsLayer-5d79fe2b.js +0 -112
  467. package/dist/Bitmap-f775c851.js +0 -128
  468. package/dist/BitmapContainer-af5942b8.js +0 -23
  469. package/dist/BlendLayer-a792edf6.js +0 -13
  470. package/dist/BoundsStore-789624df.js +0 -63
  471. package/dist/BufferObject-cbd0168e.js +0 -100
  472. package/dist/BufferView-004ad517.js +0 -683
  473. package/dist/BuildingSceneLayer-25bc760b.js +0 -535
  474. package/dist/Button/Button.d.ts +0 -82
  475. package/dist/Button-70963624.js +0 -36
  476. package/dist/CSVLayer-fd3b6750.js +0 -208
  477. package/dist/CSVSourceWorker-eb24cd85.js +0 -367
  478. package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +0 -66
  479. package/dist/CatalogFootprintLayerView2D-6eb16597.js +0 -76
  480. package/dist/CatalogLayer-1cc632fe.js +0 -262
  481. package/dist/CatalogLayerView2D-d143aa34.js +0 -52
  482. package/dist/Checkbox/Checkbox.d.ts +0 -87
  483. package/dist/ClassBreaksDefinition-07ba0c64.js +0 -18
  484. package/dist/ColorMaterial.glsl-e7801766.js +0 -64
  485. package/dist/ColorSet-df5696b5.js +0 -45
  486. package/dist/ColorStop-7187f368.js +0 -29
  487. package/dist/Container-ac97765a.js +0 -521
  488. package/dist/CustomParametersMixin-b3432b3e.js +0 -12
  489. package/dist/DataTable/Column/Column.d.ts +0 -36
  490. package/dist/DataTable/Counters/Counters.d.ts +0 -41
  491. package/dist/DataTable/DataTable.d.ts +0 -113
  492. package/dist/DefaultMaterial.glsl-3cc4efe7.js +0 -42
  493. package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +0 -653
  494. package/dist/DefaultTheme-12dffc66.js +0 -130
  495. package/dist/DeleteForwardEditsParameters-ae76d898.js +0 -18
  496. package/dist/DimensionLayer-9eb47c76.js +0 -129
  497. package/dist/DirectLineMeasurement3D-e9903136.js +0 -449
  498. package/dist/DistanceMeasurement2D-a4853462.js +0 -303
  499. package/dist/DoubleArray-5076283e.js +0 -25
  500. package/dist/EdgeProcessingWorker-c1783ddd.js +0 -63
  501. package/dist/EditBusLayer-e812f4c9.js +0 -107
  502. package/dist/ElevationInfo-fad03d5e.js +0 -56
  503. package/dist/ElevationLayer-397792d5.js +0 -129
  504. package/dist/ElevationQuery-beceb62f.js +0 -598
  505. package/dist/ElevationSamplerWorker-0048a204.js +0 -62
  506. package/dist/ExportImageParameters-c6c4bc61.js +0 -66
  507. package/dist/ExportStrategy-908f5b8d.js +0 -93
  508. package/dist/ExportWMSImageParameters-34da6b46.js +0 -33
  509. package/dist/External-14daf0c1.js +0 -110
  510. package/dist/FeatureCollectionSnappingSource-f97a1829.js +0 -130
  511. package/dist/FeatureCommandQueue-d4817eac.js +0 -1244
  512. package/dist/FeatureEffect-08976bbd.js +0 -39
  513. package/dist/FeatureEffectLayer-05c258f4.js +0 -13
  514. package/dist/FeatureFilter-8c5e44b1.js +0 -27
  515. package/dist/FeatureLayer-d3659466.js +0 -693
  516. package/dist/FeatureLayerBase-9b63f732.js +0 -148
  517. package/dist/FeatureLayerSource-960f1c01.js +0 -444
  518. package/dist/FeatureLayerView2D-7503e1ed.js +0 -1967
  519. package/dist/FeaturePipelineWorker-d4301d2a.js +0 -3633
  520. package/dist/FeatureReductionLayer-e6cf73ac.js +0 -225
  521. package/dist/FeatureReductionSelection-d90249a7.js +0 -22
  522. package/dist/FeatureServiceSnappingSource-9e49ca72.js +0 -481
  523. package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +0 -747
  524. package/dist/FeatureSet-d79f0e48.js +0 -188
  525. package/dist/FeatureStore-eb4b87c0.js +0 -131
  526. package/dist/FeatureTemplate-edb1b782.js +0 -12
  527. package/dist/FeatureType-bba29adb.js +0 -25
  528. package/dist/FieldsIndex-75cca4d0.js +0 -109
  529. package/dist/FormTemplate-22911c47.js +0 -350
  530. package/dist/GeoJSONLayer-b33c96b8.js +0 -236
  531. package/dist/GeoJSONSourceWorker-b04ff552.js +0 -247
  532. package/dist/GeoRSSLayer-6e5fcd0e.js +0 -73
  533. package/dist/GeoRSSLayerView2D-21b6b12e.js +0 -140
  534. package/dist/GeometryUtils-fa897cbd.js +0 -403
  535. package/dist/GraphicContainer-1fd6bfce.js +0 -26
  536. package/dist/GraphicManipulator-f3b7dc9b.js +0 -1499
  537. package/dist/GraphicsLayer-e0686779.js +0 -38
  538. package/dist/GraphicsLayerView2D-a7eba2fe.js +0 -114
  539. package/dist/GraphicsSnappingSource-594f402a.js +0 -273
  540. package/dist/GraphicsView2D-347562b8.js +0 -620
  541. package/dist/GroupLayer-7ae0a916.js +0 -147
  542. package/dist/GroupLayerView2D-ffcde606.js +0 -98
  543. package/dist/HUDMaterial.glsl-b0a3e0ce.js +0 -65
  544. package/dist/HighlightCounter-e18f0179.js +0 -41
  545. package/dist/HighlightGraphicContainer-fd774cea.js +0 -18
  546. package/dist/I3SBinaryReader-190e99de.js +0 -310
  547. package/dist/I3SLayerDefinitions-6ddaca60.js +0 -55
  548. package/dist/I3SUtil-44b83dc0.js +0 -59
  549. package/dist/IdentityManager-fbe91c13.js +0 -899
  550. package/dist/ImageHistogramParameters-d64fd9c8.js +0 -905
  551. package/dist/ImageryLayer-67878a78.js +0 -1799
  552. package/dist/ImageryLayerView2D-ae45faba.js +0 -352
  553. package/dist/ImageryTileLayer-9dca8b93.js +0 -2157
  554. package/dist/ImageryTileLayerView2D-977f66aa.js +0 -1110
  555. package/dist/Indices-e6dc3b15.js +0 -67
  556. package/dist/Input/Input.core.d.ts +0 -159
  557. package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +0 -112
  558. package/dist/IntegratedMeshLayer-9162c0b5.js +0 -141
  559. package/dist/InteractiveAnalysisViewModel-b046fcb9.js +0 -7397
  560. package/dist/InterleavedLayout-32973c8a.js +0 -163
  561. package/dist/KMLLayer-80f81df7.js +0 -162
  562. package/dist/KMLLayerView2D-b6ba3b80.js +0 -253
  563. package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +0 -43
  564. package/dist/LRUCache-27e8c401.js +0 -32
  565. package/dist/LabelClass-d9a476d6.js +0 -135
  566. package/dist/LabelMetric-e2728bbf.js +0 -400
  567. package/dist/LaserlinePath.glsl-60d00e61.js +0 -64
  568. package/dist/Laserlines.glsl-499a6cbf.js +0 -65
  569. package/dist/LayerFloorInfo-d05cf9dd.js +0 -15
  570. package/dist/LayerView-036988a9.js +0 -206
  571. package/dist/Legend/Legend.d.ts +0 -73
  572. package/dist/LercWorker-b1b4bb47.js +0 -157
  573. package/dist/LineOfSightLayer-9a9a60b7.js +0 -147
  574. package/dist/LinkChartLayer-d61803bb.js +0 -1027
  575. package/dist/Lyr3DWorker-87be14e0.js +0 -82
  576. package/dist/MagnifierPrograms-da7a27ab.js +0 -806
  577. package/dist/Map/Map.d.ts +0 -26
  578. package/dist/MapImageLayer-f07adf1a.js +0 -169
  579. package/dist/MapImageLayerView2D-d1b140c3.js +0 -146
  580. package/dist/MapNotesLayer-c662d147.js +0 -283
  581. package/dist/MapNotesLayerView2D-bf9ac698.js +0 -161
  582. package/dist/MapServiceLayerViewHelper-fb724de9.js +0 -288
  583. package/dist/MeasurementWidgetContent-e4888ef2.js +0 -2642
  584. package/dist/MediaLayer-36d873a3.js +0 -523
  585. package/dist/MediaLayerView2D-e58b8ec0.js +0 -332
  586. package/dist/MemCache-a9232ec2.js +0 -227
  587. package/dist/MemorySourceWorker-20ff27d6.js +0 -222
  588. package/dist/Mesh-3839826a.js +0 -980
  589. package/dist/MeshLocalVertexSpace-00151564.js +0 -19
  590. package/dist/Modal/Modal.d.ts +0 -106
  591. package/dist/MultiOriginJSONSupport-bb258670.js +0 -158
  592. package/dist/OGCFeatureLayer-2a8b7ecc.js +0 -211
  593. package/dist/OGCFeatureLayerView2D-185f9649.js +0 -82
  594. package/dist/ObjectStack-10d91171.js +0 -21
  595. package/dist/Octree-78797046.js +0 -495
  596. package/dist/OpenStreetMapLayer-b0a17790.js +0 -30
  597. package/dist/OperationalLayer-55af27d6.js +0 -44
  598. package/dist/OrderByInfo-22e3c805.js +0 -16
  599. package/dist/OrderedLayer-1403a591.js +0 -26
  600. package/dist/OrientedImageryLayer-8ec8d7d1.js +0 -216
  601. package/dist/OverlayCompositing.glsl-ba3bd81d.js +0 -65
  602. package/dist/OverrideHelper-82325a2c.js +0 -242
  603. package/dist/PBFDecoderWorker-f6517afc.js +0 -213
  604. package/dist/Paginator/Paginator.d.ts +0 -43
  605. package/dist/PointCloudLayer-cff43a10.js +0 -197
  606. package/dist/PointCloudUniqueValueRenderer-f337a895.js +0 -115
  607. package/dist/PointCloudWorker-cdb28dc1.js +0 -212
  608. package/dist/PooledRBush-ee4e60af.js +0 -272
  609. package/dist/Popup-c7f55588.js +0 -3990
  610. package/dist/PortalLayer-07b3c53e.js +0 -126
  611. package/dist/Program-ba2f18b2.js +0 -694
  612. package/dist/ProgramTemplate-eee4f097.js +0 -35
  613. package/dist/ProgressBar/ProgressBar.d.ts +0 -73
  614. package/dist/QueryEngine-10c97624.js +0 -896
  615. package/dist/QueryTask-115430b6.js +0 -119
  616. package/dist/RadioButton/RadioButton.d.ts +0 -87
  617. package/dist/RasterSymbolizer-fbf433fe.js +0 -3024
  618. package/dist/RasterVFDisplayObject-20b0dd86.js +0 -581
  619. package/dist/RasterWorker-44c37e20.js +0 -78
  620. package/dist/RawBlockCache-25203dbd.js +0 -185
  621. package/dist/RealisticTree.glsl-bc07c4dc.js +0 -42
  622. package/dist/RefreshableLayer-9550b85a.js +0 -80
  623. package/dist/RefreshableLayerView-601f7038.js +0 -16
  624. package/dist/Relationship-c662830e.js +0 -64
  625. package/dist/RelationshipQuery-765f068e.js +0 -22
  626. package/dist/RenderingContext-3db74548.js +0 -889
  627. package/dist/RibbonLine.glsl-c6a715b7.js +0 -65
  628. package/dist/RouteLayer-3f5411f3.js +0 -786
  629. package/dist/RouteLayerView2D-a5fd4cbf.js +0 -195
  630. package/dist/SDFHelper-a34e90ee.js +0 -140
  631. package/dist/SSAO.glsl-5491a708.js +0 -43
  632. package/dist/SSAOBlur.glsl-f3068b8e.js +0 -42
  633. package/dist/ScaleRangeLayer-7ddf00b4.js +0 -21
  634. package/dist/SceneLayer-c594bfc3.js +0 -542
  635. package/dist/SceneLayerSnappingSource-a0504ac7.js +0 -218
  636. package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +0 -112
  637. package/dist/SceneLayerWorker-1865768e.js +0 -164
  638. package/dist/SceneService-fb9f0142.js +0 -215
  639. package/dist/Scheduler-eacc84bb.js +0 -373
  640. package/dist/Select/Item/Item.d.ts +0 -104
  641. package/dist/Select/Multiple/Select.multiple.d.ts +0 -90
  642. package/dist/Select/Select.core.d.ts +0 -78
  643. package/dist/Select/Single/Select.single.d.ts +0 -66
  644. package/dist/ShadedColorMaterial.glsl-db97956b.js +0 -64
  645. package/dist/SnappingOperation-9622a00d.js +0 -48
  646. package/dist/SourceLayerData-7016f1a5.js +0 -116
  647. package/dist/SpatialFilter-d20d4f50.js +0 -1701
  648. package/dist/Stop-68022e32.js +0 -281
  649. package/dist/StreamLayer-7c837e3d.js +0 -188
  650. package/dist/StreamLayerView2D-586f5a6a.js +0 -164
  651. package/dist/StyleRepository-fba75e70.js +0 -2212
  652. package/dist/SublayersOwner-3dc574cd.js +0 -545
  653. package/dist/SubtypeGroupLayer-1f9c5398.js +0 -514
  654. package/dist/SubtypeGroupLayerView2D-0f108d9d.js +0 -84
  655. package/dist/Tabs/Tab/Tab.d.ts +0 -69
  656. package/dist/Tabs/Tabs.d.ts +0 -50
  657. package/dist/TechniqueInstance-0481dbff.js +0 -233
  658. package/dist/TemporalLayer-8116b4a4.js +0 -23
  659. package/dist/Texture-22a8cca5.js +0 -501
  660. package/dist/TextureOnly.glsl-458f8148.js +0 -65
  661. package/dist/Theme-f05b8eb0.js +0 -3426
  662. package/dist/Tick-aef93b48.js +0 -723
  663. package/dist/TileContainer-0bf0ea1b.js +0 -31
  664. package/dist/TileInfoTilemapCache-d78858c0.js +0 -38
  665. package/dist/TileLayer-0edee064.js +0 -194
  666. package/dist/TileLayerView2D-78d5801b.js +0 -187
  667. package/dist/TilemapCache-79699d61.js +0 -189
  668. package/dist/TimeInfo-40c96ade.js +0 -42
  669. package/dist/TimeOnly-9ee66ca6.js +0 -706
  670. package/dist/Tipograph/Paragraph/Paragraph.d.ts +0 -25
  671. package/dist/Tipograph/Title/Title.d.ts +0 -25
  672. package/dist/Toggle/Toggle.d.ts +0 -45
  673. package/dist/Tooltip-e7498dc9.js +0 -138
  674. package/dist/TopFeaturesQuery-ad224e01.js +0 -32
  675. package/dist/TurboLine-6ab04aef.js +0 -565
  676. package/dist/UniqueValueRenderer-eaa5f8a6.js +0 -1039
  677. package/dist/UnknownLayer-e280ddd4.js +0 -30
  678. package/dist/UnknownTimeZone-220952b5.js +0 -15
  679. package/dist/UnsupportedLayer-447f7676.js +0 -31
  680. package/dist/UpdateTracking2D-e9adad8f.js +0 -8566
  681. package/dist/Upload/Upload.d.ts +0 -129
  682. package/dist/Util-002f5109.js +0 -57
  683. package/dist/VectorTileLayer-3210be81.js +0 -544
  684. package/dist/VectorTileLayerView2D-6a51e3b8.js +0 -2108
  685. package/dist/Version-3de8cbca.js +0 -33
  686. package/dist/VertexArrayObject-07998745.js +0 -73
  687. package/dist/VertexColor.glsl-e415cf02.js +0 -2683
  688. package/dist/VertexSnappingCandidate-b676241f.js +0 -13
  689. package/dist/VideoLayerView2D-f659dd0d.js +0 -124
  690. package/dist/VoxelLayer-003f82ff.js +0 -631
  691. package/dist/WFSLayer-3da6c5f7.js +0 -221
  692. package/dist/WFSSourceWorker-9a11693a.js +0 -157
  693. package/dist/WGLContainer-3d159b63.js +0 -5426
  694. package/dist/WMSLayer-fc0632f8.js +0 -536
  695. package/dist/WMSLayerView2D-54e80e1b.js +0 -117
  696. package/dist/WMTSLayer-9324b12b.js +0 -531
  697. package/dist/WMTSLayerView2D-3ef936db.js +0 -142
  698. package/dist/WebTileLayer-45c563ff.js +0 -110
  699. package/dist/WhereClause-7a28b740.js +0 -2766
  700. package/dist/WorkerHandle-0d54a6c7.js +0 -47
  701. package/dist/WorkerTileHandler-786c2b24.js +0 -1539
  702. package/dist/action-163397e3.js +0 -198
  703. package/dist/action-group-4859fb97.js +0 -145
  704. package/dist/action-menu-2d70b2fc.js +0 -1759
  705. package/dist/apng-9b71d52c.js +0 -392
  706. package/dist/arcade-fa309282.js +0 -229
  707. package/dist/arcadeAsyncRuntime-738498fd.js +0 -943
  708. package/dist/arcadeUtils-f71d80fa.js +0 -8741
  709. package/dist/arcgis-knowledge-client-core-6056bcea.js +0 -1218
  710. package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +0 -1218
  711. package/dist/arcgisLayers-b2b878bd.js +0 -152
  712. package/dist/associatedFeatureServiceUtils-df5b5187.js +0 -92
  713. package/dist/axisAngleDegrees-32643b7c.js +0 -49
  714. package/dist/basis_transcoder-3187cc92.js +0 -1248
  715. package/dist/calcite-action-bar-5a87c23c.js +0 -303
  716. package/dist/calcite-action-ee2ca847.js +0 -22
  717. package/dist/calcite-action-group-19aa86ee.js +0 -28
  718. package/dist/calcite-button-8e9175c0.js +0 -228
  719. package/dist/calcite-flow-57d26d2d.js +0 -128
  720. package/dist/calcite-flow-item-4a3e3fc0.js +0 -499
  721. package/dist/calcite-icon-d99e280a.js +0 -16
  722. package/dist/calcite-input-28b20785.js +0 -24
  723. package/dist/calcite-label-4f30e08d.js +0 -79
  724. package/dist/calcite-list-0cee7628.js +0 -2135
  725. package/dist/calcite-list-item-0a19efa8.js +0 -576
  726. package/dist/calcite-list-item-group-0706662f.js +0 -71
  727. package/dist/calcite-loader-865045b1.js +0 -14
  728. package/dist/calcite-modal-3e4da6fd.js +0 -333
  729. package/dist/calcite-notice-50b74ab7.js +0 -181
  730. package/dist/calcite-option-713c1d40.js +0 -94
  731. package/dist/calcite-scrim-809fbd0b.js +0 -18
  732. package/dist/calcite-select-28d8edfc.js +0 -231
  733. package/dist/capabilities-c8f838be.js +0 -50
  734. package/dist/chartCommon-13718cda.js +0 -256
  735. package/dist/chartUtilsAm5-6be145fb.js +0 -2954
  736. package/dist/clientSideDefaults-5c1f97c9.js +0 -39
  737. package/dist/colorRamps-8792655e.js +0 -38
  738. package/dist/colorUtils-54f4b662.js +0 -164
  739. package/dist/commonProperties-f9559903.js +0 -60
  740. package/dist/computeTranslationToOriginAndRotation-4876cb93.js +0 -60
  741. package/dist/conditionalSlot-87175989.js +0 -27
  742. package/dist/createConnection-f974a00a.js +0 -299
  743. package/dist/dataUtils-7c276b73.js +0 -1421
  744. package/dist/deduplicate-59fb9cac.js +0 -89
  745. package/dist/defaults-2bfa4a36.js +0 -31
  746. package/dist/deleteForwardEdits-f653b513.js +0 -13
  747. package/dist/diffUtils-e71a6152.js +0 -90
  748. package/dist/drapedUtils-b42fcbc6.js +0 -75
  749. package/dist/earcut-6fa1a128.js +0 -292
  750. package/dist/edgeProcessing-2ff1f201.js +0 -252
  751. package/dist/editingSupport-68545668.js +0 -203
  752. package/dist/editsZScale-c7cdd215.js +0 -37
  753. package/dist/elevationInfoUtils-5456a079.js +0 -126
  754. package/dist/executeForIds-4ab75c0d.js +0 -14
  755. package/dist/executeForTopCount-7e095ec1.js +0 -17
  756. package/dist/executeForTopExtents-19daf9d0.js +0 -17
  757. package/dist/executeForTopIds-1ba3a4af.js +0 -17
  758. package/dist/executeQueryJSON-46168866.js +0 -15
  759. package/dist/executeQueryPBF-d8623daf.js +0 -152
  760. package/dist/executeRelationshipQuery-011dfb45.js +0 -53
  761. package/dist/executeTopFeaturesQuery-02166801.js +0 -18
  762. package/dist/featureConversionUtils-650d7601.js +0 -479
  763. package/dist/featureLayerUtils-64e09283.js +0 -142
  764. package/dist/featureLayerUtils-b07f9c11.js +0 -250
  765. package/dist/featureSetUtils-9d37d6f8.js +0 -2530
  766. package/dist/featuresetbase-62aeb079.js +0 -707
  767. package/dist/featuresetgeom-51f9fc4e.js +0 -99
  768. package/dist/featuresetstats-4db32894.js +0 -81
  769. package/dist/featuresetstring-990c3287.js +0 -95
  770. package/dist/fetchService-5198dd4a.js +0 -33
  771. package/dist/fieldProperties-edfa24cb.js +0 -33
  772. package/dist/floatRGBA-516d7961.js +0 -20
  773. package/dist/form-99719d52.js +0 -138
  774. package/dist/geohashUtils-2bc76440.js +0 -85
  775. package/dist/geojson-603231df.js +0 -208
  776. package/dist/geomasync-e9063b4c.js +0 -567
  777. package/dist/geometryEngine-d3bb2fd6.js +0 -192
  778. package/dist/geometryEngineAsync-55aa6170.js +0 -217
  779. package/dist/geometryEngineBase-527e8b63.js +0 -18463
  780. package/dist/geometryEngineJSON-28087174.js +0 -46
  781. package/dist/geometryEngineJSON-d54949f9.js +0 -171
  782. package/dist/geometryEngineWorker-dc2c7127.js +0 -11
  783. package/dist/geometryServiceUtils-6a3e1e93.js +0 -28
  784. package/dist/georeference-ed8b2c30.js +0 -291
  785. package/dist/gif-204e82dd.js +0 -323
  786. package/dist/gltfexport-b2566542.js +0 -705
  787. package/dist/groupLayerUtils-ea9e6359.js +0 -39
  788. package/dist/heatmapUtils-56758920.js +0 -45
  789. package/dist/highlightReasons-de432106.js +0 -19
  790. package/dist/hydrated-0e1c7565.js +0 -40
  791. package/dist/i3s-bb0b5b67.js +0 -809
  792. package/dist/icon-c6e3bd23.js +0 -127
  793. package/dist/imageBitmapUtils-881d8c64.js +0 -23
  794. package/dist/imageUtils-57eeedc5.js +0 -69
  795. package/dist/imageUtils-ef69c578.js +0 -89
  796. package/dist/imageryUtils-23f51cb1.js +0 -43
  797. package/dist/index-01c737ed.js +0 -42563
  798. package/dist/input-message-673a9baa.js +0 -92
  799. package/dist/input2-bbf6454e.js +0 -575
  800. package/dist/interactive-aeb2cb9f.js +0 -80
  801. package/dist/jsonContext-2dc288b1.js +0 -15
  802. package/dist/jsonUtils-1abd4bfc.js +0 -59
  803. package/dist/jsonUtils-913fa1bd.js +0 -86
  804. package/dist/jsonUtils-f6a5e63b.js +0 -476
  805. package/dist/kmlUtils-7c2744fe.js +0 -112
  806. package/dist/knowledgeGraphService-6a349e04.js +0 -739
  807. package/dist/knowledgegraph-c91b0bb2.js +0 -149
  808. package/dist/labelUtils-a3634e8f.js +0 -61
  809. package/dist/labelingInfo-568c9210.js +0 -46
  810. package/dist/layersCreator-4a5366ea.js +0 -151
  811. package/dist/layersLoader-b87d4857.js +0 -197
  812. package/dist/lazyLayerLoader-8817000c.js +0 -10
  813. package/dist/lclayout-64c67b4e.js +0 -773
  814. package/dist/lengthUtils-695e744c.js +0 -5
  815. package/dist/lerc-wasm-13192bf3.js +0 -325
  816. package/dist/libtess-asm-4883179d.js +0 -3673
  817. package/dist/libtess-fc70d1ce.js +0 -269
  818. package/dist/lineSegment-3aa941f5.js +0 -76
  819. package/dist/loadGLTFMesh-db6645f5.js +0 -181
  820. package/dist/loadable-266f324b.js +0 -24
  821. package/dist/loader-d1ce1bc1.js +0 -79
  822. package/dist/lyr3DWorker-dd48e619.js +0 -2108
  823. package/dist/mapViewDeps-226d9da3.js +0 -3052
  824. package/dist/mediaLayerUtils-ae485c27.js +0 -35
  825. package/dist/meshFeatureSet-8a2ad011.js +0 -126
  826. package/dist/meshVertexSpaceUtils-6efe3dcc.js +0 -58
  827. package/dist/multidimensionalUtils-508a3f3f.js +0 -290
  828. package/dist/normalizeUtilsSync-1dae280b.js +0 -181
  829. package/dist/number-5aa3a81b.js +0 -128
  830. package/dist/objectResourceUtils-642ab03e.js +0 -1455
  831. package/dist/observers-f646a6a4.js +0 -30
  832. package/dist/ogcFeatureUtils-46ac1c44.js +0 -206
  833. package/dist/openCloseComponent-47eb52c6.js +0 -37
  834. package/dist/orientedBoundingBox-554ccdc6.js +0 -447
  835. package/dist/parser-0701286c.js +0 -488
  836. package/dist/pbf-5dd791f5.js +0 -215
  837. package/dist/pbfQueryUtils-a6ca7e23.js +0 -422
  838. package/dist/pe-wasm-6c16b121.js +0 -887
  839. package/dist/persistable-9eb0e8df.js +0 -89
  840. package/dist/perspectiveUtils-b194621d.js +0 -42
  841. package/dist/pieChart-b97433d0.js +0 -555
  842. package/dist/plane-3398eec1.js +0 -160
  843. package/dist/popupUtils-c444b896.js +0 -22
  844. package/dist/popupUtils-d871563b.js +0 -50
  845. package/dist/portalItemUtils-4c4caad0.js +0 -57
  846. package/dist/portalLayers-cb07742f.js +0 -312
  847. package/dist/portalUtils-effd590f.js +0 -7
  848. package/dist/programUtils-65af7b7c.js +0 -59
  849. package/dist/project-ee9c2947.js +0 -21
  850. package/dist/projectPointToVector-7dc831a9.js +0 -14
  851. package/dist/projectVectorToVector-5163db7a.js +0 -13
  852. package/dist/quantityUtils-5cd4cf90.js +0 -33
  853. package/dist/quantizationUtils-0a8f74c6.js +0 -68
  854. package/dist/quat-a508aed3.js +0 -104
  855. package/dist/query-b6e1fd14.js +0 -89
  856. package/dist/queryAttachments-7b39ebdc.js +0 -39
  857. package/dist/queryEngineUtils-cb8e309e.js +0 -21
  858. package/dist/queryTopFeatures-2e0e3941.js +0 -50
  859. package/dist/queryZScale-c5733d0a.js +0 -12
  860. package/dist/rasterProjectionHelper-213afa27.js +0 -577
  861. package/dist/rasterUtils-f2e44e8b.js +0 -122
  862. package/dist/rasterizingUtils-25cc0190.js +0 -46
  863. package/dist/request-e0c679b3.js +0 -46
  864. package/dist/requestImageUtils-37d79281.js +0 -8
  865. package/dist/resourceExtension-5f3f1c80.js +0 -17
  866. package/dist/resourceUtils-0d68cbc2.js +0 -69
  867. package/dist/resourceUtils-374db840.js +0 -62
  868. package/dist/resourceUtils-43ce192b.js +0 -42
  869. package/dist/saveAPIKeyUtils-1a3d4a8a.js +0 -8
  870. package/dist/saveUtils-43fdc547.js +0 -24
  871. package/dist/scaleUtils-bdf8b6cb.js +0 -23
  872. package/dist/scrim-44eb4dc0.js +0 -114
  873. package/dist/serviceCapabilitiesUtils-823612b8.js +0 -64
  874. package/dist/sourceUtils-01d115c6.js +0 -71
  875. package/dist/sphere-908cd9aa.js +0 -199
  876. package/dist/statsWorker-49f9befe.js +0 -37
  877. package/dist/streamLayerUtils-29324e05.js +0 -31
  878. package/dist/styleUtils-82e8da52.js +0 -75
  879. package/dist/styleUtils-8541d60d.js +0 -14
  880. package/dist/sublayerUtils-eaac2486.js +0 -37
  881. package/dist/substitute-1f578d70.js +0 -52
  882. package/dist/symbolColorUtils-18fd6b3d.js +0 -8
  883. package/dist/symbolLayerUtils-4c58b291.js +0 -31
  884. package/dist/symbologySnappingCandidates-14d94b6b.js +0 -221
  885. package/dist/t9n-c1c2b6c8.js +0 -349
  886. package/dist/testSVGPremultipliedAlpha-159dac90.js +0 -94
  887. package/dist/timeSupport-3f529cdb.js +0 -410
  888. package/dist/triangle-8a3a2ba8.js +0 -98
  889. package/dist/unitConversionUtils-f0ebaf75.js +0 -17
  890. package/dist/unitFormatUtils-555e2d94.js +0 -40
  891. package/dist/uploadAssetErrors-d1389781.js +0 -70
  892. package/dist/uploadAssets-5e85f09d.js +0 -330
  893. package/dist/utils-3a10b10c.js +0 -34
  894. package/dist/utils-505c54e9.js +0 -91
  895. package/dist/utils-5432e258.js +0 -433
  896. package/dist/utils-7a88ec6a.js +0 -419
  897. package/dist/utils-7fa9cdf9.js +0 -2746
  898. package/dist/utils-d252c575.js +0 -73
  899. package/dist/utils-f07e00b3.js +0 -232
  900. package/dist/utils-fda10b4b.js +0 -79
  901. package/dist/utils3-c34ab97c.js +0 -75
  902. package/dist/vec3-f79c600d.js +0 -81
  903. package/dist/vec42-36edeb73.js +0 -125
  904. package/dist/versionUtils-6935648b.js +0 -161
  905. package/dist/visualVariableUtils-c425461a.js +0 -267
  906. package/dist/webStyleSymbolUtils-4f42a29f.js +0 -48
  907. package/dist/webglDeps-5f18210d.js +0 -23
  908. package/dist/wfsUtils-6f7f1e3e.js +0 -343
  909. package/dist/workerHelper-9dc9a790.js +0 -11
  910. package/dist/xyChart-e5648fee.js +0 -3335
@@ -0,0 +1,1967 @@
1
+ import { e as h, y as f, c as W, z as Ie, S as Ye, aO as g, c5 as lt, bR as ot, gY as ut, n as xe, aG as ct, W as C, s as q, dF as dt, bJ as pe, dO as et, c$ as pt, dc as ht, jR as ft, b as tt, cs as ae, q as fe, ab as yt, dQ as N, bz as ne, ci as ge, iF as mt, cy as ke, o as Ee, fG as gt, H as qe, ch as Ue, hI as Le, by as ye, da as bt, jS as Be, jT as St, jU as Je, jV as vt, jW as _t, hA as oe, iW as ve, jX as wt, k as Vt, cv as It, V as xt, B as Et, g as De, b3 as Ft, P as Rt, x as Ot, fc as $t, i as _e, jY as zt } from "./index-6ebf29c1.js";
2
+ import { m as je } from "./diffUtils-54c1c039.js";
3
+ import { b as He, E as we, R as H, a as Tt, N as Qe } from "./Container-f931e682.js";
4
+ import { d as te } from "./FeatureFilter-1635b86a.js";
5
+ import { d as Fe } from "./FeatureSet-ffd45984.js";
6
+ import { t as Ct } from "./highlightReasons-b0f772b2.js";
7
+ import { m as At, u as Pt } from "./LayerView-e41297e4.js";
8
+ import { i as Ge, r as Mt } from "./TechniqueInstance-397b7dc2.js";
9
+ import { r as Ke, K as Z, o as Nt, e as kt, Z as qt } from "./UpdateTracking2D-23c8ff3f.js";
10
+ import { b as Ut } from "./WGLContainer-f05c906a.js";
11
+ import { o as Lt } from "./tileUtils-3e0c8c1d.js";
12
+ import { m as Bt } from "./lengthUtils-6a89d855.js";
13
+ import { i as M } from "./sizeVariableUtils-a1b694d8.js";
14
+ import { c as Jt } from "./OrderByInfo-e9ed942d.js";
15
+ import { c as Dt } from "./labelingInfo-62fc9d21.js";
16
+ import { f as jt } from "./heatmapUtils-b512588d.js";
17
+ import { i as G, o as ue } from "./enums-fa8f05ab.js";
18
+ import { e as Ht } from "./SDFHelper-b08be611.js";
19
+ import "./LabelMetric-ee740bd1.js";
20
+ import { P as ce } from "./definitions-a00a3a6c.js";
21
+ import { n as me, h as x, c as z, d as de, e as U, f as ie, i as Re, x as be, t as Oe, m as L, g as Qt, b as Gt } from "./FeatureCommandQueue-4e426066.js";
22
+ import { t as Kt } from "./HighlightCounter-fda615cd.js";
23
+ import { j as Wt } from "./commonProperties-d1f695a2.js";
24
+ import { m as Zt } from "./FeatureEffect-0a86f0ba.js";
25
+ import { o as We } from "./floorFilterUtils-936f7587.js";
26
+ import { p as Ve, n as Xt } from "./popupUtils-b72d32fb.js";
27
+ import { i as Yt } from "./RefreshableLayerView-4956f17c.js";
28
+ let he = class extends Ie {
29
+ constructor() {
30
+ super(...arguments), this.isAggregate = !0;
31
+ }
32
+ getEffectivePopupTemplate(e = !1) {
33
+ var r;
34
+ if (this.popupTemplate)
35
+ return this.popupTemplate;
36
+ const t = (r = this.sourceLayer) == null ? void 0 : r.featureReduction;
37
+ return t && "popupTemplate" in t && t.popupEnabled ? t.popupTemplate : null;
38
+ }
39
+ getObjectId() {
40
+ return this.attributes.aggregateId;
41
+ }
42
+ };
43
+ h([f({ type: Boolean })], he.prototype, "isAggregate", void 0), he = h([W("esri.AggregateGraphic")], he);
44
+ const $e = he;
45
+ let E = class extends Ye {
46
+ constructor(e) {
47
+ super(e), this._filter = null, this.duration = g("mapview-transitions-duration"), this._excludedEffectView = new He(e), this._includedEffectView = new He(e);
48
+ }
49
+ get excludedEffects() {
50
+ return this._excludedEffectView.effects;
51
+ }
52
+ set featureEffect(e) {
53
+ this._get("featureEffect") !== e && this._transitionTo(e);
54
+ }
55
+ get filter() {
56
+ var e;
57
+ return this._filter || ((e = this.featureEffect) == null ? void 0 : e.filter) || null;
58
+ }
59
+ get hasEffects() {
60
+ return this._excludedEffectView.hasEffects || this._includedEffectView.hasEffects;
61
+ }
62
+ get includedEffects() {
63
+ return this._includedEffectView.effects;
64
+ }
65
+ set scale(e) {
66
+ this._set("scale", e), this._excludedEffectView.scale = e, this._includedEffectView.scale = e;
67
+ }
68
+ get transitioning() {
69
+ return this._excludedEffectView.transitioning || this._includedEffectView.transitioning;
70
+ }
71
+ transitionStep(e, t) {
72
+ this._set("scale", t), this.transitioning ? (this._includedEffectView.transitionStep(e, t), this._excludedEffectView.transitionStep(e, t), this.transitioning || (this._filter = null)) : (this._excludedEffectView.scale = t, this._includedEffectView.scale = t);
73
+ }
74
+ endTransitions() {
75
+ this._includedEffectView.endTransitions(), this._excludedEffectView.endTransitions(), this._filter = null;
76
+ }
77
+ _transitionTo(e) {
78
+ const t = this._get("featureEffect"), r = e, s = r == null ? void 0 : r.includedEffect, a = r == null ? void 0 : r.excludedEffect, n = this._includedEffectView.canTransitionTo(s) && this._excludedEffectView.canTransitionTo(a);
79
+ this._includedEffectView.effect = s, this._excludedEffectView.effect = a, this._set("featureEffect", r), this._filter = (r == null ? void 0 : r.filter) || (t == null ? void 0 : t.filter) || null, n || this.endTransitions();
80
+ }
81
+ };
82
+ h([f()], E.prototype, "_filter", void 0), h([f()], E.prototype, "_excludedEffectView", void 0), h([f()], E.prototype, "_includedEffectView", void 0), h([f()], E.prototype, "duration", void 0), h([f()], E.prototype, "excludedEffects", null), h([f()], E.prototype, "featureEffect", null), h([f()], E.prototype, "filter", null), h([f()], E.prototype, "hasEffects", null), h([f()], E.prototype, "includedEffects", null), h([f({ value: 0 })], E.prototype, "scale", null), h([f()], E.prototype, "transitioning", null), E = h([W("esri.layers.effects.FeatureEffectView")], E);
83
+ const ei = E;
84
+ let ee = class extends Fe {
85
+ constructor() {
86
+ super(...arguments), this.features = [];
87
+ }
88
+ readFeatures(e, t) {
89
+ var a;
90
+ const r = ot.fromJSON(t.spatialReference), s = [];
91
+ for (let n = 0; n < e.length; n++) {
92
+ const o = e[n], u = $e.fromJSON(o), l = (a = o.geometry) == null ? void 0 : a.spatialReference;
93
+ u.geometry == null || l || (u.geometry.spatialReference = r);
94
+ const c = o.aggregateGeometries, d = u.aggregateGeometries;
95
+ if (c && d != null)
96
+ for (const p in d) {
97
+ const y = d[p], m = c[p], b = m == null ? void 0 : m.spatialReference;
98
+ y == null || b || (y.spatialReference = r);
99
+ }
100
+ s.push(u);
101
+ }
102
+ return s;
103
+ }
104
+ };
105
+ h([f({ type: [$e], json: { write: !0 } })], ee.prototype, "features", void 0), h([lt("features")], ee.prototype, "readFeatures", null), ee = h([W("esri.rest.support.AggregateFeatureSet")], ee);
106
+ const ti = ee;
107
+ let ii = class {
108
+ constructor() {
109
+ this._instanceById = /* @__PURE__ */ new Map();
110
+ }
111
+ destroy() {
112
+ this._instanceById.clear();
113
+ }
114
+ get size() {
115
+ return this._instanceById.size;
116
+ }
117
+ updateStart() {
118
+ this._instanceByIdNext = /* @__PURE__ */ new Map();
119
+ }
120
+ updateEnd() {
121
+ if (!this._instanceByIdNext)
122
+ throw new Error("InternalError: Found updateEnd call without corresponding updateStart");
123
+ for (const e of this._instanceById.keys())
124
+ this._instanceByIdNext.has(e) || this._instanceById.delete(e);
125
+ for (const [e, t] of this._instanceByIdNext.entries()) {
126
+ const r = this._instanceById.get(e);
127
+ r ? r.setInput(t.getInput()) : this._instanceById.set(e, t);
128
+ }
129
+ this._instanceByIdNext = null;
130
+ }
131
+ values() {
132
+ return this._instanceById.values();
133
+ }
134
+ ensureInstance(e, t, r) {
135
+ let s = `${e.registryName}`;
136
+ for (const n in t) {
137
+ const o = t[n];
138
+ if (typeof o == "object" && n === "geometry")
139
+ for (const u in o)
140
+ s += `.${n}.${u}.${o[u] != null}`;
141
+ else
142
+ s += `.${n}.${t[n] != null}`;
143
+ }
144
+ if (r != null)
145
+ for (const n in r)
146
+ r[n] && (s += `-${n}`);
147
+ const a = ut(s);
148
+ if (this._instanceByIdNext) {
149
+ const n = new Ge(Ke(a), e, e.meshWriter.name, t, r);
150
+ return this._instanceByIdNext.set(a, n), n;
151
+ }
152
+ if (!this._instanceById.has(a)) {
153
+ const n = new Ge(Ke(a), e, e.meshWriter.name, t, r);
154
+ this._instanceById.set(a, n);
155
+ }
156
+ return this._instanceById.get(a);
157
+ }
158
+ getInstance(e) {
159
+ return this._instanceById.get(e);
160
+ }
161
+ }, ri = class {
162
+ constructor(e, t, r) {
163
+ this.getStage = e, this.version = t, this._tileInfoView = r, this._tiles = /* @__PURE__ */ new Map(), this._pendingUpdates = [], this._locked = !1;
164
+ }
165
+ destroy() {
166
+ }
167
+ tiles() {
168
+ return this._tiles.values();
169
+ }
170
+ size() {
171
+ return this._tiles.size;
172
+ }
173
+ setTiles(e) {
174
+ this._tiles.clear();
175
+ for (const t of e)
176
+ this._tiles.set(t.key.id, t);
177
+ }
178
+ lockUploads() {
179
+ this._locked = !0;
180
+ }
181
+ unlockUploads() {
182
+ this._locked = !1;
183
+ for (const e of this._pendingUpdates)
184
+ this.updateTile(e);
185
+ this._pendingUpdates = [];
186
+ }
187
+ updateTile(e) {
188
+ var a;
189
+ if (this._locked)
190
+ return void this._pendingUpdates.push(e);
191
+ if (g("esri-2d-update-debug")) {
192
+ const n = ((a = e.debugInfo) == null ? void 0 : a.chunkId) ?? "<EnsureEnd>";
193
+ console.debug(`Version[${e.version}] Tile[${e.id}] Chunk[${n}] RenderState.updateTile [${e.type}]`, e);
194
+ }
195
+ const t = this._ensureTile(e.id);
196
+ if (e.type === "update") {
197
+ const [n, ...o] = e.modify;
198
+ t.onMessage({ type: "update", modify: n, remove: e.remove, end: e.end, attributeEpoch: e.attributeEpoch });
199
+ for (const u of o) {
200
+ const l = this._tiles.get(u.tileId);
201
+ l && l.onMessage({ type: "update", modify: u, remove: e.remove, end: !1, isPixelBuffer: !0, attributeEpoch: null });
202
+ }
203
+ return;
204
+ }
205
+ if (e.append == null)
206
+ return void t.onMessage({ type: "append", clear: e.clear, debugInfo: e.debugInfo, end: e.end, attributeEpoch: e.attributeEpoch });
207
+ const [r, ...s] = e.append;
208
+ t.onMessage({ type: "append", clear: e.clear, append: r, debugInfo: e.debugInfo, end: e.end, attributeEpoch: e.attributeEpoch });
209
+ for (const n of s) {
210
+ const o = this._tiles.get(n.tileId);
211
+ o && o.onMessage({ type: "update", modify: n, remove: [], sort: !1, end: !1, isPixelBuffer: !0, attributeEpoch: null });
212
+ }
213
+ }
214
+ removeTile(e) {
215
+ const t = this._tiles.get(e);
216
+ g("esri-2d-update-debug") && console.debug(`Tile[${e}] RenderState.removeTile`), t == null || t.destroy(), this._tiles.delete(e);
217
+ }
218
+ isTileDone(e) {
219
+ const t = this._tiles.get(e.id);
220
+ return !!t && t.isReady;
221
+ }
222
+ _ensureTile(e) {
223
+ if (!this._tiles.has(e)) {
224
+ const t = this._createTile(e);
225
+ this._copyPixelBufferedEntitiesInto(t), this._tiles.set(e, t);
226
+ }
227
+ return this._tiles.get(e);
228
+ }
229
+ _createTile(e) {
230
+ g("esri-2d-update-debug") && console.debug(`Version[${this.version}] Tile[${e}] RenderState.createTile`);
231
+ const t = new xe(e), r = this._tileInfoView.getTileBounds(ct(), t), s = this._tileInfoView.getTileResolution(t.level), a = new Ut(t, s, r[0], r[3], !0);
232
+ if (a.stage = this.getStage(), !a.stage) {
233
+ const n = new C("featurelayerview:webgl", "Cannot create tile with empty stage");
234
+ q.getLogger("esri.views.2d.layers.features.RenderState").error(n);
235
+ }
236
+ return a;
237
+ }
238
+ _copyPixelBufferedEntitiesInto(e) {
239
+ let t = 7;
240
+ for (let r = -1; r <= 1; r++)
241
+ for (let s = -1; s <= 1; s++) {
242
+ if (r === 0 && s === 0)
243
+ continue;
244
+ const a = this._tileInfoView.tileInfo.isWrappable, n = Lt(e.key, s, r, a).id, o = this._tiles.get(n);
245
+ if (o != null) {
246
+ const u = 1 << t;
247
+ e.copyPixelBufferedEntitesFrom(o, u, s, r);
248
+ }
249
+ t--;
250
+ }
251
+ }
252
+ }, si = class {
253
+ constructor(e, t) {
254
+ this.id = e, this.version = t, this._resolver = et(), this._done = !1;
255
+ }
256
+ get done() {
257
+ return this._done;
258
+ }
259
+ get promise() {
260
+ return this._resolver.promise;
261
+ }
262
+ end() {
263
+ this._resolver.resolve(), this._done = !0;
264
+ }
265
+ destroy() {
266
+ this._resolver.reject();
267
+ }
268
+ }, ai = class extends Mt {
269
+ constructor(e) {
270
+ super(e.view.featuresTilingScheme), this.updatingHandles = new dt(), this._hitTestsRequests = [], this._store = new ii(), this._visibleTiles = /* @__PURE__ */ new Set(), this._subscriptions = /* @__PURE__ */ new Map(), this._updateStatisticsRequests = [], this._lockStatisticUpdates = !1, this._layerView = e;
271
+ }
272
+ renderChildren(e) {
273
+ if (this.attributeView.update(), this._renderState) {
274
+ const t = Array.from(this._renderState.tiles()).filter((r) => r.needsUpload);
275
+ t.length && (t[Math.floor(Math.random() * t.length)].upload(), t.length >= 2 && this.requestRender());
276
+ for (const r of this._renderState.tiles())
277
+ r.tryReady(this.attributeView.currentEpoch) && (this._layerView.requestUpdate(), this.hasLabels && this._layerView.view.labelManager.requestUpdate(), this.requestRender());
278
+ }
279
+ for (const t of this.children)
280
+ t.setTransform(e.state);
281
+ switch (this.hasAnimation && e.painter.effects.integrate.draw(e, e.attributeView), super.renderChildren(e), e.drawPhase) {
282
+ case we.MAP:
283
+ return this._renderMapPhase(e);
284
+ case we.HIGHLIGHT:
285
+ return this._renderHighlightPhase(e);
286
+ case we.LABEL:
287
+ return this._renderLabelPhase(e);
288
+ }
289
+ }
290
+ subscriptions() {
291
+ return this._subscriptions.values();
292
+ }
293
+ get _instanceStore() {
294
+ return this._store;
295
+ }
296
+ get instanceStore() {
297
+ return this._store;
298
+ }
299
+ get layerView() {
300
+ return this._layerView;
301
+ }
302
+ get hasLabels() {
303
+ return this._layerView.labelingCollisionInfos.length > 0;
304
+ }
305
+ get hasHighlight() {
306
+ return this._layerView.hasHighlight();
307
+ }
308
+ get _layer() {
309
+ return this._layerView.layer;
310
+ }
311
+ _getExclusivePostprocessingInstance({ drawPhase: e }) {
312
+ if (this._instanceStore == null)
313
+ return null;
314
+ let t = 0, r = null;
315
+ for (const s of this._instanceStore.values())
316
+ s.techniqueRef.drawPhase & e && (t++, s.techniqueRef.postProcessingEnabled && (r = s));
317
+ return t > 1 ? null : r;
318
+ }
319
+ _getOverrideStencilRef({ drawPhase: e }) {
320
+ if (this._instanceStore == null)
321
+ return null;
322
+ let t = null;
323
+ for (const r of this._instanceStore.values()) {
324
+ if (!(r.techniqueRef.drawPhase & e))
325
+ continue;
326
+ const { overrideStencilRef: s } = r.techniqueRef;
327
+ if (t == null)
328
+ t = s;
329
+ else if (t !== s) {
330
+ t = null;
331
+ break;
332
+ }
333
+ }
334
+ return t;
335
+ }
336
+ get children() {
337
+ return this._renderState ? Array.from(this._renderState.tiles()).filter((e) => this._visibleTiles.has(e.key.id)) : [];
338
+ }
339
+ async updateAttributeView(e) {
340
+ this.requestRender(), await this.updatingHandles.addPromise(this.attributeView.requestUpdate(e)), this.hasLabels && this._layerView.view.labelManager.requestUpdate();
341
+ }
342
+ updateSubscriptions(e) {
343
+ for (const { tileId: t, version: r } of e.subscribe)
344
+ if (this._subscriptions.has(t))
345
+ this._subscriptions.get(t).version = r;
346
+ else {
347
+ const s = new si(t, r);
348
+ this._subscriptions.set(t, s), this.updatingHandles.addPromise(s.promise);
349
+ }
350
+ for (const t of e.unsubscribe) {
351
+ const r = this._subscriptions.get(t);
352
+ r == null || r.destroy(), this._subscriptions.delete(t), this.removeTile(t);
353
+ }
354
+ }
355
+ isDone(e) {
356
+ return !!this._renderState && this._renderState.isTileDone(e);
357
+ }
358
+ async updateRenderState(e) {
359
+ g("esri-2d-update-debug") && console.debug(`Version[${e}] FeatureContainer.updateRenderState`), this._renderStateNext = new ri(() => this._stage, e, this._tileInfoView);
360
+ }
361
+ getDisplayStatistics(e, t) {
362
+ const r = this._statisticsByLevel.get(e);
363
+ return r ? r.get(t) : null;
364
+ }
365
+ updateStatistics(e, t) {
366
+ if (this._lockStatisticUpdates)
367
+ return void this._updateStatisticsRequests.push({ level: e, statistics: t });
368
+ let r = this._statisticsByLevel.get(e);
369
+ r || (r = /* @__PURE__ */ new Map(), this._statisticsByLevel.set(e, r));
370
+ for (const s of t)
371
+ r.set(s.fieldName, { minValue: s.minValue, maxValue: s.maxValue });
372
+ }
373
+ editStart() {
374
+ var e;
375
+ (e = this._renderState) == null || e.lockUploads(), this.attributeView.lockTextureUploads(), this._lockStatisticUpdates = !0;
376
+ }
377
+ editEnd() {
378
+ var e;
379
+ (e = this._renderState) == null || e.unlockUploads(), this.attributeView.unlockTextureUploads(), this._lockStatisticUpdates = !1;
380
+ for (const t of this._updateStatisticsRequests)
381
+ this.updateStatistics(t.level, t.statistics);
382
+ this._updateStatisticsRequests = [], this.requestRender();
383
+ }
384
+ swapRenderState() {
385
+ var e;
386
+ if (this._renderStateNext && (g("esri-2d-update-debug") && console.debug(`Version[${this._renderStateNext.version}] FeatureContainer.update.swapRenderState`), (e = this._renderState) == null || e.destroy(), this._renderState = this._renderStateNext, this._renderStateNext = null), this._renderState)
387
+ for (const t of this._renderState.tiles())
388
+ t.upload();
389
+ this.requestRender();
390
+ }
391
+ setVisibleTiles(e) {
392
+ this._visibleTiles = e;
393
+ }
394
+ async onMessage(e, t) {
395
+ if (pe(t), !this._subscriptions.has(e.id))
396
+ return;
397
+ const r = this._subscriptions.get(e.id);
398
+ if (r.version !== e.subscriptionVesrion) {
399
+ if (g("esri-2d-update-debug")) {
400
+ const a = `${e.subscriptionVesrion} != ${r.version}`;
401
+ console.debug(`Version[${a}] Tile[${e.id}] FeatureContainer - Dropping message, outdated version]`, e);
402
+ }
403
+ return;
404
+ }
405
+ const s = this._renderStateNext ?? this._renderState;
406
+ if (!s)
407
+ throw new Error("InternalError: No renderState defined");
408
+ s.version !== e.version && console.error(`InternalError: Version mismatch. [renderState: ${s.version}, message: ${e.version}]`), s.updateTile(e), e.end && this._subscriptions.get(e.id).end(), this.requestRender(), this._layerView.view.labelManager.requestUpdate(), this._layerView.requestUpdate();
409
+ }
410
+ removeTile(e) {
411
+ (this._renderState || this._renderStateNext) && (this._renderState && this._renderState.removeTile(e), this._renderStateNext && this._renderStateNext.removeTile(e));
412
+ }
413
+ hitTest(e) {
414
+ let t = this._hitTestsRequests.find(({ x: s, y: a }) => s === e.x && a === e.y);
415
+ const r = et();
416
+ return t ? t.resolvers.push(r) : (t = { x: e.x, y: e.y, resolvers: [r] }, this._hitTestsRequests.push(t)), this.requestRender(), r.promise;
417
+ }
418
+ getSortKeys(e) {
419
+ const t = new Set(e), r = /* @__PURE__ */ new Map();
420
+ for (const s of this.children)
421
+ if (s.getSortKeys(t).forEach((a, n) => r.set(n, a)), r.size === t.size)
422
+ break;
423
+ return r;
424
+ }
425
+ get hasAnimation() {
426
+ return this.hasLabels;
427
+ }
428
+ updateTransitionProperties(e, t) {
429
+ super.updateTransitionProperties(e, t), this._layerView.featureEffectView.transitionStep(e, t), this._layerView.featureEffectView.transitioning && this.requestRender();
430
+ }
431
+ doRender(e) {
432
+ const { minScale: t, maxScale: r } = this._layer.effectiveScaleRange, s = e.state.scale;
433
+ s <= (t || 1 / 0) && s >= r && super.doRender(e);
434
+ }
435
+ afterRender(e) {
436
+ super.afterRender(e), this._hitTestsRequests.length && this.requestRender();
437
+ }
438
+ setStencilReference(e) {
439
+ const t = this._getOverrideStencilRef(e);
440
+ if (t == null)
441
+ super.setStencilReference(e);
442
+ else
443
+ for (const r of this.children)
444
+ r.stencilRef = t(r);
445
+ }
446
+ _renderMapPhase(e) {
447
+ this._layerView.featureEffectView.hasEffects ? (this._renderOutsideEffect(e), this._renderInsideEffect(e)) : this._renderFeatures(e, H.All), this._hitTestsRequests.length > 0 && this._renderHittest(e);
448
+ }
449
+ _renderHighlightPhase(e) {
450
+ this.hasHighlight && Tt(e, !1, (t) => {
451
+ this._renderFeatures(t, H.Highlight);
452
+ });
453
+ }
454
+ _renderLabelPhase(e) {
455
+ this._renderFeatures(e, H.All);
456
+ }
457
+ _renderInsideEffect(e) {
458
+ const t = e.painter.effects.insideEffect;
459
+ t.bind(e), this._renderFeatures(e, H.InsideEffect), t.draw(e, this._layerView.featureEffectView.includedEffects), t.unbind();
460
+ }
461
+ _renderOutsideEffect(e) {
462
+ const t = e.painter.effects.outsideEffect;
463
+ t.bind(e), this._renderFeatures(e, H.OutsideEffect), t.draw(e, this._layerView.featureEffectView.excludedEffects), t.unbind();
464
+ }
465
+ _renderHittest(e) {
466
+ const { context: t } = e, r = e.painter.effects.hittest, s = t.getBoundFramebufferObject(), a = t.getViewport(), n = e.passOptions;
467
+ r.bind(e), e.passOptions = r.createOptions(e, this._hitTestsRequests), this._renderFeatures(e, H.All), r.draw(e), r.unbind(), t.bindFramebuffer(s), t.restoreViewport(a), e.passOptions = n;
468
+ }
469
+ _renderFeatures(e, t) {
470
+ for (const s of this.children) {
471
+ if (!s.visible)
472
+ continue;
473
+ const a = g("featurelayer-force-marker-text-draw-order") ? Qe.STRICT_MARKERS_AND_TEXT : Qe.BATCHING, n = s.getDisplayList(e.drawPhase, this._instanceStore, a);
474
+ e.selection = t, n == null || n.render(e);
475
+ }
476
+ const r = this._getExclusivePostprocessingInstance(e);
477
+ r != null && r.techniqueRef.postProcess(e, r);
478
+ }
479
+ };
480
+ async function ni(i) {
481
+ const e = await pt("FeaturePipelineWorker", { client: i, strategy: "dedicated" });
482
+ return new li(e);
483
+ }
484
+ let li = class {
485
+ constructor(e) {
486
+ this._connection = e, this.pipeline = this._connection.createInvokeProxy(), this.features = this._connection.createInvokeProxy("features"), this.aggregates = this._connection.createInvokeProxy("aggregates"), this.streamMessenger = this._connection.createInvokeProxy("streamMessenger");
487
+ }
488
+ destroy() {
489
+ this._connection.destroy();
490
+ }
491
+ get closed() {
492
+ return this._connection.closed;
493
+ }
494
+ };
495
+ const oi = "esri.views.2d.layers.features.FeatureSourceEventLog";
496
+ let T = class extends Ye {
497
+ constructor() {
498
+ super(...arguments), this.events = new ht(), this._updatingStrategy = !0, this._tileToEvent = new ft(), this._fetchStatus = { outstanding: 0, done: 0 };
499
+ }
500
+ get hasAllFeatures() {
501
+ var e;
502
+ return this._hasAllData() && (((e = this._strategyInfo) == null ? void 0 : e.willQueryAllFeatures) ?? !1);
503
+ }
504
+ get hasAllFeaturesInView() {
505
+ return this._hasAllData();
506
+ }
507
+ get hasFullGeometries() {
508
+ var e;
509
+ return this._hasAllData() && (((e = this._strategyInfo) == null ? void 0 : e.willQueryFullResolutionGeometry) ?? !1);
510
+ }
511
+ onEvent(e) {
512
+ switch (e.type) {
513
+ case "subscribe":
514
+ case "unsubscribe":
515
+ case "loaded":
516
+ case "error":
517
+ this._handleTileEvent(e);
518
+ break;
519
+ case "updateStrategyStart":
520
+ this._updatingStrategy = !0, this._fetchStatus = { done: 0, outstanding: 0 }, this._strategyInfo = e.about;
521
+ break;
522
+ case "updateStrategyEnd":
523
+ this._updatingStrategy = !1;
524
+ break;
525
+ case "updateFieldsStart":
526
+ this._fetchStatus = { done: 0, outstanding: 0 };
527
+ break;
528
+ case "updateFieldsEnd":
529
+ break;
530
+ case "updateFieldsError":
531
+ this.events.emit("error", e);
532
+ break;
533
+ case "fetchStart":
534
+ this._fetchStatus.outstanding += 1, this.events.emit("status", this._fetchStatus);
535
+ break;
536
+ case "fetchEnd":
537
+ this._fetchStatus.done += 1, this.events.emit("status", this._fetchStatus), e.done && (this._fetchStatus = { done: 0, outstanding: 0 });
538
+ }
539
+ }
540
+ _hasAllData() {
541
+ return !this._updatingStrategy && this._hasAllTileData();
542
+ }
543
+ _hasAllTileData() {
544
+ for (const e of this._tileToEvent.values())
545
+ if (e[e.length - 1].type !== "loaded")
546
+ return !1;
547
+ return !0;
548
+ }
549
+ _handleTileEvent(e) {
550
+ switch (e.type) {
551
+ case "subscribe":
552
+ this._tileToEvent.set(e.tile, [e]);
553
+ break;
554
+ case "unsubscribe":
555
+ this._tileToEvent.delete(e.tile);
556
+ break;
557
+ case "loaded": {
558
+ const t = this._tileToEvent.get(e.tile);
559
+ if (!t)
560
+ return;
561
+ t.push(e), this._tileToEvent.set(e.tile, t);
562
+ break;
563
+ }
564
+ case "error": {
565
+ const t = this._tileToEvent.get(e.tile);
566
+ if (!t)
567
+ return;
568
+ t.push(e), this._tileToEvent.set(e.tile, t), this.events.emit("error", e);
569
+ break;
570
+ }
571
+ }
572
+ }
573
+ };
574
+ h([f({ readOnly: !0 })], T.prototype, "hasAllFeatures", null), h([f({ readOnly: !0 })], T.prototype, "hasAllFeaturesInView", null), h([f({ readOnly: !0 })], T.prototype, "hasFullGeometries", null), h([f()], T.prototype, "_updatingStrategy", void 0), h([f()], T.prototype, "_strategyInfo", void 0), h([f()], T.prototype, "_tileToEvent", void 0), T = h([W(oi)], T);
575
+ function P(i) {
576
+ switch (i.geometryType) {
577
+ case "point":
578
+ return "esriGeometryPoint";
579
+ case "polyline":
580
+ return "esriGeometryPolyline";
581
+ case "polygon":
582
+ case "multipatch":
583
+ return "esriGeometryPolygon";
584
+ case "multipoint":
585
+ return "esriGeometryMultipoint";
586
+ default:
587
+ return null;
588
+ }
589
+ }
590
+ function R(i, e) {
591
+ const t = i.featureReduction;
592
+ return t && t.type !== "selection" && (!("maxScale" in t) || !t.maxScale || t.maxScale < e.scale) ? t : null;
593
+ }
594
+ const ui = Math.PI;
595
+ function it(i, e) {
596
+ switch (e.transformationType) {
597
+ case M.Additive:
598
+ return ci(i, e);
599
+ case M.Constant:
600
+ return di(e, i);
601
+ case M.ClampedLinear:
602
+ return pi(i, e);
603
+ case M.Proportional:
604
+ return hi(i, e);
605
+ case M.Stops:
606
+ return fi(i, e);
607
+ case M.RealWorldSize:
608
+ return yi(i, e);
609
+ case M.Identity:
610
+ return i;
611
+ case M.Unknown:
612
+ return null;
613
+ }
614
+ }
615
+ function O(i, e) {
616
+ return typeof i == "number" ? i : it(e, i);
617
+ }
618
+ function ci(i, e) {
619
+ return i + (O(e.minSize, i) || e.minDataValue);
620
+ }
621
+ function di(i, e) {
622
+ const t = i.stops;
623
+ let r = (t == null ? void 0 : t.length) && t[0].size;
624
+ return r == null && (r = i.minSize), O(r, e);
625
+ }
626
+ function pi(i, e) {
627
+ const t = e.minDataValue, r = e.maxDataValue, s = (i - t) / (r - t), a = O(e.minSize, i), n = O(e.maxSize, i);
628
+ return i <= t ? a : i >= r ? n : a + s * (n - a);
629
+ }
630
+ function hi(i, e) {
631
+ const t = i / e.minDataValue, r = O(e.minSize, i), s = O(e.maxSize, i);
632
+ let a = null;
633
+ return a = t * r, tt(a, r, s);
634
+ }
635
+ function fi(i, e) {
636
+ const [t, r, s] = mi(i, e.cache.ipData);
637
+ if (t === r)
638
+ return O(e.stops[t].size, i);
639
+ {
640
+ const a = O(e.stops[t].size, i);
641
+ return a + (O(e.stops[r].size, i) - a) * s;
642
+ }
643
+ }
644
+ function yi(i, e) {
645
+ const t = Bt[e.valueUnit], r = O(e.minSize, i), s = O(e.maxSize, i), { valueRepresentation: a } = e;
646
+ let n = null;
647
+ return n = a === "area" ? 2 * Math.sqrt(i / ui) / t : a === "radius" || a === "distance" ? 2 * i / t : i / t, tt(n, r, s);
648
+ }
649
+ function mi(i, e) {
650
+ if (!e)
651
+ return;
652
+ let t = 0, r = e.length - 1;
653
+ return e.some((s, a) => i < s ? (r = a, !0) : (t = a, !1)), [t, r, (i - e[t]) / (e[r] - e[t])];
654
+ }
655
+ function k(i) {
656
+ var e;
657
+ return (i.labelsVisible && ((e = i.labelingInfo) == null ? void 0 : e.every((t) => t.deconflictionStrategy !== "none"))) ?? !1;
658
+ }
659
+ function X(i, e) {
660
+ var r;
661
+ const t = R(i, e);
662
+ if (t != null && t.labelsVisible && ((r = t.labelingInfo) != null && r.length))
663
+ return t.labelingInfo.every((s) => s.deconflictionStrategy !== "none");
664
+ }
665
+ function gi(i) {
666
+ return (e) => ae(it(e, i));
667
+ }
668
+ function B(i) {
669
+ const e = i != null && "visualVariables" in i && i.visualVariables;
670
+ if (!e)
671
+ return null;
672
+ for (const t of e)
673
+ if (t.type === "size")
674
+ return gi(t);
675
+ return null;
676
+ }
677
+ function J(i, e, t, r, s) {
678
+ var u, l;
679
+ const a = e.subtypeCode != null ? `${e.subtypeField} = ${e.subtypeCode}` : null, n = fe(e.definitionExpression, a), o = e.customParameters ?? {};
680
+ return s && (o.token = s), { type: "feature", mutable: { sourceRefreshVersion: r, availableFields: t.availableFields, dataFilter: { definitionExpression: n, gdbVersion: e.gdbVersion, historicMoment: (u = e.historicMoment) == null ? void 0 : u.getTime(), outSpatialReference: t.outSpatialReference.toJSON(), timeExtent: (l = e.timeExtent) == null ? void 0 : l.toJSON(), customParameters: o } }, service: i, tileInfoJSON: t.tileInfoJSON };
681
+ }
682
+ function bi(i, e, t = 0) {
683
+ if (e == null)
684
+ return i[t] = 0, i[t + 1] = 0, i[t + 2] = 0, void (i[t + 3] = 0);
685
+ const { r, g: s, b: a, a: n } = e;
686
+ i[t] = r * n / 255, i[t + 1] = s * n / 255, i[t + 2] = a * n / 255, i[t + 3] = n;
687
+ }
688
+ async function A(i, e) {
689
+ if (!i)
690
+ return [];
691
+ switch (i.type) {
692
+ case "simple-fill":
693
+ return st(i, e);
694
+ case "picture-fill":
695
+ return Oi(i, e);
696
+ case "simple-marker":
697
+ return wi(i, e);
698
+ case "picture-marker":
699
+ return Vi(i, e);
700
+ case "simple-line":
701
+ return le(i, e, !1);
702
+ case "text":
703
+ return xi(i, e);
704
+ case "label":
705
+ return Ei(i, e);
706
+ case "cim":
707
+ return me(i.data, e);
708
+ case "web-style": {
709
+ const t = await i.fetchCIMSymbol();
710
+ return me(t.data, e);
711
+ }
712
+ default:
713
+ throw new Error(`symbol not supported ${i.type}`);
714
+ }
715
+ }
716
+ async function Si(i, e) {
717
+ const { schemaOptions: t } = e, { store: r } = t, s = new Array(ce), a = new Array(ce / 4);
718
+ for (let l = 0; l < ce; l++) {
719
+ const c = l < i.attributes.length ? i.attributes[l].color : null;
720
+ s[l] = [0, 0, 0, 0], bi(s[l], c);
721
+ }
722
+ for (let l = 0; l < ce / 4; l++)
723
+ a[l] = [0, 0, 0, 0], a[l][0] = 4 * l < i.attributes.length ? 1 : 0, a[l][1] = 4 * l + 1 < i.attributes.length ? 1 : 0, a[l][2] = 4 * l + 2 < i.attributes.length ? 1 : 0, a[l][3] = 4 * l + 3 < i.attributes.length ? 1 : 0;
724
+ const n = { isActive: a, colors: s, dotValue: i.dotValue, dotScale: i.referenceScale, blending: i.dotBlendingEnabled, dotSize: i.dotSize, seed: i.seed }, o = r.ensureInstance(x.dotDensity, n, {}).createMeshInfo({ params: { effects: null } }), u = [];
725
+ if (i.backgroundColor) {
726
+ const l = new yt({ color: i.backgroundColor, outline: null }), c = await A(l, e);
727
+ u.push(...c);
728
+ }
729
+ if (u.push(o), i.outline) {
730
+ const l = le(i.outline, e, !0);
731
+ u.push(...l);
732
+ }
733
+ return u;
734
+ }
735
+ async function vi(i, e) {
736
+ const { store: t } = e, { radius: r, minDensity: s, maxDensity: a, referenceScale: n, field: o, valueExpression: u, colorStops: l } = i, c = jt(l);
737
+ return [t.ensureInstance(x.heatmap, { radius: ae(r), minDensity: s, maxDensity: a, referenceScale: n, isFieldActive: !(!o && !u), gradient: c, gradientHash: c.join(",") }, {}).createMeshInfo({ params: { effects: null } })];
738
+ }
739
+ function _i(i, e) {
740
+ var n, o, u, l;
741
+ const { store: t } = e, r = ((n = i.outline) == null ? void 0 : n.width) || 0, s = z(i), a = t.ensureInstance(x.pieChart, { geometry: { outlineWidth: Math.round(ae(r)), defaultColor: de(i.defaultColor), outlineColor: de((o = i.outline) == null ? void 0 : o.color), othersColor: de((u = i.othersCategory) == null ? void 0 : u.color), donutRatio: i.holePercentage, sectorThreshold: ((l = i.othersCategory) == null ? void 0 : l.threshold) || 0, colors: i.attributes.map((c) => de(c.color)), visualVariableOpacity: s.visualVariableOpacity, visualVariableSizeMinMaxValue: s.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: s.visualVariableSizeScaleStops, visualVariableSizeStops: s.visualVariableSizeStops, visualVariableSizeUnitValue: s.visualVariableSizeUnitValue, hittestUniforms: null }, numberOfFields: i.attributes.length }, {}).createMeshInfo({ params: { size: i.size, outlineWidth: r, effects: null, scaleInfo: null, minPixelBuffer: U(s) } });
742
+ return [...i.backgroundFillSymbol ? st(i.backgroundFillSymbol, { schemaOptions: e, path: "", uniforms: be }) : [], a];
743
+ }
744
+ function rt(i) {
745
+ if (i.style === "path") {
746
+ if (i.path == null)
747
+ throw new Error("Symbol with a style of type path must define a path");
748
+ return { type: "sprite-rasterization-param", overrides: [], resource: { type: "path", path: i.path, asFill: !0 } };
749
+ }
750
+ const e = Z.fromSimpleMarker(i);
751
+ if ("outline" in i && i.outline && i.outline.style !== "none" && i.outline.style !== "solid") {
752
+ if (!e || !e.symbolLayers)
753
+ throw new Error("Error handling marker! ");
754
+ return { type: "sprite-rasterization-param", resource: e.symbolLayers[0], overrides: [] };
755
+ }
756
+ return { type: "sprite-rasterization-param", resource: Ht(e), overrides: [] };
757
+ }
758
+ async function wi(i, e) {
759
+ var p, y, m, b, V;
760
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r;
761
+ if (i.style === "path" || i.outline && i.outline.style !== "solid" && i.outline.style !== "none") {
762
+ const S = Z.fromSimpleMarker(i);
763
+ if (!S || !S.symbolLayers)
764
+ throw new Error("Error handling marker! ");
765
+ if (t.visualVariableRotation && (S.angleAlignment = "Map"), i.style !== "path") {
766
+ const w = S.symbolLayers[0];
767
+ if (ie(e.uniforms)) {
768
+ const v = U(e.uniforms, 0, 1);
769
+ if (v > w.size) {
770
+ const F = v / w.size;
771
+ w.size = v;
772
+ const $ = (p = w.markerGraphics) == null ? void 0 : p[0].symbol;
773
+ ($.symbolLayers && $.symbolLayers[0]).width *= F;
774
+ }
775
+ }
776
+ }
777
+ return me({ type: "CIMSymbolReference", symbol: S }, e);
778
+ }
779
+ const a = s.ensureInstance(x.marker, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableSizeMinMaxValue: t.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: t.visualVariableSizeScaleStops, visualVariableSizeStops: t.visualVariableSizeStops, visualVariableSizeUnitValue: t.visualVariableSizeUnitValue, visualVariableRotation: t.visualVariableRotation } }, { zoomRange: !1 }), n = rt(i);
780
+ let o = ((y = i.color) == null ? void 0 : y.toArray()) ?? [0, 0, 0, 0];
781
+ n.resource.type === "CIMVectorMarker" && (o = [255, 255, 255, 255]);
782
+ const u = i.style === "triangle" ? 124 / 116 : 1, l = i.size, c = l * u, d = t.visualVariableColor != null && (i.style === "cross" || i.style === "x");
783
+ return [a.createMeshInfo({ params: { type: "simple", color: o, height: l, width: c, offsetX: i.xoffset, offsetY: i.yoffset, angle: i.angle, alignment: Re(t) ? G.MAP : G.SCREEN, outlineColor: ((b = (m = i.outline) == null ? void 0 : m.color) == null ? void 0 : b.toArray()) ?? [0, 0, 0, 0], outlineSize: ((V = i.outline) == null ? void 0 : V.width) ?? 1, referenceSize: l, sprite: n, overrideOutlineColor: d, hasSizeVV: ie(t), placement: null, effects: null, transforms: null, scaleInfo: null, minPixelBuffer: U(t) } })];
784
+ }
785
+ function Vi(i, e) {
786
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r, a = s.ensureInstance(x.marker, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableSizeMinMaxValue: t.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: t.visualVariableSizeScaleStops, visualVariableSizeStops: t.visualVariableSizeStops, visualVariableSizeUnitValue: t.visualVariableSizeUnitValue, visualVariableRotation: t.visualVariableRotation } }, { zoomRange: !1 }), n = Z.createPictureMarkerRasterizationParam(i);
787
+ return n ? [a.createMeshInfo({ params: { type: "picture", color: [255, 255, 255, 255], height: i.height, width: i.width, offsetX: i.xoffset, offsetY: i.yoffset, angle: i.angle, alignment: Re(t) ? G.MAP : G.SCREEN, outlineColor: null, outlineSize: 0, referenceSize: i.height, sprite: n, overrideOutlineColor: !1, hasSizeVV: ie(t), placement: null, effects: null, transforms: null, scaleInfo: null, minPixelBuffer: U(t) } })] : [];
788
+ }
789
+ function Ii(i, e, t) {
790
+ var b, V;
791
+ const { uniforms: r, schemaOptions: s } = t, { store: a } = s, n = a.ensureInstance(x.marker, { geometry: { visualVariableColor: r.visualVariableColor, visualVariableOpacity: r.visualVariableOpacity, visualVariableSizeMinMaxValue: r.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: r.visualVariableSizeScaleStops, visualVariableSizeStops: r.visualVariableSizeStops, visualVariableSizeUnitValue: r.visualVariableSizeUnitValue, visualVariableRotation: r.visualVariableRotation } }, { zoomRange: !1 }), o = rt(i), u = 6, l = u * e.width, c = l, d = ((b = i.color) == null ? void 0 : b.toArray()) ?? ((V = e.color) == null ? void 0 : V.toArray()) ?? [0, 0, 0, 0], p = i.style === "cross" || i.style === "x";
792
+ let y;
793
+ switch (i.placement) {
794
+ case "begin-end":
795
+ y = ue.Both;
796
+ break;
797
+ case "begin":
798
+ y = ue.JustBegin;
799
+ break;
800
+ case "end":
801
+ y = ue.JustEnd;
802
+ break;
803
+ default:
804
+ y = ue.None;
805
+ }
806
+ const m = { type: "cim-marker-placement-info", placement: { type: "CIMMarkerPlacementAtExtremities", angleToLine: !0, offset: 0, extremityPlacement: y, offsetAlongLine: 0 }, overrides: [] };
807
+ return [n.createMeshInfo({ params: { type: "simple", color: d, height: c, width: l, offsetX: 0, offsetY: 0, angle: 0, alignment: Re(r) ? G.MAP : G.SCREEN, outlineColor: d, outlineSize: p ? e.width : 0, referenceSize: c / u, sprite: o, overrideOutlineColor: p && r.visualVariableColor != null, hasSizeVV: ie(r), placement: m, transforms: null, effects: null, scaleInfo: null, minPixelBuffer: U(r) } })];
808
+ }
809
+ function xi(i, e) {
810
+ var a, n, o, u;
811
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r;
812
+ return [s.ensureInstance(x.text, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableRotation: t.visualVariableRotation, visualVariableSizeMinMaxValue: t.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: t.visualVariableSizeScaleStops, visualVariableSizeStops: t.visualVariableSizeStops, visualVariableSizeUnitValue: t.visualVariableSizeUnitValue } }, { zoomRange: !1, clipAngle: !1, referenceSymbol: !1 }).createMeshInfo({ params: { boxBackgroundColor: (a = i.backgroundColor) == null ? void 0 : a.toArray(), boxBorderLineColor: (n = i.borderLineColor) == null ? void 0 : n.toArray(), boxBorderLineSize: i.borderLineSize ?? 0, color: ((o = i.color) == null ? void 0 : o.toArray()) ?? [0, 0, 0, 0], offsetX: i.xoffset, offsetY: i.yoffset, postAngle: i.angle, fontSize: i.font.size, decoration: i.font.decoration, haloColor: ((u = i.haloColor) == null ? void 0 : u.toArray()) ?? [0, 0, 0, 0], haloFontSize: i.haloSize ?? 0, lineWidth: i.lineWidth, lineHeightRatio: i.lineHeight, horizontalAlignment: i.horizontalAlignment, verticalAlignment: i.verticalAlignment, useCIMAngleBehavior: !1, glyphs: { type: "text-rasterization-param", resource: { type: "text", font: i.font.toJSON(), textString: i.text, symbol: Z.createCIMTextSymbolfromTextSymbol(i) }, overrides: [] }, referenceSize: null, effects: null, placement: null, scaleInfo: null, transforms: null, scaleFactor: 1, minPixelBuffer: U(t), repeatLabel: null, repeatLabelDistance: null, allowOverrun: null, labelPosition: null, isLineLabel: !1 } })];
813
+ }
814
+ function Ei(i, e) {
815
+ var m, b, V, S, w, v;
816
+ const { schemaOptions: t, uniforms: r } = e, { store: s } = t, a = i.symbol, { allowOverrun: n, repeatLabel: o, repeatLabelDistance: u } = i, l = { maxScale: i.maxScale ?? 0, minScale: i.minScale ?? 0 }, c = s.ensureInstance(x.label, { geometry: { visualVariableColor: null, visualVariableOpacity: null, visualVariableRotation: r.visualVariableRotation, visualVariableSizeMinMaxValue: r.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: r.visualVariableSizeScaleStops, visualVariableSizeStops: r.visualVariableSizeStops, visualVariableSizeUnitValue: r.visualVariableSizeUnitValue } }, { zoomRange: !0, clipAngle: !0, referenceSymbol: !0 }), d = i.labelPlacement, [p, y] = Nt(d);
817
+ return [c.createMeshInfo({ params: { boxBackgroundColor: (m = a.backgroundColor) == null ? void 0 : m.toArray(), boxBorderLineColor: (b = a.borderLineColor) == null ? void 0 : b.toArray(), boxBorderLineSize: a.borderLineSize ?? 0, color: ((V = a.color) == null ? void 0 : V.toArray()) ?? [0, 0, 0, 0], offsetX: a.xoffset, offsetY: a.yoffset, postAngle: a.angle, fontSize: a.font.size, decoration: a.font.decoration, haloColor: ((S = a.haloColor) == null ? void 0 : S.toArray()) ?? [0, 0, 0, 0], haloFontSize: a.haloSize ?? 0, lineWidth: a.lineWidth, lineHeightRatio: a.lineHeight, horizontalAlignment: p, verticalAlignment: y, repeatLabel: o, repeatLabelDistance: ae(u), allowOverrun: n, labelPosition: i.labelPosition, scaleInfo: l, minPixelBuffer: U(r), useCIMAngleBehavior: !1, glyphs: { type: "text-rasterization-param", resource: { type: "text", font: a.font.toJSON(), textString: a.text, symbol: Z.createCIMTextSymbolfromTextSymbol(a), primitiveName: "label-override" }, useLegacyLabelEvaluationRules: ((w = i.labelExpressionInfo) == null ? void 0 : w.expression) == null, overrides: [{ type: "CIMPrimitiveOverride", valueExpressionInfo: { type: "CIMExpressionInfo", expression: ((v = i.labelExpressionInfo) == null ? void 0 : v.expression) ?? i.labelExpression, returnType: "String" }, primitiveName: "label-override", propertyName: "textString", defaultValue: "" }] }, referenceSize: null, effects: null, placement: null, transforms: null, scaleFactor: 1, isLineLabel: !1 } })];
818
+ }
819
+ function ze(i, e) {
820
+ var r;
821
+ const t = i.width;
822
+ return { outlineColor: ((r = i.color) == null ? void 0 : r.toArray()) || [0, 0, 0, 1], width: t, referenceWidth: t, capType: i.cap ?? "round", joinType: i.join ?? "round", miterLimit: i.miterLimit, hasSizeVV: e };
823
+ }
824
+ function Fi(i, e) {
825
+ var l, c, d;
826
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r, a = ((l = i.color) == null ? void 0 : l.toArray()) ?? [0, 0, 0, 0], n = { type: "sprite-rasterization-param", resource: { type: "fill-style", style: i.style }, overrides: [] };
827
+ if (((c = i.outline) == null ? void 0 : c.style) === "solid")
828
+ return [s.ensureInstance(x.patternOutlineFill, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableSizeScaleStops: t.visualVariableSizeOutlineScaleStops, visualVariableSizeMinMaxValue: null, visualVariableSizeStops: null, visualVariableSizeUnitValue: null } }, { zoomRange: !1 }).createMeshInfo({ params: { color: a, ...ze(i.outline, !!t.visualVariableSizeOutlineScaleStops), sprite: n, scaleInfo: null, effects: null } })];
829
+ const o = [], u = s.ensureInstance(x.patternFill, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity } }, { zoomRange: !1 }).createMeshInfo({ params: { color: ((d = i.color) == null ? void 0 : d.toArray()) ?? [0, 0, 0, 0], sprite: n, scaleInfo: null, effects: null } });
830
+ return o.push(u), i.outline && o.push(...le(i.outline, e, !0)), o;
831
+ }
832
+ function Ri(i, e) {
833
+ var o, u;
834
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r, a = ((o = i.color) == null ? void 0 : o.toArray()) ?? [0, 0, 0, 0];
835
+ if (i.style !== "none" && ((u = i.outline) == null ? void 0 : u.style) === "solid")
836
+ return [s.ensureInstance(x.outlineFill, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableSizeScaleStops: t.visualVariableSizeOutlineScaleStops, visualVariableSizeMinMaxValue: null, visualVariableSizeStops: null, visualVariableSizeUnitValue: null } }, { zoomRange: !1 }).createMeshInfo({ params: { color: a, ...ze(i.outline, !!t.visualVariableSizeOutlineScaleStops), scaleInfo: null, effects: null } })];
837
+ const n = [];
838
+ if (i.style !== "none") {
839
+ const l = s.ensureInstance(x.fill, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity } }, { zoomRange: !1 }).createMeshInfo({ params: { color: a, scaleInfo: null, effects: null } });
840
+ n.push(l);
841
+ }
842
+ return i.outline && n.push(...le(i.outline, e, !0)), n;
843
+ }
844
+ function st(i, e) {
845
+ const { style: t } = i;
846
+ return t && t !== "none" && t !== "solid" ? Fi(i, e) : Ri(i, e);
847
+ }
848
+ function Oi(i, e) {
849
+ const { outline: t } = i, { uniforms: r, schemaOptions: s } = e, { store: a } = s, n = [], o = Z.createPictureFillRasterizationParam(i);
850
+ if (!o)
851
+ return [];
852
+ const { width: u, height: l, xoffset: c, yoffset: d, xscale: p, yscale: y } = i, m = { color: [255, 255, 255, 255], sprite: o, height: l, aspectRatio: u / l, offsetX: c, offsetY: d, scaleX: p, scaleY: y, angle: 0, applyRandomOffset: !1, sampleAlphaOnly: !1, scaleProportionally: !1, effects: null, scaleInfo: null };
853
+ if ((t == null ? void 0 : t.style) === "solid")
854
+ return [a.ensureInstance(x.complexOutlineFill, { geometry: { visualVariableColor: r.visualVariableColor, visualVariableOpacity: r.visualVariableOpacity, visualVariableSizeScaleStops: r.visualVariableSizeOutlineScaleStops, visualVariableSizeMinMaxValue: null, visualVariableSizeStops: null, visualVariableSizeUnitValue: null } }, { zoomRange: !1 }).createMeshInfo({ params: { ...m, ...ze(t, !!r.visualVariableSizeOutlineScaleStops) } })];
855
+ const b = a.ensureInstance(x.complexFill, { geometry: { visualVariableColor: r.visualVariableColor, visualVariableOpacity: r.visualVariableOpacity } }, { zoomRange: !1 });
856
+ return n.push(b.createMeshInfo({ params: m })), t && n.push(...le(t, e, !0)), n;
857
+ }
858
+ function le(i, e, t) {
859
+ const { color: r, style: s, width: a, cap: n, join: o } = i, { schemaOptions: u } = e, { store: l } = u, c = [], d = t ? { ...be, visualVariableSizeScaleStops: e.uniforms.visualVariableSizeOutlineScaleStops } : e.uniforms, p = { geometry: { visualVariableColor: d.visualVariableColor, visualVariableOpacity: d.visualVariableOpacity, visualVariableSizeMinMaxValue: d.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: d.visualVariableSizeScaleStops, visualVariableSizeStops: d.visualVariableSizeStops, visualVariableSizeUnitValue: d.visualVariableSizeUnitValue } }, y = { color: (r == null ? void 0 : r.toArray()) ?? [0, 0, 0, 0], width: a, referenceWidth: a, capType: n, joinType: o, miterLimit: i.miterLimit, hasSizeVV: ie(d), effects: null, scaleInfo: null };
860
+ if (s == null || s === "solid") {
861
+ const m = l.ensureInstance(x.line, p, { zoomRange: !1 }).createMeshInfo({ params: y });
862
+ c.push(m);
863
+ } else if (s !== "none") {
864
+ const m = l.ensureInstance(x.texturedLine, p, { zoomRange: !1 }).createMeshInfo({ params: { ...y, shouldScaleDash: !0, shouldSampleAlphaOnly: !1, isSDF: !0, sprite: { type: "sprite-rasterization-param", resource: { type: "dash", dashTemplate: kt(s, n), capStyle: qt(n) }, overrides: [] } } });
865
+ c.push(m);
866
+ }
867
+ return i.marker != null && c.push(...Ii(i.marker, i, e)), c;
868
+ }
869
+ async function re(i, e, t) {
870
+ const r = e.labelsVisible && e.labelingInfo || [], s = P(e), a = Dt(r, s);
871
+ return { type: "label", classes: await Promise.all(a.map((n, o) => $i(i, n, o, t))) };
872
+ }
873
+ async function $i(i, e, t, r) {
874
+ var a;
875
+ const s = await A(e, { path: `${t}`, schemaOptions: i, uniforms: r });
876
+ return { maxScale: e.maxScale, minScale: e.minScale, expression: ((a = e.labelExpressionInfo) == null ? void 0 : a.expression) ?? e.labelExpression, where: e.where, meshes: s };
877
+ }
878
+ async function se(i, e) {
879
+ if (!e)
880
+ return { type: "simple", meshes: [] };
881
+ switch (e.type) {
882
+ case "simple":
883
+ return zi(i, e);
884
+ case "dot-density":
885
+ return Ti(i, e);
886
+ case "class-breaks":
887
+ return Ci(i, e);
888
+ case "unique-value":
889
+ return Ai(i, e);
890
+ case "dictionary":
891
+ return Pi(e);
892
+ case "heatmap":
893
+ return Mi(i, e);
894
+ case "pie-chart":
895
+ return Ni(i, e);
896
+ }
897
+ }
898
+ async function zi(i, e) {
899
+ const t = e.getSymbols(), r = t.length ? t[0] : null, s = z(e);
900
+ return { type: "simple", meshes: await A(r, { schemaOptions: i, uniforms: s, path: "renderer.symbol" }) };
901
+ }
902
+ async function Ti(i, e) {
903
+ const t = z(e);
904
+ return { type: "dot-density", meshes: await Si(e, { schemaOptions: i, uniforms: t, path: "renderer.symbol" }) };
905
+ }
906
+ async function Ci(i, e) {
907
+ const t = z(e), r = e.backgroundFillSymbol, s = e.normalizationType, a = s === "log" ? "esriNormalizeByLog" : s === "percent-of-total" ? "esriNormalizeByPercentOfTotal" : s === "field" ? "esriNormalizeByField" : null, n = e.classBreakInfos.map(async (c) => ({ meshes: await A(c.symbol, { path: `renderer-stop-${c.minValue}-${c.maxValue}`, schemaOptions: i, uniforms: t }), min: c.minValue, max: c.maxValue })), o = (await Promise.all(n)).sort((c, d) => c.min - d.min), u = await A(r, { schemaOptions: i, path: "renderer.backgroundFill", uniforms: { ...be, visualVariableSizeOutlineScaleStops: t.visualVariableSizeOutlineScaleStops } }), l = await A(e.defaultSymbol, { schemaOptions: i, path: "renderer.defaultSymbol", uniforms: t });
908
+ return { type: "interval", field: e.field, expression: e.valueExpression, backgroundFill: u, defaultSymbol: l, intervals: o, normalizationField: e.normalizationField, normalizationTotal: e.normalizationTotal, normalizationType: a, isMaxInclusive: e.isMaxInclusive };
909
+ }
910
+ async function Ai(i, e) {
911
+ const t = [], r = z(e), s = await A(e.backgroundFillSymbol, { schemaOptions: i, path: "renderer.backgroundFill", uniforms: { ...be, visualVariableSizeOutlineScaleStops: r.visualVariableSizeOutlineScaleStops } }), a = await A(e.defaultSymbol, { schemaOptions: i, path: "renderer.defaultSymbol", uniforms: r });
912
+ for (const n of e.uniqueValueInfos ?? []) {
913
+ const o = await A(n.symbol, { path: `renderer-unique-value-${n.value}`, schemaOptions: i, uniforms: r });
914
+ t.push({ value: "" + n.value, symbol: o });
915
+ }
916
+ return { type: "map", field: e.field, expression: e.valueExpression, field2: e.field2, field3: e.field3, fieldDelimiter: e.fieldDelimiter, backgroundFill: s, defaultSymbol: a, map: t };
917
+ }
918
+ function Pi(i) {
919
+ const e = z(i), t = i.scaleExpression, r = t != null && t !== "1" ? { valueExpressionInfo: { type: "CIMExpressionInfo", expression: i.scaleExpression, returnType: "Numeric" }, defaultValue: 1 } : void 0;
920
+ return { type: "dictionary", fieldMap: i.fieldMap, scaleExpression: r, visualVariableUniforms: e };
921
+ }
922
+ async function Mi(i, e) {
923
+ return { type: "heatmap", meshes: await vi(e, i) };
924
+ }
925
+ async function Ni(i, e) {
926
+ return { type: "pie-chart", meshes: _i(e, i) };
927
+ }
928
+ async function ki(i, e) {
929
+ const t = e.renderer, r = z(t);
930
+ return { symbology: await se(i, t), labels: await re(i, e, r) };
931
+ }
932
+ async function D(i, e, t, r) {
933
+ const s = t.featureReduction;
934
+ if (s)
935
+ switch (s.type) {
936
+ case "binning":
937
+ return Ui(s, i, e, t, r);
938
+ case "cluster":
939
+ return Li(s, i, e, t, r);
940
+ }
941
+ const a = Bi(t.orderBy, t.renderer, t.objectIdField);
942
+ return { storage: Oe(t.renderer, e.filters), mesh: { displayRefreshVersion: r, strategy: { type: "feature" }, factory: await ki(i, t), sortKey: a, timeZone: e.timeZone } };
943
+ }
944
+ function at(i, e) {
945
+ return i.fields.map((t) => ({ ...t.toJSON(), type: qi(t, e) }));
946
+ }
947
+ function qi(i, e) {
948
+ const { onStatisticExpression: t, onStatisticField: r, statisticType: s } = i;
949
+ switch (s) {
950
+ case "min":
951
+ case "max":
952
+ case "avg":
953
+ case "avg_angle":
954
+ case "sum":
955
+ case "count":
956
+ return "esriFieldTypeDouble";
957
+ case "mode": {
958
+ if (t) {
959
+ const { returnType: n } = t;
960
+ return n ? n === "string" ? "esriFieldTypeString" : "esriFieldTypeDouble" : "esriFieldTypeString";
961
+ }
962
+ const a = e.find((n) => n.name === r);
963
+ return a ? a.type : "esriFieldTypeString";
964
+ }
965
+ }
966
+ }
967
+ async function Ui(i, e, t, r, s) {
968
+ const a = at(i, r.fields), n = i.renderer, o = await se(e, n), u = Oe(n, [null, null]), l = z(n), c = await re(e, { geometryType: "polygon", labelingInfo: i.labelingInfo, labelsVisible: i.labelsVisible }, l);
969
+ return { storage: u, mesh: { displayRefreshVersion: s, strategy: { type: "binning", fields: a, fixedBinLevel: i.fixedBinLevel, featureFilter: t.filters[0] }, factory: { labels: c, symbology: o }, sortKey: null, timeZone: t.timeZone } };
970
+ }
971
+ async function Li(i, e, t, r, s) {
972
+ const a = at(i, r.fields), n = { type: "cluster", feature: await se(e, i.effectiveFeatureRenderer), cluster: await se(e, i.effectiveClusterRenderer) }, o = z(i.effectiveFeatureRenderer), u = { type: "cluster", feature: await re(e, r, o), cluster: await re(e, { geometryType: "point", labelingInfo: i.labelingInfo, labelsVisible: i.labelsVisible }, o) };
973
+ return { storage: Oe(i.effectiveFeatureRenderer, [null, null]), mesh: { displayRefreshVersion: s, strategy: { type: "cluster", fields: a, featureFilter: t.filters[0], clusterRadius: ae(i.clusterRadius / 2) }, factory: { labels: u, symbology: n }, sortKey: null, timeZone: t.timeZone } };
974
+ }
975
+ function Bi(i, e, t) {
976
+ const r = e != null && e.type === "unique-value" && e.orderByClassesEnabled;
977
+ if (i !== "default" || r || (i = [new Jt({ field: t, order: "descending" })]), i !== "default" && i.length) {
978
+ i.length;
979
+ const s = i[0], a = s.order === "ascending" ? "asc" : "desc";
980
+ return s.field ? { field: s.field, order: a } : s.valueExpression ? { expression: s.valueExpression, order: a } : null;
981
+ }
982
+ return r ? { byRenderer: !0, order: "asc" } : null;
983
+ }
984
+ let Ji = class {
985
+ constructor(e) {
986
+ this.layer = e;
987
+ }
988
+ getLabelingDeconflictionInfo(e) {
989
+ const t = this.layer, r = k(t);
990
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
991
+ }
992
+ async createServiceOptions(e) {
993
+ var v, F;
994
+ const t = this.layer, r = t.parent, s = N(r), { capabilities: a, editingInfo: n, objectIdField: o, globalIdField: u, datesInUnknownTimezone: l, orderBy: c, subtypeField: d, parsedUrl: p } = r, y = r.fieldsIndex.toJSON(), m = P(t), b = (v = r.timeInfo) == null ? void 0 : v.toJSON(), V = t.spatialReference.toJSON(), S = ne(p);
995
+ let w = o;
996
+ if (c != null && c.length) {
997
+ const $ = !c[0].valueExpression && c[0].field;
998
+ $ && (w = $);
999
+ }
1000
+ return { type: "feature-service", source: S, isSourceHosted: ge(S.path), orderByFields: w, metadata: { timeReferenceUnknownClient: l, subtypeField: d, globalIdField: u, fieldsIndex: y, geometryType: m, objectIdField: o, timeInfo: b, spatialReference: V, subtypes: null, typeIdField: null, types: null }, queryMetadata: { capabilities: a, effectiveCapabilities: s, lastEditDate: (F = n == null ? void 0 : n.lastEditDate) == null ? void 0 : F.getTime(), snapshotInfo: null } };
1001
+ }
1002
+ createSourceSchema(e, t, r) {
1003
+ const { definitionExpression: s, customParameters: a, timeExtent: n, apiKey: o } = this.layer.parent;
1004
+ return J(e, { definitionExpression: s, customParameters: a, timeExtent: n }, t, r, o);
1005
+ }
1006
+ createProcessorSchema(e, t, r) {
1007
+ const { parent: { fields: s, geometryType: a, orderBy: n, objectIdField: o }, renderer: u, labelingInfo: l, labelsVisible: c } = this.layer, d = { featureReduction: null, fields: s.map((p) => p.toJSON()), geometryType: a, labelingInfo: l, labelsVisible: c, objectIdField: o, orderBy: n ?? "default", renderer: u == null ? void 0 : u.clone() };
1008
+ return D(e, t, d, r);
1009
+ }
1010
+ get hasRequiredSupport() {
1011
+ return L(this.layer.renderer);
1012
+ }
1013
+ getUpdateHashProperties(e) {
1014
+ const t = this.layer, { parent: r, parent: { definitionExpression: s, apiKey: a }, renderer: n } = t, o = this.layer.labelsVisible ? this.layer.labelingInfo : null;
1015
+ return { apiKey: a, customParameters: JSON.stringify(r.customParameters), definitionExpression: s, labelingInfo: o, orderBy: JSON.stringify(r.orderBy), renderer: n };
1016
+ }
1017
+ setGraphicOrigin(e) {
1018
+ e.origin = { type: "catalog", layer: this.layer };
1019
+ }
1020
+ };
1021
+ function Te(i, e) {
1022
+ const t = i.extent, r = e == null ? void 0 : e.clone().intersection(t), s = r != null ? r.width * r.height : 0, a = e ? e.width * e.height : 0, n = a === 0 ? 0 : s / a, o = g("featurelayer-snapshot-point-coverage");
1023
+ return !isNaN(n) && n >= o;
1024
+ }
1025
+ function K(i, e) {
1026
+ return i.floorInfo != null && (i.floorInfo.viewAllLevelIds.length > 0 || e.floors.length > 0);
1027
+ }
1028
+ function Ce(i, e, t) {
1029
+ const r = Di(i, e == null ? void 0 : e.where, t);
1030
+ return r && (e ?? (e = new te()), e.where = r), e;
1031
+ }
1032
+ function Di(i, e, t) {
1033
+ var u;
1034
+ if (i.floorInfo == null || !((u = t.floors) != null && u.length))
1035
+ return e;
1036
+ let r = t.floors;
1037
+ const { floorField: s, viewAllLevelIds: a } = i.floorInfo;
1038
+ a.length && (r = a);
1039
+ const n = r.filter((l) => l !== "").map((l) => "'" + l + "'");
1040
+ if (n.push("''"), e == null ? void 0 : e.includes(s)) {
1041
+ let l = new RegExp("AND \\(" + s + ".*NULL\\)", "g");
1042
+ e = e.replace(l, ""), l = new RegExp("\\(" + s + ".*NULL\\)", "g"), e = (e = e.replace(l, "")).replaceAll(/\s+/g, " ").trim();
1043
+ }
1044
+ let o = "(" + s + " IN ({ids}) OR " + s + " IS NULL)";
1045
+ return o = o.replace("{ids}", n.join(", ")), fe(e, o);
1046
+ }
1047
+ let ji = class {
1048
+ constructor(e) {
1049
+ this.layer = e;
1050
+ }
1051
+ getLabelingDeconflictionInfo(e) {
1052
+ const t = this.layer, r = X(t, e) ?? k(t);
1053
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1054
+ }
1055
+ async createServiceOptions(e) {
1056
+ var Ae, Pe, Me, Ne;
1057
+ const t = this.layer, r = N(t), { capabilities: s, editingInfo: a, objectIdField: n, typeIdField: o, globalIdField: u, datesInUnknownTimezone: l, orderBy: c, subtypeField: d, refreshInterval: p } = t, y = t.fieldsIndex.toJSON(), m = y.fields, b = P(t), V = (Ae = t.timeInfo) == null ? void 0 : Ae.toJSON(), S = t.spatialReference.toJSON(), w = (Pe = t.types) == null ? void 0 : Pe.map((j) => j.toJSON()), v = ne(this.layer.parsedUrl);
1058
+ this.layer.dynamicDataSource && (v.query = { layer: JSON.stringify({ source: this.layer.dynamicDataSource }) });
1059
+ let F = this.layer.objectIdField;
1060
+ if (c != null && c.length) {
1061
+ const j = !c[0].valueExpression && c[0].field;
1062
+ j && (F = j);
1063
+ }
1064
+ const $ = (a == null ? void 0 : a.lastEditDate) == null && p > 0, Y = g("featurelayer-snapshot-enabled") && t.geometryType === "point" && (s == null ? void 0 : s.query.supportsPagination) && !(s != null && s.operations.supportsEditing) && !$, Se = Y && Te(e, t.fullExtent);
1065
+ return { type: "feature-service", source: v, isSourceHosted: ge(v.path), orderByFields: F, metadata: { typeIdField: o ?? void 0, types: w, timeReferenceUnknownClient: l, subtypeField: d, globalIdField: u, fields: m, fieldsIndex: y, geometryType: b, objectIdField: n, timeInfo: V, spatialReference: S, subtypes: (Me = this.layer.subtypes) == null ? void 0 : Me.map((j) => j.toJSON()) }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: (Ne = a == null ? void 0 : a.lastEditDate) == null ? void 0 : Ne.getTime(), snapshotInfo: { supportsSnapshotMinThreshold: Y, supportsSnapshotMaxThreshold: Se, snapshotCountThresholds: { min: g("featurelayer-snapshot-point-min-threshold"), max: g("featurelayer-snapshot-point-max-threshold") } } } };
1066
+ }
1067
+ createSourceSchema(e, t, r) {
1068
+ const { definitionExpression: s, customParameters: a, gdbVersion: n, historicMoment: o, subtypeCode: u, subtypeField: l, timeExtent: c, apiKey: d } = this.layer;
1069
+ return J(e, { definitionExpression: s, customParameters: a, gdbVersion: n, historicMoment: o, subtypeCode: u, subtypeField: l, timeExtent: c }, t, r, d);
1070
+ }
1071
+ createProcessorSchema(e, t, r) {
1072
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, orderBy: l, objectIdField: c } = this.layer, d = { fields: s.map((p) => p.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: c, orderBy: l ?? "default" };
1073
+ return D(e, t, d, r);
1074
+ }
1075
+ get hasRequiredSupport() {
1076
+ return L(this.layer.renderer);
1077
+ }
1078
+ hasFilters(e) {
1079
+ return K(this.layer, e);
1080
+ }
1081
+ addFilters(e, t) {
1082
+ return Ce(this.layer, e, t);
1083
+ }
1084
+ getUpdateHashProperties(e) {
1085
+ var y, m;
1086
+ const t = this.layer, { definitionExpression: r, renderer: s, gdbVersion: a, apiKey: n, subtypeCode: o } = t, u = this.layer.labelsVisible ? this.layer.labelingInfo : null, l = ((y = t.historicMoment) == null ? void 0 : y.getTime()) ?? void 0, c = JSON.stringify(t.customParameters), d = (m = R(t, e)) == null ? void 0 : m.toJSON(), p = JSON.stringify(t.orderBy);
1087
+ return { apiKey: n, customParameters: c, definitionExpression: r, featureReduction: d, floors: K(this.layer, e) ? e.floors : null, gdbVersion: a, historicMoment: l, labelingInfo: u, orderBy: p, renderer: s, subtypeCode: o };
1088
+ }
1089
+ };
1090
+ function Hi(i) {
1091
+ if (!("openPorts" in i))
1092
+ throw new C("source-not-supported");
1093
+ }
1094
+ class Ze {
1095
+ constructor(e) {
1096
+ this.layer = e;
1097
+ }
1098
+ getLabelingDeconflictionInfo(e) {
1099
+ const t = this.layer, r = X(t, e) ?? k(t);
1100
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1101
+ }
1102
+ async createServiceOptions(e) {
1103
+ var c;
1104
+ const t = this.layer, r = N(t), { capabilities: s, objectIdField: a } = t, n = t.fieldsIndex.toJSON(), o = P(t), u = (c = t.timeInfo) == null ? void 0 : c.toJSON(), l = t.spatialReference.toJSON();
1105
+ return Hi(t.source), { type: "memory", source: await t.source.openPorts(), orderByFields: a, metadata: { fieldsIndex: n, geometryType: o, objectIdField: a, timeInfo: u, spatialReference: l, subtypes: null, subtypeField: null, globalIdField: null, typeIdField: null, types: null, timeReferenceUnknownClient: null }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: null, snapshotInfo: null } };
1106
+ }
1107
+ createSourceSchema(e, t, r) {
1108
+ const { definitionExpression: s, timeExtent: a } = this.layer;
1109
+ return J(e, { definitionExpression: s, timeExtent: a, customParameters: null }, t, r, null);
1110
+ }
1111
+ createProcessorSchema(e, t, r) {
1112
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, orderBy: l, objectIdField: c } = this.layer, d = { fields: s.map((p) => p.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: c, orderBy: l ?? "default" };
1113
+ return D(e, t, d, r);
1114
+ }
1115
+ get hasRequiredSupport() {
1116
+ return L(this.layer.renderer);
1117
+ }
1118
+ getUpdateHashProperties(e) {
1119
+ var o;
1120
+ const t = this.layer, { definitionExpression: r, renderer: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = (o = R(t, e)) == null ? void 0 : o.toJSON();
1121
+ return { orderBy: JSON.stringify(t.orderBy), definitionExpression: r, renderer: s, labelingInfo: a, featureReduction: n };
1122
+ }
1123
+ }
1124
+ let Qi = class {
1125
+ constructor(e) {
1126
+ this.layer = e;
1127
+ }
1128
+ getLabelingDeconflictionInfo(e) {
1129
+ const t = this.layer, r = X(t, e) ?? k(t);
1130
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1131
+ }
1132
+ async createServiceOptions(e) {
1133
+ const t = this.layer, r = N(t), { capabilities: s, objectIdField: a } = t, n = t.fieldsIndex.toJSON(), o = P(t), u = t.spatialReference.toJSON();
1134
+ return { type: "memory", source: await t.source.openPorts(), orderByFields: a, metadata: { fieldsIndex: n, geometryType: o, objectIdField: a, spatialReference: u, globalIdField: null, subtypeField: null, subtypes: null, timeInfo: null, timeReferenceUnknownClient: null, typeIdField: null, types: null }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: null, snapshotInfo: null } };
1135
+ }
1136
+ createSourceSchema(e, t, r) {
1137
+ const { definitionExpression: s } = this.layer;
1138
+ return J(e, { definitionExpression: s, customParameters: null }, t, r, null);
1139
+ }
1140
+ createProcessorSchema(e, t, r) {
1141
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: l } = this.layer, c = { fields: s.map((d) => d.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: l, orderBy: "default" };
1142
+ return D(e, t, c, r);
1143
+ }
1144
+ get hasRequiredSupport() {
1145
+ return L(this.layer.renderer);
1146
+ }
1147
+ getUpdateHashProperties(e) {
1148
+ var o;
1149
+ const t = this.layer, { definitionExpression: r, renderer: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = (o = R(t, e)) == null ? void 0 : o.toJSON();
1150
+ return { definitionExpression: r, renderer: s, labelingInfo: a, featureReduction: n };
1151
+ }
1152
+ }, Gi = class {
1153
+ constructor(e) {
1154
+ this.layer = e;
1155
+ }
1156
+ getLabelingDeconflictionInfo(e) {
1157
+ const t = this.layer, r = X(t, e) ?? k(t);
1158
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1159
+ }
1160
+ async createServiceOptions(e) {
1161
+ var y;
1162
+ const t = this.layer, r = N(t), { capabilities: s, objectIdField: a } = t, n = t.fieldsIndex.toJSON(), o = P(t), u = (y = t.timeInfo) == null ? void 0 : y.toJSON(), l = t.spatialReference.toJSON(), c = t.source.getSource(), d = this.layer.objectIdField, p = ne(s);
1163
+ return p.query.maxRecordCount = c.maxRecordCount, { type: "ogc", source: c, orderByFields: d, metadata: { fieldsIndex: n, geometryType: o, objectIdField: a, timeInfo: u, spatialReference: l, globalIdField: null, subtypeField: null, subtypes: null, timeReferenceUnknownClient: null, typeIdField: null, types: null }, queryMetadata: { capabilities: p, effectiveCapabilities: r, lastEditDate: null, snapshotInfo: null } };
1164
+ }
1165
+ createSourceSchema(e, t, r) {
1166
+ const { customParameters: s, timeExtent: a, apiKey: n } = this.layer;
1167
+ return J(e, { customParameters: s, timeExtent: a }, t, r, n);
1168
+ }
1169
+ createProcessorSchema(e, t, r) {
1170
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, orderBy: l, objectIdField: c } = this.layer, d = { fields: s.map((p) => p.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: c, orderBy: l ?? "default" };
1171
+ return D(e, t, d, r);
1172
+ }
1173
+ get hasRequiredSupport() {
1174
+ return L(this.layer.renderer);
1175
+ }
1176
+ getUpdateHashProperties(e) {
1177
+ var u;
1178
+ const t = this.layer, { renderer: r, apiKey: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = JSON.stringify(t.customParameters), o = (u = R(t, e)) == null ? void 0 : u.toJSON();
1179
+ return { apiKey: s, customParameters: n, featureReduction: o, labelingInfo: a, orderBy: JSON.stringify(t.orderBy), renderer: r };
1180
+ }
1181
+ }, Ki = class {
1182
+ constructor(e) {
1183
+ this.layer = e;
1184
+ }
1185
+ getLabelingDeconflictionInfo(e) {
1186
+ const t = this.layer, r = X(t, e) ?? k(t);
1187
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1188
+ }
1189
+ async createServiceOptions(e) {
1190
+ var v;
1191
+ const t = this.layer, r = N(t), { capabilities: s, objectIdField: a, globalIdField: n, orderBy: o, refreshInterval: u } = t, l = t.fieldsIndex.toJSON(), c = l.fields, d = P(t), p = (v = t.timeInfo) == null ? void 0 : v.toJSON(), y = t.spatialReference.toJSON(), m = ne(this.layer.parsedUrl);
1192
+ let b = this.layer.objectIdField;
1193
+ if (o != null && o.length) {
1194
+ const F = !o[0].valueExpression && o[0].field;
1195
+ F && (b = F);
1196
+ }
1197
+ const V = u > 0, S = g("featurelayer-snapshot-enabled") && t.geometryType === "point" && (s == null ? void 0 : s.query.supportsPagination) && !(s != null && s.operations.supportsEditing) && !V, w = S && Te(e, t.fullExtent);
1198
+ return { type: "feature-service", source: m, isSourceHosted: ge(m.path), orderByFields: b, metadata: { globalIdField: n, fields: c, fieldsIndex: l, geometryType: d, objectIdField: a, timeInfo: p, spatialReference: y, timeReferenceUnknownClient: !1, subtypeField: null, subtypes: null, typeIdField: null, types: null }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: null, snapshotInfo: { supportsSnapshotMinThreshold: S, supportsSnapshotMaxThreshold: w, snapshotCountThresholds: { min: g("featurelayer-snapshot-point-min-threshold"), max: g("featurelayer-snapshot-point-max-threshold") } } } };
1199
+ }
1200
+ createSourceSchema(e, t, r) {
1201
+ const { definitionExpression: s, customParameters: a, timeExtent: n } = this.layer;
1202
+ return J(e, { definitionExpression: s, customParameters: a, timeExtent: n }, t, r, null);
1203
+ }
1204
+ createProcessorSchema(e, t, r) {
1205
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, orderBy: l, objectIdField: c } = this.layer, d = { fields: s.map((p) => p.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: c, orderBy: l ?? "default" };
1206
+ return D(e, t, d, r);
1207
+ }
1208
+ get hasRequiredSupport() {
1209
+ return L(this.layer.renderer);
1210
+ }
1211
+ hasFilters(e) {
1212
+ return K(this.layer, e);
1213
+ }
1214
+ addFilters(e, t) {
1215
+ return Ce(this.layer, e, t);
1216
+ }
1217
+ getUpdateHashProperties(e) {
1218
+ var u;
1219
+ const t = this.layer, { definitionExpression: r, renderer: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = JSON.stringify(t.customParameters), o = (u = R(t, e)) == null ? void 0 : u.toJSON();
1220
+ return { orderBy: JSON.stringify(t.orderBy), definitionExpression: r, renderer: s, labelingInfo: a, featureReduction: o, customParameters: n, floors: K(this.layer, e) ? e.floors : null };
1221
+ }
1222
+ };
1223
+ class Wi {
1224
+ constructor(e) {
1225
+ this.layer = e;
1226
+ }
1227
+ getLabelingDeconflictionInfo(e) {
1228
+ const t = this.layer, r = X(t, e) ?? k(t);
1229
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1230
+ }
1231
+ async createServiceOptions(e) {
1232
+ var o;
1233
+ const t = this.layer, { objectIdField: r } = t, s = P(t), a = ((o = t.timeInfo) == null ? void 0 : o.toJSON()) || null, n = t.spatialReference ? t.spatialReference.toJSON() : null;
1234
+ return { source: this.layer.parsedUrl, metadata: { fieldsIndex: this.layer.fieldsIndex.toJSON(), geometryType: s, objectIdField: r, timeInfo: a, timeReferenceUnknownClient: null, spatialReference: n, subtypeField: null, subtypes: null, globalIdField: null, typeIdField: null, types: null } };
1235
+ }
1236
+ createSourceSchema(e, t, r) {
1237
+ const { definitionExpression: s, geometryDefinition: a, customParameters: n } = this.layer;
1238
+ return { type: "stream", service: e, tileInfoJSON: t.tileInfoJSON, mutable: { sourceRefreshVersion: r, availableFields: t.availableFields, dataFilter: { geometryDefinition: a == null ? void 0 : a.toJSON(), definitionExpression: s, outSpatialReference: t.outSpatialReference.toJSON(), customParameters: n ?? null, maxReconnectionAttempts: this.layer.maxReconnectionAttempts, maxReconnectionInterval: this.layer.maxReconnectionInterval, purgeOptions: this.layer.purgeOptions.toJSON() } } };
1239
+ }
1240
+ createProcessorSchema(e, t, r) {
1241
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: l } = this.layer, c = { fields: s.map((d) => d.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: l, orderBy: "default" };
1242
+ return D(e, t, c, r);
1243
+ }
1244
+ get hasRequiredSupport() {
1245
+ return L(this.layer.renderer);
1246
+ }
1247
+ getUpdateHashProperties(e) {
1248
+ var u;
1249
+ const t = this.layer, { definitionExpression: r, renderer: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = JSON.stringify(t.customParameters), o = (u = R(t, e)) == null ? void 0 : u.toJSON();
1250
+ return { definitionExpression: r, renderer: s, labelingInfo: a, featureReduction: o, customParameters: n, streamFilter: `${JSON.stringify(t.geometryDefinition)}${t.definitionExpression}` };
1251
+ }
1252
+ }
1253
+ async function Zi(i, { subtypeField: e, sublayers: t }) {
1254
+ const r = await Promise.all(t.map(({ renderer: s }) => se(i, s)));
1255
+ return { type: "subtype", subtypeField: e, renderers: t.reduce((s, { subtypeCode: a }, n) => ({ ...s, [a]: r[n] }), {}) };
1256
+ }
1257
+ function Xi(i, e) {
1258
+ const t = mt();
1259
+ return { type: "subtype", filters: i.filters, capabilities: { maxTextureSize: t.maxTextureSize }, subtypeField: e.subtypeField, target: "feature", bindings: e.sublayers.reduce((r, { renderer: s, subtypeCode: a }) => ({ ...r, [a]: Qt(s) }), {}) };
1260
+ }
1261
+ async function Yi(i, { subtypeField: e, sublayers: t }) {
1262
+ const r = await Promise.all(t.map((s) => {
1263
+ const a = z(s.renderer), n = { ...s, geometryType: s.geometryType ?? null };
1264
+ return re(i, n, a);
1265
+ }));
1266
+ return { type: "subtype", subtypeField: e, renderers: t.reduce((s, { subtypeCode: a }, n) => ({ ...s, [a]: r[n] }), {}) };
1267
+ }
1268
+ async function er(i, e, t, r) {
1269
+ return { storage: Xi(e, t), mesh: { displayRefreshVersion: r, strategy: { type: "feature" }, factory: { symbology: await Zi(i, t), labels: await Yi(i, t) }, sortKey: null, timeZone: e.timeZone } };
1270
+ }
1271
+ class tr {
1272
+ constructor(e) {
1273
+ this.layer = e;
1274
+ }
1275
+ getLabelingDeconflictionInfo(e) {
1276
+ return [{ vvEvaluators: {}, deconflictionEnabled: this.layer.sublayers.every((t) => k(t)) }];
1277
+ }
1278
+ async createServiceOptions(e) {
1279
+ var F, $, Y;
1280
+ const t = this.layer, r = N(t), { capabilities: s, datesInUnknownTimezone: a, editingInfo: n, globalIdField: o, objectIdField: u, refreshInterval: l, subtypeField: c } = t, d = t.fieldsIndex.toJSON(), p = P(t), y = (F = t.timeInfo) == null ? void 0 : F.toJSON(), m = t.spatialReference.toJSON(), b = ne(this.layer.parsedUrl), V = u, S = (n == null ? void 0 : n.lastEditDate) == null && l > 0, w = g("featurelayer-snapshot-enabled") && t.geometryType === "point" && (s == null ? void 0 : s.query.supportsPagination) && !(s != null && s.operations.supportsEditing) && !S, v = w && Te(e, t.fullExtent);
1281
+ return { type: "feature-service", source: b, isSourceHosted: ge(b.path), orderByFields: V, metadata: { timeReferenceUnknownClient: a, subtypeField: c, globalIdField: o, fieldsIndex: d, geometryType: p, objectIdField: u, timeInfo: y, spatialReference: m, subtypes: ($ = this.layer.subtypes) == null ? void 0 : $.map((Se) => Se.toJSON()), typeIdField: null, types: null }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: (Y = n == null ? void 0 : n.lastEditDate) == null ? void 0 : Y.getTime(), snapshotInfo: { supportsSnapshotMinThreshold: w, supportsSnapshotMaxThreshold: v, snapshotCountThresholds: { min: g("featurelayer-snapshot-point-min-threshold"), max: g("featurelayer-snapshot-point-max-threshold") } } } };
1282
+ }
1283
+ createSourceSchema(e, t, r) {
1284
+ const { definitionExpression: s, customParameters: a, gdbVersion: n, historicMoment: o, subtypeField: u, timeExtent: l, apiKey: c } = this.layer, d = this.layer.sublayers.map((m) => m.subtypeCode).join(","), p = this.layer.sublayers.length ? `${this.layer.subtypeField} IN (${d})` : "1=2", y = { definitionExpression: fe(s, p), customParameters: a, gdbVersion: n, historicMoment: o, subtypeField: u, timeExtent: l };
1285
+ return J(e, y, t, r, c);
1286
+ }
1287
+ createProcessorSchema(e, t, r) {
1288
+ const s = { subtypeField: this.layer.subtypeField, sublayers: Array.from(this.layer.sublayers, (a) => ({ featureReduction: null, geometryType: this.layer.geometryType, labelingInfo: a.labelingInfo, labelsVisible: a.labelsVisible, renderer: a.renderer, subtypeCode: a.subtypeCode, orderBy: null })) };
1289
+ return er(e, t, s, r);
1290
+ }
1291
+ hasFilters(e) {
1292
+ return K(this.layer, e) || ir(this.layer, e);
1293
+ }
1294
+ addFilters(e, t) {
1295
+ e = Ce(this.layer, e, t);
1296
+ const r = this.layer.sublayers.filter((a) => !nt(a, t)).map((a) => a.subtypeCode);
1297
+ if (!r.length)
1298
+ return e;
1299
+ e ?? (e = new te());
1300
+ const s = `NOT ${this.layer.subtypeField} IN (${r.join(",")})`;
1301
+ return e.where = fe(e.where, s), e;
1302
+ }
1303
+ get hasRequiredSupport() {
1304
+ return !0;
1305
+ }
1306
+ getUpdateHashProperties(e) {
1307
+ var l;
1308
+ const t = this.layer, { definitionExpression: r, gdbVersion: s, apiKey: a } = t, n = ((l = t.historicMoment) == null ? void 0 : l.getTime()) ?? void 0, o = JSON.stringify(t.customParameters), u = K(this.layer, e) ? e.floors : null;
1309
+ return { gdbVersion: s, definitionExpression: r, historicMoment: n, customParameters: o, apiKey: a, sublayerHash: "sublayers" in this.layer && this.layer.sublayers.items.reduce((c, d) => c + `${d.visible ? 1 : 0}.${JSON.stringify(d.renderer)}.${d.labelsVisible}
1310
+ .${JSON.stringify(d.labelingInfo)}`, ""), floors: u };
1311
+ }
1312
+ setGraphicOrigin(e) {
1313
+ const t = this.layer.fieldsIndex.get(this.layer.subtypeField), r = e.attributes[t.name], s = this.layer.sublayers.find((a) => a.subtypeCode === r);
1314
+ e.layer = e.sourceLayer = s;
1315
+ }
1316
+ }
1317
+ function ir(i, e) {
1318
+ return i.sublayers.some((t) => !nt(t, e));
1319
+ }
1320
+ function nt(i, e) {
1321
+ return i.visible && (i.minScale === 0 || ke(e.scale, i.minScale) || e.scale < i.minScale) && (i.maxScale === 0 || ke(e.scale, i.maxScale) || e.scale > i.maxScale);
1322
+ }
1323
+ async function _(i, e) {
1324
+ try {
1325
+ return await i;
1326
+ } catch (t) {
1327
+ if (t.name !== "no-queryEngine")
1328
+ throw t;
1329
+ return e;
1330
+ }
1331
+ }
1332
+ function Q(i, e) {
1333
+ const t = /* @__PURE__ */ new Set();
1334
+ for (const r of i instanceof Set ? i.values() : i.keys())
1335
+ e.has(r) || t.add(r);
1336
+ return t;
1337
+ }
1338
+ class rr {
1339
+ constructor(e) {
1340
+ this.version = e;
1341
+ }
1342
+ }
1343
+ class sr {
1344
+ constructor(e) {
1345
+ this._subscriptions = /* @__PURE__ */ new Map(), this._visible = /* @__PURE__ */ new Set(), this._paused = /* @__PURE__ */ new Set(), this._version = 0, this._config = e;
1346
+ }
1347
+ destroy() {
1348
+ }
1349
+ get _coverageSet() {
1350
+ const e = this._coverage ? Array.from(this._coverage.keys()).map((t) => t.id) : [];
1351
+ return new Set(e);
1352
+ }
1353
+ suspend() {
1354
+ this._suspendedOverage = this._coverage, this._coverage = null, this._updateSubscriptions();
1355
+ }
1356
+ resume() {
1357
+ this._coverage == null && (this._coverage = this._suspendedOverage, this._suspendedOverage = null, this._updateSubscriptions());
1358
+ }
1359
+ update(e) {
1360
+ return this._version = this._version + 1 % Number.MAX_SAFE_INTEGER, this._updateCoverage(e), this._updateSubscriptions(), new Set(this._visible);
1361
+ }
1362
+ _updateCoverage(e) {
1363
+ this._coverage = this._config.tileInfoView.getTileCoverage(e.state, 0, !0, "closest");
1364
+ }
1365
+ _updateSubscriptions() {
1366
+ const e = this._coverageSet, t = this._updateVisibility(), r = Q(t, e), s = Q(this._subscriptions, t), a = Q(e, this._subscriptions), n = Q(s, e), o = Q(r, n), u = Q(o, this._paused);
1367
+ this._visible = t;
1368
+ for (const l of a.values())
1369
+ this._subscriptions.set(l, new rr(this._version));
1370
+ for (const l of u.values())
1371
+ this._paused.add(l);
1372
+ for (const l of n.values())
1373
+ this._subscriptions.delete(l), this._paused.delete(l);
1374
+ (a.size || n.size || u.size) && this._sendUpdateSubscriptions(a, n, u);
1375
+ }
1376
+ _sendUpdateSubscriptions(e, t, r) {
1377
+ const s = Array.from(e.values()).map((a) => ({ tileId: a, version: this._subscriptions.get(a).version }));
1378
+ this._config.updateSubscriptions({ subscribe: s, unsubscribe: Array.from(t.values()), pause: Array.from(r.values()), tileInfoJSON: this._config.tileInfoView.tileInfo.toJSON() });
1379
+ }
1380
+ _updateVisibility() {
1381
+ const e = /* @__PURE__ */ new Set();
1382
+ if (!this._coverage)
1383
+ return e;
1384
+ for (const t of this._coverage.keys()) {
1385
+ if (this._config.isDone(t)) {
1386
+ e.add(t.id);
1387
+ continue;
1388
+ }
1389
+ this._addVisibleParent(e, t) || this._addVisibleChildren(e, t) || e.add(t.id);
1390
+ }
1391
+ return e;
1392
+ }
1393
+ _addVisibleParent(e, t) {
1394
+ let r = !1;
1395
+ for (const s of this._visible.values())
1396
+ new xe(s).containsChild(t) && (e.add(s), r = !0);
1397
+ return r;
1398
+ }
1399
+ _addVisibleChildren(e, t) {
1400
+ let r = !1;
1401
+ for (const s of this._visible.values()) {
1402
+ const a = new xe(s);
1403
+ t.containsChild(a) && (e.add(s), r = !0);
1404
+ }
1405
+ return r;
1406
+ }
1407
+ }
1408
+ const ar = (i) => {
1409
+ let e = class extends i {
1410
+ constructor(...t) {
1411
+ super(...t), this._updatingRequiredFieldsPromise = null, this.dataUpdating = !1, this.filter = null, this.timeExtent = null, this.layer = null, this.requiredFields = [], this.view = null;
1412
+ }
1413
+ initialize() {
1414
+ this.addHandles([Ee(() => {
1415
+ var r;
1416
+ const t = this.layer;
1417
+ return [t && "elevationInfo" in t ? (r = t.elevationInfo) == null ? void 0 : r.featureExpressionInfo : null, t && "displayField" in t ? t.displayField : null, t && "timeInfo" in t && t.timeInfo, t && "renderer" in t && t.renderer, t && "labelingInfo" in t && t.labelingInfo, t && "floorInfo" in t && t.floorInfo, this.filter, this.featureEffect, this.timeExtent];
1418
+ }, () => this._handleRequiredFieldsChange(), gt), qe(() => {
1419
+ var t;
1420
+ return (t = this.view) == null ? void 0 : t.floors;
1421
+ }, "change", () => this._handleRequiredFieldsChange()), qe(() => {
1422
+ const t = this.layer;
1423
+ return t && "sublayers" in t ? t.sublayers : null;
1424
+ }, "change", () => this._handleRequiredFieldsChange())]);
1425
+ }
1426
+ get availableFields() {
1427
+ if (!this.layer)
1428
+ return [];
1429
+ const { layer: t, layer: { fieldsIndex: r }, requiredFields: s } = this;
1430
+ return "outFields" in t && t.outFields ? Ue(r, [...Le(r, t.outFields), ...s]) : Ue(r, s);
1431
+ }
1432
+ get featureEffect() {
1433
+ return this.layer && "featureEffect" in this.layer ? this.layer.featureEffect : null;
1434
+ }
1435
+ set featureEffect(t) {
1436
+ this._override("featureEffect", t);
1437
+ }
1438
+ get maximumNumberOfFeatures() {
1439
+ return 0;
1440
+ }
1441
+ set maximumNumberOfFeatures(t) {
1442
+ q.getLogger(this).error("#maximumNumberOfFeatures=", "Setting maximum number of features is not supported");
1443
+ }
1444
+ get maximumNumberOfFeaturesExceeded() {
1445
+ return !1;
1446
+ }
1447
+ highlight(t) {
1448
+ throw new Error("missing implementation");
1449
+ }
1450
+ createQuery() {
1451
+ const t = { outFields: ["*"], returnGeometry: !0, outSpatialReference: this.view.spatialReference }, r = this.filter != null ? this.filter.createQuery(t) : new ye(t);
1452
+ if ("floorInfo" in this.layer && this.layer.floorInfo) {
1453
+ const s = We(this);
1454
+ s != null && (r.where = r.where ? `(${r.where}) AND (${s})` : s);
1455
+ }
1456
+ return this.timeExtent != null && (r.timeExtent = r.timeExtent != null ? r.timeExtent.intersection(this.timeExtent) : this.timeExtent.clone()), r;
1457
+ }
1458
+ createAggregateQuery() {
1459
+ const t = { outFields: ["*"], returnGeometry: !0, outSpatialReference: this.view.spatialReference };
1460
+ return new ye(t);
1461
+ }
1462
+ queryFeatures(t, r) {
1463
+ throw new Error("missing implementation");
1464
+ }
1465
+ queryObjectIds(t, r) {
1466
+ throw new Error("missing implementation");
1467
+ }
1468
+ queryFeatureCount(t, r) {
1469
+ throw new Error("missing implementation");
1470
+ }
1471
+ queryExtent(t, r) {
1472
+ throw new Error("missing implementation");
1473
+ }
1474
+ async fetchPopupFeaturesFromGraphics(t, r) {
1475
+ return this._validateFetchPopupFeatures(t, r), this._fetchPopupFeatures(t, r);
1476
+ }
1477
+ _loadArcadeModules(t) {
1478
+ var r;
1479
+ return (r = t.expressionInfos) != null && r.length || Array.isArray(t.content) && t.content.some((s) => s.type === "expression") ? bt() : Promise.resolve();
1480
+ }
1481
+ _handleRequiredFieldsChange() {
1482
+ const t = this._updateRequiredFields();
1483
+ this._set("_updatingRequiredFieldsPromise", t), t.then(() => {
1484
+ this._updatingRequiredFieldsPromise === t && this._set("_updatingRequiredFieldsPromise", null);
1485
+ });
1486
+ }
1487
+ async _updateRequiredFields() {
1488
+ if (!this.layer || !this.view)
1489
+ return;
1490
+ const t = this.view.type === "3d", { layer: r, layer: { fieldsIndex: s, objectIdField: a } } = this, n = "renderer" in r && r.renderer, o = "orderBy" in r && r.orderBy, u = "featureReduction" in r ? r.featureReduction : null, l = /* @__PURE__ */ new Set(), c = await Promise.allSettled([n ? n.collectRequiredFields(l, s) : null, Be(l, r), t && "elevationInfo" in r ? St(l, r) : null, this.filter != null ? Je(l, r, this.filter) : null, t || this.featureEffect == null ? null : Je(l, r, this.featureEffect.filter), !t && u ? vt(l, r, u) : null, !t && o ? _t(l, r, o) : null]);
1491
+ if ("timeInfo" in r && r.timeInfo && this.timeExtent && oe(l, r.fieldsIndex, [r.timeInfo.startField, r.timeInfo.endField]), "floorInfo" in r && r.floorInfo && oe(l, r.fieldsIndex, [r.floorInfo.floorField]), r.type === "feature" && t && r.infoFor3D != null && (r.globalIdField == null && q.getLogger(this).error("globalIdField missing on 3DObjectFeatureLayer"), oe(l, r.fieldsIndex, [r.globalIdField])), r.type === "subtype-group") {
1492
+ ve(l, s, r.subtypeField);
1493
+ const p = r.sublayers.map((y) => {
1494
+ var m;
1495
+ return Promise.all([(m = y.renderer) == null ? void 0 : m.collectRequiredFields(l, s), Be(l, y)]);
1496
+ });
1497
+ await Promise.allSettled(p);
1498
+ }
1499
+ r.type === "catalog-footprint" && oe(l, s, [r.parent.itemSourceField, r.parent.itemTypeField]);
1500
+ for (const p of c)
1501
+ p.status === "rejected" && q.getLogger(this).error(p.reason);
1502
+ ve(l, s, a), t && "displayField" in r && r.displayField && ve(l, s, r.displayField);
1503
+ const d = Array.from(l).sort();
1504
+ this._set("requiredFields", d);
1505
+ }
1506
+ _validateFetchPopupFeatures(t, r) {
1507
+ if (r != null)
1508
+ for (const s of t) {
1509
+ const a = s.origin && "layer" in s.origin ? s.origin.layer : s.layer;
1510
+ if ("popupEnabled" in a && !a.popupEnabled)
1511
+ throw new C("featurelayerview:fetchPopupFeatures", "Popups are disabled", { layer: a });
1512
+ if (s.isAggregate) {
1513
+ const n = "featureReduction" in a ? a.featureReduction : null;
1514
+ if (!(n && "popupTemplate" in n && n.popupEnabled && n.popupTemplate))
1515
+ throw new C("featurelayerview:fetchPopupFeatures", "Popups are disabled", { layer: a });
1516
+ } else if ("popupTemplate" in a && !Ve(a, r))
1517
+ throw new C("featurelayerview:fetchPopupFeatures", "Layer does not define a popup template", { layer: a });
1518
+ }
1519
+ }
1520
+ _popupFeatureHasRequiredFields(t, r) {
1521
+ return wt(r, t);
1522
+ }
1523
+ async _fetchPopupFeatures(t, r) {
1524
+ var o;
1525
+ const s = new Array(t.length), a = /* @__PURE__ */ new Map(), n = await this._createPopupQuery(t.map((u) => {
1526
+ var l;
1527
+ return ((l = u.origin) == null ? void 0 : l.layer) ?? u.layer;
1528
+ }), r);
1529
+ for (let u = 0; u < t.length; u++) {
1530
+ const l = t[u];
1531
+ if (l.isAggregate) {
1532
+ s[u] = l;
1533
+ continue;
1534
+ }
1535
+ const c = ((o = l.origin) == null ? void 0 : o.layer) ?? l.layer;
1536
+ if (!c || !("popupEnabled" in c))
1537
+ continue;
1538
+ const d = Le(this.layer.fieldsIndex, n.outFields), p = Ve(c, r);
1539
+ if (p == null)
1540
+ continue;
1541
+ const y = await this._loadArcadeModules(p);
1542
+ pe(r), y && y.arcadeUtils.hasGeometryOperations(p) || !this._popupFeatureHasRequiredFields(l, d) ? a.set(l.getObjectId(), { graphic: l, index: u }) : s[u] = l;
1543
+ }
1544
+ if (this.layer.type === "stream" || a.size === 0)
1545
+ return s.filter(Boolean);
1546
+ n.objectIds = Array.from(a.keys());
1547
+ try {
1548
+ const u = await this.layer.queryFeatures(n, r);
1549
+ for (const l of u.features) {
1550
+ const { graphic: { geometry: c, origin: d }, index: p } = a.get(l.getObjectId());
1551
+ l.geometry || (l.geometry = c), l.origin = d, s[p] = l;
1552
+ }
1553
+ } catch {
1554
+ }
1555
+ return s.filter(Boolean);
1556
+ }
1557
+ async _createPopupQuery(t, r) {
1558
+ const s = this.layer.createQuery(), a = /* @__PURE__ */ new Set();
1559
+ let n = !1;
1560
+ const o = t ?? [this.layer];
1561
+ for (const u of o) {
1562
+ if (!("popupEnabled" in u))
1563
+ continue;
1564
+ const l = Ve(u, r);
1565
+ if (l == null)
1566
+ continue;
1567
+ const c = await this._loadArcadeModules(l);
1568
+ pe(r);
1569
+ const d = c && c.arcadeUtils.hasGeometryOperations(l);
1570
+ n = !(this.layer.geometryType !== "point" && !d);
1571
+ const p = await Xt(this.layer, l);
1572
+ pe(r);
1573
+ for (const y of p)
1574
+ a.add(y);
1575
+ }
1576
+ if (s.returnGeometry = n, s.returnZ = n, s.returnM = n, s.outFields = Array.from(a), s.outSpatialReference = this.view.spatialReference, "floorInfo" in this.layer && this.layer.floorInfo) {
1577
+ const u = We(this);
1578
+ u != null && (s.where = s.where ? `(${s.where}) AND (${u})` : u);
1579
+ }
1580
+ return s;
1581
+ }
1582
+ canResume() {
1583
+ return !!super.canResume() && (this.timeExtent == null || !this.timeExtent.isEmpty);
1584
+ }
1585
+ getTest() {
1586
+ return { createPopupQuery: (t) => this._createPopupQuery(void 0, t) };
1587
+ }
1588
+ get test() {
1589
+ return this.getTest();
1590
+ }
1591
+ };
1592
+ return h([f()], e.prototype, "_updatingRequiredFieldsPromise", void 0), h([f({ readOnly: !0 })], e.prototype, "availableFields", null), h([f({ readOnly: !0 })], e.prototype, "dataUpdating", void 0), h([f({ type: Zt })], e.prototype, "featureEffect", null), h([f({ type: te })], e.prototype, "filter", void 0), h([f(Wt)], e.prototype, "timeExtent", void 0), h([f()], e.prototype, "layer", void 0), h([f({ type: Number })], e.prototype, "maximumNumberOfFeatures", null), h([f({ readOnly: !0, type: Boolean })], e.prototype, "maximumNumberOfFeaturesExceeded", null), h([f({ readOnly: !0 })], e.prototype, "requiredFields", void 0), h([f()], e.prototype, "suspended", void 0), h([f()], e.prototype, "view", void 0), e = h([W("esri.views.layers.FeatureLayerView")], e), e;
1593
+ };
1594
+ function nr(i, e) {
1595
+ const t = /* @__PURE__ */ new Set();
1596
+ return i && i.forEach((r) => t.add(r)), e && e.forEach((r) => t.add(r)), t.has("*") ? ["*"] : Array.from(t);
1597
+ }
1598
+ const lr = "esri.views.2d.layers.FeatureLayerView2D", Xe = 4294967294;
1599
+ let I = class extends ar(Yt(At(Pt))) {
1600
+ constructor() {
1601
+ super(...arguments), this._commandsQueue = new Gt({ process: (i) => {
1602
+ switch (i.type) {
1603
+ case "processed-edit":
1604
+ return this._doEdit(i);
1605
+ case "update":
1606
+ return this._doUpdate();
1607
+ }
1608
+ } }), this._visibilityOverrides = /* @__PURE__ */ new Set(), this._highlightCounter = new Kt(), this._updateHighlight = Vt(async () => {
1609
+ const i = [];
1610
+ for (const e of this._highlightCounter.ids()) {
1611
+ const t = this._highlightCounter.getHighestReason(e), r = Ct(t);
1612
+ i.push({ objectId: e, highlightFlags: r });
1613
+ }
1614
+ this._worker.pipeline.updateHighlight({ highlights: i });
1615
+ }), this._lastAvailableFields = [], this.eventLog = new T(), this._sourceRefreshVersion = 1, this._displayRefreshVersion = 1, this._pipelineUpdating = !1, this._fields = null, this.featureEffectView = new ei();
1616
+ }
1617
+ destroy() {
1618
+ var i;
1619
+ (i = this._worker) == null || i.destroy(), this._commandsQueue.destroy();
1620
+ }
1621
+ initialize() {
1622
+ this.addResolvingPromise(this._initProxy()), this.featureEffectView.featureEffect = this.featureEffect, this.featureEffectView.endTransitions();
1623
+ }
1624
+ async _initProxy() {
1625
+ var t;
1626
+ const i = this.layer;
1627
+ if ("isTable" in i && i.isTable)
1628
+ throw new C("featurelayerview:table-not-supported", "table feature layer can't be displayed", { layer: i });
1629
+ if (i.geometryType === "mesh")
1630
+ throw new C("featurelayerview:geometry-type-not-supported", `Geometry type of ${i.geometryType} is not supported`, { layer: i });
1631
+ if ((i.type === "feature" || i.type === "subtype-group") && ((t = N(i)) == null ? void 0 : t.operations.supportsQuery) === !1)
1632
+ throw new C("featurelayerview:query-not-supported", "layer view requires a layer with query capability", { layer: i });
1633
+ this._worker && this._worker.destroy();
1634
+ const e = this._createClientOptions();
1635
+ this._worker = await ni(e);
1636
+ }
1637
+ get hasAllFeatures() {
1638
+ return this.layer.visible && this.eventLog.hasAllFeatures;
1639
+ }
1640
+ get hasAllFeaturesInView() {
1641
+ return this.layer.visible && this.eventLog.hasAllFeaturesInView;
1642
+ }
1643
+ get hasFullGeometries() {
1644
+ return this.layer.visible && this.eventLog.hasFullGeometries;
1645
+ }
1646
+ get labelingCollisionInfos() {
1647
+ const i = this.layerAdapter.getLabelingDeconflictionInfo(this.view), e = this.layer.geometryType, t = !this.suspended;
1648
+ return i.map(({ vvEvaluators: r, deconflictionEnabled: s }) => ({ container: this.featureContainer, vvEvaluators: r, deconflictionEnabled: s, geometryType: e, visible: t }));
1649
+ }
1650
+ get layerAdapter() {
1651
+ switch (this.layer.type) {
1652
+ case "feature":
1653
+ return this.layer.source.type === "memory" ? new Ze(this.layer) : new ji(this.layer);
1654
+ case "geojson":
1655
+ case "csv":
1656
+ case "wfs":
1657
+ return new Ze(this.layer);
1658
+ case "subtype-group":
1659
+ return new tr(this.layer);
1660
+ case "ogc-feature":
1661
+ return new Gi(this.layer);
1662
+ case "stream":
1663
+ return new Wi(this.layer);
1664
+ case "oriented-imagery":
1665
+ return new Ki(this.layer);
1666
+ case "knowledge-graph-sublayer":
1667
+ return new Qi(this.layer);
1668
+ case "catalog-footprint":
1669
+ return new Ji(this.layer);
1670
+ default:
1671
+ It(this.layer);
1672
+ }
1673
+ return null;
1674
+ }
1675
+ get updateHash() {
1676
+ if (!this.layerAdapter)
1677
+ return null;
1678
+ const { availableFields: i, _displayRefreshVersion: e, timeExtent: t, clips: r, filter: s, featureEffect: a, _sourceRefreshVersion: n, view: { timeZone: o } } = this, u = JSON.stringify(r), l = a == null ? void 0 : a.toJSON(), c = s == null ? void 0 : s.toJSON();
1679
+ return JSON.stringify({ availableFields: i, clipsHash: u, displayRefreshVersion: e, effectHash: l, filterHash: c, sourceRefreshVersion: n, timeExtent: t, timeZone: o, ...this.layerAdapter.getUpdateHashProperties(this.view) });
1680
+ }
1681
+ getDisplayStatistics(i, e) {
1682
+ var t;
1683
+ return (t = this.featureContainer) == null ? void 0 : t.getDisplayStatistics(i, e);
1684
+ }
1685
+ async queryHeatmapStatistics(i) {
1686
+ return this._worker.pipeline.queryHeatmapStatistics(i);
1687
+ }
1688
+ highlight(i, e = "highlight") {
1689
+ let t;
1690
+ i instanceof Ie ? t = [i.getObjectId()] : typeof i == "number" || typeof i == "string" ? t = [i] : xt.isCollection(i) && i.length > 0 ? t = i.map((s) => s == null ? void 0 : s.getObjectId()).toArray() : Array.isArray(i) && i.length > 0 && (t = typeof i[0] == "number" || typeof i[0] == "string" ? i : i.map((s) => s == null ? void 0 : s.getObjectId()));
1691
+ const r = t == null ? void 0 : t.filter(Et);
1692
+ return r != null && r.length ? (this._addHighlight(r, e), De(() => this._removeHighlight(r, e))) : De();
1693
+ }
1694
+ getHighlightIds() {
1695
+ return Array.from(this._highlightCounter.ids());
1696
+ }
1697
+ hasHighlight() {
1698
+ return !this._highlightCounter.empty;
1699
+ }
1700
+ async hitTest(i, e) {
1701
+ const t = await this.featureContainer.hitTest(e);
1702
+ if (t.length === 0)
1703
+ return null;
1704
+ const { features: r, aggregates: s } = await this._worker.pipeline.getDisplayFeatures(t), a = this.featureContainer.getSortKeys(t), n = ({ displayId: o }, { displayId: u }) => a.has(o) && a.has(u) ? a.get(o) - a.get(u) : o - u;
1705
+ return r.sort(n).reverse(), s.sort(n).reverse(), [...s.map((o) => this._createGraphicHit(i, $e.fromJSON(o))), ...r.map((o) => this._createGraphicHit(i, Ie.fromJSON(o)))];
1706
+ }
1707
+ queryStatistics() {
1708
+ return _(this._worker.pipeline.queryStatistics(), { featureCount: 0, ringCount: 0, vertexCount: 0 });
1709
+ }
1710
+ querySummaryStatistics(i, e, t) {
1711
+ const r = { ...e, scale: this.view.scale }, s = this._worker.features.executeQueryForSummaryStatistics(this._cleanUpQuery(i), r, t);
1712
+ return _(s, {});
1713
+ }
1714
+ async queryAggregateSummaryStatistics(i, e, t) {
1715
+ const r = { ...e, scale: this.view.scale }, s = this._worker.aggregates.executeQueryForSummaryStatistics(this._cleanUpAggregateQuery(i), r, t);
1716
+ return _(s, {});
1717
+ }
1718
+ async queryUniqueValues(i, e, t) {
1719
+ const r = { ...e, scale: this.view.scale }, s = this._worker.features.executeQueryForUniqueValues(this._cleanUpQuery(i), r, t);
1720
+ return _(s, { uniqueValueInfos: [] });
1721
+ }
1722
+ async queryAggregateUniqueValues(i, e, t) {
1723
+ const r = { ...e, scale: this.view.scale }, s = this._worker.aggregates.executeQueryForUniqueValues(this._cleanUpAggregateQuery(i), r, t);
1724
+ return _(s, { uniqueValueInfos: [] });
1725
+ }
1726
+ async queryClassBreaks(i, e, t) {
1727
+ const r = { ...e, scale: this.view.scale }, s = this._worker.features.executeQueryForClassBreaks(this._cleanUpQuery(i), r, t);
1728
+ return _(s, { classBreakInfos: [] });
1729
+ }
1730
+ async queryAggregateClassBreaks(i, e, t) {
1731
+ const r = { ...e, scale: this.view.scale }, s = this._worker.aggregates.executeQueryForClassBreaks(this._cleanUpAggregateQuery(i), r, t);
1732
+ return _(s, { classBreakInfos: [] });
1733
+ }
1734
+ async queryHistogram(i, e, t) {
1735
+ const r = { ...e, scale: this.view.scale }, s = this._worker.features.executeQueryForHistogram(this._cleanUpQuery(i), r, t);
1736
+ return _(s, { bins: [], maxValue: null, minValue: null, normalizationTotal: null });
1737
+ }
1738
+ async queryAggregateHistogram(i, e, t) {
1739
+ const r = { ...e, scale: this.view.scale }, s = this._worker.aggregates.executeQueryForHistogram(this._cleanUpAggregateQuery(i), r, t);
1740
+ return _(s, { bins: [], maxValue: null, minValue: null, normalizationTotal: null });
1741
+ }
1742
+ queryFeatures(i, e) {
1743
+ return this.queryFeaturesJSON(i, e).then((t) => {
1744
+ const r = Fe.fromJSON(t);
1745
+ return r.features.forEach((s) => this._setLayersForFeature(s)), r;
1746
+ });
1747
+ }
1748
+ async queryVisibleFeatures(i, e) {
1749
+ const t = this._worker.pipeline.queryVisibleFeatures(this._cleanUpQuery(i), e), r = await _(t, { features: [] }), s = Fe.fromJSON(r);
1750
+ return s.features.forEach((a) => this._setLayersForFeature(a)), s;
1751
+ }
1752
+ async queryAggregates(i, e) {
1753
+ const t = this._worker.aggregates.executeQuery(this._cleanUpAggregateQuery(i), e), r = await _(t, { features: [] }), s = ti.fromJSON(r);
1754
+ return s.features.forEach((a) => this._setLayersForFeature(a)), s;
1755
+ }
1756
+ queryAggregateIds(i, e) {
1757
+ const t = this._worker.aggregates.executeQueryForIds(this._cleanUpAggregateQuery(i), e);
1758
+ return _(t, []);
1759
+ }
1760
+ queryAggregateCount(i, e) {
1761
+ const t = this._worker.aggregates.executeQueryForCount(this._cleanUpAggregateQuery(i), e);
1762
+ return _(t, 0);
1763
+ }
1764
+ queryAggregateJSON(i, e) {
1765
+ const t = this._worker.aggregates.executeQuery(this._cleanUpAggregateQuery(i), e);
1766
+ return _(t, { features: [] });
1767
+ }
1768
+ async queryFeaturesJSON(i, e) {
1769
+ const t = this._worker.features.executeQuery(this._cleanUpQuery(i), e);
1770
+ return _(t, { features: [] });
1771
+ }
1772
+ queryObjectIds(i, e) {
1773
+ const t = this._worker.features.executeQueryForIds(this._cleanUpQuery(i), e);
1774
+ return _(t, []);
1775
+ }
1776
+ queryFeatureCount(i, e) {
1777
+ const t = this._worker.features.executeQueryForCount(this._cleanUpQuery(i), e);
1778
+ return _(t, 0);
1779
+ }
1780
+ async queryExtent(i, e) {
1781
+ const t = this._worker.features.executeQueryForExtent(this._cleanUpQuery(i), e), r = await _(t, { count: 0, extent: null });
1782
+ return { count: r.count, extent: Ft.fromJSON(r.extent) };
1783
+ }
1784
+ async getSampleFeatures(i) {
1785
+ return this._worker.pipeline.getSampleFeatures(i);
1786
+ }
1787
+ setVisibility(i, e) {
1788
+ e ? this._visibilityOverrides.delete(i) : this._visibilityOverrides.add(i), this._update();
1789
+ }
1790
+ update(i) {
1791
+ if (!this._subscriptionManager)
1792
+ return;
1793
+ const e = this._subscriptionManager.update(i);
1794
+ this.featureContainer.setVisibleTiles(e);
1795
+ }
1796
+ attach() {
1797
+ g("esri-2d-update-debug") && console.debug("FeatureLayerView2D.attach"), this.featureContainer = new ai(this), this.container.addChild(this.featureContainer), this.view.timeline.record(`${this.layer.title} (FeatureLayer) Attach`), this._subscriptionManager = new sr({ tileInfoView: this.view.featuresTilingScheme, updateSubscriptions: (i) => {
1798
+ this.featureContainer.updateSubscriptions(i), this._worker.pipeline.updateSubscriptions(i);
1799
+ }, isDone: (i) => this.featureContainer.isDone(i) }), this.requestUpdate(), this.addAttachHandles([Ee(() => this.updateHash, () => this._update(), Rt), Ee(() => this.updateSuspended, (i) => {
1800
+ i || this._subscriptionManager.resume();
1801
+ })]), this.layer.type !== "stream" && this.layer.type !== "catalog-footprint" && this.addAttachHandles(this.layer.on("edits", (i) => this._edit(i)));
1802
+ }
1803
+ detach() {
1804
+ g("esri-2d-update-debug") && console.debug("FeatureLayerView2D.detach"), this._fields = null, this.featureContainer.destroy(), this._commandsQueue.clear(), this.container.removeAllChildren(), this._subscriptionManager = Ot(this._subscriptionManager), this._worker.pipeline.onDetach();
1805
+ }
1806
+ moveStart() {
1807
+ this.requestUpdate();
1808
+ }
1809
+ viewChange() {
1810
+ this.requestUpdate();
1811
+ }
1812
+ moveEnd() {
1813
+ this.requestUpdate();
1814
+ }
1815
+ isUpdating() {
1816
+ const i = "renderer" in this.layer && this.layer.renderer != null, e = this._commandsQueue.updateTracking.updating, t = this._updatingRequiredFieldsPromise != null, r = this.featureContainer.updatingHandles.updating, s = i && (e || t) || r || this._pipelineUpdating || this.dataUpdating;
1817
+ if (g("esri-2d-log-updating")) {
1818
+ console.log(`Updating FLV2D (${this.layer.id}): ${s}
1819
+ -> hasRenderer ${i}
1820
+ -> updatingRequiredFields ${t}
1821
+ -> hasPendingCommand ${e}
1822
+ -> dataUpdating ${this.dataUpdating}
1823
+ -> processing ${this._pipelineUpdating}
1824
+ -> updatingContainer ${r}
1825
+ `);
1826
+ for (const a of this.featureContainer.subscriptions())
1827
+ console.log(` -> Tile[${a.id}] Done: ${a.done}`);
1828
+ }
1829
+ return s;
1830
+ }
1831
+ _createClientOptions() {
1832
+ const i = this;
1833
+ return { get container() {
1834
+ return i.featureContainer;
1835
+ }, setUpdating: (e) => {
1836
+ this._set("_pipelineUpdating", e.pipeline), this._set("dataUpdating", e.data);
1837
+ }, emitEvent: (e) => {
1838
+ this.emit(e.name, e.event);
1839
+ }, get eventLog() {
1840
+ return i.eventLog;
1841
+ }, fetch: (e) => Promise.all(e.map((t) => i.view.stage.painter.textureManager.rasterizeItem(t))), fetchDictionary: (e) => Promise.all(e.map((t) => this._fetchDictionaryRequest(t))) };
1842
+ }
1843
+ async _fetchDictionaryRequest(i) {
1844
+ try {
1845
+ if (this.layer.type === "subtype-group")
1846
+ throw new Error("InternalError: SubtypeGroupLayer does not support dictionary renderer");
1847
+ const e = this.layer.renderer;
1848
+ if (!e || e.type !== "dictionary")
1849
+ throw new Error("InternalError: Expected layer to have a DictionaryRenderer");
1850
+ const t = this._lastSchema.processor.mesh.factory.symbology;
1851
+ if (t.type !== "dictionary")
1852
+ throw new Error("InternalError: Expected schema to be of type 'dictionary'");
1853
+ const r = { cimAnalyzer: this.view.stage.cimAnalyzer, cimResourceManager: this.view.stage.painter.textureManager.resourceManager, store: this.featureContainer.instanceStore, scaleExpression: t.scaleExpression };
1854
+ this._fields || (this._fields = this.layer.fields.map((n) => n.toJSON()));
1855
+ const s = t.visualVariableUniforms, a = await e.getSymbolAsync(i.feature, { fields: this._fields });
1856
+ return !a || !a.data ? { type: "dictionary-response", meshes: [] } : { type: "dictionary-response", meshes: await me(a.data, { uniforms: s, path: "renderer", schemaOptions: r }) };
1857
+ } catch {
1858
+ return { type: "dictionary-response", meshes: [] };
1859
+ }
1860
+ }
1861
+ _cleanUpQuery(i) {
1862
+ const e = ye.from(i) || this.createQuery();
1863
+ return e.outSpatialReference || (e.outSpatialReference = this.view.spatialReference), e.toJSON();
1864
+ }
1865
+ _cleanUpAggregateQuery(i) {
1866
+ const e = ye.from(i) || this.createAggregateQuery();
1867
+ e.outSpatialReference || (e.outSpatialReference = this.view.spatialReference);
1868
+ const t = e.objectIds ?? [];
1869
+ for (const r of e.aggregateIds ?? [])
1870
+ t.push(r);
1871
+ return e.objectIds = t, e.aggregateIds = [], e.toJSON();
1872
+ }
1873
+ async _update() {
1874
+ return this._commandsQueue.push({ type: "update" });
1875
+ }
1876
+ async _edit(i) {
1877
+ return this.updateSuspended ? void this._subscriptionManager.suspend() : this._validateEdit(i) ? this._commandsQueue.push({ type: "edit", edits: i }).catch($t) : void 0;
1878
+ }
1879
+ async doRefresh(i) {
1880
+ this.attached && (this.updateSuspended && i || (i ? this.incrementSourceRefreshVersion() : this.incrementDisplayRefreshVersion()));
1881
+ }
1882
+ incrementSourceRefreshVersion() {
1883
+ this._sourceRefreshVersion = (this._sourceRefreshVersion + 1) % Xe + 1;
1884
+ }
1885
+ incrementDisplayRefreshVersion() {
1886
+ this._displayRefreshVersion = (this._displayRefreshVersion + 1) % Xe + 1;
1887
+ }
1888
+ _validateEdit(i) {
1889
+ const e = "globalIdField" in this.layer && this.layer.globalIdField, t = i.deletedFeatures.some((s) => s.objectId === -1 || !s.objectId), r = e && this.availableFields.includes(e);
1890
+ return t && !r ? (q.getLogger(this).error(new C("mapview-apply-edits", `Editing the specified service requires the layer's globalIdField, ${e} to be included the layer's outFields for updates to be reflected on the map`)), null) : i;
1891
+ }
1892
+ async _doUpdate() {
1893
+ var i, e, t, r;
1894
+ "featureReduction" in this.layer && this.layer.featureReduction && this.layer.featureReduction !== this._lastFeatureReduction && (this.layer.featureReduction = (i = this.layer.featureReduction) == null ? void 0 : i.clone(), this._lastFeatureReduction = this.layer.featureReduction);
1895
+ try {
1896
+ if (await this._updateRequiredFields(), this.destroyed || !((e = this.layerAdapter) != null && e.hasRequiredSupport) || !this._subscriptionManager)
1897
+ return;
1898
+ const s = this.featureContainer.instanceStore;
1899
+ this.featureContainer.attributeView.lockTextureUploads(), s.updateStart();
1900
+ const a = this.featureEffect, n = { store: s, cimAnalyzer: this.view.stage.cimAnalyzer, cimResourceManager: this.view.stage.painter.textureManager.resourceManager, scaleExpression: void 0 }, o = await this.layerAdapter.createServiceOptions(this.view), u = this._createViewSchemaConfig(), l = { source: this.layerAdapter.createSourceSchema(o, u, this._sourceRefreshVersion), processor: await this.layerAdapter.createProcessorSchema(n, u, this._displayRefreshVersion) }, c = !!je((t = this._lastSchema) == null ? void 0 : t.source.mutable, l.source.mutable) || !!je((r = this._lastSchema) == null ? void 0 : r.processor, l.processor);
1901
+ if (!c)
1902
+ return this.featureContainer.requestRender(), this.featureContainer.attributeView.unlockTextureUploads(), s.updateEnd(), void (this.featureEffectView.featureEffect = a);
1903
+ this._lastSchema = l, this._fields = null;
1904
+ const d = Math.round(performance.now());
1905
+ g("esri-2d-update-debug") && console.debug(`Id[${this.layer.uid}] Version[${d}] FeatureLayerView2D._doUpdate`, { changes: c });
1906
+ let p = [];
1907
+ Array.isArray(o.source) && (p = o.source), await this._worker.pipeline.updateSchema(l, d, { transferList: p }), s.updateEnd(), this.featureEffectView.featureEffect = a, this.featureEffectView.endTransitions(), this.featureContainer.attributeView.unlockTextureUploads(), this.featureContainer.swapRenderState(), this.featureContainer.requestRender(), g("esri-2d-update-debug") && console.debug(`Version[${d}] FeatureLayerView2D.updateEnd`), this.requestUpdate();
1908
+ } catch (s) {
1909
+ g("esri-2d-update-debug") && console.error("Encountered an error during update", s);
1910
+ }
1911
+ }
1912
+ async _doEdit(i) {
1913
+ try {
1914
+ this.featureContainer.editStart(), await this._worker.pipeline.onEdits(i), this.featureContainer.editEnd();
1915
+ } catch (e) {
1916
+ _e(e);
1917
+ }
1918
+ }
1919
+ get hasFilter() {
1920
+ var e, t;
1921
+ const i = ((t = (e = this.layerAdapter).hasFilters) == null ? void 0 : t.call(e, this.view)) ?? !1;
1922
+ return this.filter != null || this.timeExtent != null || this._visibilityOverrides.size > 0 || i;
1923
+ }
1924
+ _getEffectiveAvailableFields(i) {
1925
+ const e = nr(this._lastAvailableFields, i);
1926
+ return this._lastAvailableFields = e, zt(this.layer.fieldsIndex, e);
1927
+ }
1928
+ _createViewSchemaConfig() {
1929
+ var e, t;
1930
+ const i = [or(this.view, this.layerAdapter, this.timeExtent, this._visibilityOverrides, this.filter), ((t = (e = this.featureEffect) == null ? void 0 : e.filter) == null ? void 0 : t.toJSON()) ?? null];
1931
+ return { availableFields: this._getEffectiveAvailableFields(this.availableFields), filters: i, outSpatialReference: this.view.spatialReference, tileInfoJSON: this.view.featuresTilingScheme.tileInfo.toJSON(), scale: this.view.scale, timeZone: this.view.timeZone };
1932
+ }
1933
+ _addHighlight(i, e) {
1934
+ this._highlightCounter.addReason(i, e), this._updateHighlight().catch((t) => {
1935
+ _e(t) || q.getLogger(this).error(t);
1936
+ });
1937
+ }
1938
+ _removeHighlight(i, e) {
1939
+ this._highlightCounter.deleteReason(i, e), this._updateHighlight().catch((t) => {
1940
+ _e(t) || q.getLogger(this).error(t);
1941
+ });
1942
+ }
1943
+ _setLayersForFeature(i) {
1944
+ i.layer = i.sourceLayer = this.layer, this.layerAdapter.setGraphicOrigin && this.layerAdapter.setGraphicOrigin(i);
1945
+ }
1946
+ _createGraphicHit(i, e) {
1947
+ return this._setLayersForFeature(e), e.geometry != null && (e.geometry.spatialReference = this.view.spatialReference), { type: "graphic", graphic: e, layer: this.layer, mapPoint: i };
1948
+ }
1949
+ };
1950
+ function or(i, e, t, r, s) {
1951
+ var u;
1952
+ s && (s = s.clone());
1953
+ const a = s != null ? s.timeExtent : null, n = t != null && a != null ? t.intersection(a) : t || a;
1954
+ n && (s ?? (s = new te()), s.timeExtent = n), s = ((u = e.addFilters) == null ? void 0 : u.call(e, s, i)) ?? s;
1955
+ let o = (s == null ? void 0 : s.toJSON()) ?? null;
1956
+ return r.size && (o ?? (o = new te().toJSON()), o.hiddenIds = Array.from(r)), o;
1957
+ }
1958
+ h([f()], I.prototype, "_worker", void 0), h([f()], I.prototype, "_commandsQueue", void 0), h([f()], I.prototype, "_sourceRefreshVersion", void 0), h([f()], I.prototype, "_displayRefreshVersion", void 0), h([f({ readOnly: !0 })], I.prototype, "_pipelineUpdating", void 0), h([f({ readOnly: !0 })], I.prototype, "hasAllFeatures", null), h([f({ readOnly: !0 })], I.prototype, "hasAllFeaturesInView", null), h([f({ readOnly: !0 })], I.prototype, "hasFullGeometries", null), h([f()], I.prototype, "featureEffectView", void 0), h([f()], I.prototype, "labelingCollisionInfos", null), h([f()], I.prototype, "layerAdapter", null), h([f()], I.prototype, "updateHash", null), h([f()], I.prototype, "updating", void 0), I = h([W(lr)], I);
1959
+ const ur = I, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1960
+ __proto__: null,
1961
+ default: ur
1962
+ }, Symbol.toStringTag, { value: "Module" }));
1963
+ export {
1964
+ Zr as F,
1965
+ ur as X,
1966
+ _ as n
1967
+ };