+
    ^|ir                         R t ^ RIt^ RIt^ RIHtHtHtHtHtH	t	H
t
HtHtHt ]]]	]
]3tR tR t]! 4       t]! ]4      w  tttt]! ]]4      tR# )a  Import Qt in a manner suitable for an IPython kernel.

This is the import used for the `gui=qt` or `matplotlib=qt` initialization.

Import Priority:

if Qt has been imported anywhere else:
   use that

if matplotlib has been imported and doesn't support v2 (<= 1.0.1):
    use PyQt4 @v1

Next, ask QT_API env variable

if QT_API not set:
    ask matplotlib what it's using. If Qt4Agg or Qt5Agg, then use the
        version matplotlib is configured with

    else: (matplotlib said nothing)
        # this is the default path - nobody told us anything
        try in this order:
            PyQt default version, PySide, PyQt5
else:
    use what QT_API says

    Note that %gui's implementation will always set a `QT_API`, see
    `IPython.terminal.pt_inputhooks.get_inputhook_name_and_func`

N)
load_qt
loaded_apienum_factoryQT_API_PYQT6QT_API_PYSIDE6QT_API_PYQT5QT_API_PYSIDE2QT_API_PYQTQT_API_PYSIDEQT_API_PYQT_DEFAULTc                   V f   R# V P                   P                  RR4      pVR8X  d   V P                   P                  RR4      pVf   R# VP                  4       R8X  d   \        .# VP                  4       R8X  d   \        .# VP                  4       R8X  d   \
        .# \        RV,          4      hVR	8X  dQ   V P                   P                  R
R4      pVf   R# VP                  4       R8X  d   \        .# \        RV,          4      hR# )z-Constraints placed on an imported matplotlib.NbackendQt4Aggzbackend.qt4pysidepyqt4pyqt4v2z3unhandled value for backend.qt4 from matplotlib: %rQt5Aggzbackend.qt5pyqt5z3unhandled value for backend.qt5 from matplotlib: %r)rcParamsgetlowerr
   r   r	   ImportErrorr   )mplr   mpqts   &  @/usr/lib/python3/dist-packages/IPython/external/qt_for_kernel.pymatplotlib_optionsr   B   s    
{lly$/G(||t4<::<8#!?"ZZ\W$'((ZZ\Y&= O   	 	H	||t4<::<7" >!O   	  
    c                    \        4       p V e   V .# \        P                  P                  RR4      pVe1   \	        VP
                  P                  R4      4      R8  d   \        .# \        P                  P                  RR4      pVf/   \        V4      ;'       g    \        \        \        \        \        .# V\        9  d'   \!        RV: RRP#                  \        4      : 24      hV.# )	zGReturn a list of acceptable QT APIs, in decreasing order of preference.N
matplotlib.QT_APIzInvalid Qt API z, valid values are: z, )102)r   sysmodulesr   tuple__version__splitr   osenvironr   r   r   r   r   _qt_apisRuntimeErrorjoin)loadedr   qt_apis      r   get_optionsr0   \   s     \Fx
++//,
-C
5!6!6s!;<N#$$ZZ^^Hd+F~!#& 
 
+
 	
 
x	"DIIh$79 : 	: xr   )__doc__r)   r$   IPython.external.qt_loadersr   r   r   r   r   r   r   r	   r
   r   r+   r   r0   api_optsQtCoreQtGuiQtSvgr    enum_helper r   r   <module>r9      sl   B 
 
  & 	 4< =&x0 uf66*r   