/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{parseUrl as r}from"../utils.js";import{executeQueryForIds as t}from"./operations/query.js";import o from"../support/Query.js";async function i(i,n,u,e){const f=r(i),m=await t(f,o.from(n),u,e);return m.objectIds??s(m.uniqueIds)??[]}function n(r){return!Array.isArray(r[0])}function s(r){if(r)return n(r)?r:r.map(r=>JSON.stringify(r))}export{i as executeForIds};
