Hacked By AnonymousFox

Current Path : /opt/alt/python312/lib64/python3.12/importlib/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/importlib/__pycache__/_bootstrap.cpython-312.pyc

�

�Q�f����
�dZd�ZdZdZdZdad�Zd�ZGd�de�Z	Gd�d�Z
iZdaGd	�d
�Z
Gd�de�Zd
�ZGd�d�ZGd�d�ZGd�d�Zd�Zd�Zd�Zdd�d�Zd�Zd�Zd�Zd�ZGd�d�Zddd �d!�ZdBd"�Zd#d$�d%�Zd&�Z d'�Z!d(�Z"d)�Z#d*�Z$d+�Z%Gd,�d-�Z&Gd.�d/�Z'Gd0�d1�Z(d2�Z)dCd3�Z*d4�Z+d5Z,e,d6zZ-d7�Z.e/�Z0d8�Z1dDd9�Z2d#d:�d;�Z3d<�Z4dEd=�Z5d>�Z6d?�Z7d@�Z8dA�Z9y)FaSCore implementation of 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.

c�d�	|jS#t$rt|�jcYSwxYw�N)�__qualname__�AttributeError�type)�objs �;/opt/alt/python312/lib64/python3.12/importlib/_bootstrap.py�_object_namer	s2��&�������&��C�y�%�%�%�&�s��/�/Nc	��dD]&}t||�s�t||t||���(|jj	|j�y)z/Simple substitute for functools.update_wrapper.)�
__module__�__name__r�__doc__N)�hasattr�setattr�getattr�__dict__�update)�new�old�replaces   r�_wrapr(sB��H���3�� ��C��'�#�w�"7�8�I��L�L������%�c�,�tt�|�Sr)r�sys��names r�_new_moduler0s���4��9�T�?�rc��eZdZy)�_ListN�rrr�rrrr7���rrc�.�eZdZd�Zd�Zd�Zdd�Zdd�Zy)�_WeakValueDictionaryc���tj|��G�fd�dtj�}||_|j�y)Nc�B���eZdZdZ�fd�Z�fd�Ze�fd��Z�xZS)�/_WeakValueDictionary.__init__.<locals>.KeyedRef)�keyc�L��t�|�|||j�}||_|Sr)�super�__new__�remover')r�obr'�self�	__class__s    �rr*z7_WeakValueDictionary.__init__.<locals>.KeyedRef.__new__Js%����w��t�R����=������rc�:��t�|�||j�yr)r)�__init__r+)r-r,r'r.s   �rr0z8_WeakValueDictionary.__init__.<locals>.KeyedRef.__init__Os����� ��T�[�[�1rc������}|�]|jr&|jj|j�ytj|j|j�yyr)�
_iterating�_pending_removals�appendr'�_weakref�_remove_dead_weakref�data)�wrr-�self_weakrefs  �rr+z6_WeakValueDictionary.__init__.<locals>.KeyedRef.removeRsN���$�~���#�����.�.�5�5�b�f�f�=� �5�5�d�i�i����H�	$r)	rrr�	__slots__r*r0�staticmethodr+�
__classcell__)r.r9s@�r�KeyedRefr&Fs(����I�
�

2��
I��
Irr=)r5�ref�	_KeyedRef�clear)r-r=r9s  @rr0z_WeakValueDictionary.__init__@s5����|�|�D�)��
	I�x�|�|�	I�."����
�
�rc�>�g|_t�|_i|_yr)r3�setr2r7�r-s rr@z_WeakValueDictionary.clear`s��!#����%�����	rc��|jj}|j}		|�}tj||��#t$rYywxYwr)r3�popr7�
IndexErrorr5r6)r-rE�dr's    r�_commit_removalsz%_WeakValueDictionary._commit_removalsesV���$�$�(�(���I�I���
��e��
�)�)�!�S�1����
��
�s�A�	A�ANc��|jr|j�	|j|}|�x}�|S|S#t$r|cYSwxYwr)r3rHr7�KeyError)r-r'�defaultr8�os     r�getz_WeakValueDictionary.getosW���!�!��!�!�#�	����3��B��T�	��"������
�	��N�	�s�:�A�Ac���	|j|�}|�=|jr|j�|j	||�|j|<|S|S#t$rd}Y�NwxYwr)r7rJr3rHr?)r-r'rKrLs    r�
setdefaultz_WeakValueDictionary.setdefault|sm��	���	�	�#�� �A�
�9��%�%��%�%�'�!�^�^�G�S�9�D�I�I�c�N��N��H���	��A�	�s�A�A%�$A%r)rrrr0r@rHrMrOr rrr#r#>s���@�
2��rr#c�"�eZdZdZd�Zd�Zd�Zy)�_BlockingOnManagerz;A context manager responsible to updating ``_blocking_on``.c� �||_||_yr)�	thread_id�lock)r-rSrTs   rr0z_BlockingOnManager.__init__�s��"�����	rc��tj|jt��|_|jj|j�y)zCMark the running thread as waiting for self.lock. via _blocking_on.N)�_blocking_onrOrSr�
blocked_onr4rTrCs r�	__enter__z_BlockingOnManager.__enter__�s4��'�1�1�$�.�.�%�'�J��������t�y�y�)rc�N�|jj|j�y)z6Remove self.lock from this thread's _blocking_on list.N)rWr+rT�r-�args�kwargss   r�__exit__z_BlockingOnManager.__exit__�s�������t�y�y�)rN)rrrr
r0rXr]r rrrQrQ�s��E��	*�*rrQc��eZdZy)�_DeadlockErrorNrr rrr_r_�r!rr_c���||vry|D]W}|j|�x}s�||vry|j|�|D�cgc]}|j��}}t||||��s�Wyycc}w)a�Check if 'target_id' is holding the same lock as another thread(s).

    The search within 'blocking_on' starts with the threads listed in
    'candidate_ids'.  'seen_ids' contains any threads that are considered
    already traversed in the search.

    Keyword arguments:
    target_id     -- The thread id to try to reach.
    seen_ids      -- A set of threads that have already been visited.
    candidate_ids -- The thread ids from which to begin.
    blocking_on   -- A dict representing the thread/blocking-on graph.  This may
                     be the same object as the global '_blocking_on' but it is
                     a parameter to reduce the impact that global mutable
                     state has on the result of this function.
    TF)�seen_ids�
candidate_ids�blocking_on)rM�add�owner�_has_deadlocked)�	target_idrarbrc�tid�candidate_blocking_onrT�edgess        rrfrf�s��� �M�!����)4����)=�=�%�=��
�H�_�
����S��)>�>�(=�����(=��>��9�x�u�'�)��!�$��?s�A#c�.�eZdZdZd�Zd�Zd�Zd�Zd�Zy)�_ModuleLockz�A recursive lock implementation which is able to detect deadlocks
    (e.g. thread 1 trying to take locks A then B, and thread 2 trying to
    take locks B then A).
    c��tj�|_tj�|_||_d|_g|_g|_yr)	�_thread�RLockrT�
allocate_lock�wakeuprre�count�waiters�r-rs  rr0z_ModuleLock.__init__�sE��*�M�M�O��	��+�+�-�����	���
���
���rc�r�ttj�t�|jgt
��S)N)rgrarbrc)rfrn�	get_identrBrerVrCs r�has_deadlockz_ModuleLock.has_deadlock s0��
��'�'�)��U� �:�:�,�$�	
�		
rc�V�tj�}t||�5	|j5|jgk(s|j
|k(r4||_|jj
d�	ddd�ddd�y|j�rtd|����|jjd�r|jj
d�ddd�|jj�|jj���#1swY�>xYw#1swYyxYw)z�
        Acquire the module lock.  If a potential deadlock is detected,
        a _DeadlockError is raised.
        Otherwise, the lock is always acquired and True is returned.
        TNzdeadlock detected by F)
rnrvrQrTrrrer4rwr_rq�acquirers�release�r-rhs  rryz_ModuleLock.acquire0s������!��
��T�
*���Y�Y��z�z�R�'�4�:�:��+<�&)��
��
�
�)�)�$�/�#�,2�;	&�;	&�D�(�(�*�,�/D�T�H�-M�N�N��{�{�*�*�5�1����+�+�D�1�Y�b���#�#�%�
���#�#�%�u��Y��+�
*�s0�D�AD�1D�AD�=D�D	�D�D(c���tj�}|j5|j|k7rt	d��t|j�dkDsJ�|jj�t|j�sSd|_t|j�dkDr4|jj�|jj�ddd�y#1swYyxYw)N�cannot release un-acquired lock�)rnrvrTre�RuntimeError�lenrrrErsrqrzr{s  rrzz_ModuleLock.releasets������!��
�Y�Y��z�z�S� �"�#D�E�E��t�z�z�?�Q�&�&�&��J�J�N�N���t�z�z�?�!��
��t�|�|�$�q�(��L�L�$�$�&��K�K�'�'�)��Y�Y�s�B7C!�!C*c�8�d|j�dt|���S)Nz_ModuleLock(�) at �r�idrCs r�__repr__z_ModuleLock.__repr__�s���d�i�i�]�%��4��z�:�:rN)	rrrr
r0rwryrzr�r rrrlrl�s#���
6�p
� B&�H*�;rrlc�(�eZdZdZd�Zd�Zd�Zd�Zy)�_DummyModuleLockzVA simple _ModuleLock equivalent for Python builds without
    multi-threading support.c� �||_d|_y�Nr~)rrrrts  rr0z_DummyModuleLock.__init__�s����	���
rc�.�|xjdz
c_y)N�T)rrrCs rryz_DummyModuleLock.acquire�s���
�
�a��
�rc�b�|jdk(rtd��|xjdzc_y)Nr~r}r�)rrrrCs rrzz_DummyModuleLock.release�s&���:�:��?��@�A�A��
�
�a��
rc�8�d|j�dt|���S)Nz_DummyModuleLock(r�r�rCs rr�z_DummyModuleLock.__repr__�s��"�4�9�9�-�u�R��X�J�?�?rN)rrrr
r0ryrzr�r rrr�r��s�� ����
@rr�c��eZdZd�Zd�Zd�Zy)�_ModuleLockManagerc� �||_d|_yr)�_name�_lockrts  rr0z_ModuleLockManager.__init__�s����
���
rc�l�t|j�|_|jj�yr)�_get_module_lockr�r�ryrCs rrXz_ModuleLockManager.__enter__�s"��%�d�j�j�1��
��
�
���rc�8�|jj�yr)r�rzrZs   rr]z_ModuleLockManager.__exit__�s���
�
���rN)rrrr0rXr]r rrr�r��s����rr�c�J�tj�		t|�}|�?t�t|�}nt
|�}|fd�}tj||�t|<tj�|S#t$rd}Y�dwxYw#tj�wxYw)z�Get or create the module lock for a given module name.

    Acquire/release internally the global import lock to protect
    _module_locks.Nc���tj�	tj|�|urt|=tj	�y#tj	�wxYwr)�_imp�acquire_lock�
_module_locksrM�release_lock)r>rs  r�cbz_get_module_lock.<locals>.cb�sI���!�!�#�(�%�(�(��.�#�5�)�$�/��%�%�'��D�%�%�'�s�A	�	A)
r�r�r�rJrnr�rlr5r>r�)rrTr�s   rr�r��s���	�����	� ��&�(�D��<���'��-��"�4�(��!�	
(�#+�,�,�t�R�"8�M�$�������K��1�	��D�	��,	
����s)�
A;�AB�;B	�B�B	�	B�B"c�z�t|�}	|j�|j�y#t$rYywxYw)z�Acquires then releases the module lock for a given module name.

    This is used to ensure a module is completely initialized, in the
    event it is being imported by another thread.
    N)r�ryrzr_)rrTs  r�_lock_unlock_moduler��s=���D�!�D������	
������
�	
�
�s�.�	:�:c��||i|��S)a.remove_importlib_frames in import.c will always remove sequences
    of importlib frames that end with a call to this function

    Use it instead of a normal call in places where including the importlib
    frames introduces unwanted noise into the traceback (e.g. when executing
    module code)
    r )�fr[�kwdss   r�_call_with_frames_removedr��s��
�d��d��rr�)�	verbosityc��tjj|k\r?|jd�sd|z}t	|j
|�tj��yy)z=Print the message to stderr if -v/PYTHONVERBOSE is turned on.)�#zimport z# )�fileN)r�flags�verbose�
startswith�print�format�stderr)�messager�r[s   r�_verbose_messager��sJ��
�y�y���I�%��!�!�"2�3��W�n�G�
�n�g�n�n�d�#�#�*�*�5�&rc�*���fd�}t|��|S)z1Decorator to verify the named module is built-in.c�Z��|tjvrt|�d�|����||�S)N� is not a built-in moduler)r�builtin_module_names�ImportError�r-�fullname�fxns  �r�_requires_builtin_wrapperz4_requires_builtin.<locals>._requires_builtin_wrapper�s8����3�3�3�3����,E�F�#+�-�
-��4��"�"r�r)r�r�s` r�_requires_builtinr��s���#�

�
#�S�)�$�$rc�*���fd�}t|��|S)z/Decorator to verify the named module is frozen.c�`��tj|�st|�d�|����||�S)Nz is not a frozen moduler)r��	is_frozenr�r�s  �r�_requires_frozen_wrapperz2_requires_frozen.<locals>._requires_frozen_wrappers6����~�~�h�'����,C�D�#+�-�
-��4��"�"rr�)r�r�s` r�_requires_frozenr��s���#�

�
"�C�(�#�#rc���d}tj|t�t||�}|tj
vr2tj
|}t
||�tj
|St|�S)z�Load the specified module into sys.modules and return it.

    This method is deprecated.  Use loader.exec_module() instead.

    zgthe load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead)�	_warnings�warn�DeprecationWarning�spec_from_loaderr�modules�_exec�_load)r-r��msg�spec�modules     r�_load_module_shimr�
sa��3�C�
�N�N�3�*�+��H�d�+�D��3�;�;�����X�&��
�d�F���{�{�8�$�$��T�{�rc��t|dd�}t|dd�x}rt|�S	|j}	|j}d|�d|�d�S#t$rd}Y�#wxYw#t$r|�d|�d�cYSd|�d|�d	�cYSwxYw)
z,The implementation of ModuleType.__repr__().�
__loader__N�__spec__�?�<module � from �>� (�)>)r�_module_repr_from_specrr�__file__)r��loaderr�r�filenames     r�_module_reprr�s���
�V�\�4�
0�F��v�z�4�0�0�t�0�%�d�+�+������6��?�?���$����|�1�5�5���������5��>��d�X�Q�'�'��d�X�R��z��4�4�	5�s(�A�A�A�A�A;�/	A;�:A;c��eZdZdZdddd�d�Zd�Zd�Zed��Zejd��Zed	��Z
ed
��Zejd��Zy)�
ModuleSpeca�The specification for a module, used for loading.

    A module's spec is the source for information about the module.  For
    data associated with the module, including source, use the spec's
    loader.

    `name` is the absolute name of the module.  `loader` is the loader
    to use when loading the module.  `parent` is the name of the
    package the module is in.  The parent is derived from the name.

    `is_package` determines if the module is considered a package or
    not.  On modules this is reflected by the `__path__` attribute.

    `origin` is the specific location used by the loader from which to
    load the module, if that information is available.  When filename is
    set, origin will match.

    `has_location` indicates that a spec's "origin" reflects a location.
    When this is True, `__file__` attribute of the module is set.

    `cached` is the location of the cached bytecode file, if any.  It
    corresponds to the `__cached__` attribute.

    `submodule_search_locations` is the sequence of path entries to
    search when importing submodules.  If set, is_package should be
    True--and False otherwise.

    Packages are simply modules that (may) have submodules.  If a spec
    has a non-None value in `submodule_search_locations`, the import
    system will consider modules loaded from the spec as packages.

    Only finders (see importlib.abc.MetaPathFinder and
    importlib.abc.PathEntryFinder) should modify ModuleSpec instances.

    N)�origin�loader_state�
is_packagec�|�||_||_||_||_|rgnd|_g|_d|_d|_y�NF)rr�r�r��submodule_search_locations�_uninitialized_submodules�
_set_fileattr�_cached)r-rr�r�r�r�s      rr0zModuleSpec.__init__WsD����	�������(���0:�"���'�)+��&�#�����rc�<�d|j��d|j��g}|j�|jd|j���|j�|jd|j���|j
j�ddj|��d�S)Nzname=zloader=zorigin=zsubmodule_search_locations=�(z, �))rr�r�r4r�r.r�join)r-r[s  rr�zModuleSpec.__repr__ds�����	�	�}�%������'@�A���;�;�"��K�K�'�$�+�+��1�2��*�*�6��K�K�5�d�6U�6U�5V�W�X��.�.�)�)�*�!�D�I�I�d�O�+<�A�>�>rc�r�|j}	|j|jk(xr{|j|jk(xr`|j|jk(xrE||jk(xr4|j|jk(xr|j
|j
k(S#t$r	tcYSwxYwr)r�rr�r��cached�has_locationr�NotImplemented)r-�other�smsls   r�__eq__zModuleSpec.__eq__ls����.�.��	"��I�I����+�<��K�K�5�<�<�/�<��K�K�5�<�<�/�<��E�<�<�<�<��K�K�5�<�<�/�	<�
�%�%��);�);�;�
=���	"�!�!�	"�s�BB$�$B6�5B6c���|j�H|j�<|jr0t�t�tj|j�|_|jSr)r�r�r��_bootstrap_external�NotImplementedError�_get_cachedrCs rr�zModuleSpec.cachedxsJ���<�<���{�{�&�4�+=�+=�&�.�-�-�2�>�>�t�{�{�K����|�|�rc��||_yr)r�)r-r�s  rr�zModuleSpec.cached�s	����rc�n�|j�|jjd�dS|jS)z The name of the module's parent.�.r~)r�r�
rpartitionrCs r�parentzModuleSpec.parent�s4���*�*�2��9�9�'�'��,�Q�/�/��9�9�rc��|jSr)r�rCs rr�zModuleSpec.has_location�s���!�!�!rc�$�t|�|_yr)�boolr�)r-�values  rr�zModuleSpec.has_location�s��!�%�[��r)rrrr
r0r�r��propertyr��setterr�r�r rrr�r�2s���"�H04�$� ��?�
"������]�]���������"��"����)��)rr��r�r�c�4�|�
t|dd�}|sEt|d�r9t�t�tj}|�
|||��S|rgnd}||||��S|�!t|d�r	|j|�}nd}t||||��S#t$rd}Y�wxYw)	z5Return a module spec based on various loader methods.N�_ORIGIN�get_filename)r�)r�r�r�Fr�)rrr�r��spec_from_file_locationr�r�r�)rr�r�r�r�searchs      rr�r��s���
�~����D�1���g�f�n�5��&�%�%�"5�"M�"M����*�4��?�?�!��t��&�t�F�BH�J�	J����6�<�(�
"�#�.�.�t�4�
�
�J��d�F�6�j�I�I��
�
"�!�
�
"�s�&B	�	B�Bc���	|j}|�|S|j}|�
	|j}	|j}|�|�
t|dd�}|s|�|}	|j}	t|j�}t|||��}|�dn||k(|_
||_||_|S#t$rY��wxYw#t$rY��wxYw#t$rd}Y��wxYw#t$rd}Y�~wxYw#t$rd}Y�ywxYw)Nr�r�F)
r�rrr�r�r�
__cached__�list�__path__r�r�r�r�)r�r�r�r�r�locationr�r�s        r�_spec_from_moduler
�s5����������K��?�?�D�
�~�	��&�&�F���?�?���~����V�Y��5�F��(�.��F���"�"��*�%)�&�/�/�%:�"��d�F�6�2�D�"*�"2���8�9K�D���D�K�&@�D�#��K��G�
��
���	��	��
�������������*�%)�"�*�sW�B �B/�B>�C�C � 	B,�+B,�/	B;�:B;�>C�C�C�C� C.�-C.F��overridec�|�|s
t|dd��	|j|_|s
t|dd��n|j}|�X|j
�Lt�t�tj}|j|�}|j
|_
||_d|_	||_|s
t|dd��	|j|_	||_|s
t|dd��|j
�	|j
|_|j"rP|s
t|dd��	|j$|_|s
t|dd�� |j&�	|j&|_|S|S#t$rY��=wxYw#t$rY��wxYw#t$rY��wxYw#t$rY��wxYw#t$rY��wxYw#t$rY��wxYw#t$rY|SwxYw)Nrr��__package__rr�r)rrrrr�r�r�r��NamespaceLoaderr*�_pathr�r�r�rr�rr�r�r�r)r�r�rr�rs     r�_init_module_attrsr�s���	�G�F�J��5�=�	�"�i�i�F�O��7�6�<��6�>������>��.�.�:�&�.�-�-�"5�"E�"E��(�0�0��A��#�>�>���$���#'���	� &�F���7�6�=�$�7�?�	�!%���F��
�����7�6�:�t�4�<��*�*�6�
�"&�"A�"A�������w�v�z�4�8�@�
�"&�+�+����w�v�|�T�:�B��{�{�&��(,���F�%��M�6�M���	��	��8�	��	���	��	��
�
��
��"�
��
��"�
��
��&����M��s}�E�E#�/E2�F�$F�F�>F.�	E �E �#	E/�.E/�2	E>�=E>�	F
�F
�	F�F�	F+�*F+�.	F;�:F;c��d}t|jd�r|jj|�}n!t|jd�rtd��|�t	|j
�}t
||�|S)z+Create a module based on the provided spec.N�
create_module�exec_modulezBloaders that define exec_module() must also define create_module())rr�rr�rrr�r�r�s  r�module_from_specr&so���F��t�{�{�O�,����*�*�4�0��	����m�	,��=�>�	>�
�~��T�Y�Y�'���t�V�$��Mrc�x�|j�dn|j}|j�Y|j}|�d|�d�St�6t	|tj
�rd|�dt
|j��d�Sd|�d|�d�S|jrd|�d|j�d�Sd|j�d|j�d�S)z&Return the repr to use for the module.r�r�r�z (namespace) from r�r�r�)	rr�r�r��
isinstancerrrr�)r�rr�s   rr�r�7s����)�)�#�3����D��{�{�������>��d�X�Q�'�'��+��6�#6�#F�#F�G��d�X�%7��V�\�\�8J�7K�1�M�M��d�X�R��z��4�4�����d�X�V�D�K�K�?�!�<�<��d�i�i�]�"�T�[�[�M��<�<rc��|j}t|�5tjj	|�|urd|�d�}t||���	|j�2|j�td|j���t||d��n�t||d��t|jd�sNt|j��d	�}tj|t�|jj|�n|jj|�tjj!|j�}|tj|j<	ddd�|S#tjj!|j�}|tj|j<wxYw#1swY|SxYw)
zFExecute the spec's specified module in an existing module's namespace.zmodule z not in sys.modulesrN�missing loaderTrr�7.exec_module() not found; falling back to load_module())rr�rr�rMr�r�r�rrr	r�r��
ImportWarning�load_modulerrE)r�r�rr�s    rr�r�MsS���9�9�D�	�D�	!��;�;�?�?�4� ��.��D�8�#6�7�C��c��-�-�	,��{�{�"��2�2�:�%�&6�T�Y�Y�G�G�"�4��$�?�"�4��$�?��t�{�{�M�:�*�4�;�;�7�8�9;�;�C��N�N�3�
�6��K�K�+�+�D�1��K�K�+�+�F�3��[�[�_�_�T�Y�Y�/�F�%+�C�K�K��	�	�"�/
"�0�M���[�[�_�_�T�Y�Y�/�F�%+�C�K�K��	�	�"��/
"�0�M�s&�5F5�CE*�AF5�*AF2�2F5�5F?c��	|jj|j�tjj|j�}|tj|j<t
|dd��	|j|_t
|dd��A	|j|_
t|d�s#|jjd�d|_
t
|dd��
	||_
|S|S#|jtjvrFtjj|j�}|tj|j<�xYw#t$rY��wxYw#t$rY��wxYw#t$rY|SwxYw)Nr�rrr�r~r�)r�rrrr�rErr�rrrrr�r�rs  r�_load_backward_compatiblerksY���������	�	�*��[�[�_�_�T�Y�Y�
'�F�#�C�K�K��	�	���v�|�T�*�2�	� $���F���v�}�d�+�3�	�"(���F���6�:�.�%)�Y�Y�%9�%9�#�%>�q�%A��"��v�z�4�(�0�	�"�F�O��M�6�M��;��9�9����#��[�[�_�_�T�Y�Y�/�F�%+�C�K�K��	�	�"�
���	��	���	��	��
�	���M�	�sC�%C3�;E�AE*�(E9�3A%E�	E'�&E'�*	E6�5E6�9	F�Fc��|j�St|jd�s=t|j��d�}tj	|t
�t
|�St|�}d|_	|tj|j<	|j�#|j�2td|j���|jj|�tjj!|j�}|tj|j<t#d|j|j�d|_|S#	tj|j=�#t$rY�wxYwxYw#d|_wxYw)NrrTrrzimport {!r} # {!r}F)r�rr	r�r�rrr�
_initializingrr�rr�r�rrJrEr�)r�r�r�s   r�_load_unlockedr"�sH���{�{���t�{�{�M�2�"�4�;�;�/�0�14�4�C��N�N�3�
�.�,�T�2�2�
�d�
#�F�
�D��#�!'����D�I�I��	��{�{�"��2�2�:�%�&6�T�Y�Y�G�G����'�'��/���������+��!'����D�I�I���-�t�y�y�$�+�+�F�"����M��!	�
��K�K��	�	�*�
���
���
��#���sJ�3E<�A
E�A'E<�E9�E*�)E9�*	E6�3E9�5E6�6E9�9E<�<	Fc�n�t|j�5t|�cddd�S#1swYyxYw)z�Return a new module object, loaded by the spec's loader.

    The module is not added to its parent.

    If a module is already in sys.modules, that existing module gets
    clobbered.

    N)r�rr"�r�s rr�r��s)��
�D�I�I�	&��d�#�$�$�	&�	&�s�+�4c��eZdZdZdZed
d��Zed��Zed��Z	ee
d���Zee
d���Zee
d	���Z
ee�Zy)�BuiltinImporterz�Meta path import for built-in modules.

    All methods are either class or static methods to avoid the need to
    instantiate the class.

    zbuilt-inNc�^�tj|�rt|||j��Sy)Nr)r��
is_builtinr�r)�clsr��path�targets    r�	find_speczBuiltinImporter.find_spec�s$���?�?�8�$�#�H�c�#�+�+�F�F�rc��|jtjvr$t|j�d�|j���t	t
j|�S)zCreate a built-in moduler�r)rrr�r�r�r��create_builtinr$s rrzBuiltinImporter.create_module�sK���9�9�C�4�4�4�����
�-F�G�#'�9�9�.�
.�(��)<�)<�d�C�Crc�8�ttj|�y)zExec a built-in moduleN)r�r��exec_builtin)r�s rrzBuiltinImporter.exec_module�s��	"�$�"3�"3�V�<rc��y)z9Return None as built-in modules do not have code objects.Nr �r)r�s  r�get_codezBuiltinImporter.get_code����rc��y)z8Return None as built-in modules do not have source code.Nr r2s  r�
get_sourcezBuiltinImporter.get_source�r4rc��y)z4Return False as built-in modules are never packages.Fr r2s  rr�zBuiltinImporter.is_package�s��r�NN)rrrr
r�classmethodr,r;rrr�r3r6r�r�rr rrr&r&�s�����G������D��D��=��=��������������������/�0�Krr&c���eZdZdZdZed��Zed
d��Zedd��Ze	d��Z
e	d��Zed	��Zee
d
���Zee
d���Zee
d���Zy)�FrozenImporterz�Meta path import for frozen modules.

    All methods are either class or static methods to avoid the need to
    instantiate the class.

    �frozenc��|j}|j}|��Xt|�jdd�}|sJd��t	|d�}t
j
|j�|k(sJ|��|j||j|�\}}ttj�||��|_|j}|r+|gk(sJ|��|r&|jjd|�n	|�J|��t	|d�rJ|j��|r	||_|�r�|j"|k7�r�|j"gk(sJ|j"��|j"j%|��nv|j}|du}t't|��ddgk(sJ|��|j(rm|j|j(|j|�\}	}|j*|	k(sJ|j*|	f��|r||gk(sHJ||f��||rgndk(s6J|��d}	|j*�J|j*��||rgndk(sJ|��|	r0t	|d�sJ�|j|	k(s0J|j|	f��t	|d�rJ|j��|r0t	|d�sJ�|j"|k(s0J|j"|f��t	|d�rJ|j"��|j,rJ�y#t $rY���wxYw)	N�__origname__z'see PyImport_ImportFrozenModuleObject()r�r��orignamer~r�r�r@)r�r��varsrErr��is_frozen_packager�_resolve_filenamerrr�implementationr��insertr�rr�extend�sortedr@r�r�)
r)r�r��stater@�ispkgr��pkgdirrr�s
          r�_fix_up_modulezFrozenImporter._fix_up_module
s�������!�!���=��F�|�'�'���=�H��F�F�F�8��F�J�/�E��)�)�&�/�/�:�e�C�J�U�J�C�"�4�4�X�t�y�y�%�P��H�f� 8��S�%7�%7� 8�!�!�!�D���6�6�H���2�~�/�x�/�~���3�3�:�:�1�f�E��'�1��1�'��v�z�2�C�F�O�O�C�2���&.�F�O���?�?�h�.�!�?�?�b�0�A�&�/�/�A�0��O�O�*�*�8�4��6�6�H��D�(�E��$�u�+�&�:�z�*B�B�I�E�I�B��~�~��*�*�5�>�>�4�9�9�e�L���6��~�~��1�M�E�N�N�H�3M�M�1��#��x�/�C�(�F�1C�C�/�#�e���>�H��H�>����~�~�-�=�u�~�~�=�-��%�B�T�:�D�H�D�:���v�z�2�2�2����(�2�O�V�_�_�h�4O�O�2�"�6�:�6�G����G�6���v�z�2�2�2����(�2�O�V�_�_�h�4O�O�2�"�6�:�6�G����G�6��$�$�$�$�$��K&����s�K9�9	L�LNc��|rttdd�sy	|j}||k7r |jd�r
|dd}|s|�d�}nd	}|j
d
|�}|r!tj�|�|��}|�|�d�}||fSd}tj�|�|�d�}||fS#t$r!tjdk(rdndx}|_Y��wxYw)
N�_stdlib_dirr8�win32�\�/�<r�z	.__init__Fr�z__init__.pyz.py)rr�_SEPr�platformr�rrM)r)r��aliasrI�sep�relfilerJr�s        rrCz FrozenImporter._resolve_filenameOs����w�s�M�4�@��	F��(�(�C��u���"�"�3�'�#�A�B�<���"*��9�5�H����"�"�3��,������(���g�Y�7�F� ��#��k�2�H������F��/�/�*�3�%��y��<�H������#�	F�%(�\�\�W�%<�T�#�E�C�#�(�	F�s�B�'C�Cc�2�ttj|�}|�y|\}}}t|||j|��}|j|||�\}	}
t
tj�|	|��|_	|
r|jjd|
�|S)Nr�r?r~)r�r��find_frozenr�rrCrrrDr�r�rE)r)r�r*r+�info�_rIr@r�r�rJs           rr,zFrozenImporter.find_spechs���(��)9�)9�8�D���<��"���5�(���#�'*�{�{�+0�2���0�0��8�U�K���&�4�D��!3�!3�4���
�����+�+�2�2�1�f�=��rc��t|j�}	|jj}|r||_|S#t
$rY|SwxYw)zSet __file__, if able.)rrr�r�r�r)r�r�r�s   rrzFrozenImporter.create_module�sT���T�Y�Y�'��	+��(�(�1�1�H��"*����
���	���
�	�s�8�	A�Ac��|j}|j}ttj|�}t||j�yr)r�rr�r��get_frozen_object�execr)r�r�r�codes    rrzFrozenImporter.exec_module�s4�������y�y��(��)?�)?��F���T�6�?�?�#rc���t||�}tj|�}|�J�|\}}}||_t	|�jdd�|rg|_|j|�|S)z_Load a frozen module.

        This method is deprecated.  Use exec_module() instead.

        Nr�)r�r�rXr>rArErrK)r)r�r�rYrZrIr@s       rrzFrozenImporter.load_module�sq��#�3��1������)������!���5�(�&����V�����T�*�� �F�O����6�"��
rc�,�tj|�S)z-Return the code object for the frozen module.)r�r]r2s  rr3zFrozenImporter.get_code�����%�%�h�/�/rc��y)z6Return None as frozen modules do not have source code.Nr r2s  rr6zFrozenImporter.get_source�r4rc�,�tj|�S)z.Return True if the frozen module is a package.)r�rBr2s  rr�zFrozenImporter.is_package�rbrr�r8)rrrr
rr9rKrCr,r;rrrr�r3r6r�r rrr;r;�s�����G��B%��B%�H� �� �0����:�
��
��$��$�����$��0���0���������0���0rr;c��eZdZdZd�Zd�Zy)�_ImportLockContextz$Context manager for the import lock.c�,�tj�y)zAcquire the import lock.N)r�r�rCs rrXz_ImportLockContext.__enter__�������rc�,�tj�y)z<Release the import lock regardless of any raised exceptions.N)r�r�)r-�exc_type�	exc_value�
exc_tracebacks    rr]z_ImportLockContext.__exit__�rhrN)rrrr
rXr]r rrrfrf�s��.��rrfc�~�|jd|dz
�}t|�|krtd��|d}|r|�d|��S|S)z2Resolve a relative module name to an absolute one.r�r�z2attempted relative import beyond top-level packager~)�rsplitr�r�)r�package�level�bits�bases     r�
_resolve_namers�sO���>�>�#�u�q�y�)�D�
�4�y�5���N�O�O���7�D�#�d�V�1�T�F��-��-rc���tj}|�td��|stj	dt
�|tjv}|D]q}t�5	|j}||||�}	ddd���1|s<|tjvr*tj|}	|j}	|	�|cS|	cS|cSy#t$rYddd���wxYw#1swY�gxYw#t$r|cYcSwxYw)zFind a module's spec.Nz5sys.meta_path is None, Python is likely shutting downzsys.meta_path is empty)r�	meta_pathr�r�r�rr�rfr,rr�)
rr*r+ru�	is_reload�finderr,r�r�r�s
          r�
_find_specrx�s���
�
�I����*�+�	+�����/��?�
����#�I���
�
!�
5�"�,�,�	�!��t�V�4��
"��������!4����T�*��(�%���H� �'�#��'����3�6��/"�
��		5�	5�
��"�
!��&� � �K�	 �sB�C�C�)
C�'C&�	C�C�C�C�C#	�&C6�5C6c���t|t�stdt|�����|dkrt	d��|dkDr(t|t�std��|std��|s|dk(rt	d��yy)zVerify arguments are "sane".zmodule name must be str, not r~zlevel must be >= 0z__package__ not set to a stringz6attempted relative import with no known parent packagezEmpty module nameN)r�str�	TypeErrorr�
ValueErrorr��rrorps   r�
_sanity_checkr~s����d�C� ��7��T�
�|�D�E�E��q�y��-�.�.��q�y��'�3�'��=�>�>���(�)�
)��E�Q�J��,�-�-��4rzNo module named z{!r}c�V�d}|jd�d}d}|r�|tjvrt||�|tjvrtj|Stj|}	|j}|j}|jd�d}t||�}|�tt�|��|���|r|jj�	t|�}	|r|jj�	|r#tj|}	t||	�|	S|	S#t
$rt�|�d|�d�}t||��d�wxYw#|r|jj�wwxYw#t
$r&d|�d��}tj!|t"�Y|	SwxYw)	Nr�r~z; z is not a packager�zCannot set an attribute on z for child module )r�rr�r�rr�_ERR_MSG_PREFIX�ModuleNotFoundErrorr�rxr�r4r"rErr�r�r)
r�import_r*r��parent_spec�
parent_moduler��childr�r�s
          r�_find_and_load_unlockedr�s����D�
�_�_�S�
!�!�
$�F��K�
�����$�%�g�v�6��3�;�;���;�;�t�$�$����F�+�
�	@� �)�)�D�$�,�,������$�Q�'���d�D�!�D��|�!�_�$5�d�X�">�T�J�J��
�1�1�8�8��?�	<�#�D�)�F���5�5�9�9�;�
����F�+�
�	/��M�5�&�1��M�6�M��5�	@�$�%�d�X�R��z�9J�K�C�%�c��5�4�?�	@�� ��5�5�9�9�;����	/�/��z�9K�E�9�U�C��N�N�3�
�.��M�	/�s*�2D.�E�
E9�.&E�E6�9+F(�'F(c��tjj|t�}|tust	t	|dd�dd�rat|�5tjj|t�}|turt
||�cddd�S	ddd�t|�|�d|�d�}t||���|S#1swY�+xYw)zFind and load the module.r�Nr!Fz
import of z halted; None in sys.modulesr)	rr�rM�_NEEDS_LOADINGrr�r�r�r�)rr�r�r�s    r�_find_and_loadr�Es���
�[�[�_�_�T�>�
2�F��.� ����
�D�1�?�E�J�
��
%��[�[�_�_�T�>�:�F���'�.�t�W�=�	>�	>�'�&�	�D�!�
�~��t�f�$@�A��!�'��5�5��M�&�
%�s�8B=�=Cc�`�t|||�|dkDr
t|||�}t|t�S)a2Import and return the module based on its name, the package the call is
    being made from, and the level adjustment.

    This function represents the greatest common denominator of functionality
    between import_module and __import__. This includes setting __package__ if
    the loader did not.

    r~)r~rsr��_gcd_importr}s   rr�r�_s2���$���'��q�y��T�7�E�2���$��,�,r��	recursivec	���|D]�}t|t�s8|r|jdz}nd}td|�dt	|�j����|dk(r*|r�St|d�s�`t
||j|d���zt||�r��|j�d	|��}	t||���|S#t$r>}|j|k(r)tjj|t��Yd
}~��d
}~wwxYw)z�Figure out what __import__ should return.

    The import_ parameter is a callable which takes the name of module to
    import. It is required to decouple the function from assuming importlib's
    import implementation is desired.

    z.__all__z
``from list''zItem in z must be str, not �*�__all__Tr�r�N)rrzrr{rr�_handle_fromlistr�r�r�rrr�rMr�)r��fromlistr�r��x�where�	from_name�excs        rr�r�ns������!�S�!�����*�4��'���h�u�g�.#�#'��7�#3�#3�"4�6�7�
7�
�#�X�����!;� ������+/�1����#�!�?�?�+�1�Q�C�0�I�	
�)�'�9�=��0�M��'�
��H�H�	�)��K�K�O�O�I�~�>�J����
�s�B,�,	C3�53C.�-C.�.C3c�\�|jd�}|jd�}|�@|�<||jk7r-tjd|�d|j�d�td��|S|�|jStjdt
d��|d	}d
|vr|j
d�d}|S)
z�Calculate what __package__ should be.

    __package__ is not guaranteed to be defined or could be set to None
    to represent that its proper value is unknown.

    rr�z __package__ != __spec__.parent (z != r��)�
stacklevelzYcan't resolve package from __spec__ or __package__, falling back on __name__ and __path__rrr�r~)rMr�r�r�r�rr�)�globalsror�s   r�_calc___package__r��s����k�k�-�(�G��;�;�z�"�D������4�;�;� 6��N�N��&�k��d�k�k�_�A�?�-�!�
�
=���	
�	��{�{�����?�$��	�	4��*�%���W�$��(�(��-�a�0�G��Nrc��|dk(rt|�}n|�|ni}t|�}t|||�}|s�|dk(rt|jd�d�S|s|St|�t|jd�d�z
}tj
|jdt|j�|z
St|d�rt||t�S|S)a�Import a module.

    The 'globals' argument is used to infer where the import is occurring from
    to handle relative imports. The 'locals' argument is ignored. The
    'fromlist' argument specifies what should exist as attributes on the module
    being imported (e.g. ``from module import <fromlist>``).  The 'level'
    argument represents the package location to import from in a relative
    import (e.g. ``from ..pkg import mod`` would have a 'level' of 2).

    r~Nr�r)	r�r��	partitionr�rr�rrr�)	rr��localsr�rpr��globals_ro�cut_offs	         r�
__import__r��s���
��z��T�"��%�1�7�r��#�H�-���T�7�E�2����A�:��t�~�~�c�2�1�5�6�6���M��$�i�#�d�n�n�S�&9�!�&<�"=�=�G��;�;�v���/L��F�O�O�0D�W�0L�M�N�N�	���	$����+�>�>��
rc�b�tj|�}|�td|z��t|�S)Nzno built-in module named )r&r,r�r")rr�s  r�_builtin_from_namer��s3���$�$�T�*�D��|��5��<�=�=��$��rc�,�|a|att�}tjj	�D]z\}}t||�s�|tjvrt}ntj|�rt}n�It||�}t||�|tus�j|j|��|tjt}dD]@}|tjvrt|�}	ntj|}	t|||	��Bt!�ay)z�Setup importlib by importing needed built-in modules and injecting them
    into the global namespace.

    As sys is needed for sys.modules access and _imp is needed to load built-in
    modules, those two modules must be explicitly passed in.

    )rnr�r5N)r�rrr��itemsrr�r&r�r;r
rrKrr�rr#rV)
�
sys_module�_imp_module�module_typerr�r�r��self_module�builtin_name�builtin_modules
          r�_setupr��s����D�
�C��s�)�K����)�)�+���f��f�k�*��s�/�/�/�(������%�'���$�V�V�4�D��t�V�,���'��%�%�f�-�,��+�+�h�'�K�<���s�{�{�*�/��=�N� �[�[��6�N���\�>�:�=�(�)�Lrc��t||�tjjt�tjjt
�y)z0Install importers for builtin and frozen modulesN)r�rrur4r&r;)r�r�s  r�_installr�s0��
�:�{�#��M�M����)��M�M����(rc�\�ddl}|a|jtjt
�y)z9Install importers that require external filesystem accessr~N)�_frozen_importlib_externalr�r�rr�r)r�s r�_install_external_importersr�
s$��&�4���'�'����H�(=�>rr8rr�)NNr r~):r
r	rnr�r5r�rrrrr#r�rVrQrr_rfrlr�r�r�r�r�r�r�r�r�r�r�r�r
rrr�r�rr"r�r&r;rfrsrxr~r��_ERR_MSGr��objectr�r�r�r�r�r�r�r�r�r�r rr�<module>r�s����,&����	�����&��	�D�	�I�I�\�
���*�*�,	�\�	�
(�V`;�`;�F@�@�*�� "�J�"�01�6�%�$��&6�*a)�a)�H.2�d�J�:'�T27�F�R�"=�,�<"�H)�Z
$�11�11�h~0�~0�F
�
�.�*�Z
.� %���V�#��'�T����4-�>C�"�J�6"�J �%*�P)�?r

Hacked By AnonymousFox1.0, Coded By AnonymousFox