"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFormatter=getFormatter,exports.formatShortMonth=exports.formatMonth=void 0;var _getUserLocale=_interopRequireDefault(require("get-user-locale"));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function getFormatter(r){return function(t,o){return o.toLocaleString(t||(0,_getUserLocale.default)(),r)}}function toSafeHour(t){t=new Date(t);return new Date(t.setHours(12))}function getSafeFormatter(r){return function(t,o){return getFormatter(r)(t,toSafeHour(o))}}var formatMonthOptions={month:"long"},formatShortMonthOptions={month:"short"},formatMonth=getSafeFormatter(formatMonthOptions);exports.formatMonth=formatMonth;var formatShortMonth=getSafeFormatter(formatShortMonthOptions);exports.formatShortMonth=formatShortMonth;