
    ch3                    t   % S r SSKJr  SSKrSSKrSSKJrJrJrJ	r	J
r
  SSKrSSKJr  SSKJr  SSKJrJr  SSKJr  SS	KJr  \(       a  SS
KJr  SrS\S'   SrS\S'       SJS jr    SKS jr\
" S\S\4   S9rSLS jr SMS jr!\RD                  " SS0S9\RF                  " SS\RH                  " \5      S9\RJ                  " SS9SNSOS jj5       5       5       r&\&RO                  S 5      SPS! j5       r(\&RO                  S"5      SPS# j5       r)\&RO                  S$5      SPS% j5       r*\&RO                  S&5      \ SQS' j5       5       r+\&RO                  S(5      \ \RX                  " S)SS*S+9\RX                  " S,S-S.9SRSSS/ jj5       5       5       5       r-STS0 jr.  SU       SVS1 jjr/\&RE                  S25      SPS3 j5       r0\0RO                  S45      SPS5 j5       r1\&RE                  S65      SPS7 j5       r\RO                  S85      \ SQS9 j5       5       r2\&RE                  S:SS;9\Rf                  SWS< j5       5       r4\4RO                  S=5      SPS> j5       r5\&RE                  S?SS@9SPSA j5       r6\6RO                  SB5      SPSC j5       r7\&RO                  SD5      \RX                  " SESFSG9SRSXSH jj5       5       r8\9SI:X  a  \&" 5         gg)Yz=A script which is run when the Streamlit package is executed.    )annotationsN)TYPE_CHECKINGAnyCallableFinalTypeVar)config)caching)Credentialscheck_credentials)	bootstrap)$create_default_cache_storage_manager)ConfigOption)pypy3r   ACCEPTED_FILE_EXTENSIONS)errorwarninginfodebug
LOG_LEVELSc                (   SU R                    3nU R                   R                  SS5      nU R                  nU R                  (       a$  Uc  SnUSU R                   SU R
                   3-  nUUU R                  UU R                  U R                  S.$ )z>Composes given config option options as options for click lib.z--._ z
 z - )paramdescriptiontypeoptionenvvarmultiple)	keyreplacer   
deprecateddeprecation_textexpiration_dater   env_varr!   )config_optionr   r   r   s       dC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/web/cli.py&_convert_config_option_to_click_optionr*   *   s     -##$%F%%c3/E++KK-001]5R5R4ST	

 """''!**     c                   ^  SU 4S jjnU$ )Nc                Z   > Uc  g [        STR                  < STR                  < 35      e)NzSetting zn option using the CLI flag is not allowed. Set this option in the configuration file or environment variable: )
SystemExitr"   r'   )_ctx_param	cli_valuer(   s      r)   callback1_make_sensitive_option_callback.<locals>.callbackE   s=    }((+ ,&..13
 	
r+   )r/   click.Contextr0   zclick.Parameterr1   r   returnNone )r(   r2   s   ` r)   _make_sensitive_option_callbackr8   B   s    
 Or+   F.)boundc                6   [        [        R                  R                  5       5       Hm  u  p[	        U5      nUR
                  (       a  SSS[        U5      S.nOSUS   S.n[        R                  " US   US   4US   US	   US
   S.UD6nU" U 5      n Mo     U $ )z;Decorator that adds config param keys to click dynamically.FT)expose_valuehiddenis_eagerr2   r    )show_envvarr    r   r   r   r   r!   )helpr   r!   )	reversed_config_config_options_templateitemsr*   	sensitiver8   clickr   )funcr   valueparsed_parameterclick_option_kwargsr(   s         r)   configurator_optionsrK   T   s    W==CCEFA%H?? !& ;EB	#  $*84# X&W%
 "-0!&)%j1
 "
 T"1 G2 Kr+   c                2   SSK nSSKJn  [        U S5       n UR	                  USS9nUR                  5         UR                  UR                  5         SSS5        g! U a!  n[        R                  " SU SU 35      eSnAff = f! , (       d  f       g= f)	z2Fetch remote file at url_path to main_script_path.r   N)RequestExceptionwb   )timeoutzUnable to fetch z.
)
requestsrequests.exceptionsrM   opengetraise_for_statuswritecontentrF   BadParameter)main_script_pathurl_pathrQ   rM   fprespes          r)   _download_remoter^   r   s    4		%	J<<"<5D!!#HHT\\"	 
&	%
   	J$$'7zQC%HII	J 
&	%s(   B;AB$B  BB
Bauto_envvar_prefix	STREAMLIT)context_settingsz--log_levelT)show_defaultr   	Streamlit	prog_namec                Z    U (       a$  SSK Jn  U" [        5      nUR                  S5        gg)zTry out a demo with:

    $ streamlit hello

Or use the line below to run your own script:

    $ streamlit run your_script.py
r   )
get_loggerzSetting the log level using the --log_level flag is unsupported.
Use the --logger.level flag (after your streamlit command) instead.N)streamlit.loggerrg   __name__r   )	log_levelrg   loggers      r)   mainrl      s+     /"8,T	
	 r+   r@   c                 P    [        5         S[        R                  S'   [        SS9  g)zPrint this help message.z--help   	streamlitrd   N)_get_command_line_as_stringsysargvrl   r7   r+   r)   r@   r@      s!    
  ! CHHQK;r+   versionc                 R    SSK n [        5         SU R                  S'   [        5         g)z!Print Streamlit's version number.r   Nz	--versionrn   )rq   rp   rr   rl   )rq   s    r)   main_versionru      s!       !CHHQKFr+   docsc                 ^    [         R                  " S5        SSKJn   U R	                  S5        g)zShow help in browser.zShowing help page in browser...r   cli_utilzhttps://docs.streamlit.ioN)rF   echoro   ry   open_browserrx   s    r)   	main_docsr|      s#     
JJ01"56r+   helloc                 :    SSK Jn  UR                  n[        X S9  g)zRuns the Hello World script.r   )streamlit_appflag_optionsN)streamlit.hellor   __file__	_main_run)kwargsr   filenames      r)   
main_hellor      s     .%%Hh,r+   runtargetSTREAMLIT_RUN_TARGET)requiredr    args)nargsc                   SSK Jn  [        R                  R	                  U 5      u  pEUSS [
        ;  a9  USS S:X  a  [        R                  " S5      e[        R                  " SU S35      eUR                  U 5      (       a  SS	K	J
n  U" 5        nSS
KJn  U" U 5      R                  n	[        R                  R                  XyR                  S5      R                  SS5      S   5      n
UR!                  U 5      n [#        X5        [%        XUS9  SSS5        g[        R                  R'                  U 5      (       d  [        R(                  " SU  35      e[%        XUS9  g! , (       d  f       g= f)zRun a Python script, piping stderr to Streamlit.

The script can be local or it can be an url. In the latter case, Streamlit
will download the script to a temporary file and runs this file.

r   )url_utilrn   Nr   zStreamlit requires raw Python (.py) files, but the provided file has no extension.
For more information, please see https://docs.streamlit.ioz/Streamlit requires raw Python (.py) files, not z<.
For more information, please see https://docs.streamlit.io)TemporaryDirectory)urlparse/r   r   zFile does not exist: )ro   r   ospathsplitextr   rF   BadArgumentUsageis_urlstreamlit.temporary_directoryr   urllib.parser   joinstriprsplitprocess_gitblob_urlr^   r   existsrX   )r   r   r   r   r   	extensionr   temp_dirr   r   rY   s              r)   main_runr      sJ    #77##F+LA}44QR=B((M  $$=i[  IF  G
 	
 vD!X-F#((D!ww||**S/00a8<  11&9F-6&6B "! ww~~f%%$$'<VH%EFF&V4 "!s   B E""
E0c                    SS K n [        R                  " 5       R                  nUc  g SUR                  ;   a  [        S5      eUR                  /nUR                  [        R                  SS  5        U R                  U5      $ )Nr   zstreamlit.cliz}Running streamlit via `python -m streamlit.cli <command>` is unsupported. Please use `python -m streamlit <command>` instead.rn   )

subprocessrF   get_current_contextparentcommand_pathRuntimeErrorextendrq   rr   list2cmdline)r   r   cmd_line_as_lists      r)   rp   rp      s}    &&(//F~&---P
 	

 ++,CHHQRL)""#344r+   c                    [         R                  R                  U 5      [        l        [
        R                  " U=(       d    0 S9  Uc  / nUc  0 n[        5       S:H  n[        5         [
        R                  " XX5        g )Nr   zstreamlit hello)
r   r   abspathrB   _main_script_pathr   load_config_optionsrp   r   r   )filer   r   is_hellos       r)   r   r     sc     !# 5G!!|/ArB|*,0AAHMM$$5r+   cachec                     g)zManage the Streamlit cache.Nr7   r7   r+   r)   r   r          	r+   clearc                 t    [        5       n U R                  5         [        R                  R	                  5         g)z1Clear st.cache_data and st.cache_resource caches.N)r   	clear_allr
   cache_resourcer   )cache_storage_managers    r)   cache_clearr   #  s,     AB##%  "r+   r	   c                     g)z#Manage Streamlit's config settings.Nr7   r7   r+   r)   r	   r	   4  r   r+   showc                 V    [         R                  " U S9  [        R                  " 5         g)z(Show all of Streamlit's config settings.r   N)r   r   rB   show_config)r   s    r)   config_showr   :  s    
 !!v6r+   activate)invoke_without_commandc                n    U R                   (       d$  [        R                  " 5       R                  5         gg)z*Activate Streamlit by entering your email.N)invoked_subcommandr   get_currentr   )ctxs    r)   r   r   G  s'     !!!**, "r+   resetc                 J    [         R                  " 5       R                  5         g)zReset Activation Credentials.N)r   r   r   r7   r+   r)   activate_resetr   O  s     ##%r+   test)r=   c                     g)zmInternal-only commands used for testing.

These commands are not included in the output of `streamlit help`.
Nr7   r7   r+   r)   r   r   X  s     	r+   re   c                     [        5         [        R                  " 5       R                  n U c  [	        S5      eU R
                  S:w  a  [	        SU R
                   S35      eg)zAssert that the program name is set to `streamlit test`.

This is used by our cli-smoke-tests to verify that the program name is set
to `streamlit ...` whether the streamlit binary is invoked directly or via
`python -m streamlit ...`.
Nzparent is Nonezstreamlit testzParent command path is z not streamlit test.)rp   rF   r   r   AssertionErrorr   )r   s    r)   test_prog_namer   a  sd      !&&(//F~-....%f&9&9%::NO
 	
 /r+   init	directoryF)r   c                   SSK Jn  U (       a  U" U 5      OUR                  5       n UR                  SSS9  US-  R                  SS	S
9  US-  R                  SS	S
9  U (       a  [        U 5      OSn[
        R                  " SSS9  [
        R                  " U SS9  [
        R                  " SSS9  [
        R                  " SU S3SS9  [
        R                  " SSS9(       a0  US-  n[
        R                  " S5        [        [        U5      5        gg! [         a  n[
        R                  " SU 35      eSnAff = f)zInitialize a new Streamlit project.

If DIRECTORY is specified, create it and initialize the project there.
Otherwise use the current directory.
r   )PathT)exist_okparentszFailed to create directory: Nzrequirements.txtz
streamlit
zutf-8)encodingzstreamlit_app.pyu   import streamlit as st

st.title("🎈 My new app")
st.write(
    "Let's start building! For help and inspiration, head over to [docs.streamlit.io](https://docs.streamlit.io/)."
)
r   u!   ✨ Created new Streamlit app in F)nlblue)fgu   🚀 Run it with: zstreamlit run z/streamlit_app.pyu   ❓ Run the app now?)defaultz
Starting Streamlit...)pathlibr   cwdmkdirOSErrorrF   ClickException
write_textstrsechorz   confirmr   )r   r   project_dirr]   rel_path_strapp_paths         r)   	main_initr   x  s-    %.$y/DHHJKG46
 %%11-'1R %%11	  2 	 &/3y>CL	KK3>	KK<.f-	JJ#.	KK..?@VL}}+T:!33

,-#h-  ;3  G""%A!#EFFGs   D 
D=D88D=__main__)r(   r   r5   zdict[str, Any])r(   r   r5   z5Callable[[click.Context, click.Parameter, Any], None])rG   r9   r5   r9   )rY   r   rZ   r   r5   r6   )r   )rj   r   r5   r6   )r5   r6   )r   r   r5   r6   )N)r   r   r   list[str] | Noner   r   r5   r6   )r5   
str | None)NN)r   r   r   r   r   zdict[str, Any] | Noner5   r6   )r   r4   r5   r6   )r   r   r5   r6   ):__doc__
__future__r   r   rq   typingr   r   r   r   r   rF   ro   r	   rB   streamlit.runtimer
   streamlit.runtime.credentialsr   r   streamlit.webr   *streamlit.web.cache_storage_manager_configr   streamlit.config_optionr   r   __annotations__r   r*   r8   r9   rK   r^   groupr   Choiceversion_optionrl   commandr@   ru   r|   r   argumentr   rp   r   r   r   r   pass_contextr   r   r   r   r   ri   r7   r+   r)   <module>r      s>   D " 	 
 ? ?  ' % H # 4"/ % /9
E 90: CxS)*<J 3[ABm$U\\*5MN,
 - O C
( f    i
 
 f7 7 g-  - e40FGb!%5 " H  %5P5( "*.6
6
6 (6 
	66 G	 	
 w
# 
#  H	 	
    Jt4-  5- 
'& & F4 	 !	 k
 
, fe,(! - (!V zF r+   