/* Metro module 3981; source: unknown; dependencies: [31, 3977, 1237, 1238, 3982, 3984, 3986, 1231] */ function _fun32654(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:6, offset: 0x0101b155, size: 665 bytes, params: 8, frame: 25 let value = global; let env0_0 = require; let closure = function(a0) { var value = a0; return value && (typeof value !== 'object' ? value : 'default' in value ? value.default : value); }; const _extends_32656 = function() { var r3; r3 = global.Object.assign || _fun32657; env0_18 = r3; return r3.apply(this, arguments); }; const _inheritsLoose_32658 = function(a0, a1) { var Object = global.Object; a0.prototype = Object.create(a1.prototype); var _setPrototypeOf_32659Binding = _setPrototypeOf_32659; a0.prototype.constructor = a0; _setPrototypeOf_32659Binding(a0, a1); }; const _setPrototypeOf_32659 = function(a0, a1) { var r3; r3 = global.Object.setPrototypeOf || _fun32660; env0_20 = r3; return r3(a0, a1); }; const _objectWithoutPropertiesLoose_32661 = function(a0, a1) { var r2; var value3; if (a0 == null) { return {}; } var object = {}; var property = global.Object; var value = property.keys(a0); var value2 = 0; if (value2 < value.length) { r2 = value2; while (true) { property = value[r2]; if (!(value2 <= a1.indexOf(property))) { object[property] = a0[property]; } value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value3 < value.length) { r2 = value3; continue; } break; } } return object; }; const closure2 = generatePath; const closure3 = matchPath; const addLeadingSlash = function(a0) { var value = a0; return value.charAt(0) === '/' ? value : '/' + value; }; const staticHandler = function(a0) { return _fun32670; }; const noop_32671 = function() { }; const closure4 = useLocation; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value2 = closure(require(31) /* metro dependency 31 */); const env0_3 = closure(require(3977) /* metro dependency 3977 */); require(1237) /* metro dependency 1237 */; const env0_4 = closure(require(1238) /* metro dependency 1238 */); const env0_5 = closure(require(3982) /* metro dependency 3982 */); require(3984) /* metro dependency 3984 */; const env0_6 = closure(require(3986) /* metro dependency 3986 */); let r6 = typeof global.globalThis !== 'undefined' ? global.globalThis : typeof global.window !== 'undefined' ? global.window : value !== undefined ? value : {}; r6 = value2.createContext || createReactContext; closure = createNamedContext; value = closure('Router-History'); let value3 = closure('Router'); let Component = value2.Component; const value4 = ((a0) => { var env0_0 = a0; var closure = _fun32696; var env0_1 = closure; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; closure.computeRootMatch = _fun32698; var prototype = closure.prototype; prototype.componentDidMount = _fun32699; prototype.componentWillUnmount = _fun32701; prototype.render = _fun32702; return closure; })(Component); Component = value2.Component; const value5 = ((a0) => { var env0_0 = a0; var closure = _fun32704; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = _fun32705; return closure; })(Component); Component = value2.Component; const env0_12 = ((a0) => { var env0_0 = a0; var closure = _fun32707; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; var prototype = closure.prototype; prototype.componentDidMount = _fun32708; prototype.componentDidUpdate = _fun32709; prototype.componentWillUnmount = _fun32710; prototype.render = _fun32711; return closure; })(Component); const env0_13 = {}; const env0_15 = {}; Component = value2.Component; const value6 = ((a0) => { var env0_0 = a0; var closure = _fun32713; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = _fun32714; return closure; })(Component); Component = value2.Component; const value7 = ((a0) => { var env0_0 = a0; var closure = _fun32717; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; var prototype = closure.prototype; prototype.navigateTo = _fun32722; prototype.render = _fun32723; return closure; })(Component); Component = value2.Component; const value8 = ((a0) => { var env0_0 = a0; var closure = _fun32726; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = _fun32727; return closure; })(Component); const env0_17 = value2.useContext; exports.MemoryRouter = value5; exports.Prompt = Prompt; exports.Redirect = Redirect; exports.Route = value6; exports.Router = value4; exports.StaticRouter = value7; exports.Switch = value8; exports.__HistoryContext = value; exports.__RouterContext = value3; exports.generatePath = closure2; exports.matchPath = closure3; exports.useHistory = useHistory; exports.useLocation = closure4; exports.useParams = useParams; exports.useRouteMatch = useRouteMatch; exports.withRouter = withRouter; } function _extends_32656() { // fn#32656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:351, offset: 0x0101b3ee, size: 53 bytes, params: 1, frame: 13 const Object = global.Object; return (Object.assign || (function(a0) { var r3; var r8; var propertyName; var propertyName2; var hasOwnProperty; var value = 1; if (value < arguments.length) { r3 = value; while (true) { value = arguments[r3]; for (propertyName in value) { hasOwnProperty = global.Object.prototype.hasOwnProperty; if (!hasOwnProperty.call(value, propertyName)) { r8 = propertyName2; continue; } a0[propertyName] = value[propertyName]; r8 = propertyName2; } value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value < arguments.length) { r3 = value; continue; } break; } } return a0; })).apply(this, arguments); } function _setPrototypeOf_32659(a0, a1) { // fn#32659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:685, offset: 0x0101b462, size: 47 bytes, params: 3, frame: 13 const Object = global.Object; return (Object.setPrototypeOf || (function(a0, a1) { a0.__proto__ = a1; return a0; }))(a0, a1); } function generatePath(a0, a1) { // fn#32662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:5053, offset: 0x0101b491, size: 128 bytes, params: 3, frame: 18 var r2; var r0; var binding; var value3; const value = a0; const value2 = a1; const r5 = value !== undefined ? value : '/'; if (r5 === '/') { r0 = r5; } else { if (env0_13[r5]) { r2 = env0_13[r5]; } else { binding = env0_5; value3 = binding.compile(r5); if (env0_14 < 10000) { env0_13[r5] = value3; binding = env0_14; env0_14 = typeof binding === 'bigint' ? binding + 1n : +binding + 1; r2 = value3; } else { r2 = value3; } } r0 = r2(value2 !== undefined ? value2 : {}, {pretty: true}); } return r0; } function matchPath(a0, a1) { // fn#32663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:5260, offset: 0x0101b511, size: 172 bytes, params: 3, frame: 16 const value = a1; const env0_0 = a0; let r4 = value !== undefined ? value : {}; const r2 = typeof r4 !== 'string' && !global.Array.isArray(r4) ? r4 : {path: r4}; const path = r2.path; const exact = r2.exact; r4 = exact !== undefined && exact; const strict = r2.strict; r4 = strict !== undefined && strict; const sensitive = r2.sensitive; const env0_3 = sensitive !== undefined && sensitive; return [].concat(path).reduce(_fun32664, null); } function stripBasename_32667(a0, a1) { // fn#32667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:6689, offset: 0x0101b729, size: 95 bytes, params: 3, frame: 18 var r0; var value3; var pathname; var _extends_32656Binding; let value = a1; if (a0) { value3 = addLeadingSlash(a0); pathname = value.pathname; if (pathname.indexOf(value3) !== 0) { r0 = value; } else { _extends_32656Binding = _extends_32656; pathname = value.pathname; value = _extends_32656Binding({}, value, {pathname: pathname.substr(value3.length)}); r0 = value; } return r0; } return value; } function createURL(a0) { // fn#32668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:6846, offset: 0x0101b788, size: 55 bytes, params: 2, frame: 13 var r0; let value = a0; if (typeof value === 'string') { r0 = value; } else { value = (require(1231) /* metro dependency 1231 */).createPath(value); r0 = value; } return r0; } function staticHandler(a0) { // fn#32669, offset: 0x0101b7bf, size: 9 bytes, params: 2, frame: 1 return _fun32670; } function useLocation() { // fn#32672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:8772, offset: 0x0101b7da, size: 25 bytes, params: 1, frame: 11 return useContext(env0_10).location; } function createReactContext(a0, a1) { // fn#32673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:1101, offset: 0x0101b7f3, size: 167 bytes, params: 3, frame: 16 let env0_0 = a0; const env0_1 = a1; let binding = env0_7; let __global_unique_id__ = binding.__global_unique_id__; __global_unique_id__ = !__global_unique_id__ ? 0 : __global_unique_id__; const value3 = __global_unique_id__ + 1; binding.__global_unique_id__ = value3; const value4 = '__create-react-context-' + value3 + '__'; binding = value4; let Component = binding.Component; const value5 = ((a0) => { var env0_0 = a0; var closure = _fun32675; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; var prototype = closure.prototype; prototype.getChildContext = _fun32683; prototype.componentWillReceiveProps = _fun32684; prototype.render = _fun32685; return closure; })(Component); const binding2 = env0_3; value5.childContextTypes = {[value4]: binding2.object.isRequired}; Component = binding.Component; const value = ((a0) => { var env0_0 = a0; var closure = _fun32687; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; var prototype = closure.prototype; prototype.componentWillReceiveProps = _fun32689; prototype.componentDidMount = _fun32690; prototype.componentWillUnmount = _fun32691; prototype.getValue = _fun32692; prototype.render = _fun32693; return closure; })(Component); value.contextTypes = {[value4]: binding2.object}; return {Provider: value5, Consumer: value}; } function createNamedContext(a0) { // fn#32694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:3077, offset: 0x0101bd0b, size: 24 bytes, params: 2, frame: 9 const value = env0_8(); value.displayName = a0; return value; } function _fun32695(a0) { // fn#32695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:3182, offset: 0x0101bd23, size: 84 bytes, params: 2, frame: 14 let env0_0 = a0; const closure = t_32696; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; closure.computeRootMatch = function(a0) { return {'path': '/', 'url': '/', params: {}, isExact: a0 === '/'}; }; const prototype = closure.prototype; prototype.componentDidMount = function() { var env0_0 = this; this._isMounted = true; if (this.unlisten) { this.unlisten(); } if (!this.props.staticContext) { this.unlisten = this.props.history.listen(_fun32700); } if (this._pendingLocation) { this.setState({location: this._pendingLocation}); } }; prototype.componentWillUnmount = function() { if (this.unlisten) { this.unlisten(); this._isMounted = false; this._pendingLocation = null; } }; prototype.render = render_32702; return closure; } function _fun32703(a0) { // fn#32703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:4260, offset: 0x0101bfab, size: 47 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = t_32704; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = render_32705; return closure; } function _fun32706(a0) { // fn#32706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:4610, offset: 0x0101c0b0, size: 80 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = e_32707; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; const prototype = closure.prototype; prototype.componentDidMount = function() { if (this.props.onMount) { this.props.onMount.call(this, this); } }; prototype.componentDidUpdate = function(a0) { if (this.props.onUpdate) { this.props.onUpdate.call(this, this, a0); } }; prototype.componentWillUnmount = function() { if (this.props.onUnmount) { this.props.onUnmount.call(this, this); } }; prototype.render = function() { return null; }; return closure; } function _fun32712(a0) { // fn#32712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:5964, offset: 0x0101c1a6, size: 47 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = e_32713; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = render_32714; return closure; } function _fun32716(a0) { // fn#32716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:6992, offset: 0x0101c36e, size: 58 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = t_32717; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; const prototype = closure.prototype; prototype.navigateTo = navigateTo; prototype.render = render_32723; return closure; } function _fun32725(a0) { // fn#32725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:8255, offset: 0x0101c654, size: 47 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = e_32726; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = render_32727; return closure; } function Prompt({message, when}) { // fn#32730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:8844, offset: 0x0101c7cc, size: 75 bytes, params: 2, frame: 15 const env0_1 = when === undefined || when; const binding = env0_2; const createElement = binding.createElement; const Consumer = env0_10.Consumer; return Reflect.apply(createElement, binding, [Consumer, null, _fun32731]); } function Redirect({computedMatch, to, push}) { // fn#32735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:9242, offset: 0x0101c904, size: 84 bytes, params: 2, frame: 15 const binding = push !== undefined && push; const createElement = binding.createElement; const Consumer = env0_10.Consumer; return Reflect.apply(createElement, binding, [Consumer, null, _fun32736]); } function useHistory() { // fn#32739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:9946, offset: 0x0101cada, size: 20 bytes, params: 1, frame: 11 return useContext(env0_9); } function useParams() { // fn#32740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:10021, offset: 0x0101caee, size: 39 bytes, params: 1, frame: 11 const match = useContext(env0_10).match; return match ? match.params : {}; } function useRouteMatch(a0) { // fn#32741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:10098, offset: 0x0101cb15, size: 56 bytes, params: 2, frame: 15 return a0 ? matchPath(useLocation().pathname, a0) : useContext(env0_10).match; } function withRouter(a0) { // fn#32742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:10207, offset: 0x0101cb4d, size: 78 bytes, params: 2, frame: 13 const env0_0 = a0; const closure = withRouterT; closure.displayName = 'withRouter(' + (a0.displayName || a0.name) + ')'; closure.WrappedComponent = a0; return env0_6(closure, a0); } function _fun32664(a0, a1) { // fn#32664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:5482, offset: 0x0101b5bd, size: 333 bytes, params: 3, frame: 21 var environment; var r4; var r2; var r1; var object4; var value; var value4; var value5; var property; var binding; var object5; var items2; var object6; var regexp; var keys; var value6; var value7; if (a1) { if (a0) { return a0; } object4 = {}; object4.end = env0_1; object4.strict = env0_2; object4.sensitive = env0_3; value4 = String(object4.end) + object4.strict + object4.sensitive; value5 = environment.__proto__; property = env1_15[value4]; if (property) { r4 = property; } else { binding = env1_15; object5 = {}; binding[value4] = object5; r4 = object5; } if (r4[a1]) { r2 = r4[a1]; } else { items2 = []; object6 = {regexp: env1_5(a1, items2, object4), keys: items2}; if (env1_16 < 10000) { r4[a1] = object6; binding = env1_16; env1_16 = typeof binding === 'bigint' ? binding + 1n : +binding + 1; r2 = object6; } else { r2 = object6; } } regexp = r2.regexp; keys = r2.keys; value6 = regexp.exec(env0_0); if (value6) { property = value6[0]; var env0_0 = value6.slice(1); value7 = env0_0 === property; if (env0_1) { value = null; if (value7) { object4 = {path: a1}; value = '/'; object4.url = value !== a1 ? property : property === '' ? value : property; object4.isExact = value7; object4.params = keys.reduce(_fun32665, {}); r1 = object4; } else { r1 = value; } } else { object4 = {path: a1}; value = '/'; object4.url = value !== a1 ? property : property === '' ? value : property; object4.isExact = value7; object4.params = keys.reduce(_fun32665, {}); r1 = object4; } return r1; } } else if (a1 === '') { if (a0) { return a0; } object4 = {}; object4.end = env0_1; object4.strict = env0_2; object4.sensitive = env0_3; value4 = String(object4.end) + object4.strict + object4.sensitive; value5 = environment.__proto__; property = env1_15[value4]; if (property) { r4 = property; } else { binding = env1_15; object5 = {}; binding[value4] = object5; r4 = object5; } if (r4[a1]) { r2 = r4[a1]; } else { items2 = []; object6 = {regexp: env1_5(a1, items2, object4), keys: items2}; if (env1_16 < 10000) { r4[a1] = object6; binding = env1_16; env1_16 = typeof binding === 'bigint' ? binding + 1n : +binding + 1; r2 = object6; } else { r2 = object6; } } regexp = r2.regexp; keys = r2.keys; value6 = regexp.exec(env0_0); if (value6) { property = value6[0]; var env0_0 = value6.slice(1); value7 = env0_0 === property; if (env0_1) { value = null; if (value7) { object4 = {path: a1}; value = '/'; object4.url = value !== a1 ? property : property === '' ? value : property; object4.isExact = value7; object4.params = keys.reduce(_fun32665, {}); r1 = object4; } else { r1 = value; } } else { object4 = {path: a1}; value = '/'; object4.url = value !== a1 ? property : property === '' ? value : property; object4.isExact = value7; object4.params = keys.reduce(_fun32665, {}); r1 = object4; } return r1; } return null; } return null; } function _fun32674(a0) { // fn#32674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:1256, offset: 0x0101b89a, size: 69 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = t_32675; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; const prototype = closure.prototype; prototype.getChildContext = getChildContext; prototype.componentWillReceiveProps = componentWillReceiveProps; prototype.render = function() { return this.props.children; }; return closure; } function _fun32686(a0) { // fn#32686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:2155, offset: 0x0101bab2, size: 91 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = t_32687; _inheritsLoose_32658(closure, a0) /* class inheritance: closure extends a0 */; const prototype = closure.prototype; prototype.componentWillReceiveProps = function({observedBits}) { this.observedBits = observedBits ?? 1073741823; }; prototype.componentDidMount = componentDidMount_32690; prototype.componentWillUnmount = componentWillUnmount_32691; prototype.getValue = getValue; prototype.render = function() { var property = this.props.children; var Array = global.Array; return (Array.isArray(property) ? property[0] : property)(this.state.value); }; return closure; } function t_32696(a0) { // fn#32696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:3194, offset: 0x0101bd77, size: 114 bytes, params: 2, frame: 14 const value = this; const r0 = env0_0.call(value, a0) || value; r0.state = {location: a0.history.location}; r0._isMounted = false; r0._pendingLocation = null; if (!a0.staticContext) { r0.unlisten = a0.history.listen(_fun32697); } return r0; } function componentDidMount_32699() { // fn#32699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:3555, offset: 0x0101be24, size: 119 bytes, params: 1, frame: 12 var history; this._isMounted = true; if (this.unlisten) { this.unlisten(); } if (!this.props.staticContext) { history = this.props.history; this.unlisten = history.listen(_fun32700); } if (this._pendingLocation) { this.setState({location: this._pendingLocation}); } } function render_32702() { // fn#32702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:3945, offset: 0x0101bef1, size: 186 bytes, params: 1, frame: 20 const value = environment.__proto__; const binding = env1_2; const createElement = binding.createElement; const Provider = env1_10.Provider; const t_32696Binding = t_32696; const createElement2 = binding.createElement; const Provider2 = env1_9.Provider; let children = this.props.children; children = !children ? null : children; return Reflect.apply(createElement, binding, [Provider, {value: {history: this.props.history, location: this.state.location, match: t_32696Binding.computeRootMatch(this.state.location.pathname), staticContext: this.props.staticContext}}, Reflect.apply(createElement2, binding, [Provider2, {children: children, value: this.props.history}])]); } function t_32704() { // fn#32704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:4272, offset: 0x0101bfda, size: 159 bytes, params: 1, frame: 17 var r0; var value6; let value = this; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value5 = 0; if (value5 < length) { r0 = value5; reducibleLoop1: while (true) { array[r0] = arguments[r0]; value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value6 < length) { r0 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const binding = env0_0; const call = binding.call; const apply = call.apply; const items2 = [value]; r0 = Reflect.apply(apply, call, [binding, items2.concat(array)]) || value; value = environment.__proto__; value = require(1231) /* metro dependency 1231 */; r0.history = value.createMemoryHistory(r0.props); return r0; } function render_32705() { // fn#32705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:4502, offset: 0x0101c079, size: 55 bytes, params: 1, frame: 15 const binding = env1_2; return binding.createElement(env1_11, {history: this.history, children: this.props.children}); } function e_32707() { // fn#32707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:4622, offset: 0x0101c100, size: 33 bytes, params: 1, frame: 14 const value = this; return env0_0.apply(value, arguments) || value; } function render_32714() { // fn#32714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:6072, offset: 0x0101c1d5, size: 48 bytes, params: 1, frame: 15 const binding = env1_2; const createElement = binding.createElement; const Consumer = env1_10.Consumer; return Reflect.apply(createElement, binding, [Consumer, null, _fun32715]); } function t_32717() { // fn#32717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:7004, offset: 0x0101c3a8, size: 162 bytes, params: 1, frame: 17 var r0; var value6; const value = this; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value5 = 0; if (value5 < length) { r0 = value5; reducibleLoop1: while (true) { array[r0] = arguments[r0]; value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value6 < length) { r0 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const binding = env0_0; const call = binding.call; const apply = call.apply; const items2 = [value]; r0 = Reflect.apply(apply, call, [binding, items2.concat(array)]) || value; r0.handlePush = handlePush; r0.handleReplace = handleReplace; r0.handleListen = function() { return noop_32671; }; r0.handleBlock = function() { return noop_32671; }; return r0; } function navigateTo(a0, a1) { // fn#32722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:7393, offset: 0x0101c484, size: 157 bytes, params: 3, frame: 19 var r3; var object2; var _extends_32656Binding; const props = this.props; const basename = props.basename; const r8 = basename === undefined ? '' : basename; const context = props.context; const r2 = context !== undefined ? context : {}; r2.action = a1; value = environment.__proto__; const location = (require(1231) /* metro dependency 1231 */).createLocation(a0); if (r8) { _extends_32656Binding = _extends_32656; object2 = {}; object2.pathname = addLeadingSlash(r8) + location.pathname; r3 = _extends_32656Binding({}, location, object2); } else { r3 = location; } r2.location = r3; r2.url = createURL(r2.location); } function render_32723() { // fn#32723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:7669, offset: 0x0101c521, size: 268 bytes, params: 1, frame: 22 var environment; const props = this.props; const basename = props.basename; const r5 = basename === undefined ? '' : basename; const context = props.context; const r0 = context !== undefined ? context : {}; const location = props.location; const r10 = location === undefined ? '/' : location; value = environment.__proto__; const value2 = _objectWithoutPropertiesLoose_32661(props, ['basename', 'context', 'location']); const object2 = {createHref: createHref, action: 'POP'}; const stripBasename_32667Binding = stripBasename_32667; const moduleValue = require(1231) /* metro dependency 1231 */; object2.location = stripBasename_32667Binding(r5, moduleValue.createLocation(r10)); object2.push = this.handlePush; object2.replace = this.handleReplace; const staticHandlerBinding = staticHandler; object2.go = staticHandlerBinding(); object2.goBack = staticHandlerBinding(); object2.goForward = staticHandlerBinding(); object2.listen = this.handleListen; object2.block = this.handleBlock; const binding = env1_2; return binding.createElement(env1_11, _extends_32656({}, value2, {history: object2, staticContext: r0})); } function render_32727() { // fn#32727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:8363, offset: 0x0101c683, size: 48 bytes, params: 1, frame: 15 const binding = env1_2; const createElement = binding.createElement; const Consumer = env1_10.Consumer; return Reflect.apply(createElement, binding, [Consumer, null, _fun32728]); } function _fun32731(a0) { // fn#32731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:8944, offset: 0x0101c817, size: 128 bytes, params: 2, frame: 16 var environment; var value; var block; var value2; var binding; if (!a0) { value = environment.__proto__; env1_4(false); } if (env0_1) { if (a0.staticContext) { return null; } block = a0.history.block; value2 = environment.__proto__; binding = env1_2; return binding.createElement(env1_12, {onMount: onMount, onUpdate: onUpdate, onUnmount: function(a0) { a0.release(); }, message: message}); } return null; } function _fun32736(a0) { // fn#32736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:9357, offset: 0x0101c958, size: 272 bytes, params: 2, frame: 25 var environment; var r9; var r1; var r0; var value; var _extends_32656Binding; var object2; var binding; if (!a0) { value = environment.__proto__; env1_4(false); } const history = a0.history; const staticContext = a0.staticContext; const r3 = env0_2 ? history.push : history.replace; const moduleValue = require(1231) /* metro dependency 1231 */; const createLocation = moduleValue.createLocation; const computedMatchBinding = computedMatch; let toBinding = to; if (computedMatchBinding) { if (typeof toBinding === 'string') { r9 = generatePath(to, computedMatch.params); } else { _extends_32656Binding = _extends_32656; toBinding = to; object2 = {}; object2.pathname = generatePath(toBinding.pathname, computedMatch.params); r9 = _extends_32656Binding({}, toBinding, object2); } r1 = r9; } else { r1 = toBinding; } if (staticContext) { r3(Reflect.apply(createLocation, moduleValue, [r1])); r0 = null; } else { binding = env1_2; r0 = binding.createElement(env1_12, {onMount: onMount_32737, onUpdate: onUpdate_32738, to: to}); } return r0; } function withRouterT(a0) { // fn#32743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:10230, owner: withRouter.t, offset: 0x0101cb9b, size: 82 bytes, params: 2, frame: 16 const env0_0 = a0.wrappedComponentRef; const env0_1 = _objectWithoutPropertiesLoose_32661(a0, ['wrappedComponentRef']); const binding = env1_2; const createElement = binding.createElement; const Consumer = env1_10.Consumer; return Reflect.apply(createElement, binding, [Consumer, null, _fun32744]); } function _fun32665(a0, {name}, a2) { // fn#32665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:5903, offset: 0x0101b70a, size: 31 bytes, params: 4, frame: 4 a0[name] = env0_0[a2]; return a0; } function t_32675() { // fn#32675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:1268, offset: 0x0101b8df, size: 142 bytes, params: 1, frame: 17 var r0; var value6; const value = this; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value5 = 0; if (value5 < length) { r0 = value5; reducibleLoop1: while (true) { array[r0] = arguments[r0]; value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value6 < length) { r0 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const binding = env0_0; const call = binding.call; const apply = call.apply; const items2 = [value]; r0 = Reflect.apply(apply, call, [binding, items2.concat(array)]) || value; r0.emitter = ((a0) => { var env0_0 = a0; var env0_1 = []; return {on: _fun32677, off: _fun32678, get: _fun32680, set: _fun32681}; })(r0.props.value); return r0; } function getChildContext() { // fn#32683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:1727, offset: 0x0101b9f9, size: 24 bytes, params: 1, frame: 3 return {[env1_2]: this.emitter}; } function componentWillReceiveProps(a0) { // fn#32684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:1804, offset: 0x0101ba11, size: 161 bytes, params: 2, frame: 17 var r2; var value3; var value9; var emitter; let value = this.props.value; if (value !== a0.value) { value = this.props.value; value3 = a0.value; r2 = value === value3 ? value !== 0 || 1 / value === 1 / value3 : value != value && value3 != value3; if (!r2) { value9 = environment.__proto__; if (typeof require !== 'function') { r2 = 1073741823; } else { value = require(value, value3); r2 = value; } value = r2 | 0; if (value !== 0) { emitter = this.emitter; emitter.set(a0.value, value); } } } } function t_32687() { // fn#32687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:2167, offset: 0x0101bb0d, size: 159 bytes, params: 1, frame: 18 var r0; var value6; const value = this; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value5 = 0; if (value5 < length) { r0 = value5; reducibleLoop1: while (true) { array[r0] = arguments[r0]; value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value6 < length) { r0 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const binding = env0_0; const call = binding.call; const apply = call.apply; const items = [value]; r0 = Reflect.apply(apply, call, [binding, items.concat(array)]) || value; r0.observedBits = undefined; r0.state = {value: r0.getValue()}; r0.onUpdate = onUpdate_32688; return r0; } function componentDidMount_32690() { // fn#32690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:2588, offset: 0x0101bc0c, size: 85 bytes, params: 1, frame: 12 var property; const context = this.context; const value = environment.__proto__; if (context[env1_2]) { property = this.context[env1_2]; property.on(this.onUpdate); } let observedBits = this.props.observedBits; observedBits = observedBits ?? 1073741823; this.observedBits = observedBits; } function componentWillUnmount_32691() { // fn#32691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:2734, offset: 0x0101bc61, size: 56 bytes, params: 1, frame: 12 var property; if (this.context[env1_2]) { property = this.context[env1_2]; property.off(this.onUpdate); } } function getValue() { // fn#32692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:2809, offset: 0x0101bc99, size: 52 bytes, params: 1, frame: 11 const context = this.context; const value = environment.__proto__; return context[env1_2] ? this.context[env1_2].get() : env1_0; } function _fun32697(a0) { // fn#32697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:3368, offset: 0x0101bde9, size: 20 bytes, params: 2, frame: 2 env0_0._pendingLocation = a0; } function _fun32700(a0) { // fn#32700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:3695, offset: 0x0101be9b, size: 44 bytes, params: 2, frame: 12 if (env0_0._isMounted) { env0_0.setState({location: a0}); } } function _fun32715(a0) { // fn#32715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:6134, offset: 0x0101c205, size: 361 bytes, params: 2, frame: 23 var r0; var value; if (!a0) { value = environment.__proto__.__proto__; env2_4(false); } let props = env0_0.props; let location = props.location; location = !location ? a0.location : location; const _extends_32656Binding = _extends_32656; const object2 = {location: location}; const computedMatch = env0_0.props.computedMatch; props = env0_0.props; object2.match = computedMatch ? props.computedMatch : props.path ? matchPath(location.pathname, env0_0.props) : a0.match; const value4 = _extends_32656Binding({}, a0, object2); props = env0_0.props; const children = props.children; const component = props.component; const render = props.render; const Array = global.Array; value = Array.isArray(children); if (value) { value = env2_2.Children.count(children); value = value === 0; r0 = value; } else { r0 = value; } const r7 = r0 ? null : children; const binding = env2_2; const createElement = binding.createElement; const Provider = env2_10.Provider; return Reflect.apply(createElement, binding, [Provider, {value: value4}, value4.match ? r7 ? typeof r7 !== 'function' ? r7 : r7(value4) : component ? env2_2.createElement(component, value4) : render ? render(value4) : null : typeof r7 !== 'function' ? null : r7(value4)]); } function handlePush(a0) { // fn#32718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:7151, owner: t_32717.handlePush, offset: 0x0101c44a, size: 28 bytes, params: 2, frame: 13 return env0_0.navigateTo(a0, 'PUSH'); } function handleReplace(a0) { // fn#32719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:7210, owner: t_32717.handleReplace, offset: 0x0101c466, size: 30 bytes, params: 2, frame: 13 return env0_0.navigateTo(a0, 'REPLACE'); } function createHref(a0) { // fn#32724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:7873, owner: render_32723.createHref, offset: 0x0101c62d, size: 39 bytes, params: 2, frame: 13 return addLeadingSlash(env0_0 + createURL(a0)); } function _fun32728(a0) { // fn#32728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:8425, offset: 0x0101c6b3, size: 146 bytes, params: 2, frame: 16 var environment; var value; const env0_0 = a0; if (!a0) { value = environment.__proto__.__proto__; env2_4(false); } let location = env0_0.props.location; location = !location ? a0.location : location; const Children = env2_2.Children; Children.forEach(env0_0.props.children, _fun32729); return env0_2 ? env2_2.cloneElement(env0_1, {location: location, computedMatch: env0_2}) : null; } function onMount(a0) { // fn#32732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:9056, offset: 0x0101c897, size: 32 bytes, params: 2, frame: 11 const blockBinding = block; const value = environment.__proto__; a0.release = blockBinding(message); } function onUpdate(a0, {message}) { // fn#32733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:9101, offset: 0x0101c8b7, size: 60 bytes, params: 3, frame: 12 if (message !== message) { a0.release(); a0.release = block(message); } } function onUpdate_32738(a0, {to}) { // fn#32738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:9650, offset: 0x0101ca68, size: 114 bytes, params: 3, frame: 19 const location = (require(1231) /* metro dependency 1231 */).createLocation(to); const moduleValue2 = require(1231) /* metro dependency 1231 */; const locationsAreEqual = moduleValue2.locationsAreEqual; const _extends_32656Binding = _extends_32656; const binding = env0_1; const object2 = {}; object2.key = location.key; if (!Reflect.apply(locationsAreEqual, moduleValue2, [location, _extends_32656Binding({}, binding, object2)])) { env0_0(env0_1); } } function _fun32744(a0) { // fn#32744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:10371, offset: 0x0101cbed, size: 85 bytes, params: 2, frame: 20 var value; if (!a0) { value = environment.__proto__.__proto__; env2_4(false); } const binding = env2_2; return binding.createElement(env1_0, _extends_32656({}, env0_1, a0, {ref: wrappedComponentRef})); } function createEventEmitter(a0) { // fn#32676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:1412, owner: t_32675.createEventEmitter, offset: 0x0101b96d, size: 59 bytes, params: 2, frame: 3 const env0_0 = a0; const env0_1 = []; return {on: on_32677, off: off_32678, get: get_32680, set: set_32681}; } function t_32687OnUpdate(a0, a1) { // fn#32688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:2363, owner: t_32687.onUpdate, offset: 0x0101bbac, size: 62 bytes, params: 3, frame: 13 var binding; var setState; var object2; if (env0_0.observedBits & a1) { binding = env0_0; setState = binding.setState; object2 = {}; object2.value = env0_0.getValue(); Reflect.apply(setState, binding, [object2]); } } function _fun32729(a0) { // fn#32729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:8529, offset: 0x0101c745, size: 135 bytes, params: 2, frame: 19 var r2; var value2; var binding; var match; var value3; if (env0_2 == null) { value2 = environment.__proto__.__proto__.__proto__; binding = env3_2; if (binding.isValidElement(a0)) { env0_1 = a0; r2 = a0.props.path || a0.props.from; if (r2) { value3 = matchPath(location.pathname, _extends_32656({}, a0.props, {path: r2})); } else { match = env0_0.match; } } } } function createEventEmitterOff(a0) { // fn#32678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:1492, owner: t_32675.createEventEmitter.off, offset: 0x0101b9a8, size: 39 bytes, params: 2, frame: 12 const env0_0 = a0; env0_1 = env0_1.filter(_fun32679); } function createEventEmitterSet(a0, a1) { // fn#32681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4130:1582, owner: t_32675.createEventEmitter.set, offset: 0x0101b9cf, size: 42 bytes, params: 3, frame: 11 let env0_0 = a1; env0_0 = a0; env0_1.forEach(_fun32682); }