72 lines
2.5 KiB
React
72 lines
2.5 KiB
React
/* Metro module 1020; source: unknown; dependencies: [] */
|
|
function _fun10670(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1147:6, offset: 0x00d9326d, size: 95 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
items = [];
|
|
let value = 0;
|
|
let r4 = value;
|
|
reducibleLoop1: while (true) {
|
|
items[r4] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'[r4];
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (value < 64) {
|
|
r4 = value;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
exports.base64StringFromByteArray = base64StringFromByteArray;
|
|
}
|
|
|
|
function base64StringFromByteArray(a0) { // fn#10672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1147:411, offset: 0x00d932cc, size: 333 bytes, params: 2, frame: 24
|
|
var r8;
|
|
var r10;
|
|
var push;
|
|
var encodeChunk_10671Binding;
|
|
var value5;
|
|
var binding;
|
|
var property;
|
|
var value6;
|
|
var property2;
|
|
const length = a0.length;
|
|
let value = length % 3;
|
|
const items2 = [];
|
|
const value2 = length - value;
|
|
const value4 = 0;
|
|
if (value4 < value2) {
|
|
r8 = value4;
|
|
while (true) {
|
|
push = items2.push;
|
|
encodeChunk_10671Binding = encodeChunk_10671;
|
|
value5 = r8 + 16383;
|
|
r10 = value5 > value2 ? value2 : value5;
|
|
Reflect.apply(push, items2, [encodeChunk_10671Binding(a0, r8, r10)]);
|
|
if (value5 < value2) {
|
|
r8 = value5;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
if (value === 1) {
|
|
property = a0[length - 1];
|
|
push = items2.push;
|
|
binding = env0_0;
|
|
property2 = binding[property >> 2];
|
|
binding = env0_0;
|
|
Reflect.apply(push, items2, ['' + (property2 + binding[property << 4 & 63]) + '==']);
|
|
} else if (value === 2) {
|
|
value = a0[length - 2] << 8;
|
|
value += a0[length - 1];
|
|
push = items2.push;
|
|
binding = env0_0;
|
|
property = binding[value >> 10];
|
|
binding = env0_0;
|
|
value6 = property + binding[value >> 4 & 63];
|
|
binding = env0_0;
|
|
value = value6 + binding[value << 2 & 63];
|
|
Reflect.apply(push, items2, ['' + value + '=']);
|
|
}
|
|
return items2.join('');
|
|
}
|
|
|