
    ~hG                     @    d dl Z ddlmZ ddlmZ  G d de      Zd Zy)    N   )JsonWebEncryption)JWEZipAlgorithmc                        e Zd ZdZdZd Zd Zy)DeflateZipAlgorithmDEFDEFLATEc                 6    t        j                  |      }|dd S )z+Compress bytes data with DEFLATE algorithm.r   )zlibcompress)selfsdatas      Y/opt/mcp/mcp-sentiment/venv/lib/python3.12/site-packages/authlib/jose/rfc7518/jwe_zips.pyr   zDeflateZipAlgorithm.compress   s    }}QAbz    c                 L    t        j                  |t         j                         S )zDecompress DEFLATE bytes data.)r   
decompress	MAX_WBITS)r   r   s     r   r   zDeflateZipAlgorithm.decompress   s    q4>>/22r   N)__name__
__module____qualname__namedescriptionr   r    r   r   r   r      s    DK3r   r   c                  >    t        j                  t                      y )N)r   register_algorithmr   r   r   r   register_jwe_rfc7518r      s    (()<)>?r   )r   rfc7516r   r   r   r   r   r   r   <module>r       s      ' %3/ 3@r   