Ë
    ?—Öj«  ã                   óJ   — d dl Z d dlZd dlZddlmZ d	dedefd„Zdeddfd„Zy)
é    Né   )ÚValidationExceptionÚsizeÚreturnc                 ó¦   ‡— t        t        d«      «      t        t        j                  «      z   Šdj	                  ˆfd„t        | «      D «       «      S )Né
   Ú c              3   óZ   •K  — | ]"  }t        t        j                  ‰«      «      –— Œ$ y ­w)N)ÚstrÚrandomÚchoice)Ú.0ÚxÚcharss     €úZ/var/www/photos/backend/venv/lib/python3.12/site-packages/moto/timestreaminfluxdb/utils.pyú	<genexpr>zrandom_id.<locals>.<genexpr>
   s   øè ø€ ÒB°”3”v—}‘} UÓ+×,ÑBùs   ƒ(+)ÚlistÚrangeÚstringÚascii_lowercaseÚjoin)r   r   s    @r   Ú	random_idr      s9   ø€ Ü”�r“‹Oœd¤6×#9Ñ#9Ó:Ñ:€EØ�7‰7ÓB´e¸D³kÔBÓBÐBó    Únamec                 óà   — t        | «      dk  rt        dt        | «      › �«      ‚t        | «      dkD  rt        dt        | «      › �«      ‚t        j                  d| «      st        d| › �«      ‚y)a‚  
    The name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands.
    This name will also be a prefix included in the endpoint.
    DB instance names must be unique per customer and per region.
    Length Constraints: Minimum length of 3. Maximum length of 40.
    Pattern: ^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$

    é   z1Expected name to have a minimum length of 3, got é(   z2Expected name to have a maximum length of 40, got z&^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$zOExpected name to match the pattern ^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$, got N)Úlenr   ÚreÚmatch)r   s    r   Úvalidate_namer!      s‚   € ô ˆ4ƒy�1‚}Ü!Ø?ÄÀDÃ	¸{ÐKó
ð 	
ô 
ˆT‹�RŠÜ!Ø@ÄÀTÃÀÐLó
ð 	
ô �X‰XÐ?ÀÔFÜ!Ø]Ð^bÐ]cÐdó
ð 	
ð Gr   )r   )	r   r   r   Ú
exceptionsr   Úintr   r   r!   © r   r   ú<module>r%      s:   ðÛ Û 	Û å +ñC�Cð C ó Cð

˜ð 
 ô 
r   