Ë
    Ã?ÆiÜ  ã                  óh   — d Z ddlmZ ddlZddl­ ddlmZmZmZ  e	«       Z
d
d„Zdd„Zdd„Zdd	„Zy)a  VATIN (International value added tax identification number)

The number VAT identification number (VATIN) is an identifier used in many
countries. It starts with an ISO 3166-1 alpha-2 (2 letters) country code
(except for Greece, which uses EL, instead of GR) and is followed by the
country-specific identifier.

This module supports all VAT numbers that are supported in python-stdnum.

More information:

* https://en.wikipedia.org/wiki/VAT_identification_number

>>> validate('FR 40 303 265 045')
'FR40303265045'
>>> validate('DE136,695 976')
'DE136695976'
>>> validate('BR16.727.230/0001-97')
'BR16727230000197'
>>> validate('FR 40 303')
Traceback (most recent call last):
    ...
InvalidLength: ...
>>> validate('XX')
Traceback (most recent call last):
    ...
InvalidComponent: ...
é    )ÚannotationsN)Ú*)ÚNumberValidationModuleÚcleanÚget_cc_modulec                ó  — | j                  «       j                  dd«      j                  dd«      } t        j                  d| «      s
t	        «       ‚| t
        vrt        | d«      t
        | <   t
        |    }|s
t        «       ‚|S )z4Get the VAT number module based on the country code.ÚelÚgrÚxiÚgbz
^[a-z]{2}$Úvat)ÚlowerÚreplaceÚreÚmatchÚInvalidFormatÚ_country_modulesr   ÚInvalidComponent)ÚccÚmodules     úS/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/vatin.pyÚ_get_cc_moduler   >   su   € ð 
�‰‹×	Ñ	˜D $Ó	'×	/Ñ	/°°dÓ	;€BÜ�8‰8�M 2Ô&Ü‹oÐØ	Ô!Ñ!Ü,¨R°Ó7Ô˜ÑÜ˜bÑ!€FÙÜÓ Ð Ø€Mó    c                óâ   — t        | «      j                  «       } t        | dd «      }	 | dd j                  «       |j	                  | dd «      z   S # t
        $ r |j	                  | «      cY S w xY w)z1Convert the number to the minimal representation.Né   )r   Ústripr   ÚupperÚcompactÚValidationError©Únumberr   s     r   r   r   L   sp   € ä�6‹]× Ñ Ó"€FÜ˜F 2 A˜JÓ'€Fð&Ø�b�qˆz×ÑÓ! F§N¡N°6¸!¸"°:Ó$>Ñ>Ð>øÜò &Ø�~‰~˜fÓ%Ò%ð&ús   ©'A ÁA.Á-A.c                óä   — t        | d«      j                  «       } t        | dd «      }	 | dd j                  «       |j	                  | dd «      z   S # t
        $ r |j	                  | «      cY S w xY w)zmCheck if the number is a valid VAT number.

    This performs the country-specific check for the number.
    Ú Nr   )r   r   r   r   Úvalidater   r    s     r   r$   r$   V   su   € ô
 �6˜2Ó×$Ñ$Ó&€FÜ˜F 2 A˜JÓ'€Fð'Ø�b�qˆz×ÑÓ! F§O¡O°F¸1¸2°JÓ$?Ñ?Ð?øÜò 'Ø�‰˜vÓ&Ò&ð'ús   ª'A ÁA/Á.A/c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)z*Check if the number is a valid VAT number.F)Úboolr$   r   )r!   s    r   Úis_validr'   c   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡")r   ÚstrÚreturnr   )r!   r(   r)   r(   )r!   r(   r)   r&   )Ú__doc__Ú
__future__r   r   Ústdnum.exceptionsÚstdnum.utilr   r   r   Údictr   r   r   r$   r'   © r   r   ú<module>r0      s9   ðñ*õ: #ã 	ä ß DÑ Dñ “6Ð óó&ó
'ôr   