403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.14/xml/etree/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc
+
��3j@$��0�Rt.RHOtR	t^R
It^R
It^R
It^R
It^R
It^R
It^R
I	t	^R
I
t
^RIHt!RR]
4tR
t!RR4t/3RltRIRltRIRlt]t!RR4t!RR4t]	P.R4tRIRltRt0RJmtRtRtR]R]R]/tRtRRRRRR R!R"R#R$R%R&R'R(/t ] ]n R)t!R*t"R+t#R,t$RKR-R
R.R
R/R0/R1llt%!R2R3]PL4t'RKR-R
R.R
R/R0/R4llt(R5t)RLR6lt*RIR7lt+RKR8lt,!R9R4t-RIR:lt.RIR;lt/].t0RIR<lt1!R=R4t2!R>R4t3RIR?R
R@R
/RAllt4]Pj!RB]Pl4Pnt8!RCR4t9RDt:REt;]t<^RFI=5^RGI=H>t>]>!]]4R
# ]?dR
#i;i)Ma�Lightweight XML support for Python.

XML is an inherently hierarchical data format, and the most natural way to
represent it is with a tree.  This module has two classes for this purpose:

   1. ElementTree represents the whole XML document as a tree and

   2. Element represents a single node in this tree.

Interactions with the whole document (reading and writing to/from files) are
usually done on the ElementTree level.  Interactions with a single XML element
and its sub-elements are done on the Element level.

Element is a flexible container object designed to store hierarchical data
structures in memory. It can be described as a cross between a list and a
dictionary.  Each Element has a number of properties associated with it:

   'tag' - a string containing the element's name.

   'attributes' - a Python dictionary storing the element's attributes.

   'text' - a string containing the element's text content.

   'tail' - an optional string containing text after the element's end tag.

   And a number of child elements stored in a Python sequence.

To create an element instance, use the Element constructor,
or the SubElement factory function.

You can also use the ElementTree class to wrap an element structure
and convert it to and from XML.

�Element�ElementTree�
ParseError�QName�TreeBuilder�	XMLParser�
XMLPullParser�C14NWriterTargetz1.3.0N)�ElementPathc��]tRt^ktRtRtR#)rz�An error when parsing an XML document.

In addition to its exception value, a ParseError contains
two extra attributes:
    'code'     - the specific exception code
    'position' - the line and column of the error

�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��,/usr/lib/python3.14/xml/etree/ElementTree.pyrrks���	rc��\VR4#)z2Return True if *element* appears to be an Element.�tag)�hasattr)�elements&r�	iselementrys���7�E�"�"rc��a�]tRt^~toRtRtRtRtRt/3Rlt	Rt
RtRtRt
RtR	tR
tRtRtR
tRtRtRtRRltRRltRRltRRltRtRRltRtRtRtRRlt Rt!Rt"Vt#R#)ra8An XML element.

This class is the reference implementation of the Element interface.

An element's length is its number of subelements.  That means if you
want to check if an element is truly empty, you should check BOTH
its length AND its text attribute.

The element tag, attribute names, and attribute values can be either
bytes or strings.

*tag* is the element name.  *attrib* is an optional dictionary containing
element attributes. *extra* are additional element attributes given as
keyword arguments.

Example form:
    <tag attrib>text<child/>...</tag>tail

Nc��\V\4'g$\RVPP:24hWn/VCVCVn.VnR#)zattrib must be dict, not N)�
isinstance�dict�	TypeError�	__class__r
r�attrib�	_children)�selfrr �extras&&&,r�__init__�Element.__init__�sM���&�$�'�'��� � �)�)�,�-�
-���)��)�5�)�����rc�h�RVPPVP\V43,#)z<%s %r at %#x>)rr
r�id�r"s&r�__repr__�Element.__repr__�s&���4�>�>�#:�#:�D�H�H�b��h�"O�O�Orc�$�VPW4#)z�Create a new element with the same type.

*tag* is a string containing the element name.
*attrib* is a dictionary containing the element attributes.

Do not call this method, use the SubElement factory function instead.

)r)r"rr s&&&r�makeelement�Element.makeelement�s���~�~�c�*�*rc��VPVPVP4pVPVnVPVnWR&V#)�NNN)r,rr �text�tail)r"�elems& r�__copy__�Element.__copy__�s>��������$�+�+�6���I�I��	��I�I��	��Q���rc�,�\VP4#�N)�lenr!r(s&r�__len__�Element.__len__�s���4�>�>�"�"rc�l�\P!R\^R7\VP4^8g#)z�Testing an element's truth value will always return True in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.��
stacklevel)�warnings�warn�DeprecationWarningr7r!r(s&r�__bool__�Element.__bool__�s1���
�
�
K�
�1�		��4�>�>�"�a�'�'rc�(�VPV,#r6�r!�r"�indexs&&r�__getitem__�Element.__getitem__�s���~�~�e�$�$rc��\V\4'dVFpVPV4K	MVPV4W PV&R#r6)r�slice�_assert_is_elementr!)r"rEr�elts&&& r�__setitem__�Element.__setitem__�sC���e�U�#�#����'�'��,��
�#�#�G�,� '���u�rc� �VPVR#r6rCrDs&&r�__delitem__�Element.__delitem__�s���N�N�5�!rc�^�VPV4VPPV4R#)z�Add *subelement* to the end of this element.

The new element will appear in document order after the last existing
subelement (or directly after the text, if it's the first subelement),
but before the end tag for this element.

N�rJr!�append�r"�
subelements&&rrS�Element.append�s$��	
���
�+������j�)rc�p�VF/pVPV4VPPV4K1	R#)z[Append subelements from a sequence.

*elements* is a sequence with zero or more elements.

NrR)r"�elementsrs&& r�extend�Element.extend�s.�� �G��#�#�G�,��N�N�!�!�'�*� rc�^�VPV4VPPW4R#)z(Insert *subelement* at position *index*.N)rJr!�insert)r"rErUs&&&rr\�Element.insert�s"�����
�+������e�0rc�|�\V\4'g&\R\V4P,4hR#)�expected an Element, not %sN)r�_Element_Pyr�typer
)r"�es&&rrJ�Element._assert_is_element�s1���!�[�)�)��9�D��G�<L�<L�L�M�M�*rc�t�VPPV4R# \d\R4Rhi;i)ayRemove matching subelement.

Unlike the find methods, this method compares elements based on
identity, NOT ON tag value or contents.  To remove subelements by
other means, the easiest way is to use a list comprehension to
select what elements to keep, and then use slice assignment to update
the parent element.

ValueError is raised if a matching element could not be found.

z$Element.remove(x): element not foundN)r!�remove�
ValueErrorrTs&&rre�Element.removes9��	O��N�N�!�!�*�-���	O��C�D�$�N�	O�s��7c�0�\P!WV4#)z�Find first matching element by tag name or path.

*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full name.

Return the first matching element, or None if no element was found.

)r
�find�r"�path�
namespacess&&&rri�Element.finds������J�7�7rc�0�\P!WW#4#)a�Find text for first matching element by tag name or path.

*path* is a string having either an element tag or an XPath,
*default* is the value to return if the element was not found,
*namespaces* is an optional mapping from namespace prefix to full name.

Return text content of first matching element, or default value if
none was found.  Note that if an element is found having no text
content, the empty string is returned.

)r
�findtext�r"rk�defaultrls&&&&rro�Element.findtexts���#�#�D��D�Drc�0�\P!WV4#)z�Find all matching subelements by tag name or path.

*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full name.

Returns list containing all matching elements in document order.

)r
�findallrjs&&&rrt�Element.findall-s���"�"�4�z�:�:rc�0�\P!WV4#)aFind all matching subelements by tag name or path.

*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full name.

Return an iterable yielding all matching elements in document order.

)r
�iterfindrjs&&&rrw�Element.iterfind8s���#�#�D�
�;�;rc�d�VPP4.VnR;VnVnR#)z~Reset element.

This function removes all subelements, clears all attributes, and sets
the text and tail attributes to None.

N)r �clearr!r0r1r(s&rrz�
Element.clearCs)��	
��������� $�$��	�D�Irc�8�VPPW4#)a7Get element attribute.

Equivalent to attrib.get, but some implementations may handle this a
bit more efficiently.  *key* is what attribute to look for, and
*default* is what to return if the attribute was not found.

Returns a string containing the attribute value, or the default if
attribute was not found.

)r �get)r"�keyrqs&&&rr}�Element.getNs���{�{���s�,�,rc�"�W PV&R#)z�Set element attribute.

Equivalent to attrib[key] = value, but some implementations may handle
this a bit more efficiently.  *key* is what attribute to set, and
*value* is the attribute value to set it to.

N)r )r"r~�values&&&r�set�Element.set[s��!���C�rc�6�VPP4#)z�Get list of attribute names.

Names are returned in an arbitrary order, just like an ordinary
Python dict.  Equivalent to attrib.keys()

)r �keysr(s&rr��Element.keyses���{�{���!�!rc�6�VPP4#)z�Get element attributes as a sequence.

The attributes are returned in arbitrary order.  Equivalent to
attrib.items().

Return a list of (name, value) tuples.

)r �itemsr(s&rr��
Element.itemsns���{�{� � �"�"rc#�"�VR8XdRpVeVPV8XdVx�VPFpVPV4Rjx�L
K	R#L
5i)a�Create tree iterator.

The iterator loops over the element and all subelements in document
order, returning all elements with a matching tag.

If the tree structure is modified during iteration, new or removed
elements may or may not be included.  To get a stable set, use the
list() function on the iterator, and loop over the resulting list.

*tag* is what tags to look for (default is to return all elements)

Return an iterator containing all the matching elements.

�*N)rr!�iter)r"rrbs&& rr��Element.iterysI����#�:��C��;�$�(�(�c�/��J����A��v�v�c�{�"�"� �"�s�AA�A�	Ac#�"�VPp\V\4'gVeR#VPpV'dVx�VF5pVP	4Rjx�L
VP
pV'gK1Vx�K7	R#L$5i)z}Create text iterator.

The iterator loops over the element and all subelements in document
order, returning all inner text.

N)rr�strr0�itertextr1)r"r�trbs&   rr��Element.itertext�sd����h�h���#�s�#�#�����I�I����G��A��z�z�|�#�#����A��q���	�#�s�<B�B�B�B�6B)r!r rr1r0r6�NN)$r
rrrrrr r0r1r$r)r,r3r8r@rFrLrOrSrYr\rJrerirortrwrzr}r�r�r�r�r�r�__classdictcell__��
__classdict__s@rrr~s������(�C��
�F�1��D���D��$&��P�	+��#�(�%�(�"�	*�+�1�
N�O�&	8�E�	;�	<�	%�-�!�"�	#�#�,�rc�V�/VCVCpVPW4pVPV4V#)a|Subelement factory which creates an element instance, and appends it
to an existing parent.

The element tag, attribute names, and attribute values can be either
bytes or Unicode strings.

*parent* is the parent element, *tag* is the subelements name, *attrib* is
an optional directory containing element attributes, *extra* are
additional attributes given as keyword arguments.

)r,rS)�parentrr r#rs&&&, r�
SubElementr��s4��!��
 �%�
 �F�� � ��-�G�
�M�M�'���Nrc�0�\\4pWnV#)z�Comment element factory.

This function creates a special element which the standard serializer
serializes as an XML comment.

*text* is a string containing the comment string.

)r�Commentr0)r0rs& rr�r��s���g��G��L��Nrc�~�\\4pWnV'd VPR,V,VnV#)aProcessing Instruction element factory.

This function creates a special element which the standard serializer
serializes as an XML comment.

*target* is a string containing the processing instruction, *text* is a
string containing the processing instruction contents, if any.

� )r�ProcessingInstructionr0)�targetr0rs&& rr�r��s1���+�,�G��L���|�|�c�)�D�0����Nrc�^a�]tRtRtoRtRRltRtRtRtRt	R	t
R
tRtRt
R
tVtR#)ri�a�Qualified name wrapper.

This class can be used to wrap a QName attribute value in order to get
proper namespace handing on output.

*text_or_uri* is a string containing the QName value either in the form
{uri}local, or if the tag argument is given, the URI part of a QName.

*tag* is an optional argument which if given, will make the first
argument (text_or_uri) be interpreted as a URI, and this argument (tag)
be interpreted as a local name.

Nc�6�V'dRV:RV:2pWnR#)�{�}N�r0)r"�text_or_urirs&&&rr$�QName.__init__�s���3�&1�3�7�K��	rc��VP#r6r�r(s&r�__str__�
QName.__str__�s���y�y�rc�T�RVPP:RVP:R2#)�<r��>)rr
r0r(s&rr)�QName.__repr__�s�� �N�N�3�3�T�Y�Y�?�?rc�,�\VP4#r6)�hashr0r(s&r�__hash__�QName.__hash__�s���D�I�I��rc�~�\V\4'dVPVP8*#VPV8*#r6�rrr0�r"�others&&r�__le__�QName.__le__��1���e�U�#�#��9�9��
�
�*�*��y�y�E�!�!rc�~�\V\4'dVPVP8#VPV8#r6r�r�s&&r�__lt__�QName.__lt__��1���e�U�#�#��9�9�u�z�z�)�)��y�y�5� � rc�~�\V\4'dVPVP8�#VPV8�#r6r�r�s&&r�__ge__�QName.__ge__�r�rc�~�\V\4'dVPVP8�#VPV8�#r6r�r�s&&r�__gt__�QName.__gt__�r�rc�~�\V\4'dVPVP8H#VPV8H#r6r�r�s&&r�__eq__�QName.__eq__�r�rr�r6)r
rrrrr$r�r)r�r�r�r�r�r�rr�r�s@rrr�s=����� ��@��"�!�"�!�"�"rc�a�]tRtRtoRtRRltRtRtRRltRRlt	RR	lt
RR
ltRRltRRlt
RR
R/RlltRtRtVtR#)ria
An XML element hierarchy.

This class also provides support for serialization to and from
standard XML.

*element* is an optional root element node,
*file* is an optional file handle or file name of an XML file whose
contents will be used to initialize the tree with.

Nc��Ve7\V4'g&\R\V4P,4hWnV'dVPV4R#R#)Nr_)rrrar
�_root�parse)r"r�files&&&rr$�ElementTree.__init__sM����y��'9�'9��9� ��M�2�2�3�4�
4��
���J�J�t��rc��VP#)z!Return root element of this tree.�r�r(s&r�getroot�ElementTree.getroots���z�z�rc�~�\V4'g&\R\V4P,4hWnR#)z�Replace root element of this tree.

This will discard the current contents of the tree and replace it
with the given element.  Use with care!

r_N)rrrar
r�)r"rs&&r�_setroot�ElementTree._setroots6����!�!��9�"�7�m�4�4�5�6�
6��
rc��Rp\VR4'g\VR4pRpVfX\4p\VR4'd<VPV4VnVPV'dVP4##VP
R4;p'dVPV4K,VP4VnVPV'dVP4## T'dTP4ii;i)aLoad external XML document into element tree.

*source* is a file name or file object, *parser* is an optional parser
instance that defaults to XMLParser.

ParseError is raised if the parser fails to parse the document.

Returns the root element of the given source document.

F�read�rbT�_parse_wholei)r�openrr�r��closer��feed)r"�source�parser�close_source�datas&&&  rr��ElementTree.parse)s������v�v�&�&��&�$�'�F��L�	��~�"����6�>�2�2�
"(�!4�!4�V�!<�D�J��:�:�������!�+�+�e�,�,�$�,����D�!�����D�J��:�:��������|������s�AC%�?C%�3C%�%Dc�8�VPPV4#)z�Create and return tree iterator for the root element.

The iterator loops over all elements in this tree, in document order.

*tag* is a string with the tag name to iterate over
(default is to return all elements).

)r�r��r"rs&&rr��ElementTree.iterKs���z�z���s�#�#rc��VR,R8Xd.RV,p\P!RV,\^R7VPP	W4#)a4Find first matching element by tag name or path.

Same as getroot().find(path), which is Element.find()

*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full name.

Return the first matching element, or None if no element was found.

�N�N�/�.��This search is broken in 1.3 and earlier, and will be fixed in a future version.  If you rely on the current behaviour, change it to %rr;)r=r>�
FutureWarningr�rirjs&&&rri�ElementTree.findWsM����8�s�?���:�D��M�M�-�/3�4��!�	
��z�z���t�0�0rc��VR,R8Xd.RV,p\P!RV,\^R7VPP	WV4#)a=Find first matching element by tag name or path.

Same as getroot().findtext(path),  which is Element.findtext()

*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full name.

Return the first matching element, or None if no element was found.

r�r�r�r�r;)r=r>r�r�rorps&&&&rro�ElementTree.findtextmsQ����8�s�?���:�D��M�M�-�/3�4��!�	
��z�z�"�"�4�*�=�=rc��VR,R8Xd.RV,p\P!RV,\^R7VPP	W4#)a9Find all matching subelements by tag name or path.

Same as getroot().findall(path), which is Element.findall().

*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full name.

Return list containing all matching elements in document order.

r�r�r�r�r;)r=r>r�r�rtrjs&&&rrt�ElementTree.findall�sO����8�s�?���:�D��M�M�-�/3�4��!�	
��z�z�!�!�$�3�3rc��VR,R8Xd.RV,p\P!RV,\^R7VPP	W4#)a?Find all matching subelements by tag name or path.

Same as getroot().iterfind(path), which is element.iterfind()

*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full name.

Return an iterable yielding all matching elements in document order.

r�r�r�r�r;)r=r>r�r�rwrjs&&&rrw�ElementTree.iterfind�sO����8�s�?���:�D��M�M�-�/3�4��!�	
��z�z�"�"�4�4�4r�short_empty_elementsTc
�V�VPf\R4hV'gRpMV\9d\RV,4hV'g
VR8XdRpMRp\	W4;_uu_4wrxVR8XdDV'g/Vf8VP4R8wd#VP4R
9dV!R	V:R
24VR8Xd\
WpP4M:\VPV4wr�\V,pV!WpPW�VR7RRR4R# +'giR#;i)azWrite element tree to a file as XML.

Arguments:
  *file_or_filename* -- file name or a file object opened for writing

  *encoding* -- the output encoding (default: US-ASCII)

  *xml_declaration* -- bool indicating if an XML declaration should be
                       added to the output. If None, an XML declaration
                       is added if encoding IS NOT either of:
                       US-ASCII, UTF-8, or Unicode

  *default_namespace* -- sets the default XML namespace (for "xmlns")

  *method* -- either "xml" (default), "html, "text", or "c14n"

  *short_empty_elements* -- controls the formatting of elements
                            that contain no content. If True (default)
                            they are emitted as a single self-closed
                            tag, otherwise they are emitted as a pair
                            of start/end tags

NzElementTree not initialized�xmlzunknown method %r�c14n�utf-8�us-ascii�unicodez<?xml version='1.0' encoding='z'?>
r0�r�)r�r�)r�r�
_serializerf�_get_writer�lower�_serialize_text�_namespaces)r"�file_or_filename�encoding�xml_declaration�default_namespace�methodr��write�declared_encoding�qnamesrl�	serializes&&&&&&$     rr�ElementTree.write�s���:�:�:���9�:�:���F�
�:�
%��0�6�9�:�:�����"��%��
�)�
4�
4�8R�����O�$�,��^�^�%��2�&�,�,�.�6K�K��%�(�)������z�z�2�%0����=N�%O�"��&�v�.�	��%���V�/C�E�5�
4�
4�
4�s�)D�;BD�D(	c�(�VPVRR7#)r�)r)r)r"r�s&&r�
write_c14n�ElementTree.write_c14n�s���z�z�$�v�z�.�.rr�r�r6)NNNN)r
rrrrr$r�r�r�r�rirortrwrrrr�r�s@rrrsT����	���
� �D
$�1�,>�,4�,5�,5E�
$(�5E�n/�/rc	#�"�VPpVP4R8XdT\VRR4;'gR3x�R#\P!4;_uu_4p\V\P4'dTpM�\V\P4'd3\P!V4pVPVP4MF\P!4pRVnW$nVPVn
VPVn\P !VVRRR7pVPVP4VPV3x�RRR4R# \dL\i;i +'giR#;i \daTP4R8XdRp\#TRTRR	7;_uu_4pTPT3x�RRR4R# +'giR#;ii;i5i)
r�r�Nr�c��R#�Trrrr�<lambda>�_get_writer.<locals>.<lambda>
s��Dr�xmlcharrefreplace�
)r��errors�newline�w)r�r)rr��getattr�
contextlib�	ExitStackr�io�BufferedIOBase�	RawIOBase�BufferedWriter�callback�detach�writable�seekable�tell�AttributeError�
TextIOWrapperr�)r�r�r�stackr�s&&   rr�r��s����-+� �&�&���>�>��y�(���!1�:�t�D�O�O��O�O��%�%�'�'�5��.��0A�0A�B�B�+�D�� 0�"�,�,�?�?��,�,�-=�>�D��N�N�4�;�;�/��,�,�.�D�$0�D�M�!&�J��)9�(A�(A��
�$4�$9�$9��	��'�'��19�/B�04�6�����t�{�{�+��j�j�(�*�*�9(�'��&*�����'(�'�'���'��>�>��y�(��H�
�"�C�(�,�.�.�15��*�*�h�&�&�.�.�.�.��	'�s��G=�F�)G=�%G=�BE;�9"E*�AE;� 
G=�*E8�5E;�7E8�8E;�;F	�	G=�9G:�G$�G:�!G=�$G6�/G:�3G=�6G:�:G=c�:aaa�RR/o/oS'dRSS&VVV3RlpVP4EFepVPp\V\4'd%VPS9dV!VP4MI\V\
4'dVS9d	V!V4M#Ve V\JdV\Jd\V4VP4FswrE\V\4'd
VPpVS9d	V!V4\V\4'gKNVPS9gKaV!VP4Ku	VPp\V\4'gEK?VPS9gEKSV!VP4EKh	SS3#)N�c�<�VR,R8Xd�VR,PR^4wrSPV4pVf8\PV4pVfR\S4,pVR8wdVSV&V'dV:RV:2SV&R#VSV&R#S'd\	R4hVSV&R# \
d\
T4R#i;i)	r�r��r�NNr�Nzns%dr��:z<cannot use non-qualified names with default_namespace option)�rsplitr}�_namespace_mapr7rfr�_raise_serialization_error)�qname�urir�prefixrrlrs&   ���r�	add_qname�_namespaces.<locals>.add_qname*s����	.��R�y�C�� ��9�+�+�C��3���#����,���>�+�/�/��4�F��~�!'�#�j�/�!9�����*0�
�3���/5�s�$;�F�5�M�$'�F�5�M�$�$�3���!&��u�
���	.�&�u�-�	.�s/�
B/�A.B/�B/�B/�B/�B/�/C	�C	)
r�rrrr0r�r��PIr*r�)	r2rr.rr~r�r0rlrs	&f     @@rr�r�s7����D�\�F��J��(*�
�$�%�.�8�	�	����h�h���c�5�!�!��x�x�v�%��#�(�(�#��
��S�
!�
!��&� ��#���
�_��G�!3��2�
�&�s�+��*�*�,�J�C��#�u�%�%��h�h���&� ��#���%��'�'�E�J�J�f�,D��%�*�*�%�
'��y�y���d�E�"�"�t�y�y��'>��d�i�i� �'�(�:��rc	��VPpVPpV\JdV!RV,4EM�V\JdV!RV,4EM�W&,pVf4V'dV!\	V44VFp\WVRVR7K	EM�V!RV,4\
VP44p	V	'g	V'd�V'dQ\VP4RR7F0wr�V'd
RV,pV!RV:R	\V
4:R
24K2	V	Frwr�\V\4'd
VPp\V
\4'dW*P,p
M\V
4p
V!RW+,:R	V
:R
24Kt	V'g\V4'g	V'gQV!R4V'dV!\	V44VFp\WVRVR7K	V!R
V,R,4MV!R4VP'dV!\	VP44R#R#)�	<!--%s-->�<?%s?>Nr�r�c��V^,#�r�r��xs&rr
� _serialize_xml.<locals>.<lambda>r���Q�q�Tr�r~r'� xmlns�="�"r�r��</z />)rr0r�r��
_escape_cdata�_serialize_xml�listr��sorted�_escape_attribrrr7r1)rr2rrlr��kwargsrr0rbr��v�ks&&&&&,      rr@r@\s���
�(�(�C��9�9�D�
�g�~�
�k�D� �!�	�%�	%�
�h��o���k���;���m�D�)�*����u���4H�J��
�#��)�������&�E��
�� &�z�'7�'7�'9�+9�!;���� #�a��A���*�1�-���	!;�"�D�A�!�!�U�+�+��F�F��!�!�U�+�+�"�6�6�N��*�1�-���&�)�)�Q�7�8�"��s�4�y�y�(<��c�
���-��-�.��A�"�5�V�T�8L�N���d�S�j�3�&�'��e���y�y�y�
�m�D�I�I�&�'�rc	��VPpVPpV\JdV!R\V4,4EM�V\JdV!R\V4,4EM�W%,pVf2V'dV!\V44VFp\WVR4K	EM�V!RV,4\
VP44pV'g	V'd�V'dQ\VP4RR7F0wr�V
'd
RV
,p
V!RV
:R\V	4:R	24K2	VFrwr�\V
\4'd
V
Pp
\V	\4'dW)P,p	M\V	4p	V!R
W*,:RV	:R	24Kt	V!R4VP4pV'd)VR8XgVR
8Xd
V!V4MV!\V44VFp\WVR4K	V\9dV!RV,R,4VP'dV!\VP44R#R#)r2r3Nr�c��V^,#r5rr6s&rr
�!_serialize_html.<locals>.<lambda>�r9rr:r'r;r<r=r�r��script�styler>)rr0r�r?r��_serialize_htmlrAr�rBrCrr�_escape_attrib_htmlr��
HTML_EMPTYr1)rr2rrlrDrr0rbr�rErF�ltags&&&&,       rrLrL�s���
�(�(�C��9�9�D�
�g�~�
�k�M�$�/�/�0�	�%�	%�
�h��t�,�,�-��k���;���m�D�)�*�����&�$�7��
�#��)�������&�E��
�� &�z�'7�'7�'9�+9�!;���� #�a��A���*�1�-���	!;�"�D�A�!�!�U�+�+��F�F��!�!�U�+�+�"�6�6�N��/��2���&�)�)�Q�7�8�"�
�#�J��9�9�;�D���8�#�t�w���$�K��-��-�.�����&�$�7���:�%��d�S�j�3�&�'��y�y�y�
�m�D�I�I�&�'�rc��VP4FpV!V4K
	VP'dV!VP4R#R#r6)r�r1)rr2�parts&& rr�r��s3���
�
���
�d�� ��y�y�y�
�d�i�i��rr��htmlr0c���\P!RV4'd\R4h\\P44Fwr#W!8Xg	W08XgK\VK	V\V&R#)a\Register a namespace prefix.

The registry is global, and any existing mapping for either the
given prefix or the namespace URI will be removed.

*prefix* is the namespace prefix, *uri* is a namespace uri. Tags and
attributes in this namespace will be serialized with prefix if possible.

ValueError is raised if prefix is reserved or is invalid.

zns\d+$z'Prefix format reserved for internal useN)�re�matchrfrAr)r�)r-r,rFrEs&&  r�register_namespacerV�sX��
�x�x�	�6�"�"��B�C�C��^�)�)�+�,����8�q�{��q�!�-�!�N�3�r�$http://www.w3.org/XML/1998/namespacezhttp://www.w3.org/1999/xhtmlz+http://www.w3.org/1999/02/22-rdf-syntax-ns#�rdfz http://schemas.xmlsoap.org/wsdl/�wsdlz http://www.w3.org/2001/XMLSchema�xsz)http://www.w3.org/2001/XMLSchema-instance�xsiz http://purl.org/dc/elements/1.1/�dcc�P�\RV:R\V4P:R24h)zcannot serialize z (type �))rrar
r�s&rr*r*�s!��
�+/��d��1D�1D�E�
�
rc���RV9dVPRR4pRV9dVPRR4pRV9dVPRR4pV# \\3d\T4R#i;i)�&�&amp;r��&lt;r��&gt;N��replacerr r*r�s&rr?r?�so��)��$�;��<�<��W�-�D��$�;��<�<��V�,�D��$�;��<�<��V�,�D�����~�&�)�"�4�(�)���AA�A/�.A/c��RV9dVPRR4pRV9dVPRR4pRV9dVPRR4pRV9dVPRR4pRV9dVPRR	4pR
V9dVPR
R4pRV9dVPRR
4pV# \\3d\T4R#i;i)r`rar�rbr�rcr=�&quot;�
z&#13;rz&#10;�	z&#09;Nrdr�s&rrCrC
s���)��$�;��<�<��W�-�D��$�;��<�<��V�,�D��$�;��<�<��V�,�D��4�<��<�<��h�/�D��4�<��<�<��g�.�D��4�<��<�<��g�.�D��4�<��<�<��g�.�D�����~�&�)�"�4�(�)�s�B0B3�3C�Cc���RV9dVPRR4pRV9dVPRR4pRV9dVPRR4pV# \\3d\T4R#i;i)r`rar�rcr=rhNrdr�s&rrMrM&sm��	)��$�;��<�<��W�-�D��$�;��<�<��V�,�D��4�<��<�<��h�/�D�����~�&�)�"�4�(�)�rfr�rr�Tc	���VR8Xd\P!4M\P!4p\V4P	WaVVVVR7VP4#)a�Generate string representation of XML element.

All subelements are included.  If encoding is "unicode", a string
is returned. Otherwise a bytestring is returned.

*element* is an Element instance, *encoding* is an optional output
encoding defaulting to US-ASCII, *method* is an optional output which can
be one of "xml" (default), "html", "text" or "c14n", *default_namespace*
sets the default XML namespace (for "xmlns").

Returns an (optionally) encoded string containing the XML data.

r��r�rrr�)r�StringIO�BytesIOrr�getvalue)rr�rr�rr��streams&&&$$$ r�tostringrr5sT�� '�)�3�R�[�[�]�����F������v�/>�1B�&,�4H�	�J�
�?�?��rc�Ba�]tRtRtoRtRtRtRtRtRt	Rt
VtR	#)
�_ListDataStreamiMz7An auxiliary stream accumulating into a list reference.c��WnR#r6��lst)r"rws&&rr$�_ListDataStream.__init__Os���rc��R#rrr(s&rr�_ListDataStream.writableR���rc��R#rrr(s&rr�_ListDataStream.seekableUr{rc�<�VPPV4R#r6)rwrS)r"�bs&&rr�_ListDataStream.writeXs��������rc�,�\VP4#r6)r7rwr(s&rr�_ListDataStream.tell[s���4�8�8�}�rrvN)r
rrrrr$rrrrrr�r�s@rrtrtMs&����A������rrtc	�^�.p\V4p\V4PWqVVVVR7V#)rm)rtrr)rr�rr�rr�rwrqs&&&$$$  r�tostringlistr�^sA��
�C�
�S�
!�F������v�/>�1B�&,�4H�	�J�
�Jrc�,�\V\4'g\V4pVP\PRR7VP4PpV'dVR,R8wd"\PPR4R#R#)aWrite element tree or element structure to sys.stdout.

This function should be used for debugging only.

*elem* is either an ElementTree, or a single Element.  The exact output
format is implementation dependent.  In this version, it's written as an
ordinary XML file.

r�)r�rN���)rrr�sys�stdoutr�r1)r2r1s& r�dumpr�kse���d�K�(�(��4� ���J�J�s�z�z�I�J�.��<�<�>���D��4��8�t�#��
�
�����$rc��aaa�\V\4'dVP4pV^8d\RV24h\	V4'gR#RVS,,.oVVV3RloS!V^4R#)a�Indent an XML document by inserting newlines and indentation space
after elements.

*tree* is the ElementTree or Element to modify.  The (root) element
itself will not be changed, but the tail text of all elements in its
subtree will be adapted.

*space* is the whitespace to insert for each indentation level, two
space characters by default.

*level* is the initial indentation level. Setting this to a higher
value than 0 can be used for indenting subtrees that are more deeply
nested inside of a document.
z,Initial indentation level must be >= 0, got Nrc�<�V^,pSV,pVP'd!VPP4'gW0nVFVp\	V4'd	S!WB4VP
'd#VP
P4'dKPW4nKX	XP
P4'gSV,VnR#R# \d%ST,S,pSPT4L�i;i)r�N)�
IndexErrorrSr0�stripr7r1)r2�level�child_level�child_indentation�child�_indent_children�indentations�spaces&&   ���rr�� indent.<locals>._indent_children�s�����a�i��	3� ,�[� 9��
�y�y�y��	�	��� 1� 1�)�I��E��5�z�z� ��4��:�:�:�U�Z�Z�%5�%5�%7�%7�.�
�	��z�z���!�!�%�e�,�E�J�"���	3� ,�U� 3�e� ;����� 1�2�	3�s�	C�,D
�	D
)rrr�rfr7)�treer�r�r�r�s&f&@@r�indentr�~sg����$��$�$��|�|�~���q�y��G��w�O�P�P��t�9�9���5�5�=�(�)�L�-�,�T�1�rc�<�\4pVPW4V#)z�Parse XML document into element tree.

*source* is a filename or file object containing XML data,
*parser* is an optional parser instance defaulting to XMLParser.

Return an ElementTree instance.

)rr�)r�r�r�s&& rr�r��s���=�D��J�J�v���Krc�&aaaaa	�\WR7o\SR4'g\SR4oRoMRoVVV	3RlpV!S4o!VVV3RlR\PP
4pV!4pR	Vn\P!V4o	V#)
a&Incrementally parse XML document into ElementTree.

This class also reports what's going on to the user based on the
*events* it is initialized with.  The supported events are the strings
"start", "end", "start-ns" and "end-ns" (the "ns" events are used to get
detailed namespace information).  If *events* is omitted, only
"end" events are reported.

*source* is a filename or file object containing XML data, *events* is
a list of events to report back, *parser* is an optional parser instance.

Returns an iterator providing (event, elem) pairs.

)�events�_parserr�r�TFc3�<"�SP4Rjx�L
VPR4pV'gMSPV4KFSP4pSP4Rjx�L
S!4pVeW#nS'dVP4R#R#L�L3 S'dTP4ii;i5i)TNi@)�read_eventsr�r��_close_and_return_root�rootr�)r�r�r��itr��
pullparser�wrs&   ���r�iterator�iterparse.<locals>.iterator�s�����	��%�1�1�3�3�3��{�{�9�-��������%��4�4�6�D�!�-�-�/�/�/���B��~���������4�
0��
������s?�C�B$�B �AB$�.B"�/B$�C� B$�"B$�$B?�?Cc�Z<a�]tRtRtoZPtVVV3RltVV3RltRtVtR#)�$iterparse.<locals>.IterParseIteratori�c�X<�S'dSP4SP4R#r6�r�)r"r��genr�s&���rr��*iterparse.<locals>.IterParseIterator.close�s���������I�I�Krc�<<�S'dSP4R#R#r6r�)r"r�r�s&��r�__del__�,iterparse.<locals>.IterParseIterator.__del__�s��������rrN)	r
rrr�__next__r�r�rr�)r�r�r�r�s@���r�IterParseIteratorr��s�����<�<��	�
	�	rr�N)	rrr��collections�abc�Iteratorr��weakref�ref)
r�r�r�r�r�r�r�r�r�r�s
f&&   @@@@r�	iterparser��s����"�f�=�J��6�6�"�"��f�d�#�������$�6�
�C���K�O�O�4�4��
�	�B��B�G�	���R��B�
�Irc�Pa�]tRtRtoRRR/RlltRtRtRtRtR	t	R
t
VtR#)riNr�c���\P!4VnT;'g\\	4R7VnVfRpVP
P
VPV4R#)�r�N)�end)r��deque�
_events_queuerrr��
_setevents)r"r�r�s&&$rr$�XMLPullParser.__init__sO��
)�.�.�0����A�A�)�;�=�"A����>��F������� 2� 2�F�;rc���VPf\R4hV'dVPPV4R#R# \d'pTPPT4Rp?R#Rp?ii;i)�Feed encoded data to parser.Nz!feed() called after end of stream)r�rfr��SyntaxErrorr�rS)r"r��excs&& rr��XMLPullParser.feeds`���<�<���@�A�A��
/����!�!�$�'����
/��"�"�)�)�#�.�.��
/�s�A�A3�
A.�.A3c�H�VPP4pRVnV#r6)r�r�)r"r�s& rr��$XMLPullParser._close_and_return_roots ���|�|�!�!�#������rc�&�VP4R#)z�Finish feeding data to parser.

Unlike XMLParser, does not return the root element. Use
read_events() to consume elements from XMLPullParser.
N)r�r(s&rr��XMLPullParser.closes��	
�#�#�%rc#�"�VPpV'd/VP4p\V\4'dVhVx�K6R#5i)z�Return an iterator over currently available (event, elem) pairs.

Events are consumed from the internal event queue as they are
retrieved from the iterator.
N)r��popleftr�	Exception)r"r��events&  rr��XMLPullParser.read_events's=����#�#����N�N�$�E��%��+�+������s
�A�0Ac�l�VPf\R4hVPP4R#)Nz"flush() called after end of stream)r�rf�flushr(s&rr��XMLPullParser.flush5s(���<�<���A�B�B������r)r�r�r6)r
rrrr$r�r�r�r�r�rr�r�s@rrrs/����
<�t�
<�/��&���rc�|�V'g\\4R7pVPV4VP4#)aParse XML document from string constant.

This function can be used to embed "XML Literals" in Python code.

*text* is a string containing XML data, *parser* is an
optional parser instance, defaulting to the standard XMLParser.

Returns an Element instance.

r��rrr�r�)r0r�s&&r�XMLr�;s+����+�-�0��
�K�K����<�<�>�rc���V'g\\4R7pVPV4VP4p/pVP	4F"pVPR4pV'gKWCV&K$	W#3#)aParse XML document from string constant for its IDs.

*text* is a string containing XML data, *parser* is an
optional parser instance, defaulting to the standard XMLParser.

Returns an (Element, dict) tuple, in which the
dict maps element id:s to elements.

r�r')rrr�r�r�r})r0r�r��idsr2r's&&    r�XMLIDr�Lsb����+�-�0��
�K�K����<�<�>�D�
�C��	�	���
�X�X�d�^��
�2���G���9�rc��V'g\\4R7pVFpVPV4K	VP4#)z�Parse XML document from sequence of string fragments.

*sequence* is a list of other sequence, *parser* is an optional parser
instance, defaulting to the standard XMLParser.

Returns an Element instance.

r�r�)�sequencer�r0s&& r�fromstringlistr�ds5����+�-�0�������D����<�<�>�rc	�va�]tRtRtoRtRRRRRRRRR/R	lltR
tRtRtR
t	Rt
RtRRltRt
RtVtR#)rivaGeneric element structure builder.

This builder converts a sequence of start, data, and end method
calls to a well-formed element structure.

You can use this class to build an element structure using a custom XML
parser, or a parser for some other XML-like format.

*element_factory* is an optional element factory which is called
to create new Element instances, as necessary.

*comment_factory* is a factory to create comments to be used instead of
the standard factory.  If *insert_comments* is false (the default),
comments will not be inserted into the tree.

*pi_factory* is a factory to create processing instructions to be used
instead of the standard factory.  If *insert_pis* is false (the default),
processing instructions will not be inserted into the tree.
N�comment_factory�
pi_factory�insert_commentsF�
insert_pisc���.Vn.VnRVnRVnRVnVf\
pW nW@nVf\pW0n	WPn
Vf\pWnR#r6)
�_data�_elem�_lastr��_tailr��_comment_factoryr�r��_pi_factoryr�r�_factory)r"�element_factoryr�r�r�r�s&&$$$$rr$�TreeBuilder.__init__�sd����
���
���
���
���
��"�%�O� /��.����.�J�%��$���"�%�O�'�
rc��\VP4^8XgQR4hVPfQR4hVP#)z;Flush builder buffers and return toplevel document Element.zmissing end tagszmissing toplevel element)r7r�r�r(s&rr��TreeBuilder.close�s>���4�:�:��!�#�7�%7�7�#��z�z�%�A�'A�A�%��z�z�rc�p�VP'd�VPe�RPVP4pVP'd1VPPeQR4hWPnM/VPP
eQR4hWPn.VnR#R#)Nr$zinternal error (tail)zinternal error (text))r�r��joinr�r1r0�r"r0s& r�_flush�TreeBuilder._flush�s����:�:�:��z�z�%��w�w�t�z�z�*���:�:�:��:�:�?�?�2�K�4K�K�2�&*�J�J�O��:�:�?�?�2�K�4K�K�2�&*�J�J�O��D�J�rc�<�VPPV4R#)zAdd text to current element.N)r�rS�r"r�s&&rr��TreeBuilder.data�s���
�
���$�rc�,�VP4VPW4;VnpVP'd$VPR,P	V4MVP
fW0nVPP	V4^VnV#)znOpen new element and return it.

*tag* is the element name, *attrs* is a dict containing element
attributes.

r�)r�r�r�r�rSr�r�)r"r�attrsr2s&&& r�start�TreeBuilder.start�sn��	
���
� �M�M�#�5�5��
�T��:�:�:��J�J�r�N�!�!�$�'�
�Z�Z�
��J��
�
���$����
��rc��VP4VPP4VnVPPV8Xg%QRVPP:RV:R24h^VnVP#)z?Close and return current Element.

*tag* is the element name.

zend tag mismatch (expected z, got r^)r�r��popr�rr�r�s&&rr��TreeBuilder.end�sa��	
���
��Z�Z�^�^�%��
��z�z�~�~��$�	(��:�:�>�>�3�(�	(�$���
��z�z�rc�P�VPVPVPV4#)zPCreate a comment using the comment_factory.

*text* is the text of the comment.
)�_handle_singler�r�r�s&&r�comment�TreeBuilder.comment�s*��
�"�"��!�!�4�#7�#7��?�	?rc�P�VPVPVPW4#)z�Create a processing instruction using the pi_factory.

*target* is the target name of the processing instruction.
*text* is the data of the processing instruction, or ''.
)r�r�r�)r"r�r0s&&&r�pi�TreeBuilder.pi�s(���"�"����d�o�o�v�=�	=rc���V!V!pV'dRVP4W@nVP'd#VPR,PV4^VnV#)r�r�)r�r�r�rSr�)r"�factoryr\�argsr2s&&&* rr��TreeBuilder._handle_single�sG����~����K�K�M��J��z�z�z��
�
�2��%�%�d�+��D�J��r)
r�r�r�r�r�r�r�r�r�r�r6)r
rrrrr$r�r�r�r�r�r�r�r�rr�r�s@rrrvs\�����&(�!%�(�26�(�!&�(�38�(�(�
� ��"�?�=��rc�xa�]tRtRtoRtRRRR/RltRtRtR	tR
t	Rt
RtR
tRt
RtRtRtRtVtR#)ri�aMElement structure builder for XML source data based on the expat parser.

*target* is an optional target object which defaults to an instance of the
standard TreeBuilder class, *encoding* is an optional encoding string
which if given, overrides the encoding specified in the XML file:
http://www.iana.org/assignments/character-sets

r�Nr�c��^RIHpTP	TR4pTf\4pT;TnTnT;TnTn	TPTn/TnTPTn\TR4'dTP Tn\TR4'dTP$Tn\TR4'dTP(Tn\TR4'dTP,Tn\TR	4'dTP0Tn\TR
4'dTP4Tn\TR4'dTP8Tn^Tn^TnRTn /Tn!RTPD,Tn#R# \d$^RIpEL� \d
\R4hi;ii;i \HdR#i;i)
���expatNz7No module named expat; use SimpleXMLTreeBuilder insteadr�r�r��start_ns�end_nsr�r�r�zExpat %d.%d.%d)%�xml.parsersr�ImportError�pyexpat�ParserCreaterr�r�r��_target�error�_error�_names�_default�DefaultHandlerExpandr�_start�StartElementHandler�_end�EndElementHandler�	_start_ns�StartNamespaceDeclHandler�_end_ns�EndNamespaceDeclHandlerr��CharacterDataHandlerr��CommentHandlerr��ProcessingInstructionHandler�buffer_text�ordered_attributes�_doctype�entity�version_info�versionr )r"r�r�rr�s&$$  rr$�XMLParser.__init__�s���	�)��#�#�H�c�2���>� �]�F�%+�+���d�l�%+�+���d�l��k�k������&*�m�m��#��6�7�#�#�)-���F�&��6�5�!�!�'+�y�y�F�$��6�:�&�&�/3�~�~�F�,��6�8�$�$�-1�\�\�F�*��6�6�"�"�*0�+�+�F�'��6�9�%�%�$*�N�N�F�!��6�4� � �28�)�)�F�/����$%��!���
����	�+�e�.@�.@�@�D�L��M�	�
�'���
�!�M���
��	��N�	��	�s/�F�?G
�G�%F,�,G�G�
G�Gc�\�VPpVPpVEFpVR8Xd!^VnWTVP3RlpWcnK+VR8XdWTVP
3RlpWcnKKVR8Xd=\VPR4'dWTVP3RlpMWT3RlpWcn
K�VR8Xd=\VPR	4'dWTVP3R
lpMWT3RlpWcnK�VR8XdWTV3R
lpWcn
K�VR8XdWTV3RlpWcnK�\RV,4h	R#)r�c�$�V!W$!W434R#r6r)r�	attrib_inr�rSr�s&&&&&r�handler�%XMLParser._setevents.<locals>.handler3s���E�5��#8�9�:rr�c�$�V!W!V434R#r6r)rr�rSr�s&&&&rr)r*8s���E�3�s�8�,�-rzstart-nsrc�$�V!W$!W434R#r6r)r-r,r�rSrs&&&&&rr)r*?s����x��'<�=�>rc�D�T!Y ;'gRT;'gR334R#)r$Nr)r-r,r�rSs&&&&rr)r*Cs������"�c�i�i�R�'@�A�Brzend-nsr	c�$�V!W!V434R#r6r)r-r�rSr	s&&&&rr)r*Is����v�f�~�6�7rc��V!VR34R#r6r)r-r�rSs&&&rr)r*Ms����t�}�-rr�c�J�V!WPPV434R#r6)r�r�)r0r�rSr"s&&&&rr)r*Qs���E�;�;�#6�#6�t�#<�=�>rr�c�J�V!W$PPW434R#r6)r�r�)�	pi_targetr�r�rSr"s&&&&&rr)r*Us���E�;�;�>�>�)�#B�C�Drzunknown event %rN)r�rSr rrrrrr�rrrrrrrf)r"�events_queue�events_to_reportr�rS�
event_namer)s&&&    rr��XMLParser._setevents's�������$�$��*�J��W�$�,-��)�2<�"&�+�+�;�.5�*��u�$�'1� $�	�	�.�,3�(��z�)��4�;�;�
�3�3�3=�)-���?�4>�C�3:�0��x�'��4�;�;��1�1�.8�'+�|�|�8�/9�.�18�.��y�(�(2��?�(/�%��t�#�3=�!%�E�7>�3� �!3�j�!@�A�A�U+rc�x�\V4pVPVnVPVP3VnVhr6)r�code�lineno�offset�position)r"r��errs&& r�_raiseerror�XMLParser._raiseerror\s0�������:�:����|�|�U�\�\�1����	rc��VPV,pV# \d%TpRT9d
RT,pY PT&T#i;i)r�r�)r�KeyError)r"r~�names&& r�_fixname�XMLParser._fixnamebsS��	$��;�;�s�#�D�����	$��D��d�{��T�z��#�K�K�����	$�s��+A�Ac�b�VPPT;'gRT;'gR4#�r$)r�r�r"r-r,s&&&rr�XMLParser._start_nsms%���{�{�#�#�F�L�L�b�#�)�)��<�<rc�L�VPPT;'gR4#rE)r�r	)r"r-s&&rr�XMLParser._end_nsps���{�{�!�!�&�,�,�B�/�/rc���VPpV!V4p/pV'd;\^\V4^4F pW%^,,WC!W%,4&K"	VPP	W4#)r)rB�ranger7r�r�)r"r�	attr_list�fixnamer �is&&&   rr�XMLParser._startssa���-�-���c�l������1�c�)�n�a�0��09�A�#���w�y�|�,�-�1��{�{� � ��-�-rc�V�VPPVPV44#r6)r�r�rBr�s&&rr�XMLParser._ends���{�{���t�}�}�S�1�2�2rc��VR,pVR8Xd7VPPpT!TPT^R
,4R#VR8XdVR,R8Xd
.VnR#VPEe6VR8Xd
RVnR#VP4pV'gR#VPP!V4\#VP4pV^8�d�VP^,pVR	8Xd%V^8XdVPwr�r�V	'dV	^R
p	M"VR
8XdV^8XdVPwr�p
Rp	MR#\%VPR4'd!VPP'W�V
^R
4M-\%VR4'd\(P*!R\,4RVnR#R#R# \dR#i;i \d�^RIHpTPRYPPTPP3,4p^TnTPPTnTPPTn
Thi;i)r�r`Nrz'undefined entity %s: line %d, column %dr�:N�	Nz	<!DOCTYPEr��PUBLIC�SYSTEM�doctypezaThe doctype() method of XMLParser is ignored.  Define doctype() method on the TreeBuilder target.r�)r�r�r r"r@r
rrr��ErrorLineNumber�ErrorColumnNumberr8r9r:r!r�rSr7rrVr=r>�RuntimeWarning)r"r0r-�data_handlerrr<�nrarA�pubid�systems&&         rr�XMLParser._default�s����b����S�=�
�#�{�{�/�/��
��T�[�[��a���4�5��s�]�t�B�x�;�6��D�M�
�]�]�
&���}� $��
���:�:�<�D����M�M� � ��&��D�M�M�"�A��1�u��}�}�Q�'���8�#��Q��04�
�
�-�D��� %�a������X�%�!�q�&�)-���&�D�� �E���4�;�;�	�2�2��K�K�'�'��V�A�b�\�B��T�9�-�-��M�M�M�&�(�
!%��
�'�'��#"�
��
���

�-��k�k�=��;�;�6�6��K�K�1�1�3�3���
���!�[�[�8�8��
�!�[�[�:�:��
��	�

�s�F+�F=�+F:�9F:�=BIc��VPPVR4R# TPdpTPT4Rp?R#Rp?ii;i)r�FN)r��Parserr=)r"r�rEs&& rr��XMLParser.feed�s@��	 ��K�K���d�E�*���{�{�	 ����Q����	 �s� �A
�A�A
c�8�VPPRR4VPP
pV!4V=V=V=V=# TPdpTPT4Rp?LMRp?ii;i \dMi;iT=T=T=T=R# T=T=T=T=i;i)z;Finish feeding data to parser and return element structure.rTN)	r�r`rr=r�r�r�rr )r"rE�
close_handlers&  rr��XMLParser.close�s���	 ��K�K���c�4�(�		*� �K�K�-�-�M�!�?���T�\���T�\���{�{�	 ����Q����	 ���	��	���
��T�\���T�\����T�\���T�\�s?�A�A3�B�A0�A+�+A0�3B�>B�B�B�
Bc�~�VPP4pVPPR4VPPRR4VPPV4R# TPdpTPT4Rp?LDRp?ii;i TPPT4i;i)FrN)r��GetReparseDeferralEnabled�SetReparseDeferralEnabledr`rr=)r"�was_enabledrEs&  rr��XMLParser.flush�s����k�k�;�;�=��	?��K�K�1�1�%�8��K�K���c�5�)�
�K�K�1�1�+�>���{�{�	 ����Q����	 ��
�K�K�1�1�+�>�s)�7A0�0B�B�B�B�B�B<)	r!rrr�rr"r�r�r$)r
rrrrr$r�r=rBrrrrrr�r�r�rr�r�s@rrr�s]�����+��+��+�Z3B�j�	�=�0�
.�3�4%�l �*�"?�?r�out�	from_filec�8�VfVf\R4hRpVf\P!4;rA\\	VP
3/VBR7pVe#VP
V4VP4MVe
\W%R7VeVP4#R#)aConvert XML to its C14N 2.0 serialised form.

If *out* is provided, it must be a file or file-like object that receives
the serialised canonical XML output (text, not bytes) through its ``.write()``
method.  To write to a file, open it in text mode with encoding "utf-8".
If *out* is not provided, this function returns the output as text string.

Either *xml_data* (an XML string) or *from_file* (a file path or
file-like object) must be provided as input.

The configuration options are the same as for the ``C14NWriterTarget``.
Nz:Either 'xml_data' or 'from_file' must be provided as inputr�)r�)
rfrrnrr	rr�r�r�rp)�xml_datarjrk�options�sior�s&$$,  r�canonicalizerp�s�����I�-��U�V�V�
�C�
�{��K�K�M�!��
�.�s�y�y�D�G�D�
E�F������H������	�	�
�i�'� �_�3�<�<�>�6�$�6rz	^\w+:\w+$c�a�]tRtRtoRtRRRRRRRRR	RR
RRR/Rlt]3R
ltRtRRlt	Rt
RP3RltRt
RtRRltRtRtRtRtVtR#)r	i�a�
Canonicalization writer target for the XMLParser.

Serialises parse events to XML C14N 2.0.

The *write* function is used for writing out the resulting data stream
as text (not bytes).  To write to a file, open it in text mode with encoding
"utf-8" and pass its ``.write`` method.

Configuration options:

- *with_comments*: set to true to include comments
- *strip_text*: set to true to strip whitespace before and after text content
- *rewrite_prefixes*: set to true to replace namespace prefixes by "n{number}"
- *qname_aware_tags*: a set of qname aware tag names in which prefixes
                      should be replaced in text content
- *qname_aware_attrs*: a set of qname aware attribute names in which prefixes
                       should be replaced in text content
- *exclude_attrs*: a set of attribute names that should not be serialised
- *exclude_tags*: a set of tag names that should not be serialised
�
with_commentsF�
strip_text�rewrite_prefixes�qname_aware_tagsN�qname_aware_attrs�
exclude_attrs�exclude_tagsc�h�Wn.VnW nW0nV'd\	V4MRVnV'd\	V4MRVnW@nV'd\	V4VnMRVnV'd\	V4PVn
MRVn
R..Vn.VnV'g7VPP\\P!444VPP.4/VnR.VnRVnRVnRVn^VnR#)NF)rWr�)�_writer��_with_comments�_strip_textr��_exclude_attrs�
_exclude_tags�_rewrite_prefixes�_qname_aware_tags�intersection�_find_qname_aware_attrs�_declared_ns_stack�	_ns_stackrSrAr)r��_prefix_map�_preserve_space�_pending_start�
_root_seen�
_root_done�_ignored_depth)	r"rrrrsrtrurvrwrxs	&&$$$$$$$rr$�C14NWriterTarget.__init__s�������
�+��%��4A�c�-�0�t���2>�S��.�D���!1���%(�)9�%:�D�"�%)�D�"��+.�/@�+A�+N�+N�D�(�+/�D�(�
<�$
�#��������N�N�!�!�$�~�';�';�'=�">�?������b�!���� %�w���"�����������rc#�X"�V!V4FpV'gK
TRjx�L
K	R#L
5ir6r)r"�ns_stack�	_reversedrls&&& r�_iter_namespaces�!C14NWriterTarget._iter_namespaces9s%���#�H�-�J��z�%�%�%�.�%�s�*�*�(�*c��VPR^4wr#VPVP4FwrEWR8XgK
RVRV2u#	\RVRVR24h)r'r�r�zPrefix z of QName "�" is not declared in scope)�splitr�r�rf)r"�
prefixed_namer-rAr,�ps&&    r�_resolve_prefix_name�%C14NWriterTarget._resolve_prefix_name>sf��$�*�*�3��2����+�+�D�N�N�;�F�C��{��C�5��4�&�)�)�<��7�6�(�+�m�_�D^�_�`�`rc�Z�Vf/VR,R8XdVR,PR^4MRV3wr#MTp\4pVPVP4F7wrVWR8XdWd9dV'dVRV2MTW23u#VP	V4K9	VP
'dwW P9dVPV,pM&R\VP42;q`PV&VPR
,PW&34VRV2W23#V'gRV9dW3V3#VPVP4FCwrVWR8XgK
VPR
,PW&34V'dVRV2MTW23u#	V'gW3V3#\RVR	24h)Nr�r�r&r�r$r'r[zNamespace "r�r�)r(r�r�r��addrr�r7rSr�rf)r"r+r,r�
prefixes_seen�ur-s&&&    r�_qname�C14NWriterTarget._qnameEs����;�38��9��3C�u�R�y�'�'��Q�/�"�e��H�C���C���
��.�.�t�/F�/F�G�I�A��x�F�7�,2�&���3�%�(��S�E�E����f�%�H��!�!�!��&�&�&��)�)�#�.��34�S��9I�9I�5J�4K�1L�L��)�)�#�.��#�#�B�'�.�.��}�=��X�Q�s�e�$�c�.�.��r��.��S�=� ��.�.�t�~�~�>�I�A��x��'�'��+�2�2�C�=�A�,2�&���3�%�(��S�E�E�?�
��S�=� ��;�s�e�+E�F�G�Grc�d�VP'gVPPV4R#R#r6)r�r�rSr�s&&rr��C14NWriterTarget.datajs%���"�"�"��J�J���d�#�#rr$c���V!VP4pVPRVP'd*VPR,'gVP4pVPeLVPRuq0nV'd\V4'dTMRpVP!.VOVN5!VeR#V'd1VP'dVP\V44R#R#R#)r/Nr�)
r�r|r�r�r��_looks_like_prefix_namerr�rz�_escape_cdata_c14n)r"�
_join_textr�r�
qname_texts&&   rr��C14NWriterTarget._flushns����$�*�*�%���J�J�q�M�����D�$8�$8��$<�$<��:�:�<�D����*�(,�(;�(;�T�%�D�%�!%�*A�$�*G�*G��T�J��K�K�*��*�z�*��%���D�O�O�O��K�K�*�4�0�1�$�4rc��VP'dR#VP'dVP4VPR,P	W!34R#)Nr�)r�r�r�r�rSrFs&&&rr�C14NWriterTarget.start_ns|s<��������:�:�:��K�K�M����r��!�!�3�-�0rc��VPe>VP'gWP9dV;P^,
unR#VP'dVP4.pVPPV4VPeWP9dWV3VnR#VPWV4R#r6)	r~r�r�r�r�rSr�r�r)r"rr��new_namespacess&&& rr��C14NWriterTarget.start�s������)��#�#�#�s�.@�.@�'@����1�$����:�:�:��K�K�M������&�&�~�6��!�!�-�#�9O�9O�2O�#&�~�">�D������C��/rc��VPe>V'd6VP4UUu/uFwrVWPP9gKWVbK	pppV0Vmp/pVe'VPV4;q�V&VPV	4VPepV'dhVP	V4p
V
'dLV
FDpW+,p\V4'gKVPV4;q�V&VPV	4KF	MRp
MRp
VPp
\VRR7Uu/uFq�V
!V4bK
	ppV'd;VUUu.uFwppV'd
RV,MRV3NK	pppVP4M.pV'dr\VP44FTwrVV
e#WZ9dWh9dW�V,,^,pW�,wpppTPV'dTMTV34KV	VPR4pVPPV'dVR8HMVPR,4VPpV!RW�,^,,4V'd<T!RPVUUu.uFwrVR	VR
\V4R2NK	upp44V!R4Ve&V!\W�V,,^,44R
VnVP"P.4R#uuppiuupiuuppiuuppi)Nc�&�VPR^4#)r�)r�)r[s&rr
�)C14NWriterTarget._start.<locals>.<lambda>�s��!�'�'�#�q�/rr:zxmlns:�xmlnsz+{http://www.w3.org/XML/1998/namespace}space�preserver�r$r�r<r=r�Tr�)r}r�r�r�r�r�r�rB�sortrSr}r�rzr��_escape_attrib_c14nr�r�r�)r"rr�r�r�rFrEr�resolved_namesr+�qattrs�	attr_namer��parse_qnamer[�
parsed_qnamesr,r-rL�
attr_qname�space_behaviourrs&&&&&                 rr�C14NWriterTarget._start�s������*�u�&+�k�k�m�T�m�d�a�q�@S�@S�7S�T�Q�T�m�E�T���������!�15�1J�1J�:�1V�V�E�:�.��J�J�u���'�'�3���1�1�%�8�F��!'�I�!�,�E�.�u�5�5�8<�8Q�8Q�RW�8X�X��u� 5��
�
�5�)�	"(����F��k�k��4:��1�53�4�53�q�K��N�*�53�
�4��$2��#1�K�C��'-��F�"�'�3�?�#1�
��
�N�N���I���u�{�{�}�-����%�!�+�!�:M�%�Q�&7�8��;�A�-:�-=�*�
�I�s�� � ��*��A�!F�G�.� �)�)�$Q�R�����#�#�-<�O�z�)��%�%�b�)�	+�
����
�c�M�&�q�)�)�*���"�'�'�)�T�)�$�!�Q�q�c��$7��$:�#;�1�=�)�T�U�V�
�c�
��!��$�]�*�3M�%N�q�%Q�R�S���������b�!��CU��04��
��8Us#�K2�K2�K8�8K=�K=�4Lc���VP'dV;P^,unR#VP'dVP4VPRVP	V4^,R24VP
P
4\VP
4^8HVnVPP
4VPP
4R#)r�Nr>r�)r�r�r�rzr�r�r�r7r�r�r�r�s&&rr��C14NWriterTarget.end�s����������1�$����:�:�:��K�K�M����b����S�)�!�,�-�Q�/�0���� � �"��d�2�2�3�q�8������#�#�%������rc��VP'gR#VP'dR#VP'dVPR4M4VP'd#VP
'dVP
4VPR\V4R24VP'gVPR4R#R#)Nrz<!--z-->)r{r�r�rzr�r�r�r�r�s&&rr��C14NWriterTarget.comment�s����"�"�"��������?�?�?��K�K���
�_�_�_������K�K�M����d�-�d�3�4�C�8�9������K�K���rc��VP'dR#VP'dVPR4M4VP'd#VP'dVP4TPV'dRVR\
V4R2MRVR24VP'gVPR4R#R#)Nrz<?r�z?>)r�r�rzr�r�r�r�)r"r�r�s&&&rr��C14NWriterTarget.pi�s���������?�?�?��K�K���
�_�_�_������K�K�M����:>�b����,�T�2�3�2�6�b���PR�O�	U������K�K���r)r�r�r}r~r�r�r�r�r�r�r�rr�r�r|r{rzr6)r
rrrrr$�reversedr�r�r�r�r�r�rr�rr�r�r�rr�r�s@rr	r	�s������*# �$�# �16�# �IN�# �"&�# �:>�# � $�# �37�# �J4<�&�
a�#H�J$�!#���2�1�0�"C"�J
��
�
rc��RV9dVPRR4pRV9dVPRR4pRV9dVPRR4pRV9dVPRR4pV# \\3d\T4R#i;i)	r`rar�rbr�rcri�&#xD;Nrdr�s&rr�r�s���)��$�;��<�<��W�-�D��$�;��<�<��V�,�D��$�;��<�<��V�,�D��4�<��<�<��g�.�D�����~�&�)�"�4�(�)�s�A%A(�(B�Bc�z�RV9dVPRR4pRV9dVPRR4pRV9dVPRR4pRV9dVPRR4pRV9dVPRR	4pR
V9dVPR
R4pV# \\3d\T4R#i;i)
r`rar�rbr=rhrjz&#x9;rz&#xA;rir�Nrdr�s&rr�r�s���)��$�;��<�<��W�-�D��$�;��<�<��V�,�D��$�;��<�<��X�.�D��4�<��<�<��g�.�D��4�<��<�<��g�.�D��4�<��<�<��g�.�D�����~�&�)�"�4�(�)�s�BB�B:�9B:)r�)�_set_factories)r�r�rr�
fromstringr�r�rr�r�rr0r�rr�rrr�r�VERSIONr�r�rrrVrpr	r6>�br�hr�col�img�wbr�area�base�link�meta�embed�frame�input�param�trackr��isindex�basefontr�)z  r)@r�__all__r�r�rTr=rr��collections.abcrr�r$r
r�rrrr�r�r�r0rr�contextmanagerr�r�r@rNrLr�r�rVr)r*r?rCrMrrrrtr�r�r�r�r�rr�r�r�r�rrrp�compile�UNICODErUr�r	r�r�r`�_elementtreer�rrrr�<module>r�s?��!�P��(��
�	��	������		��		�#�
b�b�J	$&��$�� ��+"�+"�`b/�b/�N���/+��/+�b;�z0(�d�
�0(�d�
�>�
�O�
�O��
�!�*+�E�"�F�1�5�&��&��/��&����%3��!�
�
)� )�8)��!��59��"&��0�b�'�'��"
�!%�
�9=�
�&*�
��&/�l�<�~7�7�t�"�,�
�
�$v�v�th?�h?�Z7�t�7�t�7�<�*�*�\�2�:�:�>�D�D����D)�&)�.3��K��+��7�1�2���	��	�s�2
F
�
F�F

Youez - 2016 - github.com/yon3zu
LinuXploit