+
    i                        ^ RI t ^ RIt^ RIt^ RIt^ RIHtHt ^ RIHt ^ RI	H
t
 ^ RIHtHt ^ RIHtHtHtHtHtHtHtHtHtHtHt ^ RIHt ^ RIHtHtHtH t H!t!H"t" ^ R	IH#t$ ^ R
IH%t% ^ RI&H't' ^RI(H)t) ^RI*H+t+H,t, ^RI-H.t. ^RI/H0t0H1t1H2t2H3t3H4t4H5t5 ^RI6H7t7 ^RI8H9t9H:t: ^RI;H<t< ^RI=H>t> ^RI?H@t@ ^RIAHBtBHCtC ^R	IDH#t# ^RIEHFtF ]P                  R8H  tH^
tI^PtJR R ltKRRR^dR^XR^RRRR R!R R"]IR#]JR$R%R&RR'R%R(R@R)^d/R* R+ lltL] ! R, R-4      4       tM] ! R. R/4      4       tN] ! R0 R14      4       tO] ! R2 R34      4       tP ! R4 R5]94      tQ ! R6 R74      tR]SR88X  d)   ]L! R%R97       ^ RItR: R; ltTR< R= ltUR> R? ltV]V! 4        R# R# )A    N)	dataclassfield)islice)walk_tb)
ModuleTypeTracebackType)AnyCallableDictIterableListOptionalSequenceSetTupleTypeUnion)guess_lexer_for_filename)CommentKeywordNameNumberOperatorString)Text)Token)ClassNotFound)pretty)loop_first_last	loop_last)Columns)ConsoleConsoleOptionsConsoleRenderableGroupRenderResultgroup)	Constrain)RegexHighlighterReprHighlighter)Panel)render_scope)Style)SyntaxSyntaxPosition)Themewin32c          
      ~    V ^8  d   QhR\         R\         R\        \        \        \        \        3,          ,          /# )   startendreturn)r/   r   r   int)formats   "a/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/rich/traceback.py__annotate__r:   7   s4     % %% .%eCcM"#%    c              #     "   V w  r#Vw  rEW$8X  d	   W#V3x  R# \        \        W$^,           4      4       F.  w  rgpV'       d	   WR3x  K  V'       d
   V^ V3x  K'  V^ R3x  K0  	  R# 5i)zYield start and end positions per line.

Args:
    start: Start position.
    end: End position.

Returns:
    Iterable of (LINE, COLUMN1, COLUMN2).
N)r   range)	r4   r5   line1column1line2column2firstlastline_nos	   &&       r9   _iter_syntax_linesrF   7   sm      NENE~g%%$3E%4K$L E**q'))q"n$ %Ms   AA(A(consolewidth
code_widthextra_linestheme	word_wrapFshow_localslocals_max_lengthlocals_max_stringlocals_hide_dunderTlocals_hide_sunderindent_guidessuppress
max_framesc          "         V ^8  d   QhR\         \        ,          R\         \        ,          R\         \        ,          R\        R\         \        ,          R\        R\        R\        R	\        R
\        R\         \        ,          R\        R\
        \        \        \        3,          ,          R\        R\        \        \        ,          \        \         \        ,          .\        3,          /# )r3   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   r6   )r   r"   r7   strboolr   r   r   r
   r   BaseExceptionr   r	   )r8   s   "r9   r:   r:   S   s     @ @g@ C=@ 	@
 @ C=@ @ @ @ @ @ !@ @ uS*_-.@ @  tM"M8M3JKSPQ!@r;   c                X  aaaaaaaaa	a
aaaaa V f   \        RR7      MT oSP                  '       d   S
f   RMS
o
R VVVV	V
VVVVVVVVV3R lloR V3R llp \        4       pV! V4       \        P                  #   \
         d!    \        P                  pS\        n        Tu # i ; i)a9  Install a rich traceback handler.

Once installed, any tracebacks will be printed with syntax highlighting and rich formatting.


Args:
    console (Optional[Console], optional): Console to write exception to. Default uses internal Console instance.
    width (Optional[int], optional): Width (in characters) of traceback. Defaults to 100.
    code_width (Optional[int], optional): Code width (in characters) of traceback. Defaults to 88.
    extra_lines (int, optional): Extra lines of code. Defaults to 3.
    theme (Optional[str], optional): Pygments theme to use in traceback. Defaults to ``None`` which will pick
        a theme appropriate for the platform.
    word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
    show_locals (bool, optional): Enable display of local variables. Defaults to False.
    locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to 10.
    locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
    locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
    locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
    indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
    suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.

Returns:
    Callable: The previous exception handler that was replaced.

T)stderrc                l    V ^8  d   QhR\         \        ,          R\        R\        \        ,          RR/# )r3   type_value	tracebackr6   N)r   rX   r   r   )r8   s   "r9   r:   install.<locals>.__annotate__   s:     5 5M"55 M*5 
	5r;   c                    < \         P                  V VVSSSSSSS	S
S\        S4      SSSR 7      pSP                  V4       R# ))rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   N)	Tracebackfrom_exceptionrW   print)r\   r]   r^   exception_tracebackrI   rJ   rR   rP   rQ   rN   rO   rT   rM   rS   rK   traceback_consolerH   rL   s   &&& r9   
excepthookinstall.<locals>.excepthook   sb    
 (66!##//1#$67'!! 7 
$ 	 34r;   c                (    V ^8  d   QhR\         RR/# )r3   ipr6   Nr	   )r8   s   "r9   r:   r_      s     )
 )
3 )
4 )
r;   c                    <a aaa / oS P                   oR  VV3R llpRR/R VV V3R llloSS n        VS n         V3R lS n        R# )c                4    V ^8  d   QhR\         R\         RR/# )r3   argskwargsr6   Nrj   )r8   s   "r9   r:   =install.<locals>.ipy_excepthook_closure.<locals>.__annotate__   s!     	3 	3c 	3S 	3T 	3r;   c                    < VoS! V / VB  R# )zEwrap the default ip.showtraceback to store info for ip._showtracebackN )rm   rn   default_showtracebacktb_datas   *,r9   ipy_show_tracebackCinstall.<locals>.ipy_excepthook_closure.<locals>.ipy_show_traceback   s     G!4262r;   	is_syntaxFc                @    V ^8  d   QhR\         R\        R\         RR/# )r3   rm   rv   rn   r6   N)r	   rW   )r8   s   "r9   r:   ro      s,     	 		#'	;>		r;   c                0  < S	P                  4       pV '       d   RMV^,          pS
P                  RR4      pS
P                  R4      pVf   V'       d   ^M^ p\        V4       F  pVf    MVP                  pK  	  S! V^ ,          V^,          V4       / o
R# )z2Internally called traceback from ip._showtracebackNrunning_compiled_codeF	tb_offset)_get_exc_infogetr>   tb_next)rv   rm   rn   	exc_tupletbcompiledrz   _rf   ri   rs   s   $*,     r9   ipy_display_tracebackFinstall.<locals>.ipy_excepthook_closure.<locals>.ipy_display_traceback   s    
 ((*I 3<$1B {{#:EBHK0I !)Aq	9%:ZZ &
 y|Yq\26Gr;   c                     < S! V R R/VB # )rv   Trq   )rm   rn   r   s   *,r9   <lambda>9install.<locals>.ipy_excepthook_closure.<locals>.<lambda>   s    5J6
!6
%+6
r;   N)showtraceback_showtracebackshowsyntaxerror)ri   rt   rr   r   rs   rf   s   f @@@r9   ipy_excepthook_closure'install.<locals>.ipy_excepthook_closure   sL     " 0 0	3 	3	*/	 	4 2-
r;   )r"   
is_jupyterget_ipythonsysrf   	Exception)rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   r   ri   old_excepthookrf   re   s   $ddddddddddddd   @@r9   installr   S   s    V 18t,W (((-?-G 	 5 5 52)
 )
V	]r"~~ #	s   !A> >(B)(B)c                   8   a  ] tR t^t o RtRtRtV 3R ltRtV t	R# )Frame Nc                   < V ^8  d   Qh/ S[ ;R&   S[;R&   S[ ;R&   S[ ;R&   S[S[S[ S[P
                  3,          ,          ;R&   S[S[S[S[S[3,          S[S[S[3,          3,          ,          ;R&   # )r3   filenamelinenonamelinelocalslast_instruction)rV   r7   r   r   r   Noder   )r8   __classdict__s   "r9   r:   Frame.__annotate__   s     M  K  I	 
 N  T#v{{*+,3  uU38_eCHo%EFGN r;   rq   )
__name__
__module____qualname____firstlineno__r   r   r   __annotate_func____static_attributes____classdictcell__r   s   @r9   r   r      s     
 D/3FJN  r;   r   c                   >   a  ] tR t^t o ]! ]R7      tV 3R ltRtV t	R# )_SyntaxErrordefault_factoryc                r   < V ^8  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[ ;R&   S[;R&   S[S[,          ;R&   # )r3   offsetr   r   r   msgnotes)r7   rV   r   )r8   r   s   "r9   r:   _SyntaxError.__annotate__   sP     K  M  I	 
 K  
H  92 r;   rq   N)
r   r   r   r   r   listr   r   r   r   r   s   @r9   r   r      s      T2E  r;   r   c                   n   a  ] tR t^t o RtRt]! ]R7      t]! ]R7      t	Rt
]! ]R7      tV 3R ltRtV tR# )StackNFr   c                   < V ^8  d   Qh/ S[ ;R&   S[ ;R&   S[S[,          ;R&   S[;R&   S[S[,          ;R&   S[S[ ,          ;R&   S[;R&   S[R,          ;R	&   # )
r3   exc_type	exc_valuesyntax_erroris_causeframesr   is_groupTrace
exceptions)rV   r   r   rW   r   r   )r8   r   s   "r9   r:   Stack.__annotate__   sz     M  N  <(/	 
   K5  92    W; r;   rq   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s   @r9   r   r      s;      ,0LH5FT2EH %d ;J  r;   r   c                   ,   a  ] tR t^t o V 3R ltRtV tR# )r   c                6   < V ^8  d   Qh/ S[ S[,          ;R&   # )r3   stacks)r   r   )r8   r   s   "r9   r:   Trace.__annotate__   s     K r;   rq   N)r   r   r   r   r   r   r   r   s   @r9   r   r      s      r;   r   c                       ] tR t^tR.tRtR# )PathHighlighterz(?P<dim>.*/)(?P<bold>.+)rq   N)r   r   r   r   
highlightsr   rq   r;   r9   r   r      s
    -.Jr;   r   c                     a  ] tR t^t o RtRRRRRRRRR	R
/tR+R^dR^XR^RRRRRRR]R]RRRRRRRR,R^d/V 3R lR lllt]	R^dR^XR^RRRRRRR]R]RRRRRRRR,R^d/V 3R lR ll4       t
]	RRR]R]RRRRRR/V 3R  lR! ll4       tV 3R" lR# lt]! 4       V 3R$ lR% l4       t]	V 3R& lR' l4       t]! 4       V 3R( lR) l4       tR*tV tR# )-ra   a  A Console renderable that renders a traceback.

Args:
    trace (Trace, optional): A `Trace` object produced from `extract`. Defaults to None, which uses
        the last exception.
    width (Optional[int], optional): Number of characters used to traceback. Defaults to 100.
    code_width (Optional[int], optional): Number of code characters used to traceback. Defaults to 88.
    extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
    theme (str, optional): Override pygments theme used in traceback.
    word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
    show_locals (bool, optional): Enable display of local variables. Defaults to False.
    indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
    locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to 10.
    locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
    locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
    locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
    suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
    max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.

r   textz.pypythonz.pxdcythonz.pyxz.pxipyrexNrH   rI   rJ   rK   rL   FrM   rN   rO   rP   TrQ   rR   rS   rT   c                   < V ^8  d   QhRS[ S[,          RS[ S[,          RS[ S[,          RS[RS[ S[,          RS[RS[RS[R	S[R
S[RS[RS[RS[S[S[S[3,          ,          RS[/# )r3   tracerH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   )r   r   r7   rV   rW   r   r   r   )r8   r   s   "r9   r:   Traceback.__annotate__  s     3F 3F3F }	3F
 SM3F 3F }3F 3F 3F 3F 3F !3F !3F 3F 5j123F  !3Fr;   c               ,   VfF   \         P                  ! 4       w  pppVe	   Ve   Vf   \        R4      hV P                  VVVVR7      pWn        W n        W0n        W@n        \        P                  ! T;'       g    R4      V n
        W`n        Wpn        Wn        Wn        Wn        Wn        Wn        . V n        V F  p\'        V\(        4      '       gD   VP*                  f   Q V: R24       h\,        P.                  P1                  VP*                  4      pMTp\,        P.                  P3                  \,        P.                  P5                  V4      4      pV P$                  P7                  V4       K  	  V^ 8  d   \9        ^V4      V n        R # ^ V n        R # )Nz9Value for 'trace' required if not called in except: blockrM   	ansi_darkz+ must be a module with '__file__' attribute)r   exc_info
ValueErrorextractr   rH   rI   rJ   r.   	get_themerK   rL   rM   rR   rN   rO   rP   rQ   rS   
isinstancerV   __file__ospathdirnamenormpathabspathappendmaxrT   )selfr   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   r   r   r^   suppress_entityr   s   &&$$$$$$$$$$$$$     r9   __init__Traceback.__init__  sd   $ =-0\\^*Hi9#4	8I O  LL)YK ! E 

$&%%e&:&:{;
"&*!2!2"4"4')'Oos33#,,8U%((STU8ww'?'?@&77##BGGOOD$9:DMM  &  ( 1;Q#a,Ar;   c          "         < V ^8  d   QhRS[ S[,          RS[RS[S[,          RS[S[,          RS[S[,          RS[RS[S[,          RS[R	S[R
S[RS[RS[RS[RS[RS[S[	S[S[
3,          ,          RS[RR/# )r3   r   r   r^   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   r6   ra   )r   r	   rX   r   r   r7   rV   rW   r   r   r   )r8   r   s   "r9   r:   r   T  s     F
 F
s)F
 !F
 M*	F
 }F
 SMF
 F
 }F
 F
 F
 F
 F
 !F
 !F
  !F
" 5j12#F
$ %F
& 
'F
r;   c               `    V P                  VVVV	V
VVVR7      pV ! VVVVVVV	VV
VVVVVR7      # )a,  Create a traceback from exception info

Args:
    exc_type (Type[BaseException]): Exception type.
    exc_value (BaseException): Exception value.
    traceback (TracebackType): Python Traceback object.
    width (Optional[int], optional): Number of characters used to traceback. Defaults to 100.
    code_width (Optional[int], optional): Number of code characters used to traceback. Defaults to 88.
    extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
    theme (str, optional): Override pygments theme used in traceback.
    word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
    show_locals (bool, optional): Enable display of local variables. Defaults to False.
    indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
    locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to 10.
    locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
    locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
    locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
    suppress (Iterable[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
    max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.

Returns:
    Traceback: A Traceback instance that may be printed.
)rM   rN   rO   rP   rQ   )rH   rI   rJ   rK   rL   rM   rR   rN   rO   rP   rQ   rS   rT   )r   )clsr   r   r^   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rich_tracebacks   &&&&$$$$$$$$$$$$$ r9   rb   Traceback.from_exceptionS  si    Z #//11 % 	
 !##'//11!
 	
r;   _visited_exceptionsc                   < V ^8  d   QhRS[ S[,          RS[RS[S[,          RS[RS[RS[RS[RS[R	S[S[S[,          ,          R
S[/
# )r3   r   r   r^   rM   rN   rO   rP   rQ   r   r6   )r   rX   r   r   rW   r7   r   r   )r8   r   s   "r9   r:   r     s     | |}%| !| M*	| | | | !| !| &c-&89| 
|r;   c               	  aa . p
Rp^ RI Hp \        VRR4      ;'       g    . pV	f   \        4       MT	pR R lp \	        V! VP
                  4      V! V4      VVR7      p\        P                  R8  d   \        V\        \        34      '       d~   RVn        VP                   Ff  pVV9   d   K  VP                  V4       VP                  P                  \        P!                  \#        V4      VVP$                  VVSSVR	7      4       Kh  	  \        V\&        4      '       dq   \)        VP*                  ;'       g    ^ VP,                  ;'       g    R
VP.                  ;'       g    ^ VP0                  ;'       g    RVP2                  VR7      Vn        V
P                  V4       VP6                  P                  pR VV3R llp\9        V4       EF  w  ppVP:                  P<                  pRp\        P                  R8  dh   VP>                  ^,          p\A        \C        VP:                  PE                  4       VV^,           4      4      pVw  ppppVe   Ve   Ve   Ve	   VV3VV33pV'       d]   VPG                  R4      '       gF   \H        PJ                  PM                  V4      '       g!   \H        PJ                  PO                  VV4      pVPP                  PS                  RR4      '       d   EK$  \U        T;'       g    R
TVP:                  PV                  V'       d   V! VPP                  PY                  4       4       UUu/ uF\  w  pp\Z        P\                  ! V4      '       d   K$  \Z        P^                  ! V4      '       d   KB  V\`        Pb                  ! VVVR7      bK^  	  uppMRVR7      p V! V 4       VPP                  PS                  RR4      '       g   EK  VP6                  R EK   	  V'       gy   \        VRR4      p!V!e&   V!VJd    V!Pd                  pT!pV!P$                  pRpEK  VPf                  p!V!e3   \        VRR4      '       g    V!Pd                  pT!pV!P$                  pRpEK8   \i        T
R7      p"T"# u uppi )aD  Extract traceback information.

Args:
    exc_type (Type[BaseException]): Exception type.
    exc_value (BaseException): Exception value.
    traceback (TracebackType): Python Traceback object.
    show_locals (bool, optional): Enable display of local variables. Defaults to False.
    locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to 10.
    locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
    locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
    locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.

Returns:
    Trace: A Trace instance which you can use to construct a `Traceback`.
F)_IMPORT_CWD	__notes__Nc                0    V ^8  d   QhR\         R\        /# )r3   _objectr6   )r	   rV   )r8   s   "r9   r:   'Traceback.extract.<locals>.__annotate__  s     	2 	2c 	2c 	2r;   c                >     \        V 4      #   \         d     R# i ; i)z1Don't allow exceptions from __str__ to propagate.z<exception str() failed>)rV   r   )r   s   &r9   safe_str#Traceback.extract.<locals>.safe_str  s#    27|# 212s   
 T)r   r   r   r   )rM   rN   rP   rQ   r   ?r   )r   r   r   r   r   r   c                    V ^8  d   QhR\         \        \        \        3,          ,          R\         \        \        \        3,          ,          /# )r3   iter_localsr6   )r   r   rV   object)r8   s   "r9   r:   r     s8     % %%eCK&89%%V,-%r;   c              3     <"   S'       g   S'       g   T  Rj  xL
  R# V  FL  w  rS'       d   VP                  R4      '       d   K&  S'       d   VP                  R4      '       d   KG  W3x  KN  	  R#  LZ5i)z-Extract locals from an iterator of key pairs.N__r   
startswith)r   keyr]   rP   rQ   s   &  r9   
get_locals%Traceback.extract.<locals>.get_locals  s[      +.@***"-JC)cnnT.B.B )cnnS.A.A *$ #. +s&   A6A6A4+A6	A6A6'A6<_rich_traceback_omit)
max_length
max_string)r   r   r   r   r   _rich_traceback_guard:NNN	__cause____suppress_context__)r   )      )5pip._vendor.richr   getattrsetr   r   r   version_infor   BaseExceptionGroupExceptionGroupr   r   addr   ra   r   type__traceback__SyntaxErrorr   r   r   r   r   r   r   r   r   f_codeco_filenamef_lastinextr   co_positionsr   r   r   isabsjoinf_localsr|   r   co_nameitemsinspect
isfunctionisclassr   traverse	__class____context__r   )#r   r   r   r^   rM   rN   rO   rP   rQ   r   r   r   r   r   grouped_exceptionsr   stack	exceptionr   r   frame_summaryrE   r   r   instruction_indexinstruction_position
start_lineend_linestart_column
end_columnr   r]   framecauser   s#   &&&&$$$dd$                         r9   r   Traceback.extract  s8   > !0"9k4@FFB )0CE6I 		2 !("3"34"9-!	E 7*i*<n)MNN%)EN%.%9%9	$(::$*..y9((//%-- $Y ) ) 7 7,72C3E3E4F . 		 &:" )[11%1$++00q&//663$++00q"--2!&" MM% \\((F% % +2)*<&w(//;; $( ##w.(5(=(=(B%+/)00==?--1,( -" $" #.$0(4&2 (6%z2,(
 H$7$7$<$<77==22#%77<<X#F ))--.DeLL%__"&--55 ' /99O9O9U9U9W.X /Y
U$+$6$6u$= BIQVAWC %+<+<" 
 /Y "%5#& u ))--.EuMMQu +=x &	;=$i)?$H %I !& 3 3I#H!--$W5u. .  %H %I % 3 3I$HV$Ws   !R+R	Rc                ,   < V ^8  d   QhRS[ RS[RS[/# )r3   rG   optionsr6   )r"   r#   r&   )r8   r   s   "r9   r:   r   [  s*     d, d,d,)7d,	d,r;   c           	   #    a aaaa	a
"   S P                   pVP                  4       oVP                  p\        / R V! \        4      bRV! \
        4      bRV! \        4      bRV! \        P                  4      bRV! \        4      bRV! \        4      \        RR7      ,           bRV! \        4      bR	V! \        4      \        RR
7      ,           bRV! \        4      bRV! \        P                  4      bRV! \        P                  4      bRV! \        P                  4      bRV! \        P                  4      bRV! \        4      bRV! \        4      bRV! \        P                  4      \        RR7      ,           bRR7      o
\!        4       o\#        4       R VVVV	V V
3R ll4       o	\%        \'        S P(                  P*                  4      4       F  w  rVS	! We4      x  K  	  R# 5i)r   pygments.textpygments.stringpygments.functionpygments.numberzrepr.indentT)dimzrepr.strz
repr.brace)boldzrepr.numberzrepr.bool_truezrepr.bool_falsez	repr.nonezscope.borderzscope.equalsz	scope.keyzscope.key.specialF)inheritc                <    V ^8  d   QhR\         R\        R\        /# )r3   r  rD   r6   )r   rW   r&   )r8   s   "r9   r:   0Traceback.__rich_console__.<locals>.__annotate__{  s&     A	 A	 A	T A	l A	r;   c              3     <"   V P                   '       d]   \        SP                  V 4      R S	RRRR7      p\        VSP                  4      pS
P                  S4      ;_uu_ 4        Vx  RRR4       V P                  e   S
P                  S4      ;_uu_ 4        \        \        SP                  V P                  4      S	RRRSP                  R7      SP                  4      x  RRR4       \        P                  ! V P                   R2R3S! V P                  P                  4      4      x  MpV P                  '       d:   \        P                  ! V P                   R2R3S! V P                  4      4      x  M%\        P                  ! V P                   R34      x  V P                   F"  p\        P                  ! RS! V4      4      x  K$  	  V P                  '       d   \        V P                   ^4       Fn  w  rE. p\#        VP$                  4       F  w  rxVP'                  S! W4      4       K  	  R	x  \        \        \)        V!  R
V 2RR7      SP                  4      x  Kp  	  V'       gG   V P*                  '       d   \        P,                  ! R4      x  R# \        P,                  ! R4      x  R# R#   + '       g   i     ELZ; i  + '       g   i     EL; i5i)z7[traceback.title]Traceback [dim](most recent call last)ztraceback.borderT)titlestyleborder_styleexpandpaddingNztraceback.border.syntax_error)r9  r:  r;  r<  rH   z: ztraceback.exc_typer   zSub-exception #ztraceback.group.border)r8  r:  zI
[i]The above exception was the direct cause of the following exception:
zH
[i]During handling of the above exception, another exception occurred:
)r      )z[NOTE] ztraceback.note)r   r+   _render_stackr(   rH   	use_themer   _render_syntax_errorr   assembler   r   r   r   r   	enumerater   r    r   r   r%   r   from_markup)r  rD   stack_renderablenotegroup_nogroup_exceptionr  
group_lastgroup_stackbackground_stylerG   highlighterrender_stackr   traceback_themes   &&       r9   rL  0Traceback.__rich_console__.<locals>.render_stackz  sv    |||6;&&u-S*!3"7  $--=tzz#J &&77** 8 !!-&&77# 55e6H6HI"2)H#'$*"&** 


 
 8 mm'r*,@A 2 2 6 67  mm'r*,@A0 
 mm'7:N$OPPmm$A;tCTUU $ ~~~1:5;K;KQ1O-H68&3<_=S=S3T/
*11,{2WX 4UH#!#56$3H:">)A
 

  2P >>>**e  **d  ] 877 877sR   A"K#%J;*/K#AK$AK#B!K##BK#3K#6K#;K		K#K 		K#N)rK   get_background_styleget_style_for_tokenr0   	TextTokenr   r   r   Functionr   r   r-   r   Constant	Delimiterr   r*   r'   r    reversedr   r   )r   rG   r,  rK   token_stylerD   r  rJ  rK  rL  rM  s   ff&    @@@@r9   __rich_console__Traceback.__rich_console__[  s     

 557//+i0U!3 ";v#6 $[%?	
 ";v#6 {73eoE K/ k)4u$7GG {62 !+g.>.>"? ";w/?/?#@ [)9)9: F,<,< = H 5 [.  $[%?%D/%Q!$ '
, &'	A	 A	 
A	F %Xdjj.?.?%@AKDu++ Bs   GGc                &   < V ^8  d   QhRS[ RS[/# )r3   r   r6   )r   r&   )r8   r   s   "r9   r:   r     s          ,  r;   c              #  t  "   \        4       p\        4       pVP                  R 8w  dx   \        P                  P                  VP                  4      '       dI   \        P                  ! RVP                   2R3R\        VP                  4      R3RR7      pV! V4      x  V! VP                  P                  4       4      pRVn        \        VP                  ^,
          \        V4      4      pVP!                  RWf4       V\        P"                  ! RRV,          ,           R	,           RR7      ,          pVx  R
# 5i)z<stdin> r/  r.  r1  r9  Tzbold underline
u   [traceback.offset]▲[/]N:r.  )r*   r   r   r   r   existsr   rA  rV   r   r   rstripno_wrapminr   lenstylizerC  )r   r   rK  path_highlighterr   syntax_error_textr   s   &&     r9   r@  Traceback._render_syntax_error  s    %'*,  I-ww~~l3344}}../02CD*,,-/@A)	 't,,'(9(9(@(@(BC$(!\((1,c2C.DE!!"2FCT--3<"<<!
 	
  s   AD8C!D8c                ,   < V ^8  d   QhRS[ RS[ RS[ /# )r3   r   coder6   )rV   )r8   r   s   "r9   r:   r     s"      C s s r;   c                   \         P                  P                  V4      R,          pV'       gN   VP                  R4      pVR8w  d   VRV MTpVP	                  R4      '       d   RVP                  4       9   d   R#  V P                  P                  V4      ;'       g    \        W4      P                  #   \         d     R# i ; i)r=  r]  Nz#!r   r   r=   )r   r   splitextindexr   lowerLEXERSr|   r   r   r   )r   r   rj  extnew_line_index
first_lines   &&&   r9   _guess_lexerTraceback._guess_lexer  s    ggx(, "ZZ-N2@B2Fo~.DJ$$T**x:;K;K;M/M	::>>#&WW*B8*R*W*WW 		s   =!B5 B5 5CCc                &   < V ^8  d   QhRS[ RS[/# )r3   r  r6   )r   r&   )r8   r   s   "r9   r:   r     s     } }5 }\ }r;   c              #    a a"   \        4       pS P                  pR  V 3R llpRpS P                  ^ 8w  dI   \        S P                  ^,          \	        VP
                  4      S P                  ^,          ,
          4      pRp\        VP
                  4       EF  w  rxV'       d   Wu9   d   RpK  V'       d&   Vf   Q h\        R\	        V4       R2RRR	7      x  RpV^ 8H  p	VP                  o\        ;QJ d)    V3R
 lS P                   4       F  '       g   K   RM	  RM! V3R
 lS P                   4       4      p
\        P                  P                  VP                  4      '       dZ   \        P                  ! V! \        VP                  RR7      4      R\        VP                   4      R3RVP"                  R3RR7      pM<\        P                  ! RVP"                  R3R\        VP                   4      R3RR7      pVP                  P%                  R4      '       g   V	'       g   Rx  Vx  VP                  P%                  R4      '       d   V! V4       Rj  xL
  EK  V
'       d   EK   \&        P(                  ! VP                  4      pRP+                  V4      pV'       g   EK  S P-                  VP                  V4      p\/        VVVRVP                   S P0                  ,
          VP                   S P0                  ,           3VP                   0S P2                  S P4                  S P6                  RR7
      pRx  VP8                  e   VP8                  w  pp\;        VV4       F  w  ppp V^ 8X  d:   VV^,
          ,          p\	        V4      \	        VP=                  4       4      ,
          pVR8X  d   \	        VV^,
          ,          4      pTPA                  RTT3TT3R7       K  	  VPB                  '       d   \E        V.V! V4      O^R7      MTx  EK  	  R#  EL  \>         d     K  i ; i  \F         d*   p\        P                  ! RT 2R34      x   Rp?EK  Rp?ii ; i5i)c                F    V ^8  d   QhR\         R\        \        ,          /# )r3   r(  r6   )r   r   r$   )r8   s   "r9   r:   -Traceback._render_stack.<locals>.__annotate__  s      	 	 	84E+F 	r;   c              3      <"   V P                   '       d=   \        V P                   R SP                  SP                  SP                  R7      x  R# R# 5i)r   )r8  rR   r   r   N)r   r,   rR   rN   rO   )r(  r   s   &r9   render_locals.Traceback._render_stack.<locals>.render_locals  sF     |||"LL""&"4"4#55#55  s   AANFTz
... z frames hidden ...centerztraceback.error)justifyr9  c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5iNr   ).0r   frame_filenames   & r9   	<genexpr>*Traceback._render_stack.<locals>.<genexpr>  s     W^66t<<s   !r/  r\  r.  r1  z in r0  zin r   r   )rK   line_numbers
line_rangehighlight_linesrL   rI   rR   dedentztraceback.error_range)r9  r4   r5   )r<  r]  r^  r=   )$r   rK   rT   r>   rd  r   rB  r   r   anyrS   r   r   r`  rA  rV   r   r   r   	linecachegetlinesr  rs  r.   rJ   rL   rI   rR   r   rF   lstrip
IndexErrorstylize_ranger   r!   r   )r   r  rf  rK   rz  exclude_framesexcludedframe_indexr(  rC   
suppressedr   
code_linesrj  
lexer_namesyntaxr4   r5   r?   r@   rB   r   errorr  s   f&                     @r9   r>  Traceback._render_stack  s    *,

	 	 +/??a"1$ELL!DOOq$88N
 "+ELL"9K+"?%111S011CD$+ 
 !1$E"^^NWWWWWJww~~enn--}}$T%..@Q%RS*&(9:ZZ!45) }}ZZ!45*&(9:) >>,,S11%J~~((--(///:=!*!3!3ENN!CJ77:.D !!%!2!25>>4!HJ#"#%)!LL4+;+;;!LL4+;+;;$ */"&..#'??&*&8&8$F H --9%*%;%;
s 8J%QT7U3E7G	)#*a<+5eai+@D.1$i#dkkm:L.LG#*b=.1*UQY2G.HG #00&=',g&6%*G$4 1  8V2 !<<<   &!.u!5 %& $
{ #:N 0X $. ) !))# ! --eW'89  s   B1Q-6A Q-7Q-AQ-)B5Q-Q-'(Q-Q-P!Q-/8P6(Q-+BP60Q-2A P$-Q- "Q-$P3/Q-2P33Q-6Q*Q%Q-%Q**Q-)rI   rJ   rR   rP   rQ   rN   rO   rT   rM   rS   rK   r   rH   rL   r  rq   )r   r   r   r   __doc__ro  LOCALS_MAX_LENGTHLOCALS_MAX_STRINGr   classmethodrb   r   rW  r'   r@  rs  r>  r   r   r   s   @r9   ra   ra      s#    . 	FxF3F  #	3F
 %'3F 3F  $3F  3F "3F "33F "33F $(3F $)3F #3F 683F  !3F 3Fj F
  #F
 %'F
 F
  $F
  F
 "F
 "3F
 "3F
 $(F
 $)F
  #!F
" 68#F
$ %F
 F
 F
P | "| "3| "3| $(| $)| =A| | ||d, d,L W   ,   W} }r;   ra   __main__r   c                (    V ^8  d   QhR\         RR/# r3   ar6   Nrj   )r8   s   "r9   r:   r:   m  s      	r;   c                 ,    ^p\        W,          4       R# )r=  N)rc   )r  ones   & r9   barr  m  s     cgr;   c                (    V ^8  d   QhR\         RR/# r  rj   )r8   s   "r9   r:   r:   s  s      s t r;   c                 0    R pR0 RmRR/p\        V 4       R# )T
charactersatomic_typesN>   Duncan IdahoThufir HawatPaul AtreidesVladimir Harkonnen)NFT)r  )r  r   zeds   &  r9   foor  s  s(     $  /
 	Ar;   c                    V ^8  d   QhRR/# )r3   r6   Nrq   )r8   s   "r9   r:   r:     s      4 r;   c                      \        ^ 4       R# )r   N)r  rq   r;   r9   r  r    s	    Ar;   rq   )Wr  r  r   r   dataclassesr   r   	itertoolsr   r^   r   typesr   r   typingr	   r
   r   r   r   r   r   r   r   r   r   pip._vendor.pygments.lexersr   pip._vendor.pygments.tokenr   r   r   r   r   r   r   rQ  r   pip._vendor.pygments.utilr   r   r   _loopr   r    columnsr!   rG   r"   r#   r$   r%   r&   r'   	constrainr(   rK  r)   r*   panelr+   scoper,   r9  r-   r  r.   r/   r   rK   r0   platformWINDOWSr  r  rF   r   r   r   r   r   r   ra   r   r  r  r  rq   r;   r9   <module>r     s     	 
 (   +    A W W 8 , 3  -   ! :    *  
,,'
!  %8@!%@ @ !#	@
 @  @ @ @ /@ /@  $@ *.@ @ 24@ @F O O O 3 3 3 < < <   /& /g	 g	T z 
G5 r;   