§
    /�ÄbS  ã                   óÊ  — d 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m	Z	 	  ej
        ¦   «         d         p ej        ¦   «         d         Ze                     ¦   «         Zn$# e$ rZdej        v rdZndZY dZ[ndZ[w dZY nxY w	  ej        e¦  «         n# eef$ r dZY nw xY w G d„ d	e¦  «        Z G d
„ de¦  «        Zd„ Zd„ Z G d„ de	¦  «        Z G d„ de	¦  «        Z G d„ d¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z  G d„ de¦  «        Z! G d „ d!e¦  «        Z" G d"„ d#e¦  «        Z#dS )$z
I/O classes provide a uniform API for low-level input and output.  Subclasses
exist for a variety of input/output mechanisms.
ÚreStructuredTexté    N)ÚTransformSpecé   zunknown locale: UTF-8úutf-8c                   ó   — e Zd ZdS )Ú
InputErrorN©Ú__name__Ú
__module__Ú__qualname__© ó    ú-/usr/lib/python3/dist-packages/docutils/io.pyr   r   0   ó   € € € € € € € r   r   c                   ó   — e Zd ZdS )ÚOutputErrorNr	   r   r   r   r   r   1   r   r   r   c                 óž   — 	 t          j        | j        ¦  «        t          j        |¦  «        k    S # t          t          t
          f$ r Y dS w xY w)aN  Test, whether the encoding of `stream` matches `encoding`.

    Returns

    :None:  if `encoding` or `stream.encoding` are not a valid encoding
            argument (e.g. ``None``) or `stream.encoding is missing.
    :True:  if the encoding argument resolves to the same value as `encoding`,
    :False: if the encodings differ.
    N)ÚcodecsÚlookupÚencodingÚLookupErrorÚAttributeErrorÚ	TypeError)Ústreamr   s     r   Úcheck_encodingr   4   sQ   € ðÝŒ}˜Vœ_Ñ-Ô-µ´¸xÑ1HÔ1HÒHÐHøÝ�­Ð3ð ð ð Øˆtˆtðøøøs   ‚.1 ±AÁAc                 ó$   — | j         j        › d| › �S )z5Return string representation of Exception `err`.
    z: )Ú	__class__r
   )Úerrs    r   Úerror_stringr   D   s   € ð ŒmÔ$Ð-Ð-¨Ð-Ð-Ð-r   c                   óœ   — e Zd ZdZdZdZ	 	 dd„Zd„ Zd„ Zd„ Z	 e
j        d	¦  «        Z	 ej        d
fej        dfej        dffZ	 d„ Zd„ ZdS )ÚInputz1
    Abstract base class for input wrappers.
    ÚinputNÚstrictc                 óp   — || _         	 || _        	 || _        	 || _        	 |s| j        | _        d | _        d S ©N)r   Úerror_handlerÚsourceÚsource_pathÚdefault_source_pathÚsuccessful_encoding)Úselfr'   r(   r   r&   s        r   Ú__init__zInput.__init__T   sM   € à ˆŒØ1à*ˆÔØ*àˆŒØ'à&ˆÔØ-àð 	8Ø#Ô7ˆDÔà#'ˆÔ ØEÐEr   c                 ó4   — | j         ›d| j        ›d| j        ›�S )Nz	: source=z, source_path=)r   r'   r(   ©r+   s    r   Ú__repr__zInput.__repr__h   s(   € Ø26´.°.°.À$Ä+À+À+Ø26Ô2BÐ2BðDð 	Dr   c                 ó   — t           ‚r%   ©ÚNotImplementedErrorr.   s    r   Úreadz
Input.readl   s   € Ý!Ð!r   c                 óÈ  — | j         r<| j                              ¦   «         dk    rt          |t          ¦  «        s
J d¦   «         ‚t          |t          ¦  «        r|S | j         r	| j         g}n_|                      |¦  «        }|r|g}nDdg}t
          r%t
          dk    r|                     t
          ¦  «         |                     d¦  «         |D ]W}	 t          ||| j        ¦  «        }|| _        | 	                    dd¦  «        c S # t          t          f$ r}|}Y d}~ŒPd}~ww xY wt          dd	                     d
„ |D ¦   «         ¦  «        › dt          |¦  «        › d�¦  «        ‚)aÄ  
        Decode `data` if required.

        Return Unicode `str` instances unchanged (nothing to decode).

        If `self.encoding` is None, determine encoding from data
        or try UTF-8, locale encoding, and (as last ressort) 'latin-1'.
        The client application should call ``locale.setlocale`` at the
        beginning of processing::

            locale.setlocale(locale.LC_ALL, '')

        Raise UnicodeError if unsuccessful.
        Úunicodez;input encoding is "unicode" but input is not a `str` objectr   zlatin-1u   ï»¿Ú Nz=Unable to decode input data.  Tried the following encodings: z, c              3   ó4   K  — | ]}t          |¦  «        V — Œd S r%   )Úrepr)Ú.0Úencs     r   ú	<genexpr>zInput.decode.<locals>.<genexpr>¦   s(   è è € ÐBÐB s�˜c™œÐBÐBÐBÐBÐBÐBr   ú.
(ú))r   ÚlowerÚ
isinstanceÚstrÚdetermine_encoding_from_dataÚ_locale_encodingÚappendr&   r*   ÚreplaceÚUnicodeErrorr   Újoinr   )r+   ÚdataÚencoding_candidatesÚdata_encodingr:   Údecodedr   Úerrors           r   ÚdecodezInput.decodeo   sÔ  € ð Œ=ð 	N˜Tœ]×0Ò0Ñ2Ô2°iÒ?Ð?Ý˜d¥CÑ(Ô(ð Nð Nð ,Mñ Nô Nð Nå�d�CÑ Ô ð 	àˆKØŒ=ð 	6ð $(¤= /ÐÐà ×=Ò=¸dÑCÔCˆMØð 6ð (5 oÐ#Ð#ð
 (/ iÐ#õ $ð AÕ(8¸GÒ(CÐ(CØ'×.Ò.Õ/?Ñ@Ô@Ð@à#×*Ò*¨9Ñ5Ô5Ð5Ø&ð 		ð 		ˆCðÝ˜d C¨Ô);Ñ<Ô<�Ø+.�Ô(ð —’ x°Ñ4Ô4Ð4Ð4Ð4øÝ ¥+Ð.ð ð ð à������øøøøðøøøõ ð'Ø�yŠyÐBÐBÐ.AÐBÑBÔBÑBÔBð'ð 'å˜UÑ#Ô#ð'ð 'ð 'ñ(ô (ð 	(s   Ã2DÄD!ÄDÄD!s   coding[:=]\s*([-\w.]+)r   z	utf-16-bez	utf-16-lec                 ó  — | j         D ]\  }}|                     |¦  «        r|c S Œ|                     ¦   «         dd…         D ]H}| j                             |¦  «        }|r*|                     d¦  «                             d¦  «        c S ŒIdS )z—
        Try to determine the encoding of `data` by looking *in* `data`.
        Check for a byte order mark (BOM) or an encoding declaration.
        Né   r   Úascii)Úbyte_order_marksÚ
startswithÚ
splitlinesÚcoding_slugÚsearchÚgrouprL   )r+   rG   Ústart_bytesr   ÚlineÚmatchs         r   rA   z"Input.determine_encoding_from_data³   s­   € ð &*Ô%:ð 	 ð 	 Ñ!ˆK˜Ø�Š˜{Ñ+Ô+ð  Ø���ð ð —O’OÑ%Ô% b q bÔ)ð 	6ð 	6ˆDØÔ$×+Ò+¨DÑ1Ô1ˆEØð 6Ø—{’{ 1‘~”~×,Ò,¨WÑ5Ô5Ð5Ð5Ð5ð6àˆtr   c                 óX   — 	 | j                              ¦   «         S # t          $ r Y dS w xY w©NF)r'   Úisattyr   r.   s    r   r[   zInput.isattyÃ   s=   € ð	Ø”;×%Ò%Ñ'Ô'Ð'øÝð 	ð 	ð 	Ø�5�5ð	øøøó   ‚ ›
)¨)©NNNr#   )r
   r   r   Ú__doc__Úcomponent_typer)   r,   r/   r3   rL   ÚreÚcompilerS   r   ÚBOM_UTF8ÚBOM_UTF16_BEÚBOM_UTF16_LErP   rA   r[   r   r   r   r!   r!   J   sÜ   € € € € € ðð ð €NàÐà?CØ'ðFð Fð Fð Fð(Dð Dð Dð"ð "ð "ð8(ð 8(ð 8(ðt �"”*Ð7Ñ8Ô8€KØ'àœ¨'Ð2ØÔ,¨kÐ:ØÔ,¨kÐ:ð=Ðð-ðð ð ð ð ð ð ð r   r!   c                   ó8   — e Zd ZdZdZdZ	 	 d	d„Zd„ Zd„ Zd„ Z	dS )
ÚOutputz2
    Abstract base class for output wrappers.
    ÚoutputNr#   c                 ój   — || _         	 |pd| _        	 || _        	 || _        	 |s| j        | _        d S d S )Nr#   )r   r&   ÚdestinationÚdestination_pathÚdefault_destination_path)r+   ri   rj   r   r&   s        r   r,   zOutput.__init__Ô   sX   € à ˆŒØ7à*Ð6¨hˆÔØ*à&ˆÔØ.à 0ˆÔØ2àð 	BØ$(Ô$AˆDÔ!Ð!Ð!ð	Bð 	Br   c                 ó4   — | j         ›d| j        ›d| j        ›�S )Nz: destination=z, destination_path=)r   ri   rj   r.   s    r   r/   zOutput.__repr__å   s*   € à”>�>�> 4Ô#3Ð#3Ð#3°TÔ5JÐ5JðLð 	Mr   c                 ó   — t           ‚)z;`data` is a Unicode string, to be encoded by `self.encode`.r1   ©r+   rG   s     r   ÚwritezOutput.writeé   s   € å!Ð!r   c                 óú   — | j         r>| j                              ¦   «         dk    r!t          |t          ¦  «        s
J d¦   «         ‚|S t          |t          ¦  «        s|S |                     | j         | j        ¦  «        S )Nr5   zFthe encoding given is "unicode" but the output is not a Unicode string)r   r>   r?   r@   Úencoder&   rn   s     r   rq   zOutput.encodeí   s‡   € ØŒ=ð 	˜Tœ]×0Ò0Ñ2Ô2°iÒ?Ð?Ý˜d¥CÑ(Ô(ð $ð $ð#ñ$ô $ð $ð ˆKÝ˜$¥Ñ$Ô$ð 	BàˆKà—;’;˜tœ}¨dÔ.@ÑAÔAÐAr   r]   )
r
   r   r   r^   r_   rk   r,   r/   ro   rq   r   r   r   rf   rf   Ê   s~   € € € € € ðð ð €Nà#Ðà:>Ø.6ðBð Bð Bð Bð"Mð Mð Mð"ð "ð "ð
Bð 
Bð 
Bð 
Bð 
Br   rf   c                   ó2   — e Zd ZdZ	 	 	 d	d„Zd„ Zd„ Zd„ ZdS )
ÚErrorOutputz’
    Wrapper class for file-like error streams with
    failsafe de- and encoding of `str`, `bytes`, `unicode` and
    `Exception` instances.
    NÚbackslashreplacerD   c                 óê   — |€t           j        }n*|sd}n%t          |t          ¦  «        rt	          |d¦  «        }|| _        	 |pt          |dd¦  «        pt          pd| _        	 || _	        	 || _
        dS )a›  
        :Parameters:
            - `destination`: a file-like object,
                        a string (path to a file),
                        `None` (write to `sys.stderr`, default), or
                        evaluating to `False` (write() requests are ignored).
            - `encoding`: `destination` text encoding. Guessed if None.
            - `encoding_errors`: how to treat encoding errors.
        NFÚwr   rO   )ÚsysÚstderrr?   r@   Úopenri   ÚgetattrrB   r   Úencoding_errorsÚdecoding_errors)r+   ri   r   r{   r|   s        r   r,   zErrorOutput.__init__  s—   € ð ÐÝœ*ˆKˆKØð 	1ØˆKˆKå˜¥SÑ)Ô)ð 	1Ý˜{¨CÑ0Ô0ˆKà&ˆÔØ+à!ð 8¥W¨[¸*ÀdÑ%KÔ%Kð 8Ý,ð8Ø07ð 	Œà,à.ˆÔØ%à.ˆÔØ%Ð%r   c                 óÈ  — | j         sdS t          |t          ¦  «        rt          |¦  «        }	 | j                              |¦  «         dS # t
          $ r< | j                              |                     | j        | j        ¦  «        ¦  «         Y dS t          $ rÈ t          |t          ¦  «        r;| j                              |                     | j        | j        ¦  «        ¦  «         Y dS | j         t          j        t          j        fv r"| j         j                             |¦  «         Y dS | j                              t          || j        | j        ¦  «        ¦  «         Y dS w xY w)z›
        Write `data` to self.destination. Ignore, if self.destination is False.

        `data` can be a `bytes`, `str`, or `Exception` instance.
        N)ri   r?   Ú	Exceptionr@   ro   ÚUnicodeEncodeErrorrq   r   r{   r   rw   rx   ÚstdoutÚbufferr|   rn   s     r   ro   zErrorOutput.write"  s·  € ð Ôð 	ØˆFÝ�d�IÑ&Ô&ð 	Ý�t‘9”9ˆDð	BØÔ×"Ò" 4Ñ(Ô(Ð(Ð(Ð(øÝ!ð 	Fð 	Fð 	FØÔ×"Ò" 4§;¢;¨t¬}Ø/3Ô/Cñ$Eô $Eñ Fô Fð Fð Fð Fð Fåð 		Bð 		Bð 		BÝ˜$¥Ñ$Ô$ð BØÔ ×&Ò& t§{¢{°4´=Ø37Ô3Gñ(Iô (Iñ Jô Jð Jð Jð Jð JàÔ!¥c¤jµ#´*Ð%=Ð=Ð=àÔ Ô'×-Ò-¨dÑ3Ô3Ð3Ð3Ð3Ð3àÔ ×&Ò&¥s¨4°´Ø+/Ô+?ñ(Aô (Añ Bô Bð Bð Bð Bð Bð		Bøøøs%   ¯A ÁAE!ÂAE!Ã)>E!Ä*3E!Å E!c                 óž   — | j         t          j        t          j        fv rdS 	 | j                              ¦   «          dS # t
          $ r Y dS w xY w)z–
        Close the error-output stream.

        Ignored if the destination is` sys.stderr` or `sys.stdout` or has no
        close() method.
        N)ri   rw   r€   rx   Úcloser   r.   s    r   rƒ   zErrorOutput.close<  sb   € ð Ô¥¤
­C¬JÐ7Ð7Ð7ØˆFð	ØÔ×"Ò"Ñ$Ô$Ð$Ð$Ð$øÝð 	ð 	ð 	ØˆDˆDð	øøøs   £> ¾
AÁAc                 óX   — 	 | j                              ¦   «         S # t          $ r Y dS w xY wrZ   )ri   r[   r   r.   s    r   r[   zErrorOutput.isattyJ  s>   € ð	ØÔ#×*Ò*Ñ,Ô,Ð,øÝð 	ð 	ð 	Ø�5�5ð	øøør\   )NNrt   rD   )r
   r   r   r^   r,   ro   rƒ   r[   r   r   r   rs   rs   ú   sn   € € € € € ðð ð 37Ø!3Ø!*ð&ð &ð &ð &ðBBð Bð Bð4ð ð ðð ð ð ð r   rs   c                   ó2   — e Zd ZdZ	 	 	 d
d„Zd„ Zd„ Zd	„ ZdS )Ú	FileInputz5
    Input for single, simple file-like objects.
    Nr#   TÚrc                 ó  — t                                | ||||¦  «         || _        t          ¦   «         | _        |€g|rS	 t          ||| j        pd| j        ¬¦  «        | _        n€# t          $ r }t          |j        |j        |¦  «        ‚d}~ww xY wt          j        | _        nAt          | j        | j        ¦  «        du r%t!          d| j        ›d| j        j        ›d�¦  «        ‚|s%	 | j        j        | _        dS # t&          $ r Y dS w xY wdS )aƒ  
        :Parameters:
            - `source`: either a file-like object (which is read directly), or
              `None` (which implies `sys.stdin` if no `source_path` given).
            - `source_path`: a path to a file, which is opened and then read.
            - `encoding`: the expected text encoding of the input file.
            - `error_handler`: the encoding error handler to use.
            - `autoclose`: close automatically after read (except when
              `sys.stdin` is the source).
            - `mode`: how the file is to be opened (see standard function
              `open`). The default is read only ('r').
        Nz	utf-8-sig©r   ÚerrorsFz#Encoding clash: encoding given is "z&" but source is opened with encoding "z".)r!   r,   Ú	autoclosers   Ú_stderrry   r   r&   r'   ÚOSErrorr   ÚerrnoÚstrerrorrw   Ústdinr   rE   Únamer(   r   )r+   r'   r(   r   r&   r‹   ÚmoderK   s           r   r,   zFileInput.__init__V  sT  € õ 	�Š�t˜V [°(¸MÑJÔJÐJØ"ˆŒÝ"‘}”}ˆŒàˆ>Øð (ðOÝ"& {°DØ04´Ð0LÀØ.2Ô.@ð#Bñ #Bô #B�D”K�Køõ ð Oð Oð OÝ$ U¤[°%´.À+ÑNÔNÐNøøøøðOøøøõ "œi�”�Ý˜DœK¨¬Ñ7Ô7¸5Ð@Ð@å�,à $¤  ¨t¬{Ô/CÐ/CÐ/Cð Eñ Fô Fð Fð ð 	ðØ#'¤;Ô#3�Ô Ð Ð øÝ!ð ð ð Ø��ðøøøð	ð 	s)   ¾$A# Á#
BÁ-BÂBÃ&C9 Ã9
DÄDc                 ó^  — 	 | j         t          j        u r| j         j                             ¦   «         }n| j                              ¦   «         }nd# t
          t          f$ rP | j        sE| j        r>t          | j        d¦  «        }|                     ¦   «         }| 
                    ¦   «          n‚ Y nw xY w| j        r|  
                    ¦   «          n!# | j        r|  
                    ¦   «          w w xY w|                      |¦  «        }d                     |                     ¦   «         dgz   ¦  «        S )zU
        Read and decode a single file and return the data (Unicode string).
        Úrbú
r6   )r'   rw   r�   r�   r3   rE   r   r   r(   ry   rƒ   r‹   rL   rF   rR   )r+   rG   Úb_sources      r   r3   zFileInput.read~  s%  € ð	ØŒ{�cœiÐ'Ð'à”{Ô)×.Ò.Ñ0Ô0��à”{×'Ò'Ñ)Ô)�øøÝ�kÐ*ð 	ð 	ð 	Ø”=ð  TÔ%5ð å Ô 0°$Ñ7Ô7�Ø—}’}‘”�Ø—’Ñ Ô Ð Ð àð !Ð ð	øøøð Œ~ð Ø—
’
‘”�øøð Œ~ð Ø—
’
‘”��ðøøøà�{Š{˜4Ñ Ô ˆà�yŠy˜ŸšÑ*Ô*¨B¨4Ñ/Ñ0Ô0Ð0s+   ‚AA ÁC ÁAB/Â,C Â.B/Â/C ÃC,c                 óP   — |                       ¦   «                              d¦  «        S )zK
        Return lines of a single file as list of Unicode strings.
        T)r3   rR   r.   s    r   Ú	readlineszFileInput.readlines—  s    € ð �yŠy‰{Œ{×%Ò% dÑ+Ô+Ð+r   c                 ób   — | j         t          j        ur| j                              ¦   «          d S d S r%   )r'   rw   r�   rƒ   r.   s    r   rƒ   zFileInput.close�  s3   € ØŒ;�cœiÐ'Ð'ØŒK×ÒÑÔÐÐÐð (Ð'r   )NNNr#   Tr‡   )r
   r   r   r^   r,   r3   r˜   rƒ   r   r   r   r†   r†   Q  sk   € € € € € ðð ð 15Ø.6Ø&)ð&ð &ð &ð &ðP1ð 1ð 1ð2,ð ,ð ,ð ð  ð  ð  ð  r   r†   c                   ó8   — e Zd ZdZdZ	 	 	 	 d
d„Zd„ Zd„ Zd	„ ZdS )Ú
FileOutputz6
    Output for single, simple file-like objects.
    rv   Nr#   Tc                 óø  — t                                | ||||¦  «         d| _        || _        |�t	          j        dt          d¬¦  «         |�|| _        t          ¦   «         | _	        |€|rd| _        n`t          j        | _        nN|rLt          | j        d¦  «        r7|| j        j        k    r't          d| j        j        ›d	|›d
�| j	        ¬¦  «         |s%	 | j        j        | _        dS # t"          $ r Y dS w xY wdS )aA  
        :Parameters:
            - `destination`: either a file-like object (which is written
              directly) or `None` (which implies `sys.stdout` if no
              `destination_path` given).
            - `destination_path`: a path to a file, which is opened and then
              written.
            - `encoding`: the text encoding of the output file.
            - `error_handler`: the encoding error handler to use.
            - `autoclose`: close automatically after write (except when
              `sys.stdout` or `sys.stderr` is the destination).
            - `handle_io_errors`: ignored, deprecated, will be removed.
            - `mode`: how the file is to be opened (see standard function
              `open`). The default is 'w', providing universal newline
              support for text files.
        TNz_io.FileOutput: init argument "handle_io_errors" is ignored and will be removed in Docutils 2.0.rN   )Ú
stacklevelFr’   zWarning: Destination mode "z" differs from specified mode "ú")Úfile)rf   r,   Úopenedr‹   ÚwarningsÚwarnÚDeprecationWarningr’   rs   rŒ   rw   r€   ri   ÚhasattrÚprintr‘   rj   r   )r+   ri   rj   r   r&   r‹   Úhandle_io_errorsr’   s           r   r,   zFileOutput.__init__®  sT  € õ& 	�Š˜˜kÐ+;Ø  -ñ	1ô 	1ð 	1àˆŒØ"ˆŒØÐ'ÝŒMð *å+=È!ðMñ Mô Mð Mð ÐØˆDŒIÝ"‘}”}ˆŒØÐØð .Ø#�”�å#&¤:�Ô Ð àð	%Ý˜tÔ/°Ñ8Ô8ð	%à˜$Ô*Ô/Ò/Ð/ÝˆEØ!%Ô!1Ô!6Ð!6Ð!6¸¸¸ð>à”|ð%ñ %ô %ð %ð  ð 	ðØ(,Ô(8Ô(=�Ô%Ð%Ð%øÝ!ð ð ð Ø��ðøøøð	ð 	s   ÃC) Ã)
C7Ã6C7c                 óì   — d| j         vr| j        | j        dœ}ni }	 t          | j        | j         fi |¤Ž| _        n2# t          $ r%}t          |j        |j	        | j        ¦  «        ‚d }~ww xY wd| _
        d S )NÚbr‰   T)r’   r   r&   ry   rj   ri   r�   r   rŽ   r�   r    )r+   ÚkwargsrK   s      r   ry   zFileOutput.openÝ  s¢   € à�d”iÐÐØ"&¤-Ø $Ô 2ð4ð 4ˆFˆFð ˆFð	5Ý# DÔ$9¸4¼9ÐOÐOÈÐOÐOˆDÔÐøÝð 	5ð 	5ð 	5Ý˜eœk¨5¬>Ø"Ô3ñ5ô 5ð 5øøøøð	5øøøð ˆŒˆˆs   �; »
A*Á A%Á%A*c                 ó¦  — | j         s|                      ¦   «          d| j        vrot          | j        | j        ¦  «        du rS|                      |¦  «        }t          j        dk    r.| 	                    dt          t          j        d¦  «        ¦  «        }	 | j                             |¦  «         nä# t          $ r›}t          |t          ¦  «        r|	 | j        j                             |¦  «         n[# t          $ rN t          | j        | j        ¦  «        du r/t!          d| j        pd›d| j        j        ›d	| j        ›d
�¦  «        ‚|‚w xY wY d}~nDd}~wt$          t&          f$ r-}t%          d| j        ›dt)          |¦  «        ›d
�¦  «        ‚d}~ww xY w| j        r|                      ¦   «          n!# | j        r|                      ¦   «          w w xY w|S )zÐEncode `data`, write it to a single file, and return it.

        With Python 3 or binary output mode, `data` is returned unchanged,
        except when specified encoding and output encoding differ.
        r¨   Fr•   ó   
rO   zEncoding of ri   z (z&) differs 
  from specified encoding (r=   Nz2Unable to encode output data. output-encoding is: r<   )r    ry   r’   r   ri   r   rq   ÚosÚlineseprD   Úbytesro   r   r?   r�   r   Ú
ValueErrorrj   rE   r   r   r‹   rƒ   )r+   rG   r   s      r   ro   zFileOutput.writeë  s  € ð Œ{ð 	Ø�IŠI‰KŒKˆKØ�t”yÐ Ð Ý˜tÔ/°´Ñ?Ô?À5ÐHÐHØ—;’;˜tÑ$Ô$ˆDÝŒz˜TÒ!Ð!à—|’| E­5µ´¸WÑ+EÔ+EÑFÔF�ð	ØÔ×"Ò" 4Ñ(Ô(Ð(Ð(øÝð 	"ð 	"ð 	"Ý˜$¥Ñ&Ô&ð "ð"ØÔ$Ô+×1Ò1°$Ñ7Ô7Ð7Ð7øÝ%ð 
"ð 
"ð 
"Ý% dÔ&6Ø&*¤mñ5ô 5Ø8=ð>ð >å(˜jð "Ô2ÐC°mÐCÐCØ!Ô-Ô6Ð6Ð6Ø!œ]˜]˜]ð	,ñ-ô -ð -ð "˜	ð
"øøøøøøøøøøøøõ �kÐ*ð 	Bð 	Bð 	BÝ�,à#œ}˜}˜}­l¸3Ñ.?Ô.?Ð.?Ð.?ðAñBô Bð Bøøøøð	Bøøøð
 Œ~ð Ø—
’
‘”�øøð Œ~ð Ø—
’
‘”��ðøøøàˆsU   ÂB0 Â/F0 Â0
FÂ:EÃC0Ã/EÃ0AEÅEÅF0 ÅFÅ$(FÆFÆF0 Æ0Gc                 óˆ   — | j         t          j        t          j        fvr"| j                              ¦   «          d| _        d S d S rZ   )ri   rw   r€   rx   rƒ   r    r.   s    r   rƒ   zFileOutput.close  sA   € ØÔ¥C¤Jµ´
Ð#;Ð;Ð;ØÔ×"Ò"Ñ$Ô$Ð$ØˆDŒKˆKˆKð <Ð;r   )NNNr#   TNN)	r
   r   r   r^   r’   r,   ry   ro   rƒ   r   r   r   r›   r›   ¢  sv   € € € € € ðð ð €DØ)ð
 ;?ØBFØ-1ð-ð -ð -ð -ð^ð ð ð&ð &ð &ðP ð  ð  ð  ð  r   r›   c                   ó   — e Zd ZdZdZdS )ÚBinaryFileOutputzL
    A version of docutils.io.FileOutput which writes to a binary file.
    ÚwbN)r
   r   r   r^   r’   r   r   r   r²   r²     s   € € € € € ðð ð
 €D€D€Dr   r²   c                   ó   — e Zd ZdZdZd„ ZdS )ÚStringInputz
    Direct string input.
    ú<string>c                 ó6   — |                       | j        ¦  «        S )z$Decode and return the source string.)rL   r'   r.   s    r   r3   zStringInput.read*  s   € à�{Š{˜4œ;Ñ'Ô'Ð'r   N©r
   r   r   r^   r)   r3   r   r   r   rµ   rµ   "  s5   € € € € € ðð ð %Ðð(ð (ð (ð (ð (r   rµ   c                   ó   — e Zd ZdZdZd„ ZdS )ÚStringOutputz
    Direct string output.
    r¶   c                 óD   — |                       |¦  «        | _        | j        S )z=Encode `data`, store it in `self.destination`, and return it.)rq   ri   rn   s     r   ro   zStringOutput.write7  s   € àŸ;š; tÑ,Ô,ˆÔØÔÐr   N©r
   r   r   r^   rk   ro   r   r   r   rº   rº   /  s5   € € € € € ðð ð  *Ðð ð  ð  ð  ð  r   rº   c                   ó   — e Zd ZdZdZd„ ZdS )Ú	NullInputz)
    Degenerate input: read nothing.
    z
null inputc                 ó   — dS )zReturn a null string.r6   r   r.   s    r   r3   zNullInput.readE  s   € àˆrr   Nr¸   r   r   r   r¾   r¾   =  s5   € € € € € ðð ð 'Ððð ð ð ð r   r¾   c                   ó   — e Zd ZdZdZd„ ZdS )Ú
NullOutputz+
    Degenerate output: write nothing.
    znull outputc                 ó   — dS )z6Do nothing ([don't even] send data to the bit bucket).Nr   rn   s     r   ro   zNullOutput.writeR  s   € àˆr   Nr¼   r   r   r   rÁ   rÁ   J  s5   € € € € € ðð ð  -Ððð ð ð ð r   rÁ   c                   ó   — e Zd ZdZdZd„ ZdS )ÚDocTreeInputzm
    Adapter for document tree input.

    The document tree must be passed in the ``source`` parameter.
    zdoctree inputc                 ó   — | j         S )zReturn the document tree.)r'   r.   s    r   r3   zDocTreeInput.reada  s
   € àŒ{Ðr   Nr¸   r   r   r   rÄ   rÄ   W  s5   € € € € € ðð ð *Ððð ð ð ð r   rÄ   )$r^   Ú__docformat__r   Úlocaler¬   r`   rw   r¡   Údocutilsr   Ú	getlocaleÚgetdefaultlocalerB   r>   r¯   rK   Úargsr   r   r   r�   r   r   r   r   r!   rf   rs   r†   r›   r²   rµ   rº   r¾   rÁ   rÄ   r   r   r   ú<module>rÌ      s�  ðð
ð ð
 #€à €€€Ø €€€Ø 	€	€	€	Ø 	€	€	€	Ø 
€
€
€
Ø €€€à "Ð "Ð "Ð "Ð "Ð "ðà'�vÔ'Ñ)Ô)¨!Ô,ÐLÐ0G°Ô0GÑ0IÔ0IÈ!Ô0LÐØ'×-Ò-Ñ/Ô/ÐÐøØð  ð  ð  ð  %¤*Ð,Ð,Ø"ÐÐàÐøøøøøøøøøðØÐÐÐøøøðØ€F„MÐ"Ñ#Ô#Ð#Ð#øØ�YÐð ð ð ØÐÐÐðøøøð  Ð Ð Ð Ð �Ñ Ô Ð Ø  Ð  Ð  Ð  Ð  �'Ñ  Ô  Ð  ðð ð ð .ð .ð .ð}ð }ð }ð }ð }ˆMñ }ô }ð }ð@-Bð -Bð -Bð -Bð -Bˆ]ñ -Bô -Bð -Bð`Tð Tð Tð Tð Tñ Tô Tð TðnN ð N ð N ð N ð N �ñ N ô N ð N ðbt ð t ð t ð t ð t �ñ t ô t ð t ðnð ð ð ð �zñ ô ð ð
(ð 
(ð 
(ð 
(ð 
(�%ñ 
(ô 
(ð 
(ð ð  ð  ð  ð  �6ñ  ô  ð  ð
ð 
ð 
ð 
ð 
�ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
�ñ 
ô 
ð 
ðð ð ð ð �5ñ ô ð ð ð s)   ¤>A# Á#BÁ(A;Á;BÂB Â	B%Â$B%