
    f                     "    d dl mZ d dlmZ d Zy)    wraps)	ratelimitc                      ddl m} |j                  j                         }|rMt	        j
                  |      }j                  d|j                         j                  d|j                          fd}|S )Nr   )app_settingsdurationamountc                 4     t                fd       }|S )Nc                 T    t        j                  | fdi}|s | g|i |}|S )Naction)r   consume_or_429)requestargskwargsrespr   function	rl_kwargss       H/var/www/equiseq/venv/lib/python3.11/site-packages/allauth/decorators.pywrapz+rate_limit.<locals>.decorator.<locals>.wrap   s9    ++GPFPiPD9$9&9K    r   )r   r   r   r   s   ` r   	decoratorzrate_limit.<locals>.decorator   s     	x	 
	 r   )	allauth.accountr   RATE_LIMITSgetr   parse
setdefaultr   r	   )r   r   r   rater   s   ``   r   
rate_limitr      sb    ,##''/Dt$Z7Xt{{3 r   N)	functoolsr   allauth.corer   r    r   r   <module>r"      s     "r   