+
     h+  c                   sx   ^ 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Ht ^RIHt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Ht  ! R R]4      t] R8X  dL   ^RIHt ]! 4       t!^RIH"t"Ht ^RIHt ]! RRR]"^R7      t#]!PI                  4        ]!PI                  ]#4       R# R# )    )TYPE_CHECKINGOptional)AlignMethod)ROUNDEDBox)cell_len)JupyterMixin)Measurementmeasure_renderables)PaddingPaddingDimensions)Segment)Style	StyleType)TextTextType)ConsoleConsoleOptionsRenderableTypeRenderResultc                   s  a  ] tR t^t o Rt]3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lt]]3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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R lR ltRtV tR# )!Panela  A console renderable that draws a border around its contents.

Example:
    >>> console.print(Panel("Hello, World!"))

Args:
    renderable (RenderableType): A console renderable object.
    box (Box): A Box instance that defines the look of the border (see :ref:`appendix_box`. Defaults to box.ROUNDED.
    title (Optional[TextType], optional): Optional title displayed in panel header. Defaults to None.
    title_align (AlignMethod, optional): Alignment of title. Defaults to "center".
    subtitle (Optional[TextType], optional): Optional subtitle displayed in panel footer. Defaults to None.
    subtitle_align (AlignMethod, optional): Alignment of subtitle. Defaults to "center".
    safe_box (bool, optional): Disable box characters that don't display on windows legacy terminal with *raster* fonts. Defaults to True.
    expand (bool, optional): If True the panel will stretch to fill the console width, otherwise it will be sized to fit the contents. Defaults to True.
    style (str, optional): The style of the panel (border and contents). Defaults to "none".
    border_style (str, optional): The style of the border. Defaults to "none".
    width (Optional[int], optional): Optional width of panel. Defaults to None to auto-detect.
    height (Optional[int], optional): Optional height of panel. Defaults to None to auto-detect.
    padding (Optional[PaddingDimensions]): Optional padding around renderable. Defaults to 0.
    highlight (bool, optional): Enable automatic highlighting of panel title (if str). Defaults to False.
titleNtitle_aligncentersubtitlesubtitle_alignsafe_boxexpandTstyleZnoneborder_stylewidthheightpadding	highlightFc                s   < V ^8  d   QhRRRS[ RS[S[,          RS[RS[S[,          RS[RS[S[,          R	S[R
S[RS[RS[S[,          RS[S[,          RS[RS[RR/# )   
renderabler   boxr   r   r   r   r   r   r   r   r   r    r!   r"   returnNr   r   r   r   Zboolr   intr   format__classdict__   ";/usr/lib/python3.14/site-packages/pip/_vendor/rich/panel.py__annotate__Panel.__annotate__(   s     # #$# #
 !# !# 8$# $# 4.# # #  # }# # ##  !#" 
##    c               s    Wn         W n        W0n        W@n        WPn        W`n        Wpn        Wn        Wn        Wn	        Wn
        Wn        Wn        Wn        R # N)r$   r%   r   r   r   r   r   r   r   r   r   r    r!   r"   )selfr$   r%   r   r   r   r   r   r   r   r   r   r    r!   r"   s   &&&$$$$$$$$$$$$r-   __init__ZPanel.__init__(   sM    $ %
(3 , 
(
"r0   c                s   < V ^8  d   QhRRRS[ RS[S[,          RS[RS[S[,          RS[RS[S[,          R	S[R
S[RS[S[,          RS[S[,          RS[RS[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/   J   s     !
 !
$!
 !

 !!
 !!
 8$!
 $!
 4.!
 !
  !
 }!
 !
 #!
 !
  
!!
r0   c               s.    V ! VVVVVVVVV	V
VVVRR7      # )z2An alternative constructor that sets expand=False.F)r   r   r   r   r   r   r   r   r    r!   r"   r    )Zclsr$   r%   r   r   r   r   r   r   r   r   r    r!   r"   s   &&&$$$$$$$$$$$r-   fitZ	Panel.fitI   s;    & #)%
 	
r0   c                0   < V ^8  d   QhRS[ S[,          /# r#   r&   r   r   r)   r,   r-   r.   r/   n   s       r0   c                   V P                   '       d   \        V P                   \        4      '       d!   \        P                  ! V P                   4      MV P                   P                  4       pR Vn        VP                  P                  RR4      Vn        RVn	        VP                  4        VP                  ^4       V# R#  Z
Z TN)r   
isinstancestrr   from_markupcopyendplainreplaceno_wrapexpand_tabspad)r2   
title_text   & r-   _titleZPanel._titlem   s    ::: djj#..   ,ZZ__& 
  JN)//77cBJ!%J""$NN1r0   c                r6   r7   r8   r)   r,   r-   r.   r/   ~   s      8D> r0   c                r9   r:   )r   r<   r=   r   r>   r?   r@   rA   rB   rC   rD   rE   )r2   subtitle_textrG   r-   	_subtitleZPanel._subtitle}   s    === dmmS11   /]]'') 
 !#M"/"5"5"="=dC"HM$(M!%%'a   r0   c                &   < V ^8  d   QhRRRRRR/# )r#   consoler   optionsr   r&   r   r4   r)   r,   r-   r.   r/      s*     G G G+;G	Gr0   c              #  s 	  a"   \         P                  ! V P                  4      p\        V4      '       d   \        V P                  V4      MV P                  pSP                  V P                  4      pSP                  V P                  4      pWV,           pV P                  f   VP                  M\        VP                  V P                  4      pV P                  f   SP                  MV P                  p	V P                  P                  W)R7      p
R V3R llpV P                  pVe   VP                  V4       V P                   '       d
   V^,
          M1SP#                  WBP%                  V^,
          4      R7      P&                  pV P(                  ;'       g    VP(                  ;'       g    R pV'       d
   V^,          pVe8   \        VP                  ^,
          \+        WP,                  ^,           4      4      pV^,           pVP/                  WV P0                  R7      pSP3                  WOVR7      p\5        V
P6                  V4      p\5        V
P8                   V4      p\4        P:                  ! 4       pVe   V^8:  d'   \5        V
P=                  V^,
          .4      V4      x  MV! VV^,
          V P>                  V
P@                  V4      p\5        V
PB                  V
P@                  ,           V4      x  SPE                  WP%                  V^,
          4      4       R j  xL
  \5        V
P@                  V
PF                  ,           V4      x  Vx  V F  pVx  T R j  xL
  Vx  Vx  K  	  V PH                  pVe   VP                  V4       Ve   V^8:  d'   \5        V
PK                  V^,
          .4      V4      x  MV! VV^,
          V PL                  V
PN                  V4      p\5        V
PP                  V
PN                  ,           V4      x  SPE                  VVP%                  V^,
          4      4       R j  xL
  \5        V
PN                  V
PR                  ,           V4      x  Vx  R #  ELR EL L95i)N)Zsafec                s`    V ^8  d   QhR\         R\        R\        R\        R\        R\         /# )r#   textr   align	characterr   r&   )r   r(   r=   r   )r*   s   "r-   r.   Z,Panel.__rich_console__.<locals>.__annotate__   s<     -	 -	-	"-	+.-	;>-	GL-	-	r0   c                s$  < V P                  4       p V P                  V4       V\        V P                  4      ,
          pV P                  '       d+   V P                  SP                  V P                  4      4       V'       d   VR8X  d#   \        P                  ! V W5,          V3RRR7      # VR8X  d<   V^,          p\        P                  ! W6,          V3V W5V,
          ,          V3RRR7      # \        P                  ! W5,          V3V RRR7      # V # )zGets new aligned text.

Args:
    text (Text): Title or subtitle text.
    width (int): Desired width.
    align (str): Alignment.
    character (str): Character for alignment.
    style (Style): Border style

Returns:
    Text: New text instance
leftTr;   )rC   r@   r   )	r?   Ztruncater   rA   r   Zstylize	get_styler   Zassemble)rN   r   rO   rP   r   Zexcess_spacerQ   rL   s   &&&&&  r-   
align_textZ*Panel.__rich_console__.<locals>.align_text   s     99;DMM%  8DJJ#77LzzzW..tzz:;F?=="159 $	  h&'1,D==")51"T&9:EB $   =="159 $	  Kr0   )rM   )r   r    r"   )r   )*r
   unpackr!   Zanyr$   rR   r   r   r   	max_widthZminr   r%   Z
substituterH   Zstylize_beforer   measureupdate_widthmaximumr    Zmaxr   Zupdater"   Zrender_linesr   Zmid_leftZ	mid_rightlineZget_topr   ZtopZtop_leftZrenderZ	top_rightrJ   Z
get_bottomr   ZbottomZbottom_leftZbottom_right)r2   rL   rM   Z_paddingr$   r   Zpartial_border_styler   r   r   r%   rS   rF   Zchild_widthZchild_heightZchild_optionsZlinesZ
line_startZline_endZnew_linerY   rI   s   &f&                   r-   __rich_console__ZPanel.__rich_console__   s     >>$,,/25h--GDOOX.T__ 	 !!$**-&001B1BC3 zz! W&&

3 	 .2]]-B))hh!!'!9-	 -	^ [[
!%%&:; {{{ AI$8$8$C ! g 	 {{<<gnn<<AL!!!A%s;8K8Ka8O'PK adnn ' 
 $$Ze$LS\\<8
cmm_|<<<>!#++uqyk2LAA#	  J #,,0,??~~j2L2LUUVY2WXXX#''CMM1<@@DOONN	  $(()=> EQJ#..%!)5|DD&	##

M #//CJJ6EE~~}99%!)D   #**s'7'77FF= Y &sQ   E	Q>AQ>Q>/
Q>:E*Q>$Q6%?Q>$Q9%CQ>Q<4Q>9Q><Q>c                rK   )r#   rL   r   rM   r   r&   r   r4   r)   r,   r-   r.   r/     s%     ) ) )+;)	)r0   c                s   V P                   p\        P                  ! V P                  4      w  rErFWe,           pV'       d   V P                  V.MV P                  .pV P
                  fN   \        VVP                  VP                  V,
          ^,
          4      V4      P                  V,           ^,           p	MV P
                  p	\        W4      # r1   )rH   r
   rT   r!   r$   r   r	   rW   rU   rX   r   )
r2   rL   rM   rH   Z_ZrightrQ   r!   Zrenderablesr   s
   &&&       r-   __rich_measure__ZPanel.__rich_measure__  s     #NN4<<8!,39t/?P::#(():):W)Dq)HI '   JJE5((r0   )r   r%   r   r    r"   r!   r$   r   r   r   r   r   r   r   )r    i   )__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r3   Zclassmethodr5   ZpropertyrH   rJ   rZ   r[   Z__static_attributes__Z__classdictcell__)r+   s   @r-   r   r      s^    2 #
 %)# $,# (,# '/# $(# # "# #)#  $# !%# &,#   !# #B  !

 %)!
 $,!
 (,!
 '/!
 $(!
 "!
 #)!
  $!
 !%!
 &,!
  !
 !
 !
F    G GR) )r0   r   Z__main__)r   )DOUBLEr   )r
   zHello, World!z
rich.Panelzwhite on blue)r   r   r%   r!   N)%Ztypingr   r   rO   r   r%   r   r   Zcellsr   Zjupyterr   rV   r   r	   r!   r
   r   Zsegmentr   r   r   r   rN   r   r   rL   r   r   r   r   r   r\   Zcr]   ZpZprintr4   r0   r-   <module>r^      s    *    ! 5 /  #  NNY)L Y)x z 	A$ 	A GGIGGAJ# r0   