1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2963],{60111:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/challenge",function(){return t(16389)}])},68281:function(e,r,t){"use strict";t.d(r,{D:function(){return useTurnstile}});var n=t(85893),l=t(67294);function useTurnstile(e){let{siteKey:r}=e,t=(0,l.useRef)(null),u=(0,l.useRef)(null),[i,s]=(0,l.useState)(null),[c,a]=(0,l.useState)(null),o=!!r,f=(0,l.useCallback)(()=>{if(!o||!t.current||!window.turnstile)return;if(u.current&&window.turnstile.remove){try{window.turnstile.remove(u.current)}catch(e){}u.current=null}s(null),a(null);let e=window.turnstile.render(t.current,{sitekey:r,callback:e=>s(e),"error-callback":e=>{console.error("Turnstile error:",e),a("Challenge failed, please try again.")},"expired-callback":()=>s(null),"refresh-expired":"auto",retry:"auto"});u.current=e},[o,r]);(0,l.useEffect)(()=>{if(!o)return;if(window.turnstile){f();return}let e=Date.now(),r=setInterval(()=>{if(window.turnstile){clearInterval(r),f();return}Date.now()-e>1e4&&(clearInterval(r),a("Challenge failed to load. Please refresh and try again."))},50);return()=>clearInterval(r)},[o,f]),(0,l.useEffect)(()=>()=>{var e;let r=u.current;if(r&&(null===(e=window.turnstile)||void 0===e?void 0:e.remove))try{window.turnstile.remove(r)}catch(e){}u.current=null},[]);let d=(0,l.useCallback)(()=>{let e=u.current;if(e&&window.turnstile){try{window.turnstile.reset(e)}catch(e){}s(null),a(null)}},[]),w=(0,l.useMemo)(()=>r?(0,n.jsx)("div",{ref:t},r):null,[r]);return{hasTurnstile:!!r,turnstileComponent:w,turnstileToken:i,turnstileError:c,resetTurnstile:d}}},16389:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return w},default:function(){return challenge}});var n=t(85893),l=t(97564),u=t(95117),i=t(47037),s=t.n(i),c=t(11163),a=t(67294),o=t(1448);let apiChallengeVerify=async e=>(0,o.j0)("/api/fe/v3/challenge_verify",e).then(e=>e.ok?e.json().then(e=>e.redirect_url?{success:!0,redirect_url:e.redirect_url}:{success:!1}):{success:!1});var f=t(31908),d=t(68281),w=!0,challenge=e=>{let{pageConfig:r}=e,t=(0,c.useRouter)(),i=(0,a.useRef)(""),[o,w]=(0,a.useState)(!1),[h,_]=(0,a.useState)(!1),g=(0,a.useRef)(!1),[y,v]=(0,a.useState)(0),{turnstileComponent:p,turnstileToken:k,turnstileError:T,resetTurnstile:C}=(0,d.D)({siteKey:r.turnstile_site_key});return(0,a.useEffect)(()=>{t.query.id&&s()(t.query.id)&&(i.current=t.query.id,t.replace(t.pathname,void 0,{shallow:!0}))},[]),(0,a.useEffect)(()=>{if(T&&y>5){w(!0);return}if(T){v(e=>e+1);let e=setTimeout(()=>{C()},(y+1)*300);return()=>{clearTimeout(e)}}if(!k)return;let e=!1;return apiChallengeVerify({challenge_id:i.current,token:k}).then(r=>{!e&&(r.success?(_(!0),g.current||(g.current=!0,window.location.href=r.redirect_url)):(w(!0),C()))}),()=>{e=!0}},[k,T,C]),(0,n.jsx)(f.ZP,{pageConfig:r,pageTitle:"Verifying...",title:"Verifying, please wait...",children:(0,n.jsxs)(l.K,{spacing:"lg",align:"center",children:[p,h&&(0,n.jsx)(u.x,{children:"Success, continuing..."}),o&&(0,n.jsx)(u.x,{color:"errorButtonColor",children:"An error occurred while validating your request, please try again."})]})})}}},function(e){e.O(0,[3972,7248,4381,9748,9774,2888,179],function(){return e(e.s=60111)}),_N_E=e.O()}]);
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.