
    c2i0                    "   d Z ddlmZ ddlmZ dZerddlmZ ddlm	Z	m
Z
mZmZmZ ddlmZ ddlmZ ed	   Zeeee   eee	f   f   Zed
   Zeeedz  edz  ee   f   eedz  edz  ee   edz  edz  ee   f   eedz  edz  ee   edz  edz  ee   edz  edz  ee   f	   f   Z G d de      ZdZdZ	 dZ	  G d d edd            Z edddddd      Z	  G d de       Z! G d de!      Z" G d d      Z# G d d       Z$ G d! d"e#e$      Z%y)#ak  
This is the Docutils (Python Documentation Utilities) package.

Package Structure
=================

Modules:

- __init__.py: Contains component base classes, exception classes, and
  Docutils version information.

- core.py: Contains the ``Publisher`` class and ``publish_*()`` convenience
  functions.

- frontend.py: Runtime settings (command-line interface, configuration files)
  processing, for Docutils front-ends.

- io.py: Provides a uniform API for low-level input and output.

- nodes.py: Docutils document tree (doctree) node class library.

- statemachine.py: A finite state machine specialized for
  regular-expression-based text filters.

Subpackages:

- languages: Language-specific mappings of terms.

- parsers: Syntax-specific input parser modules or packages.

- readers: Context-specific input handlers which understand the data
  source and manage a parser.

- transforms: Modules used by readers and writers to modify
  the Docutils document tree.

- utils: Contains the ``Reporter`` system warning class and miscellaneous
  utilities used by readers, writers, and transforms.

  utils/urischemes.py: Contains a complete mapping of known URI addressing
  scheme names to descriptions.

- utils/math: Contains functions for conversion of mathematical notation
  between different formats (LaTeX, MathML, text, ...).

- writers: Format-specific output translators.
    )annotations)
namedtupleF)Sequence)AnyClassVarLiteralProtocolUnion)Element)	Transform)readerparserwriterinputoutputalphabeta	candidatefinalNc                  $    e Zd ZU dZded<   ddZy)_UnknownReferenceResolveru-   Deprecated. Will be removed in Docutils 1.0.intpriorityc                    y N )selfnodes     [/mnt/e/genesis-system/.venvs/voice-bridge/lib/python3.12/site-packages/docutils/__init__.py__call__z"_UnknownReferenceResolver.__call__S   s        N)r   r   returnbool)__name__
__module____qualname____doc____annotations__r!   r   r"   r    r   r   M   s    ; 	r"   r   reStructuredTextz0.22.4 c                       e Zd ZU dZded<   ded<   ded<   ded<   ded<   d	ed
<   	 	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 d fdZddZddZddZddZ	 xZ
S )VersionInfor   r   majorminormicro_ReleaseLevelsreleaselevelserialr$   releasec           	         d}||vrt        d|d      |dk(  r|st        d      |dk7  rt        d      t        | 	  | ||||||      S )Nr   zreleaselevel must be one of .r   z{releaselevel "final" must not be used with development versions (leads to wrong version ordering of the related __version__r   z%"serial" must be 0 for final releases)
ValueErrorsuper__new__)	clsr.   r/   r0   r2   r3   r4   releaselevels	__class__s	           r    r9   zVersionInfo.__new__u   s}    
 @}, -1 2 27"  "O P P { !HIIwsE5%+VW> 	>r"   c                ^    t        |t              rt        | }t        j                  | |      S r   )
isinstancetupler-   __lt__r   others     r    r@   zVersionInfo.__lt__   '    eU#'E||D%((r"   c                ^    t        |t              rt        | }t        j                  | |      S r   )r>   r?   r-   __gt__rA   s     r    rE   zVersionInfo.__gt__   rC   r"   c                ^    t        |t              rt        | }t        j                  | |      S r   )r>   r?   r-   __le__rA   s     r    rG   zVersionInfo.__le__   rC   r"   c                ^    t        |t              rt        | }t        j                  | |      S r   )r>   r?   r-   __ge__rA   s     r    rI   zVersionInfo.__ge__   rC   r"   )r   r   r   r   r   T)r.   r   r/   r   r0   r   r2   r1   r3   r   r4   r$   r#   r-   )rB   objectr#   r$   )r%   r&   r'   	__slots__r)   r9   r@   rE   rG   rI   __classcell__)r<   s   @r    r-   r-   j   s    IJJJ  KM >?/615>>'*>7:>,> > +/> !	>*)
)
)
)r"   r-   z-major minor micro releaselevel serial release      r   T)r.   r/   r0   r2   r3   r4   c                      e Zd Zy)ApplicationErrorNr%   r&   r'   r   r"   r    rP   rP          r"   rP   c                      e Zd Zy)	DataErrorNrQ   r   r"   r    rT   rT      rR   r"   rT   c                  p    e Zd ZU dZdZded<   	 dZded<   	 dZded<   	 dZd	ed
<   	 dZ	ded<   	 dZ
ded<   y)SettingsSpecz
    Runtime setting specification base class.

    SettingsSpec subclass objects used by `docutils.frontend.OptionParser`.
    r   zClassVar[_SettingsSpecTuple]settings_specNzClassVar[dict[str, Any] | None]settings_defaultssettings_default_overridesClassVar[tuple[str, ...]]relative_path_settingszClassVar[str | None]config_sectionz ClassVar[tuple[str, ...] | None]config_section_dependencies)r%   r&   r'   r(   rW   r)   rX   rY   r[   r\   r]   r   r"   r    rV   rV      s}    " 35M/4$L :>6= CG ?FN 9;5: ,0N(/: EI!AHr"   rV   c                  6    e Zd ZU dZd	dZdZded<   dZded<   y)
TransformSpeca  
    Runtime transform specification base class.

    Provides the interface to register "transforms" and helper functions
    to resolve references with a `docutils.transforms.Transformer`.

    https://docutils.sourceforge.io/docs/ref/transforms.html
    c                    | j                   dk7  r/ddl}|j                  dt               t	        | j                         S g S )z;Transforms required by this class.  Override in subclasses.r   r   NzwTransformSpec: the "default_transforms" attribute will be removed in Docutils 2.0.
Use get_transforms() method instead.)default_transformswarningswarnDeprecationWarninglist)r   rb   s     r    get_transformszTransformSpec.get_transforms  sB    ""b(MM A -. //00	r"   r   zClassVar[tuple[()]]ra   z#Sequence[_UnknownReferenceResolver]unknown_reference_resolversN)r#   zlist[type[Transform]])r%   r&   r'   r(   rf   ra   r)   rg   r   r"   r    r_   r_     s+    	 /1+0GI!DIr"   r_   c                  :    e Zd ZU dZdZded<   	 dZded<   	 d	dZy)
	Componentz#Base class for Docutils components.NzClassVar[_Components | None]component_typer   rZ   	supportedc                    || j                   v S )z
        Is `format` supported by this component?

        To be used by transforms to ask the dependent component if it supports
        a certain input context or output format.
        )rk   )r   formats     r    supportszComponent.supportsN  s     ''r"   )rm   strr#   r$   )r%   r&   r'   r(   rj   r)   rk   rn   r   r"   r    ri   ri   C  s*    -37N07 ,.I(-G(r"   ri   )&r(   
__future__r   collectionsr   TYPE_CHECKINGcollections.abcr   typingr   r   r   r	   r
   docutils.nodesr   docutils.transformsr   _Componentsr?   ro   re   dict_OptionTupler1   _SettingsSpecTupler   __docformat____version____version_details__r-   __version_info__	ExceptionrP   rT   rV   r_   ri   r   r"   r    <module>r      s  
.` # "(>>&-IJKd3ic3h78LBCNc$hD(<"889c$hD(<"8$hD(<"89 	:c$hD(<"8$hD(<"8$hD(<"89 	:	;
H  #  2)*]LN 2)j 


  (y ' '  'Q Qh |(m (r"   