§
    \zniHX  ã                   óâ  — d Z ddlZddlZddlmZmZ ddlmZ ddlm	Z	m
Z
 ddlmZmZ ddlmZ ddlmZmZmZmZmZ ddlZd	d
lmZmZmZmZ  e¦   «         rddlmZ  G d„ de¦  «        Z d„ Z!d„ Z"d„ Z#d„ Z$d„ Z%d„ Z&d„ Z'd„ Z(d„ Z)d„ Z*d„ Z+d„ Z,d„ Z-d„ Z.d„ Z/d„ Z0d„ Z1d„ Z2d„ Z3d „ Z4 G d!„ d"e¦  «        Z5 e¦   «         rAddl6m7c m8Z9 d#e5d$eee         d%f         fd&„Z:d'ee         d(d%d$e5fd)„Z; e9j<        e5e:e;¦  «          G d*„ d+e=e¦  «        Z> G d,„ d-e>¦  «        Z? G d.„ d/e>¦  «        Z@ G d0„ d1¦  «        ZAd2„ ZBd3„ ZCdDd6ed7e=d8e=fd9„ZDe
dEd;eEfd<„¦   «         ZFdFd=„ZGd>„ ZHdFd?„ZId@„ ZJdA„ ZKdB„ ZLdC„ ZMdS )Gz
Generic utilities
é    N)ÚOrderedDictÚUserDict)ÚMutableMapping)Ú	ExitStackÚcontextmanager)ÚfieldsÚis_dataclass)ÚEnum)ÚAnyÚContextManagerÚIterableÚListÚTupleé   )Úis_flax_availableÚis_tf_availableÚis_torch_availableÚis_torch_fx_proxyc                   ó   — e Zd ZdZdd„ZdS )Úcached_propertyzš
    Descriptor that mimics @property but caches output in member variable.

    From tensorflow_datasets

    Built-in in functools from Python 3.8.
    Nc                 óÊ   — |€| S | j         €t          d¦  «        ‚d| j         j        z   }t          ||d ¦  «        }|€&|                       |¦  «        }t	          |||¦  «         |S )Nzunreadable attributeÚ	__cached_)ÚfgetÚAttributeErrorÚ__name__ÚgetattrÚsetattr)ÚselfÚobjÚobjtypeÚattrÚcacheds        úz/var/www/html/cool-property-finder/image-detection-backend/venv/lib/python3.11/site-packages/transformers/utils/generic.pyÚ__get__zcached_property.__get__-   sn   € àˆ;ØˆKØŒ9ÐÝ Ð!7Ñ8Ô8Ð8Ø˜TœYÔ/Ñ/ˆÝ˜˜d DÑ)Ô)ˆØˆ>Ø—Y’Y˜s‘^”^ˆFÝ�C˜˜vÑ&Ô&Ð&Øˆó    ©N)r   Ú
__module__Ú__qualname__Ú__doc__r$   © r%   r#   r   r   $   s2   € € € € € ðð ðð ð ð ð ð r%   r   c                 óf   — |                       ¦   «         } | dv rdS | dv rdS t          d| ›�¦  «        ‚)zïConvert a string representation of truth to true (1) or false (0).

    True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n', 'no', 'f', 'false', 'off', and '0'.
    Raises ValueError if 'val' is anything else.
    >   Ú1ÚtÚyÚonÚyesÚtruer   >   Ú0ÚfÚnÚnoÚoffÚfalser   zinvalid truth value )ÚlowerÚ
ValueError)Úvals    r#   Ú	strtoboolr;   <   sJ   € ð �)Š)‰+Œ+€CØ
Ð2Ð2Ð2ØˆqØ
Ð3Ð3Ð3ØˆqÝ
Ð3¨CÐ3Ð3Ñ
4Ô
4Ð4r%   c                 óö   — t          t          | ¦  «        ¦  «        }|                     d¦  «        rdS |                     d¦  «        rdS |                     d¦  «        rdS |                     d¦  «        rdS d	S )
zÃ
    Tries to guess the framework of an object `x` from its repr (brittle but will help in `is_tensor` to try the
    frameworks in a smart order, without the need to import the frameworks).
    z<class 'torch.Úptz<class 'tensorflow.Útfz<class 'jaxÚjaxz<class 'numpy.ÚnpN)ÚstrÚtypeÚ
startswith)ÚxÚrepresentations     r#   Úinfer_framework_from_reprrF   J   sŽ   € õ
 �˜a™œ‘\”\€NØ× Ò Ð!1Ñ2Ô2ð ØˆtØ	×	"Ò	"Ð#8Ñ	9Ô	9ð ØˆtØ	×	"Ò	" =Ñ	1Ô	1ð ØˆuØ	×	"Ò	"Ð#3Ñ	4Ô	4ð Øˆtðð r%   c                 óü   ‡‡— t           t          t          t          dœŠt	          | ¦  «        Š‰€g n‰g}‰dk    r|                     d¦  «         |                     ˆfd„‰D ¦   «         ¦  «         ˆfd„|D ¦   «         S )z¿
    Returns an (ordered since we are in Python 3.7+) dictionary framework to test function, which places the framework
    we can guess from the repr first, then Numpy, then the others.
    ©r=   r>   r?   r@   Nr@   c                 ó    •— g | ]
}|‰d fv¯|‘ŒS )r@   r*   )Ú.0r3   Úpreferred_frameworks     €r#   ú
<listcomp>z1_get_frameworks_and_test_func.<locals>.<listcomp>j   s*   ø€ Ð\Ð\Ð\˜Q°qÐATÐVZÐ@[Ð7[Ð7[�qÐ7[Ð7[Ð7[r%   c                 ó"   •— i | ]}|‰|         “ŒS r*   r*   )rJ   r3   Úframework_to_tests     €r#   ú
<dictcomp>z1_get_frameworks_and_test_func.<locals>.<dictcomp>k   s!   ø€ Ð8Ð8Ð8¨ˆAÐ  Ô#Ð8Ð8Ð8r%   )Úis_torch_tensorÚis_tf_tensorÚis_jax_tensorÚis_numpy_arrayrF   ÚappendÚextend)rD   Ú
frameworksrN   rK   s     @@r#   Ú_get_frameworks_and_test_funcrW   Z   s¤   øø€ õ ÝÝÝð	ð Ðõ 4°AÑ6Ô6Ðà*Ð2��Ð9LÐ8M€JØ˜dÒ"Ð"Ø×Ò˜$ÑÔÐØ×ÒÐ\Ð\Ð\Ð\Ð"3Ð\Ñ\Ô\Ñ]Ô]Ð]Ø8Ð8Ð8Ð8¨ZÐ8Ñ8Ô8Ð8r%   c                 óÜ   — t          | ¦  «        }|                     ¦   «         D ]} || ¦  «        r dS Œt          | ¦  «        rdS t          ¦   «         rddlm} t          | |¦  «        rdS dS )z£
    Tests if `x` is a `torch.Tensor`, `tf.Tensor`, `jaxlib.xla_extension.DeviceArray` or `np.ndarray` in the order
    defined by `infer_framework_from_repr`
    Tr   )ÚTracerF)rW   Úvaluesr   r   Újax.corerY   Ú
isinstance)rD   Úframework_to_test_funcÚ	test_funcrY   s       r#   Ú	is_tensorr_   n   sœ   € õ ;¸1Ñ=Ô=ÐØ+×2Ò2Ñ4Ô4ð ð ˆ	Øˆ9�Q‰<Œ<ð 	Ø�4�4ð	õ ˜ÑÔð ØˆtåÑÔð Ø#Ð#Ð#Ð#Ð#Ð#å�a˜Ñ Ô ð 	Ø�4àˆ5r%   c                 ó6   — t          | t          j        ¦  «        S r&   )r\   r@   Úndarray©rD   s    r#   Ú	_is_numpyrc   †   s   € Ý�a�œÑ$Ô$Ð$r%   c                 ó    — t          | ¦  «        S )z/
    Tests if `x` is a numpy array or not.
    )rc   rb   s    r#   rS   rS   Š   s   € õ �Q‰<Œ<Ðr%   c                 ó4   — dd l }t          | |j        ¦  «        S ©Nr   )Útorchr\   ÚTensor©rD   rg   s     r#   Ú	_is_torchrj   ‘   ó   € Ø€L€L€Lå�a˜œÑ&Ô&Ð&r%   c                 ó@   — t          ¦   «         sdnt          | ¦  «        S )z]
    Tests if `x` is a torch tensor or not. Safe to call even if torch is not installed.
    F)r   rj   rb   s    r#   rP   rP   —   s   € õ +Ñ,Ô,Ð>ˆ5ˆ5µ)¸A±,´,Ð>r%   c                 ó4   — dd l }t          | |j        ¦  «        S rf   )rg   r\   Údeviceri   s     r#   Ú_is_torch_devicero   ž   rk   r%   c                 ó@   — t          ¦   «         sdnt          | ¦  «        S )z]
    Tests if `x` is a torch device or not. Safe to call even if torch is not installed.
    F)r   ro   rb   s    r#   Úis_torch_devicerq   ¤   s"   € õ +Ñ,Ô,ÐEˆ5ˆ5Õ2BÀ1Ñ2EÔ2EÐEr%   c                 ó¤   — dd l }t          | t          ¦  «        r#t          || ¦  «        rt	          || ¦  «        } ndS t          | |j        ¦  «        S )Nr   F)rg   r\   rA   Úhasattrr   Údtyperi   s     r#   Ú_is_torch_dtyperu   «   sW   € Ø€L€L€Lå�!•SÑÔð Ý�5˜!ÑÔð 	Ý˜˜qÑ!Ô!ˆAˆAà�5Ý�a˜œÑ%Ô%Ð%r%   c                 ó@   — t          ¦   «         sdnt          | ¦  «        S )z\
    Tests if `x` is a torch dtype or not. Safe to call even if torch is not installed.
    F)r   ru   rb   s    r#   Úis_torch_dtyperw   ¶   s!   € õ +Ñ,Ô,ÐDˆ5ˆ5µ/À!Ñ2DÔ2DÐDr%   c                 ó4   — dd l }t          | |j        ¦  «        S rf   )Ú
tensorflowr\   rh   ©rD   r>   s     r#   Ú_is_tensorflowr{   ½   s    € ØÐÐÐå�a˜œÑ#Ô#Ð#r%   c                 ó@   — t          ¦   «         sdnt          | ¦  «        S )zg
    Tests if `x` is a tensorflow tensor or not. Safe to call even if tensorflow is not installed.
    F)r   r{   rb   s    r#   rQ   rQ   Ã   s!   € õ (Ñ)Ô)Ð@ˆ5ˆ5­~¸aÑ/@Ô/@Ð@r%   c                 ó„   — dd l }t          |d¦  «        r|                     | ¦  «        S t          | ¦  «        |j        k    S )Nr   Úis_symbolic_tensor)ry   rs   r~   rB   rh   rz   s     r#   Ú_is_tf_symbolic_tensorr   Ê   sJ   € ØÐÐÐõ ˆrÐ'Ñ(Ô(ð (Ø×$Ò$ QÑ'Ô'Ð'Ý�‰7Œ7�b”iÒÐr%   c                 ó@   — t          ¦   «         sdnt          | ¦  «        S )z„
    Tests if `x` is a tensorflow symbolic tensor or not (ie. not eager). Safe to call even if tensorflow is not
    installed.
    F)r   r   rb   s    r#   Úis_tf_symbolic_tensorr�   Ó   s"   € õ
 (Ñ)Ô)ÐHˆ5ˆ5Õ/EÀaÑ/HÔ/HÐHr%   c                 ó8   — dd l m} t          | |j        ¦  «        S rf   )Ú	jax.numpyÚnumpyr\   ra   )rD   Újnps     r#   Ú_is_jaxr†   Û   s&   € ØÐÐÐÐÐå�a˜œÑ%Ô%Ð%r%   c                 ó@   — t          ¦   «         sdnt          | ¦  «        S )zY
    Tests if `x` is a Jax tensor or not. Safe to call even if jax is not installed.
    F)r   r†   rb   s    r#   rR   rR   á   s   € õ *Ñ+Ô+Ð;ˆ5ˆ5µ¸±´Ð;r%   c                 óÊ  — d„ d„ d„ d„ dœ}t          | t          t          f¦  «        rd„ |                      ¦   «         D ¦   «         S t          | t          t
          f¦  «        rd„ | D ¦   «         S t          | ¦  «        }|                     ¦   «         D ]#\  }} || ¦  «        r ||         | ¦  «        c S Œ$t          | t          j        ¦  «        r|  	                    ¦   «         S | S )zc
    Convert a TensorFlow tensor, PyTorch tensor, Numpy array or python list to a python list.
    c                 ór   — |                       ¦   «                              ¦   «                              ¦   «         S r&   )ÚdetachÚcpuÚtolist©r   s    r#   ú<lambda>zto_py_obj.<locals>.<lambda>î   s&   € ˜#Ÿ*š*™,œ,×*Ò*Ñ,Ô,×3Ò3Ñ5Ô5€ r%   c                 óN   — |                       ¦   «                              ¦   «         S r&   )r„   rŒ   r�   s    r#   rŽ   zto_py_obj.<locals>.<lambda>ï   s   € ˜#Ÿ)š)™+œ+×,Ò,Ñ.Ô.€ r%   c                 óN   — t          j        | ¦  «                             ¦   «         S r&   )r@   ÚasarrayrŒ   r�   s    r#   rŽ   zto_py_obj.<locals>.<lambda>ð   s   € �2œ: c™?œ?×1Ò1Ñ3Ô3€ r%   c                 ó*   — |                       ¦   «         S r&   )rŒ   r�   s    r#   rŽ   zto_py_obj.<locals>.<lambda>ñ   s   € ˜#Ÿ*š*™,œ,€ r%   rH   c                 ó4   — i | ]\  }}|t          |¦  «        “ŒS r*   ©Ú	to_py_obj©rJ   ÚkÚvs      r#   rO   zto_py_obj.<locals>.<dictcomp>õ   s$   € Ð8Ð8Ð8¡D A q�•9˜Q‘<”<Ð8Ð8Ð8r%   c                 ó,   — g | ]}t          |¦  «        ‘ŒS r*   r”   )rJ   Úos     r#   rL   zto_py_obj.<locals>.<listcomp>÷   s   € Ð*Ð*Ð* •	˜!‘”Ð*Ð*Ð*r%   )
r\   Údictr   ÚitemsÚlistÚtuplerW   r@   ÚnumberrŒ   )r   Úframework_to_py_objr]   Ú	frameworkr^   s        r#   r•   r•   è   s  € ð 6Ð5Ø.Ð.Ø3Ð3Ø&Ð&ð	ð Ðõ �#��hÐ'Ñ(Ô(ð +Ø8Ð8¨C¯IªI©K¬KÐ8Ñ8Ô8Ð8Ý	�C�$¥˜Ñ	'Ô	'ð +Ø*Ð* cÐ*Ñ*Ô*Ð*õ ;¸3Ñ?Ô?ÐØ 6× <Ò <Ñ >Ô >ð 7ð 7Ñˆ	�9Øˆ9�S‰>Œ>ð 	7Ø1Ð& yÔ1°#Ñ6Ô6Ð6Ð6Ð6ð	7õ �#•r”yÑ!Ô!ð Ø�zŠz‰|Œ|Ðàˆ
r%   c                 ó~  — d„ d„ d„ d„ dœ}t          | t          t          f¦  «        rd„ |                      ¦   «         D ¦   «         S t          | t          t
          f¦  «        rt          j        | ¦  «        S t          | ¦  «        }|                     ¦   «         D ]#\  }} || ¦  «        r ||         | ¦  «        c S Œ$| S )zc
    Convert a TensorFlow tensor, PyTorch tensor, Numpy array or python list to a Numpy array.
    c                 ór   — |                       ¦   «                              ¦   «                              ¦   «         S r&   )rŠ   r‹   r„   r�   s    r#   rŽ   zto_numpy.<locals>.<lambda>  s&   € ˜#Ÿ*š*™,œ,×*Ò*Ñ,Ô,×2Ò2Ñ4Ô4€ r%   c                 ó*   — |                       ¦   «         S r&   )r„   r�   s    r#   rŽ   zto_numpy.<locals>.<lambda>  s   € ˜#Ÿ)š)™+œ+€ r%   c                 ó*   — t          j        | ¦  «        S r&   )r@   r‘   r�   s    r#   rŽ   zto_numpy.<locals>.<lambda>  s   € �2œ: c™?œ?€ r%   c                 ó   — | S r&   r*   r�   s    r#   rŽ   zto_numpy.<locals>.<lambda>  s   € ˜#€ r%   rH   c                 ó4   — i | ]\  }}|t          |¦  «        “ŒS r*   )Úto_numpyr–   s      r#   rO   zto_numpy.<locals>.<dictcomp>  s$   € Ð7Ð7Ð7¡4 1 a�•8˜A‘;”;Ð7Ð7Ð7r%   )	r\   r›   r   rœ   r�   rž   r@   ÚarrayrW   )r   Úframework_to_numpyr]   r¡   r^   s        r#   r¨   r¨     sé   € ð 5Ð4Ø%Ð%Ø*Ð*Øˆoð	ð Ðõ �#��hÐ'Ñ(Ô(ð Ø7Ð7¨3¯9ª9©;¬;Ð7Ñ7Ô7Ð7Ý	�C�$¥˜Ñ	'Ô	'ð ÝŒx˜‰}Œ}Ðõ ;¸3Ñ?Ô?ÐØ 6× <Ò <Ñ >Ô >ð 6ð 6Ñˆ	�9Øˆ9�S‰>Œ>ð 	6Ø0Ð% iÔ0°Ñ5Ô5Ð5Ð5Ð5ð	6ð €Jr%   c                   ó„   ‡ — e Zd ZdZdd„Zˆ fd„Zd„ Zd„ Zd„ Zd	„ Z	d
„ Z
d„ Zˆ fd„Zˆ fd„Zˆ fd„Zdee         fd„Zˆ xZS )ÚModelOutputa±  
    Base class for all model outputs as dataclass. Has a `__getitem__` that allows indexing by integer or slice (like a
    tuple) or strings (like a dictionary) that will ignore the `None` attributes. Otherwise behaves like a regular
    python dictionary.

    <Tip warning={true}>

    You can't unpack a `ModelOutput` directly. Use the [`~utils.ModelOutput.to_tuple`] method to convert it to a tuple
    before.

    </Tip>
    ÚreturnNc                 óf   — t          ¦   «         r"t          j        | t          t          ¦  «         dS dS )zìRegister subclasses as pytree nodes.

        This is necessary to synchronize gradients when using `torch.nn.parallel.DistributedDataParallel` with
        `static_graph=True` with modules that output `ModelOutput` subclasses.
        N)r   Ú_torch_pytreeÚ_register_pytree_nodeÚ_model_output_flattenÚ_model_output_unflatten)Úclss    r#   Ú__init_subclass__zModelOutput.__init_subclass__.  sD   € õ ÑÔð 	ÝÔ/ØÝ%Ý'ñô ð ð ð ð	ð 	r%   c                 óÈ   •—  t          ¦   «         j        |i |¤Ž | j        t          k    }|r3t	          | ¦  «        s&t          | j        › d| j        j        › d�¦  «        ‚d S d S )Nú.za is not a dataclasss. This is a subclass of ModelOutput and so must use the @dataclass decorator.)ÚsuperÚ__init__Ú	__class__r¬   r	   Ú	TypeErrorr'   r   )r   ÚargsÚkwargsÚis_modeloutput_subclassr¹   s       €r#   r¸   zModelOutput.__init__;  s•   ø€ Ø�‰ŒÔ˜$Ð) &Ð)Ð)Ð)ð #'¤.µKÒ"?Ðà"ð 	­<¸Ñ+=Ô+=ð 	ÝØ”?ð _ð _ T¤^Ô%<ð _ð _ð _ñô ð ð	ð 	ð 	ð 	r%   c                 ó@  ‡ — t          ‰ ¦  «        }t          |¦  «        st          ‰ j        j        › d�¦  «        ‚t          d„ |dd…         D ¦   «         ¦  «        st          ‰ j        j        › d�¦  «        ‚t          ‰ |d         j        ¦  «        }t          ˆ fd„|dd…         D ¦   «         ¦  «        }|�r>t          |¦  «        �s.t          |t          ¦  «        r|                     ¦   «         }d}n%	 t          |¦  «        }d}n# t          $ r d	}Y nw xY w|rÅt          |¦  «        D ]±\  }}t          |t          t           f¦  «        r.t          |¦  «        d
k    rt          |d         t"          ¦  «        s,|dk    r|‰ |d         j        <   nt          d|› d�¦  «        ‚ n9t%          ‰ |d         |d         ¦  «         |d         �|d         ‰ |d         <   Œ²dS dS |�|‰ |d         j        <   dS dS |D ]#}t          ‰ |j        ¦  «        }	|	�
|	‰ |j        <   Œ$dS )zeCheck the ModelOutput dataclass.

        Only occurs if @dataclass decorator has been used.
        z has no fields.c              3   ó(   K  — | ]}|j         d u V — Œd S r&   )Údefault)rJ   Úfields     r#   ú	<genexpr>z,ModelOutput.__post_init__.<locals>.<genexpr>T  s)   è è € ÐGÐG¨U�5”= DÐ(ÐGÐGÐGÐGÐGÐGr%   r   Nz. should not have more than one required field.r   c              3   óF   •K  — | ]}t          ‰|j        ¦  «        d u V — Œd S r&   ©r   Úname©rJ   rÁ   r   s     €r#   rÂ   z,ModelOutput.__post_init__.<locals>.<genexpr>X  s4   øè è € Ð#dÐ#dÈ%¥G¨D°%´*Ñ$=Ô$=ÀÐ$EÐ#dÐ#dÐ#dÐ#dÐ#dÐ#dr%   TFé   zCannot set key/value for z&. It needs to be a tuple (key, value).)r   Úlenr9   r¹   r   Úallr   rÅ   r_   r\   r›   rœ   Úiterrº   Ú	enumerater�   rž   rA   r   )
r   Úclass_fieldsÚfirst_fieldÚother_fields_are_noneÚiteratorÚfirst_field_iteratorÚidxÚelementrÁ   r˜   s
   `         r#   Ú__post_init__zModelOutput.__post_init__J  s¦  ø€ õ
 ˜d‘|”|ˆõ �<Ñ Ô ð 	JÝ ¤Ô 7ÐHÐHÐHÑIÔIÐIÝÐGÐG°lÀ1À2À2Ô6FÐGÑGÔGÑGÔGð 	iÝ ¤Ô 7ÐgÐgÐgÑhÔhÐhå˜d L°¤OÔ$8Ñ9Ô9ˆÝ #Ð#dÐ#dÐ#dÐ#dÐS_Ð`aÐ`bÐ`bÔScÐ#dÑ#dÔ#dÑ dÔ dÐà ñ &	)­°;Ñ)?Ô)?ñ &	)Ý˜+¥tÑ,Ô,ð 1Ø&×,Ò,Ñ.Ô.�Ø'+Ð$Ð$ð1Ý# KÑ0Ô0�HØ+/Ð(Ð(øÝ ð 1ð 1ð 1Ø+0Ð(Ð(Ð(ð1øøøð
 $ð 9Ý$-¨hÑ$7Ô$7ð 6ð 6‘L�C˜å& wµµu°Ñ>Ô>ðå" 7™|œ|¨qÒ0Ð0Ý)¨'°!¬*µcÑ:Ô:ð  1ð  !š8˜8à9D˜D ¨a¤Ô!5Ñ6Ð6õ #-Ø k¸GÐ kÐ kÐ kñ#ô #ð ð ˜Ý˜D '¨!¤*¨g°a¬jÑ9Ô9Ð9Ø˜q”zÐ-Ø+2°1¬:˜˜W QœZÑ(øð#6ð 6ð ˜ð Ð(Ø-8��\ !”_Ô)Ñ*Ð*Ð*ð )Ð(ð &ð )ð )�Ý˜D %¤*Ñ-Ô-�Ø�=Ø'(�D˜œÑ$øð)ð )s   Ã7D	 Ä	DÄDc                 ó<   — t          d| j        j        › d�¦  «        ‚)Nz$You cannot use ``__delitem__`` on a ú
 instance.©Ú	Exceptionr¹   r   ©r   r»   r¼   s      r#   Ú__delitem__zModelOutput.__delitem__‚  s!   € ÝÐb¸t¼~Ô?VÐbÐbÐbÑcÔcÐcr%   c                 ó<   — t          d| j        j        › d�¦  «        ‚)Nz#You cannot use ``setdefault`` on a rÕ   rÖ   rØ   s      r#   Ú
setdefaultzModelOutput.setdefault…  s!   € ÝÐa¸d¼nÔ>UÐaÐaÐaÑbÔbÐbr%   c                 ó<   — t          d| j        j        › d�¦  «        ‚)NzYou cannot use ``pop`` on a rÕ   rÖ   rØ   s      r#   ÚpopzModelOutput.popˆ  s!   € ÝÐZ°t´~Ô7NÐZÐZÐZÑ[Ô[Ð[r%   c                 ó<   — t          d| j        j        › d�¦  «        ‚)NzYou cannot use ``update`` on a rÕ   rÖ   rØ   s      r#   ÚupdatezModelOutput.update‹  s!   € ÝÐ]¸$¼.Ô:QÐ]Ð]Ð]Ñ^Ô^Ð^r%   c                 ó²   — t          |t          ¦  «        r)t          |                      ¦   «         ¦  «        }||         S |                      ¦   «         |         S r&   )r\   rA   r›   rœ   Úto_tuple)r   r—   Ú
inner_dicts      r#   Ú__getitem__zModelOutput.__getitem__Ž  sF   € Ý�a�ÑÔð 	&Ý˜dŸjšj™lœlÑ+Ô+ˆJØ˜a”=Ð à—=’=‘?”? 1Ô%Ð%r%   c                 óÀ   •— ||                       ¦   «         v r$|�"t          ¦   «                              ||¦  «         t          ¦   «                              ||¦  «         d S r&   )Úkeysr·   Ú__setitem__Ú__setattr__)r   rÅ   Úvaluer¹   s      €r#   rç   zModelOutput.__setattr__•  sU   ø€ Ø�4—9’9‘;”;ÐÐ 5Ð#4å‰GŒG×Ò  eÑ,Ô,Ð,Ý‰Œ×Ò˜D %Ñ(Ô(Ð(Ð(Ð(r%   c                 ó�   •— t          ¦   «                              ||¦  «         t          ¦   «                              ||¦  «         d S r&   )r·   ræ   rç   )r   Úkeyrè   r¹   s      €r#   ræ   zModelOutput.__setitem__›  s=   ø€ å‰Œ×Ò˜C Ñ'Ô'Ð'å‰Œ×Ò˜C Ñ'Ô'Ð'Ð'Ð'r%   c                 ó  •‡ — t          ‰ ¦  «        s t          ¦   «                              ¦   «         S t          ¦   «                              ¦   «         ^}}}t          ˆ fd„t	          ‰ ¦  «        D ¦   «         ¦  «        }||g|¢R S )Nc              3   óB   •K  — | ]}t          ‰|j        ¦  «        V — Œd S r&   rÄ   rÆ   s     €r#   rÂ   z)ModelOutput.__reduce__.<locals>.<genexpr>¥  s/   øè è € ÐIÐI°5•W˜T 5¤:Ñ.Ô.ÐIÐIÐIÐIÐIÐIr%   )r	   r·   Ú
__reduce__rž   r   )r   ÚcallableÚ_argsÚ	remainingr»   r¹   s   `    €r#   rí   zModelOutput.__reduce__¡  s�   øø€ Ý˜DÑ!Ô!ð 	(Ý‘7”7×%Ò%Ñ'Ô'Ð'Ý&+¡g¤g×&8Ò&8Ñ&:Ô&:Ð#ˆ�%˜)ÝÐIÐIÐIÐI½FÀ4¹L¼LÐIÑIÔIÑIÔIˆØ˜Ð) 	Ð)Ð)Ð)r%   c                 ó^   ‡ — t          ˆ fd„‰                      ¦   «         D ¦   «         ¦  «        S )za
        Convert self to a tuple containing all the attributes/keys that are not `None`.
        c              3   ó(   •K  — | ]}‰|         V — Œd S r&   r*   )rJ   r—   r   s     €r#   rÂ   z'ModelOutput.to_tuple.<locals>.<genexpr>¬  s'   øè è € Ð2Ð2 �T˜!”WÐ2Ð2Ð2Ð2Ð2Ð2r%   )rž   rå   )r   s   `r#   rá   zModelOutput.to_tuple¨  s0   ø€ õ Ð2Ð2Ð2Ð2 d§i¢i¡k¤kÐ2Ñ2Ô2Ñ2Ô2Ð2r%   )r­   N)r   r'   r(   r)   r´   r¸   rÓ   rÙ   rÛ   rÝ   rß   rã   rç   ræ   rí   r   r   rá   Ú__classcell__)r¹   s   @r#   r¬   r¬      s'  ø€ € € € € ðð ðð ð ð ðð ð ð ð ð6)ð 6)ð 6)ðpdð dð dðcð cð cð\ð \ð \ð_ð _ð _ð&ð &ð &ð)ð )ð )ð )ð )ð(ð (ð (ð (ð (ð*ð *ð *ð *ð *ð3˜% œ*ð 3ð 3ð 3ð 3ð 3ð 3ð 3ð 3r%   r¬   Úoutputr­   z_torch_pytree.Contextc                 ó¤   — t          |                      ¦   «         ¦  «        t          | ¦  «        t          |                      ¦   «         ¦  «        ffS r&   )r�   rZ   rB   rå   )rô   s    r#   r±   r±   ²  s8   € Ý�F—M’M‘O”OÑ$Ô$¥t¨F¡|¤|µT¸&¿+º+¹-¼-Ñ5HÔ5HÐ&IÐIÐIr%   rZ   Úcontextc           
      óR   — |\  }} |di t          t          || ¦  «        ¦  «        ¤ŽS )Nr*   )r›   Úzip)rZ   rö   Úoutput_typerå   s       r#   r²   r²   µ  s4   € Ø#Ñˆ�TØˆ{Ð5Ð5�T¥# d¨FÑ"3Ô"3Ñ4Ô4Ð5Ð5Ð5r%   c                   ó(   — e Zd ZdZed„ ¦   «         ZdS )ÚExplicitEnumzC
    Enum with more explicit error message for missing values.
    c           
      ó‚   — t          |› d| j        › dt          | j                             ¦   «         ¦  «        › �¦  «        ‚)Nz is not a valid z, please select one of )r9   r   r�   Ú_value2member_map_rå   )r³   rè   s     r#   Ú	_missing_zExplicitEnum._missing_Å  sG   € åØÐpÐp c¤lÐpÐpÍ4ÐPSÔPf×PkÒPkÑPmÔPmÑKnÔKnÐpÐpñ
ô 
ð 	
r%   N)r   r'   r(   r)   Úclassmethodrþ   r*   r%   r#   rû   rû   À  s9   € € € € € ðð ð ð
ð 
ñ „[ð
ð 
ð 
r%   rû   c                   ó   — e Zd ZdZdZdZdZdS )ÚPaddingStrategyz†
    Possible values for the `padding` argument in [`PreTrainedTokenizerBase.__call__`]. Useful for tab-completion in an
    IDE.
    ÚlongestÚ
max_lengthÚ
do_not_padN)r   r'   r(   r)   ÚLONGESTÚ
MAX_LENGTHÚ
DO_NOT_PADr*   r%   r#   r  r  Ì  s)   € € € € € ðð ð
 €GØ€JØ€J€J€Jr%   r  c                   ó"   — e Zd ZdZdZdZdZdZdS )Ú
TensorTypez�
    Possible values for the `return_tensors` argument in [`PreTrainedTokenizerBase.__call__`]. Useful for
    tab-completion in an IDE.
    r=   r>   r@   r?   N)r   r'   r(   r)   ÚPYTORCHÚ
TENSORFLOWÚNUMPYÚJAXr*   r%   r#   r	  r	  ×  s.   € € € € € ðð ð
 €GØ€JØ€EØ
€C€C€Cr%   r	  c                   ó6   — e Zd ZdZdee         fd„Zd„ Zd„ ZdS )ÚContextManagerszš
    Wrapper for `contextlib.ExitStack` which enters a collection of context managers. Adaptation of `ContextManagers`
    in the `fastcore` library.
    Úcontext_managersc                 ó:   — || _         t          ¦   «         | _        d S r&   )r  r   Ústack)r   r  s     r#   r¸   zContextManagers.__init__é  s   € Ø 0ˆÔÝ‘[”[ˆŒ
ˆ
ˆ
r%   c                 óN   — | j         D ]}| j                             |¦  «         Œd S r&   )r  r  Úenter_context)r   Úcontext_managers     r#   Ú	__enter__zContextManagers.__enter__í  s7   € Ø#Ô4ð 	6ð 	6ˆOØŒJ×$Ò$ _Ñ5Ô5Ð5Ð5ð	6ð 	6r%   c                 ó*   —  | j         j        |i |¤Ž d S r&   )r  Ú__exit__rØ   s      r#   r  zContextManagers.__exit__ñ  s"   € ØˆŒ
Ô˜TÐ, VÐ,Ð,Ð,Ð,Ð,r%   N)	r   r'   r(   r)   r   r   r¸   r  r  r*   r%   r#   r  r  ã  s\   € € € € € ðð ð
!¨¨nÔ)=ð !ð !ð !ð !ð6ð 6ð 6ð-ð -ð -ð -ð -r%   r  c                 ó$  — t          | ¦  «        }|dk    rt          j        | j        ¦  «        }n9|dk    rt          j        | j        ¦  «        }nt          j        | j        ¦  «        }|j        D ]}|dk    r|j        |         j        du r dS Œ dS )zr
    Check if a given model can return loss.

    Args:
        model_class (`type`): The class of the model.
    r>   r=   Úreturn_lossTF)Úinfer_frameworkÚinspectÚ	signatureÚcallÚforwardÚ__call__Ú
parametersrÀ   )Úmodel_classr¡   r  Úps       r#   Úcan_return_lossr$  õ  s£   € õ   Ñ,Ô,€IØ�DÒÐÝÔ% kÔ&6Ñ7Ô7ˆ	ˆ	Ø	�dÒ	Ð	ÝÔ% kÔ&9Ñ:Ô:ˆ	ˆ	åÔ% kÔ&:Ñ;Ô;ˆ	àÔ!ð ð ˆØ�ÒÐ )Ô"6°qÔ"9Ô"AÀTÐ"IÐ"IØ�4�4øàˆ5r%   c                 ó,  — | j         }t          | ¦  «        }|dk    rt          j        | j        ¦  «        }n9|dk    rt          j        | j        ¦  «        }nt          j        | j        ¦  «        }d|v rd„ |j        D ¦   «         S d„ |j        D ¦   «         S )zq
    Find the labels used by a given model.

    Args:
        model_class (`type`): The class of the model.
    r>   r=   ÚQuestionAnsweringc                 ó"   — g | ]}d |v s|dv ¯
|‘ŒS )Úlabel)Ústart_positionsÚend_positionsr*   ©rJ   r#  s     r#   rL   zfind_labels.<locals>.<listcomp>  s+   € ÐmÐmÐm�a°7¸a°<°<À1ÐHlÐClÐCl�ÐClÐClÐClr%   c                 ó   — g | ]}d |v ¯|‘Œ	S )r(  r*   r+  s     r#   rL   zfind_labels.<locals>.<listcomp>  s   € Ð@Ð@Ð@�a°7¸a°<°<�°<°<°<r%   )r   r  r  r  r  r  r   r!  )r"  Ú
model_namer¡   r  s       r#   Úfind_labelsr.    s¥   € ð Ô%€JÝ Ñ,Ô,€IØ�DÒÐÝÔ% kÔ&6Ñ7Ô7ˆ	ˆ	Ø	�dÒ	Ð	ÝÔ% kÔ&9Ñ:Ô:ˆ	ˆ	åÔ% kÔ&:Ñ;Ô;ˆ	à˜jÐ(Ð(ØmÐm˜9Ô/ÐmÑmÔmÐmà@Ð@˜9Ô/Ð@Ñ@Ô@Ð@r%   Ú r¶   ÚdÚ
parent_keyÚ	delimiterc                 ó>   — dd„}t           || ||¦  «        ¦  «        S )z/Flatten a nested dict into a single level dict.r/  r¶   c              3   ó  K  — |                       ¦   «         D ]s\  }}|r"t          |¦  «        |z   t          |¦  «        z   n|}|r@t          |t          ¦  «        r+t	          |||¬¦  «                              ¦   «         E d {V —† Œm||fV — Œtd S )N)r2  )rœ   rA   r\   r   Úflatten_dict)r0  r1  r2  r—   r˜   rê   s         r#   Ú_flatten_dictz#flatten_dict.<locals>._flatten_dict$  s®   è è € Ø—G’G‘I”Ið 	ð 	‰DˆAˆqØ:DÐK•#�j‘/”/ IÑ-µ°A±´Ñ6Ð6È!ˆCØð •Z ¥>Ñ2Ô2ð Ý'¨¨3¸)ÐDÑDÔD×JÒJÑLÔLÐLÐLÐLÐLÐLÐLÐLÐLà˜1�f����ð	ð 	r%   ©r/  r¶   )r›   )r0  r1  r2  r6  s       r#   r5  r5  !  s4   € ðð ð ð õ ��˜a ¨YÑ7Ô7Ñ8Ô8Ð8r%   FÚuse_temp_dirc              #   óz   K  — |r2t          j        ¦   «         5 }|V — d d d ¦  «         d S # 1 swxY w Y   d S | V — d S r&   )ÚtempfileÚTemporaryDirectory)Úworking_dirr8  Útmp_dirs      r#   Úworking_or_temp_dirr>  /  s›   è è € àð ÝÔ(Ñ*Ô*ð 	¨gØˆMˆMˆMð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	ð ÐÐÐÐÐs   ˜*ª.±.c                 ón  — t          | ¦  «        rt          j        | |¬¦  «        S t          | ¦  «        r|€| j        n	 | j        |Ž S t          | ¦  «        rddl}|                     | |¬¦  «        S t          | ¦  «        rt          j        | |¬¦  «        S t          dt          | ¦  «        › d�¦  «        ‚)z…
    Framework-agnostic version of `numpy.transpose` that will work on torch/TensorFlow/Jax tensors as well as NumPy
    arrays.
    )ÚaxesNr   )Úpermz"Type not supported for transpose: r¶   )rS   r@   Ú	transposerP   ÚTÚpermuterQ   ry   rR   r…   r9   rB   )r©   r@  r>   s      r#   rB  rB  8  sÍ   € õ
 �eÑÔð NÝŒ|˜E¨Ð-Ñ-Ô-Ð-Ý	˜Ñ	Ô	ð 	NØ˜,ˆuŒwˆw¨M¨E¬M¸4Ð,@Ð@Ý	�eÑ	Ô	ð NØÐÐÐà�|Š|˜E¨ˆ|Ñ-Ô-Ð-Ý	�uÑ	Ô	ð NÝŒ}˜U¨Ð.Ñ.Ô.Ð.åÐL½dÀ5¹k¼kÐLÐLÐLÑMÔMÐMr%   c                 óV  — t          | ¦  «        rt          j        | |¦  «        S t          | ¦  «        r
 | j        |Ž S t	          | ¦  «        rddl}|                     | |¦  «        S t          | ¦  «        rt          j        | |¦  «        S t          dt          | ¦  «        › d�¦  «        ‚)zƒ
    Framework-agnostic version of `numpy.reshape` that will work on torch/TensorFlow/Jax tensors as well as NumPy
    arrays.
    r   Nz Type not supported for reshape: r¶   )
rS   r@   ÚreshaperP   rQ   ry   rR   r…   r9   rB   )r©   Únewshaper>   s      r#   rF  rF  K  s»   € õ
 �eÑÔð LÝŒz˜% Ñ*Ô*Ð*Ý	˜Ñ	Ô	ð 	LØˆuŒ}˜hÐ'Ð'Ý	�eÑ	Ô	ð LØÐÐÐà�zŠz˜% Ñ*Ô*Ð*Ý	�uÑ	Ô	ð LÝŒ{˜5 (Ñ+Ô+Ð+åÐJ½DÀ¹K¼KÐJÐJÐJÑKÔKÐKr%   c                 ó   — t          | ¦  «        rt          j        | |¬¦  «        S t          | ¦  «        r,|€|                      ¦   «         n|                      |¬¦  «        S t	          | ¦  «        rddl}|                     | |¬¦  «        S t          | ¦  «        rt          j        | |¬¦  «        S t          dt          | ¦  «        › d�¦  «        ‚)zƒ
    Framework-agnostic version of `numpy.squeeze` that will work on torch/TensorFlow/Jax tensors as well as NumPy
    arrays.
    ©ÚaxisN©Údimr   z Type not supported for squeeze: r¶   )
rS   r@   ÚsqueezerP   rQ   ry   rR   r…   r9   rB   ©r©   rJ  r>   s      r#   rM  rM  ^  sØ   € õ
 �eÑÔð LÝŒz˜% dÐ+Ñ+Ô+Ð+Ý	˜Ñ	Ô	ð 	LØ"& ,ˆu�}Š}‰Œˆ°E·M²MÀd°MÑ4KÔ4KÐKÝ	�eÑ	Ô	ð LØÐÐÐà�zŠz˜% dˆzÑ+Ô+Ð+Ý	�uÑ	Ô	ð LÝŒ{˜5 tÐ,Ñ,Ô,Ð,åÐJ½DÀ¹K¼KÐJÐJÐJÑKÔKÐKr%   c                 ór  — t          | ¦  «        rt          j        | |¦  «        S t          | ¦  «        r|                      |¬¦  «        S t          | ¦  «        rddl}|                     | |¬¦  «        S t          | ¦  «        rt          j        | |¬¦  «        S t          dt          | ¦  «        › d�¦  «        ‚)z‡
    Framework-agnostic version of `numpy.expand_dims` that will work on torch/TensorFlow/Jax tensors as well as NumPy
    arrays.
    rK  r   NrI  ú$Type not supported for expand_dims: r¶   )rS   r@   Úexpand_dimsrP   Ú	unsqueezerQ   ry   rR   r…   r9   rB   rN  s      r#   rQ  rQ  q  sÅ   € õ
 �eÑÔð PÝŒ~˜e TÑ*Ô*Ð*Ý	˜Ñ	Ô	ð 	PØ�Š 4ˆÑ(Ô(Ð(Ý	�eÑ	Ô	ð PØÐÐÐà�~Š~˜e¨$ˆ~Ñ/Ô/Ð/Ý	�uÑ	Ô	ð PÝŒ˜u¨4Ð0Ñ0Ô0Ð0åÐNÅÀUÁÄÐNÐNÐNÑOÔOÐOr%   c                 óJ  — t          | ¦  «        rt          j        | ¦  «        S t          | ¦  «        r|                      ¦   «         S t          | ¦  «        rddl}|                     | ¦  «        S t          | ¦  «        r| j        S t          dt          | ¦  «        › d�¦  «        ‚)z|
    Framework-agnostic version of `numpy.size` that will work on torch/TensorFlow/Jax tensors as well as NumPy arrays.
    r   NrP  r¶   )
rS   r@   ÚsizerP   ÚnumelrQ   ry   rR   r9   rB   )r©   r>   s     r#   Útensor_sizerV  „  s¨   € õ �eÑÔð PÝŒw�u‰~Œ~ÐÝ	˜Ñ	Ô	ð 	PØ�{Š{‰}Œ}ÐÝ	�eÑ	Ô	ð PØÐÐÐà�wŠw�u‰~Œ~ÐÝ	�uÑ	Ô	ð PØŒzÐåÐNÅÀUÁÄÐNÐNÐNÑOÔOÐOr%   c                 ó¸   ‡— |                       ¦   «         D ]C\  }}t          |t          t          f¦  «        rˆfd„|D ¦   «         | |<   Œ3|�d|vr
‰› d|› �| |<   ŒD| S )zB
    Adds the information of the repo_id to a given auto map.
    c                 ó.   •— g | ]}|�d|vr‰› d|› �n|‘ŒS )Nú--r*   )rJ   r˜   Úrepo_ids     €r#   rL   z.add_model_info_to_auto_map.<locals>.<listcomp>œ  s;   ø€ ÐjÐjÐjÐ_`°1°=ÀTÐQRÀ]À] Ð.Ð.¨1Ð.Ð.Ð.ÐYZÐjÐjÐjr%   NrY  )rœ   r\   rž   r�   )Úauto_maprZ  rê   rè   s    `  r#   Úadd_model_info_to_auto_mapr\  –  s…   ø€ ð —n’nÑ&Ô&ð 2ð 2‰
ˆˆUÝ�e�e¥T˜]Ñ+Ô+ð 	2ØjÐjÐjÐjÐdiÐjÑjÔjˆH�S‰MˆMØÐ 4¨uÐ#4Ð#4Ø&Ð1Ð1¨%Ð1Ð1ˆH�S‰Møà€Or%   c                 óz  — t          j        | ¦  «        D ]”}|j        }|j        }|                     d¦  «        s|                     d¦  «        s|dk    r dS |                     d¦  «        s|dk    r dS |                     d¦  «        s|                     d	¦  «        s|d
k    r dS Œ•t          d| › d�¦  «        ‚)z 
    Infers the framework of a given model without using isinstance(), because we cannot guarantee that the relevant
    classes are imported or available.
    ry   ÚkerasÚTFPreTrainedModelr>   rg   ÚPreTrainedModelr=   Úflaxr?   ÚFlaxPreTrainedModelz%Could not infer framework from class r¶   )r  Úgetmror'   r   rC   rº   )r"  Ú
base_classÚmodulerÅ   s       r#   r  r  £  sô   € õ
 ”n [Ñ1Ô1ð 
Pð 
Pˆ
ØÔ&ˆØÔ"ˆØ×Ò˜\Ñ*Ô*ð 	¨f×.?Ò.?ÀÑ.HÔ.Hð 	ÈDÐTgÒLgÐLgØ�4�4Ø×Ò˜wÑ'Ô'ð 	¨4Ð3DÒ+DÐ+DØ�4�4Ø×Ò˜vÑ&Ô&ð 	¨&×*;Ò*;¸EÑ*BÔ*Bð 	ÀdÐNcÒFcÐFcØ�6�6ð Gdõ ÐNÀÐNÐNÐNÑOÔOÐOr%   r7  )Fr&   )Nr)   r  r:  Úcollectionsr   r   Úcollections.abcr   Ú
contextlibr   r   Údataclassesr   r	   Úenumr
   Útypingr   r   r   r   r   r„   r@   Úimport_utilsr   r   r   r   rƒ   r…   Úpropertyr   r;   rF   rW   r_   rc   rS   rj   rP   ro   rq   ru   rw   r{   rQ   r   r�   r†   rR   r•   r¨   r¬   Útorch.utils._pytreeÚutilsÚ_pytreer¯   r±   r²   r°   rA   rû   r  r	  r  r$  r.  r5  Úboolr>  rB  rF  rM  rQ  rV  r\  r  r*   r%   r#   ú<module>rr     s  ððð ð €€€Ø €€€Ø -Ð -Ð -Ð -Ð -Ð -Ð -Ð -Ø *Ð *Ð *Ð *Ð *Ð *Ø 0Ð 0Ð 0Ð 0Ð 0Ð 0Ð 0Ð 0Ø ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ø Ð Ð Ð Ð Ð Ø =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =à Ð Ð Ð à cÐ cÐ cÐ cÐ cÐ cÐ cÐ cÐ cÐ cÐ cÐ cð ÐÑÔð ØÐÐÐÐÐðð ð ð ð �hñ ô ð ð05ð 5ð 5ðð ð ð 9ð 9ð 9ð(ð ð ð0%ð %ð %ðð ð ð'ð 'ð 'ð?ð ?ð ?ð'ð 'ð 'ðFð Fð Fð&ð &ð &ðEð Eð Eð$ð $ð $ðAð Að Að ð  ð  ðIð Ið Ið&ð &ð &ð<ð <ð <ðð ð ð<ð ð ð4L3ð L3ð L3ð L3ð L3�+ñ L3ô L3ð L3ð^ ÐÑÔð Ø/Ð/Ð/Ð/Ð/Ð/Ð/Ð/Ð/ðJ kð J°e¸DÀ¼IÐG^Ð<^Ô6_ð Jð Jð Jð Jð6¨°¬ð 6Ð@Wð 6Ð\gð 6ð 6ð 6ð 6ð (€MÔ'ØØØñô ð ð	
ð 	
ð 	
ð 	
ð 	
�3˜ñ 	
ô 	
ð 	
ðð ð ð ð �lñ ô ð ð	ð 	ð 	ð 	ð 	�ñ 	ô 	ð 	ð-ð -ð -ð -ð -ñ -ô -ð -ð$ð ð ð,Að Að Að,9ð 9�Nð 9°ð 9ÀSð 9ð 9ð 9ð 9ð ðð °4ð ð ð ñ „ððNð Nð Nð Nð&Lð Lð Lð&Lð Lð Lð Lð&Pð Pð Pð&Pð Pð Pð$
ð 
ð 
ðPð Pð Pð Pð Pr%   