ó
    »®iÐ  ã                  ó¢   • 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K	J
r
   " S S\5      r    SS	 jr  S       SS
 jjr    SS jrg)é    )Úannotationsé   )Úevent_classÚT_JSON_DICT)Ú	dataclassN)Úruntimec                  óJ   ^ • \ rS rSrSrSS jr\SS j5       rU 4S jrSr	U =r
$ )	ÚStreamHandleé   zt
This is either obtained from another method or specified as ``blob:<uuid>`` where
``<uuid>`` is an UUID of a Blob.
c                ó   • U $ ©N© )Úselfs    ÚWC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium/webdriver/common/devtools/v142/io.pyÚto_jsonÚStreamHandle.to_json   s   € Øˆó    c                ó   • U " U5      $ r   r   )ÚclsÚjsons     r   Ú	from_jsonÚStreamHandle.from_json   s   € á�4‹yÐr   c                ó>   >• SR                  [        TU ]	  5       5      $ )NzStreamHandle({}))ÚformatÚsuperÚ__repr__)r   Ú	__class__s    €r   r   ÚStreamHandle.__repr__   s   ø€ Ø!×(Ñ(¬©Ñ)9Ó);Ó<Ð<r   r   )ÚreturnÚstr)r   r    r   r
   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úclassmethodr   r   Ú__static_attributes__Ú__classcell__)r   s   @r   r
   r
      s+   ø† ñôð óó ð÷=ó =r   r
   c              #  óX   #   • [        5       nU R                  5       US'   SUS.nUv •ng7f)zi
Close the stream, discard any temporary backing storage.

:param handle: Handle of the stream to close.
ÚhandlezIO.close©ÚmethodÚparamsN)Údictr   )r*   r-   Úcmd_dictr   s       r   Úcloser0      s5   é € ô ›&€FØ—~‘~Ó'€Fˆ8ÑàØñ€Hð ‰>�Dùs   ‚(*c              #  óÔ   #   • [        5       nU R                  5       US'   Ub  XS'   Ub  X#S'   SUS.nUv •nSU;   a  [        US   5      OS[        US   5      [        US	   5      4$ 7f)
aa  
Read a chunk of the stream

:param handle: Handle of the stream to read.
:param offset: *(Optional)* Seek to the specified offset before reading (if not specified, proceed with offset following the last read). Some types of streams may only support sequential reads.
:param size: *(Optional)* Maximum number of bytes to read (left upon the agent discretion if not specified).
:returns: A tuple with the following items:

    0. **base64Encoded** - *(Optional)* Set if the data is base64-encoded
    1. **data** - Data that were read.
    2. **eof** - Set if the end-of-file condition occurred while reading.
r*   NÚoffsetÚsizezIO.readr+   Úbase64EncodedÚdataÚeof)r.   r   Úboolr    )r*   r2   r3   r-   r/   r   s         r   Úreadr8   0   sˆ   é € ô" ›&€FØ—~‘~Ó'€Fˆ8ÑØÑØ!ˆxÑØÑØˆv‰àØñ€Hð ‰>€Dà'6¸$Ó'>ŒˆT�/Ñ"Ô#ÀDÜˆD�‰LÓÜˆT�%‰[Óðð ùs   ‚A&A(c              #  ór   #   • [        5       nU R                  5       US'   SUS.nUv •n[        US   5      $ 7f)zš
Return UUID of Blob object specified by a remote object id.

:param object_id: Object id of a Blob object wrapper.
:returns: UUID of the specified Blob.
ÚobjectIdzIO.resolveBlobr+   Úuuid)r.   r   r    )Ú	object_idr-   r/   r   s       r   Úresolve_blobr=   S   sF   é € ô ›&€FØ"×*Ñ*Ó,€Fˆ:Ñà"Øñ€Hð ‰>€DÜˆt�F‰|ÓÐùs   ‚57)r*   r
   r   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])NN)r*   r
   r2   útyping.Optional[int]r3   r>   r   zZtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[bool], str, bool]])r<   zruntime.RemoteObjectIdr   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])Ú
__future__r   Úutilr   r   Údataclassesr   ÚenumÚtypingÚ r   r    r
   r0   r8   r=   r   r   r   Ú<module>rE      s‚   ðõ #ß *Ý !Û Û Ý ô=�3ô =ð Øðà	7ôð& (,Ø%)ð Øð à$ð ð #ð ð 
bõ	 ðFØ)ðà	6õr   