Third quantization for scalar and spinor wave functions of the Universe in an extended minisuperspace