
    th              	       L   d dl mZmZmZ d dlmZ dZdZ ed          D ]VZ	 ed          D ]HZ
 ed          D ]:Ze ee	dz  dz             ee
dz  dz            z    eedz  d	z            z   z   Z;IWd
 Z G d dej                  Z ej        ej        ee           dS )   )Image	ImageFileImagePalette)o8s   P7 332                   c                 (    | d d         t           k    S )N   )_MAGIC)prefixs    j/var/www/html/mycamper/aliexpress-site/backend/venv/lib/python3.11/site-packages/PIL/XVThumbImagePlugin.py_acceptr   #   s    "1":r   c                       e Zd ZdZdZd ZdS )XVThumbImageFileXVThumbzXV thumbnail imagec                 z   t          | j                            d                    sd}t          |          | j                                         	 | j                                        }|sd}t          |          |d         dk    rn:|                                                                }d| _        t          |d                   t          |d                   f| _	        t          j        d	t                    | _        d
d| j        z   | j                                        | j        ddffg| _        d S )Nr   znot an XV thumbnail fileTz(Unexpected EOF reading XV thumbnail file    #   Pr   RGBraw)r   r   )r   fpreadSyntaxErrorreadlinestripsplitmodeint_sizer   r   PALETTEpalettesizetelltile)selfmsgss      r   _openzXVThumbImageFile._open/   s   tw||A'' 	#,Cc""" 		  ""A '@!#&&&trzz	 GGIIOO	1YYAaD		)
#'w77Vdi/$)QPQARST			r   N)__name__
__module____qualname__formatformat_descriptionr-    r   r   r   r   +   s3        F-U U U U Ur   r   N) r   r   r   _binaryr   r   r%   rangergbr   r   register_openr1   r3   r   r   <module>r;      sJ  ( - , , , , , , , , ,      	 	q  AU1XX  q 	 	AAG>""RRSQ%7%77""a#g!^:L:LLGG	     U U U U Uy* U U UF  $+-=w G G G G Gr   