Ë
    úmxiX  ã                  óØ   — d dl mZ d dlmZ d dlmZmZ  edeee	ef      «      Z
 edd¬«       G d„ d«      «       Z edd¬«       G d	„ d
«      «       Z edd¬«       G d„ d«      «       Zy)é    )Úannotations)Ú	dataclass)ÚAnyÚNewTypeÚStoreT)ÚfrozenÚeqc                  óB   — e Zd ZU dZded<   ded<   ded<   ed
d„«       Zy	)ÚIndexSelectionaP  
    Represents the state of an alt.selection_point() when neither the fields nor encodings arguments are specified.

    The value field is a list of zero-based indices into the
    selected dataset.

    Note: These indices only apply to the input DataFrame
    for charts that do not include aggregations (e.g. a scatter chart).
    ÚstrÚnamez	list[int]Úvaluer   Ústorec                ó    — |€g }n7|j                  di «      j                  dg «      }|D �cg c]
  }|d   dz
  ‘Œ }}t        | ||¬«      S c c}w )aò  
        Construct an IndexSelection from the raw Vega signal and dataset values.

        Parameters
        ----------
        name: str
            The selection's name
        signal: dict or None
            The value of the Vega signal corresponding to the selection
        store: list
            The value of the Vega dataset corresponding to the selection.
            This dataset is named "{name}_store" in the Vega view.

        Returns
        -------
        IndexSelection
        ÚvlPointÚorÚ_vgsid_é   ©r   r   r   )Úgetr   )r   Úsignalr   ÚindicesÚpointsÚps         úM/home/htdocs/ttos/venv/lib/python3.12/site-packages/altair/utils/selection.pyÚ	from_vegazIndexSelection.from_vega   s[   € ð& ˆ>Ø‰Gà—Z‘Z 	¨2Ó.×2Ñ2°4¸Ó<ˆFØ17Ö8¨A�q˜‘| aÓ'Ð8ˆGÐ8Ü 4¨w¸eÔDÐDùò 9s   ¬AN©r   r   r   zdict[str, dict] | Noner   r   ©Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__Ústaticmethodr   © ó    r   r   r      s-   … ñð ƒIØÓØƒLàòEó ñEr&   r   c                  óB   — e Zd ZU dZded<   ded<   ded<   ed
d„«       Zy	)ÚPointSelectionaX  
    Represents the state of an alt.selection_point() when the fields or encodings arguments are specified.

    The value field is a list of dicts of the form:
        [{"dim1": 1, "dim2": "A"}, {"dim1": 2, "dim2": "BB"}]

    where "dim1" and "dim2" are dataset columns and the dict values
    correspond to the specific selected values.
    r   r   zlist[dict[str, Any]]r   r   r   c                ój   — |€g n!|j                  di «      j                  dg «      }t        | ||¬«      S )añ  
        Construct a PointSelection from the raw Vega signal and dataset values.

        Parameters
        ----------
        name: str
            The selection's name
        signal: dict or None
            The value of the Vega signal corresponding to the selection
        store: list
            The value of the Vega dataset corresponding to the selection.
            This dataset is named "{name}_store" in the Vega view.

        Returns
        -------
        PointSelection
        r   r   r   )r   r(   )r   r   r   r   s       r   r   zPointSelection.from_vegaF   s6   € ð& �~‘¨6¯:©:°iÀÓ+D×+HÑ+HÈÈrÓ+RˆÜ 4¨v¸UÔCÐCr&   Nr   r   r%   r&   r   r(   r(   6   s-   … ñð ƒIØÓØƒLàòDó ñDr&   r(   c                  óB   — e Zd ZU dZded<   ded<   ded<   ed
d„«       Zy	)ÚIntervalSelectiona  
    Represents the state of an alt.selection_interval().

    The value field is a dict of the form:
        {"dim1": [0, 10], "dim2": ["A", "BB", "CCC"]}

    where "dim1" and "dim2" are dataset columns and the dict values
    correspond to the selected range.
    r   r   zdict[str, list]r   r   r   c                ó&   — |€i }t        | ||¬«      S )aõ  
        Construct an IntervalSelection from the raw Vega signal and dataset values.

        Parameters
        ----------
        name: str
            The selection's name
        signal: dict or None
            The value of the Vega signal corresponding to the selection
        store: list
            The value of the Vega dataset corresponding to the selection.
            This dataset is named "{name}_store" in the Vega view.

        Returns
        -------
        PointSelection
        r   )r+   )r   r   r   s      r   r   zIntervalSelection.from_vegam   s   € ð& ˆ>ØˆFÜ  d°&ÀÔFÐFr&   N)r   r   r   zdict[str, list] | Noner   r   r   r%   r&   r   r+   r+   ]   s-   … ñð ƒIØÓØƒLàòGó ñGr&   r+   N)Ú
__future__r   Údataclassesr   Útypingr   r   ÚlistÚdictr   r   r   r(   r+   r%   r&   r   ú<module>r2      s”   ðÝ "å !ß ñ 	�˜˜d 3¨ 8™nÑ-Ó.€ñ �$˜4Ô ÷'Eð 'Eó !ð'EñT �$˜4Ô ÷#Dð #Dó !ð#DñL �$˜4Ô ÷$Gð $Gó !ñ$Gr&   