
    Mic
                        S SK Jr  S SKrS SKrS SKJrJrJr  S SKJ	r	  S SK
Jr  S SKJrJr  S SKJr  S SKJr      S
           SS	 jjrg)    )annotationsN)IOAnyOptional)Element)FileType)convert_office_docexactly_one)get_last_modified_date)partition_pptxc           	        [        XS9  U (       a  [        U 5      OSn[        R                  " 5        nU (       a4  [        R
                  R                  U 5      (       d  [        SU  S35      eO_U(       d   e[        R
                  R                  US5      n[        US5       nUR                  UR                  5       5        SSS5        Un [        R
                  R                  [        R
                  R                  U 5      5      u  p[        R
                  R                  U
5      u  p[        U USSS	9  [        R
                  R                  Xk S
35      n[!        SUU=(       d    U ["        R$                  U=(       d    US.UD6nSSS5        U(       a  W H  nX.R&                  l        M     W$ ! , (       d  f       N= f! , (       d  f       NA= f)a  Partitions Microsoft PowerPoint Documents in .ppt format into their document elements.

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.

Note that all arguments valid on `partition_pptx()` are also valid here and will be passed
along to the `partition_pptx()` function.
)filenamefileNz	The file z does not exist.tmp_filewbpptxzImpress MS PowerPoint 2007 XML)target_formattarget_filterz.pptx)r   metadata_filenamemetadata_file_typemetadata_last_modified )r
   r   tempfileTemporaryDirectoryospathexists
ValueErrorjoinopenwritereadsplitabspathsplitextr	   r   r   PPTmetadatar   )r   r   r   r   kwargslast_modifiedtmpdirtmp_file_pathr   _filename_no_pathbase_filenamepptx_filenameelementselements                  t/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/unstructured/partition/ppt.pypartition_pptr3      st   , -8@*84dM		$	$	&&77>>(++ 9XJ6F!GHH , K4GGLL<MmT*htyy{+ +$H ggmmBGGOOH,EF77++,<= :		
 Ve-DE! 
"/;8'||#9#J]	

 
3 
'D G(9%   O9 +* 
'	&s%   A1G$ F5CG5
G	?G
G)NNNN)r   Optional[str]r   zOptional[IO[bytes]]r   r4   r   r4   r(   r   returnzlist[Element])
__future__r   r   r   typingr   r   r   unstructured.documents.elementsr   unstructured.file_utils.modelr   $unstructured.partition.common.commonr	   r
   &unstructured.partition.common.metadatar   unstructured.partition.pptxr   r3   r       r2   <module>r>      su    " 	  $ $ 3 2 P I 6 # $'+,0	@@
@ %@ *	@
 @ @r=   