+
    UBiG                        ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^RIH	t	 Rt
]
'       d   ^RIHt R
R R lltR R	 ltR# )    )annotationsN)ImageF)ImageWinc               0    V ^8  d   QhRRRRRRRRRR	R
R/# )   bboxz tuple[int, int, int, int] | Noneinclude_layered_windowsboolall_screensxdisplayz
str | Nonewindowzint | ImageWin.HWND | NonereturnzImage.Image )formats   "2/usr/lib/python3.14/site-packages/PIL/ImageGrab.py__annotate__r   !   sL     R R
*R!R R 	R
 'R R    c           
     x   VEf   \         P                  R8X  d   \        P                  ! R4      w  rV\        P
                  ! V4       R.pV '       d(   V w  rrVRV RV	 RW,
           RW,
           2.,          p\        P                  ! VRV.,           4       \        P                  ! V4      pVP                  4        \        P                  ! V4       V '       d4   VP                  X
X,
          XX	,
          34      pVP                  4        V# V# \         P                  R8X  d   Ve   Rp\        P                  P                  TTVe   \        V4      M^ 4      w  rp\        P                   ! RVVR	R
V^ ,          ^,          ^,           R,          R4      pV '       d<   Vw  ppV w  rrVP#                  VV,
          V	V,
          V
V,
          VV,
          34      pV# Tp \        P                  P$                  '       g   Rp\'        V4      h\        P                  P)                  V4      w  pp\        P                   ! RVVR	RV^ ,          ^,          ^4      pV '       d   VP#                  V 4      pV#   \&         Ed9    TEf2   \         P                  R9  Ed   \*        P,                  ! R4      '       d   RR.pMB\*        P,                  ! R4      '       d   R.pM"\*        P,                  ! R4      '       d   . ROpMh \        P                  ! R4      w  rV\        P
                  ! T4       \        P                  ! Yv.,           4       \        P                  ! T4      pTP                  4        \        P                  ! T4       T '       d&   TP#                  T 4      pTP                  4        Tu # Tu # h i ; i)Ndarwinz.pngscreencapturez-R,z-xwin32RGBrawBGRz$Pillow was built without XCB supportBGRXzgnome-screenshot-fgrim	spectacle)r   r   )r   z-nz-br   -o)sysplatformtempfilemkstemposclose
subprocesscallr   openloadunlinkresizecoregrabscreen_win32int	frombytescropHAVE_XCBOSErrorgrabscreen_x11shutilwhich)r   r	   r   r   r   fhfilepathargslefttoprightbottomim
im_resizedoffsetsizedatax0y0display_namemsg
im_croppeds   &&&&&                 r   grabrJ   !   s    <<8##++F3LBHHRL#$D+/(5$qQuzl!FJ<HIIOODD(#334H%BGGIIIhYYfsl'CD

!!I\\W$! !&!<!<'%1Fq"F$
 a1qB&	B B+/(5WWdRir52:v{KLI'L zz"""8C#,ZZ..|<
d2 __UD$vtAw{ANB	7  CLL8K$K||.//*D1f%%xk**<#++F3LBHHRLOOD:-.H%BGGIIIhWWT]

!!I-s2   !I5 /I5 5AN98 N9N99B8N93N97N9c                   V ^8  d   QhRR/# )r   r   zImage.Image | list[str] | Noner   )r   s   "r   r   r   v   s     N N5 Nr   c                 Z   \         P                  R 8X  dz   \        P                  ! . RORR7      p V P                  ^ 8w  d   R# ^ RIp\        P                  ! VP                  V P                  ^R 4      4      p\        P                  ! V4      # \         P                  R8X  Ed   \        P                  P                  4       w  r2VR8X  d   ^ RIpVP                  RV4      ^ ,          pV^,          ^ 8X  d$   W%R P!                  R4      P#                  R4      pM"W%R P!                  R	4      P#                  R4      pVRVP%                  R
4       # \'        V\(        4      '       dS   \        P                  ! V4      pVR8X  d   ^RIHp VP/                  V4      # VR8X  d   ^RIHp VP3                  V4      # R# \4        P6                  ! R4      '       d   Rp	M!\4        P6                  ! R4      '       d   Rp	MRp	\8        P:                  ! R4      '       d   V	R9   d   . ROp
M5\8        P:                  ! R4      '       d   V	R9   d   . ROp
MRp\=        V4      h\        P                  ! V
RR7      p V P                  ^ 8w  df   V P>                  pR F  pW9   g   K   R# 	  V
^ ,           R2pV'       d)   VRVPA                  4       P!                  4        2,          p\C        V4      h\        P                  ! V P                  4      p\        P                  ! V4      pVPE                  4        V# )r   T)capture_outputNr   fileImbcs zutf-16le png)PngImagePluginDIB)BmpImagePluginWAYLAND_DISPLAYwaylandDISPLAYx11wl-pastexclipzDwl-paste or xclip is required for ImageGrab.grabclipboard() on Linuxz errorz: )	osascriptz-eu#   get the clipboard as «class PNGf»)rX   N)r[   -timage)rZ   N)r\   z
-selection	clipboardr_   z	image/pngr"   )s   Nothing is copieds   No selections"   No suitable type of content copieds    not availables   cannot convert s(   xclip: Error: There is no owner for the )#r#   r$   r)   run
returncodebinasciiioBytesIO	unhexlifystdoutr   r+   r/   grabclipboard_win32structunpack_fromdecodesplitindex
isinstancebytesrR   rT   PngImageFilerV   DibImageFiler'   getenvr7   r8   NotImplementedErrorstderrstripChildProcessErrorr,   )prd   rD   fmtrj   ofilesrT   rV   session_typer;   rH   errsilent_errorr@   s                  r   grabclipboardr   v   sx   
||xNNF
 <<1zz(,,QXXb_=>zz$		 JJ224	&=""3-a0ABx1}R/55d;R
399$?*5;;r?++dE""::d#De|,%22488,%2248899&''$LYYy!! LL<<
##8I(I.D\\'""|}'DPDXC%c**NN45<<1((C!  &!  !WIV$CCIIK..0122#C((zz!((#ZZ
		r   )NFFNN)
__future__r   re   r'   r7   r)   r#   r%   rR   r   TYPE_CHECKINGr   rJ   r   r   r   r   <module>r      s7   " # 	 	   
  RjNr   