+
    *:g                    :    ^ RI Ht ^ RIHt RR R lltR R ltR# )	    )annotations)
get_globalc               (    V ^8  d   QhRRRRRRRR/# )   	territorystrregionalboolde_factoreturnztuple[str, ...] )formats   "1/usr/lib/python3/dist-packages/babel/languages.py__annotate__r      s)     %, %,c %,T %,T %,^m %,    c                   \        V 4      P                  4       p R0pV'       d   VP                  R4       V'       d   VP                  R4       \        R4      P	                  V / 4      pVP                  4        UUu. uF(  w  rVVP	                  R4      V9   g   K  VR,          V3NK*  	  pppVP                  RR7       \        ;QJ d    . R	 V 4       F  NK  	  5# ! R	 V 4       4      # u uppi )
a"  
Get the official language(s) for the given territory.

The language codes, if any are known, are returned in order of descending popularity.

If the `regional` flag is set, then languages which are regionally official are also returned.

If the `de_facto` flag is set, then languages which are "de facto" official are also returned.

.. warning:: Note that the data is as up to date as the current version of the CLDR used
             by Babel.  If you need scientifically accurate information, use another source!

:param territory: Territory code
:type territory: str
:param regional: Whether to return regionally official languages too
:type regional: bool
:param de_facto: Whether to return de-facto official languages too
:type de_facto: bool
:return: Tuple of language codes
:rtype: tuple[str]
officialofficial_regionalde_facto_officialterritory_languagesofficial_statuspopulation_percentT)reversec              3  *   "   T F	  w  rVx  K  	  R # 5i)Nr   ).0_langs   &  r   	<genexpr>)get_official_languages.<locals>.<genexpr>+   s     +U'!Us   )r   upperaddr   getitemssorttuple)r   r	   r   allowed_stati	languageslanguageinfopairss   &&&     r   get_official_languagesr+      s    . I$$&ILM-.-.0155iDI (oo//NH88%&-7 	/"	#X./ 
 
 
JJtJ5+U+5+5+U+++s   =C,C,c                    V ^8  d   QhRRRR/# )r   r   r   r   z(dict[str, dict[str, float | str | None]]r   )r   s   "r   r   r   .   s     G G3 G3[ Gr   c                    \        V 4      P                  4       p \        R4      P                  V / 4      P	                  4       # )a  
Get a dictionary of language information for a territory.

The dictionary is keyed by language code; the values are dicts with more information.

The following keys are currently known for the values:

* `population_percent`: The percentage of the territory's population speaking the
                        language.
* `official_status`: An optional string describing the officiality status of the language.
                     Known values are "official", "official_regional" and "de_facto_official".

.. warning:: Note that the data is as up to date as the current version of the CLDR used
             by Babel.  If you need scientifically accurate information, use another source!

.. note:: Note that the format of the dict returned may change between Babel versions.

See https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html

:param territory: Territory code
:type territory: str
:return: Language information dictionary
:rtype: dict[str, dict]
r   )r   r    r   r"   copy)r   s   &r   get_territory_language_infor/   .   s8    2 I$$&I+,00B?DDFFr   N)FF)
__future__r   
babel.corer   r+   r/   r   r   r   <module>r2      s    " !%,PGr   