Ë
    [üàgNN  ã                   óv  — d Z ddlZddlZddlmZ ddlmZ ddlmZmZ ddl	m
Z
mZmZmZ ddlmZ dd	lmZ g d
¢Zd„ Zd„ Zed„ «       Z eddd¬«       G d„ d«      «       Zd„ Z eddd¬«       G d„ d«      «       Zd=d„Z eddd¬«       G d„ d«      «       Zd„ Z eddd¬«       G d„ d«      «       Zd„ Z eddd¬«       G d„ d«      «       Zd „ Z eddd¬«       G d!„ d"«      «       Z d>d#„Z! eddd¬«       G d$„ d%«      «       Z"d>d&„Z# eddd¬«       G d'„ d(«      «       Z$d)„ Z%d*„ Z&d+„ Z'd,„ Z( eddd¬«       G d-„ d.«      «       Z)d/„ Z* eddd¬«       G d0„ d1«      «       Z+d2„ Z, eddd¬«       G d3„ d4«      «       Z-d5„ Z. eddd¬«       G d6„ d7«      «       Z/de0e1fd8œd9„Z2 eddd¬«       G d:„ d;«      «       Z3d<„ Z4y)?z
Commonly useful validators.
é    N)Úcontextmanager)ÚPatterné   )Úget_run_validatorsÚset_run_validators)Ú_AndValidatorÚand_ÚattribÚattrs)Údefault_if_none)ÚNotCallableError)r	   Údeep_iterableÚdeep_mappingÚdisabledÚgeÚget_disabledÚgtÚin_Úinstance_ofÚis_callableÚleÚltÚ
matches_reÚmax_lenÚmin_lenÚnot_ÚoptionalÚor_Úset_disabledc                 ó   — t        |  «       y)a  
    Globally disable or enable running validators.

    By default, they are run.

    Args:
        disabled (bool): If `True`, disable running all validators.

    .. warning::

        This function is not thread-safe!

    .. versionadded:: 21.3.0
    N©r   )r   s    úM/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/attr/validators.pyr   r   *   s   € ô ˜8�|Õ$ó    c                  ó   — t        «        S )zº
    Return a bool indicating whether validators are currently disabled or not.

    Returns:
        bool:`True` if validators are currently disabled.

    .. versionadded:: 21.3.0
    )r   © r#   r"   r   r   <   s   € ô "Ó#Ð#Ð#r#   c               #   ób   K  — t        d«       	 d–— t        d«       y# t        d«       w xY w­w)z°
    Context manager that disables running validators within its context.

    .. warning::

        This context manager is not thread-safe!

    .. versionadded:: 21.3.0
    FNTr!   r%   r#   r"   r   r   H   s)   è ø€ ô �uÔð!Ûä˜4Õ øÔ˜4Õ üs   ‚/� “/Ÿ,¬/FT)ÚreprÚslotsÚunsafe_hashc                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_InstanceOfValidatorc           	      óº   — t        || j                  «      sEd|j                  › d| j                  ›d|›d|j                  ›d�	}t	        ||| j                  |«      ‚y)úP
        We use a callable class to be able to change the ``__repr__``.
        ú'ú
' must be ú (got z that is a ú).N)Ú
isinstanceÚtypeÚnameÚ	__class__Ú	TypeError©ÚselfÚinstÚattrÚvalueÚmsgs        r"   Ú__call__z_InstanceOfValidator.__call__^   se   € ô ˜% §¡Ô+Ø�d—i‘i�[ 
¨4¯9©9¨-°v¸e¸YÀkÐRW×RaÑRaÐQdÐdfÐgˆCÜØØØ—	‘	Øó	ð ð ,r#   c                 ó"   — d| j                   ›d�S )Nz <instance_of validator for type ú>©r3   ©r8   s    r"   Ú__repr__z_InstanceOfValidator.__repr__k   ó   € Ø1°$·)±)°¸aÐ@Ð@r#   N©Ú__name__Ú
__module__Ú__qualname__r
   r3   r=   rB   r%   r#   r"   r+   r+   Z   ó   „ á‹8€DòóAr#   r+   c                 ó   — t        | «      S )aØ  
    A validator that raises a `TypeError` if the initializer is called with a
    wrong type for this particular attribute (checks are performed using
    `isinstance` therefore it's also valid to pass a tuple of types).

    Args:
        type (type | tuple[type]): The type to check for.

    Raises:
        TypeError:
            With a human readable error message, the attribute (of type
            `attrs.Attribute`), the expected type, and the value it got.
    )r+   r@   s    r"   r   r   o   ó   € ô   Ó%Ð%r#   )r'   Úfrozenr(   c                   ó4   — e Zd Z e«       Z e«       Zd„ Zd„ Zy)Ú_MatchesReValidatorc                 óª   — | j                  |«      sBd|j                  › d| j                  j                  ›d|›d�}t        ||| j                  |«      ‚y)r-   r.   z' must match regex z (z	 doesn't)N)Ú
match_funcr4   ÚpatternÚ
ValueErrorr7   s        r"   r=   z_MatchesReValidator.__call__…   s]   € ð �‰˜uÔ%Ø�d—i‘i�[Ð 3°D·L±L×4HÑ4HÐ3KÈ2ÈeÈYÐV_Ð`ˆCÜØØØ—‘Øó	ð ð &r#   c                 ó"   — d| j                   ›d�S )Nz"<matches_re validator for pattern r?   )rP   rA   s    r"   rB   z_MatchesReValidator.__repr__’   s   € Ø3°D·L±LÐ3CÀ1ÐEÐEr#   N)rE   rF   rG   r
   rP   rO   r=   rB   r%   r#   r"   rM   rM   €   s   „ á‹h€GÙ“€JòóFr#   rM   c           
      ó  — t         j                  dt         j                  t         j                  f}||vrDdj	                  dj                  t        d„ t        |«      D «       «      «      «      }t        |«      ‚t        | t        «      r|rd}t        |«      ‚| }nt        j                  | |«      }|t         j                  u r|j                  }n+|t         j                  u r|j                  }n|j                  }t        ||«      S )aâ  
    A validator that raises `ValueError` if the initializer is called with a
    string that doesn't match *regex*.

    Args:
        regex (str, re.Pattern):
            A regex string or precompiled pattern to match against

        flags (int):
            Flags that will be passed to the underlying re function (default 0)

        func (typing.Callable):
            Which underlying `re` function to call. Valid options are
            `re.fullmatch`, `re.search`, and `re.match`; the default `None`
            means `re.fullmatch`. For performance reasons, the pattern is
            always precompiled using `re.compile`.

    .. versionadded:: 19.2.0
    .. versionchanged:: 21.3.0 *regex* can be a pre-compiled pattern.
    Nz'func' must be one of {}.z, c              3   óD   K  — | ]  }|xr |j                   xs d –— Œ y­w)ÚNoneN)rE   )Ú.0Úes     r"   ú	<genexpr>zmatches_re.<locals>.<genexpr>¯   s!   è ø€ ÒN¸˜Ò(˜aŸj™jÒ3¨VÓ3ÑNùs   ‚ zR'flags' can only be used with a string pattern; pass flags to re.compile() instead)ÚreÚ	fullmatchÚsearchÚmatchÚformatÚjoinÚsortedÚsetrQ   r2   r   r6   ÚcompilerM   )ÚregexÚflagsÚfuncÚvalid_funcsr<   rP   rO   s          r"   r   r   –   sÔ   € ô* —<‘< ¤r§y¡y´"·(±(Ð;€KØ�;ÑØ)×0Ñ0Ø�I‰IÜÑN¼SÀÓ=MÔNÓNóó
ˆô
 ˜‹oÐä�%œÔ!ÙØfˆCÜ˜C“.Ð Ø‰ä—*‘*˜U EÓ*ˆàŒr�x‰xÑØ—]‘]‰
Ø	”—‘Ñ	Ø—^‘^‰
à×&Ñ&ˆ
ä˜w¨
Ó3Ð3r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_OptionalValidatorc                 ó0   — |€y | j                  |||«       y ©N©Ú	validator©r8   r9   r:   r;   s       r"   r=   z_OptionalValidator.__call__Ê   s   € Øˆ=Øà�‰�t˜T 5Õ)r#   c                 ó"   — d| j                   ›d�S )Nz<optional validator for z	 or None>rj   rA   s    r"   rB   z_OptionalValidator.__repr__Ð   s   € Ø)¨$¯.©.Ð);¸9ÐEÐEr#   N)rE   rF   rG   r
   rk   r=   rB   r%   r#   r"   rg   rg   Æ   s   „ á“€Iò*óFr#   rg   c                 ól   — t        | t        t        f«      rt        t	        | «      «      S t        | «      S )a&  
    A validator that makes an attribute optional.  An optional attribute is one
    which can be set to `None` in addition to satisfying the requirements of
    the sub-validator.

    Args:
        validator
            (typing.Callable | tuple[typing.Callable] | list[typing.Callable]):
            A validator (or validators) that is used for non-`None` values.

    .. versionadded:: 15.1.0
    .. versionchanged:: 17.1.0 *validator* can be a list of validators.
    .. versionchanged:: 23.1.0 *validator* can also be a tuple of validators.
    )r2   ÚlistÚtuplerg   r   rj   s    r"   r   r   Ô   s-   € ô �)œd¤E˜]Ô+Ü!¤-°	Ó":Ó;Ð;ä˜iÓ(Ð(r#   c                   ó8   — e Zd Z e«       Z ed¬«      Zd„ Zd„ Zy)Ú_InValidatorF)Úhashc                 ó¸   — 	 || j                   v }|s8d|j                  › d| j                  ›d|›d�}t	        ||| j                  |«      ‚y # t        $ r d}Y ŒHw xY w)NFr.   z' must be in r0   ú))Úoptionsr6   r4   Ú_original_optionsrQ   )r8   r9   r:   r;   Ú
in_optionsr<   s         r"   r=   z_InValidator.__call__î   sz   € ð	Ø $§,¡,Ð.ˆJñ Ø�d—i‘i�[ ¨d×.DÑ.DÐ-GÀvÈeÈYÐVWÐXˆCÜØØØ×&Ñ&Øó	ð ð øô ò 	ØŠJð	ús   ‚A ÁAÁAc                 ó"   — d| j                   ›d�S )Nz<in_ validator with options r?   )rw   rA   s    r"   rB   z_InValidator.__repr__ý   s   € Ø-¨d×.DÑ.DÐ-GÀqÐIÐIr#   N)rE   rF   rG   r
   rv   rw   r=   rB   r%   r#   r"   rr   rr   é   s   „ á‹h€GÙ EÔ*ÐòóJr#   rr   c                 ój   — | }t        | t        t        t        f«      rt	        | «      } t        | |«      S )aÖ  
    A validator that raises a `ValueError` if the initializer is called with a
    value that does not belong in the *options* provided.

    The check is performed using ``value in options``, so *options* has to
    support that operation.

    To keep the validator hashable, dicts, lists, and sets are transparently
    transformed into a `tuple`.

    Args:
        options: Allowed options.

    Raises:
        ValueError:
            With a human readable error message, the attribute (of type
            `attrs.Attribute`), the expected options, and the value it got.

    .. versionadded:: 17.1.0
    .. versionchanged:: 22.1.0
       The ValueError was incomplete until now and only contained the human
       readable error message. Now it contains all the information that has
       been promised since 17.1.0.
    .. versionchanged:: 24.1.0
       *options* that are a list, dict, or a set are now transformed into a
       tuple to keep the validator hashable.
    )r2   ro   Údictr`   rp   rr   )rv   Úrepr_optionss     r"   r   r     s0   € ð8 €LÜ�'œD¤$¬Ð,Ô-Ü˜“.ˆä˜ Ó.Ð.r#   c                   ó   — e Zd Zd„ Zd„ Zy)Ú_IsCallableValidatorc                 ó„   — t        |«      s5d}t        |j                  |j                  ||j                  ¬«      |¬«      ‚y)r-   z?'{name}' must be callable (got {value!r} that is a {actual!r}).)r4   r;   Úactual)r<   r;   N)Úcallabler   r]   r4   r5   )r8   r9   r:   r;   Úmessages        r"   r=   z_IsCallableValidator.__call__&  sN   € ô ˜Œð8ð ô #Ø—N‘NØŸ™¨%¸¿¹ð #ó ð ô	ð ð r#   c                  ó   — y)Nz<is_callable validator>r%   rA   s    r"   rB   z_IsCallableValidator.__repr__6  s   € Ø(r#   N)rE   rF   rG   r=   rB   r%   r#   r"   r~   r~   $  s   „ òó )r#   r~   c                  ó   — t        «       S )aˆ  
    A validator that raises a `attrs.exceptions.NotCallableError` if the
    initializer is called with a value for this particular attribute that is
    not callable.

    .. versionadded:: 19.1.0

    Raises:
        attrs.exceptions.NotCallableError:
            With a human readable error message containing the attribute
            (`attrs.Attribute`) name, and the value it got.
    )r~   r%   r#   r"   r   r   :  s   € ô  Ó!Ð!r#   c                   ó^   — e Zd Z e e«       ¬«      Z ed e e«       «      ¬«      Zd„ Zd„ Z	y)Ú_DeepIterablerj   N©Údefaultrk   c                 óv   — | j                   �| j                  |||«       |D ]  }| j                  |||«       Œ y©r-   N©Úiterable_validatorÚmember_validator)r8   r9   r:   r;   Úmembers        r"   r=   z_DeepIterable.__call__Q  sC   € ð ×"Ñ"Ð.Ø×#Ñ# D¨$°Ô6àò 	6ˆFØ×!Ñ! $¨¨fÕ5ñ	6r#   c                 ób   — | j                   €dnd| j                   ›�}d|› d| j                  ›d�S )NÚ ú z<deep_iterable validator forz iterables of r?   r‹   )r8   Úiterable_identifiers     r"   rB   z_DeepIterable.__repr__[  sP   € ð ×&Ñ&Ð.ñ à�T×,Ñ,Ð/Ð0ð 	ð +Ð+>Ð*?Ø˜T×2Ñ2Ð5°Qð8ð	
r#   )
rE   rF   rG   r
   r   r�   r   rŒ   r=   rB   r%   r#   r"   r†   r†   J  s0   „ á©«Ô6ÐÙØ¡©«Ó 7ôÐò6ó	
r#   r†   c                 óV   — t        | t        t        f«      rt        | Ž } t	        | |«      S )aC  
    A validator that performs deep validation of an iterable.

    Args:
        member_validator: Validator to apply to iterable members.

        iterable_validator:
            Validator to apply to iterable itself (optional).

    Raises
        TypeError: if any sub-validators fail

    .. versionadded:: 19.1.0
    )r2   ro   rp   r	   r†   ©r�   rŒ   s     r"   r   r   g  s.   € ô Ð"¤T¬5 MÔ2ÜÐ!1Ð2ÐÜÐ)Ð+=Ó>Ð>r#   c                   óz   — e Zd Z e e«       ¬«      Z e e«       ¬«      Z ed e e«       «      ¬«      Zd„ Z	d„ Z
y)Ú_DeepMappingrj   Nr‡   c                 ó¢   — | j                   �| j                  |||«       |D ]+  }| j                  |||«       | j                  ||||   «       Œ- yrŠ   )Úmapping_validatorÚkey_validatorÚvalue_validator)r8   r9   r:   r;   Úkeys        r"   r=   z_DeepMapping.__call__�  sY   € ð ×!Ñ!Ð-Ø×"Ñ" 4¨¨uÔ5àò 	9ˆCØ×Ñ˜t T¨3Ô/Ø× Ñ   t¨U°3©ZÕ8ñ	9r#   c                 ó<   — d| j                   ›d| j                  ›d�S )Nz,<deep_mapping validator for objects mapping z to r?   )r™   rš   rA   s    r"   rB   z_DeepMapping.__repr__Œ  s(   € Ø=¸d×>PÑ>PÐ=SÐSWÐX\×XlÑXlÐWoÐopÐqÐqr#   )rE   rF   rG   r
   r   r™   rš   r   r˜   r=   rB   r%   r#   r"   r–   r–   {  s9   „ á¡[£]Ô3€MÙ¡{£}Ô5€OÙ t±xÁÃÓ7NÔOÐò	9órr#   r–   c                 ó   — t        | ||«      S )a�  
    A validator that performs deep validation of a dictionary.

    Args:
        key_validator: Validator to apply to dictionary keys.

        value_validator: Validator to apply to dictionary values.

        mapping_validator:
            Validator to apply to top-level mapping attribute (optional).

    .. versionadded:: 19.1.0

    Raises:
        TypeError: if any sub-validators fail
    )r–   )r™   rš   r˜   s      r"   r   r   �  s   € ô" ˜ Ð8IÓJÐJr#   c                   óB   — e Zd Z e«       Z e«       Z e«       Zd„ Zd„ Zy)Ú_NumberValidatorc                 óª   — | j                  || j                  «      s7d|j                  › d| j                  › d| j                  › d|› �}t	        |«      ‚y)r-   r.   r/   r‘   ú: N)Úcompare_funcÚboundr4   Ú
compare_oprQ   r7   s        r"   r=   z_NumberValidator.__call__ª  sR   € ð × Ñ  ¨¯
©
Ô3Ø�d—i‘i�[ 
¨4¯?©?Ð*;¸1¸T¿Z¹Z¸LÈÈ5È'ÐRˆCÜ˜S“/Ð!ð 4r#   c                 ó<   — d| j                   › d| j                  › d�S )Nz<Validator for x r‘   r?   )r¤   r£   rA   s    r"   rB   z_NumberValidator.__repr__²  s    € Ø" 4§?¡?Ð"3°1°T·Z±Z°LÀÐBÐBr#   N)	rE   rF   rG   r
   r£   r¤   r¢   r=   rB   r%   r#   r"   rŸ   rŸ   ¤  s"   „ á‹H€EÙ“€JÙ“8€Lò"óCr#   rŸ   c                 ó8   — t        | dt        j                  «      S )a  
    A validator that raises `ValueError` if the initializer is called with a
    number larger or equal to *val*.

    The validator uses `operator.lt` to compare the values.

    Args:
        val: Exclusive upper bound for values.

    .. versionadded:: 21.3.0
    ú<)rŸ   Úoperatorr   ©Úvals    r"   r   r   ¶  ó   € ô ˜C ¤h§k¡kÓ2Ð2r#   c                 ó8   — t        | dt        j                  «      S )a  
    A validator that raises `ValueError` if the initializer is called with a
    number greater than *val*.

    The validator uses `operator.le` to compare the values.

    Args:
        val: Inclusive upper bound for values.

    .. versionadded:: 21.3.0
    z<=)rŸ   r¨   r   r©   s    r"   r   r   Å  ó   € ô ˜C ¤x§{¡{Ó3Ð3r#   c                 ó8   — t        | dt        j                  «      S )a  
    A validator that raises `ValueError` if the initializer is called with a
    number smaller than *val*.

    The validator uses `operator.ge` to compare the values.

    Args:
        val: Inclusive lower bound for values

    .. versionadded:: 21.3.0
    z>=)rŸ   r¨   r   r©   s    r"   r   r   Ô  r­   r#   c                 ó8   — t        | dt        j                  «      S )a  
    A validator that raises `ValueError` if the initializer is called with a
    number smaller or equal to *val*.

    The validator uses `operator.ge` to compare the values.

    Args:
       val: Exclusive lower bound for values

    .. versionadded:: 21.3.0
    r?   )rŸ   r¨   r   r©   s    r"   r   r   ã  r«   r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_MaxLengthValidatorc                 óš   — t        |«      | j                  kD  r3d|j                  › d| j                  › dt        |«      › �}t        |«      ‚y)r-   úLength of 'z' must be <= r¡   N)ÚlenÚ
max_lengthr4   rQ   r7   s        r"   r=   z_MaxLengthValidator.__call__ö  óH   € ô ˆu‹:˜Ÿ™Ò'Ø §	¡	˜{¨-¸¿¹Ð7HÈÌ3ÈuË:È,ÐWˆCÜ˜S“/Ð!ð (r#   c                 ó"   — d| j                   › d�S )Nz<max_len validator for r?   )rµ   rA   s    r"   rB   z_MaxLengthValidator.__repr__þ  ó   € Ø(¨¯©Ð(9¸Ð;Ð;r#   N)rE   rF   rG   r
   rµ   r=   rB   r%   r#   r"   r±   r±   ò  ó   „ á“€Jò"ó<r#   r±   c                 ó   — t        | «      S )zï
    A validator that raises `ValueError` if the initializer is called
    with a string or iterable that is longer than *length*.

    Args:
        length (int): Maximum length of the string or iterable

    .. versionadded:: 21.3.0
    )r±   ©Úlengths    r"   r   r     ó   € ô ˜vÓ&Ð&r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_MinLengthValidatorc                 óš   — t        |«      | j                  k  r3d|j                  › d| j                  › dt        |«      › �}t        |«      ‚y)r-   r³   z' must be >= r¡   N)r´   Ú
min_lengthr4   rQ   r7   s        r"   r=   z_MinLengthValidator.__call__  r¶   r#   c                 ó"   — d| j                   › d�S )Nz<min_len validator for r?   )rÁ   rA   s    r"   rB   z_MinLengthValidator.__repr__  r¸   r#   N)rE   rF   rG   r
   rÁ   r=   rB   r%   r#   r"   r¿   r¿     r¹   r#   r¿   c                 ó   — t        | «      S )zð
    A validator that raises `ValueError` if the initializer is called
    with a string or iterable that is shorter than *length*.

    Args:
        length (int): Minimum length of the string or iterable

    .. versionadded:: 22.1.0
    )r¿   r»   s    r"   r   r     r½   r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_SubclassOfValidatorc                 ó    — t        || j                  «      s8d|j                  › d| j                  ›d|›d�}t        ||| j                  |«      ‚y)r-   r.   z' must be a subclass of r0   r1   N)Ú
issubclassr3   r4   r6   r7   s        r"   r=   z_SubclassOfValidator.__call__0  sX   € ô ˜% §¡Ô+Ø�d—i‘i�[Ð 8¸¿¹¸ÀVÈEÈ9ÐTVÐWˆCÜØØØ—	‘	Øó	ð ð ,r#   c                 ó"   — d| j                   ›d�S )Nz <subclass_of validator for type r?   r@   rA   s    r"   rB   z_SubclassOfValidator.__repr__=  rC   r#   NrD   r%   r#   r"   rÅ   rÅ   ,  rH   r#   rÅ   c                 ó   — t        | «      S )aà  
    A validator that raises a `TypeError` if the initializer is called with a
    wrong type for this particular attribute (checks are performed using
    `issubclass` therefore it's also valid to pass a tuple of types).

    Args:
        type (type | tuple[type, ...]): The type(s) to check for.

    Raises:
        TypeError:
            With a human readable error message, the attribute (of type
            `attrs.Attribute`), the expected type, and the value it got.
    )rÅ   r@   s    r"   Ú_subclass_ofrÊ   A  rJ   r#   c                   ó~   — e Zd Z e«       Z e ed«      ¬«      Z e e ee	«       e
e«      ¬«      ¬«      Zd„ Zd„ Zy)Ú_NotValidatorzCnot_ validator child '{validator!r}' did not raise a captured error)Ú	converterr”   rj   c                 óø   — 	 | j                  |||«       t        | j                  j                  | j                   | j                  ¬«      || j                   || j                  «      ‚# | j                  $ r Y y w xY w)N©rk   Ú	exc_types)rk   rQ   r<   r]   rÐ   rl   s       r"   r=   z_NotValidator.__call__b  sw   € ð	Ø�N‰N˜4  uÔ-ô Ø—‘—‘Ø"Ÿn™nØ"Ÿn™nð  ó ð Ø—‘ØØ—‘ó	ð 	øð �~‰~ò 	Ùð	ús   ‚A' Á'A9Á8A9c                 ó<   — d| j                   ›d| j                  ›d�S )Nz<not_ validator wrapping z, capturing r?   rÏ   rA   s    r"   rB   z_NotValidator.__repr__s  s"   € Ø*¨4¯>©>Ð*<¸LÈÏÉÐHZÐZ[Ð\Ð\r#   N)rE   rF   rG   r
   rk   r   r<   r   rÊ   Ú	Exceptionr   rp   rÐ   r=   rB   r%   r#   r"   rÌ   rÌ   R  sO   „ á“€IÙ
Ù!ð-ó
ô€Cñ ÙÙ)¨)Ó4Ù*¨5Ó1ô
ô€Iòó"]r#   rÌ   )r<   rÐ   c                óX   — 	 t        |«      }t        | ||«      S # t        $ r |f}Y Œw xY w)a:  
    A validator that wraps and logically 'inverts' the validator passed to it.
    It will raise a `ValueError` if the provided validator *doesn't* raise a
    `ValueError` or `TypeError` (by default), and will suppress the exception
    if the provided validator *does*.

    Intended to be used with existing validators to compose logic without
    needing to create inverted variants, for example, ``not_(in_(...))``.

    Args:
        validator: A validator to be logically inverted.

        msg (str):
            Message to raise if validator fails. Formatted with keys
            ``exc_types`` and ``validator``.

        exc_types (tuple[type, ...]):
            Exception type(s) to capture. Other types raised by child
            validators will not be intercepted and pass through.

    Raises:
        ValueError:
            With a human readable error message, the attribute (of type
            `attrs.Attribute`), the validator that failed to raise an
            exception, the value it got, and the expected exception types.

    .. versionadded:: 22.2.0
    )rp   r6   rÌ   )rk   r<   rÐ   s      r"   r   r   w  s:   € ð:!Ü˜)Ó$ˆ	ô ˜ C¨Ó3Ð3øô ò !Ø�LŠ	ð!ús   ‚ š)¨)c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_OrValidatorc                 ó”   — | j                   D ]  }	  ||||«        y  d| j                   ›d|›�}t        |«      ‚# t        $ r Y Œ9w xY w)NzNone of z satisfied for value )Ú
validatorsrÒ   rQ   )r8   r9   r:   r;   Úvr<   s         r"   r=   z_OrValidator.__call__Ÿ  sc   € Ø—‘ò 	ˆAðÙ�$˜˜eÔ$ñ ð	ð ˜Ÿ™Ð+Ð+@ÀÀ	ÐJˆÜ˜‹oÐøô ò Ùðús   ‘
;»	AÁAc                 ó"   — d| j                   ›d�S )Nz<or validator wrapping r?   )r×   rA   s    r"   rB   z_OrValidator.__repr__«  s   € Ø(¨¯©Ð(;¸1Ð=Ð=r#   N)rE   rF   rG   r
   r×   r=   rB   r%   r#   r"   rÕ   rÕ   ›  s   „ á“€Jò
ó>r#   rÕ   c                  ó˜   — g }| D ]0  }|j                  t        |t        «      r|j                  n|g«       Œ2 t        t	        |«      «      S )a  
    A validator that composes multiple validators into one.

    When called on a value, it runs all wrapped validators until one of them is
    satisfied.

    Args:
        validators (~collections.abc.Iterable[typing.Callable]):
            Arbitrary number of validators.

    Raises:
        ValueError:
            If no validator is satisfied. Raised with a human-readable error
            message listing all the wrapped validators and the value that
            failed all of them.

    .. versionadded:: 24.1.0
    )Úextendr2   rÕ   r×   rp   )r×   ÚvalsrØ   s      r"   r   r   ¯  sH   € ð& €DØò JˆØ�‰¤J¨q´,Ô$?�A—L’LÀaÀSÕIðJô œ˜d›Ó$Ð$r#   )r   Nri   )5Ú__doc__r¨   rY   Ú
contextlibr   r   Ú_configr   r   Ú_maker   r	   r
   r   Ú
convertersr   Ú
exceptionsr   Ú__all__r   r   r   r+   r   rM   r   rg   r   rr   r   r~   r   r†   r   r–   r   rŸ   r   r   r   r   r±   r   r¿   r   rÅ   rÊ   rÌ   rQ   r6   r   rÕ   r   r%   r#   r"   ú<module>rä      s  ðñó Û 	å %Ý ç ;ß 5Ó 5Ý 'Ý (ò€ò.%ò$	$ð ñ!ó ð!ñ" ˆE˜¨4Ô0÷Að Aó 1ðAò(&ñ" ˆE˜$ dÔ+÷Fð Fó ,ðFó*-4ñ` ˆE˜¨4Ô0÷
Fð 
Fó 1ð
Fò)ñ* ˆE˜¨4Ô0÷Jð Jó 1ðJò. /ñF ˆE˜¨DÔ1÷)ð )ó 2ð)ò*"ñ  ˆE˜¨4Ô0÷
ð 
ó 1ð
ó8?ñ( ˆE˜¨4Ô0÷rð ró 1ðró(Kñ( ˆE˜$ dÔ+÷Cð Có ,ðCò"3ò4ò4ò3ñ ˆE˜$ dÔ+÷<ð <ó ,ð<ò
'ñ ˆE˜$ dÔ+÷<ð <ó ,ð<ò
'ñ ˆE˜¨4Ô0÷Að Aó 1ðAò(&ñ" ˆE˜¨4Ô0÷!]ð !]ó 1ð!]ðH  ¨J¸	Ð+Bô !4ñH ˆE˜¨4Ô0÷>ð >ó 1ð>ó&%r#   