
    hA^                     ~   % S SK r S SKrS SKrS SKrS SKrS SKJr  S SKJr  S SK	J
r
  S SK	Jr  S SKJr  S SKJr  S SKJr  S SKr\R&                  (       a  S SKr\R,                  " S	\R.                  S
\R0                  4   S9r " S S5      r\" 5       r\R0                  \S'    \" 5       r\R>                  \   \S'   SR@                  r!S\S\4S jr"S\S\4S jr#S\S\4S jr$ " S S\ RJ                  5      r&S\S\4S jr'S\R0                  S\(4S jr)S\RT                  \R0                     SS4S jr+SFS jr,SGS\-S\(S\R0                  4S  jjr.SHS!\-S"\-S\R^                  \R`                  \R0                        4S# jjr1S\R0                  S\-4S$ jr2S\R0                  S\-4S% jr3\Rh                  " S&\Rj                  \Rl                  -  5      r7\Rh                  " S'5      r8    SIS(\-S)\R^                  \9   S*\R^                  \-   S+\R^                  \-   S,\R^                  \RT                  \-      S\-4S- jjr: SJS.\9S/\(S0\9S1\9S\-4
S2 jjr;SKS\R0                  S3\-S4\(S\-4S5 jjr<\Rz                  R|                   " S6 S75      5       r?    SLS8\R                  \-   S9\R                  \-   S:\(S;\(S\R.                  \R^                  \-   /\(4   4
S< jjrA SMS\R0                  S=\R^                  \R.                  S
\-4      S>\R0                  S\R                  4S? jjrC " S@ SA5      rD " SB SC5      rE " SD SE5      rFg)N    N)abc)deque)choice)	randrange)Lock)CodeType)quote_from_bytesF.)boundc                   0    \ rS rSrS\4S jrS\4S jrSrg)_MissingType   returnc                     gNmissing selfs    D/var/www/auris/envauris/lib/python3.13/site-packages/jinja2/utils.py__repr___MissingType.__repr__           c                     gr   r   r   s    r   
__reduce___MissingType.__reduce__   r   r   r   N)__name__
__module____qualname____firstlineno__strr   r   __static_attributes__r   r   r   r   r      s    # C r   r   r   internal_code fr   c                 0    [         R                  U l        U $ )a  Pass the :class:`~jinja2.runtime.Context` as the first argument
to the decorated function when called while rendering a template.

Can be used on functions, filters, and tests.

If only ``Context.eval_context`` is needed, use
:func:`pass_eval_context`. If only ``Context.environment`` is
needed, use :func:`pass_environment`.

.. versionadded:: 3.0.0
    Replaces ``contextfunction`` and ``contextfilter``.
)_PassArgcontextjinja_pass_argr&   s    r   pass_contextr,   &   s      ''AHr   c                 0    [         R                  U l        U $ )as  Pass the :class:`~jinja2.nodes.EvalContext` as the first argument
to the decorated function when called while rendering a template.
See :ref:`eval-context`.

Can be used on functions, filters, and tests.

If only ``EvalContext.environment`` is needed, use
:func:`pass_environment`.

.. versionadded:: 3.0.0
    Replaces ``evalcontextfunction`` and ``evalcontextfilter``.
)r(   eval_contextr*   r+   s    r   pass_eval_contextr/   7   s      ,,AHr   c                 0    [         R                  U l        U $ )a  Pass the :class:`~jinja2.Environment` as the first argument to
the decorated function when called while rendering a template.

Can be used on functions, filters, and tests.

.. versionadded:: 3.0.0
    Replaces ``environmentfunction`` and ``environmentfilter``.
)r(   environmentr*   r+   s    r   pass_environmentr2   H   s      ++AHr   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\	S\
S\R                  S    4S j5       rSrg)r(   U   objr   c                 >    [        US5      (       a  UR                  $ g )Nr*   )hasattrr*   )clsr5   s     r   from_obj_PassArg.from_objZ   s    3())%%%r   r   N)r   r   r    r!   enumautor)   r.   r1   classmethodr
   tOptionalr9   r#   r   r   r   r(   r(   U   sL    iikG99;L))+K1 J!7  r   r(   c                 D    [         R                  U R                  5        U $ )z%Marks the function as internally used)r$   add__code__r+   s    r   internalcoderC   b   s    ajj!Hr   r5   c                 $    SSK Jn  [        X5      $ )a  Check if the object passed is undefined.  This does nothing more than
performing an instance check against :class:`Undefined` but looks nicer.
This can be used for custom filters or tests that want to react to
undefined variables.  For example a custom default filter can look like
this::

    def default(var, default=''):
        if is_undefined(var):
            return default
        return var
   )	Undefined)runtimerF   
isinstance)r5   rF   s     r   is_undefinedrI   h   s     #c%%r   iterablec                     U  H  nM     g)z4Consumes an iterable without doing anything with it.Nr   )rJ   _s     r   consumerM   y   s     r   c                  \    SSK Jn   SSKJn  U R	                  5         UR                  5         g)a  Jinja keeps internal caches for environments and lexers.  These are
used so that Jinja doesn't have to recreate environments and lexers all
the time.  Normally you don't have to care about that but if you are
measuring memory consumption you may want to clean the caches.
rE   )get_spontaneous_environment)_lexer_cacheN)r1   rO   lexerrP   cache_clearclear)rO   rP   s     r   clear_cachesrT      s"     9#++-r   import_namesilentc                      SU ;   a  U R                  SS5      u  p#O&SU ;   a  U R                  S5      u  p$nO[        U 5      $ [        [        USSU/5      U5      $ ! [        [
        4 a    U(       d  e  gf = f)a|  Imports an object based on a string.  This is useful if you want to
use import paths as endpoints or something similar.  An import path can
be specified either in dotted notation (``xml.sax.saxutils.escape``)
or with a colon as object delimiter (``xml.sax.saxutils:escape``).

If the `silent` is True the return value will be `None` if the import
fails.

:return: imported object
:rE   .N)split
rpartition
__import__getattrImportErrorAttributeError)rU   rV   moduler5   rL   s        r   import_stringra      s    
+%++C3KFCK(33C8NFsk**z&$se<cBB(  s   A A A A76A7filenamemodec                 b    [         R                  R                  U 5      (       d  g[        X5      $ )zTReturns a file descriptor for the filename if that file exists,
otherwise ``None``.
N)ospathisfileopen)rb   rc   s     r   open_if_existsri      s%     77>>(##r   c                     U c  gU [         L a  g[        U 5      nUR                  S:X  a  UR                   S3$ UR                   SUR                   S3$ )zReturns the name of the object's type.  For some recognized
singletons the name of the object is returned instead. (For
example for `None` and `Ellipsis`).
NoneEllipsisbuiltinsz objectrY   )rl   typer   r   )r5   r8   s     r   object_type_reprro      sX    
 {	
s)C
~~#,,w''nnQs||nG44r   c                     SSK Jn  U" U 5      $ )z.Format an object using :func:`pprint.pformat`.r   )pformat)pprintrq   )r5   rq   s     r   rq   rq      s    3<r   a@  
    ^
    (
        (https?://|www\.)  # scheme or www
        (([\w%-]+\.)+)?  # subdomain
        (
            [a-z]{2,63}  # basic tld
        |
            xn--[\w%]{2,59}  # idna tld
        )
    |
        ([\w%-]{2,63}\.)+  # basic domain
        (com|net|int|edu|gov|org|info|mil)  # basic tld
    |
        (https?://)  # scheme
        (
            (([\d]{1,3})(\.[\d]{1,3}){3})  # IPv4
        |
            (\[([\da-f]{0,4}:){2}([\da-f]{0,4}:?){1,6}])  # IPv6
        )
    )
    (?::[\d]{1,5})?  # port
    (?:[/?#]\S*)?  # path, query, and fragment
    $
    z^\S+@\w[\w.-]*\.\w+$texttrim_url_limitreltargetextra_schemesc           
        ^ Tb  S[         S[         4U4S jjnOS[         S[         4S jn[        R                  " S[        [        R                  " U 5      5      5      nU(       a  S[        R                  " U5       S3OS	nU(       a  S
[        R                  " U5       S3OS	n[        U5       GHz  u  pS	U
S	pn[        R                  " SU5      nU(       a"  UR                  5       nXR                  5       S nUR                  S5      (       aA  [        R                  " SU5      nU(       a#  UR                  5       nUSUR                  5        nS H  u  nnUR                  U5      nUUR                  U5      ::  a  M.  [        [        UUR                  U5      5      5       H,  nUR                  U5      [!        U5      -   nXSU -  nUUS nM.     M     ["        R                  U5      (       aV  UR%                  S5      (       d  UR%                  S5      (       a  SU SU U SU" U5       S3nOSU SU U SU" U5       S3nOUR%                  S5      (       a*  [&        R                  USS 5      (       a  SU SUSS  S3nOSU;   aV  UR%                  S5      (       d@  UR%                  S5      (       d*  SU;  a$  [&        R                  U5      (       a
  SU SU S3nO:Ub7  U H1  nUU:w  d  M  UR%                  U5      (       d  M#  SU SU U SU S3nM3     U U U 3Xi'   GM}     S	R)                  U5      $ )a  Convert URLs in text into clickable links.

This may not recognize links in some situations. Usually, a more
comprehensive formatter, such as a Markdown library, is a better
choice.

Works on ``http://``, ``https://``, ``www.``, ``mailto:``, and email
addresses. Links with trailing punctuation (periods, commas, closing
parentheses) and leading punctuation (opening parentheses) are
recognized excluding the punctuation. Email addresses that include
header fields are not recognized (for example,
``mailto:address@example.com?cc=copy@example.com``).

:param text: Original text containing URLs to link.
:param trim_url_limit: Shorten displayed URL values to this length.
:param target: Add the ``target`` attribute to links.
:param rel: Add the ``rel`` attribute to links.
:param extra_schemes: Recognize URLs that start with these schemes
    in addition to the default behavior.

.. versionchanged:: 3.0
    The ``extra_schemes`` parameter was added.

.. versionchanged:: 3.0
    Generate ``https://`` links for URLs without a scheme.

.. versionchanged:: 3.0
    The parsing rules were updated. Recognize email addresses with
    or without the ``mailto:`` scheme. Validate IP addresses. Ignore
    parentheses and brackets in more cases.
Nxr   c                 6   > [        U 5      T:  a  U S T  S3$ U $ )Nz...)len)ry   rt   s    r   trim_urlurlize.<locals>.trim_url  s)    1v&O^,-S11Hr   c                     U $ Nr   )ry   s    r   r|   r}     s    Hr   z(\s+)z rel=""r%   z	 target="z^([(<]|&lt;)+))>rY   ,
&gt;z([)>.,\n]|&gt;)+$))(r   )<r   )z&lt;r   zhttps://zhttp://z	<a href="r   z</a>z<a href="https://zmailto:   z">@zwww.rX   z<a href="mailto:)r"   rerZ   
markupsafeescape	enumeratematchgroupendendswithsearchstartcountrangeminindexr{   _http_re
startswith	_email_rejoin)rs   rt   ru   rv   rw   r|   wordsrel_attrtarget_attriwordheadmiddletailr   
start_charend_charstart_countrL   	end_indexschemes    `                   r   urlizer      s8   L !	 	 	 		 	 	 HHXs:#4#4T#:;<E58
))#./q1bH>DIj//78:"KU#rd)62;;=DIIKM*F
 ??=>>II2F;E{{}%++-0 %M J ,,z2Kfll844 3{DJJx,@AB JJx03x=@	z	**IJ'	 C %M >>&!!  ,,0A0A)0L0Lxq
;-q&AQ@RRVW 
 (xq
;-q'(. 
 y))ioofQRj.I.I 6!":,d;F 6M%%f--%%c**6!'''xr&>F&'V#(9(9&(A(A((K=&QUVF ( VF8D6* $B 775>r   nhtmlr   maxc           	         SSK Jn  UR                  5       n/ n[        U 5       GH  nSnS=pSnSn/ n[	        [        [        X#5      5      5       H  u  p [        U5      nX:w  a  UnOM  U(       a  UR                  5       nSnU[        SS5      -
  U	:  a  Un	U
S	-  n
US
-  nU[        SS5      -
  U
:  a
  U=pUS-  nSnUR                  U5        M     SR                  U5      nUR                  S
5      (       a	  USS S-   nOUR                  S5      (       d  US-  nUR                  U5        GM     U(       d  SR                  U5      $ [        R                  " SR                  S U 5       5      5      $ )z+Generate some lorem ipsum for the template.rE   )LOREM_IPSUM_WORDSTr   NF         r   
      rY    z

r   c              3   V   #    U  H  nS [         R                  " U5       S3v   M!     g7f)z<p>z</p>N)r   r   .0ry   s     r   	<genexpr>'generate_lorem_ipsum.<locals>.<genexpr>  s%     CFqC
))!,-T2Fs   '))	constantsr   rZ   r   r   r   r   
capitalizeappendr   r   r   Markup)r   r   r   r   r   r   resultrL   next_capitalized
last_commalast_fullstopr   lastpidxp_strs                   r   generate_lorem_ipsumr   a  s    -##%EF1X%&&
  i&9 :;FCe}<D	 
  (#( Yq!_$z1 
"Yr2&&6-00
#' HHTN' <, >>##2J$E$$SLEeK N {{6""		CFCC r   charsetfor_qsc                     [        U [        5      (       d1  [        U [        5      (       d  [        U 5      n U R                  U5      n U(       a  SOSn[	        X5      nU(       a  UR                  SS5      nU$ )a!  Quote a string for use in a URL using the given charset.

:param obj: String or bytes to quote. Other types are converted to
    string then encoded to bytes using the given charset.
:param charset: Encode text to bytes using this charset.
:param for_qs: Quote "/" and use "+" for spaces.
r      /z%20+)rH   bytesr"   encoder	   replace)r5   r   r   safervs        r   	url_quoter     s`     c5!!#s##c(Cjj!3dD	#	$BZZs#Ir   c                      \ rS rSrSrS\SS4S jrS S jrS\R                  \
\R                  4   4S jrS	\R                  \
\R                  4   SS4S
 jrS\R                  \R                  S4   4S jrS!S jrS"S\R                  S\R                  S\R                  4S jjrS"S\R                  S\R                  S\R                  4S jjrS S jrS\R                  S\4S jrS\4S jrS\
4S jrS\R                  S\R                  4S jrS\R                  S\R                  SS4S jrS\R                  SS4S jrS\R6                  \R                  \R                  \R                  4      4S jrS\R6                  \R                     4S jrS\R6                  \R                     4S jrS\R>                  \R                     4S jr S\R>                  \R                     4S jr!\r"Sr#g)#LRUCachei  z"A simple LRU Cache implementation.capacityr   Nc                 \    Xl         0 U l        [        5       U l        U R	                  5         g r   )r   _mappingr   _queue	_postinit)r   r   s     r   __init__LRUCache.__init__  s!     .0',wr   c                     U R                   R                  U l        U R                   R                  U l        U R                   R
                  U l        [        5       U l        U R                   R                  U l
        g r   )r   popleft_popleftpop_popremove_remover   _wlockr   _appendr   s    r   r   LRUCache._postinit  sM    ++KKOO	{{))f{{))r   c                 J    U R                   U R                  U R                  S.$ )Nr   r   r   r   r   s    r   __getstate__LRUCache.__getstate__  s!    kk
 	
r   dc                 Z    U R                   R                  U5        U R                  5         g r   )__dict__updater   )r   r   s     r   __setstate__LRUCache.__setstate__  s    Qr   .c                     U R                   4$ r   )r   r   s    r   __getnewargs__LRUCache.__getnewargs__  s    r   c                     U R                  U R                  5      nUR                  R                  U R                  5        UR                  R                  U R                  5        U$ )z&Return a shallow copy of the instance.)	__class__r   r   r   r   extendr   r   s     r   copyLRUCache.copy  sE    ^^DMM*
4==)
		%	r   keydefaultc                 0     X   $ ! [          a    Us $ f = f)z/Return an item from the cache dict or `default`KeyErrorr   r   r   s      r   getLRUCache.get  s#    	9 	N	s    c                 8     X   $ ! [          a	    X U'   Us $ f = f)zfSet `default` if the key is not in the cache otherwise
leave unchanged. Return the value of this key.
r   r   s      r   
setdefaultLRUCache.setdefault  s*    	9 	IN	s    c                     U R                      U R                  R                  5         U R                  R                  5         SSS5        g! , (       d  f       g= f)zClear the cache.N)r   r   rS   r   r   s    r   rS   LRUCache.clear  s3    [[MM!KK [[s   5A
Ac                     XR                   ;   $ )z$Check if a key exists in this cache.)r   r   r   s     r   __contains__LRUCache.__contains__  s    mm##r   c                 ,    [        U R                  5      $ )z%Return the current size of the cache.)r{   r   r   s    r   __len__LRUCache.__len__  s    4==!!r   c                 P    S[        U 5      R                   SU R                  < S3$ )Nr   r   r   )rn   r   r   r   s    r   r   LRUCache.__repr__  s'    4:&&'q(9;;r   c                     U R                      U R                  U   nU R                  S   U:w  a#   U R                  U5        U R                  U5        UsSSS5        $ ! [         a     N(f = f! , (       d  f       g= f)zGet an item from the cache. Moves the item up so that it has the
highest priority then.

Raise a `KeyError` if it does not exist.
r   N)r   r   r   r   
ValueErrorr   )r   r   r   s      r   __getitem__LRUCache.__getitem__  sp     [[s#B{{2#%LL% S! [ "  	 [s.   #A.AA.
A+(A.*A++A..
A<valuec                 L   U R                      XR                  ;   a  U R                  U5        O>[        U R                  5      U R                  :X  a  U R                  U R                  5       	 U R                  U5        X R                  U'   SSS5        g! , (       d  f       g= f)zXSets the value for an item. Moves the item up so that it
has the highest priority then.
N)r   r   r   r{   r   r   r   )r   r   r  s      r   __setitem__LRUCache.__setitem__  sj     [[mm#S!T]]#t}}4MM$--/2LL!&MM# [[s   A?B
B#c                     U R                      U R                  U	  U R                  U5        SSS5        g! [         a     Nf = f! , (       d  f       g= f)zMRemove an item from the cache dict.
Raise a `KeyError` if it does not exist.
N)r   r   r   r  r  s     r   __delitem__LRUCache.__delitem__  sK     [[c"S!	 [
   [s&   A6
A AAA
Ac                     [        U R                  5       Vs/ s H  oU R                  U   4PM     nnUR                  5         U$ s  snf )zReturn a list of items.)listr   r   reverse)r   r   r   s      r   itemsLRUCache.items+  sB    7;DKK7HI7Hc*+7HI Js   Ac                 R    U R                  5        Vs/ s H  oS   PM	     sn$ s  snf )zReturn a list of all values.rE   )r  )r   ry   s     r   valuesLRUCache.values1  s"    "jjl+l!l+++s   $c                     [        U 5      $ )z7Return a list of all keys ordered by most recent usage.)r  r   s    r   keysLRUCache.keys5  s    Dzr   c                 >    [        [        U R                  5      5      $ r   )reversedtupler   r   s    r   __iter__LRUCache.__iter__9  s    dkk*++r   c                 >    [        [        U R                  5      5      $ )zDIterate over the keys in the cache dict, oldest items
coming first.
)iterr'  r   r   s    r   __reversed__LRUCache.__reversed__<  s     E$++&''r   )r   r   r   r   r   r   r   r   r   N)r   zte.Selfr   )$r   r   r    r!   __doc__intr   r   r>   Mappingr"   Anyr   r   Tupler   r   r   r  rS   boolr  r  r   r  r  r  Iterabler  r   r#  Iteratorr(  r,  __copy__r#   r   r   r   r   r     s   ,  *
aiiQUU
3 
aiiQUU
3   s
 3  quu quu  aee aee quu  $ $$ $" "<# <quu  ,'quu 'QUU 't '
quu 
 
qzz!''!%%,"78 ,

155) ,ajj' ,!**QUU+ ,(ajj/ ( Hr   r   enabled_extensionsdisabled_extensionsdefault_for_stringr   c                    ^^^^ [        S U  5       5      m[        S U 5       5      mS[        R                  [           S[        4UUUU4S jjnU$ )a  Intelligently sets the initial value of autoescaping based on the
filename of the template.  This is the recommended way to configure
autoescaping if you do not want to write a custom function yourself.

If you want to enable it for all templates created from strings or
for all templates with `.html` and `.xml` extensions::

    from jinja2 import Environment, select_autoescape
    env = Environment(autoescape=select_autoescape(
        enabled_extensions=('html', 'xml'),
        default_for_string=True,
    ))

Example configuration to turn it on at all times except if the template
ends with `.txt`::

    from jinja2 import Environment, select_autoescape
    env = Environment(autoescape=select_autoescape(
        disabled_extensions=('txt',),
        default_for_string=True,
        default=True,
    ))

The `enabled_extensions` is an iterable of all the extensions that
autoescaping should be enabled for.  Likewise `disabled_extensions` is
a list of all templates it should be disabled for.  If a template is
loaded from a string then the default from `default_for_string` is used.
If nothing matches then the initial value of autoescaping is set to the
value of `default`.

For security reasons this function operates case insensitive.

.. versionadded:: 2.9
c              3   f   #    U  H'  nS UR                  S 5      R                  5        3v   M)     g7frY   Nlstriplowerr   s     r   r   $select_autoescape.<locals>.<genexpr>m  s+     UBTQq#!4!4!6 78BT   /1c              3   f   #    U  H'  nS UR                  S 5      R                  5        3v   M)     g7fr=  r>  r   s     r   r   rA  n  s+     WCVa!((3-"5"5"7!89CVrB  template_namer   c                    > U c  T$ U R                  5       n U R                  T5      (       a  gU R                  T5      (       a  gT$ )NTF)r@  r   )rD  r   r:  disabled_patternsenabled_patternss    r   
autoescape%select_autoescape.<locals>.autoescapep  sL     %%%++-!!"233!!"344r   )r'  r>   r?   r"   r4  )r8  r9  r:  r   rH  rF  rG  s     `` @@r   select_autoescaperJ  E  sR    P UBTUUWCVWW!**S/ d   r   dumpskwargsc                     Uc  [         R                  n[        R                  " U" U 40 UD6R	                  SS5      R	                  SS5      R	                  SS5      R	                  SS5      5      $ )	a  Serialize an object to a string of JSON with :func:`json.dumps`,
then replace HTML-unsafe characters with Unicode escapes and mark
the result safe with :class:`~markupsafe.Markup`.

This is available in templates as the ``|tojson`` filter.

The following characters are escaped: ``<``, ``>``, ``&``, ``'``.

The returned string is safe to render in HTML documents and
``<script>`` tags. The exception is in HTML attributes that are
double quoted; either use single quotes or the ``|forceescape``
filter.

:param obj: The object to serialize to JSON.
:param dumps: The ``dumps`` function to use. Defaults to
    ``env.policies["json.dumps_function"]``, which defaults to
    :func:`json.dumps`.
:param kwargs: Extra arguments to pass to ``dumps``. Merged onto
    ``env.policies["json.dumps_kwargs"]``.

.. versionchanged:: 3.0
    The ``dumper`` parameter is renamed to ``dumps``.

.. versionadded:: 2.9
r   z\u003cr   z\u003e&z\u0026'z\u0027)jsonrK  r   r   r   )r5   rK  rL  s      r   htmlsafe_json_dumpsrQ  }  sb    8 }

cV	i	 	i	 	i	 	i	  r   c                       \ rS rSrSrS\R                  SS4S jrSS jr\	S\R                  4S j5       r
S\R                  4S	 jr\rS
rg)Cycleri  a  Cycle through values by yield them one at a time, then restarting
once the end is reached. Available as ``cycler`` in templates.

Similar to ``loop.cycle``, but can be used outside loops or across
multiple loops. For example, render a list of folders and files in a
list, alternating giving them "odd" and "even" classes.

.. code-block:: html+jinja

    {% set row_class = cycler("odd", "even") %}
    <ul class="browser">
    {% for folder in folders %}
      <li class="folder {{ row_class.next() }}">{{ folder }}
    {% endfor %}
    {% for file in files %}
      <li class="file {{ row_class.next() }}">{{ file }}
    {% endfor %}
    </ul>

:param items: Each positional argument will be yielded in the order
    given for each cycle.

.. versionadded:: 2.1
r  r   Nc                 B    U(       d  [        S5      eXl        SU l        g )Nz$at least one item has to be providedr   )RuntimeErrorr  pos)r   r  s     r   r   Cycler.__init__  s    EFF
r   c                     SU l         g)z*Resets the current item to the first item.r   N)rV  r   s    r   resetCycler.reset  s	    r   c                 4    U R                   U R                     $ )zhReturn the current item. Equivalent to the item that will be
returned next time :meth:`next` is called.
r  rV  r   s    r   currentCycler.current  s    
 zz$((##r   c                 r    U R                   nU R                  S-   [        U R                  5      -  U l        U$ )zHReturn the current item, then advance :attr:`current` to the
next item.
rE   )r]  rV  r{   r  r   s     r   nextCycler.next  s.     \\HHqLC

O3	r   r\  r.  )r   r   r    r!   r/  r>   r2  r   rY  propertyr]  r`  __next__r#   r   r   r   rS  rS    sY    2quu   $ $ $aee  Hr   rS  c                   <    \ rS rSrSrS	S\SS4S jjrS\4S jrSrg)
Joineri  zA joining helper for templates.sepr   Nc                     Xl         SU l        g )NFrf  used)r   rf  s     r   r   Joiner.__init__  s    	r   c                 L    U R                   (       d  SU l         gU R                  $ )NTr%   )ri  rf  r   s    r   __call__Joiner.__call__  s    yyDIxxr   rh  )z, )	r   r   r    r!   r/  r"   r   rl  r#   r   r   r   re  re    s$    )C 4 # r   re  c                       \ rS rSrSrS\R                  S\R                  SS4S jrS\S\R                  4S	 jr	S\S
\R                  SS4S jr
S\4S jrSrg)	Namespacei  zzA namespace object that can hold arbitrary attributes.  It may be
initialized from a dictionary or with keyword arguments.argsrL  r   Nc                  6    U S   U SS  p[        U 0 UD6Ul        g )Nr   rE   )dict_Namespace__attrs)rp  rL  r   s      r   r   Namespace.__init__  s$    !Wd12hdT,V,r   namec                     US;   a  [         R                  X5      $  U R                  U   $ ! [         a    [	        U5      S ef = f)N>   r   rs  )object__getattribute__rs  r   r_   )r   ru  s     r   rx  Namespace.__getattribute__  sL    55**466	1<<%% 	1 &D0	1s	   , Ar  c                      X R                   U'   g r   rs  )r   ru  r  s      r   r  Namespace.__setitem__  s    "Tr   c                 $    SU R                   < S3$ )Nz<Namespace r   r{  r   s    r   r   Namespace.__repr__  s    T\\,A..r   )__attrs)r   r   r    r!   r/  r>   r2  r   r"   rx  r  r   r#   r   r   r   ro  ro    sk    @- - -4 -1S 1QUU 1# #AEE #d #/# /r   ro  r.  )F)rb)NNNN)   Tr   d   )zutf-8F))r   htmxmlr   TFr   )Gr;   rP  re   r   typingr>   collectionsr   r   randomr   r   	threadingr   typesr   urllib.parser	   r   TYPE_CHECKINGtyping_extensionsteTypeVarCallabler2  r
   r   r   __annotations__setr$   
MutableSetr   concatr,   r/   r2   Enumr(   rC   r4  rI   r5  rM   rT   r"   ra   r?   IOri   ro   rq   compile
IGNORECASEVERBOSEr   r   r0  r   r   r   MutableMappingregisterr   
CollectionrJ  r   rQ  rS  re  ro  r   r   r   <module>r     s     	 	        ) ??"IIcCJ/0    D(+q||H% -	A ! " q "
 
a 

tyy 
A ! &aee & &"ajj' D 
s D QUU 0 S    qzz!$$quu+7N  5!%% 5C 5$ 3  ::2 MMBJJ58 JJ./	
 '+"15x
xJJsOx 
Cx JJsO	x
 ::ajjo.x 	xx >A4
44(+47:44n155 3 $ 3 . R R Rl -C-/#	5S)5c*5 5 	5
 ZZC!4'(5r ;?%	
%zz!**S#X"67%JK%%%%P3 3l / /r   