(()=>{"use strict";var e={25374:(e,t,n)=>{n.r(t)},54157:(e,t,n)=>{n.r(t)}},t={};function n(o){var c=t[o];if(void 0!==c)return c.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{function e(e){const t=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}var t=function(e,t,n,o){return new(n||(n=Promise))((function(c,i){function r(e){try{d(o.next(e))}catch(t){i(t)}}function a(e){try{d(o.throw(e))}catch(t){i(t)}}function d(e){var t;e.done?c(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};window.location.pathname.includes("mobile")?n(25374):n(54157),document.addEventListener("DOMContentLoaded",(()=>{!function(){t(this,void 0,void 0,(function*(){yield a(),window.addEventListener("message",(e=>{e.origin&&""!==e.origin&&e.origin===c&&"start"===e.data&&a()}),!1)}))}()})),window.captchaSuccess=function(e){i?document.location.replace("bitwarden://captcha-callback?token="+encodeURIComponent(e)):function(e){if(r)return;parent.postMessage("success|"+e,o),r=!0}(e)},window.captchaError=function(){d("An error occurred with the captcha. Try again.")};let o=null,c=null,i=null,r=!1;function a(){var n;return t(this,void 0,void 0,(function*(){r=!1;const a=e("data");if(!a)return void d("No data.");if(o=e("parent"),!o)return void d("No parent.");let s;o=decodeURIComponent(o),c=new URL(o).origin;try{s=JSON.parse(function(e,t=!1){return t&&(e=e.replace(/ /g,"+")),decodeURIComponent(Array.prototype.map.call(atob(e),(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""))}(a,!0))}catch(m){return void d("Cannot parse data.")}i=null!=s.callbackUri||!0===s.mobile;let p="https://hcaptcha.com/1/api.js?render=explicit";s.locale&&(p+=`&hl=${null!==(n=encodeURIComponent(s.locale))&&void 0!==n?n:"en"}`);const h=document.getElementById("captchaRequired");s.captchaRequiredText&&h&&(h.textContent=s.captchaRequiredText);const f=document.createElement("script");f.src=p,f.async=!0,f.defer=!0,f.addEventListener("load",(()=>{hcaptcha.render("captcha",{sitekey:encodeURIComponent(s.siteKey),callback:"captchaSuccess","error-callback":"captchaError"}),function(){t(this,void 0,void 0,(function*(){const e=document.body.lastChild;for(;;)l({height:"hidden"===e.style.visibility?document.documentElement.offsetHeight:document.documentElement.scrollHeight,width:document.documentElement.scrollWidth}),yield u(100)}))}()})),document.head.appendChild(f)}))}function d(e){parent.postMessage("error|"+e,o)}function l(e){parent.postMessage("info|"+JSON.stringify(e),o)}function u(e){return t(this,void 0,void 0,(function*(){yield new Promise((t=>setTimeout(t,e)))}))}})()})();
//# sourceMappingURL=captcha.e2f543930127fcb95585.js.map