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

1068 lines
54 KiB
JavaScript

/* Metro module 1340; source: unknown; dependencies: [] */
function _fun15270(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1467:6, offset: 0x00e2b56b, size: 58 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.reflectionMergePartial = undefined;
exports.reflectionMergePartial = reflectionMergePartial;
}
function reflectionMergePartial(a0, a1, a2) { // fn#15271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1467:151, offset: 0x00e2b5a5, size: 732 bytes, params: 4, frame: 37
var r2;
var oneofKind;
var r11;
var r12;
var r22;
var r19;
var r17;
var value;
var value2;
var fields;
var iterator;
var iterator2;
var value3;
var item;
var item2;
var localName;
var oneof;
var property;
var value4;
var value5;
var value6;
var property2;
var property3;
var value7;
var repeat;
var length;
var kind;
var value8;
var value9;
var value10;
var value11;
var V;
var value12;
var value13;
var value14;
var T;
var value15;
var Object;
var keys;
var value16;
var iterator3;
var item3;
var value17;
var create;
var property4;
var value18;
var error;
var assign;
var value19;
var value20;
var mergePartial;
var value21;
var value22;
var property5;
var value23;
var value24;
var value25;
var value26;
var property6;
var value27;
var value28;
exceptionSkip137: while (true) {
exceptionLanding137: while (true) {
exceptionSkip70: while (true) {
exceptionLanding70: while (true) {
value = a1;
value2 = undefined;
fields = a0.fields;
iterator = fields[Symbol.iterator]();
iterator2 = iterator.next;
value3 = 0;
r2 = iterator;
reducibleLoop1: while (true) {
item2 = Reflect.apply(iterator2, r2, []);
item = item2.value;
item2 = item2.done ? undefined : r2;
if (item2 === value2) {
break reducibleLoop1;
}
try {
localName = item.localName;
} catch (error) {
break exceptionLanding137;
}
try {
oneof = item.oneof;
} catch (error) {
break exceptionLanding137;
}
if (oneof) {
try {
oneof = item.oneof;
} catch (error) {
break exceptionLanding137;
}
try {
property = a2[oneof];
} catch (error) {
break exceptionLanding137;
}
try {
value5 = property == null;
} catch (error) {
break exceptionLanding137;
}
reducibleJoin18: while (true) {
if (value5) {
oneofKind = value2;
break reducibleJoin18;
}
try {
oneofKind = property.oneofKind;
} catch (error) {
break exceptionLanding137;
}
break reducibleJoin18;
}
try {
value6 = oneofKind == null;
} catch (error) {
break exceptionLanding137;
}
if (value6) {
r2 = item2;
continue reducibleLoop1;
}
try {
property2 = property[localName];
} catch (error) {
break exceptionLanding137;
}
try {
oneof = item.oneof;
} catch (error) {
break exceptionLanding137;
}
try {
property3 = value[oneof];
} catch (error) {
break exceptionLanding137;
}
try {
oneofKind = property.oneofKind;
} catch (error) {
break exceptionLanding137;
}
try {
property3.oneofKind = oneofKind;
} catch (error) {
break exceptionLanding137;
}
try {
value7 = property2 == null;
} catch (error) {
break exceptionLanding137;
}
if (value7) {
try {
delete property3[localName];
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
r11 = property2;
r12 = property3;
try {
repeat = item.repeat;
} catch (error) {
break exceptionLanding137;
}
reducibleJoin36: while (true) {
if (repeat) {
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
property.length = length;
} catch (error) {
break exceptionLanding137;
}
break reducibleJoin36;
}
break reducibleJoin36;
}
try {
kind = item.kind;
} catch (error) {
break exceptionLanding137;
}
try {
value8 = kind === 'scalar';
} catch (error) {
break exceptionLanding137;
}
if (!value8) {
try {
value9 = kind === 'enum';
} catch (error) {
break exceptionLanding137;
}
reducibleJoin117: while (true) {
if (value9) {
break reducibleJoin117;
}
try {
value10 = kind === 'message';
} catch (error) {
break exceptionLanding137;
}
if (value10) {
try {
T = item.T;
} catch (error) {
break exceptionLanding137;
}
try {
value19 = Reflect.apply(T, item, []);
} catch (error) {
break exceptionLanding137;
}
try {
repeat = item.repeat;
} catch (error) {
break exceptionLanding137;
}
if (repeat) {
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
value22 = value3 < length;
} catch (error) {
break exceptionLanding137;
}
if (value22) {
r19 = value3;
reducibleLoop104: while (true) {
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
create = value19.create;
} catch (error) {
break exceptionLanding137;
}
try {
property5 = r11[r19];
} catch (error) {
break exceptionLanding137;
}
try {
value23 = Reflect.apply(create, value19, [property5]);
} catch (error) {
break exceptionLanding137;
}
try {
property[r19] = value23;
} catch (error) {
break exceptionLanding137;
}
try {
value24 = typeof r19 === 'bigint' ? r19 + 1n : +r19 + 1;
} catch (error) {
break exceptionLanding137;
}
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
value25 = value24 < length;
} catch (error) {
break exceptionLanding137;
}
if (value25) {
r19 = value24;
continue reducibleLoop104;
}
break reducibleLoop104;
}
r2 = item2;
continue reducibleLoop1;
}
r2 = item2;
continue reducibleLoop1;
}
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
value20 = value2 === property;
} catch (error) {
break exceptionLanding137;
}
if (value20) {
try {
create = value19.create;
} catch (error) {
break exceptionLanding137;
}
try {
value21 = Reflect.apply(create, value19, [r11]);
} catch (error) {
break exceptionLanding137;
}
try {
r12[localName] = value21;
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
try {
mergePartial = value19.mergePartial;
} catch (error) {
break exceptionLanding137;
}
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
Reflect.apply(mergePartial, value19, [property, r11]);
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
try {
value11 = kind !== 'map';
} catch (error) {
break exceptionLanding137;
}
if (value11) {
r2 = item2;
continue reducibleLoop1;
}
try {
V = item.V;
} catch (error) {
break exceptionLanding137;
}
try {
kind = V.kind;
} catch (error) {
break exceptionLanding137;
}
try {
value12 = kind === 'scalar';
} catch (error) {
break exceptionLanding137;
}
if (!value12) {
try {
value13 = kind === 'enum';
} catch (error) {
break exceptionLanding137;
}
reducibleJoin73: while (true) {
if (value13) {
break reducibleJoin73;
}
try {
value14 = kind !== 'message';
} catch (error) {
break exceptionLanding137;
}
if (value14) {
r2 = item2;
continue reducibleLoop1;
}
try {
V = item.V;
} catch (error) {
break exceptionLanding137;
}
try {
T = V.T;
} catch (error) {
break exceptionLanding137;
}
try {
value15 = Reflect.apply(T, V, []);
} catch (error) {
break exceptionLanding137;
}
try {
Object = global.Object;
} catch (error) {
break exceptionLanding137;
}
try {
keys = Object.keys;
} catch (error) {
break exceptionLanding137;
}
try {
value16 = Reflect.apply(keys, Object, [r11]);
} catch (error) {
break exceptionLanding137;
}
try {
iterator = value16[Symbol.iterator]();
iterator3 = iterator.next;
} catch (error) {
break exceptionLanding137;
}
r22 = iterator;
reducibleLoop58: while (true) {
try {
item3 = Reflect.apply(iterator3, r22, []);
item = item3.value;
item3 = item3.done ? undefined : r22;
} catch (error) {
break exceptionLanding137;
}
try {
value17 = item3 === value2;
} catch (error) {
break exceptionLanding137;
}
if (value17) {
r2 = item2;
continue reducibleLoop1;
}
try {
try {
property = r12[localName];
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
try {
try {
create = value15.create;
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
try {
try {
property4 = r11[item];
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
try {
try {
value18 = Reflect.apply(create, value15, [property4]);
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
try {
try {
property[item] = value18;
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
r22 = item3;
continue reducibleLoop58;
}
continue reducibleLoop1;
}
}
try {
Object = global.Object;
} catch (error) {
break exceptionLanding137;
}
try {
assign = Object.assign;
} catch (error) {
break exceptionLanding137;
}
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
Reflect.apply(assign, Object, [property, r11]);
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
}
try {
repeat = item.repeat;
} catch (error) {
break exceptionLanding137;
}
if (!repeat) {
try {
r12[localName] = r11;
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
value26 = value3 < length;
} catch (error) {
break exceptionLanding137;
}
if (!value26) {
r2 = item2;
continue reducibleLoop1;
}
r17 = value3;
reducibleLoop126: while (true) {
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
property6 = r11[r17];
} catch (error) {
break exceptionLanding137;
}
try {
property[r17] = property6;
} catch (error) {
break exceptionLanding137;
}
try {
value27 = typeof r17 === 'bigint' ? r17 + 1n : +r17 + 1;
} catch (error) {
break exceptionLanding137;
}
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
value28 = value27 < length;
} catch (error) {
break exceptionLanding137;
}
if (value28) {
r17 = value27;
continue reducibleLoop126;
}
r2 = item2;
continue reducibleLoop1;
}
continue reducibleLoop1;
}
try {
property = a2[localName];
} catch (error) {
break exceptionLanding137;
}
try {
value4 = property != null;
} catch (error) {
break exceptionLanding137;
}
reducibleJoin28: while (true) {
if (value4) {
r11 = property;
r12 = value;
break reducibleJoin28;
}
r2 = item2;
continue reducibleLoop1;
}
try {
repeat = item.repeat;
} catch (error) {
break exceptionLanding137;
}
reducibleJoin36: while (true) {
if (repeat) {
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
property.length = length;
} catch (error) {
break exceptionLanding137;
}
break reducibleJoin36;
}
break reducibleJoin36;
}
try {
kind = item.kind;
} catch (error) {
break exceptionLanding137;
}
try {
value8 = kind === 'scalar';
} catch (error) {
break exceptionLanding137;
}
if (!value8) {
try {
value9 = kind === 'enum';
} catch (error) {
break exceptionLanding137;
}
reducibleJoin117: while (true) {
if (value9) {
break reducibleJoin117;
}
try {
value10 = kind === 'message';
} catch (error) {
break exceptionLanding137;
}
if (value10) {
try {
T = item.T;
} catch (error) {
break exceptionLanding137;
}
try {
value19 = Reflect.apply(T, item, []);
} catch (error) {
break exceptionLanding137;
}
try {
repeat = item.repeat;
} catch (error) {
break exceptionLanding137;
}
if (repeat) {
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
value22 = value3 < length;
} catch (error) {
break exceptionLanding137;
}
if (value22) {
r19 = value3;
reducibleLoop104: while (true) {
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
create = value19.create;
} catch (error) {
break exceptionLanding137;
}
try {
property5 = r11[r19];
} catch (error) {
break exceptionLanding137;
}
try {
value23 = Reflect.apply(create, value19, [property5]);
} catch (error) {
break exceptionLanding137;
}
try {
property[r19] = value23;
} catch (error) {
break exceptionLanding137;
}
try {
value24 = typeof r19 === 'bigint' ? r19 + 1n : +r19 + 1;
} catch (error) {
break exceptionLanding137;
}
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
value25 = value24 < length;
} catch (error) {
break exceptionLanding137;
}
if (value25) {
r19 = value24;
continue reducibleLoop104;
}
break reducibleLoop104;
}
r2 = item2;
continue reducibleLoop1;
}
r2 = item2;
continue reducibleLoop1;
}
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
value20 = value2 === property;
} catch (error) {
break exceptionLanding137;
}
if (value20) {
try {
create = value19.create;
} catch (error) {
break exceptionLanding137;
}
try {
value21 = Reflect.apply(create, value19, [r11]);
} catch (error) {
break exceptionLanding137;
}
try {
r12[localName] = value21;
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
try {
mergePartial = value19.mergePartial;
} catch (error) {
break exceptionLanding137;
}
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
Reflect.apply(mergePartial, value19, [property, r11]);
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
try {
value11 = kind !== 'map';
} catch (error) {
break exceptionLanding137;
}
if (value11) {
r2 = item2;
continue reducibleLoop1;
}
try {
V = item.V;
} catch (error) {
break exceptionLanding137;
}
try {
kind = V.kind;
} catch (error) {
break exceptionLanding137;
}
try {
value12 = kind === 'scalar';
} catch (error) {
break exceptionLanding137;
}
if (!value12) {
try {
value13 = kind === 'enum';
} catch (error) {
break exceptionLanding137;
}
reducibleJoin73: while (true) {
if (value13) {
break reducibleJoin73;
}
try {
value14 = kind !== 'message';
} catch (error) {
break exceptionLanding137;
}
if (value14) {
r2 = item2;
continue reducibleLoop1;
}
try {
V = item.V;
} catch (error) {
break exceptionLanding137;
}
try {
T = V.T;
} catch (error) {
break exceptionLanding137;
}
try {
value15 = Reflect.apply(T, V, []);
} catch (error) {
break exceptionLanding137;
}
try {
Object = global.Object;
} catch (error) {
break exceptionLanding137;
}
try {
keys = Object.keys;
} catch (error) {
break exceptionLanding137;
}
try {
value16 = Reflect.apply(keys, Object, [r11]);
} catch (error) {
break exceptionLanding137;
}
try {
iterator = value16[Symbol.iterator]();
iterator3 = iterator.next;
} catch (error) {
break exceptionLanding137;
}
r22 = iterator;
reducibleLoop58: while (true) {
try {
item3 = Reflect.apply(iterator3, r22, []);
item = item3.value;
item3 = item3.done ? undefined : r22;
} catch (error) {
break exceptionLanding137;
}
try {
value17 = item3 === value2;
} catch (error) {
break exceptionLanding137;
}
if (value17) {
r2 = item2;
continue reducibleLoop1;
}
try {
try {
property = r12[localName];
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
try {
try {
create = value15.create;
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
try {
try {
property4 = r11[item];
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
try {
try {
value18 = Reflect.apply(create, value15, [property4]);
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
try {
try {
property[item] = value18;
} catch (error) {
break exceptionLanding70;
}
} catch (error) {
break exceptionLanding137;
}
r22 = item3;
continue reducibleLoop58;
}
continue reducibleLoop1;
}
}
try {
Object = global.Object;
} catch (error) {
break exceptionLanding137;
}
try {
assign = Object.assign;
} catch (error) {
break exceptionLanding137;
}
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
Reflect.apply(assign, Object, [property, r11]);
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
}
try {
repeat = item.repeat;
} catch (error) {
break exceptionLanding137;
}
if (repeat) {
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
value26 = value3 < length;
} catch (error) {
break exceptionLanding137;
}
if (!value26) {
r2 = item2;
continue reducibleLoop1;
}
r17 = value3;
reducibleLoop126: while (true) {
try {
property = r12[localName];
} catch (error) {
break exceptionLanding137;
}
try {
property6 = r11[r17];
} catch (error) {
break exceptionLanding137;
}
try {
property[r17] = property6;
} catch (error) {
break exceptionLanding137;
}
try {
value27 = typeof r17 === 'bigint' ? r17 + 1n : +r17 + 1;
} catch (error) {
break exceptionLanding137;
}
try {
length = r11.length;
} catch (error) {
break exceptionLanding137;
}
try {
value28 = value27 < length;
} catch (error) {
break exceptionLanding137;
}
if (value28) {
r17 = value27;
continue reducibleLoop126;
}
r2 = item2;
continue reducibleLoop1;
}
continue reducibleLoop1;
}
try {
r12[localName] = r11;
} catch (error) {
break exceptionLanding137;
}
r2 = item2;
continue reducibleLoop1;
}
return value2;
break exceptionSkip70;
}
try {
try {
item3.return();
} catch {
}
} catch (error) {
break exceptionLanding137;
}
try {
throw error;
} catch (error) {
break exceptionLanding137;
}
break exceptionSkip70;
}
break exceptionSkip137;
}
try {
item2.return();
} catch {
}
throw error;
break exceptionSkip137;
}
}
global.__d(_fun15270, 1340, []) /* metro module 1340 */;