export function getAccessibleIframeDocument(iframe) {
    if (!iframe)
        return null;
    try {
        return iframe.contentDocument || iframe.contentWindow?.document || null;
    }
    catch {
        return null;
    }
}
export function getAccessibleIframeWindow(iframe) {
    if (!iframe)
        return null;
    try {
        return iframe.contentWindow;
    }
    catch {
        return null;
    }
}
//# sourceMappingURL=iframeAccess.js.map