Files
2026-07-28 01:06:53 +03:00

557 lines
24 KiB
JavaScript

/* Metro module 3976; source: unknown; dependencies: [31, 3977, 1237, 1238, 1231, 3980] */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
import * as Module01231Module from './module-01231.js'; /* Metro dependency 1231 */
import * as Module01237Module from './module-01237.js'; /* Metro dependency 1237 */
import * as Module01238Module from './module-01238.js'; /* Metro dependency 1238 */
import * as Module03977Module from './module-03977.js'; /* Metro dependency 3977 */
import * as Module03980Module from './module-03980.js'; /* Metro dependency 3980 */
function _fun32604(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:6, offset: 0x0101a196, size: 857 bytes, params: 8, frame: 23
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_32606 = function() {
var r3;
r3 = global.Object.assign || _fun32607;
env0_12 = r3;
return r3.apply(this, arguments);
};
const _inheritsLoose = function(a0, a1) {
var Object = global.Object;
a0.prototype = Object.create(a1.prototype);
var _setPrototypeOf_32609Binding = _setPrototypeOf_32609;
a0.prototype.constructor = a0;
_setPrototypeOf_32609Binding(a0, a1);
};
const _setPrototypeOf_32609 = function(a0, a1) {
var r3;
r3 = global.Object.setPrototypeOf || _fun32610;
env0_14 = r3;
return r3(a0, a1);
};
const _objectWithoutPropertiesLoose = 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;
};
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = closure(ReactModule);
Module03977Module;
Module01237Module;
const env0_3 = closure(Module01238Module);
let Component = value.Component;
let value2 = ((a0) => {
var env0_0 = a0;
var closure = _fun32613;
_inheritsLoose(closure, a0) /* class inheritance: closure extends a0 */;
closure.prototype.render = _fun32614;
return closure;
})(Component);
Component = value.Component;
let value3 = ((a0) => {
var env0_0 = a0;
var closure = _fun32616;
_inheritsLoose(closure, a0) /* class inheritance: closure extends a0 */;
closure.prototype.render = _fun32617;
return closure;
})(Component);
const resolveToLocation = function(a0, a1) {
var r0;
var value = a0;
if (typeof value !== 'function') {
r0 = value;
} else {
value = value(a1);
r0 = value;
}
return r0;
};
closure = function(a0) {
return a0;
};
let forwardRef = value.forwardRef;
let r3 = forwardRef !== undefined ? forwardRef : closure;
const env0_8 = r3(_fun32621);
const value4 = r3(_fun32623);
closure = function(a0) {
return a0;
};
forwardRef = value.forwardRef;
value = (forwardRef !== undefined ? forwardRef : closure)(_fun32627);
Object = global.Object;
Object.defineProperty(exports, 'MemoryRouter', {enumerable: true, get: function() {
return require(dependencyMap[5]).MemoryRouter;
}});
Object = global.Object;
Object.defineProperty(exports, 'Prompt', {enumerable: true, get: function() {
return require(dependencyMap[5]).Prompt;
}});
Object = global.Object;
Object.defineProperty(exports, 'Redirect', {enumerable: true, get: function() {
return require(dependencyMap[5]).Redirect;
}});
Object = global.Object;
Object.defineProperty(exports, 'Route', {enumerable: true, get: function() {
return require(dependencyMap[5]).Route;
}});
Object = global.Object;
Object.defineProperty(exports, 'Router', {enumerable: true, get: function() {
return require(dependencyMap[5]).Router;
}});
Object = global.Object;
Object.defineProperty(exports, 'StaticRouter', {enumerable: true, get: function() {
return require(dependencyMap[5]).StaticRouter;
}});
Object = global.Object;
Object.defineProperty(exports, 'Switch', {enumerable: true, get: function() {
return require(dependencyMap[5]).Switch;
}});
Object = global.Object;
Object.defineProperty(exports, 'generatePath', {enumerable: true, get: function() {
return require(dependencyMap[5]).generatePath;
}});
Object = global.Object;
Object.defineProperty(exports, 'matchPath', {enumerable: true, get: function() {
return require(dependencyMap[5]).matchPath;
}});
Object = global.Object;
Object.defineProperty(exports, 'useHistory', {enumerable: true, get: function() {
return require(dependencyMap[5]).useHistory;
}});
Object = global.Object;
Object.defineProperty(exports, 'useLocation', {enumerable: true, get: function() {
return require(dependencyMap[5]).useLocation;
}});
Object = global.Object;
Object.defineProperty(exports, 'useParams', {enumerable: true, get: function() {
return require(dependencyMap[5]).useParams;
}});
Object = global.Object;
Object.defineProperty(exports, 'useRouteMatch', {enumerable: true, get: function() {
return require(dependencyMap[5]).useRouteMatch;
}});
Object = global.Object;
Object.defineProperty(exports, 'withRouter', {enumerable: true, get: function() {
return require(dependencyMap[5]).withRouter;
}});
exports.BrowserRouter = value2;
exports.HashRouter = value3;
exports.Link = value4;
exports.NavLink = value;
function _extends_32606() { // fn#32606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:270, offset: 0x0101a4ef, 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_32609(a0, a1) { // fn#32609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:604, offset: 0x0101a563, 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 _fun32612(a0) { // fn#32612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:892, offset: 0x0101a5ef, size: 47 bytes, params: 2, frame: 14
const env0_0 = a0;
const e_326132 = e_32613;
_inheritsLoose(e_326132, a0) /* class inheritance: closure extends a0 */;
e_326132.prototype.render = render_32614;
return e_326132;
function e_32613() { // fn#32613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:904, offset: 0x0101a61e, 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.createBrowserHistory(r0.props);
return r0;
}
function render_32614() { // fn#32614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1136, offset: 0x0101a6bd, size: 79 bytes, params: 1, frame: 15
const binding = env1_2;
const createElement = binding.createElement;
const Router = (Module03980Module).Router;
return Reflect.apply(createElement, binding, [Router, {history: this.history, children: this.props.children}]);
}
}
function _fun32615(a0) { // fn#32615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1259, offset: 0x0101a70c, size: 47 bytes, params: 2, frame: 14
const env0_0 = a0;
const e_326162 = e_32616;
_inheritsLoose(e_326162, a0) /* class inheritance: closure extends a0 */;
e_326162.prototype.render = render_32617;
return e_326162;
function e_32616() { // fn#32616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1271, offset: 0x0101a73b, 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.createHashHistory(r0.props);
return r0;
}
function render_32617() { // fn#32617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1500, offset: 0x0101a6bd, size: 79 bytes, params: 1, frame: 15
const binding = env1_2;
const createElement = binding.createElement;
const Router = (Module03980Module).Router;
return Reflect.apply(createElement, binding, [Router, {history: this.history, children: this.props.children}]);
}
}
function normalizeToLocation(a0, a1) { // fn#32619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1692, offset: 0x0101a7f7, size: 67 bytes, params: 3, frame: 17
var r0;
let value = a0;
if (typeof value !== 'string') {
r0 = value;
} else {
value = (require(1231) /* metro dependency 1231 */).createLocation(value, null, null, a1);
r0 = value;
}
return r0;
}
function _fun32621(a0, a1) { // fn#32621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1875, offset: 0x0101a83a, size: 146 bytes, params: 3, frame: 18
const value = a1;
const innerRef = a0.innerRef;
const env0_0 = a0.navigate;
const env0_1 = a0.onClick;
const value3 = _objectWithoutPropertiesLoose(a0, ['innerRef', 'navigate', 'onClick']);
const target = value3.target;
const value4 = _extends_32606({}, value3, {onClick: onClick_32622});
let r1 = forwardRefShim !== env0_7 && value;
r1 = !r1 ? innerRef : r1;
value4.ref = r1;
return target.createElement('a', value4);
function onClick_32622(a0) { // fn#32622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2036, offset: 0x0101a8cc, size: 185 bytes, params: 2, frame: 15
var r2;
var value;
var error;
try {
value = environment;
if (onClick) {
onClick(a0);
}
} catch (error) {
a0.preventDefault();
throw error;
}
let r3 = a0.defaultPrevented || a0.button !== 0 || target && target !== '_self';
if (r3) {
r2 = r3;
} else {
r3 = a0.metaKey || a0.altKey;
r3 = !r3 ? a0.ctrlKey : r3;
r3 = !r3 ? a0.shiftKey : r3;
r2 = !!r3;
}
if (!r2) {
a0.preventDefault();
navigate();
}
}
}
function _fun32623(a0, a1) { // fn#32623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2324, offset: 0x0101a985, size: 148 bytes, params: 3, frame: 17
const env0_0 = a1;
const component = a0.component;
const env0_1 = component !== undefined ? component : env0_8;
const replace = a0.replace;
const env0_3 = a0.to;
const env0_4 = a0.innerRef;
const env0_5 = _objectWithoutPropertiesLoose(a0, ['component', 'replace', 'to', 'innerRef']);
const binding = replace;
const createElement = binding.createElement;
const Consumer = (Module03980Module).__RouterContext.Consumer;
return Reflect.apply(createElement, binding, [Consumer, null, _fun32624]);
function _fun32624(a0) { // fn#32624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2544, offset: 0x0101aa19, size: 195 bytes, params: 2, frame: 20
var environment;
var value;
const env0_0 = a0;
if (!a0) {
value = environment.__proto__;
env1_3(false);
}
const history = a0.history;
const history2 = history;
const value3 = normalizeToLocation(resolveToLocation(to, a0.location), a0.location);
const value5 = _extends_32606({}, env0_5, {href: value3 ? history.createHref(value3) : '',
navigate: navigate_32625});
if (forwardRefShim !== env1_7) {
value5.ref = require || innerRef;
} else {
value5.innerRef = innerRef;
}
return env1_2.createElement(history2, value5);
function navigate_32625() { // fn#32625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2669, offset: 0x0101aadc, size: 137 bytes, params: 1, frame: 20
const value = environment.__proto__.__proto__;
const resolveToLocationBinding = resolveToLocation;
const toBinding = to;
const binding = env0_0;
const toLocation = resolveToLocationBinding(toBinding, binding.location);
const path = Module01231Module.createPath(binding.location);
(replace || path === Module01231Module.createPath(normalizeToLocation(toLocation)) ? history.replace : history.push)(toLocation);
}
}
}
function _fun32627(a0, a1) { // fn#32627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2952, offset: 0x0101ab65, size: 240 bytes, params: 3, frame: 17
const env0_0 = a1;
const property = a0['aria-current'];
const r1 = property === undefined ? 'page' : property;
const activeClassName = a0.activeClassName;
const env0_2 = activeClassName === undefined ? 'active' : activeClassName;
const env0_3 = a0.activeStyle;
const env0_4 = a0.className;
const env0_5 = a0.exact;
const env0_6 = a0.isActive;
const env0_7 = a0.location;
const env0_8 = a0.sensitive;
const env0_9 = a0.strict;
const env0_10 = a0.style;
const env0_11 = a0.to;
const env0_12 = a0.innerRef;
const env0_13 = _objectWithoutPropertiesLoose(a0, ['aria-current', 'activeClassName', 'activeStyle', 'className',
'exact', 'isActive', 'location', 'sensitive', 'strict', 'style', 'to', 'innerRef']);
const binding = env0_2;
const createElement = binding.createElement;
const Consumer = (Module03980Module).__RouterContext.Consumer;
return Reflect.apply(createElement, binding, [Consumer, null, _fun32628]);
function _fun32628(a0) { // fn#32628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:3412, offset: 0x0101ac55, size: 423 bytes, params: 2, frame: 24
var environment;
var r6;
var r7;
var value;
var moduleValue;
var value10;
if (!a0) {
value = environment.__proto__;
env1_3(false);
}
const location2 = location || a0.location;
let value3 = normalizeToLocation(resolveToLocation(to, location2), location2);
const pathname = value3.pathname;
let r11 = pathname && pathname.replace(RegExp('([.+*?=^!:${}()[\\]|/\\\\])', 'g'), '\\$1');
let value5 = null;
if (r11) {
moduleValue = require(3980) /* metro dependency 3980 */;
r6 = moduleValue.matchPath(location2.pathname, {path: r11, exact: exact, sensitive: sensitive, strict: strict});
} else {
r6 = value5;
}
const r3 = isActive ? isActive(r6, location2) : r6;
const value7 = !!r3;
r11 = typeof className === 'function' ? className(value7) : className;
const r13 = typeof style === 'function' ? style(value7) : style;
if (r3) {
value10 = (function() {
var r0;
var value6;
var value = arguments.length;
var Array = global.Array;
var value3 = new Array(value);
var value5 = 0;
if (value5 < value) {
for (r0 = value5; true; r0 = value6) {
value3[r0] = arguments[r0];
value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
if (!(value6 < value)) {
break;
}
}
}
return value3.filter(_fun32630).join(' ');
})(r11, env0_2);
r6 = _extends_32606({}, r13, activeStyle);
r7 = value10;
} else {
r6 = r13;
r7 = r11;
}
const _extends_32606Binding = _extends_32606;
let r8 = r3 ? env0_1 : value7;
r8 = !r8 ? value5 : r8;
const value12 = _extends_32606Binding({['aria-current']: r8, className: r7, style: r6, to: value3}, env0_13);
if (forwardRefShim$1 !== env1_11) {
value12.ref = require || innerRef;
} else {
value12.innerRef = innerRef;
}
return env1_2.createElement(env1_9, value12);
function joinClassnames() { // fn#32629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:3693, offset: 0x0101adfc, size: 95 bytes, params: 1, frame: 13
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 array.filter(function(a0) {
return a0;
}).join(' ');
}
}
}
}
function _fun32607(a0) { // fn#32607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:321, offset: 0x00df5880, size: 117 bytes, params: 2, frame: 24
var r3;
var r8;
var propertyName;
var propertyName2;
var Object;
var prototype;
var hasOwnProperty;
var call;
let value = 1;
if (value < arguments.length) {
r3 = value;
while (true) {
value = arguments[r3];
for (propertyName in value) {
Object = global.Object;
prototype = Object.prototype;
hasOwnProperty = prototype.hasOwnProperty;
call = hasOwnProperty.call;
if (!Reflect.apply(call, hasOwnProperty, [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;
}
function _fun32610(a0, a1) { // fn#32610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:680, offset: 0x00c3ddf8, size: 14 bytes, params: 3, frame: 2
a0.__proto__ = a1;
return a0;
}
function _fun32630(a0) { // fn#32630, offset: 0x00c37049, size: 5 bytes, params: 2, frame: 1
return a0;
}
global.__d(_fun32604, 3976, [31, 3977, 1237, 1238, 1231,
3980]) /* metro module 3976, dependencies: [31, 3977, 1237, 1238, 1231, 3980] */;