2026-07-27 11:26:19 +00:00
// Module ID: 13235
// Function ID: 101957
2026-07-23 10:11:24 +00:00
// Name: __exportStarResult23
2026-07-27 11:26:19 +00:00
// Dependencies: [13199, 13201, 13209, 13236, 13204, 13250, 13224, 13251, 13211]
2026-07-23 10:11:24 +00:00
2026-07-27 11:26:19 +00:00
// Module 13235 (__exportStarResult23)
2026-07-23 10:11:24 +00:00
const require = arg1 ;
const dependencyMap = arg6 ;
arg5 . InitializeNumberFormat = function InitializeNumberFormat ( arg0 , arg1 , arg2 , arg3 ) {
let availableLocales ;
let currencyDigitsData ;
let getDefaultLocale ;
let getInternalSlots ;
let localeData ;
let numberingSystemNames ;
( { localeData , numberingSystemNames , getDefaultLocale } = arg3 ) ;
( { getInternalSlots , availableLocales , currencyDigitsData } = arg3 ) ;
2026-07-27 11:26:19 +00:00
const result = require ( 13199 ) /* CanonicalizeLocaleList */ . CanonicalizeLocaleList ( arg1 ) ;
const result1 = require ( 13201 ) /* __exportStarResult2 */ . CoerceOptionsToObject ( arg2 ) ;
2026-07-23 10:11:24 +00:00
let obj = Object . create ( null ) ;
2026-07-27 11:26:19 +00:00
obj . localeMatcher = require ( 13209 ) /* __exportStarResult4 */ . GetOption ( result1 , "localeMatcher" , "string" , [ "lookup" , "best fit" ] , "best fit" ) ;
const GetOptionResult = require ( 13209 ) /* __exportStarResult4 */ . GetOption ( result1 , "numberingSystem" , "string" , undefined , undefined ) ;
2026-07-23 10:11:24 +00:00
if ( undefined !== GetOptionResult ) {
if ( numberingSystemNames . indexOf ( GetOptionResult ) < 0 ) {
const _RangeError = RangeError ;
const concat = "Invalid numberingSystems: " . concat ;
throw RangeError ( "Invalid numberingSystems: " . concat ( GetOptionResult ) ) ;
}
}
obj . nu = GetOptionResult ;
let num = 3 ;
2026-07-27 11:26:19 +00:00
const ResolveLocaleResult = require ( 13236 ) /* match */ . ResolveLocale ( Array . from ( availableLocales ) , result , obj , [ "nu" ] , localeData , getDefaultLocale ) ;
require ( 13204 ) /* setInternalSlot */ . invariant ( ! ! localeData [ ResolveLocaleResult . dataLocale ] , "Missing locale data for " . concat ( ResolveLocaleResult . dataLocale ) ) ;
2026-07-23 10:11:24 +00:00
const internalSlots = getInternalSlots ( arg0 ) ;
( { locale : tmp9 . locale , dataLocale : tmp9 . dataLocale , nu : tmp9 . numberingSystem } = ResolveLocaleResult ) ;
internalSlots . dataLocaleData = localeData [ ResolveLocaleResult . dataLocale ] ;
2026-07-27 11:26:19 +00:00
const result2 = require ( 13250 ) /* __exportStarResult27 */ . SetNumberFormatUnitOptions ( internalSlots , result1 ) ;
2026-07-23 10:11:24 +00:00
const style = internalSlots . style ;
2026-07-27 11:26:19 +00:00
const GetOptionResult1 = require ( 13209 ) /* __exportStarResult4 */ . GetOption ( result1 , "notation" , "string" , [ "standard" , "scientific" , "engineering" , "compact" ] , "standard" ) ;
2026-07-23 10:11:24 +00:00
internalSlots . notation = GetOptionResult1 ;
if ( "currency" === style ) {
if ( "standard" === GetOptionResult1 ) {
obj = { currencyDigitsData } ;
2026-07-27 11:26:19 +00:00
let num2 = require ( 13224 ) /* __exportStarResult15 */ . CurrencyDigits ( internalSlots . currency , obj ) ;
2026-07-23 10:11:24 +00:00
num = num2 ;
}
2026-07-27 11:26:19 +00:00
const result3 = require ( 13251 ) /* __exportStarResult26 */ . SetNumberFormatDigitOptions ( internalSlots , result1 , num2 , num , GetOptionResult1 ) ;
2026-07-23 10:11:24 +00:00
let str6 = "auto" ;
if ( "compact" === GetOptionResult1 ) {
2026-07-27 11:26:19 +00:00
internalSlots . compactDisplay = require ( 13209 ) /* __exportStarResult4 */ . GetOption ( result1 , "compactDisplay" , "string" , [ "short" , "long" ] , "short" ) ;
2026-07-23 10:11:24 +00:00
str6 = "min2" ;
}
2026-07-27 11:26:19 +00:00
internalSlots . useGrouping = require ( 13211 ) /* __exportStarResult6 */ . GetStringOrBooleanOption ( result1 , "useGrouping" , [ "min2" , "auto" , "always" ] , "always" , false , str6 ) ;
internalSlots . signDisplay = require ( 13209 ) /* __exportStarResult4 */ . GetOption ( result1 , "signDisplay" , "string" , [ "auto" , "never" , "always" , "exceptZero" , "negative" ] , "auto" ) ;
2026-07-23 10:11:24 +00:00
return arg0 ;
}
if ( "percent" === style ) {
num = 0 ;
}
num2 = 0 ;
} ;