Ë
    Ã?Æi	  ã                  óN   — d Z ddlmZ ddl­ ddlmZmZ d
d„Zd
d„Zdd„Z	d
d„Z
y	)aï  DNI (Documento Nacional de Identidad, Argentinian national identity nr.).

The DNI number is the number that appears on the Argentinian national
identity document and is used to identify citizen and foreigners residing in
the country.

More information:

* https://en.wikipedia.org/wiki/Documento_Nacional_de_Identidad_(Argentina)

>>> validate('20.123.456')
'20123456'
>>> validate('2012345699')
Traceback (most recent call last):
    ...
InvalidLength: ...
>>> format('20123456')
'20.123.456'
é    )Úannotations)Ú*)ÚcleanÚisdigitsc                ó6   — t        | d«      j                  «       S )zˆConvert the number to the minimal representation. This strips the
    number of any valid separators and removes surrounding whitespace.z .)r   Ústrip©Únumbers    úT/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/ar/dni.pyÚcompactr   /   s   € ô �˜Ó×$Ñ$Ó&Ð&ó    c                ót   — t        | «      } t        | «      s
t        «       ‚t        | «      dvr
t	        «       ‚| S )ú#Check if the number is a valid DNI.)é   é   )r   r   ÚInvalidFormatÚlenÚInvalidLengthr	   s    r   Úvalidater   5   s4   € ä�V‹_€FÜ�FÔÜ‹oÐÜ
ˆ6ƒ{˜&Ñ Ü‹oÐØ€Mr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)r   F)Úboolr   ÚValidationErrorr	   s    r   Úis_validr   ?   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡"c                óR   — t        | «      } dj                  | dd | dd | dd f«      S )z8Reformat the number to the standard presentation format.ú.Niúÿÿÿéýÿÿÿ)r   Újoinr	   s    r   Úformatr   G   s3   € ä�V‹_€FØ�8‰8�V˜C˜R�[ &¨¨B -°¸¸°Ð=Ó>Ð>r   N)r
   ÚstrÚreturnr   )r
   r   r    r   )Ú__doc__Ú
__future__r   Ústdnum.exceptionsÚstdnum.utilr   r   r   r   r   r   © r   r   ú<module>r&      s)   ðñ*õ( #ä ß 'ó'óóô?r   