decord/source/__polyfill/10xxx/module_10633.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

51 lines
1.4 KiB
JavaScript

// Module ID: 10633
// Function ID: 10634
// Dependencies: [41, 42, 10630, 10587]
// Module 10633
import alphaNum from "alphaNum" /* 10630 */;
import _classCallCheck from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
const JPWeekdayParser = require;
const keys = Object.keys(alphaNum.WEEKDAY_OFFSET);
const regExp = new RegExp("((?<prefix>\u524D\u306E|\u6B21\u306E|\u4ECA\u9031))?(?<weekday>" + keys.join("|") + ")(?:\u66DC\u65E5|\u66DC)", "i");
class JPWeekdayParser {
constructor() {
tmp = c2(this, JPWeekdayParser);
return;
}
}
const entry = {
key: "pattern",
value: function pattern() {
return regExp;
}
};
const items = [
entry,
{
key: "extract",
value: function extract(reference, groups) {
const tmp3 = JPWeekdayParser(10630).WEEKDAY_OFFSET[groups.groups.weekday];
if (undefined === tmp3) {
return null;
} else {
let str2 = "last";
if (!groups.groups.prefix || "".match(/前の/)) {
str2 = "next";
if (!str.match(/次の/)) {
str2 = null;
if (str.match(/今週/)) {
str2 = "this";
}
}
}
return tmp(10587).createParsingComponentsAtWeekday(reference.reference, tmp3, str2);
}
tmp = JPWeekdayParser;
}
}
];
export default _createClass(JPWeekdayParser, items);