
    }c(                        U d Z ddlZddlmZ g dZg dZg dZi Zeee	f         e
d<   i Zeee	f         e
d<   i Zeee	f         e
d	<   i Zeee	f         e
d
<   i Zeee	f         e
d<   dde	de	de	fdZdde	de	de	fdZde	de	fdZddZdS )zTeX escaping helper.    N)Dict))$z\$)%z\%)&z\&)#z\#)_\_){z\{)}z\})\z\textbackslash{})~z\textasciitilde{})^z\textasciicircum{})[z{[})]z{]})u   ✓z\(\checkmark\))u   ✔z\(\pmb{\checkmark}\))u   ✕z
\(\times\))u   ✖z\(\pmb{\times}\))u   ﻿z{})u   ⎽r	   )u   ℯe)u   ⅈi))-\sphinxhyphen{})'z\textquotesingle{})`z\textasciigrave{})<z\textless{})>z\textgreater{}))   ¶z\P{})   §z\S{})u   €z\texteuro{})u   ∞z
\(\infty\))   ±z\(\pm\))u   →\(\rightarrow\))u   ‣r   )u   –z\textendash{})u   ⁰z\(\sp{\text{0}}\))   ¹z\(\sp{\text{1}}\))   ²z\(\sp{\text{2}}\))   ³z\(\sp{\text{3}}\))u   ⁴z\(\sp{\text{4}}\))u   ⁵z\(\sp{\text{5}}\))u   ⁶z\(\sp{\text{6}}\))u   ⁷z\(\sp{\text{7}}\))u   ⁸z\(\sp{\text{8}}\))u   ⁹z\(\sp{\text{9}}\))u   ₀z\(\sb{\text{0}}\))u   ₁z\(\sb{\text{1}}\))u   ₂z\(\sb{\text{2}}\))u   ₃z\(\sb{\text{3}}\))u   ₄z\(\sb{\text{4}}\))u   ₅z\(\sb{\text{5}}\))u   ₆z\(\sb{\text{6}}\))u   ₇z\(\sb{\text{7}}\))u   ₈z\(\sb{\text{8}}\))u   ₉z\(\sb{\text{9}}\)tex_replace_map_tex_escape_map_tex_escape_map_without_unicode_tex_hlescape_map!_tex_hlescape_map_without_unicodeslatex_enginereturnc                 r    |dv r|                      t                    S |                      t                    S )zEscape text for LaTeX output.lualatexxelatex)	translater"   r!   r%   r&   s     5lib/python3.11/site-packages/sphinx/util/texescape.pyescaper/   g   s5    .. ,{{:;;;{{?+++    c                 r    |dv r|                      t                    S |                      t                    S )z"Escape text for LaTeX highlighter.r)   )r,   r$   r#   r-   s     r.   hlescaper2   p   s6    .. .{{<==={{,---r0   textc                 .    t          j        dd|           S )zAAdjust spacing after abbreviations. Works with @ letter or other.z
\.(?=\s|$)z.\@{})resub)r3   s    r.   escape_abbrr7   y   s    6-4000r0   c                  ^   t           D ]J\  } }|t          t          |           <   |t          t          |           <   dt          t          |           <   Kt
          D ]\  } }|t          t          |           <   dt          t          d          <   t          D ]3\  } }|t          t          |           <   dt          t          |           <   4t           D ]8\  } }| dv r
|t          t          |           <   |t          t          |           <   9t          D ]\  } }|t          t          |           <   d S )Nr   r   r   z[]{}\)	tex_replacementsr!   ordr"   r    ascii_tex_replacementsunicode_tex_replacementsr#   r$   )abs     r.   initr?   ~   s3     & &1"#A23'A/"%A ' $ $1"#A 1C#CHH-( & &1"#A"%A  6 61= 	$%#a&&!45)#a&&11( & &1$%#a&&!!& &r0   )N)r'   N)__doc__r5   typingr   r9   r;   r<   r    intstr__annotations__r!   r"   r#   r$   r/   r2   r7   r?    r0   r.   <module>rF      sz      				         B   "      N #%c3h $ $ $"$c3h $ $ $24 c3h 4 4 4$& 4S> & & &46 !4S> 6 6 6, ,c , , , , , ,. . .3 .# . . . .1c 1c 1 1 1 1
& & & & & &r0   