
     Ti                    >    S r SSKJr  SSKJr  SS jr " S S5      rg)	zInternal utilities for displaying the intermediate representation of a model.

NOTE: All third-party imports should be scoped and imported only when used to avoid
importing unnecessary dependencies.
    )annotations)Anyc                 0     SSK n U $ ! [         a     gf = f)z.Raise an ImportError if rich is not installed.r   N)richImportError)r   s    O/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/onnx_ir/_display.pyrequire_richr	      s%     K  s    
c                  &    \ rS rSrSS.SS jjrSrg)PrettyPrintable   F)pagec                  [        5       n[        U 5      nUc/  [        U5        [        SU R                  R                   S35        gSSKnUR                  R                  U5      nU(       aI  SSKnUR                  R                  5       nUR                  5          UR                  U5        SSS5        gUR                  U5        g! , (       d  f       g= f)zFPretty print the object.

Args:
    page: Whether to page the output.
NzR

[36mTip: Install the rich library with 'pip install rich' to pretty print this z.[0mr   )r	   strprint	__class____name__rich.markupmarkupescaperich.consoleconsoleConsolepager)selfr   r   textr   s        r   displayPrettyPrintable.display   s     ~4y<$Kklplzlz  mD  mD  lE  EO  P  {{!!$'ll**,Gd# ! JJt !s   C		
C N)r   boolreturnNone)r   
__module____qualname____firstlineno__r   __static_attributes__r       r   r   r      s    &+  r&   r   N)r    r   )__doc__
__future__r   typingr   r	   r   r   r&   r   <module>r*      s!    #  r&   