Ë
    F<kÖM  ã                  ó  — d dl mZ d dlZd dlmZ d dlmZmZ d dlm	Z	 d dl
mZmZmZ d dlmZmZmZmZ d dlmZmZmZ d d	lmZmZmZmZmZmZmZmZm Z m!Z! d d
l"m#Z#m$Z$ erd dl%Z%d dl&m'Z' d dl
m(Z( d dl)m*Z*  G d„ d«      Z+y)é    )ÚannotationsN)Úcached_property)ÚTYPE_CHECKINGÚcast)Úget_configuration)Úformat_iso8824_dateÚlogger_warningÚparse_iso8824_date)ÚAFRelationshipÚCatalogAttributesÚ"FileSpecificationDictionaryEntriesÚPageAttributes)ÚLimitReachedErrorÚPdfReadErrorÚ
PyPdfError)
ÚArrayObjectÚByteStringObjectÚDecodedStreamObjectÚDictionaryObjectÚ
NameObjectÚ
NullObjectÚNumberObjectÚStreamObjectÚTextStringObjectÚis_null_or_none)Ú_flatten_name_treeÚ_iter_name_tree)ÚIterator©Ú_TraversalState)Ú	PdfWriterc                  ó
  — e Zd ZdZd$d%d„Zed&d„«       Zed'd„«       Zed(d„«       Z	ed)d„«       Z
ed*d„«       Zej                  d+d	„«       Zed*d
„«       Zej                  d+d„«       Zed&d„«       Zej                  d,d„«       Zed-d„«       Zed.d„«       Zed.d„«       Zed*d„«       Zej                  d/d„«       Zed0d„«       Zej                  d1d„«       Zd$d2d„Zed3d„«       Zej                  d4d„«       Zed5d„«       Zej                  d6d„«       Zed5d„«       Zej                  d6d„«       Zed7d„«       Zej                  d8d„«       Zed9d„«       Zd:d„Zd&d „Zed;d!„«       Ze	 d<	 	 	 	 	 	 	 	 	 d=d"„«       Zed<d>d#„«       Z y)?ÚEmbeddedFilezØ
    Container holding the information on an embedded file.

    Attributes are evaluated lazily if possible.

    Further information on embedded files can be found in section 7.11 of the PDF 2.0 specification.
    Nc                ó.   — || _         || _        || _        y)zÖ
        Args:
            name: The (primary) name as provided in the name tree.
            pdf_object: The corresponding PDF object to allow retrieving further data.
            parent: The parent list.
        N)Ú_nameÚ
pdf_objectÚ_parent)ÚselfÚnamer&   Úparents       úW/var/www/tapir-food/flask_app/venv/lib/python3.12/site-packages/pypdf/generic/_files.pyÚ__init__zEmbeddedFile.__init__)   s   € ð ˆŒ
Ø$ˆŒØˆ�ó    c                ó   — | j                   S )a  
        The (primary) name of the embedded file as provided in the name tree.

        .. warning::

            This value can contain arbitrary characters. Please make sure to sanitize it before
            using it to write the file content to the disk for example.
        )r%   ©r(   s    r+   r)   zEmbeddedFile.name4   s   € ð �z‰zÐr-   c           	     óB  — t        |t        «      r|j                  d«      }t        «       }|j	                  |«       |j                  t        t        j                  «      t        d«      i«       t        «       }|j                  t        t        j                  «      |j                  |«      i«       ddlm} t        «       }|j                  |«      }t        t          ||«      «      }	|j                  t        t        j                  «      t        d«      t        t        j                  «      |	t        t        j"                  «      |i«       | j%                  |«      }
| j'                  |
|	«      }|
j)                  ||«       |
j)                  ||	«        | |||
¬«      S )aO  
        Create a new embedded file and add it to the PdfWriter.

        Args:
            writer: The PdfWriter instance to add the embedded file to.
            name: The filename to display.
            content: The data in the file.

        Returns:
            EmbeddedFile instance for the newly created embedded file.
        úlatin-1z/EmbeddedFiler   )Úcreate_string_objectz	/Filespec©r)   r&   r*   )Ú
isinstanceÚstrÚencoder   Úset_dataÚupdater   r   ÚTYPEr   r   ÚFÚ_add_objectÚpypdf.genericr2   r   r   ÚEFÚ_get_names_arrayÚ_get_insertion_indexÚinsert)ÚclsÚwriterr)   ÚcontentÚ
file_entryÚef_entryr2   ÚfilespecÚfilespec_referenceÚname_objectÚnames_arrayÚinsertion_indexs               r+   Ú_create_newzEmbeddedFile._create_new@   sY  € ô �gœsÔ#Ø—n‘n YÓ/ˆGô )Ó*ˆ
Ø×Ñ˜GÔ$Ø×Ñœ:¤n×&9Ñ&9Ó:¼JÀÓ<WÐXÔYô $Ó%ˆØ�‰œÔ$F×$HÑ$HÓIÈ6×K]ÑK]Ð^hÓKiÐjÔkõ 	7Ü#Ó%ˆØ#×/Ñ/°Ó9ÐÜÔ+Ñ-AÀ$Ó-GÓHˆØ�‰äœ>×.Ñ.Ó/´¸KÓ1HÜÔ=×?Ñ?Ó@À+ÜÔ=×@Ñ@ÓAÀ8ðô	
ð ×*Ñ*¨6Ó2ˆØ×2Ñ2°;ÀÓLˆØ×Ñ˜?Ð,>Ô?Ø×Ñ˜?¨KÔ8ñ ˜¨¸+ÔFÐFr-   c                óÞ  — t         j                  |j                  vr=|j                  t	        «       «      |j                  t        t         j                  «      <   t        t        |j                  t         j                     «      }d|vrMt        «       }t	        t        t         j                  «      |i«      }|j                  |«      |t        d«      <   |S t        «       }t        t        |d   «      }d|v rRt        t        |t        t         j                  «         «      }t        |«      dz  |j                  kD  rt        d«      ‚|S d|vrt        d«      ‚t        ||j                  ¬«      S )zLGet the names array for embedded files, possibly creating and flattening it.ú/EmbeddedFilesú/Namesé   z*Maximum embedded file entry limit reached.ú/Kidsz2Got neither Names nor Kids in embedded files tree.)Úmaximum_entries)r   ÚNAMESÚroot_objectr;   r   r   r   r   r   ÚlenÚembedded_files_maximum_countr   r   r   )rA   rB   Ú
names_dictÚnamesÚembedded_files_names_dictionaryÚconfigurationÚembedded_files_names_treeÚ
names_trees           r+   r>   zEmbeddedFile._get_names_arrayr   sO  € ô ×"Ñ"¨&×*<Ñ*<Ñ<àFL×FXÑFXÔYiÓYkÓFlˆF×ÑœzÔ*;×*AÑ*AÓBÑCäÔ*¨F×,>Ñ,>Ô?P×?VÑ?VÑ,WÓXˆ
Ø :Ñ-ä“MˆEÜ.>ÜÔ-×3Ñ3Ó4°eÐ<ó/Ð+ð 8>×7IÑ7IÐJiÓ7jˆJ”zÐ"2Ó3Ñ4ØˆLô *Ó+ˆÜ$(Ô)9¸:ÐFVÑ;WÓ$XÐ!ØÐ0Ñ0äœkÐ+DÄZÔPa×PgÑPgÓEhÑ+iÓjˆJÜ�:‹ !Ñ# m×&PÑ&PÒPÜ'Ð(TÓUÐUØÐØÐ3Ñ3äÐSÓTÐTä!Ø%Ø)×FÑFô
ð 	
r-   c                óD  — t        dt        |«      d«      D �cg c]  }||   j                  d«      ‘Œ }}|j                  d«      }t        j                  ||«      }t        j
                  ||«      }||k7  r|dz  S |dk(  ry|t        |«      x}k(  r|dz  S |dz  S c c}w )Nr   rO   zutf-8)ÚrangerT   r6   ÚbisectÚbisect_leftÚbisect_right)	rA   rI   r)   ÚiÚkeysÚ
name_bytesÚstartÚendÚ	key_counts	            r+   r?   z!EmbeddedFile._get_insertion_index•   s©   € ä8=¸aÄÀ[ÓAQÐSTÓ8UÖV°1�˜A‘×%Ñ% gÕ.ÐVˆÐVØ—[‘[ Ó)ˆ
ä×"Ñ" 4¨Ó4ˆÜ×!Ñ! $¨
Ó3ˆà�CŠ<Ø˜‘7ˆNØ�AŠ:ØØ¤# d£)Ð+�YÒ,Ø˜q‘=Ð Ø�Q‰wˆùò Ws   ™Bc                óà   — t         j                  t         j                  fD ]K  }|| j                  v sŒ| j                  |   j	                  «       }t        |«      rŒ;t        t        |«      c S  y)a  
        Retrieve the alternative name (as per the file specification dictionary).

        .. warning::

            This value can contain arbitrary characters. Please make sure to sanitize it before
            using it to write the file content to the disk for example.
        N)r   ÚUFr:   r&   Ú
get_objectr   r   r5   )r(   ÚkeyÚvalues      r+   Úalternative_namezEmbeddedFile.alternative_name¥   sd   € ô 7×9Ñ9Ô;]×;_Ñ;_Ð`ò 	,ˆCð �d—o‘oÒ%ØŸ™¨Ñ,×7Ñ7Ó9�Ü& uÕ-Ü¤ UÓ+Ò+ð	,ð r-   c                óÌ  — |€–t         j                  | j                  v r.t        «       | j                  t	        t         j                  «      <   t         j
                  | j                  v r/t        «       | j                  t	        t         j
                  «      <   yy|| j                  t	        t         j                  «      <   || j                  t	        t         j
                  «      <   y)zDSet the alternative name (as per the file specification dictionary).N)r   rh   r&   r   r   r:   ©r(   rk   s     r+   rl   zEmbeddedFile.alternative_name¸   s¥   € ð ˆ=Ü1×4Ñ4¸¿¹ÑGÜU_ÓUa�—‘¤
Ô+M×+PÑ+PÓ QÑRÜ1×3Ñ3°t·±ÑFÜT^ÓT`�—‘¤
Ô+M×+OÑ+OÓ PÒQð Gð RWˆD�O‰OœJÔ'I×'LÑ'LÓMÑNØPUˆD�O‰OœJÔ'I×'KÑ'KÓLÒMr-   c                óp   — | j                   j                  t        j                  «      }t	        |«      ry|S )zRetrieve the description.N)r&   Úgetr   ÚDESCr   rn   s     r+   ÚdescriptionzEmbeddedFile.descriptionÄ   s/   € ð —‘×#Ñ#Ô$F×$KÑ$KÓLˆÜ˜5Ô!ØØˆr-   c                ó²   — |€/t        «       | j                  t        t        j                  «      <   y|| j                  t        t        j                  «      <   y)zSet the description.N)r   r&   r   r   rq   rn   s     r+   rr   zEmbeddedFile.descriptionÌ   s@   € ð ˆ=ÜS]ÓS_ˆD�O‰OœJÔ'I×'NÑ'NÓOÒPàSXˆD�O‰OœJÔ'I×'NÑ'NÓOÒPr-   c           	     ó„   — t        t        | j                  j                  dt        t        j
                  «      «      «      S )zJRetrieve the relationship of the referring document to this embedded file.ú/AFRelationship)r   r   r&   rp   r   ÚUNSPECIFIEDr/   s    r+   Úassociated_file_relationshipz)EmbeddedFile.associated_file_relationshipÔ   s4   € ô ÜØ�O‰O×ÑÐ 1´:¼n×>XÑ>XÓ3YÓZó
ð 	
r-   c                ó4   — || j                   t        d«      <   y)zESet the relationship of the referring document to this embedded file.ru   N)r&   r   rn   s     r+   rw   z)EmbeddedFile.associated_file_relationshipÜ   s   € ð :?ˆ�‰œ
Ð#4Ó5Ò6r-   c                ót  — t         j                  | j                  vrt        d| j                  › �«      ‚t	        t
        | j                  t         j                     «      }t         j                  t         j                  fD ])  }||v sŒt	        t        ||   j                  «       «      c S  t        d|› �«      ‚)z)Retrieve the actual embedded file stream.z/EF entry not found: z'No /(U)F key found in file dictionary: )
r   r=   r&   r   r   r   rh   r:   r   ri   )r(   Úefrj   s      r+   Ú_embedded_filezEmbeddedFile._embedded_fileá   s¤   € ô .×0Ñ0¸¿¹ÑGÜÐ!6°t·±Ð6GÐHÓIÐIÜÔ" D§O¡OÔ4V×4YÑ4YÑ$ZÓ[ˆÜ6×9Ñ9Ô;]×;_Ñ;_Ð`ò 	@ˆCØ�bŠyÜœL¨"¨S©'×*<Ñ*<Ó*>Ó?Ò?ð	@ô ÐDÀRÀDÐIÓJÐJr-   c                ó‚   — t        t        | j                  j                  dt        «       «      j	                  «       «      S )z&Retrieve the file-specific parameters.ú/Params)r   r   r{   rp   ri   r/   s    r+   Ú_paramszEmbeddedFile._paramsì   s2   € ô Ô$ d×&9Ñ&9×&=Ñ&=¸iÔIYÓI[Ó&\×&gÑ&gÓ&iÓjÐjr-   c                ót   — | j                   }d|vrt        «       |t        d«      <   t        t        |d   «      S )z3Ensure the /Params dictionary exists and return it.r}   )r{   r   r   r   )r(   Úembedded_files     r+   Ú_ensure_paramszEmbeddedFile._ensure_paramsñ   s<   € ð ×+Ñ+ˆØ˜MÑ)Ü3CÓ3EˆMœ* YÓ/Ñ0ÜÔ$ m°IÑ&>Ó?Ð?r-   c                óT   — | j                   j                  d«      }t        |«      ry|S )zERetrieve the subtype. This is a MIME media type, prefixed by a slash.ú/SubtypeN)r{   rp   r   rn   s     r+   ÚsubtypezEmbeddedFile.subtypeù   s*   € ð ×#Ñ#×'Ñ'¨
Ó3ˆÜ˜5Ô!ØØˆr-   c                ój   — | j                   }|€t        «       |t        d«      <   y||t        d«      <   y)zGSet the subtype. This should be a MIME media type, prefixed by a slash.Nrƒ   )r{   r   r   )r(   rk   r€   s      r+   r„   zEmbeddedFile.subtype  s4   € ð ×+Ñ+ˆØˆ=Ü4>³LˆMœ* ZÓ0Ò1à49ˆMœ* ZÓ0Ò1r-   c                ó"   — | j                  «       S )z!Retrieve the actual file content.)Ú_get_contentr/   s    r+   rC   zEmbeddedFile.content
  s   € ð × Ñ Ó"Ð"r-   c                ó|   — t        |t        «      r|j                  d«      }| j                  j	                  |«       y)zSet the file content.r1   N)r4   r5   r6   r{   r7   rn   s     r+   rC   zEmbeddedFile.content  s0   € ô �eœSÔ!Ø—L‘L Ó+ˆEØ×Ñ×$Ñ$ UÕ+r-   c                ó®   — | j                   j                  «       }|�8|xj                  t        |«      z  c_        |j                  dk  rt	        d«      ‚|S )zTRetrieve the actual file content, but track the overall content budget if requested.r   z3Maximum aggregate attachment content size exceeded.)r{   Úget_dataÚentry_countrT   r   )r(   Útraversal_staterC   s      r+   r‡   zEmbeddedFile._get_content  sP   € à×%Ñ%×.Ñ.Ó0ˆØÐ&Ø×'Ò'¬3¨w«<Ñ7Õ'Ø×*Ñ*¨QÒ.Ü'Ð(]Ó^Ð^Øˆr-   c                óT   — | j                   j                  d«      }t        |«      ry|S )z4Retrieve the size of the uncompressed file in bytes.ú/SizeN©r~   rp   r   rn   s     r+   ÚsizezEmbeddedFile.size  s(   € ð —‘× Ñ  Ó)ˆÜ˜5Ô!ØØˆr-   c                ój   — | j                   }|€t        «       |t        d«      <   y||t        d«      <   y)z/Set the size of the uncompressed file in bytes.NrŽ   ©r�   r   r   ©r(   rk   Úparamss      r+   r�   zEmbeddedFile.size'  s4   € ð ×$Ñ$ˆØˆ=Ü*4«,ˆF”:˜gÓ&Ò'à*/ˆF”:˜gÓ&Ò'r-   c                óJ   — t        | j                  j                  d«      «      S )z$Retrieve the file creation datetime.ú/CreationDate©r
   r~   rp   r/   s    r+   Úcreation_datezEmbeddedFile.creation_date0  s   € ô " $§,¡,×"2Ñ"2°?Ó"CÓDÐDr-   c                ó’   — | j                   }|€t        «       |t        d«      <   yt        |«      }t	        |«      |t        d«      <   y)zSet the file creation datetime.Nr–   ©r�   r   r   r   r   ©r(   rk   r”   Údate_strs       r+   r˜   zEmbeddedFile.creation_date5  sC   € ð ×$Ñ$ˆØˆ=Ü2<³,ˆF”:˜oÓ.Ò/ä*¨5Ó1ˆHÜ2BÀ8Ó2LˆF”:˜oÓ.Ò/r-   c                óJ   — t        | j                  j                  d«      «      S )z4Retrieve the datetime of the last file modification.ú/ModDater—   r/   s    r+   Úmodification_datezEmbeddedFile.modification_date?  s   € ô " $§,¡,×"2Ñ"2°:Ó">Ó?Ð?r-   c                ó’   — | j                   }|€t        «       |t        d«      <   yt        |«      }t	        |«      |t        d«      <   y)z/Set the datetime of the last file modification.Nrž   rš   r›   s       r+   rŸ   zEmbeddedFile.modification_dateD  sC   € ð ×$Ñ$ˆØˆ=Ü-7«\ˆF”:˜jÓ)Ò*ä*¨5Ó1ˆHÜ-=¸hÓ-GˆF”:˜jÓ)Ò*r-   c                óT   — | j                   j                  d«      }t        |«      ry|S )z5Retrieve the MD5 checksum of the (uncompressed) file.ú	/CheckSumNr�   rn   s     r+   ÚchecksumzEmbeddedFile.checksumN  s(   € ð —‘× Ñ  Ó-ˆÜ˜5Ô!ØØˆr-   c                ój   — | j                   }|€t        «       |t        d«      <   y||t        d«      <   y)z0Set the MD5 checksum of the (uncompressed) file.Nr¢   r’   r“   s      r+   r£   zEmbeddedFile.checksumV  s4   € ð ×$Ñ$ˆØˆ=Ü.8«lˆF”:˜kÓ*Ò+à.3ˆF”:˜kÓ*Ò+r-   c              #  ó’   K  — | j                   –— | j                  �)| j                  | j                   k7  r| j                  –— y y y ­w©N)r)   rl   r/   s    r+   Ú_nameszEmbeddedFile._names_  sA   è ø€ à�i‰iŠØ× Ñ Ð,°×1FÑ1FÈ$Ï)É)Ò1SØ×'Ñ'Ó'ð 2TÐ,ùs   ‚AAc                óÚ  — | j                   st        d«      ‚| j                  | j                   v r&| j                   j                  | j                  «      }nNt	        | j                  dd«      x}�*|| j                   v r| j                   j                  |«      }nt        d«      ‚| j                   j                  |«       | j                   j                  |dz
  «       t        «       | _        y)z"Delete the file from the document.z-Parent required to delete file from document.Úindirect_referenceNz File not found in parent object.é   )r'   r   r&   ÚindexÚgetattrÚpopr   )r(   r«   r©   s      r+   ÚdeletezEmbeddedFile.deletee  s·   € à�|Š|ÜÐLÓMÐMØ�?‰?˜dŸl™lÑ*Ø—L‘L×&Ñ& t§¡Ó7‰Eä'.¨t¯©Ð@TÐVZÓ'[Ð[Ð#ÐhØ&¨$¯,©,Ñ6à—L‘L×&Ñ&Ð'9Ó:‰EäÐ?Ó@Ð@Ø�‰×Ñ˜ÔØ�‰×Ñ˜ ™Ô#Ü*Ó,ˆ�r-   c                óP   — d| j                   j                  › d| j                  ›d�S )Nú<z name=ú>)Ú	__class__Ú__name__r)   r/   s    r+   Ú__repr__zEmbeddedFile.__repr__v  s&   € Ø�4—>‘>×*Ñ*Ð+¨6°$·)±)°¸aÐ@Ð@r-   c                ó@   — |rt        | «      ‚t        | t        ¬«       y)z2Raise an exception in strict mode, warn otherwise.)ÚsourceN)r   r	   r³   )ÚmessageÚstricts     r+   Ú_report_malformedzEmbeddedFile._report_malformedy  s   € ñ Ü˜wÓ'Ð'Ü�w¤xÖ0r-   c             #  óŽ  K  — t        |«      D ]³  \  }}t        |t        «      rŒ|j                  «       }t        |t        «      rŒ8t        |t
        «      s| j                  d|› �|¬«       Œ_|xj                  dz  c_        |j                  |kD  rt        d«      ‚||dz
     j                  «       }t        |||¬«      –— Œµ y­w)aî  
        Convert the given name tree into class instances.

        Args:
            names: The name tree to load the data from.
            strict: Whether to raise an exception on a file specification that is not a dictionary
                instead of issuing a warning and skipping it.
            traversal_state: Shared visitor counter.
            traversal_limit: Allowed number of embedded files.

        Returns:
            Iterable of class instances for the files found.
        z1Embedded file specification is not a dictionary: ©r¸   rª   z+Maximum embedded file entry limit exceeded.r3   N)
Ú	enumerater4   r5   ri   r   r   r¹   r‹   r   r#   )	rA   rW   r¸   rŒ   Útraversal_limitra   r)   Úfile_dictionaryÚdirect_names	            r+   Ú_load_from_nameszEmbeddedFile._load_from_names€  sÇ   è ø€ ô& ! Ó'ò 	_‰GˆAˆtÜ˜d¤CÕ(à"&§/¡/Ó"3�Ü˜o¬zÔ:àÜ! /Ô3CÔDØ×)Ñ)ØKÈOÐK\Ð]Ðflð *ô ð Ø×+Ò+¨qÑ0Õ+Ø"×.Ñ.°Ò@Ü+Ð,YÓZÐZØ# A¨¡E™l×5Ñ5Ó7�Ü"¨ÀÐX]Ô^Ó^ñ!	_ùs   ‚"C¥B Cc              #  ó¦  K  — t         j                  |vry|t         j                     }t        |t        «      ryt        |t        «      s| j                  d|› �|¬«       yd|vry|d   }t        |t        «      ryt        |t        «      s| j                  d|› �|¬«       yddlm}  |«       }t        «       }t        |«      D �]  }t        |t        «      s| j                  d|› �|¬«       Œ+|j                  d	t        «       «      j                  «       }	t        |	t        t        f«      s| j                  d
|	› �|¬«       |j                  dt        «       «      j                  «       }
t        |
t        «      rŒ¸t        |
t        «      s| j                  d|
› �|¬«       Œß| j                  |
|||j                  ¬«      E d{  –—†  �Œ y7 Œ­w)aÓ  
        Load the embedded files for the given document catalog.

        This method and its signature are considered internal API and thus not exposed publicly for now.

        Args:
            catalog: The document catalog to load from.
            strict: Whether to raise an exception on malformed name trees
                instead of issuing a warning and skipping them.

        Returns:
            Iterable of class instances for the files found.
        Nz Names tree is not a dictionary: r»   rM   z*Embedded files entry is not a dictionary: r   r   z(Embedded files kid is not a dictionary: rP   z&Embedded files /Kids is not an array: rN   z*Embedded files name list is not an array: )r¸   rŒ   r½   )r   rR   r4   r   r   r¹   Úpypdf._utilsr    r   r   rp   ri   r   rÀ   rU   )rA   Úcatalogr¸   rW   Ú	containerr    rŒ   rY   ÚnodeÚkidsÚ
node_namess              r+   Ú_loadzEmbeddedFile._load¥  sÎ  è ø€ ô ×"Ñ"¨'Ñ1ØØÔ)×/Ñ/Ñ0ˆÜ�eœZÔ(àÜ˜%Ô!1Ô2Ø×!Ñ!Ð$DÀUÀGÐ"LÐU[Ð!Ô\ØØ 5Ñ(ØØÐ*Ñ+ˆ	Ü�i¤Ô,ØÜ˜)Ô%5Ô6Ø×!Ñ!Ð$NÈyÈkÐ"ZÐciÐ!ÔjØå0Ù)Ó+ˆä)Ó+ˆÜ# IÓ.ó 	ˆDÜ˜dÔ$4Ô5Ø×%Ñ%Ð(PÐQUÐPVÐ&WÐ`fÐ%ÔgØØ—8‘8˜G¤Z£\Ó2×=Ñ=Ó?ˆDÜ˜d¤[´*Ð$=Ô>Ø×%Ñ%Ð(NÈtÈfÐ&UÐ^dÐ%ÔeØŸ™ (¬J«LÓ9×DÑDÓFˆJÜ˜*¤jÔ1ØÜ˜j¬+Ô6Ø×%Ñ%Ð(RÐS]ÐR^Ð&_ÐhnÐ%ÔoØØ×+Ñ+ØØØ /Ø -× JÑ Jð	 ,ó ÷ ò ñ	ðús   ‚GGÇGÇ	Gr¦   )r)   r5   r&   r   r*   zArrayObject | NoneÚreturnÚNone)rÉ   r5   )rB   r!   r)   r5   rC   ústr | bytesrÉ   r#   )rB   r!   rÉ   r   )rI   r   r)   r5   rÉ   Úint)rÉ   z
str | None)rk   zTextStringObject | NonerÉ   rÊ   )rk   r   rÉ   rÊ   )rÉ   r   )rÉ   r   )rk   zNameObject | NonerÉ   rÊ   )rÉ   Úbytes)rk   rË   rÉ   rÊ   )rŒ   z_TraversalState | NonerÉ   rÍ   )rÉ   z
int | None)rk   zNumberObject | NonerÉ   rÊ   )rÉ   údatetime.datetime | None)rk   rÎ   rÉ   rÊ   )rÉ   zbytes | None)rk   zByteStringObject | NonerÉ   rÊ   )rÉ   zIterator[str])rÉ   rÊ   )r·   r5   r¸   ÚboolrÉ   rÊ   )F)
rW   r   r¸   rÏ   rŒ   r    r½   rÌ   rÉ   úIterator[EmbeddedFile])rÃ   r   r¸   rÏ   rÉ   rÐ   )!r³   Ú
__module__Ú__qualname__Ú__doc__r,   Úpropertyr)   ÚclassmethodrK   r>   r?   rl   Úsetterrr   rw   r{   r~   r   r�   r„   rC   r‡   r�   r˜   rŸ   r£   r§   r®   r´   Ústaticmethodr¹   rÀ   rÈ   © r-   r+   r#   r#   !   sÙ  „ ñô	ð ò	ó ð	ð ò/Gó ð/Gðb ò 
ó ð 
ðD òó ðð òó ðð$ ×Ñò	Vó ð	Vð òó ðð ×ÑòYó ðYð ò
ó ð
ð "×(Ñ(ò?ó )ð?ð òKó ðKð òkó ðkð ò@ó ð@ð òó ðð ‡^�^ò:ó ð:ð ò#ó ð#ð ‡^�^ò,ó ð,ôð òó ðð 
‡[�[ò0ó ð0ð òEó ðEð ×ÑòMó ðMð ò@ó ð@ð ×ÑòHó ðHð òó ðð ‡_�_ò4ó ð4ð ò(ó ð(ó
-ó"Að ò1ó ð1ð à49ð"_Ø#ð"_Ø-1ð"_à,ð"_à?Bð"_ð 
 ò"_ó ð"_ðH ó6ó ñ6r-   r#   ),Ú
__future__r   r^   Ú	functoolsr   Útypingr   r   Úpypdf._configurationr   rÂ   r   r	   r
   Úpypdf.constantsr   r   r   r   Úpypdf.errorsr   r   r   r<   r   r   r   r   r   r   r   r   r   r   Úpypdf.generic._data_structuresr   r   ÚdatetimeÚcollections.abcr   r    Úpypdf._writerr!   r#   rØ   r-   r+   ú<module>rã      sV   ðÝ "ã Ý %ß &å 2ß PÑ Pß qÓ qß DÑ D÷÷ ÷ ÷ OáÛÝ(å,Ý'÷{ò {r-   