
    ^j                    T    d Z ddlmZ ddlZddlmZ ddlmZ  ed      d
d	       Zy)z
Lazy-loading per-terminal grapheme override tables.

This minimizes memory for the 99.9% of use-cases of a single 'term_program'.
    )annotationsN)	lru_cache   )	_REGISTRY    )maxsizec                    t        j                  |       }|i S 	 t        j                  d| t              }t        |d      }|S # t        $ r i cY S w xY w)z
    Return grapheme override dict for a terminal, or an empty dict.

    The per-terminal module is imported on first access and cached in ``sys.modules``; subsequent
    calls for the same terminal return immediately via lru_cache.
    z._known_	GRAPHEMES)r   get	importlibimport_module__package__getattrImportError)term_canonicalhash_keymodresults       b/opt/ringagent/.cad-venv/lib/python3.12/site-packages/wcwidth/table_grapheme_overrides/__init__.pyr   r      sb     }}^,H		%%
&;[I!(k!: 
 	s   *A AA)r   strreturnzdict[str, int])	__doc__
__future__r   r   	functoolsr   	_registryr   r        r   <module>r      s5   
 #   ! 2 r   