Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,462 @@
|
||||
/* Metro module 7375; source: unknown; dependencies: [57, 7368, 7369, 7376, 7377, 7378] */
|
||||
function _fun59391(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:6, offset: 0x016e9990, size: 208 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = addNonEnumerableProperty_59392;
|
||||
const closure2 = markFunctionWrapped_59393;
|
||||
const closure3 = convertToPlainObject_59394;
|
||||
const getOwnProperties_59396 = function(a0) {
|
||||
var r4;
|
||||
var object;
|
||||
var propertyName;
|
||||
var propertyName2;
|
||||
var hasOwnProperty;
|
||||
if (typeof a0 === 'object') {
|
||||
if (a0 !== null) {
|
||||
object = {};
|
||||
for (propertyName in a0) {
|
||||
hasOwnProperty = global.Object.prototype.hasOwnProperty;
|
||||
if (!hasOwnProperty.call(a0, propertyName)) {
|
||||
r4 = propertyName2;
|
||||
continue;
|
||||
}
|
||||
object[propertyName] = a0[propertyName];
|
||||
r4 = propertyName2;
|
||||
}
|
||||
return object;
|
||||
}
|
||||
}
|
||||
return {};
|
||||
};
|
||||
const env0_2 = require(57) /* metro dependency 57 */;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
exports.addNonEnumerableProperty = closure;
|
||||
exports.convertToPlainObject = closure3;
|
||||
exports.dropUndefinedKeys = dropUndefinedKeys_59399;
|
||||
exports.extractExceptionKeysForMessage = extractExceptionKeysForMessage_59400;
|
||||
exports.fill = fill_59401;
|
||||
exports.getOriginalFunction = function(a0) {
|
||||
return a0.__sentry_original__;
|
||||
};
|
||||
exports.markFunctionWrapped = closure2;
|
||||
exports.objectify = objectify_59403;
|
||||
exports.urlEncode = function(a0) {
|
||||
var Object = global.Object;
|
||||
var value = Object.entries(a0);
|
||||
value = value.map(_fun59405);
|
||||
return value.join('&');
|
||||
};
|
||||
}
|
||||
|
||||
function addNonEnumerableProperty_59392(a0, a1, a2) { // fn#59392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:45, offset: 0x016e9a60, size: 165 bytes, params: 4, frame: 18
|
||||
var Object;
|
||||
var error;
|
||||
var value;
|
||||
var DEBUG_BUILD;
|
||||
var logger;
|
||||
try {
|
||||
Object = global.Object;
|
||||
Object.defineProperty(a0, a1, {'value': null, 'writable': true, 'configurable': true, value: a2});
|
||||
} catch (error) {
|
||||
value = environment;
|
||||
DEBUG_BUILD = (require(7368) /* metro dependency 7368 */).DEBUG_BUILD;
|
||||
if (DEBUG_BUILD) {
|
||||
logger = (require(7369) /* metro dependency 7369 */).logger;
|
||||
logger.log('Failed to add non-enumerable property "' + a1 + '" to object', a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function markFunctionWrapped_59393(a0, a1) { // fn#59393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:265, offset: 0x016e9b05, size: 68 bytes, params: 3, frame: 15
|
||||
var r0;
|
||||
var prototype;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
prototype = a1.prototype;
|
||||
r0 = prototype || ({});
|
||||
a1.prototype = r0;
|
||||
a0.prototype = r0;
|
||||
value = environment;
|
||||
addNonEnumerableProperty_59392(a0, '__sentry_original__', a1);
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
|
||||
function convertToPlainObject_59394(a0) { // fn#59394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:414, offset: 0x016e9b49, size: 286 bytes, params: 2, frame: 19
|
||||
var r2;
|
||||
var Object;
|
||||
var assign;
|
||||
var object2;
|
||||
var serializeEventTarget_59395Binding;
|
||||
var value2;
|
||||
var value3;
|
||||
var value;
|
||||
const moduleValue = require(7376) /* metro dependency 7376 */;
|
||||
if (moduleValue.isError(a0)) {
|
||||
return global.Object.assign({message: a0.message, name: a0.name, stack: a0.stack}, getOwnProperties_59396(a0));
|
||||
}
|
||||
const moduleValue2 = moduleValue;
|
||||
if (moduleValue2.isEvent(a0)) {
|
||||
Object = global.Object;
|
||||
assign = Object.assign;
|
||||
object2 = {};
|
||||
object2.type = a0.type;
|
||||
serializeEventTarget_59395Binding = serializeEventTarget_59395;
|
||||
object2.target = serializeEventTarget_59395Binding(a0.target);
|
||||
object2.currentTarget = serializeEventTarget_59395Binding(a0.currentTarget);
|
||||
value2 = Reflect.apply(assign, Object, [object2, getOwnProperties_59396(a0)]);
|
||||
value3 = typeof global.CustomEvent !== 'undefined';
|
||||
if (value3) {
|
||||
value = moduleValue;
|
||||
value = value.isInstanceOf(a0, global.CustomEvent);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value3;
|
||||
}
|
||||
if (r2) {
|
||||
value2.detail = a0.detail;
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function serializeEventTarget_59395(a0) { // fn#59395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:832, offset: 0x016e9c67, size: 121 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value;
|
||||
var property;
|
||||
var moduleValue;
|
||||
var isElement2;
|
||||
var Object;
|
||||
var prototype;
|
||||
var toString;
|
||||
var error;
|
||||
try {
|
||||
value = environment;
|
||||
property = dependencyMap[3];
|
||||
moduleValue = require(property);
|
||||
isElement2 = moduleValue.isElement(a0);
|
||||
if (isElement2) {
|
||||
property = dependencyMap[4];
|
||||
value = require(property);
|
||||
value = value.htmlTreeAsString(a0);
|
||||
r0 = value;
|
||||
} else {
|
||||
Object = global.Object;
|
||||
prototype = Object.prototype;
|
||||
toString = prototype.toString;
|
||||
value = toString.call(a0);
|
||||
r0 = value;
|
||||
}
|
||||
} catch (error) {
|
||||
return '<unknown>';
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _dropUndefinedKeys_59397(a0, a1) { // fn#59397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:1146, offset: 0x016e9ce0, size: 360 bytes, params: 3, frame: 23
|
||||
var environment;
|
||||
var r2;
|
||||
var r0;
|
||||
var r3;
|
||||
var value;
|
||||
var moduleValue;
|
||||
var isPlainObject;
|
||||
var isPlainObject2;
|
||||
var value2;
|
||||
var Object;
|
||||
var getPrototypeOf;
|
||||
var value3;
|
||||
var constructor;
|
||||
var name;
|
||||
var value4;
|
||||
var value5;
|
||||
var error;
|
||||
var value6;
|
||||
var Array;
|
||||
var isArray;
|
||||
var get;
|
||||
var object;
|
||||
var set;
|
||||
var value7;
|
||||
var getOwnPropertyNames;
|
||||
var iterator;
|
||||
var iterator2;
|
||||
var item;
|
||||
var item2;
|
||||
var property;
|
||||
var value8;
|
||||
var _dropUndefinedKeys_59397Binding;
|
||||
var value9;
|
||||
exceptionLanding30: while (true) {
|
||||
reducibleJoin12: while (true) {
|
||||
reduciblePort11: while (true) {
|
||||
exceptionLanding10: while (true) {
|
||||
var env0_0 = a1;
|
||||
value = environment;
|
||||
moduleValue = require(7376) /* metro dependency 7376 */;
|
||||
isPlainObject = moduleValue.isPlainObject;
|
||||
isPlainObject2 = Reflect.apply(isPlainObject, moduleValue, [a0]);
|
||||
value2 = false;
|
||||
if (isPlainObject2) {
|
||||
try {
|
||||
Object = global.Object;
|
||||
} catch (error) {
|
||||
break exceptionLanding10;
|
||||
}
|
||||
try {
|
||||
getPrototypeOf = Object.getPrototypeOf;
|
||||
} catch (error) {
|
||||
break exceptionLanding10;
|
||||
}
|
||||
try {
|
||||
value3 = Reflect.apply(getPrototypeOf, Object, [a0]);
|
||||
} catch (error) {
|
||||
break exceptionLanding10;
|
||||
}
|
||||
try {
|
||||
constructor = value3.constructor;
|
||||
} catch (error) {
|
||||
break exceptionLanding10;
|
||||
}
|
||||
try {
|
||||
name = constructor.name;
|
||||
} catch (error) {
|
||||
break exceptionLanding10;
|
||||
}
|
||||
value4 = !name;
|
||||
reducibleJoin9: while (true) {
|
||||
if (name) {
|
||||
value5 = name === 'Object';
|
||||
r2 = value5;
|
||||
break reducibleJoin9;
|
||||
}
|
||||
r2 = value4;
|
||||
break reducibleJoin9;
|
||||
}
|
||||
r0 = r2;
|
||||
break reduciblePort11;
|
||||
}
|
||||
r0 = value2;
|
||||
break reduciblePort11;
|
||||
}
|
||||
value6 = true;
|
||||
r0 = value6;
|
||||
break reduciblePort11;
|
||||
}
|
||||
if (r0) {
|
||||
get = a1.get;
|
||||
value7 = Reflect.apply(get, a1, [a0]);
|
||||
if (value7 !== undefined) {
|
||||
return value7;
|
||||
}
|
||||
object = {};
|
||||
set = a1.set;
|
||||
Reflect.apply(set, a1, [a0, object]);
|
||||
Object = global.Object;
|
||||
getOwnPropertyNames = Object.getOwnPropertyNames;
|
||||
iterator = Reflect.apply(getOwnPropertyNames, Object, [a0])[Symbol.iterator]();
|
||||
iterator2 = iterator.next;
|
||||
r3 = iterator;
|
||||
reducibleLoop19: while (true) {
|
||||
item2 = Reflect.apply(iterator2, r3, []);
|
||||
item = item2.value;
|
||||
item2 = item2.done ? undefined : r3;
|
||||
if (item2 === undefined) {
|
||||
break reducibleLoop19;
|
||||
}
|
||||
try {
|
||||
property = a0[item];
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
try {
|
||||
value8 = property === undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
if (value8) {
|
||||
r3 = item2;
|
||||
continue reducibleLoop19;
|
||||
}
|
||||
try {
|
||||
_dropUndefinedKeys_59397Binding = _dropUndefinedKeys_59397;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
try {
|
||||
property = a0[item];
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
try {
|
||||
value9 = _dropUndefinedKeys_59397Binding(property, a1);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
try {
|
||||
object[item] = value9;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
r3 = item2;
|
||||
continue reducibleLoop19;
|
||||
}
|
||||
return object;
|
||||
}
|
||||
break reducibleJoin12;
|
||||
}
|
||||
Array = global.Array;
|
||||
isArray = Array.isArray;
|
||||
if (Reflect.apply(isArray, Array, [a0])) {
|
||||
value = a1.get(a0);
|
||||
if (value !== undefined) {
|
||||
return value;
|
||||
}
|
||||
object = [];
|
||||
var env0_1 = object;
|
||||
a1.set(a0, object);
|
||||
a0.forEach(_fun59398);
|
||||
return object;
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
try {
|
||||
item2.return();
|
||||
} catch {
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
|
||||
function dropUndefinedKeys_59399(a0) { // fn#59399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:1822, offset: 0x016e9e71, size: 48 bytes, params: 2, frame: 13
|
||||
const _dropUndefinedKeys_59397Binding = _dropUndefinedKeys_59397;
|
||||
const Map = global.Map;
|
||||
return _dropUndefinedKeys_59397Binding(a0, new Map());
|
||||
}
|
||||
|
||||
function extractExceptionKeysForMessage_59400(a0) { // fn#59400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:1924, offset: 0x016e9ea1, size: 248 bytes, params: 2, frame: 23
|
||||
var r5;
|
||||
var r9;
|
||||
var length;
|
||||
var slice;
|
||||
var value3;
|
||||
var join;
|
||||
var value4;
|
||||
var value5;
|
||||
let value = 40;
|
||||
const r3 = arguments.length > 1 ? arguments[1] === undefined ? value : arguments[1] : value;
|
||||
const Object = global.Object;
|
||||
const value2 = Object.keys(convertToPlainObject_59394(a0));
|
||||
value2.sort();
|
||||
const property = value2[0];
|
||||
if (property) {
|
||||
length = property.length;
|
||||
if (length >= r3) {
|
||||
return (require(7378) /* metro dependency 7378 */).truncate(property, r3);
|
||||
}
|
||||
length = value2.length;
|
||||
if (length > 0) {
|
||||
r5 = length;
|
||||
loopExit7: while (true) {
|
||||
slice = value2.slice;
|
||||
value3 = Reflect.apply(slice, value2, [0, r5]);
|
||||
join = value3.join;
|
||||
value4 = Reflect.apply(join, value3, [', ']);
|
||||
length = value4.length;
|
||||
if (length > r3) {
|
||||
value5 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
|
||||
if (!(value5 > 0)) {
|
||||
return '';
|
||||
}
|
||||
r5 = value5;
|
||||
continue;
|
||||
}
|
||||
break loopExit7;
|
||||
}
|
||||
length = value2.length;
|
||||
if (r5 === length) {
|
||||
r9 = value4;
|
||||
} else {
|
||||
value = require(7378) /* metro dependency 7378 */;
|
||||
value = value.truncate(value4, r3);
|
||||
r9 = value;
|
||||
}
|
||||
return r9;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
return '[object has no keys]';
|
||||
}
|
||||
|
||||
function fill_59401(a0, a1, a2) { // fn#59401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:2306, offset: 0x016e9f99, size: 194 bytes, params: 4, frame: 17
|
||||
var property;
|
||||
var value;
|
||||
var error;
|
||||
var DEBUG_BUILD;
|
||||
var logger;
|
||||
if (a1 in a0) {
|
||||
property = a0[a1];
|
||||
value = a2(property);
|
||||
if (typeof value === 'function') {
|
||||
markFunctionWrapped_59393(value, property);
|
||||
}
|
||||
try {
|
||||
a0[a1] = value;
|
||||
} catch (error) {
|
||||
value = environment;
|
||||
DEBUG_BUILD = (require(7368) /* metro dependency 7368 */).DEBUG_BUILD;
|
||||
if (DEBUG_BUILD) {
|
||||
logger = (require(7369) /* metro dependency 7369 */).logger;
|
||||
logger.log('Failed to replace method "' + a1 + '" in object', a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function objectify_59403(a0) { // fn#59403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:2654, offset: 0x016ea05b, size: 164 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var constructor;
|
||||
let value = a0;
|
||||
if (value == null === true) {
|
||||
r0 = new global.String(value);
|
||||
} else {
|
||||
value2 = typeof value;
|
||||
r0 = value2 === 'symbol' || value2 === 'bigint';
|
||||
if (r0 === true) {
|
||||
value = global.Object(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
moduleValue = require(7376) /* metro dependency 7376 */;
|
||||
if (moduleValue.isPrimitive(value) !== true) {
|
||||
r0 = value;
|
||||
} else {
|
||||
constructor = value.constructor;
|
||||
constructor = new constructor(value);
|
||||
r0 = constructor;
|
||||
}
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function urlEncode(a0) { // fn#59404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:2881, offset: 0x016ea0ff, size: 55 bytes, params: 2, frame: 11
|
||||
const Object = global.Object;
|
||||
let value = Object.entries(a0);
|
||||
value = value.map(_fun59405);
|
||||
return value.join('&');
|
||||
}
|
||||
|
||||
function _fun59398(a0) { // fn#59398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:1595, offset: 0x016e9e48, size: 41 bytes, params: 2, frame: 15
|
||||
const binding = env0_1;
|
||||
binding.push(_dropUndefinedKeys_59397(a0, require));
|
||||
}
|
||||
|
||||
function _fun59405(a0) { // fn#59405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7553:2933, offset: 0x016ea136, size: 86 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = env1_2(a0, 2);
|
||||
return '' + global.encodeURIComponent(value[0]) + '=' + global.encodeURIComponent(value[1]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user