
    ch                        % S SK Jr  S SKrS SKJrJrJr  S SKJr  S SK	J
r
Jr  S SKJr  S SKJr  S SKJr  \(       a  S S	KJr  S S
K	Jr  \\\4   rS\S'   SSS jjrSS jrSS jr " S S5      rg)    )annotationsN)TYPE_CHECKINGUnioncast)	TypeAlias)LayoutConfigvalidate_width)StreamlitAPIException)Progress)
clean_text)DeltaGenerator)WidthWithoutContentr   
FloatOrIntc                    Xs=:*  =(       a    U:*  Os  =(       d3    [         R                  " XSSS9=(       d    [         R                  " XSSS9$ )a  
Checks given value is 'between' the bounds of [low, high],
considering close values around bounds are acceptable input.

Notes
-----
This check is required for handling values that are slightly above or below the
acceptable range, for example -0.0000000000021, 1.0000000000000013.
These values are little off the conventional 0.0 <= x <= 1.0 condition
due to floating point operations, but should still be considered acceptable input.

Parameters
----------
value : float
low : float
high : float

g&.>)rel_tolabs_tol)mathisclose)valuelowhighs      nC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/elements/progress.py_check_float_betweenr   %   sC    ( 
			 	A<<D$?	A<<T4@    c                .   [        U [        5      (       a  SU s=::  a  S::  a   U $   [        SU  35      e[        U [        5      (       a,  [	        U SSS9(       a  [        U S-  5      $ [        SU  35      e[        S[        U 5      R                   35      e)	Nr   d   z+Progress Value has invalid value [0, 100]:               ?)r   r   z-Progress Value has invalid value [0.0, 1.0]: z!Progress Value has invalid type: )
isinstanceintr
   floatr   type__name__)r   s    r   
_get_valuer$   ?   s    %L #9%A
 	
 %3S9us{###;E7C
 	
  
+DK,@,@+AB r   c                z    U c  g [        U [        5      (       a  [        U 5      $ [        S[	        U 5       S35      e)NzProgress Text is of type zd, which is not an accepted type.Text only accepts: str. Please convert the text to an accepted type.)r   strr   r
   r"   )texts    r   	_get_textr(   R   sF    |$$

#DJ< 0O 	O r   c                  H    \ rS rSr  S       SS jjr\SS j5       rSrg)	ProgressMixin]   Nc                    [        5       n[        U5      Ul        [        U5      nUb  X$l        [        U5        [        US9nU R                  R                  SXES9$ )a[  Display a progress bar.

Parameters
----------
value : int or float
    0 <= value <= 100 for int

    0.0 <= value <= 1.0 for float

text : str or None
    A message to display above the progress bar. The text can optionally
    contain GitHub-flavored Markdown of the following types: Bold, Italics,
    Strikethroughs, Inline Code, Links, and Images. Images display like
    icons, with a max height equal to the font height.

    Unsupported Markdown elements are unwrapped so only their children
    (text contents) render. Display unsupported elements as literal
    characters by backslash-escaping them. E.g.,
    ``"1\. Not an ordered list"``.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

    .. |st.markdown| replace:: ``st.markdown``
    .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown

width : "stretch" or int
    The width of the progress element. This can be one of the following:

    - ``"stretch"`` (default): The width of the element matches the
      width of the parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Example
-------
Here is an example of a progress bar increasing over time and disappearing when it reaches completion:

>>> import streamlit as st
>>> import time
>>>
>>> progress_text = "Operation in progress. Please wait."
>>> my_bar = st.progress(0, text=progress_text)
>>>
>>> for percent_complete in range(100):
...     time.sleep(0.01)
...     my_bar.progress(percent_complete + 1, text=progress_text)
>>> time.sleep(1)
>>> my_bar.empty()
>>>
>>> st.button("Rerun")

.. output::
   https://doc-status-progress.streamlit.app/
   height: 220px

)widthprogress)layout_config)	ProgressProtor$   r   r(   r'   r	   r   dg_enqueue)selfr   r'   r-   progress_protor/   s         r   r.   ProgressMixin.progress^   sZ    D ')%0"&u$51ww
NXXr   c                    [        SU 5      $ )zGet our DeltaGenerator.r   )r   )r3   s    r   r1   ProgressMixin.dg   s     $d++r    )Nstretch)r   r   r'   
str | Noner-   r   returnr   )r;   r   )r#   
__module____qualname____firstlineno__r.   propertyr1   __static_attributes__r8   r   r   r*   r*   ]   sT      %.	KYKY KY #	KY
 
KYZ , ,r   r*   )r   r   )r   r!   r   r!   r   r!   r;   bool)r   r   r;   r    )r'   r:   r;   r:   )
__future__r   r   typingr   r   r   typing_extensionsr   #streamlit.elements.lib.layout_utilsr   r	   streamlit.errorsr
   streamlit.proto.Progress_pb2r   r0   streamlit.string_utilr   streamlit.delta_generatorr   r   r    r!   r   __annotations__r   r$   r(   r*   r8   r   r   <module>rK      s[    #  - - ' L 2 B ,8G
 c5j)
I )4&Q, Q,r   