'use strict';
import { addDays, startOfWeek, format, startOfDay, set, parse as parse$1, parseISO, sub, subHours, subDays, addSeconds, isBefore } from 'date-fns';

var __defProp=Object['defineProperty'],__name=(_0x30bda1,_0x2dbe61)=>__defProp(_0x30bda1,'name',{'value':_0x2dbe61,'configurable':!![]});const dateFormat='dd.MM.yyyy\x20HH:mm:ss';function getNow(){return new Date();}__name(getNow,'getNow');function getNowWithoutTimezone(){return getNow()['getTime']();}__name(getNowWithoutTimezone,'getNowWithoutTimezone');function addDaysToDate(_0x134dd1,_0x32a2c2){return addDays(_0x134dd1,_0x32a2c2);}__name(addDaysToDate,'addDaysToDate');function getStartOfWeekDate(_0x46fd29=getNow()){const _0x4eb9f9=startOfWeek(_0x46fd29,{'weekStartsOn':0x1});return format(_0x4eb9f9,dateFormat);}__name(getStartOfWeekDate,'getStartOfWeekDate');function getToday(){const _0x13ba91=getNow(),_0x5aed1b=startOfDay(_0x13ba91);return format(_0x5aed1b,dateFormat);}__name(getToday,'getToday');function changeTime(_0x5d7340,_0x5f7c5d,_0x4a22e2){return set(_0x5d7340,{'hours':_0x5f7c5d,'minutes':_0x4a22e2,'seconds':0x0,'milliseconds':0x0});}__name(changeTime,'changeTime');function parseExact(_0x3d977f,_0x5c0463){const _0x5ad355=parse$1(_0x3d977f,_0x5c0463,getNow());return _0x5ad355;}__name(parseExact,'parseExact');function parse(_0x245568){const _0x54fbc3=parse$1(_0x245568,dateFormat,getNow());return _0x54fbc3;}__name(parse,'parse');function tryParse(_0x10d4ba){if(!_0x10d4ba||_0x10d4ba['trim']()==='')return void(0x1ce4+0xd40+-0x2a24);try{const _0x48a79b=parse$1(_0x10d4ba,dateFormat,getNow());return _0x48a79b;}catch{return void(-0x25e6+-0xa93+0x3079);}}__name(tryParse,'tryParse');function unixTimestampToDate(_0x4f8abc){return new Date(_0x4f8abc*(0x22fa+-0x10d7*0x1+-0xe3b*0x1));}__name(unixTimestampToDate,'unixTimestampToDate');function getDefaultDate(){return parseISO('0001-01-01T00:00:00.000');}__name(getDefaultDate,'getDefaultDate');function subtractTime(_0x25e6f1,_0x90ba0,_0x3f18f8){return sub(_0x25e6f1,{'hours':_0x90ba0,'minutes':_0x3f18f8});}__name(subtractTime,'subtractTime');function getCurrentDateSubHours(_0x430000){return subHours(getNow(),_0x430000);}__name(getCurrentDateSubHours,'getCurrentDateSubHours');function getCurrentDateSubDays(_0x132b24){return subDays(getNow(),_0x132b24);}__name(getCurrentDateSubDays,'getCurrentDateSubDays');function getCurrentDateAddSeconds(_0x4b70fe){return addSeconds(getNow(),_0x4b70fe);}__name(getCurrentDateAddSeconds,'getCurrentDateAddSeconds');function isBeforeNow(_0x5e610c){return isBefore(_0x5e610c,getNowWithoutTimezone());}__name(isBeforeNow,'isBeforeNow');function getCurrentYearDateRange(){const _0x23ff21=getNow(),_0xf0afb0=_0x23ff21['getFullYear'](),_0x325388=new Date(_0xf0afb0,-0xe0d*0x2+-0x127e+0x2e98,0x11*0x115+0x2402*-0x1+0x119e),_0x3ef7cc=new Date(_0xf0afb0,-0x5df+0x16f8+-0x110e,0x1*-0x388+0x1135+-0xd8e,0x1bfa*0x1+-0xfb5*-0x2+-0x3b4d,-0x25e1+0x1*0x198b+-0xc91*-0x1,-0x1ba3*0x1+0x6e0+0x14fe,0x5*-0x58e+-0x129*-0x1b+-0x9*-0xa);return {'startDate':_0x325388,'endDate':_0x3ef7cc};}__name(getCurrentYearDateRange,'getCurrentYearDateRange');

export { addDaysToDate, changeTime, getCurrentDateAddSeconds, getCurrentDateSubDays, getCurrentDateSubHours, getCurrentYearDateRange, getDefaultDate, getNow, getNowWithoutTimezone, getStartOfWeekDate, getToday, isBeforeNow, parse, parseExact, subtractTime, tryParse, unixTimestampToDate };
