403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/babel/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/babel/__pycache__/support.cpython-314.pyc
+
�90i�k��T�Rt^RIHt^RIt^RIt^RIt^RIHt^RIH	t	H
t
HtHtH
t
^RIHt^RIHtHtHtHt^RIHtHtHtHtHtHt]	'd^RIt^RIHt^R	IH t !R
R4t!!RR
4t"!RR]PF4t#!RR]#]PH4t%RRlt&R#)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���]tRt^'tRtRRR/RRllltRRRlltRR	R
lltRRRlltR R
Rllt	RRlt
RRRlltR!RRlltRRlt
R!RRlltRRRlltRRltRtR#)"�FormataWrapper 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�numbering_system�latnc�(�V^8�dQhRRRRRRRR/#)	��localezLocale | str�tzinfoz_datetime.tzinfo | NonerzLiteral['default'] | str�return�None�)�formats"�//usr/lib/python3/dist-packages/babel/support.py�__annotate__�Format.__annotate__4s2��1�1��1�(�1�
3�1�
�
1�c
�T�\P!V4VnW nW0nR#)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	�parserrr)�selfrrrs&&&$r"�__init__�Format.__init__4s���l�l�6�*����� 0�r%c�$�V^8�dQhRRRRRR/#)r�date�_datetime.date | Noner!�_PredefinedTimeFormat | strr�strr )r!s"r"r#r$Fs(��=�=�#�=�,�=�

�	=r%c
�0�\WVPR7#)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)r
r)r(r,r!s&&&r"r,�Format.dateFs���4����<�<r%c�$�V^8�dQhRRRRRR/#)r�datetimer-r!r.rr/r )r!s"r"r#r$Ts-��
Y�
Y�'�
Y�,�
Y�

�	
Yr%c
�F�\WVPVPR7#)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)rrr)r(r3r!s&&&r"r3�Format.datetimeTs���x����D�K�K�X�Xr%c�$�V^8�dQhRRRRRR/#)r�timez*_datetime.time | _datetime.datetime | Noner!r.rr/r )r!s"r"r#r$cs-��
Q�
Q�8�
Q�,�
Q�

�	
Qr%c
�F�\WVPVPR7#)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'
r5)rrr)r(r8r!s&&&r"r8�Format.timecs���4����D�K�K�P�Pr%c�0�V^8�dQhRRRRRRRRR	R
RR/#)
r�deltaz_datetime.timedelta | int�granularityzCLiteral['year', 'month', 'week', 'day', 'hour', 'minute', 'second']�	threshold�floatr!z,Literal['narrow', 'short', 'medium', 'long']�
add_direction�boolrr/r )r!s"r"r#r$rsG��4�4�(�4�Y�4��	4�
=�4��
4�

�4r%c	
�4�\WVWEVPR7#)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'
)r=r>r!r@r)r
r)r(r<r=r>r!r@s&&&&&&r"�	timedelta�Format.timedeltars �� ��*3�'-�'+�{�{�4�	4r%c� �V^8�dQhRRRR/#�r�number�float | Decimal | strrr/r )r!s"r"r#r$�s��b�b�2�b�s�br%c
�D�\WPVPR7#)zlReturn an integer number formatted for the locale.

>>> fmt = Format('en_US')
>>> fmt.number(1099)
u'1,099'
�rr�rrr�r(rGs&&r"rG�
Format.number�s���f�[�[�4�K`�K`�a�ar%c�$�V^8�dQhRRRRRR/#�rrGrHr!�
str | Nonerr/r )r!s"r"r#r$��(��j�j�3�j�Z�j�SV�jr%c
�F�\WVPVPR7#)znReturn a decimal number formatted for the locale.

>>> fmt = Format('en_US')
>>> fmt.decimal(1.2345)
u'1.234'
rJrK�r(rGr!s&&&r"�decimal�Format.decimal�����f�T�[�[�SW�Sh�Sh�i�ir%c�(�V^8�dQhRRRRRRRR/#)	rrGrH�format_typezLiteral['short', 'long']�fraction_digits�intrr/r )r!s"r"r#r$�s2��
�
�%�
�.�
��	
�


�
r%c
�J�\VVVVPVPR7#)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'
�rXrYrr)rrr)r(rGrXrYs&&&&r"�compact_decimal�Format.compact_decimal�s*��&��#�+��;�;�!�2�2�
�	
r%c�$�V^8�dQhRRRRRR/#)rrGrH�currencyr/rr )r!s"r"r#r$�s'��m�m�4�m��m��mr%c
�F�\WVPVPR7#)zHReturn a number in the given currency formatted for the locale.
        rJ)rrr)r(rGr`s&&&r"r`�Format.currency�s���v����VZ�Vk�Vk�l�lr%c
�,�V^8�dQhRRRRRRRRR	R/#)
rrGrHr`r/rXzLiteral['short']rYrZrr )r!s"r"r#r$�sC��c�c�%�c��c�&�	c�
�c�

�
cr%c	
�H�\WW4VPVPR7#)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'
r\)rrr)r(rGr`rXrYs&&&&&r"�compact_currency�Format.compact_currency�s&��'�v�[�.2�k�k�D�La�La�c�	cr%c�$�V^8�dQhRRRRRR/#rOr )r!s"r"r#r$�rQr%c
�F�\WVPVPR7#)zpReturn a number formatted as percentage for the locale.

>>> fmt = Format('en_US')
>>> fmt.percent(0.34)
u'34%'
rJ)rrrrSs&&&r"�percent�Format.percent�rVr%c� �V^8�dQhRRRR/#rFr )r!s"r"r#r$�s��e�e�!6�e�3�er%c
�D�\WPVPR7#)zLReturn a number formatted using scientific notation for the locale.
        rJ)rrrrLs&&r"�
scientific�Format.scientific�s��!����d�Nc�Nc�d�dr%)rrr�N)N�medium)�secondg333333�?�longF)�short�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r)r,r3r8rCrGrTr]r`rerirm�__static_attributes__r r%r"rr's`��
�1�
6<�1�1�$=�
Y�
Q�4�(b�j�
�,m�
c� j�e�er%rc��a�]tRt^�t0o$Rt.RLOt]'dR]R&R	]R&R
]R&R]R&R]R&R
]R&RR/RRllt]	RRl4t
RRltRRltRRlt
RRltRRltRRltR R!ltR"R#ltR$R%ltR&R'ltR(R)ltR*R+ltR,R-ltR.R/ltR0R1ltR2R3ltR4R5ltR6R7ltR8R9ltR:R;ltR<R=ltR>R?lt R@RAlt!RBRClt"RDRElt#RFRGlt$RHRIlt%RJt&RK#)M�	LazyProxyaClass 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]ztuple[Any, ...]zdict[str, Any]rArzAttributeError | None�enable_cacheTc
�,�V^8�dQhRRRRRRRRRR	/#)
r�funcr��argsrr�rA�kwargsrrr )r!s"r"r#�LazyProxy.__annotate__�s2��;�;�/�;��;�4�;�be�;�jn�;r%c	��\PVRV4\PVRV4\PVRV4\PVRV4\PVRR4\PVRR4R#)r}r~rr�r�Nr�)�object�__setattr__)r(r�r�r�r�s&&$*,r"r)�LazyProxy.__init__�sp�����4��$�/����4��$�/����4��F�3����4�!4�l�C����4��4�0����4�!3�T�:r%c��V^8�dQhRR/#)rrrr )r!s"r"r#r�	s����s�r%c	�0�VPfSVP!VP/VPBpTP'gT#\
P
TRT4VP# \dp\
P
TRT4hRp?ii;i)Nr�r�)r�r}r~r�AttributeErrorr�r�r�)r(�value�errors&  r"r��LazyProxy.values����;�;��
��
�
�D�J�J�?�$�,�,�?��
�)�)�)������t�X�u�5��{�{���"�
��"�"�4�);�U�C���
�s�&A-�-B�8B�Bc� �V^8�dQhRRRR/#)r�keyr�rrAr )r!s"r"r#r�s��!�!��!�4�!r%c	��WP9#ro�r��r(r�s&&r"�__contains__�LazyProxy.__contains__s���j�j� � r%c��V^8�dQhRR/#)rrrAr )r!s"r"r#r�s�� � �$� r%c	�,�\VP4#ro)rAr��r(s&r"�__bool__�LazyProxy.__bool__����D�J�J��r%c��V^8�dQhRR/#)rrz	list[str]r )r!s"r"r#r�s�����r%c	�,�\VP4#ro)�dirr�r�s&r"�__dir__�LazyProxy.__dir__����4�:�:��r%c��V^8�dQhRR/#)rrz
Iterator[Any]r )r!s"r"r#r�s�� � �-� r%c	�,�\VP4#ro)�iterr�r�s&r"�__iter__�LazyProxy.__iter__r�r%c��V^8�dQhRR/#)rrrZr )r!s"r"r#r�"������r%c	�,�\VP4#ro)�lenr�r�s&r"�__len__�LazyProxy.__len__"r�r%c��V^8�dQhRR/#�rrr/r )r!s"r"r#r�%r�r%c	�,�\VP4#ro)r/r�r�s&r"�__str__�LazyProxy.__str__%r�r%c� �V^8�dQhRRRR/#�r�otherr�rrr )r!s"r"r#r�(���"�"�V�"��"r%c	�(�VPV,#ror��r(r�s&&r"�__add__�LazyProxy.__add__(����z�z�E�!�!r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�+���"�"�f�"��"r%c	�&�WP,#ror�r�s&&r"�__radd__�LazyProxy.__radd__+����z�z�!�!r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�.r�r%c	�(�VPV,#ror�r�s&&r"�__mod__�LazyProxy.__mod__.r�r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�1r�r%c	�&�WP,#ror�r�s&&r"�__rmod__�LazyProxy.__rmod__1r�r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�4r�r%c	�(�VPV,#ror�r�s&&r"�__mul__�LazyProxy.__mul__4r�r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�7r�r%c	�&�WP,#ror�r�s&&r"�__rmul__�LazyProxy.__rmul__7r�r%c�$�V^8�dQhRRRRRR/#)rr�rr�rr )r!s"r"r#r�:s!��+�+�c�+�S�+�S�+r%c	�&�VP!V/VB#ror�)r(r�r�s&*,r"�__call__�LazyProxy.__call__:s���z�z�4�*�6�*�*r%c� �V^8�dQhRRRR/#�rr�r�rrAr )r!s"r"r#r�=���"�"�F�"�t�"r%c	� �VPV8#ror�r�s&&r"�__lt__�LazyProxy.__lt__=����z�z�E�!�!r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�@���#�#�F�#�t�#r%c	� �VPV8*#ror�r�s&&r"�__le__�LazyProxy.__le__@����z�z�U�"�"r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�Cr�r%c	� �VPV8H#ror�r�s&&r"�__eq__�LazyProxy.__eq__Cr�r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�Fr�r%c	� �VPV8g#ror�r�s&&r"�__ne__�LazyProxy.__ne__Fr�r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�Ir�r%c	� �VPV8�#ror�r�s&&r"�__gt__�LazyProxy.__gt__Ir�r%c� �V^8�dQhRRRR/#r�r )r!s"r"r#r�Lr�r%c	� �VPV8�#ror�r�s&&r"�__ge__�LazyProxy.__ge__Lr�r%c� �V^8�dQhRRRR/#)r�namer/rrr )r!s"r"r#r�Os��"�"��"��"r%c	�2�\VPV4R#ro)�delattrr��r(r�s&&r"�__delattr__�LazyProxy.__delattr__Os����
�
�D�!r%c� �V^8�dQhRRRR/#)rr�r/rrr )r!s"r"r#r�Rs��)�)��)��)r%c	�b�VPe
VPh\VPV4#ro)r��getattrr�r�s&&r"�__getattr__�LazyProxy.__getattr__Rs+��� � �,��'�'�'��t�z�z�4�(�(r%c�$�V^8�dQhRRRRRR/#)rr�r/r�rrrr )r!s"r"r#r�Ws!��)�)��)�C�)�D�)r%c	�2�\VPW4R#ro)�setattrr�)r(r�r�s&&&r"r��LazyProxy.__setattr__Ws����
�
�D�(r%c� �V^8�dQhRRRR/#)rr�rrrr )r!s"r"r#r�Zs����s��t�r%c	� �VPVR#ror�r�s&&r"�__delitem__�LazyProxy.__delitem__Zs
���J�J�s�Or%c� �V^8�dQhRRRR/#)rr�rrr )r!s"r"r#r�]s����s��s�r%c	�(�VPV,#ror�r�s&&r"�__getitem__�LazyProxy.__getitem__]s���z�z�#��r%c�$�V^8�dQhRRRRRR/#)rr�rr�rrr )r!s"r"r#r�`s!�� � �s� �3� �4� r%c	�"�W PV&R#ror�)r(r�r�s&&&r"�__setitem__�LazyProxy.__setitem__`s
���
�
�3�r%c��V^8�dQhRR/#)rrr|r )r!s"r"r#r�cs��
�
�)�
r%c	�t�\VP.VPO5RVP/VPB#)r�)r|r}r~r�rr�s&r"�__copy__�LazyProxy.__copy__cs@����J�J�
��Z�Z�
��/�/�
��l�l�	
�	
r%c� �V^8�dQhRRRR/#)r�memorrr|r )r!s"r"r#r�ks��
�
��
��
r%c	��^RIHp\V!VPV4.V!VPV4O5RV!VP
V4/V!VPV4B#)rt)�deepcopyr�)�copyrr|r}r~r�r)r(rrs&& r"�__deepcopy__�LazyProxy.__deepcopy__ks_��!���T�Z�Z��&�
��d�j�j�$�
'�
�!�$�"8�"8�$�?�
��t�|�|�T�*�	
�	
r%r N)r}r~rr�r�r�)'rurvrwrxry�	__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�rr�r	r
rrrrz)�__conditional_annotations__s@r"r|r|�s�����!�Da�I��!�!���������/�/�;�RV�;�����!� �� ���"�"�"�"�"�"�+�"�#�#�#�"�#�"�)�
)��� �
�
�
r%r|c�aa�]tRtRt0o$]'dR]R&R]R&RtR/RV3RllltR	R
ltRRlt	R
Rlt
]
tRRltRRlt
RRlt]tRtRRltRRltRRltRRltRRltR R!ltR"R#ltR$R%lt]tR&R'ltR(R)ltR*R+lt]tR,R-lt]P@P>t!]P@PDt#R.t$V;t%#)0�NullTranslationsiuzdict[str, str]�_infozNullTranslations | None�	_fallbackNc� �V^8�dQhRRRR/#)r�fp�"gettext._TranslationsReader | Nonerrr )r!s"r"r#�NullTranslations.__annotate__}s��8�8�=�8��8r%c

��<�/VnRVn\SV`
VR7\	\R\
VRR4.44VnVPVn	/Vn
R#)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��\V^8g4#)�)rZ)�ns&r"�<lambda>�+NullTranslations.__init__.<locals>.<lambda>�s��#�a�1�f�+r%�r'Nr�)�_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^8�dQhRRRRRR/#�rr8r/�messagerr )r!s"r"r#r)�s&��@�@�s�@�S�@�S�@r%c
�V�VPPW4PV4#)zELike ``gettext()``, but look the message up in the specified
domain.
)r9�get�gettext�r(r8r>s&&&r"�dgettext�NullTranslations.dgettext�s$���}�}� � ��.�6�6�w�?�?r%c�$�V^8�dQhRRRRRR/#r=r )r!s"r"r#r)�s&��
A�
A��
A�c�
A�c�
Ar%c
��^RIpVPR\^R7VPP	W4PV4#)zFLike ``lgettext()``, but look the message up in the specified
domain.
Nz1ldgettext() is deprecated, use dgettext() instead��
stacklevel)�warnings�warn�DeprecationWarningr9r@�lgettext)r(r8r>rIs&&& r"�	ldgettext�NullTranslations.ldgettext�sC��	��
�
�?���	�	
�
�}�}� � ��.�7�7��@�@r%c�$�V^8�dQhRRRRRR/#r=r )r!s"r"r#r)�s&��A�A��A�c�A�c�Ar%c
�V�VPPW4PV4#)zFLike ``ugettext()``, but look the message up in the specified
domain.
)r9r@�ugettextrBs&&&r"�	udgettext�NullTranslations.udgettext�s$���}�}� � ��.�7�7��@�@r%c
�,�V^8�dQhRRRRRRRRRR/#�rr8r/�singularr2�numrZrr )r!s"r"r#r)�s6��O�O��O�s�O�C�O�c�O�c�Or%c
�X�VPPW4PW#V4#)zFLike ``ngettext()``, but look the message up in the specified
domain.
)r9r@�ngettext�r(r8rVr2rWs&&&&&r"�	dngettext�NullTranslations.dngettext�s&���}�}� � ��.�7�7��#�N�Nr%c
�,�V^8�dQhRRRRRRRRRR/#rUr )r!s"r"r#r)�s6��
P�
P��
P��
P�S�
P�s�
P�s�
Pr%c
��^RIpVPR\^R7VPP	W4PW#V4#)zGLike ``lngettext()``, but look the message up in the specified
domain.
Nz3ldngettext() is deprecated, use dngettext() insteadrG)rIrJrKr9r@�	lngettext)r(r8rVr2rWrIs&&&&& r"�
ldngettext�NullTranslations.ldngettext�sE��	��
�
�A���	�	
�
�}�}� � ��.�8�8��3�O�Or%c
�,�V^8�dQhRRRRRRRRRR/#rUr )r!s"r"r#r)�s6��P�P��P��P�S�P�s�P�s�Pr%c
�X�VPPW4PW#V4#)zFLike ``ungettext()`` but look the message up in the specified
domain.
)r9r@�	ungettextrZs&&&&&r"�
udngettext�NullTranslations.udngettext�s&���}�}� � ��.�8�8��3�O�Or%z%s%sc�$�V^8�dQhRRRRRR/#)r�contextr/r>r�str | objectr )r!s"r"r#r)�s!������c��l�r%c
�B�VPW3,p\4pVPPW44pWTJd-VPPW0P	^43V4pWTJdV#VP
'dVP
P
W4#V#)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.
)�CONTEXT_ENCODINGr�r1r@r2r%�pgettext)r(rhr>�ctxt_msg_id�missing�tmsgs&&&   r"rl�NullTranslations.pgettext�s����+�+�w�.@�@���(���}�}� � ��6���?��=�=�$�$�k�;�;�q�>�%B�G�L�D����K��>�>�>��>�>�*�*�7�<�<��r%c�$�V^8�dQhRRRRRR/#)rrhr/r>r�str | bytes | objectr )r!s"r"r#r)�s'��
H�
H��
H�s�
H�7K�
Hr%c
��^RIpVPR\^R7VPW4p\	VRR4;'g\
P!4p\V\4'dVPV4#T#)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()``.
Nz1lpgettext() is deprecated, use pgettext() insteadrG�_output_charset)
rIrJrKrlrr�getpreferredencoding�
isinstancer/�encode)r(rhr>rIro�encodings&&&   r"�	lpgettext�NullTranslations.lpgettext�sq��
	��
�
�?���	�	
�
�}�}�W�.���4�!2�D�9�Z�Z�V�=X�=X�=Z��(2�4��(=�(=�t�{�{�8�$�G�4�Gr%c
�,�V^8�dQhRRRRRRRRRR/#�rrhr/rVr2rWrZrr )r!s"r"r#r)�s/��������S��s��s�r%c
��VPW3,pVPWPPV43,pV# \dATP'dTPPYY44u#T^8XdTu#Tu#i;i)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.
)rkr1r2�KeyErrorr%�	npgettext)r(rhrVr2rWrmros&&&&&  r"r�NullTranslations.npgettext�s{���+�+�w�.A�A��		��=�=�+�{�{�3�/?�!@�A�D��K���	��~�~�~��~�~�/�/��6�O�O��a�x����
�
	�s!�$;�B�B�6	B�B�Bc
�,�V^8�dQhRRRRRRRRRR/#)	rrhr/rVr2rWrZr�str | bytesr )r!s"r"r#r)s0����#����c����P[�r%c
��^RIpVPR\^R7VPW3,pVPW`PV43,p\
VRR4;'g\P!4pVPV4# \dATP'dTPPYY44u#T^8XdTu#Tu#i;i)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()``.
Nz3lnpgettext() is deprecated, use npgettext() insteadrGrt)
rIrJrKrkr1r2rrrurwr~r%�
lnpgettext)	r(rhrVr2rWrIrmrorxs	&&&&&    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�C�-C�	C�C�Cc�$�V^8�dQhRRRRRR/#)rrhr/r>rr )r!s"r"r#r)s!������s��s�r%c
�"�VPW3,p\4pVPPW44pWTJd9VP'dVPPW4#\
V4#\V\4'gQhV#)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.
)rkr�r1r@r%�	upgettextr/rv)r(rhr>�ctxt_message_idrnros&&&   r"r��NullTranslations.upgettextsw���/�/�7�2D�D���(���}�}� � ��:���?��~�~�~��~�~�/�/��A�A��w�<���$��$�$�$�$��r%c
�,�V^8�dQhRRRRRRRRRR/#r|r )r!s"r"r#r)+s0����#����c����PS�r%c
�4�VPW3,pVPWPPV43,pV# \dRTP'dTPPYY44u#T^8Xd\
T4M
\
T4pT#i;i)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.
)rkr1r2r~r%�
unpgettextr/)r(rhrVr2rWr�ros&&&&&  r"r��NullTranslations.unpgettext+s����/�/�7�2E�E��	>��=�=�/�;�;�s�3C�!D�E�D�
���	�	>��~�~�~��~�~�0�0��F�P�P�$'�1�H�3�x�=�#�f�+�D���		>�s�#;�B�B�6B�Bc�(�V^8�dQhRRRRRRRR/#)rr8r/rhr>rrir )r!s"r"r#r)?s.��J�J��J�c�J�C�J�L�Jr%c
�V�VPPW4PW#4#)zFLike `pgettext()`, but look the message up in the specified
`domain`.
)r9r@rl�r(r8rhr>s&&&&r"�	dpgettext�NullTranslations.dpgettext?s$���}�}� � ��.�7�7��I�Ir%c�(�V^8�dQhRRRRRRRR/#)rr8r/rhr>rr )r!s"r"r#r)Es.��K�K��K�s�K�S�K�S�Kr%c
�V�VPPW4PW#4#)zGLike `upgettext()`, but look the message up in the specified
`domain`.
)r9r@r�r�s&&&&r"�
udpgettext�NullTranslations.udpgettextEs$���}�}� � ��.�8�8��J�Jr%c�(�V^8�dQhRRRRRRRR/#)rr8r/rhr>rrrr )r!s"r"r#r)Ms/��K�K��K�s�K�S�K�EY�Kr%c
�V�VPPW4PW#4#)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()``.
)r9r@ryr�s&&&&r"�
ldpgettext�NullTranslations.ldpgettextMs$��
�}�}� � ��.�8�8��J�Jr%c�0�V^8�dQhRRRRRRRRRRRR/#�	rr8r/rhrVr2rWrZrr )r!s"r"r#r)Ts@��F�F��F�s�F�c�F�3�F�UX�F�]`�Fr%c
�X�VPPW4PW#WE4#)zGLike ``npgettext``, but look the message up in the specified
`domain`.
)r9r@r�r(r8rhrVr2rWs&&&&&&r"�
dnpgettext�NullTranslations.dnpgettextTs-���}�}� � ��.�8�8��9?�F�	Fr%c�0�V^8�dQhRRRRRRRRRRRR/#r�r )r!s"r"r#r)[s@��G�G�#�G��G�s�G�C�G�VY�G�^a�Gr%c
�X�VPPW4PW#WE4#)zHLike ``unpgettext``, but look the message up in the specified
`domain`.
)r9r@r�r�s&&&&&&r"�udnpgettext�NullTranslations.udnpgettext[s-���}�}� � ��.�9�9�'�:@�G�	Gr%c�0�V^8�dQhRRRRRRRRRRRR	/#)
rr8r/rhrVr2rWrZrr�r )r!s"r"r#r)ds@��G�G�#�G��G�s�G�C�G�VY�G�^i�Gr%c
�X�VPPW4PW#WE4#)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()``.
)r9r@r�r�s&&&&&&r"�ldnpgettext�NullTranslations.ldnpgettextds-��
�}�}� � ��.�9�9�'�:@�G�	Gr%)r1r9r8r6r2ro)&rurvrwrxrrr7r)rCrMrR�	dugettextr[r`re�
dungettextrkrlryrr�r�r�r�r��
dupgettextr�r�r��dunpgettextr�rAr#rQrYrdrz�
__classcell__)r:r!s@@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��a�]tRtRtRtRtRRV3Rlllt]PPt	]PPt]RRRll4t
RR	ltRR
RlltRR
ltRtV;t#)�Translationsipz&An extended translation catalog class.�messagesc� �V^8�dQhRRRR/#)rr'r(r8rPr )r!s"r"r#�Translations.__annotate__us��4�4�=�4�j�4r%c
�^<�\SV`VR7T;'g
VPVnR#)z�Initialize the translations catalog.

:param fp: the file-like object the translation should be read from
:param domain: the message domain (default: 'messages')
r0N)r3r)r7r8)r(r'r8r:s&&&�r"r)�Translations.__init__us*���	���B����3�3�� 3� 3��r%c�(�V^8�dQhRRRRRRRR/#)	r�dirnamezstr | os.PathLike[str] | None�locales�,Iterable[str | Locale] | Locale | str | Noner8rPrr#r )r!s"r"r#r��s2��-�-�.�-�>�-��	-�

�-r%c
��V'g
VPp\P!W1\V44pV'g\	4#\VR4;_uu_4pV!WSR7uuRRR4# +'giR#;i)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'r8N)r7rA�find�_locales_to_namesr#�open)�clsr�r�r8�filenamer's&&&&  r"�load�Translations.load�sZ����'�'�F��<�<��1B�7�1K�L���#�%�%�
�(�D�
!�
!�R��"�,�"�
!�
!�
!�s�	A/�/B	c��V^8�dQhRR/#r�r )r!s"r"r#r��s��7�7�#�7r%c	�p�VPPR4pR\V4PRVR2#)zproject-id-version�<z: "z">)r$r@�typeru)r(�versions& r"�__repr__�Translations.__repr__�s5���*�*�.�.�!5�6���4��:�&�&�'�s�7�)�2�6�6r%c� �V^8�dQhRRRR/#)r�translationsr��mergerAr )r!s"r"r#r��s������T�r%c
�\�\VRVP4pV'd"W0P8XdVPV4#VPPV4pV'd*\
V\4'dVPV4V#VPV4WPV&V#)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
r8)	rr7r8r�r9r@rvr��add_fallback)r(r�r�r8�existings&&&  r"�add�Translations.add�s�����x��1D�1D�E���V�{�{�*��:�:�l�+�+��=�=�$�$�V�,���Z��,�7�7��N�N�<�(�
��
�%�%�d�+�$0�M�M�&�!��r%c��V^8�dQhRR/#)rr�r�r )r!s"r"r#r��s����,�r%c
��\V\P4'daVPP	VP4\V\
4'd&VPPVP4V#)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
)rvrA�GNUTranslationsr1�updater�r6�extend)r(r�s&&r"r��Translations.merge�sY���l�G�$;�$;�<�<��M�M� � ��!6�!6�7��,��5�5��
�
�!�!�,�"4�"4�5��r%)r8)NN)NNN)T)rurvrwrxryr7r)rAr�rQrYrd�classmethodr�r�r�r�rzr�)r:s@r"r�r�ps_���0��N�4�4��&�&�.�.�H��'�'�0�0�I��-��-�,7��4�r%r�c� �V^8�dQhRRRR/#)rr�r�rzlist[str] | Noner )r!s"r"r#r#�s��/�/�
9�/��/r%c���VfR#\V\4'd
\V4.#\V\4'dV.#VUu.uFp\V4NK	up#uupi)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)rvr	r/)r�rs& r"r�r��sV������'�6�"�"��G��~���'�3����y��&-�.�g�F�C��K�g�.�.��.s�A)'ry�
__future__rrAr�os�collections.abcr�typingrrrrr�
babel.corer	�babel.datesr
rrr
�
babel.numbersrrrrrrr3�	_datetimerTrrrr|r#r�r�r�r r%r"�<module>r�s����#��
�	�$�B�B��S�S���� ��1�he�he�V`
�`
�Fx2�w�/�/�x2�vT�#�W�%<�%<�T�n/r%

Youez - 2016 - github.com/yon3zu
LinuXploit