ó
    Ñ]j÷  ã                  óö   • S r SSKJr  SSKJr  SSKJr  SSKrSSKJ	r	  SSK
Jr  SSKJr  SS	KJr  SS
KJr  SSKJrJr  \(       a  SSKJr  \" S5      S\	R.                  4   SS jj5       r S     SS jjrg)zio on the clipboardé    )Úannotations)ÚStringIO)ÚTYPE_CHECKINGN)Úlib)Ú
set_module)Úfind_stack_level)Úcheck_dtype_backend)ÚABCDataFrame)Ú
get_optionÚoption_context)ÚDtypeBackendÚpandasz\s+c                óB  • UR                  SS5      nUb/  UR                  5       R                  SS5      S:w  a  [        S5      e[	        U5        SS	KJn  SS
KJn  U" 5       n UR                  UR                  S5      =(       d    [        S5      5      nUSS R                  S5      SS SS nU Vs1 s H"  oˆR                  S5      R                  S5      iM$     n	n[!        U5      S:”  a|  [!        U	5      S:X  am  U	R                  5       S:w  aY  Sn [!        US   5      [!        US   R                  S5      5      -
  n
U
S:w  a$  UR#                  S[%        ['        U
5      5      5        O%[)        U [*        5      (       d  [-        SU < S35      e[!        U 5      S:”  a  UR                  S5      c  SUS'   OA[!        U 5      S:”  a2  UR                  S5      S:X  a  [.        R0                  " S[3        5       S9  U" [5        U5      4XS.UD6$ ! [         a     GN‚f = fs  snf )aN  
Read text from clipboard and pass to :func:`~pandas.read_csv`.

Parses clipboard contents similar to how CSV files are parsed
using :func:`~pandas.read_csv`.

Parameters
----------
sep : str, default '\\s+'
    A string or regex delimiter. The default of ``'\\s+'`` denotes
    one or more whitespace characters.

dtype_backend : {'numpy_nullable', 'pyarrow'}
    Back-end data type applied to the resultant :class:`DataFrame`
    (still experimental). If not specified, the default behavior
    is to not use nullable data types. If specified, the behavior
    is as follows:

    * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
    * ``"pyarrow"``: returns pyarrow-backed nullable
      :class:`ArrowDtype` :class:`DataFrame`

    .. versionadded:: 2.0

**kwargs
    See :func:`~pandas.read_csv` for the full argument list.

Returns
-------
DataFrame
    A parsed :class:`~pandas.DataFrame` object.

See Also
--------
DataFrame.to_clipboard : Copy object to the system clipboard.
read_csv : Read a comma-separated values (csv) file into DataFrame.
read_fwf : Read a table of fixed-width formatted lines into DataFrame.

Examples
--------
>>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=["A", "B", "C"])
>>> df.to_clipboard()  # doctest: +SKIP
>>> pd.read_clipboard()  # doctest: +SKIP
     A  B  C
0    1  2  3
1    4  5  6
Úencodingúutf-8NÚ-Ú Úutf8z3reading from clipboard only supports utf-8 encodingr   )Úclipboard_get)Úread_csvzdisplay.encodingi'  Ú
éÿÿÿÿé
   Ú Ú	é   z 	Ú	index_colzsep=z must be a stringÚengineÚpythonÚczIread_clipboard with regex separator does not work properly with c engine.©Ú
stacklevel)ÚsepÚdtype_backend)ÚpopÚlowerÚreplaceÚNotImplementedErrorr	   Úpandas.io.clipboardr   Úpandas.io.parsersr   ÚdecodeÚgetr   ÚAttributeErrorÚsplitÚlstripÚcountÚlenÚ
setdefaultÚlistÚrangeÚ
isinstanceÚstrÚ
ValueErrorÚwarningsÚwarnr   r   )r#   r$   Úkwargsr   r   r   ÚtextÚlinesÚxÚcountsÚindex_lengths              ÚQ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/pandas/io/clipboards.pyÚread_clipboardrA      sé  € ðj �z‰z˜* gÓ.€Hð Ñ §¡Ó 0× 8Ñ 8¸¸bÓ AÀVÓ KÜ!Ð"WÓXÐXä˜Ô&å1Ý*á‹?€DðØ�{‰{˜6Ÿ:™: jÓ1×S´ZÐ@RÓ5SÓTˆð ��%ˆL×Ñ˜tÓ$ S bÐ)¨#¨2Ð.€Eñ 27Ó7²¨A�h‰h�s‹m×!Ñ! $Ö'±€FÐ7Ü
ˆ5ƒz�Aƒ~œ#˜f›+¨Ó*¨v¯z©z«|¸qÓ/@Øˆô ˜5 ™8“}¤s¨5°©8¯?©?¸5Ó+AÓ'BÑBˆØ˜1ÓØ×Ñ˜k¬4´°lÓ0CÓ+DÔEøä˜œS×!Ñ!Ü˜D˜C™6Ð!2Ð3Ó4Ð4ô ˆ3ƒx�!ƒ|˜Ÿ
™
 8Ó,Ñ4Ø#ˆˆxÒÜ	ˆS‹�A‹˜&Ÿ*™* XÓ.°#Ó5Ü�ŠØWÜ'Ó)ò	
ñ
 ”H˜T“NÐS¨ÑSÈFÑSÐSøôK ó Úðüò 8s   Á$2H Â4)HÈ
HÈHc                óŠ  • UR                  SS5      nUb/  UR                  5       R                  SS5      S:w  a  [        S5      eSS	KJn  Uc  S
nU(       a?   Uc  Sn[        5       nU R                  " U4USS.UD6  UR                  5       nU" U5        gUb  [        R                  " S[        5       S9  [        U [        5      (       a(  [        SS5         U R                   " S0 UD6nSSS5        O[#        U 5      nU" W5        g! [         a     [        R                  " S[        5       S9   Nzf = f! , (       d  f       ND= f)ab  
Attempt to write text representation of object to the system clipboard
The clipboard can be then pasted into Excel for example.

Parameters
----------
obj : the object to write to the clipboard
excel : bool, defaults to True
        if True, use the provided separator, writing in a csv
        format for allowing easy pasting into excel.
        if False, write a string representation of the object
        to the clipboard
sep : optional, defaults to tab
other keywords are passed to to_csv

Notes
-----
Requirements for your platform
  - Linux: xclip, or xsel (with PyQt4 modules)
  - Windows:
  - OS X:
r   r   Nr   r   r   z&clipboard only supports utf-8 encodingr   )Úclipboard_setTr   )r#   r   zAto_clipboard in excel mode requires a single character separator.r!   z7to_clipboard with excel=False ignores the sep argument.zdisplay.max_colwidth© )r%   r&   r'   r7   r)   rC   r   Úto_csvÚgetvalueÚ	TypeErrorr8   r9   r   r5   r
   r   Ú	to_stringr6   )	ÚobjÚexcelr#   r:   r   rC   Úbufr;   Úobjstrs	            r@   Úto_clipboardrM   ‡   s*  € ð2 �z‰z˜* gÓ.€Hð Ñ §¡Ó 0× 8Ñ 8¸¸bÓ AÀVÓ KÜÐAÓBÐBå1à�}Øˆæð	Ø‰{Ø�Ü“*ˆCð �JŠJ�sÐ@ ¨gÑ@¸Ò@Ø—<‘<“>ˆDá˜$ÔØð 
‰Ü�ŠØEÜ'Ó)ò	
ô
 �#”|×$Ñ$äÐ2°DÕ9Ø—]’]Ñ, VÑ,ˆF÷ :Ð9ô �S“ˆÙ�&Õøô# ó 	Ü�MŠMØSÜ+Ó-ôð	ú÷ :Õ9ús   Á=D ÃD4Ä'D1Ä0D1Ä4
E)r#   r6   r$   zDtypeBackend | lib.NoDefault)TN)rJ   zbool | Noner#   z
str | NoneÚreturnÚNone)Ú__doc__Ú
__future__r   Úior   Útypingr   r8   Úpandas._libsr   Úpandas.util._decoratorsr   Úpandas.util._exceptionsr   Úpandas.util._validatorsr	   Úpandas.core.dtypes.genericr
   r   r   r   Úpandas._typingr   Ú
no_defaultrA   rM   rD   ó    r@   Ú<module>r\      s’   ðÙ å "å Ý  Û å Ý .Ý 4Ý 7å 3÷ö
 Ý+ñ ˆHÓàØ25·.±.ðjTØ	ðjTà/ôjTó ðjTð\ 7;ðAØðAØ)3ðAà	öAr[   