7546 lines
372 KiB
JavaScript
7546 lines
372 KiB
JavaScript
/* Metro module 9041; source: unknown; dependencies: [] */
|
|
function _fun70381(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:6, offset: 0x01cf8be4, size: 156 bytes, params: 8, frame: 17
|
|
var value2;
|
|
const r5 = typeof global.self === 'undefined' ? this : global.self;
|
|
const closure = function() {
|
|
return _fun70383();
|
|
};
|
|
value = typeof exports === 'object';
|
|
if (value) {
|
|
if (typeof module === 'object') {
|
|
module.exports = closure();
|
|
} else if (typeof global.define !== 'function') {
|
|
value2 = closure();
|
|
if (value) {
|
|
exports.rrule = value2;
|
|
} else {
|
|
r5.rrule = value2;
|
|
}
|
|
} else if (global.define.amd) {
|
|
global.define([], closure);
|
|
} else {
|
|
value2 = closure();
|
|
if (value) {
|
|
exports.rrule = value2;
|
|
} else {
|
|
r5.rrule = value2;
|
|
}
|
|
}
|
|
} else if (typeof global.define !== 'function') {
|
|
value2 = closure();
|
|
if (value) {
|
|
exports.rrule = value2;
|
|
} else {
|
|
r5.rrule = value2;
|
|
}
|
|
} else if (global.define.amd) {
|
|
global.define([], closure);
|
|
} else {
|
|
value2 = closure();
|
|
if (value) {
|
|
exports.rrule = value2;
|
|
} else {
|
|
r5.rrule = value2;
|
|
}
|
|
}
|
|
function w_70382() { // fn#70382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:84, offset: 0x01cf8c80, size: 17 bytes, params: 1, frame: 9
|
|
return _fun70383();
|
|
function _fun70383() { // fn#70383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:102, offset: 0x01cf8c91, size: 3513 bytes, params: 1, frame: 38
|
|
var value76;
|
|
var value77;
|
|
const q_703872 = q_70387;
|
|
const ot = function(a0) {
|
|
var value = a0.split('\n');
|
|
value = value.map(st_70400);
|
|
value = value.filter(_fun70398);
|
|
return H_70499(H_70499({}, value[0]), value[1]);
|
|
};
|
|
const ht = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (RegExp('^[+-]?\\d+$', '').test(value)) {
|
|
value = (0, global.Number)(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const jt = function(a0) {
|
|
return a0.getValue();
|
|
};
|
|
const Wt = function(a0, a1, a2, a3, a4) {
|
|
var r7;
|
|
var r0;
|
|
var property;
|
|
var value4;
|
|
var value = a1;
|
|
if (value < a2) {
|
|
r7 = value;
|
|
while (true) {
|
|
property = a0[r7];
|
|
value = Ct(a3, property, a4);
|
|
if (value) {
|
|
a0[property] = null;
|
|
}
|
|
value4 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
if (value4 < a2) {
|
|
r7 = value4;
|
|
continue;
|
|
}
|
|
r0 = value;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = false;
|
|
}
|
|
return r0;
|
|
};
|
|
const Bt = function(a0, a1) {
|
|
var value = a1;
|
|
return _fun70425(a0, _fun70433(value !== undefined ? value : {}));
|
|
};
|
|
const Xt = function(a0, a1) {
|
|
_fun70437(a1);
|
|
return a0.split(',').map(_fun70439);
|
|
};
|
|
const Gt = function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = this;
|
|
return _fun70441;
|
|
};
|
|
let object = {d: d_70446, o: function(a0, a1) {
|
|
return global.Object.prototype.hasOwnProperty.call(a0, a1);
|
|
}, r: function(a0) {
|
|
if (typeof global.Symbol !== 'undefined' && global.Symbol.toStringTag) {
|
|
global.Object.defineProperty(a0, global.Symbol.toStringTag, {value: 'Module'});
|
|
}
|
|
global.Object.defineProperty(a0, '__esModule', {value: true});
|
|
}};
|
|
const object2 = {};
|
|
object.r(object2);
|
|
object.d(object2, {Frequency: Frequency, RRule: RRule, RRuleSet: RRuleSet, Weekday: Weekday, datetime: function() {
|
|
return b_70472;
|
|
}, rrulestr: function() {
|
|
return Bt;
|
|
}});
|
|
let env0_1 = ['MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU'];
|
|
let value = (() => {
|
|
var closure = _fun70456;
|
|
var env0_0 = closure;
|
|
closure.fromStr = _fun70457;
|
|
closure.prototype.nth = _fun70458;
|
|
closure.prototype.equals = _fun70459;
|
|
closure.prototype.toString = _fun70460;
|
|
closure.prototype.getJsWeekday = _fun70461;
|
|
return closure;
|
|
})();
|
|
const i_70462 = function(a0) {
|
|
return a0 != null;
|
|
};
|
|
const o_70463 = function(a0) {
|
|
return typeof a0 === 'number';
|
|
};
|
|
const Array = global.Array;
|
|
const env0_6 = Array.isArray;
|
|
const closure2 = function(a0, a1) {
|
|
var r1;
|
|
var value3;
|
|
var value = a0;
|
|
var value2 = a1;
|
|
var r2 = value2 !== undefined ? value2 : value;
|
|
reducibleJoin3: while (true) {
|
|
if (arguments.length !== 1) {
|
|
r1 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
value3 = 0;
|
|
r1 = value3;
|
|
r2 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
var items = [];
|
|
if (r1 < r2) {
|
|
reducibleLoop4: while (true) {
|
|
items.push(r1);
|
|
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value < r2) {
|
|
r1 = value;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
}
|
|
return items;
|
|
};
|
|
const h_704662 = h_70466;
|
|
const c_70467 = function(a0, a1) {
|
|
var r0;
|
|
var value = a0 % a1;
|
|
if (value * a1 < 0) {
|
|
value += a1;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const d_70468 = function(a0, a1) {
|
|
var object = {};
|
|
var Math = global.Math;
|
|
object.div = Math.floor(a0 / a1);
|
|
object.mod = c_70467(a0, a1);
|
|
return object;
|
|
};
|
|
const f_70470 = function(a0) {
|
|
return !l_70469(a0);
|
|
};
|
|
const closure4 = function(a0, a1, a2, a3, a4, a5) {
|
|
var r8;
|
|
var r7;
|
|
var r6;
|
|
var value = a3;
|
|
var value2 = a4;
|
|
var value3 = a5;
|
|
r8 = value !== undefined ? value : 0;
|
|
r7 = value2 !== undefined ? value2 : 0;
|
|
r6 = value3 !== undefined ? value3 : 0;
|
|
var Date = global.Date;
|
|
var Date2 = global.Date;
|
|
value = Date2.UTC(a0, a1 - 1, a2, r8, r7, r6);
|
|
var value4 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
value = new Date(value);
|
|
return value instanceof Object ? value : value4;
|
|
};
|
|
const env0_15 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
const env0_16 = closure4(1970, 1, 1);
|
|
const env0_17 = [6, 0, 1, 2, 3, 4, 5];
|
|
const k_70473 = function(a0) {
|
|
var r0;
|
|
r0 = a0 % 4 === 0 && a0 % 100 !== 0;
|
|
r0 = !r0 ? a0 % 400 === 0 : r0;
|
|
return r0;
|
|
};
|
|
const E_70474 = function(a0) {
|
|
return a0 instanceof global.Date;
|
|
};
|
|
const x_70476 = function(a0) {
|
|
return 60 * a0.getTimezoneOffset() * 1000;
|
|
};
|
|
const Y_70481 = function(a0, a1) {
|
|
var value2 = b_70472(a0, a1 + 1, 1);
|
|
var items = [U_70480(value2)];
|
|
items[1] = S_70479(value2);
|
|
return items;
|
|
};
|
|
const M_70483 = function(a0) {
|
|
var Date = global.Date;
|
|
var value = a0.getTime();
|
|
var value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
value = new Date(value);
|
|
return value instanceof Object ? value : value2;
|
|
};
|
|
const __70484 = function(a0) {
|
|
var r4;
|
|
var items = [];
|
|
var value = 0;
|
|
if (value < a0.length) {
|
|
for (r4 = value; true; r4 = value) {
|
|
items.push(M_70483(a0[r4]));
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (!(value < a0.length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return items;
|
|
};
|
|
const R_70485 = function(a0) {
|
|
a0.sort(_fun70486);
|
|
};
|
|
const C_70489 = function(a0, a1) {
|
|
var value = a0.toLocaleString('sv-SE', {timeZone: a1});
|
|
value = value.replace(' ', 'T');
|
|
return value + 'Z';
|
|
};
|
|
let value2 = (() => {
|
|
var closure = _fun70491;
|
|
var env0_0 = closure;
|
|
closure.prototype.accept = _fun70492;
|
|
closure.prototype.add = _fun70493;
|
|
closure.prototype.getValue = _fun70494;
|
|
closure.prototype.clone = _fun70495;
|
|
return closure;
|
|
})();
|
|
const H_70499 = function() {
|
|
var r3;
|
|
r3 = global.Object.assign || _fun70500;
|
|
env0_36 = r3;
|
|
return r3.apply(this, arguments);
|
|
};
|
|
let Object = global.Object;
|
|
Object.create;
|
|
Object = global.Object;
|
|
Object.create;
|
|
const env0_38 = ((a0) => {
|
|
var env0_0 = a0;
|
|
var closure = _fun70502;
|
|
W_70385(closure, a0);
|
|
closure.prototype.add = _fun70503;
|
|
return closure;
|
|
})(value2);
|
|
object = {dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October',
|
|
'November', 'December']};
|
|
const object4 = {SKIP: RegExp('^[ \\r\\n\\t]+|^\\.$', ''), number: RegExp('^[1-9][0-9]*', ''),
|
|
numberAsText: RegExp('^(one|two|three)', 'i'), every: RegExp('^every', 'i')};
|
|
object4['day(s)'] = RegExp('^days?', 'i');
|
|
object4['weekday(s)'] = RegExp('^weekdays?', 'i');
|
|
object4['week(s)'] = RegExp('^weeks?', 'i');
|
|
object4['hour(s)'] = RegExp('^hours?', 'i');
|
|
object4['minute(s)'] = RegExp('^minutes?', 'i');
|
|
object4['month(s)'] = RegExp('^months?', 'i');
|
|
object4['year(s)'] = RegExp('^years?', 'i');
|
|
object4.on = RegExp('^(on|in)', 'i');
|
|
object4.at = RegExp('^(at)', 'i');
|
|
object4.the = RegExp('^the', 'i');
|
|
object4.first = RegExp('^first', 'i');
|
|
object4.second = RegExp('^second', 'i');
|
|
object4.third = RegExp('^third', 'i');
|
|
object4.nth = RegExp('^([1-9][0-9]*)(\\.|th|nd|rd|st)', 'i');
|
|
object4.last = RegExp('^last', 'i');
|
|
object4.for = RegExp('^for', 'i');
|
|
object4['time(s)'] = RegExp('^times?', 'i');
|
|
object4.until = RegExp('^(un)?til', 'i');
|
|
object4.monday = RegExp('^mo(n(day)?)?', 'i');
|
|
object4.tuesday = RegExp('^tu(e(s(day)?)?)?', 'i');
|
|
object4.wednesday = RegExp('^we(d(n(esday)?)?)?', 'i');
|
|
object4.thursday = RegExp('^th(u(r(sday)?)?)?', 'i');
|
|
object4.friday = RegExp('^fr(i(day)?)?', 'i');
|
|
object4.saturday = RegExp('^sa(t(urday)?)?', 'i');
|
|
object4.sunday = RegExp('^su(n(day)?)?', 'i');
|
|
object4.january = RegExp('^jan(uary)?', 'i');
|
|
object4.february = RegExp('^feb(ruary)?', 'i');
|
|
object4.march = RegExp('^mar(ch)?', 'i');
|
|
object4.april = RegExp('^apr(il)?', 'i');
|
|
object4.may = RegExp('^may', 'i');
|
|
object4.june = RegExp('^june?', 'i');
|
|
object4.july = RegExp('^july?', 'i');
|
|
object4.august = RegExp('^aug(ust)?', 'i');
|
|
object4.september = RegExp('^sep(t(ember)?)?', 'i');
|
|
object4.october = RegExp('^oct(ober)?', 'i');
|
|
object4.november = RegExp('^nov(ember)?', 'i');
|
|
object4.december = RegExp('^dec(ember)?', 'i');
|
|
object4.comma = RegExp('^(,\\s*|(and|or)\\s*)+', 'i');
|
|
object.tokens = object4;
|
|
const z_70504 = function(a0, a1) {
|
|
return a0.indexOf(a1) !== -1;
|
|
};
|
|
const K_70505 = function(a0) {
|
|
return a0.toString();
|
|
};
|
|
const B_70506 = function(a0, a1, a2) {
|
|
var value = ''.concat(a1, ' ');
|
|
value = value.concat(a2, ', ');
|
|
return value.concat(a0);
|
|
};
|
|
let value3 = _fun70507();
|
|
const env0_44 = (() => {
|
|
var closure = _fun70536;
|
|
closure.prototype.start = _fun70537;
|
|
closure.prototype.isDone = _fun70538;
|
|
closure.prototype.nextSymbol = _fun70539;
|
|
closure.prototype.accept = _fun70540;
|
|
closure.prototype.acceptNumber = _fun70541;
|
|
closure.prototype.expect = _fun70542;
|
|
return closure;
|
|
})();
|
|
object = {};
|
|
let value4 = 0;
|
|
object.YEARLY = value4;
|
|
object[value4] = 'YEARLY';
|
|
object.MONTHLY = 1;
|
|
object[1] = 'MONTHLY';
|
|
object.WEEKLY = 2;
|
|
object[2] = 'WEEKLY';
|
|
object.DAILY = 3;
|
|
object[3] = 'DAILY';
|
|
object.HOURLY = 4;
|
|
object[4] = 'HOURLY';
|
|
object.MINUTELY = 5;
|
|
object[5] = 'MINUTELY';
|
|
object.SECONDLY = 6;
|
|
object[6] = 'SECONDLY';
|
|
const items5 = ['count', 'until', 'interval', 'byweekday', 'bymonthday', 'bymonth'];
|
|
value3.IMPLEMENTED = [];
|
|
let IMPLEMENTED = value3.IMPLEMENTED;
|
|
const HOURLY = object.HOURLY;
|
|
IMPLEMENTED[HOURLY] = items5;
|
|
IMPLEMENTED = value3.IMPLEMENTED;
|
|
const MINUTELY = object.MINUTELY;
|
|
IMPLEMENTED[MINUTELY] = items5;
|
|
IMPLEMENTED = value3.IMPLEMENTED;
|
|
const DAILY = object.DAILY;
|
|
const items2 = ['byhour'];
|
|
let concat = items2.concat;
|
|
IMPLEMENTED[DAILY] = Reflect.apply(concat, items2, [items5]);
|
|
IMPLEMENTED = value3.IMPLEMENTED;
|
|
const WEEKLY = object.WEEKLY;
|
|
IMPLEMENTED[WEEKLY] = items5;
|
|
IMPLEMENTED = value3.IMPLEMENTED;
|
|
const MONTHLY = object.MONTHLY;
|
|
IMPLEMENTED[MONTHLY] = items5;
|
|
IMPLEMENTED = value3.IMPLEMENTED;
|
|
let YEARLY = object.YEARLY;
|
|
const items3 = ['byweekno', 'byyearday'];
|
|
IMPLEMENTED[YEARLY] = items3.concat(items5);
|
|
const env0_45 = value3.isFullyConvertible;
|
|
const env0_47 = _fun70550((() => {
|
|
var closure = _fun70544;
|
|
closure.prototype.getHours = _fun70545;
|
|
closure.prototype.getMinutes = _fun70546;
|
|
closure.prototype.getSeconds = _fun70547;
|
|
closure.prototype.getMilliseconds = _fun70548;
|
|
closure.prototype.getTime = _fun70549;
|
|
return closure;
|
|
})());
|
|
const env0_48 = (() => {
|
|
var closure = _fun70568;
|
|
global.Object.defineProperty(closure.prototype, 'isUTC', {'get': null, 'enumerable': false,
|
|
'configurable': true,
|
|
get: _fun70569});
|
|
closure.prototype.toString = _fun70570;
|
|
closure.prototype.getTime = _fun70571;
|
|
closure.prototype.rezonedDate = _fun70572;
|
|
return closure;
|
|
})();
|
|
const env0_49 = (() => {
|
|
var closure = _fun70574;
|
|
closure.prototype._cacheAdd = _fun70575;
|
|
closure.prototype._cacheGet = _fun70576;
|
|
return closure;
|
|
})();
|
|
const env0_50 = q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872([],
|
|
h_704662(1, 31), true), h_704662(2, 28), true), h_704662(3, 31), true), h_704662(4, 30), true), h_704662(5, 31),
|
|
true), h_704662(6, 30), true), h_704662(7, 31), true), h_704662(8, 31), true), h_704662(9, 30), true),
|
|
h_704662(10, 31), true), h_704662(11, 30), true), h_704662(12, 31), true), h_704662(1, 7), true);
|
|
const env0_51 = q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872([],
|
|
h_704662(1, 31), true), h_704662(2, 29), true), h_704662(3, 31), true), h_704662(4, 30), true), h_704662(5, 31),
|
|
true), h_704662(6, 30), true), h_704662(7, 31), true), h_704662(8, 31), true), h_704662(9, 30), true),
|
|
h_704662(10, 31), true), h_704662(11, 30), true), h_704662(12, 31), true), h_704662(1, 7), true);
|
|
const value32 = closure2(1, 29);
|
|
const value33 = closure2(1, 30);
|
|
const value34 = closure2(1, 31);
|
|
const value35 = closure2(1, 32);
|
|
const env0_52 = q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872([],
|
|
value35, true), value33, true), value35, true), value34, true), value35, true), value34, true), value35, true),
|
|
value35, true), value34, true), value35, true), value34, true), value35, true), value35.slice(value4, 7), true);
|
|
const env0_53 = q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872([],
|
|
value35, true), value32, true), value35, true), value34, true), value35, true), value34, true), value35, true),
|
|
value35, true), value34, true), value35, true), value34, true), value35, true), value35.slice(value4, 7), true);
|
|
const value54 = closure2(-28, value4);
|
|
const value55 = closure2(-29, value4);
|
|
const value56 = closure2(-30, value4);
|
|
const value57 = closure2(-31, value4);
|
|
const env0_54 = q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872([],
|
|
value57, true), value55, true), value57, true), value56, true), value57, true), value56, true), value57, true),
|
|
value57, true), value56, true), value57, true), value56, true), value57, true), value57.slice(value4, 7), true);
|
|
const env0_55 = q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872(q_703872([],
|
|
value57, true), value54, true), value57, true), value56, true), value57, true), value56, true), value57, true),
|
|
value57, true), value56, true), value57, true), value56, true), value57, true), value57.slice(value4, 7), true);
|
|
const env0_56 = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
|
|
const env0_57 = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
|
|
const items4 = [];
|
|
let r14 = value4;
|
|
let r16 = items4;
|
|
reducibleLoop1: while (true) {
|
|
concat = r16.concat;
|
|
value76 = Reflect.apply(concat, r16, [closure2(7)]);
|
|
value77 = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
|
|
if (value77 < 55) {
|
|
r14 = value77;
|
|
r16 = value76;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
const env0_59 = _fun70577();
|
|
const object5 = {};
|
|
const value78 = Object.create(value.prototype, {constructor: {value: value}});
|
|
const value79 = new value(value4);
|
|
object5.MO = value79 instanceof Object ? value79 : value78;
|
|
const value81 = Object.create(value.prototype, {constructor: {value: value}});
|
|
const value82 = new value(1);
|
|
object5.TU = value82 instanceof Object ? value82 : value81;
|
|
const value84 = Object.create(value.prototype, {constructor: {value: value}});
|
|
const value85 = new value(2);
|
|
object5.WE = value85 instanceof Object ? value85 : value84;
|
|
const value87 = Object.create(value.prototype, {constructor: {value: value}});
|
|
const value88 = new value(3);
|
|
object5.TH = value88 instanceof Object ? value88 : value87;
|
|
const value90 = Object.create(value.prototype, {constructor: {value: value}});
|
|
const value91 = new value(4);
|
|
object5.FR = value91 instanceof Object ? value91 : value90;
|
|
const value93 = Object.create(value.prototype, {constructor: {value: value}});
|
|
const value94 = new value(5);
|
|
object5.SA = value94 instanceof Object ? value94 : value93;
|
|
value = new value(6);
|
|
object5.SU = value;
|
|
YEARLY = object.YEARLY;
|
|
const MO = object5.MO;
|
|
Object = global.Object;
|
|
const env0_62 = Object.keys({'freq': null, 'dtstart': null, 'interval': 1, 'wkst': null, 'count': null,
|
|
'until': null, 'tzid': null, 'bysetpos': null, 'bymonth': null, 'bymonthday': null, 'bynmonthday': null,
|
|
'byyearday': null, 'byweekno': null, 'byweekday': null, 'bynweekday': null, 'byhour': null, 'byminute': null,
|
|
'bysecond': null, 'byeaster': null, freq: YEARLY, wkst: MO});
|
|
value = _fun70604();
|
|
const env0_64 = {'dtstart': null, 'cache': false, 'unfold': false, 'forceset': false, 'compatible': false,
|
|
'tzid': null};
|
|
const env0_65 = _fun70621(value);
|
|
return object2;
|
|
function y_70384(a0, a1, a2) { // fn#70384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:1663, offset: 0x01cf9a4a, size: 137 bytes, params: 4, frame: 18
|
|
var r0;
|
|
var value3;
|
|
let value = a2;
|
|
const r7 = value !== undefined ? value : ' ';
|
|
const String = global.String;
|
|
value = String(a0);
|
|
const value2 = a1 >> 0;
|
|
let length = value.length;
|
|
if (length > value2) {
|
|
value = global.String(value);
|
|
r0 = value;
|
|
} else {
|
|
length = value.length;
|
|
value3 = value2 - length;
|
|
length = r7.length;
|
|
value = (value3 > length ? r7 + h_70466(r7, value3 / r7.length) : r7).slice(0, value3) + global.String(value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function W_70385(a0, a1) { // fn#70385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:4972, offset: 0x01cf9ad3, size: 179 bytes, params: 3, frame: 15
|
|
var r1;
|
|
var value;
|
|
var prototype;
|
|
var w_70385N2;
|
|
var TypeError;
|
|
var value3;
|
|
var typeError;
|
|
const env0_0 = a0;
|
|
const W_70385N2 = W_70385N;
|
|
if (typeof a1 === 'function') {
|
|
j_70496(a0, a1);
|
|
if (a1 === null) {
|
|
r1 = global.Object.create(a1);
|
|
} else {
|
|
prototype = a1.prototype;
|
|
W_70385N2.prototype = prototype;
|
|
prototype = W_70385N2.prototype;
|
|
value = Object.create(prototype, {constructor: {value: W_70385N2}});
|
|
w_70385N2 = new W_70385N2();
|
|
value = w_70385N2 instanceof Object ? w_70385N2 : value;
|
|
r1 = value;
|
|
}
|
|
a0.prototype = r1;
|
|
} else {
|
|
if (a1 !== null) {
|
|
TypeError = global.TypeError;
|
|
value = global.String(a1);
|
|
value = 'Class extends value ' + value;
|
|
value3 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
|
|
value += ' is not a constructor or null';
|
|
typeError = new TypeError();
|
|
value = typeError instanceof Object ? typeError : value3;
|
|
throw value;
|
|
}
|
|
j_70496(a0, a1);
|
|
if (a1 === null) {
|
|
r1 = global.Object.create(a1);
|
|
} else {
|
|
prototype = a1.prototype;
|
|
W_70385N2.prototype = prototype;
|
|
prototype = W_70385N2.prototype;
|
|
value = Object.create(prototype, {constructor: {value: W_70385N2}});
|
|
w_70385N2 = new W_70385N2();
|
|
value = w_70385N2 instanceof Object ? w_70385N2 : value;
|
|
r1 = value;
|
|
}
|
|
a0.prototype = r1;
|
|
}
|
|
function W_70385N() { // fn#70386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:5108, owner: W_70385.n, offset: 0x0121c997, size: 20 bytes, params: 1, frame: 2
|
|
this.constructor = env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
function Q_70388(a0, a1) { // fn#70388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14968, offset: 0x01cf9b86, size: 150 bytes, params: 3, frame: 14
|
|
const value = a1;
|
|
let r0 = value !== undefined ? value : env0_39;
|
|
const object = {};
|
|
let value2 = new env0_44(r0.tokens);
|
|
value2 = value2.start(a0);
|
|
if (value2) {
|
|
_fun70394();
|
|
r0 = object;
|
|
} else {
|
|
r0 = null;
|
|
}
|
|
return r0;
|
|
function Q_70388I() { // fn#70389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:17146, owner: Q_70388.i, offset: 0x01cf9c1c, size: 953 bytes, params: 1, frame: 27
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var symbol;
|
|
var nextSymbol;
|
|
var bymonth;
|
|
var push;
|
|
var acceptNumber;
|
|
var value7;
|
|
var Error;
|
|
var value8;
|
|
var error;
|
|
var parseInt;
|
|
var int;
|
|
var value9;
|
|
var value10;
|
|
var byweekno;
|
|
var byweekday;
|
|
var value11;
|
|
var MO;
|
|
var TU;
|
|
var WE;
|
|
var TH;
|
|
var FR;
|
|
var value12;
|
|
var bymonthday;
|
|
var value13;
|
|
var property;
|
|
var nth;
|
|
let value = environment;
|
|
let binding = env0_1;
|
|
let accept = binding.accept;
|
|
if (!Reflect.apply(accept, binding, ['on'])) {
|
|
reducibleJoin2: while (true) {
|
|
if (!env0_1.accept('the')) {
|
|
return undefined;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
value4 = Q_70388S();
|
|
value5 = Q_70388A();
|
|
value6 = Q_70388O();
|
|
if (value4) {
|
|
if (value5) {
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
byweekday = env0_0.byweekday;
|
|
reducibleJoin28: while (true) {
|
|
if (byweekday) {
|
|
break reducibleJoin28;
|
|
}
|
|
binding = env0_0;
|
|
binding.byweekday = [];
|
|
break reducibleJoin28;
|
|
}
|
|
byweekday = env0_0.byweekday;
|
|
push = byweekday.push;
|
|
value13 = environment.__proto__;
|
|
property = env1_63[value5];
|
|
nth = property.nth;
|
|
Reflect.apply(push, byweekday, [Reflect.apply(nth, property, [value4])]);
|
|
} else {
|
|
bymonthday = env0_0.bymonthday;
|
|
reducibleJoin25: while (true) {
|
|
if (bymonthday) {
|
|
break reducibleJoin25;
|
|
}
|
|
binding = env0_0;
|
|
binding.bymonthday = [];
|
|
break reducibleJoin25;
|
|
}
|
|
bymonthday = env0_0.bymonthday;
|
|
push = bymonthday.push;
|
|
Reflect.apply(push, bymonthday, [value4]);
|
|
binding = env0_1;
|
|
binding.accept('day(s)');
|
|
}
|
|
} else {
|
|
binding = env0_1;
|
|
if (value5) {
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
byweekday = env0_0.byweekday;
|
|
reducibleJoin21: while (true) {
|
|
if (byweekday) {
|
|
break reducibleJoin21;
|
|
}
|
|
binding = env0_0;
|
|
binding.byweekday = [];
|
|
break reducibleJoin21;
|
|
}
|
|
byweekday = env0_0.byweekday;
|
|
push = byweekday.push;
|
|
value12 = environment.__proto__;
|
|
Reflect.apply(push, byweekday, [env1_63[value5]]);
|
|
} else {
|
|
symbol = binding.symbol;
|
|
if (symbol === 'weekday(s)') {
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
byweekday = env0_0.byweekday;
|
|
reducibleJoin29: while (true) {
|
|
if (byweekday) {
|
|
break reducibleJoin29;
|
|
}
|
|
binding = env0_0;
|
|
value11 = environment.__proto__;
|
|
MO = env1_63.MO;
|
|
TU = env1_63.TU;
|
|
WE = env1_63.WE;
|
|
TH = env1_63.TH;
|
|
FR = env1_63.FR;
|
|
binding.byweekday = [MO, TU, WE, TH, FR];
|
|
break reducibleJoin29;
|
|
}
|
|
} else {
|
|
symbol = env0_1.symbol;
|
|
if (symbol === 'week(s)') {
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
binding = env0_1;
|
|
acceptNumber = binding.acceptNumber;
|
|
value7 = Reflect.apply(acceptNumber, binding, []);
|
|
if (!value7) {
|
|
Error = global.Error;
|
|
value = 'Unexpected symbol ' + env0_1.symbol;
|
|
value8 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += ', expected week number';
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value8;
|
|
throw value;
|
|
}
|
|
binding = env0_0;
|
|
parseInt = global.parseInt;
|
|
int = parseInt(value7[0], 10);
|
|
binding.byweekno = [int];
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
reducibleLoop14: while (true) {
|
|
binding = env0_1;
|
|
acceptNumber = binding.acceptNumber;
|
|
value9 = Reflect.apply(acceptNumber, binding, []);
|
|
if (!value9) {
|
|
Error = global.Error;
|
|
value = 'Unexpected symbol ' + env0_1.symbol;
|
|
value10 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += '; expected monthday';
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value10;
|
|
throw value;
|
|
}
|
|
byweekno = env0_0.byweekno;
|
|
push = byweekno.push;
|
|
parseInt = global.parseInt;
|
|
Reflect.apply(push, byweekno, [parseInt(value9[0], 10)]);
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
continue reducibleLoop14;
|
|
}
|
|
break reducibleLoop14;
|
|
}
|
|
}
|
|
} else {
|
|
if (!value6) {
|
|
return undefined;
|
|
}
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
bymonth = env0_0.bymonth;
|
|
reducibleJoin10: while (true) {
|
|
if (bymonth) {
|
|
break reducibleJoin10;
|
|
}
|
|
binding = env0_0;
|
|
binding.bymonth = [];
|
|
break reducibleJoin10;
|
|
}
|
|
bymonth = env0_0.bymonth;
|
|
push = bymonth.push;
|
|
Reflect.apply(push, bymonth, [value6]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
continue reducibleLoop2;
|
|
}
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['the'])) {
|
|
continue reducibleLoop2;
|
|
}
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (!Reflect.apply(accept, binding, ['on'])) {
|
|
return undefined;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
}
|
|
|
|
function Q_70388O() { // fn#70390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:18042, owner: Q_70388.o, offset: 0x01cf9fd5, size: 209 bytes, params: 1, frame: 2
|
|
const symbol = env0_1.symbol;
|
|
if (symbol === 'january') {
|
|
return 1;
|
|
}
|
|
if (symbol === 'february') {
|
|
return 2;
|
|
}
|
|
if (symbol === 'march') {
|
|
return 3;
|
|
}
|
|
if (symbol === 'april') {
|
|
return 4;
|
|
}
|
|
if (symbol === 'may') {
|
|
return 5;
|
|
}
|
|
if (symbol === 'june') {
|
|
return 6;
|
|
}
|
|
if (symbol === 'july') {
|
|
return 7;
|
|
}
|
|
if (symbol === 'august') {
|
|
return 8;
|
|
}
|
|
if (symbol === 'september') {
|
|
return 9;
|
|
}
|
|
if (symbol === 'october') {
|
|
return 10;
|
|
}
|
|
if (symbol === 'november') {
|
|
return 11;
|
|
}
|
|
if (symbol === 'december') {
|
|
return 12;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function Q_70388A() { // fn#70391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:18359, owner: Q_70388.a, offset: 0x01cfa0a6, size: 126 bytes, params: 1, frame: 13
|
|
const symbol = env0_1.symbol;
|
|
if (symbol === 'monday') {
|
|
return env0_1.symbol.substr(0, 2).toUpperCase();
|
|
}
|
|
if (symbol === 'tuesday') {
|
|
return env0_1.symbol.substr(0, 2).toUpperCase();
|
|
}
|
|
if (symbol === 'wednesday') {
|
|
return env0_1.symbol.substr(0, 2).toUpperCase();
|
|
}
|
|
if (symbol === 'thursday') {
|
|
return env0_1.symbol.substr(0, 2).toUpperCase();
|
|
}
|
|
if (symbol === 'friday') {
|
|
return env0_1.symbol.substr(0, 2).toUpperCase();
|
|
}
|
|
if (symbol === 'saturday') {
|
|
return env0_1.symbol.substr(0, 2).toUpperCase();
|
|
}
|
|
if (symbol === 'sunday') {
|
|
return env0_1.symbol.substr(0, 2).toUpperCase();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function Q_70388S() { // fn#70392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:18548, owner: Q_70388.s, offset: 0x01cfa124, size: 329 bytes, params: 1, frame: 16
|
|
var int;
|
|
var binding;
|
|
var Error;
|
|
var value;
|
|
const symbol = env0_1.symbol;
|
|
if (symbol === 'last') {
|
|
env0_1.nextSymbol();
|
|
return -1;
|
|
}
|
|
if (symbol === 'first') {
|
|
env0_1.nextSymbol();
|
|
return 1;
|
|
}
|
|
if (symbol === 'second') {
|
|
binding = env0_1;
|
|
binding.nextSymbol();
|
|
binding = env0_1;
|
|
return binding.accept('last') ? -2 : 2;
|
|
}
|
|
if (symbol === 'third') {
|
|
binding = env0_1;
|
|
binding.nextSymbol();
|
|
binding = env0_1;
|
|
return binding.accept('last') ? -3 : 3;
|
|
}
|
|
if (symbol === 'nth') {
|
|
int = global.parseInt(env0_1.value[1], 10);
|
|
if (int < -366) {
|
|
Error = global.Error;
|
|
value = 'Nth out of range: ' + int;
|
|
throw new Error();
|
|
}
|
|
if (int > 366) {
|
|
Error = global.Error;
|
|
value = 'Nth out of range: ' + int;
|
|
throw new Error();
|
|
}
|
|
binding = env0_1;
|
|
binding.nextSymbol();
|
|
binding = env0_1;
|
|
return binding.accept('last') ? -int : int;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function Q_70388U() { // fn#70393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:18922, owner: Q_70388.u, offset: 0x01cfa26d, size: 232 bytes, params: 1, frame: 15
|
|
var binding;
|
|
var Date;
|
|
var parse;
|
|
var text;
|
|
var Error;
|
|
var value;
|
|
if (env0_1.symbol === 'until') {
|
|
Date = global.Date;
|
|
parse = Date.parse;
|
|
text = env0_1.text;
|
|
if (Reflect.apply(parse, Date, [text])) {
|
|
env0_0.until = new global.Date();
|
|
return undefined;
|
|
}
|
|
Error = global.Error;
|
|
text = env0_1.text;
|
|
value = 'Cannot parse until date:' + text;
|
|
throw new Error();
|
|
}
|
|
if (Reflect.apply(env0_1.accept, binding, ['for'])) {
|
|
binding = env0_0;
|
|
binding.count = global.parseInt(env0_1.value[0], 10);
|
|
binding = env0_1;
|
|
binding.expect('number');
|
|
}
|
|
}
|
|
|
|
function _fun70394() { // fn#70394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:15050, offset: 0x01cfa355, size: 2212 bytes, params: 1, frame: 21
|
|
var parseInt;
|
|
var Error;
|
|
var error;
|
|
var value3;
|
|
var YEARLY;
|
|
var value4;
|
|
var nextSymbol;
|
|
var accept;
|
|
var value5;
|
|
var value6;
|
|
var bymonth;
|
|
var push;
|
|
var value7;
|
|
var WEEKLY;
|
|
var substr;
|
|
var value8;
|
|
var toUpperCase;
|
|
var value9;
|
|
var property;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var byweekday;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var bymonthday;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var int;
|
|
var value26;
|
|
var value27;
|
|
var byhour;
|
|
let value = environment;
|
|
let binding = env0_1;
|
|
binding.expect('every');
|
|
const value2 = env0_1.acceptNumber();
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
binding = env0_0;
|
|
parseInt = global.parseInt;
|
|
binding.interval = parseInt(value2[0], 10);
|
|
break reducibleJoin2;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
binding = env0_1;
|
|
let isDone = binding.isDone;
|
|
if (Reflect.apply(isDone, binding, [])) {
|
|
throw new global.Error('Unexpected end');
|
|
}
|
|
let symbol = env0_1.symbol;
|
|
if (symbol === 'day(s)') {
|
|
binding = env0_0;
|
|
value22 = environment.__proto__;
|
|
binding.freq = env1_63.DAILY;
|
|
binding = env0_1;
|
|
reducibleJoin75: while (true) {
|
|
if (binding.nextSymbol()) {
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
value23 = Reflect.apply(accept, binding, ['at']);
|
|
if (value23) {
|
|
reducibleLoop66: while (true) {
|
|
binding = env0_1;
|
|
acceptNumber = binding.acceptNumber;
|
|
value24 = Reflect.apply(acceptNumber, binding, []);
|
|
if (!value24) {
|
|
Error = global.Error;
|
|
value = 'Unexpected symbol ' + env0_1.symbol;
|
|
value25 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += ', expected hour';
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value25;
|
|
throw value;
|
|
}
|
|
binding = env0_0;
|
|
parseInt = global.parseInt;
|
|
int = parseInt(value24[0], 10);
|
|
binding.byhour = [int];
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
reducibleLoop69: while (true) {
|
|
binding = env0_1;
|
|
acceptNumber = binding.acceptNumber;
|
|
value26 = Reflect.apply(acceptNumber, binding, []);
|
|
if (!value26) {
|
|
Error = global.Error;
|
|
value = 'Unexpected symbol ' + env0_1.symbol;
|
|
value27 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += '; expected hour';
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value27;
|
|
throw value;
|
|
}
|
|
byhour = env0_0.byhour;
|
|
push = byhour.push;
|
|
parseInt = global.parseInt;
|
|
Reflect.apply(push, byhour, [parseInt(value26[0], 10)]);
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
continue reducibleLoop69;
|
|
}
|
|
break reducibleLoop69;
|
|
}
|
|
}
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
continue reducibleLoop66;
|
|
}
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['at'])) {
|
|
continue reducibleLoop66;
|
|
}
|
|
break reducibleLoop66;
|
|
}
|
|
}
|
|
Q_70388U();
|
|
break reducibleJoin75;
|
|
}
|
|
break reducibleJoin75;
|
|
}
|
|
} else if (symbol === 'weekday(s)') {
|
|
binding = env0_0;
|
|
value21 = environment.__proto__;
|
|
binding.freq = env1_63.WEEKLY;
|
|
binding = env0_0;
|
|
binding.byweekday = [env1_63.MO, env1_63.TU, env1_63.WE, env1_63.TH, env1_63.FR];
|
|
binding = env0_1;
|
|
binding.nextSymbol();
|
|
Q_70388U();
|
|
} else if (symbol === 'week(s)') {
|
|
binding = env0_0;
|
|
value20 = environment.__proto__;
|
|
binding.freq = env1_63.WEEKLY;
|
|
binding = env0_1;
|
|
reducibleJoin75: while (true) {
|
|
if (binding.nextSymbol()) {
|
|
Q_70388I();
|
|
Q_70388U();
|
|
break reducibleJoin75;
|
|
}
|
|
break reducibleJoin75;
|
|
}
|
|
} else if (symbol === 'hour(s)') {
|
|
binding = env0_0;
|
|
value19 = environment.__proto__;
|
|
binding.freq = env1_63.HOURLY;
|
|
binding = env0_1;
|
|
reducibleJoin75: while (true) {
|
|
if (binding.nextSymbol()) {
|
|
Q_70388I();
|
|
Q_70388U();
|
|
break reducibleJoin75;
|
|
}
|
|
break reducibleJoin75;
|
|
}
|
|
} else if (symbol === 'minute(s)') {
|
|
binding = env0_0;
|
|
value18 = environment.__proto__;
|
|
binding.freq = env1_63.MINUTELY;
|
|
binding = env0_1;
|
|
reducibleJoin75: while (true) {
|
|
if (binding.nextSymbol()) {
|
|
Q_70388I();
|
|
Q_70388U();
|
|
break reducibleJoin75;
|
|
}
|
|
break reducibleJoin75;
|
|
}
|
|
} else if (symbol === 'month(s)') {
|
|
binding = env0_0;
|
|
value17 = environment.__proto__;
|
|
binding.freq = env1_63.MONTHLY;
|
|
binding = env0_1;
|
|
reducibleJoin75: while (true) {
|
|
if (binding.nextSymbol()) {
|
|
Q_70388I();
|
|
Q_70388U();
|
|
break reducibleJoin75;
|
|
}
|
|
break reducibleJoin75;
|
|
}
|
|
} else if (symbol === 'year(s)') {
|
|
binding = env0_0;
|
|
value16 = environment.__proto__;
|
|
binding.freq = env1_63.YEARLY;
|
|
binding = env0_1;
|
|
reducibleJoin75: while (true) {
|
|
if (binding.nextSymbol()) {
|
|
Q_70388I();
|
|
Q_70388U();
|
|
break reducibleJoin75;
|
|
}
|
|
break reducibleJoin75;
|
|
}
|
|
} else {
|
|
reducibleJoin75: while (true) {
|
|
reducibleJoin39: while (true) {
|
|
if (symbol === 'monday') {
|
|
break reducibleJoin39;
|
|
}
|
|
if (symbol === 'tuesday') {
|
|
break reducibleJoin39;
|
|
}
|
|
if (symbol === 'wednesday') {
|
|
break reducibleJoin39;
|
|
}
|
|
if (symbol === 'thursday') {
|
|
break reducibleJoin39;
|
|
}
|
|
if (symbol === 'friday') {
|
|
break reducibleJoin39;
|
|
}
|
|
if (symbol === 'saturday') {
|
|
break reducibleJoin39;
|
|
}
|
|
if (symbol === 'sunday') {
|
|
break reducibleJoin39;
|
|
}
|
|
if (symbol !== 'january') {
|
|
reducibleJoin30: while (true) {
|
|
if (symbol === 'february') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'march') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'april') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'may') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'june') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'july') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'august') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'september') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'october') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol === 'november') {
|
|
break reducibleJoin30;
|
|
}
|
|
if (symbol !== 'december') {
|
|
throw new global.Error('Unknown symbol');
|
|
}
|
|
break reducibleJoin30;
|
|
}
|
|
}
|
|
binding = env0_0;
|
|
value3 = environment.__proto__;
|
|
YEARLY = env1_63.YEARLY;
|
|
binding.freq = YEARLY;
|
|
binding = env0_0;
|
|
value4 = Q_70388O();
|
|
binding.bymonth = [value4];
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
if (!Reflect.apply(nextSymbol, binding, [])) {
|
|
return undefined;
|
|
}
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
reducibleLoop33: while (true) {
|
|
binding = env0_1;
|
|
isDone = binding.isDone;
|
|
if (Reflect.apply(isDone, binding, [])) {
|
|
throw new global.Error('Unexpected end');
|
|
}
|
|
value5 = Q_70388O();
|
|
if (!value5) {
|
|
Error = global.Error;
|
|
value = 'Unexpected symbol ' + env0_1.symbol;
|
|
value6 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += ', expected month';
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value6;
|
|
throw value;
|
|
}
|
|
bymonth = env0_0.bymonth;
|
|
push = bymonth.push;
|
|
Reflect.apply(push, bymonth, [value5]);
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
continue reducibleLoop33;
|
|
}
|
|
break reducibleLoop33;
|
|
}
|
|
}
|
|
Q_70388I();
|
|
Q_70388U();
|
|
break reducibleJoin75;
|
|
}
|
|
binding = env0_0;
|
|
value7 = environment.__proto__;
|
|
WEEKLY = env1_63.WEEKLY;
|
|
binding.freq = WEEKLY;
|
|
symbol = env0_1.symbol;
|
|
substr = symbol.substr;
|
|
value8 = Reflect.apply(substr, symbol, [0, 2]);
|
|
toUpperCase = value8.toUpperCase;
|
|
value9 = Reflect.apply(toUpperCase, value8, []);
|
|
binding = env0_0;
|
|
property = env1_63[value9];
|
|
binding.byweekday = [property];
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
if (!Reflect.apply(nextSymbol, binding, [])) {
|
|
return undefined;
|
|
}
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
value10 = Reflect.apply(accept, binding, ['comma']);
|
|
if (value10) {
|
|
reducibleLoop42: while (true) {
|
|
binding = env0_1;
|
|
isDone = binding.isDone;
|
|
if (Reflect.apply(isDone, binding, [])) {
|
|
throw new global.Error('Unexpected end');
|
|
}
|
|
value11 = Q_70388A();
|
|
if (!value11) {
|
|
Error = global.Error;
|
|
value = 'Unexpected symbol ' + env0_1.symbol;
|
|
value12 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += ', expected weekday';
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value12;
|
|
throw value;
|
|
}
|
|
byweekday = env0_0.byweekday;
|
|
push = byweekday.push;
|
|
Reflect.apply(push, byweekday, [env1_63[value11]]);
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
continue reducibleLoop42;
|
|
}
|
|
break reducibleLoop42;
|
|
}
|
|
}
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
Reflect.apply(accept, binding, ['on']);
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
Reflect.apply(accept, binding, ['the']);
|
|
value13 = Q_70388S();
|
|
if (value13) {
|
|
binding = env0_0;
|
|
binding.bymonthday = [value13];
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
reducibleLoop48: while (true) {
|
|
value14 = Q_70388S();
|
|
if (!value14) {
|
|
Error = global.Error;
|
|
value = 'Unexpected symbol ' + env0_1.symbol;
|
|
value15 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += '; expected monthday';
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value15;
|
|
throw value;
|
|
}
|
|
bymonthday = env0_0.bymonthday;
|
|
push = bymonthday.push;
|
|
Reflect.apply(push, bymonthday, [value14]);
|
|
binding = env0_1;
|
|
nextSymbol = binding.nextSymbol;
|
|
Reflect.apply(nextSymbol, binding, []);
|
|
binding = env0_1;
|
|
accept = binding.accept;
|
|
if (Reflect.apply(accept, binding, ['comma'])) {
|
|
continue reducibleLoop48;
|
|
}
|
|
break reducibleLoop48;
|
|
}
|
|
}
|
|
}
|
|
Q_70388U();
|
|
break reducibleJoin75;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function $_70395(a0) { // fn#70395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:19136, offset: 0x01cfabf9, size: 22 bytes, params: 2, frame: 2
|
|
const HOURLY = env0_37.HOURLY;
|
|
return a0 < HOURLY;
|
|
}
|
|
|
|
function rt_70396(a0) { // fn#70396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:22740, offset: 0x01cfac0f, size: 208 bytes, params: 2, frame: 20
|
|
var r6;
|
|
var r2;
|
|
var property;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var Error;
|
|
const items2 = [];
|
|
const Object = global.Object;
|
|
let value = Object.keys(a0);
|
|
let length = value.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r6 = value2;
|
|
while (true) {
|
|
property = value[r6];
|
|
if (!p_70471(env0_62, property)) {
|
|
items2.push(property);
|
|
}
|
|
value4 = E_70474(a0[property]);
|
|
if (!value4) {
|
|
r2 = value4;
|
|
continue;
|
|
}
|
|
value5 = !T_70475(a0[property]);
|
|
r2 = value5;
|
|
if (!r2) {
|
|
continue;
|
|
}
|
|
items2.push(property);
|
|
value6 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value.length;
|
|
if (value6 < length) {
|
|
r6 = value6;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
if (items2.length) {
|
|
Error = global.Error;
|
|
value = items2.join(', ');
|
|
value = 'Invalid options: ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return H_70499({}, a0);
|
|
}
|
|
|
|
function ot(a0) { // fn#70397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:22945, offset: 0x01cfacdf, size: 88 bytes, params: 2, frame: 14
|
|
let value = a0.split('\n');
|
|
value = value.map(st_70400);
|
|
value = value.filter(function(a0) {
|
|
return a0 !== null;
|
|
});
|
|
return H_70499(H_70499({}, value[0]), value[1]);
|
|
}
|
|
|
|
function at(a0) { // fn#70399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:23055, offset: 0x01cfad37, size: 80 bytes, params: 2, frame: 12
|
|
var property;
|
|
var property2;
|
|
const object = {};
|
|
const value = RegExp('DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\\s]+)', 'i').exec(a0);
|
|
if (value) {
|
|
property = value[1];
|
|
property2 = value[2];
|
|
if (property) {
|
|
object.tzid = property;
|
|
}
|
|
object.dtstart = A_70488(property2);
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function st_70400(a0) { // fn#70400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:23208, offset: 0x01cfad87, size: 240 bytes, params: 2, frame: 15
|
|
var regexp;
|
|
var value2;
|
|
var property;
|
|
var value4;
|
|
var Error;
|
|
let value = a0.replace(RegExp('^\\s+|\\s+$', ''), '');
|
|
if (value.length) {
|
|
regexp = RegExp('^([A-Z]+?)[:;]', '');
|
|
value2 = regexp.exec(value.toUpperCase());
|
|
if (value2) {
|
|
property = value2[1];
|
|
value4 = property.toUpperCase();
|
|
if (value4 === 'RRULE') {
|
|
return ut(value);
|
|
}
|
|
if (value4 === 'EXRULE') {
|
|
return ut(value);
|
|
}
|
|
if (value4 === 'DTSTART') {
|
|
return at(value);
|
|
}
|
|
Error = global.Error;
|
|
value = 'Unsupported RFC prop '.concat(property, ' in ').concat(value);
|
|
throw new Error(value);
|
|
}
|
|
return ut(value);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function ut(a0) { // fn#70401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:23517, offset: 0x01cfae77, size: 114 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
const atBinding = at;
|
|
let value = a0.replace(RegExp('^RRULE:', 'i'), '');
|
|
value = atBinding(value);
|
|
a0.replace(RegExp('^(?:RRULE|EXRULE):', 'i'), '').split(';').forEach(_fun70402);
|
|
return value;
|
|
function _fun70402(a0) { // fn#70402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:23630, offset: 0x01cfaee9, size: 632 bytes, params: 2, frame: 14
|
|
var environment;
|
|
var r2;
|
|
var binding;
|
|
var atBinding;
|
|
var value3;
|
|
var map;
|
|
var value4;
|
|
let value = a0.split('=');
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
value = property.toUpperCase();
|
|
if (value === 'FREQ') {
|
|
binding = env0_1;
|
|
value = environment.__proto__;
|
|
binding.freq = env1_37[property2.toUpperCase()];
|
|
return undefined;
|
|
}
|
|
if (value === 'WKST') {
|
|
binding = env0_1;
|
|
value = environment.__proto__;
|
|
binding.wkst = env1_60[property2.toUpperCase()];
|
|
return undefined;
|
|
}
|
|
if (value === 'COUNT') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'INTERVAL') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYSETPOS') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYMONTH') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYMONTHDAY') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYYEARDAY') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYWEEKNO') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYHOUR') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYMINUTE') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYSECOND') {
|
|
value = property2.indexOf(',');
|
|
if (value !== -1) {
|
|
value = property2.split(',');
|
|
map = value.map;
|
|
value4 = environment.__proto__;
|
|
value = Reflect.apply(map, value, [ht]);
|
|
r2 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = ht(property2);
|
|
r2 = value;
|
|
}
|
|
value = property.toLowerCase();
|
|
env0_1[value] = r2;
|
|
return undefined;
|
|
}
|
|
if (value === 'BYWEEKDAY') {
|
|
value = environment;
|
|
env0_1.byweekday = ((a0) => a0.split(',').map(_fun70404))(property2);
|
|
return undefined;
|
|
}
|
|
if (value === 'BYDAY') {
|
|
value = environment;
|
|
env0_1.byweekday = ((a0) => a0.split(',').map(_fun70404))(property2);
|
|
return undefined;
|
|
}
|
|
if (value === 'DTSTART') {
|
|
value = environment.__proto__;
|
|
atBinding = at;
|
|
value = environment;
|
|
value3 = atBinding(env0_0);
|
|
binding = env0_1;
|
|
binding.tzid = value3.tzid;
|
|
binding.dtstart = value3.dtstart;
|
|
return undefined;
|
|
}
|
|
if (value === 'TZID') {
|
|
value = environment.__proto__;
|
|
atBinding = at;
|
|
value = environment;
|
|
value3 = atBinding(env0_0);
|
|
binding = env0_1;
|
|
binding.tzid = value3.tzid;
|
|
binding.dtstart = value3.dtstart;
|
|
return undefined;
|
|
}
|
|
if (value === 'UNTIL') {
|
|
binding = env0_1;
|
|
value = environment.__proto__;
|
|
binding.until = A_70488(property2);
|
|
return undefined;
|
|
}
|
|
if (value === 'BYEASTER') {
|
|
env0_1.byeaster = global.Number(property2);
|
|
return undefined;
|
|
}
|
|
const Error = global.Error;
|
|
value = "Unknown RRULE property '" + property;
|
|
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += "'";
|
|
const error = new Error(value);
|
|
throw error instanceof Object ? error : value2;
|
|
function _fun70403(a0) { // fn#70403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:24080, offset: 0x01cfb161, size: 38 bytes, params: 2, frame: 11
|
|
return a0.split(',').map(_fun70404);
|
|
function _fun70404(a0) { // fn#70404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:24117, offset: 0x01cfb187, size: 186 bytes, params: 2, frame: 15
|
|
var value;
|
|
var value2;
|
|
var property;
|
|
var weekday;
|
|
var binding;
|
|
var binding2;
|
|
var SyntaxError;
|
|
if (a0.length === 2) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
return env3_60[a0];
|
|
}
|
|
value = a0.match(RegExp('^([+-]?\\d{1,2})([A-Z]{2})$', ''));
|
|
if (value) {
|
|
if (value.length < 3) {
|
|
SyntaxError = global.SyntaxError;
|
|
value = 'Invalid weekday string: '.concat(a0);
|
|
throw new SyntaxError();
|
|
}
|
|
value2 = global.Number(value[1]);
|
|
property = value[2];
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
weekday = env3_60[property].weekday;
|
|
binding = env3_2;
|
|
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
binding2 = new binding();
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
}
|
|
SyntaxError = global.SyntaxError;
|
|
value = 'Invalid weekday string: '.concat(a0);
|
|
const value4 = Object.create(SyntaxError.prototype, {constructor: {value: SyntaxError}});
|
|
const syntaxError = new SyntaxError();
|
|
throw syntaxError instanceof Object ? syntaxError : value4;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function ct_70406(a0) { // fn#70406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:25387, offset: 0x01cfb273, size: 929 bytes, params: 2, frame: 55
|
|
var r10;
|
|
var r11;
|
|
var r44;
|
|
var r43;
|
|
var r40;
|
|
var r35;
|
|
var r37;
|
|
var r38;
|
|
var r27;
|
|
var r3;
|
|
var r1;
|
|
var property;
|
|
var toUpperCase;
|
|
var value7;
|
|
var String;
|
|
var value8;
|
|
var items2;
|
|
var value9;
|
|
var toString;
|
|
var value10;
|
|
var tzid;
|
|
var value11;
|
|
var dt_70410Binding;
|
|
var value12;
|
|
var map;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var binding;
|
|
var prototype;
|
|
var value16;
|
|
var binding2;
|
|
var value18;
|
|
var value19;
|
|
var FREQUENCIES;
|
|
var freq;
|
|
var push;
|
|
var value20;
|
|
var concat;
|
|
const items3 = [];
|
|
let Object = global.Object;
|
|
let value = Object.keys(a0);
|
|
Object = global.Object;
|
|
const value3 = Object.keys(env0_61);
|
|
let length = value.length;
|
|
const value4 = 0;
|
|
const value5 = '';
|
|
if (value4 < length) {
|
|
r10 = value4;
|
|
r11 = value5;
|
|
reducibleLoop1: while (true) {
|
|
reducibleJoin28: while (true) {
|
|
if (value[r10] === 'tzid') {
|
|
r27 = r11;
|
|
break reducibleJoin28;
|
|
}
|
|
if (p_70471(value3, value[r10])) {
|
|
property = value[r10];
|
|
toUpperCase = property.toUpperCase;
|
|
value7 = Reflect.apply(toUpperCase, property, []);
|
|
property = a0[value[r10]];
|
|
if (i_70462(property)) {
|
|
if (isArray(property)) {
|
|
length = property.length;
|
|
if (!length) {
|
|
r27 = r11;
|
|
break reducibleJoin28;
|
|
}
|
|
}
|
|
if (value7 === 'FREQ') {
|
|
FREQUENCIES = env0_63.FREQUENCIES;
|
|
freq = a0.freq;
|
|
property = FREQUENCIES[freq];
|
|
r35 = property;
|
|
r37 = value7;
|
|
r38 = r11;
|
|
} else if (value7 === 'WKST') {
|
|
if (o_70463(property)) {
|
|
binding = env0_2;
|
|
prototype = binding.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding();
|
|
value18 = binding2 instanceof Object ? binding2 : value16;
|
|
toString = value18.toString;
|
|
value19 = Reflect.apply(toString, value18, []);
|
|
r40 = value19;
|
|
} else {
|
|
toString = property.toString;
|
|
value15 = Reflect.apply(toString, property, []);
|
|
r40 = value15;
|
|
}
|
|
r35 = r40;
|
|
r37 = value7;
|
|
r38 = r11;
|
|
} else if (value7 === 'BYWEEKDAY') {
|
|
reducibleJoin20: while (true) {
|
|
if (isArray(property)) {
|
|
r43 = property;
|
|
break reducibleJoin20;
|
|
}
|
|
r43 = [property];
|
|
break reducibleJoin20;
|
|
}
|
|
map = r43.map;
|
|
value13 = Reflect.apply(map, r43, [_fun70407]);
|
|
toString = value13.toString;
|
|
value14 = Reflect.apply(toString, value13, []);
|
|
r35 = value14;
|
|
r37 = 'BYDAY';
|
|
r38 = r11;
|
|
} else if (value7 === 'DTSTART') {
|
|
dt_70410Binding = dt_70410;
|
|
tzid = a0.tzid;
|
|
value12 = dt_70410Binding(property, tzid);
|
|
r35 = value5;
|
|
r37 = value7;
|
|
r38 = value12;
|
|
} else if (value7 === 'UNTIL') {
|
|
tzid = a0.tzid;
|
|
value11 = N_70487(property, !tzid);
|
|
r35 = value11;
|
|
r37 = value7;
|
|
r38 = r11;
|
|
} else if (isArray(property)) {
|
|
items2 = [];
|
|
length = property.length;
|
|
if (value4 < length) {
|
|
r44 = value4;
|
|
reducibleLoop14: while (true) {
|
|
String = global.String;
|
|
items2[r44] = String(property[r44]);
|
|
value9 = typeof r44 === 'bigint' ? r44 + 1n : +r44 + 1;
|
|
length = property.length;
|
|
if (value9 < length) {
|
|
r44 = value9;
|
|
continue reducibleLoop14;
|
|
}
|
|
break reducibleLoop14;
|
|
}
|
|
}
|
|
toString = items2.toString;
|
|
value10 = Reflect.apply(toString, items2, []);
|
|
r35 = value10;
|
|
r37 = value7;
|
|
r38 = r11;
|
|
} else {
|
|
String = global.String;
|
|
value8 = String(property);
|
|
r35 = value8;
|
|
r37 = value7;
|
|
r38 = r11;
|
|
}
|
|
if (r35) {
|
|
push = items3.push;
|
|
Reflect.apply(push, items3, [[r37, r35]]);
|
|
r27 = r38;
|
|
break reducibleJoin28;
|
|
}
|
|
r27 = r38;
|
|
break reducibleJoin28;
|
|
}
|
|
r27 = r11;
|
|
break reducibleJoin28;
|
|
}
|
|
r27 = r11;
|
|
break reducibleJoin28;
|
|
}
|
|
value20 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
|
length = value.length;
|
|
if (value20 < length) {
|
|
r10 = value20;
|
|
r11 = r27;
|
|
continue reducibleLoop1;
|
|
}
|
|
r3 = r27;
|
|
break reducibleLoop1;
|
|
}
|
|
} else {
|
|
r3 = value5;
|
|
}
|
|
value = items3.map(function([property, property2]) {
|
|
return ''.concat(property, '=').concat(property2.toString());
|
|
});
|
|
value = value.join(';');
|
|
reducibleJoin31: while (true) {
|
|
if (value5 === value) {
|
|
r1 = value5;
|
|
break reducibleJoin31;
|
|
}
|
|
concat = 'RRULE:'.concat;
|
|
value = Reflect.apply(concat, 'RRULE:', [value]);
|
|
r1 = value;
|
|
break reducibleJoin31;
|
|
}
|
|
return [r3, r1].filter(function(a0) {
|
|
return !!a0;
|
|
}).join('\n');
|
|
function _fun70407(a0) { // fn#70407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:25748, offset: 0x01cfb614, size: 101 bytes, params: 2, frame: 15
|
|
var r1;
|
|
var r0;
|
|
var isArray2;
|
|
var binding;
|
|
var property;
|
|
var property2;
|
|
let value = a0;
|
|
if (value instanceof env1_2) {
|
|
r0 = value;
|
|
} else {
|
|
isArray2 = isArray(value);
|
|
binding = env1_2;
|
|
if (isArray2) {
|
|
property = value[0];
|
|
property2 = value[1];
|
|
r1 = new binding();
|
|
} else {
|
|
value = new binding(value);
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function dt_70410(a0, a1) { // fn#70410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:26239, offset: 0x01cfb6b1, size: 92 bytes, params: 3, frame: 14
|
|
var r0;
|
|
var binding;
|
|
var Date;
|
|
var prototype;
|
|
var date;
|
|
var value2;
|
|
let value = '';
|
|
if (a0) {
|
|
binding = env0_48;
|
|
Date = global.Date;
|
|
prototype = Date.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date(a0);
|
|
value = date instanceof Object ? date : value;
|
|
prototype = binding.prototype;
|
|
value2 = Object.create(prototype, {constructor: {value: binding}});
|
|
value = new binding(value, a1);
|
|
value = value instanceof Object ? value : value2;
|
|
value = value.toString();
|
|
value = 'DTSTART' + value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function lt_70411(a0, a1) { // fn#70411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:26311, offset: 0x01cfb70d, size: 159 bytes, params: 3, frame: 16
|
|
var r5;
|
|
var r0;
|
|
var r1;
|
|
var value;
|
|
const env0_0 = a1;
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
value = global.Array.isArray(a1);
|
|
r1 = value ? a0.length === a1.length : !!value;
|
|
r1 = r1 && a0.every(function(a0, a1) {
|
|
return a0.getTime() === require[a1].getTime();
|
|
});
|
|
r0 = r1;
|
|
} else if (a0 instanceof global.Date) {
|
|
value = a1 instanceof global.Date;
|
|
if (value) {
|
|
value = a0.getTime();
|
|
value = value === a1.getTime();
|
|
r5 = value;
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
r0 = r5;
|
|
} else {
|
|
r0 = a0 === a1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function Nt(a0, a1, a2, a3, a4, a5) { // fn#70413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:33743, offset: 0x01cfb7d7, size: 306 bytes, params: 7, frame: 29
|
|
var r5;
|
|
var r3;
|
|
var r18;
|
|
var r15;
|
|
var r17;
|
|
var property;
|
|
var Math;
|
|
var floor;
|
|
var value4;
|
|
var value5;
|
|
var c_70467Binding;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var items2;
|
|
var value10;
|
|
var slice;
|
|
var yearordinal;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
const value = a2;
|
|
const items3 = [];
|
|
let length = a0.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r5 = value2;
|
|
while (true) {
|
|
property = a0[r5];
|
|
if (property < value2) {
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
length = a1.length;
|
|
value8 = Reflect.apply(floor, Math, [property / length]);
|
|
c_70467Binding = c_70467;
|
|
length = a1.length;
|
|
value9 = c_70467Binding(property, length);
|
|
r3 = value9;
|
|
r18 = value8;
|
|
} else {
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value4 = property - 1;
|
|
length = a1.length;
|
|
value5 = Reflect.apply(floor, Math, [value4 / length]);
|
|
c_70467Binding = c_70467;
|
|
value6 = property - 1;
|
|
length = a1.length;
|
|
value7 = c_70467Binding(value6, length);
|
|
r3 = value7;
|
|
r18 = value5;
|
|
}
|
|
items2 = [];
|
|
if (!(value < a3)) {
|
|
continue;
|
|
}
|
|
r15 = value;
|
|
while (true) {
|
|
property = a5[r15];
|
|
if (i_70462(property)) {
|
|
items2.push(property);
|
|
}
|
|
value10 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
|
if (value10 < a3) {
|
|
r15 = value10;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
if (r18 < value2) {
|
|
slice = items2.slice;
|
|
r17 = Reflect.apply(slice, items2, [r18])[value2];
|
|
} else {
|
|
r17 = items2[r18];
|
|
}
|
|
property = a1[r3];
|
|
yearordinal = a4.yearordinal;
|
|
value11 = D_70478(yearordinal + r17);
|
|
value12 = L_70482(value11, property);
|
|
if (p_70471(items3, value12)) {
|
|
continue;
|
|
}
|
|
items3.push(value12);
|
|
value13 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = a0.length;
|
|
if (value13 < length) {
|
|
r5 = value13;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
R_70485(items3);
|
|
return items3;
|
|
}
|
|
|
|
function At(a0, a1) { // fn#70414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:34117, offset: 0x01cfb909, size: 886 bytes, params: 3, frame: 59
|
|
var environment;
|
|
var r8;
|
|
var r15;
|
|
var r27;
|
|
var r35;
|
|
var r37;
|
|
var r41;
|
|
var r45;
|
|
var r40;
|
|
var r29;
|
|
var r30;
|
|
var r33;
|
|
var r26;
|
|
var value2;
|
|
var binding;
|
|
var fromDate;
|
|
var value3;
|
|
var prototype;
|
|
var value4;
|
|
var binding2;
|
|
var value6;
|
|
var rebuild;
|
|
var year;
|
|
var month;
|
|
var value7;
|
|
var getdayset;
|
|
var value8;
|
|
var day;
|
|
var value9;
|
|
var property;
|
|
var property2;
|
|
var property3;
|
|
var value10;
|
|
var property4;
|
|
var yearordinal;
|
|
var value11;
|
|
var length;
|
|
var property5;
|
|
var value12;
|
|
var value13;
|
|
var accept;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var add;
|
|
var gettimeset;
|
|
var value21;
|
|
var hour;
|
|
var minute;
|
|
var second;
|
|
var value22;
|
|
const dtstart = a1.dtstart;
|
|
const freq = a1.freq;
|
|
let interval = a1.interval;
|
|
const until = a1.until;
|
|
const bysetpos = a1.bysetpos;
|
|
const count = a1.count;
|
|
const value = 0;
|
|
if (value !== count) {
|
|
reducibleJoin36: while (true) {
|
|
if (value === interval) {
|
|
break reducibleJoin36;
|
|
}
|
|
value2 = environment;
|
|
binding = env0_47;
|
|
fromDate = binding.fromDate;
|
|
value3 = Reflect.apply(fromDate, binding, [dtstart]);
|
|
binding = env0_59;
|
|
prototype = binding.prototype;
|
|
value4 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding(a1);
|
|
value6 = binding2 instanceof Object ? binding2 : value4;
|
|
rebuild = value6.rebuild;
|
|
year = value3.year;
|
|
month = value3.month;
|
|
Reflect.apply(rebuild, value6, [year, month]);
|
|
value7 = _fun70415(value6, value3, a1);
|
|
r8 = value7;
|
|
r15 = count;
|
|
reducibleLoop3: while (true) {
|
|
getdayset = value6.getdayset;
|
|
value8 = Reflect.apply(getdayset, value6, [freq]);
|
|
year = value3.year;
|
|
month = value3.month;
|
|
day = value3.day;
|
|
value9 = value8(year, month, day);
|
|
property = value9[value];
|
|
property2 = value9[1];
|
|
property3 = value9[2];
|
|
value10 = Wt(property, property2, property3, value6, a1);
|
|
if (f_70470(bysetpos)) {
|
|
value17 = Nt(bysetpos, r8, property2, property3, value6, property);
|
|
length = value17.length;
|
|
if (value < length) {
|
|
r29 = value;
|
|
r30 = r15;
|
|
reducibleLoop19: while (true) {
|
|
property = value17[r29];
|
|
if (until) {
|
|
reducibleJoin21: while (true) {
|
|
if (property > until) {
|
|
return jt(a0);
|
|
}
|
|
break reducibleJoin21;
|
|
}
|
|
}
|
|
if (property >= dtstart) {
|
|
value18 = It(property, a1);
|
|
accept = a0.accept;
|
|
if (!Reflect.apply(accept, a0, [value18])) {
|
|
return jt(a0);
|
|
}
|
|
reducibleJoin27: while (true) {
|
|
if (r30) {
|
|
value19 = typeof r30 === 'bigint' ? r30 - 1n : +r30 - 1;
|
|
if (!value19) {
|
|
return jt(a0);
|
|
}
|
|
r33 = value19;
|
|
break reducibleJoin27;
|
|
}
|
|
r33 = r30;
|
|
break reducibleJoin27;
|
|
}
|
|
} else {
|
|
r33 = r30;
|
|
}
|
|
value20 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
length = value17.length;
|
|
if (value20 < length) {
|
|
r29 = value20;
|
|
r30 = r33;
|
|
continue reducibleLoop19;
|
|
}
|
|
r26 = r33;
|
|
break reducibleLoop19;
|
|
}
|
|
} else {
|
|
r26 = r15;
|
|
}
|
|
} else if (property2 < property3) {
|
|
r27 = property2;
|
|
r35 = r15;
|
|
reducibleLoop5: while (true) {
|
|
property4 = property[r27];
|
|
if (i_70462(property4)) {
|
|
yearordinal = value6.yearordinal;
|
|
value11 = D_70478(yearordinal + property4);
|
|
length = r8.length;
|
|
if (value < length) {
|
|
r37 = value;
|
|
r41 = r35;
|
|
reducibleLoop7: while (true) {
|
|
property5 = r8[r37];
|
|
value12 = L_70482(value11, property5);
|
|
if (until) {
|
|
reducibleJoin9: while (true) {
|
|
if (value12 > until) {
|
|
return jt(a0);
|
|
}
|
|
break reducibleJoin9;
|
|
}
|
|
}
|
|
if (value12 >= dtstart) {
|
|
value13 = It(value12, a1);
|
|
accept = a0.accept;
|
|
if (!Reflect.apply(accept, a0, [value13])) {
|
|
return jt(a0);
|
|
}
|
|
reducibleJoin15: while (true) {
|
|
if (r41) {
|
|
value14 = typeof r41 === 'bigint' ? r41 - 1n : +r41 - 1;
|
|
if (!value14) {
|
|
return jt(a0);
|
|
}
|
|
r45 = value14;
|
|
break reducibleJoin15;
|
|
}
|
|
r45 = r41;
|
|
break reducibleJoin15;
|
|
}
|
|
} else {
|
|
r45 = r41;
|
|
}
|
|
value15 = typeof r37 === 'bigint' ? r37 + 1n : +r37 + 1;
|
|
length = r8.length;
|
|
if (value15 < length) {
|
|
r37 = value15;
|
|
r41 = r45;
|
|
continue reducibleLoop7;
|
|
}
|
|
r40 = r45;
|
|
break reducibleLoop7;
|
|
}
|
|
} else {
|
|
r40 = r35;
|
|
}
|
|
} else {
|
|
r40 = r35;
|
|
}
|
|
value16 = typeof r27 === 'bigint' ? r27 + 1n : +r27 + 1;
|
|
if (value16 < property3) {
|
|
r27 = value16;
|
|
r35 = r40;
|
|
continue reducibleLoop5;
|
|
}
|
|
r26 = r40;
|
|
break reducibleLoop5;
|
|
}
|
|
} else {
|
|
r26 = r15;
|
|
}
|
|
interval = a1.interval;
|
|
if (value === interval) {
|
|
return jt(a0);
|
|
}
|
|
add = value3.add;
|
|
Reflect.apply(add, value3, [a1, value10]);
|
|
year = value3.year;
|
|
if (year > 9999) {
|
|
return jt(a0);
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if ($_70395(freq)) {
|
|
break reducibleJoin32;
|
|
}
|
|
gettimeset = value6.gettimeset;
|
|
value21 = Reflect.apply(gettimeset, value6, [freq]);
|
|
hour = value3.hour;
|
|
minute = value3.minute;
|
|
second = value3.second;
|
|
value22 = value21(hour, minute, second, value);
|
|
r8 = value22;
|
|
break reducibleJoin32;
|
|
}
|
|
rebuild = value6.rebuild;
|
|
year = value3.year;
|
|
month = value3.month;
|
|
Reflect.apply(rebuild, value6, [year, month]);
|
|
r15 = r26;
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
}
|
|
return jt(a0);
|
|
function _fun70415(a0, a1, a2) { // fn#70415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:34304, offset: 0x01cfbc7f, size: 253 bytes, params: 4, frame: 22
|
|
var environment;
|
|
var r0;
|
|
const freq = a2.freq;
|
|
const byhour = a2.byhour;
|
|
const byminute = a2.byminute;
|
|
const bysecond = a2.bysecond;
|
|
let value = environment.__proto__;
|
|
if ($_70395(freq)) {
|
|
r0 = _fun70416(a2);
|
|
} else if (freq >= env1_63.HOURLY) {
|
|
if (f_70470(byhour)) {
|
|
if (p_70471(byhour, a1.hour)) {
|
|
if (freq >= env1_63.MINUTELY) {
|
|
if (f_70470(byminute)) {
|
|
if (p_70471(byminute, a1.minute)) {
|
|
if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else if (freq >= env1_63.MINUTELY) {
|
|
if (f_70470(byminute)) {
|
|
if (p_70471(byminute, a1.minute)) {
|
|
if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else if (freq >= env1_63.MINUTELY) {
|
|
if (f_70470(byminute)) {
|
|
if (p_70471(byminute, a1.minute)) {
|
|
if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else if (freq >= env1_63.SECONDLY) {
|
|
if (f_70470(bysecond)) {
|
|
if (p_70471(bysecond, a1.second)) {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = a0.gettimeset(freq);
|
|
value = value(a1.hour, a1.minute, a1.second, a1.millisecond);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function _fun70416(a0) { // fn#70416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:34382, offset: 0x01cfbd7c, size: 97 bytes, params: 2, frame: 13
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const env0_1 = a0.dtstart.getTime() % 1000;
|
|
value = environment.__proto__.__proto__;
|
|
if ($_70395(a0.freq)) {
|
|
a0.byhour.forEach(function(a0) {
|
|
a0.byminute.forEach(_fun70418);
|
|
});
|
|
}
|
|
return [];
|
|
function _fun70417(a0) { // fn#70417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:34481, offset: 0x01cfbddd, size: 43 bytes, params: 2, frame: 11
|
|
a0.byminute.forEach(_fun70418);
|
|
function _fun70418(a0) { // fn#70418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:34513, offset: 0x01cfbe08, size: 43 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
env1_0.bysecond.forEach(_fun70419);
|
|
function _fun70419(a0) { // fn#70419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:34545, offset: 0x01cfbe33, size: 69 bytes, params: 2, frame: 19
|
|
const value = environment.__proto__.__proto__;
|
|
const binding = env2_2;
|
|
binding.push(new env5_46(env1_0, env0_0, a0, env2_1));
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function Ct(a0, a1, {bymonth, byweekno, byweekday, byeaster, bymonthday, bynmonthday, byyearday}) { // fn#70420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:35445, offset: 0x01cfbe78, size: 492 bytes, params: 4, frame: 23
|
|
var r1;
|
|
var r2;
|
|
var r3;
|
|
var p_70471Binding;
|
|
var value16;
|
|
var value;
|
|
let r0 = f_70470(bymonth) && !p_70471(bymonth, a0.mmask[a1]);
|
|
r0 = !r0 ? f_70470(byweekno) && !a0.wnomask[a1] : r0;
|
|
r0 = !r0 ? f_70470(byweekday) && !p_70471(byweekday, a0.wdaymask[a1]) : r0;
|
|
r0 = !r0 ? f_70470(a0.nwdaymask) && !a0.nwdaymask[a1] : r0;
|
|
r0 = !r0 ? byeaster !== null && !p_70471(a0.eastermask, a1) : r0;
|
|
if (!r0) {
|
|
r1 = f_70470(bymonthday) || f_70470(bynmonthday);
|
|
r1 = r1 && !p_70471(bymonthday, a0.mdaymask[a1]);
|
|
r1 = r1 && !p_70471(bynmonthday, a0.nmdaymask[a1]);
|
|
r0 = r1;
|
|
}
|
|
if (!r0) {
|
|
value16 = f_70470(byyearday);
|
|
if (value16) {
|
|
r2 = a1 < a0.yearlen && !p_70471(byyearday, a1 + 1);
|
|
r2 = r2 && !p_70471(byyearday, -a0.yearlen + a1);
|
|
if (!r2) {
|
|
r3 = a1 >= a0.yearlen && !p_70471(byyearday, a1 + 1 - a0.yearlen);
|
|
if (r3) {
|
|
p_70471Binding = p_70471;
|
|
value = -a0.nextyearlen + a1;
|
|
value = !p_70471Binding(byyearday, value - a0.yearlen);
|
|
r3 = value;
|
|
}
|
|
r2 = r3;
|
|
}
|
|
r1 = r2;
|
|
} else {
|
|
r1 = value16;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function It(a0, {tzid}) { // fn#70421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:35900, offset: 0x01cfc064, size: 51 bytes, params: 3, frame: 13
|
|
return new env0_48(a0, tzid).rezonedDate();
|
|
}
|
|
|
|
function Bt(a0, a1) { // fn#70424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:41227, offset: 0x01cfc0e7, size: 43 bytes, params: 3, frame: 13
|
|
let value = a1;
|
|
value = _fun70433(value !== undefined ? value : {});
|
|
return _fun70425(a0, value);
|
|
function _fun70425(a0, a1) { // fn#70425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:41270, offset: 0x01cfc112, size: 410 bytes, params: 3, frame: 26
|
|
var environment;
|
|
var value6;
|
|
var env1_653;
|
|
let value = undefined;
|
|
const value2 = Kt(a0, a1);
|
|
const rrulevals = value2.rrulevals;
|
|
const rdatevals = value2.rdatevals;
|
|
const exrulevals = value2.exrulevals;
|
|
const exdatevals = value2.exdatevals;
|
|
const dtstart2 = value2.dtstart;
|
|
const tzid2 = value2.tzid;
|
|
const value3 = a1.cache === false;
|
|
if (a1.compatible) {
|
|
a1.forceset = true;
|
|
a1.unfold = true;
|
|
}
|
|
if (a1.forceset) {
|
|
value6 = environment.__proto__;
|
|
env1_653 = new env1_65(value3);
|
|
env1_653.dtstart(dtstart2);
|
|
env1_653.tzid(tzid2 || value);
|
|
rrulevals.forEach(_fun70429);
|
|
rdatevals.forEach(_fun70430);
|
|
exrulevals.forEach(_fun70431);
|
|
exdatevals.forEach(_fun70432);
|
|
if (a1.compatible && a1.dtstart) {
|
|
env1_653.rdate(dtstart2);
|
|
}
|
|
return env1_653;
|
|
}
|
|
if (rrulevals.length > 1) {
|
|
value6 = environment.__proto__;
|
|
env1_653 = new env1_65(value3);
|
|
env1_653.dtstart(dtstart2);
|
|
env1_653.tzid(tzid2 || value);
|
|
rrulevals.forEach(_fun70429);
|
|
rdatevals.forEach(_fun70430);
|
|
exrulevals.forEach(_fun70431);
|
|
exdatevals.forEach(_fun70432);
|
|
if (a1.compatible && a1.dtstart) {
|
|
env1_653.rdate(dtstart2);
|
|
}
|
|
return env1_653;
|
|
}
|
|
if (rdatevals.length) {
|
|
value6 = environment.__proto__;
|
|
env1_653 = new env1_65(value3);
|
|
env1_653.dtstart(dtstart2);
|
|
env1_653.tzid(tzid2 || value);
|
|
rrulevals.forEach(_fun70429);
|
|
rdatevals.forEach(_fun70430);
|
|
exrulevals.forEach(_fun70431);
|
|
exdatevals.forEach(_fun70432);
|
|
if (a1.compatible && a1.dtstart) {
|
|
env1_653.rdate(dtstart2);
|
|
}
|
|
return env1_653;
|
|
}
|
|
if (exrulevals.length) {
|
|
value6 = environment.__proto__;
|
|
env1_653 = new env1_65(value3);
|
|
env1_653.dtstart(dtstart2);
|
|
env1_653.tzid(tzid2 || value);
|
|
rrulevals.forEach(_fun70429);
|
|
rdatevals.forEach(_fun70430);
|
|
exrulevals.forEach(_fun70431);
|
|
exdatevals.forEach(_fun70432);
|
|
if (a1.compatible && a1.dtstart) {
|
|
env1_653.rdate(dtstart2);
|
|
}
|
|
return env1_653;
|
|
}
|
|
if (exdatevals.length) {
|
|
value6 = environment.__proto__;
|
|
env1_653 = new env1_65(value3);
|
|
env1_653.dtstart(dtstart2);
|
|
env1_653.tzid(tzid2 || value);
|
|
rrulevals.forEach(_fun70429);
|
|
rdatevals.forEach(_fun70430);
|
|
exrulevals.forEach(_fun70431);
|
|
exdatevals.forEach(_fun70432);
|
|
if (a1.compatible && a1.dtstart) {
|
|
env1_653.rdate(dtstart2);
|
|
}
|
|
return env1_653;
|
|
}
|
|
const r14 = rrulevals[0] || ({});
|
|
const binding = env1_63;
|
|
let dtstart = r14.dtstart;
|
|
dtstart = !dtstart ? a1.dtstart : dtstart;
|
|
const r4 = dtstart || dtstart2;
|
|
let tzid = r14.tzid;
|
|
tzid = !tzid ? a1.tzid : tzid;
|
|
value = Zt(r14, r4, tzid || tzid2);
|
|
const value5 = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
value = new binding(value, value3);
|
|
return value instanceof Object ? value : value5;
|
|
function Kt(a0, {unfold}) { // fn#70426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:41290, offset: 0x01cfc2ac, size: 403 bytes, params: 3, frame: 25
|
|
var r7;
|
|
var r5;
|
|
var r12;
|
|
var r6;
|
|
var value4;
|
|
var trim;
|
|
var split;
|
|
var length;
|
|
var value5;
|
|
var property;
|
|
var replace;
|
|
var value6;
|
|
var splice;
|
|
var value7;
|
|
var value8;
|
|
var slice;
|
|
let value = a0;
|
|
const items3 = [];
|
|
const items4 = [];
|
|
const items2 = [];
|
|
const items5 = [];
|
|
const value3 = at(value);
|
|
const dtstart = value3.dtstart;
|
|
const tzid = value3.tzid;
|
|
reducibleJoin2: while (true) {
|
|
if (unfold !== undefined) {
|
|
break reducibleJoin2;
|
|
}
|
|
value4 = false;
|
|
unfold = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
trim = value.trim;
|
|
value = Reflect.apply(trim, value, []);
|
|
r7 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
r7 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
if (r7) {
|
|
split = r7.split;
|
|
if (unfold) {
|
|
value = Reflect.apply(split, r7, ['\n']);
|
|
length = value.length;
|
|
value5 = 0;
|
|
if (value5 < length) {
|
|
r5 = value5;
|
|
reducibleLoop9: while (true) {
|
|
property = value[r5];
|
|
replace = property.replace;
|
|
value6 = Reflect.apply(replace, property, [RegExp('\\s+$', 'g'), '']);
|
|
value[r5] = value6;
|
|
if (value6) {
|
|
reducibleJoin15: while (true) {
|
|
reducibleJoin13: while (true) {
|
|
if (r5 > value5) {
|
|
if (value6[value5] === ' ') {
|
|
value8 = r5 - 1;
|
|
property = value[value8];
|
|
slice = value6.slice;
|
|
value[value8] = property + Reflect.apply(slice, value6, [1]);
|
|
splice = value.splice;
|
|
Reflect.apply(splice, value, [r5, 1]);
|
|
r12 = r5;
|
|
break reducibleJoin15;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = r5 + 1;
|
|
r12 = value7;
|
|
break reducibleJoin15;
|
|
}
|
|
} else {
|
|
splice = value.splice;
|
|
Reflect.apply(splice, value, [r5, 1]);
|
|
r12 = r5;
|
|
}
|
|
length = value.length;
|
|
if (r12 < length) {
|
|
r5 = r12;
|
|
continue reducibleLoop9;
|
|
}
|
|
r6 = value;
|
|
break reducibleLoop9;
|
|
}
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
} else {
|
|
r6 = Reflect.apply(split, r7, [RegExp('\\s', '')]);
|
|
}
|
|
r6.forEach(_fun70427);
|
|
return {dtstart: dtstart, tzid: tzid, rrulevals: items3, rdatevals: items4, exrulevals: items2,
|
|
exdatevals: items5};
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('Invalid empty string');
|
|
function _fun70427(a0) { // fn#70427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:41671, offset: 0x01cfc43f, size: 503 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var value;
|
|
var name;
|
|
var parms;
|
|
var value2;
|
|
var Error;
|
|
var binding;
|
|
var concat;
|
|
var value5;
|
|
var push;
|
|
var value7;
|
|
var value9;
|
|
var value14;
|
|
if (a0) {
|
|
value = _fun70428(a0);
|
|
name = value.name;
|
|
parms = value.parms;
|
|
value = value.value;
|
|
value2 = name.toUpperCase();
|
|
if (value2 === 'RRULE') {
|
|
if (parms.length) {
|
|
Error = global.Error;
|
|
value = 'unsupported RRULE parm: '.concat(parms.join(','));
|
|
throw new Error();
|
|
}
|
|
binding = env0_0;
|
|
push = binding.push;
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
Reflect.apply(push, binding, [ot(a0)]);
|
|
return undefined;
|
|
}
|
|
if (value2 === 'RDATE') {
|
|
value9 = RegExp('RDATE(?:;TZID=([^:=]+))?', 'i').exec(a0);
|
|
if ((value9 === null ? [] : value9 !== undefined ? value9 : [])[1] && !tzid) {
|
|
}
|
|
binding = env0_1;
|
|
concat = binding.concat;
|
|
value14 = environment.__proto__.__proto__.__proto__;
|
|
env0_1 = Reflect.apply(concat, binding, [Xt(value, parms)]);
|
|
return undefined;
|
|
}
|
|
if (value2 === 'EXRULE') {
|
|
if (parms.length) {
|
|
Error = global.Error;
|
|
value = 'unsupported EXRULE parm: '.concat(parms.join(','));
|
|
throw new Error();
|
|
}
|
|
binding = env0_2;
|
|
push = binding.push;
|
|
value7 = environment.__proto__.__proto__.__proto__;
|
|
Reflect.apply(push, binding, [ot(value)]);
|
|
return undefined;
|
|
}
|
|
if (value2 === 'EXDATE') {
|
|
binding = env0_3;
|
|
concat = binding.concat;
|
|
value5 = environment.__proto__.__proto__.__proto__;
|
|
env0_3 = Reflect.apply(concat, binding, [Xt(value, parms)]);
|
|
return undefined;
|
|
}
|
|
if (value2 === 'DTSTART') {
|
|
return undefined;
|
|
}
|
|
Error = global.Error;
|
|
value = 'unsupported property: ' + name;
|
|
throw new Error();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70429(a0) { // fn#70429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:42872, offset: 0x01cfc726, size: 75 bytes, params: 2, frame: 19
|
|
const binding = env0_3;
|
|
binding.rrule(new env2_63(Zt(a0, dtstart, tzid), result));
|
|
}
|
|
|
|
function _fun70430(a0) { // fn#70430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:42927, offset: 0x01cfc771, size: 25 bytes, params: 2, frame: 11
|
|
env0_3.rdate(a0);
|
|
}
|
|
|
|
function _fun70431(a0) { // fn#70431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:42964, offset: 0x01cfc78a, size: 75 bytes, params: 2, frame: 19
|
|
const binding = env0_3;
|
|
binding.exrule(new env2_63(Zt(a0, dtstart, tzid), result));
|
|
}
|
|
|
|
function _fun70432(a0) { // fn#70432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43020, offset: 0x01cfc7d5, size: 25 bytes, params: 2, frame: 11
|
|
env0_3.exdate(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70433(a0) { // fn#70433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43172, offset: 0x01cfc7ee, size: 163 bytes, params: 2, frame: 18
|
|
var Error;
|
|
const items2 = [];
|
|
let Object = global.Object;
|
|
let value = Object.keys(a0);
|
|
Object = global.Object;
|
|
const env0_1 = Object.keys(env1_64);
|
|
value.forEach(_fun70434);
|
|
if (items2.length) {
|
|
Error = global.Error;
|
|
value = items2.join(', ');
|
|
value = 'Invalid options: ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return H_70499(H_70499({}, env1_64), a0);
|
|
function _fun70434(a0) { // fn#70434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43242, offset: 0x01cfc891, size: 44 bytes, params: 2, frame: 14
|
|
if (!p_70471(env0_1, a0)) {
|
|
env0_0.push(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function Zt(a0, a1, a2) { // fn#70435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43363, offset: 0x01cfc8bd, size: 46 bytes, params: 4, frame: 14
|
|
return H_70499(H_70499({}, a0), {dtstart: a1, tzid: a2});
|
|
}
|
|
|
|
function Xt(a0, a1) { // fn#70436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43421, offset: 0x01cfc8eb, size: 55 bytes, params: 3, frame: 13
|
|
((a0) => {
|
|
a0.forEach(_fun70438);
|
|
})(a1);
|
|
return a0.split(',').map(function(a0) {
|
|
return A_70488(a0);
|
|
});
|
|
function _fun70437(a0) { // fn#70437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43445, offset: 0x01cfc922, size: 26 bytes, params: 2, frame: 11
|
|
a0.forEach(function(a0) {
|
|
if (RegExp('(VALUE=DATE(-TIME)?)|(TZID=)', '').test(a0)) {
|
|
return undefined;
|
|
}
|
|
var Error = global.Error;
|
|
var value = 'unsupported RDATE/EXDATE parm: ' + a0;
|
|
value = new Error(value);
|
|
throw value;
|
|
});
|
|
}
|
|
|
|
function _fun70439(a0) { // fn#70439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43601, offset: 0x01cfc986, size: 19 bytes, params: 2, frame: 11
|
|
return A_70488(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function Gt(a0) { // fn#70440, offset: 0x01cfc999, size: 25 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun70441;
|
|
function _fun70441(a0) { // fn#70441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43662, offset: 0x01cfc9b2, size: 176 bytes, params: 2, frame: 14
|
|
var r5;
|
|
var origOptions;
|
|
var property;
|
|
var value3;
|
|
if (a0 !== undefined) {
|
|
env0_1['_'.concat(env0_0)] = a0;
|
|
}
|
|
if (env0_1['_'.concat(env0_0)] !== undefined) {
|
|
return env0_1['_'.concat(env0_0)];
|
|
}
|
|
let _rrule = env0_1._rrule;
|
|
let length = _rrule.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r5 = value2;
|
|
loopExit4: while (true) {
|
|
_rrule = env0_1._rrule;
|
|
origOptions = _rrule[r5].origOptions;
|
|
property = origOptions[env0_0];
|
|
if (property) {
|
|
return property;
|
|
}
|
|
value3 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
_rrule = env0_1._rrule;
|
|
length = _rrule.length;
|
|
if (value3 < length) {
|
|
r5 = value3;
|
|
continue;
|
|
}
|
|
break loopExit4;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function $t(a0, a1) { // fn#70442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46479, offset: 0x01cfca62, size: 127 bytes, params: 3, frame: 16
|
|
var String;
|
|
var p_70471Binding;
|
|
var map;
|
|
var value;
|
|
if (a0 instanceof env0_63) {
|
|
p_70471Binding = p_70471;
|
|
map = a1.map;
|
|
String = global.String;
|
|
value = Reflect.apply(map, a1, [String]);
|
|
String = global.String;
|
|
if (!p_70471Binding(value, String(a0))) {
|
|
a1.push(a0);
|
|
}
|
|
return undefined;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
String = global.String;
|
|
value = String(a0);
|
|
value += ' is not RRule instance';
|
|
const value2 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
|
|
const typeError = new TypeError();
|
|
throw typeError instanceof Object ? typeError : value2;
|
|
}
|
|
|
|
function Jt(a0, a1) { // fn#70443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46613, offset: 0x01cfcae1, size: 138 bytes, params: 3, frame: 16
|
|
var p_70471Binding;
|
|
var map;
|
|
var Number;
|
|
var value3;
|
|
const Date = global.Date;
|
|
if (a0 instanceof Date) {
|
|
p_70471Binding = p_70471;
|
|
map = a1.map;
|
|
Number = global.Number;
|
|
value3 = Reflect.apply(map, a1, [Number]);
|
|
Number = global.Number;
|
|
if (!p_70471Binding(value3, Number(a0))) {
|
|
a1.push(a0);
|
|
R_70485(a1);
|
|
}
|
|
return undefined;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
const String = global.String;
|
|
let value = String(a0);
|
|
value += ' is not Date instance';
|
|
const value2 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
|
|
const typeError = new TypeError();
|
|
throw typeError instanceof Object ? typeError : value2;
|
|
}
|
|
|
|
function Vt(a0, a1, a2) { // fn#70444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46756, offset: 0x01cfcb6b, size: 139 bytes, params: 4, frame: 18
|
|
var r1;
|
|
let value = !a2;
|
|
if (a2) {
|
|
value = a2.toUpperCase();
|
|
value = value === 'UTC';
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
const concat = ''.concat;
|
|
if (r1) {
|
|
r1 = Reflect.apply(concat, '', [a0, ':']);
|
|
} else {
|
|
value = Reflect.apply(concat, '', [a0, ';TZID=']);
|
|
value = value.concat(a2, ':');
|
|
r1 = value;
|
|
}
|
|
value = a1.map(_fun70445);
|
|
value = value.join(',');
|
|
return ''.concat(r1).concat(value);
|
|
function _fun70445(a0) { // fn#70445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46875, offset: 0x01cfcbf6, size: 36 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__;
|
|
return N_70487(a0.valueOf(), env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function d_70446(a0, a1) { // fn#70446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:135, offset: 0x01cfcc1a, size: 113 bytes, params: 3, frame: 25
|
|
var r5;
|
|
var r10;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var binding;
|
|
var o;
|
|
var value2;
|
|
var value3;
|
|
var Object;
|
|
for (propertyName in a1) {
|
|
binding = env0_0;
|
|
value2 = binding.o(a1, propertyName);
|
|
if (!value2) {
|
|
r10 = value2;
|
|
continue;
|
|
}
|
|
binding = env0_0;
|
|
o = binding.o;
|
|
value3 = !Reflect.apply(o, binding, [a0, propertyName]);
|
|
r10 = value3;
|
|
if (!r10) {
|
|
r5 = propertyName2;
|
|
continue;
|
|
}
|
|
Object = global.Object;
|
|
Object.defineProperty(a0, propertyName, {enumerable: true, get: a1[propertyName]});
|
|
r5 = propertyName2;
|
|
}
|
|
}
|
|
|
|
function Frequency() { // fn#70449, offset: 0x01cfccfe, size: 9 bytes, params: 1, frame: 1
|
|
return env0_37;
|
|
}
|
|
|
|
function RRule() { // fn#70450, offset: 0x01cfcd07, size: 9 bytes, params: 1, frame: 1
|
|
return env0_63;
|
|
}
|
|
|
|
function RRuleSet() { // fn#70451, offset: 0x01cfcd10, size: 9 bytes, params: 1, frame: 1
|
|
return env0_65;
|
|
}
|
|
|
|
function Weekday() { // fn#70452, offset: 0x00c36b39, size: 9 bytes, params: 1, frame: 1
|
|
return env0_2;
|
|
}
|
|
|
|
function _fun70455() { // fn#70455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:783, offset: 0x01cfcd22, size: 100 bytes, params: 1, frame: 4
|
|
const closure = function(a0, a1) {
|
|
if (a1 === 0) {
|
|
throw new global.Error("Can't create weekday with n == 0");
|
|
}
|
|
this.weekday = a0;
|
|
this.n = a1;
|
|
};
|
|
closure.fromStr = fromStr;
|
|
closure.prototype.nth = function(a0) {
|
|
var value = this;
|
|
return value.n === a0 ? value : new t_70456(value.weekday, a0);
|
|
};
|
|
closure.prototype.equals = function(a0) {
|
|
return this.weekday === a0.weekday && this.n === a0.n;
|
|
};
|
|
closure.prototype.toString = toString_70460;
|
|
closure.prototype.getJsWeekday = function() {
|
|
return this.weekday === 6 ? 0 : this.weekday + 1;
|
|
};
|
|
return closure;
|
|
function fromStr(a0) { // fn#70457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:912, offset: 0x01cfcdc9, size: 50 bytes, params: 2, frame: 12
|
|
const t_70456Binding = t_70456;
|
|
let value = environment.__proto__;
|
|
value = env1_1.indexOf(a0);
|
|
const value2 = Object.create(t_70456Binding.prototype, {constructor: {value: t_70456Binding}});
|
|
const t_704562 = new t_70456Binding();
|
|
return t_704562 instanceof Object ? t_704562 : value2;
|
|
}
|
|
|
|
function nth_70458(a0) { // fn#70458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:968, offset: 0x01cfcdfb, size: 57 bytes, params: 2, frame: 14
|
|
const value = this;
|
|
return value.n === a0 ? value : new t_70456(value.weekday, a0);
|
|
}
|
|
|
|
function toString_70460() { // fn#70460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:1125, offset: 0x01cfce5f, size: 88 bytes, params: 1, frame: 14
|
|
var r3;
|
|
var r0;
|
|
var String;
|
|
let value = environment.__proto__;
|
|
const property = env1_1[this.weekday];
|
|
let n = this.n;
|
|
if (n) {
|
|
n = this.n;
|
|
value = '';
|
|
r3 = n > 0 ? '+' : value;
|
|
String = global.String;
|
|
n = this.n;
|
|
value = r3 + String(n) + property;
|
|
r0 = value;
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function a_70464(a0) { // fn#70464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:1374, offset: 0x01cfced8, size: 36 bytes, params: 2, frame: 12
|
|
return typeof a0 === 'string' && env0_1.includes(a0);
|
|
}
|
|
|
|
function h_70466(a0, a1) { // fn#70466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:1560, offset: 0x01cfcf3a, size: 83 bytes, params: 3, frame: 15
|
|
var r5;
|
|
var r1;
|
|
var items2;
|
|
var concat;
|
|
const items3 = [];
|
|
let value = isArray(a0);
|
|
const value2 = 0;
|
|
const value3 = value2 < a1;
|
|
if (value) {
|
|
if (value3) {
|
|
r1 = value2;
|
|
reducibleLoop4: while (true) {
|
|
items2 = [];
|
|
concat = items2.concat;
|
|
items3[r1] = Reflect.apply(concat, items2, [a0]);
|
|
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value < a1) {
|
|
r1 = value;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
}
|
|
} else if (value3) {
|
|
r5 = value2;
|
|
reducibleLoop2: while (true) {
|
|
items3[r5] = a0;
|
|
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value < a1) {
|
|
r5 = value;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
return items3;
|
|
}
|
|
|
|
function l_70469(a0) { // fn#70469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:1935, offset: 0x01cfcfe4, size: 36 bytes, params: 2, frame: 11
|
|
const value = i_70462(a0);
|
|
return value ? a0.length === 0 : !value;
|
|
}
|
|
|
|
function p_70471(a0, a1) { // fn#70471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:2010, offset: 0x01cfd01e, size: 46 bytes, params: 3, frame: 12
|
|
var r0;
|
|
let value = f_70470(a0);
|
|
if (value) {
|
|
value = a0.indexOf(a1);
|
|
value = value !== -1;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function T_70475(a0) { // fn#70475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:2365, offset: 0x01cfd0c4, size: 48 bytes, params: 2, frame: 13
|
|
return E_70474(a0) && !global.isNaN(a0.getTime());
|
|
}
|
|
|
|
function O_70477(a0) { // fn#70477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:2471, offset: 0x01cfd114, size: 88 bytes, params: 2, frame: 13
|
|
const binding = env0_16;
|
|
const time = a0.getTime();
|
|
const x_70476Binding = x_70476;
|
|
const value = time - x_70476Binding(a0);
|
|
const value4 = binding.getTime() - x_70476Binding(binding);
|
|
const Math = global.Math;
|
|
return Math.round((value - value4) / 86400000);
|
|
}
|
|
|
|
function D_70478(a0) { // fn#70478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:2572, offset: 0x01cfd16c, size: 64 bytes, params: 2, frame: 12
|
|
const Date = global.Date;
|
|
let value = env0_16.getTime();
|
|
value += a0 * 86400000;
|
|
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date();
|
|
return date instanceof Object ? date : value2;
|
|
}
|
|
|
|
function S_70479(a0) { // fn#70479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:2625, offset: 0x01cfd1ac, size: 63 bytes, params: 2, frame: 12
|
|
const uTCMonth = a0.getUTCMonth();
|
|
return uTCMonth !== 1 ? env0_15[uTCMonth] : k_70473(a0.getUTCFullYear()) ? 29 : env0_15[uTCMonth];
|
|
}
|
|
|
|
function U_70480(a0) { // fn#70480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:2711, offset: 0x01cfd1eb, size: 26 bytes, params: 2, frame: 10
|
|
const binding = env0_17;
|
|
const getUTCDay = a0.getUTCDay;
|
|
return binding[Reflect.apply(getUTCDay, a0, [])];
|
|
}
|
|
|
|
function R_70485(a0) { // fn#70485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:3102, offset: 0x01cfd32f, size: 27 bytes, params: 2, frame: 11
|
|
a0.sort(function(a0, a1) {
|
|
return a0.getTime() - a1.getTime();
|
|
});
|
|
}
|
|
|
|
function N_70487(a0, a1) { // fn#70487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:3176, offset: 0x01cfd36a, size: 245 bytes, params: 3, frame: 18
|
|
const value = a1;
|
|
const r3 = !(value !== undefined) || value;
|
|
const Date = global.Date;
|
|
let date = new Date(a0);
|
|
const y_70384Binding = y_70384;
|
|
const items2 = [y_70384Binding(date.getUTCFullYear().toString(), 4, '0')];
|
|
items2[1] = y_70384Binding(date.getUTCMonth() + 1, 2, '0');
|
|
const getUTCDate = date.getUTCDate;
|
|
items2[2] = y_70384Binding(Reflect.apply(getUTCDate, date, []), 2, '0');
|
|
items2[3] = 'T';
|
|
const getUTCHours = date.getUTCHours;
|
|
items2[4] = y_70384Binding(Reflect.apply(getUTCHours, date, []), 2, '0');
|
|
const getUTCMinutes = date.getUTCMinutes;
|
|
items2[5] = y_70384Binding(Reflect.apply(getUTCMinutes, date, []), 2, '0');
|
|
const getUTCSeconds = date.getUTCSeconds;
|
|
items2[6] = y_70384Binding(Reflect.apply(getUTCSeconds, date, []), 2, '0');
|
|
date = '';
|
|
items2[7] = r3 ? 'Z' : date;
|
|
return items2.join(date);
|
|
}
|
|
|
|
function _fun70490() { // fn#70490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:3807, offset: 0x01cfd5b3, size: 87 bytes, params: 1, frame: 4
|
|
const t_704912 = t_70491;
|
|
t_704912.prototype.accept = accept_70492;
|
|
t_704912.prototype.add = function(a0) {
|
|
this._result.push(a0);
|
|
return true;
|
|
};
|
|
t_704912.prototype.getValue = function() {
|
|
var property = this._result;
|
|
var method = this.method;
|
|
if (method === 'all') {
|
|
return property;
|
|
}
|
|
if (method === 'between') {
|
|
return property;
|
|
}
|
|
return property.length ? property[property.length - 1] : null;
|
|
};
|
|
t_704912.prototype.clone = clone_70495;
|
|
return t_704912;
|
|
function clone_70495() { // fn#70495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:4711, offset: 0x01cfd887, size: 44 bytes, params: 1, frame: 13
|
|
const t_70491Binding = t_70491;
|
|
const method = this.method;
|
|
const args = this.args;
|
|
const value = Object.create(t_70491Binding.prototype, {constructor: {value: t_70491Binding}});
|
|
const t_704912 = new t_70491Binding(method, args);
|
|
return t_704912 instanceof Object ? t_704912 : value;
|
|
}
|
|
|
|
}
|
|
|
|
function j_70496(a0, a1) { // fn#70496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:4767, offset: 0x01cfd8b3, size: 82 bytes, params: 3, frame: 13
|
|
var r3;
|
|
var Array;
|
|
var value;
|
|
const Object = global.Object;
|
|
const setPrototypeOf = Object.setPrototypeOf;
|
|
if (setPrototypeOf) {
|
|
r3 = setPrototypeOf;
|
|
} else {
|
|
Array = global.Array;
|
|
value = Object.create([]);
|
|
value = value instanceof Array;
|
|
r3 = value && (function(a0, a1) {
|
|
a0.__proto__ = a1;
|
|
});
|
|
}
|
|
r3 = !r3 ? function(a0, a1) {
|
|
var r3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty;
|
|
for (propertyName in a1) {
|
|
hasOwnProperty = global.Object.prototype.hasOwnProperty;
|
|
if (!hasOwnProperty.call(a1, propertyName)) {
|
|
r3 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = a1[propertyName];
|
|
r3 = propertyName2;
|
|
}
|
|
} : r3;
|
|
return r3(a0, a1);
|
|
}
|
|
|
|
function H_70499() { // fn#70499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:5225, offset: 0x01cfd905, size: 55 bytes, params: 1, frame: 13
|
|
const Object = global.Object;
|
|
return (Object.assign || (function(a0) {
|
|
var r2;
|
|
var r10;
|
|
var value3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty;
|
|
var value4;
|
|
var value = arguments.length;
|
|
var value2 = 1;
|
|
if (value2 < value) {
|
|
r2 = value2;
|
|
while (true) {
|
|
value3 = arguments[r2];
|
|
for (propertyName in value3) {
|
|
hasOwnProperty = global.Object.prototype.hasOwnProperty;
|
|
if (!hasOwnProperty.call(value3, propertyName)) {
|
|
r10 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = value3[propertyName];
|
|
r10 = propertyName2;
|
|
}
|
|
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value4 < value) {
|
|
r2 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return a0;
|
|
})).apply(this, arguments);
|
|
}
|
|
|
|
function _fun70501(a0) { // fn#70501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:5666, offset: 0x01cfd93c, size: 51 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const e_705022 = e_70502;
|
|
W_70385(e_705022, a0);
|
|
e_705022.prototype.add = function(a0) {
|
|
var r0;
|
|
var value = this.iterator(a0, this._result.length);
|
|
if (value) {
|
|
this._result.push(a0);
|
|
r0 = true;
|
|
} else {
|
|
r0 = !!value;
|
|
}
|
|
return r0;
|
|
};
|
|
return e_705022;
|
|
function e_70502(a0, a1, a2) { // fn#70502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:5678, offset: 0x01cfd96f, size: 45 bytes, params: 4, frame: 15
|
|
const value = this;
|
|
const r0 = env0_0.call(value, a0, a1) || value;
|
|
r0.iterator = a2;
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70507() { // fn#70507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:7163, offset: 0x01cfda11, size: 352 bytes, params: 1, frame: 4
|
|
const t_705082 = t_70508;
|
|
t_705082.isFullyConvertible = isFullyConvertible;
|
|
t_705082.prototype.isFullyConvertible = function() {
|
|
return t_70508.isFullyConvertible(this.rrule);
|
|
};
|
|
t_705082.prototype.toString = toString_70516;
|
|
t_705082.prototype.HOURLY = function() {
|
|
var gettext = this.gettext;
|
|
if (this.options.interval !== 1) {
|
|
this.add(this.options.interval.toString());
|
|
}
|
|
this.add(this.plural(this.options.interval) ? gettext('hours') : gettext('hour'));
|
|
};
|
|
t_705082.prototype.MINUTELY = function() {
|
|
var gettext = this.gettext;
|
|
if (this.options.interval !== 1) {
|
|
this.add(this.options.interval.toString());
|
|
}
|
|
this.add(this.plural(this.options.interval) ? gettext('minutes') : gettext('minute'));
|
|
};
|
|
t_705082.prototype.DAILY = DAILY;
|
|
t_705082.prototype.WEEKLY = WEEKLY;
|
|
t_705082.prototype.MONTHLY = MONTHLY;
|
|
t_705082.prototype.YEARLY = YEARLY;
|
|
t_705082.prototype._bymonthday = _bymonthday;
|
|
t_705082.prototype._byweekday = _byweekday;
|
|
t_705082.prototype._byhour = function() {
|
|
var gettext = this.gettext;
|
|
this.add(gettext('at')).add(this.list(this.origOptions.byhour, undefined, gettext('and')));
|
|
};
|
|
t_705082.prototype._bymonth = function() {
|
|
this.add(this.list(this.options.bymonth, this.monthtext, this.gettext('and')));
|
|
};
|
|
t_705082.prototype.nth = nth_70527;
|
|
t_705082.prototype.monthtext = function(a0) {
|
|
return this.language.monthNames[a0 - 1];
|
|
};
|
|
t_705082.prototype.weekdaytext = weekdaytext;
|
|
t_705082.prototype.plural = function(a0) {
|
|
return a0 % 100 !== 1;
|
|
};
|
|
t_705082.prototype.add = function(a0) {
|
|
this.text.push(' ');
|
|
this.text.push(a0);
|
|
return this;
|
|
};
|
|
t_705082.prototype.list = list_70532;
|
|
return t_705082;
|
|
function t_70508(a0, a1, a2, a3) { // fn#70508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:7174, offset: 0x01cfdb71, size: 852 bytes, params: 5, frame: 18
|
|
var environment;
|
|
var object;
|
|
var concat;
|
|
var value4;
|
|
var length;
|
|
var isArrayBinding;
|
|
var t_70508Y2;
|
|
var allWeeks;
|
|
var someWeeks;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
const value3 = a3;
|
|
const r5 = value !== undefined ? value : K_70505;
|
|
let r6 = value2 !== undefined ? value2 : env1_39;
|
|
let r4 = value3 !== undefined ? value3 : B_70506;
|
|
this.text = [];
|
|
if (!r6) {
|
|
value = environment.__proto__;
|
|
r6 = env1_39;
|
|
}
|
|
this.language = r6;
|
|
this.gettext = r5;
|
|
this.dateFormatter = r4;
|
|
this.rrule = a0;
|
|
let options = a0.options;
|
|
this.options = options;
|
|
let origOptions = a0.origOptions;
|
|
this.origOptions = origOptions;
|
|
let bymonthday = this.origOptions.bymonthday;
|
|
if (bymonthday) {
|
|
object = [];
|
|
concat = object.concat;
|
|
options = this.options;
|
|
bymonthday = options.bymonthday;
|
|
value = Reflect.apply(concat, object, [bymonthday]);
|
|
object = [];
|
|
concat = object.concat;
|
|
options = this.options;
|
|
value4 = Reflect.apply(concat, object, [options.bynmonthday]);
|
|
value.sort(function(a0, a1) {
|
|
return a0 - a1;
|
|
});
|
|
value4.sort(_fun70510);
|
|
concat = value.concat;
|
|
this.bymonthday = Reflect.apply(concat, value, [value4]);
|
|
bymonthday = this.bymonthday;
|
|
if (!bymonthday.length) {
|
|
this.bymonthday = null;
|
|
}
|
|
}
|
|
value = environment.__proto__;
|
|
const i_70462Binding = i_70462;
|
|
let byweekday = this.origOptions.byweekday;
|
|
if (i_70462Binding(byweekday)) {
|
|
isArrayBinding = isArray;
|
|
origOptions = this.origOptions;
|
|
byweekday = origOptions.byweekday;
|
|
value = isArrayBinding(byweekday);
|
|
origOptions = this.origOptions;
|
|
byweekday = origOptions.byweekday;
|
|
r6 = value ? byweekday : [byweekday];
|
|
value = global.String(r6);
|
|
object = {};
|
|
object.allWeeks = r6.filter(function(a0) {
|
|
return !a0.n;
|
|
});
|
|
object.someWeeks = r6.filter(_fun70512);
|
|
r4 = value.indexOf('MO') !== -1 && value.indexOf('TU') !== -1;
|
|
r4 = r4 && value.indexOf('WE') !== -1;
|
|
r4 = r4 && value.indexOf('TH') !== -1;
|
|
r4 = r4 && value.indexOf('FR') !== -1;
|
|
r4 = r4 && value.indexOf('SA') === -1;
|
|
r4 = r4 && value.indexOf('SU') === -1;
|
|
object.isWeekdays = r4;
|
|
r4 = value.indexOf('MO') !== -1 && value.indexOf('TU') !== -1;
|
|
r4 = r4 && value.indexOf('WE') !== -1;
|
|
r4 = r4 && value.indexOf('TH') !== -1;
|
|
r4 = r4 && value.indexOf('FR') !== -1;
|
|
r4 = r4 && value.indexOf('SA') !== -1;
|
|
r4 = r4 && value.indexOf('SU') !== -1;
|
|
object.isEveryDay = r4;
|
|
this.byweekday = object;
|
|
t_70508Y2 = t_70508Y;
|
|
byweekday = this.byweekday;
|
|
allWeeks = byweekday.allWeeks;
|
|
allWeeks.sort(t_70508Y2);
|
|
byweekday = this.byweekday;
|
|
someWeeks = byweekday.someWeeks;
|
|
someWeeks.sort(t_70508Y2);
|
|
byweekday = this.byweekday;
|
|
allWeeks = byweekday.allWeeks;
|
|
length = allWeeks.length;
|
|
if (!length) {
|
|
this.byweekday.allWeeks = null;
|
|
}
|
|
byweekday = this.byweekday;
|
|
someWeeks = byweekday.someWeeks;
|
|
length = someWeeks.length;
|
|
if (!length) {
|
|
this.byweekday.someWeeks = null;
|
|
}
|
|
} else {
|
|
this.byweekday = null;
|
|
}
|
|
}
|
|
|
|
function isFullyConvertible(a0) { // fn#70514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:8524, offset: 0x01cfdf05, size: 175 bytes, params: 2, frame: 22
|
|
var r5;
|
|
var origOptions;
|
|
var value2;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var z_70504Binding;
|
|
let options = a0.options;
|
|
let freq = options.freq;
|
|
let IMPLEMENTED = t_70508.IMPLEMENTED;
|
|
if (freq in IMPLEMENTED) {
|
|
origOptions = a0.origOptions;
|
|
if (origOptions.until) {
|
|
reducibleJoin4: while (true) {
|
|
if (a0.origOptions.count) {
|
|
return false;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
}
|
|
origOptions = a0.origOptions;
|
|
value2 = environment.__proto__;
|
|
properties = Object.keys(origOptions);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties !== undefined) {
|
|
r5 = properties2;
|
|
reducibleLoop5: while (true) {
|
|
propertyName = properties[r5];
|
|
propertyName2 = r5 + 1;
|
|
if (propertyName === undefined) {
|
|
return true;
|
|
}
|
|
if (z_70504(['dtstart', 'wkst', 'freq'], propertyName)) {
|
|
return true;
|
|
}
|
|
z_70504Binding = z_70504;
|
|
IMPLEMENTED = t_70508.IMPLEMENTED;
|
|
options = a0.options;
|
|
freq = options.freq;
|
|
if (!z_70504Binding(IMPLEMENTED[freq], propertyName)) {
|
|
return false;
|
|
}
|
|
r5 = propertyName2;
|
|
continue reducibleLoop5;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function toString_70516() { // fn#70516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:8871, offset: 0x01cfdfd1, size: 402 bytes, params: 1, frame: 19
|
|
var FREQUENCIES;
|
|
var until;
|
|
var count;
|
|
var add;
|
|
var plural;
|
|
const gettext = this.gettext;
|
|
let options = this.options;
|
|
const freq = options.freq;
|
|
var value;
|
|
const IMPLEMENTED = t_70508.IMPLEMENTED;
|
|
if (freq in IMPLEMENTED) {
|
|
value = gettext('every');
|
|
this.text = [value];
|
|
value = environment.__proto__;
|
|
FREQUENCIES = env1_63.FREQUENCIES;
|
|
options = this.options;
|
|
this[FREQUENCIES[options.freq]]();
|
|
options = this.options;
|
|
until = options.until;
|
|
if (until) {
|
|
this.add(gettext('until'));
|
|
until = this.options.until;
|
|
this.add(this.dateFormatter(until.getUTCFullYear(), this.language.monthNames[until.getUTCMonth()],
|
|
until.getUTCDate()));
|
|
} else {
|
|
options = this.options;
|
|
count = options.count;
|
|
if (count) {
|
|
value = this.add(gettext('for'));
|
|
add = value.add;
|
|
options = this.options;
|
|
count = options.count;
|
|
value = Reflect.apply(add, value, [count.toString()]);
|
|
add = value.add;
|
|
plural = this.plural;
|
|
options = this.options;
|
|
count = options.count;
|
|
Reflect.apply(add, value, [Reflect.apply(plural, this, [count]) ? gettext('times') : gettext('time')]);
|
|
}
|
|
}
|
|
if (!this.isFullyConvertible()) {
|
|
this.add(gettext('(~ approximate)'));
|
|
}
|
|
return this.text.join('');
|
|
}
|
|
return gettext('RRule error: Unable to fully convert this rrule to text');
|
|
}
|
|
|
|
function weekdaytext(a0) { // fn#70529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:13439, offset: 0x01cfec08, size: 111 bytes, params: 2, frame: 13
|
|
var r1;
|
|
let value = environment.__proto__;
|
|
const r2 = o_70463(a0) ? (a0 + 1) % 7 : a0.getJsWeekday();
|
|
const n = a0.n;
|
|
value = '';
|
|
if (n) {
|
|
value = this.nth(a0.n);
|
|
value += ' ';
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return r1 + this.language.dayNames[r2];
|
|
}
|
|
|
|
function list_70532(a0, a1, a2, a3) { // fn#70532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:13691, offset: 0x01cfecb6, size: 225 bytes, params: 5, frame: 21
|
|
var r3;
|
|
var r4;
|
|
var r11;
|
|
var r0;
|
|
var length;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
const value3 = a3;
|
|
const r9 = value3 !== undefined ? value3 : ',';
|
|
let r2 = isArray(value) ? value : [value];
|
|
let r1 = value2 || (function(a0) {
|
|
return a0.toString();
|
|
});
|
|
value = r2.map(list_70532O);
|
|
if (a2) {
|
|
length = value.length;
|
|
value6 = 0;
|
|
value7 = '';
|
|
if (value6 < length) {
|
|
r3 = value6;
|
|
r4 = value7;
|
|
while (true) {
|
|
if (value6 === r3) {
|
|
r11 = r4;
|
|
} else {
|
|
if (r3 === value.length - 1) {
|
|
value9 = r4 + (' ' + a2 + ' ');
|
|
r2 = value9;
|
|
} else {
|
|
value8 = r4 + (r9 + ' ');
|
|
r2 = value8;
|
|
}
|
|
r11 = r2;
|
|
}
|
|
value10 = r11 + value[r3];
|
|
value11 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = value.length;
|
|
if (value11 < length) {
|
|
r3 = value11;
|
|
r4 = value10;
|
|
continue;
|
|
}
|
|
r1 = value10;
|
|
break;
|
|
}
|
|
} else {
|
|
r1 = value7;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
value = value.join(r9 + ' ');
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function list_70532O(a0) { // fn#70534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:13798, owner: list_70532.o, offset: 0x01cfed97, size: 34 bytes, params: 2, frame: 14
|
|
return require && require.call(env0_1, a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70535() { // fn#70535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14000, offset: 0x01cfedb9, size: 119 bytes, params: 1, frame: 4
|
|
const closure = function(a0) {
|
|
this.done = true;
|
|
this.rules = a0;
|
|
};
|
|
closure.prototype.start = function(a0) {
|
|
this.text = a0;
|
|
this.done = false;
|
|
return this.nextSymbol();
|
|
};
|
|
closure.prototype.isDone = function() {
|
|
return this.done && this.symbol === null;
|
|
};
|
|
closure.prototype.nextSymbol = nextSymbol;
|
|
closure.prototype.accept = function(a0) {
|
|
var value;
|
|
if (this.symbol === a0) {
|
|
if (this.value) {
|
|
value = this.value;
|
|
this.nextSymbol();
|
|
return value;
|
|
}
|
|
this.nextSymbol();
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|
|
closure.prototype.acceptNumber = function() {
|
|
return this.accept('number');
|
|
};
|
|
closure.prototype.expect = function(a0) {
|
|
if (this.accept(a0)) {
|
|
return true;
|
|
}
|
|
var Error = global.Error;
|
|
var value = 'expected ' + a0;
|
|
value = value + ' but found ' + this.symbol;
|
|
value = new Error(value);
|
|
throw value;
|
|
};
|
|
return closure;
|
|
}
|
|
|
|
function _fun70543() { // fn#70543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:19714, offset: 0x01cff04f, size: 101 bytes, params: 1, frame: 4
|
|
const closure = function(a0, a1, a2, a3) {
|
|
var value = a3;
|
|
this.hour = a0;
|
|
this.minute = a1;
|
|
this.second = a2;
|
|
this.millisecond = value || 0;
|
|
};
|
|
closure.prototype.getHours = function() {
|
|
return this.hour;
|
|
};
|
|
closure.prototype.getMinutes = function() {
|
|
return this.minute;
|
|
};
|
|
closure.prototype.getSeconds = function() {
|
|
return this.second;
|
|
};
|
|
closure.prototype.getMilliseconds = function() {
|
|
return this.millisecond;
|
|
};
|
|
closure.prototype.getTime = function() {
|
|
var value = 60 * this.hour;
|
|
value = value * 60 + 60 * this.minute + this.second;
|
|
return 1000 * value + this.millisecond;
|
|
};
|
|
return closure;
|
|
}
|
|
|
|
function _fun70550(a0) { // fn#70550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:20149, offset: 0x01cff152, size: 298 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const e_705512 = e_70551;
|
|
W_70385(e_705512, a0);
|
|
e_705512.fromDate = function(a0) {
|
|
var value = a0.getUTCFullYear();
|
|
var value3 = a0.getUTCMonth() + 1;
|
|
var value4 = a0.getUTCDate();
|
|
var value5 = a0.getUTCHours();
|
|
var value6 = a0.getUTCMinutes();
|
|
var value7 = a0.getUTCSeconds();
|
|
var value9 = a0.valueOf() % 1000;
|
|
var value10 = Object.create(this.prototype, {constructor: {value: this}});
|
|
value = new this(value, value3, value4, value5, value6, value7, value9);
|
|
return value instanceof Object ? value : value10;
|
|
};
|
|
e_705512.prototype.getWeekday = getWeekday;
|
|
e_705512.prototype.getTime = function() {
|
|
var Date = global.Date;
|
|
var Date2 = global.Date;
|
|
var year = this.year;
|
|
var value = this.month - 1;
|
|
value = Date2.UTC(year, value, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
value = new Date(value);
|
|
return value.getTime();
|
|
};
|
|
e_705512.prototype.getDay = function() {
|
|
return this.day;
|
|
};
|
|
e_705512.prototype.getMonth = function() {
|
|
return this.month;
|
|
};
|
|
e_705512.prototype.getYear = function() {
|
|
return this.year;
|
|
};
|
|
e_705512.prototype.addYears = function(a0) {
|
|
this.year += a0;
|
|
};
|
|
e_705512.prototype.addMonths = addMonths_70559;
|
|
e_705512.prototype.addWeekly = addWeekly;
|
|
e_705512.prototype.addDaily = function(a0) {
|
|
this.day += a0;
|
|
this.fixDay();
|
|
};
|
|
e_705512.prototype.addHours = addHours_70562;
|
|
e_705512.prototype.addMinutes = addMinutes_70563;
|
|
e_705512.prototype.addSeconds = addSeconds_70564;
|
|
e_705512.prototype.fixDay = fixDay;
|
|
e_705512.prototype.add = add_70566;
|
|
return e_705512;
|
|
function e_70551(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:20161, offset: 0x01cff27c, size: 72 bytes, params: 8, frame: 19
|
|
const value = this;
|
|
const r0 = env0_0.call(value, importAll, module, exports, dependencyMap) || value;
|
|
r0.year = global;
|
|
r0.month = require;
|
|
r0.day = importDefault;
|
|
return r0;
|
|
}
|
|
|
|
function getWeekday() { // fn#70553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:20454, offset: 0x01cff336, size: 57 bytes, params: 1, frame: 12
|
|
let value = environment.__proto__;
|
|
const Date = global.Date;
|
|
value = this.getTime();
|
|
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date(value);
|
|
return U_70480(date instanceof Object ? date : value2);
|
|
}
|
|
|
|
function addMonths_70559(a0) { // fn#70559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:20870, offset: 0x01cff419, size: 144 bytes, params: 2, frame: 15
|
|
var Math;
|
|
var floor;
|
|
var value;
|
|
var value2;
|
|
var c_70467Binding;
|
|
var year;
|
|
let month = this.month;
|
|
this.month = month + a0;
|
|
month = this.month;
|
|
if (month > 12) {
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
month = this.month;
|
|
value = Reflect.apply(floor, Math, [month / 12]);
|
|
value2 = environment.__proto__;
|
|
c_70467Binding = c_70467;
|
|
month = this.month;
|
|
this.month = c_70467Binding(month, 12);
|
|
year = this.year;
|
|
this.year = year + value;
|
|
month = this.month;
|
|
if (month === 0) {
|
|
this.month = 12;
|
|
year = this.year;
|
|
this.year = typeof year === 'bigint' ? year - 1n : +year - 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
function addHours_70562(a0, a1, a2) { // fn#70562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:21269, offset: 0x01cff55a, size: 176 bytes, params: 4, frame: 20
|
|
var hour;
|
|
var Math;
|
|
var d_70468Binding;
|
|
var value2;
|
|
var div;
|
|
var mod;
|
|
var p_70471Binding;
|
|
if (a1) {
|
|
hour = this.hour;
|
|
Math = global.Math;
|
|
this.hour = hour + Math.floor((23 - this.hour) / a0) * a0;
|
|
}
|
|
while (true) {
|
|
hour = this.hour;
|
|
this.hour = hour + a0;
|
|
d_70468Binding = d_70468;
|
|
hour = this.hour;
|
|
value2 = d_70468Binding(hour, 24);
|
|
div = value2.div;
|
|
mod = value2.mod;
|
|
if (div) {
|
|
this.hour = mod;
|
|
this.addDaily(div);
|
|
}
|
|
if (l_70469(a2)) {
|
|
break;
|
|
}
|
|
p_70471Binding = p_70471;
|
|
hour = this.hour;
|
|
if (p_70471Binding(a2, hour)) {
|
|
break;
|
|
}
|
|
continue;
|
|
}
|
|
}
|
|
|
|
function addMinutes_70563(a0, a1, a2, a3) { // fn#70563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:21482, offset: 0x01cff60a, size: 231 bytes, params: 5, frame: 23
|
|
var minute;
|
|
var Math;
|
|
var floor;
|
|
var hour;
|
|
var value2;
|
|
var minute2;
|
|
var d_70468Binding;
|
|
var value3;
|
|
var div;
|
|
var mod;
|
|
var addHours;
|
|
var p_70471Binding;
|
|
reducibleJoin2: while (true) {
|
|
if (a1) {
|
|
minute = this.minute;
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
hour = this.hour;
|
|
value2 = 60 * hour;
|
|
minute2 = this.minute;
|
|
this.minute = minute + Reflect.apply(floor, Math, [(1439 - (value2 + minute2)) / a0]) * a0;
|
|
break reducibleJoin2;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
minute = this.minute;
|
|
this.minute = minute + a0;
|
|
d_70468Binding = d_70468;
|
|
minute = this.minute;
|
|
value3 = d_70468Binding(minute, 60);
|
|
div = value3.div;
|
|
mod = value3.mod;
|
|
reducibleJoin4: while (true) {
|
|
if (div) {
|
|
this.minute = mod;
|
|
addHours = this.addHours;
|
|
Reflect.apply(addHours, this, [div, false, a2]);
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (l_70469(a2)) {
|
|
break reducibleJoin6;
|
|
}
|
|
p_70471Binding = p_70471;
|
|
hour = this.hour;
|
|
if (p_70471Binding(a2, hour)) {
|
|
break reducibleJoin6;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
if (l_70469(a3)) {
|
|
break reducibleLoop2;
|
|
}
|
|
p_70471Binding = p_70471;
|
|
minute = this.minute;
|
|
if (p_70471Binding(a3, minute)) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
}
|
|
|
|
function addSeconds_70564(a0, a1, a2, a3, a4) { // fn#70564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:21759, offset: 0x01cff6f1, size: 300 bytes, params: 6, frame: 26
|
|
var second;
|
|
var Math;
|
|
var floor;
|
|
var hour;
|
|
var value2;
|
|
var minute;
|
|
var value3;
|
|
var second2;
|
|
var d_70468Binding;
|
|
var value4;
|
|
var div;
|
|
var mod;
|
|
var addMinutes;
|
|
var p_70471Binding;
|
|
reducibleJoin2: while (true) {
|
|
if (a1) {
|
|
second = this.second;
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
hour = this.hour;
|
|
value2 = 3600 * hour;
|
|
minute = this.minute;
|
|
value3 = 60 * minute;
|
|
second2 = this.second;
|
|
this.second = second + Reflect.apply(floor, Math, [(86399 - (value2 + value3 + second2)) / a0]) * a0;
|
|
break reducibleJoin2;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
second = this.second;
|
|
this.second = second + a0;
|
|
d_70468Binding = d_70468;
|
|
second = this.second;
|
|
value4 = d_70468Binding(second, 60);
|
|
div = value4.div;
|
|
mod = value4.mod;
|
|
reducibleJoin4: while (true) {
|
|
if (div) {
|
|
this.second = mod;
|
|
addMinutes = this.addMinutes;
|
|
Reflect.apply(addMinutes, this, [div, false, a2, a3]);
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (l_70469(a2)) {
|
|
break reducibleJoin6;
|
|
}
|
|
p_70471Binding = p_70471;
|
|
hour = this.hour;
|
|
if (p_70471Binding(a2, hour)) {
|
|
break reducibleJoin6;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
reducibleJoin8: while (true) {
|
|
if (l_70469(a3)) {
|
|
break reducibleJoin8;
|
|
}
|
|
p_70471Binding = p_70471;
|
|
minute = this.minute;
|
|
if (p_70471Binding(a3, minute)) {
|
|
break reducibleJoin8;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
if (l_70469(a4)) {
|
|
break reducibleLoop2;
|
|
}
|
|
p_70471Binding = p_70471;
|
|
second = this.second;
|
|
if (p_70471Binding(a4, second)) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
}
|
|
|
|
function fixDay() { // fn#70565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:22084, offset: 0x01cff81d, size: 209 bytes, params: 1, frame: 19
|
|
var r4;
|
|
var value;
|
|
var year;
|
|
var month;
|
|
var property;
|
|
let day = this.day;
|
|
if (!(day <= 28)) {
|
|
value = environment.__proto__;
|
|
year = this.year;
|
|
month = this.month;
|
|
property = Y_70481(year, month - 1)[1];
|
|
day = this.day;
|
|
reducibleJoin7: while (true) {
|
|
if (day <= property) {
|
|
break reducibleJoin7;
|
|
}
|
|
day = this.day;
|
|
if (!(day > property)) {
|
|
break reducibleJoin7;
|
|
}
|
|
r4 = property;
|
|
reducibleLoop3: while (true) {
|
|
day = this.day;
|
|
this.day = day - r4;
|
|
month = this.month;
|
|
this.month = typeof month === 'bigint' ? month + 1n : +month + 1;
|
|
month = this.month;
|
|
if (month === 13) {
|
|
this.month = 1;
|
|
year = this.year;
|
|
this.year = typeof year === 'bigint' ? year + 1n : +year + 1;
|
|
year = this.year;
|
|
reducibleJoin5: while (true) {
|
|
if (year > 9999) {
|
|
return undefined;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
year = this.year;
|
|
month = this.month;
|
|
property = Y_70481(year, month - 1)[1];
|
|
day = this.day;
|
|
if (day > property) {
|
|
r4 = property;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function add_70566({freq, interval, wkst, byhour, byminute, bysecond}, a1) { // fn#70566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:22332, offset: 0x01cff8ee, size: 284 bytes, params: 3, frame: 22
|
|
const YEARLY = env1_37.YEARLY;
|
|
if (YEARLY === freq) {
|
|
return this.addYears(interval);
|
|
}
|
|
const MONTHLY = env1_37.MONTHLY;
|
|
if (MONTHLY === freq) {
|
|
return this.addMonths(interval);
|
|
}
|
|
const WEEKLY = env1_37.WEEKLY;
|
|
if (WEEKLY === freq) {
|
|
return this.addWeekly(interval, wkst);
|
|
}
|
|
const DAILY = env1_37.DAILY;
|
|
if (DAILY === freq) {
|
|
return this.addDaily(interval);
|
|
}
|
|
const HOURLY = env1_37.HOURLY;
|
|
if (HOURLY === freq) {
|
|
return this.addHours(interval, a1, byhour);
|
|
}
|
|
const MINUTELY = env1_37.MINUTELY;
|
|
if (MINUTELY === freq) {
|
|
return this.addMinutes(interval, a1, byhour, byminute);
|
|
}
|
|
const SECONDLY = env1_37.SECONDLY;
|
|
if (SECONDLY === freq) {
|
|
return this.addSeconds(interval, a1, byhour, byminute, bysecond);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70567() { // fn#70567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:24629, offset: 0x01cffa0a, size: 121 bytes, params: 1, frame: 17
|
|
const closure = function(a0, a1) {
|
|
if (global.isNaN(a0.getTime())) {
|
|
throw new global.RangeError('Invalid date passed to DateWithZone');
|
|
}
|
|
this.date = a0;
|
|
this.tzid = a1;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'isUTC', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
var r0;
|
|
var tzid = this.tzid;
|
|
var value = !tzid;
|
|
if (tzid) {
|
|
value = this.tzid.toUpperCase();
|
|
value = value === 'UTC';
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}});
|
|
closure.prototype.toString = toString_70570;
|
|
closure.prototype.getTime = function() {
|
|
return this.date.getTime();
|
|
};
|
|
closure.prototype.rezonedDate = rezonedDate;
|
|
return closure;
|
|
function toString_70570() { // fn#70570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:24935, offset: 0x01cffb01, size: 100 bytes, params: 1, frame: 14
|
|
var r0;
|
|
let value = environment.__proto__;
|
|
value = this.date.getTime();
|
|
value = N_70487(value, this.isUTC);
|
|
if (this.isUTC) {
|
|
value = ':'.concat(value);
|
|
r0 = value;
|
|
} else {
|
|
value = ';TZID='.concat(this.tzid, ':').concat(value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function rezonedDate() { // fn#70572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:25144, offset: 0x01cffb7a, size: 221 bytes, params: 1, frame: 18
|
|
var r0;
|
|
var tzid;
|
|
var value;
|
|
var timeZone;
|
|
var Date;
|
|
var prototype;
|
|
var value2;
|
|
var date2;
|
|
var value4;
|
|
var value5;
|
|
var date3;
|
|
var getTime;
|
|
var time;
|
|
var value8;
|
|
const isUTC = this.isUTC;
|
|
let date = this.date;
|
|
if (isUTC) {
|
|
r0 = date;
|
|
} else {
|
|
tzid = this.tzid;
|
|
value = global.Intl.DateTimeFormat();
|
|
timeZone = value.resolvedOptions().timeZone;
|
|
Date = global.Date;
|
|
value = environment.__proto__;
|
|
value = C_70489(date, timeZone);
|
|
prototype = Date.prototype;
|
|
value2 = Object.create(prototype, {constructor: {value: Date}});
|
|
date2 = new Date();
|
|
value = date2 instanceof Object ? date2 : value2;
|
|
Date = global.Date;
|
|
value4 = C_70489(date, tzid ?? 'UTC');
|
|
prototype = Date.prototype;
|
|
value5 = Object.create(prototype, {constructor: {value: Date}});
|
|
date3 = new Date();
|
|
time = (date3 instanceof Object ? date3 : value5).getTime();
|
|
getTime = value.getTime;
|
|
value = time - Reflect.apply(getTime, value, []);
|
|
Date = global.Date;
|
|
getTime = date.getTime;
|
|
value = Reflect.apply(getTime, date, []) - value;
|
|
prototype = Date.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value = date instanceof Object ? date : value8;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70573() { // fn#70573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:26531, offset: 0x01cffc57, size: 47 bytes, params: 1, frame: 4
|
|
const closure = function() {
|
|
this.all = false;
|
|
this.before = [];
|
|
this.after = [];
|
|
this.between = [];
|
|
};
|
|
closure.prototype._cacheAdd = _cacheAdd;
|
|
closure.prototype._cacheGet = _cacheGet;
|
|
return closure;
|
|
function _cacheAdd(a0, a1, a2) { // fn#70575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:26641, offset: 0x01cffcb3, size: 103 bytes, params: 4, frame: 16
|
|
var r3;
|
|
var r0;
|
|
var Date;
|
|
var value2;
|
|
let value = a1;
|
|
if (value) {
|
|
Date = global.Date;
|
|
value2 = environment.__proto__;
|
|
if (value instanceof Date) {
|
|
value = M_70483(value);
|
|
r3 = value;
|
|
} else {
|
|
value = __70484(value);
|
|
r3 = value;
|
|
}
|
|
r0 = r3;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
if (a0 === 'all') {
|
|
this.all = r0;
|
|
} else {
|
|
a2._value = r0;
|
|
this[a0].push(a2);
|
|
}
|
|
}
|
|
|
|
function _cacheGet(a0, a1) { // fn#70576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:26767, offset: 0x01cffd1a, size: 424 bytes, params: 3, frame: 28
|
|
var r2;
|
|
var r15;
|
|
var r13;
|
|
var r1;
|
|
var r6;
|
|
var value;
|
|
var isArray2;
|
|
var value2;
|
|
var length;
|
|
var value3;
|
|
var property2;
|
|
var property3;
|
|
var lt_70411Binding;
|
|
var property4;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var _value;
|
|
var value7;
|
|
var all;
|
|
var value8;
|
|
var value9;
|
|
var accept;
|
|
var value10;
|
|
const r12 = a1 ? global.Object.keys(a1) : [];
|
|
const property = this[a0];
|
|
if (a0 === 'all') {
|
|
r1 = this.all;
|
|
} else {
|
|
value = environment.__proto__;
|
|
isArray2 = isArray(property);
|
|
value2 = false;
|
|
if (isArray2) {
|
|
length = property.length;
|
|
value3 = 0;
|
|
if (value3 < length) {
|
|
r2 = value3;
|
|
loopExit6: while (true) {
|
|
property2 = property[r2];
|
|
length = r12.length;
|
|
if (length) {
|
|
length = r12.length;
|
|
if (!(value3 < length)) {
|
|
r13 = value2;
|
|
continue;
|
|
}
|
|
r15 = value3;
|
|
while (true) {
|
|
property3 = r12[r15];
|
|
lt_70411Binding = lt_70411;
|
|
property4 = a1[property3];
|
|
value4 = lt_70411Binding(property4, property2[property3]);
|
|
value5 = true;
|
|
if (!value4) {
|
|
r13 = value5;
|
|
break;
|
|
}
|
|
value6 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
|
length = r12.length;
|
|
if (value6 < length) {
|
|
r15 = value6;
|
|
continue;
|
|
}
|
|
r13 = value2;
|
|
break;
|
|
}
|
|
if (r13) {
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = property.length;
|
|
if (value7 < length) {
|
|
r2 = value7;
|
|
continue;
|
|
}
|
|
r1 = value2;
|
|
break loopExit6;
|
|
}
|
|
r1 = property2._value;
|
|
break loopExit6;
|
|
}
|
|
_value = property2._value;
|
|
r1 = _value;
|
|
break loopExit6;
|
|
}
|
|
} else {
|
|
r1 = value2;
|
|
}
|
|
} else {
|
|
r1 = value2;
|
|
}
|
|
}
|
|
if (r1) {
|
|
r2 = r1;
|
|
} else {
|
|
all = this.all;
|
|
if (all) {
|
|
value = environment.__proto__;
|
|
value8 = new env1_34(a0, a1);
|
|
all = this.all;
|
|
length = all.length;
|
|
value9 = 0;
|
|
if (value9 < length) {
|
|
accept = value8.accept;
|
|
all = this.all;
|
|
if (Reflect.apply(accept, value8, [all[value9]])) {
|
|
r6 = value9;
|
|
while (true) {
|
|
value10 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
all = this.all;
|
|
length = all.length;
|
|
if (!(value10 < length)) {
|
|
break;
|
|
}
|
|
accept = value8.accept;
|
|
all = this.all;
|
|
if (Reflect.apply(accept, value8, [all[value10]])) {
|
|
r6 = value10;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
value8 = value8.getValue();
|
|
this._cacheAdd(a0, value8, a1);
|
|
r2 = value8;
|
|
} else {
|
|
r2 = r1;
|
|
}
|
|
}
|
|
value = environment.__proto__;
|
|
return isArray(r2) ? __70484(r2) : r2 instanceof global.Date ? M_70483(r2) : r2;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70577() { // fn#70577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:28389, offset: 0x01cffec2, size: 841 bytes, params: 1, frame: 18
|
|
const closure = function(a0) {
|
|
this.options = a0;
|
|
};
|
|
closure.prototype.rebuild = rebuild_70579;
|
|
let Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'lastyear', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.monthinfo ? this.monthinfo.lastyear : null;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'lastmonth', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.monthinfo ? this.monthinfo.lastmonth : null;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'yearlen', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.yearlen;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'yearordinal', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.yearordinal;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'mrange', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.mrange;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'wdaymask', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.wdaymask;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'mmask', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.mmask;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'wnomask', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.wnomask;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'nwdaymask', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.monthinfo ? this.monthinfo.nwdaymask : [];
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'nextyearlen', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.nextyearlen;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'mdaymask', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.mdaymask;
|
|
}});
|
|
Object = global.Object;
|
|
Object.defineProperty(closure.prototype, 'nmdaymask', {'get': null, 'enumerable': false, 'configurable': true,
|
|
get: function() {
|
|
return this.yearinfo.nmdaymask;
|
|
}});
|
|
closure.prototype.ydayset = ydayset;
|
|
closure.prototype.mdayset = mdayset;
|
|
closure.prototype.wdayset = wdayset;
|
|
closure.prototype.ddayset = ddayset;
|
|
closure.prototype.htimeset = htimeset;
|
|
closure.prototype.mtimeset = function(a0, a1, a2, a3) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = a3;
|
|
var value = this.options.bysecond.map(_fun70600);
|
|
R_70485(value);
|
|
return value;
|
|
};
|
|
closure.prototype.stimeset = stimeset;
|
|
closure.prototype.getdayset = getdayset;
|
|
closure.prototype.gettimeset = gettimeset;
|
|
return closure;
|
|
function rebuild_70579(a0, a1) { // fn#70579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:28456, offset: 0x01d0021b, size: 1132 bytes, params: 3, frame: 34
|
|
var environment;
|
|
var r10;
|
|
var r7;
|
|
var r16;
|
|
var r21;
|
|
var r5;
|
|
var lastmonth;
|
|
var yearinfo;
|
|
var yearlen;
|
|
var mrange;
|
|
var wdaymask;
|
|
var object;
|
|
var items2;
|
|
var freq;
|
|
var YEARLY;
|
|
var MONTHLY;
|
|
var slice;
|
|
var value2;
|
|
var value3;
|
|
var l_70469Binding;
|
|
var bymonth;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var push;
|
|
var value5;
|
|
var value6;
|
|
var h_70466Binding;
|
|
var value7;
|
|
var property2;
|
|
var value8;
|
|
var property3;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var nwdaymask;
|
|
var value15;
|
|
var value16;
|
|
var Math;
|
|
var floor;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var Date;
|
|
var UTC;
|
|
var value32;
|
|
var value33;
|
|
var ceil;
|
|
const options = this.options;
|
|
let lastyear = this.lastyear;
|
|
reducibleJoin2: while (true) {
|
|
if (a0 === lastyear) {
|
|
break reducibleJoin2;
|
|
}
|
|
this.yearinfo = _t(a0, options);
|
|
break reducibleJoin2;
|
|
}
|
|
let value = environment.__proto__;
|
|
const f_70470Binding = f_70470;
|
|
let bynweekday = options.bynweekday;
|
|
reducibleJoin25: while (true) {
|
|
if (f_70470Binding(bynweekday)) {
|
|
lastmonth = this.lastmonth;
|
|
if (a1 === lastmonth) {
|
|
lastyear = this.lastyear;
|
|
if (a0 === lastyear) {
|
|
break reducibleJoin25;
|
|
}
|
|
}
|
|
yearinfo = this.yearinfo;
|
|
yearlen = yearinfo.yearlen;
|
|
mrange = yearinfo.mrange;
|
|
wdaymask = yearinfo.wdaymask;
|
|
object = {lastyear: a0, lastmonth: a1, nwdaymask: []};
|
|
items2 = [];
|
|
freq = options.freq;
|
|
YEARLY = env1_63.YEARLY;
|
|
if (freq === YEARLY) {
|
|
l_70469Binding = l_70469;
|
|
bymonth = options.bymonth;
|
|
if (l_70469Binding(bymonth)) {
|
|
r7 = [[0, yearlen]];
|
|
} else {
|
|
bymonth = options.bymonth;
|
|
length = bymonth.length;
|
|
value4 = 0;
|
|
if (value4 < length) {
|
|
r10 = value4;
|
|
reducibleLoop10: while (true) {
|
|
bymonth = options.bymonth;
|
|
property = bymonth[r10];
|
|
push = items2.push;
|
|
slice = mrange.slice;
|
|
value5 = property - 1;
|
|
Reflect.apply(push, items2, [Reflect.apply(slice, mrange, [value5, property + 1])]);
|
|
value6 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
|
bymonth = options.bymonth;
|
|
length = bymonth.length;
|
|
if (value6 < length) {
|
|
r10 = value6;
|
|
continue reducibleLoop10;
|
|
}
|
|
r7 = items2;
|
|
break reducibleLoop10;
|
|
}
|
|
} else {
|
|
r7 = items2;
|
|
}
|
|
}
|
|
} else {
|
|
freq = options.freq;
|
|
MONTHLY = env1_63.MONTHLY;
|
|
reducibleJoin12: while (true) {
|
|
if (freq !== MONTHLY) {
|
|
r7 = items2;
|
|
break reducibleJoin12;
|
|
}
|
|
slice = mrange.slice;
|
|
value2 = a1 - 1;
|
|
value3 = Reflect.apply(slice, mrange, [value2, a1 + 1]);
|
|
r7 = [value3];
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
reducibleJoin24: while (true) {
|
|
if (l_70469(r7)) {
|
|
break reducibleJoin24;
|
|
}
|
|
h_70466Binding = h_70466;
|
|
value7 = 0;
|
|
object.nwdaymask = h_70466Binding(value7, yearlen);
|
|
length = r7.length;
|
|
if (!(value7 < length)) {
|
|
break reducibleJoin24;
|
|
}
|
|
r10 = value7;
|
|
reducibleLoop14: while (true) {
|
|
property = r7[r10];
|
|
property2 = property[value7];
|
|
value8 = property[1] - 1;
|
|
bynweekday = options.bynweekday;
|
|
length = bynweekday.length;
|
|
if (value7 < length) {
|
|
r16 = value7;
|
|
reducibleLoop15: while (true) {
|
|
bynweekday = options.bynweekday;
|
|
property = bynweekday[r16];
|
|
property3 = property[value7];
|
|
property = property[1];
|
|
if (property < value7) {
|
|
value11 = value8 + 7 * (property + 1);
|
|
value12 = value11 - c_70467(wdaymask[value11] - property3, 7);
|
|
r21 = value12;
|
|
} else {
|
|
value9 = property2 + 7 * (property - 1);
|
|
value10 = value9 + c_70467(7 - wdaymask[value9] + property3, 7);
|
|
r21 = value10;
|
|
}
|
|
value13 = property2 <= r21;
|
|
reducibleJoin20: while (true) {
|
|
if (value13) {
|
|
value14 = r21 <= value8;
|
|
r5 = value14;
|
|
break reducibleJoin20;
|
|
}
|
|
r5 = value13;
|
|
break reducibleJoin20;
|
|
}
|
|
reducibleJoin22: while (true) {
|
|
if (r5) {
|
|
nwdaymask = object.nwdaymask;
|
|
nwdaymask[r21] = 1;
|
|
break reducibleJoin22;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
value15 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
|
|
bynweekday = options.bynweekday;
|
|
length = bynweekday.length;
|
|
if (value15 < length) {
|
|
r16 = value15;
|
|
continue reducibleLoop15;
|
|
}
|
|
break reducibleLoop15;
|
|
}
|
|
}
|
|
value16 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
|
length = r7.length;
|
|
if (value16 < length) {
|
|
r10 = value16;
|
|
continue reducibleLoop14;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
}
|
|
this.monthinfo = object;
|
|
break reducibleJoin25;
|
|
}
|
|
break reducibleJoin25;
|
|
}
|
|
const i_70462Binding = i_70462;
|
|
let byeaster = options.byeaster;
|
|
reducibleJoin29: while (true) {
|
|
if (i_70462Binding(byeaster)) {
|
|
byeaster = options.byeaster;
|
|
reducibleJoin28: while (true) {
|
|
if (byeaster !== undefined) {
|
|
break reducibleJoin28;
|
|
}
|
|
value = 0;
|
|
byeaster = value;
|
|
break reducibleJoin28;
|
|
}
|
|
value = a0 % 19;
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value17 = Reflect.apply(floor, Math, [a0 / 100]);
|
|
value18 = a0 % 100;
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value19 = Reflect.apply(floor, Math, [value17 / 4]);
|
|
value20 = value17 % 4;
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value21 = Reflect.apply(floor, Math, [(value17 + 8) / 25]);
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value22 = Reflect.apply(floor, Math, [(value17 - value21 + 1) / 3]);
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value23 = Reflect.apply(floor, Math, [19 * value + value17 - value19 - value22 + 15]);
|
|
value24 = value23 % 30;
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value25 = Reflect.apply(floor, Math, [value18 / 4]);
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value26 = 2 * value25;
|
|
value27 = 32 + 2 * value20 + value26 - value24;
|
|
value28 = Reflect.apply(floor, Math, [value27 - value18 % 4]);
|
|
value29 = value28 % 7;
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value += 11 * value24;
|
|
value = Reflect.apply(floor, Math, [(value + 22 * value29) / 451]);
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value30 = value24 + value29;
|
|
value31 = Reflect.apply(floor, Math, [(value30 - 7 * value + 114) / 31]);
|
|
value = 7 * value;
|
|
Date = global.Date;
|
|
UTC = Date.UTC;
|
|
value32 = value31 - 1;
|
|
value = Reflect.apply(UTC, Date, [a0, value32, (value30 - value + 114) % 31 + 1 + byeaster]);
|
|
Date = global.Date;
|
|
UTC = Date.UTC;
|
|
value33 = Reflect.apply(UTC, Date, [a0, 0, 1]);
|
|
Math = global.Math;
|
|
ceil = Math.ceil;
|
|
value = Reflect.apply(ceil, Math, [(value - value33) / 86400000]);
|
|
this.eastermask = [value];
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin29;
|
|
}
|
|
function _t(a0, a1) { // fn#70580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:28526, owner: rebuild_70579._t, offset: 0x01d00687, size: 1081 bytes, params: 3, frame: 36
|
|
var r9;
|
|
var r6;
|
|
var r0;
|
|
var r2;
|
|
var r15;
|
|
var r18;
|
|
var r21;
|
|
var r22;
|
|
var r23;
|
|
var r16;
|
|
var r10;
|
|
var r12;
|
|
var r1;
|
|
var value5;
|
|
var value6;
|
|
var value9;
|
|
var object;
|
|
var object2;
|
|
var value17;
|
|
var yearlen;
|
|
var value18;
|
|
var property;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var wnomask;
|
|
var value25;
|
|
var wdaymask;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var value32;
|
|
var value33;
|
|
var value34;
|
|
var value35;
|
|
var valueOf;
|
|
var value36;
|
|
var value37;
|
|
var value38;
|
|
var value39;
|
|
var value40;
|
|
var value41;
|
|
var value42;
|
|
let value = environment.__proto__.__proto__;
|
|
const value2 = b_70472(a0, 1, 1);
|
|
const value3 = k_70473(a0);
|
|
const value4 = 365;
|
|
reducibleJoin2: while (true) {
|
|
if (value3) {
|
|
value5 = 366;
|
|
r9 = value5;
|
|
break reducibleJoin2;
|
|
}
|
|
r9 = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (k_70473(a0 + 1)) {
|
|
value6 = 366;
|
|
r6 = value6;
|
|
break reducibleJoin4;
|
|
}
|
|
r6 = value4;
|
|
break reducibleJoin4;
|
|
}
|
|
const value7 = O_70477(value2);
|
|
const value8 = U_70480(value2);
|
|
const object3 = {yearlen: r9, nextyearlen: r6, yearordinal: value7, yearweekday: value8};
|
|
reducibleJoin6: while (true) {
|
|
if (k_70473(a0)) {
|
|
value9 = 366;
|
|
r0 = value9;
|
|
break reducibleJoin6;
|
|
}
|
|
r0 = value4;
|
|
break reducibleJoin6;
|
|
}
|
|
const value11 = U_70480(b_70472(a0, 1, 1));
|
|
if (value4 === r0) {
|
|
object2 = {mmask: env2_50, mdaymask: env2_53, nmdaymask: env2_55};
|
|
object2.wdaymask = env2_58.slice(value11);
|
|
object2.mrange = env2_57;
|
|
r0 = object2;
|
|
} else {
|
|
object = {mmask: env2_51, mdaymask: env2_52, nmdaymask: env2_54};
|
|
object.wdaymask = env2_58.slice(value11);
|
|
object.mrange = env2_56;
|
|
r0 = object;
|
|
}
|
|
const value13 = H_70499(H_70499(object3, r0), {wnomask: null});
|
|
const l_70469Binding = l_70469;
|
|
let byweekno = a1.byweekno;
|
|
if (!l_70469Binding(byweekno)) {
|
|
var h_70466Binding = h_70466;
|
|
var value14 = 0;
|
|
value13.wnomask = h_70466Binding(value14, r9 + 7);
|
|
var c_70467Binding = c_70467;
|
|
var value15 = 7 - value8;
|
|
var wkst = a1.wkst;
|
|
var value16 = c_70467Binding(value15 + wkst, 7);
|
|
if (value16 >= 4) {
|
|
yearlen = value13.yearlen;
|
|
c_70467Binding = c_70467;
|
|
wkst = a1.wkst;
|
|
value18 = yearlen + c_70467Binding(value8 - wkst, 7);
|
|
r2 = value14;
|
|
r15 = value18;
|
|
} else {
|
|
value17 = r9 - value16;
|
|
r2 = value16;
|
|
r15 = value17;
|
|
}
|
|
var Math = global.Math;
|
|
var floor = Math.floor;
|
|
var value19 = Reflect.apply(floor, Math, [r15 / 7]);
|
|
var value20 = c_70467(r15, 7);
|
|
Math = global.Math;
|
|
var value21 = Math.floor(value19 + value20 / 4);
|
|
var length = a1.byweekno.length;
|
|
if (value14 < length) {
|
|
r18 = value14;
|
|
reducibleLoop14: while (true) {
|
|
byweekno = a1.byweekno;
|
|
property = byweekno[r18];
|
|
reducibleJoin16: while (true) {
|
|
if (property < value14) {
|
|
value22 = property + (value21 + 1);
|
|
r21 = value22;
|
|
break reducibleJoin16;
|
|
}
|
|
r21 = property;
|
|
break reducibleJoin16;
|
|
}
|
|
reducibleJoin24: while (true) {
|
|
if (!(r21 > value14)) {
|
|
break reducibleJoin24;
|
|
}
|
|
if (!(r21 <= value21)) {
|
|
break reducibleJoin24;
|
|
}
|
|
reducibleJoin21: while (true) {
|
|
if (r21 > 1) {
|
|
value23 = r2 + 7 * (r21 - 1);
|
|
if (r2 === value16) {
|
|
r15 = value23;
|
|
break reducibleJoin21;
|
|
}
|
|
value24 = value23 - (7 - value16);
|
|
r15 = value24;
|
|
break reducibleJoin21;
|
|
}
|
|
r15 = r2;
|
|
break reducibleJoin21;
|
|
}
|
|
wnomask = value13.wnomask;
|
|
wnomask[r15] = 1;
|
|
value25 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
|
wdaymask = value13.wdaymask;
|
|
property = wdaymask[value25];
|
|
wkst = a1.wkst;
|
|
if (property === wkst) {
|
|
break reducibleJoin24;
|
|
}
|
|
r22 = value14;
|
|
r23 = value25;
|
|
reducibleLoop22: while (true) {
|
|
value26 = typeof r22 === 'bigint' ? r22 + 1n : +r22 + 1;
|
|
if (value26 < 7) {
|
|
wnomask = value13.wnomask;
|
|
wnomask[r23] = 1;
|
|
value27 = typeof r23 === 'bigint' ? r23 + 1n : +r23 + 1;
|
|
wdaymask = value13.wdaymask;
|
|
property = wdaymask[value27];
|
|
wkst = a1.wkst;
|
|
if (property !== wkst) {
|
|
r22 = value26;
|
|
r23 = value27;
|
|
continue reducibleLoop22;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
}
|
|
value28 = typeof r18 === 'bigint' ? r18 + 1n : +r18 + 1;
|
|
byweekno = a1.byweekno;
|
|
length = byweekno.length;
|
|
if (value28 < length) {
|
|
r18 = value28;
|
|
continue reducibleLoop14;
|
|
}
|
|
break reducibleLoop14;
|
|
}
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if (!p_70471(a1.byweekno, 1)) {
|
|
break reducibleJoin32;
|
|
}
|
|
value29 = r2 + 7 * value21;
|
|
reducibleJoin28: while (true) {
|
|
if (r2 === value16) {
|
|
r6 = value29;
|
|
break reducibleJoin28;
|
|
}
|
|
value30 = value29 - (7 - value16);
|
|
r6 = value30;
|
|
break reducibleJoin28;
|
|
}
|
|
if (!(r6 < r9)) {
|
|
break reducibleJoin32;
|
|
}
|
|
wnomask = value13.wnomask;
|
|
wnomask[r6] = 1;
|
|
value31 = r6 + 1;
|
|
wdaymask = value13.wdaymask;
|
|
property = wdaymask[value31];
|
|
wkst = a1.wkst;
|
|
if (property === wkst) {
|
|
break reducibleJoin32;
|
|
}
|
|
r15 = value14;
|
|
r16 = value31;
|
|
reducibleLoop30: while (true) {
|
|
value32 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
|
|
if (value32 < 7) {
|
|
wnomask = value13.wnomask;
|
|
wnomask[r16] = 1;
|
|
value33 = r16 + 1;
|
|
wdaymask = value13.wdaymask;
|
|
property = wdaymask[value33];
|
|
wkst = a1.wkst;
|
|
if (property !== wkst) {
|
|
r15 = value32;
|
|
r16 = value33;
|
|
continue reducibleLoop30;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
}
|
|
reducibleJoin43: while (true) {
|
|
if (!r2) {
|
|
break reducibleJoin43;
|
|
}
|
|
p_70471Binding = p_70471;
|
|
byweekno = a1.byweekno;
|
|
value34 = -1;
|
|
reducibleJoin40: while (true) {
|
|
if (p_70471Binding(byweekno, value34)) {
|
|
r6 = value34;
|
|
break reducibleJoin40;
|
|
}
|
|
value35 = U_70480(b_70472(a0 - 1, 1, 1));
|
|
c_70467Binding = c_70467;
|
|
valueOf = value35.valueOf;
|
|
value36 = 7 - Reflect.apply(valueOf, value35, []);
|
|
wkst = a1.wkst;
|
|
value37 = c_70467Binding(value36 + wkst, 7);
|
|
reducibleJoin36: while (true) {
|
|
if (k_70473(a0 - 1)) {
|
|
value38 = 366;
|
|
r10 = value38;
|
|
break reducibleJoin36;
|
|
}
|
|
r10 = value4;
|
|
break reducibleJoin36;
|
|
}
|
|
if (value37 >= 4) {
|
|
c_70467Binding = c_70467;
|
|
wkst = a1.wkst;
|
|
value40 = r10 + c_70467Binding(value35 - wkst, 7);
|
|
r12 = value40;
|
|
} else {
|
|
value39 = r9 - r2;
|
|
r12 = value39;
|
|
}
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value41 = c_70467(r12, 7) / 4;
|
|
value42 = Reflect.apply(floor, Math, [52 + value41]);
|
|
r6 = value42;
|
|
break reducibleJoin40;
|
|
}
|
|
p_70471Binding = p_70471;
|
|
byweekno = a1.byweekno;
|
|
if (!p_70471Binding(byweekno, r6)) {
|
|
break reducibleJoin43;
|
|
}
|
|
if (!(value14 < r2)) {
|
|
break reducibleJoin43;
|
|
}
|
|
r1 = value14;
|
|
reducibleLoop42: while (true) {
|
|
wnomask = value13.wnomask;
|
|
wnomask[r1] = 1;
|
|
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value < r2) {
|
|
r1 = value;
|
|
continue reducibleLoop42;
|
|
}
|
|
break reducibleJoin43;
|
|
}
|
|
}
|
|
}
|
|
return value13;
|
|
}
|
|
|
|
}
|
|
|
|
function ydayset() { // fn#70593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:32477, offset: 0x01d00bb1, size: 49 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__;
|
|
const items2 = [u_70465(this.yearlen), 0];
|
|
items2[2] = this.yearlen;
|
|
return items2;
|
|
}
|
|
|
|
function mdayset(a0, a1) { // fn#70594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:32548, offset: 0x01d00be2, size: 92 bytes, params: 3, frame: 15
|
|
var r0;
|
|
var value2;
|
|
const property = this.mrange[a1 - 1];
|
|
const property2 = this.mrange[a1];
|
|
let value = environment.__proto__;
|
|
value = h_70466(null, this.yearlen);
|
|
if (property < property2) {
|
|
for (r0 = property; true; r0 = value2) {
|
|
value[r0] = r0;
|
|
value2 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (!(value2 < property2)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return [value, property, property2];
|
|
}
|
|
|
|
function wdayset(a0, a1, a2) { // fn#70595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:32683, offset: 0x01d00c3e, size: 178 bytes, params: 4, frame: 20
|
|
var r5;
|
|
var r6;
|
|
var r1;
|
|
var value5;
|
|
var value6;
|
|
let value = environment.__proto__;
|
|
const value2 = h_70466(null, this.yearlen + 7);
|
|
value = O_70477(b_70472(a0, a1, a2));
|
|
value -= this.yearordinal;
|
|
value2[value] = value;
|
|
const value3 = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
let wdaymask = this.wdaymask;
|
|
let property = wdaymask[value3];
|
|
let options = this.options;
|
|
let wkst = options.wkst;
|
|
if (property === wkst) {
|
|
r1 = value3;
|
|
} else {
|
|
r5 = value3;
|
|
r6 = 0;
|
|
while (true) {
|
|
value5 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (!(value5 < 7)) {
|
|
r1 = r5;
|
|
break;
|
|
}
|
|
value2[r5] = r5;
|
|
value6 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
wdaymask = this.wdaymask;
|
|
property = wdaymask[value6];
|
|
options = this.options;
|
|
wkst = options.wkst;
|
|
if (property !== wkst) {
|
|
r5 = value6;
|
|
r6 = value5;
|
|
continue;
|
|
}
|
|
r1 = value6;
|
|
break;
|
|
}
|
|
}
|
|
return [value2, value, r1];
|
|
}
|
|
|
|
function ddayset(a0, a1, a2) { // fn#70596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:32868, offset: 0x01d00cf0, size: 94 bytes, params: 4, frame: 18
|
|
let value = environment.__proto__;
|
|
const value2 = h_70466(null, this.yearlen);
|
|
value = O_70477(b_70472(a0, a1, a2));
|
|
value -= this.yearordinal;
|
|
value2[value] = value;
|
|
return [value2, value, value + 1];
|
|
}
|
|
|
|
function htimeset(a0, a1, a2, a3) { // fn#70597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:32990, offset: 0x01d00d4e, size: 90 bytes, params: 5, frame: 12
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
const env0_2 = a3;
|
|
const items2 = [];
|
|
this.options.byminute.forEach(_fun70598);
|
|
R_70485(items2);
|
|
return items2;
|
|
function _fun70598(a0) { // fn#70598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:33062, offset: 0x01d00da8, size: 57 bytes, params: 2, frame: 20
|
|
const binding = env0_4;
|
|
const concat = binding.concat;
|
|
const binding2 = env0_3;
|
|
env0_4 = Reflect.apply(concat, binding, [binding2.mtimeset(env0_0, a0, importDefault, importAll)]);
|
|
}
|
|
|
|
}
|
|
|
|
function mtimeset(a0, a1, a2, a3) { // fn#70599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:33139, offset: 0x01d00de1, size: 70 bytes, params: 5, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a3;
|
|
const value = this.options.bysecond.map(_fun70600);
|
|
R_70485(value);
|
|
return value;
|
|
function _fun70600(a0) { // fn#70600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:33190, offset: 0x01d00e27, size: 47 bytes, params: 2, frame: 17
|
|
let value = environment.__proto__.__proto__;
|
|
const binding = env2_46;
|
|
const binding2 = env0_0;
|
|
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding3 = new binding(binding2, require, a0, importAll);
|
|
return binding3 instanceof Object ? binding3 : value;
|
|
}
|
|
|
|
}
|
|
|
|
function stimeset(a0, a1, a2, a3) { // fn#70601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:33265, offset: 0x01d00e56, size: 49 bytes, params: 5, frame: 17
|
|
const value = environment.__proto__;
|
|
return [new env1_46(a0, a1, a2, a3)];
|
|
}
|
|
|
|
function getdayset(a0) { // fn#70602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:33330, offset: 0x01d00e87, size: 133 bytes, params: 2, frame: 12
|
|
const YEARLY = env1_37.YEARLY;
|
|
if (YEARLY === a0) {
|
|
return this.ydayset.bind(this);
|
|
}
|
|
const MONTHLY = env1_37.MONTHLY;
|
|
if (MONTHLY === a0) {
|
|
return this.mdayset.bind(this);
|
|
}
|
|
const WEEKLY = env1_37.WEEKLY;
|
|
if (WEEKLY === a0) {
|
|
return this.wdayset.bind(this);
|
|
}
|
|
env1_37.DAILY;
|
|
return this.ddayset.bind(this);
|
|
}
|
|
|
|
function gettimeset(a0) { // fn#70603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:33569, offset: 0x01d00f0c, size: 109 bytes, params: 2, frame: 12
|
|
const HOURLY = env1_37.HOURLY;
|
|
if (HOURLY === a0) {
|
|
return this.htimeset.bind(this);
|
|
}
|
|
const MINUTELY = env1_37.MINUTELY;
|
|
if (MINUTELY === a0) {
|
|
return this.mtimeset.bind(this);
|
|
}
|
|
const SECONDLY = env1_37.SECONDLY;
|
|
if (SECONDLY === a0) {
|
|
return this.stimeset.bind(this);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70604() { // fn#70604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:36462, offset: 0x01d00f79, size: 543 bytes, params: 1, frame: 4
|
|
const t_706052 = t_70605;
|
|
t_706052.parseText = function(a0, a1) {
|
|
return Q_70388(a0, a1);
|
|
};
|
|
t_706052.fromText = fromText;
|
|
t_706052.fromString = fromString;
|
|
t_706052.prototype._iter = function(a0) {
|
|
return At(a0, this.options);
|
|
};
|
|
t_706052.prototype._cacheGet = function(a0, a1) {
|
|
var _cache = this._cache;
|
|
return _cache ? this._cache._cacheGet(a0, a1) : !!_cache;
|
|
};
|
|
t_706052.prototype._cacheAdd = function(a0, a1, a2) {
|
|
if (this._cache) {
|
|
return this._cache._cacheAdd(a0, a1, a2);
|
|
}
|
|
};
|
|
t_706052.prototype.all = all_70612;
|
|
t_706052.prototype.between = between_70613;
|
|
t_706052.prototype.before = before_70614;
|
|
t_706052.prototype.after = after_70615;
|
|
t_706052.prototype.count = function() {
|
|
return this.all().length;
|
|
};
|
|
t_706052.prototype.toString = function() {
|
|
return ct_70406(this.origOptions);
|
|
};
|
|
t_706052.prototype.toText = toText;
|
|
t_706052.prototype.isFullyConvertibleToText = function() {
|
|
return isFullyConvertible(this);
|
|
};
|
|
t_706052.prototype.clone = clone_70620;
|
|
t_706052.FREQUENCIES = ['YEARLY', 'MONTHLY', 'WEEKLY', 'DAILY', 'HOURLY', 'MINUTELY', 'SECONDLY'];
|
|
const YEARLY = env0_37.YEARLY;
|
|
t_706052.YEARLY = YEARLY;
|
|
const MONTHLY = env0_37.MONTHLY;
|
|
t_706052.MONTHLY = MONTHLY;
|
|
const WEEKLY = env0_37.WEEKLY;
|
|
t_706052.WEEKLY = WEEKLY;
|
|
const DAILY = env0_37.DAILY;
|
|
t_706052.DAILY = DAILY;
|
|
const HOURLY = env0_37.HOURLY;
|
|
t_706052.HOURLY = HOURLY;
|
|
const MINUTELY = env0_37.MINUTELY;
|
|
t_706052.MINUTELY = MINUTELY;
|
|
const SECONDLY = env0_37.SECONDLY;
|
|
t_706052.SECONDLY = SECONDLY;
|
|
const MO = env0_60.MO;
|
|
t_706052.MO = MO;
|
|
const TU = env0_60.TU;
|
|
t_706052.TU = TU;
|
|
const WE = env0_60.WE;
|
|
t_706052.WE = WE;
|
|
const TH = env0_60.TH;
|
|
t_706052.TH = TH;
|
|
const FR = env0_60.FR;
|
|
t_706052.FR = FR;
|
|
const SA = env0_60.SA;
|
|
t_706052.SA = SA;
|
|
const SU = env0_60.SU;
|
|
t_706052.SU = SU;
|
|
t_706052.parseString = ot;
|
|
t_706052.optionsToString = ct_70406;
|
|
return t_706052;
|
|
function t_70605(a0, a1) { // fn#70605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:36473, offset: 0x01d01198, size: 2258 bytes, params: 3, frame: 22
|
|
var r5;
|
|
var r3;
|
|
var r1;
|
|
var r6;
|
|
var r8;
|
|
var r9;
|
|
var r4;
|
|
var items3;
|
|
var value3;
|
|
var binding;
|
|
var prototype;
|
|
var value4;
|
|
var binding2;
|
|
var value6;
|
|
var YEARLY;
|
|
var FREQUENCIES;
|
|
var dtstart;
|
|
var Date;
|
|
var Date2;
|
|
var value11;
|
|
var date;
|
|
var value12;
|
|
var setMilliseconds;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var wkst;
|
|
var MO;
|
|
var weekday;
|
|
var o_70463Binding;
|
|
var bysetpos;
|
|
var length;
|
|
var value16;
|
|
var property;
|
|
var value17;
|
|
var Boolean;
|
|
var byweekno;
|
|
var f_70470Binding;
|
|
var byyearday;
|
|
var bymonthday;
|
|
var byweekday;
|
|
var MONTHLY;
|
|
var WEEKLY;
|
|
var value18;
|
|
var getUTCDate;
|
|
var bymonth;
|
|
var getUTCMonth;
|
|
var value19;
|
|
var value20;
|
|
var isArrayBinding;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var isArray2;
|
|
var value25;
|
|
var items4;
|
|
var push;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var a_70464Binding;
|
|
var value29;
|
|
var items2;
|
|
var value30;
|
|
var n;
|
|
var fromStr;
|
|
var value31;
|
|
var byhour;
|
|
var HOURLY;
|
|
var getUTCHours;
|
|
var value32;
|
|
var byminute;
|
|
var MINUTELY;
|
|
var getUTCMinutes;
|
|
var value33;
|
|
var bysecond;
|
|
var SECONDLY;
|
|
var getUTCSeconds;
|
|
var parsedOptions;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
reducibleJoin2: while (true) {
|
|
if (value !== undefined) {
|
|
r5 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
r5 = {};
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (value2 !== undefined) {
|
|
r3 = value2;
|
|
break reducibleJoin4;
|
|
}
|
|
value = false;
|
|
r3 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r3) {
|
|
r1 = null;
|
|
break reducibleJoin6;
|
|
}
|
|
value3 = environment.__proto__;
|
|
binding = env1_49;
|
|
prototype = binding.prototype;
|
|
value4 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding();
|
|
value6 = binding2 instanceof Object ? binding2 : value4;
|
|
r1 = value6;
|
|
break reducibleJoin6;
|
|
}
|
|
this._cache = r1;
|
|
const rt_70396Binding = rt_70396;
|
|
this.origOptions = rt_70396Binding(r5);
|
|
const value9 = H_70499(H_70499({}, env1_61), rt_70396Binding(r5));
|
|
let i_70462Binding = i_70462;
|
|
let byeaster = value9.byeaster;
|
|
reducibleJoin8: while (true) {
|
|
if (i_70462Binding(byeaster)) {
|
|
YEARLY = env1_63.YEARLY;
|
|
value9.freq = YEARLY;
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
let freq = value9.freq;
|
|
if (i_70462Binding(freq)) {
|
|
FREQUENCIES = env1_63.FREQUENCIES;
|
|
freq = value9.freq;
|
|
reducibleJoin10: while (true) {
|
|
if (FREQUENCIES[freq]) {
|
|
dtstart = value9.dtstart;
|
|
reducibleJoin13: while (true) {
|
|
if (dtstart) {
|
|
break reducibleJoin13;
|
|
}
|
|
Date = global.Date;
|
|
Date2 = global.Date;
|
|
prototype = Date2.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: Date2}});
|
|
date = new Date2();
|
|
value12 = date instanceof Object ? date : value11;
|
|
setMilliseconds = value12.setMilliseconds;
|
|
value13 = Reflect.apply(setMilliseconds, value12, [0]);
|
|
prototype = Date.prototype;
|
|
value14 = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value15 = date instanceof Object ? date : value14;
|
|
value9.dtstart = value15;
|
|
break reducibleJoin13;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
wkst = value9.wkst;
|
|
if (i_70462Binding(wkst)) {
|
|
o_70463Binding = o_70463;
|
|
wkst = value9.wkst;
|
|
reducibleJoin17: while (true) {
|
|
if (o_70463Binding(wkst)) {
|
|
break reducibleJoin17;
|
|
}
|
|
wkst = value9.wkst;
|
|
weekday = wkst.weekday;
|
|
value9.wkst = weekday;
|
|
break reducibleJoin17;
|
|
}
|
|
} else {
|
|
MO = env1_63.MO;
|
|
weekday = MO.weekday;
|
|
value9.wkst = weekday;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
bysetpos = value9.bysetpos;
|
|
if (i_70462Binding(bysetpos)) {
|
|
o_70463Binding = o_70463;
|
|
bysetpos = value9.bysetpos;
|
|
reducibleJoin20: while (true) {
|
|
if (o_70463Binding(bysetpos)) {
|
|
bysetpos = value9.bysetpos;
|
|
value9.bysetpos = [bysetpos];
|
|
break reducibleJoin20;
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
bysetpos = value9.bysetpos;
|
|
length = bysetpos.length;
|
|
value16 = 0;
|
|
if (value16 < length) {
|
|
r6 = value16;
|
|
reducibleLoop21: while (true) {
|
|
bysetpos = value9.bysetpos;
|
|
property = bysetpos[r6];
|
|
if (value16 === property) {
|
|
throw new global.Error('bysetpos must be between 1 and 366, or between -366 and -1');
|
|
}
|
|
if (!(property >= -366)) {
|
|
throw new global.Error('bysetpos must be between 1 and 366, or between -366 and -1');
|
|
}
|
|
if (!(property <= 366)) {
|
|
throw new global.Error('bysetpos must be between 1 and 366, or between -366 and -1');
|
|
}
|
|
value17 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
bysetpos = value9.bysetpos;
|
|
length = bysetpos.length;
|
|
if (value17 < length) {
|
|
r6 = value17;
|
|
continue reducibleLoop21;
|
|
}
|
|
break reducibleLoop21;
|
|
}
|
|
}
|
|
}
|
|
Boolean = global.Boolean;
|
|
byweekno = value9.byweekno;
|
|
reducibleJoin40: while (true) {
|
|
if (Boolean(byweekno)) {
|
|
break reducibleJoin40;
|
|
}
|
|
f_70470Binding = f_70470;
|
|
byweekno = value9.byweekno;
|
|
if (f_70470Binding(byweekno)) {
|
|
break reducibleJoin40;
|
|
}
|
|
f_70470Binding = f_70470;
|
|
byyearday = value9.byyearday;
|
|
if (f_70470Binding(byyearday)) {
|
|
break reducibleJoin40;
|
|
}
|
|
Boolean = global.Boolean;
|
|
bymonthday = value9.bymonthday;
|
|
if (Boolean(bymonthday)) {
|
|
break reducibleJoin40;
|
|
}
|
|
f_70470Binding = f_70470;
|
|
bymonthday = value9.bymonthday;
|
|
if (f_70470Binding(bymonthday)) {
|
|
break reducibleJoin40;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
byweekday = value9.byweekday;
|
|
if (i_70462Binding(byweekday)) {
|
|
break reducibleJoin40;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
byeaster = value9.byeaster;
|
|
if (i_70462Binding(byeaster)) {
|
|
break reducibleJoin40;
|
|
}
|
|
freq = value9.freq;
|
|
YEARLY = env1_63.YEARLY;
|
|
if (YEARLY === freq) {
|
|
bymonth = value9.bymonth;
|
|
reducibleJoin39: while (true) {
|
|
if (bymonth) {
|
|
break reducibleJoin39;
|
|
}
|
|
dtstart = value9.dtstart;
|
|
getUTCMonth = dtstart.getUTCMonth;
|
|
value19 = Reflect.apply(getUTCMonth, dtstart, []);
|
|
value9.bymonth = value19 + 1;
|
|
break reducibleJoin39;
|
|
}
|
|
dtstart = value9.dtstart;
|
|
getUTCDate = dtstart.getUTCDate;
|
|
value9.bymonthday = Reflect.apply(getUTCDate, dtstart, []);
|
|
break reducibleJoin40;
|
|
}
|
|
MONTHLY = env1_63.MONTHLY;
|
|
if (MONTHLY === freq) {
|
|
dtstart = value9.dtstart;
|
|
getUTCDate = dtstart.getUTCDate;
|
|
value9.bymonthday = Reflect.apply(getUTCDate, dtstart, []);
|
|
break reducibleJoin40;
|
|
}
|
|
WEEKLY = env1_63.WEEKLY;
|
|
if (WEEKLY !== freq) {
|
|
break reducibleJoin40;
|
|
}
|
|
dtstart = value9.dtstart;
|
|
value18 = U_70480(dtstart);
|
|
value9.byweekday = [value18];
|
|
break reducibleJoin40;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
bymonth = value9.bymonth;
|
|
value20 = i_70462Binding(bymonth);
|
|
reducibleJoin42: while (true) {
|
|
if (value20) {
|
|
isArrayBinding = isArray;
|
|
bymonth = value9.bymonth;
|
|
value21 = !isArrayBinding(bymonth);
|
|
r5 = value21;
|
|
break reducibleJoin42;
|
|
}
|
|
r5 = value20;
|
|
break reducibleJoin42;
|
|
}
|
|
reducibleJoin44: while (true) {
|
|
if (r5) {
|
|
bymonth = value9.bymonth;
|
|
value9.bymonth = [bymonth];
|
|
break reducibleJoin44;
|
|
}
|
|
break reducibleJoin44;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
byyearday = value9.byyearday;
|
|
value22 = i_70462Binding(byyearday);
|
|
reducibleJoin46: while (true) {
|
|
if (value22) {
|
|
isArrayBinding = isArray;
|
|
byyearday = value9.byyearday;
|
|
value23 = !isArrayBinding(byyearday);
|
|
r5 = value23;
|
|
break reducibleJoin46;
|
|
}
|
|
r5 = value22;
|
|
break reducibleJoin46;
|
|
}
|
|
reducibleJoin48: while (true) {
|
|
if (r5) {
|
|
o_70463Binding = o_70463;
|
|
byyearday = value9.byyearday;
|
|
value24 = o_70463Binding(byyearday);
|
|
r5 = value24;
|
|
break reducibleJoin48;
|
|
}
|
|
break reducibleJoin48;
|
|
}
|
|
reducibleJoin50: while (true) {
|
|
if (r5) {
|
|
byyearday = value9.byyearday;
|
|
value9.byyearday = [byyearday];
|
|
break reducibleJoin50;
|
|
}
|
|
break reducibleJoin50;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
bymonthday = value9.bymonthday;
|
|
if (i_70462Binding(bymonthday)) {
|
|
isArrayBinding = isArray;
|
|
bymonthday = value9.bymonthday;
|
|
isArray2 = isArrayBinding(bymonthday);
|
|
bymonthday = value9.bymonthday;
|
|
value25 = 0;
|
|
if (isArray2) {
|
|
items3 = [];
|
|
items4 = [];
|
|
length = bymonthday.length;
|
|
if (value25 < length) {
|
|
r8 = value25;
|
|
reducibleLoop57: while (true) {
|
|
bymonthday = value9.bymonthday;
|
|
property = bymonthday[r8];
|
|
if (property > value25) {
|
|
push = items3.push;
|
|
Reflect.apply(push, items3, [property]);
|
|
} else {
|
|
reducibleJoin61: while (true) {
|
|
if (property < value25) {
|
|
push = items4.push;
|
|
Reflect.apply(push, items4, [property]);
|
|
break reducibleJoin61;
|
|
}
|
|
break reducibleJoin61;
|
|
}
|
|
}
|
|
value26 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
bymonthday = value9.bymonthday;
|
|
length = bymonthday.length;
|
|
if (value26 < length) {
|
|
r8 = value26;
|
|
continue reducibleLoop57;
|
|
}
|
|
break reducibleLoop57;
|
|
}
|
|
}
|
|
value9.bymonthday = items3;
|
|
value9.bynmonthday = items4;
|
|
} else if (bymonthday < value25) {
|
|
bymonthday = value9.bymonthday;
|
|
value9.bynmonthday = [bymonthday];
|
|
value9.bymonthday = [];
|
|
} else {
|
|
value9.bynmonthday = [];
|
|
bymonthday = value9.bymonthday;
|
|
value9.bymonthday = [bymonthday];
|
|
}
|
|
} else {
|
|
value9.bymonthday = [];
|
|
value9.bynmonthday = [];
|
|
}
|
|
i_70462Binding = i_70462;
|
|
byweekno = value9.byweekno;
|
|
value27 = i_70462Binding(byweekno);
|
|
reducibleJoin65: while (true) {
|
|
if (value27) {
|
|
isArrayBinding = isArray;
|
|
byweekno = value9.byweekno;
|
|
value28 = !isArrayBinding(byweekno);
|
|
r5 = value28;
|
|
break reducibleJoin65;
|
|
}
|
|
r5 = value27;
|
|
break reducibleJoin65;
|
|
}
|
|
reducibleJoin67: while (true) {
|
|
if (r5) {
|
|
byweekno = value9.byweekno;
|
|
value9.byweekno = [byweekno];
|
|
break reducibleJoin67;
|
|
}
|
|
break reducibleJoin67;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
byweekday = value9.byweekday;
|
|
if (i_70462Binding(byweekday)) {
|
|
o_70463Binding = o_70463;
|
|
byweekday = value9.byweekday;
|
|
if (o_70463Binding(byweekday)) {
|
|
byweekday = value9.byweekday;
|
|
value9.byweekday = [byweekday];
|
|
value9.bynweekday = value;
|
|
} else {
|
|
a_70464Binding = a_70464;
|
|
byweekday = value9.byweekday;
|
|
if (a_70464Binding(byweekday)) {
|
|
binding = env1_2;
|
|
fromStr = binding.fromStr;
|
|
byweekday = value9.byweekday;
|
|
weekday = Reflect.apply(fromStr, binding, [byweekday]).weekday;
|
|
value9.byweekday = [weekday];
|
|
value9.bynweekday = value;
|
|
} else {
|
|
byweekday = value9.byweekday;
|
|
value29 = byweekday instanceof env1_2;
|
|
byweekday = value9.byweekday;
|
|
if (value29) {
|
|
n = byweekday.n;
|
|
reducibleJoin91: while (true) {
|
|
reducibleJoin88: while (true) {
|
|
if (n) {
|
|
freq = value9.freq;
|
|
MONTHLY = env1_63.MONTHLY;
|
|
if (freq > MONTHLY) {
|
|
break reducibleJoin88;
|
|
}
|
|
byweekday = value9.byweekday;
|
|
weekday = byweekday.weekday;
|
|
byweekday = value9.byweekday;
|
|
n = byweekday.n;
|
|
value9.bynweekday = [[weekday, n]];
|
|
value9.byweekday = value;
|
|
break reducibleJoin91;
|
|
}
|
|
break reducibleJoin88;
|
|
}
|
|
byweekday = value9.byweekday;
|
|
weekday = byweekday.weekday;
|
|
value9.byweekday = [weekday];
|
|
value9.bynweekday = value;
|
|
break reducibleJoin91;
|
|
}
|
|
} else {
|
|
items3 = [];
|
|
items2 = [];
|
|
length = byweekday.length;
|
|
value30 = 0;
|
|
if (value30 < length) {
|
|
r9 = value30;
|
|
reducibleLoop73: while (true) {
|
|
byweekday = value9.byweekday;
|
|
property = byweekday[r9];
|
|
if (o_70463(property)) {
|
|
push = items3.push;
|
|
Reflect.apply(push, items3, [property]);
|
|
} else if (a_70464(property)) {
|
|
push = items3.push;
|
|
binding = env1_2;
|
|
fromStr = binding.fromStr;
|
|
weekday = Reflect.apply(fromStr, binding, [property]).weekday;
|
|
Reflect.apply(push, items3, [weekday]);
|
|
} else {
|
|
n = property.n;
|
|
reducibleJoin81: while (true) {
|
|
reducibleJoin78: while (true) {
|
|
if (n) {
|
|
freq = value9.freq;
|
|
MONTHLY = env1_63.MONTHLY;
|
|
if (freq > MONTHLY) {
|
|
break reducibleJoin78;
|
|
}
|
|
push = items2.push;
|
|
weekday = property.weekday;
|
|
n = property.n;
|
|
Reflect.apply(push, items2, [[weekday, n]]);
|
|
break reducibleJoin81;
|
|
}
|
|
break reducibleJoin78;
|
|
}
|
|
push = items3.push;
|
|
weekday = property.weekday;
|
|
Reflect.apply(push, items3, [weekday]);
|
|
break reducibleJoin81;
|
|
}
|
|
}
|
|
value31 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
byweekday = value9.byweekday;
|
|
length = byweekday.length;
|
|
if (value31 < length) {
|
|
r9 = value31;
|
|
continue reducibleLoop73;
|
|
}
|
|
break reducibleLoop73;
|
|
}
|
|
}
|
|
r6 = f_70470(items3) ? items3 : value;
|
|
value9.byweekday = r6;
|
|
r6 = f_70470(items2) ? items2 : value;
|
|
value9.bynweekday = r6;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
value9.bynweekday = value;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
byhour = value9.byhour;
|
|
if (i_70462Binding(byhour)) {
|
|
o_70463Binding = o_70463;
|
|
byhour = value9.byhour;
|
|
reducibleJoin97: while (true) {
|
|
if (o_70463Binding(byhour)) {
|
|
byhour = value9.byhour;
|
|
value9.byhour = [byhour];
|
|
break reducibleJoin97;
|
|
}
|
|
break reducibleJoin97;
|
|
}
|
|
} else {
|
|
freq = value9.freq;
|
|
HOURLY = env1_63.HOURLY;
|
|
reducibleJoin94: while (true) {
|
|
if (freq < HOURLY) {
|
|
dtstart = value9.dtstart;
|
|
getUTCHours = dtstart.getUTCHours;
|
|
value32 = Reflect.apply(getUTCHours, dtstart, []);
|
|
r5 = [value32];
|
|
break reducibleJoin94;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin94;
|
|
}
|
|
value9.byhour = r5;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
byminute = value9.byminute;
|
|
if (i_70462Binding(byminute)) {
|
|
o_70463Binding = o_70463;
|
|
byminute = value9.byminute;
|
|
reducibleJoin103: while (true) {
|
|
if (o_70463Binding(byminute)) {
|
|
byminute = value9.byminute;
|
|
value9.byminute = [byminute];
|
|
break reducibleJoin103;
|
|
}
|
|
break reducibleJoin103;
|
|
}
|
|
} else {
|
|
freq = value9.freq;
|
|
MINUTELY = env1_63.MINUTELY;
|
|
reducibleJoin100: while (true) {
|
|
if (freq < MINUTELY) {
|
|
dtstart = value9.dtstart;
|
|
getUTCMinutes = dtstart.getUTCMinutes;
|
|
value33 = Reflect.apply(getUTCMinutes, dtstart, []);
|
|
r5 = [value33];
|
|
break reducibleJoin100;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin100;
|
|
}
|
|
value9.byminute = r5;
|
|
}
|
|
i_70462Binding = i_70462;
|
|
bysecond = value9.bysecond;
|
|
if (i_70462Binding(bysecond)) {
|
|
o_70463Binding = o_70463;
|
|
bysecond = value9.bysecond;
|
|
reducibleJoin109: while (true) {
|
|
if (o_70463Binding(bysecond)) {
|
|
bysecond = value9.bysecond;
|
|
value9.bysecond = [bysecond];
|
|
break reducibleJoin109;
|
|
}
|
|
break reducibleJoin109;
|
|
}
|
|
} else {
|
|
freq = value9.freq;
|
|
SECONDLY = env1_63.SECONDLY;
|
|
reducibleJoin106: while (true) {
|
|
if (freq < SECONDLY) {
|
|
dtstart = value9.dtstart;
|
|
getUTCSeconds = dtstart.getUTCSeconds;
|
|
value = Reflect.apply(getUTCSeconds, dtstart, []);
|
|
r4 = [value];
|
|
break reducibleJoin106;
|
|
}
|
|
r4 = value;
|
|
break reducibleJoin106;
|
|
}
|
|
value9.bysecond = r4;
|
|
}
|
|
parsedOptions = ({parsedOptions: value9}).parsedOptions;
|
|
this.options = parsedOptions;
|
|
return undefined;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
}
|
|
const Error = global.Error;
|
|
let concat = 'Invalid frequency: '.concat;
|
|
concat = Reflect.apply(concat, 'Invalid frequency: ', [value9.freq, ' ']).concat;
|
|
value = Reflect.apply(concat, value, [r5.freq]);
|
|
const value10 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error(value);
|
|
throw error instanceof Object ? error : value10;
|
|
}
|
|
|
|
function fromText(a0, a1) { // fn#70607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:39076, offset: 0x01d01a81, size: 66 bytes, params: 3, frame: 14
|
|
let value = a1;
|
|
const value2 = undefined;
|
|
const r4 = value2 !== value ? value : env1_39;
|
|
value = environment.__proto__;
|
|
const binding = env1_63;
|
|
const r0 = Q_70388(a0, r4) || value2;
|
|
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(r0);
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
}
|
|
|
|
function fromString(a0) { // fn#70608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:39182, offset: 0x01d01ac3, size: 51 bytes, params: 2, frame: 11
|
|
const t_70605Binding = t_70605;
|
|
const r0 = t_70605Binding.parseString(a0) || undefined;
|
|
const value = Object.create(t_70605Binding.prototype, {constructor: {value: t_70605Binding}});
|
|
const t_706052 = new t_70605Binding(r0);
|
|
return t_706052 instanceof Object ? t_706052 : value;
|
|
}
|
|
|
|
function all_70612(a0) { // fn#70612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:39482, offset: 0x01d01b6c, size: 139 bytes, params: 2, frame: 18
|
|
var r0;
|
|
var value;
|
|
var _iter;
|
|
var value2;
|
|
if (a0) {
|
|
_iter = this._iter;
|
|
value = environment.__proto__;
|
|
return Reflect.apply(_iter, this, [new env1_38('all', {}, a0)]);
|
|
}
|
|
value = this._cacheGet('all');
|
|
if (value !== false) {
|
|
r0 = value;
|
|
} else {
|
|
_iter = this._iter;
|
|
value = environment.__proto__;
|
|
value2 = new env1_34('all', {});
|
|
value2 = Reflect.apply(_iter, this, [value2]);
|
|
this._cacheAdd('all', value2);
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function between_70613(a0, a1, a2, a3) { // fn#70613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:39659, offset: 0x01d01bf7, size: 234 bytes, params: 5, frame: 19
|
|
var object;
|
|
var value2;
|
|
var _iter;
|
|
var value3;
|
|
let value = a2;
|
|
let r1 = value !== undefined ? value : false;
|
|
value = environment.__proto__;
|
|
if (T_70475(a0)) {
|
|
if (T_70475(a1)) {
|
|
object = {before: a1, after: a0, inc: r1};
|
|
if (a3) {
|
|
return this._iter(new env1_38('between', object, a3));
|
|
}
|
|
value2 = this._cacheGet('between', object);
|
|
if (value2 !== false) {
|
|
r1 = value2;
|
|
} else {
|
|
_iter = this._iter;
|
|
value3 = new env1_34('between');
|
|
value3 = Reflect.apply(_iter, this, [value3]);
|
|
this._cacheAdd('between', value3, object);
|
|
r1 = value3;
|
|
}
|
|
return r1;
|
|
}
|
|
throw new global.Error('Invalid date passed in to RRule.between');
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('Invalid date passed in to RRule.between');
|
|
}
|
|
|
|
function before_70614(a0, a1) { // fn#70614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:39986, offset: 0x01d01ce1, size: 161 bytes, params: 3, frame: 17
|
|
var object;
|
|
var value2;
|
|
var _iter;
|
|
var value3;
|
|
let value = a1;
|
|
let r0 = value !== undefined ? value : false;
|
|
value = environment.__proto__;
|
|
if (T_70475(a0)) {
|
|
object = {dt: a0, inc: r0};
|
|
value2 = this._cacheGet('before', object);
|
|
if (value2 !== false) {
|
|
r0 = value2;
|
|
} else {
|
|
_iter = this._iter;
|
|
value3 = new env1_34('before');
|
|
value3 = Reflect.apply(_iter, this, [value3]);
|
|
this._cacheAdd('before', value3, object);
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('Invalid date passed in to RRule.before');
|
|
}
|
|
|
|
function after_70615(a0, a1) { // fn#70615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:40234, offset: 0x01d01d82, size: 161 bytes, params: 3, frame: 17
|
|
var object;
|
|
var value2;
|
|
var _iter;
|
|
var value3;
|
|
let value = a1;
|
|
let r0 = value !== undefined ? value : false;
|
|
value = environment.__proto__;
|
|
if (T_70475(a0)) {
|
|
object = {dt: a0, inc: r0};
|
|
value2 = this._cacheGet('after', object);
|
|
if (value2 !== false) {
|
|
r0 = value2;
|
|
} else {
|
|
_iter = this._iter;
|
|
value3 = new env1_34('after');
|
|
value3 = Reflect.apply(_iter, this, [value3]);
|
|
this._cacheAdd('after', value3, object);
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('Invalid date passed in to RRule.after');
|
|
}
|
|
|
|
function toText(a0, a1, a2) { // fn#70618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:40595, offset: 0x01d01e50, size: 50 bytes, params: 4, frame: 17
|
|
const value = environment.__proto__;
|
|
return new env1_43(this, a0, a1, a2).toString();
|
|
}
|
|
|
|
function clone_70620() { // fn#70620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:40767, offset: 0x01d01e95, size: 38 bytes, params: 1, frame: 11
|
|
const t_70605Binding = t_70605;
|
|
const origOptions = this.origOptions;
|
|
const value = Object.create(t_70605Binding.prototype, {constructor: {value: t_70605Binding}});
|
|
const t_706052 = new t_70605Binding(origOptions);
|
|
return t_706052 instanceof Object ? t_706052 : value;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70621(a0) { // fn#70621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43851, offset: 0x01d01ebb, size: 261 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const e_706222 = e_70622;
|
|
W_70385(e_706222, a0);
|
|
e_706222.prototype._iter = function(a0) {
|
|
return _fun70624(a0, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
|
|
};
|
|
e_706222.prototype.rrule = function(a0) {
|
|
$t(a0, this._rrule);
|
|
};
|
|
e_706222.prototype.exrule = function(a0) {
|
|
$t(a0, this._exrule);
|
|
};
|
|
e_706222.prototype.rdate = function(a0) {
|
|
Jt(a0, this._rdate);
|
|
};
|
|
e_706222.prototype.exdate = function(a0) {
|
|
Jt(a0, this._exdate);
|
|
};
|
|
e_706222.prototype.rrules = function() {
|
|
return this._rrule.map(_fun70637);
|
|
};
|
|
e_706222.prototype.exrules = function() {
|
|
return this._exrule.map(_fun70639);
|
|
};
|
|
e_706222.prototype.rdates = function() {
|
|
return this._rdate.map(_fun70641);
|
|
};
|
|
e_706222.prototype.exdates = function() {
|
|
return this._exdate.map(_fun70643);
|
|
};
|
|
e_706222.prototype.valueOf = valueOf_70644;
|
|
e_706222.prototype.toString = function() {
|
|
return this.valueOf().join('\n');
|
|
};
|
|
e_706222.prototype.clone = clone_70650;
|
|
return e_706222;
|
|
function e_70622(a0) { // fn#70622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43863, offset: 0x01d01fc0, size: 144 bytes, params: 2, frame: 15
|
|
let value = a0;
|
|
const value2 = this;
|
|
value = env0_0.call(value2, {}, value !== undefined ? value : false);
|
|
const r0 = value || value2;
|
|
value = environment.__proto__;
|
|
r0.dtstart = Gt.apply(r0, ['dtstart']);
|
|
r0.tzid = Gt.apply(r0, ['tzid']);
|
|
r0._rrule = [];
|
|
r0._rdate = [];
|
|
r0._exrule = [];
|
|
r0._exdate = [];
|
|
return r0;
|
|
}
|
|
|
|
function _iter_70623(a0) { // fn#70623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44079, offset: 0x01d02050, size: 57 bytes, params: 2, frame: 21
|
|
return _fun70624(a0, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
|
|
function _fun70624(a0, a1, a2, a3, a4, a5) { // fn#70624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44098, offset: 0x01d02089, size: 384 bytes, params: 7, frame: 23
|
|
var r7;
|
|
var args;
|
|
var after;
|
|
var binding;
|
|
var property;
|
|
var prototype;
|
|
var value3;
|
|
var binding2;
|
|
var value5;
|
|
var value6;
|
|
var Date;
|
|
var value7;
|
|
var value8;
|
|
var date;
|
|
var value9;
|
|
var value10;
|
|
let env0_0 = a0;
|
|
let env0_1 = a2;
|
|
const env0_2 = a5;
|
|
const closure = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
importDefault.forEach(_fun70626);
|
|
};
|
|
const env0_3 = {};
|
|
let accept = a0.accept;
|
|
a4.forEach(_fun70628);
|
|
a0.accept = accept_70629;
|
|
let method = a0.method;
|
|
if (method === 'between') {
|
|
args = a0.args;
|
|
after = args.after;
|
|
args = a0.args;
|
|
closure(after, args.before);
|
|
a0.accept = accept_70630;
|
|
}
|
|
let length = a3.length;
|
|
const value = 0;
|
|
if (value < length) {
|
|
r7 = value;
|
|
while (true) {
|
|
binding = env2_48;
|
|
property = a3[r7];
|
|
prototype = binding.prototype;
|
|
value3 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding(property, a5);
|
|
value5 = binding2 instanceof Object ? binding2 : value3;
|
|
value6 = value5.rezonedDate();
|
|
accept = a0.accept;
|
|
Date = global.Date;
|
|
value7 = value6.getTime();
|
|
prototype = Date.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value9 = date instanceof Object ? date : value8;
|
|
if (!Reflect.apply(accept, a0, [value9])) {
|
|
break;
|
|
}
|
|
value10 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
length = a3.length;
|
|
if (value10 < length) {
|
|
r7 = value10;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
a1.forEach(_fun70631);
|
|
const _result = a0._result;
|
|
R_70485(_result);
|
|
method = a0.method;
|
|
if (method === 'all') {
|
|
return _result;
|
|
}
|
|
if (method === 'between') {
|
|
return _result;
|
|
}
|
|
let r1 = method === 'before' ? _result.length && _result[_result.length - 1] : _result.length && _result[value];
|
|
r1 = !r1 ? null : r1;
|
|
return r1;
|
|
function u_70625(a0, a1) { // fn#70625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44140, offset: 0x01d02209, size: 44 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
importDefault.forEach(_fun70626);
|
|
function _fun70626(a0) { // fn#70626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44167, offset: 0x01d02235, size: 52 bytes, params: 2, frame: 15
|
|
a0.between(env0_0, require, true).forEach(_fun70627);
|
|
function _fun70627(a0) { // fn#70627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44206, offset: 0x01d02269, size: 33 bytes, params: 2, frame: 12
|
|
const value = environment.__proto__.__proto__;
|
|
const binding = env2_3;
|
|
const Number = global.Number;
|
|
binding[Number(a0)] = true;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70628(a0) { // fn#70628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44251, offset: 0x01d0228a, size: 74 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
let binding = env3_48;
|
|
const binding2 = env0_2;
|
|
const value2 = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding3 = new binding(a0, binding2);
|
|
const value5 = (binding3 instanceof Object ? binding3 : value2).rezonedDate();
|
|
binding = env0_3;
|
|
const Number = global.Number;
|
|
binding[Number(value5)] = true;
|
|
}
|
|
|
|
function accept_70629(a0) { // fn#70629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44323, offset: 0x01d022d4, size: 189 bytes, params: 2, frame: 21
|
|
var r2;
|
|
var r0;
|
|
var property;
|
|
var u_70625Binding;
|
|
var Date;
|
|
var value4;
|
|
var prototype;
|
|
var value5;
|
|
var date;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
const Number = global.Number;
|
|
let value = Number(a0);
|
|
if (global.isNaN(value)) {
|
|
r0 = accept.call(this, a0);
|
|
} else {
|
|
property = env0_3[value];
|
|
if (property) {
|
|
r2 = !property;
|
|
} else {
|
|
u_70625Binding = u_70625;
|
|
Date = global.Date;
|
|
value4 = value - 1;
|
|
prototype = Date.prototype;
|
|
value5 = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value6 = date instanceof Object ? date : value5;
|
|
Date = global.Date;
|
|
value7 = value + 1;
|
|
prototype = Date.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
u_70625Binding(value6, date instanceof Object ? date : value8);
|
|
r2 = !env0_3[value];
|
|
}
|
|
if (r2) {
|
|
env0_3[value] = true;
|
|
value = accept.call(this, a0);
|
|
r0 = value;
|
|
} else {
|
|
r0 = !r2;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function accept_70630(a0) { // fn#70630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44520, offset: 0x01d02391, size: 68 bytes, params: 2, frame: 15
|
|
var r0;
|
|
const Number = global.Number;
|
|
let value = Number(a0);
|
|
const property = env0_3[value];
|
|
if (property) {
|
|
r0 = !!property;
|
|
} else {
|
|
env0_3[value] = true;
|
|
value = accept.call(this, a0);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun70631({options}) { // fn#70631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:44705, offset: 0x01d023d5, size: 32 bytes, params: 2, frame: 13
|
|
At(env0_0, options);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function rrules() { // fn#70636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45181, offset: 0x01d02469, size: 30 bytes, params: 1, frame: 11
|
|
return this._rrule.map(_fun70637);
|
|
function _fun70637(a0) { // fn#70637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45216, offset: 0x01d02487, size: 28 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__.__proto__;
|
|
return Bt(a0.toString());
|
|
}
|
|
|
|
}
|
|
|
|
function exrules() { // fn#70638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45276, offset: 0x01d024a3, size: 30 bytes, params: 1, frame: 11
|
|
return this._exrule.map(_fun70639);
|
|
function _fun70639(a0) { // fn#70639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45312, offset: 0x01d02487, size: 28 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__.__proto__;
|
|
return Bt(a0.toString());
|
|
}
|
|
|
|
}
|
|
|
|
function rdates() { // fn#70640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45371, offset: 0x01d024c1, size: 30 bytes, params: 1, frame: 11
|
|
return this._rdate.map(function(a0) {
|
|
var Date = global.Date;
|
|
var value = a0.getTime();
|
|
var value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
value = new Date(value);
|
|
return value instanceof Object ? value : value2;
|
|
});
|
|
}
|
|
|
|
function exdates() { // fn#70642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45471, offset: 0x01d024df, size: 30 bytes, params: 1, frame: 11
|
|
return this._exdate.map(function(a0) {
|
|
var Date = global.Date;
|
|
var value = a0.getTime();
|
|
var value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
value = new Date(value);
|
|
return value instanceof Object ? value : value2;
|
|
});
|
|
}
|
|
|
|
function valueOf_70644() { // fn#70644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45572, offset: 0x01d024fd, size: 268 bytes, params: 1, frame: 19
|
|
var environment;
|
|
var binding;
|
|
var concat;
|
|
var push;
|
|
let env0_0 = [];
|
|
const length = this._rrule.length;
|
|
let value = !length;
|
|
if (length ? value : this._dtstart) {
|
|
binding = env0_0;
|
|
concat = binding.concat;
|
|
value = environment.__proto__;
|
|
env0_0 = Reflect.apply(concat, binding, [ct_70406({dtstart: this._dtstart})]);
|
|
}
|
|
this._rrule.forEach(_fun70645);
|
|
this._exrule.forEach(_fun70646);
|
|
let _rdate = this._rdate;
|
|
if (_rdate.length) {
|
|
binding = env0_0;
|
|
push = binding.push;
|
|
value = environment.__proto__;
|
|
_rdate = this._rdate;
|
|
value = this.tzid();
|
|
Reflect.apply(push, binding, [Vt('RDATE', _rdate, value)]);
|
|
}
|
|
let _exdate = this._exdate;
|
|
if (_exdate.length) {
|
|
binding = env0_0;
|
|
push = binding.push;
|
|
value = environment.__proto__;
|
|
_exdate = this._exdate;
|
|
value = this.tzid();
|
|
Reflect.apply(push, binding, [Vt('EXDATE', _exdate, value)]);
|
|
}
|
|
return env0_0;
|
|
function _fun70645(a0) { // fn#70645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45697, offset: 0x01d02609, size: 51 bytes, params: 2, frame: 14
|
|
const binding = env0_0;
|
|
const concat = binding.concat;
|
|
const value2 = a0.toString();
|
|
env0_0 = Reflect.apply(concat, binding, [value2.split('\n')]);
|
|
}
|
|
|
|
function _fun70646(a0) { // fn#70646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45771, offset: 0x01d0263c, size: 87 bytes, params: 2, frame: 15
|
|
const binding = env0_0;
|
|
const concat = binding.concat;
|
|
const value4 = a0.toString().split('\n').map(function(a0) {
|
|
return a0.replace(RegExp('^RRULE:', ''), 'EXRULE:');
|
|
});
|
|
env0_0 = Reflect.apply(concat, binding, [value4.filter(function(a0) {
|
|
return !RegExp('^DTSTART', '').test(a0);
|
|
})]);
|
|
}
|
|
|
|
}
|
|
|
|
function clone_70650() { // fn#70650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46148, offset: 0x01d026f3, size: 142 bytes, params: 1, frame: 14
|
|
const e_706222 = new e_70622(!!this._cache);
|
|
this._rrule.forEach(_fun70651);
|
|
this._exrule.forEach(_fun70652);
|
|
this._rdate.forEach(_fun70653);
|
|
this._exdate.forEach(_fun70654);
|
|
return e_706222;
|
|
function _fun70651(a0) { // fn#70651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46214, offset: 0x01d02781, size: 33 bytes, params: 2, frame: 12
|
|
const binding = env0_0;
|
|
return binding.rrule(a0.clone());
|
|
}
|
|
|
|
function _fun70652(a0) { // fn#70652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46277, offset: 0x01d027a2, size: 33 bytes, params: 2, frame: 12
|
|
const binding = env0_0;
|
|
return binding.exrule(a0.clone());
|
|
}
|
|
|
|
function _fun70653(a0) { // fn#70653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46340, offset: 0x01d027c3, size: 61 bytes, params: 2, frame: 13
|
|
const binding = env0_0;
|
|
const rdate = binding.rdate;
|
|
const Date = global.Date;
|
|
const value = a0.getTime();
|
|
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date();
|
|
return Reflect.apply(rdate, binding, [date instanceof Object ? date : value2]);
|
|
}
|
|
|
|
function _fun70654(a0) { // fn#70654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:46415, offset: 0x01d02800, size: 61 bytes, params: 2, frame: 13
|
|
const binding = env0_0;
|
|
const exdate = binding.exdate;
|
|
const Date = global.Date;
|
|
const value = a0.getTime();
|
|
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date();
|
|
return Reflect.apply(exdate, binding, [date instanceof Object ? date : value2]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function q_70387(a0, a1, a2) { // fn#70387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:5435, offset: 0x00dfe7bf, size: 165 bytes, params: 4, frame: 22
|
|
var r0;
|
|
var r3;
|
|
var r9;
|
|
var r8;
|
|
var r1;
|
|
var length;
|
|
var value2;
|
|
var Array;
|
|
var prototype;
|
|
var slice;
|
|
var call;
|
|
let value = undefined;
|
|
reducibleJoin10: while (true) {
|
|
reducibleJoin2: while (true) {
|
|
if (a2) {
|
|
break reducibleJoin2;
|
|
}
|
|
if (arguments.length !== 2) {
|
|
r1 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
length = a1.length;
|
|
value2 = 0;
|
|
if (!(value2 < length)) {
|
|
r1 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
r0 = value2;
|
|
r3 = value;
|
|
reducibleLoop3: while (true) {
|
|
value = !r3;
|
|
reducibleJoin5: while (true) {
|
|
if (r3) {
|
|
r9 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
value = r0 in a1;
|
|
r9 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
reducibleJoin9: while (true) {
|
|
if (r9) {
|
|
r8 = r3;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin8: while (true) {
|
|
if (r3) {
|
|
r9 = r3;
|
|
break reducibleJoin8;
|
|
}
|
|
Array = global.Array;
|
|
prototype = Array.prototype;
|
|
slice = prototype.slice;
|
|
call = slice.call;
|
|
value = Reflect.apply(call, slice, [a1, value2, r0]);
|
|
r9 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
r9[r0] = a1[r0];
|
|
r8 = r9;
|
|
break reducibleJoin9;
|
|
}
|
|
value = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (value < length) {
|
|
r0 = value;
|
|
r3 = r8;
|
|
continue reducibleLoop3;
|
|
}
|
|
r1 = r8;
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
const concat = a0.concat;
|
|
reducibleJoin12: while (true) {
|
|
if (r1) {
|
|
break reducibleJoin12;
|
|
}
|
|
Array = global.Array;
|
|
prototype = Array.prototype;
|
|
slice = prototype.slice;
|
|
call = slice.call;
|
|
value = Reflect.apply(call, slice, [a1]);
|
|
r1 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
return Reflect.apply(concat, a0, [r1]);
|
|
}
|
|
|
|
function _fun70398(a0) { // fn#70398, offset: 0x00d81d26, size: 11 bytes, params: 2, frame: 2
|
|
return a0 !== null;
|
|
}
|
|
|
|
function _fun70428(a0) { // fn#70428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:41701, offset: 0x01cfc636, size: 240 bytes, params: 2, frame: 17
|
|
var object;
|
|
var value2;
|
|
var concat;
|
|
var object4;
|
|
let value = a0.indexOf(':');
|
|
if (value === -1) {
|
|
object = {name: 'RRULE', value: a0};
|
|
} else {
|
|
value = a0.split(':');
|
|
value2 = value.slice(0, 1);
|
|
concat = value2.concat;
|
|
value = value.slice(1);
|
|
value = value.join(':');
|
|
value = Reflect.apply(concat, value2, [[value]]);
|
|
object = {name: value[0], value: value[1]};
|
|
}
|
|
const name = object.name;
|
|
value = object.value;
|
|
const value3 = name.split(';');
|
|
if (value3) {
|
|
object4 = {};
|
|
object4.name = value3[0].toUpperCase();
|
|
object4.parms = value3.slice(1);
|
|
object4.value = value;
|
|
return object4;
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('empty property name');
|
|
}
|
|
|
|
function _fun70438(a0) { // fn#70438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:43468, offset: 0x01cfc93c, size: 74 bytes, params: 2, frame: 11
|
|
const regexp = RegExp('(VALUE=DATE(-TIME)?)|(TZID=)', '');
|
|
if (regexp.test(a0)) {
|
|
return undefined;
|
|
}
|
|
const Error = global.Error;
|
|
const value = 'unsupported RDATE/EXDATE parm: ' + a0;
|
|
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error(value);
|
|
throw error instanceof Object ? error : value2;
|
|
}
|
|
|
|
function t_70456(a0, a1) { // fn#70456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:794, offset: 0x01cfcd86, size: 67 bytes, params: 3, frame: 11
|
|
if (a1 === 0) {
|
|
throw new global.Error("Can't create weekday with n == 0");
|
|
}
|
|
this.weekday = a0;
|
|
this.n = a1;
|
|
}
|
|
|
|
function equals_70459(a0) { // fn#70459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:1045, offset: 0x01cfce34, size: 43 bytes, params: 2, frame: 4
|
|
return this.weekday === a0.weekday && this.n === a0.n;
|
|
}
|
|
|
|
function getJsWeekday() { // fn#70461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:1240, offset: 0x01cfceb7, size: 33 bytes, params: 1, frame: 4
|
|
return this.weekday === 6 ? 0 : this.weekday + 1;
|
|
}
|
|
|
|
function L_70482(a0, a1) { // fn#70482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:2812, offset: 0x01cfd242, size: 131 bytes, params: 3, frame: 25
|
|
let value = a0;
|
|
const r10 = a1 || value;
|
|
const Date = global.Date;
|
|
const Date2 = global.Date;
|
|
const UTC = Date2.UTC;
|
|
const uTCFullYear = value.getUTCFullYear();
|
|
const uTCMonth = value.getUTCMonth();
|
|
value = value.getUTCDate();
|
|
const hours = r10.getHours();
|
|
const minutes = r10.getMinutes();
|
|
const seconds = r10.getSeconds();
|
|
const getMilliseconds = r10.getMilliseconds;
|
|
value = Reflect.apply(UTC, Date2, [uTCFullYear, uTCMonth, value, hours, minutes, seconds,
|
|
Reflect.apply(getMilliseconds, r10, [])]);
|
|
const value8 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date(value);
|
|
return date instanceof Object ? date : value8;
|
|
}
|
|
|
|
function _fun70486(a0, a1) { // fn#70486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:3124, offset: 0x01cfd34a, size: 32 bytes, params: 3, frame: 10
|
|
let getTime = a0.getTime;
|
|
const value = Reflect.apply(getTime, a0, []);
|
|
getTime = a1.getTime;
|
|
return value - Reflect.apply(getTime, a1, []);
|
|
}
|
|
|
|
function A_70488(a0) { // fn#70488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:3432, offset: 0x01cfd45f, size: 280 bytes, params: 2, frame: 26
|
|
var r3;
|
|
var r1;
|
|
var Date;
|
|
var Date2;
|
|
var UTC;
|
|
var parseInt;
|
|
var int;
|
|
var value3;
|
|
var int2;
|
|
var value6;
|
|
var date;
|
|
let value = RegExp('^(\\d{4})(\\d{2})(\\d{2})(T(\\d{2})(\\d{2})(\\d{2})Z?)?$', '').exec(a0);
|
|
if (value) {
|
|
Date = global.Date;
|
|
Date2 = global.Date;
|
|
UTC = Date2.UTC;
|
|
parseInt = global.parseInt;
|
|
int = parseInt(value[1], 10);
|
|
parseInt = global.parseInt;
|
|
value3 = parseInt(value[2], 10) - 1;
|
|
parseInt = global.parseInt;
|
|
int2 = parseInt(value[3], 10);
|
|
parseInt = global.parseInt;
|
|
r3 = parseInt(value[5], 10) || 0;
|
|
parseInt = global.parseInt;
|
|
r1 = parseInt(value[6], 10) || 0;
|
|
parseInt = global.parseInt;
|
|
value = parseInt(value[7], 10);
|
|
value = Reflect.apply(UTC, Date2, [int, value3, int2, r3, r1, value || 0]);
|
|
value6 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
date = new Date(value);
|
|
return date instanceof Object ? date : value6;
|
|
}
|
|
const Error = global.Error;
|
|
value = 'Invalid UNTIL value: '.concat(a0);
|
|
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error(value);
|
|
throw error instanceof Object ? error : value2;
|
|
}
|
|
|
|
function t_70491(a0, a1) { // fn#70491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:3818, offset: 0x01cfd60a, size: 393 bytes, params: 3, frame: 13
|
|
var r0;
|
|
var inc;
|
|
var Date;
|
|
var value;
|
|
this.minDate = null;
|
|
this.maxDate = null;
|
|
this._result = [];
|
|
this.total = 0;
|
|
this.method = a0;
|
|
this.args = a1;
|
|
if (a0 === 'between') {
|
|
inc = a1.inc;
|
|
if (inc) {
|
|
r0 = a1.before;
|
|
} else {
|
|
Date = global.Date;
|
|
value = a1.before.getTime();
|
|
value -= 1;
|
|
r0 = new Date();
|
|
}
|
|
this.maxDate = r0;
|
|
inc = a1.inc;
|
|
if (inc) {
|
|
r0 = a1.after;
|
|
} else {
|
|
Date = global.Date;
|
|
value = a1.after.getTime();
|
|
value += 1;
|
|
r0 = new Date();
|
|
}
|
|
this.minDate = r0;
|
|
} else if (a0 === 'before') {
|
|
if (a1.inc) {
|
|
r0 = a1.dt;
|
|
} else {
|
|
Date = global.Date;
|
|
value = a1.dt.getTime();
|
|
value -= 1;
|
|
r0 = new Date();
|
|
}
|
|
this.maxDate = r0;
|
|
} else if (a0 === 'after') {
|
|
if (a1.inc) {
|
|
r0 = a1.dt;
|
|
} else {
|
|
Date = global.Date;
|
|
value = a1.dt.getTime();
|
|
value += 1;
|
|
r0 = new Date();
|
|
}
|
|
this.minDate = r0;
|
|
}
|
|
}
|
|
|
|
function accept_70492(a0) { // fn#70492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:4213, offset: 0x01cfd793, size: 157 bytes, params: 2, frame: 14
|
|
var r4;
|
|
const total = this.total;
|
|
this.total = typeof total === 'bigint' ? total + 1n : +total + 1;
|
|
const r3 = this.minDate && a0 < this.minDate;
|
|
const r0 = this.maxDate && a0 > this.maxDate;
|
|
if (this.method === 'between') {
|
|
if (r3) {
|
|
return true;
|
|
}
|
|
if (r0) {
|
|
return false;
|
|
}
|
|
return this.add(a0);
|
|
}
|
|
if (this.method === 'before') {
|
|
if (r0) {
|
|
return false;
|
|
}
|
|
return this.add(a0);
|
|
}
|
|
if (this.method !== 'after') {
|
|
return this.add(a0);
|
|
}
|
|
if (r3) {
|
|
r4 = !!r3;
|
|
} else {
|
|
this.add(a0);
|
|
r4 = false;
|
|
}
|
|
return r4;
|
|
}
|
|
|
|
function add_70493(a0) { // fn#70493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:4500, offset: 0x01cfd830, size: 26 bytes, params: 2, frame: 11
|
|
this._result.push(a0);
|
|
return true;
|
|
}
|
|
|
|
function getValue_70494() { // fn#70494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:4565, offset: 0x01cfd84a, size: 61 bytes, params: 1, frame: 4
|
|
const _result = this._result;
|
|
const method = this.method;
|
|
if (method === 'all') {
|
|
return _result;
|
|
}
|
|
if (method === 'between') {
|
|
return _result;
|
|
}
|
|
return _result.length ? _result[_result.length - 1] : null;
|
|
}
|
|
|
|
function _fun70500(a0) { // fn#70500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:5263, offset: 0x00dfd74d, size: 114 bytes, params: 2, frame: 25
|
|
var r2;
|
|
var r10;
|
|
var value3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var call;
|
|
var value4;
|
|
const length = arguments.length;
|
|
const value2 = 1;
|
|
if (value2 < length) {
|
|
r2 = value2;
|
|
while (true) {
|
|
value3 = arguments[r2];
|
|
for (propertyName in value3) {
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
call = hasOwnProperty.call;
|
|
if (!Reflect.apply(call, hasOwnProperty, [value3, propertyName])) {
|
|
r10 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = value3[propertyName];
|
|
r10 = propertyName2;
|
|
}
|
|
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value4 < length) {
|
|
r2 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function add_70503(a0) { // fn#70503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:5777, offset: 0x01cfd99c, size: 58 bytes, params: 2, frame: 13
|
|
var r0;
|
|
const value = this.iterator(a0, this._result.length);
|
|
if (value) {
|
|
this._result.push(a0);
|
|
r0 = true;
|
|
} else {
|
|
r0 = !!value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun70510(a0, a1) { // fn#70510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:7542, offset: 0x00f53572, size: 12 bytes, params: 3, frame: 2
|
|
return a1 - a0;
|
|
}
|
|
|
|
function _fun70512({n}) { // fn#70512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:7864, offset: 0x01cfded3, size: 26 bytes, params: 2, frame: 11
|
|
const Boolean = global.Boolean;
|
|
return Boolean(n);
|
|
}
|
|
|
|
function t_70508Y({weekday}, {weekday}) { // fn#70513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:8234, owner: t_70508.y, offset: 0x01cfdeed, size: 24 bytes, params: 3, frame: 2
|
|
return weekday - weekday;
|
|
}
|
|
|
|
function DAILY() { // fn#70519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:9868, offset: 0x01cfe24b, size: 314 bytes, params: 1, frame: 14
|
|
var add;
|
|
const gettext = this.gettext;
|
|
let interval = this.options.interval;
|
|
if (interval !== 1) {
|
|
add = this.add;
|
|
interval = this.options.interval;
|
|
Reflect.apply(add, this, [interval.toString()]);
|
|
}
|
|
if (this.byweekday) {
|
|
if (this.byweekday.isWeekdays) {
|
|
this.add(this.plural(this.options.interval) ? gettext('weekdays') : gettext('weekday'));
|
|
} else {
|
|
this.add(this.plural(this.options.interval) ? gettext('days') : gettext('day'));
|
|
}
|
|
} else {
|
|
this.add(this.plural(this.options.interval) ? gettext('days') : gettext('day'));
|
|
}
|
|
if (this.origOptions.bymonth) {
|
|
this.add(gettext('in'));
|
|
this._bymonth();
|
|
}
|
|
if (this.bymonthday) {
|
|
this._bymonthday();
|
|
} else if (this.byweekday) {
|
|
this._byweekday();
|
|
} else if (this.origOptions.byhour) {
|
|
this._byhour();
|
|
}
|
|
}
|
|
|
|
function WEEKLY() { // fn#70520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:10336, offset: 0x01cfe385, size: 478 bytes, params: 1, frame: 16
|
|
var add;
|
|
var value;
|
|
var plural;
|
|
const gettext = this.gettext;
|
|
let options = this.options;
|
|
let interval = options.interval;
|
|
if (interval !== 1) {
|
|
add = this.add;
|
|
options = this.options;
|
|
interval = options.interval;
|
|
value = Reflect.apply(add, this, [interval.toString()]);
|
|
add = value.add;
|
|
plural = this.plural;
|
|
options = this.options;
|
|
interval = options.interval;
|
|
Reflect.apply(add, value, [Reflect.apply(plural, this, [interval]) ? gettext('weeks') : gettext('week')]);
|
|
}
|
|
if (this.byweekday) {
|
|
if (this.byweekday.isWeekdays) {
|
|
if (this.options.interval === 1) {
|
|
this.add(this.plural(this.options.interval) ? gettext('weekdays') : gettext('weekday'));
|
|
} else {
|
|
this.add(gettext('on')).add(gettext('weekdays'));
|
|
}
|
|
} else if (this.byweekday) {
|
|
if (this.byweekday.isEveryDay) {
|
|
this.add(this.plural(this.options.interval) ? gettext('days') : gettext('day'));
|
|
} else {
|
|
if (this.options.interval === 1) {
|
|
this.add(gettext('week'));
|
|
}
|
|
if (this.origOptions.bymonth) {
|
|
this.add(gettext('in'));
|
|
this._bymonth();
|
|
}
|
|
if (this.bymonthday) {
|
|
this._bymonthday();
|
|
} else if (this.byweekday) {
|
|
this._byweekday();
|
|
}
|
|
}
|
|
} else {
|
|
if (this.options.interval === 1) {
|
|
this.add(gettext('week'));
|
|
}
|
|
if (this.origOptions.bymonth) {
|
|
this.add(gettext('in'));
|
|
this._bymonth();
|
|
}
|
|
if (this.bymonthday) {
|
|
this._bymonthday();
|
|
} else if (this.byweekday) {
|
|
this._byweekday();
|
|
}
|
|
}
|
|
} else if (this.byweekday) {
|
|
if (this.byweekday.isEveryDay) {
|
|
this.add(this.plural(this.options.interval) ? gettext('days') : gettext('day'));
|
|
} else {
|
|
if (this.options.interval === 1) {
|
|
this.add(gettext('week'));
|
|
}
|
|
if (this.origOptions.bymonth) {
|
|
this.add(gettext('in'));
|
|
this._bymonth();
|
|
}
|
|
if (this.bymonthday) {
|
|
this._bymonthday();
|
|
} else if (this.byweekday) {
|
|
this._byweekday();
|
|
}
|
|
}
|
|
} else {
|
|
if (this.options.interval === 1) {
|
|
this.add(gettext('week'));
|
|
}
|
|
if (this.origOptions.bymonth) {
|
|
this.add(gettext('in'));
|
|
this._bymonth();
|
|
}
|
|
if (this.bymonthday) {
|
|
this._bymonthday();
|
|
} else if (this.byweekday) {
|
|
this._byweekday();
|
|
}
|
|
}
|
|
}
|
|
|
|
function MONTHLY() { // fn#70521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:10981, offset: 0x01cfe563, size: 350 bytes, params: 1, frame: 16
|
|
var add;
|
|
var plural;
|
|
const gettext = this.gettext;
|
|
const bymonth = this.origOptions.bymonth;
|
|
let options = this.options;
|
|
let interval = options.interval;
|
|
if (bymonth) {
|
|
if (interval !== 1) {
|
|
add = this.add;
|
|
options = this.options;
|
|
interval = options.interval;
|
|
Reflect.apply(add, this, [interval.toString()]).add(gettext('months'));
|
|
plural = this.plural;
|
|
options = this.options;
|
|
interval = options.interval;
|
|
if (Reflect.apply(plural, this, [interval])) {
|
|
this.add(gettext('in'));
|
|
}
|
|
}
|
|
this._bymonth();
|
|
} else {
|
|
if (interval !== 1) {
|
|
add = this.add;
|
|
interval = this.options.interval;
|
|
Reflect.apply(add, this, [interval.toString()]);
|
|
}
|
|
add = this.add;
|
|
plural = this.plural;
|
|
interval = this.options.interval;
|
|
Reflect.apply(add, this, [Reflect.apply(plural, this, [interval]) ? gettext('months') : gettext('month')]);
|
|
}
|
|
if (this.bymonthday) {
|
|
this._bymonthday();
|
|
} else if (this.byweekday) {
|
|
if (this.byweekday.isWeekdays) {
|
|
this.add(gettext('on')).add(gettext('weekdays'));
|
|
} else if (this.byweekday) {
|
|
this._byweekday();
|
|
}
|
|
} else if (this.byweekday) {
|
|
this._byweekday();
|
|
}
|
|
}
|
|
|
|
function YEARLY() { // fn#70522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:11505, offset: 0x01cfe6c1, size: 486 bytes, params: 1, frame: 19
|
|
var add;
|
|
var plural;
|
|
var value;
|
|
var list;
|
|
const gettext = this.gettext;
|
|
const bymonth = this.origOptions.bymonth;
|
|
let options = this.options;
|
|
let interval = options.interval;
|
|
if (bymonth) {
|
|
if (interval !== 1) {
|
|
add = this.add;
|
|
interval = this.options.interval;
|
|
Reflect.apply(add, this, [interval.toString()]);
|
|
this.add(gettext('years'));
|
|
}
|
|
this._bymonth();
|
|
} else {
|
|
if (interval !== 1) {
|
|
add = this.add;
|
|
interval = this.options.interval;
|
|
Reflect.apply(add, this, [interval.toString()]);
|
|
}
|
|
add = this.add;
|
|
plural = this.plural;
|
|
interval = this.options.interval;
|
|
Reflect.apply(add, this, [Reflect.apply(plural, this, [interval]) ? gettext('years') : gettext('year')]);
|
|
}
|
|
if (this.bymonthday) {
|
|
this._bymonthday();
|
|
} else if (this.byweekday) {
|
|
this._byweekday();
|
|
}
|
|
if (this.options.byyearday) {
|
|
value = this.add(gettext('on the'));
|
|
value = value.add(this.list(this.options.byyearday, this.nth, gettext('and')));
|
|
value.add(gettext('day'));
|
|
}
|
|
let byweekno = this.options.byweekno;
|
|
if (byweekno) {
|
|
value = this.add(gettext('in'));
|
|
add = value.add;
|
|
plural = this.plural;
|
|
options = this.options;
|
|
byweekno = options.byweekno;
|
|
value = Reflect.apply(add, value, [Reflect.apply(plural, this,
|
|
[byweekno.length]) ? gettext('weeks') : gettext('week')]);
|
|
add = value.add;
|
|
list = this.list;
|
|
options = this.options;
|
|
byweekno = options.byweekno;
|
|
Reflect.apply(add, value, [Reflect.apply(list, this, [byweekno, undefined, gettext('and')])]);
|
|
}
|
|
}
|
|
|
|
function _bymonthday() { // fn#70523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:12183, offset: 0x01cfe8a7, size: 241 bytes, params: 1, frame: 20
|
|
var add;
|
|
var value;
|
|
var list;
|
|
const gettext = this.gettext;
|
|
if (this.byweekday) {
|
|
if (this.byweekday.allWeeks) {
|
|
value = this.add(gettext('on'));
|
|
add = value.add;
|
|
list = this.list;
|
|
value = Reflect.apply(add, value, [Reflect.apply(list, this, [this.byweekday.allWeeks, this.weekdaytext,
|
|
gettext('or')])]);
|
|
value = value.add(gettext('the'));
|
|
add = value.add;
|
|
list = this.list;
|
|
Reflect.apply(add, value, [Reflect.apply(list, this, [this.bymonthday, this.nth, gettext('or')])]);
|
|
} else {
|
|
value = this.add(gettext('on the'));
|
|
value.add(this.list(this.bymonthday, this.nth, gettext('and')));
|
|
}
|
|
} else {
|
|
value = this.add(gettext('on the'));
|
|
value.add(this.list(this.bymonthday, this.nth, gettext('and')));
|
|
}
|
|
}
|
|
|
|
function _byweekday() { // fn#70524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:12495, offset: 0x01cfe998, size: 231 bytes, params: 1, frame: 19
|
|
var value;
|
|
var add;
|
|
var list;
|
|
const gettext = this.gettext;
|
|
let byweekday = this.byweekday;
|
|
if (byweekday.allWeeks && !this.byweekday.isWeekdays) {
|
|
value = this.add(gettext('on'));
|
|
value.add(this.list(this.byweekday.allWeeks, this.weekdaytext));
|
|
}
|
|
if (this.byweekday.someWeeks) {
|
|
byweekday = this.byweekday;
|
|
if (byweekday.allWeeks) {
|
|
this.add(gettext('and'));
|
|
}
|
|
value = this.add(gettext('on the'));
|
|
add = value.add;
|
|
list = this.list;
|
|
byweekday = this.byweekday;
|
|
Reflect.apply(add, value, [Reflect.apply(list, this, [byweekday.someWeeks, this.weekdaytext, gettext('and')])]);
|
|
}
|
|
}
|
|
|
|
function nth_70527(a0) { // fn#70527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:13066, offset: 0x01cfeb09, size: 224 bytes, params: 2, frame: 15
|
|
var r0;
|
|
const parseInt = global.parseInt;
|
|
let value = a0.toString();
|
|
value = parseInt(value, 10);
|
|
const gettext = this.gettext;
|
|
if (value === -1) {
|
|
return gettext('last');
|
|
}
|
|
const Math = global.Math;
|
|
const value2 = Math.abs(value);
|
|
const r5 = value2 === 1 || value2 === 21 || value2 === 31 ? value2 + gettext('st') : value2 === 2 || value2 === 22 ? value2 + gettext('nd') : value2 === 3 || value2 === 23 ? value2 + gettext('rd') : value2 + gettext('th');
|
|
if (value < 0) {
|
|
value = gettext('last');
|
|
value = r5 + ' ' + value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = r5;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function t_70536(a0) { // fn#70536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14011, offset: 0x01cfee30, size: 24 bytes, params: 2, frame: 2
|
|
this.done = true;
|
|
this.rules = a0;
|
|
}
|
|
|
|
function start_70537(a0) { // fn#70537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14076, offset: 0x01cfee48, size: 32 bytes, params: 2, frame: 9
|
|
this.text = a0;
|
|
this.done = false;
|
|
return this.nextSymbol();
|
|
}
|
|
|
|
function isDone() { // fn#70538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14158, offset: 0x01cfee68, size: 25 bytes, params: 1, frame: 3
|
|
return this.done && this.symbol === null;
|
|
}
|
|
|
|
function nextSymbol() { // fn#70539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14230, offset: 0x01cfee81, size: 299 bytes, params: 1, frame: 35
|
|
var r14;
|
|
var r15;
|
|
var r18;
|
|
var r24;
|
|
var r23;
|
|
var r4;
|
|
var r5;
|
|
var done;
|
|
var rules;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var rules2;
|
|
var property;
|
|
var exec;
|
|
var text;
|
|
var value3;
|
|
var value4;
|
|
var length;
|
|
var length2;
|
|
var value5;
|
|
var substr;
|
|
const value = null;
|
|
this.symbol = value;
|
|
this.value = value;
|
|
const value2 = undefined;
|
|
let r8 = value2;
|
|
loopExit1: while (true) {
|
|
done = this.done;
|
|
if (done) {
|
|
return false;
|
|
}
|
|
rules = this.rules;
|
|
properties = Object.keys(rules);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties === value2) {
|
|
r4 = value;
|
|
r5 = r8;
|
|
continue;
|
|
}
|
|
r14 = r8;
|
|
r15 = value;
|
|
r18 = properties2;
|
|
while (true) {
|
|
propertyName = properties[r18];
|
|
propertyName2 = r18 + 1;
|
|
if (propertyName === value2) {
|
|
r4 = r15;
|
|
r5 = r14;
|
|
break;
|
|
}
|
|
rules2 = this.rules;
|
|
property = rules2[propertyName];
|
|
exec = property.exec;
|
|
text = this.text;
|
|
value3 = Reflect.apply(exec, property, [text]);
|
|
if (!value3) {
|
|
r23 = value3;
|
|
continue;
|
|
}
|
|
value4 = value === r15;
|
|
if (value4) {
|
|
r24 = value4;
|
|
continue;
|
|
}
|
|
length = value3[0].length;
|
|
length2 = r15[0].length;
|
|
value5 = length > length2;
|
|
r24 = value5;
|
|
r23 = r24;
|
|
if (r23) {
|
|
r14 = propertyName;
|
|
r15 = value3;
|
|
r18 = propertyName2;
|
|
continue;
|
|
}
|
|
r18 = propertyName2;
|
|
continue;
|
|
}
|
|
if (value == r4) {
|
|
continue;
|
|
}
|
|
text = this.text;
|
|
substr = text.substr;
|
|
length = r4[0].length;
|
|
this.text = Reflect.apply(substr, text, [length]);
|
|
text = this.text;
|
|
if (text !== '') {
|
|
continue;
|
|
}
|
|
this.done = true;
|
|
if (value == r4) {
|
|
this.done = true;
|
|
this.symbol = value;
|
|
this.value = value;
|
|
return value2;
|
|
}
|
|
if (r5 === 'SKIP') {
|
|
r8 = r5;
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
this.symbol = r5;
|
|
this.value = r4;
|
|
return true;
|
|
}
|
|
|
|
function accept_70540(a0) { // fn#70540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14652, offset: 0x01cfefac, size: 59 bytes, params: 2, frame: 10
|
|
var value;
|
|
if (this.symbol === a0) {
|
|
value = this.value;
|
|
if (value) {
|
|
value = this.value;
|
|
this.nextSymbol();
|
|
return value;
|
|
}
|
|
this.nextSymbol();
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function acceptNumber() { // fn#70541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14806, offset: 0x01cfefe7, size: 20 bytes, params: 1, frame: 11
|
|
return this.accept('number');
|
|
}
|
|
|
|
function expect(a0) { // fn#70542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:14866, offset: 0x01cfeffb, size: 84 bytes, params: 2, frame: 12
|
|
if (this.accept(a0)) {
|
|
return true;
|
|
}
|
|
const Error = global.Error;
|
|
let value = 'expected ' + a0;
|
|
value = value + ' but found ' + this.symbol;
|
|
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error(value);
|
|
throw error instanceof Object ? error : value2;
|
|
}
|
|
|
|
function t_70544(a0, a1, a2, a3) { // fn#70544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:19725, offset: 0x01cff0b4, size: 48 bytes, params: 5, frame: 3
|
|
const value = a3;
|
|
this.hour = a0;
|
|
this.minute = a1;
|
|
this.second = a2;
|
|
this.millisecond = value || 0;
|
|
}
|
|
|
|
function getHours_70545() { // fn#70545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:19835, offset: 0x01cff0e4, size: 11 bytes, params: 1, frame: 1
|
|
return this.hour;
|
|
}
|
|
|
|
function getMinutes_70546() { // fn#70546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:19887, offset: 0x01cff0ef, size: 11 bytes, params: 1, frame: 1
|
|
return this.minute;
|
|
}
|
|
|
|
function getSeconds_70547() { // fn#70547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:19941, offset: 0x01cff0fa, size: 11 bytes, params: 1, frame: 1
|
|
return this.second;
|
|
}
|
|
|
|
function getMilliseconds_70548() { // fn#70548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:20000, offset: 0x01cff105, size: 11 bytes, params: 1, frame: 1
|
|
return this.millisecond;
|
|
}
|
|
|
|
function getTime_70549() { // fn#70549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:20056, offset: 0x01cff110, size: 66 bytes, params: 1, frame: 5
|
|
let value = 60 * this.hour;
|
|
value = value * 60 + 60 * this.minute + this.second;
|
|
return 1000 * value + this.millisecond;
|
|
}
|
|
|
|
function addWeekly(a0, a1) { // fn#70560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:21059, offset: 0x01cff4a9, size: 141 bytes, params: 3, frame: 13
|
|
var day;
|
|
var value;
|
|
const getWeekday = this.getWeekday;
|
|
if (a1 > Reflect.apply(getWeekday, this, [])) {
|
|
day = this.day;
|
|
value = this.getWeekday();
|
|
value += 1;
|
|
this.day = day + (-(value + (6 - a1)) + 7 * a0);
|
|
} else {
|
|
this.day = this.day + (-(this.getWeekday() - a1) + 7 * a0);
|
|
}
|
|
this.fixDay();
|
|
}
|
|
|
|
function t_70568(a0, a1) { // fn#70568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:24640, offset: 0x01cffa83, size: 85 bytes, params: 3, frame: 14
|
|
if (global.isNaN(a0.getTime())) {
|
|
throw new global.RangeError('Invalid date passed to DateWithZone');
|
|
}
|
|
this.date = a0;
|
|
this.tzid = a1;
|
|
}
|
|
|
|
function get_70569() { // fn#70569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:24816, offset: 0x01cffad8, size: 41 bytes, params: 1, frame: 10
|
|
var r0;
|
|
const tzid = this.tzid;
|
|
let value = !tzid;
|
|
if (tzid) {
|
|
value = this.tzid.toUpperCase();
|
|
value = value === 'UTC';
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function getTime_70571() { // fn#70571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:25081, offset: 0x01cffb65, size: 21 bytes, params: 1, frame: 9
|
|
return this.date.getTime();
|
|
}
|
|
|
|
function t_70574() { // fn#70574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:26542, offset: 0x01cffc86, size: 45 bytes, params: 1, frame: 2
|
|
this.all = false;
|
|
this.before = [];
|
|
this.after = [];
|
|
this.between = [];
|
|
}
|
|
|
|
function _fun70641(a0) { // fn#70641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45406, offset: 0x01cfd2c5, size: 43 bytes, params: 2, frame: 11
|
|
const Date = global.Date;
|
|
const time = a0.getTime();
|
|
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date(time);
|
|
return date instanceof Object ? date : value2;
|
|
}
|
|
|
|
function _fun70643(a0) { // fn#70643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9226:45507, offset: 0x01cfd2c5, size: 43 bytes, params: 2, frame: 11
|
|
const Date = global.Date;
|
|
const time = a0.getTime();
|
|
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date(time);
|
|
return date instanceof Object ? date : value2;
|
|
}
|
|
|
|
global.__d(_fun70381, 9041, []) /* metro module 9041 */;
|