@formatjs/intl-datetimeformat 6.11.0 → 6.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/src/core.js CHANGED
@@ -1,17 +1,20 @@
1
- import { __assign, __rest } from "tslib";
2
- import { invariant, defineProperty, SupportedLocales, IsValidTimeZoneName, CanonicalizeTimeZoneName, CanonicalizeLocaleList, ToNumber, OrdinaryHasInstance, } from '@formatjs/ecma402-abstract';
3
- import getInternalSlots from './get_internal_slots';
4
- import links from './data/links';
5
- import { unpack } from './packer';
6
- import { FormatDateTime } from './abstract/FormatDateTime';
7
- import { InitializeDateTimeFormat } from './abstract/InitializeDateTimeFormat';
8
- import { DATE_TIME_PROPS } from './abstract/utils';
9
- import { FormatDateTimeToParts } from './abstract/FormatDateTimeToParts';
10
- import { FormatDateTimeRangeToParts } from './abstract/FormatDateTimeRangeToParts';
11
- import { FormatDateTimeRange } from './abstract/FormatDateTimeRange';
12
- import { parseDateTimeSkeleton } from './abstract/skeleton';
13
- var UPPERCASED_LINKS = Object.keys(links).reduce(function (all, l) {
14
- all[l.toUpperCase()] = links[l];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DateTimeFormat = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
6
+ var get_internal_slots_1 = tslib_1.__importDefault(require("./get_internal_slots"));
7
+ var links_1 = tslib_1.__importDefault(require("./data/links"));
8
+ var packer_1 = require("./packer");
9
+ var FormatDateTime_1 = require("./abstract/FormatDateTime");
10
+ var InitializeDateTimeFormat_1 = require("./abstract/InitializeDateTimeFormat");
11
+ var utils_1 = require("./abstract/utils");
12
+ var FormatDateTimeToParts_1 = require("./abstract/FormatDateTimeToParts");
13
+ var FormatDateTimeRangeToParts_1 = require("./abstract/FormatDateTimeRangeToParts");
14
+ var FormatDateTimeRange_1 = require("./abstract/FormatDateTimeRange");
15
+ var skeleton_1 = require("./abstract/skeleton");
16
+ var UPPERCASED_LINKS = Object.keys(links_1.default).reduce(function (all, l) {
17
+ all[l.toUpperCase()] = links_1.default[l];
15
18
  return all;
16
19
  }, {});
17
20
  var RESOLVED_OPTIONS_KEYS = [
@@ -37,10 +40,10 @@ var formatDescriptor = {
37
40
  configurable: true,
38
41
  get: function () {
39
42
  if (typeof this !== 'object' ||
40
- !OrdinaryHasInstance(DateTimeFormat, this)) {
43
+ !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.DateTimeFormat, this)) {
41
44
  throw TypeError('Intl.DateTimeFormat format property accessor called on incompatible receiver');
42
45
  }
43
- var internalSlots = getInternalSlots(this);
46
+ var internalSlots = (0, get_internal_slots_1.default)(this);
44
47
  // eslint-disable-next-line @typescript-eslint/no-this-alias
45
48
  var dtf = this;
46
49
  var boundFormat = internalSlots.boundFormat;
@@ -54,11 +57,11 @@ var formatDescriptor = {
54
57
  else {
55
58
  x = Number(date);
56
59
  }
57
- return FormatDateTime(dtf, x, {
58
- getInternalSlots: getInternalSlots,
59
- localeData: DateTimeFormat.localeData,
60
- tzData: DateTimeFormat.tzData,
61
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone,
60
+ return (0, FormatDateTime_1.FormatDateTime)(dtf, x, {
61
+ getInternalSlots: get_internal_slots_1.default,
62
+ localeData: exports.DateTimeFormat.localeData,
63
+ tzData: exports.DateTimeFormat.tzData,
64
+ getDefaultTimeZone: exports.DateTimeFormat.getDefaultTimeZone,
62
65
  });
63
66
  };
64
67
  try {
@@ -92,41 +95,41 @@ catch (e) {
92
95
  // In older browser (e.g Chrome 36 like polyfill.io)
93
96
  // TypeError: Cannot redefine property: name
94
97
  }
95
- export var DateTimeFormat = function (locales, options) {
98
+ exports.DateTimeFormat = function (locales, options) {
96
99
  // Cannot use `new.target` bc of IE11 & TS transpiles it to something else
97
- if (!this || !OrdinaryHasInstance(DateTimeFormat, this)) {
98
- return new DateTimeFormat(locales, options);
100
+ if (!this || !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.DateTimeFormat, this)) {
101
+ return new exports.DateTimeFormat(locales, options);
99
102
  }
100
- InitializeDateTimeFormat(this, locales, options, {
101
- tzData: DateTimeFormat.tzData,
103
+ (0, InitializeDateTimeFormat_1.InitializeDateTimeFormat)(this, locales, options, {
104
+ tzData: exports.DateTimeFormat.tzData,
102
105
  uppercaseLinks: UPPERCASED_LINKS,
103
- availableLocales: DateTimeFormat.availableLocales,
104
- relevantExtensionKeys: DateTimeFormat.relevantExtensionKeys,
105
- getDefaultLocale: DateTimeFormat.getDefaultLocale,
106
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone,
107
- getInternalSlots: getInternalSlots,
108
- localeData: DateTimeFormat.localeData,
106
+ availableLocales: exports.DateTimeFormat.availableLocales,
107
+ relevantExtensionKeys: exports.DateTimeFormat.relevantExtensionKeys,
108
+ getDefaultLocale: exports.DateTimeFormat.getDefaultLocale,
109
+ getDefaultTimeZone: exports.DateTimeFormat.getDefaultTimeZone,
110
+ getInternalSlots: get_internal_slots_1.default,
111
+ localeData: exports.DateTimeFormat.localeData,
109
112
  });
110
113
  /** IMPL START */
111
- var internalSlots = getInternalSlots(this);
114
+ var internalSlots = (0, get_internal_slots_1.default)(this);
112
115
  var dataLocale = internalSlots.dataLocale;
113
- var dataLocaleData = DateTimeFormat.localeData[dataLocale];
114
- invariant(dataLocaleData !== undefined, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
116
+ var dataLocaleData = exports.DateTimeFormat.localeData[dataLocale];
117
+ (0, ecma402_abstract_1.invariant)(dataLocaleData !== undefined, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
115
118
  /** IMPL END */
116
119
  };
117
120
  // Static properties
118
- defineProperty(DateTimeFormat, 'supportedLocalesOf', {
121
+ (0, ecma402_abstract_1.defineProperty)(exports.DateTimeFormat, 'supportedLocalesOf', {
119
122
  value: function supportedLocalesOf(locales, options) {
120
- return SupportedLocales(DateTimeFormat.availableLocales, CanonicalizeLocaleList(locales), options);
123
+ return (0, ecma402_abstract_1.SupportedLocales)(exports.DateTimeFormat.availableLocales, (0, ecma402_abstract_1.CanonicalizeLocaleList)(locales), options);
121
124
  },
122
125
  });
123
- defineProperty(DateTimeFormat.prototype, 'resolvedOptions', {
126
+ (0, ecma402_abstract_1.defineProperty)(exports.DateTimeFormat.prototype, 'resolvedOptions', {
124
127
  value: function resolvedOptions() {
125
128
  if (typeof this !== 'object' ||
126
- !OrdinaryHasInstance(DateTimeFormat, this)) {
129
+ !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.DateTimeFormat, this)) {
127
130
  throw TypeError('Method Intl.DateTimeFormat.prototype.resolvedOptions called on incompatible receiver');
128
131
  }
129
- var internalSlots = getInternalSlots(this);
132
+ var internalSlots = (0, get_internal_slots_1.default)(this);
130
133
  var ro = {};
131
134
  for (var _i = 0, RESOLVED_OPTIONS_KEYS_1 = RESOLVED_OPTIONS_KEYS; _i < RESOLVED_OPTIONS_KEYS_1.length; _i++) {
132
135
  var key = RESOLVED_OPTIONS_KEYS_1[_i];
@@ -141,7 +144,7 @@ defineProperty(DateTimeFormat.prototype, 'resolvedOptions', {
141
144
  ro.hour12 = hour12;
142
145
  }
143
146
  }
144
- if (DATE_TIME_PROPS.indexOf(key) > -1) {
147
+ if (utils_1.DATE_TIME_PROPS.indexOf(key) > -1) {
145
148
  if (internalSlots.dateStyle !== undefined ||
146
149
  internalSlots.timeStyle !== undefined) {
147
150
  value = undefined;
@@ -154,23 +157,23 @@ defineProperty(DateTimeFormat.prototype, 'resolvedOptions', {
154
157
  return ro;
155
158
  },
156
159
  });
157
- defineProperty(DateTimeFormat.prototype, 'formatToParts', {
160
+ (0, ecma402_abstract_1.defineProperty)(exports.DateTimeFormat.prototype, 'formatToParts', {
158
161
  value: function formatToParts(date) {
159
162
  if (date === undefined) {
160
163
  date = Date.now();
161
164
  }
162
165
  else {
163
- date = ToNumber(date);
166
+ date = (0, ecma402_abstract_1.ToNumber)(date);
164
167
  }
165
- return FormatDateTimeToParts(this, date, {
166
- getInternalSlots: getInternalSlots,
167
- localeData: DateTimeFormat.localeData,
168
- tzData: DateTimeFormat.tzData,
169
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone,
168
+ return (0, FormatDateTimeToParts_1.FormatDateTimeToParts)(this, date, {
169
+ getInternalSlots: get_internal_slots_1.default,
170
+ localeData: exports.DateTimeFormat.localeData,
171
+ tzData: exports.DateTimeFormat.tzData,
172
+ getDefaultTimeZone: exports.DateTimeFormat.getDefaultTimeZone,
170
173
  });
171
174
  },
172
175
  });
173
- defineProperty(DateTimeFormat.prototype, 'formatRangeToParts', {
176
+ (0, ecma402_abstract_1.defineProperty)(exports.DateTimeFormat.prototype, 'formatRangeToParts', {
174
177
  value: function formatRangeToParts(startDate, endDate) {
175
178
  var dtf = this;
176
179
  if (typeof dtf !== 'object') {
@@ -179,17 +182,17 @@ defineProperty(DateTimeFormat.prototype, 'formatRangeToParts', {
179
182
  if (startDate === undefined || endDate === undefined) {
180
183
  throw new TypeError('startDate/endDate cannot be undefined');
181
184
  }
182
- var x = ToNumber(startDate);
183
- var y = ToNumber(endDate);
184
- return FormatDateTimeRangeToParts(dtf, x, y, {
185
- getInternalSlots: getInternalSlots,
186
- localeData: DateTimeFormat.localeData,
187
- tzData: DateTimeFormat.tzData,
188
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone,
185
+ var x = (0, ecma402_abstract_1.ToNumber)(startDate);
186
+ var y = (0, ecma402_abstract_1.ToNumber)(endDate);
187
+ return (0, FormatDateTimeRangeToParts_1.FormatDateTimeRangeToParts)(dtf, x, y, {
188
+ getInternalSlots: get_internal_slots_1.default,
189
+ localeData: exports.DateTimeFormat.localeData,
190
+ tzData: exports.DateTimeFormat.tzData,
191
+ getDefaultTimeZone: exports.DateTimeFormat.getDefaultTimeZone,
189
192
  });
190
193
  },
191
194
  });
192
- defineProperty(DateTimeFormat.prototype, 'formatRange', {
195
+ (0, ecma402_abstract_1.defineProperty)(exports.DateTimeFormat.prototype, 'formatRange', {
193
196
  value: function formatRange(startDate, endDate) {
194
197
  var dtf = this;
195
198
  if (typeof dtf !== 'object') {
@@ -198,65 +201,65 @@ defineProperty(DateTimeFormat.prototype, 'formatRange', {
198
201
  if (startDate === undefined || endDate === undefined) {
199
202
  throw new TypeError('startDate/endDate cannot be undefined');
200
203
  }
201
- var x = ToNumber(startDate);
202
- var y = ToNumber(endDate);
203
- return FormatDateTimeRange(dtf, x, y, {
204
- getInternalSlots: getInternalSlots,
205
- localeData: DateTimeFormat.localeData,
206
- tzData: DateTimeFormat.tzData,
207
- getDefaultTimeZone: DateTimeFormat.getDefaultTimeZone,
204
+ var x = (0, ecma402_abstract_1.ToNumber)(startDate);
205
+ var y = (0, ecma402_abstract_1.ToNumber)(endDate);
206
+ return (0, FormatDateTimeRange_1.FormatDateTimeRange)(dtf, x, y, {
207
+ getInternalSlots: get_internal_slots_1.default,
208
+ localeData: exports.DateTimeFormat.localeData,
209
+ tzData: exports.DateTimeFormat.tzData,
210
+ getDefaultTimeZone: exports.DateTimeFormat.getDefaultTimeZone,
208
211
  });
209
212
  },
210
213
  });
211
214
  var DEFAULT_TIMEZONE = 'UTC';
212
- DateTimeFormat.__setDefaultTimeZone = function (timeZone) {
215
+ exports.DateTimeFormat.__setDefaultTimeZone = function (timeZone) {
213
216
  if (timeZone !== undefined) {
214
217
  timeZone = String(timeZone);
215
- if (!IsValidTimeZoneName(timeZone, {
216
- tzData: DateTimeFormat.tzData,
218
+ if (!(0, ecma402_abstract_1.IsValidTimeZoneName)(timeZone, {
219
+ tzData: exports.DateTimeFormat.tzData,
217
220
  uppercaseLinks: UPPERCASED_LINKS,
218
221
  })) {
219
222
  throw new RangeError('Invalid timeZoneName');
220
223
  }
221
- timeZone = CanonicalizeTimeZoneName(timeZone, {
222
- tzData: DateTimeFormat.tzData,
224
+ timeZone = (0, ecma402_abstract_1.CanonicalizeTimeZoneName)(timeZone, {
225
+ tzData: exports.DateTimeFormat.tzData,
223
226
  uppercaseLinks: UPPERCASED_LINKS,
224
227
  });
225
228
  }
226
229
  else {
227
230
  timeZone = DEFAULT_TIMEZONE;
228
231
  }
229
- DateTimeFormat.__defaultTimeZone = timeZone;
232
+ exports.DateTimeFormat.__defaultTimeZone = timeZone;
230
233
  };
231
- DateTimeFormat.relevantExtensionKeys = ['nu', 'ca', 'hc'];
232
- DateTimeFormat.__defaultTimeZone = DEFAULT_TIMEZONE;
233
- DateTimeFormat.getDefaultTimeZone = function () { return DateTimeFormat.__defaultTimeZone; };
234
- DateTimeFormat.__addLocaleData = function __addLocaleData() {
234
+ exports.DateTimeFormat.relevantExtensionKeys = ['nu', 'ca', 'hc'];
235
+ exports.DateTimeFormat.__defaultTimeZone = DEFAULT_TIMEZONE;
236
+ exports.DateTimeFormat.getDefaultTimeZone = function () { return exports.DateTimeFormat.__defaultTimeZone; };
237
+ exports.DateTimeFormat.__addLocaleData = function __addLocaleData() {
235
238
  var data = [];
236
239
  for (var _i = 0; _i < arguments.length; _i++) {
237
240
  data[_i] = arguments[_i];
238
241
  }
239
242
  var _loop_1 = function (d, locale) {
240
- var dateFormat = d.dateFormat, timeFormat = d.timeFormat, dateTimeFormat = d.dateTimeFormat, formats = d.formats, intervalFormats = d.intervalFormats, rawData = __rest(d, ["dateFormat", "timeFormat", "dateTimeFormat", "formats", "intervalFormats"]);
241
- var processedData = __assign(__assign({}, rawData), { dateFormat: {
242
- full: parseDateTimeSkeleton(dateFormat.full),
243
- long: parseDateTimeSkeleton(dateFormat.long),
244
- medium: parseDateTimeSkeleton(dateFormat.medium),
245
- short: parseDateTimeSkeleton(dateFormat.short),
243
+ var dateFormat = d.dateFormat, timeFormat = d.timeFormat, dateTimeFormat = d.dateTimeFormat, formats = d.formats, intervalFormats = d.intervalFormats, rawData = tslib_1.__rest(d, ["dateFormat", "timeFormat", "dateTimeFormat", "formats", "intervalFormats"]);
244
+ var processedData = tslib_1.__assign(tslib_1.__assign({}, rawData), { dateFormat: {
245
+ full: (0, skeleton_1.parseDateTimeSkeleton)(dateFormat.full),
246
+ long: (0, skeleton_1.parseDateTimeSkeleton)(dateFormat.long),
247
+ medium: (0, skeleton_1.parseDateTimeSkeleton)(dateFormat.medium),
248
+ short: (0, skeleton_1.parseDateTimeSkeleton)(dateFormat.short),
246
249
  }, timeFormat: {
247
- full: parseDateTimeSkeleton(timeFormat.full),
248
- long: parseDateTimeSkeleton(timeFormat.long),
249
- medium: parseDateTimeSkeleton(timeFormat.medium),
250
- short: parseDateTimeSkeleton(timeFormat.short),
250
+ full: (0, skeleton_1.parseDateTimeSkeleton)(timeFormat.full),
251
+ long: (0, skeleton_1.parseDateTimeSkeleton)(timeFormat.long),
252
+ medium: (0, skeleton_1.parseDateTimeSkeleton)(timeFormat.medium),
253
+ short: (0, skeleton_1.parseDateTimeSkeleton)(timeFormat.short),
251
254
  }, dateTimeFormat: {
252
- full: parseDateTimeSkeleton(dateTimeFormat.full).pattern,
253
- long: parseDateTimeSkeleton(dateTimeFormat.long).pattern,
254
- medium: parseDateTimeSkeleton(dateTimeFormat.medium).pattern,
255
- short: parseDateTimeSkeleton(dateTimeFormat.short).pattern,
255
+ full: (0, skeleton_1.parseDateTimeSkeleton)(dateTimeFormat.full).pattern,
256
+ long: (0, skeleton_1.parseDateTimeSkeleton)(dateTimeFormat.long).pattern,
257
+ medium: (0, skeleton_1.parseDateTimeSkeleton)(dateTimeFormat.medium).pattern,
258
+ short: (0, skeleton_1.parseDateTimeSkeleton)(dateTimeFormat.short).pattern,
256
259
  }, formats: {} });
257
260
  var _loop_2 = function (calendar) {
258
261
  processedData.formats[calendar] = Object.keys(formats[calendar]).map(function (skeleton) {
259
- return parseDateTimeSkeleton(skeleton, formats[calendar][skeleton], intervalFormats[skeleton], intervalFormats.intervalFormatFallback);
262
+ return (0, skeleton_1.parseDateTimeSkeleton)(skeleton, formats[calendar][skeleton], intervalFormats[skeleton], intervalFormats.intervalFormatFallback);
260
263
  });
261
264
  };
262
265
  for (var calendar in formats) {
@@ -265,11 +268,11 @@ DateTimeFormat.__addLocaleData = function __addLocaleData() {
265
268
  var minimizedLocale = new Intl.Locale(locale)
266
269
  .minimize()
267
270
  .toString();
268
- DateTimeFormat.localeData[locale] = DateTimeFormat.localeData[minimizedLocale] = processedData;
269
- DateTimeFormat.availableLocales.add(locale);
270
- DateTimeFormat.availableLocales.add(minimizedLocale);
271
- if (!DateTimeFormat.__defaultLocale) {
272
- DateTimeFormat.__defaultLocale = minimizedLocale;
271
+ exports.DateTimeFormat.localeData[locale] = exports.DateTimeFormat.localeData[minimizedLocale] = processedData;
272
+ exports.DateTimeFormat.availableLocales.add(locale);
273
+ exports.DateTimeFormat.availableLocales.add(minimizedLocale);
274
+ if (!exports.DateTimeFormat.__defaultLocale) {
275
+ exports.DateTimeFormat.__defaultLocale = minimizedLocale;
273
276
  }
274
277
  };
275
278
  for (var _a = 0, data_1 = data; _a < data_1.length; _a++) {
@@ -277,28 +280,28 @@ DateTimeFormat.__addLocaleData = function __addLocaleData() {
277
280
  _loop_1(d, locale);
278
281
  }
279
282
  };
280
- Object.defineProperty(DateTimeFormat.prototype, 'format', formatDescriptor);
281
- DateTimeFormat.__defaultLocale = '';
282
- DateTimeFormat.localeData = {};
283
- DateTimeFormat.availableLocales = new Set();
284
- DateTimeFormat.getDefaultLocale = function () {
285
- return DateTimeFormat.__defaultLocale;
283
+ Object.defineProperty(exports.DateTimeFormat.prototype, 'format', formatDescriptor);
284
+ exports.DateTimeFormat.__defaultLocale = '';
285
+ exports.DateTimeFormat.localeData = {};
286
+ exports.DateTimeFormat.availableLocales = new Set();
287
+ exports.DateTimeFormat.getDefaultLocale = function () {
288
+ return exports.DateTimeFormat.__defaultLocale;
286
289
  };
287
- DateTimeFormat.polyfilled = true;
288
- DateTimeFormat.tzData = {};
289
- DateTimeFormat.__addTZData = function (d) {
290
- DateTimeFormat.tzData = unpack(d);
290
+ exports.DateTimeFormat.polyfilled = true;
291
+ exports.DateTimeFormat.tzData = {};
292
+ exports.DateTimeFormat.__addTZData = function (d) {
293
+ exports.DateTimeFormat.tzData = (0, packer_1.unpack)(d);
291
294
  };
292
295
  try {
293
296
  if (typeof Symbol !== 'undefined') {
294
- Object.defineProperty(DateTimeFormat.prototype, Symbol.toStringTag, {
297
+ Object.defineProperty(exports.DateTimeFormat.prototype, Symbol.toStringTag, {
295
298
  value: 'Intl.DateTimeFormat',
296
299
  writable: false,
297
300
  enumerable: false,
298
301
  configurable: true,
299
302
  });
300
303
  }
301
- Object.defineProperty(DateTimeFormat.prototype.constructor, 'length', {
304
+ Object.defineProperty(exports.DateTimeFormat.prototype.constructor, 'length', {
302
305
  value: 1,
303
306
  writable: false,
304
307
  enumerable: false,
@@ -1,6 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  // @generated
2
4
  // prettier-ignore
3
- export default {
5
+ exports.default = {
4
6
  "abbrvs": "LMT|GMT|+0230|EAT|+0245|PMT|WET|WEST|CET|CEST|+0030|WAT|-01|CAT|EET|EEST|+00|+01|SAST|CAST|MMT|WAST|+0130|NST|NWT|NPT|BST|BDT|AHST|HST|HDT|AST|AWT|APT|AHDT|YST|AKST|AKDT|-03|-02|CMT|-04|AMT|EST|MST|CST|MDT|PST|CDT|ADT|-0330|-0530|CWT|CPT|BMT|-05|PDT|MWT|MPT|-00|EDT|-0430|SJMT|YDT|YWT|YPT|YDDT|PWT|PPT|EWT|EPT|NDT|ADDT|KMT|QMT|-0345|HMT|FFMT|-0230|-0130|PPMT|SMT|SDMT|NDDT|+08|+11|+07|+05|PMMT|+10|AEST|AEDT|+06|NZMT|NZST|NZDT|+03|+02|CEMT|+12|+13|+14|+04|+0730|+0820|+09|+0530|+0630|IST|IDT|PLMT|HKT|HKST|HKWT|JST|IMT|+0720|WIB|+0930|WIT|JMT|IDDT|+0430|PKT|PKST|+0545|WITA|KST|KDT|TBMT|TMT|+0330|JDT|RMT|FMT|ACST|ACDT|+0845|+0945|+1030|+1130|AWST|AWDT|MSK|MSD|DMT|BDST|WEMT|MDST|LST|WMT|-1130|-11|-10|+1215|+1245|+1345|EMT|-07|-06|-09|GST|GDT|ChST|HWT|HPT|-12|-1040|-0930|SST|-1120|+1112|+1230|-0830|-08|-1030|+1220|GMT+14|GMT+13|GMT+12|GMT+11|GMT+10|GMT+9|GMT+8|GMT+7|GMT+6|GMT+5|GMT+4|GMT+3|GMT+2|GMT+1|GMT-1|GMT-2|GMT-3|GMT-4|GMT-5|GMT-6|GMT-7|GMT-8|GMT-9|GMT-10|GMT-11|GMT-12",
5
7
  "offsets": "-qw|0|6tg|6y0|8c0|7n0|kc|fl|2s0|5k0|mn|1e0|-2vw|-2s0|618|5sl|-1ek|-zg|-2g0|56o|460|5us|60w|-1zw|-226|2sc|18w|-1p9|2fw|1vw|360|xya|-wpq|-uk0|-rs0|-p00|12wo|-rrc|-m80|-c8p|-b40|-8c0|-8xc|-5k0|-ato|-bw0|-c6k|-c3c|-cdo|-cqs|-ctg|-c44|-cos|-cac|-c2s|-cnc|-aog|-eq8|-eso|-dw0|-74s|-jho|-jg0|-go0|-b1h|-9q0|-8z8|-gc0|-fa0|-b8g|-dps|-lip|-a44|-g2g|-ce8|-ce4|-ci0|-9ow|-g8c|-jn8|-jpw|-fkd|-kr6|-adw|-3gg|-ptg|-m9k|-jfw|-fdn|-l0g|-cxs|-gio|-mpz|-74o|-b3o|-b6s|-9rg|-6zg|-6y0|-d68|-e7y|-grg|-es8|-ejc|-arr|-af0|-bs0|-f94|-f9c|-kjs|-fye|-g1i|-fzn|-g5v|-g2f|-fr4|-g7j|-g1d|15rv|-ow5|-fvq|-fpo|-cmc|-9uc|-e9o|-eac|-lwa|-6m4|-fz8|-fzc|-b44|-bb8|-i20|-jpg|-g83|-glg|16au|-od6|-id0|-aeg|-bzw|-iks|-aer|-460|-ep8|-dpe|101a|-umq|-604|-iuj|-irc|-is3|-9kw|-jc4|-a7s|-a84|-a7o|-de8|-ddo|-bu0|-d4s|-d39|-hzo|-6go|-jdo|-ck0|-a4o|-cy0|-cyo|-8ms|-42g|15lz|-p21|-jyw|-g5g|-cqk|-lo4|-mss|-p0c|14sh|-pvj|m80|uk0|jg0|dw0|r94|r8w|rs0|go0|wd4|vy0|yq0|xc0|1040|8ng|g7w|2h4|e90|6nk|wv8|12w0|9b4|b40|al4|at8|9m8|884|880|9jk|98c|im4|fic|6ko|dtc|kfk|ku0|n5c|p00|l0g|l7c|esc|esk|fa0|i20|6q0|gqs|gcw|n98|a8o|cqo|6ac|6ds|6hz|jqu|l56|nm0|gz0|jb5|js0|kdc|q20|qe0|6iu|6ig|ctc|ci0|tdo|cf0|fss|fz0|p3p|gd4|eva|h72|j8d|l0y|rxc|m40|-189c|meo|66g|g5c|fcs|dl6|9ic|k8w|nac|bs4|c4g|qfc|ceh|nig|mhj|sgs|mi0|ctz|8an|9iw|9q0|glo|pvn|fqf|jsk|qiu|of7|o0y|htb|b89|af5|88o|-4r4|-5aw|-c06|-986|-2uo|-4cs|-194|-34o|-6rk|-apo|pnw|t60|sc8|q70|ra4|o88|nv4|ob0|r30|rl8|tgk|qug|lgc|s04|t6|a4|8wc|4e4|3so|2o8|4u0|3j8|1kw|1dm|5c8|5bo|-169|1lr|-zo|-23|4md|5d4|5ew|97c|5ng|-ok|2os|53s|53c|6yh|707|9s7|ck7|4gy|78y|2b8|99w|8j6|6bc|6ao|4bg|4l0|3o8|8yo|30x|4os|3w0|4fc|des|dm0|anc|yv4|-vsw|-vy0|st4|xz0|y10|zf0|1270|-k94|v64|-vpk|x4w|w1g|-glc|-ozo|tmc|-13v0|qt0|-t8e|-t60|-qe0|-xc0|-t4w|-tmo|-10hg|u6k|uzk|-pu0|z20|-vm0|uws|-vgs|-vhc|v3s|v40|uto|-15rg|owk|-o38|-nm0|112w|-tl4|-rp4|y80|y9c",
6
8
  "zones": [
@@ -1,6 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  // @generated
2
4
  // prettier-ignore
3
- export default {
5
+ exports.default = {
4
6
  "Africa/Accra": "Africa/Abidjan",
5
7
  "Africa/Addis_Ababa": "Africa/Nairobi",
6
8
  "Africa/Asmara": "Africa/Nairobi",
@@ -1,7 +1,9 @@
1
+ "use strict";
1
2
  // Type-only circular import
2
3
  // eslint-disable-next-line import/no-cycle
4
+ Object.defineProperty(exports, "__esModule", { value: true });
3
5
  var internalSlotMap = new WeakMap();
4
- export default function getInternalSlots(x) {
6
+ function getInternalSlots(x) {
5
7
  var internalSlots = internalSlotMap.get(x);
6
8
  if (!internalSlots) {
7
9
  internalSlots = Object.create(null);
@@ -9,3 +11,4 @@ export default function getInternalSlots(x) {
9
11
  }
10
12
  return internalSlots;
11
13
  }
14
+ exports.default = getInternalSlots;
package/lib/src/packer.js CHANGED
@@ -1,21 +1,25 @@
1
- import { __spreadArray } from "tslib";
2
- export function pack(data) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unpack = exports.pack = void 0;
4
+ var tslib_1 = require("tslib");
5
+ function pack(data) {
3
6
  var zoneNames = Object.keys(data.zones);
4
7
  zoneNames.sort(); // so output is stable
5
8
  return {
6
9
  zones: zoneNames.map(function (zone) {
7
- return __spreadArray([
10
+ return tslib_1.__spreadArray([
8
11
  zone
9
12
  ], data.zones[zone].map(function (_a) {
10
13
  var ts = _a[0], others = _a.slice(1);
11
- return __spreadArray([ts === '' ? '' : ts.toString(36)], others, true).join(',');
14
+ return tslib_1.__spreadArray([ts === '' ? '' : ts.toString(36)], others, true).join(',');
12
15
  }), true).join('|');
13
16
  }),
14
17
  abbrvs: data.abbrvs.join('|'),
15
18
  offsets: data.offsets.map(function (o) { return o.toString(36); }).join('|'),
16
19
  };
17
20
  }
18
- export function unpack(data) {
21
+ exports.pack = pack;
22
+ function unpack(data) {
19
23
  var abbrvs = data.abbrvs.split('|');
20
24
  var offsets = data.offsets.split('|').map(function (n) { return parseInt(n, 36); });
21
25
  var packedZones = data.zones;
@@ -37,3 +41,4 @@ export function unpack(data) {
37
41
  }
38
42
  return zones;
39
43
  }
44
+ exports.unpack = unpack;
@@ -1,19 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toLocaleTimeString = exports.toLocaleDateString = exports.toLocaleString = void 0;
1
4
  // eslint-disable-next-line import/no-cycle
2
- import { DateTimeFormat } from './core';
3
- import { ToDateTimeOptions } from './abstract/ToDateTimeOptions';
5
+ var core_1 = require("./core");
6
+ var ToDateTimeOptions_1 = require("./abstract/ToDateTimeOptions");
4
7
  /**
5
8
  * Number.prototype.toLocaleString ponyfill
6
9
  * https://tc39.es/ecma402/#sup-number.prototype.tolocalestring
7
10
  */
8
- export function toLocaleString(x, locales, options) {
9
- var dtf = new DateTimeFormat(locales, options);
11
+ function toLocaleString(x, locales, options) {
12
+ var dtf = new core_1.DateTimeFormat(locales, options);
10
13
  return dtf.format(x);
11
14
  }
12
- export function toLocaleDateString(x, locales, options) {
13
- var dtf = new DateTimeFormat(locales, ToDateTimeOptions(options, 'date', 'date'));
15
+ exports.toLocaleString = toLocaleString;
16
+ function toLocaleDateString(x, locales, options) {
17
+ var dtf = new core_1.DateTimeFormat(locales, (0, ToDateTimeOptions_1.ToDateTimeOptions)(options, 'date', 'date'));
14
18
  return dtf.format(x);
15
19
  }
16
- export function toLocaleTimeString(x, locales, options) {
17
- var dtf = new DateTimeFormat(locales, ToDateTimeOptions(options, 'time', 'time'));
20
+ exports.toLocaleDateString = toLocaleDateString;
21
+ function toLocaleTimeString(x, locales, options) {
22
+ var dtf = new core_1.DateTimeFormat(locales, (0, ToDateTimeOptions_1.ToDateTimeOptions)(options, 'time', 'time'));
18
23
  return dtf.format(x);
19
24
  }
25
+ exports.toLocaleTimeString = toLocaleTimeString;
package/lib/src/types.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,4 @@
1
- export var supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "eo", "es", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Latn", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "fi", "fil", "fo", "fo-DK", "fr", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supportedLocales = void 0;
4
+ exports.supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "eo", "es", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Latn", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "fi", "fil", "fo", "fo-DK", "fr", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
@@ -1,7 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
1
4
  /* @generated */
2
5
  // @ts-nocheck
3
- import './polyfill-force';
4
- import allData from './src/data/all-tz';
6
+ require("./polyfill-force");
7
+ var all_tz_1 = tslib_1.__importDefault(require("./src/data/all-tz"));
5
8
  defineProperty(Intl, 'DateTimeFormat', { value: DateTimeFormat });
6
9
  Intl.DateTimeFormat.__addLocaleData({
7
10
  "data": {
@@ -24007,4 +24010,4 @@ Intl.DateTimeFormat.__addLocaleData({
24007
24010
  },
24008
24011
  "locale": "zh"
24009
24012
  });
24010
- Intl.DateTimeFormat.__addTZData(allData);
24013
+ Intl.DateTimeFormat.__addTZData(all_tz_1.default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-datetimeformat",
3
- "version": "6.11.0",
3
+ "version": "6.11.2",
4
4
  "description": "Intl.DateTimeFormat polyfill",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -23,11 +23,11 @@
23
23
  "homepage": "https://github.com/formatjs/formatjs#readme",
24
24
  "dependencies": {
25
25
  "tslib": "^2.4.0",
26
- "@formatjs/ecma402-abstract": "1.17.2",
27
- "@formatjs/intl-localematcher": "0.4.2"
26
+ "@formatjs/intl-localematcher": "0.5.0",
27
+ "@formatjs/ecma402-abstract": "1.17.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@formatjs/intl-getcanonicallocales": "2.3.0",
31
- "@formatjs/intl-locale": "3.4.0"
31
+ "@formatjs/intl-locale": "3.4.1"
32
32
  }
33
33
  }