Ë
    ¶:Qgk  ã                  ó¤   — U 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mZ d dlmZ d dlmZ d	Zd
ed<   	 dddddœ	 	 	 	 	 	 	 	 	 	 	 dd„Zy)é    )Úannotations)ÚIOÚAny)ÚElement)Ú&convert_file_to_html_text_using_pandoc)ÚFileType)Úexactly_one)Úget_last_modified_date)Úpartition_htmlÚorgÚstrÚDETECTION_ORIGINN)ÚfileÚmetadata_filenameÚmetadata_last_modifiedc          
     ó®   — t        | |¬«       | rt        | «      nd}t        d| |¬«      }t        d|d|xs | t        j
                  |xs |t        dœ|¤ŽS )aq  Partitions an org document. The document is first converted to HTML and then
    partitioned using partition_html.

    Parameters
    ----------
    filename
        A string defining the target filename path.
    file
        A file-like object using "rb" mode --> open(filename, "rb").
    metadata_last_modified
        The last modified date for the document.
    )Úfilenamer   Nr   )Úsource_formatr   r   Úunicode)ÚtextÚencodingr   Úmetadata_file_typer   Údetection_origin© )r	   r
   r   r   r   ÚORGr   )r   r   r   r   ÚkwargsÚlast_modifiedÚ	html_texts          úW/var/www/html/answerous/venv/lib/python3.12/site-packages/unstructured/partition/org.pyÚpartition_orgr       sl   € ô( ˜¨Õ-á8@Ô*¨8Ô4Àd€Mä6Ø h°Tô€Iô ð ØØØ+Ò7¨xÜ#Ÿ<™<Ø5ÒF¸Ü)ñð ñð ó    )N)r   ú
str | Noner   zIO[bytes] | Noner   r"   r   r"   r   r   Úreturnzlist[Element])Ú
__future__r   Útypingr   r   Úunstructured.documents.elementsr   Ú'unstructured.file_utils.file_conversionr   Úunstructured.file_utils.modelr   Ú$unstructured.partition.common.commonr	   Ú&unstructured.partition.common.metadatar
   Úunstructured.partition.htmlr   r   Ú__annotations__r    r   r!   r   ú<module>r-      s|   ðÞ "ç å 3Ý ZÝ 2Ý <Ý IÝ 6àÐ #Ó ð  ð$ð "Ø$(Ø)-ñ$Øð$ð ð$ð "ð	$ð
 'ð$ð ð$ð ô$r!   