/* Metro module 1003; source: unknown; dependencies: [5, 833, 877, 830, 1002] */ import * as Module00005Module from './module-00005.js'; /* Metro dependency 5 */ function _fun10499(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1130:6, offset: 0x00d8f6e3, size: 120 bytes, params: 8, frame: 18 const env0_0 = require; const flushWithTimeout = function(a0) { return _flushWithTimeout.apply(this, arguments); }; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); exports.flushIfServerless = function() { return _flushIfServerless.apply(this, arguments); }; function _flushWithTimeout() { // fn#10501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1130:121, offset: 0x00d8f75b, size: 47 bytes, params: 1, frame: 14 return Module00005Module(_fun10503).apply(this, arguments); function* _fun10503(a0) { // fn#10503, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1130:178, offset: 0x00d8f793, size: 198 bytes, params: 2, frame: 19 var binding; var binding2; var property; var value3; var debug; var log; var value4; var flush; var value5; var value6; var value7; var binding3; var value8; var error; if (true) { value = environment.__proto__.__proto__; try { binding = env2_0; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { binding2 = env2_1; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { property = binding2[1]; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { value3 = binding(property); } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { debug = value3.debug; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { log = debug.log; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { Reflect.apply(log, debug, ['Flushing events...']); } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { property = binding2[2]; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { value4 = binding(property); } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { flush = value4.flush; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { value5 = Reflect.apply(flush, value4, [a0]); } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } yield value5; try { value6 = undefined; value7 = false; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } if (value7) { return value6; } try { binding = env2_0; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { binding3 = env2_1; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { property = binding3[1]; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { value8 = binding(property); } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { debug = value8.debug; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { log = debug.log; } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); return undefined; } try { Reflect.apply(log, debug, ['Done flushing events']); } catch (error) { binding = env2_0; debug = binding(env2_1[1]).debug; debug.log('Error while flushing events:\n', error); } } } } function _flushIfServerless() { // fn#10504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1130:390, offset: 0x00d8f859, size: 47 bytes, params: 1, frame: 14 return Module00005Module(_fun10506).apply(this, arguments); function* _fun10506() { // fn#10506, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1130:449, offset: 0x00d8f891, size: 503 bytes, params: 1, frame: 18 var cloudflareWaitUntil; var waitUntil; var r6; var r3; var cloudflareCtx; var value5; var value6; var value11; var value12; if (false) { return undefined; } value = undefined; const r4 = arguments.length > 0 && value !== arguments[0] ? arguments[0] : {}; const timeout = r4.timeout; const r5 = value === timeout ? 2000 : timeout; if ('cloudflareWaitUntil' in r4) { cloudflareWaitUntil = r4 == null ? value : r4.cloudflareWaitUntil; if (typeof cloudflareWaitUntil === 'function') { cloudflareWaitUntil = r4.cloudflareWaitUntil; value12 = environment.__proto__.__proto__; Reflect.apply(cloudflareWaitUntil, r4, [env2_3(r5)]); return value; } if ('cloudflareCtx' in r4) { cloudflareCtx = r4.cloudflareCtx; waitUntil = cloudflareCtx == null ? value : cloudflareCtx.waitUntil; if (typeof waitUntil === 'function') { cloudflareCtx = r4.cloudflareCtx; waitUntil = cloudflareCtx.waitUntil; value11 = environment.__proto__.__proto__; Reflect.apply(waitUntil, cloudflareCtx, [env2_3(r5)]); return value; } value5 = environment.__proto__.__proto__; if (env2_0(env2_1[3]).GLOBAL_OBJ[global.Symbol.for('@vercel/request-context')]) { env2_0(env2_1[4]).vercelWaitUntil(env2_3(r5)); return value; } value6 = typeof global.process !== 'undefined'; if (value6) { r6 = global.process.env.FUNCTIONS_WORKER_RUNTIME || global.process.env.LAMBDA_TASK_ROOT; r6 = !r6 ? global.process.env.K_SERVICE : r6; r6 = !r6 ? global.process.env.CF_PAGES : r6; r6 = !r6 ? global.process.env.VERCEL : r6; r6 = !r6 ? global.process.env.NETLIFY : r6; r3 = !!r6; } else { r3 = value6; } if (r3) { yield env2_3(r5); return value; } return value; } value5 = environment.__proto__.__proto__; if (env2_0(env2_1[3]).GLOBAL_OBJ[global.Symbol.for('@vercel/request-context')]) { env2_0(env2_1[4]).vercelWaitUntil(env2_3(r5)); return value; } } else { if ('cloudflareCtx' in r4) { cloudflareCtx = r4.cloudflareCtx; waitUntil = cloudflareCtx == null ? value : cloudflareCtx.waitUntil; if (typeof waitUntil === 'function') { cloudflareCtx = r4.cloudflareCtx; waitUntil = cloudflareCtx.waitUntil; value11 = environment.__proto__.__proto__; Reflect.apply(waitUntil, cloudflareCtx, [env2_3(r5)]); return value; } value5 = environment.__proto__.__proto__; if (env2_0(env2_1[3]).GLOBAL_OBJ[global.Symbol.for('@vercel/request-context')]) { env2_0(env2_1[4]).vercelWaitUntil(env2_3(r5)); return value; } value6 = typeof global.process !== 'undefined'; if (value6) { r6 = global.process.env.FUNCTIONS_WORKER_RUNTIME || global.process.env.LAMBDA_TASK_ROOT; r6 = !r6 ? global.process.env.K_SERVICE : r6; r6 = !r6 ? global.process.env.CF_PAGES : r6; r6 = !r6 ? global.process.env.VERCEL : r6; r6 = !r6 ? global.process.env.NETLIFY : r6; r3 = !!r6; } else { r3 = value6; } if (r3) { yield env2_3(r5); return value; } return value; } if (env2_0(env2_1[3]).GLOBAL_OBJ[global.Symbol.for('@vercel/request-context')]) { env2_0(env2_1[4]).vercelWaitUntil(env2_3(r5)); return value; } } value6 = typeof global.process !== 'undefined'; if (value6) { r6 = global.process.env.FUNCTIONS_WORKER_RUNTIME || global.process.env.LAMBDA_TASK_ROOT; r6 = !r6 ? global.process.env.K_SERVICE : r6; r6 = !r6 ? global.process.env.CF_PAGES : r6; r6 = !r6 ? global.process.env.VERCEL : r6; r6 = !r6 ? global.process.env.NETLIFY : r6; r3 = !!r6; } else { r3 = value6; } if (r3) { yield env2_3(r5); } return value; } } } global.__d(_fun10499, 1003, [5, 833, 877, 830, 1002]) /* metro module 1003, dependencies: [5, 833, 877, 830, 1002] */;