Files
discord-decomp/sources/by-id/module-07389.js
T
2026-07-28 01:06:53 +03:00

174 lines
9.3 KiB
JavaScript

/* Metro module 7389; source: unknown; dependencies: [6, 7, 7390, 7376, 7387, 7395] */
import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as Module07376Module from './module-07376.js'; /* Metro dependency 7376 */
import * as Module07387Module from './module-07387.js'; /* Metro dependency 7387 */
import * as ScopeModule from './module-07390-Scope.js'; /* Metro dependency 7390 */
function _fun59494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:6, offset: 0x016ebaae, size: 152 bytes, params: 8, frame: 17
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.AsyncContextStack = _fun59501();
exports.getStackAsyncContextStrategy = function() {
return {withIsolationScope: withIsolationScope_59499, withScope: withScope_59496,
withSetScope: withSetScope_59497,
withSetIsolationScope: _fun59513, getCurrentScope: _fun59514, getIsolationScope: _fun59515};
};
function getAsyncContextStack_59495() { // fn#59495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1145, offset: 0x00d5f544, size: 148 bytes, params: 1, frame: 18
var r0;
var binding;
var value4;
var value;
const sentryCarrier = (Module07387Module).getSentryCarrier((Module07387Module).getMainCarrier());
const stack = sentryCarrier.stack;
if (stack) {
r0 = stack;
} else {
binding = env0_4;
value = require(7395) /* metro dependency 7395 */;
value = value.getDefaultCurrentScope();
value4 = (require(7395) /* metro dependency 7395 */).getDefaultIsolationScope();
value = new binding();
r0 = value;
}
sentryCarrier.stack = r0;
return r0;
}
function withScope_59496(a0) { // fn#59496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1337, offset: 0x00d5f5d8, size: 29 bytes, params: 2, frame: 11
return getAsyncContextStack_59495().withScope(a0);
}
function withSetScope_59497(a0, a1) { // fn#59497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1402, offset: 0x016ebb46, size: 51 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return getAsyncContextStack_59495().withScope(_fun59498);
function _fun59498() { // fn#59498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1478, 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_59499(a0) { // fn#59499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1528, offset: 0x016ebb79, size: 40 bytes, params: 2, frame: 11
const env0_0 = a0;
return getAsyncContextStack_59495().withScope(_fun59500);
function _fun59500() { // fn#59500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1600, offset: 0x00d5f678, size: 37 bytes, params: 1, frame: 12
const binding = env0_0;
let value = environment.__proto__;
value = getAsyncContextStack_59495();
const getIsolationScope = value.getIsolationScope;
return binding(Reflect.apply(getIsolationScope, value, []));
}
}
function _fun59501() { // fn#59501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:111, offset: 0x016ebba1, size: 193 bytes, params: 1, frame: 15
return CreateClassModule(AsyncContextStack_59502, [{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(_fun59504, _fun59505);
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_59502(a0, a1) { // fn#59502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:145, offset: 0x00d5f75e, size: 158 bytes, params: 3, frame: 17
const Scope = (ScopeModule).Scope;
const value = a0;
const value2 = a1;
env1_2(this, AsyncContextStack_59502);
const r3 = value || new Scope();
const r2 = value2 || new Scope();
this._stack = [{scope: r3}];
this._isolationScope = r2;
}
function value_59503(a0) { // fn#59503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:332, offset: 0x016ebc62, 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 (Module07376Module.isThenable(value)) {
value = value.then(_fun59504, _fun59505);
r0 = value;
} else {
this._popScope();
r0 = value;
}
return r0;
function _fun59504(a0) { // fn#59504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:469, offset: 0x00d5f87c, size: 22 bytes, params: 2, frame: 9
env0_0._popScope();
return a0;
}
function _fun59505(a0) { // fn#59505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:507, offset: 0x00d5f892, size: 22 bytes, params: 2, frame: 9
env0_0._popScope();
throw a0;
}
}
}
function getStackAsyncContextStrategy_59512() { // fn#59512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1722, offset: 0x016ebce2, size: 66 bytes, params: 1, frame: 4
return {withIsolationScope: withIsolationScope_59499, withScope: withScope_59496, withSetScope: withSetScope_59497,
withSetIsolationScope: function(a0, a1) {
return withIsolationScope_59499(a1);
}, getCurrentScope: getCurrentScope_59514, getIsolationScope: getIsolationScope_59515};
function getStackAsyncContextStrategy_59512WithSetIsolationScope(a0, a1) { // fn#59513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1875, owner: getStackAsyncContextStrategy_59512.withSetIsolationScope, offset: 0x00d5f9b2, size: 19 bytes, params: 3, frame: 11
return withIsolationScope_59499(a1);
}
function getStackAsyncContextStrategy_59512GetCurrentScope() { // fn#59514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:1957, owner: getStackAsyncContextStrategy_59512.getCurrentScope, offset: 0x00d5f9c5, size: 25 bytes, params: 1, frame: 9
const value = environment.__proto__;
return getAsyncContextStack_59495().getScope();
}
function getStackAsyncContextStrategy_59512GetIsolationScope() { // fn#59515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7567:2044, owner: getStackAsyncContextStrategy_59512.getIsolationScope, offset: 0x00d5f9de, size: 25 bytes, params: 1, frame: 9
const value = environment.__proto__;
return getAsyncContextStack_59495().getIsolationScope();
}
}
}
global.__d(_fun59494, 7389, [6, 7, 7390, 7376, 7387,
7395]) /* metro module 7389, dependencies: [6, 7, 7390, 7376, 7387, 7395] */;