
    V|hs                        S r SSKrSSKrSSKrSSKrSSKrSSKrSSKr	SSK
r	SSKr	SSKr	SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJs  Jr  SSKrSSKrSSKJr  SSKJ r!  SSKJ"r#  SSK$J%r%J&r&  SSK'J(r(  S	S
K)J*r+  S	SK)J,r-  S	SK.J/r0  S	SK1J2r3  \(" \4SS5        S r5\Rl                  4S jr7\Rp                  r9\:r;\:Rx                  r=\>r?\R                  rA\	R                  =rCrD\	R                  R                  =rFrG\	R                  =rIrJ\	R                  R                  =rLrM\R                  =rOrP\R                  =rRrS\TrU\R                  rW\R                  rY\R                  =rZr[\R                  r]\R                  R                  r_\&r`\R                  R                  =rcrd\	R                  rf\	R                  rh\irj\k4rl\R                  rnS ro\prq\k\r\s4rt\%ru\R                  R                  rx\yrz\R                  r|\R                  r~\R                  r\GR                  r\GR                  rS r\R(                  r\GR                  r\3r\GR                  r\GR                  GR                  r\GR                  GR                  r\GR                  GR                   r\GR                  GR$                  r\GR                  GR(                  r\GR                  GR,                  r\GR0                  r\GR0                  GR4                  r\GR8                  r\GR0                  GR<                  =rr\GRB                  =rrS r\rS r\:r\Rp                  r\GR                  r\GR                  GR                  r\GR                  GRX                  r\GR                  GR\                  r\GR                  GR`                  r/ rg)zDo not use!     N)run)Pattern)match   )compat_expandusercompat_HTMLParseError)passthrough_module   )brotli)
websockets)AES)	HTTPErrorz...utils)windows_enable_vt_modec                  .    [         R                  " U 0 UD6$ N)ctypesWINFUNCTYPE)argskwargss     O/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/compat/_legacy.pycompat_ctypes_WINFUNCTYPEr   -   s    t.v..    c                     XU '   g r    )keyvalueenvs      r   compat_setenvr   1   s	    Hr   c                     U $ r   r   )r   s    r   <lambda>r    M   s    vr   c                  "    [         R                  $ r   )
subprocessDEVNULLr   r   r   r    r    X   s
    
(:(:r   c                     U $ r   r   )xpaths    r   r    r    h   s    Ur   c                      g r   r   r   r   r   r    r    j   s    dr   )__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)D E
/ #%**  !**  ,,
$ +/>> 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   