/* Metro module 1959; source: unknown; dependencies: [] */ function _fun21784(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2086:6, offset: 0x00ef9bf2, size: 66 bytes, params: 8, frame: 15 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.default = function(a0) { var env0_0 = a0; return _fun21786; }; module.exports = exports.default; function buildMatchFn(a0) { // fn#21785, offset: 0x00ef9c34, size: 16 bytes, params: 2, frame: 2 const env0_0 = a0; return _fun21786; function _fun21786(a0) { // fn#21786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2086:134, offset: 0x00ef9c44, size: 388 bytes, params: 2, frame: 23 var r2; var r10; var r4; var r7; var r0; var r5; var property; var value6; var Array; var properties; var properties2; var properties3; var propertyName; var propertyName2; var hasOwnProperty; var property4; var test; var length; var property5; var value9; var valueCallback; var slice; const value = undefined; const r6 = arguments.length > 1 && value !== arguments[1] ? arguments[1] : {}; const width = r6.width; let r1 = width && env0_0.matchPatterns[width]; r1 = !r1 ? env0_0.matchPatterns[env0_0.defaultMatchWidth] : r1; const value5 = a0.match(r1); if (value5) { value6 = 0; property = value5[value6]; r2 = width && env0_0.parsePatterns[width]; r2 = !r2 ? env0_0.parsePatterns[env0_0.defaultParseWidth] : r2; Array = global.Array; if (Array.isArray(r2)) { length = r2.length; if (value6 < length) { r7 = value6; while (true) { property5 = r2[r7]; test = property5.test; if (Reflect.apply(test, property5, [property])) { r0 = r7; break; } value9 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; length = r2.length; if (value9 < length) { r7 = value9; continue; } r0 = value; break; } } else { r0 = value; } r4 = r0; } else { properties = Object.keys(r2); properties2 = 0; properties3 = properties.length; if (properties === value) { r4 = value; } else { r10 = properties2; while (true) { propertyName = properties[r10]; propertyName2 = r10 + 1; if (propertyName === value) { r4 = value; break; } hasOwnProperty = r2.hasOwnProperty; if (Reflect.apply(hasOwnProperty, r2, [propertyName])) { property4 = r2[propertyName]; test = property4.test; if (Reflect.apply(test, property4, [property])) { r4 = propertyName; break; } r10 = propertyName2; continue; } r10 = propertyName2; continue; } } } valueCallback = env0_0.valueCallback; r5 = valueCallback ? env0_0.valueCallback(r4) : r4; valueCallback = r6.valueCallback; r2 = valueCallback ? r6.valueCallback(r5) : r5; slice = a0.slice; length = property.length; return {value: r2, rest: Reflect.apply(slice, a0, [length])}; } return null; } } } global.__d(_fun21784, 1959, []) /* metro module 1959 */;