Ë
    >—Öj�\  ã                   óê  — d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	 ddl
mZ ddlZ G d„ d	e«      Z G d
„ d«      Zdeddddfd„Zdd„Zd„ Zd„ Zdd„Z	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z G d„ de«      Z	 	 dd„Zedk(  rmddlZddlZej6                  j8                  Zej:                  j8                  Zej<                  dd \  Z e e«      Zd„ Z!	  eeee!e"¬«      Z#edk(  r
 e!g e#«       yyy# e$$ r Y yw xY w) z:Makes working with XML feel like you are working with JSONé    )Úexpat)ÚXMLGeneratorÚescape)ÚAttributesImpl)ÚStringIO)ÚisgeneratorNc                   ó   — e Zd Zy)ÚParsingInterruptedN)Ú__name__Ú
__module__Ú__qualname__© ó    úF/var/www/photos/backend/venv/lib/python3.12/site-packages/xmltodict.pyr
   r
      s   „ Ør   r
   c                   ón   — e Zd Zdd„ ddddddedd	ddd
fd„Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d„ Zd„ Zd„ Zd„ Zy)Ú_DictSAXHandlerr   c                   ó   — y©NTr   )Úargss    r   ú<lambda>z_DictSAXHandler.<lambda>   s   � r   Tú@ú#textFÚ Nú:ú#commentc                 ó  — g | _         g | _        g | _        d | _        || _        || _        || _        || _        || _        || _	        || _
        || _        |	| _        |
| _        || _        || _         |	«       | _        || _        || _        y ©N)ÚpathÚstackÚdataÚitemÚ
item_depthÚxml_attribsÚitem_callbackÚattr_prefixÚ	cdata_keyÚforce_cdataÚcdata_separatorÚpostprocessorÚdict_constructorÚstrip_whitespaceÚnamespace_separatorÚ
namespacesÚnamespace_declarationsÚ
force_listÚcomment_key)Úselfr"   r$   r#   r%   r&   r'   r(   r)   r*   r+   r,   r-   r/   r0   s                  r   Ú__init__z_DictSAXHandler.__init__   s—   € ð" ˆŒ	ØˆŒ
ØˆŒ	ØˆŒ	Ø$ˆŒØ&ˆÔØ*ˆÔØ&ˆÔØ"ˆŒØ&ˆÔØ.ˆÔØ*ˆÔØ 0ˆÔØ 0ˆÔØ#6ˆÔ Ø$ˆŒÙ&6Ó&8ˆÔ#Ø$ˆŒØ&ˆÕr   c                 ó   — | j                   €|S |j                  | j                  «      }|dk(  r|S |d | ||dz   d  }}	 | j                   |   }|s|S | j                  j	                  ||f«      S # t        $ r |}Y Œ.w xY w)Néÿÿÿÿé   )r-   Úrfindr,   ÚKeyErrorÚjoin)r1   Ú	full_nameÚiÚ	namespaceÚnameÚshort_namespaces         r   Ú_build_namez_DictSAXHandler._build_name5   s›   € Ø�?‰?Ð"ØÐØ�O‰O˜D×4Ñ4Ó5ˆØ�Š7ØÐØ# B Q˜-¨°1°Q±3°4¨�4ˆ	ð	(Ø"Ÿo™o¨iÑ8ˆOñ ØˆKà×+Ñ+×0Ñ0°/À4Ð1HÓIÐIøô ò 	(Ø'ŠOð	(ús   ¿A/ Á/A=Á<A=c           	      ót   — t        |t        «      r|S | j                  t        |dd d…   |dd d…   «      «      S )Nr   é   r5   )Ú
isinstanceÚdictr*   Úzip)r1   Úattrss     r   Ú_attrs_to_dictz_DictSAXHandler._attrs_to_dictE   s=   € Ü�eœTÔ"ØˆLØ×$Ñ$¤S¨¨q¨t°!¨t©°e¸A¸D¸q¸D±kÓ%BÓCÐCr   c                 ó*   — || j                   |xs d<   y )Nr   )r.   )r1   ÚprefixÚuris      r   ÚstartNamespaceDeclz"_DictSAXHandler.startNamespaceDeclJ   s   € Ø47ˆ×#Ñ# F¢L¨bÒ1r   c                 ó  — | j                  |«      }| j                  |«      }| j                  r6|s| j                  «       }| j                  |d<   | j                  «       | _        | j                  j                  ||xs d f«       t        | j                  «      | j                  k\  rÞ| j                  j                  | j                  | j                  f«       | j                  rŒg }|j                  «       D ]e  \  }}| j                  | j                  |«      z   }| j                  r| j                  | j                  ||«      }n||f}|sŒU|j                  |«       Œg | j                  |«      }nd }|xs d | _	        g | _
        y y )NÚxmlns)r>   rE   r.   r*   r   ÚappendÚlenr"   r   r!   r    r#   Úitemsr%   r)   )r1   r9   rD   r<   Úattr_entriesÚkeyÚvalueÚentrys           r   ÚstartElementz_DictSAXHandler.startElementM   sU  € Ø×Ñ 	Ó*ˆØ×#Ñ# EÓ*ˆØ×&Ò&ÙØ×-Ñ-Ó/�Ø!×8Ñ8ˆE�'‰NØ*.×*?Ñ*?Ó*AˆDÔ'Ø�	‰	×Ñ˜$ ¢¨Ð.Ô/Üˆt�y‰y‹>˜TŸ_™_Ò,Ø�J‰J×Ñ˜tŸy™y¨$¯)©)Ð4Ô5Ø×ÒØ!�Ø"'§+¡+£-ò 3‘J�C˜Ø×*Ñ*¨4×+;Ñ+;¸CÓ+@Ñ@�CØ×)Ò)Ø $× 2Ñ 2°4·9±9¸cÀ5Ó I™à!$ e ˜ÚØ$×+Ñ+¨EÕ2ð3ð ×-Ñ-¨lÓ;‘à�Øš ˆDŒIØˆD�Ið! -r   c                 ó‚  — | j                  |«      }t        | j                  «      | j                  k(  rÂ| j                  }|€3| j
                  sd n$| j                  j                  | j
                  «      }| j                  | j                  |«      }|st        ‚| j                  r(| j                  j                  «       \  | _        | _        nd | _        g | _        | j                  j                  «        y | j                  �r| j
                  sd n$| j                  j                  | j
                  «      }| j                  }| j                  j                  «       \  | _        | _        | j                  r|r|j                  «       xs d }|r$| j                  ||«      r|€| j                  «       }|�B|r| j!                  || j"                  |«       | j!                  | j                  ||«      | _        n1| j!                  | j                  ||«      | _        nd | _        g | _        | j                  j                  «        y r   )r>   rM   r   r"   r!   r    r(   r8   r$   r
   r   Úpopr+   ÚstripÚ_should_force_cdatar*   Ú	push_datar&   )r1   r9   r<   r!   Úshould_continuer    s         r   Ú
endElementz_DictSAXHandler.endElementh   s³  € Ø×Ñ 	Ó*ˆô ˆt�y‰y‹>˜TŸ_™_Ò,Ø—9‘9ˆDØˆ|Ø$(§I¢I™Ø!×1Ñ1×6Ñ6°t·y±yÓAð ð #×0Ñ0°·±¸DÓAˆOÙ"Ü(Ð(ð �zŠzØ'+§z¡z§~¡~Ó'7Ñ$�”	˜4�9à �”	Ø�”	Ø�I‰I�M‰MŒOØØ�:‹:Ø $§	¢	‘DØ×-Ñ-×2Ñ2°4·9±9Ó=ð à—9‘9ˆDØ#'§:¡:§>¡>Ó#3Ñ ˆDŒI�t”yØ×$Ò$©Ø—z‘z“|Ò+ t�Ù˜×0Ñ0°°tÔ<ÀÀØ×,Ñ,Ó.�ØÐÙØ—N‘N 4¨¯©¸Ô>Ø ŸN™N¨4¯9©9°d¸DÓA�•	à ŸN™N¨4¯9©9°d¸DÓA�•	àˆDŒIØˆDŒIØ�	‰	�‰�r   c                 ód   — | j                   s	|g| _         y | j                   j                  |«       y r   )r    rL   ©r1   r    s     r   Ú
charactersz_DictSAXHandler.characters“   s$   € Ø�yŠyØ˜ˆD�Ià�I‰I×Ñ˜TÕ"r   c                 ó”   — | j                   r|j                  «       }| j                  | j                  | j                  |«      | _        y r   )r+   rV   rX   r!   r0   r\   s     r   Úcommentsz_DictSAXHandler.comments™   s4   € Ø× Ò Ø—:‘:“<ˆDØ—N‘N 4§9¡9¨d×.>Ñ.>ÀÓEˆ�	r   c                 óP  — | j                   �&| j                  | j                  ||«      }|€|S |\  }}|€| j                  «       }	 ||   }t        |t        «      r|j                  |«       |S ||g||<   	 |S # t        $ r$ | j                  ||«      r	|g||<   Y |S |||<   Y |S w xY wr   )r)   r   r*   rA   ÚlistrL   r7   Ú_should_force_list)r1   r!   rP   r    ÚresultrQ   s         r   rX   z_DictSAXHandler.push_dataž   sÐ   € Ø×ÑÐ)Ø×'Ñ'¨¯	©	°3¸Ó=ˆFØˆ~Ø�Ø‰IˆC�Øˆ<Ø×(Ñ(Ó*ˆDð
	!Ø˜‘IˆEÜ˜%¤Ô&Ø—‘˜TÔ"ð ˆð # D˜M��S’	ð ˆøô ò 	!Ø×&Ñ& s¨DÔ1Ø!˜F��S’	ð ˆð !��S’	Øˆð	!ús   Á&A8 Á.A8 Á8!B%ÂB%Â$B%c                 óä   — | j                   syt        | j                   t        «      r| j                   S 	 || j                   v S # t        $ r# | j                  | j                  d d ||«      cY S w xY w©NFr4   )r/   rA   ÚboolÚ	TypeErrorr   ©r1   rP   rQ   s      r   rb   z"_DictSAXHandler._should_force_list³   sd   € Ø�ŠØÜ�d—o‘o¤tÔ,Ø—?‘?Ð"ð	?Ø˜$Ÿ/™/Ð)Ð)øÜò 	?Ø—?‘? 4§9¡9¨S¨b >°3¸Ó>Ò>ð	?úó   µA Á)A/Á.A/c                 óä   — | j                   syt        | j                   t        «      r| j                   S 	 || j                   v S # t        $ r# | j                  | j                  d d ||«      cY S w xY wre   )r'   rA   rf   rg   r   rh   s      r   rW   z#_DictSAXHandler._should_force_cdata½   sq   € Ø×ÒØÜ�d×&Ñ&¬Ô-Ø×#Ñ#Ð#ð	@Ø˜$×*Ñ*Ð*Ð*øÜò 	@Ø×#Ñ# D§I¡I¨c¨r N°C¸Ó?Ò?ð	@úri   )r   r   r   rB   r2   r>   rE   rI   rS   rZ   r]   r_   rX   rb   rW   r   r   r   r   r      sk   „ ð Ù(ØØØØØØØØØØØØó#'òJJò Dò
8òò6)òV#òFò
ò*?ó@r   r   Fr   Tc                 óŒ  — t        d	d|i|¤Ž}t        | t        «      r|xs d}| j                  |«      } |sd} |j                  ||«      }	d|	_        |j                  |	_        |j                  |	_	        |j                  |	_        |j                  |	_        |r|j                  |	_        d|	_        |r
d„ }
|
|	_        t%        | d«      r|	j'                  | «       |j,                  S t)        | «      r7| D ]  }|	j+                  |d«       Œ |	j+                  dd«       |j,                  S |	j+                  | d«       |j,                  S )
a  Parse the given XML input and convert it into a dictionary.

    `xml_input` can either be a `string`, a file-like object, or a generator of strings.

    If `xml_attribs` is `True`, element attributes are put in the dictionary
    among regular child elements, using `@` as a prefix to avoid collisions. If
    set to `False`, they are just ignored.

    Simple example::

        >>> import xmltodict
        >>> doc = xmltodict.parse("""
        ... <a prop="x">
        ...   <b>1</b>
        ...   <b>2</b>
        ... </a>
        ... """)
        >>> doc['a']['@prop']
        'x'
        >>> doc['a']['b']
        ['1', '2']

    If `item_depth` is `0`, the function returns a dictionary for the root
    element (default behavior). Otherwise, it calls `item_callback` every time
    an item at the specified depth is found and returns `None` in the end
    (streaming mode).

    The callback function receives two parameters: the `path` from the document
    root to the item (name-attribs pairs), and the `item` (dict). If the
    callback's return value is false-ish, parsing will be stopped with the
    :class:`ParsingInterrupted` exception.

    Streaming example::

        >>> def handle(path, item):
        ...     print('path:%s item:%s' % (path, item))
        ...     return True
        ...
        >>> xmltodict.parse("""
        ... <a prop="x">
        ...   <b>1</b>
        ...   <b>2</b>
        ... </a>""", item_depth=2, item_callback=handle)
        path:[('a', {'prop': 'x'}), ('b', None)] item:1
        path:[('a', {'prop': 'x'}), ('b', None)] item:2

    The optional argument `postprocessor` is a function that takes `path`,
    `key` and `value` as positional arguments and returns a new `(key, value)`
    pair where both `key` and `value` may have changed. Usage example::

        >>> def postprocessor(path, key, value):
        ...     try:
        ...         return key + ':int', int(value)
        ...     except (ValueError, TypeError):
        ...         return key, value
        >>> xmltodict.parse('<a><b>1</b><b>2</b><b>x</b></a>',
        ...                 postprocessor=postprocessor)
        {'a': {'b:int': [1, 2], 'b': 'x'}}

    You can pass an alternate version of `expat` (such as `defusedexpat`) by
    using the `expat` parameter. E.g:

        >>> import defusedexpat
        >>> xmltodict.parse('<a>hello</a>', expat=defusedexpat.pyexpat)
        {'a': 'hello'}

    You can use the force_list argument to force lists to be created even
    when there is only a single child of a given level of hierarchy. The
    force_list argument is a tuple of keys. If the key for a given level
    of hierarchy is in the force_list argument, that level of hierarchy
    will have a list as a child (even if there is only one sub-element).
    The index_keys operation takes precedence over this. This is applied
    after any user-supplied postprocessor has already run.

        For example, given this input:
        <servers>
          <server>
            <name>host1</name>
            <os>Linux</os>
            <interfaces>
              <interface>
                <name>em0</name>
                <ip_address>10.0.0.1</ip_address>
              </interface>
            </interfaces>
          </server>
        </servers>

        If called with force_list=('interface',), it will produce
        this dictionary:
        {'servers':
          {'server':
            {'name': 'host1',
             'os': 'Linux'},
             'interfaces':
              {'interface':
                [ {'name': 'em0', 'ip_address': '10.0.0.1' } ] } } }

        `force_list` can also be a callable that receives `path`, `key` and
        `value`. This is helpful in cases where the logic that decides whether
        a list should be forced is more complex.


        If `process_comments` is `True`, comments will be added using `comment_key`
        (default=`'#comment'`) to the tag that contains the comment.

            For example, given this input:
            <a>
              <b>
                <!-- b comment -->
                <c>
                    <!-- c comment -->
                    1
                </c>
                <d>2</d>
              </b>
            </a>

            If called with `process_comments=True`, it will produce
            this dictionary:
            'a': {
                'b': {
                    '#comment': 'b comment',
                    'c': {

                        '#comment': 'c comment',
                        '#text': '1',
                    },
                    'd': '2',
                },
            }
        Comment text is subject to the `strip_whitespace` flag: when it is left
        at the default `True`, comments will have leading and trailing
        whitespace removed. Disable `strip_whitespace` to keep comment
        indentation or padding intact.
    r,   úutf-8NTc                  ó   — t        d«      ‚)Nzentities are disabled)Ú
ValueError)Ú_argsÚ_kwargss     r   Ú_forbid_entitieszparse.<locals>._forbid_entitiesf  s   € ÜÐ4Ó5Ð5r   ÚreadFr   r   )r   rA   ÚstrÚencodeÚParserCreateÚordered_attributesrI   ÚStartNamespaceDeclHandlerrS   ÚStartElementHandlerrZ   ÚEndElementHandlerr]   ÚCharacterDataHandlerr_   ÚCommentHandlerÚbuffer_textÚEntityDeclHandlerÚhasattrÚ	ParseFiler   ÚParser!   )Ú	xml_inputÚencodingr   Úprocess_namespacesr,   Údisable_entitiesÚprocess_commentsÚkwargsÚhandlerÚparserrq   Úchunks               r   ÚparserŠ   È   sP  € ôT ñ (Ð2Eð (Ø &ñ(€Gä�)œSÔ!ØÒ&˜wˆØ×$Ñ$ XÓ.ˆ	ÙØ"ÐØˆU×ÑØØó€Fð !%€FÔØ'.×'AÑ'A€FÔ$Ø!(×!5Ñ!5€FÔØ&×1Ñ1€FÔØ")×"4Ñ"4€FÔÙØ '× 0Ñ 0ˆÔØ€FÔÙò	6ð $4ˆÔ Üˆy˜&Ô!Ø×Ñ˜Ô#ð �<‰<Ðô 
�YÔ	Øò 	'ˆEØ�L‰L˜ Õ&ð	'à�‰�S˜$Ôð �<‰<Ðð 	�‰�Y Ô%Ø�<‰<Ðr   c                 óÖ   — t        | t        «      r| S t        | t        «      r| rdS dS t        | t        t        t
        f«      rt        | «      j                  ||¬«      S t        | «      S )z‹Convert a value to its string representation for XML output.

    Handles boolean values consistently by converting them to lowercase.
    ÚtrueÚfalse)Úerrors)rA   rs   rf   ÚbytesÚ	bytearrayÚ
memoryviewÚdecode)rQ   r‚   Úbytes_errorss      r   Ú_convert_value_to_stringr”   u  s_   € ô
 �%œÔØˆÜ�%œÔÙˆvÐ+ GÐ+Ü�%œ%¤¬JÐ7Ô8Ü�U‹|×"Ñ" 8°LÐ"ÓAÐAÜˆu‹:Ðr   c                 óŒ  — t        | t        «      st        |› d�«      ‚| j                  d«      s| j                  d«      rt        d|› d�«      ‚d| v sd| v rt        d|› d�«      ‚d	| v rt        d|› d
�«      ‚d| v sd| v rt        d|› d�«      ‚d| v rt        d|› d�«      ‚t	        d„ | D «       «      rt        d|› d�«      ‚y)z°Validate an element/attribute name for XML safety.

    Raises ValueError with a specific reason when invalid.

    kind: 'element' or 'attribute' (used in error messages)
    z name must be a stringú?ú!zInvalid z# name: cannot start with "?" or "!"ú<ú>z name: "<" or ">" not allowedú/z name: "/" not allowedú"ú'z name: quotes not allowedú=z name: "=" not allowedc              3   ó<   K  — | ]  }|j                  «       –— Œ y ­wr   )Úisspace)Ú.0Úchs     r   ú	<genexpr>z!_validate_name.<locals>.<genexpr>–  s   è ø€ Ò
(˜Bˆ2�:‰:�<Ñ
(ùs   ‚z name: whitespace not allowedN)rA   rs   rn   Ú
startswithÚany)rQ   Úkinds     r   Ú_validate_namer¦   ƒ  sõ   € ô �eœSÔ!Ü˜D˜6Ð!7Ð8Ó9Ð9Ø×Ñ˜Ô × 0Ñ 0°Ô 5Ü˜8 D 6Ð)LÐMÓNÐNØ
ˆe�|�s˜e‘|Ü˜8 D 6Ð)FÐGÓHÐHØ
ˆe�|Ü˜8 D 6Ð)?Ð@ÓAÐAØ
ˆe�|�s˜e‘|Ü˜8 D 6Ð)BÐCÓDÐDØ
ˆe�|Ü˜8 D 6Ð)?Ð@ÓAÐAÜ
Ñ
( %Ô
(Ô(Ü˜8 D 6Ð)FÐGÓHÐHð )r   c                 ó  — t        | t        «      r	 | j                  d«      } t        | t
        «      st	        d«      ‚d| v rt	        d«      ‚| j                  d«      rt	        d«      ‚| S # t        $ r}t	        d«      |‚d }~ww xY w)Nrl   z Comment text must be valid UTF-8zComment text must be a stringz--z Comment text cannot contain '--'ú-z Comment text cannot end with '-')rA   r�   r’   ÚUnicodeDecodeErrorrn   rs   Úendswith)rQ   Úexcs     r   Ú_validate_commentr¬   š  sŠ   € Ü�%œÔð	JØ—L‘L Ó)ˆEô �eœSÔ!ÜÐ8Ó9Ð9Øˆu�}ÜÐ;Ó<Ð<Ø‡~�~�cÔÜÐ;Ó<Ð<Ø€Løô "ò 	JÜÐ?Ó@ÀcÐIûð	Jús   ’A+ Á+	BÁ4B Â Bc                 ó  — t        | t        «      s| S |s| S 	 | j                  |d«      \  }} |j                  |j	                  |«      «      }|r)dj                  |j                  |«      r|nd||| «      } | S | } | S # t        $ r Y | S w xY w)Nr5   z{}{}{}{}r   )rA   rs   ÚrsplitÚgetrV   Úformatr£   rn   )r<   r-   Úns_sepr%   ÚnsÚns_ress         r   Ú_process_namespacer´   ©  s¬   € Ü�dœCÔ ØˆÙØˆð6Ø—;‘;˜v qÓ)‰ˆˆDð —‘ §¡¨Ó 5Ó6ˆñ &,ð × Ñ ØŸ=™=¨Ô5‰K¸2Ø�F˜Dó"ˆð €Kð 26ð 	ð €Køô ò Øð €Kðús   ˜A< Á<	B	ÂB	c                 óB  — t        | t        «      r†| |k(  r�t        |t        «      r|n|g}t        |	t        «      rd|	z  }	|D ]Q  }|€Œt	        |||¬«      }|sŒ|r|j                  ||	z  «       |j                  |«       |sŒA|j                  |«       ŒS y t        | ||
|«      } |� || |«      }|€y |\  } }t        | d«       t        |d«      r%t        |t        t        t        t        t        f«      r|g}t        |«      D �]™  \  }}|r|dk(  r|dkD  rt        d«      ‚|€i }nRt        |t        t        f«      s<|r,t        |d«      r t        |t        t        t        f«      s||i}nt	        |||¬«      }t        |t        «      r||i}d }i }g }|j!                  «       D �]  \  }}||k(  r|€d }nt	        |||¬«      }Œ t        |t        «      rÉ|j#                  |«      r¸t        |||
|«      }|dk(  rbt        |t        «      rR|j!                  «       D ]>  \  }}t        |d«       d	j%                  |rd
|› �nd«      }|€dnt	        |||¬«      ||<   Œ@ Œ¶|€d}nt        |t        «      st	        |||¬«      }|t'        |«      d  }t        |d«       |||<   Œùt        |t        «      r|s�Œ|j)                  ||f«       �Œ" t        |	t        «      rd|	z  }	|r|j                  ||	z  «       |j+                  | t-        |«      «       |r|r|j                  |«       |D ]#  \  }}t/        ||||||dz   ||||	||
||||¬«       Œ% |�|j1                  |«       |r|r|j                  ||	z  «       |j3                  | «       |s�Œ…|s�Œ‰|j                  |«       �Œœ y )Nú )r‚   r“   ÚelementÚ__iter__r   zdocument with multiple rootsz@xmlnsÚ	attributezxmlns{}r   r   r5   )r-   r,   Úexpand_iterr‚   r“   r0   )rA   rs   ra   Úintr”   ÚignorableWhitespaceÚcommentr´   r¦   r~   r�   r�   r‘   rB   Ú	enumeratern   rN   r£   r°   rM   rL   rS   r   Ú_emitr]   rZ   ) rP   rQ   Úcontent_handlerr%   r&   ÚdepthÚpreprocessorÚprettyÚnewlÚindentr,   r-   Úfull_documentrº   r‚   r“   r0   Úcomments_listÚcomment_textrc   ÚindexÚvÚcdatarD   ÚchildrenÚikÚivÚkÚattrÚ	attr_nameÚ	child_keyÚchild_values                                    r   r¿   r¿   º  sÖ  € ô �#”sÔ  {Ò 2Ü!+¨E´4Ô!8™¸u¸gˆÜ�fœcÔ"Ø˜6‘\ˆFØ)ò 	:ˆLØÐ#ØÜ3Ø x¸lôˆLñ  ØÙØ×3Ñ3°E¸F±NÔCØ×#Ñ# LÔ1ÚØ×3Ñ3°DÕ9ð	:ð 	ä
˜S *Ð.AÀ;Ó
O€CØÐÙ˜c 5Ó)ˆØˆ>ØØ‰
ˆˆUä�3˜	Ô"Ü�5˜*Ô%¬°E¼CÄÌ	ÔS]Ô_cÐ;dÔ)eØ�ˆÜ˜eÓ$ó @6‰ˆˆqÙ˜U ašZ¨E°AªIÜÐ;Ó<Ð<Øˆ9Ø‰AÜ˜A¤¤c˜{Ô+Ùœw q¨*Ô5¼jÈÌUÔT]Ô_iÐLjÔ>kØ  !Ð$‘ä,¨Q¸ÐP\Ô]�Ü�aœÔØ˜A�ˆAØˆØˆØˆØ—g‘g“ió 	&‰FˆB�Ø�YŠØ�:Ø ‘Eä4°RÀ(ÐYeÔf�EØÜ˜"œcÔ" r§}¡}°[Ô'AÜ'¨¨JÐ8KØ(3ó5�à˜’>¤j°´TÔ&:Ø "§¡£
ò ™˜˜1Ü& q¨+Ô6Ø(×/Ñ/¹1°!°A°3±À"ÓE˜Ø,-¨I¡bÔ;SØ¨¸|ô<˜˜dšðð Ø�:Ø‘BÜ# B¬Ô,Ü1°"¸xÐVbÔc�BØœs ;Ó/Ð1Ð2�	Ü˜y¨+Ô6Ø#%��iÑ ØÜ˜"œdÔ#©BÙØ�O‰O˜R ˜HÖ%ð9	&ô: �fœcÔ"Ø˜6‘\ˆFÙØ×/Ñ/°¸±Ô?Ø×$Ñ$ S¬.¸Ó*?Ô@Ù‘hØ×/Ñ/°Ô5Ø&.ò 	FÑ"ˆI�{Ü�)˜[¨/Ø˜y¨%°©'°<Ø˜$ °:Ø&9Ø)°HØ+¸öFð	Fð ÐØ×&Ñ& uÔ-Ù‘hØ×/Ñ/°¸±Ô?Ø×"Ñ" 3Ô'Û“eØ×/Ñ/°Ö5ñA@6r   c                   ó   — e Zd Zd„ Zy)Ú_XMLGeneratorc                 óV   — t        |«      }| j                  dt        |«      › d�«       y )Nz<!--z-->)r¬   Ú_writer   )r1   Útexts     r   r½   z_XMLGenerator.comment*  s%   € Ü  Ó&ˆØ�‰�dœ6 $›<˜.¨Ð,Õ-r   N)r   r   r   r½   r   r   r   rÕ   rÕ   )  s   „ ó.r   rÕ   c           	      óP  — |j                  dd«      }	 t        j                  |«       d}	|€t        «       }d}	|rt        ||d«      }
nt        ||«      }
|r|
j                  «        d}| j                  «       D ]4  \  }}||k7  r|r|rt	        d«      ‚t        |||
f||||dœ|¤Ž ||k7  sŒ3d}Œ6 |r|st	        d«      ‚|r|
j                  «        |	r$|j                  «       }	 |j                  |«      }|S y# t        $ r}t	        d|› �«      |‚d}~ww xY w# t        $ r Y |S w xY w)	a±  Emit an XML document for the given `input_dict` (reverse of `parse`).

    The resulting XML document is returned as a string, but if `output` (a
    file-like object) is specified, it is written there instead.

    Dictionary keys prefixed with `attr_prefix` (default=`'@'`) are interpreted
    as XML node attributes, whereas keys equal to `cdata_key`
    (default=`'#text'`) are treated as character data.

    Empty lists are omitted entirely: ``{"a": []}`` produces no ``<a>`` element.
    Provide a placeholder entry (for example ``{"a": [""]}``) when an explicit
    empty container element must be emitted.

    The `pretty` parameter (default=`False`) enables pretty-printing. In this
    mode, lines are terminated with `'
'` and indented with `'	'`, but this
    can be customized with the `newl` and `indent` parameters.
    The `bytes_errors` parameter controls decoding errors for byte values and
    defaults to `'replace'`.

    r“   ÚreplacezInvalid bytes_errors handler: NFTz$Document must have exactly one root.)rÆ   r‚   r“   r0   )rU   ÚcodecsÚlookup_errorÚLookupErrorrn   r   rÕ   ÚstartDocumentrN   r¿   ÚendDocumentÚgetvaluer’   ÚAttributeError)Ú
input_dictÚoutputr‚   rÆ   Úshort_empty_elementsr0   r†   r“   r«   Úmust_returnrÀ   Ú	seen_rootrP   rQ   s                 r   Úunparserç   /  su  € ð. —:‘:˜n¨iÓ8€LðSÜ×Ñ˜LÔ)ð €KØ€~Ü“ˆØˆÙÜ'¨°¸$Ó?‰ä'¨°Ó9ˆÙØ×%Ñ%Ô'Ø€IØ ×&Ñ&Ó(ò ‰
ˆˆUØ�+Ò¡-±IÜÐCÓDÐDÜØØØð		
ð (ØØ%Ø#ñ		
ð ò		
ð �+ÓØ‰Iðñ ™YÜÐ?Ó@Ð@ÙØ×#Ñ#Ô%ÙØ—‘Ó!ˆð	Ø—L‘L Ó*ˆEð ˆð øôC ò SÜÐ9¸,¸ÐHÓIÈsÐRûðSûôJ ò 	ØØˆð	ús)   ”C8 Ã$D Ã8	DÄDÄDÄ	D%Ä$D%Ú__main__r5   c                 ó<   — t        j                  | |ft        «       yr   )ÚmarshalÚdumpÚstdout)r   r!   s     r   Úhandle_itemrí   }  s   € Ü�‰�d˜D�\¤6Ô*Ør   )r"   r$   r*   )rl   rÚ   )r   r   )r   r   r   NFú
ú	r   NTNrl   rÚ   r   )Nrl   TFr   )%Ú__doc__Úxml.parsersr   Úxml.sax.saxutilsr   r   Úxml.sax.xmlreaderr   Úior   Úinspectr   rÛ   Ú	Exceptionr
   r   rŠ   r”   r¦   r¬   r´   r¿   rÕ   rç   r   rê   ÚsysÚstdinÚbufferrì   Úargvr"   r»   rí   rB   ÚrootÚKeyboardInterruptr   r   r   ú<module>rý      sI  ðá <å ß 1Ý ,Ý Ý Û ô	˜ô 	÷v@ñ v@ðr #¨%ÀEØ!°DÈ5ójóZòIò.óð$ ØØØØØØØ!ØØØØØ Ø ól6ô^.�Lô .ð FJØ4>óAðH ˆzÒÛÛà�I‰I×Ñ€EØ�Z‰Z×Ñ€Fà—H‘H˜Q˜R�L�M€ZÙ�Z“€JòðÙ�UØ *Ø#.Ø&*ô,ˆð ˜Š?Ù˜˜DÕ!ð ð' øð* ò Ùðús   ÃC* Ã*C2Ã1C2