/* Metro module 851; source: unknown; dependencies: [6, 7, 852, 836, 834, 856] */ import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */ import * as Module00834Module from './module-00834.js'; /* Metro dependency 834 */ import * as Module00836Module from './module-00836.js'; /* Metro dependency 836 */ import * as ScopeModule from './module-00852-Scope.js'; /* Metro dependency 852 */ function _fun9174(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:6, offset: 0x00d5f4a0, size: 164 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); exports.AsyncContextStack = _fun9181(); exports.getStackAsyncContextStrategy = function() { return {withIsolationScope: withIsolationScope, withScope: withScope, withSetScope: withSetScope, withSetIsolationScope: _fun9193, getCurrentScope: _fun9194, getIsolationScope: _fun9195}; }; function getAsyncContextStack() { // fn#9175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1157, offset: 0x00d5f544, size: 148 bytes, params: 1, frame: 18 var r0; var binding; var value4; var value; const sentryCarrier = (Module00834Module).getSentryCarrier((Module00834Module).getMainCarrier()); const stack = sentryCarrier.stack; if (stack) { r0 = stack; } else { binding = env0_4; value = require(856) /* metro dependency 856 */; value = value.getDefaultCurrentScope(); value4 = (require(856) /* metro dependency 856 */).getDefaultIsolationScope(); value = new binding(); r0 = value; } sentryCarrier.stack = r0; return r0; } function withScope(a0) { // fn#9176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1349, offset: 0x00d5f5d8, size: 29 bytes, params: 2, frame: 11 return getAsyncContextStack().withScope(a0); } function withSetScope(a0, a1) { // fn#9177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1414, offset: 0x00d5f5f5, size: 51 bytes, params: 3, frame: 11 const env0_0 = a0; const env0_1 = a1; return getAsyncContextStack().withScope(_fun9178); function _fun9178() { // fn#9178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1490, offset: 0x00d5f628, size: 40 bytes, params: 1, frame: 11 let binding = ClassCallCheckModule; const stackTop = binding.getStackTop(); binding = env0_0; stackTop.scope = binding; return require(binding); } } function withIsolationScope(a0) { // fn#9179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1540, offset: 0x00d5f650, size: 40 bytes, params: 2, frame: 11 const env0_0 = a0; return getAsyncContextStack().withScope(_fun9180); function _fun9180() { // fn#9180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1612, offset: 0x00d5f678, size: 37 bytes, params: 1, frame: 12 const binding = env0_0; let value = environment.__proto__; value = getAsyncContextStack(); const getIsolationScope = value.getIsolationScope; return binding(Reflect.apply(getIsolationScope, value, [])); } } function _fun9181() { // fn#9181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:123, offset: 0x00d5f69d, size: 193 bytes, params: 1, frame: 15 return CreateClassModule(AsyncContextStack, [{key: 'withScope', value: function(a0) { var r0; var error; var env0_0 = this; var value = this._pushScope(); try { value = a0(value); } catch (error) { this._popScope(); throw error; } if (require(dependencyMap[3]).isThenable(value)) { value = value.then(_fun9184, _fun9185); r0 = value; } else { this._popScope(); r0 = value; } return r0; }}, {key: 'getClient', value: function() { return this.getStackTop().client; }}, {key: 'getScope', value: function() { return this.getStackTop().scope; }}, {key: 'getIsolationScope', value: function() { return this._isolationScope; }}, {key: 'getStackTop', value: function() { return this._stack[this._stack.length - 1]; }}, {key: '_pushScope', value: function() { var value = this.getScope(); value = value.clone(); this._stack.push({client: this.getClient(), scope: value}); return value; }}, {key: '_popScope', value: function() { return !(this._stack.length <= 1) && !!this._stack.pop(); }}]); function AsyncContextStack(a0, a1) { // fn#9182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:157, offset: 0x00d5f75e, size: 158 bytes, params: 3, frame: 17 const Scope = (ScopeModule).Scope; const value = a0; const value2 = a1; env1_2(this, AsyncContextStack); const r3 = value || new Scope(); const r2 = value2 || new Scope(); this._stack = [{scope: r3}]; this._isolationScope = r2; } function value_9183(a0) { // fn#9183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:344, offset: 0x00d5f7fc, size: 128 bytes, params: 2, frame: 16 var r0; var error; let value = this._pushScope(); try { value = a0(value); } catch (error) { this._popScope(); throw error; } if (Module00836Module.isThenable(value)) { value = value.then(_fun9184, _fun9185); r0 = value; } else { this._popScope(); r0 = value; } return r0; function _fun9184(a0) { // fn#9184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:481, offset: 0x00d5f87c, size: 22 bytes, params: 2, frame: 9 env0_0._popScope(); return a0; } function _fun9185(a0) { // fn#9185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:519, offset: 0x00d5f892, size: 22 bytes, params: 2, frame: 9 env0_0._popScope(); throw a0; } } } function getStackAsyncContextStrategy() { // fn#9192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1734, offset: 0x00d5f970, size: 66 bytes, params: 1, frame: 4 return {withIsolationScope: withIsolationScope, withScope: withScope, withSetScope: withSetScope, withSetIsolationScope: function(a0, a1) { return withIsolationScope(a1); }, getCurrentScope: getCurrentScope_9194, getIsolationScope: getIsolationScope_9195}; function withSetIsolationScope(a0, a1) { // fn#9193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1887, owner: getStackAsyncContextStrategy.withSetIsolationScope, offset: 0x00d5f9b2, size: 19 bytes, params: 3, frame: 11 return withIsolationScope(a1); } function getStackAsyncContextStrategyGetCurrentScope() { // fn#9194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1969, owner: getStackAsyncContextStrategy.getCurrentScope, offset: 0x00d5f9c5, size: 25 bytes, params: 1, frame: 9 const value = environment.__proto__; return getAsyncContextStack().getScope(); } function getStackAsyncContextStrategyGetIsolationScope() { // fn#9195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:2056, owner: getStackAsyncContextStrategy.getIsolationScope, offset: 0x00d5f9de, size: 25 bytes, params: 1, frame: 9 const value = environment.__proto__; return getAsyncContextStack().getIsolationScope(); } } } global.__d(_fun9174, 851, [6, 7, 852, 836, 834, 856]) /* metro module 851, dependencies: [6, 7, 852, 836, 834, 856] */;