"use strict";Liferay.Loader.define("change-tracking-web$dom-helpers@5.2.0/cjs/scrollTo",["module","exports","require","@change-tracking-web$babel/runtime/helpers/interopRequireDefault","./animationFrame","./height","./isWindow","./offset","./scrollParent","./scrollTop"],(function(e,t,r){window;var a=r("@change-tracking-web$babel/runtime/helpers/interopRequireDefault");t.__esModule=!0,t.default=function(e,t){var r=(0,o.default)(e),a={top:0,left:0};if(e){var c=t||(0,u.default)(e),d=(0,n.default)(c),s=(0,f.default)(c),h=(0,l.default)(c,!0);d||(a=(0,o.default)(c));var p=(r={top:r.top-a.top,left:r.left-a.left,height:r.height,width:r.width}).height,g=r.top+(d?0:s),w=g+p;s=s>g?g:w>s+h?w-h:s;var m=(0,i.request)((function(){return(0,f.default)(c,s)}));return function(){return(0,i.cancel)(m)}}};var i=r("./animationFrame"),l=a(r("./height")),n=a(r("./isWindow")),o=a(r("./offset")),u=a(r("./scrollParent")),f=a(r("./scrollTop"));e.exports=t.default}));
//# sourceMappingURL=scrollTo.js.map