/*!
 * Built by ShiftSoftware
 * Copyright (c)
 */
import{d as e}from"./p-BffuX06w.js";function t({offsets:t,type:r,date:a=e.startOfDay(new Date)}){if(t.length>0&&(a=e.addYears(a,t[0])),t.length>1&&(a=e.addMonths(a,t[1])),t.length>2&&(a=e.addDays(a,t[2])),t.length>3&&(a=e.addHours(a,t[3])),t.length>4&&(a=e.addMinutes(a,t[4])),t.length>5&&(a=e.addSeconds(a,t[5])),r)switch(r){case"date":return e.format(a,"yyyy-MM-dd");case"time":return e.format(a,"HH:mm");case"datetime-local":return e.format(a,"yyyy-MM-dd'T'HH:mm");default:return a}return a}export{t as d}