+
    iT(                     6   ^ RI Ht ^ RIHtHtHtHt ^RIHt ^RI	H
t
 ^RIHt ^RIHt ^RIHt ]'       d   ^RIHtHtHtHt ]R,          t]R,          t ! R
 R]
4      t ! R R]
4      t]R8X  d   ^ RIHtHt ^ RIHt ^ RIH t  ]! 4       t!]! 4       t] ! ]! ]PE                  ]!! R4      4      ]PG                  ]!! R4      4      ]PI                  ]!! R4      4      4      ^<RRR7      t%]PM                  ]PG                  ]%R	R]PN                  R7      4       R# R# )    )chain)TYPE_CHECKINGIterableOptionalLiteral)	Constrain)JupyterMixinMeasurement)Segment)	StyleType)ConsoleConsoleOptionsRenderableTypeRenderResultmiddlec            
          a  ] tR t^t o RtRRRRRRRRR/V 3R lR	 llltV 3R
 lR lt]RRRRRRRRR/V 3R lR lll4       t]RRRRRRRRR/V 3R lR lll4       t	]RRRRRRRRR/V 3R lR lll4       t
V 3R lR ltV 3R lR ltRtV tR# )Aligna  Align a renderable by adding spaces if necessary.

Args:
    renderable (RenderableType): A console renderable.
    align (AlignMethod): One of "left", "center", or "right""
    style (StyleType, optional): An optional style to apply to the background.
    vertical (Optional[VerticalAlignMethod], optional): Optional vertical align, one of "top", "middle", or "bottom". Defaults to None.
    pad (bool, optional): Pad the right with spaces. Defaults to True.
    width (int, optional): Restrict contents to given width, or None to use default width. Defaults to None.
    height (int, optional): Set height of align renderable, or None to fit to contents. Defaults to None.

Raises:
    ValueError: if ``align`` is not one of the expected values.
NverticalpadTwidthheightc                   < V ^8  d   QhRRRS[ RS[S[,          RS[S[,          RS[RS[S[,          RS[S[,          R	R
/# )   
renderabler   alignstyler   r   r   r   returnN)AlignMethodr   r   VerticalAlignMethodboolint)format__classdict__s   "]/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/rich/align.py__annotate__Align.__annotate__!   sn      $  	"	 ./  }  
    c                   VR9  d   \        RV: R24      hVe   VR9  d   \        RV: R24      hWn        W n        W0n        W@n        WPn        W`n        Wpn        R# )leftzDinvalid value for align, expected "left", "center", or "right" (not )NzGinvalid value for vertical, expected "top", "middle", or "bottom" (not r*   centerrighttopr   bottom)
ValueErrorr   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   s   &&&&$$$$r%   __init__Align.__init__!   sz     33VW\V__`a  H4O$OYZbYeefg  %

 
r(   c                    < V ^8  d   QhRS[ /# r   r   str)r#   r$   s   "r%   r&   r'   <   s     = =# =r(   c                @    R V P                   : RV P                  : R2# )zAlign(z, r+   )r   r   r3   s   &r%   __repr__Align.__repr__<   s     *"TZZN!<<r(   c                   < V ^8  d   QhRRRS[ S[,          RS[ S[,          RS[RS[ S[,          RS[ S[,          RR	/# 
r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   )r#   r$   s   "r%   r&   r'   @   d     
 
$
 	"

 ./
 
 }
 
 

r(   c          
          V ! VRVVVVVR7      # )zAlign a renderable to the left.r*   r   r   r   r   r    clsr   r   r   r   r   r   s   &&&$$$$r%   r*   
Align.left?   s&     
 	
r(   c                   < V ^8  d   QhRRRS[ S[,          RS[ S[,          RS[RS[ S[,          RS[ S[,          RR	/# r?   r@   )r#   r$   s   "r%   r&   r'   V   rA   r(   c          
          V ! VRVVVVVR7      # )z!Align a renderable to the center.r-   rC   rD   rE   s   &&&$$$$r%   r-   Align.centerU   s&     
 	
r(   c                   < V ^8  d   QhRRRS[ S[,          RS[ S[,          RS[RS[ S[,          RS[ S[,          RR	/# r?   r@   )r#   r$   s   "r%   r&   r'   l   rA   r(   c          
          V ! VRVVVVVR7      # )z Align a renderable to the right.r.   rC   rD   rE   s   &&&$$$$r%   r.   Align.rightk   s&     
 	
r(   c                &   < V ^8  d   QhRRRRRR/# r   consoler   optionsr   r   r   rD   )r#   r$   s   "r%   r&   r'      s*     Z! Z! Z!+;Z!	Z!r(   c           	   #    a aaaaaa"   S P                   oVP                  S P                  VR 7      P                  pTP	                  \        S P                  S P                  f   TM\        VS P                  4      4      VP                  RR7      4      p\        \        P                  ! V4      4      o\        P                  ! S4      w  r5\        P                  ! SW54      o\        P                  ! 4       oVP                  V,
          oS P                   e   VP#                  S P                   4      MRoR VVVVV V3R llpS P$                  '       d5   \        RS P                  ;'       g    VP                  ,           R2S4      M
\        R4      oR V3R llpS P&                  ;'       g    VP&                  pS P(                  '       d   Ve   S P(                  R	8X  d!   W,
          p	\+        V! 4       V! V	4      4      p
MuS P(                  R
8X  d>   W,
          ^,          pW,
          V,
          p	\+        V! V4      V! 4       V! V	4      4      p
M'W,
          p\+        V! V4      V! 4       4      p
MV! 4       p
S P                   '       d3   VP#                  S P                   4      o\        P,                  ! V
S4      p
T
 Rj  xL
  R#  L5i))rQ   Nr   c                :    V ^8  d   QhR\         \        ,          /# r7   )r   r   )r#   s   "r%   r&   ,Align.__rich_console__.<locals>.__annotate__   s     %	# %	#8G#4 %	#r(   c               3   z  <"   S^ 8:  d   S F  p T  Rj  xL
  Sx  K  	  R# SR8X  dM   SP                   '       d   \        RS,          S	4      MRpS F  p T  Rj  xL
  V'       d   Vx  Sx  K  	  R# SR8X  d|   S^,          p\        RV,          S	4      pSP                   '       d   \        RSV,
          ,          S	4      MRpS F)  p V'       d   Vx  T  Rj  xL
  V'       d   Vx  Sx  K+  	  R# SR8X  d1   \        RS,          S	4      pS F  p Vx  T  Rj  xL
  Sx  K  	  R# R#  EL L LX L5i)r   Nr*    r-   r.   )r   r   )
liner   r*   	pad_rightr   excess_spacelinesnew_liner3   r   s
       r%   generate_segments1Align.__rich_console__.<locals>.generate_segments   s%    q !D#OO"N " &<@HHHgcL0%8$!D#OO!	"N	 " ("#q(cDj%0CG888GC<$#67?QU  "D!	#OO '"N " '!cL0%8!DI#OO"N " "7 $ $ $ $sW   D;D2&D;D;D5D;)A5D;D7D;+6D;!D9"D;5D;7D;9D;rW   
c                F    V ^8  d   QhR\         R\        \        ,          /# r   countr   r"   r   r   )r#   s   "r%   r&   rU      s     	% 	%s 	%x'8 	%r(   c              3   N   <"   V ^ 8  d   \        V 4       F  pSx  K	  	  R# R# 5i)r   Nrange)rb   _
blank_lines   & r%   blank_lines+Align.__rich_console__.<locals>.blank_lines   s&     qyuA$$ & s   "%r0   r   )r   measurer   maximumrenderr   r   minupdatelistr   split_lines	get_shape	set_shaperX   	max_widthr   	get_styler   r   r   r   apply_style)r3   rP   rQ   r   renderedr   r]   ri   vertical_heightbottom_spaceiter_segments	top_spacer   rh   rZ   r[   r\   r   s   f&&         @@@@@@r%   __rich_console__Align.__rich_console__   s1     

AII>>$***<#eTZZBX NN$N'	
 W((23))%0!!%7<<>((50151G!!$**-T%	# %	#R xxx sdjj==G,=,=>?rBEJ 		% 	%
 ++77===_8}}%.7 %&7&9;|;T U(*,5!;	.:VC %	*%'-! ,4	 %k)&<>O>Q R-/M:::%%djj1E#//uEM   s2   EKK1AK3KB;K7KKKc                (   < V ^8  d   QhRRRRRS[ /# r   rP   r   rQ   r   r   r
   )r#   r$   s   "r%   r&   r'      %       +;	r(   c                H    \         P                  ! WV P                  4      pV# Nr   getr   r3   rP   rQ   measurements   &&& r%   __rich_measure__Align.__rich_measure__        "oogHr(   )r   r   r   r   r   r   r   )r*   Nr   )__name__
__module____qualname____firstlineno____doc__r4   r<   classmethodr*   r-   r.   r|   r   __static_attributes____classdictcell__r$   s   @r%   r   r      s      37   $ !% 6= = 

 37
 
  $
 !%
 
 
* 

 37
 
  $
 !%
 
 
* 

 37
 
  $
 !%
 
 
*Z! Z!x r(   r   c                   p   a  ] tR t^t o RtRV 3R lR lltV 3R lR ltV 3R lR ltV 3R	 lR
 ltRt	V t
R# )VerticalCentera8  Vertically aligns a renderable.

Warn:
    This class is deprecated and may be removed in a future version. Use Align class with
    `vertical="middle"`.

Args:
    renderable (RenderableType): A renderable object.
    style (StyleType, optional): An optional style to apply to the background. Defaults to None.
Nc                8   < V ^8  d   QhRRRS[ S[,          RR/# )r   r   r   r   r   N)r   r   )r#   r$   s   "r%   r&   VerticalCenter.__annotate__   s.      $ 	" 
	r(   c                    Wn         W n        R # r   r   r   )r3   r   r   s   &&&r%   r4   VerticalCenter.__init__   s    
 %
r(   c                    < V ^8  d   QhRS[ /# r7   r8   )r#   r$   s   "r%   r&   r      s     6 6# 6r(   c                $    R V P                   : R2# )zVerticalCenter(r+   )r   r;   s   &r%   r<   VerticalCenter.__repr__   s      3155r(   c                &   < V ^8  d   QhRRRRRR/# rO   rD   )r#   r$   s   "r%   r&   r      s%     1 1 1+;1	1r(   c              #    aa"   V P                   e   VP                  V P                   4      MR pVP                  V P                  VP	                  R R7      RR7      p\
        P                  ! V4      w  rV\
        P                  ! 4       oVP                  ;'       g    VP                  P                  pV\        V4      ,
          ^,          pWx,
          \        V4      ,
          p	\        RV,           V4      oR VV3R llp
V^ 8  d   V
! V4       R j  xL
  V F  pT R j  xL
  Sx  K  	  V	^ 8  d   V
! V	4       R j  xL
  R # R #  L6 L) L5i)NrS   F)r   rW   c                F    V ^8  d   QhR\         R\        \        ,          /# ra   rc   )r#   s   "r%   r&   5VerticalCenter.__rich_console__.<locals>.__annotate__	  s     	 	s 	x'8 	r(   c              3   D   <"   \        V 4       F  pSx  Sx  K  	  R # 5ir   re   )rb   rg   rh   r\   s   & r%   ri   4VerticalCenter.__rich_console__.<locals>.blank_lines	  s     5\   "s    )r   ru   render_linesr   ro   r   rr   rX   r   sizelen)r3   rP   rQ   r   r[   r   _heightr   r{   ry   ri   rX   rh   r\   s   &&&         @@r%   r|   VerticalCenter.__rich_console__   s#     261G!!$**-T$$OOW^^4^8e % 
 !**51<<>667<<#6#6c%j(Q.	)CJ6e}u5
	 	
 q="9---DOON  !"<000 	 . 1s=   BEA8EEE%E&EE	EEEc                (   < V ^8  d   QhRRRRRS[ /# r   r
   )r#   r$   s   "r%   r&   r     r   r(   c                H    \         P                  ! WV P                  4      pV# r   r   r   s   &&& r%   r   VerticalCenter.__rich_measure__  r   r(   r   r   )r   r   r   r   r   r4   r<   r|   r   r   r   r   s   @r%   r   r      s2     	 6 61 16 r(   r   __main__)r   Group)ReprHighlighter)Panelzalign='left'zalign='center'zalign='right'zon dark_blue)r   r   titlezon red)r   r   r   Nr,   r/   )(	itertoolsr   typingr   r   r   r   	constrainr   jupyterr	   rk   r   segmentr   r   r   rP   r   r   r   r   r   r    r   r   r   pip._vendor.rich.consoler   pip._vendor.rich.highlighterr   pip._vendor.rich.panelr   highlighterr*   r-   r.   panelprintr   rD   r(   r%   <module>r      s     = =   !    NN/078 PL Pf6\ 6r z7<,!#KiGJJ{>23LL%567KKO45	

 	E MMUXXgnnU' r(   