ó
    ¼®i™3  ã                   ó  • S SK JrJrJr  S SKJr   " S S5      r " S S5      r " S S5      r " S	 S
5      r	 " S S5      r
 " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S5      rg)é    )ÚAnyÚOptionalÚUnion)Úcommand_builderc                   ó(   • \ rS rSrSrSrSrSrSrSr	g)	ÚSameSiteé   z5Represents the possible same site values for cookies.ÚstrictÚlaxÚnoneÚdefault© N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚSTRICTÚLAXÚNONEÚDEFAULTÚ__static_attributes__r   ó    ÚSC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium\webdriver\common\bidi\storage.pyr   r      s   † Ù?à€FØ
€CØ€DØƒGr   r   c                   ó@   • \ rS rSrSrSrSrS\S\4S jrS\	4S	 jr
S
rg)Ú
BytesValueé    zRepresents a bytes value.Úbase64ÚstringÚtypeÚvaluec                 ó   • Xl         X l        g ©N©r    r!   )Úselfr    r!   s      r   Ú__init__ÚBytesValue.__init__&   s   € ØŒ	Ø�
r   Úreturnc                 ó4   • U R                   U R                  S.$ )ztConverts the BytesValue to a dictionary.

Returns:
-------
    Dict: A dictionary representation of the BytesValue.
r$   r$   ©r%   s    r   Úto_dictÚBytesValue.to_dict*   s   € ð Ÿ	™	¨D¯J©JÑ7Ð7r   r$   N)r   r   r   r   r   ÚTYPE_BASE64ÚTYPE_STRINGÚstrr&   Údictr+   r   r   r   r   r   r       s.   † Ù#à€KØ€Kð˜Sð ¨ô ð8˜÷ 8r   r   c                   ó–   • \ rS rSrSr      SS\S\S\S\\   S\\   S	\\	   S
\\	   S\\   S\\   4S jjr
\S\SS 4S j5       rSrg)ÚCookieé4   zRepresents a cookie.NÚnamer!   ÚdomainÚpathÚsizeÚ	http_onlyÚsecureÚ	same_siteÚexpiryc
                 óp   • Xl         X l        X0l        X@l        XPl        X`l        Xpl        X€l        X�l        g r#   ©	r4   r!   r5   r6   r7   r8   r9   r:   r;   ©
r%   r4   r!   r5   r6   r7   r8   r9   r:   r;   s
             r   r&   ÚCookie.__init__7   ó1   € ð Œ	ØŒ
ØŒØŒ	ØŒ	Ø"ŒØŒØ"ŒØ�r   Údatar(   c                 ó  • UR                  S5      nU(       d  [        S5      eUR                  S5      nU(       d  [        S5      e[        UR                  S0 5      R                  S5      UR                  S0 5      R                  S5      5      nU " [        U5      U[        U5      UR                  S5      UR                  S5      UR                  S	5      UR                  S
5      UR                  S5      UR                  S5      S9	$ )z¸Creates a Cookie instance from a dictionary.

Parameters:
-----------
    data: A dictionary containing the cookie information.

Returns:
-------
    Cookie: A new instance of Cookie.
r4   z$name is required and cannot be emptyr5   z&domain is required and cannot be emptyr!   r    r6   r7   ÚhttpOnlyr9   ÚsameSiter;   r=   )ÚgetÚ
ValueErrorr   r/   )ÚclsrA   r4   r5   r!   s        r   Ú	from_dictÚCookie.from_dictM   sÞ   € ð �x‰x˜ÓˆÞÜÐCÓDÐDØ—‘˜(Ó#ˆÞÜÐEÓFÐFä˜4Ÿ8™8 G¨RÓ0×4Ñ4°VÓ<¸d¿h¹hÀwÐPRÓ>S×>WÑ>WÐX_Ó>`ÓaˆÙÜ�T“ØÜ�v“;Ø—‘˜&Ó!Ø—‘˜&Ó!Ø—h‘h˜zÓ*Ø—8‘8˜HÓ%Ø—h‘h˜zÓ*Ø—8‘8˜HÓ%ñ

ð 
	
r   ©	r5   r;   r8   r4   r6   r:   r9   r7   r!   )NNNNNN)r   r   r   r   r   r/   r   r   ÚintÚboolr&   Úclassmethodr0   rH   r   r   r   r   r2   r2   4   s°   † Ùð #Ø"Ø$(Ø!%Ø#'Ø $ñàðð ðð ð	ð
 �s‰mðð �s‰mðð ˜D‘>ðð ˜‘ðð ˜C‘=ðð ˜‘õð, ð
˜Tð 
 hó 
ó ó
r   r2   c                   óª   • \ rS rSrSr         SS\\   S\\   S\\   S\\   S\\   S	\\	   S
\\	   S\\   S\\   4S jjr
S\\\4   4S jrSrg)ÚCookieFilteréo   z Represents a filter for cookies.Nr4   r!   r5   r6   r7   r8   r9   r:   r;   c
                 óp   • Xl         X l        X0l        X@l        XPl        X`l        Xpl        X€l        X�l        g r#   r=   r>   s
             r   r&   ÚCookieFilter.__init__r   r@   r   r(   c                 ó  • 0 nU R                   b  U R                   US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R
                  b  U R
                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US	'   U$ )
zxConverts the CookieFilter to a dictionary.

Returns:
-------
    Dict: A dictionary representation of the CookieFilter.
r4   r!   r5   r6   r7   rC   r9   rD   r;   )
r4   r!   r+   r5   r6   r7   r8   r9   r:   r;   ©r%   Úresults     r   r+   ÚCookieFilter.to_dictˆ   së   € ð "$ˆØ�9‰9Ñ Ø!ŸY™YˆF�6‰NØ�:‰:Ñ!Ø"Ÿj™j×0Ñ0Ó2ˆF�7‰OØ�;‰;Ñ"Ø#Ÿ{™{ˆF�8ÑØ�9‰9Ñ Ø!ŸY™YˆF�6‰NØ�9‰9Ñ Ø!ŸY™YˆF�6‰NØ�>‰>Ñ%Ø!%§¡ˆF�:ÑØ�;‰;Ñ"Ø#Ÿ{™{ˆF�8ÑØ�>‰>Ñ%Ø!%§¡ˆF�:ÑØ�;‰;Ñ"Ø#Ÿ{™{ˆF�8ÑØˆr   rJ   )	NNNNNNNNN)r   r   r   r   r   r   r/   r   rK   rL   r&   r0   r   r+   r   r   r   r   rO   rO   o   s¸   † Ù*ð #Ø&*Ø $Ø"Ø"Ø$(Ø!%Ø#'Ø $ñà�s‰mðð ˜
Ñ#ðð ˜‘ð	ð
 �s‰mðð �s‰mðð ˜D‘>ðð ˜‘ðð ˜C‘=ðð ˜‘õð,˜˜c 3˜h™÷ r   rO   c                   óV   • \ rS rSrSrSS\\   S\\   4S jjr\S\	SS 4S	 j5       r
S
rg)ÚPartitionKeyé¥   z#Represents a storage partition key.NÚuser_contextÚsource_originc                 ó   • Xl         X l        g r#   ©rZ   r[   ©r%   rZ   r[   s      r   r&   ÚPartitionKey.__init__¨   s   € Ø(ÔØ*Õr   rA   r(   c                 óL   • U " UR                  S5      UR                  S5      S9$ )zÑCreates a PartitionKey instance from a dictionary.

Parameters:
-----------
    data: A dictionary containing the partition key information.

Returns:
-------
    PartitionKey: A new instance of PartitionKey.
ÚuserContextÚsourceOriginr]   )rE   )rG   rA   s     r   rH   ÚPartitionKey.from_dict¬   s)   € ñ ØŸ™ -Ó0ØŸ(™( >Ó2ñ
ð 	
r   )r[   rZ   ©NN)r   r   r   r   r   r   r/   r&   rM   r0   rH   r   r   r   r   rX   rX   ¥   sC   † Ù-ñ+ X¨c¡]ð +È(ÐSVÉ-õ +ð ð
˜Tð 
 nó 
ó ó
r   rX   c                   ó4   • \ rS rSrSrS\4S jrS\4S jrSr	g)	Ú"BrowsingContextPartitionDescriptoré¾   z3Represents a browsing context partition descriptor.Úcontextc                 ó   • SU l         Xl        g )Nrh   ©r    rh   )r%   rh   s     r   r&   Ú+BrowsingContextPartitionDescriptor.__init__Á   s   € ØˆŒ	Ø�r   r(   c                 ó4   • U R                   U R                  S.$ )z¤Converts the BrowsingContextPartitionDescriptor to a dictionary.

Returns:
-------
    Dict: A dictionary representation of the BrowsingContextPartitionDescriptor.
rj   rj   r*   s    r   r+   Ú*BrowsingContextPartitionDescriptor.to_dictÅ   s   € ð Ÿ	™	¨d¯l©lÑ;Ð;r   )rh   r    N)
r   r   r   r   r   r/   r&   r0   r+   r   r   r   r   rf   rf   ¾   s   † Ù=ð ô ð<˜÷ <r   rf   c                   óH   • \ rS rSrSrS
S\\   S\\   4S jjrS\4S jr	S	r
g)ÚStorageKeyPartitionDescriptoréÏ   z.Represents a storage key partition descriptor.NrZ   r[   c                 ó*   • SU l         Xl        X l        g )NÚ
storageKey©r    rZ   r[   r^   s      r   r&   Ú&StorageKeyPartitionDescriptor.__init__Ò   s   € Ø ˆŒ	Ø(ÔØ*Õr   r(   c                 ó’   • SU R                   0nU R                  b  U R                  US'   U R                  b  U R                  US'   U$ )zšConverts the StorageKeyPartitionDescriptor to a dictionary.

Returns:
-------
    Dict: A dictionary representation of the StorageKeyPartitionDescriptor.
r    ra   rb   rs   rT   s     r   r+   Ú%StorageKeyPartitionDescriptor.to_dict×   sO   € ð ˜$Ÿ)™)Ð$ˆØ×ÑÑ(Ø$(×$5Ñ$5ˆF�=Ñ!Ø×ÑÑ)Ø%)×%7Ñ%7ˆF�>Ñ"Øˆr   )r[   r    rZ   rd   )r   r   r   r   r   r   r/   r&   r0   r+   r   r   r   r   ro   ro   Ï   s-   † Ù8ñ+ X¨c¡]ð +È(ÐSVÉ-õ +ð
˜÷ r   ro   c                   ó†   • \ rS rSrSr     SS\S\S\S\\   S\\   S	\\   S
\\   S\\	   4S jjr
S\\\4   4S jrSrg)ÚPartialCookieéæ   z(Represents a partial cookie for setting.Nr4   r!   r5   r6   r8   r9   r:   r;   c	                 ód   • Xl         X l        X0l        X@l        XPl        X`l        Xpl        X€l        g r#   )r4   r!   r5   r6   r8   r9   r:   r;   )	r%   r4   r!   r5   r6   r8   r9   r:   r;   s	            r   r&   ÚPartialCookie.__init__é   s,   € ð Œ	ØŒ
ØŒØŒ	Ø"ŒØŒØ"ŒØ�r   r(   c                 ó‚  • U R                   U R                  R                  5       U R                  S.nU R                  b  U R                  US'   U R
                  b  U R
                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U$ )zzConverts the PartialCookie to a dictionary.

Returns:
-------
    Dict: A dictionary representation of the PartialCookie.
)r4   r!   r5   r6   rC   r9   rD   r;   )	r4   r!   r+   r5   r6   r8   r9   r:   r;   rT   s     r   r+   ÚPartialCookie.to_dictý   s§   € ð —I‘IØ—Z‘Z×'Ñ'Ó)Ø—k‘kñ"
ˆð
 �9‰9Ñ Ø!ŸY™YˆF�6‰NØ�>‰>Ñ%Ø!%§¡ˆF�:ÑØ�;‰;Ñ"Ø#Ÿ{™{ˆF�8ÑØ�>‰>Ñ%Ø!%§¡ˆF�:ÑØ�;‰;Ñ"Ø#Ÿ{™{ˆF�8ÑØˆr   )r5   r;   r8   r4   r6   r:   r9   r!   )NNNNN)r   r   r   r   r   r/   r   r   rL   rK   r&   r0   r   r+   r   r   r   r   rx   rx   æ   s‘   † Ù2ð #Ø$(Ø!%Ø#'Ø $ñàðð ðð ð	ð
 �s‰mðð ˜D‘>ðð ˜‘ðð ˜C‘=ðð ˜‘õð(˜˜c 3˜h™÷ r   rx   c                   óL   • \ rS rSrSrS\\   S\4S jr\	S\
SS 4S j5       rS	rg
)ÚGetCookiesResulti  z.Represents the result of a getCookies command.ÚcookiesÚpartition_keyc                 ó   • Xl         X l        g r#   ©r€   r�   )r%   r€   r�   s      r   r&   ÚGetCookiesResult.__init__  s   € ØŒØ*Õr   rA   r(   c                 óÌ   • UR                  S/ 5       Vs/ s H  n[        R                  U5      PM     nn[        R                  UR                  S0 5      5      nU " X4S9$ s  snf )zâCreates a GetCookiesResult instance from a dictionary.

Parameters:
-----------
    data: A dictionary containing the get cookies result information.

Returns:
-------
    GetCookiesResult: A new instance of GetCookiesResult.
r€   ÚpartitionKeyrƒ   )rE   r2   rH   rX   )rG   rA   Úcookier€   r�   s        r   rH   ÚGetCookiesResult.from_dict  s\   € ð ;?¿(¹(À9ÈbÔ:QÓRÒ:Q°”6×#Ñ# FÖ+Ñ:QˆÐRÜ$×.Ñ.¨t¯x©x¸ÈÓ/KÓLˆÙ˜7Ñ@Ð@ùò Ss   •A!rƒ   N)r   r   r   r   r   Úlistr2   rX   r&   rM   r0   rH   r   r   r   r   r   r     sC   † Ù8ð+  V¡ð +¸\ô +ð ðA˜Tð AÐ&8ó Aó óAr   r   c                   óB   • \ rS rSrSrS\4S jr\S\SS 4S j5       r	Sr
g	)
ÚSetCookieResulti.  z-Represents the result of a setCookie command.r�   c                 ó   • Xl         g r#   ©r�   ©r%   r�   s     r   r&   ÚSetCookieResult.__init__1  ó   € Ø*Õr   rA   r(   c                 óX   • [         R                  UR                  S0 5      5      nU " US9$ )zÞCreates a SetCookieResult instance from a dictionary.

Parameters:
-----------
    data: A dictionary containing the set cookie result information.

Returns:
-------
    SetCookieResult: A new instance of SetCookieResult.
r†   r�   ©rX   rH   rE   ©rG   rA   r�   s      r   rH   ÚSetCookieResult.from_dict4  ó*   € ô %×.Ñ.¨t¯x©x¸ÈÓ/KÓLˆÙ Ñ/Ð/r   r�   N©r   r   r   r   r   rX   r&   rM   r0   rH   r   r   r   r   r‹   r‹   .  s4   † Ù7ð+ lô +ð ð0˜Tð 0Ð&7ó 0ó ó0r   r‹   c                   óB   • \ rS rSrSrS\4S jr\S\SS 4S j5       r	Sr
g	)
ÚDeleteCookiesResultiD  z1Represents the result of a deleteCookies command.r�   c                 ó   • Xl         g r#   r�   rŽ   s     r   r&   ÚDeleteCookiesResult.__init__G  r�   r   rA   r(   c                 óX   • [         R                  UR                  S0 5      5      nU " US9$ )zîCreates a DeleteCookiesResult instance from a dictionary.

Parameters:
-----------
    data: A dictionary containing the delete cookies result information.

Returns:
-------
    DeleteCookiesResult: A new instance of DeleteCookiesResult.
r†   r�   r’   r“   s      r   rH   ÚDeleteCookiesResult.from_dictJ  r•   r   r�   Nr–   r   r   r   r˜   r˜   D  s4   † Ù;ð+ lô +ð ð0˜Tð 0Ð&;ó 0ó ó0r   r˜   c                   ó²   • \ rS rSrSrS r  SS\\   S\\\	\
4      S\4S jjr SS	\S\\\	\
4      S\4S
 jjr  SS\\   S\\\	\
4      S\4S jjrSrg)ÚStorageiZ  z*BiDi implementation of the storage module.c                 ó   • Xl         g r#   ©Úconn)r%   r¡   s     r   r&   ÚStorage.__init__]  s   € Ø�	r   NÚfilterÚ	partitionr(   c                 óÒ   • 0 nUb  UR                  5       US'   Ub  UR                  5       US'   U R                  R                  [        SU5      5      n[        R                  U5      $ )z÷Retrieves cookies that match the given parameters.

Parameters:
-----------
    filter: Optional filter to match cookies.
    partition: Optional partition descriptor.

Returns:
-------
    GetCookiesResult: The result of the get cookies command.
r£   r¤   zstorage.getCookies)r+   r¡   Úexecuter   r   rH   ©r%   r£   r¤   ÚparamsrU   s        r   Úget_cookiesÚStorage.get_cookies`  sf   € ð  ˆØÑØ%Ÿ~™~Ó/ˆF�8ÑØÑ Ø"+×"3Ñ"3Ó"5ˆF�;Ñà—‘×"Ñ"¤?Ð3GÈÓ#PÓQˆÜ×)Ñ)¨&Ó1Ð1r   r‡   c                 óÆ   • SUR                  5       0nUb  UR                  5       US'   U R                  R                  [        SU5      5      n[        R                  U5      $ )zÑSets a cookie in the browser.

Parameters:
-----------
    cookie: The cookie to set.
    partition: Optional partition descriptor.

Returns:
-------
    SetCookieResult: The result of the set cookie command.
r‡   r¤   zstorage.setCookie)r+   r¡   r¦   r   r‹   rH   )r%   r‡   r¤   r¨   rU   s        r   Ú
set_cookieÚStorage.set_cookiey  s[   € ð  ˜FŸN™NÓ,Ð-ˆØÑ Ø"+×"3Ñ"3Ó"5ˆF�;Ñà—‘×"Ñ"¤?Ð3FÈÓ#OÓPˆÜ×(Ñ(¨Ó0Ð0r   c                 óÒ   • 0 nUb  UR                  5       US'   Ub  UR                  5       US'   U R                  R                  [        SU5      5      n[        R                  U5      $ )a  Deletes cookies that match the given parameters.

Parameters:
-----------
    filter: Optional filter to match cookies to delete.
    partition: Optional partition descriptor.

Returns:
-------
    DeleteCookiesResult: The result of the delete cookies command.
r£   r¤   zstorage.deleteCookies)r+   r¡   r¦   r   r˜   rH   r§   s        r   Údelete_cookiesÚStorage.delete_cookies�  sf   € ð  ˆØÑØ%Ÿ~™~Ó/ˆF�8ÑØÑ Ø"+×"3Ñ"3Ó"5ˆF�;Ñà—‘×"Ñ"¤?Ð3JÈFÓ#SÓTˆÜ"×,Ñ,¨VÓ4Ð4r   r    rd   r#   )r   r   r   r   r   r&   r   rO   r   rf   ro   r   r©   rx   r‹   r¬   r˜   r¯   r   r   r   r   rž   rž   Z  sÆ   † Ù4òð
 *.Øhlñ2à˜Ñ&ð2ð ˜EÐ"DÐFcÐ"cÑdÑeð2ð 
õ	2ð8 imñ1àð1ð ˜EÐ"DÐFcÐ"cÑdÑeð1ð 
õ	1ð2 *.Øhlñ5à˜Ñ&ð5ð ˜EÐ"DÐFcÐ"cÑdÑeð5ð 
÷	5ð 5r   rž   N)Útypingr   r   r   Ú%selenium.webdriver.common.bidi.commonr   r   r   r2   rO   rX   rf   ro   rx   r   r‹   r˜   rž   r   r   r   Ú<module>r³      s�   ð÷$ (Ñ 'å A÷ñ ÷8ñ 8÷(8
ñ 8
÷v3ñ 3÷l
ñ 
÷2<ñ <÷"ñ ÷.-ñ -÷`Añ A÷00ñ 0÷,0ñ 0÷,M5ò M5r   