
    i9                         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
  S SKJr  S SKJr  SSKJr      SS
\\   S\\\      S\S\\   S\4
S jjrg	)    )dedent)ListOptional)
DictConfig	OmegaConf	open_dict)version)GlobalHydra)RunMode   )deprecation_warningNconfig_name	overridesreturn_hydra_configstrictreturnc                 4   Uc  / n[        5       R                  5       (       d   S5       e[         R                  " 5       nUR                  c   eUR                  R	                  U U[
        R                  SSS9n[        U[        5      (       d   eU(       d  SU;   a  [        U5         US	 SSS5        UbP  [        R                  " S5      (       a  [        S5      e[        [        S5      5        [        R                   " XS5        U$ ! , (       d  f       Nc= f)	aV  
:param config_name: the name of the config
       (usually the file name without the .yaml extension)
:param overrides: list of overrides for config file
:param return_hydra_config: True to return the hydra config node in the result
:param strict: DEPRECATED. If false, returned config has struct mode disabled.
:return: the composed config
NzgGlobalHydra is not initialized, use @hydra.main() or call one of the hydra initialization methods firstF)r   r   run_mode
from_shellwith_log_configurationhydraz1.2z#got an unexpected 'strict' argumentz
                    The strict flag in the compose API is deprecated.
                    See https://hydra.cc/docs/1.2/upgrades/0.11_to_1.0/strict_mode_flag_deprecated for more info.
                    )r
   is_initializedinstancer   compose_configr   RUN
isinstancer   r   r	   base_at_least	TypeErrorr   r   r   
set_struct)r   r   r   r   ghcfgs         L/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/hydra/compose.pycomposer#      s	    	 	$$&&qpq& 
			B88
((
!
!$ " C c:&&&&c>3L     ''ABB   -J#  s   (D		
D)NNFN)textwrapr   typingr   r   	omegaconfr   r   r   r   r	   hydra.core.global_hydrar
   hydra.typesr   _internal.deprecation_warningr   strboolr#        r"   <module>r.      so     ! 6 6  /  > "&%) %!	4#4S	"4 4 TN	4
 4r-   