{"version":3,"file":"DJOS1ZqC.js","sources":["../../../../node_modules/date-fns/esm/addDays/index.js"],"sourcesContent":["import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} - the new date with the days added\n * @throws {TypeError} - 2 arguments required\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport default function addDays(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n if (isNaN(amount)) {\n return new Date(NaN);\n }\n if (!amount) {\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n return date;\n }\n date.setDate(date.getDate() + amount);\n return date;\n}"],"names":["addDays","dirtyDate","dirtyAmount","requiredArgs","date","toDate","amount","toInteger"],"mappings":";;oYAqBe,SAASA,EAAQC,EAAWC,EAAa,CACtDC,EAAa,EAAG,SAAS,EACzB,IAAIC,EAAOC,EAAOJ,CAAS,EACvBK,EAASC,EAAUL,CAAW,EAClC,OAAI,MAAMI,CAAM,EACP,IAAI,KAAK,GAAG,GAEhBA,GAILF,EAAK,QAAQA,EAAK,QAAO,EAAKE,CAAM,EAC7BF,EACT","debug_id":"d3ec227b-5c3c-59b9-9d83-caaa130eb15c"}