
    ki                     :    d dl mZmZmZ dZ G d de          ZdS )   )BaseProviderElementsType	date_timeTc                   J   e Zd ZU dgZee         ed<   dgZee         ed<   dZee         ed<   dZ	ee         ed<   d	Z
ee         ed
<   dZee         ed<   dZee         ed<   dZee         ed<   d ej        j        D             Zee         ed<   dZdZd ej        j        D             Zee         ed<   d ej        j        D             Zee         ed<   defdZdefdZdefdZdefdZdefdZdefdZdefd Zdefd!Zdefd"Zefd#edefd$Zdefd%Zdefd&Z d'S )(ProviderVillecity_suffixesStreetstreet_suffixes)z{{first_name}} {{city_suffix}}city_formats)z{{last_name}} {{street_suffix}}street_name_formats)z#{{building_number}} {{street_name}}street_address_formats)z({{street_address}} {{postcode}} {{city}}address_formats)z##building_number_formats)z#####postcode_formatsc                     g | ]	}|j         
S  )name.0countrys     p/var/www/html/Pagina-Ingenieria-Requisitos/venv/lib/python3.11/site-packages/faker/providers/address/__init__.py
<listcomp>zProvider.<listcomp>   s    #]#]#]WGL#]#]#]    	countrieszalpha-2zalpha-3c                     g | ]	}|j         
S r   )alpha_2_coder   s     r   r   zProvider.<listcomp>       /q/q/q0D/q/q/qr   alpha_2_country_codesc                     g | ]	}|j         
S r   )alpha_3_coder   s     r   r   zProvider.<listcomp>   r   r   alpha_3_country_codesreturnc                 6    |                      | j                  S )z"
        :example: 'town'
        )random_elementr	   selfs    r   city_suffixzProvider.city_suffix   s     ""4#5666r   c                 6    |                      | j                  S )z$
        :example: 'Avenue'
        )r%   r   r&   s    r   street_suffixzProvider.street_suffix   s     ""4#7888r   c                 \    |                      |                     | j                            S )z!
        :example: '791'
        )numerifyr%   r   r&   s    r   building_numberzProvider.building_number#   s'     }}T001MNNOOOr   c                 j    |                      | j                  }| j                            |          S )z'
        :example: 'Sashabury'
        )r%   r   	generatorparser'   patterns     r   cityzProvider.city)   s0     **4+<==~##G,,,r   c                 j    |                      | j                  }| j                            |          S )z)
        :example: 'Crist Parks'
        )r%   r   r/   r0   r1   s     r   street_namezProvider.street_name0   s0     **4+CDD~##G,,,r   c                 j    |                      | j                  }| j                            |          S )z-
        :example: '791 Crist Parks'
        )r%   r   r/   r0   r1   s     r   street_addresszProvider.street_address7   s0     **4+FGG~##G,,,r   c                     |                      |                     | j                                                            S )z&
        :example: 86039-9874
        )bothifyr%   r   upperr&   s    r   postcodezProvider.postcode>   s3     ||D//0EFFGGMMOOOr   c                 j    |                      | j                  }| j                            |          S )zG
        :example: '791 Crist Parks, Sashabury, IL 86039-9874'
        )r%   r   r/   r0   r1   s     r   addresszProvider.addressD   s0     **4+?@@~##G,,,r   c                 6    |                      | j                  S )
        :sample:
        )r%   r   r&   s    r   r   zProvider.countryK   s     ""4>222r   representationc                     || j         k    r|                     | j                  S || j        k    r|                     | j                  S t          d          )zn
        :sample:
        :sample: representation='alpha-2'
        :sample: representation='alpha-3'
        z7`representation` must be one of `alpha-2` or `alpha-3`.)ALPHA_2r%   r   ALPHA_3r"   
ValueError)r'   r@   s     r   country_codezProvider.country_codeQ   s[     T\))&&t'ABBBt|++&&t'ABBBVWWWr   c                 ~    	 | j                             d          d         S # t          $ r t          d          w xY w)r?   _   z-Country code cannot be determined from locale)__lang__split
IndexErrorAttributeErrorr&   s    r   current_country_codezProvider.current_country_code^   sQ    	R=&&s++A.. 	R 	R 	R !PQQQ	Rs   " <c                    |                                  fdt          j        j        D             }t	          |          dk    r|d         S t	          |          dk    rt          d d|           t          d           )r?   c                 4    g | ]}|j         k    |j        S r   )r   r   )r   r   rM   s     r   r   z,Provider.current_country.<locals>.<listcomp>l   s0     
 
 
$H\`tHtHtGLHtHtHtr   rH       z#Ambiguous country for country code z: z(No appropriate country for country code )rM   r   r   r   lenrD   )r'   current_countryrM   s     @r   rR   zProvider.current_countryg   s      $88::
 
 
 
(1(:(D
 
 
 1$$"1%%!!A%%lCWll[jllmmm^H\^^___r   N)!__name__
__module____qualname__r	   r   str__annotations__r   r   r   r   r   r   r   r   r   r   rB   rC   r   r"   r(   r*   r-   r3   r5   r7   r;   r=   r   rE   rM   rR   r   r   r   r   r      s        (/yM<$000*2O\#&333&IL,s#III-Qc*QQQ0XL-XXX)VO\#&VVV18\#.888*4l3'444#]#]	@R@\#]#]#]I|C ]]]GG/q/qT]TfTp/q/q/q<,qqq/q/qT]TfTp/q/q/q<,qqq7S 7 7 7 79s 9 9 9 9P P P P P-c - - - --S - - - -- - - - -P# P P P P- - - - -3 3 3 3 3 29 X X3 XS X X X XRc R R R R` ` ` ` ` ` `r   r   N) r   r   r   	localizedr   r   r   r   <module>rZ      sp    4 4 4 4 4 4 4 4 4 4	n` n` n` n` n`| n` n` n` n` n`r   