function getCookie(e){var U=document.cookie.match(new…