§
    ‚ŠtjÒ  ã                   ó¬   — d Z ddlZddlZddlZddlZddlmZ ej        ej	        ej
        ej        ej        ej        dœZd„ Zddededz  ddfd	„Zd
„ ZdS )z-
Utilities for working with package versions
é    N)Úversion)ú<z<=ú==z!=z>=ú>c                 óî   — |�|€t          d|› d|› d|› d|› d�	¦  «        ‚t          |          t          j        |¦  «        t          j        |¦  «        ¦  «        st	          |› d|› d|› d|› �¦  «        ‚d S )NzUnable to compare versions for z: need=z found=z). This is unusual. Consider reinstalling ú.z@ is required for a normal functioning of this module, but found r   )Ú
ValueErrorÚopsr   ÚparseÚImportError)ÚopÚgot_verÚwant_verÚrequirementÚpkgÚhints         úY/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/transformers/utils/versions.pyÚ_compare_versionsr   $   sÆ   € Ø€˜(Ð*Ýð$¨kð $ð $À(ð $ð $ÐSZð $ð $Ø ð$ð $ð $ñ
ô 
ð 	
õ ˆrŒ7•7”= Ñ)Ô)­7¬=¸Ñ+BÔ+BÑCÔCð 
ÝØÐsÐsÐ\_ÐsÐsÐcjÐsÐsÐmqÐsÐsñ
ô 
ð 	
ð
ð 
ó    r   r   Úreturnc           	      óØ  — |�d|› �nd}t          j        d| ¦  «        r| dd}}}nÍt          j        d| ¦  «        }|st          d| › �¦  «        ‚|d         \  }}|                     d¦  «        }i }|D ]}	t          j        d	|	¦  «        }|st          d| › �¦  «        ‚|d         \  }}|||<   |t
          vr;t          | › d
t          t
                               ¦   «         ¦  «        › d|› �¦  «        ‚Œ€|dk    rad                     d„ t          j
        dd…         D ¦   «         ¦  «        }
|                     ¦   «         D ]\  }}t          ||
|| ||¦  «         ŒdS 	 t          j                             |¦  «        }
n=# t          j        j        $ r& t          j                             d| › d|› �¦  «        ‚w xY w|�.|                     ¦   «         D ]\  }}t          ||
|| ||¦  «         ŒdS dS )a/  
    Perform a runtime check of the dependency versions, using the exact same syntax used by pip.

    The installed module version comes from the *site-packages* dir via *importlib.metadata*.

    Args:
        requirement (`str`): pip style definition, e.g.,  "tokenizers==0.9.4", "tqdm>=4.60", "numpy"
        hint (`str`, *optional*): what suggestion to print in case of requirements not being met

    Example:

    ```python
    require_version("pandas>1.1.2")
    require_version("numpy>1.18.5", "this is important to have for whatever reason")
    ```Nú
Ú z^[\w_\-\d]+$z^([^!=<>\s]+)([\s!=<>]{1,2}.+)zgrequirement needs to be in the pip package format, .e.g., package_a==1.23, or package_b>=1.23, but got r   ú,z^([\s!=<>]{1,2})(.+)z: need one of z
, but got Úpythonr   c                 ó,   — g | ]}t          |¦  «        ‘ŒS © )Ústr)Ú.0Úxs     r   ú
<listcomp>z#require_version.<locals>.<listcomp>^   s   € ÐAÐAÐA q�C ™FœFÐAÐAÐAr   é   zThe 'zB' distribution was not found and is required by this application. )ÚreÚmatchÚfindallr	   Úsplitr
   ÚlistÚkeysÚjoinÚsysÚversion_infoÚitemsr   Ú	importlibÚmetadatar   ÚPackageNotFoundError)r   r   r   r   r   r$   Ú	want_fullÚ
want_rangeÚwantedÚwr   s              r   Úrequire_versionr4   0   s€  € ð" Ð*ˆ;�ˆ;ˆ;ˆ;°€Dõ 
„x� Ñ-Ô-ð aØ'¨¨t�ˆRˆˆå”
Ð<¸kÑJÔJˆØð 	Ýð&Ø#ð&ð &ñô ð ð ˜qœ‰ˆˆYØ—_’_ SÑ)Ô)ˆ
ØˆØð 
	að 
	aˆAÝ”JÐ6¸Ñ:Ô:ˆEØð Ý ð.Ø +ð.ð .ñô ð ð ! œ8‰LˆB�Ø!ˆF�2‰JØ�ˆ}ˆ}Ý  KÐ!_Ð!_½tÅCÇHÂHÁJÄJÑ?OÔ?OÐ!_Ð!_Ð[]Ð!_Ð!_Ñ`Ô`Ð`ð ð ˆh‚€Ø—(’(ÐAÐA­CÔ,<¸R¸a¸RÔ,@ÐAÑAÔAÑBÔBˆØ"ŸLšL™NœNð 	Mð 	M‰LˆB�Ý˜b '¨8°[À#ÀtÑLÔLÐLÐLØˆð
ÝÔ$×,Ò,¨SÑ1Ô1ˆˆøÝÔÔ2ð 
ð 
ð 
ÝÔ ×5Ò5Øi�KÐiÐiÐcgÐiÐiñ
ô 
ð 	
ð
øøøð ÐØ"ŸLšL™NœNð 	Mð 	M‰LˆB�Ý˜b '¨8°[À#ÀtÑLÔLÐLÐLð Ðð	Mð 	Ms   ÅE; Å;:F5c                 ó&   — d}t          | |¦  «        S )zCrequire_version wrapper which emits a core-specific hint on failurez_Try: `pip install transformers -U` or `pip install -e '.[dev]'` if you're working with git main)r4   )r   r   s     r   Úrequire_version_corer6   q   s   € àl€DÝ˜;¨Ñ-Ô-Ð-r   )N)Ú__doc__Úimportlib.metadatar-   Úoperatorr#   r*   Ú	packagingr   ÚltÚleÚeqÚneÚgeÚgtr
   r   r   r4   r6   r   r   r   ú<module>rA      sÙ   ððð ð Ð Ð Ð Ø €€€Ø 	€	€	€	Ø 
€
€
€
à Ð Ð Ð Ð Ð ð 
ŒØ
Œ+Ø
Œ+Ø
Œ+Ø
Œ+Ø	Œðð €ð	
ð 	
ð 	
ð>Mð >M ð >M¨C°$©Jð >MÀ$ð >Mð >Mð >Mð >MðB.ð .ð .ð .ð .r   