403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/__pycache__/ipaddress.cpython-315.pyc
R
>lqj�Gc�P�Qs]PHs] s]�sQQ\2sQQ\2sQsQ.QksQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQQ2sPr\O*QQ\22s\O*QQ\22sQQ2s\\mQQ2sQQ\\2sQQ\2sQQ \\2sQ!Q"2s\\m\\mQ#Q$2sQ%Q&\\2s Q'Q(\ 2s!Q)Q*\\2s"Q+Q,2s#\#\ m\#\"mQ-s$P!)/z�A fast, lightweight IPv4/IPv6 manipulation library in Python.

This library is used to create/poke/manipulate IPv4 and IPv6 addresses
and networks.

c��\sQs]sQsQsP!)�AddressValueErrorz%A Value Error related to the address.���__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��C:\Python315\\Lib\ipaddress.pyrr���/rrc��\sQs]sQsQsP!)�NetmaskValueErrorz%A Value Error related to the netmask.rrrrrrrr
rrc��[U2![[1cLh9h[S2![[1cLh9h[	S8Q02g)a�Take an IP string/int and return an object of the correct type.

Args:
    address: A string or integer, the IP address.  Either IPv4 or
      IPv6 addresses may be supplied; integers less than 2**32 will
      be considered to be IPv4 by default.

Returns:
    An IPv4Address or IPv6Address object.

Raises:
    ValueError: if the *address* passed isn't either a v4 or a v6
      address

z. does not appear to be an IPv4 or IPv6 address)�IPv4Addressrr�IPv6Address�
ValueError��addresss&r�
ip_addressrsg�� 
��7�#�#���0�1�
��
��
��7�#�#���0�1�
��
����{�"P�Q�
R�R�%�
�"�"�"�
1�A�A�Ac��[V2![[1cLh9h[X2![[1cLh9h[	S8Q02g)a�Take an IP string/int and return an object of the correct type.

Args:
    address: A string or integer, the IP network.  Either IPv4 or
      IPv6 networks may be supplied; integers less than 2**32 will
      be considered to be IPv4 by default.

Returns:
    An IPv4Network or IPv6Network object.

Raises:
    ValueError: if the string passed isn't either a v4 or a v6
      address. Or if the network has host bits set.

z. does not appear to be an IPv4 or IPv6 network)�IPv4Networkrr�IPv6Networkr)r�stricts&&r�
ip_networkr6sg�� 
��7�+�+���0�1�
��
��
��7�+�+���0�1�
��
����{�"P�Q�
R�Rrc��[U2![[1cLh9h[S2![[1cLh9h[	S8Q02g)a/Take an IP string/int and return an object of the correct type.

Args:
    address: A string or integer, the IP address.  Either IPv4 or
      IPv6 addresses may be supplied; integers less than 2**32 will
      be considered to be IPv4 by default.

Returns:
    An IPv4Interface or IPv6Interface object.

Raises:
    ValueError: if the string passed isn't either a v4 or a v6
      address.

Notes:
    The IPv?Interface classes describe an Address on a particular
    Network, so they're basically a combination of both the Address
    and Network classes.

z0 does not appear to be an IPv4 or IPv6 interface)�
IPv4Interfacerr�
IPv6Interfacerrs&r�ip_interfacer Ssg��*
��W�%�%���0�1�
��
��
��W�%�%���0�1�
��
����{�"R�S�
T�Trc�\�UO]2![c
[Q2gh9h)a@Represent an address as 4 packed bytes in network (big-endian) order.

Args:
    address: An integer representation of an IPv4 IP address.

Returns:
    The integer address packed as 4 bytes in network (big-endian) order.

Raises:
    ValueError: If the integer is negative or too large to be an
      IPv4 IP address.

z&Address negative or too large for IPv4��to_bytes�
OverflowErrorrrs&r�v4_int_to_packedr%us6��C�����"�"���C��A�B�B�C����	+�
+c�\�UO]2![c
[Q2gh9h)z�Represent an address as 16 packed bytes in network (big-endian) order.

Args:
    address: An integer representation of an IPv6 IP address.

Returns:
    The integer address packed as 16 bytes in network (big-endian) order.

z&Address negative or too large for IPv6r"rs&r�v6_int_to_packedr(�s6��C�����#�#���C��A�B�B�C�r&c�z�[U2OQ2o[U2]6�c[QU802gU!)zAHelper to split the netmask and raise AddressValueError if needed�/zOnly one '/' permitted in )�str�split�lenr)r�addrs& r�_split_optional_netmaskr/�s9���w�<���c�"�D�
�4�y�1�}��"<�W�K� H�I�I��Krc#� �[U2o[U29q#SFD/oUOUO]*6wc	V#1w�	SoSoJ1	V#1w�	P!3h)z�Find a sequence of sorted deduplicated IPv#Address.

Args:
    addresses: a list of IPv#Address objects.

Yields:
    A tuple containing the first and last IP addresses in the sequence.

)�iter�next�_ip)�	addresses�it�first�last�ips&    r�_find_address_ranger9�sV���
�i��B���8��E���
�6�6�T�X�X��\�!��+���E���	�
�+��s�AA�Ac�f�U]6XcU![V&U]*
*O22!)z�Count the number of zero bits on the right hand side.

Args:
    number: an integer.
    bits: maximum number of bits to count.

Returns:
    The number of zero bits on the right hand side of the number.

)�min�
bit_length)�number�bitss&&r�_count_righthand_zero_bitsr?�s/����{����t�g����*�6�6�8�9�9rc#� �[U[2%c[U[2%f[Q2gUOUO6wc[U8QU8Q02gV6�c[	Q2gUO]6Xc[
oL#UO]6Xc[oL[	Q2gUOoUOoUOoVE6:cy[[VC2VT*
]*O2]*
2oUVCU*
12oUw�	U]U**
oU]*
UO6XfJ|P!P!3h)aXSummarize a network range given the first and last IP addresses.

Example:
    >>> list(summarize_address_range(IPv4Address('192.0.2.0'),
    ...                              IPv4Address('192.0.2.130')))
    ...                                #doctest: +NORMALIZE_WHITESPACE
    [IPv4Network('192.0.2.0/25'), IPv4Network('192.0.2.128/31'),
     IPv4Network('192.0.2.130/32')]

Args:
    first: the first IPv4Address or IPv6Address in the range.
    last: the last IPv4Address or IPv6Address in the range.

Returns:
    An iterator of the summarized IPv(4|6) network objects.

Raise:
    TypeError:
        If the first and last objects are not IP addresses.
        If the first and last objects are not the same version.
    ValueError:
        If the last object is not greater than the first.
        If the version of the first address is not 4 or 6.

z1first and last must be IP addresses, not networks� and � are not of the same versionz*last IP address must be greater than firstzunknown IP version)
�
isinstance�_BaseAddress�	TypeError�versionrrr�
max_prefixlenr3r;r?r<�	_ALL_ONES)r6r7r8�ip_bits�	first_int�last_int�nbits�nets&&      r�summarize_address_rangerN�s���4��|�
,�
,�
��l�
+�
+��K�L�L��}�}����$����&�'�	'��|��E�F�F��}�}���
��	���!�	�
���-�.�.��!�!�G��	�	�I��x�x�H�
�
��.�y�B��)�A�-�9�9�;�a�?�A���)�u�_�-�.���	��Q�%�Z��	��q�=�B�L�L�(�� �s4�E�E�%E�E�/E�E�#;E�A1E�Ec#� �[U2o-oU%cYUO2oUO2oUOU2oUeV2U$JCVS6wfJKV$UO	U2J`Po[UO
22FD+oUdUOUO6�cJ$Uw�	SoJ-	P!3h)a9Loops through the addresses, collapsing concurrent netblocks.

Example:

    ip1 = IPv4Network('192.0.2.0/26')
    ip2 = IPv4Network('192.0.2.64/26')
    ip3 = IPv4Network('192.0.2.128/26')
    ip4 = IPv4Network('192.0.2.192/26')

    _collapse_addresses_internal([ip1, ip2, ip3, ip4]) ->
      [IPv4Network('192.0.2.0/24')]

    This shouldn't be called directly; it is called via
      collapse_addresses([]).

Args:
    addresses: A list of IPv4Network's or IPv6Network's

Returns:
    A list of IPv4Network's or IPv6Network's depending on what we were
    passed.

)�list�pop�supernet�get�append�sorted�values�broadcast_address)r4�to_merge�subnetsrMrR�existingr7s&      r�_collapse_addresses_internalr[�s����2�I��H��G�
��l�l�n���<�<�>���;�;�x�(���� #�H��
�_��!��O�O�H�%��D��g�n�n�&�'�����%�%��)>�)>�>���	���(�s"�B>�4B>�	B>�7B>�B>�/B>c��,o,o,oSFCDCo[U[2%cXU%c=UP*OUO6wc[U8QUP*8Q02gUO	U2JqUO
UO6XccU%c=UP*OUO6wc[U8QUP*8Q02gUO	UO2J�U%c=UP*OUO6wc[U8QUP*8Q02gUO	U2CJF	[[U22oU%c0[U2FDvqVUO[VV22J!	[V*2![c!SO	SO2CJ�h9h)a�Collapse a list of IP objects.

Example:
    collapse_addresses([IPv4Network('192.0.2.0/25'),
                        IPv4Network('192.0.2.128/25')]) ->
                       [IPv4Network('192.0.2.0/24')]

Args:
    addresses: An iterable of IPv4Network or IPv6Network objects.

Returns:
    An iterator of the collapsed IPv(4|6)Network objects.

Raises:
    TypeError: If passed a list of mixed version objects.

rArB)rCrDrFrErT�
_prefixlenrGr8�AttributeError�network_addressrU�setr9�extendrNr[)r4�addrs�ips�netsr8r6r7s&      r�collapse_addressesre-ss��$
�E�
�C�
�D����b�,�'�'��s�2�w���"�*�*�4��!#�S��W�W�!.�/�/��J�J�r�N�
�]�]�b�.�.�
.��s�2�w���"�*�*�4��!#�S��W�W�!.�/�/�
/��
�
�2�5�5�!���R��(�(�B�J�J�6��!#�T�"�X�X�!/�0�0��K�K��O�%�*��S��
�C��.�s�3�K�E��L�L�0��=�>�4�(���5�5��!"�
/��
�
�2�-�-�.�.�
/�s�F/�/	G�9G�Gc��[U[2%cUO2![U[2%cUO	2![
!)aReturn a key suitable for sorting between networks and addresses.

Address and Network objects are not sortable by default; they're
fundamentally different so the expression

    IPv4Address('192.0.2.0') <= IPv4Network('192.0.2.0/24')

doesn't make any sense.  There are some times however, where you may wish
to have ipaddress sort these for you anyway. If you need to do this, you
can use this function as the key= argument to sorted().

Args:
  obj: either a Network or Address object.
Returns:
  appropriate key.

)rC�_BaseNetwork�_get_networks_keyrD�_get_address_key�NotImplemented)�objs&r�get_mixed_type_keyrlcsB��$�#�|�$�$��$�$�&�&�	�C��	&�	&��#�#�%�%��rc��`�\sQsQsnQsQs\Q2s\Q2s\Q2s	Qs
Qs\Q2s
\Q	2s\Q
2s\Q2s\Q2s\Q
2sQsQsUsP!)�_IPAddressBase�|zThe mother class.c�$�UO2!)z:Return the longhand version of the IP address as a string.)�_explode_shorthand_ip_string��selfs&r�exploded�_IPAddressBase.exploded�s���0�0�2�2rc��[U2!)z;Return the shorthand version of the IP address as a string.�r+rrs&r�
compressed�_IPAddressBase.compressed�s���4�y�rc�$�UO2!)aThe name of the reverse DNS pointer for the IP address, e.g.:
>>> ipaddress.ip_address("127.0.0.1").reverse_pointer
'1.0.0.127.in-addr.arpa'
>>> ipaddress.ip_address("2001:db8::1").reverse_pointer
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa'

)�_reverse_pointerrrs&r�reverse_pointer�_IPAddressBase.reverse_pointer�s���$�$�&�&rc���U]6c Qo[V!UO1*2gVO6�c+Qo[V!UOUO1*2gP!)�z-%d (< 0) is not permitted as an IPv%d addressz2%d (>= 2**%d) is not permitted as an IPv%d address)rrFrHrG)rsr�msgs&& r�_check_int_address�!_IPAddressBase._check_int_address�sa���Q�;�A�C�#�C�D�L�L�*A�$A�B�B��^�^�#�F�C�#�C�D�4F�4F�+/�<�<�+9�%9�:�
:�$rc�j�[U2oV26wc!Qo[VAUV O1*2gP!)z6%r (len %d != %d) is not permitted as an IPv%d address)r-rrF)rsr�expected_len�address_lenr�s&&&  r�_check_packed_address�$_IPAddressBase._check_packed_address�sA���'�l���&�J�C�#�C�K�+7���+G�%G�H�
H�'rc�L�UOUOU*	*!)z~Turn the prefix length into a bitwise netmask

Args:
    prefixlen: An integer, the prefix length.

Returns:
    An integer.

)rH)�cls�	prefixlens&&r�_ip_int_from_prefix�"_IPAddressBase._ip_int_from_prefix�s���}�}��
�
�� :�;�;rc��[UUO2oUOU*
oV*	o]U*]*
oVE6wc9UO]*oUOUQ2oQo[V�*2gU!)z�Return prefix length from the bitwise netmask.

Args:
    ip_int: An integer, the netmask in expanded bitwise format

Returns:
    An integer, the prefix length.

Raises:
    ValueError: If the input intermingles zeroes & ones
�bigz&Netmask pattern %r mixes zeroes & ones)r?rGr#r)	r��ip_int�trailing_zeroesr��leading_ones�all_ones�byteslen�detailsr�s	&&       r�_prefix_from_ip_int�"_IPAddressBase._prefix_from_ip_int�s~��5�V�58�5F�5F�H���%�%��7�	��0����N�a�'���#��(�(�A�-�H��o�o�h��6�G�:�C��S�]�+�+��rc�.�QU*o[U2Pg)z%r is not a valid netmask)r)r��netmask_strr�s&& r�_report_invalid_netmask�&_IPAddressBase._report_invalid_netmask�s��)�K�7����$�$�.rc�6�UO2%cUO2%fUOU2[U2o]Wt96:cUO
6:fLUOU2U![cSOS2KLh9h)z�Return prefix length from a numeric string

Args:
    prefixlen_str: The string to be converted

Returns:
    An integer, the prefix length.

Raises:
    NetmaskValueError: If the input is not a valid netmask
)�isascii�isdigitr��intrrG)r��
prefixlen_strr�s&& r�_prefix_from_prefix_string�)_IPAddressBase._prefix_from_prefix_string�s����%�%�'�'�M�,A�,A�,C�,C��'�'�
�6�	7��M�*�I��Y�3�#�"3�"3�3��'�'�
�6����	�	7��'�'�
�6�	7�s�A9�9	B�B�Bc�B�UOU2oUOW2![cSOS2K0h9h[cLh9hWSO
*oSOS2![cSOS2P!h9h)z�Turn a netmask/hostmask string into a prefix length

Args:
    ip_str: The netmask/hostmask to be converted

Returns:
    An integer, the prefix length.

Raises:
    NetmaskValueError: If the input is not a valid netmask/hostmask
)�_ip_int_from_stringrr�r�rrH)r��ip_strr�s&& r�_prefix_from_ip_string�%_IPAddressBase._prefix_from_ip_string�s���	0��,�,�V�4�F�	��*�*�6�2�2��!�	0��'�'��/�	0���	��	��	�#�-�-���	0��*�*�6�2�2���	0��'�'��/�	0�sC�&�A�	A�A�A�	A�A�A�-A>�>	B�B�Bc���[U[[12%cVO1![U[2%f[U2o[
U2]6�cU!U]*UO1!)z�Helper function to parse address of Network/Interface.

Arg:
    address: Argument of Network/Interface.

Returns:
    (addr, prefix) tuple.
)rC�bytesr�rG�tupler/r-)r�rs&&r�_split_addr_prefix�!_IPAddressBase._split_addr_prefix
se���g��s�|�,�,��-�-�-�-��'�5�)�)�.�g�6�G��w�<�!���N��q�z�3�,�,�,�,rc�4�UO[U211!�N��	__class__r+rrs&r�
__reduce__�_IPAddressBase.__reduce__%s���~�~��D�	�|�+�+rr)rrrrr	�	__slots__�propertyrtrxr|r�r��classmethodr�r�r�r�r�r�r�r
�__classdictcell__��
__classdict__s@rrnrn|s�������I�
�3��3������'��'�:�H��
<��
<�����0�/��/�����0�0��0�B�-��-�.,�,rrnc�x``�\sQsQsnQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsU1Q
ksQsUsU9s!)rD�+ztA generic IP object.

This IP class contains the version independent methods which are
used by single IP addresses.
c��UO!r��r3rrs&r�__int__�_BaseAddress.__int__6s���x�x�rc��UOUO6H9%cUOUO6H![c
[t!h9hr�)r3rFr^rj�rs�others&&r�__eq__�_BaseAddress.__eq__9sK��	"��H�H��	�	�)�6�6�����
�
�5�
7���	"�!�!�	"�s�=�=�	A�A�Ac��[U[2%f[!UOUO6wc[	U8QU8Q02gUO
UO
6wcUO
UO
6!P
!�rArB)rCrDrjrFrEr3r�s&&r�__lt__�_BaseAddress.__lt__@sb���%��.�.�!�!��<�<�5�=�=�(��!�5�*�+�
+��8�8�u�y�y� ��8�8�e�i�i�'�'�rc�~�[U[2%f[!UO[U2U*2!r��rCr�rjr�r�s&&r�__add__�_BaseAddress.__add__L�-���%��%�%�!�!��~�~�c�$�i�%�/�0�0rc�~�[U[2%f[!UO[U2U*
2!r�r�r�s&&r�__sub__�_BaseAddress.__sub__Qr�rc�R�UOO8Q[U28Q0!��(�)�r�rr+rrs&r�__repr__�_BaseAddress.__repr__V����>�>�2�2�C��I�>�>rc�L�[UOUO22!r�)r+�_string_from_ip_intr3rrs&r�__str__�_BaseAddress.__str__Ys���4�+�+�D�H�H�5�6�6rc�R�[[[UO222!r�)�hash�hexr�r3rrs&r�__hash__�_BaseAddress.__hash__\s���C��D�H�H�
�&�'�'rc� �UOU1!r�)rFrrs&rri�_BaseAddress._get_address_key_s�����d�#�#rc�6�UOUO11!r�)r�r3rrs&rr��_BaseAddress.__reduce__bs���~�~����{�*�*rc�6:�U%cUP*Q6Xc[[U2U2![e]PHoUO	Q2r[OU2oU%f[RU_U2!UO2vqEoUQ6XcUO]6XcQoLQoUQ6XcUOoLUO]*oU%cVw]*]*
*
oU%c
U]*
o[[U2UQUUU02!)a�Returns an IP address as a formatted string.

Supported presentation types are:
's': returns the IP address as a string (default)
'b': converts to binary and returns a zero-padded string
'X' or 'x': converts to upper- or lower-case hex and returns a zero-padded string
'n': the same as 'b' for IPv4 and 'x' for IPv6

For binary and hex presentation types, the alternate form specifier
'#' and the grouping option '_' are supported.
�sz(#?)(_?)([xbnX])�n�b�x�0)�formatr+�_address_fmt_re�re�compile�	fullmatch�super�
__format__�groupsrFrGr�)	rs�fmtr��m�	alternate�grouping�fmt_base�padlenr�s	&&      �rr��_BaseAddress.__format__es�����c�"�g��n��#�d�)�S�)�)��"�� �j�j�);�<�O��%�%�c�*����7�%�c�*�*�()���
�%�	�X��s�?��|�|�q� ������s�?��'�'�F��'�'�1�,�F����k�A�o�%�F���a�K�F��c�$�i�I�;�a��x��z�(��!L�M�Mrr)rrrrr	r�r�r�r�r�r�r�r�r�rir�r�r
r��
__classcell__�r�r�s@@rrDrD+sO������I��"��1�
1�
?�7�(�$�+�/N�/NrrDc�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
Qs\O Q
2s\O Q2s\Q2s\Q2s\Q2s\Q2s\Q2s\Q2sQsQsQsQ%QksQ%Qks\Q2s\ Q2s!Qs"Qs#\Q2s$\Q2s%\Q 2s&\Q!2s'\Q"2s(\Q#2s)Q$s*Us+P!)&rg�zqA generic IP network object.

This IP class contains the version independent methods which are
used by networks.
c�R�UOO8Q[U28Q0!r�r�rrs&rr��_BaseNetwork.__repr__�r�rc�B�QUOUO1*!��%s/%d)r_r�rrs&rr��_BaseNetwork.__str__�s���$�.�.����?�?�?rc#�� �[UO2o[UO2o[U]*U2FDoUO	U2w�	J	P!3h)z�Generate Iterator over usable hosts in a network.

This is like __iter__ except it doesn't return the network
or broadcast addresses.

�r�r_rW�range�_address_class�rs�network�	broadcastr�s&   r�hosts�_BaseNetwork.hosts�sM����d�*�*�+����.�.�/�	��w��{�I�.�A��%�%�a�(�(�/�s�AAc#� �[UO2o[UO2o[V]*2FDoUO	U2w�	J	P!3h)�rrs&   r�__iter__�_BaseNetwork.__iter__�sI����d�*�*�+����.�.�/�	��w�A�
�.�A��%�%�a�(�(�/�s�AAc�4�[UO2o[UO2oU]6�c0V!*U6�c[Q2gUO	V!*2!U]*
oV1*U6c[Q2gUO	V1*2!)rzaddress out of range)r�r_rW�
IndexErrorr)rsr�rr	s&&  r�__getitem__�_BaseNetwork.__getitem__�s����d�*�*�+����.�.�/�	���6��{�Y�&� �!7�8�8��&�&�w�{�3�3�
��F�A��}�w�&� �!7�8�8��&�&�y�}�5�5rc�l�[U[2%f[!UOUO6wc[	U8QU8Q02gUO
UO
6wcUO
UO
6!UOUO6wcUOUO6!P
!r�)rCrgrjrFrEr_�netmaskr�s&&rr��_BaseNetwork.__lt__�s����%��.�.�!�!��<�<�5�=�=�(��!�5�*�+�
+����5�#8�#8�8��'�'�%�*?�*?�?�?��<�<�5�=�=�(��<�<�%�-�-�/�/�rc��UOUO6H9%cMUOUO6H9%c,[UO2[UO26H![c
[
t!h9hr�)rFr_r�rr^rjr�s&&rr��_BaseNetwork.__eq__�su��	"��L�L�E�M�M�1�<�<��(�(�E�,A�,A�A�<�<�����%��U�]�]�);�;�
=���	"�!�!�	"�s"�A0� A0�+A0�0	B�:B�Bc�j�[[UO2[UO212!r�)r�r�r_rrrs&rr��_BaseNetwork.__hash__�s&���S��-�-�.��D�L�L�0A�B�C�Crc���UOUO6wcP
![U[2%cP
!UOUOO*UO
O6H!�F)rFrCrgr3rr_r�s&&r�__contains__�_BaseNetwork.__contains__�sQ���<�<�5�=�=�(���e�\�*�*���9�9�t�|�|�/�/�/�4�3G�3G�3K�3K�K�Krc��UOU79%f>UOU79%f'UOU79%fUOU7!)z*Tell if self is partly contained in other.�r_rWr�s&&r�overlaps�_BaseNetwork.overlaps�s]���#�#�u�,�7�7��"�"�e�+�
6�
6��%�%��-�5�5��+�+�t�3�	7rc��UO[UO2[UO2*2!r�)rr�r_�hostmaskrrs&rrW�_BaseNetwork.broadcast_address�s3���"�"�3�t�';�';�#<�#&�t�}�}�#5�$6�7�	7rc�n�UO[UO2UO*2!r�)rr�rrHrrs&rr$�_BaseNetwork.hostmask�s%���"�"�3�t�|�|�#4�t�~�~�#E�F�Frc�B�QUOUO1*!r)r_r]rrs&r�with_prefixlen�_BaseNetwork.with_prefixlen�s���$�.�.����@�@�@rc�>�UO8QUO80!�r*)r_rrrs&r�with_netmask�_BaseNetwork.with_netmask�s���.�.����=�=rc�>�UO8QUO80!r,)r_r$rrs&r�
with_hostmask�_BaseNetwork.with_hostmask�s���.�.��
�
�>�>rc�p�[UO2[UO2*
]*!)z&Number of hosts in the current subnet.)r�rWr_rrs&r�
num_addresses�_BaseNetwork.num_addressess*���4�)�)�*�S��1E�1E�-F�F��J�Jrc�@�Q[U21*o[U2g)z%%200s has no associated address class)�type�NotImplementedError)rsr�s& rr�_BaseNetwork._address_classs��
6��d��
�E��!�#�&�&rc��UO!r�)r]rrs&rr��_BaseNetwork.prefixlens�����rc#� �UOUO6Xf[U8QU8Q02g[U[2%f[QU*2gUO	U2%f[U8QU802gV6XcP!UO
UO8QUO802oUO2vq#V!6wc~V16wcxUO	U2%cUw�	UO2vq#J<UO	U2%cUw�	UO2vq#Jl[QU8QU8QU802gV!6XcUw�	P!V16XcUw�	P![QU8QU8QU802g3h)	a�Remove an address from a larger block.

For example:

    addr1 = ip_network('192.0.2.0/28')
    addr2 = ip_network('192.0.2.1/32')
    list(addr1.address_exclude(addr2)) =
        [IPv4Network('192.0.2.0/32'), IPv4Network('192.0.2.2/31'),
         IPv4Network('192.0.2.4/30'), IPv4Network('192.0.2.8/29')]

or IPv6:

    addr1 = ip_network('2001:db8::1/32')
    addr2 = ip_network('2001:db8::1/128')
    list(addr1.address_exclude(addr2)) =
        [ip_network('2001:db8::1/128'),
         ip_network('2001:db8::2/127'),
         ip_network('2001:db8::4/126'),
         ip_network('2001:db8::8/125'),
         ...
         ip_network('2001:db8:8000::/33')]

Args:
    other: An IPv4Network or IPv6Network object of the same type.

Returns:
    An iterator of the IPv(4|6)Network objects which is self
    minus other.

Raises:
    TypeError: If self and other are of differing address
      versions, or if other is not a network object.
    ValueError: If other is not completely contained by self.

rArBz%s is not a network objectz not contained in r*z Error performing exclusion: s1: z s2: z other: )rFrErCrg�	subnet_ofrr�r_r�rY�AssertionError)rsr��s1�s2s&&  r�address_exclude�_BaseNetwork.address_excludesD���H�|�|�u�}�}�,��!�5�*�+�
+��%��.�.��8�5�@�A�A����t�$�$����E�F�F��=�����5�+@�+@�+0�?�?�!<�=���������k�b�k����r�"�"���������B�����$�$���������B�%�&(�"�e�&5�6�6��;��H�
�[��H�!�"$�b�%�"1�2�
2�sA�E=�(E=�(E=�1E=�	AE=�E=�E=�,/E=�5E=�E=�E=c�L�UOUO6wc[U8QU8Q02gUOUO6cP!UOUO6�c]!UOUO6cP!UOUO6�c]!]!)a�Compare two IP objects.

This is only concerned about the comparison of the integer
representation of the network addresses.  This means that the
host bits aren't considered at all in this method.  If you want
to compare host bits, you can easily enough do a
'HostA._ip < HostB._ip'

Args:
    other: An IP object.

Returns:
    If the IP versions of self and other are the same, returns:

    -1 if self < other:
      eg: IPv4Network('192.0.2.0/25') < IPv4Network('192.0.2.128/25')
      IPv6Network('2001:db8::1000/124') <
          IPv6Network('2001:db8::2000/124')
    0 if self == other
      eg: IPv4Network('192.0.2.0/24') == IPv4Network('192.0.2.0/24')
      IPv6Network('2001:db8::1000/124') ==
          IPv6Network('2001:db8::1000/124')
    1 if self > other
      eg: IPv4Network('192.0.2.128/25') > IPv4Network('192.0.2.0/25')
          IPv6Network('2001:db8::2000/124') >
              IPv6Network('2001:db8::1000/124')

  Raises:
      TypeError if the IP versions are different.

rAz are not of the same type)rFrEr_rr�s&&r�compare_networks�_BaseNetwork.compare_networks_s���B�<�<�5�=�=�(��!�5�*�+�
+����%�"7�"7�7��I����%�"7�"7�7���<�<�%�-�-�'��I��<�<�%�-�-�'��rc�J�UOUOUO1!)z�Network-only key function.

Returns an object that identifies this address' network and
netmask. This function is a suitable "key" argument for sorted()
and list.sort().

)rFr_rrrs&rrh�_BaseNetwork._get_networks_key�s�����d�2�2�D�L�L�A�Arc#�h �UOUO6XcUw�	P!Ud@V O6c[Q2gU]6wc[Q2gV O*
oU]6c[Q2gUOU*oV0O6�c[QV01*2g[UO2o[UO
2]*o[UO2]*U*	o[VEU2FDoUOVs12oUw�	J	P!3h)a;The subnets which join to make the current subnet.

In the case that self contains only one IP
(self._prefixlen == 32 for IPv4 or self._prefixlen == 128
for IPv6), yield an iterator with just ourself.

Args:
    prefixlen_diff: An integer, the amount the prefix length
      should be increased by. This should not be set if
      new_prefix is also set.
    new_prefix: The desired new prefix length. This must be a
      larger number (smaller prefix) than the existing prefix.
      This should not be set if prefixlen_diff is also set.

Returns:
    An iterator of IPv(4|6) objects.

Raises:
    ValueError: The prefixlen_diff is too small or too large.
        OR
    prefixlen_diff and new_prefix are both set or new_prefix
      is a smaller number than the current prefix (smaller
      number means a larger network)

znew prefix must be longer�(cannot set prefixlen_diff and new_prefixzprefix length diff must be > 0z0prefix length diff %d is invalid for netblock %s)	r]rGrr�r_rWr$rr�)	rs�prefixlen_diff�
new_prefix�
new_prefixlen�start�end�step�new_addr�currents	&&&      rrY�_BaseNetwork.subnets�s���4�?�?�d�0�0�0��J���!��O�O�+� �!<�=�=���"� �!K�L�L�'�/�/�9�N��A���=�>�>����.�8�
��-�-�-��B�!�F)�)�*�
*��D�(�(�)���$�(�(�)�A�-���D�M�M�"�Q�&�>�9���e�$�/�H��n�n�h�%>�?�G��M�0�s'�D2�
D2�D2�D2�#D2�0-D2�BD2c��UO]6XcU!UdAV O6�c[Q2gU]6wc[Q2gUOU*
oUOU*
oU]6c[QUOU1*2gUO[	UO
2[	UO2U**U12!)aSThe supernet containing the current network.

Args:
    prefixlen_diff: An integer, the amount the prefix length of
      the network should be decreased by.  For example, given a
      /24 network and a prefixlen_diff of 3, a supernet with a
      /21 netmask is returned.

Returns:
    An IPv4 network object.

Raises:
    ValueError: If self.prefixlen - prefixlen_diff < 0. I.e., you have
      a negative prefix length.
        OR
    If prefixlen_diff and new_prefix are both set or new_prefix is a
      larger number than the current prefix (larger number means a
      smaller network)

znew prefix must be shorterrHz;current prefixlen is %d, cannot have a prefixlen_diff of %d)r]rr�r�r�r_r)rsrIrJrKs&&& rrR�_BaseNetwork.supernet�s���*�?�?�a���K��!��O�O�+� �!=�>�>���"� �!K�L�L�!�_�_�z�9�N�����7�
��1���M�����0�1�2�
2��~�~���$�$�%��T�\�\�):�n�)L�M����	rc�l�UOO9%cUOO!�z�Test if the address is reserved for multicast use.

Returns:
    A boolean, True if the address is a multicast address.
    See RFC 2373 2.7 for details.

)r_�is_multicastrWrrs&rrV�_BaseNetwork.is_multicast�s1���$�$�1�1�4�4��&�&�3�3�	5rc��UOUO6wc[UQUQ02gUOUO6*9%cUOUO6�![c[QSQS02gh9h)rArBz*Unable to test subnet containment between )rFrEr_rWr^)�ar�s&&r�
_is_subnet_of�_BaseNetwork._is_subnet_ofs���	4��y�y�A�I�I�%��1�#�U�1�#�-I� J�K�K��%�%��):�):�:�?�?��'�'�1�+>�+>�>�
@���	4��'�'(�c��q�c�3�4�
4�	4�s�A)�0A)�A)�)	B�3Bc�&�UOV2!)z1Return True if this network is a subnet of other.�rZr�s&&rr<�_BaseNetwork.subnet_ofs���!�!�$�.�.rc�&�UOV2!)z3Return True if this network is a supernet of other.r]r�s&&r�supernet_of�_BaseNetwork.supernet_ofs���!�!�%�.�.rc�l�UOO9%cUOO!)��Test if the address is otherwise IETF reserved.

Returns:
    A boolean, True if the address is within one of the
    reserved IPv6 Network ranges.

)r_�is_reservedrWrrs&rrd�_BaseNetwork.is_reserved�1���$�$�0�0�3�3��&�&�2�2�	4rc�l�UOO9%cUOO!�zxTest if the address is reserved for link-local.

Returns:
    A boolean, True if the address is reserved per RFC 4291.

)r_�
is_link_localrWrrs&rri�_BaseNetwork.is_link_local#s1���$�$�2�2�5�5��&�&�4�4�	6rc�`�[9PIc3U1QkROO2D%fJP	L'	P
L#U1QkROO229%cb[9PIc3U1QkROO2D%cJP
!	P	!U1QkROO22!)z�Test if this network belongs to a private range.

Returns:
    A boolean, True if the network is reserved per
    iana-ipv4-special-registry or iana-ipv6-special-registry.

c3�|:�SF �D,oROU79%cROU7w�	J.	P!3hr�r )�.0�priv_networkrss& �r�	<genexpr>�*_BaseNetwork.is_private.<locals>.<genexpr>7s>��'H���'H�|��'�'�<�7�:�:��)�)�\�9�:�'H���<�<c3�|:�SF �D,oROU79%cROU7w�	J.	P!3hr�r )rmrrss& �rrorp9sD��$P���$P���(�(��7�:�:��*�*�'�9�:�#O�rq��any�
_constants�_private_networks�all�_private_networks_exceptionsrrsfr�
is_private�_BaseNetwork.is_private.s�����s�J�'+���'H�'H�J�s�s�s�J�'+���'H�'H�J�J���NQ�c�R�$(�?�?�#O�#O�R�c�c�	�NQ�	�NQ�R�$(�?�?�#O�#O�R�O�	rc�&�UO%(!)z�Test if this address is allocated for public networks.

Returns:
    A boolean, True if the address is not reserved per
    iana-ipv4-special-registry or iana-ipv6-special-registry.

)ryrrs&r�	is_global�_BaseNetwork.is_global?s���?�?�"�"rc�l�UOO9%cUOO!�z�Test if the address is unspecified.

Returns:
    A boolean, True if this is the unspecified address as defined in
    RFC 2373 2.5.2.

)r_�is_unspecifiedrWrrs&rr��_BaseNetwork.is_unspecifiedJs1���$�$�3�3�6�6��&�&�5�5�	7rc�l�UOO9%cUOO!�z�Test if the address is a loopback address.

Returns:
    A boolean, True if the address is a loopback address as defined in
    RFC 2373 2.5.3.

)r_�is_loopbackrWrrs&rr��_BaseNetwork.is_loopbackVrfrr)r
N),rrrrr	r�r�r
rrr�r�r�rr!�	functools�cached_propertyrWr$r�r)r-r0r3rr�r@rCrhrYrRrV�staticmethodrZr<r`rdriryr|r�r�r
r�r�s@rrgrg�s������?�@�
)�)�6�
�"�D�
L�7����7��7����G��G��A��A��>��>��?��?��K��K��'��'�����I2�V.�`B�3�j'�R�	5��	5��	4��	4�/�/��	4��	4��6��6����� �#��#��	7��	7��	4��	4rrgc��\sQsQs,sQsP!)�_BaseConstantsicr)rrrrrvr
rrrr�r�cs���rr�c�`�\sQsQsnQsQ	s]s]\*]*
s\s	-s
Qs\Q2s
\Q2s\Q2s\Q2sQsQ	sUsP!)
�_BaseV4ikzmBase IPv4 object.

The following methods are used by IPv4 objects in both single IP
addresses and networks.

c��[U2!r�rwrrs&rrq�$_BaseV4._explode_shorthand_ip_string~s���4�y�rc��VO7c�[U[2%c0So]St96:cUO6:fLUO	U2LUOU2o[UOU22oV21UOU$UOU*![cSOS2oK[h9h�z�Make a (netmask, prefix_len) tuple from the given argument.

Argument can be:
- an integer (the prefix length)
- a string representing the prefix length (e.g. "24")
- a string representing the prefix netmask (e.g. "255.255.255.0")
)
�_netmask_cacherCr�rGr�r�rr�rr��r��argr�rs&&  r�
_make_netmask�_BaseV4._make_netmask�s����(�(�(��#�s�#�#��	��Y�;�#�*;�*;�;��/�/�	�:��@� #� >� >�s� C�I�
"�#�"9�"9�)�"D�E�G�&-�&8�C���s�#��!�!�#�&�&��
)�@�!$� :� :�3� ?�I�@�s�B&�&	C�0C�Cc�2�U%f[Q2gUOQ2o[U2]6wc[QU*2g[O	[UOU2Q2![co[S8QS802PgPo=hh9h)z�Turn the given IP string into an integer for comparison.

Args:
    ip_str: A string, the IP ip_str.

Returns:
    The IP ip_str as an integer.

Raises:
    AddressValueError: if ip_str isn't a valid IPv4 Address.

�Address cannot be empty�.zExpected 4 octets in %rr�� in )rr,r-r��
from_bytes�map�_parse_octetr)r�r��octets�excs&&  rr��_BaseV4._ip_int_from_string�s����#�$=�>�>����c�"���v�;�!��#�$=��$F�G�G�	J��>�>�#�c�&6�&6��"?��G�G���	J�#�#�v�$>�?�T�I��	J�s�	)A3�3	B�=B�>B�Bc��U%f[Q2gUO2%cUO2%fQo[V!*2g[U2]6�cQo[V!*2gUQ6wc"U]*Q6XcQo[V!*2g[	U]
2oU]�6�c[QU*2gU!)z�Convert a decimal octet into an integer.

Args:
    octet_str: A string, the number to parse.

Returns:
    The octet as an integer.

Raises:
    ValueError: if the octet isn't strictly a decimal from [0..255].

zEmpty octet not permittedz#Only decimal digits permitted in %rz$At most 3 characters permitted in %rr�z%Leading zeros are not permitted in %rzOctet %d (> 255) not permitted)rr�r�r-r�)r��	octet_strr��	octet_ints&&  rr��_BaseV4._parse_octet�s�����8�9�9��!�!�#�#�	�(9�(9�(;�(;�7�C��S�_�-�-��y�>�A��8�C��S�_�-�-����	�!��� 3�9�C��S�_�-�-��	�2�&�	��s�?��=�	�I�J�J��rc	�b�QO[[UO]Q222!)z�Turns a 32-bit integer into dotted decimal notation.

Args:
    ip_int: An integer, the IP address.

Returns:
    The IP address as a string in dotted decimal notation.

r�r�)�joinr�r+r#)r�r�s&&rr��_BaseV4._string_from_ip_int�s%���x�x��C�����E�!:�;�<�<rc�|�[U2OQ2PPP/*oQOU2Q*!)zqReturn the reverse DNS pointer name for the IPv4 address.

This implements the method described in RFC1035 3.5.

r�z
.in-addr.arpa)r+r,r�)rs�reverse_octetss& rr{�_BaseV4._reverse_pointer�s3���T�����-�d��d�3���x�x��'�/�9�9rr)rrrrr	r�rF�
IPV4LENGTHrHrGr�rqr�r�r�r�r�r{r
r�r�s@rr�r�ks�������I��G��J��!�#�I��M��N���'��'�2�J��J�2�!��!�F�
=��
=�:�:rr�c�`�\sQsQsnQsQsQs\Q2s\Q2s	\\
O2Q22s\\
O2Q22s
\Q2s\Q	2s\Q
2s\Q2s\Q2sQ
sUsP!)ri�z/Represent and manipulate single IPv4 Addresses.c�\�[U[2%cUOU2VmP![U[2%c/UOU]2[O
U2UmP![U2oQU7c[QU802gUOU2UmP!)aa
Args:
    address: A string or integer representing the IP

      Additionally, an integer can be passed, so
      IPv4Address('192.0.2.1') == IPv4Address(3221225985).
      or, more generally
      IPv4Address(int(IPv4Address('192.0.2.1'))) ==
        IPv4Address('192.0.2.1')

Raises:
    AddressValueError: If ipaddress isn't a valid IPv4 address.

r*�Unexpected '/' in )
rCr�r�r3r�r�r�r+rr��rsr�addr_strs&& r�__init__�IPv4Address.__init__�s���"�g�s�#�#��#�#�G�,��H���g�u�%�%��&�&�w��2��~�~�g�.�D�H���w�<���(�?�#�&8���$D�E�E��+�+�H�5��rc�.�[UO2!�z*The binary representation of this address.)r%r3rrs&r�packed�IPv4Address.packed��� ����)�)rc�4�VOO7!)z�Test if the address is otherwise IETF reserved.

Returns:
    A boolean, True if the address is within the
    reserved IPv4 Network range.

)ru�_reserved_networkrrs&rrd�IPv4Address.is_reserveds�����8�8�8�8rc�`�[9PIc3U1QkROO2D%fJP	L'	P
L#U1QkROO229%cb[9PIc3U1QkROO2D%cJP
!	P	!U1QkROO22!)�s``True`` if the address is defined as not globally reachable by
iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_
(for IPv6) with the following exceptions:

* ``is_private`` is ``False`` for ``100.64.0.0/10``
* For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the
    semantics of the underlying IPv4 addresses and the following condition holds
    (see :attr:`IPv6Address.ipv4_mapped`)::

        address.is_private == address.ipv4_mapped.is_private

``is_private`` has value opposite to :attr:`is_global`, except for the ``100.64.0.0/10``
IPv4 range where they are both ``False``.
c3�::�SF �DoRU7w�	J
	P!3hr�r�rmrMrss& �rro�)IPv4Address.is_private.<locals>.<genexpr>:���'H���'H�����'H���c3�::�SF �DoRU7w�	J
	P!3hr�rr�s& �rror�;���/[���/[��D��O�/[�r�rsrrsfrry�IPv4Address.is_private(s����$
�C�I�t���'H�'H�I�C�C�C�I�t���'H�'H�I�I�
]�
]���\�t���/[�/[�\���	
��	
��\�t���/[�/[�\�\�	
rc�f�VOO79%cUO%(!�a*``True`` if the address is defined as globally reachable by
iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_
(for IPv6) with the following exception:

For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the
semantics of the underlying IPv4 addresses and the following condition holds
(see :attr:`IPv6Address.ipv4_mapped`)::

    address.is_global == address.ipv4_mapped.is_global

``is_global`` has value opposite to :attr:`is_private`, except for the ``100.64.0.0/10``
IPv4 range where they are both ``False``.
)ru�_public_networkryrrs&rr|�IPv4Address.is_global>s&�� �?�?�:�:�:�R�R�4�?�?�?R�Rrc�4�VOO7!)z�Test if the address is reserved for multicast use.

Returns:
    A boolean, True if the address is multicast.
    See RFC 3171 for details.

)ru�_multicast_networkrrs&rrV�IPv4Address.is_multicastPs�����9�9�9�9rc�4�VOO6H!)z�Test if the address is unspecified.

Returns:
    A boolean, True if this is the unspecified address as defined in
    RFC 5735 3.

)ru�_unspecified_addressrrs&rr��IPv4Address.is_unspecified[s�����;�;�;�;rc�4�VOO7!)zuTest if the address is a loopback address.

Returns:
    A boolean, True if the address is a loopback per RFC 3330.

)ru�_loopback_networkrrs&rr��IPv4Address.is_loopbackfs�����8�8�8�8rc�4�VOO7!)zzTest if the address is reserved for link-local.

Returns:
    A boolean, True if the address is link-local per RFC 3927.

)ru�_linklocal_networkrrs&rri�IPv4Address.is_link_localps�����9�9�9�9rc� �[QU02!)z_Return the IPv4-mapped IPv6 address.

Returns:
    The IPv4-mapped IPv6 address per RFC 4291.

z::ffff:)rrrs&r�ipv6_mapped�IPv4Address.ipv6_mappedzs���W�T�F�+�,�,rr�)r3�__weakref__)rrrrr	r�r�r�r�rdr��	lru_cacheryr|rVr�r�rir�r
r�r�s@rrr�s�����9�&�I�!6�F�*��*��9��9������
���
�(�����S���S� �:��:��<��<��9��9��:��:��-��-rrc��`�\sQsQsnQs\OQ2sQsQs	Qs
Qs\Os
\Q2s\Q	2s\Q
2s\Q2s\Q2sQ
sUsP!)ri�c���UOU2vq#[OV2[V#1P
Q5UmUOO
UmUOOUmP!�F)r)r�rr�rrrr]�rsrr.�masks&&  rr��IPv4Interface.__init__��T���,�,�W�5�
�����T�(�"�D�<��>����|�|�+�+����,�,�1�1��rc�0�UOO!r��rr$rrs&rr$�IPv4Interface.hostmask�����|�|�$�$�$rc�`�QUOUO2UO1*!r�r�r3r]rrs&rr��IPv4Interface.__str__�s,���$�2�2�4�8�8�<��/�/�+�+�	+rc��[OV2oU[If	U%fU!UOUO6H![cP
!h9hr)rr�rjrr^�rsr��
address_equals&& rr��IPv4Interface.__eq__��N��#�*�*�4�7�
��N�*�-� � �	��<�<�5�=�=�0�0���	��		���A�	A�A�Ac��[OV2oU[Ic[!UOUO69%f$UOUO6H9%cS![cP
!h9hr)rr�rjrr^�rsr��address_lesss&& rr��IPv4Interface.__lt__�ss��"�)�)�$�6���>�)�!�!�	��L�L�5�=�=�0�C�C��L�L�E�M�M�1�B�B�l�
D���	��	�s#�A,� A,�)A,�,	A;�6A;�:A;c��[UOUO[UOO
212!r��r�r3r]r�rr_rrs&rr��IPv4Interface.__hash__��+���T�X�X�t����D�L�L�4P�4P�0Q�R�S�Src�.�[UO2!r�)rr3rrs&rr8�IPv4Interface.ip�����4�8�8�$�$rc�\�UOUO28QUO80!r,r�rrs&rr)�IPv4Interface.with_prefixlen��%���2�2�4�8�8�<��/�/�+�	+rc�\�UOUO28QUO80!r,�r�r3rrrs&rr-�IPv4Interface.with_netmask��%���2�2�4�8�8�<��,�,�(�	(rc�\�UOUO28QUO80!r,�r�r3r$rrs&rr0�IPv4Interface.with_hostmask��%���2�2�4�8�8�<��-�-�)�	)rc�^�UO]6H9%cUOO!�r�r3rr�rrs&rr��IPv4Interface.is_unspecified��"���x�x�1�}�<�<����!<�!<�<r�r]rr)rrrrr�r�r�r$r�r�r�r�rnr�r�r8r)r-r0r�r
r�r�s@rrr�s�����2����%��%�+�
�
�T� �*�*�J�
�%��%��+��+��(��(��)��)��=��=rrc�l`�\sQsQsnQs\sQQks\\	O2Q22sQsUs
P!)ri�aIThis class represents and manipulates 32-bit IPv4 network + addresses..

Attributes: [examples for IPv4Network('192.0.2.0/27')]
    .network_address: IPv4Address('192.0.2.0')
    .hostmask: IPv4Address('0.0.0.31')
    .broadcast_address: IPv4Address('192.0.2.32')
    .netmask: IPv4Address('255.255.255.224')
    .prefixlen: 27

c�<`�UOU2vno[R2UmUOU2vUmUm[
UO2oU[
UO2*U6wcEU%c[QU*2g[U[
UO2*2UmUO
UO]*
6XcUOUm
P!UO
UO6XcU1QkUm
P!P!)a)Instantiate a new IPv4 network object.

Args:
    address: A string or integer representing the IP [& network].
      '192.0.2.0/24'
      '192.0.2.0/255.255.255.0'
      '192.0.2.0/0.0.0.255'
      are all functionally the same in IPv4. Similarly,
      '192.0.2.1'
      '192.0.2.1/255.255.255.255'
      '192.0.2.1/32'
      are also functionally equivalent. That is to say, failing to
      provide a subnetmask will create an object with a mask of /32.

      If the mask (portion after the / in the argument) is given in
      dotted quad form, it is treated as a netmask if it starts with a
      non-zero field (e.g. /255.0.0.0 == /8) and as a hostmask if it
      starts with a zero field (e.g. 0.255.255.255 == /8), with the
      single exception of an all-zero mask which is treated as a
      netmask == /0. If no mask is given, a default of /32 is used.

      Additionally, an integer can be passed, so
      IPv4Network('192.0.2.1') == IPv4Network(3221225985)
      or, more generally
      IPv4Interface(int(IPv4Interface('192.0.2.1'))) ==
        IPv4Interface('192.0.2.1')

Raises:
    AddressValueError: If ipaddress isn't a valid IPv4 address.
    NetmaskValueError: If the netmask isn't valid for
      an IPv4 address.
    ValueError: If strict is True and a network address is not
      supplied.
�%s has host bits setc�0:�[[R212!r�)r1r�r.s�r�<lambda>�&IPv4Network.__init__.<locals>.<lambda>
�����{�4�'8�&:�!;r)r�rr_r�rr]r�rrGrr
�rsrrr�r�r.s&&&  @rr��IPv4Network.__init__�s����F�,�,�W�5�
��d�*�4�0���(,�(:�(:�4�(@�%���d�o��T�)�)�*���C����%�%��/�� �!7�$�!>�?�?�'2�6�36�t�|�|�3D�4E�(F��$��?�?�t�1�1�A�5�6����D�J�
�_�_��!3�!3�
4�;�D�J�5rc��UO[Q279%cUO[Q27%(9%cUO%(!)z�Test if this address is allocated for public networks.

Returns:
    A boolean, True if the address is not reserved per
    iana-ipv4-special-registry.

�
100.64.0.0/10)r_rrWryrrs&rr|�IPv4Network.is_globalsU���)�)�[��-I�I�K�K��*�*�k�/�.J�J�L�$�$��O�O�#�	%r�r]r
rr_�T)rrrrr	rrr�r�r�r�r|r
r�r�s@rrr�s<����	�!�N�2<�h�����
%���
%rrc�`�\sQsQs\Q2s\Q2s\Q2s\Q2s\Q2\Q2\Q2\Q2\Q2\Q	2\Q
2\Q2\Q2\Q
2\Q2\Q2\Q2\Q2,s	\Q2\Q2,s
\Q2s\Q2s
QsP!)�_IPv4Constantsiz169.254.0.0/16z127.0.0.0/8z224.0.0.0/4rz	0.0.0.0/8z
10.0.0.0/8z
172.16.0.0/12z192.0.0.0/24z192.0.0.170/31z192.0.2.0/24z192.168.0.0/16z
198.18.0.0/15z198.51.100.0/24z203.0.113.0/24z240.0.0.0/4z255.255.255.255/32z192.0.0.9/32z
192.0.0.10/32z0.0.0.0r)rrrrrr�r�r�r�rvrxr�rr�r
rrrrrs���$�%5�6��#�M�2��$�]�3��!�/�2�O�
	�K� ��L�!��M�"��$�%��O�$��N�#��$�%��N�#��$�%��O�$��%�&��$�%��M�"��(�)�
��$	�N�#��O�$�$� �
$�M�2��&�y�1�rrc��`�\sQsQsnQsQs]s]\*]*
s]s	\
Q2s\s-s
\Q2s\Q2s\Q2s\Q2s\Q
Qk2sQ	sQ
s\Q2sQsUsP!)�_BaseV6iHzmBase IPv6 object.

The following methods are used by IPv6 objects in both single IP
addresses and networks.

�0123456789ABCDEFabcdefc�J�VO7c�[U[2%c0So]St96:cUO6:fLUO	U2LUOU2o[
UOU22oV21UOU$UOU*!r�)r�rCr�rGr�r�rr�r�s&&  rr��_BaseV6._make_netmask\s����(�(�(��#�s�#�#��	��Y�;�#�*;�*;�;��/�/�	�:���:�:�3�?�	�!�#�"9�"9�)�"D�E�G�&-�&8�C���s�#��!�!�#�&�&rc��U%f[Q2g[U2]-6�cFSo[U2]d6�c%UQ*Q[U2]Z*
QUQP0o[QU802gUO]*oUOQUQ5o]o[U2U6cQVQ1*o[U2gQ	UP*7cj[	UO22OoUOQU]*	Q**2UOQUQ**2[U2U6�cQ
U]*
U1*o[U2gPo	[][U2]*
2FD-o
VJ*%cJU	dQU*o[U2gS
o	J/	U	d�S	o[U2U	*
]*
oU]*%f%U]*oU%cQo[Va*2gUP*%f%U]*oU%cQo[Va*2gUOV�**
o
U
]6c'Qo[V`O]*
U1*2gL�[U2UO6wc Qo[V`OU1*2gU]*%fQo[Va*2gUP*%fQo[Va*2g[U2o]o]o
]o[U2FD)o
U]*oV�OVJ*2*oJ+	U]U
**o[U']2FD)o
U]*oV�OVJ*2*oJ+	U![co[S8Q
S802PgPo=hh9h[co[S8Q
S802PgPo=hh9h)z�Turn an IPv6 ip_str into an integer.

Args:
    ip_str: A string, the IPv6 ip_str.

Returns:
    An int, the IPv6 address

Raises:
    AddressValueError: if ip_str isn't a valid IPv6 Address.

r�:N�-Nr�z chars elided)z"At most 45 characters expected in �:)�maxsplitz At least %d parts expected in %rr�r��%x�z!At most %d colons permitted in %rz At most one '::' permitted in %rz0Leading ':' only permitted as part of '::' in %rz1Trailing ':' only permitted as part of '::' in %rz/Expected at most %d other parts with '::' in %rz,Exactly %d parts expected without '::' in %ri���)rr-�
_HEXTET_COUNTr,rrQr3rTr�
_parse_hextetr)r�r��shorten�
_max_parts�parts�
_min_partsr��ipv4_intr��
skip_index�i�parts_hi�parts_lo�
parts_skippedr�s&&             rr��_BaseV6._ip_int_from_stringps����#�$=�>�>��v�;����G��7�|�c�!�#�C�[�M��3�v�;�r�>�*:�.��PS�PT���W��#�&H�'.�k�%3�4�
4��&�&��*�
����S�:��6���
��u�:�
�"�4�
�7K�K�C�#�C�(�(��%��)��
N�&�u�y�y�{�3�7�7��
�L�L��(�b�.�F�!:�;�<��L�L���F�!2�3�4�
�u�:�
�"�5��A��v�8N�N�C�#�C�(�(��
��q�#�e�*�q�.�)�A��8�8��)�<�v�E�C�+�C�0�0��
�
*��!�!�H��5�z�J�.��2�H���8�8��A�
���L�C�+�C�L�9�9���9�9��A�
���M�C�+�C�L�9�9��-�-��1D�E�M��q� �G��'��/@�/@��/B�F�.K�(K�L�L�!��5�z�S�.�.�.�D��'��/@�/@�&�.I�(I�J�J���8�8�H��'���5�5���9�9�I��'���5�5��5�z�H��H��M�	J��F��8�_���2�
���+�+�E�H�5�5��%�
�r�M�)�)�F��H�9�a�(���2�
���+�+�E�H�5�5��)��M��M%�
N�'�c�6�(B�C��M��
N��N�	J�#�#�v�$>�?�T�I��	J�s=�#N�BN2�	N/�N/�N*�*N/�2	O�<O�=O�Oc���UOOU2%f[QU*2g[U2]6�cQo[V!*2g[	U]2!)z�Convert an IPv6 hextet string into an integer.

Args:
    hextet_str: A string, the number to parse.

Returns:
    The hextet as an integer.

Raises:
    ValueError: if the input isn't strictly a hex number from
      [0..FFFF].

zOnly hex digits permitted in %rz$At most 4 characters permitted in %r)�_HEX_DIGITS�
issupersetrr-r�)r��
hextet_strr�s&& rr&�_BaseV6._parse_hextet�sX�� ���)�)�*�5�5��>��K�L�L��z�?�Q��8�C��S�-�.�.��:�r�"�"rc��Po]oPo]o[U2FD0vqgUQ6Xc!U]*
oUP6XcSoVS6�cSoSoJ*J,]oPoJ2	U]6�c:UU*oU[U26XcUP,*
oP,VU#U]6XcP,U*oU!)a�Compresses a list of hextets.

Compresses a list of strings, replacing the longest continuous
sequence of "0" in the list with "" and adding empty strings at
the beginning or at the end of the string such that subsequently
calling ":".join(hextets) will produce the compressed version of
the IPv6 address.

Args:
    hextets: A list of strings, the hextets to compress.

Returns:
    A list of strings.

r�)�	enumerater-)	r��hextets�best_doublecolon_start�best_doublecolon_len�doublecolon_start�doublecolon_len�index�hextet�best_doublecolon_ends	&&       r�_compress_hextets�_BaseV6._compress_hextets�s���""$�� ������&�w�/�M�E���}��1�$��$��*�(-�%�"�9�+:�(�->�*�:�
#$��$&�!�0� �!�#�$:�$8�%9� �$�s�7�|�3��B�4���DF�4�G�+?�@�%��*��$��.���rc�:�Ue[UO2oVO6�c[Q2gQU*o[	]] ]2Tt,tFDoQ[V#U]*]2*MJ!	ooUOU2oQO
U2!ttoh)z�Turns a 128-bit integer into hexadecimal notation.

Args:
    ip_int: An integer, the IP address.

Returns:
    A string, the hexadecimal representation of the address.

Raises:
    ValueError: The address is bigger than 128 bits of all ones.

zIPv6 address is too large�%032xr#r!)r�r3rHrrrAr�)r�r��hex_strr�r9s&&   rr��_BaseV6._string_from_ip_int+s����>�����\�F��M�M�!��8�9�9��F�"��;@��B��?�K�?�a�4�#�g��!��n�b�1�1�1�?��K��'�'��0���x�x�� � ��Ls�
'Bc���[U[2%c[UO2oL7[U[2%c[UO
2oL[U2oUO
U2oQU*o[]] ]2Tt,tFD
pCVD]*MJ	oo[U[[12%c%QQOU2UO1*!QOU2!ttoh)zUExpand a shortened IPv6 address.

Returns:
    A string, the expanded IPv6 address.

rDrr!)rCrr+r_rr8r�rrgr�r])rsr�r�rEr�r)s&     rrq�$_BaseV6._explode_shorthand_ip_stringEs����d�K�(�(���-�-�.�F�
��m�
,�
,�����\�F���Y�F��)�)�&�1���F�"��).�q�"�a��9��A��Q�3����9��d�\�=�9�:�:��c�h�h�u�o�t���?�?�?��x�x�����:s�
C5c��UOPPP/*OQP2oQOU2Q*!)zqReturn the reverse DNS pointer name for the IPv6 address.

This implements the method described in RFC3596 2.5.

r!r��	.ip6.arpa)rt�replacer�)rs�
reverse_charss& rr{�_BaseV6._reverse_pointerZs7���
�
�d��d�+�3�3�C��<�
��x�x�
�&��4�4rc��UOQ2vqoU%fPoV1!U%cQU7c[QU*2gV1!)z�Helper function to parse IPv6 string address with scope id.

See RFC 4007 for details.

Args:
    ip_str: A string, the IPv6 address.

Returns:
    (addr, scope_id) tuple.

�%zInvalid IPv6 address: "%r")�	partitionr)r�r.�sep�scope_ids&   r�_split_scope_id�_BaseV6._split_scope_idcsO��%�.�.�s�3���8���H��~���S�H�_�#�$@�6�$I�J�J��~�rrr�)rrrrr	r�rF�
IPV6LENGTHrHr%�	frozensetr3rGr�r�r�r�r&rAr�rqr{r�rSr
r�r�s@rrrHs�������I��G��J��!�#�I��M��4�5�K��M��N��'��'�&�nJ��nJ�`�#��#�2�-��-�^�!��!�2�*5����rrc�p``�\sQsQsnQsQsQsU1QksU1QksQs	U1Qks
QsU1Q	ksQ
s
\Q2s\Q2s\Q
2s\Q2s\Q2s\Q2s\\O,2Q22s\Q2s\Q2s\Q2s\Q2s\Q2s\Q2sQsUsU9s !)riwz/Represent and manipulate single IPv6 Addresses.c��[U[2%c!UOU2VmPUmP![U[
2%c7UO
U]2[OUQ2UmPUmP![U2oQU7c[QU802gUOU2vp mUOU2UmP!)a�Instantiate a new IPv6 address object.

Args:
    address: A string or integer representing the IP

      Additionally, an integer can be passed, so
      IPv6Address('2001:db8::') ==
        IPv6Address(42540766411282592856903984951653826560)
      or, more generally
      IPv6Address(int(IPv6Address('2001:db8::'))) ==
        IPv6Address('2001:db8::')

Raises:
    AddressValueError: If address isn't a valid IPv6 address.

r�r*r�)rCr�r�r3�	_scope_idr�r�r�r+rrSr�r�s&& rr��IPv6Address.__init__}s���$�g�s�#�#��#�#�G�,��H�!�D�N���g�u�%�%��&�&�w��3��~�~�g�u�5�D�H�!�D�N���w�<���(�?�#�&8���$D�E�E�#'�#7�#7��#A� ��.��+�+�H�5��rc�v:�UOoUe[RU_	2!]o[RU_	2oUPUU80!r�)�ipv4_mappedr�rq)rsr\�
prefix_len�raw_exploded_strr�s&   �rrq�(IPv6Address._explode_shorthand_ip_string�sL����&�&�����7�7�9�9��
� �7�?�A��"�;�J�/�0���@�@rc��:�UOoUe[RU_	2!]o[RU_
2PUoUOoUUQ
0PPP/*OQP2oQO
U2Q*!)N�008xr!r�rJ)r\r�r{rqr3rKr�)rsr\r]r^r+rLr�s&     �rr{�IPv6Address._reverse_pointer�s�����&�&�����7�+�-�-��
� �7�?�A�+�:�N���?�?��+�,�X�d�O�<�T�r�T�B�J�J�3�PR�S�
��x�x�
�&��4�4rc���UOoUe[Q[U2*2gUO] *	oUO	U28Q[U280!)a�Return convenient text representation of IPv4-mapped IPv6 address

See RFC 4291 2.5.5.2, 2.2 p.3 for details.

Returns:
    A string, 'x:x:x:x:x:x:d.d.d.d', where the 'x's are the hexadecimal values of
    the six high-order 16-bit pieces of the address, and the 'd's are
    the decimal values of the four low-order 8-bit pieces of the
    address (standard IPv4 representation) as defined in RFC 4291 2.2 p.3.

z0Can not apply to non-IPv4-mapped IPv6 address %sr!)r\rr+r3r�)rsr\�high_order_bitss&  r�_ipv4_mapped_ipv6_to_str�$IPv6Address._ipv4_mapped_ipv6_to_str�sU���&�&����#�$V�Y\�]a�Yb�$b�c�c��(�(�b�.���2�2�?�C�S��EU�V�Vrc�:�UOoUe[RU_	2oLUO2oUO%cUQ*UO*!S!)NrO)r\r�r�rerY)rsr\r�r�s&  �rr��IPv6Address.__str__�sN����&�&�����W�_�&�F��2�2�4�F�04����v��|�d�n�n�,�J�F�Jrc�F�[UOUO12!r�)r�r3rYrrs&rr��IPv6Address.__hash__�s���T�X�X�t�~�~�.�/�/rc�:�[RU_U2oU[Ic[!U%fP
!UO[	UQP26H!)FrY)r�r�rjrY�getattr)rsr�r�r�s&& �rr��IPv6Address.__eq__�s=������u�-�
��N�*�!�!����~�~����T�!B�B�Brc�4�UO[U211!r�r�rrs&rr��IPv6Address.__reduce__�s������T���-�-rc��UO!)z�Identifier of a particular zone of the address's scope.

See RFC 4007 for details.

Returns:
    A string identifying the zone of the address if specified, else None.

)rYrrs&rrR�IPv6Address.scope_id�s���~�~�rc�.�[UO2!r�)r(r3rrs&rr��IPv6Address.packed�r�rc�l�UOoUd
UO!VOO7!rU)r\rVrur��rsr\s& rrV�IPv6Address.is_multicast�s4���&�&���"��+�+�+����9�9�9�9rc�`�ROoUd
UO![9PIc3U1QkROO2D%fJP	!	P
!U1QkROO22!)rcc3�::�SF �DoRU7w�	J
	P!3hr�r)rmr�rss& �rro�*IPv6Address.is_reserved.<locals>.<genexpr>s��&H���&H��4�1�9�&H�r�)r\rdrtru�_reserved_networksrusf rrd�IPv6Address.is_reserved�s_����&�&���"��*�*�*��s�I�d�o�o�&H�&H�I�s�s�I�s�I�s�I�d�o�o�&H�&H�I�I�Irc�l�UOoUd
UO!VOO7!rh)r\rirur�rus& rri�IPv6Address.is_link_local
s4���&�&���"��,�,�,����9�9�9�9rc�4�VOO7!�a0Test if the address is reserved for site-local.

Note that the site-local address space has been deprecated by RFC 3879.
Use is_private to test if this address is in the space of unique local
addresses as defined by RFC 4193.

Returns:
    A boolean, True if the address is reserved per RFC 3513 2.5.6.

)ru�_sitelocal_networkrrs&r�
is_site_local�IPv6Address.is_site_locals�����9�9�9�9rc��`�ROoUd
UO![9PIc3U1QkROO2D%fJP	L'	P
L#U1QkROO229%cb[
9PIc3U1QkROO2D%cJP
!	P	!U1QkROO22!)r�c3�::�SF �DoRU7w�	J
	P!3hr�rr�s& �rro�)IPv6Address.is_private.<locals>.<genexpr>=r�r�c3�::�SF �DoRU7w�	J
	P!3hr�rr�s& �rror�>r�r�)r\ryrtrurvrwrxrusf rry�IPv6Address.is_private(s����"�&�&���"��)�)�)��C�I�t���'H�'H�I�C�C�C�I�t���'H�'H�I�I�
]�
]���\�t���/[�/[�\���	
��	
��\�t���/[�/[�\�\�	
rc�^�UOoUd
UO!UO%(!r�)r\r|ryrus& rr|�IPv6Address.is_globalAs.���&�&���"��(�(�(��?�?�"�"rc�Z�UOoUd
UO!UO]6H!r)r\r�r3rus& rr��IPv6Address.is_unspecifiedUs/���&�&���"��-�-�-��x�x�1�}�rc�Z�UOoUd
UO!UO]6H!r�)r\r�r3rus& rr��IPv6Address.is_loopbackcs/���&�&���"��*�*�*��x�x�1�}�rc�p�UO] *	Q6wcP![UOQ*2!)z�Return the IPv4 mapped address.

Returns:
    If the IPv6 address is a v4 mapped address, return the
    IPv4 mapped address. Return None otherwise.

r$����r3rrrs&rr\�IPv6Address.ipv4_mappedqs+��
�H�H��N�v�%���4�8�8�j�0�1�1rc��UO]`*	Q6wcP![UO]@*	Q*2[UO&Q*21!)z�Tuple of embedded teredo IPs.

Returns:
    Tuple of the (server, client) IPs or None if the address
    doesn't appear to be a teredo address (doesn't start with
    2001::/32)

i r�r�rrs&r�teredo�IPv6Address.teredo~sI��
�H�H��N�z�)���T�X�X��^�z�9�:��T�X�X�I�
�2�3�5�	5rc�~�UO]p*	Q6wcP![UO]P*	Q*2!)z�Return the IPv4 6to4 embedded address.

Returns:
    The IPv4 6to4-embedded address if present or None if the
    address doesn't appear to contain a 6to4 embedded address.

i r�r�rrs&r�	sixtofour�IPv6Address.sixtofour�s/��
�H�H��O��&���D�H�H��N�j�8�9�9r)r3rY)r3rYr�)!rrrrr	r�r�rqr{rer�r�r�r�r�rRr�rVrdrir�r�r�ryr|r�r�r\r�r�r
r�r�r�s@@rrrwsV����9�3�I�&6�PA�	5�W�$K�0�C�.��	��	��*��*��:��:��J��J��
:��
:��:��:������
���
�.�#��#�&���������
2��
2��5��5��
:��
:�
:rrc��``�\sQsQsnQs\OQ2sU1QksQs	Qs
Qs\Os
\Q2s\Q	2s\Q
2s\Q2s\Q2s\U1Q
k2sQsUsU9s!)ri�c���UOU2vq#[OV2[V#1P
Q5UmUOO
UmUOOUmP!r�)r�rr�rrrr]r�s&&  rr��IPv6Interface.__init__�r�rc�0�UOO!r�r�rrs&rr$�IPv6Interface.hostmask�r�rc�H:�Q[RU_2UO1*!r)r�r�r]�rsr�s&�rr��IPv6Interface.__str__�s%����%�'�/�+��/�/�+�+�	+rc��[OV2oU[If	U%fU!UOUO6H![cP
!h9hr)rr�rjrr^r�s&& rr��IPv6Interface.__eq__�r�r�c���[OV2oU[IcU!UOUO69%f$UOUO6H9%cS![cP
!h9hr)rr�rjrr^r�s&& rr��IPv6Interface.__lt__�ss��"�)�)�$�6���>�)���	��L�L�5�=�=�0�C�C��L�L�E�M�M�1�B�B�l�
D���	��	�s#�A(� A(�%A(�(	A7�2A7�6A7c��[UOUO[UOO
212!r�r�rrs&rr��IPv6Interface.__hash__�r�rc�.�[UO2!r�)rr3rrs&rr8�IPv6Interface.ip�r�rc�\�UOUO28QUO80!r,r�rrs&rr)�IPv6Interface.with_prefixlen�r�rc�\�UOUO28QUO80!r,r�rrs&rr-�IPv6Interface.with_netmask�r�rc�\�UOUO28QUO80!r,rrrs&rr0�IPv6Interface.with_hostmask�rrc�^�UO]6H9%cUOO!rrrrs&rr��IPv6Interface.is_unspecified�rrc�V:�[RU_9%cUOO!r�)r�r�rr�s&�rr��IPv6Interface.is_loopback�s ����w�"�?�?�t�|�|�'?�'?�?rr)rrrrr�r�r�r$r�r�r�r�rnr�r�r8r)r-r0r�r�r
r�r�r�s@@rrr�s�����2����%��%�+�
�
�T� �*�*�J�
�%��%��+��+��(��(��)��)��=��=��@��@�@rrc�J`�\sQsQsnQs\sQQksQs\	Q2s
QsUsP!)ri�aZThis class represents and manipulates 128-bit IPv6 networks.

Attributes: [examples for IPv6('2001:db8::1000/124')]
    .network_address: IPv6Address('2001:db8::1000')
    .hostmask: IPv6Address('::f')
    .broadcast_address: IPv6Address('2001:db8::100f')
    .netmask: IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0')
    .prefixlen: 124

c�<`�UOU2vno[R2UmUOU2vUmUm[
UO2oU[
UO2*U6wcEU%c[QU*2g[U[
UO2*2UmUO
UO]*
6XcUOUm
P!UO
UO6XcU1QkUm
P!P!)aInstantiate a new IPv6 Network object.

Args:
    address: A string or integer representing the IPv6 network or the
      IP and prefix/netmask.
      '2001:db8::/128'
      '2001:db8:0000:0000:0000:0000:0000:0000/128'
      '2001:db8::'
      are all functionally the same in IPv6.  That is to say,
      failing to provide a subnetmask will create an object with
      a mask of /128.

      Additionally, an integer can be passed, so
      IPv6Network('2001:db8::') ==
        IPv6Network(42540766411282592856903984951653826560)
      or, more generally
      IPv6Network(int(IPv6Network('2001:db8::'))) ==
        IPv6Network('2001:db8::')

    strict: A boolean. If true, ensure that we have been passed
      A true network address, eg, 2001:db8::1000/124 and not an
      IP address on a network, eg, 2001:db8::1/124.

Raises:
    AddressValueError: If address isn't a valid IPv6 address.
    NetmaskValueError: If the netmask isn't valid for
      an IPv6 address.
    ValueError: If strict was True and a network address was not
      supplied.
rc�0:�[[R212!r�)r1rr
s�rr�&IPv6Network.__init__.<locals>.<lambda>$	rr)r�rr_r�rr]r�rrGrr
rs&&&  @rr��IPv6Network.__init__�s����>�,�,�W�5�
��d�*�4�0���(,�(:�(:�4�(@�%���d�o��T�)�)�*���C����%�%��/�� �!7�$�!>�?�?�'2�6�36�t�|�|�3D�4E�(F��$��?�?�t�1�1�A�5�6����D�J�
�_�_�� 2� 2�
2�;�D�J�3rc#�� �[UO2o[UO2o[U]*U]*2FDoUO	U2w�	J	P!3h)z�Generate Iterator over usable hosts in a network.

This is like __iter__ except it doesn't return the
Subnet-Router anycast address.

rrs&   rr
�IPv6Network.hosts&	sQ����d�*�*�+����.�.�/�	��w��{�I��M�2�A��%�%�a�(�(�3�s�A$A&c�l�UOO9%cUOO!r)r_r�rWrrs&rr��IPv6Network.is_site_local2	s1���$�$�2�2�5�5��&�&�4�4�	6rrr)
rrrrr	rrr�r
r�r�r
r�r�s@rrr�s0����	�!�N�.<�`
)��6��6rrc��\sQsQs\Q2s\Q2s\Q2\Q2\Q2\Q2\Q2\Q	2\Q
2\Q2\Q2\Q
2\Q2,s\Q2\Q2\Q2\Q2\Q2\Q2,s\Q2\Q2\Q2\Q2\Q2\Q2\Q2\Q2\Q2\Q2\Q2\Q2\Q 2\Q!2\Q"2,s	\Q#2s
Q$sP!)%�_IPv6ConstantsiB	z	fe80::/10zff00::/8z::1/128z::/128z
::ffff:0:0/96z64:ff9b:1::/48z100::/64z	2001::/23z
2001:db8::/32z	2002::/16z	3fff::/20zfc00::/7z
2001:1::1/128z
2001:1::2/128z2001:3::/32z2001:4:112::/48z2001:20::/28z2001:30::/28z::/8z100::/8z200::/7z400::/6z800::/5z1000::/4z4000::/3z6000::/3z8000::/3zA000::/3zC000::/3zE000::/4zF000::/5zF800::/6zFE00::/9z	fec0::/10r)rrrrrr�r�rvrxrzr�r
rrrr�r�B	s>��$�[�1��$�Z�0��
	�I���H���O�$��$�%��J���K� ��O�$��K� ��K� ��J���K� �
��"	�O�$��O�$��M�"��%�&��N�#��N�#�
$� �	�F��[��3��I���I� 6��I���J� 7��J���Z�!8��J���Z�!8��J���Z�!8��J���Z�!8��J��	��%�[�1�rr�c�d�UQ6Xc]QHGoUQQQ5Q![Q[8QU802g)�__version__)�_deprecated)�removez1.0zmodule z has no attribute )��)�warningsr�r^r)�namer�s& r�__getattr__r�u	s3���}��(��M�'�2��
�7�8�,�.@���I�
J�Jrr)%r	r�r�rUrrrrrr r%r(r/r9r?rNr[rerlrnr��total_orderingrDrgr�rur�rrrrrrrrr�r�rrr�<module>r�s�����
�
�
�
�0�
�0�0�
�0�S�:S�:U�DC�(
C� ��(
:� 4�n.�b36�l�2j,�j,�Z��
���hN�>�hN��hN�V���H4�>�H4��H4�V��
)���B:�B:�HS-�'�<�S-�lD=�K�D=�NO%�'�<�O%�d#2�#2�L(���'���m�m�^	a:�'�<�a:�H	H@�K�H@�VY6�'�<�Y6�x,2�,2�^(���'���Kr

Youez - 2016 - github.com/yon3zu
LinuXploit