Ë
    Ã?Æ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	)av  Postleitzahl (Austrian postal code).

The Austrian postal code consists of four digits that identifies a post
office in Austria.

More information:

* https://en.wikipedia.org/wiki/Postal_codes_in_Austria
* https://www.post.at/suche/standortsuche.php/index/selectedsearch/plz

>>> validate('5090')
'5090'
>>> import json
>>> print(json.dumps(info('5090'), indent=2, sort_keys=True))
{
  "location": "Lofer",
  "region": "Salzburg"
}
>>> validate('4231')  # not-existing postal code
Traceback (most recent call last):
    ...
InvalidComponent: ...
>>> validate('ABCD')
Traceback (most recent call last):
    ...
InvalidFormat: ...
é    )Úannotations)Ú*)ÚcleanÚisdigitsc                ó4   — t        | «      j                  «       S )zˆConvert the number to the minimal representation. This strips the
    number of any valid separators and removes surrounding whitespace.)r   Ústrip©Únumbers    ú]/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/at/postleitzahl.pyÚcompactr   6   s   € ô �‹=×ÑÓ Ð ó    c                óp   — t        | «      } ddlm} |j                  d«      j	                  | «      d   d   S )z_Return a dictionary of data about the supplied number. This typically
    returns the location.r   )Únumdbzat/postleitzahlé   )r   Ústdnumr   ÚgetÚinfo)r
   r   s     r   r   r   <   s5   € ô �V‹_€FÝØ�9‰9Ð&Ó'×,Ñ,¨VÓ4°QÑ7¸Ñ:Ð:r   c                ó    — t        | «      } t        | «      s
t        «       ‚t        | «      dk7  r
t	        «       ‚t        | «      s
t        «       ‚| S )ú+Check if the number is a valid postal code.é   )r   r   ÚInvalidFormatÚlenÚInvalidLengthr   ÚInvalidComponentr	   s    r   Úvalidater   D   sD   € ä�V‹_€FÜ�FÔÜ‹oÐÜ
ˆ6ƒ{�aÒÜ‹oÐÜ�Œ<ÜÓ Ð Ø€Mr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)r   F)Úboolr   ÚValidationErrorr	   s    r   Úis_validr   P   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡"N)r
   ÚstrÚreturnr    )r
   r    r!   zdict[str, str])r
   r    r!   r   )Ú__doc__Ú
__future__r   Ústdnum.exceptionsÚstdnum.utilr   r   r   r   r   r   © r   r   ú<module>r'      s)   ðñ(õ8 #ä ß 'ó!ó;ó	ôr   