Current File : //proc/self/root/lib/python3/dist-packages/jinja2/__pycache__/utils.cpython-312.pyc
�

��g�]�
�X�UddlZddlZddlZddlZddlZddlmZ	ddlm	Z	ddlmZddlm
Z
ddlmZddlmZddlmZddlZej*rddlZej0d	ej2d
ej4f��Zedd
dd�i��Zej4ed<e�Z ejBeed<djDZ#dedefd�Z$dedefd�Z%dedefd�Z&Gd�dejN�Z(dedefd�Z)dej4de*fd�Z+dejXej4ddfd�Z-dHd�Z.dId e/d!e*dej4fd"�Z0dJd#e/d$e/dejbejdfd%�Z3dej4de/fd&�Z4dej4de/fd'�Z5ejld(ejnejpz�Z9ejld)�Z:				dKd*e/d+ejbe;d,ejbe/d-ejbe/d.ejbejXe/de/fd/�Z<	dLd0e;d1e*d2e;d3e;de/f
d4�Z=dMdej4d5e/d6e*de/fd7�Z>ej~j�Gd8�d9��ZA				dNd:ej�e/d;ej�e/d<e*d=e*dej2ejbe/ge*ff
d>�ZC	dOdej4d?ejbej2d
e/fd@ej4dej�fdA�ZEGdB�dC�ZFGdD�dE�ZGGdF�dG�ZHy#e
$r
ddlm	Z	Y��wxYw)P�N)�abc)�deque)�choice)�	randrange)�Lock)�CodeType)�quote_from_bytes�F.)�bound�MissingType��__repr__c��y)N�missingr
��xs �./usr/lib/python3/dist-packages/jinja2/utils.py�<lambda>rs��r�
internal_code��f�returnc�0�tj|_|S)a�Pass the :class:`~jinja2.runtime.Context` as the first argument
    to the decorated function when called while rendering a template.

    Can be used on functions, filters, and tests.

    If only ``Context.eval_context`` is needed, use
    :func:`pass_eval_context`. If only ``Context.environment`` is
    needed, use :func:`pass_environment`.

    .. versionadded:: 3.0.0
        Replaces ``contextfunction`` and ``contextfilter``.
    )�_PassArg�context�jinja_pass_arg�rs r�pass_contextr s�� �'�'�A���Hrc�0�tj|_|S)a�Pass the :class:`~jinja2.nodes.EvalContext` as the first argument
    to the decorated function when called while rendering a template.
    See :ref:`eval-context`.

    Can be used on functions, filters, and tests.

    If only ``EvalContext.environment`` is needed, use
    :func:`pass_environment`.

    .. versionadded:: 3.0.0
        Replaces ``evalcontextfunction`` and ``evalcontextfilter``.
    )r�eval_contextrrs r�pass_eval_contextr"1s�� �,�,�A���Hrc�0�tj|_|S)aPass the :class:`~jinja2.Environment` as the first argument to
    the decorated function when called while rendering a template.

    Can be used on functions, filters, and tests.

    .. versionadded:: 3.0.0
        Replaces ``environmentfunction`` and ``environmentfilter``.
    )r�environmentrrs r�pass_environmentr%Bs�� �+�+�A���Hrc��eZdZej�Zej�Zej�Zede	de
jdfd��Zy)r�objrc�4�t|d�r|jSy)Nr)�hasattrr)�clsr's  r�from_objz_PassArg.from_objTs���3�(�)��%�%�%�rN)
�__name__�
__module__�__qualname__�enum�autorr!r$�classmethodr
�t�Optionalr+r
rrrrOsR���d�i�i�k�G��4�9�9�;�L��$�)�)�+�K���1�����J�!7���rrc�D�tj|j�|S)z%Marks the function as internally used)r�add�__code__rs r�internalcoder7\s�����a�j�j�!��Hrr'c�&�ddlm}t||�S)a�Check if the object passed is undefined.  This does nothing more than
    performing an instance check against :class:`Undefined` but looks nicer.
    This can be used for custom filters or tests that want to react to
    undefined variables.  For example a custom default filter can look like
    this::

        def default(var, default=''):
            if is_undefined(var):
                return default
            return var
    �)�	Undefined)�runtimer:�
isinstance)r'r:s  r�is_undefinedr=bs��#��c�9�%�%r�iterablec��|D]}�y)z4Consumes an iterable without doing anything with it.Nr
)r>�_s  r�consumerAss��
�
���
rc�\�ddlm}ddlm}|j	�|j�y)a Jinja keeps internal caches for environments and lexers.  These are
    used so that Jinja doesn't have to recreate environments and lexers all
    the time.  Normally you don't have to care about that but if you are
    measuring memory consumption you may want to clean the caches.
    r9)�get_spontaneous_environment)�_lexer_cacheN)r$rC�lexerrD�cache_clear�clear)rCrDs  r�clear_cachesrHys"��9�#��+�+�-����r�import_name�silentc���	d|vr|jdd�\}}n%d|vr|jd�\}}}nt|�Stt|dd|g�|�S#tt
f$r|s�YywxYw)a�Imports an object based on a string.  This is useful if you want to
    use import paths as endpoints or something similar.  An import path can
    be specified either in dotted notation (``xml.sax.saxutils.escape``)
    or with a colon as object delimiter (``xml.sax.saxutils:escape``).

    If the `silent` is True the return value will be `None` if the import
    fails.

    :return: imported object
    �:r9�.N)�split�
rpartition�
__import__�getattr�ImportError�AttributeError)rIrJ�moduler'r@s     r�
import_stringrU�s���
��+��%�+�+�C��3�K�F�C�
�K�
�(�3�3�C�8�N�F�A�s��k�*�*��z�&�$��s�e�<�c�B�B����(������s�>A�A�A/�.A/�filename�modec�Z�tjj|�syt||�S)z\Returns a file descriptor for the filename if that file exists,
    otherwise ``None``.
    N)�os�path�isfile�open)rVrWs  r�open_if_existsr]�s$���7�7�>�>�(�#����$��rc��|�y|turyt|�}|jdk(r|j�d�S|j�d|j�d�S)z�Returns the name of the object's type.  For some recognized
    singletons the name of the object is returned instead. (For
    example for `None` and `Ellipsis`).
    �None�Ellipsis�builtinsz objectrM)r`�typer-r,)r'r*s  r�object_type_reprrc�sX��
�{��	����
�s�)�C�
�~�~��#��,�,��w�'�'��n�n�
�Q�s�|�|�n�G�4�4rc��ddlm}||�S)z.Format an object using :func:`pprint.pformat`.r)�pformat)�pprintre)r'res  rrere�s����3�<�ra@
    ^
    (
        (https?://|www\.)  # scheme or www
        (([\w%-]+\.)+)?  # subdomain
        (
            [a-z]{2,63}  # basic tld
        |
            xn--[\w%]{2,59}  # idna tld
        )
    |
        ([\w%-]{2,63}\.)+  # basic domain
        (com|net|int|edu|gov|org|info|mil)  # basic tld
    |
        (https?://)  # scheme
        (
            (([\d]{1,3})(\.[\d]{1,3}){3})  # IPv4
        |
            (\[([\da-f]{0,4}:){2}([\da-f]{0,4}:?){1,6}])  # IPv6
        )
    )
    (?::[\d]{1,5})?  # port
    (?:[/?#]\S*)?  # path, query, and fragment
    $
    z^\S+@\w[\w.-]*\.\w+$�text�trim_url_limit�rel�target�
extra_schemesc
�����dtdtf�fd�}ndtdtfd�}tjdttj|���}|rdtj|��d�nd	}|rd
tj|��d�nd	}t|�D�]\}	}
d	|
d	}
}}tjd|�}|r#|j�}||j�d}|jd�r;tjd
|�}|r#|j�}
|d|j�}dD]~\}}|j|�}||j|�kr�,tt||
j|���D],}|
j|�t!|�z}||
d|z
}|
|d}
�.��t"j
|�rL|j%d�s|j%d�rd|�d|�|�d||��d�}n�d|�d|�|�d||��d�}n�|j%d�r%t&j
|dd�r
d|�d|dd�d�}ngd|vr4|j%d�s#d|vrt&j
|�r
d|�d|�d�}n/|�-|D](}||k7s�	|j%|�s�d|�d|�|�d|�d�}�*|�|�|
��||	<��"d	j)|�S)a;Convert URLs in text into clickable links.

    This may not recognize links in some situations. Usually, a more
    comprehensive formatter, such as a Markdown library, is a better
    choice.

    Works on ``http://``, ``https://``, ``www.``, ``mailto:``, and email
    addresses. Links with trailing punctuation (periods, commas, closing
    parentheses) and leading punctuation (opening parentheses) are
    recognized excluding the punctuation. Email addresses that include
    header fields are not recognized (for example,
    ``mailto:address@example.com?cc=copy@example.com``).

    :param text: Original text containing URLs to link.
    :param trim_url_limit: Shorten displayed URL values to this length.
    :param target: Add the ``target`` attribute to links.
    :param rel: Add the ``rel`` attribute to links.
    :param extra_schemes: Recognize URLs that start with these schemes
        in addition to the default behavior.

    .. versionchanged:: 3.0
        The ``extra_schemes`` parameter was added.

    .. versionchanged:: 3.0
        Generate ``https://`` links for URLs without a scheme.

    .. versionchanged:: 3.0
        The parsing rules were updated. Recognize email addresses with
        or without the ``mailto:`` scheme. Validate IP addresses. Ignore
        parentheses and brackets in more cases.
    Nrrc�4��t|��kDr|d��d�S|S)Nz...)�len)rrhs �r�trim_urlzurlize.<locals>.trim_urls)����1�v��&��O�^�,�-�S�1�1��Hrc��|S�Nr
rs rrozurlize.<locals>.trim_urls���Hrz(\s+)z rel="�"rz	 target="z
^([(<]|&lt;)+)�)�>rM�,�
�&gt;z([)>.,\n]|&gt;)+$))�(rs)�<rt)z&lt;rwzhttps://zhttp://z	<a href="rtz</a>z<a href="https://zmailto:�z">�@zwww.rLz<a href="mailto:)�str�rerN�
markupsafe�escape�	enumerate�match�group�end�endswith�search�start�count�range�min�indexrn�_http_re�
startswith�	_email_re�join)rgrhrirjrkro�words�rel_attr�target_attr�i�word�head�middle�tailr��
start_char�end_char�start_countr@�	end_index�schemes `                   r�urlizer��s%���L�!�	��	��	�	��	��	�
�H�H�X�s�:�#4�#4�T�#:�;�<�E�58��
�)�)�#�.�/�q�1�b�H�>D�I�j�/�/��7�8��:�"�K��U�#�=+���4���r�d�f�����)�6�2����;�;�=�D��E�I�I�K�M�*�F�
�?�?�=�>��I�I�2�F�;�E���{�{�}����%�+�+�-�0��%M�	(� �J�� �,�,�z�2�K��f�l�l�8�4�4���3�{�D�J�J�x�,@�A�B�
(�� �J�J�x�0�3�x�=�@�	��$�z�	�*�*���I�J�'��	
(�	(��>�>�&�!�� � ��,��0A�0A�)�0L���x�q��
�;�-�q��&�AQ�@R�RV�W��
(��x�q��
�;�-�q���'�(��.��
�
�
�y�
)�i�o�o�f�Q�R�j�.I� ����6�!�"�:�,�d�;�F�
�6�M��%�%�f�-��6�!�����'�'��x�r�&���>�F�
�
&�'�
W���V�#��(9�(9�&�(A�(����(��K�=��&��QU�V�F�
W��V�F�8�D�6�*��a��{=+�~�7�7�5�>�r�n�htmlr��maxc	��ddlm}|j�}g}t|�D]�}d}dx}	}
d}d}g}
t	tt||���D]z\}}	t
|�}||k7r|}n�|r|j�}d}|tdd�z
|	kDr|}	|
d	z
}
|d
z
}|tdd�z
|
kDr|x}	}
|d
z
}d}|
j|��|dj|
�}|jd
�r	|ddd
z}n|jd
�s|d
z
}|j|���|sdj|�Stjdjd�|D���S)z+Generate some lorem ipsum for the template.r9)�LOREM_IPSUM_WORDSTrNF���ru�
�rM� ���z

rvc3�NK�|]}dtj|��d����y�w)z<p>z</p>N)r~r��.0rs  r�	<genexpr>z'generate_lorem_ipsum.<locals>.<genexpr>�s%����C�q�C�
�)�)�!�,�-�T�2�C�s�#%)
�	constantsr�rNr�r�rr�
capitalize�appendr�r�r~�Markup)r�r�r�r�r�r��resultr@�next_capitalized�
last_comma�
last_fullstopr��last�p�idx�p_strs                r�generate_lorem_ipsumr�Ys���-��#�#�%�E�
�F�
�1�X�%����%&�&�
�]������� ��i��S�&9� :�;�	�F�C����e�}���4�<��D��	�
 ����(��#(� ��Y�q�!�_�$�z�1� �
���"�
������Y�r�2�&�&��6�-0�0�
�]�����#'� �
�H�H�T�N�'	�,�������>�>�#���#�2�J��$�E�����$��S�L�E��
�
�e��K%�N��{�{�6�"�"�����	�	�C�F�C�C��r�charset�for_qsc���t|t�s,t|t�st|�}|j|�}|rdnd}t	||�}|r|jdd�}|S)a5Quote a string for use in a URL using the given charset.

    :param obj: String or bytes to quote. Other types are converted to
        string then encoded to bytes using the given charset.
    :param charset: Encode text to bytes using this charset.
    :param for_qs: Quote "/" and use "+" for spaces.
    r�/z%20�+)r<�bytesr|�encoder	�replace)r'r�r��safe�rvs     r�	url_quoter��s\���c�5�!��#�s�#��c�(�C��j�j��!���3�d�D�	�#�t�	$�B�
�
�Z�Z��s�
#��
�Irc��eZdZdZdeddfd�Zdd�Zdeje	ejffd�Zdeje	ejfddfd	�Zdejfd
�Zdd�Zddejd
ejdejfd�Zddejd
ejdejfd�Zdd�Zdejdefd�Zdefd�Zde	fd�Zdejdejfd�Zdejdejddfd�Zdejddfd�Zdej4ejejejffd�Zdej4ejfd�Zdej4ejfd�Zdej<ejfd�Zdej<ejfd�Z eZ!y) �LRUCachez"A simple LRU Cache implementation.�capacityrNc�^�||_i|_t�|_|j	�yrq)r��_mappingr�_queue�	_postinit)�selfr�s  r�__init__zLRUCache.__init__�s#�� ��
�.0��
�).�������rc��|jj|_|jj|_|jj
|_t�|_|jj|_
yrq)r��popleft�_popleft�pop�_pop�remove�_remover�_wlockr��_append�r�s rr�zLRUCache._postinit�sM�����+�+��
��K�K�O�O��	��{�{�)�)����f����{�{�)�)��rc�J�|j|j|jd�S)N�r�r�r�r�r�s r�__getstate__zLRUCache.__getstate__�s!���
�
��
�
��k�k�
�	
r�dc�Z�|jj|�|j�yrq)�__dict__�updater�)r�r�s  r�__setstate__zLRUCache.__setstate__�s���
�
���Q�����rc��|jfSrq)r�r�s r�__getnewargs__zLRUCache.__getnewargs__�s���
�
��rc���|j|j�}|jj|j�|jj|j�|S)z&Return a shallow copy of the instance.)�	__class__r�r�r�r��extend�r�r�s  r�copyz
LRUCache.copy�sE��
�^�^�D�M�M�
*��
�����4�=�=�)�
�	�	������%��	r�key�defaultc�0�	||S#t$r|cYSwxYw)z/Return an item from the cache dict or `default`��KeyError�r�r�r�s   r�getzLRUCache.get�s%��	���9����	��N�	�s���c�:�	||S#t$r
|||<|cYSwxYw)zvSet `default` if the key is not in the cache otherwise
        leave unchanged. Return the value of this key.
        r�r�s   r�
setdefaultzLRUCache.setdefault�s.��	���9����	��D��I��N�	�s���c��|j5|jj�|jj�ddd�y#1swYyxYw)zClear the cache.N)r�r�rGr�r�s rrGzLRUCache.clear�s>��
�[�[�	 ��M�M���!��K�K����	 �	 �	 �s�5A�Ac��||jvS)z$Check if a key exists in this cache.)r��r�r�s  r�__contains__zLRUCache.__contains__�s���d�m�m�#�#rc�,�t|j�S)z%Return the current size of the cache.)rnr�r�s r�__len__zLRUCache.__len__�s���4�=�=�!�!rc�N�dt|�j�d|j�d�S)Nryr�rt)rbr,r�r�s rrzLRUCache.__repr__�s'���4��:�&�&�'�q����(9��;�;rc���|j5|j|}|jd|k7r#	|j|�|j|�|cddd�S#t$rY�'wxYw#1swYyxYw)z�Get an item from the cache. Moves the item up so that it has the
        highest priority then.

        Raise a `KeyError` if it does not exist.
        r�N)r�r�r�r��
ValueErrorr�)r�r�r�s   r�__getitem__zLRUCache.__getitem__�s{���[�[�	����s�#�B��{�{�2��#�%���L�L��%����S�!��	�	��"���	��
	�	�s.�"A,�A�A,�	A)�&A,�(A)�)A,�,A5�valuec�@�|j5||jvr|j|�n=t|j�|jk(r|j|j�=|j
|�||j|<ddd�y#1swYyxYw)zhSets the value for an item. Moves the item up so that it
        has the highest priority then.
        N)r�r�r�rnr�r�r�)r�r�r�s   r�__setitem__zLRUCache.__setitem__
sy���[�[�	'��d�m�m�#����S�!��T�]�]�#�t�}�}�4��M�M�$�-�-�/�2��L�L���!&�D�M�M�#��	'�	'�	'�s�A>B�Bc��|j5|j|=	|j|�ddd�y#t$rY�wxYw#1swYyxYw)z]Remove an item from the cache dict.
        Raise a `KeyError` if it does not exist.
        N)r�r�r�r�r�s  r�__delitem__zLRUCache.__delitem__sV���[�[�	��
�
�c�"�
����S�!�		�	��
�
��
��	�	�s%�A�6�	A�A�A�A�Ac��t|j�D�cgc]}||j|f��}}|j�|Scc}w)zReturn a list of items.)�listr�r��reverse)r�r�r�s   r�itemszLRUCache.items#sA��7;�D�K�K�7H�I��3��
�
�c�*�+�I��I������
��Js�Ac�N�|j�D�cgc]}|d��	c}Scc}w)zReturn a list of all values.r9)r)r�rs  r�valueszLRUCache.values)s ��"�j�j�l�+���!��+�+��+s�"c��t|�S)z7Return a list of all keys ordered by most recent usage.)rr�s r�keysz
LRUCache.keys-s���D�z�rc�>�tt|j��Srq)�reversed�tupler�r�s r�__iter__zLRUCache.__iter__1s����d�k�k�*�+�+rc�>�tt|j��S)zTIterate over the keys in the cache dict, oldest items
        coming first.
        )�iterr	r�r�s r�__reversed__zLRUCache.__reversed__4s���E�$�+�+�&�'�'r�rN)rr�rq)"r,r-r.�__doc__�intr�r�r2�Mappingr|�Anyr�r��Tupler�r�r�r�rG�boolr�r�rr�r�r��Iterablerrr�Iteratorr
r
�__copy__r
rrr�r��s���,������*�
�a�i�i��Q�U�U�
�3�
��a�i�i��Q�U�U�
�3���� ���� ���q�u�u��q�u�u�������a�e�e��a�e�e��q�u�u�� �$����$�$�$�"��"�<�#�<��q�u�u������,'�q�u�u�'�Q�U�U�'�t�'�
�q�u�u�
��
��q�z�z�!�'�'�!�%�%����,�"7�8��,��
�
�1�5�5�)�,��a�j�j����'��,�!�*�*�Q�U�U�+�,�(�a�j�j����/�(��Hrr��enabled_extensions�disabled_extensions�default_for_stringr�c������td�|D���td�|D���dtjtdtf����fd�}|S)acIntelligently sets the initial value of autoescaping based on the
    filename of the template.  This is the recommended way to configure
    autoescaping if you do not want to write a custom function yourself.

    If you want to enable it for all templates created from strings or
    for all templates with `.html` and `.xml` extensions::

        from jinja2 import Environment, select_autoescape
        env = Environment(autoescape=select_autoescape(
            enabled_extensions=('html', 'xml'),
            default_for_string=True,
        ))

    Example configuration to turn it on at all times except if the template
    ends with `.txt`::

        from jinja2 import Environment, select_autoescape
        env = Environment(autoescape=select_autoescape(
            disabled_extensions=('txt',),
            default_for_string=True,
            default=True,
        ))

    The `enabled_extensions` is an iterable of all the extensions that
    autoescaping should be enabled for.  Likewise `disabled_extensions` is
    a list of all templates it should be disabled for.  If a template is
    loaded from a string then the default from `default_for_string` is used.
    If nothing matches then the initial value of autoescaping is set to the
    value of `default`.

    For security reasons this function operates case insensitive.

    .. versionadded:: 2.9
    c3�`K�|]&}d|jd�j������(y�w�rMN��lstrip�lowerr�s  rr�z$select_autoescape.<locals>.<genexpr>es)����U�Q�q����#��!4�!4�!6� 7�8�U���,.c3�`K�|]&}d|jd�j������(y�wrrr�s  rr�z$select_autoescape.<locals>.<genexpr>fs)����W�a��!�(�(�3�-�"5�"5�"7�!8�9�W�r!�
template_namerc�x��|��S|j�}|j��ry|j��ry�S)NTF)r r�)r#r�r�disabled_patterns�enabled_patternss ����r�
autoescapez%select_autoescape.<locals>.autoescapehsF���� �%�%�%�+�+�-�
��!�!�"2�3���!�!�"3�4���r)r	r2r3r|r)rrrr�r'r%r&s  `` @@r�select_autoescaper(=sR���P�U�BT�U�U���W�CV�W�W���!�*�*�S�/��d����r�dumps�kwargsc���|�tj}tj||fi|��j	dd�j	dd�j	dd�j	dd��S)	a�Serialize an object to a string of JSON with :func:`json.dumps`,
    then replace HTML-unsafe characters with Unicode escapes and mark
    the result safe with :class:`~markupsafe.Markup`.

    This is available in templates as the ``|tojson`` filter.

    The following characters are escaped: ``<``, ``>``, ``&``, ``'``.

    The returned string is safe to render in HTML documents and
    ``<script>`` tags. The exception is in HTML attributes that are
    double quoted; either use single quotes or the ``|forceescape``
    filter.

    :param obj: The object to serialize to JSON.
    :param dumps: The ``dumps`` function to use. Defaults to
        ``env.policies["json.dumps_function"]``, which defaults to
        :func:`json.dumps`.
    :param kwargs: Extra arguments to pass to ``dumps``. Merged onto
        ``env.policies["json.dumps_kwargs"]``.

    .. versionchanged:: 3.0
        The ``dumper`` parameter is renamed to ``dumps``.

    .. versionadded:: 2.9
    ryz\u003crtz\u003e�&z\u0026�'z\u0027)�jsonr)r~r�r�)r'r)r*s   r�htmlsafe_json_dumpsr/usb��8
�}��
�
�����
�c��V��	���i�	 �	���i�	 �	���i�	 �	���i�	 ��rc��eZdZdZdej
ddfd�Zd	d�Zedej
fd��Z	dej
fd�Z
e
Zy)
�CycleraDCycle through values by yield them one at a time, then restarting
    once the end is reached. Available as ``cycler`` in templates.

    Similar to ``loop.cycle``, but can be used outside loops or across
    multiple loops. For example, render a list of folders and files in a
    list, alternating giving them "odd" and "even" classes.

    .. code-block:: html+jinja

        {% set row_class = cycler("odd", "even") %}
        <ul class="browser">
        {% for folder in folders %}
          <li class="folder {{ row_class.next() }}">{{ folder }}
        {% endfor %}
        {% for file in files %}
          <li class="file {{ row_class.next() }}">{{ file }}
        {% endfor %}
        </ul>

    :param items: Each positional argument will be yielded in the order
        given for each cycle.

    .. versionadded:: 2.1
    rrNc�:�|std��||_d|_y)Nz$at least one item has to be providedr)�RuntimeErrorr�pos)r�rs  rr�zCycler.__init__�s����E�F�F���
���rc��d|_y)z*Resets the current item to the first item.rN)r4r�s r�resetzCycler.reset�s	����rc�4�|j|jS)zxReturn the current item. Equivalent to the item that will be
        returned next time :meth:`next` is called.
        )rr4r�s r�currentzCycler.current�s��
�z�z�$�(�(�#�#rc�r�|j}|jdzt|j�z|_|S)zXReturn the current item, then advance :attr:`current` to the
        next item.
        r9)r8r4rnrr�s  r�nextzCycler.next�s.���\�\���H�H�q�L�C��
�
�O�3����	rr)r,r-r.rr2rr�r6�propertyr8r:�__next__r
rrr1r1�sY���2�q�u�u������$����$��$��a�e�e���Hrr1c�.�eZdZdZddeddfd�Zdefd�Zy)�JoinerzA joining helper for templates.�seprNc� �||_d|_y)NF)r?�used)r�r?s  rr�zJoiner.__init__�s�������	rc�B�|jsd|_y|jS)NTr)rAr?r�s r�__call__zJoiner.__call__�s���y�y��D�I���x�x�r)z, )r,r-r.rr|r�rCr
rrr>r>�s$��)��C��4���#�rr>c��eZdZdZdej
dej
ddfd�Zdedej
fd�Zded	ej
ddfd
�Z	defd�Z
y)�	Namespacez~A namespace object that can hold arbitrary attributes.  It may be
    initialized from a dictionary or with keyword arguments.�argsr*rNc�8�|d|dd}}t|i|��|_y)Nrr9)�dict�_Namespace__attrs)rFr*r�s   rr�zNamespace.__init__�s&���!�W�d�1�2�h�d���T�,�V�,��r�namec��|dvrtj||�S	|j|S#t$r
t	|�d�wxYw)N>r�rI)�object�__getattribute__rIr�rS)r�rJs  rrMzNamespace.__getattribute__�sN���5�5��*�*�4��6�6�	1��<�<��%�%���	1� ��&�D�0�	1�s	�+�Ar�c�"�||j|<yrq�rI)r�rJr�s   rr�zNamespace.__setitem__�s��"����T�rc�"�d|j�d�S)Nz<Namespace rtrOr�s rrzNamespace.__repr__�s���T�\�\�,�A�.�.r)r,r-r.rr2rr�r|rMr�rr
rrrErE�sk��@�-����-����-�4�-�1�S�1�Q�U�U�1�#��#�A�E�E�#�d�#�/�#�/rrEr)F)�rb)NNNN)�Tr��d)zutf-8F))r��htm�xmlr
TFrq)Ir/r.rYr}�typingr2�collectionsr�collections.abcrrR�randomrr�	threadingr�typesr�urllib.parser	r~�
TYPE_CHECKING�typing_extensions�te�TypeVar�Callablerr
rbr�__annotations__�setr�
MutableSetr��concatrr"r%�Enumrr7rr=rrArHr|rUr3�IOr]rcre�compile�
IGNORECASE�VERBOSEr�r�rr�r�r��MutableMapping�registerr��
Collectionr(r�r/r1r>rEr
rr�<module>rns�����	�	���"�%�����)���?�?�"�
�A�I�I�c����C����J�/�0��L��m�R�*�6I�)J�K�M�����M�(+��
�q�|�|�H�%�-�	����
�A�
�!�
�"
��
�q�
�"

��

�a�

�
�t�y�y�
�
�A�
�!�
�&�a�e�e�&��&�"
�a�j�j����'�
�D�
�
��s��D��Q�U�U��0 �S� �� �q�z�z�!�$�$�7G� �5�!�%�%�5�C�5�$�����3���2�:�:��2�M�M�B�J�J��5��8
�B�J�J�.�/�	�
'+��"�15�v�

�v��J�J�s�O�v�
���C��v�
�J�J�s�O�	v�
�:�:�a�j�j��o�.�v�	�
v�t>A�4�
�4��4�(+�4�7:�4��4�n�1�5�5��3��$��3��.�����R�R��R�l-C�-/�#��	5����S�)�5����c�*�5��5��	5�
�Z�Z����C��!�4�'�(�5�r;?�%�	
���%��z�z�!�*�*�S�#�X�"6�7�%�JK�%�%�%����%�P3�3�l��/�/��q�"�!�!�"�s�L�L)�(L)
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!