PageSourceSearch

https://schoolhouse.world/_next/static/chunks/4329-afba8ca82cbe2fd7.js

js schoolhouse.world collected 2026-09-24 09:14:15 UTC 24,326 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4329],{94329:(e,t,n)=>{n.d(t,{xG:()=>e$,eX:()=>eY});var r,o,i,a,c={};n.r(c),n.d(c,{ERROR_API_KEY_EXPIRED:()=>eo,ERROR_API_KEY_INVALID:()=>er,ERROR_API_KEY_MISSING:()=>en,ERROR_BAD_REQUEST_FORMAT:()=>ei,ERROR_BAD_RESPONSE_FORMAT:()=>A,ERROR_CLIENT_TIMEOUT:()=>T,ERROR_CSP_BLOCK:()=>b,ERROR_FORBIDDEN_ENDPOINT:()=>M,ERROR_FORBIDDEN_HEADER:()=>eu,ERROR_FORBIDDEN_ORIGIN:()=>el,ERROR_GENERAL_SERVER_FAILURE:()=>ea,ERROR_HANDLE_AGENT_DATA:()=>P,ERROR_INSTALLATION_METHOD_RESTRICTED:()=>k,ERROR_INTEGRATION_FAILURE:()=>U,ERROR_INVALID_ENDPOINT:()=>C,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:()=>F,ERROR_INVALID_PROXY_INTEGRATION_SECRET:()=>K,ERROR_NETWORK_ABORT:()=>S,ERROR_NETWORK_CONNECTION:()=>N,ERROR_NETWORK_RESTRICTED:()=>j,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:()=>V,ERROR_RATE_LIMIT:()=>es,ERROR_SCRIPT_LOAD_FAIL:()=>eE,ERROR_SERVER_TIMEOUT:()=>ec,ERROR_SUBSCRIPTION_NOT_ACTIVE:()=>x,ERROR_TOKEN_EXPIRED:()=>ef,ERROR_TOKEN_INVALID:()=>ed,ERROR_TOKEN_MISSING:()=>eh,ERROR_UNSUPPORTED_VERSION:()=>L,ERROR_WRONG_REGION:()=>D,default:()=>e_,defaultEndpoint:()=>p,defaultScriptUrlPattern:()=>eO,defaultTlsEndpoint:()=>g,handleAgentData:()=>et,load:()=>Y});var s=n(14232),l=n(37876);function u(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,c)}s((r=r.apply(e,t||[])).next())})}function h({level:e,message:t}){"error"===e?console.error(t):"warning"===e?console.warn(t):console.log(t)}function d(e,t){if(e.arr.length<t){let n=new Uint8Array(Math.max(2*e.arr.length,t));n.set(e.arr),e.arr=n}}function f(e){return e>=v&&e<v+10||e===O}function R(e,t,n,r){eg(()=>{let o=`${e}=${t}`,i=`expires=${new Date(Date.now()+24*n*36e5).toUTCString()}`,a=r?`domain=${r}`:"";document.cookie=[o,"path=/",i,a,"SameSite=Lax"].join("; ")},void 0)}function E(){var e;let t,n=window,r="__fpjs_p_l_b",o=n[r];if((null==(t=null==(e=Object.getOwnPropertyDescriptor)?void 0:e.call(Object,n,r))?void 0:t.configurable)?delete n[r]:t&&!t.writable||(n[r]=void 0),"function"!=typeof(null==o?void 0:o.load))throw Error(ep);return o}"function"==typeof SuppressedError&&SuppressedError;let p={default:"endpoint"},g={default:"tlsEndpoint"},v=48,O=45,_=new Uint8Array([110,117,108,108]),y=new Uint8Array([116,114,117,101]),m=new Uint8Array([102,97,108,115,101]),I={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r","	":"t"},w=(()=>{let e=new Uint8Array(128);for(let[t,n]of Object.entries(I))e[n.charCodeAt(0)]=t.charCodeAt(0);return e})(),T="Client timeout",N="Network connection error",S="Network request aborted",A="Response cannot be parsed",b="Blocked by CSP",C="The endpoint parameter is not a valid URL",P="Handle on demand agent data error",D=ee("WrongRegion"),x=ee("SubscriptionNotActive"),L=ee("UnsupportedVersion"),k=ee("InstallationMethodRestricted"),M=ee("HostnameRestricted"),U=ee("IntegrationFailed"),j=ee("NetworkRestricted"),K=ee("InvalidProxyIntegrationSecret"),F=ee("InvalidProxyIntegrationHeaders"),V=ee("ProxyIntegrationSecretEnvironmentMismatch");function G(e){var t,n;let r,o,i,a,c;return(t=()=>new Promise((t,n)=>{if(function(e){if(URL.prototype)try{return new URL(e,location.href),!1}catch(e){if(e instanceof Error&&"TypeError"===e.name)return!0;throw e}}(e))throw Error(C);let r=document.createElement("script"),o=()=>{var e;return null==(e=r.parentNode)?void 0:e.removeChild(r)},i=document.head||document.getElementsByTagName("head")[0];r.onload=()=>{o(),t()},r.onerror=()=>{o(),n(Error(eE))},r.async=!0,r.src=e,i.appendChild(r)}),n=()=>{throw Error(b)},o=document,i="securitypolicyviolation",a=t=>{let n=new URL(e,location.href),{blockedURI:o}=t;o!==n.href&&o!==n.protocol.slice(0,-1)&&o!==n.origin||(r=t,c())},o.addEventListener(i,a),c=()=>o.removeEventListener(i,a),Promise.resolve().then(t).then(e=>(c(),e),e=>new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)}).then(()=>{if(c(),r)return n();throw e}))).then(E)}let B=/The document is sandboxed and lacks the 'allow-same-origin' flag/,H=/The operation is insecure/,$=/Forbidden in a sandboxed document without the 'allow-same-origin' flag/;function q(e){var t,n;let r,o=location.hostname,i=(r=window,["buildID"in navigator,"MozAppearance"in(null!=(n=null==(t=document.documentElement)?void 0:t.style)?n:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r].reduce((e,t)=>
1e+ +!!t,0)>=4);(function(e,t){let n=e.length-("."===e.slice(-1));do if(n=n>0?e.lastIndexOf(".",n-1):-1,!0===t(e.slice(n+1)))return!0;while(n>=0);return!1})(o,t=>{if(!i||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(t)||t===o)return e(t)})||e()}function X(e,t){d(e,e.len+1),e.arr[e.len++]=t}function Y(e){var t,n,r,o,i,a;let c,s,l,{picked:u,rest:h}=function(e,t){let n={},r={};for(let[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return{picked:n,rest:r}}(e,["scriptUrlPattern","token","apiKey"]),d=u.token,f=null!=(t=u.apiKey)?t:d,R=null!==(r="scriptUrlPattern",n=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0)&&void 0!==n?n:ev.scriptUrl,[E,p]=(c=[],s=()=>{c.push({time:new Date,state:document.visibilityState})},l=(i="visibilitychange",(o=document).addEventListener(i,s,a),()=>o.removeEventListener(i,s,a)),s(),[c,l]);return Promise.resolve().then(()=>{if(!f||"string"!=typeof f)throw Error(en);return function(e,t){let n,r,o,i,a,c,s=[],[l,u]=(r=[...e],i={current:()=>r[0],postpone(){let e=r.shift();void 0!==e&&r.push(e)},exclude(){r.shift()}},o=0,a=()=>Math.random()*Math.min(3e3,100*Math.pow(2,o++)),c=new Set,[i.current(),(e,t)=>{let n,r=t instanceof Error?t.message:"";if(r===b||r===C)i.exclude(),n=0;else if(r===ep)i.exclude();else if(r===eE){let t=Date.now()-e.getTime()<50,r=i.current();r&&t&&!c.has(r)&&(c.add(r),n=0),i.postpone()}else i.postpone();let o=i.current();return void 0===o?void 0:[o,null!=n?n:e.getTime()+a()-Date.now()]}]);if(void 0===l)return Promise.reject(TypeError("The list of script URL patterns is empty"));let h=e=>{let r=new Date,o=t=>s.push({url:e,startedAt:r,finishedAt:new Date,error:t}),i=t(e);return i.then(()=>o(),o),i.catch(e=>{if(null!=n||(n=e),s.length>=5)throw n;let t=u(r,e);if(!t)throw n;let[o,i]=t;return new Promise(e=>setTimeout(e,i)).then(()=>h(o))})};return h(l).then(e=>[e,s])}((Array.isArray(R)?R:[R]).map(e=>{var t;let n;return t=String(e),n=encodeURIComponent,t.replace(/<[^<>]+>/g,e=>"<version>"===e?"3":"<apiKey>"===e?n(f):"<loaderVersion>"===e?n(eR):e)}),G)}).catch(e=>{throw p(),e instanceof Error&&e.message===ep?Error(eE):e}).then(([e,t])=>(p(),e.load({...h,ldi:{attempts:t,visibilityStates:E}})))}function J(e,t,...n){e&&async function(e){try{await e()}catch(e){return void console.error(e)}}(()=>{let r=t(...n);void 0!==r&&e(r)})}function W(e){return e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let z=[3,13],Q=[3,14];function Z(e){if("function"==typeof TextDecoder){let t=(new TextDecoder).decode(e);if(t)return t}let t=W(e);return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))}function ee(e){let t="";for(let n=0;n<e.length;++n)if(n>0){let r=e[n].toLowerCase();r!==e[n]?t+=` ${r}`:t+=e[n]}else t+=e[n].toUpperCase();return t}let et=function(e,t={}){var n,r,o,i,a;let{storageKey:c="_vid",do:s}=t;try{let t=function(e){var t;let n=function(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r}(e),r=n;try{r=function(e,t){var n,r,o,i;let a=()=>{throw Error("Invalid data")},c=W(e);c.length<t.length+2&&a();for(let e=0;e<t.length;++e){n=c[1+e],r=c[0],(n-r+256)%256!==t[e]&&a()}let s=1+t.length,l=(o=c[s],i=c[0],(o-i+256)%256);c.length<s+1+l+9&&a();let u=s+1+l,h=u+9,d=new ArrayBuffer(c.length-h),f=new Uint8Array(d);for(let e=0;e<f.length;++e)f[e]=c[h+e]^c[u+e%9];return d}(n,z)}catch(e){}try{let e,n,o,i,a,c,s,l,u,h,R,E;return t=r,e={len:0,arr:new Uint8Array(128)},n=W(t),o=0,i=()=>(u(),34===n[o]?a():f(n[o])?c():h(_)?(o+=_.length,null):h(y)?(o+=y.length,!0):h(m)?(o+=m.length,!1):91===n[o]?s():123===n[o]?l():R()),a=()=>{for(e.len=0;34!==n[++o];){if(92===n[o]){if(117===n[++o]){var t,r;t=e,r=function(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>127)return(new TextEncoder).encode(e);t[n]=r}return t}(String.fromCharCode(parseInt(Z(n.subarray(o+1,o+5)),16))),d(t,t.len+r.length),t.arr.set(r,t.len),t.len+=r.length,o+=4;continue}let i=w[n[o]];if(i){X(e,i);continue}return R()}if(void 0===n[o])return R();X(e,n[o])}return o++,Z(e.arr.subarray(0,e.len))},c=()=>{let e=o;for(;46===n[o]||101===n[o]||69===n[o]||43===n[o]||f(n[o]);)o++;
1return Number(Z(n.subarray(e,o)))},s=()=>{let e=[];for(o++;;){if(u(),93===n[o]){o++;break}if(e.length){if(44!==n[o])return R();o++}e.push(i())}return e},l=()=>{let e={},t=!0;for(o++;;){if(u(),125===n[o]){o++;break}if(!t){if(44!==n[o])return R();o++,u()}if(34!==n[o])return R();let r=a();if(u(),58!==n[o])return R();o++,Object.defineProperty(e,r,{value:i(),configurable:!0,enumerable:!0,writable:!0}),t=!1}return e},u=()=>{for(;32===n[o]||10===n[o]||13===n[o]||9===n[o];)o++},h=e=>{for(let t=0;t<e.length;t++)if(n[o+t]!==e[t])return!1;return!0},R=()=>{throw SyntaxError("Unexpected "+(o<n.length?`byte ${o}`:"end"))},E=i(),u(),void 0!==n[o]&&R(),E}catch(e){}return null}(e);null!==t?(t.visitorToken&&(r=t.visitorToken,i=o=`${c}_t`,q(e=>{R(i,"",-1,e)}),q(e=>(R(i,r,365,e),eg(()=>{let e=`${i}=`;for(let t of document.cookie.split(";")){let n=0;for(;" "===t[n]&&n<t.length;)++n;if(t.indexOf(e)===n)return t.slice(n+e.length)}},void 0)===r)),function(e,t){var n;try{null==(n=null==localStorage?void 0:localStorage.setItem)||n.call(localStorage,e,t)}catch(e){}}(o,r)),null==(n=t.notifications)||n.forEach(h),J(s,()=>({e:25,result:{response:t}}))):J(s,()=>({e:25,result:{error:Error("Failed to decode response")}}))}catch(t){let e;throw J(s,()=>({e:25,result:{error:t instanceof Error?t:Error(String(t))}})),a=void 0,e=Error(P),void 0!==a&&(e.requestId=a),void 0!==t&&(e.raw=t),e}},en="API key required",er="API key not found",eo="API key expired",ei="Request cannot be parsed",ea="Request failed",ec="Request failed to process",es="Too many requests, rate limit exceeded",el="Not available for this origin",eu="Not available with restricted header",eh=en,ed=er,ef=eo;var eR="3.12.9";let eE="Failed to load the JS script of the agent",ep="9319";function eg(e,t){try{document.cookie}catch(e){if(function(e){if(!(e instanceof DOMException))return!1;let t=e.message;return B.test(t)||H.test(t)||$.test(t)}(e))return t;throw e}return e()}let ev={scriptUrl:"https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js"},eO=ev.scriptUrl;var e_={load:Y,defaultScriptUrlPattern:eO,ERROR_SCRIPT_LOAD_FAIL:eE,ERROR_API_KEY_EXPIRED:eo,ERROR_API_KEY_INVALID:er,ERROR_API_KEY_MISSING:en,ERROR_BAD_REQUEST_FORMAT:ei,ERROR_BAD_RESPONSE_FORMAT:A,ERROR_CLIENT_TIMEOUT:T,ERROR_CSP_BLOCK:b,ERROR_FORBIDDEN_ENDPOINT:M,ERROR_FORBIDDEN_HEADER:eu,ERROR_FORBIDDEN_ORIGIN:el,ERROR_GENERAL_SERVER_FAILURE:ea,ERROR_HANDLE_AGENT_DATA:P,ERROR_INSTALLATION_METHOD_RESTRICTED:k,ERROR_INTEGRATION_FAILURE:U,ERROR_INVALID_ENDPOINT:C,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:F,ERROR_INVALID_PROXY_INTEGRATION_SECRET:K,ERROR_NETWORK_ABORT:S,ERROR_NETWORK_CONNECTION:N,ERROR_NETWORK_RESTRICTED:j,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:V,ERROR_RATE_LIMIT:es,ERROR_SERVER_TIMEOUT:ec,ERROR_SUBSCRIPTION_NOT_ACTIVE:x,ERROR_TOKEN_EXPIRED:ef,ERROR_TOKEN_INVALID:ed,ERROR_TOKEN_MISSING:eh,ERROR_UNSUPPORTED_VERSION:L,ERROR_WRONG_REGION:D,defaultEndpoint:p,defaultTlsEndpoint:g,handleAgentData:et};let ey="@fpjs@client@",em=()=>Date.now();class eI{constructor(e){var t;this.tag=e.tag||null,this.linkedId=e.linkedId||null,this.extendedResult=null!=(t=e.extendedResult)&&t}toKey(){return`${JSON.stringify(this.tag)}
1__${JSON.stringify(this.linkedId)}__${this.extendedResult}`}}function ew(e,t){return`${t}__${e}`}function eT(e,t){return e.replace(`${t}__`,"")}class eN{constructor(e=ey){this.prefix=e}set(e,t){window.localStorage.setItem(ew(e,this.prefix),JSON.stringify(t))}get(e){let t=window.localStorage.getItem(ew(e,this.prefix));if(t)try{return JSON.parse(t)}catch(e){return}}remove(e){window.localStorage.removeItem(ew(e,this.prefix))}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith(this.prefix)).map(e=>eT(e,this.prefix))}}class eS{constructor(e=ey){this.prefix=e}set(e,t){window.sessionStorage.setItem(ew(e,this.prefix),JSON.stringify(t))}get(e){let t=window.sessionStorage.getItem(ew(e,this.prefix));if(t)try{return JSON.parse(t)}catch(e){return}}remove(e){window.sessionStorage.removeItem(ew(e,this.prefix))}allKeys(){return Object.keys(window.sessionStorage).filter(e=>e.startsWith(this.prefix)).map(e=>eT(e,this.prefix))}}class eA{constructor(e,t=3600,n){this.cache=e,this.cacheTime=t,this.nowProvider=n||em}get(e){return u(this,void 0,void 0,function*(){let t=yield this.cache.get(e.toKey());if(!t)return;let n=Math.floor((yield this.nowProvider())/1e3);return t.expiresAt<n?void(yield this.cache.remove(e.toKey())):t.body})}set(e,t){return u(this,void 0,void 0,function*(){let n=yield this.wrapCacheEntry(t);yield this.cache.set(e.toKey(),n)})}clearCache(){return u(this,void 0,void 0,function*(){let e=yield this.cache.allKeys();yield Promise.all(e.map(e=>this.cache.remove(e)))})}wrapCacheEntry(e){return u(this,void 0,void 0,function*(){return{body:e,expiresAt:Math.floor((yield this.nowProvider())/1e3)+this.cacheTime}})}}class eb{constructor(){this.enclosedCache=function(){let e={};return{set(t,n){e[t]=n},get(t){let n=e[t];if(n)return n},remove(t){delete e[t]},allKeys:()=>Object.keys(e)}}()}}class eC{set(){}get(){}remove(){}allKeys(){return[]}}(r=i||(i={})).Memory="memory",r.LocalStorage="localstorage",r.SessionStorage="sessionstorage",r.NoCache="nocache";let eP={[i.Memory]:()=>new eb().enclosedCache,[i.LocalStorage]:e=>new eN(e),[i.SessionStorage]:e=>new eS(e),[i.NoCache]:()=>new eC},eD=e=>eP[e];class ex{constructor(e){var t;let n;if(this.inFlightRequests=new Map,this.agentPromise=null,this.customAgent=null==e?void 0:e.customAgent,this.agent={collect:()=>{throw Error("FPJSAgent hasn't loaded yet. Make sure to call the init() method first.")},get:()=>{throw Error("FPJSAgent hasn't loaded yet. Make sure to call the init() method first.")}},this.loadOptions=null==e?void 0:e.loadOptions,(null==e?void 0:e.cache)&&(null==e?void 0:e.cacheLocation)&&console.warn("Both `cache` and `cacheLocation` options have been specified in the FpjsClient configuration; ignoring `cacheLocation` and using `cache`."),null==e?void 0:e.cache)n=e.cache;else{if(this.cacheLocation=(null==e?void 0:e.cacheLocation)||i.SessionStorage,!eD(this.cacheLocation))throw Error(`Invalid cache location "${this.cacheLocation}"`);(e=>{switch(e){case i.SessionStorage:try{window.sessionStorage.getItem("item")}catch(e){return!1}return!0;case i.LocalStorage:try{window.localStorage.getItem("item")}catch(e){return!1}return!0;default:return!0}})(this.cacheLocation)||(this.cacheLocation=i.Memory),n=eD(this.cacheLocation)(null==e?void 0:e.cachePrefix)}if((null==e?void 0:e.cacheTimeInSeconds)&&e.cacheTimeInSeconds>86400)throw Error("Cache time cannot exceed 86400 seconds (24 hours)");const r=null!=(t=null==e?void 0:e.cacheTimeInSeconds)?t:3600;this.cacheManager=new eA(n,r)}init(e){return u(this,void 0,void 0,function*(){var t,n,r;if(!this.loadOptions&&!e)throw TypeError("No load options provided");let o=(null==(t=this.loadOptions)?void 0:t.silent)===!0?[]:[...(null==(n=this.loadOptions)?void 0:n.integrationInfo)||[],...(null==e?void 0:e.integrationInfo)||[],"spa-sdk/1.3.3"],i=Object.assign(Object.assign(Object.assign({},this.loadOptions),e),{integrationInfo:o});if(!this.agentPromise){let e=null!=(r=this.customAgent)?r:c;this.agentPromise=e.load(i).then(e=>(this.agent=e,e)).catch(e=>{throw this.agentPromise=null,e})}return this.agentPromise})}getVisitorData(){return u(this,arguments,void 0,function*(e={},t=!1){let n=ex.makeCacheKey(e).toKey();if(!this.inFlightRequests.has(n)){let r=this._identify(e,t).finally(()=>{this.inFlightRequests.delete(n)});this.inFlightRequests.set(n,r)}return yield this.inFlightRequests.get(n)})}
1getVisitorDataFromCache(){return u(this,arguments,void 0,function*(e={}){let t=ex.makeCacheKey(e),n=yield this.cacheManager.get(t);return n?Object.assign(Object.assign({},n),{cacheHit:!0}):void 0})}isInCache(){return u(this,arguments,void 0,function*(e={}){return!!(yield this.getVisitorDataFromCache(e))})}clearCache(){return u(this,void 0,void 0,function*(){yield this.cacheManager.clearCache()})}static makeCacheKey(e){return new eI(e)}_identify(e){return u(this,arguments,void 0,function*(e,t=!1){let n=ex.makeCacheKey(e);if(!t){let e=yield this.cacheManager.get(n);if(e)return Object.assign(Object.assign({},e),{cacheHit:!0})}let r=yield this.agent.get(e);return yield this.cacheManager.set(n,r),Object.assign(Object.assign({},r),{cacheHit:!1})})}}var eL=n(34349),ek=n.n(eL),eM=function(){throw Error("You forgot to wrap your component in <FpjsProvider>.")},eU=(0,s.createContext)({getVisitorData:eM,clearCache:eM}),ej=function(e,t){return(ej=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},eK=function(){return(eK=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}).apply(this,arguments)};function eF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function eV(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,c)}s((r=r.apply(e,t||[])).next())})}function eG(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){var l=[c,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)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 a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}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}}}}function eB(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))}"function"==typeof SuppressedError&&SuppressedError,(o=a||(a={})).React="react",o.Preact="preact",o.Next="next",o.Unknown="unknown";var eH=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}function n(t){return e.call(this,t)||this}return ej(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),n.prototype.render=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!this.detectedEnv){var n=e.length>0;this.detectedEnv=function(e){try{var t,n=JSON.parse("%DETECTED_ENV%");if("object"==typeof n)return n}catch(e){}var r=e.context;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if("u"<typeof window)return!1;for(var n=0;n<e.length;n++)if((0,e[n])())return!0;return!1}(function(){return"next"in window&&!!window.next},function(){return document.querySelector("script[id=__NEXT_DATA__]")})?{name:a.Next,version:null==(t=null==window?void 0:window.next)?void 0:t.ver
1sion}:r.classRenderReceivesAnyArguments?{name:a.Preact}:r.classRenderReceivesAnyArguments?{name:a.Unknown}:{name:a.React}}({context:{classRenderReceivesAnyArguments:n}})}return(0,s.cloneElement)(this.props.children,{env:this.detectedEnv})},n}(s.Component);function e$(e){return(0,l.jsx)(eH,{children:(0,l.jsx)(eq,eK({},e))})}function eq(e){var t=this,n=e.children,r=e.forceRebuild,o=e.cache,i=e.cacheTimeInSeconds,a=e.cachePrefix,c=e.cacheLocation,u=e.customAgent,h=e.loadOptions,d=e.env,f=(0,s.useRef)(),R=(0,s.useRef)(),E=(0,s.useMemo)(function(){return{cache:o,cacheTimeInSeconds:i,cachePrefix:a,cacheLocation:c,customAgent:u,loadOptions:h}},[h,o,i,a,c,u]),p=(0,s.useCallback)(function(){var e="react-sdk/".concat("2.7.1");if(d){var t=d.version?"".concat(d.name,"/").concat(d.version):d.name;e+="/".concat(t)}var n=new ex(eK(eK({},E),{loadOptions:eK(eK({},h),{integrationInfo:eB(eB([],h.integrationInfo||[],!0),[e],!1)})}));return R.current=n.init(),n},[E,d,h]),g=(0,s.useCallback)(function(){return eV(t,void 0,void 0,function(){var e=this;return eG(this,function(t){switch(t.label){case 0:var n,r,o,i,a,c;if("u"<typeof window||void 0===window.document)throw Error("FpjsProvider client cannot be used in SSR");if(f.current)return[3,2];return[4,(r=(n={checkCondition:function(){return!!f.current}}).checkCondition,i=void 0===(o=n.intervalMs)?250:o,c=void 0===(a=n.timeoutMs)?2e3:a,new Promise(function(e,t){var n=setTimeout(function(){clearInterval(o),t(Error("Timeout"))},c),o=setInterval(function(){r()&&(clearTimeout(n),clearInterval(o),e())},i)})).catch(function(){return eV(e,void 0,void 0,function(){return eG(this,function(e){return p(),[2]})})})];case 1:t.sent(),t.label=2;case 2:return[2,f.current]}})})},[p]),v=(0,s.useCallback)(function(e,n){return eV(t,void 0,void 0,function(){var t;return eG(this,function(r){switch(r.label){case 0:return[4,g()];case 1:return t=r.sent(),[4,R.current];case 2:return r.sent(),[2,t.getVisitorData(e,n)]}})})},[g]),O=(0,s.useCallback)(function(){return eV(t,void 0,void 0,function(){return eG(this,function(e){switch(e.label){case 0:return[4,g()];case 1:return[4,e.sent().clearCache()];case 2:return e.sent(),[2]}})})},[g]),_=(0,s.useMemo)(function(){return{clearCache:O,getVisitorData:v}},[O,v]);return(0,s.useEffect)(function(){(!f.current||r)&&(f.current=p())},[r,E,p]),(0,l.jsx)(eU.Provider,{value:_,children:n})}function eX(e,t){if(!e)throw TypeError("".concat(t," must not be null or undefined"))}function eY(e,t){var n=this;void 0===e&&(e={}),void 0===t&&(t=eJ),eX(e,"getOptions");var r=t.immediate,o=(0,s.useContext)(eU).getVisitorData,i=(0,s.useState)(e),a=i[0],c=i[1],l=(0,s.useState)({isLoading:r}),u=l[0],h=l[1],d=(0,s.useCallback)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eV(n,eB([],e,!0),void 0,function(e){var t,n,r,i,c,s;return void 0===e&&(e={}),eG(this,function(l){switch(l.label){case 0:eX(e,"getDataParams"),t=e.ignoreCache,n=eF(e,["ignoreCache"]),l.label=1;case 1:return l.trys.push([1,3,4,5]),h(function(e){return eK(eK({},e),{isLoading:!0})}),r=a.ignoreCache,i=eF(a,["ignoreCache"]),[4,o(eK(eK({},i),n),"boolean"==typeof t?t:r)];case 2:return c=l.sent(),h(function(e){return eK(eK({},e),{data:c,isLoading:!1,error:void 0})}),[2,c];case 3:var u;throw(s=(u=l.sent())instanceof Error?u:Error(String(u))).name="FPJSAgentError",h(function(e){return eK(eK({},e),{data:void 0,error:s})}),s;case 4:return h(function(e){return e.isLoading?eK(eK({},e),{isLoading:!1}):e}),[7];case 5:return[2]}})})},[a,o]);return(0,s.useEffect)(function(){r&&d().catch(function(e){console.error("Failed to fetch visitor data on mount: ".concat(e))})},[r,d]),Object.is(a,e)||ek()(a,e)||c(e),{getData:d,isLoading:u.isLoading,data:u.data,error:u.error}}var eJ={immediate:!0}}}]);
2//# sourceMappingURL=4329-afba8ca82cbe2fd7.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.