__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

��g�k��V�SrSSKJr SSKrSSKrSSKrSSKJr SSKJ	r	J
r
JrJrJ
r
 SSKJr SSKJrJrJrJr SSKJrJrJrJrJrJr \	(aSSKrSS	KJr SS
KJ r  "SS5r!"S
S5r""SS\RF5r#"SS\#\RH5r%SSjr&g)a
babel.support
~~~~~~~~~~~~~

Several classes and functions that help with integrating and using Babel
in applications.

.. note: the code in this module is not used by Babel itself

:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
�)�annotationsN)�Iterator)�
TYPE_CHECKING�Any�Callable�Iterable�Literal)�Locale)�format_date�format_datetime�format_time�format_timedelta)�format_compact_currency�format_compact_decimal�format_currency�format_decimal�format_percent�format_scientific)�Decimal)�_PredefinedTimeFormatc�<�\rSrSrSrSSS.SSjjjrSSSjjrSSSjjrSSS	jjrSSS
jjr	SSjr
SSSjjrSSS
jjrSSjr
SS SjjrSSSjjrSSjrSrg)!�Format�'aWrapper class providing the various date and number formatting functions
bound to a specific locale and time-zone.

>>> from babel.util import UTC
>>> from datetime import date
>>> fmt = Format('en_US', UTC)
>>> fmt.date(date(2007, 4, 1))
u'Apr 1, 2007'
>>> fmt.decimal(1.2345)
u'1.234'
N�latn)�numbering_systemc�R�[R"U5UlX lX0lg)agInitialize the formatter.

:param locale: the locale identifier or `Locale` instance
:param tzinfo: the time-zone info (a `tzinfo` instance or `None`)
:param numbering_system: The numbering system used for formatting number symbols. Defaults to "latn".
                         The special value "default" will use the default numbering system of the locale.
N)r
�parse�locale�tzinfor)�selfrrrs    �//usr/lib/python3/dist-packages/babel/support.py�__init__�Format.__init__4s���l�l�6�*����� 0��c�*�[XURS9$)z�Return a date formatted according to the given pattern.

>>> from datetime import date
>>> fmt = Format('en_US')
>>> fmt.date(date(2007, 4, 1))
u'Apr 1, 2007'
)r)rr)r �date�formats   r!r&�Format.dateFs���4����<�<r$c�@�[XURURS9$)uReturn a date and time formatted according to the given pattern.

>>> from datetime import datetime
>>> from babel.dates import get_timezone
>>> fmt = Format('en_US', tzinfo=get_timezone('America/New_York'))
>>> fmt.datetime(datetime(2007, 4, 1, 15, 30))
u'Apr 1, 2007, 11:30:00 AM'
�rr)rrr)r �datetimer's   r!r+�Format.datetimeTs���x����D�K�K�X�Xr$c�@�[XURURS9$)uReturn a time formatted according to the given pattern.

>>> from datetime import datetime
>>> from babel.dates import get_timezone
>>> fmt = Format('en_US', tzinfo=get_timezone('America/New_York'))
>>> fmt.time(datetime(2007, 4, 1, 15, 30))
u'11:30:00 AM'
r*)r
rr)r �timer's   r!r.�Format.timecs���4����D�K�K�P�Pr$c	�.�[XUXEURS9$)z�Return a time delta according to the rules of the given locale.

>>> from datetime import timedelta
>>> fmt = Format('en_US')
>>> fmt.timedelta(timedelta(weeks=11))
u'3 months'
)�granularity�	thresholdr'�
add_directionr)rr)r �deltar1r2r'r3s      r!�	timedelta�Format.timedeltars �� ��*3�'-�'+�{�{�4�	4r$c�>�[XRURS9$)zlReturn an integer number formatted for the locale.

>>> fmt = Format('en_US')
>>> fmt.number(1099)
u'1,099'
�rr�rrr�r �numbers  r!r;�
Format.number�s���f�[�[�4�K`�K`�a�ar$c�@�[XURURS9$)znReturn a decimal number formatted for the locale.

>>> fmt = Format('en_US')
>>> fmt.decimal(1.2345)
u'1.234'
r8r9�r r;r's   r!�decimal�Format.decimal�����f�T�[�[�SW�Sh�Sh�i�ir$c�D�[UUUURURS9$)z�Return a number formatted in compact form for the locale.

>>> fmt = Format('en_US')
>>> fmt.compact_decimal(123456789)
u'123M'
>>> fmt.compact_decimal(1234567, format_type='long', fraction_digits=2)
'1.23 million'
��format_type�fraction_digitsrr)rrr)r r;rDrEs    r!�compact_decimal�Format.compact_decimal�s*��&��#�+��;�;�!�2�2�
�	
r$c�@�[XURURS9$)zHReturn a number in the given currency formatted for the locale.
        r8)rrr)r r;�currencys   r!rI�Format.currency�s���v����VZ�Vk�Vk�l�lr$c	�B�[XX4URURS9$)z�Return a number in the given currency formatted for the locale
using the compact number format.

>>> Format('en_US').compact_currency(1234567, "USD", format_type='short', fraction_digits=2)
'$1.23M'
rC)rrr)r r;rIrDrEs     r!�compact_currency�Format.compact_currency�s&��'�v�[�.2�k�k�D�La�La�c�	cr$c�@�[XURURS9$)zpReturn a number formatted as percentage for the locale.

>>> fmt = Format('en_US')
>>> fmt.percent(0.34)
u'34%'
r8)rrrr>s   r!�percent�Format.percent�rAr$c�>�[XRURS9$)zLReturn a number formatted using scientific notation for the locale.
        r8)rrrr:s  r!�
scientific�Format.scientific�s��!����d�Nc�Nc�d�dr$)rrr�N)rzLocale | strrz_datetime.tzinfo | NonerzLiteral['default'] | str�return�None)N�medium)r&�_datetime.date | Noner'�_PredefinedTimeFormat | strrU�str)r+rXr'rYrUrZ)r.z*_datetime.time | _datetime.datetime | Noner'rYrUrZ)�secondg333333�?�longF)r4z_datetime.timedelta | intr1zCLiteral['year', 'month', 'week', 'day', 'hour', 'minute', 'second']r2�floatr'z,Literal['narrow', 'short', 'medium', 'long']r3�boolrUrZ)r;�float | Decimal | strrUrZ)r;r_r'�
str | NonerUrZ)�shortr)r;r_rDzLiteral['short', 'long']rE�intrUrZ)r;r_rIrZrUrZ)
r;r_rIrZrDzLiteral['short']rErbrUrZ)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r"r&r+r.r5r;r?rFrIrLrOrR�__static_attributes__�r$r!rr's���
�+/�1�
6<�1��1�(�1�
3�1�
�
1�('+�.6�=�#�=�,�=�

�	=� +/�.6�
Y�'�
Y�,�
Y�

�	
Y�"<@�.6�
Q�8�
Q�,�
Q�

�	
Q�$\d��?E�#�
4�(�4�Y�4��	4�
=�4��
4�

�4�(b�j�18� �	
�%�
�.�
��	
�


�
�,m�)0� �c�%�c��c�&�	c�
�c�

�
c� j�er$rc��\rSrSr%Sr/SQr\(aS\S'S\S'S\S	'S
\S'S\S
'S\S'SS.S1Sjjr\	S2Sj5r
S3SjrS4SjrS5Sjr
S6SjrS7SjrS8SjrS9SjrS9SjrS9SjrS9SjrS9SjrS9SjrS:S jrS;S!jrS;S"jrS;S#jrS;S$jrS;S%jrS;S&jrS<S'jrS=S(jrS>S)jr S?S*jr!S@S+jr"SAS,jr#SBS-jr$SCS.jr%S/r&g0)D�	LazyProxy��aClass for proxy objects that delegate to a specified function to evaluate
the actual object.

>>> def greeting(name='world'):
...     return 'Hello, %s!' % name
>>> lazy_greeting = LazyProxy(greeting, name='Joe')
>>> print(lazy_greeting)
Hello, Joe!
>>> u'  ' + lazy_greeting
u'  Hello, Joe!'
>>> u'(%s)' % lazy_greeting
u'(Hello, Joe!)'

This can be used, for example, to implement lazy translation functions that
delay the actual translation until the string is actually used. The
rationale for such behavior is that the locale of the user may not always
be available. In web applications, you only know the locale when processing
a request.

The proxy implementation attempts to be as complete as possible, so that
the lazy objects should mostly work as expected, for example for sorting:

>>> greetings = [
...     LazyProxy(greeting, 'world'),
...     LazyProxy(greeting, 'Joe'),
...     LazyProxy(greeting, 'universe'),
... ]
>>> greetings.sort()
>>> for greeting in greetings:
...     print(greeting)
Hello, Joe!
Hello, universe!
Hello, world!
)�_func�_args�_kwargs�_value�_is_cache_enabled�_attribute_error�Callable[..., Any]rmztuple[Any, ...]rnzdict[str, Any]ror^rqrrpzAttributeError | NonerrT)�enable_cachec��[RUSU5 [RUSU5 [RUSU5 [RUSU5 [RUSS5 [RUSS5 g)Nrmrnrorqrprr)�object�__setattr__)r �funcrt�args�kwargss     r!r"�LazyProxy.__init__�sp�����4��$�/����4��$�/����4��F�3����4�!4�l�C����4��4�0����4�!3�T�:r$c�*�URcQUR"UR0URD6nUR(dU$[
R
USU5 UR$![an[
R
USU5 eSnAff=f)Nrrrp)rprmrnro�AttributeErrorrvrwrq)r �value�errors   r!r~�LazyProxy.values����;�;��
��
�
�D�J�J�?�$�,�,�?��
�)�)������t�X�u�5��{�{���"�
��"�"�4�);�U�C���
�s�&A+�+
B�5B
�
Bc��XR;$rT�r~�r �keys  r!�__contains__�LazyProxy.__contains__s���j�j� � r$c�,�[UR5$rT)r^r~�r s r!�__bool__�LazyProxy.__bool__����D�J�J��r$c�,�[UR5$rT)�dirr~r�s r!�__dir__�LazyProxy.__dir__����4�:�:��r$c�,�[UR5$rT)�iterr~r�s r!�__iter__�LazyProxy.__iter__r�r$c�,�[UR5$rT)�lenr~r�s r!�__len__�LazyProxy.__len__"r�r$c�,�[UR5$rT)rZr~r�s r!�__str__�LazyProxy.__str__%r�r$c� �URU-$rTr��r �others  r!�__add__�LazyProxy.__add__(����z�z�E�!�!r$c��XR-$rTr�r�s  r!�__radd__�LazyProxy.__radd__+����z�z�!�!r$c� �URU-$rTr�r�s  r!�__mod__�LazyProxy.__mod__.r�r$c��XR-$rTr�r�s  r!�__rmod__�LazyProxy.__rmod__1r�r$c� �URU-$rTr�r�s  r!�__mul__�LazyProxy.__mul__4r�r$c��XR-$rTr�r�s  r!�__rmul__�LazyProxy.__rmul__7r�r$c�&�UR"U0UD6$rTr�)r ryrzs   r!�__call__�LazyProxy.__call__:s���z�z�4�*�6�*�*r$c� �URU:$rTr�r�s  r!�__lt__�LazyProxy.__lt__=r�r$c� �URU:*$rTr�r�s  r!�__le__�LazyProxy.__le__@����z�z�U�"�"r$c� �URU:H$rTr�r�s  r!�__eq__�LazyProxy.__eq__Cr�r$c� �URU:g$rTr�r�s  r!�__ne__�LazyProxy.__ne__Fr�r$c� �URU:�$rTr�r�s  r!�__gt__�LazyProxy.__gt__Ir�r$c� �URU:�$rTr�r�s  r!�__ge__�LazyProxy.__ge__Lr�r$c�0�[URU5 grT)�delattrr~�r �names  r!�__delattr__�LazyProxy.__delattr__Os����
�
�D�!r$c�`�URbURe[URU5$rT)rr�getattrr~r�s  r!�__getattr__�LazyProxy.__getattr__Rs+��� � �,��'�'�'��t�z�z�4�(�(r$c�0�[URX5 grT)�setattrr~)r r�r~s   r!rw�LazyProxy.__setattr__Ws����
�
�D�(r$c��URU	grTr�r�s  r!�__delitem__�LazyProxy.__delitem__Zs
���J�J�s�Or$c� �URU$rTr�r�s  r!�__getitem__�LazyProxy.__getitem__]s���z�z�#��r$c� �X RU'grTr�)r r�r~s   r!�__setitem__�LazyProxy.__setitem__`s
���
�
�3�r$c�t�[UR/URQ7SUR0URD6$)Nrt)rkrmrnrqror�s r!�__copy__�LazyProxy.__copy__cs@����J�J�
��Z�Z�
��/�/�
��l�l�	
�	
r$c��SSKJn [U"URU5/U"URU5Q7SU"UR
U50U"URU5D6$)Nr)�deepcopyrt)�copyr�rkrmrnrqro)r �memor�s   r!�__deepcopy__�LazyProxy.__deepcopy__ks_��!���T�Z�Z��&�
��d�j�j�$�
'�
�!�$�"8�"8�$�?�
��t�|�|�T�*�	
�	
r$riN)
rxrsryrrtr^rzrrUrV)rUr)r�rvrUr^)rUr^)rUz	list[str])rUz
Iterator[Any])rUrb�rUrZ)r�rvrUr)ryrrzrrUr)r�rvrUr^)r�rZrUrV)r�rZrUr)r�rZr~rrUrV)r�rrUrV)r�rrUr)r�rr~rrUrV)rUrk)r�rrUrk)'rcrdrerfrg�	__slots__r�__annotations__r"�propertyr~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rwr�r�r�r�r�rhrir$r!rkrk�s���!�Da�I��!�!���������/�/�RV�;�����!� �� ���"�"�"�"�"�"�+�"�#�#�#�"�#�"�)�
)��� �
�
r$rkc�x^�\rSrSr%\(a
S\S'S\S'SrSSU4SjjjrSSjrSS	jr	SS
jr
\
rSSjrSSjr
SS
jr\rSrS SjrS!SjrS"SjrS#SjrS$SjrS"SjrS%SjrS&Sjr\rS'SjrS(SjrS(Sjr\rS)Sjr\R@R>r!\R@RDr#Sr$U=r%$)*�NullTranslationsiuzdict[str, str]�_infozNullTranslations | None�	_fallbackNc
�>�0UlSUl[TU]
US9 [	[S[
USS5/55UlURUl	0Ul
g)z�Initialize a simple translations class which is not backed by a
real catalog. Behaves similar to gettext.NullTranslations but also
offers Babel's on *gettext methods (e.g. 'dgettext()').

:param fp: a file-like object (ignored in this class)
c��[US:g5$)N�)rb)�ns r!�<lambda>�+NullTranslations.__init__.<locals>.<lambda>�s��#�a�1�f�+r$��fpNr�)�_catalog�plural�superr"�list�filterr��files�DEFAULT_DOMAIN�domain�_domains)r r��	__class__s  �r!r"�NullTranslations.__init__}sV���;=��
�8M���
���B����&����F�D�(A�'B�C�D��
��)�)���57��
r$c�V�URRX5RU5$)zELike ``gettext()``, but look the message up in the specified
domain.
)r��get�gettext�r r��messages   r!�dgettext�NullTranslations.dgettext�s$���}�}� � ��.�6�6�w�?�?r$c��SSKnURS[SS9 URR	X5RU5$)zFLike ``lgettext()``, but look the message up in the specified
domain.
rNz1ldgettext() is deprecated, use dgettext() instead���
stacklevel)�warnings�warn�DeprecationWarningr�r�lgettext)r r�rr
s    r!�	ldgettext�NullTranslations.ldgettext�sC��	��
�
�?���	�	
�
�}�}� � ��.�7�7��@�@r$c�V�URRX5RU5$)zFLike ``ugettext()``, but look the message up in the specified
domain.
)r�r�ugettextrs   r!�	udgettext�NullTranslations.udgettext�s$���}�}� � ��.�7�7��@�@r$c�X�URRX5RX#U5$)zFLike ``ngettext()``, but look the message up in the specified
domain.
)r�r�ngettext�r r��singularr��nums     r!�	dngettext�NullTranslations.dngettext�s&���}�}� � ��.�7�7��#�N�Nr$c��SSKnURS[SS9 URR	X5RX#U5$)zGLike ``lngettext()``, but look the message up in the specified
domain.
rNz3ldngettext() is deprecated, use dngettext() insteadr
r)r
rrr�r�	lngettext)r r�rr�rr
s      r!�
ldngettext�NullTranslations.ldngettext�sE��	��
�
�A���	�	
�
�}�}� � ��.�8�8��3�O�Or$c�X�URRX5RX#U5$)zFLike ``ungettext()`` but look the message up in the specified
domain.
)r�r�	ungettextrs     r!�
udngettext�NullTranslations.udngettext�s&���}�}� � ��.�8�8��3�O�Or$z%s%sc�4�URX4-n[5nURRX45nXTLa,URRX0R	S54U5nXTLaU$UR
(aUR
R
X5$U$)aLook up the `context` and `message` id in the catalog and return the
corresponding message string, as an 8-bit string encoded with the
catalog's charset encoding, if known.  If there is no entry in the
catalog for the `message` id and `context` , and a fallback has been
set, the look up is forwarded to the fallback's ``pgettext()``
method. Otherwise, the `message` id is returned.
r�)�CONTEXT_ENCODINGrvr�rr�r��pgettext)r �contextr�ctxt_msg_id�missing�tmsgs      r!r(�NullTranslations.pgettext�s����+�+�w�.@�@���(���}�}� � ��6���?��=�=�$�$�k�;�;�q�>�%B�G�L�D����K��>�>��>�>�*�*�7�<�<��r$c��SSKnURS[SS9 URX5n[	USS5=(d [
R"5n[U[5(aURU5$U$)z�Equivalent to ``pgettext()``, but the translation is returned in the
preferred system encoding, if no other encoding was explicitly set with
``bind_textdomain_codeset()``.
rNz1lpgettext() is deprecated, use pgettext() insteadr
r�_output_charset)
r
rrr(r�r�getpreferredencoding�
isinstancerZ�encode)r r)rr
r,�encodings      r!�	lpgettext�NullTranslations.lpgettext�sn��
	��
�
�?���	�	
�
�}�}�W�.���4�!2�D�9�Z�V�=X�=X�=Z��(2�4��(=�(=�t�{�{�8�$�G�4�Gr$c��URX4-nURXPRU54nU$![a> UR(aURRXX45s$US:XaUs$Us$f=f)aDo a plural-forms lookup of a message id.  `singular` is used as the
message id for purposes of lookup in the catalog, while `num` is used to
determine which plural form to use.  The returned message string is an
8-bit string encoded with the catalog's charset encoding, if known.

If the message id for `context` is not found in the catalog, and a
fallback is specified, the request is forwarded to the fallback's
``npgettext()`` method.  Otherwise, when ``num`` is 1 ``singular`` is
returned, and ``plural`` is returned in all other cases.
r�)r'r�r��KeyErrorr��	npgettext)r r)rr�rr*r,s       r!r8�NullTranslations.npgettext�sy���+�+�w�.A�A��		��=�=�+�{�{�3�/?�!@�A�D��K���	��~�~��~�~�/�/��6�O�O��a�x����
�
	�s� 3�7A;�,A;�6A;�:A;c��SSKnURS[SS9 URX4-nURX`RU54n[
USS5=(d [R"5nURU5$![a> UR(aURRXX45s$US:XaUs$Us$f=f)z�Equivalent to ``npgettext()``, but the translation is returned in the
preferred system encoding, if no other encoding was explicitly set with
``bind_textdomain_codeset()``.
rNz3lnpgettext() is deprecated, use npgettext() insteadr
rr/r�)
r
rrr'r�r�r�rr0r2r7r��
lnpgettext)	r r)rr�rr
r*r,r3s	         r!r;�NullTranslations.lnpgettexts���
	��
�
�A���	�	
�
�+�+�w�.A�A��
	��=�=�+�{�{�3�/?�!@�A�D��t�%6��=�^��A\�A\�A^�H��;�;�x�(�(���	��~�~��~�~�0�0��F�P�P��a�x����
�
	�s�AB�7C�=C�C�Cc��URX4-n[5nURRX45nXTLa7UR(aURRX5$[
U5$[U[5(deU$)aKLook up the `context` and `message` id in the catalog and return the
corresponding message string, as a Unicode string.  If there is no entry
in the catalog for the `message` id and `context`, and a fallback has
been set, the look up is forwarded to the fallback's ``upgettext()``
method.  Otherwise, the `message` id is returned.
)r'rvr�rr��	upgettextrZr1)r r)r�ctxt_message_idr+r,s      r!r>�NullTranslations.upgettextsu���/�/�7�2D�D���(���}�}� � ��:���?��~�~��~�~�/�/��A�A��w�<���$��$�$�$�$��r$c��URX4-nURXPRU54nU$![aO UR(aURRXX45s$US:Xa[
U5O
[
U5nU$f=f)a�Do a plural-forms lookup of a message id.  `singular` is used as the
message id for purposes of lookup in the catalog, while `num` is used to
determine which plural form to use.  The returned message string is a
Unicode string.

If the message id for `context` is not found in the catalog, and a
fallback is specified, the request is forwarded to the fallback's
``unpgettext()`` method.  Otherwise, when `num` is 1 `singular` is
returned, and `plural` is returned in all other cases.
r�)r'r�r�r7r��
unpgettextrZ)r r)rr�rr?r,s       r!rB�NullTranslations.unpgettext+s����/�/�7�2E�E��	>��=�=�/�;�;�s�3C�!D�E�D�
���	�	>��~�~��~�~�0�0��F�P�P�$'�1�H�3�x�=�#�f�+�D���		>�s�3�7B�,B�Bc�V�URRX5RX#5$)zFLike `pgettext()`, but look the message up in the specified
`domain`.
)r�rr(�r r�r)rs    r!�	dpgettext�NullTranslations.dpgettext?s$���}�}� � ��.�7�7��I�Ir$c�V�URRX5RX#5$)zGLike `upgettext()`, but look the message up in the specified
`domain`.
)r�rr>rEs    r!�
udpgettext�NullTranslations.udpgettextEs$���}�}� � ��.�8�8��J�Jr$c�V�URRX5RX#5$)z�Equivalent to ``dpgettext()``, but the translation is returned in the
preferred system encoding, if no other encoding was explicitly set with
``bind_textdomain_codeset()``.
)r�rr4rEs    r!�
ldpgettext�NullTranslations.ldpgettextMs$��
�}�}� � ��.�8�8��J�Jr$c�X�URRX5RX#XE5$)zGLike ``npgettext``, but look the message up in the specified
`domain`.
)r�rr8�r r�r)rr�rs      r!�
dnpgettext�NullTranslations.dnpgettextTs-���}�}� � ��.�8�8��9?�F�	Fr$c�X�URRX5RX#XE5$)zHLike ``unpgettext``, but look the message up in the specified
`domain`.
)r�rrBrOs      r!�udnpgettext�NullTranslations.udnpgettext[s-���}�}� � ��.�9�9�'�:@�G�	Gr$c�X�URRX5RX#XE5$)z�Equivalent to ``dnpgettext()``, but the translation is returned in
the preferred system encoding, if no other encoding was explicitly set
with ``bind_textdomain_codeset()``.
)r�rr;rOs      r!�ldnpgettext�NullTranslations.ldnpgettextds-��
�}�}� � ��.�9�9�'�:@�G�	Gr$)r�r�r�r�r�rT)r��"gettext._TranslationsReader | NonerUrV)r�rZrrZrUrZ)
r�rZrrZr�rZrrbrUrZ)r)rZrrZrU�str | object)r)rZrrZrU�str | bytes | object)
r)rZrrZr�rZrrbrUrZ)
r)rZrrZr�rZrrbrU�str | bytes)r)rZrrZrUrZ)r�rZr)rZrrZrUrY)r�rZr)rZrrZrUrZ)r�rZr)rZrrZrUrZ)r�rZr)rZrrZr�rZrrbrUrZ)r�rZr)rZrrZr�rZrrbrUr[)&rcrdrerfrr�r�r"rrr�	dugettextrr r$�
dungettextr'r(r4r8r;r>rBrFrI�
dupgettextrLrPrS�dunpgettextrVrr�rrr#rh�
__classcell__�rs@r!r�r�us�������*�*��N�8�8�"@�
A�A��I�O�
P�P��J�"���&
H��.�0�"�(J�K��J�K�F�G��K�G��'�'�/�/�H��(�(�1�1�Ir$r�c��^�\rSrSrSrSrS
SU4Sjjjr\RRr	\RRr\SS
Sjj5r
SSjrSSSjjrSSjrS	rU=r$)�Translationsipz&An extended translation catalog class.�messagesc�T>�[TU]US9 U=(d URUlg)z�Initialize the translations catalog.

:param fp: the file-like object the translation should be read from
:param domain: the message domain (default: 'messages')
r�N)r�r"r�r�)r r�r�rs   �r!r"�Translations.__init__us'���	���B����3�� 3� 3��r$c���U(dURn[R"X1[U55nU(d
[	5$[US5nU"XSS9sSSS5 $!,(df   g=f)a@Load translations from the given directory.

:param dirname: the directory containing the ``MO`` files
:param locales: the list of locales in order of preference (items in
                this list can be either `Locale` objects or locale
                strings)
:param domain: the message domain (default: 'messages')
�rb)r�r�N)r�r�find�_locales_to_namesr��open)�cls�dirname�localesr��filenamer�s      r!�load�Translations.load�sT����'�'�F��<�<��1B�7�1K�L���#�%�%�
�(�D�
!�R��"�,�"�
!�
!�s�A!�!
A/c�p�URRS5nS[U5RSUS3$)Nzproject-id-version�<z: "z">)r�r�typerc)r �versions  r!�__repr__�Translations.__repr__�s5���*�*�.�.�!5�6���4��:�&�&�'�s�7�)�2�6�6r$c�T�[USUR5nU(a X0R:XaURU5$URRU5nU(a([
U[5(aURU5 U$URU5 XRU'U$)a�Add the given translations to the catalog.

If the domain of the translations is different than that of the
current catalog, they are added as a catalog that is only accessible
by the various ``d*gettext`` functions.

:param translations: the `Translations` instance with the messages to
                     add
:param merge: whether translations for message domains that have
              already been added should be merged with the existing
              translations
r�)	r�r�r��merger�rr1rc�add_fallback)r �translationsryr��existings     r!�add�Translations.add�s�����x��1D�1D�E���V�{�{�*��:�:�l�+�+��=�=�$�$�V�,���Z��,�7�7��N�N�<�(�
��
�%�%�d�+�$0�M�M�&�!��r$c��[U[R5(a_URR	UR5 [U[
5(a%URRUR5 U$)aMerge the given translations into the catalog.

Message translations in the specified catalog override any messages
with the same identifier in the existing catalog.

:param translations: the `Translations` instance with the messages to
                     merge
)r1r�GNUTranslationsr��updatercr��extend)r r{s  r!ry�Translations.merge�sY���l�G�$;�$;�<�<��M�M� � ��!6�!6�7��,��5�5��
�
�!�!�,�"4�"4�5��r$)r�)NN)r�rXr�r`)NNN)rmzstr | os.PathLike[str] | Nonern�,Iterable[str | Locale] | Locale | str | Noner�r`rUr�r�)T)r{rcryr^)r{rc)rcrdrerfrgr�r"rr�rrr#�classmethodrprvr}ryrhr`ras@r!rcrcps����0��N�4�4��&�&�.�.�H��'�'�0�0�I��26�@D�!�	-�.�-�>�-��	-�

�-��-�,7��4�r$rcc��Ucg[U[5(a[U5/$[U[5(aU/$UVs/sHn[U5PM sn$s snf)z�Normalize a `locales` argument to a list of locale names.

:param locales: the list of locales in order of preference (items in
                this list can be either `Locale` objects or locale
                strings)
N)r1r
rZ)rnrs  r!rjrj�sV������'�6�"�"��G��~���'�3����y��&-�.�g�F�C��K�g�.�.��.s�A)rnr�rUzlist[str] | None)'rg�
__future__rrr�os�collections.abcr�typingrrrrr	�
babel.corer
�babel.datesrrr
r�
babel.numbersrrrrrrr+�	_datetimer?rrrrkr�r�rcrjrir$r!�<module>r�s����#��
�	�$�B�B��S�S���� ��1�he�he�V`
�`
�Fx2�w�/�/�x2�vT�#�W�%<�%<�T�n/�
9�/��/r$

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 935 B 0644
core.cpython-313.pyc File 48.15 KB 0644
dates.cpython-313.pyc File 82.84 KB 0644
languages.cpython-313.pyc File 3.6 KB 0644
lists.cpython-313.pyc File 4.58 KB 0644
localedata.cpython-313.pyc File 12.67 KB 0644
numbers.cpython-313.pyc File 61.24 KB 0644
plural.cpython-313.pyc File 30.92 KB 0644
support.cpython-313.pyc File 33.94 KB 0644
units.cpython-313.pyc File 12.16 KB 0644
util.cpython-313.pyc File 11.6 KB 0644
Filemanager