446 lines
21 KiB
JavaScript
446 lines
21 KiB
JavaScript
/* Metro module 1029; source: unknown; dependencies: [1027] */
|
|
import * as Module01027Module from './module-01027.js'; /* Metro dependency 1027 */
|
|
|
|
function _fun10732(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:6, offset: 0x00d94a0d, size: 218 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const valuePromise_107332 = valuePromise_10733;
|
|
module.exports = require(1027) /* metro dependency 1027 */;
|
|
const env0_2 = valuePromise_107332(true);
|
|
const env0_3 = valuePromise_107332(false);
|
|
const env0_4 = valuePromise_107332(null);
|
|
const env0_5 = valuePromise_107332(undefined);
|
|
const env0_6 = valuePromise_107332(0);
|
|
const env0_7 = valuePromise_107332('');
|
|
(require(1027) /* metro dependency 1027 */).resolve = resolve_10734;
|
|
(require(1027) /* metro dependency 1027 */).all = all_10736;
|
|
(require(1027) /* metro dependency 1027 */).reject = reject_10741;
|
|
(require(1027) /* metro dependency 1027 */).race = race_10743;
|
|
(require(1027) /* metro dependency 1027 */).prototype.catch = function(a0) {
|
|
return this.then(null, a0);
|
|
};
|
|
function valuePromise_10733(a0) { // fn#10733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:185, offset: 0x00d94ae7, size: 79 bytes, params: 2, frame: 13
|
|
let value = require(1027) /* metro dependency 1027 */;
|
|
value = new value((require(1027) /* metro dependency 1027 */)._61);
|
|
value._65 = 1;
|
|
value._55 = a0;
|
|
return value;
|
|
}
|
|
|
|
function resolve_10734(a0) { // fn#10734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:283, offset: 0x00d94b36, size: 318 bytes, params: 2, frame: 17
|
|
var environment;
|
|
var then;
|
|
var value3;
|
|
var property;
|
|
var moduleValue;
|
|
var bind;
|
|
var value4;
|
|
var prototype;
|
|
var moduleValue2;
|
|
var value7;
|
|
var error;
|
|
var value8;
|
|
var closure;
|
|
let value = environment;
|
|
if (a0 instanceof require(dependencyMap[0])) {
|
|
return a0;
|
|
}
|
|
if (a0 === null) {
|
|
return env0_4;
|
|
}
|
|
if (a0 === undefined) {
|
|
return env0_5;
|
|
}
|
|
if (a0 === true) {
|
|
return env0_2;
|
|
}
|
|
if (a0 === false) {
|
|
return env0_3;
|
|
}
|
|
if (a0 === 0) {
|
|
return env0_6;
|
|
}
|
|
if (a0 === '') {
|
|
return env0_7;
|
|
}
|
|
const value2 = typeof a0;
|
|
if (value2 !== 'object') {
|
|
if (value2 !== 'function') {
|
|
return valuePromise_10733(a0);
|
|
}
|
|
}
|
|
try {
|
|
then = a0.then;
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
value3 = typeof then === 'function';
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
if (value3) {
|
|
try {
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
property = dependencyMap[0];
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
bind = then.bind;
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(bind, then, [a0]);
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
prototype = moduleValue.prototype;
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
moduleValue2 = new moduleValue();
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
try {
|
|
value7 = moduleValue2 instanceof Object ? moduleValue2 : undefined;
|
|
} catch (error) {
|
|
var env0_0 = error;
|
|
value = require(dependencyMap[0]);
|
|
prototype = value.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: value}});
|
|
closure = _fun10735;
|
|
value = new value();
|
|
return value instanceof Object ? value : value8;
|
|
}
|
|
return value7;
|
|
}
|
|
return valuePromise_10733(a0);
|
|
function _fun10735(a0, a1) { // fn#10735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:593, offset: 0x00c83667, size: 19 bytes, params: 3, frame: 11
|
|
a1(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function all_10736(a0) { // fn#10736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:651, offset: 0x00d94c74, size: 88 bytes, params: 2, frame: 12
|
|
const Array = global.Array;
|
|
const env0_0 = Array.prototype.slice.call(a0);
|
|
let value = Module01027Module;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(_fun10737);
|
|
return value instanceof Object ? value : value2;
|
|
function _fun10737(a0, a1) { // fn#10737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:720, offset: 0x00d94ccc, size: 113 bytes, params: 3, frame: 16
|
|
var r3;
|
|
var value3;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const res_107382 = res_10738;
|
|
let length = env0_0.length;
|
|
const value2 = 0;
|
|
if (value2 === length) {
|
|
return a0([]);
|
|
}
|
|
let binding = env0_0;
|
|
length = binding.length;
|
|
length = binding.length;
|
|
if (value2 < length) {
|
|
r3 = value2;
|
|
reducibleLoop2: while (true) {
|
|
binding = env0_0;
|
|
res_107382(r3, binding[r3]);
|
|
value3 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = binding.length;
|
|
if (value3 < length) {
|
|
r3 = value3;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
function res_10738(a0, a1) { // fn#10738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:778, offset: 0x00d94d3d, size: 377 bytes, params: 3, frame: 20
|
|
var environment;
|
|
var r5;
|
|
var r1;
|
|
var r0;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var then;
|
|
const prototype = (require(1027) /* metro dependency 1027 */).prototype;
|
|
var then2;
|
|
var binding;
|
|
var moduleValue;
|
|
var value8;
|
|
var _65;
|
|
var _55;
|
|
var res_10738Binding;
|
|
let value = a1;
|
|
const env0_0 = a0;
|
|
if (value) {
|
|
value2 = typeof value;
|
|
reducibleJoin6: while (true) {
|
|
reducibleJoin5: while (true) {
|
|
if (value2 === 'object') {
|
|
value3 = environment.__proto__.__proto__;
|
|
if (value instanceof (require(1027) /* metro dependency 1027 */)) {
|
|
then = value.then;
|
|
then2 = prototype.then;
|
|
if (then === then2) {
|
|
_65 = value._65;
|
|
if (_65 !== 3) {
|
|
r1 = value;
|
|
} else {
|
|
r5 = value;
|
|
reducibleLoop11: while (true) {
|
|
_55 = r5._55;
|
|
_65 = _55._65;
|
|
if (_65 === 3) {
|
|
r5 = _55;
|
|
continue reducibleLoop11;
|
|
}
|
|
r1 = _55;
|
|
break reducibleLoop11;
|
|
}
|
|
}
|
|
_65 = r1._65;
|
|
if (_65 === 1) {
|
|
value = environment;
|
|
res_10738Binding = res_10738;
|
|
_55 = r1._55;
|
|
value = res_10738Binding(a0, _55);
|
|
r0 = value;
|
|
} else {
|
|
_65 = r1._65;
|
|
reducibleJoin15: while (true) {
|
|
if (_65 !== 2) {
|
|
break reducibleJoin15;
|
|
}
|
|
value = environment;
|
|
_55 = r1._55;
|
|
require(_55);
|
|
break reducibleJoin15;
|
|
}
|
|
then = r1.then;
|
|
value = environment;
|
|
Reflect.apply(then, r1, [_fun10739, require]);
|
|
r0 = undefined;
|
|
}
|
|
return r0;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
if (value2 !== 'function') {
|
|
break reducibleJoin6;
|
|
}
|
|
value3 = environment.__proto__.__proto__;
|
|
value4 = undefined;
|
|
if (value instanceof (require(1027) /* metro dependency 1027 */)) {
|
|
then = value.then;
|
|
then2 = prototype.then;
|
|
if (then === then2) {
|
|
_65 = value._65;
|
|
if (_65 !== 3) {
|
|
r1 = value;
|
|
} else {
|
|
r5 = value;
|
|
reducibleLoop11: while (true) {
|
|
_55 = r5._55;
|
|
_65 = _55._65;
|
|
if (_65 === 3) {
|
|
r5 = _55;
|
|
continue reducibleLoop11;
|
|
}
|
|
r1 = _55;
|
|
break reducibleLoop11;
|
|
}
|
|
}
|
|
_65 = r1._65;
|
|
if (_65 === 1) {
|
|
value = environment;
|
|
res_10738Binding = res_10738;
|
|
_55 = r1._55;
|
|
value = res_10738Binding(a0, _55);
|
|
r0 = value;
|
|
} else {
|
|
_65 = r1._65;
|
|
reducibleJoin15: while (true) {
|
|
if (_65 !== 2) {
|
|
break reducibleJoin15;
|
|
}
|
|
value = environment;
|
|
_55 = r1._55;
|
|
require(_55);
|
|
break reducibleJoin15;
|
|
}
|
|
then = r1.then;
|
|
value = environment;
|
|
Reflect.apply(then, r1, [_fun10739, require]);
|
|
r0 = value4;
|
|
}
|
|
return r0;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
then = value.then;
|
|
if (typeof then === 'function') {
|
|
moduleValue = require(1027) /* metro dependency 1027 */;
|
|
value = then.bind(value);
|
|
value = new moduleValue(value);
|
|
then = value.then;
|
|
value8 = environment;
|
|
Reflect.apply(then, value, [_fun10740, require]);
|
|
return value4;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
}
|
|
env1_0[a0] = value;
|
|
const lengthBinding = length;
|
|
reducibleJoin8: while (true) {
|
|
if ((typeof lengthBinding === 'bigint' ? lengthBinding - 1n : +lengthBinding - 1) != 0) {
|
|
break reducibleJoin8;
|
|
}
|
|
binding = env0_0;
|
|
binding(env1_0);
|
|
break reducibleJoin8;
|
|
}
|
|
function _fun10739(a0) { // fn#10739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:992, offset: 0x00c83933, size: 27 bytes, params: 2, frame: 13
|
|
res_10738(env0_0, a0);
|
|
}
|
|
|
|
function _fun10740(a0) { // fn#10740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:1098, offset: 0x00c83933, size: 27 bytes, params: 2, frame: 13
|
|
res_10738(env0_0, a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function reject_10741(a0) { // fn#10741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:1202, offset: 0x00d94eb6, size: 60 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
let value = Module01027Module;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(_fun10742);
|
|
return value instanceof Object ? value : value2;
|
|
function _fun10742(a0, a1) { // fn#10742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:1235, offset: 0x00c83667, size: 19 bytes, params: 3, frame: 11
|
|
a1(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function race_10743(a0) { // fn#10743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:1271, offset: 0x00d94ef2, size: 60 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
let value = Module01027Module;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(_fun10744);
|
|
return value instanceof Object ? value : value2;
|
|
function _fun10744(a0, a1) { // fn#10744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:1304, offset: 0x00d94f2e, size: 42 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
env0_0.forEach(_fun10745);
|
|
function _fun10745(a0) { // fn#10745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1156:1329, offset: 0x00c83a3b, size: 61 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(1027) /* metro dependency 1027 */;
|
|
value = value.resolve(a0);
|
|
value.then(env0_0, require);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun10732, 1029, [1027]) /* metro module 1029, dependencies: [1027] */;
|