126 lines
4.1 KiB
React
126 lines
4.1 KiB
React
/* Metro module 932; source: unknown; dependencies: [] */
|
|
function _fun9915(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1059:6, offset: 0x00d76163, size: 187 bytes, params: 8, frame: 20
|
|
const closure = resolve_9918;
|
|
const closure2 = normalizePath;
|
|
const closure3 = function(a0) {
|
|
return a0.charAt(0) === '/';
|
|
};
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
const env0_0 = RegExp('^(\\S+:\\\\|\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^/\\\\]+?|)(\\.[^./\\\\]*|))(?:[/\\\\]*)$', '');
|
|
exports.basename = function(a0, a1) {
|
|
var r4;
|
|
var r0;
|
|
var value = a1;
|
|
r4 = splitPath(a0)[2] || '';
|
|
if (value && r4.slice(-1 * value.length) === value) {
|
|
value = r4.slice(0, r4.length - value.length);
|
|
r0 = value;
|
|
} else {
|
|
r0 = r4;
|
|
}
|
|
return r0;
|
|
};
|
|
exports.dirname = dirname;
|
|
exports.isAbsolute = closure3;
|
|
exports.join = join;
|
|
exports.normalizePath = closure2;
|
|
exports.relative = relative;
|
|
exports.resolve = closure;
|
|
}
|
|
|
|
function resolve_9918() { // fn#9918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1059:472, offset: 0x00d7631d, size: 220 bytes, params: 1, frame: 26
|
|
var r2;
|
|
var r4;
|
|
var r10;
|
|
var r12;
|
|
var r15;
|
|
var r13;
|
|
var r0;
|
|
var r6;
|
|
var value6;
|
|
var value7;
|
|
var charAt;
|
|
var value8;
|
|
var value9;
|
|
const value = undefined;
|
|
const value2 = arguments.length - 1;
|
|
const value3 = '';
|
|
const value4 = false;
|
|
const value5 = '/';
|
|
if (value2 >= -1) {
|
|
r2 = value4;
|
|
r4 = value3;
|
|
r10 = value2;
|
|
while (true) {
|
|
if (r10 >= 0) {
|
|
if (r10 < 0) {
|
|
r12 = value;
|
|
continue;
|
|
}
|
|
if (arguments.length <= r10) {
|
|
r12 = value;
|
|
continue;
|
|
}
|
|
value6 = arguments[r10];
|
|
r12 = value6;
|
|
r15 = r12;
|
|
} else {
|
|
r15 = value5;
|
|
}
|
|
if (!r15) {
|
|
r13 = r4;
|
|
continue;
|
|
}
|
|
value7 = value3 + r15 + value5 + r4;
|
|
charAt = r15.charAt;
|
|
value8 = value5 === Reflect.apply(charAt, r15, [0]);
|
|
r2 = value8;
|
|
r13 = value7;
|
|
value9 = typeof r10 === 'bigint' ? r10 - 1n : +r10 - 1;
|
|
if (value9 >= -1) {
|
|
if (r2) {
|
|
r0 = r2;
|
|
r6 = r13;
|
|
break;
|
|
}
|
|
r4 = r13;
|
|
r10 = value9;
|
|
continue;
|
|
}
|
|
r0 = r2;
|
|
r6 = r13;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value4;
|
|
r6 = value3;
|
|
}
|
|
const r1 = r0 ? value5 : value3;
|
|
const normalizeArrayBinding = normalizeArray;
|
|
const value12 = r6.split(value5).filter(function(a0) {
|
|
return !!a0;
|
|
});
|
|
normalizeArrayBinding(value12, !r0);
|
|
return r1 + value12.join(value5) || '.';
|
|
}
|
|
|
|
function normalizePath(a0) { // fn#9921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1059:874, offset: 0x00d76495, size: 142 bytes, params: 2, frame: 17
|
|
const isAbsolute2 = isAbsolute(a0);
|
|
const value2 = a0.slice(-1);
|
|
const value3 = '/';
|
|
const value4 = value3 === value2;
|
|
const normalizeArrayBinding = normalizeArray;
|
|
let value = a0.split(value3);
|
|
value = value.filter(function(a0) {
|
|
return !!a0;
|
|
});
|
|
normalizeArrayBinding(value, !isAbsolute2);
|
|
value = value.join(value3);
|
|
const r0 = value || isAbsolute2 ? value : '.';
|
|
return (isAbsolute2 ? value3 : '') + (r0 && value4 ? r0 + value3 : r0);
|
|
}
|
|
|