Ë
    ¤eh«^  ã                   óŠ  — d Z dZddlZddlZddlmZmZmZmZmZ ddl	Z	ddl
Z
ddlmZ ddlZddlZddlZddlmZmZ ddlmZ  e	j,                  d«      Zd	Zd
Z G d„ de«      Zdefd„Zd„ Zd„ Zd„ Zd„ Z d„ Z!d„ Z"d„ Z#d„ Z$d„ Z% G d„ d«      Z&d„ Z'd„ Z(d„ Z)d„ Z*d„ Z+d„ Z,de-fd „Z.e+e,ca/a0d$d!„Z1d$d"„Z2g d#¢Z3t`        Z4t^        Z5y)%aÌ  
Pyperclip

A cross-platform clipboard module for Python,
with copy & paste functions for plain text.
By Al Sweigart al@inventwithpython.com
Licence at LICENSES/PYPERCLIP_LICENSE

Usage:
  import pyperclip
  pyperclip.copy('The text to be copied to the clipboard.')
  spam = pyperclip.paste()

  if not pyperclip.is_available():
    print("Copy functionality unavailable!")

On Windows, no additional modules are needed.
On Mac, the pyobjc module is used, falling back to the pbcopy and pbpaste cli
    commands. (These commands should come with OS X.).
On Linux, install xclip, xsel, or wl-clipboard (for "wayland" sessions) via
package manager.
For example, in Debian:
    sudo apt-get install xclip
    sudo apt-get install xsel
    sudo apt-get install wl-clipboard

Otherwise on Linux, you will need the PyQt5 modules installed.

This module does not work with PyGObject yet.

Cygwin is currently not supported.

Security Note: This module runs programs with these names:
    - pbcopy
    - pbpaste
    - xclip
    - xsel
    - wl-copy/wl-paste
    - klipper
    - qdbus
A malicious user could rename or add programs with these names, tricking
Pyperclip into running them with whatever permissions the Python process has.

z1.8.2é    N)Úc_size_tÚc_wcharÚ	c_wchar_pÚ	get_errnoÚsizeof)Úwhich)ÚPyperclipExceptionÚPyperclipWindowsException)Úfind_stack_levelÚDISPLAYzÁ
    Pyperclip could not find a copy/paste mechanism for your system.
    For more information, please visit
    https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error
    úutf-8c                   ó   — e Zd Zy)ÚPyperclipTimeoutExceptionN)Ú__name__Ú
__module__Ú__qualname__© ó    úZ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pandas/io/clipboard/__init__.pyr   r   U   s   „ Ør   r   Úreturnc                 óž   — t         t        t        t        f}t	        | |«      s!t        dt        | «      j                  › �«      ‚t        | «      S )NzJonly str, int, float, and bool values can be copied to the clipboard, not )ÚstrÚintÚfloatÚboolÚ
isinstancer	   Útyper   )ÚtextÚacceptedTypess     r   Ú_stringifyTextr    Y   sN   € Üœ#œu¤dÐ+€MÜ�d˜MÔ*Ü ð3Ü37¸³:×3FÑ3FÐ2GðIó
ð 	
ô ˆt‹9Ðr   c                  ó   — d„ } d„ }| |fS )Nc                 óÞ   — t        | «      } t        j                  ddgt        j                  d¬«      5 }|j	                  | j                  t        «      ¬«       d d d «       y # 1 sw Y   y xY w)NÚpbcopyÚwT©ÚstdinÚ	close_fds©Úinput©r    Ú
subprocessÚPopenÚPIPEÚcommunicateÚencodeÚENCODING©r   Úps     r   Úcopy_osx_pbcopyz2init_osx_pbcopy_clipboard.<locals>.copy_osx_pbcopyd   sX   € Ü˜dÓ#ˆÜ×ÑØ�sˆO¤:§?¡?¸dô
ð 	7àØ�M‰M §¡¬HÓ 5ˆMÔ6÷	7÷ 	7ñ 	7ús   ´&A#Á#A,c                  óÌ   — t        j                  ddgt         j                  d¬«      5 } | j                  «       d   }d d d «       j	                  t
        «      S # 1 sw Y   ŒxY w)NÚpbpasteÚrT©Ústdoutr'   r   ©r+   r,   r-   r.   Údecoder0   ©r2   r8   s     r   Úpaste_osx_pbcopyz3init_osx_pbcopy_clipboard.<locals>.paste_osx_pbcopyk   sY   € Ü×ÑØ˜Ð¤Z§_¡_Àô
ð 	(àØ—]‘]“_ QÑ'ˆF÷	(ð �}‰}œXÓ&Ð&÷		(ð 	(ús   ©AÁA#r   )r3   r<   s     r   Úinit_osx_pbcopy_clipboardr=   c   s   € ò7ò'ð Ð,Ð,Ð,r   c                  ó   — d„ } d„ }| |fS )Nc                 óp  — t        | «      } t        j                  j                  | «      j	                  «       }|j                  t        j                  «      }t        j                  j                  «       }|j                  t        j                  gd«       |j                  |t        j                  «       y)z!Copy string argument to clipboardN)r    Ú
FoundationÚNSStringÚstringWithString_ÚnsstringÚdataUsingEncoding_ÚNSUTF8StringEncodingÚAppKitÚNSPasteboardÚgeneralPasteboardÚdeclareTypes_owner_ÚNSStringPboardTypeÚsetData_forType_)r   ÚnewStrÚnewDataÚboards       r   Úcopy_osx_pyobjcz2init_osx_pyobjc_clipboard.<locals>.copy_osx_pyobjcv   s„   € ä˜dÓ#ˆÜ×$Ñ$×6Ñ6°tÓ<×EÑEÓGˆØ×+Ñ+¬J×,KÑ,KÓLˆÜ×#Ñ#×5Ñ5Ó7ˆØ×!Ñ!¤6×#<Ñ#<Ð"=¸tÔDØ×Ñ˜w¬×(AÑ(AÕBr   c                  ó€   — t         j                  j                  «       } | j                  t         j                  «      }|S )zReturns contents of clipboard)rF   rG   rH   ÚstringForType_rJ   )rN   Úcontents     r   Úpaste_osx_pyobjcz3init_osx_pyobjc_clipboard.<locals>.paste_osx_pyobjc   s1   € ä×#Ñ#×5Ñ5Ó7ˆØ×&Ñ&¤v×'@Ñ'@ÓAˆØˆr   r   )rO   rS   s     r   Úinit_osx_pyobjc_clipboardrT   u   s   € òCòð Ð,Ð,Ð,r   c                  óÖ   ‡— 	 ddl ma t        j                  «       Š‰€t        g «      Šˆfd„} dt        fˆfd„}| |fS # t        $ r  	 ddlma n# t        $ r	 ddlma Y nw xY wY Œ^w xY w)Nr   )ÚQApplicationc                 ó^   •— t        | «      } ‰j                  «       }|j                  | «       y ©N)r    Ú	clipboardÚsetText)r   ÚcbÚapps     €r   Úcopy_qtz"init_qt_clipboard.<locals>.copy_qt™   s$   ø€ Ü˜dÓ#ˆØ�]‰]‹_ˆØ
�
‰
�4Õr   r   c                  óV   •— ‰j                  «       } t        | j                  «       «      S rX   )rY   r   r   )r[   r\   s    €r   Úpaste_qtz#init_qt_clipboard.<locals>.paste_qtž   s   ø€ Ø�]‰]‹_ˆÜ�2—7‘7“9‹~Ðr   )Úqtpy.QtWidgetsrV   ÚImportErrorÚPyQt5.QtWidgetsÚPyQt4.QtGuiÚinstancer   )r]   r_   r\   s     @r   Úinit_qt_clipboardre   ˆ   ss   ø€ ð
1Ý/ô ×
Ñ
Ó
!€CØ
€{Ü˜2Óˆôð
”cõ ð �HÐÐøô' ò 1ð	1Þ4øÜò 	1ß0ð	1üð1ús3   ƒ? ¿	A(Á	AÁA(ÁA"ÁA(Á!A"Á"A(Á'A(c                  ó2   ‡‡— dŠdŠdˆˆfd„	} dˆˆfd„	}| |fS )NÚcr2   c                 óî   •— t        | «      } ‰}|r‰}t        j                  dd|gt        j                  d¬«      5 }|j	                  | j                  t        «      ¬«       d d d «       y # 1 sw Y   y xY w)NÚxclipú
-selectionTr%   r(   r*   )r   ÚprimaryÚ	selectionr2   ÚDEFAULT_SELECTIONÚPRIMARY_SELECTIONs       €€r   Ú
copy_xclipz(init_xclip_clipboard.<locals>.copy_xclip©   sj   ø€ Ü˜dÓ#ˆØ%ˆ	ÙØ)ˆIÜ×ÑØ�l IÐ.´j·o±oÐQUô
ð 	7àØ�M‰M §¡¬HÓ 5ˆMÔ6÷	7÷ 	7ñ 	7úó   ¼&A+Á+A4c                 óü   •— ‰}| r‰}t        j                  dd|dgt         j                  t         j                  d¬«      5 }|j                  «       d   }d d d «       j	                  t
        «      S # 1 sw Y   ŒxY w)Nri   rj   ú-oT©r8   Ústderrr'   r   r9   )rk   rl   r2   r8   rm   rn   s       €€r   Úpaste_xclipz)init_xclip_clipboard.<locals>.paste_xclip³   sv   ø€ Ø%ˆ	ÙØ)ˆIÜ×ÑØ�l I¨tÐ4Ü—?‘?Ü—?‘?Øô	
ð 	(ð
 Ø—]‘]“_ QÑ'ˆF÷	(ð �}‰}œXÓ&Ð&÷	(ð 	(ús   ÁA2Á2A;©Fr   )ro   ru   rm   rn   s     @@r   Úinit_xclip_clipboardrw   ¥   s&   ù€ ØÐØÐö7ö'ð �{Ð"Ð"r   c                  ó2   ‡‡— dŠdŠdˆˆfd„	} dˆˆfd„	}| |fS )Nz-bú-pc                 óî   •— t        | «      } ‰}|r‰}t        j                  d|dgt        j                  d¬«      5 }|j	                  | j                  t        «      ¬«       d d d «       y # 1 sw Y   y xY w)NÚxselz-iTr%   r(   r*   )r   rk   Úselection_flagr2   rm   rn   s       €€r   Ú	copy_xselz&init_xsel_clipboard.<locals>.copy_xselÈ   si   ø€ Ü˜dÓ#ˆØ*ˆÙØ.ˆNÜ×ÑØ�^ TÐ*´*·/±/ÈTô
ð 	7àØ�M‰M §¡¬HÓ 5ˆMÔ6÷	7÷ 	7ñ 	7úrp   c                 óÜ   •— ‰}| r‰}t        j                  d|dgt         j                  d¬«      5 }|j                  «       d   }d d d «       j	                  t
        «      S # 1 sw Y   ŒxY w)Nr{   rr   Tr7   r   r9   )rk   r|   r2   r8   rm   rn   s       €€r   Ú
paste_xselz'init_xsel_clipboard.<locals>.paste_xselÒ   si   ø€ Ø*ˆÙØ.ˆNÜ×ÑØ�^ TÐ*´:·?±?Èdô
ð 	(àØ—]‘]“_ QÑ'ˆF÷	(ð �}‰}œXÓ&Ð&÷		(ð 	(ús   ±A"Á"A+rv   r   )r}   r   rm   rn   s     @@r   Úinit_xsel_clipboardr€   Ä   s&   ù€ ØÐØÐö7ö'ð �jÐ Ð r   c                  ó(   ‡— dŠdˆfd„	} dˆfd„	}| |fS )Nry   c                 ó4  •— t        | «      } dg}|r|j                  ‰«       | s)|j                  d«       t        j                  |d¬«       y t        j                  |t        j
                  d¬«      }|j                  | j                  t        «      ¬«       y )Núwl-copyz--clearT)r'   r%   r(   )	r    Úappendr+   Ú
check_callr,   r-   r.   r/   r0   )r   rk   Úargsr2   rn   s       €r   Úcopy_wlz"init_wl_clipboard.<locals>.copy_wlâ   sr   ø€ Ü˜dÓ#ˆØˆ{ˆÙØ�K‰KÐ)Ô*ÙØ�K‰K˜	Ô"Ü×!Ñ! $°$Ö7ä× Ñ  ¬Z¯_©_ÈÔMˆAØ�M‰M §¡¬HÓ 5ˆMÕ6r   c                 óÎ   •— ddg}| r|j                  ‰«       t        j                  |t        j                  d¬«      }|j	                  «       \  }}|j                  t        «      S )Nzwl-pastez-nTr7   )r„   r+   r,   r-   r.   r:   r0   )rk   r†   r2   r8   Ú_stderrrn   s        €r   Úpaste_wlz#init_wl_clipboard.<locals>.paste_wlî   sS   ø€ Ø˜DÐ!ˆÙØ�K‰KÐ)Ô*Ü×Ñ˜T¬*¯/©/ÀTÔJˆØŸ-™-›/‰ˆ�Ø�}‰}œXÓ&Ð&r   rv   r   )r‡   rŠ   rn   s     @r   Úinit_wl_clipboardr‹   ß   s    ø€ ØÐõ
7õ'ð �HÐÐr   c                  ó   — d„ } d„ }| |fS )Nc           	      óä   — t        | «      } t        j                  dddd| j                  t        «      gt        j
                  d¬«      5 }|j                  d ¬«       d d d «       y # 1 sw Y   y xY w)NÚqdbusúorg.kde.klipperú/klipperÚsetClipboardContentsTr%   r(   )r    r+   r,   r/   r0   r-   r.   r1   s     r   Úcopy_klipperz,init_klipper_clipboard.<locals>.copy_klipperú   sk   € Ü˜dÓ#ˆÜ×ÑàØ!ØØ&Ø—‘œHÓ%ðô —/‘/Øô

ð 	&ð Ø�M‰M ˆMÔ%÷	&÷ 	&ñ 	&ús   Á
A&Á&A/c                  óB  — t        j                  g d¢t         j                  d¬«      5 } | j                  «       d   }d d d «       j	                  t
        «      }t        |«      dkD  sJ ‚|j                  d«      sJ ‚|j                  d«      r|d d }|S # 1 sw Y   ŒYxY w)N)rŽ   r�   r�   ÚgetClipboardContentsTr7   r   ú
éÿÿÿÿ)r+   r,   r-   r.   r:   r0   ÚlenÚendswith)r2   r8   ÚclipboardContentss      r   Úpaste_klipperz-init_klipper_clipboard.<locals>.paste_klipper	  s¡   € Ü×ÑÚLÜ—?‘?Øô
ð 	(ð Ø—]‘]“_ QÑ'ˆF÷	(ð #ŸM™M¬(Ó3ÐäÐ$Ó%¨Ò)Ð)Ð)à ×)Ñ)¨$Ô/Ð/Ð/Ø×%Ñ% dÔ+Ø 1°#°2Ð 6ÐØ Ð ÷!	(ð 	(ús   ©BÂBr   )r’   rš   s     r   Úinit_klipper_clipboardr›   ù   s   € ò&ò!ð& ˜Ð&Ð&r   c                  ó$   — d„ } dt         fd„}| |fS )Nc                 ó  — t        | «      } | dk(  rt        j                  dt        «       ¬«       d| v rt        j                  dt        «       ¬«       t	        ddd¬	«      5 }|j                  | «       d d d «       y # 1 sw Y   y xY w)
NÚ z]Pyperclip cannot copy a blank string to the clipboard on Cygwin. This is effectively a no-op.©Ú
stacklevelúz0Pyperclip cannot handle \r characters on Cygwin.ú/dev/clipboardr$   r   ©Úencoding)r    ÚwarningsÚwarnr   ÚopenÚwrite)r   Úfds     r   Úcopy_dev_clipboardz8init_dev_clipboard_clipboard.<locals>.copy_dev_clipboard   sy   € Ü˜dÓ#ˆØ�2Š:Ü�M‰Mð/ä+Ó-õð
 �4‰<Ü�M‰MØCÜ+Ó-õô
 Ð" C°'Ô:ð 	¸bØ�H‰H�TŒN÷	÷ 	ñ 	ús   Á!A<Á<Br   c                  ól   — t        dd¬«      5 } | j                  «       }d d d «       |S # 1 sw Y   S xY w)Nr¢   r   r£   )r§   Úread)r©   rR   s     r   Úpaste_dev_clipboardz9init_dev_clipboard_clipboard.<locals>.paste_dev_clipboard1  s4   € ÜÐ"¨WÔ5ð 	 ¸Ø—g‘g“iˆG÷	 àˆ÷	 àˆús   Ž)©3)r   )rª   r­   s     r   Úinit_dev_clipboard_clipboardr®     s!   € òð"¤ó ð
 Ð2Ð2Ð2r   c                  ó2   —  G d„ d«      }  | «        | «       fS )Nc                   ó   — e Zd Zd„ Zdefd„Zy)ú/init_no_clipboard.<locals>.ClipboardUnavailablec                 ó    — t        t        «      ‚rX   )r	   Ú
EXCEPT_MSG)Úselfr†   Úkwargss      r   Ú__call__z8init_no_clipboard.<locals>.ClipboardUnavailable.__call__;  s   € Ü$¤ZÓ0Ð0r   r   c                  ó   — y)NFr   )r´   s    r   Ú__bool__z8init_no_clipboard.<locals>.ClipboardUnavailable.__bool__>  s   € Ør   N)r   r   r   r¶   r   r¸   r   r   r   ÚClipboardUnavailabler±   :  s   „ ò	1ð	˜dô 	r   r¹   r   )r¹   s    r   Úinit_no_clipboardrº   9  s    € ÷ñ ñ  Ó!Ñ#7Ó#9Ð9Ð9r   c                   ó,   ‡ — e Zd Zdˆ fd„Zd„ Zd„ Zˆ xZS )ÚCheckedCallc                 ó&   •— t         ‰| �  d|«       y )NÚf)ÚsuperÚ__setattr__)r´   r¾   Ú	__class__s     €r   Ú__init__zCheckedCall.__init__F  s   ø€ Ü‰Ñ˜C Õ#r   c                 ó€   —  | j                   |Ž }|s,t        «       r"t        d| j                   j                  z   «      ‚|S )NzError calling )r¾   r   r
   r   )r´   r†   Úrets      r   r¶   zCheckedCall.__call__I  s6   € Øˆd�f‰f�dˆmˆÙ”y”{Ü+Ð,<¸t¿v¹v¿¹Ñ,NÓOÐOØˆ
r   c                 ó2   — t        | j                  ||«       y rX   )Úsetattrr¾   )r´   ÚkeyÚvalues      r   rÀ   zCheckedCall.__setattr__O  s   € Ü�—‘˜˜UÕ#r   )r   N)r   r   r   rÂ   r¶   rÀ   Ú__classcell__)rÁ   s   @r   r¼   r¼   E  s   ø„ õ$òö$r   r¼   c                  ó(  ‡‡‡‡‡‡	‡
‡‡‡‡‡‡‡‡— ddl mamamamamamamamam	a	m
a
ma t        j                  } t        j                  d«      }t        | j                   j"                  «      Š	t        t        t        t        t        t        t        t        t        t        t
        t        g‰	_        t        ‰	_        t        | j                   j(                  «      Š
t        g‰
_        t        ‰
_        | j                   j*                  Št        g‰_        t        ‰_        t        | j                   j,                  «      Šg ‰_        t        ‰_        t        | j                   j.                  «      Šg ‰_        t        ‰_        t        | j                   j0                  «      Št        g‰_        t        ‰_        t        | j                   j2                  «      Št        t        g‰_        t        ‰_        t        | j4                  j6                  «      Št        t8        g‰_        t        ‰_        t        | j4                  j:                  «      Št        g‰_        t        ‰_        t        | j4                  j<                  «      Št        g‰_        t        ‰_        t        |j>                  «      Št@        g‰_        t        ‰_        dŠdŠtB        jD                  ˆ	ˆ
fd„«       ŠtB        jD                  ˆˆfd„«       Šˆˆˆˆˆˆˆˆˆˆf
d„}ˆˆˆfd	„}||fS )
Nr   )ÚBOOLÚDWORDÚHANDLEÚHGLOBALÚ	HINSTANCEÚHMENUÚHWNDÚINTÚLPCSTRÚLPVOIDÚUINTÚmsvcrté   é   c               3   óh   •K  —  ‰dddddddddddd«      } 	 | –—  ‰| «       y#  ‰| «       w xY w­w)z=
        Context that provides a valid Windows hwnd.
        r   s   STATICNr   )ÚhwndÚsafeCreateWindowExAÚsafeDestroyWindows    €€r   Úwindowz&init_windows_clipboard.<locals>.window£  sG   øè ø€ ñ #Øˆy˜$  1 a¨¨A¨t°T¸4Àó
ˆð	$ØŠJá˜dÕ#øÑ˜dÕ#üs   ƒ2˜% œ	2¥
/¯2c              3   ó(  •K  — t        j                   «       dz   }d}t        j                   «       |k  r8 ‰| «      }|rn-t        j                  d«       t        j                   «       |k  rŒ8|st        d«      ‚	 d–—  ‰«        y#  ‰«        w xY w­w)zˆ
        Context manager that opens the clipboard and prevents
        other applications from modifying the clipboard content.
        g      à?Fç{®Gáz„?zError calling OpenClipboardN)ÚtimeÚsleepr
   )rÚ   ÚtÚsuccessÚOpenClipboardÚsafeCloseClipboards      €€r   rY   z)init_windows_clipboard.<locals>.clipboard²  s|   øè ø€ ô �I‰I‹K˜#ÑˆØˆÜ�i‰i‹k˜AŠoÙ# DÓ)ˆGÙØÜ�J‰J�tÔô	 �i‰i‹k˜A‹oñ
 Ü+Ð,IÓJÐJð	!ÛáÕ øÑÕ üs$   ƒA(BÁ,BÁ:B Á>BÂ	BÂBc           
      óŒ  •
— t        | «      }  ‰«       5 } ‰|«      5   ‰«        | rv ‰| «      dz   } ‰	‰|t        t        «      z  «      } ‰
|«      }t        j                  t        |«      t        | «      |t        t        «      z  «        ‰|«        ‰‰|«       d d d «       d d d «       y # 1 sw Y   ŒxY w# 1 sw Y   y xY w)Né   )r    r   r   ÚctypesÚmemmover   )r   rÚ   ÚcountÚhandleÚlocked_handleÚCF_UNICODETEXTÚGMEM_MOVEABLErY   ÚsafeEmptyClipboardÚsafeGlobalAllocÚsafeGlobalLockÚsafeGlobalUnlockÚsafeSetClipboardDataÚwcslenrÝ   s        €€€€€€€€€€r   Úcopy_windowsz,init_windows_clipboard.<locals>.copy_windowsÊ  sÊ   ø€ ô ˜dÓ#ˆá‹Xð 	A˜ñ ˜4“ñ AÙ"Ô$áñ
 # 4›L¨1Ñ,�EÙ,¨]¸EÄFÌ7ÃOÑ<SÓT�FÙ$2°6Ó$:�Mä—N‘NÜ! -Ó0Ü! $›Ø¤¤w£Ñ/ôñ % VÔ,Ù(¨¸Ô@÷'A÷	Að 	A÷Að Aú÷	Að 	Aús#   ”	B:�B B.ÂB:Â.B7	Â3B:Â:Cc                  ó’   •—  ‰d «      5   ‰‰«      } | s
	 d d d «       yt        | «      j                  cd d d «       S # 1 sw Y   y xY w)Nrž   )r   rÈ   )rë   rí   rY   ÚsafeGetClipboardDatas    €€€r   Úpaste_windowsz-init_windows_clipboard.<locals>.paste_windowsë  sK   ø€ Ù�t‹_ñ 	+Ù)¨.Ó9ˆFÙð
 ÷	+ð 	+ô ˜VÓ$×*Ñ*÷	+÷ 	+ò 	+ús   Š=Ÿ=½A)#Úctypes.wintypesrË   rÌ   rÍ   rÎ   rÏ   rÐ   rÑ   rÒ   rÓ   rÔ   rÕ   rè   ÚwindllÚCDLLr¼   Úuser32ÚCreateWindowExAÚargtypesÚrestypeÚDestroyWindowrä   ÚCloseClipboardÚEmptyClipboardÚGetClipboardDataÚSetClipboardDataÚkernel32ÚGlobalAllocr   Ú
GlobalLockÚGlobalUnlockrô   r   Ú
contextlibÚcontextmanager)rú   rÖ   rõ   rø   rí   rî   rä   rY   rå   rÛ   rÜ   rï   r÷   rð   rñ   rò   ró   rô   rÝ   s       @@@@@@@@@@@@@@@r   Úinit_windows_clipboardr  S  s]  ÿþ€ ÷÷ ÷ ñ ô �]‰]€FÜ�[‰[˜Ó"€Fä% f§m¡m×&CÑ&CÓDÐäÜÜÜÜÜÜÜÜÜÜÜð$ÐÔ ô #'ÐÔä# F§M¡M×$?Ñ$?Ó@ÐÜ"& ÐÔÜ $ÐÔà—M‘M×/Ñ/€MÜ"˜V€MÔÜ €MÔä$ V§]¡]×%AÑ%AÓBÐØ"$ÐÔÜ!%ÐÔä$ V§]¡]×%AÑ%AÓBÐØ"$ÐÔÜ!%ÐÔä& v§}¡}×'EÑ'EÓFÐÜ%) FÐÔ!Ü#)ÐÔ ä& v§}¡}×'EÑ'EÓFÐÜ%)¬6 NÐÔ!Ü#)ÐÔ ä! &§/¡/×"=Ñ"=Ó>€OÜ $¤hÐ/€OÔÜ%€OÔä  §¡×!;Ñ!;Ó<€NÜ&˜i€NÔÜ#€NÔä" 6§?¡?×#?Ñ#?Ó@ÐÜ!( 	ÐÔÜ#ÐÔä˜Ÿ™Ó'€FÜ �k€F„OÜ€F„Nà€MØ€Nä×Ñô$ó ð$ô ×Ñô!ó ð!÷.Aõ AöB	+ð ˜Ð&Ð&r   c                  ó   — d„ } d„ }| |fS )Nc                 óÜ   — t        | «      } t        j                  dgt        j                  d¬«      5 }|j	                  | j                  t        «      ¬«       d d d «       y # 1 sw Y   y xY w)Nzclip.exeTr%   r(   r*   r1   s     r   Úcopy_wslz$init_wsl_clipboard.<locals>.copy_wslú  sS   € Ü˜dÓ#ˆÜ×Ñ˜z˜l´*·/±/ÈTÔRð 	7ÐVWØ�M‰M §¡¬HÓ 5ˆMÔ6÷	7÷ 	7ñ 	7ús   ³&A"Á"A+c                  óð   — t        j                  g d¢t         j                  t         j                  d¬«      5 } | j                  «       d   }d d d «       d d j	                  t
        «      S # 1 sw Y   Œ!xY w)N)zpowershell.exez-commandzGet-ClipboardTrs   r   éþÿÿÿr9   r;   s     r   Ú	paste_wslz%init_wsl_clipboard.<locals>.paste_wslÿ  sg   € Ü×ÑÚ;Ü—?‘?Ü—?‘?Øô	
ð 	(ð
 Ø—]‘]“_ QÑ'ˆF÷	(ð �c�rˆ{×!Ñ!¤(Ó+Ð+÷	(ð 	(ús   ¸A,Á,A5r   )r  r  s     r   Úinit_wsl_clipboardr  ù  s   € ò7ò
	,ð �YÐÐr   c                  ó4  — dt        j                  «       j                  «       v rHt        j                  j                  d«      r]t        j                  dt        «       ¬«       t        «       S t        j                  dk(  st        j                  «       dk(  r
t        «       S t        j                  «       dk(  rt        d«      r
t        «       S t        j                  d	k(  st        j                  «       d
k(  r	 ddladdlat!        «       S t&        r�t        j(                  j+                  d«      rt        d«      r
t-        «       S t        d«      r
t/        «       S t        d«      r
t1        «       S t        d«      rt        d«      r
t3        «       S 	 ddlat7        «       S t=        «       S # t"        $ r t%        «       cY S w xY w# t"        $ rN 	 ddlat7        «       cY S # t"        $ r% 	 ddlat7        «       cY cY S # t"        $ r Y nw xY wY nw xY wY t=        «       S w xY w)z]
    Determine the OS/platform and set the copy() and paste() functions
    accordingly.
    Úcygwinr¢   zcPyperclip's support for Cygwin is not perfect, see https://github.com/asweigart/pyperclip/issues/55rŸ   ÚntÚWindowsÚLinuxzwslconfig.exeÚmacÚDarwinr   NÚWAYLAND_DISPLAYrƒ   r{   ri   ÚklipperrŽ   )ÚplatformÚsystemÚlowerÚosÚpathÚexistsr¥   r¦   r   r®   Únamer  Ú_executable_existsr  rF   r@   rT   ra   r=   ÚHAS_DISPLAYÚenvironÚgetr‹   r€   rw   r›   Úqtpyre   ÚPyQt5ÚPyQt4rº   r   r   r   Údetermine_clipboardr*    sÑ  € ð 	”H—O‘OÓ%×+Ñ+Ó-Ñ-ô
 �7‰7�>‰>Ð*Ô+Ü�M‰MðGä+Ó-õô
 0Ó1Ð1ô 
�‰�DŠœHŸO™OÓ-°Ò:Ü%Ó'Ð'ä‡�Ó˜GÒ#Ü˜oÔ.Ü%Ó'Ð'ô 
‡w�w�%Òœ8Ÿ?™?Ó,°Ò8ð	/ÛÛô -Ó.Ð.õ Ü�:‰:�>‰>Ð+Ô,Ô1CÀIÔ1NÜ$Ó&Ð&Ü˜fÔ%Ü&Ó(Ð(Ü˜gÔ&Ü'Ó)Ð)Ü˜iÔ(Ô-?ÀÔ-HÜ)Ó+Ð+ð	'ó ô %Ó&Ð&äÓÐøôK ò 	/Ü,Ó.Ò.ð	/ûô* ò 	+ð
+Ûô )Ó*Ò*øô ò /ð/Û ô -Ó.Ô.øô #ò ÙðúÙð	/úð ô ÓÐð!	+úsr   Ã8F' ÆG  Æ'F=Æ<F=Ç 	HÇ
GÇ
HÇ	HÇ$G6Ç(
HÇ2HÇ6	HÇ?HÈHÈHÈHÈHÈHÈHc           
      óú   — t         t        t        t        t        t
        t        t        t        dœ	}| |vr5|D �cg c]  }t        |«      ‘Œ }}t        ddj                  |«      › �«      ‚ ||    «       \  aayc c}w )aÒ  
    Explicitly sets the clipboard mechanism. The "clipboard mechanism" is how
    the copy() and paste() functions interact with the operating system to
    implement the copy/paste feature. The clipboard parameter must be one of:
        - pbcopy
        - pyobjc (default on macOS)
        - qt
        - xclip
        - xsel
        - klipper
        - windows (default on Windows)
        - no (this is what is set when no clipboard mechanism can be found)
    )	r#   ÚpyobjcÚqtri   r{   zwl-clipboardr  ÚwindowsÚnozArgument must be one of z, N)r=   rT   re   rw   r€   r‹   r›   r  rº   ÚreprÚ
ValueErrorÚjoinÚcopyÚpaste)rY   Úclipboard_typesÚ_Úallowed_clipboard_typess       r   Úset_clipboardr8  Z  s…   € ô" ,Ü+ÜÜ%Ü#Ü)Ü)Ü)Üñ
€Oð ˜Ñ'Ø4CÖ"D¨q¤4¨¥7Ð"DÐÐ"DÜØ& t§y¡yÐ1HÓ'IÐ&JÐKó
ð 	
ð
 -�/ )Ñ,Ó.�K€D‰%ùò #Es   ¹A8c                 ó2   — t        «       \  aat        | «      S )aD  
    A stub function for copy(), which will load the real copy() function when
    called so that the real copy() function is used for later calls.

    This allows users to import pyperclip without having determine_clipboard()
    automatically run, which will automatically select a clipboard mechanism.
    This could be a problem if it selects, say, the memory-heavy PyQt4 module
    but the user was just going to immediately call set_clipboard() to use a
    different clipboard mechanism.

    The lazy loading this stub function implements gives the user a chance to
    call set_clipboard() to pick another clipboard mechanism. Or, if the user
    simply calls copy() or paste() without calling set_clipboard() first,
    will fall back on whatever clipboard mechanism that determine_clipboard()
    automatically chooses.
    ©r*  r3  r4  )r   s    r   Úlazy_load_stub_copyr;  €  s   € ô$ &Ó'�K€Dˆ%Ü�‹:Ðr   c                  ó0   — t        «       \  aat        «       S )aG  
    A stub function for paste(), which will load the real paste() function when
    called so that the real paste() function is used for later calls.

    This allows users to import pyperclip without having determine_clipboard()
    automatically run, which will automatically select a clipboard mechanism.
    This could be a problem if it selects, say, the memory-heavy PyQt4 module
    but the user was just going to immediately call set_clipboard() to use a
    different clipboard mechanism.

    The lazy loading this stub function implements gives the user a chance to
    call set_clipboard() to pick another clipboard mechanism. Or, if the user
    simply calls copy() or paste() without calling set_clipboard() first,
    will fall back on whatever clipboard mechanism that determine_clipboard()
    automatically chooses.
    r:  r   r   r   Úlazy_load_stub_paster=  –  s   € ô$ &Ó'�K€Dˆ%Ü‹7€Nr   c                  ó:   — t         t        k7  xr t        t        k7  S rX   )r3  r;  r4  r=  r   r   r   Úis_availabler?  ¬  s   € ÜÔ&Ñ&ÒH¬5Ô4HÑ+HÐHr   c                 óæ   — t        j                   «       }	 t        «       }|dk7  r|S t        j                  d«       | �4t        j                   «       || z   kD  rt        dt	        | «      z   dz   «      ‚Œ])a  This function call blocks until a non-empty text string exists on the
    clipboard. It returns this text.

    This function raises PyperclipTimeoutException if timeout was set to
    a number of seconds that has elapsed without non-empty text being put on
    the clipboard.rž   rß   zwaitForPaste() timed out after ú	 seconds.©rà   r4  rá   r   r   )ÚtimeoutÚ	startTimeÚclipboardTexts      r   ÚwaitForPasterF  ¶  sn   € ô —	‘	“€IØ
Ü›ˆØ˜BÒØ Ð Ü�
‰
�4ÔàÐ¤4§9¡9£;°¸WÑ1DÒ#DÜ+Ø1´C¸³LÑ@À;ÑNóð ð r   c                 óú   — t        j                   «       }t        «       }	 t        «       }||k7  r|S t        j                  d«       | �4t        j                   «       || z   kD  rt        dt	        | «      z   dz   «      ‚Œ])ad  This function call blocks until a new text string exists on the
    clipboard that is different from the text that was there when the function
    was first called. It returns this text.

    This function raises PyperclipTimeoutException if timeout was set to
    a number of seconds that has elapsed without non-empty text being put on
    the clipboard.rß   z"waitForNewPaste() timed out after rA  rB  )rC  rD  ÚoriginalTextÚcurrentTexts       r   ÚwaitForNewPasterJ  Ê  su   € ô —	‘	“€IÜ“7€LØ
Ü“gˆØ˜,Ò&ØÐÜ�
‰
�4ÔàÐ¤4§9¡9£;°¸WÑ1DÒ#DÜ+Ø4´s¸7³|ÑCÀkÑQóð ð r   )r3  r4  rF  rJ  r8  r*  rX   )6Ú__doc__Ú__version__r	  rè   r   r   r   r   r   r  r  Úshutilr   r#  r+   rà   r¥   Úpandas.errorsr	   r
   Úpandas.util._exceptionsr   Úgetenvr$  r³   r0   r   r   r    r=   rT   re   rw   r€   r‹   r›   r®   rº   r¼   r  r  r*  r8  r;  r=  r   r?  r3  r4  rF  rJ  Ú__all__Úclipboard_getÚclipboard_setr   r   r   ú<module>rT     s  ðñ+ðZ €ó Û ÷õ ó 
Û Ý .Û Û Û ÷õ 5ð
 ˆb�i‰i˜	Ó"€ð€
ð €ô	Ð 2ô 	ð˜Có ò-ò$-ò&ò:#ò>!ò6ò4#'òL3ò4:÷$ñ $òc'òLò,HòV#/òLò,ð,I�dó Ið "Ð#7€€€eóó(ò,€ô €Ü�r   