
    q"h                     z   S SK r S SKJr  \ " S S5      5       r S SKrS SKJr  \ R                  S:X  a  \" \R                  5      rO
Sr\	" S5      eS SK
JrJrJrJr  S	\4S
 jr\S:X  a;  S SKr\" 5       rS SKJr  \" S\R,                  " 5        S35        \" \" \5      5        gg! \\	\4 a
    S	\4S jr NTf = f)    N)	dataclassc                   8    \ rS rSr% SrSr\\S'    Sr\\S'   Sr	g)WindowsConsoleFeatures   zWindows features available.Fvt	truecolor N)
__name__
__module____qualname____firstlineno____doc__r   bool__annotations__r   __static_attributes__r	       K/var/www/html/env/lib/python3.13/site-packages/pip/_vendor/rich/_windows.pyr   r      s    %B(It)r   r   )LibraryLoaderwin32zNot windows)"ENABLE_VIRTUAL_TERMINAL_PROCESSINGGetConsoleModeGetStdHandleLegacyWindowsErrorreturnc                  X   [        5       n  [        U 5      nSn[        U=(       a	    U[        -  5      nSnU(       aP  [
        R                  " 5       nUR                  S:  =(       d%    UR                  S:H  =(       a    UR                  S:  n[        X4S9nU$ ! [         a    SnSn Nf = f)zkGet windows console features.

Returns:
    WindowsConsoleFeatures: An instance of WindowsConsoleFeatures.
Tr   F
   i:  )r   r   )
r   r   r   r   r   sysgetwindowsversionmajorbuildr   )handleconsole_modesuccessr   r   win_versionfeaturess          r   get_windows_console_featuresr&   (   s     	)&1LG 'Ol-OOP	//1K#))B. !!R'FK,=,=,F  *RE " 	LG	s   B B)(B)c                      [        5       n U $ )N)r   )r%   s    r   r&   r&   "   s    )+r   __main__)printz
platform="")r   dataclassesr   r   ctypesr   platformWinDLLwindllImportErrorpip._vendor.rich._win32_consoler   r   r   r   r&   AttributeError
ValueErrorr
   r%   pip._vendor.richr)   systemreprr	   r   r   <module>r7      s    
 ! * * *.$
||wv}}--(( *@ 0 z+-H&	Jx()
+,	$x. A 	Z0 *@ s   AB' 'B:9B: