
    si                     P    S SK Jr  S SKJr  \" \5      rS rSS jrS	S jrS	S jr	g)
    )	getLogger)dedentc                 4    [        U 5      R                  5       $ )zdedent and left-strip)r   lstrip)strings    0lib/python3.13/site-packages/conda/auxlib/ish.pydalsr	      s    &>  ""    c                      [        X5      $ ! [         a*    U H"  n [        X5      s  s $ ! [         a     M   f = f   e f = f)N)getattrAttributeError)obj	attr_namealiasesaliass       r   	_get_attrr      sR    	s&& Es**!   s$   
 A
,A
:A:Ac                      [        X   X5      nUb  U$ [        XSS U5      $ ! [         a    [        XX#S-   5      s $ [         a     gf = f)a  Return the value of the first key found in the list of search_maps,
otherwise return None.

Examples:
    >>> from .collection import AttrDict
    >>> d1 = AttrDict({'a': 1, 'b': 2, 'c': 3, 'e': None})
    >>> d2 = AttrDict({'b': 5, 'e': 6, 'f': 7})
    >>> find_or_none('c', (d1, d2))
    3
    >>> find_or_none('f', (d1, d2))
    7
    >>> find_or_none('b', (d1, d2))
    2
    >>> print(find_or_none('g', (d1, d2)))
    None
    >>> find_or_none('e', (d1, d2))
    6

N   )r   find_or_noner   
IndexErrorkeysearch_mapsr   
_map_indexattrs        r   r   r      s`    (0#?'tX\#12PW-XX ECg!|DD s   $ $ A	A
Ac                      [        X   X5      nUb  U$ [        XSS  U5      $ ! [         a    [        XX#S-   5      s $ [         a    [        5       ef = f)Nr   )r   find_or_raiser   r   r   s        r   r   r   8   sf    0#?'tY]3ABQX-YY FSw1EE s   $ $ AAN) )r   r   )
loggingr   textwrapr   __name__logr	   r   r   r   r   r
   r   <module>r#      s)     #

>	r
   