
    9Cg                         d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm	Z	 	 d d	l
Z
n# e$ r d	Z
Y nw xY w	 d d	lZn# e$ r d	ZY nw xY w G d
 de          Z G d de          Zd	S )    )Any)FileResponse)HTMLResponse)JSONResponse)PlainTextResponse)RedirectResponse)Response)StreamingResponseNc                   "    e Zd ZdZdedefdZdS )UJSONResponsez
    JSON response using the high-performance ujson library to serialize data to JSON.

    Read more about it in the
    [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
    contentreturnc                 v    t           
J d            t          j        |d                              d          S )Nz,ujson must be installed to use UJSONResponseF)ensure_asciizutf-8)ujsondumpsencodeselfr   s     C/var/www/api/venv/lib/python3.11/site-packages/fastapi/responses.pyrenderzUJSONResponse.render   s:      "P   {7777>>wGGG    N__name__
__module____qualname____doc__r   bytesr    r   r   r   r      sH         Hc He H H H H H Hr   r   c                   "    e Zd ZdZdedefdZdS )ORJSONResponsez
    JSON response using the high-performance orjson library to serialize data to JSON.

    Read more about it in the
    [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
    r   r   c                 ~    t           
J d            t          j        |t           j        t           j        z            S )Nz.orjson must be installed to use ORJSONResponse)option)orjsonr   OPT_NON_STR_KEYSOPT_SERIALIZE_NUMPYr   s     r   r   zORJSONResponse.render,   s@    !!#S!!!|F3f6PP
 
 
 	
r   Nr   r   r   r   r!   r!   $   s@         
c 
e 
 
 
 
 
 
r   r!   )typingr   starlette.responsesr   r   r   r   r   r	   r
   r   ImportErrorr$   r   r!   r   r   r   <module>r*      sc         < < < < < < < < < < < < < < < < < < F F F F F F D D D D D D 4 4 4 4 4 4 F F F F F FLLLL   EEEMMMM   FFF
H 
H 
H 
H 
HL 
H 
H 
H
 
 
 
 
\ 
 
 
 
 
s!   7 A AA
 
AA