o
    ix                     @  s  U d Z ddlmZ dZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZmZ ddlmZmZ ddlmZmZ ddlmZ d	Zer}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# eej$gdf Z%de&d< G dd deZ'G dd deZ(G dd dZ)G dd deZ*G dd de*Z+G dd de*Z,G dd de*Z-d{d%d&Z.d|d(d)Z/d}d+d,Z0G d-d. d.eZ1d~d2d3Z2d4d5 Z3dd:d;Z4ddd>d?Z5ddEdFZ6ddJdKZ7	dddMdNZ8ddPdQZ9ddTdUZ:ddWdXZ;ddZd[Z<dd]d^Z=dd_d`Z>ddadbZ?ddddeZ@ddfdgZAdhdhdididididjZB	 ddldmZCddpdqZDddsdtZEdddwdxZFG dydz dzZGdS )z:
Miscellaneous utilities for the documentation utilities.
    )annotationsreStructuredTextN)PurePathPath)ApplicationError	DataError)ionodes)unescapeF)CallableSequenceIterable)AnyFinalLiteralTextIO)	TypeAlias)StrPath)Valuesr   _ObserverFuncc                   @  s   e Zd Zd
ddZd	S )SystemMessagesystem_messagenodes.system_messagelevelintreturnNonec                 C  s   t | |  || _d S N)	Exception__init__astextr   )selfr   r    r"   ]/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/docutils/utils/__init__.pyr   *   s   
zSystemMessage.__init__N)r   r   r   r   r   r   )__name__
__module____qualname__r   r"   r"   r"   r#   r   (   s    r   c                   @     e Zd ZdS )SystemMessagePropagationNr$   r%   r&   r"   r"   r"   r#   r(   0   s    r(   c                   @  s   e Zd ZU 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< dZ
ded< 				d?d@d$d%ZdAd(d)ZdAd*d+ZdBd.d/ZdCd3d4ZdDd5d6ZdDd7d8ZdDd9d:ZdDd;d<ZdDd=d>ZdS )EReporteraq  
    Info/warning/error reporter and ``system_message`` element generator.

    Five levels of system messages are defined, along with corresponding
    methods: `debug()`, `info()`, `warning()`, `error()`, and `severe()`.

    There is typically one Reporter object per process.  A Reporter object is
    instantiated with thresholds for reporting (generating warnings) and
    halting processing (raising exceptions), a switch to turn debug output on
    or off, and an I/O stream for warnings.  These are stored as instance
    attributes.

    When a system message is generated, its level is compared to the stored
    thresholds, and a warning or error is generated as appropriate.  Debug
    messages are produced if the stored debug switch is on, independently of
    other thresholds.  Message output is sent to the stored warning stream if
    not set to ''.

    The Reporter class also employs a modified form of the "Observer" pattern
    [GoF95]_ to track system messages generated.  The `attach_observer` method
    should be called before parsing, with a bound method or function which
    accepts system messages.  The observer can be removed with
    `detach_observer`, and another added in its place.

    .. [GoF95] Gamma, Helm, Johnson, Vlissides. *Design Patterns: Elements of
       Reusable Object-Oriented Software*. Addison-Wesley, Reading, MA, USA,
       1995.
    z9Callable[[int | None], tuple[StrPath | None, int | None]]get_source_and_line)DEBUGINFOWARNINGERRORSEVEREzFinal[Sequence[str]]levelsr   r   DEBUG_LEVEL   
INFO_LEVEL   WARNING_LEVEL   ERROR_LEVEL   SEVERE_LEVELNFbackslashreplacesourcer   report_levelr   
halt_levelstream5io.ErrorOutput | TextIO | str | Literal[False] | Nonedebugboolencoding
str | Noneerror_handlerstrr   r   c                 C  sp   || _ 	 || _	 || _	 || _	 || _	 t|tjs!t|||}|| _	 |p,t	|dd| _
	 g | _	 d| _dS )al  Low level instantiating. See also `new_reporter().`.

        :Parameters:
            - `source`: The path to or description of the source data.
            - `report_level`: The level at or above which warning output will
              be sent to `stream`.
            - `halt_level`: The level at or above which `SystemMessage`
              exceptions will be raised, halting execution.
            - `debug`: Show debug (level=0) system messages?
            - `stream`: Where warning output is sent.  Can be file-like (has a
              ``.write`` method), a string (file name, opened for writing),
              '' (empty string) or `False` (for discarding all stream messages)
              or `None` (implies `sys.stderr`; default).
            - `encoding`: The output encoding.
            - `error_handler`: The error handler for stderr output encoding.
        rC   asciiN)r<   rE   
debug_flagr=   r>   
isinstancer   ErrorOutputr?   getattrrC   	observers	max_level)r!   r<   r=   r>   r?   rA   rC   rE   r"   r"   r#   r   a   s(   zReporter.__init__observerr   c                 C  s   | j | dS )z
        The `observer` parameter is a function or bound method which takes one
        argument, a `nodes.system_message` instance.
        N)rM   appendr!   rO   r"   r"   r#   attach_observer   s   zReporter.attach_observerc                 C  s   | j | d S r   )rM   removerQ   r"   r"   r#   detach_observer   s   zReporter.detach_observermessager   c                 C  s   | j D ]}|| qd S r   )rM   )r!   rU   rO   r"   r"   r#   notify_observers   s   

zReporter.notify_observersr   kwargsr   c           	      O  sl  t |tr	t|}| }d|v r0t|d \}}|d= |dur&|d| |dur0|d| d|vr^z| |d\}}W n tyM   d\}}Y nw |durV||d< |dur^||d< |d| j	 t
j|g|R || j| d|}| jr|| jks| jr|| jks|| jkr| j| d  || jkrt|||| jks| jr| | t|| j| _|S )zs
        Return a system_message object.

        Raise an exception or generate a warning if appropriate.
        	base_nodeNr<   lineNN)r   type
)rJ   r   rF   copyget_source_line
setdefaultr+   getAttributeErrorr<   r	   r   r1   r?   r=   rI   r2   r>   writer    r   rV   maxrN   )	r!   r   rU   childrenrW   
attributesr<   rY   msgr"   r"   r#   r      sP   





zReporter.system_messagec                 O  s$   | j r| j| jg|R i |S dS )z
        Level-0, "DEBUG": an internal reporting issue.

        Typically, there is no effect on the processing. Level-0 system
        messages are handled separately from the others.
        N)rI   r   r2   r!   argsrW   r"   r"   r#   rA      s   zReporter.debugc                 O     | j | jg|R i |S )z
        Level-1, "INFO": a minor issue that can be ignored.

        Typically, there is no effect on processing and level-1 system
        messages are not reported.
        )r   r4   rg   r"   r"   r#   info      zReporter.infoc                 O  ri   )z
        Level-2, "WARNING": an issue that should be addressed.

        If ignored, there may be unpredictable problems with the output.
        )r   r6   rg   r"   r"   r#   warning      zReporter.warningc                 O  ri   )z{
        Level-3, "ERROR": an error that should be addressed.

        If ignored, the output will contain errors.
        )r   r8   rg   r"   r"   r#   error   rm   zReporter.errorc                 O  ri   )z
        Level-4, "SEVERE": a severe error that must be addressed.

        If ignored, the output will contain severe errors. Typically level-4
        system messages are turned into exceptions which halt processing.
        )r   r:   rg   r"   r"   r#   severe  rk   zReporter.severe)NFNr;   )r<   r   r=   r   r>   r   r?   r@   rA   rB   rC   rD   rE   rF   r   r   )rO   r   r   r   )rU   r   r   r   )r   r   rU   rF   rW   r   r   r   )rW   r   r   r   )r$   r%   r&   __doc____annotations__r1   r2   r4   r6   r8   r:   r   rR   rT   rV   r   rA   rj   rl   rn   ro   r"   r"   r"   r#   r*   4   s0   
 
<



4


	
r*   c                   @  r'   )ExtensionOptionErrorNr)   r"   r"   r"   r#   rr         rr   c                   @  r'   )BadOptionErrorNr)   r"   r"   r"   r#   rt     rs   rt   c                   @  r'   )BadOptionDataErrorNr)   r"   r"   r"   r#   ru     rs   ru   c                   @  r'   )DuplicateOptionErrorNr)   r"   r"   r"   r#   rv     rs   rv   
field_listnodes.field_listoptions_spec dict[str, Callable[object], Any]r   dict[str, Any]c                 C  s   t | }t||S )aC  
    Return a dictionary mapping extension option names to converted values.

    :Parameters:
        - `field_list`: A flat field list without field arguments, where each
          field body consists of a single paragraph only.
        - `options_spec`: Dictionary mapping known option names to a
          conversion function such as `int` or `float`.

    :Exceptions:
        - `KeyError` for unknown option names.
        - `ValueError` for invalid option values (raised by the conversion
           function).
        - `TypeError` for invalid option value types (raised by conversion
           function).
        - `DuplicateOptionError` for duplicate options.
        - `BadOptionError` for invalid fields.
        - `BadOptionDataError` for invalid option data (missing name,
          missing data, bad quotes, etc.).
    )extract_optionsassemble_option_dict)rw   ry   option_listr"   r"   r#   extract_extension_options  s   
r   list[tuple[str, str | None]]c                 C  s   g }| D ]^}t |d   dkrtdt|d   }|d }t |dkr-d}n.t |dksMt|d tjrMt |d dksMt|d d tj	sSt
d| |d d  }|||f q|S )a  
    Return a list of option (name, value) pairs from field names & bodies.

    :Parameter:
        `field_list`: A flat field list, where each field name is a single
        word and each field body consists of a single paragraph only.

    :Exceptions:
        - `BadOptionError` for invalid fields.
        - `BadOptionDataError` for invalid option data (missing name,
          missing data, bad quotes, etc.).
    r   r3   z:extension option field name may not contain multiple wordsNzMextension option field body may contain
a single paragraph only (option "%s"))lenr    splitrt   rF   lowerrJ   r	   	paragraphTextru   rP   )rw   r~   fieldnamebodydatar"   r"   r#   r|   -  s0   r|   r~   c                 C  s   i }| D ]>\}}|| }|du rt |||v rtd| z||||< W q ttfyB } z|d||d|jf d}~ww |S )aa  
    Return a mapping of option names to values.

    :Parameters:
        - `option_list`: A list of (name, value) pairs (the output of
          `extract_options()`).
        - `options_spec`: Dictionary mapping known option names to a
          conversion function such as `int` or `float`.

    :Exceptions:
        - `KeyError` for unknown option names.
        - `DuplicateOptionError` for duplicate options.
        - `ValueError` for invalid option values (raised by conversion
           function).
        - `TypeError` for invalid option value types (raised by conversion
           function).
    Nzduplicate option "%s"z(option: "%s"; value: %r)
%s )KeyErrorrv   
ValueError	TypeError	__class__joinrh   )r~   ry   optionsr   value	convertordetailr"   r"   r#   r}   Q  s    r}   c                   @  r'   )NameValueErrorNr)   r"   r"   r"   r#   r   t  rs   r   pathstr | bytes | NonerF   c                 C  s   t | tr| S | du rdS z| t d} W | S  ty&   td|  tyH   z
| dd} W Y | S  tyG   | dd} Y Y | S w w )z
    Ensure `path` is Unicode. Return `str` instance.

    Decode file/path string in a failsafe manner if not already done.

    Deprecated. Will be removed in Docutils 1.0.
    N strictz/`path` value must be a String or ``None``, not utf-8rG   replace)rJ   rF   decodesysgetfilesystemencodingra   r   UnicodeDecodeError)r   r"   r"   r#   decode_pathw  s(   
	r   c                 C  s^  g }| r|  d}|dkrtd| d|  }|dks|s#td| |d d  } | s7td| d	| d d
v r|  | d d}|dkrVtd| d| d  dt| |d krs| |d   rstd| d| d  d| d| }| |d d  } n|  d}|dkr| }d} n| d| }| |d d  } || |f | s|S )z
    Return a list of (name, value) from a line of the form "name=value ...".

    :Exception:
        `NameValueError` for invalid input (missing name, missing data, bad
        quotes, etc.).
    =rH   zmissing "="Nr   z!missing attribute name before "="r3   zmissing value after "z="z'"zattribute "z" missing end quote ()z" end quote (z) not followed by whitespacer   r   )findr   striplstripr   rP   r   )rY   attlistequals_indexattnameendquote_indexr   space_indexr"   r"   r#   extract_name_value  sD   



r   source_pathr   settingsr   c              	   C  s&   t | |j|j|j|j|j|jd}|S )z
    Return a new Reporter object.

    :Parameters:
        `source` : string
            The path to or description of the source text of the document.
        `settings` : optparse.Values object
            Runtime settings.
    )r?   rA   rC   rE   )r*   r=   r>   warning_streamrA   error_encodingerror_encoding_error_handler)r   r   reporterr"   r"   r#   new_reporter  s   

r   Values | Nonenodes.documentc                 C  sF   ddl m} |du r| }t| |}tj||| d}|| d |S )a  
    Return a new empty document object.

    :Parameters:
        `source_path` : str or pathlib.Path
            The path to or description of the source text of the document.
        `settings` : optparse.Values object
            Runtime settings.  If none are provided, a default core set will
            be used.  If you will use the document object with any Docutils
            components, you must provide their default settings as well.

            For example, if parsing rST, at least provide the rst-parser
            settings, obtainable as follows:

            Defaults for parser component::

                settings = docutils.frontend.get_default_settings(
                               docutils.parsers.rst.Parser)

            Defaults and configuration file customizations::

                settings = docutils.core.Publisher(
                    parser=docutils.parsers.rst.Parser).get_settings()

    r   )frontendN)r<   rH   )docutilsr   get_default_settingsr   r	   documentnote_source)r   r   r   r   r   r"   r"   r#   new_document  s   
r   r   nodes.paragraphkeyword_substitutions'Sequence[tuple[re.Pattern[[str], str]]]r   c                 C  sh   t | dkr.t| d tjr0| d }|D ]\}}||}|r-t|||| d<  d S qd S d S d S )Nr3   r   )r   rJ   r	   r   searchsub)r   r   textnodepatternsubstitutionmatchr"   r"   r#   clean_rcs_keywords  s   
r   r<   StrPath | Nonetargetc                 C  s   t j| p
t|dt j}t j|t j}|dd |dd kr+d|S |  |  |rS|rS|d |d krS|  |  |rS|rS|d |d ks?|  dgt	|d  | }d|S )a  
    Build and return a path to `target`, relative to `source` (both files).

    The return value is a `str` suitable to be included in `source`
    as a reference to `target`.

    :Parameters:
        `source` : path-like object or None
            Path of a file in the start directory for the relative path
            (the file does not need to exist).
            The value ``None`` is replaced with "<cwd>/dummy_file".
        `target` : path-like object
            End point of the returned relative path.

    Differences to `os.path.relpath()`:

    * Inverse argument order.
    * `source` is assumed to be a FILE in the start directory (add a "dummy"
      file name to obtain the path relative from a directory)
      while `os.path.relpath()` expects a DIRECTORY as `start` argument.
    * Always use Posix path separator ("/") for the output.
    * Use `os.sep` for parsing the input
      (changing the value of `os.sep` is ignored by `os.relpath()`).
    * If there is no common prefix, return the absolute path to `target`.

    Differences to `pathlib.PurePath.relative_to(other)`:

    * pathlib offers an object oriented interface.
    * `source` expects path to a FILE while `other` expects a DIRECTORY.
    * `target` defaults to the cwd, no default value for `other`.
    * `relative_path()` always returns a path (relative or absolute),
      while `PurePath.relative_to()` raises a ValueError
      if `target` is not a subpath of `other` (no ".." inserted).
    
dummy_fileNr5   /rH   z..r3   )
osr   abspathr[   r   sepr   reversepopr   )r<   r   source_partstarget_partspartsr"   r"   r#   relative_path  s"   #

r   relative_toc                 C  sD   t jdtdd | jr| jrJ d|du r| j}t|| jS | jS )u   
    Retrieve a stylesheet reference from the settings object.

    Deprecated. Will be removed in Docutils 1.0.
    Use get_stylesheet_list() instead to enable specification of multiple
    stylesheets as a comma-separated list.
    zqutils.get_stylesheet_reference() is obsoleted by utils.get_stylesheet_list() and will be removed in Docutils 2.0.r5   )
stacklevel6stylesheet and stylesheet_path are mutually exclusive.N)warningswarnDeprecationWarningstylesheet_path
stylesheetoutput_pathr   )r   r   r"   r"   r#   get_stylesheet_reference5  s   
r   	list[str]c                   s^    j r
 jr
J d jp j pg }t|ts!dd |dD } jr- fdd|D }|S )z@Retrieve list of stylesheet references from the settings object.r   c                 S  s   g | ]}|  qS r"   )r   .0r   r"   r"   r#   
<listcomp>^  s    z'get_stylesheet_list.<locals>.<listcomp>,c                   s   g | ]}t | jqS r"   )find_file_in_dirsstylesheet_dirsr   r   r"   r#   r   a  s    )r   r   rJ   listr   )r   stylesheetsr"   r   r#   get_stylesheet_listW  s   

r   dirsIterable[StrPath]c                 C  sN   t | } |  r|  S |D ]}t | |  }| r"|   S q|  S )z}
    Search for `path` in the list of directories `dirs`.

    Return the first expansion that matches an existing file.
    )r   is_absoluteas_posix
expanduserexists)r   r   dfr"   r"   r#   r   f  s   r   rB   c                 C  s&   |  dddu rt| dddkS | jS )z
    Return whether or not to trim footnote space.

    If trim_footnote_reference_space is not None, return it.

    If trim_footnote_reference_space is None, return False unless the
    footnote reference style is 'superscript'.
    trim_footnote_reference_spaceNfootnote_referencessuperscript)r_   rL   r   r   r"   r"   r#   get_trim_footnote_ref_spacev  s   	r   !tuple[StrPath | None, int | None]c                 C  s*   | r| j s| jr| j | jfS | j} | sdS )zk
    Return the "source" and "line" attributes from the `node` given or from
    its closest ancestor.
    rZ   )r<   rY   parent)noder"   r"   r#   r^     s   r^   textc                 C  sn   g }d}	 |  d|}|dkr|| |d  d|S || || d| |d |d	   f |d	 }q)
z;Return a string with escape-backslashes converted to nulls.r   T\rH   Nr    r3   r5   )r   rP   r   extend)r   r   startbs_indexr"   r"   r#   escape2null  s   
r   c                 C  s&   |  d}dd |D }ttj| S )zh
    Split `text` on escaped whitespace (null+space or null+newline).
    Return a list of strings.
    z  c                 S  s   g | ]}| d qS )z 
)r   )r   stringr"   r"   r#   r     s    z,split_escaped_whitespace.<locals>.<listcomp>)r   r   	itertoolschain)r   stringsr"   r"   r#   split_escaped_whitespace  s   
r   c                 C  s   d dd | D S )Nr   c                 s  s    | ]
}t |s|V  qd S r   unicodedata	combiningr   cr"   r"   r#   	<genexpr>  s    z(strip_combining_chars.<locals>.<genexpr>)r   r   r"   r"   r#   strip_combining_chars  s   r  	list[int]c                 C     dd t | D S )u   Return indices of all combining chars in  Unicode string `text`.

    >>> from docutils.utils import find_combining_chars
    >>> find_combining_chars('A t̆ab̆lĕ')
    [3, 6, 9]

    c                 S  s   g | ]\}}t |r|qS r"   r  r   ir  r"   r"   r#   r         z(find_combining_chars.<locals>.<listcomp>	enumerater  r"   r"   r#   find_combining_chars  s   r  c                 C  r
  )u   Indices of Unicode string `text` when skipping combining characters.

    >>> from docutils.utils import column_indices
    >>> column_indices('A t̆ab̆lĕ')
    [0, 1, 2, 4, 5, 7, 8]

    c                 S  s   g | ]\}}t |s|qS r"   r  r  r"   r"   r#   r     r  z"column_indices.<locals>.<listcomp>r  r  r"   r"   r#   column_indices  s   
r  r5   r3   )WFNaHNAr   c                 C  s&   t dd | D }|tt| 8 }|S )zqReturn the column width of text.

    Correct ``len(text)`` for wide East Asian and combining Unicode chars.
    c                 s  s    | ]
}t t| V  qd S r   )east_asian_widthsr  east_asian_widthr  r"   r"   r#   r    s    zcolumn_width.<locals>.<genexpr>)sumr   r  )r   widthr"   r"   r#   column_width  s
   r  Lr   c                 C  s$   g }| D ]}||vr| | q|S r   )rP   )r  ritemr"   r"   r#   uniq  s   
r   tagc                   sd   |   dd} tdd| } t| ddf  fddttddD }| 7 }|S )	aW  Return a list of normalized combinations for a `BCP 47` language tag.

    Example:

    >>> from docutils.utils import normalize_language_tag
    >>> normalize_language_tag('de_AT-1901')
    ['de-at-1901', 'de-at', 'de-1901', 'de']
    >>> normalize_language_tag('de-CH-x_altquot')
    ['de-ch-x-altquot', 'de-ch', 'de-x-altquot', 'de']

    -_z_([a-zA-Z0-9])_z_\1-r   c                   s,   g | ]}t |D ]	}d  | q
qS )r"  )r   combinationsr   )r   ntagsbase_tagsubtagsr"   r#   r     s    
z*normalize_language_tag.<locals>.<listcomp>rH   )	r   r   rer   r   r   r   ranger   )r!  taglistr"   r'  r#   normalize_language_tag  s   r-  rC   str | Literal['unicode'] | Nonec                 C  s.   | r|   dkrd|  d}nd}d| dS )z{Return an XML text declaration.

    Include an encoding declaration, if `encoding`
    is not 'unicode', '', or None.
    unicodez encoding=""r   z<?xml version="1.0"z?>
)r   )rC   encoding_declarationr"   r"   r#   xml_declaration   s   r2  c                   @  sH   e Zd ZdZ		ddd
dZdddZdddZdddZdddZdS )DependencyListz
    List of dependencies, with file recording support.

    Note that the output file is not automatically closed.  You have
    to explicitly call the close() method.
    Nr"   output_fileLiteral['-'] | StrPath | Nonedependenciesr   r   r   c                 C  s   |  | | j|  dS )z
        Initialize the dependency list, automatically setting the
        output file to `output_file` (see `set_output()`) and adding
        all supplied dependencies.

        If output_file is None, no file output is done when calling add().
        N)
set_outputadd)r!   r4  r6  r"   r"   r#   r     s   
zDependencyList.__init__c                 C  s8   |dkr	t j| _n|rt|ddd| _nd| _g | _dS )a  
        Set the output file and clear the list of already added
        dependencies.

        The specified file is immediately overwritten.

        If `output_file` is '-', the output will be written to stdout.
        The empty string or None stop output.
        r"  wr   )rC   N)r   stdoutfileopenr   r!   r4  r"   r"   r#   r7  $  s   


zDependencyList.set_outputpathsr   c                 G  sP   |D ]#}t |tr| }|| jvr%| j| | jdur%| j|d  qdS )z
        Append `path` to `self.list` unless it is already there.

        Also append to `self.file` unless it is already there
        or `self.file is `None`.
        Nr\   )rJ   r   r   r   rP   r;  rb   )r!   r>  r   r"   r"   r#   r8  6  s   


zDependencyList.addc                 C  s    | j tjur| j   d| _ dS )z(
        Close the output file.
        N)r;  r   r:  close)r!   r"   r"   r#   r?  E  s   

zDependencyList.closerF   c                 C  s8   z| j j}W n ty   d }Y nw d| jj|| jf S )Nz
%s(%r, %s))r;  r   ra   r   r$   r   r=  r"   r"   r#   __repr__M  s   zDependencyList.__repr__)Nr"   )r4  r5  r6  r   r   r   )r4  r5  r   r   )r>  r   r   r   )r   r   )r   rF   )	r$   r%   r&   rp   r   r7  r8  r?  r@  r"   r"   r"   r#   r3    s    


r3  )rw   rx   ry   rz   r   r{   )rw   rx   r   r   )r~   r   ry   rz   r   r{   )r   r   r   rF   )r   r   r   r   r   r*   r   )r   r   r   r   r   r   )r   r   r   r   r   r   )r<   r   r   r   r   rF   )r   r   r   r   r   rF   )r   r   r   r   )r   r   r   r   r   rF   )r   r   r   rB   )r   r   )r   rF   r   rF   )r   rF   r   r   )r   rF   r   r	  )r   rF   r   r   )r  r   r   r   )r!  rF   r   r   )rC   r.  r   rF   )Hrp   
__future__r   __docformat__r   r   os.pathr*  r   r  r   pathlibr   r   r   r   r   r   r	   docutils.nodesr
   TYPE_CHECKINGcollections.abcr   r   r   typingr   r   r   r   docutils.utils._typingr   r   docutils.frontendr   r   r   rq   r   r(   r*   rr   rt   ru   rv   r   r|   r}   r   r   r   r   r   r   r   r   r   r   r   r^   r   r   r  r  r  r  r  r   r-  r2  r3  r"   r"   r"   r#   <module>   s    Y


$#

*
%
8
"










