+
    yaÒj”.  ã                   óž  a € R4 t0 t R t^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHtHtHtHt ]P                   R R l4       t]P$                  ! RR	7       ! R
 R4      4       t]! 4       t]
! R]R7      t] ^ k R R ltR R ltR5R R llt]R5R R ll4       tRRRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1/t]! 4       t] ^k R2 R3 ltR# )6zConfiguration value handling.N)ÚIterator)Úcontextmanager)Ú
ContextVar)ÚAnyÚLiteralÚOptionalÚUnionc                ó:   € V ^8„  d   QhR\         \        ,          /# ©é   Úreturn)r   Ústr)Úformats   "ÚJ/opt/data/home/.local/lib/python3.14/site-packages/pypdf/_configuration.pyÚ__annotate__r      s   € ÷ $ñ $¤H¬S¥Mñ $ó    c                 ó.   € \         P                  ! R4      # )z…
Small utility function to determine the `jbig2dec` binary path only once.

Returns:
    The corresponding binary path if available.
Újbig2dec)ÚshutilÚwhich© r   r   Ú_determine_jbig2dec_binaryr      s   € ô �<Š<˜
Ó#Ð#r   T)Úfrozenc                   ó  a € ] tR t^t o RtRt Rt Rt Rt Rt	 Rt
 Rt Rt Rt Rt Rt Rt Rt ^t Rt Rt Rt Rt Rt ^dt Rt ^dt Rt ^dt R	t ]P>                  ! ] R
7      t! Rt" Rt# V 3R lR lt$V 3R lt%Rt&V t'R# )ÚConfigurationa¦  
Configuration used while processing PDF files.

These limits mostly protect against excessive resource consumption caused by malformed or malicious PDF files.

.. note::

    Avoid relying on specific implementation details of this class. The main public API consists of the values
    being considered read-only for each instance with the overwrite method to create a new instance with the
    specified values changed.
iÀhxi † i@KL i�Ð i 	= i £ái€„ iˆ  )Údefault_factoryÚcropboxFc                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úkwargsr   r   )r   )r   Ú__classdict__s   "€r   r   ÚConfiguration.__annotate__Ž   s   ø€ ÷ 
3ñ 
3©ð 
3°ñ 
3r   c                ó0   € \         P                  ! V 3/ VB # )zÒ
Creates a new configuration with the specified values overwritten.

Args:
    **kwargs: Configuration field names and their new values.

Returns:
    A new configuration with the specified values overwritten.
)ÚdataclassesÚreplace)Úselfr   s   &,r   Úwith_overwritesÚConfiguration.with_overwritesŽ   s   € ô ×"Ò" 4Ñ2¨6Ñ2Ð2r   c                óˆ  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R	&   S[ ;R
&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[S[,          ;R&   S[R,          ;R&   S[;R&   # )r   Úmaximum_declared_stream_lengthÚ(array_based_stream_maximum_output_lengthÚarray_maximum_element_countÚ dictionary_maximum_element_countÚjbig2_maximum_output_lengthÚlzw_maximum_output_lengthÚ run_length_maximum_output_lengthÚzlib_maximum_output_lengthÚ"zlib_maximum_recovery_input_lengthÚbrotli_maximum_output_lengthÚflate_maximum_columnsÚflate_maximum_row_lengthÚimage_maximum_buffer_sizeÚstream_filters_maximum_lengthÚ#stream_decoding_work_maximum_lengthÚ!stream_parsing_work_maximum_countÚxmp_maximum_input_lengthÚxmp_maximum_element_countÚoutline_maximum_entriesÚoutline_maximum_depthÚpage_tree_maximum_entriesÚpage_tree_maximum_depthÚform_fields_maximum_entriesÚform_fields_maximum_depthÚ(xform_maximum_invocations_per_extractionÚjbig2dec_binaryÚpage_merge_boxÚdisable_legacy_handling)r   Útrimbox)Úintr   r   r   Úbool)r   r   s   "€r   r   r       s§  ø‡ ‚ ñ %(Ñ4ñ ñ  /2Ñ>ñ! ñ$ "%Ñ.ñ% ñ( '*Ñ3ñ) ñ. "%Ñ1ñ/ ñ8  #Ñ/ñ9 ñB '*Ñ6ñC ñL !$Ñ0ñM ñV ),Ñ7ñW ñ` #&Ñ2ña ñl Ñ(ñm ñp "Ñ-ñq ñv  #Ñ/ñw ñ| $'Ñ+ñ} ñ@ *-Ñ:ñA ñD (+Ñ6ñE ñP "Ñ-ñQ ñT  #Ñ,ñU ñZ !Ñ*ñ[ ñ^ Ñ$ñ_ ñd  #Ñ,ñe ñh !Ñ&ñi ñn "%Ñ.ño ñr  #Ñ(ñs ñx /2Ñ9ñy ñ~ ™c•]Ñbñ ñN Ð0Õ1Ñ=ñO ñT "Ñ)òU r   r   N)(Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   r"   Úfieldr   rA   rB   rC   r%   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r      sF  ø‡ € ñ
ð +5Ð"ØEØ4>Ð,ØDØ'.ÐØAØ,3Ð$ØLà'1Ððð &0Ððð -7Ð$ðð '1Ððð /8Ð&ðð )3Ð ðð
 ")ÐØWØ$-ÐØPà%/ÐØEà)+Ð!Ø;Ø/:Ð'ØLØ-6Ð%ðð
 %.ÐØVØ%,ÐØ>à#*ÐØ8Ø!$ÐØ8à%,ÐØAØ#&ÐØ5à'.ÐØ4Ø%(ÐØ4à49Ð,Ø[à%0×%6Ò%6ÐGaÔ%b€Oðð 5>€NØ+à$)Ðð÷
3ð 
3÷q ƒ r   r   Úpypdf_configuration)Údefaultc                ó$   € V ^8„  d   QhR\         /# r
   ©r   )r   s   "r   r   r   ¥   s   € ÷ 'ñ 'œ=ñ 'r   c                 ó*   € \         P                  4       # )zI
Get the current configuration.

Returns:
    The current configuration.
)ÚCURRENT_CONFIGURATIONÚgetr   r   r   Úget_configurationrW   ¥   s   € ô !×$Ñ$Ó&Ð&r   c                ót   € V ^8„  d   QhR\         \        ,          R\        \        \        3,          R\        /# ©r   ÚconfigurationÚ
overwritesr   )r   r   Údictr   r   )r   s   "r   r   r   ¯   s3   € ÷ .ñ .ÜœMÕ*ð.ä”Sœ#�X•ð.ô ñ.r   c                óF   € V e   T M	\        4       pVP                  ! R/ VB # )a   
Utility function to build a new configuration from the given values.

Args:
    configuration: A possible explicit configuration to use instead of the current configuration.
    overwrites: Entries to overwrite.

Returns:
    The generated configuration.
r   )rW   r%   )rZ   r[   Úbases   && r   Ú_build_configurationr_   ¯   s(   € ð *Ò5‰=Ô;LÓ;N€DØ×ÒÑ- *Ñ-Ð-r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# rY   )r   r   r   )r   s   "r   r   r   Á   s+   € ÷ ñ ÜœMÕ*ðäðô ñr   c                óF   € \        W4      p\        P                  V4       V# )a  
Overwrite the configuration for the current execution context.

Args:
    configuration: A direct configuration instance to use.
    **overwrites: Configuration parameters to overwrite in the current or given configuration.

Returns:
    The new configuration.
)r_   rU   Úset)rZ   r[   Únew_configurations   &, r   Úoverwrite_configurationrd   Á   s$   € ô -¨]ÓGÐÜ×ÑÐ/Ô0ØÐr   c                óh   € V ^8„  d   QhR\         \        ,          R\        R\        \        ,          /# rY   )r   r   r   r   )r   s   "r   r   r   Õ   s0   € ÷ +ñ +ÜœMÕ*ð+äð+ô ŒmÕñ+r   c              +  ó¶   "  € \        W4      p\        P                  V4      p Vx € \        P                  V4       R#   \        P                  T4       i ; i5i)zð
Temporarily overwrite the configuration.

Args:
    configuration: A direct configuration instance to use.
    **overwrites: Configuration parameters to overwrite in the current or given configuration.

Returns:
    The new configuration.
N)r_   rU   rb   Úreset)rZ   r[   rc   Útokens   &,  r   Úapply_configurationri   Ô   sK   é € ô -¨]ÓGÐÜ!×%Ñ%Ð&7Ó8€Eð+ØÒä×#Ñ# EÖ*øÔ×#Ñ# EÕ*üs   ‚!A¤? ¨A¿AÁAr(   ÚMAX_DECLARED_STREAM_LENGTHr)   Ú$MAX_ARRAY_BASED_STREAM_OUTPUT_LENGTHr,   ÚJBIG2_MAX_OUTPUT_LENGTHr-   ÚLZW_MAX_OUTPUT_LENGTHr.   ÚRUN_LENGTH_MAX_OUTPUT_LENGTHr/   ÚZLIB_MAX_OUTPUT_LENGTHr0   ÚZLIB_MAX_RECOVERY_INPUT_LENGTHr2   ÚFLATE_MAX_COLUMNSr3   ÚFLATE_MAX_ROW_LENGTHr4   ÚFLATE_MAX_BUFFER_SIZEr8   ÚXMP_MAX_INPUT_LENGTHr9   ÚXMP_MAX_ELEMENT_COUNTrA   ÚJBIG2DEC_BINARYrB   ÚMERGE_CROP_BOXc                ó$   € V ^8„  d   QhR\         /# r
   rS   )r   s   "r   r   r     s   € ÷ ?1ñ ?1¤Mñ ?1r   c                 óæ  € \        4       p V P                  '       d   V # ^ RIHp ^ RIHpHpHpHpH	pH
pHpHp	Hp
HpHp ^ RIHpHp RV	RVRVRVRV
R	VR
VRVRVRVRVRVRVRV/p/ p\&        P)                  4        F_  w  ppVV,          pV\+        \,        V4      8w  g   K&  V\.        9  d*   ^ RIHp V! VRV 2RR7       \.        P5                  V4       VVV&   Ka  	  V'       g   V # \7        R/ VB # )z—
Overwrite the current configuration with the legacy configuration if it has been changed.

Returns:
    The new configuration which has been applied.
)rw   )rs   rq   rr   rl   rv   rm   rk   rj   rn   ro   rp   )ru   rt   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   )Údeprecate_with_replacementzConfiguration.z7.0.0)Úold_nameÚnew_nameÚ
removed_inr   )rW   rC   Úpypdf._pagerw   Úpypdf.filtersrs   rq   rr   rl   rv   rm   rk   rj   rn   ro   rp   Ú	pypdf.xmpru   rt   ÚLEGACY_NAME_MAPPINGÚitemsÚgetattrÚDEFAULT_CONFIGURATIONÚWARNED_LEGACY_OVERWRITESÚpypdf._utilsrz   Úaddrd   )rZ   rw   rs   rq   rr   rl   rv   rm   rk   rj   rn   ro   rp   ru   rt   Úlegacy_valuesr[   Ú
field_nameÚlegacy_nameÚlegacy_valuerz   s                        r   Úapply_legacy_configurationrŒ     s&  € ô &Ó'€MØ×,×,Ð,ØÐå*÷÷ ÷ ñ ÷ Fð 	%Ð&@Ø.Ð0TØ!Ð#:ØÐ!6Ø&Ð(DØ Ð"8Ø(Ð*HØÐ.ØÐ 4ØÐ!6ØÐ 4ØÐ!6Ø˜?Ø˜.ð€Mð  46€Jä#6×#<Ñ#<Ö#>Ñˆ
�KØ$ [Õ1ˆàœ7Ô#8¸*ÓEÖEØÔ":Ô:ÝCá*Ø(Ø-¨j¨\Ð:Ø&õô
 )×,Ñ,¨[Ô9à%1ˆJ�zÓ"ñ $?÷  ØÐÜ"Ñ0 ZÑ0Ð0r   c                ó”   € V ^8„  d   Qh/ ^ \         9   d   \        \        ,          ;R&   ^\         9   d   \        \        ,          ;R&   # )r   rU   r…   )Ú__conditional_annotations__r   r   rb   r   )r   s   "r   r   r      s=   € × #Ñ #÷|ò ”z¤-Õ0ñ ñ} $÷z +Ò *œ#œc�(Ñ *ò{ $r   )N)rŽ   rK   r"   Ú	functoolsr   Úcollections.abcr   Ú
contextlibr   Úcontextvarsr   Útypingr   r   r   r   Úcacher   Ú	dataclassr   r„   rU   rW   r_   rd   ri   r�   rb   r…   rŒ   r   )rŽ   s   @r   Ú<module>r–      s  øðÞ #Û Û Û Ý $Ý %Ý "ß 0Ó 0ð ‡�ô$ó ð$ð ×Ò˜dÔ#÷A3ð A3ó $ðA3ñJ &›Ð ñ 4>ØØ!ô4Ð ó õ'õ.÷$ð& ö+ó ð+ð0 %Ð&BØ.Ð0VØ!Ð#<ØÐ!8Ø&Ð(FØ Ð":Ø(Ð*JØÐ0ØÐ 6ØÐ!8ØÐ 6ØÐ!8ØÐ(ØÐ&ðÐ ñ$ &)£UÐ Ó *÷?1r   