decord/source/__polyfill/10xxx/module_10658.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

76 lines
2.4 KiB
JavaScript

// Module ID: 10658
// Function ID: 10659
// Dependencies: [41, 42, 93, 95, 98, 10567]
// Module 10658
import AbstractParserWithWordBoundaryChecking from "AbstractParserWithWordBoundaryChecking" /* 10567 */;
import _classCallCheck_mod from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import _possibleConstructorReturn from "_possibleConstructorReturn" /* 93 */;
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
import _inherits from "_inherits" /* 98 */;
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) {
}
}
let _classCallCheck = _classCallCheck_mod;
const regExp = new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})", "i");
class NLSlashMonthFormatParser {
constructor() {
self = this;
tmp = closure_0(this, NLSlashMonthFormatParser);
tmp2 = c2;
obj = c2(NLSlashMonthFormatParser);
tmp3 = closure_1;
if (closure_3()) {
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);
}
}
_classCallCheck = NLSlashMonthFormatParser;
_inherits(NLSlashMonthFormatParser, AbstractParserWithWordBoundaryChecking.AbstractParserWithWordBoundaryChecking);
const entry = {
key: "innerPattern",
value: function innerPattern() {
return regExp;
}
};
const items = [
entry,
{
key: "innerExtract",
value: function innerExtract(createParsingComponents, arg1) {
const parsed = parseInt(arg1[2]);
const parsed1 = parseInt(arg1[1]);
const parsingComponents = createParsingComponents.createParsingComponents();
const implyResult = parsingComponents.imply("day", 1);
return parsingComponents.imply("day", 1).assign("month", parsed1).assign("year", parsed);
}
}
];
export default _createClass(NLSlashMonthFormatParser, items);