Hacked By AnonymousFox
B
���a7� � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddlm
Z
ddlmZ ddlm
Z
ddlmZ d d
lmZ d dlmZ d dlmZ d d
lmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm Z d dlm!Z! d dlm"Z" d dlm#Z# d dlm$Z$ d dlm%Z% d dl&m'Z' d dl&m(Z( d dl&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%lm0Z0 d d&l1m2Z2 d d'l3m4Z4 d d(l3m5Z5 d d)l3m6Z6 d d*l7m8Z8 d d+l7m9Z9 d d,l7m:Z: d d-l7m;Z; d d.l7m<Z< d d/l7m=Z= d d0l7m>Z> ej?�r|ddl@ZAd d1lBmCZC d d2lDmEZE d d3lFmGZG ejHd4d5d6�ZIe d7d8�ejJeI ejKeId9�d:d;��ZLeMejNejOejPejQeRf d<f d=�d>d?�ZSejNejO ejNejOejPejQeRf d<f d@�dAdB�ZTd5ejUejVeRejJdC f ejWeRdCf dD�dEdF�ZXd5d5dG�dHdI�ZYG dJd5� d5�ZZG dKd<� d<�Z[G dLdM� dM�Z\G dNdO� dO�Z]G dPdQ� dQ�Z^e[eZ__dS )RzKClasses for managing templates and their runtime and compile time
options.
� N)�ChainMap)� lru_cache)�partial)�reduce)�CodeType)�Markup� )�nodes)�
CodeGenerator)�generate)�BLOCK_END_STRING)�BLOCK_START_STRING)�COMMENT_END_STRING)�COMMENT_START_STRING)�DEFAULT_FILTERS)�DEFAULT_NAMESPACE)�DEFAULT_POLICIES)�
DEFAULT_TESTS)�KEEP_TRAILING_NEWLINE)�LINE_COMMENT_PREFIX)�LINE_STATEMENT_PREFIX)�
LSTRIP_BLOCKS)�NEWLINE_SEQUENCE)�TRIM_BLOCKS)�VARIABLE_END_STRING)�VARIABLE_START_STRING)�TemplateNotFound)�TemplateRuntimeError)�TemplatesNotFound)�TemplateSyntaxError)�UndefinedError)� get_lexer)�Lexer)�TokenStream)�EvalContext)�Parser)�Context)�new_context)� Undefined)�_PassArg)�concat)�consume)�
import_string)�internalcode)�LRUCache)�missing)�
BytecodeCache)� Extension)�
BaseLoader�
_env_bound�Environment)�bound�
)�maxsize)�cls�args�returnc G s | |� }d|_ |S )a Return a new spontaneous environment. A spontaneous environment
is used for templates created directly rather than through an
existing environment.
:param cls: Environment class to create.
:param args: Positional arguments passed to environment.
T)�shared)r8 r9 �env� r= �C/opt/alt/python37/lib/python3.7/site-packages/jinja2/environment.py�get_spontaneous_environmentC s r? �Template)�sizer: c C s | dkrdS | dk ri S t | �S )z*Return the cache class for the given size.r N)r. )rA r= r= r>