import { isString } from "@thi.ng/checks/is-string" ; import type { HDOMImplementation } from "./api.js" ; export const resolveRoot = ( root , impl ) => isString ( root ) ? impl . getElementById ( root ) : root ;