Ë
    Ã?Æi 	  ã                  óV   — d Z ddlmZ ddl­ ddlmZ ddlmZ dd„Zdd„Z	dd„Z
dd	„Zy
)a\  MVA (Merverdiavgift, Norwegian VAT number).

The VAT number is the standard Norwegian organisation number
(Organisasjonsnummer) with 'MVA' as suffix.

>>> validate('NO 995 525 828 MVA')
'995525828MVA'
>>> validate('NO 995 525 829 MVA')
Traceback (most recent call last):
    ...
InvalidChecksum: ...
>>> format('995525828MVA')
'NO 995 525 828 MVA'
é    )Úannotations)Ú*)Úorgnr)Úcleanc                ó‚   — t        | d«      j                  «       j                  «       } | j                  d«      r| dd } | S )zˆConvert the number to the minimal representation. This strips the
    number of any valid separators and removes surrounding whitespace.ú ÚNOé   N)r   ÚupperÚstripÚ
startswith©Únumbers    úT/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/no/mva.pyÚcompactr   ,   s@   € ô �6˜3Ó×%Ñ%Ó'×-Ñ-Ó/€FØ×Ñ˜ÔØ˜˜�ˆØ€Mó    c                ó‚   — t        | «      } | j                  d«      s
t        «       ‚t        j                  | dd «       | S )zbCheck if the number is a valid MVA number. This checks the length,
    formatting and check digit.ÚMVANéýÿÿÿ)r   ÚendswithÚInvalidFormatr   Úvalidater   s    r   r   r   5   s8   € ô �V‹_€FØ�?‰?˜5Ô!Ü‹oÐÜ	‡N�N�6˜#˜2�;ÔØ€Mr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)z*Check if the number is a valid MVA number.F)Úboolr   ÚValidationErrorr   s    r   Úis_validr   ?   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡"c                ó`   — t        | «      } dt        j                  | dd «      z   dz   | dd z   S )z8Reformat the number to the standard presentation format.zNO Né	   r   )r   r   Úformatr   s    r   r   r   G   s5   € ä�V‹_€FØ”5—<‘<  r¨ 
Ó+Ñ+¨cÑ1°F¸1¸2°JÑ>Ð>r   N)r   ÚstrÚreturnr    )r   r    r!   r   )Ú__doc__Ú
__future__r   Ústdnum.exceptionsÚ	stdnum.nor   Ústdnum.utilr   r   r   r   r   © r   r   ú<module>r(      s,   ðñ,õ #ä Ý Ý óóóô?r   