"use strict";function getWindow(e){return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e;var t}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}Object.defineProperty(exports,"__esModule",{value:!0});var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&isHTMLElement(e)&&(r=0g[P]&&(E=getOppositePlacement(E)),getOppositePlacement(E)),P=[];if(r&&P.push(S[O]<=0),i&&P.push(S[E]<=0,S[x]<=0),P.every(function(e){return e})){y=w,v=!1;break}h.set(w,P)}if(v)for(var R=c?3:1;0