@coreui/vue-pro 4.7.0-alpha.0 → 4.7.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/README.md +1 -1
- package/dist/components/element-cover/CElementCover.d.ts +14 -11
- package/dist/components/smart-table/CSmartTable.d.ts +19 -8
- package/dist/components/smart-table/CSmartTableHead.d.ts +3 -3
- package/dist/components/smart-table/CSmartTableInterface.d.ts +4 -0
- package/dist/components/table/CTable.d.ts +4 -10
- package/dist/index.es.js +287 -3553
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +288 -3554
- package/dist/index.js.map +1 -1
- package/dist/utils/calendar.d.ts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/isInViewport.d.ts +2 -0
- package/package.json +10 -14
- package/src/components/carousel/CCarousel.ts +3 -3
- package/src/components/date-range-picker/CDateRangePicker.ts +2 -0
- package/src/components/element-cover/CElementCover.ts +55 -40
- package/src/components/form/CFormControlWrapper.ts +36 -22
- package/src/components/sidebar/CSidebar.ts +5 -5
- package/src/components/smart-table/CSmartTable.ts +46 -6
- package/src/components/smart-table/CSmartTableHead.ts +1 -1
- package/src/components/smart-table/CSmartTableInterface.ts +6 -0
- package/src/components/table/CTable.ts +45 -42
- package/src/components/time-picker/CTimePicker.ts +4 -3
- package/src/utils/calendar.ts +2 -2
- package/src/utils/index.ts +2 -2
- package/src/utils/isInViewport.ts +11 -0
- package/src/utils/time.ts +8 -10
- package/src/utils/isVisible.ts +0 -11
package/dist/index.js
CHANGED
|
@@ -1941,12 +1941,12 @@ const getPreviousSibling = (elem, selector) => {
|
|
|
1941
1941
|
return;
|
|
1942
1942
|
};
|
|
1943
1943
|
|
|
1944
|
-
const
|
|
1944
|
+
const isInViewport = (element) => {
|
|
1945
1945
|
const rect = element.getBoundingClientRect();
|
|
1946
|
-
return (rect.top >= 0 &&
|
|
1947
|
-
rect.left >= 0 &&
|
|
1948
|
-
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
|
|
1949
|
-
rect.right <= (window.innerWidth || document.documentElement.clientWidth));
|
|
1946
|
+
return (Math.floor(rect.top) >= 0 &&
|
|
1947
|
+
Math.floor(rect.left) >= 0 &&
|
|
1948
|
+
Math.floor(rect.bottom) <= (window.innerHeight || document.documentElement.clientHeight) &&
|
|
1949
|
+
Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth));
|
|
1950
1950
|
};
|
|
1951
1951
|
|
|
1952
1952
|
const CCarousel = vue.defineComponent({
|
|
@@ -2060,7 +2060,7 @@ const CCarousel = vue.defineComponent({
|
|
|
2060
2060
|
const nextItemWhenVisible = () => {
|
|
2061
2061
|
// Don't call next when the page isn't visible
|
|
2062
2062
|
// or the carousel or its parent isn't visible
|
|
2063
|
-
if (!document.hidden &&
|
|
2063
|
+
if (!document.hidden && isInViewport(carouselRef.value)) {
|
|
2064
2064
|
handleControlClick('next');
|
|
2065
2065
|
}
|
|
2066
2066
|
};
|
|
@@ -2079,7 +2079,7 @@ const CCarousel = vue.defineComponent({
|
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
2081
|
const handleScroll = () => {
|
|
2082
|
-
if (!document.hidden &&
|
|
2082
|
+
if (!document.hidden && isInViewport(carouselRef.value)) {
|
|
2083
2083
|
visible.value = true;
|
|
2084
2084
|
}
|
|
2085
2085
|
else {
|
|
@@ -2282,7 +2282,7 @@ function requiredArgs(required, args) {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
2284
|
|
|
2285
|
-
function _typeof$
|
|
2285
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
|
|
2286
2286
|
/**
|
|
2287
2287
|
* @name toDate
|
|
2288
2288
|
* @category Common Helpers
|
|
@@ -2318,7 +2318,7 @@ function toDate(argument) {
|
|
|
2318
2318
|
requiredArgs(1, arguments);
|
|
2319
2319
|
var argStr = Object.prototype.toString.call(argument); // Clone the date
|
|
2320
2320
|
|
|
2321
|
-
if (argument instanceof Date || _typeof$
|
|
2321
|
+
if (argument instanceof Date || _typeof$1(argument) === 'object' && argStr === '[object Date]') {
|
|
2322
2322
|
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
2323
2323
|
return new Date(argument.getTime());
|
|
2324
2324
|
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
@@ -2383,46 +2383,7 @@ function getTimezoneOffsetInMilliseconds(date) {
|
|
|
2383
2383
|
return date.getTime() - utcDate.getTime();
|
|
2384
2384
|
}
|
|
2385
2385
|
|
|
2386
|
-
|
|
2387
|
-
* Days in 1 week.
|
|
2388
|
-
*
|
|
2389
|
-
* @name daysInWeek
|
|
2390
|
-
* @constant
|
|
2391
|
-
* @type {number}
|
|
2392
|
-
* @default
|
|
2393
|
-
*/
|
|
2394
|
-
/**
|
|
2395
|
-
* Milliseconds in 1 minute
|
|
2396
|
-
*
|
|
2397
|
-
* @name millisecondsInMinute
|
|
2398
|
-
* @constant
|
|
2399
|
-
* @type {number}
|
|
2400
|
-
* @default
|
|
2401
|
-
*/
|
|
2402
|
-
|
|
2403
|
-
var millisecondsInMinute = 60000;
|
|
2404
|
-
/**
|
|
2405
|
-
* Milliseconds in 1 hour
|
|
2406
|
-
*
|
|
2407
|
-
* @name millisecondsInHour
|
|
2408
|
-
* @constant
|
|
2409
|
-
* @type {number}
|
|
2410
|
-
* @default
|
|
2411
|
-
*/
|
|
2412
|
-
|
|
2413
|
-
var millisecondsInHour = 3600000;
|
|
2414
|
-
/**
|
|
2415
|
-
* Milliseconds in 1 second
|
|
2416
|
-
*
|
|
2417
|
-
* @name millisecondsInSecond
|
|
2418
|
-
* @constant
|
|
2419
|
-
* @type {number}
|
|
2420
|
-
* @default
|
|
2421
|
-
*/
|
|
2422
|
-
|
|
2423
|
-
var millisecondsInSecond = 1000;
|
|
2424
|
-
|
|
2425
|
-
function _typeof$w(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$w = function _typeof(obj) { return typeof obj; }; } else { _typeof$w = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$w(obj); }
|
|
2386
|
+
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); }
|
|
2426
2387
|
/**
|
|
2427
2388
|
* @name isDate
|
|
2428
2389
|
* @category Common Helpers
|
|
@@ -2458,7 +2419,7 @@ function _typeof$w(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
|
|
|
2458
2419
|
|
|
2459
2420
|
function isDate(value) {
|
|
2460
2421
|
requiredArgs(1, arguments);
|
|
2461
|
-
return value instanceof Date || _typeof
|
|
2422
|
+
return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
2462
2423
|
}
|
|
2463
2424
|
|
|
2464
2425
|
/**
|
|
@@ -2694,7 +2655,7 @@ function addLeadingZeros(number, targetLength) {
|
|
|
2694
2655
|
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
2695
2656
|
*/
|
|
2696
2657
|
|
|
2697
|
-
var formatters$
|
|
2658
|
+
var formatters$2 = {
|
|
2698
2659
|
// Year
|
|
2699
2660
|
y: function y(date, token) {
|
|
2700
2661
|
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
@@ -2763,6 +2724,7 @@ var formatters$1 = {
|
|
|
2763
2724
|
return addLeadingZeros(fractionalSeconds, token.length);
|
|
2764
2725
|
}
|
|
2765
2726
|
};
|
|
2727
|
+
var formatters$3 = formatters$2;
|
|
2766
2728
|
|
|
2767
2729
|
var dayPeriodEnum = {
|
|
2768
2730
|
am: 'am',
|
|
@@ -2860,7 +2822,7 @@ var formatters = {
|
|
|
2860
2822
|
});
|
|
2861
2823
|
}
|
|
2862
2824
|
|
|
2863
|
-
return formatters$
|
|
2825
|
+
return formatters$3.y(date, token);
|
|
2864
2826
|
},
|
|
2865
2827
|
// Local week-numbering year
|
|
2866
2828
|
Y: function Y(date, token, localize, options) {
|
|
@@ -2993,7 +2955,7 @@ var formatters = {
|
|
|
2993
2955
|
switch (token) {
|
|
2994
2956
|
case 'M':
|
|
2995
2957
|
case 'MM':
|
|
2996
|
-
return formatters$
|
|
2958
|
+
return formatters$3.M(date, token);
|
|
2997
2959
|
// 1st, 2nd, ..., 12th
|
|
2998
2960
|
|
|
2999
2961
|
case 'Mo':
|
|
@@ -3098,7 +3060,7 @@ var formatters = {
|
|
|
3098
3060
|
});
|
|
3099
3061
|
}
|
|
3100
3062
|
|
|
3101
|
-
return formatters$
|
|
3063
|
+
return formatters$3.d(date, token);
|
|
3102
3064
|
},
|
|
3103
3065
|
// Day of year
|
|
3104
3066
|
D: function D(date, token, localize) {
|
|
@@ -3419,7 +3381,7 @@ var formatters = {
|
|
|
3419
3381
|
});
|
|
3420
3382
|
}
|
|
3421
3383
|
|
|
3422
|
-
return formatters$
|
|
3384
|
+
return formatters$3.h(date, token);
|
|
3423
3385
|
},
|
|
3424
3386
|
// Hour [0-23]
|
|
3425
3387
|
H: function H(date, token, localize) {
|
|
@@ -3429,7 +3391,7 @@ var formatters = {
|
|
|
3429
3391
|
});
|
|
3430
3392
|
}
|
|
3431
3393
|
|
|
3432
|
-
return formatters$
|
|
3394
|
+
return formatters$3.H(date, token);
|
|
3433
3395
|
},
|
|
3434
3396
|
// Hour [0-11]
|
|
3435
3397
|
K: function K(date, token, localize) {
|
|
@@ -3464,7 +3426,7 @@ var formatters = {
|
|
|
3464
3426
|
});
|
|
3465
3427
|
}
|
|
3466
3428
|
|
|
3467
|
-
return formatters$
|
|
3429
|
+
return formatters$3.m(date, token);
|
|
3468
3430
|
},
|
|
3469
3431
|
// Second
|
|
3470
3432
|
s: function s(date, token, localize) {
|
|
@@ -3474,11 +3436,11 @@ var formatters = {
|
|
|
3474
3436
|
});
|
|
3475
3437
|
}
|
|
3476
3438
|
|
|
3477
|
-
return formatters$
|
|
3439
|
+
return formatters$3.s(date, token);
|
|
3478
3440
|
},
|
|
3479
3441
|
// Fraction of second
|
|
3480
3442
|
S: function S(date, token) {
|
|
3481
|
-
return formatters$
|
|
3443
|
+
return formatters$3.S(date, token);
|
|
3482
3444
|
},
|
|
3483
3445
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
3484
3446
|
X: function X(date, token, _localize, options) {
|
|
@@ -3622,6 +3584,8 @@ function formatTimezone(offset, dirtyDelimiter) {
|
|
|
3622
3584
|
return sign + hours + delimiter + minutes;
|
|
3623
3585
|
}
|
|
3624
3586
|
|
|
3587
|
+
var formatters$1 = formatters;
|
|
3588
|
+
|
|
3625
3589
|
var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
3626
3590
|
switch (pattern) {
|
|
3627
3591
|
case 'P':
|
|
@@ -3717,6 +3681,7 @@ var longFormatters = {
|
|
|
3717
3681
|
p: timeLongFormatter,
|
|
3718
3682
|
P: dateTimeLongFormatter
|
|
3719
3683
|
};
|
|
3684
|
+
var longFormatters$1 = longFormatters;
|
|
3720
3685
|
|
|
3721
3686
|
var protectedDayOfYearTokens = ['D', 'DD'];
|
|
3722
3687
|
var protectedWeekYearTokens = ['YY', 'YYYY'];
|
|
@@ -3825,6 +3790,8 @@ var formatDistance = function formatDistance(token, count, options) {
|
|
|
3825
3790
|
return result;
|
|
3826
3791
|
};
|
|
3827
3792
|
|
|
3793
|
+
var formatDistance$1 = formatDistance;
|
|
3794
|
+
|
|
3828
3795
|
function buildFormatLongFn(args) {
|
|
3829
3796
|
return function () {
|
|
3830
3797
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -3867,6 +3834,7 @@ var formatLong = {
|
|
|
3867
3834
|
defaultWidth: 'full'
|
|
3868
3835
|
})
|
|
3869
3836
|
};
|
|
3837
|
+
var formatLong$1 = formatLong;
|
|
3870
3838
|
|
|
3871
3839
|
var formatRelativeLocale = {
|
|
3872
3840
|
lastWeek: "'last' eeee 'at' p",
|
|
@@ -3881,6 +3849,8 @@ var formatRelative = function formatRelative(token, _date, _baseDate, _options)
|
|
|
3881
3849
|
return formatRelativeLocale[token];
|
|
3882
3850
|
};
|
|
3883
3851
|
|
|
3852
|
+
var formatRelative$1 = formatRelative;
|
|
3853
|
+
|
|
3884
3854
|
function buildLocalizeFn(args) {
|
|
3885
3855
|
return function (dirtyIndex, options) {
|
|
3886
3856
|
var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
|
|
@@ -4048,6 +4018,7 @@ var localize = {
|
|
|
4048
4018
|
defaultFormattingWidth: 'wide'
|
|
4049
4019
|
})
|
|
4050
4020
|
};
|
|
4021
|
+
var localize$1 = localize;
|
|
4051
4022
|
|
|
4052
4023
|
function buildMatchFn(args) {
|
|
4053
4024
|
return function (string) {
|
|
@@ -4211,6 +4182,7 @@ var match = {
|
|
|
4211
4182
|
defaultParseWidth: 'any'
|
|
4212
4183
|
})
|
|
4213
4184
|
};
|
|
4185
|
+
var match$1 = match;
|
|
4214
4186
|
|
|
4215
4187
|
/**
|
|
4216
4188
|
* @type {Locale}
|
|
@@ -4223,11 +4195,11 @@ var match = {
|
|
|
4223
4195
|
*/
|
|
4224
4196
|
var locale = {
|
|
4225
4197
|
code: 'en-US',
|
|
4226
|
-
formatDistance: formatDistance,
|
|
4227
|
-
formatLong: formatLong,
|
|
4228
|
-
formatRelative: formatRelative,
|
|
4229
|
-
localize: localize,
|
|
4230
|
-
match: match,
|
|
4198
|
+
formatDistance: formatDistance$1,
|
|
4199
|
+
formatLong: formatLong$1,
|
|
4200
|
+
formatRelative: formatRelative$1,
|
|
4201
|
+
localize: localize$1,
|
|
4202
|
+
match: match$1,
|
|
4231
4203
|
options: {
|
|
4232
4204
|
weekStartsOn: 0
|
|
4233
4205
|
/* Sunday */
|
|
@@ -4235,6 +4207,7 @@ var locale = {
|
|
|
4235
4207
|
firstWeekContainsDate: 1
|
|
4236
4208
|
}
|
|
4237
4209
|
};
|
|
4210
|
+
var defaultLocale = locale;
|
|
4238
4211
|
|
|
4239
4212
|
// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
|
|
4240
4213
|
// (one of the certain letters followed by `o`)
|
|
@@ -4552,7 +4525,7 @@ function format$1(dirtyDate, dirtyFormatStr, options) {
|
|
|
4552
4525
|
requiredArgs(2, arguments);
|
|
4553
4526
|
var formatStr = String(dirtyFormatStr);
|
|
4554
4527
|
var defaultOptions = getDefaultOptions();
|
|
4555
|
-
var locale
|
|
4528
|
+
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 : defaultLocale;
|
|
4556
4529
|
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
|
|
4557
4530
|
|
|
4558
4531
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
@@ -4565,3365 +4538,84 @@ function format$1(dirtyDate, dirtyFormatStr, options) {
|
|
|
4565
4538
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
4566
4539
|
}
|
|
4567
4540
|
|
|
4568
|
-
if (!locale
|
|
4541
|
+
if (!locale.localize) {
|
|
4569
4542
|
throw new RangeError('locale must contain localize property');
|
|
4570
4543
|
}
|
|
4571
4544
|
|
|
4572
|
-
if (!locale
|
|
4545
|
+
if (!locale.formatLong) {
|
|
4573
4546
|
throw new RangeError('locale must contain formatLong property');
|
|
4574
|
-
}
|
|
4575
|
-
|
|
4576
|
-
var originalDate = toDate(dirtyDate);
|
|
4577
|
-
|
|
4578
|
-
if (!isValid(originalDate)) {
|
|
4579
|
-
throw new RangeError('Invalid time value');
|
|
4580
|
-
} // Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
4581
|
-
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
4582
|
-
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
|
|
4586
|
-
var utcDate = subMilliseconds(originalDate, timezoneOffset);
|
|
4587
|
-
var formatterOptions = {
|
|
4588
|
-
firstWeekContainsDate: firstWeekContainsDate,
|
|
4589
|
-
weekStartsOn: weekStartsOn,
|
|
4590
|
-
locale: locale$1,
|
|
4591
|
-
_originalDate: originalDate
|
|
4592
|
-
};
|
|
4593
|
-
var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
|
|
4594
|
-
var firstCharacter = substring[0];
|
|
4595
|
-
|
|
4596
|
-
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
4597
|
-
var longFormatter = longFormatters[firstCharacter];
|
|
4598
|
-
return longFormatter(substring, locale$1.formatLong);
|
|
4599
|
-
}
|
|
4600
|
-
|
|
4601
|
-
return substring;
|
|
4602
|
-
}).join('').match(formattingTokensRegExp).map(function (substring) {
|
|
4603
|
-
// Replace two single quote characters with one single quote character
|
|
4604
|
-
if (substring === "''") {
|
|
4605
|
-
return "'";
|
|
4606
|
-
}
|
|
4607
|
-
|
|
4608
|
-
var firstCharacter = substring[0];
|
|
4609
|
-
|
|
4610
|
-
if (firstCharacter === "'") {
|
|
4611
|
-
return cleanEscapedString(substring);
|
|
4612
|
-
}
|
|
4613
|
-
|
|
4614
|
-
var formatter = formatters[firstCharacter];
|
|
4615
|
-
|
|
4616
|
-
if (formatter) {
|
|
4617
|
-
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
4618
|
-
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
4619
|
-
}
|
|
4620
|
-
|
|
4621
|
-
if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
|
|
4622
|
-
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
4623
|
-
}
|
|
4624
|
-
|
|
4625
|
-
return formatter(utcDate, substring, locale$1.localize, formatterOptions);
|
|
4626
|
-
}
|
|
4627
|
-
|
|
4628
|
-
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
4629
|
-
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
4630
|
-
}
|
|
4631
|
-
|
|
4632
|
-
return substring;
|
|
4633
|
-
}).join('');
|
|
4634
|
-
return result;
|
|
4635
|
-
}
|
|
4636
|
-
|
|
4637
|
-
function cleanEscapedString(input) {
|
|
4638
|
-
var matched = input.match(escapedStringRegExp);
|
|
4639
|
-
|
|
4640
|
-
if (!matched) {
|
|
4641
|
-
return input;
|
|
4642
|
-
}
|
|
4643
|
-
|
|
4644
|
-
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
4645
|
-
}
|
|
4646
|
-
|
|
4647
|
-
function _typeof$v(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$v = function _typeof(obj) { return typeof obj; }; } else { _typeof$v = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$v(obj); }
|
|
4648
|
-
|
|
4649
|
-
function _inherits$v(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$v(subClass, superClass); }
|
|
4650
|
-
|
|
4651
|
-
function _setPrototypeOf$v(o, p) { _setPrototypeOf$v = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$v(o, p); }
|
|
4652
|
-
|
|
4653
|
-
function _createSuper$v(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$v(); return function _createSuperInternal() { var Super = _getPrototypeOf$v(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$v(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$v(this, result); }; }
|
|
4654
|
-
|
|
4655
|
-
function _possibleConstructorReturn$v(self, call) { if (call && (_typeof$v(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$v(self); }
|
|
4656
|
-
|
|
4657
|
-
function _assertThisInitialized$v(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4658
|
-
|
|
4659
|
-
function _isNativeReflectConstruct$v() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4660
|
-
|
|
4661
|
-
function _getPrototypeOf$v(o) { _getPrototypeOf$v = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$v(o); }
|
|
4662
|
-
|
|
4663
|
-
function _classCallCheck$w(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4664
|
-
|
|
4665
|
-
function _defineProperties$w(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4666
|
-
|
|
4667
|
-
function _createClass$w(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$w(Constructor.prototype, protoProps); if (staticProps) _defineProperties$w(Constructor, staticProps); return Constructor; }
|
|
4668
|
-
|
|
4669
|
-
function _defineProperty$v(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4670
|
-
var Setter = /*#__PURE__*/function () {
|
|
4671
|
-
function Setter() {
|
|
4672
|
-
_classCallCheck$w(this, Setter);
|
|
4673
|
-
|
|
4674
|
-
_defineProperty$v(this, "subPriority", 0);
|
|
4675
|
-
}
|
|
4676
|
-
|
|
4677
|
-
_createClass$w(Setter, [{
|
|
4678
|
-
key: "validate",
|
|
4679
|
-
value: function validate(_utcDate, _options) {
|
|
4680
|
-
return true;
|
|
4681
|
-
}
|
|
4682
|
-
}]);
|
|
4683
|
-
|
|
4684
|
-
return Setter;
|
|
4685
|
-
}();
|
|
4686
|
-
var ValueSetter = /*#__PURE__*/function (_Setter) {
|
|
4687
|
-
_inherits$v(ValueSetter, _Setter);
|
|
4688
|
-
|
|
4689
|
-
var _super = _createSuper$v(ValueSetter);
|
|
4690
|
-
|
|
4691
|
-
function ValueSetter(value, validateValue, setValue, priority, subPriority) {
|
|
4692
|
-
var _this;
|
|
4693
|
-
|
|
4694
|
-
_classCallCheck$w(this, ValueSetter);
|
|
4695
|
-
|
|
4696
|
-
_this = _super.call(this);
|
|
4697
|
-
_this.value = value;
|
|
4698
|
-
_this.validateValue = validateValue;
|
|
4699
|
-
_this.setValue = setValue;
|
|
4700
|
-
_this.priority = priority;
|
|
4701
|
-
|
|
4702
|
-
if (subPriority) {
|
|
4703
|
-
_this.subPriority = subPriority;
|
|
4704
|
-
}
|
|
4705
|
-
|
|
4706
|
-
return _this;
|
|
4707
|
-
}
|
|
4708
|
-
|
|
4709
|
-
_createClass$w(ValueSetter, [{
|
|
4710
|
-
key: "validate",
|
|
4711
|
-
value: function validate(utcDate, options) {
|
|
4712
|
-
return this.validateValue(utcDate, this.value, options);
|
|
4713
|
-
}
|
|
4714
|
-
}, {
|
|
4715
|
-
key: "set",
|
|
4716
|
-
value: function set(utcDate, flags, options) {
|
|
4717
|
-
return this.setValue(utcDate, flags, this.value, options);
|
|
4718
|
-
}
|
|
4719
|
-
}]);
|
|
4720
|
-
|
|
4721
|
-
return ValueSetter;
|
|
4722
|
-
}(Setter);
|
|
4723
|
-
|
|
4724
|
-
function _classCallCheck$v(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4725
|
-
|
|
4726
|
-
function _defineProperties$v(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4727
|
-
|
|
4728
|
-
function _createClass$v(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$v(Constructor.prototype, protoProps); if (staticProps) _defineProperties$v(Constructor, staticProps); return Constructor; }
|
|
4729
|
-
var Parser = /*#__PURE__*/function () {
|
|
4730
|
-
function Parser() {
|
|
4731
|
-
_classCallCheck$v(this, Parser);
|
|
4732
|
-
}
|
|
4733
|
-
|
|
4734
|
-
_createClass$v(Parser, [{
|
|
4735
|
-
key: "run",
|
|
4736
|
-
value: function run(dateString, token, match, options) {
|
|
4737
|
-
var result = this.parse(dateString, token, match, options);
|
|
4738
|
-
|
|
4739
|
-
if (!result) {
|
|
4740
|
-
return null;
|
|
4741
|
-
}
|
|
4742
|
-
|
|
4743
|
-
return {
|
|
4744
|
-
setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority),
|
|
4745
|
-
rest: result.rest
|
|
4746
|
-
};
|
|
4747
|
-
}
|
|
4748
|
-
}, {
|
|
4749
|
-
key: "validate",
|
|
4750
|
-
value: function validate(_utcDate, _value, _options) {
|
|
4751
|
-
return true;
|
|
4752
|
-
}
|
|
4753
|
-
}]);
|
|
4754
|
-
|
|
4755
|
-
return Parser;
|
|
4756
|
-
}();
|
|
4757
|
-
|
|
4758
|
-
function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
|
|
4759
|
-
|
|
4760
|
-
function _classCallCheck$u(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4761
|
-
|
|
4762
|
-
function _defineProperties$u(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4763
|
-
|
|
4764
|
-
function _createClass$u(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$u(Constructor.prototype, protoProps); if (staticProps) _defineProperties$u(Constructor, staticProps); return Constructor; }
|
|
4765
|
-
|
|
4766
|
-
function _inherits$u(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$u(subClass, superClass); }
|
|
4767
|
-
|
|
4768
|
-
function _setPrototypeOf$u(o, p) { _setPrototypeOf$u = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$u(o, p); }
|
|
4769
|
-
|
|
4770
|
-
function _createSuper$u(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$u(); return function _createSuperInternal() { var Super = _getPrototypeOf$u(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$u(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$u(this, result); }; }
|
|
4771
|
-
|
|
4772
|
-
function _possibleConstructorReturn$u(self, call) { if (call && (_typeof$u(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$u(self); }
|
|
4773
|
-
|
|
4774
|
-
function _assertThisInitialized$u(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4775
|
-
|
|
4776
|
-
function _isNativeReflectConstruct$u() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4777
|
-
|
|
4778
|
-
function _getPrototypeOf$u(o) { _getPrototypeOf$u = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$u(o); }
|
|
4779
|
-
|
|
4780
|
-
function _defineProperty$u(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4781
|
-
var EraParser = /*#__PURE__*/function (_Parser) {
|
|
4782
|
-
_inherits$u(EraParser, _Parser);
|
|
4783
|
-
|
|
4784
|
-
var _super = _createSuper$u(EraParser);
|
|
4785
|
-
|
|
4786
|
-
function EraParser() {
|
|
4787
|
-
var _this;
|
|
4788
|
-
|
|
4789
|
-
_classCallCheck$u(this, EraParser);
|
|
4790
|
-
|
|
4791
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4792
|
-
args[_key] = arguments[_key];
|
|
4793
|
-
}
|
|
4794
|
-
|
|
4795
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
4796
|
-
|
|
4797
|
-
_defineProperty$u(_assertThisInitialized$u(_this), "priority", 140);
|
|
4798
|
-
|
|
4799
|
-
_defineProperty$u(_assertThisInitialized$u(_this), "incompatibleTokens", ['R', 'u', 't', 'T']);
|
|
4800
|
-
|
|
4801
|
-
return _this;
|
|
4802
|
-
}
|
|
4803
|
-
|
|
4804
|
-
_createClass$u(EraParser, [{
|
|
4805
|
-
key: "parse",
|
|
4806
|
-
value: function parse(dateString, token, match) {
|
|
4807
|
-
switch (token) {
|
|
4808
|
-
// AD, BC
|
|
4809
|
-
case 'G':
|
|
4810
|
-
case 'GG':
|
|
4811
|
-
case 'GGG':
|
|
4812
|
-
return match.era(dateString, {
|
|
4813
|
-
width: 'abbreviated'
|
|
4814
|
-
}) || match.era(dateString, {
|
|
4815
|
-
width: 'narrow'
|
|
4816
|
-
});
|
|
4817
|
-
// A, B
|
|
4818
|
-
|
|
4819
|
-
case 'GGGGG':
|
|
4820
|
-
return match.era(dateString, {
|
|
4821
|
-
width: 'narrow'
|
|
4822
|
-
});
|
|
4823
|
-
// Anno Domini, Before Christ
|
|
4824
|
-
|
|
4825
|
-
case 'GGGG':
|
|
4826
|
-
default:
|
|
4827
|
-
return match.era(dateString, {
|
|
4828
|
-
width: 'wide'
|
|
4829
|
-
}) || match.era(dateString, {
|
|
4830
|
-
width: 'abbreviated'
|
|
4831
|
-
}) || match.era(dateString, {
|
|
4832
|
-
width: 'narrow'
|
|
4833
|
-
});
|
|
4834
|
-
}
|
|
4835
|
-
}
|
|
4836
|
-
}, {
|
|
4837
|
-
key: "set",
|
|
4838
|
-
value: function set(date, flags, value) {
|
|
4839
|
-
flags.era = value;
|
|
4840
|
-
date.setUTCFullYear(value, 0, 1);
|
|
4841
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
4842
|
-
return date;
|
|
4843
|
-
}
|
|
4844
|
-
}]);
|
|
4845
|
-
|
|
4846
|
-
return EraParser;
|
|
4847
|
-
}(Parser);
|
|
4848
|
-
|
|
4849
|
-
var numericPatterns = {
|
|
4850
|
-
month: /^(1[0-2]|0?\d)/,
|
|
4851
|
-
// 0 to 12
|
|
4852
|
-
date: /^(3[0-1]|[0-2]?\d)/,
|
|
4853
|
-
// 0 to 31
|
|
4854
|
-
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
4855
|
-
// 0 to 366
|
|
4856
|
-
week: /^(5[0-3]|[0-4]?\d)/,
|
|
4857
|
-
// 0 to 53
|
|
4858
|
-
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
4859
|
-
// 0 to 23
|
|
4860
|
-
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
4861
|
-
// 0 to 24
|
|
4862
|
-
hour11h: /^(1[0-1]|0?\d)/,
|
|
4863
|
-
// 0 to 11
|
|
4864
|
-
hour12h: /^(1[0-2]|0?\d)/,
|
|
4865
|
-
// 0 to 12
|
|
4866
|
-
minute: /^[0-5]?\d/,
|
|
4867
|
-
// 0 to 59
|
|
4868
|
-
second: /^[0-5]?\d/,
|
|
4869
|
-
// 0 to 59
|
|
4870
|
-
singleDigit: /^\d/,
|
|
4871
|
-
// 0 to 9
|
|
4872
|
-
twoDigits: /^\d{1,2}/,
|
|
4873
|
-
// 0 to 99
|
|
4874
|
-
threeDigits: /^\d{1,3}/,
|
|
4875
|
-
// 0 to 999
|
|
4876
|
-
fourDigits: /^\d{1,4}/,
|
|
4877
|
-
// 0 to 9999
|
|
4878
|
-
anyDigitsSigned: /^-?\d+/,
|
|
4879
|
-
singleDigitSigned: /^-?\d/,
|
|
4880
|
-
// 0 to 9, -0 to -9
|
|
4881
|
-
twoDigitsSigned: /^-?\d{1,2}/,
|
|
4882
|
-
// 0 to 99, -0 to -99
|
|
4883
|
-
threeDigitsSigned: /^-?\d{1,3}/,
|
|
4884
|
-
// 0 to 999, -0 to -999
|
|
4885
|
-
fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
|
|
4886
|
-
|
|
4887
|
-
};
|
|
4888
|
-
var timezonePatterns = {
|
|
4889
|
-
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
4890
|
-
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
4891
|
-
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
4892
|
-
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
4893
|
-
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
4894
|
-
};
|
|
4895
|
-
|
|
4896
|
-
function mapValue(parseFnResult, mapFn) {
|
|
4897
|
-
if (!parseFnResult) {
|
|
4898
|
-
return parseFnResult;
|
|
4899
|
-
}
|
|
4900
|
-
|
|
4901
|
-
return {
|
|
4902
|
-
value: mapFn(parseFnResult.value),
|
|
4903
|
-
rest: parseFnResult.rest
|
|
4904
|
-
};
|
|
4905
|
-
}
|
|
4906
|
-
function parseNumericPattern(pattern, dateString) {
|
|
4907
|
-
var matchResult = dateString.match(pattern);
|
|
4908
|
-
|
|
4909
|
-
if (!matchResult) {
|
|
4910
|
-
return null;
|
|
4911
|
-
}
|
|
4912
|
-
|
|
4913
|
-
return {
|
|
4914
|
-
value: parseInt(matchResult[0], 10),
|
|
4915
|
-
rest: dateString.slice(matchResult[0].length)
|
|
4916
|
-
};
|
|
4917
|
-
}
|
|
4918
|
-
function parseTimezonePattern(pattern, dateString) {
|
|
4919
|
-
var matchResult = dateString.match(pattern);
|
|
4920
|
-
|
|
4921
|
-
if (!matchResult) {
|
|
4922
|
-
return null;
|
|
4923
|
-
} // Input is 'Z'
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
if (matchResult[0] === 'Z') {
|
|
4927
|
-
return {
|
|
4928
|
-
value: 0,
|
|
4929
|
-
rest: dateString.slice(1)
|
|
4930
|
-
};
|
|
4931
|
-
}
|
|
4932
|
-
|
|
4933
|
-
var sign = matchResult[1] === '+' ? 1 : -1;
|
|
4934
|
-
var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
|
|
4935
|
-
var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
|
|
4936
|
-
var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
|
|
4937
|
-
return {
|
|
4938
|
-
value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond),
|
|
4939
|
-
rest: dateString.slice(matchResult[0].length)
|
|
4940
|
-
};
|
|
4941
|
-
}
|
|
4942
|
-
function parseAnyDigitsSigned(dateString) {
|
|
4943
|
-
return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);
|
|
4944
|
-
}
|
|
4945
|
-
function parseNDigits(n, dateString) {
|
|
4946
|
-
switch (n) {
|
|
4947
|
-
case 1:
|
|
4948
|
-
return parseNumericPattern(numericPatterns.singleDigit, dateString);
|
|
4949
|
-
|
|
4950
|
-
case 2:
|
|
4951
|
-
return parseNumericPattern(numericPatterns.twoDigits, dateString);
|
|
4952
|
-
|
|
4953
|
-
case 3:
|
|
4954
|
-
return parseNumericPattern(numericPatterns.threeDigits, dateString);
|
|
4955
|
-
|
|
4956
|
-
case 4:
|
|
4957
|
-
return parseNumericPattern(numericPatterns.fourDigits, dateString);
|
|
4958
|
-
|
|
4959
|
-
default:
|
|
4960
|
-
return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString);
|
|
4961
|
-
}
|
|
4962
|
-
}
|
|
4963
|
-
function parseNDigitsSigned(n, dateString) {
|
|
4964
|
-
switch (n) {
|
|
4965
|
-
case 1:
|
|
4966
|
-
return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
|
|
4967
|
-
|
|
4968
|
-
case 2:
|
|
4969
|
-
return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);
|
|
4970
|
-
|
|
4971
|
-
case 3:
|
|
4972
|
-
return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);
|
|
4973
|
-
|
|
4974
|
-
case 4:
|
|
4975
|
-
return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
|
|
4976
|
-
|
|
4977
|
-
default:
|
|
4978
|
-
return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString);
|
|
4979
|
-
}
|
|
4980
|
-
}
|
|
4981
|
-
function dayPeriodEnumToHours(dayPeriod) {
|
|
4982
|
-
switch (dayPeriod) {
|
|
4983
|
-
case 'morning':
|
|
4984
|
-
return 4;
|
|
4985
|
-
|
|
4986
|
-
case 'evening':
|
|
4987
|
-
return 17;
|
|
4988
|
-
|
|
4989
|
-
case 'pm':
|
|
4990
|
-
case 'noon':
|
|
4991
|
-
case 'afternoon':
|
|
4992
|
-
return 12;
|
|
4993
|
-
|
|
4994
|
-
case 'am':
|
|
4995
|
-
case 'midnight':
|
|
4996
|
-
case 'night':
|
|
4997
|
-
default:
|
|
4998
|
-
return 0;
|
|
4999
|
-
}
|
|
5000
|
-
}
|
|
5001
|
-
function normalizeTwoDigitYear(twoDigitYear, currentYear) {
|
|
5002
|
-
var isCommonEra = currentYear > 0; // Absolute number of the current year:
|
|
5003
|
-
// 1 -> 1 AC
|
|
5004
|
-
// 0 -> 1 BC
|
|
5005
|
-
// -1 -> 2 BC
|
|
5006
|
-
|
|
5007
|
-
var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
|
|
5008
|
-
var result;
|
|
5009
|
-
|
|
5010
|
-
if (absCurrentYear <= 50) {
|
|
5011
|
-
result = twoDigitYear || 100;
|
|
5012
|
-
} else {
|
|
5013
|
-
var rangeEnd = absCurrentYear + 50;
|
|
5014
|
-
var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
|
|
5015
|
-
var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
|
|
5016
|
-
result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
|
|
5017
|
-
}
|
|
5018
|
-
|
|
5019
|
-
return isCommonEra ? result : 1 - result;
|
|
5020
|
-
}
|
|
5021
|
-
function isLeapYearIndex(year) {
|
|
5022
|
-
return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
|
|
5023
|
-
}
|
|
5024
|
-
|
|
5025
|
-
function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
|
|
5026
|
-
|
|
5027
|
-
function _classCallCheck$t(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5028
|
-
|
|
5029
|
-
function _defineProperties$t(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5030
|
-
|
|
5031
|
-
function _createClass$t(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$t(Constructor.prototype, protoProps); if (staticProps) _defineProperties$t(Constructor, staticProps); return Constructor; }
|
|
5032
|
-
|
|
5033
|
-
function _inherits$t(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$t(subClass, superClass); }
|
|
5034
|
-
|
|
5035
|
-
function _setPrototypeOf$t(o, p) { _setPrototypeOf$t = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$t(o, p); }
|
|
5036
|
-
|
|
5037
|
-
function _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf$t(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$t(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$t(this, result); }; }
|
|
5038
|
-
|
|
5039
|
-
function _possibleConstructorReturn$t(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$t(self); }
|
|
5040
|
-
|
|
5041
|
-
function _assertThisInitialized$t(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5042
|
-
|
|
5043
|
-
function _isNativeReflectConstruct$t() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5044
|
-
|
|
5045
|
-
function _getPrototypeOf$t(o) { _getPrototypeOf$t = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$t(o); }
|
|
5046
|
-
|
|
5047
|
-
function _defineProperty$t(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5048
|
-
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
|
|
5049
|
-
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
5050
|
-
// |----------|-------|----|-------|-------|-------|
|
|
5051
|
-
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
5052
|
-
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
5053
|
-
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
5054
|
-
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
5055
|
-
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
5056
|
-
var YearParser = /*#__PURE__*/function (_Parser) {
|
|
5057
|
-
_inherits$t(YearParser, _Parser);
|
|
5058
|
-
|
|
5059
|
-
var _super = _createSuper$t(YearParser);
|
|
5060
|
-
|
|
5061
|
-
function YearParser() {
|
|
5062
|
-
var _this;
|
|
5063
|
-
|
|
5064
|
-
_classCallCheck$t(this, YearParser);
|
|
5065
|
-
|
|
5066
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5067
|
-
args[_key] = arguments[_key];
|
|
5068
|
-
}
|
|
5069
|
-
|
|
5070
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5071
|
-
|
|
5072
|
-
_defineProperty$t(_assertThisInitialized$t(_this), "priority", 130);
|
|
5073
|
-
|
|
5074
|
-
_defineProperty$t(_assertThisInitialized$t(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
|
|
5075
|
-
|
|
5076
|
-
return _this;
|
|
5077
|
-
}
|
|
5078
|
-
|
|
5079
|
-
_createClass$t(YearParser, [{
|
|
5080
|
-
key: "parse",
|
|
5081
|
-
value: function parse(dateString, token, match) {
|
|
5082
|
-
var valueCallback = function valueCallback(year) {
|
|
5083
|
-
return {
|
|
5084
|
-
year: year,
|
|
5085
|
-
isTwoDigitYear: token === 'yy'
|
|
5086
|
-
};
|
|
5087
|
-
};
|
|
5088
|
-
|
|
5089
|
-
switch (token) {
|
|
5090
|
-
case 'y':
|
|
5091
|
-
return mapValue(parseNDigits(4, dateString), valueCallback);
|
|
5092
|
-
|
|
5093
|
-
case 'yo':
|
|
5094
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
5095
|
-
unit: 'year'
|
|
5096
|
-
}), valueCallback);
|
|
5097
|
-
|
|
5098
|
-
default:
|
|
5099
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
5100
|
-
}
|
|
5101
|
-
}
|
|
5102
|
-
}, {
|
|
5103
|
-
key: "validate",
|
|
5104
|
-
value: function validate(_date, value) {
|
|
5105
|
-
return value.isTwoDigitYear || value.year > 0;
|
|
5106
|
-
}
|
|
5107
|
-
}, {
|
|
5108
|
-
key: "set",
|
|
5109
|
-
value: function set(date, flags, value) {
|
|
5110
|
-
var currentYear = date.getUTCFullYear();
|
|
5111
|
-
|
|
5112
|
-
if (value.isTwoDigitYear) {
|
|
5113
|
-
var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
|
|
5114
|
-
date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
|
|
5115
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5116
|
-
return date;
|
|
5117
|
-
}
|
|
5118
|
-
|
|
5119
|
-
var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
|
|
5120
|
-
date.setUTCFullYear(year, 0, 1);
|
|
5121
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5122
|
-
return date;
|
|
5123
|
-
}
|
|
5124
|
-
}]);
|
|
5125
|
-
|
|
5126
|
-
return YearParser;
|
|
5127
|
-
}(Parser);
|
|
5128
|
-
|
|
5129
|
-
function _typeof$s(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$s = function _typeof(obj) { return typeof obj; }; } else { _typeof$s = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$s(obj); }
|
|
5130
|
-
|
|
5131
|
-
function _classCallCheck$s(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5132
|
-
|
|
5133
|
-
function _defineProperties$s(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5134
|
-
|
|
5135
|
-
function _createClass$s(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$s(Constructor.prototype, protoProps); if (staticProps) _defineProperties$s(Constructor, staticProps); return Constructor; }
|
|
5136
|
-
|
|
5137
|
-
function _inherits$s(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$s(subClass, superClass); }
|
|
5138
|
-
|
|
5139
|
-
function _setPrototypeOf$s(o, p) { _setPrototypeOf$s = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$s(o, p); }
|
|
5140
|
-
|
|
5141
|
-
function _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf$s(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$s(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$s(this, result); }; }
|
|
5142
|
-
|
|
5143
|
-
function _possibleConstructorReturn$s(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$s(self); }
|
|
5144
|
-
|
|
5145
|
-
function _assertThisInitialized$s(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5146
|
-
|
|
5147
|
-
function _isNativeReflectConstruct$s() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5148
|
-
|
|
5149
|
-
function _getPrototypeOf$s(o) { _getPrototypeOf$s = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$s(o); }
|
|
5150
|
-
|
|
5151
|
-
function _defineProperty$s(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5152
|
-
// Local week-numbering year
|
|
5153
|
-
var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
5154
|
-
_inherits$s(LocalWeekYearParser, _Parser);
|
|
5155
|
-
|
|
5156
|
-
var _super = _createSuper$s(LocalWeekYearParser);
|
|
5157
|
-
|
|
5158
|
-
function LocalWeekYearParser() {
|
|
5159
|
-
var _this;
|
|
5160
|
-
|
|
5161
|
-
_classCallCheck$s(this, LocalWeekYearParser);
|
|
5162
|
-
|
|
5163
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5164
|
-
args[_key] = arguments[_key];
|
|
5165
|
-
}
|
|
5166
|
-
|
|
5167
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5168
|
-
|
|
5169
|
-
_defineProperty$s(_assertThisInitialized$s(_this), "priority", 130);
|
|
5170
|
-
|
|
5171
|
-
_defineProperty$s(_assertThisInitialized$s(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
|
|
5172
|
-
|
|
5173
|
-
return _this;
|
|
5174
|
-
}
|
|
5175
|
-
|
|
5176
|
-
_createClass$s(LocalWeekYearParser, [{
|
|
5177
|
-
key: "parse",
|
|
5178
|
-
value: function parse(dateString, token, match) {
|
|
5179
|
-
var valueCallback = function valueCallback(year) {
|
|
5180
|
-
return {
|
|
5181
|
-
year: year,
|
|
5182
|
-
isTwoDigitYear: token === 'YY'
|
|
5183
|
-
};
|
|
5184
|
-
};
|
|
5185
|
-
|
|
5186
|
-
switch (token) {
|
|
5187
|
-
case 'Y':
|
|
5188
|
-
return mapValue(parseNDigits(4, dateString), valueCallback);
|
|
5189
|
-
|
|
5190
|
-
case 'Yo':
|
|
5191
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
5192
|
-
unit: 'year'
|
|
5193
|
-
}), valueCallback);
|
|
5194
|
-
|
|
5195
|
-
default:
|
|
5196
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
5197
|
-
}
|
|
5198
|
-
}
|
|
5199
|
-
}, {
|
|
5200
|
-
key: "validate",
|
|
5201
|
-
value: function validate(_date, value) {
|
|
5202
|
-
return value.isTwoDigitYear || value.year > 0;
|
|
5203
|
-
}
|
|
5204
|
-
}, {
|
|
5205
|
-
key: "set",
|
|
5206
|
-
value: function set(date, flags, value, options) {
|
|
5207
|
-
var currentYear = getUTCWeekYear(date, options);
|
|
5208
|
-
|
|
5209
|
-
if (value.isTwoDigitYear) {
|
|
5210
|
-
var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
|
|
5211
|
-
date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
|
|
5212
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5213
|
-
return startOfUTCWeek(date, options);
|
|
5214
|
-
}
|
|
5215
|
-
|
|
5216
|
-
var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
|
|
5217
|
-
date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
|
|
5218
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5219
|
-
return startOfUTCWeek(date, options);
|
|
5220
|
-
}
|
|
5221
|
-
}]);
|
|
5222
|
-
|
|
5223
|
-
return LocalWeekYearParser;
|
|
5224
|
-
}(Parser);
|
|
5225
|
-
|
|
5226
|
-
function _typeof$r(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$r = function _typeof(obj) { return typeof obj; }; } else { _typeof$r = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$r(obj); }
|
|
5227
|
-
|
|
5228
|
-
function _classCallCheck$r(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5229
|
-
|
|
5230
|
-
function _defineProperties$r(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5231
|
-
|
|
5232
|
-
function _createClass$r(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$r(Constructor.prototype, protoProps); if (staticProps) _defineProperties$r(Constructor, staticProps); return Constructor; }
|
|
5233
|
-
|
|
5234
|
-
function _inherits$r(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$r(subClass, superClass); }
|
|
5235
|
-
|
|
5236
|
-
function _setPrototypeOf$r(o, p) { _setPrototypeOf$r = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$r(o, p); }
|
|
5237
|
-
|
|
5238
|
-
function _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf$r(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$r(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$r(this, result); }; }
|
|
5239
|
-
|
|
5240
|
-
function _possibleConstructorReturn$r(self, call) { if (call && (_typeof$r(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$r(self); }
|
|
5241
|
-
|
|
5242
|
-
function _assertThisInitialized$r(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5243
|
-
|
|
5244
|
-
function _isNativeReflectConstruct$r() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5245
|
-
|
|
5246
|
-
function _getPrototypeOf$r(o) { _getPrototypeOf$r = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$r(o); }
|
|
5247
|
-
|
|
5248
|
-
function _defineProperty$r(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5249
|
-
|
|
5250
|
-
var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
5251
|
-
_inherits$r(ISOWeekYearParser, _Parser);
|
|
5252
|
-
|
|
5253
|
-
var _super = _createSuper$r(ISOWeekYearParser);
|
|
5254
|
-
|
|
5255
|
-
function ISOWeekYearParser() {
|
|
5256
|
-
var _this;
|
|
5257
|
-
|
|
5258
|
-
_classCallCheck$r(this, ISOWeekYearParser);
|
|
5259
|
-
|
|
5260
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5261
|
-
args[_key] = arguments[_key];
|
|
5262
|
-
}
|
|
5263
|
-
|
|
5264
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5265
|
-
|
|
5266
|
-
_defineProperty$r(_assertThisInitialized$r(_this), "priority", 130);
|
|
5267
|
-
|
|
5268
|
-
_defineProperty$r(_assertThisInitialized$r(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
|
|
5269
|
-
|
|
5270
|
-
return _this;
|
|
5271
|
-
}
|
|
5272
|
-
|
|
5273
|
-
_createClass$r(ISOWeekYearParser, [{
|
|
5274
|
-
key: "parse",
|
|
5275
|
-
value: function parse(dateString, token) {
|
|
5276
|
-
if (token === 'R') {
|
|
5277
|
-
return parseNDigitsSigned(4, dateString);
|
|
5278
|
-
}
|
|
5279
|
-
|
|
5280
|
-
return parseNDigitsSigned(token.length, dateString);
|
|
5281
|
-
}
|
|
5282
|
-
}, {
|
|
5283
|
-
key: "set",
|
|
5284
|
-
value: function set(_date, _flags, value) {
|
|
5285
|
-
var firstWeekOfYear = new Date(0);
|
|
5286
|
-
firstWeekOfYear.setUTCFullYear(value, 0, 4);
|
|
5287
|
-
firstWeekOfYear.setUTCHours(0, 0, 0, 0);
|
|
5288
|
-
return startOfUTCISOWeek(firstWeekOfYear);
|
|
5289
|
-
}
|
|
5290
|
-
}]);
|
|
5291
|
-
|
|
5292
|
-
return ISOWeekYearParser;
|
|
5293
|
-
}(Parser);
|
|
5294
|
-
|
|
5295
|
-
function _typeof$q(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$q = function _typeof(obj) { return typeof obj; }; } else { _typeof$q = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$q(obj); }
|
|
5296
|
-
|
|
5297
|
-
function _classCallCheck$q(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5298
|
-
|
|
5299
|
-
function _defineProperties$q(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5300
|
-
|
|
5301
|
-
function _createClass$q(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$q(Constructor.prototype, protoProps); if (staticProps) _defineProperties$q(Constructor, staticProps); return Constructor; }
|
|
5302
|
-
|
|
5303
|
-
function _inherits$q(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$q(subClass, superClass); }
|
|
5304
|
-
|
|
5305
|
-
function _setPrototypeOf$q(o, p) { _setPrototypeOf$q = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$q(o, p); }
|
|
5306
|
-
|
|
5307
|
-
function _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf$q(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$q(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$q(this, result); }; }
|
|
5308
|
-
|
|
5309
|
-
function _possibleConstructorReturn$q(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$q(self); }
|
|
5310
|
-
|
|
5311
|
-
function _assertThisInitialized$q(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5312
|
-
|
|
5313
|
-
function _isNativeReflectConstruct$q() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5314
|
-
|
|
5315
|
-
function _getPrototypeOf$q(o) { _getPrototypeOf$q = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$q(o); }
|
|
5316
|
-
|
|
5317
|
-
function _defineProperty$q(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5318
|
-
var ExtendedYearParser = /*#__PURE__*/function (_Parser) {
|
|
5319
|
-
_inherits$q(ExtendedYearParser, _Parser);
|
|
5320
|
-
|
|
5321
|
-
var _super = _createSuper$q(ExtendedYearParser);
|
|
5322
|
-
|
|
5323
|
-
function ExtendedYearParser() {
|
|
5324
|
-
var _this;
|
|
5325
|
-
|
|
5326
|
-
_classCallCheck$q(this, ExtendedYearParser);
|
|
5327
|
-
|
|
5328
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5329
|
-
args[_key] = arguments[_key];
|
|
5330
|
-
}
|
|
5331
|
-
|
|
5332
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5333
|
-
|
|
5334
|
-
_defineProperty$q(_assertThisInitialized$q(_this), "priority", 130);
|
|
5335
|
-
|
|
5336
|
-
_defineProperty$q(_assertThisInitialized$q(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
|
|
5337
|
-
|
|
5338
|
-
return _this;
|
|
5339
|
-
}
|
|
5340
|
-
|
|
5341
|
-
_createClass$q(ExtendedYearParser, [{
|
|
5342
|
-
key: "parse",
|
|
5343
|
-
value: function parse(dateString, token) {
|
|
5344
|
-
if (token === 'u') {
|
|
5345
|
-
return parseNDigitsSigned(4, dateString);
|
|
5346
|
-
}
|
|
5347
|
-
|
|
5348
|
-
return parseNDigitsSigned(token.length, dateString);
|
|
5349
|
-
}
|
|
5350
|
-
}, {
|
|
5351
|
-
key: "set",
|
|
5352
|
-
value: function set(date, _flags, value) {
|
|
5353
|
-
date.setUTCFullYear(value, 0, 1);
|
|
5354
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5355
|
-
return date;
|
|
5356
|
-
}
|
|
5357
|
-
}]);
|
|
5358
|
-
|
|
5359
|
-
return ExtendedYearParser;
|
|
5360
|
-
}(Parser);
|
|
5361
|
-
|
|
5362
|
-
function _typeof$p(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$p = function _typeof(obj) { return typeof obj; }; } else { _typeof$p = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$p(obj); }
|
|
5363
|
-
|
|
5364
|
-
function _classCallCheck$p(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5365
|
-
|
|
5366
|
-
function _defineProperties$p(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5367
|
-
|
|
5368
|
-
function _createClass$p(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$p(Constructor.prototype, protoProps); if (staticProps) _defineProperties$p(Constructor, staticProps); return Constructor; }
|
|
5369
|
-
|
|
5370
|
-
function _inherits$p(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$p(subClass, superClass); }
|
|
5371
|
-
|
|
5372
|
-
function _setPrototypeOf$p(o, p) { _setPrototypeOf$p = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$p(o, p); }
|
|
5373
|
-
|
|
5374
|
-
function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf$p(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$p(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$p(this, result); }; }
|
|
5375
|
-
|
|
5376
|
-
function _possibleConstructorReturn$p(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$p(self); }
|
|
5377
|
-
|
|
5378
|
-
function _assertThisInitialized$p(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5379
|
-
|
|
5380
|
-
function _isNativeReflectConstruct$p() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5381
|
-
|
|
5382
|
-
function _getPrototypeOf$p(o) { _getPrototypeOf$p = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$p(o); }
|
|
5383
|
-
|
|
5384
|
-
function _defineProperty$p(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5385
|
-
var QuarterParser = /*#__PURE__*/function (_Parser) {
|
|
5386
|
-
_inherits$p(QuarterParser, _Parser);
|
|
5387
|
-
|
|
5388
|
-
var _super = _createSuper$p(QuarterParser);
|
|
5389
|
-
|
|
5390
|
-
function QuarterParser() {
|
|
5391
|
-
var _this;
|
|
5392
|
-
|
|
5393
|
-
_classCallCheck$p(this, QuarterParser);
|
|
5394
|
-
|
|
5395
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5396
|
-
args[_key] = arguments[_key];
|
|
5397
|
-
}
|
|
5398
|
-
|
|
5399
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5400
|
-
|
|
5401
|
-
_defineProperty$p(_assertThisInitialized$p(_this), "priority", 120);
|
|
5402
|
-
|
|
5403
|
-
_defineProperty$p(_assertThisInitialized$p(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
5404
|
-
|
|
5405
|
-
return _this;
|
|
5406
|
-
}
|
|
5407
|
-
|
|
5408
|
-
_createClass$p(QuarterParser, [{
|
|
5409
|
-
key: "parse",
|
|
5410
|
-
value: function parse(dateString, token, match) {
|
|
5411
|
-
switch (token) {
|
|
5412
|
-
// 1, 2, 3, 4
|
|
5413
|
-
case 'Q':
|
|
5414
|
-
case 'QQ':
|
|
5415
|
-
// 01, 02, 03, 04
|
|
5416
|
-
return parseNDigits(token.length, dateString);
|
|
5417
|
-
// 1st, 2nd, 3rd, 4th
|
|
5418
|
-
|
|
5419
|
-
case 'Qo':
|
|
5420
|
-
return match.ordinalNumber(dateString, {
|
|
5421
|
-
unit: 'quarter'
|
|
5422
|
-
});
|
|
5423
|
-
// Q1, Q2, Q3, Q4
|
|
5424
|
-
|
|
5425
|
-
case 'QQQ':
|
|
5426
|
-
return match.quarter(dateString, {
|
|
5427
|
-
width: 'abbreviated',
|
|
5428
|
-
context: 'formatting'
|
|
5429
|
-
}) || match.quarter(dateString, {
|
|
5430
|
-
width: 'narrow',
|
|
5431
|
-
context: 'formatting'
|
|
5432
|
-
});
|
|
5433
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
5434
|
-
|
|
5435
|
-
case 'QQQQQ':
|
|
5436
|
-
return match.quarter(dateString, {
|
|
5437
|
-
width: 'narrow',
|
|
5438
|
-
context: 'formatting'
|
|
5439
|
-
});
|
|
5440
|
-
// 1st quarter, 2nd quarter, ...
|
|
5441
|
-
|
|
5442
|
-
case 'QQQQ':
|
|
5443
|
-
default:
|
|
5444
|
-
return match.quarter(dateString, {
|
|
5445
|
-
width: 'wide',
|
|
5446
|
-
context: 'formatting'
|
|
5447
|
-
}) || match.quarter(dateString, {
|
|
5448
|
-
width: 'abbreviated',
|
|
5449
|
-
context: 'formatting'
|
|
5450
|
-
}) || match.quarter(dateString, {
|
|
5451
|
-
width: 'narrow',
|
|
5452
|
-
context: 'formatting'
|
|
5453
|
-
});
|
|
5454
|
-
}
|
|
5455
|
-
}
|
|
5456
|
-
}, {
|
|
5457
|
-
key: "validate",
|
|
5458
|
-
value: function validate(_date, value) {
|
|
5459
|
-
return value >= 1 && value <= 4;
|
|
5460
|
-
}
|
|
5461
|
-
}, {
|
|
5462
|
-
key: "set",
|
|
5463
|
-
value: function set(date, _flags, value) {
|
|
5464
|
-
date.setUTCMonth((value - 1) * 3, 1);
|
|
5465
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5466
|
-
return date;
|
|
5467
|
-
}
|
|
5468
|
-
}]);
|
|
5469
|
-
|
|
5470
|
-
return QuarterParser;
|
|
5471
|
-
}(Parser);
|
|
5472
|
-
|
|
5473
|
-
function _typeof$o(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$o = function _typeof(obj) { return typeof obj; }; } else { _typeof$o = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$o(obj); }
|
|
5474
|
-
|
|
5475
|
-
function _classCallCheck$o(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5476
|
-
|
|
5477
|
-
function _defineProperties$o(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5478
|
-
|
|
5479
|
-
function _createClass$o(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$o(Constructor.prototype, protoProps); if (staticProps) _defineProperties$o(Constructor, staticProps); return Constructor; }
|
|
5480
|
-
|
|
5481
|
-
function _inherits$o(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$o(subClass, superClass); }
|
|
5482
|
-
|
|
5483
|
-
function _setPrototypeOf$o(o, p) { _setPrototypeOf$o = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$o(o, p); }
|
|
5484
|
-
|
|
5485
|
-
function _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf$o(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$o(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$o(this, result); }; }
|
|
5486
|
-
|
|
5487
|
-
function _possibleConstructorReturn$o(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$o(self); }
|
|
5488
|
-
|
|
5489
|
-
function _assertThisInitialized$o(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5490
|
-
|
|
5491
|
-
function _isNativeReflectConstruct$o() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5492
|
-
|
|
5493
|
-
function _getPrototypeOf$o(o) { _getPrototypeOf$o = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$o(o); }
|
|
5494
|
-
|
|
5495
|
-
function _defineProperty$o(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5496
|
-
var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
|
|
5497
|
-
_inherits$o(StandAloneQuarterParser, _Parser);
|
|
5498
|
-
|
|
5499
|
-
var _super = _createSuper$o(StandAloneQuarterParser);
|
|
5500
|
-
|
|
5501
|
-
function StandAloneQuarterParser() {
|
|
5502
|
-
var _this;
|
|
5503
|
-
|
|
5504
|
-
_classCallCheck$o(this, StandAloneQuarterParser);
|
|
5505
|
-
|
|
5506
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5507
|
-
args[_key] = arguments[_key];
|
|
5508
|
-
}
|
|
5509
|
-
|
|
5510
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5511
|
-
|
|
5512
|
-
_defineProperty$o(_assertThisInitialized$o(_this), "priority", 120);
|
|
5513
|
-
|
|
5514
|
-
_defineProperty$o(_assertThisInitialized$o(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
5515
|
-
|
|
5516
|
-
return _this;
|
|
5517
|
-
}
|
|
5518
|
-
|
|
5519
|
-
_createClass$o(StandAloneQuarterParser, [{
|
|
5520
|
-
key: "parse",
|
|
5521
|
-
value: function parse(dateString, token, match) {
|
|
5522
|
-
switch (token) {
|
|
5523
|
-
// 1, 2, 3, 4
|
|
5524
|
-
case 'q':
|
|
5525
|
-
case 'qq':
|
|
5526
|
-
// 01, 02, 03, 04
|
|
5527
|
-
return parseNDigits(token.length, dateString);
|
|
5528
|
-
// 1st, 2nd, 3rd, 4th
|
|
5529
|
-
|
|
5530
|
-
case 'qo':
|
|
5531
|
-
return match.ordinalNumber(dateString, {
|
|
5532
|
-
unit: 'quarter'
|
|
5533
|
-
});
|
|
5534
|
-
// Q1, Q2, Q3, Q4
|
|
5535
|
-
|
|
5536
|
-
case 'qqq':
|
|
5537
|
-
return match.quarter(dateString, {
|
|
5538
|
-
width: 'abbreviated',
|
|
5539
|
-
context: 'standalone'
|
|
5540
|
-
}) || match.quarter(dateString, {
|
|
5541
|
-
width: 'narrow',
|
|
5542
|
-
context: 'standalone'
|
|
5543
|
-
});
|
|
5544
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
5545
|
-
|
|
5546
|
-
case 'qqqqq':
|
|
5547
|
-
return match.quarter(dateString, {
|
|
5548
|
-
width: 'narrow',
|
|
5549
|
-
context: 'standalone'
|
|
5550
|
-
});
|
|
5551
|
-
// 1st quarter, 2nd quarter, ...
|
|
5552
|
-
|
|
5553
|
-
case 'qqqq':
|
|
5554
|
-
default:
|
|
5555
|
-
return match.quarter(dateString, {
|
|
5556
|
-
width: 'wide',
|
|
5557
|
-
context: 'standalone'
|
|
5558
|
-
}) || match.quarter(dateString, {
|
|
5559
|
-
width: 'abbreviated',
|
|
5560
|
-
context: 'standalone'
|
|
5561
|
-
}) || match.quarter(dateString, {
|
|
5562
|
-
width: 'narrow',
|
|
5563
|
-
context: 'standalone'
|
|
5564
|
-
});
|
|
5565
|
-
}
|
|
5566
|
-
}
|
|
5567
|
-
}, {
|
|
5568
|
-
key: "validate",
|
|
5569
|
-
value: function validate(_date, value) {
|
|
5570
|
-
return value >= 1 && value <= 4;
|
|
5571
|
-
}
|
|
5572
|
-
}, {
|
|
5573
|
-
key: "set",
|
|
5574
|
-
value: function set(date, _flags, value) {
|
|
5575
|
-
date.setUTCMonth((value - 1) * 3, 1);
|
|
5576
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5577
|
-
return date;
|
|
5578
|
-
}
|
|
5579
|
-
}]);
|
|
5580
|
-
|
|
5581
|
-
return StandAloneQuarterParser;
|
|
5582
|
-
}(Parser);
|
|
5583
|
-
|
|
5584
|
-
function _typeof$n(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$n = function _typeof(obj) { return typeof obj; }; } else { _typeof$n = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$n(obj); }
|
|
5585
|
-
|
|
5586
|
-
function _classCallCheck$n(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5587
|
-
|
|
5588
|
-
function _defineProperties$n(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5589
|
-
|
|
5590
|
-
function _createClass$n(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$n(Constructor.prototype, protoProps); if (staticProps) _defineProperties$n(Constructor, staticProps); return Constructor; }
|
|
5591
|
-
|
|
5592
|
-
function _inherits$n(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$n(subClass, superClass); }
|
|
5593
|
-
|
|
5594
|
-
function _setPrototypeOf$n(o, p) { _setPrototypeOf$n = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$n(o, p); }
|
|
5595
|
-
|
|
5596
|
-
function _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf$n(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$n(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$n(this, result); }; }
|
|
5597
|
-
|
|
5598
|
-
function _possibleConstructorReturn$n(self, call) { if (call && (_typeof$n(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$n(self); }
|
|
5599
|
-
|
|
5600
|
-
function _assertThisInitialized$n(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5601
|
-
|
|
5602
|
-
function _isNativeReflectConstruct$n() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5603
|
-
|
|
5604
|
-
function _getPrototypeOf$n(o) { _getPrototypeOf$n = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$n(o); }
|
|
5605
|
-
|
|
5606
|
-
function _defineProperty$n(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5607
|
-
var MonthParser = /*#__PURE__*/function (_Parser) {
|
|
5608
|
-
_inherits$n(MonthParser, _Parser);
|
|
5609
|
-
|
|
5610
|
-
var _super = _createSuper$n(MonthParser);
|
|
5611
|
-
|
|
5612
|
-
function MonthParser() {
|
|
5613
|
-
var _this;
|
|
5614
|
-
|
|
5615
|
-
_classCallCheck$n(this, MonthParser);
|
|
5616
|
-
|
|
5617
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5618
|
-
args[_key] = arguments[_key];
|
|
5619
|
-
}
|
|
5620
|
-
|
|
5621
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5622
|
-
|
|
5623
|
-
_defineProperty$n(_assertThisInitialized$n(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
5624
|
-
|
|
5625
|
-
_defineProperty$n(_assertThisInitialized$n(_this), "priority", 110);
|
|
5626
|
-
|
|
5627
|
-
return _this;
|
|
5628
|
-
}
|
|
5629
|
-
|
|
5630
|
-
_createClass$n(MonthParser, [{
|
|
5631
|
-
key: "parse",
|
|
5632
|
-
value: function parse(dateString, token, match) {
|
|
5633
|
-
var valueCallback = function valueCallback(value) {
|
|
5634
|
-
return value - 1;
|
|
5635
|
-
};
|
|
5636
|
-
|
|
5637
|
-
switch (token) {
|
|
5638
|
-
// 1, 2, ..., 12
|
|
5639
|
-
case 'M':
|
|
5640
|
-
return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
|
|
5641
|
-
// 01, 02, ..., 12
|
|
5642
|
-
|
|
5643
|
-
case 'MM':
|
|
5644
|
-
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
5645
|
-
// 1st, 2nd, ..., 12th
|
|
5646
|
-
|
|
5647
|
-
case 'Mo':
|
|
5648
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
5649
|
-
unit: 'month'
|
|
5650
|
-
}), valueCallback);
|
|
5651
|
-
// Jan, Feb, ..., Dec
|
|
5652
|
-
|
|
5653
|
-
case 'MMM':
|
|
5654
|
-
return match.month(dateString, {
|
|
5655
|
-
width: 'abbreviated',
|
|
5656
|
-
context: 'formatting'
|
|
5657
|
-
}) || match.month(dateString, {
|
|
5658
|
-
width: 'narrow',
|
|
5659
|
-
context: 'formatting'
|
|
5660
|
-
});
|
|
5661
|
-
// J, F, ..., D
|
|
5662
|
-
|
|
5663
|
-
case 'MMMMM':
|
|
5664
|
-
return match.month(dateString, {
|
|
5665
|
-
width: 'narrow',
|
|
5666
|
-
context: 'formatting'
|
|
5667
|
-
});
|
|
5668
|
-
// January, February, ..., December
|
|
5669
|
-
|
|
5670
|
-
case 'MMMM':
|
|
5671
|
-
default:
|
|
5672
|
-
return match.month(dateString, {
|
|
5673
|
-
width: 'wide',
|
|
5674
|
-
context: 'formatting'
|
|
5675
|
-
}) || match.month(dateString, {
|
|
5676
|
-
width: 'abbreviated',
|
|
5677
|
-
context: 'formatting'
|
|
5678
|
-
}) || match.month(dateString, {
|
|
5679
|
-
width: 'narrow',
|
|
5680
|
-
context: 'formatting'
|
|
5681
|
-
});
|
|
5682
|
-
}
|
|
5683
|
-
}
|
|
5684
|
-
}, {
|
|
5685
|
-
key: "validate",
|
|
5686
|
-
value: function validate(_date, value) {
|
|
5687
|
-
return value >= 0 && value <= 11;
|
|
5688
|
-
}
|
|
5689
|
-
}, {
|
|
5690
|
-
key: "set",
|
|
5691
|
-
value: function set(date, _flags, value) {
|
|
5692
|
-
date.setUTCMonth(value, 1);
|
|
5693
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5694
|
-
return date;
|
|
5695
|
-
}
|
|
5696
|
-
}]);
|
|
5697
|
-
|
|
5698
|
-
return MonthParser;
|
|
5699
|
-
}(Parser);
|
|
5700
|
-
|
|
5701
|
-
function _typeof$m(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$m = function _typeof(obj) { return typeof obj; }; } else { _typeof$m = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$m(obj); }
|
|
5702
|
-
|
|
5703
|
-
function _classCallCheck$m(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5704
|
-
|
|
5705
|
-
function _defineProperties$m(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5706
|
-
|
|
5707
|
-
function _createClass$m(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$m(Constructor.prototype, protoProps); if (staticProps) _defineProperties$m(Constructor, staticProps); return Constructor; }
|
|
5708
|
-
|
|
5709
|
-
function _inherits$m(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$m(subClass, superClass); }
|
|
5710
|
-
|
|
5711
|
-
function _setPrototypeOf$m(o, p) { _setPrototypeOf$m = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$m(o, p); }
|
|
5712
|
-
|
|
5713
|
-
function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf$m(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$m(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$m(this, result); }; }
|
|
5714
|
-
|
|
5715
|
-
function _possibleConstructorReturn$m(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$m(self); }
|
|
5716
|
-
|
|
5717
|
-
function _assertThisInitialized$m(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5718
|
-
|
|
5719
|
-
function _isNativeReflectConstruct$m() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5720
|
-
|
|
5721
|
-
function _getPrototypeOf$m(o) { _getPrototypeOf$m = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$m(o); }
|
|
5722
|
-
|
|
5723
|
-
function _defineProperty$m(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5724
|
-
var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
|
|
5725
|
-
_inherits$m(StandAloneMonthParser, _Parser);
|
|
5726
|
-
|
|
5727
|
-
var _super = _createSuper$m(StandAloneMonthParser);
|
|
5728
|
-
|
|
5729
|
-
function StandAloneMonthParser() {
|
|
5730
|
-
var _this;
|
|
5731
|
-
|
|
5732
|
-
_classCallCheck$m(this, StandAloneMonthParser);
|
|
5733
|
-
|
|
5734
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5735
|
-
args[_key] = arguments[_key];
|
|
5736
|
-
}
|
|
5737
|
-
|
|
5738
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5739
|
-
|
|
5740
|
-
_defineProperty$m(_assertThisInitialized$m(_this), "priority", 110);
|
|
5741
|
-
|
|
5742
|
-
_defineProperty$m(_assertThisInitialized$m(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
5743
|
-
|
|
5744
|
-
return _this;
|
|
5745
|
-
}
|
|
5746
|
-
|
|
5747
|
-
_createClass$m(StandAloneMonthParser, [{
|
|
5748
|
-
key: "parse",
|
|
5749
|
-
value: function parse(dateString, token, match) {
|
|
5750
|
-
var valueCallback = function valueCallback(value) {
|
|
5751
|
-
return value - 1;
|
|
5752
|
-
};
|
|
5753
|
-
|
|
5754
|
-
switch (token) {
|
|
5755
|
-
// 1, 2, ..., 12
|
|
5756
|
-
case 'L':
|
|
5757
|
-
return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
|
|
5758
|
-
// 01, 02, ..., 12
|
|
5759
|
-
|
|
5760
|
-
case 'LL':
|
|
5761
|
-
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
5762
|
-
// 1st, 2nd, ..., 12th
|
|
5763
|
-
|
|
5764
|
-
case 'Lo':
|
|
5765
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
5766
|
-
unit: 'month'
|
|
5767
|
-
}), valueCallback);
|
|
5768
|
-
// Jan, Feb, ..., Dec
|
|
5769
|
-
|
|
5770
|
-
case 'LLL':
|
|
5771
|
-
return match.month(dateString, {
|
|
5772
|
-
width: 'abbreviated',
|
|
5773
|
-
context: 'standalone'
|
|
5774
|
-
}) || match.month(dateString, {
|
|
5775
|
-
width: 'narrow',
|
|
5776
|
-
context: 'standalone'
|
|
5777
|
-
});
|
|
5778
|
-
// J, F, ..., D
|
|
5779
|
-
|
|
5780
|
-
case 'LLLLL':
|
|
5781
|
-
return match.month(dateString, {
|
|
5782
|
-
width: 'narrow',
|
|
5783
|
-
context: 'standalone'
|
|
5784
|
-
});
|
|
5785
|
-
// January, February, ..., December
|
|
5786
|
-
|
|
5787
|
-
case 'LLLL':
|
|
5788
|
-
default:
|
|
5789
|
-
return match.month(dateString, {
|
|
5790
|
-
width: 'wide',
|
|
5791
|
-
context: 'standalone'
|
|
5792
|
-
}) || match.month(dateString, {
|
|
5793
|
-
width: 'abbreviated',
|
|
5794
|
-
context: 'standalone'
|
|
5795
|
-
}) || match.month(dateString, {
|
|
5796
|
-
width: 'narrow',
|
|
5797
|
-
context: 'standalone'
|
|
5798
|
-
});
|
|
5799
|
-
}
|
|
5800
|
-
}
|
|
5801
|
-
}, {
|
|
5802
|
-
key: "validate",
|
|
5803
|
-
value: function validate(_date, value) {
|
|
5804
|
-
return value >= 0 && value <= 11;
|
|
5805
|
-
}
|
|
5806
|
-
}, {
|
|
5807
|
-
key: "set",
|
|
5808
|
-
value: function set(date, _flags, value) {
|
|
5809
|
-
date.setUTCMonth(value, 1);
|
|
5810
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5811
|
-
return date;
|
|
5812
|
-
}
|
|
5813
|
-
}]);
|
|
5814
|
-
|
|
5815
|
-
return StandAloneMonthParser;
|
|
5816
|
-
}(Parser);
|
|
5817
|
-
|
|
5818
|
-
function setUTCWeek(dirtyDate, dirtyWeek, options) {
|
|
5819
|
-
requiredArgs(2, arguments);
|
|
5820
|
-
var date = toDate(dirtyDate);
|
|
5821
|
-
var week = toInteger(dirtyWeek);
|
|
5822
|
-
var diff = getUTCWeek(date, options) - week;
|
|
5823
|
-
date.setUTCDate(date.getUTCDate() - diff * 7);
|
|
5824
|
-
return date;
|
|
5825
|
-
}
|
|
5826
|
-
|
|
5827
|
-
function _typeof$l(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$l = function _typeof(obj) { return typeof obj; }; } else { _typeof$l = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$l(obj); }
|
|
5828
|
-
|
|
5829
|
-
function _classCallCheck$l(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5830
|
-
|
|
5831
|
-
function _defineProperties$l(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5832
|
-
|
|
5833
|
-
function _createClass$l(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$l(Constructor.prototype, protoProps); if (staticProps) _defineProperties$l(Constructor, staticProps); return Constructor; }
|
|
5834
|
-
|
|
5835
|
-
function _inherits$l(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$l(subClass, superClass); }
|
|
5836
|
-
|
|
5837
|
-
function _setPrototypeOf$l(o, p) { _setPrototypeOf$l = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$l(o, p); }
|
|
5838
|
-
|
|
5839
|
-
function _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf$l(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$l(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$l(this, result); }; }
|
|
5840
|
-
|
|
5841
|
-
function _possibleConstructorReturn$l(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$l(self); }
|
|
5842
|
-
|
|
5843
|
-
function _assertThisInitialized$l(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5844
|
-
|
|
5845
|
-
function _isNativeReflectConstruct$l() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5846
|
-
|
|
5847
|
-
function _getPrototypeOf$l(o) { _getPrototypeOf$l = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$l(o); }
|
|
5848
|
-
|
|
5849
|
-
function _defineProperty$l(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5850
|
-
|
|
5851
|
-
var LocalWeekParser = /*#__PURE__*/function (_Parser) {
|
|
5852
|
-
_inherits$l(LocalWeekParser, _Parser);
|
|
5853
|
-
|
|
5854
|
-
var _super = _createSuper$l(LocalWeekParser);
|
|
5855
|
-
|
|
5856
|
-
function LocalWeekParser() {
|
|
5857
|
-
var _this;
|
|
5858
|
-
|
|
5859
|
-
_classCallCheck$l(this, LocalWeekParser);
|
|
5860
|
-
|
|
5861
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5862
|
-
args[_key] = arguments[_key];
|
|
5863
|
-
}
|
|
5864
|
-
|
|
5865
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5866
|
-
|
|
5867
|
-
_defineProperty$l(_assertThisInitialized$l(_this), "priority", 100);
|
|
5868
|
-
|
|
5869
|
-
_defineProperty$l(_assertThisInitialized$l(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
|
|
5870
|
-
|
|
5871
|
-
return _this;
|
|
5872
|
-
}
|
|
5873
|
-
|
|
5874
|
-
_createClass$l(LocalWeekParser, [{
|
|
5875
|
-
key: "parse",
|
|
5876
|
-
value: function parse(dateString, token, match) {
|
|
5877
|
-
switch (token) {
|
|
5878
|
-
case 'w':
|
|
5879
|
-
return parseNumericPattern(numericPatterns.week, dateString);
|
|
5880
|
-
|
|
5881
|
-
case 'wo':
|
|
5882
|
-
return match.ordinalNumber(dateString, {
|
|
5883
|
-
unit: 'week'
|
|
5884
|
-
});
|
|
5885
|
-
|
|
5886
|
-
default:
|
|
5887
|
-
return parseNDigits(token.length, dateString);
|
|
5888
|
-
}
|
|
5889
|
-
}
|
|
5890
|
-
}, {
|
|
5891
|
-
key: "validate",
|
|
5892
|
-
value: function validate(_date, value) {
|
|
5893
|
-
return value >= 1 && value <= 53;
|
|
5894
|
-
}
|
|
5895
|
-
}, {
|
|
5896
|
-
key: "set",
|
|
5897
|
-
value: function set(date, _flags, value, options) {
|
|
5898
|
-
return startOfUTCWeek(setUTCWeek(date, value, options), options);
|
|
5899
|
-
}
|
|
5900
|
-
}]);
|
|
5901
|
-
|
|
5902
|
-
return LocalWeekParser;
|
|
5903
|
-
}(Parser);
|
|
5904
|
-
|
|
5905
|
-
function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
|
|
5906
|
-
requiredArgs(2, arguments);
|
|
5907
|
-
var date = toDate(dirtyDate);
|
|
5908
|
-
var isoWeek = toInteger(dirtyISOWeek);
|
|
5909
|
-
var diff = getUTCISOWeek(date) - isoWeek;
|
|
5910
|
-
date.setUTCDate(date.getUTCDate() - diff * 7);
|
|
5911
|
-
return date;
|
|
5912
|
-
}
|
|
5913
|
-
|
|
5914
|
-
function _typeof$k(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$k = function _typeof(obj) { return typeof obj; }; } else { _typeof$k = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$k(obj); }
|
|
5915
|
-
|
|
5916
|
-
function _classCallCheck$k(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5917
|
-
|
|
5918
|
-
function _defineProperties$k(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5919
|
-
|
|
5920
|
-
function _createClass$k(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$k(Constructor.prototype, protoProps); if (staticProps) _defineProperties$k(Constructor, staticProps); return Constructor; }
|
|
5921
|
-
|
|
5922
|
-
function _inherits$k(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$k(subClass, superClass); }
|
|
5923
|
-
|
|
5924
|
-
function _setPrototypeOf$k(o, p) { _setPrototypeOf$k = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$k(o, p); }
|
|
5925
|
-
|
|
5926
|
-
function _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf$k(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$k(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$k(this, result); }; }
|
|
5927
|
-
|
|
5928
|
-
function _possibleConstructorReturn$k(self, call) { if (call && (_typeof$k(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$k(self); }
|
|
5929
|
-
|
|
5930
|
-
function _assertThisInitialized$k(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5931
|
-
|
|
5932
|
-
function _isNativeReflectConstruct$k() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5933
|
-
|
|
5934
|
-
function _getPrototypeOf$k(o) { _getPrototypeOf$k = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$k(o); }
|
|
5935
|
-
|
|
5936
|
-
function _defineProperty$k(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5937
|
-
|
|
5938
|
-
var ISOWeekParser = /*#__PURE__*/function (_Parser) {
|
|
5939
|
-
_inherits$k(ISOWeekParser, _Parser);
|
|
5940
|
-
|
|
5941
|
-
var _super = _createSuper$k(ISOWeekParser);
|
|
5942
|
-
|
|
5943
|
-
function ISOWeekParser() {
|
|
5944
|
-
var _this;
|
|
5945
|
-
|
|
5946
|
-
_classCallCheck$k(this, ISOWeekParser);
|
|
5947
|
-
|
|
5948
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5949
|
-
args[_key] = arguments[_key];
|
|
5950
|
-
}
|
|
5951
|
-
|
|
5952
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5953
|
-
|
|
5954
|
-
_defineProperty$k(_assertThisInitialized$k(_this), "priority", 100);
|
|
5955
|
-
|
|
5956
|
-
_defineProperty$k(_assertThisInitialized$k(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
|
|
5957
|
-
|
|
5958
|
-
return _this;
|
|
5959
|
-
}
|
|
5960
|
-
|
|
5961
|
-
_createClass$k(ISOWeekParser, [{
|
|
5962
|
-
key: "parse",
|
|
5963
|
-
value: function parse(dateString, token, match) {
|
|
5964
|
-
switch (token) {
|
|
5965
|
-
case 'I':
|
|
5966
|
-
return parseNumericPattern(numericPatterns.week, dateString);
|
|
5967
|
-
|
|
5968
|
-
case 'Io':
|
|
5969
|
-
return match.ordinalNumber(dateString, {
|
|
5970
|
-
unit: 'week'
|
|
5971
|
-
});
|
|
5972
|
-
|
|
5973
|
-
default:
|
|
5974
|
-
return parseNDigits(token.length, dateString);
|
|
5975
|
-
}
|
|
5976
|
-
}
|
|
5977
|
-
}, {
|
|
5978
|
-
key: "validate",
|
|
5979
|
-
value: function validate(_date, value) {
|
|
5980
|
-
return value >= 1 && value <= 53;
|
|
5981
|
-
}
|
|
5982
|
-
}, {
|
|
5983
|
-
key: "set",
|
|
5984
|
-
value: function set(date, _flags, value) {
|
|
5985
|
-
return startOfUTCISOWeek(setUTCISOWeek(date, value));
|
|
5986
|
-
}
|
|
5987
|
-
}]);
|
|
5988
|
-
|
|
5989
|
-
return ISOWeekParser;
|
|
5990
|
-
}(Parser);
|
|
5991
|
-
|
|
5992
|
-
function _typeof$j(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$j = function _typeof(obj) { return typeof obj; }; } else { _typeof$j = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$j(obj); }
|
|
5993
|
-
|
|
5994
|
-
function _classCallCheck$j(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5995
|
-
|
|
5996
|
-
function _defineProperties$j(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5997
|
-
|
|
5998
|
-
function _createClass$j(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$j(Constructor.prototype, protoProps); if (staticProps) _defineProperties$j(Constructor, staticProps); return Constructor; }
|
|
5999
|
-
|
|
6000
|
-
function _inherits$j(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$j(subClass, superClass); }
|
|
6001
|
-
|
|
6002
|
-
function _setPrototypeOf$j(o, p) { _setPrototypeOf$j = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$j(o, p); }
|
|
6003
|
-
|
|
6004
|
-
function _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf$j(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$j(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$j(this, result); }; }
|
|
6005
|
-
|
|
6006
|
-
function _possibleConstructorReturn$j(self, call) { if (call && (_typeof$j(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$j(self); }
|
|
6007
|
-
|
|
6008
|
-
function _assertThisInitialized$j(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6009
|
-
|
|
6010
|
-
function _isNativeReflectConstruct$j() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6011
|
-
|
|
6012
|
-
function _getPrototypeOf$j(o) { _getPrototypeOf$j = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$j(o); }
|
|
6013
|
-
|
|
6014
|
-
function _defineProperty$j(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6015
|
-
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
6016
|
-
var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month
|
|
6017
|
-
|
|
6018
|
-
var DateParser = /*#__PURE__*/function (_Parser) {
|
|
6019
|
-
_inherits$j(DateParser, _Parser);
|
|
6020
|
-
|
|
6021
|
-
var _super = _createSuper$j(DateParser);
|
|
6022
|
-
|
|
6023
|
-
function DateParser() {
|
|
6024
|
-
var _this;
|
|
6025
|
-
|
|
6026
|
-
_classCallCheck$j(this, DateParser);
|
|
6027
|
-
|
|
6028
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6029
|
-
args[_key] = arguments[_key];
|
|
6030
|
-
}
|
|
6031
|
-
|
|
6032
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6033
|
-
|
|
6034
|
-
_defineProperty$j(_assertThisInitialized$j(_this), "priority", 90);
|
|
6035
|
-
|
|
6036
|
-
_defineProperty$j(_assertThisInitialized$j(_this), "subPriority", 1);
|
|
6037
|
-
|
|
6038
|
-
_defineProperty$j(_assertThisInitialized$j(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
6039
|
-
|
|
6040
|
-
return _this;
|
|
6041
|
-
}
|
|
6042
|
-
|
|
6043
|
-
_createClass$j(DateParser, [{
|
|
6044
|
-
key: "parse",
|
|
6045
|
-
value: function parse(dateString, token, match) {
|
|
6046
|
-
switch (token) {
|
|
6047
|
-
case 'd':
|
|
6048
|
-
return parseNumericPattern(numericPatterns.date, dateString);
|
|
6049
|
-
|
|
6050
|
-
case 'do':
|
|
6051
|
-
return match.ordinalNumber(dateString, {
|
|
6052
|
-
unit: 'date'
|
|
6053
|
-
});
|
|
6054
|
-
|
|
6055
|
-
default:
|
|
6056
|
-
return parseNDigits(token.length, dateString);
|
|
6057
|
-
}
|
|
6058
|
-
}
|
|
6059
|
-
}, {
|
|
6060
|
-
key: "validate",
|
|
6061
|
-
value: function validate(date, value) {
|
|
6062
|
-
var year = date.getUTCFullYear();
|
|
6063
|
-
var isLeapYear = isLeapYearIndex(year);
|
|
6064
|
-
var month = date.getUTCMonth();
|
|
6065
|
-
|
|
6066
|
-
if (isLeapYear) {
|
|
6067
|
-
return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
|
|
6068
|
-
} else {
|
|
6069
|
-
return value >= 1 && value <= DAYS_IN_MONTH[month];
|
|
6070
|
-
}
|
|
6071
|
-
}
|
|
6072
|
-
}, {
|
|
6073
|
-
key: "set",
|
|
6074
|
-
value: function set(date, _flags, value) {
|
|
6075
|
-
date.setUTCDate(value);
|
|
6076
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6077
|
-
return date;
|
|
6078
|
-
}
|
|
6079
|
-
}]);
|
|
6080
|
-
|
|
6081
|
-
return DateParser;
|
|
6082
|
-
}(Parser);
|
|
6083
|
-
|
|
6084
|
-
function _typeof$i(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$i = function _typeof(obj) { return typeof obj; }; } else { _typeof$i = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$i(obj); }
|
|
6085
|
-
|
|
6086
|
-
function _classCallCheck$i(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6087
|
-
|
|
6088
|
-
function _defineProperties$i(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6089
|
-
|
|
6090
|
-
function _createClass$i(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$i(Constructor.prototype, protoProps); if (staticProps) _defineProperties$i(Constructor, staticProps); return Constructor; }
|
|
6091
|
-
|
|
6092
|
-
function _inherits$i(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$i(subClass, superClass); }
|
|
6093
|
-
|
|
6094
|
-
function _setPrototypeOf$i(o, p) { _setPrototypeOf$i = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$i(o, p); }
|
|
6095
|
-
|
|
6096
|
-
function _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf$i(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$i(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$i(this, result); }; }
|
|
6097
|
-
|
|
6098
|
-
function _possibleConstructorReturn$i(self, call) { if (call && (_typeof$i(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$i(self); }
|
|
6099
|
-
|
|
6100
|
-
function _assertThisInitialized$i(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6101
|
-
|
|
6102
|
-
function _isNativeReflectConstruct$i() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6103
|
-
|
|
6104
|
-
function _getPrototypeOf$i(o) { _getPrototypeOf$i = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$i(o); }
|
|
6105
|
-
|
|
6106
|
-
function _defineProperty$i(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6107
|
-
var DayOfYearParser = /*#__PURE__*/function (_Parser) {
|
|
6108
|
-
_inherits$i(DayOfYearParser, _Parser);
|
|
6109
|
-
|
|
6110
|
-
var _super = _createSuper$i(DayOfYearParser);
|
|
6111
|
-
|
|
6112
|
-
function DayOfYearParser() {
|
|
6113
|
-
var _this;
|
|
6114
|
-
|
|
6115
|
-
_classCallCheck$i(this, DayOfYearParser);
|
|
6116
|
-
|
|
6117
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6118
|
-
args[_key] = arguments[_key];
|
|
6119
|
-
}
|
|
6120
|
-
|
|
6121
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6122
|
-
|
|
6123
|
-
_defineProperty$i(_assertThisInitialized$i(_this), "priority", 90);
|
|
6124
|
-
|
|
6125
|
-
_defineProperty$i(_assertThisInitialized$i(_this), "subpriority", 1);
|
|
6126
|
-
|
|
6127
|
-
_defineProperty$i(_assertThisInitialized$i(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);
|
|
6128
|
-
|
|
6129
|
-
return _this;
|
|
6130
|
-
}
|
|
6131
|
-
|
|
6132
|
-
_createClass$i(DayOfYearParser, [{
|
|
6133
|
-
key: "parse",
|
|
6134
|
-
value: function parse(dateString, token, match) {
|
|
6135
|
-
switch (token) {
|
|
6136
|
-
case 'D':
|
|
6137
|
-
case 'DD':
|
|
6138
|
-
return parseNumericPattern(numericPatterns.dayOfYear, dateString);
|
|
6139
|
-
|
|
6140
|
-
case 'Do':
|
|
6141
|
-
return match.ordinalNumber(dateString, {
|
|
6142
|
-
unit: 'date'
|
|
6143
|
-
});
|
|
6144
|
-
|
|
6145
|
-
default:
|
|
6146
|
-
return parseNDigits(token.length, dateString);
|
|
6147
|
-
}
|
|
6148
|
-
}
|
|
6149
|
-
}, {
|
|
6150
|
-
key: "validate",
|
|
6151
|
-
value: function validate(date, value) {
|
|
6152
|
-
var year = date.getUTCFullYear();
|
|
6153
|
-
var isLeapYear = isLeapYearIndex(year);
|
|
6154
|
-
|
|
6155
|
-
if (isLeapYear) {
|
|
6156
|
-
return value >= 1 && value <= 366;
|
|
6157
|
-
} else {
|
|
6158
|
-
return value >= 1 && value <= 365;
|
|
6159
|
-
}
|
|
6160
|
-
}
|
|
6161
|
-
}, {
|
|
6162
|
-
key: "set",
|
|
6163
|
-
value: function set(date, _flags, value) {
|
|
6164
|
-
date.setUTCMonth(0, value);
|
|
6165
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6166
|
-
return date;
|
|
6167
|
-
}
|
|
6168
|
-
}]);
|
|
6169
|
-
|
|
6170
|
-
return DayOfYearParser;
|
|
6171
|
-
}(Parser);
|
|
6172
|
-
|
|
6173
|
-
function setUTCDay(dirtyDate, dirtyDay, options) {
|
|
6174
|
-
var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
6175
|
-
|
|
6176
|
-
requiredArgs(2, arguments);
|
|
6177
|
-
var defaultOptions = getDefaultOptions();
|
|
6178
|
-
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
|
|
6179
|
-
|
|
6180
|
-
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
6181
|
-
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
6182
|
-
}
|
|
6183
|
-
|
|
6184
|
-
var date = toDate(dirtyDate);
|
|
6185
|
-
var day = toInteger(dirtyDay);
|
|
6186
|
-
var currentDay = date.getUTCDay();
|
|
6187
|
-
var remainder = day % 7;
|
|
6188
|
-
var dayIndex = (remainder + 7) % 7;
|
|
6189
|
-
var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
|
|
6190
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
6191
|
-
return date;
|
|
6192
|
-
}
|
|
6193
|
-
|
|
6194
|
-
function _typeof$h(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$h = function _typeof(obj) { return typeof obj; }; } else { _typeof$h = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$h(obj); }
|
|
6195
|
-
|
|
6196
|
-
function _classCallCheck$h(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6197
|
-
|
|
6198
|
-
function _defineProperties$h(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6199
|
-
|
|
6200
|
-
function _createClass$h(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$h(Constructor.prototype, protoProps); if (staticProps) _defineProperties$h(Constructor, staticProps); return Constructor; }
|
|
6201
|
-
|
|
6202
|
-
function _inherits$h(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$h(subClass, superClass); }
|
|
6203
|
-
|
|
6204
|
-
function _setPrototypeOf$h(o, p) { _setPrototypeOf$h = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$h(o, p); }
|
|
6205
|
-
|
|
6206
|
-
function _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf$h(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$h(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$h(this, result); }; }
|
|
6207
|
-
|
|
6208
|
-
function _possibleConstructorReturn$h(self, call) { if (call && (_typeof$h(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$h(self); }
|
|
6209
|
-
|
|
6210
|
-
function _assertThisInitialized$h(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6211
|
-
|
|
6212
|
-
function _isNativeReflectConstruct$h() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6213
|
-
|
|
6214
|
-
function _getPrototypeOf$h(o) { _getPrototypeOf$h = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$h(o); }
|
|
6215
|
-
|
|
6216
|
-
function _defineProperty$h(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6217
|
-
|
|
6218
|
-
var DayParser = /*#__PURE__*/function (_Parser) {
|
|
6219
|
-
_inherits$h(DayParser, _Parser);
|
|
6220
|
-
|
|
6221
|
-
var _super = _createSuper$h(DayParser);
|
|
6222
|
-
|
|
6223
|
-
function DayParser() {
|
|
6224
|
-
var _this;
|
|
6225
|
-
|
|
6226
|
-
_classCallCheck$h(this, DayParser);
|
|
6227
|
-
|
|
6228
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6229
|
-
args[_key] = arguments[_key];
|
|
6230
|
-
}
|
|
6231
|
-
|
|
6232
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6233
|
-
|
|
6234
|
-
_defineProperty$h(_assertThisInitialized$h(_this), "priority", 90);
|
|
6235
|
-
|
|
6236
|
-
_defineProperty$h(_assertThisInitialized$h(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']);
|
|
6237
|
-
|
|
6238
|
-
return _this;
|
|
6239
|
-
}
|
|
6240
|
-
|
|
6241
|
-
_createClass$h(DayParser, [{
|
|
6242
|
-
key: "parse",
|
|
6243
|
-
value: function parse(dateString, token, match) {
|
|
6244
|
-
switch (token) {
|
|
6245
|
-
// Tue
|
|
6246
|
-
case 'E':
|
|
6247
|
-
case 'EE':
|
|
6248
|
-
case 'EEE':
|
|
6249
|
-
return match.day(dateString, {
|
|
6250
|
-
width: 'abbreviated',
|
|
6251
|
-
context: 'formatting'
|
|
6252
|
-
}) || match.day(dateString, {
|
|
6253
|
-
width: 'short',
|
|
6254
|
-
context: 'formatting'
|
|
6255
|
-
}) || match.day(dateString, {
|
|
6256
|
-
width: 'narrow',
|
|
6257
|
-
context: 'formatting'
|
|
6258
|
-
});
|
|
6259
|
-
// T
|
|
6260
|
-
|
|
6261
|
-
case 'EEEEE':
|
|
6262
|
-
return match.day(dateString, {
|
|
6263
|
-
width: 'narrow',
|
|
6264
|
-
context: 'formatting'
|
|
6265
|
-
});
|
|
6266
|
-
// Tu
|
|
6267
|
-
|
|
6268
|
-
case 'EEEEEE':
|
|
6269
|
-
return match.day(dateString, {
|
|
6270
|
-
width: 'short',
|
|
6271
|
-
context: 'formatting'
|
|
6272
|
-
}) || match.day(dateString, {
|
|
6273
|
-
width: 'narrow',
|
|
6274
|
-
context: 'formatting'
|
|
6275
|
-
});
|
|
6276
|
-
// Tuesday
|
|
6277
|
-
|
|
6278
|
-
case 'EEEE':
|
|
6279
|
-
default:
|
|
6280
|
-
return match.day(dateString, {
|
|
6281
|
-
width: 'wide',
|
|
6282
|
-
context: 'formatting'
|
|
6283
|
-
}) || match.day(dateString, {
|
|
6284
|
-
width: 'abbreviated',
|
|
6285
|
-
context: 'formatting'
|
|
6286
|
-
}) || match.day(dateString, {
|
|
6287
|
-
width: 'short',
|
|
6288
|
-
context: 'formatting'
|
|
6289
|
-
}) || match.day(dateString, {
|
|
6290
|
-
width: 'narrow',
|
|
6291
|
-
context: 'formatting'
|
|
6292
|
-
});
|
|
6293
|
-
}
|
|
6294
|
-
}
|
|
6295
|
-
}, {
|
|
6296
|
-
key: "validate",
|
|
6297
|
-
value: function validate(_date, value) {
|
|
6298
|
-
return value >= 0 && value <= 6;
|
|
6299
|
-
}
|
|
6300
|
-
}, {
|
|
6301
|
-
key: "set",
|
|
6302
|
-
value: function set(date, _flags, value, options) {
|
|
6303
|
-
date = setUTCDay(date, value, options);
|
|
6304
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6305
|
-
return date;
|
|
6306
|
-
}
|
|
6307
|
-
}]);
|
|
6308
|
-
|
|
6309
|
-
return DayParser;
|
|
6310
|
-
}(Parser);
|
|
6311
|
-
|
|
6312
|
-
function _typeof$g(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$g = function _typeof(obj) { return typeof obj; }; } else { _typeof$g = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$g(obj); }
|
|
6313
|
-
|
|
6314
|
-
function _classCallCheck$g(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6315
|
-
|
|
6316
|
-
function _defineProperties$g(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6317
|
-
|
|
6318
|
-
function _createClass$g(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$g(Constructor.prototype, protoProps); if (staticProps) _defineProperties$g(Constructor, staticProps); return Constructor; }
|
|
6319
|
-
|
|
6320
|
-
function _inherits$g(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$g(subClass, superClass); }
|
|
6321
|
-
|
|
6322
|
-
function _setPrototypeOf$g(o, p) { _setPrototypeOf$g = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$g(o, p); }
|
|
6323
|
-
|
|
6324
|
-
function _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf$g(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$g(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$g(this, result); }; }
|
|
6325
|
-
|
|
6326
|
-
function _possibleConstructorReturn$g(self, call) { if (call && (_typeof$g(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$g(self); }
|
|
6327
|
-
|
|
6328
|
-
function _assertThisInitialized$g(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6329
|
-
|
|
6330
|
-
function _isNativeReflectConstruct$g() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6331
|
-
|
|
6332
|
-
function _getPrototypeOf$g(o) { _getPrototypeOf$g = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$g(o); }
|
|
6333
|
-
|
|
6334
|
-
function _defineProperty$g(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6335
|
-
|
|
6336
|
-
var LocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
6337
|
-
_inherits$g(LocalDayParser, _Parser);
|
|
6338
|
-
|
|
6339
|
-
var _super = _createSuper$g(LocalDayParser);
|
|
6340
|
-
|
|
6341
|
-
function LocalDayParser() {
|
|
6342
|
-
var _this;
|
|
6343
|
-
|
|
6344
|
-
_classCallCheck$g(this, LocalDayParser);
|
|
6345
|
-
|
|
6346
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6347
|
-
args[_key] = arguments[_key];
|
|
6348
|
-
}
|
|
6349
|
-
|
|
6350
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6351
|
-
|
|
6352
|
-
_defineProperty$g(_assertThisInitialized$g(_this), "priority", 90);
|
|
6353
|
-
|
|
6354
|
-
_defineProperty$g(_assertThisInitialized$g(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);
|
|
6355
|
-
|
|
6356
|
-
return _this;
|
|
6357
|
-
}
|
|
6358
|
-
|
|
6359
|
-
_createClass$g(LocalDayParser, [{
|
|
6360
|
-
key: "parse",
|
|
6361
|
-
value: function parse(dateString, token, match, options) {
|
|
6362
|
-
var valueCallback = function valueCallback(value) {
|
|
6363
|
-
var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
|
|
6364
|
-
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
6365
|
-
};
|
|
6366
|
-
|
|
6367
|
-
switch (token) {
|
|
6368
|
-
// 3
|
|
6369
|
-
case 'e':
|
|
6370
|
-
case 'ee':
|
|
6371
|
-
// 03
|
|
6372
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
6373
|
-
// 3rd
|
|
6374
|
-
|
|
6375
|
-
case 'eo':
|
|
6376
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
6377
|
-
unit: 'day'
|
|
6378
|
-
}), valueCallback);
|
|
6379
|
-
// Tue
|
|
6380
|
-
|
|
6381
|
-
case 'eee':
|
|
6382
|
-
return match.day(dateString, {
|
|
6383
|
-
width: 'abbreviated',
|
|
6384
|
-
context: 'formatting'
|
|
6385
|
-
}) || match.day(dateString, {
|
|
6386
|
-
width: 'short',
|
|
6387
|
-
context: 'formatting'
|
|
6388
|
-
}) || match.day(dateString, {
|
|
6389
|
-
width: 'narrow',
|
|
6390
|
-
context: 'formatting'
|
|
6391
|
-
});
|
|
6392
|
-
// T
|
|
6393
|
-
|
|
6394
|
-
case 'eeeee':
|
|
6395
|
-
return match.day(dateString, {
|
|
6396
|
-
width: 'narrow',
|
|
6397
|
-
context: 'formatting'
|
|
6398
|
-
});
|
|
6399
|
-
// Tu
|
|
6400
|
-
|
|
6401
|
-
case 'eeeeee':
|
|
6402
|
-
return match.day(dateString, {
|
|
6403
|
-
width: 'short',
|
|
6404
|
-
context: 'formatting'
|
|
6405
|
-
}) || match.day(dateString, {
|
|
6406
|
-
width: 'narrow',
|
|
6407
|
-
context: 'formatting'
|
|
6408
|
-
});
|
|
6409
|
-
// Tuesday
|
|
6410
|
-
|
|
6411
|
-
case 'eeee':
|
|
6412
|
-
default:
|
|
6413
|
-
return match.day(dateString, {
|
|
6414
|
-
width: 'wide',
|
|
6415
|
-
context: 'formatting'
|
|
6416
|
-
}) || match.day(dateString, {
|
|
6417
|
-
width: 'abbreviated',
|
|
6418
|
-
context: 'formatting'
|
|
6419
|
-
}) || match.day(dateString, {
|
|
6420
|
-
width: 'short',
|
|
6421
|
-
context: 'formatting'
|
|
6422
|
-
}) || match.day(dateString, {
|
|
6423
|
-
width: 'narrow',
|
|
6424
|
-
context: 'formatting'
|
|
6425
|
-
});
|
|
6426
|
-
}
|
|
6427
|
-
}
|
|
6428
|
-
}, {
|
|
6429
|
-
key: "validate",
|
|
6430
|
-
value: function validate(_date, value) {
|
|
6431
|
-
return value >= 0 && value <= 6;
|
|
6432
|
-
}
|
|
6433
|
-
}, {
|
|
6434
|
-
key: "set",
|
|
6435
|
-
value: function set(date, _flags, value, options) {
|
|
6436
|
-
date = setUTCDay(date, value, options);
|
|
6437
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6438
|
-
return date;
|
|
6439
|
-
}
|
|
6440
|
-
}]);
|
|
6441
|
-
|
|
6442
|
-
return LocalDayParser;
|
|
6443
|
-
}(Parser);
|
|
6444
|
-
|
|
6445
|
-
function _typeof$f(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$f = function _typeof(obj) { return typeof obj; }; } else { _typeof$f = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$f(obj); }
|
|
6446
|
-
|
|
6447
|
-
function _classCallCheck$f(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6448
|
-
|
|
6449
|
-
function _defineProperties$f(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6450
|
-
|
|
6451
|
-
function _createClass$f(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$f(Constructor.prototype, protoProps); if (staticProps) _defineProperties$f(Constructor, staticProps); return Constructor; }
|
|
6452
|
-
|
|
6453
|
-
function _inherits$f(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$f(subClass, superClass); }
|
|
6454
|
-
|
|
6455
|
-
function _setPrototypeOf$f(o, p) { _setPrototypeOf$f = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$f(o, p); }
|
|
6456
|
-
|
|
6457
|
-
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf$f(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$f(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$f(this, result); }; }
|
|
6458
|
-
|
|
6459
|
-
function _possibleConstructorReturn$f(self, call) { if (call && (_typeof$f(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$f(self); }
|
|
6460
|
-
|
|
6461
|
-
function _assertThisInitialized$f(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6462
|
-
|
|
6463
|
-
function _isNativeReflectConstruct$f() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6464
|
-
|
|
6465
|
-
function _getPrototypeOf$f(o) { _getPrototypeOf$f = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$f(o); }
|
|
6466
|
-
|
|
6467
|
-
function _defineProperty$f(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6468
|
-
|
|
6469
|
-
var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
6470
|
-
_inherits$f(StandAloneLocalDayParser, _Parser);
|
|
6471
|
-
|
|
6472
|
-
var _super = _createSuper$f(StandAloneLocalDayParser);
|
|
6473
|
-
|
|
6474
|
-
function StandAloneLocalDayParser() {
|
|
6475
|
-
var _this;
|
|
6476
|
-
|
|
6477
|
-
_classCallCheck$f(this, StandAloneLocalDayParser);
|
|
6478
|
-
|
|
6479
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6480
|
-
args[_key] = arguments[_key];
|
|
6481
|
-
}
|
|
6482
|
-
|
|
6483
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6484
|
-
|
|
6485
|
-
_defineProperty$f(_assertThisInitialized$f(_this), "priority", 90);
|
|
6486
|
-
|
|
6487
|
-
_defineProperty$f(_assertThisInitialized$f(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);
|
|
6488
|
-
|
|
6489
|
-
return _this;
|
|
6490
|
-
}
|
|
6491
|
-
|
|
6492
|
-
_createClass$f(StandAloneLocalDayParser, [{
|
|
6493
|
-
key: "parse",
|
|
6494
|
-
value: function parse(dateString, token, match, options) {
|
|
6495
|
-
var valueCallback = function valueCallback(value) {
|
|
6496
|
-
var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
|
|
6497
|
-
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
6498
|
-
};
|
|
6499
|
-
|
|
6500
|
-
switch (token) {
|
|
6501
|
-
// 3
|
|
6502
|
-
case 'c':
|
|
6503
|
-
case 'cc':
|
|
6504
|
-
// 03
|
|
6505
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
6506
|
-
// 3rd
|
|
6507
|
-
|
|
6508
|
-
case 'co':
|
|
6509
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
6510
|
-
unit: 'day'
|
|
6511
|
-
}), valueCallback);
|
|
6512
|
-
// Tue
|
|
6513
|
-
|
|
6514
|
-
case 'ccc':
|
|
6515
|
-
return match.day(dateString, {
|
|
6516
|
-
width: 'abbreviated',
|
|
6517
|
-
context: 'standalone'
|
|
6518
|
-
}) || match.day(dateString, {
|
|
6519
|
-
width: 'short',
|
|
6520
|
-
context: 'standalone'
|
|
6521
|
-
}) || match.day(dateString, {
|
|
6522
|
-
width: 'narrow',
|
|
6523
|
-
context: 'standalone'
|
|
6524
|
-
});
|
|
6525
|
-
// T
|
|
6526
|
-
|
|
6527
|
-
case 'ccccc':
|
|
6528
|
-
return match.day(dateString, {
|
|
6529
|
-
width: 'narrow',
|
|
6530
|
-
context: 'standalone'
|
|
6531
|
-
});
|
|
6532
|
-
// Tu
|
|
6533
|
-
|
|
6534
|
-
case 'cccccc':
|
|
6535
|
-
return match.day(dateString, {
|
|
6536
|
-
width: 'short',
|
|
6537
|
-
context: 'standalone'
|
|
6538
|
-
}) || match.day(dateString, {
|
|
6539
|
-
width: 'narrow',
|
|
6540
|
-
context: 'standalone'
|
|
6541
|
-
});
|
|
6542
|
-
// Tuesday
|
|
6543
|
-
|
|
6544
|
-
case 'cccc':
|
|
6545
|
-
default:
|
|
6546
|
-
return match.day(dateString, {
|
|
6547
|
-
width: 'wide',
|
|
6548
|
-
context: 'standalone'
|
|
6549
|
-
}) || match.day(dateString, {
|
|
6550
|
-
width: 'abbreviated',
|
|
6551
|
-
context: 'standalone'
|
|
6552
|
-
}) || match.day(dateString, {
|
|
6553
|
-
width: 'short',
|
|
6554
|
-
context: 'standalone'
|
|
6555
|
-
}) || match.day(dateString, {
|
|
6556
|
-
width: 'narrow',
|
|
6557
|
-
context: 'standalone'
|
|
6558
|
-
});
|
|
6559
|
-
}
|
|
6560
|
-
}
|
|
6561
|
-
}, {
|
|
6562
|
-
key: "validate",
|
|
6563
|
-
value: function validate(_date, value) {
|
|
6564
|
-
return value >= 0 && value <= 6;
|
|
6565
|
-
}
|
|
6566
|
-
}, {
|
|
6567
|
-
key: "set",
|
|
6568
|
-
value: function set(date, _flags, value, options) {
|
|
6569
|
-
date = setUTCDay(date, value, options);
|
|
6570
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6571
|
-
return date;
|
|
6572
|
-
}
|
|
6573
|
-
}]);
|
|
6574
|
-
|
|
6575
|
-
return StandAloneLocalDayParser;
|
|
6576
|
-
}(Parser);
|
|
6577
|
-
|
|
6578
|
-
function setUTCISODay(dirtyDate, dirtyDay) {
|
|
6579
|
-
requiredArgs(2, arguments);
|
|
6580
|
-
var day = toInteger(dirtyDay);
|
|
6581
|
-
|
|
6582
|
-
if (day % 7 === 0) {
|
|
6583
|
-
day = day - 7;
|
|
6584
|
-
}
|
|
6585
|
-
|
|
6586
|
-
var weekStartsOn = 1;
|
|
6587
|
-
var date = toDate(dirtyDate);
|
|
6588
|
-
var currentDay = date.getUTCDay();
|
|
6589
|
-
var remainder = day % 7;
|
|
6590
|
-
var dayIndex = (remainder + 7) % 7;
|
|
6591
|
-
var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
|
|
6592
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
6593
|
-
return date;
|
|
6594
|
-
}
|
|
6595
|
-
|
|
6596
|
-
function _typeof$e(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$e = function _typeof(obj) { return typeof obj; }; } else { _typeof$e = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$e(obj); }
|
|
6597
|
-
|
|
6598
|
-
function _classCallCheck$e(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6599
|
-
|
|
6600
|
-
function _defineProperties$e(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6601
|
-
|
|
6602
|
-
function _createClass$e(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$e(Constructor.prototype, protoProps); if (staticProps) _defineProperties$e(Constructor, staticProps); return Constructor; }
|
|
6603
|
-
|
|
6604
|
-
function _inherits$e(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$e(subClass, superClass); }
|
|
6605
|
-
|
|
6606
|
-
function _setPrototypeOf$e(o, p) { _setPrototypeOf$e = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$e(o, p); }
|
|
6607
|
-
|
|
6608
|
-
function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf$e(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$e(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$e(this, result); }; }
|
|
6609
|
-
|
|
6610
|
-
function _possibleConstructorReturn$e(self, call) { if (call && (_typeof$e(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$e(self); }
|
|
6611
|
-
|
|
6612
|
-
function _assertThisInitialized$e(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6613
|
-
|
|
6614
|
-
function _isNativeReflectConstruct$e() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6615
|
-
|
|
6616
|
-
function _getPrototypeOf$e(o) { _getPrototypeOf$e = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$e(o); }
|
|
6617
|
-
|
|
6618
|
-
function _defineProperty$e(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6619
|
-
|
|
6620
|
-
var ISODayParser = /*#__PURE__*/function (_Parser) {
|
|
6621
|
-
_inherits$e(ISODayParser, _Parser);
|
|
6622
|
-
|
|
6623
|
-
var _super = _createSuper$e(ISODayParser);
|
|
6624
|
-
|
|
6625
|
-
function ISODayParser() {
|
|
6626
|
-
var _this;
|
|
6627
|
-
|
|
6628
|
-
_classCallCheck$e(this, ISODayParser);
|
|
6629
|
-
|
|
6630
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6631
|
-
args[_key] = arguments[_key];
|
|
6632
|
-
}
|
|
6633
|
-
|
|
6634
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6635
|
-
|
|
6636
|
-
_defineProperty$e(_assertThisInitialized$e(_this), "priority", 90);
|
|
6637
|
-
|
|
6638
|
-
_defineProperty$e(_assertThisInitialized$e(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);
|
|
6639
|
-
|
|
6640
|
-
return _this;
|
|
6641
|
-
}
|
|
6642
|
-
|
|
6643
|
-
_createClass$e(ISODayParser, [{
|
|
6644
|
-
key: "parse",
|
|
6645
|
-
value: function parse(dateString, token, match) {
|
|
6646
|
-
var valueCallback = function valueCallback(value) {
|
|
6647
|
-
if (value === 0) {
|
|
6648
|
-
return 7;
|
|
6649
|
-
}
|
|
6650
|
-
|
|
6651
|
-
return value;
|
|
6652
|
-
};
|
|
6653
|
-
|
|
6654
|
-
switch (token) {
|
|
6655
|
-
// 2
|
|
6656
|
-
case 'i':
|
|
6657
|
-
case 'ii':
|
|
6658
|
-
// 02
|
|
6659
|
-
return parseNDigits(token.length, dateString);
|
|
6660
|
-
// 2nd
|
|
6661
|
-
|
|
6662
|
-
case 'io':
|
|
6663
|
-
return match.ordinalNumber(dateString, {
|
|
6664
|
-
unit: 'day'
|
|
6665
|
-
});
|
|
6666
|
-
// Tue
|
|
6667
|
-
|
|
6668
|
-
case 'iii':
|
|
6669
|
-
return mapValue(match.day(dateString, {
|
|
6670
|
-
width: 'abbreviated',
|
|
6671
|
-
context: 'formatting'
|
|
6672
|
-
}) || match.day(dateString, {
|
|
6673
|
-
width: 'short',
|
|
6674
|
-
context: 'formatting'
|
|
6675
|
-
}) || match.day(dateString, {
|
|
6676
|
-
width: 'narrow',
|
|
6677
|
-
context: 'formatting'
|
|
6678
|
-
}), valueCallback);
|
|
6679
|
-
// T
|
|
6680
|
-
|
|
6681
|
-
case 'iiiii':
|
|
6682
|
-
return mapValue(match.day(dateString, {
|
|
6683
|
-
width: 'narrow',
|
|
6684
|
-
context: 'formatting'
|
|
6685
|
-
}), valueCallback);
|
|
6686
|
-
// Tu
|
|
6687
|
-
|
|
6688
|
-
case 'iiiiii':
|
|
6689
|
-
return mapValue(match.day(dateString, {
|
|
6690
|
-
width: 'short',
|
|
6691
|
-
context: 'formatting'
|
|
6692
|
-
}) || match.day(dateString, {
|
|
6693
|
-
width: 'narrow',
|
|
6694
|
-
context: 'formatting'
|
|
6695
|
-
}), valueCallback);
|
|
6696
|
-
// Tuesday
|
|
6697
|
-
|
|
6698
|
-
case 'iiii':
|
|
6699
|
-
default:
|
|
6700
|
-
return mapValue(match.day(dateString, {
|
|
6701
|
-
width: 'wide',
|
|
6702
|
-
context: 'formatting'
|
|
6703
|
-
}) || match.day(dateString, {
|
|
6704
|
-
width: 'abbreviated',
|
|
6705
|
-
context: 'formatting'
|
|
6706
|
-
}) || match.day(dateString, {
|
|
6707
|
-
width: 'short',
|
|
6708
|
-
context: 'formatting'
|
|
6709
|
-
}) || match.day(dateString, {
|
|
6710
|
-
width: 'narrow',
|
|
6711
|
-
context: 'formatting'
|
|
6712
|
-
}), valueCallback);
|
|
6713
|
-
}
|
|
6714
|
-
}
|
|
6715
|
-
}, {
|
|
6716
|
-
key: "validate",
|
|
6717
|
-
value: function validate(_date, value) {
|
|
6718
|
-
return value >= 1 && value <= 7;
|
|
6719
|
-
}
|
|
6720
|
-
}, {
|
|
6721
|
-
key: "set",
|
|
6722
|
-
value: function set(date, _flags, value) {
|
|
6723
|
-
date = setUTCISODay(date, value);
|
|
6724
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6725
|
-
return date;
|
|
6726
|
-
}
|
|
6727
|
-
}]);
|
|
6728
|
-
|
|
6729
|
-
return ISODayParser;
|
|
6730
|
-
}(Parser);
|
|
6731
|
-
|
|
6732
|
-
function _typeof$d(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$d = function _typeof(obj) { return typeof obj; }; } else { _typeof$d = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$d(obj); }
|
|
6733
|
-
|
|
6734
|
-
function _classCallCheck$d(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6735
|
-
|
|
6736
|
-
function _defineProperties$d(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6737
|
-
|
|
6738
|
-
function _createClass$d(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$d(Constructor.prototype, protoProps); if (staticProps) _defineProperties$d(Constructor, staticProps); return Constructor; }
|
|
6739
|
-
|
|
6740
|
-
function _inherits$d(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$d(subClass, superClass); }
|
|
6741
|
-
|
|
6742
|
-
function _setPrototypeOf$d(o, p) { _setPrototypeOf$d = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$d(o, p); }
|
|
6743
|
-
|
|
6744
|
-
function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf$d(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$d(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$d(this, result); }; }
|
|
6745
|
-
|
|
6746
|
-
function _possibleConstructorReturn$d(self, call) { if (call && (_typeof$d(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$d(self); }
|
|
6747
|
-
|
|
6748
|
-
function _assertThisInitialized$d(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6749
|
-
|
|
6750
|
-
function _isNativeReflectConstruct$d() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6751
|
-
|
|
6752
|
-
function _getPrototypeOf$d(o) { _getPrototypeOf$d = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$d(o); }
|
|
6753
|
-
|
|
6754
|
-
function _defineProperty$d(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6755
|
-
var AMPMParser = /*#__PURE__*/function (_Parser) {
|
|
6756
|
-
_inherits$d(AMPMParser, _Parser);
|
|
6757
|
-
|
|
6758
|
-
var _super = _createSuper$d(AMPMParser);
|
|
6759
|
-
|
|
6760
|
-
function AMPMParser() {
|
|
6761
|
-
var _this;
|
|
6762
|
-
|
|
6763
|
-
_classCallCheck$d(this, AMPMParser);
|
|
6764
|
-
|
|
6765
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6766
|
-
args[_key] = arguments[_key];
|
|
6767
|
-
}
|
|
6768
|
-
|
|
6769
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6770
|
-
|
|
6771
|
-
_defineProperty$d(_assertThisInitialized$d(_this), "priority", 80);
|
|
6772
|
-
|
|
6773
|
-
_defineProperty$d(_assertThisInitialized$d(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']);
|
|
6774
|
-
|
|
6775
|
-
return _this;
|
|
6776
|
-
}
|
|
6777
|
-
|
|
6778
|
-
_createClass$d(AMPMParser, [{
|
|
6779
|
-
key: "parse",
|
|
6780
|
-
value: function parse(dateString, token, match) {
|
|
6781
|
-
switch (token) {
|
|
6782
|
-
case 'a':
|
|
6783
|
-
case 'aa':
|
|
6784
|
-
case 'aaa':
|
|
6785
|
-
return match.dayPeriod(dateString, {
|
|
6786
|
-
width: 'abbreviated',
|
|
6787
|
-
context: 'formatting'
|
|
6788
|
-
}) || match.dayPeriod(dateString, {
|
|
6789
|
-
width: 'narrow',
|
|
6790
|
-
context: 'formatting'
|
|
6791
|
-
});
|
|
6792
|
-
|
|
6793
|
-
case 'aaaaa':
|
|
6794
|
-
return match.dayPeriod(dateString, {
|
|
6795
|
-
width: 'narrow',
|
|
6796
|
-
context: 'formatting'
|
|
6797
|
-
});
|
|
6798
|
-
|
|
6799
|
-
case 'aaaa':
|
|
6800
|
-
default:
|
|
6801
|
-
return match.dayPeriod(dateString, {
|
|
6802
|
-
width: 'wide',
|
|
6803
|
-
context: 'formatting'
|
|
6804
|
-
}) || match.dayPeriod(dateString, {
|
|
6805
|
-
width: 'abbreviated',
|
|
6806
|
-
context: 'formatting'
|
|
6807
|
-
}) || match.dayPeriod(dateString, {
|
|
6808
|
-
width: 'narrow',
|
|
6809
|
-
context: 'formatting'
|
|
6810
|
-
});
|
|
6811
|
-
}
|
|
6812
|
-
}
|
|
6813
|
-
}, {
|
|
6814
|
-
key: "set",
|
|
6815
|
-
value: function set(date, _flags, value) {
|
|
6816
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
6817
|
-
return date;
|
|
6818
|
-
}
|
|
6819
|
-
}]);
|
|
6820
|
-
|
|
6821
|
-
return AMPMParser;
|
|
6822
|
-
}(Parser);
|
|
6823
|
-
|
|
6824
|
-
function _typeof$c(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$c = function _typeof(obj) { return typeof obj; }; } else { _typeof$c = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$c(obj); }
|
|
6825
|
-
|
|
6826
|
-
function _classCallCheck$c(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6827
|
-
|
|
6828
|
-
function _defineProperties$c(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6829
|
-
|
|
6830
|
-
function _createClass$c(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$c(Constructor.prototype, protoProps); if (staticProps) _defineProperties$c(Constructor, staticProps); return Constructor; }
|
|
6831
|
-
|
|
6832
|
-
function _inherits$c(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$c(subClass, superClass); }
|
|
6833
|
-
|
|
6834
|
-
function _setPrototypeOf$c(o, p) { _setPrototypeOf$c = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$c(o, p); }
|
|
6835
|
-
|
|
6836
|
-
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf$c(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$c(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$c(this, result); }; }
|
|
6837
|
-
|
|
6838
|
-
function _possibleConstructorReturn$c(self, call) { if (call && (_typeof$c(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$c(self); }
|
|
6839
|
-
|
|
6840
|
-
function _assertThisInitialized$c(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6841
|
-
|
|
6842
|
-
function _isNativeReflectConstruct$c() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6843
|
-
|
|
6844
|
-
function _getPrototypeOf$c(o) { _getPrototypeOf$c = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$c(o); }
|
|
6845
|
-
|
|
6846
|
-
function _defineProperty$c(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6847
|
-
var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
|
|
6848
|
-
_inherits$c(AMPMMidnightParser, _Parser);
|
|
6849
|
-
|
|
6850
|
-
var _super = _createSuper$c(AMPMMidnightParser);
|
|
6851
|
-
|
|
6852
|
-
function AMPMMidnightParser() {
|
|
6853
|
-
var _this;
|
|
6854
|
-
|
|
6855
|
-
_classCallCheck$c(this, AMPMMidnightParser);
|
|
6856
|
-
|
|
6857
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6858
|
-
args[_key] = arguments[_key];
|
|
6859
|
-
}
|
|
6860
|
-
|
|
6861
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6862
|
-
|
|
6863
|
-
_defineProperty$c(_assertThisInitialized$c(_this), "priority", 80);
|
|
6864
|
-
|
|
6865
|
-
_defineProperty$c(_assertThisInitialized$c(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']);
|
|
6866
|
-
|
|
6867
|
-
return _this;
|
|
6868
|
-
}
|
|
6869
|
-
|
|
6870
|
-
_createClass$c(AMPMMidnightParser, [{
|
|
6871
|
-
key: "parse",
|
|
6872
|
-
value: function parse(dateString, token, match) {
|
|
6873
|
-
switch (token) {
|
|
6874
|
-
case 'b':
|
|
6875
|
-
case 'bb':
|
|
6876
|
-
case 'bbb':
|
|
6877
|
-
return match.dayPeriod(dateString, {
|
|
6878
|
-
width: 'abbreviated',
|
|
6879
|
-
context: 'formatting'
|
|
6880
|
-
}) || match.dayPeriod(dateString, {
|
|
6881
|
-
width: 'narrow',
|
|
6882
|
-
context: 'formatting'
|
|
6883
|
-
});
|
|
6884
|
-
|
|
6885
|
-
case 'bbbbb':
|
|
6886
|
-
return match.dayPeriod(dateString, {
|
|
6887
|
-
width: 'narrow',
|
|
6888
|
-
context: 'formatting'
|
|
6889
|
-
});
|
|
6890
|
-
|
|
6891
|
-
case 'bbbb':
|
|
6892
|
-
default:
|
|
6893
|
-
return match.dayPeriod(dateString, {
|
|
6894
|
-
width: 'wide',
|
|
6895
|
-
context: 'formatting'
|
|
6896
|
-
}) || match.dayPeriod(dateString, {
|
|
6897
|
-
width: 'abbreviated',
|
|
6898
|
-
context: 'formatting'
|
|
6899
|
-
}) || match.dayPeriod(dateString, {
|
|
6900
|
-
width: 'narrow',
|
|
6901
|
-
context: 'formatting'
|
|
6902
|
-
});
|
|
6903
|
-
}
|
|
6904
|
-
}
|
|
6905
|
-
}, {
|
|
6906
|
-
key: "set",
|
|
6907
|
-
value: function set(date, _flags, value) {
|
|
6908
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
6909
|
-
return date;
|
|
6910
|
-
}
|
|
6911
|
-
}]);
|
|
6912
|
-
|
|
6913
|
-
return AMPMMidnightParser;
|
|
6914
|
-
}(Parser);
|
|
6915
|
-
|
|
6916
|
-
function _typeof$b(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$b = function _typeof(obj) { return typeof obj; }; } else { _typeof$b = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$b(obj); }
|
|
6917
|
-
|
|
6918
|
-
function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6919
|
-
|
|
6920
|
-
function _defineProperties$b(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6921
|
-
|
|
6922
|
-
function _createClass$b(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$b(Constructor.prototype, protoProps); if (staticProps) _defineProperties$b(Constructor, staticProps); return Constructor; }
|
|
6923
|
-
|
|
6924
|
-
function _inherits$b(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$b(subClass, superClass); }
|
|
6925
|
-
|
|
6926
|
-
function _setPrototypeOf$b(o, p) { _setPrototypeOf$b = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$b(o, p); }
|
|
6927
|
-
|
|
6928
|
-
function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf$b(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$b(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$b(this, result); }; }
|
|
6929
|
-
|
|
6930
|
-
function _possibleConstructorReturn$b(self, call) { if (call && (_typeof$b(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$b(self); }
|
|
6931
|
-
|
|
6932
|
-
function _assertThisInitialized$b(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6933
|
-
|
|
6934
|
-
function _isNativeReflectConstruct$b() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6935
|
-
|
|
6936
|
-
function _getPrototypeOf$b(o) { _getPrototypeOf$b = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$b(o); }
|
|
6937
|
-
|
|
6938
|
-
function _defineProperty$b(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6939
|
-
|
|
6940
|
-
var DayPeriodParser = /*#__PURE__*/function (_Parser) {
|
|
6941
|
-
_inherits$b(DayPeriodParser, _Parser);
|
|
6942
|
-
|
|
6943
|
-
var _super = _createSuper$b(DayPeriodParser);
|
|
6944
|
-
|
|
6945
|
-
function DayPeriodParser() {
|
|
6946
|
-
var _this;
|
|
6947
|
-
|
|
6948
|
-
_classCallCheck$b(this, DayPeriodParser);
|
|
6949
|
-
|
|
6950
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6951
|
-
args[_key] = arguments[_key];
|
|
6952
|
-
}
|
|
6953
|
-
|
|
6954
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6955
|
-
|
|
6956
|
-
_defineProperty$b(_assertThisInitialized$b(_this), "priority", 80);
|
|
6957
|
-
|
|
6958
|
-
_defineProperty$b(_assertThisInitialized$b(_this), "incompatibleTokens", ['a', 'b', 't', 'T']);
|
|
6959
|
-
|
|
6960
|
-
return _this;
|
|
6961
|
-
}
|
|
6962
|
-
|
|
6963
|
-
_createClass$b(DayPeriodParser, [{
|
|
6964
|
-
key: "parse",
|
|
6965
|
-
value: function parse(dateString, token, match) {
|
|
6966
|
-
switch (token) {
|
|
6967
|
-
case 'B':
|
|
6968
|
-
case 'BB':
|
|
6969
|
-
case 'BBB':
|
|
6970
|
-
return match.dayPeriod(dateString, {
|
|
6971
|
-
width: 'abbreviated',
|
|
6972
|
-
context: 'formatting'
|
|
6973
|
-
}) || match.dayPeriod(dateString, {
|
|
6974
|
-
width: 'narrow',
|
|
6975
|
-
context: 'formatting'
|
|
6976
|
-
});
|
|
6977
|
-
|
|
6978
|
-
case 'BBBBB':
|
|
6979
|
-
return match.dayPeriod(dateString, {
|
|
6980
|
-
width: 'narrow',
|
|
6981
|
-
context: 'formatting'
|
|
6982
|
-
});
|
|
6983
|
-
|
|
6984
|
-
case 'BBBB':
|
|
6985
|
-
default:
|
|
6986
|
-
return match.dayPeriod(dateString, {
|
|
6987
|
-
width: 'wide',
|
|
6988
|
-
context: 'formatting'
|
|
6989
|
-
}) || match.dayPeriod(dateString, {
|
|
6990
|
-
width: 'abbreviated',
|
|
6991
|
-
context: 'formatting'
|
|
6992
|
-
}) || match.dayPeriod(dateString, {
|
|
6993
|
-
width: 'narrow',
|
|
6994
|
-
context: 'formatting'
|
|
6995
|
-
});
|
|
6996
|
-
}
|
|
6997
|
-
}
|
|
6998
|
-
}, {
|
|
6999
|
-
key: "set",
|
|
7000
|
-
value: function set(date, _flags, value) {
|
|
7001
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
7002
|
-
return date;
|
|
7003
|
-
}
|
|
7004
|
-
}]);
|
|
7005
|
-
|
|
7006
|
-
return DayPeriodParser;
|
|
7007
|
-
}(Parser);
|
|
7008
|
-
|
|
7009
|
-
function _typeof$a(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$a = function _typeof(obj) { return typeof obj; }; } else { _typeof$a = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$a(obj); }
|
|
7010
|
-
|
|
7011
|
-
function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7012
|
-
|
|
7013
|
-
function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7014
|
-
|
|
7015
|
-
function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); return Constructor; }
|
|
7016
|
-
|
|
7017
|
-
function _inherits$a(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$a(subClass, superClass); }
|
|
7018
|
-
|
|
7019
|
-
function _setPrototypeOf$a(o, p) { _setPrototypeOf$a = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$a(o, p); }
|
|
7020
|
-
|
|
7021
|
-
function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf$a(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$a(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$a(this, result); }; }
|
|
7022
|
-
|
|
7023
|
-
function _possibleConstructorReturn$a(self, call) { if (call && (_typeof$a(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$a(self); }
|
|
7024
|
-
|
|
7025
|
-
function _assertThisInitialized$a(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7026
|
-
|
|
7027
|
-
function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7028
|
-
|
|
7029
|
-
function _getPrototypeOf$a(o) { _getPrototypeOf$a = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$a(o); }
|
|
7030
|
-
|
|
7031
|
-
function _defineProperty$a(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7032
|
-
var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
|
|
7033
|
-
_inherits$a(Hour1to12Parser, _Parser);
|
|
7034
|
-
|
|
7035
|
-
var _super = _createSuper$a(Hour1to12Parser);
|
|
7036
|
-
|
|
7037
|
-
function Hour1to12Parser() {
|
|
7038
|
-
var _this;
|
|
7039
|
-
|
|
7040
|
-
_classCallCheck$a(this, Hour1to12Parser);
|
|
7041
|
-
|
|
7042
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7043
|
-
args[_key] = arguments[_key];
|
|
7044
|
-
}
|
|
7045
|
-
|
|
7046
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7047
|
-
|
|
7048
|
-
_defineProperty$a(_assertThisInitialized$a(_this), "priority", 70);
|
|
7049
|
-
|
|
7050
|
-
_defineProperty$a(_assertThisInitialized$a(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']);
|
|
7051
|
-
|
|
7052
|
-
return _this;
|
|
7053
|
-
}
|
|
7054
|
-
|
|
7055
|
-
_createClass$a(Hour1to12Parser, [{
|
|
7056
|
-
key: "parse",
|
|
7057
|
-
value: function parse(dateString, token, match) {
|
|
7058
|
-
switch (token) {
|
|
7059
|
-
case 'h':
|
|
7060
|
-
return parseNumericPattern(numericPatterns.hour12h, dateString);
|
|
7061
|
-
|
|
7062
|
-
case 'ho':
|
|
7063
|
-
return match.ordinalNumber(dateString, {
|
|
7064
|
-
unit: 'hour'
|
|
7065
|
-
});
|
|
7066
|
-
|
|
7067
|
-
default:
|
|
7068
|
-
return parseNDigits(token.length, dateString);
|
|
7069
|
-
}
|
|
7070
|
-
}
|
|
7071
|
-
}, {
|
|
7072
|
-
key: "validate",
|
|
7073
|
-
value: function validate(_date, value) {
|
|
7074
|
-
return value >= 1 && value <= 12;
|
|
7075
|
-
}
|
|
7076
|
-
}, {
|
|
7077
|
-
key: "set",
|
|
7078
|
-
value: function set(date, _flags, value) {
|
|
7079
|
-
var isPM = date.getUTCHours() >= 12;
|
|
7080
|
-
|
|
7081
|
-
if (isPM && value < 12) {
|
|
7082
|
-
date.setUTCHours(value + 12, 0, 0, 0);
|
|
7083
|
-
} else if (!isPM && value === 12) {
|
|
7084
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
7085
|
-
} else {
|
|
7086
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
7087
|
-
}
|
|
7088
|
-
|
|
7089
|
-
return date;
|
|
7090
|
-
}
|
|
7091
|
-
}]);
|
|
7092
|
-
|
|
7093
|
-
return Hour1to12Parser;
|
|
7094
|
-
}(Parser);
|
|
7095
|
-
|
|
7096
|
-
function _typeof$9(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$9 = function _typeof(obj) { return typeof obj; }; } else { _typeof$9 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$9(obj); }
|
|
7097
|
-
|
|
7098
|
-
function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7099
|
-
|
|
7100
|
-
function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7101
|
-
|
|
7102
|
-
function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); return Constructor; }
|
|
7103
|
-
|
|
7104
|
-
function _inherits$9(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$9(subClass, superClass); }
|
|
7105
|
-
|
|
7106
|
-
function _setPrototypeOf$9(o, p) { _setPrototypeOf$9 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$9(o, p); }
|
|
7107
|
-
|
|
7108
|
-
function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf$9(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$9(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$9(this, result); }; }
|
|
7109
|
-
|
|
7110
|
-
function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$9(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$9(self); }
|
|
7111
|
-
|
|
7112
|
-
function _assertThisInitialized$9(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7113
|
-
|
|
7114
|
-
function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7115
|
-
|
|
7116
|
-
function _getPrototypeOf$9(o) { _getPrototypeOf$9 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$9(o); }
|
|
7117
|
-
|
|
7118
|
-
function _defineProperty$9(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7119
|
-
var Hour0to23Parser = /*#__PURE__*/function (_Parser) {
|
|
7120
|
-
_inherits$9(Hour0to23Parser, _Parser);
|
|
7121
|
-
|
|
7122
|
-
var _super = _createSuper$9(Hour0to23Parser);
|
|
7123
|
-
|
|
7124
|
-
function Hour0to23Parser() {
|
|
7125
|
-
var _this;
|
|
7126
|
-
|
|
7127
|
-
_classCallCheck$9(this, Hour0to23Parser);
|
|
7128
|
-
|
|
7129
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7130
|
-
args[_key] = arguments[_key];
|
|
7131
|
-
}
|
|
7132
|
-
|
|
7133
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7134
|
-
|
|
7135
|
-
_defineProperty$9(_assertThisInitialized$9(_this), "priority", 70);
|
|
7136
|
-
|
|
7137
|
-
_defineProperty$9(_assertThisInitialized$9(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']);
|
|
7138
|
-
|
|
7139
|
-
return _this;
|
|
7140
|
-
}
|
|
7141
|
-
|
|
7142
|
-
_createClass$9(Hour0to23Parser, [{
|
|
7143
|
-
key: "parse",
|
|
7144
|
-
value: function parse(dateString, token, match) {
|
|
7145
|
-
switch (token) {
|
|
7146
|
-
case 'H':
|
|
7147
|
-
return parseNumericPattern(numericPatterns.hour23h, dateString);
|
|
7148
|
-
|
|
7149
|
-
case 'Ho':
|
|
7150
|
-
return match.ordinalNumber(dateString, {
|
|
7151
|
-
unit: 'hour'
|
|
7152
|
-
});
|
|
7153
|
-
|
|
7154
|
-
default:
|
|
7155
|
-
return parseNDigits(token.length, dateString);
|
|
7156
|
-
}
|
|
7157
|
-
}
|
|
7158
|
-
}, {
|
|
7159
|
-
key: "validate",
|
|
7160
|
-
value: function validate(_date, value) {
|
|
7161
|
-
return value >= 0 && value <= 23;
|
|
7162
|
-
}
|
|
7163
|
-
}, {
|
|
7164
|
-
key: "set",
|
|
7165
|
-
value: function set(date, _flags, value) {
|
|
7166
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
7167
|
-
return date;
|
|
7168
|
-
}
|
|
7169
|
-
}]);
|
|
7170
|
-
|
|
7171
|
-
return Hour0to23Parser;
|
|
7172
|
-
}(Parser);
|
|
7173
|
-
|
|
7174
|
-
function _typeof$8(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$8 = function _typeof(obj) { return typeof obj; }; } else { _typeof$8 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$8(obj); }
|
|
7175
|
-
|
|
7176
|
-
function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7177
|
-
|
|
7178
|
-
function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7179
|
-
|
|
7180
|
-
function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); return Constructor; }
|
|
7181
|
-
|
|
7182
|
-
function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
|
|
7183
|
-
|
|
7184
|
-
function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
|
|
7185
|
-
|
|
7186
|
-
function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
|
|
7187
|
-
|
|
7188
|
-
function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$8(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$8(self); }
|
|
7189
|
-
|
|
7190
|
-
function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7191
|
-
|
|
7192
|
-
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7193
|
-
|
|
7194
|
-
function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
|
|
7195
|
-
|
|
7196
|
-
function _defineProperty$8(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7197
|
-
var Hour0To11Parser = /*#__PURE__*/function (_Parser) {
|
|
7198
|
-
_inherits$8(Hour0To11Parser, _Parser);
|
|
7199
|
-
|
|
7200
|
-
var _super = _createSuper$8(Hour0To11Parser);
|
|
7201
|
-
|
|
7202
|
-
function Hour0To11Parser() {
|
|
7203
|
-
var _this;
|
|
7204
|
-
|
|
7205
|
-
_classCallCheck$8(this, Hour0To11Parser);
|
|
7206
|
-
|
|
7207
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7208
|
-
args[_key] = arguments[_key];
|
|
7209
|
-
}
|
|
7210
|
-
|
|
7211
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7212
|
-
|
|
7213
|
-
_defineProperty$8(_assertThisInitialized$8(_this), "priority", 70);
|
|
7214
|
-
|
|
7215
|
-
_defineProperty$8(_assertThisInitialized$8(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']);
|
|
7216
|
-
|
|
7217
|
-
return _this;
|
|
7218
|
-
}
|
|
7219
|
-
|
|
7220
|
-
_createClass$8(Hour0To11Parser, [{
|
|
7221
|
-
key: "parse",
|
|
7222
|
-
value: function parse(dateString, token, match) {
|
|
7223
|
-
switch (token) {
|
|
7224
|
-
case 'K':
|
|
7225
|
-
return parseNumericPattern(numericPatterns.hour11h, dateString);
|
|
7226
|
-
|
|
7227
|
-
case 'Ko':
|
|
7228
|
-
return match.ordinalNumber(dateString, {
|
|
7229
|
-
unit: 'hour'
|
|
7230
|
-
});
|
|
7231
|
-
|
|
7232
|
-
default:
|
|
7233
|
-
return parseNDigits(token.length, dateString);
|
|
7234
|
-
}
|
|
7235
|
-
}
|
|
7236
|
-
}, {
|
|
7237
|
-
key: "validate",
|
|
7238
|
-
value: function validate(_date, value) {
|
|
7239
|
-
return value >= 0 && value <= 11;
|
|
7240
|
-
}
|
|
7241
|
-
}, {
|
|
7242
|
-
key: "set",
|
|
7243
|
-
value: function set(date, _flags, value) {
|
|
7244
|
-
var isPM = date.getUTCHours() >= 12;
|
|
7245
|
-
|
|
7246
|
-
if (isPM && value < 12) {
|
|
7247
|
-
date.setUTCHours(value + 12, 0, 0, 0);
|
|
7248
|
-
} else {
|
|
7249
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
7250
|
-
}
|
|
7251
|
-
|
|
7252
|
-
return date;
|
|
7253
|
-
}
|
|
7254
|
-
}]);
|
|
7255
|
-
|
|
7256
|
-
return Hour0To11Parser;
|
|
7257
|
-
}(Parser);
|
|
7258
|
-
|
|
7259
|
-
function _typeof$7(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$7 = function _typeof(obj) { return typeof obj; }; } else { _typeof$7 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$7(obj); }
|
|
7260
|
-
|
|
7261
|
-
function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7262
|
-
|
|
7263
|
-
function _defineProperties$7(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7264
|
-
|
|
7265
|
-
function _createClass$7(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$7(Constructor.prototype, protoProps); if (staticProps) _defineProperties$7(Constructor, staticProps); return Constructor; }
|
|
7266
|
-
|
|
7267
|
-
function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
|
|
7268
|
-
|
|
7269
|
-
function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
|
|
7270
|
-
|
|
7271
|
-
function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
|
|
7272
|
-
|
|
7273
|
-
function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$7(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$7(self); }
|
|
7274
|
-
|
|
7275
|
-
function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7276
|
-
|
|
7277
|
-
function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7278
|
-
|
|
7279
|
-
function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
|
|
7280
|
-
|
|
7281
|
-
function _defineProperty$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7282
|
-
var Hour1To24Parser = /*#__PURE__*/function (_Parser) {
|
|
7283
|
-
_inherits$7(Hour1To24Parser, _Parser);
|
|
7284
|
-
|
|
7285
|
-
var _super = _createSuper$7(Hour1To24Parser);
|
|
7286
|
-
|
|
7287
|
-
function Hour1To24Parser() {
|
|
7288
|
-
var _this;
|
|
7289
|
-
|
|
7290
|
-
_classCallCheck$7(this, Hour1To24Parser);
|
|
7291
|
-
|
|
7292
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7293
|
-
args[_key] = arguments[_key];
|
|
7294
|
-
}
|
|
7295
|
-
|
|
7296
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7297
|
-
|
|
7298
|
-
_defineProperty$7(_assertThisInitialized$7(_this), "priority", 70);
|
|
7299
|
-
|
|
7300
|
-
_defineProperty$7(_assertThisInitialized$7(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']);
|
|
7301
|
-
|
|
7302
|
-
return _this;
|
|
7303
|
-
}
|
|
7304
|
-
|
|
7305
|
-
_createClass$7(Hour1To24Parser, [{
|
|
7306
|
-
key: "parse",
|
|
7307
|
-
value: function parse(dateString, token, match) {
|
|
7308
|
-
switch (token) {
|
|
7309
|
-
case 'k':
|
|
7310
|
-
return parseNumericPattern(numericPatterns.hour24h, dateString);
|
|
7311
|
-
|
|
7312
|
-
case 'ko':
|
|
7313
|
-
return match.ordinalNumber(dateString, {
|
|
7314
|
-
unit: 'hour'
|
|
7315
|
-
});
|
|
7316
|
-
|
|
7317
|
-
default:
|
|
7318
|
-
return parseNDigits(token.length, dateString);
|
|
7319
|
-
}
|
|
7320
|
-
}
|
|
7321
|
-
}, {
|
|
7322
|
-
key: "validate",
|
|
7323
|
-
value: function validate(_date, value) {
|
|
7324
|
-
return value >= 1 && value <= 24;
|
|
7325
|
-
}
|
|
7326
|
-
}, {
|
|
7327
|
-
key: "set",
|
|
7328
|
-
value: function set(date, _flags, value) {
|
|
7329
|
-
var hours = value <= 24 ? value % 24 : value;
|
|
7330
|
-
date.setUTCHours(hours, 0, 0, 0);
|
|
7331
|
-
return date;
|
|
7332
|
-
}
|
|
7333
|
-
}]);
|
|
7334
|
-
|
|
7335
|
-
return Hour1To24Parser;
|
|
7336
|
-
}(Parser);
|
|
7337
|
-
|
|
7338
|
-
function _typeof$6(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$6 = function _typeof(obj) { return typeof obj; }; } else { _typeof$6 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$6(obj); }
|
|
7339
|
-
|
|
7340
|
-
function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7341
|
-
|
|
7342
|
-
function _defineProperties$6(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7343
|
-
|
|
7344
|
-
function _createClass$6(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); if (staticProps) _defineProperties$6(Constructor, staticProps); return Constructor; }
|
|
7345
|
-
|
|
7346
|
-
function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
|
|
7347
|
-
|
|
7348
|
-
function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
|
|
7349
|
-
|
|
7350
|
-
function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
|
|
7351
|
-
|
|
7352
|
-
function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$6(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$6(self); }
|
|
7353
|
-
|
|
7354
|
-
function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7355
|
-
|
|
7356
|
-
function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7357
|
-
|
|
7358
|
-
function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
|
|
7359
|
-
|
|
7360
|
-
function _defineProperty$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7361
|
-
var MinuteParser = /*#__PURE__*/function (_Parser) {
|
|
7362
|
-
_inherits$6(MinuteParser, _Parser);
|
|
7363
|
-
|
|
7364
|
-
var _super = _createSuper$6(MinuteParser);
|
|
7365
|
-
|
|
7366
|
-
function MinuteParser() {
|
|
7367
|
-
var _this;
|
|
7368
|
-
|
|
7369
|
-
_classCallCheck$6(this, MinuteParser);
|
|
7370
|
-
|
|
7371
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7372
|
-
args[_key] = arguments[_key];
|
|
7373
|
-
}
|
|
7374
|
-
|
|
7375
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7376
|
-
|
|
7377
|
-
_defineProperty$6(_assertThisInitialized$6(_this), "priority", 60);
|
|
7378
|
-
|
|
7379
|
-
_defineProperty$6(_assertThisInitialized$6(_this), "incompatibleTokens", ['t', 'T']);
|
|
7380
|
-
|
|
7381
|
-
return _this;
|
|
7382
|
-
}
|
|
7383
|
-
|
|
7384
|
-
_createClass$6(MinuteParser, [{
|
|
7385
|
-
key: "parse",
|
|
7386
|
-
value: function parse(dateString, token, match) {
|
|
7387
|
-
switch (token) {
|
|
7388
|
-
case 'm':
|
|
7389
|
-
return parseNumericPattern(numericPatterns.minute, dateString);
|
|
7390
|
-
|
|
7391
|
-
case 'mo':
|
|
7392
|
-
return match.ordinalNumber(dateString, {
|
|
7393
|
-
unit: 'minute'
|
|
7394
|
-
});
|
|
7395
|
-
|
|
7396
|
-
default:
|
|
7397
|
-
return parseNDigits(token.length, dateString);
|
|
7398
|
-
}
|
|
7399
|
-
}
|
|
7400
|
-
}, {
|
|
7401
|
-
key: "validate",
|
|
7402
|
-
value: function validate(_date, value) {
|
|
7403
|
-
return value >= 0 && value <= 59;
|
|
7404
|
-
}
|
|
7405
|
-
}, {
|
|
7406
|
-
key: "set",
|
|
7407
|
-
value: function set(date, _flags, value) {
|
|
7408
|
-
date.setUTCMinutes(value, 0, 0);
|
|
7409
|
-
return date;
|
|
7410
|
-
}
|
|
7411
|
-
}]);
|
|
7412
|
-
|
|
7413
|
-
return MinuteParser;
|
|
7414
|
-
}(Parser);
|
|
7415
|
-
|
|
7416
|
-
function _typeof$5(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$5 = function _typeof(obj) { return typeof obj; }; } else { _typeof$5 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$5(obj); }
|
|
7417
|
-
|
|
7418
|
-
function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7419
|
-
|
|
7420
|
-
function _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7421
|
-
|
|
7422
|
-
function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
|
|
7423
|
-
|
|
7424
|
-
function _inherits$5(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$5(subClass, superClass); }
|
|
7425
|
-
|
|
7426
|
-
function _setPrototypeOf$5(o, p) { _setPrototypeOf$5 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$5(o, p); }
|
|
7427
|
-
|
|
7428
|
-
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf$5(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$5(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$5(this, result); }; }
|
|
7429
|
-
|
|
7430
|
-
function _possibleConstructorReturn$5(self, call) { if (call && (_typeof$5(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$5(self); }
|
|
7431
|
-
|
|
7432
|
-
function _assertThisInitialized$5(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7433
|
-
|
|
7434
|
-
function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7435
|
-
|
|
7436
|
-
function _getPrototypeOf$5(o) { _getPrototypeOf$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$5(o); }
|
|
7437
|
-
|
|
7438
|
-
function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7439
|
-
var SecondParser = /*#__PURE__*/function (_Parser) {
|
|
7440
|
-
_inherits$5(SecondParser, _Parser);
|
|
7441
|
-
|
|
7442
|
-
var _super = _createSuper$5(SecondParser);
|
|
7443
|
-
|
|
7444
|
-
function SecondParser() {
|
|
7445
|
-
var _this;
|
|
7446
|
-
|
|
7447
|
-
_classCallCheck$5(this, SecondParser);
|
|
7448
|
-
|
|
7449
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7450
|
-
args[_key] = arguments[_key];
|
|
7451
|
-
}
|
|
7452
|
-
|
|
7453
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7454
|
-
|
|
7455
|
-
_defineProperty$5(_assertThisInitialized$5(_this), "priority", 50);
|
|
7456
|
-
|
|
7457
|
-
_defineProperty$5(_assertThisInitialized$5(_this), "incompatibleTokens", ['t', 'T']);
|
|
7458
|
-
|
|
7459
|
-
return _this;
|
|
7460
|
-
}
|
|
7461
|
-
|
|
7462
|
-
_createClass$5(SecondParser, [{
|
|
7463
|
-
key: "parse",
|
|
7464
|
-
value: function parse(dateString, token, match) {
|
|
7465
|
-
switch (token) {
|
|
7466
|
-
case 's':
|
|
7467
|
-
return parseNumericPattern(numericPatterns.second, dateString);
|
|
7468
|
-
|
|
7469
|
-
case 'so':
|
|
7470
|
-
return match.ordinalNumber(dateString, {
|
|
7471
|
-
unit: 'second'
|
|
7472
|
-
});
|
|
7473
|
-
|
|
7474
|
-
default:
|
|
7475
|
-
return parseNDigits(token.length, dateString);
|
|
7476
|
-
}
|
|
7477
|
-
}
|
|
7478
|
-
}, {
|
|
7479
|
-
key: "validate",
|
|
7480
|
-
value: function validate(_date, value) {
|
|
7481
|
-
return value >= 0 && value <= 59;
|
|
7482
|
-
}
|
|
7483
|
-
}, {
|
|
7484
|
-
key: "set",
|
|
7485
|
-
value: function set(date, _flags, value) {
|
|
7486
|
-
date.setUTCSeconds(value, 0);
|
|
7487
|
-
return date;
|
|
7488
|
-
}
|
|
7489
|
-
}]);
|
|
7490
|
-
|
|
7491
|
-
return SecondParser;
|
|
7492
|
-
}(Parser);
|
|
7493
|
-
|
|
7494
|
-
function _typeof$4(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$4 = function _typeof(obj) { return typeof obj; }; } else { _typeof$4 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$4(obj); }
|
|
7495
|
-
|
|
7496
|
-
function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7497
|
-
|
|
7498
|
-
function _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7499
|
-
|
|
7500
|
-
function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
|
|
7501
|
-
|
|
7502
|
-
function _inherits$4(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$4(subClass, superClass); }
|
|
7503
|
-
|
|
7504
|
-
function _setPrototypeOf$4(o, p) { _setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$4(o, p); }
|
|
7505
|
-
|
|
7506
|
-
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf$4(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$4(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$4(this, result); }; }
|
|
7507
|
-
|
|
7508
|
-
function _possibleConstructorReturn$4(self, call) { if (call && (_typeof$4(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$4(self); }
|
|
7509
|
-
|
|
7510
|
-
function _assertThisInitialized$4(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7511
|
-
|
|
7512
|
-
function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7513
|
-
|
|
7514
|
-
function _getPrototypeOf$4(o) { _getPrototypeOf$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$4(o); }
|
|
7515
|
-
|
|
7516
|
-
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7517
|
-
var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {
|
|
7518
|
-
_inherits$4(FractionOfSecondParser, _Parser);
|
|
7519
|
-
|
|
7520
|
-
var _super = _createSuper$4(FractionOfSecondParser);
|
|
7521
|
-
|
|
7522
|
-
function FractionOfSecondParser() {
|
|
7523
|
-
var _this;
|
|
7524
|
-
|
|
7525
|
-
_classCallCheck$4(this, FractionOfSecondParser);
|
|
7526
|
-
|
|
7527
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7528
|
-
args[_key] = arguments[_key];
|
|
7529
|
-
}
|
|
7530
|
-
|
|
7531
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7532
|
-
|
|
7533
|
-
_defineProperty$4(_assertThisInitialized$4(_this), "priority", 30);
|
|
7534
|
-
|
|
7535
|
-
_defineProperty$4(_assertThisInitialized$4(_this), "incompatibleTokens", ['t', 'T']);
|
|
7536
|
-
|
|
7537
|
-
return _this;
|
|
7538
|
-
}
|
|
7539
|
-
|
|
7540
|
-
_createClass$4(FractionOfSecondParser, [{
|
|
7541
|
-
key: "parse",
|
|
7542
|
-
value: function parse(dateString, token) {
|
|
7543
|
-
var valueCallback = function valueCallback(value) {
|
|
7544
|
-
return Math.floor(value * Math.pow(10, -token.length + 3));
|
|
7545
|
-
};
|
|
7546
|
-
|
|
7547
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
7548
|
-
}
|
|
7549
|
-
}, {
|
|
7550
|
-
key: "set",
|
|
7551
|
-
value: function set(date, _flags, value) {
|
|
7552
|
-
date.setUTCMilliseconds(value);
|
|
7553
|
-
return date;
|
|
7554
|
-
}
|
|
7555
|
-
}]);
|
|
7556
|
-
|
|
7557
|
-
return FractionOfSecondParser;
|
|
7558
|
-
}(Parser);
|
|
7559
|
-
|
|
7560
|
-
function _typeof$3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
|
|
7561
|
-
|
|
7562
|
-
function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7563
|
-
|
|
7564
|
-
function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7565
|
-
|
|
7566
|
-
function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
|
|
7567
|
-
|
|
7568
|
-
function _inherits$3(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$3(subClass, superClass); }
|
|
7569
|
-
|
|
7570
|
-
function _setPrototypeOf$3(o, p) { _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$3(o, p); }
|
|
7571
|
-
|
|
7572
|
-
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$3(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$3(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$3(this, result); }; }
|
|
7573
|
-
|
|
7574
|
-
function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$3(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$3(self); }
|
|
7575
|
-
|
|
7576
|
-
function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7577
|
-
|
|
7578
|
-
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7579
|
-
|
|
7580
|
-
function _getPrototypeOf$3(o) { _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$3(o); }
|
|
7581
|
-
|
|
7582
|
-
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7583
|
-
|
|
7584
|
-
var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {
|
|
7585
|
-
_inherits$3(ISOTimezoneWithZParser, _Parser);
|
|
7586
|
-
|
|
7587
|
-
var _super = _createSuper$3(ISOTimezoneWithZParser);
|
|
7588
|
-
|
|
7589
|
-
function ISOTimezoneWithZParser() {
|
|
7590
|
-
var _this;
|
|
7591
|
-
|
|
7592
|
-
_classCallCheck$3(this, ISOTimezoneWithZParser);
|
|
7593
|
-
|
|
7594
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7595
|
-
args[_key] = arguments[_key];
|
|
7596
|
-
}
|
|
7597
|
-
|
|
7598
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7599
|
-
|
|
7600
|
-
_defineProperty$3(_assertThisInitialized$3(_this), "priority", 10);
|
|
7601
|
-
|
|
7602
|
-
_defineProperty$3(_assertThisInitialized$3(_this), "incompatibleTokens", ['t', 'T', 'x']);
|
|
7603
|
-
|
|
7604
|
-
return _this;
|
|
7605
|
-
}
|
|
7606
|
-
|
|
7607
|
-
_createClass$3(ISOTimezoneWithZParser, [{
|
|
7608
|
-
key: "parse",
|
|
7609
|
-
value: function parse(dateString, token) {
|
|
7610
|
-
switch (token) {
|
|
7611
|
-
case 'X':
|
|
7612
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
|
|
7613
|
-
|
|
7614
|
-
case 'XX':
|
|
7615
|
-
return parseTimezonePattern(timezonePatterns.basic, dateString);
|
|
7616
|
-
|
|
7617
|
-
case 'XXXX':
|
|
7618
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
|
|
7619
|
-
|
|
7620
|
-
case 'XXXXX':
|
|
7621
|
-
return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
|
|
7622
|
-
|
|
7623
|
-
case 'XXX':
|
|
7624
|
-
default:
|
|
7625
|
-
return parseTimezonePattern(timezonePatterns.extended, dateString);
|
|
7626
|
-
}
|
|
7627
|
-
}
|
|
7628
|
-
}, {
|
|
7629
|
-
key: "set",
|
|
7630
|
-
value: function set(date, flags, value) {
|
|
7631
|
-
if (flags.timestampIsSet) {
|
|
7632
|
-
return date;
|
|
7633
|
-
}
|
|
7634
|
-
|
|
7635
|
-
return new Date(date.getTime() - value);
|
|
7636
|
-
}
|
|
7637
|
-
}]);
|
|
7638
|
-
|
|
7639
|
-
return ISOTimezoneWithZParser;
|
|
7640
|
-
}(Parser);
|
|
7641
|
-
|
|
7642
|
-
function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
|
|
7643
|
-
|
|
7644
|
-
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7645
|
-
|
|
7646
|
-
function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7647
|
-
|
|
7648
|
-
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
|
|
7649
|
-
|
|
7650
|
-
function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
|
|
7651
|
-
|
|
7652
|
-
function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
|
|
7653
|
-
|
|
7654
|
-
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
|
|
7655
|
-
|
|
7656
|
-
function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
|
|
7657
|
-
|
|
7658
|
-
function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7659
|
-
|
|
7660
|
-
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7661
|
-
|
|
7662
|
-
function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
|
|
7663
|
-
|
|
7664
|
-
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7665
|
-
|
|
7666
|
-
var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {
|
|
7667
|
-
_inherits$2(ISOTimezoneParser, _Parser);
|
|
7668
|
-
|
|
7669
|
-
var _super = _createSuper$2(ISOTimezoneParser);
|
|
7670
|
-
|
|
7671
|
-
function ISOTimezoneParser() {
|
|
7672
|
-
var _this;
|
|
7673
|
-
|
|
7674
|
-
_classCallCheck$2(this, ISOTimezoneParser);
|
|
7675
|
-
|
|
7676
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7677
|
-
args[_key] = arguments[_key];
|
|
7678
|
-
}
|
|
7679
|
-
|
|
7680
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7681
|
-
|
|
7682
|
-
_defineProperty$2(_assertThisInitialized$2(_this), "priority", 10);
|
|
7683
|
-
|
|
7684
|
-
_defineProperty$2(_assertThisInitialized$2(_this), "incompatibleTokens", ['t', 'T', 'X']);
|
|
7685
|
-
|
|
7686
|
-
return _this;
|
|
7687
|
-
}
|
|
7688
|
-
|
|
7689
|
-
_createClass$2(ISOTimezoneParser, [{
|
|
7690
|
-
key: "parse",
|
|
7691
|
-
value: function parse(dateString, token) {
|
|
7692
|
-
switch (token) {
|
|
7693
|
-
case 'x':
|
|
7694
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
|
|
7695
|
-
|
|
7696
|
-
case 'xx':
|
|
7697
|
-
return parseTimezonePattern(timezonePatterns.basic, dateString);
|
|
7698
|
-
|
|
7699
|
-
case 'xxxx':
|
|
7700
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
|
|
7701
|
-
|
|
7702
|
-
case 'xxxxx':
|
|
7703
|
-
return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
|
|
7704
|
-
|
|
7705
|
-
case 'xxx':
|
|
7706
|
-
default:
|
|
7707
|
-
return parseTimezonePattern(timezonePatterns.extended, dateString);
|
|
7708
|
-
}
|
|
7709
|
-
}
|
|
7710
|
-
}, {
|
|
7711
|
-
key: "set",
|
|
7712
|
-
value: function set(date, flags, value) {
|
|
7713
|
-
if (flags.timestampIsSet) {
|
|
7714
|
-
return date;
|
|
7715
|
-
}
|
|
7716
|
-
|
|
7717
|
-
return new Date(date.getTime() - value);
|
|
7718
|
-
}
|
|
7719
|
-
}]);
|
|
7720
|
-
|
|
7721
|
-
return ISOTimezoneParser;
|
|
7722
|
-
}(Parser);
|
|
7723
|
-
|
|
7724
|
-
function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
|
|
7725
|
-
|
|
7726
|
-
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7727
|
-
|
|
7728
|
-
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7729
|
-
|
|
7730
|
-
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
7731
|
-
|
|
7732
|
-
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
|
|
7733
|
-
|
|
7734
|
-
function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
|
|
7735
|
-
|
|
7736
|
-
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
7737
|
-
|
|
7738
|
-
function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
|
|
7739
|
-
|
|
7740
|
-
function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7741
|
-
|
|
7742
|
-
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7743
|
-
|
|
7744
|
-
function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
|
|
7745
|
-
|
|
7746
|
-
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7747
|
-
var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {
|
|
7748
|
-
_inherits$1(TimestampSecondsParser, _Parser);
|
|
7749
|
-
|
|
7750
|
-
var _super = _createSuper$1(TimestampSecondsParser);
|
|
7751
|
-
|
|
7752
|
-
function TimestampSecondsParser() {
|
|
7753
|
-
var _this;
|
|
7754
|
-
|
|
7755
|
-
_classCallCheck$1(this, TimestampSecondsParser);
|
|
7756
|
-
|
|
7757
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7758
|
-
args[_key] = arguments[_key];
|
|
7759
|
-
}
|
|
7760
|
-
|
|
7761
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7762
|
-
|
|
7763
|
-
_defineProperty$1(_assertThisInitialized$1(_this), "priority", 40);
|
|
7764
|
-
|
|
7765
|
-
_defineProperty$1(_assertThisInitialized$1(_this), "incompatibleTokens", '*');
|
|
7766
|
-
|
|
7767
|
-
return _this;
|
|
7768
|
-
}
|
|
7769
|
-
|
|
7770
|
-
_createClass$1(TimestampSecondsParser, [{
|
|
7771
|
-
key: "parse",
|
|
7772
|
-
value: function parse(dateString) {
|
|
7773
|
-
return parseAnyDigitsSigned(dateString);
|
|
7774
|
-
}
|
|
7775
|
-
}, {
|
|
7776
|
-
key: "set",
|
|
7777
|
-
value: function set(_date, _flags, value) {
|
|
7778
|
-
return [new Date(value * 1000), {
|
|
7779
|
-
timestampIsSet: true
|
|
7780
|
-
}];
|
|
7781
|
-
}
|
|
7782
|
-
}]);
|
|
7783
|
-
|
|
7784
|
-
return TimestampSecondsParser;
|
|
7785
|
-
}(Parser);
|
|
7786
|
-
|
|
7787
|
-
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); }
|
|
7788
|
-
|
|
7789
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7790
|
-
|
|
7791
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7792
|
-
|
|
7793
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
7794
|
-
|
|
7795
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
7796
|
-
|
|
7797
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7798
|
-
|
|
7799
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7800
|
-
|
|
7801
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4547
|
+
}
|
|
7802
4548
|
|
|
7803
|
-
|
|
4549
|
+
var originalDate = toDate(dirtyDate);
|
|
7804
4550
|
|
|
7805
|
-
|
|
4551
|
+
if (!isValid(originalDate)) {
|
|
4552
|
+
throw new RangeError('Invalid time value');
|
|
4553
|
+
} // Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
4554
|
+
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
4555
|
+
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
7806
4556
|
|
|
7807
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7808
4557
|
|
|
7809
|
-
|
|
7810
|
-
var
|
|
7811
|
-
|
|
4558
|
+
var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
|
|
4559
|
+
var utcDate = subMilliseconds(originalDate, timezoneOffset);
|
|
4560
|
+
var formatterOptions = {
|
|
4561
|
+
firstWeekContainsDate: firstWeekContainsDate,
|
|
4562
|
+
weekStartsOn: weekStartsOn,
|
|
4563
|
+
locale: locale,
|
|
4564
|
+
_originalDate: originalDate
|
|
4565
|
+
};
|
|
4566
|
+
var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
|
|
4567
|
+
var firstCharacter = substring[0];
|
|
7812
4568
|
|
|
7813
|
-
|
|
4569
|
+
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
4570
|
+
var longFormatter = longFormatters$1[firstCharacter];
|
|
4571
|
+
return longFormatter(substring, locale.formatLong);
|
|
4572
|
+
}
|
|
7814
4573
|
|
|
7815
|
-
|
|
7816
|
-
|
|
4574
|
+
return substring;
|
|
4575
|
+
}).join('').match(formattingTokensRegExp).map(function (substring) {
|
|
4576
|
+
// Replace two single quote characters with one single quote character
|
|
4577
|
+
if (substring === "''") {
|
|
4578
|
+
return "'";
|
|
4579
|
+
}
|
|
7817
4580
|
|
|
7818
|
-
|
|
4581
|
+
var firstCharacter = substring[0];
|
|
7819
4582
|
|
|
7820
|
-
|
|
7821
|
-
|
|
4583
|
+
if (firstCharacter === "'") {
|
|
4584
|
+
return cleanEscapedString(substring);
|
|
7822
4585
|
}
|
|
7823
4586
|
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
_defineProperty(_assertThisInitialized(_this), "priority", 20);
|
|
4587
|
+
var formatter = formatters$1[firstCharacter];
|
|
7827
4588
|
|
|
7828
|
-
|
|
4589
|
+
if (formatter) {
|
|
4590
|
+
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
4591
|
+
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
4592
|
+
}
|
|
7829
4593
|
|
|
7830
|
-
|
|
7831
|
-
|
|
4594
|
+
if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
|
|
4595
|
+
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
4596
|
+
}
|
|
7832
4597
|
|
|
7833
|
-
|
|
7834
|
-
key: "parse",
|
|
7835
|
-
value: function parse(dateString) {
|
|
7836
|
-
return parseAnyDigitsSigned(dateString);
|
|
4598
|
+
return formatter(utcDate, substring, locale.localize, formatterOptions);
|
|
7837
4599
|
}
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
return [new Date(value), {
|
|
7842
|
-
timestampIsSet: true
|
|
7843
|
-
}];
|
|
4600
|
+
|
|
4601
|
+
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
4602
|
+
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
7844
4603
|
}
|
|
7845
|
-
}]);
|
|
7846
4604
|
|
|
7847
|
-
|
|
7848
|
-
}(
|
|
4605
|
+
return substring;
|
|
4606
|
+
}).join('');
|
|
4607
|
+
return result;
|
|
4608
|
+
}
|
|
7849
4609
|
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
* |-----|--------------------------------|-----|--------------------------------|
|
|
7853
|
-
* | a | AM, PM | A* | Milliseconds in day |
|
|
7854
|
-
* | b | AM, PM, noon, midnight | B | Flexible day period |
|
|
7855
|
-
* | c | Stand-alone local day of week | C* | Localized hour w/ day period |
|
|
7856
|
-
* | d | Day of month | D | Day of year |
|
|
7857
|
-
* | e | Local day of week | E | Day of week |
|
|
7858
|
-
* | f | | F* | Day of week in month |
|
|
7859
|
-
* | g* | Modified Julian day | G | Era |
|
|
7860
|
-
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
7861
|
-
* | i! | ISO day of week | I! | ISO week of year |
|
|
7862
|
-
* | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
|
|
7863
|
-
* | k | Hour [1-24] | K | Hour [0-11] |
|
|
7864
|
-
* | l* | (deprecated) | L | Stand-alone month |
|
|
7865
|
-
* | m | Minute | M | Month |
|
|
7866
|
-
* | n | | N | |
|
|
7867
|
-
* | o! | Ordinal number modifier | O* | Timezone (GMT) |
|
|
7868
|
-
* | p | | P | |
|
|
7869
|
-
* | q | Stand-alone quarter | Q | Quarter |
|
|
7870
|
-
* | r* | Related Gregorian year | R! | ISO week-numbering year |
|
|
7871
|
-
* | s | Second | S | Fraction of second |
|
|
7872
|
-
* | t! | Seconds timestamp | T! | Milliseconds timestamp |
|
|
7873
|
-
* | u | Extended year | U* | Cyclic year |
|
|
7874
|
-
* | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
|
|
7875
|
-
* | w | Local week of year | W* | Week of month |
|
|
7876
|
-
* | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
|
|
7877
|
-
* | y | Year (abs) | Y | Local week-numbering year |
|
|
7878
|
-
* | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
|
|
7879
|
-
*
|
|
7880
|
-
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
7881
|
-
*
|
|
7882
|
-
* Letters marked by ! are non-standard, but implemented by date-fns:
|
|
7883
|
-
* - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
|
|
7884
|
-
* - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
|
|
7885
|
-
* i.e. 7 for Sunday, 1 for Monday, etc.
|
|
7886
|
-
* - `I` is ISO week of year, as opposed to `w` which is local week of year.
|
|
7887
|
-
* - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
|
|
7888
|
-
* `R` is supposed to be used in conjunction with `I` and `i`
|
|
7889
|
-
* for universal ISO week-numbering date, whereas
|
|
7890
|
-
* `Y` is supposed to be used in conjunction with `w` and `e`
|
|
7891
|
-
* for week-numbering date specific to the locale.
|
|
7892
|
-
*/
|
|
4610
|
+
function cleanEscapedString(input) {
|
|
4611
|
+
var matched = input.match(escapedStringRegExp);
|
|
7893
4612
|
|
|
7894
|
-
({
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
Q: new QuarterParser(),
|
|
7901
|
-
q: new StandAloneQuarterParser(),
|
|
7902
|
-
M: new MonthParser(),
|
|
7903
|
-
L: new StandAloneMonthParser(),
|
|
7904
|
-
w: new LocalWeekParser(),
|
|
7905
|
-
I: new ISOWeekParser(),
|
|
7906
|
-
d: new DateParser(),
|
|
7907
|
-
D: new DayOfYearParser(),
|
|
7908
|
-
E: new DayParser(),
|
|
7909
|
-
e: new LocalDayParser(),
|
|
7910
|
-
c: new StandAloneLocalDayParser(),
|
|
7911
|
-
i: new ISODayParser(),
|
|
7912
|
-
a: new AMPMParser(),
|
|
7913
|
-
b: new AMPMMidnightParser(),
|
|
7914
|
-
B: new DayPeriodParser(),
|
|
7915
|
-
h: new Hour1to12Parser(),
|
|
7916
|
-
H: new Hour0to23Parser(),
|
|
7917
|
-
K: new Hour0To11Parser(),
|
|
7918
|
-
k: new Hour1To24Parser(),
|
|
7919
|
-
m: new MinuteParser(),
|
|
7920
|
-
s: new SecondParser(),
|
|
7921
|
-
S: new FractionOfSecondParser(),
|
|
7922
|
-
X: new ISOTimezoneWithZParser(),
|
|
7923
|
-
x: new ISOTimezoneParser(),
|
|
7924
|
-
t: new TimestampSecondsParser(),
|
|
7925
|
-
T: new TimestampMillisecondsParser()
|
|
7926
|
-
});
|
|
4613
|
+
if (!matched) {
|
|
4614
|
+
return input;
|
|
4615
|
+
}
|
|
4616
|
+
|
|
4617
|
+
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
4618
|
+
}
|
|
7927
4619
|
|
|
7928
4620
|
const CForm = vue.defineComponent({
|
|
7929
4621
|
name: 'CForm',
|
|
@@ -8324,6 +5016,24 @@ const CFormControlWrapper = vue.defineComponent({
|
|
|
8324
5016
|
},
|
|
8325
5017
|
},
|
|
8326
5018
|
setup(props, { slots }) {
|
|
5019
|
+
const formControlValidation = () => vue.h(CFormControlValidation, {
|
|
5020
|
+
describedby: props.describedby,
|
|
5021
|
+
feedback: props.feedback,
|
|
5022
|
+
feedbackInvalid: props.feedbackInvalid,
|
|
5023
|
+
feedbackValid: props.feedbackValid,
|
|
5024
|
+
floatingLabel: props.floatingLabel,
|
|
5025
|
+
invalid: props.invalid,
|
|
5026
|
+
tooltipFeedback: props.tooltipFeedback,
|
|
5027
|
+
valid: props.valid,
|
|
5028
|
+
}, {
|
|
5029
|
+
...(slots.feedback && { feedback: () => slots.feedback && slots.feedback() }),
|
|
5030
|
+
...(slots.feedbackInvalid && {
|
|
5031
|
+
feedbackInvalid: () => slots.feedbackInvalid && slots.feedbackInvalid(),
|
|
5032
|
+
}),
|
|
5033
|
+
...(slots.feedbackValid && {
|
|
5034
|
+
feedbackValid: () => slots.feedbackInvalid && slots.feedbackInvalid(),
|
|
5035
|
+
}),
|
|
5036
|
+
});
|
|
8327
5037
|
return () => props.floatingLabel
|
|
8328
5038
|
? vue.h(CFormFloating, () => [
|
|
8329
5039
|
slots.default && slots.default(),
|
|
@@ -8332,6 +5042,13 @@ const CFormControlWrapper = vue.defineComponent({
|
|
|
8332
5042
|
}, {
|
|
8333
5043
|
default: () => (slots.label && slots.label()) || props.label || props.floatingLabel,
|
|
8334
5044
|
}),
|
|
5045
|
+
(props.text || slots.text) &&
|
|
5046
|
+
vue.h(CFormText, {
|
|
5047
|
+
id: props.describedby,
|
|
5048
|
+
}, {
|
|
5049
|
+
default: () => (slots.text && slots.text()) || props.text,
|
|
5050
|
+
}),
|
|
5051
|
+
formControlValidation(),
|
|
8335
5052
|
])
|
|
8336
5053
|
: [
|
|
8337
5054
|
(props.label || slots.label) &&
|
|
@@ -8347,24 +5064,7 @@ const CFormControlWrapper = vue.defineComponent({
|
|
|
8347
5064
|
}, {
|
|
8348
5065
|
default: () => (slots.text && slots.text()) || props.text,
|
|
8349
5066
|
}),
|
|
8350
|
-
|
|
8351
|
-
describedby: props.describedby,
|
|
8352
|
-
feedback: props.feedback,
|
|
8353
|
-
feedbackInvalid: props.feedbackInvalid,
|
|
8354
|
-
feedbackValid: props.feedbackValid,
|
|
8355
|
-
floatingLabel: props.floatingLabel,
|
|
8356
|
-
invalid: props.invalid,
|
|
8357
|
-
tooltipFeedback: props.tooltipFeedback,
|
|
8358
|
-
valid: props.valid,
|
|
8359
|
-
}, {
|
|
8360
|
-
...(slots.feedback && { feedback: () => slots.feedback && slots.feedback() }),
|
|
8361
|
-
...(slots.feedbackInvalid && {
|
|
8362
|
-
feedbackInvalid: () => slots.feedbackInvalid && slots.feedbackInvalid(),
|
|
8363
|
-
}),
|
|
8364
|
-
...(slots.feedbackValid && {
|
|
8365
|
-
feedbackValid: () => slots.feedbackInvalid && slots.feedbackInvalid(),
|
|
8366
|
-
}),
|
|
8367
|
-
}),
|
|
5067
|
+
formControlValidation(),
|
|
8368
5068
|
];
|
|
8369
5069
|
},
|
|
8370
5070
|
});
|
|
@@ -12019,10 +8719,10 @@ const getAmPm = (date, locale) => {
|
|
|
12019
8719
|
}
|
|
12020
8720
|
return date.getHours() >= 12 ? 'pm' : 'am';
|
|
12021
8721
|
};
|
|
12022
|
-
const getListOfHours = (locale, ampm = 'auto') => Array.from({ length: (ampm === 'auto' && isAmPm(locale)) || ampm ? 12 : 24 }, (_, i) => {
|
|
8722
|
+
const getListOfHours = (locale, ampm = 'auto') => Array.from({ length: (ampm === 'auto' && isAmPm(locale)) || ampm === true ? 12 : 24 }, (_, i) => {
|
|
12023
8723
|
return {
|
|
12024
|
-
value: (ampm === 'auto' && isAmPm(locale)) || ampm ? i + 1 : i,
|
|
12025
|
-
label: ((ampm === 'auto' && isAmPm(locale)) || ampm ? i + 1 : i).toLocaleString(locale),
|
|
8724
|
+
value: (ampm === 'auto' && isAmPm(locale)) || ampm === true ? i + 1 : i,
|
|
8725
|
+
label: ((ampm === 'auto' && isAmPm(locale)) || ampm === true ? i + 1 : i).toLocaleString(locale),
|
|
12026
8726
|
};
|
|
12027
8727
|
});
|
|
12028
8728
|
const getListOfMinutes = (locale, valueAsString = false) => Array.from({ length: 60 }, (_, i) => {
|
|
@@ -12032,12 +8732,10 @@ const getListOfMinutes = (locale, valueAsString = false) => Array.from({ length:
|
|
|
12032
8732
|
value: valueAsString ? i.toString() : i,
|
|
12033
8733
|
label: d
|
|
12034
8734
|
.toLocaleTimeString(locale, {
|
|
12035
|
-
hour: '2-digit',
|
|
12036
|
-
hour12: false,
|
|
12037
8735
|
minute: '2-digit',
|
|
12038
8736
|
second: '2-digit',
|
|
12039
8737
|
})
|
|
12040
|
-
.split(
|
|
8738
|
+
.split(/[^A-Za-z0-9]/)[0],
|
|
12041
8739
|
};
|
|
12042
8740
|
});
|
|
12043
8741
|
const getListOfSeconds = (locale, valueAsString = false) => Array.from({ length: 60 }, (_, i) => {
|
|
@@ -12047,16 +8745,14 @@ const getListOfSeconds = (locale, valueAsString = false) => Array.from({ length:
|
|
|
12047
8745
|
value: valueAsString ? i.toString() : i,
|
|
12048
8746
|
label: d
|
|
12049
8747
|
.toLocaleTimeString(locale, {
|
|
12050
|
-
hour: '2-digit',
|
|
12051
|
-
hour12: false,
|
|
12052
8748
|
minute: '2-digit',
|
|
12053
8749
|
second: '2-digit',
|
|
12054
8750
|
})
|
|
12055
|
-
.split(
|
|
8751
|
+
.split(/[^A-Za-z0-9]/)[1],
|
|
12056
8752
|
};
|
|
12057
8753
|
});
|
|
12058
8754
|
const getSelectedHour = (date, locale, ampm = 'auto') => date
|
|
12059
|
-
? (ampm === 'auto' && isAmPm(locale)) || ampm
|
|
8755
|
+
? (ampm === 'auto' && isAmPm(locale)) || ampm === true
|
|
12060
8756
|
? convert24hTo12h(date.getHours())
|
|
12061
8757
|
: date.getHours()
|
|
12062
8758
|
: '';
|
|
@@ -12357,7 +9053,7 @@ const CTimePicker = vue.defineComponent({
|
|
|
12357
9053
|
}
|
|
12358
9054
|
}
|
|
12359
9055
|
if (set === 'hours') {
|
|
12360
|
-
if ((props.ampm === 'auto' && isAmPm(props.locale)) || props.ampm) {
|
|
9056
|
+
if ((props.ampm === 'auto' && isAmPm(props.locale)) || props.ampm === true) {
|
|
12361
9057
|
_date.setHours(convert12hTo24h(ampm.value, parseInt(value)));
|
|
12362
9058
|
}
|
|
12363
9059
|
else {
|
|
@@ -12387,7 +9083,8 @@ const CTimePicker = vue.defineComponent({
|
|
|
12387
9083
|
readonly: props.inputReadOnly,
|
|
12388
9084
|
value: date.value
|
|
12389
9085
|
? date.value.toLocaleTimeString(props.locale, {
|
|
12390
|
-
hour12: (props.ampm === 'auto' && isAmPm(props.locale)) ||
|
|
9086
|
+
hour12: (props.ampm === 'auto' && isAmPm(props.locale)) ||
|
|
9087
|
+
(props.ampm === 'boolean' && props.ampm),
|
|
12391
9088
|
...(!props.seconds && { timeStyle: 'short' }),
|
|
12392
9089
|
})
|
|
12393
9090
|
: '',
|
|
@@ -12468,7 +9165,7 @@ const CTimePicker = vue.defineComponent({
|
|
|
12468
9165
|
onClick: (index) => handleTimeChange('seconds', index.toString()),
|
|
12469
9166
|
selected: getSelectedSeconds(date.value),
|
|
12470
9167
|
}),
|
|
12471
|
-
((props.ampm === 'auto' && isAmPm(props.locale)) || props.ampm) &&
|
|
9168
|
+
((props.ampm === 'auto' && isAmPm(props.locale)) || props.ampm === true) &&
|
|
12472
9169
|
vue.h(CTimePickerRollCol, {
|
|
12473
9170
|
elements: [
|
|
12474
9171
|
{ value: 'am', label: 'AM' },
|
|
@@ -13010,11 +9707,13 @@ const CDateRangePicker = vue.defineComponent({
|
|
|
13010
9707
|
vue.watch(() => props.startDate, () => {
|
|
13011
9708
|
if (props.startDate) {
|
|
13012
9709
|
calendarDate.value = new Date(props.startDate);
|
|
9710
|
+
startDate.value = new Date(props.startDate);
|
|
13013
9711
|
}
|
|
13014
9712
|
});
|
|
13015
9713
|
vue.watch(() => props.endDate, () => {
|
|
13016
9714
|
if (props.endDate) {
|
|
13017
9715
|
calendarDate.value = new Date(props.endDate);
|
|
9716
|
+
endDate.value = new Date(props.endDate);
|
|
13018
9717
|
}
|
|
13019
9718
|
});
|
|
13020
9719
|
vue.watch(() => props.maxDate, () => {
|
|
@@ -13728,11 +10427,7 @@ const CElementCover = vue.defineComponent({
|
|
|
13728
10427
|
*
|
|
13729
10428
|
* @type {sides: string[], query: string}[]
|
|
13730
10429
|
*/
|
|
13731
|
-
boundaries:
|
|
13732
|
-
// TODO: check if this is correct, TJ
|
|
13733
|
-
type: Array,
|
|
13734
|
-
require: true,
|
|
13735
|
-
},
|
|
10430
|
+
boundaries: Array,
|
|
13736
10431
|
/**
|
|
13737
10432
|
* Opacity of the cover. [docs]
|
|
13738
10433
|
*
|
|
@@ -13740,59 +10435,72 @@ const CElementCover = vue.defineComponent({
|
|
|
13740
10435
|
*/
|
|
13741
10436
|
opacity: {
|
|
13742
10437
|
type: Number,
|
|
13743
|
-
|
|
10438
|
+
default: 0.4,
|
|
13744
10439
|
},
|
|
13745
10440
|
},
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
10441
|
+
/**
|
|
10442
|
+
* Location for custom content.
|
|
10443
|
+
*
|
|
10444
|
+
* @slot default
|
|
10445
|
+
*/
|
|
10446
|
+
setup(props, { slots }) {
|
|
10447
|
+
const elementCoverRef = vue.ref();
|
|
10448
|
+
const customBoundaries = vue.ref({});
|
|
13749
10449
|
const getCustomBoundaries = () => {
|
|
13750
|
-
if (!props.boundaries ||
|
|
10450
|
+
if (!props.boundaries || elementCoverRef === null) {
|
|
13751
10451
|
return {};
|
|
13752
10452
|
}
|
|
13753
|
-
const parent =
|
|
10453
|
+
const parent = elementCoverRef.value.parentElement;
|
|
13754
10454
|
if (!parent) {
|
|
13755
10455
|
return {};
|
|
13756
10456
|
}
|
|
13757
10457
|
const parentCoords = parent.getBoundingClientRect();
|
|
13758
10458
|
const customBoundaries = {};
|
|
13759
|
-
props.boundaries.forEach((
|
|
13760
|
-
const element = parent.querySelector(
|
|
13761
|
-
if (!element || !
|
|
10459
|
+
props.boundaries.forEach(({ sides, query }) => {
|
|
10460
|
+
const element = parent.querySelector(query);
|
|
10461
|
+
if (!element || !sides) {
|
|
13762
10462
|
return;
|
|
13763
10463
|
}
|
|
13764
10464
|
const coords = element.getBoundingClientRect();
|
|
13765
|
-
|
|
10465
|
+
sides.forEach((side) => {
|
|
13766
10466
|
const sideMargin = Math.abs(coords[side] - parentCoords[side]);
|
|
13767
10467
|
customBoundaries[side] = `${sideMargin}px`;
|
|
13768
10468
|
});
|
|
13769
10469
|
});
|
|
13770
10470
|
return customBoundaries;
|
|
13771
10471
|
};
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
10472
|
+
const containerCoords = {
|
|
10473
|
+
top: 0,
|
|
10474
|
+
left: 0,
|
|
10475
|
+
right: 0,
|
|
10476
|
+
bottom: 0,
|
|
10477
|
+
};
|
|
10478
|
+
const coverStyles = {
|
|
10479
|
+
...containerCoords,
|
|
10480
|
+
position: 'absolute',
|
|
10481
|
+
'background-color': `rgba(255,255,255,${props.opacity})`,
|
|
10482
|
+
};
|
|
10483
|
+
vue.onMounted(() => {
|
|
10484
|
+
vue.nextTick(() => {
|
|
10485
|
+
customBoundaries.value = getCustomBoundaries();
|
|
13775
10486
|
});
|
|
13776
10487
|
});
|
|
13777
10488
|
return () => vue.h('div', {
|
|
13778
|
-
style: {
|
|
13779
|
-
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13789
|
-
|
|
13790
|
-
|
|
13791
|
-
|
|
13792
|
-
|
|
13793
|
-
variant: 'grow',
|
|
13794
|
-
color: 'primary',
|
|
13795
|
-
})));
|
|
10489
|
+
style: { ...coverStyles, ...customBoundaries.value },
|
|
10490
|
+
ref: elementCoverRef,
|
|
10491
|
+
}, slots.default
|
|
10492
|
+
? slots.default()
|
|
10493
|
+
: vue.h('div', {
|
|
10494
|
+
style: {
|
|
10495
|
+
position: 'absolute',
|
|
10496
|
+
top: '50%',
|
|
10497
|
+
left: '50%',
|
|
10498
|
+
transform: 'translateX(-50%) translateY(-50%)',
|
|
10499
|
+
},
|
|
10500
|
+
}, vue.h(CSpinner, {
|
|
10501
|
+
variant: 'grow',
|
|
10502
|
+
color: 'primary',
|
|
10503
|
+
})));
|
|
13796
10504
|
},
|
|
13797
10505
|
});
|
|
13798
10506
|
|
|
@@ -16687,13 +13395,13 @@ const CSidebar = vue.defineComponent({
|
|
|
16687
13395
|
});
|
|
16688
13396
|
vue.onMounted(() => {
|
|
16689
13397
|
mobile.value = isOnMobile(sidebarRef.value);
|
|
16690
|
-
inViewport.value =
|
|
13398
|
+
inViewport.value = isInViewport(sidebarRef.value);
|
|
16691
13399
|
window.addEventListener('resize', () => handleResize());
|
|
16692
13400
|
window.addEventListener('mouseup', handleClickOutside);
|
|
16693
13401
|
window.addEventListener('keyup', handleKeyup);
|
|
16694
13402
|
sidebarRef.value.addEventListener('mouseup', handleOnClick);
|
|
16695
13403
|
sidebarRef.value.addEventListener('transitionend', () => {
|
|
16696
|
-
inViewport.value =
|
|
13404
|
+
inViewport.value = isInViewport(sidebarRef.value);
|
|
16697
13405
|
});
|
|
16698
13406
|
});
|
|
16699
13407
|
vue.onBeforeUnmount(() => {
|
|
@@ -16702,7 +13410,7 @@ const CSidebar = vue.defineComponent({
|
|
|
16702
13410
|
window.removeEventListener('keyup', handleKeyup);
|
|
16703
13411
|
sidebarRef.value.removeEventListener('mouseup', handleOnClick);
|
|
16704
13412
|
sidebarRef.value.removeEventListener('transitionend', () => {
|
|
16705
|
-
inViewport.value =
|
|
13413
|
+
inViewport.value = isInViewport(sidebarRef.value);
|
|
16706
13414
|
});
|
|
16707
13415
|
});
|
|
16708
13416
|
const handleHide = () => {
|
|
@@ -16711,7 +13419,7 @@ const CSidebar = vue.defineComponent({
|
|
|
16711
13419
|
};
|
|
16712
13420
|
const handleResize = () => {
|
|
16713
13421
|
mobile.value = isOnMobile(sidebarRef.value);
|
|
16714
|
-
inViewport.value =
|
|
13422
|
+
inViewport.value = isInViewport(sidebarRef.value);
|
|
16715
13423
|
};
|
|
16716
13424
|
const handleKeyup = (event) => {
|
|
16717
13425
|
if (mobile.value && !sidebarRef.value.contains(event.target)) {
|
|
@@ -17416,7 +14124,6 @@ const CTable = vue.defineComponent({
|
|
|
17416
14124
|
*/
|
|
17417
14125
|
footer: {
|
|
17418
14126
|
type: Array,
|
|
17419
|
-
default: () => [],
|
|
17420
14127
|
required: false,
|
|
17421
14128
|
},
|
|
17422
14129
|
/**
|
|
@@ -17436,7 +14143,6 @@ const CTable = vue.defineComponent({
|
|
|
17436
14143
|
*/
|
|
17437
14144
|
items: {
|
|
17438
14145
|
type: Array,
|
|
17439
|
-
default: () => [],
|
|
17440
14146
|
required: false,
|
|
17441
14147
|
},
|
|
17442
14148
|
responsive: {
|
|
@@ -17507,7 +14213,7 @@ const CTable = vue.defineComponent({
|
|
|
17507
14213
|
else
|
|
17508
14214
|
return column;
|
|
17509
14215
|
})
|
|
17510
|
-
: Object.keys(props.items[0] || {}).filter((el) => el.charAt(0) !== '_'));
|
|
14216
|
+
: Object.keys((props.items && props.items[0]) || {}).filter((el) => el.charAt(0) !== '_'));
|
|
17511
14217
|
const table = () => vue.h('table', {
|
|
17512
14218
|
class: [
|
|
17513
14219
|
'table',
|
|
@@ -17552,21 +14258,24 @@ const CTable = vue.defineComponent({
|
|
|
17552
14258
|
props.items &&
|
|
17553
14259
|
vue.h(CTableBody, {}, {
|
|
17554
14260
|
default: () => [
|
|
17555
|
-
props.items
|
|
17556
|
-
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
|
|
17561
|
-
|
|
17562
|
-
item._cellProps
|
|
17563
|
-
|
|
17564
|
-
item._cellProps
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
14261
|
+
props.items &&
|
|
14262
|
+
props.items.map((item) => vue.h(CTableRow, {
|
|
14263
|
+
...(item._props && { ...item._props }),
|
|
14264
|
+
}, {
|
|
14265
|
+
default: () => [
|
|
14266
|
+
rawColumnNames.value.map((colName) => item[colName] &&
|
|
14267
|
+
vue.h(CTableDataCell, {
|
|
14268
|
+
...(item._cellProps &&
|
|
14269
|
+
item._cellProps['all'] && { ...item._cellProps['all'] }),
|
|
14270
|
+
...(item._cellProps &&
|
|
14271
|
+
item._cellProps[colName] && {
|
|
14272
|
+
...item._cellProps[colName],
|
|
14273
|
+
}),
|
|
14274
|
+
}, {
|
|
14275
|
+
default: () => item[colName],
|
|
14276
|
+
})),
|
|
14277
|
+
],
|
|
14278
|
+
})),
|
|
17570
14279
|
],
|
|
17571
14280
|
}),
|
|
17572
14281
|
slots.default && slots.default(),
|
|
@@ -17576,11 +14285,13 @@ const CTable = vue.defineComponent({
|
|
|
17576
14285
|
}, {
|
|
17577
14286
|
default: () => vue.h(CTableRow, {}, {
|
|
17578
14287
|
default: () => [
|
|
17579
|
-
props.footer
|
|
17580
|
-
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
|
|
14288
|
+
props.footer &&
|
|
14289
|
+
props.footer.map((item) => vue.h(CTableDataCell, {
|
|
14290
|
+
...(typeof item === 'object' &&
|
|
14291
|
+
item._props && { ...item._props }),
|
|
14292
|
+
}, {
|
|
14293
|
+
default: () => (typeof item === 'object' ? item.label : item),
|
|
14294
|
+
})),
|
|
17584
14295
|
],
|
|
17585
14296
|
}),
|
|
17586
14297
|
}),
|
|
@@ -18248,10 +14959,16 @@ const CSmartTable = vue.defineComponent({
|
|
|
18248
14959
|
required: false,
|
|
18249
14960
|
},
|
|
18250
14961
|
/**
|
|
18251
|
-
* Displays table footer, which mirrors table header. (without column filter).
|
|
14962
|
+
* If `true` Displays table footer, which mirrors table header. (without column filter).
|
|
14963
|
+
* Or Array of objects or strings, where each element represents one cell in the table footer.
|
|
14964
|
+
*
|
|
14965
|
+
* Example items:
|
|
14966
|
+
* `['FooterCell', 'FooterCell', 'FooterCell']`
|
|
14967
|
+
* or
|
|
14968
|
+
* `[{ label: 'FooterCell', _props: { color: 'success' }, ...]`
|
|
18252
14969
|
*/
|
|
18253
14970
|
footer: {
|
|
18254
|
-
type: Boolean,
|
|
14971
|
+
type: [Boolean, Array],
|
|
18255
14972
|
required: false,
|
|
18256
14973
|
},
|
|
18257
14974
|
/**
|
|
@@ -18787,7 +15504,8 @@ const CSmartTable = vue.defineComponent({
|
|
|
18787
15504
|
clickableRows: props.clickableRows,
|
|
18788
15505
|
...props.tableBodyProps,
|
|
18789
15506
|
}),
|
|
18790
|
-
props.footer &&
|
|
15507
|
+
typeof props.footer === 'boolean' &&
|
|
15508
|
+
props.footer &&
|
|
18791
15509
|
vue.h(CSmartTableHead, {
|
|
18792
15510
|
component: 'footer',
|
|
18793
15511
|
...props.tableFootProps,
|
|
@@ -18798,12 +15516,28 @@ const CSmartTable = vue.defineComponent({
|
|
|
18798
15516
|
selectAll: selectedAll.value,
|
|
18799
15517
|
onSelectAllChecked: () => handleSelectAllChecked(),
|
|
18800
15518
|
}),
|
|
15519
|
+
Array.isArray(props.footer) &&
|
|
15520
|
+
vue.h(CTableFoot, {
|
|
15521
|
+
...props.tableFootProps,
|
|
15522
|
+
}, {
|
|
15523
|
+
default: () => vue.h(CTableRow, {}, {
|
|
15524
|
+
default: () => [
|
|
15525
|
+
Array.isArray(props.footer) &&
|
|
15526
|
+
props.footer.map((item) => vue.h(CTableDataCell, {
|
|
15527
|
+
...(typeof item === 'object' &&
|
|
15528
|
+
item._props && { ...item._props }),
|
|
15529
|
+
}, {
|
|
15530
|
+
default: () => typeof item === 'object' ? item.label : item,
|
|
15531
|
+
})),
|
|
15532
|
+
],
|
|
15533
|
+
}),
|
|
15534
|
+
}),
|
|
18801
15535
|
],
|
|
18802
15536
|
}),
|
|
18803
15537
|
props.loading &&
|
|
18804
15538
|
vue.h(CElementCover, {
|
|
18805
15539
|
boundaries: [
|
|
18806
|
-
{ sides: ['top'], query: '
|
|
15540
|
+
{ sides: ['top'], query: 'tbody' },
|
|
18807
15541
|
{ sides: ['bottom'], query: 'tbody' },
|
|
18808
15542
|
],
|
|
18809
15543
|
}),
|
|
@@ -19429,7 +16163,7 @@ function isPlainObject(o) {
|
|
|
19429
16163
|
return true;
|
|
19430
16164
|
}
|
|
19431
16165
|
|
|
19432
|
-
function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var
|
|
16166
|
+
function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},t.apply(this,arguments)}function n(e,t){if(null==e)return {};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}const r={silent:!1,logLevel:"warn"},i=["validator"],o=Object.prototype,a=o.toString,s=o.hasOwnProperty,u=/^\s*function (\w+)/;function l(e){var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){const e=n.toString().match(u);return e?e[1]:""}return ""}const c=isPlainObject,d=e=>e;let f=d;if("production"!==process.env.NODE_ENV){const e="undefined"!=typeof console;f=e?function(e,t=r.logLevel){!1===r.silent&&console[t](`[VueTypes warn]: ${e}`);}:d;}const p=(e,t)=>s.call(e,t),y=Number.isInteger||function(e){return "number"==typeof e&&isFinite(e)&&Math.floor(e)===e},v=Array.isArray||function(e){return "[object Array]"===a.call(e)},h=e=>"[object Function]"===a.call(e),b=(e,t)=>c(e)&&p(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),g=e=>c(e)&&(p(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>p(e,t)));function O(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function m(e,t,n=!1){let r,i=!0,o="";r=c(e)?e:{type:e};const a=b(r)?r._vueTypes_name+" - ":"";if(g(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return i;if(!r.required&&void 0===t)return i;v(r.type)?(i=r.type.some(e=>!0===m(e,t,!0)),o=r.type.map(e=>l(e)).join(" or ")):(o=l(r),i="Array"===o?v(t):"Object"===o?c(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return "";const t=e.constructor.toString().match(u);return t?t[1]:""}(t)===o:t instanceof r.type);}if(!i){const e=`${a}value "${t}" should be of type "${o}"`;return !1===n?(f(e),!1):e}if(p(r,"validator")&&h(r.validator)){const e=f,o=[];if(f=e=>{o.push(e);},i=r.validator(t),f=e,!i){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===n?(f(e),i):e}}return i}function j(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(p(this,"default")&&delete this.default,this):h(e)||!0===m(this,e,!0)?(this.default=v(e)?()=>[...e]:c(e)?()=>Object.assign({},e):e,this):(f(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:r}=n;return h(r)&&(n.validator=O(r,n)),n}function _(e,t){const n=j(e,t);return Object.defineProperty(n,"validate",{value(e){return h(this.validator)&&f(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=O(e,this),this}})}function T(e,t,r){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach(n=>{t[n]=Object.getOwnPropertyDescriptor(e,n);}),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!c(r))return o;const{validator:a}=r,s=n(r,i);if(h(a)){let{validator:e}=o;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),o.validator=O(e?function(t){return e.call(this,t)&&a.call(this,t)}:a,o);}var u,l;return Object.assign(o,s)}function $(e){return e.replace(/^(?!\s*$)/gm," ")}const w=()=>_("any",{}),x=()=>_("function",{type:Function}),P=()=>_("boolean",{type:Boolean}),A=()=>_("string",{type:String}),E=()=>_("number",{type:Number}),S=()=>_("array",{type:Array}),N=()=>_("object",{type:Object}),V=()=>j("integer",{type:Number,validator(e){const t=y(e);return !1===t&&f(`integer - "${e}" is not an integer`),t}}),q=()=>j("symbol",{validator(e){const t="symbol"==typeof e;return !1===t&&f(`symbol - invalid value "${e}"`),t}}),k=()=>Object.defineProperty({type:null,validator(e){const t=null===e;return !1===t&&f("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"});function D(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return j(e.name||"<<anonymous function>>",{type:null,validator(n){const r=e(n);return r||f(`${this._vueTypes_name} - ${t}`),r}})}function L(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map(e=>"symbol"==typeof e?e.toString():e).join('", "')}".`,n={validator(n){const r=-1!==e.indexOf(n);return r||f(t),r}};if(-1===e.indexOf(null)){const t=e.reduce((e,t)=>{if(null!=t){const n=t.constructor;-1===e.indexOf(n)&&e.push(n);}return e},[]);t.length>0&&(n.type=t);}return j("oneOf",n)}function B(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=!1,r=[];for(let i=0;i<e.length;i+=1){const o=e[i];if(g(o)){if(h(o.validator)&&(t=!0),b(o,"oneOf")&&o.type){r=r.concat(o.type);continue}if(b(o,"nullable")){n=!0;continue}if(!0===o.type||!o.type){f('oneOfType - invalid usage of "true" and "null" as types.');continue}r=r.concat(o.type);}else r.push(o);}r=r.filter((e,t)=>r.indexOf(e)===t);const i=!1===n&&r.length>0?r:null;return j("oneOfType",t?{type:i,validator(t){const n=[],r=e.some(e=>{const r=m(e,t,!0);return "string"==typeof r&&n.push(r),!0===r});return r||f(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${$(n.join("\n"))}`),r}}:{type:i})}function F(e){return j("arrayOf",{type:Array,validator(t){let n="";const r=t.every(t=>(n=m(e,t,!0),!0===n));return r||f(`arrayOf - value validation error:\n${$(n)}`),r}})}function Y(e){return j("instanceOf",{type:e})}function I(e){return j("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(r=>(n=m(e,t[r],!0),!0===n));return r||f(`objectOf - value validation error:\n${$(n)}`),r}})}function J(e){const t=Object.keys(e),n=t.filter(t=>{var n;return !(null===(n=e[t])||void 0===n||!n.required)}),r=j("shape",{type:Object,validator(r){if(!c(r))return !1;const i=Object.keys(r);if(n.length>0&&n.some(e=>-1===i.indexOf(e))){const e=n.filter(e=>-1===i.indexOf(e));return f(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return i.every(n=>{if(-1===t.indexOf(n))return !0===this._vueTypes_isLoose||(f(`shape - shape definition does not include a "${n}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=m(e[n],r[n],!0);return "string"==typeof i&&f(`shape - "${n}" property validation error:\n ${$(i)}`),!0===i})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const M=["name","validate","getter"],R=/*#__PURE__*/(()=>{var e;return (e=class{static get any(){return w()}static get func(){return x().def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?P():P().def(this.defaults.bool)}static get string(){return A().def(this.defaults.string)}static get number(){return E().def(this.defaults.number)}static get array(){return S().def(this.defaults.array)}static get object(){return N().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return q()}static get nullable(){return k()}static extend(e){if(f("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),v(e))return e.forEach(e=>this.extend(e)),this;const{name:t,validate:r=!1,getter:i=!1}=e,o=n(e,M);if(p(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:a}=o;if(b(a))return delete o.type,Object.defineProperty(this,t,i?{get:()=>T(t,a,o)}:{value(...e){const n=T(t,a,o);return n.validator&&(n.validator=n.validator.bind(n,...e)),n}});let s;return s=i?{get(){const e=Object.assign({},o);return r?_(t,e):j(t,e)},enumerable:!0}:{value(...e){const n=Object.assign({},o);let i;return i=r?_(t,n):j(t,n),n.validator&&(i.validator=n.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,s)}}).defaults={},e.sensibleDefaults=void 0,e.config=r,e.custom=D,e.oneOf=L,e.instanceOf=Y,e.oneOfType=B,e.arrayOf=F,e.objectOf=I,e.shape=J,e.utils={validate:(e,t)=>!0===m(t,e,!0),toType:(e,t,n=!1)=>n?_(e,t):j(e,t)},e})();function U(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var n;return (n=class extends R{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(n){this.defaults=!1!==n?t({},!0!==n?n:e):{};}}).defaults=t({},e),n}class z extends(U()){}
|
|
19433
16167
|
|
|
19434
16168
|
const CWidgetStatsB = vue.defineComponent({
|
|
19435
16169
|
name: 'CWidgetStatsB',
|
|
@@ -19825,35 +16559,35 @@ const CWidgetsStatsPlugin = {
|
|
|
19825
16559
|
|
|
19826
16560
|
var Components = /*#__PURE__*/Object.freeze({
|
|
19827
16561
|
__proto__: null,
|
|
19828
|
-
CAccordionPlugin: CAccordionPlugin,
|
|
19829
16562
|
CAccordion: CAccordion,
|
|
19830
16563
|
CAccordionBody: CAccordionBody,
|
|
19831
16564
|
CAccordionButton: CAccordionButton,
|
|
19832
16565
|
CAccordionHeader: CAccordionHeader,
|
|
19833
16566
|
CAccordionItem: CAccordionItem,
|
|
19834
|
-
|
|
16567
|
+
CAccordionPlugin: CAccordionPlugin,
|
|
19835
16568
|
CAlert: CAlert,
|
|
19836
16569
|
CAlertHeading: CAlertHeading,
|
|
19837
16570
|
CAlertLink: CAlertLink,
|
|
19838
|
-
|
|
16571
|
+
CAlertPlugin: CAlertPlugin,
|
|
19839
16572
|
CAvatar: CAvatar,
|
|
19840
|
-
|
|
16573
|
+
CAvatarPlugin: CAvatarPlugin,
|
|
19841
16574
|
CBackdrop: CBackdrop,
|
|
16575
|
+
CBackdropPlugin: CBackdropPlugin,
|
|
19842
16576
|
CBadge: CBadge,
|
|
19843
16577
|
CBadgePlugin: CBadgePlugin,
|
|
19844
|
-
CBreadcrumbPlugin: CBreadcrumbPlugin,
|
|
19845
16578
|
CBreadcrumb: CBreadcrumb,
|
|
19846
16579
|
CBreadcrumbItem: CBreadcrumbItem,
|
|
19847
|
-
|
|
16580
|
+
CBreadcrumbPlugin: CBreadcrumbPlugin,
|
|
19848
16581
|
CButton: CButton,
|
|
16582
|
+
CButtonGroup: CButtonGroup,
|
|
19849
16583
|
CButtonGroupPlugin: CButtonGroupPlugin,
|
|
16584
|
+
CButtonPlugin: CButtonPlugin,
|
|
19850
16585
|
CButtonToolbar: CButtonToolbar,
|
|
19851
|
-
|
|
16586
|
+
CCLinkPlugin: CCLinkPlugin,
|
|
19852
16587
|
CCalendar: CCalendar,
|
|
19853
16588
|
CCalendarPlugin: CCalendarPlugin,
|
|
19854
|
-
CCalloutPlugin: CCalloutPlugin,
|
|
19855
16589
|
CCallout: CCallout,
|
|
19856
|
-
|
|
16590
|
+
CCalloutPlugin: CCalloutPlugin,
|
|
19857
16591
|
CCard: CCard,
|
|
19858
16592
|
CCardBody: CCardBody,
|
|
19859
16593
|
CCardFooter: CCardFooter,
|
|
@@ -19862,118 +16596,119 @@ var Components = /*#__PURE__*/Object.freeze({
|
|
|
19862
16596
|
CCardImage: CCardImage,
|
|
19863
16597
|
CCardImageOverlay: CCardImageOverlay,
|
|
19864
16598
|
CCardLink: CCardLink,
|
|
16599
|
+
CCardPlugin: CCardPlugin,
|
|
19865
16600
|
CCardSubtitle: CCardSubtitle,
|
|
19866
16601
|
CCardText: CCardText,
|
|
19867
16602
|
CCardTitle: CCardTitle,
|
|
19868
|
-
CCarouselPlugin: CCarouselPlugin,
|
|
19869
16603
|
CCarousel: CCarousel,
|
|
19870
16604
|
CCarouselCaption: CCarouselCaption,
|
|
19871
16605
|
CCarouselItem: CCarouselItem,
|
|
19872
|
-
|
|
16606
|
+
CCarouselPlugin: CCarouselPlugin,
|
|
19873
16607
|
CCloseButton: CCloseButton,
|
|
19874
|
-
|
|
16608
|
+
CCloseButtonPlugin: CCloseButtonPlugin,
|
|
16609
|
+
CCol: CCol,
|
|
19875
16610
|
CCollapse: CCollapse,
|
|
19876
|
-
|
|
16611
|
+
CCollapsePlugin: CCollapsePlugin,
|
|
16612
|
+
CContainer: CContainer,
|
|
19877
16613
|
CDatePicker: CDatePicker,
|
|
19878
|
-
|
|
16614
|
+
CDatePickerPlugin: CDatePickerPlugin,
|
|
19879
16615
|
CDateRangePicker: CDateRangePicker,
|
|
19880
|
-
|
|
16616
|
+
CDateRangePickerPlugin: CDateRangePickerPlugin,
|
|
19881
16617
|
CDropdown: CDropdown,
|
|
19882
|
-
CDropdownItem: CDropdownItem,
|
|
19883
|
-
CDropdownHeader: CDropdownHeader,
|
|
19884
16618
|
CDropdownDivider: CDropdownDivider,
|
|
16619
|
+
CDropdownHeader: CDropdownHeader,
|
|
16620
|
+
CDropdownItem: CDropdownItem,
|
|
19885
16621
|
CDropdownMenu: CDropdownMenu,
|
|
16622
|
+
CDropdownPlugin: CDropdownPlugin,
|
|
19886
16623
|
CDropdownToggle: CDropdownToggle,
|
|
19887
|
-
CElementCoverPlugin: CElementCoverPlugin,
|
|
19888
16624
|
CElementCover: CElementCover,
|
|
19889
|
-
|
|
16625
|
+
CElementCoverPlugin: CElementCoverPlugin,
|
|
19890
16626
|
CFooter: CFooter,
|
|
19891
|
-
|
|
16627
|
+
CFooterPlugin: CFooterPlugin,
|
|
19892
16628
|
CForm: CForm,
|
|
19893
16629
|
CFormCheck: CFormCheck,
|
|
19894
16630
|
CFormFeedback: CFormFeedback,
|
|
19895
16631
|
CFormFloating: CFormFloating,
|
|
19896
16632
|
CFormInput: CFormInput,
|
|
19897
16633
|
CFormLabel: CFormLabel,
|
|
16634
|
+
CFormPlugin: CFormPlugin,
|
|
19898
16635
|
CFormRange: CFormRange,
|
|
19899
16636
|
CFormSelect: CFormSelect,
|
|
19900
16637
|
CFormSwitch: CFormSwitch,
|
|
19901
16638
|
CFormText: CFormText,
|
|
19902
16639
|
CFormTextarea: CFormTextarea,
|
|
19903
|
-
CInputGroup: CInputGroup,
|
|
19904
|
-
CInputGroupText: CInputGroupText,
|
|
19905
16640
|
CGridPlugin: CGridPlugin,
|
|
19906
|
-
CCol: CCol,
|
|
19907
|
-
CContainer: CContainer,
|
|
19908
|
-
CRow: CRow,
|
|
19909
|
-
CHeaderPlugin: CHeaderPlugin,
|
|
19910
16641
|
CHeader: CHeader,
|
|
19911
16642
|
CHeaderBrand: CHeaderBrand,
|
|
19912
16643
|
CHeaderDivider: CHeaderDivider,
|
|
19913
16644
|
CHeaderNav: CHeaderNav,
|
|
16645
|
+
CHeaderPlugin: CHeaderPlugin,
|
|
19914
16646
|
CHeaderText: CHeaderText,
|
|
19915
16647
|
CHeaderToggler: CHeaderToggler,
|
|
19916
|
-
CImagePlugin: CImagePlugin,
|
|
19917
16648
|
CImage: CImage,
|
|
19918
|
-
|
|
16649
|
+
CImagePlugin: CImagePlugin,
|
|
16650
|
+
CInputGroup: CInputGroup,
|
|
16651
|
+
CInputGroupText: CInputGroupText,
|
|
19919
16652
|
CLink: CLink,
|
|
19920
|
-
CListGroupPlugin: CListGroupPlugin,
|
|
19921
16653
|
CListGroup: CListGroup,
|
|
19922
16654
|
CListGroupItem: CListGroupItem,
|
|
19923
|
-
|
|
16655
|
+
CListGroupPlugin: CListGroupPlugin,
|
|
19924
16656
|
CLoadingButton: CLoadingButton,
|
|
19925
|
-
|
|
16657
|
+
CLoadingButtonPlugin: CLoadingButtonPlugin,
|
|
19926
16658
|
CModal: CModal,
|
|
19927
16659
|
CModalBody: CModalBody,
|
|
19928
16660
|
CModalFooter: CModalFooter,
|
|
19929
16661
|
CModalHeader: CModalHeader,
|
|
16662
|
+
CModalPlugin: CModalPlugin,
|
|
19930
16663
|
CModalTitle: CModalTitle,
|
|
19931
|
-
CMultiSelectPlugin: CMultiSelectPlugin,
|
|
19932
16664
|
CMultiSelect: CMultiSelect,
|
|
19933
|
-
|
|
16665
|
+
CMultiSelectPlugin: CMultiSelectPlugin,
|
|
19934
16666
|
CNav: CNav,
|
|
19935
16667
|
CNavGroup: CNavGroup,
|
|
19936
16668
|
CNavGroupItems: CNavGroupItems,
|
|
19937
16669
|
CNavItem: CNavItem,
|
|
19938
16670
|
CNavLink: CNavLink,
|
|
16671
|
+
CNavPlugin: CNavPlugin,
|
|
19939
16672
|
CNavTitle: CNavTitle,
|
|
19940
|
-
CNavbarPlugin: CNavbarPlugin,
|
|
19941
16673
|
CNavbar: CNavbar,
|
|
19942
16674
|
CNavbarBrand: CNavbarBrand,
|
|
19943
16675
|
CNavbarNav: CNavbarNav,
|
|
16676
|
+
CNavbarPlugin: CNavbarPlugin,
|
|
19944
16677
|
CNavbarText: CNavbarText,
|
|
19945
16678
|
CNavbarToggler: CNavbarToggler,
|
|
19946
|
-
COffcanvasPlugin: COffcanvasPlugin,
|
|
19947
16679
|
COffcanvas: COffcanvas,
|
|
19948
16680
|
COffcanvasBody: COffcanvasBody,
|
|
19949
16681
|
COffcanvasHeader: COffcanvasHeader,
|
|
16682
|
+
COffcanvasPlugin: COffcanvasPlugin,
|
|
19950
16683
|
COffcanvasTitle: COffcanvasTitle,
|
|
19951
|
-
CPaginationPlugin: CPaginationPlugin,
|
|
19952
16684
|
CPagination: CPagination,
|
|
19953
16685
|
CPaginationItem: CPaginationItem,
|
|
16686
|
+
CPaginationPlugin: CPaginationPlugin,
|
|
19954
16687
|
CPicker: CPicker,
|
|
19955
16688
|
CPickerPlugin: CPickerPlugin,
|
|
19956
|
-
CPlaceholderPlugin: CPlaceholderPlugin,
|
|
19957
16689
|
CPlaceholder: CPlaceholder,
|
|
19958
|
-
|
|
16690
|
+
CPlaceholderPlugin: CPlaceholderPlugin,
|
|
16691
|
+
CPopover: CPopover,
|
|
16692
|
+
CPopoverPlugin: CPopoverPlugin,
|
|
19959
16693
|
CProgress: CProgress,
|
|
19960
16694
|
CProgressBar: CProgressBar,
|
|
19961
|
-
|
|
19962
|
-
|
|
19963
|
-
CSidebarPlugin: CSidebarPlugin,
|
|
16695
|
+
CProgressPlugin: CProgressPlugin,
|
|
16696
|
+
CRow: CRow,
|
|
19964
16697
|
CSidebar: CSidebar,
|
|
19965
16698
|
CSidebarBrand: CSidebarBrand,
|
|
19966
16699
|
CSidebarFooter: CSidebarFooter,
|
|
19967
16700
|
CSidebarHeader: CSidebarHeader,
|
|
19968
16701
|
CSidebarNav: CSidebarNav,
|
|
16702
|
+
CSidebarPlugin: CSidebarPlugin,
|
|
19969
16703
|
CSidebarToggler: CSidebarToggler,
|
|
19970
|
-
CSmartPaginationPlugin: CSmartPaginationPlugin,
|
|
19971
16704
|
CSmartPagination: CSmartPagination,
|
|
19972
|
-
|
|
16705
|
+
CSmartPaginationPlugin: CSmartPaginationPlugin,
|
|
19973
16706
|
CSmartTable: CSmartTable,
|
|
19974
|
-
|
|
16707
|
+
CSmartTablePlugin: CSmartTablePlugin,
|
|
19975
16708
|
CSpinner: CSpinner,
|
|
19976
|
-
|
|
16709
|
+
CSpinnerPlugin: CSpinnerPlugin,
|
|
16710
|
+
CTabContent: CTabContent,
|
|
16711
|
+
CTabPane: CTabPane,
|
|
19977
16712
|
CTable: CTable,
|
|
19978
16713
|
CTableBody: CTableBody,
|
|
19979
16714
|
CTableCaption: CTableCaption,
|
|
@@ -19981,27 +16716,26 @@ var Components = /*#__PURE__*/Object.freeze({
|
|
|
19981
16716
|
CTableFoot: CTableFoot,
|
|
19982
16717
|
CTableHead: CTableHead,
|
|
19983
16718
|
CTableHeaderCell: CTableHeaderCell,
|
|
16719
|
+
CTablePlugin: CTablePlugin,
|
|
19984
16720
|
CTableRow: CTableRow,
|
|
19985
16721
|
CTabsPlugin: CTabsPlugin,
|
|
19986
|
-
CTabContent: CTabContent,
|
|
19987
|
-
CTabPane: CTabPane,
|
|
19988
16722
|
CTimePicker: CTimePicker,
|
|
19989
16723
|
CTimePickerPlugin: CTimePickerPlugin,
|
|
19990
|
-
CToastPlugin: CToastPlugin,
|
|
19991
16724
|
CToast: CToast,
|
|
19992
16725
|
CToastBody: CToastBody,
|
|
19993
16726
|
CToastClose: CToastClose,
|
|
19994
|
-
CToaster: CToaster,
|
|
19995
16727
|
CToastHeader: CToastHeader,
|
|
19996
|
-
|
|
16728
|
+
CToastPlugin: CToastPlugin,
|
|
16729
|
+
CToaster: CToaster,
|
|
19997
16730
|
CTooltip: CTooltip,
|
|
19998
|
-
|
|
16731
|
+
CTooltipPlugin: CTooltipPlugin,
|
|
19999
16732
|
CWidgetStatsA: CWidgetStatsA,
|
|
20000
16733
|
CWidgetStatsB: CWidgetStatsB,
|
|
20001
16734
|
CWidgetStatsC: CWidgetStatsC,
|
|
20002
16735
|
CWidgetStatsD: CWidgetStatsD,
|
|
20003
16736
|
CWidgetStatsE: CWidgetStatsE,
|
|
20004
|
-
CWidgetStatsF: CWidgetStatsF
|
|
16737
|
+
CWidgetStatsF: CWidgetStatsF,
|
|
16738
|
+
CWidgetsStatsPlugin: CWidgetsStatsPlugin
|
|
20005
16739
|
});
|
|
20006
16740
|
|
|
20007
16741
|
const BREAKPOINTS = [
|
|
@@ -20410,7 +17144,7 @@ exports.CWidgetStatsD = CWidgetStatsD;
|
|
|
20410
17144
|
exports.CWidgetStatsE = CWidgetStatsE;
|
|
20411
17145
|
exports.CWidgetStatsF = CWidgetStatsF;
|
|
20412
17146
|
exports.CWidgetsStatsPlugin = CWidgetsStatsPlugin;
|
|
20413
|
-
exports
|
|
17147
|
+
exports.default = CoreuiVue;
|
|
20414
17148
|
exports.vcplaceholder = vcplaceholder;
|
|
20415
17149
|
exports.vcpopover = vcpopover;
|
|
20416
17150
|
exports.vctooltip = vctooltip;
|