Ë
    :vžj“  ã                   ó|   — d Z ddlmZ ddlmZmZmZ ddlmZm	Z	m
Z
mZ ddlmZ ddlmZ ddlmZ  G d	„ d
ee«      Zy)a­  A license reporting CLI

Mostly ready-to-use, the downstream must provide the location of the application's
static resources. Licenses from an app's federated_extensions will also be discovered
as configured in `labextensions_path` and `extra_labextensions_path`.

    from traitlets import default
    from jupyterlab_server import LicensesApp

    class MyLicensesApp(LicensesApp):
        version = "0.1.0"

        @default("static_dir")
        def _default_static_dir(self):
            return "my-static/"

    class MyApp(JupyterApp, LabConfig):
        ...
        subcommands = dict(
            licenses=(MyLicensesApp, MyLicensesApp.description.splitlines()[0])
        )

é    )ÚAny)Ú
JupyterAppÚbase_aliasesÚ
base_flags)ÚBoolÚEnumÚInstanceÚUnicodeé   )Ú__version__)Ú	LabConfig)ÚLicensesManagerc                   ó   ‡ — e Zd ZdZeZdZ eddd¬«      Z e	ddd¬«      Z
 eg d	¢d
dd¬«      Z eddd¬«      Z ee«      Zi e¥dddœ¥Zi e¥d ddiidfd ddiidfd ddiidfdœ¥Zdededdfˆ fd„Zd d„Zd d„Zˆ xZS )!ÚLicensesAppzA license management app.z"
    Report frontend licenses
    Ú Tz0The static directory from which to show licenses)ÚconfigÚhelpFz/Also print out full license text (if available))ÚmarkdownÚjsonÚcsvr   zReporter formatz.*z(A regular expression of bundles to printzLicensesApp.bundles_patternzLicensesApp.report_format)Úbundleszreport-formatÚ	full_textz*Print out full license text (if available)Úreport_formatr   z.Print out report as JSON (implies --full-text)r   z-Print out report as CSV (implies --full-text))z	full-textr   r   ÚargsÚkwargsÚreturnNc                 óD   •— t        ‰| �  |i |¤Ž | j                  «        y)zInitialize the app.N)ÚsuperÚ
initializeÚinit_licenses_manager)Úselfr   r   Ú	__class__s      €úo/workspace/moltex-experiments/.pixi/envs/default/lib/python3.12/site-packages/jupyterlab_server/licenses_app.pyr   zLicensesApp.initializeP   s!   ø€ ä‰Ñ˜DÐ+ FÒ+Ø×"Ñ"Õ$ó    c                 ó&   — t        | ¬«      | _        y)zInitialize the license manager.)ÚparentN)r   Úlicenses_manager)r!   s    r#   r    z!LicensesApp.init_licenses_managerU   s   € ä /Øô!
ˆÕr$   c                 óº   — | j                   j                  | j                  | j                  | j                  ¬«      d   }t        |«       | j                  d«       y)zStart the app.)r   r   Úbundles_patternr   N)r'   Úreportr   r   r)   ÚprintÚexit)r!   r*   s     r#   ÚstartzLicensesApp.start[   sT   € à×&Ñ&×-Ñ-Ø×,Ñ,Ø—n‘nØ ×0Ñ0ð .ó 
ð ñ	ˆô
 	ˆfŒØ�	‰	�!�r$   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚversionÚdescriptionr
   Ú
static_dirr   r   r   r   r)   r	   r   r'   r   Úaliasesr   Úflagsr   r   r    r-   Ú__classcell__)r"   s   @r#   r   r   %   sù   ø„ Ù#à€Gð€Kñ ˜ DÐ/aÔb€Já�U 4Ð._Ô`€IáÚ# Z¸ÐCTô€Mñ ˜d¨4Ð6`Ôa€Oá Ó0ÐðØ
ðà0Ø4ò€GðØ
ðð ˜[¨$Ð/Ð0Ø8ð
ð
 ˜_¨fÐ5Ð6Ø<ð
ð
 ˜_¨eÐ4Ð5Ø;ð
ò€Eð % ð %¨sð %°tõ %ó

÷r$   r   N)r1   Útypingr   Újupyter_core.applicationr   r   r   Ú	traitletsr   r   r	   r
   Ú_versionr   r   r   Úlicenses_handlerr   r   © r$   r#   Ú<module>r>      s2   ðñõ. ç IÑ Iß 3Ó 3å !Ý Ý -ô>�*˜iõ >r$   