329 lines
15 KiB
JavaScript
329 lines
15 KiB
JavaScript
/* Metro module 3562; source: unknown; dependencies: [3563, 3543, 3541] */
|
|
import * as ParserModule from './module-03541-Parser.js'; /* Metro dependency 3541 */
|
|
import * as Module03543Module from './module-03543.js'; /* Metro dependency 3543 */
|
|
import * as Module03563Module from './module-03563.js'; /* Metro dependency 3563 */
|
|
|
|
function _fun27345(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#27345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:6, offset: 0x00f5a79a, size: 197 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const _typeof_27346 = function(a0) {
|
|
var r2;
|
|
r2 = typeof global.Symbol !== 'function' ? _fun27348 : typeof global.Symbol.iterator === 'symbol' ? _fun27347 : _fun27348;
|
|
env0_3 = r2;
|
|
return r2(a0);
|
|
};
|
|
const _defineProperties_27349 = function(a0, a1) {
|
|
var r5;
|
|
var r0;
|
|
var property;
|
|
var enumerable;
|
|
var Object;
|
|
var value = 0;
|
|
if (value < a1.length) {
|
|
r5 = value;
|
|
while (true) {
|
|
property = a1[r5];
|
|
enumerable = property.enumerable;
|
|
r0 = enumerable || false;
|
|
property.enumerable = r0;
|
|
property.configurable = true;
|
|
if (!('value' in property)) {
|
|
continue;
|
|
}
|
|
property.writable = true;
|
|
Object = global.Object;
|
|
Object.defineProperty(a0, property.key, property);
|
|
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value < a1.length) {
|
|
r5 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
};
|
|
const _setPrototypeOf_27350 = function(a0, a1) {
|
|
var r3;
|
|
r3 = global.Object.setPrototypeOf || _fun27351;
|
|
env0_5 = r3;
|
|
return r3(a0, a1);
|
|
};
|
|
const _createSuper_27352 = function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = _fun27353();
|
|
return _fun27355;
|
|
};
|
|
const _assertThisInitialized_27356 = function(a0) {
|
|
if (a0 === undefined) {
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
return a0;
|
|
};
|
|
const _getPrototypeOf_27357 = function(a0) {
|
|
var r2;
|
|
r2 = global.Object.setPrototypeOf ? global.Object.getPrototypeOf : _fun27358;
|
|
env0_8 = r2;
|
|
return r2(a0);
|
|
};
|
|
const _defineProperty_27359 = function(a0, a1, a2) {
|
|
if (a1 in a0) {
|
|
global.Object.defineProperty(a0, a1, {'value': null, 'enumerable': true, 'configurable': true,
|
|
'writable': true,
|
|
value: a2});
|
|
} else {
|
|
a0[a1] = a2;
|
|
}
|
|
return a0;
|
|
};
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.ISODayParser = undefined;
|
|
let value = Module03563Module;
|
|
const env0_2 = value && value.__esModule ? value : {default: value};
|
|
const Parser = (ParserModule).Parser;
|
|
exports.ISODayParser = _fun27360(Parser);
|
|
function _typeof_27346(a0) { // fn#27346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:45, offset: 0x00f5a85f, size: 74 bytes, params: 2, frame: 12
|
|
const Symbol = global.Symbol;
|
|
return (typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _typeof_27346_typeof : _typeof_27346_typeof_27348)(a0);
|
|
}
|
|
|
|
function _setPrototypeOf_27350(a0, a1) { // fn#27350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:652, offset: 0x00f5a8a9, 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 _createSuper_27352(a0) { // fn#27352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:803, offset: 0x00f5a8d8, size: 31 bytes, params: 2, frame: 10
|
|
const env0_0 = a0;
|
|
const env0_1 = _createSuper_27352_isNativeReflectConstruct();
|
|
return _createSuper_27352_createSuperInternal;
|
|
function _createSuper_27352_isNativeReflectConstruct() { // fn#27353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:834, owner: _createSuper_27352._isNativeReflectConstruct, offset: 0x00f5a8f7, size: 155 bytes, params: 1, frame: 17
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
let Reflect = global.Reflect;
|
|
if (typeof Reflect !== 'undefined') {
|
|
Reflect = global.Reflect;
|
|
var construct = Reflect.construct;
|
|
if (construct) {
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
if (construct.sham) {
|
|
return false;
|
|
}
|
|
if (typeof global.Proxy === 'function') {
|
|
return true;
|
|
}
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
Reflect.apply(call, valueOf, [value]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function _createSuper_27352_createSuperInternal() { // fn#27355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:1123, owner: _createSuper_27352._createSuperInternal, offset: 0x00f55efb, size: 138 bytes, params: 1, frame: 20
|
|
var r0;
|
|
const value = this;
|
|
const value4 = _getPrototypeOf_27357(env0_0);
|
|
const r6 = env0_1 ? global.Reflect.construct(value4, arguments,
|
|
_getPrototypeOf_27357(value).constructor) : value4.apply(value, arguments);
|
|
if (r6) {
|
|
if (_typeof_27346(r6) === 'object') {
|
|
r0 = r6;
|
|
} else if (typeof r6 === 'function') {
|
|
r0 = r6;
|
|
} else {
|
|
_assertThisInitialized_27356(value);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
_assertThisInitialized_27356(value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function _getPrototypeOf_27357(a0) { // fn#27357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:1590, offset: 0x00f5a992, size: 57 bytes, params: 2, frame: 11
|
|
const Object = global.Object;
|
|
return (Object.setPrototypeOf ? global.Object.getPrototypeOf : function(a0) {
|
|
return a0.__proto__ || global.Object.getPrototypeOf(a0);
|
|
})(a0);
|
|
}
|
|
|
|
function _fun27360(a0) { // fn#27360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:1918, offset: 0x00f5a9cb, size: 254 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var Object;
|
|
let value = a0;
|
|
const value_273612 = value_27361;
|
|
if (typeof value === 'function') {
|
|
Object = global.Object;
|
|
value_273612.prototype = Object.create(value && value.prototype, {constructor: {'value': null, 'writable': true,
|
|
'configurable': true, value: value_273612}});
|
|
if (value) {
|
|
_setPrototypeOf_27350(value_273612, value);
|
|
}
|
|
value = environment;
|
|
} else {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function');
|
|
}
|
|
Object = global.Object;
|
|
value_273612.prototype = Object.create(value && value.prototype, {constructor: {'value': null, 'writable': true,
|
|
'configurable': true, value: value_273612}});
|
|
if (value) {
|
|
_setPrototypeOf_27350(value_273612, value);
|
|
}
|
|
}
|
|
const env0_0 = _createSuper_27352(value_273612);
|
|
_defineProperties_27349(value_273612.prototype, [{key: 'parse', value: value_27362}, {key: 'validate',
|
|
value: function(a0, a1) {
|
|
return a1 >= 1 && a1 <= 7;
|
|
}}, {key: 'set', value: value_27365}]) /* class methods: parse, validate, set */;
|
|
return value_273612;
|
|
function value_27361() { // fn#27361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:2231, offset: 0x00f5aac9, size: 213 bytes, params: 1, frame: 19
|
|
var r1;
|
|
var length;
|
|
var array;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var _defineProperty_27359Binding;
|
|
var _assertThisInitialized_27356Binding;
|
|
var call;
|
|
var apply;
|
|
var binding;
|
|
var items2;
|
|
var value;
|
|
if (this instanceof value_27361) {
|
|
length = arguments.length;
|
|
array = new global.Array();
|
|
value5 = 0;
|
|
if (value5 < length) {
|
|
r1 = value5;
|
|
reducibleLoop3: while (true) {
|
|
array[r1] = arguments[r1];
|
|
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value6 < length) {
|
|
r1 = value6;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
value7 = environment.__proto__;
|
|
_defineProperty_27359Binding = _defineProperty_27359;
|
|
_assertThisInitialized_27356Binding = _assertThisInitialized_27356;
|
|
call = env0_0.call;
|
|
apply = call.apply;
|
|
binding = env0_0;
|
|
items2 = [this];
|
|
value = Reflect.apply(apply, call, [binding, items2.concat(array)]);
|
|
_assertThisInitialized_27356Binding(value);
|
|
_defineProperty_27359Binding(value, 'priority', 90);
|
|
_assertThisInitialized_27356Binding(value);
|
|
_defineProperty_27359Binding(value, 'incompatibleTokens', ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D',
|
|
'E',
|
|
'e', 'c', 't', 'T']);
|
|
return value;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function value_27362(a0, a1, a2) { // fn#27362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:2828, offset: 0x00f5ab9e, size: 591 bytes, params: 4, frame: 18
|
|
var environment;
|
|
var r1;
|
|
var value;
|
|
const mapValue = (Module03543Module).mapValue;
|
|
const parseNDigits = (Module03543Module).parseNDigits;
|
|
const closure = function(a0) {
|
|
var value = a0;
|
|
return value === 0 ? 7 : value;
|
|
};
|
|
if (a1 === 'i') {
|
|
value = environment.__proto__;
|
|
return parseNDigits(a1.length, a0);
|
|
}
|
|
if (a1 === 'ii') {
|
|
value = environment.__proto__;
|
|
return parseNDigits(a1.length, a0);
|
|
}
|
|
if (a1 === 'io') {
|
|
return a2.ordinalNumber(a0, {unit: 'day'});
|
|
}
|
|
if (a1 === 'iii') {
|
|
value = environment.__proto__;
|
|
value = a2.day(a0, {'width': 'abbreviated', 'context': 'formatting'});
|
|
r1 = value || a2.day(a0, {'width': 'short', 'context': 'formatting'});
|
|
} else {
|
|
if (a1 === 'iiiii') {
|
|
value = environment.__proto__;
|
|
return mapValue(a2.day(a0, {'width': 'narrow', 'context': 'formatting'}), closure);
|
|
}
|
|
if (a1 === 'iiiiii') {
|
|
value = environment.__proto__;
|
|
value = a2.day(a0, {'width': 'short', 'context': 'formatting'});
|
|
return mapValue(value || a2.day(a0, {'width': 'narrow', 'context': 'formatting'}), closure);
|
|
}
|
|
value = environment.__proto__;
|
|
value = a2.day(a0, {'width': 'wide', 'context': 'formatting'});
|
|
r1 = value || a2.day(a0, {'width': 'abbreviated', 'context': 'formatting'});
|
|
r1 = !r1 ? a2.day(a0, {'width': 'short', 'context': 'formatting'}) : r1;
|
|
}
|
|
r1 = !r1 ? a2.day(a0, {'width': 'narrow', 'context': 'formatting'}) : r1;
|
|
return mapValue(r1, closure);
|
|
}
|
|
|
|
function value_27365(a0, a1, a2) { // fn#27365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:3747, offset: 0x00f5ae14, size: 49 bytes, params: 4, frame: 15
|
|
let value = environment.__proto__;
|
|
value = (0, env1_2.default)(a0, a2);
|
|
value.setUTCHours(0, 0, 0, 0);
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _typeof_27346_typeof(a0) { // fn#27347, owner: _typeof_27346._typeof, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _typeof_27346_typeof_27348(a0) { // fn#27348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:177, owner: _typeof_27346._typeof, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function _setPrototypeOf_27350_setPrototypeOf(a0, a1) { // fn#27351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:728, owner: _setPrototypeOf_27350._setPrototypeOf, offset: 0x00c3ddf8, size: 14 bytes, params: 3, frame: 2
|
|
a0.__proto__ = a1;
|
|
return a0;
|
|
}
|
|
|
|
function _getPrototypeOf_27357_getPrototypeOf(a0) { // fn#27358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3689:1685, owner: _getPrototypeOf_27357._getPrototypeOf, offset: 0x00c3dc2e, size: 33 bytes, params: 2, frame: 12
|
|
return a0.__proto__ || global.Object.getPrototypeOf(a0);
|
|
}
|
|
|
|
global.__d(_fun27345, 3562, [3563, 3543, 3541]) /* metro module 3562, dependencies: [3563, 3543, 3541] */;
|