Ë
    ®'Þeð&  ã                   ó0   — d dl Z d dlZddlmZmZmZ dd„Zy)é    Né   )Ú	HTML2TextÚ__version__Úconfigc            
      óÆ  — d}  G d„ d«      }t        j                  «       }|j                  ddt        j                  d¬«       |j                  dd	d
t        j
                  d¬«       |j                  dddt        j                  d¬«       |j                  ddd
t        j                  d¬«       |j                  ddd
t        j                  d¬«       |j                  ddd
t        j                  d¬«       |j                  dddt        j                  d¬«       |j                  ddd
t        j                  d¬«       |j                  d d
d!t        j                  d"¬#«       |j                  d$d%d
t        j                  d&¬«       |j                  d'd(d
t        j                  d)¬«       |j                  d*d+d
t        j                  d,¬«       |j                  d-d.d
t        j                   d/¬«       |j                  d0d1d
t        j"                  d2¬«       |j                  d3d4d
d5d6d7¬#«       |j                  d8d9d
d:d6d;¬#«       |j                  d<d=d
d>d6d?¬#«       |j                  d@dAdBt$        t        j&                  dC¬D«       |j                  dEdFdGt$        t        j(                  dH¬D«       |j                  dIdJd
dKd6dL¬#«       |j                  dMd
dNd6dO¬#«       |j                  dPd
dQt        j*                  dR¬#«       |j                  dSd
dTt        j,                  dU¬#«       |j                  dVd
dWt        j.                  dX¬#«       |j                  dYd
dZt        j0                  d[¬#«       |j                  d\dd]t        j2                  d^¬#«       |j                  d_dd`t        j4                  da¬#«       |j                  dbd
dct        j6                  dd¬#«       |j                  ded
dft        j8                  dg¬#«       |j                  dhdit        j:                  dj¬«       |j                  dkdlt        j<                  dm¬«       |j                  dndot        j>                  dp¬«       |j                  dqdrdsjA                  tC        tD        tF        «      «      ¬t«       |j                  dudv¬w«       |j                  dxdvdy¬z«       |j                  d{d|d
t        jH                  d}¬«       |jK                  «       }|jL                  r?|jL                  d~k7  r0tO        |jL                  d«      5 }|jQ                  «       }d d d «       n(tR        jT                  jV                  jQ                  «       }	 jY                  |jZ                  |j\                  «      }ti        | ¬„«      }	|jj                  rd~|	_6        |jn                  rd…|	_8        d†|	_9        |jt                  |	_:        |jv                  |	_<        |jz                  |	_=        |j|                  |	_>        |j~                  |	_?        |j€                  |	_@        |j‚                  |	_A        |j„                  |	_B        |j†                  |	_C        |jˆ                  |	_D        |jŠ                  |	_E        |jŒ                  |	_F        |jŽ                  |	_G        |j�                  |	_H        |j’                  |	_I        |j”                  |	_J        |j–                  |	_K        |j˜                  |	_L        |jš                  |	_M        |jœ                  |	_N        |jž                  |	_O        |j                   |	_P        |j¢                  |	_Q        |j¤                  |	_R        |j¦                  |	_S        |j¨                  |	_T        |jª                  |	_U        |j¬                  |	_V        |j®                  |	_W        |j°                  |	_X        tR        j²                  jµ                  |	j·                  |«      «       y # 1 sw Y   �Œ—xY w# t^        $ rU}|j`                  d€z   |jb                  z   }|d�|jd                  z   z  }|d‚|jb                  z   dƒz   z  }tg        |«       |‚d }~ww xY w)‡NÚ c                   ó,   — e Zd ZdZdZdZdZdZdZdZ	dZ
y	)
úmain.<locals>.bcolorsz[95mz[94mz[92mz[93mz[91mz[0mz[1mz[4mN)Ú__name__Ú
__module__Ú__qualname__ÚHEADERÚOKBLUEÚOKGREENÚWARNINGÚFAILÚENDCÚBOLDÚ	UNDERLINE© ó    ú//usr/lib/python3/dist-packages/html2text/cli.pyÚbcolorsr
   
   s*   „ ØˆØˆØˆØˆØˆØˆØˆØ‰	r   r   z--default-image-altÚdefault_image_altz3The default alt string for images with missing ones)ÚdestÚdefaultÚhelpz--pad-tablesÚ
pad_tablesÚ
store_truez-pad the cells to equal column width in tables)r   Úactionr   r   z--no-wrap-linksÚ
wrap_linksÚstore_falsez"don't wrap links during conversionz--wrap-list-itemsÚwrap_list_itemsz!wrap list items during conversionz--wrap-tablesÚwrap_tableszwrap tablesz--ignore-emphasisÚignore_emphasisz)don't include any formatting for emphasisz--reference-linksÚinline_linksz1use reference style links instead of inline linksz--ignore-linksÚignore_linksz&don't include any formatting for linksz--ignore-mailto-linksÚignore_mailto_linkszdon't include mailto: links)r    r   r   r   z--protect-linksÚprotect_linkszCprotect links from line breaks surrounding them with angle bracketsz--ignore-imagesÚignore_imagesz'don't include any formatting for imagesz--images-as-htmlÚimages_as_htmlzWAlways write image tags as raw html; preserves `height`, `width` and `alt` if possible.z--images-to-altÚimages_to_altz&Discard image data, only keep alt textz--images-with-sizeÚimages_with_sizezMWrite image tags with height and width attrs as raw html to retain dimensionsz-gz--google-docÚ
google_docFz(convert an html-exported Google Documentz-dz--dash-unordered-listÚul_style_dashz6use a dash rather than a star for unordered list itemsz-ez--asterisk-emphasisÚem_style_asteriskz=use an asterisk rather than an underscore for emphasized textz-bz--body-widthÚ
body_widthz3number of characters per output line, 0 for no wrap)r   Útyper   r   z-iz--google-list-indentÚlist_indentz,number of pixels Google indents nested listsz-sz--hide-strikethroughÚhide_strikethroughzDhide strike-through text. only relevant when -g is specified as wellz--escape-allÚescape_snobzbEscape all special characters.  Output is less readable, but avoids corner case formatting issues.z--bypass-tablesÚbypass_tablesz2Format tables in HTML rather than Markdown syntax.z--ignore-tablesÚignore_tableszAIgnore table-related tags (table, th, td, tr) while keeping rows.z--single-line-breakÚsingle_line_breakzhUse a single line break after a block element rather than two line breaks. NOTE: Requires --body-width=0z--unicode-snobÚunicode_snobzUse unicode throughout documentz--no-automatic-linksÚuse_automatic_linksz.Do not use automatic links wherever applicablez--no-skip-internal-linksÚskip_internal_linkszDo not skip internal linksz--links-after-paraÚlinks_each_paragraphz2Put links after each paragraph instead of documentz--mark-codeÚ	mark_codez.Mark program code blocks with [code]...[/code]z--decode-errorsÚdecode_errorszZWhat to do in case of decode errors.'ignore', 'strict' and 'replace' are acceptable valuesz--open-quoteÚ
open_quotez!The character used to open quotesz--close-quoteÚclose_quotez"The character used to close quotesz	--versionÚversionú.)r    rA   Úfilenameú?)ÚnargsÚencodingzutf-8)rE   r   z--include-sup-subÚinclude_sup_subzInclude the sup and sub tagsú-ÚrbzWarning:z	 Use the z--decode-errors=ignorez flag.)ÚbaseurlÚ*Ú__)\ÚargparseÚArgumentParserÚadd_argumentr   ÚDEFAULT_IMAGE_ALTÚ
PAD_TABLESÚ
WRAP_LINKSÚWRAP_LIST_ITEMSÚWRAP_TABLESÚIGNORE_EMPHASISÚINLINE_LINKSÚIGNORE_ANCHORSÚIGNORE_MAILTO_LINKSÚPROTECT_LINKSÚIGNORE_IMAGESÚIMAGES_AS_HTMLÚIMAGES_TO_ALTÚIMAGES_WITH_SIZEÚintÚ
BODY_WIDTHÚGOOGLE_LIST_INDENTÚBYPASS_TABLESÚIGNORE_TABLESÚSINGLE_LINE_BREAKÚUNICODE_SNOBÚUSE_AUTOMATIC_LINKSÚSKIP_INTERNAL_LINKSÚLINKS_EACH_PARAGRAPHÚ	MARK_CODEÚDECODE_ERRORSÚ
OPEN_QUOTEÚCLOSE_QUOTEÚjoinÚmapÚstrr   ÚINCLUDE_SUP_SUBÚ
parse_argsrC   ÚopenÚreadÚsysÚstdinÚbufferÚdecoderF   r>   ÚUnicodeDecodeErrorr   r   r   Úprintr   r/   Úul_item_markr0   Úemphasis_markÚstrong_markr1   r3   Úgoogle_list_indentr%   r'   r(   r)   r*   r+   r,   r-   r.   r4   r5   r6   r7   r8   r&   r9   r:   r;   r<   r=   r!   r#   r$   r   r   r?   r@   rG   ÚstdoutÚwriteÚhandle)
rJ   r   ÚpÚargsÚfpÚdataÚhtmlÚerrÚwarningÚhs
             r   Úmainrˆ      sG  € Ø€G÷ñ ô 	×ÑÓ!€AØ‡N�NØØ Ü×(Ñ(ØBð	 ô ð ‡N�NØØØÜ×!Ñ!Ø<ð ô ð ‡N�NØØØÜ×!Ñ!Ø1ð ô ð ‡N�NØØØÜ×&Ñ&Ø0ð ô ð ‡N�NØØØÜ×"Ñ"Øð ô ð ‡N�NØØØÜ×&Ñ&Ø8ð ô ð ‡N�NØØØÜ×#Ñ#Ø@ð ô ð ‡N�NØØØÜ×%Ñ%Ø5ð ô ð ‡N�NØØØ"Ü×*Ñ*Ø*ð ô ð ‡N�NØØØÜ×$Ñ$ØRð ô ð ‡N�NØØØÜ×$Ñ$Ø6ð ô ð ‡N�NØØØÜ×%Ñ%ð!ð ô 	ð ‡N�NØØØÜ×$Ñ$Ø5ð ô ð ‡N�NØØØÜ×'Ñ'ðð ô 	ð ‡N�NØØØØØØ7ð ô ð ‡N�NØØØØØØEð ô ð ‡N�NØØØØ ØØLð ô ð ‡N�NØØØÜÜ×!Ñ!ØBð ô ð ‡N�NØØØÜÜ×)Ñ)Ø;ð ô ð ‡N�NØØØØ!ØØVð ô ð ‡N�NØØØØð-ð ô 	ð ‡N�NØØØÜ×$Ñ$ØAð ô ð ‡N�NØØØÜ×$Ñ$ØSð ô ð ‡N�NØØØ Ü×(Ñ(ð4ð ô 	ð ‡N�NØØØÜ×#Ñ#Ø.ð ô ð ‡N�NØØØ"Ü×*Ñ*Ø=ð ô ð ‡N�NØ"ØØ"Ü×*Ñ*Ø)ð ô ð ‡N�NØØØ#Ü×+Ñ+ØAð ô ð ‡N�NØØØÜ× Ñ Ø=ð ô ð ‡N�NØØÜ×$Ñ$ð ð ô ð ‡N�NØØÜ×!Ñ!Ø0ð	 ô ð ‡N�NØØÜ×"Ñ"Ø1ð	 ô ð ‡N�NØ˜I¨s¯x©x¼¼CÄÓ8MÓ/Nð ô ð ‡N�N�: S€NÔ)Ø‡N�N�: S°'€NÔ:Ø‡N�NØØØÜ×&Ñ&Ø+ð ô ð �<‰<‹>€Dà‡}‚}˜Ÿ™¨#Ò-Ü�$—-‘- Ó&ð 	¨"Ø—7‘7“9ˆD÷	ð 	ô �y‰y×Ñ×$Ñ$Ó&ˆðØ�{‰{˜4Ÿ=™=¨$×*<Ñ*<Ó=ˆô 	˜'Ô"€Aà×ÒØˆŒØ×ÒØˆŒØˆŒà—?‘?€A„LØ×+Ñ+€AÔØ×,Ñ,€AÔØ×&Ñ&€A„NØ ×4Ñ4€AÔØ×(Ñ(€A„OØ×(Ñ(€A„OØ×*Ñ*€AÔØ×(Ñ(€A„OØ×.Ñ.€AÔØ—?‘?€A„LØ×2Ñ2€AÔØ×$Ñ$€A„MØ×(Ñ(€A„OØ×(Ñ(€A„OØ×0Ñ0€AÔØ×&Ñ&€A„NØ×&Ñ&€A„NØ ×4Ñ4€AÔØ ×4Ñ4€AÔØ!×6Ñ6€AÔØ—.‘.€A„KØ—?‘?€A„LØ×,Ñ,€AÔØ×$Ñ$€A„MØ—?‘?€A„LØ×0Ñ0€AÔØ—?‘?€A„LØ×$Ñ$€A„MØ×,Ñ,€AÔä‡J�J×Ñ�Q—X‘X˜d“^Õ$÷k	ñ 	ûô ò Ø—/‘/ JÑ.°·±Ñ=ˆØ�; §¡Ñ0Ñ0ˆØÐ+¨g¯l©lÑ:¸XÑEÑEˆÜˆgŒØˆ	ûðús%   Ô&_5Õ)&` ß5_?à	a àAaáa )ÚreturnN)rM   rs   r   r   r   r   rˆ   r   r   r   ú<module>rŠ      s   ðÛ Û 
ç ,Ñ ,ôC%r   