o
    +&]i                     @  s   d dl mZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 er&d dlmZ dd	d
ZdddZdddZdddZdddZdS )    )annotations)version)TYPE_CHECKING)Version)VERSIONS)
ModuleTypereturnr   c                  C     t d } ztd}t|t| k rd|  d| }t|dd l}|W S  tyE } zd|  d|  d|  d|jd  }t||d }~ww )	N
vegafusionz'The vegafusion package must be version  or greater. Found version r   zVThe "vegafusion" data transformer and chart.transformed_data feature requires
version zl or greater of the 'vegafusion' package.
This can be installed with pip using:
    pip install "vegafusion>=z:"
or conda:
    conda install -c conda-forge "vegafusion>="

ImportError: )r   importlib_versionr   RuntimeErrorr
   ImportErrorargs)min_versionr   msgvferr r   U/var/www/html/IGF-ODF-V3/venv/lib/python3.10/site-packages/altair/utils/_importers.pyimport_vegafusion   2   
	r   c                  C  r	   )	Nzvl-convert-pythonz.The vl-convert-python package must be version r   r   zKThe vl-convert Vega-Lite compiler and file export feature requires
version zz or greater of the 'vl-convert-python' package. 
This can be installed with pip using:
   pip install "vl-convert-python>=z@"
or conda:
   conda install -c conda-forge "vl-convert-python>=r   )r   r   r   r   
vl_convertr   r   )r   r   r   vlcr   r   r   r   import_vl_convert(   r   r   strc                  C  s$   ddl m}  d| dd d S )Nr   SCHEMA_VERSION_.   )altair.vegaliter   joinsplitr   r   r   r   vl_version_for_vl_convertB   s   r%   c                  C  s   d} z!t d}t|t| k rd|  d| }t|dd lm} |W S  tyE } zd|  d|  d|  d	|jd  }t||d }~ww )
Nz11.0.0pyarrowz$The pyarrow package must be version r   r   z=Usage of the DataFrame Interchange Protocol requires
version zd or greater of the pyarrow package. 
This can be installed with pip using:
   pip install "pyarrow>=z6"
or conda:
   conda install -c conda-forge "pyarrow>=r   )r   r   r   pyarrow.interchangeinterchanger   r   )r   r   r   pir   r   r   r   import_pyarrow_interchangeJ   s2   
	r*   boolc                	   C  s&   zt   W dS  ttfy   Y dS w )NTF)r*   r   r   r   r   r   r   pyarrow_availablee   s   r,   N)r   r   )r   r   )r   r+   )
__future__r   importlib.metadatar   r   typingr   packaging.versionr   altair.utils.schemapir   typesr   r   r   r%   r*   r,   r   r   r   r   <module>   s    



