
    Rf                        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	           d
S )    )annotations   )BmpImagePluginImage)i16le)i32lec                    | d d         dk    S )N   s       )prefixs    D/var/www/html/env/lib/python3.11/site-packages/PIL/CurImagePlugin.py_acceptr      s    "1":$$    c                      e Zd ZdZdZd ZdS )CurImageFileCURzWindows Cursorc                   | j                                         }| j                             d          }t          |          sd}t	          |          d}t          t          |d                    D ]G}| j                             d          }|s|}!|d         |d         k    r|d         |d         k    r|}H|sd}t          |          |                     t          |d	          |z              | j
        d         | j
        d         d
z  f| _        | j        d         \  }}}}	|d| j
        z   ||	f| j        d<   d S )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?    GLLOOqzz 	#"Cc""" s1ayy!! 	 	AR  A 1!1! 	!)CC..  	SBZZ&())) Yq\49Q<1#44
Yq\
1a&49,a2	!r   N)__name__
__module____qualname__formatformat_descriptionr.   r   r   r   r   r   $   s.        F)3 3 3 3 3r   r   z.curN)
__future__r    r   r   _binaryr   r   r   r    r   BmpImageFiler   register_openr2   register_extensionr   r   r   <module>r:      s   $ # " " " " " # # # # # # # # ! ! ! ! ! ! ! ! ! ! ! !% % %3 3 3 3 3>. 3 3 3J  L'w ? ? ?  ,f 5 5 5 5 5r   