decord/source/13373_getSupportedUnits.js

27 lines
785 B
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 13373
// Function ID: 13374
2026-07-29 08:29:29 +00:00
// Name: getSupportedUnits
2026-07-31 08:44:05 +00:00
// Dependencies: [13284, 13374]
2026-07-29 08:29:29 +00:00
2026-07-31 08:44:05 +00:00
// Module 13373 (getSupportedUnits)
2026-07-29 08:29:29 +00:00
const require = arg1;
const dependencyMap = arg6;
arg5.getSupportedUnits = function getSupportedUnits(locale) {
const _require = locale;
2026-07-31 08:44:05 +00:00
const units = _require(13374).units;
2026-07-29 08:29:29 +00:00
return units.filter((arg0) => (function isSupported(arg0, closure_0) {
let str = closure_0;
if (undefined === closure_0) {
str = "en";
}
try {
const obj = { style: "unit", unit: null };
obj[1] = arg0;
const memoizedNumberFormat = callback(table[0]).createMemoizedNumberFormat(str, obj);
return memoizedNumberFormat.resolvedOptions().unit === arg0;
} catch (err) {
return false;
}
})(arg0, closure_0));
};