import{bR as n}from"./index-DtyjNqrf.js";var c=[60,60,24,7,365/7/12,12];function l(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function s(e,a){var t=e<0?1:0;e=Math.abs(e);for(var o=e,r=0;e>=c[r]&&r<c.length;r++)e/=c[r];return e=Math.floor(e),r*=2,e>(r===0?9:1)&&(r+=1),a(e,r,o)[t].replace("%s",e.toString())}function v(e,a){var t=new Date;return(+t-+l(e))/1e3}var m=function(e,a,t){var o=v(e);return s(o,n(a))};export{m as f};
