+
    Bi                         R t ^ RIHt ^ RIHtHtHtHtHtH	t	H
t
 ^RIHt ^RIHt RR./t. ROt ! R R	]4      t ! R
 R]4      t ! R R]4      tR t]t]tR# )z~
`rich.progress` decorator for iterators.

Usage:
>>> from tqdm.rich import trange, tqdm
>>> for i in trange(10):
...     ...
)warn)	BarColumnProgressProgressColumnTextTimeElapsedColumnTimeRemainingColumnfilesize)TqdmExperimentalWarning)tqdmzgithub.com/	casperdcl	tqdm_richc                   @   a a ] tR t^t oRtRV 3R lltR tRtVtV ;t	# )FractionColumnz*Renders completed/total, e.g. '0.5/2.3 G'.c                <   < Wn         W n        \        SV `  4        R # N)
unit_scaleunit_divisorsuper__init__)selfr   r   	__class__s   &&&./usr/lib/python3.14/site-packages/tqdm/rich.pyr   FractionColumn.__init__   s    $(    c                j   \        VP                  4      p\        VP                  4      pV P                  '       d(   \        P
                  ! V. ROV P                  4      w  rEM\        P
                  ! VR.^4      w  rEV^8X  d   ^ M^p\        W$,          RV R2 RW4,          RV R2 RV 2RR7      # )	z.Calculate common unit for completed and total. ,.f/ zprogress.downloadstyle	r   KMGTPEZY)int	completedtotalr   r	   pick_unit_and_suffixr   r   )r   taskr-   r.   unitsuffix	precisions   &&     r   renderFractionColumn.render   s    '	DJJ???#88<!!LD& $88aHLDA	~b1_-Quz"YKq.I6(S%' 	'r   )r   r   )F  
__name__
__module____qualname____firstlineno____doc__r   r4   __static_attributes____classdictcell____classcell__r   __classdict__s   @@r   r   r      s     4
' 'r   r   c                   @   a a ] tR t^.t oRtRV 3R lltR tRtVtV ;t	# )
RateColumnz&Renders human readable transfer speed.c                H   < Wn         W n        W0n        \        SV `  4        R # r   )r1   r   r   r   r   )r   r1   r   r   r   s   &&&&r   r   RateColumn.__init__0   s    	$(r   c                j   VP                   pVf   \        RV P                   R2RR7      # V P                  '       d(   \        P
                  ! V. R	OV P                  4      w  r4M\        P
                  ! VR.^4      w  r4V^8X  d   ^ M^p\        W#,          RV R2 RV V P                   R2RR7      # )
zShow data transfer speed.z? z/szprogress.data.speedr!   r   r   r   r    r#   )speedr   r1   r   r	   r/   r   )r   r0   rG   r1   r2   r3   s   &&    r   r4   RateColumn.render6   s    

="TYYKr*2GHH???#88<!!LD& $88aHLDA	uz"YKq16(499+RH/1 	1r   )r1   r   r   )r   Fr6   r7   r@   s   @@r   rC   rC   .   s     01 1r   rC   c                   ^   a a ] tR t^Ht oRtV 3R ltV 3R ltR tR tRV 3R llt	Rt
VtV ;t# )	r   z/Experimental rich.progress GUI version of tqdm!c                   < VP                  4       pRVR&   \        VP                  RR4      4      VR&   VP                  RR4      pVP                  R/ 4      P                  4       p\        SV `  ! V/ VB  V P                  '       d   R# \        R\        ^R	7       V P                  pVfa   R
\        RR7      \        VR,          VR,          R7      R\        4       R\        4       R\        VR,          VR,          VR,          R7      R3
pVP                  RV P                   '       * 4       \#        V/ VB V n        V P$                  P'                  4        V P$                  P(                  ! V P*                  ;'       g    R3/ VB V n        R# )a  
This class accepts the following parameters *in addition* to
the parameters accepted by `tqdm`.

Parameters
----------
progress  : tuple, optional
    arguments for `rich.progress.Progress()`.
options  : dict, optional
    keyword arguments for `rich.progress.Progress()`.
TguidisableFprogressNoptionszrich is experimental/alpha)
stacklevelzU[progress.description]{task.description}[progress.percentage]{task.percentage:>4.0f}%)	bar_widthr   r   )r   r   [<,r1   )r1   r   r   ]	transientr   )copyboolgetpopr   r   rL   r   r
   format_dictr   r   r   r   rC   
setdefaultleaver   _prog	__enter__add_taskdesc_task_id)r   argskwargsrM   rN   dr   s   &*,   r   r   tqdm_rich.__init__K   sV    u Iu!=>y::j$/**Y+002$)&)<<<)+BqQ@D) Q~=NP&(#/B/DZQvY1\?-.~->@AD	H 	;DJJ7x373




++DIIOOAqAr   c                   < V P                   '       d   R # V P                  4        \        SV `  4        V P                  P                  R R R 4       R # r   )rL   displayr   closer]   __exit__)r   r   s   &r   rh   tqdm_rich.closet   s7    <<<

D$-r   c                    R # r    r   ___s   &*,r   cleartqdm_rich.clear{   s    r   c                    \        V R 4      '       g   R# V P                  P                  V P                  V P                  V P
                  R7       R# )r]   N)r-   description)hasattrr]   updatera   nr`   rm   s   &*,r   rg   tqdm_rich.display~   s7    tW%%

$--466tyyQr   c                   < \        V R4      '       d   V P                  P                  VR7       \        SV `	  VR7       R# )z
Resets to 0 iterations for repeated use.

Parameters
----------
total  : int or float, optional. Total to use for the new bar.
r]   )r.   N)rt   r]   resetr   )r   r.   r   s   &&r   ry   tqdm_rich.reset   s5     4!!JJ5)E"r   )r]   ra   r   )r8   r9   r:   r;   r<   r   rh   rp   rg   ry   r=   r>   r?   r@   s   @@r   r   r   H   s)     9'BR.R

# 
#r   c                 (    \        \        V !  3/ VB # )z6Shortcut for `tqdm.rich.tqdm(range(*args), **kwargs)`.)r   range)rb   rc   s   *,r   trranger}      s    UD\,V,,r   N)r   r}   r   trange)r<   warningsr   rich.progressr   r   r   r   r   r   r	   stdr
   r   std_tqdm
__author____all__r   rC   r   r}   r~   rl   r   r   <module>r      sr    a a a ) !k]+

4'^ '21 14E# E#P- 	r   