+
     iG  c                  s    ^ 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# )i    )annotationsN)ImageF)ImageWinc               s0    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_windowsZboolall_screensxdisplayz
str | Nonewindowzint | ImageWin.HWND | NonereturnzImage.Image Zformat   "4/usr/lib64/python3.14/site-packages/PIL/ImageGrab.py__annotate__r   !   sL     R R
*R!R R 	R
 'R R    c           
     sx   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.pngZscreencapturez-RZ,z-xwin32ZRGBZrawZBGRz$Pillow was built without XCB supportZBGRXzgnome-screenshot-fZgrim	spectacleii)r   r   )r   z-nz-br   -o)sysplatformtempfileZmkstemposZclose
subprocessZcallr   openloadZunlinkZresizecoreZgrabscreen_win32ZintZ	frombytesZcropZHAVE_XCBZOSErrorZgrabscreen_x11shutilwhich)r   r   r   r   r   ZfhZfilepathargsZleftZtopZrightZbottomimZ
im_resizedZoffsetZsizedataZx0Zy0Zdisplay_namemsgZ
im_croppeds   &&&&&                 r   grabr#   !   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               s    V ^8  d   QhRR/# )r   r	   zImage.Image | list[str] | Noner
   r   r   r   r   r   v   s     N N5 Nr   c                 sZ   \         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)Zcapture_outputNr   ZfileZIZmbcsZ zutf-16le Zpng)PngImagePluginZDIB)BmpImagePluginZWAYLAND_DISPLAYwaylandZDISPLAYx11wl-pastexclipzDwl-paste or xclip is required for ImageGrab.grabclipboard() on Linuxz errorz: )Z	osascriptz-eu#   get the clipboard as «class PNGf»i)r'   N)r)   -tZimage)r(   N)r*   z
-selectionZ	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   ZrunZ
returncodebinasciiioZBytesIOZ	unhexlifyZstdoutr   r   r   Zgrabclipboard_win32structZunpack_fromZdecodeZsplitZindexZ
isinstanceZbytesr$   r%   ZPngImageFiler&   ZDibImageFiler   Zgetenvr   r   ZNotImplementedErrorZstderrZstripZChildProcessErrorr   )Zpr,   r!   Zfmtr.   ZoZfilesr%   r&   Zsession_typer   r"   ZerrZ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)Z
__future__r    r-   r   r   r   r   r   r$   r   ZTYPE_CHECKINGr   r#   r/   r
   r   r   <module>r0      s7   " # 	 	   
  RjNr   