199 lines
7.5 KiB
React
199 lines
7.5 KiB
React
/* Metro module 833; source: unknown; dependencies: [830, 832, 834] */
|
|
function _fun9036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:6, offset: 0x00d5bab2, size: 198 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const closure = consoleSandbox;
|
|
const closure2 = function() {
|
|
return _getLoggerSettings().enabled;
|
|
};
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
const object = {enable: enable_9046, disable: disable_9047, isEnabled: closure2, log: log_9048, warn: warn,
|
|
error: error};
|
|
exports.CONSOLE_LEVELS = ['debug', 'info', 'warn', 'error', 'log', 'assert', 'trace'];
|
|
exports.consoleSandbox = closure;
|
|
exports.debug = object;
|
|
exports.originalConsoleMethods = {};
|
|
}
|
|
|
|
function consoleSandbox(a0) { // fn#9037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:100, offset: 0x00d5bb78, size: 182 bytes, params: 2, frame: 16
|
|
var console;
|
|
var value2;
|
|
var error;
|
|
var value;
|
|
const GLOBAL_OBJ = (require(830) /* metro dependency 830 */).GLOBAL_OBJ;
|
|
if ('console' in GLOBAL_OBJ) {
|
|
console = GLOBAL_OBJ.console;
|
|
var env0_1 = {};
|
|
value = global.Object.keys(env0_2);
|
|
value.forEach(_fun9038);
|
|
try {
|
|
value2 = a0();
|
|
} catch (error) {
|
|
value.forEach(_fun9040);
|
|
throw error;
|
|
}
|
|
value.forEach(_fun9039);
|
|
return value2;
|
|
}
|
|
return a0();
|
|
}
|
|
|
|
function _maybeLog(a0) { // fn#9042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:401, offset: 0x00d5bc89, size: 152 bytes, params: 2, frame: 17
|
|
var r2;
|
|
var r3;
|
|
var value4;
|
|
var value7;
|
|
var value8;
|
|
var isEnabled_90412;
|
|
const env0_0 = a0;
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const value2 = 1;
|
|
reducibleJoin2: while (true) {
|
|
if (length > value2) {
|
|
value4 = length - value2;
|
|
r2 = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
r2 = 0;
|
|
break reducibleJoin2;
|
|
}
|
|
const value5 = Object.create(Array.prototype, {constructor: {value: Array}});
|
|
const array = new Array();
|
|
if (value2 < length) {
|
|
r2 = value2;
|
|
reducibleLoop3: while (true) {
|
|
value7 = r2 - value2;
|
|
(array instanceof Object ? array : value5)[value7] = arguments[r2];
|
|
value8 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value8 < length) {
|
|
r2 = value8;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
const DEBUG_BUILD = require(dependencyMap[value2]).DEBUG_BUILD;
|
|
reducibleJoin6: while (true) {
|
|
if (DEBUG_BUILD) {
|
|
isEnabled_90412 = isEnabled_9041();
|
|
r3 = isEnabled_90412;
|
|
break reducibleJoin6;
|
|
}
|
|
r3 = DEBUG_BUILD;
|
|
break reducibleJoin6;
|
|
}
|
|
reducibleJoin8: while (true) {
|
|
if (r3) {
|
|
consoleSandbox(_fun9043);
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
|
|
function _getLoggerSettings() { // fn#9044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:654, offset: 0x00d5bd92, size: 91 bytes, params: 1, frame: 14
|
|
var r0;
|
|
var value;
|
|
if ((require(832) /* metro dependency 832 */).DEBUG_BUILD) {
|
|
value = require(834) /* metro dependency 834 */;
|
|
value = value.getGlobalSingleton('loggerSettings', function() {
|
|
return {enabled: false};
|
|
});
|
|
r0 = value;
|
|
} else {
|
|
r0 = {enabled: false};
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function enable_9046() { // fn#9046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:816, offset: 0x00d5bdf7, size: 23 bytes, params: 1, frame: 10
|
|
_getLoggerSettings().enabled = true;
|
|
}
|
|
|
|
function disable_9047() { // fn#9047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:875, offset: 0x00d5be0e, size: 23 bytes, params: 1, frame: 10
|
|
_getLoggerSettings().enabled = false;
|
|
}
|
|
|
|
function log_9048() { // fn#9048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:951, offset: 0x00d5be25, size: 102 bytes, params: 1, frame: 15
|
|
var r1;
|
|
var value5;
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r1 = value4; true; r1 = value5) {
|
|
array[r1] = arguments[r1];
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const _maybeLogBinding = _maybeLog;
|
|
const items2 = ['log'];
|
|
_maybeLogBinding.apply(undefined, items2.concat(array));
|
|
}
|
|
|
|
function warn() { // fn#9049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:1086, offset: 0x00d5be8b, size: 102 bytes, params: 1, frame: 15
|
|
var r1;
|
|
var value5;
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r1 = value4; true; r1 = value5) {
|
|
array[r1] = arguments[r1];
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const _maybeLogBinding = _maybeLog;
|
|
const items2 = ['warn'];
|
|
_maybeLogBinding.apply(undefined, items2.concat(array));
|
|
}
|
|
|
|
function error() { // fn#9050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:1224, offset: 0x00d5bef1, size: 102 bytes, params: 1, frame: 15
|
|
var r1;
|
|
var value5;
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r1 = value4; true; r1 = value5) {
|
|
array[r1] = arguments[r1];
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const _maybeLogBinding = _maybeLog;
|
|
const items2 = ['error'];
|
|
_maybeLogBinding.apply(undefined, items2.concat(array));
|
|
}
|
|
|
|
function _fun9038(a0) { // fn#9038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:241, offset: 0x00d5bc2e, size: 45 bytes, params: 2, frame: 5
|
|
const property = env1_2[a0];
|
|
env0_1[a0] = console[a0];
|
|
console[a0] = property;
|
|
}
|
|
|
|
function _fun9043() { // fn#9043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:960:555, offset: 0x00d5bd21, size: 113 bytes, params: 1, frame: 18
|
|
const GLOBAL_OBJ = (require(830) /* metro dependency 830 */).GLOBAL_OBJ;
|
|
const console = GLOBAL_OBJ.console;
|
|
const binding = env0_0;
|
|
const property = console[binding];
|
|
const apply = property.apply;
|
|
const items2 = ['Sentry Logger [' + binding + ']:'];
|
|
Reflect.apply(apply, property, [console, items2.concat(env0_1)]);
|
|
}
|
|
|