"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get last () {
        return last;
    },
    get monthLongName () {
        return monthLongName;
    },
    get monthName () {
        return monthName;
    },
    get monthShortName () {
        return monthShortName;
    },
    get padZeroNumber () {
        return padZeroNumber;
    }
});
var last = function last(array) {
    return array[array.length - 1];
};
var padZeroNumber = function padZeroNumber(value) {
    return "".concat(value).padStart(2, '0');
};
var monthName = function monthName(val, monthFormat) {
    var targetMonth = new Date(2000, val, 1);
    return last(new Intl.DateTimeFormat('ru-RU', {
        day: 'numeric',
        month: monthFormat
    }).formatToParts(targetMonth)).value;
};
var monthLongName = function monthLongName(val) {
    return monthName(val, 'long');
};
var monthShortName = function monthShortName(val) {
    return monthName(val, 'short').replace('.', '');
};
