111 lines
4.2 KiB
JavaScript
111 lines
4.2 KiB
JavaScript
// Module ID: 10576
|
|
// Function ID: 10577
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 10437, 10566, 10464, 10568]
|
|
|
|
// Module 10576 (_isNativeReflectConstruct)
|
|
import _isNativeReflectConstruct2 from "_isNativeReflectConstruct" /* 10568 */;
|
|
import closure_2 from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import closure_3 from "_possibleConstructorReturn" /* 93 */;
|
|
import closure_4 from "_getPrototypeOf" /* 95 */;
|
|
import _inherits from "_inherits" /* 98 */;
|
|
|
|
const RUWeekdayParser = require;
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
class RUWeekdayParser {
|
|
constructor() {
|
|
self = this;
|
|
tmp = closure_2(this, RUWeekdayParser);
|
|
tmp2 = closure_4;
|
|
obj = closure_4(RUWeekdayParser);
|
|
tmp3 = closure_3;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp7 = globalThis;
|
|
_Reflect = Reflect;
|
|
tmp8 = arguments;
|
|
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
|
|
} else {
|
|
tmp4 = arguments;
|
|
tmp5 = arguments;
|
|
constructResult = obj(...arguments);
|
|
}
|
|
return tmp3(self, constructResult);
|
|
}
|
|
}
|
|
_inherits(RUWeekdayParser, _isNativeReflectConstruct2.AbstractParserWithLeftRightBoundaryChecking);
|
|
const items = [
|
|
{
|
|
key: "innerPatternString",
|
|
value: function innerPatternString(arg0) {
|
|
return "(?:(?:,|\\(|\uFF08)\\s*)?(?:\u0432\\s*?)?(?:(\u044D\u0442\u0443|\u044D\u0442\u043E\u0442|\u043F\u0440\u043E\u0448\u043B\u044B\u0439|\u043F\u0440\u043E\u0448\u043B\u0443\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E)\\s*)?(" + RUWeekdayParser(10437).matchAnyPattern(RUWeekdayParser(10566).WEEKDAY_DICTIONARY) + ")(?:\\s*(?:,|\\)|\uFF09))?(?:\\s*\u043D\u0430\\s*(\u044D\u0442\u043E\u0439|\u043F\u0440\u043E\u0448\u043B\u043E\u0439|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439)\\s*\u043D\u0435\u0434\u0435\u043B\u0435)?";
|
|
}
|
|
},
|
|
{
|
|
key: "innerExtract",
|
|
value: function innerExtract(reference) {
|
|
const formatted = arg1[2].toLowerCase();
|
|
let str2 = arg1[1];
|
|
if (!str2) {
|
|
str2 = arg1[3];
|
|
}
|
|
if (!str2) {
|
|
str2 = "";
|
|
}
|
|
const formatted1 = str2.toLowerCase();
|
|
let str3 = "last";
|
|
if ("\u043F\u0440\u043E\u0448\u043B\u044B\u0439" != formatted1) {
|
|
str3 = "last";
|
|
if ("\u043F\u0440\u043E\u0448\u043B\u0443\u044E" != formatted1) {
|
|
str3 = "last";
|
|
if ("\u043F\u0440\u043E\u0448\u043B\u043E\u0439" != formatted1) {
|
|
str3 = "next";
|
|
if ("\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439" != formatted1) {
|
|
str3 = "next";
|
|
if ("\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E" != formatted1) {
|
|
str3 = "next";
|
|
if ("\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439" != formatted1) {
|
|
str3 = "next";
|
|
if ("\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E" != formatted1) {
|
|
let tmp5 = "\u044D\u0442\u043E\u0442" != formatted1;
|
|
if (tmp5) {
|
|
tmp5 = "\u044D\u0442\u0443" != formatted1;
|
|
}
|
|
if (tmp5) {
|
|
tmp5 = "\u044D\u0442\u043E\u0439" != formatted1;
|
|
}
|
|
str3 = null;
|
|
if (!tmp5) {
|
|
str3 = "this";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return RUWeekdayParser(10464).createParsingComponentsAtWeekday(reference.reference, RUWeekdayParser(10566).WEEKDAY_DICTIONARY[formatted], str3);
|
|
}
|
|
}
|
|
];
|
|
|
|
export default _createClass(RUWeekdayParser, items);
|