+
    yaÒjuJ  ã                  óò   € ^ RI Ht ^ RIt^ RIHt ^ RIHtHt ^ RIH	t	H
t
Ht ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHt ^ R
IHtHtHtHtHtHtHtHtHtHt ]'       d   ^ RI t ^ RI!H"t" ^ RI#H$t$  ! R R4      t%R# )é    )ÚannotationsN)Úcached_property)ÚTYPE_CHECKINGÚcast)Úformat_iso8824_dateÚlogger_warningÚparse_iso8824_date)ÚCatalogAttributes)Ú"FileSpecificationDictionaryEntries)ÚPageAttributes)ÚPdfReadErrorÚ
PyPdfError)
ÚArrayObjectÚByteStringObjectÚDecodedStreamObjectÚDictionaryObjectÚ
NameObjectÚ
NullObjectÚNumberObjectÚStreamObjectÚTextStringObjectÚis_null_or_none)ÚIterator)Ú	PdfWriterc                  óx  € ] tR t^ tRtRDR R llt]R R l4       t]R R l4       t	]R	 R
 l4       t
]R R l4       t]R R l4       t]P                  R R l4       t]R R l4       t]P                  R R l4       t]R R l4       t]P                  R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R  l4       t]P                  R! R" l4       t]R# R$ l4       t]P                  R% R& l4       t]R' R( l4       t]P                  R) R* l4       t]R+ R, l4       t]P                  R- R. l4       t]R/ R0 l4       t]P                  R1 R2 l4       t]R3 R4 l4       t]P                  R5 R6 l4       t]R7 R8 l4       tR9 R: ltR; R< lt]R= R> l4       t]R? R@ l4       t]RERA RB ll4       t RCt!R# )FÚ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               ó(   € V ^8„  d   QhRRRRRRRR/# )	é   ÚnameÚstrÚ
pdf_objectr   ÚparentzArrayObject | NoneÚreturnÚNone© )Úformats   "ÚJ/opt/data/home/.local/lib/python3.14/site-packages/pypdf/generic/_files.pyÚ__annotate__ÚEmbeddedFile.__annotate__(   s+   € ÷ 	ñ 	˜Sð 	Ð.>ð 	ÐHZð 	Ðfjñ 	ó    c                ó*   € Wn         W n        W0n        R# )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)Ú_namer!   Ú_parent)Úselfr   r!   r"   s   &&&&r'   Ú__init__ÚEmbeddedFile.__init__(   s   € ð Œ
Ø$ŒØŽr*   c               ó   € V ^8„  d   QhRR/# ©r   r#   r    r%   )r&   s   "r'   r(   r)   4   s   € ÷ 	ñ 	�cñ 	r*   c                ó   € V P                   # )zî
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   ÚEmbeddedFile.name3   s   € ð �z‰zÐr*   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   Úwriterr   r   r    Úcontentústr | bytesr#   r   r%   )r&   s   "r'   r(   r)   @   s/   € ÷ /Gñ /G ð /G°#ð /GÀð /GÐP\ñ /Gr*   c           	     ó*  € \        V\        4      '       d   VP                  R4      p\        4       pVP	                  V4       VP                  \        \        P                  4      \        R4      /4       \        4       pVP                  \        R4      VP                  V4      /4       ^ RIHp \        4       pVP                  V4      p\        \        V! V4      4      p	VP                  \        \        P                  4      \        R4      \        \        P                   4      V	\        \        P"                  4      V/4       V P%                  V4      p
V P'                  W©4      pV
P)                  W¸4       V
P)                  W¹4       V ! W'V
R7      # )a  
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/EmbeddedFilez/F)Úcreate_string_objectz	/Filespec©r   r!   r"   )Ú
isinstancer    Úencoder   Úset_dataÚupdater   ÚPGÚTYPEr   Ú_add_objectÚpypdf.genericr<   r   r   r   ÚFÚEFÚ_get_names_arrayÚ_get_insertion_indexÚinsert)Úclsr7   r   r8   Ú
file_entryÚef_entryr<   ÚfilespecÚfilespec_referenceÚname_objectÚnames_arrayÚinsertion_indexs   &&&&        r'   Ú_create_newÚEmbeddedFile._create_new?   sG  € ô �gœs×#Ò#Ø—n‘n YÓ/ˆGô )Ó*ˆ
Ø×Ñ˜GÔ$Ø×Ñœ:¤b§g¡gÓ.´
¸?Ó0KÐLÔMô $Ó%ˆØ�‰œ DÓ)¨6×+=Ñ+=¸jÓ+IÐJÔKõ 	7Ü#Ó%ˆØ#×/Ñ/°Ó9ÐÜÔ+Ñ-AÀ$Ó-GÓHˆØ�‰äœ2Ÿ7™7Ó#¤Z°Ó%<ÜÔ=×?Ñ?Ó@À+ÜÔ=×@Ñ@ÓAÀ8ðô	
ð ×*Ñ*¨6Ó2ˆØ×2Ñ2°;ÓLˆØ×Ñ˜?Ô?Ø×Ñ˜?Ô8ñ ˜¸+ÔFÐFr*   c               ó    € V ^8„  d   QhRRRR/# )r   r7   r   r#   r   r%   )r&   s   "r'   r(   r)   r   s   € ÷ )ñ ) ið )°Kñ )r*   c                óâ  € \         P                  VP                  9  d>   VP                  \	        4       4      VP                  \        \         P                  4      &   \        \        VP                  \         P                  ,          4      pRV9  dN   \        4       p\	        \        \         P                  4      V/4      pVP                  V4      V\        R4      &   V# \        \        VR,          4      pRV9   d/   \        \        V\        \         P                  4      ,          4      # RV9  d   \        R4      h\        4       p\        \        VR,          P                  4       4      p\	        \        \         P                  4      V/4      pVP                  V4      V\        R4      &   V F;  pVP                  4       P                  R. 4       F  pVP                  V4       K  	  K=  	  V# )zLGet the names array for embedded files, possibly creating and flattening it.ú/EmbeddedFilesú/Namesú/Kidsz2Got neither Names nor Kids in embedded files tree.)ÚCAÚNAMESÚroot_objectrD   r   r   r   r   r   Ú
get_objectÚgetÚappend)	rK   r7   Ú
names_dictÚnamesÚembedded_files_names_dictionaryÚembedded_files_names_treeÚkidsÚkidr   s	   &&       r'   rH   ÚEmbeddedFile._get_names_arrayq   s“  € ô �8‰8˜6×-Ñ-Ô-à7=×7IÑ7IÔJZÓJ\Ó7]ˆF×Ñœz¬"¯(©(Ó3Ñ4äÔ*¨F×,>Ñ,>¼r¿x¹xÕ,HÓIˆ
Ø :Ô-ä“MˆEÜ.>ÜœBŸH™HÓ% uÐ-ó/Ð+ð 8>×7IÑ7IÐJiÓ7jˆJ”zÐ"2Ó3Ñ4ØˆLô %)Ô)9¸:ÐFVÕ;WÓ$XÐ!ØÐ0Ô0äœÐ%>¼zÌ"Ï(É(Ó?SÕ%TÓUÐUØÐ3Ô3äÐSÓTÐTô
 “ˆÜ”KÐ!:¸7Õ!C×!NÑ!NÓ!PÓQˆÜ*:ÜœŸ™Ó! 5Ð)ó+
Ð'ð 4:×3EÑ3EÐFeÓ3fˆ
”:Ð.Ó/Ñ0ÛˆCð
 Ÿ™Ó(×,Ñ,¨X°rÖ:�Ø—‘˜TÖ"ó ;ñ ð ˆr*   c               ó$   € V ^8„  d   QhRRRRRR/# )r   rQ   r   r   r    r#   Úintr%   )r&   s   "r'   r(   r)   ž   s!   € ÷ ñ ¨{ð À#ð È#ñ r*   c                	ór  € \        ^ \        V4      ^4       Uu. uF  q1V,          P                  R4      NK  	  ppVP                  R4      p\        P                  ! WE4      p\        P
                  ! WE4      pWg8w  d
   V^,          # V^ 8X  d   ^ # V\        V4      ;p8X  d
   V^,          # V^,          # u upi )r   zutf-8)ÚrangeÚlenr?   ÚbisectÚbisect_leftÚbisect_right)	rK   rQ   r   ÚiÚkeysÚ
name_bytesÚstartÚendÚ	key_counts	   &&&      r'   rI   Ú!EmbeddedFile._get_insertion_index�   s¤   € ä8=¸aÄÀ[ÓAQÐSTÔ8UÓVÑ8U°1˜A•×%Ñ% gÖ.Ñ8UˆÐVØ—[‘[ Ó)ˆ
ä×"Ò" 4Ó4ˆÜ×!Ò! $Ó3ˆàŒ<Ø˜•7ˆNØ�AŒ:ÙØ¤# d£)Ð+�YÔ,Ø˜q•=Ð Ø�Q�wˆùò Ws   ™ B4c               ó   € V ^8„  d   QhRR/# ©r   r#   z
str | Noner%   )r&   s   "r'   r(   r)   ®   s   € ÷ ñ  *ñ r*   c                ó   € \         P                  \         P                  3 FY  pWP                  9   g   K  V P                  V,          P	                  4       p\        V4      '       d   KI  \        \        V4      u # 	  R# )zò
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   ÚUFrF   r!   r]   r   r   r    )r.   ÚkeyÚvalues   &  r'   Úalternative_nameÚEmbeddedFile.alternative_name­   sa   € ô 7×9Ñ9Ô;]×;_Ñ;_Ó`ˆCð —o‘oÖ%ØŸ™¨Õ,×7Ñ7Ó9�Ü& u×-Ô-Ü¤ UÓ+Ò+ñ añ r*   c               ó    € V ^8„  d   QhRRRR/# ©r   r{   zTextStringObject | Noner#   r$   r%   )r&   s   "r'   r(   r)   Á   s   € ÷ 	Vñ 	VÐ&=ð 	VÀ$ñ 	Vr*   c                óÞ  € VfŸ   \         P                  V P                  9   d/   \        4       V P                  \	        \         P                  4      &   \         P
                  V P                  9   d1   \        4       V P                  \	        \         P
                  4      &   R# R# WP                  \	        \         P                  4      &   WP                  \	        \         P
                  4      &   R# )zDSet the alternative name (as per the file specification dictionary).N)r   ry   r!   r   r   rF   ©r.   r{   s   &&r'   r|   r}   À   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�O‰OœJÔ'I×'LÑ'LÓMÑNØPU�O‰OœJÔ'I×'KÑ'KÓLÓMr*   c               ó   € V ^8„  d   QhRR/# rw   r%   )r&   s   "r'   r(   r)   Í   s   € ÷ ñ ˜Zñ r*   c                ó~   € V P                   P                  \        P                  4      p\	        V4      '       d   R# V# )zRetrieve the description.N)r!   r^   r   ÚDESCr   r�   s   & r'   ÚdescriptionÚEmbeddedFile.descriptionÌ   s2   € ð —‘×#Ñ#Ô$F×$KÑ$KÓLˆÜ˜5×!Ò!ÙØˆr*   c               ó    € V ^8„  d   QhRRRR/# r   r%   )r&   s   "r'   r(   r)   Õ   s   € ÷ Yñ YÐ!8ð Y¸Tñ Yr*   c                ó¸   € Vf1   \        4       V P                  \        \        P                  4      &   R# WP                  \        \        P                  4      &   R# )zSet the description.N)r   r!   r   r   r„   r�   s   &&r'   r…   r†   Ô   s>   € ð Š=ÜS]ÓS_ˆD�O‰OœJÔ'I×'NÑ'NÓOÓPàSX�O‰OœJÔ'I×'NÑ'NÓOÓPr*   c               ó   € V ^8„  d   QhRR/# r2   r%   )r&   s   "r'   r(   r)   Ý   s   € ÷ 
ñ 
¨cñ 
r*   c           	     óh   € \        \        V P                  P                  R\        R4      4      4      # )zJRetrieve the relationship of the referring document to this embedded file.ú/AFRelationshipz/Unspecified)r   r   r!   r^   r4   s   &r'   Úassociated_file_relationshipÚ)EmbeddedFile.associated_file_relationshipÜ   s.   € ô ÜØ�O‰O×ÑÐ 1´:¸nÓ3MÓNó
ð 	
r*   c               ó    € V ^8„  d   QhRRRR/# )r   r{   r   r#   r$   r%   )r&   s   "r'   r(   r)   å   s   € ÷ ?ñ ?°*ð ?Àñ ?r*   c                ó4   € WP                   \        R4      &   R# )zESet the relationship of the referring document to this embedded file.r‹   N)r!   r   r�   s   &&r'   rŒ   r�   ä   s   € ð :?�‰œ
Ð#4Ó5Ó6r*   c               ó   € V ^8„  d   QhRR/# )r   r#   r   r%   )r&   s   "r'   r(   r)   ê   s   € ÷ Kñ K ñ Kr*   c                óX  € RV P                   9  d   \        RV P                    24      h\        \        V P                   R,          4      p\        P
                  \        P                  3 F/  pW!9   g   K  \        \        W,          P                  4       4      u # 	  \        RV 24      h)z)Retrieve the actual embedded file stream.z/EFz/EF entry not found: z'No /(U)F key found in file dictionary: )	r!   r   r   r   r   ry   rF   r   r]   )r.   Úefrz   s   &  r'   Ú_embedded_fileÚEmbeddedFile._embedded_fileé   s�   € ð ˜Ÿ™Ô'ÜÐ!6°t·±Ð6GÐHÓIÐIÜÔ" D§O¡O°EÕ$:Ó;ˆÜ6×9Ñ9Ô;]×;_Ñ;_Ó`ˆCØŽyÜœL¨"­'×*<Ñ*<Ó*>Ó?Ò?ñ aô ÐDÀRÀDÐIÓJÐJr*   c               ó   € V ^8„  d   QhRR/# ©r   r#   r   r%   )r&   s   "r'   r(   r)   õ   s   € ÷ kñ kÐ)ñ kr*   c                ó‚   € \        \        V P                  P                  R\        4       4      P	                  4       4      # )z&Retrieve the file-specific parameters.ú/Params)r   r   r“   r^   r]   r4   s   &r'   Ú_paramsÚEmbeddedFile._paramsô   s2   € ô Ô$ d×&9Ñ&9×&=Ñ&=¸iÔIYÓI[Ó&\×&gÑ&gÓ&iÓjÐjr*   c               ó   € V ^8„  d   QhRR/# r–   r%   )r&   s   "r'   r(   r)   ú   s   € ÷ @ñ @Ð 0ñ @r*   c                ó‚   € V P                   pRV9  d   \        4       V\        R4      &   \        \        VR,          4      # )z3Ensure the /Params dictionary exists and return it.r˜   )r“   r   r   r   )r.   Úembedded_files   & r'   Ú_ensure_paramsÚEmbeddedFile._ensure_paramsù   s<   € ð ×+Ñ+ˆØ˜MÔ)Ü3CÓ3EˆMœ* YÓ/Ñ0ÜÔ$ m°IÕ&>Ó?Ð?r*   c               ó   € V ^8„  d   QhRR/# rw   r%   )r&   s   "r'   r(   r)     s   € ÷ ñ ˜ñ r*   c                ób   € V P                   P                  R4      p\        V4      '       d   R# V# )zERetrieve the subtype. This is a MIME media type, prefixed by a slash.ú/SubtypeN)r“   r^   r   r�   s   & r'   ÚsubtypeÚEmbeddedFile.subtype  s-   € ð ×#Ñ#×'Ñ'¨
Ó3ˆÜ˜5×!Ò!ÙØˆr*   c               ó    € V ^8„  d   QhRRRR/# )r   r{   zNameObject | Noner#   r$   r%   )r&   s   "r'   r(   r)   
  s   € ÷ :ñ :Ð.ð :°4ñ :r*   c                óp   € V P                   pVf   \        4       V\        R4      &   R# W\        R4      &   R# )zGSet the subtype. This should be a MIME media type, prefixed by a slash.Nr¢   )r“   r   r   )r.   r{   r�   s   && r'   r£   r¤   	  s2   € ð ×+Ñ+ˆØŠ=Ü4>³LˆMœ* ZÓ0Ó1à49œ* ZÓ0Ó1r*   c               ó   € V ^8„  d   QhRR/# )r   r#   Úbytesr%   )r&   s   "r'   r(   r)     s   € ÷ .ñ .˜ñ .r*   c                ó6   € V P                   P                  4       # )z!Retrieve the actual file content.)r“   Úget_datar4   s   &r'   r8   ÚEmbeddedFile.content  s   € ð ×"Ñ"×+Ñ+Ó-Ð-r*   c               ó    € V ^8„  d   QhRRRR/# )r   r{   r9   r#   r$   r%   )r&   s   "r'   r(   r)     s   € ÷ ,ñ ,˜[ð ,¨Tñ ,r*   c                óŠ   € \        V\        4      '       d   VP                  R4      pV P                  P	                  V4       R# )zSet the file content.r;   N)r>   r    r?   r“   r@   r�   s   &&r'   r8   r«     s3   € ô �eœS×!Ò!Ø—L‘L Ó+ˆEØ×Ñ×$Ñ$ UÖ+r*   c               ó   € V ^8„  d   QhRR/# )r   r#   z
int | Noner%   )r&   s   "r'   r(   r)     s   € ÷ ñ �jñ r*   c                ób   € V P                   P                  R4      p\        V4      '       d   R# V# )z4Retrieve the size of the uncompressed file in bytes.ú/SizeN©r™   r^   r   r�   s   & r'   ÚsizeÚEmbeddedFile.size  s+   € ð —‘× Ñ  Ó)ˆÜ˜5×!Ò!ÙØˆr*   c               ó    € V ^8„  d   QhRRRR/# )r   r{   zNumberObject | Noner#   r$   r%   )r&   s   "r'   r(   r)   '  s   € ÷ 0ñ 0Ð-ð 0°$ñ 0r*   c                óp   € V P                   pVf   \        4       V\        R4      &   R# W\        R4      &   R# )z/Set the size of the uncompressed file in bytes.Nr°   ©rž   r   r   ©r.   r{   Úparamss   && r'   r²   r³   &  s2   € ð ×$Ñ$ˆØŠ=Ü*4«,ˆF”:˜gÓ&Ó'à*/”:˜gÓ&Ó'r*   c               ó   € V ^8„  d   QhRR/# ©r   r#   údatetime.datetime | Noner%   )r&   s   "r'   r(   r)   0  s   € ÷ Eñ EÐ7ñ Er*   c                óJ   € \        V P                  P                  R4      4      # )z$Retrieve the file creation datetime.ú/CreationDate©r	   r™   r^   r4   s   &r'   Úcreation_dateÚEmbeddedFile.creation_date/  s   € ô " $§,¡,×"2Ñ"2°?Ó"CÓDÐDr*   c               ó    € V ^8„  d   QhRRRR/# ©r   r{   r»   r#   r$   r%   )r&   s   "r'   r(   r)   5  s   € ÷ Mñ MÐ#;ð MÀñ Mr*   c                óš   € V P                   pVf   \        4       V\        R4      &   R# \        V4      p\	        V4      V\        R4      &   R# )zSet the file creation datetime.Nr½   ©rž   r   r   r   r   ©r.   r{   r¸   Údate_strs   &&  r'   r¿   rÀ   4  sC   € ð ×$Ñ$ˆØŠ=Ü2<³,ˆF”:˜oÓ.Ó/ä*¨5Ó1ˆHÜ2BÀ8Ó2LˆF”:˜oÓ.Ó/r*   c               ó   € V ^8„  d   QhRR/# rº   r%   )r&   s   "r'   r(   r)   ?  s   € ÷ @ñ @Ð#;ñ @r*   c                óJ   € \        V P                  P                  R4      4      # )z4Retrieve the datetime of the last file modification.ú/ModDater¾   r4   s   &r'   Úmodification_dateÚEmbeddedFile.modification_date>  s   € ô " $§,¡,×"2Ñ"2°:Ó">Ó?Ð?r*   c               ó    € V ^8„  d   QhRRRR/# rÂ   r%   )r&   s   "r'   r(   r)   D  s   € ÷ Hñ HÐ'?ð HÀDñ Hr*   c                óš   € V P                   pVf   \        4       V\        R4      &   R# \        V4      p\	        V4      V\        R4      &   R# )z/Set the datetime of the last file modification.NrÉ   rÄ   rÅ   s   &&  r'   rÊ   rË   C  sC   € ð ×$Ñ$ˆØŠ=Ü-7«\ˆF”:˜jÓ)Ó*ä*¨5Ó1ˆHÜ-=¸hÓ-GˆF”:˜jÓ)Ó*r*   c               ó   € V ^8„  d   QhRR/# )r   r#   zbytes | Noner%   )r&   s   "r'   r(   r)   N  s   € ÷ ñ ˜,ñ r*   c                ób   € V P                   P                  R4      p\        V4      '       d   R# V# )z5Retrieve the MD5 checksum of the (uncompressed) file.ú	/CheckSumNr±   r�   s   & r'   ÚchecksumÚEmbeddedFile.checksumM  s+   € ð —‘× Ñ  Ó-ˆÜ˜5×!Ò!ÙØˆr*   c               ó    € V ^8„  d   QhRRRR/# )r   r{   zByteStringObject | Noner#   r$   r%   )r&   s   "r'   r(   r)   V  s   € ÷ 4ñ 4Ð5ð 4¸$ñ 4r*   c                óp   € V P                   pVf   \        4       V\        R4      &   R# W\        R4      &   R# )z0Set the MD5 checksum of the (uncompressed) file.NrÐ   r¶   r·   s   && r'   rÑ   rÒ   U  s2   € ð ×$Ñ$ˆØŠ=Ü.8«lˆF”:˜kÓ*Ó+à.3”:˜kÓ*Ó+r*   c               ó   € V ^8„  d   QhRR/# )r   r#   zIterator[str]r%   )r&   s   "r'   r(   r)   _  s   € ÷ (ñ (˜ñ (r*   c              #  	ó    "  € V P                   x € V P                  e.   V P                  V P                   8w  d   V P                  x € R # R # R # 5i©N)r   r|   r4   s   &r'   Ú_namesÚEmbeddedFile._names^  s@   é € à�i‰iŠØ× Ñ Ò,°×1FÑ1FÈ$Ï)É)Ô1SØ×'Ñ'Ô'ñ 2TÑ,ùs   ‚AAc               ó   € V ^8„  d   QhRR/# )r   r#   r$   r%   )r&   s   "r'   r(   r)   d  s   € ÷ -ñ -˜ñ -r*   c                óþ  € V P                   '       g   \        R4      hV P                  V P                   9   d'   V P                   P                  V P                  4      pMR\	        V P                  RR4      ;pe-   W P                   9   d   V P                   P                  V4      pM\        R4      hV P                   P                  V4       V P                   P                  V^,
          4       \        4       V n        R# )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'   ÚdeleteÚEmbeddedFile.deleted  s·   € à�|�|ˆ|ÜÐLÓMÐMØ�?‰?˜dŸl™lÔ*Ø—L‘L×&Ñ& t§¡Ó7‰Eä'.¨t¯©Ð@TÐVZÓ'[Ð[Ð#ÒhØ&¯,©,Ô6à—L‘L×&Ñ&Ð'9Ó:‰EäÐ?Ó@Ð@Ø�‰×Ñ˜ÔØ�‰×Ñ˜ �Ô#Ü*Ó,ˆŽr*   c               ó   € V ^8„  d   QhRR/# r2   r%   )r&   s   "r'   r(   r)   u  s   € ÷ Añ A˜#ñ Ar*   c                	óR   € R V P                   P                   RV P                  : R2# )Ú<z name=Ú>)Ú	__class__Ú__name__r   r4   s   &r'   Ú__repr__ÚEmbeddedFile.__repr__u  s&   € Ø�4—>‘>×*Ñ*Ð+¨6°$·)±)±¸aÐ@Ð@r*   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úmessager    ÚstrictÚboolr#   r$   r%   )r&   s   "r'   r(   r)   y  s!   € ÷ 1ñ 1 3ð 1°ð 1¸ñ 1r*   c                óN   € V'       d   \        V 4      h\        V \        R7       R# )z2Raise an exception in strict mode, warn otherwise.)ÚsourceN)r   r   rç   )rë   rì   s   &&r'   Ú_report_malformedÚEmbeddedFile._report_malformedx  s   € ÷ Ü˜wÓ'Ð'Ü�w¤x×0r*   c               ó    € V ^8„  d   QhRRRR/# )r   ra   r   r#   úIterator[EmbeddedFile]r%   )r&   s   "r'   r(   r)   €  s   € ÷ _ñ _ [ð _Ð5Kñ _r*   c              #  óÞ   "  € \        V4       FY  w  r#\        V\        4      '       d   K  VP                  4       pW^,
          ,          P                  4       p\	        WTVR7      x € K[  	  R# 5i)z©
Convert the given name tree into class instances.

Args:
    names: The name tree to load the data from.

Returns:
    Iterable of class instances for the files found.
r=   N)Ú	enumerater>   r    r]   r   )rK   ra   ro   r   Úfile_dictionaryÚdirect_names   &&    r'   Ú_load_from_namesÚEmbeddedFile._load_from_names  sS   é € ô ! Ö'‰GˆAÜ˜d¤C×(Ô(à"&§/¡/Ó"3�Ø#¨¥E�l×5Ñ5Ó7�Ü"¨ÐX]Ô^Ô^ó (ùs   ‚$A-«AA-c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úcatalogr   rì   rí   r#   ró   r%   )r&   s   "r'   r(   r)   “  s#   € ÷ >=ñ >=Ð,ð >=°dð >=ÐG]ñ >=r*   c              #  óÜ  "  € RV9  d   R# VR,          p\        V\        4      '       d   R# \        V\        4      '       g   V P                  RV 2VR7       R# RV9  d   R# VR,          p\        V\        4      '       d   R# \        V\        4      '       g   V P                  RV 2VR7       R# RV9   Ed-   VR,          P	                  4       p\        V\        4      '       d   \        4       pM.\        V\
        4      '       g   V P                  RV 2VR7       R# V FÀ  pVP	                  4       p\        V\        4      '       g   V P                  R	V 2VR7       KA  RV9  d   KJ  VR,          P	                  4       p\        V\        4      '       d   Ky  \        V\
        4      '       g   V P                  R
V 2VR7       K§  V P                  V4       Rj  x€L
  KÂ  	  RV9   dy   VR,          P	                  4       p\        V\        4      '       d   R# \        V\
        4      '       g   V P                  R
V 2VR7       R# V P                  V4       Rj  x€L
  R# R#  L‰ L
5i)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.
rX   Nz Names tree is not a dictionary: )rì   rW   z*Embedded files entry is not a dictionary: rY   z&Embedded files /Kids is not an array: z(Embedded files kid is not a dictionary: z*Embedded files name list is not an array: )r>   r   r   rð   r]   r   rø   )	rK   rû   rì   ra   Ú	containerrd   re   Ú	kid_namesÚcontainer_namess	   &&&      r'   Ú_loadÚEmbeddedFile._load’  s;  é € ð ˜7Ô"ÙØ˜Õ!ˆÜ�eœZ×(Ò(áÜ˜%Ô!1×2Ò2Ø×!Ñ!Ð$DÀUÀGÐ"LÐU[Ð!Ô\ÙØ 5Ô(ÙØÐ*Õ+ˆ	Ü�i¤×,Ò,ÙÜ˜)Ô%5×6Ò6Ø×!Ñ!Ð$NÈyÈkÐ"ZÐciÐ!ÔjÙà�iÕØ˜WÕ%×0Ñ0Ó2ˆDÜ˜$¤
×+Ò+Ü"“}‘Ü ¤k×2Ò2Ø×%Ñ%Ð(NÈtÈfÐ&UÐ^dÐ%ÔeÙÛ�ð —n‘nÓ&�Ü! #Ô'7×8Ò8Ø×)Ñ)Ð,TÐUXÐTYÐ*ZÐciÐ)ÔjÙØ 3Ô&ÙØ �M×4Ñ4Ó6�	Ü˜i¬×4Ò4ÙÜ! )¬[×9Ò9Ø×)Ñ)Ð,VÐW`ÐVaÐ*bÐkqÐ)ÔrÙØ×/Ñ/°	Ó:×:Ò:ñ ð  �yÔ Ø'¨Õ1×<Ñ<Ó>ˆOÜ˜/¬:×6Ò6ÙÜ˜o¬{×;Ò;Ø×%Ñ%Ð(RÐSbÐRcÐ&dÐmsÐ%ÔtÙØ×+Ñ+¨OÓ<×<Ò<ñ !ñ ;ñ =ùs%   ‚GI,ÇI(ÇB I,ÉI*É 	I,É*I,)r,   r-   r!   r×   )F)"rç   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r/   Úpropertyr   ÚclassmethodrS   rH   rI   r|   Úsetterr…   rŒ   r“   r™   r   rž   r£   r8   r²   r¿   rÊ   rÑ   rØ   rà   rè   Ústaticmethodrð   rø   r   Ú__static_attributes__r%   r*   r'   r   r       s¡  † ñ÷	ð ô	ó ð	ð ô/Gó ð/Gðb ô)ó ð)ðV ôó ðð ôó ðð$ ×Ñô	Vó ð	Vð ôó ðð ×ÑôYó ðYð ô
ó ð
ð "×(Ñ(ô?ó )ð?ð ôKó ðKð ôkó ðkð ô@ó ð@ð ôó ðð ‡^�^ô:ó ð:ð ô.ó ð.ð ‡^�^ô,ó ð,ð ôó ðð 
‡[�[ô0ó ð0ð ôEó ðEð ×ÑôMó ðMð ô@ó ð@ð ×ÑôHó ðHð ôó ðð ‡_�_ô4ó ð4ð ô(ó ð(õ
-õ"Að ô1ó ð1ð ô_ó ð_ð$ ö>=ó ô>=r*   r   )&Ú
__future__r   rl   Ú	functoolsr   Útypingr   r   Úpypdf._utilsr   r   r	   Úpypdf.constantsr
   rZ   r   r   rB   Úpypdf.errorsr   r   rE   r   r   r   r   r   r   r   r   r   r   ÚdatetimeÚcollections.abcr   Úpypdf._writerr   r   r%   r*   r'   Ú<module>r     sL   ðÝ "ã Ý %ß &ç PÑ PÝ 3Ý >Ý 0ß 1÷÷ ÷ ÷ ÛÝ(å'÷q=ó q=r*   