function s(n, r, f) {
  if (n == null)
    return [];
  if (n instanceof EventTarget)
    return [n];
  if (typeof n == "string") {
    let u = document;
    const i = (f == null ? void 0 : f[n]) ?? u.querySelectorAll(n);
    return i ? Array.from(i) : [];
  }
  return Array.from(n).filter((u) => u != null);
}
export {
  s as resolveElements
};
//# sourceMappingURL=resolve-elements.es.js.map
