decord/source/13294___exportStarResult25.js
2026-07-30 10:14:41 +00:00

44 lines
1.7 KiB
JavaScript

// Module ID: 13294
// Function ID: 13295
// Name: __exportStarResult25
// Dependencies: [13266, 13292, 13291, 13290, 13279]
// Module 13294 (__exportStarResult25)
const require = arg1;
const dependencyMap = arg6;
arg5.PartitionNumberRangePattern = function PartitionNumberRangePattern(arg0, isNaN, isNaN2, getInternalSlots) {
getInternalSlots = getInternalSlots.getInternalSlots;
const isNaNResult = isNaN.isNaN();
let tmp4 = !isNaNResult;
if (!isNaNResult) {
tmp4 = !isNaN2.isNaN();
}
items(13266).invariant(tmp4, "Input must be a number", RangeError);
const internalSlots = getInternalSlots(arg0);
const result = tmp(13292).PartitionNumberPattern(internalSlots, isNaN);
const result1 = tmp(13292).PartitionNumberPattern(internalSlots, isNaN2);
if (FormatNumericResult === items(13291).FormatNumeric(internalSlots, isNaN2)) {
const FormatApproximatelyResult = tmp(13290).FormatApproximately(internalSlots, result);
const item = FormatApproximatelyResult.forEach((arg0) => {
arg0.source = "shared";
});
return FormatApproximatelyResult;
} else {
items = [];
const item1 = result.forEach((arg0) => {
arg0.source = "startRange";
items.push(arg0);
});
let obj = { type: "literal", value: null, source: "shared" };
obj[1] = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem].rangeSign;
items.push(obj);
const item2 = result1.forEach((arg0) => {
arg0.source = "endRange";
items.push(arg0);
});
obj = { getInternalSlots: null };
obj[0] = getInternalSlots;
return tmp(13279).CollapseNumberRange(arg0, items, obj);
}
FormatNumericResult = items(13291).FormatNumeric(internalSlots, isNaN);
};