ó
    Ñ]j€¶  ã                  ó²  • S r SSKJr  SSKrSSKrSSKrSSKrSSKrSSKrSSK	J
r
  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr  SS
KJr  SSKJr  SSKJr  SSKJr  \R<                  S:  a   " S S\\5      rO\r\(       a  SSK J!r!  Sr"Sr#Sr$\R<                  S:  r%SS jr&\RN                  " S5      r(S r)SS jr* " S S\5      r " S S\5      r+S S jr,g)!að  
Pdb debugger class.


This is an extension to PDB which adds a number of new features.
Note that there is also the `IPython.terminal.debugger` class which provides UI
improvements.

We also strongly recommend to use this via the `ipdb` package, which provides
extra configuration options.

Among other things, this subclass of PDB:
 - supports many IPython magics like pdef/psource
 - hide frames in tracebacks based on `__tracebackhide__`
 - allows to skip frames based on `__debuggerskip__`


Global Configuration
--------------------

The IPython debugger will by read the global ``~/.pdbrc`` file.
That is to say you can list all commands supported by ipdb in your `~/.pdbrc`
configuration file, to globally configure pdb.

Example::

   # ~/.pdbrc
   skip_predicates debuggerskip false
   skip_hidden false
   context 25

Features
--------

The IPython debugger can hide and skip frames when printing or moving through
the stack. This can have a performance impact, so can be configures.

The skipping and hiding frames are configurable via the `skip_predicates`
command.

By default, frames from readonly files will be hidden, frames containing
``__tracebackhide__ = True`` will be hidden.

Frames containing ``__debuggerskip__`` will be stepped over, frames whose parent
frames value of ``__debuggerskip__`` is ``True`` will also be skipped.

    >>> def helpers_helper():
    ...     pass
    ...
    ... def helper_1():
    ...     print("don't step in me")
    ...     helpers_helpers() # will be stepped over unless breakpoint set.
    ...
    ...
    ... def helper_2():
    ...     print("in me neither")
    ...

One can define a decorator that wraps a function between the two helpers:

    >>> def pdb_skipped_decorator(function):
    ...
    ...
    ...     def wrapped_fn(*args, **kwargs):
    ...         __debuggerskip__ = True
    ...         helper_1()
    ...         __debuggerskip__ = False
    ...         result = function(*args, **kwargs)
    ...         __debuggerskip__ = True
    ...         helper_2()
    ...         # setting __debuggerskip__ to False again is not necessary
    ...         return result
    ...
    ...     return wrapped_fn

When decorating a function, ipdb will directly step into ``bar()`` by
default:

    >>> @foo_decorator
    ... def bar(x, y):
    ...     return x * y


You can toggle the behavior with

    ipdb> skip_predicates debuggerskip false

or configure it in your ``.pdbrc``



License
-------

Modified from the standard pdb.Pdb class to avoid including readline, so that
the command line completion of other programs which include this isn't
damaged.

In the future, this class will be expanded with improvements over the standard
pdb.

The original code in this file is mainly lifted out of cmd.py in Python 2.2,
with minor changes. Licensing should therefore be under the standard Python
terms.  For details on the PSF (Python Software Foundation) standard license,
see:

https://docs.python.org/2/license.html


All the changes since then are under the same license as IPython.

é    )ÚannotationsN)Úcontextmanager)Ú	lru_cache)Úget_ipython)ÚPdbClosureBackport)Ú
PyColorize)ÚTokenStream)ÚTYPE_CHECKING)Ú	FrameType)ÚPdb)ÚToken)é   é   c                  ó   • \ rS rSrSrg)ÚOldPdbé–   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    ÚR/home/mande/repo/quber/.venv/lib/python3.13/site-packages/IPython/core/debugger.pyr   r   –   s   † Úr   r   )ÚInteractiveShellTzipdb> Ú__debuggerskip__c                ó   • [        S5      e)zyException hook which handles `BdbQuit` exceptions.

All other exceptions are processed using the `excepthook`
parameter.
zs`BdbQuit_excepthook` is deprecated since version 5.1. It is still around only because it is still imported by ipdb.)Ú
ValueError)ÚetÚevÚtbÚ
excepthooks       r   ÚBdbQuit_excepthookr#   ²   s   € ô Ø}óð r   z
(?<=\n)\s+c                ó.   • [         R                  SU 5      $ )NÚ )ÚRGX_EXTRA_INDENTÚsub)Úmultiline_strings    r   Ústrip_indentationr)   À   s   € Ü×Ñ Ð$4Ó5Ð5r   c                óp   ^ • U 4S jnUR                   (       a  [        UR                   5      U-   Ul         U$ )z»Make new_fn have old_fn's doc string. This is particularly useful
for the ``do_...`` commands that hook into the help system.
Adapted from from a comp.lang.python posting
by Duncan Booth.c                 ó   >• T" U 0 UD6$ ©Nr   )ÚargsÚkwÚnew_fns     €r   ÚwrapperÚ%decorate_fn_with_doc.<locals>.wrapperÊ   s   ø€ Ù�tÐ"˜rÑ"Ð"r   )Ú__doc__r)   )r/   Úold_fnÚadditional_textr0   s   `   r   Údecorate_fn_with_docr5   Ä   s+   ø€ õ#ð ‡~‡~Ü+¨F¯N©NÓ;¸oÑMˆŒØ€Nr   c                  óÒ  ^ • \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   \(       a  SrSSSSS.r    SA SBS jjr	\
SCS j5       r\R                  SDS j5       rS r\
S 5       rS rSEU 4S jjrU 4S jrS rS rS r\(       a  S r\S 5       rS rS rU 4S jrS  r\" \\R<                  5      =rrSESFS! jjr  SG     SHS" jjr!S# r" SI     SJS$ jjr# SK       SLS% jjr$SMS& jr%S' r&S( r'S) r(\(r)S* r*S+ r+\+r,S, r-S- r.S. r/S/ r0S0 r1S1 r2S2 r3SNS3 jr4\4r5U 4S4 jr6S5 r7\8" S65      S7 5       r9\8" S65      S8 5       r:U 4S9 jr;S: r<S; r=\=r>\<r?S< r@S= rAS> rBSOS? jrCS@rDU =rE$ )Pr   éÒ   a4  Modified Pdb class, does not load readline.

for a standalone version that uses prompt_toolkit, see
`IPython.terminal.debugger.TerminalPdb` and
`IPython.terminal.debugger.set_trace()`


This debugger can hide and skip frames that are tagged according to some predicates.
See the `skip_predicates` commands.

r   ÚshellÚstrÚ_theme_nameÚintÚ_contextztuple[Exception, ...]Ú_chained_exceptionsÚ_chained_exception_indexiç  TF)ÚtbhideÚreadonlyÚipython_internalÚdebuggerskipc                óú  • Uc  Sn[        U[        5      (       a  [        U5      nX@l        [        R
                  " XX#40 UD6  [        R                  S:  a  SU l        [        5       U l
        U R                  cA  [        R                  S   nSSKJn  UR                  5       U l
        U[        R                  S'   0 U l        U R                  R                   n[        U[        5      (       d   eUR#                  5       U:X  d   e[$        R&                  " US9U l        U R+                  U5        [,        U l        SU l        SU l        U R2                  U l        [6        (       a  [9        5       U l        SU l        gg)	a®  Create a new IPython debugger.

Parameters
----------
completekey : default None
    Passed to pdb.Pdb.
stdin : default None
    Passed to pdb.Pdb.
stdout : default None
    Passed to pdb.Pdb.
context : int
    Number of lines of source code context to show when
    displaying stacktrace information.
**kwargs
    Passed to pdb.Pdb.

Notes
-----
The possibilities are python version dependent, see the python
docs for more info.
Né   )r   é   Ú__main__r   )ÚTerminalInteractiveShell)Ú
theme_nameT)Ú
isinstancer9   r;   Úcontextr   Ú__init__ÚsysÚversion_infoÚcurframer   r8   ÚmodulesÚ!IPython.terminal.interactiveshellrG   ÚinstanceÚaliasesÚcolorsÚlowerr   ÚParserÚparserÚset_theme_nameÚpromptÚskip_hiddenÚreport_skippedÚdefault_predicatesÚ_predicatesÚCHAIN_EXCEPTIONSÚtupler=   r>   )	ÚselfÚcompletekeyÚstdinÚstdoutrJ   ÚkwargsÚ	save_mainrG   rH   s	            r   rK   ÚPdb.__init__ð   sC  € ð< ‰?ØˆGÜ�gœs×#Ñ#Ü˜'“lˆGØŒô 	�Š˜¨5ÑC¸FÒCô ×Ñ˜gÓ%Ø ˆDŒMô !“]ˆŒ
à�:‰:ÑÜŸ™ JÑ/ˆIåRà1×:Ñ:Ó<ˆDŒJð '0ŒC�K‰K˜
Ñ#àˆŒà—Z‘Z×&Ñ&ˆ
Ü˜*¤c×*Ñ*Ð*Ð*Ø×ÑÓ! ZÓ/Ð/Ð/ô !×'Ò'°:Ñ>ˆŒØ×Ñ˜JÔ'ô ˆŒØˆÔØ"ˆÔð  ×2Ñ2ˆÔçÒÜ',£wˆDÔ$Ø,-ˆDÕ)ð r   c                ó   • U R                   $ r,   )r<   ©r_   s    r   rJ   ÚPdb.context?  s   € à�}‰}Ðr   c                óŽ   • [        U[        5      (       d  [        U5      n[        U[        5      (       d   eUS:¼  d   eXl        g )Nr   )rI   r;   r<   )r_   Úvalues     r   rJ   rh   C  s>   € ô ˜%¤×%Ñ%Ü˜“JˆEÜ˜%¤×%Ñ%Ð%Ð%Ø˜‹zÐˆzØ�r   c                óŠ   • UR                  5       U:X  d   e[        U[        5      (       d   eXl        XR                  l        g r,   )rT   rI   r9   r:   rV   rH   )r_   Únames     r   rW   ÚPdb.set_theme_nameL  s9   € Ø�z‰z‹|˜tÓ#Ð#Ð#Ü˜$¤×$Ñ$Ð$Ð$ØÔØ!%�‰Õr   c                ó<   • [         R                  U R                     $ r,   )r   Útheme_tabler:   rg   s    r   ÚthemeÚ	Pdb.themeR  s   € ä×%Ñ% d×&6Ñ&6Ñ7Ð7r   c                óÊ   • [         R                  " S[        SS9  XR                  5       :X  d   eUR                  5       U l        UR                  5       U R
                  l        g)z;Shorthand access to the color table scheme selector method.zFset_colors is deprecated since IPython 9.0, use set_theme_name insteadé   )Ú
stacklevelN)ÚwarningsÚwarnÚDeprecationWarningrT   r:   rV   rH   )r_   Úschemes     r   Ú
set_colorsÚPdb.set_colorsW  sK   € ä�ŠØTÜØò	
ð
 Ÿ™›Ó'Ð'Ð'Ø!Ÿ<™<›>ˆÔØ!'§¡£ˆ�‰Õr   c                ór   >• Uc  [         R                  " 5       R                  nXl        [        TU ]  U5      $ r,   )rL   Ú	_getframeÚf_backÚinitial_frameÚsuperÚ	set_trace)r_   ÚframeÚ	__class__s     €r   r€   ÚPdb.set_traceb  s/   ø€ Ø‰=Ü—M’M“O×*Ñ*ˆEØ"ÔÜ‰wÑ  Ó'Ð'r   c                ó°   >• [         TU ]  " U0 UD6u  p4[        U5      S:¼  a2  U R                  US   S   5      (       a  UR	                  S5        US-  nX44$ )Nr   é   )r   Ú	get_stackÚlenÚ_is_internal_frameÚpop)r_   r-   rc   ÚstackÚposr‚   s        €r   r†   ÚPdb.get_stackh  sX   ø€ Ü‘WÒ&¨Ð7°Ñ7‰
ˆÜˆu‹:˜‹?˜t×6Ñ6°u¸Q±xÀ±{×CÑCØ�I‰I�aŒLØ�1‰HˆCØˆzÐr   c                ó–   • UR                   R                  nUR                  S5      (       a  UR                   R                  nUS;   a  gg)z5Determine if this frame should be skipped as internalzbdb.py)ÚruncallÚrunÚrunevalTF)Úf_codeÚco_filenameÚendswithÚco_name)r_   r�   ÚfilenameÚ	func_names       r   rˆ   ÚPdb._is_internal_frameo  sB   € à—<‘<×+Ñ+ˆð ×Ñ˜X×&Ñ&ØŸ™×,Ñ,ˆIàÐ9Ó9Øàr   c                ó’  • U R                   S   (       ae  UR                  R                  n[        R                  R                  U5      (       a+  [        R                  " U[        R                  5      (       d  gU R                   S   (       a:  XR                  [        U SS5      4;   a  gU R                  U5      nSU;  a  gUS   $ g)zH
Given a frame return whether it it should be hidden or not by IPython.
r@   Tr?   r~   NFÚ__tracebackhide__)r\   r‘   r’   ÚosÚpathÚisfileÚaccessÚW_OKrN   ÚgetattrÚ_get_frame_locals)r_   r�   ÚfnameÚframe_localss       r   Ú_hidden_predicateÚPdb._hidden_predicate|  s    € ð
 ×Ñ˜J×'Ø—L‘L×,Ñ,ˆEô �w‰w�~‰~˜e×$Ñ$¬R¯YªY°u¼b¿g¹g×-FÑ-FØà×Ñ˜H×%ØŸ™¬°°oÀtÓ(LÐMÓMØØ×1Ñ1°%Ó8ˆLØ"¨,Ó6ØØÐ 3Ñ4Ð4Ør   c                óD  • U Vs/ s H  o R                  US   5      PM     nn[        U5       VVs/ s H  u  pBUS:X  d  M  UPM     nnnU(       a=  U R                  S   (       a)  [        U5       VVs/ s H  u  pFXES   :”  a  UOSPM     nnnU$ s  snf s  snnf s  snnf )zu
Given an index in the stack return whether it should be skipped.

This is used in up/down and where to skip frames.
r   Ú__ipython_bottom__rA   T)r£   Ú	enumerater\   )r_   rŠ   ÚsÚip_hideÚiÚip_startÚhs          r   Úhidden_framesÚPdb.hidden_frames‘  s–   € ñ :?Ó?º°A×)Ñ)¨!¨A©$Ö/¹ˆÐ?Ü"+¨GÔ"4ÔRÒ"4™$˜!¸Ð=QÑ8Q—AÑ"4ˆÑRÞ˜×(Ñ(Ð);×<ÜDMÈgÔDVÔWÒDV¹&¸1˜A¨¡›O‘q°Ò5ÑDVˆGÑWØˆùò	 @ùÛRùãWs   …B²BÁBÁ4Bc                ó´  • / n[        U[        5      (       aª  UR                  UpCUb™  XB;   a  O–UR                  U5        UR                  b  UR                  nO*UR
                  b  UR                  (       d  UR
                  n[        U5      U R                  :¼  a   U R                  SU R                   S35        OUb  M™  OUn[        [        U5      5      U4$ )a  
Given a tracecack or an exception, return a tuple of chained exceptions
and current traceback to inspect.
This will deal with selecting the right ``__cause__`` or ``__context__``
as well as handling cycles, and return a flattened list of exceptions we
can jump to with do_exceptions.
z
More than zR chained exceptions found, not all exceptions will be browsable with `exceptions`.)rI   ÚBaseExceptionÚ__traceback__ÚappendÚ	__cause__Ú__context__Ú__suppress_context__r‡   ÚMAX_CHAINED_EXCEPTION_DEPTHÚmessager^   Úreversed)r_   Ú	tb_or_excÚ_exceptionsÚ	tracebackÚcurrents        r   Ú_get_tb_and_exceptionsÚPdb._get_tb_and_exceptions£  sÚ   € ð ˆKÜ˜)¤]×3Ñ3Ø%.×%<Ñ%<¸i˜7àÑ)ØÓ-ØØ×&Ñ& wÔ/Ø×(Ñ(Ñ4Ø")×"3Ñ"3™à×+Ñ+Ñ7Ø '× <× <à")×"5Ñ"5˜ä˜;Ó'¨4×+KÑ+KÓKØŸ™Ø(¨×)IÑ)IÐ(JðDðDôð
 ð% Ó)øð( &�	Üœ +Ó.Ó/°Ð:Ð:r   c              #  óª   #   •  Xl         [        U5      S-
  U l        Sv •  [        5       U l         SU l        g! [        5       U l         SU l        f = f7f)a  
Context manager to ensure proper cleaning of exceptions references
When given a chained exception instead of a traceback,
pdb may hold references to many objects which may leak memory.
We use this context manager to make sure everything is properly cleaned
r…   Nr   )r=   r‡   r>   r^   )r_   Ú
exceptionss     r   Ú_hold_exceptionsÚPdb._hold_exceptionsÆ  sM   é € ð2Ø+5Ô(Ü03°J³À!Ñ0C�Ô-Ûô ,1«7�Ô(Ø01�Õ-øô ,1«7�Ô(Ø01�Õ-üs   ‚A„8 ¡A¸AÁAc                ó<  • U R                   (       d  U R                  S5        gU(       d�  [        U R                   5       Hs  u  p#X R                  :X  a  SOSn[	        U5      n[        U5      S:”  a  USS S-   nU R                   U   R                  c  SOUS	 nU R                  U SU SU 35        Mu     g [        U5      nSUs=::  a  [        U R                   5      :  a‡  O  O„U R                   U   R                  c  U R                  S5        gXpl        U R                  SU R                   U   R                  5        U R                  U R                  U R                     5        gU R                  S5        g! [         a    U R                  S
5         gf = f)a/  exceptions [number]
List or change current exception in an exception chain.
Without arguments, list all the current exception in the exception
chain. Exceptions will be numbered, with the current exception indicated
with an arrow.
If given an integer as argument, switch to the exception at that index.
z‡Did not find chained exceptions. To move between exceptions, pdb/post_mortem must be given an exception object rather than a traceback.NÚ>Ú éP   éM   z...z  -z>3zArgument must be an integerr   z;This exception does not have a traceback, cannot jump to itzNo exception with that number)r=   r·   r§   r>   Úreprr‡   r±   r;   r   ÚerrorÚsetupÚprint_stack_entryrŠ   Úcurindex)r_   ÚargÚixÚexcrX   ÚrepÚ	indicatorÚnumbers           r   Údo_exceptionsÚPdb.do_exceptionsØ  s~  € ð ×+×+Ø—‘ð7ôð
 ÞÜ(¨×)AÑ)AÖB‘G�BØ$&×*GÑ*GÓ$G™SÈS�FÜ˜s›)�CÜ˜3“x "“}Ø! # 2˜h¨Ñ.˜ð  ×3Ñ3°BÑ7×EÑEÑMñ à " 2˜wð ð
 —L‘L F 8¨1¨Y¨K°q¸¸Ð!>Ö?ò  CðÜ  ›X�Fð ˜Õ>¤ T×%=Ñ%=Ó!>Ö>Ø×/Ñ/°Ñ7×EÑEÑMØŸ
™
ØYôð à4:Ô1Ø—J‘J˜t T×%=Ñ%=¸fÑ%E×%SÑ%SÔTØ×*Ñ*¨4¯:©:°d·m±mÑ+DÕEà—J‘JÐ>Õ?øô "ó Ø—J‘JÐ<Ô=Ùðús   Â9E= Å=FÆFc                ó¼  •  [         (       ac  U R                  U5      u  p4[        U[        5      (       a
  Uc   S5       eU R	                  U5         [
        R                  XU5        S S S 5        g [
        R                  XU5        g ! , (       d  f       g = f! [         a9    U R                  R                  SU R                  R                  5       -   5         g f = f)Nz$main exception must have a tracebackÚ
)r]   r½   rI   r°   rÁ   r   ÚinteractionÚKeyboardInterruptrb   Úwriter8   Úget_exception_only)r_   r�   r¹   r=   r!   s        r   r×   ÚPdb.interaction  s¹   € ð	FßÒà*.×*EÑ*EÀiÓ*PÑ'Ð#Ü˜i¬×7Ñ7Ø™>ÐQÐ+QÓQ˜>Ø×*Ñ*Ð+>Õ?Ü×&Ñ& t°BÔ7÷ @Ð?ô ×"Ñ" 4°	Õ:÷ @Õ?ûô
 !ó 	FØ�K‰K×Ñ˜d T§Z¡Z×%BÑ%BÓ%DÑDÖEð	Fús7   ‚AB ÁBÁ'B Á0B Â
BÂB ÂB ÂA CÃCc                ó    >• UR                  S5      (       a	  SUSS -   nOUR                  S5      (       a  SUSS -   n[        TU ]	  U5      nU$ )z<Perform useful escapes on the command before it is executed.z??zpinfo2 NéþÿÿÿÚ?zpinfo éÿÿÿÿ)r“   r   Úprecmd)r_   Úliner‚   s     €r   rà   Ú
Pdb.precmd  sV   ø€ ð �=‰=˜×ÑØ˜t C R˜yÑ(‰DØ�]‰]˜3×ÑØ˜d 3 B˜iÑ'ˆDä‰w‰~˜dÓ#ˆàˆr   c                ó,   • [         R                  X5      $ r,   )r   Údo_quit©r_   rÍ   s     r   Únew_do_quitÚPdb.new_do_quit!  s   € Ü�~‰~˜dÓ(Ð(r   c                óJ  • Uc  U R                   n SnSn[        U R                  U R                  5      U R                  5       Hy  u  pEU(       a  U R                  (       a  US-  nM$  U(       a;  X0R
                  R                  [        R                  SU S34[        S4/5      -  nSnX0R                  U5      -  nM{     U(       a9  X0R
                  R                  [        R                  SU S34[        S4/5      -  n[        X0R                  S9  g ! [         a     g f = f)Nr   r%   r…   z    [... skipping z hidden frame(s)]rÖ   ©Úfile)rJ   Úzipr­   rŠ   rY   rp   Úformatr   ÚExcNameÚformat_stack_entryÚprintrb   rØ   )r_   rJ   ÚskippedÚto_printÚhiddenÚframe_linenos         r   Úprint_stack_traceÚPdb.print_stack_trace&  s$  € Ø‰?Ø—l‘lˆGð 	ØˆGØˆHÜ(+¨D×,>Ñ,>¸t¿z¹zÓ,JÈDÏJÉJÖ(WÑ$�Þ˜d×.×.Ø˜q‘L�GÙÞØ§
¡
× 1Ñ 1ô !&§¡Ø"4°W°IÐ=NÐ Oðô # D˜Mðó!ñ �Hð  �GØ×3Ñ3°LÓAÑA’ñ! )Xö" ØŸJ™J×-Ñ-ô "ŸM™MØ0°°	Ð9JÐKðô  ˜ðóñ �ô �(§¡Ó-øÜ ó 	Ùð	ús   ‘DD Ä
D"Ä!D"c                óÌ   • [        U R                  US5      U R                  S9  Uu  p4UR                  R                  nU R
                  R                  R                  XTS5        g)z3
Overwrite print_stack_entry from superclass (PDB)
r%   ré   r   N)rï   rî   rb   r‘   r’   r8   ÚhooksÚsynchronize_with_editor)r_   ró   Úprompt_prefixr�   Úlinenor•   s         r   rË   ÚPdb.print_stack_entryK  sO   € ô 	ˆd×%Ñ% l°BÓ7¸d¿k¹kÒJà$‰ˆØ—<‘<×+Ñ+ˆØ�
‰
×Ñ×0Ñ0°À1ÕEr   c                óN   • XR                   L a  U R                  $ UR                  $ )a	  "
Accessing f_local of current frame reset the namespace, so we want to avoid
that or the following can happen

ipdb> foo
"old"
ipdb> foo = "new"
ipdb> foo
"new"
ipdb> where
ipdb> foo
"old"

So if frame is self.current_frame we instead return self.curframe_locals

)rN   Úcurframe_localsÚf_locals©r_   r�   s     r   r    ÚPdb._get_frame_localsW  s$   € ð" —M‘MÒ!Ø×'Ñ'Ð'à—>‘>Ð!r   c                óJ  • U R                   n [        U5      nUS::  a  [        SU R                  S9  SSKn/ nUu  pgSnU R                  U5      n	SU	;   a3  U	S   n
X„R                  U
5      S-   -  nUR                  [        U4/5        U R                  UR                  R                  5      n[        R                  U4nUR                  R                  (       a  UR                  R                  nOSn/ nUS	:w  aA  S
U	;   a  UR                  U	S
   5      nOSn[        R                   U4[        R"                  U4/nX`R$                  L a;  UR'                  [        R(                  U R*                  R-                  S5      45        OUR'                  [        S45        UR                  U[        S4[        R.                  [1        U5      4[        S4/UQ[        S4P5        US-
  US-  -
  n[2        R4                  " U5      n[7        U[9        U5      U-
  5      n[;        US5      nUUUU-    n[=        U5       H¢  u  nnUS-   U-   U:H  nU R?                  UUS-   U-   UUS9u  nnnX`R$                  L d  U(       a#  U[        R@                  U4[        S4[        U4/nO,U[        R.                  U4[        S4[        RB                  U4/nUR                  U5        M¤     U R*                  RE                  U5      $ ! [        [
        4 a    [        SU R                  S9   GNîf = f)z+
overwrite from super class so must -> str
r   z"Context must be a positive integerré   Nr%   Ú
__return__rÖ   z<lambda>rÞ   Ú__args__z()rs   z  Ú(Ú)r…   ©ÚarrowrÅ   )#rJ   r;   rï   rb   Ú	TypeErrorr   Úreprlibr    rÈ   Úextendr   Úcanonicr‘   r’   Ú
FilenameEmr”   ÚVNameÚValEmrN   r²   ÚCurrentFramerp   Ú
make_arrowÚLinenor9   Ú	linecacheÚgetlinesÚminr‡   Úmaxr§   Ú_Pdb__line_contentÚLinenoEmÚLinerì   )r_   ró   ÚlprefixrJ   r	  Úret_tokr�   rú   Úreturn_valueÚ	loc_frameÚrvr•   Úlink_tokÚfuncÚ	call_toksr-   ÚstartÚlinesrª   rá   Ú
show_arrowÚbpÚnumÚcolored_lineÚrlts                            r   rî   ÚPdb.format_stack_entrym  s  € ð —,‘,ˆð	JÜ˜'“lˆGØ˜!‹|ÜÐ:ÀÇÁÒMó 	àˆà$‰ˆàˆØ×*Ñ*¨5Ó1ˆ	Ø˜9Ó$Ø˜<Ñ(ˆBàŸL™L¨Ó,¨tÑ3Ñ3ˆLØ�N‰NœU LÐ1Ð2Ô3ð —<‘< §¡× 8Ñ 8Ó9ˆÜ×$Ñ$ hÐ/ˆà�<‰<××Ø—<‘<×'Ñ'‰DàˆDàˆ	Ø�3‹;Ø˜YÓ&Ø—|‘| I¨jÑ$9Ó:‘à�ÜŸ+™+ tÐ,¬u¯{©{¸DÐ.AÐBˆIð —M‘MÒ!Ø�N‰NœE×.Ñ.°·
±
×0EÑ0EÀaÓ0HÐIÕJà�N‰NœE 4˜=Ô)à�‰àÜ˜�Ü—‘œs 6›{Ð+Ü˜�ð	ð
 ðô ˜�ðô		
ð ˜‘
˜W¨™\Ñ)ˆÜ×"Ò" 8Ó,ˆÜ�Eœ3˜u›:¨Ñ/Ó0ˆÜ�E˜1“ˆØ�e˜e g™oÐ.ˆä  Ö'‰GˆAˆtØ ™ Q™¨&Ñ0ˆJà$(×$7Ñ$7ØØ˜‘	˜A‘ØØ ð	 %8ð %Ñ!ˆB��\ð Ÿ™Ò%®àÜ—^‘^ SÐ)Ü˜C�Lô
 ˜LÐ)ð	‘ð Ü—\‘\ 3Ð'Ü˜C�Lô
 —Z‘Z Ð.ð	�ð �N‰N˜3Öñ? (ðB �z‰z× Ñ  Ó)Ð)øôw œ:Ð&ó 	JÜÐ6¸T¿[¹[ÕIð	Jús   Ž%K: Ë:$L"Ì!L"c                óŒ  • Sn[         R                  nU R                  R                  US5      u  pxU(       d  Uc   eUnS n	X R	                  U5      ;   a  U R                  X5      n
U
S   n	U	(       aZ  [        U	R                  5      n[         R                  R                  nU	R                  (       d  [         R                  R                  nSnU(       aN  U[        [        U5      5      -
  [        U5      -
  nU R                  R                  U5      < [        U5      < 3nOSU[        U5      -
  [        U5      4-  nXe4nXíU4$ )Nr%   r9   rß   é   z%*s)r   Ú
BreakpointrV   Úformat2Úget_file_breaksÚ
get_breaksr9   rÒ   ÚEnabledÚenabledÚDisabledr‡   rp   r  )r_   r•   rú   rá   r  Úbp_markÚBreakpointTokenÚnew_lineÚerrr$  ÚbpsÚnumbers_widthÚpadr%  Úbp_strs                  r   Ú__line_contentÚPdb.__line_content×  s  € ð ˆÜ×*Ñ*ˆàŸ™×+Ñ+¨D°%Ó8‰ˆÞØÑ'Ð'Ð'ØˆDàˆØ×)Ñ)¨(Ó3Ó3Ø—/‘/ (Ó3ˆCØ�R‘ˆBæÜ˜"Ÿ)™)“nˆGÜ#×.Ñ.×6Ñ6ˆOØ—:—:Ü"'×"2Ñ"2×";Ñ";�ØˆÞà¤#¤c¨&£kÓ"2Ñ2´S¸³\ÑAˆCØ ŸJ™J×1Ñ1°#Õ6¼¸F½ÐD‰Cà˜=¬3¨w«<Ñ7¼¸V»ÐEÑEˆCØ!Ð+ˆØ˜TÐ"Ð"r   c                ó¤  • / n US:X  a  [        U S5      (       a  U R                  n[        X#S-   5       HÛ  n[        R                  " X5      nU(       d    O½U R
                  c   eXPR
                  R                  :X  aF  U R                  XUSS9u  pxn	UR                  U[        R                  U4[        S4[        U	4/5        OEU R                  XUSS9u  pxn	UR                  U[        R                  U4[        S4[        U	4/5        XPl        MÝ     [        U R                  R                  U5      U R                   S	9  g! ["         a     gf = f)
zAThe printing (as opposed to the parsing part of a 'list'
command.z<string>Ú_exec_filenamer…   NTr  rÅ   Fré   )Úhasattrr=  Úranger  ÚgetlinerN   Úf_linenor  r
  r   r  r  rú   rï   rp   rì   rb   rØ   )
r_   r•   ÚfirstÚlastÚtoksrú   rá   r$  r%  r&  s
             r   Úprint_list_linesÚPdb.print_list_linesö  sY  € ð ˆð*	Ø˜:Ó%¬'°$Ð8H×*IÑ*IØ×.Ñ.�ä ¨a¡xÖ0�Ü ×(Ò(¨Ó:�ÞÙà—}‘}Ñ0Ð0Ð0àŸ]™]×3Ñ3Ó3Ø,0×,?Ñ,?Ø ¨$°dð -@ð -Ñ)�B˜\ð —K‘KàÜ"Ÿ^™^¨SÐ1Ü" C˜Lä" LÐ1ðõð -1×,?Ñ,?Ø ¨$°eð -@ð -Ñ)�B˜\ð —K‘KàÜ"Ÿ\™\¨3Ð/Ü" C˜LÜ" LÐ1ð	ôð %–ñC 1ôF �$—*‘*×#Ñ# DÓ)°·±Ó<øä ó 	Ùð	ús   „D=E Å
EÅEc                óà  • UR                  5       (       d=  [        S5        U R                  R                  5        H  u  p#[        SUSU5        M     gUR                  5       R	                  S5      n[        U5      S:w  a0  [        S[        U R                  R                  5       5       35        gUu  pVXPR                  ;  a3  [        U< S[        U R                  R                  5       5       35        gUR                  5       S	;  a  [        U< S
35        gUR                  5       S;   U R                  U'   [        U R                  R                  5       5      (       d  [        S5        gg)añ  
Turn on/off individual predicates as to whether a frame should be hidden/skip.

The global option to skip (or not) hidden frames is set with skip_hidden

To change the value of a predicate

    skip_predicates key [true|false]

Call without arguments to see the current values.

To permanently change the value of an option add the corresponding
command to your ``~/.pdbrc`` file. If you are programmatically using the
Pdb instance you can also change the ``default_predicates`` class
attribute.
zcurrent predicates:z   Ú:NrÅ   rs   z:Usage: skip_predicates <type> <value>, with <type> one of z not in )ÚtrueÚyesÚ1ÚnoÚfalseÚ0zA is invalid - use one of ('true', 'yes', '1', 'no', 'false', '0'))rI  rJ  rK  úKWarning, all predicates set to False, skip_hidden may not have any effects.)Ústriprï   r\   ÚitemsÚsplitr‡   ÚsetÚkeysrT   ÚanyÚvalues)r_   r-   ÚpÚvÚ
type_valueÚtype_rj   s          r   Údo_skip_predicatesÚPdb.do_skip_predicates&  s>  € ð" �z‰z�|‰|ÜÐ'Ô(Ø×(Ñ(×.Ñ.Ö0‘�Ü�e˜Q  QÖ'ñ 1àØ—Z‘Z“\×'Ñ'¨Ó,ˆ
Üˆz‹?˜aÓÜØLÌSÐQU×QaÑQa×QfÑQfÓQhÓMiÐLjÐkôð à!‰ˆØ×(Ñ(Ó(Ü�U‘I˜X¤c¨$×*:Ñ*:×*?Ñ*?Ó*AÓ&BÐ%CÐDÔEØØ�;‰;‹=Ð HÓHÜØ‘)Ð\Ð]ôð à"'§+¡+£-Ð3GÑ"Gˆ×Ñ˜ÑÜ�4×#Ñ#×*Ñ*Ó,×-Ñ-ÜØ]õð .r   c                óp  • UR                  5       (       d  [        SU R                   S35        OSUR                  5       R                  5       S;   a  SU l        O)UR                  5       R                  5       S;   a  SU l        [	        U R
                  R                  5       5      (       d  [        S5        gg)	zS
Change whether or not we should skip frames with the
__tracebackhide__ attribute.
zskip_hidden = z/, use 'yes','no', 'true', or 'false' to change.)rI  rJ  T)rM  rL  FrO  N)rP  rï   rY   rT   rU  r\   rV  rå   s     r   Údo_skip_hiddenÚPdb.do_skip_hiddenS  s•   € ð
 �y‰y�{‰{ÜØ  ×!1Ñ!1Ð 2Ð2aÐbõð �Y‰Y‹[×ÑÓ  OÓ3Ø#ˆDÕØ�Y‰Y‹[×ÑÓ  OÓ3Ø$ˆDÔÜ�4×#Ñ#×*Ñ*Ó,×-Ñ-ÜØ]õð .r   c                ó  • SU l         SnU(       ai  US:w  ac   [        U0 0 5      n[        U5      [        S5      :X  a$  Uu  pB[        U5      n[        U5      nX$:  a  XB-   nOn[	        S[        U5      S-
  5      nOUU R                  b  US:X  a3  U R                  c   e[	        SU R                  R                  S-
  5      nOU R                  S-   nUc  US	-   nU R                  c   eU R                  U R                  R                  R                  XB5        UnU R                  R                  R                  nU R                  R                  R!                  XeS
5        g!   [        S[        U5      U R                  S9   g= f)z0Print lines of code from the current stack frameÚlistNÚ.r   r…   rD   z*** Error in argument:ré   é
   r   )ÚlastcmdÚevalÚtyper;   r  rï   rÈ   rb   rú   rN   rA  rE  r‘   r’   r8   r÷   rø   )r_   rÍ   rC  ÚxrB  rú   r•   s          r   Údo_listÚPdb.do_liste  sO  € àˆŒØˆÞ�3˜#“:ðÜ˜˜b "Ó%�Ü˜“7œd 2›hÓ&Ø"#‘K�EÜ ›J�EÜ˜t›9�DØ“|à$™|˜øä ¤3 q£6¨A¡:Ó.‘Eð �[‰[Ñ  C¨3£JØ—=‘=Ñ,Ð,Ð,Ü˜˜4Ÿ=™=×1Ñ1°AÑ5Ó6‰Eà—K‘K !‘OˆEØ‰<Ø˜2‘:ˆDØ�}‰}Ñ(Ð(Ð(Ø×Ñ˜dŸm™m×2Ñ2×>Ñ>ÀÔLàˆØ—=‘=×'Ñ'×3Ñ3ˆØ�
‰
×Ñ×0Ñ0°À1ÕEøðÜÐ.´°S³	ÀÇÁÒLÙús   ˜AE Á!E Å Fc                ó$  • [         R                  " U5      u  p#[         R                  " U5      (       a"  UR                  U R	                  U5      L a  US4$ [         R
                  " U5      (       a  US4$ [         R                  " X#S  5      US-   4$ )Nr…   )ÚinspectÚ
findsourceÚisframeÚ	f_globalsr    ÚismoduleÚgetblock)r_   Úobjr"  rú   s       r   ÚgetsourcelinesÚPdb.getsourcelinesˆ  sz   € Ü×*Ò*¨3Ó/‰ˆÜ�?Š?˜3×Ñ C§M¡M°T×5KÑ5KÈCÓ5PÒ$Pà˜!�8ˆOÜ×Ò˜c×"Ñ"Ø˜!�8ˆOÜ×Ò  g Ó/°¸!±Ð;Ð;r   c                óJ  • SU l          U R                  U R                  5      u  p#U[        U5      -   nU R                  c   eU R                  U R                  R                  R                  X55        g! [         a$  nU R	                  [        U5      5         SnAgSnAff = f)zVPrint lines of code from the current stack frame.

Shows more lines than 'list' does.
ÚlonglistN)
rd  rr  rN   ÚOSErrorrÉ   r9   r‡   rE  r‘   r’   )r_   rÍ   r"  rú   r5  rC  s         r   Údo_longlistÚPdb.do_longlist‘  s‹   € ð
 "ˆŒð	Ø ×/Ñ/°·±Ó>‰MˆEð œ˜E›
Ñ"ˆØ�}‰}Ñ(Ð(Ð(Ø×Ñ˜dŸm™m×2Ñ2×>Ñ>ÀÕMøô ó 	Ø�J‰J”s˜3“xÔ Üûð	ús   ‰A4 Á4
B"Á>BÂB"c                óX  • [         R                  " 5       n[         R                  " S5        U R                  c   eU R                  R                  nU R
                  nU R                  U R                  U R                  U R                  S9nU R                  Ul
        SU R                  R                  5       -  Ul        U R                  S5        [         R                  " UR                  XU45        U R                  S5        [         R                  " U5        UR                   U l        g)z¦debug code
Enter a recursive debugger that steps through the code
argument (which is an arbitrary expression or statement to be
executed in the current environment).
N)r`   ra   rb   z(%s) zENTERING RECURSIVE DEBUGGERzLEAVING RECURSIVE DEBUGGER)rL   ÚgettraceÚsettracerN   rn  rý   r‚   r`   ra   rb   Úuse_rawinputrX   rP  r·   Úcall_tracingr�   rd  )r_   rÍ   Útrace_functionÚglobalsÚlocalsrW  s         r   Údo_debugÚPdb.do_debug¢  sß   € ô Ÿš›ˆÜ�Š�TÔØ�}‰}Ñ(Ð(Ð(Ø—-‘-×)Ñ)ˆØ×%Ñ%ˆØ�N‰NØ×(Ñ(°·
±
À4Ç;Á;ð ð 
ˆð ×*Ñ*ˆŒØ˜TŸ[™[×.Ñ.Ó0Ñ0ˆŒØ�‰Ð2Ô3Ü×Ò˜Ÿ™ ¨vÐ 6Ô7Ø�‰Ð1Ô2Ü�Š�^Ô$Ø—y‘yˆ�r   c                ó¬   • U R                   c   eSU R                  4SU R                   R                  4/nU R                  R	                  S5      " XS9  g)zRPrint the call signature for any callable object.

The debugger interface to %pdefNÚLocalsÚGlobalsÚpdef©Ú
namespaces©rN   rý   rn  r8   Úfind_line_magic©r_   rÍ   rˆ  s      r   Údo_pdefÚPdb.do_pdef¸  óT   € ð �}‰}Ñ(Ð(Ð(à�t×+Ñ+Ð,Ø˜Ÿ™×/Ñ/Ð0ð
ˆ
ð 	�
‰
×"Ñ" 6Ô*¨3ÓFr   c                ó¬   • U R                   c   eSU R                  4SU R                   R                  4/nU R                  R	                  S5      " XS9  g)zDPrint the docstring for an object.

The debugger interface to %pdoc.Nr„  r…  Úpdocr‡  r‰  r‹  s      r   Údo_pdocÚPdb.do_pdocÃ  rŽ  r   c                ó¬   • U R                   c   eSU R                  4SU R                   R                  4/nU R                  R	                  S5      " XS9  g)zePrint (or run through pager) the file where an object is defined.

The debugger interface to %pfile.
Nr„  r…  Úpfiler‡  r‰  r‹  s      r   Údo_pfileÚPdb.do_pfileÎ  sT   € ð
 �}‰}Ñ(Ð(Ð(à�t×+Ñ+Ð,Ø˜Ÿ™×/Ñ/Ð0ð
ˆ
ð 	�
‰
×"Ñ" 7Ô+¨CÓGr   c                ó¬   • U R                   c   eSU R                  4SU R                   R                  4/nU R                  R	                  S5      " XS9  g)z\Provide detailed information about an object.

The debugger interface to %pinfo, i.e., obj?.Nr„  r…  Úpinfor‡  r‰  r‹  s      r   Údo_pinfoÚPdb.do_pinfoÚ  sT   € ð �}‰}Ñ(Ð(Ð(à�t×+Ñ+Ð,Ø˜Ÿ™×/Ñ/Ð0ð
ˆ
ð 	�
‰
×"Ñ" 7Ô+¨CÓGr   c                ó¬   • U R                   c   eSU R                  4SU R                   R                  4/nU R                  R	                  S5      " XS9  g)zdProvide extra detailed information about an object.

The debugger interface to %pinfo2, i.e., obj??.Nr„  r…  Úpinfo2r‡  r‰  r‹  s      r   Ú	do_pinfo2ÚPdb.do_pinfo2å  sT   € ð �}‰}Ñ(Ð(Ð(à�t×+Ñ+Ð,Ø˜Ÿ™×/Ñ/Ð0ð
ˆ
ð 	�
‰
×"Ñ" 8Ô,¨SÓHr   c                ó¬   • U R                   c   eSU R                  4SU R                   R                  4/nU R                  R	                  S5      " XS9  g)z;Print (or run through pager) the source code for an object.Nr„  r…  Úpsourcer‡  r‰  r‹  s      r   Ú
do_psourceÚPdb.do_psourceð  sR   € à�}‰}Ñ(Ð(Ð(à�t×+Ñ+Ð,Ø˜Ÿ™×/Ñ/Ð0ð
ˆ
ð 	�
‰
×"Ñ" 9Ô-¨cÓIr   c                óÐ   • U(       a   [        U5      nU R	                  U5        gU R	                  5         g! [         a$  nU R                  [        U5      5         SnAgSnAff = f)a  w(here)
Print a stack trace, with the most recent frame at the bottom.
An arrow indicates the "current frame", which determines the
context of most commands. 'bt' is an alias for this command.

Take a number as argument as an (optional) number of context line to
printN)r;   r   rÉ   r9   rô   )r_   rÍ   rJ   r5  s       r   Údo_whereÚPdb.do_whereù  sV   € ö ðÜ˜c›(�ð ×"Ñ" 7Õ+à×"Ñ"Õ$øô ó Ø—
‘
œ3˜s›8Ô$Üûðús   ‰7 ·
A%ÁA Á A%c                ó&  >• [         TU ]  U5      nU(       a  U$ U R                  S   (       ad  [        UR                  R
                  ;   a  gUR                  (       a4  U R                  UR                  5      R                  [        5      (       a  gg)zû
_stop_in_decorator_internals is overly restrictive, as we may still want
to trace function calls, so we need to also update break_anywhere so
that is we don't `stop_here`, because of debugger skip, we may still
stop at any point inside the function

rB   TF)	r   Úbreak_anywherer\   ÚDEBUGGERSKIPr‘   Úco_varnamesr}   r    Úget)r_   r�   Úsupr‚   s      €r   r§  ÚPdb.break_anywhere  sk   ø€ ô ‰gÑ$ UÓ+ˆÞØˆJØ×Ñ˜N×+Ü˜uŸ|™|×7Ñ7Ó7ØØ�|�| × 6Ñ 6°u·|±|Ó D× HÑ HÌ× VÑ VØØr   c                óN   • U R                   S   (       d  gU R                  U5      $ )zM
Utility to tell us whether we are in a decorator internal and should stop.

rB   F)r\   Ú_cachable_skiprÿ   s     r   Ú)_is_in_decorator_internal_and_should_skipÚ-Pdb._is_in_decorator_internal_and_should_skip   s&   € ð ×Ñ ×/Øà×"Ñ" 5Ó)Ð)r   i   c                ó¼   • [        USS5      (       aJ  UR                  nU R                  U5      R                  [        5      (       a  g[        USS5      (       a  MJ  g)zÎ
Cache looking up for DEBUGGERSKIP on parent frame.

This should speedup walking through deep frame when one of the highest
one does have a debugger skip.

This is likely to introduce fake positive though.
r}   NT)rŸ   r}   r    rª  r¨  rÿ   s     r   Ú%_cached_one_parent_frame_debuggerskipÚ)Pdb._cached_one_parent_frame_debuggerskip+  sQ   € ô �e˜X t×,Ñ,Ø—L‘LˆEØ×%Ñ% eÓ,×0Ñ0´×>Ñ>Øô �e˜X t×,Ó,ð r   c                óp   • [         UR                  R                  ;   a  gU R                  U5      (       a  gg)NTF)r¨  r‘   r©  r²  rÿ   s     r   r®  ÚPdb._cachable_skip;  s2   € ô ˜5Ÿ<™<×3Ñ3Ó3Øð ×5Ñ5°e×<Ñ<Øàr   c                ó8  >• U R                  U5      SL a  gSnU R                  (       a  U R                  U5      nU(       aM  U R                  (       a<  [	        U R
                  R                  [        R                  S4[        S4/5      5        U R                  (       am  U R                  UR                  R                  SS5      5      (       a=  [	        U R
                  R                  [        R                  S4[        S4/5      5        g[        TU ]9  U5      $ )NTFz#    [... skipped 1 hidden frame(s)]rÖ   r   r%   z%    [... skipped 1 ignored module(s)])r¯  rY   r£   rZ   rï   rp   rì   r   rí   ÚskipÚis_skipped_modulern  rª  r   Ú	stop_here)r_   r�   rò   r‚   s      €r   r¹  ÚPdb.stop_hereG  sõ   ø€ Ø×9Ñ9¸%Ó@ÀDÒHØàˆØ××Ø×+Ñ+¨EÓ2ˆFÞØ×"×"ÜØ—J‘J×%Ñ%ô !&§¡Ø Eðô # D˜Mðóô
ð �9�9˜×/Ñ/°·±×0CÑ0CÀJÐPRÓ0S×TÑTÜØ—
‘
×!Ñ!ô "ŸM™MØCðô  ˜ðóô
ð ä‰wÑ  Ó'Ð'r   c                óp  • U R                   S:X  a  U R                  S5        g [        U=(       d    S5      nSnSnUS:  a  SnOëSnU R	                  U R
                  5      n[        U R                   S-
  SS5       Hœ  nXx   =(       a    U R                  n	U R                  =(       a;    U R                  U R
                  U   S   R                  R                  SS5      5      n
U	(       d  U
(       a  U	(       a  US-  nU
(       a  US-  nM�  US-  nXb:¼  d  Mœ    O   U R                  S	5        gUnU R                  U5        X4-   nU(       aG  [        U R                  R                  [         R"                  S
U SU SU S34[         S4/5      5        gg! [         a    U R                  SU-  5         gf = f)z˜u(p) [count]
Move the current frame count (default one) levels up in the
stack trace (to an older frame).

Will skip hidden frames and ignored modules.
r   zOldest frameNr…   úInvalid frame count (%s)rß   r   r%   z�all frames above skipped (hidden frames and ignored modules). Use `skip_hidden False` for hidden frames or unignore_module for ignored modules.ú    [... skipped ú frame(s): ú hidden frames + ú ignored modules]rÖ   )rÌ   rÉ   r;   r   r­   rŠ   r?  rY   r·  r¸  rn  rª  Ú_select_framerï   rp   rì   r   rí   )r_   rÍ   ÚcountÚhidden_skippedÚmodule_skippedÚ	_newframeÚcounterr­   rª   Úshould_skip_hiddenÚshould_skip_moduleÚtotal_skippeds               r   Údo_upÚ	Pdb.do_upl  sÅ  € ð �=‰=˜AÓØ�J‰J�~Ô&Øð	Ü˜Ÿ˜q“MˆEð
 ˆØˆà�1‹9Ø‰IàˆGØ ×.Ñ.¨t¯z©zÓ:ˆMä˜4Ÿ=™=¨1Ñ,¨b°"Ö5�Ø%2Ñ%5×%J¸$×:JÑ:JÐ"Ø%)§Y¡Y÷ &°4×3IÑ3IØ—J‘J˜q‘M !Ñ$×.Ñ.×2Ñ2°:¸rÓBó4Ð"ö &Ö);Þ)Ø&¨!Ñ+˜Þ)Ø&¨!Ñ+˜ÙØ˜1‘�ØÕ#Ùñ 6ð" —
‘
ð fôð àˆIØ×Ñ˜9Ô%à&Ñ7ˆÞÜØ—
‘
×!Ñ!ô "ŸM™MØ/°¨¸kÈ.ÐIYÐYjÐkyÐjzð  {Lð  Mðô  ˜ðóõ
ð øôO ó 	Ø�J‰JÐ1°CÑ7Ô8Ùð	ús   ¤F ÆF5Æ4F5c                óì  • U R                   S-   [        U R                  5      :X  a  U R                  S5        g [	        U=(       d    S5      nUS:  a  [        U R                  5      S-
  nGORSnSnSnU R                  U R                  5      n[        U R                   S-   [        U R                  5      5       Hœ  nXx   =(       a    U R                  n	U R                  =(       a;    U R                  U R                  U   S   R                  R                  SS5      5      n
U	(       d  U
(       a  U	(       a  US-  nU
(       a  US-  nM�  US-  nXB:¼  d  Mœ    O   U R                  S5        gXV-   nU(       aF  [        U R                  R                  [         R"                  S	U S
U SU S34[         S4/5      5        UnU R%                  U5        g! [
         a    U R                  SU-  5         gf = f)z›d(own) [count]
Move the current frame count (default one) levels down in the
stack trace (to a newer frame).

Will skip hidden frames and ignored modules.
r…   zNewest frameNr¼  r   r   r%   z�all frames below skipped (hidden frames and ignored modules). Use `skip_hidden False` for hidden frames or unignore_module for ignored modules.r½  r¾  r¿  rÀ  rÖ   )rÌ   r‡   rŠ   rÉ   r;   r   r­   r?  rY   r·  r¸  rn  rª  rï   rp   rì   r   rí   rÁ  )r_   rÍ   rÂ  rÅ  rÆ  rÃ  rÄ  r­   rª   rÇ  rÈ  rÉ  s               r   Údo_downÚPdb.do_down®  sâ  € ð �=‰=˜1Ñ¤ D§J¡J£Ó/Ø�J‰J�~Ô&Øð	Ü˜Ÿ˜q“MˆEð �1‹9Ü˜DŸJ™J›¨!Ñ+ŠIàˆGØˆNØˆNØ ×.Ñ.¨t¯z©zÓ:ˆMä˜4Ÿ=™=¨1Ñ,¬c°$·*±*«oÖ>�Ø%2Ñ%5×%J¸$×:JÑ:JÐ"Ø%)§Y¡Y÷ &°4×3IÑ3IØ—J‘J˜q‘M !Ñ$×.Ñ.×2Ñ2°:¸rÓBó4Ð"ö &Ö);Þ)Ø&¨!Ñ+˜Þ)Ø&¨!Ñ+˜ÙØ˜1‘�ØÕ#Ùñ ?ð  —
‘
ð fôð à*Ñ;ˆMÞÜØ—J‘J×%Ñ%ô !&§¡Ø"3°M°?À+ÈnÐM]Ð]nÐo}Ðn~ð  Pð  !Qðô # D˜Mðóô
ð ˆIà×Ñ˜9Õ%øô_ ó 	Ø�J‰JÐ1°CÑ7Ô8Ùð	ús   ºG ÇG3Ç2G3c                ó€   • U R                   (       a"  [        S[        U R                   5       35        g[        S5        g)z"Display currently ignored modules.zCurrently ignored modules: z!No modules are currently ignored.N)r·  rï   Úsortedrg   s    r   Ú_show_ignored_modulesÚPdb._show_ignored_modulesî  s,   € à�9�9ÜÐ/´°t·y±yÓ0AÐ/BÐCÕDäÐ5Õ6r   c                óÂ   • U R                   c  [        5       U l         UR                  5       nU(       d  U R                  5         gU R                   R	                  U5        g)aî  ignore_module <module_name>

Add a module to the list of modules to skip when navigating frames.
When a module is ignored, the debugger will automatically skip over
frames from that module.

Supports wildcard patterns using fnmatch syntax:

Usage:
    ignore_module threading     # Skip threading module frames
    ignore_module asyncio.\*    # Skip all asyncio submodules
    ignore_module \*.tests      # Skip all test modules
    ignore_module               # List currently ignored modules
N)r·  rS  rP  rÑ  Úadd©r_   rÍ   Úmodule_names      r   Údo_ignore_moduleÚPdb.do_ignore_moduleõ  sD   € ð  �9‰9ÑÜ›ˆDŒIà—i‘i“kˆæØ×&Ñ&Ô(Øà�	‰	�‰�kÕ"r   c                ó"  • U R                   c  [        5       U l         UR                  5       nU(       d  U R                  5         g U R                   R	                  U5        g! [
         a"    [        SU S35        U R                  5          gf = f)a€  unignore_module <module_name>

Remove a module from the list of modules to skip when navigating frames.
This will allow the debugger to step into frames from the specified module.

Usage:
    unignore_module threading   # Stop ignoring threading module frames
    unignore_module asyncio.\*  # Remove asyncio.* pattern
    unignore_module             # List currently ignored modules
NzModule z is not currently ignored)r·  rS  rP  rÑ  ÚremoveÚKeyErrorrï   rÕ  s      r   Údo_unignore_moduleÚPdb.do_unignore_module  sx   € ð �9‰9ÑÜ›ˆDŒIà—i‘i“kˆæØ×&Ñ&Ô(Øð	)Ø�I‰I×Ñ˜[Õ)øÜó 	)Ü�G˜K˜=Ð(AÐBÔCØ×&Ñ&Ö(ð	)ús   ÁA" Á")BÂBc                ó¦   •  [        U5      nUS::  a
  [        5       eX l        g! [         a"    U R                  SU R                   S35         gf = f)zocontext number_of_lines
Set the number of lines of source code to show when displaying
stacktrace information.
r   zJThe 'context' command requires a positive integer argument (current value z).N)r;   r   rJ   rÉ   )r_   rJ   Únew_contexts      r   Ú
do_contextÚPdb.do_context+  sU   € ð
	Ü˜g›,ˆKØ˜aÓÜ “lÐ"Ø&�LøÜó 	Ø�J‰JØ\Ð]a×]iÑ]iÐ\jÐjlÐmöð	ús   ‚!$ ¤)AÁA)r>   r=   r<   r\   r:   rR   rJ   rN   r~   rd  rú   rV   rX   rZ   r8   r·  rY   )NNNrD   )rJ   zint | None | str)Úreturnr;   )rj   z	int | strrâ  ÚNoner,   )rJ   z
int | None)z
-> )ró   útuple[FrameType, int]rù   r9   râ  rã  )z: )ró   rä  r  r9   râ  r9   )F)r•   r9   rú   r;   rá   r9   r  Úbool)r•   r9   rB  r;   rC  r;   râ  rã  )rÍ   r9   )rJ   r9   )Fr   r   r   r   r2   Ú__annotations__r]   r¶   r[   rK   ÚpropertyrJ   ÚsetterrW   rp   ry   r€   r†   rˆ   r£   r­   r½   r   rÁ   rÓ   r×   rà   ræ   r5   r   rä   Údo_qrô   rË   r    rî   r  rE  r[  r^  rh  Údo_lrr  rw  Údo_llr�  rŒ  r‘  r•  r™  r�  r¡  r¤  Údo_wr§  r¯  r   r²  r®  r¹  rÊ  rÍ  Údo_dÚdo_urÑ  r×  rÜ  rà  r   Ú__classcell__)r‚   s   @r   r   r   Ò   sx  ø‡ ñ
ð ÓØÓØƒMà.Ó.Ø!Ó!æØ&)Ð#ð ØØ Øñ	Ðð ØØØ$%ðM.ð
 "õM.ð^ óó ðð ‡^�^óó ðò&ð ñ8ó ð8ò	0÷(õòòò*ö  ò!	;ðF 
ñ	2ó 
ð	2ò",	@ò\Fõ
ò)ñ *¨+°v·~±~ÓFÐF€Dˆ7ö#ðL IPð
FØ1ð
FØBEð
Fà	õ
Fò"ð2 ðh*à+ðh*ð ðh*ð 
õ	h*ðV DIð#Øð#Ø%(ð#Ø03ð#Ø<@õ#ô>.ò`+òZò$FðB €Dò<òNð €Eò!ò,	Gò	Gò
Hò	Hò	IòJô%ð$ €Dõò&	*ñ ˆtƒ_ñó ðñ ˆtƒ_ñ	ó ð	õ#(òJ@òD;&ðz €DØ€Dò7ò#ò6)÷6ò r   r   c                  ó(   • \ rS rSrSrSS jrS rSrg)ÚInterruptiblePdbi;  zJVersion of debugger where KeyboardInterrupt exits the debugger altogether.Nc                ó´   •  [         R                  XS9$ ! [         a8    S U l        U R	                  S5        [
        R                  " S5        SU l        e f = f)z>Wrap cmdloop() such that KeyboardInterrupt stops the debugger.)Úintroc                ó   • g)NFr   )r�   s    r   Ú<lambda>Ú*InterruptiblePdb.cmdloop.<locals>.<lambda>C  s   € ¨5r   r%   NF)r   ÚcmdlooprØ   r¹  rä   rL   r{  Úquitting)r_   ró  s     r   r÷  ÚInterruptiblePdb.cmdloop>  sP   € ð	Ü—>‘> $�>Ð4Ð4øÜ ó 	Ù0ˆDŒNØ�L‰L˜ÔÜ�LŠL˜ÔØ!ˆDŒMØð	ús
   ‚ •AAc                ó„   •   SU l         U R                  5         SU l         g ! [         a    U R                  S5        e f = f)NTFz--KeyboardInterrupt--)Úallow_kbdintr÷  rØ   r·   rg   s    r   Ú_cmdloopÚInterruptiblePdb._cmdloopI  sG   € Øð	ð %)�Ô!Ø—‘”Ø$)�Ô!ØøÜ$ó Ø—‘Ð4Ô5Øðús   ƒ" ¢?)rû  rø  r¹  r,   )r   r   r   r   r2   r÷  rü  r   r   r   r   rñ  rñ  ;  s   † ÙTô	õr   rñ  c                ó®   • [        5       nUb  UR                  U5        UR                  U =(       d    [        R                  " 5       R
                  5        g)za
Start debugging from `frame`.

If frame is not specified, debugging starts from caller's frame.
N)r   r·   r€   rL   r|   r}   )r�   ÚheaderÚpdbs      r   r€   r€   W  s:   € ô ‹%€CØÑØ�‰�FÔØ‡M�M�%×1œ3Ÿ=š=›?×1Ñ1Õ2r   r,   )r%   )NN)-r2   Ú
__future__r   rk  r  rš   ÚrerL   ru   Ú
contextlibr   Ú	functoolsr   ÚIPythonr   ÚIPython.core.debugger_backportr   ÚIPython.utilsr   ÚIPython.utils.PyColorizer	   Útypingr
   Útypesr   r   r   Ú_OldPdbÚpygments.tokenr   rM   r   ÚIPython.core.interactiveshellr   Ú__skip_doctest__rX   r¨  r]   r#   Úcompiler&   r)   r5   rñ  r€   r   r   r   Ú<module>r     sÖ   ðñoõv #ã Û Û 	Û 	Û 
Û Ý %Ý å Ý =Ý $Ý 0å  Ý õ Ý  ð ×Ñ�gÓôÐ# Wõ ð €Fæå>ð Ð à	€ð "€ð
 ×#Ñ# gÑ-Ð ôð —:’:˜mÓ,Ð ò6ôôfˆ&ô fôR#�sô õ8	3r   