1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,707759,e=>{"use strict";var t=e.i(271645);function s(e){return new Promise((t,s)=>{if(document.querySelector(`script[src="${e}"]`))return void t();let o=document.createElement("script");o.src=e,o.async=!0,o.onload=()=>t(),o.onerror=e=>{console.error("Error loading script",e),s(e)},document.head.appendChild(o)})}var o=class e{#e;#t;#s=0;constructor(){let{promise:t,resolve:s}=e.#o();this.#e=t,this.#t=s,this.#n(),window.addEventListener("online",this.#r),window.addEventListener("visibilitychange",this.#r)}getChallenge=async()=>(await this.#i(),await this.#e.then(e=>"function"==typeof e?e():e));#r=()=>{if(document.hidden)return;let{promise:t,resolve:s}=e.#o();this.#e=t,this.#t=s,window.V_C=[],window.V_C.push=s;let o=document.querySelector('script[src*="c.js"]');o&&o.remove(),this.#s+=1};#n=()=>{if(window.V_C){let e=window.V_C.pop();e&&this.#t(e)}else window.V_C=[],window.V_C.push=this.#t};#i=()=>{let e=new URL("/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/a-4-a/c.js",window.location.origin);return e.searchParams.set("i",String(this.#s)),e.searchParams.set("v",String(3)),e.searchParams.set("h",window.location.host),s(e.pathname+e.search)};#a=()=>{window.V_C=void 0};static #o(){let e,t;return{promise:new Promise((s,o)=>{e=s,t=o}),resolve:e,reject:t}}},n=class e{#e=!1;#t;constructor(e){this.#t=e}get loaded(){return this.#e}load=async()=>{this.#e||await this.#r()};#s=()=>{if(typeof globalThis.window>"u")throw Error("KPSDK is not available in the server");if(!window.KPSDK)throw Error("KPSDK is not loaded");let t=this.#t.map(t=>{let s=e.#n(t.path);return{domain:s.host,path:s.pathname,method:t.method}});try{window.KPSDK.configure(t)}catch(e){console.error("Error configuring KPSDK...",e)}};#r=async()=>{let e=this;return new Promise((t,o)=>{let n=()=>{document.removeEventListener("kpsdk-load",n),this.#s()},r=()=>{document.removeEventListener("kpsdk-ready",r),e.#e=!0,t()};document.addEventListener("kpsdk-load",n,{once:!0}),document.addEventListener("kpsdk-ready",r,{once:!0}),s("/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/p.js").catch(e=>{document.removeEventListener("kpsdk-load",n),document.removeEventListener("kpsdk-ready",r),o(e)})})};static #n(e){let t;try{t=new URL(e)}catch{t=new URL(e,location.origin)}return t}},r=e=>{let t=e.replace(/[.?+^$[\]\\(){}|-]/g,"\\$&").split("*").join(".*");return RegExp(`^${t}$`)},i=({path:e,pattern:t})=>-1!==e.search(t);async function a(e,t,s){let o=XMLHttpRequest.prototype.open,n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(e,t,s,n,r){return this._requestUrl=t.toString(),this._requestMethod=e,o.call(this,e,t,s??!0,n,r)},XMLHttpRequest.prototype.send=async function(o){let a=this._requestUrl;if(!a||this._isReexecution)return n.call(this,o);let d=new URL(a,location.href),h=d.origin===location.origin,l=this._requestMethod??"GET",c=s.find(e=>{let t=i({path:d.pathname,pattern:r(e.path)}),s=e.method.toLowerCase()===l.toLowerCase()||"*"===e.method;return t&&s});if(!c||!h)return n.call(this,o);let p=await e.getChallenge();if(this.setRequestHeader("x-is-human",JSON.stringify(p)),this.setRequestHeader("x-path",d.pathname),this.setRequestHeader("x-method",l),0!==p.b||t.loaded||((1===p.d||c?.advancedOptions?.checkLevel==="deepAnalysis")&&await t.load(),!t.loaded))return n.call(this,o);this.setRequestHeader("x-is-human",JSON.stringify(p)),this.setRequestHeader("x-path",d.pathname),this.setRequestHeader("x-method",l);let u=new XMLHttpRequest;return u._isReexecution=!0,u.open(l,a,!0),u.setRequestHeader("x-is-human",JSON.stringify(p)),u.setRequestHeader("x-path",d.pathname),u.setRequestHeader("x-method",l),this.timeout&&(u.timeout=this.timeout),this.responseType&&(u.responseType=this.responseType),this.withCredentials&&(u.withCredentials=this.withCredentials),u.onreadystatechange=()=>{Object.defineProperty(this,"readyState",{value:u.readyState,writable:!0,configurable:!0}),u.readyState===XMLHttpRequest.DONE&&(Object.defineProperty(this,"status",{value:u.status,writable:!0,configurable:!0}),Object.defineProperty(this,"statusText",{value:u.statusText,writable:!0,configurable:!0}),Object.defineProperty(this,"response",{value:u.response,writable:!0,configurable:!0}),Object.defineProperty(this,"responseText",{value:u.responseText,writable:!0,configurable:!0}),Object.defineProperty(this,"responseXML",{value:u.responseXML,writable:!0,configurable:!0}),this.getAllResponseHeaders=()=>u.getAllResponseHeaders(),this.getResponseHeader=e=>u.getResponseHeader(e)),this.onreadystatechange&&this.onreadystatechange.call(this,new Event("readystatechange"))},u.onload=e=>{this.onload&&this.onload.call(this,e)},u.onerror=e=>{this.onerror&&this.onerror.call(this,e)},u.onabort=e=>{this.onabort&&this.onabort.call(this,e)},u.ontimeout=e=>{this.ontimeout&&this.ontimeout.call(this,e)},u.onloadstart=e=>{this.onloadstart&&this.onloadstart.call(this,e)},u.onloadend=e=>{this.onloadend&&this.onloadend.call(this,e)},u.onprogress=e=>{this.onprogress&&this.onprogress.call(this,e)},u.send(o)}}function d(){return(0,t.useEffect)(()=>{!function({protect:e=[]}){let t;for(let t of e)if(t.advancedOptions?.checkLevel!==void 0&&"deepAnalysis"!==t.advancedOptions.checkLevel&&"basic"!==t.advancedOptions.checkLevel)throw Error(`Invalid checkLevel "${t.advancedOptions.checkLevel}" for route "${t.path}". Must be one of: deepAnalysis, basic`);let s=new o,d=new n(e);
1a(s,d,e).catch(e=>{console.error("Error patching XMLHttpRequest:",e)}),t=window.fetch,window.fetch=async(o,n)=>{let a=new URL(o instanceof Request?o.url:o,location.href),h=a.origin===location.origin,l=n?.method??(o instanceof Request?o.method:"GET"),c=e.find(e=>{let t=i({path:a.pathname,pattern:r(e.path)}),s=e.method.toLowerCase()===l.toLowerCase()||"*"===e.method;return t&&s});if(null==c||!h)return t(o,n);let p=await s.getChallenge(),u=new Headers(n?.headers||(o instanceof Request?o.headers:void 0));u.set("x-is-human",JSON.stringify(p)),u.set("x-path",a.pathname),u.set("x-method",l);let w={...n,headers:u};return d.loaded||0!==p.b?t(o,w):1===p.d||c?.advancedOptions?.checkLevel==="deepAnalysis"?(await d.load(),window.fetch(o,w)):t(o,w)}}({protect:[{path:"/api/blog/*/view",method:"POST"}]})},[]),null}e.s(["BotIdProtection",()=>d],707759)}]);
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.