/*! For license information please see shield-notbot.bundle.js.LICENSE.txt */ (()=>{"use strict";const t=new TextEncoder;function e(t){return[...new Uint8Array(t)].map((t=>t.toString(16).padStart(2,"0"))).join("")}async function r(e,r){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof r?t.encode(r):new Uint8Array(r))}async function n(t,n){return e(await r(t,n))}function o(t,e,r="SHA-256",o=1e6,i=0){const a=new AbortController,u=Date.now();return{promise:(async()=>{for(let c=i;c<=o;c+=1){if(a.signal.aborted)return null;if(await n(r,e+c)===t)return{number:c,took:Date.now()-u}}return null})(),controller:a}}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var r=0;r=0?(n=t.indexOf(r)+13,o=t.lastIndexOf("##APTO_CLOSE##")):(n=t.indexOf("{"),o=t.lastIndexOf("}"));try{e=JSON.parse(t.substring(n,o))}catch(t){e={}}}return e}}],(e=null)&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._init_data=e,this._base_data=this.retrieveBaseData(),this.init()},(e=[{key:"retrieveBaseData",value:function(){return this._init_data}},{key:"init",value:function(){}},{key:"run",value:function(){}},{key:"exec",value:function(){this.canRun()&&this.run()}},{key:"canRun",value:function(){return!0}}])&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}());function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function _(t,e){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],l=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),j(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:P(e),r,n},"next"===this.method&&(this.arg=t),s}},e}function D(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function F(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){D(i,n,o,a,u,"next",t)}function u(t){D(i,n,o,a,u,"throw",t)}a(void 0)}))}}function A(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:12e4;this.start_refire_at=Date.now(),window.setTimeout((function(){0===e||t.windowHasHadFocus()?t.fire():t.reFire(2500)}),e)}},{key:"performPathNotbot",value:(u=F(C().mark((function t(){return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.fetch_NotBot());case 1:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"hasAltchaChallengeData",value:function(){return this.verifyAltchaChallengeData(this.notbot_altcha_challenge_request_data)}},{key:"verifyAltchaChallengeData",value:function(t){var e=null!==t;return e&&(["challenge","salt","algorithm","maxnumber","expires"].forEach((function(r){Object.keys(t).includes(r)||(e=!1)})),e=e&&Math.round(Date.now()/1e3)this.window_blur_at||this.window_focus_at>this.start_refire_at}}],n&&A(r.prototype,n),i&&A(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i,a,u}(w);"shield_vars_notbot"in window&&new M(window.shield_vars_notbot.comps.notbot)})();