/opt/imunify360/venv/lib/python3.11/site-packages/babel/__pycache__
NameSizeModeActions
core.cpython-311.pyc520750644editdlrm
dates.cpython-311.pyc856990644editdlrm
languages.cpython-311.pyc43360644editdlrm
lists.cpython-311.pyc39290644editdlrm
localedata.cpython-311.pyc136440644editdlrm
numbers.cpython-311.pyc548870644editdlrm
plural.cpython-311.pyc356090644editdlrm
support.cpython-311.pyc368000644editdlrm
units.cpython-311.pyc120540644editdlrm
util.cpython-311.pyc118270644editdlrm
__init__.cpython-311.pyc10950644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/babel/__pycache__/numbers.cpython-311.pyc (54887B)
§ _)§´`*ãó—dZddlmZddlZddlZddlZddlZddlmZm Z m Z m Z ddl m Z mZmZddlmZerddlmZed¦«ZGd „d e¦«Zdmdnd„Zdmdod„Zdmdpd„Zdmdqd„Zdefdrd„Zefdsd„Zdtd„Zdefdrd„Ze dudvd)„¦«Ze dudwd,„¦«Z dxdyd0„Zefdzd1„Z efdzd2„Z!efdzd3„Z"efdzd4„Z#efdzd5„Z$efdzd6„Z%efd{d9„Z&d|d;„Z'd}d>„Z(ded-d-fd~dC„Z)dDeddEœddI„Z*d€dN„Z+GdO„dPe,¦«Z-ded-dQd-d-fd�dT„Z.ded-dQd-d-fd�dU„Z/dDeddEœd‚dW„Z0ded-d-fd~dX„Z1ded-fdƒdY„Z2GdZ„d[e3¦«Z4efd„d]„Z5ed.fd…d_„Z6d`Z7daZ8dbe7zZ9dce8zZ:ddZ;ej<e9›e:›e;›�¦«Z=d†dg„Z>d‡dk„Z?Gdl„dj¦«Z@dS)ˆa‡ babel.numbers ~~~~~~~~~~~~~ Locale dependent formatting and parsing of numeric data. The default locale for the functions in this module is determined by the following environment variables, in that order: * ``LC_NUMERIC``, * ``LC_ALL``, and * ``LANG`` :copyright: (c) 2013-2023 by the Babel Team. :license: BSD, see LICENSE for more details. é)Ú annotationsN)Ú TYPE_CHECKINGÚAnyÚcastÚoverload)ÚLocaleÚdefault_localeÚ get_global)ÚLocaleDataDict)ÚLiteralÚ LC_NUMERICcó—eZdZdZdd„ZdS) ÚUnknownCurrencyErrorzRException thrown when a currency is requested for which no data is available. Ú identifierÚstrÚreturnÚNonecóR—t |d|›d�¦«||_dS)zkCreate the exception. :param identifier: the identifier string of the unsupported currency zUnknown currency ú.N)Ú ExceptionÚ__init__r)Úselfrs úm/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/babel/numbers.pyrzUnknownCurrencyError.__init__)s3€õ ×Ò˜4Ð!D°ZÐ!DÐ!DÐ!DÑEÔEÐEð%ˆŒˆˆóN)rrrr)Ú__name__Ú __module__Ú __qualname__Ú__doc__r©rrrr%s2€€€€€ððð%ð%ð%ð%ð%ð%rrÚlocaleúLocale | str | Nonerúset[str]cóš—|r,tj|¦«j ¦«}nt d¦«}t |¦«S)aM Return a `set` of normalized currency codes. .. versionadded:: 2.5.0 :param locale: filters returned currency codes by the provided locale. Expected to be a locale instance or code. If no locale is provided, returns the list of all currencies from all locales. Úall_currencies)rÚparseÚ currenciesÚkeysr Úset)r r&s rÚlist_currenciesr)3sF€ðð2Ý”\ &Ñ)Ô)Ô4×9Ò9Ñ;Ô;ˆ ˆ åÐ 0Ñ1Ô1ˆ Ý ˆz‰?Œ?ÐrÚcurrencyrrcóF—|t|¦«vrt|¦«‚dS)a Check the currency code is recognized by Babel. Accepts a ``locale`` parameter for fined-grained validation, working as the one defined above in ``list_currencies()`` method. Raises a `UnknownCurrencyError` exception if the currency is unknown to Babel. N)r)r©r*r s rÚvalidate_currencyr-Es-€ð• vÑ.Ô.Ð.Ð.Ý" 8Ñ,Ô,Ð,ð/Ð.rÚboolcó~—|rt|t¦«sdS t||¦«n#t$rYdSwxYwdS)zy Returns `True` only if a currency is recognized by Babel. This method always return a Boolean and never raise. FT)Ú isinstancerr-rr,s rÚ is_currencyr1Qsa€ð ð�: hµÑ4Ô4ð؈uðݘ( FÑ+Ô+Ð+Ð+øÝ ððð؈uˆuðøøøà ˆ4s ›,¬ :¹:ú str | Nonecó|—t|t¦«r| ¦«}t||¦«sdS|S)zûReturns the normalized identifier of any currency code. Accepts a ``locale`` parameter for fined-grained validation, working as the one defined above in ``list_currencies()`` method. Returns None if the currency is unknown to Babel. N)r0rÚupperr1r,s rÚnormalize_currencyr5_sA€õ�(�CÑ Ô ð$Ø—>’>Ñ#Ô#ˆÝ �x Ñ (Ô (ðØˆØ €OrÚcountúfloat | decimal.Decimal | Nonecó&—tj|¦«}|�a | |¦«}n#ttf$rd}YnwxYw|jd}||vr ||}||vr||Sd|vr|dS|j ||¦«S)a�Return the name used by the locale for the specified currency. >>> get_currency_name('USD', locale='en_US') u'US Dollar' .. versionadded:: 0.9.4 :param currency: the currency code. :param count: the optional count. If provided the currency name will be pluralized to that number if possible. :param locale: the `Locale` object or locale identifier. NÚotherÚcurrency_names_plural)rr%Ú plural_formÚ OverflowErrorÚ ValueErrorÚ_datar&Úget)r*r6r Úlocr;Ú plural_namesÚcurrency_plural_namess rÚget_currency_namerCnsÀõ" Œ,�vÑ Ô €CØ Ðð "ØŸ/š/¨%Ñ0Ô0ˆKˆKøÝ�zÐ*ð "ð "ð "Ø!ˆKˆKˆKð "øøøà”yÐ!8Ô9ˆ Ø �|Ð #Ð #Ø$0°Ô$:Ð !ØÐ3Ð3Ð3Ø,¨[Ô9Ð9ØÐ/Ð/Ð/Ø,¨WÔ5Ð5Ø Œ>× Ò ˜h¨Ñ 1Ô 1Ð1s˜.®AÁAcó\—tj|¦«j ||¦«S)zèReturn the symbol used by the locale for the specified currency. >>> get_currency_symbol('USD', locale='en_US') u'$' :param currency: the currency code. :param locale: the `Locale` object or locale identifier. )rr%Úcurrency_symbolsr?r,s rÚget_currency_symbolrF�s'€õ Œ<˜Ñ Ô Ô 0× 4Ò 4°X¸xÑ HÔ HÐHrÚintcód—td¦«}| ||d¦«dS)zÔReturn currency's precision. Precision is the number of decimals found after the decimal point in the currency's format pattern. .. versionadded:: 2.5.0 :param currency: the currency code. Úcurrency_fractionsÚDEFAULTr)r r?)r*Ú precisionss rÚget_currency_precisionrL›s0€õÐ0Ñ1Ô1€JØ �>Š>˜( J¨yÔ$9Ñ :Ô :¸1Ô =Ð=rcóÆ—tj|¦«}|�9| |¦«} |jd|S#t$rYnwxYw|jddS)aV Return the unit pattern used for long display of a currency value for a given locale. This is a string containing ``{0}`` where the numeric part should be substituted and ``{1}`` where the currency long display name should be substituted. >>> get_currency_unit_pattern('USD', locale='en_US', count=10) u'{0} {1}' .. versionadded:: 2.7.0 :param currency: the currency code. :param count: the optional count. If provided the unit pattern for that number will be returned. :param locale: the `Locale` object or locale identifier. NÚcurrency_unit_patternsr9)rr%r;r>Ú LookupError)r*r6r r@r;s rÚget_currency_unit_patternrP©sw€õ, Œ,�vÑ Ô €CØ ÐØ—o’o eÑ,Ô,ˆ ð Ø”9Ð5Ô6°{ÔCÐ CøÝð ð ð à ˆDð øøøð Œ9Ð-Ô .¨wÔ 7Ð7s­AÁ A Á A .Ú territoryÚ start_dateúdatetime.date | NoneÚend_dateÚtenderÚ non_tenderÚinclude_detailsúLiteral[False]ú list[str]có—dS©Nr©rQrRrTrUrVrWs rÚget_territory_currenciesr]Ëó €ð€Crú Literal[True]úlist[dict[str, Any]]có—dSr[rr\s rr]r]×r^rTFú list[str] | list[dict[str, Any]]cól‡‡—td¦«}‰€tj ¦«Šn.t ‰tj¦«r‰ ¦«Š‰€‰Šn.t ‰tj¦«r‰ ¦«Š| | ¦«d¦«}ˆˆfd„}g} |D]m\} } } } | rtj| Ž} | rtj| Ž} | r|s| s@|r>|| | ¦«r2|r|  | | | | dœ¦«ŒX|  | ¦«Œn| S)asReturns the list of currencies for the given territory that are valid for the given date range. In addition to that the currency database distinguishes between tender and non-tender currencies. By default only tender currencies are returned. The return value is a list of all currencies roughly ordered by the time of when the currency became active. The longer the currency is being in use the more to the left of the list it will be. The start date defaults to today. If no end date is given it will be the same as the start date. Otherwise a range can be defined. For instance this can be used to find the currencies in use in Austria between 1995 and 2011: >>> from datetime import date >>> get_territory_currencies('AT', date(1995, 1, 1), date(2011, 1, 1)) ['ATS', 'EUR'] Likewise it's also possible to find all the currencies in use on a single date: >>> get_territory_currencies('AT', date(1995, 1, 1)) ['ATS'] >>> get_territory_currencies('AT', date(2011, 1, 1)) ['EUR'] By default the return value only includes tender currencies. This however can be changed: >>> get_territory_currencies('US') ['USD'] >>> get_territory_currencies('US', tender=False, non_tender=True, ... start_date=date(2014, 1, 1)) ['USN', 'USS'] .. versionadded:: 2.0 :param territory: the name of the territory to find the currency for. :param start_date: the start date. If not given today is assumed. :param end_date: the end date. If not given the start date is assumed. :param tender: controls whether tender currencies should be included. :param non_tender: controls whether non-tender currencies should be included. :param include_details: if set to `True`, instead of returning currency codes the return value will be dictionaries with detail information. In that case each dictionary will have the keys ``'currency'``, ``'from'``, ``'to'``, and ``'tender'``. Úterritory_currenciesNrcó,•—|dus|‰ko |dup|‰kSr[r)ÚstartÚendrTrRs €€rÚ _is_activez,get_territory_currencies.._is_active)s/ø€Ø˜� Ð2 ¨(Ò!2ð2Ø�t� Ð0˜s jÒ0ð 2r)r*ÚfromÚtorU)r ÚdatetimeÚdateÚtodayr0r?r4Úappend)rQrRrTrUrVrWr&ÚcursrhÚresultÚ currency_coderfrgÚ is_tenders `` rr]r]ãs‹øø€õrÐ2Ñ3Ô3€JØÐÝ”]×(Ò(Ñ*Ô*ˆ ˆ Ý �J¥Ô 1Ñ 2Ô 2ð'Ø—_’_Ñ&Ô&ˆ ØÐ؈ˆÝ �H�hÔ/Ñ 0Ô 0ð#Ø—=’=‘?”?ˆà �>Š>˜)Ÿ/š/Ñ+Ô+¨RÑ 0Ô 0€Dð2ð2ð2ð2ð2ð2ð€FØ04ð-ð-Ñ,ˆ �u˜c 9Ø ð *Ý”M 5Ð)ˆEØ ð &Ý”- Ð%ˆCØ ð -˜6ð -Øð -Ø#-ð -Ø4>°J¸uÀcÑ4JÔ4Jð -àð -Ø— ’ Ø -Ø!ØØ'ð ðñôððð— ’ ˜mÑ,Ô,Ð,øà €Mrcó\—tj|¦«j dd¦«S)z³Return the symbol used by the locale to separate decimal fractions. >>> get_decimal_symbol('en_US') u'.' :param locale: the `Locale` object or locale identifier Údecimalr©rr%Únumber_symbolsr?©r s rÚget_decimal_symbolrxBs'€õ Œ<˜Ñ Ô Ô .× 2Ò 2°9¸cÑ BÔ BÐBrcó\—tj|¦«j dd¦«S)z©Return the plus sign symbol used by the current locale. >>> get_plus_sign_symbol('en_US') u'+' :param locale: the `Locale` object or locale identifier ÚplusSignú+rurws rÚget_plus_sign_symbolr|Ms'€õ Œ<˜Ñ Ô Ô .× 2Ò 2°:¸sÑ CÔ CÐCrcó\—tj|¦«j dd¦«S)zªReturn the plus sign symbol used by the current locale. >>> get_minus_sign_symbol('en_US') u'-' :param locale: the `Locale` object or locale identifier Ú minusSignú-rurws rÚget_minus_sign_symbolr€Xs'€õ Œ<˜Ñ Ô Ô .× 2Ò 2°;ÀÑ DÔ DÐDrcó\—tj|¦«j dd¦«S)z»Return the symbol used by the locale to separate mantissa and exponent. >>> get_exponential_symbol('en_US') u'E' :param locale: the `Locale` object or locale identifier Ú exponentialÚErurws rÚget_exponential_symbolr„cs'€õ Œ<˜Ñ Ô Ô .× 2Ò 2°=À#Ñ FÔ FÐFrcó\—tj|¦«j dd¦«S)z³Return the symbol used by the locale to separate groups of thousands. >>> get_group_symbol('en_US') u',' :param locale: the `Locale` object or locale identifier Úgroupú,rurws rÚget_group_symbolrˆns'€õ Œ<˜Ñ Ô Ô .× 2Ò 2°7¸CÑ @Ô @Ð@rcó\—tj|¦«j dd¦«S)u®Return the symbol used by the locale to represent infinity. >>> get_infinity_symbol('en_US') u'∞' :param locale: the `Locale` object or locale identifier Úinfinityu∞rurws rÚget_infinity_symbolr‹ys'€õ Œ<˜Ñ Ô Ô .× 2Ò 2°:¸uÑ EÔ EÐErÚnumberúfloat | decimal.Decimal | strcóX—tjdt¦«t||¬¦«S)aŠReturn the given number formatted for a specific locale. >>> format_number(1099, locale='en_US') # doctest: +SKIP u'1,099' >>> format_number(1099, locale='de_DE') # doctest: +SKIP u'1.099' .. deprecated:: 2.6.0 Use babel.numbers.format_decimal() instead. :param number: the number to format :param locale: the `Locale` object or locale identifier z+Use babel.numbers.format_decimal() instead.rw)ÚwarningsÚwarnÚDeprecationWarningÚformat_decimal)rŒr s rÚ format_numberr“„s+€õ" „MÐ?ÕASÑTÔTÐTÝ ˜&¨Ð 0Ñ 0Ô 0Ð0rúdecimal.Decimalcóü—t|tj¦«sJ‚| ¦« ¦«}t|jt ¦«r |jdkrdSt|j¦«S)z�Return maximum precision of a decimal instance's fractional part. Precision is extracted from the fractional part only. r)r0rtÚDecimalÚ normalizeÚas_tupleÚexponentrGÚabs)rŒÚ decimal_tuples rÚget_decimal_precisionrœ™sr€õ �f�gœoÑ .Ô .Ð.Ð.Ð .Ø×$Ò$Ñ&Ô&×/Ò/Ñ1Ô1€Må �mÔ,­cÑ 2Ô 2ð°mÔ6LÐPQÒ6QÐ6Q؈qÝ ˆ}Ô%Ñ &Ô &Ð&rÚ precisionúint | decimal.Decimalcóx—t|ttjf¦«sJ‚tjd¦«| zS)z>> format_decimal(1.2345, locale='en_US') u'1.234' >>> format_decimal(1.2346, locale='en_US') u'1.235' >>> format_decimal(-1.2346, locale='en_US') u'-1.235' >>> format_decimal(1.2345, locale='sv_SE') u'1,234' >>> format_decimal(1.2345, locale='de') u'1,234' The appropriate thousands grouping and the decimal separator are used for each locale: >>> format_decimal(12345.5, locale='en_US') u'12,345.5' By default the locale is allowed to truncate and round a high-precision number by forcing its format pattern onto the decimal part. You can bypass this behavior with the `decimal_quantization` parameter: >>> format_decimal(1.2346, locale='en_US') u'1.235' >>> format_decimal(1.2346, locale='en_US', decimal_quantization=False) u'1.2346' >>> format_decimal(12345.67, locale='fr_CA', group_separator=False) u'12345,67' >>> format_decimal(12345.67, locale='en_US', group_separator=True) u'12,345.67' :param number: the number to format :param format: :param locale: the `Locale` object or locale identifier :param decimal_quantization: Truncate and round high-precision numbers to the format pattern. Defaults to `True`. :param group_separator: Boolean to switch group separator on/off in a locale's number format. N©r¤r¥)rr%Údecimal_formatsÚ parse_patternÚapply©rŒr¢r r¤r¥Úpatterns rr’r’­s\€õ^Œ\˜&Ñ !Ô !€FØ €~ØÔ'¨Ô/ˆÝ˜FÑ#Ô#€GØ �=Š=Ø�Ð-AÐSbð ñ dô dðdrÚshort)Ú format_typer Úfraction_digitsr®úLiteral['short', 'long']r¯cóÚ—tj|¦«}|j|}t||||¦«\}}|€ |jd}t |¦«}| ||d¬¦«S)u—Return the given decimal number formatted for a specific locale in compact form. >>> format_compact_decimal(12345, format_type="short", locale='en_US') u'12K' >>> format_compact_decimal(12345, format_type="long", locale='en_US') u'12 thousand' >>> format_compact_decimal(12345, format_type="short", locale='en_US', fraction_digits=2) u'12.34K' >>> format_compact_decimal(1234567, format_type="short", locale="ja_JP") u'123万' >>> format_compact_decimal(2345678, format_type="long", locale="mk") u'2 милиони' >>> format_compact_decimal(21000000, format_type="long", locale="mk") u'21 милион' :param number: the number to format :param format_type: Compact format to use ("short" or "long") :param locale: the `Locale` object or locale identifier :param fraction_digits: Number of digits after the decimal point to use. Defaults to `0`. NF©r¤)rr%Úcompact_decimal_formatsÚ_get_compact_formatr¨r©rª)rŒr®r r¯Úcompact_formatr¢r¬s rÚformat_compact_decimalr¶äsn€õ6Œ\˜&Ñ !Ô !€FØÔ3°KÔ@€NÝ(¨°ÀÈÑYÔY�N€FˆFà €~ØÔ'¨Ô-ˆÝ˜FÑ#Ô#€GØ �=Š=˜ ¸eˆ=Ñ DÔ DÐDrrµr rú,tuple[decimal.Decimal, NumberPattern | None]c óð—t|tj¦«s!tjt|¦«¦«}| ¦«s| ¦«r|dfSd}t d„|dD¦«d¬¦«D]è}t|¦«|krÓ|dt|¦«}t|¦«j }|dkrn�ttj||d|  d¦«dz zzz ¦«}t||¦«}|  t|¦«¦«}||vrd}|dkrd |vrd }||t|¦«}|}nŒé||fS) zÑReturns the number after dividing by the unit and the format pattern to use. The algorithm is described here: https://www.unicode.org/reports/tr35/tr35-45/tr35-numbers.html#Compact_Number_Formats. Ncó,—g|]}t|¦«‘ŒSr)rG)Ú.0Úms rú z'_get_compact_format..s€ÐEÐEÐE¨�S ™VœVÐEÐEÐErr9T)ÚreverseÚ0r éÚ1)r0rtr–rÚis_nanÚ is_infiniteÚsortedršr©r¬rr6Úroundr;) rŒrµr r¯r¢Ú magnituder¬Úroundedr;s rr´r´ sˆ€õ �f�gœoÑ .Ô .ð.Ý”¥ V¡¤Ñ-Ô-ˆØ ‡}‚}�„ð˜&×,Ò,Ñ.Ô.ðØ�tˆ|ÐØ €FÝÐEÐE¨^¸GÔ-DÐEÑEÔEÈtÐTÑTÔTððˆ Ý ˆv‰;Œ;˜)Ò #Ð #à# GÔ,­S°©^¬^Ô<ˆFÝ# FÑ+Ô+Ô3ˆGà˜#Š~ˆ~Ø�õ�'œ/¨6°YÀ2È'Ï-Ê-ÐX[ÑJ\ÔJ\Ð_`ÑJ`ÑCaÑ5bÑ+cÑdÔdˆFå˜F OÑ4Ô4ˆGà ×,Ò,­S°©[¬[Ñ9Ô9ˆKØ .Ð0Ð0Ø%� ؘŠ{ˆ{˜s nÐ4Ð4Ø!� Ø# KÔ0µ°Y±´Ô@ˆF؈FØ ˆEð) $ð* �6ˆ>Ðrcó—eZdZdZdS)ÚUnknownCurrencyFormatErrorz>Exception raised when an unknown currency format is requested.N)rrrrrrrrÈrÈ1s€€€€€ØHÐHÐHÐHrrÈÚstandardÚcurrency_digitsú)Literal['name', 'standard', 'accounting']c ó—|dkrt|||||||¬¦«Stj|¦«}|rt|¦«}n0 |j|}n!#t $rt |›d�¦«d‚wxYw| ||||||¬¦«S)uö Return formatted currency value. >>> format_currency(1099.98, 'USD', locale='en_US') '$1,099.98' >>> format_currency(1099.98, 'USD', locale='es_CO') u'US$1.099,98' >>> format_currency(1099.98, 'EUR', locale='de_DE') u'1.099,98\xa0\u20ac' The format can also be specified explicitly. The currency is placed with the '¤' sign. As the sign gets repeated the format expands (¤ being the symbol, ¤¤ is the currency abbreviation and ¤¤¤ is the full name of the currency): >>> format_currency(1099.98, 'EUR', u'¤¤ #,##0.00', locale='en_US') u'EUR 1,099.98' >>> format_currency(1099.98, 'EUR', u'#,##0.00 ¤¤¤', locale='en_US') u'1,099.98 euros' Currencies usually have a specific number of decimal digits. This function favours that information over the given format: >>> format_currency(1099.98, 'JPY', locale='en_US') u'\xa51,100' >>> format_currency(1099.98, 'COP', u'#,##0.00', locale='es_ES') u'1.099,98' However, the number of decimal digits can be overridden from the currency information, by setting the last parameter to ``False``: >>> format_currency(1099.98, 'JPY', locale='en_US', currency_digits=False) u'\xa51,099.98' >>> format_currency(1099.98, 'COP', u'#,##0.00', locale='es_ES', currency_digits=False) u'1.099,98' If a format is not specified the type of currency format to use from the locale can be specified: >>> format_currency(1099.98, 'EUR', locale='en_US', format_type='standard') u'\u20ac1,099.98' When the given currency format type is not available, an exception is raised: >>> format_currency('1099.98', 'EUR', locale='root', format_type='unknown') Traceback (most recent call last): ... UnknownCurrencyFormatError: "'unknown' is not a known currency format type" >>> format_currency(101299.98, 'USD', locale='en_US', group_separator=False) u'$101299.98' >>> format_currency(101299.98, 'USD', locale='en_US', group_separator=True) u'$101,299.98' You can also pass format_type='name' to use long display names. The order of the number and currency name, along with the correct localized plural form of the currency name, is chosen according to locale: >>> format_currency(1, 'USD', locale='en_US', format_type='name') u'1.00 US dollar' >>> format_currency(1099.98, 'USD', locale='en_US', format_type='name') u'1,099.98 US dollars' >>> format_currency(1099.98, 'USD', locale='ee', format_type='name') u'us ga dollar 1,099.98' By default the locale is allowed to truncate and round a high-precision number by forcing its format pattern onto the decimal part. You can bypass this behavior with the `decimal_quantization` parameter: >>> format_currency(1099.9876, 'USD', locale='en_US') u'$1,099.99' >>> format_currency(1099.9876, 'USD', locale='en_US', decimal_quantization=False) u'$1,099.9876' :param number: the number to format :param currency: the currency code :param format: the format string to use :param locale: the `Locale` object or locale identifier :param currency_digits: use the currency's natural number of decimal digits :param format_type: the currency format type to use :param decimal_quantization: Truncate and round high-precision numbers to the format pattern. Defaults to `True`. :param group_separator: Boolean to switch group separator on/off in a locale's number format. Úname)r¢r rÊr¤r¥z$ is not a known currency format typeN©r*rÊr¤r¥)Ú_format_currency_long_namerr%r©Úcurrency_formatsÚKeyErrorrÈrª) rŒr*r¢r rÊr®r¤r¥r¬s rÚformat_currencyrÒ5sá€ðB�fÒÐÝ)¨&°(À6Ø17ÈØ?SÐetðvñvôvð võŒ\˜&Ñ !Ô !€FØ ðoÝ Ñ'Ô'ˆˆð oØÔ-¨kÔ:ˆGˆGøÝð oð oð oÝ,° Ð-cÐ-cÐ-cÑdÔdÐjnÐ nð oøøøð �=Š=Ø� ¸?Ø1À?ð ñ Tô TðTs Á AÁA0có\—tj|¦«}t|t¦«rt |¦«n|}t |||¬¦«} t |||¬¦«} |s |j|}t|¦«} |   ||||||¬¦«} |   | | ¦«S)N)r6r rÎ) rr%r0rÚfloatrPrCr¨r©rªr¢) rŒr*r¢r rÊr®r¤r¥Únumber_nÚ unit_patternÚ display_namer¬Ú number_parts rrÏrϨsÀõŒ\˜&Ñ !Ô !€Fõ!+¨6µ3Ñ 7Ô 7ÐC�u�V‰}Œ}ˆ}¸V€Hõ-¨X¸XÈfÐUÑUÔU€Lõ% X°XÀfÐMÑMÔM€Lð ð0ØÔ'¨Ô/ˆå˜FÑ#Ô#€Gà—-’-Ø� ¸?Ø1À?ð ñTôT€Kð × Ò ˜{¨LÑ 9Ô 9Ð9rúLiteral['short']có—tj|¦«} |j|}n%#t$r}t |›d�¦«|‚d}~wwxYwt ||||¦«\}}|�dt |¦«vra|dD]X}|d|j}d|vrŒtj dd|¦«}tj dd|¦«  ¦«}|€td ¦«‚t|¦«} |   |||d d ¬ ¦«S) uŒFormat a number as a currency value in compact form. >>> format_compact_currency(12345, 'USD', locale='en_US') u'$12K' >>> format_compact_currency(123456789, 'USD', locale='en_US', fraction_digits=2) u'$123.46M' >>> format_compact_currency(123456789, 'EUR', locale='de_DE', fraction_digits=1) '123,5 Mio. €' :param number: the number to format :param currency: the currency code :param format_type: the compact format type to use. Defaults to "short". :param locale: the `Locale` object or locale identifier :param fraction_digits: Number of digits after the decimal point to use. Defaults to `0`. z, is not a known compact currency format typeNõ¤r9u [^0\s\¤]Úz(\s)\s+z\1zANo compact currency format found for the given number and locale.F)r*rÊr¤)rr%Úcompact_currency_formatsrÑrÈr´rr¬ÚreÚsubÚstripr=r©rª) rŒr*r®r r¯rµÚerrorr¢rÅr¬s rÚformat_compact_currencyrâÐs8€õ.Œ\˜&Ñ !Ô !€FðtØÔ8¸ÔEˆˆøÝ ðtðtðtÝ(¨KÐ)gÐ)gÐ)gÑhÔhÐnsÐsøøøøðtøøøå(¨°ÀÈÑYÔY�N€FˆFà €~˜¥S¨¡[¤[Ð0Ð0à'¨Ô0ð ð ˆIØ# GÔ,¨YÔ7Ô?ˆFؘ6Ð!Ð!Øå”V˜L¨"¨fÑ5Ô5ˆFå”V˜J¨¨vÑ6Ô6×<Ò<Ñ>Ô>ˆFØ Ø €~ÝÐ\Ñ]Ô]Ð]ݘFÑ#Ô#€GØ �=Š=˜ °(ÈEÐhmˆ=Ñ nÔ nÐns– $¤ A®AÁAcó˜—tj|¦«}|s |j|}t|¦«}| ||||¬¦«S)uDReturn formatted percent value for a specific locale. >>> format_percent(0.34, locale='en_US') u'34%' >>> format_percent(25.1234, locale='en_US') u'2,512%' >>> format_percent(25.1234, locale='sv_SE') u'2\xa0512\xa0%' The format pattern can also be specified explicitly: >>> format_percent(25.1234, u'#,##0‰', locale='en_US') u'25,123‰' By default the locale is allowed to truncate and round a high-precision number by forcing its format pattern onto the decimal part. You can bypass this behavior with the `decimal_quantization` parameter: >>> format_percent(23.9876, locale='en_US') u'2,399%' >>> format_percent(23.9876, locale='en_US', decimal_quantization=False) u'2,398.76%' >>> format_percent(229291.1234, locale='pt_BR', group_separator=False) u'22929112%' >>> format_percent(229291.1234, locale='pt_BR', group_separator=True) u'22.929.112%' :param number: the percent number to format :param format: :param locale: the `Locale` object or locale identifier :param decimal_quantization: Truncate and round high-precision numbers to the format pattern. Defaults to `True`. :param group_separator: Boolean to switch group separator on/off in a locale's number format. r§)rr%Úpercent_formatsr©rªr«s rÚformat_percentråÿs_€õXŒ\˜&Ñ !Ô !€FØ ð0ØÔ'¨Ô/ˆÝ˜FÑ#Ô#€GØ �=Š=Ø�Ð-AÐSbð ñ dô dðdrcó–—tj|¦«}|s |j|}t|¦«}| |||¬¦«S)a·Return value formatted in scientific notation for a specific locale. >>> format_scientific(10000, locale='en_US') u'1E4' The format pattern can also be specified explicitly: >>> format_scientific(1234567, u'##0.##E00', locale='en_US') u'1.23E06' By default the locale is allowed to truncate and round a high-precision number by forcing its format pattern onto the decimal part. You can bypass this behavior with the `decimal_quantization` parameter: >>> format_scientific(1234.9876, u'#.##E0', locale='en_US') u'1.23E3' >>> format_scientific(1234.9876, u'#.##E0', locale='en_US', decimal_quantization=False) u'1.2349876E3' :param number: the number to format :param format: :param locale: the `Locale` object or locale identifier :param decimal_quantization: Truncate and round high-precision numbers to the format pattern. Defaults to `True`. r²)rr%Úscientific_formatsr©rª)rŒr¢r r¤r¬s rÚformat_scientificrè3s[€õ>Œ\˜&Ñ !Ô !€FØ ð3ØÔ*¨6Ô2ˆÝ˜FÑ#Ô#€GØ �=Š=Ø�Ð-Að ñ Cô CðCrcó&‡—eZdZdZd d ˆfd „ ZˆxZS) ÚNumberFormatErrorz>Exception raised when a string cannot be parsed into a number.NÚmessagerÚ suggestionsúlist[str] | NonerrcóX•—t¦« |¦«||_dSr[)Úsuperrrì)rrërìÚ __class__s €rrzNumberFormatError.__init__]s)ø€Ý ‰Œ×Ò˜Ñ!Ô!Ð!à&ˆÔÐÐrr[)rërrìrírr)rrrrrÚ __classcell__)rðs@rrêrêZsHø€€€€€ØHÐHð'ð'ð'ð'ð'ð'ð'ð'ð'ð'ð'rrêÚstringcó®— t| t|¦«d¦«¦«S#t$r}t |›d�¦«|‚d}~wwxYw)aSParse localized number string into an integer. >>> parse_number('1,099', locale='en_US') 1099 >>> parse_number('1.099', locale='de_DE') 1099 When the given string cannot be parsed, an exception is raised: >>> parse_number('1.099,98', locale='de') Traceback (most recent call last): ... NumberFormatError: '1.099,98' is not a valid number :param string: the string to parse :param locale: the `Locale` object or locale identifier :return: the parsed number :raise `NumberFormatError`: if the string can not be converted to a number rÜz is not a valid numberN)rGÚreplacerˆr=rê)ròr Úves rÚ parse_numberröcsi€ð(MÝ�6—>’>Õ"2°6Ñ":Ô":¸BÑ?Ô?Ñ@Ô@Ð@øÝ ðMðMðMÝ 6Ð CÐ CÐ CÑDÔDÈ"ÐLøøøøðMøøøs‚/2² A¼AÁAÚstrictcól—tj|¦«}t|¦«}t|¦«}|s$|dkr||vrd|vr| d|¦«} t j| |d¦« |d¦«¦«}n*#t j$r}t|›d�¦«|‚d}~wwxYw|rñ||vrít||d¬¦«}||krÕ|  d ¦«||zkr¹ t j| |d¦« |d¦«¦«}t||d¬¦«} | |krt|›d |›d �|g¬ ¦«‚t|›d |›d | ›d �|| g¬ ¦«‚#t j$r}t|›d |›d �|g¬ ¦«|‚d}~wwxYw|S)akParse localized decimal string into a decimal. >>> parse_decimal('1,099.98', locale='en_US') Decimal('1099.98') >>> parse_decimal('1.099,98', locale='de') Decimal('1099.98') >>> parse_decimal('12 345,123', locale='ru') Decimal('12345.123') When the given string cannot be parsed, an exception is raised: >>> parse_decimal('2,109,998', locale='de') Traceback (most recent call last): ... NumberFormatError: '2,109,998' is not a valid decimal number If `strict` is set to `True` and the given string contains a number formatted in an irregular way, an exception is raised: >>> parse_decimal('30.00', locale='de', strict=True) Traceback (most recent call last): ... NumberFormatError: '30.00' is not a properly formatted decimal number. Did you mean '3.000'? Or maybe '30,00'? >>> parse_decimal('0.00', locale='de', strict=True) Traceback (most recent call last): ... NumberFormatError: '0.00' is not a properly formatted decimal number. Did you mean '0'? :param string: the string to parse :param locale: the `Locale` object or locale identifier :param strict: controls whether numbers formatted in a weird way are accepted or rejected :raise NumberFormatError: if the string can not be converted to a decimal number õ ú rÜrz is not a valid decimal numberNF)r r¤r¾z: is not a properly formatted decimal number. Did you mean ú?)rìz ? Or maybe ) rr%rˆrxrôrtr–ÚInvalidOperationrêr’Úrstrip) ròr r÷Ú group_symbolÚdecimal_symbolÚparsedÚexcÚproperÚ parsed_altÚ proper_alts rÚ parse_decimalr}sƒ€õJŒ\˜&Ñ !Ô !€FÝ# FÑ+Ô+€LÝ'¨Ñ/Ô/€Nà ð3ؘÒÐØ˜FÐ"Ð"Ø ˆvˆ ˆ ð—’  \Ñ2Ô2ˆðVÝ” §¢° ¸bÑ!AÔ!Aß(/ª°ÀÑ(DÔ(DñFôFˆˆøå Ô #ðVðVðVÝ 6Ð KÐ KÐ KÑLÔLÐRUÐUøøøøðVøøøà ð�, &Ð(Ð(Ý ¨vÈEÐRÑRÔRˆØ �VÒ Ð  § ¢ ¨cÑ 2Ô 2°vÀÑ7NÒ OÐ Oð Ý$œ_¨V¯^ª^¸NÈBÑ-OÔ-Oß4;²G¸LÈ#Ñ4NÔ4NñPôP� õ,¨J¸vÐ\aÐbÑbÔb� Ø Ò'Ð'Ý+Ø!ð4ð4Ø(.ð4ð4ð4à%+ Hðñôðõ ,Ø!ðMðMØ(.ðMðMØ=GðMðMðMà%+¨ZÐ$8ðñôðøõÔ+ð ð ð Ý'Øð0ð0Ø$*ð0ð0ð0à!' ðñôðð øøøøð øøøð( €Ms0ÁÂ&B9Â9B>Ã<(?:'[^']*'|%s)*)z(?P%s*)z(?P.*)Úpútuple[int, int]cóÞ—t|¦«}| d¦«}|dkrdS||z dz }|d| dz … d¦«}|dkr||fS||z |z dz }||fS)z¹Parse primary and secondary digit grouping >>> parse_grouping('##') (1000, 1000) >>> parse_grouping('#,###') (3, 3) >>> parse_grouping('#,####,###') (3, 4) r‡éÿÿÿÿ)éèr r¿Né)ÚlenÚrfind)rÚwidthÚg1Úg2s rÚparse_groupingrÚs‡€õ �‰FŒF€EØ �Š�‰Œ€BØ ˆR‚x€x؈zØ �‰�a‰€BØ ˆ8ˆRˆC�!‰Gˆ8Œ× Ò ˜3Ñ Ô €BØ ˆR‚x€xØ�2ˆvˆ Ø �‰�b‰˜1Ñ €BØ ˆrˆ6€Mrr¬úNumberPattern | strÚ NumberPatternc ó–—t|t¦«r|Sd„}|}d|vr8| dd¦«\}}||¦«\}}}||¦«\}}} n||¦«\}}}d|›�}|} d|vr| dd¦«\}} nd} d|vrd|vrd |vrtd ¦«‚d|vr| dd¦«\} } n|} d } d „} | | ¦«}| | ¦«}| r6|  d ¦«}|  d ¦«} | | ¦«}nd}d}t| ¦«}t|||f|| f||||||¦ « S)zParse number format patternscó†—t |¦«}|€td|›�¦«‚| ¦«S)NzInvalid number pattern )Ú number_reÚsearchr=Úgroups)r¬Úrvs rÚ _match_numberz$parse_pattern.._match_numberõs?€Ý × Ò ˜gÑ &Ô &ˆØ ˆ:ÝÐB°wÐBÐBÑCÔCÐ CØ�yŠy‰{Œ{Ðrú;r¿rrƒNú@rr¾z5Significant digit patterns can not contain "@" or "0"rÜcó`—dx}}|D]$}|dvr |dz }|dz }Œ|dkr|dz }Œ|dkrŒ$||fS)z(Calculate the min and max allowed digitsrz@0r¿ú#r‡r)rÚminÚmaxÚcs rÚparse_precisionz&parse_pattern..parse_precisionsc€àˆ ˆˆcØð ð ˆAØ�DˆyˆyØ�q‘�Ø�q‘��Ø�c’�Ø�q‘��Ø�c’�ØàØ�Cˆxˆrr{)r0rÚsplitr=ÚrsplitÚ startswithÚlstripr)r¬rÚ pos_patternÚ neg_patternÚ pos_prefixrŒÚ pos_suffixÚ neg_prefixÚ_Ú neg_suffixÚexpÚintegerÚfractionr"Úint_precÚ frac_precÚexp_plusÚexp_precÚgroupings rr©r©ðsÔ€å�'�=Ñ)Ô)ð؈ðððð €Kð ˆg€~€~Ø#*§=¢=°°aÑ#8Ô#8Ñ ˆ �[Ø)6¨°{Ñ)CÔ)CÑ&ˆ �F˜JØ$1 M°+Ñ$>Ô$>Ñ!ˆ �A�z�zà)6¨°{Ñ)CÔ)CÑ&ˆ �F˜JØ%˜Ð%Ð%ˆ ؈ Ø ˆf€}€}Ø—l’l 3¨Ñ*Ô*‰ ˆ��àˆØ ˆf€}€}˜ ˜˜¨3°&¨=¨=ÝÐPÑQÔQÐQØ ˆf€}€}Ø"ŸMšM¨#¨qÑ1Ô1ш��àˆØˆð ð ð ðˆ˜wÑ'Ô'€HØ� Ñ)Ô)€IØ ðØ—>’> #Ñ&Ô&ˆØ�jŠj˜‰oŒoˆØ"�? 3Ñ'Ô'ˆˆàˆØˆÝ˜gÑ&Ô&€HÝ ˜ :¨zÐ":Ø$ jÐ1°8Ø! 9Ø! 8¨Vñ 5ô 5ð5rcóh—eZdZ d/d0d„Zd1d„Zd2d„Zd3d„Z d4d5d%„Zd6d)„Zd7d,„Z d8d-„Z d/d9d.„Z dS):rNr¬rÚprefixútuple[str, str]Úsuffixr5rr1r2r4útuple[int, int] | Noner3ú bool | NoneÚnumber_patternr2rrc ó¶—||_||_||_| |_||_||_||_||_||_|  ¦«|_ dSr[) r¬r7r9r<r5r1r2r4r3Ú compute_scaleÚscale) rr¬r7r9r5r1r2r4r3r<s rrzNumberPattern.__init__3s[€ðˆŒ ؈Œ ؈Œ Ø,ˆÔØ ˆŒ Ø ˆŒ Ø"ˆŒØ ˆŒ Ø ˆŒ Ø×'Ò'Ñ)Ô)ˆŒ ˆ ˆ rcóB—dt|¦«j›d|j›d�S)Nú)Útyperr¬)rs rÚ__repr__zNumberPattern.__repr__Ks&€Ø:•4˜‘:”:Ô&Ð:Ð:¨¬Ð:Ð:Ð:Ð:rúLiteral[0, 2, 3]có¤—d}dd |j|jz¦«vrd}n&dd |j|jz¦«vrd}|S)uReturn the scaling factor to apply to the number before rendering. Auto-set to a factor of 2 or 3 if presence of a ``%`` or ``‰`` sign is detected in the prefix or suffix of the pattern. Default is to not mess with the scale at all and keep it to 0. rú%rÜr u‰é)Újoinr7r9)rr?s rr>zNumberPattern.compute_scaleNsZ€ðˆØ �"—'’'˜$œ+¨¬ Ñ3Ñ4Ô4Ð 4Ð 4؈EˆEØ �b—g’g˜dœk¨D¬KÑ7Ñ8Ô8Ð 8Ð 8؈E؈ rÚvaluer”r r!ú tuple[decimal.Decimal, int, str]có‚—| ¦«}|t|¦«z}| ¦«dksJ‚tdt|j¦«g¦«dz }||z }|t| ¦«z}d}|dkrt |¦«}n|jrt|¦«}t|¦«}|||fS)zG Returns normalized scientific notation components of a value. rr¿rÜ) Úadjustedr¡r rr1r€r3r|rš)rrJr r.Ú lead_shiftÚexp_signs rÚscientific_notation_elementsz*NumberPattern.scientific_notation_elements\sÓ€ð�nŠnÑÔˆØÕ+¨CÑ0Ô0Ñ0ˆØ�~Š~ÑÔ 1Ò$Ð$Ð$Ð$õ ˜!�S ¤Ñ/Ô/Ð0Ñ1Ô1°AÑ5ˆ Ø�JшØÕ+¨Z¨KÑ8Ô8Ñ8ˆðˆØ �Š7ˆ7Ý,¨VÑ4Ô4ˆHˆHØ Œ]ð 4Ý+¨FÑ3Ô3ˆHõ�#‰hŒhˆà�c˜8Ð#Ð#rTr�r*rÊr.r¤Ú force_fracr¥c ó"—t|tj¦«s!tjt|¦«¦«}| |j¦«}t | ¦«¦«}t|¦«  ¦«}|j r|  ||¦«\}} } |rtj dt¦«|} n|r|rt|¦«fdz} n|j} |r |j r2| dkr,| dt#| dt%|¦«g¦«f} |j rvd | ||| |¦«t+|¦«| | t| ¦«|j d|j d|¦«g¦«} n—d|jvrv| ||jd|jd¦«} |  d¦«\}}}| |dd |¦«} |r| t7|¦«|zz } n| ||| |¦«} d |j||jdkr| nd|j|g¦«}d |vrs|�q| d tA|||¦«¦«}| d | !¦«¦«}| d tE||¦«¦«}tGj$dd„|¦«}|S)aRenders into a string a number following the defined pattern. Forced decimal quantization is active by default so we'll produce a number string that is strictly following CLDR pattern definitions. :param value: The value to format. If this is not a Decimal object, it will be cast to one. :type value: decimal.Decimal|float|int :param locale: The locale to use for formatting. :type locale: str|babel.core.Locale :param currency: Which currency, if any, to format as. :type currency: str|None :param currency_digits: Whether or not to use the currency's precision. If false, the pattern's precision is used. :type currency_digits: bool :param decimal_quantization: Whether decimal numbers should be forcibly quantized to produce a formatted output strictly matching the CLDR definition for the locale. :type decimal_quantization: bool :param force_frac: DEPRECATED - a forced override for `self.frac_prec` for a single formatting invocation. :return: Formatted decimal string. :rtype: str z@The force_frac parameter to NumberPattern.apply() is deprecated.r )rrrr¿rÜrrr rÛNu¤¤¤u¤¤z '([^']*)'có0—| d¦«pdS)Nr¿ú')r†)r»s rúz%NumberPattern.apply..Þs€°·²¸± ´ Ð0A¸c€r)%r0rtr–rÚscalebr?rGÚ is_signedršr—r4rPr�r�r‘rLr2r rœrIÚ_quantize_valuer„Ú _format_intr¬Ú_format_significantr1Ú partitionrxr7r<r9rôrCr4rFrÞrß)rrJr r*rÊr¤rQr¥Ú is_negativer.rOr2rŒÚtextÚaÚsepÚbÚretvals rrªzNumberPattern.applyws€õF˜%¥¤Ñ1Ô1ð 0Ý”O¥C¨¡J¤JÑ/Ô/ˆEà— ’ ˜TœZÑ(Ô(ˆõ˜%Ÿ/š/Ñ+Ô+Ñ,Ô,ˆ Ý�E‘ ” ×$Ò$Ñ&Ô&ˆð Œ=ð TØ#'×#DÒ#DÀUÈFÑ#SÔ#SÑ ˆE�3˜ð ð 'å ŒMÐ\Õ^pÑ qÔ qÐ qØ"ˆIˆIØ ð '˜/ð 'Ý/°Ñ9Ô9Ð<¸qÑ@ˆIˆIàœˆIð$ð Z¨¬ ð Z¸)ÀvÒ:MÐ:MØ" 1œ¥s¨I°a¬LÕ:OÐPUÑ:VÔ:VÐ+WÑ'XÔ'XÐYˆIð Œ=ð UØ—W’WØ×$Ò$ U¨F°I¸ÑOÔOÝ& vÑ.Ô.ØØ× Ò ¥ S¡¤¨4¬=¸Ô+;¸T¼]È1Ô=MÈvÑVÔVð ñôˆFˆFð�D”LÐ Ð Ø×+Ò+¨EØ,0¬M¸!Ô,<Ø,0¬M¸!Ô,<ñ>ô>ˆD🚠sÑ+Ô+‰IˆAˆs�AØ×%Ò% a¨¨D°&Ñ9Ô9ˆFØð 9ØÕ,¨VÑ4Ô4°qÑ8Ñ8�øð×)Ò)¨%°¸ÀOÑTÔTˆFà—’Ø ŒK˜ Ô $ØÔ)¨RÒ/Ð/ˆFˆF°RØ ŒK˜ Ô $ð&ñ'ô'ˆð �6ˆ>ˆ>˜hÐ2Ø—^’^ HÕ.?ÀÈ%ÐQWÑ.XÔ.XÑYÔYˆFØ—^’^ F¨H¯NªNÑ,<Ô,<Ñ=Ô=ˆFØ—^’^ DÕ*=¸hÈÑ*OÔ*OÑPÔPˆFõ”˜ Ð&AÐ&AÀ6ÑJÔJˆàˆ rÚminimumrGÚmaximumc ó—| ¦«}|dz |z }t| |¦« t jd¦«¦«¦«}|dkr |d| zz}n”|d| …}t |¦«} | t|| z d¦«z} d |pddt|dzd¦« || | …|| d…  d¦«¬¦«  d¦«}|S)Nr¿rr¾z-{intpart}.{pad:0<{fill}}{fracpart}{fracextra}rÜ)ÚintpartÚpadÚfillÚfracpartÚ fracextrar) rMrrVÚquantizertr–r r r¢rrý) rrJrbrcr.r?ÚdigitsrpreÚiÚjs rrZz!NumberPattern._format_significantös€Ø�nŠnÑԈؘ!‘ ˜cÑ!ˆÝ�U—\’\ %Ñ(Ô(×1Ò1µ'´/À!Ñ2DÔ2DÑEÔEÑFÔFˆØ �AŠ:ˆ:ؘc U F™lÑ*ˆFˆFà˜W˜u˜f˜W”oˆGÝ�G‘ ” ˆAØ•C˜ !™  QÑ'Ô'Ñ'ˆAØD×KÒKؘ 3ØÝ˜# ™' 1‘o”oÐ%Ø  ! œØ    œ*×+Ò+¨CÑ0Ô0ð Lñô÷ Šf�S‰kŒkð ðˆ rrr có&—t|¦«}||kr d||z z|z}|jd}d}t|¦«}t|¦«|kr<||| d…z|z}|d| …}|jd}t|¦«|k°<||zS)Nr¾rrÜr¿)r r5rˆ) rrJrr r rÚgsizeÚretÚsymbols rrYzNumberPattern._format_int s«€Ý�E‘ ” ˆØ �3Š;ˆ;ؘ3 ™;Ñ'¨%Ñ/ˆEØ” ˜aÔ ˆØˆÝ! &Ñ)Ô)ˆÝ�%‰jŒj˜5Ò Ð Ø˜5 %   œ>Ñ)¨CÑ/ˆCؘ'˜E˜6˜'”NˆEØ”M !Ô$ˆEõ�%‰jŒj˜5Ò Ð ð�s‰{Ðrcór—| ¦«rt|¦«St|d¦«}| |¦«}|d› d¦«\}}} |} |r.| ||jd|jd|¦«} | | | pd||¦«z} | S)Nr¿Úfrrr¾)rÂr‹r¡rjr[rYr1Ú _format_frac) rrJr r2r¥ÚquantumrÆr^r_r`Ú integer_partrŒs rrXzNumberPattern._quantize_values¾€à × Ò Ñ Ô ð /Ý& vÑ.Ô.Ð .Ý% i°¤lÑ3Ô3ˆØ—.’. Ñ)Ô)ˆØ�N�N×,Ò,¨SÑ1Ô1‰ ˆˆ3�؈ Ø ð [Ø×+Ò+¨A¨t¬}¸QÔ/?ÀÄÈqÔAQÐSYÑZÔZˆLØ × 1Ò 1°!°(°s¸FÀIÑ NÔ NÑNˆØˆ rcóf—|p|j\}}t|¦«|kr|d|t|¦«z zz }|dks|dkrt|¦«dkrdSt|¦«|kr5|ddkr)|dd…}t|¦«|kr |ddk°)t|¦«|zS)Nr¾rrÜr )r2r rGrx)rrJr rQrr s rrtzNumberPattern._format_frac#sÁ€ØÐ/ ¤‰ˆˆSÝ ˆu‰:Œ:˜Ò Ð Ø �c˜S¥3 u¡:¤:Ñ-Ñ.Ñ /ˆEØ �!Š8ˆ8˜˜qš˜¥S¨¡Z¤Z°1¢_ _Ø�2Ý�%‰jŒj˜3ÒР5¨¤9°Ò#3Ð#3ؘ#˜2˜#”JˆEõ�%‰jŒj˜3ÒР5¨¤9°Ò#3Ð#3å! &Ñ)Ô)¨EÑ1Ð1rr[)r¬rr7r8r9r8r5rr1rr2rr4r:r3r;r<r2rr)rr)rrE)rJr”r r!rrK)NTTNT)rJr�r r!r*r2rÊr.r¤r.rQr:r¥r.)rJr”rbrGrcrGrr) rJrrrGr rGr r!rr) rJr”r r!r2rr¥r.rr)rJrr r!rQr:rr) rrrrrDr>rPrªrZrYrXrtrrrrr1só€€€€€ð&*ð*ð*ð*ð*ð*ð0;ð;ð;ð;ð ð ð ð ð$ð$ð$ð$ð> $Ø $Ø%)Ø-1Ø $ðiðiðiðiðið~ðððð& ð ð ð ð ð ð ð ð2ð2ð2ð2ð2ð2ð2rr[)r r!rr")r*rr r!rr)r*rr r!rr.)r*rr r!rr2)r*rr6r7r r!rr)r*rr r!rr)r*rrrG).....)rQrrRrSrTrSrUr.rVr.rWrXrrY)rQrrRrSrTrSrUr.rVr.rWr_rr`)NNTFF)rQrrRrSrTrSrUr.rVr.rWr.rrb)r r!rr)rŒr�r r!rr)rŒr”rrG)r�ržrr”) rŒr�r¢r£r r!r¤r.r¥r.rr) rŒr�r®r°r r!r¯rGrr) rŒr�rµr r rr¯rGrr·)rŒr�r*rr¢r£r r!rÊr.r®rËr¤r.r¥r.rr) rŒr�r*rr®rÙr r!r¯rGrr) rŒr�r¢r£r r!r¤r.rr)ròrr r!rrG)ròrr r!r÷r.rr”)rrrr)r¬rrr)ArÚ __future__rrkrtrÞr�ÚtypingrrrrÚ babel.corerr r Úbabel.localedatar Útyping_extensionsr r rrr)r-r1r5rCrFrLrPr]rxr|r€r„rˆr‹r“rœr¡r’r¶r´rÑrÈrÒrÏrârårèr=rêrörÚ PREFIX_ENDÚ NUMBER_TOKENÚPREFIX_PATTERNÚNUMBER_PATTERNÚSUFFIX_PATTERNÚcompilerrr©rrrrúrƒs<ðððð&#Ð"Ð"Ð"Ð"Ð"à€€€Ø€€€Ø € € € Ø€€€Ø5Ð5Ð5Ð5Ð5Ð5Ð5Ð5Ð5Ð5Ð5Ð5à9Ð9Ð9Ð9Ð9Ð9Ð9Ð9Ð9Ð9Ø+Ð+Ð+Ð+Ð+Ð+àð*Ø)Ð)Ð)Ð)Ð)Ð)à ˆ^˜LÑ )Ô )€ ð %ð %ð %ð %ð %˜9ñ %ô %ð %ðððððð$ -ð -ð -ð -ð -ð ð ð ð ð ð ð ð ð ð ð"-1Ø",ð2ð2ð2ð2ð2ðBFPð Ið Ið Ið Ið Ið >ð >ð >ð >ð -1Ø",ð8ð8ð8ð8ð8ðD ð(+Ø%(ØØØ&)ð ðððñ „ðð ð(+Ø%(ØØØ%(ð ðððñ „ðð(,Ø%)ØØØ!ð \ð\ð\ð\ð\ð~6@ðCðCðCðCðCð8BðDðDðDðDðDð9CðEðEðEðEðEð:DðGðGðGðGðGð4>ðAðAðAðAðAð7AðFðFðFðFðFðXbð1ð1ð1ð1ð1ð* 'ð 'ð 'ð 'ð/ð/ð/ð/ð*.Ø",Ø!%Ø ð 4dð4dð4dð4dð4dðt-4Ø",Øð "Eð"Eð"Eð"Eð"Eð"EðJ%ð%ð%ð%ðPIðIðIðIðI ñIôIðIð*.Ø",Ø Ø=GØ!%Ø ðpTðpTðpTðpTðpTðl*.Ø",Ø Ø=GØ!%Ø ð%:ð%:ð%:ð%:ð%:ðX%,Ø",Øð ,oð,oð,oð,oð,oð,oðb*.Ø",Ø!%Ø ð 1dð1dð1dð1dð1dðl.2Ø&0Ø%)ð $Cð$Cð$Cð$Cð$CðN'ð'ð'ð'ð'˜ ñ'ô'ð'ð=GðMðMðMðMðMð4>HÐX]ðPðPðPðPðPðf€ Ø€ à/°*Ñ<€Ø# lÑ2€Ø"€à ˆBŒJ˜.ÐJ¨.ÐJ¸.ÐJÐJÑ KÔ K€ ððððð,>5ð>5ð>5ð>5ðBz2ðz2ðz2ðz2ðz2ñz2ôz2ðz2ðz2ðz2r