You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
789 B

import{c as r,i as p,a as f}from"./html-a2da55a6.js";function s(t){const n=t.getBoundingClientRect(),o=t.ownerDocument.defaultView;return{top:n.top+o.pageYOffset,left:n.left+o.pageXOffset}}function a(t){return t.getBoundingClientRect().width}function d(t){return t.getBoundingClientRect().height}function l(t){const n=r(t,"position")==="fixed";let o;if(n){const i=t.getBoundingClientRect();o={left:i.left,top:i.top}}else o=s(t);if(!n){const i=t.ownerDocument;let e=t.offsetParent||i.documentElement;for(;(e===i.body||e===i.documentElement)&&r(e,"position")==="static";)e=e.parentNode;if(e!==t&&p(e)){const c=s(e);o.top-=c.top+f(e,"borderTopWidth"),o.left-=c.left+f(e,"borderLeftWidth")}}return{top:o.top-f(t,"marginTop"),left:o.left-f(t,"marginLeft")}}export{d as h,s as o,l as p,a as w};