Files
discord-decomp/sources/by-id/module-07459.jsx
T
2026-07-27 16:20:00 +03:00

851 lines
41 KiB
React

/* Metro module 7459; source: unknown; dependencies: [7425, 7376, 7414, 7375, 7378, 7397, 7369] */
function _fun60154(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7637:6, offset: 0x016fcf57, size: 88 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.extraErrorDataIntegration = (require(7425) /* metro dependency 7425 */).defineIntegration(function() {
var r2;
r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var property = r2.depth;
var env0_0 = property === undefined ? 3 : property;
property = r2.captureErrorCause;
var env0_1 = property === undefined || property;
return {name: 'ExtraErrorData', processEvent: _fun60156};
});
}
function _extraErrorDataIntegration_60155() { // fn#60155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7637:112, offset: 0x016fcfaf, size: 95 bytes, params: 1, frame: 6
const r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
const depth = r2.depth;
const env0_0 = depth === undefined ? 3 : depth;
const captureErrorCause = r2.captureErrorCause;
const env0_1 = captureErrorCause === undefined || captureErrorCause;
return {name: 'ExtraErrorData', processEvent: processEvent_60156};
}
function _extraErrorDataIntegration_60155ProcessEvent(a0, a1, a2) { // fn#60156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7637:321, owner: _extraErrorDataIntegration_60155.processEvent, offset: 0x016fd00e, size: 72 bytes, params: 4, frame: 19
const getOptions = a2.getOptions;
const maxValueLength = Reflect.apply(getOptions, a2, []).maxValueLength;
return processEvent_enhanceEventWithErrorData_60157(a0, a1, env0_0, env0_1,
maxValueLength === undefined ? 250 : maxValueLength);
}
function processEvent_enhanceEventWithErrorData_60157(a0) { // fn#60157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7637:393, owner: _extraErrorDataIntegration_60155.processEvent._enhanceEventWithErrorData, offset: 0x016fd056, size: 894 bytes, params: 2, frame: 42
var r0;
var r13;
var r14;
var r6;
var name;
var r16;
var r25;
var r9;
var r12;
var value;
var items;
var value2;
var value3;
var value4;
var value5;
var originalException;
var value6;
var moduleValue;
var isError;
var constructor;
var object3;
var Object;
var keys;
var value7;
var iterator;
var iterator2;
var item;
var item2;
var value8;
var indexOf;
var value9;
var value10;
var property;
var property2;
var moduleValue2;
var isError2;
var value11;
var property3;
var moduleValue3;
var truncate;
var HermesInternal;
var concat;
var value12;
var value13;
var error;
var cause;
var value14;
var moduleValue4;
var isError3;
var toString;
var value15;
var toJSON;
var value16;
var value17;
var value18;
var iterator3;
var item3;
var value19;
var property4;
var moduleValue5;
var isError4;
var value20;
var DEBUG_BUILD;
var value21;
var logger;
var error2;
var assign;
var contexts;
var value22;
var moduleValue6;
var normalize;
var value23;
var moduleValue7;
var isPlainObject;
var addNonEnumerableProperty;
exceptionLanding114: while (true) {
exceptionLanding59: while (true) {
value = undefined;
reducibleJoin4: while (true) {
reducibleJoin2: while (true) {
if (arguments.length > 1) {
if (value !== arguments[1]) {
value2 = arguments[1];
r0 = value2;
break reducibleJoin4;
}
break reducibleJoin2;
}
break reducibleJoin2;
}
r0 = {};
break reducibleJoin4;
}
reducibleJoin6: while (true) {
if (arguments.length > 2) {
value3 = arguments[2];
r13 = value3;
break reducibleJoin6;
}
r13 = value;
break reducibleJoin6;
}
reducibleJoin8: while (true) {
if (arguments.length > 3) {
value4 = arguments[3];
r14 = value4;
break reducibleJoin8;
}
r14 = value;
break reducibleJoin8;
}
reducibleJoin10: while (true) {
if (arguments.length > 4) {
value5 = arguments[4];
r6 = value5;
break reducibleJoin10;
}
r6 = value;
break reducibleJoin10;
}
originalException = r0.originalException;
if (originalException) {
value6 = environment.__proto__.__proto__;
moduleValue = require(dependencyMap[1]);
isError = moduleValue.isError;
originalException = r0.originalException;
reducibleJoin12: while (true) {
if (Reflect.apply(isError, moduleValue, [originalException])) {
originalException = r0.originalException;
name = originalException.name;
reducibleJoin15: while (true) {
if (name) {
break reducibleJoin15;
}
originalException = r0.originalException;
constructor = originalException.constructor;
name = constructor.name;
break reducibleJoin15;
}
originalException = r0.originalException;
reducibleJoin17: while (true) {
reduciblePort120: while (true) {
exceptionLanding118: while (true) {
try {
items = ['name', 'message', 'stack', 'line', 'column', 'fileName', 'lineNumber',
'columnNumber',
'toJSON'];
} catch (error) {
break exceptionLanding118;
}
break reducibleJoin17;
}
DEBUG_BUILD = require(dependencyMap[5]).DEBUG_BUILD;
value21 = null;
reducibleJoin120: while (true) {
if (DEBUG_BUILD) {
logger = require(dependencyMap[6]).logger;
error2 = logger.error;
Reflect.apply(error2, logger,
['Unable to extract extra data from the Error object:',
error]);
r12 = value21;
break reducibleJoin120;
}
r12 = value21;
break reducibleJoin120;
}
break reduciblePort120;
}
if (r12) {
Object = global.Object;
assign = Object.assign;
contexts = a0.contexts;
value22 = Reflect.apply(assign, Object, [{}, contexts]);
moduleValue6 = require(dependencyMap[2]);
normalize = moduleValue6.normalize;
value23 = Reflect.apply(normalize, moduleValue6, [r12, r13]);
moduleValue7 = require(dependencyMap[1]);
isPlainObject = moduleValue7.isPlainObject;
reducibleJoin124: while (true) {
if (Reflect.apply(isPlainObject, moduleValue7, [value23])) {
value = require(dependencyMap[3]);
addNonEnumerableProperty = value.addNonEnumerableProperty;
Reflect.apply(addNonEnumerableProperty, value, [value23,
'__sentry_skip_normalization__',
true]);
value22[name] = value23;
break reducibleJoin124;
}
break reducibleJoin124;
}
Object = global.Object;
assign = Object.assign;
return Reflect.apply(assign, Object, [{}, a0, {contexts: value22}]);
}
return a0;
}
try {
object3 = {};
} catch (error) {
break exceptionLanding118;
}
try {
Object = global.Object;
} catch (error) {
break exceptionLanding118;
}
try {
keys = Object.keys;
} catch (error) {
break exceptionLanding118;
}
try {
value7 = Reflect.apply(keys, Object, [originalException]);
} catch (error) {
break exceptionLanding118;
}
try {
iterator = value7[Symbol.iterator]();
iterator2 = iterator.next;
} catch (error) {
break exceptionLanding118;
}
r16 = iterator;
reducibleLoop26: while (true) {
try {
item2 = Reflect.apply(iterator2, r16, []);
item = item2.value;
item2 = item2.done ? undefined : r16;
} catch (error) {
break exceptionLanding118;
}
try {
value8 = item2 === value;
} catch (error) {
break exceptionLanding118;
}
if (value8) {
break reducibleLoop26;
}
try {
try {
indexOf = items.indexOf;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
value9 = Reflect.apply(indexOf, items, [item]);
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
value10 = value9 !== -1;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
reducibleJoin58: while (true) {
if (value10) {
break reducibleJoin58;
}
try {
try {
property = originalException[item];
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
property2 = dependencyMap[1];
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
moduleValue2 = require(property2);
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
isError = moduleValue2.isError;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
isError2 = Reflect.apply(isError, moduleValue2, [property]);
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
reducibleJoin57: while (true) {
reducibleJoin56: while (true) {
if (isError2) {
try {
try {
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
property3 = dependencyMap[4];
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
moduleValue3 = require(property3);
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
truncate = moduleValue3.truncate;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
HermesInternal = global.HermesInternal;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
concat = HermesInternal.concat;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
value12 = '' + property;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
break reducibleJoin56;
}
try {
try {
value11 = typeof property === 'string';
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
if (value11) {
try {
try {
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
property3 = dependencyMap[4];
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
moduleValue3 = require(property3);
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
truncate = moduleValue3.truncate;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
HermesInternal = global.HermesInternal;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
concat = HermesInternal.concat;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
value12 = '' + property;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
break reducibleJoin56;
}
r25 = property;
break reducibleJoin57;
}
try {
try {
value13 = Reflect.apply(truncate, moduleValue3, [value12, r6]);
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
r25 = value13;
break reducibleJoin57;
}
try {
try {
object3[item] = r25;
} catch (error) {
break exceptionLanding59;
}
} catch (error) {
break exceptionLanding118;
}
break reducibleJoin58;
}
r16 = item2;
continue reducibleLoop26;
}
reducibleJoin66: while (true) {
if (r14) {
try {
cause = originalException.cause;
} catch (error) {
break exceptionLanding118;
}
value14 = value !== cause;
r14 = value14;
break reducibleJoin66;
}
break reducibleJoin66;
}
reducibleJoin83: while (true) {
if (r14) {
try {
} catch (error) {
break exceptionLanding118;
}
try {
} catch (error) {
break exceptionLanding118;
}
try {
property = dependencyMap[1];
} catch (error) {
break exceptionLanding118;
}
try {
moduleValue4 = require(property);
} catch (error) {
break exceptionLanding118;
}
try {
isError = moduleValue4.isError;
} catch (error) {
break exceptionLanding118;
}
try {
cause = originalException.cause;
} catch (error) {
break exceptionLanding118;
}
try {
isError3 = Reflect.apply(isError, moduleValue4, [cause]);
} catch (error) {
break exceptionLanding118;
}
try {
cause = originalException.cause;
} catch (error) {
break exceptionLanding118;
}
if (isError3) {
try {
toString = cause.toString;
} catch (error) {
break exceptionLanding118;
}
try {
value15 = Reflect.apply(toString, cause, []);
} catch (error) {
break exceptionLanding118;
}
r14 = value15;
} else {
r14 = cause;
}
try {
object3.cause = r14;
} catch (error) {
break exceptionLanding118;
}
break reducibleJoin83;
}
break reducibleJoin83;
}
try {
toJSON = originalException.toJSON;
} catch (error) {
break exceptionLanding118;
}
try {
value16 = typeof toJSON !== 'function';
} catch (error) {
break exceptionLanding118;
}
reducibleJoin117: while (true) {
if (value16) {
break reducibleJoin117;
}
try {
toJSON = originalException.toJSON;
} catch (error) {
break exceptionLanding118;
}
try {
value17 = Reflect.apply(toJSON, originalException, []);
} catch (error) {
break exceptionLanding118;
}
try {
Object = global.Object;
} catch (error) {
break exceptionLanding118;
}
try {
keys = Object.keys;
} catch (error) {
break exceptionLanding118;
}
try {
value18 = Reflect.apply(keys, Object, [value17]);
} catch (error) {
break exceptionLanding118;
}
try {
iterator = value18[Symbol.iterator]();
iterator3 = iterator.next;
} catch (error) {
break exceptionLanding118;
}
r9 = iterator;
reducibleLoop96: while (true) {
try {
item3 = Reflect.apply(iterator3, r9, []);
item = item3.value;
item3 = item3.done ? undefined : r9;
} catch (error) {
break exceptionLanding118;
}
try {
value19 = item3 === value;
} catch (error) {
break exceptionLanding118;
}
if (value19) {
break reducibleJoin117;
}
try {
try {
property = value17[item];
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
property4 = dependencyMap[1];
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
moduleValue5 = require(property4);
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
isError = moduleValue5.isError;
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
isError4 = Reflect.apply(isError, moduleValue5, [property]);
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
if (isError4) {
try {
try {
toString = property.toString;
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
try {
try {
value20 = Reflect.apply(toString, property, []);
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
r14 = value20;
} else {
r14 = property;
}
try {
try {
object3[item] = r14;
} catch (error) {
break exceptionLanding114;
}
} catch (error) {
break exceptionLanding118;
}
r9 = item3;
continue reducibleLoop96;
}
}
r12 = object3;
if (r12) {
Object = global.Object;
assign = Object.assign;
contexts = a0.contexts;
value22 = Reflect.apply(assign, Object, [{}, contexts]);
moduleValue6 = require(dependencyMap[2]);
normalize = moduleValue6.normalize;
value23 = Reflect.apply(normalize, moduleValue6, [r12, r13]);
moduleValue7 = require(dependencyMap[1]);
isPlainObject = moduleValue7.isPlainObject;
reducibleJoin124: while (true) {
if (Reflect.apply(isPlainObject, moduleValue7, [value23])) {
value = require(dependencyMap[3]);
addNonEnumerableProperty = value.addNonEnumerableProperty;
Reflect.apply(addNonEnumerableProperty, value, [value23,
'__sentry_skip_normalization__',
true]);
value22[name] = value23;
break reducibleJoin124;
}
break reducibleJoin124;
}
Object = global.Object;
assign = Object.assign;
return Reflect.apply(assign, Object, [{}, a0, {contexts: value22}]);
}
return a0;
}
break reducibleJoin12;
}
}
return a0;
}
try {
try {
item2.return();
} catch {
}
} catch (error) {
break exceptionLanding118;
}
try {
throw error;
} catch (error) {
break exceptionLanding118;
}
}
try {
try {
item3.return();
} catch {
}
} catch (error) {
break exceptionLanding118;
}
try {
throw error;
} catch (error) {
break exceptionLanding118;
}
}