Edit File by line
/home/barbar84/www/wp-inclu.../js/dist/vendor
File: moment.js
proto$1.pastFuture = pastFuture;
[5000] Fix | Delete
proto$1.set = set;
[5001] Fix | Delete
proto$1.eras = localeEras;
[5002] Fix | Delete
proto$1.erasParse = localeErasParse;
[5003] Fix | Delete
proto$1.erasConvertYear = localeErasConvertYear;
[5004] Fix | Delete
proto$1.erasAbbrRegex = erasAbbrRegex;
[5005] Fix | Delete
proto$1.erasNameRegex = erasNameRegex;
[5006] Fix | Delete
proto$1.erasNarrowRegex = erasNarrowRegex;
[5007] Fix | Delete
[5008] Fix | Delete
proto$1.months = localeMonths;
[5009] Fix | Delete
proto$1.monthsShort = localeMonthsShort;
[5010] Fix | Delete
proto$1.monthsParse = localeMonthsParse;
[5011] Fix | Delete
proto$1.monthsRegex = monthsRegex;
[5012] Fix | Delete
proto$1.monthsShortRegex = monthsShortRegex;
[5013] Fix | Delete
proto$1.week = localeWeek;
[5014] Fix | Delete
proto$1.firstDayOfYear = localeFirstDayOfYear;
[5015] Fix | Delete
proto$1.firstDayOfWeek = localeFirstDayOfWeek;
[5016] Fix | Delete
[5017] Fix | Delete
proto$1.weekdays = localeWeekdays;
[5018] Fix | Delete
proto$1.weekdaysMin = localeWeekdaysMin;
[5019] Fix | Delete
proto$1.weekdaysShort = localeWeekdaysShort;
[5020] Fix | Delete
proto$1.weekdaysParse = localeWeekdaysParse;
[5021] Fix | Delete
[5022] Fix | Delete
proto$1.weekdaysRegex = weekdaysRegex;
[5023] Fix | Delete
proto$1.weekdaysShortRegex = weekdaysShortRegex;
[5024] Fix | Delete
proto$1.weekdaysMinRegex = weekdaysMinRegex;
[5025] Fix | Delete
[5026] Fix | Delete
proto$1.isPM = localeIsPM;
[5027] Fix | Delete
proto$1.meridiem = localeMeridiem;
[5028] Fix | Delete
[5029] Fix | Delete
function get$1(format, index, field, setter) {
[5030] Fix | Delete
var locale = getLocale(),
[5031] Fix | Delete
utc = createUTC().set(setter, index);
[5032] Fix | Delete
return locale[field](utc, format);
[5033] Fix | Delete
}
[5034] Fix | Delete
[5035] Fix | Delete
function listMonthsImpl(format, index, field) {
[5036] Fix | Delete
if (isNumber(format)) {
[5037] Fix | Delete
index = format;
[5038] Fix | Delete
format = undefined;
[5039] Fix | Delete
}
[5040] Fix | Delete
[5041] Fix | Delete
format = format || '';
[5042] Fix | Delete
[5043] Fix | Delete
if (index != null) {
[5044] Fix | Delete
return get$1(format, index, field, 'month');
[5045] Fix | Delete
}
[5046] Fix | Delete
[5047] Fix | Delete
var i,
[5048] Fix | Delete
out = [];
[5049] Fix | Delete
for (i = 0; i < 12; i++) {
[5050] Fix | Delete
out[i] = get$1(format, i, field, 'month');
[5051] Fix | Delete
}
[5052] Fix | Delete
return out;
[5053] Fix | Delete
}
[5054] Fix | Delete
[5055] Fix | Delete
// ()
[5056] Fix | Delete
// (5)
[5057] Fix | Delete
// (fmt, 5)
[5058] Fix | Delete
// (fmt)
[5059] Fix | Delete
// (true)
[5060] Fix | Delete
// (true, 5)
[5061] Fix | Delete
// (true, fmt, 5)
[5062] Fix | Delete
// (true, fmt)
[5063] Fix | Delete
function listWeekdaysImpl(localeSorted, format, index, field) {
[5064] Fix | Delete
if (typeof localeSorted === 'boolean') {
[5065] Fix | Delete
if (isNumber(format)) {
[5066] Fix | Delete
index = format;
[5067] Fix | Delete
format = undefined;
[5068] Fix | Delete
}
[5069] Fix | Delete
[5070] Fix | Delete
format = format || '';
[5071] Fix | Delete
} else {
[5072] Fix | Delete
format = localeSorted;
[5073] Fix | Delete
index = format;
[5074] Fix | Delete
localeSorted = false;
[5075] Fix | Delete
[5076] Fix | Delete
if (isNumber(format)) {
[5077] Fix | Delete
index = format;
[5078] Fix | Delete
format = undefined;
[5079] Fix | Delete
}
[5080] Fix | Delete
[5081] Fix | Delete
format = format || '';
[5082] Fix | Delete
}
[5083] Fix | Delete
[5084] Fix | Delete
var locale = getLocale(),
[5085] Fix | Delete
shift = localeSorted ? locale._week.dow : 0,
[5086] Fix | Delete
i,
[5087] Fix | Delete
out = [];
[5088] Fix | Delete
[5089] Fix | Delete
if (index != null) {
[5090] Fix | Delete
return get$1(format, (index + shift) % 7, field, 'day');
[5091] Fix | Delete
}
[5092] Fix | Delete
[5093] Fix | Delete
for (i = 0; i < 7; i++) {
[5094] Fix | Delete
out[i] = get$1(format, (i + shift) % 7, field, 'day');
[5095] Fix | Delete
}
[5096] Fix | Delete
return out;
[5097] Fix | Delete
}
[5098] Fix | Delete
[5099] Fix | Delete
function listMonths(format, index) {
[5100] Fix | Delete
return listMonthsImpl(format, index, 'months');
[5101] Fix | Delete
}
[5102] Fix | Delete
[5103] Fix | Delete
function listMonthsShort(format, index) {
[5104] Fix | Delete
return listMonthsImpl(format, index, 'monthsShort');
[5105] Fix | Delete
}
[5106] Fix | Delete
[5107] Fix | Delete
function listWeekdays(localeSorted, format, index) {
[5108] Fix | Delete
return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
[5109] Fix | Delete
}
[5110] Fix | Delete
[5111] Fix | Delete
function listWeekdaysShort(localeSorted, format, index) {
[5112] Fix | Delete
return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
[5113] Fix | Delete
}
[5114] Fix | Delete
[5115] Fix | Delete
function listWeekdaysMin(localeSorted, format, index) {
[5116] Fix | Delete
return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
[5117] Fix | Delete
}
[5118] Fix | Delete
[5119] Fix | Delete
getSetGlobalLocale('en', {
[5120] Fix | Delete
eras: [
[5121] Fix | Delete
{
[5122] Fix | Delete
since: '0001-01-01',
[5123] Fix | Delete
until: +Infinity,
[5124] Fix | Delete
offset: 1,
[5125] Fix | Delete
name: 'Anno Domini',
[5126] Fix | Delete
narrow: 'AD',
[5127] Fix | Delete
abbr: 'AD',
[5128] Fix | Delete
},
[5129] Fix | Delete
{
[5130] Fix | Delete
since: '0000-12-31',
[5131] Fix | Delete
until: -Infinity,
[5132] Fix | Delete
offset: 1,
[5133] Fix | Delete
name: 'Before Christ',
[5134] Fix | Delete
narrow: 'BC',
[5135] Fix | Delete
abbr: 'BC',
[5136] Fix | Delete
},
[5137] Fix | Delete
],
[5138] Fix | Delete
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
[5139] Fix | Delete
ordinal: function (number) {
[5140] Fix | Delete
var b = number % 10,
[5141] Fix | Delete
output =
[5142] Fix | Delete
toInt((number % 100) / 10) === 1
[5143] Fix | Delete
? 'th'
[5144] Fix | Delete
: b === 1
[5145] Fix | Delete
? 'st'
[5146] Fix | Delete
: b === 2
[5147] Fix | Delete
? 'nd'
[5148] Fix | Delete
: b === 3
[5149] Fix | Delete
? 'rd'
[5150] Fix | Delete
: 'th';
[5151] Fix | Delete
return number + output;
[5152] Fix | Delete
},
[5153] Fix | Delete
});
[5154] Fix | Delete
[5155] Fix | Delete
// Side effect imports
[5156] Fix | Delete
[5157] Fix | Delete
hooks.lang = deprecate(
[5158] Fix | Delete
'moment.lang is deprecated. Use moment.locale instead.',
[5159] Fix | Delete
getSetGlobalLocale
[5160] Fix | Delete
);
[5161] Fix | Delete
hooks.langData = deprecate(
[5162] Fix | Delete
'moment.langData is deprecated. Use moment.localeData instead.',
[5163] Fix | Delete
getLocale
[5164] Fix | Delete
);
[5165] Fix | Delete
[5166] Fix | Delete
var mathAbs = Math.abs;
[5167] Fix | Delete
[5168] Fix | Delete
function abs() {
[5169] Fix | Delete
var data = this._data;
[5170] Fix | Delete
[5171] Fix | Delete
this._milliseconds = mathAbs(this._milliseconds);
[5172] Fix | Delete
this._days = mathAbs(this._days);
[5173] Fix | Delete
this._months = mathAbs(this._months);
[5174] Fix | Delete
[5175] Fix | Delete
data.milliseconds = mathAbs(data.milliseconds);
[5176] Fix | Delete
data.seconds = mathAbs(data.seconds);
[5177] Fix | Delete
data.minutes = mathAbs(data.minutes);
[5178] Fix | Delete
data.hours = mathAbs(data.hours);
[5179] Fix | Delete
data.months = mathAbs(data.months);
[5180] Fix | Delete
data.years = mathAbs(data.years);
[5181] Fix | Delete
[5182] Fix | Delete
return this;
[5183] Fix | Delete
}
[5184] Fix | Delete
[5185] Fix | Delete
function addSubtract$1(duration, input, value, direction) {
[5186] Fix | Delete
var other = createDuration(input, value);
[5187] Fix | Delete
[5188] Fix | Delete
duration._milliseconds += direction * other._milliseconds;
[5189] Fix | Delete
duration._days += direction * other._days;
[5190] Fix | Delete
duration._months += direction * other._months;
[5191] Fix | Delete
[5192] Fix | Delete
return duration._bubble();
[5193] Fix | Delete
}
[5194] Fix | Delete
[5195] Fix | Delete
// supports only 2.0-style add(1, 's') or add(duration)
[5196] Fix | Delete
function add$1(input, value) {
[5197] Fix | Delete
return addSubtract$1(this, input, value, 1);
[5198] Fix | Delete
}
[5199] Fix | Delete
[5200] Fix | Delete
// supports only 2.0-style subtract(1, 's') or subtract(duration)
[5201] Fix | Delete
function subtract$1(input, value) {
[5202] Fix | Delete
return addSubtract$1(this, input, value, -1);
[5203] Fix | Delete
}
[5204] Fix | Delete
[5205] Fix | Delete
function absCeil(number) {
[5206] Fix | Delete
if (number < 0) {
[5207] Fix | Delete
return Math.floor(number);
[5208] Fix | Delete
} else {
[5209] Fix | Delete
return Math.ceil(number);
[5210] Fix | Delete
}
[5211] Fix | Delete
}
[5212] Fix | Delete
[5213] Fix | Delete
function bubble() {
[5214] Fix | Delete
var milliseconds = this._milliseconds,
[5215] Fix | Delete
days = this._days,
[5216] Fix | Delete
months = this._months,
[5217] Fix | Delete
data = this._data,
[5218] Fix | Delete
seconds,
[5219] Fix | Delete
minutes,
[5220] Fix | Delete
hours,
[5221] Fix | Delete
years,
[5222] Fix | Delete
monthsFromDays;
[5223] Fix | Delete
[5224] Fix | Delete
// if we have a mix of positive and negative values, bubble down first
[5225] Fix | Delete
// check: https://github.com/moment/moment/issues/2166
[5226] Fix | Delete
if (
[5227] Fix | Delete
!(
[5228] Fix | Delete
(milliseconds >= 0 && days >= 0 && months >= 0) ||
[5229] Fix | Delete
(milliseconds <= 0 && days <= 0 && months <= 0)
[5230] Fix | Delete
)
[5231] Fix | Delete
) {
[5232] Fix | Delete
milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
[5233] Fix | Delete
days = 0;
[5234] Fix | Delete
months = 0;
[5235] Fix | Delete
}
[5236] Fix | Delete
[5237] Fix | Delete
// The following code bubbles up values, see the tests for
[5238] Fix | Delete
// examples of what that means.
[5239] Fix | Delete
data.milliseconds = milliseconds % 1000;
[5240] Fix | Delete
[5241] Fix | Delete
seconds = absFloor(milliseconds / 1000);
[5242] Fix | Delete
data.seconds = seconds % 60;
[5243] Fix | Delete
[5244] Fix | Delete
minutes = absFloor(seconds / 60);
[5245] Fix | Delete
data.minutes = minutes % 60;
[5246] Fix | Delete
[5247] Fix | Delete
hours = absFloor(minutes / 60);
[5248] Fix | Delete
data.hours = hours % 24;
[5249] Fix | Delete
[5250] Fix | Delete
days += absFloor(hours / 24);
[5251] Fix | Delete
[5252] Fix | Delete
// convert days to months
[5253] Fix | Delete
monthsFromDays = absFloor(daysToMonths(days));
[5254] Fix | Delete
months += monthsFromDays;
[5255] Fix | Delete
days -= absCeil(monthsToDays(monthsFromDays));
[5256] Fix | Delete
[5257] Fix | Delete
// 12 months -> 1 year
[5258] Fix | Delete
years = absFloor(months / 12);
[5259] Fix | Delete
months %= 12;
[5260] Fix | Delete
[5261] Fix | Delete
data.days = days;
[5262] Fix | Delete
data.months = months;
[5263] Fix | Delete
data.years = years;
[5264] Fix | Delete
[5265] Fix | Delete
return this;
[5266] Fix | Delete
}
[5267] Fix | Delete
[5268] Fix | Delete
function daysToMonths(days) {
[5269] Fix | Delete
// 400 years have 146097 days (taking into account leap year rules)
[5270] Fix | Delete
// 400 years have 12 months === 4800
[5271] Fix | Delete
return (days * 4800) / 146097;
[5272] Fix | Delete
}
[5273] Fix | Delete
[5274] Fix | Delete
function monthsToDays(months) {
[5275] Fix | Delete
// the reverse of daysToMonths
[5276] Fix | Delete
return (months * 146097) / 4800;
[5277] Fix | Delete
}
[5278] Fix | Delete
[5279] Fix | Delete
function as(units) {
[5280] Fix | Delete
if (!this.isValid()) {
[5281] Fix | Delete
return NaN;
[5282] Fix | Delete
}
[5283] Fix | Delete
var days,
[5284] Fix | Delete
months,
[5285] Fix | Delete
milliseconds = this._milliseconds;
[5286] Fix | Delete
[5287] Fix | Delete
units = normalizeUnits(units);
[5288] Fix | Delete
[5289] Fix | Delete
if (units === 'month' || units === 'quarter' || units === 'year') {
[5290] Fix | Delete
days = this._days + milliseconds / 864e5;
[5291] Fix | Delete
months = this._months + daysToMonths(days);
[5292] Fix | Delete
switch (units) {
[5293] Fix | Delete
case 'month':
[5294] Fix | Delete
return months;
[5295] Fix | Delete
case 'quarter':
[5296] Fix | Delete
return months / 3;
[5297] Fix | Delete
case 'year':
[5298] Fix | Delete
return months / 12;
[5299] Fix | Delete
}
[5300] Fix | Delete
} else {
[5301] Fix | Delete
// handle milliseconds separately because of floating point math errors (issue #1867)
[5302] Fix | Delete
days = this._days + Math.round(monthsToDays(this._months));
[5303] Fix | Delete
switch (units) {
[5304] Fix | Delete
case 'week':
[5305] Fix | Delete
return days / 7 + milliseconds / 6048e5;
[5306] Fix | Delete
case 'day':
[5307] Fix | Delete
return days + milliseconds / 864e5;
[5308] Fix | Delete
case 'hour':
[5309] Fix | Delete
return days * 24 + milliseconds / 36e5;
[5310] Fix | Delete
case 'minute':
[5311] Fix | Delete
return days * 1440 + milliseconds / 6e4;
[5312] Fix | Delete
case 'second':
[5313] Fix | Delete
return days * 86400 + milliseconds / 1000;
[5314] Fix | Delete
// Math.floor prevents floating point math errors here
[5315] Fix | Delete
case 'millisecond':
[5316] Fix | Delete
return Math.floor(days * 864e5) + milliseconds;
[5317] Fix | Delete
default:
[5318] Fix | Delete
throw new Error('Unknown unit ' + units);
[5319] Fix | Delete
}
[5320] Fix | Delete
}
[5321] Fix | Delete
}
[5322] Fix | Delete
[5323] Fix | Delete
// TODO: Use this.as('ms')?
[5324] Fix | Delete
function valueOf$1() {
[5325] Fix | Delete
if (!this.isValid()) {
[5326] Fix | Delete
return NaN;
[5327] Fix | Delete
}
[5328] Fix | Delete
return (
[5329] Fix | Delete
this._milliseconds +
[5330] Fix | Delete
this._days * 864e5 +
[5331] Fix | Delete
(this._months % 12) * 2592e6 +
[5332] Fix | Delete
toInt(this._months / 12) * 31536e6
[5333] Fix | Delete
);
[5334] Fix | Delete
}
[5335] Fix | Delete
[5336] Fix | Delete
function makeAs(alias) {
[5337] Fix | Delete
return function () {
[5338] Fix | Delete
return this.as(alias);
[5339] Fix | Delete
};
[5340] Fix | Delete
}
[5341] Fix | Delete
[5342] Fix | Delete
var asMilliseconds = makeAs('ms'),
[5343] Fix | Delete
asSeconds = makeAs('s'),
[5344] Fix | Delete
asMinutes = makeAs('m'),
[5345] Fix | Delete
asHours = makeAs('h'),
[5346] Fix | Delete
asDays = makeAs('d'),
[5347] Fix | Delete
asWeeks = makeAs('w'),
[5348] Fix | Delete
asMonths = makeAs('M'),
[5349] Fix | Delete
asQuarters = makeAs('Q'),
[5350] Fix | Delete
asYears = makeAs('y');
[5351] Fix | Delete
[5352] Fix | Delete
function clone$1() {
[5353] Fix | Delete
return createDuration(this);
[5354] Fix | Delete
}
[5355] Fix | Delete
[5356] Fix | Delete
function get$2(units) {
[5357] Fix | Delete
units = normalizeUnits(units);
[5358] Fix | Delete
return this.isValid() ? this[units + 's']() : NaN;
[5359] Fix | Delete
}
[5360] Fix | Delete
[5361] Fix | Delete
function makeGetter(name) {
[5362] Fix | Delete
return function () {
[5363] Fix | Delete
return this.isValid() ? this._data[name] : NaN;
[5364] Fix | Delete
};
[5365] Fix | Delete
}
[5366] Fix | Delete
[5367] Fix | Delete
var milliseconds = makeGetter('milliseconds'),
[5368] Fix | Delete
seconds = makeGetter('seconds'),
[5369] Fix | Delete
minutes = makeGetter('minutes'),
[5370] Fix | Delete
hours = makeGetter('hours'),
[5371] Fix | Delete
days = makeGetter('days'),
[5372] Fix | Delete
months = makeGetter('months'),
[5373] Fix | Delete
years = makeGetter('years');
[5374] Fix | Delete
[5375] Fix | Delete
function weeks() {
[5376] Fix | Delete
return absFloor(this.days() / 7);
[5377] Fix | Delete
}
[5378] Fix | Delete
[5379] Fix | Delete
var round = Math.round,
[5380] Fix | Delete
thresholds = {
[5381] Fix | Delete
ss: 44, // a few seconds to seconds
[5382] Fix | Delete
s: 45, // seconds to minute
[5383] Fix | Delete
m: 45, // minutes to hour
[5384] Fix | Delete
h: 22, // hours to day
[5385] Fix | Delete
d: 26, // days to month/week
[5386] Fix | Delete
w: null, // weeks to month
[5387] Fix | Delete
M: 11, // months to year
[5388] Fix | Delete
};
[5389] Fix | Delete
[5390] Fix | Delete
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
[5391] Fix | Delete
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
[5392] Fix | Delete
return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
[5393] Fix | Delete
}
[5394] Fix | Delete
[5395] Fix | Delete
function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
[5396] Fix | Delete
var duration = createDuration(posNegDuration).abs(),
[5397] Fix | Delete
seconds = round(duration.as('s')),
[5398] Fix | Delete
minutes = round(duration.as('m')),
[5399] Fix | Delete
hours = round(duration.as('h')),
[5400] Fix | Delete
days = round(duration.as('d')),
[5401] Fix | Delete
months = round(duration.as('M')),
[5402] Fix | Delete
weeks = round(duration.as('w')),
[5403] Fix | Delete
years = round(duration.as('y')),
[5404] Fix | Delete
a =
[5405] Fix | Delete
(seconds <= thresholds.ss && ['s', seconds]) ||
[5406] Fix | Delete
(seconds < thresholds.s && ['ss', seconds]) ||
[5407] Fix | Delete
(minutes <= 1 && ['m']) ||
[5408] Fix | Delete
(minutes < thresholds.m && ['mm', minutes]) ||
[5409] Fix | Delete
(hours <= 1 && ['h']) ||
[5410] Fix | Delete
(hours < thresholds.h && ['hh', hours]) ||
[5411] Fix | Delete
(days <= 1 && ['d']) ||
[5412] Fix | Delete
(days < thresholds.d && ['dd', days]);
[5413] Fix | Delete
[5414] Fix | Delete
if (thresholds.w != null) {
[5415] Fix | Delete
a =
[5416] Fix | Delete
a ||
[5417] Fix | Delete
(weeks <= 1 && ['w']) ||
[5418] Fix | Delete
(weeks < thresholds.w && ['ww', weeks]);
[5419] Fix | Delete
}
[5420] Fix | Delete
a = a ||
[5421] Fix | Delete
(months <= 1 && ['M']) ||
[5422] Fix | Delete
(months < thresholds.M && ['MM', months]) ||
[5423] Fix | Delete
(years <= 1 && ['y']) || ['yy', years];
[5424] Fix | Delete
[5425] Fix | Delete
a[2] = withoutSuffix;
[5426] Fix | Delete
a[3] = +posNegDuration > 0;
[5427] Fix | Delete
a[4] = locale;
[5428] Fix | Delete
return substituteTimeAgo.apply(null, a);
[5429] Fix | Delete
}
[5430] Fix | Delete
[5431] Fix | Delete
// This function allows you to set the rounding function for relative time strings
[5432] Fix | Delete
function getSetRelativeTimeRounding(roundingFunction) {
[5433] Fix | Delete
if (roundingFunction === undefined) {
[5434] Fix | Delete
return round;
[5435] Fix | Delete
}
[5436] Fix | Delete
if (typeof roundingFunction === 'function') {
[5437] Fix | Delete
round = roundingFunction;
[5438] Fix | Delete
return true;
[5439] Fix | Delete
}
[5440] Fix | Delete
return false;
[5441] Fix | Delete
}
[5442] Fix | Delete
[5443] Fix | Delete
// This function allows you to set a threshold for relative time strings
[5444] Fix | Delete
function getSetRelativeTimeThreshold(threshold, limit) {
[5445] Fix | Delete
if (thresholds[threshold] === undefined) {
[5446] Fix | Delete
return false;
[5447] Fix | Delete
}
[5448] Fix | Delete
if (limit === undefined) {
[5449] Fix | Delete
return thresholds[threshold];
[5450] Fix | Delete
}
[5451] Fix | Delete
thresholds[threshold] = limit;
[5452] Fix | Delete
if (threshold === 's') {
[5453] Fix | Delete
thresholds.ss = limit - 1;
[5454] Fix | Delete
}
[5455] Fix | Delete
return true;
[5456] Fix | Delete
}
[5457] Fix | Delete
[5458] Fix | Delete
function humanize(argWithSuffix, argThresholds) {
[5459] Fix | Delete
if (!this.isValid()) {
[5460] Fix | Delete
return this.localeData().invalidDate();
[5461] Fix | Delete
}
[5462] Fix | Delete
[5463] Fix | Delete
var withSuffix = false,
[5464] Fix | Delete
th = thresholds,
[5465] Fix | Delete
locale,
[5466] Fix | Delete
output;
[5467] Fix | Delete
[5468] Fix | Delete
if (typeof argWithSuffix === 'object') {
[5469] Fix | Delete
argThresholds = argWithSuffix;
[5470] Fix | Delete
argWithSuffix = false;
[5471] Fix | Delete
}
[5472] Fix | Delete
if (typeof argWithSuffix === 'boolean') {
[5473] Fix | Delete
withSuffix = argWithSuffix;
[5474] Fix | Delete
}
[5475] Fix | Delete
if (typeof argThresholds === 'object') {
[5476] Fix | Delete
th = Object.assign({}, thresholds, argThresholds);
[5477] Fix | Delete
if (argThresholds.s != null && argThresholds.ss == null) {
[5478] Fix | Delete
th.ss = argThresholds.s - 1;
[5479] Fix | Delete
}
[5480] Fix | Delete
}
[5481] Fix | Delete
[5482] Fix | Delete
locale = this.localeData();
[5483] Fix | Delete
output = relativeTime$1(this, !withSuffix, th, locale);
[5484] Fix | Delete
[5485] Fix | Delete
if (withSuffix) {
[5486] Fix | Delete
output = locale.pastFuture(+this, output);
[5487] Fix | Delete
}
[5488] Fix | Delete
[5489] Fix | Delete
return locale.postformat(output);
[5490] Fix | Delete
}
[5491] Fix | Delete
[5492] Fix | Delete
var abs$1 = Math.abs;
[5493] Fix | Delete
[5494] Fix | Delete
function sign(x) {
[5495] Fix | Delete
return (x > 0) - (x < 0) || +x;
[5496] Fix | Delete
}
[5497] Fix | Delete
[5498] Fix | Delete
function toISOString$1() {
[5499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function