+
     °³jÐ	  ã                   óN   € R t ^RIHtHt R R ltR R lt ! R R]4      tR tR	# )
zž
This file contains utilities for handling input from the user and registering specific keys to specific functions,
based on https://github.com/bchao1/bullet
)ÚKEYMAPÚget_characterc                ó$   € V ^8„  d   QhR\         /# )é   Úkey)Ústr)Úformats   "Ú_/home/luca/screen-checking/.venv/lib/python3.14/site-packages/accelerate/commands/menu/input.pyÚ__annotate__r
      s   € ÷ ñ Œcñ ó    c                ó   a € V 3R lpV# )zJ
Mark the function with the key code so it can be handled in the register
c                 óB   <€ \        V R . 4      pVS.,          pWn        V # ©Ú
handle_key©Úgetattrr   )ÚfuncÚhandler   s   & €r	   Ú	decoratorÚmark.<locals>.decorator   s&   ø€ Ü˜˜|¨RÓ0ˆØ�3�%�ˆØ ŒØˆr   © )r   r   s   f r	   Úmarkr      ó   ø€ õ
ð Ðr   c                ó:   € V ^8„  d   QhR\         \        ,          /# )r   Úkeys)Úlistr   )r   s   "r	   r
   r
   %   s   € ÷ ñ œœc�ñ r   c                 ó   a € V 3R lpV# )zK
Mark the function with the key codes so it can be handled in the register
c                 ó@   <€ \        V R . 4      pVS,          pWn        V # r   r   )r   r   r   s   & €r	   r   Ú mark_multiple.<locals>.decorator*   s$   ø€ Ü˜˜|¨RÓ0ˆØ�$�ˆØ ŒØˆr   r   )r   r   s   j r	   Úmark_multipler   %   r   r   c                   óF   a a€ ] tR t^3t oRtV 3R lt]R 4       tRtVt	V ;t
# )Ú
KeyHandlerz3
Metaclass that adds the key handlers to the class
c                óú   <€ \         SV `  WW#4      p\        VR 4      '       g   / Vn        \        P
                  Vn        VP                  4        F'  p\        VR. 4      pV F  pWTP                  V&   K  	  K)  	  V# )Úkey_handlerr   )ÚsuperÚ__new__Úhasattrr#   r!   Úhandle_inputÚvaluesr   )	ÚclsÚnameÚbasesÚattrsÚnew_clsÚvalueÚhandled_keysr   Ú	__class__s	   &&&&    €r	   r%   ÚKeyHandler.__new__8   ss   ø€ Ü‘'‘/ #¨UÓ:ˆÜ�w ×.Ò.Ø"$ˆGÔÜ)×6Ñ6ˆÔà—\‘\–^ˆEÜ" 5¨,¸Ó;ˆLÛ#�Ø+0×#Ñ# CÓ(ó $ñ $ð ˆr   c                ó¶   € \        4       pV\        R,          8w  d   \        V4      pV P                  P	                  V4      pV'       d   Wn        V! V 4      # R# )zDFinds and returns the selected character if it exists in the handlerÚ	undefinedN)r   r   Úordr#   ÚgetÚcurrent_selection)r)   ÚcharÚhandlers   &  r	   r'   ÚKeyHandler.handle_inputD   sK   € ô ‹ˆØ”6˜+Õ&Ô&Ü�t“9ˆDØ—/‘/×%Ñ% dÓ+ˆßØ$(Ô!Ù˜3“<Ðár   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r%   Ústaticmethodr'   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r0   Ú__classdict__s   @@r	   r!   r!   3   s(   ù‡ € ñõ
ð ñ
ó ÷
ð 
r   r!   c                ót   € \        V P                  V P                  V P                  P	                  4       4      # )z&Adds KeyHandler metaclass to the class)r!   r:   Ú	__bases__Ú__dict__Úcopy)r)   s   &r	   ÚregisterrH   R   s&   € ä�c—l‘l C§M¡M°3·<±<×3DÑ3DÓ3FÓGÐGr   N)	r>   Úkeymapr   r   r   r   Útyper!   rH   r   r   r	   Ú<module>rK      s+   ðñ÷
 *õõô�ô ô>Hr   