
    VGh                        d Z ddlZddlZddlZddlZddlZddlZddlZ	ddl
Z	ddlZ	ddlZ	ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmc mZ ddlZddlZddlmZ ddlm Z! ddlm"Z# ddl$m%Z%m&Z& ddl'm(Z( d	d
l)m*Z+ d	dl)m,Z- d	dl.m/Z0 d	dl1m2Z3  e(e4dd       d Z5ejl                  fdZ7ejp                  Z9e:Z;e:jx                  Z=e>Z?ej                  ZAe	j                  xZCZDe	j                  j                  xZFZGe	j                  xZIZJe	j                  j                  xZLZMej                  xZOZPej                  xZRZSeTZUej                  ZWej                  ZYej                  xZZZ[ej                  Z]ej                  j                  Z_e&Z`ej                  j                  xZcZde	j                  Zfe	j                  ZheiZjekfZlej                  Znd ZoepZqekeresfZte%Zuej                  j                  ZxeyZzej                  Z|ej                  Z~ej                  Zej                  Zej                  Zd Zej(                  Zej                  Ze3Zej                  Zej                  j                  Zej                  j                  Zej                  j                   Zej                  j$                  Zej                  j(                  Zej                  j,                  Zej0                  Zej0                  j4                  Zej8                  Zej0                  j<                  xZZejB                  xZZd ZeZd Ze:Zejp                  Zej                  Zej                  j                  Zej                  jX                  Zej                  j\                  Zej                  j`                  Zg Zy)z Do not use!     N)run)Pattern)match   )compat_expandusercompat_HTMLParseError)passthrough_module   )brotli)
websockets)AES)	HTTPErrorz...utils)WINDOWS_VT_MODEwindows_enable_vt_modec                  ,    t        j                  | i |S N)ctypesWINFUNCTYPE)argskwargss     ^/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/yt_dlp/compat/_legacy.pycompat_ctypes_WINFUNCTYPEr   -   s    t.v..    c                     ||| <   y r    )keyvalueenvs      r   compat_setenvr   1   s    CHr   c                     | S r   r   )r   s    r   <lambda>r!   M   s    v r   c                  "    t         j                  S r   )
subprocessDEVNULLr   r   r   r!   r!   X   s    
(:(: r   c                     | S r   r   )xpaths    r   r!   r!   h   s    U r   c                       y r   r   r   r   r   r!   r!   j   s    r   )__doc__base64collectionsr   getpasshtml.entitieshtmlhtml.parserhttp.clienthttphttp.cookiejarhttp.cookieshttp.server	itertoolsosshlexshutilsocketstructr#   tokenizeurllib.errorurlliburllib.parseurllib.requestxml.etree.ElementTreeetreeElementTreeasynciorer   compat_asyncio_runr   compat_Patternr   compat_Match r   r   compat_utilsr	   dependenciesr   compat_brotlir   compat_websocketsdependencies.Cryptodomer   compat_pycrypto_AESnetworking.exceptionsr   compat_HTTPError__name__r   environr   	b64decodecompat_base64_b64decodestrcompat_basestringcasefoldcompat_casefoldchr
compat_chrabccompat_collections_abc	cookiejarcompat_cookiejarcompat_http_cookiejarCookiecompat_cookiejar_Cookiecompat_http_cookiejar_Cookiecookiescompat_cookiescompat_http_cookiesSimpleCookiecompat_cookies_SimpleCookie compat_http_cookies_SimpleCookieElementcompat_etree_Element$compat_xml_etree_ElementTree_Elementregister_namespacecompat_etree_register_namespace#compat_xml_etree_register_namespacefiltercompat_filterget_terminal_sizecompat_get_terminal_sizegetenvcompat_getenvcompat_getpasscompat_getpass_getpassentitiescompat_html_entitieshtml5compat_html_entities_html5!compat_html_parser_HTMLParseErrorparser
HTMLParsercompat_HTMLParsercompat_html_parser_HTMLParserclientcompat_http_clientservercompat_http_serverinputcompat_inputintcompat_integer_typescountcompat_itertools_countcompat_kwargsmap
compat_mapfloatcomplexcompat_numeric_typescompat_os_path_expanduserpathrealpathcompat_os_path_realpathprintcompat_printsplitcompat_shlex_splitcreate_connectioncompat_socket_create_connectionStructcompat_Structpackcompat_struct_packunpackcompat_struct_unpackcompat_subprocess_get_DEVNULLcompat_tokenize_tokenizeerrorcompat_urllib_errorcompat_urllib_HTTPErrorparsecompat_urllib_parseparse_qscompat_urllib_parse_parse_qsquotecompat_urllib_parse_quote
quote_pluscompat_urllib_parse_quote_plusunquote_plus compat_urllib_parse_unquote_plusunquote_to_bytes$compat_urllib_parse_unquote_to_bytes
urlunparsecompat_urllib_parse_urlunparserequestcompat_urllib_requestDataHandler!compat_urllib_request_DataHandlerresponsecompat_urllib_responseurlretrievecompat_urlretrieve!compat_urllib_request_urlretrieve
ParseErrorcompat_xml_parse_error'compat_xml_etree_ElementTree_ParseErrorcompat_xpathzip
compat_zipworkaround_optparse_bug9161
compat_strcompat_b64decodecompat_urlparsecompat_parse_qsunquotecompat_urllib_parse_unquote	urlencodecompat_urllib_parse_urlencodeurlparsecompat_urllib_parse_urlparselegacyr   r   r   <module>r      s^               	          % %  	 - ( $ 6 , 2 : @ A 8Z)V W
/ #%**  !**  ,,
$ +/>> 9 (9=9N9N N 6'+|| 3$AEAZAZ Z >>Cmm K ;HMH`H` ` "E!33 		*1// 9'}} !]]00 $9 !48KK4J4J J 1[[ [[ w " %
UG, - ''** [[ "(":": [[ }}  : #,, ll * ll %||44 "LL.. !'!8!8 #)<<#<#<  '-||'D'D $!'!8!8  $*NN$>$> ! 9?9S9S S 6CHCSCS S @"
* 
## ,,,,''$ll22  & 6 6 %||44 	r   