function c(t=new Date){const a=t instanceof Date?t:new Date(t),e=a.getFullYear(),n=String(a.getMonth()+1).padStart(2,"0"),o=String(a.getDate()).padStart(2,"0");return`${e}-${n}-${o}`}function s(t=new Date){return c(t).slice(0,7)}function i(t=new Date){return String((t instanceof Date?t:new Date(t)).getFullYear())}function D(t,a){const[e,n,o]=String(t).split("-").map(Number),r=new Date(e,n-1,o);return r.setDate(r.getDate()+a),c(r)}export{c as a,i as b,s as f,D as s};