
    ?[h                     J   d dl Z d dlZd dlZddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ d Zd	 Zd
 Zdej        fdZe j        d             Ze                    e          d             Ze                     ed          d            edej        fd            Zd ZdS )    N   )yield_lines)	pass_none)metadata)ensure_unique)consumec                     | j          dS )zR
    Exercise one of the dynamic properties to trigger
    the pattern match.
    N)extraseps    g/var/www/api.easyaligner.net/htdocs/venv_linux/lib/python3.11/site-packages/setuptools/_entry_points.pyensure_validr      s    
 IIII    c                     t          |           }d| dd                    |          z   }t          j                            |          S )zf
    Given a value of an entry point or series of entry points,
    return each as an EntryPoint.
    []

)r   joinr   EntryPoints
_from_text)valuegrouplinestexts       r   
load_groupr      sF     Eu>>>DIIe,,,D**4000r   c                     | j         | j        fS N)r   namer   s    r   by_group_and_namer      s    8RWr   epsc           	      r    t          t          t          t          | t                                         | S )zM
    Ensure entry points are unique by group and name and validate each.
    key)r   mapr   r   r   r    s    r   validater&   #   s/     CmC5FGGGHHIIIJr   c                     t           j                            d |                                 D                       }t	          t          j        |                    S )zA
    Given a Distribution.entry_points, produce EntryPoints.
    c              3   <   K   | ]\  }}t          ||          V  d S r   )r   ).0r   r   s      r   	<genexpr>zload.<locals>.<genexpr>0   sD       +) +)E5 	5%  +) +) +) +) +) +)r   )	itertoolschainfrom_iterableitemsr&   r   r   )r    groupss     r   loadr0   +   sZ    
 _** +) +)IIKK+) +) +) ) )F H(00111r   c                 ~    t          t          j        t          j                            |                               S )z
    >>> ep, = load('[console_scripts]\nfoo=bar')
    >>> ep.group
    'console_scripts'
    >>> ep.name
    'foo'
    >>> ep.value
    'bar'
    )r&   r   r   r   r%   s    r   _r2   6   s.     H()=)H)H)M)MNNOOOr   c                     | S r    )xs    r   <lambda>r6   D   s    A r   c                     t          j        d          }t          j        t	          | |          |          }d                    d |D                       S )Nr   r"   r   c              3   H   K   | ]\  }}d | dt          |           dV  dS )r   r   r   N)render_items)r)   r   r.   s      r   r*   zrender.<locals>.<genexpr>L   sU        E5 	.E--l5))---     r   )operator
attrgetterr+   groupbysortedr   )r    by_groupr/   s      r   renderr?   G   sc    "7++Hvcx888(CCF99  "     r   c                 Z    d                     d t          |           D                       S )Nr   c              3   8   K   | ]}|j          d |j         V  dS )z = N)r   r   )r)   r   s     r   r*   zrender_items.<locals>.<genexpr>S   sH         7!!rx!!     r   )r   r=   r%   s    r   r9   r9   R   s:    99  ++     r   )	functoolsr:   r+   extern.jaraco.textr   extern.jaraco.functoolsr   
_importlibr   
_itertoolsr   extern.more_itertoolsr   r   r   r   r   r&   singledispatchr0   registerstrr2   typer?   r9   r4   r   r   <module>rL      sx            + + + + + + . . . . . .             % % % % % % * * * * * *  1 1 1  (&     2 2 2 s
P 
P 
P dd4jj++ & & & $        r   