
    @R<ix                         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<    edd      D  cg c]
  }  e|        c} Zej                         D ]
  \  ZZeee<     edd      D  cg c]  } d| z  	 c}  edd      D  cg c]
  }  e|        c} z    edd      D  cg c]  } d| z  	 c} z   Z	ej                         D ]
  \  ZZee	e<    [[d Z
 ej                  d      Zd Zyc c} w c c} w c c} w c c} w )zEncoding related utilities.    Nz\t	   z\n
   z\r   z\""   z\''   z\\\          z\%03o   c                     t        | t              }|r|r| j                  t              S |rt        nd |rdj                  fd| D              S dj                  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 N )xs    ^/var/www/html/delta-backend/venv/lib/python3.12/site-packages/google/protobuf/text_encoding.py<lambda>zCEscape.<locals>.<lambda>M   s    q      c              3   <   K   | ]  }t          |           y wr   )_cescape_unicode_to_str.0cord_s     r   	<genexpr>zCEscape.<locals>.<genexpr>O   s     B*473B   c              3   <   K   | ]  }t          |           y wr   )_cescape_byte_to_strr   s     r   r   zCEscape.<locals>.<genexpr>P   s     =1%d1g.=r   )
isinstancestr	translate_cescape_chr_to_symbol_mapordjoin)textas_utf8text_is_unicoder   s      @r   CEscaper(   8   s\    " tS)/>>455[$77BTBBB	==	==r   z"(\\+)x([0-9a-fA-F])(?![0-9a-fA-F])c                     d }t         j                  ||       }|j                  d      j                  d      j                  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        | j                  d            dz  r&| j                  d      dz   | j                  d      z   S | j                  d      S )N   x0   r   )lengroup)ms    r   
ReplaceHexzCUnescape.<locals>.ReplaceHex`   sF     1771:WWQZ$++771:r   zutf-8unicode_escaperaw_unicode_escape)_CUNESCAPE_HEXsubencodedecode)r%   r1   results      r   	CUnescaper9   V   sB     j$/&
--
 6"#6&')r   )__doc__rer"   rangechrr   itemsbytestringr   r(   compiler4   r9   )is   0r   <module>rC      sM  > " 	  % 1 !& 2 !& 2 !& 2 !& 2 !& 2  ,1C=9a3q69 .446 )LD&"($) 05Q|<!A<).r38AQ89/4S#?!A?@  /446 &LD&%t&&>6 AB)W :
 =8?s   C,,C1C6#C;