238 lines
8.9 KiB
React
238 lines
8.9 KiB
React
/* Metro module 1036; source: unknown; dependencies: [826] */
|
|
function _fun11003(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:6, offset: 0x00d9e14e, size: 148 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const closure = ignoreNextOnError;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
const GLOBAL_OBJ = (require(826) /* metro dependency 826 */).GLOBAL_OBJ;
|
|
exports.WINDOW = GLOBAL_OBJ;
|
|
exports.getHttpRequestData = getHttpRequestData;
|
|
exports.ignoreNextOnError = closure;
|
|
exports.shouldIgnoreOnError = shouldIgnoreOnError;
|
|
exports.wrap = wrap;
|
|
}
|
|
|
|
function ignoreNextOnError() { // fn#11004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:99, offset: 0x00d9e1e2, size: 38 bytes, params: 1, frame: 11
|
|
const binding = env0_2;
|
|
env0_2 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
global.setTimeout(_fun11005);
|
|
}
|
|
|
|
function getHttpRequestData() { // fn#11006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:211, offset: 0x00d9e21a, size: 177 bytes, params: 1, frame: 17
|
|
const locationHref = (require(826) /* metro dependency 826 */).getLocationHref();
|
|
const GLOBAL_OBJ = (require(826) /* metro dependency 826 */).GLOBAL_OBJ;
|
|
const referrer = (GLOBAL_OBJ.document || ({})).referrer;
|
|
const userAgent = (GLOBAL_OBJ.navigator || ({})).userAgent;
|
|
const Object = global.Object;
|
|
return {url: locationHref, headers: Object.assign({}, referrer && ({Referer: referrer}),
|
|
userAgent && ({['User-Agent']: userAgent}))};
|
|
}
|
|
|
|
function shouldIgnoreOnError() { // fn#11007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:501, offset: 0x00d9e2cb, size: 15 bytes, params: 1, frame: 2
|
|
return env0_2 > 0;
|
|
}
|
|
|
|
function wrap(a0) { // fn#11008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:551, offset: 0x00d9e2da, size: 385 bytes, params: 2, frame: 29
|
|
var r11;
|
|
var r1;
|
|
var object;
|
|
var value2;
|
|
var __sentry_wrapped__;
|
|
var property;
|
|
var moduleValue;
|
|
var getOriginalFunction;
|
|
var value4;
|
|
var closure;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var value5;
|
|
var error;
|
|
var configurable;
|
|
var defineProperty;
|
|
var closure2;
|
|
var value6;
|
|
let value = a0;
|
|
if (arguments.length > 1) {
|
|
if (arguments[1] !== undefined) {
|
|
value2 = arguments[1];
|
|
} else {
|
|
object = {};
|
|
}
|
|
} else {
|
|
object = {};
|
|
}
|
|
if (typeof value === 'function') {
|
|
try {
|
|
__sentry_wrapped__ = value.__sentry_wrapped__;
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
if (__sentry_wrapped__) {
|
|
try {
|
|
value6 = typeof __sentry_wrapped__ === 'function';
|
|
r1 = value6 ? __sentry_wrapped__ : value;
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
return r1;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
try {
|
|
property = dependencyMap[0];
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
try {
|
|
getOriginalFunction = moduleValue.getOriginalFunction;
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(getOriginalFunction, moduleValue, [value]);
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
if (value4) {
|
|
return value;
|
|
}
|
|
closure = sentryWrapped;
|
|
try {
|
|
properties = Object.keys(value);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties !== undefined) {
|
|
r11 = properties2;
|
|
while (true) {
|
|
propertyName = properties[r11];
|
|
propertyName2 = r11 + 1;
|
|
if (propertyName === undefined) {
|
|
break;
|
|
}
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
value5 = hasOwnProperty.call(value, propertyName);
|
|
if (!value5) {
|
|
r11 = propertyName2;
|
|
continue;
|
|
}
|
|
property = value[propertyName];
|
|
closure[propertyName] = property;
|
|
r11 = propertyName2;
|
|
}
|
|
}
|
|
} catch (error) {
|
|
}
|
|
require(dependencyMap[0]).markFunctionWrapped(closure, value);
|
|
require(dependencyMap[0]).addNonEnumerableProperty(value, '__sentry_wrapped__', closure);
|
|
try {
|
|
Object = global.Object;
|
|
value = Object.getOwnPropertyDescriptor(closure, 'name');
|
|
configurable = value.configurable;
|
|
if (configurable) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
closure2 = get_11013;
|
|
Reflect.apply(defineProperty, Object, [closure, 'name', {get: closure2}]);
|
|
}
|
|
} catch (error) {
|
|
}
|
|
return closure;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function _fun11005() { // fn#11005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:144, offset: 0x00d9e208, size: 18 bytes, params: 1, frame: 2
|
|
const binding = env1_2;
|
|
env1_2 = typeof binding === 'bigint' ? binding - 1n : +binding - 1;
|
|
}
|
|
|
|
function sentryWrapped() { // fn#11009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:833, owner: wrap.sentryWrapped, offset: 0x00d9e45b, size: 170 bytes, params: 1, frame: 18
|
|
var environment;
|
|
var r2;
|
|
var value5;
|
|
var closure;
|
|
var value6;
|
|
var binding;
|
|
var error;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const env0_0 = array;
|
|
const value4 = 0;
|
|
if (value4 < value) {
|
|
for (r2 = value4; true; r2 = value5) {
|
|
array[r2] = arguments[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value5 < value)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
try {
|
|
closure = _fun11010;
|
|
value = array.map(closure);
|
|
value6 = environment;
|
|
binding = env0_0;
|
|
value = binding.apply(this, value);
|
|
} catch (error) {
|
|
var env0_1 = error;
|
|
value = environment.__proto__;
|
|
ignoreNextOnError();
|
|
value = require(dependencyMap[value4]);
|
|
value.withScope(_fun11011);
|
|
throw error;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function wrapGet() { // fn#11013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:1575, owner: wrap.get, offset: 0x00d9e5ea, size: 14 bytes, params: 1, frame: 1
|
|
return env0_0.name;
|
|
}
|
|
|
|
function _fun11010(a0) { // fn#11010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:947, offset: 0x00d9e505, size: 27 bytes, params: 2, frame: 13
|
|
return wrap(a0, env1_1);
|
|
}
|
|
|
|
function _fun11011(a0) { // fn#11011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:1056, offset: 0x00d9e520, size: 65 bytes, params: 2, frame: 12
|
|
var environment;
|
|
a0.addEventProcessor(_fun11012);
|
|
const value = environment.__proto__.__proto__;
|
|
(require(826) /* metro dependency 826 */).captureException(env0_1);
|
|
}
|
|
|
|
function _fun11012(a0) { // fn#11012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1163:1089, offset: 0x00d9e561, size: 137 bytes, params: 2, frame: 18
|
|
var value2;
|
|
var moduleValue2;
|
|
if (env2_1.mechanism) {
|
|
value2 = environment.__proto__.__proto__.__proto__;
|
|
(require(826) /* metro dependency 826 */).addExceptionTypeValue(a0, undefined, undefined);
|
|
moduleValue2 = require(826) /* metro dependency 826 */;
|
|
moduleValue2.addExceptionMechanism(a0, env2_1.mechanism);
|
|
}
|
|
const Object = global.Object;
|
|
a0.extra = Object.assign({}, a0.extra, {arguments: env1_0});
|
|
return a0;
|
|
}
|
|
|