function resolveTarget(eltOrSelector, context) {
    if (typeof eltOrSelector === 'string') {
      return find(asParentNode(context) || document, eltOrSelector)
    } else {
      return eltOrSelector
    }
  }
@template {EventTarget} T
@param {T|string} eltOrSelector
@param {T} [context]
@returns {Element|T|null}