
    vKg                         S SK r S SKrS SKJrJr  S SKJr  S SKJr  \ R                  R                  \R                  " 5       S5      rSrSrSrS	r " S
 S\R"                  5      rg)    N)OptionalSequence)
optmanager)tlsz.seleniumwireseleniumwirei  i   i   c                   ,   ^  \ rS rSrSU 4S jjrSrU =r$ )Options   c           
        > [         TU ]  5         U R                  S[        SS5        U R                  S[        SS5        U R                  S[        SS5        U R                  S	[        [
        S
5        U R                  S[        [           / S5        U R                  S[        [           S S5        U R                  S[        [           S S5        U R                  S[        [           S S5        U R                  S[        [           S S5        U R                  S[        [           / S5        U R                  S[        [           / S5        U R                  S[        SS5        U R                  S[        [        S5        U R                  S[        SS5        U R                  S [        S!S"5        U R                  S#[        [           / S$5        U R                  S%[        SS&5        U R                  S'[        SS(5        U R                  S)[        SS*5        U R                  S+[        SS,5        U R                  S-[        SS.5        U R                  S/[        SS05        U R                  S1[        S2S3[        [        R                  R                  5       5      S49  U R                  S5[        S2S6[        [        R                  R                  5       5      S49  U R                  S7[        SS85        U R                  S9[        [           S S:5        U R                  S;[        [           S S<5        U R                  S=[        [           / S>5        U R                  S?[        [        S@5        U R                  SA[        [        SB5        U R                  SC[        SSD5        U R                  SE[        SSF5        U R                   " SG0 UD6  g )HNserverTz-Start a mitmproxy server. Enabled by default.showhostFz2Use the Host header to construct URLs for display."add_upstream_certs_to_client_chainz
            Add all certificates of the upstream server to the certificate chain
            that will be served to the mitmproxy client, as extras.
            confdirz6Location of the default mitmproxy configuration files.certsa  
            SSL certificates of the form "[domain=]path". The domain may include
            a wildcard, and is equal to "*" if not specified. The file at path
            is a certificate in PEM format. If a private key is included in the
            PEM, it is used, else the default key in the conf dir is used. The
            PEM file should contain the full certificate chain, with the leaf
            certificate as the first entry.
            cert_passphrasezHPassphrase for decrypting the private key provided in the --cert option.ciphers_clientzBSet supported ciphers for client connections using OpenSSL syntax.ciphers_serverzBSet supported ciphers for server connections using OpenSSL syntax.client_certsz%Client certificate file or directory.ignore_hostsa  
            Ignore host and forward all traffic without processing it. In
            transparent mode, it is recommended to use an IP address (range),
            not the hostname. In regular mode, only SSL traffic is ignored and
            the hostname should be used. The supplied value is interpreted as a
            regular expression and matched on the ip or the hostname.
            allow_hostszOpposite of --ignore-hosts.listen_host zAddress to bind mitmproxy to.listen_portzProxy service port.upstream_bind_addressz%Address to bind upstream requests to.moderegularag  
            Mode can be "regular", "transparent", "socks5", "reverse:SPEC",
            or "upstream:SPEC". For reverse and upstream mitmproxy modes, SPEC
            is host specification in the form of "http[s]://host[:port]".
            Upstream mitmproxy mode also supports a socks SPEC in the form of
            "socks5[h]://host[:port]".
            no_proxyz;List of hosts for which an upstream proxy will be bypassed.upstream_certz:Connect to upstream server to look up certificate details.http2zDEnable/disable HTTP/2 support. HTTP/2 support is enabled by default.http2_priorityz
            PRIORITY forwarding for HTTP/2 connections. Disabled by default to ensure compatibility
            with misbehaving servers.
            	websocketzJEnable/disable WebSocket support. WebSocket support is enabled by default.rawtcpzEnable/disable experimental raw TCP support. TCP connections starting with non-ascii bytes are treated as if they would match tcp_hosts. The heuristic is very rough, use with caution. Disabled by default. spoof_source_addressz
            Use the client's IP for server-side connections. Combine with
            --upstream-bind-address to spoof a fixed source address.
            ssl_version_clientsecurez
            Set supported SSL/TLS versions for client connections. SSLv2, SSLv3
            and 'all' are INSECURE. Defaults to secure, which is TLS1.0+.
            )choicesssl_version_serverz
            Set supported SSL/TLS versions for server connections. SSLv2, SSLv3
            and 'all' are INSECURE. Defaults to secure, which is TLS1.0+.
            ssl_insecurez3Do not verify upstream server SSL/TLS certificates.#ssl_verify_upstream_trusted_confdirz
            Path to a directory of trusted CA certificates for upstream server
            verification prepared using the c_rehash tool.
            ssl_verify_upstream_trusted_caz/Path to a PEM formatted trusted CA certificate.	tcp_hostsz
            Generic TCP SSL mitmproxy mode for all hosts that match the pattern.
            Similar to --ignore-hosts, but SSL connections are intercepted.
            The communication contents are printed to the log in verbose mode.
            content_view_lines_cutoffz{
            Flow content view lines limit. Limit is enabled by default to
            speedup flows browsing.
            key_sizez?
            TLS key size for certificates and CA.
            relax_http_form_validationz7
            Disable HTTP form validation.
            suppress_connection_errorsz
            When True log connection errors at debug level. Set to
            False to log at error level with full tracebacks.
             )super__init__
add_optionboolstrCONF_DIRr   r   intLISTEN_PORTlistr   VERSION_CHOICESkeysCONTENT_VIEW_LINES_CUTOFFKEY_SIZEupdate)selfkwargs	__class__s     i/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/seleniumwire/thirdparty/mitmproxy/options.pyr2   Options.__init__   s   dD;	
 	e@	
 	0$	
 	sHD	
 	Xc]B
	
 	x}dV	
 	hsmTP	
 	hsmTP	
 	HSM43	
 	HSM2		
 	8C=")	
 	3+	
 	3!	
 	#S"3	
 	C		
 	rI	
 	T4H	

 	T44	

 	dE	
 	t7	

 	dE2	
 	"D%	
 	 #x ,,1134 	 	
 	 #x ,,1134 	 	
 	D%A	
 	18C=$	
 	,hsmT=	
 	#	
 	'.G	
 	X	
 	($	
 	($	
 	f    r0   )returnN)__name__
__module____qualname____firstlineno__r2   __static_attributes____classcell__)rA   s   @rB   r	   r	      s    @ @rD   r	   )ostempfiletypingr   r   !seleniumwire.thirdparty.mitmproxyr   %seleniumwire.thirdparty.mitmproxy.netr   pathjoin
gettempdirr6   CONF_BASENAMEr8   r<   r=   
OptManagerr	   r0   rD   rB   <module>rV      sZ    	  % 8 577<<++-? Bj## BrD   