142 lines
6.3 KiB
JavaScript
142 lines
6.3 KiB
JavaScript
/* Metro module 6390; source: unknown; dependencies: [6374, 6375] */
|
|
import ClassCallCheck from './module-06374-ClassCallCheck.js'; /* Metro dependency 6374 */
|
|
import CreateClass from './module-06375-CreateClass.js'; /* Metro dependency 6375 */
|
|
|
|
function _fun50072(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6568:6, offset: 0x01210715, size: 131 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = _fun50073();
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
const value3 = new value(-1, -2);
|
|
value.EMPTY = value3 instanceof Object ? value3 : value2;
|
|
exports.ConsecutiveNumbers = value;
|
|
function _fun50073() { // fn#50073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6568:127, offset: 0x01210798, size: 274 bytes, params: 1, frame: 15
|
|
const ConsecutiveNumbers2 = ConsecutiveNumbers;
|
|
const Symbol = global.Symbol;
|
|
return CreateClass(ConsecutiveNumbers2, [{key: 'length', get: function() {
|
|
var Math = global.Math;
|
|
return Math.max(0, this.endIndex - this.startIndex + 1);
|
|
}}, {key: 'at', value: function(a0) {
|
|
return this.startIndex + a0;
|
|
}}, {key: 'equals', value: function(a0) {
|
|
return this.startIndex === a0.startIndex && this.endIndex === a0.endIndex;
|
|
}}, {key: 'toArray', value: function() {
|
|
var r2;
|
|
var value = 0;
|
|
if (value === this.length) {
|
|
return [];
|
|
}
|
|
var Array = global.Array;
|
|
var value3 = new Array(this.length);
|
|
if (value < this.length) {
|
|
r2 = value;
|
|
reducibleLoop2: while (true) {
|
|
value3[r2] = this.startIndex + r2;
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value < this.length) {
|
|
r2 = value;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
return value3;
|
|
}}, {key: 'includes', value: function(a0) {
|
|
return a0 >= this.startIndex && a0 <= this.endIndex;
|
|
}}, {key: 'indexOf', value: function(a0) {
|
|
return this.includes(a0) ? a0 - this.startIndex : -1;
|
|
}}, {key: 'findValue', value: function(a0) {
|
|
var r3;
|
|
var value = 0;
|
|
if (value < this.length) {
|
|
r3 = value;
|
|
loopExit1: while (true) {
|
|
value = this.startIndex + r3;
|
|
if (a0(value, r3, this)) {
|
|
return value;
|
|
}
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value < this.length) {
|
|
r3 = value;
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
}
|
|
}}, {key: 'every', value: function(a0) {
|
|
var r2;
|
|
var value = 0;
|
|
if (value < this.length) {
|
|
r2 = value;
|
|
loopExit1: while (true) {
|
|
if (a0(this.startIndex + r2, r2, this)) {
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value < this.length)) {
|
|
return true;
|
|
}
|
|
r2 = value;
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
}}, {key: 'slice', value: value_50083}, {key: Symbol.iterator, value: value_50085}]);
|
|
function ConsecutiveNumbers(a0, a1) { // fn#50074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6568:138, offset: 0x012108aa, size: 45 bytes, params: 3, frame: 13
|
|
env1_0(this, ConsecutiveNumbers);
|
|
this.startIndex = a0;
|
|
this.endIndex = a1;
|
|
}
|
|
|
|
function value_50083() { // fn#50083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6568:1112, offset: 0x01210a66, size: 165 bytes, params: 1, frame: 17
|
|
let value = 0;
|
|
const r3 = arguments.length > value ? arguments[value] === undefined ? value : arguments[value] : value;
|
|
const r7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.length;
|
|
let startIndex = this.startIndex;
|
|
value = startIndex + r3;
|
|
startIndex = this.startIndex;
|
|
let Math = global.Math;
|
|
const value2 = startIndex + Math.min(r7, this.length) - 1;
|
|
Math = global.Math;
|
|
const value4 = Math.max(value - 1, value2);
|
|
const value5 = Object.create(ConsecutiveNumbers.prototype, {constructor: {value: ConsecutiveNumbers}});
|
|
const consecutiveNumbers = new ConsecutiveNumbers(value, value4);
|
|
return consecutiveNumbers instanceof Object ? consecutiveNumbers : value5;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function* value_50085() { // fn#50085, original name: ?anon_0_value, inferred name: value_50085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6568:1403, offset: 0x01210b14, size: 60 bytes, params: 1, frame: 5
|
|
var r3;
|
|
var value3;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
const startIndex = this.startIndex;
|
|
let endIndex = this.endIndex;
|
|
if (startIndex <= endIndex) {
|
|
r3 = startIndex;
|
|
reducibleLoop2: while (true) {
|
|
yield r3;
|
|
value = undefined;
|
|
value3 = false;
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
endIndex = this.endIndex;
|
|
if (!(value <= endIndex)) {
|
|
return undefined;
|
|
}
|
|
r3 = value;
|
|
continue reducibleLoop2;
|
|
}
|
|
}
|
|
}
|
|
|
|
global.__d(_fun50072, 6390, [6374, 6375]) /* metro module 6390, dependencies: [6374, 6375] */;
|