
    %jQ                     0    d dl mZ d dl mZ d dl mZ d ZdS )   )lists)	documents)resultsc                 0    fd}fd ||           S )Nc                 |    |                      d          }t          j        t          j        |                    S )Nz	w:comment)find_childrenr   combiner   map)elementcomment_elements_read_comment_elements     a/home/rurouni/.hermes/hermes-agent/venv/lib/python3.11/site-packages/mammoth/docx/comments_xml.pyread_comments_xml_elementz<read_comments_xml_element.<locals>.read_comments_xml_element   s5    "00==uy)>@PQQRRR    c                 t      fd                      j                                       fd          S )Nc                 b    j                             | d                                          pd S )N )
attributesgetstrip)namer   s    r   read_optional_attributezYread_comments_xml_element.<locals>._read_comment_element.<locals>.read_optional_attribute   s-    %))$3399;;CtCr   c                 n    t          j        j        d         |  d           d                    S )Nzw:idzw:authorz
w:initials)
comment_idbodyauthor_nameauthor_initials)r   commentr   )r   r   r   s    r   <lambda>zJread_comments_xml_element.<locals>._read_comment_element.<locals>.<lambda>   sG    "-f533J?? 7 7 E E	   r   )read_allchildrenr
   )r   r   body_readers   `@r   r   z8read_comments_xml_element.<locals>._read_comment_element   sg    	D 	D 	D 	D 	D ##G$45599 ; ; ; ; ;   	r    )r   r"   r   r   s    ` @r   r   r      sN    S S S S S

 
 
 
 
 %$W---r   N)r   r   r   r   r   r#   r   r   <module>r$      sT                     . . . . .r   