"use strict";exports.id=6818,exports.ids=[6818],exports.modules={96818:(a,b,c)=>{c.d(b,{INPROC_TOKEN_HEADER:()=>m,getInprocToken:()=>k,u:()=>l});var d=c(77598),e=c(73024),f=c(76760),g=c(9381);let h="x-inproc-token",i="__madarxInprocToken",j=f.join(g.nJ,".inproc-token");function k(){let a=process.env.MADARX_INPROC_TICK_TOKEN;return a&&a.trim().length>0?a.trim():(globalThis[i]||(globalThis[i]=function(){try{let a=e.readFileSync(j,"utf8").trim();if(a)return a}catch{}let a=(0,d.randomBytes)(32).toString("base64url");try{e.mkdirSync(g.nJ,{recursive:!0});let b=e.openSync(j,"wx",384);try{e.writeSync(b,`${a}
`)}finally{e.closeSync(b)}try{e.chmodSync(j,384)}catch{}return a}catch{try{let a=e.readFileSync(j,"utf8").trim();if(a)return a}catch{}return a}}()),globalThis[i])}function l(a){if(!a||"function"!=typeof a.headers?.get)return!1;let b=a.headers.get(h);if(!b)return!1;let c=k(),e=Buffer.from(b),f=Buffer.from(c);if(e.length!==f.length)return!1;try{return(0,d.timingSafeEqual)(e,f)}catch{return!1}}let m=h}};