+
    iq              
       |   ^ RI HtHtHt ^ RIHtHtHtHtH	t	H
t
HtHtHt ^RIHtHt ^RIHtHt ^RIHt ^RIHtHt ^RIHt ^RIHt ^R	IHt ^R
IH t H!t! ^RI"H#t# ^RI$H%t% ^RI&H't'H(t( ^RI)H*t*H+t+ ]'       d   ^RI,H-t-H.t.H/t/H0t0H1t1H2t2 ] ! R R4      4       t3] ! R R4      4       t4 ! R R]	4      t5 ! R R]4      t6]7R8X  Ed   ^ RI8H-t- ^ RI9H:t: ^RI;H<t< ]<! R4      ;_uu_ 4        ]6! RRRR 7      t=]=P}                  R!R"R#R$R%7       ]=P}                  R&R'R(7       ]=P}                  R)RR*R+7       ]=P                  R,R-R.4       ]=P                  R/R0R14       ]=P                  R2R3R4R5R$R67       ]=P                  R7R8R94       R: R; lt@]-! 4       t,]:! 4       tA]@! R<4       ],P                  ]=R=R>7       R$]=nC        ]@! R?4       ],P                  ]=4       ^2]=nD        ]@! R@4       ],P                  ]=R=R>7       RA]=nD        RB]=nC        RCRD.]=nE        ]@! RE4       ],P                  ]=R=R>7       RA]=nD        RB]=nC        RCRD.]=nE        ^]=nF        ]@! RF4       ],P                  ]=R=R>7       RA]=nD        RB]=nC        RCRD.]=nE        R$]=nG        ^ ]=nF        ]@! RG4       ],P                  ]=R=R>7       RARARA4       RA# RA#   + '       g   i     RA# ; i)H    )	dataclassfieldreplace)	TYPE_CHECKINGDictIterableList
NamedTupleOptionalSequenceTupleUnion)boxerrors)loop_first_last	loop_last)	pick_bool)ratio_distributeratio_reduce)VerticalAlignMethod)JupyterMixinMeasurement)PaddingPaddingDimensions)is_renderable)Segment)Style	StyleType)TextTextType)ConsoleConsoleOptionsJustifyMethodOverflowMethodRenderableTypeRenderResultc                      a  ] tR t^&t o RtRt Rt Rt Rt Rt	 Rt
 Rt Rt Rt Rt Rt Rt Rt Rt ^ t ]! ]R7      tV 3R	 lR
 lt]V 3R lR l4       t]V 3R lR l4       tV 3R ltRtV tR# )Columna9
  Defines a column within a ~Table.

Args:
    title (Union[str, Text], optional): The title of the table rendered at the top. Defaults to None.
    caption (Union[str, Text], optional): The table caption rendered below. Defaults to None.
    width (int, optional): The width in characters of the table, or ``None`` to automatically fit. Defaults to None.
    min_width (Optional[int], optional): The minimum width of the table, or ``None`` for no minimum. Defaults to None.
    box (box.Box, optional): One of the constants in box.py used to draw the edges (see :ref:`appendix_box`), or ``None`` for no box lines. Defaults to box.HEAVY_HEAD.
    safe_box (Optional[bool], optional): Disable box characters that don't display on windows legacy terminal with *raster* fonts. Defaults to True.
    padding (PaddingDimensions, optional): Padding for cells (top, right, bottom, left). Defaults to (0, 1).
    collapse_padding (bool, optional): Enable collapsing of padding around cells. Defaults to False.
    pad_edge (bool, optional): Enable padding of edge cells. Defaults to True.
    expand (bool, optional): Expand the table to fit the available space if ``True``, otherwise the table width will be auto-calculated. Defaults to False.
    show_header (bool, optional): Show a header row. Defaults to True.
    show_footer (bool, optional): Show a footer row. Defaults to False.
    show_edge (bool, optional): Draw a box around the outside of the table. Defaults to True.
    show_lines (bool, optional): Draw lines between every row. Defaults to False.
    leading (int, optional): Number of blank lines between rows (precludes ``show_lines``). Defaults to 0.
    style (Union[str, Style], optional): Default style for the table. Defaults to "none".
    row_styles (List[Union, str], optional): Optional list of row styles, if more than one style is given then the styles will alternate. Defaults to None.
    header_style (Union[str, Style], optional): Style of the header. Defaults to "table.header".
    footer_style (Union[str, Style], optional): Style of the footer. Defaults to "table.footer".
    border_style (Union[str, Style], optional): Style of the border. Defaults to None.
    title_style (Union[str, Style], optional): Style of the title. Defaults to None.
    caption_style (Union[str, Style], optional): Style of the caption. Defaults to None.
    title_justify (str, optional): Justify method for title. Defaults to "center".
    caption_justify (str, optional): Justify method for caption. Defaults to "center".
    highlight (bool, optional): Highlight cell contents (if str). Defaults to False.
 lefttopellipsisNF)default_factoryc                   < V ^8  d   QhRR/# )   returnr)    )format__classdict__s   "]/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/rich/table.py__annotate__Column.__annotate__u   s     ( (h (    c                    \        V . R7      # )zReturn a copy of this Column._cells)r   selfs   &r5   copyColumn.copyu   s    tB''r8   c                .   < V ^8  d   QhRS[ R,          /# )r0   r1   r&   )r   )r3   r4   s   "r5   r6   r7   z   s      x 01 r8   c              #  :   "   V P                    Rj  xL
  R#  L5i)z2Get all cells in the column, not including header.Nr:   r<   s   &r5   cellsColumn.cellsy   s      ;;s   c                    < V ^8  d   QhRS[ /# r0   r1   bool)r3   r4   s   "r5   r6   r7      s     & &$ &r8   c                    V P                   RJ# )z!Check if this column is flexible.N)ratior<   s   &r5   flexibleColumn.flexible~   s     zz%%r8   c                  < V ^8  d   Qh/ R;R&   R;R&   S[ ;R&   S[ ;R&   S[ ;R&   R;R&   R	;R
&   R;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[,          ;R&   S[;R&   S[;R&   S[;R&   S[R,          ;R&   # )r0   r&   headerfooterheader_stylefooter_stylestyler$   justifyr   verticalr%   overflowwidth	min_width	max_widthrI   no_wrap	highlight_indexr;   )r   r   intrG   r	   )r3   r4   s   "r5   r6   r7   &   s
    @ !A F !G L  M R  S X Y ^ %_ d $+e j +k p C=q v }#w | }#} B C=C H I N O T OU Z !"@[ r8   r2   )__name__
__module____qualname____firstlineno____doc__rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rI   rX   rY   rZ   r   listr;   r>   propertyrB   rJ   __annotate_func____static_attributes____classdictcell__r4   s   @r5   r)   r)   &   s     <  "FH!FH L- L-E-%G[&+HM!+HE\#I_#I_EwGRICF%*4%@F( (   & &s  r8   r)   c                   <   a  ] tR t^t o RtRt Rt V 3R ltRtV t	R# )RowzInformation regarding a row.NFc                B   < V ^8  d   Qh/ S[ S[,          ;R&   S[;R&   # )r0   rQ   end_sectionr   r   rG   )r3   r4   s   "r5   r6   Row.__annotate__   s$      I%	   r8   r2   )
r\   r]   r^   r_   r`   rQ   rj   rc   rd   re   rf   s   @r5   rh   rh      s     &!%E KL  r8   rh   c                   6   a  ] tR t^t o Rt   V 3R ltRtV tR# )_CellzA single cell in a table.c                <   < V ^8  d   Qh/ S[ ;R&   R;R&   S[;R&   # )r0   rQ   r&   
renderablerS   )r   r   )r3   r4   s   "r5   r6   _Cell.__annotate__   s,       
 !   "! r8   r2   N)r\   r]   r^   r_   r`   rc   rd   re   rf   s   @r5   rn   rn      s     # ""  r8   rn   c            2         a  ] tR t^t o RtRRRRRRRRR]P                  RRR	RVR
RRRRRRRRRRRRRR^ RRRRRRRRRRRRRRRRR RR!R/V 3R" lR# llt]R	^ R
RRRRR/V 3R$ lR% ll4       t	]
V 3R& lR' l4       t]P                  V 3R( lR) l4       t]
V 3R* lR+ l4       t]
V 3R, lR- l4       tV 3R. lR/ ltV 3R0 lR1 lt]
V 3R2 lR3 l4       t]P                  V 3R4 lR5 l4       tRWRRR!RRRRRR6R7R8R9R:R;RRRRR<RR=RR>R/V 3R? lR@ llltRRRAR/V 3RB lRC lltV 3RD lRE ltV 3RF lRG ltV 3RH lRI lt]V 3RJ lRK l4       tV 3RL lRM ltV 3RN lRO ltV 3RP lRQ ltV 3RR lRS ltV 3RT ltRUtV tR# )XTablea
  A console renderable to draw a table.

Args:
    *headers (Union[Column, str]): Column headers, either as a string, or :class:`~rich.table.Column` instance.
    title (Union[str, Text], optional): The title of the table rendered at the top. Defaults to None.
    caption (Union[str, Text], optional): The table caption rendered below. Defaults to None.
    width (int, optional): The width in characters of the table, or ``None`` to automatically fit. Defaults to None.
    min_width (Optional[int], optional): The minimum width of the table, or ``None`` for no minimum. Defaults to None.
    box (box.Box, optional): One of the constants in box.py used to draw the edges (see :ref:`appendix_box`), or ``None`` for no box lines. Defaults to box.HEAVY_HEAD.
    safe_box (Optional[bool], optional): Disable box characters that don't display on windows legacy terminal with *raster* fonts. Defaults to True.
    padding (PaddingDimensions, optional): Padding for cells (top, right, bottom, left). Defaults to (0, 1).
    collapse_padding (bool, optional): Enable collapsing of padding around cells. Defaults to False.
    pad_edge (bool, optional): Enable padding of edge cells. Defaults to True.
    expand (bool, optional): Expand the table to fit the available space if ``True``, otherwise the table width will be auto-calculated. Defaults to False.
    show_header (bool, optional): Show a header row. Defaults to True.
    show_footer (bool, optional): Show a footer row. Defaults to False.
    show_edge (bool, optional): Draw a box around the outside of the table. Defaults to True.
    show_lines (bool, optional): Draw lines between every row. Defaults to False.
    leading (int, optional): Number of blank lines between rows (precludes ``show_lines``). Defaults to 0.
    style (Union[str, Style], optional): Default style for the table. Defaults to "none".
    row_styles (List[Union, str], optional): Optional list of row styles, if more than one style is given then the styles will alternate. Defaults to None.
    header_style (Union[str, Style], optional): Style of the header. Defaults to "table.header".
    footer_style (Union[str, Style], optional): Style of the footer. Defaults to "table.footer".
    border_style (Union[str, Style], optional): Style of the border. Defaults to None.
    title_style (Union[str, Style], optional): Style of the title. Defaults to None.
    caption_style (Union[str, Style], optional): Style of the caption. Defaults to None.
    title_justify (str, optional): Justify method for title. Defaults to "center".
    caption_justify (str, optional): Justify method for caption. Defaults to "center".
    highlight (bool, optional): Highlight cell contents (if str). Defaults to False.
titleNcaptionrU   rV   r   safe_boxpaddingcollapse_paddingFpad_edgeTexpandshow_headershow_footer	show_edge
show_linesleadingrQ   none
row_stylesrO   ztable.headerrP   ztable.footerborder_styletitle_stylecaption_styletitle_justifycentercaption_justifyrY   c          6        < V ^8  d   QhRS[ S[S[3,          RS[S[,          RS[S[,          RS[S[,          RS[S[,          RS[S[P                  ,          RS[S[,          RS[	R	S[R
S[RS[RS[RS[RS[RS[RS[RS[
RS[S[S[
,          ,          RS[S[
,          RS[S[
,          RS[S[
,          RS[S[
,          RS[S[
,          RRRRRS[RR/# )r0   headersrt   ru   rU   rV   r   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   rQ   r   rO   rP   r   r   r   r   r$   r   rY   r1   N)r   r)   strr   r!   r[   r   BoxrG   r   r   r   )r3   r4   s   "r5   r6   Table.__annotate__   sd    >& >&$>& !>& (#	>&
 }>& C=>& cgg>& 4.>& #>& >& >& >& >& >& >&  !>&" #>&$ %>&& Xi01'>&( y))>&* y)+>&, y)->&. i(/>&0  	*1>&2 '3>&4 )5>&6 7>&8 
9>&r8   c                  . V n         . V n        Wn        W n        W0n        W@n        WPn        W`n        \        P                  ! V4      V n
        Wn        Wn        Wn        Wn        Wn        Wn        Wn        Wn        VV n        T;'       g    R V n        T;'       g    R V n        VV n        VV n        VV n        VV n        VV n        VV n        \9        T;'       g    . 4      V n        V P                   P<                  pV FO  p\?        V\@        4      '       d   V PC                  VR7       K-  \E        V P                   4      Vn#        V! V4       KQ  	  R# )r*   )rM   N)$columnsrowsrt   ru   rU   rV   r   rv   r   unpack_paddingry   _expandr{   r|   r}   r~   r   rx   rQ   rO   rP   r   r   r   r   r   rY   ra   r   append
isinstancer   
add_columnlenrZ   )r=   rt   ru   rU   rV   r   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   rQ   r   rO   rP   r   r   r   r   r   rY   r   append_columnrM   s   &$$$$$$$$$$$$$$$$$$$$$$$$$*  r5   __init__Table.__init__   s!   : &(!	

" w/ &&"$ 0
(..B(..B(&*.;0?"/3J4D4D"/E++F&#&&v. #DLL 1f% r8   c                R   < V ^8  d   QhRS[ S[S[3,          RS[RS[RS[RS[RR/# )r0   r   rw   rx   ry   rz   r1   rs   )r   r)   r   r   rG   )r3   r4   s   "r5   r6   r      sP     
 
$
 #
 	

 
 
 

r8   c               .    V ! VRRRVRVRRRRRRR	VR
V/ # )ay  Get a table with no lines, headers, or footer.

Args:
    *headers (Union[Column, str]): Column headers, either as a string, or :class:`~rich.table.Column` instance.
    padding (PaddingDimensions, optional): Get padding around cells. Defaults to 0.
    collapse_padding (bool, optional): Enable collapsing of padding around cells. Defaults to True.
    pad_edge (bool, optional): Enable padding around edges of table. Defaults to False.
    expand (bool, optional): Expand the table to fit the available space if ``True``, otherwise the table width will be auto-calculated. Defaults to False.

Returns:
    Table: A table instance.
r   Nrw   rx   r{   Fr|   r}   ry   rz   r2   )clsrw   rx   ry   rz   r   s   &$$$$*r5   grid
Table.grid   sb    * 



 

 .	


 

 

 

 

 

 
	
r8   c                    < V ^8  d   QhRS[ /# rE   rF   )r3   r4   s   "r5   r6   r     s     6 6 6r8   c                F    V P                   ;'       g    V P                  RJ# )z-Setting a non-None self.width implies expand.N)r   rU   r<   s   &r5   rz   Table.expand  s     ||55tzz55r8   c                $   < V ^8  d   QhRS[ RR/# )r0   rz   r1   NrF   )r3   r4   s   "r5   r6   r   $  s      T d r8   c                    Wn         R# )zSet expand.N)r   )r=   rz   s   &&r5   rz   r   #  s	     r8   c                    < V ^8  d   QhRS[ /# rE   r[   )r3   r4   s   "r5   r6   r   )  s      c r8   c                    ^ pV P                   '       d   V P                  '       d
   V^,          pV P                   '       d$   V\        V P                  4      ^,
          ,          pV# )z'Get extra width to add to cell content.)r   r}   r   r   )r=   rU   s   & r5   _extra_widthTable._extra_width(  sI     888QJE888S&**Er8   c                    < V ^8  d   QhRS[ /# rE   r   )r3   r4   s   "r5   r6   r   3  s      3 r8   c                ,    \        V P                  4      # )zGet the current number of rows.)r   r   r<   s   &r5   	row_countTable.row_count2  s     499~r8   c                *   < V ^8  d   QhRRRS[ RS[/# )r0   consoler"   indexr1   )r[   r   )r3   r4   s   "r5   r6   r   7  s"      Y s y r8   c                H   \         P                  ! 4       pV P                  '       dC   W1P                  V P                  V\	        V P                  4      ,          ,          4      ,          pV P
                  V,          P                  pVe   W1P                  V4      ,          pV# )zGet the current row style.)r   nullr   	get_styler   r   rQ   )r=   r   r   rQ   	row_styles   &&&  r5   get_row_styleTable.get_row_style7  sr    

???&&tus4???S7S'TUUEIIe$**	 &&y11Er8   c                (   < V ^8  d   QhRRRRRS[ /# r0   r   r"   optionsr#   r1   r   )r3   r4   s   "r5   r6   r   A  s%       +;	r8   c           	     V   VP                   pV P                  e   V P                  pV^ 8  d   \        ^ ^ 4      # V P                  p\	        V P                  WP                  W4,
          4      4      4      pV P                  pV P                   Uu. uF  pV! WP                  V4      V4      NK  	  pp\	        R V 4       4      V,           pV P                  f   \	        R V 4       4      V,           MV P                  p	\        W4      p
V
P                  V P                  4      p
V
# u upi )Nc              3   8   "   T F  qP                   x  K  	  R # 5iN)minimum.0measurements   & r5   	<genexpr>)Table.__rich_measure__.<locals>.<genexpr>W       D|##|   c              3   8   "   T F  qP                   x  K  	  R # 5ir   )maximumr   s   & r5   r   r   Z  r   r   )rW   rU   r   r   sum_calculate_column_widthsupdate_width_measure_columnr   clamprV   )r=   r   r   rW   extra_widthr   columnmeasurementsminimum_widthmaximum_widthr   s   &&&        r5   __rich_measure__Table.__rich_measure__A  s!    %%	::!

Iq=q!$$''))--i.EF
	
 .. ,,
& G%9%9)%DfM& 	 

 D|DD{R 	
 

" D|DD{R 	
 "-?!''7
s   !D&c                >   < V ^8  d   QhRS[ S[S[S[S[3,          /# rE   )r   r[   )r3   r4   s   "r5   r6   r   c  s"      sCc12 r8   c                    V P                   # )zGet cell padding.)r   r<   s   &r5   rw   Table.paddingb  s     }}r8   c                $   < V ^8  d   QhRS[ RR/# )r0   rw   r1   rs   )r   )r3   r4   s   "r5   r6   r   h  s      0 W r8   c                <    \         P                  ! V4      V n        V # )zSet cell padding.)r   r   r   )r=   rw   s   &&r5   rw   r   g  s      w/r8   rR   r+   rS   r,   rT   r-   rW   rI   rX   c                   < V ^8  d   QhRRRRRS[ S[,          RS[ S[,          RS[ S[,          RS[ S[,          RR	R
RRRRS[ S[,          RS[ S[,          RS[ S[,          RS[ S[,          RS[RR/# )r0   rM   r&   rN   rO   rY   rP   rQ   rR   r$   rS   r   rT   r%   rU   rV   rW   rI   rX   r1   N)r   r   rG   r[   )r3   r4   s   "r5   r6   r   m  s     8$ 8$ 8$ !8$
 y)8$ D>8$ y)8$ 	"8$ !8$ (8$ #8$ }8$ C=8$ C=8$ }8$  !8$" 
#8$r8   c                   \        \        V P                  4      TTT;'       g    RVe   TMV P                  T;'       g    RT;'       g    RVVV	V
VVVVR7      pV P                  P	                  V4       R# )a  Add a column to the table.

Args:
    header (RenderableType, optional): Text or renderable for the header.
        Defaults to "".
    footer (RenderableType, optional): Text or renderable for the footer.
        Defaults to "".
    header_style (Union[str, Style], optional): Style for the header, or None for default. Defaults to None.
    highlight (bool, optional): Whether to highlight the text. The default of None uses the value of the table (self) object.
    footer_style (Union[str, Style], optional): Style for the footer, or None for default. Defaults to None.
    style (Union[str, Style], optional): Style for the column cells, or None for default. Defaults to None.
    justify (JustifyMethod, optional): Alignment for cells. Defaults to "left".
    vertical (VerticalAlignMethod, optional): Vertical alignment, one of "top", "middle", or "bottom". Defaults to "top".
    overflow (OverflowMethod): Overflow method: "crop", "fold", "ellipsis". Defaults to "ellipsis".
    width (int, optional): Desired width of column in characters, or None to fit to contents. Defaults to None.
    min_width (Optional[int], optional): Minimum width of column, or ``None`` for no minimum. Defaults to None.
    max_width (Optional[int], optional): Maximum width of column, or ``None`` for no maximum. Defaults to None.
    ratio (int, optional): Flexible ratio for the column (requires ``Table.expand`` or ``Table.width``). Defaults to None.
    no_wrap (bool, optional): Set to ``True`` to disable wrapping of this column.
r*   N)rZ   rM   rN   rO   rY   rP   rQ   rR   rS   rT   rU   rV   rW   rI   rX   )r)   r   r   rY   r   )r=   rM   rN   rO   rY   rP   rQ   rR   rS   rT   rU   rV   rW   rI   rX   r   s   &&&$$$$$$$$$$$$ r5   r   Table.add_columnm  sz    N t||$%++#,#8idnn%++++2
" 	F#r8   rj   c                N   < V ^8  d   QhRS[ R,          RS[ S[,          RS[RR/# )r0   renderablesr&   rQ   rj   r1   Nrk   )r3   r4   s   "r5   r6   r     sD     -D -D/0-D 	"-D 	-D
 
-Dr8   c                  R R lp\        V4      pV P                  p\        V4      \        V4      8  d(   . VOR.\        V4      \        V4      ,
          ,          Op\        V4       F  w  rxV\        V4      8X  dX   \	        WpP
                  R7      p	V P                   F  p
V! V	\        R4      4       K  	  V P                  P                  V	4       MWg,          p	Vf   V! V	R4       K  \        V4      '       d   V! W4       K  \        P                  ! R\        V4      P                   R24      h	  V P                  P                  \        WR7      4       R# )	a  Add a row of renderables.

Args:
    *renderables (None or renderable): Each cell in a row must be a renderable object (including str),
        or ``None`` for a blank cell.
    style (StyleType, optional): An optional style to apply to the entire row. Defaults to None.
    end_section (bool, optional): End a section and draw a line. Defaults to False.

Raises:
    errors.NotRenderableError: If you add something that can't be rendered.
c                ,    V ^8  d   QhR\         RRRR/# )r0   r   rp   r&   r1   N)r)   )r3   s   "r5   r6   #Table.add_row.<locals>.__annotate__  s"     	- 	-V 	-1A 	-d 	-r8   c                 <    V P                   P                  V4       R # r   )r;   r   )r   rp   s   &&r5   add_cellTable.add_row.<locals>.add_cell  s    MM  ,r8   N)rZ   rY   r*   zunable to render z1; a string or other renderable object is requiredrQ   rj   )ra   r   r   	enumerater)   rY   r   r    r   r   r   NotRenderableErrortyper\   rh   )r=   rQ   rj   r   r   cell_renderablesr   r   rp   r   _s   &$$*       r5   add_rowTable.add_row  s*   $	- >B+=N,, 3w</ ! 3w<#.>*??@  "++;!<EG$uGAVT"X. ###F+ !$z**,//'Z(8(A(A'BBst  "=  			5BCr8   c                   < V ^8  d   QhRR/# )r0   r1   Nr2   )r3   r4   s   "r5   r6   r     s     - -T -r8   c                ^    V P                   '       d   RV P                   R,          n        R# R# )z2Add a new section (draw a line after current row).TN)r   rj   r<   s   &r5   add_sectionTable.add_section  s"     999(,DIIbM% r8   c                &   < V ^8  d   QhRRRRRR/# )r0   r   r"   r   r#   r1   r'   r2   )r3   r4   s   "r5   r6   r     s%     - - -+;-	-r8   c              #  "  aa"   V P                   '       g   \        R 4      x  R# VP                  pV P                  e   V P                  pV P                  pV P                  SVP                  W4,
          4      4      p\        V4      V,           pVP                  W`P                  RR7      oRR VV3R lllpV P                  '       dG   V! V P                  \        P                  ! V P                  R4      V P                  R7       Rj  xL
  V P                  SSV4       Rj  xL
  V P                   '       dI   V! V P                   \        P                  ! V P"                  R4      V P$                  R7       Rj  xL
  R# R#  L{ Lb L5i)	
N)rU   rY   heightc                8    V ^8  d   QhR\         R\        RRRR/# )r0   textrQ   rR   r$   r1   r'   )r!   r   )r3   s   "r5   r6   ,Table.__rich_console__.<locals>.__annotate__  s,     
	 
	
	#,
	7F
	
	r8   c                    < \        V \        4      '       d   SP                  WR R7      MT pSP                  VSP	                  VR7      R7      # )F)rQ   rY   rR   )r   )r   r   
render_strrenderupdate)r   rQ   rR   render_textr   render_optionss   &&& r5   render_annotation1Table.__rich_console__.<locals>.render_annotation  sZ    
 dC(( ""4"F 
 >>^%:%:7%:%K "  r8   ztable.title)rQ   rR   ztable.caption)r   )r   r   rW   rU   r   r   r   r   r   rY   rt   r   
pick_firstr   r   _renderru   r   r   )	r=   r   r   rW   r   widthstable_widthr   r   s	   &f&     @r5   __rich_console__Table.__rich_console__  sQ     |||$-%%	::!

I''..W)))*AB
 &kK/  ( 

	 
	 :::(

&&t'7'7G**  
 <<@@@<<<(&&t'9'9?K,,   
 	As=   D	FF	F(F)F?AF F	FFFc                8   < V ^8  d   QhRRRRRS[ S[,          /# r   r	   r[   )r3   r4   s   "r5   r6   r     s)     > > >+;>	c>r8   c           
     D   VP                   pV P                  pV Uu. uF  qPP                  WV4      NK  	  ppV Uu. uF  qwP                  ;'       g    ^NK  	  ppV P                  p	V P
                  p
V P                  '       EdD   V Uu. uF,  qP                  '       g   K  VP                  ;'       g    ^ NK.  	  pp\        V4      '       d   \        Wd4       UUu. uF%  w  ruVP                  '       d   ^ MVP                  NK'  	  pppV Uu. uFD  pVP                  '       g   K  VP                  ;'       g    ^V	! VP                  4      ,           NKF  	  ppV\        V4      ,
          p\        WV4      p\        V4      p\!        V4       F6  w  ppVP                  '       g   K  VV,          \#        V4      ,           VV&   K8  	  \        V4      pVV8  d   T P%                  TV Uu. uF)  qUP                  RJ ;'       d    VP&                  '       * NK+  	  upV4      p\        V4      pVV8  d3   VV,
          p\)        V^.\+        V4      ,          W4      p\        V4      p\        W4       UUu. uF'  w  ppV P                  WP-                  V4      V4      NK)  	  pppV Uu. uF  qwP                  ;'       g    ^ NK  	  ppVV8  d   V P                  '       g'   V P.                  e   VV P.                  V
,
          8  dh   V P.                  f   TM\1        V P.                  V
,
          V4      p\        VV,
          V4      p\        VV4       UUu. uF  w  ppVV,           NK  	  pppV# u upi u upi u upi u uppi u upi u upi u uppi u upi u uppi )zNCalculate the widths of each column, including padding, not including borders.N)rW   r   r   r   _get_padding_widthr   rz   rJ   rI   anyziprU   rZ   r   r   iterr   next_collapse_widthsrX   r   r   r   rV   min)r=   r   r   rW   r   r   width_ranges_ranger  get_padding_widthr   colratiosfixed_widthsflex_minimumflexible_widthflex_widthsiter_flex_widthsr   r  excess_widthrU   
_max_width
pad_widths_widthpads   &&&                       r5   r   Table._calculate_column_widths  sR    %%	,,IP
IPv  6: 	 
 5AAL&..%%A%LA 33'';;;07H<<nciinn1nFH6{{ +.l*D *D  Afnn<*D    #* ") KV\\&&Q*;FMM*JJJ")   
 "+S->!>.~|T#'#4 %.w%7ME6(4U(;dCS>T(Tu &8 &k"**MTUW6,,$&==v~~+==WUF
 f+KY&*Y6%lQC#f+4EvV!&k &)%9%9ME6 $$W.B.B5.I6R%9   9EEfnn)))FE)#NN&;$..;:V+W >>) +5yA 
 **{*BFKJ69&*6MN6M{vsfsll6MFNq
 B I    V F Os^   M2M7M7M<$M<7M<+NN*N=N-N
N
6-N*NNNc          	      b   < V ^8  d   QhRS[ S[,          RS[ S[,          RS[RS[ S[,          /# )r0   r  wrapablerW   r1   )r	   r[   rG   )r3   r4   s   "r5   r6   r   L  s9     $ $#Y$*.t*$AD$	c$r8   c                  a \        V4      pWC,
          p\        V4      '       d   V'       d   V^ 8  d   \        R \        W4       4       4      o\        V3R l\        W4       4       4      pSV,
          p\        W4       UU	u. uF  w  rVS8X  d   V	'       d   ^M^ NK  	  p
pp	\        V
4      '       d	   V'       g    V# \	        WW4      .\        V4      ,          p\        WZW4      p\        V4      pWC,
          pK  V# u up	pi )a  Reduce widths so that the total is under max_width.

Args:
    widths (List[int]): List of widths.
    wrapable (List[bool]): List of booleans that indicate if a column may shrink.
    max_width (int): Maximum width to reduce to.

Returns:
    List[int]: A new list of widths.
c              3   >   "   T F  w  rV'       g   K  Vx  K  	  R # 5ir   r2   )r   rU   
allow_wraps   &  r5   r   )Table._collapse_widths.<locals>.<genexpr>]  s      !3H/eJEE3Hs   
c              3   N   <"   T F  w  rV'       d
   VS8w  d   TM^ x  K  	  R# 5i)r   Nr2   )r   rU   r#  
max_columns   &  r5   r   r$  `  s)      (-B) (EZ,?EQF-Bs   "%)r   r	  maxr
  r  r   r   )r   r  r   rW   total_widthr  second_max_columncolumn_differencerU   r#  r  
max_reducer&  s   &&&&        @r5   r  Table._collapse_widthsK  s    &k".x==,"2  !36v3H! 
 %( (-0-B( %! %/1B$B! .1-B-B) !J.:QAE-B   6{{*;  ",BCc&kQ
%lJO!&k*6s   DDc          	      @   < V ^8  d   QhRRRS[ RS[RS[S[,          /# )r0   r   r"   column_indexr   r1   )r[   r)   r   rn   )r3   r4   s   "r5   r6   r   r  s7     G G G03G=CG	%Gr8   c              #    aaaaaa"   V P                   oV P                  oV P                  o\        S4      pV^ 8H  oV\	        V P
                  4      ^,
          8H  o/ oR VVVVVV3R llp. pVP                  pVP                  pV P                  '       dG   T! V P                  ;'       g    R4      V! VP                  4      ,           p	V! WP                  34       T! VP                  ;'       g    R4      p
VP                   F  pV! W34       K  	  V P                  '       dG   T! V P                  ;'       g    R4      V! VP                  4      ,           pV! WP                  34       V'       d\   \         p\#        V4       FD  w  rw  pp\%        TV! VV! W4      4      \'        VRR4      ;'       g    VP(                  4      x  KF  	  R# V F4  w  pp\%        TT\'        VRR4      ;'       g    VP(                  4      x  K6  	  R# 5i)z3Get all the cells with padding and optional header.c          
      r    V ^8  d   QhR\         R\         R\        \        \        \        \        3,          /# )r0   	first_rowlast_rowr1   )rG   r   r[   )r3   s   "r5   r6   &Table._get_cells.<locals>.__annotate__  s0     	 	4 	4 	E#sCQTBT<U 	r8   c                 6  < SP                  W34      pV'       d   V# Sw  r4rVS	'       d5   S
'       g   \        ^ Wd,
          4      pV'       g   \        ^ W5,
          4      pS'       g)   S
'       d   ^ pS'       d   ^ pV '       d   ^ pV'       d   ^ pW4WV3pVSW3&   V# )r   )getr'  )r1  r2  cachedr,   rightbottomr+   r   _padding_cacherx   first_columnlast_columnry   rw   s   &&      r5   get_padding%Table._get_cells.<locals>.get_padding  s    #''(=>F'.$C#q$,/D CL1FDECFF1H4<NI01Or8   r*   rS   N)rx   ry   rw   r	  r   r   r   r   r{   rO   rM   rQ   rB   r|   rP   rN   r   r   rn   getattrrS   )r=   r   r.  r   any_paddingr<  	raw_cells_appendr   rO   
cell_stylecellrP   _PaddingfirstlastrQ   rp   r9  rx   r:  r;  ry   rw   s   &&&&              @@@@@@r5   
_get_cellsTable._get_cellsr  s    
  00==,,'l#q("c$,,&7!&;;MO	 	2 ?A	""%%	$T%6%6%<%<"=	##A L \==12v||11r2
LLDZ&' !$T%6%6%<%<"=	##A L \==12H4CI4N00eZZU)ABJ
D9LLV__  5O &/!zJ
D9LLV__  &/s&   B$H-AH34H(H=8H6BHc                &   < V ^8  d   QhRS[ RS[ /# )r0   r.  r1   r   )r3   r4   s   "r5   r6   r     s     $ $s $s $r8   c                    V P                   w  r#r$V P                  '       d   V^ 8  d   \        ^ WC,
          4      pWC,           # )zGet extra width from padding.)rw   rx   r'  )r=   r.  r   	pad_rightpad_lefts   &&   r5   r  Table._get_padding_width  s<    $(LL!a   aq("67##r8   c                .   < V ^8  d   QhRRRRRS[ RS[/# )r0   r   r"   r   r#   r   r1   )r)   r   )r3   r4   s   "r5   r6   r     s3     & && "& 	&
 
&r8   c                .   VP                   pV^8  d   \        ^ ^ 4      # V P                  VP                  4      pVP                  e>   \        VP                  V,           VP                  V,           4      P                  V4      # . p. pVP                  pVP                  p	\        P                  p
V P                  WP                  V4       F(  pV
! WVP                  4      w  rV! V4       V	! V4       K*  	  \        V'       d   \        V4      M^V'       d   \        V4      MT4      P                  V4      pTP                  VP                  f   RMVP                  V,           VP                   f	   R4      pV# VP                   V,           4      pV# )z0Get the minimum and maximum width of the column.N)rW   r   r  rZ   rU   with_maximumr   r5  rG  rp   r'  r   rV   )r=   r   r   r   rW   padding_width
min_widths
max_widths
append_min
append_maxget_render_widthrC  _min_maxr   s   &&&&           r5   r   Table._measure_column  sj    %%	q=q!$$//><<#},fll].Jl9%& !#
 "
&&
&&
&??OOG]]FCD)'DOOLJDtt D
 ")C
Oq)C
Oy
 ,y
! 	 "''$$,D&2B2B]2R$$,D
  392B2B]2R
 r8   c                <   < V ^8  d   QhRRRRRS[ S[,          RR/# )r0   r   r"   r   r#   r  r1   r'   r  )r3   r4   s   "r5   r6   r     s7     s s s+;sEI#Ys	sr8   c              #    a aa*a+a,a-"   SP                  S P                  ;'       g    R 4      pTSP                  S P                  ;'       g    R 4      ,           pVV 3R l\        S P                  4       4       p\        \        V!  4      pS P                  '       d<   S P                  P                  V\        S P                  SP                  4      R7      MRpV'       d#   S P                  '       g   VP                  4       MTp\        P                  ! 4       p	S P                  p
S P                  pS P                  pS P                   pS P"                  pS P$                  p\        o*V'       d   S*! VP&                  V4      S*! VP(                  V4      S*! VP*                  V4      3S*! VP,                  V4      S*! VP.                  V4      S*! VP0                  V4      3S*! VP2                  V4      S*! VP4                  V4      S*! VP6                  V4      3.pV'       d   S*! VP9                  V4      V4      x  V	x  M. pS P:                  pSP                   p\        \=        V4      4       EF  w  pw  pppT;'       d    To,T;'       d    To+S,'       g#   S+'       g   S P>                  VV,
          ,          MRp^p. pS,'       g	   S+'       d   \@        PB                  ! 4       pM T! T! SV'       d
   V^,
          MT4      4      p\        VVV
4       F  w  pppVPE                  VVPF                  VPH                  VPJ                  RVPL                  R7      pSPO                  VPP                  VV! VP                  4      V,           R7      p\S        V\U        V4      4      pVPW                  V4       K  	  \S        R V 4       4      o-R V*V+V,V-3R llp \        VVVV
4       UU!UUu. uFE  w  pp!ppS*PY                  V ! VV!PZ                  VV! V!P                  4      V,           4      VV4      NKG  	  uppp!pVR	&   V'       Ed   V'       d*   V'       d"   S*! VP]                  VR
VR7      V4      x  V	x  TV'       d   ^ MV'       d   ^M^,          w  p"p#p$V$P^                  Pa                  4       '       d   T$M-S*! V$P^                  VPb                  V$P                  ,           4      p%\e        V4       FS  p&V'       d   V"x  \g        V4       F%  w  p'p(V(V&,           Rj  xL
  V''       d   K!  V%x  K'  	  V'       d   V#x  V	x  KU  	  M0\e        V4       F!  p&V F  p(V(V&,           Rj  xL
  K  	  V	x  K#  	  V'       d2   V'       d*   V'       d"   S*! VP]                  VRVR7      V4      x  V	x  T;'       d    VPh                  p)V'       g   EKh  V'       g   V'       g   V)'       g   EK  V'       d   EK  V'       d   V\U        V4      ^,
          8  d   EK  V'       d   S,'       d   EK  V'       d&   S*! VP]                  VRVR7      V,          V4      x  MS*! VP]                  VRVR7      V4      x  V	x  EK  	  V'       d+   V'       d!   S*! VPk                  V4      V4      x  V	x  R# R# R# u uppp!pi  EL ELX5i)r*   c              3   L   <"   T F  w  rSP                  SW4      x  K  	  R # 5ir   )rG  )r   r.  r   r   r=   s   &  r5   r    Table._render.<locals>.<genexpr>  s)      
(?$ OOG\::(?s   !$)safeN)rU   rR   rX   rT   r   rY   rQ   c              3   8   "   T F  p\        V4      x  K  	  R # 5ir   )r   )r   rC  s   & r5   r   r]  E  s     954SYY5r   c                    V ^8  d   QhR\         \         \        ,          ,          RRR\        R\        R\         \         \        ,          ,          /# )r0   rC  rS   r   rU   rQ   r1   )r	   r   r[   r   )r3   s   "r5   r6   #Table._render.<locals>.__annotate__G  sS     M M4=)M/M M 	M
 d7m$Mr8   c                    < S'       d   R pM
S'       d   RpVR8X  d   SP                  WSV4      # VR8X  d   SP                  WSV4      # SP                  WSV4      # )r8  r,   middle)	align_topalign_middlealign_bottom)rC  rS   rU   rQ   _Segment
footer_row
header_row
row_heights   &&&&r5   
align_cell!Table._render.<locals>.align_cellG  sd     'H$Hu$#--d:uMM)#00j%PP,,T*eLLr8   :NNNfoot)edgeheadmidrow)6r   rQ   r   r   r   ra   r
  r   
substituter   rv   r{   get_plain_headed_boxr   liner|   r}   r~   r   	head_left
head_righthead_verticalmid_left	mid_rightmid_vertical	foot_left
foot_rightfoot_verticalget_topr   r   r   r   r   r   rR   rX   rT   rY   render_linesrp   r'  r   r   	set_shaperS   get_rowr   stripbackground_styleranger   rj   
get_bottom).r=   r   r   r  table_styler   _column_cells	row_cells_boxnew_liner   r{   r|   r}   r~   r   box_segmentsr   r   r   rE  rF  row_cellrr  
max_heightrB   r   rU   rC  r   r   linesrl  _cellr+   r7  _dividerdividerline_no	last_cellrendered_cellrj   rh  ri  rj  rk  s.   ff&&                                      @@@@r5   r   Table._render  s     ''

(8(8b9"W%6%6t7H7H7N7NB%OO
(1$,,(?
 .2#}2E-F	
 xxx HHiw7G7GH     	 /34;K;K;Kt((*QU<<>,,&&&&NN	__
,, T^^\:T__l;T//> T]]L9T^^\:T..= T^^\:T__l;T//>L" t||F3\BBL**%%	.7	8R.S*E*E4..;J--+J #: 		%+-. 
 J/1EZ!JJL	%!'519O	 (+68W'E#tV!("NN"NN#__$.. "0 "  ,,OO"#DJJ/); - 
 !SZ8
U# (F" 9599JM M8 36fhw2W 3X.E5$ ""!%++.:	 	 3XE!H tK"VV)Dl  #N(4%Q4aUV(X%eX
  }}**,, ! y'A'AHNN'R   %Z0G "
4=e4D0	=#0#999(y")M 5E !#"N  1  %Z0G).#0#999 */"N  1 +LLiL@,  11#//Ktw++(Uc)nq6H-H(ZZ& LLYLG'Q( 
 ' LLYLG  #Nm /Tp I4??62LAAN 4ID : :s  A[B[#[5A<[2B.[!A [[
[[!'[	["[4C6[*AZ85[[[)[	[-[9A'[ [ 
!	[/[?,[+[
,[[[)[>[[[&[1[<[[[&[1[9A[[-[[c                R   < V ^8  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   # )r0   r   r   )r	   r)   rh   )r3   r4   s   "r5   r6   r      s*     @ &\A B s)OC r8   )r   r   r   r   ru   r   r   rx   r   rP   rO   rY   r   rV   ry   r   r   rv   r}   r|   r{   r~   rQ   rt   r   r   rU   )r      )r*   r*   )r\   r]   r^   r_   r`   r   
HEAVY_HEADr   classmethodr   rb   rz   setterr   r   r   r   rw   r   r   r   r  r   r  rG  r  r   r   rc   rd   re   rf   s   @r5   rs   rs      s    D>& %)>& '+	>&
  $>& $(>& "%>& $(>& &,>& "'>& >& >& !>& ">& >&  !!>&" #>&$ "%>&& 59'>&( -;)>&* -;+>&, -1->&. ,0/>&0 .21>&2 *23>&4 ,45>&6  7>& >&@ 
 &'
 "&	

 
 
 
 
@ 6 6 ]]       B   ^^ 
8$
 -18$ %)8$ -18$ &*8$ $*8$ +08$ &08$  $8$ $(8$ $(8$  $8$  !8$ 8$t-D &*-D "	-D -D^- -- -^> >@ $ $LG GR$ $& &Ps sc  r8   rs   __main__)r"   )ReprHighlighter)timerzTable renderzStar Wars MovieszRich example tabler7  )rt   ru   r   Releasedbright_cyancyanT)rO   rQ   rX   Titlemagentar_  z
Box Officegreen)rR   rQ   zDec 20, 2019z Star Wars: The Rise of Skywalkerz$952,110,690zMay 25, 2018zSolo: A Star Wars Storyz$393,151,347zDec 15, 2017z!Star Wars Ep. V111: The Last Jediz$1,332,539,889zon blackr   zDec 16, 2016zRogue One: A Star Wars Storyz$1,332,439,889c                (    V ^8  d   QhR\         RR/# )r0   r   r1   N)r   )r3   s   "r5   r6   r6     s     	 	 	 	r8   c                     \         P                  4        \         P                  \        V 4      4       \         P                  4        R # r   )r   printrulerY   )r   s   &r5   rM   rM     s$    MMOLL4)MMOr8   zExample Tabler   r   zexpand=Truezwidth=50NFdimr   zrow_styles=['dim', 'none']z%leading=1, row_styles=['dim', 'none']z+show_lines=True, row_styles=['dim', 'none'])Hdataclassesr   r   r   typingr   r   r   r	   r
   r   r   r   r   r*   r   r   _loopr   r   _pickr   _ratior   r   alignr   jupyterr   measurer   rw   r   r   protocolr   segmentr   rQ   r   r   r   r    r!   r   r"   r#   r$   r%   r&   r'   r)   rh   rn   rs   r\   pip._vendor.rich.consolepip._vendor.rich.highlighterr  _timerr  tabler   r   rM   rY   r  rz   rU   r   r   r~   r2   r8   r5   <module>r     s   1 1
 
 
  -  2 & !   / #  #    Z& Z& Z&z M M M#J #DL DN z0<	~		$(#
 	]&$ 	 	
 		2wgF.	

 	n&?P/ 	 	
 	*	
	
 )#%	eX.}ezeX.!6?+,eX.!6?67eX.!6?<=eX.O 
	  
		s   +F3J**J;	