+
     iP  c                  s   ^ RI Ht ^ RIt^ RIt^ RIHt ^RIHtHtH	t	 ^RI
Ht ^RI
Ht ^RI
Ht ]P                   ! ]4      tR R	 lt ! R
 R]P                  4      tRRRRRRRR/tR R lt]P.                  ! ]P0                  ]]4       ]P2                  ! ]P0                  ]4       ]P4                  ! ]P0                  R4       ]P6                  ! ]P0                  R4       R# )    )annotationsN)IO)Image	ImageFileImagePalette)i16le)o8)o16lec               s     V ^8  d   QhRRRR/# )   prefixZbytesreturnZbool format   "9/usr/lib64/python3.14/site-packages/PIL/PcxImagePlugin.py__annotate__r   )   s     9 9E 9d 9    c                sB    V ^ ,          ^
8H  ;'       d    V ^,          R9   # )r    )r    r	         r   )r
   s   &r   _acceptr   )   s!    !9?88vayL88r   c                  s*    ] tR t^1tRtRtR R ltRtR# )PcxImageFileZPCXZ
Paintbrushc               s    V ^8  d   QhRR/# )r	   r   Noner   r   r   r   r   ZPcxImageFile.__annotate__5   s     OW OWt OWr   c                	s*   V P                   f   Q hV P                   P                  ^D4      p\        V4      '       g   Rp\        V4      h\	        V^4      \	        V^4      \	        V^4      ^,           \	        V^
4      ^,           3pV^,          V^ ,          8:  g   V^,          V^,          8:  d   Rp\        V4      h\
        P                  ! R.VO5!   V P                   P                  4       ^<,           pV^,          pV^,          pV^A,          p\	        V^B4      p\
        P                  RVVVV4       \	        V^4      \	        V^4      3V P                  R&   V^8X  d   V^8X  d   R;rEMTV^8X  d5   VR9   d.   Rp	RV R	2p
\        P                  ! R
VR,          4      V n        EMV^8X  d   V^8X  d   V^8X  d   R	;rV P                   P                  R\        P                  4       V P                   P                  R4      p\        V4      R8X  d   V^ ,          ^8X  dw   \!        R4       F=  pW^,          ^,           V^,          ^,            \#        V4      ^,          8w  g   K:  R;r M	  V	R8X  d$   \        P                  ! R
VR,          4      V n        M'V^8X  d   V^8X  d   V^8X  d   R
p	Rp
MRp\%        V4      hWn        V^,          V^ ,          ,
          V^,          V^,          ,
          3V n        V P(                  ^ ,          V,          ^,           ^,          pW8w  d   W^,          ,          pRV P*                  ,           p\
        P                  ! R.V P*                  O5!   \,        P.                  ! RW4WV,          34      .V n        R # )Nznot a PCX filezbad PCX image sizezBBox: %s %s %s %sz-PCX version %s, bits %s, planes %s, stride %sdpi1PzP;LRGB:i   i@   Ni     :   NNRGB;Lzunknown PCX modezsize: %sx%spcx)r	   i   ir    r    )fpZreadr   ZSyntaxErrori16loggerdebugtellZinfor   ZrawpaletteZseekioZSEEK_ENDlenranger   ZOSError_mode_sizesizer   _Tiletile)ZselfZsmsgZbboxZoffsetversionbitsplanesZprovided_stridemoderawmodeistrides   &            r   _openZPcxImageFile._open5   s   ww"""GGLLqzz"Cc"" 1ay#a)SAY]C2JNB7d1gaDG!3&Cc""(040"$ A$t2a*;	
 q":s1bz1		%191  D7QY6V+D6(!nG'++E1U8<DL\daiFaK  DGGLLr{{+S!A1v}1sAQQUQY/2a519<),, $ 3;#/#3#3E1R5#ADL\daiFaKDG %C#,
!WtAw&Q$q'(99

 **Q-$&*q0 $qj F		!]/TYY/__UD7VO:TUV	r   )r+   r,   r'   r/   N)__name__Z
__module__Z__qualname__Z__firstlineno__r   Zformat_descriptionr8   Z__static_attributes__r   r   r   r   r   1   s    F%OW OWr   r   r   r   r   r   c               s(    V ^8  d   QhRRRRRRRR/# )	r	   imzImage.Imager"   z	IO[bytes]filenamezstr | bytesr   r   r   r   r   r   r   r      s.     D  D k D y D K D D D r   c                s    \         V P                  ,          w  r4rVT P                  ^ ,          T,          ^,           ^,          p	Y^,          ,          p	\
        P                  RT P                  ^ ,          TT	4       T P                  p
RpTP                  \        ^
4      \        T4      ,           \        ^4      ,           \        T4      ,           \        ^ 4      ,           \        ^ 4      ,           \        T P                  ^ ,          ^,
          4      ,           \        T P                  ^,          ^,
          4      ,           \        T^ ,          4      ,           \        T^,          4      ,           R,           R,           R,           \        T4      ,           \        T	4      ,           \        ^4      ,           \        T
^ ,          4      ,           \        T
^,          4      ,           R,           4       TP                  4       ^8X  g   Q h\        P                  ! Y\        P                  ! RRT P                  ,           ^ YdT,          34      .4       T P                  R8X  dj   TP                  \        ^4      4       T P                  P                  RR4      pTRR\!        T4      ,
          ,          ,          pTP                  T4       R# T P                  R	8X  dP   TP                  \        ^4      4       \#        R
4       F$  pTP                  \        T4      ^,          4       K&  	  R# R#   \         d"   pR T P                   R2p\        T4      ThRp?ii ; i)zCannot save z images as PCXNz6PcxImagePlugin._save: xwidth: %d, bits: %d, stride: %ds    r    r   r   i   r   r   )d   r<   s                           s   s6                                                         r!   )SAVEr4   ZKeyErrorZ
ValueErrorr-   r$   r%   Zwriter   o16r&   r   _saver.   r:   Z
getpaletter)   r*   )r:   r"   r;   r1   r2   r3   r5   Zer0   r7   Zscreenr   r'   r6   s   &&&           r   r?   r?      s   %)-bgg&v ggaj4!#)F
qjF
 LL@

	 WWF
C HH
2
W+	
Q%	 T(	 a&		
 a&	 bggaj1n
	 bggaj1n
	 c!f+	 c!f+		 
	 	 	 V*	 f+	 a&	  fQi.!	" fQi.#	$ %	, 779OO
(8!gf}=UVW 
ww#~
B%%""5%07cCL011
	C
BsAHHRUQY  
{  %RWWI^4o1$%s   L' 'M2MMz.pcxzimage/x-pcx)r	   r   r   r   )r      r   r   )r   r@   r   r   )r   r@   r   r   )Z
__future__r   r(   ZloggingZtypingr   Z r   r   r   Z_binaryr   r#   r   r   r>   Z	getLoggerr9   r$   r   r   r=   r?   Zregister_openr   Zregister_saveZregister_extensionZregister_mimer   r   r   <module>rA      s   6 # 	   , , !  !			8	$9SW9&& SWx 	D V   L''w ?   L'' /   ,,f 5   L'' 7r   