Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/dns/__pycache__/name.cpython-312.pyc

443 lines
48 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i<><69><00>
<00>:<00>dZddlZddlZddlZddlZddlmZmZm Z m
Z
m Z m Z ddl ZddlZddlZddlZddlZej&j)d<04>rddlZdZndZe defZGd<08>d ej2j4<00>Zej8Zej<Zej@Z!ejDZ#ejHZ%Gd
<EFBFBD>d ejLjN<00>Z(Gd <0C>d ejLjN<00>Z)Gd<0E>dejLjT<00>Z+Gd<10>dejLjT<00>Z,Gd<12>dejLjZ<00>Z.Gd<14>dejLjT<00>Z/Gd<16>dejLjN<00>Z0Gd<18>dejLjZ<00>Z1Gd<1A>dejLjZ<00>Z2Gd<1C>dejLjZ<00>Z3Gd<1E>dejLjZ<00>Z4Gd <20>d!ejLjZ<00>Z5d"Z6d#Z7d$e8e9zd%e9fd&<26>Z:Gd'<27>d(<28>Z;Gd)<29>d*e;<3B>Z<Gd+<2B>d,e;<3B>Z=e<d<06>Z>e<d<05>Z?e>Z@e=dddd<06>ZAe=dddd<06>ZBe=dddd<05>ZCe=dddd<06>ZDeAZEd-e e8d.fd%dfd/<2F>ZFd$e8e9zd%e8fd0<64>ZGej<>j<>Gd1<64>d<07><00>ZIeId2g<01>ZJeIg<00>ZKeJdfd3e9d4eIdzd5e;dzd%eIfd6<64>ZLd3e9d%eMfd7<64>ZNeJdfd3e8e9zd4eIdzd5e;dzd%eIfd8<64>ZOd9d:d%eIfd;<3B>ZPd<e8d=ed%e eIeffd><3E>ZQd?ZReSeR<65>ZTeIeRg<01>ZUd@ZVeSeV<65>ZWeSdA<64>ZXeSdB<64>ZYdC<64>ZZdD<64>Z[dE<64>Z\dFeId4eIdGeMd%eIfdH<64>Z]dFeId4eIdGeMd%eIfdI<64>Z^dJeeIeIeMgeIfdFeId4eIdGeMd%eIf
dK<EFBFBD>Z_y)Lz
DNS Names.<2E>N)<06>Any<6E>Callable<6C>Dict<63>Iterable<6C>Optional<61>Tuple<6C>idnaTF<54>Namec<00>D<00>eZdZdZdZdZdZdZdZe d<07><00>Z
e d<08><00>Z y )
<EFBFBD> NameRelationz(Name relation result from fullcompare().r<00><00><00><00>c<00><00>|jS<00>N)<01>COMMONANCESTOR<4F><01>clss <20>7E:\Project\pygoedge\.venv\Lib\site-packages\dns/name.py<70>_maximumzNameRelation._maximumAs<00><00><12>!<21>!<21>!<21>c<00><00>|jSr)<01>__name__rs r<00> _short_namezNameRelation._short_nameEs <00><00><12>|<7C>|<7C>rN) r<00>
__module__<EFBFBD> __qualname__<5F>__doc__<5F>NONE<4E> SUPERDOMAIN<49> SUBDOMAIN<49>EQUALr<00> classmethodrr<00>rrr r 0sF<00><00>2<> <0A>D<EFBFBD><13>K<EFBFBD><11>I<EFBFBD> <0A>E<EFBFBD><16>N<EFBFBD><10>"<22><11>"<22><11><1C><11>rr c<00><00>eZdZdZy)<03>
EmptyLabelzA DNS label is empty.N<>rrrrr$rrr&r&Rs<00><00>rr&c<00><00>eZdZdZy)<03> BadEscapez8An escaped code in a text format of DNS name is invalid.Nr'r$rrr)r)Vs<00><00>Brr)c<00><00>eZdZdZy)<03>
BadPointerz=A DNS compression pointer points forward instead of backward.Nr'r$rrr+r+Zs<00><00>Grr+c<00><00>eZdZdZy)<03> BadLabelTypez2The label type in DNS name wire format is unknown.Nr'r$rrr-r-^s<00><00><rr-c<00><00>eZdZdZy)<03>NeedAbsoluteNameOrOriginzvAn attempt was made to convert a non-absolute name to
wire when there was also a non-absolute (or missing) origin.Nr'r$rrr/r/bs<00><00>Drr/c<00><00>eZdZdZy)<03> NameTooLongz A DNS name is > 255 octets long.Nr'r$rrr1r1g<00><00><00>*rr1c<00><00>eZdZdZy)<03> LabelTooLongz A DNS label is > 63 octets long.Nr'r$rrr4r4kr2rr4c<00><00>eZdZdZy)<03>AbsoluteConcatenationz]An attempt was made to append anything other than the
empty name to an absolute DNS name.Nr'r$rrr6r6os<00><00>+rr6c<00><00>eZdZdZy)<03>NoParentzMAn attempt was made to get the parent of the root name
or the empty name.Nr'r$rrr8r8ts<00><00>rr8c<00><00>eZdZdZy)<03>
NoIDNA2008zLIDNA 2008 processing was requested but the idna module is not
available.Nr'r$rrr:r:ys<00><00>rr:c<00>,<00><00>eZdZdZdhZdZ<05>fd<04>Z<06>xZS)<05> IDNAExceptionz$IDNA processing raised an exception.<2E>idna_exceptionz+IDNA processing exception: {idna_exception}c<00>$<00><01>t<00>|<00>|i|<02><01>yr)<02>super<65>__init__)<04>self<6C>args<67>kwargs<67> __class__s <20>rr@zIDNAException.__init__<5F>s<00><><00> <0A><07><18>$<24>)<29>&<26>)r)rrrr<00> supp_kwargs<67>fmtr@<00> __classcell__<5F>rDs@rr<r<~s<00><><00>.<2E>#<23>$<24>K<EFBFBD>
7<EFBFBD>C<EFBFBD>*<2A>*rr<c<00><00>eZdZdZy)<03>NeedSubdomainOfOriginzNAn absolute name was provided that is not a subdomain of the specified origin.Nr'r$rrrJrJ<00>s<00><00>XrrJs"().;\@$z"().;\@$<24>label<65>returnc<00>"<00>t|t<00>rGd}|D]>}|tvr|dt|<02>zz }<01>|dkDr|dkr|t|<02>z }<01>6|d|d<05><04>z }<01>@|Sd}|D]0}|tvr |d|zz }<01>|dkr|dt |<03>d<05><04>z }<01>,||z }<01>2|S)zaEscape the characters in label which need it.
@returns: the escaped string
@rtype: string<6E><00>\<5C> <00><00>03d<33> )<06>
isinstance<EFBFBD>bytes<65>_escaped<65>chr<68> _escaped_text<78>ord)rK<00>text<78>c<>ucs r<00> _escapifyr]<00>s<><00><00><12>%<25><15><1F><12><04><16>A<EFBFBD><10>H<EFBFBD>}<7D><14><04>s<EFBFBD>1<EFBFBD>v<EFBFBD> <0A>%<25><04><12>T<EFBFBD><18>a<EFBFBD>$<24>h<EFBFBD><14><03>A<EFBFBD><06><0E><04><14>"<22>Q<EFBFBD>s<EFBFBD>G<EFBFBD> <0C>$<24><04> <17><14> <0B> <0E>D<EFBFBD><13><02> <0A><1D> <1E> <10>D<EFBFBD>2<EFBFBD>I<EFBFBD> <1D>D<EFBFBD> <0F>6<EFBFBD>\<5C> <10>b<EFBFBD><13>R<EFBFBD><17><13> <0A>&<26> &<26>D<EFBFBD> <10>B<EFBFBD>J<EFBFBD>D<EFBFBD> <14> <10>Krc<00>F<00>eZdZdZd<02>Zdedefd<05>Zdedefd<06>Z dedefd<07>Z
y) <09> IDNACodecz.Abstract base class for IDNA encoder/decoders.c<00><00>yrr$<00>rAs rr@zIDNACodec.__init__<5F>s<00><00> rrKrLc<00>@<00>|j<00>jd<01>S)Nsxn--)<02>lower<65>
startswith<EFBFBD>rArKs r<00>is_idnazIDNACodec.is_idna<6E>s<00><00><14>{<7B>{<7B>}<7D>'<27>'<27><07>0<>0rc<00><00>t<00>r)<01>NotImplementedErrorres r<00>encodezIDNACodec.encode<64>s<00><00>!<21>!rc<00><><00>|j|<01>r |ddjd<02>}t|<02>St|<01>S#t$r}t |<03><03><00>d}~wwxYw)Nr<00>punycode<64>r=)rf<00>decoder]<00> Exceptionr<)rArK<00>slabel<65>es rrmzIDNACodec.decode<64>s^<00><00> <0F><<3C><<3C><05> <1E> 6<><1E>q<EFBFBD>r<EFBFBD><19>)<29>)<29>*<2A>5<><06> <20><16>(<28>(<28><1D>U<EFBFBD>#<23> #<23><><1D> 6<>#<23>1<EFBFBD>5<>5<><35> 6<>s<00>=<00> A<03> A<03>AN) rrrrr@rU<00>boolrf<00>strrirmr$rrr_r_<00>sC<00><00>8<> <0A>1<>U<EFBFBD>1<>t<EFBFBD>1<>"<22>C<EFBFBD>"<22>E<EFBFBD>"<22> $<24>E<EFBFBD> $<24>c<EFBFBD> $rr_c<00>N<00><00>eZdZdZddef<02>fd<03> Zdedefd<06>Zdedef<04>fd<07> Z <09>xZ
S) <09> IDNA2003CodeczIDNA 2003 encoder/decoder.<2E> strict_decodec<00>0<00><01>t<00>|<00><00>||_y)z<>Initialize the IDNA 2003 encoder/decoder.
*strict_decode* is a ``bool``. If `True`, then IDNA2003 checking
is done when decoding. This can cause failures if the name
was encoded with IDNA2008. The default is `False`.
N)r?r@ru)rArurDs <20>rr@zIDNA2003Codec.__init__<5F>s<00><><00> <0E><07><18><1A>*<2A><04>rrKrLc<00>t<00>|dk(ry tjj|<01>S#t$rt<00>wxYw)zEncode *label*.rNr)<05> encodingsr <00>ToASCII<49> UnicodeErrorr4res rrizIDNA2003Codec.encode<64>s=<00><00> <11>B<EFBFBD>;<3B><16> <1F><1C>><3E>><3E>)<29>)<29>%<25>0<> 0<><30><1B> <1F><1E> <1E> <1F>s<00>'<00>7c<00><><00><01>|jst<00>|<00> |<01>S|dk(ry ttj
j |<01><00>S#t$r}t|<02><03><00>d}~wwxYw)zDecode *label*.rrNrlN) rur?rmr]rxr <00> ToUnicodernr<)rArKrprDs <20>rrmzIDNA2003Codec.decode<64>s_<00><><00><13>!<21>!<21><18>7<EFBFBD>><3E>%<25>(<28> (<28> <10>C<EFBFBD><<3C><15> 2<><1C>Y<EFBFBD>^<5E>^<5E>5<>5<>e<EFBFBD><<3C>=<3D> =<3D><><18> 2<><1F>q<EFBFBD>1<> 1<><31> 2<>s<00>'A <00> A&<03> A!<03>!A&<03>F<> rrrrrqr@rrrUrirmrGrHs@rrtrt<00>s=<00><><00>$<24> +<2B>d<EFBFBD> +<2B><1F>C<EFBFBD><1F>E<EFBFBD><1F> 2<>E<EFBFBD> 2<>c<EFBFBD> 2<> 2rrtc <00>b<00><00>eZdZdZ d dedededef<08>fd<06> Zdedefd <09>Zdedef<04>fd
<EFBFBD> Z <09>xZ
S) <0C> IDNA2008CodeczIDNA 2008 encoder/decoder.<2E>uts_46<34> transitional<61>allow_pure_asciiruc<00>Z<00><01>t<00>|<00><00>||_||_||_||_y)a Initialize the IDNA 2008 encoder/decoder.
*uts_46* is a ``bool``. If True, apply Unicode IDNA
compatibility processing as described in Unicode Technical
Standard #46 (https://unicode.org/reports/tr46/).
If False, do not apply the mapping. The default is False.
*transitional* is a ``bool``: If True, use the
"transitional" mode described in Unicode Technical Standard
#46. The default is False.
*allow_pure_ascii* is a ``bool``. If True, then a label which
consists of only ASCII characters is allowed. This is less
strict than regular IDNA 2008, but is also necessary for mixed
names, e.g. a name with starting with "_sip._tcp." and ending
in an IDN suffix which would otherwise be disallowed. The
default is False.
*strict_decode* is a ``bool``: If True, then IDNA2008 checking
is done when decoding. This can cause failures if the name
was encoded with IDNA2003. The default is False.
N)r?r@r<>r<>r<>ru)rAr<>r<>r<>rurDs <20>rr@zIDNA2008Codec.__init__<5F>s/<00><><00>: <0E><07><18><1A><1C><04> <0B>(<28><04><19> 0<><04><1D>*<2A><04>rrKrLc<00><><00>|dk(ry|jr2t|<01>r'|jd<03>}t|<02>dkDrt<00>|St
st <00> |jr!tj|d|j<00>}tj|<01>S#tj$r)}|jddk(rt<00>t|<03><08><00>d}~wwxYw) NrNr<00>ascii<69>?FrzLabel too longrl)r<><00> is_all_asciiri<00>lenr4<00>have_idna_2008r:r<>r <00> uts46_remapr<70><00>alabel<65> IDNAErrorrBr<)rArK<00>encodedrps rrizIDNA2008Codec.encodes<><00><00> <10>B<EFBFBD>;<3B><16> <0F> <20> <20>\<5C>%<25>%8<><1B>l<EFBFBD>l<EFBFBD>7<EFBFBD>+<2B>G<EFBFBD><12>7<EFBFBD>|<7C>b<EFBFBD> <20>"<22>"<22><1A>N<EFBFBD><1D><1C> <1C> 6<><13>{<7B>{<7B><1C>(<28>(<28><15><05>t<EFBFBD>7H<37>7H<37>I<><05><17>;<3B>;<3B>u<EFBFBD>%<25> %<25><><13>~<7E>~<7E> 6<><10>v<EFBFBD>v<EFBFBD>a<EFBFBD>y<EFBFBD>,<2C>,<2C>"<22>"<22>#<23>1<EFBFBD>5<>5<><35>  6<>s<00>AB<00>C<03>'$C <03> Cc<00>T<00><01>|jst<00>|<00> |<01>S|dk(rytst<00> t j |<01>}|jr!t j|d|j<00>}t|<02>S#t
jtf$r}t|<03><04><00>d}~wwxYw)NrrNFrl)rur?rmr<>r:r <00>ulabelr<6C>r<>r<>r]r<>rzr<)rArKr<>rprDs <20>rrmzIDNA2008Codec.decode&s<><00><><00><13>!<21>!<21><18>7<EFBFBD>><3E>%<25>(<28> (<28> <10>C<EFBFBD><<3C><15><1D><1C> <1C> 2<><19>[<5B>[<5B><15>'<27>F<EFBFBD><13>{<7B>{<7B><1D>)<29>)<29>&<26>%<25><14>9J<39>9J<39>K<><06><1C>V<EFBFBD>$<24> $<24><><14><0E><0E> <0C>-<2D> 2<><1F>q<EFBFBD>1<> 1<><31> 2<>s<00>A A=<00>=B'<03> B"<03>"B')FFFFr~rHs@rr<>r<><00>sk<00><><00>$<24><1D>"<22>!&<26>#<23> !+<2B><14>!+<2B><1B>!+<2B><1F> !+<2B>
<1C> !+<2B>F6<>C<EFBFBD>6<>E<EFBFBD>6<>* 2<>E<EFBFBD> 2<>c<EFBFBD> 2<> 2rr<><00>labels.c<00><><00>t|<00>}d}d}d}|D]1}t|<05>}||dzz }|dkDrt<00>|dkr|dk(r|}|dz }<04>3|dkDrt<00>|dk\r||dz
k7rt<00>yy)aXCheck for empty labels in the middle of a label sequence,
labels that are too long, and for too many labels.
Raises ``dns.name.NameTooLong`` if the name as a whole is too long.
Raises ``dns.name.EmptyLabel`` if a label is empty (i.e. the root
label) and appears in a position other than the end of the label
sequence
r<00><><EFBFBD><EFBFBD><EFBFBD>r r<>r<00><>N)r<>r4r1r&)r<><00>l<>total<61>i<>jrK<00>lls r<00>_validate_labelsr<73>@s<><00><00> <0C>F<EFBFBD> <0B>A<EFBFBD> <0A>E<EFBFBD>
<EFBFBD>A<EFBFBD> <09>A<EFBFBD><17><05> <10><15>Z<EFBFBD><02> <0A><12>a<EFBFBD><16><0F><05> <0A><02>7<EFBFBD><1E> <1E> <0C>q<EFBFBD>5<EFBFBD>U<EFBFBD>c<EFBFBD>\<5C><11>A<EFBFBD> <09>Q<EFBFBD><06><01><18> <0A>s<EFBFBD>{<7B><19><19><08>A<EFBFBD>v<EFBFBD>!<21>q<EFBFBD>1<EFBFBD>u<EFBFBD>*<2A><18><18><1D>vrc<00>r<00>t|t<00>r|St|t<00>r|j<00>St<00>)zcIf label is ``str``, convert it to ``bytes``. If it is already
``bytes`` just return it.
)rTrUrrri<00>
ValueError)rKs r<00>_maybe_convert_to_binaryr<79>^s/<00><00> <12>%<25><15><1F><14> <0C><11>%<25><13><1D><14>|<7C>|<7C>~<7E><1D>
<14>rc <00><00><00>eZdZdZdgZdeeezfd<03>Zd<04>Z d<05>Z
d<06>Z <0B>fd<07>Z de fd <09>Zde fd
<EFBFBD>Zdefd <0B>Zd ddeeeeffd <0A>Zd dde fd<0E>Zd dde fd<0F>Zd4d<10>Zd<11>Zd<12>Zd<13>Zd<14>Zd<15>Zd<16>Zd<17>Zd<18>Zd5de defd<1A>Z d6de de!dzdefd<1D>Z"d7de#ddefd<1F>Z$ d8d e%dzd!e&dzde#dd"e dedzf
d#<23>Z'defd$<24>Z(d%<25>Z)d&<26>Z*d'<27>Z+d(eded)fd*<2A>Z,d9d+<2B>Z-d:d,<2C>Z.d:d-<2D>Z/ d;de#dd.e ddfd/<2F>Z0d4d0<64>Z1d<ddd1e ddfd2<64>Z2d<ddd1e ddfd3<64>Z3<5A>xZ4S)=r
z<>A DNS name.
The dns.name.Name class represents a DNS name as a tuple of
labels. Each label is a ``bytes`` in DNS wire format. Instances
of the class are immutable.
r<>c<00><><00>|D<00>cgc] }t|<02><00><02>}}t|<03>|_t|j<00>ycc}w)z?*labels* is any iterable whose values are ``str`` or ``bytes``.N)r<><00>tupler<65>r<>)rAr<><00>x<>blabelss rr@z Name.__init__vs;<00><00>9?<3F>?<3F><06>1<EFBFBD>+<2B>A<EFBFBD>.<2E><06><07>?<3F><1B>G<EFBFBD>n<EFBFBD><04> <0B><18><14><1B><1B>%<25><>@s<00>?c<00>,<00>t|j<00>Sr)r
r<>ras r<00>__copy__z Name.__copy__}s<00><00><13>D<EFBFBD>K<EFBFBD>K<EFBFBD> <20> rc<00>T<00>ttj|j|<01><00>Sr)r
<00>copy<70>deepcopyr<79>)rA<00>memos r<00> __deepcopy__zName.__deepcopy__<5F>s<00><00><13>D<EFBFBD>M<EFBFBD>M<EFBFBD>$<24>+<2B>+<2B>t<EFBFBD>4<>5<>5rc<00><00>d|jiS<00>Nr<4E><00>r<>ras r<00> __getstate__zName.__getstate__<5F>s<00><00><18>$<24>+<2B>+<2B>&<26>&rc<00>V<00><01>t<00>|<00>d|d<00>t|j<00>yr<>)r?<00> __setattr__r<5F>r<>)rA<00>staterDs <20>r<00> __setstate__zName.__setstate__<5F>s"<00><><00> <0A><07><1B>H<EFBFBD>e<EFBFBD>H<EFBFBD>o<EFBFBD>6<><18><14><1B><1B>%rrLc<00>Z<00>t|j<00>dkDxr|jddk(S)z`Is the most significant label of this name the root label?
Returns a ``bool``.
rr<>r<00>r<>r<>ras r<00> is_absolutezName.is_absolute<74>s*<00><00> <13>4<EFBFBD>;<3B>;<3B><1F>!<21>#<23>><3E><04> <0B> <0B>B<EFBFBD><0F>3<EFBFBD>(><3E>>rc<00>Z<00>t|j<00>dkDxr|jddk(S)zdIs this name wild? (I.e. Is the least significant label '*'?)
Returns a ``bool``.
r<00>*r<>ras r<00>is_wildz Name.is_wild<6C>s*<00><00> <13>4<EFBFBD>;<3B>;<3B><1F>!<21>#<23>><3E><04> <0B> <0B>A<EFBFBD><0E>$<24>(><3E>>rc<00>l<00>d}|jD]"}|j<00>D] }||dz|zz }<01><00>$|S)zQReturn a case-insensitive hash of the name.
Returns an ``int``.
rr)r<>rc)rA<00>hrKr[s r<00>__hash__z Name.__hash__<5F>s@<00><00> <0E><01><19>[<5B>[<5B>E<EFBFBD><1A>[<5B>[<5B>]<5D><01><11>a<EFBFBD>1<EFBFBD>f<EFBFBD><01>\<5C>!<21><01>#<23>!<21><11>r<00>otherc<00><><00>|j<00>}|j<00>}||k7r(|rtjddfStjddfSt|j<00>}t|j<00>}||z
}|dkr|}n|}d}d} tj}
|dkDr<>|dz}|dz}|dz}|j|j <00>} |j|j <00>} | | krd}| dkDrtj }
|
|| fS| | kDrd}| dkDrtj }
|
|| fS| dz } |dkDr<01><>|}|dkrtj}
n&|dkDrtj}
ntj}
|
|| fS)a<>Compare two names, returning a 3-tuple
``(relation, order, nlabels)``.
*relation* describes the relation ship between the names,
and is one of: ``dns.name.NameRelation.NONE``,
``dns.name.NameRelation.SUPERDOMAIN``, ``dns.name.NameRelation.SUBDOMAIN``,
``dns.name.NameRelation.EQUAL``, or ``dns.name.NameRelation.COMMONANCESTOR``.
*order* is < 0 if *self* < *other*, > 0 if *self* > *other*, and ==
0 if *self* == *other*. A relative name is always less than an
absolute name. If both names have the same relativity, then
the DNSSEC order relation is used to order them.
*nlabels* is the number of significant labels that the two names
have in common.
Here are some examples. Names ending in "." are absolute names,
those not ending in "." are relative names.
============= ============= =========== ===== =======
self other relation order nlabels
============= ============= =========== ===== =======
www.example. www.example. equal 0 3
www.example. example. subdomain > 0 2
example. www.example. superdomain < 0 2
example1.com. example2.com. common anc. < 0 2
example1 example2. none < 0 0
example1. example2 none > 0 0
============= ============= =========== ===== =======
r rr<>)
r<EFBFBD>r rr<>r<>rcrr r!r") rAr<><00>sabs<62>oabs<62>l1<6C>l2<6C>ldiffr<66><00>order<65>nlabels<6C>namereln<6C>label1<6C>label2s r<00> fullcomparezName.fullcompare<72>s<><00><00>@<14><1F><1F>!<21><04><14> <20> <20>"<22><04> <0F>4<EFBFBD><<3C><13>$<24>)<29>)<29>1<EFBFBD>a<EFBFBD>0<>0<>$<24>)<29>)<29>2<EFBFBD>q<EFBFBD>1<>1<> <10><14><1B><1B> <1D><02> <10><15><1C><1C> <1E><02><12>R<EFBFBD><07><05> <10>1<EFBFBD>9<EFBFBD><12>A<EFBFBD><12>A<EFBFBD><11><05><13><07><1F>$<24>$<24><08><0F>!<21>e<EFBFBD> <0A><11>F<EFBFBD>A<EFBFBD> <0E>!<21>G<EFBFBD>B<EFBFBD> <0E>!<21>G<EFBFBD>B<EFBFBD><19>[<5B>[<5B><12>_<EFBFBD>*<2A>*<2A>,<2C>F<EFBFBD><1A>\<5C>\<5C>"<22>%<25>+<2B>+<2B>-<2D>F<EFBFBD><15><06><EFBFBD><1A><05><1A>Q<EFBFBD>;<3B>+<2B>:<3A>:<3A>H<EFBFBD> <20>%<25><17>1<>1<><17>&<26><1F><19><05><1A>Q<EFBFBD>;<3B>+<2B>:<3A>:<3A>H<EFBFBD> <20>%<25><17>1<>1<> <13>q<EFBFBD>L<EFBFBD>G<EFBFBD>!<10>!<21>e<EFBFBD>"<16><05> <10>1<EFBFBD>9<EFBFBD>#<23>/<2F>/<2F>H<EFBFBD> <12>Q<EFBFBD>Y<EFBFBD>#<23>-<2D>-<2D>H<EFBFBD>#<23>)<29>)<29>H<EFBFBD><18>%<25><17>)<29>)rc<00>|<00>|j|<01>\}}}|tjk(s|tjk(ryy)z<>Is self a subdomain of other?
Note that the notion of subdomain includes equality, e.g.
"dnspython.org" is a subdomain of itself.
Returns a ``bool``.
TF)r<>r r!r"<00>rAr<><00>nr<6E>_s r<00> is_subdomainzName.is_subdomain<69>s;<00><00><1A>%<25>%<25>e<EFBFBD>,<2C>
<EFBFBD><12>Q<EFBFBD><01> <0A><1C>'<27>'<27> '<27>2<EFBFBD><1C>1C<31>1C<31>+C<><17>rc<00>|<00>|j|<01>\}}}|tjk(s|tjk(ryy)z<>Is self a superdomain of other?
Note that the notion of superdomain includes equality, e.g.
"dnspython.org" is a superdomain of itself.
Returns a ``bool``.
TF)r<>r r r"r<>s r<00>is_superdomainzName.is_superdomains;<00><00><1A>%<25>%<25>e<EFBFBD>,<2C>
<EFBFBD><12>Q<EFBFBD><01> <0A><1C>)<29>)<29> )<29>R<EFBFBD><<3C>3E<33>3E<33>-E<><17>rc<00>n<00>t|jD<00>cgc]}|j<00><00><02>c}<01>Scc}w)zcReturn a name which is equal to the current name, but is in
DNSSEC canonical form.
)r
r<>rc)rAr<>s r<00> canonicalizezName.canonicalizes+<00><00>
<14><04> <0B> <0B>4<> <0B>1<EFBFBD>Q<EFBFBD>W<EFBFBD>W<EFBFBD>Y<EFBFBD> <0B>4<>5<>5<><35>4s<00>2c<00>R<00>t|t<00>r|j|<01>ddk(Sy)Nr rF<>rTr
r<><00>rAr<>s r<00>__eq__z Name.__eq__s*<00><00> <15>e<EFBFBD>T<EFBFBD> "<22><17>#<23>#<23>E<EFBFBD>*<2A>1<EFBFBD>-<2D><11>2<> 2<>rc<00>R<00>t|t<00>r|j|<01>ddk7Sy)Nr rTr<54>r<>s r<00>__ne__z Name.__ne__s*<00><00> <15>e<EFBFBD>T<EFBFBD> "<22><17>#<23>#<23>E<EFBFBD>*<2A>1<EFBFBD>-<2D><11>2<> 2<>rc<00>\<00>t|t<00>r|j|<01>ddkStS<00>Nr r<00>rTr
r<><00>NotImplementedr<64>s r<00>__lt__z Name.__lt__"<00>-<00><00> <15>e<EFBFBD>T<EFBFBD> "<22><17>#<23>#<23>E<EFBFBD>*<2A>1<EFBFBD>-<2D><01>1<> 1<>!<21> !rc<00>\<00>t|t<00>r|j|<01>ddkStSr<>r<>r<>s r<00>__le__z Name.__le__(<00>-<00><00> <15>e<EFBFBD>T<EFBFBD> "<22><17>#<23>#<23>E<EFBFBD>*<2A>1<EFBFBD>-<2D><11>2<> 2<>!<21> !rc<00>\<00>t|t<00>r|j|<01>ddk\StSr<>r<>r<>s r<00>__ge__z Name.__ge__.r<>rc<00>\<00>t|t<00>r|j|<01>ddkDStSr<>r<>r<>s r<00>__gt__z Name.__gt__4r<>rc<00>.<00>d|j<00>zdzS)Nz
<DNS name <20>>)<01>__str__ras r<00>__repr__z Name.__repr__:s<00><00><1B>d<EFBFBD>l<EFBFBD>l<EFBFBD>n<EFBFBD>,<2C>s<EFBFBD>2<>2rc<00>$<00>|jd<01>S)NF)<01>to_textras rr<>z Name.__str__=s<00><00><13>|<7C>|<7C>E<EFBFBD>"<22>"r<00>omit_final_dotc<00>(<00>t|j<00>dk(ryt|j<00>dk(r|jddk(ry|r |j<00>r|jdd}n |j}djt t
|<02><00>}|S)z<>Convert name to DNS text format.
*omit_final_dot* is a ``bool``. If True, don't emit the final
dot (denoting the root label) for absolute names. The default
is False.
Returns a ``str``.
r<00>@r r<00>.Nr<4E>)r<>r<>r<><00>join<69>mapr])rAr<>r<><00>ss rr<>z Name.to_text@s|<00><00> <0F>t<EFBFBD>{<7B>{<7B> <1B>q<EFBFBD> <20><16> <0E>t<EFBFBD>{<7B>{<7B> <1B>q<EFBFBD> <20>T<EFBFBD>[<5B>[<5B><11>^<5E>s<EFBFBD>%:<3A><16> <19>d<EFBFBD>.<2E>.<2E>0<><14> <0B> <0B>C<EFBFBD>R<EFBFBD> <20>A<EFBFBD><14> <0B> <0B>A<EFBFBD> <0F>H<EFBFBD>H<EFBFBD>S<EFBFBD><19>A<EFBFBD>&<26> '<27><01><10>rN<>
idna_codecc<00>\<00>t|j<00>dk(ryt|j<00>dk(r|jddk(ry|r |j<00>r|jdd}n |j}|<02>t}dj |D<00>cgc]}|j |<04><00><02>c}<04>Scc}w)atConvert name to Unicode text format.
IDN ACE labels are converted to Unicode.
*omit_final_dot* is a ``bool``. If True, don't emit the final
dot (denoting the root label) for absolute names. The default
is False.
*idna_codec* specifies the IDNA encoder/decoder. If None, the
dns.name.IDNA_2003_Practical encoder/decoder is used.
The IDNA_2003_Practical decoder does
not impose any policy, it just decodes punycode, so if you
don't want checking for compliance, you can use this decoder
for IDNA2008 as well.
Returns a ``str``.
rr<>r rr<>Nr<4E>)r<>r<>r<><00>IDNA_2003_Practicalr<6C>rm)rAr<>r<>r<>r<>s r<00>
to_unicodezName.to_unicodeUs<><00><00>( <0F>t<EFBFBD>{<7B>{<7B> <1B>q<EFBFBD> <20><16> <0E>t<EFBFBD>{<7B>{<7B> <1B>q<EFBFBD> <20>T<EFBFBD>[<5B>[<5B><11>^<5E>s<EFBFBD>%:<3A><16> <19>d<EFBFBD>.<2E>.<2E>0<><14> <0B> <0B>C<EFBFBD>R<EFBFBD> <20>A<EFBFBD><14> <0B> <0B>A<EFBFBD> <15> <1D>,<2C>J<EFBFBD><12>x<EFBFBD>x<EFBFBD>q<EFBFBD>9<>q<EFBFBD>!<21><1A>*<2A>*<2A>1<EFBFBD>-<2D>q<EFBFBD>9<>:<3A>:<3A><>9s<00>
B)<08>originc<00>4<00>|j|d<01><02>}|<02>J<00>|S)a@Convert name to a format suitable for digesting in hashes.
The name is canonicalized and converted to uncompressed wire
format. All names in wire format are absolute. If the name
is a relative name, then an origin must be supplied.
*origin* is a ``dns.name.Name`` or ``None``. If the name is
relative and origin is not ``None``, then origin will be appended
to the name.
Raises ``dns.name.NeedAbsoluteNameOrOrigin`` if the name is
relative and no origin was provided.
Returns a ``bytes``.
T)r<>r<>)<01>to_wire)rAr<><00>digests r<00> to_digestablezName.to_digestableus'<00><00>"<16><1C><1C>V<EFBFBD>$<24><1C>?<3F><06><15>!<21>!<21>!<21><15> r<00>file<6C>compressr<73>c<00>`<00>|<01><>t<00>}|jD]7}|jt|<06><00>|r||j <00>z }<05>3||z }<05>9|j <00>s^|<03>|j <00>st <00>|jD]7}|jt|<06><00>|r||j <00>z }<05>3||z }<05>9t|<05>S|j <00>sR|<03>|j <00>st <00>t|j<00>}|jt|j<00><00>n |j}d}|D]<5D>}t||d<00>} |dz }|<02>|j| <09>}
nd}
|
<EFBFBD>.d|
z} tjd| <0B>} |j| <0C>y|<02>(t| <09>dkDr|j<00>}
|
dkr|
|| <t|<06>} |jtjd| <0A><00>| dkDs<01><>|r |j|j <00><00><00><>|j|<06><00><>y)aConvert name to wire format, possibly compressing it.
*file* is the file where the name is emitted (typically an
io.BytesIO file). If ``None`` (the default), a ``bytes``
containing the wire name will be returned.
*compress*, a ``dict``, is the compression table to use. If
``None`` (the default), names will not be compressed. Note that
the compression code assumes that compression offset 0 is the
start of *file*, and thus compression will not be correct
if this is not the case.
*origin* is a ``dns.name.Name`` or ``None``. If the name is
relative and origin is not ``None``, then *origin* will be appended
to it.
*canonicalize*, a ``bool``, indicates whether the name should
be canonicalized; that is, converted to a format suitable for
digesting in hashes.
Raises ``dns.name.NeedAbsoluteNameOrOrigin`` if the name is
relative and no origin was provided.
Returns a ``bytes`` or ``None``.
Nrr i<00>z!Hi<48>?<00>!B)<10> bytearrayr<79><00>appendr<64>rcr<>r/rU<00>list<73>extendr
<00>get<65>struct<63>pack<63>write<74>tell)rAr<>r<>r<>r<><00>outrKr<>r<><00>n<>pos<6F>valuer<65>r<>s rr<>z Name.to_wire<72>s<><00><00>B <10><<3C><1B>+<2B>C<EFBFBD><1D><1B><1B><05><13>
<EFBFBD>
<EFBFBD>3<EFBFBD>u<EFBFBD>:<3A>&<26><1F><17>5<EFBFBD>;<3B>;<3B>=<3D>(<28>C<EFBFBD><17>5<EFBFBD>L<EFBFBD>C<EFBFBD> %<25> <18>#<23>#<23>%<25><19>><3E><16>);<3B>);<3B>)=<3D>2<>2<>#<23>]<5D>]<5D>E<EFBFBD><17>J<EFBFBD>J<EFBFBD>s<EFBFBD>5<EFBFBD>z<EFBFBD>*<2A>#<23><1B>u<EFBFBD>{<7B>{<7B>}<7D>,<2C><03><1B>u<EFBFBD> <0C><03> +<2B> <19><13>:<3A> <1D><14><1F><1F>!<21><15>~<7E>V<EFBFBD>%7<>%7<>%9<>.<2E>.<2E><19>$<24>+<2B>+<2B>&<26>F<EFBFBD> <12>M<EFBFBD>M<EFBFBD>$<24>v<EFBFBD>}<7D>}<7D>-<2D> .<2E><19>[<5B>[<5B>F<EFBFBD> <0A><01><1B>E<EFBFBD><14>V<EFBFBD>A<EFBFBD>B<EFBFBD>Z<EFBFBD> <20>A<EFBFBD> <0A><11>F<EFBFBD>A<EFBFBD><17>#<23><1E>l<EFBFBD>l<EFBFBD>1<EFBFBD>o<EFBFBD><03><1A><03><12><EFBFBD><1E><13> <0C><05><1A>K<EFBFBD>K<EFBFBD><04>e<EFBFBD>,<2C><01><14>
<EFBFBD>
<EFBFBD>1<EFBFBD> <0A><15><14><1C>'<27>C<EFBFBD><01>F<EFBFBD>Q<EFBFBD>J<EFBFBD><1E>)<29>)<29>+<2B>C<EFBFBD><1A>f<EFBFBD>}<7D>&)<29><08><11> <0B><17><05>J<EFBFBD><01><14>
<EFBFBD>
<EFBFBD>6<EFBFBD>;<3B>;<3B>t<EFBFBD>Q<EFBFBD>/<2F>0<><14>q<EFBFBD>5<EFBFBD>#<23><1C>
<EFBFBD>
<EFBFBD>5<EFBFBD>;<3B>;<3B>=<3D>1<><1C>
<EFBFBD>
<EFBFBD>5<EFBFBD>)<29>/<1C>0rc<00>,<00>t|j<00>S)zIThe length of the name (in labels).
Returns an ``int``.
r<>ras r<00>__len__z Name.__len__<5F>s<00><00> <13>4<EFBFBD>;<3B>;<3B><1F>rc<00> <00>|j|Srr<>)rA<00>indexs r<00> __getitem__zName.__getitem__<5F>s<00><00><13>{<7B>{<7B>5<EFBFBD>!<21>!rc<00>$<00>|j|<01>Sr)<01> concatenater<65>s r<00>__add__z Name.__add__<5F>s<00><00><13><1F><1F><05>&<26>&rc<00>$<00>|j|<01>Sr)<01>
relativizer<EFBFBD>s r<00>__sub__z Name.__sub__<5F>s<00><00><13><EFBFBD><EFBFBD>u<EFBFBD>%<25>%r<00>depth)r
r
c<00><00>t|j<00>}|dk(r|tjjfS||k(rtjj|fS|dks||kDr t d<02><00>t |d| <00>t || d<00>fS)a(Split a name into a prefix and suffix names at the specified depth.
*depth* is an ``int`` specifying the number of labels in the suffix
Raises ``ValueError`` if *depth* was not >= 0 and <= the length of the
name.
Returns the tuple ``(prefix, suffix)``.
rz0depth must be >= 0 and <= the length of the nameN)r<>r<><00>dns<6E>name<6D>emptyr<79>r
)rArr<>s r<00>splitz
Name.split<69>s<><00><00> <10><04> <0B> <0B> <1C><01> <10>A<EFBFBD>:<3A><18>#<23>(<28>(<28>.<2E>.<2E>)<29> )<29> <12>a<EFBFBD>Z<EFBFBD><17>H<EFBFBD>H<EFBFBD>N<EFBFBD>N<EFBFBD>D<EFBFBD>)<29> )<29> <12>Q<EFBFBD>Y<EFBFBD>%<25>!<21>)<29><1C>O<>P<> P<><14>T<EFBFBD>'<27>E<EFBFBD>6<EFBFBD>]<5D>#<23>T<EFBFBD>$<24><05>v<EFBFBD>w<EFBFBD>-<2D>%8<>9<>9rc<00><><00>|j<00>rt|<01>dkDrt<00>t|j<00>}|j t|j<00><00>t |<02>S)z<>Return a new name which is the concatenation of self and other.
Raises ``dns.name.AbsoluteConcatenation`` if the name is
absolute and *other* is not the empty name.
Returns a ``dns.name.Name``.
r)r<>r<>r6rr<>rr
)rAr<>r<>s rrzName.concatenatesM<00><00> <10> <1B> <1B> <1D>#<23>e<EFBFBD>*<2A>q<EFBFBD>.<2E>'<27> '<27><15>d<EFBFBD>k<EFBFBD>k<EFBFBD>"<22><06><0E> <0A> <0A>d<EFBFBD>5<EFBFBD><<3C><<3C>(<28>)<29><13>F<EFBFBD>|<7C>rc<00>\<00>|<01>)|j|<01>rt|dt|<01> <00>S|S)a<>If the name is a subdomain of *origin*, return a new name which is
the name relative to origin. Otherwise return the name.
For example, relativizing ``www.dnspython.org.`` to origin
``dnspython.org.`` returns the name ``www``. Relativizing ``example.``
to origin ``dnspython.org.`` returns ``example.``.
Returns a ``dns.name.Name``.
N)r<>r
r<><00>rAr<>s rrzName.relativizes4<00><00> <12> <1D>$<24>"3<>"3<>F<EFBFBD>";<3B><17><04>^<5E><03>F<EFBFBD> <0B>|<7C>,<2C>-<2D> -<2D><17>Krc<00>H<00>|j<00>s|j|<01>S|S)a<>If the name is a relative name, return a new name which is the
concatenation of the name and origin. Otherwise return the name.
For example, derelativizing ``www`` to origin ``dnspython.org.``
returns the name ``www.dnspython.org.``. Derelativizing ``example.``
to origin ``dnspython.org.`` returns ``example.``.
Returns a ``dns.name.Name``.
)r<>rrs r<00> derelativizezName.derelativize%s&<00><00><14><1F><1F>!<21><17>#<23>#<23>F<EFBFBD>+<2B> +<2B><17>Krrc<00>R<00>|r$|r|j|<01>S|j|<01>S|S)a8Return a name with the relativity desired by the caller.
If *origin* is ``None``, then the name is returned.
Otherwise, if *relativize* is ``True`` the name is
relativized, and if *relativize* is ``False`` the name is
derelativized.
Returns a ``dns.name.Name``.
)rr )rAr<>rs r<00>choose_relativityzName.choose_relativity5s/<00><00> <12><19><1B><EFBFBD><EFBFBD>v<EFBFBD>.<2E>.<2E><1B>(<28>(<28><16>0<>0<><17>Krc<00>b<00>|tk(s |tk(rt<00>t|jdd<00>S)aReturn the parent of the name.
For example, the parent of ``www.dnspython.org.`` is ``dnspython.org``.
Raises ``dns.name.NoParent`` if the name is either the root name or the
empty name, and thus has no parent.
Returns a ``dns.name.Name``.
r N)<05>rootrr8r
r<>ras r<00>parentz Name.parentJs+<00><00> <10>4<EFBFBD><<3C>4<EFBFBD>5<EFBFBD>=<3D><1A>N<EFBFBD><13>D<EFBFBD>K<EFBFBD>K<EFBFBD><01><02>O<EFBFBD>$<24>$r<00> prefix_okc<00>&<00>tt|||<02>S)a<>Return the maximal predecessor of *name* in the DNSSEC ordering in the zone
whose origin is *origin*, or return the longest name under *origin* if the
name is origin (i.e. wrap around to the longest name, which may still be
*origin* due to length considerations.
The relativity of the name is preserved, so if this name is relative
then the method will return a relative name, and likewise if this name
is absolute then the predecessor will be absolute.
*prefix_ok* indicates if prefixing labels is allowed, and
defaults to ``True``. Normally it is good to allow this, but if computing
a maximal predecessor at a zone cut point then ``False`` must be specified.
)<02>_handle_relativity_and_call<6C>_absolute_predecessor<6F>rAr<>r&s r<00> predecessorzName.predecessorYs<00><00>+<2B> !<21>4<EFBFBD><16><19>
<EFBFBD>
rc<00>&<00>tt|||<02>S)a;Return the minimal successor of *name* in the DNSSEC ordering in the zone
whose origin is *origin*, or return *origin* if the successor cannot be
computed due to name length limitations.
Note that *origin* is returned in the "too long" cases because wrapping
around to the origin is how NSEC records express "end of the zone".
The relativity of the name is preserved, so if this name is relative
then the method will return a relative name, and likewise if this name
is absolute then the successor will be absolute.
*prefix_ok* indicates if prefixing a new minimal label is allowed, and
defaults to ``True``. Normally it is good to allow this, but if computing
a minimal successor at a zone cut point then ``False`` must be specified.
)r(<00>_absolute_successorr*s r<00> successorzName.successorks<00><00> +<2B>+><3E><04>f<EFBFBD>i<EFBFBD>X<>Xr)rLr
r})FNr)NNNF)r<>r
rLr
)r<>r
rLr
)NT)T)5rrrr<00> __slots__rrUrrr@r<>r<>r<>r<>rqr<>r<><00>intr<74>rr r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r_r<>rr<>r<00> CompressTyper<65>r rrrrrrr r"r%r+r.rGrHs@rr
r
ks-<00><><00><08><1A>
<EFBFBD>I<EFBFBD>&<26>x<EFBFBD><05><03> <0B>4<>&<26>!<21>6<>'<27>&<26>?<3F>T<EFBFBD>?<3F>?<3F><14>?<3F>
<11>#<23>
<11>J*<2A><16>J*<2A>E<EFBFBD>,<2C><03>S<EFBFBD>2H<32>,I<>J*<2A>X <15>&<26> <15>T<EFBFBD> <15> <15>F<EFBFBD> <15>t<EFBFBD> <15>6<><19> <18> "<22> "<22> "<22> "<22> 3<>#<23><11>d<EFBFBD><11>s<EFBFBD><11>,LP<01>;<3B>"<22>;<3B>8A<38>D<EFBFBD>8H<38>;<3B> <0C>;<3B>@<16>H<EFBFBD>V<EFBFBD>$4<><16><05><16>. <20>(,<2C>#'<27>"<22> U<14><11>D<EFBFBD>j<EFBFBD>U<14><1F><14>%<25>U<14><19><16> <20> U<14>
<1B> U<14>
<0F><14><1C> U<14>n <20><13> <20>"<22>'<27>&<26>:<3A>3<EFBFBD>:<3A>5<EFBFBD><1E>#8<>:<3A>( <1C><18> <18>"CG<01><18><1E>v<EFBFBD>&<26><18>;?<3F><18> <0F><18>* %<25>
<EFBFBD>&<26>
<EFBFBD>T<EFBFBD>
<EFBFBD>V<EFBFBD>
<EFBFBD>$Y<01><06>Y<01>4<EFBFBD>Y<01>6<EFBFBD>YrrrZr<>r<>c<00>x<00>t|t<00>s td<01><00>|<01>t|t<00>s td<02><00>g}d}d}d}d}|<02>t}|dk(rd}|<00>r |dvr tdg<01>S|D]<5D>}|rs|dk(r)|j <00>rt |<08>}|d z }<06>+||z }d}<05>3|j <00>st<00>|d
z}|t |<08>z }|d z }|d k(s<01>gd}|t|<07>z }<04>x|dvr7t|<04>dk(rt<00>|j|j|<04><00>d}<04><>|d k(rd }d}d}<07><>||z }<04><>|rt<00>t|<04>dkDr!|j|j|<04><00>n|jd<08>t|<03>dk(s|ddk7r&|<01>$|jt|j<00><00>t|<03>S)a<>Convert unicode text into a Name object.
Labels are encoded in IDN ACE form according to rules specified by
the IDNA codec.
*text*, a ``str``, is the text to convert into a name.
*origin*, a ``dns.name.Name``, specifies the origin to
append to non-absolute names. The default is the root name.
*idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
encoder/decoder. If ``None``, the default IDNA 2003 encoder/decoder
is used.
Returns a ``dns.name.Name``.
z0input to from_unicode() must be a unicode string<6E>origin must be a Name or NonerNFrr<>)r<>u。uu。rr <00>
rrOTr<54>)rTrrr<>r
<00> IDNA_2003<30>isdigitr0r)rWr<>r&r<>rirrr<>) rZr<>r<>r<>rK<00>escaping<6E>edigitsr<73>r[s r<00> from_unicoder9<00>s<><00><00>( <16>d<EFBFBD>C<EFBFBD> <20><18>K<>L<>L<> <12>N<EFBFBD>j<EFBFBD><16><14>6<><18>8<>9<>9<> <0F>F<EFBFBD> <0E>E<EFBFBD><14>H<EFBFBD><0F>G<EFBFBD> <0A>E<EFBFBD><11><19><1E>
<EFBFBD> <0B>s<EFBFBD>{<7B><11><04> <0B> <0F>6<> 6<><17><13><05>;<3B> <1E><15>A<EFBFBD><17><1A>a<EFBFBD><<3C><18>y<EFBFBD>y<EFBFBD>{<7B> #<23>A<EFBFBD><06><05><1F>1<EFBFBD> <0C><07><1D><11>
<EFBFBD><05>#(<28><08><1C>9<EFBFBD>9<EFBFBD>;<3B>'<27><0F><19>R<EFBFBD>K<EFBFBD>E<EFBFBD><19>S<EFBFBD><11>V<EFBFBD>O<EFBFBD>E<EFBFBD><1B>q<EFBFBD>L<EFBFBD>G<EFBFBD><1E>!<21>|<7C>#(<28><08><1D><13>U<EFBFBD><1A>+<2B><05><12>9<>9<><16>u<EFBFBD>:<3A><11>?<3F>$<24>$<24><16> <0A> <0A>j<EFBFBD>/<2F>/<2F><05>6<>7<><1A><05><12>d<EFBFBD><19><1F><08><1B><07><19><05><15><11>
<EFBFBD><05>9<16>: <14><1B>O<EFBFBD> <0E>u<EFBFBD>:<3A><01>><3E> <12>M<EFBFBD>M<EFBFBD>*<2A>+<2B>+<2B>E<EFBFBD>2<> 3<> <12>M<EFBFBD>M<EFBFBD>#<23> <1E> <0B>F<EFBFBD> <0B>q<EFBFBD><18>F<EFBFBD>2<EFBFBD>J<EFBFBD>#<23>-<2D>6<EFBFBD>3E<33><0E> <0A> <0A>d<EFBFBD>6<EFBFBD>=<3D>=<3D>)<29>*<2A> <0F><06><<3C>rc<00>2<00>|D]}t|<01>dkDs<01>yy)NrQFT)rY)rZr[s rr<>r<><00>s<00><00> <11><01> <0E>q<EFBFBD>6<EFBFBD>D<EFBFBD>=<3D><18><12> rc<00><><00>t|t<00>r)t|<00>s t|||<02>S|j d<01>}t|t
<00>s t d<02><00>|<01>t|t<00>s t d<03><00>g}d}d}d}d}|dk(rd}|<00>r%|dk(r tdg<01>S|D]<5D>}tjd |<08>} |r~|dk(r)| j<00>rt| <09>}|d
z }<06>A|| z }d}<05>I| j<00>st<00>|d z}|t| <09>z }|d
z }|d k(s<01>}d}|tjd |<07>z }<04><>| dk(r(t|<04>dk(rt<00>|j|<04>d}<04><>| d k(rd}d}d}<07><>|| z }<04><>|rt<00>t|<04>dkDr|j|<04>n|jd<04>t|<03>dk(s|ddk7r&|<01>$|j!t#|j$<00><00>t|<03>S)a<>Convert text into a Name object.
*text*, a ``bytes`` or ``str``, is the text to convert into a name.
*origin*, a ``dns.name.Name``, specifies the origin to
append to non-absolute names. The default is the root name.
*idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
encoder/decoder. If ``None``, the default IDNA 2003 encoder/decoder
is used.
Returns a ``dns.name.Name``.
r<>z%input to from_text() must be a stringr3rFr<00>@<40>.r<>r r4r<00>\Tr<54>)rTrrr<>r9rirUr<>r
rrr6r0r)r<>r&r<>rrr<>)
rZr<>r<>r<>rKr7r8r<>r[<00>byte_s
r<00> from_textr@<00>s<><00><00>&<12>$<24><03><1C><1B>D<EFBFBD>!<21><1F><04>f<EFBFBD>j<EFBFBD>9<> 9<><14>{<7B>{<7B>7<EFBFBD>#<23><04> <15>d<EFBFBD>E<EFBFBD> "<22><18>@<40>A<>A<> <12>N<EFBFBD>j<EFBFBD><16><14>6<><18>8<>9<>9<> <0F>F<EFBFBD> <0F>E<EFBFBD><14>H<EFBFBD><0F>G<EFBFBD> <0A>E<EFBFBD> <0B>t<EFBFBD>|<7C><12><04> <0B> <0F>4<EFBFBD><<3C><17><13><05>;<3B> <1E><15>A<EFBFBD><1A>K<EFBFBD>K<EFBFBD><04>a<EFBFBD>(<28>E<EFBFBD><17><1A>a<EFBFBD><<3C><1C>}<7D>}<7D><EFBFBD> #<23>E<EFBFBD>
<EFBFBD><05><1F>1<EFBFBD> <0C><07><1D><15><0E><05>#(<28><08> <20>=<3D>=<3D>?<3F>'<27><0F><19>R<EFBFBD>K<EFBFBD>E<EFBFBD><19>S<EFBFBD><15>Z<EFBFBD>'<27>E<EFBFBD><1B>q<EFBFBD>L<EFBFBD>G<EFBFBD><1E>!<21>|<7C>#(<28><08><1D><16><1B><1B>T<EFBFBD>5<EFBFBD>!9<>9<><05><16>$<24><1D><16>u<EFBFBD>:<3A><11>?<3F>$<24>$<24><16> <0A> <0A>e<EFBFBD>$<24><1B><05><16>%<25><1E><1F><08><1B><07><19><05><15><15><0E><05>;<16>< <14><1B>O<EFBFBD> <0E>u<EFBFBD>:<3A><01>><3E> <12>M<EFBFBD>M<EFBFBD>%<25> <20> <12>M<EFBFBD>M<EFBFBD>#<23> <1E> <0B>F<EFBFBD> <0B>q<EFBFBD><18>F<EFBFBD>2<EFBFBD>J<EFBFBD>#<23>-<2D>6<EFBFBD>3E<33><0E> <0A> <0A>d<EFBFBD>6<EFBFBD>=<3D>=<3D>)<29>*<2A> <0F><06><<3C>r<00>parserzdns.wire.Parserc<00><><00>g}|j}|j<00>5|j<00>}|dk7r|dkr!|j|j |<03><00>nC|dk\r8|dzdz|j<00>z}||k\rt
<00>|}|j |<04>nt<00>|j<00>}|dk7r<01>|jd<06>ddd<07>t|<01>S#1swYt|<01>SxYw)a7Convert possibly compressed wire format into a Name.
*parser* is a dns.wire.Parser.
Raises ``dns.name.BadPointer`` if a compression pointer did not
point backwards in the message.
Raises ``dns.name.BadLabelType`` if an invalid label type was encountered.
Returns a ``dns.name.Name``
r<00>@<00><>r<><00>rN) <09>current<6E>restore_furthest<73> get_uint8r<38><00> get_bytesr+<00>seekr-r
)rAr<><00>biggest_pointer<65>countrFs r<00>from_wire_parserrM3s<><00><00><10>F<EFBFBD><1C>n<EFBFBD>n<EFBFBD>O<EFBFBD> <0F> <20> <20> "<22><16> <20> <20>"<22><05><13>q<EFBFBD>j<EFBFBD><14>r<EFBFBD>z<EFBFBD><16> <0A> <0A>f<EFBFBD>.<2E>.<2E>u<EFBFBD>5<>6<><16>#<23><1C> <20>4<EFBFBD><<3C>3<EFBFBD>.<2E><16>1A<31>1A<31>1C<31>C<><07><1A>o<EFBFBD>-<2D>$<24>$<24>")<29><0F><16> <0B> <0B>G<EFBFBD>$<24>"<22>"<22><1A>$<24>$<24>&<26>E<EFBFBD><14>q<EFBFBD>j<EFBFBD> <0F> <0A> <0A>c<EFBFBD><1A>
#<23> <10><06><<3C><17>
#<23> <10><06><<3C><17>s<00>BC<03>4C<03>C+<07>messagerFc<00><><00>t|t<00>s td<01><00>tjj ||<01>}t |<02>}||j|z
fS)a^Convert possibly compressed wire format into a Name.
*message* is a ``bytes`` containing an entire DNS message in DNS
wire form.
*current*, an ``int``, is the offset of the beginning of the name
from the start of the message
Raises ``dns.name.BadPointer`` if a compression pointer did not
point backwards in the message.
Raises ``dns.name.BadLabelType`` if an invalid label type was encountered.
Returns a ``(dns.name.Name, int)`` tuple consisting of the name
that was read and the number of bytes of the wire format message
which were consumed reading it.
z*input to from_wire() must be a byte string)rTrUr<>r<00>wire<72>ParserrMrF)rNrFrArs r<00> from_wirerRTsL<00><00>& <16>g<EFBFBD>u<EFBFBD> %<25><18>E<>F<>F<> <10>X<EFBFBD>X<EFBFBD>_<EFBFBD>_<EFBFBD>W<EFBFBD>g<EFBFBD> .<2E>F<EFBFBD> <1B>F<EFBFBD> #<23>D<EFBFBD> <10>&<26>.<2E>.<2E>7<EFBFBD>*<2A> +<2B>+r<00><00><00>r<EFBFBD><00>[c<00>2<00>tjd<01>|d<02>S)Nc<00>$<00>|t|<01>zdzS)Nr )r<>)<02>vr<76>s r<00><lambda>z_wire_length.<locals>.<lambda>zs<00><00><11>S<EFBFBD><11>V<EFBFBD><1A>a<EFBFBD>rr)<02> functools<6C>reducer<65>s r<00> _wire_lengthr\ys<00><00> <14> <1B> <1B>7<><16><11> C<>Crc<00>:<00>dt|j<00>z
}g}|dkDr#|jtdz<00>|dz}|dkDr<01>#|dk\r|jt|dz
z<00>t t |<02><00>}|j |j<00>t|<02>S)Nr<4E>rCr<>rr )r\r<>r<><00>_MAXIMAL_OCTETr<00>reversedrr
)r<00>needed<65>
new_labelss r<00>_pad_to_max_namerb}s<><00><00> <10><<3C><04> <0B> <0B>,<2C> ,<2C>F<EFBFBD><13>J<EFBFBD>
<10>2<EFBFBD>+<2B><12><19><19>.<2E>2<EFBFBD>-<2D>.<2E><0E>"<22> <0C><06> <11>2<EFBFBD>+<2B><0E><11>{<7B><12><19><19>.<2E>F<EFBFBD>Q<EFBFBD>J<EFBFBD>7<>8<><16>h<EFBFBD>z<EFBFBD>*<2A>+<2B>J<EFBFBD><0E><15><15>d<EFBFBD>k<EFBFBD>k<EFBFBD>"<22> <0F>
<EFBFBD> <1B>rc<00><><00>t|<00>}dt|<01>z
|z
dz
}|dkr|Std|z
|<03>}|t|zzS)Nr<4E>r rr<>)r<>r\<00>minr^)rK<00> suffix_labels<6C>length<74> remainingr`s r<00>_pad_to_max_labelrh<00>sP<00><00> <10><15>Z<EFBFBD>F<EFBFBD><13>l<EFBFBD>=<3D>1<>1<>F<EFBFBD>:<3A>Q<EFBFBD>><3E>I<EFBFBD><10>A<EFBFBD>~<7E><14> <0C> <10><12>f<EFBFBD><1B>i<EFBFBD> (<28>F<EFBFBD> <10>><3E>F<EFBFBD>*<2A> *<2A>*rrr&c<00><><00>||k(r t|<00>S|d}|tk(r|j<00>S|d}|jdd}|tk(r|ddg}nBt |<03>}|d}|t k(rt}n|dz}||d<t|<07>}t||<05>g}|j|<05>t|<06>}|r t|<00>S|S)Nrr<>r ) rb<00>_MINIMAL_OCTETr%r<><00>_MINIMAL_OCTET_VALUEr<45><00>_LEFT_SQUARE_BRACKET_VALUE<55>_AT_SIGN_VALUErUrhrr
) rr<>r&<00>least_significant_label<65> least_octetrera<00>octets<74>octets rr)r)<00>s<><00><00>  <0C>v<EFBFBD>~<7E><1F><04>%<25>%<25>"<22>1<EFBFBD>g<EFBFBD><1B><1E>.<2E>0<><13>{<7B>{<7B>}<7D><1C>)<29>"<22>-<2D>K<EFBFBD><18>K<EFBFBD>K<EFBFBD><01><02>O<EFBFBD>M<EFBFBD><12>*<2A>*<2A>-<2D>c<EFBFBD>r<EFBFBD>2<>3<>
<EFBFBD><1A>2<>3<><06><16>r<EFBFBD>
<EFBFBD><05> <10>.<2E> .<2E>"<22>E<EFBFBD> <11>Q<EFBFBD>J<EFBFBD>E<EFBFBD><1A><06>r<EFBFBD>
<EFBFBD>"'<27><06>-<2D><1F>'<27>(?<3F><1D>O<>P<>
<EFBFBD><0E><15><15>m<EFBFBD>$<24> <0F>
<EFBFBD> <1B>D<EFBFBD><10><1F><04>%<25>%<25><13> rc<00><><00>|r tj|<00>S||k7r<>|d}t|<03>dkrH|tzg}|j |j dd<00> tjj|<04>St|<03>}tt|<05>dz
dd<04>D]g}||}|tk(r<01>|tk(rt}n|dz }|||<t|d|dz<00>g}|j |j dd<00>t|<04>cS|j!<00>}||k7r<01><>|S#t$rY<00><01>wxYw#tjj$rY<00><>wxYw)Nrr<>r r<>)<11>_SUCCESSOR_PREFIXrr1r<>rjrr<>rrr
r<><00>range<67>_MAXIMAL_OCTET_VALUErmrlrUr%)rr<>r&rnrarpr<>rqs rr-r-<00>sj<00><00> <11> <11>$<24>0<>0<><14>6<> 6<> <0F>&<26>.<2E>"&<26>q<EFBFBD>'<27><1F> <0E>&<26> '<27>"<22> ,<2C>2<>N<EFBFBD>B<>C<>J<EFBFBD> <16> <1D> <1D>d<EFBFBD>k<EFBFBD>k<EFBFBD>!<21>"<22>o<EFBFBD> .<2E> <15><1A>x<EFBFBD>x<EFBFBD>}<7D>}<7D>Z<EFBFBD>0<>0<>
<1B>2<>3<><06><17>s<EFBFBD>6<EFBFBD>{<7B>Q<EFBFBD><EFBFBD><02>B<EFBFBD>/<2F>A<EFBFBD><1A>1<EFBFBD>I<EFBFBD>E<EFBFBD><14>,<2C>,<2C><18><15><0E>&<26>2<><05><15><11>
<EFBFBD><05><1D>F<EFBFBD>1<EFBFBD>I<EFBFBD><1F><06>w<EFBFBD><11>Q<EFBFBD><15><0F>0<>1<>J<EFBFBD> <16> <1D> <1D>d<EFBFBD>k<EFBFBD>k<EFBFBD>!<21>"<22>o<EFBFBD> .<2E><18>
<EFBFBD>#<23> #<23>+0<>0<14>{<7B>{<7B>}<7D><04>W <0F>&<26>.<2E>^ <12>M<EFBFBD><4D>c<1B> <11> <10> <11><><17>8<EFBFBD>8<EFBFBD>'<27>'<27> <15><14> <15>s#<00>D<00>D/<00> D,<03>+D,<03>/E<03>E<03>functionc<00><><00>|j<00>st<00>|j<00> }|r|j|<02>}n|j|<02>st<00>||||<03>}|r|j |<02>}|Sr)r<>r/r r<>rJr)rvrr<>r&<00>relative<76> result_names rr(r(<00>su<00><00> <12> <1D> <1D> <1F>&<26>&<26><17>#<23>#<23>%<25>%<25>H<EFBFBD><0F><13> <20> <20><16>(<28><04> <11> <1E> <1E>v<EFBFBD> &<26>#<23>#<23><1A>4<EFBFBD><16><19>3<>K<EFBFBD><0F>!<21>,<2C>,<2C>V<EFBFBD>4<> <0B> <16>r)`rr<><00>encodings.idnarxrZr<00>typingrrrrrr<00> dns._featuresr<00>dns.enum<75> dns.exception<6F> dns.immutable<6C>dns.wire<72> _features<65>haver r<>r0r1<00>enum<75>IntEnumr r<00> NAMERELN_NONEr <00>NAMERELN_SUPERDOMAINr!<00>NAMERELN_SUBDOMAINr"<00>NAMERELN_EQUALr<00>NAMERELN_COMMONANCESTOR<4F> exception<6F> SyntaxErrorr&r)<00> FormErrorr+r-<00> DNSExceptionr/r1r4r6r8r:r<rJrVrXrUrrr]r_rtr<>r<><00>IDNA_2003_Strictr5<00>IDNA_2008_Practical<61>IDNA_2008_UTS_46<34>IDNA_2008_Strict<63>IDNA_2008_Transitional<61> IDNA_2008r<38>r<><00> immutabler
r$rr9rqr<>r@rMrRrjrYrkrsr^rurmrlr\rbrhr)r-r(r$rr<00><module>r<>s<><00><01>$<11> <0B><15><10> <0A>A<>A<><14><0F><14><14><0F><07>=<3D>=<3D><15><15>f<EFBFBD><1D><0F><19>N<EFBFBD><1A>N<EFBFBD><14>F<EFBFBD>C<EFBFBD>K<EFBFBD> <20> <0C><1C>3<EFBFBD>8<EFBFBD>8<EFBFBD>#<23>#<23><1C>6<1D>!<21>!<21> <0A>#<23>/<2F>/<2F><14>!<21>+<2B>+<2B><12><1D>#<23>#<23><0E>&<26>5<>5<><17> <20><13><1D><1D>*<2A>*<2A> <20>C<01><03> <0A> <0A>)<29>)<29>C<01>H<01><13><1D><1D>(<28>(<28>H<01>=<3D>3<EFBFBD>=<3D>=<3D>*<2A>*<2A>=<3D>D<01>s<EFBFBD>}<7D>}<7D>9<>9<>D<01>
+<2B>#<23>-<2D>-<2D>)<29>)<29>+<2B>+<2B>3<EFBFBD>=<3D>=<3D>,<2C>,<2C>+<2B>+<2B>C<EFBFBD>M<EFBFBD>M<EFBFBD>6<>6<>+<2B>
<1A>s<EFBFBD>}<7D>}<7D>)<29>)<29><1A>
<12><13><1D><1D>+<2B>+<2B><12>
*<2A>C<EFBFBD>M<EFBFBD>M<EFBFBD>.<2E>.<2E> *<2A>Y<01>C<EFBFBD>M<EFBFBD>M<EFBFBD>6<>6<>Y<01> <18><08><1B> <0A><10>U<EFBFBD>S<EFBFBD>[<5B><10>S<EFBFBD><10>:$<24>$<24>0!2<>I<EFBFBD>!2<>HH2<>I<EFBFBD>H2<>V$<24>E<EFBFBD>*<2A><13> <20><14>&<26><10> <1F> <09>#<23>D<EFBFBD>%<25><14>u<EFBFBD>=<3D><13> <20><14>u<EFBFBD>e<EFBFBD>U<EFBFBD>;<3B><10> <20><15><05>u<EFBFBD>d<EFBFBD>;<3B><10>&<26>t<EFBFBD>T<EFBFBD>5<EFBFBD>%<25>@<40><16> <1F> <09><19>U<EFBFBD>5<EFBFBD>#<23>:<3A>.<2E><19>4<EFBFBD><19><
<15>E<EFBFBD>C<EFBFBD>K<EFBFBD>
<15>E<EFBFBD>
<15><05><1D><1D><18><18>OY<01>OY<01><19>OY<01>f <0C>S<EFBFBD>E<EFBFBD>{<7B><04> <0A>R<EFBFBD><08><05>&*<2A>$<24>J<18>
<0A>J<18><1B>d<EFBFBD>{<7B>J<18>7@<40>4<EFBFBD>7G<37>J<18> <09>J<18>Z<10>s<EFBFBD><10>t<EFBFBD><10><1F>#'<27>T<18>
<0F>#<23>+<2B>T<18> <10>4<EFBFBD>K<EFBFBD>T<18><1A>D<EFBFBD> <20>T<18>
<EFBFBD> T<18>t<18>.<2E><18>4<EFBFBD><18>B,<2C>u<EFBFBD>,<2C>s<EFBFBD>,<2C>u<EFBFBD>T<EFBFBD>3<EFBFBD>Y<EFBFBD>/?<3F>,<2C>8<19><0E><1A>><3E>*<2A><14><18>.<2E>)<29>*<2A><11><18><0E><1A>><3E>*<2A><14><14>S<EFBFBD><18><0E> <20><13>X<EFBFBD><1A>D<01> <1C> +<2B><14><04><14>d<EFBFBD><14>t<EFBFBD><14><04><14>B;<12>d<EFBFBD>;<12>D<EFBFBD>;<12>T<EFBFBD>;<12>d<EFBFBD>;<12>|<17><16><04>d<EFBFBD>D<EFBFBD>)<29>4<EFBFBD>/<2F>0<><17>
<0E><17> <11><17><14> <17>

<EFBFBD> r