shell bypass 403

GrazzMean-Shell Shell

Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 18.117.142.64
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : traceback.cpython-313.pyc
�

1}g����@�SrSSKrSSKrSSKrSSKrSSKrSSKrSSKJ	r	 SSK
r
SSK
Jr /SQrS>Sjr
SrS?SjrS>S	jrS>S
jrSrSr"S
S5r\"5rSr\\SSS4Sjr\"5rSr\\SS4Sjr\4SS.SjjrSSS.Sjr\4SjrS@Sjr SASjr!S@Sjr"SBSjr#S?Sjr$S?Sjr%S r&"S!S"5r'S#r(S$r)S%r*S&r+S'r,"S(S)\-5r.S*r/\R`"S+/S,QS-S./S/9r1S0r2S1r3S>S2jr4"S3S45r5"S5S65r6S7r7S8r8S9r9S:r:S;r;S<r<S=r=g)Cz@Extract, format and print information about Python stack traces.�N)�suppress)�
ANSIColors)�
extract_stack�
extract_tb�format_exception�format_exception_only�format_list�format_stack�	format_tb�	print_exc�
format_exc�print_exception�
print_last�print_stack�print_tb�clear_frames�FrameSummary�StackSummary�TracebackException�
walk_stack�walk_tbc��Uc[Rn[RU5R	5H
n[X!SS9 M g)zuPrint the list of tuples as returned by extract_tb() or
extract_stack() as a formatted stack trace to the given file.N���file�end)�sys�stderrr�	from_list�format�print)�extracted_listr�items   �0/opt/alt/python313/lib64/python3.13/traceback.py�
print_listr%s;���|��z�z���&�&�~�6�=�=�?��
�d�2�&�@�c�H�[RU5R5$)a�Format a list of tuples or FrameSummary objects for printing.

Given a list of tuples or FrameSummary objects as returned by
extract_tb() or extract_stack(), return a list of strings ready
for printing.

Each string in the resulting list corresponds to the item with the
same index in the argument list.  Each string ends in a newline;
the strings may contain internal newlines as well, for those items
whose source text line is not None.
)rrr )r"s r$r	r	!s���!�!�.�1�8�8�:�:r&c�&�[[XS9US9 g)aPrint up to 'limit' stack trace entries from the traceback 'tb'.

If 'limit' is omitted or None, all entries are printed.  If 'file'
is omitted or None, the output goes to sys.stderr; otherwise
'file' should be an open file or file-like object with a write()
method.
��limit�rN)r%r)�tbr*rs   r$rr3s���z�"�*��6r&c�0�[XS9R5$)z5A shorthand for 'format_list(extract_tb(tb, limit))'.r))rr �r,r*s  r$rr=s���b�&�-�-�/�/r&c�<�[R[U5US9$)a�
Return a StackSummary object representing a list of
pre-processed entries from traceback.

This is useful for alternate formatting of stack traces.  If
'limit' is omitted or None, all entries are extracted.  A
pre-processed stack trace entry is a FrameSummary object
containing attributes filename, lineno, name, and line
representing the information that is usually printed for a stack
trace.  The line is a string with leading and trailing
whitespace stripped; if the source is not available it is None.
r))r� _extract_from_extended_frame_gen�_walk_tb_with_full_positionsr.s  r$rrAs&���8�8�$�R�(��9�7�7r&zG
The above exception was the direct cause of the following exception:

zF
During handling of the above exception, another exception occurred:

c��\rSrSrSrSrg)�	_Sentinel�^c��g)Nz
<implicit>���selfs r$�__repr__�_Sentinel.__repr___s��r&r6N)�__name__�
__module__�__qualname__�__firstlineno__r9�__static_attributes__r6r&r$r3r3^s��r&r3c��U[LU[L:wa[S5eXs=La	[LaMO X4$UbD[U[5(a
XR4$[S[
U5RS35egX4$)Nz-Both or neither of value and tb must be givenzException expected for value, z found�NN)�	_sentinel�
ValueError�
isinstance�
BaseException�
__traceback__�	TypeError�typer;)�exc�valuer,s   r$�_parse_value_tbrKds���
����i��0��H�I�I���i���9���?��#�}�-�-��-�-�-�-��<�#�C�y�1�1�2�&�:�;�
;���9�r&Tc��URSS5n[XU5up[[U5XUSS9nUR	XEUS9 g)a�Print exception up to 'limit' stack trace entries from 'tb' to 'file'.

This differs from print_tb() in the following ways: (1) if
traceback is not None, it prints a header "Traceback (most recent
call last):"; (2) it prints the exception type and value after the
stack trace; (3) if type is SyntaxError and value has the
appropriate format, it prints the line where the syntax error
occurred with a caret on the next line indicating the approximate
position of the error.
�colorizeFT�r*�compact)r�chainrMN)�getrKrrHr!)	rIrJr,r*rrP�kwargsrM�tes	         r$rrssF���z�z�*�e�,�H���B�/�I�E�	�D��K��%��	N�B��H�H�$�h�H�7r&c��[Rb[RO[Rn[R"5n[U[XS9$)N)r*rrM)rr�
__stderr__�	_colorize�can_colorizer�BUILTIN_EXCEPTION_LIMIT)rIrrMs   r$�_print_exception_bltinrY�s8�����/�3�:�:�S�^�^�D��%�%�'�H��3�&=�D�\�\r&c��URSS5n[XU5up[[U5XUSS9n[	URXFS95$)abFormat a stack trace and the exception information.

The arguments have the same meaning as the corresponding arguments
to print_exception().  The return value is a list of strings, each
ending in a newline and some containing internal newlines.  When
these lines are concatenated and printed, exactly the same text is
printed as does print_exception().
rMFTrN�rPrM)rQrKrrH�listr )rIrJr,r*rPrRrMrSs        r$rr�sL���z�z�*�e�,�H���B�/�I�E�	�D��K��%��	N�B���	�	��	�9�:�:r&F)�
show_groupc��URSS5nU[LaUn[[U5USSS9n[	URX$S95$)akFormat the exception part of a traceback.

The return value is a list of strings, each ending in a newline.

The list contains the exception's message, which is
normally a single string; however, for :exc:`SyntaxError` exceptions, it
contains several lines that (when printed) display detailed information
about where the syntax error occurred. Following the message, the list
contains the exception's ``__notes__``.

When *show_group* is ``True``, and the exception is an instance of
:exc:`BaseExceptionGroup`, the nested exceptions are included as
well, recursively, with indentation relative to their nesting depth.
rMFNT)rO)r]rM)rQrBrrHr\r)rIrJr]rRrMrSs      r$rr�sN���z�z�*�e�,�H��	����	�D��K���d�	C�B���(�(�J�(�R�S�Sr&��insert_final_newlinerMc�t�[US5nU(aSOSnU(a~UbU(d([RU[RU3nU$[RU[RS[RU[RU3nU$UbU(dUU3nU$USUU3nU$)N�	exception�
rz: )�_safe_stringr�BOLD_MAGENTA�RESET�MAGENTA)�etyperJr`rM�valuestr�end_char�lines       r$�_format_final_exc_linerl�s����E�;�/�H�+�t��H���=�� �-�-�.�u�g�j�6F�6F�5G��z�R�D��K�
!�-�-�.�u�g�j�6F�6F�5G�r�*�J\�J\�I]�^f�]g�hr�hx�hx�gy�{C�zD�E�D��K�	�=���W�X�J�'�D��K��W�B�x�j��
�3�D��Kr&c�H�U"U5$! SUSURS3s$=f)N�<� z
() failed>)r;)rJ�what�funcs   r$rdrd�s1��4��E�{���4��4�&��$�-�-��
�3�3�s�
�!c�@�[[R"5XUS9 g)zEShorthand for 'print_exception(sys.exception(), limit, file, chain)'.�r*rrPN)rrrbrss   r$rr�s���C�M�M�O�5�5�Ir&c�Z�SR[[R"5XS95$)z%Like print_exc() but return a string.r�r*rP)�joinrrrbrus  r$r
r
�s��
�7�7�#�C�M�M�O�5�N�O�Or&c�B�[[S5(d [[S5(d[S5e[[S5(a[[RXU5 g[[R
[R[RXU5 g)zLThis is a shorthand for 'print_exception(sys.last_exc, limit, file, chain)'.�last_exc�	last_typezno last exceptionN)�hasattrrrCrrxry�
last_value�last_tracebackrss   r$rr�se���3�
�#�#�G�C��,E�,E��,�-�-��s�J�������e�5�9���
�
�s�~�~�s�7I�7I��U�	,r&c�j�Uc[R"5Rn[[	XS9US9 g)z�Print a stack trace from its invocation point.

The optional 'f' argument can be used to specify an alternate
stack frame at which to start. The optional 'limit' and 'file'
arguments have the same meaning as for print_exception().
Nr)r+)r�	_getframe�f_backr%r)�fr*rs   r$rr�s)��	�y��M�M�O�"�"���}�Q�,�4�8r&c�j�Uc[R"5Rn[[	XS95$)z5Shorthand for 'format_list(extract_stack(f, limit))'.r))rr~rr	r)r�r*s  r$r
r
�s(���y��M�M�O�"�"���}�Q�4�5�5r&c��Uc[R"5Rn[R	[U5US9nUR
5 U$)a[Extract the raw traceback from the current stack frame.

The return value has the same format as for extract_tb().  The
optional 'f' and 'limit' arguments have the same meaning as for
print_stack().  Each item in the list is a quadruple (filename,
line number, function name, text), and the entries are in order
from oldest to newest stack frame.
r))rr~rr�extractr�reverse)r�r*�stacks   r$rr�sA��	�y��M�M�O�"�"��� � ��A��e� �<�E�	�M�M�O��Lr&c��Ub-URR5 URnUbM,gg![a Nf=f)zEClear all references to local variables in the frames of a traceback.N)�tb_frame�clear�RuntimeError�tb_next�r,s r$rr	sB��
�.�	��K�K�����Z�Z��

�.���	��	�s�2�
?�?c��\rSrSrSrSrSSSSSSS.SjrSrS	rS
r	Sr
SrS
r\
S5r\
S5r\
S5rSrg)riaInformation about a single frame from a traceback.

- :attr:`filename` The filename for the frame.
- :attr:`lineno` The line within filename for the frame that was
  active when the frame was captured.
- :attr:`name` The name of the function or method that was executing
  when the frame was captured.
- :attr:`line` The text from the linecache module for the
  of code that was running when the frame was captured.
- :attr:`locals` Either None if locals were not supplied, or a dict
  mapping the name to the repr() of the variable.
)	�filename�lineno�
end_lineno�colno�	end_colno�name�_lines�_lines_dedented�localsTN)�lookup_liner�rkr�r�r�c�2�XlX lUcUOUUlX�lX�lX0lX`lSUlU(aUR U(a9UR5V
Vs0sHup�U
[US[S9_M snn
UlgSUlgs snn
f)acConstruct a FrameSummary.

:param lookup_line: If True, `linecache` is consulted for the source
    code line. Otherwise, the line will be looked up when first needed.
:param locals: If supplied the frame locals, which will be captured as
    object representations.
:param line: If provided, use this instead of looking up the line in
    the linecache.
N�local�rq)
r�r�r�r�r�r�r�r�rk�itemsrd�reprr�)r8r�r�r�r�r�rkr�r�r��k�vs            r$�__init__�FrameSummary.__init__%s���!�
���$.�$6�&�J����
�"���	���#�����I�I�+1�����(�&����,�q�'��=�=�&�(���7;�	
���(s�%Bc��[U[5(ayURUR:H=(aY URUR:H=(a9 URUR:H=(a UR
UR
:H$[U[5(a1URURURUR4U:H$[$�N)	rDrr�r�r�r��tuplerk�NotImplemented�r8�others  r$�__eq__�FrameSummary.__eq__>s����e�\�*�*��M�M�U�^�^�3�0��K�K�5�<�<�/�0��I�I����+�0��K�K�5�<�<�/�
1��e�U�#�#��M�M�4�;�;��	�	�4�9�9�E��N�N��r&c�d�URURURUR4U$r�)r�r�r�rk)r8�poss  r$�__getitem__�FrameSummary.__getitem__Hs&���
�
�t�{�{�D�I�I�t�y�y�A�#�F�Fr&c�p�[URURURUR/5$r�)�iterr�r�r�rkr7s r$�__iter__�FrameSummary.__iter__Ks&���T�]�]�D�K�K����D�I�I�F�G�Gr&c�`�SRURURURS9$)Nz7<FrameSummary file {filename}, line {lineno} in {name}>)r�r�r�)r r�r�r�r7s r$r9�FrameSummary.__repr__Ns0��H�O�O��]�]�4�;�;�T�Y�Y�P�H�	Hr&c��g)N�r6r7s r$�__len__�FrameSummary.__len__Rs��r&c�^�URc�URb�URb�/n[URURS-5HAnUR	[
R"URU5R55 MC SRU5S-Ulgggg)N�rc)
r�r�r��range�append�	linecache�getliner��rstriprv)r8�linesr�s   r$�
_set_lines�FrameSummary._set_linesUs����K�K�����'����+��E�����T�_�_�q�-@�A�����Y�.�.�t�}�}�f�E�L�L�N�O�B��)�)�E�*�T�1�D�K�
,�(�
 r&c�:�UR5 UR$r�)r�r�r7s r$�_original_lines�FrameSummary._original_linesas��	
�����{�{�r&c��UR5 URc2URb%[R"UR5UlUR$r�)r�r�r��textwrap�dedentr7s r$�_dedented_lines�FrameSummary._dedented_linesgsD��	
�������'�D�K�K�,C�#+�?�?�4�;�;�#?�D� ��#�#�#r&c��UR5 URcgURRS5SR5$)Nrcr)r�r��	partition�stripr7s r$rk�FrameSummary.lineos<�������;�;����{�{�$�$�T�*�1�-�3�3�5�5r&)	r�r�r�r�r�r�r�r�r�)r;r<r=r>�__doc__�	__slots__r�r�r�r�r9r�r��propertyr�r�rkr?r6r&r$rrs����@�I�?C��d��4�4�<�2�G�H�H��
2�����
�$��$��6��6r&rc#��# �Uc=[R"5RRRRnUb!XR4v� URnUbM gg7f)z�Walk a stack yielding the frame and line number for each frame.

This will follow f.f_back from the given frame. If no frame is given, the
current stack is used. Usually used with StackSummary.extract.
N)rr~r�f_lineno)r�s r$rrxsP���	�y��M�M�O�"�"�)�)�0�0�7�7��
�-����m��
�H�H���-�s�A"A(�&A(c#�j# �Ub,URUR4v� URnUbM+gg7f)z�Walk a traceback yielding the frame and line number for each frame.

This will follow tb.tb_next (and thus is in the opposite order to
walk_stack). Usually used with StackSummary.extract.
N)r��	tb_linenor�r�s r$rr�s/���
�.��k�k�2�<�<�'�'�
�Z�Z��
�.�s�-3�3c#�# �Ubt[URRUR5nUSc"URUR4USS-4v� OURU4v� UR
nUbMsgg7f�Nrr�)�_get_code_positionr��f_code�tb_lastir�r�)r,�	positionss  r$r1r1�sr���
�.�&�r�{�{�'9�'9�2�;�;�G�	��Q�<���+�+����/�)�A�B�-�?�?�?��+�+�y�(�(�
�Z�Z��
�.�s�A5A;�9A;c�v�US:agUR5n[[R"X!S-S55$)Nr)NNNN�)�co_positions�next�	itertools�islice)�code�instruction_index�
positions_gens   r$r�r��s8���1��'��%�%�'�M��	� � ��Q�0F��M�N�Nr&�c�r�\rSrSrSr\SSSS.Sj5r\SSSS.Sj5r\S	5rS
r	Sr
SrS
rg)ri�z?A list of FrameSummary objects, representing a stack of frames.NTF�r*�lookup_lines�capture_localsc�<^�U4SjnURU"5X#US9$)aCreate a StackSummary from a traceback or stack object.

:param frame_gen: A generator that yields (frame, lineno) tuples
    whose summaries are to be included in the stack.
:param limit: None to include all frames or the number of frames to
    include.
:param lookup_lines: If True, lookup lines for each frame immediately,
    otherwise lookup is deferred until the frame is rendered.
:param capture_locals: If True, the local variables from each frame will
    be captured as object representations into the FrameSummary.
c3�6># �THupXSSS44v� M g7fr�r6)r�r��	frame_gens  �r$�extended_frame_gen�0StackSummary.extract.<locals>.extended_frame_gen�s$����&�	���$��d�3�3�3�'�s�r�)r0)�klassr�r*r�r�r�s `    r$r��StackSummary.extract�s-���	4��5�5�� ��)�6�+�	+r&c���U[LnUbU(a[[SS5nUbUS:aSnUbVU(a[U5nU[	U5U-
SnO2US:�a[
R"X5nO[R"X*S9nU"5n[5nUH�unup�p�URn
U
RnU
RnURU5 [R"X�R 5 U(a
UR"nOSnUR%['X�USUX�US95 M� UHn[R("U5 M U(aUHnUR* M U$)N�tracebacklimitr)�maxlenF)r�r�r�r�r�)rX�getattrrr��lenr�r��collections�deque�setr��co_filename�co_name�addr��	lazycache�	f_globals�f_localsr�r�
checkcacherk)r�r�r*r�r��
builtin_limit�result�fnamesr�r�r�r�r��cor�r�r�s                 r$r0�-StackSummary._extract_from_extended_frame_gen�sM���!8�8�
��=�M��C�!1�4�8�E�� �U�Q�Y������!�)�,�	�%�c�)�n�u�&<�&=�>�	��!��%�,�,�Y�>�	�'�-�-�i��G�	�������9B�5�A�5��E����B��~�~�H��:�:�D��J�J�x� �����+�+�6���:�:�����M�M�,��$�E�(�%�i�I�
J�:C��H�� � ��*����������
r&c
��[5nUHIn[U[5(aURU5 M+UupEpgUR[XEXgS95 MK U$)zh
Create a StackSummary object from a supplied list of
FrameSummary objects or old-style list of tuples.
�rk)rrDrr�)r��a_listr��framer�r�r�rks        r$r�StackSummary.from_list�sR������E��%��.�.��
�
�e�$�/4�,��$��
�
�l�8�T�M�N���
r&c
��
^^^^^^^^^^^�URSS5m/nURnURRS5(aSnT(a�URSR	[
RU[
R[
RUR[
R[
RUR[
R5	5 O5URSR	XARUR55 UR(Ga�URR5(Ga�URb
URc5UR[R"UR S5S	-5 GOWUR"R%5nUS
nXQR&UR-
n[)XaR5n[)XqR5n	URR%5SUR&UR-
S-m[+U5[+TS
5-
n
[-S
X�-
5n[-S
X�-
5n	[/TS
US9m[/TS
U	S9mS	R1T5nX�[+U5[+TS
5U	-
-
nSmSm[3[45 [7U5mSSS5 UR9X�TT5m/mS
[+T5S-
1nS
mS
mSmSmT(a�TR:mTR<mTR>S
:XaTU-
mTR@S
:XaTU-
m[/TTR>TS9m[/TTR@TS9mTRBmTRDmURG[ITR>S-
TR>S-55 URG[ITR@S-
TR@S-55 URKS
5 URK[+T55 UUUUUUUUUUU4Sjn
[MU5n[OU5HOunnU(a:UX�S-
-
nUS:XaU
"US-
5 OUS:�aTRSUS-
S35 U
"U5 MQ UR[R"[RP"SR1T55SS55 URR(aL[MURRRU55H%unnURSR	UUS95 M' SR1U5$!,(df   GN�=f)z�Format the lines for a single FrameSummary.

Returns a string representing one frame involved in the stack. This
gets called for every frame to be printed in the stack summary.
rMFz<stdin>-z<stdin>z(  File {}"{}"{}, line {}{}{}, in {}{}{}
z  File "{}", line {}, in {}
Nz    rcrr�)�offset����^r�c�>�TRT
US-5 T(dg[T
U5[T
UR55-
n/nU[T
5S-
:XaTO
[T
U5n[	U5H�nXA:dUS:XaUT:aURS5 M'T(a_UTR
:�dUTR
:Xa?UT:�a9UTR:dUTR:XaUT:aURT5 M�URT5 M� T(GaTSn/n/n[R"[R"XRSS9S	S
9GH�up�[U	5n
US:Xa�UR[RSRSU
55-[R-5 UR[RSRS
U
55-[R-5 M�US:Xa�UR[RSRSU
55-[R-5 UR[RSRSU
55-[R-5 GMFURSRSU
555 URSRSU
555 GM� SRU5nSRU5nUTS'TRUS-5 gTRSRU5S-5 g)z*output all_lines[lineno] along with caretsrcNr�rror	r)�	fillvaluec��US$�Nr�r6��xs r$�<lambda>�HStackSummary.format_frame_summary.<locals>.output_line.<locals>.<lambda>�s��@A�BC�@Dr&)�keyr
c3�*# �UH	upUv� M g7fr�r6��.0�char�_s   r$�	<genexpr>�IStackSummary.format_frame_summary.<locals>.output_line.<locals>.<genexpr>�s���Yz�ny�cj�cg�Z^�ny���c3�*# �UH	upUv� M g7fr�r6�rr�carets   r$rr�s���[~�r}�fn�fg�\a�r}�r�~c3�*# �UH	upUv� M g7fr�r6rs   r$rr�s���Tu�it�^e�^b�UY�it�rc3�*# �UH	upUv� M g7fr�r6rs   r$rr�s���Vy�mx�ai�ab�W\�mx�rc3�*# �UH	upUv� M g7fr�r6rs   r$rr�s���Cd�Xc�W�T�D�Xc�rc3�*# �UH	upUv� M g7fr�r6rs   r$rr�s���Eh�\g�PX�PQ�e�\g�r)r�r��lstrip�_display_widthr��left_end_lineno�right_start_linenor��groupby�zip_longestr\r�BOLD_REDrvrf�RED)r��
num_spaces�carets�
num_carets�colrk�colorized_line_parts�colorized_carets_parts�color�group�caret_group�colorized_line�colorized_carets�	all_lines�anchors�anchors_left_end_offset�anchors_right_start_offsetrM�
dp_end_offset�dp_start_offset�primary_charr��secondary_char�show_caretss             �����������r$�output_line�6StackSummary.format_frame_summary.<locals>.output_lineqs����M�M�)�F�"3�d�":�;�&��!$�Y�v�%6�!7�#�i��>O�>V�>V�>X�:Y�!Y�J��F�28�C�	�N�Q�<N�2N��Tb�cl�ms�ct�Tu�J�$�Z�0���+��!���o�@U�"�M�M�#�.�$�"�W�%<�%<�<�#�w�'>�'>�>�3�Ja�Ca�"�W�%?�%?�?�#�w�'A�'A�A�c�Lf�Ff�#�M�M�.�9�"�M�M�,�7� 1� � &�b�z��/1�,�13�.�,5�,=�,=�i�>S�>S�TX�ln�>o�vD�-E�L�E�*.�u�+�K�$��|� 4� ;� ;�J�<O�<O�RT�RY�RY�Yz�ny�Yz�Rz�<z�~H�~N�~N�=N�!O� 6� =� =�j�>Q�>Q�TV�T[�T[�[~�r}�[~�T~�>~�BL�BR�BR�?R�!S�!&�#�� 4� ;� ;�J�N�N�R�W�W�Tu�it�Tu�Mu�<u�yC�yI�yI�=I�!J� 6� =� =�j�n�n�r�w�w�Vy�mx�Vy�Oy�>y�}G�}M�}M�?M�!N� 4� ;� ;�B�G�G�Cd�Xc�Cd�<d� e� 6� =� =�b�g�g�Eh�\g�Eh�>h� i�-E�*,���1E�)F��+-�7�7�3I�+J�(�%3��r�
��
�
�&6��&=�>��
�
�b�g�g�f�o��&<�=r&z...<z lines>...
rc��g�NTr6rs r$r�3StackSummary.format_frame_summary.<locals>.<lambda>�s��[_r&z    {name} = {value}
)r�rJ)+rQr��
startswithr�r rrgrfr�r�r�r�r�r�r��indentrkr��
splitlinesr�� _byte_offset_to_character_offsetr��maxr%rvr�	Exception�(_extract_caret_anchors_from_line_segment�_should_show_carets�left_end_offset�right_start_offsetr&r'r=r>�updater��discard�sorted�	enumerater�r�r�)r8�
frame_summaryrR�rowr��all_lines_original�
first_line�	last_line�start_offset�
end_offset�dedent_characters�segment�significant_linesr@�sig_lines_list�ir��linediffr�rJr7r8r9r:rMr;r<r=r�r>r?s                    @@@@@@@@@@@r$�format_frame_summary�!StackSummary.format_frame_summarys������:�:�j�%�0���� �)�)���!�!�,�,�Z�8�8� �H���J�J�B�I�I��&�&���$�$��&�&�!�(�(��$�$��&�&�!�&�&��$�$�
�
�
�J�J�6�=�=��.�.�
�0B�0B�D�
E��(�(�(�]�-J�-J�-P�-P�-R�-R��#�#�+��'�'�/��
�
�8�?�?�=�+=�+=�v�F��M�N�&3�%B�%B�%M�%M�%O�"�/��2�
�.�/G�/G�-�J^�J^�/^�_�	� @�
�L_�L_�`��=�i�I`�I`�a�
�)�9�9�D�D�F�H�]�-�-�
�0D�0D�D�q�H��	�
%(�
�O�c�)�A�,�6G�$G�!�"�1�l�&F�G�� ��J�$B�C�
�
#1��1��l�"S�� .�y��}�Z� P�
��)�)�I�.��!�s�7�|�s�9�R�=�?Q�T^�?^�/_�`����#���i�(�F�w�O�G�)�"�6�6�|�QZ�\c�d����&'��I���(:�$;�!�*+�'�-.�*�"��!$���.5�.E�.E�+�18�1K�1K�.��.�.�!�3�/�<�?�/��1�1�Q�6�2�l�B�2�/=�!�'�"9�"9�:�CZ�/�+�2@�!�'�"<�"<�=�F`�2�.�$+�#7�#7�L�%,�%;�%;�N�%�,�,��g�5�5��9�7�;R�;R�UV�;V�W��&�,�,��g�8�8�1�<�g�>X�>X�[\�>\�]��
"�)�)�"�-�!�)�)�#�i�.�9�0>�0>�f"(�(9�!:��!*�>�!:�I�A�v��#)�N�q�5�,A�#A��#�q�=�'���
�3�%��\�"�M�M�D��A���l�*K�L���'�";��
�
��O�O�H�O�O�B�G�G�F�O�$D�f�N_�`�����%�m�&:�&:�&@�&@�&B�C���e��
�
�3�:�:��E�:�R�S� D��w�w�s�|��e)�(�s�
U!�!
U0c�v^^^�[[[5 SSKnUR	SRT55nUR(d
SSS5 gURSnSnUUU4Sjn	U=URS`=bQuURS`=b?u [URRUR5(a�URnOt URS`=bbuURS`=bPu[UR5S:Xa6[URSUR5(aURnO UbU	"U5(a
SSS5 gSSS5 U(agTSSTR!5(dTS	TSR#5(agg!,(df   NN=f)
NrrcFc�>�URS:H=(aD UR[T5:H=(a% URT:H=(a URT:H$r)r�r�r��
col_offset�end_col_offset)rJr7rYrXs ���r$�_spawns_full_line�;StackSummary._should_show_carets.<locals>._spawns_full_line�sS����L�L�A�%�;��(�(�C�	�N�:�;��(�(�L�8�;��,�,�
�:�	r&)rJr6r�Tr	)r�SyntaxError�ImportError�ast�parserv�body�Return�CallrDrJrq�Name�Assignr��targetsr$r�)
r8rXrYr7r8rj�tree�	statementrJrfs
 ```      r$rL� StackSummary._should_show_carets�sS���
�k�;�
/���9�9�T�Y�Y�y�1�2�D��9�9��	0�
/�
�	�	�!��I��E�
��1�S�Z�Z�1�c�h�h�j�1�!�)�/�/�"6�"6����A�A� )����2��Z�Z�1�c�h�h�j��I�-�-�.�!�3�"�9�#4�#4�Q�#7����B�B� )����2�� �%6�u�%=�%=��30�
/�
/�4���Q�<�
��&�-�-�/�/�9�R�=���3M�3T�3T�3V�3V���=0�
/�s%�7F*�A-F*�A	F*�&F*�:F*�*
F8c�@�URSS5n/nSnSnSnSnUH�nURX�S9n	U	cMUb3XHR:wd$Ub!XXR:wdUbXhR:waYU[
:�a)U[
-nUR
SUSUS:�aS	OS
S35 URnURnURnSnUS-
nU[
:�aM�UR
U	5 M� U[
:�a)U[
-nUR
SUSUS:�aS	OS
S35 U$)a�Format the stack ready for printing.

Returns a list of strings ready for printing.  Each string in the
resulting list corresponds to a single frame from the stack.
Each string ends in a newline; the strings may contain internal
newlines as well, for those items with source text lines.

For long sequences of the same frame and line, the first few
repetitions are shown, followed by a summary line stating the exact
number of further repetitions.
rMFNr�rMz  [Previous line repeated z
 more timer��srz]
)rQr`r�r�r��_RECURSIVE_CUTOFFr�)
r8rRrMr��	last_filerW�	last_name�countrS�formatted_frames
          r$r �StackSummary.format�sZ���:�:�j�%�0�����	��	��	���!�M�"�7�7�
�7�Y�O��&���!�Y�2H�2H�%H��!�Y�2F�2F�%F��!�Y�2D�2D�%D��,�,��.�.�E��M�M�4�U�G�<�&+�a�i�s�R�8��=��*�2�2�	�)�0�0�	�)�.�.�	����Q�J�E��(�(���M�M�/�*�)"�,�$�$��&�&�E��M�M�,�U�G�4�#�a�i�s�R�0��5�
��
r&r6)
r;r<r=r>r��classmethodr�r0rr`rLr r?r6r&r$rr�sb��I��+/�d� �+��+�*�DH��e�+��+�Z����$u�n�B.r&rc�\�URS5n[USURSSS95$)Nzutf-8�replace)�errors)�encoder��decode)�strr�as_utf8s   r$rHrHs2���j�j��!�G��w�w���&�&�w�y�&�A�B�Br&�_Anchors)r&rMr'rNr=r>rr
)�defaultsc�&^^^^^�SSKnURSUS35n[UR5S:wagUR5mU4SjmU4SjmU4SjmU4S	jmUUU4S
jnSUU4SjjnURSnUURS`=GbmunU=URS`=b�u U"UR5upxU"XxS
5upxUS-n	U	[TU5:a}URRS-
U:�d8U	T"URRS-
URR5:a(TUU	=n
R5(dU
S;aU	S-
n	[XxXy5$ =URS`=b8u U"UR5up�U"X�S5up�U"USS9up�[X�X�5$ UR S`=b7uU"UR"5up�U"X�S5up�U"USS9up�[X�X�5$ g g![a gf=f)z�
Given source code `segment` corresponding to a FrameSummary, determine:
    - for binary ops, the location of the binary op
    - for indexing and function calls, the location of the brackets.
`segment` is expected to be a valid Python expression.
rNz(
z
)r�c�">�[TUU5$)z%Get character index given byte offset)rH)r�rr�s  �r$�	normalize�;_extract_caret_anchors_from_line_segment.<locals>.normalizeDs���/��f�
�v�F�Fr&c��>�U[T5:a<U[TU5:�a*SnUS-
nU[T5:aU[TU5:�aM*U[T5:aU[TU5:deX4$)zkGets the next valid character index in `lines`, if
the current location is not valid. Handles empty lines.
rr�)r�)r�r/r�s  �r$�next_valid_char�A_extract_caret_anchors_from_line_segment.<locals>.next_valid_charHsy����s�5�z�!�c�S��v��-?�&?��C��a�K�F��s�5�z�!�c�S��v��-?�&?���E�
�"�s�S��v��-?�'?�?�?��{�r&c�(>�US-
nT"X5upX4$)z.Get the next valid character index in `lines`.r�r6�r�r/r�s  �r$�	increment�;_extract_caret_anchors_from_line_segment.<locals>.incrementRs ����q���%�f�2����{�r&c�,>�SnUS-
nT"X5upX4$)z6Get the next valid character at least on the next linerr�r6r�s  �r$�nextline�:_extract_caret_anchors_from_line_segment.<locals>.nextlineXs%������!���%�f�2����{�r&c�t>�TUUnUS;aT"X5upOU"U5(dT"X5upOX4$M7)zIGet the next valid non-"\#" character that satisfies the `stop` predicate�\#r6)r�r/�stop�chr�r�r�s    ���r$�increment_until�A_extract_caret_anchors_from_line_segment.<locals>.increment_until_sP�����v��s�#�B��U�{�&�v�3�����"�X�X�'��4������{��r&c�j>�URS-
nT"X R5nU(aT"X#5$X#4$)z�Get the lineno/col position of the end of `expr`. If `force_valid` is True,
forces the position to be a valid character (e.g. if the position is beyond the
end of the line, move to the next line)
r�)r�re)�expr�force_validr�r/r�r�s    ��r$�setup_positions�A_extract_caret_anchors_from_line_segment.<locals>.setup_positionsks7������1�$���� 3� 3�4��/:��v�+�M��
�Mr&r6c�D�UR5(+=(a US:g$)N�)��isspacers r$r�:_extract_caret_anchors_from_line_segment.<locals>.<lambda>�s��Q�Y�Y�[��Ie�]^�be�]e�Ier&r�r�c��US:H$)N�[r6rs r$rr�����]^�be�]er&F)r�c��US:H$)N�(r6rs r$rr��r�r&)T)rjrkrhr�rlrG�Expr�BinOp�left�rightr�rdr�r��	SubscriptrJrnrq)r[rjrrr�r�rsr�r�r/�	right_colr��left_lineno�left_col�right_linenor�r�r�r�r�s              @@@@@r$rKrKs#�����*�y�y�3�w�i�s�+�,���4�9�9�~������� �E�G����
�	N�	N��	�	�!��I�
�
�X�X�^�^�� �S�Y�Y�[�#2�$�)�)�"<�K�F�#2�&�?e�"f�K�F�!$�a��I�!�C��f�
�$6�6�!�J�J�-�-��1�F�:�%�	�$�*�*�2C�2C�a�2G����I^�I^�(_�_�',�V�}�Y�'?�!?�� H� H� J� J��e�O�!�Q��	�$�F��C�C�3!�4%�S�]�]�_�-<�D�J�J�,G�)�K�,;�K�Se�,f�)�K�.=�d�PU�.V�+�L�#�K�<�S�S�%��X�X�Z�-<�D�I�I�,F�)�K�,;�K�Se�,f�)�K�.=�d�PU�.V�+�L�#�K�<�S�S� ��k�j��c����s�H�
H�H�WFc�^�Uc[U5nUR5(aU$SSKm[U4SjUSU55$)z�Calculate the extra amount of width space the given source
code segment might take if it were to be displayed on a fixed
width output device. Supports wide unicode characters and emojis.Nrc3�^># �UH"nTRU5[;aSOSv� M$ g7f)r�r�N)�east_asian_width�_WIDE_CHAR_SPECIFIERS)rr�unicodedatas  �r$r�!_display_width.<locals>.<genexpr>�s0�����!�D��
)�
)�$�
/�3H�
H��a�O�!�s�*-)r��isasciir��sum)rkrr�s  @r$r%r%�sH���
�~��T����|�|�~�~��
������&�M���r&c�*�\rSrSrSrSrSSjrSrg)�_ExceptionPrintContexti�c�>�[5UlSUlSUlg)NrF)r��seen�exception_group_depth�
need_closer7s r$r��_ExceptionPrintContext.__init__�s���E��	�%&��"���r&c�&�SSUR--$)Nror�)r�r7s r$rF�_ExceptionPrintContext.indent�s���a�$�4�4�4�5�5r&Nc#�# �UcSnUR5nUR(aX2S--
n[U[5(a[R"XS5v� gUHn[R"XCS5v� M g7f)N�|roc��grCr6rs r$r�-_ExceptionPrintContext.emit.<locals>.<lambda>����Tr&c��grCr6rs r$rr��r�r&)rFr�rDr�r�)r8�text_gen�margin_char�
indent_str�texts     r$�emit�_ExceptionPrintContext.emit�sl������K��[�[�]�
��%�%���+�+�J��h��$�$��/�/�(�8I�J�J� ���o�o�d�8I�J�J�!�s�BB)r�r�r�r�)r;r<r=r>r�rFr�r?r6r&r$r�r��s�� �
6�Kr&r�c	��\rSrSrSrSSSSSSSSS.S	jr\S
5r\S5r	\S5r
S
rSrSr
SSS.SjrSrSSS.SjrSSS.SjrSrg)ri�aRAn exception ready for rendering.

The traceback module captures enough attributes from the original exception
to this intermediary form to ensure that no references are held, while
still being able to fully print or format it.

max_group_width and max_group_depth control the formatting of exception
groups. The depth refers to the nesting level of the group, and the width
refers to the size of a single exception group's exceptions array. The
formatted output is truncated when either limit is exceeded.

Use `from_exception` to create TracebackException instances from exception
objects, or the constructor to create TracebackException instances from
individual components.

- :attr:`__cause__` A TracebackException of the original *__cause__*.
- :attr:`__context__` A TracebackException of the original *__context__*.
- :attr:`exceptions` For exception groups - a list of TracebackException
  instances for the nested *exceptions*.  ``None`` for other exceptions.
- :attr:`__suppress_context__` The *__suppress_context__* value from the
  original exception.
- :attr:`stack` A `StackSummary` representing the traceback.
- :attr:`exc_type` (deprecated) The class of the original traceback.
- :attr:`exc_type_str` String display of exc_type
- :attr:`filename` For syntax errors - the filename where the error
  occurred.
- :attr:`lineno` For syntax errors - the linenumber where the error
  occurred.
- :attr:`end_lineno` For syntax errors - the end linenumber where the error
  occurred. Can be `None` if not present.
- :attr:`text` For syntax errors - the text where the error
  occurred.
- :attr:`offset` For syntax errors - the offset into the text where the
  error occurred.
- :attr:`end_offset` For syntax errors - the end offset into the text where
  the error occurred. Can be `None` if not present.
- :attr:`msg` For syntax errors - the compiler error message.
NTF��
)r*r�r�rO�max_group_width�max_group_depth�
save_exc_type�_seenc
��USLnUc
[5nUR[U55 X�lX�l[
R
[U5XEUS9UlU
(aUOSUl	[US5Ul[USS5Ul
SUlUSLUlUb#UR$UlUR(UlOSUlSUlU(a�[-U[.5(a�UR0UlUR2nUb[5U5OSUlUR6nUb[5U5OSUlUR8UlUR:UlUR<UlUR>UlSUlGO@U(a][-U[@5(aH[USS5b:[USS5n[CX#U5nU(aU=RSUS	3-
slO�U(a�[-U[D[F45(a�[US
S5b�[US
S5n[CX#U5nU(aU=RSUS	3-
sl[-U[D5(a^[US
S5nUbNU[HRJ;a:U(aU=RSUS	3-
slOU=RSUS	3-
slU(aURM5 UbURNOSUl'U(GdWX4/nU(GaJURQ5unn
U
(aiU
RRb\[U
RR5U;aC[U[WU
RR5U
RRU
RRRXUUUUU	US
9	nOSnU(a(USL=(a U
SL=(a U
RN(+nOSnU
(apU
RZbcU(a\[U
RZ5U;aC[U[WU
RZ5U
RZU
RZRXUUUUU	US
9	nOSnU
(a`[]U
[^5(aK/nU
R`H8n[U[WU5UURXUUUUU	US
9	nURcU5 M: OSnUUl)UUl-UUl0U(a'URcURRU
RR45 U(a'URcURZU
RZ45 U(a/URe[gUR`U
R`55 U(aGMIggg![a%n
S[U
S[53/Ul
Sn
A
GN�Sn
A
ff=f)Nr�rb�	__notes__z!Ignored error getting __notes__: FT�	name_fromz. Did you mean: 'z'?r�z Or did you forget to import 'z. Did you forget to import ')r*r�r�r�r�r�)4r�r��idr�r�rr0r1r��	_exc_typerd�_strr�r�rJr��_is_syntax_error�_have_exc_typer=�exc_type_qualnamer<�exc_type_module�
issubclassrhr�r�r�r�r�rrY�msgri�_compute_suggestion_error�	NameError�AttributeErrorr�stdlib_module_names�_load_lines�__suppress_context__�pop�	__cause__rrHrF�__context__rD�BaseExceptionGroup�
exceptionsr��extend�zip)r8�exc_type�	exc_value�
exc_tracebackr*r�r�rOr�r�r�r��is_recursive_call�e�lno�end_lno�
wrong_name�
suggestion�queuerS�cause�need_context�contextr�rI�texcs                          r$r��TracebackException.__init__s���"��-���=��E�E�
�	�	�"�Y�-� �.��.��!�B�B�(��7��)�C�+��
�
&3�����!��K�8��	�	Z�$�Y��T�B�D�N�
!&���&�d�2�����%-�%:�%:�D�"�#+�#6�#6�D� �%)�D�"�#'�D� ��
�8�[�9�9�%�.�.�D�M��"�"�C�&)�o�#�c�(�4�D�K��*�*�G�.5�.A�c�'�l�t�D�O�!���D�I�#�*�*�D�K�'�2�2�D�O� �}�}�D�H�$(�D�!�
�*�X�{�;�;��	�;��5�A� ��K��>�J�2�9�Z�X�J���	�	�0���B�?�?�	��
�*�X�	�>�/J�K�K��	�6�4�0�<� ��F�D�9�J�2�9�Z�X�J���	�	�0���B�?�?�	��(�I�.�.�$�Y���=�
��)�j�C�<S�<S�.S�!��	�	�'E�j�\�QS�%T�T�	��	�	�'C�J�<�r�%R�R�	������.7�.C�I�*�*��	
�!�
!��&�'�E���	�	����A��!�+�+�1��1�;�;��u�4�.��Q�[�[�)�������1�1�#�%1�'5�(7�(7�#�	%�E�!�E��$)�T�M�%?�$%�T�M�%?�()�(>�(>�$>�!�$(�L��!�-�-�3�$��A�M�M�):�%�)G�0��Q�]�]�+��
�
��
�
�3�3�#�%1�'5�(7�(7�#�	%�G�#�G���A�'9�:�:�!#�J� �|�|��1� ��I���-�-�"'�)5�+9�,;�,;�"'�	 )��#�)�)�$�/� ,�"&�J�$���!(��� *��
���L�L�"�,�,����!<�=���L�L�"�.�.�!�-�-�!@�A���L�L��R�]�]�A�L�L�!A�B��%�!��g�	Z�3�L��K�QU�4V�3W�X�Z�D�N�N��	Z�s�=U�
V�&V�Vc�B�U"[U5XR/UQ70UD6$)z.Create a TracebackException from an exception.)rHrF)�clsrI�argsrRs    r$�from_exception�!TracebackException.from_exception�s%���4��9�c�#4�#4�F�t�F�v�F�Fr&c�N�[R"S[SS9 UR$)Nz-Deprecated in 3.13. Use exc_type_str instead.r�)�
stacklevel)�warnings�warn�DeprecationWarningr�r7s r$r��TracebackException.exc_type�s ���
�
�E�(�Q�	8��~�~�r&c��UR(dgURnURnUS;a[U[5(dSnUS-U-nU$)N)�__main__�builtinsz	<unknown>�.)r�r�r�rDr�)r8�stype�smods   r$�exc_type_str�TracebackException.exc_type_str�sR���"�"���&�&���#�#���/�/��d�C�(�(�"���3�J��&�E��r&c�B�URHnUR M g)z7Private API. force all lines in the stack to be loaded.N)r�rk)r8rs  r$r��TracebackException._load_lines�s���Z�Z�E��J�J� r&c�j�[U[5(aURUR:H$[$r�)rDr�__dict__r�r�s  r$r��TracebackException.__eq__�s)���e�/�0�0��=�=�E�N�N�2�2��r&c��UR$r�)r�r7s r$�__str__�TracebackException.__str__�s���y�y�r&r)r]�_depthc	+�n# �URSS5nSU-S-nUR(dU[SURUS9-v� gURnUR
(dbUS:�aE[X`RSUS9R
S	5nUVs/sH
nXX-S	-PM snShv�N OA[X`RUS9v� O*URXdS9Vs/sHo�U-PM	 snShv�N [UR[RR5(at[UR[[45(dOURH>n	[U	S
5n	U	R
S	5Vs/sH
o�U-S	-PM snShv�N M@ O:URb-USR![URS["S
95-v� UR$(a7U(a/UR$Hn
U
R'XS-US9Shv�N M  gggs snfGNvs snfGN<s snfN�N"7f)amFormat the exception part of the traceback.

The return value is a generator of strings, each ending in a newline.

Generator yields the exception message.
For :exc:`SyntaxError` exceptions, it
also yields (before the exception message)
several lines that (when printed)
display detailed information about where the syntax error occurred.
Following the message, generator also yields
all the exception's ``__notes__``.

When *show_group* is ``True``, and the exception is an instance of
:exc:`BaseExceptionGroup`, the nested exceptions are included as
well, recursively, with indentation relative to their nesting depth.
rMFr�roNrvrr_rc�notez{}
r�r�r�)r]rrM)rQr�rlr�rr��split�_format_syntax_errorrDr�r��abc�Sequencer��bytesrdr r�r�r)r8r]rrRrMrFr�	formatted�lr�exs           r$r�(TracebackException.format_exception_only�s����"�:�:�j�%�0���V��c�!���"�"��1�$��	�	�H�U�U�U���!�!���$�$���z�2��9�9�5�8���%��+��
'��&���J��%�&����
-�U�I�I��Q�Q�,0�,E�,E�e�,E�,_�`�,_�q��
�,_�`�`�`�
�t�~�~�{���'?�'?�@�@��t�~�~��U�|�<�<�����#�D�&�1��7;�z�z�$�7G�H�7G�!�Q�J��-�7G�H�H�H�'��^�^�
'��6�=�=��d�n�n�k�X\�)]�^�^�^��?�?�z��o�o���3�3�z�YZ�RZ�em�3�n�n�n�&� *�?��'���a�`��I�H�o�sn�BH5�H�%H5�+H!�,-H5�H$�'H5�-H)�.B
H5�8H,�	H5�H1�BH5�H3�H5�$H5�,H5�3H5c	+�# �URSS5nSnURb�U(anSR[RUR
=(d S[R[RUR[R5v� OZSRUR
=(d SUR5v� O(UR
bSRUR
5nURnUGb�URS	5nURS
5n[U5[U5-
nURcSRU5v� GO�URn	URUR:XaURS;aUROU	n
O[U5S
-n
UR(a'U	[UR5:�a[U5S
-n	UR(a'U
[UR5:�a[U5S
-n
X�:�dU
S:aU	S
-n
U	S
-
U-
nU
S
-
U-
nSn
US:�a�SUSU5n
S=p�U(aQUSU[R-X{U-[R-X|S-n[Rn[RnSRU5v� SRSRU
5USX�-
-U5v� OSRU5v� UR =(d SnU(aRSR[R"U[R[RU[RU5v� gSRUUU5v� g7f)z0Format SyntaxError exceptions (internal helper).rMFrNz  File {}"{}"{}, line {}{}{}
z<string>z  File "{}", line {}
z ({})rcz 
z    {}
>Nrr�rroc3�R# �UHoR5(aUOSv� M g7f)roNr�)r�cs  r$r�:TracebackException._format_syntax_error.<locals>.<genexpr>#s���!U�}�!�	�	���1��#<�}�s�%'z
    {}{}{}{}
r
z<no detail available>z{}{}{}: {}{}{}{}
z	{}: {}{}
)rQr�r rrgr�rfr�r�r$r�rr�rYr*rvr�re)r8rrRrM�filename_suffixr��rtext�ltext�spacesrrYr�r��
caretspace�start_color�	end_colorr�s                 r$r �'TracebackException._format_syntax_error�s
����:�:�j�%�0�����;�;�"��6�=�=��&�&��M�M�/�Z��$�$��&�&��K�K��$�$�
��/�5�5��M�M�/�Z����>�>�
�]�]�
&�%�n�n�T�]�]�;�O��y�y�����K�K��%�E��L�L��)�E���Z�#�e�*�,�F��{�{�"� �'�'��.�.������;�;�$�/�/�1�48�O�O�9�4T����Z`�J�!$�U��a��J��9�9��#�d�i�i�.�!8� ��Z�!�^�F��9�9��c�$�)�)�n�!<�!$�U��a��J��'�:��>�!'�!��J���
�V�+��&��N�V�3�	� �
��A�:�!U�u�V�e�}�!U�J�.0�0�K��"�&�5�M�&�/�/�0�27�i�2H�I�KU�K[�K[�\�!�*�-�.��
'1�&9�&9��$.�$4�$4�	�$�+�+�E�2�2�*�1�1����
�+�#��	� 1�2�!�	��%�+�+�E�2�2��h�h�1�1���&�-�-��'�'��� � ��"�"��� � ��!�
!��%�%�e�S�/�B�B�s�NN)rP�_ctxc	+�Z# �URSS5nUc
[5n/nUnU(azU(arURb[nURnO5URb$UR
(d[nURnOSnSnURXv45 UnU(aMrOURSU45 [U5GHDup�U	bURU	5Shv�N URc�UR(aIURS5Shv�N URURRUS95Shv�N URURUS95Shv�N M�URUR:�a)URSURS35Shv�N M�URS:Hn
U
(aU=RS	-
slUR(aQURS
U
(aSOSS9Shv�N URURRUS95Shv�N URURUS95Shv�N [!UR5nX�R"::aUnOUR"S	-nSUl['U5GH-n
X�S	-
:HnU(aS
UlUR"bX�R":�nOSnU(dU
S	-OSnUR)5U
S:XaSOS-SUS3-v� U=RS	-
slU(d&URU
RXUS9Shv�N O8X�R"-
nUS	:�aSOSnURSUSUS35Shv�N U(a-UR$(aUR)5S-v� SUlU=RS	-slGM0 U
(dGM+URS	:XdeSUlGMG gGN-GN�GN�GN�GNiGN
GN�GN�N�N�7f)a�Format the exception.

If chain is not *True*, *__cause__* and *__context__* will not be formatted.

The return value is a generator of strings, each ending in a newline and
some containing internal newlines. `print_exception` is a wrapper around
this method which just prints the lines to a file.

The message indicating which exception occurred is always the last
string in the output.
rMFNz#Traceback (most recent call last):
rvz... (max_group_depth is z)
rr�z3Exception Group Traceback (most recent call last):
�+)r�Tz...z+-z  z+---------------- z ----------------
)rPr4rMrwrzand z more exceptionrcz&+------------------------------------
)rQr�r��_cause_messager�r��_context_messager��reversedr�r�r�r rr�r�r�r�r�r�rF)r8rPr4rRrM�outputrI�chained_msg�chained_excr��is_toplevel�num_excs�nr^rx�	truncated�title�	remaining�plurals                   r$r �TracebackException.formatDs�����:�:�j�%�0���<�)�+�D��������=�=�,�"0�K�"%�-�-�K��o�o�2��2�2�"2�K�"%�/�/�K�"&�K�"&�K��
�
�{�0�1�!���#��
�M�M�4��+�&� ��(�H�C����9�9�S�>�)�)��~�~�%��9�9�#�y�y�)O�P�P�P�#�y�y����)9�)9�8�)9�)L�M�M�M��9�9�S�%>�%>��%>�%Q�R�R�R��+�+�d�.B�.B�B��9�9�.�t�/C�/C�.D�C�H�J�J�J� $�9�9�Q�>����.�.�!�3�.��9�9�#�y�y�N�-8�c�d� )� D�D�D� $�y�y����)9�)9�8�)9�)L�M�M�M��9�9�S�%>�%>��%>�%Q�R�R�R��s�~�~�.���3�3�3� �A��,�,�q�0�A�"'����q��A� !�q�S��H��*.����+�+�7�%&�*>�*>�%>�	�$)�	�,5�q��s�e�5�E��;�;�=�$%�q�D�D�d�4�/��w�6I�J�K�L��.�.�!�3�.�$�#&�>�>�!�#4�#;�#;�%�]e�#;�#f�f�f�$,�/C�/C�$C�	�(1�A�
��2��#'�9�9�"�9�+�_�V�H�B�G�$I�I�I� �D�O�O�#�{�{�}�H� I�J�*/����.�.�!�3�.�.�7"�:�;��5�5��:�:�:�12�D�.�})�)�Q�M�R�J�D�N�R�.g�I�s��B"P+�&<P+�"P�#6P+�P�/P+�	P�
%P+�/P�0AP+�2P�3AP+�P�/P+�P!�%P+�'P$�(C2P+�P'�8P+�P)�AP+�0 P+�P+�P+�P+�P+�P+�!P+�$P+�'P+�)P+)rrPc��URSS5nUc[RnURX$S9H
n[	XQSS9 M g)z7Print the result of self.format(chain=chain) to 'file'.rMFNr[rr)rQrrr r!)r8rrPrRrMrks      r$r!�TracebackException.print�s@���:�:�j�%�0���<��:�:�D��K�K�e�K�?�D��$�r�*�@r&)r�r�r�r�r�r�r�rYr�r�r�r�r�r�r�rr�r�)r;r<r=r>r�r�r~rr�r�rr�r�rrr r r!r?r6r&r$rr�s���%�NEI��e�U���$�d�OC�b�G��G�����
�	��	��
�
�38��4o�lRC�h#��b3�J!��+�+r&ri��(r�r�c�j�X:XagUR5UR5:Xa[$[$)Nr)�lower�
_CASE_COST�
_MOVE_COST)�ch_a�ch_bs  r$�_substitution_costrN�s*���|���z�z�|�t�z�z�|�#����r&c��Ub[U[5(dg[U[5(a�URn[	U5nUSSS:gnU(a[UbXUR
bUR
nUR
bMURnSUR;aURSULaSnU(aUVs/sHowSSS:wdM
UPM nnGO [U[5(aG[UR5n[	U5nUSSS:waUVs/sHowSSS:wdM
UPM nnO�[U[5(deUcgUR
bUR
nUR
bMURn[UR5[UR5-[UR5-nSUR;a$URSn	[!X�5(aSU3$SSKn
U
R%XB5$s snf![a gf=fs snf![a gf=f![a Of=f['U5[(:�ag['U5nU[*:�agUnSn
UHZnX�:XaM
['U5U-S-[,-S-n[/X�S-
5n[1X.U5nUU:�aMGU
(aUU:dMVUn
UnM\ U
$)	Nr�rr8Fzself.rr��)rDr�r��obj�dirr�r�r�rJri�
__import__r�r�r\r��
f_builtinsrz�_suggestions�_generate_suggestionsr��_MAX_CANDIDATE_ITEMS�_MAX_STRING_SIZErK�min�_levenshtein_distance)r�r,r�rQ�d�hide_underscoredrr�modr8rU�wrong_name_len�
best_distancer��
possible_name�max_distance�current_distances                 r$r�r��s������J��!<�!<���)�^�,�,��m�m��	��C��A� *�2�A��#� 5���B�N��j�j�,����B��j�j�,������U�^�^�+����v�0F�#�0M�',�$�� !�2��1�r��U�c�\�Q���2��
�I�{�	+�	+�	��Y�^�^�,�C��C��A��"�1�~��$� !�2��1�r��U�c�\�Q���2���)�Y�/�/�/�/�
�:���j�j�$����B��j�j�$��������� ��5�?�?�#�
$��5�#�#�$�
%�	
��U�^�^�#��>�>�&�)�D��t�(�(��z�l�+�+�A���1�1�!�@�@��K3���	��	��3���	��	��2�
��
���1�v�$�$����_�N��(�(��"�M��J��
��&���M�*�^�;�a�?�:�M�QR�R���<��):�;��0��L�Y���l�*���-�
�=�&�J�,�M���sl�AH�;H�<H�H�H�,-H&�H!�)H!�/H&�7H6�H�
H�H�!H&�&
H3�2H3�6
I�Ic	��X:XagSnXS(a6XS(a-XX:Xa#US-
nXS(aXS(aXX:XaM#XSnXSnSnUSU=(d S(a`USU=(d S(aMXS-
XS-
:Xa=US-nUSU=(d S(a%USU=(d S(aXS-
XS-
:XaM=USU=(d SnUSU=(d SnU(aU(d[[U5[U5--$[U5[:�d[U5[:�aUS-$[U5[U5:aXp[U5[U5-
[-U:�aUS-$[[	[[[U5S--[55nSn[	[U55H�nXnU[-=p�[
Rn
[	[U55HBnU	[X�U5-nX[n	[Xi5[-n
[X�5nXeU'Xj:dM@Un
MD X�:�dM�US-s $ U$r�)	rKr�rXr\r�r�maxsizerNrY)�a�b�max_cost�pre�postrTr��bindex�bchar�distance�minimum�index�
substitute�
insert_deletes              r$rZrZs1��	�v���C�
�D�'�a��g�!�&�A�F�"2��q����D�'�a��g�!�&�A�F�"2�	�$��A�	�$��A��D�
�M�T�\�T�
�q��$�,�$�/�A�1�f�I���6��4J���	���M�T�\�T�
�q��$�,�$�/�A�1�f�I���6��4J�	�-�4�<�4��A�	�-�4�<�4��A��A��S��V�c�!�f�_�-�-�
�1�v� � �C��F�-=�$=��!�|���1�v��A����1�	�A���Q���:�%��0��!�|��
�u�Z��s�1�v��z�!:�J�G�
H�C�
�F���A��-���	��"�Z�/�/���+�+���3�q�6�]�E�!�$6�u��h�$G�G�J��z�H� ��1�J�>�M���3�F� ��J��� ��#����a�<��) �*�Mr&r�rA)NNTrC)NNN)>r��collections.abcr�r�r�rr�r�
contextlibrrVr�__all__r%r	rrrr7r8r3rBrKr�objectrXrYrrrlr�rdrr
rrr
rrrrrr1r�rxr\rrH�
namedtupler�rKr�r%r�rrWrXrKrJrNr�rZr6r&r$�<module>rvs���F����
����� �$��'�;�$7�0�7�*&��
&��
��
�K�	��#,�	���T�8�$!�(��]�$-��$��
;� )2�T��T�0BF�PU�
� $'�4�J�P�	,� 	9�6�
� �a6�a6�H
���O���`�4�`�FC�
�!�!����3�Z���P�d���*K�K�.R+�R+�j����
�
�
�
��M�`:r&
© 2025 GrazzMean-Shell