+
     i,"  c                  s   ^ RI Ht ^ RIHt ^RIHtHt ^RIHt ^RIH	t
 RtR R lt]! 4       tRR	R
RRR/tR^R^R^ /tR R lt]P"                  ! R]4       ]P$                  ! RR4       ]P&                  ! RR4       R# )    )annotations)IO)Image	ImageFile)o8)o16bec               s    V ^8  d   QhRR/# )   returnImage.Image Zformat   ":/usr/lib64/python3.14/site-packages/PIL/PalmImagePlugin.py__annotate__r   W   s      {     c            	     sJ   \         P                  ! R ^\        \        4      34      p V P	                  \        \        \        \        4      4      4      4       Rp\         F  pW,          pK  	  VRR\        \        4      ,
          ,          ,          pV P                  V4       V # )Li   r
   r    r    r    )r   Znewlen_Palm8BitColormapValuesZputdataZlistrangeZ
putpalette)ZimageZpalettedataZcolormapValues      r   build_prototype_imager   W   s}    IIcAs#:;<=E	MM$uS!89:;<#%K0$ 19c*A&B BCCK	[!Lr   custom-colormapi @  zis-compressedi   zhas-transparenti    noneZrleZscanlinec               s(    V ^8  d   QhRRRRRRRR/# )	r   imr	   fpz	IO[bytes]filenamezstr | bytesr   ZNoner
   r   r   r   r   r   u   s.     Z Zk Zy ZK ZD Zr   c                sF  aa V P                   R 8X  d	   R p^p^pEM*V P                   R8X  d   V P                  P                  R4      R9   dD   V P                  R,          p^V,          ^,
          o^V,
          oV P                  VV3R l4      p MtV P                  P                  R4      R9   d:   V P                  R,          p^V,          ^,
          oV P                  V3R l4      p MRV P                    R2p\        V4      hR V n        RV 2p^pM3V P                   R8X  d   R	p^p^ pMRV P                    R2p\        V4      hV P                  4        V P                  ^ ,          pV P                  ^,          p\        V^V,          ^,
          ,           ^V,          ,          4      ^,          p	^ p
\        R
,          p^ pV P                   R 8X  dR   V\        R,          ,          pV P                  P                  4       p\        V4      ^,          p^V,          ^,           pM^ pRV P                  9   d&   W,          ^,           ^,           V,           ^,          pM^ pVP                  \!        V4      \!        V4      ,           \!        V	4      ,           \!        V4      ,           4       VP                  \#        V4      4       VP                  \#        V4      4       VP                  \!        V4      4       VP                  \#        V
4      4       VP                  \#        V4      4       VP                  \!        ^ 4      4       V'       dp   VP                  \!        X4      4       \%        V4       FF  pVP                  \#        V4      4       VP                  X^V,          ^V,          ^,            4       KH  	  \&        P(                  ! W\&        P*                  ! RRV P                  ,           ^ W9^34      .4       \-        VR4      '       d   VP/                  4        R# R# )ZPr   bppc                s$   < SV S,	          ,
          # Nr
   )xmaxvalshifts   &r   <lambda>_save.<locals>.<lambda>   s    Fa5j$9r   c                s$   < SV S,          ,
          # r   r
   )r   r   s   &r   r    r!      s    Fa&j$9r   zcannot write mode z as PalmzP;Z1z1;Ir   r   offsetZrawflushN)i   r   i   )r    r    )ZmodeZencoderinfoZgetZpointZinfoZOSErrorZ_modeZloadZsizeZint_COMPRESSION_TYPES_FLAGSr   Z
getpaletter   Zwriteo16br   r   r   _saveZ_TileZhasattrr#   )r   r   r   Zrawmoder   ZversionZmsgZcolsZrowsZrowbytesZtransparent_indexZcompression_typeZflagsZcolormapZcolorsZcolormapsizer"   Zir   r   s   &&&               @@r   r'   r'   u   s-   	ww#~	C>>e$	1 ..'C3h!^FGE9:BWW[[9, ''%.C3h!^F9:B&rwwix8C#, se*	C #277)84cl GGI 771:D771:DDB#IM*rSy9:Q>H)&1E	ww#~)**55##%X!#6zA~277/B&*\9a?HHT$Z$t*$tH~5UCDHHRWHHR[HHT&\HHR!"#HHR !"HHT!W 
fvAHHRUOHHXa!ea!eai01 
 OO
(8!gQR=STU r7

 r   ZPalmz.palmz
image/palmN(   )   r(   r(   )r(      r(   )r(      r(   )r(   f   r(   )r(   3   r(   )r(   r    r(   )r(   r(   r)   )r(   r)   r)   )r(   r*   r)   )r(   r+   r)   )r(   r,   r)   )r(   r    r)   )r(   r(   r*   )r(   r)   r*   )r(   r*   r*   )r(   r+   r*   )r(   r,   r*   )r(   r    r*   )r)   r(   r(   )r)   r)   r(   )r)   r*   r(   )r)   r+   r(   )r)   r,   r(   )r)   r    r(   )r)   r(   r)   )r)   r)   r)   )r)   r*   r)   )r)   r+   r)   )r)   r,   r)   )r)   r    r)   )r)   r(   r*   )r)   r)   r*   )r)   r*   r*   )r)   r+   r*   )r)   r,   r*   )r)   r    r*   )r*   r(   r(   )r*   r)   r(   )r*   r*   r(   )r*   r+   r(   )r*   r,   r(   )r*   r    r(   )r*   r(   r)   )r*   r)   r)   )r*   r*   r)   )r*   r+   r)   )r*   r,   r)   )r*   r    r)   )r*   r(   r*   )r*   r)   r*   )r*   r*   r*   )r*   r+   r*   )r*   r,   r*   )r*   r    r*   )r+   r(   r(   )r+   r)   r(   )r+   r*   r(   )r+   r+   r(   )r+   r,   r(   )r+   r    r(   )r+   r(   r)   )r+   r)   r)   )r+   r*   r)   )r+   r+   r)   )r+   r,   r)   )r+   r    r)   )r+   r(   r*   )r+   r)   r*   )r+   r*   r*   )r+   r+   r*   )r+   r,   r*   )r+   r    r*   )r,   r(   r(   )r,   r)   r(   )r,   r*   r(   )r,   r+   r(   )r,   r,   r(   )r,   r    r(   )r,   r(   r)   )r,   r)   r)   )r,   r*   r)   )r,   r+   r)   )r,   r,   r)   )r,   r    r)   )r,   r(   r*   )r,   r)   r*   )r,   r*   r*   )r,   r+   r*   )r,   r,   r*   )r,   r    r*   )r    r(   r(   )r    r)   r(   )r    r*   r(   )r    r+   r(   )r    r,   r(   )r    r    r(   )r    r(   r)   )r    r)   r)   )r    r*   r)   )r    r+   r)   )r    r,   r)   )r    r    r)   )r    r(   r*   )r    r)   r*   )r    r*   r*   )r    r+   r*   )r    r,   r*   )r    r    r*   )r(   r(   r+   )r(   r)   r+   )r(   r*   r+   )r(   r+   r+   )r(   r,   r+   )r(   r    r+   )r(   r(   r,   )r(   r)   r,   )r(   r*   r,   )r(   r+   r,   )r(   r,   r,   )r(   r    r,   )r(   r(   r    )r(   r)   r    )r(   r*   r    )r(   r+   r    )r(   r,   r    )r(   r    r    )r)   r(   r+   )r)   r)   r+   )r)   r*   r+   )r)   r+   r+   )r)   r,   r+   )r)   r    r+   )r)   r(   r,   )r)   r)   r,   )r)   r*   r,   )r)   r+   r,   )r)   r,   r,   )r)   r    r,   )r)   r(   r    )r)   r)   r    )r)   r*   r    )r)   r+   r    )r)   r,   r    )r)   r    r    )r*   r(   r+   )r*   r)   r+   )r*   r*   r+   )r*   r+   r+   )r*   r,   r+   )r*   r    r+   )r*   r(   r,   )r*   r)   r,   )r*   r*   r,   )r*   r+   r,   )r*   r,   r,   )r*   r    r,   )r*   r(   r    )r*   r)   r    )r*   r*   r    )r*   r+   r    )r*   r,   r    )r*   r    r    )r+   r(   r+   )r+   r)   r+   )r+   r*   r+   )r+   r+   r+   )r+   r,   r+   )r+   r    r+   )r+   r(   r,   )r+   r)   r,   )r+   r*   r,   )r+   r+   r,   )r+   r,   r,   )r+   r    r,   )r+   r(   r    )r+   r)   r    )r+   r*   r    )r+   r+   r    )r+   r,   r    )r+   r    r    )r,   r(   r+   )r,   r)   r+   )r,   r*   r+   )r,   r+   r+   )r,   r,   r+   )r,   r    r+   )r,   r(   r,   )r,   r)   r,   )r,   r*   r,   )r,   r+   r,   )r,   r,   r,   )r,   r    r,   )r,   r(   r    )r,   r)   r    )r,   r*   r    )r,   r+   r    )r,   r,   r    )r,   r    r    )r    r(   r+   )r    r)   r+   )r    r*   r+   )r    r+   r+   )r    r,   r+   )r    r    r+   )r    r(   r,   )r    r)   r,   )r    r*   r,   )r    r+   r,   )r    r,   r,   )r    r    r,   )r    r(   r    )r    r)   r    )r    r*   r    )r    r+   r    )r    r,   r    )   r-   r-   )"   r.   r.   )D   r/   r/   )U   r0   r0   )w   r1   r1   )   r2   r2   )   r3   r3   )   r4   r4   )   r5   r5   )   r6   r6   )   r7   r7   )   r    r    )r8   r    r8   )r    r8   r    )r    r8   r8   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )Z
__future__r   Ztypingr   Z r   r   Z_binaryr   r   r&   r   r   ZPalm8BitColormapImager%   r$   r'   Zregister_saveZregister_extensionZregister_mimer
   r   r   <module>r9      s    #    "@H J ./  V_f>OQW	XdE4TB Z@   FE "    )   FL )r   