
    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S )imagecaptchac           
         |_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
        | j        | j        | j        | 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   ImageToTextTask)	typer
   phrasecasenumericmath	minLength	maxLengthcomment)	clientKeytasksoftId   zcreated task with id zcould not create task<   solutiontext)openreadr   decodegetr   bytesupdatelogr   r   r   r   r   r   r   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          U/var/www/sysmax/venv/lib/python3.11/site-packages/anticaptchaofficial/imagecaptcha.pysolve_and_return_solutionz&imagecaptcha.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 &kI|I|

 

	 	   l
 
   	 
 HH,S->->>????HH,---HHT_%%%1**2..!1z*622s   7AAAN)__name__
__module____qualname__r1        r0   r   r      s#        .3 .3 .3 .3 .3r6   r   N)"anticaptchaofficial.antinetworkingbase64r   antiNetworkingr   r5   r6   r0   <module>r:      sW    0 0 0 0      03 03 03 03 03> 03 03 03 03 03r6   