§
    ¤”j°	  ã                   ód   — d Z ddlZddlmZ ddlmZ ddlmZmZ d„ Z	d„ Z
d„ Zd	„ Zd
„ Zd„ Zd„ ZdS )aR  
A set of request processors that return dictionaries to be merged into a
template context. Each function takes the request object as its only parameter
and returns a dictionary to add to the context.

These are referenced from the 'context_processors' option of the configuration
of a DjangoTemplates backend and used by RequestContext.
é    N)Úsettings©Ú	get_token)ÚSimpleLazyObjectÚlazyc                 ó0   ‡ — ˆ fd„}dt          |¦  «        iS )z 
    Context processor that provides a CSRF token, or the string 'NOTPROVIDED' if
    it has not been provided by either a view decorator or the middleware
    c                  ó.   •— t          ‰¦  «        } | €dS | S )NÚNOTPROVIDEDr   )ÚtokenÚrequests    €úq/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/django/template/context_processors.pyÚ_get_valzcsrf.<locals>._get_val   s!   ø€ Ý˜'Ñ"Ô"ˆØˆ=ð !�=àˆLó    Ú
csrf_token)r   )r   r   s   ` r   Úcsrfr      s2   ø€ ðð ð ð ð ð Õ*¨8Ñ4Ô4Ð5Ð5r   c                 ó¼   ‡— i }t           j        rL| j                             d¦  «        t           j        v r&d|d<   ddlmŠ t          ˆfd„t          ¦  «        |d<   |S )z9
    Return context variables helpful for debugging.
    ÚREMOTE_ADDRTÚdebugr   ©Úconnectionsc                  ót   •— t          t          j                             ˆ fd„‰ D ¦   «         ¦  «        ¦  «        S )Nc              3   ó2   •K  — | ]}‰|         j         V — Œd S )N)Úqueries)Ú.0Úxr   s     €r   ú	<genexpr>z*debug.<locals>.<lambda>.<locals>.<genexpr>1   s;   øè è € ð .ð .Ø/0�K ”NÔ*ð.ð .ð .ð .ð .ð .r   )ÚlistÚ	itertoolsÚchainÚfrom_iterabler   s   €r   ú<lambda>zdebug.<locals>.<lambda>0   sL   ø€ •DÝ”×-Ò-ð .ð .ð .ð .Ø4?ð.ñ .ô .ñ ô ñô € r   Úsql_queries)	r   ÚDEBUGÚMETAÚgetÚINTERNAL_IPSÚ	django.dbr   r   r   )r   Úcontext_extrasr   s     @r   r   r   $   s„   ø€ ð €NÝ„~ð 
˜'œ,×*Ò*¨=Ñ9Ô9½XÔ=RÐRÐRØ"&ˆ�wÑØ)Ð)Ð)Ð)Ð)Ð)õ )-ðð ð ð õ
 ñ)
ô )
ˆ�}Ñ%ð Ðr   c                 óv   — ddl m} t          j        |                     ¦   «         |                     ¦   «         dœS )Nr   )Útranslation)Ú	LANGUAGESÚLANGUAGE_CODEÚLANGUAGE_BIDI)Údjango.utilsr*   r   r+   Úget_languageÚget_language_bidi)r   r*   s     r   Úi18nr1   :   sI   € Ø(Ð(Ð(Ð(Ð(Ð(õ Ô'Ø$×1Ò1Ñ3Ô3Ø$×6Ò6Ñ8Ô8ðð ð r   c                 ó:   — ddl m} d|                     ¦   «         iS )Nr   )ÚtimezoneÚ	TIME_ZONE)r.   r3   Úget_current_timezone_name)r   r3   s     r   Útzr6   D   s+   € Ø%Ð%Ð%Ð%Ð%Ð%à˜×;Ò;Ñ=Ô=Ð>Ð>r   c                 ó   — dt           j        iS )z>
    Add static-related context variables to the context.
    Ú
STATIC_URL)r   r8   ©r   s    r   Ústaticr:   J   s   € ð �(Ô-Ð.Ð.r   c                 ó   — dt           j        iS )z=
    Add media-related context variables to the context.
    Ú	MEDIA_URL)r   r<   r9   s    r   Úmediar=   Q   s   € ð �Ô+Ð,Ð,r   c                 ó
   — d| iS )Nr   © r9   s    r   r   r   X   s   € Ø�wÐÐr   )Ú__doc__r   Údjango.confr   Údjango.middleware.csrfr   Údjango.utils.functionalr   r   r   r   r1   r6   r:   r=   r   r?   r   r   ú<module>rD      sÌ   ððð ð Ð Ð Ð à  Ð  Ð  Ð  Ð  Ð  Ø ,Ð ,Ð ,Ð ,Ð ,Ð ,Ø :Ð :Ð :Ð :Ð :Ð :Ð :Ð :ð6ð 6ð 6ð&ð ð ð,ð ð ð?ð ?ð ?ð/ð /ð /ð-ð -ð -ð ð  ð  ð  ð  r   