
    e                        d dl mZ ddlmZmZ ddlmZ ddlmZ	 d Z
 G d dej                        Z ej                  ej                  ee
        ej                  ej                  d	       y
)    )annotations   )BmpImagePluginImage)i16le)i32lec                    | d d dk(  S )N   s       )prefixs    4/usr/lib/python3/dist-packages/PIL/CurImagePlugin.py_acceptr      s    "1:$$    c                      e Zd ZdZdZd Zy)CurImageFileCURzWindows Cursorc                X   | j                   j                         }| j                   j                  d      }t        |      sd}t	        |      d}t        t        |d            D ]<  }| j                   j                  d      }|s|}#|d   |d   kD  s/|d   |d   kD  s;|}> |sd}t        |      | j                  t        |d	      |z          | j                  d   | j                  d   d
z  f| _        | j                  d   \  }}}}	|d| j                  z   ||	f| j                  d<   y )N   znot a CUR filer   r
      r   r   zNo cursors were found      )r   r   )fptellreadr   SyntaxErrorrangei16	TypeError_bitmapi32size_sizetile)
selfoffsetsmsgmideoas
             r   _openzCurImageFile._open(   s    GGLLOqz"Cc"" s1ay! 	AR A1!1!	 )CC.  	SBZ&() YYq\499Q<1#44
YYq\
1a&499,a2		!r   N)__name__
__module____qualname__formatformat_descriptionr.   r   r   r   r   r   $   s    F)3r   r   z.curN)
__future__r    r   r   _binaryr   r   r   r    r   BmpImageFiler   register_openr2   register_extensionr   r   r   <module>r:      s_   $ # # ! !%3>.. 3J   L''w ?   ,,f 5r   