+
    UBiD                    Z    ^ RI Ht ^ RIt^ RIHt Rt]'       d   ^ RIHt  ! R R4      tR# )    )annotationsN)BytesIOF)IOc                  \    ] tR t^tRtRtRR R lltR R lt]R R l4       t	R	 R
 lt
RtR# )GimpPaletteFilez'File handler for GIMP's palette format.RGBc               $    V ^8  d   QhRRRRRR/# )   fp	IO[bytes]limitboolreturnNone )formats   "8/usr/lib/python3.14/site-packages/PIL/GimpPaletteFile.py__annotate__GimpPaletteFile.__annotate__   s!      &  &	  &$  &$  &    c                	R  a VP                  4       P                  R 4      '       g   Rp\        V4      h. p^ p V'       d	   VR	8X  d   MV^,          pVP                  4       pV'       g   M\        P                  ! RV4      '       d   KR  V'       d   \        V4      ^d8  d   Rp\        V4      hVP                  ^R7      o\        S4      ^8  d   Rp\        V4      hVV3R l\        ^4       4       ,          pV'       g   K  \        V4      R8X  g   K   \        V4      V n
        R# )
s   GIMP Paletteznot a GIMP palette files   \w+:|#zbad palette file)maxsplitzbad palette entryc              3  H   <"   T F  p\        SV,          4      x  K  	  R # 5iN)int).0ivs   & r   	<genexpr>(GimpPaletteFile._read.<locals>.<genexpr>;   s     48aAaD		8s   "i   Ni  )readline
startswithSyntaxErrorrematchlensplit
ValueErrorrangebytespalette)selfr   r   msgr+   r   sr   s   &&&    @r   _readGimpPaletteFile._read   s    {{}''88+Cc""gFAA xx
A&&Q#(!#&&#A1vz) o%45844GuW,W~r   c                    V ^8  d   QhRRRR/# )r
   r   r   r   r   r   )r   s   "r   r   r   A   s      9  r   c                	(    V P                  V4       R # r   )r/   )r,   r   s   &&r   __init__GimpPaletteFile.__init__A   s    

2r   c                    V ^8  d   QhRRRR/# )r
   datar*   r   r   r   )r   s   "r   r   r   E   s      U  r   c                	^    V P                  V 4      pVP                  \        V4      R 4       V# )F)__new__r/   r   )clsr6   r,   s   && r   	frombytesGimpPaletteFile.frombytesD   s'    {{3

74=%(r   c                   V ^8  d   QhRR/# )r
   r   ztuple[bytes, str]r   )r   s   "r   r   r   J   s     * *- *r   c                	2    V P                   V P                  3# r   )r+   rawmode)r,   s   &r   
getpaletteGimpPaletteFile.getpaletteJ   s    ||T\\))r   )r+   N)T)__name__
__module____qualname____firstlineno____doc__r>   r/   r3   classmethodr:   r?   __static_attributes__r   r   r   r   r      s3    1G &D  
* *r   r   )	
__future__r   r$   ior   TYPE_CHECKINGtypingr   r   r   r   r   <module>rL      s%     # 	 1* 1*r   