193 lines
9.0 KiB
React
193 lines
9.0 KiB
React
/* Metro module 7393; source: unknown; dependencies: [6, 7, 7376] */
|
|
function _fun59564(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:6, offset: 0x016ed064, size: 178 bytes, params: 8, frame: 19
|
|
var object2;
|
|
const env0_0 = require;
|
|
const env0_3 = require(6) /* metro dependency 6 */;
|
|
const env0_4 = require(7) /* metro dependency 7 */;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object2 = {};
|
|
object2.PENDING = 0;
|
|
object2[0] = 'PENDING';
|
|
object2.RESOLVED = 1;
|
|
object2[1] = 'RESOLVED';
|
|
object2.REJECTED = 2;
|
|
object2[2] = 'REJECTED';
|
|
exports.SyncPromise = _fun59565();
|
|
exports.rejectedSyncPromise = rejectedSyncPromise_59587;
|
|
exports.resolvedSyncPromise = resolvedSyncPromise_59589;
|
|
}
|
|
|
|
function _fun59565() { // fn#59565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:216, offset: 0x016ed116, size: 197 bytes, params: 1, frame: 15
|
|
return env0_4(SyncPromise_59566, [{key: 'then', value: value_59567}, {key: 'catch', value: function(a0) {
|
|
return this.then(_fun59572, a0);
|
|
}}, {key: 'finally', value: value_59573}, {key: '__init', value: function() {
|
|
var env0_0 = this;
|
|
this._resolve = _fun59579;
|
|
}}, {key: '__init2', value: function() {
|
|
var env0_0 = this;
|
|
this._reject = _fun59581;
|
|
}}, {key: '__init3', value: function() {
|
|
var env0_0 = this;
|
|
this._setResult = _fun59583;
|
|
}}, {key: '__init4', value: function() {
|
|
var env0_0 = this;
|
|
this._executeHandlers = _fun59585;
|
|
}}]);
|
|
}
|
|
|
|
function rejectedSyncPromise_59587(a0) { // fn#59587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1841, offset: 0x016ed59b, size: 43 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
const binding = env0_5;
|
|
const value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(_fun59588);
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
}
|
|
|
|
function resolvedSyncPromise_59589(a0) { // fn#59589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1933, offset: 0x016ed5c6, size: 43 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
const binding = env0_5;
|
|
const value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(_fun59590);
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
}
|
|
|
|
function SyncPromise_59566(a0) { // fn#59566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:240, offset: 0x016ed1db, size: 180 bytes, params: 2, frame: 16
|
|
var _resolve;
|
|
var _reject;
|
|
var error;
|
|
env1_3(this, SyncPromise_59566);
|
|
SyncPromise_59566.prototype.__init.call(this);
|
|
SyncPromise_59566.prototype.__init2.call(this);
|
|
SyncPromise_59566.prototype.__init3.call(this);
|
|
SyncPromise_59566.prototype.__init4.call(this);
|
|
const PENDING = env1_2.PENDING;
|
|
this._state = PENDING;
|
|
this._handlers = [];
|
|
try {
|
|
_resolve = this._resolve;
|
|
_reject = this._reject;
|
|
a0(_resolve, _reject);
|
|
} catch (error) {
|
|
this._reject(error);
|
|
}
|
|
}
|
|
|
|
function value_59567(a0, a1) { // fn#59567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:587, offset: 0x016ed28f, size: 57 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const value = Object.create(SyncPromise_59566.prototype, {constructor: {value: SyncPromise_59566}});
|
|
const syncPromise_59566 = new SyncPromise_59566(_fun59568);
|
|
return syncPromise_59566 instanceof Object ? syncPromise_59566 : value;
|
|
}
|
|
|
|
function value_59571(a0) { // fn#59571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:831, offset: 0x016ed319, size: 26 bytes, params: 2, frame: 13
|
|
return this.then(function(a0) {
|
|
return a0;
|
|
}, a0);
|
|
}
|
|
|
|
function value_59573(a0) { // fn#59573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:917, offset: 0x016ed333, size: 50 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
const value = Object.create(SyncPromise_59566.prototype, {constructor: {value: SyncPromise_59566}});
|
|
const syncPromise_59566 = new SyncPromise_59566(_fun59574);
|
|
return syncPromise_59566 instanceof Object ? syncPromise_59566 : value;
|
|
}
|
|
|
|
function value_59578() { // fn#59578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1129, offset: 0x016ed3a2, size: 24 bytes, params: 1, frame: 3
|
|
this._resolve = _resolve;
|
|
}
|
|
|
|
function value_59580() { // fn#59580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1235, offset: 0x016ed3e1, size: 24 bytes, params: 1, frame: 3
|
|
this._reject = _reject;
|
|
}
|
|
|
|
function value_59582() { // fn#59582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1341, offset: 0x016ed420, size: 24 bytes, params: 1, frame: 3
|
|
this._setResult = _setResult;
|
|
}
|
|
|
|
function value_59584() { // fn#59584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1545, offset: 0x016ed4bb, size: 24 bytes, params: 1, frame: 3
|
|
this._executeHandlers = _executeHandlers;
|
|
}
|
|
|
|
function _fun59568(a0, a1) { // fn#59568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:641, offset: 0x016ed2c8, size: 81 bytes, params: 3, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const binding = env0_2;
|
|
binding._handlers.push([false, _fun59569, _fun59570]);
|
|
binding._executeHandlers();
|
|
}
|
|
|
|
function _fun59574(a0, a1) { // fn#59574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:973, offset: 0x016ed365, size: 61 bytes, params: 3, frame: 14
|
|
const env0_0 = a0;
|
|
return a1.then(_fun59575, _fun59576).then(_fun59577);
|
|
}
|
|
|
|
function _resolve(a0) { // fn#59579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1172, owner: value_59578._resolve, offset: 0x016ed3ba, size: 39 bytes, params: 2, frame: 13
|
|
const binding = env0_0;
|
|
const _setResult = binding._setResult;
|
|
const RESOLVED = env2_2.RESOLVED;
|
|
Reflect.apply(_setResult, binding, [RESOLVED, a0]);
|
|
}
|
|
|
|
function _reject(a0) { // fn#59581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1278, owner: value_59580._reject, offset: 0x016ed3f9, size: 39 bytes, params: 2, frame: 13
|
|
const binding = env0_0;
|
|
const _setResult = binding._setResult;
|
|
const REJECTED = env2_2.REJECTED;
|
|
Reflect.apply(_setResult, binding, [REJECTED, a0]);
|
|
}
|
|
|
|
function _setResult(a0, a1) { // fn#59583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1387, owner: value_59582._setResult, offset: 0x016ed438, size: 131 bytes, params: 3, frame: 14
|
|
var moduleValue;
|
|
var binding;
|
|
var then;
|
|
const _state = env0_0._state;
|
|
const PENDING = env2_2.PENDING;
|
|
if (_state === PENDING) {
|
|
moduleValue = require(7376) /* metro dependency 7376 */;
|
|
if (moduleValue.isThenable(a1)) {
|
|
then = a1.then;
|
|
binding = env0_0;
|
|
Reflect.apply(then, a1, [binding._resolve, binding._reject]);
|
|
} else {
|
|
binding = env0_0;
|
|
binding._state = a0;
|
|
binding._value = a1;
|
|
binding._executeHandlers();
|
|
}
|
|
}
|
|
}
|
|
|
|
function _executeHandlers() { // fn#59585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1597, owner: value_59584._executeHandlers, offset: 0x016ed4d3, size: 80 bytes, params: 1, frame: 11
|
|
var binding;
|
|
var value;
|
|
const _state = env0_0._state;
|
|
const PENDING = env2_2.PENDING;
|
|
if (_state !== PENDING) {
|
|
binding = env0_0;
|
|
value = binding._handlers.slice();
|
|
binding._handlers = [];
|
|
value.forEach(_fun59586);
|
|
}
|
|
}
|
|
|
|
function _fun59586(a0) { // fn#59586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7571:1685, offset: 0x016ed523, size: 120 bytes, params: 2, frame: 14
|
|
var value;
|
|
var _state;
|
|
var value2;
|
|
if (!a0[0]) {
|
|
value = environment.__proto__;
|
|
_state = env1_0._state;
|
|
value2 = environment.__proto__.__proto__.__proto__;
|
|
if (_state === env3_2.RESOLVED) {
|
|
a0[1](env1_0._value);
|
|
}
|
|
_state = env1_0._state;
|
|
if (_state === env3_2.REJECTED) {
|
|
a0[2](env1_0._value);
|
|
}
|
|
a0[0] = true;
|
|
}
|
|
}
|
|
|