Are there unemployment benefits in taiwan?

Is that something that is taken out of your paycheck? or something people pay separately? And is it only for ROC citizens or do residents also get qualify?