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

194 lines
8.6 KiB
JavaScript

/* Metro module 7494; source: unknown; dependencies: [5] */
import * as Module00005Module from './module-00005.js'; /* Metro dependency 5 */
function _fun60411(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7672:6, offset: 0x0170294b, size: 82 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports._asyncOptionalChain = function(a0) {
return _asyncOptionalChain2.apply(this, arguments);
};
function _asyncOptionalChain2() { // fn#60412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7672:45, offset: 0x0170299d, size: 47 bytes, params: 1, frame: 14
return Module00005Module(_fun60414).apply(this, arguments);
function* _fun60414(a0) { // fn#60414, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7672:108, offset: 0x017029d5, size: 231 bytes, params: 2, frame: 26
var r5;
var r6;
var r4;
var r16;
var r3;
var property2;
var value3;
var value4;
var value5;
var value6;
var value7;
var value8;
var value9;
var value10;
if (false) {
return undefined;
}
var env0_1;
var env0_0;
let property = a0[0];
let length = a0.length;
value = 1;
if (value < length) {
r5 = value;
r6 = property;
reducibleLoop2: while (true) {
property = a0[r5];
property2 = a0[r5 + value];
value3 = r5 + 2;
value4 = property === 'optionalAccess';
if (!value4) {
reducibleJoin4: while (true) {
if (property !== 'optionalCall') {
if (property !== 'access') {
reducibleJoin14: while (true) {
if (value4) {
break reducibleJoin14;
}
value5 = property !== 'call';
reducibleJoin9: while (true) {
if (value5) {
value6 = property !== 'optionalCall';
r4 = value6;
break reducibleJoin9;
}
r4 = value5;
break reducibleJoin9;
}
if (r4) {
r16 = r6;
} else {
yield property2(_fun60415);
value7 = undefined;
value8 = false;
if (value8) {
return value7;
}
env0_1 = value7;
env0_0 = undefined;
r16 = value7;
}
length = a0.length;
if (!(value3 < length)) {
return r16;
}
r5 = value3;
r6 = r16;
continue reducibleLoop2;
}
}
env0_0 = r6;
yield property2(r6);
value9 = undefined;
value10 = false;
if (value10) {
return value9;
}
env0_1 = value9;
r16 = value9;
length = a0.length;
if (!(value3 < length)) {
return r16;
}
r5 = value3;
r6 = r16;
continue reducibleLoop2;
}
break reducibleJoin4;
}
}
if (r6 == null) {
return undefined;
}
if (property !== 'access') {
reducibleJoin14: while (true) {
if (value4) {
break reducibleJoin14;
}
value5 = property !== 'call';
reducibleJoin9: while (true) {
if (value5) {
value6 = property !== 'optionalCall';
r4 = value6;
break reducibleJoin9;
}
r4 = value5;
break reducibleJoin9;
}
if (r4) {
r16 = r6;
} else {
yield property2(_fun60415);
value7 = undefined;
value8 = false;
if (value8) {
return value7;
}
env0_1 = value7;
env0_0 = undefined;
r16 = value7;
}
length = a0.length;
if (!(value3 < length)) {
return r16;
}
r5 = value3;
r6 = r16;
continue reducibleLoop2;
}
}
env0_0 = r6;
yield property2(r6);
value9 = undefined;
value10 = false;
if (value10) {
return value9;
}
env0_1 = value9;
r16 = value9;
length = a0.length;
if (!(value3 < length)) {
return r16;
}
r5 = value3;
r6 = r16;
continue reducibleLoop2;
}
} else {
r3 = property;
}
return r3;
function _fun60415() { // fn#60415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7672:347, offset: 0x01702abc, size: 107 bytes, params: 1, frame: 15
var r0;
var value5;
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value4 = 0;
if (value4 < length) {
for (r0 = value4; true; r0 = value5) {
array[r0] = arguments[r0];
value5 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
if (!(value5 < length)) {
break;
}
}
}
const binding = env0_1;
const call = binding.call;
const apply = call.apply;
const items2 = [env0_0];
return Reflect.apply(apply, call, [binding, items2.concat(array)]);
}
}
}
}
global.__d(_fun60411, 7494, [5]) /* metro module 7494, dependencies: [5] */;