@evomap/evolver-proxy 2.0.41 → 2.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/bin/evolver-proxy.d.ts +3 -1
  2. package/dist/bin/evolver-proxy.js +4 -1
  3. package/dist/daemon/proxyDaemon.d.ts +9 -1
  4. package/dist/daemon/proxyDaemon.js +119 -12
  5. package/dist/daemon/publishBindingLedger.js +5 -0
  6. package/dist/lifecycle/claimNudge.js +1 -1
  7. package/dist/lifecycle/deployGuard.js +1 -1
  8. package/dist/lifecycle/legacyNodeId.js +1 -1
  9. package/dist/lifecycle/manager.js +1 -1
  10. package/dist/llm/bodyCapture.js +293 -1
  11. package/dist/llm/index.js +1 -1
  12. package/dist/llm/server.js +1 -1
  13. package/dist/llm/traceBackfill.js +1 -1
  14. package/dist/llm/traceConfig.js +1 -1
  15. package/dist/llm/traceControl.js +1 -1
  16. package/dist/llm/traceEnvelope.js +1 -1
  17. package/dist/llm/traceSink.js +1 -1
  18. package/dist/llm/traceUploadPayload.js +1 -1
  19. package/dist/llm/upstream.js +1 -1
  20. package/dist/private/adapterLoader.d.ts +13 -0
  21. package/dist/private/adapterLoader.js +13 -0
  22. package/dist/router/cachePassthrough.js +1 -1
  23. package/dist/router/features.js +1 -1
  24. package/dist/router/index.js +1 -1
  25. package/dist/router/messagesRoute.js +1 -1
  26. package/dist/router/modelRouter.js +1 -1
  27. package/dist/router/providerRoutes.js +1 -1
  28. package/dist/router/sseScan.js +1 -1
  29. package/dist/selfUpdate/bootstrap.d.ts +3 -0
  30. package/dist/selfUpdate/bootstrap.js +33 -7
  31. package/dist/selfUpdate/legacyLaunchdAbsentServiceBlock.d.ts +10 -0
  32. package/dist/selfUpdate/legacyLaunchdAbsentServiceBlock.js +39 -0
  33. package/dist/selfUpdate/migration.d.ts +5 -0
  34. package/dist/selfUpdate/migration.js +108 -9
  35. package/dist/sync/engine.js +1 -1
  36. package/package.json +3 -3
@@ -1 +1,293 @@
1
- const _0xd8327c=_0xec26;(function(_0x4636ea,_0x188b87){const _0x5bccc2=_0xec26,_0x2f3f2f=_0x4636ea();while(!![]){try{const _0x2760f9=parseInt(_0x5bccc2(0x18d,'\x29\x38\x57\x31'))/(-0xf00+-0x24e7+0x33e8)*(parseInt(_0x5bccc2(0x1b8,'\x28\x63\x37\x77'))/(-0x999+-0x798+0x1133))+-parseInt(_0x5bccc2(0x17a,'\x77\x32\x61\x6d'))/(-0xe6b+0xe36+0x38)*(parseInt(_0x5bccc2(0x1d8,'\x70\x72\x4f\x4a'))/(0x1518+-0xb1*-0x2d+0x1f*-0x1af))+-parseInt(_0x5bccc2(0x173,'\x78\x21\x41\x5e'))/(-0x83*0x1d+-0xe*-0x2c9+0x1*-0x1822)*(parseInt(_0x5bccc2(0x1c6,'\x29\x38\x57\x31'))/(0x1*-0x877+0x650+0x22d))+parseInt(_0x5bccc2(0x1e0,'\x70\x6f\x69\x42'))/(-0x2501+-0x2237*0x1+-0x17*-0x319)*(parseInt(_0x5bccc2(0x1ec,'\x73\x34\x30\x41'))/(-0x67*-0x25+-0x17e0+-0x1*-0x905))+parseInt(_0x5bccc2(0x1e3,'\x70\x72\x4f\x4a'))/(0x200+-0x22ad+0x105b*0x2)+parseInt(_0x5bccc2(0x167,'\x66\x42\x6a\x46'))/(0xd9a+0xc7d+-0x1a0d)*(-parseInt(_0x5bccc2(0x150,'\x36\x28\x54\x79'))/(-0x2be*-0x6+0x1bd2+0xd*-0x367))+parseInt(_0x5bccc2(0x182,'\x26\x68\x4a\x55'))/(0x1*0x1dde+0x9e4+0x1ba*-0x17)*(parseInt(_0x5bccc2(0x198,'\x26\x5a\x6b\x75'))/(-0x25*0x6f+-0x1591*-0x1+-0x579));if(_0x2760f9===_0x188b87)break;else _0x2f3f2f['push'](_0x2f3f2f['shift']());}catch(_0x30d22f){_0x2f3f2f['push'](_0x2f3f2f['shift']());}}}(_0x59ac,0x2*-0x104a7+0xbc3b+0x1d08a*0x3));import{createHash}from'\x6e\x6f\x64\x65\x3a\x63\x72\x79\x70\x74\x6f';export const REDACTION_VERSION='\x65\x76\x6f\x6c\x76\x65\x72\x2d'+'\x72\x65\x64\x61\x63\x74\x2d\x76'+'\x32';function truthy(_0x5b3cd1){const _0x58bfce=_0xec26,_0x23110=String(_0x5b3cd1??'')[_0x58bfce(0x149,'\x52\x29\x39\x58')]()['\x74\x6f\x4c\x6f\x77\x65\x72\x43'+'\x61\x73\x65']();return _0x23110==='\x31'||_0x23110===_0x58bfce(0x1db,'\x26\x68\x4a\x55')||_0x23110==='\x6f\x6e'||_0x23110===_0x58bfce(0x162,'\x25\x76\x49\x64');}function firstConfiguredEnv(_0xbd4ecc,_0x5cc37a){const _0x48ceef=_0xec26;for(const _0x46b604 of _0x5cc37a){const _0x3c0271=_0xbd4ecc[_0x46b604];if(_0x3c0271!==undefined&&_0x3c0271[_0x48ceef(0x1de,'\x4d\x65\x2a\x69')]()!=='')return _0x3c0271;}return undefined;}export function legacyProxyTraceFullEnabled(_0x203f3c=process.env){const _0x4b84a3=_0xec26,_0x535585=_0x203f3c[_0x4b84a3(0x1a8,'\x53\x50\x7a\x42')+_0x4b84a3(0x17b,'\x39\x30\x55\x38')+'\x43\x45'];if(_0x535585===undefined||_0x535585[_0x4b84a3(0x17e,'\x25\x77\x67\x4d')]()==='')return!![];return _0x535585[_0x4b84a3(0x135,'\x66\x5d\x47\x4e')]()[_0x4b84a3(0x1d7,'\x74\x2a\x33\x36')+_0x4b84a3(0x171,'\x26\x34\x32\x28')]()===_0x4b84a3(0x1cc,'\x7a\x63\x41\x4c');}export function captureBodiesEnabled(_0x335ac2=process.env){const _0x46cd4c=_0xec26,_0x39cf43=firstConfiguredEnv(_0x335ac2,[_0x46cd4c(0x16e,'\x26\x65\x4c\x48')+_0x46cd4c(0x195,'\x45\x37\x75\x48')+_0x46cd4c(0x197,'\x4e\x21\x6b\x29')+_0x46cd4c(0x14d,'\x46\x70\x73\x66'),_0x46cd4c(0x168,'\x63\x4c\x24\x5e')+_0x46cd4c(0x16d,'\x5a\x44\x54\x29')+_0x46cd4c(0x19e,'\x76\x67\x39\x79')+_0x46cd4c(0x18f,'\x29\x38\x57\x31')+'\x53']);if(_0x39cf43!==undefined)return truthy(_0x39cf43);return legacyProxyTraceFullEnabled(_0x335ac2);}export const DEFAULT_TRACE_ENVELOPE_MAX_CHARS=(0x688+0x59*0x61+0x283d*-0x1)*(0x2*-0x9c7+0x187*-0xd+0x2b69*0x1)*(-0x1689+-0x399*-0x3+0xfbe);const AUTHORIZATION_KEY_RE=/^(?:proxy[-_]?)?authorization$/i,AUTHORIZATION_VALUE_RE=/^(\s*[A-Za-z][A-Za-z0-9!#$%&'*+.^_`|~-]*\s+)[\s\S]+$/;function redactAuthorizationValue(_0x197f73){const _0x95894a=_0xec26,_0x2961f7=AUTHORIZATION_VALUE_RE[_0x95894a(0x188,'\x6c\x57\x2a\x5d')](_0x197f73);if(_0x2961f7?.[0x10c1+-0xe50+-0x270])return _0x2961f7[-0x7*0x63+-0x116*-0x21+-0x2120]+(_0x95894a(0x138,'\x6d\x59\x56\x75')+_0x95894a(0x159,'\x47\x31\x6f\x53'));return _0x197f73[_0x95894a(0x156,'\x5a\x44\x54\x29')]()?_0x95894a(0x1a2,'\x76\x67\x39\x79')+_0x95894a(0x1e4,'\x26\x34\x32\x28'):_0x197f73;}export function bodyMaxChars(_0xaa8cfe=process.env){const _0x3eda89=_0xec26;return positiveIntegerFromEnv(_0xaa8cfe,[_0x3eda89(0x1c9,'\x25\x77\x67\x4d')+_0x3eda89(0x1ad,'\x5e\x37\x37\x63')+_0x3eda89(0x12a,'\x7a\x63\x41\x4c')+_0x3eda89(0x1b7,'\x24\x6a\x50\x73'),'\x45\x56\x4f\x4d\x41\x50\x5f\x50'+_0x3eda89(0x19c,'\x78\x21\x41\x5e')+_0x3eda89(0x175,'\x51\x61\x33\x44')+_0x3eda89(0x151,'\x74\x2a\x33\x36')+'\x45\x53'],traceEnvelopeMaxChars(_0xaa8cfe));}export function traceEnvelopeMaxChars(_0x4b66ea=process.env){const _0x1f60cc=_0xec26;return positiveIntegerFromEnv(_0x4b66ea,[_0x1f60cc(0x1a1,'\x4f\x4b\x69\x66')+_0x1f60cc(0x139,'\x21\x53\x33\x41')+'\x45\x5f\x45\x4e\x56\x45\x4c\x4f'+_0x1f60cc(0x12e,'\x63\x4c\x24\x5e')+_0x1f60cc(0x1a9,'\x5a\x44\x54\x29'),'\x45\x56\x4f\x4d\x41\x50\x5f\x50'+_0x1f60cc(0x1d4,'\x26\x68\x4a\x55')+_0x1f60cc(0x165,'\x24\x6a\x50\x73')+'\x4f\x50\x45\x5f\x4d\x41\x58\x5f'+_0x1f60cc(0x1ba,'\x24\x6a\x50\x73')],DEFAULT_TRACE_ENVELOPE_MAX_CHARS);}function _0x59ac(){const _0x46af58=['\x57\x50\x75\x76\x69\x4d\x75\x67\x68\x33\x68\x63\x55\x73\x78\x63\x4c\x6d\x6b\x32','\x68\x71\x42\x64\x51\x59\x79','\x57\x4f\x64\x64\x4c\x4a\x7a\x43\x57\x37\x37\x63\x4d\x78\x47\x77','\x71\x38\x6f\x4e\x6b\x43\x6f\x43\x6b\x66\x79\x43\x74\x6d\x6b\x63\x57\x51\x74\x64\x4a\x43\x6f\x43\x57\x34\x69','\x43\x43\x6b\x37\x57\x36\x4c\x54\x6f\x6d\x6f\x6a\x78\x38\x6b\x42','\x57\x52\x78\x64\x53\x4d\x5a\x63\x51\x38\x6f\x35\x6c\x57','\x43\x6d\x6b\x53\x70\x4e\x2f\x63\x54\x33\x66\x2b\x57\x51\x70\x63\x53\x38\x6f\x6e\x57\x4f\x66\x41\x73\x47','\x71\x33\x6c\x64\x53\x67\x4b\x7a\x57\x4f\x66\x58\x57\x4f\x47','\x57\x36\x6c\x64\x48\x38\x6f\x5a\x6c\x4b\x48\x32\x70\x43\x6b\x50','\x57\x51\x30\x6a\x57\x50\x42\x64\x50\x53\x6f\x33','\x57\x50\x37\x64\x51\x32\x5a\x63\x4d\x57','\x57\x35\x4c\x32\x57\x52\x76\x55\x57\x34\x57','\x57\x4f\x42\x63\x4e\x53\x6f\x48\x79\x58\x33\x63\x49\x53\x6f\x4c\x42\x57','\x6b\x75\x52\x63\x49\x53\x6f\x65\x66\x48\x69\x5a\x70\x71','\x57\x36\x66\x56\x63\x38\x6b\x32\x57\x34\x4f','\x57\x36\x4f\x34\x57\x50\x4e\x64\x52\x61\x79\x5a\x57\x51\x61','\x57\x51\x46\x64\x53\x61\x62\x32\x57\x37\x42\x63\x50\x75\x4b\x38','\x57\x34\x6e\x30\x57\x52\x48\x4f\x57\x35\x68\x64\x4b\x71\x6d','\x74\x38\x6b\x2b\x6f\x6d\x6f\x62\x75\x6d\x6b\x56\x78\x62\x34','\x57\x34\x6a\x37\x57\x51\x39\x4c','\x61\x53\x6b\x38\x57\x50\x62\x54\x57\x52\x68\x63\x53\x4b\x6e\x61','\x57\x34\x64\x64\x49\x53\x6b\x31\x6e\x71','\x57\x35\x42\x64\x55\x53\x6b\x55\x66\x72\x6d\x70\x67\x47','\x63\x6d\x6f\x4c\x69\x71','\x69\x73\x79\x47\x61\x43\x6b\x6c\x63\x53\x6f\x71\x57\x35\x74\x63\x48\x38\x6b\x34\x62\x38\x6b\x39\x57\x50\x47','\x66\x48\x78\x64\x4a\x71','\x67\x6d\x6f\x56\x57\x37\x6d\x4f\x57\x51\x70\x63\x48\x38\x6f\x59','\x6a\x43\x6b\x41\x75\x4a\x6d','\x57\x36\x4c\x6f\x57\x50\x4c\x6a\x57\x37\x42\x64\x4e\x74\x46\x64\x4b\x61','\x57\x35\x71\x46\x61\x76\x33\x64\x4c\x38\x6f\x70\x57\x4f\x31\x4f','\x6c\x38\x6f\x72\x57\x4f\x42\x64\x55\x33\x65\x2b\x57\x34\x69\x76','\x57\x52\x52\x64\x55\x65\x2f\x64\x49\x53\x6b\x56\x57\x51\x58\x75\x57\x35\x65','\x68\x38\x6b\x49\x44\x6d\x6b\x68\x46\x72\x43','\x57\x35\x6a\x38\x57\x52\x35\x64\x57\x37\x4b','\x57\x51\x37\x64\x54\x78\x78\x63\x55\x47','\x57\x34\x70\x64\x4a\x6d\x6f\x6e\x71\x4a\x64\x64\x53\x38\x6f\x45\x72\x47','\x57\x34\x6a\x6f\x79\x5a\x50\x63\x6a\x58\x33\x63\x47\x47','\x63\x43\x6b\x39\x73\x53\x6b\x65\x57\x4f\x38\x38\x57\x52\x61\x43','\x63\x43\x6f\x55\x6e\x43\x6b\x66\x70\x43\x6b\x54\x79\x58\x6d','\x57\x37\x4a\x63\x54\x6d\x6f\x53\x6f\x66\x58\x53\x78\x61\x4f','\x61\x6d\x6f\x45\x78\x57\x78\x64\x4a\x57\x30\x7a\x57\x4f\x79','\x68\x53\x6b\x31\x43\x38\x6b\x61\x45\x58\x65','\x57\x35\x6c\x64\x51\x43\x6f\x33\x6c\x62\x71','\x57\x51\x5a\x64\x50\x61\x47\x5a\x57\x34\x34\x5a\x78\x53\x6f\x44','\x45\x38\x6b\x74\x64\x53\x6f\x33\x44\x53\x6b\x70\x42\x59\x38','\x6a\x6d\x6f\x52\x7a\x63\x68\x64\x4f\x74\x6e\x52\x57\x52\x65','\x57\x4f\x74\x64\x4b\x78\x6c\x64\x55\x43\x6b\x41\x57\x50\x31\x57','\x57\x50\x37\x64\x56\x68\x42\x63\x47\x47','\x79\x32\x64\x63\x50\x6d\x6b\x38\x57\x34\x4c\x64\x6f\x43\x6b\x57','\x65\x38\x6b\x36\x57\x50\x54\x50\x57\x52\x2f\x63\x50\x65\x6e\x68','\x57\x4f\x6e\x67\x76\x72\x52\x63\x4f\x43\x6b\x6d\x57\x4f\x44\x54\x7a\x6d\x6f\x4e\x43\x6d\x6f\x48','\x63\x6d\x6f\x55\x70\x53\x6b\x6f\x6a\x53\x6b\x33\x42\x47\x65','\x66\x43\x6b\x33\x46\x62\x43\x6f\x57\x4f\x78\x63\x52\x43\x6b\x74','\x57\x36\x72\x69\x77\x71','\x42\x43\x6b\x62\x57\x36\x43\x4e\x57\x52\x6c\x63\x54\x6d\x6f\x4e\x63\x47','\x57\x36\x35\x4c\x77\x58\x44\x50\x68\x67\x4e\x63\x4f\x61','\x6b\x43\x6b\x43\x62\x38\x6f\x71\x57\x36\x78\x64\x56\x61\x4a\x64\x54\x61','\x62\x43\x6f\x63\x77\x61\x4e\x64\x47\x58\x65\x64\x57\x50\x79','\x57\x4f\x62\x67\x6c\x77\x37\x64\x4c\x53\x6f\x47\x57\x51\x58\x59','\x57\x37\x70\x63\x4a\x4c\x4c\x79\x66\x63\x78\x64\x4a\x6d\x6f\x4b','\x71\x31\x46\x63\x49\x43\x6b\x6f','\x79\x64\x34\x46\x57\x35\x7a\x52\x44\x61','\x57\x35\x6e\x66\x7a\x63\x43','\x57\x37\x79\x50\x6d\x67\x64\x64\x4b\x53\x6f\x2f\x57\x51\x35\x78','\x70\x4c\x47\x5a\x78\x30\x79\x62','\x57\x52\x2f\x64\x56\x4e\x6c\x63\x56\x6d\x6f\x5a\x70\x48\x79','\x64\x74\x42\x63\x52\x38\x6b\x52\x57\x34\x34','\x70\x65\x47\x57\x77\x4c\x43\x42','\x67\x4b\x34\x79\x57\x34\x76\x39\x57\x51\x6c\x64\x51\x38\x6b\x57','\x64\x4a\x56\x64\x4e\x43\x6f\x49\x76\x4c\x42\x64\x48\x6d\x6f\x63','\x6d\x4a\x4e\x64\x47\x58\x70\x63\x4a\x4d\x74\x63\x50\x43\x6b\x52','\x69\x53\x6b\x75\x67\x47','\x57\x35\x72\x4f\x44\x57','\x67\x59\x4a\x63\x54\x71','\x41\x68\x68\x63\x52\x38\x6b\x4f\x57\x34\x39\x46\x69\x71','\x57\x35\x78\x63\x56\x77\x4c\x57\x6f\x57\x70\x63\x50\x6d\x6f\x42','\x42\x32\x56\x63\x54\x53\x6f\x59\x73\x47','\x41\x49\x6a\x35\x57\x52\x34\x6a\x57\x35\x6c\x63\x4b\x6d\x6b\x31\x46\x6d\x6f\x68\x57\x50\x48\x45\x7a\x71','\x66\x38\x6b\x56\x57\x4f\x62\x54\x57\x52\x68\x63\x55\x4b\x6e\x74','\x6c\x4a\x42\x64\x52\x38\x6f\x59\x42\x6d\x6f\x6d\x66\x6d\x6b\x67\x57\x37\x53','\x57\x52\x33\x64\x53\x64\x66\x43\x57\x34\x68\x63\x4a\x33\x38\x45','\x57\x35\x61\x7a\x63\x30\x70\x64\x56\x6d\x6f\x42\x57\x4f\x34','\x57\x52\x75\x56\x57\x34\x2f\x64\x50\x43\x6f\x45\x57\x36\x78\x64\x56\x38\x6b\x6e','\x7a\x77\x52\x63\x55\x6d\x6b\x36\x57\x35\x76\x66\x6c\x53\x6b\x31','\x77\x64\x64\x64\x53\x57\x64\x64\x48\x65\x6a\x76\x57\x50\x6d','\x57\x36\x4b\x4b\x69\x77\x56\x64\x4d\x6d\x6f\x35\x57\x52\x72\x70','\x57\x4f\x4b\x38\x78\x58\x58\x45\x72\x71\x44\x54','\x7a\x4c\x37\x64\x47\x71','\x44\x32\x68\x64\x49\x74\x31\x76\x57\x34\x64\x64\x4c\x38\x6b\x79','\x64\x43\x6f\x38\x66\x6d\x6f\x5a\x45\x53\x6b\x68\x7a\x47\x6d','\x57\x37\x64\x64\x53\x53\x6f\x4f','\x78\x30\x6c\x63\x47\x6d\x6f\x43\x42\x53\x6f\x46\x61\x43\x6b\x76','\x73\x73\x70\x64\x55\x62\x70\x64\x47\x75\x6a\x65\x57\x50\x34','\x43\x4e\x6c\x63\x53\x53\x6f\x5a\x73\x53\x6f\x31','\x65\x58\x74\x63\x55\x38\x6b\x58\x57\x34\x39\x76\x70\x43\x6b\x33','\x6f\x49\x2f\x64\x55\x38\x6b\x69\x57\x35\x4b\x62\x65\x68\x30','\x57\x50\x47\x52\x57\x36\x58\x55\x57\x36\x52\x64\x4c\x73\x2f\x64\x47\x6d\x6b\x77','\x57\x51\x64\x63\x53\x6d\x6f\x42\x76\x49\x46\x64\x53\x38\x6f\x45\x73\x47','\x57\x4f\x78\x64\x47\x68\x64\x64\x56\x6d\x6b\x76\x57\x50\x4b','\x62\x6d\x6f\x74\x78\x57\x78\x64\x47\x71\x38\x42','\x44\x33\x6c\x64\x47\x4a\x57','\x57\x35\x72\x6d\x46\x4a\x62\x74','\x57\x51\x4e\x64\x50\x68\x74\x63\x50\x38\x6f\x30\x70\x61','\x57\x37\x6a\x78\x57\x52\x39\x37\x57\x35\x57','\x57\x36\x50\x42\x57\x34\x70\x63\x53\x38\x6b\x57\x63\x62\x4b\x6c\x76\x53\x6b\x58\x57\x37\x6c\x64\x55\x43\x6f\x52','\x57\x51\x4f\x79\x57\x4f\x70\x64\x51\x53\x6f\x52\x76\x30\x47\x52','\x77\x30\x64\x63\x54\x78\x56\x64\x4f\x61\x70\x63\x51\x6d\x6b\x4c\x57\x52\x70\x64\x51\x38\x6b\x58\x57\x35\x61','\x57\x34\x4e\x63\x52\x68\x4c\x2b\x6d\x62\x56\x63\x56\x61','\x69\x43\x6b\x6e\x57\x52\x31\x6a\x57\x50\x37\x63\x4a\x78\x76\x4c','\x57\x35\x46\x63\x47\x38\x6f\x41\x63\x61','\x6d\x6d\x6f\x59\x57\x51\x35\x76','\x57\x34\x58\x6a\x6d\x53\x6b\x47\x57\x36\x4b','\x57\x35\x74\x64\x4b\x43\x6f\x7a\x62\x57\x34','\x57\x34\x4a\x64\x4c\x77\x52\x63\x47\x43\x6b\x6d\x57\x4f\x4e\x63\x56\x6d\x6f\x62','\x6d\x67\x71\x4d\x57\x36\x54\x7a\x57\x50\x6d','\x46\x48\x56\x64\x4d\x43\x6b\x68\x45\x66\x6d\x6a\x66\x47\x66\x78\x7a\x4b\x30','\x6f\x43\x6b\x6a\x73\x64\x79','\x68\x4d\x52\x63\x53\x43\x6f\x31\x62\x49\x69\x69\x67\x71','\x57\x50\x31\x76\x57\x51\x50\x55','\x57\x35\x31\x53\x44\x4a\x31\x2b','\x6e\x43\x6f\x64\x57\x37\x65\x42\x57\x4f\x70\x63\x4f\x53\x6f\x77','\x6a\x47\x68\x64\x55\x43\x6b\x75\x69\x49\x6d','\x6a\x65\x37\x63\x4e\x43\x6f\x46','\x67\x73\x78\x64\x4c\x43\x6f\x35\x71\x30\x46\x64\x4b\x43\x6f\x65','\x69\x58\x5a\x64\x56\x33\x71\x78\x57\x4f\x62\x2b\x57\x50\x79','\x76\x30\x35\x72\x43\x6d\x6f\x55\x7a\x53\x6b\x39\x57\x34\x61','\x77\x67\x64\x63\x55\x30\x30\x2f\x6c\x65\x6c\x64\x4e\x61','\x57\x51\x34\x35\x57\x36\x5a\x64\x51\x6d\x6f\x7a\x57\x36\x70\x64\x4b\x57','\x57\x4f\x7a\x61\x57\x51\x54\x56\x57\x35\x44\x4d\x57\x52\x43\x6f','\x57\x34\x43\x63\x61\x48\x43','\x42\x43\x6b\x64\x62\x43\x6f\x52\x41\x53\x6b\x6a\x45\x64\x4f','\x57\x36\x56\x64\x48\x53\x6b\x4b\x69\x49\x38\x5a','\x70\x72\x2f\x63\x4d\x43\x6b\x6c\x57\x36\x52\x63\x52\x38\x6b\x53\x57\x52\x71','\x57\x50\x68\x64\x4d\x5a\x62\x6d\x57\x35\x68\x63\x49\x67\x6d\x64','\x44\x78\x74\x63\x4e\x53\x6f\x4a\x78\x43\x6f\x4d\x6a\x57','\x57\x36\x56\x63\x47\x64\x46\x64\x4e\x71\x74\x63\x4c\x38\x6f\x70\x57\x35\x43','\x6a\x71\x4a\x63\x47\x38\x6b\x6d\x57\x36\x52\x63\x56\x6d\x6b\x53\x57\x51\x71','\x79\x38\x6f\x45\x77\x6d\x6b\x6f\x57\x4f\x30\x69\x57\x51\x57\x32','\x57\x52\x62\x4b\x57\x4f\x31\x6f\x57\x36\x71','\x57\x4f\x70\x64\x47\x59\x54\x64\x57\x35\x70\x63\x4e\x4e\x4f\x75','\x65\x33\x56\x63\x4f\x43\x6f\x38\x64\x63\x47\x43','\x75\x53\x6b\x50\x57\x36\x47\x62\x57\x34\x62\x38\x57\x35\x4a\x63\x49\x47','\x57\x36\x44\x72\x70\x53\x6b\x79\x57\x34\x58\x59\x64\x6d\x6f\x4b','\x46\x32\x74\x63\x53\x53\x6b\x57','\x57\x51\x47\x35\x57\x36\x2f\x64\x53\x61','\x70\x74\x4e\x63\x50\x6d\x6b\x7a\x57\x37\x30','\x57\x35\x33\x63\x4f\x47\x52\x64\x55\x64\x5a\x63\x54\x71','\x6d\x4a\x5a\x64\x55\x6d\x6b\x63\x57\x34\x61\x72\x66\x67\x57','\x75\x62\x65\x57\x57\x37\x6a\x67\x74\x61','\x71\x33\x6c\x64\x4f\x77\x53\x74\x57\x4f\x31\x5a\x57\x4f\x47','\x57\x51\x43\x41\x57\x50\x5a\x64\x47\x49\x47\x71','\x57\x36\x74\x64\x4d\x38\x6b\x51\x69\x59\x61\x54\x6e\x30\x43','\x77\x53\x6b\x49\x6b\x43\x6f\x61\x78\x6d\x6b\x34\x77\x71','\x57\x4f\x65\x45\x57\x4f\x52\x64\x4c\x4a\x38\x62\x57\x50\x43\x71','\x57\x52\x66\x52\x57\x4f\x50\x64\x57\x37\x50\x74\x57\x50\x53\x38','\x71\x6d\x6f\x4d\x6c\x6d\x6f\x77\x6c\x31\x43\x72\x72\x43\x6b\x34\x57\x4f\x70\x64\x4e\x38\x6f\x77\x57\x35\x71','\x6b\x38\x6b\x43\x62\x43\x6f\x68\x57\x34\x78\x64\x51\x71','\x57\x35\x46\x63\x4f\x67\x4c\x32\x70\x72\x74\x63\x53\x38\x6f\x65','\x45\x38\x6b\x59\x6b\x53\x6f\x34\x57\x34\x78\x64\x4b\x73\x69','\x57\x51\x35\x4d\x57\x50\x58\x63\x57\x37\x48\x63\x57\x4f\x4f\x54','\x57\x35\x74\x63\x4f\x77\x6a\x57\x6a\x47','\x65\x5a\x56\x63\x54\x47','\x57\x36\x6e\x4c\x77\x71\x44\x2f\x68\x33\x5a\x63\x51\x71','\x65\x66\x47\x38\x73\x4c\x43\x42\x57\x36\x62\x51','\x57\x37\x56\x63\x4d\x75\x79','\x6b\x43\x6f\x65\x57\x35\x7a\x72','\x57\x34\x37\x63\x48\x38\x6f\x72','\x76\x48\x75\x4d\x57\x37\x50\x43\x74\x48\x34\x38','\x57\x36\x70\x64\x4d\x38\x6f\x41\x6d\x32\x62\x36\x6b\x38\x6b\x31','\x57\x36\x74\x64\x47\x6d\x6f\x4b\x6e\x78\x4c\x34','\x73\x75\x6e\x78\x44\x43\x6f\x2f\x43\x43\x6b\x38\x57\x35\x43','\x45\x38\x6b\x4c\x66\x38\x6f\x54\x57\x37\x62\x45\x57\x4f\x65','\x46\x72\x2f\x64\x4e\x38\x6b\x63\x43\x76\x61\x4d\x6f\x58\x35\x49\x44\x65\x4b','\x68\x63\x64\x63\x4b\x68\x69\x4f\x65\x78\x74\x64\x4a\x47','\x6c\x31\x42\x63\x4a\x68\x78\x63\x4f\x4a\x71\x59\x57\x51\x74\x63\x47\x4b\x56\x64\x4e\x58\x30\x6e','\x72\x4c\x42\x64\x50\x62\x31\x4d\x57\x51\x4a\x64\x52\x6d\x6b\x4a','\x71\x38\x6b\x59\x57\x37\x34\x72\x57\x37\x66\x2b\x57\x34\x4e\x63\x4a\x57','\x41\x53\x6b\x2b\x63\x53\x6f\x4f\x57\x37\x54\x79','\x57\x4f\x74\x64\x4d\x49\x35\x76','\x73\x53\x6b\x2f\x6f\x6d\x6f\x61\x41\x53\x6b\x30\x74\x49\x71','\x57\x4f\x69\x48\x57\x52\x64\x64\x4d\x38\x6f\x41\x79\x4d\x71\x6a','\x42\x33\x70\x63\x52\x43\x6f\x34\x71\x43\x6f\x47','\x57\x4f\x37\x64\x4b\x4d\x64\x64\x4d\x38\x6b\x52','\x6d\x32\x52\x64\x52\x68\x57\x48\x57\x4f\x48\x5a','\x57\x4f\x78\x64\x4b\x5a\x30\x42\x57\x36\x34\x74\x42\x57','\x41\x53\x6b\x2b\x63\x53\x6f\x4f\x57\x37\x54\x79\x57\x4f\x79\x77','\x57\x4f\x53\x4a\x57\x51\x4e\x64\x4d\x53\x6f\x41\x7a\x68\x6d\x6d','\x73\x6d\x6b\x4c\x6b\x43\x6f\x41','\x68\x72\x68\x64\x50\x73\x37\x63\x4f\x57','\x57\x35\x6e\x70\x77\x5a\x58\x62\x6f\x30\x6c\x63\x54\x57','\x43\x38\x6b\x4f\x70\x4e\x52\x63\x53\x61\x69\x68\x57\x4f\x2f\x63\x4a\x6d\x6f\x34\x57\x4f\x57','\x57\x4f\x6d\x72\x73\x68\x43\x65','\x57\x50\x52\x64\x50\x75\x52\x63\x50\x4d\x46\x64\x4f\x43\x6b\x54\x57\x35\x69\x75\x57\x51\x6c\x63\x50\x43\x6b\x41\x57\x37\x57','\x57\x51\x30\x45\x57\x4f\x74\x64\x50\x47','\x57\x35\x74\x64\x4c\x38\x6f\x30\x64\x75\x65'];_0x59ac=function(){return _0x46af58;};return _0x59ac();}export function positiveIntegerFromEnv(_0x2b34d9,_0x565d98,_0x26e094){const _0x3b480c=_0xec26;for(const _0x7ef234 of _0x565d98){const _0x1a4126=Number(_0x2b34d9[_0x7ef234]);if(Number['\x69\x73\x53\x61\x66\x65\x49\x6e'+_0x3b480c(0x1e6,'\x26\x68\x4a\x55')](_0x1a4126)&&_0x1a4126>0x123*0x9+0x1978+-0x23b3)return _0x1a4126;}return _0x26e094;}const REDACTORS=[{'\x72\x65':/(\b[A-Za-z_][A-Za-z0-9_]*(?:API[_-]?KEY|TOKEN|SECRET|PASSWORD|CREDENTIAL|AUTH|PRIVATE[_-]?KEY)\b\s*[:=]\s*)(["']?)([^"'\s,}\]]{6,})\2/gi,'\x77\x69\x74\x68':_0xd8327c(0x196,'\x26\x34\x32\x28')+_0xd8327c(0x176,'\x26\x65\x4c\x48')+_0xd8327c(0x131,'\x46\x70\x73\x66')},{'\x72\x65':/(\b(?:proxy-)?authorization\s*:\s*)([^\r\n]+)/gi,'\x77\x69\x74\x68':(_0x5db76a,_0x185885,_0x52c267)=>''+String(_0x185885)+redactAuthorizationValue(String(_0x52c267??''))},{'\x72\x65':/((?:\\?["'])\s*(?:proxy-)?authorization\s*(?:\\?["'])\s*:\s*(?:\\?["']))((?:(?!\\?["'])[\s\S])*?)((?:\\?["']))/gi,'\x77\x69\x74\x68':(_0x11e5fe,_0x429426,_0x1b6ac6,_0x343a3a)=>''+String(_0x429426)+redactAuthorizationValue(String(_0x1b6ac6??''))+String(_0x343a3a)},{'\x72\x65':/(\bcookie\s*:\s*)[^\r\n]+/gi,'\x77\x69\x74\x68':_0xd8327c(0x178,'\x5a\x44\x54\x29')+'\x54\x45\x44\x5f\x43\x4f\x4f\x4b'+_0xd8327c(0x14f,'\x25\x76\x49\x64')},{'\x72\x65':/-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z ]*PRIVATE KEY-----/g,'\x77\x69\x74\x68':_0xd8327c(0x141,'\x6b\x49\x71\x75')+'\x44\x5f\x50\x52\x49\x56\x41\x54'+_0xd8327c(0x157,'\x62\x41\x63\x53')},{'\x72\x65':/\b[Bb]earer\s+[A-Za-z0-9._~+/-]{12,}=*/g,'\x77\x69\x74\x68':_0xd8327c(0x1bd,'\x57\x5d\x23\x54')+'\x52\x45\x44\x41\x43\x54\x45\x44'+_0xd8327c(0x185,'\x24\x6a\x50\x73')},{'\x72\x65':/\bsk-(?:ant-)?[A-Za-z0-9._-]{16,}/g,'\x77\x69\x74\x68':_0xd8327c(0x15f,'\x45\x37\x75\x48')+'\x44\x5f\x41\x50\x49\x5f\x4b\x45'+'\x59\x5d'},{'\x72\x65':/\bghp_[A-Za-z0-9_]{20,}\b/g,'\x77\x69\x74\x68':_0xd8327c(0x145,'\x4d\x24\x5a\x5a')+'\x44\x5f\x47\x49\x54\x48\x55\x42'+_0xd8327c(0x164,'\x5a\x44\x54\x29')},{'\x72\x65':/\bgithub_pat_[A-Za-z0-9_]{20,}\b/g,'\x77\x69\x74\x68':'\x5b\x52\x45\x44\x41\x43\x54\x45'+_0xd8327c(0x14e,'\x66\x5d\x47\x4e')+_0xd8327c(0x1a6,'\x29\x38\x57\x31')},{'\x72\x65':/\bxox[abcprs]-[A-Za-z0-9-]{10,}\b/g,'\x77\x69\x74\x68':_0xd8327c(0x13f,'\x35\x56\x50\x5d')+_0xd8327c(0x15e,'\x66\x42\x6a\x46')+_0xd8327c(0x19d,'\x6f\x59\x4e\x29')},{'\x72\x65':/((?:"|')?\b(?:api[_-]?key|password|client[_-]?secret|access[_-]?token|refresh[_-]?token|id[_-]?token|token)\b(?:"|')?\s*[:=]\s*)("[^"\r\n]*"|'[^'\r\n]*')/gi,'\x77\x69\x74\x68':_0xd8327c(0x1e1,'\x6c\x57\x2a\x5d')+_0xd8327c(0x136,'\x77\x32\x61\x6d')+_0xd8327c(0x1bc,'\x74\x2a\x33\x36')+'\x22'},{'\x72\x65':/((?:"|')?\b(?:api[_-]?key|password|client[_-]?secret|access[_-]?token|refresh[_-]?token|id[_-]?token|token)\b(?:"|')?\s*[:=]\s*)(?!["'])[^\r\n,&}]+/gi,'\x77\x69\x74\x68':_0xd8327c(0x170,'\x25\x76\x49\x64')+_0xd8327c(0x14a,'\x5a\x44\x54\x29')+_0xd8327c(0x17d,'\x70\x72\x4f\x4a')},{'\x72\x65':/\bAKIA[0-9A-Z]{16}\b/g,'\x77\x69\x74\x68':_0xd8327c(0x16f,'\x47\x31\x6f\x53')+'\x44\x5f\x41\x57\x53\x5f\x4b\x45'+'\x59\x5d'},{'\x72\x65':/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}/g,'\x77\x69\x74\x68':'\x5b\x52\x45\x44\x41\x43\x54\x45'+'\x44\x5f\x4a\x57\x54\x5d'},{'\x72\x65':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g,'\x77\x69\x74\x68':_0xd8327c(0x1c4,'\x4e\x21\x6b\x29')+_0xd8327c(0x1af,'\x26\x34\x32\x28')},{'\x72\x65':/\b(?:\d[ -]?){13,19}\b/g,'\x77\x69\x74\x68':_0xd8327c(0x1b1,'\x6f\x59\x4e\x29')+_0xd8327c(0x134,'\x36\x28\x54\x79'),'\x73\x74\x72\x75\x63\x74\x75\x72\x65\x64\x49\x64\x65\x6e\x74\x69\x66\x69\x65\x72\x53\x61\x66\x65':![]},{'\x72\x65':/\+?\d[\d\s-]{9,}\d/g,'\x77\x69\x74\x68':_0xd8327c(0x16f,'\x47\x31\x6f\x53')+_0xd8327c(0x179,'\x5e\x37\x37\x63')+'\x5d','\x73\x74\x72\x75\x63\x74\x75\x72\x65\x64\x49\x64\x65\x6e\x74\x69\x66\x69\x65\x72\x53\x61\x66\x65':![]}];function applyRedactors(_0x1907b7,_0xbd023d={}){const _0x56c519=_0xd8327c;let _0x4c0aa3=_0x1907b7;for(const _0x5e66bf of REDACTORS){if(_0x56c519(0x1eb,'\x53\x50\x7a\x42')!==_0x56c519(0x144,'\x51\x59\x6d\x24'))return _0x131799(_0x39237f,{'\x70\x72\x65\x73\x65\x72\x76\x65\x53\x74\x72\x75\x63\x74\x75\x72\x65\x64\x49\x64\x65\x6e\x74\x69\x66\x69\x65\x72\x4e\x75\x6d\x62\x65\x72\x73':_0x34aa42(_0x846637)});else{if(_0xbd023d[_0x56c519(0x12c,'\x78\x21\x41\x5e')+_0x56c519(0x1b3,'\x73\x34\x30\x41')+'\x65\x64\x49\x64\x65\x6e\x74\x69'+_0x56c519(0x137,'\x47\x31\x6f\x53')+_0x56c519(0x163,'\x76\x67\x39\x79')]===!![]&&_0x5e66bf[_0x56c519(0x19f,'\x7a\x63\x41\x4c')+'\x65\x64\x49\x64\x65\x6e\x74\x69'+_0x56c519(0x152,'\x28\x63\x37\x77')]===![])continue;const _0x3becc3=_0x5e66bf[_0x56c519(0x1d5,'\x78\x21\x41\x5e')];_0x4c0aa3=typeof _0x3becc3===_0x56c519(0x1cb,'\x23\x67\x28\x46')?_0x4c0aa3[_0x56c519(0x148,'\x21\x53\x33\x41')](_0x5e66bf['\x72\x65'],_0x3becc3):_0x4c0aa3[_0x56c519(0x1d2,'\x4d\x24\x5a\x5a')](_0x5e66bf['\x72\x65'],(..._0x1ac068)=>_0x3becc3(_0x1ac068[-0x1ae3+0xc08+0xedb*0x1],..._0x1ac068[_0x56c519(0x1e8,'\x77\x32\x61\x6d')](0x1765+0x1461+0x53*-0x87)));}}return _0x4c0aa3;}export function redactText(_0x3a59ff){return applyRedactors(_0x3a59ff);}const SENSITIVE_KEY_RE=/(?:^|[_-])(?:api[_-]?key|token|secret|password|credential|authorization|auth|bearer|access[_-]?key|private[_-]?key|client[_-]?secret|refresh[_-]?token|id[_-]?token|session[_-]?token|cookie|dsn)(?:$|[_-])|(?:api[_-]?key|token|secret|password|credential|authorization|auth|private[_-]?key)$/i,STRUCTURED_IDENTIFIER_KEY_RE=/(?:^|[_-])(?:id|ids|fingerprint|hash|timestamp|time)(?:$|[_-])|(?:^|[_-])(?:created|updated|occurred|started|ended)[_-]at(?:$|[_-])/i,STABLE_IDENTITY_KEY_RE=/(?:^|[_-])(?:user|session|device)[_-]?id(?:$|[_-])/i,MAX_REDACTION_DEPTH=0x736+-0x3*-0xb15+-0x2857;function keyParts(_0x3a32e4){const _0x47ebd1=_0xd8327c;return _0x3a32e4['\x72\x65\x70\x6c\x61\x63\x65'](/([a-z0-9])([A-Z])/g,_0x47ebd1(0x1d9,'\x74\x2a\x33\x36'))[_0x47ebd1(0x199,'\x46\x28\x31\x66')](/[^A-Za-z0-9]+/g,'\x5f')[_0x47ebd1(0x1c2,'\x56\x71\x71\x7a')+_0x47ebd1(0x174,'\x51\x59\x6d\x24')]();}function redactValueForKey(_0x2491b4){const _0x207598=_0xd8327c;if(_0x2491b4===undefined||_0x2491b4===null)return _0x2491b4;if(Array[_0x207598(0x130,'\x6f\x59\x4e\x29')](_0x2491b4))return _0x2491b4[_0x207598(0x1bb,'\x76\x67\x39\x79')](()=>_0x207598(0x15f,'\x45\x37\x75\x48')+_0x207598(0x146,'\x78\x21\x41\x5e')+'\x5d');if(typeof _0x2491b4===_0x207598(0x143,'\x70\x6f\x69\x42'))return _0x207598(0x13f,'\x35\x56\x50\x5d')+_0x207598(0x1b4,'\x24\x33\x29\x73')+'\x5d';return _0x207598(0x1b9,'\x24\x33\x29\x73')+_0x207598(0x153,'\x70\x72\x4f\x4a')+'\x5d';}function redactSensitiveKeyValue(_0x216215,_0x23f42e){const _0x3e2cb6=_0xd8327c;if(AUTHORIZATION_KEY_RE[_0x3e2cb6(0x1aa,'\x46\x28\x31\x66')](_0x216215)&&typeof _0x23f42e==='\x73\x74\x72\x69\x6e\x67')return redactAuthorizationValue(_0x23f42e);return redactValueForKey(_0x23f42e);}function isStableIdentityKey(_0x2faf3b){return STABLE_IDENTITY_KEY_RE['\x74\x65\x73\x74'](keyParts(_0x2faf3b));}function stableIdentityHashSource(_0x40d10e){const _0x2e9a6b=_0xd8327c;let _0x2703b4;try{_0x2703b4=typeof _0x40d10e==='\x73\x74\x72\x69\x6e\x67'?_0x40d10e:JSON[_0x2e9a6b(0x183,'\x26\x68\x4a\x55')+'\x79'](_0x40d10e);}catch{if(_0x2e9a6b(0x1d0,'\x21\x53\x33\x41')===_0x2e9a6b(0x13b,'\x77\x32\x61\x6d'))_0x2703b4=String(_0x40d10e);else{if(_0x554d58===_0x561cb3||_0x1e4f64===null)return _0x11bfde;if(typeof _0x3c6e94===_0x2e9a6b(0x1c3,'\x56\x71\x71\x7a'))return _0x3ca1ad(_0x5d5e57,{'\x70\x72\x65\x73\x65\x72\x76\x65\x53\x74\x72\x75\x63\x74\x75\x72\x65\x64\x49\x64\x65\x6e\x74\x69\x66\x69\x65\x72\x4e\x75\x6d\x62\x65\x72\x73':_0x6e589c(_0x23957c)});if(typeof _0x49ccb1===_0x2e9a6b(0x177,'\x51\x61\x33\x44')||typeof _0x4cafbf===_0x2e9a6b(0x1c5,'\x23\x67\x28\x46'))return _0x3456de;if(_0x2569eb>_0x5306bb)return _0x2e9a6b(0x160,'\x4d\x65\x2a\x69')+_0x2e9a6b(0x14b,'\x63\x4c\x24\x5e')+_0x2e9a6b(0x1a4,'\x24\x33\x29\x73');if(_0x35f8b4[_0x2e9a6b(0x1a0,'\x51\x61\x33\x44')](_0x5b6df5))return _0x2b8be7[_0x2e9a6b(0x1be,'\x24\x6a\x50\x73')](_0x165bdb=>_0x8927ae(_0x165bdb,_0x66e55d+(-0x3*-0xaf7+-0x22ee+0x105*0x2),_0x30a794));if(typeof _0x15c13b!=='\x6f\x62\x6a\x65\x63\x74')return _0x54a77e;const _0x5eb4b4={};for(const [_0x1f8543,_0x30cee7]of _0x55ab23[_0x2e9a6b(0x1b2,'\x78\x21\x41\x5e')](_0x25eb79)){_0x5eb4b4[_0x1f8543]=_0x486739[_0x2e9a6b(0x187,'\x6b\x49\x71\x75')](_0x1f8543)?_0x37deae(_0x1f8543,_0x30cee7):_0x5343b1(_0x1f8543)?_0x4363ee(_0x30cee7):_0xc8c9a0(_0x30cee7,_0x1188fd+(-0xe*-0x185+0x1*-0xbab+-0x99a*0x1),_0x1f8543),_0x46cfb1['\x74\x65\x73\x74'](_0x1f8543)&&(typeof _0x30cee7===_0x2e9a6b(0x1cf,'\x51\x61\x33\x44')||typeof _0x30cee7===_0x2e9a6b(0x15d,'\x57\x5d\x23\x54'))&&_0x5eb4b4['\x75\x73\x65\x72\x5f\x69\x64\x5f'+_0x2e9a6b(0x194,'\x29\x38\x57\x31')]===_0x41e158&&(_0x5eb4b4[_0x2e9a6b(0x1c7,'\x26\x5a\x6b\x75')+_0x2e9a6b(0x12d,'\x77\x32\x61\x6d')]=_0x398f80(_0x30cee7));}return _0x5eb4b4;}}const _0x4a00d8=_0x2703b4[_0x2e9a6b(0x12b,'\x77\x32\x61\x6d')](_0x2e9a6b(0x16a,'\x7a\x63\x41\x4c')+'\x6e\x5f');if(_0x4a00d8>0xaaf*-0x1+-0x2200+-0x29*-0x117)return _0x2703b4[_0x2e9a6b(0x15c,'\x76\x67\x39\x79')](0x1*0x1216+-0x53*0x11+-0xc93,_0x4a00d8);return _0x2703b4;}function stableIdentityPlaceholder(_0x177a8a){const _0xcac631=_0xd8327c,_0xbc2b5f=stableIdentityHashSource(_0x177a8a),_0x2d6962=createHash(_0xcac631(0x193,'\x45\x37\x75\x48'))[_0xcac631(0x1ae,'\x62\x41\x63\x53')](_0xcac631(0x147,'\x70\x72\x4f\x4a')+_0xcac631(0x172,'\x25\x77\x67\x4d')+_0xcac631(0x13e,'\x74\x2a\x33\x36')+'\x31\x3a'+_0xbc2b5f,_0xcac631(0x19b,'\x47\x31\x6f\x53'))[_0xcac631(0x1b6,'\x28\x63\x37\x77')](_0xcac631(0x133,'\x5e\x37\x37\x63'))[_0xcac631(0x17f,'\x74\x2a\x33\x36')](-0x246a+0x9ca+0x238*0xc,-0x1ea5+0x1*0x22e1+-0x42c);return'\x5b\x52\x45\x44\x41\x43\x54\x45'+_0xcac631(0x140,'\x46\x70\x73\x66')+_0xcac631(0x12f,'\x39\x30\x55\x38')+_0x2d6962+'\x5d';}function redactStableIdentityValue(_0x1312ae){if(_0x1312ae===undefined||_0x1312ae===null)return _0x1312ae;return stableIdentityPlaceholder(_0x1312ae);}function _0xec26(_0x56ff9d,_0x22dd23){_0x56ff9d=_0x56ff9d-(-0x48d*0x5+-0x1*-0x202+-0x1*-0x15e9);const _0x5670cf=_0x59ac();let _0x2c145b=_0x5670cf[_0x56ff9d];if(_0xec26['\x6e\x68\x6d\x54\x44\x6c']===undefined){var _0x144ead=function(_0x592d59){const _0x1432fc='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x351c51='',_0x4fd95b='';for(let _0x365bfb=-0x12*0x7c+0x4*-0x53+-0xa04*-0x1,_0x9e959f,_0xad107b,_0x409294=0x85d+0x3*0x758+0x1e65*-0x1;_0xad107b=_0x592d59['\x63\x68\x61\x72\x41\x74'](_0x409294++);~_0xad107b&&(_0x9e959f=_0x365bfb%(-0x1*-0x9d5+-0x2*-0x2c8+-0xf61)?_0x9e959f*(-0x2455+-0x2212*0x1+0x46a7*0x1)+_0xad107b:_0xad107b,_0x365bfb++%(0x1*0x381+0x1102+-0x147f))?_0x351c51+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x5f5*0x1+0xc15+-0x65*0xd&_0x9e959f>>(-(-0x699+0x4*-0x1eb+0x2db*0x5)*_0x365bfb&-0x24e0+-0x3*-0x332+0x1b50)):0xf3*0x1+0x61*-0x4f+-0x23*-0xd4){_0xad107b=_0x1432fc['\x69\x6e\x64\x65\x78\x4f\x66'](_0xad107b);}for(let _0xda97de=0x177e+0xa*-0x2b3+0x380,_0x2643d9=_0x351c51['\x6c\x65\x6e\x67\x74\x68'];_0xda97de<_0x2643d9;_0xda97de++){_0x4fd95b+='\x25'+('\x30\x30'+_0x351c51['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xda97de)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x204*0x2+-0x61+0x479))['\x73\x6c\x69\x63\x65'](-(-0x2036+0x1*-0x46+-0x207e*-0x1));}return decodeURIComponent(_0x4fd95b);};const _0x3b4784=function(_0x2cea82,_0x7f9d3a){let _0x5d09cd=[],_0x3d43d1=-0x531*0x3+-0x14d+0x870*0x2,_0x36d493,_0x352abc='';_0x2cea82=_0x144ead(_0x2cea82);let _0xf1f070;for(_0xf1f070=-0x800+0x6f1+-0x10f*-0x1;_0xf1f070<-0x1ea3+-0x154f*0x1+0x2f1*0x12;_0xf1f070++){_0x5d09cd[_0xf1f070]=_0xf1f070;}for(_0xf1f070=0x1*0x869+-0x7e1*0x1+-0x88;_0xf1f070<-0xa0c+-0x26cb+0x31d7;_0xf1f070++){_0x3d43d1=(_0x3d43d1+_0x5d09cd[_0xf1f070]+_0x7f9d3a['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xf1f070%_0x7f9d3a['\x6c\x65\x6e\x67\x74\x68']))%(-0x2e*-0xbf+-0x2fb*-0x1+0x244d*-0x1),_0x36d493=_0x5d09cd[_0xf1f070],_0x5d09cd[_0xf1f070]=_0x5d09cd[_0x3d43d1],_0x5d09cd[_0x3d43d1]=_0x36d493;}_0xf1f070=0x259a+-0x1*-0x1aa5+-0x403f*0x1,_0x3d43d1=0xe*0xc4+-0x1806+-0x83*-0x1a;for(let _0xeabddd=-0x7b5+0x21f4+-0x1a3f*0x1;_0xeabddd<_0x2cea82['\x6c\x65\x6e\x67\x74\x68'];_0xeabddd++){_0xf1f070=(_0xf1f070+(0x571+-0x1cdc*0x1+0x5db*0x4))%(-0x1c1+-0x1ebb+0x217c),_0x3d43d1=(_0x3d43d1+_0x5d09cd[_0xf1f070])%(-0x8b5*-0x1+-0x1803+0x104e),_0x36d493=_0x5d09cd[_0xf1f070],_0x5d09cd[_0xf1f070]=_0x5d09cd[_0x3d43d1],_0x5d09cd[_0x3d43d1]=_0x36d493,_0x352abc+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x2cea82['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xeabddd)^_0x5d09cd[(_0x5d09cd[_0xf1f070]+_0x5d09cd[_0x3d43d1])%(-0x56*0xa+0x102e*0x1+0x22*-0x59)]);}return _0x352abc;};_0xec26['\x73\x72\x7a\x74\x43\x52']=_0x3b4784,_0xec26['\x50\x64\x42\x78\x4c\x4c']={},_0xec26['\x6e\x68\x6d\x54\x44\x6c']=!![];}const _0x41845c=_0x5670cf[0x54e*-0x7+0xb*0x140+-0x29*-0x92],_0x45979a=_0x56ff9d+_0x41845c,_0x40a20a=_0xec26['\x50\x64\x42\x78\x4c\x4c'][_0x45979a];return!_0x40a20a?(_0xec26['\x51\x7a\x4d\x66\x6b\x73']===undefined&&(_0xec26['\x51\x7a\x4d\x66\x6b\x73']=!![]),_0x2c145b=_0xec26['\x73\x72\x7a\x74\x43\x52'](_0x2c145b,_0x22dd23),_0xec26['\x50\x64\x42\x78\x4c\x4c'][_0x45979a]=_0x2c145b):_0x2c145b=_0x40a20a,_0x2c145b;}export function stableUserIdHash(_0x2a9652){const _0x17b16e=_0xd8327c,_0x1488f1=stableIdentityHashSource(_0x2a9652);return createHash('\x73\x68\x61\x32\x35\x36')[_0x17b16e(0x1b0,'\x73\x34\x30\x41')](_0x17b16e(0x155,'\x24\x6a\x50\x73')+_0x17b16e(0x1e9,'\x39\x30\x55\x38')+'\x65\x6e\x74\x69\x74\x79\x2d\x76'+'\x31\x3a'+_0x1488f1,_0x17b16e(0x19b,'\x47\x31\x6f\x53'))['\x64\x69\x67\x65\x73\x74'](_0x17b16e(0x133,'\x5e\x37\x37\x63'))[_0x17b16e(0x166,'\x51\x61\x33\x44')](0x2cd+-0x1ce9+-0x3*-0x8b4,0x1ca*-0xe+-0x486+0x1da2);}const USER_ID_KEY_RE=/(?:^|[_-])user[_-]?id(?:$|[_-])/i;function shouldPreserveStructuredIdentifierNumbers(_0x241adb){const _0x33e122=_0xd8327c;if(_0x241adb===undefined)return![];return STRUCTURED_IDENTIFIER_KEY_RE[_0x33e122(0x158,'\x74\x2a\x33\x36')](keyParts(_0x241adb));}function redactStructured(_0x4c9b11,_0x368ccc=-0x3*-0x107+-0x453*-0x1+0x2*-0x3b4,_0x49c1b4){const _0x40b838=_0xd8327c;if(_0x4c9b11===undefined||_0x4c9b11===null)return _0x4c9b11;if(typeof _0x4c9b11===_0x40b838(0x1ac,'\x4f\x4b\x69\x66'))return applyRedactors(_0x4c9b11,{'\x70\x72\x65\x73\x65\x72\x76\x65\x53\x74\x72\x75\x63\x74\x75\x72\x65\x64\x49\x64\x65\x6e\x74\x69\x66\x69\x65\x72\x4e\x75\x6d\x62\x65\x72\x73':shouldPreserveStructuredIdentifierNumbers(_0x49c1b4)});if(typeof _0x4c9b11===_0x40b838(0x18c,'\x66\x42\x6a\x46')||typeof _0x4c9b11===_0x40b838(0x16b,'\x47\x31\x6f\x53'))return _0x4c9b11;if(_0x368ccc>MAX_REDACTION_DEPTH)return _0x40b838(0x1ce,'\x26\x68\x4a\x55')+_0x40b838(0x142,'\x70\x72\x4f\x4a')+_0x40b838(0x18a,'\x51\x59\x6d\x24');if(Array[_0x40b838(0x192,'\x36\x28\x54\x79')](_0x4c9b11))return _0x4c9b11['\x6d\x61\x70'](_0x4afac8=>redactStructured(_0x4afac8,_0x368ccc+(0x1757+0x1f1+-0x9*0x2cf),_0x49c1b4));if(typeof _0x4c9b11!==_0x40b838(0x1e2,'\x37\x30\x4f\x6b'))return _0x4c9b11;const _0x19ab3b={};for(const [_0x48b671,_0x188278]of Object[_0x40b838(0x15b,'\x37\x30\x4f\x6b')](_0x4c9b11)){_0x19ab3b[_0x48b671]=SENSITIVE_KEY_RE[_0x40b838(0x1e7,'\x52\x29\x39\x58')](_0x48b671)?redactSensitiveKeyValue(_0x48b671,_0x188278):isStableIdentityKey(_0x48b671)?redactStableIdentityValue(_0x188278):redactStructured(_0x188278,_0x368ccc+(0x9f5*-0x1+0x742+0x2b4),_0x48b671);if(USER_ID_KEY_RE[_0x40b838(0x13c,'\x37\x30\x4f\x6b')](_0x48b671)&&(typeof _0x188278===_0x40b838(0x180,'\x37\x30\x4f\x6b')||typeof _0x188278===_0x40b838(0x13a,'\x70\x6f\x69\x42'))&&_0x19ab3b[_0x40b838(0x1cd,'\x78\x21\x41\x5e')+_0x40b838(0x18e,'\x66\x5d\x47\x4e')]===undefined){if(_0x40b838(0x189,'\x53\x50\x7a\x42')===_0x40b838(0x181,'\x77\x32\x61\x6d')){for(const _0x294639 of _0x3b23e0){const _0x4321a2=_0x54cd04(_0xd2f9bf[_0x294639]);if(_0x1b3c83[_0x40b838(0x16c,'\x46\x28\x31\x66')+_0x40b838(0x1d6,'\x4d\x65\x2a\x69')](_0x4321a2)&&_0x4321a2>0x1139+0xb9*-0x2d+0x164*0xb)return _0x4321a2;}return _0x338283;}else _0x19ab3b[_0x40b838(0x1e5,'\x56\x71\x71\x7a')+_0x40b838(0x190,'\x24\x33\x29\x73')]=stableUserIdHash(_0x188278);}}return _0x19ab3b;}function incompleteCaptureEnvelope(_0x186459,_0x2ccc0f,_0x29cd33){const _0x14e351=_0xd8327c;return JSON[_0x14e351(0x186,'\x63\x4c\x24\x5e')+'\x79']({'\x74\x72\x75\x6e\x63\x61\x74\x65\x64':!![],'\x63\x61\x70\x74\x75\x72\x65\x5f\x63\x6f\x6d\x70\x6c\x65\x74\x65':![],'\x62\x6f\x64\x79\x5f\x6f\x6d\x69\x74\x74\x65\x64':!![],'\x72\x65\x61\x73\x6f\x6e':_0x14e351(0x1ca,'\x48\x64\x61\x45')+_0x14e351(0x1ea,'\x29\x38\x57\x31')+'\x63\x65\x5f\x62\x6f\x64\x79\x5f'+'\x6d\x61\x78\x5f\x62\x79\x74\x65'+'\x73','\x72\x65\x64\x61\x63\x74\x65\x64\x5f\x62\x79\x74\x65\x73':_0x2ccc0f,'\x6d\x61\x78\x5f\x62\x79\x74\x65\x73':_0x29cd33,'\x6f\x6d\x69\x74\x74\x65\x64\x5f\x62\x79\x74\x65\x73':_0x2ccc0f,'\x65\x78\x63\x65\x73\x73\x5f\x62\x79\x74\x65\x73':Math[_0x14e351(0x161,'\x28\x63\x37\x77')](-0xb*-0x1a3+0x54b*-0x3+-0x220,_0x2ccc0f-_0x29cd33),'\x72\x65\x64\x61\x63\x74\x65\x64\x5f\x63\x68\x61\x72\x73':_0x186459,'\x6d\x61\x78\x5f\x63\x68\x61\x72\x73':_0x29cd33,'\x6f\x6d\x69\x74\x74\x65\x64\x5f\x63\x68\x61\x72\x73':_0x186459,'\x65\x78\x63\x65\x73\x73\x5f\x63\x68\x61\x72\x73':Math[_0x14e351(0x1c0,'\x6b\x49\x71\x75')](0x1d0f*0x1+-0x6e1*-0x1+-0x23f0,_0x186459-_0x29cd33),'\x72\x65\x64\x61\x63\x74\x69\x6f\x6e':REDACTION_VERSION});}function tryParseJson(_0x4251fc){const _0x4513d7=_0xd8327c;try{return JSON[_0x4513d7(0x191,'\x25\x76\x49\x64')](_0x4251fc);}catch{if(_0x4513d7(0x1ab,'\x76\x67\x39\x79')===_0x4513d7(0x1dc,'\x56\x71\x71\x7a'))return undefined;else{if(typeof _0x2a32f2===_0x4513d7(0x1cb,'\x23\x67\x28\x46')){const _0x5e6192=_0x1b8922(_0x1961d7);_0xb45e55=_0x5e6192===_0x362dd5?_0xbb76f9(_0x411d16):_0x4f3ca4[_0x4513d7(0x1c1,'\x62\x41\x63\x53')+'\x79'](_0x32838f(_0x5e6192));}else _0x207969=_0x33b091[_0x4513d7(0x19a,'\x24\x33\x29\x73')+'\x79'](_0x79544b(_0x1d7044));}}}export function captureBody(_0x11837c,_0x2800db=process.env){const _0xcc1a45=_0xd8327c;if(_0x11837c===undefined||_0x11837c===null)return undefined;let _0x19926d;try{if(typeof _0x11837c===_0xcc1a45(0x17c,'\x21\x53\x33\x41')){const _0x33a30e=tryParseJson(_0x11837c);_0x19926d=_0x33a30e===undefined?redactText(_0x11837c):JSON[_0xcc1a45(0x1d3,'\x23\x67\x28\x46')+'\x79'](redactStructured(_0x33a30e));}else _0x19926d=JSON[_0xcc1a45(0x1a7,'\x48\x64\x61\x45')+'\x79'](redactStructured(_0x11837c));}catch{return{'\x62\x6f\x64\x79':_0xcc1a45(0x18b,'\x52\x29\x39\x58')+_0xcc1a45(0x1a5,'\x7a\x63\x41\x4c')+'\x5f\x62\x6f\x64\x79\x5d\x22','\x74\x72\x75\x6e\x63\x61\x74\x65\x64':![],'\x72\x65\x64\x61\x63\x74\x69\x6f\x6e':REDACTION_VERSION};}if(!_0x19926d)return undefined;const _0x2829bf=_0x19926d,_0xff7842=bodyMaxChars(_0x2800db),_0x1e694b=Buffer[_0xcc1a45(0x1df,'\x7a\x63\x41\x4c')+'\x74\x68'](_0x2829bf,_0xcc1a45(0x1bf,'\x36\x28\x54\x79')),_0x12e72d=_0x1e694b>_0xff7842;return{'\x62\x6f\x64\x79':_0x12e72d?incompleteCaptureEnvelope(_0x2829bf[_0xcc1a45(0x15a,'\x57\x5d\x23\x54')],_0x1e694b,_0xff7842):_0x2829bf,'\x74\x72\x75\x6e\x63\x61\x74\x65\x64':_0x12e72d,'\x72\x65\x64\x61\x63\x74\x69\x6f\x6e':REDACTION_VERSION};}
1
+ // Native request/response BODY capture for LLM traces.
2
+ //
3
+ // V1-COMPATIBLE DEFAULT: body capture is enabled unless explicitly downgraded with EVOMAP_PROXY_TRACE=metadata/off
4
+ // or EVOLVER_LLM_TRACE_CAPTURE_BODIES=0. Captured bodies still go through redaction + size caps, and trace storage
5
+ // must fail closed into an encrypted envelope unless the operator explicitly disables trace encryption.
6
+ //
7
+ // COMPLIANCE GATE: enabling this on real user traffic is a product/compliance decision (user consent, disclosure,
8
+ // retention policy). Operators that need metadata-only traces must explicitly configure that downgrade so it is a
9
+ // deliberate deployment choice rather than an accidental default.
10
+ //
11
+ import { createHash } from 'node:crypto';
12
+ // Redaction here is best-effort structural scrubbing (emails, phones, card numbers, bearer/api keys, JWTs) plus a
13
+ // hard Hub/envelope-sized cap. It is NOT a substitute for a real downstream redaction/PII policy; it exists so
14
+ // that captured bodies are never stored fully raw, and so the `redaction` marker on a row reflects an actual pass.
15
+ // When a body exceeds the cap, do not keep a preview: downstream must treat the turn as incomplete, not as a
16
+ // smaller-but-usable body.
17
+ /** Bump when the redaction ruleset changes so downstream can tell which scrub a row went through. */
18
+ export const REDACTION_VERSION = 'evolver-redact-v2';
19
+ function truthy(value) {
20
+ const raw = String(value ?? '').trim().toLowerCase();
21
+ return raw === '1' || raw === 'true' || raw === 'on' || raw === 'yes';
22
+ }
23
+ function firstConfiguredEnv(env, names) {
24
+ for (const name of names) {
25
+ const value = env[name];
26
+ if (value !== undefined && value.trim() !== '')
27
+ return value;
28
+ }
29
+ return undefined;
30
+ }
31
+ export function legacyProxyTraceFullEnabled(env = process.env) {
32
+ const raw = env['EVOMAP_PROXY_TRACE'];
33
+ if (raw === undefined || raw.trim() === '')
34
+ return true;
35
+ return raw.trim().toLowerCase() === 'full';
36
+ }
37
+ /**
38
+ * Native body capture switch. Defaults to the v1-compatible full trace mode, but explicit v2 capture flags win so
39
+ * operators can disable body capture without also setting the legacy EVOMAP_PROXY_TRACE knob.
40
+ */
41
+ export function captureBodiesEnabled(env = process.env) {
42
+ const explicitCapture = firstConfiguredEnv(env, [
43
+ 'EVOLVER_LLM_TRACE_CAPTURE_BODIES',
44
+ 'EVOMAP_PROXY_TRACE_CAPTURE_BODIES',
45
+ ]);
46
+ if (explicitCapture !== undefined)
47
+ return truthy(explicitCapture);
48
+ return legacyProxyTraceFullEnabled(env);
49
+ }
50
+ /** Default per-body cap (bytes), aligned with the public Hub mailbox outbound envelope limit. A single trace may
51
+ * still exceed the final encrypted outbound envelope when it carries multiple large bodies; in that case the row
52
+ * is explicitly marked incomplete rather than silently downgraded to a preview. */
53
+ export const DEFAULT_TRACE_ENVELOPE_MAX_CHARS = 4 * 1024 * 1024;
54
+ const AUTHORIZATION_KEY_RE = /^(?:proxy[-_]?)?authorization$/i;
55
+ const AUTHORIZATION_VALUE_RE = /^(\s*[A-Za-z][A-Za-z0-9!#$%&'*+.^_`|~-]*\s+)[\s\S]+$/;
56
+ function redactAuthorizationValue(value) {
57
+ const match = AUTHORIZATION_VALUE_RE.exec(value);
58
+ if (match?.[1])
59
+ return `${match[1]}[REDACTED_TOKEN]`;
60
+ return value.trim() ? '[REDACTED_TOKEN]' : value;
61
+ }
62
+ export function bodyMaxChars(env = process.env) {
63
+ return positiveIntegerFromEnv(env, ['EVOLVER_LLM_TRACE_BODY_MAX_CHARS', 'EVOMAP_PROXY_TRACE_MAX_FIELD_BYTES'], traceEnvelopeMaxChars(env));
64
+ }
65
+ export function traceEnvelopeMaxChars(env = process.env) {
66
+ return positiveIntegerFromEnv(env, ['EVOLVER_LLM_TRACE_ENVELOPE_MAX_CHARS', 'EVOMAP_PROXY_TRACE_ENVELOPE_MAX_BYTES'], DEFAULT_TRACE_ENVELOPE_MAX_CHARS);
67
+ }
68
+ export function positiveIntegerFromEnv(env, names, fallback) {
69
+ for (const name of names) {
70
+ const raw = Number(env[name]);
71
+ if (Number.isSafeInteger(raw) && raw > 0)
72
+ return raw;
73
+ }
74
+ return fallback;
75
+ }
76
+ const REDACTORS = [
77
+ // Env/config dump lines such as FOO_API_KEY=... or "fooToken": "...". Keep the key name; replace only value.
78
+ { re: /(\b[A-Za-z_][A-Za-z0-9_]*(?:API[_-]?KEY|TOKEN|SECRET|PASSWORD|CREDENTIAL|AUTH|PRIVATE[_-]?KEY)\b\s*[:=]\s*)(["']?)([^"'\s,}\]]{6,})\2/gi, with: '$1[REDACTED_SECRET]' },
79
+ // Plain upstream error pages often echo HTTP headers outside JSON.
80
+ {
81
+ re: /(\b(?:proxy-)?authorization\s*:\s*)([^\r\n]+)/gi,
82
+ with: (_match, prefix, value) => `${String(prefix)}${redactAuthorizationValue(String(value ?? ''))}`,
83
+ },
84
+ // JSON/text fragments such as {"Authorization":"Bearer ..."} or escaped {\"Proxy-Authorization\":\"Basic ...\"}.
85
+ {
86
+ re: /((?:\\?["'])\s*(?:proxy-)?authorization\s*(?:\\?["'])\s*:\s*(?:\\?["']))((?:(?!\\?["'])[\s\S])*?)((?:\\?["']))/gi,
87
+ with: (_match, prefix, value, suffix) => `${String(prefix)}${redactAuthorizationValue(String(value ?? ''))}${String(suffix)}`,
88
+ },
89
+ { re: /(\bcookie\s*:\s*)[^\r\n]+/gi, with: '$1[REDACTED_COOKIE]' },
90
+ // PEM private keys.
91
+ { re: /-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z ]*PRIVATE KEY-----/g, with: '[REDACTED_PRIVATE_KEY]' },
92
+ // Bearer tokens / Authorization header values.
93
+ { re: /\b[Bb]earer\s+[A-Za-z0-9._~+/-]{12,}=*/g, with: 'Bearer [REDACTED_TOKEN]' },
94
+ // Provider API keys (OpenAI sk-..., Anthropic sk-ant-..., generic long secret-ish keys).
95
+ { re: /\bsk-(?:ant-)?[A-Za-z0-9._-]{16,}/g, with: '[REDACTED_API_KEY]' },
96
+ // GitHub personal access tokens.
97
+ { re: /\bghp_[A-Za-z0-9_]{20,}\b/g, with: '[REDACTED_GITHUB_TOKEN]' },
98
+ { re: /\bgithub_pat_[A-Za-z0-9_]{20,}\b/g, with: '[REDACTED_GITHUB_TOKEN]' },
99
+ // Slack bot/user/app tokens.
100
+ { re: /\bxox[abcprs]-[A-Za-z0-9-]{10,}\b/g, with: '[REDACTED_SLACK_TOKEN]' },
101
+ // Common key/value credentials in text, JSON, YAML, query strings, and form bodies.
102
+ {
103
+ re: /((?:"|')?\b(?:api[_-]?key|password|client[_-]?secret|access[_-]?token|refresh[_-]?token|id[_-]?token|token)\b(?:"|')?\s*[:=]\s*)("[^"\r\n]*"|'[^'\r\n]*')/gi,
104
+ with: '$1"[REDACTED_CREDENTIAL]"',
105
+ },
106
+ {
107
+ re: /((?:"|')?\b(?:api[_-]?key|password|client[_-]?secret|access[_-]?token|refresh[_-]?token|id[_-]?token|token)\b(?:"|')?\s*[:=]\s*)(?!["'])[^\r\n,&}]+/gi,
108
+ with: '$1[REDACTED_CREDENTIAL]',
109
+ },
110
+ // AWS access key ids.
111
+ { re: /\bAKIA[0-9A-Z]{16}\b/g, with: '[REDACTED_AWS_KEY]' },
112
+ // JWTs (three base64url segments).
113
+ { re: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}/g, with: '[REDACTED_JWT]' },
114
+ // Email addresses.
115
+ { re: /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g, with: '[REDACTED_EMAIL]' },
116
+ // Credit-card-like 13-19 digit runs (allowing spaces/dashes).
117
+ { re: /\b(?:\d[ -]?){13,19}\b/g, with: '[REDACTED_CARD]', structuredIdentifierSafe: false },
118
+ // Long digit runs that look like phone numbers / national ids (11+ digits, optional +).
119
+ { re: /\+?\d[\d\s-]{9,}\d/g, with: '[REDACTED_NUMBER]', structuredIdentifierSafe: false },
120
+ ];
121
+ function applyRedactors(input, options = {}) {
122
+ let out = input;
123
+ for (const r of REDACTORS) {
124
+ if (options.preserveStructuredIdentifierNumbers === true && r.structuredIdentifierSafe === false)
125
+ continue;
126
+ const replacement = r.with;
127
+ out = typeof replacement === 'string'
128
+ ? out.replace(r.re, replacement)
129
+ : out.replace(r.re, (...args) => replacement(args[0], ...args.slice(1)));
130
+ }
131
+ return out;
132
+ }
133
+ /** Apply the redaction ruleset to a string. Pure; safe on arbitrary text. */
134
+ export function redactText(input) {
135
+ return applyRedactors(input);
136
+ }
137
+ const SENSITIVE_KEY_RE = /(?:^|[_-])(?:api[_-]?key|token|secret|password|credential|authorization|auth|bearer|access[_-]?key|private[_-]?key|client[_-]?secret|refresh[_-]?token|id[_-]?token|session[_-]?token|cookie|dsn)(?:$|[_-])|(?:api[_-]?key|token|secret|password|credential|authorization|auth|private[_-]?key)$/i;
138
+ const STRUCTURED_IDENTIFIER_KEY_RE = /(?:^|[_-])(?:id|ids|fingerprint|hash|timestamp|time)(?:$|[_-])|(?:^|[_-])(?:created|updated|occurred|started|ended)[_-]at(?:$|[_-])/i;
139
+ const STABLE_IDENTITY_KEY_RE = /(?:^|[_-])(?:user|session|device)[_-]?id(?:$|[_-])/i;
140
+ const MAX_REDACTION_DEPTH = 30;
141
+ function keyParts(key) {
142
+ return key
143
+ .replace(/([a-z0-9])([A-Z])/g, '$1_$2')
144
+ .replace(/[^A-Za-z0-9]+/g, '_')
145
+ .toLowerCase();
146
+ }
147
+ function redactValueForKey(value) {
148
+ if (value === undefined || value === null)
149
+ return value;
150
+ if (Array.isArray(value))
151
+ return value.map(() => '[REDACTED_SECRET]');
152
+ if (typeof value === 'object')
153
+ return '[REDACTED_SECRET]';
154
+ return '[REDACTED_SECRET]';
155
+ }
156
+ function redactSensitiveKeyValue(key, value) {
157
+ if (AUTHORIZATION_KEY_RE.test(key) && typeof value === 'string') {
158
+ return redactAuthorizationValue(value);
159
+ }
160
+ return redactValueForKey(value);
161
+ }
162
+ function isStableIdentityKey(key) {
163
+ return STABLE_IDENTITY_KEY_RE.test(keyParts(key));
164
+ }
165
+ // Claude Code's metadata.user_id has the shape
166
+ // `user_<accountHash>_account__session_<sessionUuid>`. The session uuid changes
167
+ // every session, so hashing the whole value yields a different id per session,
168
+ // which breaks downstream cross-session de-duplication / anti-sybil. We strip
169
+ // the `__session_<uuid>` suffix and hash only the stable account portion so the
170
+ // same real account maps to the same redacted id across sessions. Non-Claude
171
+ // values (no `__session_` marker) fall back to hashing the whole value.
172
+ function stableIdentityHashSource(value) {
173
+ let serialized;
174
+ try {
175
+ serialized = typeof value === 'string' ? value : JSON.stringify(value);
176
+ }
177
+ catch {
178
+ serialized = String(value);
179
+ }
180
+ const sessionMarker = serialized.indexOf('__session_');
181
+ if (sessionMarker > 0)
182
+ return serialized.slice(0, sessionMarker);
183
+ return serialized;
184
+ }
185
+ function stableIdentityPlaceholder(value) {
186
+ const source = stableIdentityHashSource(value);
187
+ const hash = createHash('sha256').update(`evomap-stable-identity-v1:${source}`, 'utf8').digest('hex').slice(0, 16);
188
+ return `[REDACTED_ID_SHA256:${hash}]`;
189
+ }
190
+ function redactStableIdentityValue(value) {
191
+ if (value === undefined || value === null)
192
+ return value;
193
+ return stableIdentityPlaceholder(value);
194
+ }
195
+ // Deterministic, cross-session-stable account hash. Reuses stableIdentityHashSource
196
+ // so it matches the in-place redacted user_id token, and lets us emit an explicit
197
+ // user_id_hash sibling for downstream de-dup/anti-sybil.
198
+ export function stableUserIdHash(value) {
199
+ const source = stableIdentityHashSource(value);
200
+ return createHash('sha256').update(`evomap-stable-identity-v1:${source}`, 'utf8').digest('hex').slice(0, 16);
201
+ }
202
+ const USER_ID_KEY_RE = /(?:^|[_-])user[_-]?id(?:$|[_-])/i;
203
+ function shouldPreserveStructuredIdentifierNumbers(key) {
204
+ if (key === undefined)
205
+ return false;
206
+ return STRUCTURED_IDENTIFIER_KEY_RE.test(keyParts(key));
207
+ }
208
+ function redactStructured(value, depth = 0, keyContext) {
209
+ if (value === undefined || value === null)
210
+ return value;
211
+ if (typeof value === 'string') {
212
+ return applyRedactors(value, {
213
+ preserveStructuredIdentifierNumbers: shouldPreserveStructuredIdentifierNumbers(keyContext),
214
+ });
215
+ }
216
+ if (typeof value === 'number' || typeof value === 'boolean')
217
+ return value;
218
+ if (depth > MAX_REDACTION_DEPTH)
219
+ return '[MAX_REDACTION_DEPTH]';
220
+ if (Array.isArray(value))
221
+ return value.map((item) => redactStructured(item, depth + 1, keyContext));
222
+ if (typeof value !== 'object')
223
+ return value;
224
+ const out = {};
225
+ for (const [key, child] of Object.entries(value)) {
226
+ out[key] = SENSITIVE_KEY_RE.test(key)
227
+ ? redactSensitiveKeyValue(key, child)
228
+ : (isStableIdentityKey(key) ? redactStableIdentityValue(child) : redactStructured(child, depth + 1, key));
229
+ // Emit a stable, cross-session user_id_hash alongside the redacted user_id so
230
+ // downstream de-dup/anti-sybil has a deterministic per-account key.
231
+ if (USER_ID_KEY_RE.test(key) && (typeof child === 'string' || typeof child === 'number') && out['user_id_hash'] === undefined) {
232
+ out['user_id_hash'] = stableUserIdHash(child);
233
+ }
234
+ }
235
+ return out;
236
+ }
237
+ function incompleteCaptureEnvelope(redactedChars, redactedBytes, maxBytes) {
238
+ return JSON.stringify({
239
+ truncated: true,
240
+ capture_complete: false,
241
+ body_omitted: true,
242
+ reason: 'body_exceeds_trace_body_max_bytes',
243
+ redacted_bytes: redactedBytes,
244
+ max_bytes: maxBytes,
245
+ omitted_bytes: redactedBytes,
246
+ excess_bytes: Math.max(0, redactedBytes - maxBytes),
247
+ redacted_chars: redactedChars,
248
+ max_chars: maxBytes,
249
+ omitted_chars: redactedChars,
250
+ excess_chars: Math.max(0, redactedChars - maxBytes),
251
+ redaction: REDACTION_VERSION,
252
+ });
253
+ }
254
+ function tryParseJson(value) {
255
+ try {
256
+ return JSON.parse(value);
257
+ }
258
+ catch {
259
+ return undefined;
260
+ }
261
+ }
262
+ /**
263
+ * Serialize a native request/response payload, run it through redaction, and cap its size. Never throws — capture
264
+ * must never break serving — returning a small error envelope instead. Returns undefined for empty/absent input.
265
+ */
266
+ export function captureBody(value, env = process.env) {
267
+ if (value === undefined || value === null)
268
+ return undefined;
269
+ let serialized;
270
+ try {
271
+ if (typeof value === 'string') {
272
+ const parsed = tryParseJson(value);
273
+ serialized = parsed === undefined ? redactText(value) : JSON.stringify(redactStructured(parsed));
274
+ }
275
+ else {
276
+ serialized = JSON.stringify(redactStructured(value));
277
+ }
278
+ }
279
+ catch {
280
+ return { body: '"[unserializable_body]"', truncated: false, redaction: REDACTION_VERSION };
281
+ }
282
+ if (!serialized)
283
+ return undefined;
284
+ const redacted = serialized;
285
+ const maxBytes = bodyMaxChars(env);
286
+ const redactedBytes = Buffer.byteLength(redacted, 'utf8');
287
+ const truncated = redactedBytes > maxBytes;
288
+ return {
289
+ body: truncated ? incompleteCaptureEnvelope(redacted.length, redactedBytes, maxBytes) : redacted,
290
+ truncated,
291
+ redaction: REDACTION_VERSION,
292
+ };
293
+ }
package/dist/llm/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4108d4,_0x1df68c){var _0x5afab7=_0x2320,_0x1eec6b=_0x4108d4();while(!![]){try{var _0xd1eeaa=-parseInt(_0x5afab7(0x115,'\x31\x41\x4d\x61'))/(0x45*-0x43+-0x1*-0x1e9d+-0xc8d)+parseInt(_0x5afab7(0x114,'\x6a\x44\x74\x50'))/(0x1028+-0x108e+-0xd*-0x8)*(-parseInt(_0x5afab7(0x10d,'\x4d\x64\x57\x75'))/(-0x1*0x2c3+0x3f3*0x1+-0x12d))+-parseInt(_0x5afab7(0x106,'\x37\x5a\x66\x6b'))/(-0xfab+0x4bc+0xaf3)+-parseInt(_0x5afab7(0x10e,'\x4c\x58\x6f\x26'))/(0x5da+0x5*0x503+-0x1ee4)+parseInt(_0x5afab7(0x10b,'\x42\x29\x5b\x49'))/(0xe1*0x3+0x108e+-0x2bd*0x7)*(-parseInt(_0x5afab7(0x10c,'\x31\x41\x4d\x61'))/(-0x1414+-0x1fab+-0x6*-0x8a1))+-parseInt(_0x5afab7(0x118,'\x56\x72\x46\x45'))/(0x1e01+0x860*-0x2+-0xd39)*(-parseInt(_0x5afab7(0x108,'\x4c\x58\x6f\x26'))/(0x69f+0x62*-0xb+-0x260))+parseInt(_0x5afab7(0x113,'\x24\x4f\x74\x70'))/(0x43*-0x1d+-0x1*-0xa8d+-0x2ec)*(parseInt(_0x5afab7(0x117,'\x63\x5d\x5d\x74'))/(-0x1*0xa4c+-0x115c+0x1bb3*0x1));if(_0xd1eeaa===_0x1df68c)break;else _0x1eec6b['push'](_0x1eec6b['shift']());}catch(_0x41e87b){_0x1eec6b['push'](_0x1eec6b['shift']());}}}(_0x5873,-0x7332c+-0x52a1*-0x3+0xaa2bb));export*from'\x2e\x2f\x75\x70\x73\x74\x72\x65\x61\x6d\x2e\x6a\x73';export*from'\x2e\x2f\x74\x72\x61\x63\x65\x53\x69\x6e\x6b\x2e\x6a\x73';function _0x2320(_0x4108d4,_0x1df68c){_0x4108d4=_0x4108d4-(-0x6*-0x12f+0x1bb2+-0x21c6);var _0x1eec6b=_0x5873();var _0xd1eeaa=_0x1eec6b[_0x4108d4];if(_0x2320['\x68\x61\x41\x77\x64\x47']===undefined){var _0x41e87b=function(_0x588e27){var _0x163621='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';var _0x2d2a39='',_0x1ae626='';for(var _0x2e8b31=-0x2620+0x26b9+-0x99,_0x1baa39,_0x437b91,_0x1b2ee3=-0x201a+-0x2694+0x46ae;_0x437b91=_0x588e27['\x63\x68\x61\x72\x41\x74'](_0x1b2ee3++);~_0x437b91&&(_0x1baa39=_0x2e8b31%(0x1*0xab8+-0xe2f+0x37b)?_0x1baa39*(-0x4*-0x6f2+0x53d*0x3+-0x2b3f)+_0x437b91:_0x437b91,_0x2e8b31++%(-0xaa2+-0x1b*0xbb+-0x1*-0x1e5f))?_0x2d2a39+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xadb+0x37f*-0x7+0xe9d&_0x1baa39>>(-(-0xc55+0x363*-0xa+0x1*0x2e35)*_0x2e8b31&-0x13d0+0x26c8+-0x12f2)):0x1317+0x1d8c*0x1+-0x30a3){_0x437b91=_0x163621['\x69\x6e\x64\x65\x78\x4f\x66'](_0x437b91);}for(var _0x299c59=-0x17e7+0xea2+-0x945*-0x1,_0x208379=_0x2d2a39['\x6c\x65\x6e\x67\x74\x68'];_0x299c59<_0x208379;_0x299c59++){_0x1ae626+='\x25'+('\x30\x30'+_0x2d2a39['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x299c59)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x148d+-0x1a16+-0x1*-0x599))['\x73\x6c\x69\x63\x65'](-(0x2*-0x8c5+0x23e1+-0x169*0xd));}return decodeURIComponent(_0x1ae626);};var _0xceeb27=function(_0x5940e9,_0x5b5346){var _0x2b1c22=[],_0x3c7d7c=-0x1c61*-0x1+-0x1*0x1cae+0x4d*0x1,_0x594ac7,_0x2c1ab1='';_0x5940e9=_0x41e87b(_0x5940e9);var _0x242783;for(_0x242783=0x15b+0x4*0x7cd+-0x208f;_0x242783<0x3a9*0x7+0x17*-0xc9+-0x690;_0x242783++){_0x2b1c22[_0x242783]=_0x242783;}for(_0x242783=-0x1d81+0x1028+0xd59;_0x242783<0x256f+0x2*-0xb34+-0xe07;_0x242783++){_0x3c7d7c=(_0x3c7d7c+_0x2b1c22[_0x242783]+_0x5b5346['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x242783%_0x5b5346['\x6c\x65\x6e\x67\x74\x68']))%(0x52b+0x1f8a+-0x21*0x115),_0x594ac7=_0x2b1c22[_0x242783],_0x2b1c22[_0x242783]=_0x2b1c22[_0x3c7d7c],_0x2b1c22[_0x3c7d7c]=_0x594ac7;}_0x242783=0x9f*-0x12+-0x87d+0x13*0x109,_0x3c7d7c=0x3*-0x103+-0x4b*-0x9+-0x11*-0x6;for(var _0x3be846=-0x1414+-0x1fab+-0xd*-0x3fb;_0x3be846<_0x5940e9['\x6c\x65\x6e\x67\x74\x68'];_0x3be846++){_0x242783=(_0x242783+(0x1e01+0x860*-0x2+-0xd40))%(0x69f+0x62*-0xb+-0x169),_0x3c7d7c=(_0x3c7d7c+_0x2b1c22[_0x242783])%(0x43*-0x1d+-0x1*-0xa8d+-0x1f6),_0x594ac7=_0x2b1c22[_0x242783],_0x2b1c22[_0x242783]=_0x2b1c22[_0x3c7d7c],_0x2b1c22[_0x3c7d7c]=_0x594ac7,_0x2c1ab1+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x5940e9['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x3be846)^_0x2b1c22[(_0x2b1c22[_0x242783]+_0x2b1c22[_0x3c7d7c])%(-0x1*0xa4c+-0x115c+0xe54*0x2)]);}return _0x2c1ab1;};_0x2320['\x4f\x79\x76\x57\x5a\x71']=_0xceeb27,_0x2320['\x73\x42\x6c\x52\x42\x4e']={},_0x2320['\x68\x61\x41\x77\x64\x47']=!![];}var _0x40c9f3=_0x1eec6b[-0x1fef+-0x44b*-0x1+0x1ba4],_0x5eaa68=_0x4108d4+_0x40c9f3,_0xb7234e=_0x2320['\x73\x42\x6c\x52\x42\x4e'][_0x5eaa68];return!_0xb7234e?(_0x2320['\x6b\x69\x63\x4d\x44\x4c']===undefined&&(_0x2320['\x6b\x69\x63\x4d\x44\x4c']=!![]),_0xd1eeaa=_0x2320['\x4f\x79\x76\x57\x5a\x71'](_0xd1eeaa,_0x1df68c),_0x2320['\x73\x42\x6c\x52\x42\x4e'][_0x5eaa68]=_0xd1eeaa):_0xd1eeaa=_0xb7234e,_0xd1eeaa;}export*from'\x2e\x2f\x73\x65\x72\x76\x65\x72\x2e\x6a\x73';function _0x5873(){var _0x29871a=['\x57\x35\x78\x63\x53\x63\x4a\x64\x4c\x38\x6f\x51\x57\x52\x68\x63\x54\x6d\x6f\x45\x57\x36\x43\x36\x6f\x33\x61\x4e','\x57\x50\x6c\x64\x52\x62\x70\x63\x4b\x38\x6b\x6c\x45\x38\x6b\x39\x57\x50\x57\x75\x57\x50\x6d\x59\x61\x61','\x62\x63\x53\x33\x57\x50\x70\x64\x51\x43\x6b\x51\x57\x37\x46\x63\x4e\x38\x6f\x77\x72\x43\x6b\x39\x57\x4f\x65','\x69\x48\x65\x64\x43\x72\x38\x33\x78\x43\x6f\x44\x57\x34\x76\x36\x57\x36\x4c\x39\x57\x50\x47','\x57\x35\x75\x53\x64\x38\x6f\x57\x57\x50\x64\x63\x4e\x6d\x6f\x5a\x57\x51\x74\x64\x48\x53\x6b\x36\x57\x4f\x66\x61','\x57\x52\x54\x38\x71\x38\x6f\x47\x68\x78\x68\x63\x55\x43\x6b\x37\x57\x50\x47','\x57\x52\x5a\x64\x4e\x53\x6b\x48\x75\x6d\x6b\x4f\x57\x51\x57\x2f\x6f\x6d\x6b\x4e\x6b\x71','\x57\x35\x61\x53\x63\x38\x6f\x59\x57\x50\x70\x63\x4c\x53\x6b\x53\x57\x51\x68\x64\x48\x38\x6b\x42\x57\x4f\x6a\x33\x73\x61','\x61\x49\x57\x5a\x57\x50\x4e\x64\x4f\x43\x6b\x4b\x57\x51\x78\x63\x53\x53\x6f\x41\x77\x38\x6b\x6f\x57\x52\x38\x39','\x6b\x43\x6b\x6c\x57\x50\x64\x64\x55\x38\x6b\x57\x7a\x53\x6f\x37\x57\x4f\x57','\x6c\x74\x50\x44\x57\x52\x31\x54\x57\x37\x68\x64\x48\x78\x34\x45\x44\x71','\x57\x52\x54\x36\x72\x53\x6b\x62\x75\x63\x5a\x64\x48\x53\x6b\x32\x57\x4f\x34\x4e\x57\x51\x61\x58\x6d\x71','\x57\x51\x34\x2b\x46\x61\x76\x66\x57\x37\x54\x41\x41\x53\x6b\x54\x61\x6d\x6b\x6b\x76\x6d\x6b\x64','\x57\x51\x4f\x57\x57\x51\x33\x63\x49\x53\x6b\x4d\x57\x4f\x6a\x41\x57\x34\x35\x32\x57\x34\x69\x56\x79\x43\x6f\x50','\x57\x34\x64\x64\x4a\x6d\x6f\x54\x57\x37\x46\x63\x49\x43\x6b\x33\x57\x37\x43','\x57\x52\x64\x64\x4e\x43\x6b\x4b\x76\x38\x6f\x44\x57\x37\x75\x44\x69\x53\x6b\x59\x6b\x31\x38\x37','\x57\x35\x42\x63\x53\x30\x4e\x63\x4d\x6d\x6b\x32\x57\x35\x64\x64\x4b\x6d\x6f\x6f','\x57\x51\x37\x63\x52\x61\x4e\x64\x4e\x30\x30\x76\x45\x53\x6b\x66','\x57\x4f\x2f\x63\x56\x61\x6e\x41\x57\x50\x57\x48\x69\x4a\x57','\x57\x52\x48\x39\x71\x43\x6b\x61\x77\x49\x70\x64\x47\x43\x6b\x79\x57\x52\x34\x53\x57\x50\x4b\x67\x63\x47'];_0x5873=function(){return _0x29871a;};return _0x5873();}
1
+ function _0x5081(){var _0x12f1cd=['\x57\x52\x6c\x64\x56\x57\x34\x6f\x75\x31\x50\x4a\x57\x4f\x47\x47','\x76\x38\x6f\x36\x57\x50\x5a\x63\x54\x6d\x6b\x53\x64\x59\x71\x33','\x75\x4d\x62\x6f\x69\x4e\x64\x64\x4c\x62\x2f\x63\x56\x68\x61','\x57\x50\x64\x64\x4e\x74\x37\x64\x4f\x53\x6f\x59\x57\x35\x79\x45\x75\x59\x39\x66\x79\x43\x6b\x57','\x72\x6d\x6b\x38\x6a\x53\x6f\x45\x57\x50\x57\x46\x57\x37\x70\x64\x4c\x33\x61','\x57\x52\x6c\x64\x56\x61\x47\x57\x75\x65\x76\x69\x57\x52\x53\x4a','\x57\x50\x61\x57\x57\x36\x46\x64\x56\x4d\x52\x63\x49\x53\x6b\x7a\x57\x50\x4b\x32\x57\x34\x6c\x64\x4b\x71','\x57\x34\x5a\x64\x49\x43\x6b\x4d\x46\x43\x6f\x67\x57\x35\x61\x73','\x57\x4f\x4e\x63\x4c\x4e\x33\x64\x4d\x38\x6b\x6d\x6f\x4d\x65','\x57\x37\x52\x64\x56\x53\x6f\x65\x57\x37\x30\x45\x57\x35\x4c\x5a\x42\x4b\x37\x64\x47\x73\x39\x57','\x6f\x49\x42\x63\x47\x4c\x57\x52\x57\x36\x74\x63\x4c\x4d\x66\x54\x44\x72\x4e\x64\x56\x57','\x57\x37\x37\x64\x54\x53\x6f\x6e\x57\x4f\x35\x7a\x57\x4f\x39\x57\x45\x4c\x61','\x6b\x64\x61\x55\x57\x4f\x68\x64\x50\x68\x38\x75\x61\x38\x6f\x35','\x43\x6d\x6b\x68\x57\x50\x54\x4a\x57\x51\x50\x77\x57\x34\x68\x64\x53\x74\x6d\x7a\x57\x35\x6c\x63\x52\x57','\x57\x50\x65\x37\x57\x36\x2f\x63\x48\x58\x64\x63\x4a\x6d\x6b\x63\x57\x50\x65\x68','\x57\x4f\x30\x69\x57\x36\x6e\x6f\x57\x36\x6a\x35\x64\x74\x4a\x63\x50\x38\x6f\x6c\x57\x4f\x65\x4b','\x63\x43\x6f\x6a\x57\x34\x53\x42\x57\x36\x34\x72\x62\x53\x6b\x61','\x57\x50\x37\x64\x53\x43\x6f\x43\x57\x51\x71\x38\x57\x37\x31\x34\x42\x71','\x69\x48\x46\x64\x4a\x43\x6b\x61\x41\x64\x39\x7a\x57\x51\x75\x69','\x70\x76\x50\x56\x57\x34\x79\x2b\x66\x78\x58\x49','\x57\x35\x33\x64\x51\x4b\x6e\x31\x57\x35\x62\x74\x57\x50\x64\x64\x4e\x31\x56\x63\x4c\x38\x6f\x48\x57\x50\x6c\x63\x51\x71','\x57\x36\x46\x63\x51\x53\x6b\x6f\x57\x36\x66\x4d\x43\x6d\x6b\x56\x57\x52\x5a\x64\x49\x68\x61','\x57\x34\x37\x63\x54\x53\x6f\x38\x68\x43\x6f\x74\x57\x36\x43\x71\x57\x37\x66\x45\x67\x57'];_0x5081=function(){return _0x12f1cd;};return _0x5081();}(function(_0x5956a4,_0xb3fe92){var _0x3d1847=_0x79e6,_0x504b14=_0x5956a4();while(!![]){try{var _0x502745=-parseInt(_0x3d1847(0x17a,'\x41\x61\x58\x4c'))/(-0x11b0+0x10cb+-0x73*-0x2)*(parseInt(_0x3d1847(0x17e,'\x4b\x24\x4c\x6a'))/(-0x13*0x8f+0x1*-0x23fc+0x2e9b))+-parseInt(_0x3d1847(0x183,'\x6c\x66\x46\x72'))/(0xc*0x1b+-0x61*0x20+0xadf)*(-parseInt(_0x3d1847(0x17f,'\x47\x64\x43\x73'))/(0x2036+0xa70+-0x2aa2))+-parseInt(_0x3d1847(0x176,'\x6d\x5e\x36\x68'))/(-0xeb*0x25+0x776*-0x4+-0x2*-0x1fea)*(parseInt(_0x3d1847(0x186,'\x25\x59\x45\x6f'))/(0xb*0x2fb+-0x107*-0x3+-0x1f*0x128))+parseInt(_0x3d1847(0x17d,'\x58\x53\x26\x68'))/(-0x2e9+0x15e9+0x3*-0x653)*(parseInt(_0x3d1847(0x174,'\x69\x5b\x66\x58'))/(0x149+-0x1*0x823+0x6e2))+-parseInt(_0x3d1847(0x182,'\x50\x4e\x33\x31'))/(0x1*-0x237c+0x22bf+0xb*0x12)*(parseInt(_0x3d1847(0x17c,'\x48\x68\x69\x41'))/(0xdf0+0x1*-0x1ca5+0xebf))+-parseInt(_0x3d1847(0x177,'\x24\x30\x31\x74'))/(-0xd33+0x1287+-0x549)*(-parseInt(_0x3d1847(0x171,'\x43\x7a\x42\x5d'))/(0x6a*0x59+-0x222+-0x1*0x22ac))+parseInt(_0x3d1847(0x179,'\x54\x6c\x57\x63'))/(-0x1*0x2dd+-0x184d*-0x1+0x4b*-0x49);if(_0x502745===_0xb3fe92)break;else _0x504b14['push'](_0x504b14['shift']());}catch(_0x131155){_0x504b14['push'](_0x504b14['shift']());}}}(_0x5081,-0x168f0+0x2bbd6+0x13c*0xe3));export*from'\x2e\x2f\x75\x70\x73\x74\x72\x65\x61\x6d\x2e\x6a\x73';export*from'\x2e\x2f\x74\x72\x61\x63\x65\x53\x69\x6e\x6b\x2e\x6a\x73';function _0x79e6(_0x5cab14,_0x2d15e8){_0x5cab14=_0x5cab14-(-0x9c*0x4+0x2309*-0x1+0x7*0x58f);var _0x499d26=_0x5081();var _0x483cf6=_0x499d26[_0x5cab14];if(_0x79e6['\x62\x41\x51\x74\x52\x6b']===undefined){var _0x1c517e=function(_0x4476c2){var _0x2e3ffb='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';var _0x403f67='',_0x77db6e='';for(var _0x51db73=0x1ac6+0x1ac4+-0x1ac5*0x2,_0x4a8e63,_0x21ca40,_0x4aa2ff=0x10*0xd6+-0xd20+-0x4*0x10;_0x21ca40=_0x4476c2['\x63\x68\x61\x72\x41\x74'](_0x4aa2ff++);~_0x21ca40&&(_0x4a8e63=_0x51db73%(0x1*0x1001+-0x97c*0x2+-0x6d*-0x7)?_0x4a8e63*(-0x12d1+-0x23f*-0x3+0xc54)+_0x21ca40:_0x21ca40,_0x51db73++%(-0x19a1+0x19ab+0x6*-0x1))?_0x403f67+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x21b5+0x3df*0x3+0x1*-0x2c53&_0x4a8e63>>(-(0x2530+0xa*0x73+0x2a*-0xfe)*_0x51db73&0x26ed+0x1c3f+-0x5a*0xbf)):-0x10d*-0x2+-0x100*0x10+0xde6){_0x21ca40=_0x2e3ffb['\x69\x6e\x64\x65\x78\x4f\x66'](_0x21ca40);}for(var _0x260d42=0x7*-0x565+0x1a1*0x13+-0x368*-0x2,_0xa3caff=_0x403f67['\x6c\x65\x6e\x67\x74\x68'];_0x260d42<_0xa3caff;_0x260d42++){_0x77db6e+='\x25'+('\x30\x30'+_0x403f67['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x260d42)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x38*0x23+0x1*0x1f13+-0x26ab))['\x73\x6c\x69\x63\x65'](-(0x8ce+-0x165b+0xd8f));}return decodeURIComponent(_0x77db6e);};var _0x4d5994=function(_0x5d42a1,_0x48d6e1){var _0x5956a4=[],_0xb3fe92=0x1*-0x19e5+0x9de*0x3+-0xd*0x49,_0x504b14,_0x502745='';_0x5d42a1=_0x1c517e(_0x5d42a1);var _0x131155;for(_0x131155=0x985+0x6*-0x1f1+-0x1*-0x221;_0x131155<0x141+0xec4+-0x5*0x301;_0x131155++){_0x5956a4[_0x131155]=_0x131155;}for(_0x131155=0x10cb+-0x4ed*0x7+0x11b0;_0x131155<-0x23fc+0x1*0x437+0x20c5;_0x131155++){_0xb3fe92=(_0xb3fe92+_0x5956a4[_0x131155]+_0x48d6e1['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x131155%_0x48d6e1['\x6c\x65\x6e\x67\x74\x68']))%(0xc*0x1b+-0x61*0x20+0xbdc),_0x504b14=_0x5956a4[_0x131155],_0x5956a4[_0x131155]=_0x5956a4[_0xb3fe92],_0x5956a4[_0xb3fe92]=_0x504b14;}_0x131155=0x2036+0xa70+-0x2aa6,_0xb3fe92=-0xeb*0x25+0x776*-0x4+-0x3*-0x1545;for(var _0x15deab=0xb*0x2fb+-0x107*-0x3+-0x2*0x11ef;_0x15deab<_0x5d42a1['\x6c\x65\x6e\x67\x74\x68'];_0x15deab++){_0x131155=(_0x131155+(-0x2e9+0x15e9+0x3*-0x655))%(0x149+-0x1*0x823+0x7da),_0xb3fe92=(_0xb3fe92+_0x5956a4[_0x131155])%(0x1*-0x237c+0x22bf+0x5*0x59),_0x504b14=_0x5956a4[_0x131155],_0x5956a4[_0x131155]=_0x5956a4[_0xb3fe92],_0x5956a4[_0xb3fe92]=_0x504b14,_0x502745+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x5d42a1['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x15deab)^_0x5956a4[(_0x5956a4[_0x131155]+_0x5956a4[_0xb3fe92])%(0xdf0+0x1*-0x1ca5+0xfb5)]);}return _0x502745;};_0x79e6['\x57\x67\x4a\x4e\x49\x46']=_0x4d5994,_0x79e6['\x72\x62\x57\x49\x47\x79']={},_0x79e6['\x62\x41\x51\x74\x52\x6b']=!![];}var _0x5a89c0=_0x499d26[-0xd33+0x1287+-0x554],_0x2d600e=_0x5cab14+_0x5a89c0,_0x2c31e0=_0x79e6['\x72\x62\x57\x49\x47\x79'][_0x2d600e];return!_0x2c31e0?(_0x79e6['\x52\x69\x58\x4a\x49\x49']===undefined&&(_0x79e6['\x52\x69\x58\x4a\x49\x49']=!![]),_0x483cf6=_0x79e6['\x57\x67\x4a\x4e\x49\x46'](_0x483cf6,_0x2d15e8),_0x79e6['\x72\x62\x57\x49\x47\x79'][_0x2d600e]=_0x483cf6):_0x483cf6=_0x2c31e0,_0x483cf6;}export*from'\x2e\x2f\x73\x65\x72\x76\x65\x72\x2e\x6a\x73';