Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,352 @@
|
||||
/* Metro module 11221; source: modules/debug/serializeAppStartLogs.tsx; dependencies: [20, 22, 7169, 2] */
|
||||
function _fun85760(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:6, offset: 0x01f7aecb, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/serializeAppStartLogs.tsx');
|
||||
exports.default = serializeAppStartLogs;
|
||||
}
|
||||
|
||||
function getDisplayName_85761(a0) { // fn#85761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:44, offset: 0x01f7af3d, size: 163 bytes, params: 2, frame: 16
|
||||
var value;
|
||||
let r0 = a0.tag == null ? a0.label : '' + a0.label + ' ' + a0.tag;
|
||||
if (r0.includes('_START')) {
|
||||
value = r0.replace('_START', '');
|
||||
value = 'Start ' + value;
|
||||
r0 = value;
|
||||
}
|
||||
if (r0.includes('_END')) {
|
||||
value = r0.replace('_END', '');
|
||||
value = 'Finish ' + value;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function serializeAppStartLogs(a0) { // fn#85762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:373, offset: 0x01f7afe0, size: 100 bytes, params: 2, frame: 13
|
||||
const value = a1;
|
||||
const value2 = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = !(value !== undefined) || value;
|
||||
const env0_2 = !(value2 !== undefined) || value2;
|
||||
return (importDefault(20) /* metro dependency 20: AppStartPerformance */).logGroups.map(_fun85763).join('\n\n');
|
||||
}
|
||||
|
||||
function _fun85763({index, timestamp, logs, nativeLogs, serverTrace}) { // fn#85763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:448, offset: 0x01f7b044, size: 280 bytes, params: 2, frame: 23
|
||||
var environment;
|
||||
var r3;
|
||||
var r0;
|
||||
var value;
|
||||
var value2;
|
||||
if (index !== 0) {
|
||||
r3 = timestamp;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = undefined;
|
||||
value2 = (importDefault(22) /* metro dependency 22 */).find(logs, function({log}) {
|
||||
return log.indexOf('Logger loaded') >= 0;
|
||||
});
|
||||
timestamp = value2 == null ? value : value2.timestamp;
|
||||
r3 = timestamp ?? env0_0;
|
||||
}
|
||||
value = joinLogs(logs, nativeLogs, env0_1, env0_2);
|
||||
value = serializeLogGroup(value, r3);
|
||||
value = 'Trace #' + (index + 1) + ' started ' + (require(7169) /* metro dependency 7169: ThreadUtils */).getTimestampString(timestamp) + '\n' + value;
|
||||
if (serverTrace == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value += '\n Server trace for trace #' + (index + 1) + serverTrace;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function serializeLogGroup(a0, a1) { // fn#85765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:627, offset: 0x01f7b17e, size: 330 bytes, params: 3, frame: 24
|
||||
var r4;
|
||||
var r3;
|
||||
var property;
|
||||
var property2;
|
||||
var log;
|
||||
var log2;
|
||||
var replace;
|
||||
var push;
|
||||
var value2;
|
||||
var value3;
|
||||
const env0_0 = a1;
|
||||
const items2 = [];
|
||||
let length = a0.length;
|
||||
const value = 0;
|
||||
if (value < length) {
|
||||
r4 = value;
|
||||
reducibleLoop1: while (true) {
|
||||
property = a0[r4];
|
||||
property2 = a0[r4 + 1];
|
||||
reducibleJoin5: while (true) {
|
||||
reducibleJoin3: while (true) {
|
||||
if (property2 == null) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
log = property2.log;
|
||||
log2 = property.log;
|
||||
replace = log2.replace;
|
||||
if (log === Reflect.apply(replace, log2, ['Start ', 'Finish '])) {
|
||||
log = property2.log;
|
||||
replace = log.replace;
|
||||
property2.log = Reflect.apply(replace, log, ['Finish ', '']);
|
||||
push = items2.push;
|
||||
Reflect.apply(push, items2, [property2]);
|
||||
value2 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
||||
r3 = value2;
|
||||
break reducibleJoin5;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
push = items2.push;
|
||||
Reflect.apply(push, items2, [property]);
|
||||
r3 = r4;
|
||||
break reducibleJoin5;
|
||||
}
|
||||
value3 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
||||
length = a0.length;
|
||||
if (value3 < length) {
|
||||
r4 = value3;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
break reducibleLoop1;
|
||||
}
|
||||
}
|
||||
const value4 = items2.map(_fun85766);
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
const env0_1 = defaultImport.max(value4.map(function(a0) {
|
||||
return a0.totalTime.length;
|
||||
})) ?? value;
|
||||
const defaultImport2 = defaultImport;
|
||||
const env0_2 = defaultImport2.max(value4.map(function(a0) {
|
||||
return a0.deltaTime.length;
|
||||
})) ?? value;
|
||||
return value4.map(_fun85769).join('');
|
||||
}
|
||||
|
||||
function joinLogs(a0, a1, a2, a3) { // fn#85770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:1307, offset: 0x01f7b44f, size: 142 bytes, params: 5, frame: 14
|
||||
const env0_1 = a2;
|
||||
const env0_2 = a3;
|
||||
const value = a0.slice();
|
||||
const Set = global.Set;
|
||||
const set = new Set(a1.map(getDisplayName_85761));
|
||||
const env0_5 = [];
|
||||
a1.forEach(_fun85771);
|
||||
return value.filter(_fun85774);
|
||||
}
|
||||
|
||||
function _fun85766(a0) { // fn#85766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:873, offset: 0x01f7b2c8, size: 231 bytes, params: 2, frame: 19
|
||||
const object2 = {};
|
||||
const timestamp = a0.timestamp;
|
||||
const value = '';
|
||||
object2.totalTime = timestamp == null ? value : ((a0.timestamp - require) / 1000).toFixed(3);
|
||||
object2.deltaTime = a0.delta == null ? value : global.String(global.Math.round(a0.delta));
|
||||
object2.log = value + (a0.emoji.length > 0 ? value + a0.emoji + ' ' : value) + a0.prefix + a0.log + '\n';
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun85769({totalTime, deltaTime, log}) { // fn#85769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:1201, offset: 0x01f7b3cf, size: 128 bytes, params: 2, frame: 23
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.padStart(totalTime, env0_1);
|
||||
return '' + value + ' ' + (importDefault(22) /* metro dependency 22 */).padStart(deltaTime, env0_2) + ' ' + log;
|
||||
}
|
||||
|
||||
function _fun85771(a0) { // fn#85771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:1404, offset: 0x01f7b4dd, size: 501 bytes, params: 2, frame: 24
|
||||
var environment;
|
||||
var r10;
|
||||
var r2;
|
||||
var r3;
|
||||
var r4;
|
||||
var r8;
|
||||
var r5;
|
||||
var autoGenerated;
|
||||
var value4;
|
||||
var includes;
|
||||
var value6;
|
||||
var binding;
|
||||
var has;
|
||||
var replace;
|
||||
var value7;
|
||||
var substring;
|
||||
var pop;
|
||||
var value10;
|
||||
var timestamp;
|
||||
var timestamp2;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var shouldKeep;
|
||||
var timestamp3;
|
||||
var value14;
|
||||
var push;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const getDisplayName_85761Binding = getDisplayName_85761;
|
||||
value = undefined;
|
||||
const displayName_85761Binding = getDisplayName_85761Binding(a0);
|
||||
reducibleJoin2: while (true) {
|
||||
if (importDefault) {
|
||||
r10 = importDefault;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
autoGenerated = a0.autoGenerated;
|
||||
value4 = !autoGenerated;
|
||||
r10 = value4;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
const value5 = displayName_85761Binding.startsWith('Start ');
|
||||
reducibleJoin4: while (true) {
|
||||
if (value5) {
|
||||
includes = displayName_85761Binding.includes;
|
||||
value6 = !Reflect.apply(includes, displayName_85761Binding, ['RUN_JS_BUNDLE']);
|
||||
r2 = value6;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r2 = value5;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
reducibleJoin6: while (true) {
|
||||
if (r2) {
|
||||
binding = env0_3;
|
||||
has = binding.has;
|
||||
replace = displayName_85761Binding.replace;
|
||||
value7 = Reflect.apply(has, binding, [Reflect.apply(replace, displayName_85761Binding, ['Start ',
|
||||
'Finish '])]);
|
||||
r2 = value7;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
break reducibleJoin6;
|
||||
}
|
||||
const value8 = displayName_85761Binding.startsWith('Finish ');
|
||||
const value9 = 0;
|
||||
reducibleJoin16: while (true) {
|
||||
if (value8) {
|
||||
includes = displayName_85761Binding.includes;
|
||||
if (Reflect.apply(includes, displayName_85761Binding, ['RUN_JS_BUNDLE'])) {
|
||||
r4 = r10;
|
||||
r8 = value9;
|
||||
break reducibleJoin16;
|
||||
}
|
||||
binding = env0_3;
|
||||
has = binding.has;
|
||||
replace = displayName_85761Binding.replace;
|
||||
if (Reflect.apply(has, binding, [Reflect.apply(replace, displayName_85761Binding, ['Finish ',
|
||||
'Start '])])) {
|
||||
binding = env0_4;
|
||||
substring = binding.substring;
|
||||
env0_4 = Reflect.apply(substring, binding, [2]);
|
||||
binding = env0_5;
|
||||
pop = binding.pop;
|
||||
value10 = Reflect.apply(pop, binding, []);
|
||||
if (value10 != null) {
|
||||
timestamp = a0.timestamp;
|
||||
timestamp2 = value10.timestamp;
|
||||
value11 = timestamp - timestamp2;
|
||||
reducibleJoin14: while (true) {
|
||||
if (r10) {
|
||||
r3 = r10;
|
||||
break reducibleJoin14;
|
||||
}
|
||||
value12 = value11 > 5;
|
||||
reducibleJoin13: while (true) {
|
||||
if (value12) {
|
||||
value13 = !((a0) => {
|
||||
var env0_0 = a0;
|
||||
return ['GET_CONSTANTS', 'CONVERT_CONSTANTS'].some(_fun85773);
|
||||
})(displayName_85761Binding);
|
||||
r10 = value13;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
r10 = value12;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
r3 = r10;
|
||||
break reducibleJoin14;
|
||||
}
|
||||
shouldKeep = value10.shouldKeep;
|
||||
r10 = shouldKeep || r3;
|
||||
value10.shouldKeep = r10;
|
||||
r4 = r3;
|
||||
r8 = value11;
|
||||
break reducibleJoin16;
|
||||
}
|
||||
r4 = r10;
|
||||
r8 = value9;
|
||||
break reducibleJoin16;
|
||||
}
|
||||
r4 = r10;
|
||||
r8 = value9;
|
||||
break reducibleJoin16;
|
||||
}
|
||||
r4 = r10;
|
||||
r8 = value9;
|
||||
break reducibleJoin16;
|
||||
}
|
||||
const object2 = {emoji: '☕'};
|
||||
object2.timestamp = a0.timestamp;
|
||||
object2.delta = r8 > value9 ? r8 : value;
|
||||
object2.prefix = env0_4;
|
||||
object2.log = displayName_85761Binding;
|
||||
object2.shouldKeep = r4;
|
||||
binding = env0_0;
|
||||
let length = binding.length;
|
||||
if (value9 < length) {
|
||||
r8 = value9;
|
||||
reducibleLoop18: while (true) {
|
||||
timestamp = binding[r8].timestamp;
|
||||
if (timestamp != null) {
|
||||
timestamp3 = object2.timestamp;
|
||||
reducibleJoin20: while (true) {
|
||||
if (timestamp > timestamp3) {
|
||||
r5 = r8;
|
||||
break reducibleLoop18;
|
||||
}
|
||||
break reducibleJoin20;
|
||||
}
|
||||
}
|
||||
value14 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
||||
length = binding.length;
|
||||
if (value14 < length) {
|
||||
r8 = value14;
|
||||
continue reducibleLoop18;
|
||||
}
|
||||
r5 = value14;
|
||||
break reducibleLoop18;
|
||||
}
|
||||
} else {
|
||||
r5 = value9;
|
||||
}
|
||||
binding.splice(r5, value9, object2);
|
||||
reducibleJoin23: while (true) {
|
||||
if (r2) {
|
||||
env0_4 += '| ';
|
||||
binding = env0_5;
|
||||
push = binding.push;
|
||||
Reflect.apply(push, binding, [object2]);
|
||||
break reducibleJoin23;
|
||||
}
|
||||
break reducibleJoin23;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun85774(a0) { // fn#85774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:2125, offset: 0x01f7b6f9, size: 92 bytes, params: 2, frame: 14
|
||||
var r1;
|
||||
const binding = env0_6;
|
||||
let r0 = binding ? !a0.log.includes('↪') : !binding;
|
||||
if (r0) {
|
||||
r1 = !importAll && a0.emoji === '🎨';
|
||||
r1 = !r1 ? a0.shouldKeep === false : r1;
|
||||
r0 = !r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function isSuperNoisyLog(a0) { // fn#85772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11407:1725, offset: 0x01f7b6d2, size: 39 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return ['GET_CONSTANTS', 'CONVERT_CONSTANTS'].some(_fun85773);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user