import re
with open('index_main.html','r',encoding='utf-8') as f:
    html = f.read()
# 找 VERIFIED_DETAILS Set
m = re.search(r'VERIFIED_DETAILS\s*=\s*new\s+Set\s*\(\s*\[', html)
start = m.end()
depth = 1
i = start
while i < len(html) and depth > 0:
    c = html[i]
    if c == '[':
        depth += 1
    elif c == ']':
        depth -= 1
    i += 1
vd_end = i  # just after ]
print(f'VD Set array ends at position {vd_end}')
# 看 VD 数组最后 800 字符
print('--- VD last 800 chars ---')
print(html[vd_end-800:vd_end+100])
