
    Eg                     6    d dl T d dlmZ  G d de          ZdS )    )*)	b64encodec                       e Zd ZdZd Zd ZdS )imagetocoordinatespointsc                 j   |_t          |d          5 }|                                }t          |                              d          }ddd           n# 1 swxY w Y   nd|                    d          }t          |          t          u r9t          |                              d          }|                    d|i           |||                     d           dS d|| j	        | j
        d}|                    |           |                     | j        || j        d	          d
k    r+|                     dt          | j                  z              n1|                     d           |                     | j                   dS |                     d          }|dk    rdS |d         d         S )z
        :param file_path: path to captcha image on disk
        :param kwargs: contains key-value pairs for updating task_data dict
        Nrbasciibodyz0file_path or body (in kwargs) has to be providedr   ImageToCoordinatesTask)typer   modecomment)	clientKeytasksoftId   zcreated task with id zcould not create task<   solutioncoordinates)openreadr   decodegetr   bytesupdatelog
solve_moder   create_task
client_keysoft_idstrtask_id
err_stringwait_for_result)self	file_pathkwargsimgimg_str	task_datatask_results          [/var/www/sysmax/venv/lib/python3.11/site-packages/anticaptchaofficial/imagetocoordinates.pysolve_and_return_solutionz,imagetocoordinates.solve_and_return_solution	   s    
  i&& =#((**#G,,33G<<= = = = = = = = = = = = = = = jj((GG}}%%#G,,33G<<vw/000HHGHHH1 -O|	
 
	 	   l
 
   	 
 HH,S->->>????HH,---HHT_%%%1**2..!1z*=99s   7AAAc                      |dv r	|| _         d S d S )N)r   
rectangles)r   )r&   values     r-   set_modezimagetocoordinates.set_mode4   s!    ,,,#DOOO -,    N)__name__
__module____qualname__r   r.   r2    r3   r-   r   r      s8        J): ): ):V$ $ $ $ $r3   r   N)"anticaptchaofficial.antinetworkingbase64r   antiNetworkingr   r7   r3   r-   <module>r;      sW    0 0 0 0      1$ 1$ 1$ 1$ 1$ 1$ 1$ 1$ 1$ 1$r3   