
    -Ph                    "    d dl mZ ddZddZdS )    )annotations
entry_typestrvaluereturn	list[str]c                (   | dk    r3	 t          dd|          S # t          $ r t          dd|          cY S w xY w| dk    rt          dd|          S | dk    rt          dd|          S | dv rt          dd|          S d	|  d
|}t          |          )Nsingle      pairtriple   >   seeseealsor   invalid  index entry )_split_into
ValueError)r   r   msgs      Y/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/sphinx/util/index_entries.pysplit_index_msgr      s    X	3q(E222 	3 	3 	3q(E22222	3V1fe,,,X1h...'''1eU+++
7Z
7
7e
7
7C
S//s    77ninttypec                    d |                     d| dz
            D             }t          t          t          d|                              | k     rd| d|}t	          |          |S )z@Split an index entry into a given number of parts at semicolons.c                6    g | ]}|                                 S  )strip).0xs     r   
<listcomp>z_split_into.<locals>.<listcomp>   s     8881QWWYY888    ;r   Nr   r   )splitlenlistfilterr   )r   r   r   partsr   s        r   r   r      sr    88CQ 7 7888E
4tU##$$%%))555E55ooLr#   N)r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )
__future__r   r   r   r   r#   r   <module>r+      sI    " " " " " "   "     r#   