/* Metro module 7396; source: unknown; dependencies: [7387, 7388, 7370, 7390, 7375] */ import * as Module07370Module from './module-07370.js'; /* Metro dependency 7370 */ import * as Module07387Module from './module-07387.js'; /* Metro dependency 7387 */ import * as Module07388Module from './module-07388.js'; /* Metro dependency 7388 */ import * as ScopeModule from './module-07390-Scope.js'; /* Metro dependency 7390 */ function _fun59598(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:6, offset: 0x016ed7b7, size: 136 bytes, params: 8, frame: 17 const env0_0 = require; const getCurrentScope_595992 = getCurrentScope_59599; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.getClient = getClient_59600; exports.getCurrentScope = getCurrentScope_595992; exports.getGlobalScope = getGlobalScope_59601; exports.getIsolationScope = getIsolationScope_59603; exports.getTraceContextFromScope = getTraceContextFromScope_59604; exports.withIsolationScope = withIsolationScope_59605; exports.withScope = withScope_59606; function getCurrentScope_59599() { // fn#59599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:30, offset: 0x00d6135e, size: 69 bytes, params: 1, frame: 13 let value = Module07387Module; value = value.getMainCarrier(); value = (require(7388) /* metro dependency 7388 */).getAsyncContextStrategy(value); return value.getCurrentScope(); } function getClient_59600() { // fn#59600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:209, offset: 0x00d613a3, size: 25 bytes, params: 1, frame: 9 return getCurrentScope_59599().getClient(); } function getGlobalScope_59601() { // fn#59601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:319, offset: 0x016ed83f, size: 52 bytes, params: 1, frame: 13 return (Module07370Module).getGlobalSingleton('globalScope', _fun59602); function _fun59602() { // fn#59602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:394, offset: 0x016ed873, size: 53 bytes, params: 1, frame: 11 let value = environment.__proto__; const Scope = (ScopeModule).Scope; value = Object.create(Scope.prototype, {constructor: {value: Scope}}); const scope = new Scope(); return scope instanceof Object ? scope : value; } } function getIsolationScope_59603() { // fn#59603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:455, offset: 0x00d61424, size: 69 bytes, params: 1, frame: 13 let value = Module07387Module; value = value.getMainCarrier(); value = (require(7388) /* metro dependency 7388 */).getAsyncContextStrategy(value); return value.getIsolationScope(); } function getTraceContextFromScope_59604(a0) { // fn#59604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:605, offset: 0x016ed8a8, size: 86 bytes, params: 2, frame: 14 let value = a0.getPropagationContext(); const traceId = value.traceId; const spanId = value.spanId; const parentSpanId = value.parentSpanId; value = require(7375) /* metro dependency 7375 */; return value.dropUndefinedKeys({trace_id: traceId, span_id: spanId, parent_span_id: parentSpanId}); } function withIsolationScope_59605() { // fn#59605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:810, offset: 0x00d614c5, size: 184 bytes, params: 1, frame: 17 var r3; var value7; var property; var property2; const value = 0; const asyncContextStrategy = (Module07388Module).getAsyncContextStrategy(require(dependencyMap[value]).getMainCarrier()); const length = arguments.length; const Array = global.Array; const array = new Array(length); if (value < length) { r3 = value; reducibleLoop1: while (true) { array[r3] = arguments[r3]; value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value7 < length) { r3 = value7; continue reducibleLoop1; } break reducibleLoop1; } } if (array.length === 2) { property = array[value]; property2 = array[1]; return property ? asyncContextStrategy.withSetIsolationScope(property, property2) : asyncContextStrategy.withIsolationScope(property2); } return asyncContextStrategy.withIsolationScope(array[value]); } function withScope_59606() { // fn#59606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7574:1120, offset: 0x00d6157d, size: 184 bytes, params: 1, frame: 17 var r3; var value7; var property; var property2; const value = 0; const asyncContextStrategy = (Module07388Module).getAsyncContextStrategy(require(dependencyMap[value]).getMainCarrier()); const length = arguments.length; const Array = global.Array; const array = new Array(length); if (value < length) { r3 = value; reducibleLoop1: while (true) { array[r3] = arguments[r3]; value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value7 < length) { r3 = value7; continue reducibleLoop1; } break reducibleLoop1; } } if (array.length === 2) { property = array[value]; property2 = array[1]; return property ? asyncContextStrategy.withSetScope(property, property2) : asyncContextStrategy.withScope(property2); } return asyncContextStrategy.withScope(array[value]); } } global.__d(_fun59598, 7396, [7387, 7388, 7370, 7390, 7375]) /* metro module 7396, dependencies: [7387, 7388, 7370, 7390, 7375] */;