
    c                     n    d Z ddlmZ ddlmZ ddlZddlZ ej        e          Z	 e
            ZddZdS )zO
Stand-alone module to provide information about whether optional deps exist.

    )absolute_import)import_moduleNTc                 n   | t           j        v rt           j        |          S |sdS | t          vr	 t          |           S # t          $ r t                              |            Y dS t          $ rD}t                              |            d|  }t                              |           Y d}~dS d}~ww xY wdS )a
  
    Return module or None. Absolute import is required.

    :param (str) name: Dot-separated module path. E.g., 'scipy.stats'.
    :raise: (ImportError) Only when exc_msg is defined.
    :return: (module|None) If import succeeds, the module will be returned.

    Nz Error importing optional module )	sysmodules_not_importabler   ImportErroradd	Exceptionlogger	exception)nameshould_loademsgs       >lib/python3.11/site-packages/_plotly_utils/optional_imports.py
get_moduler      s     s{ !{4   t?" "	" &&& 	& 	& 	&%%%%%% 	" 	" 	"%%%;T;;CS!!!!!!!!!	"" "s   > $B2%	B2.9B--B2)T)__doc__
__future__r   	importlibr   loggingr   	getLogger__name__r   setr   r        r   <module>r      s     ' & & & & & # # # # # #  



		8	$	$#%%" " " " " "r   