Ë
     ^ãj‘  ã                  óÌ   — d dl mZ d dlZd dlmZmZmZ ddlmZ erddl	m
Z
 ej                  duxr ej                  j                  «       Zed
d„«       Zeddd„«       Zddd	„Zy)é    )ÚannotationsN)ÚTYPE_CHECKINGÚNoReturnÚoverloadé   )Ú_context_stack)ÚReplContextc                  ó   — y ©N© r   ó    úU/var/www/html/metafoliadorv2/venv/lib/python3.12/site-packages/click_repl/globals_.pyÚget_current_repl_ctxr      ó   € àr   c                 ó   — y r   r   ©Úsilents    r   r   r      r   r   c                óN   — 	 t         d   S # t        $ r | st        d«      ‚Y yw xY w)a×  
    Retrieves the current click-repl context.

    This function provides a way to access the context from anywhere
    in the code. This function serves as a more implicit alternative to the
    :func:`~click.core.pass_context` decorator.

    Parameters
    ----------
    silent
        If set to :obj:`True`, the function returns :obj:`None` if no context
        is available. The default behavior is to raise a :exc:`~RuntimeError`.

    Returns
    -------
    :class:`~click_repl.core.ReplContext` | None
        REPL context object if available, or :obj:`None` if ``silent`` is :obj:`True`.

    Raises
    ------
    RuntimeError
        If there's no context object in the stack and ``silent`` is :obj:`False`.
    éÿÿÿÿz&There is no active click-repl context.N)r   Ú
IndexErrorÚRuntimeErrorr   s    r   r   r      s=   € ð2IÜ˜bÑ!Ð!øÜò IÙÜÐGÓHÐHð ð ð	Iús   ‚ ‹$£$)ÚreturnzReplContext | NoReturn)F)r   Úboolr   zReplContext | NoReturn | None)Ú
__future__r   ÚsysÚtypingr   r   r   Ú
_ctx_stackr   Úcorer	   ÚstdinÚisattyÚISATTYr   r   r   r   ú<module>r"      si   ðÝ "ã 
ß 4Ñ 4å &áÝ!ð 
�‰˜$Ð	Ò	5 3§9¡9×#3Ñ#3Ó#5€ð 
òó 
ðð 
óó 
ðõr   