text: function absPos(t){var o=t.getBoundingClientRect(),e=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,t=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;return{left:o.left+e,top:o.top+t,right:o.right+e,bottom:o.bottom+t,width:o.right-o.left,height:o.bottom-o.top,x:o.left+e,y:o.top+t,vx:e,vy:t}}function viewportPos(t){var o=t.getBoundingClientRect(),e=o.left,n=o.right,t=o.top,o=o.bottom;return{left:e,top:t,right:n,bottom:o,width:n-e,height:o-t}}