@nulogy/components 8.8.0 → 8.9.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.
- package/dist/main.js +396 -282
- package/dist/main.module.js +396 -282
- package/package.json +4 -5
package/dist/main.module.js
CHANGED
|
@@ -27742,7 +27742,7 @@ function toInteger$1(dirtyNumber) {
|
|
|
27742
27742
|
|
|
27743
27743
|
function requiredArgs$1(required, args) {
|
|
27744
27744
|
if (args.length < required) {
|
|
27745
|
-
throw new TypeError(required + ' argument' + required > 1 ? 's' : '' + ' required, but only ' + args.length + ' present');
|
|
27745
|
+
throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
|
|
27746
27746
|
}
|
|
27747
27747
|
}
|
|
27748
27748
|
|
|
@@ -27789,7 +27789,7 @@ function toDate$1(argument) {
|
|
|
27789
27789
|
} else {
|
|
27790
27790
|
if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
|
|
27791
27791
|
// eslint-disable-next-line no-console
|
|
27792
|
-
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
|
|
27792
|
+
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
|
|
27793
27793
|
|
|
27794
27794
|
console.warn(new Error().stack);
|
|
27795
27795
|
}
|
|
@@ -27811,13 +27811,13 @@ function toDate$1(argument) {
|
|
|
27811
27811
|
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
27812
27812
|
*
|
|
27813
27813
|
* @param {Date|Number} date - the date to be changed
|
|
27814
|
-
* @param {Number} amount - the amount of days to be added
|
|
27815
|
-
* @returns {Date} the new date with the days added
|
|
27816
|
-
* @throws {TypeError} 2 arguments required
|
|
27814
|
+
* @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
|
27815
|
+
* @returns {Date} - the new date with the days added
|
|
27816
|
+
* @throws {TypeError} - 2 arguments required
|
|
27817
27817
|
*
|
|
27818
27818
|
* @example
|
|
27819
27819
|
* // Add 10 days to 1 September 2014:
|
|
27820
|
-
*
|
|
27820
|
+
* const result = addDays(new Date(2014, 8, 1), 10)
|
|
27821
27821
|
* //=> Thu Sep 11 2014 00:00:00
|
|
27822
27822
|
*/
|
|
27823
27823
|
|
|
@@ -27825,6 +27825,16 @@ function addDays$1(dirtyDate, dirtyAmount) {
|
|
|
27825
27825
|
requiredArgs$1(2, arguments);
|
|
27826
27826
|
var date = toDate$1(dirtyDate);
|
|
27827
27827
|
var amount = toInteger$1(dirtyAmount);
|
|
27828
|
+
|
|
27829
|
+
if (isNaN(amount)) {
|
|
27830
|
+
return new Date(NaN);
|
|
27831
|
+
}
|
|
27832
|
+
|
|
27833
|
+
if (!amount) {
|
|
27834
|
+
// If 0 days, no-op to avoid changing times in the hour before end of DST
|
|
27835
|
+
return date;
|
|
27836
|
+
}
|
|
27837
|
+
|
|
27828
27838
|
date.setDate(date.getDate() + amount);
|
|
27829
27839
|
return date;
|
|
27830
27840
|
}
|
|
@@ -27842,13 +27852,13 @@ function addDays$1(dirtyDate, dirtyAmount) {
|
|
|
27842
27852
|
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
27843
27853
|
*
|
|
27844
27854
|
* @param {Date|Number} date - the date to be changed
|
|
27845
|
-
* @param {Number} amount - the amount of milliseconds to be added
|
|
27855
|
+
* @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`.
|
|
27846
27856
|
* @returns {Date} the new date with the milliseconds added
|
|
27847
27857
|
* @throws {TypeError} 2 arguments required
|
|
27848
27858
|
*
|
|
27849
27859
|
* @example
|
|
27850
27860
|
* // Add 750 milliseconds to 10 July 2014 12:45:30.000:
|
|
27851
|
-
*
|
|
27861
|
+
* const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
|
|
27852
27862
|
* //=> Thu Jul 10 2014 12:45:30.750
|
|
27853
27863
|
*/
|
|
27854
27864
|
|
|
@@ -27859,7 +27869,6 @@ function addMilliseconds$1(dirtyDate, dirtyAmount) {
|
|
|
27859
27869
|
return new Date(timestamp + amount);
|
|
27860
27870
|
}
|
|
27861
27871
|
|
|
27862
|
-
var MILLISECONDS_IN_MINUTE$3 = 60000;
|
|
27863
27872
|
/**
|
|
27864
27873
|
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
27865
27874
|
* They usually appear for dates that denote time before the timezones were introduced
|
|
@@ -27871,13 +27880,10 @@ var MILLISECONDS_IN_MINUTE$3 = 60000;
|
|
|
27871
27880
|
*
|
|
27872
27881
|
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
|
27873
27882
|
*/
|
|
27874
|
-
|
|
27875
|
-
|
|
27876
|
-
|
|
27877
|
-
|
|
27878
|
-
date.setSeconds(0, 0);
|
|
27879
|
-
var millisecondsPartOfTimezoneOffset = date.getTime() % MILLISECONDS_IN_MINUTE$3;
|
|
27880
|
-
return baseTimezoneOffset * MILLISECONDS_IN_MINUTE$3 + millisecondsPartOfTimezoneOffset;
|
|
27883
|
+
function getTimezoneOffsetInMilliseconds$1(date) {
|
|
27884
|
+
var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
27885
|
+
utcDate.setUTCFullYear(date.getFullYear());
|
|
27886
|
+
return date.getTime() - utcDate.getTime();
|
|
27881
27887
|
}
|
|
27882
27888
|
|
|
27883
27889
|
/**
|
|
@@ -27899,7 +27905,7 @@ function getTimezoneOffsetInMilliseconds$1(dirtyDate) {
|
|
|
27899
27905
|
*
|
|
27900
27906
|
* @example
|
|
27901
27907
|
* // The start of a day for 2 September 2014 11:55:00:
|
|
27902
|
-
*
|
|
27908
|
+
* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
|
|
27903
27909
|
* //=> Tue Sep 02 2014 00:00:00
|
|
27904
27910
|
*/
|
|
27905
27911
|
|
|
@@ -27932,14 +27938,14 @@ var MILLISECONDS_IN_DAY$3 = 86400000;
|
|
|
27932
27938
|
* @example
|
|
27933
27939
|
* // How many calendar days are between
|
|
27934
27940
|
* // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
|
|
27935
|
-
*
|
|
27941
|
+
* const result = differenceInCalendarDays(
|
|
27936
27942
|
* new Date(2012, 6, 2, 0, 0),
|
|
27937
27943
|
* new Date(2011, 6, 2, 23, 0)
|
|
27938
27944
|
* )
|
|
27939
27945
|
* //=> 366
|
|
27940
27946
|
* // How many calendar days are between
|
|
27941
27947
|
* // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
|
|
27942
|
-
*
|
|
27948
|
+
* const result = differenceInCalendarDays(
|
|
27943
27949
|
* new Date(2011, 6, 3, 0, 1),
|
|
27944
27950
|
* new Date(2011, 6, 2, 23, 59)
|
|
27945
27951
|
* )
|
|
@@ -27958,58 +27964,6 @@ function differenceInCalendarDays$1(dirtyDateLeft, dirtyDateRight) {
|
|
|
27958
27964
|
return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY$3);
|
|
27959
27965
|
}
|
|
27960
27966
|
|
|
27961
|
-
/**
|
|
27962
|
-
* @name compareAsc
|
|
27963
|
-
* @category Common Helpers
|
|
27964
|
-
* @summary Compare the two dates and return -1, 0 or 1.
|
|
27965
|
-
*
|
|
27966
|
-
* @description
|
|
27967
|
-
* Compare the two dates and return 1 if the first date is after the second,
|
|
27968
|
-
* -1 if the first date is before the second or 0 if dates are equal.
|
|
27969
|
-
*
|
|
27970
|
-
* ### v2.0.0 breaking changes:
|
|
27971
|
-
*
|
|
27972
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
27973
|
-
*
|
|
27974
|
-
* @param {Date|Number} dateLeft - the first date to compare
|
|
27975
|
-
* @param {Date|Number} dateRight - the second date to compare
|
|
27976
|
-
* @returns {Number} the result of the comparison
|
|
27977
|
-
* @throws {TypeError} 2 arguments required
|
|
27978
|
-
*
|
|
27979
|
-
* @example
|
|
27980
|
-
* // Compare 11 February 1987 and 10 July 1989:
|
|
27981
|
-
* var result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))
|
|
27982
|
-
* //=> -1
|
|
27983
|
-
*
|
|
27984
|
-
* @example
|
|
27985
|
-
* // Sort the array of dates:
|
|
27986
|
-
* var result = [
|
|
27987
|
-
* new Date(1995, 6, 2),
|
|
27988
|
-
* new Date(1987, 1, 11),
|
|
27989
|
-
* new Date(1989, 6, 10)
|
|
27990
|
-
* ].sort(compareAsc)
|
|
27991
|
-
* //=> [
|
|
27992
|
-
* // Wed Feb 11 1987 00:00:00,
|
|
27993
|
-
* // Mon Jul 10 1989 00:00:00,
|
|
27994
|
-
* // Sun Jul 02 1995 00:00:00
|
|
27995
|
-
* // ]
|
|
27996
|
-
*/
|
|
27997
|
-
|
|
27998
|
-
function compareAsc(dirtyDateLeft, dirtyDateRight) {
|
|
27999
|
-
requiredArgs$1(2, arguments);
|
|
28000
|
-
var dateLeft = toDate$1(dirtyDateLeft);
|
|
28001
|
-
var dateRight = toDate$1(dirtyDateRight);
|
|
28002
|
-
var diff = dateLeft.getTime() - dateRight.getTime();
|
|
28003
|
-
|
|
28004
|
-
if (diff < 0) {
|
|
28005
|
-
return -1;
|
|
28006
|
-
} else if (diff > 0) {
|
|
28007
|
-
return 1; // Return 0 if diff is 0; return NaN if diff is NaN
|
|
28008
|
-
} else {
|
|
28009
|
-
return diff;
|
|
28010
|
-
}
|
|
28011
|
-
}
|
|
28012
|
-
|
|
28013
27967
|
/**
|
|
28014
27968
|
* @name isValid
|
|
28015
27969
|
* @category Common Helpers
|
|
@@ -28104,13 +28058,37 @@ function isSameDay$1(dirtyDateLeft, dirtyDateRight) {
|
|
|
28104
28058
|
return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
|
|
28105
28059
|
}
|
|
28106
28060
|
|
|
28061
|
+
// for accurate equality comparisons of UTC timestamps that end up
|
|
28062
|
+
// having the same representation in local time, e.g. one hour before
|
|
28063
|
+
// DST ends vs. the instant that DST ends.
|
|
28064
|
+
|
|
28065
|
+
function compareLocalAsc(dateLeft, dateRight) {
|
|
28066
|
+
var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds();
|
|
28067
|
+
|
|
28068
|
+
if (diff < 0) {
|
|
28069
|
+
return -1;
|
|
28070
|
+
} else if (diff > 0) {
|
|
28071
|
+
return 1; // Return 0 if diff is 0; return NaN if diff is NaN
|
|
28072
|
+
} else {
|
|
28073
|
+
return diff;
|
|
28074
|
+
}
|
|
28075
|
+
}
|
|
28107
28076
|
/**
|
|
28108
28077
|
* @name differenceInDays
|
|
28109
28078
|
* @category Day Helpers
|
|
28110
28079
|
* @summary Get the number of full days between the given dates.
|
|
28111
28080
|
*
|
|
28112
28081
|
* @description
|
|
28113
|
-
* Get the number of full day periods between
|
|
28082
|
+
* Get the number of full day periods between two dates. Fractional days are
|
|
28083
|
+
* truncated towards zero.
|
|
28084
|
+
*
|
|
28085
|
+
* One "full day" is the distance between a local time in one day to the same
|
|
28086
|
+
* local time on the next or previous day. A full day can sometimes be less than
|
|
28087
|
+
* or more than 24 hours if a daylight savings change happens between two dates.
|
|
28088
|
+
*
|
|
28089
|
+
* To ignore DST and only measure exact 24-hour periods, use this instead:
|
|
28090
|
+
* `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`.
|
|
28091
|
+
*
|
|
28114
28092
|
*
|
|
28115
28093
|
* ### v2.0.0 breaking changes:
|
|
28116
28094
|
*
|
|
@@ -28118,36 +28096,48 @@ function isSameDay$1(dirtyDateLeft, dirtyDateRight) {
|
|
|
28118
28096
|
*
|
|
28119
28097
|
* @param {Date|Number} dateLeft - the later date
|
|
28120
28098
|
* @param {Date|Number} dateRight - the earlier date
|
|
28121
|
-
* @returns {Number} the number of full days
|
|
28099
|
+
* @returns {Number} the number of full days according to the local timezone
|
|
28122
28100
|
* @throws {TypeError} 2 arguments required
|
|
28123
28101
|
*
|
|
28124
28102
|
* @example
|
|
28125
28103
|
* // How many full days are between
|
|
28126
28104
|
* // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
|
|
28127
|
-
*
|
|
28105
|
+
* const result = differenceInDays(
|
|
28128
28106
|
* new Date(2012, 6, 2, 0, 0),
|
|
28129
28107
|
* new Date(2011, 6, 2, 23, 0)
|
|
28130
28108
|
* )
|
|
28131
28109
|
* //=> 365
|
|
28132
|
-
* // How many days are between
|
|
28110
|
+
* // How many full days are between
|
|
28133
28111
|
* // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
|
|
28134
|
-
*
|
|
28112
|
+
* const result = differenceInDays(
|
|
28135
28113
|
* new Date(2011, 6, 3, 0, 1),
|
|
28136
28114
|
* new Date(2011, 6, 2, 23, 59)
|
|
28137
28115
|
* )
|
|
28138
28116
|
* //=> 0
|
|
28117
|
+
* // How many full days are between
|
|
28118
|
+
* // 1 March 2020 0:00 and 1 June 2020 0:00 ?
|
|
28119
|
+
* // Note: because local time is used, the
|
|
28120
|
+
* // result will always be 92 days, even in
|
|
28121
|
+
* // time zones where DST starts and the
|
|
28122
|
+
* // period has only 92*24-1 hours.
|
|
28123
|
+
* const result = differenceInDays(
|
|
28124
|
+
* new Date(2020, 5, 1),
|
|
28125
|
+
* new Date(2020, 2, 1)
|
|
28126
|
+
* )
|
|
28127
|
+
//=> 92
|
|
28139
28128
|
*/
|
|
28140
28129
|
|
|
28130
|
+
|
|
28141
28131
|
function differenceInDays(dirtyDateLeft, dirtyDateRight) {
|
|
28142
28132
|
requiredArgs$1(2, arguments);
|
|
28143
28133
|
var dateLeft = toDate$1(dirtyDateLeft);
|
|
28144
28134
|
var dateRight = toDate$1(dirtyDateRight);
|
|
28145
|
-
var sign =
|
|
28135
|
+
var sign = compareLocalAsc(dateLeft, dateRight);
|
|
28146
28136
|
var difference = Math.abs(differenceInCalendarDays$1(dateLeft, dateRight));
|
|
28147
28137
|
dateLeft.setDate(dateLeft.getDate() - sign * difference); // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full
|
|
28148
28138
|
// If so, result must be decreased by 1 in absolute value
|
|
28149
28139
|
|
|
28150
|
-
var isLastDayNotFull =
|
|
28140
|
+
var isLastDayNotFull = Number(compareLocalAsc(dateLeft, dateRight) === -sign);
|
|
28151
28141
|
var result = sign * (difference - isLastDayNotFull); // Prevent negative zero
|
|
28152
28142
|
|
|
28153
28143
|
return result === 0 ? 0 : result;
|
|
@@ -28183,6 +28173,14 @@ var formatDistanceLocale$9 = {
|
|
|
28183
28173
|
one: '1 day',
|
|
28184
28174
|
other: '{{count}} days'
|
|
28185
28175
|
},
|
|
28176
|
+
aboutXWeeks: {
|
|
28177
|
+
one: 'about 1 week',
|
|
28178
|
+
other: 'about {{count}} weeks'
|
|
28179
|
+
},
|
|
28180
|
+
xWeeks: {
|
|
28181
|
+
one: '1 week',
|
|
28182
|
+
other: '{{count}} weeks'
|
|
28183
|
+
},
|
|
28186
28184
|
aboutXMonths: {
|
|
28187
28185
|
one: 'about 1 month',
|
|
28188
28186
|
other: 'about {{count}} months'
|
|
@@ -28232,8 +28230,9 @@ function formatDistance$9(token, count, options) {
|
|
|
28232
28230
|
}
|
|
28233
28231
|
|
|
28234
28232
|
function buildFormatLongFn$1(args) {
|
|
28235
|
-
return function (
|
|
28236
|
-
var options =
|
|
28233
|
+
return function () {
|
|
28234
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28235
|
+
// TODO: Remove String()
|
|
28237
28236
|
var width = options.width ? String(options.width) : args.defaultWidth;
|
|
28238
28237
|
var format = args.formats[width] || args.formats[args.defaultWidth];
|
|
28239
28238
|
return format;
|
|
@@ -28303,7 +28302,8 @@ function buildLocalizeFn$1(args) {
|
|
|
28303
28302
|
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
|
28304
28303
|
}
|
|
28305
28304
|
|
|
28306
|
-
var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
|
|
28305
|
+
var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challange you to try to remove it!
|
|
28306
|
+
|
|
28307
28307
|
return valuesArray[index];
|
|
28308
28308
|
};
|
|
28309
28309
|
}
|
|
@@ -28316,12 +28316,12 @@ var eraValues$9 = {
|
|
|
28316
28316
|
var quarterValues$9 = {
|
|
28317
28317
|
narrow: ['1', '2', '3', '4'],
|
|
28318
28318
|
abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
28319
|
-
wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
|
|
28320
|
-
|
|
28321
|
-
|
|
28322
|
-
|
|
28319
|
+
wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
|
|
28320
|
+
}; // Note: in English, the names of days of the week and months are capitalized.
|
|
28321
|
+
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
|
|
28322
|
+
// Generally, formatted dates should look like they are in the middle of a sentence,
|
|
28323
|
+
// e.g. in Spanish language the weekdays and months should be in the lowercase.
|
|
28323
28324
|
|
|
28324
|
-
};
|
|
28325
28325
|
var monthValues$9 = {
|
|
28326
28326
|
narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
|
|
28327
28327
|
abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
@@ -28457,35 +28457,26 @@ var localize$9 = {
|
|
|
28457
28457
|
};
|
|
28458
28458
|
|
|
28459
28459
|
function buildMatchPatternFn$1(args) {
|
|
28460
|
-
return function (
|
|
28461
|
-
var
|
|
28462
|
-
var options = dirtyOptions || {};
|
|
28460
|
+
return function (string) {
|
|
28461
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
28463
28462
|
var matchResult = string.match(args.matchPattern);
|
|
28464
|
-
|
|
28465
|
-
if (!matchResult) {
|
|
28466
|
-
return null;
|
|
28467
|
-
}
|
|
28468
|
-
|
|
28463
|
+
if (!matchResult) return null;
|
|
28469
28464
|
var matchedString = matchResult[0];
|
|
28470
28465
|
var parseResult = string.match(args.parsePattern);
|
|
28471
|
-
|
|
28472
|
-
if (!parseResult) {
|
|
28473
|
-
return null;
|
|
28474
|
-
}
|
|
28475
|
-
|
|
28466
|
+
if (!parseResult) return null;
|
|
28476
28467
|
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
28477
28468
|
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
28469
|
+
var rest = string.slice(matchedString.length);
|
|
28478
28470
|
return {
|
|
28479
28471
|
value: value,
|
|
28480
|
-
rest:
|
|
28472
|
+
rest: rest
|
|
28481
28473
|
};
|
|
28482
28474
|
};
|
|
28483
28475
|
}
|
|
28484
28476
|
|
|
28485
28477
|
function buildMatchFn$1(args) {
|
|
28486
|
-
return function (
|
|
28487
|
-
var
|
|
28488
|
-
var options = dirtyOptions || {};
|
|
28478
|
+
return function (string) {
|
|
28479
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
28489
28480
|
var width = options.width;
|
|
28490
28481
|
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
|
|
28491
28482
|
var matchResult = string.match(matchPattern);
|
|
@@ -28496,23 +28487,18 @@ function buildMatchFn$1(args) {
|
|
|
28496
28487
|
|
|
28497
28488
|
var matchedString = matchResult[0];
|
|
28498
28489
|
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
|
|
28490
|
+
var key = Array.isArray(parsePatterns) ? findIndex$1(parsePatterns, function (pattern) {
|
|
28491
|
+
return pattern.test(matchedString);
|
|
28492
|
+
}) : findKey$1(parsePatterns, function (pattern) {
|
|
28493
|
+
return pattern.test(matchedString);
|
|
28494
|
+
});
|
|
28499
28495
|
var value;
|
|
28500
|
-
|
|
28501
|
-
if (Object.prototype.toString.call(parsePatterns) === '[object Array]') {
|
|
28502
|
-
value = findIndex$1(parsePatterns, function (pattern) {
|
|
28503
|
-
return pattern.test(string);
|
|
28504
|
-
});
|
|
28505
|
-
} else {
|
|
28506
|
-
value = findKey$1(parsePatterns, function (pattern) {
|
|
28507
|
-
return pattern.test(string);
|
|
28508
|
-
});
|
|
28509
|
-
}
|
|
28510
|
-
|
|
28511
|
-
value = args.valueCallback ? args.valueCallback(value) : value;
|
|
28496
|
+
value = args.valueCallback ? args.valueCallback(key) : key;
|
|
28512
28497
|
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
28498
|
+
var rest = string.slice(matchedString.length);
|
|
28513
28499
|
return {
|
|
28514
28500
|
value: value,
|
|
28515
|
-
rest:
|
|
28501
|
+
rest: rest
|
|
28516
28502
|
};
|
|
28517
28503
|
};
|
|
28518
28504
|
}
|
|
@@ -28523,6 +28509,8 @@ function findKey$1(object, predicate) {
|
|
|
28523
28509
|
return key;
|
|
28524
28510
|
}
|
|
28525
28511
|
}
|
|
28512
|
+
|
|
28513
|
+
return undefined;
|
|
28526
28514
|
}
|
|
28527
28515
|
|
|
28528
28516
|
function findIndex$1(array, predicate) {
|
|
@@ -28531,6 +28519,8 @@ function findIndex$1(array, predicate) {
|
|
|
28531
28519
|
return key;
|
|
28532
28520
|
}
|
|
28533
28521
|
}
|
|
28522
|
+
|
|
28523
|
+
return undefined;
|
|
28534
28524
|
}
|
|
28535
28525
|
|
|
28536
28526
|
var matchOrdinalNumberPattern$9 = /^(\d+)(th|st|nd|rd)?/i;
|
|
@@ -28667,13 +28657,13 @@ var locale$9 = {
|
|
|
28667
28657
|
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
28668
28658
|
*
|
|
28669
28659
|
* @param {Date|Number} date - the date to be changed
|
|
28670
|
-
* @param {Number} amount - the amount of milliseconds to be subtracted
|
|
28660
|
+
* @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`.
|
|
28671
28661
|
* @returns {Date} the new date with the milliseconds subtracted
|
|
28672
28662
|
* @throws {TypeError} 2 arguments required
|
|
28673
28663
|
*
|
|
28674
28664
|
* @example
|
|
28675
28665
|
* // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
|
|
28676
|
-
*
|
|
28666
|
+
* const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
|
|
28677
28667
|
* //=> Thu Jul 10 2014 12:45:29.250
|
|
28678
28668
|
*/
|
|
28679
28669
|
|
|
@@ -28739,9 +28729,11 @@ var formatters$3 = {
|
|
|
28739
28729
|
switch (token) {
|
|
28740
28730
|
case 'a':
|
|
28741
28731
|
case 'aa':
|
|
28742
|
-
case 'aaa':
|
|
28743
28732
|
return dayPeriodEnumValue.toUpperCase();
|
|
28744
28733
|
|
|
28734
|
+
case 'aaa':
|
|
28735
|
+
return dayPeriodEnumValue;
|
|
28736
|
+
|
|
28745
28737
|
case 'aaaaa':
|
|
28746
28738
|
return dayPeriodEnumValue[0];
|
|
28747
28739
|
|
|
@@ -28946,53 +28938,53 @@ var dayPeriodEnum$1 = {
|
|
|
28946
28938
|
afternoon: 'afternoon',
|
|
28947
28939
|
evening: 'evening',
|
|
28948
28940
|
night: 'night'
|
|
28949
|
-
/*
|
|
28950
|
-
* | | Unit | | Unit |
|
|
28951
|
-
* |-----|--------------------------------|-----|--------------------------------|
|
|
28952
|
-
* | a | AM, PM | A* | Milliseconds in day |
|
|
28953
|
-
* | b | AM, PM, noon, midnight | B | Flexible day period |
|
|
28954
|
-
* | c | Stand-alone local day of week | C* | Localized hour w/ day period |
|
|
28955
|
-
* | d | Day of month | D | Day of year |
|
|
28956
|
-
* | e | Local day of week | E | Day of week |
|
|
28957
|
-
* | f | | F* | Day of week in month |
|
|
28958
|
-
* | g* | Modified Julian day | G | Era |
|
|
28959
|
-
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
28960
|
-
* | i! | ISO day of week | I! | ISO week of year |
|
|
28961
|
-
* | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
|
|
28962
|
-
* | k | Hour [1-24] | K | Hour [0-11] |
|
|
28963
|
-
* | l* | (deprecated) | L | Stand-alone month |
|
|
28964
|
-
* | m | Minute | M | Month |
|
|
28965
|
-
* | n | | N | |
|
|
28966
|
-
* | o! | Ordinal number modifier | O | Timezone (GMT) |
|
|
28967
|
-
* | p! | Long localized time | P! | Long localized date |
|
|
28968
|
-
* | q | Stand-alone quarter | Q | Quarter |
|
|
28969
|
-
* | r* | Related Gregorian year | R! | ISO week-numbering year |
|
|
28970
|
-
* | s | Second | S | Fraction of second |
|
|
28971
|
-
* | t! | Seconds timestamp | T! | Milliseconds timestamp |
|
|
28972
|
-
* | u | Extended year | U* | Cyclic year |
|
|
28973
|
-
* | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
|
|
28974
|
-
* | w | Local week of year | W* | Week of month |
|
|
28975
|
-
* | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
|
|
28976
|
-
* | y | Year (abs) | Y | Local week-numbering year |
|
|
28977
|
-
* | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
|
|
28978
|
-
*
|
|
28979
|
-
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
28980
|
-
*
|
|
28981
|
-
* Letters marked by ! are non-standard, but implemented by date-fns:
|
|
28982
|
-
* - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
|
|
28983
|
-
* - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
|
|
28984
|
-
* i.e. 7 for Sunday, 1 for Monday, etc.
|
|
28985
|
-
* - `I` is ISO week of year, as opposed to `w` which is local week of year.
|
|
28986
|
-
* - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
|
|
28987
|
-
* `R` is supposed to be used in conjunction with `I` and `i`
|
|
28988
|
-
* for universal ISO week-numbering date, whereas
|
|
28989
|
-
* `Y` is supposed to be used in conjunction with `w` and `e`
|
|
28990
|
-
* for week-numbering date specific to the locale.
|
|
28991
|
-
* - `P` is long localized date format
|
|
28992
|
-
* - `p` is long localized time format
|
|
28993
|
-
*/
|
|
28994
|
-
|
|
28995
28941
|
};
|
|
28942
|
+
/*
|
|
28943
|
+
* | | Unit | | Unit |
|
|
28944
|
+
* |-----|--------------------------------|-----|--------------------------------|
|
|
28945
|
+
* | a | AM, PM | A* | Milliseconds in day |
|
|
28946
|
+
* | b | AM, PM, noon, midnight | B | Flexible day period |
|
|
28947
|
+
* | c | Stand-alone local day of week | C* | Localized hour w/ day period |
|
|
28948
|
+
* | d | Day of month | D | Day of year |
|
|
28949
|
+
* | e | Local day of week | E | Day of week |
|
|
28950
|
+
* | f | | F* | Day of week in month |
|
|
28951
|
+
* | g* | Modified Julian day | G | Era |
|
|
28952
|
+
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
28953
|
+
* | i! | ISO day of week | I! | ISO week of year |
|
|
28954
|
+
* | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
|
|
28955
|
+
* | k | Hour [1-24] | K | Hour [0-11] |
|
|
28956
|
+
* | l* | (deprecated) | L | Stand-alone month |
|
|
28957
|
+
* | m | Minute | M | Month |
|
|
28958
|
+
* | n | | N | |
|
|
28959
|
+
* | o! | Ordinal number modifier | O | Timezone (GMT) |
|
|
28960
|
+
* | p! | Long localized time | P! | Long localized date |
|
|
28961
|
+
* | q | Stand-alone quarter | Q | Quarter |
|
|
28962
|
+
* | r* | Related Gregorian year | R! | ISO week-numbering year |
|
|
28963
|
+
* | s | Second | S | Fraction of second |
|
|
28964
|
+
* | t! | Seconds timestamp | T! | Milliseconds timestamp |
|
|
28965
|
+
* | u | Extended year | U* | Cyclic year |
|
|
28966
|
+
* | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
|
|
28967
|
+
* | w | Local week of year | W* | Week of month |
|
|
28968
|
+
* | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
|
|
28969
|
+
* | y | Year (abs) | Y | Local week-numbering year |
|
|
28970
|
+
* | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
|
|
28971
|
+
*
|
|
28972
|
+
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
28973
|
+
*
|
|
28974
|
+
* Letters marked by ! are non-standard, but implemented by date-fns:
|
|
28975
|
+
* - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
|
|
28976
|
+
* - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
|
|
28977
|
+
* i.e. 7 for Sunday, 1 for Monday, etc.
|
|
28978
|
+
* - `I` is ISO week of year, as opposed to `w` which is local week of year.
|
|
28979
|
+
* - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
|
|
28980
|
+
* `R` is supposed to be used in conjunction with `I` and `i`
|
|
28981
|
+
* for universal ISO week-numbering date, whereas
|
|
28982
|
+
* `Y` is supposed to be used in conjunction with `w` and `e`
|
|
28983
|
+
* for week-numbering date specific to the locale.
|
|
28984
|
+
* - `P` is long localized date format
|
|
28985
|
+
* - `p` is long localized time format
|
|
28986
|
+
*/
|
|
28987
|
+
|
|
28996
28988
|
var formatters$2 = {
|
|
28997
28989
|
// Era
|
|
28998
28990
|
G: function (date, token, localize) {
|
|
@@ -29478,12 +29470,17 @@ var formatters$2 = {
|
|
|
29478
29470
|
switch (token) {
|
|
29479
29471
|
case 'a':
|
|
29480
29472
|
case 'aa':
|
|
29481
|
-
case 'aaa':
|
|
29482
29473
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
29483
29474
|
width: 'abbreviated',
|
|
29484
29475
|
context: 'formatting'
|
|
29485
29476
|
});
|
|
29486
29477
|
|
|
29478
|
+
case 'aaa':
|
|
29479
|
+
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
29480
|
+
width: 'abbreviated',
|
|
29481
|
+
context: 'formatting'
|
|
29482
|
+
}).toLowerCase();
|
|
29483
|
+
|
|
29487
29484
|
case 'aaaaa':
|
|
29488
29485
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
29489
29486
|
width: 'narrow',
|
|
@@ -29514,12 +29511,17 @@ var formatters$2 = {
|
|
|
29514
29511
|
switch (token) {
|
|
29515
29512
|
case 'b':
|
|
29516
29513
|
case 'bb':
|
|
29517
|
-
case 'bbb':
|
|
29518
29514
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
29519
29515
|
width: 'abbreviated',
|
|
29520
29516
|
context: 'formatting'
|
|
29521
29517
|
});
|
|
29522
29518
|
|
|
29519
|
+
case 'bbb':
|
|
29520
|
+
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
29521
|
+
width: 'abbreviated',
|
|
29522
|
+
context: 'formatting'
|
|
29523
|
+
}).toLowerCase();
|
|
29524
|
+
|
|
29523
29525
|
case 'bbbbb':
|
|
29524
29526
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
29525
29527
|
width: 'narrow',
|
|
@@ -29889,15 +29891,15 @@ function isProtectedDayOfYearToken$1(token) {
|
|
|
29889
29891
|
function isProtectedWeekYearToken$1(token) {
|
|
29890
29892
|
return protectedWeekYearTokens$1.indexOf(token) !== -1;
|
|
29891
29893
|
}
|
|
29892
|
-
function throwProtectedError$1(token) {
|
|
29894
|
+
function throwProtectedError$1(token, format, input) {
|
|
29893
29895
|
if (token === 'YYYY') {
|
|
29894
|
-
throw new RangeError(
|
|
29896
|
+
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
|
|
29895
29897
|
} else if (token === 'YY') {
|
|
29896
|
-
throw new RangeError(
|
|
29898
|
+
throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
|
|
29897
29899
|
} else if (token === 'D') {
|
|
29898
|
-
throw new RangeError(
|
|
29900
|
+
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"));
|
|
29899
29901
|
} else if (token === 'DD') {
|
|
29900
|
-
throw new RangeError(
|
|
29902
|
+
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"));
|
|
29901
29903
|
}
|
|
29902
29904
|
}
|
|
29903
29905
|
|
|
@@ -30004,35 +30006,37 @@ var unescapedLatinCharacterRegExp$2 = /[a-zA-Z]/;
|
|
|
30004
30006
|
* | | DD | 01, 02, ..., 365, 366 | 9 |
|
|
30005
30007
|
* | | DDD | 001, 002, ..., 365, 366 | |
|
|
30006
30008
|
* | | DDDD | ... | 3 |
|
|
30007
|
-
* | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ...,
|
|
30009
|
+
* | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
|
|
30008
30010
|
* | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
|
|
30009
30011
|
* | | EEEEE | M, T, W, T, F, S, S | |
|
|
30010
30012
|
* | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |
|
|
30011
30013
|
* | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
|
|
30012
30014
|
* | | io | 1st, 2nd, ..., 7th | 7 |
|
|
30013
30015
|
* | | ii | 01, 02, ..., 07 | 7 |
|
|
30014
|
-
* | | iii | Mon, Tue, Wed, ...,
|
|
30016
|
+
* | | iii | Mon, Tue, Wed, ..., Sun | 7 |
|
|
30015
30017
|
* | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
|
|
30016
30018
|
* | | iiiii | M, T, W, T, F, S, S | 7 |
|
|
30017
30019
|
* | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 |
|
|
30018
30020
|
* | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
|
|
30019
30021
|
* | | eo | 2nd, 3rd, ..., 1st | 7 |
|
|
30020
30022
|
* | | ee | 02, 03, ..., 01 | |
|
|
30021
|
-
* | | eee | Mon, Tue, Wed, ...,
|
|
30023
|
+
* | | eee | Mon, Tue, Wed, ..., Sun | |
|
|
30022
30024
|
* | | eeee | Monday, Tuesday, ..., Sunday | 2 |
|
|
30023
30025
|
* | | eeeee | M, T, W, T, F, S, S | |
|
|
30024
30026
|
* | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |
|
|
30025
30027
|
* | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
|
|
30026
30028
|
* | | co | 2nd, 3rd, ..., 1st | 7 |
|
|
30027
30029
|
* | | cc | 02, 03, ..., 01 | |
|
|
30028
|
-
* | | ccc | Mon, Tue, Wed, ...,
|
|
30030
|
+
* | | ccc | Mon, Tue, Wed, ..., Sun | |
|
|
30029
30031
|
* | | cccc | Monday, Tuesday, ..., Sunday | 2 |
|
|
30030
30032
|
* | | ccccc | M, T, W, T, F, S, S | |
|
|
30031
30033
|
* | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |
|
|
30032
|
-
* | AM, PM | a..
|
|
30034
|
+
* | AM, PM | a..aa | AM, PM | |
|
|
30035
|
+
* | | aaa | am, pm | |
|
|
30033
30036
|
* | | aaaa | a.m., p.m. | 2 |
|
|
30034
30037
|
* | | aaaaa | a, p | |
|
|
30035
|
-
* | AM, PM, noon, midnight | b..
|
|
30038
|
+
* | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
|
|
30039
|
+
* | | bbb | am, pm, noon, midnight | |
|
|
30036
30040
|
* | | bbbb | a.m., p.m., noon, midnight | 2 |
|
|
30037
30041
|
* | | bbbbb | a, p, n, mi | |
|
|
30038
30042
|
* | Flexible day period | B..BBB | at night, in the morning, ... | |
|
|
@@ -30046,7 +30050,7 @@ var unescapedLatinCharacterRegExp$2 = /[a-zA-Z]/;
|
|
|
30046
30050
|
* | | HH | 00, 01, 02, ..., 23 | |
|
|
30047
30051
|
* | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
|
|
30048
30052
|
* | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
|
|
30049
|
-
* | | KK |
|
|
30053
|
+
* | | KK | 01, 02, ..., 11, 00 | |
|
|
30050
30054
|
* | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
|
|
30051
30055
|
* | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
|
|
30052
30056
|
* | | kk | 24, 01, 02, ..., 23 | |
|
|
@@ -30058,7 +30062,7 @@ var unescapedLatinCharacterRegExp$2 = /[a-zA-Z]/;
|
|
|
30058
30062
|
* | | ss | 00, 01, ..., 59 | |
|
|
30059
30063
|
* | Fraction of second | S | 0, 1, ..., 9 | |
|
|
30060
30064
|
* | | SS | 00, 01, ..., 99 | |
|
|
30061
|
-
* | | SSS | 000,
|
|
30065
|
+
* | | SSS | 000, 001, ..., 999 | |
|
|
30062
30066
|
* | | SSSS | ... | 3 |
|
|
30063
30067
|
* | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
|
|
30064
30068
|
* | | XX | -0800, +0530, Z | |
|
|
@@ -30078,18 +30082,18 @@ var unescapedLatinCharacterRegExp$2 = /[a-zA-Z]/;
|
|
|
30078
30082
|
* | | tt | ... | 3,7 |
|
|
30079
30083
|
* | Milliseconds timestamp | T | 512969520900 | 7 |
|
|
30080
30084
|
* | | TT | ... | 3,7 |
|
|
30081
|
-
* | Long localized date | P |
|
|
30082
|
-
* | | PP |
|
|
30083
|
-
* | | PPP |
|
|
30084
|
-
* | | PPPP |
|
|
30085
|
+
* | Long localized date | P | 04/29/1453 | 7 |
|
|
30086
|
+
* | | PP | Apr 29, 1453 | 7 |
|
|
30087
|
+
* | | PPP | April 29th, 1453 | 7 |
|
|
30088
|
+
* | | PPPP | Friday, April 29th, 1453 | 2,7 |
|
|
30085
30089
|
* | Long localized time | p | 12:00 AM | 7 |
|
|
30086
30090
|
* | | pp | 12:00:00 AM | 7 |
|
|
30087
30091
|
* | | ppp | 12:00:00 AM GMT+2 | 7 |
|
|
30088
30092
|
* | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
|
|
30089
|
-
* | Combination of date and time | Pp |
|
|
30090
|
-
* | | PPpp |
|
|
30091
|
-
* | | PPPppp |
|
|
30092
|
-
* | | PPPPpppp|
|
|
30093
|
+
* | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
|
|
30094
|
+
* | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
|
|
30095
|
+
* | | PPPppp | April 29th, 1453 at ... | 7 |
|
|
30096
|
+
* | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
|
|
30093
30097
|
* Notes:
|
|
30094
30098
|
* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
|
|
30095
30099
|
* are the same as "stand-alone" units, but are different in some languages.
|
|
@@ -30204,10 +30208,10 @@ var unescapedLatinCharacterRegExp$2 = /[a-zA-Z]/;
|
|
|
30204
30208
|
* @throws {RangeError} `options.locale` must contain `formatLong` property
|
|
30205
30209
|
* @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
|
|
30206
30210
|
* @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
|
|
30207
|
-
* @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr
|
|
30208
|
-
* @throws {RangeError} use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr
|
|
30209
|
-
* @throws {RangeError} use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr
|
|
30210
|
-
* @throws {RangeError} use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr
|
|
30211
|
+
* @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
|
|
30212
|
+
* @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
|
|
30213
|
+
* @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
|
|
30214
|
+
* @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
|
|
30211
30215
|
* @throws {RangeError} format string contains an unescaped latin alphabet character
|
|
30212
30216
|
*
|
|
30213
30217
|
* @example
|
|
@@ -30300,11 +30304,11 @@ function format$1(dirtyDate, dirtyFormatStr, dirtyOptions) {
|
|
|
30300
30304
|
|
|
30301
30305
|
if (formatter) {
|
|
30302
30306
|
if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken$1(substring)) {
|
|
30303
|
-
throwProtectedError$1(substring);
|
|
30307
|
+
throwProtectedError$1(substring, dirtyFormatStr, dirtyDate);
|
|
30304
30308
|
}
|
|
30305
30309
|
|
|
30306
30310
|
if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken$1(substring)) {
|
|
30307
|
-
throwProtectedError$1(substring);
|
|
30311
|
+
throwProtectedError$1(substring, dirtyFormatStr, dirtyDate);
|
|
30308
30312
|
}
|
|
30309
30313
|
|
|
30310
30314
|
return formatter(utcDate, substring, locale.localize, formatterOptions);
|
|
@@ -30323,6 +30327,35 @@ function cleanEscapedString$2(input) {
|
|
|
30323
30327
|
return input.match(escapedStringRegExp$2)[1].replace(doubleQuoteRegExp$2, "'");
|
|
30324
30328
|
}
|
|
30325
30329
|
|
|
30330
|
+
/**
|
|
30331
|
+
* @name subDays
|
|
30332
|
+
* @category Day Helpers
|
|
30333
|
+
* @summary Subtract the specified number of days from the given date.
|
|
30334
|
+
*
|
|
30335
|
+
* @description
|
|
30336
|
+
* Subtract the specified number of days from the given date.
|
|
30337
|
+
*
|
|
30338
|
+
* ### v2.0.0 breaking changes:
|
|
30339
|
+
*
|
|
30340
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
30341
|
+
*
|
|
30342
|
+
* @param {Date|Number} date - the date to be changed
|
|
30343
|
+
* @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
|
30344
|
+
* @returns {Date} the new date with the days subtracted
|
|
30345
|
+
* @throws {TypeError} 2 arguments required
|
|
30346
|
+
*
|
|
30347
|
+
* @example
|
|
30348
|
+
* // Subtract 10 days from 1 September 2014:
|
|
30349
|
+
* const result = subDays(new Date(2014, 8, 1), 10)
|
|
30350
|
+
* //=> Fri Aug 22 2014 00:00:00
|
|
30351
|
+
*/
|
|
30352
|
+
|
|
30353
|
+
function subDays$1(dirtyDate, dirtyAmount) {
|
|
30354
|
+
requiredArgs$1(2, arguments);
|
|
30355
|
+
var amount = toInteger$1(dirtyAmount);
|
|
30356
|
+
return addDays$1(dirtyDate, -amount);
|
|
30357
|
+
}
|
|
30358
|
+
|
|
30326
30359
|
/**
|
|
30327
30360
|
* @name isAfter
|
|
30328
30361
|
* @category Common Helpers
|
|
@@ -30383,35 +30416,6 @@ function isBefore$1(dirtyDate, dirtyDateToCompare) {
|
|
|
30383
30416
|
return date.getTime() < dateToCompare.getTime();
|
|
30384
30417
|
}
|
|
30385
30418
|
|
|
30386
|
-
/**
|
|
30387
|
-
* @name subDays
|
|
30388
|
-
* @category Day Helpers
|
|
30389
|
-
* @summary Subtract the specified number of days from the given date.
|
|
30390
|
-
*
|
|
30391
|
-
* @description
|
|
30392
|
-
* Subtract the specified number of days from the given date.
|
|
30393
|
-
*
|
|
30394
|
-
* ### v2.0.0 breaking changes:
|
|
30395
|
-
*
|
|
30396
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
30397
|
-
*
|
|
30398
|
-
* @param {Date|Number} date - the date to be changed
|
|
30399
|
-
* @param {Number} amount - the amount of days to be subtracted
|
|
30400
|
-
* @returns {Date} the new date with the days subtracted
|
|
30401
|
-
* @throws {TypeError} 2 arguments required
|
|
30402
|
-
*
|
|
30403
|
-
* @example
|
|
30404
|
-
* // Subtract 10 days from 1 September 2014:
|
|
30405
|
-
* var result = subDays(new Date(2014, 8, 1), 10)
|
|
30406
|
-
* //=> Fri Aug 22 2014 00:00:00
|
|
30407
|
-
*/
|
|
30408
|
-
|
|
30409
|
-
function subDays$1(dirtyDate, dirtyAmount) {
|
|
30410
|
-
requiredArgs$1(2, arguments);
|
|
30411
|
-
var amount = toInteger$1(dirtyAmount);
|
|
30412
|
-
return addDays$1(dirtyDate, -amount);
|
|
30413
|
-
}
|
|
30414
|
-
|
|
30415
30419
|
/**
|
|
30416
30420
|
* @name setMinutes
|
|
30417
30421
|
* @category Minute Helpers
|
|
@@ -30431,7 +30435,7 @@ function subDays$1(dirtyDate, dirtyAmount) {
|
|
|
30431
30435
|
*
|
|
30432
30436
|
* @example
|
|
30433
30437
|
* // Set 45 minutes to 1 September 2014 11:30:40:
|
|
30434
|
-
*
|
|
30438
|
+
* const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45)
|
|
30435
30439
|
* //=> Mon Sep 01 2014 11:45:40
|
|
30436
30440
|
*/
|
|
30437
30441
|
|
|
@@ -37758,6 +37762,26 @@ var formatDistanceLocale$7 = {
|
|
|
37758
37762
|
other: '{{count}} Tagen'
|
|
37759
37763
|
}
|
|
37760
37764
|
},
|
|
37765
|
+
aboutXWeeks: {
|
|
37766
|
+
standalone: {
|
|
37767
|
+
one: 'etwa ein Woche',
|
|
37768
|
+
other: 'etwa {{count}} Wochen'
|
|
37769
|
+
},
|
|
37770
|
+
withPreposition: {
|
|
37771
|
+
one: 'etwa einem Woche',
|
|
37772
|
+
other: 'etwa {{count}} Wochen'
|
|
37773
|
+
}
|
|
37774
|
+
},
|
|
37775
|
+
xWeeks: {
|
|
37776
|
+
standalone: {
|
|
37777
|
+
one: 'ein Woche',
|
|
37778
|
+
other: '{{count}} Wochen'
|
|
37779
|
+
},
|
|
37780
|
+
withPreposition: {
|
|
37781
|
+
one: 'einem Woche',
|
|
37782
|
+
other: '{{count}} Wochen'
|
|
37783
|
+
}
|
|
37784
|
+
},
|
|
37761
37785
|
aboutXMonths: {
|
|
37762
37786
|
standalone: {
|
|
37763
37787
|
one: 'etwa ein Monat',
|
|
@@ -37819,7 +37843,8 @@ var formatDistanceLocale$7 = {
|
|
|
37819
37843
|
}
|
|
37820
37844
|
}
|
|
37821
37845
|
};
|
|
37822
|
-
|
|
37846
|
+
|
|
37847
|
+
var formatDistance$7 = function (token, count, options) {
|
|
37823
37848
|
options = options || {};
|
|
37824
37849
|
var usageGroup = options.addSuffix ? formatDistanceLocale$7[token].withPreposition : formatDistanceLocale$7[token].standalone;
|
|
37825
37850
|
var result;
|
|
@@ -37829,11 +37854,11 @@ function formatDistance$7(token, count, options) {
|
|
|
37829
37854
|
} else if (count === 1) {
|
|
37830
37855
|
result = usageGroup.one;
|
|
37831
37856
|
} else {
|
|
37832
|
-
result = usageGroup.other.replace('{{count}}', count);
|
|
37857
|
+
result = usageGroup.other.replace('{{count}}', String(count));
|
|
37833
37858
|
}
|
|
37834
37859
|
|
|
37835
37860
|
if (options.addSuffix) {
|
|
37836
|
-
if (options.comparison > 0) {
|
|
37861
|
+
if (options.comparison && options.comparison > 0) {
|
|
37837
37862
|
return 'in ' + result;
|
|
37838
37863
|
} else {
|
|
37839
37864
|
return 'vor ' + result;
|
|
@@ -37841,14 +37866,15 @@ function formatDistance$7(token, count, options) {
|
|
|
37841
37866
|
}
|
|
37842
37867
|
|
|
37843
37868
|
return result;
|
|
37844
|
-
}
|
|
37869
|
+
};
|
|
37845
37870
|
|
|
37871
|
+
// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008
|
|
37846
37872
|
var dateFormats$7 = {
|
|
37847
37873
|
full: 'EEEE, do MMMM y',
|
|
37848
37874
|
// Montag, 7. Januar 2018
|
|
37849
37875
|
long: 'do MMMM y',
|
|
37850
37876
|
// 7. Januar 2018
|
|
37851
|
-
medium: 'do MMM
|
|
37877
|
+
medium: 'do MMM y',
|
|
37852
37878
|
// 7. Jan. 2018
|
|
37853
37879
|
short: 'dd.MM.y' // 07.01.2018
|
|
37854
37880
|
|
|
@@ -37888,9 +37914,10 @@ var formatRelativeLocale$7 = {
|
|
|
37888
37914
|
nextWeek: "eeee 'um' p",
|
|
37889
37915
|
other: 'P'
|
|
37890
37916
|
};
|
|
37891
|
-
|
|
37917
|
+
|
|
37918
|
+
var formatRelative$7 = function (token, _date, _baseDate, _options) {
|
|
37892
37919
|
return formatRelativeLocale$7[token];
|
|
37893
|
-
}
|
|
37920
|
+
};
|
|
37894
37921
|
|
|
37895
37922
|
var eraValues$7 = {
|
|
37896
37923
|
narrow: ['v.Chr.', 'n.Chr.'],
|
|
@@ -37900,24 +37927,24 @@ var eraValues$7 = {
|
|
|
37900
37927
|
var quarterValues$7 = {
|
|
37901
37928
|
narrow: ['1', '2', '3', '4'],
|
|
37902
37929
|
abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
37903
|
-
wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal']
|
|
37904
|
-
|
|
37905
|
-
|
|
37906
|
-
|
|
37930
|
+
wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal']
|
|
37931
|
+
}; // Note: in German, the names of days of the week and months are capitalized.
|
|
37932
|
+
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
|
|
37933
|
+
// Generally, formatted dates should look like they are in the middle of a sentence,
|
|
37934
|
+
// e.g. in Spanish language the weekdays and months should be in the lowercase.
|
|
37907
37935
|
|
|
37908
|
-
};
|
|
37909
37936
|
var monthValues$7 = {
|
|
37910
37937
|
narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
|
|
37911
|
-
abbreviated: ['Jan', 'Feb', '
|
|
37938
|
+
abbreviated: ['Jan.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'],
|
|
37912
37939
|
wide: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember']
|
|
37913
37940
|
};
|
|
37914
37941
|
var dayValues$7 = {
|
|
37915
37942
|
narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'],
|
|
37916
37943
|
short: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
|
|
37917
37944
|
abbreviated: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'],
|
|
37918
|
-
wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag']
|
|
37945
|
+
wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag']
|
|
37946
|
+
}; // https://www.unicode.org/cldr/charts/32/summary/de.html#1881
|
|
37919
37947
|
|
|
37920
|
-
};
|
|
37921
37948
|
var dayPeriodValues$7 = {
|
|
37922
37949
|
narrow: {
|
|
37923
37950
|
am: 'vm.',
|
|
@@ -37983,10 +38010,10 @@ var formattingDayPeriodValues$4 = {
|
|
|
37983
38010
|
}
|
|
37984
38011
|
};
|
|
37985
38012
|
|
|
37986
|
-
|
|
38013
|
+
var ordinalNumber$7 = function (dirtyNumber, _dirtyOptions) {
|
|
37987
38014
|
var number = Number(dirtyNumber);
|
|
37988
38015
|
return number + '.';
|
|
37989
|
-
}
|
|
38016
|
+
};
|
|
37990
38017
|
|
|
37991
38018
|
var localize$7 = {
|
|
37992
38019
|
ordinalNumber: ordinalNumber$7,
|
|
@@ -37998,7 +38025,7 @@ var localize$7 = {
|
|
|
37998
38025
|
values: quarterValues$7,
|
|
37999
38026
|
defaultWidth: 'wide',
|
|
38000
38027
|
argumentCallback: function (quarter) {
|
|
38001
|
-
return
|
|
38028
|
+
return quarter - 1;
|
|
38002
38029
|
}
|
|
38003
38030
|
}),
|
|
38004
38031
|
month: buildLocalizeFn$1({
|
|
@@ -38077,7 +38104,7 @@ var match$7 = {
|
|
|
38077
38104
|
matchPattern: matchOrdinalNumberPattern$7,
|
|
38078
38105
|
parsePattern: parseOrdinalNumberPattern$7,
|
|
38079
38106
|
valueCallback: function (value) {
|
|
38080
|
-
return parseInt(value
|
|
38107
|
+
return parseInt(value);
|
|
38081
38108
|
}
|
|
38082
38109
|
}),
|
|
38083
38110
|
era: buildMatchFn$1({
|
|
@@ -38127,7 +38154,6 @@ var match$7 = {
|
|
|
38127
38154
|
* @author RomanErnst [@pex]{@link https://github.com/pex}
|
|
38128
38155
|
* @author Philipp Keck [@Philipp91]{@link https://github.com/Philipp91}
|
|
38129
38156
|
*/
|
|
38130
|
-
|
|
38131
38157
|
var locale$7 = {
|
|
38132
38158
|
code: 'de',
|
|
38133
38159
|
formatDistance: formatDistance$7,
|
|
@@ -38173,6 +38199,14 @@ var formatDistanceLocale$6 = {
|
|
|
38173
38199
|
one: '1 día',
|
|
38174
38200
|
other: '{{count}} días'
|
|
38175
38201
|
},
|
|
38202
|
+
aboutXWeeks: {
|
|
38203
|
+
one: 'alrededor de 1 semana',
|
|
38204
|
+
other: 'alrededor de {{count}} semanas'
|
|
38205
|
+
},
|
|
38206
|
+
xWeeks: {
|
|
38207
|
+
one: '1 semana',
|
|
38208
|
+
other: '{{count}} semanas'
|
|
38209
|
+
},
|
|
38176
38210
|
aboutXMonths: {
|
|
38177
38211
|
one: 'alrededor de 1 mes',
|
|
38178
38212
|
other: 'alrededor de {{count}} meses'
|
|
@@ -38222,8 +38256,8 @@ function formatDistance$6(token, count, options) {
|
|
|
38222
38256
|
}
|
|
38223
38257
|
|
|
38224
38258
|
var dateFormats$6 = {
|
|
38225
|
-
full: "EEEE, d 'de' MMMM y",
|
|
38226
|
-
long: "d 'de' MMMM y",
|
|
38259
|
+
full: "EEEE, d 'de' MMMM 'de' y",
|
|
38260
|
+
long: "d 'de' MMMM 'de' y",
|
|
38227
38261
|
medium: 'd MMM y',
|
|
38228
38262
|
short: 'dd/MM/y'
|
|
38229
38263
|
};
|
|
@@ -38296,7 +38330,7 @@ var monthValues$6 = {
|
|
|
38296
38330
|
var dayValues$6 = {
|
|
38297
38331
|
narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'],
|
|
38298
38332
|
short: ['do', 'lu', 'ma', 'mi', 'ju', 'vi', 'sa'],
|
|
38299
|
-
abbreviated: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', '
|
|
38333
|
+
abbreviated: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'],
|
|
38300
38334
|
wide: ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado']
|
|
38301
38335
|
};
|
|
38302
38336
|
var dayPeriodValues$6 = {
|
|
@@ -38430,7 +38464,7 @@ var matchDayPatterns$6 = {
|
|
|
38430
38464
|
narrow: /^[dlmjvs]/i,
|
|
38431
38465
|
short: /^(do|lu|ma|mi|ju|vi|sa)/i,
|
|
38432
38466
|
abbreviated: /^(dom|lun|mar|mie|jue|vie|sab)/i,
|
|
38433
|
-
wide: /^(domingo|lunes|martes|
|
|
38467
|
+
wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i
|
|
38434
38468
|
};
|
|
38435
38469
|
var parseDayPatterns$6 = {
|
|
38436
38470
|
narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
|
|
@@ -38553,6 +38587,14 @@ var formatDistanceLocale$5 = {
|
|
|
38553
38587
|
one: '1 jour',
|
|
38554
38588
|
other: '{{count}} jours'
|
|
38555
38589
|
},
|
|
38590
|
+
aboutXWeeks: {
|
|
38591
|
+
one: 'environ 1 semaine',
|
|
38592
|
+
other: 'environ {{count}} semaines'
|
|
38593
|
+
},
|
|
38594
|
+
xWeeks: {
|
|
38595
|
+
one: '1 semaine',
|
|
38596
|
+
other: '{{count}} semaines'
|
|
38597
|
+
},
|
|
38556
38598
|
aboutXMonths: {
|
|
38557
38599
|
one: 'environ 1 mois',
|
|
38558
38600
|
other: 'environ {{count}} mois'
|
|
@@ -38871,7 +38913,7 @@ var locale$5 = {
|
|
|
38871
38913
|
weekStartsOn: 1
|
|
38872
38914
|
/* Monday */
|
|
38873
38915
|
,
|
|
38874
|
-
firstWeekContainsDate:
|
|
38916
|
+
firstWeekContainsDate: 4
|
|
38875
38917
|
}
|
|
38876
38918
|
};
|
|
38877
38919
|
|
|
@@ -38905,6 +38947,14 @@ var formatDistanceLocale$4 = {
|
|
|
38905
38947
|
one: '1 dag',
|
|
38906
38948
|
other: '{{count}} dagen'
|
|
38907
38949
|
},
|
|
38950
|
+
aboutXWeeks: {
|
|
38951
|
+
one: 'ongeveer 1 week',
|
|
38952
|
+
other: 'ongeveer {{count}} weken'
|
|
38953
|
+
},
|
|
38954
|
+
xWeeks: {
|
|
38955
|
+
one: '1 week',
|
|
38956
|
+
other: '{{count}} weken'
|
|
38957
|
+
},
|
|
38908
38958
|
aboutXMonths: {
|
|
38909
38959
|
one: 'ongeveer 1 maand',
|
|
38910
38960
|
other: 'ongeveer {{count}} maanden'
|
|
@@ -39010,7 +39060,7 @@ var quarterValues$4 = {
|
|
|
39010
39060
|
};
|
|
39011
39061
|
var monthValues$4 = {
|
|
39012
39062
|
narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
|
|
39013
|
-
abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei
|
|
39063
|
+
abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'],
|
|
39014
39064
|
wide: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december']
|
|
39015
39065
|
};
|
|
39016
39066
|
var dayValues$4 = {
|
|
@@ -39025,30 +39075,30 @@ var dayPeriodValues$4 = {
|
|
|
39025
39075
|
pm: 'PM',
|
|
39026
39076
|
midnight: 'middernacht',
|
|
39027
39077
|
noon: 'het middaguur',
|
|
39028
|
-
morning: '
|
|
39029
|
-
afternoon: '
|
|
39030
|
-
evening: '
|
|
39031
|
-
night: '
|
|
39078
|
+
morning: "'s ochtends",
|
|
39079
|
+
afternoon: "'s middags",
|
|
39080
|
+
evening: "'s avonds",
|
|
39081
|
+
night: "'s nachts"
|
|
39032
39082
|
},
|
|
39033
39083
|
abbreviated: {
|
|
39034
39084
|
am: 'AM',
|
|
39035
39085
|
pm: 'PM',
|
|
39036
39086
|
midnight: 'middernacht',
|
|
39037
39087
|
noon: 'het middaguur',
|
|
39038
|
-
morning: '
|
|
39039
|
-
afternoon: '
|
|
39040
|
-
evening: '
|
|
39041
|
-
night: '
|
|
39088
|
+
morning: "'s ochtends",
|
|
39089
|
+
afternoon: "'s middags",
|
|
39090
|
+
evening: "'s avonds",
|
|
39091
|
+
night: "'s nachts"
|
|
39042
39092
|
},
|
|
39043
39093
|
wide: {
|
|
39044
39094
|
am: 'AM',
|
|
39045
39095
|
pm: 'PM',
|
|
39046
39096
|
midnight: 'middernacht',
|
|
39047
39097
|
noon: 'het middaguur',
|
|
39048
|
-
morning: '
|
|
39049
|
-
afternoon: '
|
|
39050
|
-
evening: '
|
|
39051
|
-
night: '
|
|
39098
|
+
morning: "'s ochtends",
|
|
39099
|
+
afternoon: "'s middags",
|
|
39100
|
+
evening: "'s avonds",
|
|
39101
|
+
night: "'s nachts"
|
|
39052
39102
|
}
|
|
39053
39103
|
};
|
|
39054
39104
|
|
|
@@ -39104,7 +39154,7 @@ var parseQuarterPatterns$4 = {
|
|
|
39104
39154
|
};
|
|
39105
39155
|
var matchMonthPatterns$4 = {
|
|
39106
39156
|
narrow: /^[jfmasond]/i,
|
|
39107
|
-
abbreviated: /^(jan
|
|
39157
|
+
abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,
|
|
39108
39158
|
wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i
|
|
39109
39159
|
};
|
|
39110
39160
|
var parseMonthPatterns$4 = {
|
|
@@ -39279,7 +39329,7 @@ var formatDistanceLocale$3 = {
|
|
|
39279
39329
|
},
|
|
39280
39330
|
aboutXHours: {
|
|
39281
39331
|
one: {
|
|
39282
|
-
regular: 'około
|
|
39332
|
+
regular: 'około godziny',
|
|
39283
39333
|
past: 'około godziny',
|
|
39284
39334
|
future: 'około godzinę'
|
|
39285
39335
|
},
|
|
@@ -39304,6 +39354,16 @@ var formatDistanceLocale$3 = {
|
|
|
39304
39354
|
twoFour: '{{count}} dni',
|
|
39305
39355
|
other: '{{count}} dni'
|
|
39306
39356
|
},
|
|
39357
|
+
aboutXWeeks: {
|
|
39358
|
+
one: 'około tygodnia',
|
|
39359
|
+
twoFour: 'około {{count}} tygodni',
|
|
39360
|
+
other: 'około {{count}} tygodni'
|
|
39361
|
+
},
|
|
39362
|
+
xWeeks: {
|
|
39363
|
+
one: 'tydzień',
|
|
39364
|
+
twoFour: '{{count}} tygodnie',
|
|
39365
|
+
other: '{{count}} tygodni'
|
|
39366
|
+
},
|
|
39307
39367
|
aboutXMonths: {
|
|
39308
39368
|
one: 'około miesiąc',
|
|
39309
39369
|
twoFour: 'około {{count}} miesiące',
|
|
@@ -39746,6 +39806,14 @@ var formatDistanceLocale$2 = {
|
|
|
39746
39806
|
one: '1 dia',
|
|
39747
39807
|
other: '{{count}} dias'
|
|
39748
39808
|
},
|
|
39809
|
+
aboutXWeeks: {
|
|
39810
|
+
one: 'cerca de 1 semana',
|
|
39811
|
+
other: 'cerca de {{count}} semanas'
|
|
39812
|
+
},
|
|
39813
|
+
xWeeks: {
|
|
39814
|
+
one: '1 semana',
|
|
39815
|
+
other: '{{count}} semanas'
|
|
39816
|
+
},
|
|
39749
39817
|
aboutXMonths: {
|
|
39750
39818
|
one: 'cerca de 1 mês',
|
|
39751
39819
|
other: 'cerca de {{count}} meses'
|
|
@@ -39865,10 +39933,10 @@ var monthValues$2 = {
|
|
|
39865
39933
|
wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro']
|
|
39866
39934
|
};
|
|
39867
39935
|
var dayValues$2 = {
|
|
39868
|
-
narrow: ['
|
|
39869
|
-
short: ['
|
|
39870
|
-
abbreviated: ['
|
|
39871
|
-
wide: ['domingo', 'segunda', 'terça', 'quarta', 'quinta', 'sexta', 'sábado']
|
|
39936
|
+
narrow: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],
|
|
39937
|
+
short: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sab'],
|
|
39938
|
+
abbreviated: ['domingo', 'segunda', 'terça', 'quarta', 'quinta', 'sexta', 'sábado'],
|
|
39939
|
+
wide: ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado']
|
|
39872
39940
|
};
|
|
39873
39941
|
var dayPeriodValues$2 = {
|
|
39874
39942
|
narrow: {
|
|
@@ -40129,6 +40197,14 @@ var formatDistanceLocale$1 = {
|
|
|
40129
40197
|
one: '1 zi',
|
|
40130
40198
|
other: '{{count}} zile'
|
|
40131
40199
|
},
|
|
40200
|
+
aboutXWeeks: {
|
|
40201
|
+
one: 'circa o săptămână',
|
|
40202
|
+
other: 'circa {{count}} săptămâni'
|
|
40203
|
+
},
|
|
40204
|
+
xWeeks: {
|
|
40205
|
+
one: '1 săptămână',
|
|
40206
|
+
other: '{{count}} săptămâni'
|
|
40207
|
+
},
|
|
40132
40208
|
aboutXMonths: {
|
|
40133
40209
|
one: 'circa 1 lună',
|
|
40134
40210
|
other: 'circa {{count}} luni'
|
|
@@ -40495,6 +40571,14 @@ var formatDistanceLocale = {
|
|
|
40495
40571
|
one: '1 天',
|
|
40496
40572
|
other: '{{count}} 天'
|
|
40497
40573
|
},
|
|
40574
|
+
aboutXWeeks: {
|
|
40575
|
+
one: '大约 1 个星期',
|
|
40576
|
+
other: '大约 {{count}} 个星期'
|
|
40577
|
+
},
|
|
40578
|
+
xWeeks: {
|
|
40579
|
+
one: '1 个星期',
|
|
40580
|
+
other: '{{count}} 个星期'
|
|
40581
|
+
},
|
|
40498
40582
|
aboutXMonths: {
|
|
40499
40583
|
one: '大约 1 个月',
|
|
40500
40584
|
other: '大约 {{count}} 个月'
|
|
@@ -40576,16 +40660,34 @@ var formatLong = {
|
|
|
40576
40660
|
})
|
|
40577
40661
|
};
|
|
40578
40662
|
|
|
40663
|
+
function checkWeek(_date, _baseDate, _options, baseFormat) {
|
|
40664
|
+
if (isSameUTCWeek(_date, _baseDate, _options)) {
|
|
40665
|
+
return baseFormat; // in same week
|
|
40666
|
+
} else if (_date.getTime() > _baseDate.getTime()) {
|
|
40667
|
+
return "'下个'" + baseFormat; // in next week
|
|
40668
|
+
}
|
|
40669
|
+
|
|
40670
|
+
return "'上个'" + baseFormat; // in last week
|
|
40671
|
+
}
|
|
40672
|
+
|
|
40579
40673
|
var formatRelativeLocale = {
|
|
40580
|
-
lastWeek:
|
|
40674
|
+
lastWeek: checkWeek,
|
|
40675
|
+
// days before yesterday, maybe in this week or last week
|
|
40581
40676
|
yesterday: "'昨天' p",
|
|
40582
40677
|
today: "'今天' p",
|
|
40583
40678
|
tomorrow: "'明天' p",
|
|
40584
|
-
nextWeek:
|
|
40585
|
-
|
|
40679
|
+
nextWeek: checkWeek,
|
|
40680
|
+
// days after tomorrow, maybe in this week or next week
|
|
40681
|
+
other: 'PP p'
|
|
40586
40682
|
};
|
|
40587
40683
|
function formatRelative(token, _date, _baseDate, _options) {
|
|
40588
|
-
|
|
40684
|
+
var format = formatRelativeLocale[token];
|
|
40685
|
+
|
|
40686
|
+
if (typeof format === 'function') {
|
|
40687
|
+
return format(_date, _baseDate, _options, 'eeee p');
|
|
40688
|
+
}
|
|
40689
|
+
|
|
40690
|
+
return format;
|
|
40589
40691
|
}
|
|
40590
40692
|
|
|
40591
40693
|
var eraValues = {
|
|
@@ -40688,11 +40790,22 @@ function ordinalNumber(dirtyNumber, dirtyOptions) {
|
|
|
40688
40790
|
var options = dirtyOptions || {};
|
|
40689
40791
|
var unit = String(options.unit);
|
|
40690
40792
|
|
|
40691
|
-
|
|
40692
|
-
|
|
40693
|
-
|
|
40793
|
+
switch (unit) {
|
|
40794
|
+
case 'date':
|
|
40795
|
+
return number.toString() + '日';
|
|
40796
|
+
|
|
40797
|
+
case 'hour':
|
|
40798
|
+
return number.toString() + '时';
|
|
40799
|
+
|
|
40800
|
+
case 'minute':
|
|
40801
|
+
return number.toString() + '分';
|
|
40694
40802
|
|
|
40695
|
-
|
|
40803
|
+
case 'second':
|
|
40804
|
+
return number.toString() + '秒';
|
|
40805
|
+
|
|
40806
|
+
default:
|
|
40807
|
+
return '第 ' + number.toString();
|
|
40808
|
+
}
|
|
40696
40809
|
}
|
|
40697
40810
|
|
|
40698
40811
|
var localize = {
|
|
@@ -40724,7 +40837,7 @@ var localize = {
|
|
|
40724
40837
|
})
|
|
40725
40838
|
};
|
|
40726
40839
|
|
|
40727
|
-
var matchOrdinalNumberPattern = /^(第\s*)?\d
|
|
40840
|
+
var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|时|分|秒)?/i;
|
|
40728
40841
|
var parseOrdinalNumberPattern = /\d+/i;
|
|
40729
40842
|
var matchEraPatterns = {
|
|
40730
40843
|
narrow: /^(前)/i,
|
|
@@ -40749,7 +40862,7 @@ var matchMonthPatterns = {
|
|
|
40749
40862
|
};
|
|
40750
40863
|
var parseMonthPatterns = {
|
|
40751
40864
|
narrow: [/^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i],
|
|
40752
|
-
any: [/^一|
|
|
40865
|
+
any: [/^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i]
|
|
40753
40866
|
};
|
|
40754
40867
|
var matchDayPatterns = {
|
|
40755
40868
|
narrow: /^[一二三四五六日]/i,
|
|
@@ -40761,17 +40874,17 @@ var parseDayPatterns = {
|
|
|
40761
40874
|
any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i]
|
|
40762
40875
|
};
|
|
40763
40876
|
var matchDayPeriodPatterns = {
|
|
40764
|
-
any: /^(
|
|
40877
|
+
any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
|
|
40765
40878
|
};
|
|
40766
40879
|
var parseDayPeriodPatterns = {
|
|
40767
40880
|
any: {
|
|
40768
|
-
am:
|
|
40769
|
-
pm:
|
|
40881
|
+
am: /^上午?/i,
|
|
40882
|
+
pm: /^下午?/i,
|
|
40770
40883
|
midnight: /^午夜/i,
|
|
40771
40884
|
noon: /^[中正]午/i,
|
|
40772
40885
|
morning: /^早上/i,
|
|
40773
40886
|
afternoon: /^下午/i,
|
|
40774
|
-
evening:
|
|
40887
|
+
evening: /^晚上?/i,
|
|
40775
40888
|
night: /^凌晨/i
|
|
40776
40889
|
}
|
|
40777
40890
|
};
|
|
@@ -40828,6 +40941,7 @@ var match = {
|
|
|
40828
40941
|
* @author Song Shuoyun [@fnlctrl]{@link https://github.com/fnlctrl}
|
|
40829
40942
|
* @author sabrinaM [@sabrinamiao]{@link https://github.com/sabrinamiao}
|
|
40830
40943
|
* @author Carney Wu [@cubicwork]{@link https://github.com/cubicwork}
|
|
40944
|
+
* @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam}
|
|
40831
40945
|
*/
|
|
40832
40946
|
|
|
40833
40947
|
var locale = {
|