Hacked By AnonymousFox

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

�

0�f�s��&�dZddlZddlZddlmZmZdZejdvrdxZZ	nddlZej�Zedk(Zedk(Z	d	ZdZ
erd
ZdZ
gd�\ZZZZeZeZee�Gd
�d��ZGd�d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#	ddl$Z$e%e$dd�Z&e%e$dd�Z'e$jPZ)d�Z+d �Z,d!�Z-d"�Z.e	reegZ/n4ejd#k(reee!gZ/nejd$k(rgZ/n
ere!gZ/neeee!e gZ/ej`d%k(re,ge/zZ1nej`d&k(re-ge/zZ1ne/Z1da2d'�Z3da4d2d(�Z5d)�Z6d*�Z7d+�Z8d,�Z9ed-�Z:ed.�Z;ed/�Z<ed0�Z=e>d1k(re9�yy#e*$rdZ$dZ&dZ'dZ)Y��wxYw)3aQUUID objects (universally unique identifiers) according to RFC 4122.

This module provides immutable UUID objects (class UUID) and the functions
uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5
UUIDs as specified in RFC 4122.

If all you want is a unique ID, you should probably call uuid1() or uuid4().
Note that uuid1() may compromise privacy since it creates a UUID containing
the computer's network address.  uuid4() creates a random UUID.

Typical usage:

    >>> import uuid

    # make a UUID based on the host ID and current time
    >>> uuid.uuid1()    # doctest: +SKIP
    UUID('a8098c1a-f86e-11da-bd1a-00112444be1e')

    # make a UUID using an MD5 hash of a namespace UUID and a name
    >>> uuid.uuid3(uuid.NAMESPACE_DNS, 'python.org')
    UUID('6fa459ea-ee8a-3ca4-894e-db77e160355e')

    # make a random UUID
    >>> uuid.uuid4()    # doctest: +SKIP
    UUID('16fd2706-8baf-433b-82eb-8c7fada847da')

    # make a UUID using a SHA-1 hash of a namespace UUID and a name
    >>> uuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')
    UUID('886313e1-3b8a-5372-9b90-0c9aee199e5d')

    # make a UUID from a string of hex digits (braces and hyphens ignored)
    >>> x = uuid.UUID('{00010203-0405-0607-0809-0a0b0c0d0e0f}')

    # convert a UUID to a string of hex digits in standard form
    >>> str(x)
    '00010203-0405-0607-0809-0a0b0c0d0e0f'

    # get the raw 16 bytes of the UUID
    >>> x.bytes
    b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f'

    # make a UUID from a 16-byte string
    >>> uuid.UUID(bytes=x.bytes)
    UUID('00010203-0405-0607-0809-0a0b0c0d0e0f')
�N)�Enum�_simple_enumzKa-Ping Yee <ping@zesty.ca>)�win32�darwin�
emscripten�wasiF�AIX�Linux�:�.T)zreserved for NCS compatibilityzspecified in RFC 4122z$reserved for Microsoft compatibilityzreserved for future definitionc��eZdZdZdZdZy)�SafeUUIDr���N)�__name__�
__module__�__qualname__�safe�unsafe�unknown���+/opt/alt/python312/lib64/python3.12/uuid.pyrrNs���D�
�F��Grrc�r�eZdZdZdZ		d!ejd�d�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Z ed��Z!ed��Z"ed ��Z#y)"�UUIDa�	Instances of the UUID class represent UUIDs as specified in RFC 4122.
    UUID objects are immutable, hashable, and usable as dictionary keys.
    Converting a UUID to a string with str() yields something in the form
    '12345678-1234-1234-1234-123456789abc'.  The UUID constructor accepts
    five possible forms: a similar string of hexadecimal digits, or a tuple
    of six integer fields (with 32-bit, 16-bit, 16-bit, 8-bit, 8-bit, and
    48-bit values respectively) as an argument named 'fields', or a string
    of 16 bytes (with all the integer fields in big-endian order) as an
    argument named 'bytes', or a string of 16 bytes (with the first three
    fields in little-endian order) as an argument named 'bytes_le', or a
    single 128-bit integer as an argument named 'int'.

    UUIDs have these read-only attributes:

        bytes       the UUID as a 16-byte string (containing the six
                    integer fields in big-endian byte order)

        bytes_le    the UUID as a 16-byte string (with time_low, time_mid,
                    and time_hi_version in little-endian byte order)

        fields      a tuple of the six integer fields of the UUID,
                    which are also available as six individual attributes
                    and two derived attributes:

            time_low                the first 32 bits of the UUID
            time_mid                the next 16 bits of the UUID
            time_hi_version         the next 16 bits of the UUID
            clock_seq_hi_variant    the next 8 bits of the UUID
            clock_seq_low           the next 8 bits of the UUID
            node                    the last 48 bits of the UUID

            time                    the 60-bit timestamp
            clock_seq               the 14-bit sequence number

        hex         the UUID as a 32-character hexadecimal string

        int         the UUID as a 128-bit integer

        urn         the UUID as a URN as specified in RFC 4122

        variant     the UUID variant (one of the constants RESERVED_NCS,
                    RFC_4122, RESERVED_MICROSOFT, or RESERVED_FUTURE)

        version     the UUID version number (1 through 5, meaningful only
                    when the variant is RFC_4122)

        is_safe     An enum indicating whether the UUID has been generated in
                    a way that is safe for multiprocessing applications, via
                    uuid_generate_time_safe(3).
    )�int�is_safe�__weakref__N)rc�<�|||||gjd�dk7rtd��|�h|jdd�jdd�}|jd�jdd�}t	|�d	k7rtd
��t
|d�}|�9t	|�dk7rtd��|d
dd�|dd
d�z|ddd�z|ddz}|�.t	|�dk7rtd��tj|�}|��t	|�dk7rtd��|\}}	}
}}}
d|cxkrdkstd��td��d|	cxkrdkstd��td��d|
cxkrdkstd��td��d|cxkrdkstd��td��d|cxkrdkstd��td��d|
cxkrdkstd��td��|dz|z}|d z|	d!zz|
d"zz|d#zz|
z}|�%d|cxkrd$d%zkstd&��td&��|�9d$|cxkrdkstd'��td'��|d(z}|d)z}|d*z}||d+zz}tj|d,|�tj|d-|�y).aLCreate a UUID from either a string of 32 hexadecimal digits,
        a string of 16 bytes as the 'bytes' argument, a string of 16 bytes
        in little-endian order as the 'bytes_le' argument, a tuple of six
        integers (32-bit time_low, 16-bit time_mid, 16-bit time_hi_version,
        8-bit clock_seq_hi_variant, 8-bit clock_seq_low, 48-bit node) as
        the 'fields' argument, or a single 128-bit integer as the 'int'
        argument.  When a string of hex digits is given, curly braces,
        hyphens, and a URN prefix are all optional.  For example, these
        expressions all yield the same UUID:

        UUID('{12345678-1234-5678-1234-567812345678}')
        UUID('12345678123456781234567812345678')
        UUID('urn:uuid:12345678-1234-5678-1234-567812345678')
        UUID(bytes='\x12\x34\x56\x78'*4)
        UUID(bytes_le='\x78\x56\x34\x12\x34\x12\x78\x56' +
                      '\x12\x34\x56\x78\x12\x34\x56\x78')
        UUID(fields=(0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x567812345678))
        UUID(int=0x12345678123456781234567812345678)

        Exactly one of 'hex', 'bytes', 'bytes_le', 'fields', or 'int' must
        be given.  The 'version' argument is optional; if given, the resulting
        UUID will have its variant and version set according to RFC 4122,
        overriding the given 'hex', 'bytes', 'bytes_le', 'fields', or 'int'.

        is_safe is an enum exposed as an attribute on the instance.  It
        indicates whether the UUID has been generated in a way that is safe
        for multiprocessing applications, via uuid_generate_time_safe(3).
        N�zGone of the hex, bytes, bytes_le, fields, or int arguments must be givenzurn:�zuuid:z{}�-� z$badly formed hexadecimal UUID string�z bytes_le is not a 16-char string�r���zbytes is not a 16-char string�zfields is not a 6-tuplerlz*field 1 out of range (need a 32-bit value)iz*field 2 out of range (need a 16-bit value)z*field 3 out of range (need a 16-bit value)�z*field 4 out of range (need an 8-bit value)z*field 5 out of range (need an 8-bit value)�z*field 6 out of range (need a 48-bit value)�`�P�@�0��z*int is out of range (need a 128-bit value)zillegal version numberl�����l�����Lrr)
�count�	TypeError�replace�strip�len�
ValueError�int_�
from_bytes�object�__setattr__)�self�hex�bytes�bytes_le�fieldsr�versionr�time_low�time_mid�time_hi_version�clock_seq_hi_variant�
clock_seq_low�node�	clock_seqs               r�__init__z
UUID.__init__�sD��@
���&�#�.�4�4�T�:�a�?��=�>�
>��?��+�+�f�b�)�1�1�'�2�>�C��)�)�D�/�)�)�#�r�2�C��3�x�2�~� �!G�H�H��s�B�-�C����8�}��"� �!C�D�D��c�g�2�g�&��#�c�"�*�)=�=��c�#�b�j�)�*�,4�Q�R�L�9�E����5�z�R�� �!@�A�A��/�/�%�(�C����6�{�a�� �!:�;�;�:@�
8�X�x��
!�=�$���(�5�(� �!M�N�N�)� �!M�N�N���(�5�(� �!M�N�N�)� �!M�N�N���/�%�/� �!M�N�N�0� �!M�N�N��,�3�t�3� �!M�N�N�4� �!M�N�N��
�,��,� �!M�N�N�-� �!M�N�N���$�u�$� �!M�N�N�%� �!M�N�N�-��2�m�C�I���N�x�2�~�6�#�r�)�+�.7�2�o�?�AE�F�C��?���$�a��f�$� �!M�N�N�%� �!M�N�N�����$�1�$� �!9�:�:�%� �!9�:�:��?�"�C��<��C��?�"�C��7�b�=� �C����4���,����4��G�4rc��d|ji}|jtjk7r|jj|d<|S�Nrr)rrrr�value)r=�ds  r�__getstate__zUUID.__getstate__�s<��
�D�H�H����<�<�8�+�+�+� �<�<�-�-�A�i�L��rc��tj|d|d�tj|dd|vrt|d��ytj�yrL)r;r<rr)r=�states  r�__setstate__zUUID.__setstate__�sQ�����4���e��5����4��'�5�0�$�E�)�$4�5�	H�6>�6F�6F�	Hrc�`�t|t�r|j|jk(StS�N��
isinstancerr�NotImplemented�r=�others  r�__eq__zUUID.__eq__��%���e�T�"��8�8�u�y�y�(�(��rc�`�t|t�r|j|jkStSrTrUrXs  r�__lt__zUUID.__lt__��%���e�T�"��8�8�e�i�i�'�'��rc�`�t|t�r|j|jkDStSrTrUrXs  r�__gt__zUUID.__gt__�r^rc�`�t|t�r|j|jkStSrTrUrXs  r�__le__zUUID.__le__r[rc�`�t|t�r|j|jk\StSrTrUrXs  r�__ge__zUUID.__ge__r[rc�,�t|j�SrT)�hashr�r=s r�__hash__z
UUID.__hash__s���D�H�H�~�rc��|jSrT�rrgs r�__int__zUUID.__int__s���x�x�rc�L�|jj�dt|��d�S)N�(�))�	__class__r�strrgs r�__repr__z
UUID.__repr__s���>�>�2�2�C��I�>�>rc��td��)NzUUID objects are immutable)r4)r=�namerMs   rr<zUUID.__setattr__s���4�5�5rc�^�d|jz}|dd�d|dd�d|dd�d|dd�d|dd��	S)N�%032xr'r!�r#�rj)r=r>s  r�__str__zUUID.__str__sE������ �����G�S��2�Y��B�r�
�C��2�J��B�C��B�	Brc�8�|jjd�S)Nr#)r�to_bytesrgs rr?z
UUID.bytess���x�x� � ��$�$rc�Z�|j}|ddd�|ddd�z|ddd�z|ddzS)Nr$rr%r&r'�r?)r=r?s  rr@z
UUID.bytes_le!sK���
�
���c�g�2�g���s�3�r�z�!2�2�U�3�s�2�:�5F�F��a�b�	��	rc��|j|j|j|j|j|j
fSrT)rCrDrErFrGrHrgs rrAzUUID.fields's:���
�
�t�}�}�d�.B�.B��)�)�4�+=�+=�t�y�y�J�	Jrc� �|jdz	S)Nr+rjrgs rrCz
UUID.time_low,s���x�x�2�~�rc�&�|jdz	dzS)Nr,�rjrgs rrDz
UUID.time_mid0������B��&�(�(rc�&�|jdz	dzS)Nr-r�rjrgs rrEzUUID.time_hi_version4r�rc�&�|jdz	dzS)N�8�rjrgs rrFzUUID.clock_seq_hi_variant8������B��$�&�&rc�&�|jdz	dzS)Nr.r�rjrgs rrGzUUID.clock_seq_low<r�rc�`�|jdzdz|jdzz|jzS)N�r.r")rErDrCrgs r�timez	UUID.time@s7���&�&��/�B�6����"�$�&�(,�
�
�6�	7rc�@�|jdzdz|jzS)N�?r')rFrGrgs rrIzUUID.clock_seqEs(���+�+�d�2�q�8��"�"�#�	$rc� �|jdzS)Nl���rjrgs rrHz	UUID.nodeJs���x�x�.�(�(rc� �d|jzS)Nrurjrgs rr>zUUID.hexNs������!�!rc��dt|�zS)Nz	urn:uuid:)rprgs r�urnzUUID.urnRs���S��Y�&�&rc��|jdzstS|jdzstS|jdzstStS)Nr1ll)r�RESERVED_NCS�RFC_4122�RESERVED_MICROSOFT�RESERVED_FUTURErgs r�variantzUUID.variantVs=���x�x�<�(������\�*��O����\�*�%�%�"�"rc�`�|jtk(rt|jdz	dz�Sy)Nr2�)r�r�rrgs rrBzUUID.versionas-���<�<�8�#�����B��#�-�.�.�$r)NNNNNN)$rrr�__doc__�	__slots__rrrJrOrRrZr]r`rbrdrhrkrqr<rx�propertyr?r@rArCrDrErFrGr�rIrHr>r�r�rBrrrrrUs���1�f2�I�CG�)-�T5�"*�"2�"2�T5�l�H���
�
�
�
��?�6�B�
�%��%�����
�J��J������)��)��)��)��'��'��'��'��7��7��$��$��)��)��"��"��'��'��#��#��/��/rrc�N�ddl}ddl}ddl}ddl}	|jjd|j�j|j�}|jddg�|j||jj|���}|�yt|j�}d|d<|dk7r|g|��}n|f}|j||j|j|�	�}	|	sy|	j!�\}
}|j#|
�S#t$|j&f$rYywxYw)
Nr�PATHz/sbinz	/usr/sbin)�path�C�LC_ALL)r )�stdout�stderr�env)�io�os�shutil�
subprocess�environ�get�defpath�split�pathsep�extend�which�join�dict�Popen�PIPE�DEVNULL�communicate�BytesIO�OSError�SubprocessError)�command�argsr�r�r�r��	path_dirs�
executabler��procr�r�s            r�_get_command_stdoutr�hs��%�%���J�J�N�N�6�2�:�:�6�<�<�R�Z�Z�H�	����'�;�/�0��\�\�'��
�
���	�0J�\�K�
�����2�:�:�����H�
��5�=�!�)�D�)�G�!�m�G�����'1���'1�'9�'9�$'� �)�����)�)�+�����z�z�&�!�!���Z�/�/�0����s�BD�AD�(#D�D$�#D$c��|dzS)Nlr��macs r�
_is_universalr��s���w�� � rc��t||�}|�yd}|D]�}|j�j�j�}t	t|��D]M}|||vs�	|||�}	t
|	jtd�d�}
t|
�r|
ccS|xs|
}�O��|xsdS#ttf$rY�iwxYw)a�Searches a command's output for a MAC address near a keyword.

    Each line of words in the output is case-insensitively searched for
    any of the given keywords.  Upon a match, get_word_index is invoked
    to pick a word from the line, given the index of the match.  For
    example, lambda i: 0 would get the first word on the line, while
    lambda i: i - 1 would get the word preceding the keyword.
    Nrr#)r��lower�rstripr��ranger7rr5�
_MAC_DELIMr�r8�
IndexError)r�r��keywords�get_word_indexr��first_local_mac�line�words�i�wordr�s           r�_find_mac_near_keywordr��s���!��$�
/�F�
�~���O����
�
��#�#�%�+�+�-���s�5�z�"�A��Q�x�8�#�
=� ���!2�3�D��d�l�l�:�s�;�R�@�C�%�S�)�"�
�&5�&<��O�#��$�"�d�"��#�J�/���
�s�#+B/�/C�Cc�.�|jt�}t|�dk7rytr,t	d�|D��sydjd�|D��}n$t	d�|D��sydj|�}	t
|d�S#t$rYywxYw)Nr(c3�NK�|]}dt|�cxkxrdknc���y�w)r/�N�r7��.0�parts  r�	<genexpr>z_parse_mac.<locals>.<genexpr>�s!����9�4�1��D�	�&�Q�&�&�9�s�#%rc3�@K�|]}|jdd����y�w)r��0N)�rjustr�s  rr�z_parse_mac.<locals>.<genexpr>�s����@�$�$�*�*�Q��-�@�s�c3�8K�|]}t|�dk(���y�w)r�Nr�r�s  rr�z_parse_mac.<locals>.<genexpr>�s����4�d�3�t�9��>�4�s�r#)r�r�r7�_MAC_OMITS_LEADING_ZEROES�allr�rr8)r��parts�hexstrs   r�
_parse_macr��s���
�J�J�z�"�E�
�5�z�Q��� �
�9�5�9�9�����@�%�@�@���4�e�4�4�����%�����6�2��������s�<B�	B�Bc�z�t||�}|�y|j�j�j�}	|j	|�}d}|D]H}|j�j�}	||}	t|	�}
|
��5t|
�r|
cS|��G|
}�J|S#t
$rYywxYw#t$rY�gwxYw)aLooks for a MAC address under a heading in a command's output.

    The first line of words in the output is searched for the given
    heading. Words at the same word index as the heading in subsequent
    lines are then examined to see if they look like MAC addresses.
    N)	r��readliner�r��indexr8r�r�r�)r�r��headingr�r��column_indexr�r�r�r�r�s           r�_find_mac_under_headingr��s���!��$�
/�F�
�~����� �'�'�)�/�/�1�H���~�~�g�.���O������
�#�#�%��	���&�D������;������J��"�!�O�����'������	��	�s#�B�4B.�	B+�*B+�.	B:�9B:c�@�d}dD]}td||d��}|s�|cSy)z5Get the hardware address on Unix by running ifconfig.)shwaddrsethersaddress:slladdr)r z-az-av�ifconfigc��|dzS�Nr/r�r�s r�<lambda>z#_ifconfig_getnode.<locals>.<lambda>s��1�Q�3rN�r�)r�r�r�s   r�_ifconfig_getnoder��s0��=�H�!��$�Z��x��O����J�"�rc�,�tdddgd��}|r|Sy)z/Get the hardware address on Unix by running ip.�ip�links
link/etherc��|dzSr�rr�s rr�z_ip_getnode.<locals>.<lambda>s��!�A�#rNr�r�s r�_ip_getnoder�	s!��!��v�
��
�
N�C�
��
�rc�j�ddl}ddl}t|d�sy	|j|j	��}t
dd|j|�gd��}|r|St
dd|j|�gd��}|r|St
dd|jd|z�gd	��}|r|Sy#t
$rYywxYw)
z0Get the hardware address on Unix by running arp.rN�
gethostbyname�arpz-anc��y)Nrrr�s rr�z_arp_getnode.<locals>.<lambda>s��QSrc��|dzSr�rr�s rr�z_arp_getnode.<locals>.<lambda>!s��QR�ST�QTrz(%s)c��|dzS)Nr�rr�s rr�z_arp_getnode.<locals>.<lambda>'s��a��cr)r��socket�hasattrr��gethostnamer�r��fsencode)r�r��ip_addrr�s    r�_arp_getnoder�s�����6�?�+����&�&�v�'9�'9�';�<��
!�������G�0D�/E�|�
T�C�
��
�!�������G�0D�/E�}�
U�C�
��
�!�������F�W�<L�0M�/N�!�#�C���
���'����s�B&�&	B2�1B2c�"�tdddgd��S)z4Get the hardware address on Unix by running lanscan.�lanscanz-aislan0c��y)Nrrr�s rr�z"_lanscan_getnode.<locals>.<lambda>0s��rr�rrr�_lanscan_getnoder-s��"�)�U�W�I�{�K�Krc��tddd�S)z4Get the hardware address on Unix by running netstat.�netstatz-iansAddress)r�rrr�_netstat_getnoder2s��#�9�f�j�A�Arc��t�S�z1[DEPRECATED] Get the hardware address on Windows.��_windll_getnoderrr�_ipconfig_getnoder7�
����rc��t�Srr	rrr�_netbios_getnoder<rr�generate_time_safe�
UuidCreatec��y)z>[DEPRECATED] Platform-specific functions loaded at import timeNrrrr�_load_system_functionsrOs�rc�V�tr#t�\}}t|��jSy)zBGet the hardware address on Unix using the _uuid extension module.r|N)�_generate_time_saferrH)�	uuid_time�_s  r�
_unix_getnoderSs'���*�,��	�1��)�$�)�)�)�rc�P�tr t�}t|��jSy)zEGet the hardware address on Windows using the _uuid extension module.)r@N)�_UuidCreaterrH)�
uuid_bytess rr
r
Ys"��� �]�
��Z�(�-�-�-�rc�2�ddl}|jd�dzS)zGet a random node ID.rNr.l)�random�getrandbits)rs r�_random_getnoder_s������b�!�W�-�-rrr�posix�ntc��t�tSttgzD]*}	|�at��dtcxkr
dks�"tcS�,y#Y�2xYw)a3Get the hardware address as a 48-bit positive integer.

    The first time this runs, it may launch a separate program, which could
    be quite slow.  If all attempts to obtain the hardware address fail, we
    choose a random 48-bit number with its eighth bit set to 1 as recommended
    in RFC 4122.
    Nrr*)�_node�_GETTERSr)�getters r�getnoder%�sU��
�����o�.�.��	��H�E�
��A��$:�'�$:��L�%;�/��	��s�A	�	A
c���t�0||cxur�)nn&t�\}}	t|�}t	||��Sddl}|j
�}|dzdz}t�|tkr	tdz}|a|�ddl}|jd�}|dz}	|d	z	d
z}
|dz	dz}|d
z}|dz	dz}
|�
t�}t	|	|
||
||fd��S#t$rtj}Y��wxYw)aGenerate a UUID from a host ID, sequence number, and the current time.
    If 'node' is not given, getnode() is used to obtain the hardware
    address.  If 'clock_seq' is given, it is used as the sequence number;
    otherwise a random 14-bit sequence number is chosen.N)r?rr�dl@'Hw�
r/�l��r"r�r.r�r�r'r�)rArB)rrr8rrr��time_ns�_last_timestamprrr%)rHrIr�safely_generatedrr��nanoseconds�	timestamprrCrDrErGrFs              r�uuid1r.�s!���&�4�9�+D�&9�&;�#�	�#�	'��/�0�G��)�W�5�5���,�,�.�K��s�"�%7�7�I��"�y�O�'C�#�a�'�	��O�����&�&�r�*�	��:�%�H��R��6�)�H� �B��&�0�O���$�M�%��N�d�2���|��y����(�O�,�m�T�C�LM�O�O��/�	'��&�&�G�	'�s�C�C!� C!c��t|t�rt|d�}ddlm}||j|zd��j�}t
|ddd�	�S)
zAGenerate a UUID from the MD5 hash of a namespace UUID and a name.�utf-8r)�md5F)�usedforsecurityNr#r$�r?rB)rVrpr?�hashlibr1�digestr)�	namespacersr1r5s    r�uuid3r7�sU���$����T�7�#���
����$����
�f�h���f�S�b�k�1�-�-rc�B�ttjd�d��S)zGenerate a random UUID.r#rr3)rr��urandomrrr�uuid4r:�s���b�j�j��n�a�0�0rc��t|t�rt|d�}ddlm}||j|z�j�}t
|ddd��S)zCGenerate a UUID from the SHA-1 hash of a namespace UUID and a name.r0r)�sha1Nr#r%r3)rVrpr?r4r<r5r)r6rsr<rfs    r�uuid5r=�sJ���$����T�7�#����	���$�&�'�.�.�0�D��d�3�B�i��+�+rc�f�ttttd�}d}tt
ttd�}ddl}|jd��}|jdd	|j�d
d��|jd
dd��|jddd��|j�}||j}|j}|j}|j|vrJ|r|s|j!d|j�d��||vr||n
t#|�}t%|||��yt%|��y)z$Run the uuid command line interface.)r.r7r:r=)r7r=)z@dnsz@urlz@oidz@x500rNz2Generates a uuid using the selected uuid function.)�descriptionz-uz--uuidr:zLThe function to use to generate the uuid. By default uuid4 function is used.)�choices�default�helpz-nz--namespacez�The namespace is a UUID, or '@ns' where 'ns' is a well-known predefined UUID addressed by namespace name. Such as @dns, @url, @oid, and @x500. Only required for uuid3/uuid5 functions.)rBz-Nz--namezVThe name used as part of generating the uuid. Only required for uuid3/uuid5 functions.zIncorrect number of arguments. zO requires a namespace and a name. Run 'python -m uuid -h' for more information.)r.r7r:r=�
NAMESPACE_DNS�
NAMESPACE_URL�
NAMESPACE_OID�NAMESPACE_X500�argparse�ArgumentParser�add_argument�keys�
parse_args�uuidr6rs�errorr�print)	�
uuid_funcs�uuid_namespace_funcs�
namespacesrG�parserr��	uuid_funcr6rss	         r�mainrT�sO������	�J�.������	�J��
�
$�
$�H�%�J�F�
����h�
���0A�7�=��>�����m�C��D�
����h�C��D�����D��4�9�9�%�I����I��9�9�D��y�y�(�(����L�L�1��9�9�+�@�@�
�
.7�*�-D�J�y�)�$�y�/�	�
�i�	�4�(�)�
�i�k�rz$6ba7b810-9dad-11d1-80b4-00c04fd430c8z$6ba7b811-9dad-11d1-80b4-00c04fd430c8z$6ba7b812-9dad-11d1-80b4-00c04fd430c8z$6ba7b814-9dad-11d1-80b4-00c04fd430c8�__main__)NN)?r�r��sys�enumrr�
__author__�platform�_AIX�_LINUX�system�_platform_systemr�r�r�r�r�r�rr9r?�bytes_rrr�r�r�r�r�r�r�r�rrrr�_uuid�getattrrr�has_uuid_generate_time_safe�_has_uuid_generate_time_safe�ImportErrorrrr
r�_OS_GETTERSrsr#r"r%r*r.r7r:r=rTrCrDrErFrrrr�<module>resj��,�\
�
�#�+�
��<�<�<�<���D�6��&�x���(���5�(�D��7�*�F�
�
�!����J� $��?N�;��h�*�O���	���d������P/�P/�f�\!� #�F�8!�L���8L�
B�
�
�	(��!�%�)=�t�D���%��t�4�K�#(�#D�#D� �I�*�.�
.�,
�� 1�2�K��\�\�X��$�l�4D�E�K��\�\�W���K�	�#�$�K�$�k�<�#�%5�7�K��7�7�g�����,�H��W�W��_�� �;�.�H��H���O�,��$O�L	.�1�,�.�f�;�<�
��;�<�
��;�<�
��<�=���z���F���a�(��E����K�#'� �	(�s�"$F�
F�F

Hacked By AnonymousFox1.0, Coded By AnonymousFox