Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

File diff suppressed because it is too large. Load diff
+257
View File
@@ -0,0 +1,257 @@
/* Metro module 12; source: modules/debug/LogAggregator.tsx; dependencies: [13, 2] */
function _fun154(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:17:6, offset: 0x00c39b4c, size: 181 bytes, params: 8, frame: 17
const _arrayLikeToArray = function(a0, a1) {
var r0;
var r1;
var r2;
var value3;
var length;
var value5;
var value = undefined;
var value2 = value == null;
reducibleJoin2: while (true) {
if (value2) {
r0 = value2;
break reducibleJoin2;
}
value3 = value > a0.length;
r0 = value3;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r0) {
length = a0.length;
r1 = length;
break reducibleJoin4;
}
r1 = value;
break reducibleJoin4;
}
value = (0, global.Array)(r1);
var value4 = 0;
if (value4 < r1) {
r2 = value4;
reducibleLoop5: while (true) {
value[r2] = a0[r2];
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value5 < r1) {
r2 = value5;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
return value;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importDefault(13) /* metro dependency 13 */;
value = new value(5000);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/LogAggregator.tsx');
exports.report = report;
exports.clear = clear_159;
exports.stringify = stringify;
exports.getAllForDebugPanel = getAllForDebugPanel;
}
function _createForOfIteratorHelperLoose(a0, a1) { // fn#155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:17:46, offset: 0x00c39c01, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun156;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun156;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function report(a0, a1) { // fn#158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:17:1106, offset: 0x00c39e00, size: 348 bytes, params: 3, frame: 25
var r4;
var r8;
var r14;
var r5;
var value5;
var value6;
var Error;
var JSON;
var stringify;
var value7;
var message;
var value8;
var stack;
var value9;
var value10;
var value11;
var binding;
var push;
var object2;
var shift;
let value = copyRestArgs(1, undefined);
value = _createForOfIteratorHelperLoose(value);
const value3 = value();
let done = value3.done;
const value4 = '';
if (done) {
r5 = value4;
} else {
r4 = value4;
r8 = value3;
reducibleLoop1: while (true) {
value5 = r8.value;
value6 = typeof value5;
reducibleJoin8: while (true) {
reducibleJoin7: while (true) {
if (value6 === 'string') {
break reducibleJoin7;
}
if (value6 === 'number') {
break reducibleJoin7;
}
if (value6 === 'boolean') {
break reducibleJoin7;
}
Error = global.Error;
if (value5 instanceof Error) {
message = value5.message;
value8 = message + '\n';
stack = value5.stack;
value9 = r4 + (value8 + stack + ' ');
r14 = value9;
break reducibleJoin8;
}
JSON = global.JSON;
stringify = JSON.stringify;
value7 = r4 + (Reflect.apply(stringify, JSON, [value5]) + ' ');
r14 = value7;
break reducibleJoin8;
}
value10 = r4 + (value5 + ' ');
r14 = value10;
break reducibleJoin8;
}
value11 = value();
done = value11.done;
if (done) {
r5 = r14;
break reducibleLoop1;
}
r4 = r14;
r8 = value11;
continue reducibleLoop1;
}
}
if (typeof a0 === 'string') {
binding = env0_0;
push = binding.push;
object2 = {};
object2.time = global.Date.now();
object2.category = a0;
object2.message = r5;
Reflect.apply(push, binding, [object2]);
} else {
binding = env0_0;
push = binding.push;
object2 = {};
object2.time = global.Date.now();
object2.category = a0.name;
object2.timing = a0.timing;
object2.message = r5;
Reflect.apply(push, binding, [object2]);
}
let length = env0_0.length;
if (length > 5000) {
reducibleLoop13: while (true) {
binding = env0_0;
shift = binding.shift;
Reflect.apply(shift, binding, []);
length = binding.length;
if (length > 5000) {
continue reducibleLoop13;
}
break reducibleLoop13;
}
}
}
function stringify(a0) { // fn#160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:17:1609, offset: 0x00c39f5c, size: 72 bytes, params: 2, frame: 12
const env0_0 = a0;
let value = env0_0.toArray();
value = value.filter(_fun161);
value = value.map(function(a0) {
var items = [];
items.push(new global.Date(a0.time).toISOString());
if (a0.timing != null) {
items.push(a0.timing);
}
items.push(a0.category, a0.message);
return items.join(' -> ');
});
return value.join('\n');
}
function getAllForDebugPanel() { // fn#163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:17:1874, offset: 0x00c3a04c, size: 48 bytes, params: 1, frame: 10
let value = a0;
let r0 = value !== undefined ? value : false;
value = env0_0.toArray();
if (r0) {
value = value.reverse();
r0 = value;
} else {
r0 = value;
}
return r0;
}
function _fun161(a0) { // fn#161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:17:1658, offset: 0x00c39fa4, size: 40 bytes, params: 2, frame: 12
return env0_0 == null || env0_0.includes(a0.category);
}
+31
View File
@@ -0,0 +1,31 @@
/* Metro module 3; source: modules/debug/Logger.tsx; dependencies: [4, 12, 2] */
function _fun107(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8:6, offset: 0x00c38a27, size: 161 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Date = global.Date;
const value = Date.now();
(require(4) /* metro dependency 4: Logger */).setLogFn(_fun108);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/Logger.tsx');
const Logger = (require(4) /* metro dependency 4: Logger */).Logger;
exports.default = Logger;
}
function _fun108(a0, a1, a2, a3) { // fn#108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8:131, offset: 0x00c38ac8, size: 271 bytes, params: 5, frame: 27
const value = copyRestArgs(3, undefined);
const Date = global.Date;
const value2 = Date.now();
const value5 = ((value2 - env0_3) / 1000).toFixed(3);
const value7 = ((value2 - env0_4) / 1000).toFixed(3);
const logAggregatorModule = importAll(12) /* metro dependency 12: LogAggregator */;
const report = logAggregatorModule.report;
const items3 = [{name: a0, timing: 'Σ:' + value5 + 's, Δ:' + value7 + 's'}, a2];
arraySpread(items3, value, 2, 's');
apply(report, items3, logAggregatorModule, 's');
const loggerModule = require(4) /* metro dependency 4: Logger */;
const defaultLogFn = loggerModule.defaultLogFn;
items2 = [a0, a1, a2];
arraySpread(items2, value, 3, 's');
apply(defaultLogFn, items2, loggerModule, 's');
}
@@ -0,0 +1,29 @@
/* Metro module 11223; source: modules/debug/getLogMetadata.native.tsx; dependencies: [1582, 4092, 2] */
function _fun85791(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11409:6, offset: 0x01f7bd44, size: 103 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/getLogMetadata.native.tsx');
exports.default = getLogMetadata;
}
function getLogMetadata() { // fn#85792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11409:175, offset: 0x01f7bdab, size: 230 bytes, params: 1, frame: 22
const {Identifier, Version, Manifest, ReleaseChannel, Build,
DeviceVendorID} = (importAll(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
const object2 = {};
const Date = global.Date;
const value3 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date();
object2.logsUploaded = (date instanceof Object ? date : value3).toISOString();
object2.Identifier = Identifier;
object2.Version = Version;
object2.Manifest = Manifest;
object2.ReleaseChannel = ReleaseChannel;
object2.Build = Build;
object2.JSBuildNumber = (importAll(1582) /* metro dependency 1582: ClientInfoUtils */).getBuildNumberLabel();
object2.DeviceVendorID = DeviceVendorID;
object2.DeviceInfo = (require(4092) /* metro dependency 4092: DeviceUtils */).getDeviceInfo();
object2.systemVersion = (require(4092) /* metro dependency 4092: DeviceUtils */).getSystemVersion();
return object2;
}
@@ -0,0 +1,21 @@
/* Metro module 11219; source: modules/debug/getPushNotificationLogs.android.tsx; dependencies: [1226, 10743, 2] */
function _fun85754(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11405:6, offset: 0x01f7ab9b, size: 114 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/getPushNotificationLogs.android.tsx');
exports.default = getPushNotificationLogs;
}
function getPushNotificationLogs() { // fn#85755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11405:199, offset: 0x01f7ac0d, size: 73 bytes, params: 1, frame: 12
const defaultImport = importDefault(10743) /* metro dependency 10743: NativePushNotificationMonitorModule */;
const getPushNotificationLogs = defaultImport.getPushNotificationLogs;
const getId = AuthenticationStore.getId;
return Reflect.apply(getPushNotificationLogs, defaultImport, [Reflect.apply(getId, AuthenticationStore,
[])]).then(function(a0) {
var property = global.JSON;
property = property.parse(a0).pushNotifications;
return property ?? [];
});
}
+12
View File
@@ -0,0 +1,12 @@
/* Metro module 1; source: modules/debug/logAppStart.tsx; dependencies: [2, 3, 14, 2] */
function _fun102(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6:6, offset: 0x00c388a5, size: 223 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).clear();
new (require(3) /* metro dependency 3: Logger */).default('app').log('Initializing app');
(require(14) /* metro dependency 14: TTITracker */).default.loadIndex.recordStart();
(require(14) /* metro dependency 14: TTITracker */).default.loadImports.recordStart();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/logAppStart.tsx');
exports.default = null;
}
@@ -0,0 +1,8 @@
/* Metro module 15648; source: modules/debug/logThirdPartyImportsDone.tsx; dependencies: [3, 2] */
function _fun119827(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15856:6, offset: 0x0251ac6e, size: 93 bytes, params: 8, frame: 13
let value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('app');
value.log('Finished loading third party imports');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/logThirdPartyImportsDone.tsx');
}
@@ -0,0 +1,12 @@
/* Metro module 16254; source: modules/debug/native/AppCrashedFatalReport.android.tsx; dependencies: [27, 2] */
function _fun125620(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16462:6, offset: 0x025dea1e, size: 115 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const NativeModules = (require(27) /* metro dependency 27 */).NativeModules;
const env0_0 = NativeModules.CrashReportingManager;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/native/AppCrashedFatalReport.android.tsx');
exports.init = function() {
CrashReportingManager.initializeManager();
};
}
@@ -0,0 +1,9 @@
/* Metro module 12956; source: modules/debug/native/ReactotronConfig.tsx; dependencies: [12957, 2] */
function _fun98775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#98775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13146:6, offset: 0x021b4594, size: 85 bytes, params: 8, frame: 13
let value = importDefault(12957) /* metro dependency 12957 */;
value = value.configure({});
value = value.useReactNative();
value.connect();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/native/ReactotronConfig.tsx');
}
@@ -0,0 +1,35 @@
/* Metro module 13961; source: modules/debug/native/ShareLogsButton.tsx; dependencies: [31, 33, 5278, 1244, 9212, 12, 9798, 2] */
function _fun105953(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14158:6, offset: 0x022c86db, size: 141 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
value = value.memo(ShareLogsButton);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/native/ShareLogsButton.tsx');
exports.default = value;
}
function ShareLogsButton() { // fn#105954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14158:134, offset: 0x022c8768, size: 141 bytes, params: 1, frame: 18
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Aw+09z']);
object2.onPress = onPress_105955;
const ShareIcon = (require(9798) /* metro dependency 9798: ShareIcon */).ShareIcon;
return (
<PressableOpacity {...object2}>
<ShareIcon />
</PressableOpacity>
);
}
function ShareLogsButtonOnPress() { // fn#105955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14158:264, owner: ShareLogsButton.onPress, offset: 0x022c87f5, size: 73 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(9212) /* metro dependency 9212: showShareActionSheetAndroid */;
const showShareActionSheet = value.showShareActionSheet;
const object2 = {};
object2.message = (require(12) /* metro dependency 12: LogAggregator */).stringify();
return Reflect.apply(showShareActionSheet, value, [object2, 'Debug Logs']);
}
@@ -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);
}
@@ -0,0 +1,37 @@
/* Metro module 11220; source: modules/debug/serializePushNotifcationLogs.tsx; dependencies: [661, 587, 2] */
function _fun85757(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11406:6, offset: 0x01f7ac80, size: 127 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_2 = constantsModule.DEVICE_TOKEN;
const env0_3 = constantsModule.DEVICE_VOIP_TOKEN;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/debug/serializePushNotifcationLogs.tsx');
exports.default = serializePushNotificationLogs;
}
function serializePushNotificationLogs(a0, a1) { // fn#85758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11406:235, offset: 0x01f7acff, size: 250 bytes, params: 3, frame: 22
const env0_0 = a1;
if (a0.length === 0) {
return 'No logs';
}
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
const value2 = Storage.get(DEVICE_TOKEN);
let value = Storage.get(DEVICE_VOIP_TOKEN);
const value3 = '';
const r5 = value2 != null ? 'Device Token: ' + value2 : value3;
const r4 = value != null ? 'Device Voip Token: ' + value : value3;
value = a0.map(_fun85759);
value = value.join('\n');
return value3 + r5 + '\n' + r4 + '\n\n' + value;
}
function _fun85759(a0) { // fn#85759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11406:460, offset: 0x01f7adf9, size: 210 bytes, params: 2, frame: 23
const r8 = a0.silent ? 'Silent' : 'Displayed';
const r7 = require ? '' + a0.channelId + ' - ' + a0.messageId : '' + a0.title + ' - ' + a0.content;
const Date = global.Date;
let date = new Date(a0.receivedTimestamp);
date = date.toISOString();
return '' + date + ' [' + a0.type + '] ' + r8 + ' - ' + r7;
}