
    Opf                        d Z ddlZi Zded<   ded<   ded<   d	ed
<   ded<   ded<   d  edd          D             Ze                                D ]
\  ZZeee<   d  edd          D             d  edd          D             z   d  edd          D             z   Ze                                D ]
\  ZZeee<   [[de	fdZ
 ej        d          Zde	defdZdS )zEncoding related utilities.    Nz\t	   z\n
   z\r   z\""   z\''   z\\\   c                 ,    g | ]}t          |          S  chr.0is     ]/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/google/protobuf/text_encoding.py
<listcomp>r      s    999a3q66999       c                     g | ]}d |z  S z\%03or
   r   s     r   r   r      s    <<<!A<<<r       c                 ,    g | ]}t          |          S r
   r   r   s     r   r   r      s    888AQ888r      c                     g | ]}d |z  S r   r
   r   s     r   r   r      s    ???!A???r   returnc                 
   t          | t                    }|r|r|                     t                    S |rt          nd |r!d                    fd| D                       S d                    fd| D                       S )am  Escape a bytes string for use in an text protocol buffer.

  Args:
    text: A byte string to be escaped.
    as_utf8: Specifies if result may contain non-ASCII characters.
        In Python 3 this allows unescaped non-ASCII Unicode characters.
        In Python 2 the return value will be valid UTF-8 rather than only ASCII.
  Returns:
    Escaped string (str).
  c                     | S Nr
   )xs    r   <lambda>zCEscape.<locals>.<lambda>5   s    q r    c              3   D   K   | ]}t            |                   V  d S r   )_cescape_unicode_to_strr   cord_s     r   	<genexpr>zCEscape.<locals>.<genexpr>7   s1      BB*44773BBBBBBr   c              3   D   K   | ]}t            |                   V  d S r   )_cescape_byte_to_strr#   s     r   r&   zCEscape.<locals>.<genexpr>8   s1      ==1%dd1gg.======r   )
isinstancestr	translate_cescape_chr_to_symbol_mapordjoin)textas_utf8text_is_unicoder%   s      @r   CEscaper2   !   s      tS))/ 6 6>>4555	0[[$ C77BBBBTBBBBBB	=======	=	==r   z"(\\+)x([0-9a-fA-F])(?![0-9a-fA-F])r/   c                     d }t                               ||           }|                    d                              d                              d          S )zUnescape a text string with C-style escape sequences to UTF-8 bytes.

  Args:
    text: The data to parse in a str.
  Returns:
    A byte string.
  c                     t          |                     d                    dz  r.|                     d          dz   |                     d          z   S |                     d          S )N   x0   r   )lengroup)ms    r   
ReplaceHexzCUnescape.<locals>.ReplaceHexG   sU     1771:: ,WWQZZ$++771::r   zutf-8unicode_escaperaw_unicode_escape)_CUNESCAPE_HEXsubencodedecode)r/   r;   results      r   	CUnescaperC   >   sX       j$//&
--
 
 6"##6&'')r   )__doc__rer,   ranger"   itemsbytestringr(   r*   r2   compiler>   bytesrC   r
   r   r   <module>rL      s   " ! 				  % 1 !& 2 !& 2 !& 2 !& 2 !& 2  :955C==999 .4466 ) )LD&"($ =<uuQ||<<<88r38889??uuS#???@  /4466 & &LD&%t&>c > > > >4 ABB)C )E ) ) ) ) ) )r   