/* Generated by Cython 3.2.5 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "define_macros": [
            [
                "CYTHON_CLINE_IN_TRACEBACK",
                "0"
            ],
            [
                "CYTHON_USE_TYPE_SPECS",
                "1"
            ]
        ],
        "include_dirs": [
            "/usr/include/libxml2",
            "src",
            "src/lxml/includes"
        ],
        "name": "lxml.html._difflib",
        "sources": [
            "src/lxml/html/_difflib.py"
        ]
    },
    "module_name": "lxml.html._difflib"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
  #if !defined(CYTHON_LIMITED_API)
  #define CYTHON_LIMITED_API 1
  #endif
#elif defined(CYTHON_LIMITED_API)
  #ifdef _MSC_VER
  #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
  #else
  #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
  #endif
#endif

#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x03080000
    #error Cython requires Python 3.8+.
#else
#define __PYX_ABI_VERSION "3_2_5"
#define CYTHON_HEX_VERSION 0x030205F0
#define CYTHON_FUTURE_DIVISION 1
/* CModulePreamble */
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 1
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 1
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #if PY_VERSION_HEX < 0x03090000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00)
  #endif
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_NUM >= 0x07031100)
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 1
  #endif
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #ifdef Py_GIL_DISABLED
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1
  #else
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #endif
  #if PY_VERSION_HEX < 0x030A0000
    #undef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #elif !defined(CYTHON_USE_TYPE_SLOTS)
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLIST_INTERNALS)
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL 0
  #elif !defined(CYTHON_FAST_GIL)
    #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_SYS_MONITORING
    #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000
    #undef CYTHON_IMMORTAL_CONSTANTS
    #define CYTHON_IMMORTAL_CONSTANTS 0  // definitely won't work
  #elif !defined(CYTHON_IMMORTAL_CONSTANTS)
    #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
#endif
#ifndef CYTHON_COMPRESS_STRINGS
  #define CYTHON_COMPRESS_STRINGS 1
#endif
#ifndef CYTHON_FAST_PYCCALL
#define CYTHON_FAST_PYCCALL  CYTHON_FAST_PYCALL
#endif
#ifndef CYTHON_VECTORCALL
#if CYTHON_COMPILING_IN_LIMITED_API
#define CYTHON_VECTORCALL  (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
#else
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL)
#endif
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#include <stdint.h>
typedef uintptr_t  __pyx_uintptr_t;
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif
#ifndef Py_UNREACHABLE
  #define Py_UNREACHABLE()  assert(0); abort()
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x03090000)
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))

/* CInitCode */
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

/* PythonCompatibility */
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    #ifndef CO_OPTIMIZED
    static int CO_OPTIMIZED;
    #endif
    #ifndef CO_NEWLOCALS
    static int CO_NEWLOCALS;
    #endif
    #ifndef CO_VARARGS
    static int CO_VARARGS;
    #endif
    #ifndef CO_VARKEYWORDS
    static int CO_VARKEYWORDS;
    #endif
    #ifndef CO_ASYNC_GENERATOR
    static int CO_ASYNC_GENERATOR;
    #endif
    #ifndef CO_GENERATOR
    static int CO_GENERATOR;
    #endif
    #ifndef CO_COROUTINE
    static int CO_COROUTINE;
    #endif
#else
    #ifndef CO_COROUTINE
      #define CO_COROUTINE 0x80
    #endif
    #ifndef CO_ASYNC_GENERATOR
      #define CO_ASYNC_GENERATOR 0x200
    #endif
#endif
static int __Pyx_init_co_variables(void);
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE 0
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING 0
#endif
#ifndef Py_TPFLAGS_IMMUTABLETYPE
  #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8)
#endif
#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION
  #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7)
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#ifndef METH_FASTCALL
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#if PY_VERSION_HEX >= 0x030900B1
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_CheckExact(func)
#else
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_Check(func)
#endif
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if PY_VERSION_HEX < 0x03090000 || (CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno))
#elif CYTHON_COMPILING_IN_GRAAL
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) _PyFrame_SetLineNumber((frame), (lineno))
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#endif
#if CYTHON_USE_MODULE_STATE
static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o)
#else
#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global)
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype)
#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype)
#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype)
  #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL)
  #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype)
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\
    ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\
     (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\
     __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL)
  #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype)
  #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype)
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
#endif
#define __Pyx_PyObject_GetIterNextFunc(iterator)  __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc)
#if CYTHON_USE_TYPE_SPECS
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#else
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         ((int)PyUnicode_KIND(u))
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains)
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#elif CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_TYPE(obj, &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
enum __Pyx_ReferenceSharing {
  __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check
  __Pyx_ReferenceSharing_OwnStrongReference,
  __Pyx_ReferenceSharing_FunctionArgument,
  __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar
};
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\
    (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\
      (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\
      (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0)))
#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1)
#else
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0)
#endif
#if CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
  #else
    #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i)
  #endif
#elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #else
    #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i))
  #endif
#else
  #define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i))
#endif
#if CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !CYTHON_COMPILING_IN_LIMITED_API && CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) (__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
    __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i))
#else
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) __Pyx_PyList_GetItemRef(o, i)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyObject_GetItem(dict, key);
  if (*result == NULL) {
    if (PyErr_ExceptionMatches(PyExc_KeyError)) {
      PyErr_Clear();
      return 0;
    }
    return -1;
  }
  return 1;
}
#else
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyDict_GetItemWithError(dict, key);
  if (*result == NULL) {
    return PyErr_Occurred() ? -1 : 0;
  }
  Py_INCREF(*result);
  return 1;
}
#endif
#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST
  #define __Pyx_VISIT_CONST(obj)  Py_VISIT(obj)
#else
  #define __Pyx_VISIT_CONST(obj)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i)
#endif
#if CYTHON_ASSUME_SAFE_SIZE
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o)
#else
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString)
  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t
#define __Pyx_PyLong_AsHash_t   __Pyx_PyIndex_AsSsize_t
#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    #define __Pyx_PySendResult PySendResult
#else
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } __Pyx_PySendResult;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3
  typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
#else
  #define __Pyx_pyiter_sendfunc sendfunc
#endif
#if !CYTHON_USE_AM_SEND
#define __PYX_HAS_PY_AM_SEND 0
#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#define __PYX_HAS_PY_AM_SEND 1
#else
#define __PYX_HAS_PY_AM_SEND 2  // our own backported implementation
#endif
#if __PYX_HAS_PY_AM_SEND < 2
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
        __Pyx_pyiter_sendfunc am_send;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s))
#endif
#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21)
#else
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (0)
#endif
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyInterpreterState_Get() PyInterpreterState_Get()
#else
#define __Pyx_PyInterpreterState_Get() PyThreadState_Get()->interp
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000
#ifdef __cplusplus
extern "C"
#endif
PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) {
    int value;
    PyObject *py_value = PyObject_GetAttrString(inspect, name);
    if (!py_value) return 0;
    value = (int) PyLong_AsLong(py_value);
    Py_DECREF(py_value);
    *write_to = value;
    return value != -1 || !PyErr_Occurred();
}
static int __Pyx_init_co_variables(void) {
    PyObject *inspect;
    int result;
    inspect = PyImport_ImportModule("inspect");
    result =
#if !defined(CO_OPTIMIZED)
        __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) &&
#endif
#if !defined(CO_NEWLOCALS)
        __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) &&
#endif
#if !defined(CO_VARARGS)
        __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) &&
#endif
#if !defined(CO_VARKEYWORDS)
        __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) &&
#endif
#if !defined(CO_ASYNC_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) &&
#endif
#if !defined(CO_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) &&
#endif
#if !defined(CO_COROUTINE)
        __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) &&
#endif
        1;
    Py_DECREF(inspect);
    return result ? 0 : -1;
}
#else
static int __Pyx_init_co_variables(void) {
    return 0;  // It's a limited API-only feature
}
#endif

/* MathInitCode */
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #ifndef _USE_MATH_DEFINES
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0
#endif
#ifndef CYTHON_CLINE_IN_TRACEBACK
#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#endif
#if CYTHON_CLINE_IN_TRACEBACK
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; __pyx_clineno = __LINE__; (void) __pyx_clineno; }
#else
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; }
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__lxml__html___difflib
#define __PYX_HAVE_API__lxml__html___difflib
/* Early includes */
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifdef CYTHON_FREETHREADING_COMPATIBLE
#if CYTHON_FREETHREADING_COMPATIBLE
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED
#endif
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AS_STRING(s)
#else
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s)
#endif
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef)
    return Py_NewRef(obj);
#else
    Py_INCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef)
    return Py_XNewRef(obj);
#else
    Py_XINCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b);
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x)
#else
#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x)
#endif
#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x))
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_Sign(x)  (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_Sign(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_Sign(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_Sign(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL)
#else
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
/* PretendToInitialize */
#ifdef __cplusplus
#if __cplusplus > 201103L
#include <type_traits>
#endif
template <typename T>
static void __Pyx_pretend_to_initialize(T* ptr) {
#if __cplusplus > 201103L
    if ((std::is_trivially_default_constructible<T>::value))
#endif
        *ptr = T();
    (void)ptr;
}
#else
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
#endif


#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * const __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* #### Code section: filename_table ### */

static const char* const __pyx_f[] = {
  "src/lxml/html/_difflib.py",
  "<stringsource>",
};
/* #### Code section: utility_code_proto_before_types ### */
/* Atomics.proto (used by UnpackUnboundCMethod) */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __pyx_atomic_int_type int
#define __pyx_nonatomic_int_type int
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__))
    #include <stdatomic.h>
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)))
    #include <atomic>
#endif
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__) &&\
                       ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type atomic_int
    #define __pyx_atomic_ptr_type atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) atomic_load(value)
    #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C atomics"
    #endif
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\
                    ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type std::atomic_int
    #define __pyx_atomic_ptr_type std::atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) std::atomic_load(value)
    #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C++ atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C++ atomics"
    #endif
#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\
                    (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2))))
    #define __pyx_atomic_ptr_type void*
    #define __pyx_nonatomic_ptr_type void*
    #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1)
    #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER)
    #include <intrin.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type long
    #define __pyx_atomic_ptr_type void*
    #undef __pyx_nonatomic_int_type
    #define __pyx_nonatomic_int_type long
    #define __pyx_nonatomic_ptr_type void*
    #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer)
    #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1)
    #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0)
    #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value
    #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif

/* CriticalSectionsDefinition.proto (used by CriticalSections) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection void*
#define __Pyx_PyCriticalSection2 void*
#define __Pyx_PyCriticalSection_End(cs)
#define __Pyx_PyCriticalSection2_End(cs)
#else
#define __Pyx_PyCriticalSection PyCriticalSection
#define __Pyx_PyCriticalSection2 PyCriticalSection2
#define __Pyx_PyCriticalSection_End PyCriticalSection_End
#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End
#endif

/* CriticalSections.proto (used by ParseKeywordsImpl) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs)
#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs)
#else
#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin
#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin
#endif
#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_BEGIN_CRITICAL_SECTION(o) {
#define __Pyx_END_CRITICAL_SECTION() }
#else
#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION
#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION
#endif

/* IncludeStructmemberH.proto (used by FixUpExtensionType) */
#include <structmember.h>

/* #### Code section: numeric_typedefs ### */
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher;
struct __pyx_defaults;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper;
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore;
struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self;
struct __pyx_opt_args_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match;

/* "lxml/html/_difflib.pxd":22
 *                    ahi=Py_ssize_t, bhi=Py_ssize_t,
 *                    i=Py_ssize_t, j=Py_ssize_t, k=Py_ssize_t)
 *     cdef find_longest_match(self, Py_ssize_t alo=*, ahi_=*, Py_ssize_t blo=*, bhi_=*)             # <<<<<<<<<<<<<<
 * 
 *     @cython.locals(
*/
struct __pyx_opt_args_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match {
  int __pyx_n;
  Py_ssize_t alo;
  PyObject *ahi_;
  Py_ssize_t blo;
  PyObject *bhi_;
};

/* "lxml/html/_difflib.pxd":6
 * cdef double _calculate_ratio(Py_ssize_t matches, Py_ssize_t length)
 * 
 * cdef class SequenceMatcher:             # <<<<<<<<<<<<<<
 *     cdef public object a
 *     cdef public object b
*/
struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher {
  PyObject_HEAD
  struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *__pyx_vtab;
  PyObject *a;
  PyObject *b;
  PyObject *b2j;
  PyObject *fullbcount;
  PyObject *matching_blocks;
  PyObject *opcodes;
  PyObject *isjunk;
  PyObject *bjunk;
  PyObject *bpopular;
  int autojunk;
};


/* "lxml/html/_difflib.py":1335
 *         yield line.encode('ascii', 'surrogateescape')
 * 
 * def ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK):             # <<<<<<<<<<<<<<
 *     r"""
 *     Compare `a` and `b` (lists of strings); return a `Differ`-style delta.
*/
struct __pyx_defaults {
  PyObject_HEAD
  PyObject *arg0;
};


/* "lxml/html/_difflib.py":566
 *         return answer
 * 
 *     def get_grouped_opcodes(self, n=3):             # <<<<<<<<<<<<<<
 *         """ Isolate change clusters by eliminating ranges with no changes.
 * 
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes {
  PyObject_HEAD
  PyObject *__pyx_v_codes;
  PyObject *__pyx_v_group;
  PyObject *__pyx_v_i1;
  PyObject *__pyx_v_i2;
  PyObject *__pyx_v_j1;
  PyObject *__pyx_v_j2;
  PyObject *__pyx_v_n;
  PyObject *__pyx_v_nn;
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
};


/* "lxml/html/_difflib.py":639
 * 
 *         matches: cython.Py_ssize_t
 *         matches = sum(triple[-1] for triple in self.get_matching_blocks())             # <<<<<<<<<<<<<<
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
 * 
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_triple;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
};


/* "lxml/html/_difflib.py":741
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
 *         c if tag_c == " " and c.isspace() else tag_c             # <<<<<<<<<<<<<<
 *         for c, tag_c in zip(s, tag_s)
 *     )
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_c;
  PyObject *__pyx_v_tag_c;
};


/* "lxml/html/_difflib.py":856
 *         self.charjunk = charjunk
 * 
 *     def compare(self, a, b):             # <<<<<<<<<<<<<<
 *         r"""
 *         Compare two sequences of lines; generate the resulting delta.
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare {
  PyObject_HEAD
  PyObject *__pyx_v_a;
  PyObject *__pyx_v_ahi;
  PyObject *__pyx_v_alo;
  PyObject *__pyx_v_b;
  PyObject *__pyx_v_bhi;
  PyObject *__pyx_v_blo;
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_cruncher;
  PyObject *__pyx_v_g;
  PyObject *__pyx_v_self;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
};


/* "lxml/html/_difflib.py":897
 *             yield from g
 * 
 *     def _dump(self, tag, x, lo, hi):             # <<<<<<<<<<<<<<
 *         """Generate comparison results for a same-tagged range."""
 *         for i in range(lo, hi):
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump {
  PyObject_HEAD
  PyObject *__pyx_v_hi;
  PyObject *__pyx_v_i;
  PyObject *__pyx_v_lo;
  PyObject *__pyx_v_self;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_v_x;
  PyObject *__pyx_t_0;
  PyObject *(*__pyx_t_1)(PyObject *);
};


/* "lxml/html/_difflib.py":902
 *             yield '%s %s' % (tag, x[i])
 * 
 *     def _plain_replace(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         assert alo < ahi and blo < bhi
 *         # dump the shorter block first -- reduces the burden on short-term
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace {
  PyObject_HEAD
  PyObject *__pyx_v_a;
  PyObject *__pyx_v_ahi;
  PyObject *__pyx_v_alo;
  PyObject *__pyx_v_b;
  PyObject *__pyx_v_bhi;
  PyObject *__pyx_v_blo;
  PyObject *__pyx_v_first;
  PyObject *__pyx_v_g;
  PyObject *__pyx_v_second;
  PyObject *__pyx_v_self;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
};


/* "lxml/html/_difflib.py":916
 *             yield from g
 * 
 *     def _fancy_replace(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         r"""
 *         When replacing one block of lines with another, search the blocks
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace {
  PyObject_HEAD
  long __pyx_v_WINDOW;
  PyObject *__pyx_v_a;
  PyObject *__pyx_v_aelt;
  PyObject *__pyx_v_aequiv;
  PyObject *__pyx_v_ahi;
  PyObject *__pyx_v_ai1;
  PyObject *__pyx_v_ai2;
  PyObject *__pyx_v_alo;
  PyObject *__pyx_v_arange;
  PyObject *__pyx_v_atags;
  PyObject *__pyx_v_b;
  PyObject *__pyx_v_belt;
  PyObject *__pyx_v_best_i;
  PyObject *__pyx_v_best_j;
  PyObject *__pyx_v_best_ratio;
  PyObject *__pyx_v_bhi;
  PyObject *__pyx_v_bj1;
  PyObject *__pyx_v_bj2;
  PyObject *__pyx_v_blo;
  PyObject *__pyx_v_btags;
  PyObject *__pyx_v_cqr;
  PyObject *__pyx_v_cr;
  PyObject *__pyx_v_crqr;
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_cruncher;
  double __pyx_v_cutoff;
  PyObject *__pyx_v_dump_i;
  PyObject *__pyx_v_dump_j;
  PyObject *__pyx_v_i;
  PyObject *__pyx_v_j;
  PyObject *__pyx_v_la;
  PyObject *__pyx_v_lb;
  PyObject *__pyx_v_ratio;
  PyObject *__pyx_v_self;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_t_0;
  PyObject *(*__pyx_t_1)(PyObject *);
};


/* "lxml/html/_difflib.py":1010
 *                                       b, dump_j, bhi)
 * 
 *     def _fancy_helper(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         g = []
 *         if alo < ahi:
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper {
  PyObject_HEAD
  PyObject *__pyx_v_a;
  PyObject *__pyx_v_ahi;
  PyObject *__pyx_v_alo;
  PyObject *__pyx_v_b;
  PyObject *__pyx_v_bhi;
  PyObject *__pyx_v_blo;
  PyObject *__pyx_v_g;
  PyObject *__pyx_v_self;
};


/* "lxml/html/_difflib.py":1022
 *         yield from g
 * 
 *     def _qformat(self, aline, bline, atags, btags):             # <<<<<<<<<<<<<<
 *         r"""
 *         Format "?" output and deal with tabs.
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat {
  PyObject_HEAD
  PyObject *__pyx_v_aline;
  PyObject *__pyx_v_atags;
  PyObject *__pyx_v_bline;
  PyObject *__pyx_v_btags;
  PyObject *__pyx_v_self;
};


/* "lxml/html/_difflib.py":1121
 *     return '{},{}'.format(beginning, length)
 * 
 * def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',             # <<<<<<<<<<<<<<
 *                  tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff {
  PyObject_HEAD
  PyObject *__pyx_v_a;
  PyObject *__pyx_v_b;
  PyObject *__pyx_v_file1_range;
  PyObject *__pyx_v_file2_range;
  PyObject *__pyx_v_first;
  PyObject *__pyx_v_fromdate;
  PyObject *__pyx_v_fromfile;
  PyObject *__pyx_v_fromfiledate;
  PyObject *__pyx_v_group;
  PyObject *__pyx_v_i1;
  PyObject *__pyx_v_i2;
  PyObject *__pyx_v_j1;
  PyObject *__pyx_v_j2;
  PyObject *__pyx_v_last;
  PyObject *__pyx_v_line;
  PyObject *__pyx_v_lineterm;
  PyObject *__pyx_v_n;
  int __pyx_v_started;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_v_todate;
  PyObject *__pyx_v_tofile;
  PyObject *__pyx_v_tofiledate;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
  PyObject *__pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  PyObject *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
};


/* "lxml/html/_difflib.py":1206
 * 
 * # See http://www.unix.org/single_unix_specification/
 * def context_diff(a, b, fromfile='', tofile='',             # <<<<<<<<<<<<<<
 *                  fromfiledate='', tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff {
  PyObject_HEAD
  PyObject *__pyx_v__;
  PyObject *__pyx_v_a;
  PyObject *__pyx_v_b;
  PyObject *__pyx_v_file1_range;
  PyObject *__pyx_v_file2_range;
  PyObject *__pyx_v_first;
  PyObject *__pyx_v_fromdate;
  PyObject *__pyx_v_fromfile;
  PyObject *__pyx_v_fromfiledate;
  PyObject *__pyx_v_genexpr;
  PyObject *__pyx_v_group;
  PyObject *__pyx_v_i1;
  PyObject *__pyx_v_i2;
  PyObject *__pyx_v_j1;
  PyObject *__pyx_v_j2;
  PyObject *__pyx_v_last;
  PyObject *__pyx_v_line;
  PyObject *__pyx_v_lineterm;
  PyObject *__pyx_v_n;
  PyObject *__pyx_v_prefix;
  int __pyx_v_started;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_v_todate;
  PyObject *__pyx_v_tofile;
  PyObject *__pyx_v_tofiledate;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
  PyObject *__pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  PyObject *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
};


/* "lxml/html/_difflib.py":1267
 *         yield '*** {} ****{}'.format(file1_range, lineterm)
 * 
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):             # <<<<<<<<<<<<<<
 *             for tag, i1, i2, _, _ in group:
 *                 if tag != 'insert':
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__;
  PyObject *__pyx_v_tag;
};


/* "lxml/html/_difflib.py":1276
 *         yield '--- {} ----{}'.format(file2_range, lineterm)
 * 
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):             # <<<<<<<<<<<<<<
 *             for tag, _, _, j1, j2 in group:
 *                 if tag != 'delete':
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__;
  PyObject *__pyx_v_tag;
};


/* "lxml/html/_difflib.py":1305
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
 * 
 * def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'',             # <<<<<<<<<<<<<<
 *                fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n'):
 *     r"""
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes {
  PyObject_HEAD
  PyObject *__pyx_v_a;
  PyObject *__pyx_v_b;
  PyObject *__pyx_v_decode;
  PyObject *__pyx_v_dfunc;
  PyObject *__pyx_v_fromfile;
  PyObject *__pyx_v_fromfiledate;
  PyObject *__pyx_v_line;
  PyObject *__pyx_v_lines;
  PyObject *__pyx_v_lineterm;
  PyObject *__pyx_v_n;
  PyObject *__pyx_v_tofile;
  PyObject *__pyx_v_tofiledate;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
};


/* "lxml/html/_difflib.py":1372
 *     return Differ(linejunk, charjunk).compare(a, b)
 * 
 * def _mdiff(fromlines, tolines, context=None, linejunk=None,             # <<<<<<<<<<<<<<
 *            charjunk=IS_CHARACTER_JUNK):
 *     r"""Returns generator yielding marked up from/to side by side differences.
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff {
  PyObject_HEAD
  PyObject *__pyx_v__line_iterator;
  PyObject *__pyx_v__line_pair_iterator;
  PyObject *__pyx_v__make_line;
  PyObject *__pyx_v_change_re;
  PyObject *__pyx_v_charjunk;
  PyObject *__pyx_v_context;
  PyObject *__pyx_v_contextLines;
  PyObject *__pyx_v_diff_lines_iterator;
  PyObject *__pyx_v_found_diff;
  PyObject *__pyx_v_from_line;
  PyObject *__pyx_v_fromlines;
  PyObject *__pyx_v_i;
  long __pyx_v_index;
  PyObject *__pyx_v_line_pair_iterator;
  PyObject *__pyx_v_linejunk;
  PyObject *__pyx_v_lines_to_write;
  PyObject *__pyx_v_re;
  PyObject *__pyx_v_to_line;
  PyObject *__pyx_v_tolines;
  PyObject *__pyx_t_0;
  PyObject *__pyx_t_1;
  PyObject *__pyx_t_2;
};


/* "lxml/html/_difflib.py":1470
 *         return (num_lines[side],text)
 * 
 *     def _line_iterator():             # <<<<<<<<<<<<<<
 *         """Yields from/to lines of text with a change indication.
 * 
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator {
  PyObject_HEAD
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *__pyx_outer_scope;
  PyObject *__pyx_v_from_line;
  PyObject *__pyx_8genexpr5__pyx_v_line;
  PyObject *__pyx_v_lines;
  long __pyx_v_num_blanks_pending;
  long __pyx_v_num_blanks_to_yield;
  PyObject *__pyx_v_s;
  PyObject *__pyx_v_to_line;
};


/* "lxml/html/_difflib.py":1558
 *                 yield from_line,to_line,True
 * 
 *     def _line_pair_iterator():             # <<<<<<<<<<<<<<
 *         """Yields from/to lines of text with a change indication.
 * 
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator {
  PyObject_HEAD
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *__pyx_outer_scope;
  PyObject *__pyx_v_found_diff;
  PyObject *__pyx_v_fromDiff;
  PyObject *__pyx_v_from_line;
  PyObject *__pyx_v_fromlines;
  PyObject *__pyx_v_line_iterator;
  PyObject *__pyx_v_to_diff;
  PyObject *__pyx_v_to_line;
  PyObject *__pyx_v_tolines;
};


/* "lxml/html/_difflib.py":1795
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)
 * 
 *     def _tab_newline_replace(self,fromlines,tolines):             # <<<<<<<<<<<<<<
 *         """Returns from/to line lists with tabs expanded and newlines removed.
 * 
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace {
  PyObject_HEAD
  PyObject *__pyx_v_self;
};


/* "lxml/html/_difflib.py":1873
 *         self._split_line(data_list,'>',line2)
 * 
 *     def _line_wrapper(self,diffs):             # <<<<<<<<<<<<<<
 *         """Returns iterator that splits (wraps) mdiff text lines"""
 * 
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper {
  PyObject_HEAD
  PyObject *__pyx_v_diffs;
  PyObject *__pyx_v_flag;
  PyObject *__pyx_v_fromdata;
  PyObject *__pyx_v_fromline;
  PyObject *__pyx_v_fromlist;
  PyObject *__pyx_v_fromtext;
  PyObject *__pyx_v_self;
  PyObject *__pyx_v_todata;
  PyObject *__pyx_v_toline;
  PyObject *__pyx_v_tolist;
  PyObject *__pyx_v_totext;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
};


/* "lxml/html/_difflib.py":2081
 * 
 * 
 * def restore(delta, which):             # <<<<<<<<<<<<<<
 *     r"""
 *     Generate one of the two sequences that generated a delta.
*/
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore {
  PyObject_HEAD
  PyObject *__pyx_v_delta;
  PyObject *__pyx_v_line;
  PyObject *__pyx_v_prefixes;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_v_which;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
};


/* "cfunc.to_py":65
 * 
 * 
 * @cname("__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self")             # <<<<<<<<<<<<<<
 * cdef object __Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(double (*f)(SequenceMatcher) except *):
 *     def wrap(SequenceMatcher self):
*/
struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self {
  PyObject_HEAD
  double (*__pyx_v_f)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *);
};



/* "lxml/html/_difflib.py":65
 *     return 1.0
 * 
 * class SequenceMatcher:             # <<<<<<<<<<<<<<
 * 
 *     """
*/

struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher {
  PyObject *(*find_longest_match)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *, struct __pyx_opt_args_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match *__pyx_optional_args);
  PyObject *(*get_matching_blocks)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *);
  PyObject *(*get_opcodes)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *);
  double (*quick_ratio)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *);
  double (*real_quick_ratio)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *);
};
static struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *__pyx_vtabptr_4lxml_4html_8_difflib_SequenceMatcher;
/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_XINCREF(r)  do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto (used by PyErrFetchRestore) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* PyObjectGetAttrStr.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyObjectGetAttrStrNoError.proto (used by GetBuiltinName) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* TupleAndListFromArray.proto (used by fastcall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
#endif
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* IncludeStringH.proto (used by BytesEquals) */
#include <string.h>

/* BytesEquals.proto (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i))
#else
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i))
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i])
    #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
#else
    #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#if CYTHON_METH_FASTCALL || (CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start)
#else
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* py_dict_items.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);

/* CallCFunction.proto (used by CallUnboundCMethod0) */
#define __Pyx_CallCFunction(cfunc, self, args)\
    ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args)
#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\
    ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs)
#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\
    ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs)
#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\
    ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames)

/* PyObjectCall.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCallMethO.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto (used by PyObjectCallOneArg) */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs);

/* PyObjectCallOneArg.proto (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod0) */
typedef struct {
    PyObject *type;
    PyObject **method_name;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS
    __pyx_atomic_int_type initialized;
#endif
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) {
#if !CYTHON_ATOMICS
    return 1;
#else
    __pyx_nonatomic_int_type expected = 0;
    if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) {
        return 0;
    }
    return expected;
#endif
}
static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) {
#if CYTHON_ATOMICS
    __pyx_atomic_store(&cfunc->initialized, 2);
#endif
}
#else
#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2
#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc)
#endif

/* CallUnboundCMethod0.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* py_dict_values.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* OwnedDictNext.proto (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue);
#else
CYTHON_INLINE
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue);
#endif

/* RaiseDoubleKeywords.proto (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywordsImpl.export */
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name
);
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* CallUnboundCMethod2.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* ParseKeywords.proto */
static CYTHON_INLINE int __Pyx_ParseKeywords(
    PyObject *kwds, PyObject *const *kwvalues, PyObject ** const argnames[],
    PyObject *kwds2, PyObject *values[],
    Py_ssize_t num_pos_args, Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* ArgTypeTestFunc.export */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))

/* dict_setdefault.proto (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value);

/* LimitedApiGetTypeDict.proto (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp);
#endif

/* SetItemOnTypeDict.proto (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v);
#define __Pyx_SetItemOnTypeDict(tp, k, v) __Pyx__SetItemOnTypeDict((PyTypeObject*)tp, k, v)

/* FixUpExtensionType.proto (used by FetchCommonType) */
static CYTHON_INLINE int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);

/* AddModuleRef.proto (used by FetchSharedCythonModule) */
#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING ) ||\
     __PYX_LIMITED_VERSION_HEX < 0x030d0000)
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name);
#else
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#endif

/* FetchSharedCythonModule.proto (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void);

/* FetchCommonType.proto (used by CommonTypesMetaclass) */
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases);

/* CommonTypesMetaclass.proto (used by CythonFunctionShared) */
static int __pyx_CommonTypesMetaclass_init(PyObject *module);
#define __Pyx_CommonTypesMetaclass_USED

/* CallTypeTraverse.proto (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg);
#endif

/* PyMethodNew.proto (used by CythonFunctionShared) */
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ);

/* PyVectorcallFastCallDict.proto (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto (used by CythonFunction) */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_CyFunction_GetClassObj(f)\
      (((__pyx_CyFunctionObject *) (f))->func_classobj)
#else
  #define __Pyx_CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject_HEAD
    PyObject *func;
#elif PY_VERSION_HEX < 0x030900B1
    PyCFunctionObject func;
#else
    PyCMethodObject func;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_METH_FASTCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_dict;
#endif
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    PyObject *defaults;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
    PyObject *func_is_coroutine;
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void));
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func,
                                                         PyTypeObject *defaults_type);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* PyObjectFastCallMethod.proto */
#if CYTHON_VECTORCALL && PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyObject_FastCallMethod(name, args, nargsf) PyObject_VectorcallMethod(name, args, nargsf, NULL)
#else
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf);
#endif

/* RejectKeywords.export */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds);

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* ListAppend.proto (used by append) */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* PyObjectCall2Args.proto (used by PyObjectCallMethod1) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* PyObjectGetMethod.proto (used by PyObjectCallMethod1) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
#endif

/* PyObjectCallMethod1.proto (used by append) */
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

/* append.proto */
static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x);

/* IterFinish.proto (used by dict_iter) */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* PyObjectCallNoArg.proto (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

/* PyObjectCallMethod0.proto (used by dict_iter) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNeedMoreValuesToUnpack.proto (used by UnpackTuple2) */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* RaiseTooManyValuesToUnpack.proto (used by UnpackItemEndCheck) */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* UnpackItemEndCheck.proto (used by UnpackTuple2) */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* RaiseNoneIterError.proto (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto (used by dict_iter) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
    PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple);
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* set_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set,
                                                  Py_ssize_t* p_orig_length, int* p_source_is_set);
static CYTHON_INLINE int __Pyx_set_iter_next(
        PyObject* iter_obj, Py_ssize_t orig_length,
        Py_ssize_t* ppos, PyObject **value,
        int source_is_set);

/* DivInt[Py_ssize_t].proto */
static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t, Py_ssize_t, int b_is_constant);

/* dict_getitem_default.proto */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value);

/* CallUnboundCMethod1.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#else
#define __Pyx_CallUnboundCMethod1(cfunc, self, arg)  __Pyx__CallUnboundCMethod1(cfunc, self, arg)
#endif

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck, unsafe_shared) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck, int unsafe_shared);

/* pyfrozenset_new.proto (used by PySetContains) */
static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it);

/* PySetContains.proto */
static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq);

/* PyDictVersioning.proto (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_mstate_global->__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* pop.proto */
static CYTHON_INLINE PyObject* __Pyx__PyObject_Pop(PyObject* L);
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE PyObject* __Pyx_PyList_Pop(PyObject* L);
#define __Pyx_PyObject_Pop(L) (likely(PyList_CheckExact(L)) ?\
    __Pyx_PyList_Pop(L) : __Pyx__PyObject_Pop(L))
#else
#define __Pyx_PyList_Pop(L)  __Pyx__PyObject_Pop(L)
#define __Pyx_PyObject_Pop(L)  __Pyx__PyObject_Pop(L)
#endif

/* SetItemInt.proto */
#define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck, unsafe_shared) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\
               __Pyx_SetItemInt_Generic(o, to_py_func(i), v)))
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v);
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v,
                                               int is_list, int wraparound, int boundscheck, int unsafe_shared);

/* GetException.proto (used by pep479) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* pep479.proto */
static void __Pyx_Generator_Replace_StopIteration(int in_async_gen);

/* RaiseUnboundLocalError.proto */
static void __Pyx_RaiseUnboundLocalError(const char *varname);

/* PyDictContains.proto */
static CYTHON_INLINE int __Pyx_PyDict_ContainsTF(PyObject* item, PyObject* dict, int eq) {
    int result = PyDict_Contains(dict, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* DictGetItem.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_SubtractObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
#endif

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* RaiseUnexpectedTypeError.proto */
static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj);

/* PyValueError_Check.proto */
#define __Pyx_PyExc_ValueError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_ValueError)

/* PyObjectFormatAndDecref.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f);
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f);

/* RaiseException.export */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* PyObjectDelAttr.proto (used by PyObjectSetAttrStr) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
#define __Pyx_PyObject_DelAttr(o, n) PyObject_SetAttr(o, n, NULL)
#else
#define __Pyx_PyObject_DelAttr(o, n) PyObject_DelAttr(o, n)
#endif

/* PyObjectSetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   __Pyx_PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

/* GetTopmostException.proto (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto (used by CoroutineBase) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* SwapException.proto (used by CoroutineBase) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* IterNextPlain.proto (used by CoroutineBase) */
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator);
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void);
#endif

/* ReturnWithStopIteration.proto (used by CoroutineBase) */
static CYTHON_INLINE void __Pyx_ReturnWithStopIteration(PyObject* value, int async, int iternext);

/* CoroutineBase.proto (used by Generator) */
struct __pyx_CoroutineObject;
typedef PyObject *(*__pyx_coroutine_body_t)(struct __pyx_CoroutineObject *, PyThreadState *, PyObject *);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_ExcInfoStruct  _PyErr_StackItem
#else
typedef struct {
    PyObject *exc_type;
    PyObject *exc_value;
    PyObject *exc_traceback;
} __Pyx_ExcInfoStruct;
#endif
typedef struct __pyx_CoroutineObject {
    PyObject_HEAD
    __pyx_coroutine_body_t body;
    PyObject *closure;
    __Pyx_ExcInfoStruct gi_exc_state;
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *gi_weakreflist;
#endif
    PyObject *classobj;
    PyObject *yieldfrom;
    __Pyx_pyiter_sendfunc yieldfrom_am_send;
    PyObject *gi_name;
    PyObject *gi_qualname;
    PyObject *gi_modulename;
    PyObject *gi_code;
    PyObject *gi_frame;
#if CYTHON_USE_SYS_MONITORING && (CYTHON_PROFILE || CYTHON_TRACE)
    PyMonitoringState __pyx_pymonitoring_state[__Pyx_MonitoringEventTypes_CyGen_count];
    uint64_t __pyx_pymonitoring_version;
#endif
    int resume_label;
    char is_running;
} __pyx_CoroutineObject;
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
    PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
    PyObject *name, PyObject *qualname, PyObject *module_name);
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name);
static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self);
static int __Pyx_Coroutine_clear(PyObject *self);
static __Pyx_PySendResult __Pyx_Coroutine_AmSend(PyObject *self, PyObject *value, PyObject **retval);
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value);
static __Pyx_PySendResult __Pyx_Coroutine_Close(PyObject *self, PyObject **retval);
static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_Coroutine_SwapException(self)
#define __Pyx_Coroutine_ResetAndClearException(self)  __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state)
#else
#define __Pyx_Coroutine_SwapException(self) {\
    __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\
    __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\
    }
#define __Pyx_Coroutine_ResetAndClearException(self) {\
    __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\
    (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\
    }
#endif
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue)
#else
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue)
#endif
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue);
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state);
static char __Pyx_Coroutine_test_and_set_is_running(__pyx_CoroutineObject *gen);
static void __Pyx_Coroutine_unset_is_running(__pyx_CoroutineObject *gen);
static char __Pyx_Coroutine_get_is_running(__pyx_CoroutineObject *gen);
static PyObject *__Pyx_Coroutine_get_is_running_getter(PyObject *gen, void *closure);
#if __PYX_HAS_PY_AM_SEND == 2
static void __Pyx_SetBackportTypeAmSend(PyTypeObject *type, __Pyx_PyAsyncMethodsStruct *static_amsend_methods, __Pyx_pyiter_sendfunc am_send);
#endif
static PyObject *__Pyx_Coroutine_fail_reduce_ex(PyObject *self, PyObject *arg);

/* Generator.proto (used by GeneratorYieldFrom) */
#define __Pyx_Generator_USED
#define __Pyx_Generator_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_GeneratorType)
#define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\
    __Pyx__Coroutine_New(__pyx_mstate_global->__pyx_GeneratorType, body, code, closure, name, qualname, module_name)
static PyObject *__Pyx_Generator_Next(PyObject *self);
static int __pyx_Generator_init(PyObject *module);
static CYTHON_INLINE PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self);

/* GeneratorYieldFrom.proto */
static CYTHON_INLINE __Pyx_PySendResult __Pyx_Generator_Yield_From(__pyx_CoroutineObject *gen, PyObject *source, PyObject **retval);

/* PyRange_Check.proto */
#if CYTHON_COMPILING_IN_PYPY && !defined(PyRange_Check)
  #define PyRange_Check(obj)  __Pyx_TypeCheck((obj), &PyRange_Type)
#endif

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* JoinPyUnicode.export */
static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char);

/* AssertionsEnabled.proto */
#if CYTHON_COMPILING_IN_LIMITED_API  ||  PY_VERSION_HEX >= 0x030C0000
  static int __pyx_assertions_enabled_flag;
  #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag)
  #if __clang__ || __GNUC__
  __attribute__((no_sanitize("thread")))
  #endif
  static int __Pyx_init_assertions_enabled(void) {
    PyObject *builtins, *debug, *debug_str;
    int flag;
    builtins = PyEval_GetBuiltins();
    if (!builtins) goto bad;
    debug_str = PyUnicode_FromStringAndSize("__debug__", 9);
    if (!debug_str) goto bad;
    debug = PyObject_GetItem(builtins, debug_str);
    Py_DECREF(debug_str);
    if (!debug) goto bad;
    flag = PyObject_IsTrue(debug);
    Py_DECREF(debug);
    if (flag == -1) goto bad;
    __pyx_assertions_enabled_flag = flag;
    return 0;
  bad:
    __pyx_assertions_enabled_flag = 1;
    return -1;
  }
#else
  #define __Pyx_init_assertions_enabled()  (0)
  #define __pyx_assertions_enabled()  (!Py_OptimizeFlag)
#endif

/* PyAssertionError_Check.proto */
#define __Pyx_PyExc_AssertionError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AssertionError)

/* PyMethodNew2Arg.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New2Arg(PyObject *func, PyObject *self);
#else
#define __Pyx_PyMethod_New2Arg PyMethod_New
#endif

/* PyObjectFormatSimple.proto */
#if CYTHON_COMPILING_IN_PYPY
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#elif CYTHON_USE_TYPE_SLOTS
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        likely(PyLong_CheckExact(s)) ? PyLong_Type.tp_repr(s) :\
        likely(PyFloat_CheckExact(s)) ? PyFloat_Type.tp_repr(s) :\
        PyObject_Format(s, f))
#else
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#endif

/* PyUnicodeContains.proto */
static CYTHON_INLINE int __Pyx_PyUnicode_ContainsTF(PyObject* substring, PyObject* text, int eq) {
    int result = PyUnicode_Contains(text, substring);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* PyLongCompare.proto */
static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* SliceObject.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
        PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
        int has_cstart, int has_cstop, int wraparound);

/* PyTypeError_Check.proto */
#define __Pyx_PyExc_TypeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_TypeError)

/* PyAttributeError_Check.proto */
#define __Pyx_PyExc_AttributeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AttributeError)

/* pop_index.proto */
static PyObject* __Pyx__PyObject_PopNewIndex(PyObject* L, PyObject* py_ix);
static PyObject* __Pyx__PyObject_PopIndex(PyObject* L, PyObject* py_ix);
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t ix);
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    (likely(PyList_CheckExact(L) && __Pyx_fits_Py_ssize_t(ix, type, is_signed))) ?\
        __Pyx__PyList_PopIndex(L, py_ix, ix) : (\
        (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
            __Pyx__PyObject_PopIndex(L, py_ix)))
#define __Pyx_PyList_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    __Pyx_fits_Py_ssize_t(ix, type, is_signed) ?\
        __Pyx__PyList_PopIndex(L, py_ix, ix) : (\
        (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
            __Pyx__PyObject_PopIndex(L, py_ix)))
#else
#define __Pyx_PyList_PopIndex(L, py_ix, ix, is_signed, type, to_py_func)\
    __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func)
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
        __Pyx__PyObject_PopIndex(L, py_ix))
#endif

/* RaiseClosureNameError.proto */
static void __Pyx_RaiseClosureNameError(const char *varname);

/* IterNext.proto */
#define __Pyx_PyIter_Next(obj) __Pyx_PyIter_Next2(obj, NULL)
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject *, PyObject *);

/* unicode_tailmatch.proto */
static int __Pyx_PyUnicode_Tailmatch(
    PyObject* s, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction);

/* SliceTupleAndList.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice(PyObject* src, Py_ssize_t start, Py_ssize_t stop);
static CYTHON_INLINE PyObject* __Pyx_PyTuple_GetSlice(PyObject* src, Py_ssize_t start, Py_ssize_t stop);
#else
#define __Pyx_PyList_GetSlice(seq, start, stop)   PySequence_GetSlice(seq, start, stop)
#define __Pyx_PyTuple_GetSlice(seq, start, stop)  PySequence_GetSlice(seq, start, stop)
#endif

/* PyStopIteration_Check.proto */
#define __Pyx_PyExc_StopIteration_Check(obj)  __Pyx_TypeCheck(obj, PyExc_StopIteration)

/* HasAttr.proto (used by ImportImpl) */
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_HasAttr(o, n)  PyObject_HasAttrWithError(o, n)
#else
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
#endif

/* ImportImpl.export */
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level);

/* Import.proto */
static CYTHON_INLINE PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level);

/* PyObjectVectorCallKwBuilder.proto (used by PyObjectVectorCallMethodKwBuilder) */
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#if CYTHON_VECTORCALL
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_Vectorcall_CallFromBuilder PyObject_Vectorcall
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder _PyObject_Vectorcall
#endif
#define __Pyx_MakeVectorcallBuilderKwds(n) PyTuple_New(n)
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder __Pyx_PyObject_FastCallDict
#define __Pyx_MakeVectorcallBuilderKwds(n) __Pyx_PyDict_NewPresized(n)
#define __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n) PyDict_SetItem(builder, key, value)
#define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value)
#endif

/* PyObjectVectorCallMethodKwBuilder.proto */
#if CYTHON_VECTORCALL && PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_VectorcallMethod_CallFromBuilder PyObject_VectorcallMethod
#else
static PyObject *__Pyx_Object_VectorcallMethod_CallFromBuilder(PyObject *name, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_MultiplyObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceMultiply(op1, op2) : PyNumber_Multiply(op1, op2))
#endif

/* BuildPyUnicode.proto (used by COrdinalToPyUnicode) */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, const char* chars, int clength,
                                                int prepend_sign, char padding_char);

/* COrdinalToPyUnicode.proto (used by CIntToPyUnicode) */
static CYTHON_INLINE int __Pyx_CheckUnicodeValue(int value);
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromOrdinal_Padded(int value, Py_ssize_t width, char padding_char);

/* GCCDiagnostics.proto (used by CIntToPyUnicode) */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* IncludeStdlibH.proto (used by CIntToPyUnicode) */
#include <stdlib.h>

/* CIntToPyUnicode.proto */
#define __Pyx_PyUnicode_From_long(value, width, padding_char, format_char) (\
    ((format_char) == ('c')) ?\
        __Pyx_uchar___Pyx_PyUnicode_From_long(value, width, padding_char) :\
        __Pyx____Pyx_PyUnicode_From_long(value, width, padding_char, format_char)\
    )
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_long(long value, Py_ssize_t width, char padding_char);
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_long(long value, Py_ssize_t width, char padding_char, char format_char);

/* PyKeyError_Check.proto */
#define __Pyx_PyExc_KeyError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_KeyError)

/* AllocateExtensionType.proto */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final);

/* CheckTypeForFreelists.proto */
#if CYTHON_USE_FREELISTS
#if CYTHON_USE_TYPE_SPECS
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t) == (expected_tp)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  Py_TPFLAGS_IS_ABSTRACT
#else
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t)->tp_basicsize == (expected_size)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)
#endif
#define __PYX_CHECK_TYPE_FOR_FREELISTS(t, expected_tp, expected_size)\
    (__PYX_CHECK_FINAL_TYPE_FOR_FREELISTS((t), (expected_tp), (expected_size)) &\
     (int) (!__Pyx_PyType_HasFeature((t), __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS)))
#endif

/* FunctionExport.proto */
static int __Pyx_ExportFunction(PyObject *api_dict, const char *name, void (*f)(void), const char *sig);

/* GetApiDict.proto */
static PyObject *__Pyx_ApiExport_GetApiDict(void);

/* ValidateBasesTuple.proto (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases);
#endif

/* PyType_Ready.proto */
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);

/* SetVTable.proto */
static int __Pyx_SetVtable(PyTypeObject* typeptr , void* vtable);

/* GetVTable.proto (used by MergeVTables) */
static void* __Pyx_GetVtable(PyTypeObject *type);

/* MergeVTables.proto */
static int __Pyx_MergeVtables(PyTypeObject *type);

/* DelItemOnTypeDict.proto (used by SetupReduce) */
static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k);
#define __Pyx_DelItemOnTypeDict(tp, k) __Pyx__DelItemOnTypeDict((PyTypeObject*)tp, k)

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* ListPack.proto */
static PyObject *__Pyx_PyList_Pack(Py_ssize_t n, ...);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* PyImportError_Check.proto */
#define __Pyx_PyExc_ImportError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_ImportError)

/* ClassMethod.proto */
#if !CYTHON_COMPILING_IN_LIMITED_API
#include "descrobject.h"
#endif
CYTHON_UNUSED static PyObject* __Pyx_Method_ClassMethod(PyObject *method);

/* SetNameInClass.proto */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
#elif CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
#else
#define __Pyx_SetNameInClass(ns, name, value)  PyObject_SetItem(ns, name, value)
#endif

/* CalculateMetaclass.proto (used by Py3ClassCreate) */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

/* PyObjectLookupSpecial.proto (used by Py3ClassCreate) */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 0)
#define __Pyx_PyObject_LookupSpecial(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 1)
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error);
#else
#define __Pyx_PyObject_LookupSpecialNoError(o,n) __Pyx_PyObject_GetAttrStrNoError(o,n)
#define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n)
#endif

/* Py3ClassCreate.proto */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
                                           PyObject *mkw, PyObject *modname, PyObject *doc);
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass);

/* Py3UpdateBases.proto */
static PyObject* __Pyx_PEP560_update_bases(PyObject *bases);

/* RegisterModuleCleanup.proto */
static void __pyx_module_cleanup(PyObject *self);
#if CYTHON_COMPILING_IN_PYPY
static int __Pyx_RegisterCleanup(void);
#else
#define __Pyx_RegisterCleanup() (0)
#endif

/* CLineInTraceback.proto (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#else
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#endif

/* CodeObjectCache.proto (used by AddTraceback) */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject __Pyx_CachedCodeObjectType;
#else
typedef PyCodeObject __Pyx_CachedCodeObjectType;
#endif
typedef struct {
    __Pyx_CachedCodeObjectType* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_int_type accessor_count;
  #endif
};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* CheckUnpickleChecksum.proto */
static CYTHON_INLINE int __Pyx_CheckUnpickleChecksum(long checksum, long checksum1, long checksum2, long checksum3, const char *members);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value);

/* UpdateUnpickledDict.proto */
static int __Pyx_UpdateUnpickledDict(PyObject *obj, PyObject *state, Py_ssize_t index);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
#else
static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp);
#endif
#else  // !LIMITED_API
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) {
    return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2);
}
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
#ifdef PyExceptionInstance_Check
  #define __Pyx_PyBaseException_Check(obj) PyExceptionInstance_Check(obj)
#else
  #define __Pyx_PyBaseException_Check(obj) __Pyx_TypeCheck(obj, PyExc_BaseException)
#endif

/* GetRuntimeVersion.proto */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
static unsigned long __Pyx_cached_runtime_version = 0;
static void __Pyx_init_runtime_version(void);
#else
#define __Pyx_init_runtime_version()
#endif
static unsigned long __Pyx_get_runtime_version(void);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* DecompressString.proto */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo);

/* MultiPhaseInitModuleState.proto */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
static PyObject *__Pyx_State_FindModule(void*);
static int __Pyx_State_AddModule(PyObject* module, void*);
static int __Pyx_State_RemoveModule(void*);
#elif CYTHON_USE_MODULE_STATE
#define __Pyx_State_FindModule PyState_FindModule
#define __Pyx_State_AddModule PyState_AddModule
#define __Pyx_State_RemoveModule PyState_RemoveModule
#endif

/* #### Code section: module_declarations ### */
/* CythonABIVersion.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
    #if CYTHON_METH_FASTCALL
        #define __PYX_FASTCALL_ABI_SUFFIX  "_fastcall"
    #else
        #define __PYX_FASTCALL_ABI_SUFFIX
    #endif
    #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_FASTCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#else
    #define __PYX_LIMITED_ABI_SUFFIX
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    #define __PYX_AM_SEND_ABI_SUFFIX
#elif __PYX_HAS_PY_AM_SEND == 2
    #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport"
#else
    #define __PYX_AM_SEND_ABI_SUFFIX "noamsend"
#endif
#ifndef __PYX_MONITORING_ABI_SUFFIX
    #define __PYX_MONITORING_ABI_SUFFIX
#endif
#if CYTHON_USE_TP_FINALIZE
    #define __PYX_TP_FINALIZE_ABI_SUFFIX
#else
    #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize"
#endif
#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED)
    #define __PYX_FREELISTS_ABI_SUFFIX
#else
    #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists"
#endif
#define CYTHON_ABI  __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."

static PyObject *__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, struct __pyx_opt_args_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_get_matching_blocks(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto*/
static PyObject *__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_get_opcodes(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto*/
static double __pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_quick_ratio(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto*/
static double __pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_real_quick_ratio(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto*/

/* Module declarations from "cython" */

/* Module declarations from "lxml.html._difflib" */
static double __pyx_f_4lxml_4html_8_difflib__calculate_ratio(Py_ssize_t, Py_ssize_t); /*proto*/
static PyObject *__pyx_f_4lxml_4html_8_difflib___pyx_unpickle_SequenceMatcher__set_state(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *, PyObject *); /*proto*/
static PyObject *__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(double (*)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)); /*proto*/
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "lxml.html._difflib"
extern int __pyx_module_is_main_lxml__html___difflib;
int __pyx_module_is_main_lxml__html___difflib = 0;

/* Implementation of "lxml.html._difflib" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_object;
static PyObject *__pyx_builtin_enumerate;
static PyObject *__pyx_builtin_map;
static PyObject *__pyx_builtin_sum;
static PyObject *__pyx_builtin_zip;
static PyObject *__pyx_builtin_reversed;
/* #### Code section: string_decls ### */
static const char __pyx_k_Module_difflib_helpers_for_comp[] = "\nModule difflib -- helpers for computing deltas between objects.\n\nFunction get_close_matches(word, possibilities, n=3, cutoff=0.6):\n    Use SequenceMatcher to return list of the best \"good enough\" matches.\n\nFunction context_diff(a, b):\n    For two lists of strings, return a delta in context diff format.\n\nFunction ndiff(a, b):\n    Return a delta: the difference between `a` and `b` (lists of strings).\n\nFunction restore(delta, which):\n    Return one of the two sequences that generated an ndiff delta.\n\nFunction unified_diff(a, b):\n    For two lists of strings, return a delta in unified diff format.\n\nClass SequenceMatcher:\n    A flexible class for comparing pairs of sequences of any type.\n\nClass Differ:\n    For producing human-readable deltas from sequences of lines of text.\n\nClass HtmlDiff:\n    For producing HTML side by side comparison with change highlights.\n";
static const char __pyx_k_a_autojunk_b_b2j_bjunk_bpopular[] = "a, autojunk, b, b2j, bjunk, bpopular, fullbcount, isjunk, matching_blocks, opcodes";
/* #### Code section: decls ### */
static PyObject *__pyx_pf_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_wrap(PyObject *__pyx_self, struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_11fake_cython_cfunc(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_11fake_cython_2declare(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v__, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_11fake_cython_4__getattr__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type_name); /* proto */
static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher___init__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_isjunk, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_autojunk); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_2set_seqs(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_4set_seq1(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_a); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_6set_seq2(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_b); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_8__chain_b(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_10get_grouped_opcodes(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_5ratio_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_13ratio(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a___get__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto */
static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a_2__set__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a_4__del__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b___get__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto */
static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b_2__set__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b_4__del__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_15__reduce_cython__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_17__setstate_cython__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_get_close_matches(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_word, PyObject *__pyx_v_possibilities, PyObject *__pyx_v_n, PyObject *__pyx_v_cutoff); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_17_keep_original_ws_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_2_keep_original_ws(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s, PyObject *__pyx_v_tag_s); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_linejunk, PyObject *__pyx_v_charjunk); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_2compare(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_5_dump(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_x, PyObject *__pyx_v_lo, PyObject *__pyx_v_hi); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_8_plain_replace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_alo, PyObject *__pyx_v_ahi, PyObject *__pyx_v_b, PyObject *__pyx_v_blo, PyObject *__pyx_v_bhi); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_11_fancy_replace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_alo, PyObject *__pyx_v_ahi, PyObject *__pyx_v_b, PyObject *__pyx_v_blo, PyObject *__pyx_v_bhi); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_14_fancy_helper(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_alo, PyObject *__pyx_v_ahi, PyObject *__pyx_v_b, PyObject *__pyx_v_blo, PyObject *__pyx_v_bhi); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_17_qformat(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_aline, PyObject *__pyx_v_bline, PyObject *__pyx_v_atags, PyObject *__pyx_v_btags); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_4IS_LINE_JUNK(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_line, PyObject *__pyx_v_pat); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6IS_CHARACTER_JUNK(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ch, PyObject *__pyx_v_ws); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8_format_range_unified(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_stop); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_10unified_diff(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_fromfile, PyObject *__pyx_v_tofile, PyObject *__pyx_v_fromfiledate, PyObject *__pyx_v_tofiledate, PyObject *__pyx_v_n, PyObject *__pyx_v_lineterm); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_13_format_range_context(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_stop); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_12context_diff_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_12context_diff_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_15context_diff(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_fromfile, PyObject *__pyx_v_tofile, PyObject *__pyx_v_fromfiledate, PyObject *__pyx_v_tofiledate, PyObject *__pyx_v_n, PyObject *__pyx_v_lineterm); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_18_check_types(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_20diff_bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dfunc, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_fromfile, PyObject *__pyx_v_tofile, PyObject *__pyx_v_fromfiledate, PyObject *__pyx_v_tofiledate, PyObject *__pyx_v_n, PyObject *__pyx_v_lineterm); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_10diff_bytes_decode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_33__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_23ndiff(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_linejunk, PyObject *__pyx_v_charjunk); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_35__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_25_mdiff(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fromlines, PyObject *__pyx_v_tolines, PyObject *__pyx_v_context, PyObject *__pyx_v_linejunk, PyObject *__pyx_v_charjunk); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_39__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_41__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6_mdiff_10_make_line_record_sub_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_match_object, PyObject *__pyx_v_sub_info); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6_mdiff__make_line(PyObject *__pyx_self, PyObject *__pyx_v_lines, PyObject *__pyx_v_format_key, PyObject *__pyx_v_side, PyObject *__pyx_v_num_lines); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6_mdiff_2_line_iterator(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_6_mdiff_5_line_pair_iterator(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_37__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_tabsize, PyObject *__pyx_v_wrapcolumn, PyObject *__pyx_v_linejunk, PyObject *__pyx_v_charjunk); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_2make_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fromlines, PyObject *__pyx_v_tolines, PyObject *__pyx_v_fromdesc, PyObject *__pyx_v_todesc, PyObject *__pyx_v_context, PyObject *__pyx_v_numlines, PyObject *__pyx_v_charset); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_expand_tabs(PyObject *__pyx_self, PyObject *__pyx_v_line); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_4_tab_newline_replace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fromlines, PyObject *__pyx_v_tolines); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_6_split_line(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_data_list, PyObject *__pyx_v_line_num, PyObject *__pyx_v_text); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_8_line_wrapper(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_diffs); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_11_collect_lines(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_diffs); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_13_format_line(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_side, CYTHON_UNUSED PyObject *__pyx_v_flag, PyObject *__pyx_v_linenum, PyObject *__pyx_v_text); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_15_make_prefix(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_17_convert_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fromlist, PyObject *__pyx_v_tolist, PyObject *__pyx_v_flaglist, PyObject *__pyx_v_context, PyObject *__pyx_v_numlines); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_19make_table(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fromlines, PyObject *__pyx_v_tolines, PyObject *__pyx_v_fromdesc, PyObject *__pyx_v_todesc, PyObject *__pyx_v_context, PyObject *__pyx_v_numlines); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_28restore(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_delta, PyObject *__pyx_v_which); /* proto */
static PyObject *__pyx_pf_4lxml_4html_8_difflib_31__pyx_unpickle_SequenceMatcher(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib_SequenceMatcher(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_defaults(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_3_compare(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_4__dump(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_19_restore(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
/* SmallCodeConfig */
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  PyObject *__pyx_type_4lxml_4html_8_difflib_SequenceMatcher;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_defaults;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper;
  PyObject *__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore;
  PyObject *__pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper;
  PyTypeObject *__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore;
  PyTypeObject *__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_get;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values;
  __Pyx_CachedCFunction __pyx_umethod_PyList_Type_pop;
  PyObject *__pyx_slice[2];
  PyObject *__pyx_tuple[32];
  PyObject *__pyx_codeobj_tab[50];
  PyObject *__pyx_string_tab[518];
  PyObject *__pyx_number_tab[10];
/* #### Code section: module_state_contents ### */
/* CommonTypesMetaclass.module_state_decls */
PyTypeObject *__pyx_CommonTypesMetaclassType;

/* CachedMethodType.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_CachedMethodType;
#endif

/* CythonFunctionShared.module_state_decls */
PyTypeObject *__pyx_CyFunctionType;

/* IterNextPlain.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
PyObject *__Pyx_GetBuiltinNext_LimitedAPI_cache;
#endif

/* Generator.module_state_decls */
PyTypeObject *__pyx_GeneratorType;


#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_3_compare[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_3_compare;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_4__dump[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_4__dump;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_19_restore[8];
int __pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_19_restore;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self *__pyx_freelist___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self[8];
int __pyx_freecount___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self;
#endif
/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* #### Code section: module_state_end ### */
} __pyx_mstatetype;

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef)))

#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef))
#else
static __pyx_mstatetype __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: constant_name_defines ### */
#define __pyx_kp_u_Compare_a_and_b_lists_of_string __pyx_string_tab[0]
#define __pyx_kp_u_Compare_two_sequences_of_lines __pyx_string_tab[1]
#define __pyx_kp_u_Compare_two_sequences_of_lines_2 __pyx_string_tab[2]
#define __pyx_kp_u_Compare_two_sequences_of_lines_3 __pyx_string_tab[3]
#define __pyx_kp_u_DOCTYPE_html_html_lang_en_head __pyx_string_tab[4]
#define __pyx_kp_u_Differ__fancy_replace_line_916 __pyx_string_tab[5]
#define __pyx_kp_u_Differ__qformat_line_1022 __pyx_string_tab[6]
#define __pyx_kp_u_Differ_compare_line_856 __pyx_string_tab[7]
#define __pyx_kp_u_Differ_is_a_class_for_comparing __pyx_string_tab[8]
#define __pyx_kp_u_For_producing_HTML_side_by_side __pyx_string_tab[9]
#define __pyx_kp_u_Format_output_and_deal_with_tab __pyx_string_tab[10]
#define __pyx_kp_u_Generate_one_of_the_two_sequenc __pyx_string_tab[11]
#define __pyx_kp_u_IS_CHARACTER_JUNK_line_1087 __pyx_string_tab[12]
#define __pyx_kp_u_IS_LINE_JUNK_line_1066 __pyx_string_tab[13]
#define __pyx_kp_u_Isolate_change_clusters_by_elim __pyx_string_tab[14]
#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[15]
#define __pyx_kp_u_Return_True_for_ignorable_chara __pyx_string_tab[16]
#define __pyx_kp_u_Return_True_for_ignorable_line __pyx_string_tab[17]
#define __pyx_kp_u_Return_a_measure_of_the_sequence __pyx_string_tab[18]
#define __pyx_kp_u_SequenceMatcher_get_grouped_opco_2 __pyx_string_tab[19]
#define __pyx_kp_u_SequenceMatcher_ratio_line_616 __pyx_string_tab[20]
#define __pyx_kp_u_SequenceMatcher_set_seq1_line_21 __pyx_string_tab[21]
#define __pyx_kp_u_SequenceMatcher_set_seq2_line_24 __pyx_string_tab[22]
#define __pyx_kp_u_SequenceMatcher_set_seqs_line_20 __pyx_string_tab[23]
#define __pyx_kp_u_Set_the_first_sequence_to_be_com __pyx_string_tab[24]
#define __pyx_kp_u_Set_the_second_sequence_to_be_co __pyx_string_tab[25]
#define __pyx_kp_u_Set_the_two_sequences_to_be_comp __pyx_string_tab[26]
#define __pyx_kp_u_Use_SequenceMatcher_to_return_li __pyx_string_tab[27]
#define __pyx_kp_u_When_replacing_one_block_of_lin __pyx_string_tab[28]
#define __pyx_kp_u__10 __pyx_string_tab[29]
#define __pyx_kp_u__11 __pyx_string_tab[30]
#define __pyx_kp_u__12 __pyx_string_tab[31]
#define __pyx_kp_u__13 __pyx_string_tab[32]
#define __pyx_kp_u__14 __pyx_string_tab[33]
#define __pyx_kp_u__15 __pyx_string_tab[34]
#define __pyx_kp_u__16 __pyx_string_tab[35]
#define __pyx_kp_u__17 __pyx_string_tab[36]
#define __pyx_kp_u__18 __pyx_string_tab[37]
#define __pyx_kp_u__19 __pyx_string_tab[38]
#define __pyx_kp_u__2 __pyx_string_tab[39]
#define __pyx_kp_u__20 __pyx_string_tab[40]
#define __pyx_kp_u__21 __pyx_string_tab[41]
#define __pyx_kp_u__22 __pyx_string_tab[42]
#define __pyx_kp_u__23 __pyx_string_tab[43]
#define __pyx_kp_u__24 __pyx_string_tab[44]
#define __pyx_kp_u__25 __pyx_string_tab[45]
#define __pyx_kp_u__26 __pyx_string_tab[46]
#define __pyx_kp_u__27 __pyx_string_tab[47]
#define __pyx_kp_u__28 __pyx_string_tab[48]
#define __pyx_kp_u__29 __pyx_string_tab[49]
#define __pyx_kp_u__3 __pyx_string_tab[50]
#define __pyx_kp_u__30 __pyx_string_tab[51]
#define __pyx_kp_u__31 __pyx_string_tab[52]
#define __pyx_kp_u__32 __pyx_string_tab[53]
#define __pyx_kp_u__33 __pyx_string_tab[54]
#define __pyx_kp_u__34 __pyx_string_tab[55]
#define __pyx_kp_u__35 __pyx_string_tab[56]
#define __pyx_kp_u__36 __pyx_string_tab[57]
#define __pyx_kp_u__37 __pyx_string_tab[58]
#define __pyx_kp_u__38 __pyx_string_tab[59]
#define __pyx_kp_u__39 __pyx_string_tab[60]
#define __pyx_kp_u__4 __pyx_string_tab[61]
#define __pyx_kp_u__40 __pyx_string_tab[62]
#define __pyx_kp_u__41 __pyx_string_tab[63]
#define __pyx_kp_u__42 __pyx_string_tab[64]
#define __pyx_kp_u__43 __pyx_string_tab[65]
#define __pyx_kp_u__44 __pyx_string_tab[66]
#define __pyx_kp_u__45 __pyx_string_tab[67]
#define __pyx_kp_u__46 __pyx_string_tab[68]
#define __pyx_kp_u__47 __pyx_string_tab[69]
#define __pyx_kp_u__5 __pyx_string_tab[70]
#define __pyx_kp_u__6 __pyx_string_tab[71]
#define __pyx_kp_u__7 __pyx_string_tab[72]
#define __pyx_kp_u__8 __pyx_string_tab[73]
#define __pyx_kp_u__9 __pyx_string_tab[74]
#define __pyx_kp_u_a_b_size __pyx_string_tab[75]
#define __pyx_kp_u_a_href_difflib_chg __pyx_string_tab[76]
#define __pyx_kp_u_a_href_difflib_chg__s_0_f_a __pyx_string_tab[77]
#define __pyx_kp_u_a_href_difflib_chg__s_top_t_a __pyx_string_tab[78]
#define __pyx_kp_u_add_note __pyx_string_tab[79]
#define __pyx_kp_u_all_arguments_must_be_bytes_not __pyx_string_tab[80]
#define __pyx_kp_u_all_arguments_must_be_str_not __pyx_string_tab[81]
#define __pyx_kp_u_amp __pyx_string_tab[82]
#define __pyx_kp_u_context_diff_line_1206 __pyx_string_tab[83]
#define __pyx_kp_u_cutoff_must_be_in_0_0_1_0 __pyx_string_tab[84]
#define __pyx_kp_u_d __pyx_string_tab[85]
#define __pyx_kp_u_disable __pyx_string_tab[86]
#define __pyx_kp_u_enable __pyx_string_tab[87]
#define __pyx_kp_u_from_d __pyx_string_tab[88]
#define __pyx_kp_u_gc __pyx_string_tab[89]
#define __pyx_kp_u_get_close_matches_line_687 __pyx_string_tab[90]
#define __pyx_kp_u_gt __pyx_string_tab[91]
#define __pyx_kp_u_id __pyx_string_tab[92]
#define __pyx_kp_u_id_difflib_chg __pyx_string_tab[93]
#define __pyx_kp_u_input_must_be_a_sequence_of_stri __pyx_string_tab[94]
#define __pyx_kp_u_isenabled __pyx_string_tab[95]
#define __pyx_kp_u_lines_to_compare_must_be_str_not __pyx_string_tab[96]
#define __pyx_kp_u_lt __pyx_string_tab[97]
#define __pyx_kp_u_n_a __pyx_string_tab[98]
#define __pyx_kp_u_n_must_be_0 __pyx_string_tab[99]
#define __pyx_kp_u_nbsp __pyx_string_tab[100]
#define __pyx_kp_u_ndiff_line_1335 __pyx_string_tab[101]
#define __pyx_kp_u_restore_line_2081 __pyx_string_tab[102]
#define __pyx_kp_u_root_color_scheme_light_dark_ta __pyx_string_tab[103]
#define __pyx_kp_u_span_2 __pyx_string_tab[104]
#define __pyx_kp_u_span_class_diff_add __pyx_string_tab[105]
#define __pyx_kp_u_span_class_diff_chg __pyx_string_tab[106]
#define __pyx_kp_u_span_class_diff_sub __pyx_string_tab[107]
#define __pyx_kp_u_src_lxml_html__difflib_py __pyx_string_tab[108]
#define __pyx_kp_u_stringsource __pyx_string_tab[109]
#define __pyx_kp_u_table_class_diff_id_difflib_chg __pyx_string_tab[110]
#define __pyx_kp_u_table_class_diff_summary_Legend __pyx_string_tab[111]
#define __pyx_kp_u_tbody_tbody __pyx_string_tab[112]
#define __pyx_kp_u_td __pyx_string_tab[113]
#define __pyx_kp_u_td_class_diff_header __pyx_string_tab[114]
#define __pyx_kp_u_td_td_nowrap_nowrap __pyx_string_tab[115]
#define __pyx_kp_u_td_td_td_nbsp_Empty_File_nbsp_t __pyx_string_tab[116]
#define __pyx_kp_u_td_td_td_nbsp_No_Differences_Fo __pyx_string_tab[117]
#define __pyx_kp_u_th_class_diff_next_br_th __pyx_string_tab[118]
#define __pyx_kp_u_th_colspan_2_class_diff_header __pyx_string_tab[119]
#define __pyx_kp_u_thead_tr_th_class_diff_next_br __pyx_string_tab[120]
#define __pyx_kp_u_to_d __pyx_string_tab[121]
#define __pyx_kp_u_tr_td_class_diff_next_s_s_td_s __pyx_string_tab[122]
#define __pyx_kp_u_tr_thead __pyx_string_tab[123]
#define __pyx_kp_u_unified_diff_line_1121 __pyx_string_tab[124]
#define __pyx_kp_u_unknown_delta_choice_must_be_1_o __pyx_string_tab[125]
#define __pyx_kp_u_unknown_tag __pyx_string_tab[126]
#define __pyx_kp_u_utf_8 __pyx_string_tab[127]
#define __pyx_n_u_ __pyx_string_tab[128]
#define __pyx_n_u_Differ __pyx_string_tab[129]
#define __pyx_n_u_Differ___init __pyx_string_tab[130]
#define __pyx_n_u_Differ__dump __pyx_string_tab[131]
#define __pyx_n_u_Differ__fancy_helper __pyx_string_tab[132]
#define __pyx_n_u_Differ__fancy_replace __pyx_string_tab[133]
#define __pyx_n_u_Differ__plain_replace __pyx_string_tab[134]
#define __pyx_n_u_Differ__qformat __pyx_string_tab[135]
#define __pyx_n_u_Differ_compare __pyx_string_tab[136]
#define __pyx_n_u_GenericAlias __pyx_string_tab[137]
#define __pyx_n_u_HtmlDiff __pyx_string_tab[138]
#define __pyx_n_u_HtmlDiff___init __pyx_string_tab[139]
#define __pyx_n_u_HtmlDiff__collect_lines __pyx_string_tab[140]
#define __pyx_n_u_HtmlDiff__convert_flags __pyx_string_tab[141]
#define __pyx_n_u_HtmlDiff__format_line __pyx_string_tab[142]
#define __pyx_n_u_HtmlDiff__line_wrapper __pyx_string_tab[143]
#define __pyx_n_u_HtmlDiff__make_prefix __pyx_string_tab[144]
#define __pyx_n_u_HtmlDiff__split_line __pyx_string_tab[145]
#define __pyx_n_u_HtmlDiff__tab_newline_replace __pyx_string_tab[146]
#define __pyx_n_u_HtmlDiff__tab_newline_replace_lo __pyx_string_tab[147]
#define __pyx_n_u_HtmlDiff_make_file __pyx_string_tab[148]
#define __pyx_n_u_HtmlDiff_make_table __pyx_string_tab[149]
#define __pyx_n_u_IS_CHARACTER_JUNK __pyx_string_tab[150]
#define __pyx_n_u_IS_LINE_JUNK __pyx_string_tab[151]
#define __pyx_n_u_Match __pyx_string_tab[152]
#define __pyx_n_u_Pyx_CFunc_8c8a55__4lxml_4html __pyx_string_tab[153]
#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[154]
#define __pyx_n_u_SequenceMatcher __pyx_string_tab[155]
#define __pyx_n_u_SequenceMatcher___chain_b __pyx_string_tab[156]
#define __pyx_n_u_SequenceMatcher___reduce_cython __pyx_string_tab[157]
#define __pyx_n_u_SequenceMatcher___setstate_cytho __pyx_string_tab[158]
#define __pyx_n_u_SequenceMatcher__chain_b __pyx_string_tab[159]
#define __pyx_n_u_SequenceMatcher_get_grouped_opco __pyx_string_tab[160]
#define __pyx_n_u_SequenceMatcher_ratio __pyx_string_tab[161]
#define __pyx_n_u_SequenceMatcher_set_seq1 __pyx_string_tab[162]
#define __pyx_n_u_SequenceMatcher_set_seq2 __pyx_string_tab[163]
#define __pyx_n_u_SequenceMatcher_set_seqs __pyx_string_tab[164]
#define __pyx_n_u_WINDOW __pyx_string_tab[165]
#define __pyx_n_u_X __pyx_string_tab[166]
#define __pyx_n_u_a __pyx_string_tab[167]
#define __pyx_n_u_aelt __pyx_string_tab[168]
#define __pyx_n_u_aequiv __pyx_string_tab[169]
#define __pyx_n_u_ahi __pyx_string_tab[170]
#define __pyx_n_u_ai1 __pyx_string_tab[171]
#define __pyx_n_u_ai2 __pyx_string_tab[172]
#define __pyx_n_u_aline __pyx_string_tab[173]
#define __pyx_n_u_all __pyx_string_tab[174]
#define __pyx_n_u_alo __pyx_string_tab[175]
#define __pyx_n_u_append __pyx_string_tab[176]
#define __pyx_n_u_arange __pyx_string_tab[177]
#define __pyx_n_u_arg __pyx_string_tab[178]
#define __pyx_n_u_args __pyx_string_tab[179]
#define __pyx_n_u_ascii __pyx_string_tab[180]
#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[181]
#define __pyx_n_u_atags __pyx_string_tab[182]
#define __pyx_n_u_autojunk __pyx_string_tab[183]
#define __pyx_n_u_b __pyx_string_tab[184]
#define __pyx_n_u_b2j __pyx_string_tab[185]
#define __pyx_n_u_begin __pyx_string_tab[186]
#define __pyx_n_u_beginning __pyx_string_tab[187]
#define __pyx_n_u_belt __pyx_string_tab[188]
#define __pyx_n_u_best_i __pyx_string_tab[189]
#define __pyx_n_u_best_j __pyx_string_tab[190]
#define __pyx_n_u_best_ratio __pyx_string_tab[191]
#define __pyx_n_u_bhi __pyx_string_tab[192]
#define __pyx_n_u_bj1 __pyx_string_tab[193]
#define __pyx_n_u_bj2 __pyx_string_tab[194]
#define __pyx_n_u_bline __pyx_string_tab[195]
#define __pyx_n_u_blo __pyx_string_tab[196]
#define __pyx_n_u_btags __pyx_string_tab[197]
#define __pyx_n_u_c __pyx_string_tab[198]
#define __pyx_n_u_cfunc_to_py __pyx_string_tab[199]
#define __pyx_n_u_ch __pyx_string_tab[200]
#define __pyx_n_u_chain_b __pyx_string_tab[201]
#define __pyx_n_u_change_re __pyx_string_tab[202]
#define __pyx_n_u_charjunk __pyx_string_tab[203]
#define __pyx_n_u_charjunk_2 __pyx_string_tab[204]
#define __pyx_n_u_charset __pyx_string_tab[205]
#define __pyx_n_u_check_types __pyx_string_tab[206]
#define __pyx_n_u_class_getitem __pyx_string_tab[207]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[208]
#define __pyx_n_u_close __pyx_string_tab[209]
#define __pyx_n_u_codes __pyx_string_tab[210]
#define __pyx_n_u_collect_lines __pyx_string_tab[211]
#define __pyx_n_u_collections __pyx_string_tab[212]
#define __pyx_n_u_compare __pyx_string_tab[213]
#define __pyx_n_u_compile __pyx_string_tab[214]
#define __pyx_n_u_context __pyx_string_tab[215]
#define __pyx_n_u_contextLines __pyx_string_tab[216]
#define __pyx_n_u_context_diff __pyx_string_tab[217]
#define __pyx_n_u_context_diff_locals_genexpr __pyx_string_tab[218]
#define __pyx_n_u_context_lines __pyx_string_tab[219]
#define __pyx_n_u_convert_flags __pyx_string_tab[220]
#define __pyx_n_u_count __pyx_string_tab[221]
#define __pyx_n_u_cqr __pyx_string_tab[222]
#define __pyx_n_u_cr __pyx_string_tab[223]
#define __pyx_n_u_crqr __pyx_string_tab[224]
#define __pyx_n_u_cruncher __pyx_string_tab[225]
#define __pyx_n_u_cutoff __pyx_string_tab[226]
#define __pyx_n_u_d_2 __pyx_string_tab[227]
#define __pyx_n_u_data_list __pyx_string_tab[228]
#define __pyx_n_u_data_rows __pyx_string_tab[229]
#define __pyx_n_u_decode __pyx_string_tab[230]
#define __pyx_n_u_default_prefix __pyx_string_tab[231]
#define __pyx_n_u_delete __pyx_string_tab[232]
#define __pyx_n_u_delta __pyx_string_tab[233]
#define __pyx_n_u_dfunc __pyx_string_tab[234]
#define __pyx_n_u_dict __pyx_string_tab[235]
#define __pyx_n_u_dict_2 __pyx_string_tab[236]
#define __pyx_n_u_diff_bytes __pyx_string_tab[237]
#define __pyx_n_u_diff_bytes_locals_decode __pyx_string_tab[238]
#define __pyx_n_u_diff_lines_iterator __pyx_string_tab[239]
#define __pyx_n_u_diffs __pyx_string_tab[240]
#define __pyx_n_u_doc __pyx_string_tab[241]
#define __pyx_n_u_dump __pyx_string_tab[242]
#define __pyx_n_u_dump_i __pyx_string_tab[243]
#define __pyx_n_u_dump_j __pyx_string_tab[244]
#define __pyx_n_u_elt __pyx_string_tab[245]
#define __pyx_n_u_encode __pyx_string_tab[246]
#define __pyx_n_u_end __pyx_string_tab[247]
#define __pyx_n_u_enumerate __pyx_string_tab[248]
#define __pyx_n_u_equal __pyx_string_tab[249]
#define __pyx_n_u_err __pyx_string_tab[250]
#define __pyx_n_u_expand_tabs __pyx_string_tab[251]
#define __pyx_n_u_expandtabs __pyx_string_tab[252]
#define __pyx_n_u_fancy_helper __pyx_string_tab[253]
#define __pyx_n_u_fancy_replace __pyx_string_tab[254]
#define __pyx_n_u_file1_range __pyx_string_tab[255]
#define __pyx_n_u_file2_range __pyx_string_tab[256]
#define __pyx_n_u_file_template __pyx_string_tab[257]
#define __pyx_n_u_first __pyx_string_tab[258]
#define __pyx_n_u_flag __pyx_string_tab[259]
#define __pyx_n_u_flaglist __pyx_string_tab[260]
#define __pyx_n_u_fmt __pyx_string_tab[261]
#define __pyx_n_u_format __pyx_string_tab[262]
#define __pyx_n_u_format_key __pyx_string_tab[263]
#define __pyx_n_u_format_line __pyx_string_tab[264]
#define __pyx_n_u_format_range_context __pyx_string_tab[265]
#define __pyx_n_u_format_range_unified __pyx_string_tab[266]
#define __pyx_n_u_found_diff __pyx_string_tab[267]
#define __pyx_n_u_fromDiff __pyx_string_tab[268]
#define __pyx_n_u_from_line __pyx_string_tab[269]
#define __pyx_n_u_fromdata __pyx_string_tab[270]
#define __pyx_n_u_fromdate __pyx_string_tab[271]
#define __pyx_n_u_fromdesc __pyx_string_tab[272]
#define __pyx_n_u_fromfile __pyx_string_tab[273]
#define __pyx_n_u_fromfiledate __pyx_string_tab[274]
#define __pyx_n_u_fromline __pyx_string_tab[275]
#define __pyx_n_u_fromlines __pyx_string_tab[276]
#define __pyx_n_u_fromlist __pyx_string_tab[277]
#define __pyx_n_u_fromprefix __pyx_string_tab[278]
#define __pyx_n_u_fromtext __pyx_string_tab[279]
#define __pyx_n_u_func __pyx_string_tab[280]
#define __pyx_n_u_func_2 __pyx_string_tab[281]
#define __pyx_n_u_g __pyx_string_tab[282]
#define __pyx_n_u_genexpr __pyx_string_tab[283]
#define __pyx_n_u_get __pyx_string_tab[284]
#define __pyx_n_u_get_close_matches __pyx_string_tab[285]
#define __pyx_n_u_get_grouped_opcodes __pyx_string_tab[286]
#define __pyx_n_u_getstate __pyx_string_tab[287]
#define __pyx_n_u_group __pyx_string_tab[288]
#define __pyx_n_u_header_row __pyx_string_tab[289]
#define __pyx_n_u_heapq __pyx_string_tab[290]
#define __pyx_n_u_hi __pyx_string_tab[291]
#define __pyx_n_u_i __pyx_string_tab[292]
#define __pyx_n_u_i1 __pyx_string_tab[293]
#define __pyx_n_u_i2 __pyx_string_tab[294]
#define __pyx_n_u_id_2 __pyx_string_tab[295]
#define __pyx_n_u_idxs __pyx_string_tab[296]
#define __pyx_n_u_in_change __pyx_string_tab[297]
#define __pyx_n_u_index __pyx_string_tab[298]
#define __pyx_n_u_indices __pyx_string_tab[299]
#define __pyx_n_u_init __pyx_string_tab[300]
#define __pyx_n_u_insert __pyx_string_tab[301]
#define __pyx_n_u_is_coroutine __pyx_string_tab[302]
#define __pyx_n_u_isjunk __pyx_string_tab[303]
#define __pyx_n_u_isspace __pyx_string_tab[304]
#define __pyx_n_u_items __pyx_string_tab[305]
#define __pyx_n_u_j __pyx_string_tab[306]
#define __pyx_n_u_j1 __pyx_string_tab[307]
#define __pyx_n_u_j2 __pyx_string_tab[308]
#define __pyx_n_u_junk __pyx_string_tab[309]
#define __pyx_n_u_keep_original_ws __pyx_string_tab[310]
#define __pyx_n_u_keep_original_ws_locals_genexpr __pyx_string_tab[311]
#define __pyx_n_u_key __pyx_string_tab[312]
#define __pyx_n_u_keys __pyx_string_tab[313]
#define __pyx_n_u_la __pyx_string_tab[314]
#define __pyx_n_u_last __pyx_string_tab[315]
#define __pyx_n_u_lb __pyx_string_tab[316]
#define __pyx_n_u_legend __pyx_string_tab[317]
#define __pyx_n_u_legend_2 __pyx_string_tab[318]
#define __pyx_n_u_length __pyx_string_tab[319]
#define __pyx_n_u_line __pyx_string_tab[320]
#define __pyx_n_u_line1 __pyx_string_tab[321]
#define __pyx_n_u_line2 __pyx_string_tab[322]
#define __pyx_n_u_line_iterator __pyx_string_tab[323]
#define __pyx_n_u_line_iterator_2 __pyx_string_tab[324]
#define __pyx_n_u_line_num __pyx_string_tab[325]
#define __pyx_n_u_line_pair_iterator __pyx_string_tab[326]
#define __pyx_n_u_line_pair_iterator_2 __pyx_string_tab[327]
#define __pyx_n_u_line_wrapper __pyx_string_tab[328]
#define __pyx_n_u_linejunk __pyx_string_tab[329]
#define __pyx_n_u_linejunk_2 __pyx_string_tab[330]
#define __pyx_n_u_linenum __pyx_string_tab[331]
#define __pyx_n_u_lines __pyx_string_tab[332]
#define __pyx_n_u_lines_to_write __pyx_string_tab[333]
#define __pyx_n_u_lineterm __pyx_string_tab[334]
#define __pyx_n_u_lo __pyx_string_tab[335]
#define __pyx_n_u_lxml_html__difflib __pyx_string_tab[336]
#define __pyx_n_u_main __pyx_string_tab[337]
#define __pyx_n_u_make __pyx_string_tab[338]
#define __pyx_n_u_make_file __pyx_string_tab[339]
#define __pyx_n_u_make_line __pyx_string_tab[340]
#define __pyx_n_u_make_prefix __pyx_string_tab[341]
#define __pyx_n_u_make_table __pyx_string_tab[342]
#define __pyx_n_u_map __pyx_string_tab[343]
#define __pyx_n_u_mark __pyx_string_tab[344]
#define __pyx_n_u_markers __pyx_string_tab[345]
#define __pyx_n_u_match_object __pyx_string_tab[346]
#define __pyx_n_u_matches __pyx_string_tab[347]
#define __pyx_n_u_max __pyx_string_tab[348]
#define __pyx_n_u_mdiff __pyx_string_tab[349]
#define __pyx_n_u_mdiff_locals__line_iterator __pyx_string_tab[350]
#define __pyx_n_u_mdiff_locals__line_pair_iterato __pyx_string_tab[351]
#define __pyx_n_u_mdiff_locals__make_line __pyx_string_tab[352]
#define __pyx_n_u_mdiff_locals__make_line_locals __pyx_string_tab[353]
#define __pyx_n_u_metaclass __pyx_string_tab[354]
#define __pyx_n_u_module __pyx_string_tab[355]
#define __pyx_n_u_mro_entries __pyx_string_tab[356]
#define __pyx_n_u_msg __pyx_string_tab[357]
#define __pyx_n_u_n __pyx_string_tab[358]
#define __pyx_n_u_name __pyx_string_tab[359]
#define __pyx_n_u_namedtuple __pyx_string_tab[360]
#define __pyx_n_u_namedtuple_2 __pyx_string_tab[361]
#define __pyx_n_u_ndiff __pyx_string_tab[362]
#define __pyx_n_u_new __pyx_string_tab[363]
#define __pyx_n_u_next __pyx_string_tab[364]
#define __pyx_n_u_next_href __pyx_string_tab[365]
#define __pyx_n_u_next_id __pyx_string_tab[366]
#define __pyx_n_u_nlargest __pyx_string_tab[367]
#define __pyx_n_u_nlargest_2 __pyx_string_tab[368]
#define __pyx_n_u_nn __pyx_string_tab[369]
#define __pyx_n_u_ntest __pyx_string_tab[370]
#define __pyx_n_u_num_blanks_pending __pyx_string_tab[371]
#define __pyx_n_u_num_blanks_to_yield __pyx_string_tab[372]
#define __pyx_n_u_num_chg __pyx_string_tab[373]
#define __pyx_n_u_num_lines __pyx_string_tab[374]
#define __pyx_n_u_numlines __pyx_string_tab[375]
#define __pyx_n_u_object __pyx_string_tab[376]
#define __pyx_n_u_pat __pyx_string_tab[377]
#define __pyx_n_u_plain_replace __pyx_string_tab[378]
#define __pyx_n_u_pop __pyx_string_tab[379]
#define __pyx_n_u_popular __pyx_string_tab[380]
#define __pyx_n_u_possibilities __pyx_string_tab[381]
#define __pyx_n_u_prefix __pyx_string_tab[382]
#define __pyx_n_u_prefix_2 __pyx_string_tab[383]
#define __pyx_n_u_prefixes __pyx_string_tab[384]
#define __pyx_n_u_prepare __pyx_string_tab[385]
#define __pyx_n_u_pyx_capi __pyx_string_tab[386]
#define __pyx_n_u_pyx_checksum __pyx_string_tab[387]
#define __pyx_n_u_pyx_result __pyx_string_tab[388]
#define __pyx_n_u_pyx_state __pyx_string_tab[389]
#define __pyx_n_u_pyx_type __pyx_string_tab[390]
#define __pyx_n_u_pyx_unpickle_SequenceMatcher __pyx_string_tab[391]
#define __pyx_n_u_pyx_vtable __pyx_string_tab[392]
#define __pyx_n_u_qformat __pyx_string_tab[393]
#define __pyx_n_u_qualname __pyx_string_tab[394]
#define __pyx_n_u_ratio __pyx_string_tab[395]
#define __pyx_n_u_ratio_locals_genexpr __pyx_string_tab[396]
#define __pyx_n_u_re __pyx_string_tab[397]
#define __pyx_n_u_record_sub_info __pyx_string_tab[398]
#define __pyx_n_u_reduce __pyx_string_tab[399]
#define __pyx_n_u_reduce_cython __pyx_string_tab[400]
#define __pyx_n_u_reduce_ex __pyx_string_tab[401]
#define __pyx_n_u_replace __pyx_string_tab[402]
#define __pyx_n_u_restore __pyx_string_tab[403]
#define __pyx_n_u_result __pyx_string_tab[404]
#define __pyx_n_u_reversed __pyx_string_tab[405]
#define __pyx_n_u_rstrip __pyx_string_tab[406]
#define __pyx_n_u_s __pyx_string_tab[407]
#define __pyx_n_u_score __pyx_string_tab[408]
#define __pyx_n_u_second __pyx_string_tab[409]
#define __pyx_n_u_self __pyx_string_tab[410]
#define __pyx_n_u_send __pyx_string_tab[411]
#define __pyx_n_u_set_name __pyx_string_tab[412]
#define __pyx_n_u_set_seq1 __pyx_string_tab[413]
#define __pyx_n_u_set_seq2 __pyx_string_tab[414]
#define __pyx_n_u_set_seqs __pyx_string_tab[415]
#define __pyx_n_u_setdefault __pyx_string_tab[416]
#define __pyx_n_u_setstate __pyx_string_tab[417]
#define __pyx_n_u_setstate_cython __pyx_string_tab[418]
#define __pyx_n_u_side __pyx_string_tab[419]
#define __pyx_n_u_size __pyx_string_tab[420]
#define __pyx_n_u_span __pyx_string_tab[421]
#define __pyx_n_u_split_line __pyx_string_tab[422]
#define __pyx_n_u_start __pyx_string_tab[423]
#define __pyx_n_u_started __pyx_string_tab[424]
#define __pyx_n_u_state __pyx_string_tab[425]
#define __pyx_n_u_stop __pyx_string_tab[426]
#define __pyx_n_u_strip __pyx_string_tab[427]
#define __pyx_n_u_styles __pyx_string_tab[428]
#define __pyx_n_u_styles_2 __pyx_string_tab[429]
#define __pyx_n_u_sub __pyx_string_tab[430]
#define __pyx_n_u_sub_info __pyx_string_tab[431]
#define __pyx_n_u_sum __pyx_string_tab[432]
#define __pyx_n_u_surrogateescape __pyx_string_tab[433]
#define __pyx_n_u_tab_newline_replace __pyx_string_tab[434]
#define __pyx_n_u_table __pyx_string_tab[435]
#define __pyx_n_u_table_template __pyx_string_tab[436]
#define __pyx_n_u_tabsize __pyx_string_tab[437]
#define __pyx_n_u_tabsize_2 __pyx_string_tab[438]
#define __pyx_n_u_tag __pyx_string_tab[439]
#define __pyx_n_u_tag_c __pyx_string_tab[440]
#define __pyx_n_u_tag_s __pyx_string_tab[441]
#define __pyx_n_u_test __pyx_string_tab[442]
#define __pyx_n_u_text __pyx_string_tab[443]
#define __pyx_n_u_throw __pyx_string_tab[444]
#define __pyx_n_u_to_diff __pyx_string_tab[445]
#define __pyx_n_u_to_line __pyx_string_tab[446]
#define __pyx_n_u_todata __pyx_string_tab[447]
#define __pyx_n_u_todate __pyx_string_tab[448]
#define __pyx_n_u_todesc __pyx_string_tab[449]
#define __pyx_n_u_tofile __pyx_string_tab[450]
#define __pyx_n_u_tofiledate __pyx_string_tab[451]
#define __pyx_n_u_toline __pyx_string_tab[452]
#define __pyx_n_u_tolines __pyx_string_tab[453]
#define __pyx_n_u_tolist __pyx_string_tab[454]
#define __pyx_n_u_toprefix __pyx_string_tab[455]
#define __pyx_n_u_totext __pyx_string_tab[456]
#define __pyx_n_u_triple __pyx_string_tab[457]
#define __pyx_n_u_type_name __pyx_string_tab[458]
#define __pyx_n_u_types __pyx_string_tab[459]
#define __pyx_n_u_unified_diff __pyx_string_tab[460]
#define __pyx_n_u_update __pyx_string_tab[461]
#define __pyx_n_u_use_setstate __pyx_string_tab[462]
#define __pyx_n_u_value __pyx_string_tab[463]
#define __pyx_n_u_values __pyx_string_tab[464]
#define __pyx_n_u_which __pyx_string_tab[465]
#define __pyx_n_u_word __pyx_string_tab[466]
#define __pyx_n_u_wrap __pyx_string_tab[467]
#define __pyx_n_u_wrapcolumn __pyx_string_tab[468]
#define __pyx_n_u_wrapcolumn_2 __pyx_string_tab[469]
#define __pyx_n_u_ws __pyx_string_tab[470]
#define __pyx_n_u_x __pyx_string_tab[471]
#define __pyx_n_u_xmlcharrefreplace __pyx_string_tab[472]
#define __pyx_n_u_zip __pyx_string_tab[473]
#define __pyx_kp_b__10 __pyx_string_tab[474]
#define __pyx_kp_b__2 __pyx_string_tab[475]
#define __pyx_kp_b_double_Py_ssize_t_Py_ssize_t__ca __pyx_string_tab[476]
#define __pyx_kp_b_iso88591_1 __pyx_string_tab[477]
#define __pyx_kp_b_iso88591_2U __pyx_string_tab[478]
#define __pyx_kp_b_iso88591_3c __pyx_string_tab[479]
#define __pyx_kp_b_iso88591_4xq_A_4_4q_4xq_A_4xq_T __pyx_string_tab[480]
#define __pyx_kp_b_iso88591_5_t2S_j_0_t4s_A_j_q_Q_q_Yaq_Q_1 __pyx_string_tab[481]
#define __pyx_kp_b_iso88591_6a_q_V1Bas_e1_6 __pyx_string_tab[482]
#define __pyx_kp_b_iso88591_6ar_1_c_IQfE_Qb_c_E_Qd_t1A_q_T __pyx_string_tab[483]
#define __pyx_kp_b_iso88591_A __pyx_string_tab[484]
#define __pyx_kp_b_iso88591_A_1G1IQ_a_a_1Ja __pyx_string_tab[485]
#define __pyx_kp_b_iso88591_A_2 __pyx_string_tab[486]
#define __pyx_kp_b_iso88591_A_2S_A_E_t_a __pyx_string_tab[487]
#define __pyx_kp_b_iso88591_A_2S_A_E_t_a_N_Ja __pyx_string_tab[488]
#define __pyx_kp_b_iso88591_A_3 __pyx_string_tab[489]
#define __pyx_kp_b_iso88591_A_3c_IWHA_q_M_F_gQd_q_q_gQa_G1A __pyx_string_tab[490]
#define __pyx_kp_b_iso88591_A_4q_WBiq_s_1_d_E_E_e2T_q_Qd_Q_W __pyx_string_tab[491]
#define __pyx_kp_b_iso88591_A_4xq_3as_1_AS_AQ_S_q_Bhiq_q_4q __pyx_string_tab[492]
#define __pyx_kp_b_iso88591_A_A_t81_avT_z __pyx_string_tab[493]
#define __pyx_kp_b_iso88591_A_D_G6_Cwiq_c_AU_7_1_IZq_Q_1_s_q __pyx_string_tab[494]
#define __pyx_kp_b_iso88591_A_IQa_IQa __pyx_string_tab[495]
#define __pyx_kp_b_iso88591_A_WA_q_AT_Rs_4q __pyx_string_tab[496]
#define __pyx_kp_b_iso88591_A_Zr_82XQ_A_Kq_1 __pyx_string_tab[497]
#define __pyx_kp_b_iso88591_A_a __pyx_string_tab[498]
#define __pyx_kp_b_iso88591_A_e2Q_c_XQfA_T_hhat7_4q_t81D_q_X __pyx_string_tab[499]
#define __pyx_kp_b_iso88591_A_q __pyx_string_tab[500]
#define __pyx_kp_b_iso88591_F_6_IXQc __pyx_string_tab[501]
#define __pyx_kp_b_iso88591_Kq_Q __pyx_string_tab[502]
#define __pyx_kp_b_iso88591_M_A_4q_4q_k_Yj_9A_A_waq __pyx_string_tab[503]
#define __pyx_kp_b_iso88591_N_1_a __pyx_string_tab[504]
#define __pyx_kp_b_iso88591_Q __pyx_string_tab[505]
#define __pyx_kp_b_iso88591_QfA __pyx_string_tab[506]
#define __pyx_kp_b_iso88591_T_T_D_D_d_kQUUbbffoos_t_F_F_J_J __pyx_string_tab[507]
#define __pyx_kp_b_iso88591__48 __pyx_string_tab[508]
#define __pyx_kp_b_iso88591__49 __pyx_string_tab[509]
#define __pyx_kp_b_iso88591_a_L_L __pyx_string_tab[510]
#define __pyx_kp_b_iso88591_b_U_A_t1_Q_wc_t7_1_7_Zr __pyx_string_tab[511]
#define __pyx_kp_b_iso88591_b_U_A_wc_t7_1_t1_Q_7_Q __pyx_string_tab[512]
#define __pyx_kp_b_iso88591_j_0_L_O1_M_M __pyx_string_tab[513]
#define __pyx_kp_b_iso88591_j_M_D_5Qj_1_A_A_az_y_A_t1_4q_D __pyx_string_tab[514]
#define __pyx_kp_b_iso88591_q_0_kQR_1_7_1_2DNRS_1 __pyx_string_tab[515]
#define __pyx_kp_b_iso88591_q_t3a_t6_Cq_3avWA __pyx_string_tab[516]
#define __pyx_kp_b_iso88591_r_T_1AQd_iq_Qaq_aq_r_T_1AQd_iq __pyx_string_tab[517]
#define __pyx_float_0_0 __pyx_number_tab[0]
#define __pyx_float_0_6 __pyx_number_tab[1]
#define __pyx_float_1_0 __pyx_number_tab[2]
#define __pyx_int_0 __pyx_number_tab[3]
#define __pyx_int_1 __pyx_number_tab[4]
#define __pyx_int_2 __pyx_number_tab[5]
#define __pyx_int_3 __pyx_number_tab[6]
#define __pyx_int_5 __pyx_number_tab[7]
#define __pyx_int_8 __pyx_number_tab[8]
#define __pyx_int_110135760 __pyx_number_tab[9]
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
  __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __Pyx_State_RemoveModule(NULL);
  #endif
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib_SequenceMatcher);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_defaults);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper);
  Py_CLEAR(clear_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore);
  Py_CLEAR(clear_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore);
  Py_CLEAR(clear_module_state->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self);
  Py_CLEAR(clear_module_state->__pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self);
  for (int i=0; i<2; ++i) { Py_CLEAR(clear_module_state->__pyx_slice[i]); }
  for (int i=0; i<32; ++i) { Py_CLEAR(clear_module_state->__pyx_tuple[i]); }
  for (int i=0; i<50; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<518; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<10; ++i) { Py_CLEAR(clear_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_clear_contents ### */
/* CommonTypesMetaclass.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CyFunctionType);

/* Generator.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_GeneratorType);

/* #### Code section: module_state_clear_end ### */
return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib_SequenceMatcher);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_defaults);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper);
  Py_VISIT(traverse_module_state->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore);
  Py_VISIT(traverse_module_state->__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore);
  Py_VISIT(traverse_module_state->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self);
  Py_VISIT(traverse_module_state->__pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self);
  for (int i=0; i<2; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_slice[i]); }
  for (int i=0; i<32; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_tuple[i]); }
  for (int i=0; i<50; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<518; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<10; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_traverse_contents ### */
/* CommonTypesMetaclass.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CyFunctionType);

/* Generator.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_GeneratorType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */

/* "cfunc.to_py":67
 * @cname("__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self")
 * cdef object __Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(double (*f)(SequenceMatcher) except *):
 *     def wrap(SequenceMatcher self):             # <<<<<<<<<<<<<<
 *         """wrap(self: 'SequenceMatcher') -> float"""
 *         return f(self)
*/

/* Python wrapper */
static PyObject *__pyx_pw_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_1wrap(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_wrap, "wrap(self: 'SequenceMatcher') -> float");
static PyMethodDef __pyx_mdef_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_1wrap = {"wrap", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_1wrap, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_wrap};
static PyObject *__pyx_pw_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_1wrap(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("wrap (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 67, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 67, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "wrap", 0) < (0)) __PYX_ERR(1, 67, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("wrap", 1, 1, 1, i); __PYX_ERR(1, 67, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 67, __pyx_L3_error)
    }
    __pyx_v_self = ((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("wrap", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 67, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("cfunc.to_py.__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self.wrap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, 1, "self", 0))) __PYX_ERR(1, 67, __pyx_L1_error)
  __pyx_r = __pyx_pf_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_wrap(__pyx_self, __pyx_v_self);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_wrap(PyObject *__pyx_self, struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self *__pyx_cur_scope;
  struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self *__pyx_outer_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("wrap", 0);
  __pyx_outer_scope = (struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self *) __Pyx_CyFunction_GetClosure(__pyx_self);
  __pyx_cur_scope = __pyx_outer_scope;

  /* "cfunc.to_py":69
 *     def wrap(SequenceMatcher self):
 *         """wrap(self: 'SequenceMatcher') -> float"""
 *         return f(self)             # <<<<<<<<<<<<<<
 *     return wrap
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_cur_scope->__pyx_v_f(__pyx_v_self); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 69, __pyx_L1_error)
  __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cfunc.to_py":67
 * @cname("__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self")
 * cdef object __Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(double (*f)(SequenceMatcher) except *):
 *     def wrap(SequenceMatcher self):             # <<<<<<<<<<<<<<
 *         """wrap(self: 'SequenceMatcher') -> float"""
 *         return f(self)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cfunc.to_py.__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self.wrap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cfunc.to_py":65
 * 
 * 
 * @cname("__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self")             # <<<<<<<<<<<<<<
 * cdef object __Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(double (*f)(SequenceMatcher) except *):
 *     def wrap(SequenceMatcher self):
*/

static PyObject *__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(double (*__pyx_v_f)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)) {
  struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self *__pyx_cur_scope;
  PyObject *__pyx_v_wrap = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self", 0);
  __pyx_cur_scope = (struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self *)__pyx_tp_new___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(__pyx_mstate_global->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(1, 65, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_f = __pyx_v_f;

  /* "cfunc.to_py":67
 * @cname("__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self")
 * cdef object __Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(double (*f)(SequenceMatcher) except *):
 *     def wrap(SequenceMatcher self):             # <<<<<<<<<<<<<<
 *         """wrap(self: 'SequenceMatcher') -> float"""
 *         return f(self)
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_11cfunc_dot_to_py_83__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_1wrap, 0, __pyx_mstate_global->__pyx_n_u_Pyx_CFunc_8c8a55__4lxml_4html, ((PyObject*)__pyx_cur_scope), __pyx_mstate_global->__pyx_n_u_cfunc_to_py, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_wrap = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cfunc.to_py":70
 *         """wrap(self: 'SequenceMatcher') -> float"""
 *         return f(self)
 *     return wrap             # <<<<<<<<<<<<<<
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_wrap);
  __pyx_r = __pyx_v_wrap;
  goto __pyx_L0;

  /* "cfunc.to_py":65
 * 
 * 
 * @cname("__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self")             # <<<<<<<<<<<<<<
 * cdef object __Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(double (*f)(SequenceMatcher) except *):
 *     def wrap(SequenceMatcher self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cfunc.to_py.__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_wrap);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":39
 *     class fake_cython:
 *         compiled = False
 *         def cfunc(self, func): return func             # <<<<<<<<<<<<<<
 *         def declare(self, _, value): return value
 *         def __getattr__(self, type_name): return "object"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_11fake_cython_1cfunc(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_11fake_cython_1cfunc = {"cfunc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_11fake_cython_1cfunc, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_11fake_cython_1cfunc(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cfunc (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_func_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 39, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 39, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 39, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "cfunc", 0) < (0)) __PYX_ERR(0, 39, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cfunc", 1, 2, 2, i); __PYX_ERR(0, 39, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 39, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 39, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_func = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cfunc", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 39, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.fake_cython.cfunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_11fake_cython_cfunc(__pyx_self, __pyx_v_self, __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_11fake_cython_cfunc(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cfunc", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_func);
  __pyx_r = __pyx_v_func;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":40
 *         compiled = False
 *         def cfunc(self, func): return func
 *         def declare(self, _, value): return value             # <<<<<<<<<<<<<<
 *         def __getattr__(self, type_name): return "object"
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_11fake_cython_3declare(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_11fake_cython_3declare = {"declare", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_11fake_cython_3declare, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_11fake_cython_3declare(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  CYTHON_UNUSED PyObject *__pyx_v__ = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("declare (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_,&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 40, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 40, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 40, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 40, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "declare", 0) < (0)) __PYX_ERR(0, 40, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("declare", 1, 3, 3, i); __PYX_ERR(0, 40, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 40, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 40, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 40, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v__ = values[1];
    __pyx_v_value = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("declare", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 40, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.fake_cython.declare", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_11fake_cython_2declare(__pyx_self, __pyx_v_self, __pyx_v__, __pyx_v_value);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_11fake_cython_2declare(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v__, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("declare", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_value);
  __pyx_r = __pyx_v_value;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":41
 *         def cfunc(self, func): return func
 *         def declare(self, _, value): return value
 *         def __getattr__(self, type_name): return "object"             # <<<<<<<<<<<<<<
 * 
 *     cython = fake_cython()
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_11fake_cython_5__getattr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_11fake_cython_5__getattr__ = {"__getattr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_11fake_cython_5__getattr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_11fake_cython_5__getattr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  CYTHON_UNUSED PyObject *__pyx_v_type_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_type_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 41, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 41, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 41, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getattr__", 0) < (0)) __PYX_ERR(0, 41, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, i); __PYX_ERR(0, 41, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 41, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 41, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_type_name = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 41, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.fake_cython.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_11fake_cython_4__getattr__(__pyx_self, __pyx_v_self, __pyx_v_type_name);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_11fake_cython_4__getattr__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_object);
  __pyx_r = __pyx_mstate_global->__pyx_n_u_object;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":60
 * Match = _namedtuple('Match', 'a b size')
 * 
 * def _calculate_ratio(matches, length):             # <<<<<<<<<<<<<<
 *     if length:
 *         return 2.0 * matches / length
*/

static double __pyx_f_4lxml_4html_8_difflib__calculate_ratio(Py_ssize_t __pyx_v_matches, Py_ssize_t __pyx_v_length) {
  double __pyx_r;
  int __pyx_t_1;
  double __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "lxml/html/_difflib.py":61
 * 
 * def _calculate_ratio(matches, length):
 *     if length:             # <<<<<<<<<<<<<<
 *         return 2.0 * matches / length
 *     return 1.0
*/
  __pyx_t_1 = (__pyx_v_length != 0);
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":62
 * def _calculate_ratio(matches, length):
 *     if length:
 *         return 2.0 * matches / length             # <<<<<<<<<<<<<<
 *     return 1.0
 * 
*/
    __pyx_t_2 = (2.0 * __pyx_v_matches);
    if (unlikely(__pyx_v_length == 0)) {
      PyErr_SetString(PyExc_ZeroDivisionError, "float division");
      __PYX_ERR(0, 62, __pyx_L1_error)
    }
    __pyx_r = (__pyx_t_2 / ((double)__pyx_v_length));
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":61
 * 
 * def _calculate_ratio(matches, length):
 *     if length:             # <<<<<<<<<<<<<<
 *         return 2.0 * matches / length
 *     return 1.0
*/
  }

  /* "lxml/html/_difflib.py":63
 *     if length:
 *         return 2.0 * matches / length
 *     return 1.0             # <<<<<<<<<<<<<<
 * 
 * class SequenceMatcher:
*/
  __pyx_r = 1.0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":60
 * Match = _namedtuple('Match', 'a b size')
 * 
 * def _calculate_ratio(matches, length):             # <<<<<<<<<<<<<<
 *     if length:
 *         return 2.0 * matches / length
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib._calculate_ratio", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "lxml/html/_difflib.py":141
 *     """
 * 
 *     def __init__(self, isjunk=None, a='', b='', autojunk=True):             # <<<<<<<<<<<<<<
 *         """Construct a SequenceMatcher.
 * 
*/

/* Python wrapper */
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher___init__, "Construct a SequenceMatcher.\n\n        Optional arg isjunk is None (the default), or a one-argument\n        function that takes a sequence element and returns true iff the\n        element is junk.  None is equivalent to passing \"lambda x: 0\", i.e.\n        no elements are considered to be junk.  For example, pass\n            lambda x: x in \" \\t\"\n        if you're comparing lines as sequences of characters, and don't\n        want to synch up on blanks or hard tabs.\n\n        Optional arg a is the first of two sequences to be compared.  By\n        default, an empty string.  The elements of a must be hashable.  See\n        also .set_seqs() and .set_seq1().\n\n        Optional arg b is the second of two sequences to be compared.  By\n        default, an empty string.  The elements of b must be hashable. See\n        also .set_seqs() and .set_seq2().\n\n        Optional arg autojunk should be set to False to disable the\n        \"automatic junk heuristic\" that treats popular elements as junk\n        (see module documentation for more information).\n        ");
#if CYTHON_UPDATE_DESCRIPTOR_DOC
struct wrapperbase __pyx_wrapperbase_4lxml_4html_8_difflib_15SequenceMatcher___init__;
#endif
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_isjunk = 0;
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_autojunk = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_isjunk,&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_b,&__pyx_mstate_global->__pyx_n_u_autojunk,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 141, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_VARARGS(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 141, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 141, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 141, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 141, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 141, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_kp_u__2));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_kp_u__2));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_True));
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_VARARGS(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 141, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 141, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 141, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 141, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_kp_u__2));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_kp_u__2));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_isjunk = values[0];
    __pyx_v_a = values[1];
    __pyx_v_b = values[2];
    __pyx_v_autojunk = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 4, __pyx_nargs); __PYX_ERR(0, 141, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher___init__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self), __pyx_v_isjunk, __pyx_v_a, __pyx_v_b, __pyx_v_autojunk);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher___init__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_isjunk, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_autojunk) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "lxml/html/_difflib.py":200
 *         #      nonjunk items in b treated as junk by the heuristic (if used).
 * 
 *         self.isjunk = isjunk             # <<<<<<<<<<<<<<
 *         self.a = self.b = None
 *         self.autojunk = autojunk
*/
  __Pyx_INCREF(__pyx_v_isjunk);
  __Pyx_GIVEREF(__pyx_v_isjunk);
  __Pyx_GOTREF(__pyx_v_self->isjunk);
  __Pyx_DECREF(__pyx_v_self->isjunk);
  __pyx_v_self->isjunk = __pyx_v_isjunk;

  /* "lxml/html/_difflib.py":201
 * 
 *         self.isjunk = isjunk
 *         self.a = self.b = None             # <<<<<<<<<<<<<<
 *         self.autojunk = autojunk
 *         self.set_seqs(a, b)
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->a);
  __Pyx_DECREF(__pyx_v_self->a);
  __pyx_v_self->a = Py_None;
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->b);
  __Pyx_DECREF(__pyx_v_self->b);
  __pyx_v_self->b = Py_None;

  /* "lxml/html/_difflib.py":202
 *         self.isjunk = isjunk
 *         self.a = self.b = None
 *         self.autojunk = autojunk             # <<<<<<<<<<<<<<
 *         self.set_seqs(a, b)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_autojunk); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 202, __pyx_L1_error)
  __pyx_v_self->autojunk = __pyx_t_1;

  /* "lxml/html/_difflib.py":203
 *         self.a = self.b = None
 *         self.autojunk = autojunk
 *         self.set_seqs(a, b)             # <<<<<<<<<<<<<<
 * 
 *     def set_seqs(self, a, b):
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_a, __pyx_v_b};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_seqs, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":141
 *     """
 * 
 *     def __init__(self, isjunk=None, a='', b='', autojunk=True):             # <<<<<<<<<<<<<<
 *         """Construct a SequenceMatcher.
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":205
 *         self.set_seqs(a, b)
 * 
 *     def set_seqs(self, a, b):             # <<<<<<<<<<<<<<
 *         """Set the two sequences to be compared.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_3set_seqs(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_2set_seqs, "Set the two sequences to be compared.\n\n        >>> s = SequenceMatcher()\n        >>> s.set_seqs(\"abcd\", \"bcde\")\n        >>> s.ratio()\n        0.75\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_3set_seqs = {"set_seqs", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_3set_seqs, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_2set_seqs};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_3set_seqs(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_b = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_seqs (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_b,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 205, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 205, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 205, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_seqs", 0) < (0)) __PYX_ERR(0, 205, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_seqs", 1, 2, 2, i); __PYX_ERR(0, 205, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 205, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 205, __pyx_L3_error)
    }
    __pyx_v_a = values[0];
    __pyx_v_b = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_seqs", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 205, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.set_seqs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_2set_seqs(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self), __pyx_v_a, __pyx_v_b);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_2set_seqs(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_seqs", 0);

  /* "lxml/html/_difflib.py":214
 *         """
 * 
 *         self.set_seq1(a)             # <<<<<<<<<<<<<<
 *         self.set_seq2(b)
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_a};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_seq1, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":215
 * 
 *         self.set_seq1(a)
 *         self.set_seq2(b)             # <<<<<<<<<<<<<<
 * 
 *     def set_seq1(self, a):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_b};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_seq2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":205
 *         self.set_seqs(a, b)
 * 
 *     def set_seqs(self, a, b):             # <<<<<<<<<<<<<<
 *         """Set the two sequences to be compared.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.set_seqs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":217
 *         self.set_seq2(b)
 * 
 *     def set_seq1(self, a):             # <<<<<<<<<<<<<<
 *         """Set the first sequence to be compared.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_5set_seq1(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_4set_seq1, "Set the first sequence to be compared.\n\n        The second sequence to be compared is not changed.\n\n        >>> s = SequenceMatcher(None, \"abcd\", \"bcde\")\n        >>> s.ratio()\n        0.75\n        >>> s.set_seq1(\"bcde\")\n        >>> s.ratio()\n        1.0\n        >>>\n\n        SequenceMatcher computes and caches detailed information about the\n        second sequence, so if you want to compare one sequence S against\n        many sequences, use .set_seq2(S) once and call .set_seq1(x)\n        repeatedly for each of the other sequences.\n\n        See also set_seqs() and set_seq2().\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_5set_seq1 = {"set_seq1", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_5set_seq1, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_4set_seq1};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_5set_seq1(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_a = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_seq1 (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_a,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 217, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 217, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_seq1", 0) < (0)) __PYX_ERR(0, 217, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_seq1", 1, 1, 1, i); __PYX_ERR(0, 217, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 217, __pyx_L3_error)
    }
    __pyx_v_a = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_seq1", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 217, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.set_seq1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_4set_seq1(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self), __pyx_v_a);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_4set_seq1(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_a) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("set_seq1", 0);

  /* "lxml/html/_difflib.py":238
 *         """
 * 
 *         if a is self.a:             # <<<<<<<<<<<<<<
 *             return
 *         self.a = a
*/
  __pyx_t_1 = (__pyx_v_a == __pyx_v_self->a);
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":239
 * 
 *         if a is self.a:
 *             return             # <<<<<<<<<<<<<<
 *         self.a = a
 *         self.matching_blocks = self.opcodes = None
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":238
 *         """
 * 
 *         if a is self.a:             # <<<<<<<<<<<<<<
 *             return
 *         self.a = a
*/
  }

  /* "lxml/html/_difflib.py":240
 *         if a is self.a:
 *             return
 *         self.a = a             # <<<<<<<<<<<<<<
 *         self.matching_blocks = self.opcodes = None
 * 
*/
  __Pyx_INCREF(__pyx_v_a);
  __Pyx_GIVEREF(__pyx_v_a);
  __Pyx_GOTREF(__pyx_v_self->a);
  __Pyx_DECREF(__pyx_v_self->a);
  __pyx_v_self->a = __pyx_v_a;

  /* "lxml/html/_difflib.py":241
 *             return
 *         self.a = a
 *         self.matching_blocks = self.opcodes = None             # <<<<<<<<<<<<<<
 * 
 *     def set_seq2(self, b):
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->matching_blocks);
  __Pyx_DECREF(__pyx_v_self->matching_blocks);
  __pyx_v_self->matching_blocks = ((PyObject*)Py_None);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->opcodes);
  __Pyx_DECREF(__pyx_v_self->opcodes);
  __pyx_v_self->opcodes = ((PyObject*)Py_None);

  /* "lxml/html/_difflib.py":217
 *         self.set_seq2(b)
 * 
 *     def set_seq1(self, a):             # <<<<<<<<<<<<<<
 *         """Set the first sequence to be compared.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":243
 *         self.matching_blocks = self.opcodes = None
 * 
 *     def set_seq2(self, b):             # <<<<<<<<<<<<<<
 *         """Set the second sequence to be compared.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_7set_seq2(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_6set_seq2, "Set the second sequence to be compared.\n\n        The first sequence to be compared is not changed.\n\n        >>> s = SequenceMatcher(None, \"abcd\", \"bcde\")\n        >>> s.ratio()\n        0.75\n        >>> s.set_seq2(\"abcd\")\n        >>> s.ratio()\n        1.0\n        >>>\n\n        SequenceMatcher computes and caches detailed information about the\n        second sequence, so if you want to compare one sequence S against\n        many sequences, use .set_seq2(S) once and call .set_seq1(x)\n        repeatedly for each of the other sequences.\n\n        See also set_seqs() and set_seq1().\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_7set_seq2 = {"set_seq2", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_7set_seq2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_6set_seq2};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_7set_seq2(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_b = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_seq2 (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_b,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 243, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 243, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_seq2", 0) < (0)) __PYX_ERR(0, 243, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_seq2", 1, 1, 1, i); __PYX_ERR(0, 243, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 243, __pyx_L3_error)
    }
    __pyx_v_b = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_seq2", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 243, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.set_seq2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_6set_seq2(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self), __pyx_v_b);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_6set_seq2(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_seq2", 0);

  /* "lxml/html/_difflib.py":264
 *         """
 * 
 *         if b is self.b:             # <<<<<<<<<<<<<<
 *             return
 *         self.b = b
*/
  __pyx_t_1 = (__pyx_v_b == __pyx_v_self->b);
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":265
 * 
 *         if b is self.b:
 *             return             # <<<<<<<<<<<<<<
 *         self.b = b
 *         self.matching_blocks = self.opcodes = None
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":264
 *         """
 * 
 *         if b is self.b:             # <<<<<<<<<<<<<<
 *             return
 *         self.b = b
*/
  }

  /* "lxml/html/_difflib.py":266
 *         if b is self.b:
 *             return
 *         self.b = b             # <<<<<<<<<<<<<<
 *         self.matching_blocks = self.opcodes = None
 *         self.fullbcount = None
*/
  __Pyx_INCREF(__pyx_v_b);
  __Pyx_GIVEREF(__pyx_v_b);
  __Pyx_GOTREF(__pyx_v_self->b);
  __Pyx_DECREF(__pyx_v_self->b);
  __pyx_v_self->b = __pyx_v_b;

  /* "lxml/html/_difflib.py":267
 *             return
 *         self.b = b
 *         self.matching_blocks = self.opcodes = None             # <<<<<<<<<<<<<<
 *         self.fullbcount = None
 *         self.__chain_b()
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->matching_blocks);
  __Pyx_DECREF(__pyx_v_self->matching_blocks);
  __pyx_v_self->matching_blocks = ((PyObject*)Py_None);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->opcodes);
  __Pyx_DECREF(__pyx_v_self->opcodes);
  __pyx_v_self->opcodes = ((PyObject*)Py_None);

  /* "lxml/html/_difflib.py":268
 *         self.b = b
 *         self.matching_blocks = self.opcodes = None
 *         self.fullbcount = None             # <<<<<<<<<<<<<<
 *         self.__chain_b()
 * 
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->fullbcount);
  __Pyx_DECREF(__pyx_v_self->fullbcount);
  __pyx_v_self->fullbcount = ((PyObject*)Py_None);

  /* "lxml/html/_difflib.py":269
 *         self.matching_blocks = self.opcodes = None
 *         self.fullbcount = None
 *         self.__chain_b()             # <<<<<<<<<<<<<<
 * 
 *     # For each element x in b, set b2j[x] to a list of the indices in
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_SequenceMatcher__chain_b, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":243
 *         self.matching_blocks = self.opcodes = None
 * 
 *     def set_seq2(self, b):             # <<<<<<<<<<<<<<
 *         """Set the second sequence to be compared.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.set_seq2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":287
 *     # repeatedly
 * 
 *     def __chain_b(self):             # <<<<<<<<<<<<<<
 *         # Because isjunk is a user-defined (not C) function, and we test
 *         # for junk a LOT, it's important to minimize the number of calls.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_9_SequenceMatcher__chain_b(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_9_SequenceMatcher__chain_b = {"_SequenceMatcher__chain_b", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_9_SequenceMatcher__chain_b, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_9_SequenceMatcher__chain_b(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_SequenceMatcher__chain_b (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_SequenceMatcher__chain_b", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_SequenceMatcher__chain_b", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_8__chain_b(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_8__chain_b(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  PyObject *__pyx_v_b = NULL;
  PyObject *__pyx_v_b2j = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_elt = NULL;
  PyObject *__pyx_v_indices = NULL;
  PyObject *__pyx_v_junk = NULL;
  PyObject *__pyx_v_isjunk = NULL;
  PyObject *__pyx_v_popular = NULL;
  Py_ssize_t __pyx_v_n;
  Py_ssize_t __pyx_v_ntest;
  PyObject *__pyx_v_idxs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  size_t __pyx_t_12;
  int __pyx_t_13;
  Py_ssize_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_SequenceMatcher__chain_b", 0);

  /* "lxml/html/_difflib.py":298
 *         # out the junk later is much cheaper than building b2j "right"
 *         # from the start.
 *         b = self.b             # <<<<<<<<<<<<<<
 *         self.b2j = b2j = {}
 * 
*/
  __pyx_t_1 = __pyx_v_self->b;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_b = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":299
 *         # from the start.
 *         b = self.b
 *         self.b2j = b2j = {}             # <<<<<<<<<<<<<<
 * 
 *         for i, elt in enumerate(b):
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->b2j);
  __Pyx_DECREF(__pyx_v_self->b2j);
  __pyx_v_self->b2j = __pyx_t_1;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_b2j = __pyx_t_1;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":301
 *         self.b2j = b2j = {}
 * 
 *         for i, elt in enumerate(b):             # <<<<<<<<<<<<<<
 *             indices = b2j.setdefault(elt, [])
 *             indices.append(i)
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_1 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v_b)) || PyTuple_CheckExact(__pyx_v_b)) {
    __pyx_t_2 = __pyx_v_b; __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_b); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 301, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 301, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_3;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 301, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3);
        #endif
        ++__pyx_t_3;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 301, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_2);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 301, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":302
 * 
 *         for i, elt in enumerate(b):
 *             indices = b2j.setdefault(elt, [])             # <<<<<<<<<<<<<<
 *             indices.append(i)
 * 
*/
    __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyDict_SetDefault(__pyx_v_b2j, __pyx_v_elt, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_indices, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "lxml/html/_difflib.py":303
 *         for i, elt in enumerate(b):
 *             indices = b2j.setdefault(elt, [])
 *             indices.append(i)             # <<<<<<<<<<<<<<
 * 
 *         # Purge junk elements
*/
    __pyx_t_7 = __Pyx_PyObject_Append(__pyx_v_indices, __pyx_v_i); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 303, __pyx_L1_error)

    /* "lxml/html/_difflib.py":301
 *         self.b2j = b2j = {}
 * 
 *         for i, elt in enumerate(b):             # <<<<<<<<<<<<<<
 *             indices = b2j.setdefault(elt, [])
 *             indices.append(i)
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":306
 * 
 *         # Purge junk elements
 *         self.bjunk = junk = set()             # <<<<<<<<<<<<<<
 *         isjunk = self.isjunk
 *         if isjunk:
*/
  __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->bjunk);
  __Pyx_DECREF(__pyx_v_self->bjunk);
  __pyx_v_self->bjunk = __pyx_t_1;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_junk = __pyx_t_1;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":307
 *         # Purge junk elements
 *         self.bjunk = junk = set()
 *         isjunk = self.isjunk             # <<<<<<<<<<<<<<
 *         if isjunk:
 *             for elt in b2j.keys():
*/
  __pyx_t_1 = __pyx_v_self->isjunk;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_isjunk = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":308
 *         self.bjunk = junk = set()
 *         isjunk = self.isjunk
 *         if isjunk:             # <<<<<<<<<<<<<<
 *             for elt in b2j.keys():
 *                 if isjunk(elt):
*/
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_isjunk); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 308, __pyx_L1_error)
  if (__pyx_t_8) {

    /* "lxml/html/_difflib.py":309
 *         isjunk = self.isjunk
 *         if isjunk:
 *             for elt in b2j.keys():             # <<<<<<<<<<<<<<
 *                 if isjunk(elt):
 *                     junk.add(elt)
*/
    __pyx_t_3 = 0;
    __pyx_t_2 = __Pyx_dict_iterator(__pyx_v_b2j, 1, __pyx_mstate_global->__pyx_n_u_keys, (&__pyx_t_9), (&__pyx_t_10)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_2;
    __pyx_t_2 = 0;
    while (1) {
      __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_9, &__pyx_t_3, &__pyx_t_2, NULL, NULL, __pyx_t_10);
      if (unlikely(__pyx_t_11 == 0)) break;
      if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 309, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "lxml/html/_difflib.py":310
 *         if isjunk:
 *             for elt in b2j.keys():
 *                 if isjunk(elt):             # <<<<<<<<<<<<<<
 *                     junk.add(elt)
 *             for elt in junk: # separate loop avoids separate list of keys
*/
      __pyx_t_6 = NULL;
      __Pyx_INCREF(__pyx_v_isjunk);
      __pyx_t_5 = __pyx_v_isjunk; 
      __pyx_t_12 = 1;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
        assert(__pyx_t_6);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
        __pyx_t_12 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_elt};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 310, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 310, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_8) {

        /* "lxml/html/_difflib.py":311
 *             for elt in b2j.keys():
 *                 if isjunk(elt):
 *                     junk.add(elt)             # <<<<<<<<<<<<<<
 *             for elt in junk: # separate loop avoids separate list of keys
 *                 del b2j[elt]
*/
        __pyx_t_7 = PySet_Add(__pyx_v_junk, __pyx_v_elt); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 311, __pyx_L1_error)

        /* "lxml/html/_difflib.py":310
 *         if isjunk:
 *             for elt in b2j.keys():
 *                 if isjunk(elt):             # <<<<<<<<<<<<<<
 *                     junk.add(elt)
 *             for elt in junk: # separate loop avoids separate list of keys
*/
      }
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":312
 *                 if isjunk(elt):
 *                     junk.add(elt)
 *             for elt in junk: # separate loop avoids separate list of keys             # <<<<<<<<<<<<<<
 *                 del b2j[elt]
 * 
*/
    __pyx_t_9 = 0;
    __pyx_t_2 = __Pyx_set_iterator(__pyx_v_junk, 1, (&__pyx_t_3), (&__pyx_t_10)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 312, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_2;
    __pyx_t_2 = 0;
    while (1) {
      __pyx_t_11 = __Pyx_set_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_9, &__pyx_t_2, __pyx_t_10);
      if (unlikely(__pyx_t_11 == 0)) break;
      if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 312, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "lxml/html/_difflib.py":313
 *                     junk.add(elt)
 *             for elt in junk: # separate loop avoids separate list of keys
 *                 del b2j[elt]             # <<<<<<<<<<<<<<
 * 
 *         # Purge popular elements that are not junk
*/
      if (unlikely((PyDict_DelItem(__pyx_v_b2j, __pyx_v_elt) < 0))) __PYX_ERR(0, 313, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":308
 *         self.bjunk = junk = set()
 *         isjunk = self.isjunk
 *         if isjunk:             # <<<<<<<<<<<<<<
 *             for elt in b2j.keys():
 *                 if isjunk(elt):
*/
  }

  /* "lxml/html/_difflib.py":316
 * 
 *         # Purge popular elements that are not junk
 *         self.bpopular = popular = set()             # <<<<<<<<<<<<<<
 *         n = len(b)
 *         if self.autojunk and n >= 200:
*/
  __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->bpopular);
  __Pyx_DECREF(__pyx_v_self->bpopular);
  __pyx_v_self->bpopular = __pyx_t_1;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_popular = __pyx_t_1;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":317
 *         # Purge popular elements that are not junk
 *         self.bpopular = popular = set()
 *         n = len(b)             # <<<<<<<<<<<<<<
 *         if self.autojunk and n >= 200:
 *             ntest = n // 100 + 1
*/
  __pyx_t_3 = PyObject_Length(__pyx_v_b); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 317, __pyx_L1_error)
  __pyx_v_n = __pyx_t_3;

  /* "lxml/html/_difflib.py":318
 *         self.bpopular = popular = set()
 *         n = len(b)
 *         if self.autojunk and n >= 200:             # <<<<<<<<<<<<<<
 *             ntest = n // 100 + 1
 *             for elt, idxs in b2j.items():
*/
  if (__pyx_v_self->autojunk) {
  } else {
    __pyx_t_8 = __pyx_v_self->autojunk;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_13 = (__pyx_v_n >= 0xC8);
  __pyx_t_8 = __pyx_t_13;
  __pyx_L13_bool_binop_done:;
  if (__pyx_t_8) {

    /* "lxml/html/_difflib.py":319
 *         n = len(b)
 *         if self.autojunk and n >= 200:
 *             ntest = n // 100 + 1             # <<<<<<<<<<<<<<
 *             for elt, idxs in b2j.items():
 *                 if len(idxs) > ntest:
*/
    __pyx_v_ntest = (__Pyx_div_Py_ssize_t(__pyx_v_n, 0x64, 1) + 1);

    /* "lxml/html/_difflib.py":320
 *         if self.autojunk and n >= 200:
 *             ntest = n // 100 + 1
 *             for elt, idxs in b2j.items():             # <<<<<<<<<<<<<<
 *                 if len(idxs) > ntest:
 *                     popular.add(elt)
*/
    __pyx_t_3 = 0;
    __pyx_t_2 = __Pyx_dict_iterator(__pyx_v_b2j, 1, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_9), (&__pyx_t_10)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_2;
    __pyx_t_2 = 0;
    while (1) {
      __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_9, &__pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, __pyx_t_10);
      if (unlikely(__pyx_t_11 == 0)) break;
      if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 320, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_2);
      __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_idxs, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "lxml/html/_difflib.py":321
 *             ntest = n // 100 + 1
 *             for elt, idxs in b2j.items():
 *                 if len(idxs) > ntest:             # <<<<<<<<<<<<<<
 *                     popular.add(elt)
 *             for elt in popular: # ditto; as fast for 1% deletion
*/
      __pyx_t_14 = PyObject_Length(__pyx_v_idxs); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(0, 321, __pyx_L1_error)
      __pyx_t_8 = (__pyx_t_14 > __pyx_v_ntest);
      if (__pyx_t_8) {

        /* "lxml/html/_difflib.py":322
 *             for elt, idxs in b2j.items():
 *                 if len(idxs) > ntest:
 *                     popular.add(elt)             # <<<<<<<<<<<<<<
 *             for elt in popular: # ditto; as fast for 1% deletion
 *                 del b2j[elt]
*/
        __pyx_t_7 = PySet_Add(__pyx_v_popular, __pyx_v_elt); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 322, __pyx_L1_error)

        /* "lxml/html/_difflib.py":321
 *             ntest = n // 100 + 1
 *             for elt, idxs in b2j.items():
 *                 if len(idxs) > ntest:             # <<<<<<<<<<<<<<
 *                     popular.add(elt)
 *             for elt in popular: # ditto; as fast for 1% deletion
*/
      }
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":323
 *                 if len(idxs) > ntest:
 *                     popular.add(elt)
 *             for elt in popular: # ditto; as fast for 1% deletion             # <<<<<<<<<<<<<<
 *                 del b2j[elt]
 * 
*/
    __pyx_t_9 = 0;
    __pyx_t_5 = __Pyx_set_iterator(__pyx_v_popular, 1, (&__pyx_t_3), (&__pyx_t_10)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 323, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_5;
    __pyx_t_5 = 0;
    while (1) {
      __pyx_t_11 = __Pyx_set_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_9, &__pyx_t_5, __pyx_t_10);
      if (unlikely(__pyx_t_11 == 0)) break;
      if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "lxml/html/_difflib.py":324
 *                     popular.add(elt)
 *             for elt in popular: # ditto; as fast for 1% deletion
 *                 del b2j[elt]             # <<<<<<<<<<<<<<
 * 
 *     def find_longest_match(self, alo=0, ahi_=None, blo=0, bhi_=None):
*/
      if (unlikely((PyDict_DelItem(__pyx_v_b2j, __pyx_v_elt) < 0))) __PYX_ERR(0, 324, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":318
 *         self.bpopular = popular = set()
 *         n = len(b)
 *         if self.autojunk and n >= 200:             # <<<<<<<<<<<<<<
 *             ntest = n // 100 + 1
 *             for elt, idxs in b2j.items():
*/
  }

  /* "lxml/html/_difflib.py":287
 *     # repeatedly
 * 
 *     def __chain_b(self):             # <<<<<<<<<<<<<<
 *         # Because isjunk is a user-defined (not C) function, and we test
 *         # for junk a LOT, it's important to minimize the number of calls.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher._SequenceMatcher__chain_b", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_XDECREF(__pyx_v_b2j);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_elt);
  __Pyx_XDECREF(__pyx_v_indices);
  __Pyx_XDECREF(__pyx_v_junk);
  __Pyx_XDECREF(__pyx_v_isjunk);
  __Pyx_XDECREF(__pyx_v_popular);
  __Pyx_XDECREF(__pyx_v_idxs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":326
 *                 del b2j[elt]
 * 
 *     def find_longest_match(self, alo=0, ahi_=None, blo=0, bhi_=None):             # <<<<<<<<<<<<<<
 *         """Find longest matching block in a[alo:ahi] and b[blo:bhi].
 * 
*/

static PyObject *__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, struct __pyx_opt_args_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match *__pyx_optional_args) {
  Py_ssize_t __pyx_v_alo = ((Py_ssize_t)0);
  PyObject *__pyx_v_ahi_ = ((PyObject *)Py_None);
  Py_ssize_t __pyx_v_blo = ((Py_ssize_t)0);
  PyObject *__pyx_v_bhi_ = ((PyObject *)Py_None);
  PyObject *__pyx_v_b2j = 0;
  PyObject *__pyx_v_j2len = 0;
  PyObject *__pyx_v_newj2len = 0;
  Py_ssize_t __pyx_v_besti;
  Py_ssize_t __pyx_v_bestj;
  Py_ssize_t __pyx_v_bestsize;
  Py_ssize_t __pyx_v_ahi;
  Py_ssize_t __pyx_v_bhi;
  Py_ssize_t __pyx_v_i;
  Py_ssize_t __pyx_v_j;
  Py_ssize_t __pyx_v_k;
  PyObject *__pyx_v_bjunk = 0;
  PyObject *__pyx_v_a = NULL;
  PyObject *__pyx_v_b = NULL;
  PyObject *__pyx_v_nothing = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  size_t __pyx_t_17;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("find_longest_match", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_alo = __pyx_optional_args->alo;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_ahi_ = __pyx_optional_args->ahi_;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_blo = __pyx_optional_args->blo;
          if (__pyx_optional_args->__pyx_n > 3) {
            __pyx_v_bhi_ = __pyx_optional_args->bhi_;
          }
        }
      }
    }
  }

  /* "lxml/html/_difflib.py":384
 *         # the unique 'b's and then matching the first two 'a's.
 * 
 *         bjunk: set = self.bjunk             # <<<<<<<<<<<<<<
 *         a, b, b2j = self.a, self.b, self.b2j
 *         ahi = len(a) if ahi_ is None else ahi_
*/
  __pyx_t_1 = __pyx_v_self->bjunk;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_bjunk = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":385
 * 
 *         bjunk: set = self.bjunk
 *         a, b, b2j = self.a, self.b, self.b2j             # <<<<<<<<<<<<<<
 *         ahi = len(a) if ahi_ is None else ahi_
 *         bhi = len(b) if bhi_ is None else bhi_
*/
  __pyx_t_1 = __pyx_v_self->a;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_v_self->b;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = __pyx_v_self->b2j;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_v_a = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_v_b = __pyx_t_2;
  __pyx_t_2 = 0;
  __pyx_v_b2j = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":386
 *         bjunk: set = self.bjunk
 *         a, b, b2j = self.a, self.b, self.b2j
 *         ahi = len(a) if ahi_ is None else ahi_             # <<<<<<<<<<<<<<
 *         bhi = len(b) if bhi_ is None else bhi_
 *         besti, bestj, bestsize = alo, blo, 0
*/
  __pyx_t_5 = (__pyx_v_ahi_ == Py_None);
  if (__pyx_t_5) {
    __pyx_t_6 = PyObject_Length(__pyx_v_a); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 386, __pyx_L1_error)
    __pyx_t_4 = __pyx_t_6;
  } else {
    __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_ahi_); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 386, __pyx_L1_error)
    __pyx_t_4 = __pyx_t_6;
  }
  __pyx_v_ahi = __pyx_t_4;

  /* "lxml/html/_difflib.py":387
 *         a, b, b2j = self.a, self.b, self.b2j
 *         ahi = len(a) if ahi_ is None else ahi_
 *         bhi = len(b) if bhi_ is None else bhi_             # <<<<<<<<<<<<<<
 *         besti, bestj, bestsize = alo, blo, 0
 *         # find longest junk-free match
*/
  __pyx_t_5 = (__pyx_v_bhi_ == Py_None);
  if (__pyx_t_5) {
    __pyx_t_6 = PyObject_Length(__pyx_v_b); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 387, __pyx_L1_error)
    __pyx_t_4 = __pyx_t_6;
  } else {
    __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_bhi_); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 387, __pyx_L1_error)
    __pyx_t_4 = __pyx_t_6;
  }
  __pyx_v_bhi = __pyx_t_4;

  /* "lxml/html/_difflib.py":388
 *         ahi = len(a) if ahi_ is None else ahi_
 *         bhi = len(b) if bhi_ is None else bhi_
 *         besti, bestj, bestsize = alo, blo, 0             # <<<<<<<<<<<<<<
 *         # find longest junk-free match
 *         # during an iteration of the loop, j2len[j] = length of longest
*/
  __pyx_t_4 = __pyx_v_alo;
  __pyx_t_6 = __pyx_v_blo;
  __pyx_t_7 = 0;
  __pyx_v_besti = __pyx_t_4;
  __pyx_v_bestj = __pyx_t_6;
  __pyx_v_bestsize = __pyx_t_7;

  /* "lxml/html/_difflib.py":392
 *         # during an iteration of the loop, j2len[j] = length of longest
 *         # junk-free match ending with a[i-1] and b[j]
 *         j2len = {}             # <<<<<<<<<<<<<<
 *         nothing = []
 *         for i in range(alo, ahi):
*/
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_j2len = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":393
 *         # junk-free match ending with a[i-1] and b[j]
 *         j2len = {}
 *         nothing = []             # <<<<<<<<<<<<<<
 *         for i in range(alo, ahi):
 *             # look at all instances of a[i] in b; note that because
*/
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_nothing = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":394
 *         j2len = {}
 *         nothing = []
 *         for i in range(alo, ahi):             # <<<<<<<<<<<<<<
 *             # look at all instances of a[i] in b; note that because
 *             # b2j has no junk keys, the loop is skipped if a[i] is junk
*/
  __pyx_t_7 = __pyx_v_ahi;
  __pyx_t_6 = __pyx_t_7;
  for (__pyx_t_4 = __pyx_v_alo; __pyx_t_4 < __pyx_t_6; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "lxml/html/_difflib.py":397
 *             # look at all instances of a[i] in b; note that because
 *             # b2j has no junk keys, the loop is skipped if a[i] is junk
 *             newj2len = {}             # <<<<<<<<<<<<<<
 *             for j in b2j.get(a[i], nothing):
 *                 # a[i] matches b[j]
*/
    __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_newj2len, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":398
 *             # b2j has no junk keys, the loop is skipped if a[i] is junk
 *             newj2len = {}
 *             for j in b2j.get(a[i], nothing):             # <<<<<<<<<<<<<<
 *                 # a[i] matches b[j]
 *                 if j < blo:
*/
    if (unlikely(__pyx_v_b2j == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
      __PYX_ERR(0, 398, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_a, __pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 398, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyDict_GetItemDefault(__pyx_v_b2j, __pyx_t_3, __pyx_v_nothing); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
      __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 398, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 398, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 398, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 398, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_2 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_8));
          #else
          __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
      } else {
        __pyx_t_2 = __pyx_t_9(__pyx_t_3);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 398, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 398, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_j = __pyx_t_10;

      /* "lxml/html/_difflib.py":400
 *             for j in b2j.get(a[i], nothing):
 *                 # a[i] matches b[j]
 *                 if j < blo:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if j >= bhi:
*/
      __pyx_t_5 = (__pyx_v_j < __pyx_v_blo);
      if (__pyx_t_5) {

        /* "lxml/html/_difflib.py":401
 *                 # a[i] matches b[j]
 *                 if j < blo:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if j >= bhi:
 *                     break
*/
        goto __pyx_L5_continue;

        /* "lxml/html/_difflib.py":400
 *             for j in b2j.get(a[i], nothing):
 *                 # a[i] matches b[j]
 *                 if j < blo:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if j >= bhi:
*/
      }

      /* "lxml/html/_difflib.py":402
 *                 if j < blo:
 *                     continue
 *                 if j >= bhi:             # <<<<<<<<<<<<<<
 *                     break
 *                 k = newj2len[j] = j2len.get(j-1, 0) + 1
*/
      __pyx_t_5 = (__pyx_v_j >= __pyx_v_bhi);
      if (__pyx_t_5) {

        /* "lxml/html/_difflib.py":403
 *                     continue
 *                 if j >= bhi:
 *                     break             # <<<<<<<<<<<<<<
 *                 k = newj2len[j] = j2len.get(j-1, 0) + 1
 *                 if k > bestsize:
*/
        goto __pyx_L6_break;

        /* "lxml/html/_difflib.py":402
 *                 if j < blo:
 *                     continue
 *                 if j >= bhi:             # <<<<<<<<<<<<<<
 *                     break
 *                 k = newj2len[j] = j2len.get(j-1, 0) + 1
*/
      }

      /* "lxml/html/_difflib.py":404
 *                 if j >= bhi:
 *                     break
 *                 k = newj2len[j] = j2len.get(j-1, 0) + 1             # <<<<<<<<<<<<<<
 *                 if k > bestsize:
 *                     besti, bestj, bestsize = i-k+1, j-k+1, k
*/
      __pyx_t_2 = PyLong_FromSsize_t((__pyx_v_j - 1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 404, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_j2len, __pyx_t_2, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 404, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 404, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 404, __pyx_L1_error)
      __pyx_v_k = __pyx_t_10;
      __pyx_t_1 = PyLong_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 404, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely((PyDict_SetItem(__pyx_v_newj2len, __pyx_t_1, __pyx_t_2) < 0))) __PYX_ERR(0, 404, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "lxml/html/_difflib.py":405
 *                     break
 *                 k = newj2len[j] = j2len.get(j-1, 0) + 1
 *                 if k > bestsize:             # <<<<<<<<<<<<<<
 *                     besti, bestj, bestsize = i-k+1, j-k+1, k
 *             j2len = newj2len
*/
      __pyx_t_5 = (__pyx_v_k > __pyx_v_bestsize);
      if (__pyx_t_5) {

        /* "lxml/html/_difflib.py":406
 *                 k = newj2len[j] = j2len.get(j-1, 0) + 1
 *                 if k > bestsize:
 *                     besti, bestj, bestsize = i-k+1, j-k+1, k             # <<<<<<<<<<<<<<
 *             j2len = newj2len
 * 
*/
        __pyx_t_10 = ((__pyx_v_i - __pyx_v_k) + 1);
        __pyx_t_11 = ((__pyx_v_j - __pyx_v_k) + 1);
        __pyx_t_12 = __pyx_v_k;
        __pyx_v_besti = __pyx_t_10;
        __pyx_v_bestj = __pyx_t_11;
        __pyx_v_bestsize = __pyx_t_12;

        /* "lxml/html/_difflib.py":405
 *                     break
 *                 k = newj2len[j] = j2len.get(j-1, 0) + 1
 *                 if k > bestsize:             # <<<<<<<<<<<<<<
 *                     besti, bestj, bestsize = i-k+1, j-k+1, k
 *             j2len = newj2len
*/
      }

      /* "lxml/html/_difflib.py":398
 *             # b2j has no junk keys, the loop is skipped if a[i] is junk
 *             newj2len = {}
 *             for j in b2j.get(a[i], nothing):             # <<<<<<<<<<<<<<
 *                 # a[i] matches b[j]
 *                 if j < blo:
*/
      __pyx_L5_continue:;
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L10_for_end;
    __pyx_L6_break:;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L10_for_end;
    __pyx_L10_for_end:;

    /* "lxml/html/_difflib.py":407
 *                 if k > bestsize:
 *                     besti, bestj, bestsize = i-k+1, j-k+1, k
 *             j2len = newj2len             # <<<<<<<<<<<<<<
 * 
 *         # Extend the best by non-junk elements on each end.  In particular,
*/
    __Pyx_INCREF(__pyx_v_newj2len);
    __Pyx_DECREF_SET(__pyx_v_j2len, __pyx_v_newj2len);
  }

  /* "lxml/html/_difflib.py":413
 *         # the inner loop above, but also means "the best" match so far
 *         # doesn't contain any junk *or* popular non-junk elements.
 *         while besti > alo and bestj > blo and \             # <<<<<<<<<<<<<<
 *               b[bestj-1] not in bjunk and \
 *               a[besti-1] == b[bestj-1]:
*/
  while (1) {
    __pyx_t_13 = (__pyx_v_besti > __pyx_v_alo);
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L13_bool_binop_done;
    }
    __pyx_t_13 = (__pyx_v_bestj > __pyx_v_blo);
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L13_bool_binop_done;
    }

    /* "lxml/html/_difflib.py":414
 *         # doesn't contain any junk *or* popular non-junk elements.
 *         while besti > alo and bestj > blo and \
 *               b[bestj-1] not in bjunk and \             # <<<<<<<<<<<<<<
 *               a[besti-1] == b[bestj-1]:
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
*/
    __pyx_t_7 = (__pyx_v_bestj - 1);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_b, __pyx_t_7, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 414, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(__pyx_v_bjunk == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
      __PYX_ERR(0, 414, __pyx_L1_error)
    }
    __pyx_t_13 = (__Pyx_PySet_ContainsTF(__pyx_t_3, __pyx_v_bjunk, Py_NE)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 414, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L13_bool_binop_done;
    }

    /* "lxml/html/_difflib.py":415
 *         while besti > alo and bestj > blo and \
 *               b[bestj-1] not in bjunk and \
 *               a[besti-1] == b[bestj-1]:             # <<<<<<<<<<<<<<
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \
*/
    __pyx_t_7 = (__pyx_v_besti - 1);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_a, __pyx_t_7, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 415, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = (__pyx_v_bestj - 1);
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b, __pyx_t_7, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 415, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 415, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 415, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_5 = __pyx_t_13;
    __pyx_L13_bool_binop_done:;
    if (!__pyx_t_5) break;

    /* "lxml/html/_difflib.py":416
 *               b[bestj-1] not in bjunk and \
 *               a[besti-1] == b[bestj-1]:
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1             # <<<<<<<<<<<<<<
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \
 *               b[bestj+bestsize] not in bjunk and \
*/
    __pyx_t_7 = (__pyx_v_besti - 1);
    __pyx_t_6 = (__pyx_v_bestj - 1);
    __pyx_t_4 = (__pyx_v_bestsize + 1);
    __pyx_v_besti = __pyx_t_7;
    __pyx_v_bestj = __pyx_t_6;
    __pyx_v_bestsize = __pyx_t_4;
  }

  /* "lxml/html/_difflib.py":417
 *               a[besti-1] == b[bestj-1]:
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \             # <<<<<<<<<<<<<<
 *               b[bestj+bestsize] not in bjunk and \
 *               a[besti+bestsize] == b[bestj+bestsize]:
*/
  while (1) {
    __pyx_t_13 = ((__pyx_v_besti + __pyx_v_bestsize) < __pyx_v_ahi);
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L19_bool_binop_done;
    }
    __pyx_t_13 = ((__pyx_v_bestj + __pyx_v_bestsize) < __pyx_v_bhi);
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L19_bool_binop_done;
    }

    /* "lxml/html/_difflib.py":418
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \
 *               b[bestj+bestsize] not in bjunk and \             # <<<<<<<<<<<<<<
 *               a[besti+bestsize] == b[bestj+bestsize]:
 *             bestsize += 1
*/
    __pyx_t_4 = (__pyx_v_bestj + __pyx_v_bestsize);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_b, __pyx_t_4, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 418, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (unlikely(__pyx_v_bjunk == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
      __PYX_ERR(0, 418, __pyx_L1_error)
    }
    __pyx_t_13 = (__Pyx_PySet_ContainsTF(__pyx_t_1, __pyx_v_bjunk, Py_NE)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 418, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L19_bool_binop_done;
    }

    /* "lxml/html/_difflib.py":419
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \
 *               b[bestj+bestsize] not in bjunk and \
 *               a[besti+bestsize] == b[bestj+bestsize]:             # <<<<<<<<<<<<<<
 *             bestsize += 1
 * 
*/
    __pyx_t_4 = (__pyx_v_besti + __pyx_v_bestsize);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_a, __pyx_t_4, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = (__pyx_v_bestj + __pyx_v_bestsize);
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b, __pyx_t_4, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 419, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 419, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_5 = __pyx_t_13;
    __pyx_L19_bool_binop_done:;
    if (!__pyx_t_5) break;

    /* "lxml/html/_difflib.py":420
 *               b[bestj+bestsize] not in bjunk and \
 *               a[besti+bestsize] == b[bestj+bestsize]:
 *             bestsize += 1             # <<<<<<<<<<<<<<
 * 
 *         # Now that we have a wholly interesting match (albeit possibly
*/
    __pyx_v_bestsize = (__pyx_v_bestsize + 1);
  }

  /* "lxml/html/_difflib.py":429
 *         # interesting match, this is clearly the right thing to do,
 *         # because no other kind of match is possible in the regions.
 *         while besti > alo and bestj > blo and \             # <<<<<<<<<<<<<<
 *               b[bestj-1] in bjunk and \
 *               a[besti-1] == b[bestj-1]:
*/
  while (1) {
    __pyx_t_13 = (__pyx_v_besti > __pyx_v_alo);
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L25_bool_binop_done;
    }
    __pyx_t_13 = (__pyx_v_bestj > __pyx_v_blo);
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L25_bool_binop_done;
    }

    /* "lxml/html/_difflib.py":430
 *         # because no other kind of match is possible in the regions.
 *         while besti > alo and bestj > blo and \
 *               b[bestj-1] in bjunk and \             # <<<<<<<<<<<<<<
 *               a[besti-1] == b[bestj-1]:
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
*/
    __pyx_t_4 = (__pyx_v_bestj - 1);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_b, __pyx_t_4, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(__pyx_v_bjunk == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
      __PYX_ERR(0, 430, __pyx_L1_error)
    }
    __pyx_t_13 = (__Pyx_PySet_ContainsTF(__pyx_t_3, __pyx_v_bjunk, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 430, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L25_bool_binop_done;
    }

    /* "lxml/html/_difflib.py":431
 *         while besti > alo and bestj > blo and \
 *               b[bestj-1] in bjunk and \
 *               a[besti-1] == b[bestj-1]:             # <<<<<<<<<<<<<<
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \
*/
    __pyx_t_4 = (__pyx_v_besti - 1);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_a, __pyx_t_4, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (__pyx_v_bestj - 1);
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b, __pyx_t_4, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 431, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 431, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_5 = __pyx_t_13;
    __pyx_L25_bool_binop_done:;
    if (!__pyx_t_5) break;

    /* "lxml/html/_difflib.py":432
 *               b[bestj-1] in bjunk and \
 *               a[besti-1] == b[bestj-1]:
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1             # <<<<<<<<<<<<<<
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \
 *               b[bestj+bestsize] in bjunk and \
*/
    __pyx_t_4 = (__pyx_v_besti - 1);
    __pyx_t_6 = (__pyx_v_bestj - 1);
    __pyx_t_7 = (__pyx_v_bestsize + 1);
    __pyx_v_besti = __pyx_t_4;
    __pyx_v_bestj = __pyx_t_6;
    __pyx_v_bestsize = __pyx_t_7;
  }

  /* "lxml/html/_difflib.py":433
 *               a[besti-1] == b[bestj-1]:
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \             # <<<<<<<<<<<<<<
 *               b[bestj+bestsize] in bjunk and \
 *               a[besti+bestsize] == b[bestj+bestsize]:
*/
  while (1) {
    __pyx_t_13 = ((__pyx_v_besti + __pyx_v_bestsize) < __pyx_v_ahi);
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L31_bool_binop_done;
    }
    __pyx_t_13 = ((__pyx_v_bestj + __pyx_v_bestsize) < __pyx_v_bhi);
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L31_bool_binop_done;
    }

    /* "lxml/html/_difflib.py":434
 *             besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \
 *               b[bestj+bestsize] in bjunk and \             # <<<<<<<<<<<<<<
 *               a[besti+bestsize] == b[bestj+bestsize]:
 *             bestsize = bestsize + 1
*/
    __pyx_t_7 = (__pyx_v_bestj + __pyx_v_bestsize);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_b, __pyx_t_7, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 434, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (unlikely(__pyx_v_bjunk == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
      __PYX_ERR(0, 434, __pyx_L1_error)
    }
    __pyx_t_13 = (__Pyx_PySet_ContainsTF(__pyx_t_1, __pyx_v_bjunk, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 434, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_13) {
    } else {
      __pyx_t_5 = __pyx_t_13;
      goto __pyx_L31_bool_binop_done;
    }

    /* "lxml/html/_difflib.py":435
 *         while besti+bestsize < ahi and bestj+bestsize < bhi and \
 *               b[bestj+bestsize] in bjunk and \
 *               a[besti+bestsize] == b[bestj+bestsize]:             # <<<<<<<<<<<<<<
 *             bestsize = bestsize + 1
 * 
*/
    __pyx_t_7 = (__pyx_v_besti + __pyx_v_bestsize);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_a, __pyx_t_7, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = (__pyx_v_bestj + __pyx_v_bestsize);
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b, __pyx_t_7, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 435, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 435, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_5 = __pyx_t_13;
    __pyx_L31_bool_binop_done:;
    if (!__pyx_t_5) break;

    /* "lxml/html/_difflib.py":436
 *               b[bestj+bestsize] in bjunk and \
 *               a[besti+bestsize] == b[bestj+bestsize]:
 *             bestsize = bestsize + 1             # <<<<<<<<<<<<<<
 * 
 *         return Match(besti, bestj, bestsize)
*/
    __pyx_v_bestsize = (__pyx_v_bestsize + 1);
  }

  /* "lxml/html/_difflib.py":438
 *             bestsize = bestsize + 1
 * 
 *         return Match(besti, bestj, bestsize)             # <<<<<<<<<<<<<<
 * 
 *     def get_matching_blocks(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_Match); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_14 = PyLong_FromSsize_t(__pyx_v_besti); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_14);
  __pyx_t_15 = PyLong_FromSsize_t(__pyx_v_bestj); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_15);
  __pyx_t_16 = PyLong_FromSsize_t(__pyx_v_bestsize); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_17 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
    __pyx_t_17 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_14, __pyx_t_15, __pyx_t_16};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_17, (4-__pyx_t_17) | (__pyx_t_17*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 438, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":326
 *                 del b2j[elt]
 * 
 *     def find_longest_match(self, alo=0, ahi_=None, blo=0, bhi_=None):             # <<<<<<<<<<<<<<
 *         """Find longest matching block in a[alo:ahi] and b[blo:bhi].
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.find_longest_match", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_b2j);
  __Pyx_XDECREF(__pyx_v_j2len);
  __Pyx_XDECREF(__pyx_v_newj2len);
  __Pyx_XDECREF(__pyx_v_bjunk);
  __Pyx_XDECREF(__pyx_v_a);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_XDECREF(__pyx_v_nothing);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":440
 *         return Match(besti, bestj, bestsize)
 * 
 *     def get_matching_blocks(self):             # <<<<<<<<<<<<<<
 *         """Return list of triples describing matching subsequences.
 * 
*/

static PyObject *__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_get_matching_blocks(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  Py_ssize_t __pyx_v_la;
  Py_ssize_t __pyx_v_lb;
  Py_ssize_t __pyx_v_alo;
  Py_ssize_t __pyx_v_blo;
  Py_ssize_t __pyx_v_ahi;
  Py_ssize_t __pyx_v_bhi;
  Py_ssize_t __pyx_v_i;
  Py_ssize_t __pyx_v_j;
  Py_ssize_t __pyx_v_k;
  Py_ssize_t __pyx_v_i1;
  Py_ssize_t __pyx_v_j1;
  Py_ssize_t __pyx_v_k1;
  Py_ssize_t __pyx_v_i2;
  Py_ssize_t __pyx_v_j2;
  Py_ssize_t __pyx_v_k2;
  PyObject *__pyx_v_queue = NULL;
  PyObject *__pyx_v_matching_blocks = NULL;
  PyObject *__pyx_v_x = NULL;
  PyObject *__pyx_v_non_adjacent = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct __pyx_opt_args_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  size_t __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_matching_blocks", 0);

  /* "lxml/html/_difflib.py":459
 *         """
 * 
 *         if self.matching_blocks is not None:             # <<<<<<<<<<<<<<
 *             return self.matching_blocks
 *         la, lb = len(self.a), len(self.b)
*/
  __pyx_t_1 = (__pyx_v_self->matching_blocks != ((PyObject*)Py_None));
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":460
 * 
 *         if self.matching_blocks is not None:
 *             return self.matching_blocks             # <<<<<<<<<<<<<<
 *         la, lb = len(self.a), len(self.b)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->matching_blocks);
    __pyx_r = __pyx_v_self->matching_blocks;
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":459
 *         """
 * 
 *         if self.matching_blocks is not None:             # <<<<<<<<<<<<<<
 *             return self.matching_blocks
 *         la, lb = len(self.a), len(self.b)
*/
  }

  /* "lxml/html/_difflib.py":461
 *         if self.matching_blocks is not None:
 *             return self.matching_blocks
 *         la, lb = len(self.a), len(self.b)             # <<<<<<<<<<<<<<
 * 
 *         # This is most naturally expressed as a recursive algorithm, but
*/
  __pyx_t_2 = __pyx_v_self->a;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __pyx_v_self->b;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_la = __pyx_t_3;
  __pyx_v_lb = __pyx_t_4;

  /* "lxml/html/_difflib.py":469
 *         # results to `matching_blocks` in a loop; the matches are sorted
 *         # at the end.
 *         queue = [(0, la, 0, lb)]             # <<<<<<<<<<<<<<
 *         matching_blocks = []
 *         while queue:
*/
  __pyx_t_2 = PyLong_FromSsize_t(__pyx_v_la); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyLong_FromSsize_t(__pyx_v_lb); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 469, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2) != (0)) __PYX_ERR(0, 469, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 469, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_5) != (0)) __PYX_ERR(0, 469, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 469, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_v_queue = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "lxml/html/_difflib.py":470
 *         # at the end.
 *         queue = [(0, la, 0, lb)]
 *         matching_blocks = []             # <<<<<<<<<<<<<<
 *         while queue:
 *             alo, ahi, blo, bhi = queue.pop()
*/
  __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v_matching_blocks = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "lxml/html/_difflib.py":471
 *         queue = [(0, la, 0, lb)]
 *         matching_blocks = []
 *         while queue:             # <<<<<<<<<<<<<<
 *             alo, ahi, blo, bhi = queue.pop()
 *             i, j, k = x = self.find_longest_match(alo, ahi, blo, bhi)
*/
  while (1) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_queue);
      if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 471, __pyx_L1_error)
      __pyx_t_1 = (__pyx_temp != 0);
    }

    if (!__pyx_t_1) break;

    /* "lxml/html/_difflib.py":472
 *         matching_blocks = []
 *         while queue:
 *             alo, ahi, blo, bhi = queue.pop()             # <<<<<<<<<<<<<<
 *             i, j, k = x = self.find_longest_match(alo, ahi, blo, bhi)
 *             # a[alo:i] vs b[blo:j] unknown
*/
    __pyx_t_5 = __Pyx_PyList_Pop(__pyx_v_queue); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
      PyObject* sequence = __pyx_t_5;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 4)) {
        if (size > 4) __Pyx_RaiseTooManyValuesError(4);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 472, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 3);
        __Pyx_INCREF(__pyx_t_8);
      } else {
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 472, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 472, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 472, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 472, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
      }
      #else
      {
        Py_ssize_t i;
        PyObject** temps[4] = {&__pyx_t_6,&__pyx_t_2,&__pyx_t_7,&__pyx_t_8};
        for (i=0; i < 4; i++) {
          PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 472, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[4] = {&__pyx_t_6,&__pyx_t_2,&__pyx_t_7,&__pyx_t_8};
      __pyx_t_9 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 472, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
      for (index=0; index < 4; index++) {
        PyObject* item = __pyx_t_10(__pyx_t_9); if (unlikely(!item)) goto __pyx_L6_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 4) < (0)) __PYX_ERR(0, 472, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 472, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_6); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_7); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_8); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_v_alo = __pyx_t_4;
    __pyx_v_ahi = __pyx_t_3;
    __pyx_v_blo = __pyx_t_11;
    __pyx_v_bhi = __pyx_t_12;

    /* "lxml/html/_difflib.py":473
 *         while queue:
 *             alo, ahi, blo, bhi = queue.pop()
 *             i, j, k = x = self.find_longest_match(alo, ahi, blo, bhi)             # <<<<<<<<<<<<<<
 *             # a[alo:i] vs b[blo:j] unknown
 *             # a[i:i+k] same as b[j:j+k]
*/
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_v_ahi); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 473, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_bhi); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 473, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_13.__pyx_n = 4;
    __pyx_t_13.alo = __pyx_v_alo;
    __pyx_t_13.ahi_ = __pyx_t_5;
    __pyx_t_13.blo = __pyx_v_blo;
    __pyx_t_13.bhi_ = __pyx_t_8;
    __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self->__pyx_vtab)->find_longest_match(__pyx_v_self, &__pyx_t_13); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 473, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if ((likely(PyTuple_CheckExact(__pyx_t_7))) || (PyList_CheckExact(__pyx_t_7))) {
      PyObject* sequence = __pyx_t_7;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 473, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_2 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_2);
      } else {
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 473, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 473, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 473, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_2);
      }
      #else
      __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      #endif
    } else {
      Py_ssize_t index = -1;
      __pyx_t_6 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6);
      index = 0; __pyx_t_8 = __pyx_t_10(__pyx_t_6); if (unlikely(!__pyx_t_8)) goto __pyx_L8_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_8);
      index = 1; __pyx_t_5 = __pyx_t_10(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L8_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 2; __pyx_t_2 = __pyx_t_10(__pyx_t_6); if (unlikely(!__pyx_t_2)) goto __pyx_L8_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_2);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_6), 3) < (0)) __PYX_ERR(0, 473, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L9_unpacking_done;
      __pyx_L8_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 473, __pyx_L1_error)
      __pyx_L9_unpacking_done:;
    }
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_8); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 473, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 473, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 473, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_i = __pyx_t_12;
    __pyx_v_j = __pyx_t_11;
    __pyx_v_k = __pyx_t_3;
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_XDECREF_SET(__pyx_v_x, __pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":477
 *             # a[i:i+k] same as b[j:j+k]
 *             # a[i+k:ahi] vs b[j+k:bhi] unknown
 *             if k:   # if k is 0, there was no matching block             # <<<<<<<<<<<<<<
 *                 matching_blocks.append(x)
 *                 if alo < i and blo < j:
*/
    __pyx_t_1 = (__pyx_v_k != 0);
    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":478
 *             # a[i+k:ahi] vs b[j+k:bhi] unknown
 *             if k:   # if k is 0, there was no matching block
 *                 matching_blocks.append(x)             # <<<<<<<<<<<<<<
 *                 if alo < i and blo < j:
 *                     queue.append((alo, i, blo, j))
*/
      __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_matching_blocks, __pyx_v_x); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 478, __pyx_L1_error)

      /* "lxml/html/_difflib.py":479
 *             if k:   # if k is 0, there was no matching block
 *                 matching_blocks.append(x)
 *                 if alo < i and blo < j:             # <<<<<<<<<<<<<<
 *                     queue.append((alo, i, blo, j))
 *                 if i+k < ahi and j+k < bhi:
*/
      __pyx_t_15 = (__pyx_v_alo < __pyx_v_i);
      if (__pyx_t_15) {
      } else {
        __pyx_t_1 = __pyx_t_15;
        goto __pyx_L12_bool_binop_done;
      }
      __pyx_t_15 = (__pyx_v_blo < __pyx_v_j);
      __pyx_t_1 = __pyx_t_15;
      __pyx_L12_bool_binop_done:;
      if (__pyx_t_1) {

        /* "lxml/html/_difflib.py":480
 *                 matching_blocks.append(x)
 *                 if alo < i and blo < j:
 *                     queue.append((alo, i, blo, j))             # <<<<<<<<<<<<<<
 *                 if i+k < ahi and j+k < bhi:
 *                     queue.append((i+k, ahi, j+k, bhi))
*/
        __pyx_t_7 = PyLong_FromSsize_t(__pyx_v_alo); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 480, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = PyLong_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 480, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_v_blo); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 480, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 480, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 480, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 480, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2) != (0)) __PYX_ERR(0, 480, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_5) != (0)) __PYX_ERR(0, 480, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_8) != (0)) __PYX_ERR(0, 480, __pyx_L1_error);
        __pyx_t_7 = 0;
        __pyx_t_2 = 0;
        __pyx_t_5 = 0;
        __pyx_t_8 = 0;
        __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_queue, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 480, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "lxml/html/_difflib.py":479
 *             if k:   # if k is 0, there was no matching block
 *                 matching_blocks.append(x)
 *                 if alo < i and blo < j:             # <<<<<<<<<<<<<<
 *                     queue.append((alo, i, blo, j))
 *                 if i+k < ahi and j+k < bhi:
*/
      }

      /* "lxml/html/_difflib.py":481
 *                 if alo < i and blo < j:
 *                     queue.append((alo, i, blo, j))
 *                 if i+k < ahi and j+k < bhi:             # <<<<<<<<<<<<<<
 *                     queue.append((i+k, ahi, j+k, bhi))
 *         matching_blocks.sort()
*/
      __pyx_t_15 = ((__pyx_v_i + __pyx_v_k) < __pyx_v_ahi);
      if (__pyx_t_15) {
      } else {
        __pyx_t_1 = __pyx_t_15;
        goto __pyx_L15_bool_binop_done;
      }
      __pyx_t_15 = ((__pyx_v_j + __pyx_v_k) < __pyx_v_bhi);
      __pyx_t_1 = __pyx_t_15;
      __pyx_L15_bool_binop_done:;
      if (__pyx_t_1) {

        /* "lxml/html/_difflib.py":482
 *                     queue.append((alo, i, blo, j))
 *                 if i+k < ahi and j+k < bhi:
 *                     queue.append((i+k, ahi, j+k, bhi))             # <<<<<<<<<<<<<<
 *         matching_blocks.sort()
 * 
*/
        __pyx_t_6 = PyLong_FromSsize_t((__pyx_v_i + __pyx_v_k)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 482, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_ahi); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 482, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_5 = PyLong_FromSsize_t((__pyx_v_j + __pyx_v_k)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 482, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = PyLong_FromSsize_t(__pyx_v_bhi); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 482, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = PyTuple_New(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 482, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 482, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 482, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_5) != (0)) __PYX_ERR(0, 482, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_2) != (0)) __PYX_ERR(0, 482, __pyx_L1_error);
        __pyx_t_6 = 0;
        __pyx_t_8 = 0;
        __pyx_t_5 = 0;
        __pyx_t_2 = 0;
        __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_queue, __pyx_t_7); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 482, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "lxml/html/_difflib.py":481
 *                 if alo < i and blo < j:
 *                     queue.append((alo, i, blo, j))
 *                 if i+k < ahi and j+k < bhi:             # <<<<<<<<<<<<<<
 *                     queue.append((i+k, ahi, j+k, bhi))
 *         matching_blocks.sort()
*/
      }

      /* "lxml/html/_difflib.py":477
 *             # a[i:i+k] same as b[j:j+k]
 *             # a[i+k:ahi] vs b[j+k:bhi] unknown
 *             if k:   # if k is 0, there was no matching block             # <<<<<<<<<<<<<<
 *                 matching_blocks.append(x)
 *                 if alo < i and blo < j:
*/
    }
  }

  /* "lxml/html/_difflib.py":483
 *                 if i+k < ahi and j+k < bhi:
 *                     queue.append((i+k, ahi, j+k, bhi))
 *         matching_blocks.sort()             # <<<<<<<<<<<<<<
 * 
 *         # It's possible that we have adjacent equal blocks in the
*/
  __pyx_t_14 = PyList_Sort(__pyx_v_matching_blocks); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 483, __pyx_L1_error)

  /* "lxml/html/_difflib.py":488
 *         # matching_blocks list now.  Starting with 2.5, this code was added
 *         # to collapse them.
 *         i1 = j1 = k1 = 0             # <<<<<<<<<<<<<<
 *         non_adjacent = []
 *         for i2, j2, k2 in matching_blocks:
*/
  __pyx_v_i1 = 0;
  __pyx_v_j1 = 0;
  __pyx_v_k1 = 0;

  /* "lxml/html/_difflib.py":489
 *         # to collapse them.
 *         i1 = j1 = k1 = 0
 *         non_adjacent = []             # <<<<<<<<<<<<<<
 *         for i2, j2, k2 in matching_blocks:
 *             # Is this block adjacent to i1, j1, k1?
*/
  __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_v_non_adjacent = ((PyObject*)__pyx_t_7);
  __pyx_t_7 = 0;

  /* "lxml/html/_difflib.py":490
 *         i1 = j1 = k1 = 0
 *         non_adjacent = []
 *         for i2, j2, k2 in matching_blocks:             # <<<<<<<<<<<<<<
 *             # Is this block adjacent to i1, j1, k1?
 *             if i1 + k1 == i2 and j1 + k1 == j2:
*/
  __pyx_t_7 = __pyx_v_matching_blocks; __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 490, __pyx_L1_error)
      #endif
      if (__pyx_t_3 >= __pyx_temp) break;
    }
    __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_3;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 490, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 490, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_6);
      } else {
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 490, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 490, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 490, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
      }
      #else
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 490, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 490, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 490, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 490, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
      index = 0; __pyx_t_5 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_5)) goto __pyx_L19_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L19_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_8);
      index = 2; __pyx_t_6 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_6)) goto __pyx_L19_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < (0)) __PYX_ERR(0, 490, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L20_unpacking_done;
      __pyx_L19_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 490, __pyx_L1_error)
      __pyx_L20_unpacking_done:;
    }
    __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 490, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_8); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 490, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_6); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 490, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_v_i2 = __pyx_t_11;
    __pyx_v_j2 = __pyx_t_12;
    __pyx_v_k2 = __pyx_t_4;

    /* "lxml/html/_difflib.py":492
 *         for i2, j2, k2 in matching_blocks:
 *             # Is this block adjacent to i1, j1, k1?
 *             if i1 + k1 == i2 and j1 + k1 == j2:             # <<<<<<<<<<<<<<
 *                 # Yes, so collapse them -- this just increases the length of
 *                 # the first block by the length of the second, and the first
*/
    __pyx_t_15 = ((__pyx_v_i1 + __pyx_v_k1) == __pyx_v_i2);
    if (__pyx_t_15) {
    } else {
      __pyx_t_1 = __pyx_t_15;
      goto __pyx_L22_bool_binop_done;
    }
    __pyx_t_15 = ((__pyx_v_j1 + __pyx_v_k1) == __pyx_v_j2);
    __pyx_t_1 = __pyx_t_15;
    __pyx_L22_bool_binop_done:;
    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":496
 *                 # the first block by the length of the second, and the first
 *                 # block so lengthened remains the block to compare against.
 *                 k1 += k2             # <<<<<<<<<<<<<<
 *             else:
 *                 # Not adjacent.  Remember the first block (k1==0 means it's
*/
      __pyx_v_k1 = (__pyx_v_k1 + __pyx_v_k2);

      /* "lxml/html/_difflib.py":492
 *         for i2, j2, k2 in matching_blocks:
 *             # Is this block adjacent to i1, j1, k1?
 *             if i1 + k1 == i2 and j1 + k1 == j2:             # <<<<<<<<<<<<<<
 *                 # Yes, so collapse them -- this just increases the length of
 *                 # the first block by the length of the second, and the first
*/
      goto __pyx_L21;
    }

    /* "lxml/html/_difflib.py":501
 *                 # the dummy we started with), and make the second block the
 *                 # new block to compare against.
 *                 if k1:             # <<<<<<<<<<<<<<
 *                     non_adjacent.append((i1, j1, k1))
 *                 i1, j1, k1 = i2, j2, k2
*/
    /*else*/ {
      __pyx_t_1 = (__pyx_v_k1 != 0);
      if (__pyx_t_1) {

        /* "lxml/html/_difflib.py":502
 *                 # new block to compare against.
 *                 if k1:
 *                     non_adjacent.append((i1, j1, k1))             # <<<<<<<<<<<<<<
 *                 i1, j1, k1 = i2, j2, k2
 *         if k1:
*/
        __pyx_t_2 = PyLong_FromSsize_t(__pyx_v_i1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 502, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = PyLong_FromSsize_t(__pyx_v_j1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 502, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_k1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 502, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 502, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 502, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 502, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_8) != (0)) __PYX_ERR(0, 502, __pyx_L1_error);
        __pyx_t_2 = 0;
        __pyx_t_6 = 0;
        __pyx_t_8 = 0;
        __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_non_adjacent, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 502, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "lxml/html/_difflib.py":501
 *                 # the dummy we started with), and make the second block the
 *                 # new block to compare against.
 *                 if k1:             # <<<<<<<<<<<<<<
 *                     non_adjacent.append((i1, j1, k1))
 *                 i1, j1, k1 = i2, j2, k2
*/
      }

      /* "lxml/html/_difflib.py":503
 *                 if k1:
 *                     non_adjacent.append((i1, j1, k1))
 *                 i1, j1, k1 = i2, j2, k2             # <<<<<<<<<<<<<<
 *         if k1:
 *             non_adjacent.append((i1, j1, k1))
*/
      __pyx_t_4 = __pyx_v_i2;
      __pyx_t_12 = __pyx_v_j2;
      __pyx_t_11 = __pyx_v_k2;
      __pyx_v_i1 = __pyx_t_4;
      __pyx_v_j1 = __pyx_t_12;
      __pyx_v_k1 = __pyx_t_11;
    }
    __pyx_L21:;

    /* "lxml/html/_difflib.py":490
 *         i1 = j1 = k1 = 0
 *         non_adjacent = []
 *         for i2, j2, k2 in matching_blocks:             # <<<<<<<<<<<<<<
 *             # Is this block adjacent to i1, j1, k1?
 *             if i1 + k1 == i2 and j1 + k1 == j2:
*/
  }
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "lxml/html/_difflib.py":504
 *                     non_adjacent.append((i1, j1, k1))
 *                 i1, j1, k1 = i2, j2, k2
 *         if k1:             # <<<<<<<<<<<<<<
 *             non_adjacent.append((i1, j1, k1))
 * 
*/
  __pyx_t_1 = (__pyx_v_k1 != 0);
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":505
 *                 i1, j1, k1 = i2, j2, k2
 *         if k1:
 *             non_adjacent.append((i1, j1, k1))             # <<<<<<<<<<<<<<
 * 
 *         non_adjacent.append( (la, lb, 0) )
*/
    __pyx_t_7 = PyLong_FromSsize_t(__pyx_v_i1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_v_j1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_k1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 505, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 505, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_8) != (0)) __PYX_ERR(0, 505, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_5 = 0;
    __pyx_t_8 = 0;
    __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_non_adjacent, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 505, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "lxml/html/_difflib.py":504
 *                     non_adjacent.append((i1, j1, k1))
 *                 i1, j1, k1 = i2, j2, k2
 *         if k1:             # <<<<<<<<<<<<<<
 *             non_adjacent.append((i1, j1, k1))
 * 
*/
  }

  /* "lxml/html/_difflib.py":507
 *             non_adjacent.append((i1, j1, k1))
 * 
 *         non_adjacent.append( (la, lb, 0) )             # <<<<<<<<<<<<<<
 *         self.matching_blocks = list(map(Match._make, non_adjacent))
 *         return self.matching_blocks
*/
  __pyx_t_6 = PyLong_FromSsize_t(__pyx_v_la); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_lb); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 507, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 507, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 507, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_t_8 = 0;
  __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_non_adjacent, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "lxml/html/_difflib.py":508
 * 
 *         non_adjacent.append( (la, lb, 0) )
 *         self.matching_blocks = list(map(Match._make, non_adjacent))             # <<<<<<<<<<<<<<
 *         return self.matching_blocks
 * 
*/
  __pyx_t_8 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_Match); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_make); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_16 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_8, __pyx_t_7, __pyx_v_non_adjacent};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_map, __pyx_callargs+__pyx_t_16, (3-__pyx_t_16) | (__pyx_t_16*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 508, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_7 = __Pyx_PySequence_ListKeepNew(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_GOTREF(__pyx_v_self->matching_blocks);
  __Pyx_DECREF(__pyx_v_self->matching_blocks);
  __pyx_v_self->matching_blocks = ((PyObject*)__pyx_t_7);
  __pyx_t_7 = 0;

  /* "lxml/html/_difflib.py":509
 *         non_adjacent.append( (la, lb, 0) )
 *         self.matching_blocks = list(map(Match._make, non_adjacent))
 *         return self.matching_blocks             # <<<<<<<<<<<<<<
 * 
 *     def get_opcodes(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->matching_blocks);
  __pyx_r = __pyx_v_self->matching_blocks;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":440
 *         return Match(besti, bestj, bestsize)
 * 
 *     def get_matching_blocks(self):             # <<<<<<<<<<<<<<
 *         """Return list of triples describing matching subsequences.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.get_matching_blocks", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_queue);
  __Pyx_XDECREF(__pyx_v_matching_blocks);
  __Pyx_XDECREF(__pyx_v_x);
  __Pyx_XDECREF(__pyx_v_non_adjacent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":511
 *         return self.matching_blocks
 * 
 *     def get_opcodes(self):             # <<<<<<<<<<<<<<
 *         """Return list of 5-tuples describing how to turn a into b.
 * 
*/

static PyObject *__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_get_opcodes(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  Py_ssize_t __pyx_v_i;
  Py_ssize_t __pyx_v_j;
  Py_ssize_t __pyx_v_ai;
  Py_ssize_t __pyx_v_bj;
  Py_ssize_t __pyx_v_size;
  PyObject *__pyx_v_answer = NULL;
  PyObject *__pyx_v_tag = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  int __pyx_t_13;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_opcodes", 0);

  /* "lxml/html/_difflib.py":540
 *         """
 * 
 *         if self.opcodes is not None:             # <<<<<<<<<<<<<<
 *             return self.opcodes
 *         i = j = 0
*/
  __pyx_t_1 = (__pyx_v_self->opcodes != ((PyObject*)Py_None));
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":541
 * 
 *         if self.opcodes is not None:
 *             return self.opcodes             # <<<<<<<<<<<<<<
 *         i = j = 0
 *         self.opcodes = answer = []
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->opcodes);
    __pyx_r = __pyx_v_self->opcodes;
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":540
 *         """
 * 
 *         if self.opcodes is not None:             # <<<<<<<<<<<<<<
 *             return self.opcodes
 *         i = j = 0
*/
  }

  /* "lxml/html/_difflib.py":542
 *         if self.opcodes is not None:
 *             return self.opcodes
 *         i = j = 0             # <<<<<<<<<<<<<<
 *         self.opcodes = answer = []
 *         for ai, bj, size in self.get_matching_blocks():
*/
  __pyx_v_i = 0;
  __pyx_v_j = 0;

  /* "lxml/html/_difflib.py":543
 *             return self.opcodes
 *         i = j = 0
 *         self.opcodes = answer = []             # <<<<<<<<<<<<<<
 *         for ai, bj, size in self.get_matching_blocks():
 *             # invariant:  we've pumped out correct diffs to change
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->opcodes);
  __Pyx_DECREF(__pyx_v_self->opcodes);
  __pyx_v_self->opcodes = __pyx_t_2;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_v_answer = __pyx_t_2;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":544
 *         i = j = 0
 *         self.opcodes = answer = []
 *         for ai, bj, size in self.get_matching_blocks():             # <<<<<<<<<<<<<<
 *             # invariant:  we've pumped out correct diffs to change
 *             # a[:i] into b[:j], and the next matching block is
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self->__pyx_vtab)->get_matching_blocks(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely(__pyx_t_2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 544, __pyx_L1_error)
  }
  __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 544, __pyx_L1_error)
      #endif
      if (__pyx_t_4 >= __pyx_temp) break;
    }
    __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_4;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 544, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_7);
      } else {
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 544, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 544, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 544, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
      }
      #else
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 544, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 544, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 544, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 544, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
      index = 0; __pyx_t_5 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_5)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 2; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 3) < (0)) __PYX_ERR(0, 544, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 544, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 544, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_6); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 544, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_7); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 544, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_v_ai = __pyx_t_10;
    __pyx_v_bj = __pyx_t_11;
    __pyx_v_size = __pyx_t_12;

    /* "lxml/html/_difflib.py":550
 *             # out a diff to change a[i:ai] into b[j:bj], pump out
 *             # the matching block, and move (i,j) beyond the match
 *             tag = ''             # <<<<<<<<<<<<<<
 *             if i < ai and j < bj:
 *                 tag = 'replace'
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
    __Pyx_XDECREF_SET(__pyx_v_tag, __pyx_mstate_global->__pyx_kp_u__2);

    /* "lxml/html/_difflib.py":551
 *             # the matching block, and move (i,j) beyond the match
 *             tag = ''
 *             if i < ai and j < bj:             # <<<<<<<<<<<<<<
 *                 tag = 'replace'
 *             elif i < ai:
*/
    __pyx_t_13 = (__pyx_v_i < __pyx_v_ai);
    if (__pyx_t_13) {
    } else {
      __pyx_t_1 = __pyx_t_13;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_13 = (__pyx_v_j < __pyx_v_bj);
    __pyx_t_1 = __pyx_t_13;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":552
 *             tag = ''
 *             if i < ai and j < bj:
 *                 tag = 'replace'             # <<<<<<<<<<<<<<
 *             elif i < ai:
 *                 tag = 'delete'
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_replace);
      __Pyx_DECREF_SET(__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_replace);

      /* "lxml/html/_difflib.py":551
 *             # the matching block, and move (i,j) beyond the match
 *             tag = ''
 *             if i < ai and j < bj:             # <<<<<<<<<<<<<<
 *                 tag = 'replace'
 *             elif i < ai:
*/
      goto __pyx_L8;
    }

    /* "lxml/html/_difflib.py":553
 *             if i < ai and j < bj:
 *                 tag = 'replace'
 *             elif i < ai:             # <<<<<<<<<<<<<<
 *                 tag = 'delete'
 *             elif j < bj:
*/
    __pyx_t_1 = (__pyx_v_i < __pyx_v_ai);
    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":554
 *                 tag = 'replace'
 *             elif i < ai:
 *                 tag = 'delete'             # <<<<<<<<<<<<<<
 *             elif j < bj:
 *                 tag = 'insert'
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_delete);
      __Pyx_DECREF_SET(__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_delete);

      /* "lxml/html/_difflib.py":553
 *             if i < ai and j < bj:
 *                 tag = 'replace'
 *             elif i < ai:             # <<<<<<<<<<<<<<
 *                 tag = 'delete'
 *             elif j < bj:
*/
      goto __pyx_L8;
    }

    /* "lxml/html/_difflib.py":555
 *             elif i < ai:
 *                 tag = 'delete'
 *             elif j < bj:             # <<<<<<<<<<<<<<
 *                 tag = 'insert'
 *             if tag:
*/
    __pyx_t_1 = (__pyx_v_j < __pyx_v_bj);
    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":556
 *                 tag = 'delete'
 *             elif j < bj:
 *                 tag = 'insert'             # <<<<<<<<<<<<<<
 *             if tag:
 *                 answer.append( (tag, i, ai, j, bj) )
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_insert);
      __Pyx_DECREF_SET(__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_insert);

      /* "lxml/html/_difflib.py":555
 *             elif i < ai:
 *                 tag = 'delete'
 *             elif j < bj:             # <<<<<<<<<<<<<<
 *                 tag = 'insert'
 *             if tag:
*/
    }
    __pyx_L8:;

    /* "lxml/html/_difflib.py":557
 *             elif j < bj:
 *                 tag = 'insert'
 *             if tag:             # <<<<<<<<<<<<<<
 *                 answer.append( (tag, i, ai, j, bj) )
 *             i, j = ai+size, bj+size
*/
    {
      Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_v_tag);
      if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 557, __pyx_L1_error)
      __pyx_t_1 = (__pyx_temp != 0);
    }

    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":558
 *                 tag = 'insert'
 *             if tag:
 *                 answer.append( (tag, i, ai, j, bj) )             # <<<<<<<<<<<<<<
 *             i, j = ai+size, bj+size
 *             # the list of matching blocks is terminated by a
*/
      __pyx_t_2 = PyLong_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 558, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_7 = PyLong_FromSsize_t(__pyx_v_ai); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 558, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = PyLong_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 558, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = PyLong_FromSsize_t(__pyx_v_bj); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 558, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = PyTuple_New(5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 558, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_INCREF(__pyx_v_tag);
      __Pyx_GIVEREF(__pyx_v_tag);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_tag) != (0)) __PYX_ERR(0, 558, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_2);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_2) != (0)) __PYX_ERR(0, 558, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_7);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7) != (0)) __PYX_ERR(0, 558, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_6) != (0)) __PYX_ERR(0, 558, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_5);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_t_5) != (0)) __PYX_ERR(0, 558, __pyx_L1_error);
      __pyx_t_2 = 0;
      __pyx_t_7 = 0;
      __pyx_t_6 = 0;
      __pyx_t_5 = 0;
      __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_answer, __pyx_t_8); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 558, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "lxml/html/_difflib.py":557
 *             elif j < bj:
 *                 tag = 'insert'
 *             if tag:             # <<<<<<<<<<<<<<
 *                 answer.append( (tag, i, ai, j, bj) )
 *             i, j = ai+size, bj+size
*/
    }

    /* "lxml/html/_difflib.py":559
 *             if tag:
 *                 answer.append( (tag, i, ai, j, bj) )
 *             i, j = ai+size, bj+size             # <<<<<<<<<<<<<<
 *             # the list of matching blocks is terminated by a
 *             # sentinel with size 0
*/
    __pyx_t_12 = (__pyx_v_ai + __pyx_v_size);
    __pyx_t_11 = (__pyx_v_bj + __pyx_v_size);
    __pyx_v_i = __pyx_t_12;
    __pyx_v_j = __pyx_t_11;

    /* "lxml/html/_difflib.py":562
 *             # the list of matching blocks is terminated by a
 *             # sentinel with size 0
 *             if size:             # <<<<<<<<<<<<<<
 *                 answer.append( ('equal', ai, i, bj, j) )
 *         return answer
*/
    __pyx_t_1 = (__pyx_v_size != 0);
    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":563
 *             # sentinel with size 0
 *             if size:
 *                 answer.append( ('equal', ai, i, bj, j) )             # <<<<<<<<<<<<<<
 *         return answer
 * 
*/
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_ai); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_5 = PyLong_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PyLong_FromSsize_t(__pyx_v_bj); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = PyLong_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_equal);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_equal);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_n_u_equal) != (0)) __PYX_ERR(0, 563, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 563, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_5);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5) != (0)) __PYX_ERR(0, 563, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_6) != (0)) __PYX_ERR(0, 563, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_7);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_t_7) != (0)) __PYX_ERR(0, 563, __pyx_L1_error);
      __pyx_t_8 = 0;
      __pyx_t_5 = 0;
      __pyx_t_6 = 0;
      __pyx_t_7 = 0;
      __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_answer, __pyx_t_2); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "lxml/html/_difflib.py":562
 *             # the list of matching blocks is terminated by a
 *             # sentinel with size 0
 *             if size:             # <<<<<<<<<<<<<<
 *                 answer.append( ('equal', ai, i, bj, j) )
 *         return answer
*/
    }

    /* "lxml/html/_difflib.py":544
 *         i = j = 0
 *         self.opcodes = answer = []
 *         for ai, bj, size in self.get_matching_blocks():             # <<<<<<<<<<<<<<
 *             # invariant:  we've pumped out correct diffs to change
 *             # a[:i] into b[:j], and the next matching block is
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":564
 *             if size:
 *                 answer.append( ('equal', ai, i, bj, j) )
 *         return answer             # <<<<<<<<<<<<<<
 * 
 *     def get_grouped_opcodes(self, n=3):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_answer);
  __pyx_r = __pyx_v_answer;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":511
 *         return self.matching_blocks
 * 
 *     def get_opcodes(self):             # <<<<<<<<<<<<<<
 *         """Return list of 5-tuples describing how to turn a into b.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.get_opcodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_answer);
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_15SequenceMatcher_12generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":566
 *         return answer
 * 
 *     def get_grouped_opcodes(self, n=3):             # <<<<<<<<<<<<<<
 *         """ Isolate change clusters by eliminating ranges with no changes.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_11get_grouped_opcodes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_10get_grouped_opcodes, " Isolate change clusters by eliminating ranges with no changes.\n\n        Return a generator of groups with up to n lines of context.\n        Each group is in the same format as returned by get_opcodes().\n\n        >>> from pprint import pprint\n        >>> a = list(map(str, range(1,40)))\n        >>> b = a[:]\n        >>> b[8:8] = ['i']     # Make an insertion\n        >>> b[20] += 'x'       # Make a replacement\n        >>> b[23:28] = []      # Make a deletion\n        >>> b[30] += 'y'       # Make another replacement\n        >>> pprint(list(SequenceMatcher(None,a,b).get_grouped_opcodes()))\n        [[('equal', 5, 8, 5, 8), ('insert', 8, 8, 8, 9), ('equal', 8, 11, 9, 12)],\n         [('equal', 16, 19, 17, 20),\n          ('replace', 19, 20, 20, 21),\n          ('equal', 20, 22, 21, 23),\n          ('delete', 22, 27, 23, 23),\n          ('equal', 27, 30, 23, 26)],\n         [('equal', 31, 34, 27, 30),\n          ('replace', 34, 35, 30, 31),\n          ('equal', 35, 38, 31, 34)]]\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_11get_grouped_opcodes = {"get_grouped_opcodes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_11get_grouped_opcodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_10get_grouped_opcodes};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_11get_grouped_opcodes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_grouped_opcodes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 566, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 566, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_grouped_opcodes", 0) < (0)) __PYX_ERR(0, 566, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_3));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 566, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_3));
    }
    __pyx_v_n = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_grouped_opcodes", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 566, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.get_grouped_opcodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_10get_grouped_opcodes(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self), __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_10get_grouped_opcodes(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_n) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_grouped_opcodes", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 566, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_n = __pyx_v_n;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_n);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_n);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_15SequenceMatcher_12generator, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_get_grouped_opcodes, __pyx_mstate_global->__pyx_n_u_SequenceMatcher_get_grouped_opco, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 566, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.get_grouped_opcodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_15SequenceMatcher_12generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  Py_ssize_t __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_grouped_opcodes", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L18_resume_from_yield;
    case 2: goto __pyx_L25_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 566, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":591
 *         """
 * 
 *         codes = self.get_opcodes()             # <<<<<<<<<<<<<<
 *         if not codes:
 *             codes = [("equal", 0, 1, 0, 1)]
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->get_opcodes(__pyx_cur_scope->__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_codes = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":592
 * 
 *         codes = self.get_opcodes()
 *         if not codes:             # <<<<<<<<<<<<<<
 *             codes = [("equal", 0, 1, 0, 1)]
 *         # Fixup leading and trailing groups if they show no changes.
*/
  if (__pyx_cur_scope->__pyx_v_codes == Py_None) __pyx_t_2 = 0;
  else
  {
    Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_codes);
    if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 592, __pyx_L1_error)
    __pyx_t_2 = (__pyx_temp != 0);
  }

  __pyx_t_3 = (!__pyx_t_2);
  if (__pyx_t_3) {

    /* "lxml/html/_difflib.py":593
 *         codes = self.get_opcodes()
 *         if not codes:
 *             codes = [("equal", 0, 1, 0, 1)]             # <<<<<<<<<<<<<<
 *         # Fixup leading and trailing groups if they show no changes.
 *         if codes[0][0] == 'equal':
*/
    __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 593, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[0]);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[0]);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_mstate_global->__pyx_tuple[0]) != (0)) __PYX_ERR(0, 593, __pyx_L1_error);
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_codes);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_codes, ((PyObject*)__pyx_t_1));
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":592
 * 
 *         codes = self.get_opcodes()
 *         if not codes:             # <<<<<<<<<<<<<<
 *             codes = [("equal", 0, 1, 0, 1)]
 *         # Fixup leading and trailing groups if they show no changes.
*/
  }

  /* "lxml/html/_difflib.py":595
 *             codes = [("equal", 0, 1, 0, 1)]
 *         # Fixup leading and trailing groups if they show no changes.
 *         if codes[0][0] == 'equal':             # <<<<<<<<<<<<<<
 *             tag, i1, i2, j1, j2 = codes[0]
 *             codes[0] = tag, max(i1, i2-n), i2, max(j1, j2-n), j2
*/
  if (unlikely(__pyx_cur_scope->__pyx_v_codes == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 595, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_cur_scope->__pyx_v_codes, 0, long, 1, __Pyx_PyLong_From_long, 1, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_equal, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (__pyx_t_3) {

    /* "lxml/html/_difflib.py":596
 *         # Fixup leading and trailing groups if they show no changes.
 *         if codes[0][0] == 'equal':
 *             tag, i1, i2, j1, j2 = codes[0]             # <<<<<<<<<<<<<<
 *             codes[0] = tag, max(i1, i2-n), i2, max(j1, j2-n), j2
 *         if codes[-1][0] == 'equal':
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_codes == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 596, __pyx_L1_error)
    }
    __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_cur_scope->__pyx_v_codes, 0, long, 1, __Pyx_PyLong_From_long, 1, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 596, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 5)) {
        if (size > 5) __Pyx_RaiseTooManyValuesError(5);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 596, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 3);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 4);
        __Pyx_INCREF(__pyx_t_8);
      } else {
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 596, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 596, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 596, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 596, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 596, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
      }
      #else
      {
        Py_ssize_t i;
        PyObject** temps[5] = {&__pyx_t_1,&__pyx_t_5,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8};
        for (i=0; i < 5; i++) {
          PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 596, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[5] = {&__pyx_t_1,&__pyx_t_5,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8};
      __pyx_t_9 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 596, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
      for (index=0; index < 5; index++) {
        PyObject* item = __pyx_t_10(__pyx_t_9); if (unlikely(!item)) goto __pyx_L6_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 5) < (0)) __PYX_ERR(0, 596, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 596, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_v_tag = __pyx_t_1;
    __pyx_t_1 = 0;
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_cur_scope->__pyx_v_i1 = __pyx_t_5;
    __pyx_t_5 = 0;
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_cur_scope->__pyx_v_i2 = __pyx_t_6;
    __pyx_t_6 = 0;
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_cur_scope->__pyx_v_j1 = __pyx_t_7;
    __pyx_t_7 = 0;
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_cur_scope->__pyx_v_j2 = __pyx_t_8;
    __pyx_t_8 = 0;

    /* "lxml/html/_difflib.py":597
 *         if codes[0][0] == 'equal':
 *             tag, i1, i2, j1, j2 = codes[0]
 *             codes[0] = tag, max(i1, i2-n), i2, max(j1, j2-n), j2             # <<<<<<<<<<<<<<
 *         if codes[-1][0] == 'equal':
 *             tag, i1, i2, j1, j2 = codes[-1]
*/
    __pyx_t_4 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_i2, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i1);
    __pyx_t_8 = __pyx_cur_scope->__pyx_v_i1;
    __pyx_t_6 = PyObject_RichCompare(__pyx_t_4, __pyx_t_8, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 597, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__pyx_t_3) {
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = __pyx_t_4;
    } else {
      __Pyx_INCREF(__pyx_t_8);
      __pyx_t_7 = __pyx_t_8;
    }
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_j2, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j1);
    __pyx_t_8 = __pyx_cur_scope->__pyx_v_j1;
    __pyx_t_5 = PyObject_RichCompare(__pyx_t_4, __pyx_t_8, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 597, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_3) {
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_6 = __pyx_t_4;
    } else {
      __Pyx_INCREF(__pyx_t_8);
      __pyx_t_6 = __pyx_t_8;
    }
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tag);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_cur_scope->__pyx_v_tag) != (0)) __PYX_ERR(0, 597, __pyx_L1_error);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 597, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i2);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_i2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_cur_scope->__pyx_v_i2) != (0)) __PYX_ERR(0, 597, __pyx_L1_error);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_6) != (0)) __PYX_ERR(0, 597, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j2);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_j2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_cur_scope->__pyx_v_j2) != (0)) __PYX_ERR(0, 597, __pyx_L1_error);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_cur_scope->__pyx_v_codes == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 597, __pyx_L1_error)
    }
    if (unlikely((__Pyx_SetItemInt(__pyx_cur_scope->__pyx_v_codes, 0, __pyx_t_4, long, 1, __Pyx_PyLong_From_long, 1, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference) < 0))) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "lxml/html/_difflib.py":595
 *             codes = [("equal", 0, 1, 0, 1)]
 *         # Fixup leading and trailing groups if they show no changes.
 *         if codes[0][0] == 'equal':             # <<<<<<<<<<<<<<
 *             tag, i1, i2, j1, j2 = codes[0]
 *             codes[0] = tag, max(i1, i2-n), i2, max(j1, j2-n), j2
*/
  }

  /* "lxml/html/_difflib.py":598
 *             tag, i1, i2, j1, j2 = codes[0]
 *             codes[0] = tag, max(i1, i2-n), i2, max(j1, j2-n), j2
 *         if codes[-1][0] == 'equal':             # <<<<<<<<<<<<<<
 *             tag, i1, i2, j1, j2 = codes[-1]
 *             codes[-1] = tag, i1, min(i2, i1+n), j1, min(j2, j1+n)
*/
  if (unlikely(__pyx_cur_scope->__pyx_v_codes == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 598, __pyx_L1_error)
  }
  __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_cur_scope->__pyx_v_codes, -1L, long, 1, __Pyx_PyLong_From_long, 1, 1, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_4, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_equal, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__pyx_t_3) {

    /* "lxml/html/_difflib.py":599
 *             codes[0] = tag, max(i1, i2-n), i2, max(j1, j2-n), j2
 *         if codes[-1][0] == 'equal':
 *             tag, i1, i2, j1, j2 = codes[-1]             # <<<<<<<<<<<<<<
 *             codes[-1] = tag, i1, min(i2, i1+n), j1, min(j2, j1+n)
 * 
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_codes == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 599, __pyx_L1_error)
    }
    __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_cur_scope->__pyx_v_codes, -1L, long, 1, __Pyx_PyLong_From_long, 1, 1, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 599, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) {
      PyObject* sequence = __pyx_t_6;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 5)) {
        if (size > 5) __Pyx_RaiseTooManyValuesError(5);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 599, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 3);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_1 = PyTuple_GET_ITEM(sequence, 4);
        __Pyx_INCREF(__pyx_t_1);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 599, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 599, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 599, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 599, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 599, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_1);
      }
      #else
      {
        Py_ssize_t i;
        PyObject** temps[5] = {&__pyx_t_4,&__pyx_t_7,&__pyx_t_8,&__pyx_t_5,&__pyx_t_1};
        for (i=0; i < 5; i++) {
          PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 599, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[5] = {&__pyx_t_4,&__pyx_t_7,&__pyx_t_8,&__pyx_t_5,&__pyx_t_1};
      __pyx_t_9 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 599, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
      for (index=0; index < 5; index++) {
        PyObject* item = __pyx_t_10(__pyx_t_9); if (unlikely(!item)) goto __pyx_L9_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 5) < (0)) __PYX_ERR(0, 599, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L10_unpacking_done;
      __pyx_L9_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 599, __pyx_L1_error)
      __pyx_L10_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i1);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i1, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i2);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i2, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_8 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j1);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j2);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j2, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":600
 *         if codes[-1][0] == 'equal':
 *             tag, i1, i2, j1, j2 = codes[-1]
 *             codes[-1] = tag, i1, min(i2, i1+n), j1, min(j2, j1+n)             # <<<<<<<<<<<<<<
 * 
 *         nn = n + n
*/
    __pyx_t_6 = PyNumber_Add(__pyx_cur_scope->__pyx_v_i1, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i2);
    __pyx_t_1 = __pyx_cur_scope->__pyx_v_i2;
    __pyx_t_8 = PyObject_RichCompare(__pyx_t_6, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 600, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 600, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (__pyx_t_3) {
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_5 = __pyx_t_6;
    } else {
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_5 = __pyx_t_1;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyNumber_Add(__pyx_cur_scope->__pyx_v_j1, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j2);
    __pyx_t_1 = __pyx_cur_scope->__pyx_v_j2;
    __pyx_t_7 = PyObject_RichCompare(__pyx_t_6, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 600, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 600, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (__pyx_t_3) {
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_8 = __pyx_t_6;
    } else {
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_8 = __pyx_t_1;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tag);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_cur_scope->__pyx_v_tag) != (0)) __PYX_ERR(0, 600, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i1);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_i1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_cur_scope->__pyx_v_i1) != (0)) __PYX_ERR(0, 600, __pyx_L1_error);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_5) != (0)) __PYX_ERR(0, 600, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j1);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_j1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_cur_scope->__pyx_v_j1) != (0)) __PYX_ERR(0, 600, __pyx_L1_error);
    __Pyx_INCREF(__pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_t_8) != (0)) __PYX_ERR(0, 600, __pyx_L1_error);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(__pyx_cur_scope->__pyx_v_codes == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 600, __pyx_L1_error)
    }
    if (unlikely((__Pyx_SetItemInt(__pyx_cur_scope->__pyx_v_codes, -1L, __pyx_t_6, long, 1, __Pyx_PyLong_From_long, 1, 1, 1, 1, __Pyx_ReferenceSharing_SharedReference) < 0))) __PYX_ERR(0, 600, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "lxml/html/_difflib.py":598
 *             tag, i1, i2, j1, j2 = codes[0]
 *             codes[0] = tag, max(i1, i2-n), i2, max(j1, j2-n), j2
 *         if codes[-1][0] == 'equal':             # <<<<<<<<<<<<<<
 *             tag, i1, i2, j1, j2 = codes[-1]
 *             codes[-1] = tag, i1, min(i2, i1+n), j1, min(j2, j1+n)
*/
  }

  /* "lxml/html/_difflib.py":602
 *             codes[-1] = tag, i1, min(i2, i1+n), j1, min(j2, j1+n)
 * 
 *         nn = n + n             # <<<<<<<<<<<<<<
 *         group = []
 *         for tag, i1, i2, j1, j2 in codes:
*/
  __pyx_t_6 = PyNumber_Add(__pyx_cur_scope->__pyx_v_n, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __pyx_cur_scope->__pyx_v_nn = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":603
 * 
 *         nn = n + n
 *         group = []             # <<<<<<<<<<<<<<
 *         for tag, i1, i2, j1, j2 in codes:
 *             # End the current group and start a new one whenever
*/
  __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __pyx_cur_scope->__pyx_v_group = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":604
 *         nn = n + n
 *         group = []
 *         for tag, i1, i2, j1, j2 in codes:             # <<<<<<<<<<<<<<
 *             # End the current group and start a new one whenever
 *             # there is a large range with no changes.
*/
  if (unlikely(__pyx_cur_scope->__pyx_v_codes == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 604, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_cur_scope->__pyx_v_codes; __Pyx_INCREF(__pyx_t_6);
  __pyx_t_11 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 604, __pyx_L1_error)
      #endif
      if (__pyx_t_11 >= __pyx_temp) break;
    }
    __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_11;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if ((likely(PyTuple_CheckExact(__pyx_t_8))) || (PyList_CheckExact(__pyx_t_8))) {
      PyObject* sequence = __pyx_t_8;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 5)) {
        if (size > 5) __Pyx_RaiseTooManyValuesError(5);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 604, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 3);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 4);
        __Pyx_INCREF(__pyx_t_9);
      } else {
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 604, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 604, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 604, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 604, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 604, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_9);
      }
      #else
      {
        Py_ssize_t i;
        PyObject** temps[5] = {&__pyx_t_5,&__pyx_t_1,&__pyx_t_7,&__pyx_t_4,&__pyx_t_9};
        for (i=0; i < 5; i++) {
          PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 604, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[5] = {&__pyx_t_5,&__pyx_t_1,&__pyx_t_7,&__pyx_t_4,&__pyx_t_9};
      __pyx_t_12 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 604, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12);
      for (index=0; index < 5; index++) {
        PyObject* item = __pyx_t_10(__pyx_t_12); if (unlikely(!item)) goto __pyx_L13_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_12), 5) < (0)) __PYX_ERR(0, 604, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L14_unpacking_done;
      __pyx_L13_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 604, __pyx_L1_error)
      __pyx_L14_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i1);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i2);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i2, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j1);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j2);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j2, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    __pyx_t_9 = 0;

    /* "lxml/html/_difflib.py":607
 *             # End the current group and start a new one whenever
 *             # there is a large range with no changes.
 *             if tag == 'equal' and i2-i1 > nn:             # <<<<<<<<<<<<<<
 *                 group.append((tag, i1, min(i2, i1+n), j1, min(j2, j1+n)))
 *                 yield group
*/
    __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_equal, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 607, __pyx_L1_error)
    if (__pyx_t_2) {
    } else {
      __pyx_t_3 = __pyx_t_2;
      goto __pyx_L16_bool_binop_done;
    }
    __pyx_t_8 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_i2, __pyx_cur_scope->__pyx_v_i1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = PyObject_RichCompare(__pyx_t_8, __pyx_cur_scope->__pyx_v_nn, Py_GT); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 607, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 607, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_3 = __pyx_t_2;
    __pyx_L16_bool_binop_done:;
    if (__pyx_t_3) {

      /* "lxml/html/_difflib.py":608
 *             # there is a large range with no changes.
 *             if tag == 'equal' and i2-i1 > nn:
 *                 group.append((tag, i1, min(i2, i1+n), j1, min(j2, j1+n)))             # <<<<<<<<<<<<<<
 *                 yield group
 *                 group = []
*/
      __pyx_t_9 = PyNumber_Add(__pyx_cur_scope->__pyx_v_i1, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 608, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i2);
      __pyx_t_8 = __pyx_cur_scope->__pyx_v_i2;
      __pyx_t_7 = PyObject_RichCompare(__pyx_t_9, __pyx_t_8, Py_LT); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 608, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 608, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (__pyx_t_3) {
        __Pyx_INCREF(__pyx_t_9);
        __pyx_t_4 = __pyx_t_9;
      } else {
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_4 = __pyx_t_8;
      }
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = PyNumber_Add(__pyx_cur_scope->__pyx_v_j1, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 608, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j2);
      __pyx_t_8 = __pyx_cur_scope->__pyx_v_j2;
      __pyx_t_1 = PyObject_RichCompare(__pyx_t_9, __pyx_t_8, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 608, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 608, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_3) {
        __Pyx_INCREF(__pyx_t_9);
        __pyx_t_7 = __pyx_t_9;
      } else {
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_7 = __pyx_t_8;
      }
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = PyTuple_New(5); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 608, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tag);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_cur_scope->__pyx_v_tag) != (0)) __PYX_ERR(0, 608, __pyx_L1_error);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i1);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_i1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_cur_scope->__pyx_v_i1) != (0)) __PYX_ERR(0, 608, __pyx_L1_error);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_4) != (0)) __PYX_ERR(0, 608, __pyx_L1_error);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j1);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_j1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_cur_scope->__pyx_v_j1) != (0)) __PYX_ERR(0, 608, __pyx_L1_error);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_7);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 4, __pyx_t_7) != (0)) __PYX_ERR(0, 608, __pyx_L1_error);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_group, __pyx_t_9); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 608, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "lxml/html/_difflib.py":609
 *             if tag == 'equal' and i2-i1 > nn:
 *                 group.append((tag, i1, min(i2, i1+n), j1, min(j2, j1+n)))
 *                 yield group             # <<<<<<<<<<<<<<
 *                 group = []
 *                 i1, j1 = max(i1, i2-n), max(j1, j2-n)
*/
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_group);
      __pyx_r = __pyx_cur_scope->__pyx_v_group;
      __Pyx_XGIVEREF(__pyx_t_6);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_6;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_11;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L18_resume_from_yield:;
      __pyx_t_6 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_6);
      __pyx_t_11 = __pyx_cur_scope->__pyx_t_1;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 609, __pyx_L1_error)

      /* "lxml/html/_difflib.py":610
 *                 group.append((tag, i1, min(i2, i1+n), j1, min(j2, j1+n)))
 *                 yield group
 *                 group = []             # <<<<<<<<<<<<<<
 *                 i1, j1 = max(i1, i2-n), max(j1, j2-n)
 *             group.append((tag, i1, i2, j1 ,j2))
*/
      __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_group);
      __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_group, ((PyObject*)__pyx_t_9));
      __Pyx_GIVEREF(__pyx_t_9);
      __pyx_t_9 = 0;

      /* "lxml/html/_difflib.py":611
 *                 yield group
 *                 group = []
 *                 i1, j1 = max(i1, i2-n), max(j1, j2-n)             # <<<<<<<<<<<<<<
 *             group.append((tag, i1, i2, j1 ,j2))
 *         if group and not (len(group)==1 and group[0][0] == 'equal'):
*/
      __pyx_t_9 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_i2, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 611, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i1);
      __pyx_t_7 = __pyx_cur_scope->__pyx_v_i1;
      __pyx_t_8 = PyObject_RichCompare(__pyx_t_9, __pyx_t_7, Py_GT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 611, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 611, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (__pyx_t_3) {
        __Pyx_INCREF(__pyx_t_9);
        __pyx_t_4 = __pyx_t_9;
      } else {
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_4 = __pyx_t_7;
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __pyx_t_4;
      __Pyx_INCREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_j2, __pyx_cur_scope->__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 611, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j1);
      __pyx_t_7 = __pyx_cur_scope->__pyx_v_j1;
      __pyx_t_1 = PyObject_RichCompare(__pyx_t_4, __pyx_t_7, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 611, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 611, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_3) {
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_8 = __pyx_t_4;
      } else {
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = __pyx_t_7;
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __pyx_t_8;
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_i1);
      __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_i1, __pyx_t_9);
      __Pyx_GIVEREF(__pyx_t_9);
      __pyx_t_9 = 0;
      __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_j1);
      __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_j1, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/html/_difflib.py":607
 *             # End the current group and start a new one whenever
 *             # there is a large range with no changes.
 *             if tag == 'equal' and i2-i1 > nn:             # <<<<<<<<<<<<<<
 *                 group.append((tag, i1, min(i2, i1+n), j1, min(j2, j1+n)))
 *                 yield group
*/
    }

    /* "lxml/html/_difflib.py":612
 *                 group = []
 *                 i1, j1 = max(i1, i2-n), max(j1, j2-n)
 *             group.append((tag, i1, i2, j1 ,j2))             # <<<<<<<<<<<<<<
 *         if group and not (len(group)==1 and group[0][0] == 'equal'):
 *             yield group
*/
    __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 612, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tag);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_cur_scope->__pyx_v_tag) != (0)) __PYX_ERR(0, 612, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i1);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_i1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_cur_scope->__pyx_v_i1) != (0)) __PYX_ERR(0, 612, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i2);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_i2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_cur_scope->__pyx_v_i2) != (0)) __PYX_ERR(0, 612, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j1);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_j1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_cur_scope->__pyx_v_j1) != (0)) __PYX_ERR(0, 612, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_j2);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_j2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_cur_scope->__pyx_v_j2) != (0)) __PYX_ERR(0, 612, __pyx_L1_error);
    __pyx_t_13 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_group, __pyx_t_4); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 612, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "lxml/html/_difflib.py":604
 *         nn = n + n
 *         group = []
 *         for tag, i1, i2, j1, j2 in codes:             # <<<<<<<<<<<<<<
 *             # End the current group and start a new one whenever
 *             # there is a large range with no changes.
*/
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":613
 *                 i1, j1 = max(i1, i2-n), max(j1, j2-n)
 *             group.append((tag, i1, i2, j1 ,j2))
 *         if group and not (len(group)==1 and group[0][0] == 'equal'):             # <<<<<<<<<<<<<<
 *             yield group
 * 
*/
  {
    Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_group);
    if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 613, __pyx_L1_error)
    __pyx_t_2 = (__pyx_temp != 0);
  }

  if (__pyx_t_2) {
  } else {
    __pyx_t_3 = __pyx_t_2;
    goto __pyx_L21_bool_binop_done;
  }
  __pyx_t_11 = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_group); if (unlikely(__pyx_t_11 == ((Py_ssize_t)-1))) __PYX_ERR(0, 613, __pyx_L1_error)
  __pyx_t_14 = (__pyx_t_11 == 1);
  if (__pyx_t_14) {
  } else {
    __pyx_t_2 = __pyx_t_14;
    goto __pyx_L23_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_cur_scope->__pyx_v_group, 0, long, 1, __Pyx_PyLong_From_long, 1, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_6, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_14 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_equal, Py_EQ)); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_14;
  __pyx_L23_bool_binop_done:;
  __pyx_t_14 = (!__pyx_t_2);
  __pyx_t_3 = __pyx_t_14;
  __pyx_L21_bool_binop_done:;
  if (__pyx_t_3) {

    /* "lxml/html/_difflib.py":614
 *             group.append((tag, i1, i2, j1 ,j2))
 *         if group and not (len(group)==1 and group[0][0] == 'equal'):
 *             yield group             # <<<<<<<<<<<<<<
 * 
 *     def ratio(self):
*/
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_group);
    __pyx_r = __pyx_cur_scope->__pyx_v_group;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 2;
    return __pyx_r;
    __pyx_L25_resume_from_yield:;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 614, __pyx_L1_error)

    /* "lxml/html/_difflib.py":613
 *                 i1, j1 = max(i1, i2-n), max(j1, j2-n)
 *             group.append((tag, i1, i2, j1 ,j2))
 *         if group and not (len(group)==1 and group[0][0] == 'equal'):             # <<<<<<<<<<<<<<
 *             yield group
 * 
*/
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":566
 *         return answer
 * 
 *     def get_grouped_opcodes(self, n=3):             # <<<<<<<<<<<<<<
 *         """ Isolate change clusters by eliminating ranges with no changes.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_12);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("get_grouped_opcodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":616
 *             yield group
 * 
 *     def ratio(self):             # <<<<<<<<<<<<<<
 *         """Return a measure of the sequences' similarity (float in [0,1]).
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_14ratio(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_13ratio, "Return a measure of the sequences' similarity (float in [0,1]).\n\n        Where T is the total number of elements in both sequences, and\n        M is the number of matches, this is 2.0*M / T.\n        Note that this is 1 if the sequences are identical, and 0 if\n        they have nothing in common.\n\n        .ratio() is expensive to compute if you haven't already computed\n        .get_matching_blocks() or .get_opcodes(), in which case you may\n        want to try .quick_ratio() or .real_quick_ratio() first to get an\n        upper bound.\n\n        >>> s = SequenceMatcher(None, \"abcd\", \"bcde\")\n        >>> s.ratio()\n        0.75\n        >>> s.quick_ratio()\n        0.75\n        >>> s.real_quick_ratio()\n        1.0\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_14ratio = {"ratio", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_14ratio, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_13ratio};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_14ratio(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ratio (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("ratio", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("ratio", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_13ratio(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_15SequenceMatcher_5ratio_2generator13(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":639
 * 
 *         matches: cython.Py_ssize_t
 *         matches = sum(triple[-1] for triple in self.get_matching_blocks())             # <<<<<<<<<<<<<<
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
 * 
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_5ratio_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 639, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_15SequenceMatcher_5ratio_2generator13, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_ratio_locals_genexpr, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 639, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.ratio.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_15SequenceMatcher_5ratio_2generator13(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 639, __pyx_L1_error)
  }
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 639, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 639, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 639, __pyx_L1_error)
      #endif
      if (__pyx_t_2 >= __pyx_temp) break;
    }
    __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_2;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_triple);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_triple, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_triple, -1L, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 639, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":616
 *             yield group
 * 
 *     def ratio(self):             # <<<<<<<<<<<<<<
 *         """Return a measure of the sequences' similarity (float in [0,1]).
 * 
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_13ratio(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  Py_ssize_t __pyx_v_matches;
  PyObject *__pyx_gb_4lxml_4html_8_difflib_15SequenceMatcher_5ratio_2generator13 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  double __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ratio", 0);

  /* "lxml/html/_difflib.py":639
 * 
 *         matches: cython.Py_ssize_t
 *         matches = sum(triple[-1] for triple in self.get_matching_blocks())             # <<<<<<<<<<<<<<
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self->__pyx_vtab)->get_matching_blocks(__pyx_v_self); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_5ratio_genexpr(NULL, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 639, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_matches = __pyx_t_6;

  /* "lxml/html/_difflib.py":640
 *         matches: cython.Py_ssize_t
 *         matches = sum(triple[-1] for triple in self.get_matching_blocks())
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))             # <<<<<<<<<<<<<<
 * 
 *     def quick_ratio(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_self->a;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 640, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_v_self->b;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_7 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 640, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_8 = __pyx_f_4lxml_4html_8_difflib__calculate_ratio(__pyx_v_matches, (__pyx_t_6 + __pyx_t_7)); if (unlikely(__pyx_t_8 == ((double)-1) && PyErr_Occurred())) __PYX_ERR(0, 640, __pyx_L1_error)
  __pyx_t_1 = PyFloat_FromDouble(__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":616
 *             yield group
 * 
 *     def ratio(self):             # <<<<<<<<<<<<<<
 *         """Return a measure of the sequences' similarity (float in [0,1]).
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.ratio", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_gb_4lxml_4html_8_difflib_15SequenceMatcher_5ratio_2generator13);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":642
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
 * 
 *     def quick_ratio(self):             # <<<<<<<<<<<<<<
 *         """Return an upper bound on ratio() relatively quickly.
 * 
*/

static double __pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_quick_ratio(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  PyObject *__pyx_v_fullbcount = NULL;
  PyObject *__pyx_v_elt = NULL;
  PyObject *__pyx_v_avail = NULL;
  Py_ssize_t __pyx_v_matches;
  PyObject *__pyx_v_numb = NULL;
  double __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  double __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("quick_ratio", 0);

  /* "lxml/html/_difflib.py":652
 *         # of their intersection; this counts the number of matches
 *         # without regard to order, so is clearly an upper bound
 *         if self.fullbcount is None:             # <<<<<<<<<<<<<<
 *             self.fullbcount = fullbcount = {}
 *             for elt in self.b:
*/
  __pyx_t_1 = (__pyx_v_self->fullbcount == ((PyObject*)Py_None));
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":653
 *         # without regard to order, so is clearly an upper bound
 *         if self.fullbcount is None:
 *             self.fullbcount = fullbcount = {}             # <<<<<<<<<<<<<<
 *             for elt in self.b:
 *                 fullbcount[elt] = fullbcount.get(elt, 0) + 1
*/
    __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_self->fullbcount);
    __Pyx_DECREF(__pyx_v_self->fullbcount);
    __pyx_v_self->fullbcount = __pyx_t_2;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_fullbcount = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":654
 *         if self.fullbcount is None:
 *             self.fullbcount = fullbcount = {}
 *             for elt in self.b:             # <<<<<<<<<<<<<<
 *                 fullbcount[elt] = fullbcount.get(elt, 0) + 1
 *         fullbcount = self.fullbcount
*/
    if (likely(PyList_CheckExact(__pyx_v_self->b)) || PyTuple_CheckExact(__pyx_v_self->b)) {
      __pyx_t_2 = __pyx_v_self->b; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = 0;
      __pyx_t_4 = NULL;
    } else {
      __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_self->b); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 654, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 654, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_4)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 654, __pyx_L1_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_3;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 654, __pyx_L1_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3);
          #endif
          ++__pyx_t_3;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 654, __pyx_L1_error)
      } else {
        __pyx_t_5 = __pyx_t_4(__pyx_t_2);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 654, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "lxml/html/_difflib.py":655
 *             self.fullbcount = fullbcount = {}
 *             for elt in self.b:
 *                 fullbcount[elt] = fullbcount.get(elt, 0) + 1             # <<<<<<<<<<<<<<
 *         fullbcount = self.fullbcount
 *         # avail[x] is the number of times x appears in 'b' less the
*/
      __pyx_t_5 = __Pyx_PyDict_GetItemDefault(__pyx_v_fullbcount, __pyx_v_elt, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 655, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyLong_AddObjC(__pyx_t_5, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 655, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely((PyDict_SetItem(__pyx_v_fullbcount, __pyx_v_elt, __pyx_t_6) < 0))) __PYX_ERR(0, 655, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "lxml/html/_difflib.py":654
 *         if self.fullbcount is None:
 *             self.fullbcount = fullbcount = {}
 *             for elt in self.b:             # <<<<<<<<<<<<<<
 *                 fullbcount[elt] = fullbcount.get(elt, 0) + 1
 *         fullbcount = self.fullbcount
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":652
 *         # of their intersection; this counts the number of matches
 *         # without regard to order, so is clearly an upper bound
 *         if self.fullbcount is None:             # <<<<<<<<<<<<<<
 *             self.fullbcount = fullbcount = {}
 *             for elt in self.b:
*/
  }

  /* "lxml/html/_difflib.py":656
 *             for elt in self.b:
 *                 fullbcount[elt] = fullbcount.get(elt, 0) + 1
 *         fullbcount = self.fullbcount             # <<<<<<<<<<<<<<
 *         # avail[x] is the number of times x appears in 'b' less the
 *         # number of times we've seen it in 'a' so far ... kinda
*/
  __pyx_t_2 = __pyx_v_self->fullbcount;
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_XDECREF_SET(__pyx_v_fullbcount, ((PyObject*)__pyx_t_2));
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":659
 *         # avail[x] is the number of times x appears in 'b' less the
 *         # number of times we've seen it in 'a' so far ... kinda
 *         avail = {}             # <<<<<<<<<<<<<<
 *         matches: cython.Py_ssize_t = 0
 *         for elt in self.a:
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_avail = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":660
 *         # number of times we've seen it in 'a' so far ... kinda
 *         avail = {}
 *         matches: cython.Py_ssize_t = 0             # <<<<<<<<<<<<<<
 *         for elt in self.a:
 *             if elt in avail:
*/
  __pyx_v_matches = 0;

  /* "lxml/html/_difflib.py":661
 *         avail = {}
 *         matches: cython.Py_ssize_t = 0
 *         for elt in self.a:             # <<<<<<<<<<<<<<
 *             if elt in avail:
 *                 numb = avail[elt]
*/
  if (likely(PyList_CheckExact(__pyx_v_self->a)) || PyTuple_CheckExact(__pyx_v_self->a)) {
    __pyx_t_2 = __pyx_v_self->a; __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_self->a); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 661, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 661, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_3;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 661, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3));
        #else
        __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3);
        #endif
        ++__pyx_t_3;
      }
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 661, __pyx_L1_error)
    } else {
      __pyx_t_6 = __pyx_t_4(__pyx_t_2);
      if (unlikely(!__pyx_t_6)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 661, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "lxml/html/_difflib.py":662
 *         matches: cython.Py_ssize_t = 0
 *         for elt in self.a:
 *             if elt in avail:             # <<<<<<<<<<<<<<
 *                 numb = avail[elt]
 *             else:
*/
    __pyx_t_1 = (__Pyx_PyDict_ContainsTF(__pyx_v_elt, __pyx_v_avail, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 662, __pyx_L1_error)
    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":663
 *         for elt in self.a:
 *             if elt in avail:
 *                 numb = avail[elt]             # <<<<<<<<<<<<<<
 *             else:
 *                 numb = fullbcount.get(elt, 0)
*/
      __pyx_t_6 = __Pyx_PyDict_GetItem(__pyx_v_avail, __pyx_v_elt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 663, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_v_numb, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "lxml/html/_difflib.py":662
 *         matches: cython.Py_ssize_t = 0
 *         for elt in self.a:
 *             if elt in avail:             # <<<<<<<<<<<<<<
 *                 numb = avail[elt]
 *             else:
*/
      goto __pyx_L9;
    }

    /* "lxml/html/_difflib.py":665
 *                 numb = avail[elt]
 *             else:
 *                 numb = fullbcount.get(elt, 0)             # <<<<<<<<<<<<<<
 *             avail[elt] = numb - 1
 *             if numb > 0:
*/
    /*else*/ {
      if (unlikely(__pyx_v_fullbcount == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(0, 665, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyDict_GetItemDefault(__pyx_v_fullbcount, __pyx_v_elt, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 665, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_v_numb, __pyx_t_6);
      __pyx_t_6 = 0;
    }
    __pyx_L9:;

    /* "lxml/html/_difflib.py":666
 *             else:
 *                 numb = fullbcount.get(elt, 0)
 *             avail[elt] = numb - 1             # <<<<<<<<<<<<<<
 *             if numb > 0:
 *                 matches += 1
*/
    __pyx_t_6 = __Pyx_PyLong_SubtractObjC(__pyx_v_numb, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely((PyDict_SetItem(__pyx_v_avail, __pyx_v_elt, __pyx_t_6) < 0))) __PYX_ERR(0, 666, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "lxml/html/_difflib.py":667
 *                 numb = fullbcount.get(elt, 0)
 *             avail[elt] = numb - 1
 *             if numb > 0:             # <<<<<<<<<<<<<<
 *                 matches += 1
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
*/
    __pyx_t_6 = PyObject_RichCompare(__pyx_v_numb, __pyx_mstate_global->__pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 667, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 667, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__pyx_t_1) {

      /* "lxml/html/_difflib.py":668
 *             avail[elt] = numb - 1
 *             if numb > 0:
 *                 matches += 1             # <<<<<<<<<<<<<<
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
 * 
*/
      __pyx_v_matches = (__pyx_v_matches + 1);

      /* "lxml/html/_difflib.py":667
 *                 numb = fullbcount.get(elt, 0)
 *             avail[elt] = numb - 1
 *             if numb > 0:             # <<<<<<<<<<<<<<
 *                 matches += 1
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
*/
    }

    /* "lxml/html/_difflib.py":661
 *         avail = {}
 *         matches: cython.Py_ssize_t = 0
 *         for elt in self.a:             # <<<<<<<<<<<<<<
 *             if elt in avail:
 *                 numb = avail[elt]
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":669
 *             if numb > 0:
 *                 matches += 1
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))             # <<<<<<<<<<<<<<
 * 
 *     def real_quick_ratio(self):
*/
  __pyx_t_2 = __pyx_v_self->a;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __pyx_v_self->b;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_7 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_8 = __pyx_f_4lxml_4html_8_difflib__calculate_ratio(__pyx_v_matches, (__pyx_t_3 + __pyx_t_7)); if (unlikely(__pyx_t_8 == ((double)-1) && PyErr_Occurred())) __PYX_ERR(0, 669, __pyx_L1_error)
  __pyx_r = __pyx_t_8;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":642
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
 * 
 *     def quick_ratio(self):             # <<<<<<<<<<<<<<
 *         """Return an upper bound on ratio() relatively quickly.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.quick_ratio", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_fullbcount);
  __Pyx_XDECREF(__pyx_v_elt);
  __Pyx_XDECREF(__pyx_v_avail);
  __Pyx_XDECREF(__pyx_v_numb);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":671
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
 * 
 *     def real_quick_ratio(self):             # <<<<<<<<<<<<<<
 *         """Return an upper bound on ratio() very quickly.
 * 
*/

static double __pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_real_quick_ratio(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  Py_ssize_t __pyx_v_la;
  Py_ssize_t __pyx_v_lb;
  double __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  double __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("real_quick_ratio", 0);

  /* "lxml/html/_difflib.py":678
 *         """
 * 
 *         la, lb = len(self.a), len(self.b)             # <<<<<<<<<<<<<<
 *         # can't have more matches than the number of elements in the
 *         # shorter sequence
*/
  __pyx_t_1 = __pyx_v_self->a;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_v_self->b;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_la = __pyx_t_2;
  __pyx_v_lb = __pyx_t_3;

  /* "lxml/html/_difflib.py":681
 *         # can't have more matches than the number of elements in the
 *         # shorter sequence
 *         return _calculate_ratio(min(la, lb), la + lb)             # <<<<<<<<<<<<<<
 * 
 *     if GenericAlias is not None:
*/
  __pyx_t_3 = __pyx_v_lb;
  __pyx_t_2 = __pyx_v_la;
  __pyx_t_5 = (__pyx_t_3 < __pyx_t_2);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_t_3;
  } else {
    __pyx_t_4 = __pyx_t_2;
  }
  __pyx_t_6 = __pyx_f_4lxml_4html_8_difflib__calculate_ratio(__pyx_t_4, (__pyx_v_la + __pyx_v_lb)); if (unlikely(__pyx_t_6 == ((double)-1) && PyErr_Occurred())) __PYX_ERR(0, 681, __pyx_L1_error)
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":671
 *         return _calculate_ratio(matches, len(self.a) + len(self.b))
 * 
 *     def real_quick_ratio(self):             # <<<<<<<<<<<<<<
 *         """Return an upper bound on ratio() very quickly.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.real_quick_ratio", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.pxd":7
 * 
 * cdef class SequenceMatcher:
 *     cdef public object a             # <<<<<<<<<<<<<<
 *     cdef public object b
 *     cdef dict b2j
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a___get__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a___get__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->a);
  __pyx_r = __pyx_v_self->a;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a_2__set__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a_2__set__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->a);
  __Pyx_DECREF(__pyx_v_self->a);
  __pyx_v_self->a = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_5__del__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a_4__del__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1a_4__del__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->a);
  __Pyx_DECREF(__pyx_v_self->a);
  __pyx_v_self->a = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.pxd":8
 * cdef class SequenceMatcher:
 *     cdef public object a
 *     cdef public object b             # <<<<<<<<<<<<<<
 *     cdef dict b2j
 *     cdef dict fullbcount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b___get__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b___get__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->b);
  __pyx_r = __pyx_v_self->b;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b_2__set__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b_2__set__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->b);
  __Pyx_DECREF(__pyx_v_self->b);
  __pyx_v_self->b = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_5__del__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b_4__del__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_1b_4__del__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->b);
  __Pyx_DECREF(__pyx_v_self->b);
  __pyx_v_self->b = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_16__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_16__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_16__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_16__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_15__reduce_cython__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_15__reduce_cython__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.a, self.autojunk, self.b, self.b2j, self.bjunk, self.bpopular, self.fullbcount, self.isjunk, self.matching_blocks, self.opcodes)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None and _dict:
*/
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->autojunk); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(10); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->a);
  __Pyx_GIVEREF(__pyx_v_self->a);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->a) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->b);
  __Pyx_GIVEREF(__pyx_v_self->b);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->b) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->b2j);
  __Pyx_GIVEREF(__pyx_v_self->b2j);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_self->b2j) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->bjunk);
  __Pyx_GIVEREF(__pyx_v_self->bjunk);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_v_self->bjunk) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->bpopular);
  __Pyx_GIVEREF(__pyx_v_self->bpopular);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 5, __pyx_v_self->bpopular) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->fullbcount);
  __Pyx_GIVEREF(__pyx_v_self->fullbcount);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 6, __pyx_v_self->fullbcount) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->isjunk);
  __Pyx_GIVEREF(__pyx_v_self->isjunk);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 7, __pyx_v_self->isjunk) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->matching_blocks);
  __Pyx_GIVEREF(__pyx_v_self->matching_blocks);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 8, __pyx_v_self->matching_blocks) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->opcodes);
  __Pyx_GIVEREF(__pyx_v_self->opcodes);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 9, __pyx_v_self->opcodes) != (0)) __PYX_ERR(1, 5, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.a, self.autojunk, self.b, self.b2j, self.bjunk, self.bpopular, self.fullbcount, self.isjunk, self.matching_blocks, self.opcodes)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None and _dict:
 *         state += (_dict,)
*/
  __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v__dict = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "(tree fragment)":7
 *     state = (self.a, self.autojunk, self.b, self.b2j, self.bjunk, self.bpopular, self.fullbcount, self.isjunk, self.matching_blocks, self.opcodes)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None and _dict:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
*/
  __pyx_t_4 = (__pyx_v__dict != Py_None);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v__dict); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 7, __pyx_L1_error)
  __pyx_t_3 = __pyx_t_4;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None and _dict:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
*/
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict) != (0)) __PYX_ERR(1, 8, __pyx_L1_error);
    __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None and _dict:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.a is not None or self.b is not None or self.b2j is not None or self.bjunk is not None or self.bpopular is not None or self.fullbcount is not None or self.isjunk is not None or self.matching_blocks is not None or self.opcodes is not None
*/
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.a, self.autojunk, self.b, self.b2j, self.bjunk, self.bpopular, self.fullbcount, self.isjunk, self.matching_blocks, self.opcodes)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None and _dict:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
*/
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.a is not None or self.b is not None or self.b2j is not None or self.bjunk is not None or self.bpopular is not None or self.fullbcount is not None or self.isjunk is not None or self.matching_blocks is not None or self.opcodes is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, None), state
*/
  /*else*/ {
    __pyx_t_4 = (__pyx_v_self->a != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->b != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->b2j != ((PyObject*)Py_None));
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->bjunk != ((PyObject*)Py_None));
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->bpopular != ((PyObject*)Py_None));
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->fullbcount != ((PyObject*)Py_None));
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->isjunk != Py_None);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->matching_blocks != ((PyObject*)Py_None));
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->opcodes != ((PyObject*)Py_None));
    __pyx_t_3 = __pyx_t_4;
    __pyx_L6_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_3;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.a is not None or self.b is not None or self.b2j is not None or self.bjunk is not None or self.bpopular is not None or self.fullbcount is not None or self.isjunk is not None or self.matching_blocks is not None or self.opcodes is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, None), state
 *     else:
*/
  if (__pyx_v_use_setstate) {

    /* "(tree fragment)":13
 *         use_setstate = self.a is not None or self.b is not None or self.b2j is not None or self.bjunk is not None or self.bpopular is not None or self.fullbcount is not None or self.isjunk is not None or self.matching_blocks is not None or self.opcodes is not None
 *     if use_setstate:
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, state)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_SequenceMatcher); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))) != (0)) __PYX_ERR(1, 13, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_110135760);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_110135760);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_mstate_global->__pyx_int_110135760) != (0)) __PYX_ERR(1, 13, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None) != (0)) __PYX_ERR(1, 13, __pyx_L1_error);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(1, 13, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2) != (0)) __PYX_ERR(1, 13, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state) != (0)) __PYX_ERR(1, 13, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.a is not None or self.b is not None or self.b2j is not None or self.bjunk is not None or self.bpopular is not None or self.fullbcount is not None or self.isjunk is not None or self.matching_blocks is not None or self.opcodes is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, None), state
 *     else:
*/
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, None), state
 *     else:
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_SequenceMatcher__set_state(self, __pyx_state)
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_SequenceMatcher); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))) != (0)) __PYX_ERR(1, 15, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_110135760);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_110135760);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_mstate_global->__pyx_int_110135760) != (0)) __PYX_ERR(1, 15, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state) != (0)) __PYX_ERR(1, 15, __pyx_L1_error);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5) != (0)) __PYX_ERR(1, 15, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2) != (0)) __PYX_ERR(1, 15, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_SequenceMatcher__set_state(self, __pyx_state)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_18__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_18__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_18__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_18__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 16, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 16, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(1, 16, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(1, 16, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 16, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 16, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_17__setstate_cython__(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15SequenceMatcher_17__setstate_cython__(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_SequenceMatcher__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
*/
  __pyx_t_1 = __pyx_v___pyx_state;
  __Pyx_INCREF(__pyx_t_1);
  if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(1, 17, __pyx_L1_error)
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "cannot pass None into a C function argument that is declared 'not None'");
    __PYX_ERR(1, 17, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_f_4lxml_4html_8_difflib___pyx_unpickle_SequenceMatcher__set_state(__pyx_v_self, ((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_SequenceMatcher__set_state(self, __pyx_state)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.SequenceMatcher.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":687
 * 
 * 
 * def get_close_matches(word, possibilities, n=3, cutoff=0.6):             # <<<<<<<<<<<<<<
 *     """Use SequenceMatcher to return list of the best "good enough" matches.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_1get_close_matches(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_get_close_matches, "Use SequenceMatcher to return list of the best \"good enough\" matches.\n\n    word is a sequence for which close matches are desired (typically a\n    string).\n\n    possibilities is a list of sequences against which to match word\n    (typically a list of strings).\n\n    Optional arg n (default 3) is the maximum number of close matches to\n    return.  n must be > 0.\n\n    Optional arg cutoff (default 0.6) is a float in [0, 1].  Possibilities\n    that don't score at least that similar to word are ignored.\n\n    The best (no more than n) matches among the possibilities are returned\n    in a list, sorted by similarity score, most similar first.\n\n    >>> get_close_matches(\"appel\", [\"ape\", \"apple\", \"peach\", \"puppy\"])\n    ['apple', 'ape']\n    >>> import keyword as _keyword\n    >>> get_close_matches(\"wheel\", _keyword.kwlist)\n    ['while']\n    >>> get_close_matches(\"Apple\", _keyword.kwlist)\n    []\n    >>> get_close_matches(\"accept\", _keyword.kwlist)\n    ['except']\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_1get_close_matches = {"get_close_matches", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_1get_close_matches, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_get_close_matches};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_1get_close_matches(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_word = 0;
  PyObject *__pyx_v_possibilities = 0;
  PyObject *__pyx_v_n = 0;
  PyObject *__pyx_v_cutoff = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_close_matches (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_word,&__pyx_mstate_global->__pyx_n_u_possibilities,&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_cutoff,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 687, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_close_matches", 0) < (0)) __PYX_ERR(0, 687, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_3)));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_float_0_6)));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_close_matches", 0, 2, 4, i); __PYX_ERR(0, 687, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 687, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 687, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_3)));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_float_0_6)));
    }
    __pyx_v_word = values[0];
    __pyx_v_possibilities = values[1];
    __pyx_v_n = values[2];
    __pyx_v_cutoff = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_close_matches", 0, 2, 4, __pyx_nargs); __PYX_ERR(0, 687, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.get_close_matches", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_get_close_matches(__pyx_self, __pyx_v_word, __pyx_v_possibilities, __pyx_v_n, __pyx_v_cutoff);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_get_close_matches(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_word, PyObject *__pyx_v_possibilities, PyObject *__pyx_v_n, PyObject *__pyx_v_cutoff) {
  PyObject *__pyx_v_result = NULL;
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v_s = NULL;
  PyObject *__pyx_v_x = NULL;
  PyObject *__pyx_v_ratio = NULL;
  CYTHON_UNUSED PyObject *__pyx_8genexpr1__pyx_v_score = NULL;
  PyObject *__pyx_8genexpr1__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  double __pyx_t_10;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *(*__pyx_t_14)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_close_matches", 0);

  /* "lxml/html/_difflib.py":716
 *     """
 * 
 *     if not n >  0:             # <<<<<<<<<<<<<<
 *         raise ValueError("n must be > 0: %r" % (n,))
 *     if not 0.0 <= cutoff <= 1.0:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_n, __pyx_mstate_global->__pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 716, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 716, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (!__pyx_t_2);
  if (unlikely(__pyx_t_3)) {

    /* "lxml/html/_difflib.py":717
 * 
 *     if not n >  0:
 *         raise ValueError("n must be > 0: %r" % (n,))             # <<<<<<<<<<<<<<
 *     if not 0.0 <= cutoff <= 1.0:
 *         raise ValueError("cutoff must be in [0.0, 1.0]: %r" % (cutoff,))
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_n), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_n_must_be_0, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_6};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 717, __pyx_L1_error)

    /* "lxml/html/_difflib.py":716
 *     """
 * 
 *     if not n >  0:             # <<<<<<<<<<<<<<
 *         raise ValueError("n must be > 0: %r" % (n,))
 *     if not 0.0 <= cutoff <= 1.0:
*/
  }

  /* "lxml/html/_difflib.py":718
 *     if not n >  0:
 *         raise ValueError("n must be > 0: %r" % (n,))
 *     if not 0.0 <= cutoff <= 1.0:             # <<<<<<<<<<<<<<
 *         raise ValueError("cutoff must be in [0.0, 1.0]: %r" % (cutoff,))
 *     result = []
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_mstate_global->__pyx_float_0_0, __pyx_v_cutoff, Py_LE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
  if (__Pyx_PyObject_IsTrue(__pyx_t_1)) {
    __Pyx_DECREF(__pyx_t_1);
    __pyx_t_1 = PyObject_RichCompare(__pyx_v_cutoff, __pyx_mstate_global->__pyx_float_1_0, Py_LE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_3);
  if (unlikely(__pyx_t_2)) {

    /* "lxml/html/_difflib.py":719
 *         raise ValueError("n must be > 0: %r" % (n,))
 *     if not 0.0 <= cutoff <= 1.0:
 *         raise ValueError("cutoff must be in [0.0, 1.0]: %r" % (cutoff,))             # <<<<<<<<<<<<<<
 *     result = []
 *     s = SequenceMatcher()
*/
    __pyx_t_6 = NULL;
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_cutoff), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cutoff_must_be_in_0_0_1_0, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 719, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 719, __pyx_L1_error)

    /* "lxml/html/_difflib.py":718
 *     if not n >  0:
 *         raise ValueError("n must be > 0: %r" % (n,))
 *     if not 0.0 <= cutoff <= 1.0:             # <<<<<<<<<<<<<<
 *         raise ValueError("cutoff must be in [0.0, 1.0]: %r" % (cutoff,))
 *     result = []
*/
  }

  /* "lxml/html/_difflib.py":720
 *     if not 0.0 <= cutoff <= 1.0:
 *         raise ValueError("cutoff must be in [0.0, 1.0]: %r" % (cutoff,))
 *     result = []             # <<<<<<<<<<<<<<
 *     s = SequenceMatcher()
 *     s.set_seq2(word)
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":721
 *         raise ValueError("cutoff must be in [0.0, 1.0]: %r" % (cutoff,))
 *     result = []
 *     s = SequenceMatcher()             # <<<<<<<<<<<<<<
 *     s.set_seq2(word)
 *     for x in possibilities:
*/
  __pyx_t_5 = NULL;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 721, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_s = ((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":722
 *     result = []
 *     s = SequenceMatcher()
 *     s.set_seq2(word)             # <<<<<<<<<<<<<<
 *     for x in possibilities:
 *         s.set_seq1(x)
*/
  __pyx_t_5 = ((PyObject *)__pyx_v_s);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_word};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_seq2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 722, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":723
 *     s = SequenceMatcher()
 *     s.set_seq2(word)
 *     for x in possibilities:             # <<<<<<<<<<<<<<
 *         s.set_seq1(x)
 *         if s.real_quick_ratio() < cutoff or s.quick_ratio() < cutoff:
*/
  if (likely(PyList_CheckExact(__pyx_v_possibilities)) || PyTuple_CheckExact(__pyx_v_possibilities)) {
    __pyx_t_1 = __pyx_v_possibilities; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_8 = 0;
    __pyx_t_9 = NULL;
  } else {
    __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_possibilities); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 723, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_9)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 723, __pyx_L1_error)
          #endif
          if (__pyx_t_8 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_8;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 723, __pyx_L1_error)
          #endif
          if (__pyx_t_8 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_8);
        #endif
        ++__pyx_t_8;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 723, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_9(__pyx_t_1);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 723, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_x, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":724
 *     s.set_seq2(word)
 *     for x in possibilities:
 *         s.set_seq1(x)             # <<<<<<<<<<<<<<
 *         if s.real_quick_ratio() < cutoff or s.quick_ratio() < cutoff:
 *             continue
*/
    __pyx_t_6 = ((PyObject *)__pyx_v_s);
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_x};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_seq1, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 724, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":725
 *     for x in possibilities:
 *         s.set_seq1(x)
 *         if s.real_quick_ratio() < cutoff or s.quick_ratio() < cutoff:             # <<<<<<<<<<<<<<
 *             continue
 * 
*/
    __pyx_t_10 = ((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_s->__pyx_vtab)->real_quick_ratio(__pyx_v_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 725, __pyx_L1_error)
    __pyx_t_5 = PyFloat_FromDouble(__pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_v_cutoff, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 725, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 725, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (!__pyx_t_3) {
    } else {
      __pyx_t_2 = __pyx_t_3;
      goto __pyx_L8_bool_binop_done;
    }
    __pyx_t_10 = ((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v_s->__pyx_vtab)->quick_ratio(__pyx_v_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 725, __pyx_L1_error)
    __pyx_t_6 = PyFloat_FromDouble(__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = PyObject_RichCompare(__pyx_t_6, __pyx_v_cutoff, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 725, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 725, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_2 = __pyx_t_3;
    __pyx_L8_bool_binop_done:;
    if (__pyx_t_2) {

      /* "lxml/html/_difflib.py":726
 *         s.set_seq1(x)
 *         if s.real_quick_ratio() < cutoff or s.quick_ratio() < cutoff:
 *             continue             # <<<<<<<<<<<<<<
 * 
 *         ratio = s.ratio()
*/
      goto __pyx_L5_continue;

      /* "lxml/html/_difflib.py":725
 *     for x in possibilities:
 *         s.set_seq1(x)
 *         if s.real_quick_ratio() < cutoff or s.quick_ratio() < cutoff:             # <<<<<<<<<<<<<<
 *             continue
 * 
*/
    }

    /* "lxml/html/_difflib.py":728
 *             continue
 * 
 *         ratio = s.ratio()             # <<<<<<<<<<<<<<
 *         if ratio >= cutoff:
 *             result.append((ratio, x))
*/
    __pyx_t_6 = ((PyObject *)__pyx_v_s);
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_ratio, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 728, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_XDECREF_SET(__pyx_v_ratio, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":729
 * 
 *         ratio = s.ratio()
 *         if ratio >= cutoff:             # <<<<<<<<<<<<<<
 *             result.append((ratio, x))
 * 
*/
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_ratio, __pyx_v_cutoff, Py_GE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 729, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 729, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_2) {

      /* "lxml/html/_difflib.py":730
 *         ratio = s.ratio()
 *         if ratio >= cutoff:
 *             result.append((ratio, x))             # <<<<<<<<<<<<<<
 * 
 *     # Move the best scorers to head of list
*/
      __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 730, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_ratio);
      __Pyx_GIVEREF(__pyx_v_ratio);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_ratio) != (0)) __PYX_ERR(0, 730, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_x);
      __Pyx_GIVEREF(__pyx_v_x);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_x) != (0)) __PYX_ERR(0, 730, __pyx_L1_error);
      __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_t_5); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 730, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "lxml/html/_difflib.py":729
 * 
 *         ratio = s.ratio()
 *         if ratio >= cutoff:             # <<<<<<<<<<<<<<
 *             result.append((ratio, x))
 * 
*/
    }

    /* "lxml/html/_difflib.py":723
 *     s = SequenceMatcher()
 *     s.set_seq2(word)
 *     for x in possibilities:             # <<<<<<<<<<<<<<
 *         s.set_seq1(x)
 *         if s.real_quick_ratio() < cutoff or s.quick_ratio() < cutoff:
*/
    __pyx_L5_continue:;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":733
 * 
 *     # Move the best scorers to head of list
 *     result = _nlargest(n, result)             # <<<<<<<<<<<<<<
 *     # Strip scores for the best n matches
 *     return [x for score, x in result]
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_nlargest); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_n, __pyx_v_result};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":735
 *     result = _nlargest(n, result)
 *     # Strip scores for the best n matches
 *     return [x for score, x in result]             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 735, __pyx_L14_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_result)) || PyTuple_CheckExact(__pyx_v_result)) {
      __pyx_t_6 = __pyx_v_result; __Pyx_INCREF(__pyx_t_6);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_result); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 735, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 735, __pyx_L14_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_6))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 735, __pyx_L14_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 735, __pyx_L14_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_8));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 735, __pyx_L14_error)
      } else {
        __pyx_t_5 = __pyx_t_9(__pyx_t_6);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 735, __pyx_L14_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
        PyObject* sequence = __pyx_t_5;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 735, __pyx_L14_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_12 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_12);
        } else {
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 735, __pyx_L14_error)
          __Pyx_XGOTREF(__pyx_t_4);
          __pyx_t_12 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 735, __pyx_L14_error)
          __Pyx_XGOTREF(__pyx_t_12);
        }
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 735, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_12 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 735, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_12);
        #endif
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_13 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 735, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_13);
        index = 0; __pyx_t_4 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_4)) goto __pyx_L17_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_4);
        index = 1; __pyx_t_12 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_12)) goto __pyx_L17_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_12);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_13), 2) < (0)) __PYX_ERR(0, 735, __pyx_L14_error)
        __pyx_t_14 = NULL;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        goto __pyx_L18_unpacking_done;
        __pyx_L17_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_t_14 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 735, __pyx_L14_error)
        __pyx_L18_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_score, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_x, __pyx_t_12);
      __pyx_t_12 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_8genexpr1__pyx_v_x))) __PYX_ERR(0, 735, __pyx_L14_error)
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_score); __pyx_8genexpr1__pyx_v_score = 0;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x); __pyx_8genexpr1__pyx_v_x = 0;
    goto __pyx_L20_exit_scope;
    __pyx_L14_error:;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_score); __pyx_8genexpr1__pyx_v_score = 0;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x); __pyx_8genexpr1__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L20_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":687
 * 
 * 
 * def get_close_matches(word, possibilities, n=3, cutoff=0.6):             # <<<<<<<<<<<<<<
 *     """Use SequenceMatcher to return list of the best "good enough" matches.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("lxml.html._difflib.get_close_matches", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF((PyObject *)__pyx_v_s);
  __Pyx_XDECREF(__pyx_v_x);
  __Pyx_XDECREF(__pyx_v_ratio);
  __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_score);
  __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":738
 * 
 * 
 * def _keep_original_ws(s, tag_s):             # <<<<<<<<<<<<<<
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_3_keep_original_ws(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_2_keep_original_ws, "Replace whitespace with the original whitespace characters in `s`");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_3_keep_original_ws = {"_keep_original_ws", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_3_keep_original_ws, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_2_keep_original_ws};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_3_keep_original_ws(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_s = 0;
  PyObject *__pyx_v_tag_s = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_keep_original_ws (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s,&__pyx_mstate_global->__pyx_n_u_tag_s,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 738, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 738, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 738, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_keep_original_ws", 0) < (0)) __PYX_ERR(0, 738, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_keep_original_ws", 1, 2, 2, i); __PYX_ERR(0, 738, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 738, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 738, __pyx_L3_error)
    }
    __pyx_v_s = values[0];
    __pyx_v_tag_s = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_keep_original_ws", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 738, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib._keep_original_ws", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_2_keep_original_ws(__pyx_self, __pyx_v_s, __pyx_v_tag_s);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_17_keep_original_ws_2generator14(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":741
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
 *         c if tag_c == " " and c.isspace() else tag_c             # <<<<<<<<<<<<<<
 *         for c, tag_c in zip(s, tag_s)
 *     )
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_17_keep_original_ws_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 741, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_17_keep_original_ws_2generator14, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_keep_original_ws_locals_genexpr, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 741, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib._keep_original_ws.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_17_keep_original_ws_2generator14(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_t_9;
  int __pyx_t_10;
  size_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 741, __pyx_L1_error)
  __pyx_r = PyList_New(0); if (unlikely(!__pyx_r)) __PYX_ERR(0, 741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);

  /* "lxml/html/_difflib.py":742
 *     return ''.join(
 *         c if tag_c == " " and c.isspace() else tag_c
 *         for c, tag_c in zip(s, tag_s)             # <<<<<<<<<<<<<<
 *     )
 * 
*/
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 742, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 742, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 742, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 742, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 742, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 742, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 742, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 742, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_6);
      } else {
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 742, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 742, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
      }
      #else
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 742, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 742, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_7 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 742, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
      index = 0; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < (0)) __PYX_ERR(0, 742, __pyx_L1_error)
      __pyx_t_8 = NULL;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 742, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_c);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_c, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag_c);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag_c, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;

    /* "lxml/html/_difflib.py":741
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
 *         c if tag_c == " " and c.isspace() else tag_c             # <<<<<<<<<<<<<<
 *         for c, tag_c in zip(s, tag_s)
 *     )
*/
    __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag_c, __pyx_mstate_global->__pyx_kp_u__3, Py_EQ)); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 741, __pyx_L1_error)
    if (__pyx_t_10) {
    } else {
      __pyx_t_9 = __pyx_t_10;
      goto __pyx_L8_bool_binop_done;
    }
    __pyx_t_5 = __pyx_cur_scope->__pyx_v_c;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_isspace, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 741, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 741, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_9 = __pyx_t_10;
    __pyx_L8_bool_binop_done:;
    if (__pyx_t_9) {
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_c);
      __pyx_t_4 = __pyx_cur_scope->__pyx_v_c;
    } else {
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag_c);
      __pyx_t_4 = __pyx_cur_scope->__pyx_v_tag_c;
    }
    if (unlikely(__Pyx_ListComp_Append(__pyx_r, (PyObject*)__pyx_t_4))) __PYX_ERR(0, 741, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "lxml/html/_difflib.py":742
 *     return ''.join(
 *         c if tag_c == " " and c.isspace() else tag_c
 *         for c, tag_c in zip(s, tag_s)             # <<<<<<<<<<<<<<
 *     )
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":741
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
 *         c if tag_c == " " and c.isspace() else tag_c             # <<<<<<<<<<<<<<
 *         for c, tag_c in zip(s, tag_s)
 *     )
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":738
 * 
 * 
 * def _keep_original_ws(s, tag_s):             # <<<<<<<<<<<<<<
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_2_keep_original_ws(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s, PyObject *__pyx_v_tag_s) {
  PyObject *__pyx_gb_4lxml_4html_8_difflib_17_keep_original_ws_2generator14 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_keep_original_ws", 0);

  /* "lxml/html/_difflib.py":740
 * def _keep_original_ws(s, tag_s):
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(             # <<<<<<<<<<<<<<
 *         c if tag_c == " " and c.isspace() else tag_c
 *         for c, tag_c in zip(s, tag_s)
*/
  __Pyx_XDECREF(__pyx_r);

  /* "lxml/html/_difflib.py":742
 *     return ''.join(
 *         c if tag_c == " " and c.isspace() else tag_c
 *         for c, tag_c in zip(s, tag_s)             # <<<<<<<<<<<<<<
 *     )
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_s, __pyx_v_tag_s};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_zip, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 742, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "lxml/html/_difflib.py":741
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
 *         c if tag_c == " " and c.isspace() else tag_c             # <<<<<<<<<<<<<<
 *         for c, tag_c in zip(s, tag_s)
 *     )
*/
  __pyx_t_2 = __pyx_pf_4lxml_4html_8_difflib_17_keep_original_ws_genexpr(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":740
 * def _keep_original_ws(s, tag_s):
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(             # <<<<<<<<<<<<<<
 *         c if tag_c == " " and c.isspace() else tag_c
 *         for c, tag_c in zip(s, tag_s)
*/
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":738
 * 
 * 
 * def _keep_original_ws(s, tag_s):             # <<<<<<<<<<<<<<
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib._keep_original_ws", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_gb_4lxml_4html_8_difflib_17_keep_original_ws_2generator14);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":833
 *     """
 * 
 *     def __init__(self, linejunk=None, charjunk=None):             # <<<<<<<<<<<<<<
 *         """
 *         Construct a text differencer, with optional filters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6Differ___init__, "\n        Construct a text differencer, with optional filters.\n\n        The two optional keyword parameters are for filter functions:\n\n        - `linejunk`: A function that should accept a single string argument,\n          and return true iff the string is junk. The module-level function\n          `IS_LINE_JUNK` may be used to filter out lines without visible\n          characters, except for at most one splat ('#').  It is recommended\n          to leave linejunk None; the underlying SequenceMatcher class has\n          an adaptive notion of \"noise\" lines that's better than any static\n          definition the author has ever been able to craft.\n\n        - `charjunk`: A function that should accept a string of length 1. The\n          module-level function `IS_CHARACTER_JUNK` may be used to filter out\n          whitespace characters (a blank or tab; **note**: bad idea to include\n          newline in this!).  Use of IS_CHARACTER_JUNK is recommended.\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6Differ_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6Differ_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_6Differ___init__};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_linejunk = 0;
  PyObject *__pyx_v_charjunk = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_linejunk,&__pyx_mstate_global->__pyx_n_u_charjunk,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 833, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 833, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 3, i); __PYX_ERR(0, 833, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 833, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_self = values[0];
    __pyx_v_linejunk = values[1];
    __pyx_v_charjunk = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 3, __pyx_nargs); __PYX_ERR(0, 833, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.Differ.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6Differ___init__(__pyx_self, __pyx_v_self, __pyx_v_linejunk, __pyx_v_charjunk);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_linejunk, PyObject *__pyx_v_charjunk) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "lxml/html/_difflib.py":853
 *         """
 * 
 *         self.linejunk = linejunk             # <<<<<<<<<<<<<<
 *         self.charjunk = charjunk
 * 
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_linejunk, __pyx_v_linejunk) < (0)) __PYX_ERR(0, 853, __pyx_L1_error)

  /* "lxml/html/_difflib.py":854
 * 
 *         self.linejunk = linejunk
 *         self.charjunk = charjunk             # <<<<<<<<<<<<<<
 * 
 *     def compare(self, a, b):
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_charjunk, __pyx_v_charjunk) < (0)) __PYX_ERR(0, 854, __pyx_L1_error)

  /* "lxml/html/_difflib.py":833
 *     """
 * 
 *     def __init__(self, linejunk=None, charjunk=None):             # <<<<<<<<<<<<<<
 *         """
 *         Construct a text differencer, with optional filters.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.Differ.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_4generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":856
 *         self.charjunk = charjunk
 * 
 *     def compare(self, a, b):             # <<<<<<<<<<<<<<
 *         r"""
 *         Compare two sequences of lines; generate the resulting delta.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_3compare(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6Differ_2compare, "\n        Compare two sequences of lines; generate the resulting delta.\n\n        Each sequence must contain individual single-line strings ending with\n        newlines. Such sequences can be obtained from the `readlines()` method\n        of file-like objects.  The delta generated also consists of newline-\n        terminated strings, ready to be printed as-is via the writelines()\n        method of a file-like object.\n\n        Example:\n\n        >>> print(''.join(Differ().compare('one\\ntwo\\nthree\\n'.splitlines(True),\n        ...                                'ore\\ntree\\nemu\\n'.splitlines(True))),\n        ...       end=\"\")\n        - one\n        ?  ^\n        + ore\n        ?  ^\n        - two\n        - three\n        ?  -\n        + tree\n        + emu\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6Differ_3compare = {"compare", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6Differ_3compare, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_6Differ_2compare};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_3compare(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_b = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("compare (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_b,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 856, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 856, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 856, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 856, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "compare", 0) < (0)) __PYX_ERR(0, 856, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("compare", 1, 3, 3, i); __PYX_ERR(0, 856, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 856, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 856, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 856, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_a = values[1];
    __pyx_v_b = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("compare", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 856, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.Differ.compare", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6Differ_2compare(__pyx_self, __pyx_v_self, __pyx_v_a, __pyx_v_b);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_2compare(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("compare", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_3_compare(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 856, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_a = __pyx_v_a;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_a);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_a);
  __pyx_cur_scope->__pyx_v_b = __pyx_v_b;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_b);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_b);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_6Differ_4generator1, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_compare, __pyx_mstate_global->__pyx_n_u_Differ_compare, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 856, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.Differ.compare", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_4generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  int __pyx_t_12;
  __Pyx_PySendResult __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("compare", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L9_resume_from_yield_from;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 856, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":882
 *         """
 * 
 *         cruncher = SequenceMatcher(self.linejunk, a, b)             # <<<<<<<<<<<<<<
 *         for tag, alo, ahi, blo, bhi in cruncher.get_opcodes():
 *             if tag == 'replace':
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_self, __pyx_mstate_global->__pyx_n_u_linejunk); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_3, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_b};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 882, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __pyx_cur_scope->__pyx_v_cruncher = ((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":883
 * 
 *         cruncher = SequenceMatcher(self.linejunk, a, b)
 *         for tag, alo, ahi, blo, bhi in cruncher.get_opcodes():             # <<<<<<<<<<<<<<
 *             if tag == 'replace':
 *                 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_cur_scope->__pyx_v_cruncher->__pyx_vtab)->get_opcodes(__pyx_cur_scope->__pyx_v_cruncher); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 883, __pyx_L1_error)
  }
  __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3);
  __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 883, __pyx_L1_error)
      #endif
      if (__pyx_t_5 >= __pyx_temp) break;
    }
    __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_5, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_5;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
      PyObject* sequence = __pyx_t_1;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 5)) {
        if (size > 5) __Pyx_RaiseTooManyValuesError(5);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 883, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 3);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 4);
        __Pyx_INCREF(__pyx_t_9);
      } else {
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 883, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 883, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 883, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 883, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_9);
      }
      #else
      {
        Py_ssize_t i;
        PyObject** temps[5] = {&__pyx_t_2,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9};
        for (i=0; i < 5; i++) {
          PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 883, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[5] = {&__pyx_t_2,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9};
      __pyx_t_10 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 883, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
      for (index=0; index < 5; index++) {
        PyObject* item = __pyx_t_11(__pyx_t_10); if (unlikely(!item)) goto __pyx_L6_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 5) < (0)) __PYX_ERR(0, 883, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 883, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_2 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_alo);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_alo, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_ahi);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_ahi, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_blo);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_blo, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_8 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_bhi);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_bhi, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    __pyx_t_9 = 0;

    /* "lxml/html/_difflib.py":884
 *         cruncher = SequenceMatcher(self.linejunk, a, b)
 *         for tag, alo, ahi, blo, bhi in cruncher.get_opcodes():
 *             if tag == 'replace':             # <<<<<<<<<<<<<<
 *                 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
 *             elif tag == 'delete':
*/
    __pyx_t_12 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_replace, Py_EQ)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 884, __pyx_L1_error)
    if (__pyx_t_12) {

      /* "lxml/html/_difflib.py":885
 *         for tag, alo, ahi, blo, bhi in cruncher.get_opcodes():
 *             if tag == 'replace':
 *                 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)             # <<<<<<<<<<<<<<
 *             elif tag == 'delete':
 *                 g = self._dump('-', a, alo, ahi)
*/
      __pyx_t_9 = __pyx_cur_scope->__pyx_v_self;
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[7] = {__pyx_t_9, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fancy_replace, __pyx_callargs+__pyx_t_4, (7-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 885, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_g);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":884
 *         cruncher = SequenceMatcher(self.linejunk, a, b)
 *         for tag, alo, ahi, blo, bhi in cruncher.get_opcodes():
 *             if tag == 'replace':             # <<<<<<<<<<<<<<
 *                 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
 *             elif tag == 'delete':
*/
      goto __pyx_L8;
    }

    /* "lxml/html/_difflib.py":886
 *             if tag == 'replace':
 *                 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
 *             elif tag == 'delete':             # <<<<<<<<<<<<<<
 *                 g = self._dump('-', a, alo, ahi)
 *             elif tag == 'insert':
*/
    __pyx_t_12 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_delete, Py_EQ)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 886, __pyx_L1_error)
    if (__pyx_t_12) {

      /* "lxml/html/_difflib.py":887
 *                 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
 *             elif tag == 'delete':
 *                 g = self._dump('-', a, alo, ahi)             # <<<<<<<<<<<<<<
 *             elif tag == 'insert':
 *                 g = self._dump('+', b, blo, bhi)
*/
      __pyx_t_9 = __pyx_cur_scope->__pyx_v_self;
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__4, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_g);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":886
 *             if tag == 'replace':
 *                 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
 *             elif tag == 'delete':             # <<<<<<<<<<<<<<
 *                 g = self._dump('-', a, alo, ahi)
 *             elif tag == 'insert':
*/
      goto __pyx_L8;
    }

    /* "lxml/html/_difflib.py":888
 *             elif tag == 'delete':
 *                 g = self._dump('-', a, alo, ahi)
 *             elif tag == 'insert':             # <<<<<<<<<<<<<<
 *                 g = self._dump('+', b, blo, bhi)
 *             elif tag == 'equal':
*/
    __pyx_t_12 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_insert, Py_EQ)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 888, __pyx_L1_error)
    if (__pyx_t_12) {

      /* "lxml/html/_difflib.py":889
 *                 g = self._dump('-', a, alo, ahi)
 *             elif tag == 'insert':
 *                 g = self._dump('+', b, blo, bhi)             # <<<<<<<<<<<<<<
 *             elif tag == 'equal':
 *                 g = self._dump(' ', a, alo, ahi)
*/
      __pyx_t_9 = __pyx_cur_scope->__pyx_v_self;
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__5, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 889, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_g);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":888
 *             elif tag == 'delete':
 *                 g = self._dump('-', a, alo, ahi)
 *             elif tag == 'insert':             # <<<<<<<<<<<<<<
 *                 g = self._dump('+', b, blo, bhi)
 *             elif tag == 'equal':
*/
      goto __pyx_L8;
    }

    /* "lxml/html/_difflib.py":890
 *             elif tag == 'insert':
 *                 g = self._dump('+', b, blo, bhi)
 *             elif tag == 'equal':             # <<<<<<<<<<<<<<
 *                 g = self._dump(' ', a, alo, ahi)
 *             else:
*/
    __pyx_t_12 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_equal, Py_EQ)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 890, __pyx_L1_error)
    if (likely(__pyx_t_12)) {

      /* "lxml/html/_difflib.py":891
 *                 g = self._dump('+', b, blo, bhi)
 *             elif tag == 'equal':
 *                 g = self._dump(' ', a, alo, ahi)             # <<<<<<<<<<<<<<
 *             else:
 *                 raise ValueError('unknown tag %r' % (tag,))
*/
      __pyx_t_9 = __pyx_cur_scope->__pyx_v_self;
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__3, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 891, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_g);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":890
 *             elif tag == 'insert':
 *                 g = self._dump('+', b, blo, bhi)
 *             elif tag == 'equal':             # <<<<<<<<<<<<<<
 *                 g = self._dump(' ', a, alo, ahi)
 *             else:
*/
      goto __pyx_L8;
    }

    /* "lxml/html/_difflib.py":893
 *                 g = self._dump(' ', a, alo, ahi)
 *             else:
 *                 raise ValueError('unknown tag %r' % (tag,))             # <<<<<<<<<<<<<<
 * 
 *             yield from g
*/
    /*else*/ {
      __pyx_t_9 = NULL;
      __pyx_t_8 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_cur_scope->__pyx_v_tag), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 893, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_unknown_tag, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 893, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 893, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 893, __pyx_L1_error)
    }
    __pyx_L8:;

    /* "lxml/html/_difflib.py":895
 *                 raise ValueError('unknown tag %r' % (tag,))
 * 
 *             yield from g             # <<<<<<<<<<<<<<
 * 
 *     def _dump(self, tag, x, lo, hi):
*/
    __pyx_t_13 = __Pyx_Generator_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_g, &__pyx_r);
    if (likely(__pyx_t_13 == PYGEN_NEXT)) {
      __Pyx_GOTREF(__pyx_r);
      __Pyx_XGIVEREF(__pyx_t_3);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_3;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_5;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L9_resume_from_yield_from:;
      __pyx_t_3 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_5 = __pyx_cur_scope->__pyx_t_1;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 895, __pyx_L1_error)
    } else if (likely(__pyx_t_13 == PYGEN_RETURN)) {
      __Pyx_GOTREF(__pyx_r);
      __Pyx_DECREF(__pyx_r); __pyx_r = 0;
    } else {
      __Pyx_XGOTREF(__pyx_r);
      __PYX_ERR(0, 895, __pyx_L1_error)
    }

    /* "lxml/html/_difflib.py":883
 * 
 *         cruncher = SequenceMatcher(self.linejunk, a, b)
 *         for tag, alo, ahi, blo, bhi in cruncher.get_opcodes():             # <<<<<<<<<<<<<<
 *             if tag == 'replace':
 *                 g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":856
 *         self.charjunk = charjunk
 * 
 *     def compare(self, a, b):             # <<<<<<<<<<<<<<
 *         r"""
 *         Compare two sequences of lines; generate the resulting delta.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("compare", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_7generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":897
 *             yield from g
 * 
 *     def _dump(self, tag, x, lo, hi):             # <<<<<<<<<<<<<<
 *         """Generate comparison results for a same-tagged range."""
 *         for i in range(lo, hi):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_6_dump(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6Differ_5_dump, "Generate comparison results for a same-tagged range.");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6Differ_6_dump = {"_dump", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6Differ_6_dump, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_6Differ_5_dump};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_6_dump(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_x = 0;
  PyObject *__pyx_v_lo = 0;
  PyObject *__pyx_v_hi = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_dump (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_lo,&__pyx_mstate_global->__pyx_n_u_hi,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 897, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 897, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 897, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 897, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 897, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 897, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_dump", 0) < (0)) __PYX_ERR(0, 897, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_dump", 1, 5, 5, i); __PYX_ERR(0, 897, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 897, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 897, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 897, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 897, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 897, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_tag = values[1];
    __pyx_v_x = values[2];
    __pyx_v_lo = values[3];
    __pyx_v_hi = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_dump", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 897, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.Differ._dump", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6Differ_5_dump(__pyx_self, __pyx_v_self, __pyx_v_tag, __pyx_v_x, __pyx_v_lo, __pyx_v_hi);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_5_dump(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_x, PyObject *__pyx_v_lo, PyObject *__pyx_v_hi) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_dump", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_4__dump(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 897, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_tag = __pyx_v_tag;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tag);
  __pyx_cur_scope->__pyx_v_x = __pyx_v_x;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_x);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_x);
  __pyx_cur_scope->__pyx_v_lo = __pyx_v_lo;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lo);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lo);
  __pyx_cur_scope->__pyx_v_hi = __pyx_v_hi;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_hi);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_hi);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_6Differ_7generator2, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_dump, __pyx_mstate_global->__pyx_n_u_Differ__dump, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 897, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.Differ._dump", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_7generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_dump", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 897, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":899
 *     def _dump(self, tag, x, lo, hi):
 *         """Generate comparison results for a same-tagged range."""
 *         for i in range(lo, hi):             # <<<<<<<<<<<<<<
 *             yield '%s %s' % (tag, x[i])
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_cur_scope->__pyx_v_lo, __pyx_cur_scope->__pyx_v_hi};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 899, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 899, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    {
      __pyx_t_1 = __pyx_t_4(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 899, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":900
 *         """Generate comparison results for a same-tagged range."""
 *         for i in range(lo, hi):
 *             yield '%s %s' % (tag, x[i])             # <<<<<<<<<<<<<<
 * 
 *     def _plain_replace(self, a, alo, ahi, b, blo, bhi):
*/
    __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_cur_scope->__pyx_v_tag), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_v_x, __pyx_cur_scope->__pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_5), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7[0] = __pyx_t_1;
    __pyx_t_7[1] = __pyx_mstate_global->__pyx_kp_u__3;
    __pyx_t_7[2] = __pyx_t_6;
    __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6));
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    __Pyx_XGIVEREF(__pyx_t_2);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_4;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_2);
    __pyx_t_4 = __pyx_cur_scope->__pyx_t_1;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 900, __pyx_L1_error)

    /* "lxml/html/_difflib.py":899
 *     def _dump(self, tag, x, lo, hi):
 *         """Generate comparison results for a same-tagged range."""
 *         for i in range(lo, hi):             # <<<<<<<<<<<<<<
 *             yield '%s %s' % (tag, x[i])
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":897
 *             yield from g
 * 
 *     def _dump(self, tag, x, lo, hi):             # <<<<<<<<<<<<<<
 *         """Generate comparison results for a same-tagged range."""
 *         for i in range(lo, hi):
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_dump", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_10generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":902
 *             yield '%s %s' % (tag, x[i])
 * 
 *     def _plain_replace(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         assert alo < ahi and blo < bhi
 *         # dump the shorter block first -- reduces the burden on short-term
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_9_plain_replace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6Differ_9_plain_replace = {"_plain_replace", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6Differ_9_plain_replace, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_9_plain_replace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_alo = 0;
  PyObject *__pyx_v_ahi = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_blo = 0;
  PyObject *__pyx_v_bhi = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_plain_replace (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_alo,&__pyx_mstate_global->__pyx_n_u_ahi,&__pyx_mstate_global->__pyx_n_u_b,&__pyx_mstate_global->__pyx_n_u_blo,&__pyx_mstate_global->__pyx_n_u_bhi,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 902, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 902, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 902, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 902, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 902, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 902, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 902, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 902, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_plain_replace", 0) < (0)) __PYX_ERR(0, 902, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_plain_replace", 1, 7, 7, i); __PYX_ERR(0, 902, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 902, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 902, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 902, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 902, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 902, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 902, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 902, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_a = values[1];
    __pyx_v_alo = values[2];
    __pyx_v_ahi = values[3];
    __pyx_v_b = values[4];
    __pyx_v_blo = values[5];
    __pyx_v_bhi = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_plain_replace", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 902, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.Differ._plain_replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6Differ_8_plain_replace(__pyx_self, __pyx_v_self, __pyx_v_a, __pyx_v_alo, __pyx_v_ahi, __pyx_v_b, __pyx_v_blo, __pyx_v_bhi);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_8_plain_replace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_alo, PyObject *__pyx_v_ahi, PyObject *__pyx_v_b, PyObject *__pyx_v_blo, PyObject *__pyx_v_bhi) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_plain_replace", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 902, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_a = __pyx_v_a;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_a);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_a);
  __pyx_cur_scope->__pyx_v_alo = __pyx_v_alo;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_alo);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_alo);
  __pyx_cur_scope->__pyx_v_ahi = __pyx_v_ahi;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_ahi);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_ahi);
  __pyx_cur_scope->__pyx_v_b = __pyx_v_b;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_b);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_b);
  __pyx_cur_scope->__pyx_v_blo = __pyx_v_blo;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_blo);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_blo);
  __pyx_cur_scope->__pyx_v_bhi = __pyx_v_bhi;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_bhi);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_bhi);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_6Differ_10generator3, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_plain_replace, __pyx_mstate_global->__pyx_n_u_Differ__plain_replace, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 902, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.Differ._plain_replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_10generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  __Pyx_PySendResult __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_plain_replace", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L9_resume_from_yield_from;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 902, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":903
 * 
 *     def _plain_replace(self, a, alo, ahi, b, blo, bhi):
 *         assert alo < ahi and blo < bhi             # <<<<<<<<<<<<<<
 *         # dump the shorter block first -- reduces the burden on short-term
 *         # memory if the blocks are of very different sizes
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_2 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 903, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 903, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_2 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 903, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 903, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_3;
    __pyx_L4_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
      __PYX_ERR(0, 903, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(0, 903, __pyx_L1_error)
  #endif

  /* "lxml/html/_difflib.py":906
 *         # dump the shorter block first -- reduces the burden on short-term
 *         # memory if the blocks are of very different sizes
 *         if bhi - blo < ahi - alo:             # <<<<<<<<<<<<<<
 *             first  = self._dump('+', b, blo, bhi)
 *             second = self._dump('-', a, alo, ahi)
*/
  __pyx_t_2 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_bhi, __pyx_cur_scope->__pyx_v_blo); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 906, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_ahi, __pyx_cur_scope->__pyx_v_alo); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 906, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, __pyx_t_4, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 906, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 906, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":907
 *         # memory if the blocks are of very different sizes
 *         if bhi - blo < ahi - alo:
 *             first  = self._dump('+', b, blo, bhi)             # <<<<<<<<<<<<<<
 *             second = self._dump('-', a, alo, ahi)
 *         else:
*/
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__5, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_6, (5-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 907, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_cur_scope->__pyx_v_first = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":908
 *         if bhi - blo < ahi - alo:
 *             first  = self._dump('+', b, blo, bhi)
 *             second = self._dump('-', a, alo, ahi)             # <<<<<<<<<<<<<<
 *         else:
 *             first  = self._dump('-', a, alo, ahi)
*/
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__4, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_6, (5-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 908, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_cur_scope->__pyx_v_second = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":906
 *         # dump the shorter block first -- reduces the burden on short-term
 *         # memory if the blocks are of very different sizes
 *         if bhi - blo < ahi - alo:             # <<<<<<<<<<<<<<
 *             first  = self._dump('+', b, blo, bhi)
 *             second = self._dump('-', a, alo, ahi)
*/
    goto __pyx_L6;
  }

  /* "lxml/html/_difflib.py":910
 *             second = self._dump('-', a, alo, ahi)
 *         else:
 *             first  = self._dump('-', a, alo, ahi)             # <<<<<<<<<<<<<<
 *             second = self._dump('+', b, blo, bhi)
 * 
*/
  /*else*/ {
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__4, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_6, (5-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 910, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_cur_scope->__pyx_v_first = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":911
 *         else:
 *             first  = self._dump('-', a, alo, ahi)
 *             second = self._dump('+', b, blo, bhi)             # <<<<<<<<<<<<<<
 * 
 *         for g in first, second:
*/
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__5, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_6, (5-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 911, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_cur_scope->__pyx_v_second = __pyx_t_5;
    __pyx_t_5 = 0;
  }
  __pyx_L6:;

  /* "lxml/html/_difflib.py":913
 *             second = self._dump('+', b, blo, bhi)
 * 
 *         for g in first, second:             # <<<<<<<<<<<<<<
 *             yield from g
 * 
*/
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_first);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_first);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_cur_scope->__pyx_v_first) != (0)) __PYX_ERR(0, 913, __pyx_L1_error);
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_second);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_second);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_cur_scope->__pyx_v_second) != (0)) __PYX_ERR(0, 913, __pyx_L1_error);
  __pyx_t_4 = __pyx_t_5; __Pyx_INCREF(__pyx_t_4);
  __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  for (;;) {
    if (__pyx_t_7 >= 2) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7));
    #else
    __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7);
    #endif
    ++__pyx_t_7;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 913, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_g);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":914
 * 
 *         for g in first, second:
 *             yield from g             # <<<<<<<<<<<<<<
 * 
 *     def _fancy_replace(self, a, alo, ahi, b, blo, bhi):
*/
    __pyx_t_8 = __Pyx_Generator_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_g, &__pyx_r);
    if (likely(__pyx_t_8 == PYGEN_NEXT)) {
      __Pyx_GOTREF(__pyx_r);
      __Pyx_XGIVEREF(__pyx_t_4);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_4;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_7;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L9_resume_from_yield_from:;
      __pyx_t_4 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_4);
      __pyx_t_7 = __pyx_cur_scope->__pyx_t_1;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 914, __pyx_L1_error)
    } else if (likely(__pyx_t_8 == PYGEN_RETURN)) {
      __Pyx_GOTREF(__pyx_r);
      __Pyx_DECREF(__pyx_r); __pyx_r = 0;
    } else {
      __Pyx_XGOTREF(__pyx_r);
      __PYX_ERR(0, 914, __pyx_L1_error)
    }

    /* "lxml/html/_difflib.py":913
 *             second = self._dump('+', b, blo, bhi)
 * 
 *         for g in first, second:             # <<<<<<<<<<<<<<
 *             yield from g
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":902
 *             yield '%s %s' % (tag, x[i])
 * 
 *     def _plain_replace(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         assert alo < ahi and blo < bhi
 *         # dump the shorter block first -- reduces the burden on short-term
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_plain_replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_13generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":916
 *             yield from g
 * 
 *     def _fancy_replace(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         r"""
 *         When replacing one block of lines with another, search the blocks
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_12_fancy_replace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6Differ_11_fancy_replace, "\n        When replacing one block of lines with another, search the blocks\n        for *similar* lines; the best-matching pair (if any) is used as a\n        synch point, and intraline difference marking is done on the\n        similar pair. Lots of work, but often worth it.\n\n        Example:\n\n        >>> d = Differ()\n        >>> results = d._fancy_replace(['abcDefghiJkl\\n'], 0, 1,\n        ...                            ['abcdefGhijkl\\n'], 0, 1)\n        >>> print(''.join(results), end=\"\")\n        - abcDefghiJkl\n        ?    ^  ^  ^\n        + abcdefGhijkl\n        ?    ^  ^  ^\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6Differ_12_fancy_replace = {"_fancy_replace", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6Differ_12_fancy_replace, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_6Differ_11_fancy_replace};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_12_fancy_replace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_alo = 0;
  PyObject *__pyx_v_ahi = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_blo = 0;
  PyObject *__pyx_v_bhi = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_fancy_replace (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_alo,&__pyx_mstate_global->__pyx_n_u_ahi,&__pyx_mstate_global->__pyx_n_u_b,&__pyx_mstate_global->__pyx_n_u_blo,&__pyx_mstate_global->__pyx_n_u_bhi,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 916, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_fancy_replace", 0) < (0)) __PYX_ERR(0, 916, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_fancy_replace", 1, 7, 7, i); __PYX_ERR(0, 916, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 916, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 916, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 916, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 916, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 916, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 916, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 916, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_a = values[1];
    __pyx_v_alo = values[2];
    __pyx_v_ahi = values[3];
    __pyx_v_b = values[4];
    __pyx_v_blo = values[5];
    __pyx_v_bhi = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_fancy_replace", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 916, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.Differ._fancy_replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6Differ_11_fancy_replace(__pyx_self, __pyx_v_self, __pyx_v_a, __pyx_v_alo, __pyx_v_ahi, __pyx_v_b, __pyx_v_blo, __pyx_v_bhi);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_11_fancy_replace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_alo, PyObject *__pyx_v_ahi, PyObject *__pyx_v_b, PyObject *__pyx_v_blo, PyObject *__pyx_v_bhi) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_fancy_replace", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 916, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_a = __pyx_v_a;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_a);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_a);
  __pyx_cur_scope->__pyx_v_alo = __pyx_v_alo;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_alo);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_alo);
  __pyx_cur_scope->__pyx_v_ahi = __pyx_v_ahi;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_ahi);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_ahi);
  __pyx_cur_scope->__pyx_v_b = __pyx_v_b;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_b);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_b);
  __pyx_cur_scope->__pyx_v_blo = __pyx_v_blo;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_blo);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_blo);
  __pyx_cur_scope->__pyx_v_bhi = __pyx_v_bhi;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_bhi);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_bhi);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_6Differ_13generator4, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_fancy_replace, __pyx_mstate_global->__pyx_n_u_Differ__fancy_replace, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 916, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.Differ._fancy_replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_13generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_t_5 = NULL;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  PyObject *(*__pyx_t_14)(PyObject *);
  __Pyx_PySendResult __pyx_t_15;
  Py_ssize_t __pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  PyObject *(*__pyx_t_18)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_fancy_replace", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L15_resume_from_yield_from;
    case 2: goto __pyx_L23_resume_from_yield_from;
    case 3: goto __pyx_L24_resume_from_yield;
    case 4: goto __pyx_L26_resume_from_yield_from;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 916, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":942
 *         # Later, more pathological cases prompted removing recursion
 *         # entirely.
 *         cutoff = 0.74999             # <<<<<<<<<<<<<<
 *         cruncher = SequenceMatcher(self.charjunk)
 *         crqr = cruncher.real_quick_ratio
*/
  __pyx_cur_scope->__pyx_v_cutoff = 0.74999;

  /* "lxml/html/_difflib.py":943
 *         # entirely.
 *         cutoff = 0.74999
 *         cruncher = SequenceMatcher(self.charjunk)             # <<<<<<<<<<<<<<
 *         crqr = cruncher.real_quick_ratio
 *         cqr = cruncher.quick_ratio
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_self, __pyx_mstate_global->__pyx_n_u_charjunk); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 943, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __pyx_cur_scope->__pyx_v_cruncher = ((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":944
 *         cutoff = 0.74999
 *         cruncher = SequenceMatcher(self.charjunk)
 *         crqr = cruncher.real_quick_ratio             # <<<<<<<<<<<<<<
 *         cqr = cruncher.quick_ratio
 *         cr = cruncher.ratio
*/
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_cruncher);
  __pyx_t_5 = __pyx_cur_scope->__pyx_v_cruncher;
  __pyx_t_1 = __Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_t_5->__pyx_vtab)->real_quick_ratio); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = ((PyObject *)__pyx_t_5);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyMethod_New2Arg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF((PyObject *)__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = __pyx_t_2;
  __Pyx_INCREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_cur_scope->__pyx_v_crqr = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":945
 *         cruncher = SequenceMatcher(self.charjunk)
 *         crqr = cruncher.real_quick_ratio
 *         cqr = cruncher.quick_ratio             # <<<<<<<<<<<<<<
 *         cr = cruncher.ratio
 * 
*/
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_cruncher);
  __pyx_t_5 = __pyx_cur_scope->__pyx_v_cruncher;
  __pyx_t_3 = __Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_t_5->__pyx_vtab)->quick_ratio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = ((PyObject *)__pyx_t_5);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyMethod_New2Arg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF((PyObject *)__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_2 = __pyx_t_1;
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_cur_scope->__pyx_v_cqr = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":946
 *         crqr = cruncher.real_quick_ratio
 *         cqr = cruncher.quick_ratio
 *         cr = cruncher.ratio             # <<<<<<<<<<<<<<
 * 
 *         WINDOW = 10
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_cruncher), __pyx_mstate_global->__pyx_n_u_ratio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 946, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_cur_scope->__pyx_v_cr = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":948
 *         cr = cruncher.ratio
 * 
 *         WINDOW = 10             # <<<<<<<<<<<<<<
 *         best_i = best_j = None
 *         dump_i, dump_j = alo, blo # smallest indices not yet resolved
*/
  __pyx_cur_scope->__pyx_v_WINDOW = 10;

  /* "lxml/html/_difflib.py":949
 * 
 *         WINDOW = 10
 *         best_i = best_j = None             # <<<<<<<<<<<<<<
 *         dump_i, dump_j = alo, blo # smallest indices not yet resolved
 *         for j in range(blo, bhi):
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_cur_scope->__pyx_v_best_i = Py_None;
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_cur_scope->__pyx_v_best_j = Py_None;

  /* "lxml/html/_difflib.py":950
 *         WINDOW = 10
 *         best_i = best_j = None
 *         dump_i, dump_j = alo, blo # smallest indices not yet resolved             # <<<<<<<<<<<<<<
 *         for j in range(blo, bhi):
 *             cruncher.set_seq2(b[j])
*/
  __pyx_t_2 = __pyx_cur_scope->__pyx_v_alo;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_1 = __pyx_cur_scope->__pyx_v_blo;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_cur_scope->__pyx_v_dump_i = __pyx_t_2;
  __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_dump_j = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":951
 *         best_i = best_j = None
 *         dump_i, dump_j = alo, blo # smallest indices not yet resolved
 *         for j in range(blo, bhi):             # <<<<<<<<<<<<<<
 *             cruncher.set_seq2(b[j])
 *             # Search the corresponding i's within WINDOW for rhe highest
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 951, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 951, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    {
      __pyx_t_1 = __pyx_t_6(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 951, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":952
 *         dump_i, dump_j = alo, blo # smallest indices not yet resolved
 *         for j in range(blo, bhi):
 *             cruncher.set_seq2(b[j])             # <<<<<<<<<<<<<<
 *             # Search the corresponding i's within WINDOW for rhe highest
 *             # ratio greater than `cutoff`.
*/
    __pyx_t_3 = ((PyObject *)__pyx_cur_scope->__pyx_v_cruncher);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_j); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 952, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_seq2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 952, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":955
 *             # Search the corresponding i's within WINDOW for rhe highest
 *             # ratio greater than `cutoff`.
 *             aequiv = alo + (j - blo)             # <<<<<<<<<<<<<<
 *             arange = range(max(aequiv - WINDOW, dump_i),
 *                            min(aequiv + WINDOW + 1, ahi))
*/
    __pyx_t_1 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_j, __pyx_cur_scope->__pyx_v_blo); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = PyNumber_Add(__pyx_cur_scope->__pyx_v_alo, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_aequiv);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_aequiv, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":956
 *             # ratio greater than `cutoff`.
 *             aequiv = alo + (j - blo)
 *             arange = range(max(aequiv - WINDOW, dump_i),             # <<<<<<<<<<<<<<
 *                            min(aequiv + WINDOW + 1, ahi))
 *             if not arange: # likely exit if `a` is shorter than `b`
*/
    __pyx_t_1 = NULL;
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_dump_i);
    __pyx_t_3 = __pyx_cur_scope->__pyx_v_dump_i;
    __pyx_t_8 = __Pyx_PyLong_From_long(__pyx_cur_scope->__pyx_v_WINDOW); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 956, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_aequiv, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 956, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_10 = PyObject_RichCompare(__pyx_t_3, __pyx_t_9, Py_GT); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 956, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(0, 956, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (__pyx_t_11) {
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_8 = __pyx_t_3;
    } else {
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_8 = __pyx_t_9;
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":957
 *             aequiv = alo + (j - blo)
 *             arange = range(max(aequiv - WINDOW, dump_i),
 *                            min(aequiv + WINDOW + 1, ahi))             # <<<<<<<<<<<<<<
 *             if not arange: # likely exit if `a` is shorter than `b`
 *                 break
*/
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_ahi);
    __pyx_t_3 = __pyx_cur_scope->__pyx_v_ahi;
    __pyx_t_9 = __Pyx_PyLong_From_long(__pyx_cur_scope->__pyx_v_WINDOW); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = PyNumber_Add(__pyx_cur_scope->__pyx_v_aequiv, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_AddObjC(__pyx_t_10, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_12 = PyObject_RichCompare(__pyx_t_3, __pyx_t_9, Py_LT); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 957, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(0, 957, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (__pyx_t_11) {
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_10 = __pyx_t_3;
    } else {
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_10 = __pyx_t_9;
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_t_8, __pyx_t_10};
      __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 956, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_arange);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_arange, ((PyObject*)__pyx_t_7));
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":958
 *             arange = range(max(aequiv - WINDOW, dump_i),
 *                            min(aequiv + WINDOW + 1, ahi))
 *             if not arange: # likely exit if `a` is shorter than `b`             # <<<<<<<<<<<<<<
 *                 break
 *             best_ratio = cutoff
*/
    __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_arange); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(0, 958, __pyx_L1_error)
    __pyx_t_13 = (!__pyx_t_11);
    if (__pyx_t_13) {

      /* "lxml/html/_difflib.py":959
 *                            min(aequiv + WINDOW + 1, ahi))
 *             if not arange: # likely exit if `a` is shorter than `b`
 *                 break             # <<<<<<<<<<<<<<
 *             best_ratio = cutoff
 *             for i in arange:
*/
      goto __pyx_L5_break;

      /* "lxml/html/_difflib.py":958
 *             arange = range(max(aequiv - WINDOW, dump_i),
 *                            min(aequiv + WINDOW + 1, ahi))
 *             if not arange: # likely exit if `a` is shorter than `b`             # <<<<<<<<<<<<<<
 *                 break
 *             best_ratio = cutoff
*/
    }

    /* "lxml/html/_difflib.py":960
 *             if not arange: # likely exit if `a` is shorter than `b`
 *                 break
 *             best_ratio = cutoff             # <<<<<<<<<<<<<<
 *             for i in arange:
 *                 cruncher.set_seq1(a[i])
*/
    __pyx_t_7 = PyFloat_FromDouble(__pyx_cur_scope->__pyx_v_cutoff); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 960, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_best_ratio);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_best_ratio, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":961
 *                 break
 *             best_ratio = cutoff
 *             for i in arange:             # <<<<<<<<<<<<<<
 *                 cruncher.set_seq1(a[i])
 *                 # Ordering by cheapest to most expensive ratio is very
*/
    __pyx_t_7 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_arange); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 961, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 961, __pyx_L1_error)
    for (;;) {
      {
        __pyx_t_10 = __pyx_t_14(__pyx_t_7);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 961, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i, __pyx_t_10);
      __Pyx_GIVEREF(__pyx_t_10);
      __pyx_t_10 = 0;

      /* "lxml/html/_difflib.py":962
 *             best_ratio = cutoff
 *             for i in arange:
 *                 cruncher.set_seq1(a[i])             # <<<<<<<<<<<<<<
 *                 # Ordering by cheapest to most expensive ratio is very
 *                 # valuable, most often getting out early.
*/
      __pyx_t_8 = ((PyObject *)__pyx_cur_scope->__pyx_v_cruncher);
      __Pyx_INCREF(__pyx_t_8);
      __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_1};
        __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_seq1, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 962, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
      }
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

      /* "lxml/html/_difflib.py":965
 *                 # Ordering by cheapest to most expensive ratio is very
 *                 # valuable, most often getting out early.
 *                 if crqr() <= best_ratio or cqr() <= best_ratio:             # <<<<<<<<<<<<<<
 *                     continue
 * 
*/
      __pyx_t_1 = NULL;
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_crqr);
      __pyx_t_8 = __pyx_cur_scope->__pyx_v_crqr; 
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_1);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
        __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 965, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
      }
      __pyx_t_8 = PyObject_RichCompare(__pyx_t_10, __pyx_cur_scope->__pyx_v_best_ratio, Py_LE); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 965, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(0, 965, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (!__pyx_t_11) {
      } else {
        __pyx_t_13 = __pyx_t_11;
        goto __pyx_L10_bool_binop_done;
      }
      __pyx_t_10 = NULL;
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_cqr);
      __pyx_t_1 = __pyx_cur_scope->__pyx_v_cqr; 
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_1))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_1);
        assert(__pyx_t_10);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL};
        __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 965, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __pyx_t_1 = PyObject_RichCompare(__pyx_t_8, __pyx_cur_scope->__pyx_v_best_ratio, Py_LE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 965, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(0, 965, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_13 = __pyx_t_11;
      __pyx_L10_bool_binop_done:;
      if (__pyx_t_13) {

        /* "lxml/html/_difflib.py":966
 *                 # valuable, most often getting out early.
 *                 if crqr() <= best_ratio or cqr() <= best_ratio:
 *                     continue             # <<<<<<<<<<<<<<
 * 
 *                 ratio = cr()
*/
        goto __pyx_L7_continue;

        /* "lxml/html/_difflib.py":965
 *                 # Ordering by cheapest to most expensive ratio is very
 *                 # valuable, most often getting out early.
 *                 if crqr() <= best_ratio or cqr() <= best_ratio:             # <<<<<<<<<<<<<<
 *                     continue
 * 
*/
      }

      /* "lxml/html/_difflib.py":968
 *                     continue
 * 
 *                 ratio = cr()             # <<<<<<<<<<<<<<
 *                 if ratio > best_ratio:
 *                     best_i, best_j, best_ratio = i, j, ratio
*/
      __pyx_t_8 = NULL;
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_cr);
      __pyx_t_10 = __pyx_cur_scope->__pyx_v_cr; 
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_10))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_10);
        assert(__pyx_t_8);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 968, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_ratio);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_ratio, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":969
 * 
 *                 ratio = cr()
 *                 if ratio > best_ratio:             # <<<<<<<<<<<<<<
 *                     best_i, best_j, best_ratio = i, j, ratio
 * 
*/
      __pyx_t_1 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_ratio, __pyx_cur_scope->__pyx_v_best_ratio, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 969, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 969, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_13) {

        /* "lxml/html/_difflib.py":970
 *                 ratio = cr()
 *                 if ratio > best_ratio:
 *                     best_i, best_j, best_ratio = i, j, ratio             # <<<<<<<<<<<<<<
 * 
 *             if best_i is None:
*/
        __pyx_t_1 = __pyx_cur_scope->__pyx_v_i;
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_10 = __pyx_cur_scope->__pyx_v_j;
        __Pyx_INCREF(__pyx_t_10);
        __pyx_t_8 = __pyx_cur_scope->__pyx_v_ratio;
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_best_i);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_best_i, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_1);
        __pyx_t_1 = 0;
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_best_j);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_best_j, __pyx_t_10);
        __Pyx_GIVEREF(__pyx_t_10);
        __pyx_t_10 = 0;
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_best_ratio);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_best_ratio, __pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_8);
        __pyx_t_8 = 0;

        /* "lxml/html/_difflib.py":969
 * 
 *                 ratio = cr()
 *                 if ratio > best_ratio:             # <<<<<<<<<<<<<<
 *                     best_i, best_j, best_ratio = i, j, ratio
 * 
*/
      }

      /* "lxml/html/_difflib.py":961
 *                 break
 *             best_ratio = cutoff
 *             for i in arange:             # <<<<<<<<<<<<<<
 *                 cruncher.set_seq1(a[i])
 *                 # Ordering by cheapest to most expensive ratio is very
*/
      __pyx_L7_continue:;
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":972
 *                     best_i, best_j, best_ratio = i, j, ratio
 * 
 *             if best_i is None:             # <<<<<<<<<<<<<<
 *                 # found nothing to synch on yet - move to next j
 *                 continue
*/
    __pyx_t_13 = (__pyx_cur_scope->__pyx_v_best_i == Py_None);
    if (__pyx_t_13) {

      /* "lxml/html/_difflib.py":974
 *             if best_i is None:
 *                 # found nothing to synch on yet - move to next j
 *                 continue             # <<<<<<<<<<<<<<
 * 
 *             # pump out straight replace from before this synch pair
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":972
 *                     best_i, best_j, best_ratio = i, j, ratio
 * 
 *             if best_i is None:             # <<<<<<<<<<<<<<
 *                 # found nothing to synch on yet - move to next j
 *                 continue
*/
    }

    /* "lxml/html/_difflib.py":977
 * 
 *             # pump out straight replace from before this synch pair
 *             yield from self._fancy_helper(a, dump_i, best_i,             # <<<<<<<<<<<<<<
 *                                           b, dump_j, best_j)
 *             # do intraline marking on the synch pair
*/
    __pyx_t_8 = __pyx_cur_scope->__pyx_v_self;
    __Pyx_INCREF(__pyx_t_8);

    /* "lxml/html/_difflib.py":978
 *             # pump out straight replace from before this synch pair
 *             yield from self._fancy_helper(a, dump_i, best_i,
 *                                           b, dump_j, best_j)             # <<<<<<<<<<<<<<
 *             # do intraline marking on the synch pair
 *             aelt, belt = a[best_i], b[best_j]
*/
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[7] = {__pyx_t_8, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_dump_i, __pyx_cur_scope->__pyx_v_best_i, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_dump_j, __pyx_cur_scope->__pyx_v_best_j};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fancy_helper, __pyx_callargs+__pyx_t_4, (7-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 977, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_15 = __Pyx_Generator_Yield_From(__pyx_generator, __pyx_t_7, &__pyx_r);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (likely(__pyx_t_15 == PYGEN_NEXT)) {
      __Pyx_GOTREF(__pyx_r);
      __Pyx_XGIVEREF(__pyx_t_2);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L15_resume_from_yield_from:;
      __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 977, __pyx_L1_error)
    } else if (likely(__pyx_t_15 == PYGEN_RETURN)) {
      __Pyx_GOTREF(__pyx_r);
      __Pyx_DECREF(__pyx_r); __pyx_r = 0;
    } else {
      __Pyx_XGOTREF(__pyx_r);
      __PYX_ERR(0, 977, __pyx_L1_error)
    }

    /* "lxml/html/_difflib.py":980
 *                                           b, dump_j, best_j)
 *             # do intraline marking on the synch pair
 *             aelt, belt = a[best_i], b[best_j]             # <<<<<<<<<<<<<<
 *             if aelt != belt:
 *                 # pump out a '-', '?', '+', '?' quad for the synched lines
*/
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_best_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 980, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_best_j); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 980, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_aelt);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_aelt, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_belt);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_belt, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_8 = 0;

    /* "lxml/html/_difflib.py":981
 *             # do intraline marking on the synch pair
 *             aelt, belt = a[best_i], b[best_j]
 *             if aelt != belt:             # <<<<<<<<<<<<<<
 *                 # pump out a '-', '?', '+', '?' quad for the synched lines
 *                 atags = btags = ""
*/
    __pyx_t_8 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_aelt, __pyx_cur_scope->__pyx_v_belt, Py_NE); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 981, __pyx_L1_error)
    __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 981, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (__pyx_t_13) {

      /* "lxml/html/_difflib.py":983
 *             if aelt != belt:
 *                 # pump out a '-', '?', '+', '?' quad for the synched lines
 *                 atags = btags = ""             # <<<<<<<<<<<<<<
 *                 cruncher.set_seqs(aelt, belt)
 *                 for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes():
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_atags);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_atags, __pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_btags);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_btags, __pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__2);

      /* "lxml/html/_difflib.py":984
 *                 # pump out a '-', '?', '+', '?' quad for the synched lines
 *                 atags = btags = ""
 *                 cruncher.set_seqs(aelt, belt)             # <<<<<<<<<<<<<<
 *                 for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes():
 *                     la, lb = ai2 - ai1, bj2 - bj1
*/
      __pyx_t_7 = ((PyObject *)__pyx_cur_scope->__pyx_v_cruncher);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_cur_scope->__pyx_v_aelt, __pyx_cur_scope->__pyx_v_belt};
        __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_seqs, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 984, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "lxml/html/_difflib.py":985
 *                 atags = btags = ""
 *                 cruncher.set_seqs(aelt, belt)
 *                 for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes():             # <<<<<<<<<<<<<<
 *                     la, lb = ai2 - ai1, bj2 - bj1
 *                     if tag == 'replace':
*/
      __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_cur_scope->__pyx_v_cruncher->__pyx_vtab)->get_opcodes(__pyx_cur_scope->__pyx_v_cruncher); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 985, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      if (unlikely(__pyx_t_8 == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
        __PYX_ERR(0, 985, __pyx_L1_error)
      }
      __pyx_t_7 = __pyx_t_8; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_16 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 985, __pyx_L1_error)
          #endif
          if (__pyx_t_16 >= __pyx_temp) break;
        }
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_16, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_16;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 985, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        if ((likely(PyTuple_CheckExact(__pyx_t_8))) || (PyList_CheckExact(__pyx_t_8))) {
          PyObject* sequence = __pyx_t_8;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 5)) {
            if (size > 5) __Pyx_RaiseTooManyValuesError(5);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 985, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_10 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_10);
            __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_1);
            __pyx_t_3 = PyTuple_GET_ITEM(sequence, 2);
            __Pyx_INCREF(__pyx_t_3);
            __pyx_t_9 = PyTuple_GET_ITEM(sequence, 3);
            __Pyx_INCREF(__pyx_t_9);
            __pyx_t_12 = PyTuple_GET_ITEM(sequence, 4);
            __Pyx_INCREF(__pyx_t_12);
          } else {
            __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 985, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_10);
            __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 985, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_1);
            __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 985, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_3);
            __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 985, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_9);
            __pyx_t_12 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 985, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_12);
          }
          #else
          {
            Py_ssize_t i;
            PyObject** temps[5] = {&__pyx_t_10,&__pyx_t_1,&__pyx_t_3,&__pyx_t_9,&__pyx_t_12};
            for (i=0; i < 5; i++) {
              PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 985, __pyx_L1_error)
              __Pyx_GOTREF(item);
              *(temps[i]) = item;
            }
          }
          #endif
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        } else {
          Py_ssize_t index = -1;
          PyObject** temps[5] = {&__pyx_t_10,&__pyx_t_1,&__pyx_t_3,&__pyx_t_9,&__pyx_t_12};
          __pyx_t_17 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 985, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_17);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_18 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_17);
          for (index=0; index < 5; index++) {
            PyObject* item = __pyx_t_18(__pyx_t_17); if (unlikely(!item)) goto __pyx_L19_unpacking_failed;
            __Pyx_GOTREF(item);
            *(temps[index]) = item;
          }
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_18(__pyx_t_17), 5) < (0)) __PYX_ERR(0, 985, __pyx_L1_error)
          __pyx_t_18 = NULL;
          __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
          goto __pyx_L20_unpacking_done;
          __pyx_L19_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
          __pyx_t_18 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 985, __pyx_L1_error)
          __pyx_L20_unpacking_done:;
        }
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_10);
        __Pyx_GIVEREF(__pyx_t_10);
        __pyx_t_10 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_ai1);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_ai1, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_1);
        __pyx_t_1 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_ai2);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_ai2, __pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_3);
        __pyx_t_3 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_bj1);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_bj1, __pyx_t_9);
        __Pyx_GIVEREF(__pyx_t_9);
        __pyx_t_9 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_bj2);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_bj2, __pyx_t_12);
        __Pyx_GIVEREF(__pyx_t_12);
        __pyx_t_12 = 0;

        /* "lxml/html/_difflib.py":986
 *                 cruncher.set_seqs(aelt, belt)
 *                 for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes():
 *                     la, lb = ai2 - ai1, bj2 - bj1             # <<<<<<<<<<<<<<
 *                     if tag == 'replace':
 *                         atags += '^' * la
*/
        __pyx_t_8 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_ai2, __pyx_cur_scope->__pyx_v_ai1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 986, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_12 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_bj2, __pyx_cur_scope->__pyx_v_bj1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 986, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_la);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_la, __pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_8);
        __pyx_t_8 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_lb);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_lb, __pyx_t_12);
        __Pyx_GIVEREF(__pyx_t_12);
        __pyx_t_12 = 0;

        /* "lxml/html/_difflib.py":987
 *                 for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes():
 *                     la, lb = ai2 - ai1, bj2 - bj1
 *                     if tag == 'replace':             # <<<<<<<<<<<<<<
 *                         atags += '^' * la
 *                         btags += '^' * lb
*/
        __pyx_t_13 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_replace, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 987, __pyx_L1_error)
        if (__pyx_t_13) {

          /* "lxml/html/_difflib.py":988
 *                     la, lb = ai2 - ai1, bj2 - bj1
 *                     if tag == 'replace':
 *                         atags += '^' * la             # <<<<<<<<<<<<<<
 *                         btags += '^' * lb
 *                     elif tag == 'delete':
*/
          __pyx_t_12 = PyNumber_Multiply(__pyx_mstate_global->__pyx_kp_u__6, __pyx_cur_scope->__pyx_v_la); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 988, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_cur_scope->__pyx_v_atags, __pyx_t_12); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 988, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_atags);
          __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_atags, __pyx_t_8);
          __Pyx_GIVEREF(__pyx_t_8);
          __pyx_t_8 = 0;

          /* "lxml/html/_difflib.py":989
 *                     if tag == 'replace':
 *                         atags += '^' * la
 *                         btags += '^' * lb             # <<<<<<<<<<<<<<
 *                     elif tag == 'delete':
 *                         atags += '-' * la
*/
          __pyx_t_8 = PyNumber_Multiply(__pyx_mstate_global->__pyx_kp_u__6, __pyx_cur_scope->__pyx_v_lb); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 989, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_12 = PyNumber_InPlaceAdd(__pyx_cur_scope->__pyx_v_btags, __pyx_t_8); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 989, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_btags);
          __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_btags, __pyx_t_12);
          __Pyx_GIVEREF(__pyx_t_12);
          __pyx_t_12 = 0;

          /* "lxml/html/_difflib.py":987
 *                 for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes():
 *                     la, lb = ai2 - ai1, bj2 - bj1
 *                     if tag == 'replace':             # <<<<<<<<<<<<<<
 *                         atags += '^' * la
 *                         btags += '^' * lb
*/
          goto __pyx_L21;
        }

        /* "lxml/html/_difflib.py":990
 *                         atags += '^' * la
 *                         btags += '^' * lb
 *                     elif tag == 'delete':             # <<<<<<<<<<<<<<
 *                         atags += '-' * la
 *                     elif tag == 'insert':
*/
        __pyx_t_13 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_delete, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 990, __pyx_L1_error)
        if (__pyx_t_13) {

          /* "lxml/html/_difflib.py":991
 *                         btags += '^' * lb
 *                     elif tag == 'delete':
 *                         atags += '-' * la             # <<<<<<<<<<<<<<
 *                     elif tag == 'insert':
 *                         btags += '+' * lb
*/
          __pyx_t_12 = PyNumber_Multiply(__pyx_mstate_global->__pyx_kp_u__4, __pyx_cur_scope->__pyx_v_la); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 991, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_cur_scope->__pyx_v_atags, __pyx_t_12); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 991, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_atags);
          __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_atags, __pyx_t_8);
          __Pyx_GIVEREF(__pyx_t_8);
          __pyx_t_8 = 0;

          /* "lxml/html/_difflib.py":990
 *                         atags += '^' * la
 *                         btags += '^' * lb
 *                     elif tag == 'delete':             # <<<<<<<<<<<<<<
 *                         atags += '-' * la
 *                     elif tag == 'insert':
*/
          goto __pyx_L21;
        }

        /* "lxml/html/_difflib.py":992
 *                     elif tag == 'delete':
 *                         atags += '-' * la
 *                     elif tag == 'insert':             # <<<<<<<<<<<<<<
 *                         btags += '+' * lb
 *                     elif tag == 'equal':
*/
        __pyx_t_13 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_insert, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 992, __pyx_L1_error)
        if (__pyx_t_13) {

          /* "lxml/html/_difflib.py":993
 *                         atags += '-' * la
 *                     elif tag == 'insert':
 *                         btags += '+' * lb             # <<<<<<<<<<<<<<
 *                     elif tag == 'equal':
 *                         atags += ' ' * la
*/
          __pyx_t_8 = PyNumber_Multiply(__pyx_mstate_global->__pyx_kp_u__5, __pyx_cur_scope->__pyx_v_lb); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 993, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_12 = PyNumber_InPlaceAdd(__pyx_cur_scope->__pyx_v_btags, __pyx_t_8); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 993, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_btags);
          __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_btags, __pyx_t_12);
          __Pyx_GIVEREF(__pyx_t_12);
          __pyx_t_12 = 0;

          /* "lxml/html/_difflib.py":992
 *                     elif tag == 'delete':
 *                         atags += '-' * la
 *                     elif tag == 'insert':             # <<<<<<<<<<<<<<
 *                         btags += '+' * lb
 *                     elif tag == 'equal':
*/
          goto __pyx_L21;
        }

        /* "lxml/html/_difflib.py":994
 *                     elif tag == 'insert':
 *                         btags += '+' * lb
 *                     elif tag == 'equal':             # <<<<<<<<<<<<<<
 *                         atags += ' ' * la
 *                         btags += ' ' * lb
*/
        __pyx_t_13 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_equal, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 994, __pyx_L1_error)
        if (likely(__pyx_t_13)) {

          /* "lxml/html/_difflib.py":995
 *                         btags += '+' * lb
 *                     elif tag == 'equal':
 *                         atags += ' ' * la             # <<<<<<<<<<<<<<
 *                         btags += ' ' * lb
 *                     else:
*/
          __pyx_t_12 = PyNumber_Multiply(__pyx_mstate_global->__pyx_kp_u__3, __pyx_cur_scope->__pyx_v_la); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 995, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_cur_scope->__pyx_v_atags, __pyx_t_12); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 995, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_atags);
          __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_atags, __pyx_t_8);
          __Pyx_GIVEREF(__pyx_t_8);
          __pyx_t_8 = 0;

          /* "lxml/html/_difflib.py":996
 *                     elif tag == 'equal':
 *                         atags += ' ' * la
 *                         btags += ' ' * lb             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise ValueError('unknown tag %r' % (tag,))
*/
          __pyx_t_8 = PyNumber_Multiply(__pyx_mstate_global->__pyx_kp_u__3, __pyx_cur_scope->__pyx_v_lb); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 996, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_12 = PyNumber_InPlaceAdd(__pyx_cur_scope->__pyx_v_btags, __pyx_t_8); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 996, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_btags);
          __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_btags, __pyx_t_12);
          __Pyx_GIVEREF(__pyx_t_12);
          __pyx_t_12 = 0;

          /* "lxml/html/_difflib.py":994
 *                     elif tag == 'insert':
 *                         btags += '+' * lb
 *                     elif tag == 'equal':             # <<<<<<<<<<<<<<
 *                         atags += ' ' * la
 *                         btags += ' ' * lb
*/
          goto __pyx_L21;
        }

        /* "lxml/html/_difflib.py":998
 *                         btags += ' ' * lb
 *                     else:
 *                         raise ValueError('unknown tag %r' % (tag,))             # <<<<<<<<<<<<<<
 *                 yield from self._qformat(aelt, belt, atags, btags)
 *             else:
*/
        /*else*/ {
          __pyx_t_8 = NULL;
          __pyx_t_9 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_cur_scope->__pyx_v_tag), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 998, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_unknown_tag, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 998, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __pyx_t_4 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
            __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 998, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_12);
          }
          __Pyx_Raise(__pyx_t_12, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __PYX_ERR(0, 998, __pyx_L1_error)
        }
        __pyx_L21:;

        /* "lxml/html/_difflib.py":985
 *                 atags = btags = ""
 *                 cruncher.set_seqs(aelt, belt)
 *                 for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes():             # <<<<<<<<<<<<<<
 *                     la, lb = ai2 - ai1, bj2 - bj1
 *                     if tag == 'replace':
*/
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "lxml/html/_difflib.py":999
 *                     else:
 *                         raise ValueError('unknown tag %r' % (tag,))
 *                 yield from self._qformat(aelt, belt, atags, btags)             # <<<<<<<<<<<<<<
 *             else:
 *                 # the synch pair is identical
*/
      __pyx_t_12 = __pyx_cur_scope->__pyx_v_self;
      __Pyx_INCREF(__pyx_t_12);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_12, __pyx_cur_scope->__pyx_v_aelt, __pyx_cur_scope->__pyx_v_belt, __pyx_cur_scope->__pyx_v_atags, __pyx_cur_scope->__pyx_v_btags};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_qformat, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 999, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __pyx_t_15 = __Pyx_Generator_Yield_From(__pyx_generator, __pyx_t_7, &__pyx_r);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (likely(__pyx_t_15 == PYGEN_NEXT)) {
        __Pyx_GOTREF(__pyx_r);
        __Pyx_XGIVEREF(__pyx_t_2);
        __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
        __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
        __Pyx_XGIVEREF(__pyx_r);
        __Pyx_RefNannyFinishContext();
        __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
        /* return from generator, yielding value */
        __pyx_generator->resume_label = 2;
        return __pyx_r;
        __pyx_L23_resume_from_yield_from:;
        __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
        __pyx_cur_scope->__pyx_t_0 = 0;
        __Pyx_XGOTREF(__pyx_t_2);
        __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
        if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 999, __pyx_L1_error)
      } else if (likely(__pyx_t_15 == PYGEN_RETURN)) {
        __Pyx_GOTREF(__pyx_r);
        __Pyx_DECREF(__pyx_r); __pyx_r = 0;
      } else {
        __Pyx_XGOTREF(__pyx_r);
        __PYX_ERR(0, 999, __pyx_L1_error)
      }

      /* "lxml/html/_difflib.py":981
 *             # do intraline marking on the synch pair
 *             aelt, belt = a[best_i], b[best_j]
 *             if aelt != belt:             # <<<<<<<<<<<<<<
 *                 # pump out a '-', '?', '+', '?' quad for the synched lines
 *                 atags = btags = ""
*/
      goto __pyx_L16;
    }

    /* "lxml/html/_difflib.py":1002
 *             else:
 *                 # the synch pair is identical
 *                 yield '  ' + aelt             # <<<<<<<<<<<<<<
 *             dump_i, dump_j = best_i + 1, best_j + 1
 *             best_i = best_j = None
*/
    /*else*/ {
      __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__7, __pyx_cur_scope->__pyx_v_aelt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1002, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_r = __pyx_t_7;
      __pyx_t_7 = 0;
      __Pyx_XGIVEREF(__pyx_t_2);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 3;
      return __pyx_r;
      __pyx_L24_resume_from_yield:;
      __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1002, __pyx_L1_error)
    }
    __pyx_L16:;

    /* "lxml/html/_difflib.py":1003
 *                 # the synch pair is identical
 *                 yield '  ' + aelt
 *             dump_i, dump_j = best_i + 1, best_j + 1             # <<<<<<<<<<<<<<
 *             best_i = best_j = None
 * 
*/
    __pyx_t_7 = __Pyx_PyLong_AddObjC(__pyx_cur_scope->__pyx_v_best_i, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1003, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_12 = __Pyx_PyLong_AddObjC(__pyx_cur_scope->__pyx_v_best_j, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1003, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_dump_i);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_dump_i, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_dump_j);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_dump_j, __pyx_t_12);
    __Pyx_GIVEREF(__pyx_t_12);
    __pyx_t_12 = 0;

    /* "lxml/html/_difflib.py":1004
 *                 yield '  ' + aelt
 *             dump_i, dump_j = best_i + 1, best_j + 1
 *             best_i = best_j = None             # <<<<<<<<<<<<<<
 * 
 *         # pump out straight replace from after the last synch pair
*/
    __Pyx_INCREF(Py_None);
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_best_i);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_best_i, Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_INCREF(Py_None);
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_best_j);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_best_j, Py_None);
    __Pyx_GIVEREF(Py_None);

    /* "lxml/html/_difflib.py":951
 *         best_i = best_j = None
 *         dump_i, dump_j = alo, blo # smallest indices not yet resolved
 *         for j in range(blo, bhi):             # <<<<<<<<<<<<<<
 *             cruncher.set_seq2(b[j])
 *             # Search the corresponding i's within WINDOW for rhe highest
*/
    __pyx_L4_continue:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  goto __pyx_L25_for_end;
  __pyx_L5_break:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  goto __pyx_L25_for_end;
  __pyx_L25_for_end:;

  /* "lxml/html/_difflib.py":1007
 * 
 *         # pump out straight replace from after the last synch pair
 *         yield from self._fancy_helper(a, dump_i, ahi,             # <<<<<<<<<<<<<<
 *                                       b, dump_j, bhi)
 * 
*/
  __pyx_t_12 = __pyx_cur_scope->__pyx_v_self;
  __Pyx_INCREF(__pyx_t_12);

  /* "lxml/html/_difflib.py":1008
 *         # pump out straight replace from after the last synch pair
 *         yield from self._fancy_helper(a, dump_i, ahi,
 *                                       b, dump_j, bhi)             # <<<<<<<<<<<<<<
 * 
 *     def _fancy_helper(self, a, alo, ahi, b, blo, bhi):
*/
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[7] = {__pyx_t_12, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_dump_i, __pyx_cur_scope->__pyx_v_ahi, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_dump_j, __pyx_cur_scope->__pyx_v_bhi};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fancy_helper, __pyx_callargs+__pyx_t_4, (7-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1007, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_15 = __Pyx_Generator_Yield_From(__pyx_generator, __pyx_t_2, &__pyx_r);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (likely(__pyx_t_15 == PYGEN_NEXT)) {
    __Pyx_GOTREF(__pyx_r);
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 4;
    return __pyx_r;
    __pyx_L26_resume_from_yield_from:;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1007, __pyx_L1_error)
  } else if (likely(__pyx_t_15 == PYGEN_RETURN)) {
    __Pyx_GOTREF(__pyx_r);
    __Pyx_DECREF(__pyx_r); __pyx_r = 0;
  } else {
    __Pyx_XGOTREF(__pyx_r);
    __PYX_ERR(0, 1007, __pyx_L1_error)
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":916
 *             yield from g
 * 
 *     def _fancy_replace(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         r"""
 *         When replacing one block of lines with another, search the blocks
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF((PyObject *)__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_17);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_fancy_replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_16generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1010
 *                                       b, dump_j, bhi)
 * 
 *     def _fancy_helper(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         g = []
 *         if alo < ahi:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_15_fancy_helper(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6Differ_15_fancy_helper = {"_fancy_helper", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6Differ_15_fancy_helper, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_15_fancy_helper(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_alo = 0;
  PyObject *__pyx_v_ahi = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_blo = 0;
  PyObject *__pyx_v_bhi = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_fancy_helper (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_alo,&__pyx_mstate_global->__pyx_n_u_ahi,&__pyx_mstate_global->__pyx_n_u_b,&__pyx_mstate_global->__pyx_n_u_blo,&__pyx_mstate_global->__pyx_n_u_bhi,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1010, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1010, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1010, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1010, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1010, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1010, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1010, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1010, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_fancy_helper", 0) < (0)) __PYX_ERR(0, 1010, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_fancy_helper", 1, 7, 7, i); __PYX_ERR(0, 1010, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1010, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1010, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1010, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1010, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1010, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1010, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1010, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_a = values[1];
    __pyx_v_alo = values[2];
    __pyx_v_ahi = values[3];
    __pyx_v_b = values[4];
    __pyx_v_blo = values[5];
    __pyx_v_bhi = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_fancy_helper", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 1010, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.Differ._fancy_helper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6Differ_14_fancy_helper(__pyx_self, __pyx_v_self, __pyx_v_a, __pyx_v_alo, __pyx_v_ahi, __pyx_v_b, __pyx_v_blo, __pyx_v_bhi);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_14_fancy_helper(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_alo, PyObject *__pyx_v_ahi, PyObject *__pyx_v_b, PyObject *__pyx_v_blo, PyObject *__pyx_v_bhi) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_fancy_helper", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1010, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_a = __pyx_v_a;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_a);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_a);
  __pyx_cur_scope->__pyx_v_alo = __pyx_v_alo;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_alo);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_alo);
  __pyx_cur_scope->__pyx_v_ahi = __pyx_v_ahi;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_ahi);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_ahi);
  __pyx_cur_scope->__pyx_v_b = __pyx_v_b;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_b);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_b);
  __pyx_cur_scope->__pyx_v_blo = __pyx_v_blo;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_blo);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_blo);
  __pyx_cur_scope->__pyx_v_bhi = __pyx_v_bhi;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_bhi);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_bhi);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_6Differ_16generator5, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_fancy_helper, __pyx_mstate_global->__pyx_n_u_Differ__fancy_helper, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1010, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.Differ._fancy_helper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_16generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __Pyx_PySendResult __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_fancy_helper", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield_from;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1010, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1011
 * 
 *     def _fancy_helper(self, a, alo, ahi, b, blo, bhi):
 *         g = []             # <<<<<<<<<<<<<<
 *         if alo < ahi:
 *             if blo < bhi:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_g = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1012
 *     def _fancy_helper(self, a, alo, ahi, b, blo, bhi):
 *         g = []
 *         if alo < ahi:             # <<<<<<<<<<<<<<
 *             if blo < bhi:
 *                 g = self._plain_replace(a, alo, ahi, b, blo, bhi)
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1012, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1012, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "lxml/html/_difflib.py":1013
 *         g = []
 *         if alo < ahi:
 *             if blo < bhi:             # <<<<<<<<<<<<<<
 *                 g = self._plain_replace(a, alo, ahi, b, blo, bhi)
 *             else:
*/
    __pyx_t_1 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1013, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1013, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_2) {

      /* "lxml/html/_difflib.py":1014
 *         if alo < ahi:
 *             if blo < bhi:
 *                 g = self._plain_replace(a, alo, ahi, b, blo, bhi)             # <<<<<<<<<<<<<<
 *             else:
 *                 g = self._dump('-', a, alo, ahi)
*/
      __pyx_t_3 = __pyx_cur_scope->__pyx_v_self;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[7] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_plain_replace, __pyx_callargs+__pyx_t_4, (7-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1014, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_g);
      __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":1013
 *         g = []
 *         if alo < ahi:
 *             if blo < bhi:             # <<<<<<<<<<<<<<
 *                 g = self._plain_replace(a, alo, ahi, b, blo, bhi)
 *             else:
*/
      goto __pyx_L5;
    }

    /* "lxml/html/_difflib.py":1016
 *                 g = self._plain_replace(a, alo, ahi, b, blo, bhi)
 *             else:
 *                 g = self._dump('-', a, alo, ahi)             # <<<<<<<<<<<<<<
 *         elif blo < bhi:
 *             g = self._dump('+', b, blo, bhi)
*/
    /*else*/ {
      __pyx_t_3 = __pyx_cur_scope->__pyx_v_self;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__4, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_alo, __pyx_cur_scope->__pyx_v_ahi};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_g);
      __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;
    }
    __pyx_L5:;

    /* "lxml/html/_difflib.py":1012
 *     def _fancy_helper(self, a, alo, ahi, b, blo, bhi):
 *         g = []
 *         if alo < ahi:             # <<<<<<<<<<<<<<
 *             if blo < bhi:
 *                 g = self._plain_replace(a, alo, ahi, b, blo, bhi)
*/
    goto __pyx_L4;
  }

  /* "lxml/html/_difflib.py":1017
 *             else:
 *                 g = self._dump('-', a, alo, ahi)
 *         elif blo < bhi:             # <<<<<<<<<<<<<<
 *             g = self._dump('+', b, blo, bhi)
 * 
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1017, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1017, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "lxml/html/_difflib.py":1018
 *                 g = self._dump('-', a, alo, ahi)
 *         elif blo < bhi:
 *             g = self._dump('+', b, blo, bhi)             # <<<<<<<<<<<<<<
 * 
 *         yield from g
*/
    __pyx_t_3 = __pyx_cur_scope->__pyx_v_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__5, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_blo, __pyx_cur_scope->__pyx_v_bhi};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dump, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1018, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_g);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":1017
 *             else:
 *                 g = self._dump('-', a, alo, ahi)
 *         elif blo < bhi:             # <<<<<<<<<<<<<<
 *             g = self._dump('+', b, blo, bhi)
 * 
*/
  }
  __pyx_L4:;

  /* "lxml/html/_difflib.py":1020
 *             g = self._dump('+', b, blo, bhi)
 * 
 *         yield from g             # <<<<<<<<<<<<<<
 * 
 *     def _qformat(self, aline, bline, atags, btags):
*/
  __pyx_t_5 = __Pyx_Generator_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_g, &__pyx_r);
  if (likely(__pyx_t_5 == PYGEN_NEXT)) {
    __Pyx_GOTREF(__pyx_r);
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield_from:;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1020, __pyx_L1_error)
  } else if (likely(__pyx_t_5 == PYGEN_RETURN)) {
    __Pyx_GOTREF(__pyx_r);
    __Pyx_DECREF(__pyx_r); __pyx_r = 0;
  } else {
    __Pyx_XGOTREF(__pyx_r);
    __PYX_ERR(0, 1020, __pyx_L1_error)
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1010
 *                                       b, dump_j, bhi)
 * 
 *     def _fancy_helper(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         g = []
 *         if alo < ahi:
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_fancy_helper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_19generator6(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1022
 *         yield from g
 * 
 *     def _qformat(self, aline, bline, atags, btags):             # <<<<<<<<<<<<<<
 *         r"""
 *         Format "?" output and deal with tabs.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_18_qformat(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6Differ_17_qformat, "\n        Format \"?\" output and deal with tabs.\n\n        Example:\n\n        >>> d = Differ()\n        >>> results = d._qformat('\\tabcDefghiJkl\\n', '\\tabcdefGhijkl\\n',\n        ...                      '  ^ ^  ^      ', '  ^ ^  ^      ')\n        >>> for line in results: print(repr(line))\n        ...\n        '- \\tabcDefghiJkl\\n'\n        '? \\t ^ ^  ^\\n'\n        '+ \\tabcdefGhijkl\\n'\n        '? \\t ^ ^  ^\\n'\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6Differ_18_qformat = {"_qformat", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6Differ_18_qformat, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_6Differ_17_qformat};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6Differ_18_qformat(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_aline = 0;
  PyObject *__pyx_v_bline = 0;
  PyObject *__pyx_v_atags = 0;
  PyObject *__pyx_v_btags = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_qformat (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_aline,&__pyx_mstate_global->__pyx_n_u_bline,&__pyx_mstate_global->__pyx_n_u_atags,&__pyx_mstate_global->__pyx_n_u_btags,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1022, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_qformat", 0) < (0)) __PYX_ERR(0, 1022, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_qformat", 1, 5, 5, i); __PYX_ERR(0, 1022, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1022, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1022, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1022, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1022, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1022, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_aline = values[1];
    __pyx_v_bline = values[2];
    __pyx_v_atags = values[3];
    __pyx_v_btags = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_qformat", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 1022, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.Differ._qformat", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6Differ_17_qformat(__pyx_self, __pyx_v_self, __pyx_v_aline, __pyx_v_bline, __pyx_v_atags, __pyx_v_btags);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6Differ_17_qformat(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_aline, PyObject *__pyx_v_bline, PyObject *__pyx_v_atags, PyObject *__pyx_v_btags) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_qformat", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1022, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_aline = __pyx_v_aline;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_aline);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_aline);
  __pyx_cur_scope->__pyx_v_bline = __pyx_v_bline;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_bline);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_bline);
  __pyx_cur_scope->__pyx_v_atags = __pyx_v_atags;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_atags);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_atags);
  __pyx_cur_scope->__pyx_v_btags = __pyx_v_btags;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_btags);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_btags);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_6Differ_19generator6, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_qformat, __pyx_mstate_global->__pyx_n_u_Differ__qformat, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1022, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.Differ._qformat", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_6Differ_19generator6(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_qformat", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L4_resume_from_yield;
    case 2: goto __pyx_L6_resume_from_yield;
    case 3: goto __pyx_L7_resume_from_yield;
    case 4: goto __pyx_L9_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1022, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1038
 *         '? \t ^ ^  ^\n'
 *         """
 *         atags = _keep_original_ws(aline, atags).rstrip()             # <<<<<<<<<<<<<<
 *         btags = _keep_original_ws(bline, btags).rstrip()
 * 
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_keep_original_ws); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_aline, __pyx_cur_scope->__pyx_v_atags};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1038, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rstrip, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_atags);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_atags, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1039
 *         """
 *         atags = _keep_original_ws(aline, atags).rstrip()
 *         btags = _keep_original_ws(bline, btags).rstrip()             # <<<<<<<<<<<<<<
 * 
 *         yield "- " + aline
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_keep_original_ws); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_bline, __pyx_cur_scope->__pyx_v_btags};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_3 = __pyx_t_2;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rstrip, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_btags);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_btags, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1041
 *         btags = _keep_original_ws(bline, btags).rstrip()
 * 
 *         yield "- " + aline             # <<<<<<<<<<<<<<
 *         if atags:
 *             yield f"? {atags}\n"
*/
  __pyx_t_1 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__8, __pyx_cur_scope->__pyx_v_aline); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  /* return from generator, yielding value */
  __pyx_generator->resume_label = 1;
  return __pyx_r;
  __pyx_L4_resume_from_yield:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1041, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1042
 * 
 *         yield "- " + aline
 *         if atags:             # <<<<<<<<<<<<<<
 *             yield f"? {atags}\n"
 * 
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_atags); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 1042, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "lxml/html/_difflib.py":1043
 *         yield "- " + aline
 *         if atags:
 *             yield f"? {atags}\n"             # <<<<<<<<<<<<<<
 * 
 *         yield "+ " + bline
*/
    __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_cur_scope->__pyx_v_atags, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u__9;
    __pyx_t_8[1] = __pyx_t_1;
    __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u__10;
    __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1));
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 2;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1043, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1042
 * 
 *         yield "- " + aline
 *         if atags:             # <<<<<<<<<<<<<<
 *             yield f"? {atags}\n"
 * 
*/
  }

  /* "lxml/html/_difflib.py":1045
 *             yield f"? {atags}\n"
 * 
 *         yield "+ " + bline             # <<<<<<<<<<<<<<
 *         if btags:
 *             yield f"? {btags}\n"
*/
  __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__11, __pyx_cur_scope->__pyx_v_bline); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  /* return from generator, yielding value */
  __pyx_generator->resume_label = 3;
  return __pyx_r;
  __pyx_L7_resume_from_yield:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1045, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1046
 * 
 *         yield "+ " + bline
 *         if btags:             # <<<<<<<<<<<<<<
 *             yield f"? {btags}\n"
 * 
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_btags); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 1046, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "lxml/html/_difflib.py":1047
 *         yield "+ " + bline
 *         if btags:
 *             yield f"? {btags}\n"             # <<<<<<<<<<<<<<
 * 
 * # With respect to junk, an earlier version of ndiff simply refused to
*/
    __pyx_t_2 = __Pyx_PyObject_FormatSimple(__pyx_cur_scope->__pyx_v_btags, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1047, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u__9;
    __pyx_t_8[1] = __pyx_t_2;
    __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u__10;
    __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2));
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1047, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 4;
    return __pyx_r;
    __pyx_L9_resume_from_yield:;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1047, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1046
 * 
 *         yield "+ " + bline
 *         if btags:             # <<<<<<<<<<<<<<
 *             yield f"? {btags}\n"
 * 
*/
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1022
 *         yield from g
 * 
 *     def _qformat(self, aline, bline, atags, btags):             # <<<<<<<<<<<<<<
 *         r"""
 *         Format "?" output and deal with tabs.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_qformat", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1066
 * # was inserted after "private".  I can live with that <wink>.
 * 
 * def IS_LINE_JUNK(line, pat=None):             # <<<<<<<<<<<<<<
 *     r"""
 *     Return True for ignorable line: if `line` is blank or contains a single '#'.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_5IS_LINE_JUNK(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_4IS_LINE_JUNK, "\n    Return True for ignorable line: if `line` is blank or contains a single '#'.\n\n    Examples:\n\n    >>> IS_LINE_JUNK('\\n')\n    True\n    >>> IS_LINE_JUNK('  #   \\n')\n    True\n    >>> IS_LINE_JUNK('hello\\n')\n    False\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_5IS_LINE_JUNK = {"IS_LINE_JUNK", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_5IS_LINE_JUNK, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_4IS_LINE_JUNK};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_5IS_LINE_JUNK(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_line = 0;
  PyObject *__pyx_v_pat = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("IS_LINE_JUNK (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_line,&__pyx_mstate_global->__pyx_n_u_pat,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1066, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1066, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1066, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "IS_LINE_JUNK", 0) < (0)) __PYX_ERR(0, 1066, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("IS_LINE_JUNK", 0, 1, 2, i); __PYX_ERR(0, 1066, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1066, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1066, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_line = values[0];
    __pyx_v_pat = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("IS_LINE_JUNK", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 1066, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.IS_LINE_JUNK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_4IS_LINE_JUNK(__pyx_self, __pyx_v_line, __pyx_v_pat);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_4IS_LINE_JUNK(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_line, PyObject *__pyx_v_pat) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("IS_LINE_JUNK", 0);

  /* "lxml/html/_difflib.py":1080
 *     """
 * 
 *     if pat is None:             # <<<<<<<<<<<<<<
 *         # Default: match '#' or the empty string
 *         return line.strip() in '#'
*/
  __pyx_t_1 = (__pyx_v_pat == Py_None);
  if (__pyx_t_1) {

    /* "lxml/html/_difflib.py":1082
 *     if pat is None:
 *         # Default: match '#' or the empty string
 *         return line.strip() in '#'             # <<<<<<<<<<<<<<
 *    # Previous versions used the undocumented parameter 'pat' as a
 *    # match function. Retain this behaviour for compatibility.
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_v_line;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1082, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = (__Pyx_PyUnicode_ContainsTF(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u__12, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1082, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1082, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":1080
 *     """
 * 
 *     if pat is None:             # <<<<<<<<<<<<<<
 *         # Default: match '#' or the empty string
 *         return line.strip() in '#'
*/
  }

  /* "lxml/html/_difflib.py":1085
 *    # Previous versions used the undocumented parameter 'pat' as a
 *    # match function. Retain this behaviour for compatibility.
 *     return pat(line) is not None             # <<<<<<<<<<<<<<
 * 
 * def IS_CHARACTER_JUNK(ch, ws=" \t"):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_INCREF(__pyx_v_pat);
  __pyx_t_5 = __pyx_v_pat; 
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_line};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1085, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_1 = (__pyx_t_2 != Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1085, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1066
 * # was inserted after "private".  I can live with that <wink>.
 * 
 * def IS_LINE_JUNK(line, pat=None):             # <<<<<<<<<<<<<<
 *     r"""
 *     Return True for ignorable line: if `line` is blank or contains a single '#'.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.html._difflib.IS_LINE_JUNK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1087
 *     return pat(line) is not None
 * 
 * def IS_CHARACTER_JUNK(ch, ws=" \t"):             # <<<<<<<<<<<<<<
 *     r"""
 *     Return True for ignorable character: iff `ch` is a space or tab.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_7IS_CHARACTER_JUNK(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6IS_CHARACTER_JUNK, "\n    Return True for ignorable character: iff `ch` is a space or tab.\n\n    Examples:\n\n    >>> IS_CHARACTER_JUNK(' ')\n    True\n    >>> IS_CHARACTER_JUNK('\\t')\n    True\n    >>> IS_CHARACTER_JUNK('\\n')\n    False\n    >>> IS_CHARACTER_JUNK('x')\n    False\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_7IS_CHARACTER_JUNK = {"IS_CHARACTER_JUNK", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_7IS_CHARACTER_JUNK, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_6IS_CHARACTER_JUNK};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_7IS_CHARACTER_JUNK(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ch = 0;
  PyObject *__pyx_v_ws = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("IS_CHARACTER_JUNK (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ch,&__pyx_mstate_global->__pyx_n_u_ws,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1087, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1087, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1087, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "IS_CHARACTER_JUNK", 0) < (0)) __PYX_ERR(0, 1087, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__13)));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("IS_CHARACTER_JUNK", 0, 1, 2, i); __PYX_ERR(0, 1087, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1087, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1087, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__13)));
    }
    __pyx_v_ch = values[0];
    __pyx_v_ws = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("IS_CHARACTER_JUNK", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 1087, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.IS_CHARACTER_JUNK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6IS_CHARACTER_JUNK(__pyx_self, __pyx_v_ch, __pyx_v_ws);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6IS_CHARACTER_JUNK(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ch, PyObject *__pyx_v_ws) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("IS_CHARACTER_JUNK", 0);

  /* "lxml/html/_difflib.py":1103
 *     """
 * 
 *     return ch in ws             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_ch, __pyx_v_ws, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1103, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1087
 *     return pat(line) is not None
 * 
 * def IS_CHARACTER_JUNK(ch, ws=" \t"):             # <<<<<<<<<<<<<<
 *     r"""
 *     Return True for ignorable character: iff `ch` is a space or tab.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.IS_CHARACTER_JUNK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1110
 * ########################################################################
 * 
 * def _format_range_unified(start, stop):             # <<<<<<<<<<<<<<
 *     'Convert range to the "ed" format'
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_9_format_range_unified(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8_format_range_unified, "Convert range to the \"ed\" format");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_9_format_range_unified = {"_format_range_unified", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_9_format_range_unified, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8_format_range_unified};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_9_format_range_unified(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_start = 0;
  PyObject *__pyx_v_stop = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_format_range_unified (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_start,&__pyx_mstate_global->__pyx_n_u_stop,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1110, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1110, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1110, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_format_range_unified", 0) < (0)) __PYX_ERR(0, 1110, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_format_range_unified", 1, 2, 2, i); __PYX_ERR(0, 1110, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1110, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1110, __pyx_L3_error)
    }
    __pyx_v_start = values[0];
    __pyx_v_stop = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_format_range_unified", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1110, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib._format_range_unified", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8_format_range_unified(__pyx_self, __pyx_v_start, __pyx_v_stop);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8_format_range_unified(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_stop) {
  PyObject *__pyx_v_beginning = NULL;
  PyObject *__pyx_v_length = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_format_range_unified", 0);

  /* "lxml/html/_difflib.py":1113
 *     'Convert range to the "ed" format'
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
 *     beginning = start + 1     # lines start numbering with one             # <<<<<<<<<<<<<<
 *     length = stop - start
 *     if length == 1:
*/
  __pyx_t_1 = __Pyx_PyLong_AddObjC(__pyx_v_start, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_beginning = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1114
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
 *     beginning = start + 1     # lines start numbering with one
 *     length = stop - start             # <<<<<<<<<<<<<<
 *     if length == 1:
 *         return '{}'.format(beginning)
*/
  __pyx_t_1 = PyNumber_Subtract(__pyx_v_stop, __pyx_v_start); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_length = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1115
 *     beginning = start + 1     # lines start numbering with one
 *     length = stop - start
 *     if length == 1:             # <<<<<<<<<<<<<<
 *         return '{}'.format(beginning)
 *     if not length:
*/
  __pyx_t_2 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_length, __pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1115, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "lxml/html/_difflib.py":1116
 *     length = stop - start
 *     if length == 1:
 *         return '{}'.format(beginning)             # <<<<<<<<<<<<<<
 *     if not length:
 *         beginning -= 1        # empty ranges begin at line just before the range
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_mstate_global->__pyx_kp_u__14;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_beginning};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1116, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":1115
 *     beginning = start + 1     # lines start numbering with one
 *     length = stop - start
 *     if length == 1:             # <<<<<<<<<<<<<<
 *         return '{}'.format(beginning)
 *     if not length:
*/
  }

  /* "lxml/html/_difflib.py":1117
 *     if length == 1:
 *         return '{}'.format(beginning)
 *     if not length:             # <<<<<<<<<<<<<<
 *         beginning -= 1        # empty ranges begin at line just before the range
 *     return '{},{}'.format(beginning, length)
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_length); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1117, __pyx_L1_error)
  __pyx_t_5 = (!__pyx_t_2);
  if (__pyx_t_5) {

    /* "lxml/html/_difflib.py":1118
 *         return '{}'.format(beginning)
 *     if not length:
 *         beginning -= 1        # empty ranges begin at line just before the range             # <<<<<<<<<<<<<<
 *     return '{},{}'.format(beginning, length)
 * 
*/
    __pyx_t_1 = __Pyx_PyLong_SubtractObjC(__pyx_v_beginning, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_beginning, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":1117
 *     if length == 1:
 *         return '{}'.format(beginning)
 *     if not length:             # <<<<<<<<<<<<<<
 *         beginning -= 1        # empty ranges begin at line just before the range
 *     return '{},{}'.format(beginning, length)
*/
  }

  /* "lxml/html/_difflib.py":1119
 *     if not length:
 *         beginning -= 1        # empty ranges begin at line just before the range
 *     return '{},{}'.format(beginning, length)             # <<<<<<<<<<<<<<
 * 
 * def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __pyx_mstate_global->__pyx_kp_u__15;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_beginning, __pyx_v_length};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1110
 * ########################################################################
 * 
 * def _format_range_unified(start, stop):             # <<<<<<<<<<<<<<
 *     'Convert range to the "ed" format'
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.html._difflib._format_range_unified", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_beginning);
  __Pyx_XDECREF(__pyx_v_length);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_12generator7(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1121
 *     return '{},{}'.format(beginning, length)
 * 
 * def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',             # <<<<<<<<<<<<<<
 *                  tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_11unified_diff(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_10unified_diff, "\n    Compare two sequences of lines; generate the delta as a unified diff.\n\n    Unified diffs are a compact way of showing line changes and a few\n    lines of context.  The number of context lines is set by 'n' which\n    defaults to three.\n\n    By default, the diff control lines (those with ---, +++, or @@) are\n    created with a trailing newline.  This is helpful so that inputs\n    created from file.readlines() result in diffs that are suitable for\n    file.writelines() since both the inputs and outputs have trailing\n    newlines.\n\n    For inputs that do not have trailing newlines, set the lineterm\n    argument to \"\" so that the output will be uniformly newline free.\n\n    The unidiff format normally has a header for filenames and modification\n    times.  Any or all of these may be specified using strings for\n    'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'.\n    The modification times are normally expressed in the ISO 8601 format.\n\n    Example:\n\n    >>> for line in unified_diff('one two three four'.split(),\n    ...             'zero one tree four'.split(), 'Original', 'Current',\n    ...             '2005-01-26 23:30:50', '2010-04-02 10:20:52',\n    ...             lineterm=''):\n    ...     print(line)                 # doctest: +NORMALIZE_WHITESPACE\n    --- Original        2005-01-26 23:30:50\n    +++ Current         2010-04-02 10:20:52\n    @@ -1,4 +1,4 @@\n    +zero\n     one\n    -two\n    -three\n    +tree\n     four\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_11unified_diff = {"unified_diff", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_11unified_diff, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_10unified_diff};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_11unified_diff(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_fromfile = 0;
  PyObject *__pyx_v_tofile = 0;
  PyObject *__pyx_v_fromfiledate = 0;
  PyObject *__pyx_v_tofiledate = 0;
  PyObject *__pyx_v_n = 0;
  PyObject *__pyx_v_lineterm = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("unified_diff (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_b,&__pyx_mstate_global->__pyx_n_u_fromfile,&__pyx_mstate_global->__pyx_n_u_tofile,&__pyx_mstate_global->__pyx_n_u_fromfiledate,&__pyx_mstate_global->__pyx_n_u_tofiledate,&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_lineterm,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1121, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "unified_diff", 0) < (0)) __PYX_ERR(0, 1121, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_3)));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__10)));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("unified_diff", 0, 2, 8, i); __PYX_ERR(0, 1121, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1121, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1121, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_3)));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__10)));
    }
    __pyx_v_a = values[0];
    __pyx_v_b = values[1];
    __pyx_v_fromfile = values[2];
    __pyx_v_tofile = values[3];
    __pyx_v_fromfiledate = values[4];
    __pyx_v_tofiledate = values[5];
    __pyx_v_n = values[6];
    __pyx_v_lineterm = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("unified_diff", 0, 2, 8, __pyx_nargs); __PYX_ERR(0, 1121, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.unified_diff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_10unified_diff(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_fromfile, __pyx_v_tofile, __pyx_v_fromfiledate, __pyx_v_tofiledate, __pyx_v_n, __pyx_v_lineterm);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_10unified_diff(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_fromfile, PyObject *__pyx_v_tofile, PyObject *__pyx_v_fromfiledate, PyObject *__pyx_v_tofiledate, PyObject *__pyx_v_n, PyObject *__pyx_v_lineterm) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("unified_diff", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1121, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_a = __pyx_v_a;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_a);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_a);
  __pyx_cur_scope->__pyx_v_b = __pyx_v_b;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_b);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_b);
  __pyx_cur_scope->__pyx_v_fromfile = __pyx_v_fromfile;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromfile);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromfile);
  __pyx_cur_scope->__pyx_v_tofile = __pyx_v_tofile;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tofile);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tofile);
  __pyx_cur_scope->__pyx_v_fromfiledate = __pyx_v_fromfiledate;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromfiledate);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromfiledate);
  __pyx_cur_scope->__pyx_v_tofiledate = __pyx_v_tofiledate;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tofiledate);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tofiledate);
  __pyx_cur_scope->__pyx_v_n = __pyx_v_n;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_n);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_n);
  __pyx_cur_scope->__pyx_v_lineterm = __pyx_v_lineterm;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lineterm);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lineterm);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_12generator7, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_unified_diff, __pyx_mstate_global->__pyx_n_u_unified_diff, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1121, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.unified_diff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_12generator7(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  PyObject *(*__pyx_t_12)(PyObject *);
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *(*__pyx_t_16)(PyObject *);
  Py_ssize_t __pyx_t_17;
  PyObject *(*__pyx_t_18)(PyObject *);
  int __pyx_t_19;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("unified_diff", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L7_resume_from_yield;
    case 2: goto __pyx_L8_resume_from_yield;
    case 3: goto __pyx_L9_resume_from_yield;
    case 4: goto __pyx_L17_resume_from_yield;
    case 5: goto __pyx_L24_resume_from_yield;
    case 6: goto __pyx_L31_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1121, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1162
 *     """
 * 
 *     _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)             # <<<<<<<<<<<<<<
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_check_types); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_fromfile, __pyx_cur_scope->__pyx_v_tofile, __pyx_cur_scope->__pyx_v_fromfiledate, __pyx_cur_scope->__pyx_v_tofiledate, __pyx_cur_scope->__pyx_v_lineterm};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (8-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1163
 * 
 *     _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
 *     started = False             # <<<<<<<<<<<<<<
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
 *         if not started:
*/
  __pyx_cur_scope->__pyx_v_started = 0;

  /* "lxml/html/_difflib.py":1164
 *     _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):             # <<<<<<<<<<<<<<
 *         if not started:
 *             started = True
*/
  __pyx_t_5 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_5, Py_None, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_b};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1164, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_t_3 = ((PyObject *)__pyx_t_2);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_n};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_grouped_opcodes, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2);
    __pyx_t_6 = 0;
    __pyx_t_7 = NULL;
  } else {
    __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1164, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_7)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1164, __pyx_L1_error)
          #endif
          if (__pyx_t_6 >= __pyx_temp) break;
        }
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_6;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1164, __pyx_L1_error)
          #endif
          if (__pyx_t_6 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6));
        #else
        __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_6);
        #endif
        ++__pyx_t_6;
      }
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1164, __pyx_L1_error)
    } else {
      __pyx_t_1 = __pyx_t_7(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1164, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_group);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_group, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":1165
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
 *         if not started:             # <<<<<<<<<<<<<<
 *             started = True
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
*/
    __pyx_t_8 = (!__pyx_cur_scope->__pyx_v_started);
    if (__pyx_t_8) {

      /* "lxml/html/_difflib.py":1166
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
 *         if not started:
 *             started = True             # <<<<<<<<<<<<<<
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''
*/
      __pyx_cur_scope->__pyx_v_started = 1;

      /* "lxml/html/_difflib.py":1167
 *         if not started:
 *             started = True
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''             # <<<<<<<<<<<<<<
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''
 *             yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_fromfiledate); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1167, __pyx_L1_error)
      if (__pyx_t_8) {
        __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u__16;
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_fromfiledate};
          __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1167, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __pyx_t_1 = __pyx_t_3;
        __pyx_t_3 = 0;
      } else {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
        __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u__2;
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_fromdate);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_fromdate, ((PyObject*)__pyx_t_1));
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":1168
 *             started = True
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''             # <<<<<<<<<<<<<<
 *             yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
 *             yield '+++ {}{}{}'.format(tofile, todate, lineterm)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_tofiledate); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1168, __pyx_L1_error)
      if (__pyx_t_8) {
        __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u__16;
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_tofiledate};
          __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1168, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __pyx_t_1 = __pyx_t_3;
        __pyx_t_3 = 0;
      } else {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
        __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u__2;
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_todate);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_todate, ((PyObject*)__pyx_t_1));
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":1169
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''
 *             yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)             # <<<<<<<<<<<<<<
 *             yield '+++ {}{}{}'.format(tofile, todate, lineterm)
 * 
*/
      __pyx_t_3 = __pyx_mstate_global->__pyx_kp_u__17;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_fromfile, __pyx_cur_scope->__pyx_v_fromdate, __pyx_cur_scope->__pyx_v_lineterm};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1169, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_t_2);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
      __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L7_resume_from_yield:;
      __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
      __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1169, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1170
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''
 *             yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
 *             yield '+++ {}{}{}'.format(tofile, todate, lineterm)             # <<<<<<<<<<<<<<
 * 
 *         first, last = group[0], group[-1]
*/
      __pyx_t_3 = __pyx_mstate_global->__pyx_kp_u__18;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_tofile, __pyx_cur_scope->__pyx_v_todate, __pyx_cur_scope->__pyx_v_lineterm};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1170, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_t_2);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
      __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 2;
      return __pyx_r;
      __pyx_L8_resume_from_yield:;
      __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
      __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1170, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1165
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
 *         if not started:             # <<<<<<<<<<<<<<
 *             started = True
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
*/
    }

    /* "lxml/html/_difflib.py":1172
 *             yield '+++ {}{}{}'.format(tofile, todate, lineterm)
 * 
 *         first, last = group[0], group[-1]             # <<<<<<<<<<<<<<
 *         file1_range = _format_range_unified(first[1], last[2])
 *         file2_range = _format_range_unified(first[3], last[4])
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_group, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_group, -1L, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_first);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_first, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_last);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_last, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1173
 * 
 *         first, last = group[0], group[-1]
 *         file1_range = _format_range_unified(first[1], last[2])             # <<<<<<<<<<<<<<
 *         file2_range = _format_range_unified(first[3], last[4])
 *         yield '@@ -{} +{} @@{}'.format(file1_range, file2_range, lineterm)
*/
    __pyx_t_1 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_format_range_unified); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1173, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_9 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_first, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1173, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_last, 2, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1173, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_1);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_t_9, __pyx_t_10};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1173, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_file1_range);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_file1_range, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1174
 *         first, last = group[0], group[-1]
 *         file1_range = _format_range_unified(first[1], last[2])
 *         file2_range = _format_range_unified(first[3], last[4])             # <<<<<<<<<<<<<<
 *         yield '@@ -{} +{} @@{}'.format(file1_range, file2_range, lineterm)
 * 
*/
    __pyx_t_5 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_format_range_unified); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_9 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_first, 3, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_last, 4, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_10);
      assert(__pyx_t_5);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_9, __pyx_t_1};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1174, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_file2_range);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_file2_range, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1175
 *         file1_range = _format_range_unified(first[1], last[2])
 *         file2_range = _format_range_unified(first[3], last[4])
 *         yield '@@ -{} +{} @@{}'.format(file1_range, file2_range, lineterm)             # <<<<<<<<<<<<<<
 * 
 *         for tag, i1, i2, j1, j2 in group:
*/
    __pyx_t_10 = __pyx_mstate_global->__pyx_kp_u__19;
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_10, __pyx_cur_scope->__pyx_v_file1_range, __pyx_cur_scope->__pyx_v_file2_range, __pyx_cur_scope->__pyx_v_lineterm};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1175, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    __Pyx_XGIVEREF(__pyx_t_2);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 3;
    return __pyx_r;
    __pyx_L9_resume_from_yield:;
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_2);
    __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1175, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1177
 *         yield '@@ -{} +{} @@{}'.format(file1_range, file2_range, lineterm)
 * 
 *         for tag, i1, i2, j1, j2 in group:             # <<<<<<<<<<<<<<
 *             if tag == 'equal':
 *                 for line in a[i1:i2]:
*/
    if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_group)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_group)) {
      __pyx_t_3 = __pyx_cur_scope->__pyx_v_group; __Pyx_INCREF(__pyx_t_3);
      __pyx_t_11 = 0;
      __pyx_t_12 = NULL;
    } else {
      __pyx_t_11 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_group); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1177, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1177, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_12)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1177, __pyx_L1_error)
            #endif
            if (__pyx_t_11 >= __pyx_temp) break;
          }
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_11;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1177, __pyx_L1_error)
            #endif
            if (__pyx_t_11 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_11));
          #else
          __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_11);
          #endif
          ++__pyx_t_11;
        }
        if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1177, __pyx_L1_error)
      } else {
        __pyx_t_10 = __pyx_t_12(__pyx_t_3);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1177, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      if ((likely(PyTuple_CheckExact(__pyx_t_10))) || (PyList_CheckExact(__pyx_t_10))) {
        PyObject* sequence = __pyx_t_10;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 5)) {
          if (size > 5) __Pyx_RaiseTooManyValuesError(5);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 1177, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_1);
          __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_9);
          __pyx_t_5 = PyTuple_GET_ITEM(sequence, 2);
          __Pyx_INCREF(__pyx_t_5);
          __pyx_t_13 = PyTuple_GET_ITEM(sequence, 3);
          __Pyx_INCREF(__pyx_t_13);
          __pyx_t_14 = PyTuple_GET_ITEM(sequence, 4);
          __Pyx_INCREF(__pyx_t_14);
        } else {
          __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1177, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_1);
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1177, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_9);
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1177, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_5);
          __pyx_t_13 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1177, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_13);
          __pyx_t_14 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1177, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_14);
        }
        #else
        {
          Py_ssize_t i;
          PyObject** temps[5] = {&__pyx_t_1,&__pyx_t_9,&__pyx_t_5,&__pyx_t_13,&__pyx_t_14};
          for (i=0; i < 5; i++) {
            PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 1177, __pyx_L1_error)
            __Pyx_GOTREF(item);
            *(temps[i]) = item;
          }
        }
        #endif
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      } else {
        Py_ssize_t index = -1;
        PyObject** temps[5] = {&__pyx_t_1,&__pyx_t_9,&__pyx_t_5,&__pyx_t_13,&__pyx_t_14};
        __pyx_t_15 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1177, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_16 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_15);
        for (index=0; index < 5; index++) {
          PyObject* item = __pyx_t_16(__pyx_t_15); if (unlikely(!item)) goto __pyx_L12_unpacking_failed;
          __Pyx_GOTREF(item);
          *(temps[index]) = item;
        }
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_16(__pyx_t_15), 5) < (0)) __PYX_ERR(0, 1177, __pyx_L1_error)
        __pyx_t_16 = NULL;
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        goto __pyx_L13_unpacking_done;
        __pyx_L12_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        __pyx_t_16 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 1177, __pyx_L1_error)
        __pyx_L13_unpacking_done:;
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i1);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i1, __pyx_t_9);
      __Pyx_GIVEREF(__pyx_t_9);
      __pyx_t_9 = 0;
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i2);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i2, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      __pyx_t_5 = 0;
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j1);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j1, __pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_13);
      __pyx_t_13 = 0;
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j2);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j2, __pyx_t_14);
      __Pyx_GIVEREF(__pyx_t_14);
      __pyx_t_14 = 0;

      /* "lxml/html/_difflib.py":1178
 * 
 *         for tag, i1, i2, j1, j2 in group:
 *             if tag == 'equal':             # <<<<<<<<<<<<<<
 *                 for line in a[i1:i2]:
 *                     yield ' ' + line
*/
      __pyx_t_8 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_equal, Py_EQ)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1178, __pyx_L1_error)
      if (__pyx_t_8) {

        /* "lxml/html/_difflib.py":1179
 *         for tag, i1, i2, j1, j2 in group:
 *             if tag == 'equal':
 *                 for line in a[i1:i2]:             # <<<<<<<<<<<<<<
 *                     yield ' ' + line
 *                 continue
*/
        __pyx_t_10 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_a, 0, 0, &__pyx_cur_scope->__pyx_v_i1, &__pyx_cur_scope->__pyx_v_i2, NULL, 0, 0, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1179, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        if (likely(PyList_CheckExact(__pyx_t_10)) || PyTuple_CheckExact(__pyx_t_10)) {
          __pyx_t_14 = __pyx_t_10; __Pyx_INCREF(__pyx_t_14);
          __pyx_t_17 = 0;
          __pyx_t_18 = NULL;
        } else {
          __pyx_t_17 = -1; __pyx_t_14 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1179, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_18 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_14); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1179, __pyx_L1_error)
        }
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        for (;;) {
          if (likely(!__pyx_t_18)) {
            if (likely(PyList_CheckExact(__pyx_t_14))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_14);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1179, __pyx_L1_error)
                #endif
                if (__pyx_t_17 >= __pyx_temp) break;
              }
              __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_14, __pyx_t_17, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_17;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_14);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1179, __pyx_L1_error)
                #endif
                if (__pyx_t_17 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_14, __pyx_t_17));
              #else
              __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_14, __pyx_t_17);
              #endif
              ++__pyx_t_17;
            }
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1179, __pyx_L1_error)
          } else {
            __pyx_t_10 = __pyx_t_18(__pyx_t_14);
            if (unlikely(!__pyx_t_10)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1179, __pyx_L1_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_line);
          __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_line, __pyx_t_10);
          __Pyx_GIVEREF(__pyx_t_10);
          __pyx_t_10 = 0;

          /* "lxml/html/_difflib.py":1180
 *             if tag == 'equal':
 *                 for line in a[i1:i2]:
 *                     yield ' ' + line             # <<<<<<<<<<<<<<
 *                 continue
 *             if tag in {'replace', 'delete'}:
*/
          __pyx_t_10 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__3, __pyx_cur_scope->__pyx_v_line); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1180, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __pyx_r = __pyx_t_10;
          __pyx_t_10 = 0;
          __Pyx_XGIVEREF(__pyx_t_2);
          __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
          __Pyx_XGIVEREF(__pyx_t_3);
          __pyx_cur_scope->__pyx_t_3 = __pyx_t_3;
          __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
          __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
          __pyx_cur_scope->__pyx_t_4 = __pyx_t_11;
          __pyx_cur_scope->__pyx_t_5 = __pyx_t_12;
          __Pyx_XGIVEREF(__pyx_t_14);
          __pyx_cur_scope->__pyx_t_6 = __pyx_t_14;
          __pyx_cur_scope->__pyx_t_7 = __pyx_t_17;
          __pyx_cur_scope->__pyx_t_8 = __pyx_t_18;
          __Pyx_XGIVEREF(__pyx_r);
          __Pyx_RefNannyFinishContext();
          __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
          /* return from generator, yielding value */
          __pyx_generator->resume_label = 4;
          return __pyx_r;
          __pyx_L17_resume_from_yield:;
          __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
          __pyx_cur_scope->__pyx_t_0 = 0;
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_3 = __pyx_cur_scope->__pyx_t_3;
          __pyx_cur_scope->__pyx_t_3 = 0;
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
          __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
          __pyx_t_11 = __pyx_cur_scope->__pyx_t_4;
          __pyx_t_12 = __pyx_cur_scope->__pyx_t_5;
          __pyx_t_14 = __pyx_cur_scope->__pyx_t_6;
          __pyx_cur_scope->__pyx_t_6 = 0;
          __Pyx_XGOTREF(__pyx_t_14);
          __pyx_t_17 = __pyx_cur_scope->__pyx_t_7;
          __pyx_t_18 = __pyx_cur_scope->__pyx_t_8;
          if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1180, __pyx_L1_error)

          /* "lxml/html/_difflib.py":1179
 *         for tag, i1, i2, j1, j2 in group:
 *             if tag == 'equal':
 *                 for line in a[i1:i2]:             # <<<<<<<<<<<<<<
 *                     yield ' ' + line
 *                 continue
*/
        }
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

        /* "lxml/html/_difflib.py":1181
 *                 for line in a[i1:i2]:
 *                     yield ' ' + line
 *                 continue             # <<<<<<<<<<<<<<
 *             if tag in {'replace', 'delete'}:
 *                 for line in a[i1:i2]:
*/
        goto __pyx_L10_continue;

        /* "lxml/html/_difflib.py":1178
 * 
 *         for tag, i1, i2, j1, j2 in group:
 *             if tag == 'equal':             # <<<<<<<<<<<<<<
 *                 for line in a[i1:i2]:
 *                     yield ' ' + line
*/
      }

      /* "lxml/html/_difflib.py":1182
 *                     yield ' ' + line
 *                 continue
 *             if tag in {'replace', 'delete'}:             # <<<<<<<<<<<<<<
 *                 for line in a[i1:i2]:
 *                     yield '-' + line
*/
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
      __pyx_t_14 = __pyx_cur_scope->__pyx_v_tag;
      __pyx_t_19 = (__Pyx_PyUnicode_Equals(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_replace, Py_EQ)); if (unlikely((__pyx_t_19 < 0))) __PYX_ERR(0, 1182, __pyx_L1_error)
      if (!__pyx_t_19) {
      } else {
        __pyx_t_8 = __pyx_t_19;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_19 = (__Pyx_PyUnicode_Equals(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_delete, Py_EQ)); if (unlikely((__pyx_t_19 < 0))) __PYX_ERR(0, 1182, __pyx_L1_error)
      __pyx_t_8 = __pyx_t_19;
      __pyx_L20_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_t_19 = __pyx_t_8;
      if (__pyx_t_19) {

        /* "lxml/html/_difflib.py":1183
 *                 continue
 *             if tag in {'replace', 'delete'}:
 *                 for line in a[i1:i2]:             # <<<<<<<<<<<<<<
 *                     yield '-' + line
 *             if tag in {'replace', 'insert'}:
*/
        __pyx_t_14 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_a, 0, 0, &__pyx_cur_scope->__pyx_v_i1, &__pyx_cur_scope->__pyx_v_i2, NULL, 0, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1183, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (likely(PyList_CheckExact(__pyx_t_14)) || PyTuple_CheckExact(__pyx_t_14)) {
          __pyx_t_10 = __pyx_t_14; __Pyx_INCREF(__pyx_t_10);
          __pyx_t_17 = 0;
          __pyx_t_18 = NULL;
        } else {
          __pyx_t_17 = -1; __pyx_t_10 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1183, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __pyx_t_18 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1183, __pyx_L1_error)
        }
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        for (;;) {
          if (likely(!__pyx_t_18)) {
            if (likely(PyList_CheckExact(__pyx_t_10))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_10);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1183, __pyx_L1_error)
                #endif
                if (__pyx_t_17 >= __pyx_temp) break;
              }
              __pyx_t_14 = __Pyx_PyList_GetItemRefFast(__pyx_t_10, __pyx_t_17, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_17;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_10);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1183, __pyx_L1_error)
                #endif
                if (__pyx_t_17 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_14 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_10, __pyx_t_17));
              #else
              __pyx_t_14 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_17);
              #endif
              ++__pyx_t_17;
            }
            if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1183, __pyx_L1_error)
          } else {
            __pyx_t_14 = __pyx_t_18(__pyx_t_10);
            if (unlikely(!__pyx_t_14)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1183, __pyx_L1_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_line);
          __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_line, __pyx_t_14);
          __Pyx_GIVEREF(__pyx_t_14);
          __pyx_t_14 = 0;

          /* "lxml/html/_difflib.py":1184
 *             if tag in {'replace', 'delete'}:
 *                 for line in a[i1:i2]:
 *                     yield '-' + line             # <<<<<<<<<<<<<<
 *             if tag in {'replace', 'insert'}:
 *                 for line in b[j1:j2]:
*/
          __pyx_t_14 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_cur_scope->__pyx_v_line); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1184, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_r = __pyx_t_14;
          __pyx_t_14 = 0;
          __Pyx_XGIVEREF(__pyx_t_2);
          __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
          __Pyx_XGIVEREF(__pyx_t_3);
          __pyx_cur_scope->__pyx_t_3 = __pyx_t_3;
          __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
          __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
          __Pyx_XGIVEREF(__pyx_t_10);
          __pyx_cur_scope->__pyx_t_6 = __pyx_t_10;
          __pyx_cur_scope->__pyx_t_4 = __pyx_t_11;
          __pyx_cur_scope->__pyx_t_5 = __pyx_t_12;
          __pyx_cur_scope->__pyx_t_7 = __pyx_t_17;
          __pyx_cur_scope->__pyx_t_8 = __pyx_t_18;
          __Pyx_XGIVEREF(__pyx_r);
          __Pyx_RefNannyFinishContext();
          __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
          /* return from generator, yielding value */
          __pyx_generator->resume_label = 5;
          return __pyx_r;
          __pyx_L24_resume_from_yield:;
          __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
          __pyx_cur_scope->__pyx_t_0 = 0;
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_3 = __pyx_cur_scope->__pyx_t_3;
          __pyx_cur_scope->__pyx_t_3 = 0;
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
          __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
          __pyx_t_10 = __pyx_cur_scope->__pyx_t_6;
          __pyx_cur_scope->__pyx_t_6 = 0;
          __Pyx_XGOTREF(__pyx_t_10);
          __pyx_t_11 = __pyx_cur_scope->__pyx_t_4;
          __pyx_t_12 = __pyx_cur_scope->__pyx_t_5;
          __pyx_t_17 = __pyx_cur_scope->__pyx_t_7;
          __pyx_t_18 = __pyx_cur_scope->__pyx_t_8;
          if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1184, __pyx_L1_error)

          /* "lxml/html/_difflib.py":1183
 *                 continue
 *             if tag in {'replace', 'delete'}:
 *                 for line in a[i1:i2]:             # <<<<<<<<<<<<<<
 *                     yield '-' + line
 *             if tag in {'replace', 'insert'}:
*/
        }
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

        /* "lxml/html/_difflib.py":1182
 *                     yield ' ' + line
 *                 continue
 *             if tag in {'replace', 'delete'}:             # <<<<<<<<<<<<<<
 *                 for line in a[i1:i2]:
 *                     yield '-' + line
*/
      }

      /* "lxml/html/_difflib.py":1185
 *                 for line in a[i1:i2]:
 *                     yield '-' + line
 *             if tag in {'replace', 'insert'}:             # <<<<<<<<<<<<<<
 *                 for line in b[j1:j2]:
 *                     yield '+' + line
*/
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
      __pyx_t_10 = __pyx_cur_scope->__pyx_v_tag;
      __pyx_t_8 = (__Pyx_PyUnicode_Equals(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_replace, Py_EQ)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1185, __pyx_L1_error)
      if (!__pyx_t_8) {
      } else {
        __pyx_t_19 = __pyx_t_8;
        goto __pyx_L27_bool_binop_done;
      }
      __pyx_t_8 = (__Pyx_PyUnicode_Equals(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_insert, Py_EQ)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1185, __pyx_L1_error)
      __pyx_t_19 = __pyx_t_8;
      __pyx_L27_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_8 = __pyx_t_19;
      if (__pyx_t_8) {

        /* "lxml/html/_difflib.py":1186
 *                     yield '-' + line
 *             if tag in {'replace', 'insert'}:
 *                 for line in b[j1:j2]:             # <<<<<<<<<<<<<<
 *                     yield '+' + line
 * 
*/
        __pyx_t_10 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_b, 0, 0, &__pyx_cur_scope->__pyx_v_j1, &__pyx_cur_scope->__pyx_v_j2, NULL, 0, 0, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1186, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        if (likely(PyList_CheckExact(__pyx_t_10)) || PyTuple_CheckExact(__pyx_t_10)) {
          __pyx_t_14 = __pyx_t_10; __Pyx_INCREF(__pyx_t_14);
          __pyx_t_17 = 0;
          __pyx_t_18 = NULL;
        } else {
          __pyx_t_17 = -1; __pyx_t_14 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1186, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_18 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_14); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1186, __pyx_L1_error)
        }
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        for (;;) {
          if (likely(!__pyx_t_18)) {
            if (likely(PyList_CheckExact(__pyx_t_14))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_14);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1186, __pyx_L1_error)
                #endif
                if (__pyx_t_17 >= __pyx_temp) break;
              }
              __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_14, __pyx_t_17, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_17;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_14);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1186, __pyx_L1_error)
                #endif
                if (__pyx_t_17 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_14, __pyx_t_17));
              #else
              __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_14, __pyx_t_17);
              #endif
              ++__pyx_t_17;
            }
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1186, __pyx_L1_error)
          } else {
            __pyx_t_10 = __pyx_t_18(__pyx_t_14);
            if (unlikely(!__pyx_t_10)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1186, __pyx_L1_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_line);
          __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_line, __pyx_t_10);
          __Pyx_GIVEREF(__pyx_t_10);
          __pyx_t_10 = 0;

          /* "lxml/html/_difflib.py":1187
 *             if tag in {'replace', 'insert'}:
 *                 for line in b[j1:j2]:
 *                     yield '+' + line             # <<<<<<<<<<<<<<
 * 
 * 
*/
          __pyx_t_10 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__5, __pyx_cur_scope->__pyx_v_line); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1187, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __pyx_r = __pyx_t_10;
          __pyx_t_10 = 0;
          __Pyx_XGIVEREF(__pyx_t_2);
          __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
          __Pyx_XGIVEREF(__pyx_t_3);
          __pyx_cur_scope->__pyx_t_3 = __pyx_t_3;
          __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
          __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
          __pyx_cur_scope->__pyx_t_4 = __pyx_t_11;
          __pyx_cur_scope->__pyx_t_5 = __pyx_t_12;
          __Pyx_XGIVEREF(__pyx_t_14);
          __pyx_cur_scope->__pyx_t_6 = __pyx_t_14;
          __pyx_cur_scope->__pyx_t_7 = __pyx_t_17;
          __pyx_cur_scope->__pyx_t_8 = __pyx_t_18;
          __Pyx_XGIVEREF(__pyx_r);
          __Pyx_RefNannyFinishContext();
          __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
          /* return from generator, yielding value */
          __pyx_generator->resume_label = 6;
          return __pyx_r;
          __pyx_L31_resume_from_yield:;
          __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
          __pyx_cur_scope->__pyx_t_0 = 0;
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_3 = __pyx_cur_scope->__pyx_t_3;
          __pyx_cur_scope->__pyx_t_3 = 0;
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
          __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
          __pyx_t_11 = __pyx_cur_scope->__pyx_t_4;
          __pyx_t_12 = __pyx_cur_scope->__pyx_t_5;
          __pyx_t_14 = __pyx_cur_scope->__pyx_t_6;
          __pyx_cur_scope->__pyx_t_6 = 0;
          __Pyx_XGOTREF(__pyx_t_14);
          __pyx_t_17 = __pyx_cur_scope->__pyx_t_7;
          __pyx_t_18 = __pyx_cur_scope->__pyx_t_8;
          if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1187, __pyx_L1_error)

          /* "lxml/html/_difflib.py":1186
 *                     yield '-' + line
 *             if tag in {'replace', 'insert'}:
 *                 for line in b[j1:j2]:             # <<<<<<<<<<<<<<
 *                     yield '+' + line
 * 
*/
        }
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

        /* "lxml/html/_difflib.py":1185
 *                 for line in a[i1:i2]:
 *                     yield '-' + line
 *             if tag in {'replace', 'insert'}:             # <<<<<<<<<<<<<<
 *                 for line in b[j1:j2]:
 *                     yield '+' + line
*/
      }

      /* "lxml/html/_difflib.py":1177
 *         yield '@@ -{} +{} @@{}'.format(file1_range, file2_range, lineterm)
 * 
 *         for tag, i1, i2, j1, j2 in group:             # <<<<<<<<<<<<<<
 *             if tag == 'equal':
 *                 for line in a[i1:i2]:
*/
      __pyx_L10_continue:;
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1164
 *     _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):             # <<<<<<<<<<<<<<
 *         if not started:
 *             started = True
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1121
 *     return '{},{}'.format(beginning, length)
 * 
 * def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',             # <<<<<<<<<<<<<<
 *                  tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("unified_diff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1194
 * ########################################################################
 * 
 * def _format_range_context(start, stop):             # <<<<<<<<<<<<<<
 *     'Convert range to the "ed" format'
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_14_format_range_context(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_13_format_range_context, "Convert range to the \"ed\" format");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_14_format_range_context = {"_format_range_context", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_14_format_range_context, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_13_format_range_context};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_14_format_range_context(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_start = 0;
  PyObject *__pyx_v_stop = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_format_range_context (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_start,&__pyx_mstate_global->__pyx_n_u_stop,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1194, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1194, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1194, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_format_range_context", 0) < (0)) __PYX_ERR(0, 1194, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_format_range_context", 1, 2, 2, i); __PYX_ERR(0, 1194, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1194, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1194, __pyx_L3_error)
    }
    __pyx_v_start = values[0];
    __pyx_v_stop = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_format_range_context", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1194, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib._format_range_context", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_13_format_range_context(__pyx_self, __pyx_v_start, __pyx_v_stop);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_13_format_range_context(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_stop) {
  PyObject *__pyx_v_beginning = NULL;
  PyObject *__pyx_v_length = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_format_range_context", 0);

  /* "lxml/html/_difflib.py":1197
 *     'Convert range to the "ed" format'
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
 *     beginning = start + 1     # lines start numbering with one             # <<<<<<<<<<<<<<
 *     length = stop - start
 *     if not length:
*/
  __pyx_t_1 = __Pyx_PyLong_AddObjC(__pyx_v_start, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_beginning = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1198
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
 *     beginning = start + 1     # lines start numbering with one
 *     length = stop - start             # <<<<<<<<<<<<<<
 *     if not length:
 *         beginning -= 1        # empty ranges begin at line just before the range
*/
  __pyx_t_1 = PyNumber_Subtract(__pyx_v_stop, __pyx_v_start); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_length = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1199
 *     beginning = start + 1     # lines start numbering with one
 *     length = stop - start
 *     if not length:             # <<<<<<<<<<<<<<
 *         beginning -= 1        # empty ranges begin at line just before the range
 *     if length <= 1:
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_length); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1199, __pyx_L1_error)
  __pyx_t_3 = (!__pyx_t_2);
  if (__pyx_t_3) {

    /* "lxml/html/_difflib.py":1200
 *     length = stop - start
 *     if not length:
 *         beginning -= 1        # empty ranges begin at line just before the range             # <<<<<<<<<<<<<<
 *     if length <= 1:
 *         return '{}'.format(beginning)
*/
    __pyx_t_1 = __Pyx_PyLong_SubtractObjC(__pyx_v_beginning, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_beginning, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":1199
 *     beginning = start + 1     # lines start numbering with one
 *     length = stop - start
 *     if not length:             # <<<<<<<<<<<<<<
 *         beginning -= 1        # empty ranges begin at line just before the range
 *     if length <= 1:
*/
  }

  /* "lxml/html/_difflib.py":1201
 *     if not length:
 *         beginning -= 1        # empty ranges begin at line just before the range
 *     if length <= 1:             # <<<<<<<<<<<<<<
 *         return '{}'.format(beginning)
 *     return '{},{}'.format(beginning, beginning + length - 1)
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_length, __pyx_mstate_global->__pyx_int_1, Py_LE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_3) {

    /* "lxml/html/_difflib.py":1202
 *         beginning -= 1        # empty ranges begin at line just before the range
 *     if length <= 1:
 *         return '{}'.format(beginning)             # <<<<<<<<<<<<<<
 *     return '{},{}'.format(beginning, beginning + length - 1)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __pyx_mstate_global->__pyx_kp_u__14;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_beginning};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1202, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":1201
 *     if not length:
 *         beginning -= 1        # empty ranges begin at line just before the range
 *     if length <= 1:             # <<<<<<<<<<<<<<
 *         return '{}'.format(beginning)
 *     return '{},{}'.format(beginning, beginning + length - 1)
*/
  }

  /* "lxml/html/_difflib.py":1203
 *     if length <= 1:
 *         return '{}'.format(beginning)
 *     return '{},{}'.format(beginning, beginning + length - 1)             # <<<<<<<<<<<<<<
 * 
 * # See http://www.unix.org/single_unix_specification/
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __pyx_mstate_global->__pyx_kp_u__15;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = PyNumber_Add(__pyx_v_beginning, __pyx_v_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_SubtractObjC(__pyx_t_6, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_beginning, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1203, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1194
 * ########################################################################
 * 
 * def _format_range_context(start, stop):             # <<<<<<<<<<<<<<
 *     'Convert range to the "ed" format'
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("lxml.html._difflib._format_range_context", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_beginning);
  __Pyx_XDECREF(__pyx_v_length);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_17generator8(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1206
 * 
 * # See http://www.unix.org/single_unix_specification/
 * def context_diff(a, b, fromfile='', tofile='',             # <<<<<<<<<<<<<<
 *                  fromfiledate='', tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_16context_diff(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_15context_diff, "\n    Compare two sequences of lines; generate the delta as a context diff.\n\n    Context diffs are a compact way of showing line changes and a few\n    lines of context.  The number of context lines is set by 'n' which\n    defaults to three.\n\n    By default, the diff control lines (those with *** or ---) are\n    created with a trailing newline.  This is helpful so that inputs\n    created from file.readlines() result in diffs that are suitable for\n    file.writelines() since both the inputs and outputs have trailing\n    newlines.\n\n    For inputs that do not have trailing newlines, set the lineterm\n    argument to \"\" so that the output will be uniformly newline free.\n\n    The context diff format normally has a header for filenames and\n    modification times.  Any or all of these may be specified using\n    strings for 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'.\n    The modification times are normally expressed in the ISO 8601 format.\n    If not specified, the strings default to blanks.\n\n    Example:\n\n    >>> print(''.join(context_diff('one\\ntwo\\nthree\\nfour\\n'.splitlines(True),\n    ...       'zero\\none\\ntree\\nfour\\n'.splitlines(True), 'Original', 'Current')),\n    ...       end=\"\")\n    *** Original\n    --- Current\n    ***************\n    *** 1,4 ****\n      one\n    ! two\n    ! three\n      four\n    --- 1,4 ----\n    + zero\n      one\n    ! tree\n      four\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_16context_diff = {"context_diff", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_16context_diff, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15context_diff};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_16context_diff(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_fromfile = 0;
  PyObject *__pyx_v_tofile = 0;
  PyObject *__pyx_v_fromfiledate = 0;
  PyObject *__pyx_v_tofiledate = 0;
  PyObject *__pyx_v_n = 0;
  PyObject *__pyx_v_lineterm = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("context_diff (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_b,&__pyx_mstate_global->__pyx_n_u_fromfile,&__pyx_mstate_global->__pyx_n_u_tofile,&__pyx_mstate_global->__pyx_n_u_fromfiledate,&__pyx_mstate_global->__pyx_n_u_tofiledate,&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_lineterm,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1206, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "context_diff", 0) < (0)) __PYX_ERR(0, 1206, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_3)));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__10)));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("context_diff", 0, 2, 8, i); __PYX_ERR(0, 1206, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1206, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1206, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1206, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_3)));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__10)));
    }
    __pyx_v_a = values[0];
    __pyx_v_b = values[1];
    __pyx_v_fromfile = values[2];
    __pyx_v_tofile = values[3];
    __pyx_v_fromfiledate = values[4];
    __pyx_v_tofiledate = values[5];
    __pyx_v_n = values[6];
    __pyx_v_lineterm = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("context_diff", 0, 2, 8, __pyx_nargs); __PYX_ERR(0, 1206, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.context_diff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_15context_diff(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_fromfile, __pyx_v_tofile, __pyx_v_fromfiledate, __pyx_v_tofiledate, __pyx_v_n, __pyx_v_lineterm);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_12context_diff_2generator15(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1267
 *         yield '*** {} ****{}'.format(file1_range, lineterm)
 * 
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):             # <<<<<<<<<<<<<<
 *             for tag, i1, i2, _, _ in group:
 *                 if tag != 'insert':
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_12context_diff_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1267, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_12context_diff_2generator15, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_context_diff_locals_genexpr, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1267, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.context_diff.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_12context_diff_2generator15(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1267, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1267, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1267, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1267, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1267, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1267, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1267, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 5)) {
        if (size > 5) __Pyx_RaiseTooManyValuesError(5);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 1267, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 3);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 4);
        __Pyx_INCREF(__pyx_t_9);
      } else {
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1267, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1267, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1267, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1267, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1267, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_9);
      }
      #else
      {
        Py_ssize_t i;
        PyObject** temps[5] = {&__pyx_t_5,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9};
        for (i=0; i < 5; i++) {
          PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 1267, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[5] = {&__pyx_t_5,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9};
      __pyx_t_10 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1267, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
      for (index=0; index < 5; index++) {
        PyObject* item = __pyx_t_11(__pyx_t_10); if (unlikely(!item)) goto __pyx_L6_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 5) < (0)) __PYX_ERR(0, 1267, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1267, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v__);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v__);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v__);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    __pyx_t_9 = 0;
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_tag;
    __pyx_t_13 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_replace, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 1267, __pyx_L1_error)
    if (!__pyx_t_13) {
    } else {
      __pyx_t_12 = __pyx_t_13;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_13 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_delete, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 1267, __pyx_L1_error)
    __pyx_t_12 = __pyx_t_13;
    __pyx_L9_bool_binop_done:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_13 = __pyx_t_12;
    if (__pyx_t_13) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_True);
      __pyx_r = Py_True;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_12context_diff_5generator16(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1276
 *         yield '--- {} ----{}'.format(file2_range, lineterm)
 * 
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):             # <<<<<<<<<<<<<<
 *             for tag, _, _, j1, j2 in group:
 *                 if tag != 'delete':
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_12context_diff_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1276, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_12context_diff_5generator16, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_context_diff_locals_genexpr, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1276, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.context_diff.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_12context_diff_5generator16(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1276, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1276, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1276, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1276, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1276, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1276, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1276, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 5)) {
        if (size > 5) __Pyx_RaiseTooManyValuesError(5);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 1276, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 3);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 4);
        __Pyx_INCREF(__pyx_t_9);
      } else {
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1276, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1276, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1276, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1276, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1276, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_9);
      }
      #else
      {
        Py_ssize_t i;
        PyObject** temps[5] = {&__pyx_t_5,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9};
        for (i=0; i < 5; i++) {
          PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 1276, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[5] = {&__pyx_t_5,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9};
      __pyx_t_10 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1276, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
      for (index=0; index < 5; index++) {
        PyObject* item = __pyx_t_11(__pyx_t_10); if (unlikely(!item)) goto __pyx_L6_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 5) < (0)) __PYX_ERR(0, 1276, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1276, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v__);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v__);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v__);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    __pyx_t_9 = 0;
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_tag;
    __pyx_t_13 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_replace, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 1276, __pyx_L1_error)
    if (!__pyx_t_13) {
    } else {
      __pyx_t_12 = __pyx_t_13;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_13 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_insert, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 1276, __pyx_L1_error)
    __pyx_t_12 = __pyx_t_13;
    __pyx_L9_bool_binop_done:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_13 = __pyx_t_12;
    if (__pyx_t_13) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_True);
      __pyx_r = Py_True;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1206
 * 
 * # See http://www.unix.org/single_unix_specification/
 * def context_diff(a, b, fromfile='', tofile='',             # <<<<<<<<<<<<<<
 *                  fromfiledate='', tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_15context_diff(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_fromfile, PyObject *__pyx_v_tofile, PyObject *__pyx_v_fromfiledate, PyObject *__pyx_v_tofiledate, PyObject *__pyx_v_n, PyObject *__pyx_v_lineterm) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *__pyx_cur_scope;
  PyObject *__pyx_gb_4lxml_4html_8_difflib_12context_diff_2generator15 = 0;
  PyObject *__pyx_gb_4lxml_4html_8_difflib_12context_diff_5generator16 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("context_diff", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1206, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_a = __pyx_v_a;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_a);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_a);
  __pyx_cur_scope->__pyx_v_b = __pyx_v_b;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_b);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_b);
  __pyx_cur_scope->__pyx_v_fromfile = __pyx_v_fromfile;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromfile);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromfile);
  __pyx_cur_scope->__pyx_v_tofile = __pyx_v_tofile;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tofile);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tofile);
  __pyx_cur_scope->__pyx_v_fromfiledate = __pyx_v_fromfiledate;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromfiledate);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromfiledate);
  __pyx_cur_scope->__pyx_v_tofiledate = __pyx_v_tofiledate;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tofiledate);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tofiledate);
  __pyx_cur_scope->__pyx_v_n = __pyx_v_n;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_n);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_n);
  __pyx_cur_scope->__pyx_v_lineterm = __pyx_v_lineterm;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lineterm);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lineterm);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_17generator8, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_context_diff, __pyx_mstate_global->__pyx_n_u_context_diff, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1206, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.context_diff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XDECREF(__pyx_gb_4lxml_4html_8_difflib_12context_diff_2generator15);
  __Pyx_XDECREF(__pyx_gb_4lxml_4html_8_difflib_12context_diff_5generator16);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_17generator8(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  PyObject *(*__pyx_t_12)(PyObject *);
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *(*__pyx_t_16)(PyObject *);
  Py_ssize_t __pyx_t_17;
  PyObject *(*__pyx_t_18)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("context_diff", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L7_resume_from_yield;
    case 2: goto __pyx_L8_resume_from_yield;
    case 3: goto __pyx_L9_resume_from_yield;
    case 4: goto __pyx_L10_resume_from_yield;
    case 5: goto __pyx_L19_resume_from_yield;
    case 6: goto __pyx_L22_resume_from_yield;
    case 7: goto __pyx_L31_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1206, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1250
 *     """
 * 
 *     _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)             # <<<<<<<<<<<<<<
 *     prefix = dict(insert='+ ', delete='- ', replace='! ', equal='  ')
 *     started = False
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_check_types); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_fromfile, __pyx_cur_scope->__pyx_v_tofile, __pyx_cur_scope->__pyx_v_fromfiledate, __pyx_cur_scope->__pyx_v_tofiledate, __pyx_cur_scope->__pyx_v_lineterm};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (8-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1251
 * 
 *     _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
 *     prefix = dict(insert='+ ', delete='- ', replace='! ', equal='  ')             # <<<<<<<<<<<<<<
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_insert, __pyx_mstate_global->__pyx_kp_u__11) < (0)) __PYX_ERR(0, 1251, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_delete, __pyx_mstate_global->__pyx_kp_u__8) < (0)) __PYX_ERR(0, 1251, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_replace, __pyx_mstate_global->__pyx_kp_u__20) < (0)) __PYX_ERR(0, 1251, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_equal, __pyx_mstate_global->__pyx_kp_u__7) < (0)) __PYX_ERR(0, 1251, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_prefix = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1252
 *     _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
 *     prefix = dict(insert='+ ', delete='- ', replace='! ', equal='  ')
 *     started = False             # <<<<<<<<<<<<<<
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
 *         if not started:
*/
  __pyx_cur_scope->__pyx_v_started = 0;

  /* "lxml/html/_difflib.py":1253
 *     prefix = dict(insert='+ ', delete='- ', replace='! ', equal='  ')
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):             # <<<<<<<<<<<<<<
 *         if not started:
 *             started = True
*/
  __pyx_t_5 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_5, Py_None, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_b};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1253, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_t_3 = ((PyObject *)__pyx_t_2);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_n};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_grouped_opcodes, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2);
    __pyx_t_6 = 0;
    __pyx_t_7 = NULL;
  } else {
    __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1253, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_7)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1253, __pyx_L1_error)
          #endif
          if (__pyx_t_6 >= __pyx_temp) break;
        }
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_6;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1253, __pyx_L1_error)
          #endif
          if (__pyx_t_6 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6));
        #else
        __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_6);
        #endif
        ++__pyx_t_6;
      }
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1253, __pyx_L1_error)
    } else {
      __pyx_t_1 = __pyx_t_7(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1253, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_group);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_group, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":1254
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
 *         if not started:             # <<<<<<<<<<<<<<
 *             started = True
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
*/
    __pyx_t_8 = (!__pyx_cur_scope->__pyx_v_started);
    if (__pyx_t_8) {

      /* "lxml/html/_difflib.py":1255
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
 *         if not started:
 *             started = True             # <<<<<<<<<<<<<<
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''
*/
      __pyx_cur_scope->__pyx_v_started = 1;

      /* "lxml/html/_difflib.py":1256
 *         if not started:
 *             started = True
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''             # <<<<<<<<<<<<<<
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''
 *             yield '*** {}{}{}'.format(fromfile, fromdate, lineterm)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_fromfiledate); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1256, __pyx_L1_error)
      if (__pyx_t_8) {
        __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u__16;
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_fromfiledate};
          __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1256, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __pyx_t_1 = __pyx_t_3;
        __pyx_t_3 = 0;
      } else {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
        __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u__2;
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_fromdate);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_fromdate, ((PyObject*)__pyx_t_1));
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":1257
 *             started = True
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''             # <<<<<<<<<<<<<<
 *             yield '*** {}{}{}'.format(fromfile, fromdate, lineterm)
 *             yield '--- {}{}{}'.format(tofile, todate, lineterm)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_tofiledate); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1257, __pyx_L1_error)
      if (__pyx_t_8) {
        __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u__16;
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_tofiledate};
          __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1257, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __pyx_t_1 = __pyx_t_3;
        __pyx_t_3 = 0;
      } else {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
        __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u__2;
      }
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_todate);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_todate, ((PyObject*)__pyx_t_1));
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":1258
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''
 *             yield '*** {}{}{}'.format(fromfile, fromdate, lineterm)             # <<<<<<<<<<<<<<
 *             yield '--- {}{}{}'.format(tofile, todate, lineterm)
 * 
*/
      __pyx_t_3 = __pyx_mstate_global->__pyx_kp_u__21;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_fromfile, __pyx_cur_scope->__pyx_v_fromdate, __pyx_cur_scope->__pyx_v_lineterm};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1258, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_t_2);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
      __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L7_resume_from_yield:;
      __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
      __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1258, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1259
 *             todate = '\t{}'.format(tofiledate) if tofiledate else ''
 *             yield '*** {}{}{}'.format(fromfile, fromdate, lineterm)
 *             yield '--- {}{}{}'.format(tofile, todate, lineterm)             # <<<<<<<<<<<<<<
 * 
 *         first, last = group[0], group[-1]
*/
      __pyx_t_3 = __pyx_mstate_global->__pyx_kp_u__17;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_tofile, __pyx_cur_scope->__pyx_v_todate, __pyx_cur_scope->__pyx_v_lineterm};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1259, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_t_2);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
      __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 2;
      return __pyx_r;
      __pyx_L8_resume_from_yield:;
      __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
      __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1259, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1254
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
 *         if not started:             # <<<<<<<<<<<<<<
 *             started = True
 *             fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
*/
    }

    /* "lxml/html/_difflib.py":1261
 *             yield '--- {}{}{}'.format(tofile, todate, lineterm)
 * 
 *         first, last = group[0], group[-1]             # <<<<<<<<<<<<<<
 *         yield '***************' + lineterm
 * 
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_group, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_group, -1L, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_first);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_first, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_last);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_last, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1262
 * 
 *         first, last = group[0], group[-1]
 *         yield '***************' + lineterm             # <<<<<<<<<<<<<<
 * 
 *         file1_range = _format_range_context(first[1], last[2])
*/
    __pyx_t_3 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__22, __pyx_cur_scope->__pyx_v_lineterm); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    __Pyx_XGIVEREF(__pyx_t_2);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 3;
    return __pyx_r;
    __pyx_L9_resume_from_yield:;
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_2);
    __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1262, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1264
 *         yield '***************' + lineterm
 * 
 *         file1_range = _format_range_context(first[1], last[2])             # <<<<<<<<<<<<<<
 *         yield '*** {} ****{}'.format(file1_range, lineterm)
 * 
*/
    __pyx_t_1 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_format_range_context); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_9 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_first, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_last, 2, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_1);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_t_9, __pyx_t_10};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_file1_range);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_file1_range, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1265
 * 
 *         file1_range = _format_range_context(first[1], last[2])
 *         yield '*** {} ****{}'.format(file1_range, lineterm)             # <<<<<<<<<<<<<<
 * 
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):
*/
    __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u__23;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_file1_range, __pyx_cur_scope->__pyx_v_lineterm};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1265, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    __Pyx_XGIVEREF(__pyx_t_2);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 4;
    return __pyx_r;
    __pyx_L10_resume_from_yield:;
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_2);
    __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1265, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1267
 *         yield '*** {} ****{}'.format(file1_range, lineterm)
 * 
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):             # <<<<<<<<<<<<<<
 *             for tag, i1, i2, _, _ in group:
 *                 if tag != 'insert':
*/
    __pyx_t_3 = __pyx_pf_4lxml_4html_8_difflib_12context_diff_genexpr(NULL, __pyx_cur_scope->__pyx_v_group); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1267, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_8) {

      /* "lxml/html/_difflib.py":1268
 * 
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):
 *             for tag, i1, i2, _, _ in group:             # <<<<<<<<<<<<<<
 *                 if tag != 'insert':
 *                     for line in a[i1:i2]:
*/
      if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_group)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_group)) {
        __pyx_t_5 = __pyx_cur_scope->__pyx_v_group; __Pyx_INCREF(__pyx_t_5);
        __pyx_t_11 = 0;
        __pyx_t_12 = NULL;
      } else {
        __pyx_t_11 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_group); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1268, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1268, __pyx_L1_error)
      }
      for (;;) {
        if (likely(!__pyx_t_12)) {
          if (likely(PyList_CheckExact(__pyx_t_5))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1268, __pyx_L1_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1268, __pyx_L1_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_11));
            #else
            __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_11);
            #endif
            ++__pyx_t_11;
          }
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1268, __pyx_L1_error)
        } else {
          __pyx_t_3 = __pyx_t_12(__pyx_t_5);
          if (unlikely(!__pyx_t_3)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1268, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_3);
        if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
          PyObject* sequence = __pyx_t_3;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 5)) {
            if (size > 5) __Pyx_RaiseTooManyValuesError(5);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 1268, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_10 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_10);
            __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_9);
            __pyx_t_1 = PyTuple_GET_ITEM(sequence, 2);
            __Pyx_INCREF(__pyx_t_1);
            __pyx_t_13 = PyTuple_GET_ITEM(sequence, 3);
            __Pyx_INCREF(__pyx_t_13);
            __pyx_t_14 = PyTuple_GET_ITEM(sequence, 4);
            __Pyx_INCREF(__pyx_t_14);
          } else {
            __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1268, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_10);
            __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1268, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_9);
            __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1268, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_1);
            __pyx_t_13 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1268, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_13);
            __pyx_t_14 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1268, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_14);
          }
          #else
          {
            Py_ssize_t i;
            PyObject** temps[5] = {&__pyx_t_10,&__pyx_t_9,&__pyx_t_1,&__pyx_t_13,&__pyx_t_14};
            for (i=0; i < 5; i++) {
              PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 1268, __pyx_L1_error)
              __Pyx_GOTREF(item);
              *(temps[i]) = item;
            }
          }
          #endif
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        } else {
          Py_ssize_t index = -1;
          PyObject** temps[5] = {&__pyx_t_10,&__pyx_t_9,&__pyx_t_1,&__pyx_t_13,&__pyx_t_14};
          __pyx_t_15 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1268, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __pyx_t_16 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_15);
          for (index=0; index < 5; index++) {
            PyObject* item = __pyx_t_16(__pyx_t_15); if (unlikely(!item)) goto __pyx_L14_unpacking_failed;
            __Pyx_GOTREF(item);
            *(temps[index]) = item;
          }
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_16(__pyx_t_15), 5) < (0)) __PYX_ERR(0, 1268, __pyx_L1_error)
          __pyx_t_16 = NULL;
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          goto __pyx_L15_unpacking_done;
          __pyx_L14_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          __pyx_t_16 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 1268, __pyx_L1_error)
          __pyx_L15_unpacking_done:;
        }
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_10);
        __Pyx_GIVEREF(__pyx_t_10);
        __pyx_t_10 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i1);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i1, __pyx_t_9);
        __Pyx_GIVEREF(__pyx_t_9);
        __pyx_t_9 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i2);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i2, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_1);
        __pyx_t_1 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_13);
        __Pyx_GIVEREF(__pyx_t_13);
        __pyx_t_13 = 0;
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v__);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_14);
        __Pyx_GIVEREF(__pyx_t_14);
        __pyx_t_14 = 0;

        /* "lxml/html/_difflib.py":1269
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):
 *             for tag, i1, i2, _, _ in group:
 *                 if tag != 'insert':             # <<<<<<<<<<<<<<
 *                     for line in a[i1:i2]:
 *                         yield prefix[tag] + line
*/
        __pyx_t_8 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_insert, Py_NE)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1269, __pyx_L1_error)
        if (__pyx_t_8) {

          /* "lxml/html/_difflib.py":1270
 *             for tag, i1, i2, _, _ in group:
 *                 if tag != 'insert':
 *                     for line in a[i1:i2]:             # <<<<<<<<<<<<<<
 *                         yield prefix[tag] + line
 * 
*/
          __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_a, 0, 0, &__pyx_cur_scope->__pyx_v_i1, &__pyx_cur_scope->__pyx_v_i2, NULL, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1270, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
            __pyx_t_14 = __pyx_t_3; __Pyx_INCREF(__pyx_t_14);
            __pyx_t_17 = 0;
            __pyx_t_18 = NULL;
          } else {
            __pyx_t_17 = -1; __pyx_t_14 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1270, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_14);
            __pyx_t_18 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_14); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1270, __pyx_L1_error)
          }
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          for (;;) {
            if (likely(!__pyx_t_18)) {
              if (likely(PyList_CheckExact(__pyx_t_14))) {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_14);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1270, __pyx_L1_error)
                  #endif
                  if (__pyx_t_17 >= __pyx_temp) break;
                }
                __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_14, __pyx_t_17, __Pyx_ReferenceSharing_OwnStrongReference);
                ++__pyx_t_17;
              } else {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_14);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1270, __pyx_L1_error)
                  #endif
                  if (__pyx_t_17 >= __pyx_temp) break;
                }
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_14, __pyx_t_17));
                #else
                __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_14, __pyx_t_17);
                #endif
                ++__pyx_t_17;
              }
              if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1270, __pyx_L1_error)
            } else {
              __pyx_t_3 = __pyx_t_18(__pyx_t_14);
              if (unlikely(!__pyx_t_3)) {
                PyObject* exc_type = PyErr_Occurred();
                if (exc_type) {
                  if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1270, __pyx_L1_error)
                  PyErr_Clear();
                }
                break;
              }
            }
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_line);
            __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_line, __pyx_t_3);
            __Pyx_GIVEREF(__pyx_t_3);
            __pyx_t_3 = 0;

            /* "lxml/html/_difflib.py":1271
 *                 if tag != 'insert':
 *                     for line in a[i1:i2]:
 *                         yield prefix[tag] + line             # <<<<<<<<<<<<<<
 * 
 *         file2_range = _format_range_context(first[3], last[4])
*/
            __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_cur_scope->__pyx_v_prefix, __pyx_cur_scope->__pyx_v_tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1271, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_t_13 = PyNumber_Add(__pyx_t_3, __pyx_cur_scope->__pyx_v_line); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1271, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __pyx_r = __pyx_t_13;
            __pyx_t_13 = 0;
            __Pyx_XGIVEREF(__pyx_t_2);
            __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
            __Pyx_XGIVEREF(__pyx_t_5);
            __pyx_cur_scope->__pyx_t_3 = __pyx_t_5;
            __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
            __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
            __pyx_cur_scope->__pyx_t_4 = __pyx_t_11;
            __pyx_cur_scope->__pyx_t_5 = __pyx_t_12;
            __Pyx_XGIVEREF(__pyx_t_14);
            __pyx_cur_scope->__pyx_t_6 = __pyx_t_14;
            __pyx_cur_scope->__pyx_t_7 = __pyx_t_17;
            __pyx_cur_scope->__pyx_t_8 = __pyx_t_18;
            __Pyx_XGIVEREF(__pyx_r);
            __Pyx_RefNannyFinishContext();
            __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
            /* return from generator, yielding value */
            __pyx_generator->resume_label = 5;
            return __pyx_r;
            __pyx_L19_resume_from_yield:;
            __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
            __pyx_cur_scope->__pyx_t_0 = 0;
            __Pyx_XGOTREF(__pyx_t_2);
            __pyx_t_5 = __pyx_cur_scope->__pyx_t_3;
            __pyx_cur_scope->__pyx_t_3 = 0;
            __Pyx_XGOTREF(__pyx_t_5);
            __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
            __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
            __pyx_t_11 = __pyx_cur_scope->__pyx_t_4;
            __pyx_t_12 = __pyx_cur_scope->__pyx_t_5;
            __pyx_t_14 = __pyx_cur_scope->__pyx_t_6;
            __pyx_cur_scope->__pyx_t_6 = 0;
            __Pyx_XGOTREF(__pyx_t_14);
            __pyx_t_17 = __pyx_cur_scope->__pyx_t_7;
            __pyx_t_18 = __pyx_cur_scope->__pyx_t_8;
            if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1271, __pyx_L1_error)

            /* "lxml/html/_difflib.py":1270
 *             for tag, i1, i2, _, _ in group:
 *                 if tag != 'insert':
 *                     for line in a[i1:i2]:             # <<<<<<<<<<<<<<
 *                         yield prefix[tag] + line
 * 
*/
          }
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

          /* "lxml/html/_difflib.py":1269
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):
 *             for tag, i1, i2, _, _ in group:
 *                 if tag != 'insert':             # <<<<<<<<<<<<<<
 *                     for line in a[i1:i2]:
 *                         yield prefix[tag] + line
*/
        }

        /* "lxml/html/_difflib.py":1268
 * 
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):
 *             for tag, i1, i2, _, _ in group:             # <<<<<<<<<<<<<<
 *                 if tag != 'insert':
 *                     for line in a[i1:i2]:
*/
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "lxml/html/_difflib.py":1267
 *         yield '*** {} ****{}'.format(file1_range, lineterm)
 * 
 *         if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):             # <<<<<<<<<<<<<<
 *             for tag, i1, i2, _, _ in group:
 *                 if tag != 'insert':
*/
    }

    /* "lxml/html/_difflib.py":1273
 *                         yield prefix[tag] + line
 * 
 *         file2_range = _format_range_context(first[3], last[4])             # <<<<<<<<<<<<<<
 *         yield '--- {} ----{}'.format(file2_range, lineterm)
 * 
*/
    __pyx_t_14 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_format_range_context); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_first, 3, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_last, 4, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_13))) {
      __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
      assert(__pyx_t_14);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
      __Pyx_INCREF(__pyx_t_14);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_14, __pyx_t_3, __pyx_t_1};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1273, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_file2_range);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_file2_range, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":1274
 * 
 *         file2_range = _format_range_context(first[3], last[4])
 *         yield '--- {} ----{}'.format(file2_range, lineterm)             # <<<<<<<<<<<<<<
 * 
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):
*/
    __pyx_t_13 = __pyx_mstate_global->__pyx_kp_u__24;
    __Pyx_INCREF(__pyx_t_13);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_cur_scope->__pyx_v_file2_range, __pyx_cur_scope->__pyx_v_lineterm};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1274, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    __Pyx_XGIVEREF(__pyx_t_2);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 6;
    return __pyx_r;
    __pyx_L22_resume_from_yield:;
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_2);
    __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1274, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1276
 *         yield '--- {} ----{}'.format(file2_range, lineterm)
 * 
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):             # <<<<<<<<<<<<<<
 *             for tag, _, _, j1, j2 in group:
 *                 if tag != 'delete':
*/
    __pyx_t_5 = __pyx_pf_4lxml_4html_8_difflib_12context_diff_3genexpr(NULL, __pyx_cur_scope->__pyx_v_group); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_13 = __Pyx_Generator_GetInlinedResult(__pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_13); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1276, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (__pyx_t_8) {

      /* "lxml/html/_difflib.py":1277
 * 
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):
 *             for tag, _, _, j1, j2 in group:             # <<<<<<<<<<<<<<
 *                 if tag != 'delete':
 *                     for line in b[j1:j2]:
*/
      if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_group)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_group)) {
        __pyx_t_13 = __pyx_cur_scope->__pyx_v_group; __Pyx_INCREF(__pyx_t_13);
        __pyx_t_11 = 0;
        __pyx_t_12 = NULL;
      } else {
        __pyx_t_11 = -1; __pyx_t_13 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_group); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1277, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_13); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1277, __pyx_L1_error)
      }
      for (;;) {
        if (likely(!__pyx_t_12)) {
          if (likely(PyList_CheckExact(__pyx_t_13))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_13);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1277, __pyx_L1_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_13, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_13);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1277, __pyx_L1_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_13, __pyx_t_11));
            #else
            __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_13, __pyx_t_11);
            #endif
            ++__pyx_t_11;
          }
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1277, __pyx_L1_error)
        } else {
          __pyx_t_5 = __pyx_t_12(__pyx_t_13);
          if (unlikely(!__pyx_t_5)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1277, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_5);
        if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
          PyObject* sequence = __pyx_t_5;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 5)) {
            if (size > 5) __Pyx_RaiseTooManyValuesError(5);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 1277, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_1);
            __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_3);
            __pyx_t_14 = PyTuple_GET_ITEM(sequence, 2);
            __Pyx_INCREF(__pyx_t_14);
            __pyx_t_9 = PyTuple_GET_ITEM(sequence, 3);
            __Pyx_INCREF(__pyx_t_9);
            __pyx_t_10 = PyTuple_GET_ITEM(sequence, 4);
            __Pyx_INCREF(__pyx_t_10);
          } else {
            __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1277, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_1);
            __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1277, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_3);
            __pyx_t_14 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1277, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_14);
            __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1277, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_9);
            __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1277, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_10);
          }
          #else
          {
            Py_ssize_t i;
            PyObject** temps[5] = {&__pyx_t_1,&__pyx_t_3,&__pyx_t_14,&__pyx_t_9,&__pyx_t_10};
            for (i=0; i < 5; i++) {
              PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 1277, __pyx_L1_error)
              __Pyx_GOTREF(item);
              *(temps[i]) = item;
            }
          }
          #endif
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        } else {
          Py_ssize_t index = -1;
          PyObject** temps[5] = {&__pyx_t_1,&__pyx_t_3,&__pyx_t_14,&__pyx_t_9,&__pyx_t_10};
          __pyx_t_15 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1277, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_15);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_t_16 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_15);
          for (index=0; index < 5; index++) {
            PyObject* item = __pyx_t_16(__pyx_t_15); if (unlikely(!item)) goto __pyx_L26_unpacking_failed;
            __Pyx_GOTREF(item);
            *(temps[index]) = item;
          }
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_16(__pyx_t_15), 5) < (0)) __PYX_ERR(0, 1277, __pyx_L1_error)
          __pyx_t_16 = NULL;
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          goto __pyx_L27_unpacking_done;
          __pyx_L26_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          __pyx_t_16 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 1277, __pyx_L1_error)
          __pyx_L27_unpacking_done:;
        }
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tag);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tag, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_1);
        __pyx_t_1 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_3);
        __pyx_t_3 = 0;
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v__);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v__, __pyx_t_14);
        __Pyx_GIVEREF(__pyx_t_14);
        __pyx_t_14 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j1);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j1, __pyx_t_9);
        __Pyx_GIVEREF(__pyx_t_9);
        __pyx_t_9 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_j2);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_j2, __pyx_t_10);
        __Pyx_GIVEREF(__pyx_t_10);
        __pyx_t_10 = 0;

        /* "lxml/html/_difflib.py":1278
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):
 *             for tag, _, _, j1, j2 in group:
 *                 if tag != 'delete':             # <<<<<<<<<<<<<<
 *                     for line in b[j1:j2]:
 *                         yield prefix[tag] + line
*/
        __pyx_t_8 = (__Pyx_PyUnicode_Equals(__pyx_cur_scope->__pyx_v_tag, __pyx_mstate_global->__pyx_n_u_delete, Py_NE)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 1278, __pyx_L1_error)
        if (__pyx_t_8) {

          /* "lxml/html/_difflib.py":1279
 *             for tag, _, _, j1, j2 in group:
 *                 if tag != 'delete':
 *                     for line in b[j1:j2]:             # <<<<<<<<<<<<<<
 *                         yield prefix[tag] + line
 * 
*/
          __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_b, 0, 0, &__pyx_cur_scope->__pyx_v_j1, &__pyx_cur_scope->__pyx_v_j2, NULL, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1279, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
            __pyx_t_10 = __pyx_t_5; __Pyx_INCREF(__pyx_t_10);
            __pyx_t_17 = 0;
            __pyx_t_18 = NULL;
          } else {
            __pyx_t_17 = -1; __pyx_t_10 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1279, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_10);
            __pyx_t_18 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1279, __pyx_L1_error)
          }
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          for (;;) {
            if (likely(!__pyx_t_18)) {
              if (likely(PyList_CheckExact(__pyx_t_10))) {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_10);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1279, __pyx_L1_error)
                  #endif
                  if (__pyx_t_17 >= __pyx_temp) break;
                }
                __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_10, __pyx_t_17, __Pyx_ReferenceSharing_OwnStrongReference);
                ++__pyx_t_17;
              } else {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_10);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1279, __pyx_L1_error)
                  #endif
                  if (__pyx_t_17 >= __pyx_temp) break;
                }
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_10, __pyx_t_17));
                #else
                __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_17);
                #endif
                ++__pyx_t_17;
              }
              if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1279, __pyx_L1_error)
            } else {
              __pyx_t_5 = __pyx_t_18(__pyx_t_10);
              if (unlikely(!__pyx_t_5)) {
                PyObject* exc_type = PyErr_Occurred();
                if (exc_type) {
                  if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1279, __pyx_L1_error)
                  PyErr_Clear();
                }
                break;
              }
            }
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_line);
            __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_line, __pyx_t_5);
            __Pyx_GIVEREF(__pyx_t_5);
            __pyx_t_5 = 0;

            /* "lxml/html/_difflib.py":1280
 *                 if tag != 'delete':
 *                     for line in b[j1:j2]:
 *                         yield prefix[tag] + line             # <<<<<<<<<<<<<<
 * 
 * def _check_types(a, b, *args):
*/
            __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_cur_scope->__pyx_v_prefix, __pyx_cur_scope->__pyx_v_tag); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1280, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_9 = PyNumber_Add(__pyx_t_5, __pyx_cur_scope->__pyx_v_line); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1280, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_9);
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __pyx_r = __pyx_t_9;
            __pyx_t_9 = 0;
            __Pyx_XGIVEREF(__pyx_t_2);
            __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
            __pyx_cur_scope->__pyx_t_1 = __pyx_t_6;
            __pyx_cur_scope->__pyx_t_2 = __pyx_t_7;
            __Pyx_XGIVEREF(__pyx_t_10);
            __pyx_cur_scope->__pyx_t_3 = __pyx_t_10;
            __pyx_cur_scope->__pyx_t_4 = __pyx_t_11;
            __pyx_cur_scope->__pyx_t_5 = __pyx_t_12;
            __Pyx_XGIVEREF(__pyx_t_13);
            __pyx_cur_scope->__pyx_t_6 = __pyx_t_13;
            __pyx_cur_scope->__pyx_t_7 = __pyx_t_17;
            __pyx_cur_scope->__pyx_t_8 = __pyx_t_18;
            __Pyx_XGIVEREF(__pyx_r);
            __Pyx_RefNannyFinishContext();
            __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
            /* return from generator, yielding value */
            __pyx_generator->resume_label = 7;
            return __pyx_r;
            __pyx_L31_resume_from_yield:;
            __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
            __pyx_cur_scope->__pyx_t_0 = 0;
            __Pyx_XGOTREF(__pyx_t_2);
            __pyx_t_6 = __pyx_cur_scope->__pyx_t_1;
            __pyx_t_7 = __pyx_cur_scope->__pyx_t_2;
            __pyx_t_10 = __pyx_cur_scope->__pyx_t_3;
            __pyx_cur_scope->__pyx_t_3 = 0;
            __Pyx_XGOTREF(__pyx_t_10);
            __pyx_t_11 = __pyx_cur_scope->__pyx_t_4;
            __pyx_t_12 = __pyx_cur_scope->__pyx_t_5;
            __pyx_t_13 = __pyx_cur_scope->__pyx_t_6;
            __pyx_cur_scope->__pyx_t_6 = 0;
            __Pyx_XGOTREF(__pyx_t_13);
            __pyx_t_17 = __pyx_cur_scope->__pyx_t_7;
            __pyx_t_18 = __pyx_cur_scope->__pyx_t_8;
            if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1280, __pyx_L1_error)

            /* "lxml/html/_difflib.py":1279
 *             for tag, _, _, j1, j2 in group:
 *                 if tag != 'delete':
 *                     for line in b[j1:j2]:             # <<<<<<<<<<<<<<
 *                         yield prefix[tag] + line
 * 
*/
          }
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

          /* "lxml/html/_difflib.py":1278
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):
 *             for tag, _, _, j1, j2 in group:
 *                 if tag != 'delete':             # <<<<<<<<<<<<<<
 *                     for line in b[j1:j2]:
 *                         yield prefix[tag] + line
*/
        }

        /* "lxml/html/_difflib.py":1277
 * 
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):
 *             for tag, _, _, j1, j2 in group:             # <<<<<<<<<<<<<<
 *                 if tag != 'delete':
 *                     for line in b[j1:j2]:
*/
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

      /* "lxml/html/_difflib.py":1276
 *         yield '--- {} ----{}'.format(file2_range, lineterm)
 * 
 *         if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):             # <<<<<<<<<<<<<<
 *             for tag, _, _, j1, j2 in group:
 *                 if tag != 'delete':
*/
    }

    /* "lxml/html/_difflib.py":1253
 *     prefix = dict(insert='+ ', delete='- ', replace='! ', equal='  ')
 *     started = False
 *     for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):             # <<<<<<<<<<<<<<
 *         if not started:
 *             started = True
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1206
 * 
 * # See http://www.unix.org/single_unix_specification/
 * def context_diff(a, b, fromfile='', tofile='',             # <<<<<<<<<<<<<<
 *                  fromfiledate='', tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("context_diff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1282
 *                         yield prefix[tag] + line
 * 
 * def _check_types(a, b, *args):             # <<<<<<<<<<<<<<
 *     # Checking types is weird, but the alternative is garbled output when
 *     # someone passes mixed bytes and str to {unified,context}_diff(). E.g.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_19_check_types(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_19_check_types = {"_check_types", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_19_check_types, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_19_check_types(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_args = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_check_types (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
  if (unlikely(!__pyx_v_args)) {
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_args);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_b,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1282, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        default:
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1282, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1282, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      const Py_ssize_t used_pos_args = (kwd_pos_args < 2) ? kwd_pos_args : 2;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, used_pos_args, __pyx_kwds_len, "_check_types", 0) < (0)) __PYX_ERR(0, 1282, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_check_types", 0, 2, 2, i); __PYX_ERR(0, 1282, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs < 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1282, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1282, __pyx_L3_error)
    }
    __pyx_v_a = values[0];
    __pyx_v_b = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_check_types", 0, 2, 2, __pyx_nargs); __PYX_ERR(0, 1282, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_AddTraceback("lxml.html._difflib._check_types", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_18_check_types(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_args);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_18_check_types(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_args) {
  PyObject *__pyx_v_arg = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9[5];
  size_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_check_types", 0);

  /* "lxml/html/_difflib.py":1289
 *     #   +++ b'newfile.txt'
 *     # because of how str.format() incorporates bytes objects.
 *     if a and not isinstance(a[0], str):             # <<<<<<<<<<<<<<
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(a[0]).__name__, a[0]))
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_a); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1289, __pyx_L1_error)
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_a, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyUnicode_Check(__pyx_t_3); 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  __pyx_t_1 = __pyx_t_4;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "lxml/html/_difflib.py":1290
 *     # because of how str.format() incorporates bytes objects.
 *     if a and not isinstance(a[0], str):
 *         raise TypeError('lines to compare must be str, not %s (%r)' %             # <<<<<<<<<<<<<<
 *                         (type(a[0]).__name__, a[0]))
 *     if b and not isinstance(b[0], str):
*/
    __pyx_t_5 = NULL;

    /* "lxml/html/_difflib.py":1291
 *     if a and not isinstance(a[0], str):
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(a[0]).__name__, a[0]))             # <<<<<<<<<<<<<<
 *     if b and not isinstance(b[0], str):
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
*/
    __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_a, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)Py_TYPE(__pyx_t_6)), __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_7), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_a, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_7), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_lines_to_compare_must_be_str_not;
    __pyx_t_9[1] = __pyx_t_6;
    __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u__25;
    __pyx_t_9[3] = __pyx_t_8;
    __pyx_t_9[4] = __pyx_mstate_global->__pyx_kp_u__26;

    /* "lxml/html/_difflib.py":1290
 *     # because of how str.format() incorporates bytes objects.
 *     if a and not isinstance(a[0], str):
 *         raise TypeError('lines to compare must be str, not %s (%r)' %             # <<<<<<<<<<<<<<
 *                         (type(a[0]).__name__, a[0]))
 *     if b and not isinstance(b[0], str):
*/
    __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_9, 5, 34 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8));
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_10 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_7};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1290, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1290, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1289
 *     #   +++ b'newfile.txt'
 *     # because of how str.format() incorporates bytes objects.
 *     if a and not isinstance(a[0], str):             # <<<<<<<<<<<<<<
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(a[0]).__name__, a[0]))
*/
  }

  /* "lxml/html/_difflib.py":1292
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(a[0]).__name__, a[0]))
 *     if b and not isinstance(b[0], str):             # <<<<<<<<<<<<<<
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(b[0]).__name__, b[0]))
*/
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_b); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 1292, __pyx_L1_error)
  if (__pyx_t_4) {
  } else {
    __pyx_t_1 = __pyx_t_4;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_b, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyUnicode_Check(__pyx_t_3); 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "lxml/html/_difflib.py":1293
 *                         (type(a[0]).__name__, a[0]))
 *     if b and not isinstance(b[0], str):
 *         raise TypeError('lines to compare must be str, not %s (%r)' %             # <<<<<<<<<<<<<<
 *                         (type(b[0]).__name__, b[0]))
 *     if isinstance(a, str):
*/
    __pyx_t_7 = NULL;

    /* "lxml/html/_difflib.py":1294
 *     if b and not isinstance(b[0], str):
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(b[0]).__name__, b[0]))             # <<<<<<<<<<<<<<
 *     if isinstance(a, str):
 *         raise TypeError('input must be a sequence of strings, not %s' %
*/
    __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_b, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)Py_TYPE(__pyx_t_5)), __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_8), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_b, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_8), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_lines_to_compare_must_be_str_not;
    __pyx_t_9[1] = __pyx_t_5;
    __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u__25;
    __pyx_t_9[3] = __pyx_t_6;
    __pyx_t_9[4] = __pyx_mstate_global->__pyx_kp_u__26;

    /* "lxml/html/_difflib.py":1293
 *                         (type(a[0]).__name__, a[0]))
 *     if b and not isinstance(b[0], str):
 *         raise TypeError('lines to compare must be str, not %s (%r)' %             # <<<<<<<<<<<<<<
 *                         (type(b[0]).__name__, b[0]))
 *     if isinstance(a, str):
*/
    __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_9, 5, 34 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6));
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_10 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1293, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1293, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1292
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(a[0]).__name__, a[0]))
 *     if b and not isinstance(b[0], str):             # <<<<<<<<<<<<<<
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(b[0]).__name__, b[0]))
*/
  }

  /* "lxml/html/_difflib.py":1295
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(b[0]).__name__, b[0]))
 *     if isinstance(a, str):             # <<<<<<<<<<<<<<
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(a).__name__)
*/
  __pyx_t_1 = PyUnicode_Check(__pyx_v_a); 
  if (unlikely(__pyx_t_1)) {

    /* "lxml/html/_difflib.py":1296
 *                         (type(b[0]).__name__, b[0]))
 *     if isinstance(a, str):
 *         raise TypeError('input must be a sequence of strings, not %s' %             # <<<<<<<<<<<<<<
 *                         type(a).__name__)
 *     if isinstance(b, str):
*/
    __pyx_t_8 = NULL;

    /* "lxml/html/_difflib.py":1297
 *     if isinstance(a, str):
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(a).__name__)             # <<<<<<<<<<<<<<
 *     if isinstance(b, str):
 *         raise TypeError('input must be a sequence of strings, not %s' %
*/
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)Py_TYPE(__pyx_v_a)), __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "lxml/html/_difflib.py":1296
 *                         (type(b[0]).__name__, b[0]))
 *     if isinstance(a, str):
 *         raise TypeError('input must be a sequence of strings, not %s' %             # <<<<<<<<<<<<<<
 *                         type(a).__name__)
 *     if isinstance(b, str):
*/
    __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_input_must_be_a_sequence_of_stri, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1296, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_10 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1296, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1296, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1295
 *         raise TypeError('lines to compare must be str, not %s (%r)' %
 *                         (type(b[0]).__name__, b[0]))
 *     if isinstance(a, str):             # <<<<<<<<<<<<<<
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(a).__name__)
*/
  }

  /* "lxml/html/_difflib.py":1298
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(a).__name__)
 *     if isinstance(b, str):             # <<<<<<<<<<<<<<
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(b).__name__)
*/
  __pyx_t_1 = PyUnicode_Check(__pyx_v_b); 
  if (unlikely(__pyx_t_1)) {

    /* "lxml/html/_difflib.py":1299
 *                         type(a).__name__)
 *     if isinstance(b, str):
 *         raise TypeError('input must be a sequence of strings, not %s' %             # <<<<<<<<<<<<<<
 *                         type(b).__name__)
 *     for arg in args:
*/
    __pyx_t_6 = NULL;

    /* "lxml/html/_difflib.py":1300
 *     if isinstance(b, str):
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(b).__name__)             # <<<<<<<<<<<<<<
 *     for arg in args:
 *         if not isinstance(arg, str):
*/
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)Py_TYPE(__pyx_v_b)), __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);

    /* "lxml/html/_difflib.py":1299
 *                         type(a).__name__)
 *     if isinstance(b, str):
 *         raise TypeError('input must be a sequence of strings, not %s' %             # <<<<<<<<<<<<<<
 *                         type(b).__name__)
 *     for arg in args:
*/
    __pyx_t_7 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_input_must_be_a_sequence_of_stri, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_10 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1299, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1299, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1298
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(a).__name__)
 *     if isinstance(b, str):             # <<<<<<<<<<<<<<
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(b).__name__)
*/
  }

  /* "lxml/html/_difflib.py":1301
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(b).__name__)
 *     for arg in args:             # <<<<<<<<<<<<<<
 *         if not isinstance(arg, str):
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
*/
  __pyx_t_3 = __pyx_v_args; __Pyx_INCREF(__pyx_t_3);
  __pyx_t_11 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1301, __pyx_L1_error)
      #endif
      if (__pyx_t_11 >= __pyx_temp) break;
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_7 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_11));
    #else
    __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_11);
    #endif
    ++__pyx_t_11;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_XDECREF_SET(__pyx_v_arg, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":1302
 *                         type(b).__name__)
 *     for arg in args:
 *         if not isinstance(arg, str):             # <<<<<<<<<<<<<<
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
 * 
*/
    __pyx_t_1 = PyUnicode_Check(__pyx_v_arg); 
    __pyx_t_2 = (!__pyx_t_1);
    if (unlikely(__pyx_t_2)) {

      /* "lxml/html/_difflib.py":1303
 *     for arg in args:
 *         if not isinstance(arg, str):
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))             # <<<<<<<<<<<<<<
 * 
 * def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'',
*/
      __pyx_t_6 = NULL;
      __pyx_t_8 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_arg), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1303, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_all_arguments_must_be_str_not, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1303, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_10 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1303, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_Raise(__pyx_t_7, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __PYX_ERR(0, 1303, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1302
 *                         type(b).__name__)
 *     for arg in args:
 *         if not isinstance(arg, str):             # <<<<<<<<<<<<<<
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
 * 
*/
    }

    /* "lxml/html/_difflib.py":1301
 *         raise TypeError('input must be a sequence of strings, not %s' %
 *                         type(b).__name__)
 *     for arg in args:             # <<<<<<<<<<<<<<
 *         if not isinstance(arg, str):
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":1282
 *                         yield prefix[tag] + line
 * 
 * def _check_types(a, b, *args):             # <<<<<<<<<<<<<<
 *     # Checking types is weird, but the alternative is garbled output when
 *     # someone passes mixed bytes and str to {unified,context}_diff(). E.g.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.html._difflib._check_types", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arg);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_22generator9(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1305
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
 * 
 * def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'',             # <<<<<<<<<<<<<<
 *                fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n'):
 *     r"""
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_21diff_bytes(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_20diff_bytes, "\n    Compare `a` and `b`, two sequences of lines represented as bytes rather\n    than str. This is a wrapper for `dfunc`, which is typically either\n    unified_diff() or context_diff(). Inputs are losslessly converted to\n    strings so that `dfunc` only has to worry about strings, and encoded\n    back to bytes on return. This is necessary to compare files with\n    unknown or inconsistent encoding. All other inputs (except `n`) must be\n    bytes rather than str.\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_21diff_bytes = {"diff_bytes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_21diff_bytes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_20diff_bytes};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_21diff_bytes(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_dfunc = 0;
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_fromfile = 0;
  PyObject *__pyx_v_tofile = 0;
  PyObject *__pyx_v_fromfiledate = 0;
  PyObject *__pyx_v_tofiledate = 0;
  PyObject *__pyx_v_n = 0;
  PyObject *__pyx_v_lineterm = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("diff_bytes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_dfunc,&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_b,&__pyx_mstate_global->__pyx_n_u_fromfile,&__pyx_mstate_global->__pyx_n_u_tofile,&__pyx_mstate_global->__pyx_n_u_fromfiledate,&__pyx_mstate_global->__pyx_n_u_tofiledate,&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_lineterm,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1305, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "diff_bytes", 0) < (0)) __PYX_ERR(0, 1305, __pyx_L3_error)
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__2)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__2)));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_3)));
      if (!values[8]) values[8] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__10)));
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("diff_bytes", 0, 3, 9, i); __PYX_ERR(0, 1305, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1305, __pyx_L3_error)
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1305, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1305, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__2)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__2)));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_3)));
      if (!values[8]) values[8] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_b__10)));
    }
    __pyx_v_dfunc = values[0];
    __pyx_v_a = values[1];
    __pyx_v_b = values[2];
    __pyx_v_fromfile = values[3];
    __pyx_v_tofile = values[4];
    __pyx_v_fromfiledate = values[5];
    __pyx_v_tofiledate = values[6];
    __pyx_v_n = values[7];
    __pyx_v_lineterm = values[8];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("diff_bytes", 0, 3, 9, __pyx_nargs); __PYX_ERR(0, 1305, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.diff_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_20diff_bytes(__pyx_self, __pyx_v_dfunc, __pyx_v_a, __pyx_v_b, __pyx_v_fromfile, __pyx_v_tofile, __pyx_v_fromfiledate, __pyx_v_tofiledate, __pyx_v_n, __pyx_v_lineterm);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_20diff_bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dfunc, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_fromfile, PyObject *__pyx_v_tofile, PyObject *__pyx_v_fromfiledate, PyObject *__pyx_v_tofiledate, PyObject *__pyx_v_n, PyObject *__pyx_v_lineterm) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("diff_bytes", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1305, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_dfunc = __pyx_v_dfunc;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_dfunc);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_dfunc);
  __pyx_cur_scope->__pyx_v_a = __pyx_v_a;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_a);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_a);
  __pyx_cur_scope->__pyx_v_b = __pyx_v_b;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_b);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_b);
  __pyx_cur_scope->__pyx_v_fromfile = __pyx_v_fromfile;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromfile);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromfile);
  __pyx_cur_scope->__pyx_v_tofile = __pyx_v_tofile;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tofile);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tofile);
  __pyx_cur_scope->__pyx_v_fromfiledate = __pyx_v_fromfiledate;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromfiledate);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromfiledate);
  __pyx_cur_scope->__pyx_v_tofiledate = __pyx_v_tofiledate;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tofiledate);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tofiledate);
  __pyx_cur_scope->__pyx_v_n = __pyx_v_n;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_n);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_n);
  __pyx_cur_scope->__pyx_v_lineterm = __pyx_v_lineterm;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lineterm);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lineterm);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_22generator9, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_diff_bytes, __pyx_mstate_global->__pyx_n_u_diff_bytes, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1305, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.diff_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1316
 *     bytes rather than str.
 *     """
 *     def decode(s):             # <<<<<<<<<<<<<<
 *         try:
 *             return s.decode('ascii', 'surrogateescape')
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_10diff_bytes_1decode(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_10diff_bytes_1decode = {"decode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_10diff_bytes_1decode, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_10diff_bytes_1decode(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_s = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("decode (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1316, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1316, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "decode", 0) < (0)) __PYX_ERR(0, 1316, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("decode", 1, 1, 1, i); __PYX_ERR(0, 1316, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1316, __pyx_L3_error)
    }
    __pyx_v_s = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("decode", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1316, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.diff_bytes.decode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_10diff_bytes_decode(__pyx_self, __pyx_v_s);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_10diff_bytes_decode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_v_err = NULL;
  PyObject *__pyx_v_msg = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10[5];
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  int __pyx_t_13;
  char const *__pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("decode", 0);

  /* "lxml/html/_difflib.py":1317
 *     """
 *     def decode(s):
 *         try:             # <<<<<<<<<<<<<<
 *             return s.decode('ascii', 'surrogateescape')
 *         except AttributeError as err:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "lxml/html/_difflib.py":1318
 *     def decode(s):
 *         try:
 *             return s.decode('ascii', 'surrogateescape')             # <<<<<<<<<<<<<<
 *         except AttributeError as err:
 *             msg = ('all arguments must be bytes, not %s (%r)' %
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_s, __pyx_mstate_global->__pyx_n_u_decode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1318, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[1], NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1318, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      goto __pyx_L7_try_return;

      /* "lxml/html/_difflib.py":1317
 *     """
 *     def decode(s):
 *         try:             # <<<<<<<<<<<<<<
 *             return s.decode('ascii', 'surrogateescape')
 *         except AttributeError as err:
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":1319
 *         try:
 *             return s.decode('ascii', 'surrogateescape')
 *         except AttributeError as err:             # <<<<<<<<<<<<<<
 *             msg = ('all arguments must be bytes, not %s (%r)' %
 *                    (type(s).__name__, s))
*/
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_AttributeError))));
    if (__pyx_t_6) {
      __Pyx_AddTraceback("lxml.html._difflib.diff_bytes.decode", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_7) < 0) __PYX_ERR(0, 1319, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_v_err = __pyx_t_4;
      /*try:*/ {

        /* "lxml/html/_difflib.py":1321
 *         except AttributeError as err:
 *             msg = ('all arguments must be bytes, not %s (%r)' %
 *                    (type(s).__name__, s))             # <<<<<<<<<<<<<<
 *             raise TypeError(msg) from err
 *     a = list(map(decode, a))
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)Py_TYPE(__pyx_v_s)), __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1321, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_8), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1321, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_s), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1321, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_10[0] = __pyx_mstate_global->__pyx_kp_u_all_arguments_must_be_bytes_not;
        __pyx_t_10[1] = __pyx_t_9;
        __pyx_t_10[2] = __pyx_mstate_global->__pyx_kp_u__25;
        __pyx_t_10[3] = __pyx_t_8;
        __pyx_t_10[4] = __pyx_mstate_global->__pyx_kp_u__26;

        /* "lxml/html/_difflib.py":1320
 *             return s.decode('ascii', 'surrogateescape')
 *         except AttributeError as err:
 *             msg = ('all arguments must be bytes, not %s (%r)' %             # <<<<<<<<<<<<<<
 *                    (type(s).__name__, s))
 *             raise TypeError(msg) from err
*/
        __pyx_t_11 = __Pyx_PyUnicode_Join(__pyx_t_10, 5, 33 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8));
        if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1320, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_v_msg = ((PyObject*)__pyx_t_11);
        __pyx_t_11 = 0;

        /* "lxml/html/_difflib.py":1322
 *             msg = ('all arguments must be bytes, not %s (%r)' %
 *                    (type(s).__name__, s))
 *             raise TypeError(msg) from err             # <<<<<<<<<<<<<<
 *     a = list(map(decode, a))
 *     b = list(map(decode, b))
*/
        __pyx_t_8 = NULL;
        __pyx_t_12 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_msg};
          __pyx_t_11 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1322, __pyx_L14_error)
          __Pyx_GOTREF(__pyx_t_11);
        }
        __Pyx_Raise(__pyx_t_11, 0, 0, __pyx_v_err);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __PYX_ERR(0, 1322, __pyx_L14_error)
      }

      /* "lxml/html/_difflib.py":1319
 *         try:
 *             return s.decode('ascii', 'surrogateescape')
 *         except AttributeError as err:             # <<<<<<<<<<<<<<
 *             msg = ('all arguments must be bytes, not %s (%r)' %
 *                    (type(s).__name__, s))
*/
      /*finally:*/ {
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
           __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
          if ( unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_15);
          __Pyx_XGOTREF(__pyx_t_16);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __Pyx_XGOTREF(__pyx_t_20);
          __pyx_t_6 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0;
          }
          __Pyx_XGIVEREF(__pyx_t_18);
          __Pyx_XGIVEREF(__pyx_t_19);
          __Pyx_XGIVEREF(__pyx_t_20);
          __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
          __Pyx_XGIVEREF(__pyx_t_15);
          __Pyx_XGIVEREF(__pyx_t_16);
          __Pyx_XGIVEREF(__pyx_t_17);
          __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17);
          __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
          __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14;
          goto __pyx_L5_except_error;
        }
      }
    }
    goto __pyx_L5_except_error;

    /* "lxml/html/_difflib.py":1317
 *     """
 *     def decode(s):
 *         try:             # <<<<<<<<<<<<<<
 *             return s.decode('ascii', 'surrogateescape')
 *         except AttributeError as err:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "lxml/html/_difflib.py":1316
 *     bytes rather than str.
 *     """
 *     def decode(s):             # <<<<<<<<<<<<<<
 *         try:
 *             return s.decode('ascii', 'surrogateescape')
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("lxml.html._difflib.diff_bytes.decode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_err);
  __Pyx_XDECREF(__pyx_v_msg);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1305
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
 * 
 * def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'',             # <<<<<<<<<<<<<<
 *                fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n'):
 *     r"""
*/

static PyObject *__pyx_gb_4lxml_4html_8_difflib_22generator9(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("diff_bytes", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1305, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1316
 *     bytes rather than str.
 *     """
 *     def decode(s):             # <<<<<<<<<<<<<<
 *         try:
 *             return s.decode('ascii', 'surrogateescape')
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_10diff_bytes_1decode, 0, __pyx_mstate_global->__pyx_n_u_diff_bytes_locals_decode, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[15])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_decode = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1323
 *                    (type(s).__name__, s))
 *             raise TypeError(msg) from err
 *     a = list(map(decode, a))             # <<<<<<<<<<<<<<
 *     b = list(map(decode, b))
 *     fromfile = decode(fromfile)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_cur_scope->__pyx_v_decode, __pyx_cur_scope->__pyx_v_a};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_map, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1323, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PySequence_ListKeepNew(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_a);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_a, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1324
 *             raise TypeError(msg) from err
 *     a = list(map(decode, a))
 *     b = list(map(decode, b))             # <<<<<<<<<<<<<<
 *     fromfile = decode(fromfile)
 *     tofile = decode(tofile)
*/
  __pyx_t_1 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_cur_scope->__pyx_v_decode, __pyx_cur_scope->__pyx_v_b};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_map, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1324, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_1 = __Pyx_PySequence_ListKeepNew(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_b);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_b, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1325
 *     a = list(map(decode, a))
 *     b = list(map(decode, b))
 *     fromfile = decode(fromfile)             # <<<<<<<<<<<<<<
 *     tofile = decode(tofile)
 *     fromfiledate = decode(fromfiledate)
*/
  __pyx_t_1 = __pyx_pf_4lxml_4html_8_difflib_10diff_bytes_decode(__pyx_cur_scope->__pyx_v_decode, __pyx_cur_scope->__pyx_v_fromfile); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_fromfile);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_fromfile, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1326
 *     b = list(map(decode, b))
 *     fromfile = decode(fromfile)
 *     tofile = decode(tofile)             # <<<<<<<<<<<<<<
 *     fromfiledate = decode(fromfiledate)
 *     tofiledate = decode(tofiledate)
*/
  __pyx_t_1 = __pyx_pf_4lxml_4html_8_difflib_10diff_bytes_decode(__pyx_cur_scope->__pyx_v_decode, __pyx_cur_scope->__pyx_v_tofile); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_tofile);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_tofile, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1327
 *     fromfile = decode(fromfile)
 *     tofile = decode(tofile)
 *     fromfiledate = decode(fromfiledate)             # <<<<<<<<<<<<<<
 *     tofiledate = decode(tofiledate)
 *     lineterm = decode(lineterm)
*/
  __pyx_t_1 = __pyx_pf_4lxml_4html_8_difflib_10diff_bytes_decode(__pyx_cur_scope->__pyx_v_decode, __pyx_cur_scope->__pyx_v_fromfiledate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1327, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_fromfiledate);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_fromfiledate, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1328
 *     tofile = decode(tofile)
 *     fromfiledate = decode(fromfiledate)
 *     tofiledate = decode(tofiledate)             # <<<<<<<<<<<<<<
 *     lineterm = decode(lineterm)
 * 
*/
  __pyx_t_1 = __pyx_pf_4lxml_4html_8_difflib_10diff_bytes_decode(__pyx_cur_scope->__pyx_v_decode, __pyx_cur_scope->__pyx_v_tofiledate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_tofiledate);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_tofiledate, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1329
 *     fromfiledate = decode(fromfiledate)
 *     tofiledate = decode(tofiledate)
 *     lineterm = decode(lineterm)             # <<<<<<<<<<<<<<
 * 
 *     lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)
*/
  __pyx_t_1 = __pyx_pf_4lxml_4html_8_difflib_10diff_bytes_decode(__pyx_cur_scope->__pyx_v_decode, __pyx_cur_scope->__pyx_v_lineterm); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_lineterm);
  __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_lineterm, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1331
 *     lineterm = decode(lineterm)
 * 
 *     lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)             # <<<<<<<<<<<<<<
 *     for line in lines:
 *         yield line.encode('ascii', 'surrogateescape')
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_dfunc);
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_dfunc; 
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[9] = {__pyx_t_2, __pyx_cur_scope->__pyx_v_a, __pyx_cur_scope->__pyx_v_b, __pyx_cur_scope->__pyx_v_fromfile, __pyx_cur_scope->__pyx_v_tofile, __pyx_cur_scope->__pyx_v_fromfiledate, __pyx_cur_scope->__pyx_v_tofiledate, __pyx_cur_scope->__pyx_v_n, __pyx_cur_scope->__pyx_v_lineterm};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_3, (9-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1331, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_lines = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1332
 * 
 *     lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)
 *     for line in lines:             # <<<<<<<<<<<<<<
 *         yield line.encode('ascii', 'surrogateescape')
 * 
*/
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_lines)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_lines)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_v_lines; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_5 = 0;
    __pyx_t_6 = NULL;
  } else {
    __pyx_t_5 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_lines); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1332, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1332, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_6)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1332, __pyx_L1_error)
          #endif
          if (__pyx_t_5 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_5, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_5;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1332, __pyx_L1_error)
          #endif
          if (__pyx_t_5 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_5));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_5);
        #endif
        ++__pyx_t_5;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1332, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_6(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1332, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_line);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_line, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/html/_difflib.py":1333
 *     lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)
 *     for line in lines:
 *         yield line.encode('ascii', 'surrogateescape')             # <<<<<<<<<<<<<<
 * 
 * def ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK):
*/
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_line, __pyx_mstate_global->__pyx_n_u_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[1], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_5;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_6;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_6 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1333, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1332
 * 
 *     lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)
 *     for line in lines:             # <<<<<<<<<<<<<<
 *         yield line.encode('ascii', 'surrogateescape')
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1305
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
 * 
 * def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'',             # <<<<<<<<<<<<<<
 *                fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n'):
 *     r"""
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("diff_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1335
 *         yield line.encode('ascii', 'surrogateescape')
 * 
 * def ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK):             # <<<<<<<<<<<<<<
 *     r"""
 *     Compare `a` and `b` (lists of strings); return a `Differ`-style delta.
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_33__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, Py_None) != (0)) __PYX_ERR(0, 1335, __pyx_L1_error);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(0, 1335, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1335, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 1335, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_24ndiff(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_23ndiff, "\n    Compare `a` and `b` (lists of strings); return a `Differ`-style delta.\n\n    Optional keyword parameters `linejunk` and `charjunk` are for filter\n    functions, or can be None:\n\n    - linejunk: A function that should accept a single string argument and\n      return true iff the string is junk.  The default is None, and is\n      recommended; the underlying SequenceMatcher class has an adaptive\n      notion of \"noise\" lines.\n\n    - charjunk: A function that accepts a character (string of length\n      1), and returns true iff the character is junk. The default is\n      the module-level function IS_CHARACTER_JUNK, which filters out\n      whitespace characters (a blank or tab; note: it's a bad idea to\n      include newline in this!).\n\n    Tools/scripts/ndiff.py is a command-line front-end to this function.\n\n    Example:\n\n    >>> diff = ndiff('one\\ntwo\\nthree\\n'.splitlines(keepends=True),\n    ...              'ore\\ntree\\nemu\\n'.splitlines(keepends=True))\n    >>> print(''.join(diff), end=\"\")\n    - one\n    ?  ^\n    + ore\n    ?  ^\n    - two\n    - three\n    ?  -\n    + tree\n    + emu\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_24ndiff = {"ndiff", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_24ndiff, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_23ndiff};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_24ndiff(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_a = 0;
  PyObject *__pyx_v_b = 0;
  PyObject *__pyx_v_linejunk = 0;
  PyObject *__pyx_v_charjunk = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ndiff (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_a,&__pyx_mstate_global->__pyx_n_u_b,&__pyx_mstate_global->__pyx_n_u_linejunk,&__pyx_mstate_global->__pyx_n_u_charjunk,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1335, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1335, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1335, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1335, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1335, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ndiff", 0) < (0)) __PYX_ERR(0, 1335, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ndiff", 0, 2, 4, i); __PYX_ERR(0, 1335, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1335, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1335, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1335, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1335, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_a = values[0];
    __pyx_v_b = values[1];
    __pyx_v_linejunk = values[2];
    __pyx_v_charjunk = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ndiff", 0, 2, 4, __pyx_nargs); __PYX_ERR(0, 1335, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.ndiff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_23ndiff(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_linejunk, __pyx_v_charjunk);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_23ndiff(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_linejunk, PyObject *__pyx_v_charjunk) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ndiff", 0);

  /* "lxml/html/_difflib.py":1370
 *     + emu
 *     """
 *     return Differ(linejunk, charjunk).compare(a, b)             # <<<<<<<<<<<<<<
 * 
 * def _mdiff(fromlines, tolines, context=None, linejunk=None,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Differ); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_linejunk, __pyx_v_charjunk};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_a, __pyx_v_b};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_compare, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1335
 *         yield line.encode('ascii', 'surrogateescape')
 * 
 * def ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK):             # <<<<<<<<<<<<<<
 *     r"""
 *     Compare `a` and `b` (lists of strings); return a `Differ`-style delta.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.html._difflib.ndiff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_27generator10(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1372
 *     return Differ(linejunk, charjunk).compare(a, b)
 * 
 * def _mdiff(fromlines, tolines, context=None, linejunk=None,             # <<<<<<<<<<<<<<
 *            charjunk=IS_CHARACTER_JUNK):
 *     r"""Returns generator yielding marked up from/to side by side differences.
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_35__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, Py_None) != (0)) __PYX_ERR(0, 1372, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 1372, __pyx_L1_error);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(0, 1372, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1372, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 1372, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_26_mdiff(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_25_mdiff, "Returns generator yielding marked up from/to side by side differences.\n\n    Arguments:\n    fromlines -- list of text lines to compared to tolines\n    tolines -- list of text lines to be compared to fromlines\n    context -- number of context lines to display on each side of difference,\n               if None, all from/to text lines will be generated.\n    linejunk -- passed on to ndiff (see ndiff documentation)\n    charjunk -- passed on to ndiff (see ndiff documentation)\n\n    This function returns an iterator which returns a tuple:\n    (from line tuple, to line tuple, boolean flag)\n\n    from/to line tuple -- (line num, line text)\n        line num -- integer or None (to indicate a context separation)\n        line text -- original line text with following markers inserted:\n            '\\0+' -- marks start of added text\n            '\\0-' -- marks start of deleted text\n            '\\0^' -- marks start of changed text\n            '\\1' -- marks end of added/deleted/changed text\n\n    boolean flag -- None indicates context separation, True indicates\n        either \"from\" or \"to\" line contains a change, otherwise False.\n\n    This function/iterator was originally developed to generate side by side\n    file difference for making HTML pages (see HtmlDiff class for example\n    usage).\n\n    Note, this function utilizes the ndiff function to generate the side by\n    side difference markup.  Optional ndiff arguments may be passed to this\n    function and they in turn will be passed to ndiff.\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_26_mdiff = {"_mdiff", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_26_mdiff, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_25_mdiff};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_26_mdiff(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_fromlines = 0;
  PyObject *__pyx_v_tolines = 0;
  PyObject *__pyx_v_context = 0;
  PyObject *__pyx_v_linejunk = 0;
  PyObject *__pyx_v_charjunk = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_mdiff (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_fromlines,&__pyx_mstate_global->__pyx_n_u_tolines,&__pyx_mstate_global->__pyx_n_u_context,&__pyx_mstate_global->__pyx_n_u_linejunk,&__pyx_mstate_global->__pyx_n_u_charjunk,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1372, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1372, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1372, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1372, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1372, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1372, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_mdiff", 0) < (0)) __PYX_ERR(0, 1372, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[4]) values[4] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_mdiff", 0, 2, 5, i); __PYX_ERR(0, 1372, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1372, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1372, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1372, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1372, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1372, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[4]) values[4] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_fromlines = values[0];
    __pyx_v_tolines = values[1];
    __pyx_v_context = values[2];
    __pyx_v_linejunk = values[3];
    __pyx_v_charjunk = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_mdiff", 0, 2, 5, __pyx_nargs); __PYX_ERR(0, 1372, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib._mdiff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_25_mdiff(__pyx_self, __pyx_v_fromlines, __pyx_v_tolines, __pyx_v_context, __pyx_v_linejunk, __pyx_v_charjunk);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_25_mdiff(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fromlines, PyObject *__pyx_v_tolines, PyObject *__pyx_v_context, PyObject *__pyx_v_linejunk, PyObject *__pyx_v_charjunk) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *__pyx_cur_scope;
  PyObject *__pyx_gb_4lxml_4html_8_difflib_6_mdiff_4generator17 = 0;
  PyObject *__pyx_gb_4lxml_4html_8_difflib_6_mdiff_7generator18 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_mdiff", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1372, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_fromlines = __pyx_v_fromlines;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromlines);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromlines);
  __pyx_cur_scope->__pyx_v_tolines = __pyx_v_tolines;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tolines);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tolines);
  __pyx_cur_scope->__pyx_v_context = __pyx_v_context;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_context);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_context);
  __pyx_cur_scope->__pyx_v_linejunk = __pyx_v_linejunk;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_linejunk);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_linejunk);
  __pyx_cur_scope->__pyx_v_charjunk = __pyx_v_charjunk;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_charjunk);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_charjunk);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_27generator10, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_mdiff, __pyx_mstate_global->__pyx_n_u_mdiff, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1372, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib._mdiff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XDECREF(__pyx_gb_4lxml_4html_8_difflib_6_mdiff_4generator17);
  __Pyx_XDECREF(__pyx_gb_4lxml_4html_8_difflib_6_mdiff_7generator18);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1414
 *     diff_lines_iterator = ndiff(fromlines,tolines,linejunk,charjunk)
 * 
 *     def _make_line(lines, format_key, side, num_lines=[0,0]):             # <<<<<<<<<<<<<<
 *         """Returns line of text with user's change markup and line formatting.
 * 
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_39__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(0, 1414, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1414, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 1414, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6_mdiff_1_make_line(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6_mdiff__make_line, "Returns line of text with user's change markup and line formatting.\n\n        lines -- list of lines from the ndiff generator to produce a line of\n                 text from.  When producing the line of text to return, the\n                 lines used are removed from this list.\n        format_key -- '+' return first line in list with \"add\" markup around\n                          the entire line.\n                      '-' return first line in list with \"delete\" markup around\n                          the entire line.\n                      '?' return first line in list with add/delete/change\n                          intraline markup (indices obtained from second line)\n                      None return first line in list with no markup\n        side -- indice into the num_lines list (0=from,1=to)\n        num_lines -- from/to current line number.  This is NOT intended to be a\n                     passed parameter.  It is present as a keyword argument to\n                     maintain memory of the current line numbers between calls\n                     of this function.\n\n        Note, this function is purposefully not defined at the module scope so\n        that data it needs from its parent function (within whose context it\n        is defined) does not need to be of module scope.\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6_mdiff_1_make_line = {"_make_line", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6_mdiff_1_make_line, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_6_mdiff__make_line};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6_mdiff_1_make_line(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_lines = 0;
  PyObject *__pyx_v_format_key = 0;
  PyObject *__pyx_v_side = 0;
  PyObject *__pyx_v_num_lines = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_make_line (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_lines,&__pyx_mstate_global->__pyx_n_u_format_key,&__pyx_mstate_global->__pyx_n_u_side,&__pyx_mstate_global->__pyx_n_u_num_lines,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1414, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1414, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1414, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1414, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1414, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_make_line", 0) < (0)) __PYX_ERR(0, 1414, __pyx_L3_error)
      if (!values[3]) values[3] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_make_line", 0, 3, 4, i); __PYX_ERR(0, 1414, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1414, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1414, __pyx_L3_error)
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1414, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1414, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[3]) values[3] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_lines = values[0];
    __pyx_v_format_key = values[1];
    __pyx_v_side = values[2];
    __pyx_v_num_lines = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_make_line", 0, 3, 4, __pyx_nargs); __PYX_ERR(0, 1414, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib._mdiff._make_line", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6_mdiff__make_line(__pyx_self, __pyx_v_lines, __pyx_v_format_key, __pyx_v_side, __pyx_v_num_lines);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1447
 *             # find intraline changes (store change type and indices in tuples)
 *             sub_info = []
 *             def record_sub_info(match_object,sub_info=sub_info):             # <<<<<<<<<<<<<<
 *                 sub_info.append([match_object.group(1)[0],match_object.span()])
 *                 return match_object.group(1)
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_41__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(0, 1447, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1447, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 1447, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6_mdiff_10_make_line_1record_sub_info(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6_mdiff_10_make_line_1record_sub_info = {"record_sub_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_6_mdiff_10_make_line_1record_sub_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6_mdiff_10_make_line_1record_sub_info(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_match_object = 0;
  PyObject *__pyx_v_sub_info = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("record_sub_info (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_match_object,&__pyx_mstate_global->__pyx_n_u_sub_info,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1447, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1447, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1447, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "record_sub_info", 0) < (0)) __PYX_ERR(0, 1447, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("record_sub_info", 0, 1, 2, i); __PYX_ERR(0, 1447, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1447, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1447, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_match_object = values[0];
    __pyx_v_sub_info = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("record_sub_info", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 1447, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib._mdiff._make_line.record_sub_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6_mdiff_10_make_line_record_sub_info(__pyx_self, __pyx_v_match_object, __pyx_v_sub_info);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6_mdiff_10_make_line_record_sub_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_match_object, PyObject *__pyx_v_sub_info) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("record_sub_info", 0);

  /* "lxml/html/_difflib.py":1448
 *             sub_info = []
 *             def record_sub_info(match_object,sub_info=sub_info):
 *                 sub_info.append([match_object.group(1)[0],match_object.span()])             # <<<<<<<<<<<<<<
 *                 return match_object.group(1)
 *             change_re.sub(record_sub_info,markers)
*/
  __pyx_t_2 = __pyx_v_match_object;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_int_1};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1448, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_v_match_object;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_span, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1448, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = PyList_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 1448, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 1448, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_1 = 0;
  __pyx_t_5 = __Pyx_PyObject_Append(__pyx_v_sub_info, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1448, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "lxml/html/_difflib.py":1449
 *             def record_sub_info(match_object,sub_info=sub_info):
 *                 sub_info.append([match_object.group(1)[0],match_object.span()])
 *                 return match_object.group(1)             # <<<<<<<<<<<<<<
 *             change_re.sub(record_sub_info,markers)
 *             # process each tuple inserting our special marks that won't be
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_match_object;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_int_1};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1449, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1447
 *             # find intraline changes (store change type and indices in tuples)
 *             sub_info = []
 *             def record_sub_info(match_object,sub_info=sub_info):             # <<<<<<<<<<<<<<
 *                 sub_info.append([match_object.group(1)[0],match_object.span()])
 *                 return match_object.group(1)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.html._difflib._mdiff._make_line.record_sub_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1414
 *     diff_lines_iterator = ndiff(fromlines,tolines,linejunk,charjunk)
 * 
 *     def _make_line(lines, format_key, side, num_lines=[0,0]):             # <<<<<<<<<<<<<<
 *         """Returns line of text with user's change markup and line formatting.
 * 
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6_mdiff__make_line(PyObject *__pyx_self, PyObject *__pyx_v_lines, PyObject *__pyx_v_format_key, PyObject *__pyx_v_side, PyObject *__pyx_v_num_lines) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *__pyx_cur_scope;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *__pyx_outer_scope;
  PyObject *__pyx_v_text = NULL;
  PyObject *__pyx_v_markers = NULL;
  PyObject *__pyx_v_sub_info = NULL;
  PyObject *__pyx_v_record_sub_info = 0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_begin = NULL;
  PyObject *__pyx_v_end = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_make_line", 0);
  __pyx_outer_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *) __Pyx_CyFunction_GetClosure(__pyx_self);
  __pyx_cur_scope = __pyx_outer_scope;

  /* "lxml/html/_difflib.py":1437
 *         is defined) does not need to be of module scope.
 *         """
 *         num_lines[side] += 1             # <<<<<<<<<<<<<<
 *         # Handle case where no user markup is to be added, just return line of
 *         # text with user's line format to allow for usage of the line number.
*/
  __Pyx_INCREF(__pyx_v_side);
  __pyx_t_1 = __pyx_v_side;
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_num_lines, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely((PyObject_SetItem(__pyx_v_num_lines, __pyx_t_1, __pyx_t_3) < 0))) __PYX_ERR(0, 1437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1440
 *         # Handle case where no user markup is to be added, just return line of
 *         # text with user's line format to allow for usage of the line number.
 *         if format_key is None:             # <<<<<<<<<<<<<<
 *             return (num_lines[side],lines.pop(0)[2:])
 *         # Handle case of intraline changes
*/
  __pyx_t_4 = (__pyx_v_format_key == Py_None);
  if (__pyx_t_4) {

    /* "lxml/html/_difflib.py":1441
 *         # text with user's line format to allow for usage of the line number.
 *         if format_key is None:
 *             return (num_lines[side],lines.pop(0)[2:])             # <<<<<<<<<<<<<<
 *         # Handle case of intraline changes
 *         if format_key == '?':
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_num_lines, __pyx_v_side); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyObject_PopIndex(__pyx_v_lines, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_t_3, 2, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[0], 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1441, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2) != (0)) __PYX_ERR(0, 1441, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":1440
 *         # Handle case where no user markup is to be added, just return line of
 *         # text with user's line format to allow for usage of the line number.
 *         if format_key is None:             # <<<<<<<<<<<<<<
 *             return (num_lines[side],lines.pop(0)[2:])
 *         # Handle case of intraline changes
*/
  }

  /* "lxml/html/_difflib.py":1443
 *             return (num_lines[side],lines.pop(0)[2:])
 *         # Handle case of intraline changes
 *         if format_key == '?':             # <<<<<<<<<<<<<<
 *             text, markers = lines.pop(0), lines.pop(0)
 *             # find intraline changes (store change type and indices in tuples)
*/
  __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_format_key, __pyx_mstate_global->__pyx_kp_u__27, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 1443, __pyx_L1_error)
  if (__pyx_t_4) {

    /* "lxml/html/_difflib.py":1444
 *         # Handle case of intraline changes
 *         if format_key == '?':
 *             text, markers = lines.pop(0), lines.pop(0)             # <<<<<<<<<<<<<<
 *             # find intraline changes (store change type and indices in tuples)
 *             sub_info = []
*/
    __pyx_t_3 = __Pyx_PyObject_PopIndex(__pyx_v_lines, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_PopIndex(__pyx_v_lines, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_text = __pyx_t_3;
    __pyx_t_3 = 0;
    __pyx_v_markers = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1446
 *             text, markers = lines.pop(0), lines.pop(0)
 *             # find intraline changes (store change type and indices in tuples)
 *             sub_info = []             # <<<<<<<<<<<<<<
 *             def record_sub_info(match_object,sub_info=sub_info):
 *                 sub_info.append([match_object.group(1)[0],match_object.span()])
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1446, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_sub_info = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1447
 *             # find intraline changes (store change type and indices in tuples)
 *             sub_info = []
 *             def record_sub_info(match_object,sub_info=sub_info):             # <<<<<<<<<<<<<<
 *                 sub_info.append([match_object.group(1)[0],match_object.span()])
 *                 return match_object.group(1)
*/
    __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6_mdiff_10_make_line_1record_sub_info, 0, __pyx_mstate_global->__pyx_n_u_mdiff_locals__make_line_locals, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!__Pyx_CyFunction_InitDefaults(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults)) __PYX_ERR(0, 1447, __pyx_L1_error)
    __Pyx_INCREF(__pyx_v_sub_info);
    __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_2)->arg0 = __pyx_v_sub_info;
    __Pyx_GIVEREF(__pyx_v_sub_info);
    __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_2, __pyx_pf_4lxml_4html_8_difflib_41__defaults__);
    __pyx_v_record_sub_info = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1450
 *                 sub_info.append([match_object.group(1)[0],match_object.span()])
 *                 return match_object.group(1)
 *             change_re.sub(record_sub_info,markers)             # <<<<<<<<<<<<<<
 *             # process each tuple inserting our special marks that won't be
 *             # noticed by an xml/html escaper.
*/
    if (unlikely(!__pyx_cur_scope->__pyx_v_change_re)) { __Pyx_RaiseClosureNameError("change_re"); __PYX_ERR(0, 1450, __pyx_L1_error) }
    __pyx_t_3 = __pyx_cur_scope->__pyx_v_change_re;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_record_sub_info, __pyx_v_markers};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_sub, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1450, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1453
 *             # process each tuple inserting our special marks that won't be
 *             # noticed by an xml/html escaper.
 *             for key,(begin,end) in reversed(sub_info):             # <<<<<<<<<<<<<<
 *                 text = text[0:begin]+'\0'+key+text[begin:end]+'\1'+text[end:]
 *             text = text[2:]
*/
    __pyx_t_2 = __pyx_v_sub_info; __Pyx_INCREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyList_GET_SIZE(__pyx_t_2);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1453, __pyx_L1_error)
    #endif
    --__pyx_t_6;
    for (;;) {
      if (__pyx_t_6 < 0) break;
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1453, __pyx_L1_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      --__pyx_t_6;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1453, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
        PyObject* sequence = __pyx_t_3;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 1453, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_1);
          __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_7);
        } else {
          __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1453, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_1);
          __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1453, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_7);
        }
        #else
        __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1453, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1453, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        #endif
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_8 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1453, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
        index = 0; __pyx_t_1 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_1)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_1);
        index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_7);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < (0)) __PYX_ERR(0, 1453, __pyx_L1_error)
        __pyx_t_9 = NULL;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L8_unpacking_done;
        __pyx_L7_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_9 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 1453, __pyx_L1_error)
        __pyx_L8_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_1);
      __pyx_t_1 = 0;
      if ((likely(PyTuple_CheckExact(__pyx_t_7))) || (PyList_CheckExact(__pyx_t_7))) {
        PyObject* sequence = __pyx_t_7;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 1453, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_8);
          __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_10);
        } else {
          __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1453, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_8);
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1453, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_10);
        }
        #else
        __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1453, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1453, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        #endif
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_11 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1453, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_11);
        index = 0; __pyx_t_8 = __pyx_t_9(__pyx_t_11); if (unlikely(!__pyx_t_8)) goto __pyx_L9_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_8);
        index = 1; __pyx_t_10 = __pyx_t_9(__pyx_t_11); if (unlikely(!__pyx_t_10)) goto __pyx_L9_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_10);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_11), 2) < (0)) __PYX_ERR(0, 1453, __pyx_L1_error)
        __pyx_t_9 = NULL;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        goto __pyx_L10_unpacking_done;
        __pyx_L9_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_t_9 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 1453, __pyx_L1_error)
        __pyx_L10_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_v_begin, __pyx_t_8);
      __pyx_t_8 = 0;
      __Pyx_XDECREF_SET(__pyx_v_end, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "lxml/html/_difflib.py":1454
 *             # noticed by an xml/html escaper.
 *             for key,(begin,end) in reversed(sub_info):
 *                 text = text[0:begin]+'\0'+key+text[begin:end]+'\1'+text[end:]             # <<<<<<<<<<<<<<
 *             text = text[2:]
 *         # Handle case of add/delete entire line
*/
      __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_text, 0, 0, NULL, &__pyx_v_begin, NULL, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1454, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_7 = PyNumber_Add(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__28); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1454, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyNumber_Add(__pyx_t_7, __pyx_v_key); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1454, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyObject_GetSlice(__pyx_v_text, 0, 0, &__pyx_v_begin, &__pyx_v_end, NULL, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1454, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1454, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = PyNumber_Add(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__29); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1454, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_text, 0, 0, &__pyx_v_end, NULL, NULL, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1454, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = PyNumber_Add(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1454, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF_SET(__pyx_v_text, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "lxml/html/_difflib.py":1453
 *             # process each tuple inserting our special marks that won't be
 *             # noticed by an xml/html escaper.
 *             for key,(begin,end) in reversed(sub_info):             # <<<<<<<<<<<<<<
 *                 text = text[0:begin]+'\0'+key+text[begin:end]+'\1'+text[end:]
 *             text = text[2:]
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1455
 *             for key,(begin,end) in reversed(sub_info):
 *                 text = text[0:begin]+'\0'+key+text[begin:end]+'\1'+text[end:]
 *             text = text[2:]             # <<<<<<<<<<<<<<
 *         # Handle case of add/delete entire line
 *         else:
*/
    __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_text, 2, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[0], 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1455, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_text, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1443
 *             return (num_lines[side],lines.pop(0)[2:])
 *         # Handle case of intraline changes
 *         if format_key == '?':             # <<<<<<<<<<<<<<
 *             text, markers = lines.pop(0), lines.pop(0)
 *             # find intraline changes (store change type and indices in tuples)
*/
    goto __pyx_L4;
  }

  /* "lxml/html/_difflib.py":1458
 *         # Handle case of add/delete entire line
 *         else:
 *             text = lines.pop(0)[2:]             # <<<<<<<<<<<<<<
 *             # if line of text is just a newline, insert a space so there is
 *             # something for the user to highlight and see.
*/
  /*else*/ {
    __pyx_t_2 = __Pyx_PyObject_PopIndex(__pyx_v_lines, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1458, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_t_2, 2, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[0], 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1458, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_text = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1461
 *             # if line of text is just a newline, insert a space so there is
 *             # something for the user to highlight and see.
 *             if not text:             # <<<<<<<<<<<<<<
 *                 text = ' '
 *             # insert marks that won't be noticed by an xml/html escaper.
*/
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_text); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 1461, __pyx_L1_error)
    __pyx_t_12 = (!__pyx_t_4);
    if (__pyx_t_12) {

      /* "lxml/html/_difflib.py":1462
 *             # something for the user to highlight and see.
 *             if not text:
 *                 text = ' '             # <<<<<<<<<<<<<<
 *             # insert marks that won't be noticed by an xml/html escaper.
 *             text = '\0' + format_key + text + '\1'
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
      __Pyx_DECREF_SET(__pyx_v_text, __pyx_mstate_global->__pyx_kp_u__3);

      /* "lxml/html/_difflib.py":1461
 *             # if line of text is just a newline, insert a space so there is
 *             # something for the user to highlight and see.
 *             if not text:             # <<<<<<<<<<<<<<
 *                 text = ' '
 *             # insert marks that won't be noticed by an xml/html escaper.
*/
    }

    /* "lxml/html/_difflib.py":1464
 *                 text = ' '
 *             # insert marks that won't be noticed by an xml/html escaper.
 *             text = '\0' + format_key + text + '\1'             # <<<<<<<<<<<<<<
 *         # Return line of text, first allow user's line formatter to do its
 *         # thing (such as adding the line number) then replace the special
*/
    __pyx_t_3 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__28, __pyx_v_format_key); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyNumber_Add(__pyx_t_3, __pyx_v_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Add(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u__29); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_text, __pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L4:;

  /* "lxml/html/_difflib.py":1468
 *         # thing (such as adding the line number) then replace the special
 *         # marks with what the user's change markup.
 *         return (num_lines[side],text)             # <<<<<<<<<<<<<<
 * 
 *     def _line_iterator():
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_num_lines, __pyx_v_side); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 1468, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_text);
  __Pyx_GIVEREF(__pyx_v_text);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_text) != (0)) __PYX_ERR(0, 1468, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1414
 *     diff_lines_iterator = ndiff(fromlines,tolines,linejunk,charjunk)
 * 
 *     def _make_line(lines, format_key, side, num_lines=[0,0]):             # <<<<<<<<<<<<<<
 *         """Returns line of text with user's change markup and line formatting.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("lxml.html._difflib._mdiff._make_line", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_text);
  __Pyx_XDECREF(__pyx_v_markers);
  __Pyx_XDECREF(__pyx_v_sub_info);
  __Pyx_XDECREF(__pyx_v_record_sub_info);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_begin);
  __Pyx_XDECREF(__pyx_v_end);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_6_mdiff_4generator17(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1470
 *         return (num_lines[side],text)
 * 
 *     def _line_iterator():             # <<<<<<<<<<<<<<
 *         """Yields from/to lines of text with a change indication.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6_mdiff_3_line_iterator(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6_mdiff_2_line_iterator, "Yields from/to lines of text with a change indication.\n\n        This function is an iterator.  It itself pulls lines from a\n        differencing iterator, processes them and yields them.  When it can\n        it yields both a \"from\" and a \"to\" line, otherwise it will yield one\n        or the other.  In addition to yielding the lines of from/to text, a\n        boolean flag is yielded to indicate if the text line(s) have\n        differences in them.\n\n        Note, this function is purposefully not defined at the module scope so\n        that data it needs from its parent function (within whose context it\n        is defined) does not need to be of module scope.\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6_mdiff_3_line_iterator = {"_line_iterator", (PyCFunction)__pyx_pw_4lxml_4html_8_difflib_6_mdiff_3_line_iterator, METH_NOARGS, __pyx_doc_4lxml_4html_8_difflib_6_mdiff_2_line_iterator};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6_mdiff_3_line_iterator(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_line_iterator (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6_mdiff_2_line_iterator(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6_mdiff_2_line_iterator(PyObject *__pyx_self) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_line_iterator", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1470, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *) __Pyx_CyFunction_GetClosure(__pyx_self);
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_6_mdiff_4generator17, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_line_iterator, __pyx_mstate_global->__pyx_n_u_mdiff_locals__line_iterator, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1470, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib._mdiff._line_iterator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_6_mdiff_4generator17(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  long __pyx_t_2;
  long __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_line_iterator", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L12_resume_from_yield;
    case 2: goto __pyx_L13_resume_from_yield;
    case 3: goto __pyx_L14_resume_from_yield;
    case 4: goto __pyx_L15_resume_from_yield;
    case 5: goto __pyx_L16_resume_from_yield;
    case 6: goto __pyx_L17_resume_from_yield;
    case 7: goto __pyx_L18_resume_from_yield;
    case 8: goto __pyx_L19_resume_from_yield;
    case 9: goto __pyx_L22_resume_from_yield;
    case 10: goto __pyx_L25_resume_from_yield;
    case 11: goto __pyx_L27_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1470, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1484
 *         is defined) does not need to be of module scope.
 *         """
 *         lines = []             # <<<<<<<<<<<<<<
 *         num_blanks_pending, num_blanks_to_yield = 0, 0
 *         while True:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_lines = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1485
 *         """
 *         lines = []
 *         num_blanks_pending, num_blanks_to_yield = 0, 0             # <<<<<<<<<<<<<<
 *         while True:
 *             # Load up next 4 lines so we can look ahead, create strings which
*/
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_cur_scope->__pyx_v_num_blanks_pending = __pyx_t_2;
  __pyx_cur_scope->__pyx_v_num_blanks_to_yield = __pyx_t_3;

  /* "lxml/html/_difflib.py":1486
 *         lines = []
 *         num_blanks_pending, num_blanks_to_yield = 0, 0
 *         while True:             # <<<<<<<<<<<<<<
 *             # Load up next 4 lines so we can look ahead, create strings which
 *             # are a concatenation of the first character of each of the 4 lines
*/
  while (1) {

    /* "lxml/html/_difflib.py":1490
 *             # are a concatenation of the first character of each of the 4 lines
 *             # so we can do some very readable comparisons.
 *             while len(lines) < 4:             # <<<<<<<<<<<<<<
 *                 lines.append(next(diff_lines_iterator, 'X'))
 *             s = ''.join([line[0] for line in lines])
*/
    while (1) {
      __pyx_t_4 = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_lines); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1490, __pyx_L1_error)
      __pyx_t_5 = (__pyx_t_4 < 4);
      if (!__pyx_t_5) break;

      /* "lxml/html/_difflib.py":1491
 *             # so we can do some very readable comparisons.
 *             while len(lines) < 4:
 *                 lines.append(next(diff_lines_iterator, 'X'))             # <<<<<<<<<<<<<<
 *             s = ''.join([line[0] for line in lines])
 *             if s.startswith('X'):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_diff_lines_iterator)) { __Pyx_RaiseClosureNameError("diff_lines_iterator"); __PYX_ERR(0, 1491, __pyx_L1_error) }
      __pyx_t_1 = __pyx_cur_scope->__pyx_outer_scope->__pyx_v_diff_lines_iterator;
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_6 = __Pyx_PyIter_Next2(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_X); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1491, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_7 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_lines, __pyx_t_6); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 1491, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }

    /* "lxml/html/_difflib.py":1492
 *             while len(lines) < 4:
 *                 lines.append(next(diff_lines_iterator, 'X'))
 *             s = ''.join([line[0] for line in lines])             # <<<<<<<<<<<<<<
 *             if s.startswith('X'):
 *                 # When no more lines, pump out any remaining blank lines so the
*/
    { /* enter inner scope */
      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1492, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_1 = __pyx_cur_scope->__pyx_v_lines; __Pyx_INCREF(__pyx_t_1);
      __pyx_t_4 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1492, __pyx_L1_error)
          #endif
          if (__pyx_t_4 >= __pyx_temp) break;
        }
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_4;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1492, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_8genexpr5__pyx_v_line);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_8genexpr5__pyx_v_line, __pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_8);
        __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_8genexpr5__pyx_v_line, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1492, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 1492, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } /* exit inner scope */
    __pyx_t_1 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1492, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_s);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_s, ((PyObject*)__pyx_t_1));
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":1493
 *                 lines.append(next(diff_lines_iterator, 'X'))
 *             s = ''.join([line[0] for line in lines])
 *             if s.startswith('X'):             # <<<<<<<<<<<<<<
 *                 # When no more lines, pump out any remaining blank lines so the
 *                 # corresponding add/delete lines get a matching blank line so
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1493, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_n_u_X, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1493, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1497
 *                 # corresponding add/delete lines get a matching blank line so
 *                 # all line pairs get yielded at the next level.
 *                 num_blanks_to_yield = num_blanks_pending             # <<<<<<<<<<<<<<
 *             elif s.startswith('-?+?'):
 *                 # simple intraline change
*/
      __pyx_cur_scope->__pyx_v_num_blanks_to_yield = __pyx_cur_scope->__pyx_v_num_blanks_pending;

      /* "lxml/html/_difflib.py":1493
 *                 lines.append(next(diff_lines_iterator, 'X'))
 *             s = ''.join([line[0] for line in lines])
 *             if s.startswith('X'):             # <<<<<<<<<<<<<<
 *                 # When no more lines, pump out any remaining blank lines so the
 *                 # corresponding add/delete lines get a matching blank line so
*/
      goto __pyx_L11;
    }

    /* "lxml/html/_difflib.py":1498
 *                 # all line pairs get yielded at the next level.
 *                 num_blanks_to_yield = num_blanks_pending
 *             elif s.startswith('-?+?'):             # <<<<<<<<<<<<<<
 *                 # simple intraline change
 *                 yield _make_line(lines,'?',0), _make_line(lines,'?',1), True
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1498, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_kp_u__30, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1498, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1500
 *             elif s.startswith('-?+?'):
 *                 # simple intraline change
 *                 yield _make_line(lines,'?',0), _make_line(lines,'?',1), True             # <<<<<<<<<<<<<<
 *                 continue
 *             elif s.startswith('--++'):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1500, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1500, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__27);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__27);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_mstate_global->__pyx_kp_u__27) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1500, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1500, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1500, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__27);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__27);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_mstate_global->__pyx_kp_u__27) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1500, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1500, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __Pyx_INCREF(Py_True);
      __Pyx_GIVEREF(Py_True);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_True) != (0)) __PYX_ERR(0, 1500, __pyx_L1_error);
      __pyx_t_6 = 0;
      __pyx_t_8 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L12_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1500, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1501
 *                 # simple intraline change
 *                 yield _make_line(lines,'?',0), _make_line(lines,'?',1), True
 *                 continue             # <<<<<<<<<<<<<<
 *             elif s.startswith('--++'):
 *                 # in delete block, add block coming: we do NOT want to get
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1498
 *                 # all line pairs get yielded at the next level.
 *                 num_blanks_to_yield = num_blanks_pending
 *             elif s.startswith('-?+?'):             # <<<<<<<<<<<<<<
 *                 # simple intraline change
 *                 yield _make_line(lines,'?',0), _make_line(lines,'?',1), True
*/
    }

    /* "lxml/html/_difflib.py":1502
 *                 yield _make_line(lines,'?',0), _make_line(lines,'?',1), True
 *                 continue
 *             elif s.startswith('--++'):             # <<<<<<<<<<<<<<
 *                 # in delete block, add block coming: we do NOT want to get
 *                 # caught up on blank lines yet, just process the delete line
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1502, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_kp_u__31, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1502, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1505
 *                 # in delete block, add block coming: we do NOT want to get
 *                 # caught up on blank lines yet, just process the delete line
 *                 num_blanks_pending -= 1             # <<<<<<<<<<<<<<
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue
*/
      __pyx_cur_scope->__pyx_v_num_blanks_pending = (__pyx_cur_scope->__pyx_v_num_blanks_pending - 1);

      /* "lxml/html/_difflib.py":1506
 *                 # caught up on blank lines yet, just process the delete line
 *                 num_blanks_pending -= 1
 *                 yield _make_line(lines,'-',0), None, True             # <<<<<<<<<<<<<<
 *                 continue
 *             elif s.startswith(('--?+', '--+', '- ')):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1506, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1506, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1506, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__4);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__4);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_mstate_global->__pyx_kp_u__4) != (0)) __PYX_ERR(0, 1506, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1506, __pyx_L1_error);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1506, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1506, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 1506, __pyx_L1_error);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 1506, __pyx_L1_error);
      __Pyx_INCREF(Py_True);
      __Pyx_GIVEREF(Py_True);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_True) != (0)) __PYX_ERR(0, 1506, __pyx_L1_error);
      __pyx_t_8 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 2;
      return __pyx_r;
      __pyx_L13_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1506, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1507
 *                 num_blanks_pending -= 1
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue             # <<<<<<<<<<<<<<
 *             elif s.startswith(('--?+', '--+', '- ')):
 *                 # in delete block and see an intraline change or unchanged line
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1502
 *                 yield _make_line(lines,'?',0), _make_line(lines,'?',1), True
 *                 continue
 *             elif s.startswith('--++'):             # <<<<<<<<<<<<<<
 *                 # in delete block, add block coming: we do NOT want to get
 *                 # caught up on blank lines yet, just process the delete line
*/
    }

    /* "lxml/html/_difflib.py":1508
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue
 *             elif s.startswith(('--?+', '--+', '- ')):             # <<<<<<<<<<<<<<
 *                 # in delete block and see an intraline change or unchanged line
 *                 # coming: yield the delete line and then blanks
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1508, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_tuple[2], 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1508, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1511
 *                 # in delete block and see an intraline change or unchanged line
 *                 # coming: yield the delete line and then blanks
 *                 from_line,to_line = _make_line(lines,'-',0), None             # <<<<<<<<<<<<<<
 *                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending-1,0
 *             elif s.startswith('-+?'):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1511, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1511, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1511, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__4);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__4);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_mstate_global->__pyx_kp_u__4) != (0)) __PYX_ERR(0, 1511, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1511, __pyx_L1_error);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1511, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = Py_None;
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_from_line);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_from_line, __pyx_t_8);
      __Pyx_GIVEREF(__pyx_t_8);
      __pyx_t_8 = 0;
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_to_line);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_to_line, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":1512
 *                 # coming: yield the delete line and then blanks
 *                 from_line,to_line = _make_line(lines,'-',0), None
 *                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending-1,0             # <<<<<<<<<<<<<<
 *             elif s.startswith('-+?'):
 *                 # intraline change
*/
      __pyx_t_3 = (__pyx_cur_scope->__pyx_v_num_blanks_pending - 1);
      __pyx_t_2 = 0;
      __pyx_cur_scope->__pyx_v_num_blanks_to_yield = __pyx_t_3;
      __pyx_cur_scope->__pyx_v_num_blanks_pending = __pyx_t_2;

      /* "lxml/html/_difflib.py":1508
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue
 *             elif s.startswith(('--?+', '--+', '- ')):             # <<<<<<<<<<<<<<
 *                 # in delete block and see an intraline change or unchanged line
 *                 # coming: yield the delete line and then blanks
*/
      goto __pyx_L11;
    }

    /* "lxml/html/_difflib.py":1513
 *                 from_line,to_line = _make_line(lines,'-',0), None
 *                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending-1,0
 *             elif s.startswith('-+?'):             # <<<<<<<<<<<<<<
 *                 # intraline change
 *                 yield _make_line(lines,None,0), _make_line(lines,'?',1), True
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1513, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_kp_u__34, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1513, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1515
 *             elif s.startswith('-+?'):
 *                 # intraline change
 *                 yield _make_line(lines,None,0), _make_line(lines,'?',1), True             # <<<<<<<<<<<<<<
 *                 continue
 *             elif s.startswith('-?+'):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1515, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1515, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1515, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1515, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1515, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__27);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__27);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_mstate_global->__pyx_kp_u__27) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1515, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1515, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __Pyx_INCREF(Py_True);
      __Pyx_GIVEREF(Py_True);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_True) != (0)) __PYX_ERR(0, 1515, __pyx_L1_error);
      __pyx_t_8 = 0;
      __pyx_t_6 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 3;
      return __pyx_r;
      __pyx_L14_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1515, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1516
 *                 # intraline change
 *                 yield _make_line(lines,None,0), _make_line(lines,'?',1), True
 *                 continue             # <<<<<<<<<<<<<<
 *             elif s.startswith('-?+'):
 *                 # intraline change
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1513
 *                 from_line,to_line = _make_line(lines,'-',0), None
 *                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending-1,0
 *             elif s.startswith('-+?'):             # <<<<<<<<<<<<<<
 *                 # intraline change
 *                 yield _make_line(lines,None,0), _make_line(lines,'?',1), True
*/
    }

    /* "lxml/html/_difflib.py":1517
 *                 yield _make_line(lines,None,0), _make_line(lines,'?',1), True
 *                 continue
 *             elif s.startswith('-?+'):             # <<<<<<<<<<<<<<
 *                 # intraline change
 *                 yield _make_line(lines,'?',0), _make_line(lines,None,1), True
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1517, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_kp_u__35, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1517, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1519
 *             elif s.startswith('-?+'):
 *                 # intraline change
 *                 yield _make_line(lines,'?',0), _make_line(lines,None,1), True             # <<<<<<<<<<<<<<
 *                 continue
 *             elif s.startswith('-'):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1519, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1519, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__27);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__27);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_mstate_global->__pyx_kp_u__27) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1519, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1519, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1519, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1519, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1519, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __Pyx_INCREF(Py_True);
      __Pyx_GIVEREF(Py_True);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_True) != (0)) __PYX_ERR(0, 1519, __pyx_L1_error);
      __pyx_t_6 = 0;
      __pyx_t_8 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 4;
      return __pyx_r;
      __pyx_L15_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1519, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1520
 *                 # intraline change
 *                 yield _make_line(lines,'?',0), _make_line(lines,None,1), True
 *                 continue             # <<<<<<<<<<<<<<
 *             elif s.startswith('-'):
 *                 # delete FROM line
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1517
 *                 yield _make_line(lines,None,0), _make_line(lines,'?',1), True
 *                 continue
 *             elif s.startswith('-?+'):             # <<<<<<<<<<<<<<
 *                 # intraline change
 *                 yield _make_line(lines,'?',0), _make_line(lines,None,1), True
*/
    }

    /* "lxml/html/_difflib.py":1521
 *                 yield _make_line(lines,'?',0), _make_line(lines,None,1), True
 *                 continue
 *             elif s.startswith('-'):             # <<<<<<<<<<<<<<
 *                 # delete FROM line
 *                 num_blanks_pending -= 1
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1521, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_kp_u__4, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1521, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1523
 *             elif s.startswith('-'):
 *                 # delete FROM line
 *                 num_blanks_pending -= 1             # <<<<<<<<<<<<<<
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue
*/
      __pyx_cur_scope->__pyx_v_num_blanks_pending = (__pyx_cur_scope->__pyx_v_num_blanks_pending - 1);

      /* "lxml/html/_difflib.py":1524
 *                 # delete FROM line
 *                 num_blanks_pending -= 1
 *                 yield _make_line(lines,'-',0), None, True             # <<<<<<<<<<<<<<
 *                 continue
 *             elif s.startswith('+--'):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1524, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1524, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1524, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__4);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__4);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_mstate_global->__pyx_kp_u__4) != (0)) __PYX_ERR(0, 1524, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1524, __pyx_L1_error);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1524, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1524, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 1524, __pyx_L1_error);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 1524, __pyx_L1_error);
      __Pyx_INCREF(Py_True);
      __Pyx_GIVEREF(Py_True);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_True) != (0)) __PYX_ERR(0, 1524, __pyx_L1_error);
      __pyx_t_8 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 5;
      return __pyx_r;
      __pyx_L16_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1524, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1525
 *                 num_blanks_pending -= 1
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue             # <<<<<<<<<<<<<<
 *             elif s.startswith('+--'):
 *                 # in add block, delete block coming: we do NOT want to get
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1521
 *                 yield _make_line(lines,'?',0), _make_line(lines,None,1), True
 *                 continue
 *             elif s.startswith('-'):             # <<<<<<<<<<<<<<
 *                 # delete FROM line
 *                 num_blanks_pending -= 1
*/
    }

    /* "lxml/html/_difflib.py":1526
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue
 *             elif s.startswith('+--'):             # <<<<<<<<<<<<<<
 *                 # in add block, delete block coming: we do NOT want to get
 *                 # caught up on blank lines yet, just process the add line
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1526, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_kp_u__36, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1526, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1529
 *                 # in add block, delete block coming: we do NOT want to get
 *                 # caught up on blank lines yet, just process the add line
 *                 num_blanks_pending += 1             # <<<<<<<<<<<<<<
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue
*/
      __pyx_cur_scope->__pyx_v_num_blanks_pending = (__pyx_cur_scope->__pyx_v_num_blanks_pending + 1);

      /* "lxml/html/_difflib.py":1530
 *                 # caught up on blank lines yet, just process the add line
 *                 num_blanks_pending += 1
 *                 yield None, _make_line(lines,'+',1), True             # <<<<<<<<<<<<<<
 *                 continue
 *             elif s.startswith(('+ ', '+-')):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1530, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1530, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__5);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_mstate_global->__pyx_kp_u__5) != (0)) __PYX_ERR(0, 1530, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 1530, __pyx_L1_error);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, Py_None) != (0)) __PYX_ERR(0, 1530, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 1530, __pyx_L1_error);
      __Pyx_INCREF(Py_True);
      __Pyx_GIVEREF(Py_True);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_True) != (0)) __PYX_ERR(0, 1530, __pyx_L1_error);
      __pyx_t_8 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 6;
      return __pyx_r;
      __pyx_L17_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1530, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1531
 *                 num_blanks_pending += 1
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue             # <<<<<<<<<<<<<<
 *             elif s.startswith(('+ ', '+-')):
 *                 # will be leaving an add block: yield blanks then add line
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1526
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue
 *             elif s.startswith('+--'):             # <<<<<<<<<<<<<<
 *                 # in add block, delete block coming: we do NOT want to get
 *                 # caught up on blank lines yet, just process the add line
*/
    }

    /* "lxml/html/_difflib.py":1532
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue
 *             elif s.startswith(('+ ', '+-')):             # <<<<<<<<<<<<<<
 *                 # will be leaving an add block: yield blanks then add line
 *                 from_line, to_line = None, _make_line(lines,'+',1)
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1532, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_tuple[3], 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1532, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1534
 *             elif s.startswith(('+ ', '+-')):
 *                 # will be leaving an add block: yield blanks then add line
 *                 from_line, to_line = None, _make_line(lines,'+',1)             # <<<<<<<<<<<<<<
 *                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending+1,0
 *             elif s.startswith('+'):
*/
      __pyx_t_1 = Py_None;
      __Pyx_INCREF(__pyx_t_1);
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1534, __pyx_L1_error) }
      __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1534, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1534, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__5);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_mstate_global->__pyx_kp_u__5) != (0)) __PYX_ERR(0, 1534, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 1534, __pyx_L1_error);
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1534, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_from_line);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_from_line, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_to_line);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_to_line, __pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_6);
      __pyx_t_6 = 0;

      /* "lxml/html/_difflib.py":1535
 *                 # will be leaving an add block: yield blanks then add line
 *                 from_line, to_line = None, _make_line(lines,'+',1)
 *                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending+1,0             # <<<<<<<<<<<<<<
 *             elif s.startswith('+'):
 *                 # inside an add block, yield the add line
*/
      __pyx_t_2 = (__pyx_cur_scope->__pyx_v_num_blanks_pending + 1);
      __pyx_t_3 = 0;
      __pyx_cur_scope->__pyx_v_num_blanks_to_yield = __pyx_t_2;
      __pyx_cur_scope->__pyx_v_num_blanks_pending = __pyx_t_3;

      /* "lxml/html/_difflib.py":1532
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue
 *             elif s.startswith(('+ ', '+-')):             # <<<<<<<<<<<<<<
 *                 # will be leaving an add block: yield blanks then add line
 *                 from_line, to_line = None, _make_line(lines,'+',1)
*/
      goto __pyx_L11;
    }

    /* "lxml/html/_difflib.py":1536
 *                 from_line, to_line = None, _make_line(lines,'+',1)
 *                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending+1,0
 *             elif s.startswith('+'):             # <<<<<<<<<<<<<<
 *                 # inside an add block, yield the add line
 *                 num_blanks_pending += 1
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1536, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_kp_u__5, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1536, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1538
 *             elif s.startswith('+'):
 *                 # inside an add block, yield the add line
 *                 num_blanks_pending += 1             # <<<<<<<<<<<<<<
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue
*/
      __pyx_cur_scope->__pyx_v_num_blanks_pending = (__pyx_cur_scope->__pyx_v_num_blanks_pending + 1);

      /* "lxml/html/_difflib.py":1539
 *                 # inside an add block, yield the add line
 *                 num_blanks_pending += 1
 *                 yield None, _make_line(lines,'+',1), True             # <<<<<<<<<<<<<<
 *                 continue
 *             elif s.startswith(' '):
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1539, __pyx_L1_error) }
      __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1539, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1539, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__5);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_mstate_global->__pyx_kp_u__5) != (0)) __PYX_ERR(0, 1539, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 1539, __pyx_L1_error);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1539, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1539, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, Py_None) != (0)) __PYX_ERR(0, 1539, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 1539, __pyx_L1_error);
      __Pyx_INCREF(Py_True);
      __Pyx_GIVEREF(Py_True);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, Py_True) != (0)) __PYX_ERR(0, 1539, __pyx_L1_error);
      __pyx_t_1 = 0;
      __pyx_r = __pyx_t_6;
      __pyx_t_6 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 7;
      return __pyx_r;
      __pyx_L18_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1539, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1540
 *                 num_blanks_pending += 1
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue             # <<<<<<<<<<<<<<
 *             elif s.startswith(' '):
 *                 # unchanged text, yield it to both sides
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1536
 *                 from_line, to_line = None, _make_line(lines,'+',1)
 *                 num_blanks_to_yield,num_blanks_pending = num_blanks_pending+1,0
 *             elif s.startswith('+'):             # <<<<<<<<<<<<<<
 *                 # inside an add block, yield the add line
 *                 num_blanks_pending += 1
*/
    }

    /* "lxml/html/_difflib.py":1541
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue
 *             elif s.startswith(' '):             # <<<<<<<<<<<<<<
 *                 # unchanged text, yield it to both sides
 *                 yield _make_line(lines[:],None,0),_make_line(lines,None,1),False
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1541, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_kp_u__3, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1541, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1543
 *             elif s.startswith(' '):
 *                 # unchanged text, yield it to both sides
 *                 yield _make_line(lines[:],None,0),_make_line(lines,None,1),False             # <<<<<<<<<<<<<<
 *                 continue
 *             # Catch up on the blank lines so when we yield the next from/to
*/
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1543, __pyx_L1_error) }
      __pyx_t_6 = __Pyx_PyList_GetSlice(__pyx_cur_scope->__pyx_v_lines, 0, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line)) { __Pyx_RaiseClosureNameError("_make_line"); __PYX_ERR(0, 1543, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_lines);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_lines);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_lines) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__make_line, __pyx_t_1, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __Pyx_INCREF(Py_False);
      __Pyx_GIVEREF(Py_False);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_False) != (0)) __PYX_ERR(0, 1543, __pyx_L1_error);
      __pyx_t_6 = 0;
      __pyx_t_8 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 8;
      return __pyx_r;
      __pyx_L19_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1543, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1544
 *                 # unchanged text, yield it to both sides
 *                 yield _make_line(lines[:],None,0),_make_line(lines,None,1),False
 *                 continue             # <<<<<<<<<<<<<<
 *             # Catch up on the blank lines so when we yield the next from/to
 *             # pair, they are lined up.
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1541
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue
 *             elif s.startswith(' '):             # <<<<<<<<<<<<<<
 *                 # unchanged text, yield it to both sides
 *                 yield _make_line(lines[:],None,0),_make_line(lines,None,1),False
*/
    }
    __pyx_L11:;

    /* "lxml/html/_difflib.py":1547
 *             # Catch up on the blank lines so when we yield the next from/to
 *             # pair, they are lined up.
 *             while(num_blanks_to_yield < 0):             # <<<<<<<<<<<<<<
 *                 num_blanks_to_yield += 1
 *                 yield None,('','\n'),True
*/
    while (1) {
      __pyx_t_5 = (__pyx_cur_scope->__pyx_v_num_blanks_to_yield < 0);
      if (!__pyx_t_5) break;

      /* "lxml/html/_difflib.py":1548
 *             # pair, they are lined up.
 *             while(num_blanks_to_yield < 0):
 *                 num_blanks_to_yield += 1             # <<<<<<<<<<<<<<
 *                 yield None,('','\n'),True
 *             while(num_blanks_to_yield > 0):
*/
      __pyx_cur_scope->__pyx_v_num_blanks_to_yield = (__pyx_cur_scope->__pyx_v_num_blanks_to_yield + 1);

      /* "lxml/html/_difflib.py":1549
 *             while(num_blanks_to_yield < 0):
 *                 num_blanks_to_yield += 1
 *                 yield None,('','\n'),True             # <<<<<<<<<<<<<<
 *             while(num_blanks_to_yield > 0):
 *                 num_blanks_to_yield -= 1
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[5]);
      __pyx_r = __pyx_mstate_global->__pyx_tuple[5];
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 9;
      return __pyx_r;
      __pyx_L22_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1549, __pyx_L1_error)
    }

    /* "lxml/html/_difflib.py":1550
 *                 num_blanks_to_yield += 1
 *                 yield None,('','\n'),True
 *             while(num_blanks_to_yield > 0):             # <<<<<<<<<<<<<<
 *                 num_blanks_to_yield -= 1
 *                 yield ('','\n'),None,True
*/
    while (1) {
      __pyx_t_5 = (__pyx_cur_scope->__pyx_v_num_blanks_to_yield > 0);
      if (!__pyx_t_5) break;

      /* "lxml/html/_difflib.py":1551
 *                 yield None,('','\n'),True
 *             while(num_blanks_to_yield > 0):
 *                 num_blanks_to_yield -= 1             # <<<<<<<<<<<<<<
 *                 yield ('','\n'),None,True
 *             if s.startswith('X'):
*/
      __pyx_cur_scope->__pyx_v_num_blanks_to_yield = (__pyx_cur_scope->__pyx_v_num_blanks_to_yield - 1);

      /* "lxml/html/_difflib.py":1552
 *             while(num_blanks_to_yield > 0):
 *                 num_blanks_to_yield -= 1
 *                 yield ('','\n'),None,True             # <<<<<<<<<<<<<<
 *             if s.startswith('X'):
 *                 return
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[6]);
      __pyx_r = __pyx_mstate_global->__pyx_tuple[6];
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 10;
      return __pyx_r;
      __pyx_L25_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1552, __pyx_L1_error)
    }

    /* "lxml/html/_difflib.py":1553
 *                 num_blanks_to_yield -= 1
 *                 yield ('','\n'),None,True
 *             if s.startswith('X'):             # <<<<<<<<<<<<<<
 *                 return
 *             else:
*/
    if (unlikely(__pyx_cur_scope->__pyx_v_s == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
      __PYX_ERR(0, 1553, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyUnicode_Tailmatch(__pyx_cur_scope->__pyx_v_s, __pyx_mstate_global->__pyx_n_u_X, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1553, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1554
 *                 yield ('','\n'),None,True
 *             if s.startswith('X'):
 *                 return             # <<<<<<<<<<<<<<
 *             else:
 *                 yield from_line,to_line,True
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      goto __pyx_L0;

      /* "lxml/html/_difflib.py":1553
 *                 num_blanks_to_yield -= 1
 *                 yield ('','\n'),None,True
 *             if s.startswith('X'):             # <<<<<<<<<<<<<<
 *                 return
 *             else:
*/
    }

    /* "lxml/html/_difflib.py":1556
 *                 return
 *             else:
 *                 yield from_line,to_line,True             # <<<<<<<<<<<<<<
 * 
 *     def _line_pair_iterator():
*/
    /*else*/ {
      if (unlikely(!__pyx_cur_scope->__pyx_v_from_line)) { __Pyx_RaiseUnboundLocalError("from_line"); __PYX_ERR(0, 1556, __pyx_L1_error) }
      if (unlikely(!__pyx_cur_scope->__pyx_v_to_line)) { __Pyx_RaiseUnboundLocalError("to_line"); __PYX_ERR(0, 1556, __pyx_L1_error) }
      __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1556, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_from_line);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_from_line);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_cur_scope->__pyx_v_from_line) != (0)) __PYX_ERR(0, 1556, __pyx_L1_error);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_to_line);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_to_line);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_cur_scope->__pyx_v_to_line) != (0)) __PYX_ERR(0, 1556, __pyx_L1_error);
      __Pyx_INCREF(Py_True);
      __Pyx_GIVEREF(Py_True);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_True) != (0)) __PYX_ERR(0, 1556, __pyx_L1_error);
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 11;
      return __pyx_r;
      __pyx_L27_resume_from_yield:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1556, __pyx_L1_error)
    }
    __pyx_L4_continue:;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1470
 *         return (num_lines[side],text)
 * 
 *     def _line_iterator():             # <<<<<<<<<<<<<<
 *         """Yields from/to lines of text with a change indication.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_line_iterator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_6_mdiff_7generator18(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1558
 *                 yield from_line,to_line,True
 * 
 *     def _line_pair_iterator():             # <<<<<<<<<<<<<<
 *         """Yields from/to lines of text with a change indication.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6_mdiff_6_line_pair_iterator(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_6_mdiff_5_line_pair_iterator, "Yields from/to lines of text with a change indication.\n\n        This function is an iterator.  It itself pulls lines from the line\n        iterator.  Its difference from that iterator is that this function\n        always yields a pair of from/to text lines (with the change\n        indication).  If necessary it will collect single from/to lines\n        until it has a matching pair from/to pair to yield.\n\n        Note, this function is purposefully not defined at the module scope so\n        that data it needs from its parent function (within whose context it\n        is defined) does not need to be of module scope.\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_6_mdiff_6_line_pair_iterator = {"_line_pair_iterator", (PyCFunction)__pyx_pw_4lxml_4html_8_difflib_6_mdiff_6_line_pair_iterator, METH_NOARGS, __pyx_doc_4lxml_4html_8_difflib_6_mdiff_5_line_pair_iterator};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_6_mdiff_6_line_pair_iterator(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_line_pair_iterator (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_6_mdiff_5_line_pair_iterator(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_6_mdiff_5_line_pair_iterator(PyObject *__pyx_self) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_line_pair_iterator", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1558, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *) __Pyx_CyFunction_GetClosure(__pyx_self);
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_6_mdiff_7generator18, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_line_pair_iterator, __pyx_mstate_global->__pyx_n_u_mdiff_locals__line_pair_iterato, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1558, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib._mdiff._line_pair_iterator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_6_mdiff_7generator18(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *(*__pyx_t_12)(PyObject *);
  int __pyx_t_13;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_line_pair_iterator", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L30_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1558, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1571
 *         is defined) does not need to be of module scope.
 *         """
 *         line_iterator = _line_iterator()             # <<<<<<<<<<<<<<
 *         fromlines,tolines=[],[]
 *         while True:
*/
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v__line_iterator)) { __Pyx_RaiseClosureNameError("_line_iterator"); __PYX_ERR(0, 1571, __pyx_L1_error) }
  __pyx_t_1 = __pyx_pf_4lxml_4html_8_difflib_6_mdiff_2_line_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v__line_iterator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_line_iterator = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1572
 *         """
 *         line_iterator = _line_iterator()
 *         fromlines,tolines=[],[]             # <<<<<<<<<<<<<<
 *         while True:
 *             # Collecting lines of text until we have a from/to pair
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_fromlines = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_cur_scope->__pyx_v_tolines = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1573
 *         line_iterator = _line_iterator()
 *         fromlines,tolines=[],[]
 *         while True:             # <<<<<<<<<<<<<<
 *             # Collecting lines of text until we have a from/to pair
 *             while (len(fromlines)==0 or len(tolines)==0):
*/
  while (1) {

    /* "lxml/html/_difflib.py":1575
 *         while True:
 *             # Collecting lines of text until we have a from/to pair
 *             while (len(fromlines)==0 or len(tolines)==0):             # <<<<<<<<<<<<<<
 *                 try:
 *                     from_line, to_line, found_diff = next(line_iterator)
*/
    while (1) {
      __pyx_t_4 = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_fromlines); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1575, __pyx_L1_error)
      __pyx_t_5 = (__pyx_t_4 == 0);
      if (!__pyx_t_5) {
      } else {
        __pyx_t_3 = __pyx_t_5;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_4 = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_tolines); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1575, __pyx_L1_error)
      __pyx_t_5 = (__pyx_t_4 == 0);
      __pyx_t_3 = __pyx_t_5;
      __pyx_L8_bool_binop_done:;
      if (!__pyx_t_3) break;

      /* "lxml/html/_difflib.py":1576
 *             # Collecting lines of text until we have a from/to pair
 *             while (len(fromlines)==0 or len(tolines)==0):
 *                 try:             # <<<<<<<<<<<<<<
 *                     from_line, to_line, found_diff = next(line_iterator)
 *                 except StopIteration:
*/
      {
        __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_8);
        /*try:*/ {

          /* "lxml/html/_difflib.py":1577
 *             while (len(fromlines)==0 or len(tolines)==0):
 *                 try:
 *                     from_line, to_line, found_diff = next(line_iterator)             # <<<<<<<<<<<<<<
 *                 except StopIteration:
 *                     return
*/
          __pyx_t_2 = __Pyx_PyIter_Next(__pyx_cur_scope->__pyx_v_line_iterator); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1577, __pyx_L10_error)
          __Pyx_GOTREF(__pyx_t_2);
          if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
            PyObject* sequence = __pyx_t_2;
            Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
            if (unlikely(size != 3)) {
              if (size > 3) __Pyx_RaiseTooManyValuesError(3);
              else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
              __PYX_ERR(0, 1577, __pyx_L10_error)
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            if (likely(PyTuple_CheckExact(sequence))) {
              __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
              __Pyx_INCREF(__pyx_t_1);
              __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
              __Pyx_INCREF(__pyx_t_9);
              __pyx_t_10 = PyTuple_GET_ITEM(sequence, 2);
              __Pyx_INCREF(__pyx_t_10);
            } else {
              __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1577, __pyx_L10_error)
              __Pyx_XGOTREF(__pyx_t_1);
              __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1577, __pyx_L10_error)
              __Pyx_XGOTREF(__pyx_t_9);
              __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1577, __pyx_L10_error)
              __Pyx_XGOTREF(__pyx_t_10);
            }
            #else
            __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1577, __pyx_L10_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1577, __pyx_L10_error)
            __Pyx_GOTREF(__pyx_t_9);
            __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1577, __pyx_L10_error)
            __Pyx_GOTREF(__pyx_t_10);
            #endif
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          } else {
            Py_ssize_t index = -1;
            __pyx_t_11 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1577, __pyx_L10_error)
            __Pyx_GOTREF(__pyx_t_11);
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_11);
            index = 0; __pyx_t_1 = __pyx_t_12(__pyx_t_11); if (unlikely(!__pyx_t_1)) goto __pyx_L18_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_1);
            index = 1; __pyx_t_9 = __pyx_t_12(__pyx_t_11); if (unlikely(!__pyx_t_9)) goto __pyx_L18_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_9);
            index = 2; __pyx_t_10 = __pyx_t_12(__pyx_t_11); if (unlikely(!__pyx_t_10)) goto __pyx_L18_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_10);
            if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_11), 3) < (0)) __PYX_ERR(0, 1577, __pyx_L10_error)
            __pyx_t_12 = NULL;
            __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            goto __pyx_L19_unpacking_done;
            __pyx_L18_unpacking_failed:;
            __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            __pyx_t_12 = NULL;
            if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
            __PYX_ERR(0, 1577, __pyx_L10_error)
            __pyx_L19_unpacking_done:;
          }
          __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_from_line);
          __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_from_line, __pyx_t_1);
          __Pyx_GIVEREF(__pyx_t_1);
          __pyx_t_1 = 0;
          __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_to_line);
          __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_to_line, __pyx_t_9);
          __Pyx_GIVEREF(__pyx_t_9);
          __pyx_t_9 = 0;
          __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_found_diff);
          __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_found_diff, __pyx_t_10);
          __Pyx_GIVEREF(__pyx_t_10);
          __pyx_t_10 = 0;

          /* "lxml/html/_difflib.py":1576
 *             # Collecting lines of text until we have a from/to pair
 *             while (len(fromlines)==0 or len(tolines)==0):
 *                 try:             # <<<<<<<<<<<<<<
 *                     from_line, to_line, found_diff = next(line_iterator)
 *                 except StopIteration:
*/
        }
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L17_try_end;
        __pyx_L10_error:;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

        /* "lxml/html/_difflib.py":1578
 *                 try:
 *                     from_line, to_line, found_diff = next(line_iterator)
 *                 except StopIteration:             # <<<<<<<<<<<<<<
 *                     return
 *                 if from_line is not None:
*/
        __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_StopIteration))));
        if (__pyx_t_13) {
          __Pyx_ErrRestore(0,0,0);

          /* "lxml/html/_difflib.py":1579
 *                     from_line, to_line, found_diff = next(line_iterator)
 *                 except StopIteration:
 *                     return             # <<<<<<<<<<<<<<
 *                 if from_line is not None:
 *                     fromlines.append((from_line,found_diff))
*/
          __Pyx_XDECREF(__pyx_r);
          __pyx_r = Py_None; __Pyx_INCREF(Py_None);
          goto __pyx_L13_except_return;
        }
        goto __pyx_L12_except_error;

        /* "lxml/html/_difflib.py":1576
 *             # Collecting lines of text until we have a from/to pair
 *             while (len(fromlines)==0 or len(tolines)==0):
 *                 try:             # <<<<<<<<<<<<<<
 *                     from_line, to_line, found_diff = next(line_iterator)
 *                 except StopIteration:
*/
        __pyx_L12_except_error:;
        __Pyx_XGIVEREF(__pyx_t_6);
        __Pyx_XGIVEREF(__pyx_t_7);
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
        goto __pyx_L1_error;
        __pyx_L13_except_return:;
        __Pyx_XGIVEREF(__pyx_t_6);
        __Pyx_XGIVEREF(__pyx_t_7);
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
        goto __pyx_L0;
        __pyx_L17_try_end:;
      }

      /* "lxml/html/_difflib.py":1580
 *                 except StopIteration:
 *                     return
 *                 if from_line is not None:             # <<<<<<<<<<<<<<
 *                     fromlines.append((from_line,found_diff))
 *                 if to_line is not None:
*/
      __pyx_t_3 = (__pyx_cur_scope->__pyx_v_from_line != Py_None);
      if (__pyx_t_3) {

        /* "lxml/html/_difflib.py":1581
 *                     return
 *                 if from_line is not None:
 *                     fromlines.append((from_line,found_diff))             # <<<<<<<<<<<<<<
 *                 if to_line is not None:
 *                     tolines.append((to_line,found_diff))
*/
        __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1581, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_cur_scope->__pyx_v_from_line);
        __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_from_line);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_cur_scope->__pyx_v_from_line) != (0)) __PYX_ERR(0, 1581, __pyx_L1_error);
        __Pyx_INCREF(__pyx_cur_scope->__pyx_v_found_diff);
        __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_found_diff);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_cur_scope->__pyx_v_found_diff) != (0)) __PYX_ERR(0, 1581, __pyx_L1_error);
        __pyx_t_14 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_fromlines, __pyx_t_2); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 1581, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "lxml/html/_difflib.py":1580
 *                 except StopIteration:
 *                     return
 *                 if from_line is not None:             # <<<<<<<<<<<<<<
 *                     fromlines.append((from_line,found_diff))
 *                 if to_line is not None:
*/
      }

      /* "lxml/html/_difflib.py":1582
 *                 if from_line is not None:
 *                     fromlines.append((from_line,found_diff))
 *                 if to_line is not None:             # <<<<<<<<<<<<<<
 *                     tolines.append((to_line,found_diff))
 *             # Once we have a pair, remove them from the collection and yield it
*/
      __pyx_t_3 = (__pyx_cur_scope->__pyx_v_to_line != Py_None);
      if (__pyx_t_3) {

        /* "lxml/html/_difflib.py":1583
 *                     fromlines.append((from_line,found_diff))
 *                 if to_line is not None:
 *                     tolines.append((to_line,found_diff))             # <<<<<<<<<<<<<<
 *             # Once we have a pair, remove them from the collection and yield it
 *             from_line, fromDiff = fromlines.pop(0)
*/
        __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1583, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_cur_scope->__pyx_v_to_line);
        __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_to_line);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_cur_scope->__pyx_v_to_line) != (0)) __PYX_ERR(0, 1583, __pyx_L1_error);
        __Pyx_INCREF(__pyx_cur_scope->__pyx_v_found_diff);
        __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_found_diff);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_cur_scope->__pyx_v_found_diff) != (0)) __PYX_ERR(0, 1583, __pyx_L1_error);
        __pyx_t_14 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_tolines, __pyx_t_2); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 1583, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "lxml/html/_difflib.py":1582
 *                 if from_line is not None:
 *                     fromlines.append((from_line,found_diff))
 *                 if to_line is not None:             # <<<<<<<<<<<<<<
 *                     tolines.append((to_line,found_diff))
 *             # Once we have a pair, remove them from the collection and yield it
*/
      }
    }

    /* "lxml/html/_difflib.py":1585
 *                     tolines.append((to_line,found_diff))
 *             # Once we have a pair, remove them from the collection and yield it
 *             from_line, fromDiff = fromlines.pop(0)             # <<<<<<<<<<<<<<
 *             to_line, to_diff = tolines.pop(0)
 *             yield (from_line,to_line,fromDiff or to_diff)
*/
    __pyx_t_2 = __Pyx_PyList_PopIndex(__pyx_cur_scope->__pyx_v_fromlines, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 1585, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_10 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_10);
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_9);
      } else {
        __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1585, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_10);
        __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1585, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_9);
      }
      #else
      __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1);
      index = 0; __pyx_t_10 = __pyx_t_12(__pyx_t_1); if (unlikely(!__pyx_t_10)) goto __pyx_L24_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_10);
      index = 1; __pyx_t_9 = __pyx_t_12(__pyx_t_1); if (unlikely(!__pyx_t_9)) goto __pyx_L24_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_9);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_1), 2) < (0)) __PYX_ERR(0, 1585, __pyx_L1_error)
      __pyx_t_12 = NULL;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L25_unpacking_done;
      __pyx_L24_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_12 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1585, __pyx_L1_error)
      __pyx_L25_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_from_line);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_from_line, __pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_10);
    __pyx_t_10 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_fromDiff);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_fromDiff, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    __pyx_t_9 = 0;

    /* "lxml/html/_difflib.py":1586
 *             # Once we have a pair, remove them from the collection and yield it
 *             from_line, fromDiff = fromlines.pop(0)
 *             to_line, to_diff = tolines.pop(0)             # <<<<<<<<<<<<<<
 *             yield (from_line,to_line,fromDiff or to_diff)
 * 
*/
    __pyx_t_2 = __Pyx_PyList_PopIndex(__pyx_cur_scope->__pyx_v_tolines, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 1586, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_9);
        __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_10);
      } else {
        __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1586, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_9);
        __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1586, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_10);
      }
      #else
      __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1586, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1586, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1586, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1);
      index = 0; __pyx_t_9 = __pyx_t_12(__pyx_t_1); if (unlikely(!__pyx_t_9)) goto __pyx_L26_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_9);
      index = 1; __pyx_t_10 = __pyx_t_12(__pyx_t_1); if (unlikely(!__pyx_t_10)) goto __pyx_L26_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_10);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_1), 2) < (0)) __PYX_ERR(0, 1586, __pyx_L1_error)
      __pyx_t_12 = NULL;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L27_unpacking_done;
      __pyx_L26_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_12 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1586, __pyx_L1_error)
      __pyx_L27_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_to_line);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_to_line, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    __pyx_t_9 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_to_diff);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_to_diff, __pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_10);
    __pyx_t_10 = 0;

    /* "lxml/html/_difflib.py":1587
 *             from_line, fromDiff = fromlines.pop(0)
 *             to_line, to_diff = tolines.pop(0)
 *             yield (from_line,to_line,fromDiff or to_diff)             # <<<<<<<<<<<<<<
 * 
 *     # Handle case where user does not want context differencing, just yield
*/
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_fromDiff); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 1587, __pyx_L1_error)
    if (!__pyx_t_3) {
    } else {
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromDiff);
      __pyx_t_2 = __pyx_cur_scope->__pyx_v_fromDiff;
      goto __pyx_L28_bool_binop_done;
    }
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_to_diff);
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_to_diff;
    __pyx_L28_bool_binop_done:;
    __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_from_line);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_from_line);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_cur_scope->__pyx_v_from_line) != (0)) __PYX_ERR(0, 1587, __pyx_L1_error);
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_to_line);
    __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_to_line);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_cur_scope->__pyx_v_to_line) != (0)) __PYX_ERR(0, 1587, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_2) != (0)) __PYX_ERR(0, 1587, __pyx_L1_error);
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_10;
    __pyx_t_10 = 0;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L30_resume_from_yield:;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1587, __pyx_L1_error)
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1558
 *                 yield from_line,to_line,True
 * 
 *     def _line_pair_iterator():             # <<<<<<<<<<<<<<
 *         """Yields from/to lines of text with a change indication.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_line_pair_iterator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1372
 *     return Differ(linejunk, charjunk).compare(a, b)
 * 
 * def _mdiff(fromlines, tolines, context=None, linejunk=None,             # <<<<<<<<<<<<<<
 *            charjunk=IS_CHARACTER_JUNK):
 *     r"""Returns generator yielding marked up from/to side by side differences.
*/

static PyObject *__pyx_gb_4lxml_4html_8_difflib_27generator10(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_PySendResult __pyx_t_7;
  long __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *(*__pyx_t_13)(PyObject *);
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_mdiff", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L5_resume_from_yield_from;
    case 2: goto __pyx_L23_resume_from_yield;
    case 3: goto __pyx_L26_resume_from_yield;
    case 4: goto __pyx_L40_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1372, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1406
 *     function and they in turn will be passed to ndiff.
 *     """
 *     import re             # <<<<<<<<<<<<<<
 * 
 *     # regular expression for finding intraline change indices
*/
  __pyx_t_2 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_re, 0, 0, NULL, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1406, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_2;
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_re = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1409
 * 
 *     # regular expression for finding intraline change indices
 *     change_re = re.compile(r'(\++|\-+|\^+)')             # <<<<<<<<<<<<<<
 * 
 *     # create the difference iterator to generate the differences
*/
  __pyx_t_3 = __pyx_cur_scope->__pyx_v_re;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__38};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_compile, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1409, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_change_re = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1412
 * 
 *     # create the difference iterator to generate the differences
 *     diff_lines_iterator = ndiff(fromlines,tolines,linejunk,charjunk)             # <<<<<<<<<<<<<<
 * 
 *     def _make_line(lines, format_key, side, num_lines=[0,0]):
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ndiff); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_fromlines, __pyx_cur_scope->__pyx_v_tolines, __pyx_cur_scope->__pyx_v_linejunk, __pyx_cur_scope->__pyx_v_charjunk};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1412, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_diff_lines_iterator = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1414
 *     diff_lines_iterator = ndiff(fromlines,tolines,linejunk,charjunk)
 * 
 *     def _make_line(lines, format_key, side, num_lines=[0,0]):             # <<<<<<<<<<<<<<
 *         """Returns line of text with user's change markup and line formatting.
 * 
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6_mdiff_1_make_line, 0, __pyx_mstate_global->__pyx_n_u_mdiff_locals__make_line, ((PyObject*)__pyx_cur_scope), __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults)) __PYX_ERR(0, 1414, __pyx_L1_error)
  __pyx_t_5 = PyList_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1414, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 1, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1414, __pyx_L1_error);
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_1)->arg0 = __pyx_t_5;
  __Pyx_GIVEREF(__pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_1, __pyx_pf_4lxml_4html_8_difflib_39__defaults__);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v__make_line = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1470
 *         return (num_lines[side],text)
 * 
 *     def _line_iterator():             # <<<<<<<<<<<<<<
 *         """Yields from/to lines of text with a change indication.
 * 
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6_mdiff_3_line_iterator, 0, __pyx_mstate_global->__pyx_n_u_mdiff_locals__line_iterator, ((PyObject*)__pyx_cur_scope), __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v__line_iterator = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1558
 *                 yield from_line,to_line,True
 * 
 *     def _line_pair_iterator():             # <<<<<<<<<<<<<<
 *         """Yields from/to lines of text with a change indication.
 * 
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6_mdiff_6_line_pair_iterator, 0, __pyx_mstate_global->__pyx_n_u_mdiff_locals__line_pair_iterato, ((PyObject*)__pyx_cur_scope), __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v__line_pair_iterator = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1591
 *     # Handle case where user does not want context differencing, just yield
 *     # them up without doing anything else with them.
 *     line_pair_iterator = _line_pair_iterator()             # <<<<<<<<<<<<<<
 *     if context is None:
 *         yield from line_pair_iterator
*/
  __pyx_t_1 = __pyx_pf_4lxml_4html_8_difflib_6_mdiff_5_line_pair_iterator(__pyx_cur_scope->__pyx_v__line_pair_iterator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_cur_scope->__pyx_v_line_pair_iterator = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1592
 *     # them up without doing anything else with them.
 *     line_pair_iterator = _line_pair_iterator()
 *     if context is None:             # <<<<<<<<<<<<<<
 *         yield from line_pair_iterator
 *     # Handle case where user wants context differencing.  We must do some
*/
  __pyx_t_6 = (__pyx_cur_scope->__pyx_v_context == Py_None);
  if (__pyx_t_6) {

    /* "lxml/html/_difflib.py":1593
 *     line_pair_iterator = _line_pair_iterator()
 *     if context is None:
 *         yield from line_pair_iterator             # <<<<<<<<<<<<<<
 *     # Handle case where user wants context differencing.  We must do some
 *     # storage of lines until we know for sure that they are to be yielded.
*/
    __pyx_t_7 = __Pyx_Generator_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_line_pair_iterator, &__pyx_r);
    if (likely(__pyx_t_7 == PYGEN_NEXT)) {
      __Pyx_GOTREF(__pyx_r);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L5_resume_from_yield_from:;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1593, __pyx_L1_error)
    } else if (likely(__pyx_t_7 == PYGEN_RETURN)) {
      __Pyx_GOTREF(__pyx_r);
      __Pyx_DECREF(__pyx_r); __pyx_r = 0;
    } else {
      __Pyx_XGOTREF(__pyx_r);
      __PYX_ERR(0, 1593, __pyx_L1_error)
    }

    /* "lxml/html/_difflib.py":1592
 *     # them up without doing anything else with them.
 *     line_pair_iterator = _line_pair_iterator()
 *     if context is None:             # <<<<<<<<<<<<<<
 *         yield from line_pair_iterator
 *     # Handle case where user wants context differencing.  We must do some
*/
    goto __pyx_L4;
  }

  /* "lxml/html/_difflib.py":1597
 *     # storage of lines until we know for sure that they are to be yielded.
 *     else:
 *         context += 1             # <<<<<<<<<<<<<<
 *         lines_to_write = 0
 *         while True:
*/
  /*else*/ {
    __pyx_t_1 = __Pyx_PyLong_AddObjC(__pyx_cur_scope->__pyx_v_context, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_context);
    __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_context, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":1598
 *     else:
 *         context += 1
 *         lines_to_write = 0             # <<<<<<<<<<<<<<
 *         while True:
 *             # Store lines up until we find a difference, note use of a
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_cur_scope->__pyx_v_lines_to_write = __pyx_mstate_global->__pyx_int_0;

    /* "lxml/html/_difflib.py":1599
 *         context += 1
 *         lines_to_write = 0
 *         while True:             # <<<<<<<<<<<<<<
 *             # Store lines up until we find a difference, note use of a
 *             # circular queue because we only need to keep around what
*/
    while (1) {

      /* "lxml/html/_difflib.py":1603
 *             # circular queue because we only need to keep around what
 *             # we need for context.
 *             index, contextLines = 0, [None]*(context)             # <<<<<<<<<<<<<<
 *             found_diff = False
 *             while(found_diff is False):
*/
      __pyx_t_8 = 0;
      __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1603, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(Py_None);
      __Pyx_GIVEREF(Py_None);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, Py_None) != (0)) __PYX_ERR(0, 1603, __pyx_L1_error);
      { PyObject* __pyx_temp = PyNumber_InPlaceMultiply(__pyx_t_1, __pyx_cur_scope->__pyx_v_context); if (unlikely(!__pyx_temp)) __PYX_ERR(0, 1603, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_temp);
        __Pyx_DECREF(__pyx_t_1);
        __pyx_t_1 = __pyx_temp;
      }
      __pyx_cur_scope->__pyx_v_index = __pyx_t_8;
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_contextLines);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_contextLines, ((PyObject*)__pyx_t_1));
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/html/_difflib.py":1604
 *             # we need for context.
 *             index, contextLines = 0, [None]*(context)
 *             found_diff = False             # <<<<<<<<<<<<<<
 *             while(found_diff is False):
 *                 try:
*/
      __Pyx_INCREF(Py_False);
      __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_found_diff);
      __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_found_diff, Py_False);
      __Pyx_GIVEREF(Py_False);

      /* "lxml/html/_difflib.py":1605
 *             index, contextLines = 0, [None]*(context)
 *             found_diff = False
 *             while(found_diff is False):             # <<<<<<<<<<<<<<
 *                 try:
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
*/
      while (1) {
        __pyx_t_6 = (__pyx_cur_scope->__pyx_v_found_diff == Py_False);
        if (!__pyx_t_6) break;

        /* "lxml/html/_difflib.py":1606
 *             found_diff = False
 *             while(found_diff is False):
 *                 try:             # <<<<<<<<<<<<<<
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
 *                 except StopIteration:
*/
        {
          __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_9, &__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_2);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_10);
          /*try:*/ {

            /* "lxml/html/_difflib.py":1607
 *             while(found_diff is False):
 *                 try:
 *                     from_line, to_line, found_diff = next(line_pair_iterator)             # <<<<<<<<<<<<<<
 *                 except StopIteration:
 *                     return
*/
            __pyx_t_1 = __Pyx_PyIter_Next(__pyx_cur_scope->__pyx_v_line_pair_iterator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1607, __pyx_L10_error)
            __Pyx_GOTREF(__pyx_t_1);
            if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
              PyObject* sequence = __pyx_t_1;
              Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
              if (unlikely(size != 3)) {
                if (size > 3) __Pyx_RaiseTooManyValuesError(3);
                else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
                __PYX_ERR(0, 1607, __pyx_L10_error)
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              if (likely(PyTuple_CheckExact(sequence))) {
                __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
                __Pyx_INCREF(__pyx_t_5);
                __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
                __Pyx_INCREF(__pyx_t_3);
                __pyx_t_11 = PyTuple_GET_ITEM(sequence, 2);
                __Pyx_INCREF(__pyx_t_11);
              } else {
                __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1607, __pyx_L10_error)
                __Pyx_XGOTREF(__pyx_t_5);
                __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1607, __pyx_L10_error)
                __Pyx_XGOTREF(__pyx_t_3);
                __pyx_t_11 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1607, __pyx_L10_error)
                __Pyx_XGOTREF(__pyx_t_11);
              }
              #else
              __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1607, __pyx_L10_error)
              __Pyx_GOTREF(__pyx_t_5);
              __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1607, __pyx_L10_error)
              __Pyx_GOTREF(__pyx_t_3);
              __pyx_t_11 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1607, __pyx_L10_error)
              __Pyx_GOTREF(__pyx_t_11);
              #endif
              __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            } else {
              Py_ssize_t index = -1;
              __pyx_t_12 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1607, __pyx_L10_error)
              __Pyx_GOTREF(__pyx_t_12);
              __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
              __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12);
              index = 0; __pyx_t_5 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_5)) goto __pyx_L18_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_5);
              index = 1; __pyx_t_3 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_3)) goto __pyx_L18_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_3);
              index = 2; __pyx_t_11 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_11)) goto __pyx_L18_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_11);
              if (__Pyx_IternextUnpackEndCheck(__pyx_t_13(__pyx_t_12), 3) < (0)) __PYX_ERR(0, 1607, __pyx_L10_error)
              __pyx_t_13 = NULL;
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
              goto __pyx_L19_unpacking_done;
              __pyx_L18_unpacking_failed:;
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
              __pyx_t_13 = NULL;
              if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
              __PYX_ERR(0, 1607, __pyx_L10_error)
              __pyx_L19_unpacking_done:;
            }
            __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_from_line);
            __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_from_line, __pyx_t_5);
            __Pyx_GIVEREF(__pyx_t_5);
            __pyx_t_5 = 0;
            __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_to_line);
            __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_to_line, __pyx_t_3);
            __Pyx_GIVEREF(__pyx_t_3);
            __pyx_t_3 = 0;
            __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_found_diff);
            __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_found_diff, __pyx_t_11);
            __Pyx_GIVEREF(__pyx_t_11);
            __pyx_t_11 = 0;

            /* "lxml/html/_difflib.py":1606
 *             found_diff = False
 *             while(found_diff is False):
 *                 try:             # <<<<<<<<<<<<<<
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
 *                 except StopIteration:
*/
          }
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          goto __pyx_L17_try_end;
          __pyx_L10_error:;
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

          /* "lxml/html/_difflib.py":1608
 *                 try:
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
 *                 except StopIteration:             # <<<<<<<<<<<<<<
 *                     return
 *                 i = index % context
*/
          __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_StopIteration))));
          if (__pyx_t_14) {
            __Pyx_ErrRestore(0,0,0);

            /* "lxml/html/_difflib.py":1609
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
 *                 except StopIteration:
 *                     return             # <<<<<<<<<<<<<<
 *                 i = index % context
 *                 contextLines[i] = (from_line, to_line, found_diff)
*/
            __Pyx_XDECREF(__pyx_r);
            __pyx_r = Py_None; __Pyx_INCREF(Py_None);
            goto __pyx_L13_except_return;
          }
          goto __pyx_L12_except_error;

          /* "lxml/html/_difflib.py":1606
 *             found_diff = False
 *             while(found_diff is False):
 *                 try:             # <<<<<<<<<<<<<<
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
 *                 except StopIteration:
*/
          __pyx_L12_except_error:;
          __Pyx_XGIVEREF(__pyx_t_2);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_9, __pyx_t_10);
          goto __pyx_L1_error;
          __pyx_L13_except_return:;
          __Pyx_XGIVEREF(__pyx_t_2);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_9, __pyx_t_10);
          goto __pyx_L0;
          __pyx_L17_try_end:;
        }

        /* "lxml/html/_difflib.py":1610
 *                 except StopIteration:
 *                     return
 *                 i = index % context             # <<<<<<<<<<<<<<
 *                 contextLines[i] = (from_line, to_line, found_diff)
 *                 index += 1
*/
        __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_cur_scope->__pyx_v_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1610, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_11 = PyNumber_Remainder(__pyx_t_1, __pyx_cur_scope->__pyx_v_context); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1610, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i, __pyx_t_11);
        __Pyx_GIVEREF(__pyx_t_11);
        __pyx_t_11 = 0;

        /* "lxml/html/_difflib.py":1611
 *                     return
 *                 i = index % context
 *                 contextLines[i] = (from_line, to_line, found_diff)             # <<<<<<<<<<<<<<
 *                 index += 1
 *             # Yield lines that we have collected so far, but first yield
*/
        __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1611, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_cur_scope->__pyx_v_from_line);
        __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_from_line);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_cur_scope->__pyx_v_from_line) != (0)) __PYX_ERR(0, 1611, __pyx_L1_error);
        __Pyx_INCREF(__pyx_cur_scope->__pyx_v_to_line);
        __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_to_line);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_cur_scope->__pyx_v_to_line) != (0)) __PYX_ERR(0, 1611, __pyx_L1_error);
        __Pyx_INCREF(__pyx_cur_scope->__pyx_v_found_diff);
        __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_found_diff);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_cur_scope->__pyx_v_found_diff) != (0)) __PYX_ERR(0, 1611, __pyx_L1_error);
        if (unlikely((PyObject_SetItem(__pyx_cur_scope->__pyx_v_contextLines, __pyx_cur_scope->__pyx_v_i, __pyx_t_11) < 0))) __PYX_ERR(0, 1611, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

        /* "lxml/html/_difflib.py":1612
 *                 i = index % context
 *                 contextLines[i] = (from_line, to_line, found_diff)
 *                 index += 1             # <<<<<<<<<<<<<<
 *             # Yield lines that we have collected so far, but first yield
 *             # the user's separator.
*/
        __pyx_cur_scope->__pyx_v_index = (__pyx_cur_scope->__pyx_v_index + 1);
      }

      /* "lxml/html/_difflib.py":1615
 *             # Yield lines that we have collected so far, but first yield
 *             # the user's separator.
 *             if index > context:             # <<<<<<<<<<<<<<
 *                 yield None, None, None
 *                 lines_to_write = context
*/
      __pyx_t_11 = __Pyx_PyLong_From_long(__pyx_cur_scope->__pyx_v_index); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1615, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_1 = PyObject_RichCompare(__pyx_t_11, __pyx_cur_scope->__pyx_v_context, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1615, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1615, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_6) {

        /* "lxml/html/_difflib.py":1616
 *             # the user's separator.
 *             if index > context:
 *                 yield None, None, None             # <<<<<<<<<<<<<<
 *                 lines_to_write = context
 *             else:
*/
        __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[7]);
        __pyx_r = __pyx_mstate_global->__pyx_tuple[7];
        __Pyx_XGIVEREF(__pyx_r);
        __Pyx_RefNannyFinishContext();
        __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
        /* return from generator, yielding value */
        __pyx_generator->resume_label = 2;
        return __pyx_r;
        __pyx_L23_resume_from_yield:;
        if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1616, __pyx_L1_error)

        /* "lxml/html/_difflib.py":1617
 *             if index > context:
 *                 yield None, None, None
 *                 lines_to_write = context             # <<<<<<<<<<<<<<
 *             else:
 *                 lines_to_write = index
*/
        __Pyx_INCREF(__pyx_cur_scope->__pyx_v_context);
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_lines_to_write);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_lines_to_write, __pyx_cur_scope->__pyx_v_context);
        __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_context);

        /* "lxml/html/_difflib.py":1615
 *             # Yield lines that we have collected so far, but first yield
 *             # the user's separator.
 *             if index > context:             # <<<<<<<<<<<<<<
 *                 yield None, None, None
 *                 lines_to_write = context
*/
        goto __pyx_L22;
      }

      /* "lxml/html/_difflib.py":1619
 *                 lines_to_write = context
 *             else:
 *                 lines_to_write = index             # <<<<<<<<<<<<<<
 *                 index = 0
 *             while(lines_to_write):
*/
      /*else*/ {
        __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_cur_scope->__pyx_v_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1619, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_lines_to_write);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_lines_to_write, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_1);
        __pyx_t_1 = 0;

        /* "lxml/html/_difflib.py":1620
 *             else:
 *                 lines_to_write = index
 *                 index = 0             # <<<<<<<<<<<<<<
 *             while(lines_to_write):
 *                 i = index % context
*/
        __pyx_cur_scope->__pyx_v_index = 0;
      }
      __pyx_L22:;

      /* "lxml/html/_difflib.py":1621
 *                 lines_to_write = index
 *                 index = 0
 *             while(lines_to_write):             # <<<<<<<<<<<<<<
 *                 i = index % context
 *                 index += 1
*/
      while (1) {
        __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_lines_to_write); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1621, __pyx_L1_error)
        if (!__pyx_t_6) break;

        /* "lxml/html/_difflib.py":1622
 *                 index = 0
 *             while(lines_to_write):
 *                 i = index % context             # <<<<<<<<<<<<<<
 *                 index += 1
 *                 yield contextLines[i]
*/
        __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_cur_scope->__pyx_v_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1622, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_11 = PyNumber_Remainder(__pyx_t_1, __pyx_cur_scope->__pyx_v_context); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1622, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_i);
        __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_i, __pyx_t_11);
        __Pyx_GIVEREF(__pyx_t_11);
        __pyx_t_11 = 0;

        /* "lxml/html/_difflib.py":1623
 *             while(lines_to_write):
 *                 i = index % context
 *                 index += 1             # <<<<<<<<<<<<<<
 *                 yield contextLines[i]
 *                 lines_to_write -= 1
*/
        __pyx_cur_scope->__pyx_v_index = (__pyx_cur_scope->__pyx_v_index + 1);

        /* "lxml/html/_difflib.py":1624
 *                 i = index % context
 *                 index += 1
 *                 yield contextLines[i]             # <<<<<<<<<<<<<<
 *                 lines_to_write -= 1
 *             # Now yield the context lines after the change
*/
        __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_v_contextLines, __pyx_cur_scope->__pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1624, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_r = __pyx_t_11;
        __pyx_t_11 = 0;
        __Pyx_XGIVEREF(__pyx_r);
        __Pyx_RefNannyFinishContext();
        __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
        /* return from generator, yielding value */
        __pyx_generator->resume_label = 3;
        return __pyx_r;
        __pyx_L26_resume_from_yield:;
        if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1624, __pyx_L1_error)

        /* "lxml/html/_difflib.py":1625
 *                 index += 1
 *                 yield contextLines[i]
 *                 lines_to_write -= 1             # <<<<<<<<<<<<<<
 *             # Now yield the context lines after the change
 *             lines_to_write = context-1
*/
        __pyx_t_11 = __Pyx_PyLong_SubtractObjC(__pyx_cur_scope->__pyx_v_lines_to_write, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1625, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_lines_to_write);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_lines_to_write, __pyx_t_11);
        __Pyx_GIVEREF(__pyx_t_11);
        __pyx_t_11 = 0;
      }

      /* "lxml/html/_difflib.py":1627
 *                 lines_to_write -= 1
 *             # Now yield the context lines after the change
 *             lines_to_write = context-1             # <<<<<<<<<<<<<<
 *             try:
 *                 while(lines_to_write):
*/
      __pyx_t_11 = __Pyx_PyLong_SubtractObjC(__pyx_cur_scope->__pyx_v_context, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1627, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_lines_to_write);
      __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_lines_to_write, __pyx_t_11);
      __Pyx_GIVEREF(__pyx_t_11);
      __pyx_t_11 = 0;

      /* "lxml/html/_difflib.py":1628
 *             # Now yield the context lines after the change
 *             lines_to_write = context-1
 *             try:             # <<<<<<<<<<<<<<
 *                 while(lines_to_write):
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
*/
      {
        __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_9, &__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_2);
        /*try:*/ {

          /* "lxml/html/_difflib.py":1629
 *             lines_to_write = context-1
 *             try:
 *                 while(lines_to_write):             # <<<<<<<<<<<<<<
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
 *                     # If another change within the context, extend the context
*/
          while (1) {
            __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_lines_to_write); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1629, __pyx_L27_error)
            if (!__pyx_t_6) break;

            /* "lxml/html/_difflib.py":1630
 *             try:
 *                 while(lines_to_write):
 *                     from_line, to_line, found_diff = next(line_pair_iterator)             # <<<<<<<<<<<<<<
 *                     # If another change within the context, extend the context
 *                     if found_diff:
*/
            __pyx_t_11 = __Pyx_PyIter_Next(__pyx_cur_scope->__pyx_v_line_pair_iterator); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1630, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_11);
            if ((likely(PyTuple_CheckExact(__pyx_t_11))) || (PyList_CheckExact(__pyx_t_11))) {
              PyObject* sequence = __pyx_t_11;
              Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
              if (unlikely(size != 3)) {
                if (size > 3) __Pyx_RaiseTooManyValuesError(3);
                else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
                __PYX_ERR(0, 1630, __pyx_L27_error)
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              if (likely(PyTuple_CheckExact(sequence))) {
                __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
                __Pyx_INCREF(__pyx_t_1);
                __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
                __Pyx_INCREF(__pyx_t_3);
                __pyx_t_5 = PyTuple_GET_ITEM(sequence, 2);
                __Pyx_INCREF(__pyx_t_5);
              } else {
                __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1630, __pyx_L27_error)
                __Pyx_XGOTREF(__pyx_t_1);
                __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1630, __pyx_L27_error)
                __Pyx_XGOTREF(__pyx_t_3);
                __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1630, __pyx_L27_error)
                __Pyx_XGOTREF(__pyx_t_5);
              }
              #else
              __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1630, __pyx_L27_error)
              __Pyx_GOTREF(__pyx_t_1);
              __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1630, __pyx_L27_error)
              __Pyx_GOTREF(__pyx_t_3);
              __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1630, __pyx_L27_error)
              __Pyx_GOTREF(__pyx_t_5);
              #endif
              __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            } else {
              Py_ssize_t index = -1;
              __pyx_t_12 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1630, __pyx_L27_error)
              __Pyx_GOTREF(__pyx_t_12);
              __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
              __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12);
              index = 0; __pyx_t_1 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_1)) goto __pyx_L37_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_1);
              index = 1; __pyx_t_3 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_3)) goto __pyx_L37_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_3);
              index = 2; __pyx_t_5 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_5)) goto __pyx_L37_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_5);
              if (__Pyx_IternextUnpackEndCheck(__pyx_t_13(__pyx_t_12), 3) < (0)) __PYX_ERR(0, 1630, __pyx_L27_error)
              __pyx_t_13 = NULL;
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
              goto __pyx_L38_unpacking_done;
              __pyx_L37_unpacking_failed:;
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
              __pyx_t_13 = NULL;
              if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
              __PYX_ERR(0, 1630, __pyx_L27_error)
              __pyx_L38_unpacking_done:;
            }
            __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_from_line);
            __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_from_line, __pyx_t_1);
            __Pyx_GIVEREF(__pyx_t_1);
            __pyx_t_1 = 0;
            __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_to_line);
            __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_to_line, __pyx_t_3);
            __Pyx_GIVEREF(__pyx_t_3);
            __pyx_t_3 = 0;
            __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_found_diff);
            __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_found_diff, __pyx_t_5);
            __Pyx_GIVEREF(__pyx_t_5);
            __pyx_t_5 = 0;

            /* "lxml/html/_difflib.py":1632
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
 *                     # If another change within the context, extend the context
 *                     if found_diff:             # <<<<<<<<<<<<<<
 *                         lines_to_write = context-1
 *                     else:
*/
            __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_found_diff); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1632, __pyx_L27_error)
            if (__pyx_t_6) {

              /* "lxml/html/_difflib.py":1633
 *                     # If another change within the context, extend the context
 *                     if found_diff:
 *                         lines_to_write = context-1             # <<<<<<<<<<<<<<
 *                     else:
 *                         lines_to_write -= 1
*/
              __pyx_t_11 = __Pyx_PyLong_SubtractObjC(__pyx_cur_scope->__pyx_v_context, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1633, __pyx_L27_error)
              __Pyx_GOTREF(__pyx_t_11);
              __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_lines_to_write);
              __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_lines_to_write, __pyx_t_11);
              __Pyx_GIVEREF(__pyx_t_11);
              __pyx_t_11 = 0;

              /* "lxml/html/_difflib.py":1632
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
 *                     # If another change within the context, extend the context
 *                     if found_diff:             # <<<<<<<<<<<<<<
 *                         lines_to_write = context-1
 *                     else:
*/
              goto __pyx_L39;
            }

            /* "lxml/html/_difflib.py":1635
 *                         lines_to_write = context-1
 *                     else:
 *                         lines_to_write -= 1             # <<<<<<<<<<<<<<
 *                     yield from_line, to_line, found_diff
 *             except StopIteration:
*/
            /*else*/ {
              __pyx_t_11 = __Pyx_PyLong_SubtractObjC(__pyx_cur_scope->__pyx_v_lines_to_write, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1635, __pyx_L27_error)
              __Pyx_GOTREF(__pyx_t_11);
              __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_lines_to_write);
              __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_lines_to_write, __pyx_t_11);
              __Pyx_GIVEREF(__pyx_t_11);
              __pyx_t_11 = 0;
            }
            __pyx_L39:;

            /* "lxml/html/_difflib.py":1636
 *                     else:
 *                         lines_to_write -= 1
 *                     yield from_line, to_line, found_diff             # <<<<<<<<<<<<<<
 *             except StopIteration:
 *                 # Catch exception from next() and return normally
*/
            __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1636, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_11);
            __Pyx_INCREF(__pyx_cur_scope->__pyx_v_from_line);
            __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_from_line);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_cur_scope->__pyx_v_from_line) != (0)) __PYX_ERR(0, 1636, __pyx_L27_error);
            __Pyx_INCREF(__pyx_cur_scope->__pyx_v_to_line);
            __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_to_line);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_cur_scope->__pyx_v_to_line) != (0)) __PYX_ERR(0, 1636, __pyx_L27_error);
            __Pyx_INCREF(__pyx_cur_scope->__pyx_v_found_diff);
            __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_found_diff);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_cur_scope->__pyx_v_found_diff) != (0)) __PYX_ERR(0, 1636, __pyx_L27_error);
            __pyx_r = __pyx_t_11;
            __pyx_t_11 = 0;
            __Pyx_XGIVEREF(__pyx_t_2);
            __pyx_cur_scope->__pyx_t_0 = __pyx_t_2;
            __Pyx_XGIVEREF(__pyx_t_9);
            __pyx_cur_scope->__pyx_t_1 = __pyx_t_9;
            __Pyx_XGIVEREF(__pyx_t_10);
            __pyx_cur_scope->__pyx_t_2 = __pyx_t_10;
            __Pyx_XGIVEREF(__pyx_r);
            __Pyx_RefNannyFinishContext();
            __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
            /* return from generator, yielding value */
            __pyx_generator->resume_label = 4;
            return __pyx_r;
            __pyx_L40_resume_from_yield:;
            __pyx_t_2 = __pyx_cur_scope->__pyx_t_0;
            __pyx_cur_scope->__pyx_t_0 = 0;
            __Pyx_XGOTREF(__pyx_t_2);
            __pyx_t_9 = __pyx_cur_scope->__pyx_t_1;
            __pyx_cur_scope->__pyx_t_1 = 0;
            __Pyx_XGOTREF(__pyx_t_9);
            __pyx_t_10 = __pyx_cur_scope->__pyx_t_2;
            __pyx_cur_scope->__pyx_t_2 = 0;
            __Pyx_XGOTREF(__pyx_t_10);
            if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1636, __pyx_L27_error)
          }

          /* "lxml/html/_difflib.py":1628
 *             # Now yield the context lines after the change
 *             lines_to_write = context-1
 *             try:             # <<<<<<<<<<<<<<
 *                 while(lines_to_write):
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
*/
        }
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L34_try_end;
        __pyx_L27_error:;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "lxml/html/_difflib.py":1637
 *                         lines_to_write -= 1
 *                     yield from_line, to_line, found_diff
 *             except StopIteration:             # <<<<<<<<<<<<<<
 *                 # Catch exception from next() and return normally
 *                 return
*/
        __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_StopIteration))));
        if (__pyx_t_14) {
          __Pyx_ErrRestore(0,0,0);

          /* "lxml/html/_difflib.py":1639
 *             except StopIteration:
 *                 # Catch exception from next() and return normally
 *                 return             # <<<<<<<<<<<<<<
 * 
 * 
*/
          __Pyx_XDECREF(__pyx_r);
          __pyx_r = Py_None; __Pyx_INCREF(Py_None);
          goto __pyx_L30_except_return;
        }
        goto __pyx_L29_except_error;

        /* "lxml/html/_difflib.py":1628
 *             # Now yield the context lines after the change
 *             lines_to_write = context-1
 *             try:             # <<<<<<<<<<<<<<
 *                 while(lines_to_write):
 *                     from_line, to_line, found_diff = next(line_pair_iterator)
*/
        __pyx_L29_except_error:;
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_2);
        __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_2);
        goto __pyx_L1_error;
        __pyx_L30_except_return:;
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_2);
        __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_2);
        goto __pyx_L0;
        __pyx_L34_try_end:;
      }
    }
  }
  __pyx_L4:;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1372
 *     return Differ(linejunk, charjunk).compare(a, b)
 * 
 * def _mdiff(fromlines, tolines, context=None, linejunk=None,             # <<<<<<<<<<<<<<
 *            charjunk=IS_CHARACTER_JUNK):
 *     r"""Returns generator yielding marked up from/to side by side differences.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_mdiff", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1751
 *     _default_prefix = 0
 * 
 *     def __init__(self,tabsize=8,wrapcolumn=None,linejunk=None,             # <<<<<<<<<<<<<<
 *                  charjunk=IS_CHARACTER_JUNK):
 *         """HtmlDiff instance initializer
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_37__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1751, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject*)__pyx_mstate_global->__pyx_int_8));
  __Pyx_GIVEREF(((PyObject*)__pyx_mstate_global->__pyx_int_8));
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject*)__pyx_mstate_global->__pyx_int_8)) != (0)) __PYX_ERR(0, 1751, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 1751, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None) != (0)) __PYX_ERR(0, 1751, __pyx_L1_error);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 3, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(0, 1751, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1751, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1751, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 1751, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff___init__, "HtmlDiff instance initializer\n\n        Arguments:\n        tabsize -- tab stop spacing, defaults to 8.\n        wrapcolumn -- column number where lines are broken and wrapped,\n            defaults to None where lines are not wrapped.\n        linejunk,charjunk -- keyword arguments passed into ndiff() (used by\n            HtmlDiff() to generate the side by side HTML differences).  See\n            ndiff() documentation for argument default values and descriptions.\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff___init__};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_tabsize = 0;
  PyObject *__pyx_v_wrapcolumn = 0;
  PyObject *__pyx_v_linejunk = 0;
  PyObject *__pyx_v_charjunk = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_tabsize,&__pyx_mstate_global->__pyx_n_u_wrapcolumn,&__pyx_mstate_global->__pyx_n_u_linejunk,&__pyx_mstate_global->__pyx_n_u_charjunk,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1751, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 1751, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_8)));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[4]) values[4] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 5, i); __PYX_ERR(0, 1751, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1751, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1751, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_8)));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[4]) values[4] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_self = values[0];
    __pyx_v_tabsize = values[1];
    __pyx_v_wrapcolumn = values[2];
    __pyx_v_linejunk = values[3];
    __pyx_v_charjunk = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 5, __pyx_nargs); __PYX_ERR(0, 1751, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff___init__(__pyx_self, __pyx_v_self, __pyx_v_tabsize, __pyx_v_wrapcolumn, __pyx_v_linejunk, __pyx_v_charjunk);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_tabsize, PyObject *__pyx_v_wrapcolumn, PyObject *__pyx_v_linejunk, PyObject *__pyx_v_charjunk) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "lxml/html/_difflib.py":1763
 *             ndiff() documentation for argument default values and descriptions.
 *         """
 *         self._tabsize = tabsize             # <<<<<<<<<<<<<<
 *         self._wrapcolumn = wrapcolumn
 *         self._linejunk = linejunk
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_tabsize_2, __pyx_v_tabsize) < (0)) __PYX_ERR(0, 1763, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1764
 *         """
 *         self._tabsize = tabsize
 *         self._wrapcolumn = wrapcolumn             # <<<<<<<<<<<<<<
 *         self._linejunk = linejunk
 *         self._charjunk = charjunk
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_wrapcolumn_2, __pyx_v_wrapcolumn) < (0)) __PYX_ERR(0, 1764, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1765
 *         self._tabsize = tabsize
 *         self._wrapcolumn = wrapcolumn
 *         self._linejunk = linejunk             # <<<<<<<<<<<<<<
 *         self._charjunk = charjunk
 * 
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_linejunk_2, __pyx_v_linejunk) < (0)) __PYX_ERR(0, 1765, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1766
 *         self._wrapcolumn = wrapcolumn
 *         self._linejunk = linejunk
 *         self._charjunk = charjunk             # <<<<<<<<<<<<<<
 * 
 *     def make_file(self, fromlines, tolines, fromdesc='', todesc='',
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_charjunk_2, __pyx_v_charjunk) < (0)) __PYX_ERR(0, 1766, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1751
 *     _default_prefix = 0
 * 
 *     def __init__(self,tabsize=8,wrapcolumn=None,linejunk=None,             # <<<<<<<<<<<<<<
 *                  charjunk=IS_CHARACTER_JUNK):
 *         """HtmlDiff instance initializer
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1768
 *         self._charjunk = charjunk
 * 
 *     def make_file(self, fromlines, tolines, fromdesc='', todesc='',             # <<<<<<<<<<<<<<
 *                   context=False, numlines=5, *, charset='utf-8'):
 *         """Returns HTML file of side by side comparison with change highlights
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_3make_file(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_2make_file, "Returns HTML file of side by side comparison with change highlights\n\n        Arguments:\n        fromlines -- list of \"from\" lines\n        tolines -- list of \"to\" lines\n        fromdesc -- \"from\" file column header string\n        todesc -- \"to\" file column header string\n        context -- set to True for contextual differences (defaults to False\n            which shows full differences).\n        numlines -- number of context lines.  When context is set True,\n            controls number of lines displayed before and after the change.\n            When context is False, controls the number of lines to place\n            the \"next\" link anchors before the next change (so click of\n            \"next\" link jumps to just before the change).\n        charset -- charset of the HTML document\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_3make_file = {"make_file", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_3make_file, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_2make_file};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_3make_file(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_fromlines = 0;
  PyObject *__pyx_v_tolines = 0;
  PyObject *__pyx_v_fromdesc = 0;
  PyObject *__pyx_v_todesc = 0;
  PyObject *__pyx_v_context = 0;
  PyObject *__pyx_v_numlines = 0;
  PyObject *__pyx_v_charset = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_file (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_fromlines,&__pyx_mstate_global->__pyx_n_u_tolines,&__pyx_mstate_global->__pyx_n_u_fromdesc,&__pyx_mstate_global->__pyx_n_u_todesc,&__pyx_mstate_global->__pyx_n_u_context,&__pyx_mstate_global->__pyx_n_u_numlines,&__pyx_mstate_global->__pyx_n_u_charset,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1768, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "make_file", 0) < (0)) __PYX_ERR(0, 1768, __pyx_L3_error)
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));

      /* "lxml/html/_difflib.py":1769
 * 
 *     def make_file(self, fromlines, tolines, fromdesc='', todesc='',
 *                   context=False, numlines=5, *, charset='utf-8'):             # <<<<<<<<<<<<<<
 *         """Returns HTML file of side by side comparison with change highlights
 * 
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_False)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_5)));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u_utf_8)));
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("make_file", 0, 3, 7, i); __PYX_ERR(0, 1768, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1768, __pyx_L3_error)
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1768, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1768, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_False)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_5)));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u_utf_8)));
    }
    __pyx_v_self = values[0];
    __pyx_v_fromlines = values[1];
    __pyx_v_tolines = values[2];
    __pyx_v_fromdesc = values[3];
    __pyx_v_todesc = values[4];
    __pyx_v_context = values[5];
    __pyx_v_numlines = values[6];
    __pyx_v_charset = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("make_file", 0, 3, 7, __pyx_nargs); __PYX_ERR(0, 1768, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff.make_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_2make_file(__pyx_self, __pyx_v_self, __pyx_v_fromlines, __pyx_v_tolines, __pyx_v_fromdesc, __pyx_v_todesc, __pyx_v_context, __pyx_v_numlines, __pyx_v_charset);

  /* "lxml/html/_difflib.py":1768
 *         self._charjunk = charjunk
 * 
 *     def make_file(self, fromlines, tolines, fromdesc='', todesc='',             # <<<<<<<<<<<<<<
 *                   context=False, numlines=5, *, charset='utf-8'):
 *         """Returns HTML file of side by side comparison with change highlights
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_2make_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fromlines, PyObject *__pyx_v_tolines, PyObject *__pyx_v_fromdesc, PyObject *__pyx_v_todesc, PyObject *__pyx_v_context, PyObject *__pyx_v_numlines, PyObject *__pyx_v_charset) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("make_file", 0);

  /* "lxml/html/_difflib.py":1787
 *         """
 * 
 *         return (self._file_template % dict(             # <<<<<<<<<<<<<<
 *             styles=self._styles,
 *             legend=self._legend,
*/
  __Pyx_XDECREF(__pyx_r);

  /* "lxml/html/_difflib.py":1793
 *                                   context=context, numlines=numlines),
 *             charset=charset
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)             # <<<<<<<<<<<<<<
 * 
 *     def _tab_newline_replace(self,fromlines,tolines):
*/
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_file_template); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "lxml/html/_difflib.py":1788
 * 
 *         return (self._file_template % dict(
 *             styles=self._styles,             # <<<<<<<<<<<<<<
 *             legend=self._legend,
 *             table=self.make_table(fromlines, tolines, fromdesc, todesc,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1788, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_styles_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1788, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_styles, __pyx_t_7) < (0)) __PYX_ERR(0, 1788, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "lxml/html/_difflib.py":1789
 *         return (self._file_template % dict(
 *             styles=self._styles,
 *             legend=self._legend,             # <<<<<<<<<<<<<<
 *             table=self.make_table(fromlines, tolines, fromdesc, todesc,
 *                                   context=context, numlines=numlines),
*/
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_legend_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_legend, __pyx_t_7) < (0)) __PYX_ERR(0, 1788, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "lxml/html/_difflib.py":1790
 *             styles=self._styles,
 *             legend=self._legend,
 *             table=self.make_table(fromlines, tolines, fromdesc, todesc,             # <<<<<<<<<<<<<<
 *                                   context=context, numlines=numlines),
 *             charset=charset
*/
  __pyx_t_8 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_8);

  /* "lxml/html/_difflib.py":1791
 *             legend=self._legend,
 *             table=self.make_table(fromlines, tolines, fromdesc, todesc,
 *                                   context=context, numlines=numlines),             # <<<<<<<<<<<<<<
 *             charset=charset
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)
*/
  __pyx_t_9 = 0;
  {
    PyObject *__pyx_callargs[5 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_8, __pyx_v_fromlines, __pyx_v_tolines, __pyx_v_fromdesc, __pyx_v_todesc};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_context, __pyx_v_context, __pyx_t_10, __pyx_callargs+5, 0) < (0)) __PYX_ERR(0, 1790, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_numlines, __pyx_v_numlines, __pyx_t_10, __pyx_callargs+5, 1) < (0)) __PYX_ERR(0, 1790, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_make_table, __pyx_callargs+__pyx_t_9, (5-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_table, __pyx_t_7) < (0)) __PYX_ERR(0, 1788, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "lxml/html/_difflib.py":1792
 *             table=self.make_table(fromlines, tolines, fromdesc, todesc,
 *                                   context=context, numlines=numlines),
 *             charset=charset             # <<<<<<<<<<<<<<
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)
 * 
*/
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_charset, __pyx_v_charset) < (0)) __PYX_ERR(0, 1788, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1787
 *         """
 * 
 *         return (self._file_template % dict(             # <<<<<<<<<<<<<<
 *             styles=self._styles,
 *             legend=self._legend,
*/
  __pyx_t_7 = PyNumber_Remainder(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_4 = __pyx_t_7;
  __Pyx_INCREF(__pyx_t_4);

  /* "lxml/html/_difflib.py":1793
 *                                   context=context, numlines=numlines),
 *             charset=charset
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)             # <<<<<<<<<<<<<<
 * 
 *     def _tab_newline_replace(self,fromlines,tolines):
*/
  __pyx_t_9 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_charset, __pyx_mstate_global->__pyx_n_u_xmlcharrefreplace};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_9, (3-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_9 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_charset};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_decode, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1768
 *         self._charjunk = charjunk
 * 
 *     def make_file(self, fromlines, tolines, fromdesc='', todesc='',             # <<<<<<<<<<<<<<
 *                   context=False, numlines=5, *, charset='utf-8'):
 *         """Returns HTML file of side by side comparison with change highlights
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff.make_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1795
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)
 * 
 *     def _tab_newline_replace(self,fromlines,tolines):             # <<<<<<<<<<<<<<
 *         """Returns from/to line lists with tabs expanded and newlines removed.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_5_tab_newline_replace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_4_tab_newline_replace, "Returns from/to line lists with tabs expanded and newlines removed.\n\n        Instead of tab characters being replaced by the number of spaces\n        needed to fill in to the next tab stop, this function will fill\n        the space with tab characters.  This is done so that the difference\n        algorithms can identify changes in a file when tabs are replaced by\n        spaces and vice versa.  At the end of the HTML generation, the tab\n        characters will be replaced with a nonbreakable space.\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_5_tab_newline_replace = {"_tab_newline_replace", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_5_tab_newline_replace, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_4_tab_newline_replace};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_5_tab_newline_replace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_fromlines = 0;
  PyObject *__pyx_v_tolines = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_tab_newline_replace (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_fromlines,&__pyx_mstate_global->__pyx_n_u_tolines,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1795, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1795, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1795, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1795, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_tab_newline_replace", 0) < (0)) __PYX_ERR(0, 1795, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_tab_newline_replace", 1, 3, 3, i); __PYX_ERR(0, 1795, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1795, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1795, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1795, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_fromlines = values[1];
    __pyx_v_tolines = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_tab_newline_replace", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1795, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._tab_newline_replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_4_tab_newline_replace(__pyx_self, __pyx_v_self, __pyx_v_fromlines, __pyx_v_tolines);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1805
 *         characters will be replaced with a nonbreakable space.
 *         """
 *         def expand_tabs(line):             # <<<<<<<<<<<<<<
 *             # hide real spaces
 *             line = line.replace(' ','\0')
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_1expand_tabs(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_1expand_tabs = {"expand_tabs", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_1expand_tabs, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_1expand_tabs(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_line = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("expand_tabs (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_line,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1805, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1805, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "expand_tabs", 0) < (0)) __PYX_ERR(0, 1805, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("expand_tabs", 1, 1, 1, i); __PYX_ERR(0, 1805, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1805, __pyx_L3_error)
    }
    __pyx_v_line = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("expand_tabs", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1805, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._tab_newline_replace.expand_tabs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_expand_tabs(__pyx_self, __pyx_v_line);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_expand_tabs(PyObject *__pyx_self, PyObject *__pyx_v_line) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *__pyx_cur_scope;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *__pyx_outer_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("expand_tabs", 0);
  __pyx_outer_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *) __Pyx_CyFunction_GetClosure(__pyx_self);
  __pyx_cur_scope = __pyx_outer_scope;
  __Pyx_INCREF(__pyx_v_line);

  /* "lxml/html/_difflib.py":1807
 *         def expand_tabs(line):
 *             # hide real spaces
 *             line = line.replace(' ','\0')             # <<<<<<<<<<<<<<
 *             # expand tabs into spaces
 *             line = line.expandtabs(self._tabsize)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_line, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[8], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF_SET(__pyx_v_line, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1809
 *             line = line.replace(' ','\0')
 *             # expand tabs into spaces
 *             line = line.expandtabs(self._tabsize)             # <<<<<<<<<<<<<<
 *             # replace spaces from expanded tabs back into tab characters
 *             # (we'll replace them with markup after we do differencing)
*/
  __pyx_t_1 = __pyx_v_line;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError("self"); __PYX_ERR(0, 1809, __pyx_L1_error) }
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_self, __pyx_mstate_global->__pyx_n_u_tabsize_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_3};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_expandtabs, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1809, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF_SET(__pyx_v_line, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1812
 *             # replace spaces from expanded tabs back into tab characters
 *             # (we'll replace them with markup after we do differencing)
 *             line = line.replace(' ','\t')             # <<<<<<<<<<<<<<
 *             return line.replace('\0',' ').rstrip('\n')
 *         fromlines = [expand_tabs(line) for line in fromlines]
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_line, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[9], NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF_SET(__pyx_v_line, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":1813
 *             # (we'll replace them with markup after we do differencing)
 *             line = line.replace(' ','\t')
 *             return line.replace('\0',' ').rstrip('\n')             # <<<<<<<<<<<<<<
 *         fromlines = [expand_tabs(line) for line in fromlines]
 *         tolines = [expand_tabs(line) for line in tolines]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_line, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[10], NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __pyx_t_5;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u__10};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rstrip, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1813, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1805
 *         characters will be replaced with a nonbreakable space.
 *         """
 *         def expand_tabs(line):             # <<<<<<<<<<<<<<
 *             # hide real spaces
 *             line = line.replace(' ','\0')
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._tab_newline_replace.expand_tabs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1795
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)
 * 
 *     def _tab_newline_replace(self,fromlines,tolines):             # <<<<<<<<<<<<<<
 *         """Returns from/to line lists with tabs expanded and newlines removed.
 * 
*/

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_4_tab_newline_replace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fromlines, PyObject *__pyx_v_tolines) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *__pyx_cur_scope;
  PyObject *__pyx_v_expand_tabs = 0;
  PyObject *__pyx_8genexpr6__pyx_v_line = NULL;
  PyObject *__pyx_8genexpr7__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_tab_newline_replace", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1795, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_INCREF(__pyx_v_fromlines);
  __Pyx_INCREF(__pyx_v_tolines);

  /* "lxml/html/_difflib.py":1805
 *         characters will be replaced with a nonbreakable space.
 *         """
 *         def expand_tabs(line):             # <<<<<<<<<<<<<<
 *             # hide real spaces
 *             line = line.replace(' ','\0')
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_1expand_tabs, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff__tab_newline_replace_lo, ((PyObject*)__pyx_cur_scope), __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_expand_tabs = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1814
 *             line = line.replace(' ','\t')
 *             return line.replace('\0',' ').rstrip('\n')
 *         fromlines = [expand_tabs(line) for line in fromlines]             # <<<<<<<<<<<<<<
 *         tolines = [expand_tabs(line) for line in tolines]
 *         return fromlines,tolines
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1814, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_fromlines)) || PyTuple_CheckExact(__pyx_v_fromlines)) {
      __pyx_t_2 = __pyx_v_fromlines; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = 0;
      __pyx_t_4 = NULL;
    } else {
      __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_fromlines); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1814, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1814, __pyx_L5_error)
    }
    for (;;) {
      if (likely(!__pyx_t_4)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1814, __pyx_L5_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_3;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1814, __pyx_L5_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3);
          #endif
          ++__pyx_t_3;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1814, __pyx_L5_error)
      } else {
        __pyx_t_5 = __pyx_t_4(__pyx_t_2);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1814, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_8genexpr6__pyx_v_line, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_5 = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_expand_tabs(__pyx_v_expand_tabs, __pyx_8genexpr6__pyx_v_line); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1814, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 1814, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_line); __pyx_8genexpr6__pyx_v_line = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_line); __pyx_8genexpr6__pyx_v_line = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __Pyx_DECREF_SET(__pyx_v_fromlines, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1815
 *             return line.replace('\0',' ').rstrip('\n')
 *         fromlines = [expand_tabs(line) for line in fromlines]
 *         tolines = [expand_tabs(line) for line in tolines]             # <<<<<<<<<<<<<<
 *         return fromlines,tolines
 * 
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1815, __pyx_L12_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_tolines)) || PyTuple_CheckExact(__pyx_v_tolines)) {
      __pyx_t_2 = __pyx_v_tolines; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = 0;
      __pyx_t_4 = NULL;
    } else {
      __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_tolines); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1815, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1815, __pyx_L12_error)
    }
    for (;;) {
      if (likely(!__pyx_t_4)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1815, __pyx_L12_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_3;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1815, __pyx_L12_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3);
          #endif
          ++__pyx_t_3;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1815, __pyx_L12_error)
      } else {
        __pyx_t_5 = __pyx_t_4(__pyx_t_2);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1815, __pyx_L12_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_8genexpr7__pyx_v_line, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_5 = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_20_tab_newline_replace_expand_tabs(__pyx_v_expand_tabs, __pyx_8genexpr7__pyx_v_line); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1815, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 1815, __pyx_L12_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_line); __pyx_8genexpr7__pyx_v_line = 0;
    goto __pyx_L16_exit_scope;
    __pyx_L12_error:;
    __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_line); __pyx_8genexpr7__pyx_v_line = 0;
    goto __pyx_L1_error;
    __pyx_L16_exit_scope:;
  } /* exit inner scope */
  __Pyx_DECREF_SET(__pyx_v_tolines, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1816
 *         fromlines = [expand_tabs(line) for line in fromlines]
 *         tolines = [expand_tabs(line) for line in tolines]
 *         return fromlines,tolines             # <<<<<<<<<<<<<<
 * 
 *     def _split_line(self,data_list,line_num,text):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_fromlines);
  __Pyx_GIVEREF(__pyx_v_fromlines);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_fromlines) != (0)) __PYX_ERR(0, 1816, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_tolines);
  __Pyx_GIVEREF(__pyx_v_tolines);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_tolines) != (0)) __PYX_ERR(0, 1816, __pyx_L1_error);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1795
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)
 * 
 *     def _tab_newline_replace(self,fromlines,tolines):             # <<<<<<<<<<<<<<
 *         """Returns from/to line lists with tabs expanded and newlines removed.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._tab_newline_replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_expand_tabs);
  __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_line);
  __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_line);
  __Pyx_XDECREF(__pyx_v_fromlines);
  __Pyx_XDECREF(__pyx_v_tolines);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1818
 *         return fromlines,tolines
 * 
 *     def _split_line(self,data_list,line_num,text):             # <<<<<<<<<<<<<<
 *         """Builds list of text lines by splitting text lines at wrap point
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_7_split_line(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_6_split_line, "Builds list of text lines by splitting text lines at wrap point\n\n        This function will determine if the input text line needs to be\n        wrapped (split) into separate lines.  If so, the first wrap point\n        will be determined and the first line appended to the output\n        text line list.  This function is used recursively to handle\n        the second part of the split line to further split it.\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_7_split_line = {"_split_line", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_7_split_line, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_6_split_line};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_7_split_line(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_data_list = 0;
  PyObject *__pyx_v_line_num = 0;
  PyObject *__pyx_v_text = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_split_line (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_data_list,&__pyx_mstate_global->__pyx_n_u_line_num,&__pyx_mstate_global->__pyx_n_u_text,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1818, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1818, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1818, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1818, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1818, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_split_line", 0) < (0)) __PYX_ERR(0, 1818, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_split_line", 1, 4, 4, i); __PYX_ERR(0, 1818, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1818, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1818, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1818, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1818, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_data_list = values[1];
    __pyx_v_line_num = values[2];
    __pyx_v_text = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_split_line", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1818, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._split_line", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_6_split_line(__pyx_self, __pyx_v_self, __pyx_v_data_list, __pyx_v_line_num, __pyx_v_text);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_6_split_line(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_data_list, PyObject *__pyx_v_line_num, PyObject *__pyx_v_text) {
  Py_ssize_t __pyx_v_size;
  PyObject *__pyx_v_max = NULL;
  long __pyx_v_i;
  long __pyx_v_n;
  PyObject *__pyx_v_mark = NULL;
  PyObject *__pyx_v_line1 = NULL;
  PyObject *__pyx_v_line2 = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_split_line", 0);

  /* "lxml/html/_difflib.py":1828
 *         """
 *         # if blank line or context separator, just add it to the output list
 *         if not line_num:             # <<<<<<<<<<<<<<
 *             data_list.append((line_num,text))
 *             return
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_line_num); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1828, __pyx_L1_error)
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "lxml/html/_difflib.py":1829
 *         # if blank line or context separator, just add it to the output list
 *         if not line_num:
 *             data_list.append((line_num,text))             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_line_num);
    __Pyx_GIVEREF(__pyx_v_line_num);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_line_num) != (0)) __PYX_ERR(0, 1829, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_text);
    __Pyx_GIVEREF(__pyx_v_text);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_text) != (0)) __PYX_ERR(0, 1829, __pyx_L1_error);
    __pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_data_list, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1829, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1830
 *         if not line_num:
 *             data_list.append((line_num,text))
 *             return             # <<<<<<<<<<<<<<
 * 
 *         # if line text doesn't need wrapping, just add it to the output list
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":1828
 *         """
 *         # if blank line or context separator, just add it to the output list
 *         if not line_num:             # <<<<<<<<<<<<<<
 *             data_list.append((line_num,text))
 *             return
*/
  }

  /* "lxml/html/_difflib.py":1833
 * 
 *         # if line text doesn't need wrapping, just add it to the output list
 *         size = len(text)             # <<<<<<<<<<<<<<
 *         max = self._wrapcolumn
 *         if (size <= max) or ((size -(text.count('\0')*3)) <= max):
*/
  __pyx_t_5 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1833, __pyx_L1_error)
  __pyx_v_size = __pyx_t_5;

  /* "lxml/html/_difflib.py":1834
 *         # if line text doesn't need wrapping, just add it to the output list
 *         size = len(text)
 *         max = self._wrapcolumn             # <<<<<<<<<<<<<<
 *         if (size <= max) or ((size -(text.count('\0')*3)) <= max):
 *             data_list.append((line_num,text))
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_wrapcolumn_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_max = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":1835
 *         size = len(text)
 *         max = self._wrapcolumn
 *         if (size <= max) or ((size -(text.count('\0')*3)) <= max):             # <<<<<<<<<<<<<<
 *             data_list.append((line_num,text))
 *             return
*/
  __pyx_t_3 = PyLong_FromSsize_t(__pyx_v_size); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = PyObject_RichCompare(__pyx_t_3, __pyx_v_max, Py_LE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (!__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_6 = PyLong_FromSsize_t(__pyx_v_size); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __pyx_v_text;
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u__28};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_count, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_7 = __Pyx_PyLong_MultiplyObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_RichCompare(__pyx_t_3, __pyx_v_max, Py_LE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_2 = __pyx_t_1;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_2) {

    /* "lxml/html/_difflib.py":1836
 *         max = self._wrapcolumn
 *         if (size <= max) or ((size -(text.count('\0')*3)) <= max):
 *             data_list.append((line_num,text))             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_INCREF(__pyx_v_line_num);
    __Pyx_GIVEREF(__pyx_v_line_num);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_line_num) != (0)) __PYX_ERR(0, 1836, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_text);
    __Pyx_GIVEREF(__pyx_v_text);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_text) != (0)) __PYX_ERR(0, 1836, __pyx_L1_error);
    __pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_data_list, __pyx_t_7); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1836, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":1837
 *         if (size <= max) or ((size -(text.count('\0')*3)) <= max):
 *             data_list.append((line_num,text))
 *             return             # <<<<<<<<<<<<<<
 * 
 *         # scan text looking for the wrap point, keeping track if the wrap
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/html/_difflib.py":1835
 *         size = len(text)
 *         max = self._wrapcolumn
 *         if (size <= max) or ((size -(text.count('\0')*3)) <= max):             # <<<<<<<<<<<<<<
 *             data_list.append((line_num,text))
 *             return
*/
  }

  /* "lxml/html/_difflib.py":1841
 *         # scan text looking for the wrap point, keeping track if the wrap
 *         # point is inside markers
 *         i = 0             # <<<<<<<<<<<<<<
 *         n = 0
 *         mark = ''
*/
  __pyx_v_i = 0;

  /* "lxml/html/_difflib.py":1842
 *         # point is inside markers
 *         i = 0
 *         n = 0             # <<<<<<<<<<<<<<
 *         mark = ''
 *         while n < max and i < size:
*/
  __pyx_v_n = 0;

  /* "lxml/html/_difflib.py":1843
 *         i = 0
 *         n = 0
 *         mark = ''             # <<<<<<<<<<<<<<
 *         while n < max and i < size:
 *             if text[i] == '\0':
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
  __pyx_v_mark = __pyx_mstate_global->__pyx_kp_u__2;

  /* "lxml/html/_difflib.py":1844
 *         n = 0
 *         mark = ''
 *         while n < max and i < size:             # <<<<<<<<<<<<<<
 *             if text[i] == '\0':
 *                 i += 1
*/
  while (1) {
    __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_n); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1844, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_7, __pyx_v_max, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1844, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1844, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_1) {
    } else {
      __pyx_t_2 = __pyx_t_1;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_1 = (__pyx_v_i < __pyx_v_size);
    __pyx_t_2 = __pyx_t_1;
    __pyx_L9_bool_binop_done:;
    if (!__pyx_t_2) break;

    /* "lxml/html/_difflib.py":1845
 *         mark = ''
 *         while n < max and i < size:
 *             if text[i] == '\0':             # <<<<<<<<<<<<<<
 *                 i += 1
 *                 mark = text[i]
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_text, __pyx_v_i, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1845, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__28, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1845, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "lxml/html/_difflib.py":1846
 *         while n < max and i < size:
 *             if text[i] == '\0':
 *                 i += 1             # <<<<<<<<<<<<<<
 *                 mark = text[i]
 *                 i += 1
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "lxml/html/_difflib.py":1847
 *             if text[i] == '\0':
 *                 i += 1
 *                 mark = text[i]             # <<<<<<<<<<<<<<
 *                 i += 1
 *             elif text[i] == '\1':
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_text, __pyx_v_i, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1847, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF_SET(__pyx_v_mark, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "lxml/html/_difflib.py":1848
 *                 i += 1
 *                 mark = text[i]
 *                 i += 1             # <<<<<<<<<<<<<<
 *             elif text[i] == '\1':
 *                 i += 1
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "lxml/html/_difflib.py":1845
 *         mark = ''
 *         while n < max and i < size:
 *             if text[i] == '\0':             # <<<<<<<<<<<<<<
 *                 i += 1
 *                 mark = text[i]
*/
      goto __pyx_L11;
    }

    /* "lxml/html/_difflib.py":1849
 *                 mark = text[i]
 *                 i += 1
 *             elif text[i] == '\1':             # <<<<<<<<<<<<<<
 *                 i += 1
 *                 mark = ''
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_text, __pyx_v_i, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__29, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1849, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "lxml/html/_difflib.py":1850
 *                 i += 1
 *             elif text[i] == '\1':
 *                 i += 1             # <<<<<<<<<<<<<<
 *                 mark = ''
 *             else:
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "lxml/html/_difflib.py":1851
 *             elif text[i] == '\1':
 *                 i += 1
 *                 mark = ''             # <<<<<<<<<<<<<<
 *             else:
 *                 i += 1
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_DECREF_SET(__pyx_v_mark, __pyx_mstate_global->__pyx_kp_u__2);

      /* "lxml/html/_difflib.py":1849
 *                 mark = text[i]
 *                 i += 1
 *             elif text[i] == '\1':             # <<<<<<<<<<<<<<
 *                 i += 1
 *                 mark = ''
*/
      goto __pyx_L11;
    }

    /* "lxml/html/_difflib.py":1853
 *                 mark = ''
 *             else:
 *                 i += 1             # <<<<<<<<<<<<<<
 *                 n += 1
 * 
*/
    /*else*/ {
      __pyx_v_i = (__pyx_v_i + 1);

      /* "lxml/html/_difflib.py":1854
 *             else:
 *                 i += 1
 *                 n += 1             # <<<<<<<<<<<<<<
 * 
 *         # wrap point is inside text, break it up into separate lines
*/
      __pyx_v_n = (__pyx_v_n + 1);
    }
    __pyx_L11:;
  }

  /* "lxml/html/_difflib.py":1857
 * 
 *         # wrap point is inside text, break it up into separate lines
 *         line1 = text[:i]             # <<<<<<<<<<<<<<
 *         line2 = text[i:]
 * 
*/
  __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_text, 0, __pyx_v_i, NULL, NULL, NULL, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_line1 = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":1858
 *         # wrap point is inside text, break it up into separate lines
 *         line1 = text[:i]
 *         line2 = text[i:]             # <<<<<<<<<<<<<<
 * 
 *         # if wrap point is inside markers, place end marker at end of first
*/
  __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_text, __pyx_v_i, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_line2 = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":1863
 *         # line and start marker at beginning of second line because each
 *         # line will have its own table tag markup around it.
 *         if mark:             # <<<<<<<<<<<<<<
 *             line1 = line1 + '\1'
 *             line2 = '\0' + mark + line2
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mark); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1863, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "lxml/html/_difflib.py":1864
 *         # line will have its own table tag markup around it.
 *         if mark:
 *             line1 = line1 + '\1'             # <<<<<<<<<<<<<<
 *             line2 = '\0' + mark + line2
 * 
*/
    __pyx_t_3 = PyNumber_Add(__pyx_v_line1, __pyx_mstate_global->__pyx_kp_u__29); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1864, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_line1, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/html/_difflib.py":1865
 *         if mark:
 *             line1 = line1 + '\1'
 *             line2 = '\0' + mark + line2             # <<<<<<<<<<<<<<
 * 
 *         # tack on first line onto the output list
*/
    __pyx_t_3 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__28, __pyx_v_mark); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1865, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = PyNumber_Add(__pyx_t_3, __pyx_v_line2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1865, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_line2, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":1863
 *         # line and start marker at beginning of second line because each
 *         # line will have its own table tag markup around it.
 *         if mark:             # <<<<<<<<<<<<<<
 *             line1 = line1 + '\1'
 *             line2 = '\0' + mark + line2
*/
  }

  /* "lxml/html/_difflib.py":1868
 * 
 *         # tack on first line onto the output list
 *         data_list.append((line_num,line1))             # <<<<<<<<<<<<<<
 * 
 *         # use this routine again to wrap the remaining text
*/
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_INCREF(__pyx_v_line_num);
  __Pyx_GIVEREF(__pyx_v_line_num);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_line_num) != (0)) __PYX_ERR(0, 1868, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_line1);
  __Pyx_GIVEREF(__pyx_v_line1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_line1) != (0)) __PYX_ERR(0, 1868, __pyx_L1_error);
  __pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_data_list, __pyx_t_7); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1868, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "lxml/html/_difflib.py":1871
 * 
 *         # use this routine again to wrap the remaining text
 *         self._split_line(data_list,'>',line2)             # <<<<<<<<<<<<<<
 * 
 *     def _line_wrapper(self,diffs):
*/
  __pyx_t_3 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_data_list, __pyx_mstate_global->__pyx_kp_u__40, __pyx_v_line2};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_split_line, __pyx_callargs+__pyx_t_8, (4-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1871, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "lxml/html/_difflib.py":1818
 *         return fromlines,tolines
 * 
 *     def _split_line(self,data_list,line_num,text):             # <<<<<<<<<<<<<<
 *         """Builds list of text lines by splitting text lines at wrap point
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._split_line", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_max);
  __Pyx_XDECREF(__pyx_v_mark);
  __Pyx_XDECREF(__pyx_v_line1);
  __Pyx_XDECREF(__pyx_v_line2);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_8HtmlDiff_10generator11(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":1873
 *         self._split_line(data_list,'>',line2)
 * 
 *     def _line_wrapper(self,diffs):             # <<<<<<<<<<<<<<
 *         """Returns iterator that splits (wraps) mdiff text lines"""
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_9_line_wrapper(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_8_line_wrapper, "Returns iterator that splits (wraps) mdiff text lines");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_9_line_wrapper = {"_line_wrapper", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_9_line_wrapper, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_8_line_wrapper};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_9_line_wrapper(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_diffs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_line_wrapper (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_diffs,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1873, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1873, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1873, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_line_wrapper", 0) < (0)) __PYX_ERR(0, 1873, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_line_wrapper", 1, 2, 2, i); __PYX_ERR(0, 1873, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1873, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1873, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_diffs = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_line_wrapper", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1873, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._line_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_8_line_wrapper(__pyx_self, __pyx_v_self, __pyx_v_diffs);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_8_line_wrapper(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_diffs) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_line_wrapper", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1873, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_diffs = __pyx_v_diffs;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_diffs);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_diffs);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_8HtmlDiff_10generator11, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_line_wrapper, __pyx_mstate_global->__pyx_n_u_HtmlDiff__line_wrapper, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 1873, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._line_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_8HtmlDiff_10generator11(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  int __pyx_t_10;
  size_t __pyx_t_11;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_line_wrapper", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L9_resume_from_yield;
    case 2: goto __pyx_L20_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 1873, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1877
 * 
 *         # pull from/to data and flags from mdiff iterator
 *         for fromdata,todata,flag in diffs:             # <<<<<<<<<<<<<<
 *             # check for context separators and pass them through
 *             if flag is None:
*/
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_diffs)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_diffs)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_v_diffs; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_diffs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1877, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1877, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1877, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1877, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1877, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1877, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 1877, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_7);
      } else {
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1877, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1877, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1877, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
      }
      #else
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1877, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1877, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1877, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1877, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
      index = 0; __pyx_t_5 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_5)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 2; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 3) < (0)) __PYX_ERR(0, 1877, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1877, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_fromdata);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_fromdata, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_todata);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_todata, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_flag);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_flag, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":1879
 *         for fromdata,todata,flag in diffs:
 *             # check for context separators and pass them through
 *             if flag is None:             # <<<<<<<<<<<<<<
 *                 yield fromdata,todata,flag
 *                 continue
*/
    __pyx_t_10 = (__pyx_cur_scope->__pyx_v_flag == Py_None);
    if (__pyx_t_10) {

      /* "lxml/html/_difflib.py":1880
 *             # check for context separators and pass them through
 *             if flag is None:
 *                 yield fromdata,todata,flag             # <<<<<<<<<<<<<<
 *                 continue
 *             (fromline,fromtext),(toline,totext) = fromdata,todata
*/
      __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1880, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromdata);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromdata);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_cur_scope->__pyx_v_fromdata) != (0)) __PYX_ERR(0, 1880, __pyx_L1_error);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_todata);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_todata);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_cur_scope->__pyx_v_todata) != (0)) __PYX_ERR(0, 1880, __pyx_L1_error);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_flag);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_flag);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_cur_scope->__pyx_v_flag) != (0)) __PYX_ERR(0, 1880, __pyx_L1_error);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      __Pyx_XGIVEREF(__pyx_t_1);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
      __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L9_resume_from_yield:;
      __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_1);
      __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
      __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1880, __pyx_L1_error)

      /* "lxml/html/_difflib.py":1881
 *             if flag is None:
 *                 yield fromdata,todata,flag
 *                 continue             # <<<<<<<<<<<<<<
 *             (fromline,fromtext),(toline,totext) = fromdata,todata
 *             # for each from/to line split it at the wrap column to form
*/
      goto __pyx_L4_continue;

      /* "lxml/html/_difflib.py":1879
 *         for fromdata,todata,flag in diffs:
 *             # check for context separators and pass them through
 *             if flag is None:             # <<<<<<<<<<<<<<
 *                 yield fromdata,todata,flag
 *                 continue
*/
    }

    /* "lxml/html/_difflib.py":1882
 *                 yield fromdata,todata,flag
 *                 continue
 *             (fromline,fromtext),(toline,totext) = fromdata,todata             # <<<<<<<<<<<<<<
 *             # for each from/to line split it at the wrap column to form
 *             # list of text lines.
*/
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_fromdata;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_7 = __pyx_cur_scope->__pyx_v_todata;
    __Pyx_INCREF(__pyx_t_7);
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 1882, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
      } else {
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1882, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1882, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
      }
      #else
      __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
      index = 0; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L10_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 1; __pyx_t_5 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_5)) goto __pyx_L10_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < (0)) __PYX_ERR(0, 1882, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L11_unpacking_done;
      __pyx_L10_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1882, __pyx_L1_error)
      __pyx_L11_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_fromline);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_fromline, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_fromtext);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_fromtext, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    if ((likely(PyTuple_CheckExact(__pyx_t_7))) || (PyList_CheckExact(__pyx_t_7))) {
      PyObject* sequence = __pyx_t_7;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 1882, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1882, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1882, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
      }
      #else
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_6 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6);
      index = 0; __pyx_t_4 = __pyx_t_9(__pyx_t_6); if (unlikely(!__pyx_t_4)) goto __pyx_L12_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_5 = __pyx_t_9(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L12_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_6), 2) < (0)) __PYX_ERR(0, 1882, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L13_unpacking_done;
      __pyx_L12_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1882, __pyx_L1_error)
      __pyx_L13_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_toline);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_toline, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_totext);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_totext, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":1885
 *             # for each from/to line split it at the wrap column to form
 *             # list of text lines.
 *             fromlist,tolist = [],[]             # <<<<<<<<<<<<<<
 *             self._split_line(fromlist,fromline,fromtext)
 *             self._split_line(tolist,toline,totext)
*/
    __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1885, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1885, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_fromlist);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_fromlist, ((PyObject*)__pyx_t_7));
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_tolist);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_tolist, ((PyObject*)__pyx_t_5));
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":1886
 *             # list of text lines.
 *             fromlist,tolist = [],[]
 *             self._split_line(fromlist,fromline,fromtext)             # <<<<<<<<<<<<<<
 *             self._split_line(tolist,toline,totext)
 *             # yield from/to line in pairs inserting blank lines as
*/
    __pyx_t_7 = __pyx_cur_scope->__pyx_v_self;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_7, __pyx_cur_scope->__pyx_v_fromlist, __pyx_cur_scope->__pyx_v_fromline, __pyx_cur_scope->__pyx_v_fromtext};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_split_line, __pyx_callargs+__pyx_t_11, (4-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1886, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":1887
 *             fromlist,tolist = [],[]
 *             self._split_line(fromlist,fromline,fromtext)
 *             self._split_line(tolist,toline,totext)             # <<<<<<<<<<<<<<
 *             # yield from/to line in pairs inserting blank lines as
 *             # necessary when one side has more wrapped lines
*/
    __pyx_t_7 = __pyx_cur_scope->__pyx_v_self;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_7, __pyx_cur_scope->__pyx_v_tolist, __pyx_cur_scope->__pyx_v_toline, __pyx_cur_scope->__pyx_v_totext};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_split_line, __pyx_callargs+__pyx_t_11, (4-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1887, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":1890
 *             # yield from/to line in pairs inserting blank lines as
 *             # necessary when one side has more wrapped lines
 *             while fromlist or tolist:             # <<<<<<<<<<<<<<
 *                 if fromlist:
 *                     fromdata = fromlist.pop(0)
*/
    while (1) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_fromlist);
        if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 1890, __pyx_L1_error)
        __pyx_t_12 = (__pyx_temp != 0);
      }

      if (!__pyx_t_12) {
      } else {
        __pyx_t_10 = __pyx_t_12;
        goto __pyx_L16_bool_binop_done;
      }
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_tolist);
        if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 1890, __pyx_L1_error)
        __pyx_t_12 = (__pyx_temp != 0);
      }

      __pyx_t_10 = __pyx_t_12;
      __pyx_L16_bool_binop_done:;
      if (!__pyx_t_10) break;

      /* "lxml/html/_difflib.py":1891
 *             # necessary when one side has more wrapped lines
 *             while fromlist or tolist:
 *                 if fromlist:             # <<<<<<<<<<<<<<
 *                     fromdata = fromlist.pop(0)
 *                 else:
*/
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_fromlist);
        if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 1891, __pyx_L1_error)
        __pyx_t_10 = (__pyx_temp != 0);
      }

      if (__pyx_t_10) {

        /* "lxml/html/_difflib.py":1892
 *             while fromlist or tolist:
 *                 if fromlist:
 *                     fromdata = fromlist.pop(0)             # <<<<<<<<<<<<<<
 *                 else:
 *                     fromdata = ('',' ')
*/
        __pyx_t_5 = __Pyx_PyList_PopIndex(__pyx_cur_scope->__pyx_v_fromlist, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1892, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_fromdata);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_fromdata, __pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_5);
        __pyx_t_5 = 0;

        /* "lxml/html/_difflib.py":1891
 *             # necessary when one side has more wrapped lines
 *             while fromlist or tolist:
 *                 if fromlist:             # <<<<<<<<<<<<<<
 *                     fromdata = fromlist.pop(0)
 *                 else:
*/
        goto __pyx_L18;
      }

      /* "lxml/html/_difflib.py":1894
 *                     fromdata = fromlist.pop(0)
 *                 else:
 *                     fromdata = ('',' ')             # <<<<<<<<<<<<<<
 *                 if tolist:
 *                     todata = tolist.pop(0)
*/
      /*else*/ {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[11]);
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_fromdata);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_fromdata, __pyx_mstate_global->__pyx_tuple[11]);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[11]);
      }
      __pyx_L18:;

      /* "lxml/html/_difflib.py":1895
 *                 else:
 *                     fromdata = ('',' ')
 *                 if tolist:             # <<<<<<<<<<<<<<
 *                     todata = tolist.pop(0)
 *                 else:
*/
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_cur_scope->__pyx_v_tolist);
        if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 1895, __pyx_L1_error)
        __pyx_t_10 = (__pyx_temp != 0);
      }

      if (__pyx_t_10) {

        /* "lxml/html/_difflib.py":1896
 *                     fromdata = ('',' ')
 *                 if tolist:
 *                     todata = tolist.pop(0)             # <<<<<<<<<<<<<<
 *                 else:
 *                     todata = ('',' ')
*/
        __pyx_t_5 = __Pyx_PyList_PopIndex(__pyx_cur_scope->__pyx_v_tolist, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1896, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_todata);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_todata, __pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_5);
        __pyx_t_5 = 0;

        /* "lxml/html/_difflib.py":1895
 *                 else:
 *                     fromdata = ('',' ')
 *                 if tolist:             # <<<<<<<<<<<<<<
 *                     todata = tolist.pop(0)
 *                 else:
*/
        goto __pyx_L19;
      }

      /* "lxml/html/_difflib.py":1898
 *                     todata = tolist.pop(0)
 *                 else:
 *                     todata = ('',' ')             # <<<<<<<<<<<<<<
 *                 yield fromdata,todata,flag
 * 
*/
      /*else*/ {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[11]);
        __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_todata);
        __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_todata, __pyx_mstate_global->__pyx_tuple[11]);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[11]);
      }
      __pyx_L19:;

      /* "lxml/html/_difflib.py":1899
 *                 else:
 *                     todata = ('',' ')
 *                 yield fromdata,todata,flag             # <<<<<<<<<<<<<<
 * 
 *     def _collect_lines(self,diffs):
*/
      __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1899, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_fromdata);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_fromdata);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_cur_scope->__pyx_v_fromdata) != (0)) __PYX_ERR(0, 1899, __pyx_L1_error);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_todata);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_todata);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_cur_scope->__pyx_v_todata) != (0)) __PYX_ERR(0, 1899, __pyx_L1_error);
      __Pyx_INCREF(__pyx_cur_scope->__pyx_v_flag);
      __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_flag);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_cur_scope->__pyx_v_flag) != (0)) __PYX_ERR(0, 1899, __pyx_L1_error);
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      __Pyx_XGIVEREF(__pyx_t_1);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
      __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 2;
      return __pyx_r;
      __pyx_L20_resume_from_yield:;
      __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_1);
      __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
      __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1899, __pyx_L1_error)
    }

    /* "lxml/html/_difflib.py":1877
 * 
 *         # pull from/to data and flags from mdiff iterator
 *         for fromdata,todata,flag in diffs:             # <<<<<<<<<<<<<<
 *             # check for context separators and pass them through
 *             if flag is None:
*/
    __pyx_L4_continue:;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":1873
 *         self._split_line(data_list,'>',line2)
 * 
 *     def _line_wrapper(self,diffs):             # <<<<<<<<<<<<<<
 *         """Returns iterator that splits (wraps) mdiff text lines"""
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("_line_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1901
 *                 yield fromdata,todata,flag
 * 
 *     def _collect_lines(self,diffs):             # <<<<<<<<<<<<<<
 *         """Collects mdiff output into separate lists
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_12_collect_lines(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_11_collect_lines, "Collects mdiff output into separate lists\n\n        Before storing the mdiff from/to data into a list, it is converted\n        into a single line of text with HTML markup.\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_12_collect_lines = {"_collect_lines", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_12_collect_lines, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_11_collect_lines};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_12_collect_lines(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_diffs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_collect_lines (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_diffs,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1901, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1901, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1901, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_collect_lines", 0) < (0)) __PYX_ERR(0, 1901, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_collect_lines", 1, 2, 2, i); __PYX_ERR(0, 1901, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1901, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1901, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_diffs = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_collect_lines", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1901, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._collect_lines", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_11_collect_lines(__pyx_self, __pyx_v_self, __pyx_v_diffs);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_11_collect_lines(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_diffs) {
  PyObject *__pyx_v_fromlist = NULL;
  PyObject *__pyx_v_tolist = NULL;
  PyObject *__pyx_v_flaglist = NULL;
  PyObject *__pyx_v_fromdata = NULL;
  PyObject *__pyx_v_todata = NULL;
  PyObject *__pyx_v_flag = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_collect_lines", 0);

  /* "lxml/html/_difflib.py":1908
 *         """
 * 
 *         fromlist,tolist,flaglist = [],[],[]             # <<<<<<<<<<<<<<
 *         # pull from/to data and flags from mdiff style iterator
 *         for fromdata,todata,flag in diffs:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1908, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1908, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1908, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_fromlist = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_v_tolist = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_v_flaglist = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":1910
 *         fromlist,tolist,flaglist = [],[],[]
 *         # pull from/to data and flags from mdiff style iterator
 *         for fromdata,todata,flag in diffs:             # <<<<<<<<<<<<<<
 *             try:
 *                 # store HTML markup of the lines into the lists
*/
  if (likely(PyList_CheckExact(__pyx_v_diffs)) || PyTuple_CheckExact(__pyx_v_diffs)) {
    __pyx_t_3 = __pyx_v_diffs; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_5 = NULL;
  } else {
    __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_diffs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1910, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1910, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_5)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1910, __pyx_L1_error)
          #endif
          if (__pyx_t_4 >= __pyx_temp) break;
        }
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_4;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1910, __pyx_L1_error)
          #endif
          if (__pyx_t_4 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_2 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4));
        #else
        __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_4);
        #endif
        ++__pyx_t_4;
      }
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1910, __pyx_L1_error)
    } else {
      __pyx_t_2 = __pyx_t_5(__pyx_t_3);
      if (unlikely(!__pyx_t_2)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1910, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_2);
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 1910, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_7);
      } else {
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1910, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1910, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1910, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
      }
      #else
      __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1910, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1910, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1910, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1910, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
      index = 0; __pyx_t_1 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_1)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_1);
      index = 1; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 2; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 3) < (0)) __PYX_ERR(0, 1910, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1910, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_fromdata, __pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_XDECREF_SET(__pyx_v_todata, __pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XDECREF_SET(__pyx_v_flag, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":1911
 *         # pull from/to data and flags from mdiff style iterator
 *         for fromdata,todata,flag in diffs:
 *             try:             # <<<<<<<<<<<<<<
 *                 # store HTML markup of the lines into the lists
 *                 fromlist.append(self._format_line(0,flag,*fromdata))
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "lxml/html/_difflib.py":1913
 *             try:
 *                 # store HTML markup of the lines into the lists
 *                 fromlist.append(self._format_line(0,flag,*fromdata))             # <<<<<<<<<<<<<<
 *                 tolist.append(self._format_line(1,flag,*todata))
 *             except TypeError:
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_format_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1913, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1913, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(0, 1913, __pyx_L7_error);
        __Pyx_INCREF(__pyx_v_flag);
        __Pyx_GIVEREF(__pyx_v_flag);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_flag) != (0)) __PYX_ERR(0, 1913, __pyx_L7_error);
        __pyx_t_6 = __Pyx_PySequence_Tuple(__pyx_v_fromdata); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1913, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_1 = PyNumber_Add(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1913, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1913, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_fromlist, __pyx_t_6); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 1913, __pyx_L7_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "lxml/html/_difflib.py":1914
 *                 # store HTML markup of the lines into the lists
 *                 fromlist.append(self._format_line(0,flag,*fromdata))
 *                 tolist.append(self._format_line(1,flag,*todata))             # <<<<<<<<<<<<<<
 *             except TypeError:
 *                 # exceptions occur for lines where context separators go
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_format_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1914, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1914, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 1914, __pyx_L7_error);
        __Pyx_INCREF(__pyx_v_flag);
        __Pyx_GIVEREF(__pyx_v_flag);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_flag) != (0)) __PYX_ERR(0, 1914, __pyx_L7_error);
        __pyx_t_2 = __Pyx_PySequence_Tuple(__pyx_v_todata); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1914, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1914, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1914, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_tolist, __pyx_t_2); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 1914, __pyx_L7_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "lxml/html/_difflib.py":1911
 *         # pull from/to data and flags from mdiff style iterator
 *         for fromdata,todata,flag in diffs:
 *             try:             # <<<<<<<<<<<<<<
 *                 # store HTML markup of the lines into the lists
 *                 fromlist.append(self._format_line(0,flag,*fromdata))
*/
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L14_try_end;
      __pyx_L7_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "lxml/html/_difflib.py":1915
 *                 fromlist.append(self._format_line(0,flag,*fromdata))
 *                 tolist.append(self._format_line(1,flag,*todata))
 *             except TypeError:             # <<<<<<<<<<<<<<
 *                 # exceptions occur for lines where context separators go
 *                 fromlist.append(None)
*/
      __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_TypeError))));
      if (__pyx_t_14) {
        __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._collect_lines", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 1915, __pyx_L9_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "lxml/html/_difflib.py":1917
 *             except TypeError:
 *                 # exceptions occur for lines where context separators go
 *                 fromlist.append(None)             # <<<<<<<<<<<<<<
 *                 tolist.append(None)
 *             flaglist.append(flag)
*/
        __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_fromlist, Py_None); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 1917, __pyx_L9_except_error)

        /* "lxml/html/_difflib.py":1918
 *                 # exceptions occur for lines where context separators go
 *                 fromlist.append(None)
 *                 tolist.append(None)             # <<<<<<<<<<<<<<
 *             flaglist.append(flag)
 *         return fromlist,tolist,flaglist
*/
        __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_tolist, Py_None); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 1918, __pyx_L9_except_error)
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L8_exception_handled;
      }
      goto __pyx_L9_except_error;

      /* "lxml/html/_difflib.py":1911
 *         # pull from/to data and flags from mdiff style iterator
 *         for fromdata,todata,flag in diffs:
 *             try:             # <<<<<<<<<<<<<<
 *                 # store HTML markup of the lines into the lists
 *                 fromlist.append(self._format_line(0,flag,*fromdata))
*/
      __pyx_L9_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L8_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_L14_try_end:;
    }

    /* "lxml/html/_difflib.py":1919
 *                 fromlist.append(None)
 *                 tolist.append(None)
 *             flaglist.append(flag)             # <<<<<<<<<<<<<<
 *         return fromlist,tolist,flaglist
 * 
*/
    __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_flaglist, __pyx_v_flag); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 1919, __pyx_L1_error)

    /* "lxml/html/_difflib.py":1910
 *         fromlist,tolist,flaglist = [],[],[]
 *         # pull from/to data and flags from mdiff style iterator
 *         for fromdata,todata,flag in diffs:             # <<<<<<<<<<<<<<
 *             try:
 *                 # store HTML markup of the lines into the lists
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/html/_difflib.py":1920
 *                 tolist.append(None)
 *             flaglist.append(flag)
 *         return fromlist,tolist,flaglist             # <<<<<<<<<<<<<<
 * 
 *     def _format_line(self,side,flag,linenum,text):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_fromlist);
  __Pyx_GIVEREF(__pyx_v_fromlist);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_fromlist) != (0)) __PYX_ERR(0, 1920, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_tolist);
  __Pyx_GIVEREF(__pyx_v_tolist);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_tolist) != (0)) __PYX_ERR(0, 1920, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_flaglist);
  __Pyx_GIVEREF(__pyx_v_flaglist);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_flaglist) != (0)) __PYX_ERR(0, 1920, __pyx_L1_error);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1901
 *                 yield fromdata,todata,flag
 * 
 *     def _collect_lines(self,diffs):             # <<<<<<<<<<<<<<
 *         """Collects mdiff output into separate lists
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._collect_lines", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_fromlist);
  __Pyx_XDECREF(__pyx_v_tolist);
  __Pyx_XDECREF(__pyx_v_flaglist);
  __Pyx_XDECREF(__pyx_v_fromdata);
  __Pyx_XDECREF(__pyx_v_todata);
  __Pyx_XDECREF(__pyx_v_flag);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1922
 *         return fromlist,tolist,flaglist
 * 
 *     def _format_line(self,side,flag,linenum,text):             # <<<<<<<<<<<<<<
 *         """Returns HTML markup of "from" / "to" text lines
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_14_format_line(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_13_format_line, "Returns HTML markup of \"from\" / \"to\" text lines\n\n        side -- 0 or 1 indicating \"from\" or \"to\" text\n        flag -- indicates if difference on line\n        linenum -- line number (used for line number column)\n        text -- line text to be marked up\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_14_format_line = {"_format_line", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_14_format_line, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_13_format_line};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_14_format_line(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_side = 0;
  CYTHON_UNUSED PyObject *__pyx_v_flag = 0;
  PyObject *__pyx_v_linenum = 0;
  PyObject *__pyx_v_text = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_format_line (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_side,&__pyx_mstate_global->__pyx_n_u_flag,&__pyx_mstate_global->__pyx_n_u_linenum,&__pyx_mstate_global->__pyx_n_u_text,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1922, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1922, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1922, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1922, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1922, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1922, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_format_line", 0) < (0)) __PYX_ERR(0, 1922, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_format_line", 1, 5, 5, i); __PYX_ERR(0, 1922, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1922, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1922, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1922, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1922, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1922, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_side = values[1];
    __pyx_v_flag = values[2];
    __pyx_v_linenum = values[3];
    __pyx_v_text = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_format_line", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 1922, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._format_line", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_13_format_line(__pyx_self, __pyx_v_self, __pyx_v_side, __pyx_v_flag, __pyx_v_linenum, __pyx_v_text);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_13_format_line(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_side, CYTHON_UNUSED PyObject *__pyx_v_flag, PyObject *__pyx_v_linenum, PyObject *__pyx_v_text) {
  PyObject *__pyx_v_id = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6[4];
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  PyObject *__pyx_t_11[7];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_format_line", 0);
  __Pyx_INCREF(__pyx_v_linenum);
  __Pyx_INCREF(__pyx_v_text);

  /* "lxml/html/_difflib.py":1930
 *         text -- line text to be marked up
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             linenum = '%d' % linenum
 *             id = ' id="%s%s"' % (self._prefix[side],linenum)
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "lxml/html/_difflib.py":1931
 *         """
 *         try:
 *             linenum = '%d' % linenum             # <<<<<<<<<<<<<<
 *             id = ' id="%s%s"' % (self._prefix[side],linenum)
 *         except TypeError:
*/
      __pyx_t_4 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d, __pyx_v_linenum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1931, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF_SET(__pyx_v_linenum, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/html/_difflib.py":1932
 *         try:
 *             linenum = '%d' % linenum
 *             id = ' id="%s%s"' % (self._prefix[side],linenum)             # <<<<<<<<<<<<<<
 *         except TypeError:
 *             # handle blank lines where linenum is '>' or ''
*/
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_prefix); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1932, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_side); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1932, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_5), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1932, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_linenum), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1932, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6[0] = __pyx_mstate_global->__pyx_kp_u_id;
      __pyx_t_6[1] = __pyx_t_4;
      __pyx_t_6[2] = __pyx_t_5;
      __pyx_t_6[3] = __pyx_mstate_global->__pyx_kp_u__41;
      __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_6, 4, 5 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5));
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1932, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_id = ((PyObject*)__pyx_t_7);
      __pyx_t_7 = 0;

      /* "lxml/html/_difflib.py":1930
 *         text -- line text to be marked up
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             linenum = '%d' % linenum
 *             id = ' id="%s%s"' % (self._prefix[side],linenum)
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":1933
 *             linenum = '%d' % linenum
 *             id = ' id="%s%s"' % (self._prefix[side],linenum)
 *         except TypeError:             # <<<<<<<<<<<<<<
 *             # handle blank lines where linenum is '>' or ''
 *             id = ''
*/
    __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_TypeError))));
    if (__pyx_t_8) {
      __Pyx_ErrRestore(0,0,0);

      /* "lxml/html/_difflib.py":1935
 *         except TypeError:
 *             # handle blank lines where linenum is '>' or ''
 *             id = ''             # <<<<<<<<<<<<<<
 *         # replace those things that would get confused with HTML symbols
 *         text=text.replace("&","&amp;").replace(">","&gt;").replace("<","&lt;")
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_XDECREF_SET(__pyx_v_id, __pyx_mstate_global->__pyx_kp_u__2);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "lxml/html/_difflib.py":1930
 *         text -- line text to be marked up
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             linenum = '%d' % linenum
 *             id = ' id="%s%s"' % (self._prefix[side],linenum)
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "lxml/html/_difflib.py":1937
 *             id = ''
 *         # replace those things that would get confused with HTML symbols
 *         text=text.replace("&","&amp;").replace(">","&gt;").replace("<","&lt;")             # <<<<<<<<<<<<<<
 * 
 *         # make space non-breakable so they don't get compressed or line wrapped
*/
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_text, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[12], NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[13], NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[14], NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF_SET(__pyx_v_text, __pyx_t_5);
  __pyx_t_5 = 0;

  /* "lxml/html/_difflib.py":1940
 * 
 *         # make space non-breakable so they don't get compressed or line wrapped
 *         text = text.replace(' ','&nbsp;').rstrip()             # <<<<<<<<<<<<<<
 * 
 *         return '<td class="diff_header"%s>%s</td><td nowrap="nowrap">%s</td>' \
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_text, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[15], NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_7 = __pyx_t_9;
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_10 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rstrip, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __Pyx_DECREF_SET(__pyx_v_text, __pyx_t_5);
  __pyx_t_5 = 0;

  /* "lxml/html/_difflib.py":1942
 *         text = text.replace(' ','&nbsp;').rstrip()
 * 
 *         return '<td class="diff_header"%s>%s</td><td nowrap="nowrap">%s</td>' \             # <<<<<<<<<<<<<<
 *                % (id,linenum,text)
 * 
*/
  __Pyx_XDECREF(__pyx_r);

  /* "lxml/html/_difflib.py":1943
 * 
 *         return '<td class="diff_header"%s>%s</td><td nowrap="nowrap">%s</td>' \
 *                % (id,linenum,text)             # <<<<<<<<<<<<<<
 * 
 *     def _make_prefix(self):
*/
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_linenum), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_9 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_text), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_11[0] = __pyx_mstate_global->__pyx_kp_u_td_class_diff_header;
  __pyx_t_11[1] = __pyx_v_id;
  __pyx_t_11[2] = __pyx_mstate_global->__pyx_kp_u__40;
  __pyx_t_11[3] = __pyx_t_5;
  __pyx_t_11[4] = __pyx_mstate_global->__pyx_kp_u_td_td_nowrap_nowrap;
  __pyx_t_11[5] = __pyx_t_9;
  __pyx_t_11[6] = __pyx_mstate_global->__pyx_kp_u_td;

  /* "lxml/html/_difflib.py":1942
 *         text = text.replace(' ','&nbsp;').rstrip()
 * 
 *         return '<td class="diff_header"%s>%s</td><td nowrap="nowrap">%s</td>' \             # <<<<<<<<<<<<<<
 *                % (id,linenum,text)
 * 
*/
  __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_11, 7, 23 + __Pyx_PyUnicode_GET_LENGTH(__pyx_v_id) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 25 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 5, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_id) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9));
  if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1942, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1922
 *         return fromlist,tolist,flaglist
 * 
 *     def _format_line(self,side,flag,linenum,text):             # <<<<<<<<<<<<<<
 *         """Returns HTML markup of "from" / "to" text lines
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._format_line", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_id);
  __Pyx_XDECREF(__pyx_v_linenum);
  __Pyx_XDECREF(__pyx_v_text);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1945
 *                % (id,linenum,text)
 * 
 *     def _make_prefix(self):             # <<<<<<<<<<<<<<
 *         """Create unique anchor prefixes"""
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_16_make_prefix(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_15_make_prefix, "Create unique anchor prefixes");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_16_make_prefix = {"_make_prefix", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_16_make_prefix, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_15_make_prefix};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_16_make_prefix(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_make_prefix (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1945, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1945, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_make_prefix", 0) < (0)) __PYX_ERR(0, 1945, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_make_prefix", 1, 1, 1, i); __PYX_ERR(0, 1945, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1945, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_make_prefix", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1945, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._make_prefix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_15_make_prefix(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_15_make_prefix(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_v_fromprefix = NULL;
  PyObject *__pyx_v_toprefix = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_make_prefix", 0);

  /* "lxml/html/_difflib.py":1950
 *         # Generate a unique anchor prefix so multiple tables
 *         # can exist on the same HTML page without conflicts.
 *         fromprefix = "from%d_" % HtmlDiff._default_prefix             # <<<<<<<<<<<<<<
 *         toprefix = "to%d_" % HtmlDiff._default_prefix
 *         HtmlDiff._default_prefix += 1
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_HtmlDiff); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_default_prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_from_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_fromprefix = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1951
 *         # can exist on the same HTML page without conflicts.
 *         fromprefix = "from%d_" % HtmlDiff._default_prefix
 *         toprefix = "to%d_" % HtmlDiff._default_prefix             # <<<<<<<<<<<<<<
 *         HtmlDiff._default_prefix += 1
 *         # store prefixes so line format method has access
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_HtmlDiff); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_default_prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_to_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_toprefix = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":1952
 *         fromprefix = "from%d_" % HtmlDiff._default_prefix
 *         toprefix = "to%d_" % HtmlDiff._default_prefix
 *         HtmlDiff._default_prefix += 1             # <<<<<<<<<<<<<<
 *         # store prefixes so line format method has access
 *         self._prefix = [fromprefix,toprefix]
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_HtmlDiff); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_default_prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_AddObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_HtmlDiff); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_default_prefix, __pyx_t_1) < (0)) __PYX_ERR(0, 1952, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1954
 *         HtmlDiff._default_prefix += 1
 *         # store prefixes so line format method has access
 *         self._prefix = [fromprefix,toprefix]             # <<<<<<<<<<<<<<
 * 
 *     def _convert_flags(self,fromlist,tolist,flaglist,context,numlines):
*/
  __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_fromprefix);
  __Pyx_GIVEREF(__pyx_v_fromprefix);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_fromprefix) != (0)) __PYX_ERR(0, 1954, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_toprefix);
  __Pyx_GIVEREF(__pyx_v_toprefix);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_v_toprefix) != (0)) __PYX_ERR(0, 1954, __pyx_L1_error);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_prefix, __pyx_t_2) < (0)) __PYX_ERR(0, 1954, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1945
 *                % (id,linenum,text)
 * 
 *     def _make_prefix(self):             # <<<<<<<<<<<<<<
 *         """Create unique anchor prefixes"""
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._make_prefix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_fromprefix);
  __Pyx_XDECREF(__pyx_v_toprefix);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":1956
 *         self._prefix = [fromprefix,toprefix]
 * 
 *     def _convert_flags(self,fromlist,tolist,flaglist,context,numlines):             # <<<<<<<<<<<<<<
 *         """Makes list of "next" links"""
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_18_convert_flags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_17_convert_flags, "Makes list of \"next\" links");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_18_convert_flags = {"_convert_flags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_18_convert_flags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_17_convert_flags};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_18_convert_flags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_fromlist = 0;
  PyObject *__pyx_v_tolist = 0;
  PyObject *__pyx_v_flaglist = 0;
  PyObject *__pyx_v_context = 0;
  PyObject *__pyx_v_numlines = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_convert_flags (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_fromlist,&__pyx_mstate_global->__pyx_n_u_tolist,&__pyx_mstate_global->__pyx_n_u_flaglist,&__pyx_mstate_global->__pyx_n_u_context,&__pyx_mstate_global->__pyx_n_u_numlines,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1956, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_convert_flags", 0) < (0)) __PYX_ERR(0, 1956, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_convert_flags", 1, 6, 6, i); __PYX_ERR(0, 1956, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1956, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1956, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1956, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1956, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1956, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1956, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_fromlist = values[1];
    __pyx_v_tolist = values[2];
    __pyx_v_flaglist = values[3];
    __pyx_v_context = values[4];
    __pyx_v_numlines = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_convert_flags", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 1956, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._convert_flags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_17_convert_flags(__pyx_self, __pyx_v_self, __pyx_v_fromlist, __pyx_v_tolist, __pyx_v_flaglist, __pyx_v_context, __pyx_v_numlines);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_17_convert_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fromlist, PyObject *__pyx_v_tolist, PyObject *__pyx_v_flaglist, PyObject *__pyx_v_context, PyObject *__pyx_v_numlines) {
  PyObject *__pyx_v_toprefix = NULL;
  PyObject *__pyx_v_next_id = NULL;
  PyObject *__pyx_v_next_href = NULL;
  long __pyx_v_num_chg;
  int __pyx_v_in_change;
  PyObject *__pyx_v_last = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_flag = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  long __pyx_t_4;
  int __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11[5];
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_convert_flags", 0);
  __Pyx_INCREF(__pyx_v_fromlist);
  __Pyx_INCREF(__pyx_v_tolist);
  __Pyx_INCREF(__pyx_v_flaglist);

  /* "lxml/html/_difflib.py":1960
 * 
 *         # all anchor names will be generated using the unique "to" prefix
 *         toprefix = self._prefix[1]             # <<<<<<<<<<<<<<
 * 
 *         # process change flags, generating middle column of next anchors/links
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_prefix); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_toprefix = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1963
 * 
 *         # process change flags, generating middle column of next anchors/links
 *         next_id = ['']*len(flaglist)             # <<<<<<<<<<<<<<
 *         next_href = ['']*len(flaglist)
 *         num_chg, in_change = 0, False
*/
  __pyx_t_3 = PyObject_Length(__pyx_v_flaglist); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1963, __pyx_L1_error)
  __pyx_t_2 = PyList_New(1 * ((__pyx_t_3<0) ? 0:__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  { Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < __pyx_t_3; __pyx_temp++) {
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__2);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_2, __pyx_temp, __pyx_mstate_global->__pyx_kp_u__2) != (0)) __PYX_ERR(0, 1963, __pyx_L1_error);
    }
  }
  __pyx_v_next_id = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1964
 *         # process change flags, generating middle column of next anchors/links
 *         next_id = ['']*len(flaglist)
 *         next_href = ['']*len(flaglist)             # <<<<<<<<<<<<<<
 *         num_chg, in_change = 0, False
 *         last = 0
*/
  __pyx_t_3 = PyObject_Length(__pyx_v_flaglist); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1964, __pyx_L1_error)
  __pyx_t_2 = PyList_New(1 * ((__pyx_t_3<0) ? 0:__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  { Py_ssize_t __pyx_temp;
    for (__pyx_temp=0; __pyx_temp < __pyx_t_3; __pyx_temp++) {
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__2);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_2, __pyx_temp, __pyx_mstate_global->__pyx_kp_u__2) != (0)) __PYX_ERR(0, 1964, __pyx_L1_error);
    }
  }
  __pyx_v_next_href = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1965
 *         next_id = ['']*len(flaglist)
 *         next_href = ['']*len(flaglist)
 *         num_chg, in_change = 0, False             # <<<<<<<<<<<<<<
 *         last = 0
 *         for i,flag in enumerate(flaglist):
*/
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_num_chg = __pyx_t_4;
  __pyx_v_in_change = __pyx_t_5;

  /* "lxml/html/_difflib.py":1966
 *         next_href = ['']*len(flaglist)
 *         num_chg, in_change = 0, False
 *         last = 0             # <<<<<<<<<<<<<<
 *         for i,flag in enumerate(flaglist):
 *             if flag:
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_v_last = __pyx_mstate_global->__pyx_int_0;

  /* "lxml/html/_difflib.py":1967
 *         num_chg, in_change = 0, False
 *         last = 0
 *         for i,flag in enumerate(flaglist):             # <<<<<<<<<<<<<<
 *             if flag:
 *                 if not in_change:
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_2 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v_flaglist)) || PyTuple_CheckExact(__pyx_v_flaglist)) {
    __pyx_t_1 = __pyx_v_flaglist; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    __pyx_t_6 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_flaglist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1967, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1967, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_6)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1967, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_3;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1967, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_7 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3));
        #else
        __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_3);
        #endif
        ++__pyx_t_3;
      }
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1967, __pyx_L1_error)
    } else {
      __pyx_t_7 = __pyx_t_6(__pyx_t_1);
      if (unlikely(!__pyx_t_7)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1967, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_XDECREF_SET(__pyx_v_flag, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
    __pyx_t_7 = __Pyx_PyLong_AddObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1967, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2);
    __pyx_t_2 = __pyx_t_7;
    __pyx_t_7 = 0;

    /* "lxml/html/_difflib.py":1968
 *         last = 0
 *         for i,flag in enumerate(flaglist):
 *             if flag:             # <<<<<<<<<<<<<<
 *                 if not in_change:
 *                     in_change = True
*/
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_flag); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 1968, __pyx_L1_error)
    if (__pyx_t_5) {

      /* "lxml/html/_difflib.py":1969
 *         for i,flag in enumerate(flaglist):
 *             if flag:
 *                 if not in_change:             # <<<<<<<<<<<<<<
 *                     in_change = True
 *                     last = i
*/
      __pyx_t_5 = (!__pyx_v_in_change);
      if (__pyx_t_5) {

        /* "lxml/html/_difflib.py":1970
 *             if flag:
 *                 if not in_change:
 *                     in_change = True             # <<<<<<<<<<<<<<
 *                     last = i
 *                     # at the beginning of a change, drop an anchor a few lines
*/
        __pyx_v_in_change = 1;

        /* "lxml/html/_difflib.py":1971
 *                 if not in_change:
 *                     in_change = True
 *                     last = i             # <<<<<<<<<<<<<<
 *                     # at the beginning of a change, drop an anchor a few lines
 *                     # (the context lines) before the change for the previous
*/
        __Pyx_INCREF(__pyx_v_i);
        __Pyx_DECREF_SET(__pyx_v_last, __pyx_v_i);

        /* "lxml/html/_difflib.py":1975
 *                     # (the context lines) before the change for the previous
 *                     # link
 *                     i = max([0,i-numlines])             # <<<<<<<<<<<<<<
 *                     next_id[i] = ' id="difflib_chg_%s_%d"' % (toprefix,num_chg)
 *                     # at the beginning of a change, drop a link to the next
*/
        __pyx_t_7 = PyNumber_Subtract(__pyx_v_i, __pyx_v_numlines); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1975, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_4 = 0;
        __pyx_t_9 = __Pyx_PyLong_From_long(__pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1975, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_10 = PyObject_RichCompare(__pyx_t_7, __pyx_t_9, Py_GT); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1975, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 1975, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (__pyx_t_5) {
          __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = __pyx_t_7;
        } else {
          __pyx_t_10 = __Pyx_PyLong_From_long(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1975, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __pyx_t_8 = __pyx_t_10;
          __pyx_t_10 = 0;
        }
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __pyx_t_8;
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_7);
        __pyx_t_7 = 0;

        /* "lxml/html/_difflib.py":1976
 *                     # link
 *                     i = max([0,i-numlines])
 *                     next_id[i] = ' id="difflib_chg_%s_%d"' % (toprefix,num_chg)             # <<<<<<<<<<<<<<
 *                     # at the beginning of a change, drop a link to the next
 *                     # change
*/
        __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_toprefix), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1976, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyUnicode_From_long(__pyx_v_num_chg, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1976, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_11[0] = __pyx_mstate_global->__pyx_kp_u_id_difflib_chg;
        __pyx_t_11[1] = __pyx_t_7;
        __pyx_t_11[2] = __pyx_mstate_global->__pyx_n_u_;
        __pyx_t_11[3] = __pyx_t_8;
        __pyx_t_11[4] = __pyx_mstate_global->__pyx_kp_u__41;
        __pyx_t_10 = __Pyx_PyUnicode_Join(__pyx_t_11, 5, 17 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7) + 1 * 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7));
        if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1976, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely((PyObject_SetItem(__pyx_v_next_id, __pyx_v_i, __pyx_t_10) < 0))) __PYX_ERR(0, 1976, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

        /* "lxml/html/_difflib.py":1979
 *                     # at the beginning of a change, drop a link to the next
 *                     # change
 *                     num_chg += 1             # <<<<<<<<<<<<<<
 *                     next_href[last] = '<a href="#difflib_chg_%s_%d">n</a>' % (
 *                          toprefix,num_chg)
*/
        __pyx_v_num_chg = (__pyx_v_num_chg + 1);

        /* "lxml/html/_difflib.py":1981
 *                     num_chg += 1
 *                     next_href[last] = '<a href="#difflib_chg_%s_%d">n</a>' % (
 *                          toprefix,num_chg)             # <<<<<<<<<<<<<<
 *             else:
 *                 in_change = False
*/
        __pyx_t_10 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_toprefix), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1981, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_8 = __Pyx_PyUnicode_From_long(__pyx_v_num_chg, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1981, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_11[0] = __pyx_mstate_global->__pyx_kp_u_a_href_difflib_chg;
        __pyx_t_11[1] = __pyx_t_10;
        __pyx_t_11[2] = __pyx_mstate_global->__pyx_n_u_;
        __pyx_t_11[3] = __pyx_t_8;
        __pyx_t_11[4] = __pyx_mstate_global->__pyx_kp_u_n_a;

        /* "lxml/html/_difflib.py":1980
 *                     # change
 *                     num_chg += 1
 *                     next_href[last] = '<a href="#difflib_chg_%s_%d">n</a>' % (             # <<<<<<<<<<<<<<
 *                          toprefix,num_chg)
 *             else:
*/
        __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_11, 5, 22 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 7, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10));
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1980, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely((PyObject_SetItem(__pyx_v_next_href, __pyx_v_last, __pyx_t_7) < 0))) __PYX_ERR(0, 1980, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "lxml/html/_difflib.py":1969
 *         for i,flag in enumerate(flaglist):
 *             if flag:
 *                 if not in_change:             # <<<<<<<<<<<<<<
 *                     in_change = True
 *                     last = i
*/
      }

      /* "lxml/html/_difflib.py":1968
 *         last = 0
 *         for i,flag in enumerate(flaglist):
 *             if flag:             # <<<<<<<<<<<<<<
 *                 if not in_change:
 *                     in_change = True
*/
      goto __pyx_L5;
    }

    /* "lxml/html/_difflib.py":1983
 *                          toprefix,num_chg)
 *             else:
 *                 in_change = False             # <<<<<<<<<<<<<<
 *         # check for cases where there is no content to avoid exceptions
 *         if not flaglist:
*/
    /*else*/ {
      __pyx_v_in_change = 0;
    }
    __pyx_L5:;

    /* "lxml/html/_difflib.py":1967
 *         num_chg, in_change = 0, False
 *         last = 0
 *         for i,flag in enumerate(flaglist):             # <<<<<<<<<<<<<<
 *             if flag:
 *                 if not in_change:
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":1985
 *                 in_change = False
 *         # check for cases where there is no content to avoid exceptions
 *         if not flaglist:             # <<<<<<<<<<<<<<
 *             flaglist = [False]
 *             next_id = ['']
*/
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_flaglist); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 1985, __pyx_L1_error)
  __pyx_t_12 = (!__pyx_t_5);
  if (__pyx_t_12) {

    /* "lxml/html/_difflib.py":1986
 *         # check for cases where there is no content to avoid exceptions
 *         if not flaglist:
 *             flaglist = [False]             # <<<<<<<<<<<<<<
 *             next_id = ['']
 *             next_href = ['']
*/
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, Py_False) != (0)) __PYX_ERR(0, 1986, __pyx_L1_error);
    __Pyx_DECREF_SET(__pyx_v_flaglist, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1987
 *         if not flaglist:
 *             flaglist = [False]
 *             next_id = ['']             # <<<<<<<<<<<<<<
 *             next_href = ['']
 *             last = 0
*/
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__2);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_kp_u__2) != (0)) __PYX_ERR(0, 1987, __pyx_L1_error);
    __Pyx_DECREF_SET(__pyx_v_next_id, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1988
 *             flaglist = [False]
 *             next_id = ['']
 *             next_href = ['']             # <<<<<<<<<<<<<<
 *             last = 0
 *             if context:
*/
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1988, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__2);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_kp_u__2) != (0)) __PYX_ERR(0, 1988, __pyx_L1_error);
    __Pyx_DECREF_SET(__pyx_v_next_href, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1989
 *             next_id = ['']
 *             next_href = ['']
 *             last = 0             # <<<<<<<<<<<<<<
 *             if context:
 *                 fromlist = ['<td></td><td>&nbsp;No Differences Found&nbsp;</td>']
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __Pyx_DECREF_SET(__pyx_v_last, __pyx_mstate_global->__pyx_int_0);

    /* "lxml/html/_difflib.py":1990
 *             next_href = ['']
 *             last = 0
 *             if context:             # <<<<<<<<<<<<<<
 *                 fromlist = ['<td></td><td>&nbsp;No Differences Found&nbsp;</td>']
 *                 tolist = fromlist
*/
    __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_v_context); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 1990, __pyx_L1_error)
    if (__pyx_t_12) {

      /* "lxml/html/_difflib.py":1991
 *             last = 0
 *             if context:
 *                 fromlist = ['<td></td><td>&nbsp;No Differences Found&nbsp;</td>']             # <<<<<<<<<<<<<<
 *                 tolist = fromlist
 *             else:
*/
      __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1991, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_td_td_td_nbsp_No_Differences_Fo);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_td_td_td_nbsp_No_Differences_Fo);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_kp_u_td_td_td_nbsp_No_Differences_Fo) != (0)) __PYX_ERR(0, 1991, __pyx_L1_error);
      __Pyx_DECREF_SET(__pyx_v_fromlist, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "lxml/html/_difflib.py":1992
 *             if context:
 *                 fromlist = ['<td></td><td>&nbsp;No Differences Found&nbsp;</td>']
 *                 tolist = fromlist             # <<<<<<<<<<<<<<
 *             else:
 *                 fromlist = tolist = ['<td></td><td>&nbsp;Empty File&nbsp;</td>']
*/
      __Pyx_INCREF(__pyx_v_fromlist);
      __Pyx_DECREF_SET(__pyx_v_tolist, __pyx_v_fromlist);

      /* "lxml/html/_difflib.py":1990
 *             next_href = ['']
 *             last = 0
 *             if context:             # <<<<<<<<<<<<<<
 *                 fromlist = ['<td></td><td>&nbsp;No Differences Found&nbsp;</td>']
 *                 tolist = fromlist
*/
      goto __pyx_L9;
    }

    /* "lxml/html/_difflib.py":1994
 *                 tolist = fromlist
 *             else:
 *                 fromlist = tolist = ['<td></td><td>&nbsp;Empty File&nbsp;</td>']             # <<<<<<<<<<<<<<
 *         # if not a change on first line, drop a link
 *         if not flaglist[0]:
*/
    /*else*/ {
      __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1994, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_td_td_td_nbsp_Empty_File_nbsp_t);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_td_td_td_nbsp_Empty_File_nbsp_t);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_kp_u_td_td_td_nbsp_Empty_File_nbsp_t) != (0)) __PYX_ERR(0, 1994, __pyx_L1_error);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_fromlist, __pyx_t_2);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_tolist, __pyx_t_2);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
    __pyx_L9:;

    /* "lxml/html/_difflib.py":1985
 *                 in_change = False
 *         # check for cases where there is no content to avoid exceptions
 *         if not flaglist:             # <<<<<<<<<<<<<<
 *             flaglist = [False]
 *             next_id = ['']
*/
  }

  /* "lxml/html/_difflib.py":1996
 *                 fromlist = tolist = ['<td></td><td>&nbsp;Empty File&nbsp;</td>']
 *         # if not a change on first line, drop a link
 *         if not flaglist[0]:             # <<<<<<<<<<<<<<
 *             next_href[0] = '<a href="#difflib_chg_%s_0">f</a>' % toprefix
 *         # redo the last link to link to the top
*/
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_flaglist, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = (!__pyx_t_12);
  if (__pyx_t_5) {

    /* "lxml/html/_difflib.py":1997
 *         # if not a change on first line, drop a link
 *         if not flaglist[0]:
 *             next_href[0] = '<a href="#difflib_chg_%s_0">f</a>' % toprefix             # <<<<<<<<<<<<<<
 *         # redo the last link to link to the top
 *         next_href[last] = '<a href="#difflib_chg_%s_top">t</a>' % (toprefix)
*/
    __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_a_href_difflib_chg__s_0_f_a, __pyx_v_toprefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1997, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely((__Pyx_SetItemInt(__pyx_v_next_href, 0, __pyx_t_2, long, 1, __Pyx_PyLong_From_long, 1, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 1997, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":1996
 *                 fromlist = tolist = ['<td></td><td>&nbsp;Empty File&nbsp;</td>']
 *         # if not a change on first line, drop a link
 *         if not flaglist[0]:             # <<<<<<<<<<<<<<
 *             next_href[0] = '<a href="#difflib_chg_%s_0">f</a>' % toprefix
 *         # redo the last link to link to the top
*/
  }

  /* "lxml/html/_difflib.py":1999
 *             next_href[0] = '<a href="#difflib_chg_%s_0">f</a>' % toprefix
 *         # redo the last link to link to the top
 *         next_href[last] = '<a href="#difflib_chg_%s_top">t</a>' % (toprefix)             # <<<<<<<<<<<<<<
 * 
 *         return fromlist,tolist,flaglist,next_href,next_id
*/
  __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_a_href_difflib_chg__s_top_t_a, __pyx_v_toprefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((PyObject_SetItem(__pyx_v_next_href, __pyx_v_last, __pyx_t_2) < 0))) __PYX_ERR(0, 1999, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/html/_difflib.py":2001
 *         next_href[last] = '<a href="#difflib_chg_%s_top">t</a>' % (toprefix)
 * 
 *         return fromlist,tolist,flaglist,next_href,next_id             # <<<<<<<<<<<<<<
 * 
 *     def make_table(self,fromlines,tolines,fromdesc='',todesc='',context=False,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_fromlist);
  __Pyx_GIVEREF(__pyx_v_fromlist);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_fromlist) != (0)) __PYX_ERR(0, 2001, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_tolist);
  __Pyx_GIVEREF(__pyx_v_tolist);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_tolist) != (0)) __PYX_ERR(0, 2001, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_flaglist);
  __Pyx_GIVEREF(__pyx_v_flaglist);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_flaglist) != (0)) __PYX_ERR(0, 2001, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_next_href);
  __Pyx_GIVEREF(__pyx_v_next_href);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_next_href) != (0)) __PYX_ERR(0, 2001, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_next_id);
  __Pyx_GIVEREF(__pyx_v_next_id);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_v_next_id) != (0)) __PYX_ERR(0, 2001, __pyx_L1_error);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":1956
 *         self._prefix = [fromprefix,toprefix]
 * 
 *     def _convert_flags(self,fromlist,tolist,flaglist,context,numlines):             # <<<<<<<<<<<<<<
 *         """Makes list of "next" links"""
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff._convert_flags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_toprefix);
  __Pyx_XDECREF(__pyx_v_next_id);
  __Pyx_XDECREF(__pyx_v_next_href);
  __Pyx_XDECREF(__pyx_v_last);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_flag);
  __Pyx_XDECREF(__pyx_v_fromlist);
  __Pyx_XDECREF(__pyx_v_tolist);
  __Pyx_XDECREF(__pyx_v_flaglist);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/html/_difflib.py":2003
 *         return fromlist,tolist,flaglist,next_href,next_id
 * 
 *     def make_table(self,fromlines,tolines,fromdesc='',todesc='',context=False,             # <<<<<<<<<<<<<<
 *                    numlines=5):
 *         """Returns HTML table of side by side comparison with change highlights
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_20make_table(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_19make_table, "Returns HTML table of side by side comparison with change highlights\n\n        Arguments:\n        fromlines -- list of \"from\" lines\n        tolines -- list of \"to\" lines\n        fromdesc -- \"from\" file column header string\n        todesc -- \"to\" file column header string\n        context -- set to True for contextual differences (defaults to False\n            which shows full differences).\n        numlines -- number of context lines.  When context is set True,\n            controls number of lines displayed before and after the change.\n            When context is False, controls the number of lines to place\n            the \"next\" link anchors before the next change (so click of\n            \"next\" link jumps to just before the change).\n        ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_20make_table = {"make_table", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_20make_table, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_8HtmlDiff_19make_table};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_8HtmlDiff_20make_table(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_fromlines = 0;
  PyObject *__pyx_v_tolines = 0;
  PyObject *__pyx_v_fromdesc = 0;
  PyObject *__pyx_v_todesc = 0;
  PyObject *__pyx_v_context = 0;
  PyObject *__pyx_v_numlines = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_table (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_fromlines,&__pyx_mstate_global->__pyx_n_u_tolines,&__pyx_mstate_global->__pyx_n_u_fromdesc,&__pyx_mstate_global->__pyx_n_u_todesc,&__pyx_mstate_global->__pyx_n_u_context,&__pyx_mstate_global->__pyx_n_u_numlines,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 2003, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "make_table", 0) < (0)) __PYX_ERR(0, 2003, __pyx_L3_error)
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_False)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_5)));
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("make_table", 0, 3, 7, i); __PYX_ERR(0, 2003, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 2003, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 2003, __pyx_L3_error)
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2003, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2003, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__2)));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_False)));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_5)));
    }
    __pyx_v_self = values[0];
    __pyx_v_fromlines = values[1];
    __pyx_v_tolines = values[2];
    __pyx_v_fromdesc = values[3];
    __pyx_v_todesc = values[4];
    __pyx_v_context = values[5];
    __pyx_v_numlines = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("make_table", 0, 3, 7, __pyx_nargs); __PYX_ERR(0, 2003, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff.make_table", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_19make_table(__pyx_self, __pyx_v_self, __pyx_v_fromlines, __pyx_v_tolines, __pyx_v_fromdesc, __pyx_v_todesc, __pyx_v_context, __pyx_v_numlines);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_8HtmlDiff_19make_table(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fromlines, PyObject *__pyx_v_tolines, PyObject *__pyx_v_fromdesc, PyObject *__pyx_v_todesc, PyObject *__pyx_v_context, PyObject *__pyx_v_numlines) {
  PyObject *__pyx_v_context_lines = NULL;
  PyObject *__pyx_v_diffs = NULL;
  PyObject *__pyx_v_fromlist = NULL;
  PyObject *__pyx_v_tolist = NULL;
  PyObject *__pyx_v_flaglist = NULL;
  PyObject *__pyx_v_next_href = NULL;
  PyObject *__pyx_v_next_id = NULL;
  PyObject *__pyx_v_s = NULL;
  PyObject *__pyx_v_fmt = NULL;
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_header_row = NULL;
  PyObject *__pyx_v_table = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *(*__pyx_t_6)(PyObject *);
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  PyObject *__pyx_t_16[5];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("make_table", 0);
  __Pyx_INCREF(__pyx_v_fromlines);
  __Pyx_INCREF(__pyx_v_tolines);

  /* "lxml/html/_difflib.py":2023
 *         # make unique anchor prefixes so that multiple tables may exist
 *         # on the same page without conflict.
 *         self._make_prefix()             # <<<<<<<<<<<<<<
 * 
 *         # change tabs to spaces before it gets more difficult after we insert
*/
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_make_prefix, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2023, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":2027
 *         # change tabs to spaces before it gets more difficult after we insert
 *         # markup
 *         fromlines,tolines = self._tab_newline_replace(fromlines,tolines)             # <<<<<<<<<<<<<<
 * 
 *         # create diffs iterator which generates side by side from/to data
*/
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_fromlines, __pyx_v_tolines};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_tab_newline_replace, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
    PyObject* sequence = __pyx_t_1;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 2)) {
      if (size > 2) __Pyx_RaiseTooManyValuesError(2);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(0, 2027, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_4);
    } else {
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2027, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2027, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_4);
    }
    #else
    __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5);
    index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_2);
    index = 1; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_4);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 2) < (0)) __PYX_ERR(0, 2027, __pyx_L1_error)
    __pyx_t_6 = NULL;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_6 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(0, 2027, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }
  __Pyx_DECREF_SET(__pyx_v_fromlines, __pyx_t_2);
  __pyx_t_2 = 0;
  __Pyx_DECREF_SET(__pyx_v_tolines, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/html/_difflib.py":2030
 * 
 *         # create diffs iterator which generates side by side from/to data
 *         if context:             # <<<<<<<<<<<<<<
 *             context_lines = numlines
 *         else:
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_context); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 2030, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "lxml/html/_difflib.py":2031
 *         # create diffs iterator which generates side by side from/to data
 *         if context:
 *             context_lines = numlines             # <<<<<<<<<<<<<<
 *         else:
 *             context_lines = None
*/
    __Pyx_INCREF(__pyx_v_numlines);
    __pyx_v_context_lines = __pyx_v_numlines;

    /* "lxml/html/_difflib.py":2030
 * 
 *         # create diffs iterator which generates side by side from/to data
 *         if context:             # <<<<<<<<<<<<<<
 *             context_lines = numlines
 *         else:
*/
    goto __pyx_L5;
  }

  /* "lxml/html/_difflib.py":2033
 *             context_lines = numlines
 *         else:
 *             context_lines = None             # <<<<<<<<<<<<<<
 *         diffs = _mdiff(fromlines,tolines,context_lines,linejunk=self._linejunk,
 *                       charjunk=self._charjunk)
*/
  /*else*/ {
    __Pyx_INCREF(Py_None);
    __pyx_v_context_lines = Py_None;
  }
  __pyx_L5:;

  /* "lxml/html/_difflib.py":2034
 *         else:
 *             context_lines = None
 *         diffs = _mdiff(fromlines,tolines,context_lines,linejunk=self._linejunk,             # <<<<<<<<<<<<<<
 *                       charjunk=self._charjunk)
 * 
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_mdiff); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_linejunk_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "lxml/html/_difflib.py":2035
 *             context_lines = None
 *         diffs = _mdiff(fromlines,tolines,context_lines,linejunk=self._linejunk,
 *                       charjunk=self._charjunk)             # <<<<<<<<<<<<<<
 * 
 *         # set up iterator to wrap lines that exceed desired width
*/
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_charjunk_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_4, __pyx_v_fromlines, __pyx_v_tolines, __pyx_v_context_lines};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2034, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_linejunk, __pyx_t_5, __pyx_t_9, __pyx_callargs+4, 0) < (0)) __PYX_ERR(0, 2034, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_charjunk, __pyx_t_8, __pyx_t_9, __pyx_callargs+4, 1) < (0)) __PYX_ERR(0, 2034, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_3, (4-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2034, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_diffs = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":2038
 * 
 *         # set up iterator to wrap lines that exceed desired width
 *         if self._wrapcolumn:             # <<<<<<<<<<<<<<
 *             diffs = self._line_wrapper(diffs)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_wrapcolumn_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 2038, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_7) {

    /* "lxml/html/_difflib.py":2039
 *         # set up iterator to wrap lines that exceed desired width
 *         if self._wrapcolumn:
 *             diffs = self._line_wrapper(diffs)             # <<<<<<<<<<<<<<
 * 
 *         # collect up from/to lines and flags into lists (also format the lines)
*/
    __pyx_t_2 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_diffs};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_line_wrapper, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2039, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF_SET(__pyx_v_diffs, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/html/_difflib.py":2038
 * 
 *         # set up iterator to wrap lines that exceed desired width
 *         if self._wrapcolumn:             # <<<<<<<<<<<<<<
 *             diffs = self._line_wrapper(diffs)
 * 
*/
  }

  /* "lxml/html/_difflib.py":2042
 * 
 *         # collect up from/to lines and flags into lists (also format the lines)
 *         fromlist,tolist,flaglist = self._collect_lines(diffs)             # <<<<<<<<<<<<<<
 * 
 *         # process change flags, generating middle column of next anchors/links
*/
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_diffs};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_collect_lines, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
    PyObject* sequence = __pyx_t_1;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(0, 2042, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_8 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_8);
    } else {
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2042, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2042, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_9);
      __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2042, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_8);
    }
    #else
    __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5);
    index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_2)) goto __pyx_L7_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_2);
    index = 1; __pyx_t_9 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_9)) goto __pyx_L7_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_9);
    index = 2; __pyx_t_8 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_8)) goto __pyx_L7_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_8);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < (0)) __PYX_ERR(0, 2042, __pyx_L1_error)
    __pyx_t_6 = NULL;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L8_unpacking_done;
    __pyx_L7_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_6 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(0, 2042, __pyx_L1_error)
    __pyx_L8_unpacking_done:;
  }
  __pyx_v_fromlist = __pyx_t_2;
  __pyx_t_2 = 0;
  __pyx_v_tolist = __pyx_t_9;
  __pyx_t_9 = 0;
  __pyx_v_flaglist = __pyx_t_8;
  __pyx_t_8 = 0;

  /* "lxml/html/_difflib.py":2045
 * 
 *         # process change flags, generating middle column of next anchors/links
 *         fromlist,tolist,flaglist,next_href,next_id = self._convert_flags(             # <<<<<<<<<<<<<<
 *             fromlist,tolist,flaglist,context,numlines)
 * 
*/
  __pyx_t_8 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_8);

  /* "lxml/html/_difflib.py":2046
 *         # process change flags, generating middle column of next anchors/links
 *         fromlist,tolist,flaglist,next_href,next_id = self._convert_flags(
 *             fromlist,tolist,flaglist,context,numlines)             # <<<<<<<<<<<<<<
 * 
 *         s = []
*/
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_8, __pyx_v_fromlist, __pyx_v_tolist, __pyx_v_flaglist, __pyx_v_context, __pyx_v_numlines};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_convert_flags, __pyx_callargs+__pyx_t_3, (6-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2045, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
    PyObject* sequence = __pyx_t_1;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 5)) {
      if (size > 5) __Pyx_RaiseTooManyValuesError(5);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(0, 2045, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_8);
      __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 3);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 4);
      __Pyx_INCREF(__pyx_t_4);
    } else {
      __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2045, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2045, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_9);
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2045, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2045, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2045, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_4);
    }
    #else
    {
      Py_ssize_t i;
      PyObject** temps[5] = {&__pyx_t_8,&__pyx_t_9,&__pyx_t_2,&__pyx_t_5,&__pyx_t_4};
      for (i=0; i < 5; i++) {
        PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 2045, __pyx_L1_error)
        __Pyx_GOTREF(item);
        *(temps[i]) = item;
      }
    }
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    Py_ssize_t index = -1;
    PyObject** temps[5] = {&__pyx_t_8,&__pyx_t_9,&__pyx_t_2,&__pyx_t_5,&__pyx_t_4};
    __pyx_t_10 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2045, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
    for (index=0; index < 5; index++) {
      PyObject* item = __pyx_t_6(__pyx_t_10); if (unlikely(!item)) goto __pyx_L9_unpacking_failed;
      __Pyx_GOTREF(item);
      *(temps[index]) = item;
    }
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_10), 5) < (0)) __PYX_ERR(0, 2045, __pyx_L1_error)
    __pyx_t_6 = NULL;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    goto __pyx_L10_unpacking_done;
    __pyx_L9_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_6 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(0, 2045, __pyx_L1_error)
    __pyx_L10_unpacking_done:;
  }

  /* "lxml/html/_difflib.py":2045
 * 
 *         # process change flags, generating middle column of next anchors/links
 *         fromlist,tolist,flaglist,next_href,next_id = self._convert_flags(             # <<<<<<<<<<<<<<
 *             fromlist,tolist,flaglist,context,numlines)
 * 
*/
  __Pyx_DECREF_SET(__pyx_v_fromlist, __pyx_t_8);
  __pyx_t_8 = 0;
  __Pyx_DECREF_SET(__pyx_v_tolist, __pyx_t_9);
  __pyx_t_9 = 0;
  __Pyx_DECREF_SET(__pyx_v_flaglist, __pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_v_next_href = __pyx_t_5;
  __pyx_t_5 = 0;
  __pyx_v_next_id = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "lxml/html/_difflib.py":2048
 *             fromlist,tolist,flaglist,context,numlines)
 * 
 *         s = []             # <<<<<<<<<<<<<<
 *         fmt = '            <tr><td class="diff_next"%s>%s</td>%s' + \
 *               '<td class="diff_next">%s</td>%s</tr>\n'
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2048, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_s = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/html/_difflib.py":2049
 * 
 *         s = []
 *         fmt = '            <tr><td class="diff_next"%s>%s</td>%s' + \             # <<<<<<<<<<<<<<
 *               '<td class="diff_next">%s</td>%s</tr>\n'
 *         for i in range(len(flaglist)):
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_tr_td_class_diff_next_s_s_td_s);
  __pyx_v_fmt = __pyx_mstate_global->__pyx_kp_u_tr_td_class_diff_next_s_s_td_s;

  /* "lxml/html/_difflib.py":2051
 *         fmt = '            <tr><td class="diff_next"%s>%s</td>%s' + \
 *               '<td class="diff_next">%s</td>%s</tr>\n'
 *         for i in range(len(flaglist)):             # <<<<<<<<<<<<<<
 *             if flaglist[i] is None:
 *                 # mdiff yields None on separator lines skip the bogus ones
*/
  __pyx_t_11 = PyObject_Length(__pyx_v_flaglist); if (unlikely(__pyx_t_11 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2051, __pyx_L1_error)
  __pyx_t_12 = __pyx_t_11;
  for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
    __pyx_v_i = __pyx_t_13;

    /* "lxml/html/_difflib.py":2052
 *               '<td class="diff_next">%s</td>%s</tr>\n'
 *         for i in range(len(flaglist)):
 *             if flaglist[i] is None:             # <<<<<<<<<<<<<<
 *                 # mdiff yields None on separator lines skip the bogus ones
 *                 # generated for the first line
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_flaglist, __pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2052, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = (__pyx_t_1 == Py_None);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_7) {

      /* "lxml/html/_difflib.py":2055
 *                 # mdiff yields None on separator lines skip the bogus ones
 *                 # generated for the first line
 *                 if i > 0:             # <<<<<<<<<<<<<<
 *                     s.append('        </tbody>        \n        <tbody>\n')
 *             else:
*/
      __pyx_t_7 = (__pyx_v_i > 0);
      if (__pyx_t_7) {

        /* "lxml/html/_difflib.py":2056
 *                 # generated for the first line
 *                 if i > 0:
 *                     s.append('        </tbody>        \n        <tbody>\n')             # <<<<<<<<<<<<<<
 *             else:
 *                 s.append( fmt % (next_id[i],next_href[i],fromlist[i],
*/
        __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_s, __pyx_mstate_global->__pyx_kp_u_tbody_tbody); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 2056, __pyx_L1_error)

        /* "lxml/html/_difflib.py":2055
 *                 # mdiff yields None on separator lines skip the bogus ones
 *                 # generated for the first line
 *                 if i > 0:             # <<<<<<<<<<<<<<
 *                     s.append('        </tbody>        \n        <tbody>\n')
 *             else:
*/
      }

      /* "lxml/html/_difflib.py":2052
 *               '<td class="diff_next">%s</td>%s</tr>\n'
 *         for i in range(len(flaglist)):
 *             if flaglist[i] is None:             # <<<<<<<<<<<<<<
 *                 # mdiff yields None on separator lines skip the bogus ones
 *                 # generated for the first line
*/
      goto __pyx_L13;
    }

    /* "lxml/html/_difflib.py":2058
 *                     s.append('        </tbody>        \n        <tbody>\n')
 *             else:
 *                 s.append( fmt % (next_id[i],next_href[i],fromlist[i],             # <<<<<<<<<<<<<<
 *                                            next_href[i],tolist[i]))
 *         if fromdesc or todesc:
*/
    /*else*/ {
      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_next_id, __pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2058, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_next_href, __pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2058, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_fromlist, __pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2058, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);

      /* "lxml/html/_difflib.py":2059
 *             else:
 *                 s.append( fmt % (next_id[i],next_href[i],fromlist[i],
 *                                            next_href[i],tolist[i]))             # <<<<<<<<<<<<<<
 *         if fromdesc or todesc:
 *             header_row = '<thead><tr>%s%s%s%s</tr></thead>' % (
*/
      __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_next_href, __pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2059, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_tolist, __pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2059, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);

      /* "lxml/html/_difflib.py":2058
 *                     s.append('        </tbody>        \n        <tbody>\n')
 *             else:
 *                 s.append( fmt % (next_id[i],next_href[i],fromlist[i],             # <<<<<<<<<<<<<<
 *                                            next_href[i],tolist[i]))
 *         if fromdesc or todesc:
*/
      __pyx_t_8 = PyTuple_New(5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2058, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 2058, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_4);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_4) != (0)) __PYX_ERR(0, 2058, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_5);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_5) != (0)) __PYX_ERR(0, 2058, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_2);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_2) != (0)) __PYX_ERR(0, 2058, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_9);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_t_9) != (0)) __PYX_ERR(0, 2058, __pyx_L1_error);
      __pyx_t_1 = 0;
      __pyx_t_4 = 0;
      __pyx_t_5 = 0;
      __pyx_t_2 = 0;
      __pyx_t_9 = 0;
      __pyx_t_9 = PyUnicode_Format(__pyx_v_fmt, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2058, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_s, __pyx_t_9); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 2058, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    }
    __pyx_L13:;
  }

  /* "lxml/html/_difflib.py":2060
 *                 s.append( fmt % (next_id[i],next_href[i],fromlist[i],
 *                                            next_href[i],tolist[i]))
 *         if fromdesc or todesc:             # <<<<<<<<<<<<<<
 *             header_row = '<thead><tr>%s%s%s%s</tr></thead>' % (
 *                 '<th class="diff_next"><br /></th>',
*/
  __pyx_t_15 = __Pyx_PyObject_IsTrue(__pyx_v_fromdesc); if (unlikely((__pyx_t_15 < 0))) __PYX_ERR(0, 2060, __pyx_L1_error)
  if (!__pyx_t_15) {
  } else {
    __pyx_t_7 = __pyx_t_15;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_15 = __Pyx_PyObject_IsTrue(__pyx_v_todesc); if (unlikely((__pyx_t_15 < 0))) __PYX_ERR(0, 2060, __pyx_L1_error)
  __pyx_t_7 = __pyx_t_15;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_7) {

    /* "lxml/html/_difflib.py":2063
 *             header_row = '<thead><tr>%s%s%s%s</tr></thead>' % (
 *                 '<th class="diff_next"><br /></th>',
 *                 '<th colspan="2" class="diff_header">%s</th>' % fromdesc,             # <<<<<<<<<<<<<<
 *                 '<th class="diff_next"><br /></th>',
 *                 '<th colspan="2" class="diff_header">%s</th>' % todesc)
*/
    __pyx_t_9 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_th_colspan_2_class_diff_header, __pyx_v_fromdesc); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2063, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);

    /* "lxml/html/_difflib.py":2065
 *                 '<th colspan="2" class="diff_header">%s</th>' % fromdesc,
 *                 '<th class="diff_next"><br /></th>',
 *                 '<th colspan="2" class="diff_header">%s</th>' % todesc)             # <<<<<<<<<<<<<<
 *         else:
 *             header_row = ''
*/
    __pyx_t_8 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_th_colspan_2_class_diff_header, __pyx_v_todesc); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2065, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_16[0] = __pyx_mstate_global->__pyx_kp_u_thead_tr_th_class_diff_next_br;
    __pyx_t_16[1] = __pyx_t_9;
    __pyx_t_16[2] = __pyx_mstate_global->__pyx_kp_u_th_class_diff_next_br_th;
    __pyx_t_16[3] = __pyx_t_8;
    __pyx_t_16[4] = __pyx_mstate_global->__pyx_kp_u_tr_thead;

    /* "lxml/html/_difflib.py":2061
 *                                            next_href[i],tolist[i]))
 *         if fromdesc or todesc:
 *             header_row = '<thead><tr>%s%s%s%s</tr></thead>' % (             # <<<<<<<<<<<<<<
 *                 '<th class="diff_next"><br /></th>',
 *                 '<th colspan="2" class="diff_header">%s</th>' % fromdesc,
*/
    __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_16, 5, 44 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 33 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 13, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8));
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_v_header_row = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "lxml/html/_difflib.py":2060
 *                 s.append( fmt % (next_id[i],next_href[i],fromlist[i],
 *                                            next_href[i],tolist[i]))
 *         if fromdesc or todesc:             # <<<<<<<<<<<<<<
 *             header_row = '<thead><tr>%s%s%s%s</tr></thead>' % (
 *                 '<th class="diff_next"><br /></th>',
*/
    goto __pyx_L15;
  }

  /* "lxml/html/_difflib.py":2067
 *                 '<th colspan="2" class="diff_header">%s</th>' % todesc)
 *         else:
 *             header_row = ''             # <<<<<<<<<<<<<<
 * 
 *         table = self._table_template % dict(
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__2);
    __pyx_v_header_row = __pyx_mstate_global->__pyx_kp_u__2;
  }
  __pyx_L15:;

  /* "lxml/html/_difflib.py":2069
 *             header_row = ''
 * 
 *         table = self._table_template % dict(             # <<<<<<<<<<<<<<
 *             data_rows=''.join(s),
 *             header_row=header_row,
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_table_template); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "lxml/html/_difflib.py":2070
 * 
 *         table = self._table_template % dict(
 *             data_rows=''.join(s),             # <<<<<<<<<<<<<<
 *             header_row=header_row,
 *             prefix=self._prefix[1])
*/
  __pyx_t_8 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2070, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_s); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2070, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_data_rows, __pyx_t_9) < (0)) __PYX_ERR(0, 2070, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":2071
 *         table = self._table_template % dict(
 *             data_rows=''.join(s),
 *             header_row=header_row,             # <<<<<<<<<<<<<<
 *             prefix=self._prefix[1])
 * 
*/
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_header_row, __pyx_v_header_row) < (0)) __PYX_ERR(0, 2070, __pyx_L1_error)

  /* "lxml/html/_difflib.py":2072
 *             data_rows=''.join(s),
 *             header_row=header_row,
 *             prefix=self._prefix[1])             # <<<<<<<<<<<<<<
 * 
 *         return table.replace('\0+','<span class="diff_add">'). \
*/
  __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_prefix); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_9, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_prefix_2, __pyx_t_5) < (0)) __PYX_ERR(0, 2070, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "lxml/html/_difflib.py":2069
 *             header_row = ''
 * 
 *         table = self._table_template % dict(             # <<<<<<<<<<<<<<
 *             data_rows=''.join(s),
 *             header_row=header_row,
*/
  __pyx_t_5 = PyNumber_Remainder(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_v_table = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "lxml/html/_difflib.py":2074
 *             prefix=self._prefix[1])
 * 
 *         return table.replace('\0+','<span class="diff_add">'). \             # <<<<<<<<<<<<<<
 *                      replace('\0-','<span class="diff_sub">'). \
 *                      replace('\0^','<span class="diff_chg">'). \
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_table, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2074, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[16], NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2074, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2074, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "lxml/html/_difflib.py":2075
 * 
 *         return table.replace('\0+','<span class="diff_add">'). \
 *                      replace('\0-','<span class="diff_sub">'). \             # <<<<<<<<<<<<<<
 *                      replace('\0^','<span class="diff_chg">'). \
 *                      replace('\1','</span>'). \
*/
  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[17], NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "lxml/html/_difflib.py":2076
 *         return table.replace('\0+','<span class="diff_add">'). \
 *                      replace('\0-','<span class="diff_sub">'). \
 *                      replace('\0^','<span class="diff_chg">'). \             # <<<<<<<<<<<<<<
 *                      replace('\1','</span>'). \
 *                      replace('\t','&nbsp;')
*/
  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[18], NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "lxml/html/_difflib.py":2077
 *                      replace('\0-','<span class="diff_sub">'). \
 *                      replace('\0^','<span class="diff_chg">'). \
 *                      replace('\1','</span>'). \             # <<<<<<<<<<<<<<
 *                      replace('\t','&nbsp;')
 * 
*/
  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[19], NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "lxml/html/_difflib.py":2078
 *                      replace('\0^','<span class="diff_chg">'). \
 *                      replace('\1','</span>'). \
 *                      replace('\t','&nbsp;')             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[20], NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "lxml/html/_difflib.py":2003
 *         return fromlist,tolist,flaglist,next_href,next_id
 * 
 *     def make_table(self,fromlines,tolines,fromdesc='',todesc='',context=False,             # <<<<<<<<<<<<<<
 *                    numlines=5):
 *         """Returns HTML table of side by side comparison with change highlights
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("lxml.html._difflib.HtmlDiff.make_table", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_context_lines);
  __Pyx_XDECREF(__pyx_v_diffs);
  __Pyx_XDECREF(__pyx_v_fromlist);
  __Pyx_XDECREF(__pyx_v_tolist);
  __Pyx_XDECREF(__pyx_v_flaglist);
  __Pyx_XDECREF(__pyx_v_next_href);
  __Pyx_XDECREF(__pyx_v_next_id);
  __Pyx_XDECREF(__pyx_v_s);
  __Pyx_XDECREF(__pyx_v_fmt);
  __Pyx_XDECREF(__pyx_v_header_row);
  __Pyx_XDECREF(__pyx_v_table);
  __Pyx_XDECREF(__pyx_v_fromlines);
  __Pyx_XDECREF(__pyx_v_tolines);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4lxml_4html_8_difflib_30generator12(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "lxml/html/_difflib.py":2081
 * 
 * 
 * def restore(delta, which):             # <<<<<<<<<<<<<<
 *     r"""
 *     Generate one of the two sequences that generated a delta.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_29restore(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4lxml_4html_8_difflib_28restore, "\n    Generate one of the two sequences that generated a delta.\n\n    Given a `delta` produced by `Differ.compare()` or `ndiff()`, extract\n    lines originating from file 1 or 2 (parameter `which`), stripping off line\n    prefixes.\n\n    Examples:\n\n    >>> diff = ndiff('one\\ntwo\\nthree\\n'.splitlines(keepends=True),\n    ...              'ore\\ntree\\nemu\\n'.splitlines(keepends=True))\n    >>> diff = list(diff)\n    >>> print(''.join(restore(diff, 1)), end=\"\")\n    one\n    two\n    three\n    >>> print(''.join(restore(diff, 2)), end=\"\")\n    ore\n    tree\n    emu\n    ");
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_29restore = {"restore", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_29restore, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_28restore};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_29restore(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_delta = 0;
  PyObject *__pyx_v_which = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("restore (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_delta,&__pyx_mstate_global->__pyx_n_u_which,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 2081, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2081, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2081, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "restore", 0) < (0)) __PYX_ERR(0, 2081, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("restore", 1, 2, 2, i); __PYX_ERR(0, 2081, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2081, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2081, __pyx_L3_error)
    }
    __pyx_v_delta = values[0];
    __pyx_v_which = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("restore", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 2081, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.restore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_28restore(__pyx_self, __pyx_v_delta, __pyx_v_which);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_28restore(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_delta, PyObject *__pyx_v_which) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("restore", 0);
  __pyx_cur_scope = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_19_restore(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2081, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_delta = __pyx_v_delta;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_delta);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_delta);
  __pyx_cur_scope->__pyx_v_which = __pyx_v_which;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_which);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_which);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4lxml_4html_8_difflib_30generator12, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_restore, __pyx_mstate_global->__pyx_n_u_restore, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib); if (unlikely(!gen)) __PYX_ERR(0, 2081, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.html._difflib.restore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4lxml_4html_8_difflib_30generator12(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *__pyx_cur_scope = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  size_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  PyObject *(*__pyx_t_13)(PyObject *);
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("restore", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L15_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(0, 2081, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":2103
 *     emu
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         tag = {1: "- ", 2: "+ "}[int(which)]
 *     except KeyError:
*/
  {
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "lxml/html/_difflib.py":2104
 *     """
 *     try:
 *         tag = {1: "- ", 2: "+ "}[int(which)]             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError('unknown delta choice (must be 1 or 2): %r'
*/
      __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2104, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_kp_u__8) < (0)) __PYX_ERR(0, 2104, __pyx_L4_error)
      if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_int_2, __pyx_mstate_global->__pyx_kp_u__11) < (0)) __PYX_ERR(0, 2104, __pyx_L4_error)
      __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_which); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2104, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyDict_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2104, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GIVEREF(__pyx_t_6);
      __pyx_cur_scope->__pyx_v_tag = __pyx_t_6;
      __pyx_t_6 = 0;

      /* "lxml/html/_difflib.py":2103
 *     emu
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         tag = {1: "- ", 2: "+ "}[int(which)]
 *     except KeyError:
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "lxml/html/_difflib.py":2105
 *     try:
 *         tag = {1: "- ", 2: "+ "}[int(which)]
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError('unknown delta choice (must be 1 or 2): %r'
 *                            % which) from None
*/
    __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_7) {
      __Pyx_AddTraceback("lxml.html._difflib.restore", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 2105, __pyx_L6_except_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);

      /* "lxml/html/_difflib.py":2106
 *         tag = {1: "- ", 2: "+ "}[int(which)]
 *     except KeyError:
 *         raise ValueError('unknown delta choice (must be 1 or 2): %r'             # <<<<<<<<<<<<<<
 *                            % which) from None
 *     prefixes = ("  ", tag)
*/
      __pyx_t_9 = NULL;

      /* "lxml/html/_difflib.py":2107
 *     except KeyError:
 *         raise ValueError('unknown delta choice (must be 1 or 2): %r'
 *                            % which) from None             # <<<<<<<<<<<<<<
 *     prefixes = ("  ", tag)
 *     for line in delta:
*/
      __pyx_t_10 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_unknown_delta_choice_must_be_1_o, __pyx_cur_scope->__pyx_v_which); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2107, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_10};
        __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2106, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __Pyx_Raise(__pyx_t_8, 0, 0, Py_None);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(0, 2106, __pyx_L6_except_error)
    }
    goto __pyx_L6_except_error;

    /* "lxml/html/_difflib.py":2103
 *     emu
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         tag = {1: "- ", 2: "+ "}[int(which)]
 *     except KeyError:
*/
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L9_try_end:;
  }

  /* "lxml/html/_difflib.py":2108
 *         raise ValueError('unknown delta choice (must be 1 or 2): %r'
 *                            % which) from None
 *     prefixes = ("  ", tag)             # <<<<<<<<<<<<<<
 *     for line in delta:
 *         if line[:2] in prefixes:
*/
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__7);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_mstate_global->__pyx_kp_u__7) != (0)) __PYX_ERR(0, 2108, __pyx_L1_error);
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_tag);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_tag);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_cur_scope->__pyx_v_tag) != (0)) __PYX_ERR(0, 2108, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_cur_scope->__pyx_v_prefixes = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/html/_difflib.py":2109
 *                            % which) from None
 *     prefixes = ("  ", tag)
 *     for line in delta:             # <<<<<<<<<<<<<<
 *         if line[:2] in prefixes:
 *             yield line[2:]
*/
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_delta)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_delta)) {
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_delta; __Pyx_INCREF(__pyx_t_4);
    __pyx_t_12 = 0;
    __pyx_t_13 = NULL;
  } else {
    __pyx_t_12 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_delta); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2109, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2109, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_13)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 2109, __pyx_L1_error)
          #endif
          if (__pyx_t_12 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_12, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_12;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 2109, __pyx_L1_error)
          #endif
          if (__pyx_t_12 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_12));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_12);
        #endif
        ++__pyx_t_12;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2109, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_13(__pyx_t_4);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 2109, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_line);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_line, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/html/_difflib.py":2110
 *     prefixes = ("  ", tag)
 *     for line in delta:
 *         if line[:2] in prefixes:             # <<<<<<<<<<<<<<
 *             yield line[2:]
*/
    __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_line, 0, 2, NULL, NULL, &__pyx_mstate_global->__pyx_slice[1], 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_14 = (__Pyx_PySequence_ContainsTF(__pyx_t_5, __pyx_cur_scope->__pyx_v_prefixes, Py_EQ)); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(0, 2110, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_14) {

      /* "lxml/html/_difflib.py":2111
 *     for line in delta:
 *         if line[:2] in prefixes:
 *             yield line[2:]             # <<<<<<<<<<<<<<
*/
      __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_line, 2, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[0], 1, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2111, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      __Pyx_XGIVEREF(__pyx_t_4);
      __pyx_cur_scope->__pyx_t_0 = __pyx_t_4;
      __pyx_cur_scope->__pyx_t_1 = __pyx_t_12;
      __pyx_cur_scope->__pyx_t_2 = __pyx_t_13;
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
      /* return from generator, yielding value */
      __pyx_generator->resume_label = 1;
      return __pyx_r;
      __pyx_L15_resume_from_yield:;
      __pyx_t_4 = __pyx_cur_scope->__pyx_t_0;
      __pyx_cur_scope->__pyx_t_0 = 0;
      __Pyx_XGOTREF(__pyx_t_4);
      __pyx_t_12 = __pyx_cur_scope->__pyx_t_1;
      __pyx_t_13 = __pyx_cur_scope->__pyx_t_2;
      if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2111, __pyx_L1_error)

      /* "lxml/html/_difflib.py":2110
 *     prefixes = ("  ", tag)
 *     for line in delta:
 *         if line[:2] in prefixes:             # <<<<<<<<<<<<<<
 *             yield line[2:]
*/
    }

    /* "lxml/html/_difflib.py":2109
 *                            % which) from None
 *     prefixes = ("  ", tag)
 *     for line in delta:             # <<<<<<<<<<<<<<
 *         if line[:2] in prefixes:
 *             yield line[2:]
*/
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "lxml/html/_difflib.py":2081
 * 
 * 
 * def restore(delta, which):             # <<<<<<<<<<<<<<
 *     r"""
 *     Generate one of the two sequences that generated a delta.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("restore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":4
 *     int __Pyx_CheckUnpickleChecksum(long, long, long, long, const char*) except -1
 *     int __Pyx_UpdateUnpickledDict(object, object, Py_ssize_t) except -1
 * def __pyx_unpickle_SequenceMatcher(__pyx_type, long __pyx_checksum, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x69089d0, 0xfefe063, 0xd40abce, b'a, autojunk, b, b2j, bjunk, bpopular, fullbcount, isjunk, matching_blocks, opcodes')
*/

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_4html_8_difflib_32__pyx_unpickle_SequenceMatcher(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_4html_8_difflib_32__pyx_unpickle_SequenceMatcher = {"__pyx_unpickle_SequenceMatcher", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_32__pyx_unpickle_SequenceMatcher, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4lxml_4html_8_difflib_32__pyx_unpickle_SequenceMatcher(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_SequenceMatcher (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_type,&__pyx_mstate_global->__pyx_n_u_pyx_checksum,&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 4, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 4, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 4, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 4, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__pyx_unpickle_SequenceMatcher", 0) < (0)) __PYX_ERR(1, 4, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SequenceMatcher", 1, 3, 3, i); __PYX_ERR(1, 4, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 4, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 4, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 4, __pyx_L3_error)
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyLong_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 4, __pyx_L3_error)
    __pyx_v___pyx_state = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SequenceMatcher", 1, 3, 3, __pyx_nargs); __PYX_ERR(1, 4, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("lxml.html._difflib.__pyx_unpickle_SequenceMatcher", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v___pyx_state), (&PyTuple_Type), 1, "__pyx_state", 1))) __PYX_ERR(1, 4, __pyx_L1_error)
  __pyx_r = __pyx_pf_4lxml_4html_8_difflib_31__pyx_unpickle_SequenceMatcher(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_4html_8_difflib_31__pyx_unpickle_SequenceMatcher(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_SequenceMatcher", 0);

  /* "(tree fragment)":6
 * def __pyx_unpickle_SequenceMatcher(__pyx_type, long __pyx_checksum, tuple __pyx_state):
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x69089d0, 0xfefe063, 0xd40abce, b'a, autojunk, b, b2j, bjunk, bpopular, fullbcount, isjunk, matching_blocks, opcodes')             # <<<<<<<<<<<<<<
 *     __pyx_result = SequenceMatcher.__new__(__pyx_type)
 *     if __pyx_state is not None:
*/
  __pyx_t_1 = __Pyx_CheckUnpickleChecksum(__pyx_v___pyx_checksum, 0x69089d0, 0xfefe063, 0xd40abce, __pyx_k_a_autojunk_b_b2j_bjunk_bpopular); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 6, __pyx_L1_error)

  /* "(tree fragment)":7
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x69089d0, 0xfefe063, 0xd40abce, b'a, autojunk, b, b2j, bjunk, bpopular, fullbcount, isjunk, matching_blocks, opcodes')
 *     __pyx_result = SequenceMatcher.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_SequenceMatcher__set_state(<SequenceMatcher> __pyx_result, __pyx_state)
*/
  __pyx_t_3 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v___pyx_type};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_new, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v___pyx_result = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "(tree fragment)":8
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x69089d0, 0xfefe063, 0xd40abce, b'a, autojunk, b, b2j, bjunk, bpopular, fullbcount, isjunk, matching_blocks, opcodes')
 *     __pyx_result = SequenceMatcher.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_SequenceMatcher__set_state(<SequenceMatcher> __pyx_result, __pyx_state)
 *     return __pyx_result
*/
  __pyx_t_5 = (__pyx_v___pyx_state != ((PyObject*)Py_None));
  if (__pyx_t_5) {

    /* "(tree fragment)":9
 *     __pyx_result = SequenceMatcher.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_SequenceMatcher__set_state(<SequenceMatcher> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_SequenceMatcher__set_state(SequenceMatcher __pyx_result, __pyx_state: tuple):
*/
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "cannot pass None into a C function argument that is declared 'not None'");
      __PYX_ERR(1, 9, __pyx_L1_error)
    }
    __pyx_t_2 = __pyx_f_4lxml_4html_8_difflib___pyx_unpickle_SequenceMatcher__set_state(((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)__pyx_v___pyx_result), __pyx_v___pyx_state); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":8
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x69089d0, 0xfefe063, 0xd40abce, b'a, autojunk, b, b2j, bjunk, bpopular, fullbcount, isjunk, matching_blocks, opcodes')
 *     __pyx_result = SequenceMatcher.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_SequenceMatcher__set_state(<SequenceMatcher> __pyx_result, __pyx_state)
 *     return __pyx_result
*/
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_SequenceMatcher__set_state(<SequenceMatcher> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_SequenceMatcher__set_state(SequenceMatcher __pyx_result, __pyx_state: tuple):
 *     __pyx_result.a = __pyx_state[0]; __pyx_result.autojunk = __pyx_state[1]; __pyx_result.b = __pyx_state[2]; __pyx_result.b2j = __pyx_state[3]; __pyx_result.bjunk = __pyx_state[4]; __pyx_result.bpopular = __pyx_state[5]; __pyx_result.fullbcount = __pyx_state[6]; __pyx_result.isjunk = __pyx_state[7]; __pyx_result.matching_blocks = __pyx_state[8]; __pyx_result.opcodes = __pyx_state[9]
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":4
 *     int __Pyx_CheckUnpickleChecksum(long, long, long, long, const char*) except -1
 *     int __Pyx_UpdateUnpickledDict(object, object, Py_ssize_t) except -1
 * def __pyx_unpickle_SequenceMatcher(__pyx_type, long __pyx_checksum, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x69089d0, 0xfefe063, 0xd40abce, b'a, autojunk, b, b2j, bjunk, bpopular, fullbcount, isjunk, matching_blocks, opcodes')
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.html._difflib.__pyx_unpickle_SequenceMatcher", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_SequenceMatcher__set_state(<SequenceMatcher> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_SequenceMatcher__set_state(SequenceMatcher __pyx_result, __pyx_state: tuple):             # <<<<<<<<<<<<<<
 *     __pyx_result.a = __pyx_state[0]; __pyx_result.autojunk = __pyx_state[1]; __pyx_result.b = __pyx_state[2]; __pyx_result.b2j = __pyx_state[3]; __pyx_result.bjunk = __pyx_state[4]; __pyx_result.bpopular = __pyx_state[5]; __pyx_result.fullbcount = __pyx_state[6]; __pyx_result.isjunk = __pyx_state[7]; __pyx_result.matching_blocks = __pyx_state[8]; __pyx_result.opcodes = __pyx_state[9]
 *     __Pyx_UpdateUnpickledDict(__pyx_result, __pyx_state, 10)
*/

static PyObject *__pyx_f_4lxml_4html_8_difflib___pyx_unpickle_SequenceMatcher__set_state(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_SequenceMatcher__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_SequenceMatcher__set_state(SequenceMatcher __pyx_result, __pyx_state: tuple):
 *     __pyx_result.a = __pyx_state[0]; __pyx_result.autojunk = __pyx_state[1]; __pyx_result.b = __pyx_state[2]; __pyx_result.b2j = __pyx_state[3]; __pyx_result.bjunk = __pyx_state[4]; __pyx_result.bpopular = __pyx_state[5]; __pyx_result.fullbcount = __pyx_state[6]; __pyx_result.isjunk = __pyx_state[7]; __pyx_result.matching_blocks = __pyx_state[8]; __pyx_result.opcodes = __pyx_state[9]             # <<<<<<<<<<<<<<
 *     __Pyx_UpdateUnpickledDict(__pyx_result, __pyx_state, 10)
*/
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->a);
  __Pyx_DECREF(__pyx_v___pyx_result->a);
  __pyx_v___pyx_result->a = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->autojunk = __pyx_t_2;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->b);
  __Pyx_DECREF(__pyx_v___pyx_result->b);
  __pyx_v___pyx_result->b = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->b2j);
  __Pyx_DECREF(__pyx_v___pyx_result->b2j);
  __pyx_v___pyx_result->b2j = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PySet_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_t_1))) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->bjunk);
  __Pyx_DECREF(__pyx_v___pyx_result->bjunk);
  __pyx_v___pyx_result->bjunk = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PySet_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_t_1))) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->bpopular);
  __Pyx_DECREF(__pyx_v___pyx_result->bpopular);
  __pyx_v___pyx_result->bpopular = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 6, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->fullbcount);
  __Pyx_DECREF(__pyx_v___pyx_result->fullbcount);
  __pyx_v___pyx_result->fullbcount = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 7, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->isjunk);
  __Pyx_DECREF(__pyx_v___pyx_result->isjunk);
  __pyx_v___pyx_result->isjunk = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 8, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->matching_blocks);
  __Pyx_DECREF(__pyx_v___pyx_result->matching_blocks);
  __pyx_v___pyx_result->matching_blocks = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 9, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->opcodes);
  __Pyx_DECREF(__pyx_v___pyx_result->opcodes);
  __pyx_v___pyx_result->opcodes = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_SequenceMatcher__set_state(SequenceMatcher __pyx_result, __pyx_state: tuple):
 *     __pyx_result.a = __pyx_state[0]; __pyx_result.autojunk = __pyx_state[1]; __pyx_result.b = __pyx_state[2]; __pyx_result.b2j = __pyx_state[3]; __pyx_result.bjunk = __pyx_state[4]; __pyx_result.bpopular = __pyx_state[5]; __pyx_result.fullbcount = __pyx_state[6]; __pyx_result.isjunk = __pyx_state[7]; __pyx_result.matching_blocks = __pyx_state[8]; __pyx_result.opcodes = __pyx_state[9]
 *     __Pyx_UpdateUnpickledDict(__pyx_result, __pyx_state, 10)             # <<<<<<<<<<<<<<
*/
  __pyx_t_3 = __Pyx_UpdateUnpickledDict(((PyObject *)__pyx_v___pyx_result), __pyx_v___pyx_state, 10); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)

  /* "(tree fragment)":11
 *         __pyx_unpickle_SequenceMatcher__set_state(<SequenceMatcher> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_SequenceMatcher__set_state(SequenceMatcher __pyx_result, __pyx_state: tuple):             # <<<<<<<<<<<<<<
 *     __pyx_result.a = __pyx_state[0]; __pyx_result.autojunk = __pyx_state[1]; __pyx_result.b = __pyx_state[2]; __pyx_result.b2j = __pyx_state[3]; __pyx_result.bjunk = __pyx_state[4]; __pyx_result.bpopular = __pyx_state[5]; __pyx_result.fullbcount = __pyx_state[6]; __pyx_result.isjunk = __pyx_state[7]; __pyx_result.matching_blocks = __pyx_state[8]; __pyx_result.opcodes = __pyx_state[9]
 *     __Pyx_UpdateUnpickledDict(__pyx_result, __pyx_state, 10)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.html._difflib.__pyx_unpickle_SequenceMatcher__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
/* #### Code section: module_exttypes ### */
static struct __pyx_vtabstruct_4lxml_4html_8_difflib_SequenceMatcher __pyx_vtable_4lxml_4html_8_difflib_SequenceMatcher;

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib_SequenceMatcher(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)o);
  p->__pyx_vtab = __pyx_vtabptr_4lxml_4html_8_difflib_SequenceMatcher;
  p->a = Py_None; Py_INCREF(Py_None);
  p->b = Py_None; Py_INCREF(Py_None);
  p->b2j = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->fullbcount = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->matching_blocks = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->opcodes = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->isjunk = Py_None; Py_INCREF(Py_None);
  p->bjunk = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->bpopular = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib_SequenceMatcher(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *p = (struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib_SequenceMatcher) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->a);
  Py_CLEAR(p->b);
  Py_CLEAR(p->b2j);
  Py_CLEAR(p->fullbcount);
  Py_CLEAR(p->matching_blocks);
  Py_CLEAR(p->opcodes);
  Py_CLEAR(p->isjunk);
  Py_CLEAR(p->bjunk);
  Py_CLEAR(p->bpopular);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib_SequenceMatcher(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *p = (struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->a) {
    e = (*v)(p->a, a); if (e) return e;
  }
  if (p->b) {
    e = (*v)(p->b, a); if (e) return e;
  }
  if (p->b2j) {
    e = (*v)(p->b2j, a); if (e) return e;
  }
  if (p->fullbcount) {
    e = (*v)(p->fullbcount, a); if (e) return e;
  }
  if (p->matching_blocks) {
    e = (*v)(p->matching_blocks, a); if (e) return e;
  }
  if (p->opcodes) {
    e = (*v)(p->opcodes, a); if (e) return e;
  }
  if (p->isjunk) {
    e = (*v)(p->isjunk, a); if (e) return e;
  }
  if (p->bjunk) {
    e = (*v)(p->bjunk, a); if (e) return e;
  }
  if (p->bpopular) {
    e = (*v)(p->bpopular, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_4html_8_difflib_SequenceMatcher(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *p = (struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *)o;
  Py_CLEAR(p->a);
  Py_CLEAR(p->b);
  Py_CLEAR(p->b2j);
  Py_CLEAR(p->fullbcount);
  Py_CLEAR(p->matching_blocks);
  Py_CLEAR(p->opcodes);
  Py_CLEAR(p->isjunk);
  Py_CLEAR(p->bjunk);
  Py_CLEAR(p->bpopular);
  return 0;
}

static PyObject *__pyx_getprop_4lxml_4html_8_difflib_15SequenceMatcher_a(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_1__get__(o);
}

static int __pyx_setprop_4lxml_4html_8_difflib_15SequenceMatcher_a(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_3__set__(o, v);
  }
  else {
    return __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1a_5__del__(o);
  }
}

static PyObject *__pyx_getprop_4lxml_4html_8_difflib_15SequenceMatcher_b(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_1__get__(o);
}

static int __pyx_setprop_4lxml_4html_8_difflib_15SequenceMatcher_b(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_3__set__(o, v);
  }
  else {
    return __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1b_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_4lxml_4html_8_difflib_SequenceMatcher[] = {
  {"set_seqs", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_3set_seqs, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_2set_seqs},
  {"set_seq1", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_5set_seq1, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_4set_seq1},
  {"set_seq2", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_7set_seq2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_6set_seq2},
  {"_SequenceMatcher__chain_b", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_9_SequenceMatcher__chain_b, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"get_grouped_opcodes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_11get_grouped_opcodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_10get_grouped_opcodes},
  {"ratio", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_14ratio, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher_13ratio},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_16__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_18__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_4html_8_difflib_SequenceMatcher[] = {
  {"a", __pyx_getprop_4lxml_4html_8_difflib_15SequenceMatcher_a, __pyx_setprop_4lxml_4html_8_difflib_15SequenceMatcher_a, 0, 0},
  {"b", __pyx_getprop_4lxml_4html_8_difflib_15SequenceMatcher_b, __pyx_setprop_4lxml_4html_8_difflib_15SequenceMatcher_b, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib_SequenceMatcher_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib_SequenceMatcher},
  {Py_tp_doc, (void *)PyDoc_STR("\n    SequenceMatcher is a flexible class for comparing pairs of sequences of\n    any type, so long as the sequence elements are hashable.  The basic\n    algorithm predates, and is a little fancier than, an algorithm\n    published in the late 1980's by Ratcliff and Obershelp under the\n    hyperbolic name \"gestalt pattern matching\".  The basic idea is to find\n    the longest contiguous matching subsequence that contains no \"junk\"\n    elements (R-O doesn't address junk).  The same idea is then applied\n    recursively to the pieces of the sequences to the left and to the right\n    of the matching subsequence.  This does not yield minimal edit\n    sequences, but does tend to yield matches that \"look right\" to people.\n\n    SequenceMatcher tries to compute a \"human-friendly diff\" between two\n    sequences.  Unlike e.g. UNIX(tm) diff, the fundamental notion is the\n    longest *contiguous* & junk-free matching subsequence.  That's what\n    catches peoples' eyes.  The Windows(tm) windiff has another interesting\n    notion, pairing up elements that appear uniquely in each sequence.\n    That, and the method here, appear to yield more intuitive difference\n    reports than does diff.  This method appears to be the least vulnerable\n    to syncing up on blocks of \"junk lines\", though (like blank lines in\n    ordinary text files, or maybe \"<P>\" lines in HTML files).  That may be\n    because this is the only method of the 3 that has a *concept* of\n    \"junk\" <wink>.\n\n    Example, comparing two strings, and considering blanks to be \"junk\":\n\n    >>> s = SequenceMatcher(lambda x: x == \" \",\n    ...                     \"private Thread currentThread;\",\n    ...                     \"private volatile Thread currentThread;\")\n    >>>\n\n    .ratio() returns a float in [0, 1], measuring the \"similarity\" of the\n    sequences.  As a rule of thumb, a .ratio() value over 0.6 means the\n    sequences are close matches:\n\n    >>> print(round(s.rat""io(), 3))\n    0.866\n    >>>\n\n    If you're only interested in where the sequences match,\n    .get_matching_blocks() is handy:\n\n    >>> for block in s.get_matching_blocks():\n    ...     print(\"a[%d] and b[%d] match for %d elements\" % block)\n    a[0] and b[0] match for 8 elements\n    a[8] and b[17] match for 21 elements\n    a[29] and b[38] match for 0 elements\n\n    Note that the last tuple returned by .get_matching_blocks() is always a\n    dummy, (len(a), len(b), 0), and this is the only case in which the last\n    tuple element (number of elements matched) is 0.\n\n    If you want to know how to change the first sequence into the second,\n    use .get_opcodes():\n\n    >>> for opcode in s.get_opcodes():\n    ...     print(\"%6s a[%d:%d] b[%d:%d]\" % opcode)\n     equal a[0:8] b[0:8]\n    insert a[8:8] b[8:17]\n     equal a[8:29] b[17:38]\n\n    See the Differ class for a fancy human-friendly file differencer, which\n    uses SequenceMatcher both to compare sequences of lines, and to compare\n    sequences of characters within similar (near-matching) lines.\n\n    See also function get_close_matches() in this module, which shows how\n    simple code building on SequenceMatcher can be used to do useful work.\n\n    Timing:  Basic R-O is cubic time worst case and quadratic time expected\n    case.  SequenceMatcher is quadratic time for the worst case and has\n    expected-case behavior dependent in a complicated way on how many\n    elements the sequences have in common; best case time is linear.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib_SequenceMatcher},
  {Py_tp_clear, (void *)__pyx_tp_clear_4lxml_4html_8_difflib_SequenceMatcher},
  {Py_tp_methods, (void *)__pyx_methods_4lxml_4html_8_difflib_SequenceMatcher},
  {Py_tp_getset, (void *)__pyx_getsets_4lxml_4html_8_difflib_SequenceMatcher},
  {Py_tp_init, (void *)__pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib_SequenceMatcher},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib_SequenceMatcher_spec = {
  "lxml.html._difflib.SequenceMatcher",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib_SequenceMatcher_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib_SequenceMatcher = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""SequenceMatcher", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib_SequenceMatcher, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    SequenceMatcher is a flexible class for comparing pairs of sequences of\n    any type, so long as the sequence elements are hashable.  The basic\n    algorithm predates, and is a little fancier than, an algorithm\n    published in the late 1980's by Ratcliff and Obershelp under the\n    hyperbolic name \"gestalt pattern matching\".  The basic idea is to find\n    the longest contiguous matching subsequence that contains no \"junk\"\n    elements (R-O doesn't address junk).  The same idea is then applied\n    recursively to the pieces of the sequences to the left and to the right\n    of the matching subsequence.  This does not yield minimal edit\n    sequences, but does tend to yield matches that \"look right\" to people.\n\n    SequenceMatcher tries to compute a \"human-friendly diff\" between two\n    sequences.  Unlike e.g. UNIX(tm) diff, the fundamental notion is the\n    longest *contiguous* & junk-free matching subsequence.  That's what\n    catches peoples' eyes.  The Windows(tm) windiff has another interesting\n    notion, pairing up elements that appear uniquely in each sequence.\n    That, and the method here, appear to yield more intuitive difference\n    reports than does diff.  This method appears to be the least vulnerable\n    to syncing up on blocks of \"junk lines\", though (like blank lines in\n    ordinary text files, or maybe \"<P>\" lines in HTML files).  That may be\n    because this is the only method of the 3 that has a *concept* of\n    \"junk\" <wink>.\n\n    Example, comparing two strings, and considering blanks to be \"junk\":\n\n    >>> s = SequenceMatcher(lambda x: x == \" \",\n    ...                     \"private Thread currentThread;\",\n    ...                     \"private volatile Thread currentThread;\")\n    >>>\n\n    .ratio() returns a float in [0, 1], measuring the \"similarity\" of the\n    sequences.  As a rule of thumb, a .ratio() value over 0.6 means the\n    sequences are close matches:\n\n    >>> print(round(s.rat""io(), 3))\n    0.866\n    >>>\n\n    If you're only interested in where the sequences match,\n    .get_matching_blocks() is handy:\n\n    >>> for block in s.get_matching_blocks():\n    ...     print(\"a[%d] and b[%d] match for %d elements\" % block)\n    a[0] and b[0] match for 8 elements\n    a[8] and b[17] match for 21 elements\n    a[29] and b[38] match for 0 elements\n\n    Note that the last tuple returned by .get_matching_blocks() is always a\n    dummy, (len(a), len(b), 0), and this is the only case in which the last\n    tuple element (number of elements matched) is 0.\n\n    If you want to know how to change the first sequence into the second,\n    use .get_opcodes():\n\n    >>> for opcode in s.get_opcodes():\n    ...     print(\"%6s a[%d:%d] b[%d:%d]\" % opcode)\n     equal a[0:8] b[0:8]\n    insert a[8:8] b[8:17]\n     equal a[8:29] b[17:38]\n\n    See the Differ class for a fancy human-friendly file differencer, which\n    uses SequenceMatcher both to compare sequences of lines, and to compare\n    sequences of characters within similar (near-matching) lines.\n\n    See also function get_close_matches() in this module, which shows how\n    simple code building on SequenceMatcher can be used to do useful work.\n\n    Timing:  Basic R-O is cubic time worst case and quadratic time expected\n    case.  SequenceMatcher is quadratic time for the worst case and has\n    expected-case behavior dependent in a complicated way on how many\n    elements the sequences have in common; best case time is linear.\n    "), /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib_SequenceMatcher, /*tp_traverse*/
  __pyx_tp_clear_4lxml_4html_8_difflib_SequenceMatcher, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4lxml_4html_8_difflib_SequenceMatcher, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_4html_8_difflib_SequenceMatcher, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4lxml_4html_8_difflib_15SequenceMatcher_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib_SequenceMatcher, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_defaults(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 1);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_defaults(PyObject *o) {
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_defaults) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->arg0);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_defaults(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->arg0) {
    e = (*v)(p->arg0, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_4html_8_difflib___pyx_defaults(PyObject *o) {
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  Py_CLEAR(p->arg0);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_defaults_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_defaults},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_defaults},
  {Py_tp_clear, (void *)__pyx_tp_clear_4lxml_4html_8_difflib___pyx_defaults},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_defaults},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_defaults_spec = {
  "lxml.html._difflib.__pyx_defaults",
  sizeof(struct __pyx_defaults),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_defaults_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_defaults = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_defaults", /*tp_name*/
  sizeof(struct __pyx_defaults), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_defaults, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_defaults, /*tp_traverse*/
  __pyx_tp_clear_4lxml_4html_8_difflib___pyx_defaults, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_defaults, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_codes);
  Py_CLEAR(p->__pyx_v_group);
  Py_CLEAR(p->__pyx_v_i1);
  Py_CLEAR(p->__pyx_v_i2);
  Py_CLEAR(p->__pyx_v_j1);
  Py_CLEAR(p->__pyx_v_j2);
  Py_CLEAR(p->__pyx_v_n);
  Py_CLEAR(p->__pyx_v_nn);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_v_tag);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_codes) {
    e = (*v)(p->__pyx_v_codes, a); if (e) return e;
  }
  if (p->__pyx_v_group) {
    e = (*v)(p->__pyx_v_group, a); if (e) return e;
  }
  if (p->__pyx_v_i1) {
    e = (*v)(p->__pyx_v_i1, a); if (e) return e;
  }
  if (p->__pyx_v_i2) {
    e = (*v)(p->__pyx_v_i2, a); if (e) return e;
  }
  if (p->__pyx_v_j1) {
    e = (*v)(p->__pyx_v_j1, a); if (e) return e;
  }
  if (p->__pyx_v_j2) {
    e = (*v)(p->__pyx_v_j2, a); if (e) return e;
  }
  if (p->__pyx_v_n) {
    e = (*v)(p->__pyx_v_n, a); if (e) return e;
  }
  if (p->__pyx_v_nn) {
    e = (*v)(p->__pyx_v_nn, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(((PyObject *)p->__pyx_v_self), a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes_spec = {
  "lxml.html._difflib.__pyx_scope_struct__get_grouped_opcodes",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct__get_grouped_opcodes", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_triple);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_triple) {
    e = (*v)(p->__pyx_v_triple, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr_spec = {
  "lxml.html._difflib.__pyx_scope_struct_1_genexpr",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_1_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_c);
  Py_CLEAR(p->__pyx_v_tag_c);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_c) {
    e = (*v)(p->__pyx_v_c, a); if (e) return e;
  }
  if (p->__pyx_v_tag_c) {
    e = (*v)(p->__pyx_v_tag_c, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr_spec = {
  "lxml.html._difflib.__pyx_scope_struct_2_genexpr",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_2_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_3_compare(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_3_compare > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_3_compare[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_3_compare];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_3_compare(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_3_compare) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_a);
  Py_CLEAR(p->__pyx_v_ahi);
  Py_CLEAR(p->__pyx_v_alo);
  Py_CLEAR(p->__pyx_v_b);
  Py_CLEAR(p->__pyx_v_bhi);
  Py_CLEAR(p->__pyx_v_blo);
  Py_CLEAR(p->__pyx_v_cruncher);
  Py_CLEAR(p->__pyx_v_g);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_v_tag);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_3_compare < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_3_compare[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_3_compare++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_3_compare(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_a) {
    e = (*v)(p->__pyx_v_a, a); if (e) return e;
  }
  if (p->__pyx_v_ahi) {
    e = (*v)(p->__pyx_v_ahi, a); if (e) return e;
  }
  if (p->__pyx_v_alo) {
    e = (*v)(p->__pyx_v_alo, a); if (e) return e;
  }
  if (p->__pyx_v_b) {
    e = (*v)(p->__pyx_v_b, a); if (e) return e;
  }
  if (p->__pyx_v_bhi) {
    e = (*v)(p->__pyx_v_bhi, a); if (e) return e;
  }
  if (p->__pyx_v_blo) {
    e = (*v)(p->__pyx_v_blo, a); if (e) return e;
  }
  if (p->__pyx_v_cruncher) {
    e = (*v)(((PyObject *)p->__pyx_v_cruncher), a); if (e) return e;
  }
  if (p->__pyx_v_g) {
    e = (*v)(p->__pyx_v_g, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(p->__pyx_v_self, a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_3_compare},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_3_compare},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_3_compare},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare_spec = {
  "lxml.html._difflib.__pyx_scope_struct_3_compare",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_3_compare", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_3_compare), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_3_compare, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_3_compare, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_3_compare, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_4__dump(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_4__dump > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_4__dump[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_4__dump];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_4__dump(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_4__dump) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_hi);
  Py_CLEAR(p->__pyx_v_i);
  Py_CLEAR(p->__pyx_v_lo);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_v_tag);
  Py_CLEAR(p->__pyx_v_x);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_4__dump < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_4__dump[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_4__dump++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_4__dump(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_hi) {
    e = (*v)(p->__pyx_v_hi, a); if (e) return e;
  }
  if (p->__pyx_v_i) {
    e = (*v)(p->__pyx_v_i, a); if (e) return e;
  }
  if (p->__pyx_v_lo) {
    e = (*v)(p->__pyx_v_lo, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(p->__pyx_v_self, a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  if (p->__pyx_v_x) {
    e = (*v)(p->__pyx_v_x, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_4__dump},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_4__dump},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_4__dump},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump_spec = {
  "lxml.html._difflib.__pyx_scope_struct_4__dump",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_4__dump", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_4__dump), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_4__dump, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_4__dump, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_4__dump, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_a);
  Py_CLEAR(p->__pyx_v_ahi);
  Py_CLEAR(p->__pyx_v_alo);
  Py_CLEAR(p->__pyx_v_b);
  Py_CLEAR(p->__pyx_v_bhi);
  Py_CLEAR(p->__pyx_v_blo);
  Py_CLEAR(p->__pyx_v_first);
  Py_CLEAR(p->__pyx_v_g);
  Py_CLEAR(p->__pyx_v_second);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_a) {
    e = (*v)(p->__pyx_v_a, a); if (e) return e;
  }
  if (p->__pyx_v_ahi) {
    e = (*v)(p->__pyx_v_ahi, a); if (e) return e;
  }
  if (p->__pyx_v_alo) {
    e = (*v)(p->__pyx_v_alo, a); if (e) return e;
  }
  if (p->__pyx_v_b) {
    e = (*v)(p->__pyx_v_b, a); if (e) return e;
  }
  if (p->__pyx_v_bhi) {
    e = (*v)(p->__pyx_v_bhi, a); if (e) return e;
  }
  if (p->__pyx_v_blo) {
    e = (*v)(p->__pyx_v_blo, a); if (e) return e;
  }
  if (p->__pyx_v_first) {
    e = (*v)(p->__pyx_v_first, a); if (e) return e;
  }
  if (p->__pyx_v_g) {
    e = (*v)(p->__pyx_v_g, a); if (e) return e;
  }
  if (p->__pyx_v_second) {
    e = (*v)(p->__pyx_v_second, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(p->__pyx_v_self, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace_spec = {
  "lxml.html._difflib.__pyx_scope_struct_5__plain_replace",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_5__plain_replace", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_a);
  Py_CLEAR(p->__pyx_v_aelt);
  Py_CLEAR(p->__pyx_v_aequiv);
  Py_CLEAR(p->__pyx_v_ahi);
  Py_CLEAR(p->__pyx_v_ai1);
  Py_CLEAR(p->__pyx_v_ai2);
  Py_CLEAR(p->__pyx_v_alo);
  Py_CLEAR(p->__pyx_v_arange);
  Py_CLEAR(p->__pyx_v_atags);
  Py_CLEAR(p->__pyx_v_b);
  Py_CLEAR(p->__pyx_v_belt);
  Py_CLEAR(p->__pyx_v_best_i);
  Py_CLEAR(p->__pyx_v_best_j);
  Py_CLEAR(p->__pyx_v_best_ratio);
  Py_CLEAR(p->__pyx_v_bhi);
  Py_CLEAR(p->__pyx_v_bj1);
  Py_CLEAR(p->__pyx_v_bj2);
  Py_CLEAR(p->__pyx_v_blo);
  Py_CLEAR(p->__pyx_v_btags);
  Py_CLEAR(p->__pyx_v_cqr);
  Py_CLEAR(p->__pyx_v_cr);
  Py_CLEAR(p->__pyx_v_crqr);
  Py_CLEAR(p->__pyx_v_cruncher);
  Py_CLEAR(p->__pyx_v_dump_i);
  Py_CLEAR(p->__pyx_v_dump_j);
  Py_CLEAR(p->__pyx_v_i);
  Py_CLEAR(p->__pyx_v_j);
  Py_CLEAR(p->__pyx_v_la);
  Py_CLEAR(p->__pyx_v_lb);
  Py_CLEAR(p->__pyx_v_ratio);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_v_tag);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_a) {
    e = (*v)(p->__pyx_v_a, a); if (e) return e;
  }
  if (p->__pyx_v_aelt) {
    e = (*v)(p->__pyx_v_aelt, a); if (e) return e;
  }
  if (p->__pyx_v_aequiv) {
    e = (*v)(p->__pyx_v_aequiv, a); if (e) return e;
  }
  if (p->__pyx_v_ahi) {
    e = (*v)(p->__pyx_v_ahi, a); if (e) return e;
  }
  if (p->__pyx_v_ai1) {
    e = (*v)(p->__pyx_v_ai1, a); if (e) return e;
  }
  if (p->__pyx_v_ai2) {
    e = (*v)(p->__pyx_v_ai2, a); if (e) return e;
  }
  if (p->__pyx_v_alo) {
    e = (*v)(p->__pyx_v_alo, a); if (e) return e;
  }
  if (p->__pyx_v_arange) {
    e = (*v)(p->__pyx_v_arange, a); if (e) return e;
  }
  if (p->__pyx_v_atags) {
    e = (*v)(p->__pyx_v_atags, a); if (e) return e;
  }
  if (p->__pyx_v_b) {
    e = (*v)(p->__pyx_v_b, a); if (e) return e;
  }
  if (p->__pyx_v_belt) {
    e = (*v)(p->__pyx_v_belt, a); if (e) return e;
  }
  if (p->__pyx_v_best_i) {
    e = (*v)(p->__pyx_v_best_i, a); if (e) return e;
  }
  if (p->__pyx_v_best_j) {
    e = (*v)(p->__pyx_v_best_j, a); if (e) return e;
  }
  if (p->__pyx_v_best_ratio) {
    e = (*v)(p->__pyx_v_best_ratio, a); if (e) return e;
  }
  if (p->__pyx_v_bhi) {
    e = (*v)(p->__pyx_v_bhi, a); if (e) return e;
  }
  if (p->__pyx_v_bj1) {
    e = (*v)(p->__pyx_v_bj1, a); if (e) return e;
  }
  if (p->__pyx_v_bj2) {
    e = (*v)(p->__pyx_v_bj2, a); if (e) return e;
  }
  if (p->__pyx_v_blo) {
    e = (*v)(p->__pyx_v_blo, a); if (e) return e;
  }
  if (p->__pyx_v_btags) {
    e = (*v)(p->__pyx_v_btags, a); if (e) return e;
  }
  if (p->__pyx_v_cqr) {
    e = (*v)(p->__pyx_v_cqr, a); if (e) return e;
  }
  if (p->__pyx_v_cr) {
    e = (*v)(p->__pyx_v_cr, a); if (e) return e;
  }
  if (p->__pyx_v_crqr) {
    e = (*v)(p->__pyx_v_crqr, a); if (e) return e;
  }
  if (p->__pyx_v_cruncher) {
    e = (*v)(((PyObject *)p->__pyx_v_cruncher), a); if (e) return e;
  }
  if (p->__pyx_v_dump_i) {
    e = (*v)(p->__pyx_v_dump_i, a); if (e) return e;
  }
  if (p->__pyx_v_dump_j) {
    e = (*v)(p->__pyx_v_dump_j, a); if (e) return e;
  }
  if (p->__pyx_v_i) {
    e = (*v)(p->__pyx_v_i, a); if (e) return e;
  }
  if (p->__pyx_v_j) {
    e = (*v)(p->__pyx_v_j, a); if (e) return e;
  }
  if (p->__pyx_v_la) {
    e = (*v)(p->__pyx_v_la, a); if (e) return e;
  }
  if (p->__pyx_v_lb) {
    e = (*v)(p->__pyx_v_lb, a); if (e) return e;
  }
  if (p->__pyx_v_ratio) {
    e = (*v)(p->__pyx_v_ratio, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(p->__pyx_v_self, a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace_spec = {
  "lxml.html._difflib.__pyx_scope_struct_6__fancy_replace",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_6__fancy_replace", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_a);
  Py_CLEAR(p->__pyx_v_ahi);
  Py_CLEAR(p->__pyx_v_alo);
  Py_CLEAR(p->__pyx_v_b);
  Py_CLEAR(p->__pyx_v_bhi);
  Py_CLEAR(p->__pyx_v_blo);
  Py_CLEAR(p->__pyx_v_g);
  Py_CLEAR(p->__pyx_v_self);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_a) {
    e = (*v)(p->__pyx_v_a, a); if (e) return e;
  }
  if (p->__pyx_v_ahi) {
    e = (*v)(p->__pyx_v_ahi, a); if (e) return e;
  }
  if (p->__pyx_v_alo) {
    e = (*v)(p->__pyx_v_alo, a); if (e) return e;
  }
  if (p->__pyx_v_b) {
    e = (*v)(p->__pyx_v_b, a); if (e) return e;
  }
  if (p->__pyx_v_bhi) {
    e = (*v)(p->__pyx_v_bhi, a); if (e) return e;
  }
  if (p->__pyx_v_blo) {
    e = (*v)(p->__pyx_v_blo, a); if (e) return e;
  }
  if (p->__pyx_v_g) {
    e = (*v)(p->__pyx_v_g, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(p->__pyx_v_self, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper_spec = {
  "lxml.html._difflib.__pyx_scope_struct_7__fancy_helper",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_7__fancy_helper", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_aline);
  Py_CLEAR(p->__pyx_v_atags);
  Py_CLEAR(p->__pyx_v_bline);
  Py_CLEAR(p->__pyx_v_btags);
  Py_CLEAR(p->__pyx_v_self);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_aline) {
    e = (*v)(p->__pyx_v_aline, a); if (e) return e;
  }
  if (p->__pyx_v_atags) {
    e = (*v)(p->__pyx_v_atags, a); if (e) return e;
  }
  if (p->__pyx_v_bline) {
    e = (*v)(p->__pyx_v_bline, a); if (e) return e;
  }
  if (p->__pyx_v_btags) {
    e = (*v)(p->__pyx_v_btags, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(p->__pyx_v_self, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat_spec = {
  "lxml.html._difflib.__pyx_scope_struct_8__qformat",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_8__qformat", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_a);
  Py_CLEAR(p->__pyx_v_b);
  Py_CLEAR(p->__pyx_v_file1_range);
  Py_CLEAR(p->__pyx_v_file2_range);
  Py_CLEAR(p->__pyx_v_first);
  Py_CLEAR(p->__pyx_v_fromdate);
  Py_CLEAR(p->__pyx_v_fromfile);
  Py_CLEAR(p->__pyx_v_fromfiledate);
  Py_CLEAR(p->__pyx_v_group);
  Py_CLEAR(p->__pyx_v_i1);
  Py_CLEAR(p->__pyx_v_i2);
  Py_CLEAR(p->__pyx_v_j1);
  Py_CLEAR(p->__pyx_v_j2);
  Py_CLEAR(p->__pyx_v_last);
  Py_CLEAR(p->__pyx_v_line);
  Py_CLEAR(p->__pyx_v_lineterm);
  Py_CLEAR(p->__pyx_v_n);
  Py_CLEAR(p->__pyx_v_tag);
  Py_CLEAR(p->__pyx_v_todate);
  Py_CLEAR(p->__pyx_v_tofile);
  Py_CLEAR(p->__pyx_v_tofiledate);
  Py_CLEAR(p->__pyx_t_0);
  Py_CLEAR(p->__pyx_t_3);
  Py_CLEAR(p->__pyx_t_6);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_a) {
    e = (*v)(p->__pyx_v_a, a); if (e) return e;
  }
  if (p->__pyx_v_b) {
    e = (*v)(p->__pyx_v_b, a); if (e) return e;
  }
  if (p->__pyx_v_file1_range) {
    e = (*v)(p->__pyx_v_file1_range, a); if (e) return e;
  }
  if (p->__pyx_v_file2_range) {
    e = (*v)(p->__pyx_v_file2_range, a); if (e) return e;
  }
  if (p->__pyx_v_first) {
    e = (*v)(p->__pyx_v_first, a); if (e) return e;
  }
  if (p->__pyx_v_fromfile) {
    e = (*v)(p->__pyx_v_fromfile, a); if (e) return e;
  }
  if (p->__pyx_v_fromfiledate) {
    e = (*v)(p->__pyx_v_fromfiledate, a); if (e) return e;
  }
  if (p->__pyx_v_group) {
    e = (*v)(p->__pyx_v_group, a); if (e) return e;
  }
  if (p->__pyx_v_i1) {
    e = (*v)(p->__pyx_v_i1, a); if (e) return e;
  }
  if (p->__pyx_v_i2) {
    e = (*v)(p->__pyx_v_i2, a); if (e) return e;
  }
  if (p->__pyx_v_j1) {
    e = (*v)(p->__pyx_v_j1, a); if (e) return e;
  }
  if (p->__pyx_v_j2) {
    e = (*v)(p->__pyx_v_j2, a); if (e) return e;
  }
  if (p->__pyx_v_last) {
    e = (*v)(p->__pyx_v_last, a); if (e) return e;
  }
  if (p->__pyx_v_line) {
    e = (*v)(p->__pyx_v_line, a); if (e) return e;
  }
  if (p->__pyx_v_lineterm) {
    e = (*v)(p->__pyx_v_lineterm, a); if (e) return e;
  }
  if (p->__pyx_v_n) {
    e = (*v)(p->__pyx_v_n, a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  if (p->__pyx_v_tofile) {
    e = (*v)(p->__pyx_v_tofile, a); if (e) return e;
  }
  if (p->__pyx_v_tofiledate) {
    e = (*v)(p->__pyx_v_tofiledate, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  if (p->__pyx_t_3) {
    e = (*v)(p->__pyx_t_3, a); if (e) return e;
  }
  if (p->__pyx_t_6) {
    e = (*v)(p->__pyx_t_6, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff_spec = {
  "lxml.html._difflib.__pyx_scope_struct_9_unified_diff",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_9_unified_diff", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v__);
  Py_CLEAR(p->__pyx_v_a);
  Py_CLEAR(p->__pyx_v_b);
  Py_CLEAR(p->__pyx_v_file1_range);
  Py_CLEAR(p->__pyx_v_file2_range);
  Py_CLEAR(p->__pyx_v_first);
  Py_CLEAR(p->__pyx_v_fromdate);
  Py_CLEAR(p->__pyx_v_fromfile);
  Py_CLEAR(p->__pyx_v_fromfiledate);
  Py_CLEAR(p->__pyx_v_genexpr);
  Py_CLEAR(p->__pyx_v_group);
  Py_CLEAR(p->__pyx_v_i1);
  Py_CLEAR(p->__pyx_v_i2);
  Py_CLEAR(p->__pyx_v_j1);
  Py_CLEAR(p->__pyx_v_j2);
  Py_CLEAR(p->__pyx_v_last);
  Py_CLEAR(p->__pyx_v_line);
  Py_CLEAR(p->__pyx_v_lineterm);
  Py_CLEAR(p->__pyx_v_n);
  Py_CLEAR(p->__pyx_v_prefix);
  Py_CLEAR(p->__pyx_v_tag);
  Py_CLEAR(p->__pyx_v_todate);
  Py_CLEAR(p->__pyx_v_tofile);
  Py_CLEAR(p->__pyx_v_tofiledate);
  Py_CLEAR(p->__pyx_t_0);
  Py_CLEAR(p->__pyx_t_3);
  Py_CLEAR(p->__pyx_t_6);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v__) {
    e = (*v)(p->__pyx_v__, a); if (e) return e;
  }
  if (p->__pyx_v_a) {
    e = (*v)(p->__pyx_v_a, a); if (e) return e;
  }
  if (p->__pyx_v_b) {
    e = (*v)(p->__pyx_v_b, a); if (e) return e;
  }
  if (p->__pyx_v_file1_range) {
    e = (*v)(p->__pyx_v_file1_range, a); if (e) return e;
  }
  if (p->__pyx_v_file2_range) {
    e = (*v)(p->__pyx_v_file2_range, a); if (e) return e;
  }
  if (p->__pyx_v_first) {
    e = (*v)(p->__pyx_v_first, a); if (e) return e;
  }
  if (p->__pyx_v_fromfile) {
    e = (*v)(p->__pyx_v_fromfile, a); if (e) return e;
  }
  if (p->__pyx_v_fromfiledate) {
    e = (*v)(p->__pyx_v_fromfiledate, a); if (e) return e;
  }
  if (p->__pyx_v_genexpr) {
    e = (*v)(p->__pyx_v_genexpr, a); if (e) return e;
  }
  if (p->__pyx_v_group) {
    e = (*v)(p->__pyx_v_group, a); if (e) return e;
  }
  if (p->__pyx_v_i1) {
    e = (*v)(p->__pyx_v_i1, a); if (e) return e;
  }
  if (p->__pyx_v_i2) {
    e = (*v)(p->__pyx_v_i2, a); if (e) return e;
  }
  if (p->__pyx_v_j1) {
    e = (*v)(p->__pyx_v_j1, a); if (e) return e;
  }
  if (p->__pyx_v_j2) {
    e = (*v)(p->__pyx_v_j2, a); if (e) return e;
  }
  if (p->__pyx_v_last) {
    e = (*v)(p->__pyx_v_last, a); if (e) return e;
  }
  if (p->__pyx_v_line) {
    e = (*v)(p->__pyx_v_line, a); if (e) return e;
  }
  if (p->__pyx_v_lineterm) {
    e = (*v)(p->__pyx_v_lineterm, a); if (e) return e;
  }
  if (p->__pyx_v_n) {
    e = (*v)(p->__pyx_v_n, a); if (e) return e;
  }
  if (p->__pyx_v_prefix) {
    e = (*v)(p->__pyx_v_prefix, a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  if (p->__pyx_v_tofile) {
    e = (*v)(p->__pyx_v_tofile, a); if (e) return e;
  }
  if (p->__pyx_v_tofiledate) {
    e = (*v)(p->__pyx_v_tofiledate, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  if (p->__pyx_t_3) {
    e = (*v)(p->__pyx_t_3, a); if (e) return e;
  }
  if (p->__pyx_t_6) {
    e = (*v)(p->__pyx_t_6, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff_spec = {
  "lxml.html._difflib.__pyx_scope_struct_10_context_diff",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_10_context_diff", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__);
  Py_CLEAR(p->__pyx_v_tag);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__) {
    e = (*v)(p->__pyx_v__, a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr_spec = {
  "lxml.html._difflib.__pyx_scope_struct_11_genexpr",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_11_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__);
  Py_CLEAR(p->__pyx_v_tag);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__) {
    e = (*v)(p->__pyx_v__, a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr_spec = {
  "lxml.html._difflib.__pyx_scope_struct_12_genexpr",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_12_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_a);
  Py_CLEAR(p->__pyx_v_b);
  Py_CLEAR(p->__pyx_v_decode);
  Py_CLEAR(p->__pyx_v_dfunc);
  Py_CLEAR(p->__pyx_v_fromfile);
  Py_CLEAR(p->__pyx_v_fromfiledate);
  Py_CLEAR(p->__pyx_v_line);
  Py_CLEAR(p->__pyx_v_lines);
  Py_CLEAR(p->__pyx_v_lineterm);
  Py_CLEAR(p->__pyx_v_n);
  Py_CLEAR(p->__pyx_v_tofile);
  Py_CLEAR(p->__pyx_v_tofiledate);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_a) {
    e = (*v)(p->__pyx_v_a, a); if (e) return e;
  }
  if (p->__pyx_v_b) {
    e = (*v)(p->__pyx_v_b, a); if (e) return e;
  }
  if (p->__pyx_v_decode) {
    e = (*v)(p->__pyx_v_decode, a); if (e) return e;
  }
  if (p->__pyx_v_dfunc) {
    e = (*v)(p->__pyx_v_dfunc, a); if (e) return e;
  }
  if (p->__pyx_v_fromfile) {
    e = (*v)(p->__pyx_v_fromfile, a); if (e) return e;
  }
  if (p->__pyx_v_fromfiledate) {
    e = (*v)(p->__pyx_v_fromfiledate, a); if (e) return e;
  }
  if (p->__pyx_v_line) {
    e = (*v)(p->__pyx_v_line, a); if (e) return e;
  }
  if (p->__pyx_v_lines) {
    e = (*v)(p->__pyx_v_lines, a); if (e) return e;
  }
  if (p->__pyx_v_lineterm) {
    e = (*v)(p->__pyx_v_lineterm, a); if (e) return e;
  }
  if (p->__pyx_v_n) {
    e = (*v)(p->__pyx_v_n, a); if (e) return e;
  }
  if (p->__pyx_v_tofile) {
    e = (*v)(p->__pyx_v_tofile, a); if (e) return e;
  }
  if (p->__pyx_v_tofiledate) {
    e = (*v)(p->__pyx_v_tofiledate, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes_spec = {
  "lxml.html._difflib.__pyx_scope_struct_13_diff_bytes",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_13_diff_bytes", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v__line_iterator);
  Py_CLEAR(p->__pyx_v__line_pair_iterator);
  Py_CLEAR(p->__pyx_v__make_line);
  Py_CLEAR(p->__pyx_v_change_re);
  Py_CLEAR(p->__pyx_v_charjunk);
  Py_CLEAR(p->__pyx_v_context);
  Py_CLEAR(p->__pyx_v_contextLines);
  Py_CLEAR(p->__pyx_v_diff_lines_iterator);
  Py_CLEAR(p->__pyx_v_found_diff);
  Py_CLEAR(p->__pyx_v_from_line);
  Py_CLEAR(p->__pyx_v_fromlines);
  Py_CLEAR(p->__pyx_v_i);
  Py_CLEAR(p->__pyx_v_line_pair_iterator);
  Py_CLEAR(p->__pyx_v_linejunk);
  Py_CLEAR(p->__pyx_v_lines_to_write);
  Py_CLEAR(p->__pyx_v_re);
  Py_CLEAR(p->__pyx_v_to_line);
  Py_CLEAR(p->__pyx_v_tolines);
  Py_CLEAR(p->__pyx_t_0);
  Py_CLEAR(p->__pyx_t_1);
  Py_CLEAR(p->__pyx_t_2);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v__line_iterator) {
    e = (*v)(p->__pyx_v__line_iterator, a); if (e) return e;
  }
  if (p->__pyx_v__line_pair_iterator) {
    e = (*v)(p->__pyx_v__line_pair_iterator, a); if (e) return e;
  }
  if (p->__pyx_v__make_line) {
    e = (*v)(p->__pyx_v__make_line, a); if (e) return e;
  }
  if (p->__pyx_v_change_re) {
    e = (*v)(p->__pyx_v_change_re, a); if (e) return e;
  }
  if (p->__pyx_v_charjunk) {
    e = (*v)(p->__pyx_v_charjunk, a); if (e) return e;
  }
  if (p->__pyx_v_context) {
    e = (*v)(p->__pyx_v_context, a); if (e) return e;
  }
  if (p->__pyx_v_contextLines) {
    e = (*v)(p->__pyx_v_contextLines, a); if (e) return e;
  }
  if (p->__pyx_v_diff_lines_iterator) {
    e = (*v)(p->__pyx_v_diff_lines_iterator, a); if (e) return e;
  }
  if (p->__pyx_v_found_diff) {
    e = (*v)(p->__pyx_v_found_diff, a); if (e) return e;
  }
  if (p->__pyx_v_from_line) {
    e = (*v)(p->__pyx_v_from_line, a); if (e) return e;
  }
  if (p->__pyx_v_fromlines) {
    e = (*v)(p->__pyx_v_fromlines, a); if (e) return e;
  }
  if (p->__pyx_v_i) {
    e = (*v)(p->__pyx_v_i, a); if (e) return e;
  }
  if (p->__pyx_v_line_pair_iterator) {
    e = (*v)(p->__pyx_v_line_pair_iterator, a); if (e) return e;
  }
  if (p->__pyx_v_linejunk) {
    e = (*v)(p->__pyx_v_linejunk, a); if (e) return e;
  }
  if (p->__pyx_v_lines_to_write) {
    e = (*v)(p->__pyx_v_lines_to_write, a); if (e) return e;
  }
  if (p->__pyx_v_re) {
    e = (*v)(p->__pyx_v_re, a); if (e) return e;
  }
  if (p->__pyx_v_to_line) {
    e = (*v)(p->__pyx_v_to_line, a); if (e) return e;
  }
  if (p->__pyx_v_tolines) {
    e = (*v)(p->__pyx_v_tolines, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  if (p->__pyx_t_1) {
    e = (*v)(p->__pyx_t_1, a); if (e) return e;
  }
  if (p->__pyx_t_2) {
    e = (*v)(p->__pyx_t_2, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff_spec = {
  "lxml.html._difflib.__pyx_scope_struct_14__mdiff",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_14__mdiff", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_from_line);
  Py_CLEAR(p->__pyx_8genexpr5__pyx_v_line);
  Py_CLEAR(p->__pyx_v_lines);
  Py_CLEAR(p->__pyx_v_s);
  Py_CLEAR(p->__pyx_v_to_line);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_from_line) {
    e = (*v)(p->__pyx_v_from_line, a); if (e) return e;
  }
  if (p->__pyx_8genexpr5__pyx_v_line) {
    e = (*v)(p->__pyx_8genexpr5__pyx_v_line, a); if (e) return e;
  }
  if (p->__pyx_v_lines) {
    e = (*v)(p->__pyx_v_lines, a); if (e) return e;
  }
  if (p->__pyx_v_to_line) {
    e = (*v)(p->__pyx_v_to_line, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator_spec = {
  "lxml.html._difflib.__pyx_scope_struct_15__line_iterator",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_15__line_iterator", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_found_diff);
  Py_CLEAR(p->__pyx_v_fromDiff);
  Py_CLEAR(p->__pyx_v_from_line);
  Py_CLEAR(p->__pyx_v_fromlines);
  Py_CLEAR(p->__pyx_v_line_iterator);
  Py_CLEAR(p->__pyx_v_to_diff);
  Py_CLEAR(p->__pyx_v_to_line);
  Py_CLEAR(p->__pyx_v_tolines);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_found_diff) {
    e = (*v)(p->__pyx_v_found_diff, a); if (e) return e;
  }
  if (p->__pyx_v_fromDiff) {
    e = (*v)(p->__pyx_v_fromDiff, a); if (e) return e;
  }
  if (p->__pyx_v_from_line) {
    e = (*v)(p->__pyx_v_from_line, a); if (e) return e;
  }
  if (p->__pyx_v_fromlines) {
    e = (*v)(p->__pyx_v_fromlines, a); if (e) return e;
  }
  if (p->__pyx_v_line_iterator) {
    e = (*v)(p->__pyx_v_line_iterator, a); if (e) return e;
  }
  if (p->__pyx_v_to_diff) {
    e = (*v)(p->__pyx_v_to_diff, a); if (e) return e;
  }
  if (p->__pyx_v_to_line) {
    e = (*v)(p->__pyx_v_to_line, a); if (e) return e;
  }
  if (p->__pyx_v_tolines) {
    e = (*v)(p->__pyx_v_tolines, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator_spec = {
  "lxml.html._difflib.__pyx_scope_struct_16__line_pair_iterator",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_16__line_pair_iterator", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_self);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(p->__pyx_v_self, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace *)o;
  Py_CLEAR(p->__pyx_v_self);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace},
  {Py_tp_clear, (void *)__pyx_tp_clear_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace_spec = {
  "lxml.html._difflib.__pyx_scope_struct_17__tab_newline_replace",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_17__tab_newline_replace", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace, /*tp_traverse*/
  __pyx_tp_clear_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_diffs);
  Py_CLEAR(p->__pyx_v_flag);
  Py_CLEAR(p->__pyx_v_fromdata);
  Py_CLEAR(p->__pyx_v_fromline);
  Py_CLEAR(p->__pyx_v_fromlist);
  Py_CLEAR(p->__pyx_v_fromtext);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_v_todata);
  Py_CLEAR(p->__pyx_v_toline);
  Py_CLEAR(p->__pyx_v_tolist);
  Py_CLEAR(p->__pyx_v_totext);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_diffs) {
    e = (*v)(p->__pyx_v_diffs, a); if (e) return e;
  }
  if (p->__pyx_v_flag) {
    e = (*v)(p->__pyx_v_flag, a); if (e) return e;
  }
  if (p->__pyx_v_fromdata) {
    e = (*v)(p->__pyx_v_fromdata, a); if (e) return e;
  }
  if (p->__pyx_v_fromline) {
    e = (*v)(p->__pyx_v_fromline, a); if (e) return e;
  }
  if (p->__pyx_v_fromlist) {
    e = (*v)(p->__pyx_v_fromlist, a); if (e) return e;
  }
  if (p->__pyx_v_fromtext) {
    e = (*v)(p->__pyx_v_fromtext, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(p->__pyx_v_self, a); if (e) return e;
  }
  if (p->__pyx_v_todata) {
    e = (*v)(p->__pyx_v_todata, a); if (e) return e;
  }
  if (p->__pyx_v_toline) {
    e = (*v)(p->__pyx_v_toline, a); if (e) return e;
  }
  if (p->__pyx_v_tolist) {
    e = (*v)(p->__pyx_v_tolist, a); if (e) return e;
  }
  if (p->__pyx_v_totext) {
    e = (*v)(p->__pyx_v_totext, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper_spec = {
  "lxml.html._difflib.__pyx_scope_struct_18__line_wrapper",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_18__line_wrapper", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_19_restore(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_19_restore > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_19_restore[--__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_19_restore];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_19_restore(PyObject *o) {
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_19_restore) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_delta);
  Py_CLEAR(p->__pyx_v_line);
  Py_CLEAR(p->__pyx_v_prefixes);
  Py_CLEAR(p->__pyx_v_tag);
  Py_CLEAR(p->__pyx_v_which);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_19_restore < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore, sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore))))
  {
    __pyx_mstate_global->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_19_restore[__pyx_mstate_global->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_19_restore++] = ((struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_19_restore(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *p = (struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_delta) {
    e = (*v)(p->__pyx_v_delta, a); if (e) return e;
  }
  if (p->__pyx_v_line) {
    e = (*v)(p->__pyx_v_line, a); if (e) return e;
  }
  if (p->__pyx_v_prefixes) {
    e = (*v)(p->__pyx_v_prefixes, a); if (e) return e;
  }
  if (p->__pyx_v_tag) {
    e = (*v)(p->__pyx_v_tag, a); if (e) return e;
  }
  if (p->__pyx_v_which) {
    e = (*v)(p->__pyx_v_which, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_19_restore},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_19_restore},
  {Py_tp_new, (void *)__pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_19_restore},
  {0, 0},
};
static PyType_Spec __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore_spec = {
  "lxml.html._difflib.__pyx_scope_struct_19_restore",
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore_slots,
};
#else

static PyTypeObject __pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct_19_restore", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_4html_8_difflib___pyx_scope_struct_19_restore), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_4html_8_difflib___pyx_scope_struct_19_restore, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_4html_8_difflib___pyx_scope_struct_19_restore, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_4html_8_difflib___pyx_scope_struct_19_restore, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self, sizeof(struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self[--__pyx_mstate_global->__pyx_freecount___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self, sizeof(struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self))))
  {
    __pyx_mstate_global->__pyx_freelist___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self[__pyx_mstate_global->__pyx_freecount___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self++] = ((struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self},
  {Py_tp_new, (void *)__pyx_tp_new___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self},
  {0, 0},
};
static PyType_Spec __pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_spec = {
  "lxml.html._difflib.__pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self",
  sizeof(struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER,
  __pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_slots,
};
#else

static PyTypeObject __pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.html._difflib.""__pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self", /*tp_name*/
  sizeof(struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
/* #### Code section: initfunc_declarations ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE void __Pyx_CleanupGlobals(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/
/* #### Code section: init_module ### */

static int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  {
    __pyx_t_1 = __Pyx_ApiExport_GetApiDict(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_export_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_double_Py_ssize_t_Py_ssize_t__ca);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_export_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_export_name = __pyx_export_signature + 32;
    void (*const __pyx_export_pointers[])(void) = {(void (*)(void))&__pyx_f_4lxml_4html_8_difflib__calculate_ratio, (void (*)(void)) NULL};
    void (*const *__pyx_export_pointer)(void) = __pyx_export_pointers;
    const char *__pyx_export_current_signature = __pyx_export_signature;
    while (*__pyx_export_pointer) {
      if (__Pyx_ExportFunction(__pyx_t_1, __pyx_export_name, *__pyx_export_pointer, __pyx_export_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_export_pointer;
      __pyx_export_name = strchr(__pyx_export_name, '\0') + 1;
      __pyx_export_signature = strchr(__pyx_export_signature, '\0') + 1;
      if (*__pyx_export_signature != '\0') __pyx_export_current_signature = __pyx_export_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __pyx_vtabptr_4lxml_4html_8_difflib_SequenceMatcher = &__pyx_vtable_4lxml_4html_8_difflib_SequenceMatcher;
  __pyx_vtable_4lxml_4html_8_difflib_SequenceMatcher.find_longest_match = (PyObject *(*)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *, struct __pyx_opt_args_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match *__pyx_optional_args))__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_find_longest_match;
  __pyx_vtable_4lxml_4html_8_difflib_SequenceMatcher.get_matching_blocks = (PyObject *(*)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *))__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_get_matching_blocks;
  __pyx_vtable_4lxml_4html_8_difflib_SequenceMatcher.get_opcodes = (PyObject *(*)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *))__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_get_opcodes;
  __pyx_vtable_4lxml_4html_8_difflib_SequenceMatcher.quick_ratio = (double (*)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *))__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_quick_ratio;
  __pyx_vtable_4lxml_4html_8_difflib_SequenceMatcher.real_quick_ratio = (double (*)(struct __pyx_obj_4lxml_4html_8_difflib_SequenceMatcher *))__pyx_f_4lxml_4html_8_difflib_15SequenceMatcher_real_quick_ratio;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib_SequenceMatcher_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher)) __PYX_ERR(0, 65, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib_SequenceMatcher_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher) < (0)) __PYX_ERR(0, 65, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher = &__pyx_type_4lxml_4html_8_difflib_SequenceMatcher;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher) < (0)) __PYX_ERR(0, 65, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_UPDATE_DESCRIPTOR_DOC
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 65, __pyx_L1_error)
    if (__Pyx_IS_TYPE(wrapper, &PyWrapperDescr_Type)) {
      __pyx_wrapperbase_4lxml_4html_8_difflib_15SequenceMatcher___init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_4html_8_difflib_15SequenceMatcher___init__.doc = __pyx_doc_4lxml_4html_8_difflib_15SequenceMatcher___init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_4html_8_difflib_15SequenceMatcher___init__;
    }
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_vtabptr_4lxml_4html_8_difflib_SequenceMatcher) < (0)) __PYX_ERR(0, 65, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher) < (0)) __PYX_ERR(0, 65, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_SequenceMatcher, (PyObject *) __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher) < (0)) __PYX_ERR(0, 65, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher) < (0)) __PYX_ERR(0, 65, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_defaults_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults)) __PYX_ERR(0, 1335, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_defaults_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults) < (0)) __PYX_ERR(0, 1335, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults = &__pyx_type_4lxml_4html_8_difflib___pyx_defaults;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults) < (0)) __PYX_ERR(0, 1335, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes)) __PYX_ERR(0, 566, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes) < (0)) __PYX_ERR(0, 566, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes) < (0)) __PYX_ERR(0, 566, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr)) __PYX_ERR(0, 639, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr) < (0)) __PYX_ERR(0, 639, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr) < (0)) __PYX_ERR(0, 639, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr)) __PYX_ERR(0, 741, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr) < (0)) __PYX_ERR(0, 741, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr) < (0)) __PYX_ERR(0, 741, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare)) __PYX_ERR(0, 856, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare) < (0)) __PYX_ERR(0, 856, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_3_compare;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare) < (0)) __PYX_ERR(0, 856, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_3_compare->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump)) __PYX_ERR(0, 897, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump) < (0)) __PYX_ERR(0, 897, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_4__dump;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump) < (0)) __PYX_ERR(0, 897, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_4__dump->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace)) __PYX_ERR(0, 902, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace) < (0)) __PYX_ERR(0, 902, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace) < (0)) __PYX_ERR(0, 902, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace)) __PYX_ERR(0, 916, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace) < (0)) __PYX_ERR(0, 916, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace) < (0)) __PYX_ERR(0, 916, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper)) __PYX_ERR(0, 1010, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper) < (0)) __PYX_ERR(0, 1010, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper) < (0)) __PYX_ERR(0, 1010, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat)) __PYX_ERR(0, 1022, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat) < (0)) __PYX_ERR(0, 1022, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat) < (0)) __PYX_ERR(0, 1022, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff)) __PYX_ERR(0, 1121, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff) < (0)) __PYX_ERR(0, 1121, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff) < (0)) __PYX_ERR(0, 1121, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff)) __PYX_ERR(0, 1206, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff) < (0)) __PYX_ERR(0, 1206, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff) < (0)) __PYX_ERR(0, 1206, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr)) __PYX_ERR(0, 1267, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr) < (0)) __PYX_ERR(0, 1267, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr) < (0)) __PYX_ERR(0, 1267, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr)) __PYX_ERR(0, 1276, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr) < (0)) __PYX_ERR(0, 1276, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr) < (0)) __PYX_ERR(0, 1276, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes)) __PYX_ERR(0, 1305, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes) < (0)) __PYX_ERR(0, 1305, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes) < (0)) __PYX_ERR(0, 1305, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff)) __PYX_ERR(0, 1372, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff) < (0)) __PYX_ERR(0, 1372, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff) < (0)) __PYX_ERR(0, 1372, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator)) __PYX_ERR(0, 1470, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator) < (0)) __PYX_ERR(0, 1470, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator) < (0)) __PYX_ERR(0, 1470, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator)) __PYX_ERR(0, 1558, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator) < (0)) __PYX_ERR(0, 1558, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator) < (0)) __PYX_ERR(0, 1558, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace)) __PYX_ERR(0, 1795, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace) < (0)) __PYX_ERR(0, 1795, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace) < (0)) __PYX_ERR(0, 1795, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper)) __PYX_ERR(0, 1873, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper) < (0)) __PYX_ERR(0, 1873, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper) < (0)) __PYX_ERR(0, 1873, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore)) __PYX_ERR(0, 2081, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore_spec, __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore) < (0)) __PYX_ERR(0, 2081, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore = &__pyx_type_4lxml_4html_8_difflib___pyx_scope_struct_19_restore;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore) < (0)) __PYX_ERR(0, 2081, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore->tp_dictoffset && __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4lxml_4html_8_difflib___pyx_scope_struct_19_restore->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self)) __PYX_ERR(1, 65, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self_spec, __pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self) < (0)) __PYX_ERR(1, 65, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self = &__pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self) < (0)) __PYX_ERR(1, 65, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self->tp_dictoffset && __pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec__difflib(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec__difflib},
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  {Py_mod_gil, __Pyx_FREETHREADING_COMPATIBLE},
  #endif
  #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE
  {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
  #endif
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "_difflib",
      __pyx_k_Module_difflib_helpers_for_comp, /* m_doc */
    #if CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstatetype), /* m_size */
    #else
      (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      (freefunc)__pyx_module_cleanup /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      (freefunc)__pyx_module_cleanup /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif

/* PyModInitFuncType */
#ifndef CYTHON_NO_PYINIT_EXPORT
  #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#else
  #ifdef __cplusplus
  #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
  #else
  #define __Pyx_PyMODINIT_FUNC PyObject *
  #endif
#endif

__Pyx_PyMODINIT_FUNC PyInit__difflib(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit__difflib(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
/* ModuleCreationPEP489 */
#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) {
    {
        PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think
        if (!module) {
            PyErr_Clear(); // just try the 3.8-3.12 version
            module = PyImport_ImportModule("_xxsubinterpreters");
            if (!module) goto bad;
        }
        PyObject *current = PyObject_CallMethod(module, "get_current", NULL);
        Py_DECREF(module);
        if (!current) goto bad;
        if (PyTuple_Check(current)) {
            PyObject *new_current = PySequence_GetItem(current, 0);
            Py_DECREF(current);
            current = new_current;
            if (!new_current) goto bad;
        }
        long long as_c_int = PyLong_AsLongLong(current);
        Py_DECREF(current);
        return as_c_int;
    }
  bad:
    PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n");
    return -1;
}
#endif
#if !CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    static PY_INT64_T main_interpreter_id = -1;
#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
    PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_GRAAL
    PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
    PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId();
#elif CYTHON_COMPILING_IN_LIMITED_API
    PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get());
#else
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
#endif
    if (unlikely(current_id == -1)) {
        return -1;
    }
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return 0;
    } else if (unlikely(main_interpreter_id != current_id)) {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#endif
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    #if !CYTHON_USE_MODULE_STATE
    if (__Pyx_check_single_interpreter())
        return NULL;
    #endif
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec__difflib(PyObject *__pyx_pyinit_module)
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  __pyx_mstatetype *__pyx_mstate = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module '_difflib' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #else
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_t_1 = __pyx_pyinit_module;
  Py_INCREF(__pyx_t_1);
  #else
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #if CYTHON_USE_MODULE_STATE
  {
    int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "_difflib" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = __pyx_t_1;
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_NOT_USED);
  #endif
  __pyx_mstate = __pyx_mstate_global;
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_mstate->__pyx_d);
  __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /* ImportRefnannyAPI */
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
    PyErr_Clear();
    __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
    if (!__Pyx_RefNanny)
        Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  
__Pyx_RefNannySetupContext("PyInit__difflib", 0);
  __Pyx_init_runtime_version();
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Library function declarations ---*/
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__pyx_module_is_main_lxml__html___difflib) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "lxml.html._difflib")) {
      if (unlikely((PyDict_SetItemString(modules, "lxml.html._difflib", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_export_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_function_export_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_type_init_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_type_import_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
  (void)__Pyx_modinit_function_import_code(__pyx_mstate);
  /*--- Execution code ---*/

  /* "lxml/html/_difflib.py":34
 * """
 * 
 * try:             # <<<<<<<<<<<<<<
 *     import cython
 * except ImportError:
*/
  {
    (void)__pyx_t_1; (void)__pyx_t_2; (void)__pyx_t_3; /* mark used */
    /*try:*/ {

      /* "lxml/html/_difflib.py":35
 * 
 * try:
 *     import cython             # <<<<<<<<<<<<<<
 * except ImportError:
 *     class fake_cython:
*/
    }
  }

  /* "lxml/html/_difflib.py":46
 * 
 * 
 * __all__ = ['get_close_matches', 'ndiff', 'restore', 'SequenceMatcher',             # <<<<<<<<<<<<<<
 *            'Differ','IS_CHARACTER_JUNK', 'IS_LINE_JUNK', 'context_diff',
 *            'unified_diff', 'diff_bytes', 'HtmlDiff', 'Match']
*/
  __pyx_t_4 = __Pyx_PyList_Pack(12, __pyx_mstate_global->__pyx_n_u_get_close_matches, __pyx_mstate_global->__pyx_n_u_ndiff, __pyx_mstate_global->__pyx_n_u_restore, __pyx_mstate_global->__pyx_n_u_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_Differ, __pyx_mstate_global->__pyx_n_u_IS_CHARACTER_JUNK, __pyx_mstate_global->__pyx_n_u_IS_LINE_JUNK, __pyx_mstate_global->__pyx_n_u_context_diff, __pyx_mstate_global->__pyx_n_u_unified_diff, __pyx_mstate_global->__pyx_n_u_diff_bytes, __pyx_mstate_global->__pyx_n_u_HtmlDiff, __pyx_mstate_global->__pyx_n_u_Match); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_all, __pyx_t_4) < (0)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "lxml/html/_difflib.py":50
 *            'unified_diff', 'diff_bytes', 'HtmlDiff', 'Match']
 * 
 * from heapq import nlargest as _nlargest             # <<<<<<<<<<<<<<
 * from collections import namedtuple as _namedtuple
 * 
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_nlargest_2};
    __pyx_t_3 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_heapq, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 50, __pyx_L1_error)
  }
  __pyx_t_4 = __pyx_t_3;
  __Pyx_GOTREF(__pyx_t_4);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_nlargest_2};
    __pyx_t_5 = 0; {
      __pyx_t_6 = __Pyx_ImportFrom(__pyx_t_4, __pyx_imported_names[__pyx_t_5]); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 50, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      switch (__pyx_t_5) {
        case 0:
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_nlargest, __pyx_t_6) < (0)) __PYX_ERR(0, 50, __pyx_L1_error)
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "lxml/html/_difflib.py":51
 * 
 * from heapq import nlargest as _nlargest
 * from collections import namedtuple as _namedtuple             # <<<<<<<<<<<<<<
 * 
 * try:
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_namedtuple};
    __pyx_t_3 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_collections, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 51, __pyx_L1_error)
  }
  __pyx_t_4 = __pyx_t_3;
  __Pyx_GOTREF(__pyx_t_4);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_namedtuple};
    __pyx_t_5 = 0; {
      __pyx_t_6 = __Pyx_ImportFrom(__pyx_t_4, __pyx_imported_names[__pyx_t_5]); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 51, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      switch (__pyx_t_5) {
        case 0:
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_namedtuple_2, __pyx_t_6) < (0)) __PYX_ERR(0, 51, __pyx_L1_error)
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "lxml/html/_difflib.py":53
 * from collections import namedtuple as _namedtuple
 * 
 * try:             # <<<<<<<<<<<<<<
 *     from types import GenericAlias
 * except ImportError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_1);
    /*try:*/ {

      /* "lxml/html/_difflib.py":54
 * 
 * try:
 *     from types import GenericAlias             # <<<<<<<<<<<<<<
 * except ImportError:
 *     GenericAlias = None
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_GenericAlias};
        __pyx_t_7 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_types, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 54, __pyx_L8_error)
      }
      __pyx_t_4 = __pyx_t_7;
      __Pyx_GOTREF(__pyx_t_4);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_GenericAlias};
        __pyx_t_5 = 0; {
          __pyx_t_6 = __Pyx_ImportFrom(__pyx_t_4, __pyx_imported_names[__pyx_t_5]); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 54, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_6);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_5], __pyx_t_6) < (0)) __PYX_ERR(0, 54, __pyx_L8_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "lxml/html/_difflib.py":53
 * from collections import namedtuple as _namedtuple
 * 
 * try:             # <<<<<<<<<<<<<<
 *     from types import GenericAlias
 * except ImportError:
*/
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L13_try_end;
    __pyx_L8_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "lxml/html/_difflib.py":55
 * try:
 *     from types import GenericAlias
 * except ImportError:             # <<<<<<<<<<<<<<
 *     GenericAlias = None
 * 
*/
    __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ImportError))));
    if (__pyx_t_8) {
      __Pyx_AddTraceback("lxml.html._difflib", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_9) < 0) __PYX_ERR(0, 55, __pyx_L10_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_9);

      /* "lxml/html/_difflib.py":56
 *     from types import GenericAlias
 * except ImportError:
 *     GenericAlias = None             # <<<<<<<<<<<<<<
 * 
 * Match = _namedtuple('Match', 'a b size')
*/
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GenericAlias, Py_None) < (0)) __PYX_ERR(0, 56, __pyx_L10_except_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L9_exception_handled;
    }
    goto __pyx_L10_except_error;

    /* "lxml/html/_difflib.py":53
 * from collections import namedtuple as _namedtuple
 * 
 * try:             # <<<<<<<<<<<<<<
 *     from types import GenericAlias
 * except ImportError:
*/
    __pyx_L10_except_error:;
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_2, __pyx_t_1);
    goto __pyx_L1_error;
    __pyx_L9_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_2, __pyx_t_1);
    __pyx_L13_try_end:;
  }

  /* "lxml/html/_difflib.py":58
 *     GenericAlias = None
 * 
 * Match = _namedtuple('Match', 'a b size')             # <<<<<<<<<<<<<<
 * 
 * def _calculate_ratio(matches, length):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_namedtuple_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[21], NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Match, __pyx_t_6) < (0)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":205
 *         self.set_seqs(a, b)
 * 
 *     def set_seqs(self, a, b):             # <<<<<<<<<<<<<<
 *         """Set the two sequences to be compared.
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_3set_seqs, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SequenceMatcher_set_seqs, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_set_seqs, __pyx_t_6) < (0)) __PYX_ERR(0, 205, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":217
 *         self.set_seq2(b)
 * 
 *     def set_seq1(self, a):             # <<<<<<<<<<<<<<
 *         """Set the first sequence to be compared.
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_5set_seq1, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SequenceMatcher_set_seq1, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_set_seq1, __pyx_t_6) < (0)) __PYX_ERR(0, 217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":243
 *         self.matching_blocks = self.opcodes = None
 * 
 *     def set_seq2(self, b):             # <<<<<<<<<<<<<<
 *         """Set the second sequence to be compared.
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_7set_seq2, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SequenceMatcher_set_seq2, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_set_seq2, __pyx_t_6) < (0)) __PYX_ERR(0, 243, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":287
 *     # repeatedly
 * 
 *     def __chain_b(self):             # <<<<<<<<<<<<<<
 *         # Because isjunk is a user-defined (not C) function, and we test
 *         # for junk a LOT, it's important to minimize the number of calls.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_9_SequenceMatcher__chain_b, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SequenceMatcher___chain_b, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[27])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_SequenceMatcher__chain_b, __pyx_t_6) < (0)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":566
 *         return answer
 * 
 *     def get_grouped_opcodes(self, n=3):             # <<<<<<<<<<<<<<
 *         """ Isolate change clusters by eliminating ranges with no changes.
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_11get_grouped_opcodes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SequenceMatcher_get_grouped_opco, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[22]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_get_grouped_opcodes, __pyx_t_6) < (0)) __PYX_ERR(0, 566, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":616
 *             yield group
 * 
 *     def ratio(self):             # <<<<<<<<<<<<<<
 *         """Return a measure of the sequences' similarity (float in [0,1]).
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_14ratio, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SequenceMatcher_ratio, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[28])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_ratio, __pyx_t_6) < (0)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":683
 *         return _calculate_ratio(min(la, lb), la + lb)
 * 
 *     if GenericAlias is not None:             # <<<<<<<<<<<<<<
 *         __class_getitem__ = classmethod(GenericAlias)
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GenericAlias); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_10 = (__pyx_t_6 != Py_None);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__pyx_t_10) {

    /* "lxml/html/_difflib.py":684
 * 
 *     if GenericAlias is not None:
 *         __class_getitem__ = classmethod(GenericAlias)             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GenericAlias); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 684, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_9 = __Pyx_Method_ClassMethod(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 684, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_class_getitem, __pyx_t_9) < (0)) __PYX_ERR(0, 684, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "lxml/html/_difflib.py":683
 *         return _calculate_ratio(min(la, lb), la + lb)
 * 
 *     if GenericAlias is not None:             # <<<<<<<<<<<<<<
 *         __class_getitem__ = classmethod(GenericAlias)
 * 
*/
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_16__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SequenceMatcher___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_9) < (0)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_SequenceMatcher, (type(self), 0x69089d0, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_SequenceMatcher__set_state(self, __pyx_state)
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_15SequenceMatcher_18__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SequenceMatcher___setstate_cytho, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[30])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib_SequenceMatcher, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_9) < (0)) __PYX_ERR(1, 16, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":687
 * 
 * 
 * def get_close_matches(word, possibilities, n=3, cutoff=0.6):             # <<<<<<<<<<<<<<
 *     """Use SequenceMatcher to return list of the best "good enough" matches.
 * 
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_1get_close_matches, 0, __pyx_mstate_global->__pyx_n_u_get_close_matches, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[31])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[23]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_get_close_matches, __pyx_t_9) < (0)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":738
 * 
 * 
 * def _keep_original_ws(s, tag_s):             # <<<<<<<<<<<<<<
 *     """Replace whitespace with the original whitespace characters in `s`"""
 *     return ''.join(
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_3_keep_original_ws, 0, __pyx_mstate_global->__pyx_n_u_keep_original_ws, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[32])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_keep_original_ws, __pyx_t_9) < (0)) __PYX_ERR(0, 738, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":747
 * 
 * 
 * class Differ:             # <<<<<<<<<<<<<<
 *     r"""
 *     Differ is a class for comparing sequences of lines of text, and
*/
  __pyx_t_9 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_Differ, __pyx_mstate_global->__pyx_n_u_Differ, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_kp_u_Differ_is_a_class_for_comparing); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);

  /* "lxml/html/_difflib.py":833
 *     """
 * 
 *     def __init__(self, linejunk=None, charjunk=None):             # <<<<<<<<<<<<<<
 *         """
 *         Construct a text differencer, with optional filters.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6Differ_1__init__, 0, __pyx_mstate_global->__pyx_n_u_Differ___init, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[33])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[24]);
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_6) < (0)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":856
 *         self.charjunk = charjunk
 * 
 *     def compare(self, a, b):             # <<<<<<<<<<<<<<
 *         r"""
 *         Compare two sequences of lines; generate the resulting delta.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6Differ_3compare, 0, __pyx_mstate_global->__pyx_n_u_Differ_compare, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_compare, __pyx_t_6) < (0)) __PYX_ERR(0, 856, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":897
 *             yield from g
 * 
 *     def _dump(self, tag, x, lo, hi):             # <<<<<<<<<<<<<<
 *         """Generate comparison results for a same-tagged range."""
 *         for i in range(lo, hi):
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6Differ_6_dump, 0, __pyx_mstate_global->__pyx_n_u_Differ__dump, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_dump, __pyx_t_6) < (0)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":902
 *             yield '%s %s' % (tag, x[i])
 * 
 *     def _plain_replace(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         assert alo < ahi and blo < bhi
 *         # dump the shorter block first -- reduces the burden on short-term
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6Differ_9_plain_replace, 0, __pyx_mstate_global->__pyx_n_u_Differ__plain_replace, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_plain_replace, __pyx_t_6) < (0)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":916
 *             yield from g
 * 
 *     def _fancy_replace(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         r"""
 *         When replacing one block of lines with another, search the blocks
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6Differ_12_fancy_replace, 0, __pyx_mstate_global->__pyx_n_u_Differ__fancy_replace, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_fancy_replace, __pyx_t_6) < (0)) __PYX_ERR(0, 916, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":1010
 *                                       b, dump_j, bhi)
 * 
 *     def _fancy_helper(self, a, alo, ahi, b, blo, bhi):             # <<<<<<<<<<<<<<
 *         g = []
 *         if alo < ahi:
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6Differ_15_fancy_helper, 0, __pyx_mstate_global->__pyx_n_u_Differ__fancy_helper, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_fancy_helper, __pyx_t_6) < (0)) __PYX_ERR(0, 1010, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":1022
 *         yield from g
 * 
 *     def _qformat(self, aline, bline, atags, btags):             # <<<<<<<<<<<<<<
 *         r"""
 *         Format "?" output and deal with tabs.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_6Differ_18_qformat, 0, __pyx_mstate_global->__pyx_n_u_Differ__qformat, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1022, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_qformat, __pyx_t_6) < (0)) __PYX_ERR(0, 1022, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "lxml/html/_difflib.py":747
 * 
 * 
 * class Differ:             # <<<<<<<<<<<<<<
 *     r"""
 *     Differ is a class for comparing sequences of lines of text, and
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_Differ, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_9, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Differ, __pyx_t_6) < (0)) __PYX_ERR(0, 747, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1066
 * # was inserted after "private".  I can live with that <wink>.
 * 
 * def IS_LINE_JUNK(line, pat=None):             # <<<<<<<<<<<<<<
 *     r"""
 *     Return True for ignorable line: if `line` is blank or contains a single '#'.
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_5IS_LINE_JUNK, 0, __pyx_mstate_global->__pyx_n_u_IS_LINE_JUNK, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[34])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[25]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_IS_LINE_JUNK, __pyx_t_9) < (0)) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1087
 *     return pat(line) is not None
 * 
 * def IS_CHARACTER_JUNK(ch, ws=" \t"):             # <<<<<<<<<<<<<<
 *     r"""
 *     Return True for ignorable character: iff `ch` is a space or tab.
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_7IS_CHARACTER_JUNK, 0, __pyx_mstate_global->__pyx_n_u_IS_CHARACTER_JUNK, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[26]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_IS_CHARACTER_JUNK, __pyx_t_9) < (0)) __PYX_ERR(0, 1087, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1110
 * ########################################################################
 * 
 * def _format_range_unified(start, stop):             # <<<<<<<<<<<<<<
 *     'Convert range to the "ed" format'
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_9_format_range_unified, 0, __pyx_mstate_global->__pyx_n_u_format_range_unified, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_format_range_unified, __pyx_t_9) < (0)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1121
 *     return '{},{}'.format(beginning, length)
 * 
 * def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',             # <<<<<<<<<<<<<<
 *                  tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_11unified_diff, 0, __pyx_mstate_global->__pyx_n_u_unified_diff, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[27]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_unified_diff, __pyx_t_9) < (0)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1194
 * ########################################################################
 * 
 * def _format_range_context(start, stop):             # <<<<<<<<<<<<<<
 *     'Convert range to the "ed" format'
 *     # Per the diff spec at http://www.unix.org/single_unix_specification/
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_14_format_range_context, 0, __pyx_mstate_global->__pyx_n_u_format_range_context, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_format_range_context, __pyx_t_9) < (0)) __PYX_ERR(0, 1194, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1206
 * 
 * # See http://www.unix.org/single_unix_specification/
 * def context_diff(a, b, fromfile='', tofile='',             # <<<<<<<<<<<<<<
 *                  fromfiledate='', tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_16context_diff, 0, __pyx_mstate_global->__pyx_n_u_context_diff, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[27]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_context_diff, __pyx_t_9) < (0)) __PYX_ERR(0, 1206, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1282
 *                         yield prefix[tag] + line
 * 
 * def _check_types(a, b, *args):             # <<<<<<<<<<<<<<
 *     # Checking types is weird, but the alternative is garbled output when
 *     # someone passes mixed bytes and str to {unified,context}_diff(). E.g.
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_19_check_types, 0, __pyx_mstate_global->__pyx_n_u_check_types, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[38])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_check_types, __pyx_t_9) < (0)) __PYX_ERR(0, 1282, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1305
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
 * 
 * def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'',             # <<<<<<<<<<<<<<
 *                fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n'):
 *     r"""
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_21diff_bytes, 0, __pyx_mstate_global->__pyx_n_u_diff_bytes, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[28]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_diff_bytes, __pyx_t_9) < (0)) __PYX_ERR(0, 1305, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1335
 *         yield line.encode('ascii', 'surrogateescape')
 * 
 * def ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK):             # <<<<<<<<<<<<<<
 *     r"""
 *     Compare `a` and `b` (lists of strings); return a `Differ`-style delta.
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_24ndiff, 0, __pyx_mstate_global->__pyx_n_u_ndiff, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[39])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_9, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_IS_CHARACTER_JUNK); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_9)->arg0 = __pyx_t_6;
  __Pyx_GIVEREF(__pyx_t_6);
  __pyx_t_6 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_9, __pyx_pf_4lxml_4html_8_difflib_33__defaults__);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ndiff, __pyx_t_9) < (0)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1372
 *     return Differ(linejunk, charjunk).compare(a, b)
 * 
 * def _mdiff(fromlines, tolines, context=None, linejunk=None,             # <<<<<<<<<<<<<<
 *            charjunk=IS_CHARACTER_JUNK):
 *     r"""Returns generator yielding marked up from/to side by side differences.
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_26_mdiff, 0, __pyx_mstate_global->__pyx_n_u_mdiff, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_9, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults)) __PYX_ERR(0, 1372, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1373
 * 
 * def _mdiff(fromlines, tolines, context=None, linejunk=None,
 *            charjunk=IS_CHARACTER_JUNK):             # <<<<<<<<<<<<<<
 *     r"""Returns generator yielding marked up from/to side by side differences.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_IS_CHARACTER_JUNK); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_9)->arg0 = __pyx_t_6;
  __Pyx_GIVEREF(__pyx_t_6);
  __pyx_t_6 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_9, __pyx_pf_4lxml_4html_8_difflib_35__defaults__);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_mdiff, __pyx_t_9) < (0)) __PYX_ERR(0, 1372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1642
 * 
 * 
 * _file_template = """             # <<<<<<<<<<<<<<
 * <!DOCTYPE html>
 * <html lang="en">
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_file_template, __pyx_mstate_global->__pyx_kp_u_DOCTYPE_html_html_lang_en_head) < (0)) __PYX_ERR(0, 1642, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1659
 * </html>"""
 * 
 * _styles = """             # <<<<<<<<<<<<<<
 *         :root {color-scheme: light dark}
 *         table.diff {
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_styles_2, __pyx_mstate_global->__pyx_kp_u_root_color_scheme_light_dark_ta) < (0)) __PYX_ERR(0, 1659, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1702
 *         }"""
 * 
 * _table_template = """             # <<<<<<<<<<<<<<
 *     <table class="diff" id="difflib_chg_%(prefix)s_top"
 *            cellspacing="0" cellpadding="0" rules="groups" >
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_table_template, __pyx_mstate_global->__pyx_kp_u_table_class_diff_id_difflib_chg) < (0)) __PYX_ERR(0, 1702, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1712
 *     </table>"""
 * 
 * _legend = """             # <<<<<<<<<<<<<<
 *     <table class="diff" summary="Legends">
 *         <tr> <th colspan="2"> Legends </th> </tr>
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_legend_2, __pyx_mstate_global->__pyx_kp_u_table_class_diff_summary_Legend) < (0)) __PYX_ERR(0, 1712, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1729
 *     </table>"""
 * 
 * class HtmlDiff(object):             # <<<<<<<<<<<<<<
 *     """For producing HTML side by side comparison with change highlights.
 * 
*/
  __pyx_t_9 = __Pyx_PEP560_update_bases(__pyx_mstate_global->__pyx_tuple[30]); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_9, __pyx_mstate_global->__pyx_n_u_HtmlDiff, __pyx_mstate_global->__pyx_n_u_HtmlDiff, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_kp_u_For_producing_HTML_side_by_side); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_9 != __pyx_mstate_global->__pyx_tuple[30]) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_mstate_global->__pyx_tuple[30]) < 0))) __PYX_ERR(0, 1729, __pyx_L1_error)
  }

  /* "lxml/html/_difflib.py":1745
 *     """
 * 
 *     _file_template = _file_template             # <<<<<<<<<<<<<<
 *     _styles = _styles
 *     _table_template = _table_template
*/
  __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_file_template);
  if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_file_template, __pyx_t_11) < (0)) __PYX_ERR(0, 1745, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "lxml/html/_difflib.py":1746
 * 
 *     _file_template = _file_template
 *     _styles = _styles             # <<<<<<<<<<<<<<
 *     _table_template = _table_template
 *     _legend = _legend
*/
  __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_styles_2);
  if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_styles_2, __pyx_t_11) < (0)) __PYX_ERR(0, 1746, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "lxml/html/_difflib.py":1747
 *     _file_template = _file_template
 *     _styles = _styles
 *     _table_template = _table_template             # <<<<<<<<<<<<<<
 *     _legend = _legend
 *     _default_prefix = 0
*/
  __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_table_template);
  if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_table_template, __pyx_t_11) < (0)) __PYX_ERR(0, 1747, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "lxml/html/_difflib.py":1748
 *     _styles = _styles
 *     _table_template = _table_template
 *     _legend = _legend             # <<<<<<<<<<<<<<
 *     _default_prefix = 0
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_legend_2);
  if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_legend_2, __pyx_t_11) < (0)) __PYX_ERR(0, 1748, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "lxml/html/_difflib.py":1749
 *     _table_template = _table_template
 *     _legend = _legend
 *     _default_prefix = 0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self,tabsize=8,wrapcolumn=None,linejunk=None,
*/
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_default_prefix, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(0, 1749, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1751
 *     _default_prefix = 0
 * 
 *     def __init__(self,tabsize=8,wrapcolumn=None,linejunk=None,             # <<<<<<<<<<<<<<
 *                  charjunk=IS_CHARACTER_JUNK):
 *         """HtmlDiff instance initializer
*/
  __pyx_t_11 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_1__init__, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff___init, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[40])); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1751, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_11);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_11, __pyx_mstate_global->__pyx_ptype_4lxml_4html_8_difflib___pyx_defaults)) __PYX_ERR(0, 1751, __pyx_L1_error)

  /* "lxml/html/_difflib.py":1752
 * 
 *     def __init__(self,tabsize=8,wrapcolumn=None,linejunk=None,
 *                  charjunk=IS_CHARACTER_JUNK):             # <<<<<<<<<<<<<<
 *         """HtmlDiff instance initializer
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_IS_CHARACTER_JUNK); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_11)->arg0 = __pyx_t_12;
  __Pyx_GIVEREF(__pyx_t_12);
  __pyx_t_12 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_11, __pyx_pf_4lxml_4html_8_difflib_37__defaults__);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_11) < (0)) __PYX_ERR(0, 1751, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "lxml/html/_difflib.py":1768
 *         self._charjunk = charjunk
 * 
 *     def make_file(self, fromlines, tolines, fromdesc='', todesc='',             # <<<<<<<<<<<<<<
 *                   context=False, numlines=5, *, charset='utf-8'):
 *         """Returns HTML file of side by side comparison with change highlights
*/
  __pyx_t_11 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_charset, ((PyObject*)__pyx_mstate_global->__pyx_kp_u_utf_8)) < (0)) __PYX_ERR(0, 1768, __pyx_L1_error)
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_3make_file, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff_make_file, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[41])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_12, __pyx_mstate_global->__pyx_tuple[31]);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_12, __pyx_t_11);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_make_file, __pyx_t_12) < (0)) __PYX_ERR(0, 1768, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":1795
 *         )).encode(charset, 'xmlcharrefreplace').decode(charset)
 * 
 *     def _tab_newline_replace(self,fromlines,tolines):             # <<<<<<<<<<<<<<
 *         """Returns from/to line lists with tabs expanded and newlines removed.
 * 
*/
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_5_tab_newline_replace, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff__tab_newline_replace, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[42])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_tab_newline_replace, __pyx_t_12) < (0)) __PYX_ERR(0, 1795, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":1818
 *         return fromlines,tolines
 * 
 *     def _split_line(self,data_list,line_num,text):             # <<<<<<<<<<<<<<
 *         """Builds list of text lines by splitting text lines at wrap point
 * 
*/
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_7_split_line, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff__split_line, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[43])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_split_line, __pyx_t_12) < (0)) __PYX_ERR(0, 1818, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":1873
 *         self._split_line(data_list,'>',line2)
 * 
 *     def _line_wrapper(self,diffs):             # <<<<<<<<<<<<<<
 *         """Returns iterator that splits (wraps) mdiff text lines"""
 * 
*/
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_9_line_wrapper, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff__line_wrapper, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_line_wrapper, __pyx_t_12) < (0)) __PYX_ERR(0, 1873, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":1901
 *                 yield fromdata,todata,flag
 * 
 *     def _collect_lines(self,diffs):             # <<<<<<<<<<<<<<
 *         """Collects mdiff output into separate lists
 * 
*/
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_12_collect_lines, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff__collect_lines, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[44])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_collect_lines, __pyx_t_12) < (0)) __PYX_ERR(0, 1901, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":1922
 *         return fromlist,tolist,flaglist
 * 
 *     def _format_line(self,side,flag,linenum,text):             # <<<<<<<<<<<<<<
 *         """Returns HTML markup of "from" / "to" text lines
 * 
*/
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_14_format_line, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff__format_line, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[45])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_format_line, __pyx_t_12) < (0)) __PYX_ERR(0, 1922, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":1945
 *                % (id,linenum,text)
 * 
 *     def _make_prefix(self):             # <<<<<<<<<<<<<<
 *         """Create unique anchor prefixes"""
 * 
*/
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_16_make_prefix, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff__make_prefix, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[46])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_make_prefix, __pyx_t_12) < (0)) __PYX_ERR(0, 1945, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":1956
 *         self._prefix = [fromprefix,toprefix]
 * 
 *     def _convert_flags(self,fromlist,tolist,flaglist,context,numlines):             # <<<<<<<<<<<<<<
 *         """Makes list of "next" links"""
 * 
*/
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_18_convert_flags, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff__convert_flags, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[47])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_convert_flags, __pyx_t_12) < (0)) __PYX_ERR(0, 1956, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":2003
 *         return fromlist,tolist,flaglist,next_href,next_id
 * 
 *     def make_table(self,fromlines,tolines,fromdesc='',todesc='',context=False,             # <<<<<<<<<<<<<<
 *                    numlines=5):
 *         """Returns HTML table of side by side comparison with change highlights
*/
  __pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_8HtmlDiff_20make_table, 0, __pyx_mstate_global->__pyx_n_u_HtmlDiff_make_table, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[48])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_12, __pyx_mstate_global->__pyx_tuple[31]);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_make_table, __pyx_t_12) < (0)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "lxml/html/_difflib.py":1729
 *     </table>"""
 * 
 * class HtmlDiff(object):             # <<<<<<<<<<<<<<
 *     """For producing HTML side by side comparison with change highlights.
 * 
*/
  __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HtmlDiff, __pyx_t_9, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_12);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_HtmlDiff, __pyx_t_12) < (0)) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":2081
 * 
 * 
 * def restore(delta, which):             # <<<<<<<<<<<<<<
 *     r"""
 *     Generate one of the two sequences that generated a delta.
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_29restore, 0, __pyx_mstate_global->__pyx_n_u_restore, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_restore, __pyx_t_9) < (0)) __PYX_ERR(0, 2081, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "(tree fragment)":4
 *     int __Pyx_CheckUnpickleChecksum(long, long, long, long, const char*) except -1
 *     int __Pyx_UpdateUnpickledDict(object, object, Py_ssize_t) except -1
 * def __pyx_unpickle_SequenceMatcher(__pyx_type, long __pyx_checksum, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x69089d0, 0xfefe063, 0xd40abce, b'a, autojunk, b, b2j, bjunk, bpopular, fullbcount, isjunk, matching_blocks, opcodes')
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_4html_8_difflib_32__pyx_unpickle_SequenceMatcher, 0, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_SequenceMatcher, NULL, __pyx_mstate_global->__pyx_n_u_lxml_html__difflib, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[49])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_SequenceMatcher, __pyx_t_9) < (0)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/html/_difflib.py":1
 * # Copied from CPython 3.14b2+ under PSF-License 2.0.             # <<<<<<<<<<<<<<
 * # See https://docs.python.org/3/license.html
 * 
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(15); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_SequenceMatcher_set_seqs_line_20, __pyx_mstate_global->__pyx_kp_u_Set_the_two_sequences_to_be_comp) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_SequenceMatcher_set_seq1_line_21, __pyx_mstate_global->__pyx_kp_u_Set_the_first_sequence_to_be_com) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_SequenceMatcher_set_seq2_line_24, __pyx_mstate_global->__pyx_kp_u_Set_the_second_sequence_to_be_co) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_SequenceMatcher_get_grouped_opco_2, __pyx_mstate_global->__pyx_kp_u_Isolate_change_clusters_by_elim) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_SequenceMatcher_ratio_line_616, __pyx_mstate_global->__pyx_kp_u_Return_a_measure_of_the_sequence) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_get_close_matches_line_687, __pyx_mstate_global->__pyx_kp_u_Use_SequenceMatcher_to_return_li) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Differ_compare_line_856, __pyx_mstate_global->__pyx_kp_u_Compare_two_sequences_of_lines) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Differ__fancy_replace_line_916, __pyx_mstate_global->__pyx_kp_u_When_replacing_one_block_of_lin) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Differ__qformat_line_1022, __pyx_mstate_global->__pyx_kp_u_Format_output_and_deal_with_tab) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_IS_LINE_JUNK_line_1066, __pyx_mstate_global->__pyx_kp_u_Return_True_for_ignorable_line) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_IS_CHARACTER_JUNK_line_1087, __pyx_mstate_global->__pyx_kp_u_Return_True_for_ignorable_chara) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_unified_diff_line_1121, __pyx_mstate_global->__pyx_kp_u_Compare_two_sequences_of_lines_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_context_diff_line_1206, __pyx_mstate_global->__pyx_kp_u_Compare_two_sequences_of_lines_3) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_ndiff_line_1335, __pyx_mstate_global->__pyx_kp_u_Compare_a_and_b_lists_of_string) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_restore_line_2081, __pyx_mstate_global->__pyx_kp_u_Generate_one_of_the_two_sequenc) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_9) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /*--- Wrapped vars code ---*/

  if (__Pyx_RegisterCleanup()) __PYX_ERR(0, 1, __pyx_L1_error)
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init lxml.html._difflib", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      PyErr_Fetch(&tp, &value, &tb);
      PyState_RemoveModule(&__pyx_moduledef);
      PyErr_Restore(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init lxml.html._difflib");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #else
  return __pyx_m;
  #endif
}
/* #### Code section: pystring_table ### */
/* #### Code section: cached_builtins ### */

static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_object); if (!__pyx_builtin_object) __PYX_ERR(0, 1729, __pyx_L1_error)
  __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 301, __pyx_L1_error)
  __pyx_builtin_map = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_map); if (!__pyx_builtin_map) __PYX_ERR(0, 508, __pyx_L1_error)
  __pyx_builtin_sum = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_sum); if (!__pyx_builtin_sum) __PYX_ERR(0, 639, __pyx_L1_error)
  __pyx_builtin_zip = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_zip); if (!__pyx_builtin_zip) __PYX_ERR(0, 742, __pyx_L1_error)
  __pyx_builtin_reversed = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_reversed); if (!__pyx_builtin_reversed) __PYX_ERR(0, 1453, __pyx_L1_error)

  /* Cached unbound methods */
  __pyx_mstate->__pyx_umethod_PyDict_Type_get.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_get.method_name = &__pyx_mstate->__pyx_n_u_get;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.method_name = &__pyx_mstate->__pyx_n_u_items;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.method_name = &__pyx_mstate->__pyx_n_u_values;
  __pyx_mstate->__pyx_umethod_PyList_Type_pop.type = (PyObject*)&PyList_Type;
  __pyx_mstate->__pyx_umethod_PyList_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "lxml/html/_difflib.py":593
 *         codes = self.get_opcodes()
 *         if not codes:
 *             codes = [("equal", 0, 1, 0, 1)]             # <<<<<<<<<<<<<<
 *         # Fixup leading and trailing groups if they show no changes.
 *         if codes[0][0] == 'equal':
*/
  __pyx_mstate_global->__pyx_tuple[0] = PyTuple_Pack(5, __pyx_mstate_global->__pyx_n_u_equal, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[0])) __PYX_ERR(0, 593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[0]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[0]);

  /* "lxml/html/_difflib.py":1318
 *     def decode(s):
 *         try:
 *             return s.decode('ascii', 'surrogateescape')             # <<<<<<<<<<<<<<
 *         except AttributeError as err:
 *             msg = ('all arguments must be bytes, not %s (%r)' %
*/
  __pyx_mstate_global->__pyx_tuple[1] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_n_u_ascii, __pyx_mstate_global->__pyx_n_u_surrogateescape); if (unlikely(!__pyx_mstate_global->__pyx_tuple[1])) __PYX_ERR(0, 1318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[1]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[1]);

  /* "lxml/html/_difflib.py":1441
 *         # text with user's line format to allow for usage of the line number.
 *         if format_key is None:
 *             return (num_lines[side],lines.pop(0)[2:])             # <<<<<<<<<<<<<<
 *         # Handle case of intraline changes
 *         if format_key == '?':
*/
  __pyx_mstate_global->__pyx_slice[0] = PySlice_New(__pyx_mstate_global->__pyx_int_2, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[0])) __PYX_ERR(0, 1441, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[0]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[0]);

  /* "lxml/html/_difflib.py":1508
 *                 yield _make_line(lines,'-',0), None, True
 *                 continue
 *             elif s.startswith(('--?+', '--+', '- ')):             # <<<<<<<<<<<<<<
 *                 # in delete block and see an intraline change or unchanged line
 *                 # coming: yield the delete line and then blanks
*/
  __pyx_mstate_global->__pyx_tuple[2] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_kp_u__32, __pyx_mstate_global->__pyx_kp_u__33, __pyx_mstate_global->__pyx_kp_u__8); if (unlikely(!__pyx_mstate_global->__pyx_tuple[2])) __PYX_ERR(0, 1508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[2]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[2]);

  /* "lxml/html/_difflib.py":1532
 *                 yield None, _make_line(lines,'+',1), True
 *                 continue
 *             elif s.startswith(('+ ', '+-')):             # <<<<<<<<<<<<<<
 *                 # will be leaving an add block: yield blanks then add line
 *                 from_line, to_line = None, _make_line(lines,'+',1)
*/
  __pyx_mstate_global->__pyx_tuple[3] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__11, __pyx_mstate_global->__pyx_kp_u__37); if (unlikely(!__pyx_mstate_global->__pyx_tuple[3])) __PYX_ERR(0, 1532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[3]);

  /* "lxml/html/_difflib.py":1549
 *             while(num_blanks_to_yield < 0):
 *                 num_blanks_to_yield += 1
 *                 yield None,('','\n'),True             # <<<<<<<<<<<<<<
 *             while(num_blanks_to_yield > 0):
 *                 num_blanks_to_yield -= 1
*/
  __pyx_mstate_global->__pyx_tuple[4] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__2, __pyx_mstate_global->__pyx_kp_u__10); if (unlikely(!__pyx_mstate_global->__pyx_tuple[4])) __PYX_ERR(0, 1549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[4]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);
  __pyx_mstate_global->__pyx_tuple[5] = PyTuple_Pack(3, Py_None, __pyx_mstate_global->__pyx_tuple[4], Py_True); if (unlikely(!__pyx_mstate_global->__pyx_tuple[5])) __PYX_ERR(0, 1549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[5]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);

  /* "lxml/html/_difflib.py":1552
 *             while(num_blanks_to_yield > 0):
 *                 num_blanks_to_yield -= 1
 *                 yield ('','\n'),None,True             # <<<<<<<<<<<<<<
 *             if s.startswith('X'):
 *                 return
*/
  __pyx_mstate_global->__pyx_tuple[6] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_tuple[4], Py_None, Py_True); if (unlikely(!__pyx_mstate_global->__pyx_tuple[6])) __PYX_ERR(0, 1552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[6]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[6]);

  /* "lxml/html/_difflib.py":1616
 *             # the user's separator.
 *             if index > context:
 *                 yield None, None, None             # <<<<<<<<<<<<<<
 *                 lines_to_write = context
 *             else:
*/
  __pyx_mstate_global->__pyx_tuple[7] = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[7])) __PYX_ERR(0, 1616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[7]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[7]);

  /* "lxml/html/_difflib.py":1807
 *         def expand_tabs(line):
 *             # hide real spaces
 *             line = line.replace(' ','\0')             # <<<<<<<<<<<<<<
 *             # expand tabs into spaces
 *             line = line.expandtabs(self._tabsize)
*/
  __pyx_mstate_global->__pyx_tuple[8] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__3, __pyx_mstate_global->__pyx_kp_u__28); if (unlikely(!__pyx_mstate_global->__pyx_tuple[8])) __PYX_ERR(0, 1807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[8]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[8]);

  /* "lxml/html/_difflib.py":1812
 *             # replace spaces from expanded tabs back into tab characters
 *             # (we'll replace them with markup after we do differencing)
 *             line = line.replace(' ','\t')             # <<<<<<<<<<<<<<
 *             return line.replace('\0',' ').rstrip('\n')
 *         fromlines = [expand_tabs(line) for line in fromlines]
*/
  __pyx_mstate_global->__pyx_tuple[9] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__3, __pyx_mstate_global->__pyx_kp_u__39); if (unlikely(!__pyx_mstate_global->__pyx_tuple[9])) __PYX_ERR(0, 1812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[9]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[9]);

  /* "lxml/html/_difflib.py":1813
 *             # (we'll replace them with markup after we do differencing)
 *             line = line.replace(' ','\t')
 *             return line.replace('\0',' ').rstrip('\n')             # <<<<<<<<<<<<<<
 *         fromlines = [expand_tabs(line) for line in fromlines]
 *         tolines = [expand_tabs(line) for line in tolines]
*/
  __pyx_mstate_global->__pyx_tuple[10] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__28, __pyx_mstate_global->__pyx_kp_u__3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[10])) __PYX_ERR(0, 1813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[10]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[10]);

  /* "lxml/html/_difflib.py":1894
 *                     fromdata = fromlist.pop(0)
 *                 else:
 *                     fromdata = ('',' ')             # <<<<<<<<<<<<<<
 *                 if tolist:
 *                     todata = tolist.pop(0)
*/
  __pyx_mstate_global->__pyx_tuple[11] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__2, __pyx_mstate_global->__pyx_kp_u__3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[11])) __PYX_ERR(0, 1894, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[11]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[11]);

  /* "lxml/html/_difflib.py":1937
 *             id = ''
 *         # replace those things that would get confused with HTML symbols
 *         text=text.replace("&","&amp;").replace(">","&gt;").replace("<","&lt;")             # <<<<<<<<<<<<<<
 * 
 *         # make space non-breakable so they don't get compressed or line wrapped
*/
  __pyx_mstate_global->__pyx_tuple[12] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__42, __pyx_mstate_global->__pyx_kp_u_amp); if (unlikely(!__pyx_mstate_global->__pyx_tuple[12])) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[12]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[12]);
  __pyx_mstate_global->__pyx_tuple[13] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__40, __pyx_mstate_global->__pyx_kp_u_gt); if (unlikely(!__pyx_mstate_global->__pyx_tuple[13])) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[13]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[13]);
  __pyx_mstate_global->__pyx_tuple[14] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__43, __pyx_mstate_global->__pyx_kp_u_lt); if (unlikely(!__pyx_mstate_global->__pyx_tuple[14])) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[14]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[14]);

  /* "lxml/html/_difflib.py":1940
 * 
 *         # make space non-breakable so they don't get compressed or line wrapped
 *         text = text.replace(' ','&nbsp;').rstrip()             # <<<<<<<<<<<<<<
 * 
 *         return '<td class="diff_header"%s>%s</td><td nowrap="nowrap">%s</td>' \
*/
  __pyx_mstate_global->__pyx_tuple[15] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__3, __pyx_mstate_global->__pyx_kp_u_nbsp); if (unlikely(!__pyx_mstate_global->__pyx_tuple[15])) __PYX_ERR(0, 1940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[15]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[15]);

  /* "lxml/html/_difflib.py":2074
 *             prefix=self._prefix[1])
 * 
 *         return table.replace('\0+','<span class="diff_add">'). \             # <<<<<<<<<<<<<<
 *                      replace('\0-','<span class="diff_sub">'). \
 *                      replace('\0^','<span class="diff_chg">'). \
*/
  __pyx_mstate_global->__pyx_tuple[16] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__44, __pyx_mstate_global->__pyx_kp_u_span_class_diff_add); if (unlikely(!__pyx_mstate_global->__pyx_tuple[16])) __PYX_ERR(0, 2074, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[16]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[16]);

  /* "lxml/html/_difflib.py":2075
 * 
 *         return table.replace('\0+','<span class="diff_add">'). \
 *                      replace('\0-','<span class="diff_sub">'). \             # <<<<<<<<<<<<<<
 *                      replace('\0^','<span class="diff_chg">'). \
 *                      replace('\1','</span>'). \
*/
  __pyx_mstate_global->__pyx_tuple[17] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__45, __pyx_mstate_global->__pyx_kp_u_span_class_diff_sub); if (unlikely(!__pyx_mstate_global->__pyx_tuple[17])) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[17]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[17]);

  /* "lxml/html/_difflib.py":2076
 *         return table.replace('\0+','<span class="diff_add">'). \
 *                      replace('\0-','<span class="diff_sub">'). \
 *                      replace('\0^','<span class="diff_chg">'). \             # <<<<<<<<<<<<<<
 *                      replace('\1','</span>'). \
 *                      replace('\t','&nbsp;')
*/
  __pyx_mstate_global->__pyx_tuple[18] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__46, __pyx_mstate_global->__pyx_kp_u_span_class_diff_chg); if (unlikely(!__pyx_mstate_global->__pyx_tuple[18])) __PYX_ERR(0, 2076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[18]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[18]);

  /* "lxml/html/_difflib.py":2077
 *                      replace('\0-','<span class="diff_sub">'). \
 *                      replace('\0^','<span class="diff_chg">'). \
 *                      replace('\1','</span>'). \             # <<<<<<<<<<<<<<
 *                      replace('\t','&nbsp;')
 * 
*/
  __pyx_mstate_global->__pyx_tuple[19] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__29, __pyx_mstate_global->__pyx_kp_u_span_2); if (unlikely(!__pyx_mstate_global->__pyx_tuple[19])) __PYX_ERR(0, 2077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[19]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[19]);

  /* "lxml/html/_difflib.py":2078
 *                      replace('\0^','<span class="diff_chg">'). \
 *                      replace('\1','</span>'). \
 *                      replace('\t','&nbsp;')             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_mstate_global->__pyx_tuple[20] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__39, __pyx_mstate_global->__pyx_kp_u_nbsp); if (unlikely(!__pyx_mstate_global->__pyx_tuple[20])) __PYX_ERR(0, 2078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[20]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[20]);

  /* "lxml/html/_difflib.py":2110
 *     prefixes = ("  ", tag)
 *     for line in delta:
 *         if line[:2] in prefixes:             # <<<<<<<<<<<<<<
 *             yield line[2:]
*/
  __pyx_mstate_global->__pyx_slice[1] = PySlice_New(Py_None, __pyx_mstate_global->__pyx_int_2, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[1])) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[1]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[1]);

  /* "lxml/html/_difflib.py":58
 *     GenericAlias = None
 * 
 * Match = _namedtuple('Match', 'a b size')             # <<<<<<<<<<<<<<
 * 
 * def _calculate_ratio(matches, length):
*/
  __pyx_mstate_global->__pyx_tuple[21] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_n_u_Match, __pyx_mstate_global->__pyx_kp_u_a_b_size); if (unlikely(!__pyx_mstate_global->__pyx_tuple[21])) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[21]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[21]);

  /* "lxml/html/_difflib.py":566
 *         return answer
 * 
 *     def get_grouped_opcodes(self, n=3):             # <<<<<<<<<<<<<<
 *         """ Isolate change clusters by eliminating ranges with no changes.
 * 
*/
  __pyx_mstate_global->__pyx_tuple[22] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_int_3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[22])) __PYX_ERR(0, 566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[22]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[22]);

  /* "lxml/html/_difflib.py":687
 * 
 * 
 * def get_close_matches(word, possibilities, n=3, cutoff=0.6):             # <<<<<<<<<<<<<<
 *     """Use SequenceMatcher to return list of the best "good enough" matches.
 * 
*/
  __pyx_mstate_global->__pyx_tuple[23] = PyTuple_Pack(2, ((PyObject*)__pyx_mstate_global->__pyx_int_3), ((PyObject*)__pyx_mstate_global->__pyx_float_0_6)); if (unlikely(!__pyx_mstate_global->__pyx_tuple[23])) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[23]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[23]);

  /* "lxml/html/_difflib.py":833
 *     """
 * 
 *     def __init__(self, linejunk=None, charjunk=None):             # <<<<<<<<<<<<<<
 *         """
 *         Construct a text differencer, with optional filters.
*/
  __pyx_mstate_global->__pyx_tuple[24] = PyTuple_Pack(2, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[24])) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[24]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[24]);

  /* "lxml/html/_difflib.py":1066
 * # was inserted after "private".  I can live with that <wink>.
 * 
 * def IS_LINE_JUNK(line, pat=None):             # <<<<<<<<<<<<<<
 *     r"""
 *     Return True for ignorable line: if `line` is blank or contains a single '#'.
*/
  __pyx_mstate_global->__pyx_tuple[25] = PyTuple_Pack(1, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[25])) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[25]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[25]);

  /* "lxml/html/_difflib.py":1087
 *     return pat(line) is not None
 * 
 * def IS_CHARACTER_JUNK(ch, ws=" \t"):             # <<<<<<<<<<<<<<
 *     r"""
 *     Return True for ignorable character: iff `ch` is a space or tab.
*/
  __pyx_mstate_global->__pyx_tuple[26] = PyTuple_Pack(1, ((PyObject*)__pyx_mstate_global->__pyx_kp_u__13)); if (unlikely(!__pyx_mstate_global->__pyx_tuple[26])) __PYX_ERR(0, 1087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[26]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[26]);

  /* "lxml/html/_difflib.py":1121
 *     return '{},{}'.format(beginning, length)
 * 
 * def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',             # <<<<<<<<<<<<<<
 *                  tofiledate='', n=3, lineterm='\n'):
 *     r"""
*/
  __pyx_mstate_global->__pyx_tuple[27] = PyTuple_Pack(6, ((PyObject*)__pyx_mstate_global->__pyx_kp_u__2), ((PyObject*)__pyx_mstate_global->__pyx_kp_u__2), ((PyObject*)__pyx_mstate_global->__pyx_kp_u__2), ((PyObject*)__pyx_mstate_global->__pyx_kp_u__2), ((PyObject*)__pyx_mstate_global->__pyx_int_3), ((PyObject*)__pyx_mstate_global->__pyx_kp_u__10)); if (unlikely(!__pyx_mstate_global->__pyx_tuple[27])) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[27]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[27]);

  /* "lxml/html/_difflib.py":1305
 *             raise TypeError('all arguments must be str, not: %r' % (arg,))
 * 
 * def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'',             # <<<<<<<<<<<<<<
 *                fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n'):
 *     r"""
*/
  __pyx_mstate_global->__pyx_tuple[28] = PyTuple_Pack(6, ((PyObject*)__pyx_mstate_global->__pyx_kp_b__2), ((PyObject*)__pyx_mstate_global->__pyx_kp_b__2), ((PyObject*)__pyx_mstate_global->__pyx_kp_b__2), ((PyObject*)__pyx_mstate_global->__pyx_kp_b__2), ((PyObject*)__pyx_mstate_global->__pyx_int_3), ((PyObject*)__pyx_mstate_global->__pyx_kp_b__10)); if (unlikely(!__pyx_mstate_global->__pyx_tuple[28])) __PYX_ERR(0, 1305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[28]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[28]);

  /* "lxml/html/_difflib.py":1729
 *     </table>"""
 * 
 * class HtmlDiff(object):             # <<<<<<<<<<<<<<
 *     """For producing HTML side by side comparison with change highlights.
 * 
*/
  __pyx_mstate_global->__pyx_tuple[29] = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_mstate_global->__pyx_tuple[29])) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[29]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[29]);
  __pyx_mstate_global->__pyx_tuple[30] = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_mstate_global->__pyx_tuple[30])) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[30]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[30]);

  /* "lxml/html/_difflib.py":1768
 *         self._charjunk = charjunk
 * 
 *     def make_file(self, fromlines, tolines, fromdesc='', todesc='',             # <<<<<<<<<<<<<<
 *                   context=False, numlines=5, *, charset='utf-8'):
 *         """Returns HTML file of side by side comparison with change highlights
*/
  __pyx_mstate_global->__pyx_tuple[31] = PyTuple_Pack(4, ((PyObject*)__pyx_mstate_global->__pyx_kp_u__2), ((PyObject*)__pyx_mstate_global->__pyx_kp_u__2), ((PyObject*)Py_False), ((PyObject*)__pyx_mstate_global->__pyx_int_5)); if (unlikely(!__pyx_mstate_global->__pyx_tuple[31])) __PYX_ERR(0, 1768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[31]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[31]);
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_tuple;
    for (Py_ssize_t i=0; i<32; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      }
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_slice;
    for (Py_ssize_t i=0; i<2; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      }
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 12; } index[] = {{1098},{761},{1450},{1384},{273},{32},{27},{25},{3253},{634},{410},{560},{29},{24},{986},{179},{254},{222},{722},{46},{32},{35},{35},{35},{589},{589},{155},{967},{588},{1},{2},{1},{2},{2},{5},{3},{10},{10},{15},{0},{2},{10},{15},{13},{13},{2},{1},{1},{1},{1},{1},{4},{4},{4},{3},{3},{3},{3},{2},{13},{1},{1},{1},{1},{1},{1},{2},{2},{2},{1},{1},{1},{2},{2},{2},{8},{22},{33},{35},{8},{33},{32},{5},{24},{30},{2},{7},{6},{7},{2},{28},{4},{5},{17},{43},{9},{34},{4},{7},{15},{6},{17},{19},{1382},{7},{23},{23},{23},{25},{14},{346},{757},{41},{5},{23},{25},{40},{50},{33},{43},{44},{5},{86},{13},{24},{41},{12},{5},{1},{6},{15},{12},{20},{21},{21},{15},{14},{12},{8},{17},{23},{23},{21},{22},{21},{20},{29},{50},{18},{19},{17},{12},{5},{97},{20},{15},{25},{33},{35},{25},{35},{21},{24},{24},{24},{6},{1},{1},{4},{6},{3},{3},{3},{5},{7},{3},{6},{6},{3},{4},{5},{18},{5},{8},{1},{3},{5},{9},{4},{6},{6},{10},{3},{3},{3},{5},{3},{5},{1},{11},{2},{9},{9},{8},{9},{7},{12},{17},{18},{5},{5},{14},{11},{7},{7},{7},{12},{12},{29},{13},{14},{5},{3},{2},{4},{8},{6},{1},{9},{9},{6},{15},{6},{5},{5},{8},{5},{10},{26},{19},{5},{7},{5},{6},{6},{3},{6},{3},{9},{5},{3},{11},{10},{13},{14},{11},{11},{14},{5},{4},{8},{3},{6},{10},{12},{21},{21},{10},{8},{9},{8},{8},{8},{8},{12},{8},{9},{8},{10},{8},{8},{4},{1},{7},{3},{17},{19},{12},{5},{10},{5},{2},{1},{2},{2},{2},{4},{9},{5},{7},{8},{6},{13},{6},{7},{5},{1},{2},{2},{4},{17},{34},{3},{4},{2},{4},{2},{6},{7},{6},{4},{5},{5},{14},{13},{8},{19},{18},{13},{8},{9},{7},{5},{14},{8},{2},{18},{8},{5},{9},{10},{12},{10},{3},{4},{7},{12},{7},{3},{6},{30},{35},{26},{51},{13},{10},{15},{3},{1},{8},{10},{11},{5},{7},{4},{9},{7},{9},{8},{2},{5},{18},{19},{7},{9},{8},{6},{3},{14},{3},{7},{13},{7},{6},{8},{11},{12},{14},{12},{11},{10},{30},{14},{8},{12},{5},{22},{2},{15},{10},{17},{13},{7},{7},{6},{8},{6},{1},{5},{6},{4},{4},{12},{8},{8},{8},{10},{12},{19},{4},{4},{4},{11},{5},{7},{5},{4},{5},{6},{7},{3},{8},{3},{15},{20},{5},{15},{7},{8},{3},{5},{5},{8},{4},{5},{7},{7},{6},{6},{6},{6},{10},{6},{7},{6},{8},{6},{6},{9},{5},{12},{6},{12},{5},{6},{5},{4},{4},{10},{11},{2},{1},{17},{3},{1},{0},{48},{2},{14},{16},{62},{180},{43},{232},{5},{56},{2},{37},{51},{2},{108},{262},{267},{50},{222},{22},{41},{45},{16},{101},{11},{30},{16},{87},{17},{10},{11},{356},{2},{2},{23},{75},{67},{43},{380},{57},{44},{198}};
    #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (9303 bytes) */
const char* const cstring = "(\265/\375`\312cm\"\001\272\007U6I\340\3208\0070\3143\004\306\363\004B\030\233'\3624\306G\030\010\003a0\216\364\356W3\"E\332\02691\310\267\026\332\210&\3779\000\355\325>\206\217[G\306+\304<\325o\177\226>\274\2311\373,\363K\317@\"\343\026\003\014\003*\003D\003\257\222\2549\204\265\031\262~\326\311\364)\323h{\2678\305m\350\221\251]m\356~W|\311\313?\337\327\226\233*\276\307T\256\244\t\023\315Q\357\022\305+\366TRXX\254\230\247\362ax\\\332\r\316\304\\]\240\212{/\213;\022\356u$\263Q\207/\037&&\334\343\035\311\254s\223\227\254\371\235\211\261\375\203\261\270\212<\205\353\3557\337G\245\254x\177\354\010\003\353\343\225\345R\337\272\224\331\373S\202)q\257#)\301tK\276\304\224\262-\301\340\177\371\210\301d\207=\r\t\02592#fH/\037$\220\273<l\375%%%2\037\251\323\243\240\276\324\377\323\310\264H\340\320\344x\350\200\002\244Y\341!D\313\246\304\010\021\247o\351\334vQ\217_\341\275\026\317d\202a\261ZV\337\263V)\224Uj\365\255RZV'-'\254Wa\245\276U*e\265b\231\3666ep\315\367u\367\010\323\277\336\326\205\251\333&\370\255TX~\304hy\tdU\275\216\272\233\036e2\231\242-\371\254\222\263\334\272\275\212W\223d\315\333\216\025g\327\014\223[\333\3601.\225Pz\334\272\306\376T\030\254\353\360\362\307a\355\327\344*\336\3152_\315\037\233\256\022[\330\305\267V\273\305\372\236\006\r\247\323\351Q\251T\352-\357\260\336\250\331\006n\312\246\237\205\337-\177~\267\rI3w +\263\334\276\262lVe\337\305\257\334\304h\257\353\212*\257\253\266\337-\253\367\347\371Mq\335\177\366\250|\311\024\327\034\327\037y\027m\217\317u\215\032\326-\371<\336X\355\346!G\033jn\342\374_\031\256\346x\177n\025\277s\223|\230X\271\335\266\327m\263}\275\013\377\324\251\305\177\006\257T\202\351\362\325=*\223\251\353\245g\222vk\323\253T*\224\227\003\303Kk}\272~q\311U&\273aZ\3263\013\233\265\251{\230\377\230\230\030\\\222\025\210&\325\263\336\256\324\375Y\251\032\263\311\335\"7\341X\353\034\217\304\257\314\346\267\243\211\305|u\377j\307\032\232\372\375\026\353\022\326\356\223+\016\277vb-\271\355\335\204\211\027&{\024\010\021&>\200%hrdZ%Z\035d@\034""\017\330\376X\234\262\330\0345\311\275\017\326_\331\342\256\213U\305K\226_\235K:\333\237:\326\347\025\366\234Wlab\2576V\314\326\214Y\234\031\336\246\313hGR\213\250\216\315\352\202\345\374\253\236\337\267\346\356\337\263%\315\227\305\374\353\367\322\212b\375\021\233\032\306\277WX\377\326\267|\252\305f-\342m\370\271\212\217\342b6]\370\272~k\327\2560\321'\233=6_\314\363|\333n\311\372\343\326\262\231\365y\\\263\276\275\034\361\241\252\035\333\361-\236u\236\342\331\326\345\2723<_?o\263\333\375.\036\177\345\273;\177\227~\336\371\305\335\363\204<?\346\372<\225\347\355\256%\251e\376#'\331\245\344a\3161%\227\216/<\277\234\344\276K\177]\020_\340H\222-\277\343H\362-;+\225\312SY\261\\.|\013\212\333>\01398\216\265\307\224J\335c\252\311\213+\246\264\0029\t\370\202\211`xq\205\022\214\313n\330\327\027\353\342\362\017\277\246N\252\026\033\251\215\323\306\313\205RL\212\200wj\221b\001\343tb\321e8\245R\247S*\225\341\224!\365\242\215\014^\367_B\212\361B\203\206\323\307x\021\343\005*\306\213\030/\010|\205?}\374\247\370\243v\272\336\315\360Q>:\304\253|vE\325w\335\356\367\255\345\227\224p\330\2566\003\331\026\226\371\250vL;\245Y\211\255\016\006U\034\325w\276\232\364r\227\323y\265\370\355\326\"'\261\363\275\247\342r\351n\212\253\217\311\377*\322$/\220w\322}\376\327\256\036\267\267_|\353\317\272k\271\306%\330\313\324\331\376\250\365\253d\271\211O\345Y\225\305@\2171N7\313\225\354\257\3728\265\362\217n\314IY\361\023\024\326\312\307\372\370\247\222\262JYQ\255\274\222-\225~\314fY\232|_\027\210A\037\361\2321\325\317v\2572\313\253\250\362\0215\016A\\\277\2332\317\326\353Ty\365\270\212\367S\345\274\311\333\224\254T\254n\203-\316A\261\363\241V:UcW\367\263~M&\257\226\324\030[\330\277\251\202\t(\233:\236o\331:\277.\307\265f\337\361M\263\016v\235s5e\233\337\324\263r\326\3615\303\320\344\217\302\202\222\"AC\342g8\274Y\303\372Lf\307cI9A\371NTV'+'\254\317\344\255VT\276\337\361X\337\207\301d\352X\036\225b\352ttF\253\362BT\355t\236\235\330\035V\313\311\003\235~g\305\332\266\276\315\216\351\232tvXZXtvZtj""\350y\253\016UV\262\216Z,5\330\367\363\312\363\353\322\324\373\245Kh\276\311\213-\357\025k\356\341=\025\025\032\021\036Bx+,\233\345}\217\352\036\267@\327e]e\211\362x\272g}\377\250\314\3033\362d\315\341O\336.\277\245\205\251\347\3028\270\354\370\330\347\303\205\275\\vFda\352F\316q\265c)C\251Fe\302MD}]\034\034\1770\326\256\255\037_T\265\275\303\260\327\205\375,\344\037\302&\247\003\352\271\217&yk\347\324\342S\337\3423\374\351\337\244\323\201\317+Y\336O\315z7u\223\311C\251\306\356aP\031\273\036\004\301\267*\223\251\314\267\347\332+\256yU\312\263L;_Jgg\245\203\322e\213e^\205\002\244E\213\363\252\023\362\366+\252X\252\031~\231\367v\263\332\r\257\372\376M&\323\303\374\347\361\356Q]\266\357\256\235\363*\212]\324\230\333\237\315Mm\276n\276\242-Q\313_q;^Q\264\244\3468\274\234\353\022&\233\345\372\245\231g\374g\334\254\"\352\232\251lf\333]\372Q\263\255u\311\315\227,!/\267>\225\264]\213\270\256meu\367|gv\274f\0368RmTSIa\234\014Br_\r\033\204\272q[\265m\260}\266\023\265\010\251H\000\332 $Wm* \270\212*\030i\033h\037\t\345g=U\320\016\000 \245+h\002\324t&\000\311\265N\221Se\301):C\006\010\031\000\311\325\333\206\233\310\215E\255U\023\251\231R\216\024\007\225\000\202\373h\005\006\344\276\223t:\240\335\320\000\304h\225\246\202\006\200\023\001m\200G\356\206f\300#\027\273eh\241%'\247\241\010\360\310\211l+\0078\021\332C;0 ':q:\215\001\0006Z\206D\266\224\332i\0037\262\211l\014j9)\200\334\210\201\215\000C\261\024%%\245/Z\251G\032C\201N\224S\004DHD\033\235\"\355\204\006\002`\343\207H\350\203\r\034\201\0019\322i\202\306\242\025\360\020\022\321\370NS\0047\274GqpF\242\373\217\362\272\000\34220\223&\326\"7q\375\261\334,Mn\261\356\272w\256u\207\365\016$\202\240\345/\275\267\311\301r\264}s\026\347{\264\334n\020\310\202v\377X\354#\3362\233\374\226U,\315R\227\275\2260q\304\366\316J\220\367\234;\2578\203\343\005;P\266\2704\373h\311\232_\234\333\273{\266\240\336\265[p\334$\010\362mK\260\303T\032\223\254\017\304!\356\274\342\2129\227\201\030d\365|==\234_~A~A\016t\301|9\320x\307\313\272\337\275\027""\026+\301\0278\343\352\244\313v\220\005~{[K\232\331f\333sA\315\373\035Ap\004\3071\233\342\216\211\226\264\375\202 LT\211b\250q\030\262z\302\257'\274\260\260\347\202a\017+\014u7k\257]\337z\257\310+\257c\326\030W\260\262n\375n\275\260\372skM\201b\304\214\010\017(x\257\235w\313AP\004\355\016a\242\313\226\2703.l9\n8+A\335A\261[\0204\365\010\246| K\207\241\200( \230\222RYD\026P\314f\215\014\0104#\001\202#\220U\305\360\027\025\010\276*v\201}\333\237\014v\321bL\366\016\274^\334\022o\276%i\216 K\312\325\315\177\325\276\275\253ab\366\311\246\367\261\276\221\223\350\2769I\014\314\344w\010\253\231y-\302\342[\363\263^\2224\245\022LY\267L\347R\251\275\016d\275\314\367\365\\]\214O\276!fdb\306\321\216ck|\221)\301\304\214;\006\3661%V\tfw\023\356\361\332\353\330\221t\356\311\364\006;\022\223\227\230/Yl\356\322\352blE\257#\021\267\251_f\245\n4\301$\0206\0217\217)\225^b\262\311K\214\224\224\321\356\224\017e\005\205\005\303\211\212\212\212\227\342\333v_5\214\260.\212\343\375ZR\371\276vJ<D\tfF\232\\\247\256\254\270*dk\367\313\342Z\276\370\325\003\225(+1\003\225,\277\372\226r\177K\256\251\261\217\270\305\312\\V\266Bj\314>b\rA\322\274\243%C\227:^\321\014o\010\261fm\203\3228[\233o\231UW\252\347\027\252\030\343\177\213%yjk\254\305\027z\267\260x)'\001\255\240\231\010\270\221\200\010\rr5\250\246\001\356ft\272\210\325:\252\203Kz0B\333\007~h\025\225Q\2110\024\303)\201\023\0214\303\372`\324H\265.\315p\212x\344J\270\334\n\220Z\265\222\324\204\204\0100\025p':\234&\200\233\224$7\n\to1!B\255\333\213\003\234\003\014\267z\013p\303A9\345HA\243\240\0067\321\203\250\306\300\302(D\250\304\311:GF\265C\201\020)h\303\001\034\205[\216\255\245\366 %0\243\246\007\320\231\005\271V\220G\320\3146\301\305Yol)\217\233\021\2710\204\252\225x\340F\250\315\010\010\017\036\327s. \3358n\014l\273\266b\264\222\353\262\322i\"<\003\234\243n\250\2463N\0064D\264\230P\255!\013\002qCak\331<l\253\230G\215\207\007M\207\014\031\035\246\331\021\213u\344\334qoG\030v\334\334t\330\330t|\370\320A\323A\303!C\006\307\317\017\307\336\034Zs""\364\364p\210\"\007\n\024\03488\034$Hp\200\230\231\021\271\230\2318s\3436\211#A\034\250\203\323I\201K\201\203\343P\303\354\010J\271q\260\211Tx\241'hO0\202\202\366SS\324\347\221\343\000\301\361\341\003G\rG\215\250ol\014q\215\323.\234+\304\205&p&np>A\026F[\000\333L\315\2436\223s\216\014\030\022\321H\321P0\222\273\251\311@)l\340>\022\216\204@\004\032a\003\027\223\325L \340\274\217\033\006\233W+)\345DA=6\025\265S:J}\022\214\340,PHI\tr\243\233M\r\345\201\273\371Q.V\003!z\030\235*\242\232!Q\255k\321\270Q\220@h\006\375zw[\2515X\nC-48sh\006\204B\020\344Z6W\355\246\226BD%\234#\033bS`3IK\243\030'\203\r\334\027;A\204\340BR\260\234\"\265\006\351^pC\271\221n\334V\3026b\313!@\241UA\225\000\345\247\246\001R\304DR\312Gb\006d\316\021\017\224D\300\031rs\216\254X!\325L@X \243\311\240*'\007\3219\263`\250Ec\204\272\030\331\032\324r\322\037\264\242.\tl,\265\236.\320Q@`#\301\320\007\311\366Q\233\t}A\035A\032\036\340\272Q\320\276e\200\200\263@7\030\204F\250\203\321\002\264\205F\010\021\"\245%\007 .\340`\022\320W\020to'7\027\022\216\006e\241\021\024|(\204\221\037\311\205\200\334\023\006\"\212p\216P\234\021\364DD\364 D\352\245\320\264j\276\217\220s\303Hd\324\2729\025\310\234\010J\350xZ89\3160\326\242\031\270\271U\270\215\266\033\033\200\005\265\234\224\225Z\032\322\001N\013!\220^t\203\202\221\031\255UE#\"9\321\355\202\215\303\026\253\245\322\361u.\010\311\221n5\266\222md\263\021J;\240(N\017B\243\232\230\236\244\005P\006\007\316\017$TD\255\271\244\035\245\000\202\033\23544\220\0019\003\036%ChM?x5u\021\241\rFbDp\243\224\204\000\207 \365\300\341\374Z4Z\251\005\017\234(\275\200\216P\002\347\210\300\306\200\241Z\333P3\323\022\351\t\345\210\235\235\026R\002m\241\036h\212\010\215\211j\304\202P\202HA\343\355\3466rS\261\221lc\205\234\264\265\001\375\320\336\252}5\226\224\005=q\0028G\244Z\311\003\334\010\3159\027\304N\006\275FR\033\323\233t$\245\021\nk7\265\221\032M\352BoP\017\347\010Hn\204\212\247\013\r\204\300\207z\347\350L@`C54\272m\225\212\212\250\324\321\212\024\262\030v\006\331\310\0104\000 ""\000\203P@hp\\:\034O\311\233\252\003\304\346\214JC\233l\216%Q\020\302(\207\014\000\306\000\004`\000&\000\002\002\006\000\000ab\310+\1775\310\206\r\177\0042\240\204\032\205)\265z\300\377\231~\245v\337\201AM\252\251\235\303a}Bp9\302\035\343\355A\2201P\312*\212\037\355E\360\002\016\371\270 \261\"\020/\372r\223nT\214\365\0178\004\276\252\354\315q\370E\324pVN\245\344\227#}iM\242{\023\200\203\t\311\"R\036F4\016\373\036x\230\325\341\343.\267\335\277\220\207\031\233\2754\276\203\263\205\317\006\000\335H\262\242\343G\306\206H\301\201\252l\325\027%\241\201`\372)\250\211\204\342\330\341\355\365s\246j\353\262\2101@\025\366\315\234\366\"\203F\312b{\301D\017\357\031\216\224\243\225\206\306\227i\341\3033H\316\224\230\330z!\021\006j2k\361Ah\271\373\002\030\301 \3158rE\210l/\240\316\331\237+\004H\000\354\027\261\221y\201P\364P\230L\332\221\253|g\022\360.\221\271\3755\205\363o\t\375\362\r\315\202\036?\210;\323\265A..\t\007\221\035\245\227W\261l\007F\231\325\322J0\027\212\360g\223\021\016>\365\301\377\365\246gx\311\007\377\3037\014S\245(P\237jRv\225P\200\376\250\205\020\352\363\217\266\225\325\322Z\n\335\217\361U\302`\216\024y\264\306\037\220!\364\355\261.\230\026\254\231\261G$a~\260\277 \362\027\343\275C\277sz\275JB\261W\300\343\236\333G\321E\243\374\350\244\371wH8\032\230V\367\311\356'b\314A\\\205\370\365\325\014\027|\356\271.\303,\006\267S\313]\215H\016*wq\307b<yw\321\315\325:\023G\355\265\370\227\256\334(~\240\200\345\t<\207\207!\305\343;IU=\277\340\275\345\362p!\366\264`\014\200\330T\237>1\321\234.\326\3056\003Z\325\360i\217s\242\230\020\024\264\036B}\263\2000\022\3149l\260\244\246s\345\212\305\265\257\237\016\301\003\276hN@\0350\021W71|\343a^\213t\177T\3364\233\340S\320\343\323\r\033!b\017~\245!\363\006`(\327\234\022\252|\255\rd\310z\265\303\006\\\351\274\334\370\013\222j\201t\250@\242\212O\300\356b\334\010\340f\334\335\2472\005H\021\302\332\366\016Q\031\243\376o\327\362xE\013\373L\313h\335mO^\030\223\245\310\305\374GE\240\024Jk^\021\234<\013\325\254\251v;^\316\361\"\305\247|""\205\273\240\216Q\371\212U7\352\332`v\003\2166LD\"Q\344yDY\360\343\024\260~>\234\316/\316\230\004\332\367A\334u\321\253i\210\004\313U\312\t\334T\322\267\033a\320\261\364\226s\352r`\002\016}_\271\243)\300K\250\366\032\243\255`\006\"\303\330\006,DNb\315Y\357\307\230\247\004\020\031\226\301\025\333\304:\2055\201\025\247\010v*\366\250J\366\252\222\265\257\227O\215\224\215\025HJ\276\247A:z\253F\371\035\233\370\004\202Qz\227\002(\376dp\027\323\270\231\36718E[\210\021-N\234\220\375\204\220\026U\001\014c`\333Y\022j\360<d\304\345\265>*bT\303_'\271b>>\330\274-\314\224\235\206\216\213\255Wd\271\227\267\243\374\017E\276O\340\360\305\302\363\202 \030\035\333N*\235\247\225\206a\to-\213\212\277g\322\313J\375\346=\016d& ?\350\201\324\255/\001f*e\317Q\347K\321\034\342\322\2577\232W6T~\177\272\362P\275On\021cet\341/:\003\244,g\024\010\354\315\253\210\252`|\244Y\355sq0\343\273\244\030 \246\201\246\037\261\312\254y\024!E+A%l\327\234\214<\2738\252\307\n\276\304\323\220d\304\343\306{\357\335\"+\022JGP\253\241\003*f5\034\220/\377\273\037\331=\333A\242\261\n\351\323q\362\224!d\303.\262,\231\022\215\317\3500\314\275\323w\225`^\337\360]y\225\216\244\304\302\211\374\250\252[2\337\313\224\303<\353\205#\332\207\334\303\257\024-\3030\233\212\036\352\330I\3420KHf\305\000\302\240\325\261\325\272-\354u\2643\220\034\354\322\016\342\004\022\276\257h\225\302Q\246\355uW\364\200 \371`u\026\345OI\231\352*\\\0058\304\227=\201\234\316\032\032\261?3\301'\023L\341\030\314\255g>\306\213(!eW\367\213d\036]\"2\266rq\3456[\277^{\316Q>\226\177}R.\333\326\224\245c\265\224I\373\340T\315O\301\236\215\324\341\360\260\357\222\215U\307!\023#\247\205\216\335\263\201K\312\004T\241\306p\352zIG\257\373\177\020u\251K;_\260\266\024\315\251\347\321\243-\363\034\314X\302\003'|\367\360\\\016\372\301g\352lxJ\0168\031p-l\000\036\325\3057\023X\370\235\304\377\016Hh\370\373\0227<\n[>)*l \317\350kL~!\342\375\310!\374R\274\271r\317L\017?gve\262U\010?:\277\001c\245\231-p\005\322[W#\020\347\252\034\377=\350S\2041\212(X\202\3624\366\364j""\304\316\013M\213\205\221\367-\257\223\355\327\"\036\365\367\230#+\211\366\363\264\334\3658\340\240\n\344\341\034\354\004Zh\301\367\334\200\254v\347\017\022\207v:\253#$P\005}*TTTB\252x=KG\010\223\216\333\356\217`UH\036\312\227n\240\247\341c\341\201p\261\235\317\340s\235\027\017Q\252e\004\020\3149\300\017\202N\007\205\353H\367\224\332\024\335\035\316\310V\002\333\201\004\256\036\206\336\300\376\304\246\244\004P\200\225w\030\335\032^\tf\020\031\264 \315\006\023N\371\337\026NAz\016U\243\310r\341Y\262^FN k\273L\030G\002\242\235\217B\216VP\351\363\323\001\252\0265S\266@\373\217\034\003\3057}\354c\336.\365\355\tr\037#i\301F v\200\303>\316\377\226\267@\\\264\357\324\311\004Hf\2753\265\301C,\273\002%\032\326v\t\301\334\003:'\322\0204h,\035\371\021=\023\306\365\235\344\005\000\276\237\274\210\001\240pY\325\352\360\376z\211m\214)\2558\327\337x\346\014\225pr\363{\n\277G\3411\357o:\332\337\260\313Hv\320\031\304\350\266\337\207\235\027\017_g*\021\376\241\245!:\177\013\317\002\355T\367~M\321\3410\3765o\300!-@\177\3365nZ/+\005i\204\266\322\n\275M\363\177A]\017\026\177L\325f\274\"6\241\022\213\nB\215\221?\003\230\014\231\235\234iL\320<n{\007\373\021\3225QA\245\254\337\251\3328h+\266\177\027E\264\350\202\022%C\221\313\353\200\376S\rw\252\356\244Nu\232\034\237*\354|\233\211n\224`\212\374\016\261i\204\374A\370\225\027\264\216\241\033\337t%oO\210\\N4\033\224\276\036\244\364\260.C\244\023|i\225\227\005\244\363q{\312\264\020\\j\nx\307\270\333=\327\357\260\220$z+\370q\310r$\217\006\260\335\315\205>A\274\375X\nZ\030Iu.\240\225\023\n\271\304\303\325\\\263\322#\030\316\303\211\324\363;\020+\313\262\323d_dvR\240#\032\331\235\313\372(\030\031R\207Z\241\ni{\207P\272\005|\246W\323\235\355f\217\330(FeA\354OoT\317]`qt\2507\033A\233\250 \307\365\376T\350L\\\227I\020\262\364\332\000\254\242\377{\202\324\212\225\021=\003}\364\354\335t\034\333$\206y,\335\222\316,D\302\232\230,\024\017J\202\214\365v\221\262RK\005\345c\010)a\364qN\332\246\2219\327\344x\366\177*\254\222)\313\324sT\304\032\337\351\r\225EB""\365\276I\341\326*:\247\272\204X\245<g\307\233W\241\255m\2001\300\037\225(\347\362\001\327\272\312Q-\2409x\234\244\003\0012I\326\ndC\3659\361hH\374\214:Ng\232 \357;w\213\333\354`7\254\010'\025\033\325V\0227\307\364\341\373\326\360w\030z\322\237Z~,{{\333\2668q\2235\2509Z\302\207\nz\262=\016\261\250\336*\200\021\307\316\004\255J\364j~\206\t%s,L\036\\K\020\031\347\033\013)\373$\001k\252?\362;\263\320\241E\227\306\340V%\026\301\313\355'!\301f\360T\254\236\234O\333u\327~\340\034\020\2649\304k\014<K\207sz\217\315\275\016\274M\350\016\337\276O\313I\353\243D\"\273\307\305\007\330\247\376.x'\254\203\260\031\020~\301[cG[\206\211\225\366\030\260y\213\340A7\212\260\361!;\001.\263\234K\255\246i\261\325\262\\c!F\201\225\202\021\344\007/\356mir\320E\215\016\267M\200\224}\376U\021\323\247\361\267,R4E\212g\362\017\243\256\017\217o\266\257}\361\2243\202\377*\330q\036\331\234\303\302\341\030e8\353\0274\"\222\333\255\023zA\353\036V-P\\\n\034i\332&0\215\205j\317j\206\235d\330SXgO'\270\256T\255\306\023\3467\\\237A`\016\314.\342\037\257\357\247\2609m<\324\314\000\205W\030Q\035W\247[<\033\354\332n\203\344\343\250\330\016\231\321\030h\234\312yM\370\343\320!0A\263;\273\004\272Cf?&Y\303\014\376\005kD\202\0373\236\350&\2223\375\014\241U\355\264s\273\251\363\r\375\243\\\0235\222\230h\000J\250?z\312J\250`\005\335\2474\312\357C\375^\236tdp\034\034\322K\207\353\0268~\214sw\277:\325\221'\262\372\350]c0n\305\206\210\212M\274\231\227Wq\357\304\214\212\324\356\360r\231\322HI\033[\317\343K\317\233\013\366\204\353r\222\300y9\250\263\212^\272\310\361\2061.\341\363M\320\364\2354&\346L\364\366\210t\343}\257Z\233\271\306\2106\252\370;\261Y\202`Vg3*X[\036\271\233\362\302\210\246D&\013\373\003sF\306 \222,5\006\034\353\245\025{\r\277\007\331\254\274\022l>cG^\002h\273\210o,\324\033\023\203*\340\254Y\020\355E\"W\340a\230t\000X\356\373u\036~\2240\303xA\211\212\342T\276\033\236\007?\005\353|sC\201]\327#\371YS\274`\t\222~\\\264P\2517\321\346B\314e\027\352o\352\267\370\242w&\255Gn\r\251L\267=\375\246\n\342C[\200G:&""\025\034CTLZ\234\276LJ\006\325\371\212\\7#\203T\253\237/\2122E\271\316\270J$|%N\253\321[\366\355\033.\274E\357\320\3021\232\rO\366oONd%Y\276\213\236N\241\026\024CkO\221@\231M\210\373]\377C:\240\0070d\331\375\001\232\276DY{<\256\240X\254R\005d,f(\211\313\266\026ne\372\254\020Ie\310\272\207\300\313\312`\201\023f\226N%\272{nG(\344E\203\005%\2703\277F)\311\271%\034{\224\332\373-\365\241\324u\225\002`\013}\206\216\266\200t\361\002:`\0269\023\322[\216EY\025\025Ll\352!\367\022\321\tp\211\330\3128HV\243\003djM.\336m\023(\370>;(J\257\247\013p\267\267\377\327U\361\005Y\005\2412\205\236\021\233\361\007A\375\355\265\356\364\365\004\260\200\221\317y\230S?\010\020\352Rm\371\336\335`\337\307[!\002L\253\033{\026\207\256\212VwW'G\350`5\257\301Z\320\302tHQ\332\306\306\331\264\007)\326\016\316g\031:\006\344\367\031\204\242yf\263\245H\005\326\306\213!'\225\363T\023\300\220g\266\220\352C@b\031\000o\377e\016PR\275\336\376\307\245\1776_\026\263\367jn\2355\245\244@o\220*\245\321\236ehl\272Y\210\024\266T\266\345\r-\236@\252\250\337\010\241\340\224i\343\030q\355\350\032;R\356\213\316\311\177W\330\222C{\263y\316\227\360w\327}$\023\013\322\000\024\332\365'\033\221*C \371\320\024\023\215B~\265%O\235\201\203\311\034\031u\2047Pt\273\303\212\312W\016\255\260%\325\355T\024\017\220\024\313\\\341\267y\026]\261E\006\323\231\301\275\240u}\334\221m\230@Rx_?\346w\364\244?\307\212\024I\346\320\377x\373\202\"T\023\276\031T!\233\365\313\334\227\326$\226\031\3551\021B\"\323\235\217_\302P\310N\255\331\3571\200\336\222\000\021\240\001\270g&F\006\257\230a\235\0024#\033\361\255\001\313\254zD\331h\n\361\361\326\013B\347\007\212\313\342&\2010C\336\020\177\220\347\271Nd\202r\372\346Us\317\217\353\224L\001\221~}\2759\250atLVX\205\211Z4<\004\033\010n\244vUI'\"Q-I\365\016/\\\246\231\314\256\036\000\333\254\313^\335\264\330M&\250\2204?\270\217\232\031h\031\t\317\304\224Y\237`\312\367K4\357|m\030\323,O)\357?\030s\274l\221n\301sD\244\005\374\250`\244\004\3136DX\214Em\262Z\210\311\217\036\312\235\213 \226s\253\226\326""\206\251TX\033i\364\263\001\350\020T\023\234=o\223\232,\211#\001+\242\004\204\211\204\003\372\343\021\345\273g\002\277)uA\206\214G\340\222\357\262\244i\316\302l\002\214\226\301\330\225&\211k{\313h\224K\206\354\214[O\345|s\004\202\245a\n\303A\353L~\333x\237\267/\246+\203X\216v\322EOs\032\337,\322\005\215\347kn*\312&\344\235\311\244w\203:\001\340\377\365\311\264\265\270\006\271\331AA\240\327\312\035\034\024z\300B\001\317\021\343@T^\010g'H\302\004\306\367d\312Gg\223\3600?\356\306\271\271\230\312\327\313\336O}E\334\336H/\327\354\302\274\005\302e;\321 \377/M\3064M:J\371\340\2543A\245\221\242Oo\005\014\212'HDx\003I\022\305\005\260\201\344M\n<\225\031\245\331\"=\356\276X\264\031\013$]p\376IT`\344j\203N\010\277\225\003@JX\272\265\216\252!\215\302\013\323\203G\324\273}$\256\257\250\225TA\3328\327W\235\340uH\rVM^\334\020gM\222u4m\323\031\310\253\356B\215\322D\360,\202\327\250ah\345\215\002\330IV8\214\217T\234dw\333\264\220\220\006PA\3537\3552\265\322c\254p$y\327\314\206\216\207F\3557k\317\207@\035\245\326t\316;\n\327\340\235\325\366\267\310j\327;$\233\031c\021Y\\QY\350\275\247\372\202\365\323U\362\333\016\311p\362\214\301\216\364\341\305Td_\333u\r\314\243.M\305kw\320D+\2419\261\230=\277\024u\366\022\r#\276m\201\202\326bM!\tHI\006\277\354\236\377D\270>Ar\311\207\221\257\341L\031\030%\204\225Xa-\341=}\033\327-\356\"~&=\267\351m[P\001X\362\301'I\031\317\230p\361^+\"!E\351\263%\341\263E\035\334\261\327\342\005M$\234&\217\274\305F\342\361\352@\362\251\252?Q_\202\245\025nmo\270\233]\245;}1\257Z\033\314\262\374\225\304hk\020!\331\303;\264\350\352i2\024\026\210\n\2378\025\200\270\367\305x\373\340\371#\227\204\360S\331j\322\253\310\027I\3574\301\350\231eN\330\"1\330\247Q33\021(B\263\243\037#)\365\014G \327\202>\237V\007\301\177@\261\271\027\227\214o\230\000\366\031\241\212\331\367\001~x\252\004ojw\014\017=\006\336\3702\272,\360\016\2060\006\356\303\340\312C\256o*sdP\024\331\0074\264\203\331#\203`\311\305\244\256D|\032\346%\354\306Bi\334\270\031K\366[j\203\240z\201\251\375\241\341O""\314\0178\020+\265\270\237-G6\273,\025\256\223\200\237~F\020\313\025\245h\236\253\263|\360\260\207!`G\343\233\335\204\347Jv\010\0022\237\254\001\364I?\263\335\303\314\010\016\245\203a\230\t\304\305\336\021\000z\213=4\016\341\353\254V\217J\345r\274\245:\353A6\240\323\354h\264\230\221\334\311\251w\343\327\222\000\246\330u\361R]\275\244\315\325\341D\343\302Bn\325b/\324\332\327\271\302l\344Z\023\263\2025L\205O\300XM\3107\224\370\001\266\333'\2521\347\342%\004&\204\332\262\\YK\213d\370\021'x\366\362\363.t\373}:\332'\364\211\305#\355CBTh,|\207\002\310l\0228\316\002\317\301<}o\324\261\263\303\273$v\t\324\243W<\305\033\364\365\212\221\245\272\212\2273\233'*\205\025By\372;\244H\201\305\317\016\207\255\3626s\376_\3278'\376\223\316\314\301\005:C>\263$mN\363Uh\033\235\273\203\327?\007\371y3\006\273\232I\220\005_h\024\226$\275BC\222FMA\326\207\223w\"P\023\305:1\240\347\357\"\036\017\022\317\213\034<\215E.\036\037\306\0331\222n!P\t\034\303\331\346\340\270\243\177\210\263_@\3335zV\362\356\300\375\030\243\\4EPH\255P\244\266\263\2058\261F\341\244\005\n\227\033<\215\213\005\027b\363\376\250\022#m\260\004\032\234\257\026\204^!D\315\030\024(\221zY\3722\005\204\332\321\033R\262l3\243%\240\311\253\337\213\032\250\003\314\353\300z\002J@]ks\257h?\255\034\235!\010h\230\363\360s\252\307\376}(\240\315:\006\261\274\301\211G\232\265\337#\271\003\241W\227\304\331\005\302\371\347\257\366\010U_\357\036\220\302\365\0044[\306i\375\237E\265\371n\322>\233l\254\371\242\327\346LE\210\322\0321\317\326\336\2539|4\\j1\220\200\276\307B\005\312F\036\202\325,x\026\3217 \232;f\272\225\202\336d\236I)\310\255*Qdb\010\300} \350\274m7\026u\267\034*\302\346\370\305\017_\005\nPP\327 4[{\224\n\014\376<{NGn\314h\014\265*\333\22518\004\250Q\355m3C_\3778\334i\026\357\347\322\301\255\373P\340\016\215?\225& d\2231\272\342\352\266\253Q\024\204\025\314n\326M%\241\233G\337Z\341\014\266\322\232 \335\010R\\\244\353\226\341\337\200/\035PMB\310%\364D\351MgM^\261 \037&a\037\230t\004\364\031Pi\371\363+CyY\374\246M\371\310\250\337K""B8I\325j\240\276lbDrO\017\360o N\320}\275](2\244y\254\253+t\227\304\351W\007\372\376`f;{\244E\351\272]< \206\234\336\262~+\002J\355\220x\312\034\263\002kt\221V\3614w\260\370\230h\365T\375\014\307V\200z\356\334\353\2508`\350\326\244\277\311\010<\324\326Xu\203#\371\257\001\324v\246n\254[\333\341U\325\226R\250\257n,\344\363+\257\262Jy\340\202#\205\272\005\370\201\0249\030\255\346\276\023xzD\231a\363\307vV\361\300\0360\010_9F\005\376\022h\005T\205\333,\246\276\262T\277\314\261-\243\377\234N\354o\253\036\2559\252\345\377\273\005\\\245\303\337|\252\271\337 -S\204_\300\224\241W\320\001j%L\235 w\366\037d\345is\230`uA\354\254^\314\220\013,\177\246\245\274\267\214%\263 9\327\340h\247\332v\316,{\274\366\322J\211\205>\346\270nD\251\342\301\263\014a\303\363\354\\\260\020\355\201\000\315\311\210\204\345\262<#\221\246\257\n\322t\342\030w\240&\214\363)\326\320b\321\273\2325\020'\356\325b9\032\016^\304t\261'\256\336\034\304\271e\253\0360m\235\330\357>\"I\014:\370\327\300vm\255\373\327i4\200\000\262\265\340\317\002U\365\301\252U\006\245*\315<\231A:4\364\305~\327\224\310\036\245\335u\221 \227@Yr\027\253\366O\035\371=\314\314\211\377|2\212\377\216B$h\371\260\327V\252\347\254\250H\262\311Qk>\260\322\260Y\315\206\255\3666\221PW\234\336\213\357z\223,\177\247\316%5%`\2619k\\\374`\\\037:v,J,\217T\331!p\022[\375\021Llw\251\374\330\305W~z\023\300\343&\273:\3219\357\032\340($s\010\033`\324&\255:\355\306Ds\255\030\310Q\023\000\2329dc\3114r\363n!\020\373\017c}\241\021\211\220&\250`;\014\215C\034i\232?\266&\037T@\205q?8\302{/D\315A1\325J\365\244\321\341\262JJ\360\354\223\354\356\350\253K\322hq\325;\"\377o\350\330\342\342@l\203Q\032\027\026\336\216S\374\371xVD\272\304\350\036Q\215*{\274\232\373\035Hg9 \301\206\242H\212\035}\360|\005&L\304\327\033\343F\261\006\\{\220\274F6\344+\231\010\025\367\025\006\336$*&{L\246\234/\362\271\355\017'\273\317\035\003\002\212}\243\242yhhAf\2663\206|\017\037tb\201\014\"9\\\227\311x\211\261\016\351\350F\353\r\000\254\302\370>\223\224\325\363\376\003\267;\272\210\205""\233}Kj\333\241\r\235\347\036\313\200%\271<\337(\306\201i\200\025\003\306\350\375v\324\252\014\331_\374\365\240C\315\177\302|kd\334\330\205\000(\300T\000\035\200~\302\270HIIvs\357\366~\300%j\237\263 \036\255\357\343\350\273\004\254\367)\302\345\304\216\\\254\240\330*OK\036\306\177\254\350I*\202\240\366\260\217KLo\272EC[b\236\310H\257\270n\306!\017b\010g\334D\303\023q\035\233r\204Z\230}\2273r$\214Z\266%p\264\342\234\256\3427v\367\215\343\361b\264\027\306\001";
    PyObject *data = __Pyx_DecompressString(cstring, 9303, 3);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (9516 bytes) */
const char* const cstring = "BZh91AY&SY\335\373\"{\000\0023\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\300@@@@@@@@@@@@\000@\000`).;\275q\355\276\313\030\021\273\273\237;\271\212\t\007O:M\353y\357ckw\336\373\236\3738\332\235\343\267o7\337w\275\267Xt\235\264\302\337O^\363\031\215\267\223RQw\333\275\355\326\336\332\256\306\025\327\257'\225\266Z\232\264\025\254U\265-\220\246\261\026\233j\206\322i\"\202\237{\315\252H\002\032\032i\004BeOb2OD\311\351\242\247\263\t\246\210\311\215\030 MS\3651\243\t\224\360Q\344L\320\223i\351C\324\362\232yC\364Hl\240\222 \023A1\020\001M\246\221\222\203\324\365=M4\036Se\006F\324h\032ze\031\250\336\246\211\265\0004\000\001\240h\006\232hHP\217S\320\247\221\244\323F\230OG\244\rLF\200\r\242m#54\310\000\000\r\001\241\352\r\0004h\t5!\010\004\320\214SjaS\365O\325<5<\251\355S\312=?H\206\247\2244\3654d4d\003\324z'\224\001\240\323F\2322=L\203\324\006\322\212H\375\036\220SCO\321O\325\017P\320h\003@\000\320\000\003 \032\000\000\320\000\000\320\000\002D\202\001\t\201\rM2\032e<\204\312x)\344\324O)\355LiL\312zOSC'\251\223A\240h\320\320\320\000\032\r\017\250@\226n\353\341F\241\014\206%\357ZS*\002\302\354\t\314\024\330\264\212Q}f\013\262\025\202\030\325\276\303r\031\303\345sh\230\363\016$>\202B\367\251$\376D!:T@P\214T\210\202\311\026L\275z\226T\001VC\341*\205%\024%\nS\005V\373>\315\217\244\340'\336\373\225>O\302~\021\017\305?\347\262;*\002b\024\207\006\033\264\211~\321\355;\241e`\361|@3\000\241\"\374\003\357i\365~\037\255\351\373?-W\334o\354c\374Y\177\243}\336}\226\346\334\331\351\256\260\327]u\327]xm\262oN=\256\355\342\364\373\261\376\177[v\326aO<\363\312R\224\253\377@\260\227\372\r\206\221A\304I\264\233\004\030HvB\026L\222Gpjj\273\373\315\344v\327\314\"\313\336\362\314\275\315\177@\t\2311/\177\r\346\222\032e4\206\204\341\016A\004b\305\025dX\n\"*\305U\026\003\234) {\263I\264\200X\362'\376\276\276\315\234\013\033L\3773\334\001C\357P\007\340\275,\246K\242\220I\0021D\350\005\010\273\304~\003\2427\025\302\006\267;\343\261\037*/\300E9\263~\366\372\236+\335\0148a""\237\335\360\216\034\336\224\256\005\277\347\220\030\320\031\266y0r\033\223\302\014I\327\333\3710W\237\036'\332\350\360\333R\003\020\316\325\334\265H\230\322\334\031q\231\202\302\377\210\365\253!\214\377\201\221\302mz\177\350\327\360\331\215?)\206D\351K\343\340\263\031\333C+x\220J\223q\331\265\246\r\226\334\335\275]\037\301\034\371\355\002\2317\207\023H>\241\346G\013\304Fe\372\234\362\233K\223\267uH\264Y\323\007\3618\2317\201\252\217?\027\007\316\321\212.\343\226\233\335\233\0028o\203\005\307\300\215\233\370?\363\372\022\246\320?\014\037\231\215Lm\261\270#pOX\352\347\346\277:)\377\235\237\001\364\364<\302\301\023\327\235\237\225$\366P\212\211\001E_l4\017\232\"\347\003D'\010r^\005\356\232\377\206Od\335\231\257Y\240\031\273.)SAPY\347CV\354\210\241\021\023!|~\273MU\2316~\226\232\310\307\333\251l\307\267+\277\325g\240\252/s\221\313\335\223\222\031\234\0360$\325\371\320\224e7\243\023\342p8$f\214\214\221E#\214\224L\3313!\232|\370\225Y,\362\246F(19\217\261\237\023:\232\014\214\314\326\306\232i\362\034\307\307\226w\310\311\022\202\370\263\314\304\334\337\\j\030\034m\266\322Y\314\340\303\263\224\242)C\033\234NW\324\272\265\213q\262\262\345j\264becl\"R\351\242|\273\3303\247\332\373fVl\262\313\3453\227\310\022\333\273\227\246f\030r\333T\222\020\277\215\204$\tw\201'\266\300\204\370\206\020\240HO;\002\302v[\333-!\202\362\217Q\222\007\266\370\355P\002y\3205\t>\n*I\230\263\262\215e\250\n(\366U\375\"\251Q\241Fp\334heG\002\006 \306\003r\343\030Ld\375\323\0378\017\323\005\367|\177U\205[r\303*\331/\253\371\014L\324\367Z(u\210:AD\201\010Q]\367\322lC\022W\010r>\r=FL-\037\364\304\210\257\323k\322\356O\257\355\326\224\332>\007\\\372\326E0\244\277O\345is7\211S\341\201~\031\236n-\377\2374\267&&\276\177\227\211lbt\226\245\030m\255\326r\231X.b\212I\376\005Pn\310\224\021\025\024\020\247\203$'\376\206_+\231;\326t\007g7\002\230q\237r\014\374\334\214\371p6rm\344\332m:\003L\240Z\261\273\332\315&\313z\026\\\356\345\034\260\264\314y\376\317L\315\001\005\253#\342)\370@cz\302\356\34761T\207\313|@e""\010\004\225\365\272`,-N\305p\205\371\374x\000\020F\240\004h\002\026\327\0068\363\3641n\267%=h\311\244\2559\313\031\254\302\005]\360T\204\331Y\236\25584\034\365\353\244 \233}\367\261\215'\017H\360\260\337\033\014^\253\025\\n\207\220\260^]\271i\335\256\261/\277\217\324\317!\232\235\214/;\306\226NOi\021\206>-\325`\352\270\031\314\210\210\207\270\221y;q\262\365\t\"-\221\312\310\254\032\3156\336f\275\325\r\260qVj\355\316\035A\227\331\214\026\036^\230\223\301\356\364+\220\306,b4\036\362\244\025a',\210\nLN6\230)\360\241He8\336U\262#G8a\r\366]F\371p\304\317C7\201\236/\026\274^C\335@\261\013y#\233J0\300\345\023\301\260\261%\256}\207:'y\274\210\343\300\377?\201\242\362F\013uM\362\254\257c\306\354%\345\202\302\253X\314N\242\003m\345\006J\273>\241s\351\256ZS\264\341\016\314C\206\372\306\005\331\214\017\202\244\013\216\276\035\263\3577\237\261\337\315H\346E\316a\272\326\374\002\032V\005\330\213\221s\257z\310\205\212\023\034\223\267\031\342\304\35458\365G\272~\027N\314\303{\n\302\354\te\303\014\017\030e\201\022^\327\373<\371m\225\006\310n\\\270\322p\227+\034\264/\307\271\262*o\202\351\340\353\306\207j\237\2319\\e\265\360\206\255|_\275\226\033\364\233\361\227C'\311\237S\206YE\332\264\373\352c\261\234\0271\\,s0\327\231\211\222\221\2212\311\362\310\317\317\006\307\265\266\214\303\245\344\323N\034d\3773\t<\214\343\213\"\036rE\343\235\261G\270\342'%\301\305C\230\323\303\221\031\362\312\371t\022\220\334:\340lxp\224/\303r\206\347#\265\314GK\266T\332\3751\3376\317\262}7\347*\344:\261\216v\317\215RR\341\276p!a\314\367l$\314\303CY8\324\325\352\206\215\215L\316\025'r\245\365\304\361\231\236!\205\017,*I\035'\237$\346\347\217\010\223\304\273\0300\267\321j\324\251#\005Ji\261#V7\217\263s\222\306|\245`\0102LS$H}\034\211\322\360\"\314C\016\214^\205\306\244F,4\2063\225\241\020\244\267\266\211\265\371\263\"\016]_\204\356\371F\233\024\265\343\013\305\314\210\315S\237(b\245\020\024i\035v\221\n\024\214V\003\035\3323\316\371\313BH\335\252\323C\016\356\030f\372\230>9\026\217\201R\214\244\335\206\025""\224UK*\026))C\251\213\351\312\226ve\257f\031B\351\221\332\343\037\000\265K\235\352\274\240n\2665\266\3632\322\3678zm\333\332\356\201\340A\335\334\177\361|\033\301\217\204C\000Uk\n\274\274\226\243Y\215uZ\335\366\017o\016}\210+#\316h\201\002CY\250\221\000\303?e\300<:\354r\265\0359\375\ru\360\026\322\370\037V\247\325\253\311\023\325\374\271\200\311\036YM1\377\212\240.@\002\222H*pD\341\265\331\303\200~\235;'\2033E\005$\200OB\030#\246(\306\3600]\217\026N\3458\336\027N\327\245\225\241fPj\010\217\014\216#\311\273|\267\327?\302\231\214\214\213\201I\035\271\207\277\317\317\267\220\247\232q\327\336\343\300\235\203\016\233\022\221\205\013+\007vT\356\254Ix*\"\275\377\t-\250\206\333\033U\202\325i\361\310\3700K\304\\\0200\373\231\256WC\014\036:\203\317\033\237f\007A!\246\003R\n\020gL\217\251\353\016J\305\t\206n\035\276_\030vx\273\235L\374\267\366M\3221\376\315\310\256\333\276~v`\277O\224\006Y8\314\310\260\305\357,\"a\203m \225\n\320'\357K\373k7\200\360\221\347\214\232\301D$\253s\206\350\3219X6z'7H\235\263[\262<\232\374\246\334}\377n\375\376#\010\203\237\324\3363_\314-p\025{\007-z\247B\003\030:c\013\320\321\352\272?\177\023\207\241\323\022\005\344p\177\r\3346\320p\351c\214u\n\\9\314\222l\024\366;\023\241p\336h[at\263[8\246\233\244\311V\315d\265\006_\225\255\361\274\005\276\223w\004_\307E[7\006d\364\321\260\265\207\200&\205U$\361\2370\037\251\341\261\240\177\027\253\355y|\206\245\357\252\3666quU\267\356\247\316Afl\214\310\350\361\255\332\204\014\031\351\020\241\343\325\300%\033v\214\\1\210\222\013\000N\223\360\201\r\272l\366i\001\002\030\213\344h\367dq8\266<\007\211\311*\017\010\276fJ\207\234\225#\203YQp4f\035\311.\321\313m=<`\027\241\277Y\331\322;\325\253\0145N\304I\017\244O]T\222\214\004\304\202B\212\256Hto\036\202\035\374i\364rs\360\323\020\342\210\214\276$\222\367J\316\366\022\225h\347A\365(\014\206zw*\031M\246'\353\016;\303\260%\006\332\226=\235\2359\022 \277\235~\007\\\200\030\025\224&\200\313\367\352\264@\354\034\354F\n\023\232j\331\233\234\234\221\212\250g+\341\327/v\230c;""\215\352\316\301\246./\203\310\025\204\222\310C\372u\321\216\025\0062\013\260>\224\276\213\211\010<*\365\343\263\277+Gr\317\236\343\230;h\324\027\344\324\330!>\266\250\205r\221\2611\244\244V\242\r\026\022\253f\020\273\030\345\272y\250\3518\314\"w\252Y\267\274(\321f\243\324\331\327\215d\370\270\251\225R\315\020\235\032>\246\035IU\\;\270N\256*\276$#x\302\003\216\343\216\326\005\370\351R\253\017\266\"\327\016\244\210\004\217\357\356rq\253M\336S\347\2477c\232\333G\337\232\231\035\222\220\366\"T='Y\003$\310\310rn\254\264\221-z\234\247\206\024(\024\363\355\350\202>n\353,&\330\200#\227\002\354\315\207E\r\255F#\253\255\2263\240w\216\316\201\014!7\323l_6AI2$q\266gk\330J\262\rn\202\226B\0139\033;\301\370\245\341\346\002\\\255\022\210Q\375g\321e\006\3721\305\361\032\272U(\022\241\263\215\220\006\377\007\361\271Q\375\323\252\t3\026)5\274aO\243\036#~\367\343\211\360\207\016\305\267\rG3!\006Fx\\\ry\231~\327\201E\212\304\304\307\363\374\336P\364b\272\014\205\037\177\031\364\372\304\323f\226b3\315z4\360X\243=\025\307\031r\r\375\357\re\315\006m\r=Yg\304\237\243\360\254\355\034\336\345aL\212\021c\211\222\343\343\373\336\213\230\231.\355\021\331\317\211\210q\303C\235\203|6\202\332=\335\032vvV0\244\201\"l\346\213\320n\322S\345\\\305\355\212%B\225\257^\323@]\004\266\260_\035\267o\252i\226\372\353\005X\361\302\022\270\340L;\234\223]\335\336\272\375\3509>\264eL\314\314\243\307\256VOX\002p\301\277\301\003:\237\277oV,\346j\204#\275\220\234\342pp\223$\314\022\3074[\020\006\014dW3)\"\030J\275s\266PP0$x\3223\024\\\361Q\225&\0272\177,\010\206\251C\357\236\266\023g\262\247\250h\r=\003K\205p\367\215k@\032\004\252!\3643\255\276x\r\323\3446\330a\201\031\217\270\271\216P\332\312\227\0008\252)k\250\241X\"\251\240&\205\265I\250B\023\330\322\333\\\305\205HhK\226?\230\325_;3\225.]\030\312\242\266#[!$\351:\200H\243\025dF\n\300\031\221\257\223]\226i\247\365|\007\253\254\327\364UZD\240\346\325-'\n8\035\356@ \213\331Q\031\274:m\033\2774N\216\244Jy\257\022\243\331\355v\275\353x\205\000bg\211h\023\311\242""\013&\242G!Q\0261\266I\\eT3\014\2400\030\014\005\001u\266\371\277\223\316\003K\361t\343\243%\305$\020\316Q\3473\206z}\377s\362\355\014|O\254\026\020\224M\323R^L\014\310\307'\213\267\002\303\3337\227\227\230X=\033\r\225\276z:\250\216P\005\372\017\337\261\001\307T\351\203U\250j\262\325\276\224\374\225uQ\206L\235\363\251\347\376r}~\350>D\311\374uK\3740\025{=\322\376\247\276\344\031\257\265\276\34204dS\301\327\333\366\2478\233\006\030/$\273\337/\000/\274\026\331J\235\220S\354x\317\261\347\025\350\362g\361\211\341\327\022e\350\236\177\342\355z:Q\221J\213\200\210\025L\225\367\341\037\224\214+\027\270\030%f\354\3367+\233/\n\307\245\344\t\226\304\322\335\337\271\247\313\231\301\337F~\207\306p\360\203\003\243\242\036Y\341\261\216Ei\023 \275@'\005\007\214O\"_\225mR\360\311t5*\226\031\177\224\271nnv\230\344\340\243<FU\005\003\352n\314r\322\250x\217\031\316\312\204s\266 \272D\300I\263Re\027\016\322%\346PE\275\rW\302\202\0346\323C?\2046\214f!\211\2749L\277\314\027\035\370Z\264\026\235\270a\025N\336]]\367/d\2632\371\220/\232\363{\037B\334:*S\233n_\216\344\033\367\317\217\323\025\341\210\006\344\310]{A\004\217\336G\320U\374\306\300Z&/+\201\031\245\036?\276FyP\241\255\n\202$\02045*\367\023\264\364?\037M[\354\237\306{\204\317\314dV\013k\370P>\300\222\310\027\340\204\366*\243\252\"r\036t\253Bkw\027u\3739\010\217\2755\363\311\004\222\205\250=\311\310;d\351G\333c\353\375OL\200mj}&\203SH@\341\343\352\336\337\005o\006\256\021\214*\236<\247\352\307\032~\007\365F\366\221\225\241\013_~\230\3128\341\014B\304U\316\210\235\227\232\237\313X\3148\"\324$+\337\027s\030\"FSfM\366z\353\3023\326/\026\2540e(\005\210vB\023=\233V\021\006\321\024 \272k\301L4ic&\263\217\nGhw\2064\222\315\360H\215N\370\266\246w'\301\345\315m\314p\305K.\223\331EG1\360*\2122#\324\344\3065\"\265\274\265\"\355\032\3462&\230\353'\263z\333\203\312\303\034\207n\227w\2046\334\342sT\0210\233e[\026\323\210nT\240\310q\225N\311\205\326\346\212\310\2104\351\037^\356\013M\326t\251\3125\356H\344tg+4\264m\030\376\224@\3016\277\032b\206""\"\230@~+\350\271\273J\222_C\304\337\346\220\250\317o\302\213X\263&\264\344J@:\273\215d$sOC\302 \2636\222zf\3037q\010\365\241[\n\304d\243D[\274>\264\321\024\025al\350\232\316WS\033\377n\036\354\214\204\350\316\236U\"A\320\256G\352\005P\264\243\317\021RF\211\020\224x\345\"F\021-O\265\221\353\311We\312\006!{FRH\377Pp\334\343@.7l\276/]\"\3209\231\321\252\200(2f\0038\"\202\212\022\204\026\322Z\321\024b\305\250wr<\263\266hX\316\222\223\273\226\303\026\361\340\254v\273\367\331\013m\223q\213l-\022,DQ\222%`\327\334\277\246&P\301\240i\232\211k\005\367\232\362\0030\300\256N;\235\256C\006\245d\r\313\215F\250(r\t\211\256\345\212B\200\3156\206\266\272\326B0\rX[ \230d\210@\210\331.h\016\230\207\tP\202\244 \236\326\2614\225\232$(\243\033\0036\264\211\340\031g\025\250\326?\251\361z\243\3261{\377\nsT\017\231\304L\231\210 \312\363\205\275*\272\332^n>\001\336\201\304[~\013\357\305\001\014\324\320\332\232\036\033~\210,\363\325\007J\030_q@Y\230/\351}\247\317\275\031\311.\334VBG\253\332\232<P\224\326&FLJ\254\0244t\277\016\273\013<\276|\301=\233H\002\342\201\t-\022\352B8\"E\030T\023\007\014pu\274\021\242\322\323\036\234\372\223\250\001\014$M\224\035*\243\332\032BD,\314\235\"\352\210\343\2131\332\255x\211c\026\300ma&\206\301\244\263G#*B\\)M\237v\246\303\330k &\224k\277\207\030\026`\034k\030GX\267\272\336\264vY\243F\035\2226\224<\236\344\274\36150HZ0d0\210\210e<t\327%h*\226\230\2710N(O\002\025H#\206\203@aci*:\222\363\n;\202\355\n\323/s\235\241\\\255\035\255\036\363C\n\302\t1\003C\016\303A\253\350\331\347\263\036;\255.d\311\024Q|\344\357\262,\t\310\340V\255\203.\211&\303dj\025\025\2148o\367\257\250\257\016\225\322\217\031\343\352\363Zm\325\027\207\n,\356\211I\276\262\030Z\034\244h\315\207\026\026\230\250V0Qt\013\250\242\227\371\247~\tk\213\010\212CQ\321\226s^\025\350\223\027&\2011\375\321\220\314\357,\"\025\"Fc\341\364F\245\360\366\263\270;;v`\216\277\331ti\232<Yl\206\262l\372\373a\303i\224\rJ\243^\276\323\334\364HG\255\311\3621\331.\2040\371\206\314\271\332\224e\360\316\325g\314\233\0171C""\177\232JCzB\241\200O\246\226!\262\303n\271\022\032f\026\310\2201\226\334\265\300[\311\033\303\226\347\020\332tA\305l\264x\202z83g\332\253\345\243\tO0\343\020paG\266/w\300\220\247\342x\370\257\037\037\023\332\362m\325\251q\273\2101\002\034#\302\242\204L:\0057\212C\251i%\305\301\332\301\337R\203\"\3008\260\335\013\202\221k\204)CPU\204)\027\007\25327\211\013p\005\361t5*#\211\037:\210z\275\005;9(81\014\313y2(\253r\230\324x\311`ct\263\201\213\216\304a\005\032C'(\332gE\242\270\363\255\0377|\334\214\220\363gfR\022\235\273L\003l\013\203iiZ\022\315n\331\273`>n\006\253\006\275%\212V#\230\276\003\305\314Q\331\020/\2230<,i'X\227\233\216\302w\014u[\031\025\201%q\230v[\002\340\207\260\036\002\254+3C\232\333\353=\307\374[\"\354\211\267:lT\204\332\005\345\341r\257\245\256\326O\n5eu\327[\250\325\016\252\371\211\236\316\021+8)\342Ne\032\016Nj\336B\233\006L\201\205\026/\t\336\266\312\210\261\367\203:\361\224\226\006%\34220s\334N\235\321]\326L:\357^\003J,84*f6\345\314\261\235`\340%\311v\327\233B\242\2144\233F%\232\005R_D\030J\371\322\2617\002\243\250\007\276\311\017\373a\303I\304\025p\203\263\272\373\tn\017\331IW\231Z\001\325\307\227)\351\243\034\206\205x\006\370\214\022\021\346my\346r\336\205G\210a\350k\255cD\336\210S=\\\356\027\021\204\005\010\240\241\237\263\333\367\267\002\352\267G^\315\231rc \022|\264AaC\342\2553\\7x\3102\334w\346\243^`\252b`\033\033\013A\032\260\251\000.\202\030\205\227\222TWpk]{]D\215FR(D`'k\301\224\260\253\025a\022\t\013Y\226\310\2706-\276N\031\320\245\022\241\336\334(\216\017<0\252<\241\311\321V\353\355\325\306\013z\230\341\224SB\274\036\017\266\020\035\324!jB\214\210\201\205\362\230\206$\316\n\023\300\275\320\t\206\t\202\306p\357\202\222 \3632VL\304\317K.\271H\033\211\272\345|\250J\260r\213\215[\255B/\021\335\210\353\"\233\250\214\244\031\220v\220yY\013>\371\353:\021\035l\264\202\210C\224\345\327[\270N\254\264\2067\203\251\205\252\332Z\236Qe\035\004\214\364\031\206\024+L\332\021\2771p\r\344\013.\256\252{6\322Va\257N(\375\247!0P\305\003\034\341\033\215\362`m""\361x\275\221\253\311\255\300\025B\312`\214F,\213\373l\205%\206\230U\222\304=\224\235\211_1\034+\241\006\320\222\300\266\210\202\210\003\264\241*\311\r4\000x\\4%)@\210\030\024\006\205J\262\247`\204u\025(\246PW\0058a\211\r\275\374\315@c~?G>\203\037\240!\365\331'\335b\211e\340\352g\0377\340\366\026\2231\203\026\223\314?\003\347\007\310\316\336]\353m\026\375\304h\017\031\215|yKC\247>=\363\316e\352\336\007\244\310,\223\235\236 H \3240\226y\325\251\264-b1\021\355vY5FZSC\r\225[Y*^[OF\241\311)\262Y\006)Ra\033\262\216\237\207O:\026]\000\263C\312\202/\213+\351\325\030\2746zgG\031\314Ab\304E\030(\213\025y\352\240  D\017\205\2204\226\200$H\177\003\030\213\025`\2120\024\213\"\376o\277E\316Hz]\357cP\3766\014\213\227\3704\260116 \211@\226\023 c\021\220j\345\250\026\235?L%ij\272\001\214\225\304\"m.@`\255X\305\026\216m5\177\222\204\256\263\327\267\326\372=[k\263{\371\271\303\217\253\325+9\355\202\020{\273\270B\257\267[\313\005\324\035xcp\024\027XY\356\320\274\247\n\313\2072W9\3418\227\315\355s\025-\303B\017^\225\231\327\003\245\242\301=\024\0240\205H\"\220\004\010\213\024!\260\337\022f\034\247\007\203\010\032N\345M\266\330\212\007\231,\341\363\260\233\005\267\214\201\014]A\261B%\023F\322\256*\002|$ZF\013.\260\231\331\204\022\231\252B\376\242U\232\246B\325\232\033\241\345\351\342\315\201\241\010\014\006d\304s1\010\207\014\026E\002\343\r\036\342\317\241\244\202\234\3364\212k\200}+U\321s\350\256\335\315\252\020\026*l\314\250\221\260\321\2303\3506\022\220\023\227rs\232e\210\016\027\001\036\235\010Y\332\021\223\013\335\2424,\215'\363\273\327c\031$\006\343&d\300\3022sJ\351n\254\227G:J,l\2568\316\233\200@\357(\033\333\024\262\351IA5j\025\241\002-\036i\314\305\370fp\010\230\273\301\344;\307\301\334\356w}o\277\337\333$ldc\324\036$\273|f\353]\320G#\266ZO\205j\344\336\254\032P\206\017\266\031\201\244g<\004\254\233W\251\\\006[0\216\234\377aUok\243U\310\323\036i}\336\351\267\302>\001\020g7\200+\325\332Q\210\227\034\010L\0202\"b\301\343\000\346\014\240\341\325\275\033\221\244fY\255\022/\351R""\235\347>j\316\2320\275\365\265\003'S5\221\270U\321XX\311\316\323\005\211D\304\232k\276\212\225\212\332\256B\216\355\243\354\230\010&\352~\253\276t\231W\361\236QWrP(\024\363\301\230\024\215\000\276\306\340%0S\263\250\302\325*\3123\244\234\333gu\317\250\234\241\315\264\243\005\347\034\374Y\330\321\352N\352\"g\023\351v\253\320\323,_\177N4a\274^\212\337B'Q\013`F!\244\364]\242\274\327>\336\253\337\244\230\016vj\216\235\213\251f\340\264\030\215\210\201\233\334\326\r\220\007g\2227\234:\376\232D,\264\030 :\220X\270a\224\235 \213\254\220\275\266S\022\232v`(P\231\017\307\350\2708\206b_\032\303\016Er\305\204\234J+$C\333\247\273I\"R\362Kk\026\n\343\357\0357\374\276\373u\320\013$\241\335\213\241\201\206\357\362\217%)#$l\244\216\227\310p\227\3623\227\211D\314\265\210\301\332Z\0056c\0100\246\223\342\367\376^\007:\244\212\346l\034\343@12\016\332\3575\3327\230\t\026\314\270\242\221\000C\211\241\360\270W\363t\225e\344\200\260\267C\201\033{\230\324\032M\016\363H\352i\271rY\212\022\377\217hX\026\327\313'\350\340.c%\226I@0\262(\014\225\017\330G\230b\024JiE\331Y:\026\276\\\"\200\314^\250\226k\233QV\020a\253\217}\230\033\207\212N`\2743.T\222Ky\"\330\265\211\256I0\014\263jBS@-\014\253\237WY\363=,\203\002I\246\210XF\000\262D\030\2100H\261\202@\342\361\023D\016X\346\021\222\022\321\223}\021\214\355\236\216\002\344\353\352\254\341\241\262\200\005$\332\210\005!R\006g!\365\322Yw\210!\024 \002\010V\337d\310\235r3\337\361c\302\250\023i\025xZA\331\267\3225\337~\362\032\371\252\2069\245B\221\006\"\232\242PKJA\245\010;\336\010\014\202d\341$\321\0108\312\004\003L\375}\037\024P\365lu\371\215\241\203\243\233\2777\017-5G'\351\3216\263\224IH\"\264\3613\250X\212\r\207\301)4Z\221\315\341\272\223\033\235\262\r\345\222h\232\246\245\263\010&\317^R\005&\243\311\265\227\033s\244D\004\261D\0361\\%\312\322\r\214E\215\200\312\331\351K\304k\25654\030<\201:(Z\232K\330Y\010\340\265\0131\201`0\301\214\202\221\214\0062\220m\317&\3447\263\202ze'*\004|\254*Z\216#\353\313[W\265\336\336-p\026\345\243\030\305OA\243Ii,\204;""\332u\345\332\236\367Y:\254:\341\304\213\342\252\025b\007\234L<\010`\222\212\330\323\275\006\207b%\n\363\264%\273\217\311Z\020\320\235b\244\031d\220Xdg\r\366\310\3364\255\3745\0133]\342\250\216\313\311\357\006F\244F\201\207\317\374\024w\020\341\277P*\345\241\000C\245\307\317\2112C\241\225W\034\002\013\246\315hpt6\360\026\267\022\230)\303:\n\"\017@a\222\343_j\240y\227--I\\\322/\221\303\220\244eH7\017\277i\202\250v\014\323\026R\316\333\271A[\244q\274\341P\013\021A\024\311Pdl\302\014\023+\211a\241j\311wG\324\346\254\315\211\261\361\274\273\362\203\225\366\357\3470l\266\353S\251\325,.\370vZON\324\263ak\214L\327<pg\340Y\242s\246\335\333S&\020\0202\317\250\277;\355\257\323\367M/a\250h~\255\002R\nw8\346%=$$\222\266C\217\223\331\361\375oa\360\240\220\007\352\205\375\373\227\\9U\252\217\212\372a\252R\361\032\242\264j\302\016\232dU\370\366wOEM\313\311\325V\017 \302\230\"\212\"\213\013T\241\021\021\221J\252\210\201)\246\030\030\035\253\365\313\005`\316\320%F$\022\340D2\020\274\274\251z\023\022 '\203\264\241\307@\023\252F\322\215\014n\310\211\014`t\337v\0377\033\255\311\005\023\2152\231+*\224\302\311\021V?\221\254\367O\037\013\032\341\273\227K\353\342X\330\314\216c\334\345\365\243\025\024\365\206T_9S\236A\360rn\205\005\376y\263\260aLe\203\373\024\320\252?\"&\023V\201hE\2104\330\337\203\255/\252&\311V\363\036P\335,\030\020\231\020\020\355Zu\203&\0340\251\244\022A\214\343H\200\360Q\030\\i@\274\233@\013\212\351\r\270\346y\0052\207c\006\324\323\341K\3170\224\332\210q\036\241f\030\215W\376\267\252\312\330\203\274uw\272\373\374<\267\027\033cH\347\332g\037D\321F\366N\272\202\342\245t\025}\252L\223c^?<K8\244\300\367D\035\224bHj\243\324\261G\n\241\245-I\231B\313\242&\356\345\313\334d(T\315\335\263\005\261\246\302\213^;\231iV\033\035z\257\\w\356\305B\331\034PLT\201\253\202\327\177}K;k\026)\232\361\005\217\246\260R#\255\255\014\262d+\365\244D\255\205\242P\035\204Z%\032\005*\244C+\336\032N\260\331\203\310\3065\2243\340\351\266\2659k\235\033\327wg4~-#\031\372\347\223\322\257=r\356\014\224""\030eY\nxC:\313'\210\370|\3347\356\260\334\010\275\010\352bZ\224\357\300\230\260Vw\3115\014\206\274\314\201\374\225\241{\337y\332\264+\004\014'\027\337N\304\337\031;z\272\370\227\326m\303\267\233\332\2772t\232DB\255\364\332\n\211\273pJp\352\306\336\372e\3359\256\203\230a\037Gq#\3151\317\034QC=4\014\332\006\247Z\004\210\266\n\314\n\311\242Gv\031k9]f\256\262Eb\2033\361\031\331?k\20327jiU\343\274\353,\322\346\261\315'1B\365\\\370\320\365\317Gb:)\332t\367\017B<>\331~\355\347\217\216\026\221\337\025\"9\224\037\031\272)\355\351\266\322\035\254\004F\365\250?\314\202\220D\230\345\307\034s\271:\207{\341BO\002\310y\025/\010\215'h\274\013\204S\rc\006%\213\3133\026\225\032\244U\256\366e\206w%,\261\212W\201u\001\230\354\264\023u\3227\234\346B\004\031\253\\\330{\315A\205\027\312|\0176\0369c\215\313\3353\275\"\330Q)\006#84\032\017#'<6\310/\232e`\205\242\213-\036\231\276q\n\225\336)4+\217\240\277=\276\320Y\363\343\005\217\272\344\336&T\327\242]\312\206\262\006\267j\013\232QYe\244t\274\222\034\372bM\274s\222\30222k\323jj\235N\320e\220\244\215\250\327\333\250\031\242\271\024Y\207h\027\211\342\257)\307S\264\325\225Y\242BdU*,\356O\013$_\210\372\325\263\306\372\t\243\200\335\n8F\243\235\245\005t\313\014\213\254\214\333\262\021\261\017[/\033O\036\023j\253RI.V\200=\306\222#\027\232\2409\314\320\203\213\013\207$ny\361\230\267\016\207\350\274S\007 {\350\254\255\r\220\316\026\001\256\311Ig \204\331\314\241A=:\251L\266\260Q\314\217\337\004\371(\264!\007k\247\227\263\336f}\017Z\347\010\315(0\251\305\305+P\301\254\263\265\221%\305#\210\314#\246\364\250\240\233\247\322\352\001\325a\330\003&NE\\\221\320\341\025#\2478\221\232\205\316wj\307\253tl\311\"\227gkz\204\02225\360@\212\006\374Y\301x\265]dG`\217B:\305\326\272\327\273\3513\373\336\322\336\206\263\353<H8\020Pr\023\373_\024\226\363x\026\014CI%\005\233\002A\325\340\274\302}\002\343\346\273\023\032r\227&\232cf\210\010\031\035\210\344G3Ft5\00050\007\267\320ev\026)-\227\241\247\334\341\372\"^\335cC.\247\240\300\260h\332{{d#\031\244}p\211X\266\363""\300\\\367 \327[\333\343d\014T\264$q(\204L\017{\271\332\3706j\361\366x\007\203\0308q\034\205sK*\236\316.\234\335=6\226\273\215\354]Nw\307\221\213\341\354}-V\331R\320`\027\244\275\305#\230A<\033\332\303\246E\225<\235\215\213\332\254\311Q\217\211\3567x;\027\254\023\326{f\371\240\230F\202L\344h\217\230C\230N#\270\274R\n'1\243S\022\010b\337\230\345E\274N\237#>$L>\"14a\330\274!\002g0\325r(\214\353M\247L(\355\024\220\025\027\311+z\005\"R\342\262-\026\200\336\210\002Y.\253\303)\213\003\004\264\235\337\251\345\355n\0176}\204\2149K\327\025Pv\332\017\273|t<>\177\346T\373P\233\242\210\361\031x\352\t\204{i(\214}\276\347\257\220P\210\210\036@\021D9'K\001\271{\237\353\355\351a\332\031\017[\306\016\246c\2612:\336\376\271b\0135Rn8\335\377\r\305\007\361\016C\227,\356Z\230?\"r2\231\025b\010\243\263\353O\361\267\310Z\217\253\177\267\367\312\177`\257\236$\374\036\327o\267c\367\243>\375U1o\213\330\023\247\017\307\365\275\313\321\334)Dcg\322\027\330r0\365C\303Z\305\346W1\3405\024|5~.\347\313U\017\r\254\336\340/r\202-Itw\377,\344\005oR\014\340\200LC>\313\274\236Mqza\320\202\355\313\310\343\347r\260\235\205\362\010\200/\350\025\006fI\352vUg\300D$5_\007Ns2\240\313^\247e\250\177H\210_\321Dt9/\032\275^\316\300\\\210\374\240r\256\265\003\337]\337\217\266d\t\022e3\303\002T\017=\177\200\320g\230h\205\016\010\361\262\260+\270\330\205\316!\366li@\272\233\343\333`\333\264a\264\033n\007\207\275\253\021\314sa\262,\003\355+`\377\277U\3157\007\025$\265\302\335\256\243\356Vu\207\2206Hs\036\307\357n\245\363\317\037\353\276\266\2370ks\240\345\016\276\315Lk\332\002\t\340C\310(\273\274\376\237\340\353\363\271\241\371\320\265\317@\222\317\3207\315\344\t\257$ks\371\250yV\326M2\256j\260Y\266u-\225\326\r\300\n\030~\201\243\366?\250>]v\261\311\014+s\365?\347a@\212S\272\305@\302\247S\313\223\245b\302\236Kz\255\177\007\222\320\265Z\335\261\377 \271\003\376\372\366l\262\344\205\341\267\005\260i\360\373\356Zm\277B\253\\\326hz,\363Y\322\313\322y\322\202\313-C\024\301\307\315\371\\\344\372\334\271\313r\340\260\274V""\227\203\372hp\370\367\276\355\035\r\372\366\036\032_\0277\271\277\342c3\3302\363'\345\346\355\217\024\034\365\233\213\217\223\317\371\257\320\262\256\367\330\264\323\030\356QA\216#c\363\355\346\273\343K\233\277\324K7v\332\320rW\360\253\221>\222\323\021\333\341\371Q\247\337\243\313R\243;\332\275\312\201c\216\376E\255;\372\264~Dq\371\355\351Tj\324\0273:\031I-\237\257\025N\0328\277(\364\261\361x<\330\377qfv7\233\203\307\362\305\374E\013\177\262aO\371\246\027\206\257,\363\245\371\002}\3256\364p\357\366\264.\327\227\000\033Y\307\014U\237\311\2550o\025\324\325\374\031\265\235*\300;\260\340\263\261\256\025o`\351\017\340\365\201\322)\365\205\320\272\365\230\370\032\367\2221a\353\311\341\331M\270\336q\305\233\305\301\350\370\344\355\017\237\363\253\211.\376w~\371g\262\203\036\342\031\256Yq\2625\314\351]eRD\025\357\n\234\035\366\367BB\321\"\302n\004\320$\252\262H\330\313\265\204\265\032kL\024\254\212\231{p\r\224\223t;\247\272\323Ss\202z\252H\253]S D\033J\244!\351\352\351tU\204)\264\3145HB\305Y\236\300\204\254L\024LQ\247\302E\333\352\262.o^%\255\205m5v\316\034\252\212\252\277\237U\330\326\274\366\316\000\354\276\354Qr\252\257\302\326\265\267n\323J\310\266\"\337\005\370N,(``\177\342\356H\247\n\022\033\277dO`";
    PyObject *data = __Pyx_DecompressString(cstring, 9516, 2);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (9532 bytes) */
const char* const cstring = "x\332\355|\313{\023\307\266/\006\223\r\216I0\030\310k\337\224E\210$l\t\313/\034\003\006\363JH\200\360\312N\366&\244i\265\332v\343V\267\334\335\262\255\260\331'C\0175\324PC\r=\364\320\303\0145\364\220?\201?\341\374\326\252\352V\353a\003\347\334{\316\371\356w\014V\267\252W\255Z\257Zk\325\252j\017\010\374\334p\213%\3353\305s\375\271\320\235\202x\236\177.R\266\345\007\276p\027\205\037x\226\263\344\247/\t\317\014\312\236#t\361\374\246\265\270hz\3173~P\261MQ0\355@\317\016\014\020\256\037K\201\345:\272-V\314\312\272\353\025\0040\353E30=_<\267-\307|QvV\3240\306\262\356\251\257\030}\321\365\304\242e\003\222\021-\226\035\203P\371c\002\017\014\335\021yS\334w\035sN\016\224\021!\2669\261\020A\213`Y\017\204\277\354\226\355\202\320\r\303,\005\240\327\007\003\240Sr\202\301\226\312E\323\t\210\010F%B\316\002\257l\n\260\006,\021\264\345\013\032$+\304\223ebuQ/\333\001\265\022-c\314\210\345Gh\014\267\010\324\005\263p\211q\224q\353\331\025\302\363\330\\-\233\216a\336\323\003c\331\004G\266\356\373bY\367\201B\350\005\035r[3\025\036\307e^ \374\204\343Z\276\231`^\375l\310y(\270n\316%\313\300\3110\272\001i\212\224\342\004\350l\323Y\n\226\325(\271\264$_2\357\267s\337\352\036\t\240\235\177\205\204`\213n\241l\233\031\333\\3\355\026=w\036k7\276[x\264p\343\311\255G\332\367?\335\377aL\254/[\306\262R2l\253\034($h\017L\277\244\033\261q}\221\322E\336\326\235\025\322\177\240\347/\221X\3149a\005I\342/\257C\360\005S\027\201\253\260X\216a\227\013\246p\314u\022\027\276\203:\313\037I+\271=q]\333\277\340\033\236\005\t]p\n`5[\252\020\177\220\026\364\006Yd\270\343\242\347:A\006j\004nF\0211\2450\335\332\320\213%;\264\304\371\371yA\310\304\025\301HSIX\306\257N\260\356\342c\3313q\237\314\372%\333\nX\213\251\025\323,\001\271\177\345\t\004\236\036c\034\331lV\264\375$]\217ppo\263X\336\027E:\"\243\004E\007\251d2\373\302\265\234\024\021\003\035\003\360J\"\221V\266\003\332\370\356\252\020\277\361\315(\344\333\321\224\021 >\274#\016\302\307\031\325#\010\333F\005\210\343\273\201\220\362\320\233\000\205\360\225\321\263#a""\322/\211%\3231==0\331t<\323\2079\221u\306\235\010\313X\207\251\204\375E\261\354\007P\222\023\350\320\252\0051\257Y\2052\274\214\234\331Rm\312Q\021\277\204p\335\212,]\2046\341g\305\343r\014\257\037:\0267O\230\315\002\351\276\310\224=\367L\275 \245\235~.\340\301\226\335B\204\016\334\300\212i\334\025\352\373\3024\002?\362\020\340#b\022N\310\366]\242\334\017\375\251\"%\023!\203\261\027-\207\201\025\013c\202\006\257\220\371\2016V*a\36230\3055Kg\372\326=\314\031E_\204J\222I\243\350]\004\306e\333f\277\275\215G\272\370T:kH}\276\315\252c\306\334\323\240\273\177\3667qi\331=1\306\r\272\335\250\333\254\270\335\270\273\036\265\214\274\323\320\333\214\275\303\340\333\215>2\374\3672zi\"\344\371\021 \254E\013\272eg$\325\361S\254\311\347\310\310\356\t\3361\020\353z\205C\362\262\273N&\316f\017\217\351,\231>\273rh\335\\g,<.\301\322\24417\002e\235N\271\230\207Oo\265+@\030\226o\006\"_\021I')\3754\243Q\376\336\227\236\020BPD^\257\204\217\306$K\344\377\010\245\347\332\ne\n\246\350\233<\rE&\223\031\023\243\243\243\034\313\257]K\023[\214\307\200\241\223m3\024\014\333\323-\2338S\223\204\251\266\230\274e\323.-\2261\343]\031\351,\247T\016\3746$<w\311\354\263\261\271\253\\\014E\003)Q\031'!V\277l!\254\330\234y\310\224\203\272\306\347\025\271\0278\237\274\013\342\210K9&K\032\301\213\357\227\36553\"{\240\315\325HI\335\006\307\252\037\217\\p)\216\265\367\213\372\214\261\026h(\372J\216\201qD\031\013\264\220HD\" 8I\007\344g\333\344+\310\236\\\257hW\242(\270\330R\332\023\316H,\326\025A\001\205C\027\033\340\234\210@\310:\022\2260\0253\035dn\222]\204xX\245\241S\020d\\\201U$o*\026\234\n\351\0248\310\250@\021T^\204\225\202\026\277d\032\322\224\313\344\246#\377\034\212;I\372\242a\222c\"\031\270\341]\330Z\200N\2232CQO\271%\033\261\022\247I\322\303j\215X27J\320\275\217\3619\0230\221\221\374(fg\306s\212\371=\2039\261\037f\020j\202jQ`\347)\316S\001peO\371\254\324\036q<\371\273\351\271\202\273u\367\020\311\037=k\t\256\337&\276o\224=\017:N\356\201hb||:3\236\313L\314\210\211\311\271\311\361\271\351q\35251\236""\033\317\214Oe\306'Dn|n\002\315\023{`\010-\352J2\231\236k\203\220\216\237\236\247\273\234\364Y\030,\3221?\230\023\243\367\177|to\341\356\235\177\334\322~\376\356\316\223[\217\037,\334\270%\263\204LF\204\254\204\035{\320+3\206\321Q\241X\025-\330.&\030\366\3325\221\311\215M\211Q\372\270vM\366'\211J\347\033z\375L\224\255\264|\370h\313c\223\320\007\376\323\236:\364\2271O}#\326\364\377\213\247>\177\376<\315gh\364\177\235\364\177\233\223\216\333\332{zj\306\321\355\031\337\313S3\216\230\267\376\037\340\251\t\323\235EVJD\354Xl\231\356G+S\312\231i\325\350\357\351\336\333\363\\%km\217\225\0339\217\2753\335\226\217eG\377\253#\373\357\337\263\267\333Ow\241\214\247\2714-\303^\221\313U]C\200\370O\324\211<g\324\320r\231#Q\362;\322\226\370F\276\222\360S_\\\303E_\313\361\306\321\364\350;py\344\346\2177\236\374\375\301-\261\034\024\355\371\201\313t\021\320\312\322\225\204\351$\250\001\346;\317\300\227\261f\221\325\n\314\252+\211s)u\233\366\023q\0002\360+\2115\313\\/\271^\220\220S\304A\207u\253\020,_)\230k\226af\370\313\030\254\310\n,\335\316\370\206n\233Wr!\242\000z0\347oJ\007HQ\300\362]\347\362\005\331,A\270\2405\177.\305W?-]\327\345\013\262y\340\362\005I\367\300\345\274[\250\310.\347R\354\237\322\376\271\224m\"x\024\320\351\362\005\371\234:\220\000\344Z*\253-\352\216Q\321<\263dS\251\203#\256\370&7\223\016\237\257\252\271.\237\344\306'&\302Gj\021\246\236\314N\317H\263\220OU\t\203\013J4]\025s\224ru\0058\236\373\260\367\261\310Y\224<\267P6\010z\271\\\324\235\014\271e\366\270\005F\256\272{2\026\222#Q\203\226}S\212\247\263\262%=\261+B\232\273\211\220\276\242\005\"\035N\034,V\006\242\250\003\267\340[E\313\326=\221rL\335\313\024i,\320\234n\253\214q\315\200%\304+`E\250\014\342y\023\223\307\217b\330\272\233\261\315\200\352[\206[\210\257\204\223\031\221\014\3032yj\020E\224F\225\210\\\013rt\177\310\211\026\244\210AR\251\211\334\240+\005\025\261\335\202\276\032\203&\217G\316\221\002\013\244`\202|S\305\252\250\253$\376.\253\227\331t\302\372\207\304\245\203\317b\211]\343R\331*\310\324\306\2540""\265p\205\236N#\311$\242\245r\251\243u\323{7\032d\326\342\313\230\250\"\276,\255`\246.\312\005\200\245\n\253\255\342\213*\350`\006\3054\256\224y\337\345$\014\323A\351\261\250\257\240\217\343\222\245[E\"^\232.\245]\347\213\230\363\010&\347e~F\305>\032K\322A\311\216\356U\306\204\002\212%l\356\"\274\010 \312\360&^\006\302@\272a\255\231c \334\320a\341\204\244\"\374\212\243\262\254r\tb\251\254/\223XJ\256\357[\230(\310\007\\\370(\031\326\014\003\002\006W\266`\023ESn|\\\224t\316\373`\353*\226=2)n\031\\\371b\354\300\206\321}9)\234\300Z*\273e?\302\301\322\367\326pGC\265\352\3032\201t\341\346\254\000\374\205\351\206a\350\276\254\302\033\256\037\320dhMr\035\360\310B\275x\"\033\306H\225\034\023\030\257r\340'\242\014\311\362\200i\335\344\334\007R\240q\370\371X\373\304\335\27767\240\342Zd\237aN%R~w]\216Kg\275\212s\214\246W\201\256ga.\035\213\375DrN\\\021\311$\246X.+\256\233z9\260(e\265h\356\260C\200\315a\335\267dW\262\261\200<\221\205\224\020\311\r+\350\004\265\212\262=\016>\231\025\217\251\335\354\004&\217g\233\033q\330\251,\313\035\255=\201)o2\013\255\016 }\357Rp\304(R\302\0243+\233\246\332%\360t\374\331\323L\356\231\\\206#Ii{:\361\037\221\317$}\2747\313\222\267w\3500\235\025\267m\275K\364\020\300{\310F\272\025J\254\327i\231\340\007:&\032-\365\242P!-&^\327\207,\302Jh\247[\202\027pbh\344\344jCD\343P\212]\342\310\034nh\205;\026r\037\204\026\007\322\325\223\277mm\273$i\323%\231\245\360j\2120A\320(\263\3214\216\362\005\244E\226\335\232\237\016\245\322c4d\030xy\216\256\2731v\3242\353\212\240\335\275T!\252\355\262Q\214I\355\247\025\243I\t\234\224\331\005u\210\355\006\222\317\203\215\321V\014|S\020T2\234U\013+.<\236\256%\365\240Hy[\370\rK\030M\336F\300\352{J\216*\255\366)\307\301\267\232!\014X\225\211\021\274\337m\252vty\353t\215\301\217\276\233\265\307z\\\225U\343\321\216A\337m\336w\341Q?\277\365\254\251S\272.~\353\240\366\335f\333\036\003\215R\301\246\367`]\003\355?K\001\374L\032\307\202\337\332\224-\322\376O<H\300\206\020\242\334\025_\260\023\247\375\267=\027o\312X\306\272\266\004""\336\315ue\336\307\261g\336\331\255\217\276\207?\014m#\032\342=\242\301;\333CD\325{\370\335w\266\201\010\371;\370h\252\263\264R\221\357\236\334\273\0133@B\232\257\310kkY&\323\003Y1\023\313\326\322\262\215\337(\033\341z\223\\\360\250,\263L\325\003J\236\270\314D{\352\214]\326\216RT\367P\354\341!?\2414!J\017\221^p\322C\016\223WsQ\341No#pLzj|\013SyE\356\200\332\025\344\262\r\223nqF\0319v\316\2633\2612`\234)Y%\221\264\202\037F\006\236Z\233\210\255\254\033\366l\363\201\010Y\266(\253lV&\355Th\211\327\221\026]\333\226l\310\364H\346\274P\00024J\247\200\207e\241\006BpR3\215RmM\322\003\373\t\351\360\225\344X\232\341\231\212\270\372\270G\013\001\211\270\275\177\267\n\302\005\331\336\350\324\032\023A\3205.\250=~\377B\270{\317\304@:2\203\205\031 \323\226\365\255\320B\262\355\333\323\267\345\022;q5\021\226\345H=\005\023\202dR0\250\377\326\255\322\266\264 \376@:$\037\217\013\321r>\225\374\025H\215\233\346\342\322\262\365\375\212MNS\310\266\202\271\370\355\262\365B\266\275}\3574I\323\374\267h\256\023\232\216\226vj\342\033\031\212\2629\021\206\331\222'K\376\351\370\270\361ep\027\325\361\025\352\257\201\032\270\255}Tt\261\365\326N|\363mXuw\035\245\276\316\n=\247\\\261m\365\266\003\003\337b\315\306\007\223\270\361y\2700,\220)=o/\241\320b\001by.\217j\244\237#vl\004\224s\305\213\361\262\322\306)]T\257\0269\3527!R\321\211&\361\234\313\357\317\021\177(t\225J\362\224\215,r\250\332\212\271hm\230\035\265H\377\177\336\301\021E\206L\013\351\330\310\336\0017\300\000\0143&r\351\216\320\033\326\005\303\342b\253\264\3706T\023]\250TY(*0\206{\356]\347\212\242r\331\354\3054\036\336\275s\377V{\373\314LZ\334\361]\233\354K9_x\021\237\253K0\020\323\266\212\241\266=\271C#\327\246n\270c\023\363\007\217\3023p\312\024]\336\242Y\362\334rIu\243\305\261+\234\356}\235\366\243-\334\205b\245*y\373\260\251\260\326\217\364X\036\312\222\026\274d\006\232[\242:\025\226\272\331vO\264g\216\335\006\245\207\272-\352%:\0166&\031M\345\306\246\306\323\351v\247\221\007\254\376t\356Y{\343\323\331\271\331gx\3624i%\237\251\235""\301{p\362\344|\261\0062\275hg\270\325eb\374\231\030\305Zr#\031m&\312.B\225@\213f\007\235\350397!\007z\326\321\007S\333\3541\310\244\032\244\3229\210\343r\300\334k\250R\270\353\t\251tT0S|\264O\037\313\247\263$z\326\224Yh\251 &\260\247OSIt\346R\376\364\230\230\225\2370\345TRJ%\311\215\362\3777\334\036\202\243!\2075\3277\270L\244\237\265\274\277\210\241\314\315\340\227 .b\206\214\307\016\303\010 R\234%%\310\304\270\372\315u\200\205\270\370\341\004\001\340w\262\003\210\205K\250\030\202F\233\354\001\025\241\002\300\344\270\002\232\331\213\370I\01449\025B\357I<\201LNK\204\223{\021\317\000\263!\316\364\263\226u\266\326\3437*\310q\034\232R\340\306\312s\240\260+B\026\332\302l\364\301\255\007\231\251\331)u\360\221\353C\302/\3479S\220\3235_\266\350D\232\010*%\3327\273\263(*n\031Y\254\314/y)\037\353\020P\021 \334\017L\352\016\254\216\023)\r\335\341P\222\360\254\036\006\261\326\270\332z[\267}3\254\000\262#!?\314q\332Zr\\Of\200a\r`\216Oc>G\204\221kpyBR\236\206\334;\242t\371\307T2\314\013h\260\375\340~\r\336\025\320Q\200\314\320~\220\033]\200o\341\236\334&1.O\0133\347\321)P\225\252\307V\217\311\263\311}%\021\005\203\030\315\235\314\305`\310{\010\361.\220\313&R\353\036b\210\342C\321\324\375\262\027%3Q\"\223\014w2\254\240\"R\213\266\313\333\344\342\351\370X\356Y\334\271\377\3145\346'\304?'C.\325\224[\207\0020_\311\245q\370h\337G\030\213\235k\026\342^\210\240\325U\025\225\307d\216\214\377\023\331\361\363\367\304\005\361$\333cV\205@\271\356\362=-&\270\332\215\345\244-\367\013\306\001\325:\330H\265s\336C'_\314K{Gm\177\304\030\315\362\312#\225\246A\314\rd'\276\232,\224\260\225\003:\222\3143\220\0209I\004G[\036\216T\217[\254\262\263\0167\206\264\274\355\032+t<\000v\223m\213\240\264?\250\216\"\033\272o2\362\242^\211\360\254\353r\023?\360*\"\273Z\266\214\025-$\221pat[ko^\344\3428m\257\230\264\234\2100\225K%\336\017+;\205\216\260M+\204\236QG$(\177N\340Jit\242=4\373\241\254\242\326\361\354\305\351\016\2206\322\366\003\354f$V>\031\217\356;\310\354\025\022U\2465\215D\253\023\2321\253\3473""\271\356\347p\235\032,*\247@&r\027\367\002\231\010A\246&\367\002\t\t\231\030\237\006\210\364\311R7\321\246\234<R\253\326\002q\255<a\323\206\207)\354\005L\006J[a2)\374/\324h(\243\324\273a\210+\017\020\003{i2\234A\362\254\214\241\363N\223\254*s\311A&\243\264\321\244\347\251H\035n\274\310\315\3326Iq9X\315\323p\372\204UhZ\321E\022},\364%\362\340\255\\\254\250;\225\270\363\242M\267H\345\251\307\230s\324ORh\333\242%\214\215\026\307H&\370p\221-\353\001&\345\327\312\357\312$0\302\237\215K\303\224;L\241\361`\"\353\314\223\032;\235\215\301\006\312\367\355g \035\326\264\257\345\375w\033\323DJb\372_c\372\2570\246\\/c\352\250o\354eJ{\331C\272\267b\375\324\177\302D~\202\274:\025\013\302\324\353Q\341\036\020\021\237\307\352]$\226\\\267\200U\273[^ZN\204y\205\"\235_\376\222ik\250/\022\247\212\273\266\313\247\317\344\3566)\026Q\304\242i\221\242\274\331\340Saz\354\034Z\230\031\311=w\313\266\002K\236\205\214\355L\265\362\022i\025j,\320\317\0031E\214$>F\347\306V\272\363=6\335[\302b>\025\036/\233L\207\tUQ\337\260\212\345b\374\240f\033Wj\227O\312.+\200\204_b\201\222\347!\364\036\243\030\345\200\212G\321P\343\331\231\264d1\236%\212\3343 {\020\227\203*\265\360\271E\312\220|\303\245\263\250\201\260\221\203\006\352\2258u|\006\322`\315p\356FIwdkOB\255\246\034H\314\345\375C*\337\247[zB\342&\213\344\355j \\a\275b@\276\211\245\004KS\331\013d\025#\226\3662\201c\030\304o\021\306\3362\333J\336)\315`\201jjx\3305\322)\033\206\375\024w&\0318\032l\276)\321,\345\033\244\\\225\304\263p\373\220\001\250L\212\016\311g\021nU(\t_Q\244\335Hu\277\337\360\353\313&\017\037\302fW\326\211\307p,X\233\035\037\244\007\206\005Eoo\014\373v\225/\366\355=\272\271A\317\325\360\361E\204\243* \\\233\244\275\013\312\213[\307\301d\371]\326J\350(\207\356\031\362\030\255\314\237#L4w\317+]\235\017\317J\207\216 :\216\205\345\261\345\211\024\2347\0341\033/\357\313\320\211\325\226\267o\035w\031km\215p\336\026\337\311\320\275\025\365\372e\201k\302N{\310PVC\343e\305]W\276Z\005\271\254\214a\001\037\250s=\370N;1\301\377\245z~\333\361""\275\024\254\253\275<\376lL\320\364|\347w\240\030A\274T\256\020\244\367y+K\321\323c\3073#\342\344\304\337c\022j\203 \376VT|\344\375a\007F\261&>\372\362\325\313Wc/_\341J\033\212\364\355\345+\332\024\224wtN\377\345+1\212\337k\327^\276\032\341\223\247\362\321\371\256\037<\340\023\251!*\336\243\304%\225\276z\240Od\256\216^\315dFG3\270\3015\203oWG\371.\365\353\350\350?\177\315\340\367\267\321\364\321\314|\342\353\313\007F\017d\016\374\226\035\375\215\330\277J/\205\3020~7/\353b\3313\027\257$\316\222A\331V^3\226\227\264\336\255\347|m<1\277x\371\202>\277'@\340\226\022\363\001\201\350\205\202Fo\241R\362\020\236\367\366#\277\236\257\004\224tPZ\327\033\200+\257x<'\276\206\025^\212\037=\016\213\325\023\3433i\025\010\302^\354\367\263d\031\331\361gs\342\\\241`\371T*1\035\372\244\002\360\271\202\266dt9\215p\3255{1\375\365Rp\tK\365+\t\376\210\263'O\361\205C\305\202u\374\254\007qt\316\267|9\242<t\025\317\312:\371\023_\333\301\245\304\274C\"k\013{`\334\311\373\245KN\234\345\311\311\351\264\332\014\210\326o\263\261Y0\347\271@\371\322pm\327\313\370\340\254h\316\t\3369\025\005x\211W\255z\003Q\227e\324/\007\3423m\221\336\347]\324\3412*s\342\236\351\330\356\030\275\274A[\002\340\356\036\"\260\201\226\273\262fH9*\232\250\241lX\005]Ar\274r\\\256\301]j\303\236\2077\246b]\321,X\345b\353Y\2130\246ISG\366\333I\313\353\306\n\255\246\235B\206\031\234\023g\315q\372w\251\233\203u\223\230\236\303\200v\241\3270Aa\237\201\310\3222p\263K\316\234\360\010O\373\000%\2306\224='\306\305lico&\034\332\340~+\013\3068\375\333c\204\251\322\206\030\337{\004\200\211\227]8K\272m.y\260\371Np\030q\017\360\263\213\370\271x\261\023\330/\347{\003\353\370\351eHO\375r\021\241\250r%q\227\017w\373\211g\035\334\343\351\222\345d\340#\346`\267q\321\305m#\007\236aDV\001\2621\214\236\312\333wL\204\261\377\220\335\264\t}\017\305\276e\344B\307\310\373\241\214n\257\321d\320E\2126@M\317\317\264O^\232\266\351\016\264\355\246\333\255\243\231\231\231W=:H{\354\006\237\374\206\376\365\352\321\333\276\210\244\016\373z\253\215\315N]\234""\312M\367\352\320\333\316h\014\344\333\355\035\336bk\322\200\302\021\247\247\247\337\247w\260\3746A\276\272|\001\036\315\231\277L\237\362\274\204\214\017$\246D\217f\210\242W3\030N\314\373\236q\301\336(\332\374\322\303\005M\205\231l\251rYE\022\267\354\031\341\233\026\352\264K\013Gwl:\227\222\373\347i\031\202\343\214\033\246m\223+\266\350\225\222\361\004\177W\206\311\337\275\262m\002\257\334\227M\210\371\250\357eH\201[\347/_\210n\337\247\365\377\001\246s)i\366\232\347\256\247[)\367\345@\276Er.U\320\003\235\036\372i?zx!h\275\203\202/$\315\275%\333e\03316\002\017\364\321Y+\227$\352\\IL$\346\205\202#\314\313\363\364\351u\365(\314\207CI\033\275\222\210\215s\203l->L\373\017\241\270L\230%\\\317az\365(t\233\250L(\026\n\005\263 o\201\2450\377\276\250\330\254o\310Z\034#xobx\006\334\344m\324\267`\010\265\305P\003\035\210\367\225\352]\313Yy\253P;\024I]\336]\276\363\251\3054\227-e]\362\235E1\237r\322\344\211\337\273[\220vK\357!\256\030T\330\3369#\332\316\025\305\347\2214\214\016\265\311\231\227\210\2369\356\272\247\227\256$\3445\301D\206\017\225\255\335*\226\202\212\270\215\325~\334\340\272\341\356\273jM)\253R\267\311\t\267\365Xn\243\204\"\031\306\313{\342\302<\353\253C\227\275\310\236?\347\207\240\364bZd\001\373\241\r\\,\027\336f\315\334\353\234/\361\027\350\322\013 \366\230\325\302\2374\010\021\023\177s>L\365s\023\271t\331Y\201p\035\365Z\226\261\354Z\364.\\\270H\220\207\254\322X\346x!`\240/\211r\260\230\231\325\2448;\016\303\207_\013\345b\251\375E;z\033\271\005\336\266z\017\033\361\305r:\033\325\271\275\366sc|B\3152\026lK\367\277C|\243\247\3415\242\245\325\000\305\331\246\021h\274V\2127;k\246\027h\213\266\276\024k\226\0032p\253\221\276id\205`\242\325\312'+e\\l5\362\t\257\216\356\230\035\232z\275&dp\337\207\331\313\374\"\221?\23757`r\005\202i\221\030\035\350lo\341)\330\265\355\037\337*\3472\262\246=\250lh7n\227\035C\2335f\365\351iM\233\242TA\233\242\\A\233\r\223\005-7\335Q\177\326\nn\031ch\232\031\030H\003\264RE\233\362M{\261E.\211H\016\360\240r\323\202\314\351\025\217G\346b""\007\242\316=C\rN\237\224\237\357~\200$\255l\230\232\301\007J4\255\033\3007\003?\320\203\026H'\314\236\310{\354\236\366\3342\335k\237t\257\315\321\275vD\177\276s\377\346\217?\377\242\3534\333\000c\255\351\313\226n\345tk\202kn\232\246\3336}\270dg\016RTr\340X\323\340\277\257\373\206\005s\2578\206\345b\036\200\354\200\314\031\331\010\236\225\003\227^Q\311\347'^\360K\207\321\233\207y\014EUA\315\342\317\027\374\311L\345\227\255\374\213\\\376\305D\236\206\316\333\364b\327\222o\030\364jL\226uK\246\242$'C\tt\021\376\2653-\274Qo\010\343\273i\254h|N\007\275\3109i\020\257\025\230E\372J\314\001\017\235\3554)\013\346\332\010\013\274}r\252/\364f\216\232\352t\201\245\253\362\214\272\334\225\260\255\212M\374\276e\214t,p\243\344\205\017y\204\366Y\317/\033\032\253\236\201\177\364\t\336\2410Y\363)p\246Gu\335(\345+0\315\232\332\024P3_\036\327b\017Z \341i\240\002\374\310\013\373g\256E\265\356Z\004J|\374D\022\007y\3619F~)\022\030\\\203\360\300\231\322\257f\361\347\013\214\004\353BG\372\343vN\271\310\207\253\370p\226\351y1\177!o\351\256\315\007\267;_r#9\215\r\215n'\344-{\027\215\336T\245\203\232\274\035@\362\242_\022\310b1\220^R\371\312\025\263\022w\233\341\275D\025\212\277\255Q\005\244E\212\303\2545*\235\335TWFB7$xu\225\337\241\365\360\017\035\304\377\340\001\335\207}X\220\362\006\204\342*\265DwL\206&uD\237K\312@`\250]\005\273\036\276A#\213\226\256F>j\255\024pWZ]\266,+gMX\005\253\260\341\303\332\345\244\261\240\244\rz\023\323 \01424\311\343\210\232E\326\250&\262\345\323l\262|\256i\321\264\361_\274\310\275\230\340\271F\007\2055u\016\332\326\326\375\256\206.\223\207B\360\337\267uL\304\300\316\313\227\3415y\221\177w\220\304D\2779\372\230\220j\013\255\257\373\013\254L\202P\215\277\375Q[K[\234\014\377&\244\026\336\320\025\230XC\322\336\341g\242?\037B\177\274\303v)\020e)\016e\2430\004\225X\344\326)\310E\241O\306^\036.\026\205[q\260\250\227h\333\202~M\317g\245j\362E@\245\340\242\276\241\025y\352\025\333\275F\273,z?mg\272\023$F\332^OZm\344\342\274\002-Y4\332\231\007\233f\240K\007J<\363\237s\344;""\317\325L\007kw2\243\242\277\004\211\320\337a\220\237\205\240\\\002X\353\226\213\272\032\245\025\032\247\207\364\253QE\235o\254\202\346\330\010*\010\006\321\325q\350/\013\221\242\345\237\354\320J\362\335\340X\013\264U\261L\273@MX\244\205F\341\207:\225\362-a\222\267\245r%\267\204\377e\014\324\266U\251T\026\377$\326pG~\237X.!\2150\364\222\025\335S\214\301\002L~\223\333/\362^\315J\272\245\020$\357\312N\3112V \226\256|\200\236\256\261\231\000\263\3120q\003\017*E\312\001\222?\272f\226gv)Le(ZW\256\0225\230\033Z(\014U\\\227\304{&B\221o\026<~e\301\347\255Xy\000\203\262*\237\346,\2457J\321a\332\021\246\031aZ\201k\030\221Z\311\220\326#1\242\027yhO\206V1\2614\025@^\300\037f\201;\200\302\222\244\210\377\362\206&/`8\344\031:\360\313\236\347.Q\340\361\241\"\263W\022+\005\254>U(\241h\004\n4uE\312\201\377\232A\037\320=\rM\237\033A\260\014\257\n{#3\306\205\375\203K\341\200?\351\036\343\312\277o\323\372+7\201+\341$S.\005\000p\302\226\025\270\214\025<\241\003Y\010\211\224\263\225\370\322\250\\\"4eD\201Pvk\272]\226\037>\237`\240\335^ro\364\213d\245\\t\264\326\355\272\277\001\357E\031\021\306TB\370\335*\r\310\254Y\244\036T4_r?&Z\367\351\0030r\333(\223x\244\345Us\177\364\275\356\377psb\363\247\352\310\356\221\243\315\003\237\325F\336\210\003\207\0077'7\215\352\320f\337\353\301\223\325\251\352Fm\265\336__\220_^\326G\352S\365\3257\037\03486\334z\266\033\001\036\256?i\234\331\352\333\032j\036\030mLo\365\275\231;p\370\310\037\001\006y\\\355\333=\362\321\346\213Z_\363\323\361\255\276\335\376\277\240yj\323\257\236\257-D\017\256n\257\356\366\037\333|\270\333\177d\363\343*\356\017\377\361\367M}s\225\276\037F\363\221\243\233\237VG\252\271\335#\037n\346\232\203\177\255=\256\037\254'\033'\033\013\215_\267On_\337\326w\007\217\275>r\274\332W=\215\356\200\232\251\236\254\202\276\023\325d\355D\355b}\004\224\037\376h\363\357U\275\352\327F\210\375\334\346\365\315\002\236\236\252\351\315\301\231-}\367\370'\265\277\200\223\276\372\027\215\277m\345\266\256o\351[\376\366\330\216\371gn\367\370\231\352?\3533""\215\241\306H\263\037\240[\336\366\320\233\354\201\243'\252C\325t-\007\324G\0077/U\215\332\320\356\340p\365N\355am\261~\2531\334x\330\310\223H^\203\034\365\364\004\270\276U\037\256?\254\027\032\347\032\001\206\201|\317\200\342\301c$\332\323\325'\265\241\346g\347\033D\356\261\241\352\341\352\337j\263\365\331F\256\261@4\004\265\\\355:p/@\330C\215\263\300_\330\032\331\232\331\036\336~\270]\330\031\331\231\332Y\375\263O\352d\265\326'u5]\353\257-\324\036\021c\324p|3\2502?\253\244\327\351\332\301\332h\375Q\275\334\270\336\320\337\0349pt\250z\2646T\373\272\336\327\354\377\252\276\360\007\024t\224\360\345\252\337b\350;u(\342\343\346\307#upr\262yr\036R\037\376\244\326\007\001_\252\353\304\034\204Q\373\276\256\327\320\363\315y\022\n\251\277\237\364pl\367\310\340\346\255\352\020.\315\301/kA\375RC\177' j\272_\033\241\313\367UtA\247\217H\362gj\037\326'\353F\003\322\035\334\274S\375\271\366\035\231\343\261\327J\213\375\365{[C[\211\255\333\333#\273\307OW\227\240\223B=\323X\335:\270\365\365v\337\356\311\341\020\260/|\254\223\356\210M0\375\361f\205\036b\254a\"p\n\2068x\nc\\\257Yu\245\253\243\307a\302l\221\037\301\214F$\345'\253\267`Of}\002\n:\215\301\016o=\334*l\237\335~\330\321\035\222>\266\271@}x\260UB\222\257\036\254~U-\324\022\000\003-\037\223\242\2527\310Zw\217\237\252>\014\365\277 \277\r\341\003&u2\374\316\032\225w\370 \372\206 \323\353U\310\3578\t\027m\003\304J\216\270\274\215A\026\350\346\026T7\215\231D\346\3062=XK\327\331\236\217m\336\205b?\2439\017)\200\336p\326\223\025\035=\t\316'\345T\252A\002\303\300\377\030\340\240\246\006\023\031\252~\201\371\331\2478\033\304<[\256Z,\352Aj9\316\366\271;,\3200\3749\246\317\221\003\247\276\250MH\033\205iQ[\355Vs\344\322\366\344\266\265C.\347\224\250\001\376\257P\322r\363\353\0370\037?M\324G^\037\377\242\266@S\213\265s\206,~w\3604\210\30272\312!6\\5\344\347Rr\237\326\206^\343\376\033\314\240\207\262\353\206\354G\3224\233\237_\335\366v`PC\230\327\251\346g\327v\016\355\344^+c\2504\006\266F\244A\014\2749q\340\350)\360\374\024\364\236\256""\007\215\331-\010\341\004dr\251\246\327\326\240\373O\266\206\210\373\337kC\350q\232\244y\223\274\340\340\346\267\325\231\032[\354\215\315\365P&\247\241\307\317A\321O\215\021\"\371\"\311T\252\340N\365\037`\034\344\014C\257\344\371v\007\217W\377\002\251\237\253\261\030\201\013\326\201)\330\317\202\347\207x0\014\263\221\363\237\325x\214\246-\215\270J4\020\323\277\327\206!m\277>B6p\035\303\323\327U\352\177\270\372\013T\367\001f3\320\223\206\327\370\tT2%\211m\037\002\334\235\220\204>\254\362L\345\033\264f\311F\316\302\344\027\330c|\211\316G\331[?\331\032\336z\004\277:\262=\265M\226\005\243<\r.\275\372'\r\210\354du\026\206\360\013\021|\274y\034\036\210D\365\003F\372\260\236k\0368S}\2059>\224\250_\330:\265E\243\034\207.H~&:\201\375\241\352_k\006\234\353/p\214\213[\013\273\037\037\177\2156\210\373\330\346\223\352'\220\325W\265\345\372rC\207\337\275\270\235\222\376R\316\344\000\343\346j7A#b\330k\266\333\023\247 \212\207\177,\3607\204\025\0046\220\224j\364\275\271\335G\241r\0066r\036.\221\0063(\354\021u?4Vw\207\004\202\341\303f\377X\343\336\366\320\356\211\221\372\227\210\206_\361|l\016\177\025\306\314\325\350r\002\263~\245>T\037m\374}\353\305N\337n\342|#\275\365\3156\317\317\205\335\001\262\305t\363\363\013\215u\304\235\325\346\201/j\367a'\037\2174Gr$\205\346\201/k\377j<\334\035>\365\007BkFr\376G\037\346\024\242\335\023\030\316\023\330\326\315F\177\343\346\326\007pE\251\235\257vV\232\017\177j\376\224o\346\027\233\213n\323\365\337\0348\020\364\335>\210\313\355\203\337\323\345\373\203?\034\334\355'c\315\301U\214\301\030\020\263\3276\177\206\273\030\246\371}\202\334\035\371\233#\344\222&kK0\335\263\320\354\311\255o\267\2471g\246v\312\177~\333|\374K\363\227\247\315\247ZS\3038\305f\321kz\345f\271\002\374\277\367\335\244anb\030\\~8\370\200.\017\016>\246\313\343\203?\323\345\347\203\006]\214\203/\350\362\342\240K\027\367\240G\027\357\340\032]\326\016\376\213.\377:x\353\020.\267\016}O\227\357\017\335\243\313\275C\017\351\362\360P\236.\371C\026]\254C\016]\234C\253tY=T\246K\371\320""\277\350\362\257C\267\372\tK\377\355~bv\225\255v|\253\177ka\353\347\355\037v\326\377\324_\267\267\254n\366\375\201 y\246\372ou\375MJ\371K\232\001\270\374AS\357\360P\365\203j\036mHk~\252&\240JN|\340(\310I\343~\235r-\362\022\201\234\362\273\310I.\"\037\031BD\376G\303\333:\263}p{doT\335\335\343\350[\250`\211\247\253/\232\202R\257\317>\227\316H\221\372#\371\356\301\315{\265!ui\366\237o\214\261\021\236\034~\3635A\242\221\234\377I\230\372\315\246\230F8\303S\231\357\300\031\221\003\246\017\2121\037\300Y\374\216Y\374\177\266*;\375;\013\273\247)~\253\324\210=\364p\365f\355\243\272\3169\244\212\337S\365\177#\243\016\033\216\326?k\314m=\331\376\362\317>\031/yv\275\226Q\362\243\346G\327wF^s\230=\025\205\036xw\362\340\207`\205:\320\014\rW'\252\217(\270Pw\370\304\327\307\2078\252}\005\307p\246\321\007\027t\007<\030\333\237\354\014\355\214\354\216NA\233\217\267?\330\326\2679g\374\206\274\332\356\340\247\315O/o/\274>>\277\235\207(\216\017\355\312\273\327\203\024>(\2346\207\317\301E\301\361\344k\207e\346p&\234\320\034\"\311g\224\253\337\201\200\2775\317^A\364\377\342\257=\357~\252\237Gb\3077#\224\223\303M\222\242>\334\276D\223\364\321n\377\311\352\325z\2521\322`\355\376\223\024\275{$\007g3qs\347~\363\321c\3223\373\305\3257_\310t{r\223\014\02561\203`|\243F\242\345\264^\337\\#\201\300\234>\"@os\030\316\3413\n\212\234\030\215P\002bq(\374\224\302\254\016.\016Q\366\205\034\2063\366\367\356\360;\334\326Y\212Z\014\326\374\344\366\216\276\373\311\0272\023}\373\363#\233\177\331\\\rc\325\020\207;\231]6\277\270\271\263\360\357\363\371\226Y";
    PyObject *data = __Pyx_DecompressString(cstring, 9532, 1);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #else /* compression: none (25802 bytes) */
const char* const bytes = "\n    Compare `a` and `b` (lists of strings); return a `Differ`-style delta.\n\n    Optional keyword parameters `linejunk` and `charjunk` are for filter\n    functions, or can be None:\n\n    - linejunk: A function that should accept a single string argument and\n      return true iff the string is junk.  The default is None, and is\n      recommended; the underlying SequenceMatcher class has an adaptive\n      notion of \"noise\" lines.\n\n    - charjunk: A function that accepts a character (string of length\n      1), and returns true iff the character is junk. The default is\n      the module-level function IS_CHARACTER_JUNK, which filters out\n      whitespace characters (a blank or tab; note: it's a bad idea to\n      include newline in this!).\n\n    Tools/scripts/ndiff.py is a command-line front-end to this function.\n\n    Example:\n\n    >>> diff = ndiff('one\\ntwo\\nthree\\n'.splitlines(keepends=True),\n    ...              'ore\\ntree\\nemu\\n'.splitlines(keepends=True))\n    >>> print(''.join(diff), end=\"\")\n    - one\n    ?  ^\n    + ore\n    ?  ^\n    - two\n    - three\n    ?  -\n    + tree\n    + emu\n    \n        Compare two sequences of lines; generate the resulting delta.\n\n        Each sequence must contain individual single-line strings ending with\n        newlines. Such sequences can be obtained from the `readlines()` method\n        of file-like objects.  The delta generated also consists of newline-\n        terminated strings, ready to be printed as-is via the writelines()\n        method of a file-like object.\n\n        Example:\n\n        >>> print(''.join(Differ().compare('one\\ntwo\\nthree\\n'.splitlines(True),\n        ...                                'ore\\ntree\\nemu\\n'.splitlines(True))),\n        ...       end=\"\")\n        - one\n        ?  ^\n        + ore\n        ?  ^\n        - two\n        - three\n        ?  -\n        + tree\n        + emu\n        \n    Compare two sequences of lines; generate the delta as a unifi""ed diff.\n\n    Unified diffs are a compact way of showing line changes and a few\n    lines of context.  The number of context lines is set by 'n' which\n    defaults to three.\n\n    By default, the diff control lines (those with ---, +++, or @@) are\n    created with a trailing newline.  This is helpful so that inputs\n    created from file.readlines() result in diffs that are suitable for\n    file.writelines() since both the inputs and outputs have trailing\n    newlines.\n\n    For inputs that do not have trailing newlines, set the lineterm\n    argument to \"\" so that the output will be uniformly newline free.\n\n    The unidiff format normally has a header for filenames and modification\n    times.  Any or all of these may be specified using strings for\n    'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'.\n    The modification times are normally expressed in the ISO 8601 format.\n\n    Example:\n\n    >>> for line in unified_diff('one two three four'.split(),\n    ...             'zero one tree four'.split(), 'Original', 'Current',\n    ...             '2005-01-26 23:30:50', '2010-04-02 10:20:52',\n    ...             lineterm=''):\n    ...     print(line)                 # doctest: +NORMALIZE_WHITESPACE\n    --- Original        2005-01-26 23:30:50\n    +++ Current         2010-04-02 10:20:52\n    @@ -1,4 +1,4 @@\n    +zero\n     one\n    -two\n    -three\n    +tree\n     four\n    \n    Compare two sequences of lines; generate the delta as a context diff.\n\n    Context diffs are a compact way of showing line changes and a few\n    lines of context.  The number of context lines is set by 'n' which\n    defaults to three.\n\n    By default, the diff control lines (those with *** or ---) are\n    created with a trailing newline.  This is helpful so that inputs\n    created from file.readlines() result in diffs that are suitable for\n    file.writelines() since both the inputs and outputs have trailing\n    newlines.\n\n    For inputs that do not have"" trailing newlines, set the lineterm\n    argument to \"\" so that the output will be uniformly newline free.\n\n    The context diff format normally has a header for filenames and\n    modification times.  Any or all of these may be specified using\n    strings for 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'.\n    The modification times are normally expressed in the ISO 8601 format.\n    If not specified, the strings default to blanks.\n\n    Example:\n\n    >>> print(''.join(context_diff('one\\ntwo\\nthree\\nfour\\n'.splitlines(True),\n    ...       'zero\\none\\ntree\\nfour\\n'.splitlines(True), 'Original', 'Current')),\n    ...       end=\"\")\n    *** Original\n    --- Current\n    ***************\n    *** 1,4 ****\n      one\n    ! two\n    ! three\n      four\n    --- 1,4 ----\n    + zero\n      one\n    ! tree\n      four\n    \n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"%(charset)s\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <title>Diff comparison</title>\n    <style>%(styles)s\n    </style>\n</head>\n\n<body>\n    %(table)s%(legend)s\n</body>\n\n</html>Differ._fancy_replace (line 916)Differ._qformat (line 1022)Differ.compare (line 856)\n    Differ is a class for comparing sequences of lines of text, and\n    producing human-readable differences or deltas.  Differ uses\n    SequenceMatcher both to compare sequences of lines, and to compare\n    sequences of characters within similar (near-matching) lines.\n\n    Each line of a Differ delta begins with a two-letter code:\n\n        '- '    line unique to sequence 1\n        '+ '    line unique to sequence 2\n        '  '    line common to both sequences\n        '? '    line not present in either input sequence\n\n    Lines beginning with '? ' attempt to guide the eye to intraline\n    differences, and were not present in either input sequence.  These lines\n    can be confusing if the sequences contain tab characters.\n\n    Note tha""t Differ makes no claim to produce a *minimal* diff.  To the\n    contrary, minimal diffs are often counter-intuitive, because they synch\n    up anywhere possible, sometimes accidental matches 100 pages apart.\n    Restricting synch points to contiguous matches preserves some notion of\n    locality, at the occasional cost of producing a longer diff.\n\n    Example: Comparing two texts.\n\n    First we set up the texts, sequences of individual single-line strings\n    ending with newlines (such sequences can also be obtained from the\n    `readlines()` method of file-like objects):\n\n    >>> text1 = '''  1. Beautiful is better than ugly.\n    ...   2. Explicit is better than implicit.\n    ...   3. Simple is better than complex.\n    ...   4. Complex is better than complicated.\n    ... '''.splitlines(keepends=True)\n    >>> len(text1)\n    4\n    >>> text1[0][-1]\n    '\\n'\n    >>> text2 = '''  1. Beautiful is better than ugly.\n    ...   3.   Simple is better than complex.\n    ...   4. Complicated is better than complex.\n    ...   5. Flat is better than nested.\n    ... '''.splitlines(keepends=True)\n\n    Next we instantiate a Differ object:\n\n    >>> d = Differ()\n\n    Note that when instantiating a Differ object we may pass functions to\n    filter out line and character 'junk'.  See Differ.__init__ for details.\n\n    Finally, we compare the two:\n\n    >>> result = list(d.compare(text1, text2))\n\n    'result' is a list of strings, so let's pretty-print it:\n\n    >>> from pprint import pprint as _pprint\n    >>> _pprint(result)\n    ['    1. Beautiful is better than ugly.\\n',\n     '-   2. Explicit is better than implicit.\\n',\n     '-   3. Simple is better than complex.\\n',\n     '+   3.   Simple is better than complex.\\n',\n     '?     ++\\n',\n     '-   4. Complex is better than complicated.\\n',\n     '?            ^                     ---- ^\\n',\n     '+   4. Complicated is better than complex.\\n',\n     '?           ++++ ^                ""      ^\\n',\n     '+   5. Flat is better than nested.\\n']\n\n    As a single multi-line string it looks like this:\n\n    >>> print(''.join(result), end=\"\")\n        1. Beautiful is better than ugly.\n    -   2. Explicit is better than implicit.\n    -   3. Simple is better than complex.\n    +   3.   Simple is better than complex.\n    ?     ++\n    -   4. Complex is better than complicated.\n    ?            ^                     ---- ^\n    +   4. Complicated is better than complex.\n    ?           ++++ ^                      ^\n    +   5. Flat is better than nested.\n    For producing HTML side by side comparison with change highlights.\n\n    This class can be used to create an HTML table (or a complete HTML file\n    containing the table) showing a side by side, line by line comparison\n    of text with inter-line and intra-line change highlights.  The table can\n    be generated in either full or contextual difference mode.\n\n    The following methods are provided for HTML generation:\n\n    make_table -- generates HTML for a single side by side table\n    make_file -- generates complete HTML file with a single side by side table\n\n    See Doc/includes/diff.py for an example usage of this class.\n    \n        Format \"?\" output and deal with tabs.\n\n        Example:\n\n        >>> d = Differ()\n        >>> results = d._qformat('\\tabcDefghiJkl\\n', '\\tabcdefGhijkl\\n',\n        ...                      '  ^ ^  ^      ', '  ^ ^  ^      ')\n        >>> for line in results: print(repr(line))\n        ...\n        '- \\tabcDefghiJkl\\n'\n        '? \\t ^ ^  ^\\n'\n        '+ \\tabcdefGhijkl\\n'\n        '? \\t ^ ^  ^\\n'\n        \n    Generate one of the two sequences that generated a delta.\n\n    Given a `delta` produced by `Differ.compare()` or `ndiff()`, extract\n    lines originating from file 1 or 2 (parameter `which`), stripping off line\n    prefixes.\n\n    Examples:\n\n    >>> diff = ndiff('one\\ntwo\\nthree\\n'.splitlines(keepends=True),""\n    ...              'ore\\ntree\\nemu\\n'.splitlines(keepends=True))\n    >>> diff = list(diff)\n    >>> print(''.join(restore(diff, 1)), end=\"\")\n    one\n    two\n    three\n    >>> print(''.join(restore(diff, 2)), end=\"\")\n    ore\n    tree\n    emu\n    IS_CHARACTER_JUNK (line 1087)IS_LINE_JUNK (line 1066) Isolate change clusters by eliminating ranges with no changes.\n\n        Return a generator of groups with up to n lines of context.\n        Each group is in the same format as returned by get_opcodes().\n\n        >>> from pprint import pprint\n        >>> a = list(map(str, range(1,40)))\n        >>> b = a[:]\n        >>> b[8:8] = ['i']     # Make an insertion\n        >>> b[20] += 'x'       # Make a replacement\n        >>> b[23:28] = []      # Make a deletion\n        >>> b[30] += 'y'       # Make another replacement\n        >>> pprint(list(SequenceMatcher(None,a,b).get_grouped_opcodes()))\n        [[('equal', 5, 8, 5, 8), ('insert', 8, 8, 8, 9), ('equal', 8, 11, 9, 12)],\n         [('equal', 16, 19, 17, 20),\n          ('replace', 19, 20, 20, 21),\n          ('equal', 20, 22, 21, 23),\n          ('delete', 22, 27, 23, 23),\n          ('equal', 27, 30, 23, 26)],\n         [('equal', 31, 34, 27, 30),\n          ('replace', 34, 35, 30, 31),\n          ('equal', 35, 38, 31, 34)]]\n        Note that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.\n    Return True for ignorable character: iff `ch` is a space or tab.\n\n    Examples:\n\n    >>> IS_CHARACTER_JUNK(' ')\n    True\n    >>> IS_CHARACTER_JUNK('\\t')\n    True\n    >>> IS_CHARACTER_JUNK('\\n')\n    False\n    >>> IS_CHARACTER_JUNK('x')\n    False\n    \n    Return True for ignorable line: if `line` is blank or contains a single '#'.\n\n    Examples:\n\n    >>> IS_LINE_JUNK('\\n')\n    True\n    >>> IS_LINE_JUNK('  #   \\n')\n    True\n    >>> IS_LINE_JUNK('hello\\n')\n    F""alse\n    Return a measure of the sequences' similarity (float in [0,1]).\n\n        Where T is the total number of elements in both sequences, and\n        M is the number of matches, this is 2.0*M / T.\n        Note that this is 1 if the sequences are identical, and 0 if\n        they have nothing in common.\n\n        .ratio() is expensive to compute if you haven't already computed\n        .get_matching_blocks() or .get_opcodes(), in which case you may\n        want to try .quick_ratio() or .real_quick_ratio() first to get an\n        upper bound.\n\n        >>> s = SequenceMatcher(None, \"abcd\", \"bcde\")\n        >>> s.ratio()\n        0.75\n        >>> s.quick_ratio()\n        0.75\n        >>> s.real_quick_ratio()\n        1.0\n        SequenceMatcher.get_grouped_opcodes (line 566)SequenceMatcher.ratio (line 616)SequenceMatcher.set_seq1 (line 217)SequenceMatcher.set_seq2 (line 243)SequenceMatcher.set_seqs (line 205)Set the first sequence to be compared.\n\n        The second sequence to be compared is not changed.\n\n        >>> s = SequenceMatcher(None, \"abcd\", \"bcde\")\n        >>> s.ratio()\n        0.75\n        >>> s.set_seq1(\"bcde\")\n        >>> s.ratio()\n        1.0\n        >>>\n\n        SequenceMatcher computes and caches detailed information about the\n        second sequence, so if you want to compare one sequence S against\n        many sequences, use .set_seq2(S) once and call .set_seq1(x)\n        repeatedly for each of the other sequences.\n\n        See also set_seqs() and set_seq2().\n        Set the second sequence to be compared.\n\n        The first sequence to be compared is not changed.\n\n        >>> s = SequenceMatcher(None, \"abcd\", \"bcde\")\n        >>> s.ratio()\n        0.75\n        >>> s.set_seq2(\"abcd\")\n        >>> s.ratio()\n        1.0\n        >>>\n\n        SequenceMatcher computes and caches detailed information about the\n        second sequence, so if you want to compare one sequence S against\n        many ""sequences, use .set_seq2(S) once and call .set_seq1(x)\n        repeatedly for each of the other sequences.\n\n        See also set_seqs() and set_seq1().\n        Set the two sequences to be compared.\n\n        >>> s = SequenceMatcher()\n        >>> s.set_seqs(\"abcd\", \"bcde\")\n        >>> s.ratio()\n        0.75\n        Use SequenceMatcher to return list of the best \"good enough\" matches.\n\n    word is a sequence for which close matches are desired (typically a\n    string).\n\n    possibilities is a list of sequences against which to match word\n    (typically a list of strings).\n\n    Optional arg n (default 3) is the maximum number of close matches to\n    return.  n must be > 0.\n\n    Optional arg cutoff (default 0.6) is a float in [0, 1].  Possibilities\n    that don't score at least that similar to word are ignored.\n\n    The best (no more than n) matches among the possibilities are returned\n    in a list, sorted by similarity score, most similar first.\n\n    >>> get_close_matches(\"appel\", [\"ape\", \"apple\", \"peach\", \"puppy\"])\n    ['apple', 'ape']\n    >>> import keyword as _keyword\n    >>> get_close_matches(\"wheel\", _keyword.kwlist)\n    ['while']\n    >>> get_close_matches(\"Apple\", _keyword.kwlist)\n    []\n    >>> get_close_matches(\"accept\", _keyword.kwlist)\n    ['except']\n    \n        When replacing one block of lines with another, search the blocks\n        for *similar* lines; the best-matching pair (if any) is used as a\n        synch point, and intraline difference marking is done on the\n        similar pair. Lots of work, but often worth it.\n\n        Example:\n\n        >>> d = Differ()\n        >>> results = d._fancy_replace(['abcDefghiJkl\\n'], 0, 1,\n        ...                            ['abcdefGhijkl\\n'], 0, 1)\n        >>> print(''.join(results), end=\"\")\n        - abcDefghiJkl\n        ?    ^  ^  ^\n        + abcdefGhijkl\n        ?    ^  ^  ^\n        \n+ # \t{}{},{}\t{}--- {}{}{}+++ {}{}{}@@ -{} +{} @@""{}! *** {}{}{}****************** {} ****{}--- {} ----{} ()?\000\001 -?+?--++--?+--+-+?-?++--+-(\\++|\\-+|\\^+)\t->\"&<\000+\000-\000^.+^  - ? a b size<a href=\"#difflib_chg_<a href=\"#difflib_chg_%s_0\">f</a><a href=\"#difflib_chg_%s_top\">t</a>add_noteall arguments must be bytes, not all arguments must be str, not: &amp;context_diff (line 1206)cutoff must be in [0.0, 1.0]: %ddisableenablefrom%d_gcget_close_matches (line 687)&gt; id=\" id=\"difflib_chg_input must be a sequence of strings, not %sisenabledlines to compare must be str, not &lt;\">n</a>n must be > 0: &nbsp;ndiff (line 1335)restore (line 2081)\n        :root {color-scheme: light dark}\n        table.diff {\n            font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;\n            border: medium;\n        }\n        .diff_header {\n            background-color: #e0e0e0;\n            font-weight: bold;\n        }\n        td.diff_header {\n            text-align: right;\n            padding: 0 8px;\n        }\n        .diff_next {\n            background-color: #c0c0c0;\n            padding: 4px 0;\n        }\n        .diff_add {background-color:palegreen}\n        .diff_chg {background-color:#ffff77}\n        .diff_sub {background-color:#ffaaaa}\n        table.diff[summary=\"Legends\"] {\n            margin-top: 20px;\n            border: 1px solid #ccc;\n        }\n        table.diff[summary=\"Legends\"] th {\n            background-color: #e0e0e0;\n            padding: 4px 8px;\n        }\n        table.diff[summary=\"Legends\"] td {\n            padding: 4px 8px;\n        }\n\n        @media (prefers-color-scheme: dark) {\n            .diff_header {background-color:#666}\n            .diff_next {background-color:#393939}\n            .diff_add {background-color:darkgreen}\n            .diff_chg {background-color:#847415}\n            .diff_sub {background-color:darkred}\n            table.diff[summary=\"Legends\"] {border-color:#555}\n            table.diff[summary=""\"Legends\"] th{background-color:#666}\n        }</span><span class=\"diff_add\"><span class=\"diff_chg\"><span class=\"diff_sub\">src/lxml/html/_difflib.py<stringsource>\n    <table class=\"diff\" id=\"difflib_chg_%(prefix)s_top\"\n           cellspacing=\"0\" cellpadding=\"0\" rules=\"groups\" >\n        <colgroup></colgroup> <colgroup></colgroup> <colgroup></colgroup>\n        <colgroup></colgroup> <colgroup></colgroup> <colgroup></colgroup>\n        %(header_row)s\n        <tbody>\n%(data_rows)s        </tbody>\n    </table>\n    <table class=\"diff\" summary=\"Legends\">\n        <tr> <th colspan=\"2\"> Legends </th> </tr>\n        <tr> <td> <table border=\"\" summary=\"Colors\">\n                      <tr><th> Colors </th> </tr>\n                      <tr><td class=\"diff_add\">&nbsp;Added&nbsp;</td></tr>\n                      <tr><td class=\"diff_chg\">Changed</td> </tr>\n                      <tr><td class=\"diff_sub\">Deleted</td> </tr>\n                  </table></td>\n             <td> <table border=\"\" summary=\"Links\">\n                      <tr><th colspan=\"2\"> Links </th> </tr>\n                      <tr><td>(f)irst change</td> </tr>\n                      <tr><td>(n)ext change</td> </tr>\n                      <tr><td>(t)op</td> </tr>\n                  </table></td> </tr>\n    </table>        </tbody>        \n        <tbody>\n</td><td class=\"diff_header\"</td><td nowrap=\"nowrap\"><td></td><td>&nbsp;Empty File&nbsp;</td><td></td><td>&nbsp;No Differences Found&nbsp;</td><th class=\"diff_next\"><br /></th><th colspan=\"2\" class=\"diff_header\">%s</th><thead><tr><th class=\"diff_next\"><br /></th>to%d_            <tr><td class=\"diff_next\"%s>%s</td>%s<td class=\"diff_next\">%s</td>%s</tr>\n</tr></thead>unified_diff (line 1121)unknown delta choice (must be 1 or 2): %runknown tag utf-8_DifferDiffer.__init__Differ._dumpDiffer._fancy_helperDiffer._fancy_replaceDiffer._plain_replaceDiffer._qformatDiffer.compareGenericAliasHtmlDiffHtmlDiff.__init__H""tmlDiff._collect_linesHtmlDiff._convert_flagsHtmlDiff._format_lineHtmlDiff._line_wrapperHtmlDiff._make_prefixHtmlDiff._split_lineHtmlDiff._tab_newline_replaceHtmlDiff._tab_newline_replace.<locals>.expand_tabsHtmlDiff.make_fileHtmlDiff.make_tableIS_CHARACTER_JUNKIS_LINE_JUNKMatch__Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self.<locals>.wrap__Pyx_PyDict_NextRefSequenceMatcherSequenceMatcher.__chain_bSequenceMatcher.__reduce_cython__SequenceMatcher.__setstate_cython___SequenceMatcher__chain_bSequenceMatcher.get_grouped_opcodesSequenceMatcher.ratioSequenceMatcher.set_seq1SequenceMatcher.set_seq2SequenceMatcher.set_seqsWINDOWXaaeltaequivahiai1ai2aline__all__aloappendarangeargargsasciiasyncio.coroutinesatagsautojunkbb2jbeginbeginningbeltbest_ibest_jbest_ratiobhibj1bj2blineblobtagsccfunc.to_pych__chain_bchange_recharjunk_charjunkcharset_check_types__class_getitem__cline_in_tracebackclosecodes_collect_linescollectionscomparecompilecontextcontextLinescontext_diffcontext_diff.<locals>.genexprcontext_lines_convert_flagscountcqrcrcrqrcrunchercutoffddata_listdata_rowsdecode_default_prefixdeletedeltadfunc__dict___dictdiff_bytesdiff_bytes.<locals>.decodediff_lines_iteratordiffs__doc___dumpdump_idump_jeltencodeendenumerateequalerrexpand_tabsexpandtabs_fancy_helper_fancy_replacefile1_rangefile2_range_file_templatefirstflagflaglistfmtformatformat_key_format_line_format_range_context_format_range_unifiedfound_difffromDifffrom_linefromdatafromdatefromdescfromfilefromfiledatefromlinefromlinesfromlistfromprefixfromtext__func__funcggenexprgetget_close_matchesget_grouped_opcodes__getstate__groupheader_rowheapqhiii1i2ididxsin_changeindexindices__init__insert_is_coroutineisjunkisspaceitemsjj1j2junk_keep_original_ws_keep_original_ws.<locals>.genexprkeykeyslalastlblegend_legendlengthlineline1line2_line_iteratorline_iteratorline_num_line_pair_iteratorline_pair_iterator_line_wrapperlinejunk_linejunklinenumlineslines_to_writelinetermlolxml.html._difflib__main___""makemake_file_make_line_make_prefixmake_tablemapmarkmarkersmatch_objectmatchesmax_mdiff_mdiff.<locals>._line_iterator_mdiff.<locals>._line_pair_iterator_mdiff.<locals>._make_line_mdiff.<locals>._make_line.<locals>.record_sub_info__metaclass____module____mro_entries__msgn__name__namedtuple_namedtuplendiff__new__nextnext_hrefnext_id_nlargestnlargestnnntestnum_blanks_pendingnum_blanks_to_yieldnum_chgnum_linesnumlinesobjectpat_plain_replacepoppopularpossibilities_prefixprefixprefixes__prepare____pyx_capi____pyx_checksum__pyx_result__pyx_state__pyx_type__pyx_unpickle_SequenceMatcher__pyx_vtable___qformat__qualname__ratioratio.<locals>.genexprrerecord_sub_info__reduce____reduce_cython____reduce_ex__replacerestoreresultreversedrstripsscoresecondselfsend__set_name__set_seq1set_seq2set_seqssetdefault__setstate____setstate_cython__sidesizespan_split_linestartstartedstatestopstripstyles_stylessubsub_infosumsurrogateescape_tab_newline_replacetable_table_templatetabsize_tabsizetagtag_ctag_s__test__textthrowto_diffto_linetodatatodatetodesctofiletofiledatetolinetolinestolisttoprefixtotexttripletype_nametypesunified_diffupdateuse_setstatevaluevalueswhichwordwrapwrapcolumn_wrapcolumnwsxxmlcharrefreplacezip\ndouble (Py_ssize_t, Py_ssize_t)\000_calculate_ratio\2201\200\001\340\004\013\2102\210U\220!\330\010\t\320\000\032\230!\360 \000\005\014\2103\210c\220\021\210\001\340\014\023\2204\220x\230q\240\004\240A\340\014\023\2204\220{\240!\2404\240q\360\006\000\r\024\2204\220x\230q\240\004\240A\330\014\023\2204\220x\230q\240\005\240T\250\027\260\001\260\021\320\000+\2505\260\001\360:\000\005\010\200t\2102\210S\220\001\330\010\016\210j\230\001\320\0310\260\001\330\004\007\200t\2104\210s\220*\230A\330\010\016\210j\230\001\320\031?\270q\330\004\r\210Q\330\004\010\210\017\220q\330\004\005\200Y\210a\210q\330\004\010\210\005\210Q\330\010\t\210\031\220!\2201\330\010\013\2101\320\014\035\230S\240\002\240'\250\023\250A\250\\\270\023\270B\270a\330\014\r\340\010\020\220\001\220\026\220q\330\010\013""\2106\220\023\220A\330\014\022\220'\230\022\2307\240!\360\006\000\005\016\210Y\220a\220s\230!\340\004\013\2101\210B\210d\220'\230\025\230a\320\0146\260a\330\020\030\230\007\230q\240\001\240\034\250V\2601\260B\260a\260s\270,\300e\3101\330\020\027\220|\2406\250\021\250!\320\0046\260a\260r\270\021\360.\000\t\022\220\021\220)\2301\360\006\000\t\014\210;\220c\230\021\330\014\024\220I\230Q\230f\240E\250\024\250Q\250b\260\001\260\021\340\010\013\210;\220c\230\021\330\014\022\220*\230E\240\024\240Q\240d\250%\250t\2601\260A\340\014\027\220q\330\014\r\360\006\000\r\026\220T\230\021\320\032*\250!\360\006\000\r\021\220\005\220V\2308\2408\2501\250A\330\020\027\220t\2301\230B\230f\240A\240T\250\021\250#\250Q\250d\260!\2606\270\024\270Q\270d\300!\3004\300q\310\001\330\014\023\2204\220q\230\001\360\006\000\r\024\2205\230\004\230A\230R\230q\240\001\360\006\000\r\020\210t\2201\330\020\027\220q\340\014\023\2205\230\002\230+\240R\240u\250B\250a\360\010\000\t\021\220\t\230\021\230&\240\001\320\004$\240A\200A\330\010\t\330\014\023\2201\220G\2301\230I\240Q\330\010\017\320\017!\240\021\330\014\023\320\023>\270a\330\024\030\230\001\230\022\230;\240a\330\014\022\220)\2301\230J\240a\230A\200A\360*\000\t\014\2102\210S\220\004\220A\330\014\r\330\010\014\210E\220\021\330\010\014\320\014\037\230t\240;\250a\200A\360*\000\t\014\2102\210S\220\004\220A\330\014\r\330\010\014\210E\220\021\330\010\014\320\014\037\230t\240;\250a\330\010\014\210N\230!\330\010\014\210J\220a\200A\200A\360\016\000\t\022\220\027\230\013\2403\240c\250\021\340\010\014\210I\220W\230H\240A\330\014\r\340\020\030\230\007\230q\240\004\240M\260\021\260\"\260F\270!\330\020\026\220g\230Q\230d\240-\250q\260\002\260&\270\001\330\023\024\340\020\030\230\007\230q\240\001\330\020\026\220g\230Q\230a\330\014\024\220G\2301\230A\330\010\017\210y\230\007\230q\200A\360\024\000\t\014\2104\210q\330\014\025\220W\230B\230i\240q\330\014\r\360\006\000\t\020\210s\220!\2201\330\010\016\210d\220!\330\010\014\210E\220\023\220E\230\025\230e\2402\240T\250""\026\250q\260\005\260Q\260d\270#\270Q\330\014\025\220W\230B\230i\240q\330\014\r\360\010\000\t\r\210A\330\010\014\210A\330\010\017\210q\330\010\016\210b\220\002\220$\220d\230\"\230B\230a\330\014\017\210t\2201\220C\220s\230!\330\020\025\220Q\330\020\027\220t\2301\230A\330\020\025\220Q\330\021\025\220Q\220c\230\023\230A\330\020\025\220Q\330\020\027\220q\340\020\025\220Q\330\020\025\220Q\360\006\000\t\021\220\004\220B\220a\330\010\020\220\004\220A\220Q\360\n\000\t\014\2101\330\014\024\220F\230\"\230A\330\014\024\220E\230\022\2305\240\002\240!\360\006\000\t\022\220\027\230\002\230)\2401\360\006\000\t\r\210L\230\001\230\032\2404\240q\200A\360\010\000\t\024\2204\220x\230q\240\001\360\006\000\t\023\220!\2203\220a\220s\230!\2301\330\010\024\220A\220S\230\001\230\023\230A\230Q\330\010\021\220\034\230S\240\001\330\010\017\210q\330\010\014\210B\210h\220i\230q\240\001\330\014\017\210q\330\020\023\2204\220q\330\024 \240\001\330\024\033\2301\360\010\000\025\034\2302\230R\230q\240\001\240\021\330\024\033\2301\230E\320!;\2703\270i\300q\360\006\000\025 \230q\330\024\035\230Q\230h\320&K\3101\330\031\"\240!\340\020\034\230A\340\010\013\2104\210q\330\014\027\220q\230\001\330\014\026\220a\220q\330\014\030\230\001\230\021\330\014\023\2201\330\014\017\210q\330\020\033\2301\230A\330\020\031\230\021\340\020\033\2309\240A\240Q\340\010\013\2104\210x\220q\230\001\330\014\025\220Q\220e\320\033?\270r\300\021\340\010\021\220\021\220(\320\032@\300\003\3001\340\010\017\210y\230\007\230y\250\n\260!\200A\360\024\000\t\n\360\022\000\t\025\220A\220[\240\001\240\026\240t\2508\2601\330\010\022\220!\220;\230a\230v\240T\250\030\260\021\330\010\017\210z\230\021\200A\360\026\000\t\r\210D\220\001\330\010\014\210G\2206\230\021\340\010\014\210C\210w\220i\230q\240\001\330\014\026\220c\230\033\240A\240U\250!\330\014\023\2207\230!\2301\360\006\000\t\r\210I\220Z\230q\330\010\021\220\024\220Q\330\010\013\2101\330\014\020\220\007\220s\230%\230q\330\020\023\2206\230\021\230!\330\024\030\230\004\230A\230Q\330\014\020""\220\007\220q\330\020\024\220C\220q\230\001\360\006\000\t\r\210L\230\r\240Q\330\010\014\210C\210q\220\001\330\010\013\2104\210z\230\024\230R\230s\240!\330\014\024\220B\220c\230\024\230R\230q\330\014\020\220\005\220X\230S\240\006\240a\330\020\023\2203\220a\220v\230R\230q\330\024\033\2304\230q\240\001\330\014\020\220\007\220q\330\020\024\220C\220q\230\001\200A\360\022\000\t\r\210I\220Q\220a\330\010\014\210I\220Q\220a\200A\360.\000\t\023\220#\220W\230A\330\010\017\320\017\037\230q\240\t\250\023\250A\250T\260\024\260R\260s\270!\2704\270q\200A\360\n\000\t\026\220Z\230r\240\030\250\021\330\010\023\2208\2302\230X\240Q\330\010\020\320\020$\240A\340\010\014\210K\220q\230\013\2401\320\000\027\220}\240A\330\021\"\240/\260\025\260a\200A\360\020\000\t\n\330\014\026\220e\2302\230Q\330\014\021\220\035\230c\240\024\240X\250Q\250f\260A\330\017\020\340\014\021\220\021\340\010\r\210T\220\030\230\021\230$\230h\240h\250a\250t\2607\270(\300!\3004\300q\360\006\000\t\020\210t\2208\2301\230D\240\t\250\027\260\001\340\010\017\210q\330\022\025\220X\230Q\200A\340\010\017\210q\220\001\220\021\320\000\020\320\020(\250\001\360F\001\000\005\014\2106\220\021\220*\230I\240X\250Q\250c\260\021\320\000\027\220}\240K\250q\330\021 \240\005\240Q\320\004,\250M\270\021\330\022!\240\037\260\001\360$\000\t\021\220\004\320\024$\240A\330\014\023\2204\220q\330\014\023\2204\220q\330\014\022\220$\220k\240\021\240+\250Y\260j\300\001\330\"*\250)\2609\270A\330\014\024\220A\330\n\021\220\021\220)\320\033/\250w\260a\260q\320\000\034\230N\250!\330\017!\320!1\260\025\260a\320\000\037\230~\250Q\330\024\025\200\001\330\004-\250Q\250f\260A\200\001\360\010\000\005\016\210T\220\024\220T\230\033\240D\250\004\250D\260\006\260d\270(\300$\300k\320QU\320Ub\320bf\320fo\320os\360\000\000t\001F\002\360\000\000F\002J\002\360\000\000J\002K\002\330\004\014\210G\2201\220F\230,\240a\330\004\007\200v\210W\220E\230\024\230Q\330\010\022\220!\330\010\027\220q\340\010\027\220t\2303\230g\240U\250#\250T\260\023\260G\2705\300\003\3004\300u\310G""\320SX\320X[\320[_\320_f\320fm\320mr\320ru\320uy\360\000\000z\001D\002\360\000\000D\002K\002\360\000\000K\002P\002\360\000\000P\002S\002\360\000\000S\002W\002\360\000\000W\002c\002\360\000\000c\002j\002\360\000\000j\002o\002\360\000\000o\002r\002\360\000\000r\002v\002\360\000\000v\002~\002\360\000\000~\002E\003\360\000\000E\003J\003\360\000\000J\003M\003\360\000\000M\003Q\003\360\000\000Q\003b\003\360\000\000b\003i\003\360\000\000i\003n\003\360\000\000n\003q\003\360\000\000q\003u\003\360\000\000u\003~\003\360\000\000~\003E\004\360\000\000E\004F\004\330\004\007\200q\330\010\017\320\0170\260\004\260A\260W\270K\300w\310a\340\010\017\320\0170\260\004\260A\260W\270K\300q\210\001\200\001\320\004\027\220\177\240a\360(\000\t\r\210L\230\001\330\010\014\210L\230\001\200\001\360\006\000\005\021\220\006\220b\230\001\330\004\r\210U\220\"\220A\330\004\007\200t\2101\330\010\025\220Q\330\004\007\200w\210c\220\021\330\010\017\210t\2207\230!\2301\330\004\013\2107\220'\230\021\230+\240Z\250r\260\027\270\002\270!\200\001\360\006\000\005\021\220\006\220b\230\001\330\004\r\210U\220\"\220A\330\004\007\200w\210c\220\021\330\010\017\210t\2207\230!\2301\330\004\007\200t\2101\330\010\025\220Q\330\004\013\2107\220'\230\021\230+\240Q\320\004\026\220j\320 0\260\001\330\032\033\360\026\000\t\r\210L\230\001\330\010\014\210O\2301\330\010\014\210M\230\021\330\010\014\210M\230\021\320\004*\250,\260j\300\001\330\023\024\360&\000\t\r\210M\230\021\360\010\000\t\023\220*\230D\320 5\260Q\260j\300\001\360\006\000\t\014\2101\330\014\034\230A\340\014\034\230A\330\010\020\220\006\220a\220z\240\030\250\036\260y\300\004\300A\330\026\037\230t\2401\360\006\000\t\014\2104\210q\330\014\024\220D\230\016\240a\240q\360\006\000\t\022\220\027\230\013\2404\240\177\260a\260q\360\006\000\t\022\220\027\230\t\240\032\250:\260T\270\037\310\001\330\014\025\220W\230I\240X\250Q\340\010\014\210A\330\010\016\320\016B\300!\340\010\014\210E\220\025\220a\220s\230!\2301\330\014\017\210x\220q\230\003\2303\230a\360\006\000\021\024\2202""\220R\220q\330\024\025\220W\230A\230Q\340\020\021\220\027\230\002\230$\230c\240\027\250\001\250\023\250I\260Q\260c\270\030\300\021\300!\330+4\260A\260S\270\006\270a\270q\330\010\013\2109\220C\220q\330\014\031\320\031<\270A\340\020>\270b\300\001\330\020\021\330\020>\270b\300\001\340\014\031\230\021\340\010\020\220\004\320\024%\240Q\330\014\026\220b\230\005\230Q\230a\330\014\027\220q\330\014\023\2204\220x\230q\240\001\340\010\017\210u\220H\230A\230V\320#=\270Q\330\034\035\230V\320#=\270Q\330\034\035\230V\320#=\270Q\330\034\035\230U\240*\250A\330\034\035\230U\240!\200\001\340\004\037\230q\320 0\260\013\270;\300k\320QR\330\004\023\220?\240(\250!\2501\330\004\007\200|\2207\230!\330\0101\260\021\3202D\300N\320RS\330\004\013\2101\320\000\027\220q\360\034\000\005\010\200t\2103\210a\340\010\017\210t\2206\230\023\230C\230q\360\006\000\005\014\2103\210a\210v\220W\230A\200\001\360\016\000\005\010\200r\210\024\210T\220\032\2301\230A\230Q\230d\240!\330\010\016\210i\220q\230\001\330\031\035\230Q\230a\230q\240\003\240;\250a\250q\260\001\330\004\007\200r\210\024\210T\220\032\2301\230A\230Q\230d\240!\330\010\016\210i\220q\230\001\330\031\035\230Q\230a\230q\240\003\240;\250a\250q\260\001\330\004\007\200z\220\021\220#\220Q\330\010\016\210i\220q\320\030F\300a\330\030\034\230A\230R\230q\330\004\007\200z\220\021\220#\220Q\330\010\016\210i\220q\320\030F\300a\330\030\034\230A\230R\230q\330\004\010\210\007\210q\330\010\013\2104\210z\230\021\230%\230q\330\014\022\220)\2301\320\034D\300A";
    PyObject *data = NULL;
    CYTHON_UNUSED_VAR(__Pyx_DecompressString);
    #endif
    PyObject **stringtab = __pyx_mstate->__pyx_string_tab;
    Py_ssize_t pos = 0;
    for (int i = 0; i < 474; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 128) PyUnicode_InternInPlace(&string);
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
      stringtab[i] = string;
      pos += bytes_length;
    }
    for (int i = 474; i < 518; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length);
      stringtab[i] = string;
      pos += bytes_length;
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    Py_XDECREF(data);
    for (Py_ssize_t i = 0; i < 518; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 474;
      for (Py_ssize_t i=0; i<44; ++i) {
        #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
        #if PY_VERSION_HEX < 0x030E0000
        if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
        #else
        if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
        #endif
        {
          Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
        }
        #else
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
        #endif
      }
    }
    #endif
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab;
    double const c_constants[] = {0.0,0.6,1.0};
    for (int i = 0; i < 3; i++) {
      numbertab[i] = PyFloat_FromDouble(c_constants[i]);
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab + 3;
    int8_t const cint_constants_1[] = {0,1,2,3,5,8};
    int32_t const cint_constants_4[] = {110135760L};
    for (int i = 0; i < 7; i++) {
      numbertab[i] = PyLong_FromLong((i < 6 ? cint_constants_1[i - 0] : cint_constants_4[i - 6]));
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_number_tab;
    for (Py_ssize_t i=0; i<10; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      }
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_codeobjects ### */
typedef struct {
    unsigned int argcount : 4;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 6;
    unsigned int flags : 10;
    unsigned int first_line : 12;
} __Pyx_PyCode_New_function_description;
/* NewCodeObj.proto */
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
);


static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) {
  PyObject* tuple_dedup_map = PyDict_New();
  if (unlikely(!tuple_dedup_map)) return -1;
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 67};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_wrap, __pyx_mstate->__pyx_kp_b_iso88591_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 566};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_codes, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_i1, __pyx_mstate->__pyx_n_u_i2, __pyx_mstate->__pyx_n_u_j1, __pyx_mstate->__pyx_n_u_j2, __pyx_mstate->__pyx_n_u_nn, __pyx_mstate->__pyx_n_u_group};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_get_grouped_opcodes, __pyx_mstate->__pyx_kp_b_iso88591_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 639};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_triple};
    __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 741};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_c, __pyx_mstate->__pyx_n_u_tag_c};
    __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__48, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 856};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_cruncher, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_alo, __pyx_mstate->__pyx_n_u_ahi, __pyx_mstate->__pyx_n_u_blo, __pyx_mstate->__pyx_n_u_bhi, __pyx_mstate->__pyx_n_u_g};
    __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_compare, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 897};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_lo, __pyx_mstate->__pyx_n_u_hi, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_dump, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 902};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_alo, __pyx_mstate->__pyx_n_u_ahi, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_blo, __pyx_mstate->__pyx_n_u_bhi, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_second, __pyx_mstate->__pyx_n_u_g};
    __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_plain_replace, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 34, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 916};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_alo, __pyx_mstate->__pyx_n_u_ahi, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_blo, __pyx_mstate->__pyx_n_u_bhi, __pyx_mstate->__pyx_n_u_cutoff, __pyx_mstate->__pyx_n_u_cruncher, __pyx_mstate->__pyx_n_u_crqr, __pyx_mstate->__pyx_n_u_cqr, __pyx_mstate->__pyx_n_u_cr, __pyx_mstate->__pyx_n_u_WINDOW, __pyx_mstate->__pyx_n_u_best_i, __pyx_mstate->__pyx_n_u_best_j, __pyx_mstate->__pyx_n_u_dump_i, __pyx_mstate->__pyx_n_u_dump_j, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_aequiv, __pyx_mstate->__pyx_n_u_arange, __pyx_mstate->__pyx_n_u_best_ratio, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_ratio, __pyx_mstate->__pyx_n_u_aelt, __pyx_mstate->__pyx_n_u_belt, __pyx_mstate->__pyx_n_u_atags, __pyx_mstate->__pyx_n_u_btags, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_ai1, __pyx_mstate->__pyx_n_u_ai2, __pyx_mstate->__pyx_n_u_bj1, __pyx_mstate->__pyx_n_u_bj2, __pyx_mstate->__pyx_n_u_la, __pyx_mstate->__pyx_n_u_lb};
    __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_fancy_replace, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1010};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_alo, __pyx_mstate->__pyx_n_u_ahi, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_blo, __pyx_mstate->__pyx_n_u_bhi, __pyx_mstate->__pyx_n_u_g};
    __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_fancy_helper, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1022};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_aline, __pyx_mstate->__pyx_n_u_bline, __pyx_mstate->__pyx_n_u_atags, __pyx_mstate->__pyx_n_u_btags};
    __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_qformat, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 22, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1121};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_fromfile, __pyx_mstate->__pyx_n_u_tofile, __pyx_mstate->__pyx_n_u_fromfiledate, __pyx_mstate->__pyx_n_u_tofiledate, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_lineterm, __pyx_mstate->__pyx_n_u_started, __pyx_mstate->__pyx_n_u_group, __pyx_mstate->__pyx_n_u_fromdate, __pyx_mstate->__pyx_n_u_todate, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_last, __pyx_mstate->__pyx_n_u_file1_range, __pyx_mstate->__pyx_n_u_file2_range, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_i1, __pyx_mstate->__pyx_n_u_i2, __pyx_mstate->__pyx_n_u_j1, __pyx_mstate->__pyx_n_u_j2, __pyx_mstate->__pyx_n_u_line};
    __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_unified_diff, __pyx_mstate->__pyx_kp_b_iso88591_Kq_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1267};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_};
    __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1276};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_};
    __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 27, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1206};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_fromfile, __pyx_mstate->__pyx_n_u_tofile, __pyx_mstate->__pyx_n_u_fromfiledate, __pyx_mstate->__pyx_n_u_tofiledate, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_lineterm, __pyx_mstate->__pyx_n_u_prefix_2, __pyx_mstate->__pyx_n_u_started, __pyx_mstate->__pyx_n_u_group, __pyx_mstate->__pyx_n_u_fromdate, __pyx_mstate->__pyx_n_u_todate, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_last, __pyx_mstate->__pyx_n_u_file1_range, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_i1, __pyx_mstate->__pyx_n_u_i2, __pyx_mstate->__pyx_n_u_, __pyx_mstate->__pyx_n_u_line, __pyx_mstate->__pyx_n_u_file2_range, __pyx_mstate->__pyx_n_u_j1, __pyx_mstate->__pyx_n_u_j2, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_context_diff, __pyx_mstate->__pyx_kp_b_iso88591_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {9, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1305};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dfunc, __pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_fromfile, __pyx_mstate->__pyx_n_u_tofile, __pyx_mstate->__pyx_n_u_fromfiledate, __pyx_mstate->__pyx_n_u_tofiledate, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_lineterm, __pyx_mstate->__pyx_n_u_decode, __pyx_mstate->__pyx_n_u_decode, __pyx_mstate->__pyx_n_u_lines, __pyx_mstate->__pyx_n_u_line};
    __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_diff_bytes, __pyx_mstate->__pyx_kp_b_iso88591_N_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1316};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_s, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_msg};
    __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_decode, __pyx_mstate->__pyx_kp_b_iso88591_A_1G1IQ_a_a_1Ja, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 22, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1372};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_fromlines, __pyx_mstate->__pyx_n_u_tolines, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_linejunk, __pyx_mstate->__pyx_n_u_charjunk, __pyx_mstate->__pyx_n_u_re, __pyx_mstate->__pyx_n_u_change_re, __pyx_mstate->__pyx_n_u_diff_lines_iterator, __pyx_mstate->__pyx_n_u_make_line, __pyx_mstate->__pyx_n_u_make_line, __pyx_mstate->__pyx_n_u_line_iterator, __pyx_mstate->__pyx_n_u_line_iterator, __pyx_mstate->__pyx_n_u_line_pair_iterator, __pyx_mstate->__pyx_n_u_line_pair_iterator, __pyx_mstate->__pyx_n_u_line_pair_iterator_2, __pyx_mstate->__pyx_n_u_lines_to_write, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_contextLines, __pyx_mstate->__pyx_n_u_found_diff, __pyx_mstate->__pyx_n_u_from_line, __pyx_mstate->__pyx_n_u_to_line, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_mdiff, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1447};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_match_object, __pyx_mstate->__pyx_n_u_sub_info};
    __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_record_sub_info, __pyx_mstate->__pyx_kp_b_iso88591_6a_q_V1Bas_e1_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1470};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_lines, __pyx_mstate->__pyx_n_u_num_blanks_pending, __pyx_mstate->__pyx_n_u_num_blanks_to_yield, __pyx_mstate->__pyx_n_u_s, __pyx_mstate->__pyx_n_u_from_line, __pyx_mstate->__pyx_n_u_to_line, __pyx_mstate->__pyx_n_u_line};
    __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_line_iterator, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1558};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_line_iterator_2, __pyx_mstate->__pyx_n_u_fromlines, __pyx_mstate->__pyx_n_u_tolines, __pyx_mstate->__pyx_n_u_from_line, __pyx_mstate->__pyx_n_u_to_line, __pyx_mstate->__pyx_n_u_found_diff, __pyx_mstate->__pyx_n_u_fromDiff, __pyx_mstate->__pyx_n_u_to_diff};
    __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_line_pair_iterator, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1414};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_lines, __pyx_mstate->__pyx_n_u_format_key, __pyx_mstate->__pyx_n_u_side, __pyx_mstate->__pyx_n_u_num_lines, __pyx_mstate->__pyx_n_u_text, __pyx_mstate->__pyx_n_u_markers, __pyx_mstate->__pyx_n_u_sub_info, __pyx_mstate->__pyx_n_u_record_sub_info, __pyx_mstate->__pyx_n_u_record_sub_info, __pyx_mstate->__pyx_n_u_key, __pyx_mstate->__pyx_n_u_begin, __pyx_mstate->__pyx_n_u_end};
    __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_make_line, __pyx_mstate->__pyx_kp_b_iso88591_6ar_1_c_IQfE_Qb_c_E_Qd_t1A_q_T, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1805};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_line};
    __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_expand_tabs, __pyx_mstate->__pyx_kp_b_iso88591_4xq_A_4_4q_4xq_A_4xq_T, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1873};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_diffs, __pyx_mstate->__pyx_n_u_fromdata, __pyx_mstate->__pyx_n_u_todata, __pyx_mstate->__pyx_n_u_flag, __pyx_mstate->__pyx_n_u_fromline, __pyx_mstate->__pyx_n_u_fromtext, __pyx_mstate->__pyx_n_u_toline, __pyx_mstate->__pyx_n_u_totext, __pyx_mstate->__pyx_n_u_fromlist, __pyx_mstate->__pyx_n_u_tolist};
    __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_line_wrapper, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2081};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_delta, __pyx_mstate->__pyx_n_u_which, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_prefixes, __pyx_mstate->__pyx_n_u_line};
    __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_restore, __pyx_mstate->__pyx_kp_b_iso88591__49, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 205};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_b};
    __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_set_seqs, __pyx_mstate->__pyx_kp_b_iso88591_A_IQa_IQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 217};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_a};
    __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_set_seq1, __pyx_mstate->__pyx_kp_b_iso88591_A_2S_A_E_t_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 243};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_b};
    __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_set_seq2, __pyx_mstate->__pyx_kp_b_iso88591_A_2S_A_E_t_a_N_Ja, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 287};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_b2j, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_elt, __pyx_mstate->__pyx_n_u_indices, __pyx_mstate->__pyx_n_u_junk, __pyx_mstate->__pyx_n_u_isjunk, __pyx_mstate->__pyx_n_u_popular, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_ntest, __pyx_mstate->__pyx_n_u_idxs};
    __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_chain_b, __pyx_mstate->__pyx_kp_b_iso88591_A_D_G6_Cwiq_c_AU_7_1_IZq_Q_1_s_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 616};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_matches, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_ratio, __pyx_mstate->__pyx_kp_b_iso88591_A_WA_q_AT_Rs_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_state, __pyx_mstate->__pyx_n_u_dict_2, __pyx_mstate->__pyx_n_u_use_setstate};
    __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_T_T_D_D_d_kQUUbbffoos_t_F_F_J_J, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 687};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_word, __pyx_mstate->__pyx_n_u_possibilities, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_cutoff, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_s, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_ratio, __pyx_mstate->__pyx_n_u_score, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_get_close_matches, __pyx_mstate->__pyx_kp_b_iso88591_5_t2S_j_0_t4s_A_j_q_Q_q_Yaq_Q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 738};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_s, __pyx_mstate->__pyx_n_u_tag_s, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_keep_original_ws, __pyx_mstate->__pyx_kp_b_iso88591_2U, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 833};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_linejunk, __pyx_mstate->__pyx_n_u_charjunk};
    __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_a_L_L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1066};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_line, __pyx_mstate->__pyx_n_u_pat};
    __pyx_mstate_global->__pyx_codeobj_tab[34] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_IS_LINE_JUNK, __pyx_mstate->__pyx_kp_b_iso88591_q_t3a_t6_Cq_3avWA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[34])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1087};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ch, __pyx_mstate->__pyx_n_u_ws};
    __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_IS_CHARACTER_JUNK, __pyx_mstate->__pyx_kp_b_iso88591_3c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1110};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_stop, __pyx_mstate->__pyx_n_u_beginning, __pyx_mstate->__pyx_n_u_length};
    __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_format_range_unified, __pyx_mstate->__pyx_kp_b_iso88591_b_U_A_wc_t7_1_t1_Q_7_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1194};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_stop, __pyx_mstate->__pyx_n_u_beginning, __pyx_mstate->__pyx_n_u_length};
    __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_format_range_context, __pyx_mstate->__pyx_kp_b_iso88591_b_U_A_t1_Q_wc_t7_1_7_Zr, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS), 1282};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_arg};
    __pyx_mstate_global->__pyx_codeobj_tab[38] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_check_types, __pyx_mstate->__pyx_kp_b_iso88591_r_T_1AQd_iq_Qaq_aq_r_T_1AQd_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[38])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1335};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_a, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_linejunk, __pyx_mstate->__pyx_n_u_charjunk};
    __pyx_mstate_global->__pyx_codeobj_tab[39] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_ndiff, __pyx_mstate->__pyx_kp_b_iso88591_F_6_IXQc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[39])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1751};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tabsize, __pyx_mstate->__pyx_n_u_wrapcolumn, __pyx_mstate->__pyx_n_u_linejunk, __pyx_mstate->__pyx_n_u_charjunk};
    __pyx_mstate_global->__pyx_codeobj_tab[40] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_j_0_L_O1_M_M, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[40])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 1, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1768};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_fromlines, __pyx_mstate->__pyx_n_u_tolines, __pyx_mstate->__pyx_n_u_fromdesc, __pyx_mstate->__pyx_n_u_todesc, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_numlines, __pyx_mstate->__pyx_n_u_charset};
    __pyx_mstate_global->__pyx_codeobj_tab[41] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_make_file, __pyx_mstate->__pyx_kp_b_iso88591_M_A_4q_4q_k_Yj_9A_A_waq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[41])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1795};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_fromlines, __pyx_mstate->__pyx_n_u_tolines, __pyx_mstate->__pyx_n_u_expand_tabs, __pyx_mstate->__pyx_n_u_expand_tabs, __pyx_mstate->__pyx_n_u_line, __pyx_mstate->__pyx_n_u_line};
    __pyx_mstate_global->__pyx_codeobj_tab[42] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_tab_newline_replace, __pyx_mstate->__pyx_kp_b_iso88591_A_A_t81_avT_z, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[42])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1818};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_data_list, __pyx_mstate->__pyx_n_u_line_num, __pyx_mstate->__pyx_n_u_text, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_max, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_mark, __pyx_mstate->__pyx_n_u_line1, __pyx_mstate->__pyx_n_u_line2};
    __pyx_mstate_global->__pyx_codeobj_tab[43] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_split_line, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_WBiq_s_1_d_E_E_e2T_q_Qd_Q_W, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[43])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1901};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_diffs, __pyx_mstate->__pyx_n_u_fromlist, __pyx_mstate->__pyx_n_u_tolist, __pyx_mstate->__pyx_n_u_flaglist, __pyx_mstate->__pyx_n_u_fromdata, __pyx_mstate->__pyx_n_u_todata, __pyx_mstate->__pyx_n_u_flag};
    __pyx_mstate_global->__pyx_codeobj_tab[44] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_collect_lines, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_IWHA_q_M_F_gQd_q_q_gQa_G1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[44])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1922};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_side, __pyx_mstate->__pyx_n_u_flag, __pyx_mstate->__pyx_n_u_linenum, __pyx_mstate->__pyx_n_u_text, __pyx_mstate->__pyx_n_u_id_2};
    __pyx_mstate_global->__pyx_codeobj_tab[45] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_format_line, __pyx_mstate->__pyx_kp_b_iso88591_A_e2Q_c_XQfA_T_hhat7_4q_t81D_q_X, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[45])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1945};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_fromprefix, __pyx_mstate->__pyx_n_u_toprefix};
    __pyx_mstate_global->__pyx_codeobj_tab[46] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_make_prefix, __pyx_mstate->__pyx_kp_b_iso88591_A_Zr_82XQ_A_Kq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[46])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1956};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_fromlist, __pyx_mstate->__pyx_n_u_tolist, __pyx_mstate->__pyx_n_u_flaglist, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_numlines, __pyx_mstate->__pyx_n_u_toprefix, __pyx_mstate->__pyx_n_u_next_id, __pyx_mstate->__pyx_n_u_next_href, __pyx_mstate->__pyx_n_u_num_chg, __pyx_mstate->__pyx_n_u_in_change, __pyx_mstate->__pyx_n_u_last, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_flag};
    __pyx_mstate_global->__pyx_codeobj_tab[47] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_convert_flags, __pyx_mstate->__pyx_kp_b_iso88591_A_4xq_3as_1_AS_AQ_S_q_Bhiq_q_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[47])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 19, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2003};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_fromlines, __pyx_mstate->__pyx_n_u_tolines, __pyx_mstate->__pyx_n_u_fromdesc, __pyx_mstate->__pyx_n_u_todesc, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_numlines, __pyx_mstate->__pyx_n_u_context_lines, __pyx_mstate->__pyx_n_u_diffs, __pyx_mstate->__pyx_n_u_fromlist, __pyx_mstate->__pyx_n_u_tolist, __pyx_mstate->__pyx_n_u_flaglist, __pyx_mstate->__pyx_n_u_next_href, __pyx_mstate->__pyx_n_u_next_id, __pyx_mstate->__pyx_n_u_s, __pyx_mstate->__pyx_n_u_fmt, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_header_row, __pyx_mstate->__pyx_n_u_table};
    __pyx_mstate_global->__pyx_codeobj_tab[48] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_lxml_html__difflib_py, __pyx_mstate->__pyx_n_u_make_table, __pyx_mstate->__pyx_kp_b_iso88591_j_M_D_5Qj_1_A_A_az_y_A_t1_4q_D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[48])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pyx_type, __pyx_mstate->__pyx_n_u_pyx_checksum, __pyx_mstate->__pyx_n_u_pyx_state, __pyx_mstate->__pyx_n_u_pyx_result};
    __pyx_mstate_global->__pyx_codeobj_tab[49] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_pyx_unpickle_SequenceMatcher, __pyx_mstate->__pyx_kp_b_iso88591_q_0_kQR_1_7_1_2DNRS_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[49])) goto bad;
  }
  Py_DECREF(tuple_dedup_map);
  return 0;
  bad:
  Py_DECREF(tuple_dedup_map);
  return -1;
}
/* #### Code section: init_globals ### */

static int __Pyx_InitGlobals(void) {
  /* PythonCompatibility.init */
  if (likely(__Pyx_init_co_variables() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CommonTypesMetaclass.init */
  if (likely(__pyx_CommonTypesMetaclass_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CachedMethodType.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *typesModule=NULL;
      typesModule = PyImport_ImportModule("types");
      if (typesModule) {
          __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType");
          Py_DECREF(typesModule);
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CythonFunctionShared.init */
  if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* Generator.init */
  if (likely(__pyx_Generator_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* AssertionsEnabled.init */
  if (likely(__Pyx_init_assertions_enabled() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cleanup_globals ### */

static void __Pyx_CleanupGlobals(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  /* CachedMethodType.cleanup */
  #if CYTHON_COMPILING_IN_LIMITED_API
  Py_CLEAR(__pyx_mstate_global->__Pyx_CachedMethodType);
  #endif
  
/* CodeObjectCache.cleanup */
  {
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
    if (code_cache->entries) {
        __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
        int i, count = code_cache->count;
        code_cache->count = 0;
        code_cache->max_count = 0;
        code_cache->entries = NULL;
        for (i=0; i<count; i++) {
            Py_DECREF(entries[i].code_object);
        }
        PyMem_Free(entries);
    }
  }
  
Py_CLEAR(__pyx_mstate->__pyx_umethod_PyDict_Type_get.method);
  Py_CLEAR(__pyx_mstate->__pyx_umethod_PyDict_Type_items.method);
  Py_CLEAR(__pyx_mstate->__pyx_umethod_PyDict_Type_pop.method);
  Py_CLEAR(__pyx_mstate->__pyx_umethod_PyDict_Type_values.method);
  Py_CLEAR(__pyx_mstate->__pyx_umethod_PyList_Type_pop.method);
  for (size_t i=0; i<2; ++i) { Py_CLEAR(__pyx_mstate->__pyx_slice[i]); }
  for (size_t i=0; i<32; ++i) { Py_CLEAR(__pyx_mstate->__pyx_tuple[i]); }
}
/* #### Code section: cleanup_module ### */
static void __pyx_module_cleanup(CYTHON_UNUSED PyObject *self) {
  __pyx_mstatetype *__pyx_mstate;
  #if CYTHON_USE_MODULE_STATE
  if (!__Pyx_State_FindModule(&__pyx_moduledef)) return;
  #endif
  __pyx_mstate = __Pyx_PyModule_GetState(self);
  /*--- Global cleanup code ---*/
  __Pyx_CleanupGlobals(__pyx_mstate);
  /*--- Type import cleanup code ---*/
  /*--- Builtin cleanup code ---*/
  Py_CLEAR(__pyx_builtin_object);
  Py_CLEAR(__pyx_builtin_enumerate);
  Py_CLEAR(__pyx_builtin_map);
  Py_CLEAR(__pyx_builtin_sum);
  Py_CLEAR(__pyx_builtin_zip);
  Py_CLEAR(__pyx_builtin_reversed);
  /*--- Intern cleanup code ---*/
  Py_CLEAR(__pyx_mstate->__pyx_empty_tuple);
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct__get_grouped_opcodes];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_1_genexpr];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_2_genexpr];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_3_compare > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_3_compare[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_3_compare];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_4__dump > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_4__dump[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_4__dump];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_5__plain_replace];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_6__fancy_replace];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_7__fancy_helper];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_8__qformat];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_9_unified_diff];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_10_context_diff];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_11_genexpr];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_12_genexpr];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_13_diff_bytes];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_14__mdiff];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_15__line_iterator];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_16__line_pair_iterator];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_17__tab_newline_replace];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_18__line_wrapper];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_19_restore > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist_4lxml_4html_8_difflib___pyx_scope_struct_19_restore[--__pyx_mstate->__pyx_freecount_4lxml_4html_8_difflib___pyx_scope_struct_19_restore];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  #if CYTHON_USE_FREELISTS
  while (__pyx_mstate->__pyx_freecount___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self > 0) {
    PyObject* o = (PyObject*)__pyx_mstate->__pyx_freelist___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self[--__pyx_mstate->__pyx_freecount___pyx_scope_struct____Pyx_CFunc_8c8a55__4lxml_4html_8_difflib_15SequenceMatcher_double__etc_to_py_4self];
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
  #endif
  Py_CLEAR(__pyx_mstate->__pyx_cython_runtime);
  Py_CLEAR(__pyx_mstate->__pyx_b);
  Py_CLEAR(__pyx_mstate->__pyx_d);
}
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyErrFetchRestore (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#endif
}
#endif

/* PyObjectGetAttrStr (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
#endif
}

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
            "name '%U' is not defined", name);
    }
    return result;
}

/* TupleAndListFromArray (used by fastcall) */
#if !CYTHON_COMPILING_IN_CPYTHON && CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    Py_ssize_t i;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    for (i = 0; i < n; i++) {
        Py_INCREF(src[i]);
        if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
    }
    return res;
}
#elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL ||\
        !(CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS)
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length, length2;
        int kind;
        void *data1, *data2;
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        #endif
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length < 0)) return -1;
        #endif
        length2 = __Pyx_PyUnicode_GET_LENGTH(s2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length2 < 0)) return -1;
        #endif
        if (length != length2) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    return (equals == Py_EQ);
return_ne:
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(n == -1)) return NULL;
    #endif
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        if (s == namei) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        int eq = __Pyx_PyUnicode_Equals(s, namei, Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs;
    PyObject *dict;
#if !CYTHON_ASSUME_SAFE_SIZE
    nkwargs = PyTuple_Size(kwnames);
    if (unlikely(nkwargs < 0)) return NULL;
#else
    nkwargs = PyTuple_GET_SIZE(kwnames);
#endif
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
#if !CYTHON_ASSUME_SAFE_MACROS
        PyObject *key = PyTuple_GetItem(kwnames, i);
        if (!key) goto bad;
#else
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
#endif
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* PyObjectCall (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallMethO (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall (used by PyObjectCallOneArg) */
#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API
  #if PY_VERSION_HEX < 0x03090000
    #define __Pyx_PyVectorcall_Function(callable) _PyVectorcall_Function(callable)
  #elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) {
    PyTypeObject *tp = Py_TYPE(callable);
    #if defined(__Pyx_CyFunction_USED)
    if (__Pyx_CyFunction_CheckExact(callable)) {
        return __Pyx_CyFunction_func_vectorcall(callable);
    }
    #endif
    if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
        return NULL;
    }
    assert(PyCallable_Check(callable));
    Py_ssize_t offset = tp->tp_vectorcall_offset;
    assert(offset > 0);
    vectorcallfunc ptr;
    memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
    return ptr;
}
  #else
    #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable)
  #endif
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
          #if CYTHON_COMPILING_IN_LIMITED_API
            return PyObject_Vectorcall(func, args, _nargs, NULL);
          #else
            vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
            if (f) {
                return f(func, args, _nargs, NULL);
            }
          #endif
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs);
    }
    #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
    #else
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #endif
}

/* PyObjectCallOneArg (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* UnpackUnboundCMethod (used by CallUnboundCMethod0) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) {
    PyObject *result;
    PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args));
    if (unlikely(!selfless_args)) return NULL;
    result = PyObject_Call(method, selfless_args, kwargs);
    Py_DECREF(selfless_args);
    return result;
}
#elif CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) {
        return _PyObject_Vectorcall
            (method, args ? args+1 : NULL, nargs ? nargs-1 : 0, kwnames);
}
#else
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
    return
#if PY_VERSION_HEX < 0x03090000
    _PyObject_Vectorcall
#else
    PyObject_Vectorcall
#endif
        (method, args ? args+1 : NULL, nargs ? (size_t) nargs-1 : 0, kwnames);
}
#endif
static PyMethodDef __Pyx_UnboundCMethod_Def = {
     "CythonUnboundCMethod",
     __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall),
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
     METH_VARARGS | METH_KEYWORDS,
#else
     METH_FASTCALL | METH_KEYWORDS,
#endif
     NULL
};
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method, *result=NULL;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    result = method;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    } else
#endif
#if CYTHON_COMPILING_IN_PYPY
#else
    if (PyCFunction_Check(method))
#endif
    {
        PyObject *self;
        int self_found;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        self = PyObject_GetAttrString(method, "__self__");
        if (!self) {
            PyErr_Clear();
        }
#else
        self = PyCFunction_GET_SELF(method);
#endif
        self_found = (self && self != Py_None);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        Py_XDECREF(self);
#endif
        if (self_found) {
            PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method);
            if (unlikely(!unbound_method)) return -1;
            Py_DECREF(method);
            result = unbound_method;
        }
    }
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    if (unlikely(target->method)) {
        Py_DECREF(result);
    } else
#endif
    target->method = result;
    return 0;
}

/* CallUnboundCMethod0 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        if (likely(cfunc->flag == METH_NOARGS))
            return __Pyx_CallCFunction(cfunc, self, NULL);
        if (likely(cfunc->flag == METH_FASTCALL))
            return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0);
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL);
        if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS)))
            return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
        if (cfunc->flag == METH_VARARGS)
            return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple);
        return __Pyx__CallUnboundCMethod0(cfunc, self);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *result;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
    result = __Pyx_PyObject_CallOneArg(cfunc->method, self);
    return result;
}

/* py_dict_items (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_items, d);
}

/* py_dict_values (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_values, d);
}

/* OwnedDictNext (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue) {
    PyObject *next = NULL;
    if (!*ppos) {
        if (pvalue) {
            PyObject *dictview = pkey ? __Pyx_PyDict_Items(p) : __Pyx_PyDict_Values(p);
            if (unlikely(!dictview)) goto bad;
            *ppos = PyObject_GetIter(dictview);
            Py_DECREF(dictview);
        } else {
            *ppos = PyObject_GetIter(p);
        }
        if (unlikely(!*ppos)) goto bad;
    }
    next = PyIter_Next(*ppos);
    if (!next) {
        if (PyErr_Occurred()) goto bad;
        return 0;
    }
    if (pkey && pvalue) {
        *pkey = __Pyx_PySequence_ITEM(next, 0);
        if (unlikely(*pkey)) goto bad;
        *pvalue = __Pyx_PySequence_ITEM(next, 1);
        if (unlikely(*pvalue)) goto bad;
        Py_DECREF(next);
    } else if (pkey) {
        *pkey = next;
    } else {
        assert(pvalue);
        *pvalue = next;
    }
    return 1;
  bad:
    Py_XDECREF(next);
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
    PyErr_FormatUnraisable("Exception ignored in __Pyx_PyDict_NextRef");
#else
    PyErr_WriteUnraisable(__pyx_mstate_global->__pyx_n_u_Pyx_PyDict_NextRef);
#endif
    if (pkey) *pkey = NULL;
    if (pvalue) *pvalue = NULL;
    return 0;
}
#else // !CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) {
    int result = PyDict_Next(p, ppos, pkey, pvalue);
    if (likely(result == 1)) {
        if (pkey) Py_INCREF(*pkey);
        if (pvalue) Py_INCREF(*pvalue);
    }
    return result;
}
#endif

/* RaiseDoubleKeywords (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, args, 2);
        }
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, 2, NULL);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod2(&tmp_cfunc, self, arg1, arg2);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *result = NULL;
        PyObject *args = PyTuple_New(2);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
        return result;
    }
#endif
    {
        PyObject *args[4] = {NULL, self, arg1, arg2};
        return __Pyx_PyObject_FastCall(cfunc->method, args+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
    }
}

/* ParseKeywordsImpl (used by ParseKeywords) */
static int __Pyx_ValidateDuplicatePosArgs(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char* function_name)
{
    PyObject ** const *name = argnames;
    while (name != first_kw_arg) {
        PyObject *key = **name;
        int found = PyDict_Contains(kwds, key);
        if (unlikely(found)) {
            if (found == 1) __Pyx_RaiseDoubleKeywordsError(function_name, key);
            goto bad;
        }
        name++;
    }
    return 0;
bad:
    return -1;
}
#if CYTHON_USE_UNICODE_INTERNALS
static CYTHON_INLINE int __Pyx_UnicodeKeywordsEqual(PyObject *s1, PyObject *s2) {
    int kind;
    Py_ssize_t len = PyUnicode_GET_LENGTH(s1);
    if (len != PyUnicode_GET_LENGTH(s2)) return 0;
    kind = PyUnicode_KIND(s1);
    if (kind != PyUnicode_KIND(s2)) return 0;
    const void *data1 = PyUnicode_DATA(s1);
    const void *data2 = PyUnicode_DATA(s2);
    return (memcmp(data1, data2, (size_t) len * (size_t) kind) == 0);
}
#endif
static int __Pyx_MatchKeywordArg_str(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    #if CYTHON_USE_UNICODE_INTERNALS
    Py_hash_t key_hash = ((PyASCIIObject*)key)->hash;
    if (unlikely(key_hash == -1)) {
        key_hash = PyObject_Hash(key);
        if (unlikely(key_hash == -1))
            goto bad;
    }
    #endif
    name = first_kw_arg;
    while (*name) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (key_hash == ((PyASCIIObject*)name_str)->hash && __Pyx_UnicodeKeywordsEqual(name_str, key)) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) {
                *index_found = (size_t) (name - argnames);
                return 1;
            }
        }
        #endif
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (unlikely(key_hash == ((PyASCIIObject*)name_str)->hash)) {
            if (__Pyx_UnicodeKeywordsEqual(name_str, key))
                goto arg_passed_twice;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            if (unlikely(name_str == key)) goto arg_passed_twice;
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) goto arg_passed_twice;
        }
        #endif
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
bad:
    return -1;
}
static int __Pyx_MatchKeywordArg_nostr(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type;
    name = first_kw_arg;
    while (*name) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (cmp == 1) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        if (unlikely(cmp == -1)) goto bad;
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (unlikely(cmp != 0)) {
            if (cmp == 1) goto arg_passed_twice;
            else goto bad;
        }
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
bad:
    return -1;
}
static CYTHON_INLINE int __Pyx_MatchKeywordArg(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    return likely(PyUnicode_CheckExact(key)) ?
        __Pyx_MatchKeywordArg_str(key, argnames, first_kw_arg, index_found, function_name) :
        __Pyx_MatchKeywordArg_nostr(key, argnames, first_kw_arg, index_found, function_name);
}
static void __Pyx_RejectUnknownKeyword(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char *function_name)
{
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos = NULL;
    #else
    Py_ssize_t pos = 0;
    #endif
    PyObject *key = NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(kwds);
    while (
        #if CYTHON_AVOID_BORROWED_REFS
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL)
        #else
        PyDict_Next(kwds, &pos, &key, NULL)
        #endif
    ) {
        PyObject** const *name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (!*name) {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp != 1) {
                if (cmp == 0) {
                    PyErr_Format(PyExc_TypeError,
                        "%s() got an unexpected keyword argument '%U'",
                        function_name, key);
                }
                #if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(key);
                #endif
                break;
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        #endif
    }
    __Pyx_END_CRITICAL_SECTION();
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(pos);
    #endif
    assert(PyErr_Occurred());
}
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t extracted = 0;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    name = first_kw_arg;
    while (*name && num_kwargs > extracted) {
        PyObject * key = **name;
        PyObject *value;
        int found = 0;
        #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        found = PyDict_GetItemRef(kwds, key, &value);
        #else
        value = PyDict_GetItemWithError(kwds, key);
        if (value) {
            Py_INCREF(value);
            found = 1;
        } else {
            if (unlikely(PyErr_Occurred())) goto bad;
        }
        #endif
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            extracted++;
        }
        name++;
    }
    if (num_kwargs > extracted) {
        if (ignore_unknown_kwargs) {
            if (unlikely(__Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name) == -1))
                goto bad;
        } else {
            __Pyx_RejectUnknownKeyword(kwds, argnames, first_kw_arg, function_name);
            goto bad;
        }
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t len;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    if (PyDict_Update(kwds2, kwds) < 0) goto bad;
    name = first_kw_arg;
    while (*name) {
        PyObject *key = **name;
        PyObject *value;
#if !CYTHON_COMPILING_IN_LIMITED_API && (PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop))
        int found = PyDict_Pop(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
        }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        int found = PyDict_GetItemRef(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            if (unlikely(PyDict_DelItem(kwds2, key) < 0)) goto bad;
        }
#else
    #if CYTHON_COMPILING_IN_CPYTHON
        value = _PyDict_Pop(kwds2, key, kwds2);
    #else
        value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, kwds2, key, kwds2);
    #endif
        if (value == kwds2) {
            Py_DECREF(value);
        } else {
            if (unlikely(!value)) goto bad;
            values[name-argnames] = value;
        }
#endif
        name++;
    }
    len = PyDict_Size(kwds2);
    if (len > 0) {
        return __Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name);
    } else if (unlikely(len == -1)) {
        goto bad;
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject *key = NULL;
    PyObject** const * name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    for (Py_ssize_t pos = 0; pos < num_kwargs; pos++) {
#if CYTHON_AVOID_BORROWED_REFS
        key = __Pyx_PySequence_ITEM(kwds, pos);
#else
        key = __Pyx_PyTuple_GET_ITEM(kwds, pos);
#endif
#if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!key)) goto bad;
#endif
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            PyObject *value = kwvalues[pos];
            values[name-argnames] = __Pyx_NewRef(value);
        } else {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp == 1) {
                PyObject *value = kwvalues[pos];
                values[index_found] = __Pyx_NewRef(value);
            } else {
                if (unlikely(cmp == -1)) goto bad;
                if (kwds2) {
                    PyObject *value = kwvalues[pos];
                    if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
                } else if (!ignore_unknown_kwargs) {
                    goto invalid_keyword;
                }
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        key = NULL;
        #endif
    }
    return 0;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    goto bad;
bad:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(key);
    #endif
    return -1;
}

/* ParseKeywords */
static int __Pyx_ParseKeywords(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds)))
        return __Pyx_ParseKeywordsTuple(kwds, kwvalues, argnames, kwds2, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
    else if (kwds2)
        return __Pyx_ParseKeywordDictToDict(kwds, argnames, kwds2, values, num_pos_args, function_name);
    else
        return __Pyx_ParseKeywordDict(kwds, argnames, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* ArgTypeTestFunc (used by ArgTypeTest) */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    __Pyx_TypeName type_name;
    __Pyx_TypeName obj_type_name;
    PyObject *extra_info = __pyx_mstate_global->__pyx_empty_unicode;
    int from_annotation_subclass = 0;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (!exact) {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    } else if (exact == 2) {
        if (__Pyx_TypeCheck(obj, type)) {
            from_annotation_subclass = 1;
            extra_info = __pyx_mstate_global->__pyx_kp_u_Note_that_Cython_is_deliberately;
        }
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME
        ", got " __Pyx_FMT_TYPENAME ")"
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        "%s%U"
#endif
        , name, type_name, obj_type_name
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        , (from_annotation_subclass ? ". " : ""), extra_info
#endif
        );
#if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    if (exact == 2 && from_annotation_subclass) {
        PyObject *res;
        PyObject *vargs[2];
        vargs[0] = PyErr_GetRaisedException();
        vargs[1] = extra_info;
        res = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_kp_u_add_note, vargs, 2, NULL);
        Py_XDECREF(res);
        PyErr_SetRaisedException(vargs[0]);
    }
#endif
    __Pyx_DECREF_TypeName(type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* dict_setdefault (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) {
    PyObject* value;
#if __PYX_LIMITED_VERSION_HEX >= 0x030F0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4)
    PyDict_SetDefaultRef(d, key, default_value, &value);
#elif CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    PyObject *args[] = {d, key, default_value};
    value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL);
#else
    value = PyDict_SetDefault(d, key, default_value);
    if (unlikely(!value)) return NULL;
    Py_INCREF(value);
#endif
    return value;
}

/* LimitedApiGetTypeDict (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static Py_ssize_t __Pyx_GetTypeDictOffset(void) {
    PyObject *tp_dictoffset_o;
    Py_ssize_t tp_dictoffset;
    tp_dictoffset_o = PyObject_GetAttrString((PyObject*)(&PyType_Type), "__dictoffset__");
    if (unlikely(!tp_dictoffset_o)) return -1;
    tp_dictoffset = PyLong_AsSsize_t(tp_dictoffset_o);
    Py_DECREF(tp_dictoffset_o);
    if (unlikely(tp_dictoffset == 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' doesn't have a dictoffset");
        return -1;
    } else if (unlikely(tp_dictoffset < 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' has an unexpected negative dictoffset. "
            "Please report this as Cython bug");
        return -1;
    }
    return tp_dictoffset;
}
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) {
    static Py_ssize_t tp_dictoffset = 0;
    if (unlikely(tp_dictoffset == 0)) {
        tp_dictoffset = __Pyx_GetTypeDictOffset();
        if (unlikely(tp_dictoffset == -1 && PyErr_Occurred())) {
            tp_dictoffset = 0; // try again next time?
            return NULL;
        }
    }
    return *(PyObject**)((char*)tp + tp_dictoffset);
}
#endif

/* SetItemOnTypeDict (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_SetItem(tp_dict, k, v);
    if (likely(!result)) {
        PyType_Modified(tp);
        if (unlikely(PyObject_HasAttr(v, __pyx_mstate_global->__pyx_n_u_set_name))) {
            PyObject *setNameResult = PyObject_CallMethodObjArgs(v, __pyx_mstate_global->__pyx_n_u_set_name,  (PyObject *) tp, k, NULL);
            if (!setNameResult) return -1;
            Py_DECREF(setNameResult);
        }
    }
    return result;
}

/* FixUpExtensionType (used by FetchCommonType) */
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
#if __PYX_LIMITED_VERSION_HEX > 0x030900B1
    CYTHON_UNUSED_VAR(spec);
    CYTHON_UNUSED_VAR(type);
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#else
    const PyType_Slot *slot = spec->slots;
    int changed = 0;
#if !CYTHON_COMPILING_IN_LIMITED_API
    while (slot && slot->slot && slot->slot != Py_tp_members)
        slot++;
    if (slot && slot->slot == Py_tp_members) {
#if !CYTHON_COMPILING_IN_CPYTHON
        const
#endif  // !CYTHON_COMPILING_IN_CPYTHON)
            PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
        while (memb && memb->name) {
            if (memb->name[0] == '_' && memb->name[1] == '_') {
                if (strcmp(memb->name, "__weaklistoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_weaklistoffset = memb->offset;
                    changed = 1;
                }
                else if (strcmp(memb->name, "__dictoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_dictoffset = memb->offset;
                    changed = 1;
                }
#if CYTHON_METH_FASTCALL
                else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_vectorcall_offset = memb->offset;
                    changed = 1;
                }
#endif  // CYTHON_METH_FASTCALL
#if !CYTHON_COMPILING_IN_PYPY
                else if (strcmp(memb->name, "__module__") == 0) {
                    PyObject *descr;
                    assert(memb->type == T_OBJECT);
                    assert(memb->flags == 0 || memb->flags == READONLY);
                    descr = PyDescr_NewMember(type, memb);
                    if (unlikely(!descr))
                        return -1;
                    int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                    Py_DECREF(descr);
                    if (unlikely(set_item_result < 0)) {
                        return -1;
                    }
                    changed = 1;
                }
#endif  // !CYTHON_COMPILING_IN_PYPY
            }
            memb++;
        }
    }
#endif  // !CYTHON_COMPILING_IN_LIMITED_API
#if !CYTHON_COMPILING_IN_PYPY
    slot = spec->slots;
    while (slot && slot->slot && slot->slot != Py_tp_getset)
        slot++;
    if (slot && slot->slot == Py_tp_getset) {
        PyGetSetDef *getset = (PyGetSetDef*) slot->pfunc;
        while (getset && getset->name) {
            if (getset->name[0] == '_' && getset->name[1] == '_' && strcmp(getset->name, "__module__") == 0) {
                PyObject *descr = PyDescr_NewGetSet(type, getset);
                if (unlikely(!descr))
                    return -1;
                #if CYTHON_COMPILING_IN_LIMITED_API
                PyObject *pyname = PyUnicode_FromString(getset->name);
                if (unlikely(!pyname)) {
                    Py_DECREF(descr);
                    return -1;
                }
                int set_item_result = __Pyx_SetItemOnTypeDict(type, pyname, descr);
                Py_DECREF(pyname);
                #else
                CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
                int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                #endif
                Py_DECREF(descr);
                if (unlikely(set_item_result < 0)) {
                    return -1;
                }
                changed = 1;
            }
            ++getset;
        }
    }
#else
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#endif  // !CYTHON_COMPILING_IN_PYPY
    if (changed)
        PyType_Modified(type);
#endif  // PY_VERSION_HEX > 0x030900B1
    return 0;
}

/* AddModuleRef (used by FetchSharedCythonModule) */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) {
      PyObject *module_dict = PyImport_GetModuleDict();
      PyObject *m;
      if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) {
          return NULL;
      }
      if (m != NULL && PyModule_Check(m)) {
          return m;
      }
      Py_XDECREF(m);
      m = PyModule_NewObject(name);
      if (m == NULL)
          return NULL;
      if (PyDict_CheckExact(module_dict)) {
          PyObject *new_m;
          (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m);
          Py_DECREF(m);
          return new_m;
      } else {
           if (PyObject_SetItem(module_dict, name, m) != 0) {
                Py_DECREF(m);
                return NULL;
            }
            return m;
      }
  }
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *py_name = PyUnicode_FromString(name);
      if (!py_name) return NULL;
      PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name);
      Py_DECREF(py_name);
      return module;
  }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#else
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif

/* FetchSharedCythonModule (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    return __Pyx_PyImport_AddModuleRef(__PYX_ABI_MODULE_NAME);
}

/* FetchCommonType (used by CommonTypesMetaclass) */
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject* __Pyx_PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *result = __Pyx_PyType_FromModuleAndSpec(module, spec, bases);
    if (result && metaclass) {
        PyObject *old_tp = (PyObject*)Py_TYPE(result);
    Py_INCREF((PyObject*)metaclass);
#if __PYX_LIMITED_VERSION_HEX >= 0x03090000
        Py_SET_TYPE(result, metaclass);
#else
        result->ob_type = metaclass;
#endif
        Py_DECREF(old_tp);
    }
    return result;
}
#else
#define __Pyx_PyType_FromMetaclass(me, mo, s, b) PyType_FromMetaclass(me, mo, s, b)
#endif
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize) {
    Py_ssize_t basicsize;
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (expected_basicsize == 0) {
        return 0; // size is inherited, nothing useful to check
    }
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
    py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
    if (unlikely(!py_basicsize)) return -1;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = NULL;
    if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1;
#else
    basicsize = ((PyTypeObject*) cached_type)->tp_basicsize;
#endif
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module = NULL, *cached_type = NULL, *abi_module_dict, *new_cached_type, *py_object_name;
    int get_item_ref_result;
    const char* object_name = strrchr(spec->name, '.');
    object_name = object_name ? object_name+1 : spec->name;
    py_object_name = PyUnicode_FromString(object_name);
    if (!py_object_name) return NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) goto done;
    abi_module_dict = PyModule_GetDict(abi_module);
    if (!abi_module_dict) goto done;
    get_item_ref_result = __Pyx_PyDict_GetItemRef(abi_module_dict, py_object_name, &cached_type);
    if (get_item_ref_result == 1) {
        if (__Pyx_VerifyCachedType(
              cached_type,
              object_name,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else if (unlikely(get_item_ref_result == -1)) {
        goto bad;
    }
    cached_type = __Pyx_PyType_FromMetaclass(
        metaclass,
        CYTHON_USE_MODULE_STATE ? module : abi_module,
        spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
    new_cached_type = __Pyx_PyDict_SetDefault(abi_module_dict, py_object_name, cached_type);
    if (unlikely(new_cached_type != cached_type)) {
        if (unlikely(!new_cached_type)) goto bad;
        Py_DECREF(cached_type);
        cached_type = new_cached_type;
        if (__Pyx_VerifyCachedType(
                cached_type,
                object_name,
                spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else {
        Py_DECREF(new_cached_type);
    }
done:
    Py_XDECREF(abi_module);
    Py_DECREF(py_object_name);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* CommonTypesMetaclass (used by CythonFunctionShared) */
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
    return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
}
#if __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject* __pyx_CommonTypesMetaclass_call(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *args, CYTHON_UNUSED PyObject *kwds) {
    PyErr_SetString(PyExc_TypeError, "Cannot instantiate Cython internal types");
    return NULL;
}
static int __pyx_CommonTypesMetaclass_setattr(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *attr, CYTHON_UNUSED PyObject *value) {
    PyErr_SetString(PyExc_TypeError, "Cython internal types are immutable");
    return -1;
}
#endif
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
    {"__module__", __pyx_CommonTypesMetaclass_get_module, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_CommonTypesMetaclass_slots[] = {
    {Py_tp_getset, (void *)__pyx_CommonTypesMetaclass_getset},
    #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {Py_tp_call, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_new, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_setattro, (void*)__pyx_CommonTypesMetaclass_setattr},
    #endif
    {0, 0}
};
static PyType_Spec __pyx_CommonTypesMetaclass_spec = {
    __PYX_TYPE_MODULE_PREFIX "_common_types_metatype",
    0,
    0,
    Py_TPFLAGS_IMMUTABLETYPE |
    Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT,
    __pyx_CommonTypesMetaclass_slots
};
static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    PyObject *bases = PyTuple_Pack(1, &PyType_Type);
    if (unlikely(!bases)) {
        return -1;
    }
    mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
    Py_DECREF(bases);
    if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
        return -1;
    }
    return 0;
}

/* CallTypeTraverse (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) {
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x03090000
    if (__Pyx_get_runtime_version() < 0x03090000) return 0;
    #endif
    if (!always_call) {
        PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*);
        unsigned long flags = PyType_GetFlags(base);
        if (flags & Py_TPFLAGS_HEAPTYPE) {
            return 0;
        }
    }
    Py_VISIT((PyObject*)Py_TYPE(o));
    return 0;
}
#endif

/* PyMethodNew (used by CythonFunctionShared) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    PyObject *result;
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    {
        PyObject *args[] = {func, self};
        result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL);
    }
    #else
    result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL);
    #endif
    return result;
}
#else
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#endif

/* PyVectorcallFastCallDict (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i;
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos;
    #else
    Py_ssize_t pos;
    #endif
    size_t j;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    #if !CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t nkw = PyDict_Size(kw);
    if (unlikely(nkw == -1)) return NULL;
    #else
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    #endif
    newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (j = 0; j < nargs; j++) newargs[j] = args[j];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = 0;
    i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (__Pyx_PyDict_NextRef(kw, &pos, &key, &value)) {
        keys_are_strings &=
        #if CYTHON_COMPILING_IN_LIMITED_API
            PyType_GetFlags(Py_TYPE(key));
        #else
            Py_TYPE(key)->tp_flags;
        #endif
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(PyTuple_SetItem(kwnames, i, key) < 0)) goto cleanup;
        #else
        PyTuple_SET_ITEM(kwnames, i, key);
        #endif
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(pos);
    #endif
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    Py_ssize_t kw_size =
        likely(kw == NULL) ?
        0 :
#if !CYTHON_ASSUME_SAFE_SIZE
        PyDict_Size(kw);
#else
        PyDict_GET_SIZE(kw);
#endif
    if (kw_size == 0) {
        return vc(func, args, nargs, NULL);
    }
#if !CYTHON_ASSUME_SAFE_SIZE
    else if (unlikely(kw_size == -1)) {
        return NULL;
    }
#endif
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared (used by CythonFunction) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) {
    if (__Pyx_CyFunction_Check(func)) {
        return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) {
        int result;
        PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func);
        if (unlikely(!newFunc)) {
            PyErr_Clear(); // It's only an optimization, so don't throw an error
            return 0;
        }
        result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc);
        Py_DECREF(newFunc);
        return result;
    }
    return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc);
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if (PyMethod_Check(func)) {
        func = PyMethod_GET_FUNCTION(func);
    }
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx_CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static PyObject *
__Pyx_CyFunction_get_doc_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_doc == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
        if (unlikely(!op->func_doc)) return NULL;
#else
        if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
            op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
#endif
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) {
    PyObject *result;
    CYTHON_UNUSED_VAR(closure);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_doc_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_name == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_name = PyObject_GetAttrString(op->func, "__name__");
#else
        op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_name_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    Py_INCREF(op->func_qualname);
    result = op->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
#endif
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(op);
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_defaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_kwdefaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->func_annotations;
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_annotations_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) {
    int is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
    if (is_coroutine) {
        PyObject *is_coroutine_value, *module, *fromlist, *marker = __pyx_mstate_global->__pyx_n_u_is_coroutine;
        fromlist = PyList_New(1);
        if (unlikely(!fromlist)) return NULL;
        Py_INCREF(marker);
#if CYTHON_ASSUME_SAFE_MACROS
        PyList_SET_ITEM(fromlist, 0, marker);
#else
        if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) {
            Py_DECREF(fromlist);
            return NULL;
        }
#endif
        module = PyImport_ImportModuleLevelObject(__pyx_mstate_global->__pyx_n_u_asyncio_coroutines, NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
        if (unlikely(!module)) goto ignore;
        is_coroutine_value = __Pyx_PyObject_GetAttrStr(module, marker);
        Py_DECREF(module);
        if (likely(is_coroutine_value)) {
            return is_coroutine_value;
        }
ignore:
        PyErr_Clear();
    }
    return __Pyx_PyBool_FromLong(is_coroutine);
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    if (op->func_is_coroutine) {
        return __Pyx_NewRef(op->func_is_coroutine);
    }
    result = __Pyx_CyFunction_get_is_coroutine_value(op);
    if (unlikely(!result))
        return NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    if (op->func_is_coroutine) {
        Py_DECREF(result);
        result = __Pyx_NewRef(op->func_is_coroutine);
    } else {
        op->func_is_coroutine = __Pyx_NewRef(result);
    }
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_CyFunction_raise_argument_count_error(__pyx_CyFunctionObject *func, const char* message, Py_ssize_t size) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        py_name, message, size);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        name, message, size);
#endif
}
static void __Pyx_CyFunction_raise_type_error(__pyx_CyFunctionObject *func, const char* message) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s",
        py_name, message);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s",
        name, message);
#endif
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_GetAttrString(op->func, "__module__");
}
static int
__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_SetAttrString(op->func, "__module__", value);
}
#endif
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
#else
    {"func_dict", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
#endif
    {"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {"_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
#if !CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#endif
#if CYTHON_METH_FASTCALL
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
#else
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {"__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(args);
    __Pyx_BEGIN_CRITICAL_SECTION(m);
    Py_INCREF(m->func_qualname);
    result = m->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
#endif
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
                                       PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyCFunctionObject *cf = (PyCFunctionObject*) op;
#endif
    if (unlikely(op == NULL))
        return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    op->func = PyCFunction_NewEx(ml, (PyObject*)op, module);
    if (unlikely(!op->func)) return NULL;
#endif
    op->flags = flags;
    __Pyx_CyFunction_weakreflist(op) = NULL;
#if !CYTHON_COMPILING_IN_LIMITED_API
    cf->m_ml = ml;
    cf->m_self = (PyObject *) op;
#endif
    Py_XINCREF(closure);
    op->func_closure = closure;
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_XINCREF(module);
    cf->m_module = module;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_dict = NULL;
#endif
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_classobj = NULL;
#else
    ((PyCMethodObject*)op)->mm_class = NULL;
#endif
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    Py_XINCREF(code);
    op->func_code = code;
    op->defaults = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    op->func_is_coroutine = NULL;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func);
#else
    Py_CLEAR(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func_dict);
#elif PY_VERSION_HEX < 0x030d0000
    _PyObject_ClearManagedDict((PyObject*)m);
#else
    PyObject_ClearManagedDict((PyObject*)m);
#endif
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
#else
    {
        PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
        ((PyCMethodObject *) (m))->mm_class = NULL;
        Py_XDECREF(cls);
    }
#endif
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    Py_CLEAR(m->func_is_coroutine);
    Py_CLEAR(m->defaults);
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    __Pyx_PyHeapTypeObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    {
        int e = __Pyx_call_type_traverse((PyObject*)m, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func);
#else
    Py_VISIT(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func_dict);
#else
    {
        int e =
#if PY_VERSION_HEX < 0x030d0000
            _PyObject_VisitManagedDict
#else
            PyObject_VisitManagedDict
#endif
                ((PyObject*)m, visit, arg);
        if (e != 0) return e;
    }
#endif
    __Pyx_VISIT_CONST(m->func_name);
    __Pyx_VISIT_CONST(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    __Pyx_VISIT_CONST(m->func_code);
    Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    Py_VISIT(m->func_annotations);
    Py_VISIT(m->func_is_coroutine);
    Py_VISIT(m->defaults);
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
    PyObject *repr;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    repr = PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
    __Pyx_END_CRITICAL_SECTION();
    return repr;
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
    PyCFunction meth;
    int flags;
    meth = PyCFunction_GetFunction(f);
    if (unlikely(!meth)) return NULL;
    flags = PyCFunction_GetFlags(f);
    if (unlikely(flags < 0)) return NULL;
#else
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    int flags = f->m_ml->ml_flags;
#endif
    Py_ssize_t size;
    switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void(*)(void))meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 0))
                return (*meth)(self, NULL);
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes no arguments", size);
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes exactly one argument", size);
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
    __Pyx_CyFunction_raise_type_error(
        (__pyx_CyFunctionObject*)func, "takes no keyword arguments");
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *self, *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
    if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
    self = ((PyCFunctionObject*)func)->m_self;
#endif
    result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
    return result;
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
#if CYTHON_ASSUME_SAFE_SIZE
        argc = PyTuple_GET_SIZE(args);
#else
        argc = PyTuple_Size(args);
        if (unlikely(argc < 0)) return NULL;
#endif
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
            PyErr_Format(PyExc_TypeError,
                         "unbound method %.200S() needs an argument",
                         cyfunc->func_qualname);
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            __Pyx_CyFunction_raise_type_error(
                cyfunc, "needs an argument");
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(__Pyx_PyTuple_GET_SIZE(kwnames))) {
        __Pyx_CyFunction_raise_type_error(
            cyfunc, "takes no keyword arguments");
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes no arguments", nargs);
        return NULL;
    }
    return meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes exactly one argument", nargs);
        return NULL;
    }
    return meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))meth)(self, args, nargs, kwnames);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    #if PY_VERSION_HEX < 0x030e00A6
    size_t nargs_value = (size_t) nargs;
    #else
    Py_ssize_t nargs_value = nargs;
    #endif
    return ((__Pyx_PyCMethod)(void(*)(void))meth)(self, cls, args, nargs_value, kwnames);
}
#endif
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if CYTHON_METH_FASTCALL
#if defined(Py_TPFLAGS_HAVE_VECTORCALL)
    Py_TPFLAGS_HAVE_VECTORCALL |
#elif defined(_Py_TPFLAGS_HAVE_VECTORCALL)
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
#endif // CYTHON_METH_FASTCALL
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_DICT |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    __pyx_CyFunctionType_slots
};
static int __pyx_CyFunction_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_CyFunctionType_spec, NULL);
    if (unlikely(mstate->__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type);
    if (unlikely(!m->defaults))
        return NULL;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunction */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    PyObject *op = __Pyx_CyFunction_Init(
        PyObject_GC_New(__pyx_CyFunctionObject, __pyx_mstate_global->__pyx_CyFunctionType),
        ml, flags, qualname, closure, module, globals, code
    );
    if (likely(op)) {
        PyObject_GC_Track(op);
    }
    return op;
}

/* PyObjectFastCallMethod */
#if !CYTHON_VECTORCALL || PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf) {
    PyObject *result;
    PyObject *attr = PyObject_GetAttr(args[0], name);
    if (unlikely(!attr))
        return NULL;
    result = __Pyx_PyObject_FastCall(attr, args+1, nargsf - 1);
    Py_DECREF(attr);
    return result;
}
#endif

/* RejectKeywords */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) {
    PyObject *key = NULL;
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) {
        key = __Pyx_PySequence_ITEM(kwds, 0);
    } else {
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *pos = NULL;
#else
        Py_ssize_t pos = 0;
#endif
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
        if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return;
#endif
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL);
#if CYTHON_AVOID_BORROWED_REFS
        Py_XDECREF(pos);
#endif
    }
    if (likely(key)) {
        PyErr_Format(PyExc_TypeError,
            "%s() got an unexpected keyword argument '%U'",
            function_name, key);
        Py_DECREF(key);
    }
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op2);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a + b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla + llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_AddObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) + (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_AddObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_AddObjC(op1, op2, inplace);
}
#endif

/* PyObjectCall2Args (used by PyObjectCallMethod1) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args[3] = {NULL, arg1, arg2};
    return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectGetMethod (used by PyObjectCallMethod1) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    __Pyx_TypeName type_name;
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
        if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR))
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (likely(descr != NULL)) {
        *method = descr;
        return 0;
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(tp);
    PyErr_Format(PyExc_AttributeError,
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}
#endif

/* PyObjectCallMethod1 (used by append) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
    PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
    Py_DECREF(method);
    return result;
}
#endif
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[2] = {obj, arg};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_Call2Args;
    return PyObject_VectorcallMethod(method_name, args, 2 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_Call2Args(method, obj, arg);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) return NULL;
    return __Pyx__PyObject_CallMethod1(method, arg);
#endif
}

/* append */
static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
    if (likely(PyList_CheckExact(L))) {
        if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1;
    } else {
        PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_mstate_global->__pyx_n_u_append, x);
        if (unlikely(!retval))
            return -1;
        Py_DECREF(retval);
    }
    return 0;
}

/* IterFinish (used by dict_iter) */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
    PyObject* exc_type;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    exc_type = __Pyx_PyErr_CurrentExceptionType();
    if (unlikely(exc_type)) {
        if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))
            return -1;
        __Pyx_PyErr_Clear();
        return 0;
    }
    return 0;
}

/* PyObjectCallNoArg (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg[2] = {NULL, NULL};
    return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectCallMethod0 (used by dict_iter) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[1] = {obj};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_CallNoArg;
    return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
#endif
}

/* RaiseNeedMoreValuesToUnpack (used by UnpackTuple2) */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* RaiseTooManyValuesToUnpack (used by UnpackItemEndCheck) */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* UnpackItemEndCheck (used by UnpackTuple2) */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    }
    return __Pyx_IterFinish();
}

/* RaiseNoneIterError (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else {
      Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(t);
 #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely(size < 0)) return;
 #endif
      if (size < index) {
        __Pyx_RaiseNeedMoreValuesError(size);
      } else {
        __Pyx_RaiseTooManyValuesError(index);
      }
    }
}

/* UnpackTuple2 (used by dict_iter) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
        PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple) {
    if (likely(is_tuple || PyTuple_Check(tuple))) {
        Py_ssize_t size;
        if (has_known_size) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        size = __Pyx_PyTuple_GET_SIZE(tuple);
        if (likely(size == 2)) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        if (size >= 0) {
            __Pyx_UnpackTupleError(tuple, 2);
        }
        return -1;
    } else {
        return __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple);
    }
}
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
    value1 = __Pyx_PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = __Pyx_PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = __Pyx_PyObject_GetIterNextFunc(iter);
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
#if CYTHON_AVOID_BORROWED_REFS
#include <string.h>
#endif
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_AVOID_BORROWED_REFS
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#else
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_AVOID_BORROWED_REFS
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
#if !CYTHON_AVOID_BORROWED_REFS
static CYTHON_INLINE int __Pyx_dict_iter_next_source_is_dict(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem) {
    PyObject *key, *value;
    if (unlikely(orig_length != PyDict_Size(iter_obj))) {
        PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
        return -1;
    }
    if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
        return 0;
    }
    if (pitem) {
        PyObject* tuple = PyTuple_New(2);
        if (unlikely(!tuple)) {
            return -1;
        }
        Py_INCREF(key);
        Py_INCREF(value);
        #if CYTHON_ASSUME_SAFE_MACROS
        PyTuple_SET_ITEM(tuple, 0, key);
        PyTuple_SET_ITEM(tuple, 1, value);
        #else
        if (unlikely(PyTuple_SetItem(tuple, 0, key) < 0)) {
            Py_DECREF(value);
            Py_DECREF(tuple);
            return -1;
        }
        if (unlikely(PyTuple_SetItem(tuple, 1, value) < 0)) {
            Py_DECREF(tuple);
            return -1;
        }
        #endif
        *pitem = tuple;
    } else {
        if (pkey) {
            Py_INCREF(key);
            *pkey = key;
        }
        if (pvalue) {
            Py_INCREF(value);
            *pvalue = value;
        }
    }
    return 1;
}
#endif
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_AVOID_BORROWED_REFS
    if (source_is_dict) {
        int result;
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_BEGIN_CRITICAL_SECTION(iter_obj);
#endif
        result = __Pyx_dict_iter_next_source_is_dict(iter_obj, orig_length, ppos, pkey, pvalue, pitem);
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_END_CRITICAL_SECTION();
#endif
        return result;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(tuple_size < 0)) return -1;
        #endif
        if (unlikely(pos >= tuple_size)) return 0;
        *ppos = pos + 1;
        #if CYTHON_ASSUME_SAFE_MACROS
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        #else
        next_item = PyTuple_GetItem(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
        #endif
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t list_size = __Pyx_PyList_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(list_size < 0)) return -1;
        #endif
        if (unlikely(pos >= list_size)) return 0;
        *ppos = pos + 1;
        next_item = __Pyx_PyList_GetItemRef(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* set_iter */
static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set,
                                                  Py_ssize_t* p_orig_length, int* p_source_is_set) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
    is_set = is_set || likely(PySet_CheckExact(iterable) || PyFrozenSet_CheckExact(iterable));
    *p_source_is_set = is_set;
    if (likely(is_set)) {
        *p_orig_length = PySet_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
    }
#else
    CYTHON_UNUSED_VAR(is_set);
    *p_source_is_set = 0;
#endif
    *p_orig_length = 0;
    return PyObject_GetIter(iterable);
}
static CYTHON_INLINE int __Pyx_set_iter_next(
        PyObject* iter_obj, Py_ssize_t orig_length,
        Py_ssize_t* ppos, PyObject **value,
        int source_is_set) {
    if (!CYTHON_COMPILING_IN_CPYTHON || PY_VERSION_HEX >= 0x030d0000 || unlikely(!source_is_set)) {
        *value = PyIter_Next(iter_obj);
        if (unlikely(!*value)) {
            return __Pyx_IterFinish();
        }
        CYTHON_UNUSED_VAR(orig_length);
        CYTHON_UNUSED_VAR(ppos);
        return 1;
    }
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
    if (unlikely(PySet_GET_SIZE(iter_obj) != orig_length)) {
        PyErr_SetString(
            PyExc_RuntimeError,
            "set changed size during iteration");
        return -1;
    }
    {
        Py_hash_t hash;
        int ret = _PySet_NextEntry(iter_obj, ppos, value, &hash);
        assert (ret != -1);
        if (likely(ret)) {
            Py_INCREF(*value);
            return 1;
        }
    }
#endif
    return 0;
}

/* DivInt[Py_ssize_t] */
static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t a, Py_ssize_t b, int b_is_constant) {
    Py_ssize_t q = a / b;
    Py_ssize_t r = a - q*b;
    Py_ssize_t adapt_python = (b_is_constant ?
        ((r != 0) & ((r < 0) ^ (b < 0))) :
        ((r != 0) & ((r ^ b) < 0))
    );
    return q - adapt_python;
}

/* CallUnboundCMethod1 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) {
    int was_initialized =  __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        int flag = cfunc->flag;
        if (flag == METH_O) {
            return __Pyx_CallCFunction(cfunc, self, arg);
        } else if (flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, &arg, 1);
        } else if (flag == (METH_FASTCALL | METH_KEYWORDS)) {
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, &arg, 1, NULL);
        }
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod1(&tmp_cfunc, self, arg);
    }
#endif
    PyObject* result = __Pyx__CallUnboundCMethod1(cfunc, self, arg);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){
    PyObject *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *args = PyTuple_New(1);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 0, arg);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
    } else
#endif
    {
        result = __Pyx_PyObject_Call2Args(cfunc->method, self, arg);
    }
    return result;
}

/* dict_getitem_default */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) {
    PyObject* value;
#if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (unlikely(PyErr_Occurred()))
            return NULL;
        value = default_value;
    }
    Py_INCREF(value);
    if ((1));
#else
    if (PyBytes_CheckExact(key) || PyUnicode_CheckExact(key) || PyLong_CheckExact(key)) {
        value = PyDict_GetItem(d, key);
        if (unlikely(!value)) {
            value = default_value;
        }
        Py_INCREF(value);
    }
#endif
    else {
        if (default_value == Py_None)
            value = __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_get, d, key);
        else
            value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_get, d, key, default_value);
    }
    return value;
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (unlikely(!j)) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS)) {
        return __Pyx_PyList_GetItemRefFast(o, wrapped_i, unsafe_shared);
    } else
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyList_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyTuple_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)) {
            return __Pyx_PyList_GetItemRefFast(o, n, unsafe_shared);
        } else if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            return __Pyx_NewRef(PyList_GET_ITEM(o, n));
        }
    } else
    #if !CYTHON_AVOID_BORROWED_REFS
    if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            return __Pyx_NewRef(PyTuple_GET_ITEM(o, n));
        }
    } else
    #endif
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (!is_list && mm && mm->mp_subscript) {
            PyObject *r, *key = PyLong_FromSsize_t(i);
            if (unlikely(!key)) return NULL;
            r = mm->mp_subscript(o, key);
            Py_DECREF(key);
            return r;
        }
        if (is_list || likely(sm && sm->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return sm->sq_item(o, i);
        }
    }
#else
    if (is_list || !PyMapping_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
}

/* pyfrozenset_new (used by PySetContains) */
static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it) {
    if (it) {
        PyObject* result;
#if CYTHON_COMPILING_IN_PYPY
        PyObject* args;
        args = PyTuple_Pack(1, it);
        if (unlikely(!args))
            return NULL;
        result = PyObject_Call((PyObject*)&PyFrozenSet_Type, args, NULL);
        Py_DECREF(args);
        return result;
#else
        if (PyFrozenSet_CheckExact(it)) {
            Py_INCREF(it);
            return it;
        }
        result = PyFrozenSet_New(it);
        if (unlikely(!result))
            return NULL;
        if ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
#if CYTHON_COMPILING_IN_LIMITED_API
            || __Pyx_get_runtime_version() >= 0x030A0000
#endif
            )
            return result;
        {
            Py_ssize_t size = __Pyx_PySet_GET_SIZE(result);
            if (likely(size > 0))
                return result;
#if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely(size < 0)) {
                Py_DECREF(result);
                return NULL;
            }
#endif
        }
        Py_DECREF(result);
#endif
    }
    return __Pyx_PyObject_CallNoArg((PyObject*) &PyFrozenSet_Type);
}

/* PySetContains */
static int __Pyx_PySet_ContainsUnhashable(PyObject *set, PyObject *key) {
    int result = -1;
    if (PySet_Check(key) && PyErr_ExceptionMatches(PyExc_TypeError)) {
        PyObject *tmpkey;
        PyErr_Clear();
        tmpkey = __Pyx_PyFrozenSet_New(key);
        if (tmpkey != NULL) {
            result = PySet_Contains(set, tmpkey);
            Py_DECREF(tmpkey);
        }
    }
    return result;
}
static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq) {
    int result = PySet_Contains(set, key);
    if (unlikely(result < 0)) {
        result = __Pyx_PySet_ContainsUnhashable(set, key);
    }
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* PyDictVersioning (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        if (!PyErr_Occurred())
            PyErr_SetNone(PyExc_NameError);
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
    PyErr_Clear();
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) PyErr_Clear();
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return result;
    }
#else
    result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* pop */
static CYTHON_INLINE PyObject* __Pyx__PyObject_Pop(PyObject* L) {
    if (__Pyx_IS_TYPE(L, &PySet_Type)) {
        return PySet_Pop(L);
    }
    return __Pyx_PyObject_CallMethod0(L, __pyx_mstate_global->__pyx_n_u_pop);
}
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE PyObject* __Pyx_PyList_Pop(PyObject* L) {
    if (likely(PyList_GET_SIZE(L) > (((PyListObject*)L)->allocated >> 1))) {
        __Pyx_SET_SIZE(L, Py_SIZE(L) - 1);
        return PyList_GET_ITEM(L, PyList_GET_SIZE(L));
    }
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyList_Type_pop, L);
}
#endif

/* SetItemInt */
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) {
    int r;
    if (unlikely(!j)) return -1;
    r = PyObject_SetItem(o, j, v);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list,
                                               int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE && !CYTHON_AVOID_BORROWED_REFS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o));
        if ((CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared))) {
            Py_INCREF(v);
            return PyList_SetItem(o, n, v);
        } else if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))) {
            PyObject* old;
            Py_INCREF(v);
            old = PyList_GET_ITEM(o, n);
            PyList_SET_ITEM(o, n, v);
            Py_DECREF(old);
            return 0;
        }
    } else
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (!is_list && mm && mm->mp_ass_subscript) {
            int r;
            PyObject *key = PyLong_FromSsize_t(i);
            if (unlikely(!key)) return -1;
            r = mm->mp_ass_subscript(o, key, v);
            Py_DECREF(key);
            return r;
        }
        if (is_list || likely(sm && sm->sq_ass_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return -1;
                    PyErr_Clear();
                }
            }
            return sm->sq_ass_item(o, i, v);
        }
    }
#else
    if (is_list || !PyMapping_Check(o)) {
        return PySequence_SetItem(o, i, v);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_SetItemInt_Generic(o, PyLong_FromSsize_t(i), v);
}

/* GetException (used by pep479) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type = NULL, *local_value, *local_tb = NULL;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if PY_VERSION_HEX >= 0x030C0000
    local_value = tstate->current_exception;
    tstate->current_exception = 0;
  #else
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
  #endif
#elif __PYX_LIMITED_VERSION_HEX > 0x030C0000
    local_value = PyErr_GetRaisedException();
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
#if __PYX_LIMITED_VERSION_HEX > 0x030C0000
    if (likely(local_value)) {
        local_type = (PyObject*) Py_TYPE(local_value);
        Py_INCREF(local_type);
        local_tb = PyException_GetTraceback(local_value);
    }
#else
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
#endif // __PYX_LIMITED_VERSION_HEX > 0x030C0000
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
      #if PY_VERSION_HEX >= 0x030B00a4
        tmp_value = exc_info->exc_value;
        exc_info->exc_value = local_value;
        tmp_type = NULL;
        tmp_tb = NULL;
        Py_XDECREF(local_type);
        Py_XDECREF(local_tb);
      #else
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
      #endif
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#elif __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    PyErr_SetHandledException(local_value);
    Py_XDECREF(local_value);
    Py_XDECREF(local_type);
    Py_XDECREF(local_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
#if __PYX_LIMITED_VERSION_HEX <= 0x030C0000
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
#endif
}

/* pep479 */
static void __Pyx_Generator_Replace_StopIteration(int in_async_gen) {
    PyObject *exc, *val, *tb, *cur_exc, *new_exc;
    __Pyx_PyThreadState_declare
    int is_async_stopiteration = 0;
    CYTHON_MAYBE_UNUSED_VAR(in_async_gen);
    __Pyx_PyThreadState_assign
    cur_exc = __Pyx_PyErr_CurrentExceptionType();
    if (likely(!__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopIteration))) {
        if (in_async_gen && unlikely(__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopAsyncIteration))) {
            is_async_stopiteration = 1;
        } else {
            return;
        }
    }
    __Pyx_GetException(&exc, &val, &tb);
    Py_XDECREF(exc);
    Py_XDECREF(tb);
    new_exc = PyObject_CallFunction(PyExc_RuntimeError, "s",
        is_async_stopiteration ? "async generator raised StopAsyncIteration" :
        in_async_gen ? "async generator raised StopIteration" :
        "generator raised StopIteration");
    if (!new_exc) {
        Py_XDECREF(val);
        return;
    }
    PyException_SetCause(new_exc, val); // steals ref to val
    PyErr_SetObject(PyExc_RuntimeError, new_exc);
    Py_DECREF(new_exc);
}

/* RaiseUnboundLocalError */
static void __Pyx_RaiseUnboundLocalError(const char *varname) {
    PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname);
}

/* DictGetItem */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    if (unlikely(__Pyx_PyDict_GetItemRef(d, key, &value) == 0)) { // no value, no error
        if (unlikely(PyTuple_Check(key))) {
            PyObject* args = PyTuple_Pack(1, key);
            if (likely(args)) {
                PyErr_SetObject(PyExc_KeyError, args);
                Py_DECREF(args);
            }
        } else {
            PyErr_SetObject(PyExc_KeyError, key);
        }
    }
    return value;
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return PyLong_FromLong(-intval);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a - b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla - llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_SubtractObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) - (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_SubtractObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_SubtractObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_SubtractObjC(op1, op2, inplace);
}
#endif

/* GetAttr3 */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    int res = PyObject_GetOptionalAttr(o, n, &r);
    return (res != 0) ? r : __Pyx_NewRef(d);
#else
  #if CYTHON_USE_TYPE_SLOTS
    if (likely(PyUnicode_Check(n))) {
        r = __Pyx_PyObject_GetAttrStrNoError(o, n);
        if (unlikely(!r) && likely(!PyErr_Occurred())) {
            r = __Pyx_NewRef(d);
        }
        return r;
    }
  #endif
    r = PyObject_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
#endif
}

/* RaiseUnexpectedTypeError */
static int
__Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj)
{
    __Pyx_TypeName obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError, "Expected %s, got " __Pyx_FMT_TYPENAME,
                 expected, obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* PyObjectFormatAndDecref */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f) {
    if (unlikely(!s)) return NULL;
    if (likely(PyUnicode_CheckExact(s))) return s;
    return __Pyx_PyObject_FormatAndDecref(s, f);
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f) {
    PyObject *result;
    if (unlikely(!s)) return NULL;
    result = PyObject_Format(s, f);
    Py_DECREF(s);
    return result;
}

/* RaiseException */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if PY_VERSION_HEX >= 0x030C00A6
        PyException_SetTraceback(value, tb);
#elif CYTHON_FAST_THREAD_STATE
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#else
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}

/* PyObjectSetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
    return PyObject_SetAttr(obj, attr_name, value);
}
#endif

/* CoroutineSetYieldFrom (used by GeneratorYieldFrom) */
static void
__Pyx_Coroutine_Set_Owned_Yield_From(__pyx_CoroutineObject *gen, PyObject *yf) {
    assert (!gen->yieldfrom);
#if CYTHON_USE_AM_SEND
    assert (!gen->yieldfrom_am_send);
    #if PY_VERSION_HEX < 0x030A00F0
    if (__Pyx_PyType_HasFeature(Py_TYPE(yf), __Pyx_TPFLAGS_HAVE_AM_SEND))
    #endif
    {
        __Pyx_pyiter_sendfunc am_send;
        #if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
        am_send = __Pyx_PyObject_TryGetSubSlot(yf, tp_as_async, am_send, __Pyx_pyiter_sendfunc);
        #else
        __Pyx_PyAsyncMethodsStruct* tp_as_async = (__Pyx_PyAsyncMethodsStruct*) Py_TYPE(yf)->tp_as_async;
        am_send = tp_as_async ? tp_as_async->am_send : NULL;
        #endif
        if (likely(am_send)) {
            gen->yieldfrom_am_send = am_send;
        }
    }
#endif
    gen->yieldfrom = yf;
}

/* GetTopmostException (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException (used by CoroutineBase) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    PyObject *exc_value = exc_info->exc_value;
    if (exc_value == NULL || exc_value == Py_None) {
        *value = NULL;
        *type = NULL;
        *tb = NULL;
    } else {
        *value = exc_value;
        Py_INCREF(*value);
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        *tb = PyException_GetTraceback(exc_value);
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #endif
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    PyObject *tmp_value = exc_info->exc_value;
    exc_info->exc_value = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
  #else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
  #endif
}
#endif

/* SwapException (used by CoroutineBase) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_value = exc_info->exc_value;
    exc_info->exc_value = *value;
    if (tmp_value == NULL || tmp_value == Py_None) {
        Py_XDECREF(tmp_value);
        tmp_value = NULL;
        tmp_type = NULL;
        tmp_tb = NULL;
    } else {
        tmp_type = (PyObject*) Py_TYPE(tmp_value);
        Py_INCREF(tmp_type);
        #if CYTHON_COMPILING_IN_CPYTHON
        tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback;
        Py_XINCREF(tmp_tb);
        #else
        tmp_tb = PyException_GetTraceback(tmp_value);
        #endif
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
  #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
  #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* IterNextPlain (used by CoroutineBase) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void) {
    if (unlikely(!__pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache))
        __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache = __Pyx_GetBuiltinName(__pyx_mstate_global->__pyx_n_u_next);
    return __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator) {
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    PyObject *result;
    PyObject *next = __Pyx_GetBuiltinNext_LimitedAPI();
    if (unlikely(!next)) return NULL;
    result = PyObject_CallFunctionObjArgs(next, iterator, NULL);
    return result;
#else
    (void)__Pyx_GetBuiltinName; // only for early limited API
    iternextfunc iternext = __Pyx_PyObject_GetIterNextFunc(iterator);
    assert(iternext);
    return iternext(iterator);
#endif
}

/* ReturnWithStopIteration (used by CoroutineBase) */
static void __Pyx__ReturnWithStopIteration(PyObject* value, int async);
static CYTHON_INLINE void __Pyx_ReturnWithStopIteration(PyObject* value, int async, int iternext) {
    if (value == Py_None) {
        if (async || !iternext)
            PyErr_SetNone(async ? PyExc_StopAsyncIteration : PyExc_StopIteration);
        return;
    }
    __Pyx__ReturnWithStopIteration(value, async);
}
static void __Pyx__ReturnWithStopIteration(PyObject* value, int async) {
#if CYTHON_COMPILING_IN_CPYTHON
    __Pyx_PyThreadState_declare
#endif
    PyObject *exc;
    PyObject *exc_type = async ? PyExc_StopAsyncIteration : PyExc_StopIteration;
#if CYTHON_COMPILING_IN_CPYTHON
    if ((PY_VERSION_HEX >= (0x030C00A6)) || unlikely(PyTuple_Check(value) || PyExceptionInstance_Check(value))) {
        if (PY_VERSION_HEX >= (0x030e00A1)) {
            exc = __Pyx_PyObject_CallOneArg(exc_type, value);
        } else {
            PyObject *args_tuple = PyTuple_New(1);
            if (unlikely(!args_tuple)) return;
            Py_INCREF(value);
            PyTuple_SET_ITEM(args_tuple, 0, value);
            exc = PyObject_Call(exc_type, args_tuple, NULL);
            Py_DECREF(args_tuple);
        }
        if (unlikely(!exc)) return;
    } else {
        Py_INCREF(value);
        exc = value;
    }
    #if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    #if CYTHON_USE_EXC_INFO_STACK
    if (!__pyx_tstate->exc_info->exc_value)
    #else
    if (!__pyx_tstate->exc_type)
    #endif
    {
        Py_INCREF(exc_type);
        __Pyx_ErrRestore(exc_type, exc, NULL);
        return;
    }
    #endif
#else
    exc = __Pyx_PyObject_CallOneArg(exc_type, value);
    if (unlikely(!exc)) return;
#endif
    PyErr_SetObject(exc_type, exc);
    Py_DECREF(exc);
}

/* CoroutineBase (used by Generator) */
#if !CYTHON_COMPILING_IN_LIMITED_API
#include <frameobject.h>
#if PY_VERSION_HEX >= 0x030b00a6 && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#endif // CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE void
__Pyx_Coroutine_Undelegate(__pyx_CoroutineObject *gen) {
#if CYTHON_USE_AM_SEND
    gen->yieldfrom_am_send = NULL;
#endif
    Py_CLEAR(gen->yieldfrom);
}
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *__pyx_tstate, PyObject **pvalue) {
    PyObject *et, *ev, *tb;
    PyObject *value = NULL;
    CYTHON_UNUSED_VAR(__pyx_tstate);
    __Pyx_ErrFetch(&et, &ev, &tb);
    if (!et) {
        Py_XDECREF(tb);
        Py_XDECREF(ev);
        Py_INCREF(Py_None);
        *pvalue = Py_None;
        return 0;
    }
    if (likely(et == PyExc_StopIteration)) {
        if (!ev) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
        else if (likely(__Pyx_IS_TYPE(ev, (PyTypeObject*)PyExc_StopIteration))) {
            #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
            value = PyObject_GetAttr(ev, __pyx_mstate_global->__pyx_n_u_value);
            if (unlikely(!value)) goto limited_api_failure;
            #else
            value = ((PyStopIterationObject *)ev)->value;
            Py_INCREF(value);
            #endif
            Py_DECREF(ev);
        }
        else if (unlikely(PyTuple_Check(ev))) {
            Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(ev);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely(tuple_size < 0)) {
                Py_XDECREF(tb);
                Py_DECREF(ev);
                Py_DECREF(et);
                return -1;
            }
            #endif
            if (tuple_size >= 1) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                value = PyTuple_GET_ITEM(ev, 0);
                Py_INCREF(value);
#elif CYTHON_ASSUME_SAFE_MACROS
                value = PySequence_ITEM(ev, 0);
#else
                value = PySequence_GetItem(ev, 0);
                if (!value) goto limited_api_failure;
#endif
            } else {
                Py_INCREF(Py_None);
                value = Py_None;
            }
            Py_DECREF(ev);
        }
        else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) {
            value = ev;
        }
        if (likely(value)) {
            Py_XDECREF(tb);
            Py_DECREF(et);
            *pvalue = value;
            return 0;
        }
    } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    PyErr_NormalizeException(&et, &ev, &tb);
    if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    Py_XDECREF(tb);
    Py_DECREF(et);
#if CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_GetAttr(ev, __pyx_mstate_global->__pyx_n_u_value);
#else
    value = ((PyStopIterationObject *)ev)->value;
    Py_INCREF(value);
#endif
    Py_DECREF(ev);
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!value)) return -1;
#endif
    *pvalue = value;
    return 0;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL || !CYTHON_ASSUME_SAFE_MACROS
  limited_api_failure:
    Py_XDECREF(et);
    Py_XDECREF(tb);
    Py_XDECREF(ev);
    return -1;
#endif
}
static CYTHON_INLINE
__Pyx_PySendResult __Pyx_Coroutine_status_from_result(PyObject **retval) {
    if (*retval) {
        return PYGEN_NEXT;
    } else if (likely(__Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, retval) == 0)) {
        return PYGEN_RETURN;
    } else {
        return PYGEN_ERROR;
    }
}
static CYTHON_INLINE
void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) {
#if PY_VERSION_HEX >= 0x030B00a4
    Py_CLEAR(exc_state->exc_value);
#else
    PyObject *t, *v, *tb;
    t = exc_state->exc_type;
    v = exc_state->exc_value;
    tb = exc_state->exc_traceback;
    exc_state->exc_type = NULL;
    exc_state->exc_value = NULL;
    exc_state->exc_traceback = NULL;
    Py_XDECREF(t);
    Py_XDECREF(v);
    Py_XDECREF(tb);
#endif
}
#define __Pyx_Coroutine_AlreadyRunningError(gen)  (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL)
static void __Pyx__Coroutine_AlreadyRunningError(__pyx_CoroutineObject *gen) {
    const char *msg;
    CYTHON_MAYBE_UNUSED_VAR(gen);
    if ((0)) {
    #ifdef __Pyx_Coroutine_USED
    } else if (__Pyx_Coroutine_Check((PyObject*)gen)) {
        msg = "coroutine already executing";
    #endif
    #ifdef __Pyx_AsyncGen_USED
    } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) {
        msg = "async generator already executing";
    #endif
    } else {
        msg = "generator already executing";
    }
    PyErr_SetString(PyExc_ValueError, msg);
}
static void __Pyx_Coroutine_AlreadyTerminatedError(PyObject *gen, PyObject *value, int closing) {
    CYTHON_MAYBE_UNUSED_VAR(gen);
    CYTHON_MAYBE_UNUSED_VAR(closing);
    #ifdef __Pyx_Coroutine_USED
    if (!closing && __Pyx_Coroutine_Check(gen)) {
        PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine");
    } else
    #endif
    if (value) {
        #ifdef __Pyx_AsyncGen_USED
        if (__Pyx_AsyncGen_CheckExact(gen))
            PyErr_SetNone(PyExc_StopAsyncIteration);
        else
        #endif
        PyErr_SetNone(PyExc_StopIteration);
    }
}
static
__Pyx_PySendResult __Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, PyObject **result, int closing) {
    __Pyx_PyThreadState_declare
    PyThreadState *tstate;
    __Pyx_ExcInfoStruct *exc_state;
    PyObject *retval;
    assert(__Pyx_Coroutine_get_is_running(self));  // Callers should ensure is_running
    if (unlikely(self->resume_label == -1)) {
        __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing);
        return PYGEN_ERROR;
    }
#if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    tstate = __pyx_tstate;
#else
    tstate = __Pyx_PyThreadState_Current;
#endif
    exc_state = &self->gi_exc_state;
    if (exc_state->exc_value) {
        #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        #else
        PyObject *exc_tb;
        #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON
        exc_tb = PyException_GetTraceback(exc_state->exc_value);
        #elif PY_VERSION_HEX >= 0x030B00a4
        exc_tb = ((PyBaseExceptionObject*) exc_state->exc_value)->traceback;
        #else
        exc_tb = exc_state->exc_traceback;
        #endif
        if (exc_tb) {
            PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
            PyFrameObject *f = tb->tb_frame;
            assert(f->f_back == NULL);
            #if PY_VERSION_HEX >= 0x030B00A1
            f->f_back = PyThreadState_GetFrame(tstate);
            #else
            Py_XINCREF(tstate->frame);
            f->f_back = tstate->frame;
            #endif
            #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON
            Py_DECREF(exc_tb);
            #endif
        }
        #endif
    }
#if CYTHON_USE_EXC_INFO_STACK
    exc_state->previous_item = tstate->exc_info;
    tstate->exc_info = exc_state;
#else
    if (exc_state->exc_type) {
        __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    } else {
        __Pyx_Coroutine_ExceptionClear(exc_state);
        __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    }
#endif
    retval = self->body(self, tstate, value);
#if CYTHON_USE_EXC_INFO_STACK
    exc_state = &self->gi_exc_state;
    tstate->exc_info = exc_state->previous_item;
    exc_state->previous_item = NULL;
    __Pyx_Coroutine_ResetFrameBackpointer(exc_state);
#endif
    *result = retval;
    if (self->resume_label == -1) {
        return likely(retval) ? PYGEN_RETURN : PYGEN_ERROR;
    }
    return PYGEN_NEXT;
}
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED_VAR(exc_state);
#else
    PyObject *exc_tb;
    #if PY_VERSION_HEX >= 0x030B00a4
    if (!exc_state->exc_value) return;
    exc_tb = PyException_GetTraceback(exc_state->exc_value);
    #else
    exc_tb = exc_state->exc_traceback;
    #endif
    if (likely(exc_tb)) {
        PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
        PyFrameObject *f = tb->tb_frame;
        Py_CLEAR(f->f_back);
        #if PY_VERSION_HEX >= 0x030B00a4
        Py_DECREF(exc_tb);
        #endif
    }
#endif
}
#define __Pyx_Coroutine_MethodReturnFromResult(gen, result, retval, iternext)\
    ((result) == PYGEN_NEXT ? (retval) : __Pyx__Coroutine_MethodReturnFromResult(gen, result, retval, iternext))
static PyObject *
__Pyx__Coroutine_MethodReturnFromResult(PyObject* gen, __Pyx_PySendResult result, PyObject *retval, int iternext) {
    CYTHON_MAYBE_UNUSED_VAR(gen);
    if (likely(result == PYGEN_RETURN)) {
        int is_async = 0;
        #ifdef __Pyx_AsyncGen_USED
        is_async = __Pyx_AsyncGen_CheckExact(gen);
        #endif
        __Pyx_ReturnWithStopIteration(retval, is_async, iternext);
        Py_XDECREF(retval);
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE
PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) {
#if PY_VERSION_HEX <= 0x030A00A1
    return _PyGen_Send(gen, arg);
#else
    PyObject *result;
    if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None, &result) == PYGEN_RETURN) {
        if (PyAsyncGen_CheckExact(gen)) {
            assert(result == Py_None);
            PyErr_SetNone(PyExc_StopAsyncIteration);
        }
        else if (result == Py_None) {
            PyErr_SetNone(PyExc_StopIteration);
        }
        else {
#if PY_VERSION_HEX < 0x030d00A1
            _PyGen_SetStopIterationValue(result);
#else
            if (!PyTuple_Check(result) && !PyExceptionInstance_Check(result)) {
                PyErr_SetObject(PyExc_StopIteration, result);
            } else {
                PyObject *exc = __Pyx_PyObject_CallOneArg(PyExc_StopIteration, result);
                if (likely(exc != NULL)) {
                    PyErr_SetObject(PyExc_StopIteration, exc);
                    Py_DECREF(exc);
                }
            }
#endif
        }
        Py_DECREF(result);
        result = NULL;
    }
    return result;
#endif
}
#endif
static CYTHON_INLINE __Pyx_PySendResult
__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen, PyObject** retval) {
    __Pyx_PySendResult result;
    PyObject *val = NULL;
    assert(__Pyx_Coroutine_get_is_running(gen));
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val);
    result = __Pyx_Coroutine_SendEx(gen, val, retval, 0);
    Py_XDECREF(val);
    return result;
}
#if CYTHON_USE_AM_SEND
static __Pyx_PySendResult
__Pyx_Coroutine_SendToDelegate(__pyx_CoroutineObject *gen, __Pyx_pyiter_sendfunc gen_am_send, PyObject *value, PyObject **retval) {
    PyObject *ret = NULL;
    __Pyx_PySendResult delegate_result, result;
    assert(__Pyx_Coroutine_get_is_running(gen));
    delegate_result = gen_am_send(gen->yieldfrom, value, &ret);
    if (delegate_result == PYGEN_NEXT) {
        assert (ret != NULL);
        *retval = ret;
        return PYGEN_NEXT;
    }
    assert (delegate_result != PYGEN_ERROR || ret == NULL);
    __Pyx_Coroutine_Undelegate(gen);
    result = __Pyx_Coroutine_SendEx(gen, ret, retval, 0);
    Py_XDECREF(ret);
    return result;
}
#endif
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
    PyObject *retval = NULL;
    __Pyx_PySendResult result = __Pyx_Coroutine_AmSend(self, value, &retval);
    return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 0);
}
static __Pyx_PySendResult
__Pyx_Coroutine_AmSend(PyObject *self, PyObject *value, PyObject **retval) {
    __Pyx_PySendResult result;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        *retval = __Pyx_Coroutine_AlreadyRunningError(gen);
        return PYGEN_ERROR;
    }
    #if CYTHON_USE_AM_SEND
    if (gen->yieldfrom_am_send) {
        result = __Pyx_Coroutine_SendToDelegate(gen, gen->yieldfrom_am_send, value, retval);
    } else
    #endif
    if (gen->yieldfrom) {
        PyObject *yf = gen->yieldfrom;
        PyObject *ret;
      #if !CYTHON_USE_AM_SEND
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_Check(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_AsyncGen_USED
        if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
            ret = __Pyx_async_gen_asend_send(yf, value);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        if (PyCoro_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        #endif
      #endif
        {
            #if !CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x03080000
            if (value == Py_None && PyIter_Check(yf))
                ret = __Pyx_PyIter_Next_Plain(yf);
            else
            #endif
                ret = __Pyx_PyObject_CallMethod1(yf, __pyx_mstate_global->__pyx_n_u_send, value);
        }
        if (likely(ret)) {
            __Pyx_Coroutine_unset_is_running(gen);
            *retval = ret;
            return PYGEN_NEXT;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, retval);
    } else {
        result = __Pyx_Coroutine_SendEx(gen, value, retval, 0);
    }
    __Pyx_Coroutine_unset_is_running(gen);
    return result;
}
static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) {
    __Pyx_PySendResult result;
    PyObject *retval = NULL;
    CYTHON_UNUSED_VAR(gen);
    assert(__Pyx_Coroutine_get_is_running(gen));
    #ifdef __Pyx_Generator_USED
    if (__Pyx_Generator_CheckExact(yf)) {
        result = __Pyx_Coroutine_Close(yf, &retval);
    } else
    #endif
    #ifdef __Pyx_Coroutine_USED
    if (__Pyx_Coroutine_Check(yf)) {
        result = __Pyx_Coroutine_Close(yf, &retval);
    } else
    if (__Pyx_CoroutineAwait_CheckExact(yf)) {
        result = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf);
    } else
    #endif
    #ifdef __Pyx_AsyncGen_USED
    if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
        retval = __Pyx_async_gen_asend_close(yf, NULL);
        result = PYGEN_RETURN;
    } else
    if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) {
        retval = __Pyx_async_gen_athrow_close(yf, NULL);
        result = PYGEN_RETURN;
    } else
    #endif
    {
        PyObject *meth;
        result = PYGEN_RETURN;
        meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_mstate_global->__pyx_n_u_close);
        if (unlikely(!meth)) {
            if (unlikely(PyErr_Occurred())) {
                PyErr_WriteUnraisable(yf);
            }
        } else {
            retval = __Pyx_PyObject_CallNoArg(meth);
            Py_DECREF(meth);
            if (unlikely(!retval)) {
                result = PYGEN_ERROR;
            }
        }
    }
    Py_XDECREF(retval);
    return result == PYGEN_ERROR ? -1 : 0;
}
static PyObject *__Pyx_Generator_Next(PyObject *self) {
    __Pyx_PySendResult result;
    PyObject *retval = NULL;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    }
    #if CYTHON_USE_AM_SEND
    if (gen->yieldfrom_am_send) {
        result = __Pyx_Coroutine_SendToDelegate(gen, gen->yieldfrom_am_send, Py_None, &retval);
    } else
    #endif
    if (gen->yieldfrom) {
        PyObject *yf = gen->yieldfrom;
        PyObject *ret;
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Generator_Next(yf);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, Py_None);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && (PY_VERSION_HEX < 0x030A00A3 || !CYTHON_USE_AM_SEND)
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL);
        } else
        #endif
            ret = __Pyx_PyIter_Next_Plain(yf);
        if (likely(ret)) {
            __Pyx_Coroutine_unset_is_running(gen);
            return ret;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, &retval);
    } else {
        result = __Pyx_Coroutine_SendEx(gen, Py_None, &retval, 0);
    }
    __Pyx_Coroutine_unset_is_running(gen);
    return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 1);
}
static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, PyObject *arg) {
    PyObject *retval = NULL;
    __Pyx_PySendResult result;
    CYTHON_UNUSED_VAR(arg);
    result = __Pyx_Coroutine_Close(self, &retval);
    if (unlikely(result == PYGEN_ERROR))
        return NULL;
    Py_XDECREF(retval);
    Py_RETURN_NONE;
}
static __Pyx_PySendResult
__Pyx_Coroutine_Close(PyObject *self, PyObject **retval) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PySendResult result;
    PyObject *yf;
    int err = 0;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        *retval = __Pyx_Coroutine_AlreadyRunningError(gen);
        return PYGEN_ERROR;
    }
    yf = gen->yieldfrom;
    if (yf) {
        Py_INCREF(yf);
        err = __Pyx_Coroutine_CloseIter(gen, yf);
        __Pyx_Coroutine_Undelegate(gen);
        Py_DECREF(yf);
    }
    if (err == 0)
        PyErr_SetNone(PyExc_GeneratorExit);
    result = __Pyx_Coroutine_SendEx(gen, NULL, retval, 1);
    if (result == PYGEN_ERROR) {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_Coroutine_unset_is_running(gen);
        if (!__Pyx_PyErr_Occurred()) {
            return PYGEN_RETURN;
        } else if (likely(__Pyx_PyErr_ExceptionMatches2(PyExc_GeneratorExit, PyExc_StopIteration))) {
            __Pyx_PyErr_Clear();
            return PYGEN_RETURN;
        }
        return PYGEN_ERROR;
    } else if (likely(result == PYGEN_RETURN && *retval == Py_None)) {
        __Pyx_Coroutine_unset_is_running(gen);
        return PYGEN_RETURN;
    } else {
        const char *msg;
        Py_DECREF(*retval);
        *retval = NULL;
        if ((0)) {
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_Coroutine_Check(self)) {
            msg = "coroutine ignored GeneratorExit";
        #endif
        #ifdef __Pyx_AsyncGen_USED
        } else if (__Pyx_AsyncGen_CheckExact(self)) {
            msg = "async generator ignored GeneratorExit";
        #endif
        } else {
            msg = "generator ignored GeneratorExit";
        }
        PyErr_SetString(PyExc_RuntimeError, msg);
        __Pyx_Coroutine_unset_is_running(gen);
        return PYGEN_ERROR;
    }
}
static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb,
                                        PyObject *args, int close_on_genexit) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject *yf;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen)))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    yf = gen->yieldfrom;
    if (yf) {
        __Pyx_PySendResult result;
        PyObject *ret;
        Py_INCREF(yf);
        if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) {
            int err = __Pyx_Coroutine_CloseIter(gen, yf);
            Py_DECREF(yf);
            __Pyx_Coroutine_Undelegate(gen);
            if (err < 0)
                goto propagate_exception;
            goto throw_here;
        }
        if (0
        #ifdef __Pyx_Generator_USED
            || __Pyx_Generator_CheckExact(yf)
        #endif
        #ifdef __Pyx_Coroutine_USED
            || __Pyx_Coroutine_Check(yf)
        #endif
            ) {
            ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit);
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_CoroutineAwait_CheckExact(yf)) {
            ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit);
        #endif
        } else {
            PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_mstate_global->__pyx_n_u_throw);
            if (unlikely(!meth)) {
                Py_DECREF(yf);
                if (unlikely(PyErr_Occurred())) {
                    __Pyx_Coroutine_unset_is_running(gen);
                    return NULL;
                }
                __Pyx_Coroutine_Undelegate(gen);
                goto throw_here;
            }
            if (likely(args)) {
                ret = __Pyx_PyObject_Call(meth, args, NULL);
            } else {
                PyObject *cargs[4] = {NULL, typ, val, tb};
                size_t nargs = 1U + (val != NULL) + (tb != NULL);
                ret = __Pyx_PyObject_FastCall(meth, cargs+1, nargs | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
            }
            Py_DECREF(meth);
        }
        Py_DECREF(yf);
        if (ret) {
            __Pyx_Coroutine_unset_is_running(gen);
            return ret;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, &ret);
        __Pyx_Coroutine_unset_is_running(gen);
        return __Pyx_Coroutine_MethodReturnFromResult(self, result, ret, 0);
    }
throw_here:
    __Pyx_Raise(typ, val, tb, NULL);
propagate_exception:
    {
        PyObject *retval = NULL;
        __Pyx_PySendResult result = __Pyx_Coroutine_SendEx(gen, NULL, &retval, 0);
        __Pyx_Coroutine_unset_is_running(gen);
        return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 0);
    }
}
static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) {
    PyObject *typ;
    PyObject *val = NULL;
    PyObject *tb = NULL;
    if (unlikely(!PyArg_UnpackTuple(args, "throw", 1, 3, &typ, &val, &tb)))
        return NULL;
    return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1);
}
static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) {
#if PY_VERSION_HEX >= 0x030B00a4
    Py_VISIT(exc_state->exc_value);
#else
    Py_VISIT(exc_state->exc_type);
    Py_VISIT(exc_state->exc_value);
    Py_VISIT(exc_state->exc_traceback);
#endif
    return 0;
}
static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) {
    {
        int e = __Pyx_call_type_traverse((PyObject*)gen, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(gen->closure);
    Py_VISIT(gen->classobj);
    Py_VISIT(gen->yieldfrom);
    return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg);
}
static int __Pyx_Coroutine_clear(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    Py_CLEAR(gen->closure);
    Py_CLEAR(gen->classobj);
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer);
    }
#endif
    Py_CLEAR(gen->gi_code);
    Py_CLEAR(gen->gi_frame);
    Py_CLEAR(gen->gi_name);
    Py_CLEAR(gen->gi_qualname);
    Py_CLEAR(gen->gi_modulename);
    return 0;
}
static void __Pyx_Coroutine_dealloc(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject_GC_UnTrack(gen);
    #if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    if (gen->gi_weakreflist != NULL)
    #endif
        PyObject_ClearWeakRefs(self);
    if (gen->resume_label >= 0) {
        PyObject_GC_Track(self);
#if CYTHON_USE_TP_FINALIZE
        if (unlikely(PyObject_CallFinalizerFromDealloc(self)))
#else
        {
            destructor del = __Pyx_PyObject_GetSlot(gen, tp_del, destructor);
            if (del) del(self);
        }
        if (unlikely(Py_REFCNT(self) > 0))
#endif
        {
            return;
        }
        PyObject_GC_UnTrack(self);
    }
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        /* We have to handle this case for asynchronous generators
           right here, because this code has to be between UNTRACK
           and GC_Del. */
        Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer);
    }
#endif
    __Pyx_Coroutine_clear(self);
    __Pyx_PyHeapTypeObject_GC_Del(gen);
}
#if CYTHON_USE_TP_FINALIZE
static void __Pyx_Coroutine_del(PyObject *self) {
    PyObject *error_type, *error_value, *error_traceback;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PyThreadState_declare
    if (gen->resume_label < 0) {
        return;
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&error_type, &error_value, &error_traceback);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self;
        PyObject *finalizer = agen->ag_finalizer;
        if (finalizer && !agen->ag_closed) {
            PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self);
            if (unlikely(!res)) {
                PyErr_WriteUnraisable(self);
            } else {
                Py_DECREF(res);
            }
            __Pyx_ErrRestore(error_type, error_value, error_traceback);
            return;
        }
    }
#endif
    if (unlikely(gen->resume_label == 0 && !error_value)) {
#ifdef __Pyx_Coroutine_USED
#ifdef __Pyx_Generator_USED
    if (!__Pyx_Generator_CheckExact(self))
#endif
        {
        PyObject_GC_UnTrack(self);
        if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0))
            PyErr_WriteUnraisable(self);
        PyObject_GC_Track(self);
        }
#endif
    } else {
        PyObject *retval = NULL;
        __Pyx_PySendResult result = __Pyx_Coroutine_Close(self, &retval);
        if (result == PYGEN_ERROR) {
            PyErr_WriteUnraisable(self);
        } else {
            Py_XDECREF(retval);
        }
    }
    __Pyx_ErrRestore(error_type, error_value, error_traceback);
}
#endif
static PyObject *
__Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, void *context)
{
    PyObject *name = self->gi_name;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(self->gi_name, value);
    return 0;
}
static PyObject *
__Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, void *context)
{
    PyObject *name = self->gi_qualname;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(self->gi_qualname, value);
    return 0;
}
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx__Coroutine_get_frame_locked(__pyx_CoroutineObject *self) {
    PyObject *frame;
    frame = self->gi_frame;
    if (!frame) {
        if (unlikely(!self->gi_code)) {
            Py_RETURN_NONE;
        }
        PyObject *globals = PyDict_New();
        if (unlikely(!globals)) return NULL;
        frame = (PyObject *) PyFrame_New(
            PyThreadState_Get(),            /*PyThreadState *tstate,*/
            (PyCodeObject*) self->gi_code,  /*PyCodeObject *code,*/
            globals,                        /*PyObject *globals,*/
            0                               /*PyObject *locals*/
        );
        Py_DECREF(globals);
        if (unlikely(!frame))
            return NULL;
        if (unlikely(self->gi_frame)) {
            Py_DECREF(frame);
            frame = self->gi_frame;
        } else {
            self->gi_frame = frame;
        }
    }
    Py_INCREF(frame);
    return frame;
}
#endif
static PyObject *
__Pyx__Coroutine_get_frame(__pyx_CoroutineObject *self)
{
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyObject *frame;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)self);
    frame = __Pyx__Coroutine_get_frame_locked(self);
    __Pyx_END_CRITICAL_SECTION();
    return frame;
#else
    CYTHON_UNUSED_VAR(self);
    Py_RETURN_NONE;
#endif
}
static PyObject *
__Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self, void *context) {
    CYTHON_UNUSED_VAR(context);
    PyObject *frame = self->gi_frame;
    if (frame)
        return __Pyx_NewRef(frame);
    return __Pyx__Coroutine_get_frame(self);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
            PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type);
    if (unlikely(!gen))
        return NULL;
    return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    gen->body = body;
    gen->closure = closure;
    Py_XINCREF(closure);
    gen->is_running = 0;
    gen->resume_label = 0;
    gen->classobj = NULL;
    gen->yieldfrom = NULL;
    gen->yieldfrom_am_send = NULL;
    #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_LIMITED_API
    gen->gi_exc_state.exc_value = NULL;
    #else
    gen->gi_exc_state.exc_type = NULL;
    gen->gi_exc_state.exc_value = NULL;
    gen->gi_exc_state.exc_traceback = NULL;
    #endif
#if CYTHON_USE_EXC_INFO_STACK
    gen->gi_exc_state.previous_item = NULL;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    gen->gi_weakreflist = NULL;
#endif
    Py_XINCREF(qualname);
    gen->gi_qualname = qualname;
    Py_XINCREF(name);
    gen->gi_name = name;
    Py_XINCREF(module_name);
    gen->gi_modulename = module_name;
    Py_XINCREF(code);
    gen->gi_code = code;
    gen->gi_frame = NULL;
    PyObject_GC_Track(gen);
    return gen;
}
static char __Pyx_Coroutine_test_and_set_is_running(__pyx_CoroutineObject *gen) {
    char result;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    result = gen->is_running;
    gen->is_running = 1;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_Coroutine_unset_is_running(__pyx_CoroutineObject *gen) {
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    assert(gen->is_running);
    gen->is_running = 0;
    __Pyx_END_CRITICAL_SECTION();
}
static char __Pyx_Coroutine_get_is_running(__pyx_CoroutineObject *gen) {
    char result;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    result = gen->is_running;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *__Pyx_Coroutine_get_is_running_getter(PyObject *gen, void *closure) {
    CYTHON_UNUSED_VAR(closure);
    char result = __Pyx_Coroutine_get_is_running((__pyx_CoroutineObject*)gen);
    if (result) Py_RETURN_TRUE;
    else Py_RETURN_FALSE;
}
#if __PYX_HAS_PY_AM_SEND == 2
static void __Pyx_SetBackportTypeAmSend(PyTypeObject *type, __Pyx_PyAsyncMethodsStruct *static_amsend_methods, __Pyx_pyiter_sendfunc am_send) {
    Py_ssize_t ptr_offset = (char*)(type->tp_as_async) - (char*)type;
    if (ptr_offset < 0 || ptr_offset > type->tp_basicsize) {
        return;
    }
    memcpy((void*)static_amsend_methods, (void*)(type->tp_as_async), sizeof(*type->tp_as_async));
    static_amsend_methods->am_send = am_send;
    type->tp_as_async = __Pyx_SlotTpAsAsync(static_amsend_methods);
}
#endif
static PyObject *__Pyx_Coroutine_fail_reduce_ex(PyObject *self, PyObject *arg) {
    CYTHON_UNUSED_VAR(arg);
    __Pyx_TypeName self_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE((PyObject*)self));
    PyErr_Format(PyExc_TypeError, "cannot pickle '" __Pyx_FMT_TYPENAME "' object",
                         self_type_name);
    __Pyx_DECREF_TypeName(self_type_name);
    return NULL;
}

/* Generator (used by GeneratorYieldFrom) */
static PyMethodDef __pyx_Generator_methods[] = {
    {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O,
     PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")},
    {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS,
     PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")},
    {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS,
     PyDoc_STR("close() -> raise GeneratorExit inside generator.")},
    {"__reduce_ex__", (PyCFunction) __Pyx_Coroutine_fail_reduce_ex, METH_O, 0},
    {"__reduce__", (PyCFunction) __Pyx_Coroutine_fail_reduce_ex, METH_NOARGS, 0},
    {0, 0, 0, 0}
};
static PyMemberDef __pyx_Generator_memberlist[] = {
    {"gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY,
     PyDoc_STR("object being iterated by 'yield from', or None")},
    {"gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL},
    {"__module__", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_modulename), 0, 0},
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CoroutineObject, gi_weakreflist), READONLY, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyGetSetDef __pyx_Generator_getsets[] = {
    {"__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name,
     PyDoc_STR("name of the generator"), 0},
    {"__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname,
     PyDoc_STR("qualified name of the generator"), 0},
    {"gi_frame", (getter)__Pyx_Coroutine_get_frame, NULL,
     PyDoc_STR("Frame of the generator"), 0},
    {"gi_running", __Pyx_Coroutine_get_is_running_getter, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_GeneratorType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_Coroutine_dealloc},
    {Py_tp_traverse, (void *)__Pyx_Coroutine_traverse},
    {Py_tp_iter, (void *)PyObject_SelfIter},
    {Py_tp_iternext, (void *)__Pyx_Generator_Next},
    {Py_tp_methods, (void *)__pyx_Generator_methods},
    {Py_tp_members, (void *)__pyx_Generator_memberlist},
    {Py_tp_getset, (void *)__pyx_Generator_getsets},
    {Py_tp_getattro, (void *) PyObject_GenericGetAttr},
#if CYTHON_USE_TP_FINALIZE
    {Py_tp_finalize, (void *)__Pyx_Coroutine_del},
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    {Py_am_send, (void *)__Pyx_Coroutine_AmSend},
#endif
    {0, 0},
};
static PyType_Spec __pyx_GeneratorType_spec = {
    __PYX_TYPE_MODULE_PREFIX "generator",
    sizeof(__pyx_CoroutineObject),
    0,
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_WEAKREF |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | __Pyx_TPFLAGS_HAVE_AM_SEND,
    __pyx_GeneratorType_slots
};
#if __PYX_HAS_PY_AM_SEND == 2
static __Pyx_PyAsyncMethodsStruct __pyx_Generator_as_async;
#endif
static int __pyx_Generator_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_GeneratorType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_GeneratorType_spec, NULL);
    if (unlikely(!mstate->__pyx_GeneratorType)) {
        return -1;
    }
#if __PYX_HAS_PY_AM_SEND == 2
    __Pyx_SetBackportTypeAmSend(mstate->__pyx_GeneratorType, &__pyx_Generator_as_async, &__Pyx_Coroutine_AmSend);
#endif
    return 0;
}
static PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    PyObject *retval = NULL;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    }
    __Pyx_PySendResult result = __Pyx_Coroutine_SendEx(gen, Py_None, &retval, 0);
    __Pyx_Coroutine_unset_is_running(gen);
    (void) result;
    assert (result == PYGEN_RETURN || result == PYGEN_ERROR);
    assert ((result == PYGEN_RETURN && retval != NULL) || (result == PYGEN_ERROR && retval == NULL));
    return retval;
}

/* GeneratorYieldFrom */
#if CYTHON_USE_TYPE_SLOTS
static void __Pyx_PyIter_CheckErrorAndDecref(PyObject *source) {
    __Pyx_TypeName source_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(source));
    PyErr_Format(PyExc_TypeError,
        "iter() returned non-iterator of type '" __Pyx_FMT_TYPENAME "'", source_type_name);
    __Pyx_DECREF_TypeName(source_type_name);
    Py_DECREF(source);
}
#endif
static CYTHON_INLINE __Pyx_PySendResult __Pyx_Generator_Yield_From(__pyx_CoroutineObject *gen, PyObject *source, PyObject **retval) {
    PyObject *source_gen;
    __Pyx_PySendResult result;
#ifdef __Pyx_Coroutine_USED
    if (__Pyx_Coroutine_Check(source)) {
        Py_INCREF(source);
        source_gen = source;
        result = __Pyx_Coroutine_AmSend(source, Py_None, retval);
    } else
#endif
    {
#if CYTHON_USE_TYPE_SLOTS
        if (likely(Py_TYPE(source)->tp_iter)) {
            source_gen = Py_TYPE(source)->tp_iter(source);
            if (unlikely(!source_gen)) {
                *retval = NULL;
                return PYGEN_ERROR;
            }
            if (unlikely(!PyIter_Check(source_gen))) {
                __Pyx_PyIter_CheckErrorAndDecref(source_gen);
                *retval = NULL;
                return PYGEN_ERROR;
            }
        } else
#endif
        {
            source_gen = PyObject_GetIter(source);
            if (unlikely(!source_gen)) {
                *retval = NULL;
                return PYGEN_ERROR;
            }
        }
        *retval = __Pyx_PyIter_Next_Plain(source_gen);
        result = __Pyx_Coroutine_status_from_result(retval);
    }
    if (likely(result == PYGEN_NEXT)) {
        __Pyx_Coroutine_Set_Owned_Yield_From(gen, source_gen);
        return PYGEN_NEXT;
    }
    Py_DECREF(source_gen);
    return result;
}

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) {
    PyObject *runerr = NULL;
    Py_ssize_t key_value;
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        __Pyx_TypeName index_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(index));
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError,
            "cannot fit '" __Pyx_FMT_TYPENAME "' into an index-sized integer", index_type_name);
        __Pyx_DECREF_TypeName(index_type_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
    __Pyx_TypeName obj_type_name;
    if (likely(PyType_Check(obj))) {
        PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_mstate_global->__pyx_n_u_class_getitem);
        if (!meth) {
            PyErr_Clear();
        } else {
            PyObject *result = __Pyx_PyObject_CallOneArg(meth, key);
            Py_DECREF(meth);
            return result;
        }
    }
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "'" __Pyx_FMT_TYPENAME "' object is not subscriptable", obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
    PyTypeObject *tp = Py_TYPE(obj);
    PyMappingMethods *mm = tp->tp_as_mapping;
    PySequenceMethods *sm = tp->tp_as_sequence;
    if (likely(mm && mm->mp_subscript)) {
        return mm->mp_subscript(obj, key);
    }
    if (likely(sm && sm->sq_item)) {
        return __Pyx_PyObject_GetIndex(obj, key);
    }
    return __Pyx_PyObject_GetItem_Slow(obj, key);
}
#endif

/* JoinPyUnicode */
static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char) {
#if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyObject *result_uval;
    int result_ukind, kind_shift;
    Py_ssize_t i, char_pos;
    void *result_udata;
    if (max_char > 1114111) max_char = 1114111;
    result_uval = PyUnicode_New(result_ulength, max_char);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
    kind_shift = (result_ukind == PyUnicode_4BYTE_KIND) ? 2 : result_ukind - 1;
    result_udata = PyUnicode_DATA(result_uval);
    assert(kind_shift == 2 || kind_shift == 1 || kind_shift == 0);
    if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - result_ulength < 0))
        goto overflow;
    char_pos = 0;
    for (i=0; i < value_count; i++) {
        int ukind;
        Py_ssize_t ulength;
        void *udata;
        PyObject *uval = values[i];
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (__Pyx_PyUnicode_READY(uval) == (-1))
            goto bad;
        #endif
        ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(ulength < 0)) goto bad;
        #endif
        if (unlikely(!ulength))
            continue;
        if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - ulength < char_pos))
            goto overflow;
        ukind = __Pyx_PyUnicode_KIND(uval);
        udata = __Pyx_PyUnicode_DATA(uval);
        if (ukind == result_ukind) {
            memcpy((char *)result_udata + (char_pos << kind_shift), udata, (size_t) (ulength << kind_shift));
        } else {
            #if PY_VERSION_HEX >= 0x030d0000
            if (unlikely(PyUnicode_CopyCharacters(result_uval, char_pos, uval, 0, ulength) < 0)) goto bad;
            #elif CYTHON_COMPILING_IN_CPYTHON || defined(_PyUnicode_FastCopyCharacters)
            _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
            #else
            Py_ssize_t j;
            for (j=0; j < ulength; j++) {
                Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
                __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
            }
            #endif
        }
        char_pos += ulength;
    }
    return result_uval;
overflow:
    PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
bad:
    Py_DECREF(result_uval);
    return NULL;
#else
    Py_ssize_t i;
    PyObject *result = NULL;
    PyObject *value_tuple = PyTuple_New(value_count);
    if (unlikely(!value_tuple)) return NULL;
    CYTHON_UNUSED_VAR(max_char);
    CYTHON_UNUSED_VAR(result_ulength);
    for (i=0; i<value_count; i++) {
        Py_INCREF(values[i]);
        if (__Pyx_PyTuple_SET_ITEM(value_tuple, i, values[i]) != (0)) goto bad;
    }
    result = PyUnicode_Join(__pyx_mstate_global->__pyx_empty_unicode, value_tuple);
bad:
    Py_DECREF(value_tuple);
    return result;
#endif
}

/* PyMethodNew2Arg */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New2Arg(PyObject *func, PyObject *self) {
    PyObject *result;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    {
        PyObject *args[] = {func, self};
        result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL);
    }
    #else
    result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL);
    #endif
    return result;
}
#endif

/* PyLongCompare */
static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(inplace);
    if (op1 == op2) {
        return 1;
    }
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        const digit* digits = __Pyx_PyLong_Digits(op1);
        if (intval == 0) {
            return (__Pyx_PyLong_IsZero(op1) == 1);
        } else if (intval < 0) {
            if (__Pyx_PyLong_IsNonNeg(op1))
                return 0;
            intval = -intval;
        } else {
            if (__Pyx_PyLong_IsNeg(op1))
                return 0;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        return (unequal == 0);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = __Pyx_PyFloat_AS_DOUBLE(op1);
        return ((double)a == (double)b);
    }
    return __Pyx_PyObject_IsTrueAndDecref(
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* SliceObject */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
        Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
        int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) {
    __Pyx_TypeName obj_type_name;
#if CYTHON_USE_TYPE_SLOTS
    PyMappingMethods* mp = Py_TYPE(obj)->tp_as_mapping;
    if (likely(mp && mp->mp_subscript))
#endif
    {
        PyObject* result;
        PyObject *py_slice, *py_start, *py_stop;
        if (_py_slice) {
            py_slice = *_py_slice;
        } else {
            PyObject* owned_start = NULL;
            PyObject* owned_stop = NULL;
            if (_py_start) {
                py_start = *_py_start;
            } else {
                if (has_cstart) {
                    owned_start = py_start = PyLong_FromSsize_t(cstart);
                    if (unlikely(!py_start)) goto bad;
                } else
                    py_start = Py_None;
            }
            if (_py_stop) {
                py_stop = *_py_stop;
            } else {
                if (has_cstop) {
                    owned_stop = py_stop = PyLong_FromSsize_t(cstop);
                    if (unlikely(!py_stop)) {
                        Py_XDECREF(owned_start);
                        goto bad;
                    }
                } else
                    py_stop = Py_None;
            }
            py_slice = PySlice_New(py_start, py_stop, Py_None);
            Py_XDECREF(owned_start);
            Py_XDECREF(owned_stop);
            if (unlikely(!py_slice)) goto bad;
        }
#if CYTHON_USE_TYPE_SLOTS
        result = mp->mp_subscript(obj, py_slice);
#else
        result = PyObject_GetItem(obj, py_slice);
#endif
        if (!_py_slice) {
            Py_DECREF(py_slice);
        }
        return result;
    }
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "'" __Pyx_FMT_TYPENAME "' object is unsliceable", obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
bad:
    return NULL;
}

/* pop_index */
static PyObject* __Pyx__PyObject_PopNewIndex(PyObject* L, PyObject* py_ix) {
    PyObject *r;
    if (unlikely(!py_ix)) return NULL;
    r = __Pyx__PyObject_PopIndex(L, py_ix);
    Py_DECREF(py_ix);
    return r;
}
static PyObject* __Pyx__PyObject_PopIndex(PyObject* L, PyObject* py_ix) {
    return __Pyx_PyObject_CallMethod1(L, __pyx_mstate_global->__pyx_n_u_pop, py_ix);
}
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t ix) {
    Py_ssize_t size = PyList_GET_SIZE(L);
    if (likely(size > (((PyListObject*)L)->allocated >> 1))) {
        Py_ssize_t cix = ix;
        if (cix < 0) {
            cix += size;
        }
        if (likely(__Pyx_is_valid_index(cix, size))) {
            PyObject* v = PyList_GET_ITEM(L, cix);
            __Pyx_SET_SIZE(L, Py_SIZE(L) - 1);
            size -= 1;
            memmove(&PyList_GET_ITEM(L, cix), &PyList_GET_ITEM(L, cix+1), (size_t)(size-cix)*sizeof(PyObject*));
            return v;
        }
    }
    if (py_ix == Py_None) {
        return __Pyx__PyObject_PopNewIndex(L, PyLong_FromSsize_t(ix));
    } else {
        return __Pyx__PyObject_PopIndex(L, py_ix);
    }
}
#endif

/* RaiseClosureNameError */
static void __Pyx_RaiseClosureNameError(const char *varname) {
    PyErr_Format(PyExc_NameError, "free variable '%s' referenced before assignment in enclosing scope", varname);
}

/* IterNext */
static PyObject *__Pyx_PyIter_Next2Default(PyObject* defval) {
    PyObject* exc_type;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    exc_type = __Pyx_PyErr_CurrentExceptionType();
    if (unlikely(exc_type)) {
        if (!defval || unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))
            return NULL;
        __Pyx_PyErr_Clear();
        Py_INCREF(defval);
        return defval;
    }
    if (defval) {
        Py_INCREF(defval);
        return defval;
    }
    __Pyx_PyErr_SetNone(PyExc_StopIteration);
    return NULL;
}
static void __Pyx_PyIter_Next_ErrorNoIterator(PyObject *iterator) {
    __Pyx_TypeName iterator_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(iterator));
    PyErr_Format(PyExc_TypeError,
        __Pyx_FMT_TYPENAME " object is not an iterator", iterator_type_name);
    __Pyx_DECREF_TypeName(iterator_type_name);
}
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject* iterator, PyObject* defval) {
    PyObject* next;
#if !CYTHON_COMPILING_IN_LIMITED_API
    iternextfunc iternext = __Pyx_PyObject_TryGetSlot(iterator, tp_iternext, iternextfunc);
    if (likely(iternext)) {
        next = iternext(iterator);
        if (likely(next))
            return next;
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
        if (unlikely(iternext == &_PyObject_NextNotImplemented))
            return NULL;
    #endif
    } else if (CYTHON_USE_TYPE_SLOTS) {
        __Pyx_PyIter_Next_ErrorNoIterator(iterator);
        return NULL;
    } else
#endif
    if (unlikely(!PyIter_Check(iterator))) {
        __Pyx_PyIter_Next_ErrorNoIterator(iterator);
        return NULL;
    } else {
        next = defval ? PyIter_Next(iterator) : __Pyx_PyIter_Next_Plain(iterator);
        if (likely(next))
            return next;
    }
    return __Pyx_PyIter_Next2Default(defval);
}

/* unicode_tailmatch */
static int __Pyx_PyUnicode_TailmatchTuple(PyObject* s, PyObject* substrings,
                                          Py_ssize_t start, Py_ssize_t end, int direction) {
    Py_ssize_t i, count = __Pyx_PyTuple_GET_SIZE(substrings);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(count < 0)) return -1;
    #endif
    for (i = 0; i < count; i++) {
        Py_ssize_t result;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        result = PyUnicode_Tailmatch(s, PyTuple_GET_ITEM(substrings, i),
                                     start, end, direction);
#else
        PyObject* sub = __Pyx_PySequence_ITEM(substrings, i);
        if (unlikely(!sub)) return -1;
        result = PyUnicode_Tailmatch(s, sub, start, end, direction);
        Py_DECREF(sub);
#endif
        if (result) {
            return (int) result;
        }
    }
    return 0;
}
static int __Pyx_PyUnicode_Tailmatch(PyObject* s, PyObject* substr,
                                     Py_ssize_t start, Py_ssize_t end, int direction) {
    if (unlikely(PyTuple_Check(substr))) {
        return __Pyx_PyUnicode_TailmatchTuple(s, substr, start, end, direction);
    }
    return (int) PyUnicode_Tailmatch(s, substr, start, end, direction);
}

/* SliceTupleAndList */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_crop_slice(Py_ssize_t* _start, Py_ssize_t* _stop, Py_ssize_t* _length) {
    Py_ssize_t start = *_start, stop = *_stop, length = *_length;
    if (start < 0) {
        start += length;
        if (start < 0)
            start = 0;
    }
    if (stop < 0)
        stop += length;
    else if (stop > length)
        stop = length;
    *_length = stop - start;
    *_start = start;
    *_stop = stop;
}
static CYTHON_INLINE PyObject* __Pyx_PyTuple_GetSlice(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length = PyTuple_GET_SIZE(src);
    __Pyx_crop_slice(&start, &stop, &length);
    return __Pyx_PyTuple_FromArray(((PyTupleObject*)src)->ob_item + start, length);
}
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice_locked(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length = PyList_GET_SIZE(src);
    __Pyx_crop_slice(&start, &stop, &length);
    if (length <= 0) {
        return PyList_New(0);
    }
    return __Pyx_PyList_FromArray(((PyListObject*)src)->ob_item + start, length);
}
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(src);
    result = __Pyx_PyList_GetSlice_locked(src, start, stop);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
#endif // CYTHON_COMPILING_IN_CPYTHON

/* HasAttr (used by ImportImpl) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!PyUnicode_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_PyObject_GetAttrStrNoError(o, n);
    if (!r) {
        return (unlikely(PyErr_Occurred())) ? -1 : 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}
#endif

/* ImportImpl (used by Import) */
static int __Pyx__Import_GetModule(PyObject *qualname, PyObject **module) {
    PyObject *imported_module = PyImport_GetModule(qualname);
    if (unlikely(!imported_module)) {
        *module = NULL;
        if (PyErr_Occurred()) {
            return -1;
        }
        return 0;
    }
    *module = imported_module;
    return 1;
}
static int __Pyx__Import_Lookup(PyObject *qualname, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject **module) {
    PyObject *imported_module;
    PyObject *top_level_package_name;
    Py_ssize_t i;
    int status, module_found;
    Py_ssize_t dot_index;
    module_found = __Pyx__Import_GetModule(qualname, &imported_module);
    if (unlikely(!module_found || module_found == -1)) {
        *module = NULL;
        return module_found;
    }
    if (imported_names) {
        for (i = 0; i < len_imported_names; i++) {
            PyObject *imported_name = imported_names[i];
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
            int has_imported_attribute = PyObject_HasAttr(imported_module, imported_name);
#else
            int has_imported_attribute = PyObject_HasAttrWithError(imported_module, imported_name);
            if (unlikely(has_imported_attribute == -1)) goto error;
#endif
            if (!has_imported_attribute) {
                goto not_found;
            }
        }
        *module = imported_module;
        return 1;
    }
    dot_index = PyUnicode_FindChar(qualname, '.', 0, PY_SSIZE_T_MAX, 1);
    if (dot_index == -1) {
        *module = imported_module;
        return 1;
    }
    if (unlikely(dot_index == -2)) goto error;
    top_level_package_name = PyUnicode_Substring(qualname, 0, dot_index);
    if (unlikely(!top_level_package_name)) goto error;
    Py_DECREF(imported_module);
    status = __Pyx__Import_GetModule(top_level_package_name, module);
    Py_DECREF(top_level_package_name);
    return status;
error:
    Py_DECREF(imported_module);
    *module = NULL;
    return -1;
not_found:
    Py_DECREF(imported_module);
    *module = NULL;
    return 0;
}
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level) {
    PyObject *module = 0;
    PyObject *empty_dict = 0;
    PyObject *from_list = 0;
    int module_found;
    if (!qualname) {
        qualname = name;
    }
    module_found = __Pyx__Import_Lookup(qualname, imported_names, len_imported_names, &module);
    if (likely(module_found == 1)) {
        return module;
    } else if (unlikely(module_found == -1)) {
        return NULL;
    }
    empty_dict = PyDict_New();
    if (unlikely(!empty_dict))
        goto bad;
    if (imported_names) {
#if CYTHON_COMPILING_IN_CPYTHON
        from_list = __Pyx_PyList_FromArray(imported_names, len_imported_names);
        if (unlikely(!from_list))
            goto bad;
#else
        from_list = PyList_New(len_imported_names);
        if (unlikely(!from_list)) goto bad;
        for (Py_ssize_t i=0; i<len_imported_names; ++i) {
            if (PyList_SetItem(from_list, i, __Pyx_NewRef(imported_names[i])) < 0) goto bad;
        }
#endif
    }
    if (level == -1) {
        const char* package_sep = strchr(__Pyx_MODULE_NAME, '.');
        if (package_sep != (0)) {
            module = PyImport_ImportModuleLevelObject(
                name, moddict, empty_dict, from_list, 1);
            if (unlikely(!module)) {
                if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError)))
                    goto bad;
                PyErr_Clear();
            }
        }
        level = 0;
    }
    if (!module) {
        module = PyImport_ImportModuleLevelObject(
            name, moddict, empty_dict, from_list, level);
    }
bad:
    Py_XDECREF(from_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level) {
    return __Pyx__Import(name, imported_names, len_imported_names, qualname, __pyx_mstate_global->__pyx_d, level);
}

/* PyObjectVectorCallKwBuilder (used by PyObjectVectorCallMethodKwBuilder) */
#if CYTHON_VECTORCALL
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_PyObject_FastCallDict;
    Py_INCREF(key);
    if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1;
    args[n] = value;
    return 0;
}
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_VectorcallBuilder_AddArgStr;
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n);
}
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    PyObject *pyKey = PyUnicode_FromString(key);
    if (!pyKey) return -1;
    return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n);
}
#else // CYTHON_VECTORCALL
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) {
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return PyDict_SetItem(builder, key, value);
}
#endif

/* PyObjectVectorCallMethodKwBuilder */
#if !CYTHON_VECTORCALL || PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_Object_VectorcallMethod_CallFromBuilder(PyObject *name, PyObject *const *args, size_t nargsf, PyObject *kwnames) {
    PyObject *result;
    PyObject *obj = PyObject_GetAttr(args[0], name);
    if (unlikely(!obj))
        return NULL;
    result = __Pyx_Object_Vectorcall_CallFromBuilder(obj, args+1, nargsf-1, kwnames);
    Py_DECREF(obj);
    return result;
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceMultiply : PyNumber_Multiply)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT+30) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT+30) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT+30) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_multiply(op1, op2);
    }
    calculate_long:
        CYTHON_UNUSED_VAR(a);
        CYTHON_UNUSED_VAR(b);
        lla = a;
        goto calculate_long_long;
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla * llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_MultiplyObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) * (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_MultiplyObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_MultiplyObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_MultiplyObjC(op1, op2, inplace);
}
#endif

/* CIntToDigits (used by CIntToPyUnicode) */
static const char DIGIT_PAIRS_10[2*10*10+1] = {
    "00010203040506070809"
    "10111213141516171819"
    "20212223242526272829"
    "30313233343536373839"
    "40414243444546474849"
    "50515253545556575859"
    "60616263646566676869"
    "70717273747576777879"
    "80818283848586878889"
    "90919293949596979899"
};
static const char DIGIT_PAIRS_8[2*8*8+1] = {
    "0001020304050607"
    "1011121314151617"
    "2021222324252627"
    "3031323334353637"
    "4041424344454647"
    "5051525354555657"
    "6061626364656667"
    "7071727374757677"
};
static const char DIGITS_HEX[2*16+1] = {
    "0123456789abcdef"
    "0123456789ABCDEF"
};

/* BuildPyUnicode (used by COrdinalToPyUnicode) */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, const char* chars, int clength,
                                                int prepend_sign, char padding_char) {
    PyObject *uval;
    Py_ssize_t uoffset = ulength - clength;
#if CYTHON_USE_UNICODE_INTERNALS
    Py_ssize_t i;
    void *udata;
    uval = PyUnicode_New(ulength, 127);
    if (unlikely(!uval)) return NULL;
    udata = PyUnicode_DATA(uval);
    if (uoffset > 0) {
        i = 0;
        if (prepend_sign) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, 0, '-');
            i++;
        }
        for (; i < uoffset; i++) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, i, padding_char);
        }
    }
    for (i=0; i < clength; i++) {
        __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, uoffset+i, chars[i]);
    }
#else
    {
        PyObject *sign = NULL, *padding = NULL;
        uval = NULL;
        if (uoffset > 0) {
            prepend_sign = !!prepend_sign;
            if (uoffset > prepend_sign) {
                padding = PyUnicode_FromOrdinal(padding_char);
                if (likely(padding) && uoffset > prepend_sign + 1) {
                    PyObject *tmp = PySequence_Repeat(padding, uoffset - prepend_sign);
                    Py_DECREF(padding);
                    padding = tmp;
                }
                if (unlikely(!padding)) goto done_or_error;
            }
            if (prepend_sign) {
                sign = PyUnicode_FromOrdinal('-');
                if (unlikely(!sign)) goto done_or_error;
            }
        }
        uval = PyUnicode_DecodeASCII(chars, clength, NULL);
        if (likely(uval) && padding) {
            PyObject *tmp = PyUnicode_Concat(padding, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
        if (likely(uval) && sign) {
            PyObject *tmp = PyUnicode_Concat(sign, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
done_or_error:
        Py_XDECREF(padding);
        Py_XDECREF(sign);
    }
#endif
    return uval;
}

/* COrdinalToPyUnicode (used by CIntToPyUnicode) */
static CYTHON_INLINE int __Pyx_CheckUnicodeValue(int value) {
    return value <= 1114111;
}
static PyObject* __Pyx_PyUnicode_FromOrdinal_Padded(int value, Py_ssize_t ulength, char padding_char) {
    Py_ssize_t padding_length = ulength - 1;
    if (likely((padding_length <= 250) && (value < 0xD800 || value > 0xDFFF))) {
        char chars[256];
        if (value <= 255) {
            memset(chars, padding_char, (size_t) padding_length);
            chars[ulength-1] = (char) value;
            return PyUnicode_DecodeLatin1(chars, ulength, NULL);
        }
        char *cpos = chars + sizeof(chars);
        if (value < 0x800) {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xc0 | (value & 0x1f));
        } else if (value < 0x10000) {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xe0 | (value & 0x0f));
        } else {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xf0 | (value & 0x07));
        }
        cpos -= padding_length;
        memset(cpos, padding_char, (size_t) padding_length);
        return PyUnicode_DecodeUTF8(cpos, chars + sizeof(chars) - cpos, NULL);
    }
    if (value <= 127 && CYTHON_USE_UNICODE_INTERNALS) {
        const char chars[1] = {(char) value};
        return __Pyx_PyUnicode_BuildFromAscii(ulength, chars, 1, 0, padding_char);
    }
    {
        PyObject *uchar, *padding_uchar, *padding, *result;
        padding_uchar = PyUnicode_FromOrdinal(padding_char);
        if (unlikely(!padding_uchar)) return NULL;
        padding = PySequence_Repeat(padding_uchar, padding_length);
        Py_DECREF(padding_uchar);
        if (unlikely(!padding)) return NULL;
        uchar = PyUnicode_FromOrdinal(value);
        if (unlikely(!uchar)) {
            Py_DECREF(padding);
            return NULL;
        }
        result = PyUnicode_Concat(padding, uchar);
        Py_DECREF(padding);
        Py_DECREF(uchar);
        return result;
    }
}

/* CIntToPyUnicode */
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_long(long value, Py_ssize_t width, char padding_char) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!(is_unsigned || value == 0 || value > 0) ||
                    !(sizeof(value) <= 2 || value & ~ (long) 0x01fffff || __Pyx_CheckUnicodeValue((int) value)))) {
        PyErr_SetString(PyExc_OverflowError, "%c arg not in range(0x110000)");
        return NULL;
    }
    if (width <= 1) {
        return PyUnicode_FromOrdinal((int) value);
    }
    return __Pyx_PyUnicode_FromOrdinal_Padded((int) value, width, padding_char);
}
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_long(long value, Py_ssize_t width, char padding_char, char format_char) {
    char digits[sizeof(long)*3+2];
    char *dpos, *end = digits + sizeof(long)*3+2;
    const char *hex_digits = DIGITS_HEX;
    Py_ssize_t length, ulength;
    int prepend_sign, last_one_off;
    long remaining;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (format_char == 'X') {
        hex_digits += 16;
        format_char = 'x';
    }
    remaining = value;
    last_one_off = 0;
    dpos = end;
    do {
        int digit_pos;
        switch (format_char) {
        case 'o':
            digit_pos = abs((int)(remaining % (8*8)));
            remaining = (long) (remaining / (8*8));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 8);
            break;
        case 'd':
            digit_pos = abs((int)(remaining % (10*10)));
            remaining = (long) (remaining / (10*10));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_10 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 10);
            break;
        case 'x':
            *(--dpos) = hex_digits[abs((int)(remaining % 16))];
            remaining = (long) (remaining / 16);
            break;
        default:
            assert(0);
            break;
        }
    } while (unlikely(remaining != 0));
    assert(!last_one_off || *dpos == '0');
    dpos += last_one_off;
    length = end - dpos;
    ulength = length;
    prepend_sign = 0;
    if (!is_unsigned && value <= neg_one) {
        if (padding_char == ' ' || width <= length + 1) {
            *(--dpos) = '-';
            ++length;
        } else {
            prepend_sign = 1;
        }
        ++ulength;
    }
    if (width > ulength) {
        ulength = width;
    }
    if (ulength == 1) {
        return PyUnicode_FromOrdinal(*dpos);
    }
    return __Pyx_PyUnicode_BuildFromAscii(ulength, dpos, (int) length, prepend_sign, padding_char);
}

/* AllocateExtensionType */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final) {
    if (is_final || likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
        allocfunc alloc_func = __Pyx_PyType_GetSlot(t, tp_alloc, allocfunc);
        return alloc_func(t, 0);
    } else {
        newfunc tp_new = __Pyx_PyType_TryGetSlot(&PyBaseObject_Type, tp_new, newfunc);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (!tp_new) {
            PyObject *new_str = PyUnicode_FromString("__new__");
            if (likely(new_str)) {
                PyObject *o = PyObject_CallMethodObjArgs((PyObject *)&PyBaseObject_Type, new_str, t, NULL);
                Py_DECREF(new_str);
                return o;
            } else
                return NULL;
        } else
    #endif
        return tp_new(t, __pyx_mstate_global->__pyx_empty_tuple, 0);
    }
}

/* FunctionExport */
static int __Pyx_ExportFunction(PyObject *api_dict, const char *name, void (*f)(void), const char *sig) {
    PyObject *cobj;
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    tmp.fp = f;
    cobj = PyCapsule_New(tmp.p, sig, 0);
    if (!cobj)
        goto bad;
    if (PyDict_SetItemString(api_dict, name, cobj) < 0)
        goto bad;
    Py_DECREF(cobj);
    return 0;
bad:
    Py_XDECREF(cobj);
    return -1;
}

/* GetApiDict */
static PyObject *__Pyx_ApiExport_GetApiDict(void) {
    PyObject *d;
    if (__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_capi, &d) == -1)
        return NULL;
    if (!d) {
        d = PyDict_New();
        if (!d)
            goto bad;
        if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_pyx_capi, d) < 0)
            goto bad;
    }
    return d;
bad:
    Py_XDECREF(d);
    return NULL;
}

/* ValidateBasesTuple (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) {
    Py_ssize_t i, n;
#if CYTHON_ASSUME_SAFE_SIZE
    n = PyTuple_GET_SIZE(bases);
#else
    n = PyTuple_Size(bases);
    if (unlikely(n < 0)) return -1;
#endif
    for (i = 1; i < n; i++)
    {
        PyTypeObject *b;
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *b0 = PySequence_GetItem(bases, i);
        if (!b0) return -1;
#elif CYTHON_ASSUME_SAFE_MACROS
        PyObject *b0 = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *b0 = PyTuple_GetItem(bases, i);
        if (!b0) return -1;
#endif
        b = (PyTypeObject*) b0;
        if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE))
        {
            __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
            PyErr_Format(PyExc_TypeError,
                "base class '" __Pyx_FMT_TYPENAME "' is not a heap type", b_name);
            __Pyx_DECREF_TypeName(b_name);
#if CYTHON_AVOID_BORROWED_REFS
            Py_DECREF(b0);
#endif
            return -1;
        }
        if (dictoffset == 0)
        {
            Py_ssize_t b_dictoffset = 0;
#if CYTHON_USE_TYPE_SLOTS
            b_dictoffset = b->tp_dictoffset;
#else
            PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__");
            if (!py_b_dictoffset) goto dictoffset_return;
            b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset);
            Py_DECREF(py_b_dictoffset);
            if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return;
#endif
            if (b_dictoffset) {
                {
                    __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
                    PyErr_Format(PyExc_TypeError,
                        "extension type '%.200s' has no __dict__ slot, "
                        "but base type '" __Pyx_FMT_TYPENAME "' has: "
                        "either add 'cdef dict __dict__' to the extension type "
                        "or add '__slots__ = [...]' to the base type",
                        type_name, b_name);
                    __Pyx_DECREF_TypeName(b_name);
                }
#if !CYTHON_USE_TYPE_SLOTS
              dictoffset_return:
#endif
#if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(b0);
#endif
                return -1;
            }
        }
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(b0);
#endif
    }
    return 0;
}
#endif

/* PyType_Ready */
CYTHON_UNUSED static int __Pyx_PyType_HasMultipleInheritance(PyTypeObject *t) {
    while (t) {
        PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
        if (bases) {
            return 1;
        }
        t = __Pyx_PyType_GetSlot(t, tp_base, PyTypeObject*);
    }
    return 0;
}
static int __Pyx_PyType_Ready(PyTypeObject *t) {
#if CYTHON_USE_TYPE_SPECS || !CYTHON_COMPILING_IN_CPYTHON || defined(PYSTON_MAJOR_VERSION)
    (void)__Pyx_PyObject_CallMethod0;
#if CYTHON_USE_TYPE_SPECS
    (void)__Pyx_validate_bases_tuple;
#endif
    return PyType_Ready(t);
#else
    int r;
    if (!__Pyx_PyType_HasMultipleInheritance(t)) {
        return PyType_Ready(t);
    }
    PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
    if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1))
        return -1;
#if !defined(PYSTON_MAJOR_VERSION)
    {
        int gc_was_enabled;
    #if PY_VERSION_HEX >= 0x030A00b1
        gc_was_enabled = PyGC_Disable();
        (void)__Pyx_PyObject_CallMethod0;
    #else
        PyObject *ret, *py_status;
        PyObject *gc = NULL;
        #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) &&\
                !CYTHON_COMPILING_IN_GRAAL
        gc = PyImport_GetModule(__pyx_mstate_global->__pyx_kp_u_gc);
        #endif
        if (unlikely(!gc)) gc = PyImport_Import(__pyx_mstate_global->__pyx_kp_u_gc);
        if (unlikely(!gc)) return -1;
        py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_isenabled);
        if (unlikely(!py_status)) {
            Py_DECREF(gc);
            return -1;
        }
        gc_was_enabled = __Pyx_PyObject_IsTrue(py_status);
        Py_DECREF(py_status);
        if (gc_was_enabled > 0) {
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_disable);
            if (unlikely(!ret)) {
                Py_DECREF(gc);
                return -1;
            }
            Py_DECREF(ret);
        } else if (unlikely(gc_was_enabled == -1)) {
            Py_DECREF(gc);
            return -1;
        }
    #endif
        t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#if PY_VERSION_HEX >= 0x030A0000
        t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE;
#endif
#else
        (void)__Pyx_PyObject_CallMethod0;
#endif
    r = PyType_Ready(t);
#if !defined(PYSTON_MAJOR_VERSION)
        t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
    #if PY_VERSION_HEX >= 0x030A00b1
        if (gc_was_enabled)
            PyGC_Enable();
    #else
        if (gc_was_enabled) {
            PyObject *tp, *v, *tb;
            PyErr_Fetch(&tp, &v, &tb);
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_enable);
            if (likely(ret || r == -1)) {
                Py_XDECREF(ret);
                PyErr_Restore(tp, v, tb);
            } else {
                Py_XDECREF(tp);
                Py_XDECREF(v);
                Py_XDECREF(tb);
                r = -1;
            }
        }
        Py_DECREF(gc);
    #endif
    }
#endif
    return r;
#endif
}

/* SetVTable */
static int __Pyx_SetVtable(PyTypeObject *type, void *vtable) {
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
    if (unlikely(!ob))
        goto bad;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(PyObject_SetAttr((PyObject *) type, __pyx_mstate_global->__pyx_n_u_pyx_vtable, ob) < 0))
#else
    if (unlikely(PyDict_SetItem(type->tp_dict, __pyx_mstate_global->__pyx_n_u_pyx_vtable, ob) < 0))
#endif
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* GetVTable (used by MergeVTables) */
static void* __Pyx_GetVtable(PyTypeObject *type) {
    void* ptr;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *ob = PyObject_GetAttr((PyObject *)type, __pyx_mstate_global->__pyx_n_u_pyx_vtable);
#else
    PyObject *ob = PyObject_GetItem(type->tp_dict, __pyx_mstate_global->__pyx_n_u_pyx_vtable);
#endif
    if (!ob)
        goto bad;
    ptr = PyCapsule_GetPointer(ob, 0);
    if (!ptr && !PyErr_Occurred())
        PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type");
    Py_DECREF(ob);
    return ptr;
bad:
    Py_XDECREF(ob);
    return NULL;
}

/* MergeVTables */
static int __Pyx_MergeVtables(PyTypeObject *type) {
    int i=0;
    Py_ssize_t size;
    void** base_vtables;
    __Pyx_TypeName tp_base_name = NULL;
    __Pyx_TypeName base_name = NULL;
    void* unknown = (void*)-1;
    PyObject* bases = __Pyx_PyType_GetSlot(type, tp_bases, PyObject*);
    int base_depth = 0;
    {
        PyTypeObject* base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
        while (base) {
            base_depth += 1;
            base = __Pyx_PyType_GetSlot(base, tp_base, PyTypeObject*);
        }
    }
    base_vtables = (void**) PyMem_Malloc(sizeof(void*) * (size_t)(base_depth + 1));
    base_vtables[0] = unknown;
#if CYTHON_COMPILING_IN_LIMITED_API
    size = PyTuple_Size(bases);
    if (size < 0) goto other_failure;
#else
    size = PyTuple_GET_SIZE(bases);
#endif
    for (i = 1; i < size; i++) {
        PyObject *basei;
        void* base_vtable;
#if CYTHON_AVOID_BORROWED_REFS
        basei = PySequence_GetItem(bases, i);
        if (unlikely(!basei)) goto other_failure;
#elif !CYTHON_ASSUME_SAFE_MACROS
        basei = PyTuple_GetItem(bases, i);
        if (unlikely(!basei)) goto other_failure;
#else
        basei = PyTuple_GET_ITEM(bases, i);
#endif
        base_vtable = __Pyx_GetVtable((PyTypeObject*)basei);
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(basei);
#endif
        if (base_vtable != NULL) {
            int j;
            PyTypeObject* base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
            for (j = 0; j < base_depth; j++) {
                if (base_vtables[j] == unknown) {
                    base_vtables[j] = __Pyx_GetVtable(base);
                    base_vtables[j + 1] = unknown;
                }
                if (base_vtables[j] == base_vtable) {
                    break;
                } else if (base_vtables[j] == NULL) {
                    goto bad;
                }
                base = __Pyx_PyType_GetSlot(base, tp_base, PyTypeObject*);
            }
        }
    }
    PyErr_Clear();
    PyMem_Free(base_vtables);
    return 0;
bad:
    {
        PyTypeObject* basei = NULL;
        PyTypeObject* tp_base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
        tp_base_name = __Pyx_PyType_GetFullyQualifiedName(tp_base);
#if CYTHON_AVOID_BORROWED_REFS
        basei = (PyTypeObject*)PySequence_GetItem(bases, i);
        if (unlikely(!basei)) goto really_bad;
#elif !CYTHON_ASSUME_SAFE_MACROS
        basei = (PyTypeObject*)PyTuple_GetItem(bases, i);
        if (unlikely(!basei)) goto really_bad;
#else
        basei = (PyTypeObject*)PyTuple_GET_ITEM(bases, i);
#endif
        base_name = __Pyx_PyType_GetFullyQualifiedName(basei);
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(basei);
#endif
    }
    PyErr_Format(PyExc_TypeError,
        "multiple bases have vtable conflict: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'", tp_base_name, base_name);
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
really_bad: // bad has failed!
#endif
    __Pyx_DECREF_TypeName(tp_base_name);
    __Pyx_DECREF_TypeName(base_name);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
other_failure:
#endif
    PyMem_Free(base_vtables);
    return -1;
}

/* DelItemOnTypeDict (used by SetupReduce) */
static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_DelItem(tp_dict, k);
    if (likely(!result)) PyType_Modified(tp);
    return result;
}

/* SetupReduce */
static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStrNoError(meth, __pyx_mstate_global->__pyx_n_u_name);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_getstate = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
    PyObject *getstate = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_getstate);
#else
    getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_getstate);
    if (!getstate && PyErr_Occurred()) {
        goto __PYX_BAD;
    }
#endif
    if (getstate) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_getstate);
#else
        object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_getstate);
        if (!object_getstate && PyErr_Occurred()) {
            goto __PYX_BAD;
        }
#endif
        if (object_getstate != getstate) {
            goto __PYX_GOOD;
        }
    }
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_mstate_global->__pyx_n_u_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_mstate_global->__pyx_n_u_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_reduce_cython);
            if (likely(reduce_cython)) {
                ret = __Pyx_SetItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = __Pyx_DelItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            } else if (reduce == object_reduce || PyErr_Occurred()) {
                goto __PYX_BAD;
            }
            setstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_mstate_global->__pyx_n_u_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_setstate_cython);
                if (likely(setstate_cython)) {
                    ret = __Pyx_SetItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                    ret = __Pyx_DelItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                } else if (!setstate || PyErr_Occurred()) {
                    goto __PYX_BAD;
                }
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred()) {
        __Pyx_TypeName type_obj_name =
            __Pyx_PyType_GetFullyQualifiedName((PyTypeObject*)type_obj);
        PyErr_Format(PyExc_RuntimeError,
            "Unable to initialize pickling for " __Pyx_FMT_TYPENAME, type_obj_name);
        __Pyx_DECREF_TypeName(type_obj_name);
    }
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
    Py_XDECREF(object_getstate);
    Py_XDECREF(getstate);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* ListPack */
static PyObject *__Pyx_PyList_Pack(Py_ssize_t n, ...) {
    va_list va;
    PyObject *l = PyList_New(n);
    va_start(va, n);
    if (unlikely(!l)) goto end;
    for (Py_ssize_t i=0; i<n; ++i) {
        PyObject *arg = va_arg(va, PyObject*);
        Py_INCREF(arg);
        if (__Pyx_PyList_SET_ITEM(l, i, arg) != (0)) {
            Py_CLEAR(l);
            goto end;
        }
    }
    end:
    va_end(va);
    return l;
}

/* ImportFrom */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        const char* module_name_str = 0;
        PyObject* module_name = 0;
        PyObject* module_dot = 0;
        PyObject* full_name = 0;
        PyErr_Clear();
        module_name_str = PyModule_GetName(module);
        if (unlikely(!module_name_str)) { goto modbad; }
        module_name = PyUnicode_FromString(module_name_str);
        if (unlikely(!module_name)) { goto modbad; }
        module_dot = PyUnicode_Concat(module_name, __pyx_mstate_global->__pyx_kp_u__47);
        if (unlikely(!module_dot)) { goto modbad; }
        full_name = PyUnicode_Concat(module_dot, name);
        if (unlikely(!full_name)) { goto modbad; }
        #if (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM  < 0x07030400) ||\
                CYTHON_COMPILING_IN_GRAAL
        {
            PyObject *modules = PyImport_GetModuleDict();
            if (unlikely(!modules))
                goto modbad;
            value = PyObject_GetItem(modules, full_name);
        }
        #else
        value = PyImport_GetModule(full_name);
        #endif
      modbad:
        Py_XDECREF(full_name);
        Py_XDECREF(module_dot);
        Py_XDECREF(module_name);
    }
    if (unlikely(!value)) {
        PyErr_Format(PyExc_ImportError, "cannot import name %S", name);
    }
    return value;
}

/* ClassMethod */
static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
#if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM <= 0x05080000
    if (PyObject_TypeCheck(method, &PyWrapperDescr_Type)) {
        return PyClassMethod_New(method);
    }
#else
#if CYTHON_COMPILING_IN_PYPY
    if (PyMethodDescr_Check(method))
#else
    if (__Pyx_TypeCheck(method, &PyMethodDescr_Type))
#endif
    {
#if CYTHON_COMPILING_IN_LIMITED_API
        return PyErr_Format(
            PyExc_SystemError,
            "Cython cannot yet handle classmethod on a MethodDescriptorType (%S) in limited API mode. "
            "This is most likely a classmethod in a cdef class method with binding=False. "
            "Try setting 'binding' to True.",
            method);
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
        PyTypeObject *d_type = GraalPyDescrObject_GetType(method);
        return PyDescr_NewClassMethod(d_type, GraalPyMethodDescrObject_GetMethod(method));
#elif CYTHON_COMPILING_IN_GRAAL
        PyTypeObject *d_type = PyDescrObject_GetType(method);
        return PyDescr_NewClassMethod(d_type, PyMethodDescrObject_GetMethod(method));
#else
        PyMethodDescrObject *descr = (PyMethodDescrObject *)method;
        PyTypeObject *d_type = descr->d_common.d_type;
        return PyDescr_NewClassMethod(d_type, descr->d_method);
#endif
    }
#endif
#if !CYTHON_COMPILING_IN_LIMITED_API
    else if (PyMethod_Check(method)) {
        return PyClassMethod_New(PyMethod_GET_FUNCTION(method));
    }
    else {
        return PyClassMethod_New(method);
    }
#else
    {
        PyObject *func=NULL;
        PyObject *builtins, *classmethod, *classmethod_str, *result=NULL;
        if (__Pyx_TypeCheck(method, __pyx_mstate_global->__Pyx_CachedMethodType)) {
            func = PyObject_GetAttrString(method, "__func__");
            if (!func) goto bad;
        } else {
            func = method;
            Py_INCREF(func);
        }
        builtins = PyEval_GetBuiltins(); // borrowed
        if (unlikely(!builtins)) goto bad;
        classmethod_str = PyUnicode_FromString("classmethod");
        if (unlikely(!classmethod_str)) goto bad;
        classmethod = PyObject_GetItem(builtins, classmethod_str);
        Py_DECREF(classmethod_str);
        if (unlikely(!classmethod)) goto bad;
        result = PyObject_CallFunctionObjArgs(classmethod, func, NULL);
        Py_DECREF(classmethod);
        bad:
        Py_XDECREF(func);
        return result;
    }
#endif
}

/* CalculateMetaclass (used by Py3ClassCreate) */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases;
#if CYTHON_ASSUME_SAFE_SIZE
    nbases = PyTuple_GET_SIZE(bases);
#else
    nbases = PyTuple_Size(bases);
    if (nbases < 0) return NULL;
#endif
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
#if CYTHON_ASSUME_SAFE_MACROS
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *tmp = PyTuple_GetItem(bases, i);
        if (!tmp) return NULL;
#endif
        tmptype = Py_TYPE(tmp);
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
        metaclass = &PyType_Type;
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

/* PyObjectLookupSpecial (used by Py3ClassCreate) */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error) {
    PyObject *res;
    PyTypeObject *tp = Py_TYPE(obj);
    res = _PyType_Lookup(tp, attr_name);
    if (likely(res)) {
        descrgetfunc f = Py_TYPE(res)->tp_descr_get;
        if (!f) {
            Py_INCREF(res);
        } else {
            res = f(res, obj, (PyObject *)tp);
        }
    } else if (with_error) {
        PyErr_SetObject(PyExc_AttributeError, attr_name);
    }
    return res;
}
#endif

/* Py3ClassCreate */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
    PyObject *ns;
    if (metaclass) {
        PyObject *prep = __Pyx_PyObject_GetAttrStrNoError(metaclass, __pyx_mstate_global->__pyx_n_u_prepare);
        if (prep) {
            PyObject *pargs[3] = {NULL, name, bases};
            ns = __Pyx_PyObject_FastCallDict(prep, pargs+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
            Py_DECREF(prep);
        } else {
            if (unlikely(PyErr_Occurred()))
                return NULL;
            ns = PyDict_New();
        }
    } else {
        ns = PyDict_New();
    }
    if (unlikely(!ns))
        return NULL;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_module, modname) < 0)) goto bad;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_qualname, qualname) < 0)) goto bad;
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_doc, doc) < 0)) goto bad;
    return ns;
bad:
    Py_DECREF(ns);
    return NULL;
}
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
                                      PyObject *dict, PyObject *mkw,
                                      int calculate_metaclass, int allow_py2_metaclass) {
    PyObject *result;
    PyObject *owned_metaclass = NULL;
    PyObject *margs[4] = {NULL, name, bases, dict};
    if (allow_py2_metaclass) {
        owned_metaclass = PyObject_GetItem(dict, __pyx_mstate_global->__pyx_n_u_metaclass);
        if (owned_metaclass) {
            metaclass = owned_metaclass;
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
            PyErr_Clear();
        } else {
            return NULL;
        }
    }
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
        Py_XDECREF(owned_metaclass);
        if (unlikely(!metaclass))
            return NULL;
        owned_metaclass = metaclass;
    }
    result = __Pyx_PyObject_FastCallDict(metaclass, margs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
    Py_XDECREF(owned_metaclass);
    return result;
}

/* Py3UpdateBases */
static PyObject*
__Pyx_PEP560_update_bases(PyObject *bases)
{
    Py_ssize_t i, j, size_bases;
    PyObject *base = NULL, *meth, *new_base, *result, *new_bases = NULL;
#if CYTHON_ASSUME_SAFE_SIZE
    size_bases = PyTuple_GET_SIZE(bases);
#else
    size_bases = PyTuple_Size(bases);
    if (size_bases < 0) return NULL;
#endif
    for (i = 0; i < size_bases; i++) {
#if CYTHON_AVOID_BORROWED_REFS
        Py_CLEAR(base);
#endif
#if CYTHON_ASSUME_SAFE_MACROS
        base = PyTuple_GET_ITEM(bases, i);
#else
        base = PyTuple_GetItem(bases, i);
        if (!base) goto error;
#endif
#if CYTHON_AVOID_BORROWED_REFS
        Py_INCREF(base);
#endif
        if (PyType_Check(base)) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        meth = __Pyx_PyObject_GetAttrStrNoError(base, __pyx_mstate_global->__pyx_n_u_mro_entries);
        if (!meth && PyErr_Occurred()) {
            goto error;
        }
        if (!meth) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        new_base = __Pyx_PyObject_CallOneArg(meth, bases);
        Py_DECREF(meth);
        if (!new_base) {
            goto error;
        }
        if (!PyTuple_Check(new_base)) {
            PyErr_SetString(PyExc_TypeError,
                            "__mro_entries__ must return a tuple");
            Py_DECREF(new_base);
            goto error;
        }
        if (!new_bases) {
            if (!(new_bases = PyList_New(i))) {
                goto error;
            }
            for (j = 0; j < i; j++) {
                PyObject *base_from_list;
#if CYTHON_ASSUME_SAFE_MACROS
                base_from_list = PyTuple_GET_ITEM(bases, j);
                PyList_SET_ITEM(new_bases, j, base_from_list);
                Py_INCREF(base_from_list);
#else
                base_from_list = PyTuple_GetItem(bases, j);
                if (!base_from_list) goto error;
                Py_INCREF(base_from_list);
                if (PyList_SetItem(new_bases, j, base_from_list) < 0) goto error;
#endif
            }
        }
#if CYTHON_ASSUME_SAFE_SIZE
        j = PyList_GET_SIZE(new_bases);
#else
        j = PyList_Size(new_bases);
        if (j < 0) goto error;
#endif
        if (PyList_SetSlice(new_bases, j, j, new_base) < 0) {
            goto error;
        }
        Py_DECREF(new_base);
    }
    if (!new_bases) {
        Py_INCREF(bases);
        return bases;
    }
    result = PyList_AsTuple(new_bases);
    Py_DECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return result;
error:
    Py_XDECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return NULL;
}

/* RegisterModuleCleanup */
#if CYTHON_COMPILING_IN_PYPY
static PyObject* __pyx_module_cleanup_atexit(PyObject *module, PyObject *unused) {
    CYTHON_UNUSED_VAR(unused);
    __pyx_module_cleanup(module);
    Py_INCREF(Py_None); return Py_None;
}
static int __Pyx_RegisterCleanup(void) {
    static PyMethodDef cleanup_def = {
        "__cleanup", (PyCFunction)__pyx_module_cleanup_atexit, METH_NOARGS, 0};
    PyObject *cleanup_func = 0;
    PyObject *atexit = 0;
    PyObject *reg = 0;
    PyObject *args = 0;
    PyObject *res = 0;
    int ret = -1;
    cleanup_func = PyCFunction_New(&cleanup_def, 0);
    if (!cleanup_func)
        goto bad;
    atexit = PyImport_ImportModule("atexit");
    if (!atexit)
        goto bad;
    reg = PyObject_GetAttrString(atexit, "_exithandlers");
    if (reg && PyList_Check(reg)) {
        PyObject *a, *kw;
        a = PyTuple_New(0);
        kw = PyDict_New();
        if (!a || !kw) {
            Py_XDECREF(a);
            Py_XDECREF(kw);
            goto bad;
        }
        args = PyTuple_Pack(3, cleanup_func, a, kw);
        Py_DECREF(a);
        Py_DECREF(kw);
        if (!args)
            goto bad;
        ret = PyList_Insert(reg, 0, args);
    } else {
        if (!reg)
            PyErr_Clear();
        Py_XDECREF(reg);
        reg = PyObject_GetAttrString(atexit, "register");
        if (!reg)
            goto bad;
        args = PyTuple_Pack(1, cleanup_func);
        if (!args)
            goto bad;
        res = PyObject_CallObject(reg, args);
        if (!res)
            goto bad;
        ret = 0;
    }
bad:
    Py_XDECREF(cleanup_func);
    Py_XDECREF(atexit);
    Py_XDECREF(reg);
    Py_XDECREF(args);
    Py_XDECREF(res);
    return ret;
}
#endif

/* CLineInTraceback (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o))
#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL);
#else
PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) {
    PyObject **dict_ptr = _PyObject_GetDictPtr(o);
    return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL;
}
#endif
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline = NULL;
    PyObject *ptype, *pvalue, *ptraceback;
    PyObject *cython_runtime_dict;
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
    cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, cython_runtime_dict,
            __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False))
    }
    if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    Py_XDECREF(use_cline);
    Py_XDECREF(cython_runtime_dict);
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache (used by AddTraceback) */
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) {
    __Pyx_CachedCodeObjectType* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!code_cache->entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = code_cache->entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__find_code_object;
    return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count);
    if (old_count < 0) {
        __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
        return NULL;
    }
#endif
    __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
#endif
    return result;
#endif
}
static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object)
{
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            code_cache->entries = entries;
            code_cache->max_count = 64;
            code_cache->count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) {
        __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_INCREF(code_object);
        Py_DECREF(tmp);
        return;
    }
    if (code_cache->count == code_cache->max_count) {
        int new_max = code_cache->max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        code_cache->entries = entries;
        code_cache->max_count = new_max;
    }
    for (i=code_cache->count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    code_cache->count++;
    Py_INCREF(code_object);
}
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__insert_code_object;
    return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type expected = 0;
    if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) {
        return;
    }
#endif
    __pyx__insert_code_object(code_cache, code_line, code_object);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN);
#endif
#endif
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    PyErr_Clear();
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
    code_object = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!code_object) {
        code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
        if (unlikely(!code_object)) goto bad;
        py_py_line = PyLong_FromLong(py_line);
        if (unlikely(!py_py_line)) goto bad;
        if (c_line) {
            py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        } else {
            py_funcname = PyUnicode_FromString(funcname);
        }
        if (unlikely(!py_funcname)) goto bad;
        dict = PyDict_New();
        if (unlikely(!dict)) goto bad;
        {
            PyObject *old_code_object = code_object;
            code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
            Py_DECREF(old_code_object);
        }
        if (unlikely(!code_object)) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, code_object);
    } else {
        dict = PyDict_New();
    }
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    PyErr_Restore(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    if (c_line) {
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
    }
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_mstate_global->__pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* CheckUnpickleChecksum */
static void __Pyx_RaiseUnpickleChecksumError(long checksum, long checksum1, long checksum2, long checksum3, const char *members) {
    PyObject *pickle_module = PyImport_ImportModule("pickle");
    if (unlikely(!pickle_module)) return;
    PyObject *pickle_error = PyObject_GetAttrString(pickle_module, "PickleError");
    Py_DECREF(pickle_module);
    if (unlikely(!pickle_error)) return;
    if (checksum2 == checksum1) {
        PyErr_Format(pickle_error, "Incompatible checksums (0x%x vs (0x%x) = (%s))",
            checksum, checksum1, members);
    } else if (checksum3 == checksum2) {
        PyErr_Format(pickle_error, "Incompatible checksums (0x%x vs (0x%x, 0x%x) = (%s))",
            checksum, checksum1, checksum2, members);
    } else {
        PyErr_Format(pickle_error, "Incompatible checksums (0x%x vs (0x%x, 0x%x, 0x%x) = (%s))",
            checksum, checksum1, checksum2, checksum3, members);
    }
    Py_DECREF(pickle_error);
}
static int __Pyx_CheckUnpickleChecksum(long checksum, long checksum1, long checksum2, long checksum3, const char *members) {
    int found = 0;
    found |= checksum1 == checksum;
    found |= checksum2 == checksum;
    found |= checksum3 == checksum;
    if (likely(found))
        return 0;
    __Pyx_RaiseUnpickleChecksumError(checksum, checksum1, checksum2, checksum3, members);
    return -1;
}

/* CIntFromPyVerify */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyLong_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (long) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(long) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(long) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
        } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        long val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (long) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (long) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (long) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (long) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((long) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((long) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (long) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* UpdateUnpickledDict */
static int __Pyx__UpdateUnpickledDict(PyObject *obj, PyObject *state, Py_ssize_t index) {
    PyObject *state_dict = __Pyx_PySequence_ITEM(state, index);
    if (unlikely(!state_dict)) {
        return -1;
    }
    int non_empty = PyObject_IsTrue(state_dict);
    if (non_empty == 0) {
        Py_DECREF(state_dict);
        return 0;
    } else if (unlikely(non_empty == -1)) {
        return -1;
    }
    PyObject *dict;
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    dict = PyObject_GetAttrString(obj, "__dict__");
    #else
    dict = PyObject_GenericGetDict(obj, NULL);
    #endif
    if (unlikely(!dict)) {
        Py_DECREF(state_dict);
        return -1;
    }
    int result;
    if (likely(PyDict_CheckExact(dict))) {
        result = PyDict_Update(dict, state_dict);
    } else {
        PyObject *obj_result = __Pyx_PyObject_CallMethod1(dict, __pyx_mstate_global->__pyx_n_u_update, state_dict);
        if (likely(obj_result)) {
            Py_DECREF(obj_result);
            result = 0;
        } else {
            result = -1;
        }
    }
    Py_DECREF(state_dict);
    Py_DECREF(dict);
    return result;
}
static int __Pyx_UpdateUnpickledDict(PyObject *obj, PyObject *state, Py_ssize_t index) {
    Py_ssize_t state_size = __Pyx_PyTuple_GET_SIZE(state);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(state_size == -1)) return -1;
    #endif
    if (state_size <= index) {
        return 0;
    }
    return __Pyx__UpdateUnpickledDict(obj, state, index);
}

/* FormatTypeName */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
static __Pyx_TypeName
__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp)
{
    PyObject *module = NULL, *name = NULL, *result = NULL;
    #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
    name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_qualname);
    #else
    name = PyType_GetQualName(tp);
    #endif
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad;
    module = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_module);
    if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad;
    if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) {
        result = name;
        name = NULL;
        goto done;
    }
    result = PyUnicode_FromFormat("%U.%U", module, name);
    if (unlikely(result == NULL)) goto bad;
  done:
    Py_XDECREF(name);
    Py_XDECREF(module);
    return result;
  bad:
    PyErr_Clear();
    if (name) {
        result = name;
        name = NULL;
    } else {
        result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u__27);
    }
    goto done;
}
#endif

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyLong_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
        } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* GetRuntimeVersion */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
void __Pyx_init_runtime_version(void) {
    if (__Pyx_cached_runtime_version == 0) {
        const char* rt_version = Py_GetVersion();
        unsigned long version = 0;
        unsigned long factor = 0x01000000UL;
        unsigned int digit = 0;
        int i = 0;
        while (factor) {
            while ('0' <= rt_version[i] && rt_version[i] <= '9') {
                digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
                ++i;
            }
            version += factor * digit;
            if (rt_version[i] != '.')
                break;
            digit = 0;
            factor >>= 8;
            ++i;
        }
        __Pyx_cached_runtime_version = version;
    }
}
#endif
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    return Py_Version & ~0xFFUL;
#else
    return __Pyx_cached_runtime_version;
#endif
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* NewCodeObj */
#if CYTHON_COMPILING_IN_LIMITED_API
    static PyObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                       PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                       PyObject *fv, PyObject *cell, PyObject* fn,
                                       PyObject *name, int fline, PyObject *lnos) {
        PyObject *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 7) {
            (void)p;
            result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOOO", a, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return result;
    }
#elif PY_VERSION_HEX >= 0x030B0000
  static PyCodeObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                         PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                         PyObject *fv, PyObject *cell, PyObject* fn,
                                         PyObject *name, int fline, PyObject *lnos) {
    PyCodeObject *result;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
    if (likely(result))
        result->_co_firsttraceable = 0;
    #endif
    return result;
  }
#elif !CYTHON_COMPILING_IN_PYPY
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
) {
    PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL;
    Py_ssize_t var_count = (Py_ssize_t) descr.nlocals;
    PyObject *varnames_tuple = PyTuple_New(var_count);
    if (unlikely(!varnames_tuple)) return NULL;
    for (Py_ssize_t i=0; i < var_count; i++) {
        Py_INCREF(varnames[i]);
        if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done;
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple);
    if (!varnames_tuple_dedup) {
        if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done;
        varnames_tuple_dedup = varnames_tuple;
    }
    #else
    varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple);
    if (unlikely(!varnames_tuple_dedup)) goto done;
    #endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(varnames_tuple_dedup);
    #endif
    if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) {
        Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(line_table_length == -1)) goto done;
        #endif
        Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL;
        code_bytes = PyBytes_FromStringAndSize(NULL, code_len);
        if (unlikely(!code_bytes)) goto done;
        char* c_code_bytes = PyBytes_AsString(code_bytes);
        if (unlikely(!c_code_bytes)) goto done;
        memset(c_code_bytes, 0, (size_t) code_len);
    }
    code_obj = (PyObject*) __Pyx__PyCode_New(
        (int) descr.argcount,
        (int) descr.num_posonly_args,
        (int) descr.num_kwonly_args,
        (int) descr.nlocals,
        0,
        (int) descr.flags,
        code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        varnames_tuple_dedup,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        filename,
        funcname,
        (int) descr.first_line,
        (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes
    );
done:
    Py_XDECREF(code_bytes);
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(varnames_tuple_dedup);
    #endif
    Py_DECREF(varnames_tuple);
    return code_obj;
}

/* DecompressString */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) {
    PyObject *module = NULL, *decompress, *compressed_bytes, *decompressed;
    const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib";
    PyObject *methodname = PyUnicode_FromString("decompress");
    if (unlikely(!methodname)) return NULL;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    if (algo == 3) {
        PyObject *fromlist = Py_BuildValue("[O]", methodname);
        if (unlikely(!fromlist)) goto bad;
        module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
    } else
    #endif
        module = PyImport_ImportModule(module_name);
    if (unlikely(!module)) goto import_failed;
    decompress = PyObject_GetAttr(module, methodname);
    if (unlikely(!decompress)) goto import_failed;
    {
        #ifdef __cplusplus
            char *memview_bytes = const_cast<char*>(s);
        #else
            #if defined(__clang__)
              #pragma clang diagnostic push
              #pragma clang diagnostic ignored "-Wcast-qual"
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic push
              #pragma GCC diagnostic ignored "-Wcast-qual"
            #endif
            char *memview_bytes = (char*) s;
            #if defined(__clang__)
              #pragma clang diagnostic pop
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic pop
            #endif
        #endif
        #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ)
        int memview_flags = 0x100;
        #else
        int memview_flags = PyBUF_READ;
        #endif
        compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags);
    }
    if (unlikely(!compressed_bytes)) {
        Py_DECREF(decompress);
        goto bad;
    }
    decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL);
    Py_DECREF(compressed_bytes);
    Py_DECREF(decompress);
    Py_DECREF(module);
    Py_DECREF(methodname);
    return decompressed;
import_failed:
    PyErr_Format(PyExc_ImportError,
        "Failed to import '%.20s.decompress' - cannot initialise module strings. "
        "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.",
        module_name, algo);
bad:
    Py_XDECREF(module);
    Py_DECREF(methodname);
    return NULL;
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    {
        const char* result;
        Py_ssize_t unicode_length;
        CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL;
        #else
        result = PyUnicode_AsUTF8AndSize(o, length);
        #endif
        #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        unicode_length = PyUnicode_GetLength(o);
        if (unlikely(unicode_length < 0)) return NULL;
        if (unlikely(unicode_length != *length)) {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
        #endif
        return result;
    }
#else
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
}
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
    if (PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
    if (PyByteArray_Check(o)) {
#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)))
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
#else
        *length = PyByteArray_Size(o);
        if (*length == -1) return NULL;
        return PyByteArray_AsString(o);
#endif
    } else
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_LongWrongResultType(PyObject* result) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result));
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
    PyErr_Format(PyExc_TypeError,
                 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")",
                 result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  PyObject *res = NULL;
  if (likely(PyLong_Check(x)))
      return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  if (likely(m && m->nb_int)) {
      res = m->nb_int(x);
  }
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
      res = PyNumber_Long(x);
  }
#endif
  if (likely(res)) {
      if (unlikely(!PyLong_CheckExact(res))) {
          return __Pyx_PyNumber_LongWrongResultType(res);
      }
  }
  else if (!PyErr_Occurred()) {
      PyErr_SetString(PyExc_TypeError,
                      "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(__Pyx_PyLong_IsCompact(b))) {
        return __Pyx_PyLong_CompactValue(b);
    } else {
      const digit* digits = __Pyx_PyLong_Digits(b);
      const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyLong_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyLong_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) {
    CYTHON_UNUSED_VAR(b);
    return __Pyx_NewRef(Py_None);
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return __Pyx_NewRef(b ? Py_True: Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
    return PyLong_FromSize_t(ival);
}


/* MultiPhaseInitModuleState */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000)
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1
#else
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0
#endif
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS
#error "Module state with PEP489 requires atomics. Currently that's one of\
 C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics"
#endif
#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#define __Pyx_ModuleStateLookup_Lock()
#define __Pyx_ModuleStateLookup_Unlock()
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
static PyMutex __Pyx_ModuleStateLookup_mutex = {0};
#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(__cplusplus) && __cplusplus >= 201103L
#include <mutex>
static std::mutex __Pyx_ModuleStateLookup_mutex;
#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock()
#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock()
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__)
#include <threads.h>
static mtx_t __Pyx_ModuleStateLookup_mutex;
static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT;
static void __Pyx_ModuleStateLookup_initialize_mutex(void) {
    mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain);
}
#define __Pyx_ModuleStateLookup_Lock()\
  call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\
  mtx_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER;
#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(_WIN32)
#include <Windows.h>  // synchapi.h on its own doesn't work
static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT;
#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#else
#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\
 Requires C standard >= C11, or C++ standard >= C++11,\
 or pthreads, or the Windows 32 API, or Python >= 3.13."
#endif
typedef struct {
    int64_t id;
    PyObject *module;
} __Pyx_InterpreterIdAndModule;
typedef struct {
    char interpreter_id_as_index;
    Py_ssize_t count;
    Py_ssize_t allocated;
    __Pyx_InterpreterIdAndModule table[1];
} __Pyx_ModuleStateLookupData;
#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0;
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0;
#else
static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL;
#endif
static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound(
        __Pyx_InterpreterIdAndModule* table,
        Py_ssize_t count,
        int64_t interpreterId) {
    __Pyx_InterpreterIdAndModule* begin = table;
    __Pyx_InterpreterIdAndModule* end = begin + count;
    if (begin->id == interpreterId) {
        return begin;
    }
    while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
        __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2;
        if (halfway->id == interpreterId) {
            return halfway;
        }
        if (halfway->id < interpreterId) {
            begin = halfway;
        } else {
            end = halfway;
        }
    }
    for (; begin < end; ++begin) {
        if (begin->id >= interpreterId) return begin;
    }
    return begin;
}
static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return NULL;
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
    {
        __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        if (likely(data)) {
            __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data);
            if (likely(data == new_data)) {
                goto read_finished;
            }
        }
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        __Pyx_ModuleStateLookup_Lock();
        __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter);
        data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
        __Pyx_ModuleStateLookup_Unlock();
    }
  read_finished:;
#else
    __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_InterpreterIdAndModule* found = NULL;
    if (unlikely(!data)) goto end;
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            found = data->table+interpreter_id;
        }
    } else {
        found = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
    }
  end:
    {
        PyObject *result=NULL;
        if (found && found->id == interpreter_id) {
            result = found->module;
        }
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
#endif
        return result;
    }
}
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) {
    while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0);
}
#else
#define __Pyx_ModuleStateLookup_wait_until_no_readers()
#endif
static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) {
    Py_ssize_t to_allocate = (*old_data)->allocated;
    while (to_allocate <= interpreter_id) {
        if (to_allocate == 0) to_allocate = 1;
        else to_allocate *= 2;
    }
    __Pyx_ModuleStateLookupData *new_data = *old_data;
    if (to_allocate != (*old_data)->allocated) {
         new_data = (__Pyx_ModuleStateLookupData *)realloc(
            *old_data,
            sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
        if (!new_data) {
            PyErr_NoMemory();
            return -1;
        }
        for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) {
            new_data->table[i].id = i;
            new_data->table[i].module = NULL;
        }
        new_data->allocated = to_allocate;
    }
    new_data->table[interpreter_id].module = module;
    if (new_data->count < interpreter_id+1) {
        new_data->count = interpreter_id+1;
    }
    *old_data = new_data;
    return 0;
}
static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) {
    __Pyx_InterpreterIdAndModule *read = data->table;
    __Pyx_InterpreterIdAndModule *write = data->table;
    __Pyx_InterpreterIdAndModule *end = read + data->count;
    for (; read<end; ++read) {
        if (read->module) {
            write->id = read->id;
            write->module = read->module;
            ++write;
        }
    }
    data->count = write - data->table;
    for (; write<end; ++write) {
        write->id = 0;
        write->module = NULL;
    }
    data->interpreter_id_as_index = 0;
}
static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    int result = 0;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_ModuleStateLookupData *new_data = old_data;
    if (!new_data) {
        new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData));
        if (!new_data) {
            result = -1;
            PyErr_NoMemory();
            goto end;
        }
        new_data->allocated = 1;
        new_data->interpreter_id_as_index = 1;
    }
    __Pyx_ModuleStateLookup_wait_until_no_readers();
    if (new_data->interpreter_id_as_index) {
        if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
            result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id);
            goto end;
        }
        __Pyx_State_ConvertFromInterpIdAsIndex(new_data);
    }
    {
        Py_ssize_t insert_at = 0;
        {
            __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
                new_data->table, new_data->count, interpreter_id);
            assert(lower_bound);
            insert_at = lower_bound - new_data->table;
            if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) {
                lower_bound->module = module;
                goto end;  // already in table, nothing more to do
            }
        }
        if (new_data->count+1 >= new_data->allocated) {
            Py_ssize_t to_allocate = (new_data->count+1)*2;
            new_data =
                (__Pyx_ModuleStateLookupData*)realloc(
                    new_data,
                    sizeof(__Pyx_ModuleStateLookupData) +
                    (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
            if (!new_data) {
                result = -1;
                new_data = old_data;
                PyErr_NoMemory();
                goto end;
            }
            new_data->allocated = to_allocate;
        }
        ++new_data->count;
        int64_t last_id = interpreter_id;
        PyObject *last_module = module;
        for (Py_ssize_t i=insert_at; i<new_data->count; ++i) {
            int64_t current_id = new_data->table[i].id;
            new_data->table[i].id = last_id;
            last_id = current_id;
            PyObject *current_module = new_data->table[i].module;
            new_data->table[i].module = last_module;
            last_module = current_module;
        }
    }
  end:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data);
#else
    __Pyx_ModuleStateLookup_data = new_data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return result;
}
static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data;
#endif
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            data->table[interpreter_id].module = NULL;
        }
        goto done;
    }
    {
        __Pyx_ModuleStateLookup_wait_until_no_readers();
        __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
        if (!lower_bound) goto done;
        if (lower_bound->id != interpreter_id) goto done;
        __Pyx_InterpreterIdAndModule *end = data->table+data->count;
        for (;lower_bound<end-1; ++lower_bound) {
            lower_bound->id = (lower_bound+1)->id;
            lower_bound->module = (lower_bound+1)->module;
        }
    }
    --data->count;
    if (data->count == 0) {
        free(data);
        data = NULL;
    }
  done:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data);
#else
    __Pyx_ModuleStateLookup_data = data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return 0;
}
#endif

/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
