
    i#                        \ \4rS SKrS SKJr   S SKJr  \" 5       r
SSKJr  SS	KJr  SS
KJr   " S S\5      r " S S\5      r " S S\5      rS rS rS r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rS0S  jrS! rS0S" jrS# r Sr!S$ r"S% r#S1S& jr$S2S' jr%S2S( jr&S) r'S3S* jr(S+ r)\S3S, j5       r*S- r+S. r,S/ r-g! \	 a     " S S5      r Nf = f)4    N)contextmanager)localc                       \ rS rSrSrg)_threadlocal    N__name__
__module____qualname____firstlineno____static_attributes__r       V/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/Cython/Compiler/Errors.pyr   r      s    r   r      )open_new_file   )
DebugFlags)Optionsc                       \ rS rSrSrg)
PyrexError   r   Nr	   r   r   r   r   r          r   r   c                       \ rS rSrSrg)PyrexWarning   r   Nr	   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)CannotSpecialize   r   Nr	   r   r   r   r   r      r   r   r   c                    U S   n[        U[        5      (       a
   SU-  5       e UR                  5       nSR                  U[	        SU S   S-
  5      U S    5      nSU< SSU S   -  < S	3nSnU SU SU S3nU$ ! [
         a    S
n Nf = f)Nr   zOPlease replace filename strings with Scanning.FileSourceDescriptor instances %r
r      z...
 r   ^z[unprintable code]z<------------------------------------------------------------)
isinstanceany_string_type	get_linesjoinmaxUnicodeDecodeError)positionsourceFshbars        r   contextr0       s    a[F6?33 dY\bbd44
 IIaAx{1}-hqk:;hqk!23D&1#RvR AH  ! !s   A= =BBc                 P    U (       a  SU S   R                  5       U S   U S   4-  $ g)Nz
%s:%d:%d: r   r   r    )get_error_descriptionr+   s    r   format_positionr5   1   s6    x{@@B (Xa[: : 	:r   c                 j    U(       a+  [        U5      n[        U5      nSU< U< U =(       d    S< 3n U $ )Nz
Error compiling Cython file:
r2   )r5   r0   )messager+   pos_strconts       r   format_errorr:   7   s1    !(+x >BGW]XZ][Nr   c                   $    \ rS rSrSS jrS rSrg)CompileError>   Nc                     Xl         X l        [        X!5      U l        SU l        [
        R                  X R                  5        X4U l        g )NF)r+   message_onlyr:   formatted_messagereported	Exception__init__argsselfr+   r7   s      r   rC   CompileError.__init__@   sA     #!-g!@4!7!78 '	r   c                     U R                   $ N)r@   )rF   s    r   __str__CompileError.__str__J   s    %%%r   )rD   r@   r?   r+   rA   Nr2   )r
   r   r   r   rC   rJ   r   r   r   r   r<   r<   >   s    (&r   r<   c                       \ rS rSrSS jrSrg)CompileWarningM   Nc                 T    Xl         [        R                  U [        U5      U-   5        g rI   )r+   rB   rC   r5   rE   s      r   rC   CompileWarning.__init__O   s!     4!:W!DEr   r4   rL   r
   r   r   r   rC   r   r   r   r   rN   rN   M   s    Fr   rN   c                       \ rS rSrS rSrg)InternalErrorS   c                 B    Xl         [        R                  U SU-  5        g )NzInternal compiler error: %sr?   rB   rC   rF   r7   s     r   rC   InternalError.__init__V   s#    #4!>" 	r   r?   NrR   r   r   r   rT   rT   S   s    r   rT   c                       \ rS rSrS rSrg)
AbortError[   c                 B    Xl         [        R                  U SU-  5        g )NzAbort error: %srW   rX   s     r   rC   AbortError.__init__^   s    #4!2W!<=r   rZ   NrR   r   r   r   r\   r\   [   s    >r   r\   c                       \ rS rSrSS jrSrg)CompilerCrashb   Nc                 T   U(       a  SU-   nOSnX0l         U(       a	  SU< U< 3nU(       a*  SS KnUSSR                  UR                  U5      5      -   -  nU(       a+  U(       d  US-  nX4R                  R
                  < SU< 3-  n[        R                  XU5        XX4U4U l        g )Nr!   zCompiler crash in r   z/

Compiler crash traceback from this point on:
r2   z: )	r?   	tracebackr(   	format_tb	__class__r
   r<   rC   rD   )rF   posr0   r7   cause
stacktracerd   s          r   rC   CompilerCrash.__init__d   s    WnGG#297CGD	++J789:G 4??#;#;UCCGd1 7:>	r   )rD   r?   rI   rR   r   r   r   ra   ra   b   s    ?r   ra   c                       \ rS rSrSrSrg)NoElementTreeInstalledExceptionz   z[raised when the user enabled options.gdb_debug but no ElementTree
implementation was found
r   N)r
   r   r   r   __doc__r   r   r   r   rl   rl   z   s    r   rl   c                     U b  [        U 5      [        l        OS [        l        U(       a  [        R                  [        l        OS [        l        S[        l        g Nr   )r   threadlocalcython_errors_listing_filesysstderrcython_errors_echo_filecython_errors_count)pathecho_to_stderrs     r   open_listing_filery      s>     1>t1D.15..1jj+.2+&'K#r   c                      [         R                  (       a*  [         R                  R                  5         S [         l        g g rI   )rq   rr   closer   r   r   close_listing_filer|      s*    --..44615. .r   c           	         [         R                  nU(       a  U(       a  US   R                  U 5        g U R                  (       a  g SU l        SU -  n[         R                  nU(       a  UR                  U5        [         R                  nU(       a  UR                  U5        [         =R                  S
-  sl        [        R                  (       a  [        S5      eg ! [         a(    [        [        U SS5      [        U SS 5      5      S-   n Nf = f! [         a$    UR                  UR                  SS	5      5         Nf = f! [         a$    UR                  UR                  SS	5      5         Nf = f)NTz%s
r?   z[unprintable exception message]r+   r!   ASCIIreplacer   zfatal errors)rq   cython_errors_stackappendrA   UnicodeEncodeErrorr:   getattrrr   writeencoderu   rv   r   	fast_failr\   )err	use_stackerror_stacklinelisting_file	echo_files         r   report_errorr      s8   11KyBs# <<SLT
 #==##D)  77	& 	''1,'^,,  " 	G^=^ _ 'Z >@BFGD	G & D""4;;w	#BCD
 & AGY ?@As6   C )D E /DD+D?>D?+E0/E0c                     U c  [        U5      e[        X5      n[        R                  (       a  [	        U5      e[        U5        U$ rI   )rT   r<   r   debug_exception_on_errorrB   r   )r+   r7   r   s      r   errorr      s<    G$$
x
)C**)C.,@Jr   c                      U R                  U5        g ! [         a$    U R                  UR                  SS5      5         g f = f)Nasciir   )r   r   r   )filer   s     r   _write_file_encoder      s9    4

4 4

4;;w	234s    +AAc                     UR                   S   (       d  g [        X5      nSU-  n[        R                  nU(       a  [	        XT5        [        R
                  nU(       a  [	        Xd5        U$ )Nshow_performance_hintszperformance hint: %s
)
directivesrN   rq   rr   r   ru   )r+   r7   envwarnr   r   r   s          r   performance_hintr      sW    >>23(,D#d*D99L<.33I9+Kr   c                     U[         :  a  g [        X5      nSU-  n[        R                  nU(       a  [	        XT5        [        R
                  nU(       a  [	        Xd5        U$ )Nz	note: %s
)LEVELrN   rq   rr   r   ru   r+   r7   levelr   r   r   r   s          r   r7   r7      sQ    u}(,D$D99L<.33I9+Kr   c                    U[         :  a  g [        R                  (       a  U (       a  [        X5      $ [	        X5      nSU-  n[
        R                  nU(       a  [        XT5        [
        R                  nU(       a  [        Xd5        U$ Nzwarning: %s
)	r   r   warning_errorsr   rN   rq   rr   r   ru   r   s          r   warningr      sg    u}(X''(,DT!D99L<.33I9+Kr   c                    U[         :  a  g [        R                  nX;   a  g [        X5      nSU-  n[        R                  nU(       a  [        Xe5        [        R                  nU(       a  [        Xu5        UR                  U5        U$ r   )r   rq   cython_errors_warn_once_seenrN   rr   r   ru   add)r+   r7   r   warn_once_seenr   r   r   r   s           r   	warn_oncer      ss    u} ==N (,DT!D99L<.33I9+wKr   c                  H    / n [         R                  R                  U 5        U $ rI   )rq   r   r   )errorss    r   hold_errorsr      s     F##**62Mr   c                 x    [         R                  R                  5       nU (       d  U H  n[        U5        M     g g rI   )rq   r   popr   )ignoreheld_errorsr   s      r   release_errorsr     s0    11557KC  r   c                  (    [         R                  S   $ )Nr~   )rq   r   r   r   r   r   r     s    **2..r   c              #   X   #    [        5       n Uv   [        U S9  g ! [        U S9  f = f7f)N)r   )r   r   )r   r   s     r   local_errorsr     s&     ]F&f%f%s   * 
*'*c                      S[         l        S [         l        S [         l        [	        5       [         l        / [         l        g rp   )rq   rv   rr   ru   setr   r   r   r   r   init_threadr     s,    &'K#-1K**.K'/2uK,&(K#r   c                  f    [         R                  R                  5         [         R                  S S 2	 g rI   )rq   r   clearr   r   r   r   resetr   $  s"    ,,224''*r   c                  "    [         R                  $ rI   )rq   rv   r   r   r   get_errors_countr   (  s    ***r   )T)r   )r   )F).bytesstrr&   rs   
contextlibr   	threadingr   r   ImportErrorrq   Utilsr   r2   r   r   rB   r   r   r   r0   r5   r:   r<   rN   rT   r\   ra   rl   ry   r|   r   r   r   r   r   r7   r   r   r   r   r   r   r   r   r   r   r   r   <module>r      s+  
 #, 
 %/ n !  	 		9 		z 	"&: &F\ FI > >?L ?0j 
(6
-6 	
4 (/ & &)++y  s   C! !C43C4