
    +g)+                    v   S SK Jr  SSKJrJr  S SKJr  S SKrS SKr\ " S S5      5       r	\ " S S	5      5       r
\ " S
 S5      5       r\ " S S5      5       r " S S\R                  5      r " S S\R                  5      r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       rSS jrSS jrg)    )annotations   )event_classT_JSON_DICT)	dataclassNc                      \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S	'   S\S
'   SrS\S'   SrS\S'   S r\	S 5       r
Srg)	GPUDevice   z.
Describes a single graphics processor (GPU).
float	vendor_id	device_idstrvendor_stringdevice_stringdriver_vendordriver_versionNztyping.Optional[float]
sub_sys_idrevisionc                >   [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U R
                  US'   U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U$ )	NvendorIddeviceIdvendorStringdeviceStringdriverVendordriverVersionsubSysIdr   )	dictr   r   r   r   r   r   r   r   selfjsons     z/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v85/system_info.pyto_jsonGPUDevice.to_json*   s    v>>Z>>Z#11^#11^#11^ $ 3 3_??&#D==$#}}D    c                    U " [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      SU;   a  [        US   5      OS SU;   a  [        US   5      S	9$ S S	9$ )
Nr   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )r   r   clsr    s     r!   	from_jsonGPUDevice.from_json8   s    D,-D,-d>23d>23d>23tO452<2DuT*-.$0:d0BU4
+,	
 		
 IM	
 		
r$    )__name__
__module____qualname____firstlineno____doc____annotations__r   r   r"   classmethodr(   __static_attributes__r*   r$   r!   r	   r	      sj           *.J&- (,H$+ 

 

r$   r	   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
SizeF   z9
Describes the width and height dimensions of an entity.
intwidthheightc                V    [        5       nU R                  US'   U R                  US'   U$ )Nr7   r8   )r   r7   r8   r   s     r!   r"   Size.to_jsonQ   s(    v

WXr$   c                @    U " [        US   5      [        US   5      S9$ )Nr7   r8   )r7   r8   )r6   r&   s     r!   r(   Size.from_jsonW   s'    d7m$tH~&
 	
r$   r*   N
r+   r,   r-   r.   r/   r0   r"   r1   r(   r2   r*   r$   r!   r4   r4   F   s.     J K 
 
r$   r4   c                  N    \ rS rSr% SrS\S'   S\S'   S\S'   S r\S	 5       rS
r	g) VideoDecodeAcceleratorCapability_   zc
Describes a supported video decoding profile with its associated minimum and
maximum resolutions.
r   profiler4   max_resolutionmin_resolutionc                    [        5       nU R                  US'   U R                  R                  5       US'   U R                  R                  5       US'   U$ )NrA   maxResolutionminResolution)r   rA   rB   r"   rC   r   s     r!   r"   (VideoDecodeAcceleratorCapability.to_jsonn   sM    v,,Y $ 3 3 ; ; =_ $ 3 3 ; ; =_r$   c                    U " [        US   5      [        R                  US   5      [        R                  US   5      S9$ )NrA   rE   rF   )rA   rB   rC   )r   r4   r(   r&   s     r!   r(   *VideoDecodeAcceleratorCapability.from_jsonu   s=    Y(>>$*?@>>$*?@
 	
r$   r*   Nr=   r*   r$   r!   r?   r?   _   s7    
 L   
 
r$   r?   c                  X    \ rS rSr% SrS\S'   S\S'   S\S'   S\S	'   S
 r\S 5       rSr	g) VideoEncodeAcceleratorCapability~   zl
Describes a supported video encoding profile with its associated maximum
resolution and maximum framerate.
r   rA   r4   rB   r6   max_framerate_numeratormax_framerate_denominatorc                    [        5       nU R                  US'   U R                  R                  5       US'   U R                  US'   U R
                  US'   U$ )NrA   rE   maxFramerateNumeratormaxFramerateDenominator)r   rA   rB   r"   rM   rN   r   s     r!   r"   (VideoEncodeAcceleratorCapability.to_json   sV    v,,Y $ 3 3 ; ; =_(,(D(D$%*.*H*H&'r$   c           	         U " [        US   5      [        R                  US   5      [        US   5      [        US   5      S9$ )NrA   rE   rP   rQ   )rA   rB   rM   rN   )r   r4   r(   r6   r&   s     r!   r(   *VideoEncodeAcceleratorCapability.from_json   sH    Y(>>$*?@$'-D(E$F&)$/H*I&J	
 	
r$   r*   Nr=   r*   r$   r!   rK   rK   ~   s=    
 L 
 ! "" 
 
r$   rK   c                  :    \ rS rSrSrSrSrSrS r\	S 5       r
Srg	)
SubsamplingFormat   z6
YUV subsampling type of the pixels of a given image.
yuv420yuv422yuv444c                    U R                   $ Nvaluer   s    r!   r"   SubsamplingFormat.to_json       zzr$   c                    U " U5      $ r\   r*   r&   s     r!   r(   SubsamplingFormat.from_json       4yr$   r*   N)r+   r,   r-   r.   r/   YUV420YUV422YUV444r"   r1   r(   r2   r*   r$   r!   rV   rV      s1     FFF  r$   rV   c                  :    \ rS rSrSrSrSrSrS r\	S 5       r
Srg	)
	ImageType   z 
Image format of a given image.
jpegwebpunknownc                    U R                   $ r\   r]   r_   s    r!   r"   ImageType.to_json   ra   r$   c                    U " U5      $ r\   r*   r&   s     r!   r(   ImageType.from_json   rd   r$   r*   N)r+   r,   r-   r.   r/   JPEGWEBPUNKNOWNr"   r1   r(   r2   r*   r$   r!   ri   ri      s1     DDG  r$   ri   c                  X    \ rS rSr% SrS\S'   S\S'   S\S'   S\S	'   S
 r\S 5       rSr	g) ImageDecodeAcceleratorCapability   zs
Describes a supported image decoding profile with its associated minimum and
maximum resolutions and subsampling.
ri   
image_typer4   max_dimensionsmin_dimensionsztyping.List[SubsamplingFormat]subsamplingsc                ,   [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  R                  5       US'   U R
                   Vs/ s H  o"R                  5       PM     snUS'   U$ s  snf )N	imageTypemaxDimensionsminDimensionsr{   )r   rx   r"   ry   rz   r{   r   r    is      r!   r"   (ImageDecodeAcceleratorCapability.to_json   s    v OO335[ $ 3 3 ; ; =_ $ 3 3 ; ; =_595F5FG5F		5FG^  Hs   0Bc                    U " [         R                  US   5      [        R                  US   5      [        R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nr}   r~   r   r{   )rx   ry   rz   r{   )ri   r(   r4   rV   r'   r    r   s      r!   r(   *ImageDecodeAcceleratorCapability.from_json   so     **4+<=>>$*?@>>$*?@BF~BVWBVQ+55a8BVW	
 	
 Xs   A3r*   Nr=   r*   r$   r!   rv   rv      s@    
    10 
 
r$   rv   c                  ~    \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   SrS\S'   SrS\S'   S r\	S 5       r
Srg)GPUInfo   z6
Provides information about the GPU(s) on the system.
ztyping.List[GPUDevice]devicesztyping.List[str]driver_bug_workaroundsz-typing.List[VideoDecodeAcceleratorCapability]video_decodingz-typing.List[VideoEncodeAcceleratorCapability]video_encodingz-typing.List[ImageDecodeAcceleratorCapability]image_decodingNztyping.Optional[dict]aux_attributesfeature_statusc                b   [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                   Vs/ s H  o"PM     snUS'   U R                   Vs/ s H  o"R                  5       PM     snUS'   U R
                   Vs/ s H  o"R                  5       PM     snUS'   U R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  b  U R                  US'   U R                  b  U R                  US'   U$ s  snf s  snf s  snf s  snf s  snf )Nr   driverBugWorkaroundsvideoDecodingvideoEncodingimageDecodingauxAttributesfeatureStatus)	r   r   r"   r   r   r   r   r   r   r   s      r!   r"   GPUInfo.to_json  s   v04=199;=Y373N3N'O3Na3N'O#$6:6I6I J6I6I J_6:6I6I J6I6I J_6:6I6I J6I6I J_*$($7$7D!*$($7$7D! >'O J J Js   DD%D"D'?D,c                   U " US    Vs/ s H  n[         R                  U5      PM     snUS    Vs/ s H  n[        U5      PM     snUS    Vs/ s H  n[        R                  U5      PM     snUS    Vs/ s H  n[        R                  U5      PM     snUS    Vs/ s H  n[
        R                  U5      PM     snSU;   a  [        US   5      OS SU;   a  [        US   5      S9$ S S9$ s  snf s  snf s  snf s  snf s  snf )	Nr   r   r   r   r   r   r   )r   r   r   r   r   r   r   )r	   r(   r   r?   rK   rv   r   r   s      r!   r(   GPUInfo.from_json  s   59)_E_Y((+_E489O4P#Q4PqCF4P#QSWXgShiSha<FFqIShiSWXgShiSha<FFqIShiSWXgShiSha<FFqIShi:IT:Q4_ 56W[:IT:Q4_ 56
 	
 X\
 	
E#Qiiis   C0C5
C:8C? Dr*   )r+   r,   r-   r.   r/   r0   r   r   r"   r1   r(   r2   r*   r$   r!   r   r      se     $# -, BA BA BA -1N)0 -1N)0 	
 	
r$   r   c                  N    \ rS rSr% SrS\S'   S\S'   S\S'   S	 r\S
 5       rSr	g)ProcessInfoi  z
Represents process info.
r   type_r6   id_r   cpu_timec                t    [        5       nU R                  US'   U R                  US'   U R                  US'   U$ )NtypeidcpuTime)r   r   r   r   r   s     r!   r"   ProcessInfo.to_json*  s5    vzzVXXT
--Yr$   c                Z    U " [        US   5      [        US   5      [        US   5      S9$ )Nr   r   r   )r   r   r   )r   r6   r   r&   s     r!   r(   ProcessInfo.from_json1  s2    d6l#DJ4	?+
 	
r$   r*   Nr=   r*   r$   r!   r   r     s5     J 
H O 
 
r$   r   c               #     #    SS0n U v n[         R                  US   5      [        US   5      [        US   5      [        US   5      4$ 7f)ae  
Returns information about the system.

:returns: A tuple with the following items:

    0. **gpu** - Information about the GPUs on the system.
    1. **modelName** - A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported.
    2. **modelVersion** - A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported.
    3. **commandLine** - The command line string used to launch the browser. Will be the empty string if not supported.
methodzSystemInfo.getInfogpu	modelNamemodelVersioncommandLine)r   r(   r   )cmd_dictr    s     r!   get_infor   :  s`      	&H >D$u+&DD !D 	 s   A	Ac               #  v   #    SS0n U v nUS    Vs/ s H  n[         R                  U5      PM     sn$ s  snf 7f)z^
Returns information about all running processes.

:returns: An array of process info blocks.
r   zSystemInfo.getProcessInfoprocessInfo)r   r(   )r   r    r   s      r!   get_process_infor   Q  sG      	-H >D.2=.AB.AK!!!$.ABBBs   949)returnzPtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[GPUInfo, str, str, str]])r   zDtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[ProcessInfo]])
__future__r   utilr   r   dataclassesr   enumtypingr	   r4   r?   rK   EnumrV   ri   rv   r   r   r   r   r*   r$   r!   <module>r      s    # * !  
5
 5
 5
p 
 
 
0 
 
 
< !
 !
 !
H		  		    
  
  
F 0
 0
 0
f 
 
 
<.
Cr$   