Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces Inverse period mappings of \(K3\) surfaces and a construction of modular forms for a lattice with the Kneser conditions 