Ë
    Ìi}	  ã                   ó   — d dl mZ dd„Zy)é    )ÚutilsNc                 ó¼  — ddl m} t        |t        «      r"| j                  D �cg c]  }||v r||   n|‘Œ }}t        |t        «      r"| j
                  D �cg c]  }||v r||   n|‘Œ }}|rR|xs | j                  }|�@|| j                  k(  rt        j                  |fddi|¤Ž}nt        j                  |fddi|¤Ž}|r*|xs | j                  }|�t        j                  |fddi|¤Ž}|�>|| j                  k7  r/|€| j
                  } || j                  || j                  |d¬«      S | j                  | j                  || j                  |¬«      S c c}w c c}w )aB  
    Create a copy of this table with different column names or row names.

    By enabling :code:`slug_columns` or :code:`slug_rows` and not specifying
    new names you may slugify the table's existing names.

    :code:`kwargs` will be passed to the slugify method in python-slugify. See:
    https://github.com/un33k/python-slugify

    :param column_names:
        New column names for the renamed table. May be either an array or
        a dictionary mapping existing column names to new names. If not
        specified, will use this table's existing column names.
    :param row_names:
        New row names for the renamed table. May be either an array or
        a dictionary mapping existing row names to new names. If not
        specified, will use this table's existing row names.
    :param slug_columns:
        If True, column names will be converted to slugs and duplicate names
        will have unique identifiers appended.
    :param slug_rows:
        If True, row names will be converted to slugs and dupicate names will
        have unique identifiers appended.
    r   )ÚTableÚensure_uniqueFT)Ú	row_namesÚ_is_fork)r   )Úagate.tabler   Ú
isinstanceÚdictÚ_column_namesÚ
_row_namesr   Úslugifyr   Ú_rowsÚ_column_typesÚ_fork)ÚselfÚcolumn_namesr   Úslug_columnsÚ	slug_rowsÚkwargsr   Únames           úS/var/www/html/strategist-ai/venv/lib/python3.12/site-packages/agate/table/rename.pyÚrenamer      sd  € õ2 "ä�,¤Ô%ØY]×YkÑYkÖlÐQU¨d°lÑ.B˜ TÒ*ÈÑLÐlˆÐlä�)œTÔ"ØPT×P_ÑP_Ö`È¨°	Ñ(9�Y˜t’_¸tÑCÐ`ˆ	Ð`áØ#Ò9 t×'9Ñ'9ˆàÐ#Ø˜t×1Ñ1Ò1Ü$Ÿ}™}¨\ÑYÈÐYÐRXÑY‘ä$Ÿ}™}¨\ÑXÈÐXÐQWÑX�áØÒ/ §¡ˆ	àÐ ÜŸ™ iÑN¸tÐNÀvÑNˆIàÐ L°D×4FÑ4FÒ$FØÐØŸ™ˆIá�T—Z‘Z ¨t×/AÑ/AÈYÐafÔgÐgà�:‰:�d—j‘j ,°×0BÑ0BÈiˆ:ÓXÐXùò5 mùò as   ¥EÁE)NNFF)Úagater   r   © ó    r   ú<module>r      s   ðÝ ô6Yr   