decord/source/module_3604.js

37 lines
1.6 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 3604
// Function ID: 3605
// Dependencies: [2005, 2006]
2026-08-06 08:05:19 +00:00
2026-08-24 06:08:38 +00:00
// Module 3604
import buildMatchFn from "buildMatchFn" /* 2005 */;
import buildMatchPatternFn from "buildMatchPatternFn" /* 2006 */;
2026-08-06 08:05:19 +00:00
2026-08-07 06:50:47 +00:00
if (!buildMatchFn) {
let obj = { default: null };
obj[0] = buildMatchFn;
} else {
obj = buildMatchFn;
}
if (!buildMatchPatternFn) {
obj = { default: null };
obj[0] = buildMatchPatternFn;
let obj2 = obj;
} else {
obj2 = buildMatchPatternFn;
}
obj2 = {
matchPattern: /^(\d+)(:a|:e)?/i,
parsePattern: /\d+/i,
valueCallback(joined) {
return parseInt(joined, 10);
2026-08-06 08:05:19 +00:00
}
2026-08-07 06:50:47 +00:00
};
const items = [/^f/i, /^[ev]/i];
const items1 = [/1/i, /2/i, /3/i, /4/i];
const items2 = [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i];
const items3 = [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i];
const items4 = [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i];
2026-08-06 08:05:19 +00:00
2026-08-07 06:50:47 +00:00
export default { ordinalNumber: obj2.default(obj2), era: obj.default({ matchPatterns: obj3, defaultMatchWidth: "wide", parsePatterns: { any: items }, defaultParseWidth: "any" }), quarter: obj.default(obj4), month: obj.default({ matchPatterns: obj6, defaultMatchWidth: "wide", parsePatterns: { narrow: items2, any: items3 }, defaultParseWidth: "any" }), day: obj.default({ matchPatterns: obj7, defaultMatchWidth: "wide", parsePatterns: { any: items4 }, defaultParseWidth: "any" }), dayPeriod: obj.default({ matchPatterns: obj8, defaultMatchWidth: "any", parsePatterns: { any: obj9 }, defaultParseWidth: "any" }) };
export default exports.default;