#K);hddlmZddlmZddlmZddlmZddlmZddl m Z ddl m Z dd l m Z dd l mZd ZGd d e ZGdde ZGddeZee_dS)) literal_eval)chain)islice)nodes text_type) CodeGenerator) has_safe_repr) Environment)Templatec4tt|d}|sdSt|dkr |d}n-ddt ||D} t |S#t ttf$r|cYSwxYw)akReturn a native Python type from the list of compiled nodes. If the result is a single node, its value is returned. Otherwise, the nodes are concatenated as strings. If the result can be parsed with :func:`ast.literal_eval`, the parsed value is returned. Otherwise, the string is returned. :param nodes: Iterable of nodes to concatenate. Nrrc,g|]}t|Sr.0vs r/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/nativetypes.py z!native_concat..sAAA ! AAA) listrlenjoinrr ValueError SyntaxError MemoryError)rheadraws r native_concatr! s ua  ! !D t 4yyA~~1ghhAAeD%.@.@AAABBC    [ 1 s,A;;BBc@eZdZdZedZdZdZdZdZ dS)NativeCodeGeneratorzgA code generator which renders Python types by not adding ``to_string()`` around output nodes. c|SNr)values r_default_finalizez%NativeCodeGenerator._default_finalize+s rcZtdd|DS)Nrc,g|]}t|Srrrs rrz:NativeCodeGenerator._output_const_repr..0s:::qill:::r)reprr)selfgroups r_output_const_reprz&NativeCodeGenerator._output_const_repr/s+CHH::E:::;;<<rArrrr#r#&su\=== % % %%%%rr#ceZdZdZeZdS)NativeEnvironmentz=An environment that renders templates to native Python types.N)rBrCrDrEr#code_generator_classrrrrHrHFsGG.rrHceZdZeZdZdS)NativeTemplatect|i|} t|||S#t$r|jcYSwxYw)aBRender the template to produce a native Python type. If the result is a single node, its value is returned. Otherwise, the nodes are concatenated as strings. If the result can be parsed with :func:`ast.literal_eval`, the parsed value is returned. Otherwise, the string is returned. )dictr!root_render_func new_context Exception environmenthandle_exception)r+argskwargsvarss rrenderzNativeTemplate.renderOs{T$V$$ 7 !6!6t7G7G7M7M!N!NOO O 7 7 7#4466 6 6 6 7s4A#A)(A)N)rBrCrDrHenvironment_classrVrrrrKrKLs)) 7 7 7 7 7rrKN)astr itertoolsrrrr_compatr compilerr r rQr r r!r#rHrKtemplate_classrrrr]sF############$$$$$$!!!!!!2-@///// /// 77777X777$$2 r