Ë
    Ìi   ã                   ó   — d dl mZ dd„Zy)é    )ÚutilsNc                 óÌ  ‡	— t        |d«      }t        j                  |«      }g }g }| j                  �g }nd}t	        | j
                  «      D ]ƒ  \  }Š	|r	 |‰	«      }n!|rˆ	fd„|D «       }n|€t        ‰	«      }n‰	|   }||vsŒ7|j                  |«       |j                  ‰	«       | j                  €Œf|j                  | j                  |   «       Œ… | j                  ||¬«      S )a�  
    Create a new table with only unique rows.

    :param key:
        Either the name of a single column to use to identify unique rows, a
        sequence of such column names, a :class:`function` that takes a
        row and returns a value to identify unique rows, or `None`, in
        which case the entire row will be checked for uniqueness.
    :returns:
        A new :class:`.Table`.
    Ú__call__Nc              3   ó(   •K  — | ]	  }‰|   –— Œ y ­w©N© )Ú.0ÚjÚrows     €úU/var/www/html/strategist-ai/venv/lib/python3.12/site-packages/agate/table/distinct.pyú	<genexpr>zdistinct.<locals>.<genexpr>   s   øè ø€ Ò%˜A��Q•Ñ%ùs   ƒ)Ú	row_names)	Úhasattrr   Ú
issequenceÚ
_row_namesÚ	enumerateÚ_rowsÚtupleÚappendÚ_fork)
ÚselfÚkeyÚkey_is_row_functionÚkey_is_sequenceÚuniquesÚrowsr   ÚiÚkr   s
            @r   Údistinctr      sâ   ø€ ô " # zÓ2ÐÜ×&Ñ& sÓ+€Oà€GØ€Dà‡�Ð"Ø‰	àˆ	ä˜DŸJ™JÓ'ò 5‰ˆˆ3ÙÙ�C“‰AÙÛ% Ô%‰AØˆ[Ü�c“
‰Aà�C‘ˆAà�GÒØ�N‰N˜1ÔØ�K‰K˜Ôà�‰Ñ*Ø× Ñ  §¡°Ñ!3Õ4ð5ð" �:‰:�d iˆ:Ó0Ð0ó    r   )Úagater   r   r   r    r   ú<module>r"      s   ðÝ ô(1r    