PageSourceSearch

https://www.hiringourheroes.org/wp-content/plugins/gf-spam-hexer/j…?ver=7423d3b14bbcca5e45d8

js hiringourheroes.org collected 2026-09-24 08:01:20 UTC 34,135 bytes, 2 lines download raw bytes

1(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t=new Map,n=new Map,r=new Set,o=new Set,i=new Map;const a=window.wp.apiFetch;var l=e.n(a);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var c=64,s=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],f=Math.pow(2,53)-1,h=function(){function e(){this.state=Int32Array.from(u),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>f)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===c&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%c>=56){for(var r=this.bufferLength;r<c;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(32);for(r=0;r<8;r++)o[4*r]=this.state[r]>>>24&255,o[4*r+1]=this.state[r]>>>16&255,o[4*r+2]=this.state[r]>>>8&255,o[4*r+3]=this.state[r]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],u=t[6],f=t[7],h=0;h<c;h++){if(h<16)this.temp[h]=(255&e[4*h])<<24|(255&e[4*h+1])<<16|(255&e[4*h+2])<<8|255&e[4*h+3];else{var d=this.temp[h-2],p=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,g=((d=this.temp[h-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[h]=(p+this.temp[h-7]|0)+(g+this.temp[h-16]|0)}var v=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&l^~a&u)|0)+(f+(s[h]+this.temp[h]|0)|0)|0,y=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&r^n&o^r&o)|0;f=u,u=l,l=a,a=i+v|0,i=o,o=r,r=n,n=v+y|0}t[0]+=n,t[1]+=r,t[2]+=o,t[3]+=i,t[4]+=a,t[5]+=l,t[6]+=u,t[7]+=f},e}(),d="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function p(e){return e instanceof Uint8Array?e:"string"==typeof e?d(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var g=function(){function e(e){this.secret=e,this.hash=new h,this.reset()}return e.prototype.update=function(e){var t;if(("string"==typeof(t=e)?0!==t.length:0!==t.byteLength)&&!this.error)try{this.hash.update(p(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return e=this,t=void 0,r=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}(this,(function(e){return[2,this.digestSync()]}))}
1,new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r},e.prototype.reset=function(){if(this.hash=new h,this.secret){this.outer=new h;var e=function(e){var t=p(e);if(t.byteLength>c){var n=new h;n.update(t),t=n.digest()}var r=new Uint8Array(c);return r.set(t),r}(this.secret),t=new Uint8Array(c);t.set(e);for(var n=0;n<c;n++)e[n]^=54,t[n]^=92;for(this.hash.update(e),this.outer.update(t),n=0;n<e.byteLength;n++)e[n]=0}},e}(),v=new TextEncoder,y="undefined"!=typeof crypto&&void 0!==crypto.subtle&&"function"==typeof crypto.subtle.digest;function b(e){return t=this,n=void 0,o=function(){var t,n,r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}(this,(function(o){switch(o.label){case 0:return y?[4,crypto.subtle.digest("SHA-256",v.encode(e))]:[3,2];case 1:return t=o.sent(),[2,new Uint8Array(t)];case 2:return(n=new g).update(e),r=Uint8Array.bind,[4,n.digest()];case 3:return[2,new(r.apply(Uint8Array,[void 0,o.sent()]))]}}))},new((r=Promise)||(r=Promise))((function(e,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}c((o=o.apply(t,n||[])).next())}));var t,n,r,o}var m=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},w=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},k=[],S=null;function x(){return null!==S?S:S=function(){if("undefined"!=typeof window&&window.location){var e=new URLSearchParams(window.location.search);if(e.has("gp_debug")){var t=e.get("gp_debug");if(null===t||""===t||"1"===t||"true"===t)return!0}if(window.location.hash.includes("gp-debug"))return!0}return!1}()}function E(e){var t="[GF Spam Hexer] [".concat(e,"]"),n=function(e){for(var n,r,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(k),l=a.next();!l.done;l=a.next()){var c=l.value;try{c(e,t,o)}catch(e){}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}("error"===e||x())&&console[e].apply(console,w([t],m(o),!1))};return{log:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.apply(void 0,w(["log"],m(e),!1))},warn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.apply(void 0,w(["warn"],m(e),!1))},error:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.apply(void 0,w(["error"],m(e),!1))},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.apply(void 0,w(["info"],m(e),!1))},group:function(e,n){x()&&console.groupCollapsed("".concat(t," ").concat(e));try{n()}finally{x()&&console.groupEnd()}},groupExpanded:function(e,n){x()&&console.group("".concat(t," ").concat(e));try{n()}finally{x()&&console.groupEnd()}},table:function(e){x()&&(console.log(t),console.table(e))},time:function(e){x()&&console.time("".concat(t," ").concat(e))},timeEnd:function(e){x()&&console.timeEnd("".concat(t," ").concat(e))}}}E("Core");
vendor: 3,059 bytes, line 1
1var I=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}},O=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},P=E("PoWManager"),_=function(){function e(e){this.worker=null,this.solution=null,this.solving=!1,this.cancelled=!1,this.isFallback=!1,this.pendingResolvers=[],this.challengeExpires=0,this.hashesChecked=0,this.solveStartedAt=0,this.solveDifficulty=0,this.config=e}return e.prototype.init=function(){return I(this,void 0,Promise,(function(){var e,t,n,r,o;return C(this,(function(i){switch(i.label){case 0:P.log("init() — formId:",this.config.formId,"workerUrl:",this.config.workerUrl),P.log("fallbackChallenge:",this.config.fallbackChallenge),i.label=1;case 1:return i.trys.push([1,3,,4]),P.log("Fetching fresh challenge from REST…"),[4,this.fetchChallenge()];case 2:return e=i.sent(),this.isFallback=!1,P.log("Challenge fetched (REST):",e),this.solve(e),[3,4];case 3:return t=i.sent(),P.warn("REST fetch failed, using fallback challenge:",t),(n=this.config.fallbackChallenge)?(this.isFallback=!0,this.clientNonce=null!==(o=null===(r=crypto.randomUUID)||void 0===r?void 0:r.call(crypto))&&void 0!==o?o:Array.from(crypto.getRandomValues(new Uint8Array(16))).map((function(e){return("0"+e.toString(16)).slice(-2)})).join(""),P.log("Solving fallback challenge with clientNonce:",this.clientNonce,n),this.solve(n)):P.warn("No fallback challenge available — PoW will be skipped."),[3,4];case 4:return[2]}}
1))}))},e.prototype.getSolution=function(){return this.solution},e.prototype.isSolving=function(){return this.solving},e.prototype.waitForSolution=function(e){var t=this;return void 0===e&&(e=1e4),this.solution?Promise.resolve(this.solution):new Promise((function(n){var r=function(e){clearTimeout(o),n(e)},o=setTimeout((function(){var e=t.pendingResolvers.indexOf(r);-1!==e&&t.pendingResolvers.splice(e,1),n(null)}),e);t.pendingResolvers.push(r)}))},e.prototype.destroy=function(){var e,t;this.cancelled=!0,this.worker&&(this.worker.terminate(),this.worker=null),this.solving=!1;var n=this.pendingResolvers.splice(0);try{for(var r=O(n),o=r.next();!o.done;o=r.next())(0,o.value)(null)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.isExpiredOrExpiring=function(e){if(void 0===e&&(e=30),!this.challengeExpires)return!1;var t=Date.now()/1e3;return this.challengeExpires-t<e},e.prototype.getDebugStatus=function(){var e,t;return{hasSolution:!!this.solution,isSolving:this.solving,isExpired:this.isExpiredOrExpiring(0),isExpiring:this.isExpiredOrExpiring(60),challengeExpires:this.challengeExpires,isFallback:this.isFallback,hashesChecked:this.hashesChecked,elapsedMs:this.solving?Math.round(performance.now()-this.solveStartedAt):null!==(t=null===(e=this.solution)||void 0===e?void 0:e.solve_time_ms)&&void 0!==t?t:0,difficulty:this.solveDifficulty,solution:this.solution}},e.prototype.forceExpire=function(){this.challengeExpires=1},e.prototype.fetchChallenge=function(){return I(this,void 0,Promise,(function(){var e,t;return C(this,(function(n){switch(n.label){case 0:e=new AbortController,t=setTimeout((function(){return e.abort()}),this.config.fetchTimeout),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,l()({path:"/gfsh/v1/challenge",method:"POST",data:{form_id:this.config.formId},signal:e.signal})];case 2:return[2,n.sent()];case 3:return clearTimeout(t),[7];case 4:return[2]}}
1))}))},e.prototype.solve=function(e){this.solving?P.warn("solve() called while already solving — ignoring."):(this.solving=!0,this.hashesChecked=0,this.solveStartedAt=performance.now(),this.solveDifficulty=e.difficulty,P.log("Starting solve — difficulty:",e.difficulty,"| Worker available:","undefined"!=typeof Worker),"undefined"!=typeof Worker?this.solveInWorker(e):(P.log("Web Worker unavailable — using main-thread chunked solver."),this.solveChunked(e)))},e.prototype.solveInWorker=function(e){var t=this;P.log("Spawning Web Worker from URL:",this.config.workerUrl);try{this.worker=new Worker(this.config.workerUrl)}catch(t){return P.warn("Worker creation failed, falling back to chunked solver:",t),void this.solveChunked(e)}var n=performance.now();this.worker.onmessage=function(r){var o;if(r.data.progress)return t.hashesChecked=r.data.counter,void P.log("Worker progress — hashes tried:",r.data.counter);t.hashesChecked=r.data.counter;var i=performance.now()-n;t.solution={challenge:e.challenge,signature:e.signature,solution:String(r.data.counter),solve_time_ms:Math.round(i),is_fallback:t.isFallback,client_nonce:t.isFallback?t.clientNonce:void 0},t.challengeExpires=e.expires,P.log("Worker solved! solution:",t.solution),t.solving=!1,t.notifyResolvers(),null===(o=t.worker)||void 0===o||o.terminate(),t.worker=null},this.worker.onerror=function(n){var r;P.warn("Worker error — falling back to chunked solver:",n),null===(r=t.worker)||void 0===r||r.terminate(),t.worker=null,t.solveChunked(e)},P.log("Posting challenge to worker:",{challenge:e.challenge,difficulty:e.difficulty}),this.worker.postMessage({challenge:e.challenge,difficulty:e.difficulty,clientNonce:this.isFallback?this.clientNonce:void 0})},e.prototype.solveChunked=function(e){var t=this;P.log("solveChunked() started — difficulty:",e.difficulty);var n=0,r=performance.now(),o=function(){return I(t,void 0,Promise,(function(){var t,i;return C(this,(function(a){switch(a.label){case 0:if(this.cancelled)return P.log("solveChunked() cancelled at counter:",n),[2];t=n+5e3,a.label=1;case 1:return n<t?this.cancelled?(P.log("solveChunked() cancelled mid-chunk at counter:",n),[2]):[4,b((this.clientNonce?e.challenge+"|"+this.clientNonce+"|":e.challenge+"|")+n)]:[3,3];case 2:return function(e,t){for(var n=0,r=0;r<e.length&&n<t;r++)for(var o=7;o>=0&&n<t;o--){if(e[r]&1<<o)return!1;n++}return n>=t}(a.sent(),e.difficulty)?(i=performance.now()-r,this.solution={challenge:e.challenge,signature:e.signature,solution:String(n),solve_time_ms:Math.round(i),is_fallback:this.isFallback,client_nonce:this.isFallback?this.clientNonce:void 0},this.challengeExpires=e.expires,P.log("Chunked solver found solution:",this.solution),this.solving=!1,this.notifyResolvers(),[2]):(n++,[3,1]);case 3:return P.log("Chunked solver — chunk done, counter:",n),"requestIdleCallback"in globalThis?globalThis.requestIdleCallback(o,{timeout:100}):setTimeout(o,0),[2]}}))}))};o()},e.prototype.notifyResolvers=function(){var e,t;if(this.solution){var n=this.pendingResolvers.splice(0);try{for(var r=O(n),o=r.next();!o.done;o=r.next())(0,o.value)(this.solution)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}},e}(),F=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},T=E("Collector");function A(e){return Array.from(document.querySelectorAll('form[id="gform_'.concat(e,'"]')))}function U(e,t,n){var r,o,i=A(e).map((function(e){return e.querySelector('input[name="'.concat(n,'"]'))})).filter((function(e){return null!==e}));if(i.length){var a=btoa(JSON.stringify(function(e){return{v:1,t:Date.now(),pow:e}}(t)));try{for(var l=F(i),c=l.next();!c.done;c=l.next())c.value.value=a}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}T.log("formId ".concat(e," — payload written to ").concat(i.length," field(s)"))}else T.warn("formId ".concat(e,' — payload field not found: form[id="gform_').concat(e,'"] input[name="').concat(n,'"]'))}var W=E("Collector");function j(e){var t,n=null===(t=window.gform)||void 0===t?void 0:t.state;if(null==n?void 0:n.get){var r=n.get(e,"pagination/pages");if(r&&r.totalPageCount>0)return r.currentPage===r.lastPage}var o=document.querySelectorAll("#gform_".concat(e," .gform_page"));if(0===o.length)return!0;var i=Array.from(o).filter((function(e){return"hidden"!==e.getAttribute("data-conditional-logic")}));return 0===i.length||"none"!==i[i.length-1].style.display}var M=E("Collector");function L(e,n){return o=this,i=void 0,l=function(){var o,i,a;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}(this,(function(l){switch(l.label){case 0:return r.has(e)?(M.log("formId ".concat(e," — refresh already in progress, waiting…")),(i=t.get(e))?[4,i.waitForSolution(1e4)]:[3,2]):[3,3];case 1:l.sent(),l.label=2;case 2:return[2];case 3:r.add(e),l.label=4;case 4:return l.trys.push([4,,7,8]),(o=t.get(e))&&(o.destroy(),t.delete(e)),i=N(e,n),t.set(e,i),[4,i.init()];case 5:return l.sent(),[4,i.waitForSolution(1e4)];case 6:return(a=l.sent())?(U(e,a,n.payloadField),M.log("formId ".concat(e," — payload field updated with fresh solution"))):M.warn("formId ".concat(e," — refreshPoW timed out, submitting with stale/missing PoW")),[3,8];case 7:return r.delete(e),[7];case 8:return[2]}}
1))},new((a=Promise)||(a=Promise))((function(e,t){function n(e){try{c(l.next(e))}catch(e){t(e)}}function r(e){try{c(l.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}c((l=l.apply(o,i||[])).next())}));var o,i,a,l}var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)},R=E("Collector");function N(e,t,n){var r,o;return new _(D({formId:e,workerUrl:null!==(r=t.workerUrl)&&void 0!==r?r:"",fallbackChallenge:null!==(o=t.powChallenge)&&void 0!==o?o:null,fetchTimeout:5e3},n))}function q(e,n){var r=t.get(e);if(r&&(R.log("formId ".concat(e," — destroying existing PoWManager")),r.destroy(),t.delete(e)),n.powEnabled)if(n.powChallenge)if(n.powOnSubmit){R.log("formId ".concat(e," — powOnSubmit mode: deferring solve until submit"));var i=N(e,n);t.set(e,i)}else{if(n.hasPages&&!j(e)){R.log("formId ".concat(e," — multi-page form, not on last page: deferring PoW solve"));var a=N(e,n);return t.set(e,a),void function(e,n){var r;if(!o.has(e)){o.add(e);var i=function(){if(j(e)){var r=t.get(e);r&&(r.getSolution()||r.isSolving()||(W.log("formId ".concat(e," — reached last page, starting PoW solve")),B(e,r,n)))}else W.log("formId ".concat(e," — page changed but still not on last page"))},a=null===(r=window.gform)||void 0===r?void 0:r.state;(null==a?void 0:a.watch)&&(a.watch(e,["pagination/pages"],(function(){return i()})),W.log("formId ".concat(e," — bound gform.state.watch for pagination/pages")));var l=window.jQuery;l&&l(document).on("gform_page_loaded",(function(t,n){n===e&&i()}))}}(e,n)}R.log("formId ".concat(e," — creating PoWManager"));var l=N(e,n);t.set(e,l),B(e,l,n)}else R.warn("formId ".concat(e," — powEnabled but powChallenge is missing!"));else R.log("formId ".concat(e," — PoW disabled, skipping"))}function B(e,n,r){!function(e,t,n){e.init().then((function(){return e.waitForSolution()})).then((function(e){e?t(e):null==n||n()})).catch((function(e){R.error("PoWManager.init() threw:",e)}))}(n,(function(o){U(e,o,r.payloadField),function(e,n,r){var o,i;if(!n.isExpiredOrExpiring(60)){var a=null!==(i=null===(o=r.powChallenge)||void 0===o?void 0:o.expires)&&void 0!==i?i:0;if(a){var l=1e3*(a-Date.now()/1e3-60);l<=0||(M.log("formId ".concat(e," — scheduling proactive re-solve in ").concat(Math.round(l/1e3),"s")),setTimeout((function(){if(t.get(e)===n)if(document.hidden){M.log("formId ".concat(e," — tab hidden, deferring re-solve until visible"));var o=function(){document.removeEventListener("visibilitychange",o),t.get(e)===n&&(M.log("formId ".concat(e," — tab visible again, re-solving now")),L(e,r))};document.addEventListener("visibilitychange",o)}else M.log("formId ".concat(e," — proactive re-solve timer fired")),L(e,r)}),l))}}}(e,n,r)}),(function(){return R.warn("formId ".concat(e," — waitForSolution() timed out, payload field will be empty"))}))}var G=E("Collector");function H(e,t){var n=e.querySelector("#gform_ajax_spinner_".concat(t));if(n&&!e.querySelector("#gfsh_refresh_status_".concat(t))){var r=document.createElement("span");r.className="gfsh-refresh-status",r.id="gfsh_refresh_status_".concat(t),r.textContent="Verifying…",r.style.cssText="display:inline-block;margin-left:8px;font-size:0.85em;color:#666;vertical-align:middle",n.after(r)}}function V(e,t){var n;null===(n=e.querySelector("#gfsh_refresh_status_".concat(t)))||void 0===n||n.remove()}var z=function(){return z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},z.apply(this,arguments)},J=E("Collector"),Q=E("Collector"),Y=!1;function K(e){return r=this,o=void 0,l=function(){var r,o,a,l;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}(this,(function(c){return r=e.formId,Q.group("initCollector — formId: ".concat(r),(function(){var t;Q.log("config:",e),Q.log("powEnabled:",e.powEnabled),Q.log("powChallenge:",null!==(t=e.powChallenge)&&void 0!==t?t:"(none)"),Q.log("payloadField:",e.payloadField),Q.log("workerUrl:",e.workerUrl)})),n.set(r,e),o=function(e){var t=A(e),n=i.get(e);return i.set(e,t),void 0!==n&&n.length===t.length&&n.every((function(e,n){return e===t[n]}))}(r),a=t.get(r),function(e,t){var n,r,o=A(e);if(o.length){try{for(var i=F(o),a=i.next();!a.done;a=i.next()){var l=a.value;if(!l.querySelector('input[name="'.concat(t,'"]'))){var c=document.createElement("input");c.type="hidden",c.name=t,c.value="",l.appendChild(c)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}T.log("formId ".concat(e,' — payload field "').concat(t,'" present in ').concat(o.length," form cop").concat(1===o.length?"y":"ies"))}else T.warn("formId ".concat(e," — form element #gform_").concat(e," not found in DOM"))}(r,e.payloadField),o&&a?(Q.log("formId ".concat(r," — repeat init for the same markup, keeping existing PoWManager")),(l=a.getSolution())&&U(r,l,e.payloadField)):q(r,e),Y||(Y=function(){var e,r=this,o=null===(e=window.gform)||void 0===e?void 0:e.utils;return(null==o?void 0:o.addAsyncFilter)?(o.addAsyncFilter("gform/submission/pre_submission",(function(e){return o=r,i=void 0,l=function(){var r,o,i,a,l,c;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}(this,(function(s){switch(s.label){case 0:if(e.abort)return[2,e];if(!["submit","next","save_and_continue"].includes(e.submissionType))return[2,e];if(r=e.form,!(o=parseInt(r.dataset.formid||"0",10)))return[2,e];if(i=t.get(o),a=n.get(o),!i||!a)return[2,e];if(a.hasPages&&!j(o))return G.log("formId ".concat(o," — not on last page, skipping PoW for page navigation")),[2,e];
1if(!i.getSolution()||!i.isExpiredOrExpiring(30))return[3,5];G.log("formId ".concat(o," — challenge expired/expiring, re-solving…")),l=setTimeout((function(){H(r,o)}),2e3),s.label=1;case 1:return s.trys.push([1,,3,4]),[4,L(o,a)];case 2:return s.sent(),[3,4];case 3:return clearTimeout(l),V(r,o),[7];case 4:return[3,12];case 5:return i.getSolution()||!i.isSolving()?[3,7]:(G.log("formId ".concat(o," — still solving, waiting…")),[4,i.waitForSolution(1e4)]);case 6:return(c=s.sent())&&U(o,c,a.payloadField),[3,12];case 7:if(i.getSolution()||i.isSolving())return[3,12];G.log("formId ".concat(o," — powOnSubmit mode: solving now…")),l=setTimeout((function(){H(r,o)}),500),s.label=8;case 8:return s.trys.push([8,,11,12]),[4,i.init()];case 9:return s.sent(),[4,i.waitForSolution(15e3)];case 10:return(c=s.sent())&&U(o,c,a.payloadField),[3,12];case 11:return clearTimeout(l),V(r,o),[7];case 12:return[2,e]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{c(l.next(e))}catch(e){t(e)}}function r(e){try{c(l.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}c((l=l.apply(o,i||[])).next())}));var o,i,a,l}),10),document.addEventListener("gform/submission/submission_aborted",(function(e){var t,n=null===(t=e.detail)||void 0===t?void 0:t.form;n&&V(n,parseInt(n.dataset.formid||"0",10))})),G.log("Submission hook registered"),!0):(G.warn("GF async filter system not available — skipping submission hook"),!1)}()),[2]}))},new((a=Promise)||(a=Promise))((function(e,t){function n(e){try{c(l.next(e))}catch(e){t(e)}}function i(e){try{c(l.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(n,i)}c((l=l.apply(r,o||[])).next())}));var r,o,a,l}!function(e){var t=e.powManagers,n=e.formConfigs,r=e.refreshingForms,o=e.isOnLastPage,i=e.initPoW,a=e.writePayloadField,l=e.createManager;setTimeout((function(){var e,c;(x()||(null===(c=null===(e=window.gfDebugData)||void 0===e?void 0:e.extensions)||void 0===c?void 0:c["spam-hexer"]))&&(window.gfshDebug={getManagers:function(){var e={};return t.forEach((function(t,n){e[n]=t})),e},getConfigs:function(){var e={};return n.forEach((function(t,n){e[n]=t})),e},getStatus:function(e){var i=t.get(e);if(!i)return{status:"no_manager"};var a=n.get(e),l=i.getDebugStatus();return z(z({},l),{isRefreshing:r.has(e),isDeferredForPage:!(!(null==a?void 0:a.hasPages)||l.hasSolution||l.isSolving||(null==a?void 0:a.powOnSubmit)||o(e))})},forceFallback:function(e){var r=n.get(e);if(r){var o=t.get(e);o&&o.destroy();var i=l(e,r,{fetchTimeout:1});t.set(e,i),i.init().then((function(){return i.waitForSolution()})).then((function(t){t&&a(e,t,r.payloadField)}))}},forceExpire:function(e){var n=t.get(e);n&&n.forceExpire()},clearSolution:function(e){var r=t.get(e),o=n.get(e);if(r&&(r.destroy(),t.delete(e)),o){var i=document.querySelector("#gform_".concat(e,' input[name="').concat(o.payloadField,'"]'));i&&(i.value="")}J.log("formId ".concat(e," — solution cleared (PoW will be missing on submit)"))},setPowOnSubmit:function(e){var r=n.get(e);if(r){var o=t.get(e);o&&(o.destroy(),t.delete(e));var a=document.querySelector("#gform_".concat(e,' input[name="').concat(r.payloadField,'"]'));a&&(a.value=""),r.powOnSubmit=!0,i(e,r),J.log("formId ".concat(e," — switched to powOnSubmit mode"))}}},J.log("Debug API exposed as window.gfshDebug"))}),100)}({powManagers:t,formConfigs:n,refreshingForms:r,isOnLastPage:j,initPoW:q,writePayloadField:U,createManager:N});var X=E("Collector");function Z(){var e,t,n=window.gfshFormConfigs;if(n)try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(n)),o=r.next();!o.done;o=r.next()){var i=o.value;(null==i?void 0:i.formId)&&(document.querySelector('form[id="gform_'.concat(i.formId,'"]'))?K(i):X.log("formId ".concat(i.formId," — published config has no form in the DOM, skipping self
1-init")))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}window.gfshInitCollector=K,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Z):Z()})();
2//# sourceMappingURL=gf-spam-hexer-frontend.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.