
    i                         S SK r S SKrS SKr\R                  S:  a  \ R                  rO\ R
                  " SS0 5      r0 r " S S\5      rg)    N)      ABC c                   r    \ rS rSr\R
                  S 5       r\S 5       r\R
                  S 5       r	S r
Srg)Captcha   c                     U [         U'   g N)captchaSolvers)selfnames     J/app/mltbenv/lib/python3.13/site-packages/cloudscraper/captcha/__init__.py__init__Captcha.__init__   s    #t    c                 L   U[         ;  aX   [        U R                   SU 35        [        [         R	                  U5      [
        5      (       d  [        S5      e [         U   $ [         U   $ ! [         a-  nS[        l        [        R                  " SU SU 35        e S nAff = f)N.z.The anti captcha provider was not initialized.r   zUnable to load z anti captcha provider -> )r   
__import__
__module__
isinstancegetr   ImportErrorsystracebacklimitloggingerror)clsr   es      r   dynamicImportCaptcha.dynamicImport   s    ~%cnn-Qtf56!."4"4T":GDD%&VWW E d##~d##  %&"v5OPQsSTs   AA, ,
B#6(BB#c                     g r   r   r   captchaTypeurlsiteKeycaptchaParamss        r   getCaptchaAnswerCaptcha.getCaptchaAnswer(   s    r   c                 &    U R                  XX45      $ r   )r(   r#   s        r   solveCaptchaCaptcha.solveCaptcha.   s    $$[wNNr   r   N)__name__r   __qualname____firstlineno__abcabstractmethodr   classmethodr    r(   r+   __static_attributes__r   r   r   r   r      sN    $ $
 $ $ 	 
Or   r   )r0   r   r   version_infor   ABCMetar   r   r   r   r   <module>r6      sL    
  
v
''C
++eR
$C 
Oc Or   