function ReCaptcha(n,t){function s(n){r===undefined&&console.log("ReCaptcha is submited but the onSubmitCallback is undefined!");r(n)}function o(){if(!e){u=!0;return}i===undefined?i=grecaptcha.render("RecaptchaDiv",{sitekey:t,size:"invisible",badge:"bottomleft",callback:s}):f&&(grecaptcha.reset(i),f=!1)}function h(n){r=n}function c(){e=!0;u&&(o(),u=!1)}function l(){i===undefined&&console.log("ReCaptcha execute: captchaWidgetId is undefined");grecaptcha.execute(i);f=!0}var i,r,e=!1,u=!1,f=!1;return{LoadCaptcha:o,SetSubmitCallback:h,OnRecaptchaLoaded:c,Execute:l}}