import{e as f,g as i}from"./chunk-W3BEWLBM.js";function l(n,t,o){let[s,e]=f(o?.in,n,t),c=r(s,e),g=Math.abs(i(s,e));s.setDate(s.getDate()-c*g);let d=+(r(s,e)===-c),u=c*(g-d);return u===0?0:u}function r(n,t){let o=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return o<0?-1:o>0?1:o}export{l as a};
//# sourceMappingURL=chunk-5TYAADRO.js.map
