Ë
    zñ�jZ  ã                   ó„   — d dl Z d dlmZ d dlmZmZmZmZmZm	Z	 ddl
mZmZ ddlmZmZ ddlmZ ddlmZ  G d	„ d
«      Zy)é    N)Ú
ModuleType)ÚAnyÚCallableÚDictÚListÚOptionalÚTupleé   )ÚLexiconÚhelpline)Úmerge_dictsÚ	copy_dict)ÚContext)ÚTaskc                   ó¶  — e Zd ZdZdededdfd„Zd3dedee   ddfd	„Zdefd
„Z	de
defd„Zdefd„Ze	 	 	 	 d4dedee   deeeef      dee   dee   dd fd„«       Z	 	 	 d5dddee   deeedf      dee   ddf
d„Z	 	 d6dd dee   dee   ddfd„Zdeddfd„Zdedeeef   fd„Zdedd fd„Zd3dee   defd„Zded ed!eeef   deeeeef   f   fd"„Zdee   deeeeef   f   fd#„Zdedefd$„Z	 d3d%ee   dee   fd&„Zd'ed(edefd)„Zdedefd*„Z d+e!de!fd,„Z"e#deeee   f   fd-„«       Z$d3d.ee   deeef   fd/„Z%d0eeef   ddfd1„Z&deeef   fd2„Z'y)7Ú
Collectionzg
    A collection of executable tasks. See :doc:`/concepts/namespaces`.

    .. versionadded:: 1.0
    ÚargsÚkwargsÚreturnNc                 óú  — t        «       | _        t        «       | _        d| _        d| _        i | _        |j                  dd«      | _        |j                  dd«      | _        | j                  €d| _        t        |«      }|r8t        |d   t        «      r%| j                  |j                  d«      «      | _        |D ]  }| j                  |«       Œ |j                  «       D ]  \  }}| j                  ||«       Œ y)a¡  
        Create a new task collection/namespace.

        `.Collection` offers a set of methods for building a collection of
        tasks from scratch, plus a convenient constructor wrapping said API.

        In either case:

        * The first positional argument may be a string, which (if given) is
          used as the collection's default name when performing namespace
          lookups;
        * A ``loaded_from`` keyword argument may be given, which sets metadata
          indicating the filesystem path the collection was loaded from. This
          is used as a guide when loading per-project :ref:`configuration files
          <config-hierarchy>`.
        * An ``auto_dash_names`` kwarg may be given, controlling whether task
          and collection names have underscores turned to dashes in most cases;
          it defaults to ``True`` but may be set to ``False`` to disable.

          The CLI machinery will pass in the value of the
          ``tasks.auto_dash_names`` config value to this kwarg.

        **The method approach**

        May initialize with no arguments and use methods (e.g.
        `.add_task`/`.add_collection`) to insert objects::

            c = Collection()
            c.add_task(some_task)

        If an initial string argument is given, it is used as the default name
        for this collection, should it be inserted into another collection as a
        sub-namespace::

            docs = Collection('docs')
            docs.add_task(doc_task)
            ns = Collection()
            ns.add_task(top_level_task)
            ns.add_collection(docs)
            # Valid identifiers are now 'top_level_task' and 'docs.doc_task'
            # (assuming the task objects were actually named the same as the
            # variables we're using :))

        For details, see the API docs for the rest of the class.

        **The constructor approach**

        All ``*args`` given to `.Collection` (besides the abovementioned
        optional positional 'name' argument and ``loaded_from`` kwarg) are
        expected to be `.Task` or `.Collection` instances which will be passed
        to `.add_task`/`.add_collection` as appropriate. Module objects are
        also valid (as they are for `.add_collection`). For example, the below
        snippet results in the same two task identifiers as the one above::

            ns = Collection(top_level_task, Collection('docs', doc_task))

        If any ``**kwargs`` are given, the keywords are used as the initial
        name arguments for the respective values::

            ns = Collection(
                top_level_task=some_other_task,
                docs=Collection(doc_task)
            )

        That's exactly equivalent to::

            docs = Collection(doc_task)
            ns = Collection()
            ns.add_task(some_other_task, 'top_level_task')
            ns.add_collection(docs, 'docs')

        See individual methods' API docs for details.
        NÚloaded_fromÚauto_dash_namesTr   )r   ÚtasksÚcollectionsÚdefaultÚnameÚ_configurationÚpopr   r   ÚlistÚ
isinstanceÚstrÚ	transformÚ_add_objectÚitems)Úselfr   r   Ú_argsÚargr   Úobjs          úR/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/invoke/collection.pyÚ__init__zCollection.__init__   sâ   € ôV “YˆŒ
Ü"›9ˆÔØ&*ˆŒØˆŒ	Ø.0ˆÔà!Ÿ:™: m°TÓ:ˆÔØ%Ÿz™zÐ*;¸TÓBˆÔà×ÑÐ'Ø#'ˆDÔ ä�T“
ˆÙ”Z  Q¡¬Ô-ØŸ™ u§y¡y°£|Ó4ˆDŒIàò 	"ˆCØ×Ñ˜SÕ!ð	"ð  Ÿ™›ò 	(‰IˆD�#Ø×Ñ˜S $Õ'ñ	(ó    r(   r   c                 óÞ   — t        |t        «      r| j                  }nFt        |t        t        f«      r| j
                  }n#t        dj                  t        |«      «      «      ‚ |||¬«       y )NzNo idea how to insert {!r}!©r   )	r    r   Úadd_taskr   r   Úadd_collectionÚ	TypeErrorÚformatÚtype)r%   r(   r   Úmethods       r)   r#   zCollection._add_objectt   sT   € ä�cœ4Ô Ø—]‘]‰FÜ˜œj¬*Ð5Ô6Ø×(Ñ(‰FäÐ9×@Ñ@ÄÀcÃÓKÓLÐLÙˆs˜Ör+   c           	      ó>  — t        | j                  j                  «       «      }| j                  j                  «       D �cg c]  }dj	                  |«      ‘Œ }}dj	                  | j
                  dj                  t        |«      t        |«      z   «      «      S c c}w )Nz{}...z<Collection {!r}: {}>z, )r   r   Úkeysr   r1   r   ÚjoinÚsorted)r%   Ú
task_namesÚxr   s       r)   Ú__repr__zCollection.__repr__~   s|   € Ü˜$Ÿ*™*Ÿ/™/Ó+Ó,ˆ
Ø26×2BÑ2B×2GÑ2GÓ2IÖJ¨Q�w—~‘~ aÕ(ÐJˆÐJØ&×-Ñ-Ø�I‰I�t—y‘y¤¨
Ó!3´f¸[Ó6IÑ!IÓJó
ð 	
ùò Ks   Á BÚotherc                 óÂ   — t        |t        «      rO| j                  |j                  k(  xr4 | j                  |j                  k(  xr | j                  |j                  k(  S y)NF)r    r   r   r   r   )r%   r;   s     r)   Ú__eq__zCollection.__eq__…   sT   € Ü�eœZÔ(à—	‘	˜UŸZ™ZÑ'ò :Ø—J‘J %§+¡+Ñ-ò:à×$Ñ$¨×(9Ñ(9Ñ9ðð
 r+   c                 ó,   — t        | j                  «      S ©N)Úboolr8   )r%   s    r)   Ú__bool__zCollection.__bool__Ž   s   € Ü�D—O‘OÓ$Ð$r+   ÚmoduleÚconfigr   r   c                 óÜ  ‡ ‡‡‡‡‡— ‰j                   j                  d«      d   Šddt        t           ddfˆˆ ˆˆˆˆfd„}dD ]Ñ  }t	        ‰|d«      }|sŒt        |t        «      sŒ$ ||j                  ¬	«      }	|	j                  |j                  «      |	_	        |	j                  |j                  «      |	_
        |j                  r|	j                  |j                  «      nd|	_        t        |j                  «      }
|rt        |
|«       |
|	_        |	c S  t!        d
„ t#        ‰«      j%                  «       «      } |«       }|D ]  }|j'                  |«       Œ |r|j)                  |«       |S )a#  
        Return a new `.Collection` created from ``module``.

        Inspects ``module`` for any `.Task` instances and adds them to a new
        `.Collection`, returning it. If any explicit namespace collections
        exist (named ``ns`` or ``namespace``) a copy of that collection object
        is preferentially loaded instead.

        When the implicit/default collection is generated, it will be named
        after the module's ``__name__`` attribute, or its last dotted section
        if it's a submodule. (I.e. it should usually map to the actual ``.py``
        filename.)

        Explicitly given collections will only be given that module-derived
        name if they don't already have a valid ``.name`` attribute.

        If the module has a docstring (``__doc__``) it is copied onto the
        resulting `.Collection` (and used for display in help, list etc
        output.)

        :param str name:
            A string, which if given will override any automatically derived
            collection name (or name set on the module's root namespace, if it
            has one.)

        :param dict config:
            Used to set config options on the newly created `.Collection`
            before returning it (saving you a call to `.configure`.)

            If the imported module had a root namespace object, ``config`` is
            merged on top of it (i.e. overriding any conflicts.)

        :param str loaded_from:
            Identical to the same-named kwarg from the regular class
            constructor - should be the path where the module was
            found.

        :param bool auto_dash_names:
            Identical to the same-named kwarg from the regular class
            constructor - determines whether emitted names are auto-dashed.

        .. versionadded:: 1.0
        ú.éÿÿÿÿNÚobj_namer   r   c                 ój   •— ‰	xs | xs ‰g}t        ‰‰¬«      } ‰|i |¤Ž}‰j                  |_        |S )N)r   r   )ÚdictÚ__doc__)
rG   r   r   Úinstancer   Úclsr   rB   Úmodule_namer   s
       €€€€€€r)   Úinstantiatez+Collection.from_module.<locals>.instantiateÇ   sH   ø€ ð Ò3˜HÒ3¨Ð4ˆDÜØ'¸ôˆFñ ˜DÐ+ FÑ+ˆHØ%Ÿ~™~ˆHÔØˆOr+   )ÚnsÚ	namespace)rG   c                 ó"   — t        | t        «      S r?   )r    r   ©r9   s    r)   ú<lambda>z(Collection.from_module.<locals>.<lambda>å   s   € ¤¨A¬tÓ!4€ r+   r?   )Ú__name__Úsplitr   r!   Úgetattrr    r   r   Ú_transform_lexiconr   r   r   r"   r   r   r   ÚfilterÚvarsÚvaluesr.   Ú	configure)rL   rB   r   rC   r   r   rN   Ú	candidater(   ÚretÚ
obj_configr   Ú
collectionÚtaskrM   s   ``` ``        @r)   Úfrom_modulezCollection.from_module‘   sB  ý€ ðh —o‘o×+Ñ+¨CÓ0°Ñ4ˆñ		¤(¬3¡-ð 		¸<÷ 		ò 		ð -ò 	ˆIÜ˜& )¨TÓ2ˆCÚ”z #¤zÕ2á!¨3¯8©8Ô4�Ø×2Ñ2°3·9±9Ó=�”	Ø"%×"8Ñ"8¸¿¹Ó"I�”à25·+²+�C—M‘M #§+¡+Ô.À4ð ”ô ' s×'9Ñ'9Ó:�
ÙÜ 
¨FÔ3Ø%/�Ô"Ø’
ð	ô" Ñ4´d¸6³l×6IÑ6IÓ6KÓLˆá “]ˆ
Øò 	&ˆDØ×Ñ Õ%ð	&áØ× Ñ  Ô(ØÐr+   r`   r   Úaliases.r   c                 óˆ  — |€t|j                   r|j                   }n[t        |j                  d«      r|j                  j                  }n.t        |j                  d«      r|j                  }nt        d«      ‚| j                  |«      }|| j                  v rd}t        |j                  |«      «      ‚|| j                  |<   t        |j                  «      t        |xs g «      z   D ].  }| j                  j                  | j                  |«      |¬«       Œ0 |du s|€&|j                  r| j                  |«       || _        yyy)a™  
        Add `.Task` ``task`` to this collection.

        :param task: The `.Task` object to add to this collection.

        :param name:
            Optional string name to bind to (overrides the task's own
            self-defined ``name`` attribute and/or any Python identifier (i.e.
            ``.func_name``.)

        :param aliases:
            Optional iterable of additional names to bind the task as, on top
            of the primary name. These will be used in addition to any aliases
            the task itself declares internally.

        :param default: Whether this task should be the collection default.

        .. versionadded:: 1.0
        NÚ	func_namerT   z&Could not obtain a name for this task!zFName conflict: this collection has a sub-collection named {!r} already)ÚtoT)r   ÚhasattrÚbodyrd   rT   Ú
ValueErrorr"   r   r1   r   r   rb   ÚaliasÚ
is_defaultÚ_check_default_collisionr   )r%   r`   r   rb   r   Úerrri   s          r)   r.   zCollection.add_taskî   s  € ð4 ˆ<Ø�yŠyØ—y‘y‘ä˜Ÿ™ KÔ0Ø—y‘y×*Ñ*‘Ü˜Ÿ™ JÔ/Ø—}‘}‘ä Ð!IÓJÐJØ�~‰~˜dÓ#ˆØ�4×#Ñ#Ñ#ØZˆCÜ˜SŸZ™Z¨Ó-Ó.Ð.Øˆ�
‰
�4ÑÜ˜$Ÿ,™,Ó'¬$¨wª}¸"Ó*=Ñ=ò 	=ˆEØ�J‰J×Ñ˜TŸ^™^¨EÓ2°tÐÕ<ð	=à�d‰?˜w˜°4·?²?Ø×)Ñ)¨$Ô/ØˆD�Lð 4C˜r+   Úcollc                 óR  — t        |t        «      rt        j                  |«      }|xs |j                  }|st        d«      ‚| j                  |«      }|| j                  v rd}t        |j                  |«      «      ‚|| j                  |<   |r| j                  |«       || _        yy)a  
        Add `.Collection` ``coll`` as a sub-collection of this one.

        :param coll: The `.Collection` to add.

        :param str name:
            The name to attach the collection as. Defaults to the collection's
            own internal name.

        :param default:
            Whether this sub-collection('s default task-or-collection) should
            be the default invocation of the parent collection.

        .. versionadded:: 1.0
        .. versionchanged:: 1.5
            Added the ``default`` parameter.
        z&Non-root collections must have a name!z<Name conflict: this collection has a task named {!r} alreadyN)r    r   r   ra   r   rh   r"   r   r1   r   rk   r   )r%   rm   r   r   rl   s        r)   r/   zCollection.add_collection  s›   € ô0 �dœJÔ'Ü×)Ñ)¨$Ó/ˆDàÒ �t—y‘yˆÙÜÐEÓFÐFØ�~‰~˜dÓ#ˆà�4—:‘:ÑØPˆCÜ˜SŸZ™Z¨Ó-Ó.Ð.à!%ˆ×Ñ˜ÑÙØ×)Ñ)¨$Ô/ØˆD�Lð r+   c                 ój   — | j                   r'd}t        |j                  || j                   «      «      ‚y )Nz3'{}' cannot be the default because '{}' already is!)r   rh   r1   )r%   r   Úmsgs      r)   rk   z#Collection._check_default_collisionF  s-   € Ø�<Š<ØGˆCÜ˜SŸZ™Z¨¨d¯l©lÓ;Ó<Ð<ð r+   Úpathc                 óp   — |j                  d«      }|j                  d«      }dj                  |«      }||fS )aB  
        Obtain first collection + remainder, of a task path.

        E.g. for ``"subcollection.taskname"``, return ``("subcollection",
        "taskname")``; for ``"subcollection.nested.taskname"`` return
        ``("subcollection", "nested.taskname")``, etc.

        An empty path becomes simply ``('', '')``.
        rE   r   )rU   r   r6   )r%   rq   Úpartsrm   Úrests        r)   Ú_split_pathzCollection._split_pathK  s5   € ð —
‘
˜3“ˆØ�y‰y˜‹|ˆØ�x‰x˜‹ˆØ�TˆzÐr+   c                 ór   — |j                  d«      }| }|r!|j                  |j                  d«         }|rŒ!|S )zp
        Given a ``path`` to a subcollection, return that subcollection.

        .. versionadded:: 1.0
        rE   r   )rU   r   r   )r%   rq   rs   r_   s       r)   Úsubcollection_from_pathz"Collection.subcollection_from_pathZ  s<   € ð —
‘
˜3“ˆØˆ
ÙØ#×/Ñ/°·	±	¸!³Ñ=ˆJò àÐr+   c                 ó*   — | j                  |«      d   S )aó  
        Returns task named ``name``. Honors aliases and subcollections.

        If this collection has a default task, it is returned when ``name`` is
        empty or ``None``. If empty input is given and no task has been
        selected as the default, ValueError will be raised.

        Tasks within subcollections should be given in dotted form, e.g.
        'foo.bar'. Subcollection default tasks will be returned on the
        subcollection's name.

        .. versionadded:: 1.0
        r   )Útask_with_config©r%   r   s     r)   Ú__getitem__zCollection.__getitem__f  s   € ð ×$Ñ$ TÓ*¨1Ñ-Ð-r+   rt   Úoursc                 ó`   — | j                   |   j                  |«      \  }}|t        |fi |¤ŽfS r?   )r   ry   rI   )r%   rm   rt   r|   r`   rC   s         r)   Ú_task_with_merged_configz#Collection._task_with_merged_configv  s8   € ð ×'Ñ'¨Ñ-×>Ñ>¸tÓD‰ˆˆfØ”T˜&Ñ) DÑ)Ð)Ð)r+   c                 óR  — | j                  «       }|s(| j                  st        d«      ‚| | j                     |fS | j                  |«      }d|v r'| j	                  |«      \  }}| j                  |||«      S || j                  v r| j                  |d|«      S | j                  |   |fS )aï  
        Return task named ``name`` plus its configuration dict.

        E.g. in a deeply nested tree, this method returns the `.Task`, and a
        configuration dict created by merging that of this `.Collection` and
        any nested `Collections <.Collection>`, up through the one actually
        holding the `.Task`.

        See `~.Collection.__getitem__` for semantics of the ``name`` argument.

        :returns: Two-tuple of (`.Task`, `dict`).

        .. versionadded:: 1.0
        z$This collection has no default task.rE   Ú )Úconfigurationr   rh   r"   ru   r~   r   r   )r%   r   r|   rm   rt   s        r)   ry   zCollection.task_with_config|  s±   € ð$ ×!Ñ!Ó#ˆáØ—<’<Ü Ð!GÓHÐHØ˜Ÿ™Ñ% tÐ+Ð+à�~‰~˜dÓ#ˆà�$‰;Ø×)Ñ)¨$Ó/‰JˆD�$Ø×0Ñ0°°t¸TÓBÐBà�4×#Ñ#Ñ#Ø×0Ñ0°°r¸4Ó@Ð@à�z‰z˜$Ñ Ð%Ð%r+   c                 ó.   — 	 | |    y# t         $ r Y yw xY w)NTF)ÚKeyErrorrz   s     r)   Ú__contains__zCollection.__contains__   s#   € ð	Ø�ŠJØøÜò 	Ùð	ús   ‚ ˆ	“Úignore_unknown_helpc           
      ó²   — g }| j                   j                  «       D ]7  \  }}| |   }|j                  t        |||j	                  |¬«      ¬«      «       Œ9 |S )aw  
        Returns all contained tasks and subtasks as a list of parser contexts.

        :param bool ignore_unknown_help:
            Passed on to each task's ``get_arguments()`` method. See the config
            option by the same name for details.

        .. versionadded:: 1.0
        .. versionchanged:: 1.7
            Added the ``ignore_unknown_help`` kwarg.
        )r…   )r   rb   r   )r8   r$   ÚappendÚParserContextÚget_arguments)r%   r…   ÚresultÚprimaryrb   r`   s         r)   Úto_contextszCollection.to_contexts§  sj   € ð ˆØ $§¡× 5Ñ 5Ó 7ò 
	ÑˆG�WØ˜‘=ˆDØ�M‰MÜØ Ø#Ø×+Ñ+Ø,?ð ,ó ôõð
	ð ˆr+   Úcollection_nameÚ	task_namec                 ód   — dj                  | j                  |«      | j                  |«      g«      S )NrE   )r6   r"   )r%   r�   rŽ   s      r)   Úsubtask_namezCollection.subtask_nameÃ  s-   € Ø�x‰xØ�^‰^˜OÓ,¨d¯n©n¸YÓ.GÐHó
ð 	
r+   c                 ó  — |s|S d\  }}| j                   sd\  }}g }t        |«      dz
  }t        |«      D ]9  \  }}|d|fvr||k(  r||dz
     dk7  r||dz      dk7  r|}|j                  |«       Œ; dj	                  |«      S )aÆ  
        Transform ``name`` with the configured auto-dashes behavior.

        If the collection's ``auto_dash_names`` attribute is ``True``
        (default), all non leading/trailing underscores are turned into dashes.
        (Leading/trailing underscores tend to get stripped elsewhere in the
        stack.)

        If it is ``False``, the inverse is applied - all dashes are turned into
        underscores.

        .. versionadded:: 1.0
        )Ú_ú-)r“   r’   r
   r   rE   r€   )r   ÚlenÚ	enumerater‡   r6   )r%   r   Úfrom_re   ÚreplacedÚendÚiÚchars           r)   r"   zCollection.transformÈ  s§   € ñ  ØˆKØ‰	ˆˆrØ×#Ò#Ø ‰IˆE�2ØˆÜ�$‹i˜!‰mˆÜ  “ò 	"‰GˆAˆtð ˜!˜S˜Ñ!Ø˜E’MØ˜˜Q™‘K 3Ò&Ø˜˜Q™‘K 3Ò&à�Ø�O‰O˜DÕ!ð	"ð �w‰w�xÓ Ð r+   Úoldc                 ó>  — t        «       }|j                  «       D ],  \  }}t        j                  |«      || j	                  |«      <   Œ. |j
                  j                  «       D ]6  \  }}|j                  | j	                  |«      | j	                  |«      ¬«       Œ8 |S )zr
        Take a Lexicon and apply `.transform` to its keys and aliases.

        :returns: A new Lexicon.
        )r–   re   )r   r$   ÚcopyÚdeepcopyr"   rb   ri   )r%   r›   ÚnewÚkeyÚvalues        r)   rW   zCollection._transform_lexiconï  s�   € ô ‹iˆð Ÿ)™)›+ò 	<‰JˆC�ä'+§}¡}°UÓ';ˆC�—‘˜sÓ#Ò$ð	<ð Ÿ+™+×+Ñ+Ó-ò 	K‰JˆC�Ø�I‰I˜DŸN™N¨3Ó/°D·N±NÀ5Ó4IˆIÕJð	Kàˆ
r+   c                 ó¸  ‡ ‡— i }‰ j                   j                  «       D ]1  \  }}t        t        ‰ j                  |j
                  «      «      ||<   Œ3 ‰ j                  j                  «       D ]j  \  Š}|j                  j                  «       D ]H  \  }}t        t        ˆˆ fd„|«      «      }|j                  |k(  r|‰fz  }||‰ j                  ‰|«      <   ŒJ Œl |S )aÝ  
        Return all task identifiers for this collection as a one-level dict.

        Specifically, a dict with the primary/"real" task names as the key, and
        any aliases as a list value.

        It basically collapses the namespace tree into a single
        easily-scannable collection of invocation strings, and is thus suitable
        for things like flat-style task listings or transformation into parser
        contexts.

        .. versionadded:: 1.0
        c                 ó(   •— ‰j                  ‰| «      S r?   )r�   )r9   Ú	coll_namer%   s    €€r)   rS   z'Collection.task_names.<locals>.<lambda>  s   ø€  $×"3Ñ"3°I¸qÓ"A€ r+   )
r   r$   r   Úmapr"   rb   r   r8   r   r�   )r%   r]   r   r`   rm   rŽ   rb   r¤   s   `      @r)   r8   zCollection.task_names   sß   ù€ ð ˆàŸ*™*×*Ñ*Ó,ò 	@‰JˆD�$ÜœS §¡°·±Ó>Ó?ˆC�ŠIð	@ð  $×/Ñ/×5Ñ5Ó7ò 		G‰OˆI�tØ&*§o¡o×&;Ñ&;Ó&=ò GÑ"�	˜7ÜÜÔAÀ7ÓKó�ð
 —<‘< 9Ò,Ø 	˜|Ñ+�GØ?F��D×%Ñ% i°Ó;Ò<ñGð		Gð ˆ
r+   Útaskpathc                 óX   — |€t        | j                  «      S | j                  |«      d   S )aÊ  
        Obtain merged configuration values from collection & children.

        :param taskpath:
            (Optional) Task name/path, identical to that used for
            `~.Collection.__getitem__` (e.g. may be dotted for nested tasks,
            etc.) Used to decide which path to follow in the collection tree
            when merging config values.

        :returns: A `dict` containing configuration values.

        .. versionadded:: 1.0
        r
   )r   r   ry   )r%   r¦   s     r)   r�   zCollection.configuration   s1   € ð ÐÜ˜T×0Ñ0Ó1Ð1Ø×$Ñ$ XÓ.¨qÑ1Ð1r+   Úoptionsc                 ó0   — t        | j                  |«       y)a7  
        (Recursively) merge ``options`` into the current `.configuration`.

        Options configured this way will be available to all tasks. It is
        recommended to use unique keys to avoid potential clashes with other
        config options

        For example, if you were configuring a Sphinx docs build target
        directory, it's better to use a key like ``'sphinx.target'`` than
        simply ``'target'``.

        :param options: An object implementing the dictionary protocol.
        :returns: ``None``.

        .. versionadded:: 1.0
        N)r   r   )r%   r¨   s     r)   r[   zCollection.configure2  s   € ô" 	�D×'Ñ'¨Õ1r+   c                 óî  — | j                   t        | «      | j                  t        | j                  j                  «       d„ ¬«      D ��cg c]Q  }| j                  |j                   «      t        |«      |j                  D �cg c]  }| j                  |«      ‘Œ c}dœ‘ŒS c}}t        | j                  j                  «       d„ ¬«      D �cg c]  }|j                  «       ‘Œ c}dœS c c}w c c}}w c c}w )zþ
        Return an appropriate-for-serialization version of this object.

        See the documentation for `.Program` and its ``json`` task listing
        format; this method is the driver for that functionality.

        .. versionadded:: 1.0
        c                 ó   — | j                   S r?   r-   rR   s    r)   rS   z'Collection.serialized.<locals>.<lambda>X  s
   € À1Ç6Á6€ r+   )r    )r   Úhelprb   c                 ó"   — | j                   xs dS )Nr€   r-   rR   s    r)   rS   z'Collection.serialized.<locals>.<lambda>]  s   € ¸Q¿V¹Vº\Àr€ r+   )r   r¬   r   r   r   )
r   r   r   r7   r   rZ   r"   rb   r   Ú
serialized)r%   r9   Úys      r)   r®   zCollection.serializedE  sÎ   € ð —I‘IÜ˜T“NØ—|‘|ô   §
¡
× 1Ñ 1Ó 3Ñ9IÔJ÷ð ð	 !ŸN™N¨1¯6©6Ó2Ü$ Q›KØ;<¿9¹9ÖE°a §¡¨qÕ 1ÒEóóô  Ø×$Ñ$×+Ñ+Ó-Ñ3Iôöàð —‘•òñ
ð 	
ùò  Fùó	ùòs   Á
7C,ÂC'ÂC,ÃC2Ã'C,r?   )NNNN)NNN)NN)(rT   Ú
__module__Ú__qualname__rJ   r   r*   r   r!   r#   r:   Úobjectr@   r=   rA   Úclassmethodr   r   ra   r	   r.   r/   rk   ru   rw   r{   r~   ry   r„   r   rˆ   rŒ   r�   r"   r   rW   Úpropertyr8   r�   r[   r®   © r+   r)   r   r      s/  „ ñð_(˜cð _(¨Sð _(°Tó _(ñB˜sð ¨(°3©-ð À4ó ð
˜#ó 
ð˜Fð  tó ð%˜$ó %ð ð #Ø+/Ø%)Ø*.ñZàðZð �s‰mðZð ˜˜c 3˜h™Ñ(ð	Zð
 ˜c‘]ðZð " $™ðZð 
òZó ðZð~ #Ø-1Ø"&ñ- àð- ð �s‰mð- ð ˜%  S ™/Ñ*ð	- ð
 ˜$‘ð- ð 
ó- ðd #Ø"&ñ	' àð' ð �s‰mð' ð ˜$‘ð	' ð
 
ó' ðR=¨Sð =°Tó =ð
 ð ¨¨c°3¨h©ó ð
¨Cð 
°Ló 
ñ. ¨¡ð .¸ó .ð *Øð*Ø"ð*Ø*.¨s°C¨x©.ð*à	ˆs�D˜˜c˜‘NÐ"Ñ	#ó*ð"&Ø˜S‘Mð"&à	ˆs�D˜˜c˜‘NÐ"Ñ	#ó"&ðH ð ¨ó ð 59ñØ#+¨D¡>ðà	ˆmÑ	óð8
¨Cð 
¸Cð 
ÀCó 
ð
%!˜cð %! có %!ðN gð °'ó ð" ð˜D  d¨3¡i Ñ0ò ó ðñ>2 h¨s¡mð 2¸tÀCÈÀH¹~ó 2ð$2  c¨3 h¡ð 2°Dó 2ð&
˜D  c ™Nô 
r+   r   )r�   Útypesr   Útypingr   r   r   r   r   r	   Úutilr   r   rC   r   r   Úparserr   rˆ   r   r   r   rµ   r+   r)   ú<module>rº      s)   ðÛ Ý ß =× =ç #ç *Ý ,Ý ÷T	
ò T	
r+   