L iUddlmZddlmZmZddlmZmZddlm Z m Z m Z m Z m Z mZmZmZmZddlmZddlmZmZmZddlmZmZmZddlmZmZdd lm Z m!Z!m"Z"m#Z#m$Z$m%Z%dd l&m'Z'dd l(m)Z*dd l+m,Z,dd l-m.Z.ddl/m0Z0ddl1m2Z2m3Z3e r ddl4m5Z5ddl6m7Z7ddl/m8Z8m9Z9m:Z:ddl;mZ>edZ?edZ@dZAdeBd<dZCdeBd<dZDdeBd<dZEdeBd<dZFdeBd <e d!ZGd"eBd#<eGd$d%e e?ZHGd&d'e e?ZIGd(d)e e?ZJ d2d*ZKe*jjd+d,d-d,f d3d.ZNd4d/ZOGd0d1ZPy,)5) annotations)CallableSequence) dataclassfield) TYPE_CHECKINGAnyFinalGenericLiteral TypeAliasTypeVarcastoverload)current_form_id) LayoutConfigWidthvalidate_width)check_and_convert_to_indices(convert_to_sequence_and_check_comparableget_default_indices)check_widget_policiesmaybe_raise_label_warnings)KeyLabelVisibilitycompute_and_register_element_id get_label_visibility_proto_valuesave_for_app_testingto_keyStreamlitAPIException) ButtonGroup)gather_metrics)get_script_run_ctx)register_widget)is_emojivalidate_material_icon)OptionSequence)DeltaGenerator) WidgetArgsWidgetCallback WidgetKwargs)RegisterWidgetResultWidgetDeserializerWidgetSerializerTV)z:material/thumb_up:z:material/thumb_down:r _THUMB_ICONS)z:material/sentiment_sad:z!:material/sentiment_dissatisfied:z:material/sentiment_neutral:z:material/sentiment_satisfied:z#:material/sentiment_very_satisfied: _FACES_ICONS _NUMBER_STARSz:material/star: _STAR_ICONz:material/star_filled:_SELECTED_STAR_ICONsinglemultir SelectionModecHeZdZUdZded<eeZded<d dZd dZ y ) _MultiSelectSerdeauOnly meant to be used internally for the button_group element. This serde is inspired by the MultiSelectSerde from multiselect.py. That serde has been updated since then to support the accept_new_options parameter, which is not required by the button_group element. If this changes again at some point, the two elements can share the same serde again. Sequence[T]options)default_factory list[int] default_valuec:t|j|}||SgSN)rr?)selfvalueindicess m/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/streamlit/elements/widgets/button_group.py serializez_MultiSelectSerde.serializels".t||UC!-w525cf||n |j}|Dcgc]}|j|c}Scc}wrD)rBr?)rEui_value current_valueis rH deserializez_MultiSelectSerde.deserializeps5 ,H$2D2D *77A Q777s.N)rFlist[T]returnrA)rLlist[int] | NonerQrP) __name__ __module__ __qualname____doc____annotations__rlistrBrIrOrJrHr=r=_s($T:M9:68rJr=c6eZdZdZ d ddZddZd dZy) _SingleSelectSerdea!Only meant to be used internally for the button_group element. Uses the ButtonGroup's _MultiSelectSerde under-the-hood, but accepts a single index value and deserializes to a single index value. This is because button_group can be single and multi select, but we use the same proto for both and, thus, map single values to a list of values and a receiving value wrapped in a list to a single value. When a default_value is provided is provided, the option corresponding to the index is serialized/deserialized. NcBt|| ||_yg|_yrD)r=multiselect_serde)rEoption_indicesrBs rH__init__z_SingleSelectSerde.__init__s) 8I ]-FM8 LN8 rJcF||gng}|jj|SrD)r]rI)rErF_values rHrIz_SingleSelectSerde.serializes'!-%2%%//77rJc`|jj|}t|dk(ry|dS)Nr)r]rOlen)rErL deserializeds rHrOz_SingleSelectSerde.deserializes2--99(C |  !ArJrD)r^r>rBrRrQNone)rFT | NonerQrA)rLrRrQrfrSrTrUrVr_rIrOrYrJrHr[r[ws7 +/ # (    8rJr[c8eZdZdZ ddZddZddZy) ButtonGroupSerdeaA serde that can handle both single and multi select options. It uses the same proto to wire the data, so that we can send and receive single values via a list. We have different serdes for both cases though so that when setting / getting the value via session_state, it is mapped correctly. So for single select, the value will be a single value and for multi select, it will be a list of values. c||_||_||_|dk(rt|||_yt |||_y)Nr9rB)r?default_valuestyper[r=serde)rEr?rlrms rHr_zButtonGroupSerde.__init__sJ  , x wn E #7N; rJcL|jjtd|S)Nr )rnrIr)rErFs rHrIzButtonGroupSerde.serializeszz##D$677rJc8|jj|SrD)rnrO)rErLs rHrOzButtonGroupSerde.deserializeszz%%h//rJN)r?r>rlrArmLiteral['single', 'multi']rQre)rFzT | list[T] | NonerQrA)rLrRrQzlist[T] | T | NonergrYrJrHriris<    "  )    80rJric g}g}|dk(rUttttt}tDcgc]}t j |}}||fS|dk(rLtttt}tDcgc]}t j |}}||fS|dk(r?ttt}t j ttgtz}||fScc}wcc}w)Nthumbs) content_iconfacesstars)rtselected_content_icon) rXreversedrangercr2ButtonGroupProtoOptionr3r5r6r7)feedback_optionr?options_indicesicons rHget_mapped_optionsrs.0G"$O("xc,.?(@ABJVW$#**=WW O ## G #uS%678JVW$#**=WW O ## G #u]34  # #'&9    O ##XXs C8 C=pillsNvisiblec ~t} || _|| jdd|| _|| _|| _tj j|j| _ |*|| _ t| | j_ | | | _|D]} | jj!| || _| SrD)rziddefaultform_iddisabled click_modeStyleValueupperstylelabelrlabel_visibilityrFhelpr?appendselection_visualization) widget_idformatted_optionsrlrrrrrrrrprotoformatted_options rH _build_protors  EEH%EMM!#EMEN!E"((..u{{}=EK  'G ( $  EJ-/ -./$;E! LrJc*|dvrtd|dy)zHCheck if the selection_mode value is valid or raise exception otherwise.r8zYThe selection_mode argument must be one of ['single', 'multi']. The argument passed was ''.Nr )selection_modes rH#_maybe_raise_selection_mode_warningrs/00# ((6'7r ;  1rJcteZdZe ddddddddd ddZe ddddddddd ddZed ddddddddd ddZed ddddddddd dd d d Zeddddddddd dd d!dZedd ddddddddd dd d"dZed ddddddddd dd d#dZeddddddddd dd d$dZedd ddddddddd dd d%dZedddd dddddddd ddd d&dZddd dddddde jjdd ddd d'dZ e d(dZy))ButtonGroupMixinNFcontent)keyrr on_changeargskwargswidthcyrDrY rEr?rrrrrrrs rHfeedbackzButtonGroupMixin.feedbacks #rJcyrDrYrs rHrzButtonGroupMixin.feedbacks),rJrc|dvrtd|dt|\} } |3|dks|t| k\r td|dt| dz d ||| |gnd} tt| | } t j j} |d k(rt j j} |j| | |d || j| j|||| d | }|jS)aDisplay a feedback widget. A feedback widget is an icon-based button group available in three styles, as described in ``options``. It is commonly used in chat and AI apps to allow users to rate responses. Parameters ---------- options : "thumbs", "faces", or "stars" The feedback options displayed to the user. ``options`` can be one of the following: - ``"thumbs"`` (default): Streamlit displays a thumb-up and thumb-down button group. - ``"faces"``: Streamlit displays a row of five buttons with facial expressions depicting increasing satisfaction from left to right. - ``"stars"``: Streamlit displays a row of star icons, allowing the user to select a rating from one to five stars. key : str or int An optional string or integer to use as the unique key for the widget. If this is omitted, a key will be generated for the widget based on its content. No two widgets may have the same key. default : int or None Default feedback value. This must be consistent with the feedback type in ``options``: - 0 or 1 if ``options="thumbs"``. - Between 0 and 4, inclusive, if ``options="faces"`` or ``options="stars"``. disabled : bool An optional boolean that disables the feedback widget if set to ``True``. The default is ``False``. on_change : callable An optional callback invoked when this feedback widget's value changes. args : list or tuple An optional list or tuple of args to pass to the callback. kwargs : dict An optional dict of kwargs to pass to the callback. width : "content", "stretch", or int The width of the feedback widget. This can be one of the following: - ``"content"`` (default): The width of the widget matches the width of its content, but doesn't exceed the width of the parent container. - ``"stretch"``: The width of the widget matches the width of the parent container. - An integer specifying the width in pixels: The widget has a fixed width. If the specified width is greater than the width of the parent container, the width of the widget matches the width of the parent container. Returns ------- int or None An integer indicating the user's selection, where ``0`` is the lowest feedback. Higher values indicate more positive feedback. If no option was selected, the widget returns ``None``. - For ``options="thumbs"``, a return value of ``0`` indicates thumbs-down, and ``1`` indicates thumbs-up. - For ``options="faces"`` and ``options="stars"``, return values range from ``0`` (least satisfied) to ``4`` (most satisfied). Examples -------- Display a feedback widget with stars, and show the selected sentiment: >>> import streamlit as st >>> >>> sentiment_mapping = ["one", "two", "three", "four", "five"] >>> selected = st.feedback("stars") >>> if selected is not None: >>> st.markdown(f"You selected {sentiment_mapping[selected]} star(s).") .. output :: https://doc-feedback-stars.streamlit.app/ height: 200px Display a feedback widget with thumbs, and show the selected sentiment: >>> import streamlit as st >>> >>> sentiment_mapping = [":material/thumb_down:", ":material/thumb_up:"] >>> selected = st.feedback("thumbs") >>> if selected is not None: >>> st.markdown(f"You selected: {sentiment_mapping[selected]}") .. output :: https://doc-feedback-thumbs.streamlit.app/ height: 200px )rsrurvzjThe options argument to st.feedback must be one of ['thumbs', 'faces', 'stars']. The argument passed was 'rNrzThe default value in 'z!' must be a number between 0 and z. The passed default value is rkrvr9 borderless) rrrr deserializer serializerrrrrrr) r!rrcr[intrzSelectionVisualization ONLY_SELECTEDALL_UP_TO_SELECTED _button_grouprOrIrF)rEr?rrrrrrrtransformed_optionsr}_defaultrnr sentiments rHrzButtonGroupMixin.feedback)s?f 6 6',,39B8  0B'/J,_  GaK7cBU>V3V'( 1RSVWjSknoSoRpq007y:  +2*=_W % &4 #3'xP"2"I"I"W"W g  77JJ $&& #**$;' rJr9r) rr format_funcrrrrrrrrc yrDrYrErr?rrrrrrrrrrrs rHrzButtonGroupMixin.pills"rJ) rrrrrrrrrrc yrDrYrs rHrzButtonGroupMixin.pills"rJrc @|j|||||||d|| | | | | S)asDisplay a pills widget. A pills widget is similar to a ``st.selectbox`` or ``st.multiselect`` where the ``options`` are displayed as pill-buttons instead of a drop-down list. Parameters ---------- label : str A short label explaining to the user what this widget is for. The label 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. For accessibility reasons, you should never set an empty label, but you can hide it with ``label_visibility`` if needed. In the future, we may disallow empty labels by raising an exception. .. |st.markdown| replace:: ``st.markdown`` .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown options : Iterable of V Labels for the select options in an ``Iterable``. This can be a ``list``, ``set``, or anything supported by ``st.dataframe``. If ``options`` is dataframe-like, the first column will be used. Each label will be cast to ``str`` internally by default and can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the ``body`` parameter of ``st.markdown``. selection_mode : "single" or "multi" The selection mode for the widget. If this is ``"single"`` (default), only one option can be selected. If this is ``"multi"``, multiple options can be selected. default : Iterable of V, V, or None The value of the widget when it first renders. If the ``selection_mode`` is ``multi``, this can be a list of values, a single value, or ``None``. If the ``selection_mode`` is ``"single"``, this can be a single value or ``None``. format_func : function Function to modify the display of the options. It receives the raw option as an argument and should output the label to be shown for that option. This has no impact on the return value of the command. The output can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the ``body`` parameter of ``st.markdown``. key : str or int An optional string or integer to use as the unique key for the widget. If this is omitted, a key will be generated for the widget based on its content. Multiple widgets of the same type may not share the same key. help : str or None A tooltip that gets displayed next to the widget label. Streamlit only displays the tooltip when ``label_visibility="visible"``. If this is ``None`` (default), no tooltip is displayed. The tooltip can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the ``body`` parameter of ``st.markdown``. on_change : callable An optional callback invoked when this widget's value changes. args : list or tuple An optional list or tuple of args to pass to the callback. kwargs : dict An optional dict of kwargs to pass to the callback. disabled : bool An optional boolean that disables the widget if set to ``True``. The default is ``False``. label_visibility : "visible", "hidden", or "collapsed" The visibility of the label. The default is ``"visible"``. If this is ``"hidden"``, Streamlit displays an empty spacer instead of the label, which can help keep the widget aligned with other widgets. If this is ``"collapsed"``, Streamlit displays no label or spacer. width : "content", "stretch", or int The width of the pills widget. This can be one of the following: - ``"content"`` (default): The width of the widget matches the width of its content, but doesn't exceed the width of the parent container. - ``"stretch"``: The width of the widget matches the width of the parent container. - An integer specifying the width in pixels: The widget has a fixed width. If the specified width is greater than the width of the parent container, the width of the widget matches the width of the parent container. Returns ------- list of V, V, or None If the ``selection_mode`` is ``multi``, this is a list of selected options or an empty list. If the ``selection_mode`` is ``"single"``, this is a selected option or ``None``. This contains copies of the selected options, not the originals. Examples -------- **Example 1: Multi-select pills** Display a multi-select pills widget, and show the selection: >>> import streamlit as st >>> >>> options = ["North", "East", "South", "West"] >>> selection = st.pills("Directions", options, selection_mode="multi") >>> st.markdown(f"Your selected options: {selection}.") .. output:: https://doc-pills-multi.streamlit.app/ height: 200px **Example 2: Single-select pills with icons** Display a single-select pills widget with icons: >>> import streamlit as st >>> >>> option_map = { ... 0: ":material/add:", ... 1: ":material/zoom_in:", ... 2: ":material/zoom_out:", ... 3: ":material/zoom_out_map:", ... } >>> selection = st.pills( ... "Tool", ... options=option_map.keys(), ... format_func=lambda option: option_map[option], ... selection_mode="single", ... ) >>> st.write( ... "Your selected option: " ... f"{None if selection is None else option_map[selection]}" ... ) .. output:: https://doc-pills-single.streamlit.app/ height: 200px r rrrrrrrrrrrrr_internal_button_grouprs rHrzButtonGroupMixin.pillssG^** )#-+  rJc yrDrYrs rHsegmented_controlz"ButtonGroupMixin.segmented_controlrrJc yrDrYrs rHrz"ButtonGroupMixin.segmented_controlrrJrc @|j|||||||d|| | | | | S)aDisplay a segmented control widget. A segmented control widget is a linear set of segments where each of the passed ``options`` functions like a toggle button. Parameters ---------- label : str A short label explaining to the user what this widget is for. The label 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. For accessibility reasons, you should never set an empty label, but you can hide it with ``label_visibility`` if needed. In the future, we may disallow empty labels by raising an exception. .. |st.markdown| replace:: ``st.markdown`` .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown options : Iterable of V Labels for the select options in an ``Iterable``. This can be a ``list``, ``set``, or anything supported by ``st.dataframe``. If ``options`` is dataframe-like, the first column will be used. Each label will be cast to ``str`` internally by default and can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the ``body`` parameter of ``st.markdown``. selection_mode : "single" or "multi" The selection mode for the widget. If this is ``"single"`` (default), only one option can be selected. If this is ``"multi"``, multiple options can be selected. default : Iterable of V, V, or None The value of the widget when it first renders. If the ``selection_mode`` is ``multi``, this can be a list of values, a single value, or ``None``. If the ``selection_mode`` is ``"single"``, this can be a single value or ``None``. format_func : function Function to modify the display of the options. It receives the raw option as an argument and should output the label to be shown for that option. This has no impact on the return value of the command. The output can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the ``body`` parameter of ``st.markdown``. key : str or int An optional string or integer to use as the unique key for the widget. If this is omitted, a key will be generated for the widget based on its content. Multiple widgets of the same type may not share the same key. help : str or None A tooltip that gets displayed next to the widget label. Streamlit only displays the tooltip when ``label_visibility="visible"``. If this is ``None`` (default), no tooltip is displayed. The tooltip can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the ``body`` parameter of ``st.markdown``. on_change : callable An optional callback invoked when this widget's value changes. args : list or tuple An optional list or tuple of args to pass to the callback. kwargs : dict An optional dict of kwargs to pass to the callback. disabled : bool An optional boolean that disables the widget if set to ``True``. The default is ``False``. label_visibility : "visible", "hidden", or "collapsed" The visibility of the label. The default is ``"visible"``. If this is ``"hidden"``, Streamlit displays an empty spacer instead of the label, which can help keep the widget aligned with other widgets. If this is ``"collapsed"``, Streamlit displays no label or spacer. width : "content", "stretch", or int The width of the segmented control widget. This can be one of the following: - ``"content"`` (default): The width of the widget matches the width of its content, but doesn't exceed the width of the parent container. - ``"stretch"``: The width of the widget matches the width of the parent container. - An integer specifying the width in pixels: The widget has a fixed width. If the specified width is greater than the width of the parent container, the width of the widget matches the width of the parent container. Returns ------- list of V, V, or None If the ``selection_mode`` is ``multi``, this is a list of selected options or an empty list. If the ``selection_mode`` is ``"single"``, this is a selected option or ``None``. This contains copies of the selected options, not the originals. Examples -------- **Example 1: Multi-select segmented control** Display a multi-select segmented control widget, and show the selection: >>> import streamlit as st >>> >>> options = ["North", "East", "South", "West"] >>> selection = st.segmented_control( ... "Directions", options, selection_mode="multi" ... ) >>> st.markdown(f"Your selected options: {selection}.") .. output:: https://doc-segmented-control-multi.streamlit.app/ height: 200px **Example 2: Single-select segmented control with icons** Display a single-select segmented control widget with icons: >>> import streamlit as st >>> >>> option_map = { ... 0: ":material/add:", ... 1: ":material/zoom_in:", ... 2: ":material/zoom_out:", ... 3: ":material/zoom_out_map:", ... } >>> selection = st.segmented_control( ... "Tool", ... options=option_map.keys(), ... format_func=lambda option: option_map[option], ... selection_mode="single", ... ) >>> st.write( ... "Your selected option: " ... f"{None if selection is None else option_map[selection]}" ... ) .. output:: https://doc-segmented-control-single.streamlit.app/ height: 200px rrrrs rHrz"ButtonGroupMixin.segmented_controlsGd** )#%-+  rJr) rrrrrrrrrrrrrc "t| | dfd }t|}t||}tt|||}|j ||||||| ||j |j|| | | | |}|dk(r |jS|jS)Ncdr|n t|}|jd}d}t|dkDrT|dj} |j dr t |}n t |r|}|rdj|dd}tj||S#t$rY"wxYw)z|If option starts with a material icon or an emoji, we extract it to send it parsed to the frontend.  Nrz :materialr)rrt) strsplitrcstrip startswithr'r&joinr!rzr{)option transformedtransformed_partsr~ maybe_iconrs rH_transformed_format_funczIButtonGroupMixin._internal_button_group.._transformed_format_funcs2=+f-#f+K + 1 1# 6 #D$%).q1779  !,,[95jA!*-)'*hh/@/D&E $**#! -s AB## B/.B/)rrrrrrrrrrrrrrrr:)rr1rQzButtonGroupProto.Option) rrrrir1rrIrOrF)rEr?rrrrrrrrrrrrrrindexable_optionsrlrnress ` rHrz'ButtonGroupMixin._internal_button_groups& #5*:; 6EWM,->H%5a%8 ~~&   ")0**-!! & W $99 yyrJ)rrrrrrrrrrrrrrc t||dk(rtjntj}|tjk(r+|)t |t rt |dkDr td|dvrtd|dt|}|}|t |dk(rd}t|d t| }t|j|| | t}t|j}||n&t|Dcgc]\}}|||c}}}t!|d k(rd n||ddh|j||||||| }t#|||xsg|||| |||| }t%|j&| | | || |d}|j(r&| |j*|j*ddd|_|r t/||||jj1d|||Scc}}w)Nr9rzYThe default argument to `st.pills` must be a single value when `selection_mode='single'`.)rrrziThe style argument must be one of ['borderless', 'pills', 'segmented_control']. The argument passed was 'rrT) allow_content)rrkrrr?r) user_keykey_as_main_identitydgr?rrrrrr)rrrrrrint_array_value)on_change_handlerrrrrctx value_type button_group) layout_config)rrz SINGLE_SELECT MULTI_SELECT isinstancerrcr!rrrrrr$r enumeraterrr%r value_changedrF set_valuer_enqueue)rErrrrrrrrrrrrrrrrrparsed_selection_moderrrrindex_r element_idr widget_states rHrzButtonGroupMixin._button_groups42 ,N;)  * *!..  "%5%C%C C#7H-G q (-  D D',,17"6  Sk  3w<1#4HuD1$51 dggsIXN "!$''*" !**; <E1-e45 5 </JU#,\!:ww%,! &   Mr  ,$;-  ' HH'%!(    % %' (:(:;EKKN"EO  j+ > mLwsGctd|S)zGet our DeltaGenerator.r))r)rEs rHrzButtonGroupMixin.dgcs$d++rJ).)r?zLiteral['thumbs']r Key | Noner int | NonerboolrWidgetCallback | NonerWidgetArgs | NonerWidgetKwargs | NonerrrQzLiteral[0, 1] | None)r?zLiteral['faces', 'stars']rrrrrrrrrrrrrrrQzLiteral[0, 1, 2, 3, 4] | None)rs)r?#Literal['thumbs', 'faces', 'stars']rrrrrrrrrrrrrrrQr)rrr?OptionSequence[V]rLiteral['single']rV | NonerCallable[[Any], str] | Nonerrr str | NonerrrrrrrrrrrrrQr)rrr?rrLiteral['multi']rSequence[V] | V | NonerrrrrrrrrrrrrrrrrrrQlist[V])rrr?rrrqrrrrrrrrrrrrrrrrrrrrrQlist[V] | V | None)rrr?rrrrrrrrstr | int | NonerrrrrrrrrrrrrrrQr)rrr?rrrrrrrrrrrrrrrrrrrrrrrrQr)rrr?rrrqrrrrrrrrrrrrrrrrrrrrrQr)r?rrrrrrrqrrrrrz%Literal['pills', 'segmented_control']rrrrrrrrrrrrrrrQr)$rz Sequence[Any]rrrrRrr;rrr3Literal['borderless', 'pills', 'segmented_control']rz-Callable[[V], ButtonGroupProto.Option] | NonerzWidgetDeserializer[T]rzWidgetSerializer[T]rrrrrrr1ButtonGroupProto.SelectionVisualization.ValueTyperrrrrrrrrQzRegisterWidgetResult[T])rQr))rSrTrUrrr#rrrrzrrrpropertyrrYrJrHrrso&) #"+/"&&*  #" # #  #  #) #  #$ # #  # #.1 ,"+/"&&*  ,* , ,  ,  ,) ,  ,$ , , ' , ,J8@Z"+/"&&* Z4Z Z  Z  Z)Z Z$ZZ Z Zx -5 37+/"&&*,5 # *   1) $* !"+/37+/"&&*,5 # )  ( 1) $* !"G 6>*.37+/"&&*,5 } } #} 3 } ( } 1} } } )}  } $} } *} } !} } ~ -5 37 $+/"&&*,5 # *   1) $* !"+/37 $+/"&&*,5 # )  ( 1) $* !$'( 6>*.37 $+/"&&*,5 @ @ #@ 3 @ ( @ 1@ @ @ )@  @ $@ @ *@ @ !@ )@ D,- *.5=377J+/"&&* ,5 !L"L L ( L 3 LL1L5L)L L$LL*LL !L" #L.Ld$((0 EI,0"&&*  3 3 A A ,5 /@(@ @ " @ & @@ @C@,@(@)@ @ $!@""S#@()@**+@,-@./@0 !1@D,,rJr)r|rrQz/tuple[list[ButtonGroupProto.Option], list[int]])rrrz!Sequence[ButtonGroupProto.Option]rlrArrrrrz$ButtonGroupProto.ClickMode.ValueTyperrrrrrrrrrrQrz)rr;rQre)Q __future__rcollections.abcrr dataclassesrrtypingrr r r r r rrr!streamlit.elements.lib.form_utilsr#streamlit.elements.lib.layout_utilsrrr-streamlit.elements.lib.options_selector_utilsrrrstreamlit.elements.lib.policiesrrstreamlit.elements.lib.utilsrrrrrrstreamlit.errorsr!streamlit.proto.ButtonGroup_pb2r"rzstreamlit.runtime.metrics_utilr#7streamlit.runtime.scriptrunner_utils.script_run_contextr$streamlit.runtime.stater%streamlit.string_utilr&r'streamlit.dataframe_utilr(streamlit.delta_generatorr)r*r+r,streamlit.runtime.state.commonr-r.r/r0r1r2rWr3r5r6r7r;r=r[rirrrrrrrYrJrHrs#.(   >  3K9V3B78   CL CLF eF e u% E%6U5"#45 y5 8 8 8.!!H0wqz0@$8$4$J //==AH(1$$8$$ $  $ 5 $O$ ?$ $&$ $$N ^ ,^ ,rJ