
    z-e              	      d   d dl mZ d dlZd dlZd dlmZ d dlZd dlmZ d dl	m
Z
 erd dlZi dddd	d
ddddddddddddddddddddddd d!d"d#d$d%d&i d'd(d)d*d+d,d-d.d/d0d1d2d3dd4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIiZdJdKdLdMd!dNdOdPdQZd_dVZ	 	 	 d`dad^ZdS )b    )annotationsN)TYPE_CHECKING)find_stack_level)Versionbs4z4.11.1bloscz1.21.0
bottleneckz1.3.4zdataframe-api-compatz0.1.7fastparquetz0.8.1fsspecz	2022.05.0html5libz1.1
hypothesisz6.46.1gcsfsjinja2z3.1.2
lxml.etreez4.8.0
matplotlibz3.6.1numbaz0.55.2numexprz2.8.0odfpyz1.4.1openpyxlz3.0.10
pandas_gbqz0.17.5psycopg2z2.9.3pymysqlz1.0.2pyarrowz7.0.0
pyreadstatz1.1.5pytestz7.3.2pyxlsbz1.0.9s3fsscipyz1.8.1
sqlalchemyz1.4.36tablesz3.7.0tabulatez0.8.10xarrayz	2022.03.0xlrdz2.0.1
xlsxwriterz3.0.3	zstandardz0.17.0tzdataz2022.1qtpyz2.2.0pyqt5z5.15.6beautifulsoup4
BottleneckJinja2lxmlz
pandas-gbq
SQLAlchemypytables)r   r	   r   r   odfr   r   r    moduletypes.ModuleTypereturnstrc                    t          | dd           }|t          d| j                   | j        dk    r|                                d         }|S )N__version__zCan't determine version for r   r   )getattrImportError__name__split)r0   versions     7lib/python3.11/site-packages/pandas/compat/_optional.pyget_versionr<   F   sU    fmT22GJJJKKK*$$--//!$N     raisenameextraerrorsmin_version
str | Nonec                   |dv sJ t                               |           }||n| }d| d| d| d}	 t          j        |           }n&# t          $ r |dk    rt	          |          Y dS w xY w|                     d          d         }|| k    r|}t          j        |         }	n|}	||nt                              |          }
|
rt          |	          }|rqt          |          t          |
          k     rQd	|
 d
| d| d}|dk    r*t          j        |t          t                                 dS |dk    rt	          |          |S )a9  
    Import an optional dependency.

    By default, if a dependency is missing an ImportError with a nice
    message will be raised. If a dependency is present, but too old,
    we raise.

    Parameters
    ----------
    name : str
        The module name.
    extra : str
        Additional text to include in the ImportError message.
    errors : str {'raise', 'warn', 'ignore'}
        What to do when a dependency is not found or its version is too old.

        * raise : Raise an ImportError
        * warn : Only applicable when a module's version is to old.
          Warns that the version is too old and returns None
        * ignore: If the module is not installed, return None, otherwise,
          return the module, even if the version is too old.
          It's expected that users validate the version locally when
          using ``errors="ignore"`` (see. ``io/html.py``)
    min_version : str, default None
        Specify a minimum version that is different from the global pandas
        minimum version required.
    Returns
    -------
    maybe_module : Optional[ModuleType]
        The imported module, when found and the version is correct.
        None is returned when the package is not found and `errors`
        is False, or when the package's version is too old and `errors`
        is ``'warn'``.
    >   warnr?   ignoreNzMissing optional dependency 'z'. z Use pip or conda to install .r?   r   zPandas requires version 'z' or newer of 'z' (version 'z' currently installed).rF   )
stacklevel)INSTALL_MAPPINGget	importlibimport_moduler7   r9   sysmodulesVERSIONSr<   r   warningsrF   UserWarningr   )r@   rA   rB   rC   package_nameinstall_namemsgr0   parentmodule_to_getminimum_versionr:   s               r;   import_optional_dependencyrY   Q   s   R 00000"&&t,,L#/#;<<L	7 	7 	7 	7 	7'3	7 	7 	7 (..   Wc"""tt ZZ__QF~~L1%0%<kk(,,vBVBVO 'm,, 	'ww'''/*B*BBB>O > >F > >$> > >  /11   
 t7""!#&&&Ms   A	 	A,+A,)r0   r1   r2   r3   )r>   r?   N)r@   r3   rA   r3   rB   r3   rC   rD   )
__future__r   rL   rN   typingr   rQ   pandas.util._exceptionsr   pandas.util.versionr   typesrP   rJ   r<   rY    r=   r;   <module>r`      s   " " " " " "     



              4 4 4 4 4 4 ' ' ' ' ' ' LLL$	8$X$ '$ G	$
 7$ k$ $ ($ [$ g$ '$ '$ X$ w$ W$  !$" (#$ $$ %$& w'$( w)$* '+$, g-$. g/$0 K1$2 W3$4 (5$6 g7$8 9$: k;$< G=$> '?$@ A$B hC$D GE$ $F XG$ $T 	 	    "	R R R R R R Rr=   