/* Metro module 7377; source: unknown; dependencies: [7370, 7376] */ import * as Module07370Module from './module-07370.js'; /* Metro dependency 7370 */ function _fun59423(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:6, offset: 0x016ea2ec, size: 108 bytes, params: 8, frame: 16 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.getComponentName = getComponentName_59428; exports.getDomElement = getDomElement; exports.getLocationHref = getLocationHref_59430; exports.htmlTreeAsString = htmlTreeAsString_59431; function _htmlElementAsString_59424(a0, a1) { // fn#59424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:80, offset: 0x016ea358, size: 614 bytes, params: 3, frame: 28 var environment; var r5; var r6; var r4; var items2; var tagName; var value; var GLOBAL_OBJ; var HTMLElement; var dataset; var sentryComponent; var sentryElement; var push; var toLowerCase; var value2; var length; var filter; var value3; var map; var value4; var id; var HermesInternal; var concat; var className; var isString; var split; var iterator; var iterator2; var item; var item2; var error; var forEach; var iterator3; var item3; var getAttribute; var join; exceptionSkip41: while (true) { exceptionLanding41: while (true) { exceptionSkip25: while (true) { exceptionLanding25: while (true) { var env0_0 = a0; items2 = []; var env0_1 = items2; if (a0) { tagName = a0.tagName; reducibleJoin2: while (true) { if (tagName) { value = environment; GLOBAL_OBJ = (require(7370) /* metro dependency 7370 */).GLOBAL_OBJ; HTMLElement = GLOBAL_OBJ.HTMLElement; if (HTMLElement) { HTMLElement = global.HTMLElement; reducibleJoin8: while (true) { if (a0 instanceof HTMLElement) { dataset = a0.dataset; if (dataset) { dataset = a0.dataset; sentryComponent = dataset.sentryComponent; dataset = a0.dataset; if (sentryComponent) { return dataset.sentryComponent; } sentryElement = dataset.sentryElement; if (sentryElement) { return a0.dataset.sentryElement; } break reducibleJoin8; } break reducibleJoin8; } break reducibleJoin8; } } push = items2.push; tagName = a0.tagName; toLowerCase = tagName.toLowerCase; Reflect.apply(push, items2, [Reflect.apply(toLowerCase, tagName, [])]); value2 = null; reducibleJoin11: while (true) { if (a1) { length = a1.length; if (length) { filter = a1.filter; value3 = Reflect.apply(filter, a1, [_fun59425]); map = value3.map; value4 = Reflect.apply(map, value3, [_fun59426]); r5 = value4; break reducibleJoin11; } r5 = value2; break reducibleJoin11; } r5 = value2; break reducibleJoin11; } reducibleJoin27: while (true) { reducibleJoin15: while (true) { if (r5) { length = r5.length; if (length) { forEach = r5.forEach; Reflect.apply(forEach, r5, [_fun59427]); break reducibleJoin27; } id = a0.id; if (id) { push = items2.push; id = a0.id; HermesInternal = global.HermesInternal; concat = HermesInternal.concat; Reflect.apply(push, items2, ['#' + id]); break reducibleJoin15; } break reducibleJoin15; } id = a0.id; if (id) { push = items2.push; id = a0.id; HermesInternal = global.HermesInternal; concat = HermesInternal.concat; Reflect.apply(push, items2, ['#' + id]); break reducibleJoin15; } break reducibleJoin15; } className = a0.className; if (!className) { break reducibleJoin27; } value = require(7376) /* metro dependency 7376 */; isString = value.isString; if (!Reflect.apply(isString, value, [className])) { break reducibleJoin27; } split = className.split; iterator = Reflect.apply(split, className, [RegExp('\\s+', '')])[Symbol.iterator](); iterator2 = iterator.next; r6 = iterator; reducibleLoop18: while (true) { item2 = Reflect.apply(iterator2, r6, []); item = item2.value; item2 = item2.done ? undefined : r6; if (item2 === undefined) { break reducibleJoin27; } try { push = items2.push; } catch (error) { break exceptionLanding25; } try { HermesInternal = global.HermesInternal; } catch (error) { break exceptionLanding25; } try { concat = HermesInternal.concat; } catch (error) { break exceptionLanding25; } try { value = '.' + item; } catch (error) { break exceptionLanding25; } try { Reflect.apply(push, items2, [value]); } catch (error) { break exceptionLanding25; } r6 = item2; continue reducibleLoop18; } break reducibleJoin27; } iterator = ['aria-label', 'type', 'name', 'title', 'alt'][Symbol.iterator](); iterator3 = iterator.next; r4 = iterator; reducibleLoop28: while (true) { item3 = Reflect.apply(iterator3, r4, []); item = item3.value; item3 = item3.done ? undefined : r4; if (item3 === undefined) { break reducibleLoop28; } try { getAttribute = a0.getAttribute; } catch (error) { break exceptionLanding41; } try { value = Reflect.apply(getAttribute, a0, [item]); } catch (error) { break exceptionLanding41; } if (value) { try { push = items2.push; } catch (error) { break exceptionLanding41; } try { HermesInternal = global.HermesInternal; } catch (error) { break exceptionLanding41; } try { concat = HermesInternal.concat; } catch (error) { break exceptionLanding41; } try { value = '[' + item + '="' + value + '"]'; } catch (error) { break exceptionLanding41; } try { Reflect.apply(push, items2, [value]); } catch (error) { break exceptionLanding41; } r4 = item3; continue reducibleLoop28; } r4 = item3; continue reducibleLoop28; } join = items2.join; return Reflect.apply(join, items2, ['']); } break reducibleJoin2; } } return ''; break exceptionSkip25; } try { item2.return(); } catch { } throw error; break exceptionSkip25; } break exceptionSkip41; } try { item3.return(); } catch { } throw error; break exceptionSkip41; } function _fun59425(a0) { // fn#59425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:407, offset: 0x00d5c80c, size: 23 bytes, params: 2, frame: 11 return env0_0.getAttribute(a0); } function _fun59426(a0) { // fn#59426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:452, offset: 0x00d5c823, size: 35 bytes, params: 2, frame: 12 const binding = env0_0; const getAttribute = binding.getAttribute; return [a0, Reflect.apply(getAttribute, binding, [a0])]; } function _fun59427([property, property2]) { // fn#59427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:526, offset: 0x00d5c846, size: 70 bytes, params: 2, frame: 19 env0_1.push('[' + property + '="' + property2 + '"]'); } } function getComponentName_59428(a0) { // fn#59428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:843, offset: 0x00d5c88c, size: 143 bytes, params: 2, frame: 15 var dataset; var sentryComponent; var sentryElement; var parentNode; let value = a0; const value3 = 0; const GLOBAL_OBJ = require(dependencyMap[value3]).GLOBAL_OBJ; let HTMLElement = GLOBAL_OBJ.HTMLElement; if (!HTMLElement) { return null; } let r4 = value3; let r5 = value; reducibleLoop2: while (true) { if (!r5) { return null; } HTMLElement = global.HTMLElement; if (r5 instanceof HTMLElement) { dataset = r5.dataset; sentryComponent = dataset.sentryComponent; dataset = r5.dataset; if (sentryComponent) { return dataset.sentryComponent; } sentryElement = dataset.sentryElement; reducibleJoin7: while (true) { if (sentryElement) { return r5.dataset.sentryElement; } break reducibleJoin7; } } parentNode = r5.parentNode; value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1; if (!(value < 5)) { return null; } r4 = value; r5 = parentNode; continue reducibleLoop2; } } function getDomElement(a0) { // fn#59429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:1155, offset: 0x016ea5be, size: 126 bytes, params: 2, frame: 15 const GLOBAL_OBJ = (Module07370Module).GLOBAL_OBJ; return GLOBAL_OBJ.document && GLOBAL_OBJ.document.querySelector ? GLOBAL_OBJ.document.querySelector(a0) : null; } function getLocationHref_59430() { // fn#59430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:1328, offset: 0x00d5c91b, size: 57 bytes, params: 1, frame: 11 var value; var property; var GLOBAL_OBJ; var document; var location; var href; var error; try { value = environment; property = dependencyMap[0]; value = require(property); GLOBAL_OBJ = value.GLOBAL_OBJ; document = GLOBAL_OBJ.document; location = document.location; href = location.href; } catch (error) { return ''; } return href; } function htmlTreeAsString_59431(a0) { // fn#59431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:1447, offset: 0x00d5c954, size: 441 bytes, params: 2, frame: 25 var r1; var r12; var r9; var r10; var r11; var r122; var items2; var Array; var isArray; var isArray2; var keyAttrs; var isArray3; var maxStringLength; var value5; var value6; var value7; var value8; var value9; var _htmlElementAsString_59424Binding; var value10; var value11; var value12; var length; var value13; var value14; var value15; var value16; var push; var parentNode; var value17; var value18; var value19; var value20; var value21; var value22; var value23; var value24; var value25; var value26; var reverse; var join; var error; let value = a0; let r2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (!value) { return ''; } try { items2 = []; } catch (error) { return ''; } const value3 = 0; try { Array = global.Array; } catch (error) { return ''; } try { isArray = Array.isArray; } catch (error) { return ''; } try { isArray2 = Reflect.apply(isArray, Array, [r2]); } catch (error) { return ''; } if (isArray2) { r1 = r2; } else { try { keyAttrs = r2.keyAttrs; } catch (error) { return ''; } r1 = keyAttrs; } try { Array = global.Array; } catch (error) { return ''; } try { isArray = Array.isArray; } catch (error) { return ''; } try { isArray3 = Reflect.apply(isArray, Array, [r2]); } catch (error) { return ''; } reducibleJoin24: while (true) { if (isArray3) { r2 = !isArray3; break reducibleJoin24; } try { maxStringLength = r2.maxStringLength; } catch (error) { return ''; } r2 = maxStringLength; break reducibleJoin24; } reducibleJoin26: while (true) { if (r2) { r12 = r2; break reducibleJoin26; } value5 = 80; r12 = value5; break reducibleJoin26; } reducibleJoin79: while (true) { if (!value) { break reducibleJoin79; } try { value6 = typeof value3 === 'bigint' ? value3 : +value3; } catch (error) { return ''; } try { value7 = typeof value6 === 'bigint' ? value6 + 1n : +value6 + 1; } catch (error) { return ''; } try { value8 = value6 < 5; } catch (error) { return ''; } if (!value8) { break reducibleJoin79; } value9 = environment; try { _htmlElementAsString_59424Binding = _htmlElementAsString_59424; } catch (error) { return ''; } try { value10 = _htmlElementAsString_59424Binding(value, r1); } catch (error) { return ''; } try { value11 = value10 === 'html'; } catch (error) { return ''; } if (value11) { break reducibleJoin79; } try { value12 = value7 > 1; } catch (error) { return ''; } if (value12) { try { length = items2.length; } catch (error) { return ''; } try { value13 = 3 * length; } catch (error) { return ''; } try { value14 = value3 + value13; } catch (error) { return ''; } try { length = value10.length; } catch (error) { return ''; } try { value15 = value14 + length; } catch (error) { return ''; } try { value16 = value15 >= r12; } catch (error) { return ''; } if (value16) { break reducibleJoin79; } r9 = value10; r10 = value; r11 = value7; r122 = value3; } else { r9 = value10; r10 = value; r11 = value7; r122 = value3; } reducibleLoop49: while (true) { try { push = items2.push; } catch (error) { return ''; } try { Reflect.apply(push, items2, [r9]); } catch (error) { return ''; } try { length = r9.length; } catch (error) { return ''; } try { value = r122 + length; } catch (error) { return ''; } try { parentNode = r10.parentNode; } catch (error) { return ''; } if (parentNode) { try { value17 = typeof r11 === 'bigint' ? r11 : +r11; } catch (error) { return ''; } try { value18 = typeof value17 === 'bigint' ? value17 + 1n : +value17 + 1; } catch (error) { return ''; } try { value19 = value17 < 5; } catch (error) { return ''; } if (value19) { try { _htmlElementAsString_59424Binding = _htmlElementAsString_59424; } catch (error) { return ''; } try { value20 = _htmlElementAsString_59424Binding(parentNode, r1); } catch (error) { return ''; } try { value21 = value20 === 'html'; } catch (error) { return ''; } if (value21) { break reducibleJoin79; } try { value22 = value18 > 1; } catch (error) { return ''; } if (value22) { try { length = items2.length; } catch (error) { return ''; } try { value23 = 3 * length; } catch (error) { return ''; } try { value24 = value + value23; } catch (error) { return ''; } try { length = value20.length; } catch (error) { return ''; } try { value25 = value24 + length; } catch (error) { return ''; } try { value26 = value25 >= r12; } catch (error) { return ''; } if (value26) { break reducibleJoin79; } r9 = value20; r10 = parentNode; r11 = value18; r122 = value; continue reducibleLoop49; } r9 = value20; r10 = parentNode; r11 = value18; r122 = value; continue reducibleLoop49; } break reducibleJoin79; } break reducibleJoin79; } } try { reverse = items2.reverse; } catch (error) { return ''; } try { value = Reflect.apply(reverse, items2, []); } catch (error) { return ''; } try { join = value.join; } catch (error) { return ''; } try { value = Reflect.apply(join, value, [' > ']); } catch (error) { return ''; } return value; } } global.__d(_fun59423, 7377, [7370, 7376]) /* metro module 7377, dependencies: [7370, 7376] */;