"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js"),d=require("../vc-util/Dom/contains.js");function g(e,i){return e===i?!0:!e||!i?!1:"pageX"in i&&"pageY"in i?e.pageX===i.pageX&&e.pageY===i.pageY:"clientX"in i&&"clientY"in i?e.clientX===i.clientX&&e.clientY===i.clientY:!1}function h(e,i){e!==document.activeElement&&d.default(i,e)&&typeof e.focus=="function"&&e.focus()}function m(e,i){let o=null,r=null;function c([{target:u}]){if(!document.documentElement.contains(u))return;const{width:f,height:l}=u.getBoundingClientRect(),t=Math.floor(f),n=Math.floor(l);(o!==t||r!==n)&&Promise.resolve().then(()=>{i({width:t,height:n})}),o=t,r=n}const s=new a.default(c);return e&&s.observe(e),()=>{s.disconnect()}}exports.isSamePoint=g;exports.monitorResize=m;exports.restoreFocus=h;
