import{executeQuery as r,executeCount as e}from"../../support/_graphicsQuery.js";import{isGeoRssLayer as o}from"../../utilities/_layers.js";import{map as s}from"../../utilities/promise.js";import{QueryProviderBase as t}from"./QueryProviderBase.js";export class GeoRSSLayerQueryProvider extends t{isSupported(r){const{layer:e}=r;return o(e)}async*_query(e,o,s){const t=e;for(const e of t._featureLayerExtensions){const a=r(o,t,e.layer.source,s);for await(const r of a)r.schema.parent=e.schema,yield r}}async _count(r,o,t){const a=r,i=await s(a._featureLayerExtensions,(r=>e(o,a,r.layer.source,t)));let n=0;for(const r of i)n+=r.count;return{source:r,count:n}}}