
    +h                       U d dl mZ d dlZd dlmZ d dlmZ ej                  r$ddl	m
Z
 ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ  G d d      ZdZ ed      Zded<    ede      Z eee      Zded<    eede      Zded<    eede      Zded<   dZ ed      Zded<    ede      Z eee      Zded <    eede      Zd!ed<    eed"e      Z d#ed"<   d%d$Z!y)&    )annotationsN)
ContextVar)
LocalProxy   )Flask)_AppCtxGlobals)
AppContext)RequestContext)SessionMixin)Requestc                  &    e Zd ZddZedd       Zy)
_FakeStackc                     || _         || _        y )N)namecv)selfr   r   s      @/var/www/html/venv/lib/python3.12/site-packages/flask/globals.py__init__z_FakeStack.__init__   s    	    c                    dd l }|j                  d| j                   d| j                   dt        d       | j                  j                  d       S )Nr   z'_zW_ctx_stack' is deprecated and will be removed in Flask 2.4. Use 'g' to store data, or 'z$_ctx' to access the current context.   
stacklevel)warningswarnr   DeprecationWarningr   get)r   r   s     r   topz_FakeStack.top   sV     ++/99+ 6  	 	
 ww{{4  r   N)r   strr   zContextVar[t.Any]returnNone)r    zt.Any | None)__name__
__module____qualname__r   propertyr    r   r   r   r      s     
! 
!r   r   zWorking outside of application context.

This typically means that you attempted to use functionality that needed
the current application. To solve this, set up an application context
with app.app_context(). See the documentation for more information.zflask.app_ctxzContextVar[AppContext]_cv_appapp)unbound_messager	   app_ctxr   current_appgr   zWorking outside of request context.

This typically means that you attempted to use functionality that needed
an active HTTP request. Consult the documentation on testing for
information about how to avoid this problem.zflask.request_ctxzContextVar[RequestContext]_cv_requestrequestr
   request_ctxr   sessionr   c                    | dk(  r"dd l }|j                  dt        d       t        S | dk(  r"dd l }|j                  dt        d       t        S t        |       )N_app_ctx_stackr   z@'_app_ctx_stack' is deprecated and will be removed in Flask 2.4.r   r   _request_ctx_stackzD'_request_ctx_stack' is deprecated and will be removed in Flask 2.4.)r   r   r   __app_ctx_stack__request_ctx_stackAttributeError)r   r   s     r   __getattr__r7   K   si    N 	 	

 ##R 	 	

 #"

r   )r   r   r    zt.Any)"
__future__r   typingtcontextvarsr   werkzeug.localr   TYPE_CHECKINGr(   r   ctxr   r	   r
   sessionsr   wrappersr   r   _no_app_msgr'   __annotations__r4   r*   r+   r,   _no_req_msgr-   r5   r/   r.   r0   r7   r&   r   r   <module>rD      s   "  " %??##&!! !& #-_"=	 =UG, [   UKU  S+>  +55H*I' I K8 (^  K  #K 
r   