import t from"./getWindow.js";import e from"./getDocumentElement.js";import i from"./getWindowScrollBarX.js";function o(o){var r=t(o),n=e(o),f=r.visualViewport,a=n.clientWidth,h=n.clientHeight,m=0,s=0;return f&&(a=f.width,h=f.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(m=f.offsetLeft,s=f.offsetTop)),{width:a,height:h,x:m+i(o),y:s}}export default o;
//# sourceMappingURL=getViewportRect.js.map
