import{a6 as l,ab as i}from"./index-Daf0Yezg.js";function f(e,s){const n=l(e),t=l(s),o=u(n,t),r=Math.abs(i(n,t));n.setDate(n.getDate()-o*r);const a=+(u(n,t)===-o),c=o*(r-a);return c===0?0:c}function u(e,s){const n=e.getFullYear()-s.getFullYear()||e.getMonth()-s.getMonth()||e.getDate()-s.getDate()||e.getHours()-s.getHours()||e.getMinutes()-s.getMinutes()||e.getSeconds()-s.getSeconds()||e.getMilliseconds()-s.getMilliseconds();return n<0?-1:n>0?1:n}export{f as d};