Unicode escape sequence decoder

Decodes Unicode escape sequences "\uXXXX" into readable text with support for UTF-16 surrogate pairs.
Example: "\u0441\u0442\u0440\u043E\u043A\u0430" → "строка".

Unicode escape sequences are used to encode characters in the format \uXXXX, where XXXX is a hexadecimal Unicode code point. This method is commonly used in JSON, JavaScript, Python, and other programming languages to represent characters that are not available in the standard ASCII table.

For example, \uD83D\uDE80 corresponds to the emoji 🚀 (rocket), while \u041F\u0440\u0438\u0432\u0435\u0442 decodes into the text "Привет".

UTF-16 uses surrogate pairs (\uD800-\uDFFF) to represent characters with code points exceeding 0xFFFF. This is essential for working with the extended Unicode table, which includes emojis, mathematical symbols, and ideographs.

Decoding such sequences restores the original text representation, correctly displaying Cyrillic, special characters, and complex symbols in their usual form.