+
     h~  c                   s    ^ RI Ht ^ RIHtHtHtHtHtHtH	t	H
t
 ]'       d   ^RIHtHtHtHtHtHt ^RIHt ^RIHt ^RIHt ]! R4      t ! R R	4      t ! R
 R4      tR# )i    )zip_longest)TYPE_CHECKINGIterableIteratorListOptionalTypeVarUnionoverload)ConsoleConsoleOptionsJustifyMethodOverflowMethodRenderResultRenderableTypeText)cell_len)MeasurementTc                   s   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V 3R lR lt	Rt
V tR# )Renderablesz:A list subclass which renders its contents to the console.Nc                sB   < V ^8  d   QhRS[ S[R,          ,          RR/# )   renderablesr   returnN)r   r   Zformat__classdict__   "@/usr/lib/python3.14/site-packages/pip/_vendor/rich/containers.py__annotate__Renderables.__annotate__!   s(     
 
#H-=$>?
	
    c                s@    Ve   \        V4      V n        R # . V n        R # N)list_renderables)selfr      &&r   __init__ZRenderables.__init__!   s$     "-!8D 	>@ 	r   c                &   < V ^8  d   QhRRRRRR/# r   consoler	   optionsr
   r   r    r   r   r   r   r   (   s%     % % %+;%	%r   c              #  :   "   V P                    Rj  xL
  R#  L5iz,Console render method to insert line-breaks.Nr!   r"   r'   r(      &&&r   __rich_console__ZRenderables.__rich_console__(   s      $$$$   c                r%   )r   r'   r	   r(   r
   r   r   r)   r   r   r   r   r   .   s%     ' ' '+;'	'r   c                s    V P                    Uu. uF  p\        P                  ! WV4      NK  	  ppV'       g   \        ^^4      # \        R V 4       4      p\        R V 4       4      p\        WV4      # u upi )   c              3   8   "   T F  qP                   x  K  	  R # 5ir   )Zminimum.0Z	dimension   & r   	<genexpr>/Renderables.__rich_measure__.<locals>.<genexpr>7        Aj$$j   c              3   r2   r   )Zmaximumr3   r5   r   r6   r7   8   r8   r9   )r!   r   ZgetZmax)r"   r'   r(   
renderableZ
dimensionsZ_minZ_maxs   &&&    r   __rich_measure__ZRenderables.__rich_measure__.   sw    
 #//
/
 OOGj9/ 	 
 q!$$AjAAAjAA4&&
s    A4c                "   < V ^8  d   QhRRRR/# )r   r:   r   r   Nr)   r   r   r   r   r   ;   s     - -!1 -d -r   c                <    V P                   P                  V4       R # r   )r!   append)r"   r:   r#   r   r>   ZRenderables.append;   s      ,r   c                .   < V ^8  d   QhRS[ R,          /# )r   r   r   r   r   r   r   r   r   >   s     ' '(#34 'r   c                ,    \        V P                  4      # r   )iterr!   r"      &r   __iter__ZRenderables.__iter__>   s    D%%&&r   r,   r   )__name__
__module____qualname____firstlineno____doc__r$   r/   r;   r>   rE   __static_attributes____classdictcell__r      @r   r   r      s:     D
 
% %' '- -' 'r   r   c                   s.  a  ] tR t^Bt 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4       t	]V 3R
 lR l4       t	V 3R lR lt	V 3R lR lt
V 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltRV 3R lR lltR V 3R lR lltRtV tR# )!Linesz0A list subclass which can render to the console.c                2   < V ^8  d   QhRS[ R,          RR/# r   linesr   r   Nr@   r   r   r   r   Lines.__annotate__E   s      0 0hv. 0 0r   c                s&    \        V4      V n        R # r   )r    _linesr"   rR   r#   r   r$   ZLines.__init__E   s    $(Kr   c                    < V ^8  d   QhRS[ /# r   r   )Zstrr   r   r   r   rS   H   s     ) )# )r   c                s$    R V P                   : R2# )zLines(Z)rT   rC   rD   r   __repr__ZLines.__repr__H   s    a((r   c                r?   )r   r   r   )r   r   r   r   r   rS   K   s     ! !(6* !r   c                rA   r   )rB   rT   rC   rD   r   rE   ZLines.__iter__K   s    DKK  r   c                $   < V ^8  d   QhRS[ RR/# r   indexr   r   intr   r   r   r   rS   O   s        r   c                    R # r   r)   r"   r\   r#   r   __getitem__Lines.__getitem__N       r   c                s4   < V ^8  d   QhRS[ RS[R,          /# r[   )slicer   r   r   r   r   rS   S   s       4< r   c                r_   r   r)   r`   r#   r   ra   rb   R   rc   r   c                s^   < V ^8  d   QhRS[ S[S[3,          RS[ RS[R,          3,          /# r[   )r   rd   r^   r   r   r   r   r   rS   V   s2     " "ucz!2 "uVT&\=Q7R "r   c                s(    V P                   V,          # r   rX   r`   r#   r   ra   rb   V   s    {{5!!r   c                s(   < V ^8  d   QhRS[ RRRR/# )r   r\   valuer   r   rO   r]   r   r   r   r   rS   Y   s"       V  r   c                s"    W P                   V&   V # r   rX   )r"   r\   re   r.   r   __setitem__ZLines.__setitem__Y   s    "Er   c                rV   rW   r]   r   r   r   r   rS   ]   s     % % %r   c                s6    V P                   P                  4       # r   )rT   __len__rC   rD   r   rg   ZLines.__len__]   s    {{""$$r   c                r%   r&   r)   r   r   r   r   rS   `   s%       +;	r   c              #  r*   r+   rX   r-   r.   r   r/   ZLines.__rich_console__`   s      ;;r0   c                r<   )r   liner   r   Nr)   r   r   r   r   rS   f   s     ! !6 !d !r   c                r=   r   )rT   r>   )r"   rh   r#   r   r>   ZLines.appendf   s    4 r   c                rP   rQ   r@   r   r   r   r   rS   i   s      " "HV, " "r   c                r=   r   )rT   extendrU   r#   r   ri   ZLines.extendi   s    5!r   c                rZ   r[   r]   r   r   r   r   rS   l   s     & & &f &r   c                s8    V P                   P                  V4      # r   )rT   popr`   r#   r   rj   Z	Lines.popl   s    {{u%%r   c          
      s0   < V ^8  d   QhRRRS[ RRRRRR	/# )
r   r'   r	   widthjustifyr   overflowr   r   Nr]   r   r   r   r   rS   o   s=     89 8989 89 !	89
 #89 
89r   c           	     s   ^RI Hp VR8X  d)   V P                   F  pVP                  W$RR7       K  	  R# VR8X  d   V P                   F  pVP	                  4        VP                  W$R7       VP                  V\        VP                  4      ,
          ^,          4       VP                  V\        VP                  4      ,
          4       K  	  R# VR8X  dc   V P                   FP  pVP	                  4        VP                  W$R7       VP                  V\        VP                  4      ,
          4       KR  	  R# VR8X  Ed   \        V P                  4       EF  w  rvV\        V P                  4      ^,
          8X  d    R# VP                  R	4      p\        R
 V 4       4      p	\        V4      ^,
          p
\        V
4       Uu. uF  p^NK  	  pp^ pV'       d^   W,           V8  dQ   V\        V4      V,
          ^,
          ;;,          ^,          uu&   V
^,          p
V^,           \        V4      ,          pK]  . p\        \        WR,          4      4       F  w  pw  ppVP                  V4       V\        V4      8  g   K,  VP!                  VR4      pVP!                  V^ 4      pVV8X  d   TMVP"                  pVP                  V! R	W,          ,          VR7      4       K  	  V! R4      P%                  V4      W&   EK  	  R# R# u upi )au  Justify and overflow text to a given width.

Args:
    console (Console): Console instance.
    width (int): Number of cells available per line.
    justify (str, optional): Default justify method for text: "left", "center", "full" or "right". Defaults to "left".
    overflow (str, optional): Default overflow for text: "crop", "fold", or "ellipsis". Defaults to "fold".

r   leftT)rm   ZpadZcenter)rm   ZrightZfullZ c              3   sL   "   T F  p\        VP                  4      x  K  	  R # 5ir   )r   plain)r4   wordr5   r   r6   Z Lines.justify.<locals>.<genexpr>   s      H%$$**!5!5%s   "$:r1   NN)styleZ N)textr   rT   ZtruncateZrstripZpad_leftr   ro   Z	pad_rightZ	enumerateZlenZsplitZsumZranger    r>   Zget_style_at_offsetrq   Zjoin)r"   r'   rk   rl   rm   r   rh   Z
line_indexZwordsZ
words_sizeZ
num_spacesZ_Zspacesr\   Ztokensrp   Z	next_wordrq   Z
next_styleZspace_styles   &&&&&               r   rl   ZLines.justifyo   s[     	feDA $ e7ux

';;ABux

';;<	 $
 e7ehtzz&::; $ $-dkk$: 
T[[!1A!55

3  H% HH
 Z!^
%*:%67%6!%67$1E9s6{U2Q671<7"a
!&c&k 9%'09Ry11,E,D) MM$'s6{* $ 8 8" E%.%B%B7A%N
/4
/Be

d3+>k&RS1 $(8==#8 / %;  8s   LrX   N)r)   )rr   )rn   Zfold)rF   rG   rH   rI   rJ   r$   rY   rE   r   ra   rf   rg   r/   r>   ri   rj   rl   rK   rL   rM   rN   r   rO   rO   B   s     :0 0) )! !    " " % % ! !" "& &89 89 89r   rO   N)Z	itertoolsr    Ztypingr   r   r   r   r   r   r   r   r'   r	   r
   r   r   r   r   rs   r   Zcellsr   Zmeasurer   r   r   rO   r)   r   r   <module>rt      sQ    !	 	 	      CL!' !'He9 e9r   