72 lines
2.9 KiB
JavaScript
72 lines
2.9 KiB
JavaScript
/* Metro module 1403; source: unknown; dependencies: [1400, 551, 519, 550] */
|
|
import * as Module00551Module from './module-00551.js'; /* Metro dependency 551 */
|
|
import * as Module01400Module from './module-01400.js'; /* Metro dependency 1400 */
|
|
|
|
function _fun16507(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1530:6, offset: 0x00e51446, size: 167 bytes, params: 8, frame: 16
|
|
var r2;
|
|
var closure;
|
|
const env0_0 = require;
|
|
const value = (Module01400Module)();
|
|
if (value) {
|
|
var env0_2 = Module00551Module('RegExp.prototype.exec');
|
|
var env0_3 = {};
|
|
closure = toString_16508;
|
|
if (typeof global.Symbol.toPrimitive === 'symbol') {
|
|
({toString: closure, valueOf: closure})[global.Symbol.toPrimitive] = closure;
|
|
}
|
|
closure = isRegex;
|
|
r2 = closure;
|
|
} else {
|
|
var env0_5 = Module00551Module('Object.prototype.toString');
|
|
r2 = isRegex_16510;
|
|
}
|
|
module.exports = r2;
|
|
function toString_16508() { // fn#16508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1530:110, offset: 0x00e514ed, size: 9 bytes, params: 1, frame: 1
|
|
throw env0_3;
|
|
}
|
|
|
|
function isRegex(a0) { // fn#16509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1530:237, offset: 0x00e514f6, size: 139 bytes, params: 2, frame: 16
|
|
var value2;
|
|
var binding;
|
|
var binding2;
|
|
var error;
|
|
if (a0) {
|
|
if (typeof a0 !== 'object') {
|
|
return false;
|
|
}
|
|
value2 = (require(519) /* metro dependency 519 */)(a0, 'lastIndex');
|
|
if (value2) {
|
|
if ((require(550) /* metro dependency 550 */)(value2, 'value')) {
|
|
try {
|
|
binding = env0_2;
|
|
binding2 = env0_4;
|
|
binding(a0, binding2);
|
|
} catch (error) {
|
|
return error === env0_3;
|
|
}
|
|
return undefined;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function isRegex_16510(a0) { // fn#16510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1530:443, offset: 0x00e51581, size: 64 bytes, params: 2, frame: 13
|
|
var r0;
|
|
const r1 = a0 ? typeof a0 !== 'object' && typeof a0 !== 'function' : !a0;
|
|
value = !r1;
|
|
if (r1) {
|
|
r0 = value;
|
|
} else {
|
|
value = env0_5(a0);
|
|
value = value === '[object RegExp]';
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun16507, 1403, [1400, 551, 519, 550]) /* metro module 1403, dependencies: [1400, 551, 519, 550] */;
|