o
    3Ihz                     @   s>   d Z ddlmZ ddlmZ dededefdd	Zh d
ZdS )z&
Process escaped chars and hardbreaks
   )
isStrSpace   )StateInlinestatesilentreturnc                 C   s>  | j }| j}| j| dkrdS |d7 }||krdS | j| }t|}|dkrN|s/| ddd |d7 }||k rI| j| }t|sAn|d7 }||k s7|| _ dS | j| }|d	kr||d
kr||d |k r|| j|d  }t|}	|	dkr||	dkr|||7 }|d7 }d| }
|s| ddd}|tv r|n|
|_|
|_d|_	|d | _ dS )z%Process escaped chars and hardbreaks.\Fr   
	hardbreakbr    Ti   i  i   i  text_special escape)
posposMaxsrcordpushr   _ESCAPEDcontentmarkupinfo)r   r   r   maximumch1ch1_ordch
escapedStrch2ch2_ordorigStrtoken r"   _/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/markdown_it/rules_inline/escape.pyr      sH   



r   >    *._{}!"#$%&'()+,-/:;<=>?@[r   ]^`|~N)__doc__common.utilsr   state_inliner   boolr   r   r"   r"   r"   r#   <module>   s
    3