// Module ID: 10571 // Function ID: 10572 // Dependencies: [41, 42, 93, 95, 98, 10560, 10559, 10567] // Module 10571 import _mod10559 from "module_10559" /* 10559 */; import repeatedTimeunitPattern from "repeatedTimeunitPattern" /* 10560 */; import AbstractParserWithWordBoundaryChecking from "AbstractParserWithWordBoundaryChecking" /* 10567 */; import _classCallCheck from "_classCallCheck" /* 41 */; import _createClass from "_createClass" /* 42 */; import c3 from "_possibleConstructorReturn" /* 93 */; import _getPrototypeOf from "_getPrototypeOf" /* 95 */; import _inherits from "_inherits" /* 98 */; const ENYearMonthDayParser = 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) { } } const regExp = new RegExp("([0-9]{4})[-\\.\\/\\s](?:(" + repeatedTimeunitPattern.matchAnyPattern(_mod10559.MONTH_DICTIONARY) + ")|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)", "i"); class ENYearMonthDayParser { constructor(arg0) { self = this; tmp = c2(this, ENYearMonthDayParser); tmp2 = closure_4; obj = closure_4(ENYearMonthDayParser); tmp3 = closure_3; if (hasOwnProperty()) { tmp5 = globalThis; _Reflect = Reflect; constructResult = Reflect.construct(obj, [], tmp2(self).constructor); } else { constructResult = obj.apply(self, undefined); } tmp3Result = tmp3(self, constructResult); tmp3Result.strictMonthDateOrder = global; return tmp3Result; } } _inherits(ENYearMonthDayParser, AbstractParserWithWordBoundaryChecking.AbstractParserWithWordBoundaryChecking); const entry = { key: "innerPattern", value: function innerPattern() { return regExp; } }; let items = [ entry, { key: "innerExtract", value: function innerExtract(arg0, arg1) { const parsed = parseInt(arg1[1]); const parsed1 = parseInt(arg1[4]); if (arg1[3]) { const _parseInt = parseInt; let parsed2 = parseInt(arg1[3]); } else { parsed2 = ENYearMonthDayParser(10559).MONTH_DICTIONARY[str.toLowerCase(str)]; } if (parsed2 < 1) { const self = this; if (this.strictMonthDateOrder) { return null; } else { tmp6 = parsed2; tmp7 = parsed1; if (parsed1 >= 1) { tmp6 = parsed2; tmp7 = parsed1; if (parsed1 <= 12) { const items = [parsed1, parsed2]; [tmp6, tmp7] = items; } } } } else { tmp6 = parsed2; tmp7 = parsed1; } let tmp8 = null; if (tmp7 >= 1) { tmp8 = null; if (tmp7 <= 31) { const date = { day: tmp7, month: tmp6, year: parsed }; tmp8 = date; } } return tmp8; } } ]; export default _createClass(ENYearMonthDayParser, items);