
    chk                    p    S SK Jr  S SKrS SKJr  S SKJr        S	S jr      S
S jrSS jr	SS jr
g)    )annotationsN)cli_util)ConfigOptionc                    U R                  5        H>  u  p#UR                  S5      (       d  M  UR                  nX   R                  nXE:w  d  M>    g   g)zhReturn True if and only if an option in the server section differs
between old_options and new_options.
serverTF)items
startswithvalue)old_optionsnew_optionsopt_nameopt_valold_valnew_vals         hC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/config_util.pyserver_option_changedr      sS     )..0""8,,--'-- 1     c           	     
  ^ / mTR                  [        S5      5        SU4S jjnSU4S jjnSU4S jjnSU4S jjnU  GH  nUS:X  a  M  UR                  5        VVs0 s HB  u  pxUR                  U:X  d  M  UR                  S:X  d  M)  UR                  5       (       a  M@  Xx_MD     n	nn[        U	5      S:X  a  M|  TR                  S	5        U" S
U S35        TR                  S	5        U	R                  5        GHU  n
U
R                  R                  S5      S   n[        U
R                  =(       d    S	5      n[        U5      S-
  n[        U5       H  u  pUR                  5       R                  S5      nU(       a  US   R                  5       (       d  USS nUS:X  a  UOUnU H  nU" UR                  5       5        M     X:w  d  Mx  U" S	5        M     U
R                   (       av  TS   S:w  a  U" S	5        U" ["        R$                  " SSS95        U" S	5        [        U
R&                  5       H  nU" U5        M     U" S	5        U" SU
R(                   S35        SSKnUR-                  SU
R.                  05      nUSS R                  5       n[        U5      S:  a  TS   S:w  a  U" S	5        U" SU 35        O U
R0                  [2        R4                  :g  nU(       a&  TS   S:w  a  U" S	5        U" SU
R0                   35        UR-                  XR6                  05      n[        U5      S:X  a  SU S3nOU(       d  SU 3nU" U5        GMX     GM     ["        R8                  " SR;                  T5      5        gs  snnf )z8Print the given config sections/options to the terminal.zh
        # Below are all the sections and options you can have in
        ~/.streamlit/config.toml.
    c                T   > TR                  S[        R                  " U SS9-   5        g )N# T)boldappendr   style_for_clitextouts    r   append_desc show_config.<locals>.append_desc9   s!    

4(00DAABr   c                V   > TR                  S[        R                  " U 5      -   5        g )Nr   r   r   s    r   append_comment#show_config.<locals>.append_comment<   s    

4(00667r   c                P   > TR                  [        R                  " U SSS95        g )NTgreen)r   fgr   r   s    r   append_section#show_config.<locals>.append_section?   s    

8))$TgFGr   c                N   > TR                  [        R                  " U SS95        g )Nr$   r%   r   r   s    r   append_setting#show_config.<locals>.append_settingB   s    

8))$7;<r   _testvisibler    [].   
N#zTHIS IS DEPRECATED.yellowr)   z(This option will be removed on or after default
   z	Default: r   zThe value below was set in z =
)r   strreturnNone)r   _cleanr   section
visibility
is_expiredlenvalueskeysplit_clean_paragraphsdescription	enumeraterstripstriplstrip
deprecatedr   r   deprecation_textexpiration_datetomldumpsdefault_valwhere_definedr   DEFAULT_DEFINITIONr
   print_to_clijoin)section_descriptionsconfig_optionsr   r!   r&   r*   r=   kvsection_optionsoptionrB   description_paragraphslast_paragraph_idxi	paragraphlinesappend_funclinerM   toml_defaultoption_is_manually_settoml_settingr   s                          @r   show_configrd   )   s[    CJJ	
C8H= ( g ',,.
.yyG# ()	(A JK,,. AD. 	 
 1$

27)1~&

2%,,.F**""3'+C%6v7I7I7OR%P"!$%;!<q!@ )*@ A!((*00
 q!1!1!!"IE ./!Vk "D. " *"2&' !B*   r7c>"2&**+@XN r"-f.E.EFD"4( Gr">v?U?U>VVWX ::y&2D2D&EFL',224L< 1$r7c>"2&<.9:  $$(G(GG # &r7d?"2&!<V=Q=Q<RST::sLL&9:L< A%!#C5~+!#L>2<(Q /+ (~ $))C.)q
s   M?9M?M?"M?c                2    [         R                  " SSU 5      $ )zReplace sequences of multiple spaces with a single space, excluding newlines.

Preserves leading and trailing spaces, and does not modify spaces in between lines.
z + )resub)txts    r   r<   r<      s    
 66$S!!r   c           	         U R                  S5      n U R                  S5      nU Vs/ s H*  nSR                  S UR                  S5       5       5      PM,     sn$ s  snf )zHSplit the text into paragraphs, preserve newlines within the paragraphs.r4   z

c              3  8   #    U  H  n[        U5      v   M     g 7f)N)r<   ).0r`   s     r   	<genexpr>$_clean_paragraphs.<locals>.<genexpr>   s     A+@4&,,+@s   )rH   rC   rS   )ri   
paragraphsr]   s      r   rD   rD      s^     ))D/C6"J $#I 			A9??4+@AA#  s   1A)r   dict[str, ConfigOption]r   rp   r:   bool)rT   zdict[str, str]rU   rp   r:   r;   )ri   r9   r:   r9   )ri   r9   r:   z	list[str])
__future__r   rg   	streamlitr   streamlit.config_optionr   r   rd   r<   rD    r   r   <module>rv      s^    # 	  0(7N	${*({*+{* 
{*|"r   