/* Metro module 7461; source: unknown; dependencies: [] */ function _fun60166(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:6, offset: 0x016fd639, size: 175 bytes, params: 8, frame: 19 const resolve_601692 = resolve_60169; const normalizePath_601722 = normalizePath_60172; const closure3 = function(a0) { return a0.charAt(0) === '/'; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_0 = RegExp('^(\\S+:\\\\|\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^/\\\\]+?|)(\\.[^./\\\\]*|))(?:[/\\\\]*)$', ''); exports.basename = function(a0, a1) { var r4; var r0; var value = a1; r4 = splitPath_60168(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_60176; exports.isAbsolute = closure3; exports.join = join_60177; exports.normalizePath = normalizePath_601722; exports.relative = relative_60178; exports.resolve = resolve_601692; function splitPath_60168(a0) { // fn#60168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:350, offset: 0x00d762b6, size: 103 bytes, params: 2, frame: 12 var r2; var r0; let value = a0; if (value.length > 1024) { value = value.slice(-1024); value = '' + value; r2 = value; } else { r2 = value; } value = env0_0.exec(r2); if (value) { value = value.slice(1); r0 = value; } else { r0 = []; } return r0; } function resolve_60169() { // fn#60169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:460, offset: 0x016fd6e8, 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 normalizeArray_60167Binding = normalizeArray_60167; const value12 = r6.split(value5).filter(function(a0) { return !!a0; }); normalizeArray_60167Binding(value12, !r0); return r1 + value12.join(value5) || '.'; } function normalizePath_60172(a0) { // fn#60172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:862, offset: 0x016fd7c4, size: 142 bytes, params: 2, frame: 17 const isAbsolute_601742 = isAbsolute_60174(a0); const value2 = a0.slice(-1); const value3 = '/'; const value4 = value3 === value2; const normalizeArray_60167Binding = normalizeArray_60167; let value = a0.split(value3); value = value.filter(function(a0) { return !!a0; }); normalizeArray_60167Binding(value, !isAbsolute_601742); value = value.join(value3); const r0 = value || isAbsolute_601742 ? value : '.'; return (isAbsolute_601742 ? value3 : '') + (r0 && value4 ? r0 + value3 : r0); } function dirname_60176(a0) { // fn#60176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:1243, offset: 0x00d765a5, size: 79 bytes, params: 2, frame: 17 const value = splitPath_60168(a0); let property = value[0]; const r2 = property || ''; property = value[1]; return r2 || property ? r2 + (property && property.slice(0, property.length - 1)) : '.'; } function join_60177() { // fn#60177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:1383, offset: 0x00d765f4, size: 90 bytes, params: 1, frame: 14 var r0; var value5; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value4 = 0; if (value4 < length) { for (r0 = value4; true; r0 = value5) { array[r0] = arguments[r0]; value5 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (!(value5 < length)) { break; } } } return normalizePath_60172(array.join('/')); } function relative_60178(a0, a1) { // fn#60178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:1547, offset: 0x00d7664e, size: 228 bytes, params: 3, frame: 17 var r0; var r4; var r1; var property; var value9; var value10; const resolve_60169Binding = resolve_60169; const value2 = resolve_60169Binding(a0); const value3 = value2.slice(1); const value5 = resolve_60169Binding(a1).slice(1); const trim_60171Binding = trim_60171; const value = trim_60171Binding(value3.split('/')); const value6 = trim_60171Binding(value5.split('/')); const Math = global.Math; const min = Math.min; let length = value.length; const value7 = Reflect.apply(min, Math, [length, value6.length]); const value8 = 0; if (value8 < value7) { r0 = value8; while (true) { property = value[r0]; if (property !== value6[r0]) { r4 = r0; break; } value9 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value9 < value7) { r0 = value9; continue; } r4 = value7; break; } } else { r4 = value7; } const items2 = []; length = value.length; if (r4 < length) { for (r1 = r4; true; r1 = value10) { items2.push('..'); value10 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; length = value.length; if (!(value10 < length)) { break; } } } return items2.concat(value6.slice(r4)).join('/'); } } function normalizeArray_60167(a0, a1) { // fn#60167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:32, offset: 0x00d7621e, size: 152 bytes, params: 3, frame: 19 var r2; var r6; var r8; var r1; var property; var splice; var value3; var unshift; var value4; let value = a0.length - 1; const value2 = 0; if (value >= value2) { r2 = value2; r6 = value; reducibleLoop1: while (true) { property = a0[r6]; if (property === '.') { splice = a0.splice; Reflect.apply(splice, a0, [r6, 1]); r8 = r2; } else if (property === '..') { splice = a0.splice; Reflect.apply(splice, a0, [r6, 1]); r8 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; } else { reducibleJoin7: while (true) { if (r2) { splice = a0.splice; Reflect.apply(splice, a0, [r6, 1]); value = typeof r2 === 'bigint' ? r2 - 1n : +r2 - 1; r8 = value; break reducibleJoin7; } r8 = r2; break reducibleJoin7; } } value = typeof r6 === 'bigint' ? r6 - 1n : +r6 - 1; if (value >= value2) { r2 = r8; r6 = value; continue reducibleLoop1; } r1 = r8; break reducibleLoop1; } } else { r1 = value2; } reducibleJoin11: while (true) { if (!a1) { break reducibleJoin11; } value = typeof r1 === 'bigint' ? r1 : +r1; value3 = typeof value === 'bigint' ? value - 1n : +value - 1; if (!value) { break reducibleJoin11; } r2 = value3; reducibleLoop10: while (true) { unshift = a0.unshift; Reflect.apply(unshift, a0, ['..']); value = typeof r2 === 'bigint' ? r2 : +r2; value4 = typeof value === 'bigint' ? value - 1n : +value - 1; if (value) { r2 = value4; continue reducibleLoop10; } break reducibleJoin11; } } return a0; } function trim_60171(a0) { // fn#60171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7639:733, offset: 0x00d763f9, size: 156 bytes, params: 2, frame: 18 var r1; var r2; var r5; var r0; var value2; var value4; let length = a0.length; const value = 0; if (value < length) { if (a0[value] !== '') { r2 = value; } else { r1 = value; while (true) { value2 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; length = a0.length; if (!(value2 < length)) { r2 = value2; break; } if (a0[value2] === '') { r1 = value2; continue; } r2 = value2; break; } } } else { r2 = value; } const value3 = a0.length - 1; if (value3 >= value) { if (a0[value3] !== '') { r0 = value3; } else { r5 = value3; while (true) { value4 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1; if (!(value4 >= value)) { r0 = value4; break; } if (a0[value4] === '') { r5 = value4; continue; } r0 = value4; break; } } } else { r0 = value3; } r0 = r2 > r0 ? [] : a0.slice(r2, r0 - r2 + 1); return r0; } global.__d(_fun60166, 7461, []) /* metro module 7461 */;