Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,152 @@
|
||||
/* Metro module 3543; source: unknown; dependencies: [3414, 3544] */
|
||||
function _fun27039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#27039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3670:6, offset: 0x00f54ebd, size: 158 bytes, params: 8, frame: 17
|
||||
const env0_0 = require;
|
||||
const closure = function(a0, a1) {
|
||||
var r0;
|
||||
var object;
|
||||
var value = a1.match(a0);
|
||||
if (value) {
|
||||
object = {};
|
||||
object.value = global.parseInt(value[0], 10);
|
||||
object.rest = a1.slice(value[0].length);
|
||||
r0 = object;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
exports.dayPeriodEnumToHours = function(a0) {
|
||||
if (a0 === 'morning') {
|
||||
return 4;
|
||||
}
|
||||
if (a0 === 'evening') {
|
||||
return 17;
|
||||
}
|
||||
if (a0 === 'pm') {
|
||||
return 12;
|
||||
}
|
||||
if (a0 === 'noon') {
|
||||
return 12;
|
||||
}
|
||||
if (a0 === 'afternoon') {
|
||||
return 12;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
exports.isLeapYearIndex = function(a0) {
|
||||
return a0 % 400 === 0 || a0 % 4 === 0 && a0 % 100 !== 0;
|
||||
};
|
||||
exports.mapValue = function(a0, a1) {
|
||||
if (a0) {
|
||||
return {value: a1(a0.value), rest: a0.rest};
|
||||
}
|
||||
return a0;
|
||||
};
|
||||
exports.normalizeTwoDigitYear = function(a0, a1) {
|
||||
var r4;
|
||||
var r2;
|
||||
var value6;
|
||||
var Math;
|
||||
var value7;
|
||||
var value = a0;
|
||||
var value2 = a1;
|
||||
var value3 = 0;
|
||||
var value4 = value2 > value3;
|
||||
r4 = value4 ? value2 : 1 - value2;
|
||||
if (r4 <= 50) {
|
||||
r2 = value || 100;
|
||||
} else {
|
||||
value6 = r4 + 50;
|
||||
Math = global.Math;
|
||||
value7 = 100;
|
||||
value = value + value7 * Math.floor(value6 / value7) - (value >= value6 % value7 ? value7 : value3);
|
||||
r2 = value;
|
||||
}
|
||||
return value4 ? r2 : 1 - r2;
|
||||
};
|
||||
exports.parseAnyDigitsSigned = function(a0) {
|
||||
return parseNumericPattern(require(dependencyMap[1]).numericPatterns.anyDigitsSigned, a0);
|
||||
};
|
||||
exports.parseNDigits = parseNDigits;
|
||||
exports.parseNDigitsSigned = parseNDigitsSigned;
|
||||
exports.parseNumericPattern = closure;
|
||||
exports.parseTimezonePattern = parseTimezonePattern;
|
||||
}
|
||||
|
||||
function parseNDigits(a0, a1) { // fn#27046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3670:872, offset: 0x00f550f1, size: 289 bytes, params: 3, frame: 16
|
||||
const numericPatterns = (require(3544) /* metro dependency 3544 */).numericPatterns;
|
||||
if (a0 === 1) {
|
||||
return parseNumericPattern(numericPatterns.singleDigit, a1);
|
||||
}
|
||||
if (a0 === 2) {
|
||||
return parseNumericPattern(numericPatterns.twoDigits, a1);
|
||||
}
|
||||
if (a0 === 3) {
|
||||
return parseNumericPattern(numericPatterns.threeDigits, a1);
|
||||
}
|
||||
if (a0 === 4) {
|
||||
return parseNumericPattern(numericPatterns.fourDigits, a1);
|
||||
}
|
||||
const parseNumericPatternBinding = parseNumericPattern;
|
||||
const RegExp = global.RegExp;
|
||||
let value = '^\\d{1,' + a0;
|
||||
const value2 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
||||
value += '}';
|
||||
const regExp = new RegExp();
|
||||
return parseNumericPatternBinding(regExp instanceof Object ? regExp : value2, a1);
|
||||
}
|
||||
|
||||
function parseNDigitsSigned(a0, a1) { // fn#27047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3670:1287, offset: 0x00f55212, size: 289 bytes, params: 3, frame: 16
|
||||
const numericPatterns = (require(3544) /* metro dependency 3544 */).numericPatterns;
|
||||
if (a0 === 1) {
|
||||
return parseNumericPattern(numericPatterns.singleDigitSigned, a1);
|
||||
}
|
||||
if (a0 === 2) {
|
||||
return parseNumericPattern(numericPatterns.twoDigitsSigned, a1);
|
||||
}
|
||||
if (a0 === 3) {
|
||||
return parseNumericPattern(numericPatterns.threeDigitsSigned, a1);
|
||||
}
|
||||
if (a0 === 4) {
|
||||
return parseNumericPattern(numericPatterns.fourDigitsSigned, a1);
|
||||
}
|
||||
const parseNumericPatternBinding = parseNumericPattern;
|
||||
const RegExp = global.RegExp;
|
||||
let value = '^-?\\d{1,' + a0;
|
||||
const value2 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
||||
value += '}';
|
||||
const regExp = new RegExp();
|
||||
return parseNumericPatternBinding(regExp instanceof Object ? regExp : value2, a1);
|
||||
}
|
||||
|
||||
function parseTimezonePattern(a0, a1) { // fn#27048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3670:1778, offset: 0x00f55333, size: 312 bytes, params: 3, frame: 21
|
||||
var r5;
|
||||
var r10;
|
||||
var r11;
|
||||
var r7;
|
||||
var value2;
|
||||
var value3;
|
||||
var object2;
|
||||
const value = a1.match(a0);
|
||||
if (value) {
|
||||
value2 = 0;
|
||||
if (value[value2] === 'Z') {
|
||||
object2 = {value: value2};
|
||||
object2.rest = a1.slice(1);
|
||||
return object2;
|
||||
}
|
||||
value3 = 1;
|
||||
r5 = value[value3] !== '+' ? -1 : value3;
|
||||
r10 = value[2] ? global.parseInt(value[2], 10) : value2;
|
||||
r11 = value[3] ? global.parseInt(value[3], 10) : value2;
|
||||
r7 = value[5] ? global.parseInt(value[5], 10) : value2;
|
||||
object2 = {};
|
||||
object2.value = r5 * (r10 * require(dependencyMap[value2]).millisecondsInHour + r11 * require(dependencyMap[value2]).millisecondsInMinute + r7 * require(dependencyMap[value2]).millisecondsInSecond);
|
||||
object2.rest = a1.slice(value[value2].length);
|
||||
return object2;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user