180 lines
7.2 KiB
JavaScript
180 lines
7.2 KiB
JavaScript
/* Metro module 532; source: unknown; dependencies: [] */
|
|
function _fun6636(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:582:6, offset: 0x00d03a18, size: 66 bytes, params: 8, frame: 3
|
|
const Object = global.Object;
|
|
const env0_0 = Object.prototype.toString;
|
|
const Math = global.Math;
|
|
const env0_1 = Math.max;
|
|
const concatty = function(a0, a1) {
|
|
var r6;
|
|
var r3;
|
|
var value2;
|
|
var items = [];
|
|
var value = 0;
|
|
if (value < a0.length) {
|
|
for (r6 = value; true; r6 = value2) {
|
|
items[r6] = a0[r6];
|
|
value2 = r6 + 1;
|
|
if (!(value2 < a0.length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (value < a1.length) {
|
|
for (r3 = value; true; r3 = value) {
|
|
value = r3 + a0.length;
|
|
items[value] = a1[r3];
|
|
value = r3 + 1;
|
|
if (!(value < a1.length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return items;
|
|
};
|
|
module.exports = exports_6638;
|
|
function exports_6638(a0) { // fn#6638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:582:223, offset: 0x00d03aba, size: 391 bytes, params: 2, frame: 22
|
|
var environment;
|
|
var r7;
|
|
var r8;
|
|
var r0;
|
|
var r3;
|
|
var r11;
|
|
var r6;
|
|
var value;
|
|
var items2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var maxBinding;
|
|
var length;
|
|
var length2;
|
|
var value7;
|
|
var Function;
|
|
var value8;
|
|
var prototype;
|
|
var closure;
|
|
var value9;
|
|
var closure3;
|
|
var value11;
|
|
const env0_0 = a0;
|
|
if (typeof this === 'function') {
|
|
value = environment;
|
|
reducibleJoin13: while (true) {
|
|
if (toString.apply(this) === '[object Function]') {
|
|
items2 = [];
|
|
value3 = 1;
|
|
value4 = 0;
|
|
if (value3 < arguments.length) {
|
|
r7 = value4;
|
|
r8 = value3;
|
|
reducibleLoop3: while (true) {
|
|
items2[r7] = arguments[r8];
|
|
value5 = r8 + value3;
|
|
value6 = r7 + value3;
|
|
if (value5 < arguments.length) {
|
|
r7 = value6;
|
|
r8 = value5;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
var env0_3 = items2;
|
|
maxBinding = max;
|
|
length = this.length;
|
|
length2 = items2.length;
|
|
value = maxBinding(value4, length - length2);
|
|
items2 = [];
|
|
if (value4 < value) {
|
|
r0 = value4;
|
|
reducibleLoop5: while (true) {
|
|
items2[r0] = '$' + r0;
|
|
value7 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (value7 < value) {
|
|
r0 = value7;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
Function = global.Function;
|
|
length = items2.length;
|
|
value = '';
|
|
if (value4 < length) {
|
|
r3 = value4;
|
|
r7 = value;
|
|
reducibleLoop7: while (true) {
|
|
value = r7 + items2[r3];
|
|
value8 = r3 + value3;
|
|
length = items2.length;
|
|
reducibleJoin9: while (true) {
|
|
if (value8 < length) {
|
|
value += ',';
|
|
r11 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
r11 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
length = items2.length;
|
|
if (value8 < length) {
|
|
r3 = value8;
|
|
r7 = r11;
|
|
continue reducibleLoop7;
|
|
}
|
|
r6 = r11;
|
|
break reducibleLoop7;
|
|
}
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
value = Function('binder', 'return function (' + r6 + '){ return binder.apply(this,arguments); }');
|
|
value = value(binder);
|
|
var env0_2 = value;
|
|
prototype = this.prototype;
|
|
reducibleJoin12: while (true) {
|
|
if (prototype) {
|
|
closure = function() {
|
|
};
|
|
prototype = this.prototype;
|
|
closure.prototype = prototype;
|
|
prototype = closure.prototype;
|
|
value9 = Object.create(prototype, {constructor: {value: closure}});
|
|
closure3 = new closure();
|
|
value11 = closure3 instanceof Object ? closure3 : value9;
|
|
value.prototype = value11;
|
|
closure.prototype = null;
|
|
break reducibleJoin12;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
return value;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
}
|
|
const TypeError = global.TypeError;
|
|
value = 'Function.prototype.bind called on incompatible ' + this;
|
|
const value12 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
|
|
const typeError = new TypeError();
|
|
throw typeError instanceof Object ? typeError : value12;
|
|
function binder() { // fn#6639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:582:733, owner: exports_6638.binder, offset: 0x00d03c41, size: 108 bytes, params: 1, frame: 20
|
|
var value5;
|
|
const value = this;
|
|
const value3 = value instanceof env0_2;
|
|
const binding = env0_1;
|
|
const apply = binding.apply;
|
|
if (value3) {
|
|
value5 = Reflect.apply(apply, binding, [value, concatty(env0_3, arguments)]);
|
|
return global.Object(value5) !== value5 ? value : value5;
|
|
}
|
|
return Reflect.apply(apply, binding, [env0_0, concatty(env0_3, arguments)]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun6636, 532, []) /* metro module 532 */;
|