+
    ‰vj
  ã                   óŒ   € Rt ^ RIt^ RIt^ RIHt ^ RIHt ^ RI	H
t
 ]P                  ! R4      t ! R R ]P                  4      tR# )ÚPdfUnspHandlerN)ÚPdfiumErrorÚ	pypdfium2c                   óT   a € ] tR t^t o RtRtR tR t]R 4       t	R t
R	R ltRtV tR# )
r   aM  
Unsupported feature handler helper class.

Attributes:
    raw (UNSUPPORT_INFO):
       The underlying pdfium ``UNSUPPORT_INFO`` struct.
    handlers (dict[str, typing.Callable]):
        A dictionary of named handler functions to be called with an unsupported code (:attr:`FPDF_UNSP_*`) when PDFium detects an unsupported feature.
Nc                óL   € / V n         \        P                  ! ^R7      V n        R# )é   )ÚversionN)ÚhandlersÚpdfium_cÚUNSUPPORT_INFOÚraw©Úselfs   &Úb/var/www/html/daimler-pipeline/venv/lib/python3.14/site-packages/pypdfium2/_helpers/unsupported.pyÚ__init__ÚPdfUnspHandler.__init__   s   € ØˆŒÜ×*Ò*°1Ô5ˆŽó    c                óX   € V P                   P                  4        F  pV! V4       K  	  R # ©N)r	   Úvalues)r   Ú_ÚtypeÚhandlers   &&& r   Ú__call__ÚPdfUnspHandler.__call__    s    € Ø—}‘}×+Ñ+Ö-ˆGÙ�DŽMó .r   c                óp   € \         P                  R \        P                  P	                  V 4       24       R# )zUnsupported PDF feature: N)Ú
lib_loggerÚwarningÚpdfium_iÚUnsupportedInfoToStrÚget)r   s   &r   Ú_defaultÚPdfUnspHandler._default$   s+   € ä×ÑÐ6´x×7TÑ7T×7XÑ7XÐY]Ó7^Ð6_Ð`Öar   c                óZ   € \        V P                  4       \        V P                  4       R # r   )Úidr	   r   r   s   &r   Ú_keepÚPdfUnspHandler._keep(   s   € Ü
ˆ4�=‰=ÔÜ
ˆ4�8‰8Žr   c                ó–  € \         P                  '       d   \        R4      h\        P                  ! V P
                  RV 4       \        P                  ! V P
                  4      pV'       g   \        R4      hV \         n        \        P                  ! V P                  4       V'       d    \         P                  V P                  R&   R# R# )a2  
Register the handler with PDFium, and install an exit function that will keep the object alive until the end of session.

Once set up, a :class:`.PdfUnspHandler` cannot be removed. It stands and falls with the library.
Thus, this function can only be called once in a session.
However, you may change the wrapped :attr:`.handlers` callbacks.
Call ``.handlers.clear()`` to remove all handlers, thereby effectively disabling the instance.

Parameters:
    add_default (bool):
        If True, add a default callback that will log unsupported features as warning.
zAOnly one PdfUnspHandler instance can be registered for a session.ÚFSDK_UnSupport_Handlerz)Failed to register PdfUnspHandler object.ÚdefaultN)r   Ú	SINGLETONÚRuntimeErrorr   Úset_callbackr   r
   ÚFSDK_SetUnSpObjProcessHandlerr   ÚatexitÚregisterr%   r!   r	   )r   Úadd_defaultÚoks   && r   ÚsetupÚPdfUnspHandler.setup,   sŒ   € ô ×#×#Ð#ÜÐbÓcÐcä×Ò˜dŸh™hÐ(@À$ÔGÜ×3Ò3°D·H±HÓ=ˆßÜÐIÓJÐJØ#'ŒÔ ô 	�Š˜Ÿ
™
Ô#ßÜ'5×'>Ñ'>ˆD�M‰M˜)Ó$ñ r   )r	   r   )T)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r*   r   r   Ústaticmethodr!   r%   r2   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s@   ø‡ € ñð €Iò6òð ñbó ðbò÷?ò ?r   )r   )Ú__all__r.   ÚloggingÚpypdfium2.rawr   r
   Úpypdfium2.internalÚinternalr   Úpypdfium2._helpers.miscr   Ú	getLoggerr   ÚAutoCastabler   © r   r   Ú<module>rF      s=   ðð €ã Û Ý  Ý %Ý /à×Ò˜{Ó+€
ô6?�h×+Ñ+ö 6?r   