6896 lines
297 KiB
JavaScript
6896 lines
297 KiB
JavaScript
/* Metro module 3738; source: unknown; dependencies: [] */
|
|
function _fun28101(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:6, offset: 0x00f6df47, size: 120 bytes, params: 8, frame: 14
|
|
const env0_0 = require;
|
|
const t_281022 = t_28102;
|
|
if (typeof exports !== 'object') {
|
|
if (typeof global.define !== 'function') {
|
|
this.moment = t_281022();
|
|
} else if (global.define.amd) {
|
|
global.define(t_281022);
|
|
} else {
|
|
this.moment = t_281022();
|
|
}
|
|
} else if (module !== undefined) {
|
|
module.exports = t_281022();
|
|
} else if (typeof global.define !== 'function') {
|
|
this.moment = t_281022();
|
|
} else if (global.define.amd) {
|
|
global.define(t_281022);
|
|
} else {
|
|
this.moment = t_281022();
|
|
}
|
|
function t_28102() { // fn#28102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:52, offset: 0x00f6dfbf, size: 7162 bytes, params: 1, frame: 94
|
|
var r53;
|
|
var value18;
|
|
var value19;
|
|
let closure = function() {
|
|
return createLocal.apply(null, arguments);
|
|
};
|
|
const t_28102IsArray = function(a0) {
|
|
var r0;
|
|
var value = a0 instanceof global.Array;
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
value = global.Object.prototype.toString.call(a0);
|
|
value = value === '[object Array]';
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const t_28102IsObject = function(a0) {
|
|
var r0;
|
|
var value = a0 != null;
|
|
if (value) {
|
|
value = global.Object.prototype.toString.call(a0);
|
|
value = value === '[object Object]';
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const t_28102IsUndefined = function(a0) {
|
|
return a0 === undefined;
|
|
};
|
|
const t_28102IsNumber = function(a0) {
|
|
var r0;
|
|
var value = typeof a0 === 'number';
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
value = global.Object.prototype.toString.call(a0);
|
|
value = value === '[object Number]';
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const closure2 = function(a0) {
|
|
var r0;
|
|
var value = a0 instanceof global.Date;
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
value = global.Object.prototype.toString.call(a0);
|
|
value = value === '[object Date]';
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const t_28102Map = function(a0, a1) {
|
|
var r3;
|
|
var items = [];
|
|
var value = 0;
|
|
if (value < a0.length) {
|
|
for (r3 = value; true; r3 = value) {
|
|
items.push(a1(a0[r3], r3));
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (!(value < a0.length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return items;
|
|
};
|
|
const hasOwnProp = function(a0, a1) {
|
|
return global.Object.prototype.hasOwnProperty.call(a0, a1);
|
|
};
|
|
const t_28102Extend = function(a0, a1) {
|
|
var r6;
|
|
var propertyName;
|
|
var propertyName2;
|
|
for (propertyName in a1) {
|
|
if (!hasOwnProp(a1, propertyName)) {
|
|
r6 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = a1[propertyName];
|
|
r6 = propertyName2;
|
|
}
|
|
if (hasOwnProp(a1, 'toString')) {
|
|
a0.toString = a1.toString;
|
|
}
|
|
if (hasOwnProp(a1, 'valueOf')) {
|
|
a0.valueOf = a1.valueOf;
|
|
}
|
|
return a0;
|
|
};
|
|
const utc_281122 = utc_28112;
|
|
const getParsingFlags = function(a0) {
|
|
if (a0._pf == null) {
|
|
a0._pf = {'empty': false, 'unusedTokens': null, 'unusedInput': null, 'overflow': -2, 'charsLeftOver': 0,
|
|
'nullInput': false, 'invalidMonth': null, 'invalidFormat': false, 'userInvalidated': false,
|
|
'iso': false,
|
|
'parsedDateParts': null, 'meridiem': null, 'rfc2822': false, 'weekdayMismatch': false, unusedTokens: [],
|
|
unusedInput: [], parsedDateParts: []};
|
|
}
|
|
return a0._pf;
|
|
};
|
|
const invalid_281162 = invalid_28116;
|
|
const Moment2 = Moment;
|
|
const isMoment2 = isMoment;
|
|
const absFloor = function(a0) {
|
|
var value = 0;
|
|
return a0 < value ? global.Math.ceil(a0) || value : global.Math.floor(a0);
|
|
};
|
|
const closure7 = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = true;
|
|
var t_28102ExtendBinding = t_28102Extend;
|
|
var closure = _fun28125;
|
|
t_28102ExtendBinding(closure, a1);
|
|
return closure;
|
|
};
|
|
const t_28102IsFunction = function(a0) {
|
|
var r0;
|
|
var value = a0 instanceof global.Function;
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
value = global.Object.prototype.toString.call(a0);
|
|
value = value === '[object Function]';
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const closure8 = function(a0) {
|
|
if (a0 != null) {
|
|
this.set(a0);
|
|
}
|
|
};
|
|
const addUnitAlias2 = addUnitAlias;
|
|
const normalizeUnits2 = normalizeUnits;
|
|
const normalizeObjectUnits = function(a0) {
|
|
var r6;
|
|
var r12;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProp2;
|
|
var value3;
|
|
var object = {};
|
|
var r1 = undefined;
|
|
for (propertyName in a0) {
|
|
hasOwnProp2 = hasOwnProp(a0, propertyName);
|
|
if (!hasOwnProp2) {
|
|
r12 = hasOwnProp2;
|
|
continue;
|
|
}
|
|
value3 = normalizeUnits(propertyName);
|
|
r1 = value3;
|
|
r12 = value3;
|
|
if (!r12) {
|
|
r6 = propertyName2;
|
|
continue;
|
|
}
|
|
object[r1] = a0[propertyName];
|
|
r6 = propertyName2;
|
|
}
|
|
return object;
|
|
};
|
|
const addUnitPriority2 = addUnitPriority;
|
|
const addFormatToken2 = addFormatToken;
|
|
const addRegexToken2 = addRegexToken;
|
|
const regexEscape = function(a0) {
|
|
return a0.replace(RegExp('[-\\/\\\\^$*+?.()|[\\]{}]', 'g'), '\\$&');
|
|
};
|
|
const addParseToken2 = addParseToken;
|
|
const closure15 = function(a0, a1) {
|
|
var env0_0 = a1;
|
|
addParseToken(a0, _fun28153);
|
|
};
|
|
const t_28102IsLeapYear = function(a0) {
|
|
var r0;
|
|
r0 = a0 % 4 === 0 && a0 % 100 !== 0;
|
|
r0 = !r0 ? a0 % 400 === 0 : r0;
|
|
return r0;
|
|
};
|
|
const closure16 = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return _fun28158;
|
|
};
|
|
const t_28102Get = function(a0, a1) {
|
|
var r0;
|
|
var property;
|
|
var value;
|
|
if (a0.isValid()) {
|
|
property = a0._d;
|
|
value = '';
|
|
value = property['get' + (a0._isUTC ? 'UTC' : value) + a1]();
|
|
r0 = value;
|
|
} else {
|
|
r0 = global.NaN;
|
|
}
|
|
return r0;
|
|
};
|
|
const month2 = month;
|
|
const createDate = function(a0, a1, a2, a3, a4, a5, a6) {
|
|
var value2 = new global.Date(a0, a1, a2, a3, a4, a5, a6);
|
|
if (a0 < 100 && a0 >= 0 && global.isFinite(value2.getFullYear())) {
|
|
value2.setFullYear(a0);
|
|
}
|
|
return value2;
|
|
};
|
|
const createUTCDate = function(a0) {
|
|
var property = global.Date;
|
|
var UTC = global.Date.UTC;
|
|
var value = UTC.apply(null, arguments);
|
|
value = new property(value);
|
|
if (a0 < 100 && a0 >= 0 && global.isFinite(value.getUTCFullYear())) {
|
|
value.setUTCFullYear(a0);
|
|
}
|
|
return value;
|
|
};
|
|
const firstWeekOffset = function(a0, a1, a2) {
|
|
var value = 7 + a1 - a2;
|
|
value = -(7 + createUTCDate(a0, 0, value).getUTCDay() - a1) % 7 + value;
|
|
return value - 1;
|
|
};
|
|
const closure18 = function() {
|
|
var value = this.hours();
|
|
var value2 = 12;
|
|
value %= value2;
|
|
return value || value2;
|
|
};
|
|
const closure19 = function(a0, a1) {
|
|
var env0_0 = a1;
|
|
addFormatToken(a0, 0, 0, _fun28178);
|
|
};
|
|
const closure20 = function(a0, a1) {
|
|
return a1._meridiemParse;
|
|
};
|
|
const normalizeLocale = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value) {
|
|
value = value.toLowerCase();
|
|
value = value.replace('_', '-');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const locale_281822 = locale_28182;
|
|
const defineLocale2 = defineLocale;
|
|
const localeData_281852 = localeData_28185;
|
|
const defaults = function(a0, a1, a2) {
|
|
return a0 ?? (a1 ?? a2);
|
|
};
|
|
const untruncateYear = function(a0) {
|
|
var value = (0, global.parseInt)(a0, 10);
|
|
return value <= 49 ? 2000 + value : value <= 999 ? 1900 + value : value;
|
|
};
|
|
const closure24 = function(a0, a1, a2, a3) {
|
|
return createLocalOrUTC(a0, a1, a2, a3, false);
|
|
};
|
|
const Duration2 = Duration;
|
|
const closure26 = function(a0) {
|
|
return a0 instanceof Duration;
|
|
};
|
|
const absRound = function(a0) {
|
|
return a0 < 0 ? -1 * global.Math.round(-1 * a0) : global.Math.round(a0);
|
|
};
|
|
const closure27 = function(a0, a1) {
|
|
var env0_0 = a1;
|
|
addFormatToken(a0, 0, 0, _fun28205);
|
|
};
|
|
const getDateOffset = function(a0) {
|
|
var Math = global.Math;
|
|
return 15 * -Math.round(a0._d.getTimezoneOffset() / 15);
|
|
};
|
|
const closure28 = function() {
|
|
var value = this.isValid();
|
|
return (value ? this._isUTC : !!value) && this._offset === 0;
|
|
};
|
|
const duration2 = duration;
|
|
const parseIso = function(a0, a1) {
|
|
var r0;
|
|
var parseFloat;
|
|
var value = a0;
|
|
if (value) {
|
|
parseFloat = global.parseFloat;
|
|
value = value.replace(',', '.');
|
|
value = parseFloat(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return ((0, global.isNaN)(r0) ? 0 : r0) * a1;
|
|
};
|
|
const closure30 = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return _fun28214;
|
|
};
|
|
const locale2 = locale;
|
|
const closure32 = function() {
|
|
return this._locale;
|
|
};
|
|
const closure33 = function(a0, a1) {
|
|
addFormatToken(0, [a0, a0.length], 0, a1);
|
|
};
|
|
const parseMs2 = parseMs;
|
|
const closure35 = function(a0) {
|
|
return a0;
|
|
};
|
|
const listMonthsImpl = function(a0, a1, a2) {
|
|
var r2;
|
|
var r5;
|
|
var value = a0;
|
|
if (t_28102IsNumber(value)) {
|
|
r2 = undefined;
|
|
r5 = value;
|
|
} else {
|
|
r2 = value;
|
|
r5 = a1;
|
|
}
|
|
reducibleJoin3: while (true) {
|
|
if (r2) {
|
|
break reducibleJoin3;
|
|
}
|
|
value = '';
|
|
r2 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
if (r5 != null) {
|
|
return get$1(r2, r5, a2, 'month');
|
|
}
|
|
var items = [];
|
|
var r8 = 0;
|
|
reducibleLoop5: while (true) {
|
|
items[r8] = get$1(r2, r8, a2, 'month');
|
|
value = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
if (value < 12) {
|
|
r8 = value;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
return items;
|
|
};
|
|
const absCeil = function(a0) {
|
|
return a0 < 0 ? global.Math.floor(a0) : global.Math.ceil(a0);
|
|
};
|
|
const daysToMonths = function(a0) {
|
|
return 4800 * a0 / 146097;
|
|
};
|
|
const monthsToDays = function(a0) {
|
|
return 146097 * a0 / 4800;
|
|
};
|
|
const closure36 = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun28232;
|
|
};
|
|
const closure37 = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun28234;
|
|
};
|
|
const substituteTimeAgo = function(a0, a1, a2, a3, a4) {
|
|
return a4.relativeTime(a1 || 1, !!a2, a0, a3);
|
|
};
|
|
const sign = function(a0) {
|
|
var value = a0 > 0;
|
|
value -= a0 < 0;
|
|
return value || Number(a0);
|
|
};
|
|
const toISOString_282372 = toISOString_28237;
|
|
let Array = global.Array;
|
|
let prototype = Array.prototype;
|
|
let r14 = prototype.some ? global.Array.prototype.some : function(a0) {
|
|
var r1;
|
|
var value4;
|
|
var value = (0, global.Object)(this);
|
|
var value2 = 0;
|
|
var value3 = value.length >>> value2;
|
|
if (value2 < value3) {
|
|
r1 = value2;
|
|
reducibleLoop1: while (true) {
|
|
if (r1 in value) {
|
|
reducibleJoin3: while (true) {
|
|
if (a0.call(this, value[r1], r1, value)) {
|
|
return true;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
}
|
|
value4 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value4 < value3)) {
|
|
return false;
|
|
}
|
|
r1 = value4;
|
|
continue reducibleLoop1;
|
|
}
|
|
}
|
|
return false;
|
|
};
|
|
closure.momentProperties = [];
|
|
const env0_5 = {};
|
|
closure.suppressDeprecationWarnings = false;
|
|
closure.deprecationHandler = null;
|
|
const Object = global.Object;
|
|
r14 = Object.keys ? global.Object.keys : function(a0) {
|
|
var r5;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var items = [];
|
|
for (propertyName in a0) {
|
|
if (!hasOwnProp(a0, propertyName)) {
|
|
r5 = propertyName2;
|
|
continue;
|
|
}
|
|
items.push(propertyName);
|
|
r5 = propertyName2;
|
|
}
|
|
return items;
|
|
};
|
|
const env0_6 = {};
|
|
const env0_7 = {};
|
|
const env0_8 = RegExp('(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)',
|
|
'g');
|
|
const env0_9 = RegExp('(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})', 'g');
|
|
const env0_10 = {};
|
|
const env0_11 = {};
|
|
const regexp = RegExp('\\d', '');
|
|
const regexp2 = RegExp('\\d\\d', '');
|
|
const regexp3 = RegExp('\\d{3}', '');
|
|
const regexp4 = RegExp('\\d{4}', '');
|
|
const regexp5 = RegExp('[+-]?\\d{6}', '');
|
|
const regexp6 = RegExp('\\d\\d?', '');
|
|
const regexp7 = RegExp('\\d\\d\\d\\d?', '');
|
|
const regexp8 = RegExp('\\d\\d\\d\\d\\d\\d?', '');
|
|
const regexp9 = RegExp('\\d{1,3}', '');
|
|
const regexp10 = RegExp('\\d{1,4}', '');
|
|
const regexp11 = RegExp('[+-]?\\d{1,6}', '');
|
|
const regexp12 = RegExp('\\d+', '');
|
|
const regexp13 = RegExp('[+-]?\\d+', '');
|
|
const env0_13 = RegExp('Z|[+-]\\d\\d:?\\d\\d', 'gi');
|
|
const regexp14 = RegExp('Z|[+-]\\d\\d(?::?\\d\\d)?', 'gi');
|
|
const regexp15 = RegExp("[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}",
|
|
'i');
|
|
const env0_15 = {};
|
|
const env0_16 = {};
|
|
addFormatToken2('Y', 0, 0, function() {
|
|
var r0;
|
|
var value = this.year();
|
|
if (value <= 9999) {
|
|
value = String(value);
|
|
r0 = value;
|
|
} else {
|
|
value = '+' + value;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
addFormatToken2(0, ['YY', 2], 0, function() {
|
|
return this.year() % 100;
|
|
});
|
|
addFormatToken2(0, ['YYYY', 4], 0, 'year');
|
|
addFormatToken2(0, ['YYYYY', 5], 0, 'year');
|
|
addFormatToken2(0, ['YYYYYY', 6, true], 0, 'year');
|
|
addUnitAlias2('year', 'y');
|
|
addUnitPriority2('year', 1);
|
|
addRegexToken2('Y', regexp13);
|
|
addRegexToken2('YY', regexp6, regexp2);
|
|
addRegexToken2('YYYY', regexp10, regexp4);
|
|
addRegexToken2('YYYYY', regexp11, regexp5);
|
|
addRegexToken2('YYYYYY', regexp11, regexp5);
|
|
addParseToken2(['YYYYY', 'YYYYYY'], 0);
|
|
addParseToken2('YYYY', _fun28242);
|
|
addParseToken2('YY', _fun28243);
|
|
addParseToken2('Y', _fun28244);
|
|
closure.parseTwoDigitYear = parseTwoDigitYear;
|
|
let value = closure16('FullYear', true);
|
|
Array = global.Array;
|
|
const env0_26 = Array.prototype.indexOf ? global.Array.prototype.indexOf : function(a0) {
|
|
var r2;
|
|
var value = 0;
|
|
if (value < this.length) {
|
|
r2 = value;
|
|
loopExit1: while (true) {
|
|
if (this[r2] === a0) {
|
|
return r2;
|
|
}
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value < this.length) {
|
|
r2 = value;
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
}
|
|
return -1;
|
|
};
|
|
addFormatToken2('M', ['MM', 2], 'Mo', function() {
|
|
return this.month() + 1;
|
|
});
|
|
addFormatToken2('MMM', 0, 0, function(a0) {
|
|
return this.localeData().monthsShort(this, a0);
|
|
});
|
|
addFormatToken2('MMMM', 0, 0, function(a0) {
|
|
return this.localeData().months(this, a0);
|
|
});
|
|
addUnitAlias2('month', 'M');
|
|
addUnitPriority2('month', 8);
|
|
addRegexToken2('M', regexp6);
|
|
addRegexToken2('MM', regexp6, regexp2);
|
|
addRegexToken2('MMM', function(a0, a1) {
|
|
return a1.monthsShortRegex(a0);
|
|
});
|
|
addRegexToken2('MMMM', function(a0, a1) {
|
|
return a1.monthsRegex(a0);
|
|
});
|
|
addParseToken2(['M', 'MM'], _fun28252);
|
|
addParseToken2(['MMM', 'MMMM'], _fun28253);
|
|
const env0_27 = RegExp('D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?', '');
|
|
let value2 = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
|
|
let value3 = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
|
|
addFormatToken2('w', ['ww', 2], 'wo', 'week');
|
|
addFormatToken2('W', ['WW', 2], 'Wo', 'isoWeek');
|
|
addUnitAlias2('week', 'w');
|
|
addUnitAlias2('isoWeek', 'W');
|
|
addUnitPriority2('week', 5);
|
|
addUnitPriority2('isoWeek', 5);
|
|
addRegexToken2('w', regexp6);
|
|
addRegexToken2('ww', regexp6, regexp2);
|
|
addRegexToken2('W', regexp6);
|
|
addRegexToken2('WW', regexp6, regexp2);
|
|
closure15(['w', 'ww', 'W', 'WW'], function(a0, a1, a2, a3) {
|
|
a1[a3.substr(0, 1)] = toInt(a0);
|
|
});
|
|
addFormatToken2('d', 0, 'do', 'day');
|
|
addFormatToken2('dd', 0, 0, function(a0) {
|
|
return this.localeData().weekdaysMin(this, a0);
|
|
});
|
|
addFormatToken2('ddd', 0, 0, function(a0) {
|
|
return this.localeData().weekdaysShort(this, a0);
|
|
});
|
|
addFormatToken2('dddd', 0, 0, function(a0) {
|
|
return this.localeData().weekdays(this, a0);
|
|
});
|
|
addFormatToken2('e', 0, 0, 'weekday');
|
|
addFormatToken2('E', 0, 0, 'isoWeekday');
|
|
addUnitAlias2('day', 'd');
|
|
addUnitAlias2('weekday', 'e');
|
|
addUnitAlias2('isoWeekday', 'E');
|
|
addUnitPriority2('day', 11);
|
|
addUnitPriority2('weekday', 11);
|
|
addUnitPriority2('isoWeekday', 11);
|
|
addRegexToken2('d', regexp6);
|
|
addRegexToken2('e', regexp6);
|
|
addRegexToken2('E', regexp6);
|
|
addRegexToken2('dd', function(a0, a1) {
|
|
return a1.weekdaysMinRegex(a0);
|
|
});
|
|
addRegexToken2('ddd', function(a0, a1) {
|
|
return a1.weekdaysShortRegex(a0);
|
|
});
|
|
addRegexToken2('dddd', function(a0, a1) {
|
|
return a1.weekdaysRegex(a0);
|
|
});
|
|
closure15(['dd', 'ddd', 'dddd'], _fun28261);
|
|
closure15(['d', 'e', 'E'], _fun28262);
|
|
let value4 = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
|
|
const value5 = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
|
|
const value6 = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
|
|
addFormatToken2('H', ['HH', 2], 0, 'hour');
|
|
addFormatToken2('h', ['hh', 2], 0, closure18);
|
|
addFormatToken2('k', ['kk', 2], 0, function() {
|
|
return this.hours() || 24;
|
|
});
|
|
addFormatToken2('hmm', 0, 0, _fun28264);
|
|
addFormatToken2('hmmss', 0, 0, _fun28265);
|
|
addFormatToken2('Hmm', 0, 0, function() {
|
|
return String(this.hours()) + zeroFill(this.minutes(), 2);
|
|
});
|
|
addFormatToken2('Hmmss', 0, 0, function() {
|
|
var value = String(this.hours());
|
|
var zeroFillBinding = zeroFill;
|
|
value += zeroFillBinding(this.minutes(), 2);
|
|
return value + zeroFillBinding(this.seconds(), 2);
|
|
});
|
|
closure19('a', true);
|
|
closure19('A', false);
|
|
addUnitAlias2('hour', 'h');
|
|
addUnitPriority2('hour', 13);
|
|
addRegexToken2('a', closure20);
|
|
addRegexToken2('A', closure20);
|
|
addRegexToken2('H', regexp6);
|
|
addRegexToken2('h', regexp6);
|
|
addRegexToken2('k', regexp6);
|
|
addRegexToken2('HH', regexp6, regexp2);
|
|
addRegexToken2('hh', regexp6, regexp2);
|
|
addRegexToken2('kk', regexp6, regexp2);
|
|
addRegexToken2('hmm', regexp7);
|
|
addRegexToken2('hmmss', regexp8);
|
|
addRegexToken2('Hmm', regexp7);
|
|
addRegexToken2('Hmmss', regexp8);
|
|
addParseToken2(['H', 'HH'], 3);
|
|
addParseToken2(['k', 'kk'], _fun28268);
|
|
addParseToken2(['a', 'A'], function(a0, a1, a2) {
|
|
a2._isPm = a2._locale.isPM(a0);
|
|
a2._meridiem = a0;
|
|
});
|
|
addParseToken2(['h', 'hh'], _fun28270);
|
|
addParseToken2('hmm', _fun28271);
|
|
addParseToken2('hmmss', _fun28272);
|
|
addParseToken2('Hmm', _fun28273);
|
|
addParseToken2('Hmmss', _fun28274);
|
|
const value7 = closure16('Hours', true);
|
|
object = {calendar: {'sameDay': '[Today at] LT', 'nextDay': '[Tomorrow at] LT', 'nextWeek': 'dddd [at] LT',
|
|
'lastDay': '[Yesterday at] LT', 'lastWeek': '[Last] dddd [at] LT', 'sameElse': 'L'},
|
|
longDateFormat: {'LTS': 'h:mm:ss A', 'LT': 'h:mm A', 'L': 'MM/DD/YYYY', 'LL': 'MMMM D, YYYY',
|
|
'LLL': 'MMMM D, YYYY h:mm A', 'LLLL': 'dddd, MMMM D, YYYY h:mm A'}, invalidDate: 'Invalid date', ordinal: '%d',
|
|
dayOfMonthOrdinalParse: RegExp('\\d{1,2}', ''), relativeTime: {'future': 'in %s', 'past': '%s ago',
|
|
's': 'a few seconds', 'ss': '%d seconds', 'm': 'a minute', 'mm': '%d minutes', 'h': 'an hour', 'hh': '%d hours',
|
|
'd': 'a day', 'dd': '%d days', 'M': 'a month', 'MM': '%d months', 'y': 'a year', 'yy': '%d years'},
|
|
months: value2, monthsShort: value3, week: {'dow': 0, 'doy': 6}, weekdays: value4, weekdaysMin: value6,
|
|
weekdaysShort: value5, meridiemParse: RegExp('[ap]\\.?m?\\.?', 'i')};
|
|
const env0_37 = {};
|
|
const env0_38 = {};
|
|
const env0_39 = RegExp('^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$',
|
|
'');
|
|
const env0_40 = RegExp('^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$',
|
|
'');
|
|
const env0_41 = RegExp('Z|[+-]\\d\\d(?::?\\d\\d)?', '');
|
|
object = ['YYYYYY-MM-DD'];
|
|
object[1] = RegExp('[+-]\\d{6}-\\d\\d-\\d\\d', '');
|
|
const items3 = [object];
|
|
object = ['YYYY-MM-DD'];
|
|
object[1] = RegExp('\\d{4}-\\d\\d-\\d\\d', '');
|
|
items3[1] = object;
|
|
object = ['GGGG-[W]WW-E'];
|
|
object[1] = RegExp('\\d{4}-W\\d\\d-\\d', '');
|
|
items3[2] = object;
|
|
object = ['GGGG-[W]WW'];
|
|
object[1] = RegExp('\\d{4}-W\\d\\d', '');
|
|
object[2] = false;
|
|
items3[3] = object;
|
|
object = ['YYYY-DDD'];
|
|
object[1] = RegExp('\\d{4}-\\d{3}', '');
|
|
items3[4] = object;
|
|
object = ['YYYY-MM'];
|
|
object[1] = RegExp('\\d{4}-\\d\\d', '');
|
|
object[2] = false;
|
|
items3[5] = object;
|
|
object = ['YYYYYYMMDD'];
|
|
object[1] = RegExp('[+-]\\d{10}', '');
|
|
items3[6] = object;
|
|
object = ['YYYYMMDD'];
|
|
object[1] = RegExp('\\d{8}', '');
|
|
items3[7] = object;
|
|
object = ['GGGG[W]WWE'];
|
|
object[1] = RegExp('\\d{4}W\\d{3}', '');
|
|
items3[8] = object;
|
|
object = ['GGGG[W]WW'];
|
|
object[1] = RegExp('\\d{4}W\\d{2}', '');
|
|
object[2] = false;
|
|
items3[9] = object;
|
|
object = ['YYYYDDD'];
|
|
object[1] = RegExp('\\d{7}', '');
|
|
items3[10] = object;
|
|
object = ['HH:mm:ss.SSSS'];
|
|
object[1] = RegExp('\\d\\d:\\d\\d:\\d\\d\\.\\d+', '');
|
|
const items2 = [object];
|
|
object = ['HH:mm:ss,SSSS'];
|
|
object[1] = RegExp('\\d\\d:\\d\\d:\\d\\d,\\d+', '');
|
|
items2[1] = object;
|
|
object = ['HH:mm:ss'];
|
|
object[1] = RegExp('\\d\\d:\\d\\d:\\d\\d', '');
|
|
items2[2] = object;
|
|
object = ['HH:mm'];
|
|
object[1] = RegExp('\\d\\d:\\d\\d', '');
|
|
items2[3] = object;
|
|
object = ['HHmmss.SSSS'];
|
|
object[1] = RegExp('\\d\\d\\d\\d\\d\\d\\.\\d+', '');
|
|
items2[4] = object;
|
|
object = ['HHmmss,SSSS'];
|
|
object[1] = RegExp('\\d\\d\\d\\d\\d\\d,\\d+', '');
|
|
items2[5] = object;
|
|
object = ['HHmmss'];
|
|
object[1] = RegExp('\\d\\d\\d\\d\\d\\d', '');
|
|
items2[6] = object;
|
|
object = ['HHmm'];
|
|
object[1] = RegExp('\\d\\d\\d\\d', '');
|
|
items2[7] = object;
|
|
object = ['HH'];
|
|
object[1] = RegExp('\\d\\d', '');
|
|
items2[8] = object;
|
|
const env0_44 = RegExp('^\\/?Date\\((\\-?\\d+)', 'i');
|
|
const env0_45 = RegExp('^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$',
|
|
'');
|
|
const env0_46 = {'UT': 0, 'GMT': 0, 'EDT': -240, 'EST': -300, 'CDT': -300, 'CST': -360, 'MDT': -360, 'MST': -420,
|
|
'PDT': -420, 'PST': -480};
|
|
closure.createFromInputFallback = closure7('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
|
|
function(a0) {
|
|
var Date = global.Date;
|
|
value = a0._i + (a0._useUTC ? ' UTC' : '');
|
|
value = new Date(value);
|
|
a0._d = value;
|
|
});
|
|
closure.ISO_8601 = function() {
|
|
};
|
|
closure.RFC_2822 = function() {
|
|
};
|
|
const value8 = closure7('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
|
|
function() {
|
|
var value = this;
|
|
var value3 = createLocal_2.apply(null, arguments);
|
|
return value.isValid() && value3.isValid() ? value3 < value ? value : value3 : invalid_28116();
|
|
});
|
|
const value9 = closure7('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
|
|
function() {
|
|
var value = this;
|
|
var value3 = createLocal_2.apply(null, arguments);
|
|
return value.isValid() && value3.isValid() ? value3 > value ? value : value3 : invalid_28116();
|
|
});
|
|
const env0_47 = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
|
|
closure27('Z', ':');
|
|
closure27('ZZ', '');
|
|
addRegexToken2('Z', regexp14);
|
|
addRegexToken2('ZZ', regexp14);
|
|
addParseToken2(['Z', 'ZZ'], _fun28280);
|
|
const env0_48 = RegExp('([\\+\\-]|\\d\\d)', 'gi');
|
|
closure.updateOffset = function() {
|
|
};
|
|
const env0_49 = RegExp('^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$', '');
|
|
const env0_50 = RegExp('^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$',
|
|
'');
|
|
duration2.fn = Duration2.prototype;
|
|
duration2.invalid = function() {
|
|
return duration(global.NaN);
|
|
};
|
|
const value10 = closure30(1, 'add');
|
|
const value11 = closure30(-1, 'subtract');
|
|
closure.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
|
|
closure.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
|
|
const value12 = closure7('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
|
|
function(a0) {
|
|
return a0 === undefined ? this.localeData() : this.locale(a0);
|
|
});
|
|
addFormatToken2(0, ['gg', 2], 0, function() {
|
|
return this.weekYear() % 100;
|
|
});
|
|
addFormatToken2(0, ['GG', 2], 0, function() {
|
|
return this.isoWeekYear() % 100;
|
|
});
|
|
closure33('gggg', 'weekYear');
|
|
closure33('ggggg', 'weekYear');
|
|
closure33('GGGG', 'isoWeekYear');
|
|
closure33('GGGGG', 'isoWeekYear');
|
|
addUnitAlias2('weekYear', 'gg');
|
|
addUnitAlias2('isoWeekYear', 'GG');
|
|
addUnitPriority2('weekYear', 1);
|
|
addUnitPriority2('isoWeekYear', 1);
|
|
addRegexToken2('G', regexp13);
|
|
addRegexToken2('g', regexp13);
|
|
addRegexToken2('GG', regexp6, regexp2);
|
|
addRegexToken2('gg', regexp6, regexp2);
|
|
addRegexToken2('GGGG', regexp10, regexp4);
|
|
addRegexToken2('gggg', regexp10, regexp4);
|
|
addRegexToken2('GGGGG', regexp11, regexp5);
|
|
addRegexToken2('ggggg', regexp11, regexp5);
|
|
closure15(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function(a0, a1, a2, a3) {
|
|
a1[a3.substr(0, 2)] = toInt(a0);
|
|
});
|
|
closure15(['gg', 'GG'], _fun28287);
|
|
addFormatToken2('Q', 0, 'Qo', 'quarter');
|
|
addUnitAlias2('quarter', 'Q');
|
|
addUnitPriority2('quarter', 7);
|
|
addRegexToken2('Q', regexp);
|
|
addParseToken2('Q', _fun28288);
|
|
addFormatToken2('D', ['DD', 2], 'Do', 'date');
|
|
addUnitAlias2('date', 'D');
|
|
addUnitPriority2('date', 9);
|
|
addRegexToken2('D', regexp6);
|
|
addRegexToken2('DD', regexp6, regexp2);
|
|
addRegexToken2('Do', function(a0, a1) {
|
|
return a0 ? a1._dayOfMonthOrdinalParse || a1._ordinalParse : a1._dayOfMonthOrdinalParseLenient;
|
|
});
|
|
addParseToken2(['D', 'DD'], 2);
|
|
addParseToken2('Do', _fun28290);
|
|
const value13 = closure16('Date', true);
|
|
addFormatToken2('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
|
|
addUnitAlias2('dayOfYear', 'DDD');
|
|
addUnitPriority2('dayOfYear', 4);
|
|
addRegexToken2('DDD', regexp9);
|
|
addRegexToken2('DDDD', regexp3);
|
|
addParseToken2(['DDD', 'DDDD'], _fun28291);
|
|
addFormatToken2('m', ['mm', 2], 0, 'minute');
|
|
addUnitAlias2('minute', 'm');
|
|
addUnitPriority2('minute', 14);
|
|
addRegexToken2('m', regexp6);
|
|
addRegexToken2('mm', regexp6, regexp2);
|
|
addParseToken2(['m', 'mm'], 4);
|
|
const value14 = closure16('Minutes', false);
|
|
addFormatToken2('s', ['ss', 2], 0, 'second');
|
|
addUnitAlias2('second', 's');
|
|
addUnitPriority2('second', 15);
|
|
addRegexToken2('s', regexp6);
|
|
addRegexToken2('ss', regexp6, regexp2);
|
|
addParseToken2(['s', 'ss'], 5);
|
|
const value15 = closure16('Seconds', false);
|
|
const value16 = 'S';
|
|
addFormatToken2(value16, 0, 0, function() {
|
|
return ~~(this.millisecond() / 100);
|
|
});
|
|
addFormatToken2(0, ['SS', 2], 0, function() {
|
|
return ~~(this.millisecond() / 10);
|
|
});
|
|
addFormatToken2(0, ['SSS', 3], 0, 'millisecond');
|
|
addFormatToken2(0, ['SSSS', 4], 0, function() {
|
|
return 10 * this.millisecond();
|
|
});
|
|
addFormatToken2(0, ['SSSSS', 5], 0, function() {
|
|
return 100 * this.millisecond();
|
|
});
|
|
addFormatToken2(0, ['SSSSSS', 6], 0, function() {
|
|
return 1000 * this.millisecond();
|
|
});
|
|
addFormatToken2(0, ['SSSSSSS', 7], 0, function() {
|
|
return 10000 * this.millisecond();
|
|
});
|
|
addFormatToken2(0, ['SSSSSSSS', 8], 0, function() {
|
|
return 100000 * this.millisecond();
|
|
});
|
|
addFormatToken2(0, ['SSSSSSSSS', 9], 0, function() {
|
|
return 1000000 * this.millisecond();
|
|
});
|
|
addUnitAlias2('millisecond', 'ms');
|
|
addUnitPriority2('millisecond', 16);
|
|
addRegexToken2(value16, regexp9, regexp);
|
|
addRegexToken2('SS', regexp9, regexp2);
|
|
addRegexToken2('SSS', regexp9, regexp3);
|
|
const value17 = 'SSSS';
|
|
let length = value17.length;
|
|
if (length <= 9) {
|
|
for (r53 = value17; true; r53 = value18) {
|
|
addRegexToken2(r53, regexp12);
|
|
value18 = r53 + value16;
|
|
length = value18.length;
|
|
if (!(length <= 9)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
length = value16.length;
|
|
if (length <= 9) {
|
|
for (r53 = value16; true; r53 = value19) {
|
|
addParseToken2(r53, parseMs2);
|
|
value19 = r53 + value16;
|
|
length = value19.length;
|
|
if (!(length <= 9)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const value20 = closure16('Milliseconds', false);
|
|
addFormatToken2('z', 0, 0, 'zoneAbbr');
|
|
addFormatToken2('zz', 0, 0, 'zoneName');
|
|
prototype = Moment2.prototype;
|
|
prototype.add = value10;
|
|
prototype.calendar = calendar;
|
|
prototype.clone = clone_28301;
|
|
prototype.diff = diff_28302;
|
|
prototype.endOf = function(a0) {
|
|
var r4;
|
|
var r0;
|
|
var value = this;
|
|
var value3 = normalizeUnits(a0);
|
|
if (value3 === undefined) {
|
|
r0 = value;
|
|
} else if (value3 === 'millisecond') {
|
|
r0 = value;
|
|
} else {
|
|
r4 = value3 !== 'date' ? value3 : 'day';
|
|
value = value.startOf(r4);
|
|
value = value.add(1, r4 === 'isoWeek' ? 'week' : r4);
|
|
value = value.subtract(1, 'ms');
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype.format = format_28304;
|
|
prototype.from = from_28305;
|
|
prototype.fromNow = fromNow;
|
|
prototype.to = to;
|
|
prototype.toNow = toNow;
|
|
prototype.get = function(a0) {
|
|
var r0;
|
|
var value = this;
|
|
var t_28102IsFunctionBinding = t_28102IsFunction;
|
|
var value3 = normalizeUnits(a0);
|
|
if (t_28102IsFunctionBinding(value[value3])) {
|
|
value = value[value3]();
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype.invalidAt = function() {
|
|
return getParsingFlags(this).overflow;
|
|
};
|
|
prototype.isAfter = isAfter_28311;
|
|
prototype.isBefore = isBefore_28312;
|
|
prototype.isBetween = function(a0, a1, a2, a3) {
|
|
var r2;
|
|
r2 = a3 || '()';
|
|
return (r2[0] === '(' ? this.isAfter(a0, a2) : !this.isBefore(a0, a2)) && (r2[1] === ')' ? this.isBefore(a1,
|
|
a2) : !this.isAfter(a1, a2));
|
|
};
|
|
prototype.isSame = isSame;
|
|
prototype.isSameOrAfter = function(a0, a1) {
|
|
return this.isSame(a0, a1) || this.isAfter(a0, a1);
|
|
};
|
|
prototype.isSameOrBefore = function(a0, a1) {
|
|
return this.isSame(a0, a1) || this.isBefore(a0, a1);
|
|
};
|
|
prototype.isValid = function() {
|
|
return t_28102IsValid(this);
|
|
};
|
|
prototype.lang = value12;
|
|
prototype.locale = locale2;
|
|
prototype.localeData = closure32;
|
|
prototype.max = value9;
|
|
prototype.min = value8;
|
|
prototype.parsingFlags = function() {
|
|
var t_28102ExtendBinding = t_28102Extend;
|
|
var object = {};
|
|
t_28102ExtendBinding(object, getParsingFlags(this));
|
|
return object;
|
|
};
|
|
prototype.set = set_28319;
|
|
prototype.startOf = startOf;
|
|
prototype.subtract = value11;
|
|
prototype.toArray = function() {
|
|
return [this.year(), this.month(), this.date(), this.hour(), this.minute(), this.second(), this.millisecond()];
|
|
};
|
|
prototype.toObject = function() {
|
|
return {years: this.year(), months: this.month(), date: this.date(), hours: this.hours(),
|
|
minutes: this.minutes(),
|
|
seconds: this.seconds(), milliseconds: this.milliseconds()};
|
|
};
|
|
prototype.toDate = function() {
|
|
var Date = global.Date;
|
|
var value = this.valueOf();
|
|
var value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
value = new Date(value);
|
|
return value instanceof Object ? value : value2;
|
|
};
|
|
prototype.toISOString = toISOString;
|
|
prototype.inspect = inspect_28327;
|
|
prototype.toJSON = function() {
|
|
return this.isValid() ? this.toISOString() : null;
|
|
};
|
|
prototype.toString = function() {
|
|
var value = this.clone();
|
|
value = value.locale('en');
|
|
return value.format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
|
|
};
|
|
prototype.unix = function() {
|
|
var Math = global.Math;
|
|
return Math.floor(this.valueOf() / 1000);
|
|
};
|
|
prototype.valueOf = function() {
|
|
return this._d.valueOf() - 60000 * (this._offset || 0);
|
|
};
|
|
prototype.creationData = function() {
|
|
return {input: this._i, format: this._f, locale: this._locale, isUTC: this._isUTC, strict: this._strict};
|
|
};
|
|
prototype.year = value;
|
|
prototype.isLeapYear = isLeapYear_28333;
|
|
prototype.weekYear = weekYear;
|
|
prototype.isoWeekYear = isoWeekYear;
|
|
const closure42 = function(a0) {
|
|
var r0;
|
|
var value;
|
|
var Math;
|
|
if (a0 == null) {
|
|
Math = global.Math;
|
|
value = this.month();
|
|
value = Math.ceil((value + 1) / 3);
|
|
r0 = value;
|
|
} else {
|
|
value = a0 - 1;
|
|
value = this.month(3 * value + this.month() % 3);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype.quarters = closure42;
|
|
prototype.quarter = closure42;
|
|
prototype.month = month2;
|
|
prototype.daysInMonth = daysInMonth;
|
|
const closure43 = function(a0) {
|
|
var r0;
|
|
var value = this.localeData();
|
|
value = value.week(this);
|
|
if (a0 == null) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.add(7 * (a0 - value), 'd');
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype.weeks = closure43;
|
|
prototype.week = closure43;
|
|
const isoWeeks2 = isoWeeks;
|
|
prototype.isoWeeks = isoWeeks2;
|
|
prototype.isoWeek = isoWeeks2;
|
|
prototype.weeksInYear = weeksInYear;
|
|
prototype.isoWeeksInYear = isoWeeksInYear;
|
|
prototype.date = value13;
|
|
const days2 = days;
|
|
prototype.days = days2;
|
|
prototype.day = days2;
|
|
prototype.weekday = function(a0) {
|
|
var r0;
|
|
var value4;
|
|
var value = this;
|
|
if (value.isValid()) {
|
|
value4 = (value.day() + 7 - value.localeData()._week.dow) % 7;
|
|
if (a0 == null) {
|
|
r0 = value4;
|
|
} else {
|
|
value = value.add(a0 - value4, 'd');
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = a0 != null ? value : global.NaN;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype.isoWeekday = isoWeekday;
|
|
prototype.dayOfYear = function(a0) {
|
|
var r0;
|
|
var Math = global.Math;
|
|
var value = this.clone();
|
|
value = value.startOf('day');
|
|
value -= this.clone().startOf('year');
|
|
value = Math.round(value / 86400000);
|
|
value += 1;
|
|
if (a0 == null) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.add(a0 - value, 'd');
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype.hours = value7;
|
|
prototype.hour = value7;
|
|
prototype.minutes = value14;
|
|
prototype.minute = value14;
|
|
prototype.seconds = value15;
|
|
prototype.second = value15;
|
|
prototype.milliseconds = value20;
|
|
prototype.millisecond = value20;
|
|
prototype.utcOffset = utcOffset;
|
|
prototype.utc = function(a0) {
|
|
return this.utcOffset(0, a0);
|
|
};
|
|
prototype.local = local;
|
|
prototype.parseZone = parseZone;
|
|
prototype.hasAlignedHourOffset = function(a0) {
|
|
var r0;
|
|
var value = this.isValid();
|
|
if (value) {
|
|
value = 0;
|
|
value = (this.utcOffset() - (a0 ? createLocal_2(a0).utcOffset() : value)) % 60 === value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = !!value;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype.isDST = function() {
|
|
var r0;
|
|
var value = this.utcOffset();
|
|
value = value > this.clone().month(0).utcOffset();
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.utcOffset();
|
|
value = value > this.clone().month(5).utcOffset();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype.isLocal = function() {
|
|
var value = this.isValid();
|
|
return value ? !this._isUTC : !!value;
|
|
};
|
|
prototype.isUtcOffset = function() {
|
|
var isValid = this.isValid();
|
|
return isValid ? this._isUTC : !!isValid;
|
|
};
|
|
prototype.isUtc = closure28;
|
|
prototype.isUTC = closure28;
|
|
prototype.zoneAbbr = function() {
|
|
return this._isUTC ? 'UTC' : '';
|
|
};
|
|
prototype.zoneName = function() {
|
|
return this._isUTC ? 'Coordinated Universal Time' : '';
|
|
};
|
|
prototype.dates = closure7('dates accessor is deprecated. Use date instead.', value13);
|
|
prototype.months = closure7('months accessor is deprecated. Use month instead', month2);
|
|
prototype.years = closure7('years accessor is deprecated. Use year instead', value);
|
|
prototype.zone = closure7('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
|
|
function(a0, a1) {
|
|
var r0;
|
|
var value = a0;
|
|
var value2 = this;
|
|
if (value != null) {
|
|
value2.utcOffset(typeof value === 'string' ? value : -value, a1);
|
|
r0 = value2;
|
|
} else {
|
|
r0 = -value2.utcOffset();
|
|
}
|
|
return r0;
|
|
});
|
|
prototype.isDSTShifted = closure7('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
|
|
isDaylightSavingTimeShifted);
|
|
const prototype2 = closure8.prototype;
|
|
prototype2.calendar = calendar_28358;
|
|
prototype2.longDateFormat = function(a0) {
|
|
var r0;
|
|
var property = this._longDateFormat[a0];
|
|
var property2 = this._longDateFormat[a0.toUpperCase()];
|
|
if (property) {
|
|
r0 = property;
|
|
} else if (property2) {
|
|
property = this._longDateFormat;
|
|
property[a0] = property2.replace(RegExp('MMMM|MM|DD|dddd', 'g'), _fun28360);
|
|
property = this._longDateFormat[a0];
|
|
r0 = property;
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype2.invalidDate = function() {
|
|
return this._invalidDate;
|
|
};
|
|
prototype2.ordinal = function(a0) {
|
|
return this._ordinal.replace('%d', a0);
|
|
};
|
|
prototype2.preparse = closure35;
|
|
prototype2.postformat = closure35;
|
|
prototype2.relativeTime = relativeTime;
|
|
prototype2.pastFuture = pastFuture;
|
|
prototype2.set = set_28365;
|
|
prototype2.months = months;
|
|
prototype2.monthsShort = monthsShort;
|
|
prototype2.monthsParse = monthsParse;
|
|
prototype2.monthsRegex = monthsRegex;
|
|
prototype2.monthsShortRegex = monthsShortRegex;
|
|
prototype2.week = function(a0) {
|
|
return weekOfYear(a0, this._week.dow, this._week.doy).week;
|
|
};
|
|
prototype2.firstDayOfYear = function() {
|
|
return this._week.doy;
|
|
};
|
|
prototype2.firstDayOfWeek = function() {
|
|
return this._week.dow;
|
|
};
|
|
prototype2.weekdays = weekdays;
|
|
prototype2.weekdaysMin = function(a0) {
|
|
var r0;
|
|
var property = this._weekdaysMin;
|
|
if (a0) {
|
|
property = property[a0.day()];
|
|
r0 = property;
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype2.weekdaysShort = function(a0) {
|
|
var r0;
|
|
var property = this._weekdaysShort;
|
|
if (a0) {
|
|
property = property[a0.day()];
|
|
r0 = property;
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
};
|
|
prototype2.weekdaysParse = weekdaysParse;
|
|
prototype2.weekdaysRegex = weekdaysRegex;
|
|
prototype2.weekdaysShortRegex = weekdaysShortRegex;
|
|
prototype2.weekdaysMinRegex = weekdaysMinRegex;
|
|
prototype2.isPM = function(a0) {
|
|
var value = String(a0);
|
|
value = value.toLowerCase();
|
|
value = value.charAt(0);
|
|
return value === 'p';
|
|
};
|
|
prototype2.meridiem = function(a0, a1, a2) {
|
|
return a0 > 11 ? a2 ? 'pm' : 'PM' : a2 ? 'am' : 'AM';
|
|
};
|
|
locale_281822('en', {dayOfMonthOrdinalParse: RegExp('\\d{1,2}(th|st|nd|rd)', ''), ordinal: function(a0) {
|
|
var value = a0 % 10;
|
|
var value3 = toInt(a0 % 100 / 10);
|
|
var value4 = 'th';
|
|
return a0 + (value3 === 1 ? value4 : value === 1 ? 'st' : value === 2 ? 'nd' : value !== 3 ? value4 : 'rd');
|
|
}});
|
|
closure.lang = closure7('moment.lang is deprecated. Use moment.locale instead.', locale_281822);
|
|
closure.langData = closure7('moment.langData is deprecated. Use moment.localeData instead.', localeData_281852);
|
|
let Math = global.Math;
|
|
let abs = Math.abs;
|
|
value = closure36('ms');
|
|
const value21 = closure36('s');
|
|
const value22 = closure36('m');
|
|
const value23 = closure36('h');
|
|
const value24 = closure36('d');
|
|
const value25 = closure36('w');
|
|
const value26 = closure36('M');
|
|
const value27 = closure36('y');
|
|
const value28 = closure37('milliseconds');
|
|
const value29 = closure37('seconds');
|
|
const value30 = closure37('minutes');
|
|
const value31 = closure37('hours');
|
|
const value32 = closure37('days');
|
|
const value33 = closure37('months');
|
|
const value34 = closure37('years');
|
|
Math = global.Math;
|
|
const env0_52 = Math.round;
|
|
const env0_53 = {'ss': 44, 's': 45, 'm': 45, 'h': 22, 'd': 26, 'M': 11};
|
|
Math = global.Math;
|
|
abs = Math.abs;
|
|
const prototype3 = Duration2.prototype;
|
|
prototype3.isValid = function() {
|
|
return this._isValid;
|
|
};
|
|
prototype3.abs = abs_28385;
|
|
prototype3.add = function(a0, a1) {
|
|
return addSubtract$1(this, a0, a1, 1);
|
|
};
|
|
prototype3.subtract = function(a0, a1) {
|
|
return addSubtract$1(this, a0, a1, -1);
|
|
};
|
|
prototype3.as = as;
|
|
prototype3.asMilliseconds = value;
|
|
prototype3.asSeconds = value21;
|
|
prototype3.asMinutes = value22;
|
|
prototype3.asHours = value23;
|
|
prototype3.asDays = value24;
|
|
prototype3.asWeeks = value25;
|
|
prototype3.asMonths = value26;
|
|
prototype3.asYears = value27;
|
|
prototype3.valueOf = valueOf_28389;
|
|
prototype3._bubble = _bubble;
|
|
prototype3.clone = function() {
|
|
return duration(this);
|
|
};
|
|
prototype3.get = get_28392;
|
|
prototype3.milliseconds = value28;
|
|
prototype3.seconds = value29;
|
|
prototype3.minutes = value30;
|
|
prototype3.hours = value31;
|
|
prototype3.days = value32;
|
|
prototype3.weeks = weeks;
|
|
prototype3.months = value33;
|
|
prototype3.years = value34;
|
|
prototype3.humanize = humanize;
|
|
prototype3.toISOString = toISOString_282372;
|
|
prototype3.toString = toISOString_282372;
|
|
prototype3.toJSON = toISOString_282372;
|
|
prototype3.locale = locale2;
|
|
prototype3.localeData = closure32;
|
|
prototype3.toIsoString = closure7('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
|
|
toISOString_282372);
|
|
prototype3.lang = value12;
|
|
addFormatToken2('X', 0, 0, 'unix');
|
|
addFormatToken2('x', 0, 0, 'valueOf');
|
|
addRegexToken2('x', regexp13);
|
|
addRegexToken2('X', RegExp('[+-]?\\d+(\\.\\d{1,3})?', ''));
|
|
addParseToken2('X', function(a0, a1, a2) {
|
|
var Date = global.Date;
|
|
var value = (0, global.parseFloat)(a0, 10);
|
|
value = 1000 * value;
|
|
value = new Date(value);
|
|
a2._d = value;
|
|
});
|
|
addParseToken2('x', _fun28396);
|
|
closure.version = '2.22.2';
|
|
closure.fn = prototype;
|
|
closure.min = min_28397;
|
|
closure.max = max_28398;
|
|
closure.now = function() {
|
|
var r0;
|
|
var value2;
|
|
var now = global.Date.now;
|
|
var Date = global.Date;
|
|
if (now) {
|
|
r0 = Date.now();
|
|
} else {
|
|
value2 = new Date();
|
|
value2 = Number(value2);
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
};
|
|
closure.utc = utc_281122;
|
|
closure.unix = function(a0) {
|
|
return createLocal_2(1000 * a0);
|
|
};
|
|
closure.months = function(a0, a1) {
|
|
return listMonthsImpl(a0, a1, 'months');
|
|
};
|
|
closure.isDate = closure2;
|
|
closure.locale = locale_281822;
|
|
closure.invalid = invalid_281162;
|
|
closure.duration = duration2;
|
|
closure.isMoment = isMoment2;
|
|
closure.weekdays = function(a0, a1, a2) {
|
|
return listWeekdaysImpl(a0, a1, a2, 'weekdays');
|
|
};
|
|
closure.parseZone = parseZone_28403;
|
|
closure.localeData = localeData_281852;
|
|
closure.isDuration = closure26;
|
|
closure.monthsShort = function(a0, a1) {
|
|
return listMonthsImpl(a0, a1, 'monthsShort');
|
|
};
|
|
closure.weekdaysMin = function(a0, a1, a2) {
|
|
return listWeekdaysImpl(a0, a1, a2, 'weekdaysMin');
|
|
};
|
|
closure.defineLocale = defineLocale2;
|
|
closure.updateLocale = updateLocale;
|
|
closure.locales = locales;
|
|
closure.weekdaysShort = function(a0, a1, a2) {
|
|
return listWeekdaysImpl(a0, a1, a2, 'weekdaysShort');
|
|
};
|
|
closure.normalizeUnits = normalizeUnits2;
|
|
closure.relativeTimeRounding = relativeTimeRounding;
|
|
closure.relativeTimeThreshold = relativeTimeThreshold;
|
|
closure.calendarFormat = calendarFormat;
|
|
closure.prototype = prototype;
|
|
closure.HTML5_FMT = {'DATETIME_LOCAL': 'YYYY-MM-DDTHH:mm', 'DATETIME_LOCAL_SECONDS': 'YYYY-MM-DDTHH:mm:ss',
|
|
'DATETIME_LOCAL_MS': 'YYYY-MM-DDTHH:mm:ss.SSS', 'DATE': 'YYYY-MM-DD', 'TIME': 'HH:mm',
|
|
'TIME_SECONDS': 'HH:mm:ss', 'TIME_MS': 'HH:mm:ss.SSS', 'WEEK': 'YYYY-[W]WW', 'MONTH': 'YYYY-MM'};
|
|
return closure;
|
|
function t_28102Utc(a0, a1, a2, a3) { // fn#28112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:887, owner: t_28102.utc, offset: 0x00f6fd3d, size: 39 bytes, params: 5, frame: 19
|
|
return createLocalOrUTC(a0, a1, a2, a3, true).utc();
|
|
}
|
|
|
|
function t_28102IsValid(a0) { // fn#28114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:1226, owner: t_28102.isValid, offset: 0x00f6fda9, size: 342 bytes, params: 2, frame: 19
|
|
var r7;
|
|
var r3;
|
|
var r0;
|
|
if (a0._isValid == null) {
|
|
var value;
|
|
var parsingFlags = getParsingFlags(a0);
|
|
var binding = env0_1;
|
|
value = binding.call(parsingFlags.parsedDateParts, function(a0) {
|
|
return a0 != null;
|
|
});
|
|
var isNaN = global.isNaN;
|
|
var _d = a0._d;
|
|
var getTime = _d.getTime;
|
|
r7 = !isNaN(Reflect.apply(getTime, _d, [])) && parsingFlags.overflow < 0;
|
|
r7 = r7 && !parsingFlags.empty;
|
|
r7 = r7 && !parsingFlags.invalidMonth;
|
|
r7 = r7 && !parsingFlags.invalidWeekday;
|
|
r7 = r7 && !parsingFlags.weekdayMismatch;
|
|
r7 = r7 && !parsingFlags.nullInput;
|
|
r7 = r7 && !parsingFlags.invalidFormat;
|
|
r7 = r7 && !parsingFlags.userInvalidated;
|
|
r7 = r7 && (parsingFlags.meridiem ? parsingFlags.meridiem && value : !parsingFlags.meridiem);
|
|
if (a0._strict) {
|
|
r3 = r7 && parsingFlags.charsLeftOver === 0;
|
|
r3 = r3 && parsingFlags.unusedTokens.length === 0;
|
|
r3 = r3 && parsingFlags.bigHour === undefined;
|
|
r0 = r3;
|
|
} else {
|
|
r0 = r7;
|
|
}
|
|
var Object = global.Object;
|
|
var isFrozen = Object.isFrozen;
|
|
if (isFrozen == null) {
|
|
a0._isValid = r0;
|
|
return a0._isValid;
|
|
}
|
|
Object = global.Object;
|
|
isFrozen = Object.isFrozen;
|
|
if (Reflect.apply(isFrozen, Object, [a0])) {
|
|
return r0;
|
|
}
|
|
a0._isValid = r0;
|
|
}
|
|
return a0._isValid;
|
|
}
|
|
|
|
function t_28102Invalid(a0) { // fn#28116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:1707, owner: t_28102.invalid, offset: 0x00f6feff, size: 71 bytes, params: 2, frame: 15
|
|
const utc_28112Binding = utc_28112;
|
|
const NaN = global.NaN;
|
|
const value2 = utc_28112Binding(NaN);
|
|
if (a0 != null) {
|
|
t_28102Extend(getParsingFlags(value2), a0);
|
|
} else {
|
|
getParsingFlags(value2).userInvalidated = true;
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function copyConfig(a0, a1) { // fn#28117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:2033, owner: t_28102.copyConfig, offset: 0x00f6ff46, size: 393 bytes, params: 3, frame: 16
|
|
var r2;
|
|
var property;
|
|
var property2;
|
|
var value3;
|
|
if (!t_28102IsUndefined(a1._isAMomentObject)) {
|
|
a0._isAMomentObject = a1._isAMomentObject;
|
|
}
|
|
if (!t_28102IsUndefined(a1._i)) {
|
|
a0._i = a1._i;
|
|
}
|
|
if (!t_28102IsUndefined(a1._f)) {
|
|
a0._f = a1._f;
|
|
}
|
|
if (!t_28102IsUndefined(a1._l)) {
|
|
a0._l = a1._l;
|
|
}
|
|
if (!t_28102IsUndefined(a1._strict)) {
|
|
a0._strict = a1._strict;
|
|
}
|
|
if (!t_28102IsUndefined(a1._tzm)) {
|
|
a0._tzm = a1._tzm;
|
|
}
|
|
if (!t_28102IsUndefined(a1._isUTC)) {
|
|
a0._isUTC = a1._isUTC;
|
|
}
|
|
if (!t_28102IsUndefined(a1._offset)) {
|
|
a0._offset = a1._offset;
|
|
}
|
|
if (!t_28102IsUndefined(a1._pf)) {
|
|
a0._pf = getParsingFlags(a1);
|
|
}
|
|
if (!t_28102IsUndefined(a1._locale)) {
|
|
a0._locale = a1._locale;
|
|
}
|
|
let length = env0_2.length;
|
|
const value2 = 0;
|
|
if (length > value2) {
|
|
length = env0_2.length;
|
|
if (value2 < length) {
|
|
r2 = value2;
|
|
while (true) {
|
|
t_28102IsUndefinedBinding = t_28102IsUndefined;
|
|
property = env0_2[r2];
|
|
property2 = a1[property];
|
|
if (!t_28102IsUndefinedBinding(property2)) {
|
|
a0[property] = property2;
|
|
}
|
|
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = env0_2.length;
|
|
if (value3 < length) {
|
|
r2 = value3;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function Moment(a0) { // fn#28118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:2589, owner: t_28102.Moment, offset: 0x00f700cf, size: 182 bytes, params: 2, frame: 17
|
|
var NaN;
|
|
var value5;
|
|
copyConfig(this, a0);
|
|
let Date = global.Date;
|
|
const r3 = a0._d != null ? a0._d.getTime() : global.NaN;
|
|
const value3 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
let date = new Date();
|
|
this._d = date instanceof Object ? date : value3;
|
|
if (!this.isValid()) {
|
|
Date = global.Date;
|
|
NaN = global.NaN;
|
|
value5 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
this._d = date instanceof Object ? date : value5;
|
|
}
|
|
if (env0_3 === false) {
|
|
hooks.updateOffset(this);
|
|
}
|
|
}
|
|
|
|
function isMoment(a0) { // fn#28119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:2760, owner: t_28102.isMoment, offset: 0x00f70185, size: 41 bytes, params: 2, frame: 5
|
|
return a0 instanceof Moment || a0 != null && a0._isAMomentObject != null;
|
|
}
|
|
|
|
function toInt(a0) { // fn#28121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:2905, owner: t_28102.toInt, offset: 0x00f701e9, size: 51 bytes, params: 2, frame: 13
|
|
var r0;
|
|
let value = Number(a0);
|
|
const value2 = 0;
|
|
if (value2 !== value && global.isFinite(value)) {
|
|
value = absFloor(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function compareArrays(a0, a1, a2) { // fn#28122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:2981, owner: t_28102.compareArrays, offset: 0x00f7021c, size: 171 bytes, params: 4, frame: 24
|
|
var r2;
|
|
var r3;
|
|
var r11;
|
|
var r10;
|
|
var r0;
|
|
var property;
|
|
var value6;
|
|
var value7;
|
|
var toIntBinding;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
const value = a2;
|
|
let Math = global.Math;
|
|
const value2 = Math.min(a0.length, a1.length);
|
|
Math = global.Math;
|
|
const value3 = Math.abs(a0.length - a1.length);
|
|
const value4 = 0;
|
|
if (value4 < value2) {
|
|
r2 = value4;
|
|
r3 = value4;
|
|
while (true) {
|
|
if (value) {
|
|
property = a0[r3];
|
|
value6 = property !== a1[r3];
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value;
|
|
}
|
|
if (r11) {
|
|
continue;
|
|
}
|
|
value7 = !value;
|
|
if (value) {
|
|
r10 = value7;
|
|
continue;
|
|
}
|
|
toIntBinding = toInt;
|
|
value8 = toIntBinding(a0[r3]);
|
|
value9 = value8 !== toIntBinding(a1[r3]);
|
|
r10 = value9;
|
|
r11 = r10;
|
|
if (!r11) {
|
|
r10 = r2;
|
|
continue;
|
|
}
|
|
value10 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
r10 = value10;
|
|
value11 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value11 < value2) {
|
|
r2 = r10;
|
|
r3 = value11;
|
|
continue;
|
|
}
|
|
r0 = r10;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value4;
|
|
}
|
|
return r0 + value3;
|
|
}
|
|
|
|
function t_28102Warn(a0) { // fn#28123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:3161, owner: t_28102.warn, offset: 0x00f702c7, size: 95 bytes, params: 2, frame: 12
|
|
if (hooks.suppressDeprecationWarnings === false && typeof global.console !== 'undefined' && global.console.warn) {
|
|
global.console.warn('Deprecation warning: ' + a0);
|
|
}
|
|
}
|
|
|
|
function t_28102Deprecate(a0, a1) { // fn#28124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:3301, owner: t_28102.deprecate, offset: 0x00f70326, size: 44 bytes, params: 3, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const t_28102ExtendBinding = t_28102Extend;
|
|
const closure = _fun28125;
|
|
t_28102ExtendBinding(closure, a1);
|
|
return closure;
|
|
function _fun28125() { // fn#28125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:3349, offset: 0x00f70352, size: 370 bytes, params: 1, frame: 33
|
|
var r5;
|
|
var r3;
|
|
var r18;
|
|
var r15;
|
|
var r14;
|
|
var items2;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var t_28102WarnBinding;
|
|
var prototype;
|
|
var value12;
|
|
var Error;
|
|
var value13;
|
|
var error;
|
|
let value = environment.__proto__;
|
|
if (hooks.deprecationHandler != null) {
|
|
hooks.deprecationHandler(null, env0_0);
|
|
}
|
|
if (env0_2) {
|
|
items2 = [];
|
|
value4 = 0;
|
|
if (value4 < arguments.length) {
|
|
r5 = value4;
|
|
while (true) {
|
|
if (typeof arguments[r5] === 'object') {
|
|
value6 = '\n[' + r5 + '] ';
|
|
value7 = arguments[value4];
|
|
properties = Object.keys(value7);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties === undefined) {
|
|
r15 = value6;
|
|
continue;
|
|
}
|
|
r3 = value6;
|
|
for (r18 = properties2; true; r18 = propertyName2) {
|
|
propertyName = properties[r18];
|
|
propertyName2 = r18 + 1;
|
|
if (propertyName === undefined) {
|
|
r15 = r3;
|
|
break;
|
|
}
|
|
value8 = propertyName + ': ';
|
|
value9 = r3 + (value8 + arguments[value4][propertyName] + ', ');
|
|
r3 = value9;
|
|
}
|
|
value10 = r15.slice(value4, -2);
|
|
r14 = value10;
|
|
} else {
|
|
value5 = arguments[r5];
|
|
r14 = value5;
|
|
}
|
|
items2.push(r14);
|
|
value11 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value11 < arguments.length) {
|
|
r5 = value11;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
t_28102WarnBinding = t_28102Warn;
|
|
value = env0_0 + '\nArguments: ';
|
|
prototype = global.Array.prototype;
|
|
value12 = prototype.slice.call(items2);
|
|
value += value12.join('');
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
t_28102WarnBinding(value + '\n' + (error instanceof Object ? error : value13).stack);
|
|
}
|
|
return require.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function deprecateSimple(a0, a1) { // fn#28126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:3770, owner: t_28102.deprecateSimple, offset: 0x00f704c4, size: 77 bytes, params: 3, frame: 14
|
|
if (hooks.deprecationHandler != null) {
|
|
hooks.deprecationHandler(a0, a1);
|
|
}
|
|
if (!env0_5[a0]) {
|
|
t_28102Warn(a1);
|
|
env0_5[a0] = true;
|
|
}
|
|
}
|
|
|
|
function mergeConfigs(a0, a1) { // fn#28128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:3995, owner: t_28102.mergeConfigs, offset: 0x00f70547, size: 249 bytes, params: 3, frame: 24
|
|
var r4;
|
|
var r3;
|
|
var r10;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var property;
|
|
var propertyName3;
|
|
var hasOwnProp2;
|
|
var value2;
|
|
var value3;
|
|
var object;
|
|
let t_28102ExtendBinding = t_28102Extend;
|
|
const object2 = {};
|
|
t_28102ExtendBinding(object2, a0);
|
|
let properties = Object.keys(a1);
|
|
const properties2 = 0;
|
|
const properties3 = properties.length;
|
|
if (properties !== undefined) {
|
|
r4 = properties2;
|
|
reducibleLoop1: while (true) {
|
|
propertyName = properties[r4];
|
|
propertyName2 = r4 + 1;
|
|
if (propertyName === undefined) {
|
|
break reducibleLoop1;
|
|
}
|
|
if (hasOwnProp(a1, propertyName)) {
|
|
if (t_28102IsObject(a0[propertyName])) {
|
|
reducibleJoin5: while (true) {
|
|
if (t_28102IsObject(a1[propertyName])) {
|
|
object2[propertyName] = {};
|
|
t_28102ExtendBinding = t_28102Extend;
|
|
property = object2[propertyName];
|
|
t_28102ExtendBinding(property, a0[propertyName]);
|
|
property = object2[propertyName];
|
|
t_28102ExtendBinding(property, a1[propertyName]);
|
|
r4 = propertyName2;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
if (a1[propertyName] != null) {
|
|
object2[propertyName] = a1[propertyName];
|
|
r4 = propertyName2;
|
|
continue reducibleLoop1;
|
|
}
|
|
delete object2[propertyName];
|
|
r4 = propertyName2;
|
|
continue reducibleLoop1;
|
|
}
|
|
r4 = propertyName2;
|
|
continue reducibleLoop1;
|
|
}
|
|
}
|
|
properties = Object.keys(a0);
|
|
const properties4 = 0;
|
|
const properties5 = properties.length;
|
|
if (properties !== undefined) {
|
|
r3 = properties4;
|
|
reducibleLoop10: while (true) {
|
|
propertyName = properties[r3];
|
|
propertyName3 = r3 + 1;
|
|
if (propertyName === undefined) {
|
|
break reducibleLoop10;
|
|
}
|
|
hasOwnProp2 = hasOwnProp(a0, propertyName);
|
|
reducibleJoin13: while (true) {
|
|
if (hasOwnProp2) {
|
|
value2 = !hasOwnProp(a1, propertyName);
|
|
r10 = value2;
|
|
break reducibleJoin13;
|
|
}
|
|
r10 = hasOwnProp2;
|
|
break reducibleJoin13;
|
|
}
|
|
reducibleJoin15: while (true) {
|
|
if (r10) {
|
|
value3 = t_28102IsObject(a0[propertyName]);
|
|
r10 = value3;
|
|
break reducibleJoin15;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
if (r10) {
|
|
t_28102ExtendBinding = t_28102Extend;
|
|
object = {};
|
|
t_28102ExtendBinding(object, object2[propertyName]);
|
|
object2[propertyName] = object;
|
|
r3 = propertyName3;
|
|
continue reducibleLoop10;
|
|
}
|
|
r3 = propertyName3;
|
|
continue reducibleLoop10;
|
|
}
|
|
}
|
|
return object2;
|
|
}
|
|
|
|
function addUnitAlias(a0, a1) { // fn#28130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:4495, owner: t_28102.addUnitAlias, offset: 0x00f7065a, size: 51 bytes, params: 3, frame: 13
|
|
const value = a0.toLowerCase();
|
|
const binding = env0_6;
|
|
const value3 = value + 's';
|
|
env0_6[a1] = a0;
|
|
binding[value3] = a0;
|
|
binding[value] = a0;
|
|
}
|
|
|
|
function normalizeUnits(a0) { // fn#28131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:4565, owner: t_28102.normalizeUnits, offset: 0x00f7068d, size: 53 bytes, params: 2, frame: 12
|
|
return typeof a0 !== 'string' ? undefined : env0_6[a0] || env0_6[a0.toLowerCase()];
|
|
}
|
|
|
|
function addUnitPriority(a0, a1) { // fn#28133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:4776, owner: t_28102.addUnitPriority, offset: 0x00f70716, size: 21 bytes, params: 3, frame: 3
|
|
env0_7[a0] = a1;
|
|
}
|
|
|
|
function addFormatToken(a0, a1, a2, a3) { // fn#28135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:5194, owner: t_28102.addFormatToken, offset: 0x00f707b7, size: 115 bytes, params: 5, frame: 7
|
|
const value = a3;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (a0) {
|
|
env0_11[a0] = typeof value !== 'string' ? value : function() {
|
|
return this[importAll]();
|
|
};
|
|
}
|
|
if (a1) {
|
|
env0_11[a1[0]] = _fun28137;
|
|
}
|
|
if (a2) {
|
|
env0_11[a2] = _fun28138;
|
|
}
|
|
function _fun28137() { // fn#28137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:5317, offset: 0x00f7083e, size: 64 bytes, params: 1, frame: 17
|
|
return zeroFill(env0_3.apply(this, arguments), require[1], require[2]);
|
|
}
|
|
|
|
function _fun28138() { // fn#28138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:5390, offset: 0x00f7087e, size: 53 bytes, params: 1, frame: 17
|
|
const value = this.localeData();
|
|
return value.ordinal(env0_3.apply(this, arguments), env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function formatMoment(a0, a1) { // fn#28139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:5463, owner: t_28102.formatMoment, offset: 0x00f708b3, size: 108 bytes, params: 3, frame: 17
|
|
var r0;
|
|
var value;
|
|
var value3;
|
|
var binding;
|
|
if (a0.isValid()) {
|
|
value3 = expandFormat(a1, a0.localeData());
|
|
binding = env0_10;
|
|
binding[value3] = binding[value3] || makeFormatFunction(value3);
|
|
binding = env0_10;
|
|
r0 = binding[value3](a0);
|
|
} else {
|
|
value = a0.localeData();
|
|
value = value.invalidDate();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function makeFormatFunction(a0) { // fn#28140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:5554, owner: t_28102.formatMoment.makeFormatFunction, offset: 0x00f7091f, size: 194 bytes, params: 2, frame: 20
|
|
var r3;
|
|
var r8;
|
|
var binding;
|
|
var property;
|
|
var value4;
|
|
var replace;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
const env0_0 = a0;
|
|
const value2 = a0.match(env1_8);
|
|
const length = value2.length;
|
|
const value3 = 0;
|
|
if (value3 < length) {
|
|
r3 = value3;
|
|
while (true) {
|
|
binding = env1_11;
|
|
if (binding[value2[r3]]) {
|
|
binding = env1_11;
|
|
value2[r3] = binding[value2[r3]];
|
|
} else {
|
|
property = value2[r3];
|
|
value4 = property.match(RegExp('\\[[\\s\\S]', ''));
|
|
replace = property.replace;
|
|
if (value4) {
|
|
value6 = Reflect.apply(replace, property, [RegExp('^\\[|\\]$', 'g'), '']);
|
|
r8 = value6;
|
|
} else {
|
|
value5 = Reflect.apply(replace, property, [RegExp('\\\\', 'g'), '']);
|
|
r8 = value5;
|
|
}
|
|
value2[r3] = r8;
|
|
}
|
|
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value7 < length) {
|
|
r3 = value7;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return _fun28141;
|
|
function _fun28141(a0) { // fn#28141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:5740, offset: 0x00f709e1, size: 99 bytes, params: 2, frame: 20
|
|
var r2;
|
|
var r5;
|
|
var r1;
|
|
var r0;
|
|
var value5;
|
|
var property;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
const lengthBinding = length;
|
|
const value2 = 0;
|
|
const value3 = '';
|
|
if (value2 < lengthBinding) {
|
|
r2 = value3;
|
|
r5 = value2;
|
|
while (true) {
|
|
value5 = t_28102IsFunction(env0_2[r5]);
|
|
property = env0_2[r5];
|
|
if (value5) {
|
|
value6 = property.call(a0, env0_0);
|
|
r1 = value6;
|
|
} else {
|
|
r1 = property;
|
|
}
|
|
value7 = r2 + r1;
|
|
value8 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value8 < length) {
|
|
r2 = value7;
|
|
r5 = value8;
|
|
continue;
|
|
}
|
|
r0 = value7;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function expandFormat(a0, a1) { // fn#28142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:5871, owner: t_28102.expandFormat, offset: 0x00f70a44, size: 122 bytes, params: 3, frame: 19
|
|
var r2;
|
|
var r4;
|
|
var r0;
|
|
var value5;
|
|
let value = a0;
|
|
const env0_0 = a1;
|
|
const closure = function(a0) {
|
|
var value = a0;
|
|
return require.longDateFormat(value) || value;
|
|
};
|
|
env0_9.lastIndex = 0;
|
|
let binding = env0_9;
|
|
if (binding.test(value)) {
|
|
r2 = value;
|
|
r4 = 5;
|
|
while (true) {
|
|
value = r2.replace(env0_9, closure);
|
|
env0_9.lastIndex = 0;
|
|
value5 = r4 - 1;
|
|
if (!(value5 >= 0)) {
|
|
r0 = value;
|
|
break;
|
|
}
|
|
binding = env0_9;
|
|
if (binding.test(value)) {
|
|
r2 = value;
|
|
r4 = value5;
|
|
continue;
|
|
}
|
|
r0 = value;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function addRegexToken(a0, a1, a2) { // fn#28144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:6451, owner: t_28102.addRegexToken, offset: 0x00f70adb, size: 51 bytes, params: 4, frame: 13
|
|
const value = a1;
|
|
const env0_1 = a2;
|
|
env0_15[a0] = t_28102IsFunction(value) ? value : function(a0, a1) {
|
|
return a0 && importDefault ? importDefault : require;
|
|
};
|
|
}
|
|
|
|
function getParseRegexForToken(a0, a1) { // fn#28146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:6533, owner: t_28102.getParseRegexForToken, offset: 0x00f70b2d, size: 98 bytes, params: 3, frame: 15
|
|
var r0;
|
|
var RegExp;
|
|
var value;
|
|
if (hasOwnProp(env0_15, a0)) {
|
|
r0 = env0_15[a0](a1._strict, a1._locale);
|
|
} else {
|
|
RegExp = global.RegExp;
|
|
value = unescapeFormat(a0);
|
|
r0 = new RegExp();
|
|
}
|
|
return r0;
|
|
function unescapeFormat(a0) { // fn#28147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:6629, owner: t_28102.getParseRegexForToken.unescapeFormat, offset: 0x00f70b8f, size: 70 bytes, params: 2, frame: 14
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
const regexEscapeBinding = regexEscape;
|
|
let replace = a0.replace;
|
|
replace = Reflect.apply(replace, a0, ['\\', '']).replace;
|
|
value = Reflect.apply(replace, value, [RegExp('\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)', 'g'), function(a0,
|
|
a1, a2, a3, a4) {
|
|
var value = a1;
|
|
var value2 = a2;
|
|
var value3 = a3;
|
|
var value4 = a4;
|
|
var r0 = value || value2;
|
|
r0 = !r0 ? value3 : r0;
|
|
r0 = !r0 ? value4 : r0;
|
|
return r0;
|
|
}]);
|
|
return regexEscapeBinding(value);
|
|
}
|
|
|
|
}
|
|
|
|
function addParseToken(a0, a1) { // fn#28150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:6871, owner: t_28102.addParseToken, offset: 0x00f70c19, size: 99 bytes, params: 3, frame: 15
|
|
var r5;
|
|
var r3;
|
|
var r2;
|
|
var addParseTokenFunc2;
|
|
var binding;
|
|
var value4;
|
|
const value = a0;
|
|
const value2 = a1;
|
|
reducibleJoin2: while (true) {
|
|
if (typeof value !== 'string') {
|
|
r5 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
r5 = [value];
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (t_28102IsNumber(value2)) {
|
|
addParseTokenFunc2 = addParseTokenFunc;
|
|
r3 = addParseTokenFunc2;
|
|
break reducibleJoin4;
|
|
}
|
|
r3 = value2;
|
|
break reducibleJoin4;
|
|
}
|
|
let length = r5.length;
|
|
const value3 = 0;
|
|
if (value3 < length) {
|
|
r2 = value3;
|
|
reducibleLoop5: while (true) {
|
|
binding = env0_16;
|
|
binding[r5[r2]] = r3;
|
|
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = r5.length;
|
|
if (value4 < length) {
|
|
r2 = value4;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
function addParseTokenFunc(a0, a1) { // fn#28151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:6957, owner: t_28102.addParseToken.func, offset: 0x00f70c7c, size: 33 bytes, params: 3, frame: 12
|
|
const value = environment.__proto__;
|
|
a1[require] = toInt(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function addWeekParseToken(a0, a1) { // fn#28152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:7021, owner: t_28102.addWeekParseToken, offset: 0x00f70c9d, size: 34 bytes, params: 3, frame: 13
|
|
const env0_0 = a1;
|
|
addParseToken(a0, function(a0, a1, a2, a3) {
|
|
a2._w = a2._w || ({});
|
|
require(a0, a2._w, a2, a3);
|
|
});
|
|
function _fun28153(a0, a1, a2, a3) { // fn#28153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:7070, offset: 0x00f70cbf, size: 52 bytes, params: 5, frame: 17
|
|
a2._w = a2._w || ({});
|
|
require(a0, a2._w, a2, a3);
|
|
}
|
|
|
|
}
|
|
|
|
function addTimeToArrayFromToken(a0, a1, a2) { // fn#28154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:7119, owner: t_28102.addTimeToArrayFromToken, offset: 0x00f70cf3, size: 77 bytes, params: 4, frame: 18
|
|
if (a1 != null && hasOwnProp(env0_16, a0)) {
|
|
env0_16[a0](a1, a2._a, a2, a0);
|
|
}
|
|
}
|
|
|
|
function daysInYear(a0) { // fn#28155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:7242, owner: t_28102.daysInYear, offset: 0x00f70d40, size: 34 bytes, params: 2, frame: 11
|
|
return t_28102IsLeapYear(a0) ? 366 : 365;
|
|
}
|
|
|
|
function makeGetSet(a0, a1) { // fn#28157, owner: t_28102.makeGetSet, offset: 0x00f70d93, size: 23 bytes, params: 3, frame: 2
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return _fun28158;
|
|
function _fun28158(a0) { // fn#28158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:8192, offset: 0x00f70daa, size: 84 bytes, params: 2, frame: 18
|
|
var r0;
|
|
var value2;
|
|
var value4;
|
|
let value = this;
|
|
if (a0 != null) {
|
|
value4 = environment.__proto__;
|
|
set$1(value, env0_0, a0);
|
|
hooks.updateOffset(value, require);
|
|
r0 = value;
|
|
} else {
|
|
value2 = environment.__proto__;
|
|
value = t_28102Get(value, env0_0);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function set$1(a0, a1, a2) { // fn#28160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:8359, owner: t_28102.set$1, offset: 0x00f70e48, size: 243 bytes, params: 4, frame: 18
|
|
if (a0.isValid() && !global.isNaN(a2)) {
|
|
if (a1 !== 'FullYear') {
|
|
a0._d['set' + (a0._isUTC ? 'UTC' : '') + a1](a2);
|
|
} else if (t_28102IsLeapYear(a0.year())) {
|
|
if (a0.month() !== 1) {
|
|
a0._d['set' + (a0._isUTC ? 'UTC' : '') + a1](a2);
|
|
} else if (a0.date() === 29) {
|
|
a0._d['set' + (a0._isUTC ? 'UTC' : '') + a1](a2, a0.month(), t_28102DaysInMonth(a2, a0.month()));
|
|
} else {
|
|
a0._d['set' + (a0._isUTC ? 'UTC' : '') + a1](a2);
|
|
}
|
|
} else {
|
|
a0._d['set' + (a0._isUTC ? 'UTC' : '') + a1](a2);
|
|
}
|
|
}
|
|
}
|
|
|
|
function t_28102DaysInMonth(a0, a1) { // fn#28161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:8583, owner: t_28102.daysInMonth, offset: 0x00f70f3b, size: 129 bytes, params: 3, frame: 14
|
|
if (global.isNaN(a0)) {
|
|
return global.NaN;
|
|
}
|
|
if (global.isNaN(a1)) {
|
|
return global.NaN;
|
|
}
|
|
const value = (a1 % 12 + 12) % 12;
|
|
return value === 1 ? t_28102IsLeapYear(a0 + (a1 - value) / 12) ? 29 : 28 : 31 - value % 7 % 2;
|
|
}
|
|
|
|
function handleStrictParse(a0, a1, a2) { // fn#28162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:9749, owner: t_28102.handleStrictParse, offset: 0x00f70fbc, size: 415 bytes, params: 4, frame: 21
|
|
var r7;
|
|
var r4;
|
|
var r0;
|
|
var r6;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var _shortMonthsParse;
|
|
var monthsShort;
|
|
var value5;
|
|
var _longMonthsParse;
|
|
var months;
|
|
var value6;
|
|
var value7;
|
|
var binding;
|
|
var call;
|
|
var value9;
|
|
var value10;
|
|
var value12;
|
|
var value13;
|
|
let toLocaleLowerCase = a0.toLocaleLowerCase;
|
|
let value = Reflect.apply(toLocaleLowerCase, a0, []);
|
|
reducibleJoin3: while (true) {
|
|
if (this._monthsParse) {
|
|
break reducibleJoin3;
|
|
}
|
|
this._monthsParse = [];
|
|
this._longMonthsParse = [];
|
|
this._shortMonthsParse = [];
|
|
value2 = environment;
|
|
value3 = 0;
|
|
r7 = value3;
|
|
reducibleLoop2: while (true) {
|
|
value4 = utc_28112([2000, r7]);
|
|
_shortMonthsParse = this._shortMonthsParse;
|
|
monthsShort = this.monthsShort;
|
|
value5 = Reflect.apply(monthsShort, this, [value4, '']);
|
|
toLocaleLowerCase = value5.toLocaleLowerCase;
|
|
_shortMonthsParse[r7] = Reflect.apply(toLocaleLowerCase, value5, []);
|
|
_longMonthsParse = this._longMonthsParse;
|
|
months = this.months;
|
|
value6 = Reflect.apply(months, this, [value4, '']);
|
|
toLocaleLowerCase = value6.toLocaleLowerCase;
|
|
_longMonthsParse[r7] = Reflect.apply(toLocaleLowerCase, value6, []);
|
|
value7 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
if (value7 < 12) {
|
|
r7 = value7;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
}
|
|
if (a2) {
|
|
r0 = a1 === 'MMM' ? env0_26.call(this._shortMonthsParse,
|
|
value) === -1 ? null : env0_26.call(this._shortMonthsParse,
|
|
value) : env0_26.call(this._longMonthsParse, value) === -1 ? null : env0_26.call(this._longMonthsParse,
|
|
value);
|
|
} else if (a1 === 'MMM') {
|
|
binding = env0_26;
|
|
value12 = binding.call(this._shortMonthsParse, value);
|
|
reducibleJoin12: while (true) {
|
|
reducibleJoin11: while (true) {
|
|
if (value12 !== -1) {
|
|
r6 = value12;
|
|
break reducibleJoin11;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
_longMonthsParse = this._longMonthsParse;
|
|
value = Reflect.apply(call, binding, [_longMonthsParse, value]);
|
|
value13 = null;
|
|
if (value === -1) {
|
|
r4 = value13;
|
|
break reducibleJoin12;
|
|
}
|
|
r6 = value;
|
|
break reducibleJoin11;
|
|
}
|
|
r4 = r6;
|
|
break reducibleJoin12;
|
|
}
|
|
r0 = r4;
|
|
} else {
|
|
binding = env0_26;
|
|
value9 = binding.call(this._longMonthsParse, value);
|
|
reducibleJoin8: while (true) {
|
|
reducibleJoin7: while (true) {
|
|
if (value9 !== -1) {
|
|
r4 = value9;
|
|
break reducibleJoin7;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
_shortMonthsParse = this._shortMonthsParse;
|
|
value = Reflect.apply(call, binding, [_shortMonthsParse, value]);
|
|
value10 = null;
|
|
if (value === -1) {
|
|
r0 = value10;
|
|
break reducibleJoin8;
|
|
}
|
|
r4 = value;
|
|
break reducibleJoin7;
|
|
}
|
|
r0 = r4;
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function t_28102SetMonth(a0, a1) { // fn#28163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:10389, owner: t_28102.setMonth, offset: 0x00f7115b, size: 223 bytes, params: 3, frame: 17
|
|
var r2;
|
|
var t_28102IsNumberBinding;
|
|
var Math;
|
|
var min;
|
|
let value = a1;
|
|
if (a0.isValid()) {
|
|
if (typeof value !== 'string') {
|
|
r2 = value;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
value = a0.date();
|
|
value = Reflect.apply(min, Math, [value, t_28102DaysInMonth(a0.year(), r2)]);
|
|
a0._d['set' + (a0._isUTC ? 'UTC' : '') + 'Month'](r2, value);
|
|
return a0;
|
|
}
|
|
if (RegExp('^\\d+$', '').test(value)) {
|
|
value = toInt(value);
|
|
r2 = value;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
value = a0.date();
|
|
value = Reflect.apply(min, Math, [value, t_28102DaysInMonth(a0.year(), r2)]);
|
|
a0._d['set' + (a0._isUTC ? 'UTC' : '') + 'Month'](r2, value);
|
|
return a0;
|
|
}
|
|
t_28102IsNumberBinding = t_28102IsNumber;
|
|
value = a0.localeData().monthsParse(value);
|
|
if (t_28102IsNumberBinding(value)) {
|
|
r2 = value;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
value = a0.date();
|
|
value = Reflect.apply(min, Math, [value, t_28102DaysInMonth(a0.year(), r2)]);
|
|
a0._d['set' + (a0._isUTC ? 'UTC' : '') + 'Month'](r2, value);
|
|
return a0;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function month(a0) { // fn#28164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:10654, owner: t_28102.month, offset: 0x00f7123a, size: 73 bytes, params: 2, frame: 15
|
|
var r0;
|
|
let value = this;
|
|
if (a0 != null) {
|
|
t_28102SetMonth(value, a0);
|
|
hooks.updateOffset(value, true);
|
|
r0 = value;
|
|
} else {
|
|
value = t_28102Get(value, 'Month');
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function computeMonthsParse() { // fn#28165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:10775, owner: t_28102.computeMonthsParse, offset: 0x00f71283, size: 444 bytes, params: 1, frame: 23
|
|
var value3;
|
|
var push;
|
|
var monthsShort;
|
|
var months;
|
|
var value4;
|
|
var regexEscapeBinding;
|
|
var value5;
|
|
var value6;
|
|
const closure = function(a0, {length}) {
|
|
return length - a0.length;
|
|
};
|
|
const items4 = [];
|
|
const items2 = [];
|
|
const items3 = [];
|
|
const value2 = 0;
|
|
let r1 = value2;
|
|
reducibleLoop1: while (true) {
|
|
value3 = utc_28112([2000, r1]);
|
|
push = items4.push;
|
|
monthsShort = this.monthsShort;
|
|
Reflect.apply(push, items4, [Reflect.apply(monthsShort, this, [value3, ''])]);
|
|
push = items2.push;
|
|
months = this.months;
|
|
Reflect.apply(push, items2, [Reflect.apply(months, this, [value3, ''])]);
|
|
push = items3.push;
|
|
months = this.months;
|
|
Reflect.apply(push, items3, [Reflect.apply(months, this, [value3, ''])]);
|
|
push = items3.push;
|
|
monthsShort = this.monthsShort;
|
|
Reflect.apply(push, items3, [Reflect.apply(monthsShort, this, [value3, ''])]);
|
|
value4 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value4 < 12) {
|
|
r1 = value4;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
items4.sort(closure);
|
|
items2.sort(closure);
|
|
items3.sort(closure);
|
|
let r6 = value2;
|
|
reducibleLoop3: while (true) {
|
|
regexEscapeBinding = regexEscape;
|
|
items4[r6] = regexEscapeBinding(items4[r6]);
|
|
items2[r6] = regexEscapeBinding(items2[r6]);
|
|
value5 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (value5 < 12) {
|
|
r6 = value5;
|
|
continue reducibleLoop3;
|
|
}
|
|
r1 = value2;
|
|
break reducibleLoop3;
|
|
}
|
|
reducibleLoop4: while (true) {
|
|
items3[r1] = regexEscape(items3[r1]);
|
|
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value6 < 24) {
|
|
r1 = value6;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
let RegExp = global.RegExp;
|
|
let value = items3.join('|');
|
|
value = '^(' + value;
|
|
const value7 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += ')';
|
|
let regExp = new RegExp(value, 'i');
|
|
this._monthsRegex = regExp instanceof Object ? regExp : value7;
|
|
this._monthsShortRegex = this._monthsRegex;
|
|
RegExp = global.RegExp;
|
|
value = '^(' + items2.join('|');
|
|
const value8 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += ')';
|
|
regExp = new RegExp(value, 'i');
|
|
this._monthsStrictRegex = regExp instanceof Object ? regExp : value8;
|
|
RegExp = global.RegExp;
|
|
value = '^(' + items4.join('|');
|
|
const value9 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += ')';
|
|
regExp = new RegExp(value, 'i');
|
|
this._monthsShortStrictRegex = regExp instanceof Object ? regExp : value9;
|
|
}
|
|
|
|
function dayOfYearFromWeeks(a0, a1, a2, a3, a4) { // fn#28170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:11781, owner: t_28102.dayOfYearFromWeeks, offset: 0x00f71588, size: 147 bytes, params: 6, frame: 20
|
|
var r1;
|
|
var r2;
|
|
var daysInYearBinding;
|
|
var value8;
|
|
let value = a0;
|
|
const value7 = 1 + 7 * (a1 - 1) + (7 + a2 - a3) % 7 + firstWeekOffset(value, a3, a4);
|
|
if (value7 <= 0) {
|
|
daysInYearBinding = daysInYear;
|
|
value -= 1;
|
|
r1 = daysInYearBinding(value) + value7;
|
|
r2 = value;
|
|
} else if (value7 > daysInYear(value)) {
|
|
value8 = value + 1;
|
|
value = value7 - daysInYear(value);
|
|
r1 = value;
|
|
r2 = value8;
|
|
} else {
|
|
r1 = value7;
|
|
r2 = value;
|
|
}
|
|
return {year: r2, dayOfYear: r1};
|
|
}
|
|
|
|
function weekOfYear(a0, a1, a2) { // fn#28171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:11980, owner: t_28102.weekOfYear, offset: 0x00f7161b, size: 217 bytes, params: 4, frame: 21
|
|
var r1;
|
|
var r2;
|
|
var t_28102WeeksInYearBinding;
|
|
var value7;
|
|
var value;
|
|
const value3 = firstWeekOffset(a0.year(), a1, a2);
|
|
const Math = global.Math;
|
|
const value5 = Math.floor((a0.dayOfYear() - value3 - 1) / 7) + 1;
|
|
if (value5 < 1) {
|
|
t_28102WeeksInYearBinding = t_28102WeeksInYear;
|
|
value = a0.year() - 1;
|
|
value7 = value5 + t_28102WeeksInYearBinding(value, a1, a2);
|
|
r1 = value;
|
|
r2 = value7;
|
|
} else {
|
|
t_28102WeeksInYearBinding = t_28102WeeksInYear;
|
|
year = a0.year;
|
|
if (value5 > t_28102WeeksInYearBinding(Reflect.apply(year, a0, []), a1, a2)) {
|
|
t_28102WeeksInYearBinding = t_28102WeeksInYear;
|
|
year = a0.year;
|
|
value = value5 - t_28102WeeksInYearBinding(Reflect.apply(year, a0, []), a1, a2);
|
|
year = a0.year;
|
|
r1 = Reflect.apply(year, a0, []) + 1;
|
|
r2 = value;
|
|
} else {
|
|
r1 = a0.year();
|
|
r2 = value5;
|
|
}
|
|
}
|
|
return {week: r2, year: r1};
|
|
}
|
|
|
|
function t_28102WeeksInYear(a0, a1, a2) { // fn#28172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:12236, owner: t_28102.weeksInYear, offset: 0x00f716f4, size: 65 bytes, params: 4, frame: 18
|
|
const firstWeekOffsetBinding = firstWeekOffset;
|
|
return (daysInYear(a0) - firstWeekOffsetBinding(a0, a1, a2) + firstWeekOffsetBinding(a0 + 1, a1, a2)) / 7;
|
|
}
|
|
|
|
function handleStrictParse$1(a0, a1, a2) { // fn#28173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:13891, owner: t_28102.handleStrictParse$1, offset: 0x00f71735, size: 667 bytes, params: 4, frame: 21
|
|
var r7;
|
|
var r4;
|
|
var r0;
|
|
var r6;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var day;
|
|
var value5;
|
|
var _minWeekdaysParse;
|
|
var weekdaysMin;
|
|
var value6;
|
|
var _shortWeekdaysParse;
|
|
var weekdaysShort;
|
|
var value7;
|
|
var weekdays;
|
|
var value8;
|
|
var value9;
|
|
var binding;
|
|
var call;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
let toLocaleLowerCase = a0.toLocaleLowerCase;
|
|
let value = Reflect.apply(toLocaleLowerCase, a0, []);
|
|
let _weekdaysParse = this._weekdaysParse;
|
|
reducibleJoin3: while (true) {
|
|
if (_weekdaysParse) {
|
|
break reducibleJoin3;
|
|
}
|
|
this._weekdaysParse = [];
|
|
this._shortWeekdaysParse = [];
|
|
this._minWeekdaysParse = [];
|
|
value2 = environment;
|
|
value3 = 0;
|
|
r7 = value3;
|
|
reducibleLoop2: while (true) {
|
|
value4 = utc_28112([2000, 1]);
|
|
day = value4.day;
|
|
value5 = Reflect.apply(day, value4, [r7]);
|
|
_minWeekdaysParse = this._minWeekdaysParse;
|
|
weekdaysMin = this.weekdaysMin;
|
|
value6 = Reflect.apply(weekdaysMin, this, [value5, '']);
|
|
toLocaleLowerCase = value6.toLocaleLowerCase;
|
|
_minWeekdaysParse[r7] = Reflect.apply(toLocaleLowerCase, value6, []);
|
|
_shortWeekdaysParse = this._shortWeekdaysParse;
|
|
weekdaysShort = this.weekdaysShort;
|
|
value7 = Reflect.apply(weekdaysShort, this, [value5, '']);
|
|
toLocaleLowerCase = value7.toLocaleLowerCase;
|
|
_shortWeekdaysParse[r7] = Reflect.apply(toLocaleLowerCase, value7, []);
|
|
_weekdaysParse = this._weekdaysParse;
|
|
weekdays = this.weekdays;
|
|
value8 = Reflect.apply(weekdays, this, [value5, '']);
|
|
toLocaleLowerCase = value8.toLocaleLowerCase;
|
|
_weekdaysParse[r7] = Reflect.apply(toLocaleLowerCase, value8, []);
|
|
value9 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
if (value9 < 7) {
|
|
r7 = value9;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
}
|
|
if (a2) {
|
|
r0 = a1 === 'dddd' ? env0_26.call(this._weekdaysParse, value) === -1 ? null : env0_26.call(this._weekdaysParse,
|
|
value) : a1 === 'ddd' ? env0_26.call(this._shortWeekdaysParse,
|
|
value) === -1 ? null : env0_26.call(this._shortWeekdaysParse, value) : env0_26.call(this._minWeekdaysParse,
|
|
value) === -1 ? null : env0_26.call(this._minWeekdaysParse, value);
|
|
} else if (a1 === 'dddd') {
|
|
binding = env0_26;
|
|
value19 = binding.call(this._weekdaysParse, value);
|
|
reducibleJoin21: while (true) {
|
|
reducibleJoin20: while (true) {
|
|
if (value19 !== -1) {
|
|
r6 = value19;
|
|
break reducibleJoin20;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
_shortWeekdaysParse = this._shortWeekdaysParse;
|
|
value20 = Reflect.apply(call, binding, [_shortWeekdaysParse, value]);
|
|
if (value20 !== -1) {
|
|
r6 = value20;
|
|
break reducibleJoin20;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
_minWeekdaysParse = this._minWeekdaysParse;
|
|
value = Reflect.apply(call, binding, [_minWeekdaysParse, value]);
|
|
value21 = null;
|
|
if (value === -1) {
|
|
r4 = value21;
|
|
break reducibleJoin21;
|
|
}
|
|
r6 = value;
|
|
break reducibleJoin20;
|
|
}
|
|
r4 = r6;
|
|
break reducibleJoin21;
|
|
}
|
|
r0 = r4;
|
|
} else if (a1 === 'ddd') {
|
|
binding = env0_26;
|
|
value15 = binding.call(this._shortWeekdaysParse, value);
|
|
reducibleJoin15: while (true) {
|
|
reducibleJoin14: while (true) {
|
|
if (value15 !== -1) {
|
|
r6 = value15;
|
|
break reducibleJoin14;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
_weekdaysParse = this._weekdaysParse;
|
|
value16 = Reflect.apply(call, binding, [_weekdaysParse, value]);
|
|
if (value16 !== -1) {
|
|
r6 = value16;
|
|
break reducibleJoin14;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
_minWeekdaysParse = this._minWeekdaysParse;
|
|
value = Reflect.apply(call, binding, [_minWeekdaysParse, value]);
|
|
value17 = null;
|
|
if (value === -1) {
|
|
r4 = value17;
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value;
|
|
break reducibleJoin14;
|
|
}
|
|
r4 = r6;
|
|
break reducibleJoin15;
|
|
}
|
|
r0 = r4;
|
|
} else {
|
|
binding = env0_26;
|
|
value11 = binding.call(this._minWeekdaysParse, value);
|
|
reducibleJoin10: while (true) {
|
|
reducibleJoin9: while (true) {
|
|
if (value11 !== -1) {
|
|
r4 = value11;
|
|
break reducibleJoin9;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
_weekdaysParse = this._weekdaysParse;
|
|
value12 = Reflect.apply(call, binding, [_weekdaysParse, value]);
|
|
if (value12 !== -1) {
|
|
r4 = value12;
|
|
break reducibleJoin9;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
_shortWeekdaysParse = this._shortWeekdaysParse;
|
|
value = Reflect.apply(call, binding, [_shortWeekdaysParse, value]);
|
|
value13 = null;
|
|
if (value === -1) {
|
|
r0 = value13;
|
|
break reducibleJoin10;
|
|
}
|
|
r4 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = r4;
|
|
break reducibleJoin10;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function computeWeekdaysParse() { // fn#28174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:14926, owner: t_28102.computeWeekdaysParse, offset: 0x00f719d0, size: 523 bytes, params: 1, frame: 25
|
|
var value3;
|
|
var day;
|
|
var value4;
|
|
var weekdaysMin;
|
|
var value5;
|
|
var weekdaysShort;
|
|
var value6;
|
|
var weekdays;
|
|
var value7;
|
|
var push;
|
|
var value8;
|
|
var regexEscapeBinding;
|
|
var value9;
|
|
const closure = function(a0, {length}) {
|
|
return length - a0.length;
|
|
};
|
|
const items5 = [];
|
|
const items2 = [];
|
|
const items3 = [];
|
|
const items4 = [];
|
|
const value2 = 0;
|
|
let r6 = value2;
|
|
reducibleLoop1: while (true) {
|
|
value3 = utc_28112([2000, 1]);
|
|
day = value3.day;
|
|
value4 = Reflect.apply(day, value3, [r6]);
|
|
weekdaysMin = this.weekdaysMin;
|
|
value5 = Reflect.apply(weekdaysMin, this, [value4, '']);
|
|
weekdaysShort = this.weekdaysShort;
|
|
value6 = Reflect.apply(weekdaysShort, this, [value4, '']);
|
|
weekdays = this.weekdays;
|
|
value7 = Reflect.apply(weekdays, this, [value4, '']);
|
|
push = items5.push;
|
|
Reflect.apply(push, items5, [value5]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value6]);
|
|
push = items3.push;
|
|
Reflect.apply(push, items3, [value7]);
|
|
push = items4.push;
|
|
Reflect.apply(push, items4, [value5]);
|
|
push = items4.push;
|
|
Reflect.apply(push, items4, [value6]);
|
|
push = items4.push;
|
|
Reflect.apply(push, items4, [value7]);
|
|
value8 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (value8 < 7) {
|
|
r6 = value8;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
items5.sort(closure);
|
|
items2.sort(closure);
|
|
items3.sort(closure);
|
|
items4.sort(closure);
|
|
let r5 = value2;
|
|
reducibleLoop3: while (true) {
|
|
regexEscapeBinding = regexEscape;
|
|
items2[r5] = regexEscapeBinding(items2[r5]);
|
|
items3[r5] = regexEscapeBinding(items3[r5]);
|
|
items4[r5] = regexEscapeBinding(items4[r5]);
|
|
value9 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value9 < 7) {
|
|
r5 = value9;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
let RegExp = global.RegExp;
|
|
let value = items4.join('|');
|
|
value = '^(' + value;
|
|
const value10 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += ')';
|
|
let regExp = new RegExp(value, 'i');
|
|
this._weekdaysRegex = regExp instanceof Object ? regExp : value10;
|
|
this._weekdaysShortRegex = this._weekdaysRegex;
|
|
this._weekdaysMinRegex = this._weekdaysRegex;
|
|
RegExp = global.RegExp;
|
|
value = '^(' + items3.join('|');
|
|
const value11 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += ')';
|
|
regExp = new RegExp(value, 'i');
|
|
this._weekdaysStrictRegex = regExp instanceof Object ? regExp : value11;
|
|
RegExp = global.RegExp;
|
|
value = '^(' + items2.join('|');
|
|
const value12 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += ')';
|
|
regExp = new RegExp(value, 'i');
|
|
this._weekdaysShortStrictRegex = regExp instanceof Object ? regExp : value12;
|
|
RegExp = global.RegExp;
|
|
value = '^(' + items5.join('|');
|
|
const value13 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += ')';
|
|
regExp = new RegExp(value, 'i');
|
|
this._weekdaysMinStrictRegex = regExp instanceof Object ? regExp : value13;
|
|
}
|
|
|
|
function t_28102Meridiem(a0, a1) { // fn#28177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:15764, owner: t_28102.meridiem, offset: 0x00f71bf7, size: 38 bytes, params: 3, frame: 16
|
|
const env0_0 = a1;
|
|
addFormatToken(a0, 0, 0, function() {
|
|
return this.localeData().meridiem(this.hours(), this.minutes(), require);
|
|
});
|
|
function _fun28178() { // fn#28178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:15809, offset: 0x00f71c1d, size: 55 bytes, params: 1, frame: 15
|
|
const value = this.localeData();
|
|
return value.meridiem(this.hours(), this.minutes(), require);
|
|
}
|
|
|
|
}
|
|
|
|
function loadLocale(a0) { // fn#28181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:18563, owner: t_28102.loadLocale, offset: 0x00f71c89, size: 157 bytes, params: 2, frame: 16
|
|
var value;
|
|
var value2;
|
|
var exports;
|
|
var Error;
|
|
var prototype;
|
|
var error;
|
|
var value4;
|
|
var binding;
|
|
var _abbr;
|
|
var value5;
|
|
var value6;
|
|
var locale_28182Binding;
|
|
exceptionSkip23: while (true) {
|
|
exceptionLanding23: while (true) {
|
|
exceptionSkip12: while (true) {
|
|
exceptionLanding12: while (true) {
|
|
value = environment;
|
|
if (env0_37[a0]) {
|
|
return env0_37[a0];
|
|
}
|
|
value2 = environment.__proto__;
|
|
if (env1_1 === undefined) {
|
|
return env0_37[a0];
|
|
}
|
|
if (!env1_1) {
|
|
return env0_37[a0];
|
|
}
|
|
exports = env1_1.exports;
|
|
if (!exports) {
|
|
return env0_37[a0];
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
error = new Error('Dynamic require defined at line 1838; not supported by Metro');
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
value4 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
throw value4;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
break exceptionSkip12;
|
|
}
|
|
try {
|
|
binding = env0_35;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
_abbr = binding._abbr;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
value5 = './locale/' + a0;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
require(value5);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
value6 = './locale/' + a0;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
require(value6);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
locale_28182Binding = locale_28182;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
locale_28182Binding(_abbr);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
return env0_37[a0];
|
|
break exceptionSkip12;
|
|
}
|
|
break exceptionSkip23;
|
|
}
|
|
return env0_37[a0];
|
|
break exceptionSkip23;
|
|
}
|
|
}
|
|
|
|
function t_28102Locale(a0, a1) { // fn#28182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:18869, owner: t_28102.locale, offset: 0x00f71d26, size: 143 bytes, params: 3, frame: 15
|
|
var r0;
|
|
if (a0) {
|
|
r0 = t_28102IsUndefined(a1) ? localeData_28185(a0) : defineLocale(a0, a1);
|
|
if (r0) {
|
|
env0_35 = r0;
|
|
} else if (typeof global.console !== 'undefined' && global.console.warn) {
|
|
global.console.warn('Locale ' + a0 + ' not found. Did you forget to load it?');
|
|
}
|
|
}
|
|
return env0_35._abbr;
|
|
}
|
|
|
|
function defineLocale(a0, a1) { // fn#28183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:19094, owner: t_28102.defineLocale, offset: 0x00f71db5, size: 349 bytes, params: 3, frame: 18
|
|
var r5;
|
|
var binding;
|
|
var parentLocale;
|
|
var loadLocaleBinding;
|
|
var locale;
|
|
var value2;
|
|
var value3;
|
|
var locale2;
|
|
if (a1 !== null) {
|
|
binding = env0_36;
|
|
a1.abbr = a0;
|
|
if (env0_37[a0] != null) {
|
|
deprecateSimple('defineLocaleOverride',
|
|
'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
|
|
r5 = env0_37[a0]._config;
|
|
binding = env0_37;
|
|
value2 = mergeConfigs(r5, a1);
|
|
value3 = Object.create(Locale.prototype, {constructor: {value: Locale}});
|
|
locale2 = new Locale();
|
|
binding[a0] = locale2 instanceof Object ? locale2 : value3;
|
|
if (env0_38[a0]) {
|
|
env0_38[a0].forEach(function(a0) {
|
|
defineLocale(a0.name, a0.config);
|
|
});
|
|
}
|
|
locale_28182(a0);
|
|
return env0_37[a0];
|
|
}
|
|
parentLocale = a1.parentLocale;
|
|
if (parentLocale == null) {
|
|
r5 = binding;
|
|
binding = env0_37;
|
|
value2 = mergeConfigs(r5, a1);
|
|
value3 = Object.create(Locale.prototype, {constructor: {value: Locale}});
|
|
locale2 = new Locale();
|
|
binding[a0] = locale2 instanceof Object ? locale2 : value3;
|
|
if (env0_38[a0]) {
|
|
env0_38[a0].forEach(_fun28184);
|
|
}
|
|
locale_28182(a0);
|
|
return env0_37[a0];
|
|
}
|
|
binding = env0_37;
|
|
parentLocale = a1.parentLocale;
|
|
if (binding[parentLocale] != null) {
|
|
binding = env0_37;
|
|
r5 = binding[a1.parentLocale]._config;
|
|
binding = env0_37;
|
|
value2 = mergeConfigs(r5, a1);
|
|
value3 = Object.create(Locale.prototype, {constructor: {value: Locale}});
|
|
locale2 = new Locale();
|
|
binding[a0] = locale2 instanceof Object ? locale2 : value3;
|
|
if (env0_38[a0]) {
|
|
env0_38[a0].forEach(_fun28184);
|
|
}
|
|
locale_28182(a0);
|
|
return env0_37[a0];
|
|
}
|
|
loadLocaleBinding = loadLocale;
|
|
parentLocale = a1.parentLocale;
|
|
locale = loadLocaleBinding(parentLocale);
|
|
if (locale == null) {
|
|
binding = env0_38;
|
|
parentLocale = a1.parentLocale;
|
|
if (!binding[parentLocale]) {
|
|
env0_38[a1.parentLocale] = [];
|
|
}
|
|
binding = env0_38;
|
|
parentLocale = a1.parentLocale;
|
|
binding[parentLocale].push({name: a0, config: a1});
|
|
return null;
|
|
}
|
|
r5 = locale._config;
|
|
binding = env0_37;
|
|
value2 = mergeConfigs(r5, a1);
|
|
value3 = Object.create(Locale.prototype, {constructor: {value: Locale}});
|
|
locale2 = new Locale();
|
|
binding[a0] = locale2 instanceof Object ? locale2 : value3;
|
|
if (env0_38[a0]) {
|
|
env0_38[a0].forEach(_fun28184);
|
|
}
|
|
locale_28182(a0);
|
|
return env0_37[a0];
|
|
}
|
|
delete env0_37[a0];
|
|
return null;
|
|
function _fun28184({name, config}) { // fn#28184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:19766, offset: 0x00f71f12, size: 31 bytes, params: 2, frame: 13
|
|
defineLocale(name, config);
|
|
}
|
|
|
|
}
|
|
|
|
function t_28102LocaleData(a0) { // fn#28185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:19864, owner: t_28102.localeData, offset: 0x00f71f31, size: 298 bytes, params: 2, frame: 28
|
|
var r1;
|
|
var r3;
|
|
var r10;
|
|
var r2;
|
|
var r12;
|
|
var r0;
|
|
var _locale;
|
|
var _abbr;
|
|
var loadLocaleBinding;
|
|
var locale;
|
|
var length;
|
|
var value2;
|
|
var normalizeLocaleBinding;
|
|
var value3;
|
|
var split;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var slice;
|
|
var value8;
|
|
var join;
|
|
var locale2;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var binding;
|
|
const value = a0;
|
|
reducibleJoin2: while (true) {
|
|
if (value) {
|
|
_locale = value._locale;
|
|
r1 = _locale;
|
|
break reducibleJoin2;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r1) {
|
|
_locale = value._locale;
|
|
_abbr = _locale._abbr;
|
|
r1 = _abbr;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r1) {
|
|
_locale = value._locale;
|
|
_abbr = _locale._abbr;
|
|
r3 = _abbr;
|
|
break reducibleJoin6;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
if (r3) {
|
|
if (t_28102IsArray(r3)) {
|
|
r10 = r3;
|
|
} else {
|
|
locale = loadLocale(r3);
|
|
if (locale) {
|
|
return locale;
|
|
}
|
|
r10 = [r3];
|
|
}
|
|
length = r10.length;
|
|
value2 = 0;
|
|
reducibleJoin23: while (true) {
|
|
reducibleJoin22: while (true) {
|
|
if (value2 < length) {
|
|
r3 = value2;
|
|
reducibleLoop13: while (true) {
|
|
normalizeLocaleBinding = normalizeLocale;
|
|
value3 = normalizeLocaleBinding(r10[r3]);
|
|
split = value3.split;
|
|
value4 = Reflect.apply(split, value3, ['-']);
|
|
length = value4.length;
|
|
value5 = normalizeLocaleBinding(r10[r3 + 1]);
|
|
value6 = null;
|
|
reducibleJoin15: while (true) {
|
|
if (value5) {
|
|
split = value5.split;
|
|
value7 = Reflect.apply(split, value5, ['-']);
|
|
r2 = value7;
|
|
break reducibleJoin15;
|
|
}
|
|
r2 = value6;
|
|
break reducibleJoin15;
|
|
}
|
|
if (length > value2) {
|
|
r12 = length;
|
|
reducibleLoop16: while (true) {
|
|
loadLocaleBinding = loadLocale;
|
|
slice = value4.slice;
|
|
value8 = Reflect.apply(slice, value4, [value2, r12]);
|
|
join = value8.join;
|
|
locale2 = loadLocaleBinding(Reflect.apply(join, value8, ['-']));
|
|
if (locale2) {
|
|
r0 = locale2;
|
|
break reducibleJoin23;
|
|
}
|
|
if (r2) {
|
|
length = r2.length;
|
|
reducibleJoin20: while (true) {
|
|
if (length >= r12) {
|
|
value9 = compareArrays(value4, r2, true);
|
|
if (value9 >= r12 - 1) {
|
|
value11 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = r10.length;
|
|
if (value11 < length) {
|
|
r3 = value11;
|
|
continue reducibleLoop13;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
}
|
|
value10 = typeof r12 === 'bigint' ? r12 - 1n : +r12 - 1;
|
|
if (value10 > value2) {
|
|
r12 = value10;
|
|
continue reducibleLoop16;
|
|
}
|
|
value11 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = r10.length;
|
|
if (value11 < length) {
|
|
r3 = value11;
|
|
continue reducibleLoop13;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
}
|
|
value11 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = r10.length;
|
|
if (value11 < length) {
|
|
r3 = value11;
|
|
continue reducibleLoop13;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
return r0;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
binding = env0_35;
|
|
r0 = binding;
|
|
break reducibleJoin23;
|
|
}
|
|
return r0;
|
|
}
|
|
return env0_35;
|
|
}
|
|
|
|
function checkOverflow(a0) { // fn#28186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:20301, owner: t_28102.checkOverflow, offset: 0x00f7205b, size: 494 bytes, params: 2, frame: 18
|
|
var r2;
|
|
var r4;
|
|
const _a = a0._a;
|
|
if (_a && getParsingFlags(a0).overflow === -2) {
|
|
r2 = _a[env0_18] < 0 || _a[env0_18] > 11 ? env0_18 : _a[env0_19] < 1 || _a[env0_19] > t_28102DaysInMonth(_a[env0_17],
|
|
|
|
_a[env0_18]) ? env0_19 : _a[env0_20] < 0 || _a[env0_20] > 24 ? env0_20 : _a[env0_20] !== 24 ? _a[env0_21] < 0 || _a[env0_21] > 59 ? env0_21 : _a[env0_22] < 0 || _a[env0_22] > 59 ? env0_22 : _a[env0_23] < 0 || _a[env0_23] > 999 ? env0_23 : -1 : _a[env0_21] !== 0 || _a[env0_22] !== 0 || _a[env0_23] !== 0 ? env0_20 : _a[env0_21] < 0 || _a[env0_21] > 59 ? env0_21 : _a[env0_22] < 0 || _a[env0_22] > 59 ? env0_22 : _a[env0_23] < 0 || _a[env0_23] > 999 ? env0_23 : -1;
|
|
r4 = getParsingFlags(a0)._overflowDayOfYear && (r2 < env0_17 || r2 > env0_19);
|
|
r2 = r4 ? env0_19 : r2;
|
|
r4 = getParsingFlags(a0)._overflowWeeks && r2 === -1;
|
|
r2 = r4 ? env0_24 : r2;
|
|
r4 = getParsingFlags(a0)._overflowWeekday && r2 === -1;
|
|
r2 = r4 ? env0_25 : r2;
|
|
getParsingFlags(a0).overflow = r2;
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function configFromArray(a0) { // fn#28188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:20806, owner: t_28102.configFromArray, offset: 0x00f72264, size: 1482 bytes, params: 2, frame: 33
|
|
var r9;
|
|
var r1;
|
|
var r4;
|
|
var r5;
|
|
var r7;
|
|
var r8;
|
|
var r10;
|
|
var r11;
|
|
var Date;
|
|
var value2;
|
|
var date;
|
|
var _useUTC;
|
|
var items2;
|
|
var items3;
|
|
var _w;
|
|
var _a;
|
|
var GG;
|
|
var _locale;
|
|
var _week;
|
|
var dow;
|
|
var doy;
|
|
var weekOfYearBinding;
|
|
var createLocal_2Binding;
|
|
var value9;
|
|
var value10;
|
|
var defaultsBinding;
|
|
var gg;
|
|
var property;
|
|
var value11;
|
|
var value12;
|
|
var d;
|
|
var e;
|
|
var value13;
|
|
var value20;
|
|
var local_2;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value29;
|
|
var binding;
|
|
var _dayOfYear;
|
|
var value32;
|
|
var createUTCDateBinding;
|
|
var uTCDate;
|
|
var value36;
|
|
var value37;
|
|
var _a2;
|
|
var _a3;
|
|
var value39;
|
|
const items4 = [];
|
|
let _d = a0._d;
|
|
if (!_d) {
|
|
Date = global.Date;
|
|
value2 = hooks.now();
|
|
date = new Date();
|
|
_useUTC = a0._useUTC;
|
|
if (_useUTC) {
|
|
items3 = [date.getUTCFullYear()];
|
|
items3[1] = date.getUTCMonth();
|
|
items3[2] = date.getUTCDate();
|
|
r9 = items3;
|
|
} else {
|
|
items2 = [date.getFullYear()];
|
|
items2[1] = date.getMonth();
|
|
items2[2] = date.getDate();
|
|
r9 = items2;
|
|
}
|
|
_w = a0._w;
|
|
r1 = _w && a0._a[env0_19] == null;
|
|
r1 = r1 && a0._a[env0_18] == null;
|
|
if (r1) {
|
|
_w = a0._w;
|
|
GG = _w.GG;
|
|
if (GG != null) {
|
|
defaultsBinding = defaults;
|
|
GG = _w.GG;
|
|
property = a0._a[env0_17];
|
|
weekOfYearBinding = weekOfYear;
|
|
createLocal_2Binding = createLocal_2;
|
|
value20 = undefined;
|
|
local_2 = createLocal_2Binding();
|
|
value21 = 1;
|
|
value22 = 4;
|
|
value23 = defaultsBinding(GG, property, weekOfYearBinding(local_2, value21, value22).year);
|
|
value24 = defaultsBinding(_w.W, value21);
|
|
value25 = defaultsBinding(_w.E, value21);
|
|
if (value25 < value21 || value25 > 7) {
|
|
r1 = true;
|
|
r4 = value22;
|
|
r5 = value21;
|
|
r7 = value25;
|
|
r8 = value24;
|
|
r10 = value23;
|
|
} else {
|
|
r1 = value20;
|
|
r4 = value22;
|
|
r5 = value21;
|
|
r7 = value25;
|
|
r8 = value24;
|
|
r10 = value23;
|
|
}
|
|
} else if (_w.W != null) {
|
|
defaultsBinding = defaults;
|
|
GG = _w.GG;
|
|
property = a0._a[env0_17];
|
|
weekOfYearBinding = weekOfYear;
|
|
createLocal_2Binding = createLocal_2;
|
|
value20 = undefined;
|
|
local_2 = createLocal_2Binding();
|
|
value21 = 1;
|
|
value22 = 4;
|
|
value23 = defaultsBinding(GG, property, weekOfYearBinding(local_2, value21, value22).year);
|
|
value24 = defaultsBinding(_w.W, value21);
|
|
value25 = defaultsBinding(_w.E, value21);
|
|
if (value25 < value21 || value25 > 7) {
|
|
r1 = true;
|
|
r4 = value22;
|
|
r5 = value21;
|
|
r7 = value25;
|
|
r8 = value24;
|
|
r10 = value23;
|
|
} else {
|
|
r1 = value20;
|
|
r4 = value22;
|
|
r5 = value21;
|
|
r7 = value25;
|
|
r8 = value24;
|
|
r10 = value23;
|
|
}
|
|
} else if (_w.E != null) {
|
|
defaultsBinding = defaults;
|
|
GG = _w.GG;
|
|
property = a0._a[env0_17];
|
|
weekOfYearBinding = weekOfYear;
|
|
createLocal_2Binding = createLocal_2;
|
|
value20 = undefined;
|
|
local_2 = createLocal_2Binding();
|
|
value21 = 1;
|
|
value22 = 4;
|
|
value23 = defaultsBinding(GG, property, weekOfYearBinding(local_2, value21, value22).year);
|
|
value24 = defaultsBinding(_w.W, value21);
|
|
value25 = defaultsBinding(_w.E, value21);
|
|
if (value25 < value21 || value25 > 7) {
|
|
r1 = true;
|
|
r4 = value22;
|
|
r5 = value21;
|
|
r7 = value25;
|
|
r8 = value24;
|
|
r10 = value23;
|
|
} else {
|
|
r1 = value20;
|
|
r4 = value22;
|
|
r5 = value21;
|
|
r7 = value25;
|
|
r8 = value24;
|
|
r10 = value23;
|
|
}
|
|
} else {
|
|
_locale = a0._locale;
|
|
_week = _locale._week;
|
|
dow = _week.dow;
|
|
_locale = a0._locale;
|
|
_week = _locale._week;
|
|
doy = _week.doy;
|
|
weekOfYearBinding = weekOfYear;
|
|
createLocal_2Binding = createLocal_2;
|
|
value9 = undefined;
|
|
value10 = weekOfYearBinding(createLocal_2Binding(), dow, doy);
|
|
defaultsBinding = defaults;
|
|
gg = _w.gg;
|
|
property = a0._a[env0_17];
|
|
value11 = defaultsBinding(gg, property, value10.year);
|
|
value12 = defaultsBinding(_w.w, value10.week);
|
|
d = _w.d;
|
|
if (d != null) {
|
|
d = _w.d;
|
|
if (d < 0 || d > 6) {
|
|
r1 = true;
|
|
r4 = doy;
|
|
r5 = dow;
|
|
r7 = d;
|
|
r8 = value12;
|
|
r10 = value11;
|
|
} else {
|
|
r1 = value9;
|
|
r4 = doy;
|
|
r5 = dow;
|
|
r7 = d;
|
|
r8 = value12;
|
|
r10 = value11;
|
|
}
|
|
} else {
|
|
e = _w.e;
|
|
if (e != null) {
|
|
e = _w.e;
|
|
value13 = e + dow;
|
|
e = _w.e;
|
|
if (e < 0 || _w.e > 6) {
|
|
r1 = true;
|
|
r4 = doy;
|
|
r5 = dow;
|
|
r7 = value13;
|
|
r8 = value12;
|
|
r10 = value11;
|
|
} else {
|
|
r1 = value9;
|
|
r4 = doy;
|
|
r5 = dow;
|
|
r7 = value13;
|
|
r8 = value12;
|
|
r10 = value11;
|
|
}
|
|
} else {
|
|
r1 = value9;
|
|
r4 = doy;
|
|
r5 = dow;
|
|
r7 = dow;
|
|
r8 = value12;
|
|
r10 = value11;
|
|
}
|
|
}
|
|
}
|
|
if (r8 < 1) {
|
|
getParsingFlags(a0)._overflowWeeks = true;
|
|
} else if (r8 > t_28102WeeksInYear(r10, r5, r4)) {
|
|
getParsingFlags(a0)._overflowWeeks = true;
|
|
} else if (r1 != null) {
|
|
getParsingFlags(a0)._overflowWeekday = true;
|
|
} else {
|
|
value29 = dayOfYearFromWeeks(r10, r8, r7, r5, r4);
|
|
a0._a[env0_17] = value29.year;
|
|
a0._dayOfYear = value29.dayOfYear;
|
|
}
|
|
}
|
|
_dayOfYear = a0._dayOfYear;
|
|
if (_dayOfYear != null) {
|
|
defaultsBinding = defaults;
|
|
_a = a0._a;
|
|
property = _a[env0_17];
|
|
value32 = defaultsBinding(property, r9[env0_17]);
|
|
_dayOfYear = a0._dayOfYear;
|
|
if (_dayOfYear > daysInYear(value32) || a0._dayOfYear === 0) {
|
|
getParsingFlags(a0)._overflowDayOfYear = true;
|
|
}
|
|
createUTCDateBinding = createUTCDate;
|
|
_dayOfYear = a0._dayOfYear;
|
|
uTCDate = createUTCDateBinding(value32, 0, _dayOfYear);
|
|
_a = a0._a;
|
|
binding = env0_18;
|
|
_a[binding] = uTCDate.getUTCMonth();
|
|
_a = a0._a;
|
|
binding = env0_19;
|
|
_a[binding] = uTCDate.getUTCDate();
|
|
}
|
|
_a = a0._a;
|
|
value36 = 0;
|
|
if (_a[value36] == null) {
|
|
r4 = value36;
|
|
while (true) {
|
|
_a = a0._a;
|
|
property = r9[r4];
|
|
items4[r4] = property;
|
|
_a[r4] = property;
|
|
value37 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (!(value37 < 3)) {
|
|
r8 = value37;
|
|
break;
|
|
}
|
|
_a = a0._a;
|
|
if (_a[value37] == null) {
|
|
r4 = value37;
|
|
continue;
|
|
}
|
|
r8 = value37;
|
|
break;
|
|
}
|
|
} else {
|
|
r8 = value36;
|
|
}
|
|
if (r8 < 7) {
|
|
while (true) {
|
|
_a = a0._a;
|
|
_a2 = a0._a;
|
|
if (_a2[r8] == null) {
|
|
if (r8 !== 2) {
|
|
r11 = value36;
|
|
continue;
|
|
}
|
|
r11 = 1;
|
|
continue;
|
|
r9 = r11;
|
|
} else {
|
|
_a3 = a0._a;
|
|
property = _a3[r8];
|
|
r9 = property;
|
|
}
|
|
items4[r8] = r9;
|
|
_a[r8] = r9;
|
|
value39 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
if (value39 < 7) {
|
|
r8 = value39;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
_a = a0._a;
|
|
r1 = _a[env0_20] === 24 && value36 === a0._a[env0_21];
|
|
r1 = r1 && value36 === a0._a[env0_22];
|
|
r1 = r1 && value36 === a0._a[env0_23];
|
|
if (r1) {
|
|
a0._nextDay = true;
|
|
a0._a[env0_20] = value36;
|
|
}
|
|
_useUTC = a0._useUTC;
|
|
r4 = _useUTC ? createUTCDate : createDate;
|
|
a0._d = r4.apply(null, items4);
|
|
_useUTC = a0._useUTC;
|
|
_d = a0._d;
|
|
r4 = _useUTC ? _d.getUTCDay() : _d.getDay();
|
|
if (a0._tzm != null) {
|
|
_d = a0._d;
|
|
_d.setUTCMinutes(a0._d.getUTCMinutes() - a0._tzm);
|
|
}
|
|
if (a0._nextDay) {
|
|
a0._a[env0_20] = 24;
|
|
}
|
|
_w = a0._w;
|
|
r1 = _w && a0._w.d !== undefined;
|
|
r1 = r1 && a0._w.d !== r4;
|
|
if (r1) {
|
|
getParsingFlags(a0).weekdayMismatch = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
function configFromISO(a0) { // fn#28189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:23316, owner: t_28102.configFromISO, offset: 0x00f7282e, size: 442 bytes, params: 2, frame: 25
|
|
var r4;
|
|
var r5;
|
|
var r6;
|
|
var r10;
|
|
var r102;
|
|
var r7;
|
|
var r3;
|
|
var getParsingFlagsBinding;
|
|
var value4;
|
|
var length;
|
|
var value6;
|
|
var property;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value15;
|
|
const _i = a0._i;
|
|
const r9 = env0_39.exec(_i) || env0_40.exec(_i);
|
|
if (r9) {
|
|
getParsingFlagsBinding = getParsingFlags;
|
|
value4 = undefined;
|
|
getParsingFlagsBinding(a0).iso = true;
|
|
length = env0_42.length;
|
|
value6 = 0;
|
|
if (value6 < length) {
|
|
r4 = value6;
|
|
loopExit5: while (true) {
|
|
property = env0_42[r4][1];
|
|
exec = property.exec;
|
|
if (Reflect.apply(exec, property, [r9[1]])) {
|
|
property = env0_42[r4][value6];
|
|
value8 = env0_42[r4][2] !== false;
|
|
r5 = property;
|
|
r6 = value8;
|
|
break loopExit5;
|
|
}
|
|
value7 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (value7 < length) {
|
|
r4 = value7;
|
|
continue;
|
|
}
|
|
r5 = value4;
|
|
r6 = value4;
|
|
break loopExit5;
|
|
}
|
|
} else {
|
|
r5 = value4;
|
|
r6 = value4;
|
|
}
|
|
if (r5 == null) {
|
|
a0._isValid = false;
|
|
return value4;
|
|
}
|
|
if (r9[3]) {
|
|
length = env0_43.length;
|
|
if (value6 < length) {
|
|
r10 = value6;
|
|
loopExit11: while (true) {
|
|
property = env0_43[r10][1];
|
|
exec = property.exec;
|
|
if (Reflect.apply(exec, property, [r9[3]])) {
|
|
property = r9[2];
|
|
if (property) {
|
|
r102 = property;
|
|
continue;
|
|
}
|
|
value10 = ' ';
|
|
r102 = value10;
|
|
value11 = r102 + env0_43[r10][value6];
|
|
r7 = value11;
|
|
break loopExit11;
|
|
}
|
|
value9 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
|
if (value9 < length) {
|
|
r10 = value9;
|
|
continue;
|
|
}
|
|
r7 = value4;
|
|
break loopExit11;
|
|
}
|
|
} else {
|
|
r7 = value4;
|
|
}
|
|
if (r7 == null) {
|
|
a0._isValid = false;
|
|
return value4;
|
|
}
|
|
r3 = r7;
|
|
if (r6) {
|
|
if (r9[4]) {
|
|
if (env0_41.exec(r9[4])) {
|
|
r4 = 'Z';
|
|
r3 = !r3 ? '' : r3;
|
|
value15 = r5 + r3;
|
|
r4 = !r4 ? '' : r4;
|
|
a0._f = value15 + r4;
|
|
configFromStringAndFormat(a0);
|
|
return undefined;
|
|
}
|
|
a0._isValid = false;
|
|
return value4;
|
|
}
|
|
r4 = value4;
|
|
r3 = !r3 ? '' : r3;
|
|
value15 = r5 + r3;
|
|
r4 = !r4 ? '' : r4;
|
|
a0._f = value15 + r4;
|
|
configFromStringAndFormat(a0);
|
|
return undefined;
|
|
}
|
|
if (r3 == null) {
|
|
if (r9[4]) {
|
|
if (env0_41.exec(r9[4])) {
|
|
r4 = 'Z';
|
|
r3 = !r3 ? '' : r3;
|
|
value15 = r5 + r3;
|
|
r4 = !r4 ? '' : r4;
|
|
a0._f = value15 + r4;
|
|
configFromStringAndFormat(a0);
|
|
return undefined;
|
|
}
|
|
a0._isValid = false;
|
|
return value4;
|
|
}
|
|
r4 = value4;
|
|
r3 = !r3 ? '' : r3;
|
|
value15 = r5 + r3;
|
|
r4 = !r4 ? '' : r4;
|
|
a0._f = value15 + r4;
|
|
configFromStringAndFormat(a0);
|
|
return undefined;
|
|
}
|
|
a0._isValid = false;
|
|
return value4;
|
|
}
|
|
r3 = value4;
|
|
if (r6) {
|
|
if (r9[4]) {
|
|
if (env0_41.exec(r9[4])) {
|
|
r4 = 'Z';
|
|
r3 = !r3 ? '' : r3;
|
|
value15 = r5 + r3;
|
|
r4 = !r4 ? '' : r4;
|
|
a0._f = value15 + r4;
|
|
configFromStringAndFormat(a0);
|
|
return undefined;
|
|
}
|
|
a0._isValid = false;
|
|
return value4;
|
|
}
|
|
r4 = value4;
|
|
r3 = !r3 ? '' : r3;
|
|
value15 = r5 + r3;
|
|
r4 = !r4 ? '' : r4;
|
|
a0._f = value15 + r4;
|
|
configFromStringAndFormat(a0);
|
|
return undefined;
|
|
}
|
|
if (r3 == null) {
|
|
if (r9[4]) {
|
|
if (env0_41.exec(r9[4])) {
|
|
r4 = 'Z';
|
|
r3 = !r3 ? '' : r3;
|
|
value15 = r5 + r3;
|
|
r4 = !r4 ? '' : r4;
|
|
a0._f = value15 + r4;
|
|
configFromStringAndFormat(a0);
|
|
return undefined;
|
|
}
|
|
a0._isValid = false;
|
|
return value4;
|
|
}
|
|
r4 = value4;
|
|
r3 = !r3 ? '' : r3;
|
|
value15 = r5 + r3;
|
|
r4 = !r4 ? '' : r4;
|
|
a0._f = value15 + r4;
|
|
configFromStringAndFormat(a0);
|
|
return undefined;
|
|
}
|
|
a0._isValid = false;
|
|
return value4;
|
|
}
|
|
a0._isValid = false;
|
|
}
|
|
|
|
function configFromRFC2822(a0) { // fn#28191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:24214, owner: t_28102.configFromRFC2822, offset: 0x00f72a2a, size: 607 bytes, params: 2, frame: 24
|
|
var r6;
|
|
var r3;
|
|
var property;
|
|
var property2;
|
|
var property3;
|
|
var property4;
|
|
var property5;
|
|
var property6;
|
|
var items2;
|
|
var parseInt;
|
|
var value8;
|
|
var Date;
|
|
var property7;
|
|
var property8;
|
|
var date;
|
|
var value13;
|
|
var int;
|
|
var value15;
|
|
var createUTCDateBinding;
|
|
var _d;
|
|
let binding = env0_45;
|
|
const exec = binding.exec;
|
|
const _i = a0._i;
|
|
const value4 = _i.replace(RegExp('\\([^)]*\\)|[\\n\\t]', 'g'), ' ').replace(RegExp('(\\s\\s+)', 'g'),
|
|
' ').replace(RegExp('^\\s\\s*', ''), '');
|
|
const value5 = Reflect.apply(exec, binding, [value4.replace(RegExp('\\s\\s*$', ''), '')]);
|
|
if (value5) {
|
|
property = value5[4];
|
|
property2 = value5[3];
|
|
property3 = value5[2];
|
|
property4 = value5[5];
|
|
property5 = value5[6];
|
|
property6 = value5[7];
|
|
items2 = [untruncateYear(property)];
|
|
binding = env0_28;
|
|
items2[1] = binding.indexOf(property2);
|
|
parseInt = global.parseInt;
|
|
items2[2] = parseInt(property3, 10);
|
|
parseInt = global.parseInt;
|
|
items2[3] = parseInt(property4, 10);
|
|
parseInt = global.parseInt;
|
|
items2[4] = parseInt(property5, 10);
|
|
if (property6) {
|
|
items2.push(global.parseInt(property6, 10));
|
|
}
|
|
property = value5[1];
|
|
if (property) {
|
|
value8 = env0_31.indexOf(property);
|
|
Date = global.Date;
|
|
property = items2[0];
|
|
property7 = items2[1];
|
|
property8 = items2[2];
|
|
date = new Date();
|
|
r6 = value8 === date.getDay();
|
|
} else {
|
|
r6 = !property;
|
|
}
|
|
if (!r6) {
|
|
getParsingFlags(a0).weekdayMismatch = true;
|
|
value13 = false;
|
|
a0._isValid = value13;
|
|
r6 = value13;
|
|
}
|
|
if (r6) {
|
|
a0._a = items2;
|
|
property = value5[8];
|
|
if (property) {
|
|
property = env0_46[property];
|
|
r3 = property;
|
|
} else if (value5[9]) {
|
|
r3 = 0;
|
|
} else {
|
|
int = global.parseInt(value5[10], 10);
|
|
value15 = int % 100;
|
|
r3 = (int - value15) / 100 * 60 + value15;
|
|
}
|
|
a0._tzm = r3;
|
|
createUTCDateBinding = createUTCDate;
|
|
a0._d = createUTCDateBinding.apply(null, a0._a);
|
|
_d = a0._d;
|
|
_d.setUTCMinutes(a0._d.getUTCMinutes() - a0._tzm);
|
|
getParsingFlags(a0).rfc2822 = true;
|
|
return undefined;
|
|
}
|
|
} else {
|
|
a0._isValid = false;
|
|
}
|
|
}
|
|
|
|
function configFromStringAndFormat(a0) { // fn#28192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:25062, owner: t_28102.configFromStringAndFormat, offset: 0x00f72c89, size: 812 bytes, params: 2, frame: 33
|
|
var r14;
|
|
var r8;
|
|
var r9;
|
|
var r12;
|
|
var r4;
|
|
var r15;
|
|
var r16;
|
|
var r3;
|
|
var r6;
|
|
var r7;
|
|
var getParsingFlagsBinding;
|
|
var value3;
|
|
var length;
|
|
var expandFormatBinding;
|
|
var _locale;
|
|
var length2;
|
|
var value6;
|
|
var property;
|
|
var value7;
|
|
var property2;
|
|
var substr;
|
|
var indexOf;
|
|
var value8;
|
|
var length3;
|
|
var unusedInput;
|
|
var slice;
|
|
var value9;
|
|
var length4;
|
|
var value10;
|
|
var length5;
|
|
var value11;
|
|
var _strict;
|
|
var value12;
|
|
var unusedTokens;
|
|
var parsingFlags;
|
|
var value14;
|
|
var length6;
|
|
var _a;
|
|
var parsingFlagsBinding;
|
|
var parsingFlagsBinding2;
|
|
var _meridiem;
|
|
var binding;
|
|
var isPM2;
|
|
let _f = a0._f;
|
|
const ISO_8601 = hooks.ISO_8601;
|
|
if (_f !== ISO_8601) {
|
|
_f = a0._f;
|
|
if (_f !== hooks.RFC_2822) {
|
|
a0._a = [];
|
|
getParsingFlags(a0).empty = true;
|
|
value3 = String(a0._i);
|
|
length = value3.length;
|
|
expandFormatBinding = expandFormat;
|
|
_f = a0._f;
|
|
_locale = a0._locale;
|
|
r14 = expandFormatBinding(_f, _locale).match(env0_8) || [];
|
|
length2 = r14.length;
|
|
value6 = 0;
|
|
if (value6 < length2) {
|
|
r8 = value6;
|
|
r9 = value3;
|
|
r12 = value6;
|
|
while (true) {
|
|
property = r14[r12];
|
|
value7 = r9.match(getParseRegexForToken(property, a0));
|
|
r4 = value7 || [];
|
|
property2 = r4[value6];
|
|
if (!property2) {
|
|
r15 = r8;
|
|
r16 = r9;
|
|
continue;
|
|
}
|
|
substr = r9.substr;
|
|
indexOf = r9.indexOf;
|
|
value8 = Reflect.apply(substr, r9, [value6, Reflect.apply(indexOf, r9, [property2])]);
|
|
length3 = value8.length;
|
|
if (!(length3 > value6)) {
|
|
continue;
|
|
}
|
|
unusedInput = getParsingFlags(a0).unusedInput;
|
|
unusedInput.push(value8);
|
|
slice = r9.slice;
|
|
value9 = r9.indexOf(property2);
|
|
length4 = property2.length;
|
|
value10 = Reflect.apply(slice, r9, [value9 + length4]);
|
|
length5 = property2.length;
|
|
value11 = r8 + length5;
|
|
r15 = value11;
|
|
r16 = value10;
|
|
if (env0_11[property]) {
|
|
parsingFlags = getParsingFlags(a0);
|
|
if (property2) {
|
|
parsingFlags.empty = false;
|
|
} else {
|
|
unusedTokens = parsingFlags.unusedTokens;
|
|
unusedTokens.push(property);
|
|
}
|
|
addTimeToArrayFromToken(property, property2, a0);
|
|
} else {
|
|
_strict = a0._strict;
|
|
if (!_strict) {
|
|
r4 = _strict;
|
|
continue;
|
|
}
|
|
value12 = !property2;
|
|
r4 = value12;
|
|
if (!r4) {
|
|
continue;
|
|
}
|
|
unusedTokens = getParsingFlags(a0).unusedTokens;
|
|
unusedTokens.push(property);
|
|
}
|
|
value14 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
|
|
length6 = r14.length;
|
|
if (value14 < length6) {
|
|
r8 = r15;
|
|
r9 = r16;
|
|
r12 = value14;
|
|
continue;
|
|
}
|
|
r3 = r15;
|
|
r6 = r16;
|
|
break;
|
|
}
|
|
} else {
|
|
r3 = value6;
|
|
r6 = value3;
|
|
}
|
|
getParsingFlags(a0).charsLeftOver = length - r3;
|
|
length = r6.length;
|
|
if (length > value6) {
|
|
getParsingFlags(a0).unusedInput.push(r6);
|
|
}
|
|
_a = a0._a;
|
|
r3 = _a[env0_20] <= 12 && getParsingFlags(a0).bigHour === true;
|
|
r3 = r3 && a0._a[env0_20] > value6;
|
|
if (r3) {
|
|
getParsingFlags(a0).bigHour = undefined;
|
|
}
|
|
getParsingFlagsBinding = getParsingFlags;
|
|
parsingFlagsBinding = getParsingFlagsBinding(a0);
|
|
_a = a0._a;
|
|
parsingFlagsBinding.parsedDateParts = _a.slice(value6);
|
|
parsingFlagsBinding2 = getParsingFlagsBinding(a0);
|
|
_meridiem = a0._meridiem;
|
|
parsingFlagsBinding2.meridiem = _meridiem;
|
|
_a = a0._a;
|
|
binding = env0_20;
|
|
_locale = a0._locale;
|
|
property = a0._a[env0_20];
|
|
_meridiem = a0._meridiem;
|
|
if (_meridiem == null) {
|
|
r3 = property;
|
|
} else {
|
|
if (_locale.meridiemHour != null) {
|
|
r6 = _locale.meridiemHour(property, _meridiem);
|
|
} else if (_locale.isPM == null) {
|
|
r6 = property;
|
|
} else {
|
|
isPM2 = _locale.isPM(_meridiem);
|
|
r7 = isPM2 && property < 12 ? property + 12 : property;
|
|
r7 = !(isPM2 || r7 !== 12) ? value6 : r7;
|
|
r6 = r7;
|
|
}
|
|
r3 = r6;
|
|
}
|
|
_a[binding] = r3;
|
|
configFromArray(a0);
|
|
checkOverflow(a0);
|
|
} else {
|
|
configFromRFC2822(a0);
|
|
}
|
|
} else {
|
|
configFromISO(a0);
|
|
}
|
|
}
|
|
|
|
function prepareConfig(a0) { // fn#28193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:26193, owner: t_28102.prepareConfig, offset: 0x00f72fb5, size: 611 bytes, params: 2, frame: 27
|
|
var environment;
|
|
var r2;
|
|
var r3;
|
|
var r8;
|
|
var r9;
|
|
var r10;
|
|
var r16;
|
|
var r13;
|
|
var r15;
|
|
var r6;
|
|
var r7;
|
|
var r0;
|
|
var value2;
|
|
var localeData_28185Binding;
|
|
var _l;
|
|
var value3;
|
|
var value4;
|
|
var preparse;
|
|
var value5;
|
|
var value6;
|
|
var length;
|
|
var value7;
|
|
var copyConfigBinding;
|
|
var object;
|
|
var _useUTC;
|
|
var getParsingFlagsBinding;
|
|
var charsLeftOver;
|
|
var value8;
|
|
var unusedTokens;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var t_28102ExtendBinding;
|
|
var parsingFlags;
|
|
var Date;
|
|
var NaN;
|
|
var prototype;
|
|
var value14;
|
|
var date;
|
|
var value15;
|
|
var moment;
|
|
let value = a0;
|
|
const _i = value._i;
|
|
let _f = value._f;
|
|
let _locale = value._locale;
|
|
reducibleJoin2: while (true) {
|
|
if (_locale) {
|
|
r2 = _locale;
|
|
break reducibleJoin2;
|
|
}
|
|
value2 = environment;
|
|
localeData_28185Binding = localeData_28185;
|
|
_l = value._l;
|
|
value3 = localeData_28185Binding(_l);
|
|
r2 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
value._locale = r2;
|
|
reducibleJoin32: while (true) {
|
|
reducibleJoin31: while (true) {
|
|
if (_i === null) {
|
|
break reducibleJoin31;
|
|
}
|
|
value4 = undefined;
|
|
if (value4 === _f) {
|
|
if (_i === '') {
|
|
break reducibleJoin31;
|
|
}
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (typeof _i !== 'string') {
|
|
r3 = _i;
|
|
break reducibleJoin7;
|
|
}
|
|
_locale = value._locale;
|
|
preparse = _locale.preparse;
|
|
value5 = Reflect.apply(preparse, _locale, [_i]);
|
|
value._i = value5;
|
|
r3 = value5;
|
|
break reducibleJoin7;
|
|
}
|
|
value6 = environment;
|
|
if (isMoment(r3)) {
|
|
checkOverflow(r3);
|
|
prototype = Moment.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Moment}});
|
|
moment = new Moment();
|
|
value = moment instanceof Object ? moment : value;
|
|
r0 = value;
|
|
} else {
|
|
if (isDate_28108(r3)) {
|
|
value._d = r3;
|
|
} else if (t_28102IsArray(_f)) {
|
|
_f = value._f;
|
|
length = _f.length;
|
|
value7 = 0;
|
|
if (value7 === length) {
|
|
parsingFlags = getParsingFlags(value);
|
|
parsingFlags.invalidFormat = true;
|
|
Date = global.Date;
|
|
NaN = global.NaN;
|
|
prototype = Date.prototype;
|
|
value14 = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value15 = date instanceof Object ? date : value14;
|
|
value._d = value15;
|
|
} else {
|
|
_f = value._f;
|
|
length = _f.length;
|
|
if (value7 < length) {
|
|
r8 = value7;
|
|
r9 = value4;
|
|
r10 = value4;
|
|
reducibleLoop15: while (true) {
|
|
copyConfigBinding = copyConfig;
|
|
object = {};
|
|
copyConfigBinding(object, value);
|
|
_useUTC = value._useUTC;
|
|
reducibleJoin17: while (true) {
|
|
if (_useUTC == null) {
|
|
break reducibleJoin17;
|
|
}
|
|
_useUTC = value._useUTC;
|
|
object._useUTC = _useUTC;
|
|
break reducibleJoin17;
|
|
}
|
|
_f = value._f;
|
|
object._f = _f[r8];
|
|
configFromStringAndFormat(object);
|
|
reducibleJoin22: while (true) {
|
|
if (t_28102IsValid(object)) {
|
|
getParsingFlagsBinding = getParsingFlags;
|
|
charsLeftOver = getParsingFlagsBinding(object).charsLeftOver;
|
|
value8 = value7 + charsLeftOver;
|
|
unusedTokens = getParsingFlagsBinding(object).unusedTokens;
|
|
length = unusedTokens.length;
|
|
value9 = value8 + 10 * length;
|
|
getParsingFlagsBinding(object).score = value9;
|
|
value10 = r9 == null;
|
|
reducibleJoin20: while (true) {
|
|
if (value10) {
|
|
r16 = value10;
|
|
break reducibleJoin20;
|
|
}
|
|
value11 = value9 < r9;
|
|
r16 = value11;
|
|
break reducibleJoin20;
|
|
}
|
|
if (r16) {
|
|
r9 = value9;
|
|
r10 = object;
|
|
}
|
|
r13 = r10;
|
|
r15 = r9;
|
|
break reducibleJoin22;
|
|
}
|
|
r13 = r10;
|
|
r15 = r9;
|
|
break reducibleJoin22;
|
|
}
|
|
value12 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
_f = value._f;
|
|
length = _f.length;
|
|
if (value12 < length) {
|
|
r8 = value12;
|
|
r9 = r15;
|
|
r10 = r13;
|
|
continue reducibleLoop15;
|
|
}
|
|
r6 = r13;
|
|
r7 = object;
|
|
break reducibleLoop15;
|
|
}
|
|
} else {
|
|
r6 = value4;
|
|
r7 = value4;
|
|
}
|
|
t_28102ExtendBinding = t_28102Extend;
|
|
if (!r6) {
|
|
r6 = r7;
|
|
}
|
|
t_28102ExtendBinding(value, r6);
|
|
}
|
|
} else if (_f) {
|
|
configFromStringAndFormat(value);
|
|
} else {
|
|
configFromInput(value);
|
|
}
|
|
reducibleJoin30: while (true) {
|
|
if (t_28102IsValid(value)) {
|
|
r0 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
value._d = null;
|
|
r0 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
value = environment;
|
|
value = invalid_28116({nullInput: true});
|
|
r0 = value;
|
|
break reducibleJoin32;
|
|
}
|
|
return r0;
|
|
function configFromInput(a0) { // fn#28194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:26928, owner: t_28102.prepareConfig.configFromInput, offset: 0x00f73218, size: 460 bytes, params: 2, frame: 17
|
|
var environment;
|
|
var binding;
|
|
var value3;
|
|
const _i = a0._i;
|
|
const value = environment.__proto__;
|
|
if (t_28102IsUndefined(_i)) {
|
|
a0._d = new global.Date(hooks.now());
|
|
} else if (isDate_28108(_i)) {
|
|
a0._d = new global.Date(_i.valueOf());
|
|
} else if (typeof _i === 'string') {
|
|
binding = env1_44;
|
|
value3 = binding.exec(a0._i);
|
|
if (value3 === null) {
|
|
configFromISO(a0);
|
|
if (a0._isValid === false) {
|
|
delete a0._isValid;
|
|
configFromRFC2822(a0);
|
|
if (a0._isValid === false) {
|
|
delete a0._isValid;
|
|
hooks.createFromInputFallback(a0);
|
|
}
|
|
}
|
|
} else {
|
|
a0._d = new global.Date(Number(value3[1]));
|
|
}
|
|
} else if (t_28102IsArray(_i)) {
|
|
a0._a = t_28102Map(_i.slice(0), function(a0) {
|
|
return (0, global.parseInt)(a0, 10);
|
|
});
|
|
configFromArray(a0);
|
|
} else if (t_28102IsObject(_i)) {
|
|
configFromObject(a0);
|
|
} else if (t_28102IsNumber(_i)) {
|
|
a0._d = new global.Date(_i);
|
|
} else {
|
|
hooks.createFromInputFallback(a0);
|
|
}
|
|
function configFromObject(a0) { // fn#28196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:27397, owner: t_28102.prepareConfig.configFromInput.configFromObject, offset: 0x00f733e4, size: 154 bytes, params: 2, frame: 17
|
|
var environment;
|
|
var value;
|
|
var value2;
|
|
if (!a0._d) {
|
|
value = environment.__proto__.__proto__;
|
|
value2 = normalizeObjectUnits(a0._i);
|
|
a0._a = t_28102Map([value2.year, value2.month, value2.day || value2.date, value2.hour, value2.minute,
|
|
value2.second,
|
|
value2.millisecond], function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value) {
|
|
value = (0, global.parseInt)(value, 10);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
configFromArray(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createLocalOrUTC(a0, a1, a2, a3, a4) { // fn#28198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:27707, owner: t_28102.createLocalOrUTC, offset: 0x00f7349c, size: 309 bytes, params: 6, frame: 28
|
|
var r2;
|
|
var r5;
|
|
var r15;
|
|
var r9;
|
|
var r8;
|
|
var value7;
|
|
var Object;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty2;
|
|
var value11;
|
|
let value = a0;
|
|
const value2 = a2;
|
|
const value3 = a3;
|
|
const value4 = true;
|
|
if (value4 !== value2 && value2 !== false) {
|
|
r2 = value3;
|
|
r5 = value2;
|
|
} else {
|
|
value7 = undefined;
|
|
r2 = value2;
|
|
r5 = value7;
|
|
}
|
|
const t_28102IsObjectBinding = t_28102IsObject;
|
|
const value9 = undefined;
|
|
const value10 = t_28102IsObjectBinding(value);
|
|
if (value10) {
|
|
Object = global.Object;
|
|
if (Object.getOwnPropertyNames) {
|
|
Object = global.Object;
|
|
r9 = Object.getOwnPropertyNames(value).length === 0;
|
|
} else {
|
|
properties = Object.keys(value);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties === value9) {
|
|
r9 = value4;
|
|
} else {
|
|
r15 = properties2;
|
|
while (true) {
|
|
propertyName = properties[r15];
|
|
propertyName2 = r15 + 1;
|
|
if (propertyName === value9) {
|
|
r9 = value4;
|
|
break;
|
|
}
|
|
hasOwnProperty2 = value.hasOwnProperty(propertyName);
|
|
value11 = false;
|
|
if (hasOwnProperty2) {
|
|
r9 = value11;
|
|
break;
|
|
}
|
|
r15 = propertyName2;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
r8 = r9;
|
|
} else {
|
|
r8 = value10;
|
|
}
|
|
r8 = !r8 ? t_28102IsArray(value) && value.length === 0 : r8;
|
|
const r3 = r8 ? value9 : value;
|
|
const checkOverflowBinding = checkOverflow;
|
|
value = prepareConfig({_isAMomentObject: value4, _isUTC: a4, _useUTC: a4, _l: r5, _i: r3, _f: a1, _strict: r2});
|
|
checkOverflowBinding(value);
|
|
const moment = new Moment(value);
|
|
if (moment._nextDay) {
|
|
moment.add(1, 'd');
|
|
moment._nextDay = value9;
|
|
}
|
|
return moment;
|
|
}
|
|
|
|
function t_28102PickBy(a0, a1) { // fn#28200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:29251, owner: t_28102.pickBy, offset: 0x00f735ee, size: 160 bytes, params: 3, frame: 16
|
|
var r0;
|
|
var r2;
|
|
var r4;
|
|
var r1;
|
|
var r6;
|
|
var property;
|
|
let value = a1;
|
|
let length = value.length;
|
|
const value2 = 1;
|
|
const r3 = value2 === length && t_28102IsArray(value[0]) ? value[0] : value;
|
|
length = r3.length;
|
|
if (length) {
|
|
property = r3[0];
|
|
length = r3.length;
|
|
if (value2 < length) {
|
|
r2 = property;
|
|
r4 = value2;
|
|
while (true) {
|
|
property = r3[r4];
|
|
value = property.isValid();
|
|
r1 = value && !r3[r4][a0](r2);
|
|
if (r1) {
|
|
r6 = r2;
|
|
continue;
|
|
}
|
|
property = r3[r4];
|
|
r6 = property;
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = r3.length;
|
|
if (value < length) {
|
|
r2 = r6;
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
r0 = r6;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
}
|
|
return createLocal_2();
|
|
}
|
|
|
|
function Duration(a0) { // fn#28201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:29515, owner: t_28102.Duration, offset: 0x00f7368e, size: 482 bytes, params: 2, frame: 35
|
|
var r21;
|
|
var r14;
|
|
var r16;
|
|
var r20;
|
|
var r10;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var binding;
|
|
var call;
|
|
var value12;
|
|
var value13;
|
|
var isNaN;
|
|
var length;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var parseFloat;
|
|
var float;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var _bubble;
|
|
const value2 = normalizeObjectUnits(a0);
|
|
let year = value2.year;
|
|
reducibleJoin2: while (true) {
|
|
if (year) {
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = 0;
|
|
year = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
let quarter = value2.quarter;
|
|
reducibleJoin4: while (true) {
|
|
if (quarter) {
|
|
break reducibleJoin4;
|
|
}
|
|
value4 = 0;
|
|
quarter = value4;
|
|
break reducibleJoin4;
|
|
}
|
|
let month = value2.month;
|
|
reducibleJoin6: while (true) {
|
|
if (month) {
|
|
break reducibleJoin6;
|
|
}
|
|
value5 = 0;
|
|
month = value5;
|
|
break reducibleJoin6;
|
|
}
|
|
let week = value2.week;
|
|
reducibleJoin8: while (true) {
|
|
if (week) {
|
|
break reducibleJoin8;
|
|
}
|
|
value6 = 0;
|
|
week = value6;
|
|
break reducibleJoin8;
|
|
}
|
|
let day = value2.day;
|
|
reducibleJoin10: while (true) {
|
|
if (day) {
|
|
break reducibleJoin10;
|
|
}
|
|
value7 = 0;
|
|
day = value7;
|
|
break reducibleJoin10;
|
|
}
|
|
let hour = value2.hour;
|
|
reducibleJoin12: while (true) {
|
|
if (hour) {
|
|
break reducibleJoin12;
|
|
}
|
|
value8 = 0;
|
|
hour = value8;
|
|
break reducibleJoin12;
|
|
}
|
|
let minute = value2.minute;
|
|
reducibleJoin14: while (true) {
|
|
if (minute) {
|
|
break reducibleJoin14;
|
|
}
|
|
value9 = 0;
|
|
minute = value9;
|
|
break reducibleJoin14;
|
|
}
|
|
let second = value2.second;
|
|
reducibleJoin16: while (true) {
|
|
if (second) {
|
|
break reducibleJoin16;
|
|
}
|
|
value10 = 0;
|
|
second = value10;
|
|
break reducibleJoin16;
|
|
}
|
|
let millisecond = value2.millisecond;
|
|
reducibleJoin18: while (true) {
|
|
if (millisecond) {
|
|
break reducibleJoin18;
|
|
}
|
|
value11 = 0;
|
|
millisecond = value11;
|
|
break reducibleJoin18;
|
|
}
|
|
const properties = Object.keys(value2);
|
|
const properties2 = 0;
|
|
const properties3 = properties.length;
|
|
reducibleJoin28: while (true) {
|
|
reducibleJoin23: while (true) {
|
|
if (properties !== undefined) {
|
|
r21 = properties2;
|
|
reducibleLoop19: while (true) {
|
|
propertyName = properties[r21];
|
|
propertyName2 = r21 + 1;
|
|
if (propertyName === undefined) {
|
|
break reducibleJoin23;
|
|
}
|
|
binding = env0_26;
|
|
call = binding.call;
|
|
value12 = Reflect.apply(call, binding, [env0_47, propertyName]);
|
|
value13 = false;
|
|
if (value12 === -1) {
|
|
r10 = value13;
|
|
break reducibleJoin28;
|
|
}
|
|
if (value2[propertyName] == null) {
|
|
r21 = propertyName2;
|
|
continue reducibleLoop19;
|
|
}
|
|
isNaN = global.isNaN;
|
|
if (isNaN(value2[propertyName])) {
|
|
r10 = value13;
|
|
break reducibleJoin28;
|
|
}
|
|
r21 = propertyName2;
|
|
continue reducibleLoop19;
|
|
}
|
|
this._isValid = r10;
|
|
value18 = Number(millisecond);
|
|
value19 = 1000 * second;
|
|
value20 = 60000 * minute;
|
|
value21 = 1000 * hour;
|
|
value22 = value18 + value19 + value20;
|
|
this._milliseconds = value22 + value21 * 60 * 60;
|
|
value23 = Number(day);
|
|
this._days = value23 + 7 * week;
|
|
value24 = Number(month);
|
|
value25 = 3 * quarter;
|
|
value26 = 12 * year;
|
|
this._months = value24 + value25 + value26;
|
|
this._data = {};
|
|
this._locale = localeData_28185();
|
|
_bubble = this._bubble;
|
|
Reflect.apply(_bubble, this, []);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin23;
|
|
}
|
|
length = env0_47.length;
|
|
value14 = 0;
|
|
value15 = false;
|
|
value16 = true;
|
|
if (!(value14 < length)) {
|
|
r10 = value16;
|
|
break reducibleJoin28;
|
|
}
|
|
r14 = value15;
|
|
r16 = value14;
|
|
reducibleLoop24: while (true) {
|
|
if (value2[env0_47[r16]]) {
|
|
reducibleJoin27: while (true) {
|
|
reducibleJoin28: while (true) {
|
|
if (r14) {
|
|
r10 = value15;
|
|
break reducibleJoin28;
|
|
}
|
|
parseFloat = global.parseFloat;
|
|
float = parseFloat(value2[env0_47[r16]]);
|
|
if (float === toInt(value2[env0_47[r16]])) {
|
|
r20 = r14;
|
|
break reducibleJoin27;
|
|
}
|
|
r20 = value16;
|
|
break reducibleJoin27;
|
|
}
|
|
this._isValid = r10;
|
|
value18 = Number(millisecond);
|
|
value19 = 1000 * second;
|
|
value20 = 60000 * minute;
|
|
value21 = 1000 * hour;
|
|
value22 = value18 + value19 + value20;
|
|
this._milliseconds = value22 + value21 * 60 * 60;
|
|
value23 = Number(day);
|
|
this._days = value23 + 7 * week;
|
|
value24 = Number(month);
|
|
value25 = 3 * quarter;
|
|
value26 = 12 * year;
|
|
this._months = value24 + value25 + value26;
|
|
this._data = {};
|
|
this._locale = localeData_28185();
|
|
_bubble = this._bubble;
|
|
Reflect.apply(_bubble, this, []);
|
|
return undefined;
|
|
}
|
|
} else {
|
|
r20 = r14;
|
|
}
|
|
value17 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
|
|
length = env0_47.length;
|
|
if (value17 < length) {
|
|
r14 = r20;
|
|
r16 = value17;
|
|
continue reducibleLoop24;
|
|
}
|
|
r10 = value16;
|
|
break reducibleJoin28;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
this._isValid = r10;
|
|
this._milliseconds = Number(millisecond) + 1000 * second + 60000 * minute + 1000 * hour * 60 * 60;
|
|
this._days = Number(day) + 7 * week;
|
|
this._months = Number(month) + 3 * quarter + 12 * year;
|
|
this._data = {};
|
|
this._locale = localeData_28185();
|
|
this._bubble();
|
|
}
|
|
|
|
function offset(a0, a1) { // fn#28204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:30181, owner: t_28102.offset, offset: 0x00f738bf, size: 38 bytes, params: 3, frame: 16
|
|
const env0_0 = a1;
|
|
addFormatToken(a0, 0, 0, _fun28205);
|
|
function _fun28205() { // fn#28205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:30224, offset: 0x00f738e5, size: 106 bytes, params: 1, frame: 16
|
|
var r0;
|
|
var r6;
|
|
var value3;
|
|
let value = this.utcOffset();
|
|
if (value < 0) {
|
|
value = -value;
|
|
value3 = '-';
|
|
r0 = value;
|
|
r6 = value3;
|
|
} else {
|
|
r0 = value;
|
|
r6 = '+';
|
|
}
|
|
value = environment.__proto__;
|
|
const zeroFillBinding = zeroFill;
|
|
value = r6 + zeroFillBinding(~~(r0 / 60), 2);
|
|
value += require;
|
|
return value + zeroFillBinding(~~r0 % 60, 2);
|
|
}
|
|
|
|
}
|
|
|
|
function offsetFromString(a0, a1) { // fn#28206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:30523, owner: t_28102.offsetFromString, offset: 0x00f7394f, size: 158 bytes, params: 3, frame: 14
|
|
let value = a1;
|
|
value = (value || '').match(a0);
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
value = String(value[value.length - 1] || []);
|
|
value = value.match(env0_48);
|
|
const r4 = value || ['-', 0, 0];
|
|
value = 60 * r4[1];
|
|
value += toInt(r4[2]);
|
|
const value3 = 0;
|
|
return value3 === value ? value3 : r4[value3] === '+' ? value : -value;
|
|
}
|
|
|
|
function cloneWithOffset(a0, a1) { // fn#28207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:30706, owner: t_28102.cloneWithOffset, offset: 0x00f739ed, size: 181 bytes, params: 3, frame: 17
|
|
var r4;
|
|
var r0;
|
|
var value2;
|
|
var valueOf;
|
|
var value5;
|
|
var _d;
|
|
var setTime;
|
|
var _d2;
|
|
const _isUTC = a1._isUTC;
|
|
var value;
|
|
if (_isUTC) {
|
|
value2 = a1.clone();
|
|
r4 = isMoment(a0) || isDate_28108(a0) ? a0.valueOf() : createLocal_2(a0).valueOf();
|
|
valueOf = value2.valueOf;
|
|
value5 = r4 - Reflect.apply(valueOf, value2, []);
|
|
_d = value2._d;
|
|
setTime = _d.setTime;
|
|
_d2 = value2._d;
|
|
valueOf = _d2.valueOf;
|
|
Reflect.apply(setTime, _d, [Reflect.apply(valueOf, _d2, []) + value5]);
|
|
hooks.updateOffset(value2, false);
|
|
r0 = value2;
|
|
} else {
|
|
value = createLocal_2(a0);
|
|
value = value.local();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function duration(a0, a1) { // fn#28210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:31346, owner: t_28102.duration, offset: 0x00f73b04, size: 778 bytes, params: 3, frame: 22
|
|
var r4;
|
|
var r0;
|
|
var r6;
|
|
var r8;
|
|
var r7;
|
|
var value3;
|
|
var value4;
|
|
var createLocal_2Binding;
|
|
var local_2;
|
|
var local_22;
|
|
var object;
|
|
var value8;
|
|
var isBefore2;
|
|
var positiveMomentsDifferenceBinding;
|
|
var value9;
|
|
var value11;
|
|
var parseIsoBinding;
|
|
var value13;
|
|
var toIntBinding;
|
|
const value = a0;
|
|
if (isDuration(value)) {
|
|
r4 = {ms: value._milliseconds, d: value._days, M: value._months};
|
|
} else if (t_28102IsNumber(value)) {
|
|
object = {};
|
|
if (a1) {
|
|
object[a1] = value;
|
|
r4 = object;
|
|
} else {
|
|
object.milliseconds = value;
|
|
r4 = object;
|
|
}
|
|
} else {
|
|
value3 = env0_49.exec(value);
|
|
if (value3) {
|
|
value13 = 1;
|
|
r7 = value3[value13] !== '-' ? value13 : -1;
|
|
object = {y: 0};
|
|
toIntBinding = toInt;
|
|
object.d = toIntBinding(value3[env0_19]) * r7;
|
|
object.h = toIntBinding(value3[env0_20]) * r7;
|
|
object.m = toIntBinding(value3[env0_21]) * r7;
|
|
object.s = toIntBinding(value3[env0_22]) * r7;
|
|
object.ms = toIntBinding(absRound(1000 * value3[env0_23])) * r7;
|
|
r4 = object;
|
|
} else {
|
|
value4 = env0_50.exec(value);
|
|
if (value4) {
|
|
value11 = 1;
|
|
if (value4[value11] === '-') {
|
|
r8 = -1;
|
|
} else {
|
|
value4[value11];
|
|
r8 = value11;
|
|
}
|
|
object = {};
|
|
parseIsoBinding = parseIso;
|
|
object.y = parseIsoBinding(value4[2], r8);
|
|
object.M = parseIsoBinding(value4[3], r8);
|
|
object.w = parseIsoBinding(value4[4], r8);
|
|
object.d = parseIsoBinding(value4[5], r8);
|
|
object.h = parseIsoBinding(value4[6], r8);
|
|
object.m = parseIsoBinding(value4[7], r8);
|
|
object.s = parseIsoBinding(value4[8], r8);
|
|
r4 = object;
|
|
} else if (value == null) {
|
|
r4 = {};
|
|
} else {
|
|
r0 = typeof value === 'object' && ('from' in value || 'to' in value);
|
|
if (r0) {
|
|
createLocal_2Binding = createLocal_2;
|
|
local_2 = createLocal_2Binding(value.from);
|
|
local_22 = createLocal_2Binding(value.to);
|
|
if (local_2.isValid()) {
|
|
if (local_22.isValid()) {
|
|
value8 = cloneWithOffset(local_22, local_2);
|
|
isBefore2 = local_2.isBefore(value8);
|
|
positiveMomentsDifferenceBinding = positiveMomentsDifference;
|
|
if (isBefore2) {
|
|
r0 = positiveMomentsDifferenceBinding(local_2, value8);
|
|
} else {
|
|
value9 = positiveMomentsDifferenceBinding(value8, local_2);
|
|
value9.milliseconds = -value9.milliseconds;
|
|
value9.months = -value9.months;
|
|
r0 = value9;
|
|
}
|
|
r6 = r0;
|
|
} else {
|
|
r6 = {'milliseconds': 0, 'months': 0};
|
|
}
|
|
} else {
|
|
r6 = {'milliseconds': 0, 'months': 0};
|
|
}
|
|
r4 = {ms: r6.milliseconds, M: r6.months};
|
|
} else {
|
|
r4 = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const duration = new Duration();
|
|
if (isDuration(value) && hasOwnProp(value, '_locale')) {
|
|
duration._locale = value._locale;
|
|
}
|
|
return duration;
|
|
}
|
|
|
|
function createAdder(a0, a1) { // fn#28213, owner: t_28102.createAdder, offset: 0x00f73f17, size: 23 bytes, params: 3, frame: 2
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return _fun28214;
|
|
function _fun28214(a0, a1) { // fn#28214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:32650, offset: 0x00f73f2e, size: 159 bytes, params: 3, frame: 20
|
|
var r3;
|
|
var r5;
|
|
var value4;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
if (value2 === null || global.isNaN(Number(value2))) {
|
|
r3 = value;
|
|
r5 = value2;
|
|
} else {
|
|
value4 = environment.__proto__;
|
|
deprecateSimple(require,
|
|
'moment().' + require + '(period, number) is deprecated. Please use moment().' + require + '(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
|
|
r3 = value2;
|
|
r5 = value;
|
|
}
|
|
value = environment.__proto__;
|
|
addSubtract(this, duration(typeof r3 !== 'string' ? r3 : Number(r3), r5), env0_0);
|
|
return this;
|
|
}
|
|
|
|
}
|
|
|
|
function addSubtract(a0, {_milliseconds, _days, _months}, a2, a3) { // fn#28215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:32969, owner: t_28102.addSubtract, offset: 0x00f73fcd, size: 220 bytes, params: 5, frame: 22
|
|
var r3;
|
|
var _d;
|
|
var hooksBinding;
|
|
const value = a3;
|
|
const absRoundBinding = absRound;
|
|
const value3 = absRoundBinding(_days);
|
|
const value4 = absRoundBinding(_months);
|
|
if (a0.isValid()) {
|
|
r3 = value == null || value;
|
|
if (value4) {
|
|
t_28102SetMonth(a0, t_28102Get(a0, 'Month') + value4 * a2);
|
|
}
|
|
if (value3) {
|
|
set$1(a0, 'Date', t_28102Get(a0, 'Date') + value3 * a2);
|
|
}
|
|
if (_milliseconds) {
|
|
_d = a0._d;
|
|
_d.setTime(a0._d.valueOf() + _milliseconds * a2);
|
|
}
|
|
if (r3) {
|
|
hooksBinding = hooks;
|
|
hooksBinding.updateOffset(a0, value3 || value4);
|
|
}
|
|
}
|
|
}
|
|
|
|
function t_28102Locale_28217(a0) { // fn#28217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:33602, owner: t_28102.locale, offset: 0x00f7416d, size: 58 bytes, params: 2, frame: 12
|
|
var r0;
|
|
var value3;
|
|
const value = this;
|
|
if (a0 === undefined) {
|
|
r0 = value._locale._abbr;
|
|
} else {
|
|
value3 = localeData_28185(a0);
|
|
if (value3 == null) {
|
|
r0 = value;
|
|
} else {
|
|
value._locale = value3;
|
|
r0 = value;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function getSetWeekYearHelper(a0, a1, a2, a3, a4) { // fn#28220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:34147, owner: t_28102.getSetWeekYearHelper, offset: 0x00f741e1, size: 104 bytes, params: 6, frame: 21
|
|
var r0;
|
|
var value3;
|
|
let value = a1;
|
|
if (a0 == null) {
|
|
r0 = weekOfYear(this, a3, a4).year;
|
|
} else {
|
|
value3 = t_28102WeeksInYear(a0, a3, a4);
|
|
value = setWeekAll.call(this, a0, value > value3 ? value3 : value, a2, a3, a4);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function setWeekAll(a0, a1, a2, a3, a4) { // fn#28221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:34301, owner: t_28102.setWeekAll, offset: 0x00f74249, size: 123 bytes, params: 6, frame: 21
|
|
const value2 = dayOfYearFromWeeks(a0, a1, a2, a3, a4);
|
|
const createUTCDateBinding = createUTCDate;
|
|
let year = value2.year;
|
|
const uTCDateBinding = createUTCDateBinding(year, 0, value2.dayOfYear);
|
|
year = this.year;
|
|
const getUTCFullYear = uTCDateBinding.getUTCFullYear;
|
|
Reflect.apply(year, this, [Reflect.apply(getUTCFullYear, uTCDateBinding, [])]);
|
|
const month = this.month;
|
|
const getUTCMonth = uTCDateBinding.getUTCMonth;
|
|
Reflect.apply(month, this, [Reflect.apply(getUTCMonth, uTCDateBinding, [])]);
|
|
const date = this.date;
|
|
const getUTCDate = uTCDateBinding.getUTCDate;
|
|
Reflect.apply(date, this, [Reflect.apply(getUTCDate, uTCDateBinding, [])]);
|
|
return this;
|
|
}
|
|
|
|
function parseMs(a0, a1) { // fn#28222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:37361, owner: t_28102.parseMs, offset: 0x00f742c4, size: 50 bytes, params: 3, frame: 13
|
|
a1[env0_23] = toInt(1000 * ('0.' + a0));
|
|
}
|
|
|
|
function get$1(a0, a1, a2, a3) { // fn#28224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:47933, owner: t_28102.get$1, offset: 0x00f742f6, size: 56 bytes, params: 5, frame: 14
|
|
const value2 = localeData_28185();
|
|
let value = utc_28112();
|
|
value = value.set(a3, a1);
|
|
return value2[a2](value, a0);
|
|
}
|
|
|
|
function listWeekdaysImpl(a0, a1, a2, a3) { // fn#28226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:48184, owner: t_28102.listWeekdaysImpl, offset: 0x00f743a6, size: 222 bytes, params: 5, frame: 23
|
|
var r4;
|
|
var r0;
|
|
var r2;
|
|
var r1;
|
|
var r7;
|
|
var dow;
|
|
var value6;
|
|
var value7;
|
|
var value10;
|
|
var _week;
|
|
var value13;
|
|
const value = a0;
|
|
const value2 = a1;
|
|
if (typeof value === 'boolean') {
|
|
if (t_28102IsNumber(value2)) {
|
|
r0 = value2;
|
|
r2 = undefined;
|
|
} else {
|
|
r0 = a2;
|
|
r2 = value2;
|
|
}
|
|
reducibleJoin8: while (true) {
|
|
if (r2) {
|
|
break reducibleJoin8;
|
|
}
|
|
value10 = '';
|
|
r2 = value10;
|
|
break reducibleJoin8;
|
|
}
|
|
r1 = r0;
|
|
r4 = r2;
|
|
r7 = value;
|
|
} else {
|
|
r4 = t_28102IsNumber(value) ? undefined : value;
|
|
reducibleJoin4: while (true) {
|
|
if (r4) {
|
|
break reducibleJoin4;
|
|
}
|
|
value6 = '';
|
|
r4 = value6;
|
|
break reducibleJoin4;
|
|
}
|
|
value7 = false;
|
|
r1 = value;
|
|
r7 = value7;
|
|
}
|
|
const value11 = localeData_28185();
|
|
const value12 = 0;
|
|
reducibleJoin11: while (true) {
|
|
if (r7) {
|
|
_week = value11._week;
|
|
dow = _week.dow;
|
|
break reducibleJoin11;
|
|
}
|
|
dow = value12;
|
|
break reducibleJoin11;
|
|
}
|
|
if (r1 != null) {
|
|
return get$1(r4, (r1 + dow) % 7, a3, 'day');
|
|
}
|
|
const items2 = [];
|
|
let r9 = value12;
|
|
reducibleLoop13: while (true) {
|
|
items2[r9] = get$1(r4, (r9 + dow) % 7, a3, 'day');
|
|
value13 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
if (value13 < 7) {
|
|
r9 = value13;
|
|
continue reducibleLoop13;
|
|
}
|
|
break reducibleLoop13;
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function addSubtract$1(a0, a1, a2, a3) { // fn#28227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:54749, owner: t_28102.addSubtract$1, offset: 0x00f74484, size: 117 bytes, params: 5, frame: 15
|
|
const value = duration(a1, a2);
|
|
a0._milliseconds = a0._milliseconds + a3 * value._milliseconds;
|
|
a0._days = a0._days + a3 * value._days;
|
|
a0._months = a0._months + a3 * value._months;
|
|
return a0._bubble();
|
|
}
|
|
|
|
function makeAs(a0) { // fn#28231, owner: t_28102.makeAs, offset: 0x00f7455e, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun28232;
|
|
function _fun28232() { // fn#28232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:55079, offset: 0x00f7456e, size: 23 bytes, params: 1, frame: 11
|
|
return this.as(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function makeGetter(a0) { // fn#28233, owner: t_28102.makeGetter, offset: 0x00f74585, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun28234;
|
|
function _fun28234() { // fn#28234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:55264, offset: 0x00f74595, size: 45 bytes, params: 1, frame: 10
|
|
return this.isValid() ? this._data[env0_0] : global.NaN;
|
|
}
|
|
|
|
}
|
|
|
|
function t_28102ToISOString() { // fn#28237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:55671, owner: t_28102.toISOString, offset: 0x00f74608, size: 485 bytes, params: 1, frame: 25
|
|
var r9;
|
|
var r8;
|
|
var r5;
|
|
var r3;
|
|
var r0;
|
|
var r7;
|
|
var r6;
|
|
var r4;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var absFloorBinding;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value15;
|
|
var signBinding;
|
|
if (this.isValid()) {
|
|
value3 = abs(this._milliseconds) / 1000;
|
|
value4 = abs(this._days);
|
|
value5 = abs(this._months);
|
|
absFloorBinding = absFloor;
|
|
value6 = absFloorBinding(value3 / 60);
|
|
value7 = absFloorBinding(value6 / 60);
|
|
value8 = value3 % 60;
|
|
value9 = value6 % 60;
|
|
value10 = absFloorBinding(value5 / 12);
|
|
value11 = value5 % 12;
|
|
value12 = '';
|
|
r9 = value8 ? value8.toFixed(3).replace(RegExp('\\.?0+$', ''), value12) : value12;
|
|
value15 = this.asSeconds();
|
|
if (value15) {
|
|
r8 = value15 < 0 ? '-' : value12;
|
|
signBinding = sign;
|
|
r5 = signBinding(this._months) === signBinding(value15) ? value12 : '-';
|
|
signBinding = sign;
|
|
r3 = signBinding(this._days) === signBinding(value15) ? value12 : '-';
|
|
signBinding = sign;
|
|
r0 = signBinding(this._milliseconds) === signBinding(value15) ? value12 : '-';
|
|
r7 = value10 ? r5 + value10 + 'Y' : value12;
|
|
r6 = value11 ? r5 + value11 + 'M' : value12;
|
|
r5 = value4 ? r3 + value4 + 'D' : value12;
|
|
r4 = value7 || value9 || r9 ? 'T' : value12;
|
|
r3 = value7 ? r0 + value7 + 'H' : value12;
|
|
return r8 + 'P' + r7 + r6 + r5 + r4 + r3 + (value9 ? r0 + value9 + 'M' : value12) + (r9 ? r0 + r9 + 'S' : value12);
|
|
}
|
|
return 'P0D';
|
|
}
|
|
return this.localeData().invalidDate();
|
|
}
|
|
|
|
function _fun28242(a0, a1) { // fn#28242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:7854, offset: 0x00f748bf, size: 61 bytes, params: 3, frame: 13
|
|
a1[env0_17] = a0.length === 2 ? hooks.parseTwoDigitYear(a0) : toInt(a0);
|
|
}
|
|
|
|
function _fun28243(a0, a1) { // fn#28243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:7945, offset: 0x00f748fc, size: 36 bytes, params: 3, frame: 12
|
|
a1[env0_17] = hooks.parseTwoDigitYear(a0);
|
|
}
|
|
|
|
function _fun28244(a0, a1) { // fn#28244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:8013, offset: 0x00f74920, size: 38 bytes, params: 3, frame: 14
|
|
a1[env0_17] = global.parseInt(a0, 10);
|
|
}
|
|
|
|
function parseTwoDigitYear(a0) { // fn#28245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:8074, owner: t_28102.parseTwoDigitYear, offset: 0x00f74946, size: 50 bytes, params: 2, frame: 12
|
|
const toIntBinding = toInt;
|
|
return toIntBinding(a0) + (toIntBinding(a0) > 68 ? 1900 : 2000);
|
|
}
|
|
|
|
function _fun28252(a0, a1) { // fn#28252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:9371, offset: 0x00f74a25, size: 37 bytes, params: 3, frame: 12
|
|
a1[env0_18] = toInt(a0) - 1;
|
|
}
|
|
|
|
function _fun28253(a0, a1, a2, a3) { // fn#28253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:9434, offset: 0x00f74a4a, size: 80 bytes, params: 5, frame: 16
|
|
const _locale = a2._locale;
|
|
const value = _locale.monthsParse(a0, a3, a2._strict);
|
|
if (value != null) {
|
|
a1[env0_18] = value;
|
|
} else {
|
|
getParsingFlags(a2).invalidMonth = a0;
|
|
}
|
|
}
|
|
|
|
function _fun28261(a0, a1, a2, a3) { // fn#28261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:13552, offset: 0x00f74b5b, size: 75 bytes, params: 5, frame: 16
|
|
const _locale = a2._locale;
|
|
const value = _locale.weekdaysParse(a0, a3, a2._strict);
|
|
if (value != null) {
|
|
a1.d = value;
|
|
} else {
|
|
getParsingFlags(a2).invalidWeekday = a0;
|
|
}
|
|
}
|
|
|
|
function _fun28262(a0, a1, a2, a3) { // fn#28262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:13701, offset: 0x00f74ba6, size: 29 bytes, params: 5, frame: 12
|
|
a1[a3] = toInt(a0);
|
|
}
|
|
|
|
function _fun28264() { // fn#28264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:16120, offset: 0x00f74bd8, size: 54 bytes, params: 1, frame: 14
|
|
const hFormatBinding = hFormat;
|
|
return String(hFormatBinding.apply(this)) + zeroFill(this.minutes(), 2);
|
|
}
|
|
|
|
function _fun28265() { // fn#28265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:16218, offset: 0x00f74c0e, size: 74 bytes, params: 1, frame: 15
|
|
const hFormatBinding = hFormat;
|
|
const value2 = String(hFormatBinding.apply(this));
|
|
const zeroFillBinding = zeroFill;
|
|
let value = this.minutes();
|
|
value = value2 + zeroFillBinding(value, 2);
|
|
return value + zeroFillBinding(this.seconds(), 2);
|
|
}
|
|
|
|
function _fun28268(a0, a1, a2) { // fn#28268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:16959, offset: 0x00f74cd0, size: 42 bytes, params: 4, frame: 13
|
|
const value2 = toInt(a0);
|
|
a1[env0_20] = value2 === 24 ? 0 : value2;
|
|
}
|
|
|
|
function _fun28270(a0, a1, a2) { // fn#28270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:17119, offset: 0x00f74d23, size: 50 bytes, params: 4, frame: 13
|
|
a1[env0_20] = toInt(a0);
|
|
getParsingFlags(a2).bigHour = true;
|
|
}
|
|
|
|
function _fun28271(a0, a1, a2) { // fn#28271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:17203, offset: 0x00f74d55, size: 100 bytes, params: 4, frame: 17
|
|
const value = a0.length - 2;
|
|
const binding = env0_20;
|
|
const toIntBinding = toInt;
|
|
a1[binding] = toIntBinding(a0.substr(0, value));
|
|
a1[env0_21] = toIntBinding(a0.substr(value));
|
|
getParsingFlags(a2).bigHour = true;
|
|
}
|
|
|
|
function _fun28272(a0, a1, a2) { // fn#28272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:17342, offset: 0x00f74db9, size: 137 bytes, params: 4, frame: 19
|
|
const value = a0.length - 4;
|
|
const value2 = a0.length - 2;
|
|
const binding = env0_20;
|
|
const toIntBinding = toInt;
|
|
a1[binding] = toIntBinding(a0.substr(0, value));
|
|
a1[env0_21] = toIntBinding(a0.substr(value, 2));
|
|
a1[env0_22] = toIntBinding(a0.substr(value2));
|
|
getParsingFlags(a2).bigHour = true;
|
|
}
|
|
|
|
function _fun28273(a0, a1, a2) { // fn#28273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:17518, offset: 0x00f74e42, size: 80 bytes, params: 4, frame: 17
|
|
const value = a0.length - 2;
|
|
const binding = env0_20;
|
|
const toIntBinding = toInt;
|
|
a1[binding] = toIntBinding(a0.substr(0, value));
|
|
a1[env0_21] = toIntBinding(a0.substr(value));
|
|
}
|
|
|
|
function _fun28274(a0, a1, a2) { // fn#28274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:17627, offset: 0x00f74e92, size: 117 bytes, params: 4, frame: 19
|
|
const value = a0.length - 4;
|
|
const value2 = a0.length - 2;
|
|
const binding = env0_20;
|
|
const toIntBinding = toInt;
|
|
a1[binding] = toIntBinding(a0.substr(0, value));
|
|
a1[env0_21] = toIntBinding(a0.substr(value, 2));
|
|
a1[env0_22] = toIntBinding(a0.substr(value2));
|
|
}
|
|
|
|
function _fun28280(a0, a1, a2) { // fn#28280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:30437, offset: 0x00f74fed, size: 41 bytes, params: 4, frame: 14
|
|
a2._useUTC = true;
|
|
a2._tzm = offsetFromString(env0_14, a0);
|
|
}
|
|
|
|
function _fun28287(a0, a1, a2, a3) { // fn#28287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:35272, offset: 0x00f750ad, size: 35 bytes, params: 5, frame: 11
|
|
a1[a3] = hooks.parseTwoDigitYear(a0);
|
|
}
|
|
|
|
function _fun28288(a0, a1) { // fn#28288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:35459, offset: 0x00f750d0, size: 44 bytes, params: 3, frame: 12
|
|
a1[env0_18] = 3 * (toInt(a0) - 1);
|
|
}
|
|
|
|
function _fun28290(a0, a1) { // fn#28290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:35803, offset: 0x00f75121, size: 51 bytes, params: 3, frame: 13
|
|
const binding = env0_19;
|
|
const toIntBinding = toInt;
|
|
let value = a0.match(env0_12);
|
|
value = toIntBinding(value[0]);
|
|
a1[binding] = value;
|
|
}
|
|
|
|
function _fun28291(a0, a1, a2) { // fn#28291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:36067, offset: 0x00f75154, size: 28 bytes, params: 4, frame: 11
|
|
a2._dayOfYear = toInt(a0);
|
|
}
|
|
|
|
function t_28102Calendar(a0, a1) { // fn#28300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:37660, owner: t_28102.calendar, offset: 0x00f75238, size: 173 bytes, params: 3, frame: 19
|
|
var r12;
|
|
var value7;
|
|
var property;
|
|
var value9;
|
|
const value = a0;
|
|
const value2 = a1;
|
|
let r1 = value || createLocal_2();
|
|
const r6 = hooks.calendarFormat(this, cloneWithOffset(r1, this).startOf('day')) || 'sameElse';
|
|
if (value2) {
|
|
value7 = t_28102IsFunction(value2[r6]);
|
|
property = value2[r6];
|
|
r12 = value7 ? property.call(this, r1) : property;
|
|
} else {
|
|
r12 = value2;
|
|
}
|
|
const format = this.format;
|
|
if (r12) {
|
|
r1 = r12;
|
|
} else {
|
|
value9 = this.localeData();
|
|
r1 = value9.calendar(r6, this, createLocal_2(r1));
|
|
}
|
|
return Reflect.apply(format, this, [r1]);
|
|
}
|
|
|
|
function t_28102Clone() { // fn#28301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:37922, owner: t_28102.clone, offset: 0x00f752e5, size: 32 bytes, params: 1, frame: 11
|
|
const value = Object.create(Moment.prototype, {constructor: {value: Moment}});
|
|
const moment = new Moment(this);
|
|
return moment instanceof Object ? moment : value;
|
|
}
|
|
|
|
function t_28102Diff(a0, a1, a2) { // fn#28302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:37972, owner: t_28102.diff, offset: 0x00f75305, size: 345 bytes, params: 4, frame: 18
|
|
var r2;
|
|
var value2;
|
|
var value5;
|
|
var value6;
|
|
if (this.isValid()) {
|
|
value2 = cloneWithOffset(a0, this);
|
|
if (value2.isValid()) {
|
|
value5 = 60000 * (value2.utcOffset() - this.utcOffset());
|
|
value6 = normalizeUnits(a1);
|
|
r2 = value6 === 'year' ? monthDiff(this,
|
|
value2) / 12 : value6 === 'month' ? monthDiff(this, value2) : value6 === 'quarter' ? monthDiff(this, value2) / 3 : value6 === 'second' ? (this - value2) / 1000 : value6 === 'minute' ? (this - value2) / 60000 : value6 === 'hour' ? (this - value2) / 3600000 : value6 === 'day' ? (this - value2 - value5) / 86400000 : value6 === 'week' ? (this - value2 - value5) / 604800000 : this - value2;
|
|
return a2 ? r2 : absFloor(r2);
|
|
}
|
|
}
|
|
return global.NaN;
|
|
}
|
|
|
|
function t_28102Format(a0) { // fn#28304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:38674, owner: t_28102.format, offset: 0x00f754cd, size: 84 bytes, params: 2, frame: 14
|
|
var r3;
|
|
var hooksBinding;
|
|
let value = a0;
|
|
if (value) {
|
|
r3 = value;
|
|
} else {
|
|
value = this.isUtc();
|
|
hooksBinding = hooks;
|
|
r3 = value ? hooksBinding.defaultFormatUtc : hooksBinding.defaultFormat;
|
|
}
|
|
return this.localeData().postformat(formatMoment(this, r3));
|
|
}
|
|
|
|
function t_28102From(a0, a1) { // fn#28305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:38831, owner: t_28102.from, offset: 0x00f75521, size: 152 bytes, params: 3, frame: 15
|
|
var r0;
|
|
var value;
|
|
var local_2;
|
|
if (this.isValid()) {
|
|
if (isMoment(a0)) {
|
|
if (a0.isValid()) {
|
|
value = duration({to: this, from: a0});
|
|
value = value.locale(this.locale());
|
|
value = value.humanize(!a1);
|
|
r0 = value;
|
|
} else {
|
|
local_2 = createLocal_2(a0);
|
|
if (local_2.isValid()) {
|
|
value = duration({to: this, from: a0});
|
|
value = value.locale(this.locale());
|
|
value = value.humanize(!a1);
|
|
r0 = value;
|
|
} else {
|
|
value = this.localeData();
|
|
value = value.invalidDate();
|
|
r0 = value;
|
|
}
|
|
}
|
|
} else {
|
|
local_2 = createLocal_2(a0);
|
|
if (local_2.isValid()) {
|
|
value = duration({to: this, from: a0});
|
|
value = value.locale(this.locale());
|
|
value = value.humanize(!a1);
|
|
r0 = value;
|
|
} else {
|
|
value = this.localeData();
|
|
value = value.invalidDate();
|
|
r0 = value;
|
|
}
|
|
}
|
|
} else {
|
|
value = this.localeData();
|
|
value = value.invalidDate();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function fromNow(a0) { // fn#28306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:39038, owner: t_28102.fromNow, offset: 0x00f755b9, size: 32 bytes, params: 2, frame: 13
|
|
return this.from(createLocal_2(), a0);
|
|
}
|
|
|
|
function to(a0, a1) { // fn#28307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:39099, owner: t_28102.to, offset: 0x00f755d9, size: 152 bytes, params: 3, frame: 15
|
|
var r0;
|
|
var value;
|
|
var local_2;
|
|
if (this.isValid()) {
|
|
if (isMoment(a0)) {
|
|
if (a0.isValid()) {
|
|
value = duration({from: this, to: a0});
|
|
value = value.locale(this.locale());
|
|
value = value.humanize(!a1);
|
|
r0 = value;
|
|
} else {
|
|
local_2 = createLocal_2(a0);
|
|
if (local_2.isValid()) {
|
|
value = duration({from: this, to: a0});
|
|
value = value.locale(this.locale());
|
|
value = value.humanize(!a1);
|
|
r0 = value;
|
|
} else {
|
|
value = this.localeData();
|
|
value = value.invalidDate();
|
|
r0 = value;
|
|
}
|
|
}
|
|
} else {
|
|
local_2 = createLocal_2(a0);
|
|
if (local_2.isValid()) {
|
|
value = duration({from: this, to: a0});
|
|
value = value.locale(this.locale());
|
|
value = value.humanize(!a1);
|
|
r0 = value;
|
|
} else {
|
|
value = this.localeData();
|
|
value = value.invalidDate();
|
|
r0 = value;
|
|
}
|
|
}
|
|
} else {
|
|
value = this.localeData();
|
|
value = value.invalidDate();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function toNow(a0) { // fn#28308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:39302, owner: t_28102.toNow, offset: 0x00f75671, size: 32 bytes, params: 2, frame: 13
|
|
return this.to(createLocal_2(), a0);
|
|
}
|
|
|
|
function t_28102IsAfter(a0, a1) { // fn#28311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:39527, owner: t_28102.isAfter, offset: 0x00f756db, size: 180 bytes, params: 3, frame: 17
|
|
var r4;
|
|
var r1;
|
|
var r0;
|
|
var normalizeUnitsBinding;
|
|
var value5;
|
|
var value6;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
if (isMoment(value)) {
|
|
r4 = value;
|
|
} else {
|
|
value = createLocal_2(value);
|
|
r4 = value;
|
|
}
|
|
value = this.isValid();
|
|
const r2 = value ? !r4.isValid() : !value;
|
|
value = !r2;
|
|
if (r2) {
|
|
r0 = value;
|
|
} else {
|
|
normalizeUnitsBinding = normalizeUnits;
|
|
value = t_28102IsUndefined(value2);
|
|
value5 = 'millisecond';
|
|
value = normalizeUnitsBinding(value ? value5 : value2);
|
|
if (value5 === value) {
|
|
value = this.valueOf();
|
|
value = value > r4.valueOf();
|
|
r1 = value;
|
|
} else {
|
|
value6 = r4.valueOf();
|
|
value = this.clone().startOf(value);
|
|
value = value6 < value.valueOf();
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function t_28102IsBefore(a0, a1) { // fn#28312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:39779, owner: t_28102.isBefore, offset: 0x00f7578f, size: 180 bytes, params: 3, frame: 17
|
|
var r4;
|
|
var r1;
|
|
var r0;
|
|
var normalizeUnitsBinding;
|
|
var value5;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
if (isMoment(value)) {
|
|
r4 = value;
|
|
} else {
|
|
value = createLocal_2(value);
|
|
r4 = value;
|
|
}
|
|
value = this.isValid();
|
|
const r2 = value ? !r4.isValid() : !value;
|
|
value = !r2;
|
|
if (r2) {
|
|
r0 = value;
|
|
} else {
|
|
normalizeUnitsBinding = normalizeUnits;
|
|
value = t_28102IsUndefined(value2);
|
|
value5 = 'millisecond';
|
|
value = normalizeUnitsBinding(value ? value5 : value2);
|
|
if (value5 === value) {
|
|
value = this.valueOf();
|
|
value = value < r4.valueOf();
|
|
r1 = value;
|
|
} else {
|
|
value = this.clone().endOf(value);
|
|
value = value.valueOf();
|
|
value = value < r4.valueOf();
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function isSame(a0, a1) { // fn#28314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:40189, owner: t_28102.isSame, offset: 0x00f758bc, size: 209 bytes, params: 3, frame: 16
|
|
var r4;
|
|
var r1;
|
|
var r0;
|
|
var value5;
|
|
var value7;
|
|
var value8;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
if (isMoment(value)) {
|
|
r4 = value;
|
|
} else {
|
|
value = createLocal_2(value);
|
|
r4 = value;
|
|
}
|
|
value = this.isValid();
|
|
const r6 = value ? !r4.isValid() : !value;
|
|
value = !r6;
|
|
if (r6) {
|
|
r0 = value;
|
|
} else {
|
|
value = normalizeUnits(value2 || 'millisecond');
|
|
if (value === 'millisecond') {
|
|
value = this.valueOf();
|
|
value = value === r4.valueOf();
|
|
r1 = value;
|
|
} else {
|
|
value5 = r4.valueOf();
|
|
value7 = this.clone().startOf(value);
|
|
value8 = value7.valueOf() <= value5;
|
|
if (value8) {
|
|
value = this.clone().endOf(value);
|
|
value = value5 <= value.valueOf();
|
|
r1 = value;
|
|
} else {
|
|
r1 = value8;
|
|
}
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function t_28102Set(a0, a1) { // fn#28319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:40857, owner: t_28102.set, offset: 0x00f75a0b, size: 148 bytes, params: 3, frame: 14
|
|
var r2;
|
|
var value;
|
|
var t_28102IsFunctionBinding;
|
|
var prioritizedUnits;
|
|
var length;
|
|
var value3;
|
|
var unit;
|
|
var value4;
|
|
if (typeof a0 === 'object') {
|
|
value = normalizeObjectUnits(a0);
|
|
prioritizedUnits = getPrioritizedUnits(value);
|
|
length = prioritizedUnits.length;
|
|
value3 = 0;
|
|
if (value3 < length) {
|
|
r2 = value3;
|
|
reducibleLoop4: while (true) {
|
|
unit = prioritizedUnits[r2].unit;
|
|
unit = prioritizedUnits[r2].unit;
|
|
this[unit](value[unit]);
|
|
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = prioritizedUnits.length;
|
|
if (value4 < length) {
|
|
r2 = value4;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
}
|
|
} else {
|
|
t_28102IsFunctionBinding = t_28102IsFunction;
|
|
value = normalizeUnits(a0);
|
|
reducibleJoin5: while (true) {
|
|
if (t_28102IsFunctionBinding(this[value])) {
|
|
return this[value](a1);
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
return this;
|
|
function getPrioritizedUnits(a0) { // fn#28320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:40913, owner: t_28102.set.getPrioritizedUnits, offset: 0x00f75a9f, size: 82 bytes, params: 2, frame: 19
|
|
var propertyName;
|
|
const items2 = [];
|
|
for (propertyName in a0) {
|
|
items2.push({unit: propertyName, priority: env1_7[propertyName]});
|
|
}
|
|
items2.sort(function({priority}, a1) {
|
|
return priority - a1.priority;
|
|
});
|
|
return items2;
|
|
}
|
|
|
|
}
|
|
|
|
function startOf(a0) { // fn#28322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:41228, owner: t_28102.startOf, offset: 0x00f75b09, size: 285 bytes, params: 2, frame: 14
|
|
var month;
|
|
var Math;
|
|
const value = normalizeUnits(a0);
|
|
if (value === 'year') {
|
|
this.month(0);
|
|
this.date(1);
|
|
this.hours(0);
|
|
this.minutes(0);
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'quarter') {
|
|
this.date(1);
|
|
this.hours(0);
|
|
this.minutes(0);
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'month') {
|
|
this.date(1);
|
|
this.hours(0);
|
|
this.minutes(0);
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'week') {
|
|
this.hours(0);
|
|
this.minutes(0);
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'isoWeek') {
|
|
this.hours(0);
|
|
this.minutes(0);
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'day') {
|
|
this.hours(0);
|
|
this.minutes(0);
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'date') {
|
|
this.hours(0);
|
|
this.minutes(0);
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'hour') {
|
|
this.minutes(0);
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'minute') {
|
|
this.seconds(0);
|
|
this.milliseconds(0);
|
|
} else if (value === 'second') {
|
|
this.milliseconds(0);
|
|
}
|
|
if (value === 'week') {
|
|
this.weekday(0);
|
|
}
|
|
if (value === 'isoWeek') {
|
|
this.isoWeekday(1);
|
|
}
|
|
if (value === 'quarter') {
|
|
month = this.month;
|
|
Math = global.Math;
|
|
Reflect.apply(month, this, [3 * Math.floor(this.month() / 3)]);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function t_28102ToISOString_28326(a0) { // fn#28326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:42020, owner: t_28102.toISOString, offset: 0x00f75d2b, size: 329 bytes, params: 2, frame: 19
|
|
var r3;
|
|
var r0;
|
|
var r2;
|
|
var value2;
|
|
var t_28102IsFunctionBinding;
|
|
var Date;
|
|
var formatMomentBinding;
|
|
var value8;
|
|
var date;
|
|
let value = this;
|
|
if (value.isValid()) {
|
|
value2 = a0 !== true;
|
|
r3 = value2 ? value.clone().utc() : value;
|
|
if (r3.year() < 0) {
|
|
formatMomentBinding = formatMoment;
|
|
value = 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ';
|
|
value = formatMomentBinding(r3, value2 ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : value);
|
|
r0 = value;
|
|
} else if (r3.year() > 9999) {
|
|
formatMomentBinding = formatMoment;
|
|
value = 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ';
|
|
value = formatMomentBinding(r3, value2 ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : value);
|
|
r0 = value;
|
|
} else {
|
|
t_28102IsFunctionBinding = t_28102IsFunction;
|
|
Date = global.Date;
|
|
if (t_28102IsFunctionBinding(Date.prototype.toISOString)) {
|
|
if (value2) {
|
|
value = value.toDate();
|
|
value = value.toISOString();
|
|
r2 = value;
|
|
} else {
|
|
Date = global.Date;
|
|
value8 = value.valueOf();
|
|
value = value.utcOffset();
|
|
value = value8 + 60 * value * 1000;
|
|
date = new Date(value);
|
|
date = date.toISOString();
|
|
date = date.replace('Z', formatMoment(r3, 'Z'));
|
|
r2 = date;
|
|
}
|
|
r0 = r2;
|
|
} else {
|
|
formatMomentBinding = formatMoment;
|
|
value = 'YYYY-MM-DD[T]HH:mm:ss.SSSZ';
|
|
r0 = value2 ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : value;
|
|
value = formatMomentBinding(r3, r0);
|
|
r0 = value;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function t_28102IsLeapYear_28333() { // fn#28333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:43282, owner: t_28102.isLeapYear, offset: 0x00f7602f, size: 29 bytes, params: 1, frame: 11
|
|
return t_28102IsLeapYear(this.year());
|
|
}
|
|
|
|
function weekYear(a0) { // fn#28334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:43351, owner: t_28102.weekYear, offset: 0x00f7604c, size: 94 bytes, params: 2, frame: 21
|
|
const getSetWeekYearHelperBinding = getSetWeekYearHelper;
|
|
return getSetWeekYearHelperBinding.call(this, a0, this.week(), this.weekday(), this.localeData()._week.dow,
|
|
this.localeData()._week.doy);
|
|
}
|
|
|
|
function isoWeekYear(a0) { // fn#28335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:43518, owner: t_28102.isoWeekYear, offset: 0x00f760aa, size: 56 bytes, params: 2, frame: 21
|
|
const getSetWeekYearHelperBinding = getSetWeekYearHelper;
|
|
return getSetWeekYearHelperBinding.call(this, a0, this.isoWeek(), this.isoWeekday(), 1, 4);
|
|
}
|
|
|
|
function t_28102DaysInMonth_28337() { // fn#28337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:43793, owner: t_28102.daysInMonth, offset: 0x00f76148, size: 40 bytes, params: 1, frame: 13
|
|
return t_28102DaysInMonth(this.year(), this.month());
|
|
}
|
|
|
|
function isoWeek(a0) { // fn#28339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:44003, owner: t_28102.isoWeek, offset: 0x00f761b0, size: 71 bytes, params: 2, frame: 16
|
|
const week = weekOfYear(this, 1, 4).week;
|
|
return a0 == null ? week : this.add(7 * (a0 - week), 'd');
|
|
}
|
|
|
|
function t_28102WeeksInYear_28340() { // fn#28340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:44116, owner: t_28102.weeksInYear, offset: 0x00f761f7, size: 59 bytes, params: 1, frame: 15
|
|
const _week = this.localeData()._week;
|
|
return t_28102WeeksInYear(this.year(), _week.dow, _week.doy);
|
|
}
|
|
|
|
function isoWeeksInYear() { // fn#28341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:44235, owner: t_28102.isoWeeksInYear, offset: 0x00f76232, size: 37 bytes, params: 1, frame: 15
|
|
return t_28102WeeksInYear(this.year(), 1, 4);
|
|
}
|
|
|
|
function utcOffset(a0, a1, a2) { // fn#28346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:45372, owner: t_28102.utcOffset, offset: 0x00f764b9, size: 339 bytes, params: 4, frame: 21
|
|
var r1;
|
|
var r6;
|
|
var r9;
|
|
var _isUTC;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
const value3 = this;
|
|
let _offset = value3._offset;
|
|
_offset = !_offset ? 0 : _offset;
|
|
if (value3.isValid()) {
|
|
if (value != null) {
|
|
if (typeof value === 'string') {
|
|
value = offsetFromString(env0_14, value);
|
|
if (value === null) {
|
|
return value3;
|
|
}
|
|
r1 = value;
|
|
_isUTC = value3._isUTC;
|
|
value = !_isUTC;
|
|
r6 = _isUTC ? value : value2;
|
|
value = undefined;
|
|
r9 = r6 ? getDateOffset(value3) : value;
|
|
value3._offset = r1;
|
|
value3._isUTC = true;
|
|
if (r9 != null) {
|
|
value3.add(r9, 'm');
|
|
}
|
|
if (_offset !== r1) {
|
|
if (value2) {
|
|
if (value3._changeInProgress) {
|
|
addSubtract(value3, duration(r1 - _offset, 'm'), 1, false);
|
|
} else if (!value3._changeInProgress) {
|
|
value3._changeInProgress = true;
|
|
value = environment;
|
|
hooks.updateOffset(value3, true);
|
|
value3._changeInProgress = null;
|
|
}
|
|
} else {
|
|
addSubtract(value3, duration(r1 - _offset, 'm'), 1, false);
|
|
}
|
|
}
|
|
return value3;
|
|
}
|
|
if (global.Math.abs(value) < 16 && !a2) {
|
|
value *= 60;
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
_isUTC = value3._isUTC;
|
|
value = !_isUTC;
|
|
r6 = _isUTC ? value : value2;
|
|
value = undefined;
|
|
r9 = r6 ? getDateOffset(value3) : value;
|
|
value3._offset = r1;
|
|
value3._isUTC = true;
|
|
if (r9 != null) {
|
|
value3.add(r9, 'm');
|
|
}
|
|
if (_offset !== r1) {
|
|
if (value2) {
|
|
if (value3._changeInProgress) {
|
|
addSubtract(value3, duration(r1 - _offset, 'm'), 1, false);
|
|
} else if (!value3._changeInProgress) {
|
|
value3._changeInProgress = true;
|
|
value = environment;
|
|
hooks.updateOffset(value3, true);
|
|
value3._changeInProgress = null;
|
|
}
|
|
} else {
|
|
addSubtract(value3, duration(r1 - _offset, 'm'), 1, false);
|
|
}
|
|
}
|
|
return value3;
|
|
}
|
|
_isUTC = value3._isUTC;
|
|
r1 = _isUTC ? _offset : getDateOffset(value3);
|
|
return r1;
|
|
}
|
|
return value != null ? value3 : global.NaN;
|
|
}
|
|
|
|
function local(a0) { // fn#28348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:45995, owner: t_28102.local, offset: 0x00f76622, size: 72 bytes, params: 2, frame: 13
|
|
if (this._isUTC) {
|
|
this.utcOffset(0, a0);
|
|
this._isUTC = false;
|
|
if (a0) {
|
|
this.subtract(getDateOffset(this), 'm');
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function t_28102ParseZone() { // fn#28349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:46142, owner: t_28102.parseZone, offset: 0x00f7666a, size: 117 bytes, params: 1, frame: 16
|
|
var value;
|
|
if (this._tzm != null) {
|
|
this.utcOffset(this._tzm, false, true);
|
|
} else if (typeof this._i === 'string') {
|
|
value = offsetFromString(env0_13, this._i);
|
|
if (value != null) {
|
|
this.utcOffset(value);
|
|
} else {
|
|
this.utcOffset(0, true);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function isDaylightSavingTimeShifted() { // fn#28357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:47578, owner: t_28102.isDaylightSavingTimeShifted, offset: 0x00f76846, size: 174 bytes, params: 1, frame: 16
|
|
var r6;
|
|
var r1;
|
|
var object;
|
|
var value2;
|
|
var isValid2;
|
|
var value;
|
|
if (t_28102IsUndefined(this._isDSTShifted)) {
|
|
object = {};
|
|
copyConfig(object, this);
|
|
value2 = prepareConfig(object);
|
|
if (value2._a) {
|
|
r6 = value2._isUTC ? utc_28112(value2._a) : createLocal_2(value2._a);
|
|
isValid2 = this.isValid();
|
|
if (isValid2) {
|
|
value = compareArrays(value2._a, r6.toArray());
|
|
value = value > 0;
|
|
r1 = value;
|
|
} else {
|
|
r1 = isValid2;
|
|
}
|
|
this._isDSTShifted = r1;
|
|
} else {
|
|
this._isDSTShifted = false;
|
|
}
|
|
}
|
|
return this._isDSTShifted;
|
|
}
|
|
|
|
function t_28102Calendar_28358(a0, a1, a2) { // fn#28358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:48483, owner: t_28102.calendar, offset: 0x00f768f4, size: 73 bytes, params: 4, frame: 14
|
|
let r0 = this._calendar[a0] || this._calendar.sameElse;
|
|
r0 = t_28102IsFunction(r0) ? r0.call(a1, a2) : r0;
|
|
return r0;
|
|
}
|
|
|
|
function longDateFormat(a0) { // fn#28359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:48611, owner: t_28102.longDateFormat, offset: 0x00f7693d, size: 102 bytes, params: 2, frame: 17
|
|
var r0;
|
|
let _longDateFormat = this._longDateFormat;
|
|
const property = _longDateFormat[a0];
|
|
const property2 = this._longDateFormat[a0.toUpperCase()];
|
|
if (property) {
|
|
r0 = property;
|
|
} else if (property2) {
|
|
_longDateFormat = this._longDateFormat;
|
|
_longDateFormat[a0] = property2.replace(RegExp('MMMM|MM|DD|dddd', 'g'), function(a0) {
|
|
return a0.slice(1);
|
|
});
|
|
_longDateFormat = this._longDateFormat;
|
|
r0 = _longDateFormat[a0];
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function relativeTime(a0, a1, a2, a3) { // fn#28363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:49050, owner: t_28102.relativeTime, offset: 0x00f769e3, size: 83 bytes, params: 5, frame: 18
|
|
const property = this._relativeTime[a2];
|
|
return t_28102IsFunction(property) ? property(a0, a1, a2, a3) : property.replace(RegExp('%d', 'i'), a0);
|
|
}
|
|
|
|
function pastFuture(a0, a1) { // fn#28364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:49175, owner: t_28102.pastFuture, offset: 0x00f76a36, size: 87 bytes, params: 3, frame: 14
|
|
const property = this._relativeTime[a0 > 0 ? 'future' : 'past'];
|
|
return t_28102IsFunction(property) ? property(a1) : property.replace(RegExp('%s', 'i'), a1);
|
|
}
|
|
|
|
function t_28102Set_28365(a0) { // fn#28365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:49299, owner: t_28102.set, offset: 0x00f76a8d, size: 168 bytes, params: 2, frame: 21
|
|
var r7;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var t_28102IsFunctionBinding;
|
|
var property;
|
|
for (propertyName in a0) {
|
|
t_28102IsFunctionBinding = t_28102IsFunction;
|
|
property = a0[propertyName];
|
|
if (t_28102IsFunctionBinding(property)) {
|
|
this[propertyName] = property;
|
|
r7 = propertyName2;
|
|
} else {
|
|
this['_' + propertyName] = property;
|
|
r7 = propertyName2;
|
|
}
|
|
}
|
|
this._config = a0;
|
|
const RegExp = global.RegExp;
|
|
let source = this._dayOfMonthOrdinalParse.source;
|
|
source = !source ? this._ordinalParse.source : source;
|
|
let value = source + '|';
|
|
value += RegExp('\\d{1,2}', '').source;
|
|
const value2 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
const regExp = new RegExp();
|
|
this._dayOfMonthOrdinalParseLenient = regExp instanceof Object ? regExp : value2;
|
|
}
|
|
|
|
function t_28102Months(a0, a1) { // fn#28366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:49537, owner: t_28102.months, offset: 0x00f76b35, size: 136 bytes, params: 3, frame: 15
|
|
var r0;
|
|
var r1;
|
|
var property;
|
|
const t_28102IsArrayBinding = t_28102IsArray;
|
|
let _months = this._months;
|
|
const value2 = t_28102IsArrayBinding(_months);
|
|
_months = this._months;
|
|
if (a0) {
|
|
if (value2) {
|
|
r1 = _months[a0.month()];
|
|
} else {
|
|
r1 = (this._months.isFormat || env0_27).test(a1) ? 'format' : 'standalone';
|
|
property = _months[r1];
|
|
property = property[a0.month()];
|
|
r1 = property;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value2 ? _months : _months.standalone;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function t_28102MonthsShort(a0, a1) { // fn#28367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:49776, owner: t_28102.monthsShort, offset: 0x00f76bbd, size: 121 bytes, params: 3, frame: 14
|
|
var r0;
|
|
var r1;
|
|
var property;
|
|
const t_28102IsArrayBinding = t_28102IsArray;
|
|
let _monthsShort = this._monthsShort;
|
|
const value2 = t_28102IsArrayBinding(_monthsShort);
|
|
_monthsShort = this._monthsShort;
|
|
if (a0) {
|
|
if (value2) {
|
|
r1 = _monthsShort[a0.month()];
|
|
} else {
|
|
r1 = env0_27.test(a1) ? 'format' : 'standalone';
|
|
property = _monthsShort[r1];
|
|
property = property[a0.month()];
|
|
r1 = property;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value2 ? _monthsShort : _monthsShort.standalone;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function monthsParse(a0, a1, a2) { // fn#28368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:50025, owner: t_28102.monthsParse, offset: 0x00f76c36, size: 563 bytes, params: 4, frame: 29
|
|
var r7;
|
|
var r6;
|
|
var value3;
|
|
var value4;
|
|
var _longMonthsParse;
|
|
var value5;
|
|
var RegExp;
|
|
var months;
|
|
var value6;
|
|
var replace;
|
|
var value7;
|
|
var value8;
|
|
var prototype;
|
|
var value9;
|
|
var value10;
|
|
var regExp;
|
|
var value11;
|
|
var _shortMonthsParse;
|
|
var monthsShort;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var property;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var test;
|
|
var value24;
|
|
const value = a2;
|
|
if (this._monthsParseExact) {
|
|
return handleStrictParse.call(this, a0, a1, value);
|
|
}
|
|
let _monthsParse = this._monthsParse;
|
|
const value2 = 0;
|
|
reducibleJoin3: while (true) {
|
|
if (_monthsParse) {
|
|
r7 = value2;
|
|
break reducibleJoin3;
|
|
}
|
|
this._monthsParse = [];
|
|
this._longMonthsParse = [];
|
|
this._shortMonthsParse = [];
|
|
r7 = value2;
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleLoop3: while (true) {
|
|
value3 = environment;
|
|
value4 = utc_28112([2000, r7]);
|
|
reducibleJoin5: while (true) {
|
|
if (value) {
|
|
_longMonthsParse = this._longMonthsParse;
|
|
value5 = !_longMonthsParse[r7];
|
|
r6 = value5;
|
|
break reducibleJoin5;
|
|
}
|
|
r6 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (r6) {
|
|
_longMonthsParse = this._longMonthsParse;
|
|
RegExp = global.RegExp;
|
|
months = this.months;
|
|
value6 = Reflect.apply(months, this, [value4, '']);
|
|
replace = value6.replace;
|
|
value7 = Reflect.apply(replace, value6, ['.', '']);
|
|
value8 = '^' + value7;
|
|
prototype = RegExp.prototype;
|
|
value9 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
value10 = value8 + '$';
|
|
regExp = new RegExp(value10, 'i');
|
|
value11 = regExp instanceof Object ? regExp : value9;
|
|
_longMonthsParse[r7] = value11;
|
|
_shortMonthsParse = this._shortMonthsParse;
|
|
RegExp = global.RegExp;
|
|
monthsShort = this.monthsShort;
|
|
value12 = Reflect.apply(monthsShort, this, [value4, '']);
|
|
replace = value12.replace;
|
|
value13 = '^' + Reflect.apply(replace, value12, ['.', '']);
|
|
prototype = RegExp.prototype;
|
|
value14 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
value15 = value13 + '$';
|
|
regExp = new RegExp(value15, 'i');
|
|
value16 = regExp instanceof Object ? regExp : value14;
|
|
_shortMonthsParse[r7] = value16;
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
reducibleJoin9: while (true) {
|
|
if (value) {
|
|
r6 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
_monthsParse = this._monthsParse;
|
|
property = _monthsParse[r7];
|
|
r6 = property;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r6) {
|
|
break reducibleJoin11;
|
|
}
|
|
months = this.months;
|
|
value17 = Reflect.apply(months, this, [value4, '']);
|
|
value18 = '^' + value17;
|
|
monthsShort = this.monthsShort;
|
|
value19 = Reflect.apply(monthsShort, this, [value4, '']);
|
|
value20 = value18 + '|^' + value19;
|
|
_monthsParse = this._monthsParse;
|
|
RegExp = global.RegExp;
|
|
replace = value20.replace;
|
|
value21 = Reflect.apply(replace, value20, ['.', '']);
|
|
prototype = RegExp.prototype;
|
|
value22 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
regExp = new RegExp(value21, 'i');
|
|
value23 = regExp instanceof Object ? regExp : value22;
|
|
_monthsParse[r7] = value23;
|
|
break reducibleJoin11;
|
|
}
|
|
if (value) {
|
|
reducibleJoin14: while (true) {
|
|
if (a1 !== 'MMMM') {
|
|
break reducibleJoin14;
|
|
}
|
|
_longMonthsParse = this._longMonthsParse;
|
|
property = _longMonthsParse[r7];
|
|
test = property.test;
|
|
if (Reflect.apply(test, property, [a0])) {
|
|
return r7;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
}
|
|
if (value) {
|
|
reducibleJoin17: while (true) {
|
|
if (a1 !== 'MMM') {
|
|
break reducibleJoin17;
|
|
}
|
|
_shortMonthsParse = this._shortMonthsParse;
|
|
property = _shortMonthsParse[r7];
|
|
test = property.test;
|
|
if (Reflect.apply(test, property, [a0])) {
|
|
return r7;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
}
|
|
if (!value) {
|
|
_monthsParse = this._monthsParse;
|
|
property = _monthsParse[r7];
|
|
test = property.test;
|
|
reducibleJoin20: while (true) {
|
|
if (Reflect.apply(test, property, [a0])) {
|
|
return r7;
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
}
|
|
value24 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
if (!(value24 < 12)) {
|
|
return undefined;
|
|
}
|
|
r7 = value24;
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
|
|
function monthsRegex(a0) { // fn#28369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:50789, owner: t_28102.monthsRegex, offset: 0x00f76e69, size: 114 bytes, params: 2, frame: 16
|
|
var r0;
|
|
const _monthsParseExact = this._monthsParseExact;
|
|
const hasOwnProp2 = hasOwnProp(this, '_monthsRegex');
|
|
if (_monthsParseExact) {
|
|
if (!hasOwnProp2) {
|
|
computeMonthsParse.call(this);
|
|
}
|
|
r0 = a0 ? this._monthsStrictRegex : this._monthsRegex;
|
|
} else {
|
|
if (!hasOwnProp2) {
|
|
this._monthsRegex = env0_30;
|
|
}
|
|
r0 = this._monthsStrictRegex && a0 ? this._monthsStrictRegex : this._monthsRegex;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function monthsShortRegex(a0) { // fn#28370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:51099, owner: t_28102.monthsShortRegex, offset: 0x00f76edb, size: 124 bytes, params: 2, frame: 16
|
|
var r0;
|
|
const _monthsParseExact = this._monthsParseExact;
|
|
const hasOwnPropBinding = hasOwnProp;
|
|
if (_monthsParseExact) {
|
|
if (!hasOwnPropBinding(this, '_monthsRegex')) {
|
|
computeMonthsParse.call(this);
|
|
}
|
|
r0 = a0 ? this._monthsShortStrictRegex : this._monthsShortRegex;
|
|
} else {
|
|
if (!hasOwnPropBinding(this, '_monthsShortRegex')) {
|
|
this._monthsShortRegex = env0_29;
|
|
}
|
|
r0 = this._monthsShortStrictRegex && a0 ? this._monthsShortStrictRegex : this._monthsShortRegex;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function t_28102Weekdays(a0, a1) { // fn#28374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:51675, owner: t_28102.weekdays, offset: 0x00f76faf, size: 129 bytes, params: 3, frame: 14
|
|
var r0;
|
|
var r1;
|
|
var property;
|
|
const t_28102IsArrayBinding = t_28102IsArray;
|
|
let _weekdays = this._weekdays;
|
|
const value = t_28102IsArrayBinding(_weekdays);
|
|
_weekdays = this._weekdays;
|
|
if (a0) {
|
|
if (value) {
|
|
r1 = _weekdays[a0.day()];
|
|
} else {
|
|
r1 = this._weekdays.isFormat.test(a1) ? 'format' : 'standalone';
|
|
property = _weekdays[r1];
|
|
property = property[a0.day()];
|
|
r1 = property;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value ? _weekdays : _weekdays.standalone;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function weekdaysParse(a0, a1, a2) { // fn#28377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:52131, owner: t_28102.weekdaysParse, offset: 0x00f7707c, size: 707 bytes, params: 4, frame: 30
|
|
var r7;
|
|
var r6;
|
|
var value3;
|
|
var value4;
|
|
var day;
|
|
var value5;
|
|
var _fullWeekdaysParse;
|
|
var value6;
|
|
var RegExp;
|
|
var weekdays;
|
|
var value7;
|
|
var replace;
|
|
var value8;
|
|
var value9;
|
|
var prototype;
|
|
var value10;
|
|
var value11;
|
|
var regExp;
|
|
var value12;
|
|
var _shortWeekdaysParse;
|
|
var weekdaysShort;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var _minWeekdaysParse;
|
|
var weekdaysMin;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var property;
|
|
var test;
|
|
var value32;
|
|
const value = a2;
|
|
if (this._weekdaysParseExact) {
|
|
return handleStrictParse$1.call(this, a0, a1, value);
|
|
}
|
|
let _weekdaysParse = this._weekdaysParse;
|
|
const value2 = 0;
|
|
reducibleJoin3: while (true) {
|
|
if (_weekdaysParse) {
|
|
r7 = value2;
|
|
break reducibleJoin3;
|
|
}
|
|
this._weekdaysParse = [];
|
|
this._minWeekdaysParse = [];
|
|
this._shortWeekdaysParse = [];
|
|
this._fullWeekdaysParse = [];
|
|
r7 = value2;
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleLoop3: while (true) {
|
|
value3 = environment;
|
|
value4 = utc_28112([2000, 1]);
|
|
day = value4.day;
|
|
value5 = Reflect.apply(day, value4, [r7]);
|
|
reducibleJoin5: while (true) {
|
|
if (value) {
|
|
_fullWeekdaysParse = this._fullWeekdaysParse;
|
|
value6 = !_fullWeekdaysParse[r7];
|
|
r6 = value6;
|
|
break reducibleJoin5;
|
|
}
|
|
r6 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (r6) {
|
|
_fullWeekdaysParse = this._fullWeekdaysParse;
|
|
RegExp = global.RegExp;
|
|
weekdays = this.weekdays;
|
|
value7 = Reflect.apply(weekdays, this, [value5, '']);
|
|
replace = value7.replace;
|
|
value8 = Reflect.apply(replace, value7, ['.', '\\.?']);
|
|
value9 = '^' + value8;
|
|
prototype = RegExp.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
value11 = value9 + '$';
|
|
regExp = new RegExp(value11, 'i');
|
|
value12 = regExp instanceof Object ? regExp : value10;
|
|
_fullWeekdaysParse[r7] = value12;
|
|
_shortWeekdaysParse = this._shortWeekdaysParse;
|
|
RegExp = global.RegExp;
|
|
weekdaysShort = this.weekdaysShort;
|
|
value13 = Reflect.apply(weekdaysShort, this, [value5, '']);
|
|
replace = value13.replace;
|
|
value14 = '^' + Reflect.apply(replace, value13, ['.', '\\.?']);
|
|
prototype = RegExp.prototype;
|
|
value15 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
value16 = value14 + '$';
|
|
regExp = new RegExp(value16, 'i');
|
|
value17 = regExp instanceof Object ? regExp : value15;
|
|
_shortWeekdaysParse[r7] = value17;
|
|
_minWeekdaysParse = this._minWeekdaysParse;
|
|
RegExp = global.RegExp;
|
|
weekdaysMin = this.weekdaysMin;
|
|
value18 = Reflect.apply(weekdaysMin, this, [value5, '']);
|
|
replace = value18.replace;
|
|
value19 = '^' + Reflect.apply(replace, value18, ['.', '\\.?']);
|
|
prototype = RegExp.prototype;
|
|
value20 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
value21 = value19 + '$';
|
|
regExp = new RegExp(value21, 'i');
|
|
value22 = regExp instanceof Object ? regExp : value20;
|
|
_minWeekdaysParse[r7] = value22;
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
_weekdaysParse = this._weekdaysParse;
|
|
reducibleJoin9: while (true) {
|
|
if (_weekdaysParse[r7]) {
|
|
break reducibleJoin9;
|
|
}
|
|
weekdays = this.weekdays;
|
|
value23 = Reflect.apply(weekdays, this, [value5, '']);
|
|
value24 = '^' + value23;
|
|
weekdaysShort = this.weekdaysShort;
|
|
value25 = Reflect.apply(weekdaysShort, this, [value5, '']);
|
|
value26 = value24 + '|^' + value25;
|
|
weekdaysMin = this.weekdaysMin;
|
|
value27 = Reflect.apply(weekdaysMin, this, [value5, '']);
|
|
value28 = value26 + '|^' + value27;
|
|
_weekdaysParse = this._weekdaysParse;
|
|
RegExp = global.RegExp;
|
|
replace = value28.replace;
|
|
value29 = Reflect.apply(replace, value28, ['.', '']);
|
|
prototype = RegExp.prototype;
|
|
value30 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
regExp = new RegExp(value29, 'i');
|
|
value31 = regExp instanceof Object ? regExp : value30;
|
|
_weekdaysParse[r7] = value31;
|
|
break reducibleJoin9;
|
|
}
|
|
if (value) {
|
|
reducibleJoin12: while (true) {
|
|
if (a1 !== 'dddd') {
|
|
break reducibleJoin12;
|
|
}
|
|
_fullWeekdaysParse = this._fullWeekdaysParse;
|
|
property = _fullWeekdaysParse[r7];
|
|
test = property.test;
|
|
if (Reflect.apply(test, property, [a0])) {
|
|
return r7;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
if (value) {
|
|
reducibleJoin15: while (true) {
|
|
if (a1 !== 'ddd') {
|
|
break reducibleJoin15;
|
|
}
|
|
_shortWeekdaysParse = this._shortWeekdaysParse;
|
|
property = _shortWeekdaysParse[r7];
|
|
test = property.test;
|
|
if (Reflect.apply(test, property, [a0])) {
|
|
return r7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
if (value) {
|
|
reducibleJoin18: while (true) {
|
|
if (a1 !== 'dd') {
|
|
break reducibleJoin18;
|
|
}
|
|
_minWeekdaysParse = this._minWeekdaysParse;
|
|
property = _minWeekdaysParse[r7];
|
|
test = property.test;
|
|
if (Reflect.apply(test, property, [a0])) {
|
|
return r7;
|
|
}
|
|
break reducibleJoin18;
|
|
}
|
|
}
|
|
if (!value) {
|
|
_weekdaysParse = this._weekdaysParse;
|
|
property = _weekdaysParse[r7];
|
|
test = property.test;
|
|
reducibleJoin21: while (true) {
|
|
if (Reflect.apply(test, property, [a0])) {
|
|
return r7;
|
|
}
|
|
break reducibleJoin21;
|
|
}
|
|
}
|
|
value32 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
if (!(value32 < 7)) {
|
|
return undefined;
|
|
}
|
|
r7 = value32;
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
|
|
function weekdaysRegex(a0) { // fn#28378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:53152, owner: t_28102.weekdaysRegex, offset: 0x00f7733f, size: 114 bytes, params: 2, frame: 16
|
|
var r0;
|
|
const _weekdaysParseExact = this._weekdaysParseExact;
|
|
const hasOwnProp2 = hasOwnProp(this, '_weekdaysRegex');
|
|
if (_weekdaysParseExact) {
|
|
if (!hasOwnProp2) {
|
|
computeWeekdaysParse.call(this);
|
|
}
|
|
r0 = a0 ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
} else {
|
|
if (!hasOwnProp2) {
|
|
this._weekdaysRegex = env0_32;
|
|
}
|
|
r0 = this._weekdaysStrictRegex && a0 ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function weekdaysShortRegex(a0) { // fn#28379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:53486, owner: t_28102.weekdaysShortRegex, offset: 0x00f773b1, size: 124 bytes, params: 2, frame: 16
|
|
var r0;
|
|
const _weekdaysParseExact = this._weekdaysParseExact;
|
|
const hasOwnPropBinding = hasOwnProp;
|
|
if (_weekdaysParseExact) {
|
|
if (!hasOwnPropBinding(this, '_weekdaysRegex')) {
|
|
computeWeekdaysParse.call(this);
|
|
}
|
|
r0 = a0 ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
} else {
|
|
if (!hasOwnPropBinding(this, '_weekdaysShortRegex')) {
|
|
this._weekdaysShortRegex = env0_33;
|
|
}
|
|
r0 = this._weekdaysShortStrictRegex && a0 ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function weekdaysMinRegex(a0) { // fn#28380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:53858, owner: t_28102.weekdaysMinRegex, offset: 0x00f7742d, size: 124 bytes, params: 2, frame: 16
|
|
var r0;
|
|
const _weekdaysParseExact = this._weekdaysParseExact;
|
|
const hasOwnPropBinding = hasOwnProp;
|
|
if (_weekdaysParseExact) {
|
|
if (!hasOwnPropBinding(this, '_weekdaysRegex')) {
|
|
computeWeekdaysParse.call(this);
|
|
}
|
|
r0 = a0 ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
} else {
|
|
if (!hasOwnPropBinding(this, '_weekdaysMinRegex')) {
|
|
this._weekdaysMinRegex = env0_34;
|
|
}
|
|
r0 = this._weekdaysMinStrictRegex && a0 ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function t_28102Abs() { // fn#28385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:56341, owner: t_28102.abs, offset: 0x00f77565, size: 205 bytes, params: 1, frame: 14
|
|
const _data = this._data;
|
|
this._milliseconds = abs(this._milliseconds);
|
|
this._days = abs(this._days);
|
|
this._months = abs(this._months);
|
|
_data.milliseconds = abs(_data.milliseconds);
|
|
_data.seconds = abs(_data.seconds);
|
|
_data.minutes = abs(_data.minutes);
|
|
_data.hours = abs(_data.hours);
|
|
_data.months = abs(_data.months);
|
|
_data.years = abs(_data.years);
|
|
return this;
|
|
}
|
|
|
|
function as(a0) { // fn#28388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:56767, owner: t_28102.as, offset: 0x00f7766b, size: 413 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var _milliseconds;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var _days;
|
|
var Math;
|
|
var Error;
|
|
if (this.isValid()) {
|
|
_milliseconds = this._milliseconds;
|
|
value2 = normalizeUnits(a0);
|
|
value3 = value2 === 'month';
|
|
if (value3) {
|
|
value = this._months + daysToMonths(this._days + _milliseconds / 86400000);
|
|
if (value3) {
|
|
r0 = value;
|
|
} else {
|
|
value /= 12;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
if (value2 === 'year') {
|
|
value = this._months + daysToMonths(this._days + _milliseconds / 86400000);
|
|
if (value3) {
|
|
r0 = value;
|
|
} else {
|
|
value /= 12;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
_days = this._days;
|
|
Math = global.Math;
|
|
value = _days + Math.round(monthsToDays(this._months));
|
|
if (value2 === 'week') {
|
|
value /= 7;
|
|
return value + _milliseconds / 604800000;
|
|
}
|
|
if (value2 === 'day') {
|
|
return value + _milliseconds / 86400000;
|
|
}
|
|
if (value2 === 'hour') {
|
|
value = 24 * value;
|
|
return value + _milliseconds / 3600000;
|
|
}
|
|
if (value2 === 'minute') {
|
|
value = 1440 * value;
|
|
return value + _milliseconds / 60000;
|
|
}
|
|
if (value2 === 'second') {
|
|
value = 86400 * value;
|
|
return value + _milliseconds / 1000;
|
|
}
|
|
if (value2 === 'millisecond') {
|
|
Math = global.Math;
|
|
return Math.floor(86400000 * value) + _milliseconds;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Unknown unit ' + value2;
|
|
throw new Error();
|
|
}
|
|
return global.NaN;
|
|
}
|
|
|
|
function t_28102ValueOf_28389() { // fn#28389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:57409, owner: t_28102.valueOf, offset: 0x00f77808, size: 127 bytes, params: 1, frame: 14
|
|
var r0;
|
|
var value;
|
|
var _months;
|
|
var value2;
|
|
var toIntBinding;
|
|
if (this.isValid()) {
|
|
value = this._milliseconds + 86400000 * this._days;
|
|
_months = this._months;
|
|
value2 = _months % 12;
|
|
toIntBinding = toInt;
|
|
_months = this._months;
|
|
value = value + value2 * 2592000000 + 31536000000 * toIntBinding(_months / 12);
|
|
r0 = value;
|
|
} else {
|
|
r0 = global.NaN;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _bubble() { // fn#28390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:57558, owner: t_28102._bubble, offset: 0x00f77887, size: 305 bytes, params: 1, frame: 20
|
|
var r4;
|
|
var r5;
|
|
var r6;
|
|
var value10;
|
|
const _milliseconds = this._milliseconds;
|
|
const _days = this._days;
|
|
const _months = this._months;
|
|
const _data = this._data;
|
|
let value = 0;
|
|
let r3 = _milliseconds >= value && _days >= value && _months >= value;
|
|
if (!r3) {
|
|
r4 = _milliseconds <= value && _days <= value;
|
|
r4 = r4 && _months <= value;
|
|
r3 = r4;
|
|
}
|
|
if (r3) {
|
|
r4 = _months;
|
|
r5 = _days;
|
|
r6 = _milliseconds;
|
|
} else {
|
|
value10 = _milliseconds + 86400000 * absCeil(monthsToDays(_months) + _days);
|
|
r4 = value;
|
|
r5 = value;
|
|
r6 = value10;
|
|
}
|
|
_data.milliseconds = r6 % 1000;
|
|
const absFloorBinding = absFloor;
|
|
const value11 = absFloorBinding(r6 / 1000);
|
|
_data.seconds = value11 % 60;
|
|
const value12 = absFloorBinding(value11 / 60);
|
|
_data.minutes = value12 % 60;
|
|
const value13 = absFloorBinding(value12 / 60);
|
|
_data.hours = value13 % 24;
|
|
const value14 = r5 + absFloorBinding(value13 / 24);
|
|
const value15 = absFloorBinding(daysToMonths(value14));
|
|
const value16 = r4 + value15;
|
|
value = value14 - absCeil(monthsToDays(value15));
|
|
const value17 = absFloorBinding(value16 / 12);
|
|
const value18 = value16 % 12;
|
|
_data.days = value;
|
|
_data.months = value18;
|
|
_data.years = value17;
|
|
return this;
|
|
}
|
|
|
|
function t_28102Get_28392(a0) { // fn#28392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:58057, owner: t_28102.get, offset: 0x00f779cb, size: 61 bytes, params: 2, frame: 12
|
|
var r0;
|
|
let value = normalizeUnits(a0);
|
|
if (this.isValid()) {
|
|
value = this[value + 's']();
|
|
r0 = value;
|
|
} else {
|
|
r0 = global.NaN;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function weeks() { // fn#28393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:58215, owner: t_28102.weeks, offset: 0x00f77a08, size: 36 bytes, params: 1, frame: 11
|
|
return absFloor(this.days() / 7);
|
|
}
|
|
|
|
function humanize(a0) { // fn#28394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:58301, owner: t_28102.humanize, offset: 0x00f77a2c, size: 674 bytes, params: 2, frame: 24
|
|
var r6;
|
|
var r1;
|
|
var value4;
|
|
var roundBinding;
|
|
var as;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
let value = this.isValid();
|
|
const value2 = this.localeData();
|
|
if (value) {
|
|
value4 = duration(this).abs();
|
|
roundBinding = round;
|
|
as = value4.as;
|
|
value5 = roundBinding(Reflect.apply(as, value4, ['s']));
|
|
roundBinding = round;
|
|
as = value4.as;
|
|
value6 = roundBinding(Reflect.apply(as, value4, ['m']));
|
|
roundBinding = round;
|
|
as = value4.as;
|
|
value7 = roundBinding(Reflect.apply(as, value4, ['h']));
|
|
roundBinding = round;
|
|
as = value4.as;
|
|
value8 = roundBinding(Reflect.apply(as, value4, ['d']));
|
|
roundBinding = round;
|
|
as = value4.as;
|
|
value9 = roundBinding(Reflect.apply(as, value4, ['M']));
|
|
roundBinding = round;
|
|
as = value4.as;
|
|
value10 = roundBinding(Reflect.apply(as, value4, ['y']));
|
|
r6 = value5 <= env0_53.ss && ['s', value5];
|
|
r6 = !r6 ? value5 < env0_53.s && ['ss', value5] : r6;
|
|
r6 = !r6 ? value6 <= 1 && ['m'] : r6;
|
|
r6 = !r6 ? value6 < env0_53.m && ['mm', value6] : r6;
|
|
r6 = !r6 ? value7 <= 1 && ['h'] : r6;
|
|
r6 = !r6 ? value7 < env0_53.h && ['hh', value7] : r6;
|
|
r6 = !r6 ? value8 <= 1 && ['d'] : r6;
|
|
r6 = !r6 ? value8 < env0_53.d && ['dd', value8] : r6;
|
|
r6 = !r6 ? value9 <= 1 && ['M'] : r6;
|
|
r6 = !r6 ? value9 < env0_53.M && ['MM', value9] : r6;
|
|
r6 = !r6 ? value10 <= 1 && ['y'] : r6;
|
|
r6 = !r6 ? ['yy', value10] : r6;
|
|
r6[2] = !a0;
|
|
r6[3] = Number(this) > 0;
|
|
r6[4] = value2;
|
|
value = substituteTimeAgo.apply(null, r6);
|
|
if (a0) {
|
|
value = value2.pastFuture(Number(this), value);
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return value2.postformat(r1);
|
|
}
|
|
return value2.invalidDate();
|
|
}
|
|
|
|
function _fun28396(a0, a1, a2) { // fn#28396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:59355, offset: 0x00f77d13, size: 56 bytes, params: 4, frame: 12
|
|
const Date = global.Date;
|
|
const value = toInt(a0);
|
|
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date();
|
|
a2._d = date instanceof Object ? date : value2;
|
|
}
|
|
|
|
function t_28102Min() { // fn#28397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:59489, owner: t_28102.min, offset: 0x00f77d4b, size: 50 bytes, params: 1, frame: 15
|
|
return t_28102PickBy('isBefore', [].slice.call(arguments, 0));
|
|
}
|
|
|
|
function t_28102Max() { // fn#28398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:59568, owner: t_28102.max, offset: 0x00f77d7d, size: 50 bytes, params: 1, frame: 15
|
|
return t_28102PickBy('isAfter', [].slice.call(arguments, 0));
|
|
}
|
|
|
|
function t_28102ParseZone_28403() { // fn#28403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:60092, owner: t_28102.parseZone, offset: 0x00f77e3e, size: 39 bytes, params: 1, frame: 13
|
|
return createLocal_2.apply(null, arguments).parseZone();
|
|
}
|
|
|
|
function updateLocale(a0, a1) { // fn#28406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:60462, owner: t_28102.updateLocale, offset: 0x00f77e9d, size: 199 bytes, params: 3, frame: 16
|
|
var binding;
|
|
var locale;
|
|
var value2;
|
|
var locale2;
|
|
if (a1 != null) {
|
|
binding = env0_36;
|
|
locale = loadLocale(a0);
|
|
value2 = mergeConfigs(locale == null ? binding : locale._config, a1);
|
|
locale2 = new Locale();
|
|
locale2.parentLocale = env0_37[a0];
|
|
env0_37[a0] = locale2;
|
|
locale_28182(a0);
|
|
} else if (env0_37[a0] != null) {
|
|
if (env0_37[a0].parentLocale != null) {
|
|
binding = env0_37;
|
|
binding[a0] = binding[a0].parentLocale;
|
|
} else if (env0_37[a0] != null) {
|
|
delete env0_37[a0];
|
|
}
|
|
}
|
|
return env0_37[a0];
|
|
}
|
|
|
|
function locales() { // fn#28407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:60762, owner: t_28102.locales, offset: 0x00f77f64, size: 20 bytes, params: 1, frame: 11
|
|
return env0_4(env0_37);
|
|
}
|
|
|
|
function relativeTimeRounding(a0) { // fn#28409, owner: t_28102.relativeTimeRounding, offset: 0x00f77f94, size: 43 bytes, params: 2, frame: 3
|
|
return a0 === undefined ? round : typeof a0 === 'function' && true;
|
|
}
|
|
|
|
function relativeTimeThreshold(a0, a1) { // fn#28410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:61085, owner: t_28102.relativeTimeThreshold, offset: 0x00f77fbf, size: 82 bytes, params: 3, frame: 8
|
|
var r1;
|
|
var r0;
|
|
var value3;
|
|
const value2 = env0_53[a0] !== undefined;
|
|
if (value2) {
|
|
if (a1 === undefined) {
|
|
r1 = env0_53[a0];
|
|
} else {
|
|
env0_53[a0] = a1;
|
|
value3 = true;
|
|
if (a0 !== 's') {
|
|
r1 = value3;
|
|
} else {
|
|
env0_53.ss = a1 - 1;
|
|
r1 = value3;
|
|
}
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function zeroFill(a0, a1, a2) { // fn#28134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:4813, owner: t_28102.zeroFill, offset: 0x00f7072b, size: 140 bytes, params: 4, frame: 17
|
|
let Math = global.Math;
|
|
const value = String(Math.abs(a0));
|
|
const value2 = a1 - value.length;
|
|
const r2 = a0 >= 0 ? a2 ? '+' : '' : '-';
|
|
Math = global.Math;
|
|
const pow = Math.pow;
|
|
const Math2 = global.Math;
|
|
const value8 = Reflect.apply(pow, Math, [10, Math2.max(0, value2)]).toString();
|
|
return r2 + value8.substr(1) + value;
|
|
}
|
|
|
|
function positiveMomentsDifference(a0, a1) { // fn#28212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:32386, owner: t_28102.positiveMomentsDifference, offset: 0x00f73e59, size: 190 bytes, params: 3, frame: 16
|
|
const object = {'milliseconds': 0, 'months': 0};
|
|
let value = a1.month();
|
|
value -= a0.month();
|
|
object.months = value + 12 * (a1.year() - a0.year());
|
|
const add = a0.clone().add;
|
|
let months = object.months;
|
|
value = Reflect.apply(add, value, [months, 'M']);
|
|
if (value.isAfter(a1)) {
|
|
months = object.months;
|
|
object.months = typeof months === 'bigint' ? months - 1n : +months - 1;
|
|
}
|
|
value = Number(a1);
|
|
const value4 = a0.clone();
|
|
object.milliseconds = value - Number(value4.add(object.months, 'M'));
|
|
return object;
|
|
}
|
|
|
|
function monthDiff(a0, a1) { // fn#28216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:33401, owner: t_28102.monthDiff, offset: 0x00f740a9, size: 196 bytes, params: 3, frame: 19
|
|
var r0;
|
|
var value6;
|
|
var value7;
|
|
var value9;
|
|
var value10;
|
|
let value = a1.year();
|
|
value -= a0.year();
|
|
value = 12 * value;
|
|
value += a1.month() - a0.month();
|
|
const value4 = a0.clone().add(value, 'months');
|
|
const value5 = 0;
|
|
if (a1 - value4 < value5) {
|
|
value9 = a1 - value4;
|
|
value10 = a0.clone();
|
|
r0 = value9 / (value4 - value10.add(value - 1, 'months'));
|
|
} else {
|
|
value6 = a1 - value4;
|
|
value7 = a0.clone();
|
|
r0 = value6 / (value7.add(value + 1, 'months') - value4);
|
|
}
|
|
value = -(value + r0);
|
|
return value || value5;
|
|
}
|
|
|
|
function t_28102Inspect() { // fn#28327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:42486, owner: t_28102.inspect, offset: 0x00f75e74, size: 218 bytes, params: 1, frame: 15
|
|
var r1;
|
|
var r4;
|
|
var r5;
|
|
var r3;
|
|
var value;
|
|
var format;
|
|
if (this.isValid()) {
|
|
value = this.isLocal();
|
|
if (value) {
|
|
r4 = '';
|
|
r5 = 'moment';
|
|
} else {
|
|
value = this.utcOffset();
|
|
r1 = value !== 0 ? 'moment.parseZone' : 'moment.utc';
|
|
value = 'Z';
|
|
r4 = value;
|
|
r5 = r1;
|
|
}
|
|
value = this.year();
|
|
value = 'YYYYYY';
|
|
r3 = 0 <= value && this.year() <= 9999 ? 'YYYY' : value;
|
|
format = this.format;
|
|
value = '[' + r5 + '("]' + r3 + '-MM-DD[T]HH:mm:ss.SSS';
|
|
return Reflect.apply(format, this, [value + (r4 + '[")]')]);
|
|
}
|
|
return 'moment.invalid(/* ' + this._i + ' */)';
|
|
}
|
|
|
|
function day(a0) { // fn#28342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:44327, owner: t_28102.day, offset: 0x00f76257, size: 197 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var r2;
|
|
var r3;
|
|
var r1;
|
|
var _isUTC;
|
|
var _d;
|
|
var value5;
|
|
let value = a0;
|
|
const value2 = this;
|
|
if (value2.isValid()) {
|
|
_isUTC = value2._isUTC;
|
|
_d = value2._d;
|
|
r2 = _isUTC ? _d.getUTCDay() : _d.getDay();
|
|
value5 = null;
|
|
if (value5 == value) {
|
|
r0 = r2;
|
|
} else {
|
|
if (typeof value !== 'string') {
|
|
r1 = value;
|
|
} else {
|
|
if (global.isNaN(value)) {
|
|
value = value2.localeData().weekdaysParse(value);
|
|
r3 = typeof value !== 'number' ? value5 : value;
|
|
} else {
|
|
value = global.parseInt(value, 10);
|
|
r3 = value;
|
|
}
|
|
r1 = r3;
|
|
}
|
|
value = value2.add(r1 - r2, 'd');
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
return value != null ? value2 : global.NaN;
|
|
}
|
|
|
|
function isoWeekday(a0) { // fn#28344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:44828, owner: t_28102.isoWeekday, offset: 0x00f7638f, size: 173 bytes, params: 2, frame: 14
|
|
var r4;
|
|
var day;
|
|
var value5;
|
|
let value = a0;
|
|
const value2 = this;
|
|
const isValid2 = value2.isValid();
|
|
const value3 = null;
|
|
if (isValid2) {
|
|
if (value3 != value) {
|
|
if (typeof value === 'string') {
|
|
value = value2.localeData().weekdaysParse(value);
|
|
value5 = 7;
|
|
value %= value5;
|
|
r4 = value || value5;
|
|
} else {
|
|
r4 = global.isNaN(value) ? value3 : value;
|
|
}
|
|
day = value2.day;
|
|
value = value2.day();
|
|
return Reflect.apply(day, value2, [value % 7 ? r4 : r4 - 7]);
|
|
}
|
|
value = value2.day();
|
|
return value || 7;
|
|
}
|
|
return value3 != value ? value2 : global.NaN;
|
|
}
|
|
|
|
function _fun28360(a0) { // fn#28360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:48778, offset: 0x00f769a3, size: 18 bytes, params: 2, frame: 11
|
|
return a0.slice(1);
|
|
}
|
|
|
|
function calendarFormat(a0, a1) { // fn#28411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3865:61225, owner: t_28102.calendarFormat, offset: 0x00f78011, size: 134 bytes, params: 3, frame: 18
|
|
const value = a0.diff(a1, 'days', true);
|
|
const value2 = 'sameElse';
|
|
return value < -6 ? value2 : value < -1 ? 'lastWeek' : value < 0 ? 'lastDay' : value < 1 ? 'sameDay' : value < 2 ? 'nextDay' : value < 7 ? 'nextWeek' : value2;
|
|
}
|
|
|
|
global.__d(_fun28101, 3738, []) /* metro module 3738 */;
|