ó
    NÎhk  ã                  ót   • S SK Jr  S SKJrJrJrJrJr  S SKJ	r	J
r
Jr  S SKJr  S SKJr  S/r " S S\
5      rg)	é    )Úannotations)ÚCallableÚIterableÚMappingÚPatternÚSequence)ÚCompleteEventÚ	CompleterÚ
Completion)ÚDocument)ÚAnyFormattedTextÚWordCompleterc                  ól   • \ rS rSrSr       S                 SS jjr      S	S jrSrg)
r   é   a¨  
Simple autocompletion on a list of words.

:param words: List of words or callable that returns a list of words.
:param ignore_case: If True, case-insensitive completion.
:param meta_dict: Optional dict mapping words to their meta-text. (This
    should map strings to strings or formatted text.)
:param WORD: When True, use WORD characters.
:param sentence: When True, don't complete by comparing the word before the
    cursor, but by comparing all the text before the cursor. In this case,
    the list of words is just a list of strings, where each string can
    contain spaces. (Can not be used together with the WORD option.)
:param match_middle: When True, match not only the start, but also in the
                     middle of the word.
:param pattern: Optional compiled regex for finding the word before
    the cursor to complete. When given, use this regex pattern instead of
    default one (see document._FIND_WORD_RE)
Nc	                ó¬   • U(       a	  U(       a   eXl         X l        U=(       d    0 U l        U=(       d    0 U l        XPl        X`l        Xpl        X€l        g )N)ÚwordsÚignore_caseÚdisplay_dictÚ	meta_dictÚWORDÚsentenceÚmatch_middleÚpattern)	Úselfr   r   r   r   r   r   r   r   s	            Úe/home/mande/repo/quber/.venv/lib/python3.13/site-packages/prompt_toolkit/completion/word_completer.pyÚ__init__ÚWordCompleter.__init__"   sG   € ö žXÐ&Ð&àŒ
Ø&ÔØ(×.¨BˆÔØ"Ÿ bˆŒØŒ	Ø ŒØ(ÔØ�ó    c              #  óü  ^ ^#   • T R                   n[        U5      (       a  U" 5       nT R                  (       a  UR                  mO$UR	                  T R
                  T R                  S9mT R                  (       a  TR                  5       mSU U4S jjnU Ha  nU" U5      (       d  M  T R                  R                  XU5      nT R                  R                  US5      n[        U[        T5      * UUS9v •  Mc     g 7f)N)r   r   c                ó”   >• TR                   (       a  U R                  5       n TR                  (       a  TU ;   $ U R                  T5      $ )z-True when the word before the cursor matches.)r   Úlowerr   Ú
startswith)Úwordr   Úword_before_cursors    €€r   Úword_matchesÚ3WordCompleter.get_completions.<locals>.word_matchesK   s;   ø€ à××Ø—z‘z“|�à× × Ø)¨TÑ1Ð1à—‘Ð'9Ó:Ð:r   Ú )ÚtextÚstart_positionÚdisplayÚdisplay_meta)r#   ÚstrÚreturnÚbool)r   Úcallabler   Útext_before_cursorÚget_word_before_cursorr   r   r   r!   r   Úgetr   r   Úlen)	r   ÚdocumentÚcomplete_eventr   r%   Úar*   r+   r$   s	   `       @r   Úget_completionsÚWordCompleter.get_completions8   sá   ùé € ð —
‘
ˆÜ�E�?‰?Ù“GˆEð �=�=Ø!)×!<Ñ!<Ñà!)×!@Ñ!@Ø—Y‘Y¨¯©ð "Að "Ðð ××Ø!3×!9Ñ!9Ó!;Ð÷	;ð 	;ó ˆAÙ˜A�‹Ø×+Ñ+×/Ñ/°Ó5�Ø#Ÿ~™~×1Ñ1°!°RÓ8�Ü ØÜ$'Ð(:Ó$;Ð#;Ø#Ø!-ñ	ô ò	 ùs   „B C<Â(AC<)r   r   r   r   r   r   r   r   )FNNFFFN)r   z+Sequence[str] | Callable[[], Sequence[str]]r   r.   r   ú%Mapping[str, AnyFormattedText] | Noner   r9   r   r.   r   r.   r   r.   r   zPattern[str] | Noner-   ÚNone)r4   r   r5   r	   r-   zIterable[Completion])Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r7   Ú__static_attributes__© r   r   r   r      s˜   † ñð, "Ø>BØ;?ØØØ"Ø'+ðà:ðð ðð <ð	ð
 9ðð ðð ðð ðð %ðð 
õð,&Ø ð&Ø2?ð&à	÷&r   N)Ú
__future__r   Útypingr   r   r   r   r   Úprompt_toolkit.completionr	   r
   r   Úprompt_toolkit.documentr   Úprompt_toolkit.formatted_textr   Ú__all__r   rA   r   r   Ú<module>rH      s4   ðÝ "ç AÕ Aç JÑ JÝ ,Ý :ð ð€ô
P�Iõ Pr   