AlkantarClanX12

Your IP : 3.133.128.227


Current Path : /opt/imunify360/venv/lib64/python3.11/site-packages/jinja2/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/jinja2/__pycache__/ext.cpython-311.pyc

�

l��fIg����dZddlZddlZddlmZddlmZddlmZddl	m
Z
ddl	mZdd	l	mZdd
l
mZddl
mZddl
mZdd
l
mZddl
mZddl
mZddl
mZddl
mZddl
mZddl
mZddl
mZddl
mZddlmZddlmZddlmZddlmZddl m!Z!ddl"m#Z#ddl"m$Z$dZ%ej&d��Z'Gd�d e(��Z)Gd!�d"ee)e*����Z+e#d#���Z,d$�Z-d%�Z.Gd&�d'e+��Z/Gd(�d)e+��Z0Gd*�d+e+��Z1Gd,�d-e+��Z2Gd.�d/e+��Z3Gd0�d1e+��Z4e%d2fd3�Z5Gd4�d5e*��Z6d6�Z7e/Z8e0Z9e1Z:e2Z;e3Z<e4Z=dS)7z2Extension API for adding custom tags and behavior.�N)�version_info)�Markup�)�nodes)�	iteritems)�string_types)�with_metaclass)�BLOCK_END_STRING)�BLOCK_START_STRING)�COMMENT_END_STRING)�COMMENT_START_STRING)�KEEP_TRAILING_NEWLINE)�LINE_COMMENT_PREFIX)�LINE_STATEMENT_PREFIX)�
LSTRIP_BLOCKS)�NEWLINE_SEQUENCE)�TRIM_BLOCKS)�VARIABLE_END_STRING)�VARIABLE_START_STRING)�Environment)�TemplateAssertionError)�TemplateSyntaxError)�ContextReference)�concat��contextfunction)�
import_string)�_�gettext�ngettextz\s*\n\s*c��eZdZdZd�ZdS)�ExtensionRegistryz)Gives the extension an unique identifier.c�n�t�||||��}|jdz|jz|_|S)N�.)�type�__new__�
__module__�__name__�
identifier)�mcs�name�bases�d�rvs     �j/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/ext.pyr&zExtensionRegistry.__new__,s3��
�\�\�#�t�U�A�
.�
.���
��+�b�k�9��
��	�N)r(r'�__qualname__�__doc__r&�r0r/r"r")s)������3�3�����r0r"c�\�eZdZdZe��ZdZd�Zd�Zdd�Z	d�Z
d�Zdd	�Z	dd
�Z
dS)
�	ExtensionagExtensions can be used to add extra functionality to the Jinja template
    system at the parser level.  Custom extensions are bound to an environment
    but may not store environment specific data on `self`.  The reason for
    this is that an extension can be bound to another environment (for
    overlays) by creating a copy and reassigning the `environment` attribute.

    As extensions are created by the environment they cannot accept any
    arguments for configuration.  One may want to work around that by using
    a factory function, but that is not possible as extensions are identified
    by their import name.  The correct way to configure the extension is
    storing the configuration values on the environment.  Because this way the
    environment ends up acting as central configuration storage the
    attributes may clash which is why extensions have to ensure that the names
    they choose for configuration are not too generic.  ``prefix`` for example
    is a terrible name, ``fragment_cache_prefix`` on the other hand is a good
    name as includes the name of the extension (fragment cache).
    �dc��||_dS�N)�environment��selfr9s  r/�__init__zExtension.__init__Os��&����r0c��t�|j��}|j�|j��||_|S)z=Create a copy of this extension bound to another environment.)�objectr&�	__class__�__dict__�updater9)r;r9r.s   r/�bindzExtension.bindRs9��
�^�^�D�N�
+�
+��
����4�=�)�)�)�$����	r0Nc��|S)z�This method is called before the actual lexing and can be used to
        preprocess the source.  The `filename` is optional.  The return value
        must be the preprocessed source.
        r3)r;�sourcer+�filenames    r/�
preprocesszExtension.preprocessYs	��
�
r0c��|S)aIt's passed a :class:`~jinja2.lexer.TokenStream` that can be used
        to filter tokens returned.  This method has to return an iterable of
        :class:`~jinja2.lexer.Token`\s, but it doesn't have to return a
        :class:`~jinja2.lexer.TokenStream`.
        r3)r;�streams  r/�
filter_streamzExtension.filter_stream`s	���
r0c��t���)aIf any of the :attr:`tags` matched this method is called with the
        parser as first argument.  The token the parser stream is pointing at
        is the name token that matched.  This method has to return one or a
        list of multiple nodes.
        )�NotImplementedError)r;�parsers  r/�parsezExtension.parsehs��"�#�#�#r0c�:�tj|j||���S)z�Return an attribute node for the current extension.  This is useful
        to pass constants on extensions to generated template code.

        ::

            self.attr('_my_attribute', lineno=lineno)
        ��lineno)r�ExtensionAttributer))r;r+rPs   r/�attrzExtension.attrps���'����f�M�M�M�Mr0c�p�|�g}|�g}tj|�||���|||||���S)zsCall a method of the extension.  This is a shortcut for
        :meth:`attr` + :class:`jinja2.nodes.Call`.
        NrO)r�CallrR)r;r+�args�kwargs�dyn_args�
dyn_kwargsrPs       r/�call_methodzExtension.call_methodzsS���<��D��>��F��z��I�I�d�6�I�*�*������

�
�
�	
r0r8)NNNNN)r(r'r1r2�set�tags�priorityr<rBrFrIrMrRrYr3r0r/r5r52s���������&�3�5�5�D��H�'�'�'�����������$�$�$�N�N�N�N�TX�
�
�
�
�
�
r0r5c�J�|j|�d��g|�Ri|��S)Nr)�call�resolve)�	__contextrUrVs   r/�_gettext_aliasra�s2���9�>�)�+�+�I�6�6�H��H�H�H��H�H�Hr0c�,��t�fd���}|S)Nc�p��|��|��}|jjrt|��}||zSr8)r^�eval_ctx�
autoescaper)r`�__string�	variablesr.�funcs    �r/rz"_make_new_gettext.<locals>.gettext�s;���
�^�^�D�(�
+�
+����(�	�����B��I�~�r0r)rhrs` r/�_make_new_gettextri�s-���������_���Nr0c�,��t�fd���}|S)Nc���|�d|��|��|||��}|jjrt	|��}||zS)N�num)�
setdefaultr^rdrer)r`�
__singular�__plural�__numrgr.rhs      �r/r z$_make_new_ngettext.<locals>.ngettext�sS������U�E�*�*�*�
�^�^�D�*�h��
>�
>����(�	�����B��I�~�r0r)rhr s` r/�_make_new_ngettextrq�s-���������_���Or0c�b�eZdZdZdhZd�Zdd�Zdd�Zdd�Zd�Z	e
fd	�Zd
�Ze
fd�Zd�Zd
�ZdS)�InternationalizationExtensionz-This extension adds gettext support to Jinja.�transc���t�||��t|jd<|�|j|j|j|j|j	d���dS)NrF)�install_gettext_translations�install_null_translations�install_gettext_callables�uninstall_gettext_translations�extract_translations�newstyle_gettext)
r5r<ra�globals�extend�_install�
_install_null�_install_callables�
_uninstall�_extractr:s  r/r<z&InternationalizationExtension.__init__�sj�����4��-�-�-�#1���C� ����)-��&*�&8�&*�&=�+/�?�!%��"�
	�	
�	
�	
�	
�	
r0Nc��t|dd��}|�|j}t|dd��}|�|j}|�|||��dS)N�ugettext�	ungettext)�getattrrr r�)r;�translations�newstylerr s     r/r~z&InternationalizationExtension._install�s]���,�
�D�9�9���?�"�*�G��<��d�;�;����#�,�H������8�<�<�<�<�<r0c�8�|�d�d�|��dS)Nc��|Sr8r3)�xs r/�<lambda>z=InternationalizationExtension._install_null.<locals>.<lambda>�s��a�r0c�&�|dkr|fp|fdS)Nrrr3)�s�p�ns   r/r�z=InternationalizationExtension._install_null.<locals>.<lambda>�s��!�q�&�/�a�T�*A�a�T�1�)E�r0)r�)r;r�s  r/rz+InternationalizationExtension._install_null�s1������K�E�E�x�	
�	
�	
�	
�	
r0c��|�||j_|jjrt|��}t|��}|jj�||���dS�N)rr )r9r{rirqr|rA)r;rr r�s    r/r�z0InternationalizationExtension._install_callables�s`����08�D��-���,�	4�'��0�0�G�)�(�3�3�H��� �'�'��(�'�K�K�K�K�Kr0c�P�dD]"}|jj�|d���#dSr�)r9r|�pop)r;r��keys   r/r�z(InternationalizationExtension._uninstall�s:��(�	4�	4�C���$�(�(��d�3�3�3�3�	4�	4r0c��t|t��r|j�|��}t	||��Sr8)�
isinstancerr9rM�extract_from_ast)r;rD�gettext_functionss   r/r�z&InternationalizationExtension._extract�s;���f�l�+�+�	4��%�+�+�F�3�3�F���(9�:�:�:r0c	�h�t|j��j}d}d}d}i}d}|jjjdk�r�|r|j�d��|j�d��r�nW|j�d��}|j|vr*|�d|jz|jt���|jjjd	kr3t|j��|�
��x||j<}	n;|�|jd
vr|jdk}��tj|jd��x||j<}	|�ot|	tj��rHtjd
d��}|||j<tjtjd
d��|	��}n|	}|jdk}|jjjdk���|j�d��d}
d}t!��}|�|d��\}
}|
r>|�|
��|�'tj|
dd��}|
ddk}|jj�d��r�d}t|j��|jjjdkre|j�d��}|j|vr*|�d|jz|jt���||j}|jdk}|j�d��|�|d��\}}
t|j��|�|��nt|j��|D]}	|	|vrtj|	d��||	<�|sd}n|�|�d|��|�|jjd}|r,|�|��}|
r|�|
��}
|�||
||t1|��|o|��}|�|��|�||gS|S)zParse a translatable tag.FN�	block_end�comma�colonr+z'translatable variable %r defined twice.)�exc�assign)�trimmed�	notrimmedr��load�_trans�storerlTr�name:pluralizez%unknown variable %r for pluralizationzpluralize without variables�ext.i18n.trimmed)�nextrHrP�currentr%�expect�skip_if�value�failr�parse_expressionr�Namer�rT�AssignrZ�_parse_blockrA�testr9�policies�_trim_whitespace�
_make_node�bool�
set_lineno)r;rLrP�num_called_num�plural_expr�plural_expr_assignmentrgr�r+�var�plural�have_plural�
referenced�singular_names�singular�plural_names�nodes                 r/rMz#InternationalizationExtension.parse�s����f�m�$�$�+����
��!%���	����m�#�(�K�7�7��
.��
�$�$�W�-�-�-��}�$�$�W�-�-�
���=�'�'��/�/�D��z�Y�&�&����=��
�J��K�.������}�$�)�X�5�5��V�]�#�#�#�.4�.E�.E�.G�.G�G�	�$�*�%�����T�Z�3K�%K�%K��*�	�1���.3�j���V�.L�.L�L�	�$�*�%���"��c�5�:�.�.�&�"'�*�X�v�">�">�K�,7�I�d�j�)�-2�\��
�8�W�5�5�s�.�.�*�*�#&�K�!%��u�!4��G�m�#�(�K�7�7�J	�
���[�)�)�)������U�U�
�$(�#4�#4�V�T�#B�#B� ����	<����n�-�-�-��"�#�j���):�F�C�C��!/��!2�e�!;���=� �%�%�&6�7�7�	 ��K��������}�$�)�[�8�8��}�+�+�F�3�3���:�Y�.�.��K�K�?�$�*�L���2� ����
(��
�3��!%��u�!4���M� � ��-�-�-�#'�#4�#4�V�U�#C�#C� �L�&����������l�+�+�+�+��������	9�	9�C��)�#�#�!&��C��!8�!8�	�#����	?��K�K�
�
 ��K�K�5�v�>�>�>��?��&�/�0B�C�G��	7��,�,�X�6�6�H��
7��.�.�v�6�6��������������*�{�

�
��	
�������!�-�*�D�1�1��Kr0c�R�|�d|�����S)N� )�sub�strip)r;�string�_ws_res   r/r�z.InternationalizationExtension._trim_whitespaceXs���z�z�#�v�|�|�~�~�.�.�.r0c��g}g}	|jjjdkrN|�|jjj�dd����t
|j���nW|jjjdkr{t
|j��|j�d��j}|�|��|�d|z��|j�d��n�|jjjd	kr�t
|j��|jj�d
��rn�|jj�d��r|rn^|�	d��|�	d
��n1|jj
r|�	d��ntd������|t|��fS)z1Parse until the next block tag with a given name.r�data�%�%%�variable_beginr+z%%(%s)s�variable_end�block_beginz
name:endtransr�z:a translatable section can have only one pluralize sectionz;control structures in translatable sections are not allowedzunclosed translation blockzinternal parser error)
rHr�r%�appendr��replacer�r�r�r��eos�RuntimeErrorr)r;rL�allow_pluralizer��bufr+s      r/r�z*InternationalizationExtension._parse_block[s����
���	<��}�$�)�V�3�3��
�
�6�=�0�6�>�>�s�D�I�I�J�J�J��V�]�#�#�#�#���&�+�/?�?�?��V�]�#�#�#��}�+�+�F�3�3�9���!�!�$�'�'�'��
�
�9�t�+�,�,�,��
�$�$�^�4�4�4�4���&�+�}�<�<��V�]�#�#�#��=�(�-�-�o�>�>����]�*�/�/�0@�A�A��&����K�K�T�������Q�������"�
<����8�9�9�9�9�"�#:�;�;�;�5	<�8�6�#�;�;�&�&r0c�4�|s:|jjs.|�dd��}|r|�dd��}|�Atjdd��}tj|tj|��ggdd��}nTtjdd��}	tj|	tj|��tj|��|ggdd��}|jjrLt|��D];\}
}|r|
dkr�|j�	tj
|
|�����<nYtj|��}|rCtj|tj
d�|���D������}tj|g��S)	z/Generates a useful node from the data provided.r�r�Nrr�r rlc�b�g|],\}}tjtj|��|����-Sr3)r�Pair�Const)�.0r�r�s   r/�
<listcomp>z<InternationalizationExtension._make_node.<locals>.<listcomp>�sB����� *��U�"�J�u�{�3�'7�'7��?�?���r0)r9r{r�rr�rTr�rrVr��Keyword�MarkSafeIfAutoescape�Mod�Dict�items�Output)r;r�r�rgr��vars_referencedr�rr�r r�r�s            r/r�z(InternationalizationExtension._make_node}s����	3�t�'7�'H�	3��'�'��c�2�2�H��
3�����c�2�2�����j��F�3�3�G��:�g���H�(=�(=�'>��D�$�O�O�D�D��z�*�f�5�5�H��:����X�&�&���F�(;�(;�[�I������D���,�	�'�	�2�2�
>�
>�
��U�"��c�U�l�l����"�"�5�=��e�#<�#<�=�=�=�=�
>��-�d�3�3�D��	
��y���J���.7�o�o�.?�.?����������|�T�F�#�#�#r0r8)r(r'r1r2r[r<r~rr�r��GETTEXT_FUNCTIONSr�rMr�r�r�r�r3r0r/rsrs�s�������7�7��9�D�

�

�

�=�=�=�=�
�
�
�
�
L�L�L�L�4�4�4�2C�;�;�;�;�
q�q�q�f/5�/�/�/�/� '� '� '�D5$�5$�5$�5$�5$r0rsc�0�eZdZdZedg��Zd�ZdS)�ExprStmtExtensionzrAdds a `do` tag to Jinja that works like the print statement just
    that it doesn't print the return value.
    �doc��tjt|j��j���}|���|_|S)NrO)r�ExprStmtr�rHrP�parse_tupler�)r;rLr�s   r/rMzExprStmtExtension.parse�s9���~�T�&�-�%8�%8�%?�@�@�@���&�&�(�(��	��r0N�r(r'r1r2rZr[rMr3r0r/r�r��s>���������3��v�;�;�D�����r0r�c�2�eZdZdZeddg��Zd�ZdS)�LoopControlExtensionz/Adds break and continue to the template engine.�break�continuec��t|j��}|jdkrtj|j���Stj|j���S)Nr�rO)r�rHr�r�BreakrP�Continue)r;rL�tokens   r/rMzLoopControlExtension.parse�sH���V�]�#�#���;�'�!�!��;�e�l�3�3�3�3��~�U�\�2�2�2�2r0Nr�r3r0r/r�r��s=������9�9��3���$�%�%�D�3�3�3�3�3r0r�c��eZdZdS)�
WithExtensionN�r(r'r1r3r0r/r�r����������Dr0r�c��eZdZdS)�AutoEscapeExtensionNr�r3r0r/r�r��r�r0r�c�$�eZdZdZdhZd�Zd�ZdS)�DebugExtensiona�A ``{% debug %}`` tag that dumps the available variables,
    filters, and tests.

    .. code-block:: html+jinja

        <pre>{% debug %}</pre>

    .. code-block:: text

        {'context': {'cycler': <class 'jinja2.utils.Cycler'>,
                     ...,
                     'namespace': <class 'jinja2.utils.Namespace'>},
         'filters': ['abs', 'attr', 'batch', 'capitalize', 'center', 'count', 'd',
                     ..., 'urlencode', 'urlize', 'wordcount', 'wordwrap', 'xmlattr'],
         'tests': ['!=', '<', '<=', '==', '>', '>=', 'callable', 'defined',
                   ..., 'odd', 'sameas', 'sequence', 'string', 'undefined', 'upper']}

    .. versionadded:: 2.11.0
    �debugc��|j�d��j}t��}|�d|g|���}tj|g|���S)Nz
name:debug�_renderrO)rHr�rPrrYrr�)r;rLrP�context�results     r/rMzDebugExtension.parse�sX����%�%�l�3�3�:��"�$�$���!�!�)�g�Y�v�!�F�F���|�V�H�V�4�4�4�4r0c�V�|���t|jj�����t|jj�����d�}tdd�dkrtj|dd���Stj|d���S)N)r��filters�tests�)��rT)�depth�compact)r)	�get_all�sortedr9r�keysrr�pprint�pformat)r;r�r�s   r/r�zDebugExtension._render�s������(�(��d�.�6�;�;�=�=�>�>��D�,�2�7�7�9�9�:�:�
�
�������v�%�%��>�&��4�@�@�@�@��>�&��2�2�2�2r0N)r(r'r1r2r[rMr�r3r0r/r�r��sE��������(
�9�D�5�5�5�3�3�3�3�3r0r�Tc#�K�|�tj��D�]Y}t|jtj��r|jj|vr�1g}|jD]f}t|tj��r5t|j	t��r|�|j	���Q|�d���g|jD]}|�d���|j
�|�d��|j�|�d��|std�|D����}|s��n+t!|��dkr	|d}nt|��}|j|jj|fV���[dS)a�Extract localizable strings from the given template node.  Per
    default this function returns matches in babel style that means non string
    parameters as well as keyword arguments are returned as `None`.  This
    allows Babel to figure out what you really meant if you are using
    gettext functions that allow keyword arguments for placeholder expansion.
    If you don't want that behavior set the `babel_style` parameter to `False`
    which causes only strings to be returned and parameters are always stored
    in tuples.  As a consequence invalid gettext calls (calls without a single
    string parameter or string parameters after non-string parameters) are
    skipped.

    This example explains the behavior:

    >>> from jinja2 import Environment
    >>> env = Environment()
    >>> node = env.parse('{{ (_("foo"), _(), ngettext("foo", "bar", 42)) }}')
    >>> list(extract_from_ast(node))
    [(1, '_', 'foo'), (1, '_', ()), (1, 'ngettext', ('foo', 'bar', None))]
    >>> list(extract_from_ast(node, babel_style=False))
    [(1, '_', ('foo',)), (1, 'ngettext', ('foo', 'bar'))]

    For every string found this function yields a ``(lineno, function,
    message)`` tuple, where:

    * ``lineno`` is the number of the line on which the string was found,
    * ``function`` is the name of the ``gettext`` function used (if the
      string was extracted from embedded Python code), and
    *  ``message`` is the string itself (a ``unicode`` object, or a tuple
       of ``unicode`` objects for functions with multiple string arguments).

    This extraction function operates on the AST and is because of that unable
    to extract any comments.  For comment support you have to use the babel
    extraction interface or extract comments yourself.
    Nc3�K�|]}|�|V��	dSr8r3)r�r�s  r/�	<genexpr>z#extract_from_ast.<locals>.<genexpr>:s"����@�@�!�!�-�A�-�-�-�-�@�@r0rr)�find_allrrTr�r�r�r+rUr�r�rr�rVrWrX�tuple�lenrP)r�r��babel_style�strings�argrs      r/r�r�s�����F�
�
�e�j�)�)�3�3���4�9�e�j�1�1�	��y�~�%6�6�6�����9�	%�	%�C��#�u�{�+�+�
%�
�3�9�l�0S�0S�
%����s�y�)�)�)�)����t�$�$�$�$���	!�	!�A��N�N�4� � � � ��=�$��N�N�4� � � ��?�&��N�N�4� � � ��	)��@�@�w�@�@�@�@�@�G��
��
��7�|�|�q� � �!�!�*�����.�.���k�4�9�>�7�2�2�2�2�2�=3�3r0c�$�eZdZdZd�Zd�Zd�ZdS)�_CommentFinderz�Helper class to find comments in a token stream.  Can only
    find comments for gettext calls forwards.  Once the comment
    from line 4 is found, a comment for line 1 will not return a
    usable value.
    c�>�||_||_d|_d|_dS)Nr)�tokens�comment_tags�offset�last_lineno)r;rrs   r/r<z_CommentFinder.__init__Ls&�����(����������r0c�*�	t|j|j|���D]\\}}}|dvrR	|�dd��\}}n#t$rY�1wxYw||jvr|���gc||_S�]g||_S#||_wxYw)N)�comment�linecommentr)�reversedrr�split�
ValueErrorr�rstrip)r;rr�
token_type�token_value�prefixrs       r/�find_backwardsz_CommentFinder.find_backwardsRs���
	!�.6���D�K�&�0�1�/�/�	
2�	
2�*��:�{��!;�;�;�!�*5�*;�*;�D�!�*D�*D������%�!�!�!� ��!������!2�2�2� '��� 0� 0�1�1�1�!�D�K�K��� �D�K�K��&�D�K� � � � s4�+B	�A�B	�
A�B	�A�"B	�?B	�		Bc��|jr|j|krgSt|j|jd���D].\}\}}}||kr|�|j|z��cS�/|�t
|j����Sr8)rr�	enumeraterrr&r)r;rP�idx�token_linenors     r/�
find_commentsz_CommentFinder.find_commentsbs���� �	�D�$4�v�$=�$=��I�)2�4�;�t�{�}�}�3M�)N�)N�	>�	>�%�C�%�,��1��f�$�$��*�*�4�;��+<�=�=�=�=�=�%��"�"�3�t�{�#3�#3�4�4�4r0N)r(r'r1r2r<r&r+r3r0r/rrEsK�����������!�!�!� 5�5�5�5�5r0rc#�K�t��}|�dd���d��D];}|���}|s�|�t|�����<t|vr|�t��dd�}||dd��}t|�dt��|�d	t��|�d
t��|�dt��|�dt��|�d
t��|�d��pt|�d��pt||dt ��||dt"��t$||dt&��t)|��dd���}||d��r
d|jd<||d��rd|_|����|�dd����}		|�|	��}
t5|�|�|	������}n#t:$r|s�YdSwxYwt=||��}t?|
|��D]!\}
}}|
|||� |
��fV��"dS)aBabel extraction method for Jinja templates.

    .. versionchanged:: 2.3
       Basic support for translation comments was added.  If `comment_tags`
       is now set to a list of keywords for extraction, the extractor will
       try to find the best preceding comment that begins with one of the
       keywords.  For best results, make sure to not have more than one
       gettext call in one line of code and the matching comment in the
       same line or the line before.

    .. versionchanged:: 2.5.1
       The `newstyle_gettext` flag can be set to `True` to enable newstyle
       gettext calls.

    .. versionchanged:: 2.7
       A `silent` option can now be provided.  If set to `False` template
       syntax errors are propagated instead of being ignored.

    :param fileobj: the file-like object the messages should be extracted from
    :param keywords: a list of keywords (i.e. function names) that should be
                     recognized as translation functions
    :param comment_tags: a list of translator tags to search for and include
                         in the results.
    :param options: a dictionary of additional options (optional)
    :return: an iterator over ``(lineno, funcname, message, comments)`` tuples.
             (comments will be empty currently)
    �
extensions��,Fc�p�|�|t|�������dvS)N)�1�on�yes�true)�get�str�lower)�optionsr��defaults   r/�getboolzbabel_extract.<locals>.getbool�s.���{�{�3��G���-�-�3�3�5�5�9S�S�Sr0�silentT�block_start_string�block_end_string�variable_start_string�variable_end_string�comment_start_string�comment_end_string�line_statement_prefix�line_comment_prefix�trim_blocks�
lstrip_blocks�keep_trailing_newliner)�
cache_size�auto_reloadr�r�r{�encodingzutf-8N)F)!rZr5r r��addrrsrrr
rrr
rrrrrrr�	frozensetr�r{�read�decoderM�list�lexrFrrr�r+)�fileobj�keywordsrr8r-�	extensionr:r;r9rDr�r�finderrPrh�messages                r/�
babel_extractrUks�����8���J��[�[��r�2�2�8�8��=�=�1�1�	��O�O�%�%�	��	�����}�Y�/�/�0�0�0�0�$�J�6�6����4�5�5�5�T�T�T�T��W�W�h��
-�
-�F�����(�*<�=�=����&�(8�9�9����+�-B�C�C����)�+>�?�?����*�,@�A�A����(�*<�=�=����+�,�,�E�0E����)�*�*�A�.A������4�4�����-�8�8�����0�2G�H�H��*��������K�$�w�w�	�"�"�8�37���/�0��w�w�*�+�+�,�'+��$�
�\�\�^�^�
"�
"�7�;�;�z�7�#C�#C�
D�
D�F��� � ��(�(���k�o�o�k�&<�&<�V�&D�&D�E�E�F�F���������	�����	�����F�L�
1�
1�F�!1�$��!A�!A�B�B����g��d�G�V�%9�%9�&�%A�%A�A�A�A�A�A�B�Bs�9A
J�
J�J)>r2r
�re�sysr�
markupsaferr.r�_compatrrr	�defaultsr
rrr
rrrrrrrrr9r�
exceptionsrrr�runtimer�utilsrrr��compiler�r%r"r>r5rarirqrsr�r�r�r�r�r�rrU�i18nr��loopcontrols�with_rer�r3r0r/�<module>rbs)��8�8�
�
�
�
�	�	�	�	�������������������������!�!�!�!�!�!�#�#�#�#�#�#�&�&�&�&�&�&�(�(�(�(�(�(�(�(�(�(�(�(�*�*�*�*�*�*�+�+�+�+�+�+�)�)�)�)�)�)�+�+�+�+�+�+�#�#�#�#�#�#�&�&�&�&�&�&�!�!�!�!�!�!�)�)�)�)�)�)�+�+�+�+�+�+�$�$�$�$�$�$�.�.�.�.�.�.�+�+�+�+�+�+�#�#�#�#�#�#�������"�"�"�"�"�"� � � � � � �
1��	���K�	 �	 �����������Y
�Y
�Y
�Y
�Y
���0�&�9�9�Y
�Y
�Y
�x�I�I���I����
�
�
�D$�D$�D$�D$�D$�I�D$�D$�D$�N
�
�
�
�
�	�
�
�
�	3�	3�	3�	3�	3�9�	3�	3�	3�	�	�	�	�	�I�	�	�	�	�	�	�	�	�)�	�	�	�(3�(3�(3�(3�(3�Y�(3�(3�(3�V.?�D�A3�A3�A3�A3�H#5�#5�#5�#5�#5�V�#5�#5�#5�LLB�LB�LB�`%����#����
 �
����r0