
    F\h                    h   S r SqSSKrSSKrSSKrSSKrSSKr\R                  S:H  r\(       a	  SSK	r
SSKrOSSKr
\(       a  SS/rOS/r\" S \ 5       5      (       d   e\S   r\" \5      rSR%                  \5      r\ V s1 s H  n SU  3iM
     sn rS	rS
r\\-   rS r\" 5       rS rS rS rS r\(       a  S rOS rS rS rS r S r!S r"\(       a  S r#OS r#S r$SQS jr%\&" \%RN                  5      r(SRS                  SS5      S-   r*\+RY                  \*S5      r-Sr.S r/S!/r0\(       a  \0Rc                  S"5        \Rd                  " 5       r3S#/r4\4=r5r6SRSS$.S% jjr7S& r8S' r9S( r:S) r;S* r<S+ r=S, r>S- r?SSS. jr@STS/ jrASUS0 jrBS1 rC\D" 5       rESRS\ES2.S3 jjrFS4 rG " S5 S65      rH " S7 S85      rI " S9 S:\I5      rJ " S; S<5      rK " S= S>\K\J5      rL " S? S@\K\I5      rM " SA SB\K\I5      rN " SC SD5      rO " SE SF5      rP\PrQ " SG SH5      rR " SI SJ5      rS " SK SL\N5      rTSRSM jrUSN rVSO rWSP rXgs  sn f )Va^  Core implementation of path-based import.

This module is NOT meant to be directly imported! It has been designed such
that it can be bootstrapped into Python as the implementation of import. As
such it requires the injection of specific modules and attributes in order to
work. One should use importlib as the public-facing version of this module.

N    win32\/c              #   >   #    U  H  n[        U5      S :H  v   M     g7f)   N)len).0seps     4/usr/lib/python3.13/importlib/_bootstrap_external.py	<genexpr>r   .   s     
4OS3s8q=Os    :)win)cygwindarwiniostvoswatchosc                     ^ [         R                  R                  [        5      (       a5  [         R                  R                  [        5      (       a  SmOSmU4S jn U $ S n U $ )NPYTHONCASEOKs   PYTHONCASEOKc                  v   > [         R                  R                  (       + =(       a    T [        R                  ;   $ )z^True if filenames must be checked case-insensitively and ignore environment flags are not set.)sysflagsignore_environment_osenvironkeys   r   _relax_case%_make_relax_case.<locals>._relax_caseC   s$    yy333Js{{8JJ    c                      g)z5True if filenames must be checked case-insensitively.F r#   r!   r   r   r    G   s    r!   )r   platform
startswith_CASE_INSENSITIVE_PLATFORMS#_CASE_INSENSITIVE_PLATFORMS_STR_KEY)r   r   s    @r   _make_relax_caser(   <   sT    
||:;;<<""#FGG C!C	K 	 r!   c                 >    [        U 5      S-  R                  SS5      $ )z*Convert a 32-bit integer to little-endian.       little)intto_bytes)xs    r   _pack_uint32r0   O   s    FZ))!X66r!   c                 P    [        U 5      S:X  d   e[        R                  U S5      $ )z/Convert 8 bytes in little-endian to an integer.   r,   r   r-   
from_bytesdatas    r   _unpack_uint64r7   T   #    t9>>>>$))r!   c                 P    [        U 5      S:X  d   e[        R                  U S5      $ )z/Convert 4 bytes in little-endian to an integer.r+   r,   r3   r5   s    r   _unpack_uint32r:   Y   r8   r!   c                 P    [        U 5      S:X  d   e[        R                  U S5      $ )z/Convert 2 bytes in little-endian to an integer.   r,   r3   r5   s    r   _unpack_uint16r=   ^   r8   r!   c                     U (       d  g[        U 5      S:X  a  U S   $ Sn/ n[        [        R                  U 5       H  u  p4UR	                  [
        5      (       d  UR                  [
        5      (       a*  UR                  [        5      =(       d    Un[        U-   /nMc  UR                  S5      (       a<  UR                  5       UR                  5       :w  a  UnU/nM  UR                  U5        M  U=(       d    UnUR                  U5        M     U Vs/ s H   oU(       d  M  UR                  [        5      PM"     nn[        U5      S:X  a  US   (       d	  U[        -   $ U[        R                  U5      -   $ s  snf )Replacement for os.path.join().r   r   r   r   )r   mapr   _path_splitrootr%   path_sep_tupleendswithrstrippath_separatorspath_sepcasefoldappendjoin)
path_partsrootpathnew_roottailps         r   
_path_joinrP   e   s2   z?aa= !#"5"5zBNH"">22h6G6G6W6W7?4 4(""3''==?h&7&7&99 $D 6DKK%'4D! C 48=4a1))4=t9>$q'(?"hmmD)))	 >s   
E7"E7c                      [         R                  U  Vs/ s H   o(       d  M  UR                  [        5      PM"     sn5      $ s  snf )r?   )rF   rI   rD   rE   )rJ   parts     r   rP   rP      s@    }}*4>*4$ ;dkk/:*4> ? 	? >s
   
AAc                 d   ^  [        U 4S j[         5       5      nUS:  a  ST 4$ T SU T US-   S 4$ )z Replacement for os.path.split().c              3   F   >#    U  H  nTR                  U5      v   M     g 7fN)rfind)r	   rO   rL   s     r   r   _path_split.<locals>.<genexpr>   s     3?aDJJqMM?s   !r   r   Nr   )maxrE   )rL   is   ` r   _path_splitrZ      s>    3?33A1u4x8T!a%&\!!r!   c                 .    [         R                  " U 5      $ )zrStat the path.

Made a separate function to make it easier to override in experiments
(e.g. cache stat results).

)r   statrL   s    r   
_path_statr^      s     88D>r!   c                 ^     [        U 5      nUR                  S-  U:H  $ ! [         a     gf = f)z1Test whether the path is the specified mode type.Fi   )r^   OSErrorst_mode)rL   mode	stat_infos      r   _path_is_mode_typerd      s=    t$	 (T11  s    
,,c                     [        U S5      $ )zReplacement for os.path.isfile.i   )rd   r]   s    r   _path_isfilerf      s    dH--r!   c                 R    U (       d  [         R                  " 5       n [        U S5      $ )zReplacement for os.path.isdir.i @  )r   getcwdrd   r]   s    r   _path_isdirri      s    zz|dH--r!   c                     U (       d  g[         R                  " U 5      S   R                  SS5      n[        U5      S:  =(       a)    UR	                  S5      =(       d    UR                  S5      $ )Replacement for os.path.isabs.Fr   r   r   r   z\\)r   rA   replacer   r%   rC   )rL   rK   s     r   _path_isabsrm      sT    ""4(+33C>4y1}Q$//&"9"PT]]4=PQr!   c                 ,    U R                  [        5      $ )rk   )r%   rE   r]   s    r   rm   rm      s    //r!   c                     [        U 5      (       d@  [         H  nU R                  SU 35      n M     [        [        R
                  " 5       U 5      $ U $ )z Replacement for os.path.abspath..)rm   rE   removeprefixrP   r   rh   )rL   r
   s     r   _path_abspathrr      sE    t"C$$qY/D ##**,--r!   c                    U  S[        U 5       3n[        R                  " U[        R                  [        R                  -  [        R
                  -  US-  5      n [        R                  " US5       nUR                  U5      nSSS5        W[        U5      :w  a  [        S5      e[        R                  " X05        g! , (       d  f       N?= f! [         a)     [        R                  " U5        e ! [         a     e f = ff = f)zBest-effort function to write data to a path atomically.
Be prepared to handle a FileExistsError if concurrent writing of the
temporary file is attempted.rp     wbNz)os.write() didn't write the full pyc file)idr   openO_EXCLO_CREATO_WRONLY_ioFileIOwriter   r`   rl   unlink)rL   r6   rb   path_tmpfdfilebytes_writtens          r   _write_atomicr      s    
 qD
#H	(**s{{*S\\94%<
IB ZZD!T JJt,M "CI% EFFH# "!  	JJx  	  		sH   C 4B?8C ?
C	C 
DC21D2
C?<D>C??Di  r<   r,   s   
__pycache__zopt-z.pyz.pywz.pyc)optimizationc                n   Ub6  [         R                  " S[        5        Ub  Sn[        U5      eU(       a  SOSn[        R
                  " U 5      n [        U 5      u  pEUR                  S5      u  pgn[        R                  R                  n	U	c  [        S5      eSR                  U(       a  UOUXy/5      n
Uc;  [        R                  R                  S:X  a  SnO[        R                  R                  n[        U5      nUS:w  a1  UR!                  5       (       d  [#        U< S	35      eU
 S[$         U 3n
U
[&        S   -   n[        R(                  bT  [+        U5      nUS   S
:X  a  US   [,        ;  a  USS n[/        [        R(                  UR1                  [,        5      U5      $ [/        U[2        U5      $ )a  Given the path to a .py file, return the path to its .pyc file.

The .py file does not need to exist; this simply returns the path to the
.pyc file calculated as if the .py file were imported.

The 'optimization' parameter controls the presumed optimization level of
the bytecode file. If 'optimization' is not None, the string representation
of the argument is taken and verified to be alphanumeric (else ValueError
is raised).

The debug_override parameter is deprecated. If debug_override is not None,
a True value is the same as setting 'optimization' to the empty string
while a False value is equivalent to setting 'optimization' to '1'.

If sys.implementation.cache_tag is None then NotImplementedError is raised.

NzFthe debug_override parameter is deprecated; use 'optimization' insteadz2debug_override or optimization must be set to Noner   r   rp   $sys.implementation.cache_tag is Noner   z is not alphanumericr   r<   )	_warningswarnDeprecationWarning	TypeErrorr   fspathrZ   
rpartitionr   implementation	cache_tagNotImplementedErrorrI   r   optimizestrisalnum
ValueError_OPTBYTECODE_SUFFIXESpycache_prefixrr   rE   rP   lstrip_PYCACHE)rL   debug_overrider   messageheadrN   baser
   resttagalmost_filenamefilenames               r   cache_from_sourcer     s   $ ! 01C	E#JGG$$+r::dDT"JDooc*ODt



&
&C
{!"HIIgg$BCO99"L99--L|$Lr##%%//CDEE,-Qtf\NC!21!55H
% T"
 7c>d1g_<8D KK(
 	

 dHh//r!   c                 \   [         R                  R                  c  [        S5      e[        R
                  " U 5      n [        U 5      u  pSn[         R                  bP  [         R                  R                  [        5      nUR                  U[        -   5      (       a  U[        U5      S nSnU(       d,  [        U5      u  pU[        :w  a  [        [         SU < 35      eUR                  S5      nUS;  a  [        SU< 35      eUS	:X  ay  UR!                  SS
5      S   nUR                  ["        5      (       d  [        S["        < 35      eU[        ["        5      S nUR%                  5       (       d  [        SU< S35      eUR'                  S5      S   n	[)        X[*        S   -   5      $ )aZ  Given the path to a .pyc. file, return the path to its .py file.

The .pyc file does not need to exist; this simply returns the path to
the .py file calculated to correspond to the .pyc file.  If path does
not conform to PEP 3147/488 format, ValueError will be raised. If
sys.implementation.cache_tag is None then NotImplementedError is raised.

Nr   FTz not bottom-level directory in rp   >   r<      zexpected only 2 or 3 dots in r   r<   z5optimization portion of filename does not start with zoptimization level z is not an alphanumeric valuer   )r   r   r   r   r   r   rZ   r   rD   rE   r%   rF   r   r   r   countrsplitr   r   	partitionrP   SOURCE_SUFFIXES)
rL   r   pycache_filenamefound_in_pycache_prefixstripped_pathpycache	dot_countr   	opt_levelbase_filenames
             r   source_from_cacher   G  s    ##+!"HII::dD(.D#
%**11/B??=8344M*+,D&*#"#D)hz)H $x) * * &&s+I89I8LMNN	a'..sA6r:&&t,, %%)H. / / T,	  ""2<2B C2 2 3 3$..s3A6MdOA,>>??r!   c                     [        U 5      S:X  a  gU R                  S5      u  pnU(       a  UR                  5       SS S:w  a  U $  [        U 5      n[        U5      (       a  U$ U $ ! [        [
        4 a    U SS n N+f = f)zConvert a bytecode file path to a source path (if possible).

This function exists purely for backwards-compatibility for
PyImport_ExecCodeModuleWithFilenames() in the C API.

r   Nrp   py)r   r   lowerr   r   r   rf   )bytecode_pathr   _	extensionsource_paths        r   _get_sourcefiler   o  s     =Q&11#6DY9??$R+t3)'6 '{33;FF  , )#CR()s   A% %A=<A=c                     U R                  [        [        5      5      (       a   [        U 5      $ U R                  [        [
        5      5      (       a  U $ g ! [         a     g f = frU   )rC   tupler   r   r   r   )r   s    r   _get_cachedr     s]    /00	$X.. 
		5!23	4	4 # 		s   
A 
A#"A#c                 `     [        U 5      R                  nUS-  nU$ ! [         a    Sn Nf = f)z3Calculate the mode permissions for a bytecode file.rt      )r^   ra   r`   )rL   rb   s     r   
_calc_moder     s=    $''
 	EMDK  s    --c                 `   ^  SU 4S jjn[         b  [         R                  nOS nU" UT 5        U$ )zDecorator to verify that the module being requested matches the one the
loader can handle.

The first argument (self) must define _name which the second argument is
compared against. If the comparison fails then ImportError is raised.

c                    > Uc  U R                   nO,U R                   U:w  a  [        SU R                   < SU< 3US9eT" X/UQ70 UD6$ )Nzloader for z cannot handle name)r   ImportError)selfr   argskwargsmethods       r   _check_name_wrapper(_check_name.<locals>._check_name_wrapper  sP    <99DYY$!%D28<> >d242622r!   c           	          S H*  n[        X5      (       d  M  [        X[        X5      5        M,     U R                  R	                  UR                  5        g )N)
__module____name____qualname____doc__)hasattrsetattrgetattr__dict__update)newoldrl   s      r   _wrap_check_name.<locals>._wrap  s?    P3((C'#*?@ Q LL-r!   rU   )
_bootstrapr   )r   r   r   s   `  r   _check_namer     s3    3   	. 

v&r!   c                 D   U SS nU[         :w  a,  SU< SU< 3n[        R                  SU5        [        U40 UD6e[	        U 5      S:  a'  SU< 3n[        R                  SU5        [        U5      e[        U SS 5      nUS	-  (       a  S
U< SU< 3n[        U40 UD6eU$ )a0  Perform basic validity checking of a pyc header and return the flags field,
which determines how the pyc should be further validated against the source.

*data* is the contents of the pyc file. (Only the first 16 bytes are
required, though.)

*name* is the name of the module being imported. It is used for logging.

*exc_details* is a dictionary passed to ImportError if it raised for
improved debugging.

ImportError is raised when the magic number is incorrect or when the flags
field is invalid. EOFError is raised when the data is found to be truncated.

Nr+   zbad magic number in z: {}   z(reached EOF while reading pyc header of r2   zinvalid flags z in )MAGIC_NUMBERr   _verbose_messager   r   EOFErrorr:   )r6   r   exc_detailsmagicr   r   s         r   _classify_pycr     s      !HE(5)<##D'2'1[11
4y2~<THE##D'2w4!9%Eu}"5)4x8'1[11Lr!   c                     [        U SS 5      US-  :w  a(  SU< 3n[        R                  SU5        [        U40 UD6eUb&  [        U SS 5      US-  :w  a  [        SU< 340 UD6egg)a  Validate a pyc against the source last-modified time.

*data* is the contents of the pyc file. (Only the first 16 bytes are
required.)

*source_mtime* is the last modified timestamp of the source file.

*source_size* is None or the size of the source file in bytes.

*name* is the name of the module being imported. It is used for logging.

*exc_details* is a dictionary passed to ImportError if it raised for
improved debugging.

An ImportError is raised if the bytecode is stale.

r2      r*   zbytecode is stale for r   Nr   )r:   r   r   r   )r6   source_mtimesource_sizer   r   r   s         r   _validate_timestamp_pycr     s    & d1Rj!lZ&?@*4(3##D'2'1[11tBr{#j(@A24(;K{KK 	B 	 r!   c                 6    U SS U:w  a  [        SU< 340 UD6eg)a  Validate a hash-based pyc by checking the real source hash against the one in
the pyc header.

*data* is the contents of the pyc file. (Only the first 16 bytes are
required.)

*source_hash* is the importlib.util.source_hash() of the source file.

*name* is the name of the module being imported. It is used for logging.

*exc_details* is a dictionary passed to ImportError if it raised for
improved debugging.

An ImportError is raised if the bytecode is stale.

r2   r   z.hash in bytecode doesn't match hash of source N)r   )r6   source_hashr   r   s       r   _validate_hash_pycr     s6    " Abz[ =dXF

 	
 !r!   c                     [         R                  " U 5      n[        U[        5      (       a1  [        R                  SU5        Ub  [        R                  " XC5        U$ [        SU< 3XS9e)z#Compile bytecode as found in a pyc.zcode object from {!r}zNon-code object in r   rL   )	marshalloads
isinstance
_code_typer   r   _imp_fix_co_filenamer   )r6   r   r   r   codes        r   _compile_bytecoder     sb    ==D$
####$;]K"!!$4//@A#9 	9r!   c                 
   [        [        5      nUR                  [        S5      5        UR                  [        U5      5        UR                  [        U5      5        UR                  [        R
                  " U 5      5        U$ )z+Produce the data for a timestamp-based pyc.r   )	bytearrayr   extendr0   r   dumps)r   mtimer   r6   s       r   _code_to_timestamp_pycr     sX    \"DKKQ KKU#$KK[)*KKd#$Kr!   c                     [        [        5      nSUS-  -  nUR                  [        U5      5        [	        U5      S:X  d   eUR                  U5        UR                  [
        R                  " U 5      5        U$ )z&Produce the data for a hash-based pyc.r   r2   )r   r   r   r0   r   r   r   )r   r   checkedr6   r   s        r   _code_to_hash_pycr  %  sd    \"D'Q,EKKU#${q   KKKKd#$Kr!   c                     SSK n[        R                  " U 5      R                  nUR	                  U5      n[        R
                  " SS5      nUR                  U R                  US   5      5      $ )zqDecode bytes representing source code and return the string.

Universal newline support is used in the decoding.
r   NT)tokenizer{   BytesIOreadlinedetect_encodingIncrementalNewlineDecoderdecode)source_bytesr  source_bytes_readlineencodingnewline_decoders        r   decode_sourcer  0  s_    
 KK5>>''(=>H33D$?O!!,"5"5hqk"BCCr!   loadersubmodule_search_locationsc                   Uc'  Sn[        US5      (       a   UR                  U 5      nO#O"[        R                  " U5      n [        U5      n[        R                  XUS9nSUl	        UcC  [        5        H4  u  pVUR                  [        U5      5      (       d  M&  U" X5      nX$l          O   gU[        L a3  [        US5      (       a!   UR                  U 5      nU(       a  / Ul        OOX4l        UR                   / :X  a0  U(       a)  [#        U5      S   nUR                   R%                  U5        U$ ! [         a     Nf = f! [         a     GNf = f! [         a     Nof = f)a%  Return a module spec based on a file location.

To indicate that the module is a package, set
submodule_search_locations to a list of directory paths.  An
empty list is sufficient, though its not otherwise useful to the
import system.

The loader must take a spec as its only __init__() arg.

Nz	<unknown>get_filenameoriginT
is_packager   )r   r  r   r   r   rr   r`   r   
ModuleSpec_set_fileattr_get_supported_file_loadersrC   r   r  	_POPULATEr  r  rZ   rH   )	r   locationr  r  specloader_classsuffixesr  dirnames	            r   spec_from_file_locationr  A  sv     6>**!..t4 + ::h'	$X.H   h ?DD ~&A&C"L  x11%d5$	 'D  "Y.6<((9#..t4
 68D3 ) +E'&&",!(+A.G++227;K]    		8  s5   D2 E 	E 2
D?>D?
EE
E E c                    [        U [        5      (       d  g[        5       nU R                  SS5      nU R                  SU5      nUc  X1L a  gUc  [	        S5      e[        USU5      nXAS4;   a8  Uc  XAL a  [        O[        nU" S5      e[        R                  " S[        5        UnUc   eUb"  X$:w  a  [        R                  " S[        5        U$ U$ )z;Helper function for _warnings.c

See GH#97850 for details.
N
__loader____spec__z+Module globals is missing a __spec__.loaderr  z-Module globals; __loader__ != __spec__.loader)
r   dictobjectgetr   r   AttributeErrorr   r   r   )module_globalsmissingr  r  spec_loaderexcs         r   _bless_my_loaderr+    s     nd++hGd3Fj'2D~? \JKK$'2Ko%>$/$:.
CCDD9	  """f3;	  r!   c                   p    \ rS rSrSrSrSr\=(       a    S\;   r	\
S 5       r\S 5       r\SS	 j5       rS
rg)WindowsRegistryFinderi  z>Meta path finder for modules declared in the Windows registry.z;Software\Python\PythonCore\{sys_version}\Modules\{fullname}zASoftware\Python\PythonCore\{sys_version}\Modules\{fullname}\Debugz_d.pydc                      [         R                  " [         R                  U 5      $ ! [         a(    [         R                  " [         R                  U 5      s $ f = frU   )winregOpenKeyHKEY_CURRENT_USERr`   HKEY_LOCAL_MACHINEr   s    r   _open_registry$WindowsRegistryFinder._open_registry  sG    	B>>&":":C@@ 	B>>&";";SAA	Bs   $' /AAc                 J   U R                   (       a  U R                  nOU R                  nUR                  US[        R
                  S S -  S9n U R                  U5       n[        R                  " US5      nS S S 5        U$ ! , (       d  f       W$ = f! [         a     g f = f)Nz%d.%dr<   )fullnamesys_versionr   )
DEBUG_BUILDREGISTRY_KEY_DEBUGREGISTRY_KEYformatr   version_infor3  r/  
QueryValuer`   )clsr6  registry_keyr   hkeyfilepaths         r   _search_registry&WindowsRegistryFinder._search_registry  s    ??11L++L!!8.58H8H!8L.L " N	##C(D!,,T26 ) 	 )(   		s0   B !B9B 
BB B 
B"!B"Nc                    U R                  U5      nUc  g  [        U5        [        5        HC  u  pVUR	                  [        U5      5      (       d  M&  [        R                  UU" X5      US9nUs  $    g ! [         a     g f = f)Nr  )rB  r^   r`   r  rC   r   r   spec_from_loader)r>  r6  rL   targetrA  r  r  r  s           r   	find_specWindowsRegistryFinder.find_spec  s    ''1	x  !< =F  x11!22839(3M:B 3 D  !>  		s   A4 4
B Br#   NN)r   r   r   __firstlineno__r   r:  r9  _MS_WINDOWSEXTENSION_SUFFIXESr8  staticmethodr3  classmethodrB  rG  __static_attributes__r#   r!   r   r-  r-    sg    H	  	'  A8/A#AKB B    r!   r-  c                   0    \ rS rSrSrS rS rS rS rSr	g)	_LoaderBasicsi  zOBase class of common code needed by both SourceLoader and
SourcelessFileLoader.c                     [        U R                  U5      5      S   nUR                  SS5      S   nUR                  S5      S   nUS:H  =(       a    US:g  $ )zConcrete implementation of InspectLoader.is_package by checking if
the path returned by get_filename has a filename of '__init__.py'.r   rp   r   r<   __init__)rZ   r  r   r   )r   r6  r   filename_base	tail_names        r   r  _LoaderBasics.is_package  s]     t00:;A> Q/2'',Q/	
*FyJ/FFr!   c                     gz*Use default semantics for module creation.Nr#   r   r  s     r   create_module_LoaderBasics.create_module      r!   c                     U R                  UR                  5      nUc  [        SUR                  < S35      e[        R	                  [
        X!R                  5        g)zExecute the module.Nzcannot load module z when get_code() returns None)get_coder   r   r   _call_with_frames_removedexecr   )r   moduler   s      r   exec_module_LoaderBasics.exec_module  sQ    }}V__-< 3FOO3F G8 8 9 9,,T4Ir!   c                 ,    [         R                  X5      $ )zThis method is deprecated.)r   _load_module_shimr   r6  s     r   load_module_LoaderBasics.load_module  s     ++D;;r!   r#   N)
r   r   r   rJ  r   r  rZ  rb  rg  rO  r#   r!   r   rQ  rQ    s    G9J<r!   rQ  c                   F    \ rS rSrS rS rS rS rS rSS.S	 jr	S
 r
Srg)SourceLoaderi
  c                     [         e)zOptional method that returns the modification time (an int) for the
specified path (a str).

Raises OSError when the path cannot be handled.
)r`   r   rL   s     r   
path_mtimeSourceLoader.path_mtime  s	     r!   c                 (    SU R                  U5      0$ )a^  Optional method returning a metadata dict for the specified
path (a str).

Possible keys:
- 'mtime' (mandatory) is the numeric timestamp of last source
  code modification;
- 'size' (optional) is the size in bytes of the source code.

Implementing this method allows the loader to read bytecode files.
Raises OSError when the path cannot be handled.
r   )rm  rl  s     r   
path_statsSourceLoader.path_stats  s     .//r!   c                 $    U R                  X#5      $ )zOptional method which writes data (bytes) to a file path (a str).

Implementing this method allows for the writing of bytecode files.

The source path is needed in order to correctly transfer permissions
)set_data)r   r   
cache_pathr6   s       r   _cache_bytecodeSourceLoader._cache_bytecode"  s     }}Z..r!   c                     g)zOptional method which writes data (bytes) to a file path (a str).

Implementing this method allows for the writing of bytecode files.
Nr#   )r   rL   r6   s      r   rs  SourceLoader.set_data,  r\  r!   c                     U R                  U5      n U R                  U5      n[	        U5      $ ! [         a  n[        SUS9UeSnAff = f)z4Concrete implementation of InspectLoader.get_source.z'source not available through get_data()r   N)r  get_datar`   r   r  )r   r6  rL   r	  r*  s        r   
get_sourceSourceLoader.get_source3  sZ      *	6==.L \**  	6G#+-256	6s   / 
A	AA	r   )	_optimizec          	      8    [         R                  [        XSSUS9$ )zrReturn the code object compiled from source.

The 'data' argument can be any object type that compile() supports.
r`  T)dont_inheritr   )r   r_  compile)r   r6   rL   r}  s       r   source_to_codeSourceLoader.source_to_code=  s)    
 33GT59I 4 O 	Or!   c                 v   U R                  U5      nSnSnSnSnSn [        U5      n U R                  U5      n	[        U	S   5      n U R	                  U5      n
UUS.n [        XU5      n[        U
5      SS nUS-  S:g  nU(       aq  US	-  S:g  n[        R                  S
:w  aT  U(       d  [        R                  S:X  a9  U R	                  U5      n[        R                  " [        U5      n[        XUU5        O[        U
UU	S   UU5        [        R                  SUU5        [        XUUS9$ ! [         ["        4 a     O6f = f! [$         a     O&f = f! [$         a     Of = f! [&         a    Sn Of = fUc  U R	                  U5      nU R)                  XB5      n[        R                  SU5        [*        R,                  (       ds  Ubp  Ubm  U(       a+  Uc  [        R                  " [        U5      n[/        XU5      n
O[1        X[3        U5      5      n
 U R5                  X(U
5        U$ ! [&         a     U$ f = fU$ )zConcrete implementation of InspectLoader.get_code.

Reading of bytecode requires path_stats to be implemented. To write
bytecode, set_data must also be implemented.

NFTr   r   r   r   r   r<   neveralwayssizez{} matches {})r   r   r   zcode object from {})r  r   rp  r-   rz  r   
memoryviewr   check_hash_based_pycsr   _RAW_MAGIC_NUMBERr   r   r   r   r   r   r   r`   r   r  r   dont_write_bytecoder  r   r   ru  )r   r6  r   r   r	  r   
hash_basedcheck_sourcer   str6   r   r   
bytes_datacode_objects                  r   r^  SourceLoader.get_codeE  s    ''1
3	J-k:M.J__[1  #2g;/(J==7D
 !) -#KJ -dk J%/%5bc%:
%*S[A%5
%+04<1+<L $ : :g E!-!%!;!;x!G/3}}[/I.2.>.>$5$0/" !34h3>!@ 4 $ , "6
 ( + #33O]4?A0?L=H J J (2 ?     # 	! M	!d ==5L)),D##$9;G''M,E(&"&"2"23D3?#AK(<P-k.1,.?A$$[F  ' sY   E$ E 	E  B,D. .E E
EE
E! E!$E32E3H( (
H65H6r#   N)r   r   r   rJ  rm  rp  ru  rs  r{  r  r^  rO  r#   r!   r   rj  rj  
  s,    0/+ 79 OSr!   rj  c                   n   ^  \ rS rSrSrS rS rS r\U 4S j5       r	\S 5       r
S r\S	 5       rS
rU =r$ )
FileLoaderi  zcBase file loader class which implements the loader protocol methods that
require file system usage.c                     Xl         X l        g)zCCache the module name and the path to the file found by the
finder.Nr   )r   r6  rL   s      r   rS  FileLoader.__init__  s     		r!   c                 t    U R                   UR                   :H  =(       a    U R                  UR                  :H  $ rU   	__class__r   r   others     r   __eq__FileLoader.__eq__  ,    %//1 0/	1r!   c                 X    [        U R                  5      [        U R                  5      -  $ rU   hashr   rL   r   s    r   __hash__FileLoader.__hash__      DIIdii00r!   c                 *   > [         [        U ]  U5      $ )zTLoad a module from a file.

This method is deprecated.  Use exec_module() instead.

)superr  rg  )r   r6  r  s     r   rg  FileLoader.load_module  s     Z28<<r!   c                     U R                   $ z:Return the path to the source file as found by the finder.r]   rf  s     r   r  FileLoader.get_filename       yyr!   c                 P   [        U [        [        45      (       a9  [        R                  " [        U5      5       nUR                  5       sSSS5        $ [        R                  " US5       nUR                  5       sSSS5        $ ! , (       d  f       g= f! , (       d  f       g= f)z'Return the data from path as raw bytes.Nr)r   rj  ExtensionFileLoaderr{   	open_coder   readr|   )r   rL   r   s      r   rz  FileLoader.get_data  sm    d\+>?@@s4y)Tyy{ *) D#&$yy{ '& *) '&s   B,B
B
B%c                     SSK Jn  U" U 5      $ )Nr   )
FileReader)importlib.readersr  )r   ra  r  s      r   get_resource_readerFileLoader.get_resource_reader  s    0$r!   r   )r   r   r   rJ  r   rS  r  r  r   rg  r  rz  r  rO  __classcell__)r  s   @r   r  r    sX    "11 	= 	=  #    r!   r  c                   2    \ rS rSrSrS rS rSS.S jrSrg	)
SourceFileLoaderi  z>Concrete implementation of SourceLoader using the file system.c                 J    [        U5      nUR                  UR                  S.$ )z!Return the metadata for the path.)r   r  )r^   st_mtimest_size)r   rL   r  s      r   rp  SourceFileLoader.path_stats  s    bjj99r!   c                 8    [        U5      nU R                  X#US9$ )N_mode)r   rs  )r   r   r   r6   rb   s        r   ru   SourceFileLoader._cache_bytecode  s    +&}}]}==r!   rt   r  c                <   [        U5      u  pE/ nU(       aG  [        U5      (       d7  [        U5      u  pGUR                  U5        U(       a  [        U5      (       d  M7  [        U5       H%  n[	        XG5      n [
        R                  " U5        M'      [        XU5        [        R                  SU5        g! [         a     MZ  [         a!  n[        R                  SXH5         SnA  gSnAff = f! [         a!  n[        R                  SUU5         SnAgSnAff = f)zWrite bytes data to a file.zcould not create {!r}: {!r}Nzcreated {!r})rZ   ri   rH   reversedrP   r   mkdirFileExistsErrorr`   r   r   r   )	r   rL   r6   r  parentr   rJ   rR   r*  s	            r   rs  SourceFileLoader.set_data  s    &t,
[00&v.LFd# [00 Z(D-F
		&! )	-$e,''= #   ++,I,29  	-''(Et(+- -	-s6   8B6"C0 6
C-	C-C((C-0
D:DDr#   N)	r   r   r   rJ  r   rp  ru  rs  rO  r#   r!   r   r  r    s    H:
>
 -2 - -r!   r  c                   $    \ rS rSrSrS rS rSrg)SourcelessFileLoaderi  z-Loader which handles sourceless file imports.c                     U R                  U5      nU R                  U5      nUUS.n[        X1U5        [        [	        U5      SS  UUS9$ )Nr   r   )r   r   )r  rz  r   r   r  )r   r6  rL   r6   r   s        r   r^  SourcelessFileLoader.get_code  s]      *}}T" 
 	dk2 tRS!
 	
r!   c                     g)z'Return None as there is no source code.Nr#   rf  s     r   r{  SourcelessFileLoader.get_source      r!   r#   N)r   r   r   rJ  r   r^  r{  rO  r#   r!   r   r  r    s    7
 r!   r  c                   X    \ rS rSrSrS rS rS rS rS r	S r
S	 rS
 r\S 5       rSrg)r  i  zULoader for extension modules.

The constructor is designed to work with FileFinder.

c                     Xl         X l        g rU   r   )r   r   rL   s      r   rS  ExtensionFileLoader.__init__  s    		r!   c                 t    U R                   UR                   :H  =(       a    U R                  UR                  :H  $ rU   r  r  s     r   r  ExtensionFileLoader.__eq__  r  r!   c                 X    [        U R                  5      [        U R                  5      -  $ rU   r  r  s    r   r  ExtensionFileLoader.__hash__#  r  r!   c                     [         R                  [        R                  U5      n[         R	                  SUR
                  U R                  5        U$ )z(Create an uninitialized extension modulez&extension module {!r} loaded from {!r})r   r_  r   create_dynamicr   r   rL   )r   r  ra  s      r   rZ  !ExtensionFileLoader.create_module&  s@    55'##$LDII	/r!   c                     [         R                  [        R                  U5        [         R	                  SU R
                  U R                  5        g)zInitialize an extension modulez(extension module {!r} executed from {!r}N)r   r_  r   exec_dynamicr   r   rL   r   ra  s     r   rb  ExtensionFileLoader.exec_module.  s6    ,,T->->G##$NDII	/r!   c                 f   ^ [        U R                  5      S   m[        U4S j[         5       5      $ )z1Return True if the extension module is a package.r   c              3   4   >#    U  H  nTS U-   :H  v   M     g7f)rS  Nr#   )r	   suffix	file_names     r   r   1ExtensionFileLoader.is_package.<locals>.<genexpr>7  s"      5!3v 
V 33!3s   )rZ   rL   anyrL  )r   r6  r  s     @r   r  ExtensionFileLoader.is_package4  s0    		*1-	 5!35 5 	5r!   c                     g)z?Return None as an extension module cannot create a code object.Nr#   rf  s     r   r^  ExtensionFileLoader.get_code:  r  r!   c                     g)z5Return None as extension modules have no source code.Nr#   rf  s     r   r{  ExtensionFileLoader.get_source>  r  r!   c                     U R                   $ r  r]   rf  s     r   r   ExtensionFileLoader.get_filenameB  r  r!   r   N)r   r   r   rJ  r   rS  r  r  rZ  rb  r  r^  r{  r   r  rO  r#   r!   r   r  r    sC    11/5  r!   r  c                   ^    \ rS rSrSrSrS rS rS rS r	S r
S	 rS
 rS rS rS rS rSrg)_NamespacePathiH  a  Represents a namespace package's path.  It uses the module name
to find its parent module, and from there it looks up the parent's
__path__.  When this changes, the module's own path is recomputed,
using path_finder.  For top-level modules, the parent module's path
is sys.path.r   c                     Xl         X l        [        U R                  5       5      U l        U R
                  U l        X0l        g rU   )_name_pathr   _get_parent_path_last_parent_path_epoch_last_epoch_path_finderr   r   rL   path_finders       r   rS  _NamespacePath.__init__S  s4    

!&t'<'<'>!?;;'r!   c                 T    U R                   R                  S5      u  pnUS:X  a  gUS4$ )z>Returns a tuple of (parent-module-name, parent-path-attr-name)rp   r   )r   rL   __path__)r  r   )r   r  dotmes       r   _find_parent_path_names&_NamespacePath._find_parent_path_namesZ  s1    **//4R"9  z!!r!   c                 `    U R                  5       u  p[        [        R                  U   U5      $ rU   )r  r   r   modules)r   parent_module_namepath_attr_names      r   r  _NamespacePath._get_parent_pathd  s+    -1-I-I-K*s{{#56GGr!   c                 h   [        U R                  5       5      nXR                  :w  d  U R                  U R                  :w  ae  U R                  U R                  U5      nUb/  UR                  c"  UR                  (       a  UR                  U l	        Xl        U R                  U l        U R                  $ rU   )
r   r  r  r  r  r  r  r  r  r  )r   parent_pathr  s      r   _recalculate_NamespacePath._recalculateh  s    D1134000DKK4CSCS4S$$TZZ=D DKK$722!%!@!@DJ%0"#{{Dzzr!   c                 4    [        U R                  5       5      $ rU   )iterr  r  s    r   __iter___NamespacePath.__iter__v  s    D%%'((r!   c                 (    U R                  5       U   $ rU   r  )r   indexs     r   __getitem___NamespacePath.__getitem__y  s      "5))r!   c                      X R                   U'   g rU   r  )r   r  rL   s      r   __setitem___NamespacePath.__setitem__|  s     

5r!   c                 4    [        U R                  5       5      $ rU   )r   r  r  s    r   __len___NamespacePath.__len__  s    4$$&''r!   c                 $    SU R                   < S3$ )Nz_NamespacePath()r  r  s    r   __repr___NamespacePath.__repr__  s     a00r!   c                 &    XR                  5       ;   $ rU   r
  r   items     r   __contains___NamespacePath.__contains__  s    ((***r!   c                 :    U R                   R                  U5        g rU   )r  rH   r  s     r   rH   _NamespacePath.append  s    

$r!   )r  r  r  r  r  N)r   r   r   rJ  r   r  rS  r  r  r  r  r  r  r  r  r  rH   rO  r#   r!   r   r  r  H  sF     F("H)*!(1+ r!   r  c                   D    \ rS rSrS rS rS rS rS rS r	S r
S	 rS
rg)NamespaceLoaderi  c                 &    [        XU5      U l        g rU   )r  r  r  s       r   rS  NamespaceLoader.__init__  s    #D<
r!   c                     g)NTr#   rf  s     r   r  NamespaceLoader.is_package  s    r!   c                     g)Nr   r#   rf  s     r   r{  NamespaceLoader.get_source  s    r!   c                     [        SSSSS9$ )Nr   z<string>r`  T)r  )r  rf  s     r   r^  NamespaceLoader.get_code  s    r:vDAAr!   c                     grX  r#   rY  s     r   rZ  NamespaceLoader.create_module  r\  r!   c                     g rU   r#   r  s     r   rb  NamespaceLoader.exec_module  s    r!   c                 l    [         R                  SU R                  5        [         R                  X5      $ )zRLoad a namespace module.

This method is deprecated.  Use exec_module() instead.

z&namespace module loaded with path {!r})r   r   r  re  rf  s     r   rg  NamespaceLoader.load_module  s/     	##$L$(JJ	0 ++D;;r!   c                 2    SSK Jn  U" U R                  5      $ )Nr   )NamespaceReader)r  r1  r  )r   ra  r1  s      r   r  #NamespaceLoader.get_resource_reader  s    5tzz**r!   r  N)r   r   r   rJ  rS  r  r{  r^  rZ  rb  rg  r  rO  r#   r!   r   r!  r!    s+    =B9
<+r!   r!  c                       \ rS rSrSr\S 5       r\S 5       r\S 5       r	\SS j5       r
\SS j5       r\S	 5       rS
rg)
PathFinderi  z>Meta path finder for sys.path and package __path__ attributes.c                  T   [        [        R                  R                  5       5       HN  u  pUb  [	        U 5      (       d  [        R                  U 	 M+  [        US5      (       d  M>  UR                  5         MP     [        =R                  S-  sl        SSK	J
n  UR                  5         g)ztCall the invalidate_caches() method on all path entry finders
stored in sys.path_importer_cache (where implemented).Ninvalidate_cachesr   r   MetadataPathFinder)listr   path_importer_cacheitemsrm   r   r6  r  r  importlib.metadatar8  )r   finderr8  s      r   r6  PathFinder.invalidate_caches  s     !!8!8!>!>!@ALD ~[%6%6++D1!455((* B 	"9,,.r!   c                     [         R                  b0  [         R                  (       d  [        R                  " S[        5        [         R                   H  n U" U 5      s  $    g! [
         a     M  f = f)z.Search sys.path_hooks for a finder for 'path'.Nzsys.path_hooks is empty)r   
path_hooksr   r   ImportWarningr   )rL   hooks     r   _path_hooksPathFinder._path_hooks  sY     >>%cnnNN4mDNNDDz! #   s   A##
A10A1c                     US:X  a   [         R                  " 5       n [        R                  U   nU$ ! [         a     gf = f! [
         a(    U R                  U5      nU[        R                  U'    U$ f = f)zGet the finder for the path entry from sys.path_importer_cache.

If the path entry is not in the cache, find the appropriate finder
and cache it. If no finder is available, store None.

r   N)r   rh   FileNotFoundErrorr   r:  KeyErrorrC  )r>  rL   r=  s      r   _path_importer_cachePathFinder._path_importer_cache  s     2:zz|
	3,,T2F  %    	3__T*F,2C##D)	3s   3 A 
A A .A54A5Nc                 R   / nU H  n[        U[        5      (       d  M  U R                  U5      nUc  M0  UR                  X5      nUc  MF  UR                  b  Us  $ UR
                  nUc  [        S5      eUR                  U5        M     [        R                  US5      nXGl        U$ )z?Find the loader or namespace_path for this module/package name.Nzspec missing loader)
r   r   rH  rG  r  r  r   r   r   r  )	r>  r6  rL   rF  namespace_pathentryr=  r  portionss	            r   	_get_specPathFinder._get_spec  s    
 EeS))--e4F!''9<;;*K::#%&;<<
 %%h/# & ((48D.<+Kr!   c                     Uc  [         R                  nU R                  XU5      nUc  gUR                  c8  UR                  nU(       a$  SUl        [        XU R                  5      Ul        U$ gU$ )z}Try to find a spec for 'fullname' on sys.path or 'path'.

The search is based on sys.path_hooks and sys.path_importer_cache.
N)r   rL   rN  r  r  r  r  )r>  r6  rL   rF  r  rK  s         r   rG  PathFinder.find_spec  sn     <88D}}XV4<[[ !<<N #2@[^[h[h2i/Kr!   c                  2    SSK Jn  UR                  " U 0 UD6$ )z
Find distributions.

Return an iterable of all Distribution instances capable of
loading the metadata for packages matching ``context.name``
(or all names if ``None`` indicated) along the paths in the list
of directories ``context.path``.
r   r7  )r<  r8  find_distributions)r   r   r8  s      r   rS  PathFinder.find_distributions'  s     	:!44dEfEEr!   r#   rU   rI  )r   r   r   rJ  r   rM  r6  rC  rN  rH  rN  rG  rS  rO  r#   r!   r   r4  r4    s}    H/ /" 
 
  *  8  . 
F 
Fr!   r4  c                   P    \ rS rSrSrS rS rS rSS jrS r	\
S	 5       rS
 rSrg)
FileFinderi5  zFile-based finder.

Interactions with the file system are cached for performance, being
refreshed when the directory the finder is handling has been modified.

c                   ^ / nU H!  u  mnUR                  U4S jU 5       5        M#     X0l        U(       a  US:X  a  [        R                  " 5       U l        O[        U5      U l        SU l        [        5       U l        [        5       U l	        g)zInitialize with the path to search on and a variable number of
2-tuples containing the loader and the file suffixes the loader
recognizes.c              3   *   >#    U  H  oT4v   M
     g 7frU   r#   )r	   r  r  s     r   r   &FileFinder.__init__.<locals>.<genexpr>D  s     C(F+(s   rp   r   N)
r   _loadersr   rh   rL   rr   _path_mtimeset_path_cache_relaxed_path_cache)r   rL   loader_detailsloadersr  r  s        @r   rS  FileFinder.__init__>  sn      .FHNNC(CC !/ts{

DI%d+DI5#&5 r!   c                     SU l         g)zInvalidate the directory mtime.r   N)r[  r  s    r   r6  FileFinder.invalidate_cachesO  s
    r!   c                 (    U" X#5      n[        X#UUS9$ )Nr  )r  )r   r  r6  rL   smslrF  r  s          r   rN  FileFinder._get_specS  s"    h-&xfBFH 	Hr!   Nc                    SnUR                  S5      S   n [        U R                  =(       d    [        R                  " 5       5      R
                  nXPR                  :w  a  U R                  5         XPl        [        5       (       a  U R                  nUR                  5       nOU R                  nUnXv;   al  [        U R                  U5      nU R                   H;  u  pSU	-   n[        X5      n[        U5      (       d  M'  U R!                  XX/U5      s  $    [#        U5      nU R                   Hc  u  p [        U R                  XI-   5      n[&        R)                  SUSS9  Xy-   U;   d  M=  [        U5      (       d  MO  U R!                  XUSU5      s  $    U(       a6  [&        R)                  S	W5        [&        R+                  US5      nU/Ul        U$ g! [         a    Sn GNf = f! [$         a       gf = f)
z_Try to find a spec for the specified module.

Returns the matching spec, or None if not found.
Frp   r<   r   rS  Nz	trying {})	verbosityzpossible namespace for {})r   r^   rL   r   rh   r  r`   r[  _fill_cacher   r^  r   r]  rP   rZ  rf   rN  ri   r   r   r   r  r  )r   r6  rF  is_namespacetail_moduler   cachecache_module	base_pathr  r  init_filename	full_pathr  s                 r   rG  FileFinder.find_specX  s   
 ))#.q1	tyy8CJJL9BBE $$$$==,,E&,,.L$$E&L "499k:I(,$ *V 3&y@		**>>,)[Z`aa	 )6  +95$(MM F&tyy+2FG	 ''Y!'L$-	**>>,)*.8 8 %2 ''(CYO((48D/8kD+KQ  	E	8  s#   ;G 5G'G$#G$'
G54G5c                    U R                   n [        R                  " U=(       d    [        R                  " 5       5      n[        R                  R                  S5      (       d  [        U5      U l        O][        5       nU HG  nUR                  S5      u  pVnU(       a  U SUR                  5        3nOUnUR                  U5        MI     X0l        [        R                  R                  [        5      (       a&  U V	s1 s H  oR                  5       iM     sn	U l        gg! [        [
        [        4 a    / n Nf = fs  sn	f )zDFill the cache of potential modules and packages for this directory.r   rp   N)rL   r   listdirrh   rF  PermissionErrorNotADirectoryErrorr   r$   r%   r\  r]  r   r   addr&   r^  )
r   rL   contentslower_suffix_contentsr  r   r  r  new_namefns
             r   ri  FileFinder._fill_cache  s   yy	{{4#73::<8H ||&&u--"8}D %(E! $(NN3$7!6"&q(89H#H%))(3 !  5<<""#>??=E'FXr
X'FD$ @/ "?4FG 	 H	0 (Gs   2D! >D>!D;:D;c                    ^ ^ U U4S jnU$ )zA class method which returns a closure to use on sys.path_hook
which will return an instance using the specified loaders and the path
called on the closure.

If the path called on the closure is not a directory, ImportError is
raised.

c                 J   > [        U 5      (       d
  [        SU S9eT" U /TQ76 $ )z-Path hook for importlib.machinery.FileFinder.zonly directories are supportedr]   )ri   r   )rL   r>  r_  s    r   path_hook_for_FileFinder6FileFinder.path_hook.<locals>.path_hook_for_FileFinder  s,    t$$!"BNNt-n--r!   r#   )r>  r_  r~  s   `` r   	path_hookFileFinder.path_hook  s    	. ('r!   c                 $    SU R                   < S3$ )NzFileFinder(r  r]   r  s    r   r  FileFinder.__repr__  s    TYYM++r!   )rZ  r]  r[  r^  rL   rU   )r   r   r   rJ  r   rS  r6  rN  rG  ri  rN  r  r  rO  r#   r!   r   rV  rV  5  s<    )"H
1fG> ( (",r!   rV  c                       \ rS rSrSrS rSrg)AppleFrameworkLoaderi  zrA loader for modules that have been packaged as frameworks for
compatibility with Apple's iOS App Store policies.
c                    UR                   R                  S5      (       a  [        R                  " UR                   S5       nUR	                  5       R                  5       R                  5       nS S S 5        [        [        R                  5      S   n[        UW5      Ul         U R                  R                  S5      (       a  U R                  nO[        R                  " U R                  S-   S5       nUR	                  5       R                  5       R                  5       n[        [        R                  5      S   n[        XF5      nS S S 5        [        R                  [        R                  U5      n[        R!                  SUR"                  UR                   W5        XWl        U$ ! , (       d  f       GNA= f! , (       d  f       Nx= f)N.fworkr  r   z.originzBApple framework extension module {!r} loaded from {!r} (path {!r}))r  rC   r{   r|   r  r  striprZ   r   
executablerP   rL   r   r_  r   r  r   r   __file__)r   r  r   framework_binarybundle_pathrL   r  ra  s           r   rZ  "AppleFrameworkLoader.create_module  sD   
 ;;))DKK-#'99;#5#5#7#=#=#?  .%cnn5a8K$[2BCDK
 99h''99DDII	1374++-335)#..9!<!+6 8
 55d6I6I4P##PIIKK		
 9 .- 87s   -F)5AF;)
F8;
G	r#   N)r   r   r   rJ  r   rZ  rO  r#   r!   r   r  r    s    "r!   r  c                 H   U R                  S5      nU R                  S5      nU(       d0  U(       a  UR                  nOX#:X  a  [        X5      nO[        X5      nU(       d!  [	        XUS9nU(       a  [        U5      Ul         XPS'   X@S'   X S'   X0S'   g ! [         a     g f = f)Nr!  r"  )r  r  
__cached__)r%  r  r  r  r  rr   cached	Exception)nsr   pathname	cpathnamer  r  s         r   _fix_up_moduler    s    VVL!F66*D[[F")$9F%d5F&tfE'	2DK:!<!:$< s   B 
B! B!c                  l   / n [        [        S5      (       a{  [        R                  S;   a=  [        [        R
                  " 5        Vs/ s H  nUR                  SS5      PM     sn4/n U R                  [        [        R
                  " 5       45        [        [        4n[        [        4nXU/-   $ s  snf )zWReturns a list of file-based module loaders.

Each item is a tuple (loader, suffixes).
r  >   r   r   r   z.sor  )r   r   r   r$   r  extension_suffixesrl   rH   r  r  r   r  r   )extension_loadersr  sourcebytecodes       r   r  r    s    
 t%&&<<55"6"55797F uh/79 " ! 	  "5t7N7N7P!QR.F#%66H1119s   B1c                     U q g rU   )r   )_bootstrap_modules    r   _set_bootstrap_moduler    s    "Jr!   c                     [        U 5        [        5       n[        R                  R	                  [
        R                  " U6 /5        [        R                  R                  [        5        g)z)Install the path-based import components.N)
r  r  r   r@  r   rV  r  	meta_pathrH   r4  )r  supported_loaderss     r   _installr    sG    +,35NN://1BCDEMM$r!   )rt   rU   )NNN)r   r   )T)Yr   r   r   r{   r   r   r   r$   rK  ntr   r/  posixrE   allrF   r   rB   rI   _pathseps_with_colonr'   %_CASE_INSENSITIVE_PLATFORMS_BYTES_KEYr&   r(   r   r0   r7   r:   r=   rP   rZ   r^   rd   rf   ri   rm   rr   r   type__code__r   r.   r   r-   r4   r  r   r   r   rH   r  rL  r   DEBUG_BYTECODE_SUFFIXESOPTIMIZED_BYTECODE_SUFFIXESr   r   r   r   r   r   r   r   r   r   r   r  r  r$  r  r  r+  r-  rQ  rj  r  r  r  r  r  r!  _NamespaceLoaderr4  rV  r  r  r  r  r  )ss   0r   <module>r     s  , 
  
 
   ||w& SkOeO

4O
444 441'''/*)89A!A39  '- #(T % E"E!F    7
*
*
* *<?"2.
. R0
4 -(()
\ q(+g5NN<: '6",,. H 8I I 5C0 C0L%@PG&		>BL8
0
9	D H	C47@CL-d0 0f< <<N= Nb/  / d*-z< *-Z:} 22*m 2jA  A N!+ !+J # 
yF yFxH, H,V&. &T22$#
%Q7 :s   H/