Files
discord-decomp/sources/by-id/module-00206.jsx
T
2026-07-27 16:20:00 +03:00

41 lines
1.7 KiB
React

/* Metro module 206; source: unknown; dependencies: [] */
function _fun2916(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:231:6, offset: 0x00c8c28d, size: 200 bytes, params: 8, frame: 15
var charCodeAt;
var value2;
const getLens = function(a0) {
var property = a0.length;
var value = 0;
if (property % 4 > value) {
throw new global.Error('Invalid string. Length must be a multiple of 4');
}
var value2 = a0.indexOf('=');
var r2 = value2 !== -1 ? value2 : property;
return [r2, r2 === property ? value : 4 - r2 % 4];
};
exports.byteLength = byteLength;
exports.toByteArray = toByteArray;
exports.fromByteArray = fromByteArray;
const items3 = [];
const items2 = [];
const Uint8Array = global.Uint8Array;
let r0 = typeof Uint8Array !== 'undefined' ? global.Uint8Array : global.Array;
let value = 0;
r0 = value;
reducibleLoop4: while (true) {
items3[r0] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'[r0];
charCodeAt = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charCodeAt;
items2[Reflect.apply(charCodeAt, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
[r0])] = r0;
value2 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
if (value2 < 64) {
r0 = value2;
continue reducibleLoop4;
}
break reducibleLoop4;
}
items2['-'.charCodeAt(value)] = 62;
value = '_'.charCodeAt(value);
items2[value] = 63;
}