@douyinfe/semi-ui 2.34.0-beta.0 → 2.34.0

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.
@@ -21722,7 +21722,7 @@ function function_noop() {}
21722
21722
 
21723
21723
  const LocaleContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(null);
21724
21724
  /* harmony default export */ const locale_context = (LocaleContext);
21725
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/zh-CN/_lib/formatDistance/index.js
21725
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/zh-CN/_lib/formatDistance/index.js
21726
21726
  var formatDistanceLocale = {
21727
21727
  lessThanXSeconds: {
21728
21728
  one: '不到 1 秒',
@@ -21786,20 +21786,21 @@ var formatDistanceLocale = {
21786
21786
  other: '将近 {{count}} 年'
21787
21787
  }
21788
21788
  };
21789
- function formatDistance(token, count, options) {
21790
- options = options || {};
21789
+
21790
+ var formatDistance = function formatDistance(token, count, options) {
21791
21791
  var result;
21792
+ var tokenValue = formatDistanceLocale[token];
21792
21793
 
21793
- if (typeof formatDistanceLocale[token] === 'string') {
21794
- result = formatDistanceLocale[token];
21794
+ if (typeof tokenValue === 'string') {
21795
+ result = tokenValue;
21795
21796
  } else if (count === 1) {
21796
- result = formatDistanceLocale[token].one;
21797
+ result = tokenValue.one;
21797
21798
  } else {
21798
- result = formatDistanceLocale[token].other.replace('{{count}}', count);
21799
+ result = tokenValue.other.replace('{{count}}', String(count));
21799
21800
  }
21800
21801
 
21801
- if (options.addSuffix) {
21802
- if (options.comparison > 0) {
21802
+ if (options !== null && options !== void 0 && options.addSuffix) {
21803
+ if (options.comparison && options.comparison > 0) {
21803
21804
  return result + '内';
21804
21805
  } else {
21805
21806
  return result + '前';
@@ -21807,8 +21808,10 @@ function formatDistance(token, count, options) {
21807
21808
  }
21808
21809
 
21809
21810
  return result;
21810
- }
21811
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
21811
+ };
21812
+
21813
+ /* harmony default export */ const _lib_formatDistance = (formatDistance);
21814
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
21812
21815
  function buildFormatLongFn(args) {
21813
21816
  return function () {
21814
21817
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -21818,7 +21821,7 @@ function buildFormatLongFn(args) {
21818
21821
  return format;
21819
21822
  };
21820
21823
  }
21821
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/zh-CN/_lib/formatLong/index.js
21824
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/zh-CN/_lib/formatLong/index.js
21822
21825
 
21823
21826
  var dateFormats = {
21824
21827
  full: "y'年'M'月'd'日' EEEE",
@@ -21853,13 +21856,15 @@ var formatLong = {
21853
21856
  })
21854
21857
  };
21855
21858
  /* harmony default export */ const _lib_formatLong = (formatLong);
21856
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/requiredArgs/index.js
21859
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/requiredArgs/index.js
21857
21860
  function requiredArgs(required, args) {
21858
21861
  if (args.length < required) {
21859
21862
  throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
21860
21863
  }
21861
21864
  }
21862
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/toDate/index.js
21865
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/toDate/index.js
21866
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
21867
+
21863
21868
 
21864
21869
  /**
21865
21870
  * @name toDate
@@ -21896,7 +21901,7 @@ function toDate_toDate(argument) {
21896
21901
  requiredArgs(1, arguments);
21897
21902
  var argStr = Object.prototype.toString.call(argument); // Clone the date
21898
21903
 
21899
- if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
21904
+ if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
21900
21905
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
21901
21906
  return new Date(argument.getTime());
21902
21907
  } else if (typeof argument === 'number' || argStr === '[object Number]') {
@@ -21904,7 +21909,7 @@ function toDate_toDate(argument) {
21904
21909
  } else {
21905
21910
  if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
21906
21911
  // eslint-disable-next-line no-console
21907
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
21912
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
21908
21913
 
21909
21914
  console.warn(new Error().stack);
21910
21915
  }
@@ -21912,7 +21917,7 @@ function toDate_toDate(argument) {
21912
21917
  return new Date(NaN);
21913
21918
  }
21914
21919
  }
21915
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/toInteger/index.js
21920
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/toInteger/index.js
21916
21921
  function toInteger(dirtyNumber) {
21917
21922
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
21918
21923
  return NaN;
@@ -21926,19 +21931,25 @@ function toInteger(dirtyNumber) {
21926
21931
 
21927
21932
  return number < 0 ? Math.ceil(number) : Math.floor(number);
21928
21933
  }
21929
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
21934
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/defaultOptions/index.js
21935
+ var defaultOptions = {};
21936
+ function getDefaultOptions() {
21937
+ return defaultOptions;
21938
+ }
21939
+ function setDefaultOptions(newOptions) {
21940
+ defaultOptions = newOptions;
21941
+ }
21942
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
21930
21943
 
21931
21944
 
21932
- // This function will be a part of public API when UTC function will be implemented.
21933
- // See issue: https://github.com/date-fns/date-fns/issues/376
21934
21945
 
21935
- function startOfUTCWeek(dirtyDate, dirtyOptions) {
21946
+
21947
+ function startOfUTCWeek(dirtyDate, options) {
21948
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
21949
+
21936
21950
  requiredArgs(1, arguments);
21937
- var options = dirtyOptions || {};
21938
- var locale = options.locale;
21939
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
21940
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
21941
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
21951
+ var defaultOptions = getDefaultOptions();
21952
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
21942
21953
 
21943
21954
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
21944
21955
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
@@ -21951,10 +21962,8 @@ function startOfUTCWeek(dirtyDate, dirtyOptions) {
21951
21962
  date.setUTCHours(0, 0, 0, 0);
21952
21963
  return date;
21953
21964
  }
21954
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js
21965
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js
21955
21966
 
21956
- // This function will be a part of public API when UTC function will be implemented.
21957
- // See issue: https://github.com/date-fns/date-fns/issues/376
21958
21967
 
21959
21968
  function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) {
21960
21969
  requiredArgs(2, arguments);
@@ -21962,13 +21971,15 @@ function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) {
21962
21971
  var dateRightStartOfWeek = startOfUTCWeek(dirtyDateRight, options);
21963
21972
  return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();
21964
21973
  }
21965
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/zh-CN/_lib/formatRelative/index.js
21974
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/zh-CN/_lib/formatRelative/index.js
21966
21975
 
21967
21976
 
21968
- function checkWeek(_date, _baseDate, _options, baseFormat) {
21969
- if (isSameUTCWeek(_date, _baseDate, _options)) {
21977
+ function checkWeek(date, baseDate, options) {
21978
+ var baseFormat = 'eeee p';
21979
+
21980
+ if (isSameUTCWeek(date, baseDate, options)) {
21970
21981
  return baseFormat; // in same week
21971
- } else if (_date.getTime() > _baseDate.getTime()) {
21982
+ } else if (date.getTime() > baseDate.getTime()) {
21972
21983
  return "'下个'" + baseFormat; // in next week
21973
21984
  }
21974
21985
 
@@ -21985,30 +21996,32 @@ var formatRelativeLocale = {
21985
21996
  // days after tomorrow, maybe in this week or next week
21986
21997
  other: 'PP p'
21987
21998
  };
21988
- function formatRelative(token, _date, _baseDate, _options) {
21999
+
22000
+ var formatRelative = function formatRelative(token, date, baseDate, options) {
21989
22001
  var format = formatRelativeLocale[token];
21990
22002
 
21991
22003
  if (typeof format === 'function') {
21992
- return format(_date, _baseDate, _options, 'eeee p');
22004
+ return format(date, baseDate, options);
21993
22005
  }
21994
22006
 
21995
22007
  return format;
21996
- }
21997
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
22008
+ };
22009
+
22010
+ /* harmony default export */ const _lib_formatRelative = (formatRelative);
22011
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
21998
22012
  function buildLocalizeFn(args) {
21999
- return function (dirtyIndex, dirtyOptions) {
22000
- var options = dirtyOptions || {};
22001
- var context = options.context ? String(options.context) : 'standalone';
22013
+ return function (dirtyIndex, options) {
22014
+ var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
22002
22015
  var valuesArray;
22003
22016
 
22004
22017
  if (context === 'formatting' && args.formattingValues) {
22005
22018
  var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
22006
- var width = options.width ? String(options.width) : defaultWidth;
22019
+ var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
22007
22020
  valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
22008
22021
  } else {
22009
22022
  var _defaultWidth = args.defaultWidth;
22010
22023
 
22011
- var _width = options.width ? String(options.width) : args.defaultWidth;
22024
+ var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
22012
22025
 
22013
22026
  valuesArray = args.values[_width] || args.values[_defaultWidth];
22014
22027
  }
@@ -22018,7 +22031,7 @@ function buildLocalizeFn(args) {
22018
22031
  return valuesArray[index];
22019
22032
  };
22020
22033
  }
22021
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/zh-CN/_lib/localize/index.js
22034
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/zh-CN/_lib/localize/index.js
22022
22035
 
22023
22036
  var eraValues = {
22024
22037
  narrow: ['前', '公元'],
@@ -22106,21 +22119,10 @@ var formattingDayPeriodValues = {
22106
22119
  }
22107
22120
  };
22108
22121
 
22109
- function ordinalNumber(dirtyNumber, dirtyOptions) {
22110
- // If ordinal numbers depend on context, for example,
22111
- // if they are different for different grammatical genders,
22112
- // use `options.unit`:
22113
- //
22114
- // var options = dirtyOptions || {}
22115
- // var unit = String(options.unit)
22116
- //
22117
- // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
22118
- // 'day', 'hour', 'minute', 'second'
22122
+ var ordinalNumber = function ordinalNumber(dirtyNumber, options) {
22119
22123
  var number = Number(dirtyNumber);
22120
- var options = dirtyOptions || {};
22121
- var unit = String(options.unit);
22122
22124
 
22123
- switch (unit) {
22125
+ switch (options === null || options === void 0 ? void 0 : options.unit) {
22124
22126
  case 'date':
22125
22127
  return number.toString() + '日';
22126
22128
 
@@ -22136,7 +22138,7 @@ function ordinalNumber(dirtyNumber, dirtyOptions) {
22136
22138
  default:
22137
22139
  return '第 ' + number.toString();
22138
22140
  }
22139
- }
22141
+ };
22140
22142
 
22141
22143
  var localize = {
22142
22144
  ordinalNumber: ordinalNumber,
@@ -22147,8 +22149,8 @@ var localize = {
22147
22149
  quarter: buildLocalizeFn({
22148
22150
  values: quarterValues,
22149
22151
  defaultWidth: 'wide',
22150
- argumentCallback: function (quarter) {
22151
- return Number(quarter) - 1;
22152
+ argumentCallback: function argumentCallback(quarter) {
22153
+ return quarter - 1;
22152
22154
  }
22153
22155
  }),
22154
22156
  month: buildLocalizeFn({
@@ -22167,25 +22169,7 @@ var localize = {
22167
22169
  })
22168
22170
  };
22169
22171
  /* harmony default export */ const _lib_localize = (localize);
22170
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
22171
- function buildMatchPatternFn(args) {
22172
- return function (string) {
22173
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22174
- var matchResult = string.match(args.matchPattern);
22175
- if (!matchResult) return null;
22176
- var matchedString = matchResult[0];
22177
- var parseResult = string.match(args.parsePattern);
22178
- if (!parseResult) return null;
22179
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
22180
- value = options.valueCallback ? options.valueCallback(value) : value;
22181
- var rest = string.slice(matchedString.length);
22182
- return {
22183
- value: value,
22184
- rest: rest
22185
- };
22186
- };
22187
- }
22188
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js
22172
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js
22189
22173
  function buildMatchFn(args) {
22190
22174
  return function (string) {
22191
22175
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -22234,7 +22218,25 @@ function findIndex(array, predicate) {
22234
22218
 
22235
22219
  return undefined;
22236
22220
  }
22237
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/zh-CN/_lib/match/index.js
22221
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
22222
+ function buildMatchPatternFn(args) {
22223
+ return function (string) {
22224
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22225
+ var matchResult = string.match(args.matchPattern);
22226
+ if (!matchResult) return null;
22227
+ var matchedString = matchResult[0];
22228
+ var parseResult = string.match(args.parsePattern);
22229
+ if (!parseResult) return null;
22230
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
22231
+ value = options.valueCallback ? options.valueCallback(value) : value;
22232
+ var rest = string.slice(matchedString.length);
22233
+ return {
22234
+ value: value,
22235
+ rest: rest
22236
+ };
22237
+ };
22238
+ }
22239
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/zh-CN/_lib/match/index.js
22238
22240
 
22239
22241
 
22240
22242
  var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|时|分|秒)?/i;
@@ -22292,7 +22294,7 @@ var match = {
22292
22294
  ordinalNumber: buildMatchPatternFn({
22293
22295
  matchPattern: matchOrdinalNumberPattern,
22294
22296
  parsePattern: parseOrdinalNumberPattern,
22295
- valueCallback: function (value) {
22297
+ valueCallback: function valueCallback(value) {
22296
22298
  return parseInt(value, 10);
22297
22299
  }
22298
22300
  }),
@@ -22307,7 +22309,7 @@ var match = {
22307
22309
  defaultMatchWidth: 'wide',
22308
22310
  parsePatterns: parseQuarterPatterns,
22309
22311
  defaultParseWidth: 'any',
22310
- valueCallback: function (index) {
22312
+ valueCallback: function valueCallback(index) {
22311
22313
  return index + 1;
22312
22314
  }
22313
22315
  }),
@@ -22331,7 +22333,7 @@ var match = {
22331
22333
  })
22332
22334
  };
22333
22335
  /* harmony default export */ const _lib_match = (match);
22334
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/zh-CN/index.js
22336
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/zh-CN/index.js
22335
22337
 
22336
22338
 
22337
22339
 
@@ -22352,9 +22354,9 @@ var match = {
22352
22354
 
22353
22355
  var locale = {
22354
22356
  code: 'zh-CN',
22355
- formatDistance: formatDistance,
22357
+ formatDistance: _lib_formatDistance,
22356
22358
  formatLong: _lib_formatLong,
22357
- formatRelative: formatRelative,
22359
+ formatRelative: _lib_formatRelative,
22358
22360
  localize: _lib_localize,
22359
22361
  match: _lib_match,
22360
22362
  options: {
@@ -25247,6 +25249,7 @@ const getRenderText = function (originEle, rows) {
25247
25249
  const lineHeight = pxToNumber(originStyle.lineHeight);
25248
25250
  const maxHeight = Math.round(lineHeight * (rows + 1) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)); // Set shadow
25249
25251
 
25252
+ const maxWidth = parseInt(originStyle.width);
25250
25253
  ellipsisContainer.setAttribute('style', originCSS);
25251
25254
  ellipsisContainer.style.position = 'fixed';
25252
25255
  ellipsisContainer.style.left = '0';
@@ -25260,7 +25263,10 @@ const getRenderText = function (originEle, rows) {
25260
25263
  external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().render( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null), ellipsisContainer); // Check if ellipsis in measure div is height enough for content
25261
25264
 
25262
25265
  function inRange() {
25263
- // console.log('inrange?', ellipsisContainer.scrollHeight, ellipsisContainer.scrollHeight < maxHeight);
25266
+ if (originStyle.whiteSpace === 'nowrap') {
25267
+ return ellipsisContainer.scrollWidth <= maxWidth;
25268
+ }
25269
+
25264
25270
  return ellipsisContainer.scrollHeight < maxHeight;
25265
25271
  } // ========================= Find match ellipsis content =========================
25266
25272
  // Create origin content holder
@@ -33035,7 +33041,7 @@ function requiredArgs_requiredArgs(required, args) {
33035
33041
  }
33036
33042
  }
33037
33043
  ;// CONCATENATED MODULE: ../semi-foundation/node_modules/date-fns/esm/toDate/index.js
33038
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
33044
+ function toDate_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { toDate_typeof = function _typeof(obj) { return typeof obj; }; } else { toDate_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return toDate_typeof(obj); }
33039
33045
 
33040
33046
 
33041
33047
  /**
@@ -33073,7 +33079,7 @@ function esm_toDate_toDate(argument) {
33073
33079
  requiredArgs_requiredArgs(1, arguments);
33074
33080
  var argStr = Object.prototype.toString.call(argument); // Clone the date
33075
33081
 
33076
- if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
33082
+ if (argument instanceof Date || toDate_typeof(argument) === 'object' && argStr === '[object Date]') {
33077
33083
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
33078
33084
  return new Date(argument.getTime());
33079
33085
  } else if (typeof argument === 'number' || argStr === '[object Number]') {
@@ -33394,12 +33400,12 @@ function getUTCISOWeek(dirtyDate) {
33394
33400
  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
33395
33401
  }
33396
33402
  ;// CONCATENATED MODULE: ../semi-foundation/node_modules/date-fns/esm/_lib/defaultOptions/index.js
33397
- var defaultOptions = {};
33398
- function getDefaultOptions() {
33399
- return defaultOptions;
33403
+ var defaultOptions_defaultOptions = {};
33404
+ function defaultOptions_getDefaultOptions() {
33405
+ return defaultOptions_defaultOptions;
33400
33406
  }
33401
- function setDefaultOptions(newOptions) {
33402
- defaultOptions = newOptions;
33407
+ function defaultOptions_setDefaultOptions(newOptions) {
33408
+ defaultOptions_defaultOptions = newOptions;
33403
33409
  }
33404
33410
  ;// CONCATENATED MODULE: ../semi-foundation/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
33405
33411
 
@@ -33410,7 +33416,7 @@ function startOfUTCWeek_startOfUTCWeek(dirtyDate, options) {
33410
33416
  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
33411
33417
 
33412
33418
  requiredArgs_requiredArgs(1, arguments);
33413
- var defaultOptions = getDefaultOptions();
33419
+ var defaultOptions = defaultOptions_getDefaultOptions();
33414
33420
  var weekStartsOn = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
33415
33421
 
33416
33422
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
@@ -33436,7 +33442,7 @@ function getUTCWeekYear(dirtyDate, options) {
33436
33442
  requiredArgs_requiredArgs(1, arguments);
33437
33443
  var date = esm_toDate_toDate(dirtyDate);
33438
33444
  var year = date.getUTCFullYear();
33439
- var defaultOptions = getDefaultOptions();
33445
+ var defaultOptions = defaultOptions_getDefaultOptions();
33440
33446
  var firstWeekContainsDate = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
33441
33447
 
33442
33448
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
@@ -33470,7 +33476,7 @@ function startOfUTCWeekYear(dirtyDate, options) {
33470
33476
  var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
33471
33477
 
33472
33478
  requiredArgs_requiredArgs(1, arguments);
33473
- var defaultOptions = getDefaultOptions();
33479
+ var defaultOptions = defaultOptions_getDefaultOptions();
33474
33480
  var firstWeekContainsDate = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
33475
33481
  var year = getUTCWeekYear(dirtyDate, options);
33476
33482
  var firstWeek = new Date(0);
@@ -34679,7 +34685,7 @@ var formatDistance_formatDistance = function formatDistance(token, count, option
34679
34685
  return result;
34680
34686
  };
34681
34687
 
34682
- /* harmony default export */ const _lib_formatDistance = (formatDistance_formatDistance);
34688
+ /* harmony default export */ const en_US_lib_formatDistance = (formatDistance_formatDistance);
34683
34689
  ;// CONCATENATED MODULE: ../semi-foundation/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
34684
34690
  function buildFormatLongFn_buildFormatLongFn(args) {
34685
34691
  return function () {
@@ -34739,7 +34745,7 @@ var formatRelative_formatRelative = function formatRelative(token, _date, _baseD
34739
34745
  return formatRelative_formatRelativeLocale[token];
34740
34746
  };
34741
34747
 
34742
- /* harmony default export */ const _lib_formatRelative = (formatRelative_formatRelative);
34748
+ /* harmony default export */ const en_US_lib_formatRelative = (formatRelative_formatRelative);
34743
34749
  ;// CONCATENATED MODULE: ../semi-foundation/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
34744
34750
  function buildLocalizeFn_buildLocalizeFn(args) {
34745
34751
  return function (dirtyIndex, options) {
@@ -35094,9 +35100,9 @@ var match_match = {
35094
35100
  */
35095
35101
  var en_US_locale = {
35096
35102
  code: 'en-US',
35097
- formatDistance: _lib_formatDistance,
35103
+ formatDistance: en_US_lib_formatDistance,
35098
35104
  formatLong: en_US_lib_formatLong,
35099
- formatRelative: _lib_formatRelative,
35105
+ formatRelative: en_US_lib_formatRelative,
35100
35106
  localize: en_US_lib_localize,
35101
35107
  match: en_US_lib_match,
35102
35108
  options: {
@@ -35437,7 +35443,7 @@ function format_format(dirtyDate, dirtyFormatStr, options) {
35437
35443
 
35438
35444
  requiredArgs_requiredArgs(2, arguments);
35439
35445
  var formatStr = String(dirtyFormatStr);
35440
- var defaultOptions = getDefaultOptions();
35446
+ var defaultOptions = defaultOptions_getDefaultOptions();
35441
35447
  var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _lib_defaultLocale;
35442
35448
  var firstWeekContainsDate = toInteger_toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
35443
35449
 
@@ -35642,7 +35648,7 @@ function startOfWeek(dirtyDate, options) {
35642
35648
  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
35643
35649
 
35644
35650
  requiredArgs_requiredArgs(1, arguments);
35645
- var defaultOptions = getDefaultOptions();
35651
+ var defaultOptions = defaultOptions_getDefaultOptions();
35646
35652
  var weekStartsOn = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
35647
35653
 
35648
35654
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
@@ -36021,7 +36027,7 @@ function getWeekOfMonth(date, options) {
36021
36027
  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
36022
36028
 
36023
36029
  requiredArgs_requiredArgs(1, arguments);
36024
- var defaultOptions = getDefaultOptions();
36030
+ var defaultOptions = defaultOptions_getDefaultOptions();
36025
36031
  var weekStartsOn = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
36026
36032
 
36027
36033
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
@@ -36545,7 +36551,7 @@ function endOfWeek(dirtyDate, options) {
36545
36551
  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
36546
36552
 
36547
36553
  requiredArgs_requiredArgs(1, arguments);
36548
- var defaultOptions = getDefaultOptions();
36554
+ var defaultOptions = defaultOptions_getDefaultOptions();
36549
36555
  var weekStartsOn = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
36550
36556
 
36551
36557
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
@@ -50331,7 +50337,7 @@ function setUTCDay(dirtyDate, dirtyDay, options) {
50331
50337
  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
50332
50338
 
50333
50339
  requiredArgs_requiredArgs(2, arguments);
50334
- var defaultOptions = getDefaultOptions();
50340
+ var defaultOptions = defaultOptions_getDefaultOptions();
50335
50341
  var weekStartsOn = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
50336
50342
 
50337
50343
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
@@ -52528,7 +52534,7 @@ function parse_parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, opt
52528
52534
  requiredArgs_requiredArgs(3, arguments);
52529
52535
  var dateString = String(dirtyDateString);
52530
52536
  var formatString = String(dirtyFormatString);
52531
- var defaultOptions = getDefaultOptions();
52537
+ var defaultOptions = defaultOptions_getDefaultOptions();
52532
52538
  var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _lib_defaultLocale;
52533
52539
 
52534
52540
  if (!locale.match) {
@@ -55815,7 +55821,9 @@ DateInput.defaultProps = {
55815
55821
  prefixCls: datePicker_constants_cssClasses.PREFIX,
55816
55822
  rangeSeparator: datePicker_constants_strings.DEFAULT_SEPARATOR_RANGE
55817
55823
  };
55818
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/isDate/index.js
55824
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/isDate/index.js
55825
+ function esm_isDate_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { esm_isDate_typeof = function _typeof(obj) { return typeof obj; }; } else { esm_isDate_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return esm_isDate_typeof(obj); }
55826
+
55819
55827
 
55820
55828
  /**
55821
55829
  * @name isDate
@@ -55825,10 +55833,6 @@ DateInput.defaultProps = {
55825
55833
  * @description
55826
55834
  * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
55827
55835
  *
55828
- * ### v2.0.0 breaking changes:
55829
- *
55830
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
55831
- *
55832
55836
  * @param {*} value - the value to check
55833
55837
  * @returns {boolean} true if the given value is a date
55834
55838
  * @throws {TypeError} 1 arguments required
@@ -55856,9 +55860,9 @@ DateInput.defaultProps = {
55856
55860
 
55857
55861
  function isDate_isDate(value) {
55858
55862
  requiredArgs(1, arguments);
55859
- return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
55863
+ return value instanceof Date || esm_isDate_typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
55860
55864
  }
55861
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/isValid/index.js
55865
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/isValid/index.js
55862
55866
 
55863
55867
 
55864
55868
 
@@ -55874,32 +55878,6 @@ function isDate_isDate(value) {
55874
55878
  *
55875
55879
  * Time value of Date: http://es5.github.io/#x15.9.1.1
55876
55880
  *
55877
- * ### v2.0.0 breaking changes:
55878
- *
55879
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
55880
- *
55881
- * - Now `isValid` doesn't throw an exception
55882
- * if the first argument is not an instance of Date.
55883
- * Instead, argument is converted beforehand using `toDate`.
55884
- *
55885
- * Examples:
55886
- *
55887
- * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
55888
- * |---------------------------|---------------|---------------|
55889
- * | `new Date()` | `true` | `true` |
55890
- * | `new Date('2016-01-01')` | `true` | `true` |
55891
- * | `new Date('')` | `false` | `false` |
55892
- * | `new Date(1488370835081)` | `true` | `true` |
55893
- * | `new Date(NaN)` | `false` | `false` |
55894
- * | `'2016-01-01'` | `TypeError` | `false` |
55895
- * | `''` | `TypeError` | `false` |
55896
- * | `1488370835081` | `TypeError` | `true` |
55897
- * | `NaN` | `TypeError` | `false` |
55898
- *
55899
- * We introduce this change to make *date-fns* consistent with ECMAScript behavior
55900
- * that try to coerce arguments to the expected type
55901
- * (which is also the case with other *date-fns* functions).
55902
- *
55903
55881
  * @param {*} date - the date to check
55904
55882
  * @returns {Boolean} the date is valid
55905
55883
  * @throws {TypeError} 1 argument required
@@ -55930,423 +55908,7 @@ function esm_isValid_isValid(dirtyDate) {
55930
55908
  var date = toDate_toDate(dirtyDate);
55931
55909
  return !isNaN(Number(date));
55932
55910
  }
55933
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js
55934
- var _lib_formatDistance_formatDistanceLocale = {
55935
- lessThanXSeconds: {
55936
- one: 'less than a second',
55937
- other: 'less than {{count}} seconds'
55938
- },
55939
- xSeconds: {
55940
- one: '1 second',
55941
- other: '{{count}} seconds'
55942
- },
55943
- halfAMinute: 'half a minute',
55944
- lessThanXMinutes: {
55945
- one: 'less than a minute',
55946
- other: 'less than {{count}} minutes'
55947
- },
55948
- xMinutes: {
55949
- one: '1 minute',
55950
- other: '{{count}} minutes'
55951
- },
55952
- aboutXHours: {
55953
- one: 'about 1 hour',
55954
- other: 'about {{count}} hours'
55955
- },
55956
- xHours: {
55957
- one: '1 hour',
55958
- other: '{{count}} hours'
55959
- },
55960
- xDays: {
55961
- one: '1 day',
55962
- other: '{{count}} days'
55963
- },
55964
- aboutXWeeks: {
55965
- one: 'about 1 week',
55966
- other: 'about {{count}} weeks'
55967
- },
55968
- xWeeks: {
55969
- one: '1 week',
55970
- other: '{{count}} weeks'
55971
- },
55972
- aboutXMonths: {
55973
- one: 'about 1 month',
55974
- other: 'about {{count}} months'
55975
- },
55976
- xMonths: {
55977
- one: '1 month',
55978
- other: '{{count}} months'
55979
- },
55980
- aboutXYears: {
55981
- one: 'about 1 year',
55982
- other: 'about {{count}} years'
55983
- },
55984
- xYears: {
55985
- one: '1 year',
55986
- other: '{{count}} years'
55987
- },
55988
- overXYears: {
55989
- one: 'over 1 year',
55990
- other: 'over {{count}} years'
55991
- },
55992
- almostXYears: {
55993
- one: 'almost 1 year',
55994
- other: 'almost {{count}} years'
55995
- }
55996
- };
55997
-
55998
- var _lib_formatDistance_formatDistance = function (token, count, options) {
55999
- var result;
56000
- var tokenValue = _lib_formatDistance_formatDistanceLocale[token];
56001
-
56002
- if (typeof tokenValue === 'string') {
56003
- result = tokenValue;
56004
- } else if (count === 1) {
56005
- result = tokenValue.one;
56006
- } else {
56007
- result = tokenValue.other.replace('{{count}}', count.toString());
56008
- }
56009
-
56010
- if (options !== null && options !== void 0 && options.addSuffix) {
56011
- if (options.comparison && options.comparison > 0) {
56012
- return 'in ' + result;
56013
- } else {
56014
- return result + ' ago';
56015
- }
56016
- }
56017
-
56018
- return result;
56019
- };
56020
-
56021
- /* harmony default export */ const en_US_lib_formatDistance = (_lib_formatDistance_formatDistance);
56022
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js
56023
-
56024
- var _lib_formatLong_dateFormats = {
56025
- full: 'EEEE, MMMM do, y',
56026
- long: 'MMMM do, y',
56027
- medium: 'MMM d, y',
56028
- short: 'MM/dd/yyyy'
56029
- };
56030
- var _lib_formatLong_timeFormats = {
56031
- full: 'h:mm:ss a zzzz',
56032
- long: 'h:mm:ss a z',
56033
- medium: 'h:mm:ss a',
56034
- short: 'h:mm a'
56035
- };
56036
- var _lib_formatLong_dateTimeFormats = {
56037
- full: "{{date}} 'at' {{time}}",
56038
- long: "{{date}} 'at' {{time}}",
56039
- medium: '{{date}}, {{time}}',
56040
- short: '{{date}}, {{time}}'
56041
- };
56042
- var _lib_formatLong_formatLong = {
56043
- date: buildFormatLongFn({
56044
- formats: _lib_formatLong_dateFormats,
56045
- defaultWidth: 'full'
56046
- }),
56047
- time: buildFormatLongFn({
56048
- formats: _lib_formatLong_timeFormats,
56049
- defaultWidth: 'full'
56050
- }),
56051
- dateTime: buildFormatLongFn({
56052
- formats: _lib_formatLong_dateTimeFormats,
56053
- defaultWidth: 'full'
56054
- })
56055
- };
56056
- /* harmony default export */ const locale_en_US_lib_formatLong = (_lib_formatLong_formatLong);
56057
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js
56058
- var _lib_formatRelative_formatRelativeLocale = {
56059
- lastWeek: "'last' eeee 'at' p",
56060
- yesterday: "'yesterday at' p",
56061
- today: "'today at' p",
56062
- tomorrow: "'tomorrow at' p",
56063
- nextWeek: "eeee 'at' p",
56064
- other: 'P'
56065
- };
56066
-
56067
- var _lib_formatRelative_formatRelative = function (token, _date, _baseDate, _options) {
56068
- return _lib_formatRelative_formatRelativeLocale[token];
56069
- };
56070
-
56071
- /* harmony default export */ const en_US_lib_formatRelative = (_lib_formatRelative_formatRelative);
56072
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js
56073
-
56074
- var _lib_localize_eraValues = {
56075
- narrow: ['B', 'A'],
56076
- abbreviated: ['BC', 'AD'],
56077
- wide: ['Before Christ', 'Anno Domini']
56078
- };
56079
- var _lib_localize_quarterValues = {
56080
- narrow: ['1', '2', '3', '4'],
56081
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
56082
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
56083
- }; // Note: in English, the names of days of the week and months are capitalized.
56084
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
56085
- // Generally, formatted dates should look like they are in the middle of a sentence,
56086
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
56087
-
56088
- var _lib_localize_monthValues = {
56089
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
56090
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
56091
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
56092
- };
56093
- var _lib_localize_dayValues = {
56094
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
56095
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
56096
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
56097
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
56098
- };
56099
- var _lib_localize_dayPeriodValues = {
56100
- narrow: {
56101
- am: 'a',
56102
- pm: 'p',
56103
- midnight: 'mi',
56104
- noon: 'n',
56105
- morning: 'morning',
56106
- afternoon: 'afternoon',
56107
- evening: 'evening',
56108
- night: 'night'
56109
- },
56110
- abbreviated: {
56111
- am: 'AM',
56112
- pm: 'PM',
56113
- midnight: 'midnight',
56114
- noon: 'noon',
56115
- morning: 'morning',
56116
- afternoon: 'afternoon',
56117
- evening: 'evening',
56118
- night: 'night'
56119
- },
56120
- wide: {
56121
- am: 'a.m.',
56122
- pm: 'p.m.',
56123
- midnight: 'midnight',
56124
- noon: 'noon',
56125
- morning: 'morning',
56126
- afternoon: 'afternoon',
56127
- evening: 'evening',
56128
- night: 'night'
56129
- }
56130
- };
56131
- var _lib_localize_formattingDayPeriodValues = {
56132
- narrow: {
56133
- am: 'a',
56134
- pm: 'p',
56135
- midnight: 'mi',
56136
- noon: 'n',
56137
- morning: 'in the morning',
56138
- afternoon: 'in the afternoon',
56139
- evening: 'in the evening',
56140
- night: 'at night'
56141
- },
56142
- abbreviated: {
56143
- am: 'AM',
56144
- pm: 'PM',
56145
- midnight: 'midnight',
56146
- noon: 'noon',
56147
- morning: 'in the morning',
56148
- afternoon: 'in the afternoon',
56149
- evening: 'in the evening',
56150
- night: 'at night'
56151
- },
56152
- wide: {
56153
- am: 'a.m.',
56154
- pm: 'p.m.',
56155
- midnight: 'midnight',
56156
- noon: 'noon',
56157
- morning: 'in the morning',
56158
- afternoon: 'in the afternoon',
56159
- evening: 'in the evening',
56160
- night: 'at night'
56161
- }
56162
- };
56163
-
56164
- var _lib_localize_ordinalNumber = function (dirtyNumber, _options) {
56165
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
56166
- // if they are different for different grammatical genders,
56167
- // use `options.unit`.
56168
- //
56169
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
56170
- // 'day', 'hour', 'minute', 'second'.
56171
-
56172
- var rem100 = number % 100;
56173
-
56174
- if (rem100 > 20 || rem100 < 10) {
56175
- switch (rem100 % 10) {
56176
- case 1:
56177
- return number + 'st';
56178
-
56179
- case 2:
56180
- return number + 'nd';
56181
-
56182
- case 3:
56183
- return number + 'rd';
56184
- }
56185
- }
56186
-
56187
- return number + 'th';
56188
- };
56189
-
56190
- var _lib_localize_localize = {
56191
- ordinalNumber: _lib_localize_ordinalNumber,
56192
- era: buildLocalizeFn({
56193
- values: _lib_localize_eraValues,
56194
- defaultWidth: 'wide'
56195
- }),
56196
- quarter: buildLocalizeFn({
56197
- values: _lib_localize_quarterValues,
56198
- defaultWidth: 'wide',
56199
- argumentCallback: function (quarter) {
56200
- return quarter - 1;
56201
- }
56202
- }),
56203
- month: buildLocalizeFn({
56204
- values: _lib_localize_monthValues,
56205
- defaultWidth: 'wide'
56206
- }),
56207
- day: buildLocalizeFn({
56208
- values: _lib_localize_dayValues,
56209
- defaultWidth: 'wide'
56210
- }),
56211
- dayPeriod: buildLocalizeFn({
56212
- values: _lib_localize_dayPeriodValues,
56213
- defaultWidth: 'wide',
56214
- formattingValues: _lib_localize_formattingDayPeriodValues,
56215
- defaultFormattingWidth: 'wide'
56216
- })
56217
- };
56218
- /* harmony default export */ const locale_en_US_lib_localize = (_lib_localize_localize);
56219
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/en-US/_lib/match/index.js
56220
-
56221
-
56222
- var _lib_match_matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
56223
- var _lib_match_parseOrdinalNumberPattern = /\d+/i;
56224
- var _lib_match_matchEraPatterns = {
56225
- narrow: /^(b|a)/i,
56226
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
56227
- wide: /^(before christ|before common era|anno domini|common era)/i
56228
- };
56229
- var _lib_match_parseEraPatterns = {
56230
- any: [/^b/i, /^(a|c)/i]
56231
- };
56232
- var _lib_match_matchQuarterPatterns = {
56233
- narrow: /^[1234]/i,
56234
- abbreviated: /^q[1234]/i,
56235
- wide: /^[1234](th|st|nd|rd)? quarter/i
56236
- };
56237
- var _lib_match_parseQuarterPatterns = {
56238
- any: [/1/i, /2/i, /3/i, /4/i]
56239
- };
56240
- var _lib_match_matchMonthPatterns = {
56241
- narrow: /^[jfmasond]/i,
56242
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
56243
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
56244
- };
56245
- var _lib_match_parseMonthPatterns = {
56246
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
56247
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
56248
- };
56249
- var _lib_match_matchDayPatterns = {
56250
- narrow: /^[smtwf]/i,
56251
- short: /^(su|mo|tu|we|th|fr|sa)/i,
56252
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
56253
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
56254
- };
56255
- var _lib_match_parseDayPatterns = {
56256
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
56257
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
56258
- };
56259
- var _lib_match_matchDayPeriodPatterns = {
56260
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
56261
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
56262
- };
56263
- var _lib_match_parseDayPeriodPatterns = {
56264
- any: {
56265
- am: /^a/i,
56266
- pm: /^p/i,
56267
- midnight: /^mi/i,
56268
- noon: /^no/i,
56269
- morning: /morning/i,
56270
- afternoon: /afternoon/i,
56271
- evening: /evening/i,
56272
- night: /night/i
56273
- }
56274
- };
56275
- var _lib_match_match = {
56276
- ordinalNumber: buildMatchPatternFn({
56277
- matchPattern: _lib_match_matchOrdinalNumberPattern,
56278
- parsePattern: _lib_match_parseOrdinalNumberPattern,
56279
- valueCallback: function (value) {
56280
- return parseInt(value, 10);
56281
- }
56282
- }),
56283
- era: buildMatchFn({
56284
- matchPatterns: _lib_match_matchEraPatterns,
56285
- defaultMatchWidth: 'wide',
56286
- parsePatterns: _lib_match_parseEraPatterns,
56287
- defaultParseWidth: 'any'
56288
- }),
56289
- quarter: buildMatchFn({
56290
- matchPatterns: _lib_match_matchQuarterPatterns,
56291
- defaultMatchWidth: 'wide',
56292
- parsePatterns: _lib_match_parseQuarterPatterns,
56293
- defaultParseWidth: 'any',
56294
- valueCallback: function (index) {
56295
- return index + 1;
56296
- }
56297
- }),
56298
- month: buildMatchFn({
56299
- matchPatterns: _lib_match_matchMonthPatterns,
56300
- defaultMatchWidth: 'wide',
56301
- parsePatterns: _lib_match_parseMonthPatterns,
56302
- defaultParseWidth: 'any'
56303
- }),
56304
- day: buildMatchFn({
56305
- matchPatterns: _lib_match_matchDayPatterns,
56306
- defaultMatchWidth: 'wide',
56307
- parsePatterns: _lib_match_parseDayPatterns,
56308
- defaultParseWidth: 'any'
56309
- }),
56310
- dayPeriod: buildMatchFn({
56311
- matchPatterns: _lib_match_matchDayPeriodPatterns,
56312
- defaultMatchWidth: 'any',
56313
- parsePatterns: _lib_match_parseDayPeriodPatterns,
56314
- defaultParseWidth: 'any'
56315
- })
56316
- };
56317
- /* harmony default export */ const locale_en_US_lib_match = (_lib_match_match);
56318
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/locale/en-US/index.js
56319
-
56320
-
56321
-
56322
-
56323
-
56324
-
56325
- /**
56326
- * @type {Locale}
56327
- * @category Locales
56328
- * @summary English locale (United States).
56329
- * @language English
56330
- * @iso-639-2 eng
56331
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
56332
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
56333
- */
56334
- var locale_en_US_locale = {
56335
- code: 'en-US',
56336
- formatDistance: en_US_lib_formatDistance,
56337
- formatLong: locale_en_US_lib_formatLong,
56338
- formatRelative: en_US_lib_formatRelative,
56339
- localize: locale_en_US_lib_localize,
56340
- match: locale_en_US_lib_match,
56341
- options: {
56342
- weekStartsOn: 0
56343
- /* Sunday */
56344
- ,
56345
- firstWeekContainsDate: 1
56346
- }
56347
- };
56348
- /* harmony default export */ const locale_en_US = (locale_en_US_locale);
56349
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/addMilliseconds/index.js
55911
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/addMilliseconds/index.js
56350
55912
 
56351
55913
 
56352
55914
 
@@ -56358,10 +55920,6 @@ var locale_en_US_locale = {
56358
55920
  * @description
56359
55921
  * Add the specified number of milliseconds to the given date.
56360
55922
  *
56361
- * ### v2.0.0 breaking changes:
56362
- *
56363
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
56364
- *
56365
55923
  * @param {Date|Number} date - the date to be changed
56366
55924
  * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
56367
55925
  * @returns {Date} the new date with the milliseconds added
@@ -56379,7 +55937,7 @@ function addMilliseconds_addMilliseconds(dirtyDate, dirtyAmount) {
56379
55937
  var amount = toInteger(dirtyAmount);
56380
55938
  return new Date(timestamp + amount);
56381
55939
  }
56382
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/subMilliseconds/index.js
55940
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/subMilliseconds/index.js
56383
55941
 
56384
55942
 
56385
55943
 
@@ -56391,10 +55949,6 @@ function addMilliseconds_addMilliseconds(dirtyDate, dirtyAmount) {
56391
55949
  * @description
56392
55950
  * Subtract the specified number of milliseconds from the given date.
56393
55951
  *
56394
- * ### v2.0.0 breaking changes:
56395
- *
56396
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
56397
- *
56398
55952
  * @param {Date|Number} date - the date to be changed
56399
55953
  * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
56400
55954
  * @returns {Date} the new date with the milliseconds subtracted
@@ -56411,12 +55965,10 @@ function subMilliseconds_subMilliseconds(dirtyDate, dirtyAmount) {
56411
55965
  var amount = toInteger(dirtyAmount);
56412
55966
  return addMilliseconds_addMilliseconds(dirtyDate, -amount);
56413
55967
  }
56414
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js
56415
-
55968
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js
56416
55969
 
56417
- var getUTCDayOfYear_MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.
56418
- // See issue: https://github.com/date-fns/date-fns/issues/376
56419
55970
 
55971
+ var getUTCDayOfYear_MILLISECONDS_IN_DAY = 86400000;
56420
55972
  function getUTCDayOfYear_getUTCDayOfYear(dirtyDate) {
56421
55973
  requiredArgs(1, arguments);
56422
55974
  var date = toDate_toDate(dirtyDate);
@@ -56427,10 +55979,8 @@ function getUTCDayOfYear_getUTCDayOfYear(dirtyDate) {
56427
55979
  var difference = timestamp - startOfYearTimestamp;
56428
55980
  return Math.floor(difference / getUTCDayOfYear_MILLISECONDS_IN_DAY) + 1;
56429
55981
  }
56430
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js
55982
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js
56431
55983
 
56432
- // This function will be a part of public API when UTC function will be implemented.
56433
- // See issue: https://github.com/date-fns/date-fns/issues/376
56434
55984
 
56435
55985
  function startOfUTCISOWeek_startOfUTCISOWeek(dirtyDate) {
56436
55986
  requiredArgs(1, arguments);
@@ -56442,11 +55992,9 @@ function startOfUTCISOWeek_startOfUTCISOWeek(dirtyDate) {
56442
55992
  date.setUTCHours(0, 0, 0, 0);
56443
55993
  return date;
56444
55994
  }
56445
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js
55995
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js
56446
55996
 
56447
55997
 
56448
- // This function will be a part of public API when UTC function will be implemented.
56449
- // See issue: https://github.com/date-fns/date-fns/issues/376
56450
55998
 
56451
55999
  function getUTCISOWeekYear_getUTCISOWeekYear(dirtyDate) {
56452
56000
  requiredArgs(1, arguments);
@@ -56469,11 +56017,9 @@ function getUTCISOWeekYear_getUTCISOWeekYear(dirtyDate) {
56469
56017
  return year - 1;
56470
56018
  }
56471
56019
  }
56472
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js
56020
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js
56473
56021
 
56474
56022
 
56475
- // This function will be a part of public API when UTC function will be implemented.
56476
- // See issue: https://github.com/date-fns/date-fns/issues/376
56477
56023
 
56478
56024
  function startOfUTCISOWeekYear_startOfUTCISOWeekYear(dirtyDate) {
56479
56025
  requiredArgs(1, arguments);
@@ -56484,14 +56030,12 @@ function startOfUTCISOWeekYear_startOfUTCISOWeekYear(dirtyDate) {
56484
56030
  var date = startOfUTCISOWeek_startOfUTCISOWeek(fourthOfJanuary);
56485
56031
  return date;
56486
56032
  }
56487
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js
56033
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js
56488
56034
 
56489
56035
 
56490
56036
 
56491
56037
 
56492
- var getUTCISOWeek_MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
56493
- // See issue: https://github.com/date-fns/date-fns/issues/376
56494
-
56038
+ var getUTCISOWeek_MILLISECONDS_IN_WEEK = 604800000;
56495
56039
  function getUTCISOWeek_getUTCISOWeek(dirtyDate) {
56496
56040
  requiredArgs(1, arguments);
56497
56041
  var date = toDate_toDate(dirtyDate);
@@ -56501,22 +56045,20 @@ function getUTCISOWeek_getUTCISOWeek(dirtyDate) {
56501
56045
 
56502
56046
  return Math.round(diff / getUTCISOWeek_MILLISECONDS_IN_WEEK) + 1;
56503
56047
  }
56504
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js
56048
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js
56049
+
56505
56050
 
56506
56051
 
56507
56052
 
56508
- // This function will be a part of public API when UTC function will be implemented.
56509
- // See issue: https://github.com/date-fns/date-fns/issues/376
56510
56053
 
56511
- function getUTCWeekYear_getUTCWeekYear(dirtyDate, dirtyOptions) {
56054
+ function getUTCWeekYear_getUTCWeekYear(dirtyDate, options) {
56055
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
56056
+
56512
56057
  requiredArgs(1, arguments);
56513
56058
  var date = toDate_toDate(dirtyDate);
56514
56059
  var year = date.getUTCFullYear();
56515
- var options = dirtyOptions || {};
56516
- var locale = options.locale;
56517
- var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
56518
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
56519
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
56060
+ var defaultOptions = getDefaultOptions();
56061
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
56520
56062
 
56521
56063
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
56522
56064
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
@@ -56525,11 +56067,11 @@ function getUTCWeekYear_getUTCWeekYear(dirtyDate, dirtyOptions) {
56525
56067
  var firstWeekOfNextYear = new Date(0);
56526
56068
  firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
56527
56069
  firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
56528
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, dirtyOptions);
56070
+ var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
56529
56071
  var firstWeekOfThisYear = new Date(0);
56530
56072
  firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
56531
56073
  firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
56532
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions);
56074
+ var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
56533
56075
 
56534
56076
  if (date.getTime() >= startOfNextYear.getTime()) {
56535
56077
  return year + 1;
@@ -56539,35 +56081,31 @@ function getUTCWeekYear_getUTCWeekYear(dirtyDate, dirtyOptions) {
56539
56081
  return year - 1;
56540
56082
  }
56541
56083
  }
56542
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js
56084
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js
56085
+
56543
56086
 
56544
56087
 
56545
56088
 
56546
- // This function will be a part of public API when UTC function will be implemented.
56547
- // See issue: https://github.com/date-fns/date-fns/issues/376
56548
56089
 
56549
- function startOfUTCWeekYear_startOfUTCWeekYear(dirtyDate, dirtyOptions) {
56090
+ function startOfUTCWeekYear_startOfUTCWeekYear(dirtyDate, options) {
56091
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
56092
+
56550
56093
  requiredArgs(1, arguments);
56551
- var options = dirtyOptions || {};
56552
- var locale = options.locale;
56553
- var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
56554
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
56555
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
56556
- var year = getUTCWeekYear_getUTCWeekYear(dirtyDate, dirtyOptions);
56094
+ var defaultOptions = getDefaultOptions();
56095
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
56096
+ var year = getUTCWeekYear_getUTCWeekYear(dirtyDate, options);
56557
56097
  var firstWeek = new Date(0);
56558
56098
  firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
56559
56099
  firstWeek.setUTCHours(0, 0, 0, 0);
56560
- var date = startOfUTCWeek(firstWeek, dirtyOptions);
56100
+ var date = startOfUTCWeek(firstWeek, options);
56561
56101
  return date;
56562
56102
  }
56563
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/getUTCWeek/index.js
56103
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCWeek/index.js
56564
56104
 
56565
56105
 
56566
56106
 
56567
56107
 
56568
- var _lib_getUTCWeek_MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
56569
- // See issue: https://github.com/date-fns/date-fns/issues/376
56570
-
56108
+ var _lib_getUTCWeek_MILLISECONDS_IN_WEEK = 604800000;
56571
56109
  function getUTCWeek_getUTCWeek(dirtyDate, options) {
56572
56110
  requiredArgs(1, arguments);
56573
56111
  var date = toDate_toDate(dirtyDate);
@@ -56577,7 +56115,7 @@ function getUTCWeek_getUTCWeek(dirtyDate, options) {
56577
56115
 
56578
56116
  return Math.round(diff / _lib_getUTCWeek_MILLISECONDS_IN_WEEK) + 1;
56579
56117
  }
56580
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
56118
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
56581
56119
  function addLeadingZeros_addLeadingZeros(number, targetLength) {
56582
56120
  var sign = number < 0 ? '-' : '';
56583
56121
  var output = Math.abs(number).toString();
@@ -56588,7 +56126,7 @@ function addLeadingZeros_addLeadingZeros(number, targetLength) {
56588
56126
 
56589
56127
  return sign + output;
56590
56128
  }
56591
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/format/lightFormatters/index.js
56129
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js
56592
56130
 
56593
56131
  /*
56594
56132
  * | | Unit | | Unit |
@@ -56605,7 +56143,7 @@ function addLeadingZeros_addLeadingZeros(number, targetLength) {
56605
56143
 
56606
56144
  var lightFormatters_formatters = {
56607
56145
  // Year
56608
- y: function (date, token) {
56146
+ y: function y(date, token) {
56609
56147
  // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
56610
56148
  // | Year | y | yy | yyy | yyyy | yyyyy |
56611
56149
  // |----------|-------|----|-------|-------|-------|
@@ -56620,16 +56158,16 @@ var lightFormatters_formatters = {
56620
56158
  return addLeadingZeros_addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
56621
56159
  },
56622
56160
  // Month
56623
- M: function (date, token) {
56161
+ M: function M(date, token) {
56624
56162
  var month = date.getUTCMonth();
56625
56163
  return token === 'M' ? String(month + 1) : addLeadingZeros_addLeadingZeros(month + 1, 2);
56626
56164
  },
56627
56165
  // Day of the month
56628
- d: function (date, token) {
56166
+ d: function d(date, token) {
56629
56167
  return addLeadingZeros_addLeadingZeros(date.getUTCDate(), token.length);
56630
56168
  },
56631
56169
  // AM or PM
56632
- a: function (date, token) {
56170
+ a: function a(date, token) {
56633
56171
  var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
56634
56172
 
56635
56173
  switch (token) {
@@ -56649,23 +56187,23 @@ var lightFormatters_formatters = {
56649
56187
  }
56650
56188
  },
56651
56189
  // Hour [1-12]
56652
- h: function (date, token) {
56190
+ h: function h(date, token) {
56653
56191
  return addLeadingZeros_addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
56654
56192
  },
56655
56193
  // Hour [0-23]
56656
- H: function (date, token) {
56194
+ H: function H(date, token) {
56657
56195
  return addLeadingZeros_addLeadingZeros(date.getUTCHours(), token.length);
56658
56196
  },
56659
56197
  // Minute
56660
- m: function (date, token) {
56198
+ m: function m(date, token) {
56661
56199
  return addLeadingZeros_addLeadingZeros(date.getUTCMinutes(), token.length);
56662
56200
  },
56663
56201
  // Second
56664
- s: function (date, token) {
56202
+ s: function s(date, token) {
56665
56203
  return addLeadingZeros_addLeadingZeros(date.getUTCSeconds(), token.length);
56666
56204
  },
56667
56205
  // Fraction of second
56668
- S: function (date, token) {
56206
+ S: function S(date, token) {
56669
56207
  var numberOfDigits = token.length;
56670
56208
  var milliseconds = date.getUTCMilliseconds();
56671
56209
  var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
@@ -56673,7 +56211,7 @@ var lightFormatters_formatters = {
56673
56211
  }
56674
56212
  };
56675
56213
  /* harmony default export */ const format_lightFormatters = (lightFormatters_formatters);
56676
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/format/formatters/index.js
56214
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/format/formatters/index.js
56677
56215
 
56678
56216
 
56679
56217
 
@@ -56691,6 +56229,7 @@ var formatters_dayPeriodEnum = {
56691
56229
  evening: 'evening',
56692
56230
  night: 'night'
56693
56231
  };
56232
+
56694
56233
  /*
56695
56234
  * | | Unit | | Unit |
56696
56235
  * |-----|--------------------------------|-----|--------------------------------|
@@ -56736,10 +56275,9 @@ var formatters_dayPeriodEnum = {
56736
56275
  * - `P` is long localized date format
56737
56276
  * - `p` is long localized time format
56738
56277
  */
56739
-
56740
56278
  var format_formatters_formatters = {
56741
56279
  // Era
56742
- G: function (date, token, localize) {
56280
+ G: function G(date, token, localize) {
56743
56281
  var era = date.getUTCFullYear() > 0 ? 1 : 0;
56744
56282
 
56745
56283
  switch (token) {
@@ -56766,7 +56304,7 @@ var format_formatters_formatters = {
56766
56304
  }
56767
56305
  },
56768
56306
  // Year
56769
- y: function (date, token, localize) {
56307
+ y: function y(date, token, localize) {
56770
56308
  // Ordinal number
56771
56309
  if (token === 'yo') {
56772
56310
  var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
@@ -56780,7 +56318,7 @@ var format_formatters_formatters = {
56780
56318
  return format_lightFormatters.y(date, token);
56781
56319
  },
56782
56320
  // Local week-numbering year
56783
- Y: function (date, token, localize, options) {
56321
+ Y: function Y(date, token, localize, options) {
56784
56322
  var signedWeekYear = getUTCWeekYear_getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
56785
56323
 
56786
56324
  var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
@@ -56801,7 +56339,7 @@ var format_formatters_formatters = {
56801
56339
  return addLeadingZeros_addLeadingZeros(weekYear, token.length);
56802
56340
  },
56803
56341
  // ISO week-numbering year
56804
- R: function (date, token) {
56342
+ R: function R(date, token) {
56805
56343
  var isoWeekYear = getUTCISOWeekYear_getUTCISOWeekYear(date); // Padding
56806
56344
 
56807
56345
  return addLeadingZeros_addLeadingZeros(isoWeekYear, token.length);
@@ -56815,12 +56353,12 @@ var format_formatters_formatters = {
56815
56353
  // | BC 2 | 2 | -1 |
56816
56354
  // Also `yy` always returns the last two digits of a year,
56817
56355
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
56818
- u: function (date, token) {
56356
+ u: function u(date, token) {
56819
56357
  var year = date.getUTCFullYear();
56820
56358
  return addLeadingZeros_addLeadingZeros(year, token.length);
56821
56359
  },
56822
56360
  // Quarter
56823
- Q: function (date, token, localize) {
56361
+ Q: function Q(date, token, localize) {
56824
56362
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
56825
56363
 
56826
56364
  switch (token) {
@@ -56862,7 +56400,7 @@ var format_formatters_formatters = {
56862
56400
  }
56863
56401
  },
56864
56402
  // Stand-alone quarter
56865
- q: function (date, token, localize) {
56403
+ q: function q(date, token, localize) {
56866
56404
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
56867
56405
 
56868
56406
  switch (token) {
@@ -56904,7 +56442,7 @@ var format_formatters_formatters = {
56904
56442
  }
56905
56443
  },
56906
56444
  // Month
56907
- M: function (date, token, localize) {
56445
+ M: function M(date, token, localize) {
56908
56446
  var month = date.getUTCMonth();
56909
56447
 
56910
56448
  switch (token) {
@@ -56942,7 +56480,7 @@ var format_formatters_formatters = {
56942
56480
  }
56943
56481
  },
56944
56482
  // Stand-alone month
56945
- L: function (date, token, localize) {
56483
+ L: function L(date, token, localize) {
56946
56484
  var month = date.getUTCMonth();
56947
56485
 
56948
56486
  switch (token) {
@@ -56984,7 +56522,7 @@ var format_formatters_formatters = {
56984
56522
  }
56985
56523
  },
56986
56524
  // Local week of year
56987
- w: function (date, token, localize, options) {
56525
+ w: function w(date, token, localize, options) {
56988
56526
  var week = getUTCWeek_getUTCWeek(date, options);
56989
56527
 
56990
56528
  if (token === 'wo') {
@@ -56996,7 +56534,7 @@ var format_formatters_formatters = {
56996
56534
  return addLeadingZeros_addLeadingZeros(week, token.length);
56997
56535
  },
56998
56536
  // ISO week of year
56999
- I: function (date, token, localize) {
56537
+ I: function I(date, token, localize) {
57000
56538
  var isoWeek = getUTCISOWeek_getUTCISOWeek(date);
57001
56539
 
57002
56540
  if (token === 'Io') {
@@ -57008,7 +56546,7 @@ var format_formatters_formatters = {
57008
56546
  return addLeadingZeros_addLeadingZeros(isoWeek, token.length);
57009
56547
  },
57010
56548
  // Day of the month
57011
- d: function (date, token, localize) {
56549
+ d: function d(date, token, localize) {
57012
56550
  if (token === 'do') {
57013
56551
  return localize.ordinalNumber(date.getUTCDate(), {
57014
56552
  unit: 'date'
@@ -57018,7 +56556,7 @@ var format_formatters_formatters = {
57018
56556
  return format_lightFormatters.d(date, token);
57019
56557
  },
57020
56558
  // Day of year
57021
- D: function (date, token, localize) {
56559
+ D: function D(date, token, localize) {
57022
56560
  var dayOfYear = getUTCDayOfYear_getUTCDayOfYear(date);
57023
56561
 
57024
56562
  if (token === 'Do') {
@@ -57030,7 +56568,7 @@ var format_formatters_formatters = {
57030
56568
  return addLeadingZeros_addLeadingZeros(dayOfYear, token.length);
57031
56569
  },
57032
56570
  // Day of week
57033
- E: function (date, token, localize) {
56571
+ E: function E(date, token, localize) {
57034
56572
  var dayOfWeek = date.getUTCDay();
57035
56573
 
57036
56574
  switch (token) {
@@ -57067,7 +56605,7 @@ var format_formatters_formatters = {
57067
56605
  }
57068
56606
  },
57069
56607
  // Local day of week
57070
- e: function (date, token, localize, options) {
56608
+ e: function e(date, token, localize, options) {
57071
56609
  var dayOfWeek = date.getUTCDay();
57072
56610
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
57073
56611
 
@@ -57116,7 +56654,7 @@ var format_formatters_formatters = {
57116
56654
  }
57117
56655
  },
57118
56656
  // Stand-alone local day of week
57119
- c: function (date, token, localize, options) {
56657
+ c: function c(date, token, localize, options) {
57120
56658
  var dayOfWeek = date.getUTCDay();
57121
56659
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
57122
56660
 
@@ -57165,7 +56703,7 @@ var format_formatters_formatters = {
57165
56703
  }
57166
56704
  },
57167
56705
  // ISO day of week
57168
- i: function (date, token, localize) {
56706
+ i: function i(date, token, localize) {
57169
56707
  var dayOfWeek = date.getUTCDay();
57170
56708
  var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
57171
56709
 
@@ -57215,7 +56753,7 @@ var format_formatters_formatters = {
57215
56753
  }
57216
56754
  },
57217
56755
  // AM or PM
57218
- a: function (date, token, localize) {
56756
+ a: function a(date, token, localize) {
57219
56757
  var hours = date.getUTCHours();
57220
56758
  var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
57221
56759
 
@@ -57248,7 +56786,7 @@ var format_formatters_formatters = {
57248
56786
  }
57249
56787
  },
57250
56788
  // AM, PM, midnight, noon
57251
- b: function (date, token, localize) {
56789
+ b: function b(date, token, localize) {
57252
56790
  var hours = date.getUTCHours();
57253
56791
  var dayPeriodEnumValue;
57254
56792
 
@@ -57289,7 +56827,7 @@ var format_formatters_formatters = {
57289
56827
  }
57290
56828
  },
57291
56829
  // in the morning, in the afternoon, in the evening, at night
57292
- B: function (date, token, localize) {
56830
+ B: function B(date, token, localize) {
57293
56831
  var hours = date.getUTCHours();
57294
56832
  var dayPeriodEnumValue;
57295
56833
 
@@ -57327,7 +56865,7 @@ var format_formatters_formatters = {
57327
56865
  }
57328
56866
  },
57329
56867
  // Hour [1-12]
57330
- h: function (date, token, localize) {
56868
+ h: function h(date, token, localize) {
57331
56869
  if (token === 'ho') {
57332
56870
  var hours = date.getUTCHours() % 12;
57333
56871
  if (hours === 0) hours = 12;
@@ -57339,7 +56877,7 @@ var format_formatters_formatters = {
57339
56877
  return format_lightFormatters.h(date, token);
57340
56878
  },
57341
56879
  // Hour [0-23]
57342
- H: function (date, token, localize) {
56880
+ H: function H(date, token, localize) {
57343
56881
  if (token === 'Ho') {
57344
56882
  return localize.ordinalNumber(date.getUTCHours(), {
57345
56883
  unit: 'hour'
@@ -57349,7 +56887,7 @@ var format_formatters_formatters = {
57349
56887
  return format_lightFormatters.H(date, token);
57350
56888
  },
57351
56889
  // Hour [0-11]
57352
- K: function (date, token, localize) {
56890
+ K: function K(date, token, localize) {
57353
56891
  var hours = date.getUTCHours() % 12;
57354
56892
 
57355
56893
  if (token === 'Ko') {
@@ -57361,7 +56899,7 @@ var format_formatters_formatters = {
57361
56899
  return addLeadingZeros_addLeadingZeros(hours, token.length);
57362
56900
  },
57363
56901
  // Hour [1-24]
57364
- k: function (date, token, localize) {
56902
+ k: function k(date, token, localize) {
57365
56903
  var hours = date.getUTCHours();
57366
56904
  if (hours === 0) hours = 24;
57367
56905
 
@@ -57374,7 +56912,7 @@ var format_formatters_formatters = {
57374
56912
  return addLeadingZeros_addLeadingZeros(hours, token.length);
57375
56913
  },
57376
56914
  // Minute
57377
- m: function (date, token, localize) {
56915
+ m: function m(date, token, localize) {
57378
56916
  if (token === 'mo') {
57379
56917
  return localize.ordinalNumber(date.getUTCMinutes(), {
57380
56918
  unit: 'minute'
@@ -57384,7 +56922,7 @@ var format_formatters_formatters = {
57384
56922
  return format_lightFormatters.m(date, token);
57385
56923
  },
57386
56924
  // Second
57387
- s: function (date, token, localize) {
56925
+ s: function s(date, token, localize) {
57388
56926
  if (token === 'so') {
57389
56927
  return localize.ordinalNumber(date.getUTCSeconds(), {
57390
56928
  unit: 'second'
@@ -57394,11 +56932,11 @@ var format_formatters_formatters = {
57394
56932
  return format_lightFormatters.s(date, token);
57395
56933
  },
57396
56934
  // Fraction of second
57397
- S: function (date, token) {
56935
+ S: function S(date, token) {
57398
56936
  return format_lightFormatters.S(date, token);
57399
56937
  },
57400
56938
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
57401
- X: function (date, token, _localize, options) {
56939
+ X: function X(date, token, _localize, options) {
57402
56940
  var originalDate = options._originalDate || date;
57403
56941
  var timezoneOffset = originalDate.getTimezoneOffset();
57404
56942
 
@@ -57430,7 +56968,7 @@ var format_formatters_formatters = {
57430
56968
  }
57431
56969
  },
57432
56970
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
57433
- x: function (date, token, _localize, options) {
56971
+ x: function x(date, token, _localize, options) {
57434
56972
  var originalDate = options._originalDate || date;
57435
56973
  var timezoneOffset = originalDate.getTimezoneOffset();
57436
56974
 
@@ -57458,7 +56996,7 @@ var format_formatters_formatters = {
57458
56996
  }
57459
56997
  },
57460
56998
  // Timezone (GMT)
57461
- O: function (date, token, _localize, options) {
56999
+ O: function O(date, token, _localize, options) {
57462
57000
  var originalDate = options._originalDate || date;
57463
57001
  var timezoneOffset = originalDate.getTimezoneOffset();
57464
57002
 
@@ -57476,7 +57014,7 @@ var format_formatters_formatters = {
57476
57014
  }
57477
57015
  },
57478
57016
  // Timezone (specific non-location)
57479
- z: function (date, token, _localize, options) {
57017
+ z: function z(date, token, _localize, options) {
57480
57018
  var originalDate = options._originalDate || date;
57481
57019
  var timezoneOffset = originalDate.getTimezoneOffset();
57482
57020
 
@@ -57493,188 +57031,608 @@ var format_formatters_formatters = {
57493
57031
  return 'GMT' + formatters_formatTimezone(timezoneOffset, ':');
57494
57032
  }
57495
57033
  },
57496
- // Seconds timestamp
57497
- t: function (date, token, _localize, options) {
57498
- var originalDate = options._originalDate || date;
57499
- var timestamp = Math.floor(originalDate.getTime() / 1000);
57500
- return addLeadingZeros_addLeadingZeros(timestamp, token.length);
57034
+ // Seconds timestamp
57035
+ t: function t(date, token, _localize, options) {
57036
+ var originalDate = options._originalDate || date;
57037
+ var timestamp = Math.floor(originalDate.getTime() / 1000);
57038
+ return addLeadingZeros_addLeadingZeros(timestamp, token.length);
57039
+ },
57040
+ // Milliseconds timestamp
57041
+ T: function T(date, token, _localize, options) {
57042
+ var originalDate = options._originalDate || date;
57043
+ var timestamp = originalDate.getTime();
57044
+ return addLeadingZeros_addLeadingZeros(timestamp, token.length);
57045
+ }
57046
+ };
57047
+
57048
+ function formatters_formatTimezoneShort(offset, dirtyDelimiter) {
57049
+ var sign = offset > 0 ? '-' : '+';
57050
+ var absOffset = Math.abs(offset);
57051
+ var hours = Math.floor(absOffset / 60);
57052
+ var minutes = absOffset % 60;
57053
+
57054
+ if (minutes === 0) {
57055
+ return sign + String(hours);
57056
+ }
57057
+
57058
+ var delimiter = dirtyDelimiter || '';
57059
+ return sign + String(hours) + delimiter + addLeadingZeros_addLeadingZeros(minutes, 2);
57060
+ }
57061
+
57062
+ function formatters_formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
57063
+ if (offset % 60 === 0) {
57064
+ var sign = offset > 0 ? '-' : '+';
57065
+ return sign + addLeadingZeros_addLeadingZeros(Math.abs(offset) / 60, 2);
57066
+ }
57067
+
57068
+ return formatters_formatTimezone(offset, dirtyDelimiter);
57069
+ }
57070
+
57071
+ function formatters_formatTimezone(offset, dirtyDelimiter) {
57072
+ var delimiter = dirtyDelimiter || '';
57073
+ var sign = offset > 0 ? '-' : '+';
57074
+ var absOffset = Math.abs(offset);
57075
+ var hours = addLeadingZeros_addLeadingZeros(Math.floor(absOffset / 60), 2);
57076
+ var minutes = addLeadingZeros_addLeadingZeros(absOffset % 60, 2);
57077
+ return sign + hours + delimiter + minutes;
57078
+ }
57079
+
57080
+ /* harmony default export */ const _lib_format_formatters = (format_formatters_formatters);
57081
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/format/longFormatters/index.js
57082
+ var longFormatters_dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
57083
+ switch (pattern) {
57084
+ case 'P':
57085
+ return formatLong.date({
57086
+ width: 'short'
57087
+ });
57088
+
57089
+ case 'PP':
57090
+ return formatLong.date({
57091
+ width: 'medium'
57092
+ });
57093
+
57094
+ case 'PPP':
57095
+ return formatLong.date({
57096
+ width: 'long'
57097
+ });
57098
+
57099
+ case 'PPPP':
57100
+ default:
57101
+ return formatLong.date({
57102
+ width: 'full'
57103
+ });
57104
+ }
57105
+ };
57106
+
57107
+ var longFormatters_timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
57108
+ switch (pattern) {
57109
+ case 'p':
57110
+ return formatLong.time({
57111
+ width: 'short'
57112
+ });
57113
+
57114
+ case 'pp':
57115
+ return formatLong.time({
57116
+ width: 'medium'
57117
+ });
57118
+
57119
+ case 'ppp':
57120
+ return formatLong.time({
57121
+ width: 'long'
57122
+ });
57123
+
57124
+ case 'pppp':
57125
+ default:
57126
+ return formatLong.time({
57127
+ width: 'full'
57128
+ });
57129
+ }
57130
+ };
57131
+
57132
+ var longFormatters_dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
57133
+ var matchResult = pattern.match(/(P+)(p+)?/) || [];
57134
+ var datePattern = matchResult[1];
57135
+ var timePattern = matchResult[2];
57136
+
57137
+ if (!timePattern) {
57138
+ return longFormatters_dateLongFormatter(pattern, formatLong);
57139
+ }
57140
+
57141
+ var dateTimeFormat;
57142
+
57143
+ switch (datePattern) {
57144
+ case 'P':
57145
+ dateTimeFormat = formatLong.dateTime({
57146
+ width: 'short'
57147
+ });
57148
+ break;
57149
+
57150
+ case 'PP':
57151
+ dateTimeFormat = formatLong.dateTime({
57152
+ width: 'medium'
57153
+ });
57154
+ break;
57155
+
57156
+ case 'PPP':
57157
+ dateTimeFormat = formatLong.dateTime({
57158
+ width: 'long'
57159
+ });
57160
+ break;
57161
+
57162
+ case 'PPPP':
57163
+ default:
57164
+ dateTimeFormat = formatLong.dateTime({
57165
+ width: 'full'
57166
+ });
57167
+ break;
57168
+ }
57169
+
57170
+ return dateTimeFormat.replace('{{date}}', longFormatters_dateLongFormatter(datePattern, formatLong)).replace('{{time}}', longFormatters_timeLongFormatter(timePattern, formatLong));
57171
+ };
57172
+
57173
+ var longFormatters_longFormatters = {
57174
+ p: longFormatters_timeLongFormatter,
57175
+ P: longFormatters_dateTimeLongFormatter
57176
+ };
57177
+ /* harmony default export */ const _lib_format_longFormatters = (longFormatters_longFormatters);
57178
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
57179
+ /**
57180
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
57181
+ * They usually appear for dates that denote time before the timezones were introduced
57182
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
57183
+ * and GMT+01:00:00 after that date)
57184
+ *
57185
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
57186
+ * which would lead to incorrect calculations.
57187
+ *
57188
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
57189
+ */
57190
+ function getTimezoneOffsetInMilliseconds_getTimezoneOffsetInMilliseconds(date) {
57191
+ var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
57192
+ utcDate.setUTCFullYear(date.getFullYear());
57193
+ return date.getTime() - utcDate.getTime();
57194
+ }
57195
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/protectedTokens/index.js
57196
+ var protectedTokens_protectedDayOfYearTokens = ['D', 'DD'];
57197
+ var protectedTokens_protectedWeekYearTokens = ['YY', 'YYYY'];
57198
+ function protectedTokens_isProtectedDayOfYearToken(token) {
57199
+ return protectedTokens_protectedDayOfYearTokens.indexOf(token) !== -1;
57200
+ }
57201
+ function protectedTokens_isProtectedWeekYearToken(token) {
57202
+ return protectedTokens_protectedWeekYearTokens.indexOf(token) !== -1;
57203
+ }
57204
+ function protectedTokens_throwProtectedError(token, format, input) {
57205
+ if (token === 'YYYY') {
57206
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
57207
+ } else if (token === 'YY') {
57208
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
57209
+ } else if (token === 'D') {
57210
+ throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
57211
+ } else if (token === 'DD') {
57212
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
57213
+ }
57214
+ }
57215
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js
57216
+ var _lib_formatDistance_formatDistanceLocale = {
57217
+ lessThanXSeconds: {
57218
+ one: 'less than a second',
57219
+ other: 'less than {{count}} seconds'
57220
+ },
57221
+ xSeconds: {
57222
+ one: '1 second',
57223
+ other: '{{count}} seconds'
57224
+ },
57225
+ halfAMinute: 'half a minute',
57226
+ lessThanXMinutes: {
57227
+ one: 'less than a minute',
57228
+ other: 'less than {{count}} minutes'
57229
+ },
57230
+ xMinutes: {
57231
+ one: '1 minute',
57232
+ other: '{{count}} minutes'
57233
+ },
57234
+ aboutXHours: {
57235
+ one: 'about 1 hour',
57236
+ other: 'about {{count}} hours'
57237
+ },
57238
+ xHours: {
57239
+ one: '1 hour',
57240
+ other: '{{count}} hours'
57241
+ },
57242
+ xDays: {
57243
+ one: '1 day',
57244
+ other: '{{count}} days'
57245
+ },
57246
+ aboutXWeeks: {
57247
+ one: 'about 1 week',
57248
+ other: 'about {{count}} weeks'
57249
+ },
57250
+ xWeeks: {
57251
+ one: '1 week',
57252
+ other: '{{count}} weeks'
57253
+ },
57254
+ aboutXMonths: {
57255
+ one: 'about 1 month',
57256
+ other: 'about {{count}} months'
57257
+ },
57258
+ xMonths: {
57259
+ one: '1 month',
57260
+ other: '{{count}} months'
57261
+ },
57262
+ aboutXYears: {
57263
+ one: 'about 1 year',
57264
+ other: 'about {{count}} years'
57265
+ },
57266
+ xYears: {
57267
+ one: '1 year',
57268
+ other: '{{count}} years'
57269
+ },
57270
+ overXYears: {
57271
+ one: 'over 1 year',
57272
+ other: 'over {{count}} years'
57273
+ },
57274
+ almostXYears: {
57275
+ one: 'almost 1 year',
57276
+ other: 'almost {{count}} years'
57277
+ }
57278
+ };
57279
+
57280
+ var _lib_formatDistance_formatDistance = function formatDistance(token, count, options) {
57281
+ var result;
57282
+ var tokenValue = _lib_formatDistance_formatDistanceLocale[token];
57283
+
57284
+ if (typeof tokenValue === 'string') {
57285
+ result = tokenValue;
57286
+ } else if (count === 1) {
57287
+ result = tokenValue.one;
57288
+ } else {
57289
+ result = tokenValue.other.replace('{{count}}', count.toString());
57290
+ }
57291
+
57292
+ if (options !== null && options !== void 0 && options.addSuffix) {
57293
+ if (options.comparison && options.comparison > 0) {
57294
+ return 'in ' + result;
57295
+ } else {
57296
+ return result + ' ago';
57297
+ }
57298
+ }
57299
+
57300
+ return result;
57301
+ };
57302
+
57303
+ /* harmony default export */ const locale_en_US_lib_formatDistance = (_lib_formatDistance_formatDistance);
57304
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js
57305
+
57306
+ var _lib_formatLong_dateFormats = {
57307
+ full: 'EEEE, MMMM do, y',
57308
+ long: 'MMMM do, y',
57309
+ medium: 'MMM d, y',
57310
+ short: 'MM/dd/yyyy'
57311
+ };
57312
+ var _lib_formatLong_timeFormats = {
57313
+ full: 'h:mm:ss a zzzz',
57314
+ long: 'h:mm:ss a z',
57315
+ medium: 'h:mm:ss a',
57316
+ short: 'h:mm a'
57317
+ };
57318
+ var _lib_formatLong_dateTimeFormats = {
57319
+ full: "{{date}} 'at' {{time}}",
57320
+ long: "{{date}} 'at' {{time}}",
57321
+ medium: '{{date}}, {{time}}',
57322
+ short: '{{date}}, {{time}}'
57323
+ };
57324
+ var _lib_formatLong_formatLong = {
57325
+ date: buildFormatLongFn({
57326
+ formats: _lib_formatLong_dateFormats,
57327
+ defaultWidth: 'full'
57328
+ }),
57329
+ time: buildFormatLongFn({
57330
+ formats: _lib_formatLong_timeFormats,
57331
+ defaultWidth: 'full'
57332
+ }),
57333
+ dateTime: buildFormatLongFn({
57334
+ formats: _lib_formatLong_dateTimeFormats,
57335
+ defaultWidth: 'full'
57336
+ })
57337
+ };
57338
+ /* harmony default export */ const locale_en_US_lib_formatLong = (_lib_formatLong_formatLong);
57339
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js
57340
+ var _lib_formatRelative_formatRelativeLocale = {
57341
+ lastWeek: "'last' eeee 'at' p",
57342
+ yesterday: "'yesterday at' p",
57343
+ today: "'today at' p",
57344
+ tomorrow: "'tomorrow at' p",
57345
+ nextWeek: "eeee 'at' p",
57346
+ other: 'P'
57347
+ };
57348
+
57349
+ var _lib_formatRelative_formatRelative = function formatRelative(token, _date, _baseDate, _options) {
57350
+ return _lib_formatRelative_formatRelativeLocale[token];
57351
+ };
57352
+
57353
+ /* harmony default export */ const locale_en_US_lib_formatRelative = (_lib_formatRelative_formatRelative);
57354
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js
57355
+
57356
+ var _lib_localize_eraValues = {
57357
+ narrow: ['B', 'A'],
57358
+ abbreviated: ['BC', 'AD'],
57359
+ wide: ['Before Christ', 'Anno Domini']
57360
+ };
57361
+ var _lib_localize_quarterValues = {
57362
+ narrow: ['1', '2', '3', '4'],
57363
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
57364
+ wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
57365
+ }; // Note: in English, the names of days of the week and months are capitalized.
57366
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
57367
+ // Generally, formatted dates should look like they are in the middle of a sentence,
57368
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
57369
+
57370
+ var _lib_localize_monthValues = {
57371
+ narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
57372
+ abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
57373
+ wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
57374
+ };
57375
+ var _lib_localize_dayValues = {
57376
+ narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
57377
+ short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
57378
+ abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
57379
+ wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
57380
+ };
57381
+ var _lib_localize_dayPeriodValues = {
57382
+ narrow: {
57383
+ am: 'a',
57384
+ pm: 'p',
57385
+ midnight: 'mi',
57386
+ noon: 'n',
57387
+ morning: 'morning',
57388
+ afternoon: 'afternoon',
57389
+ evening: 'evening',
57390
+ night: 'night'
57391
+ },
57392
+ abbreviated: {
57393
+ am: 'AM',
57394
+ pm: 'PM',
57395
+ midnight: 'midnight',
57396
+ noon: 'noon',
57397
+ morning: 'morning',
57398
+ afternoon: 'afternoon',
57399
+ evening: 'evening',
57400
+ night: 'night'
57401
+ },
57402
+ wide: {
57403
+ am: 'a.m.',
57404
+ pm: 'p.m.',
57405
+ midnight: 'midnight',
57406
+ noon: 'noon',
57407
+ morning: 'morning',
57408
+ afternoon: 'afternoon',
57409
+ evening: 'evening',
57410
+ night: 'night'
57411
+ }
57412
+ };
57413
+ var _lib_localize_formattingDayPeriodValues = {
57414
+ narrow: {
57415
+ am: 'a',
57416
+ pm: 'p',
57417
+ midnight: 'mi',
57418
+ noon: 'n',
57419
+ morning: 'in the morning',
57420
+ afternoon: 'in the afternoon',
57421
+ evening: 'in the evening',
57422
+ night: 'at night'
57423
+ },
57424
+ abbreviated: {
57425
+ am: 'AM',
57426
+ pm: 'PM',
57427
+ midnight: 'midnight',
57428
+ noon: 'noon',
57429
+ morning: 'in the morning',
57430
+ afternoon: 'in the afternoon',
57431
+ evening: 'in the evening',
57432
+ night: 'at night'
57501
57433
  },
57502
- // Milliseconds timestamp
57503
- T: function (date, token, _localize, options) {
57504
- var originalDate = options._originalDate || date;
57505
- var timestamp = originalDate.getTime();
57506
- return addLeadingZeros_addLeadingZeros(timestamp, token.length);
57434
+ wide: {
57435
+ am: 'a.m.',
57436
+ pm: 'p.m.',
57437
+ midnight: 'midnight',
57438
+ noon: 'noon',
57439
+ morning: 'in the morning',
57440
+ afternoon: 'in the afternoon',
57441
+ evening: 'in the evening',
57442
+ night: 'at night'
57507
57443
  }
57508
57444
  };
57509
57445
 
57510
- function formatters_formatTimezoneShort(offset, dirtyDelimiter) {
57511
- var sign = offset > 0 ? '-' : '+';
57512
- var absOffset = Math.abs(offset);
57513
- var hours = Math.floor(absOffset / 60);
57514
- var minutes = absOffset % 60;
57515
-
57516
- if (minutes === 0) {
57517
- return sign + String(hours);
57518
- }
57519
-
57520
- var delimiter = dirtyDelimiter || '';
57521
- return sign + String(hours) + delimiter + addLeadingZeros_addLeadingZeros(minutes, 2);
57522
- }
57523
-
57524
- function formatters_formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
57525
- if (offset % 60 === 0) {
57526
- var sign = offset > 0 ? '-' : '+';
57527
- return sign + addLeadingZeros_addLeadingZeros(Math.abs(offset) / 60, 2);
57528
- }
57529
-
57530
- return formatters_formatTimezone(offset, dirtyDelimiter);
57531
- }
57532
-
57533
- function formatters_formatTimezone(offset, dirtyDelimiter) {
57534
- var delimiter = dirtyDelimiter || '';
57535
- var sign = offset > 0 ? '-' : '+';
57536
- var absOffset = Math.abs(offset);
57537
- var hours = addLeadingZeros_addLeadingZeros(Math.floor(absOffset / 60), 2);
57538
- var minutes = addLeadingZeros_addLeadingZeros(absOffset % 60, 2);
57539
- return sign + hours + delimiter + minutes;
57540
- }
57446
+ var _lib_localize_ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
57447
+ var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
57448
+ // if they are different for different grammatical genders,
57449
+ // use `options.unit`.
57450
+ //
57451
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
57452
+ // 'day', 'hour', 'minute', 'second'.
57541
57453
 
57542
- /* harmony default export */ const _lib_format_formatters = (format_formatters_formatters);
57543
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/format/longFormatters/index.js
57544
- function longFormatters_dateLongFormatter(pattern, formatLong) {
57545
- switch (pattern) {
57546
- case 'P':
57547
- return formatLong.date({
57548
- width: 'short'
57549
- });
57454
+ var rem100 = number % 100;
57550
57455
 
57551
- case 'PP':
57552
- return formatLong.date({
57553
- width: 'medium'
57554
- });
57456
+ if (rem100 > 20 || rem100 < 10) {
57457
+ switch (rem100 % 10) {
57458
+ case 1:
57459
+ return number + 'st';
57555
57460
 
57556
- case 'PPP':
57557
- return formatLong.date({
57558
- width: 'long'
57559
- });
57461
+ case 2:
57462
+ return number + 'nd';
57560
57463
 
57561
- case 'PPPP':
57562
- default:
57563
- return formatLong.date({
57564
- width: 'full'
57565
- });
57464
+ case 3:
57465
+ return number + 'rd';
57466
+ }
57566
57467
  }
57567
- }
57568
-
57569
- function longFormatters_timeLongFormatter(pattern, formatLong) {
57570
- switch (pattern) {
57571
- case 'p':
57572
- return formatLong.time({
57573
- width: 'short'
57574
- });
57575
57468
 
57576
- case 'pp':
57577
- return formatLong.time({
57578
- width: 'medium'
57579
- });
57580
-
57581
- case 'ppp':
57582
- return formatLong.time({
57583
- width: 'long'
57584
- });
57469
+ return number + 'th';
57470
+ };
57585
57471
 
57586
- case 'pppp':
57587
- default:
57588
- return formatLong.time({
57589
- width: 'full'
57590
- });
57591
- }
57592
- }
57472
+ var _lib_localize_localize = {
57473
+ ordinalNumber: _lib_localize_ordinalNumber,
57474
+ era: buildLocalizeFn({
57475
+ values: _lib_localize_eraValues,
57476
+ defaultWidth: 'wide'
57477
+ }),
57478
+ quarter: buildLocalizeFn({
57479
+ values: _lib_localize_quarterValues,
57480
+ defaultWidth: 'wide',
57481
+ argumentCallback: function argumentCallback(quarter) {
57482
+ return quarter - 1;
57483
+ }
57484
+ }),
57485
+ month: buildLocalizeFn({
57486
+ values: _lib_localize_monthValues,
57487
+ defaultWidth: 'wide'
57488
+ }),
57489
+ day: buildLocalizeFn({
57490
+ values: _lib_localize_dayValues,
57491
+ defaultWidth: 'wide'
57492
+ }),
57493
+ dayPeriod: buildLocalizeFn({
57494
+ values: _lib_localize_dayPeriodValues,
57495
+ defaultWidth: 'wide',
57496
+ formattingValues: _lib_localize_formattingDayPeriodValues,
57497
+ defaultFormattingWidth: 'wide'
57498
+ })
57499
+ };
57500
+ /* harmony default export */ const locale_en_US_lib_localize = (_lib_localize_localize);
57501
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js
57593
57502
 
57594
- function longFormatters_dateTimeLongFormatter(pattern, formatLong) {
57595
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
57596
- var datePattern = matchResult[1];
57597
- var timePattern = matchResult[2];
57598
57503
 
57599
- if (!timePattern) {
57600
- return longFormatters_dateLongFormatter(pattern, formatLong);
57504
+ var _lib_match_matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
57505
+ var _lib_match_parseOrdinalNumberPattern = /\d+/i;
57506
+ var _lib_match_matchEraPatterns = {
57507
+ narrow: /^(b|a)/i,
57508
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
57509
+ wide: /^(before christ|before common era|anno domini|common era)/i
57510
+ };
57511
+ var _lib_match_parseEraPatterns = {
57512
+ any: [/^b/i, /^(a|c)/i]
57513
+ };
57514
+ var _lib_match_matchQuarterPatterns = {
57515
+ narrow: /^[1234]/i,
57516
+ abbreviated: /^q[1234]/i,
57517
+ wide: /^[1234](th|st|nd|rd)? quarter/i
57518
+ };
57519
+ var _lib_match_parseQuarterPatterns = {
57520
+ any: [/1/i, /2/i, /3/i, /4/i]
57521
+ };
57522
+ var _lib_match_matchMonthPatterns = {
57523
+ narrow: /^[jfmasond]/i,
57524
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
57525
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
57526
+ };
57527
+ var _lib_match_parseMonthPatterns = {
57528
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
57529
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
57530
+ };
57531
+ var _lib_match_matchDayPatterns = {
57532
+ narrow: /^[smtwf]/i,
57533
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
57534
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
57535
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
57536
+ };
57537
+ var _lib_match_parseDayPatterns = {
57538
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
57539
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
57540
+ };
57541
+ var _lib_match_matchDayPeriodPatterns = {
57542
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
57543
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
57544
+ };
57545
+ var _lib_match_parseDayPeriodPatterns = {
57546
+ any: {
57547
+ am: /^a/i,
57548
+ pm: /^p/i,
57549
+ midnight: /^mi/i,
57550
+ noon: /^no/i,
57551
+ morning: /morning/i,
57552
+ afternoon: /afternoon/i,
57553
+ evening: /evening/i,
57554
+ night: /night/i
57601
57555
  }
57556
+ };
57557
+ var _lib_match_match = {
57558
+ ordinalNumber: buildMatchPatternFn({
57559
+ matchPattern: _lib_match_matchOrdinalNumberPattern,
57560
+ parsePattern: _lib_match_parseOrdinalNumberPattern,
57561
+ valueCallback: function valueCallback(value) {
57562
+ return parseInt(value, 10);
57563
+ }
57564
+ }),
57565
+ era: buildMatchFn({
57566
+ matchPatterns: _lib_match_matchEraPatterns,
57567
+ defaultMatchWidth: 'wide',
57568
+ parsePatterns: _lib_match_parseEraPatterns,
57569
+ defaultParseWidth: 'any'
57570
+ }),
57571
+ quarter: buildMatchFn({
57572
+ matchPatterns: _lib_match_matchQuarterPatterns,
57573
+ defaultMatchWidth: 'wide',
57574
+ parsePatterns: _lib_match_parseQuarterPatterns,
57575
+ defaultParseWidth: 'any',
57576
+ valueCallback: function valueCallback(index) {
57577
+ return index + 1;
57578
+ }
57579
+ }),
57580
+ month: buildMatchFn({
57581
+ matchPatterns: _lib_match_matchMonthPatterns,
57582
+ defaultMatchWidth: 'wide',
57583
+ parsePatterns: _lib_match_parseMonthPatterns,
57584
+ defaultParseWidth: 'any'
57585
+ }),
57586
+ day: buildMatchFn({
57587
+ matchPatterns: _lib_match_matchDayPatterns,
57588
+ defaultMatchWidth: 'wide',
57589
+ parsePatterns: _lib_match_parseDayPatterns,
57590
+ defaultParseWidth: 'any'
57591
+ }),
57592
+ dayPeriod: buildMatchFn({
57593
+ matchPatterns: _lib_match_matchDayPeriodPatterns,
57594
+ defaultMatchWidth: 'any',
57595
+ parsePatterns: _lib_match_parseDayPeriodPatterns,
57596
+ defaultParseWidth: 'any'
57597
+ })
57598
+ };
57599
+ /* harmony default export */ const locale_en_US_lib_match = (_lib_match_match);
57600
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/index.js
57602
57601
 
57603
- var dateTimeFormat;
57604
-
57605
- switch (datePattern) {
57606
- case 'P':
57607
- dateTimeFormat = formatLong.dateTime({
57608
- width: 'short'
57609
- });
57610
- break;
57611
57602
 
57612
- case 'PP':
57613
- dateTimeFormat = formatLong.dateTime({
57614
- width: 'medium'
57615
- });
57616
- break;
57617
57603
 
57618
- case 'PPP':
57619
- dateTimeFormat = formatLong.dateTime({
57620
- width: 'long'
57621
- });
57622
- break;
57623
57604
 
57624
- case 'PPPP':
57625
- default:
57626
- dateTimeFormat = formatLong.dateTime({
57627
- width: 'full'
57628
- });
57629
- break;
57630
- }
57631
57605
 
57632
- return dateTimeFormat.replace('{{date}}', longFormatters_dateLongFormatter(datePattern, formatLong)).replace('{{time}}', longFormatters_timeLongFormatter(timePattern, formatLong));
57633
- }
57634
57606
 
57635
- var longFormatters_longFormatters = {
57636
- p: longFormatters_timeLongFormatter,
57637
- P: longFormatters_dateTimeLongFormatter
57638
- };
57639
- /* harmony default export */ const _lib_format_longFormatters = (longFormatters_longFormatters);
57640
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
57641
57607
  /**
57642
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
57643
- * They usually appear for dates that denote time before the timezones were introduced
57644
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
57645
- * and GMT+01:00:00 after that date)
57646
- *
57647
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
57648
- * which would lead to incorrect calculations.
57649
- *
57650
- * This function returns the timezone offset in milliseconds that takes seconds in account.
57608
+ * @type {Locale}
57609
+ * @category Locales
57610
+ * @summary English locale (United States).
57611
+ * @language English
57612
+ * @iso-639-2 eng
57613
+ * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
57614
+ * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
57651
57615
  */
57652
- function getTimezoneOffsetInMilliseconds_getTimezoneOffsetInMilliseconds(date) {
57653
- var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
57654
- utcDate.setUTCFullYear(date.getFullYear());
57655
- return date.getTime() - utcDate.getTime();
57656
- }
57657
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/_lib/protectedTokens/index.js
57658
- var protectedTokens_protectedDayOfYearTokens = ['D', 'DD'];
57659
- var protectedTokens_protectedWeekYearTokens = ['YY', 'YYYY'];
57660
- function protectedTokens_isProtectedDayOfYearToken(token) {
57661
- return protectedTokens_protectedDayOfYearTokens.indexOf(token) !== -1;
57662
- }
57663
- function protectedTokens_isProtectedWeekYearToken(token) {
57664
- return protectedTokens_protectedWeekYearTokens.indexOf(token) !== -1;
57665
- }
57666
- function protectedTokens_throwProtectedError(token, format, input) {
57667
- if (token === 'YYYY') {
57668
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
57669
- } else if (token === 'YY') {
57670
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
57671
- } else if (token === 'D') {
57672
- throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
57673
- } else if (token === 'DD') {
57674
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
57616
+ var locale_en_US_locale = {
57617
+ code: 'en-US',
57618
+ formatDistance: locale_en_US_lib_formatDistance,
57619
+ formatLong: locale_en_US_lib_formatLong,
57620
+ formatRelative: locale_en_US_lib_formatRelative,
57621
+ localize: locale_en_US_lib_localize,
57622
+ match: locale_en_US_lib_match,
57623
+ options: {
57624
+ weekStartsOn: 0
57625
+ /* Sunday */
57626
+ ,
57627
+ firstWeekContainsDate: 1
57675
57628
  }
57676
- }
57677
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/format/index.js
57629
+ };
57630
+ /* harmony default export */ const locale_en_US = (locale_en_US_locale);
57631
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/defaultLocale/index.js
57632
+
57633
+ /* harmony default export */ const esm_lib_defaultLocale = (locale_en_US);
57634
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/format/index.js
57635
+
57678
57636
 
57679
57637
 
57680
57638
 
@@ -57712,7 +57670,7 @@ var format_unescapedLatinCharacterRegExp = /[a-zA-Z]/;
57712
57670
  * Return the formatted date string in the given format. The result may vary by locale.
57713
57671
  *
57714
57672
  * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
57715
- * > See: https://git.io/fxCyr
57673
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57716
57674
  *
57717
57675
  * The characters wrapped between two single quotes characters (') are escaped.
57718
57676
  * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
@@ -57948,30 +57906,10 @@ var format_unescapedLatinCharacterRegExp = /[a-zA-Z]/;
57948
57906
  * - `p`: long localized time
57949
57907
  *
57950
57908
  * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
57951
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
57909
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57952
57910
  *
57953
57911
  * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
57954
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
57955
- *
57956
- * ### v2.0.0 breaking changes:
57957
- *
57958
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
57959
- *
57960
- * - The second argument is now required for the sake of explicitness.
57961
- *
57962
- * ```javascript
57963
- * // Before v2.0.0
57964
- * format(new Date(2016, 0, 1))
57965
- *
57966
- * // v2.0.0 onward
57967
- * format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx")
57968
- * ```
57969
- *
57970
- * - New format string API for `format` function
57971
- * which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).
57972
- * See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.
57973
- *
57974
- * - Characters are now escaped using single quote symbols (`'`) instead of square brackets.
57912
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57975
57913
  *
57976
57914
  * @param {Date|Number} date - the original date
57977
57915
  * @param {String} format - the string of tokens
@@ -57980,9 +57918,9 @@ var format_unescapedLatinCharacterRegExp = /[a-zA-Z]/;
57980
57918
  * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
57981
57919
  * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
57982
57920
  * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
57983
- * see: https://git.io/fxCyr
57921
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57984
57922
  * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
57985
- * see: https://git.io/fxCyr
57923
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57986
57924
  * @returns {String} the formatted date string
57987
57925
  * @throws {TypeError} 2 arguments required
57988
57926
  * @throws {RangeError} `date` must not be Invalid Date
@@ -57990,47 +57928,45 @@ var format_unescapedLatinCharacterRegExp = /[a-zA-Z]/;
57990
57928
  * @throws {RangeError} `options.locale` must contain `formatLong` property
57991
57929
  * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
57992
57930
  * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
57993
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
57994
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
57995
- * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
57996
- * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
57931
+ * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57932
+ * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57933
+ * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57934
+ * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
57997
57935
  * @throws {RangeError} format string contains an unescaped latin alphabet character
57998
57936
  *
57999
57937
  * @example
58000
57938
  * // Represent 11 February 2014 in middle-endian format:
58001
- * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
57939
+ * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
58002
57940
  * //=> '02/11/2014'
58003
57941
  *
58004
57942
  * @example
58005
57943
  * // Represent 2 July 2014 in Esperanto:
58006
57944
  * import { eoLocale } from 'date-fns/locale/eo'
58007
- * var result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
57945
+ * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
58008
57946
  * locale: eoLocale
58009
57947
  * })
58010
57948
  * //=> '2-a de julio 2014'
58011
57949
  *
58012
57950
  * @example
58013
57951
  * // Escape string by single quote characters:
58014
- * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
57952
+ * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
58015
57953
  * //=> "3 o'clock"
58016
57954
  */
58017
57955
 
58018
- function esm_format_format(dirtyDate, dirtyFormatStr, dirtyOptions) {
57956
+ function esm_format_format(dirtyDate, dirtyFormatStr, options) {
57957
+ var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
57958
+
58019
57959
  requiredArgs(2, arguments);
58020
57960
  var formatStr = String(dirtyFormatStr);
58021
- var options = dirtyOptions || {};
58022
- var locale = options.locale || locale_en_US;
58023
- var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
58024
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
58025
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
57961
+ var defaultOptions = getDefaultOptions();
57962
+ var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : esm_lib_defaultLocale;
57963
+ var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
58026
57964
 
58027
57965
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
58028
57966
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
58029
57967
  }
58030
57968
 
58031
- var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
58032
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
58033
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
57969
+ var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
58034
57970
 
58035
57971
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
58036
57972
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
@@ -58066,7 +58002,7 @@ function esm_format_format(dirtyDate, dirtyFormatStr, dirtyOptions) {
58066
58002
 
58067
58003
  if (firstCharacter === 'p' || firstCharacter === 'P') {
58068
58004
  var longFormatter = _lib_format_longFormatters[firstCharacter];
58069
- return longFormatter(substring, locale.formatLong, formatterOptions);
58005
+ return longFormatter(substring, locale.formatLong);
58070
58006
  }
58071
58007
 
58072
58008
  return substring;
@@ -58085,12 +58021,12 @@ function esm_format_format(dirtyDate, dirtyFormatStr, dirtyOptions) {
58085
58021
  var formatter = _lib_format_formatters[firstCharacter];
58086
58022
 
58087
58023
  if (formatter) {
58088
- if (!options.useAdditionalWeekYearTokens && protectedTokens_isProtectedWeekYearToken(substring)) {
58089
- protectedTokens_throwProtectedError(substring, dirtyFormatStr, dirtyDate);
58024
+ if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && protectedTokens_isProtectedWeekYearToken(substring)) {
58025
+ protectedTokens_throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
58090
58026
  }
58091
58027
 
58092
- if (!options.useAdditionalDayOfYearTokens && protectedTokens_isProtectedDayOfYearToken(substring)) {
58093
- protectedTokens_throwProtectedError(substring, dirtyFormatStr, dirtyDate);
58028
+ if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && protectedTokens_isProtectedDayOfYearToken(substring)) {
58029
+ protectedTokens_throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
58094
58030
  }
58095
58031
 
58096
58032
  return formatter(utcDate, substring, locale.localize, formatterOptions);
@@ -58106,9 +58042,15 @@ function esm_format_format(dirtyDate, dirtyFormatStr, dirtyOptions) {
58106
58042
  }
58107
58043
 
58108
58044
  function format_cleanEscapedString(input) {
58109
- return input.match(format_escapedStringRegExp)[1].replace(format_doubleQuoteRegExp, "'");
58045
+ var matched = input.match(format_escapedStringRegExp);
58046
+
58047
+ if (!matched) {
58048
+ return input;
58049
+ }
58050
+
58051
+ return matched[1].replace(format_doubleQuoteRegExp, "'");
58110
58052
  }
58111
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/startOfDay/index.js
58053
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/startOfDay/index.js
58112
58054
 
58113
58055
 
58114
58056
  /**
@@ -58120,10 +58062,6 @@ function format_cleanEscapedString(input) {
58120
58062
  * Return the start of a day for the given date.
58121
58063
  * The result will be in the local timezone.
58122
58064
  *
58123
- * ### v2.0.0 breaking changes:
58124
- *
58125
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
58126
- *
58127
58065
  * @param {Date|Number} date - the original date
58128
58066
  * @returns {Date} the start of a day
58129
58067
  * @throws {TypeError} 1 argument required
@@ -58140,7 +58078,7 @@ function startOfDay_startOfDay(dirtyDate) {
58140
58078
  date.setHours(0, 0, 0, 0);
58141
58079
  return date;
58142
58080
  }
58143
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/isSameDay/index.js
58081
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/isSameDay/index.js
58144
58082
 
58145
58083
 
58146
58084
  /**
@@ -58151,10 +58089,6 @@ function startOfDay_startOfDay(dirtyDate) {
58151
58089
  * @description
58152
58090
  * Are the given dates in the same day (and year and month)?
58153
58091
  *
58154
- * ### v2.0.0 breaking changes:
58155
- *
58156
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
58157
- *
58158
58092
  * @param {Date|Number} dateLeft - the first date to check
58159
58093
  * @param {Date|Number} dateRight - the second date to check
58160
58094
  * @returns {Boolean} the dates are in the same day (and year and month)
@@ -58162,17 +58096,17 @@ function startOfDay_startOfDay(dirtyDate) {
58162
58096
  *
58163
58097
  * @example
58164
58098
  * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
58165
- * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
58099
+ * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
58166
58100
  * //=> true
58167
- *
58101
+ *
58168
58102
  * @example
58169
58103
  * // Are 4 September and 4 October in the same day?
58170
- * var result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
58104
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
58171
58105
  * //=> false
58172
- *
58106
+ *
58173
58107
  * @example
58174
58108
  * // Are 4 September, 2014 and 4 September, 2015 in the same day?
58175
- * var result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
58109
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
58176
58110
  * //=> false
58177
58111
  */
58178
58112
 
@@ -60005,7 +59939,7 @@ function isBetween(day, _ref) {
60005
59939
  end: e
60006
59940
  }) && !isEqual_isEqual(d, s) && !isEqual_isEqual(d, e);
60007
59941
  }
60008
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/constants/index.js
59942
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/constants/index.js
60009
59943
  /**
60010
59944
  * Days in 1 week.
60011
59945
  *
@@ -60015,6 +59949,20 @@ function isBetween(day, _ref) {
60015
59949
  * @default
60016
59950
  */
60017
59951
  var constants_daysInWeek = 7;
59952
+ /**
59953
+ * Days in 1 year
59954
+ * One years equals 365.2425 days according to the formula:
59955
+ *
59956
+ * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.
59957
+ * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
59958
+ *
59959
+ * @name daysInYear
59960
+ * @constant
59961
+ * @type {number}
59962
+ * @default
59963
+ */
59964
+
59965
+ var constants_daysInYear = 365.2425;
60018
59966
  /**
60019
59967
  * Maximum allowed time.
60020
59968
  *
@@ -60125,7 +60073,57 @@ var constants_secondsInHour = 3600;
60125
60073
  */
60126
60074
 
60127
60075
  var constants_secondsInMinute = 60;
60128
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/parseISO/index.js
60076
+ /**
60077
+ * Seconds in 1 day
60078
+ *
60079
+ * @name secondsInDay
60080
+ * @constant
60081
+ * @type {number}
60082
+ * @default
60083
+ */
60084
+
60085
+ var constants_secondsInDay = constants_secondsInHour * 24;
60086
+ /**
60087
+ * Seconds in 1 week
60088
+ *
60089
+ * @name secondsInWeek
60090
+ * @constant
60091
+ * @type {number}
60092
+ * @default
60093
+ */
60094
+
60095
+ var constants_secondsInWeek = constants_secondsInDay * 7;
60096
+ /**
60097
+ * Seconds in 1 year
60098
+ *
60099
+ * @name secondsInYear
60100
+ * @constant
60101
+ * @type {number}
60102
+ * @default
60103
+ */
60104
+
60105
+ var constants_secondsInYear = constants_secondsInDay * constants_daysInYear;
60106
+ /**
60107
+ * Seconds in 1 month
60108
+ *
60109
+ * @name secondsInMonth
60110
+ * @constant
60111
+ * @type {number}
60112
+ * @default
60113
+ */
60114
+
60115
+ var constants_secondsInMonth = constants_secondsInYear / 12;
60116
+ /**
60117
+ * Seconds in 1 quarter
60118
+ *
60119
+ * @name secondsInQuarter
60120
+ * @constant
60121
+ * @type {number}
60122
+ * @default
60123
+ */
60124
+
60125
+ var constants_secondsInQuarter = constants_secondsInMonth * 3;
60126
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/parseISO/index.js
60129
60127
 
60130
60128
 
60131
60129
 
@@ -60143,31 +60141,6 @@ var constants_secondsInMinute = 60;
60143
60141
  * If the argument isn't a string, the function cannot parse the string or
60144
60142
  * the values are invalid, it returns Invalid Date.
60145
60143
  *
60146
- * ### v2.0.0 breaking changes:
60147
- *
60148
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
60149
- *
60150
- * - The previous `parse` implementation was renamed to `parseISO`.
60151
- *
60152
- * ```javascript
60153
- * // Before v2.0.0
60154
- * parse('2016-01-01')
60155
- *
60156
- * // v2.0.0 onward
60157
- * parseISO('2016-01-01')
60158
- * ```
60159
- *
60160
- * - `parseISO` now validates separate date and time values in ISO-8601 strings
60161
- * and returns `Invalid Date` if the date is invalid.
60162
- *
60163
- * ```javascript
60164
- * parseISO('2018-13-32')
60165
- * //=> Invalid Date
60166
- * ```
60167
- *
60168
- * - `parseISO` now doesn't fall back to `new Date` constructor
60169
- * if it fails to parse a string argument. Instead, it returns `Invalid Date`.
60170
- *
60171
60144
  * @param {String} argument - the value to convert
60172
60145
  * @param {Object} [options] - an object with options.
60173
60146
  * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format
@@ -60187,10 +60160,11 @@ var constants_secondsInMinute = 60;
60187
60160
  * //=> Fri Apr 11 2014 00:00:00
60188
60161
  */
60189
60162
 
60190
- function parseISO_parseISO(argument, dirtyOptions) {
60163
+ function parseISO_parseISO(argument, options) {
60164
+ var _options$additionalDi;
60165
+
60191
60166
  requiredArgs(1, arguments);
60192
- var options = dirtyOptions || {};
60193
- var additionalDigits = options.additionalDigits == null ? 2 : toInteger(options.additionalDigits);
60167
+ var additionalDigits = toInteger((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2);
60194
60168
 
60195
60169
  if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {
60196
60170
  throw new RangeError('additionalDigits must be 0, 1 or 2');
@@ -62552,7 +62526,7 @@ const getYears = () => {
62552
62526
  };
62553
62527
 
62554
62528
  /* harmony default export */ const _utils_getYears = (getYears);
62555
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/getDaysInMonth/index.js
62529
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/getDaysInMonth/index.js
62556
62530
 
62557
62531
 
62558
62532
  /**
@@ -62563,10 +62537,6 @@ const getYears = () => {
62563
62537
  * @description
62564
62538
  * Get the number of days in a month of the given date.
62565
62539
  *
62566
- * ### v2.0.0 breaking changes:
62567
- *
62568
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
62569
- *
62570
62540
  * @param {Date|Number} date - the given date
62571
62541
  * @returns {Number} the number of days in a month
62572
62542
  * @throws {TypeError} 1 argument required
@@ -62587,7 +62557,7 @@ function getDaysInMonth_getDaysInMonth(dirtyDate) {
62587
62557
  lastDayOfMonth.setHours(0, 0, 0, 0);
62588
62558
  return lastDayOfMonth.getDate();
62589
62559
  }
62590
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/setMonth/index.js
62560
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/setMonth/index.js
62591
62561
 
62592
62562
 
62593
62563
 
@@ -62600,10 +62570,6 @@ function getDaysInMonth_getDaysInMonth(dirtyDate) {
62600
62570
  * @description
62601
62571
  * Set the month to the given date.
62602
62572
  *
62603
- * ### v2.0.0 breaking changes:
62604
- *
62605
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
62606
- *
62607
62573
  * @param {Date|Number} date - the date to be changed
62608
62574
  * @param {Number} month - the month of the new date
62609
62575
  * @returns {Date} the new date with the month set
@@ -62630,7 +62596,9 @@ function setMonth_setMonth(dirtyDate, dirtyMonth) {
62630
62596
  date.setMonth(month, Math.min(day, daysInMonth));
62631
62597
  return date;
62632
62598
  }
62633
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/set/index.js
62599
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/set/index.js
62600
+ function esm_set_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { esm_set_typeof = function _typeof(obj) { return typeof obj; }; } else { esm_set_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return esm_set_typeof(obj); }
62601
+
62634
62602
 
62635
62603
 
62636
62604
 
@@ -62666,18 +62634,18 @@ function setMonth_setMonth(dirtyDate, dirtyMonth) {
62666
62634
  *
62667
62635
  * @example
62668
62636
  * // Transform 1 September 2014 into 20 October 2015 in a single line:
62669
- * var result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
62637
+ * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
62670
62638
  * //=> Tue Oct 20 2015 00:00:00
62671
62639
  *
62672
62640
  * @example
62673
62641
  * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:
62674
- * var result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
62642
+ * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
62675
62643
  * //=> Mon Sep 01 2014 12:23:45
62676
62644
  */
62677
62645
  function esm_set_set(dirtyDate, values) {
62678
62646
  requiredArgs(2, arguments);
62679
62647
 
62680
- if (typeof values !== 'object' || values === null) {
62648
+ if (esm_set_typeof(values) !== 'object' || values === null) {
62681
62649
  throw new RangeError('values parameter must be an object');
62682
62650
  }
62683
62651
 
@@ -62717,7 +62685,7 @@ function esm_set_set(dirtyDate, values) {
62717
62685
 
62718
62686
  return date;
62719
62687
  }
62720
- ;// CONCATENATED MODULE: ../../node_modules/date-fns/esm/setYear/index.js
62688
+ ;// CONCATENATED MODULE: ./node_modules/date-fns/esm/setYear/index.js
62721
62689
 
62722
62690
 
62723
62691
 
@@ -62729,10 +62697,6 @@ function esm_set_set(dirtyDate, values) {
62729
62697
  * @description
62730
62698
  * Set the year to the given date.
62731
62699
  *
62732
- * ### v2.0.0 breaking changes:
62733
- *
62734
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
62735
- *
62736
62700
  * @param {Date|Number} date - the date to be changed
62737
62701
  * @param {Number} year - the year of the new date
62738
62702
  * @returns {Date} the new date with the year set
@@ -92153,6 +92117,9 @@ class Table extends BaseComponent {
92153
92117
  const columns = this.getColumns(props.columns, props.children);
92154
92118
  const cachedflattenColumns = flattenColumns(columns);
92155
92119
  const queries = table_foundation.initColumnsFilteredValueAndSorterOrder(cloneDeep(cachedflattenColumns));
92120
+ const filteredSortedDataSource = this.foundation.getFilteredSortedDataSource(this.props.dataSource, queries);
92121
+ const newPagination = isPlainObject_default()(this.props.pagination) ? this.props.pagination : {};
92122
+ const pageData = this.foundation.getCurrentPageData(filteredSortedDataSource, newPagination, queries);
92156
92123
  this.state = {
92157
92124
  /**
92158
92125
  * Cached props
@@ -92166,11 +92133,11 @@ class Table extends BaseComponent {
92166
92133
  * State calculated based on prop
92167
92134
  */
92168
92135
  queries,
92169
- dataSource: [],
92136
+ dataSource: pageData.dataSource,
92170
92137
  flattenData: [],
92171
92138
  expandedRowKeys: [...(props.expandedRowKeys || []), ...(props.defaultExpandedRowKeys || [])],
92172
92139
  rowSelection: props.rowSelection ? isObject_default()(props.rowSelection) ? Object.assign({}, props.rowSelection) : {} : null,
92173
- pagination: props.pagination && typeof props.pagination === 'object' ? Object.assign({}, props.pagination) : props.pagination || false,
92140
+ pagination: pageData.pagination,
92174
92141
 
92175
92142
  /**
92176
92143
  * Internal state
@@ -92754,12 +92721,11 @@ class Table extends BaseComponent {
92754
92721
  * TODO: After merging issue 1007, you can place it in the constructor to complete
92755
92722
  * The reason is that #1007 exposes the parameters required by getCurrentPageData in the constructor
92756
92723
  */
92757
-
92758
- if (isNull_default()(dataSource)) {
92759
- const pageData = this.foundation.getCurrentPageData(this.props.dataSource);
92760
- dataSource = pageData.dataSource;
92761
- pagination = pageData.pagination;
92762
- }
92724
+ // if (isNull(dataSource)) {
92725
+ // const pageData: BasePageData<RecordType> = this.foundation.getCurrentPageData(this.props.dataSource);
92726
+ // dataSource = pageData.dataSource;
92727
+ // pagination = pageData.pagination;
92728
+ // }
92763
92729
 
92764
92730
  const props = Object.assign(Object.assign(Object.assign({}, rest), this.state), {
92765
92731
  // props not in rest
@@ -108155,7 +108121,7 @@ class FormInputGroup extends external_root_React_commonjs2_react_commonjs_react_
108155
108121
  rest = group_rest(_a, ["children", "label", "extraText", "extraTextPosition"]);
108156
108122
 
108157
108123
  const updater = this.context;
108158
- const formProps = updater.getFormProps(['labelPosition', 'labelWidth', 'labelAlign', 'showValidateIcon', 'wrapperCol', 'labelCol']);
108124
+ const formProps = updater.getFormProps(['labelPosition', 'labelWidth', 'labelAlign', 'showValidateIcon', 'wrapperCol', 'labelCol', 'disabled']);
108159
108125
  const labelPosition = this.props.labelPosition || formProps.labelPosition;
108160
108126
  const groupFieldSet = [];
108161
108127
  const inner = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(children, child => {
@@ -108179,7 +108145,9 @@ class FormInputGroup extends external_root_React_commonjs2_react_commonjs_react_
108179
108145
  const appendCol = labelCol && wrapperCol;
108180
108146
  const labelColCls = labelCol ? `${group_prefix}-col-${labelAlign}` : '';
108181
108147
  const labelContent = this.renderLabel(label, formProps);
108182
- const inputGroupContent = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(inputGroup, Object.assign({}, rest), inner);
108148
+ const inputGroupContent = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(inputGroup, Object.assign({
108149
+ disabled: formProps.disabled
108150
+ }, rest), inner);
108183
108151
  const groupErrorContent = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(GroupError, {
108184
108152
  fieldSet: groupFieldSet,
108185
108153
  showValidateIcon: formProps.showValidateIcon,
@@ -111612,6 +111580,7 @@ class image_Image extends BaseComponent {
111612
111580
  previewVisible: false
111613
111581
  };
111614
111582
  this.foundation = new ImageFoundation(this.adapter);
111583
+ this.imgRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef();
111615
111584
  }
111616
111585
 
111617
111586
  get adapter() {
@@ -111641,6 +111610,25 @@ class image_Image extends BaseComponent {
111641
111610
  return willUpdateStates;
111642
111611
  }
111643
111612
 
111613
+ componentDidMount() {
111614
+ this.observeImage();
111615
+ }
111616
+
111617
+ componentDidUpdate(prevProps, prevState) {
111618
+ prevProps.src !== this.props.src && this.observeImage();
111619
+ }
111620
+
111621
+ observeImage() {
111622
+ if (!this.isLazyLoad()) {
111623
+ return;
111624
+ }
111625
+
111626
+ const {
111627
+ previewObserver
111628
+ } = this.context;
111629
+ previewObserver.observe(this.imgRef.current);
111630
+ }
111631
+
111644
111632
  isInGroup() {
111645
111633
  return Boolean(this.context && this.context.isGroup);
111646
111634
  }
@@ -111695,7 +111683,9 @@ class image_Image extends BaseComponent {
111695
111683
  style: outerStyle,
111696
111684
  className: outerCls,
111697
111685
  onClick: this.handleClick
111698
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("img", Object.assign({}, restProps, {
111686
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("img", Object.assign({
111687
+ ref: this.imgRef
111688
+ }, restProps, {
111699
111689
  src: this.isInGroup() && this.isLazyLoad() ? undefined : src,
111700
111690
  "data-src": src,
111701
111691
  alt: alt,
@@ -111879,19 +111869,7 @@ class Preview extends BaseComponent {
111879
111869
  length: 4
111880
111870
  });
111881
111871
  this.previewRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef();
111882
- }
111883
-
111884
- get adapter() {
111885
- return Object.assign({}, super.adapter);
111886
- }
111887
-
111888
- componentDidMount() {
111889
- const {
111890
- lazyLoadMargin
111891
- } = this.props;
111892
- const allElement = document.querySelectorAll(`.${preview_prefixCls}-img`); // use IntersectionObserver to lazy load image
111893
-
111894
- const observer = new IntersectionObserver(entries => {
111872
+ this.previewObserver = new IntersectionObserver(entries => {
111895
111873
  entries.forEach(item => {
111896
111874
  var _a;
111897
111875
 
@@ -111899,14 +111877,18 @@ class Preview extends BaseComponent {
111899
111877
 
111900
111878
  if (item.isIntersecting && src) {
111901
111879
  item.target.src = src;
111902
- observer.unobserve(item.target);
111880
+ item.target.removeAttribute("data-src");
111881
+ this.previewObserver.unobserve(item.target);
111903
111882
  }
111904
111883
  });
111905
111884
  }, {
111906
111885
  root: document.querySelector(`#${this.previewGroupId}`),
111907
- rootMargin: lazyLoadMargin
111886
+ rootMargin: props.lazyLoadMargin
111908
111887
  });
111909
- allElement.forEach(item => observer.observe(item));
111888
+ }
111889
+
111890
+ get adapter() {
111891
+ return Object.assign({}, super.adapter);
111910
111892
  }
111911
111893
 
111912
111894
  static getDerivedStateFromProps(props, state) {
@@ -111951,6 +111933,7 @@ class Preview extends BaseComponent {
111951
111933
  currentIndex,
111952
111934
  visible,
111953
111935
  lazyLoad,
111936
+ previewObserver: this.previewObserver,
111954
111937
  setCurrentIndex: this.handleCurrentIndexChange,
111955
111938
  handleVisibleChange: this.handleVisibleChange
111956
111939
  }