
    i
                        S SK Jr  S SKJrJr  S SKJrJrJr  SSK	J
r
JrJr  SSKJr  SSKJr  SSKJr  S	S
KJr  \(       a  SSKJr        SS jr S         SS jjrg)    )annotations)TYPE_CHECKINGAny)NOTHING	AttributeFactory   )get_argsis_annotatedis_bare_final)StructureHook)StructureHandlerNotFoundError)raise_error   )AttributeOverride)BaseConverterc                |    [        U 5      (       a+  [        U 5       H  n[        U[        5      (       d  M  Us  $    U$ )ze
If the type is Annotated containing an AttributeOverride, return it.
Otherwise, return the default.
)r   r
   
isinstancer   )typedefaultargs      Q/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/cattrs/gen/_shared.py_annotated_override_or_defaultr      s7     DD>C#011
 " N    c                L  ^  U R                   b  U(       a  SnU$ U R                   b)  U(       d"  Tb   UR                  TSS9nU[        :X  a  SnU$ Tb  [	        T5      (       ar  U R
                  [        La_  [        U R
                  [        5      (       d@  U R
                  R                  mUR                  TSS9nXBR                  :X  a	  U4U4S jjnU$ UR                  TSS9n U$ UR                  nU$ ! [         a    Sn U$ f = f! [         a    UR                  s $ f = f)z\Find the appropriate structure handler to use.

Return `None` if no handler should be used.
NF)cache_resultc                   > U" U T5      $ )N )v__hr   s      r   handler'find_structure_handler.<locals>.handlerF   s    !!T{*r   )	converterget_structure_hookr   r   r   r   r   r   r   	__class___structure_call	structureRecursionError)ar   cprefer_attrs_convertersr"   s    `   r   find_structure_handlerr-       sA   );;"'> GD A KK#,CHX#..t%.H
 k)"G. - d##IIW,"199g66 yy**..t%.H///
 *1 +  ..t%.H  kkG9 1 6 9:  {{sL   D
 D
 C7 D
 BD
 D
 )D
 7DD
 DD
 
D#"D#N)r   r   r   r   returnr   )F)
r*   r   r   r   r+   r   r,   boolr.   zStructureHook | None)
__future__r   typingr   r   attrsr   r   r   _compatr
   r   r   dispatchr   errorsr   fnsr   _constsr   
convertersr   r   r-   r   r   r   <module>r9      sz    " % - - ; ; $ 2  &*
)  PU000 -0HL00r   