/* Metro module 7436; source: unknown; dependencies: [65, 57, 5, 7413, 7416, 7423] */ import * as Module00005Module from './module-00005.js'; /* Metro dependency 5 */ import * as Module00057Module from './module-00057.js'; /* Metro dependency 57 */ import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */ import * as Module07413Module from './module-07413.js'; /* Metro dependency 7413 */ import * as Module07416Module from './module-07416.js'; /* Metro dependency 7416 */ function _fun60011(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:6, offset: 0x016f9314, size: 128 bytes, params: 8, frame: 18 let env0_0 = require; const eventFromEnvelope_600122 = eventFromEnvelope_60012; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.eventFromEnvelope = eventFromEnvelope_600122; exports.makeMultiplexedTransport = function(a0, a1) { var env0_0 = a0; var env0_1 = a1; return _fun60015; }; function eventFromEnvelope_60012(a0, a1) { // fn#60012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:68, offset: 0x016f9394, size: 60 bytes, params: 3, frame: 14 const env0_0 = a1; (Module07413Module).forEachEnvelopeItem(a0, _fun60013); return env0_1; function _fun60013(a0, a1) { // fn#60013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:145, offset: 0x00d70ee6, size: 72 bytes, params: 3, frame: 13 env0_1 = require.includes(a1) ? global.Array.isArray(a0) ? a0[1] : undefined : env0_1; return !!env0_1; } } function makeMultiplexedTransport_60014(a0, a1) { // fn#60014, offset: 0x016f93d0, size: 23 bytes, params: 3, frame: 2 const env0_0 = a0; const env0_1 = a1; return _fun60015; function _fun60015(a0) { // fn#60015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:383, offset: 0x016f93e7, size: 110 bytes, params: 2, frame: 12 const env0_1 = a0(a0); const Map = global.Map; const map = new Map(); return {send: function(a0) { return _send2_60022.apply(this, arguments); }, flush: function(a0) { return _flush_60029.apply(this, arguments); }}; function getTransport_60016(a0, a1) { // fn#60016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:416, offset: 0x016f9455, size: 281 bytes, params: 3, frame: 24 var environment; var r0; var moduleValue2; var value7; var value8; var Object; var assign; var value10; const value = a0; let r1 = a1 ? '' + value + ':' + a1 : value; let binding = Module00065Module; const value4 = binding.get(r1); if (value4) { return [value, value4]; } const value6 = (Module07416Module).dsnFromString(value); if (value6) { moduleValue2 = require(7423) /* metro dependency 7423 */; value7 = moduleValue2.getEnvelopeEndpointWithUrlEncodedAuth(value6, env0_0.tunnel); value8 = environment.__proto__; binding = env1_0; if (a1) { value10 = ((a0, a1) => { var env0_0 = a0; var env0_1 = a1; return _fun60018; })(binding, a1); Object = global.Object; assign = Object.assign; binding = env0_0; r0 = value10(Reflect.apply(assign, Object, [{}, binding, {url: value7}])); } else { Object = global.Object; r0 = binding(Object.assign({}, env0_0, {url: value7})); } binding = Module00065Module; binding.set(r1, r0); r1 = r0; return [value, r1]; } function getTransport_60016MakeOverrideReleaseTransport(a0, a1) { // fn#60017, owner: getTransport_60016.makeOverrideReleaseTransport, offset: 0x016f956e, size: 23 bytes, params: 3, frame: 2 const env0_0 = a0; const env0_1 = a1; return _fun60018; function _fun60018(a0) { // fn#60018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:647, offset: 0x016f9585, size: 80 bytes, params: 2, frame: 18 const value = env0_0(a0); const Object = global.Object; const assign = Object.assign; var env0_0 = env4_4(_fun60020); return Reflect.apply(assign, Object, [{}, value, {send: send_60021}]); function* _fun60020(a0) { // fn#60020, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:710, offset: 0x00d7114c, size: 75 bytes, params: 2, frame: 14 var value3; if (false) { return undefined; } value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; value = env6_5(a0, ['event', 'transaction', 'profile', 'replay_event']); if (value) { value3 = environment.__proto__.__proto__; value.release = env2_1; } value = environment.__proto__; return require.send(a0); } function send_60021(a0) { // fn#60021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:836, offset: 0x00d71197, size: 29 bytes, params: 2, frame: 13 return env0_0.apply(this, arguments); } } } } function _send2_60022() { // fn#60022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:978, offset: 0x016f95de, size: 50 bytes, params: 1, frame: 13 var environment; const value = environment.__proto__.__proto__; return env2_4(_fun60024).apply(this, arguments); function* _fun60024(a0) { // fn#60024, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1013, offset: 0x016f9619, size: 182 bytes, params: 2, frame: 14 var environment; if (false) { return undefined; } const env0_0 = a0; value = environment.__proto__.__proto__.__proto__; value = Reflect.apply(dependencyMap({envelope: a0, getEvent: getEvent_60025}).map, value, [_fun60026]); value = value.filter(function(a0) { return !!a0; }); const r5 = value.length ? value : [['', require]]; const Promise = global.Promise; yield Promise.all(r5.map(_fun60028)); value = undefined; if (false) { return value; } return value[0]; function getEvent_60025(a0) { // fn#60025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1055, offset: 0x016f96cf, size: 48 bytes, params: 2, frame: 13 let value = a0; const r3 = value && value.length ? value : ['event']; value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; return env5_5(env0_0, r3); } function _fun60026(a0) { // fn#60026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1144, offset: 0x016f96ff, size: 60 bytes, params: 2, frame: 14 var r0; var value; if (typeof a0 === 'string') { value = environment.__proto__.__proto__.__proto__; value = env3_3(a0, undefined); r0 = value; } else { value = environment.__proto__.__proto__.__proto__; value = env3_3(a0.dsn, a0.release); r0 = value; } return r0; } function _fun60028(a0) { // fn#60028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1324, offset: 0x00d7131c, size: 132 bytes, params: 2, frame: 22 let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; const value2 = env5_3(a0, 2); const property = value2[0]; const property2 = value2[1]; const send = property2.send; const binding = env0_0; value = env5_0(env5_1[3]); return Reflect.apply(send, property2, [value.createEnvelope(property ? global.Object.assign({}, binding[0], {dsn: property}) : binding[0], binding[1])]); } } } function _flush_60029() { // fn#60029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1515, offset: 0x016f973b, size: 50 bytes, params: 1, frame: 13 var environment; const value = environment.__proto__.__proto__; return env2_4(_fun60031).apply(this, arguments); function* _fun60031(a0) { // fn#60031, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1550, offset: 0x016f9776, size: 145 bytes, params: 2, frame: 17 var environment; if (false) { return undefined; } const env0_0 = a0; const items2 = []; const concat = items2.concat; value = environment.__proto__.__proto__.__proto__.__proto__; const binding = env4_2; value = environment.__proto__.__proto__; value = Reflect.apply(concat, items2, [binding(env2_2.values()), [require]]); const Promise = global.Promise; yield Promise.all(value.map(_fun60032)); value = undefined; if (false) { return value; } return value.every(function(a0) { return a0; }); function _fun60032(a0) { // fn#60032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1630, offset: 0x00d7146c, size: 23 bytes, params: 2, frame: 11 return a0.flush(env0_0); } } } } } } global.__d(_fun60011, 7436, [65, 57, 5, 7413, 7416, 7423]) /* metro module 7436, dependencies: [65, 57, 5, 7413, 7416, 7423] */;