@treasuredata/tdx 0.8.0 → 0.8.2

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 (125) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client/cdp-api-client.js +1 -1
  8. package/dist/client/engage-api-client.js +1 -1
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.d.ts +2 -0
  13. package/dist/client/td-api-client.d.ts.map +1 -1
  14. package/dist/client/td-api-client.js +1 -1
  15. package/dist/client/td-api-client.js.map +1 -1
  16. package/dist/client/trino-api-client.js +1 -1
  17. package/dist/client/workflow-client.js +1 -1
  18. package/dist/commands/activations.js +1 -1
  19. package/dist/commands/api-command.js +1 -1
  20. package/dist/commands/auth-command.js +1 -1
  21. package/dist/commands/chat-command.js +1 -1
  22. package/dist/commands/claude-command.d.ts.map +1 -1
  23. package/dist/commands/claude-command.js +1 -1
  24. package/dist/commands/claude-command.js.map +1 -1
  25. package/dist/commands/claude-statusline-command.d.ts +1 -1
  26. package/dist/commands/claude-statusline-command.d.ts.map +1 -1
  27. package/dist/commands/claude-statusline-command.js +1 -1
  28. package/dist/commands/claude-statusline-command.js.map +1 -1
  29. package/dist/commands/claude-usage-command.js +1 -1
  30. package/dist/commands/command.js +1 -1
  31. package/dist/commands/connection-command.js +1 -1
  32. package/dist/commands/context-command.js +1 -1
  33. package/dist/commands/databases.js +1 -1
  34. package/dist/commands/describe.js +1 -1
  35. package/dist/commands/engage-command.js +1 -1
  36. package/dist/commands/job-command.js +1 -1
  37. package/dist/commands/llm-command.js +1 -1
  38. package/dist/commands/llm-proxy.js +1 -1
  39. package/dist/commands/parent-segment-command.js +1 -1
  40. package/dist/commands/profiles-command.js +1 -1
  41. package/dist/commands/query-command.js +1 -1
  42. package/dist/commands/segment-command.js +1 -1
  43. package/dist/commands/segment-create-command.js +1 -1
  44. package/dist/commands/segment-fields-command.js +1 -1
  45. package/dist/commands/segment-pull-command.js +1 -1
  46. package/dist/commands/segment-push-command.js +1 -1
  47. package/dist/commands/segment-update-command.js +1 -1
  48. package/dist/commands/segment-use-command.js +1 -1
  49. package/dist/commands/segments.js +1 -1
  50. package/dist/commands/show.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/config.d.ts +26 -0
  57. package/dist/core/config.d.ts.map +1 -1
  58. package/dist/core/config.js +1 -1
  59. package/dist/core/config.js.map +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/credential-cache.js +1 -1
  62. package/dist/core/global-context.js +1 -1
  63. package/dist/core/keychain.js +1 -1
  64. package/dist/core/profile.js +1 -1
  65. package/dist/core/project-config.js +1 -1
  66. package/dist/core/session.js +1 -1
  67. package/dist/core/user-cache.js +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/proxy/anthropic-adapter.js +1 -1
  70. package/dist/proxy/claude-usage-tracker.js +1 -1
  71. package/dist/proxy/context-signature.js +1 -1
  72. package/dist/proxy/conversation-utils.js +1 -1
  73. package/dist/proxy/server.js +1 -1
  74. package/dist/proxy/session-cache.js +1 -1
  75. package/dist/sdk/api.js +1 -1
  76. package/dist/sdk/connection.js +1 -1
  77. package/dist/sdk/engage.js +1 -1
  78. package/dist/sdk/errors.js +1 -1
  79. package/dist/sdk/index.js +1 -1
  80. package/dist/sdk/job.js +1 -1
  81. package/dist/sdk/llm.js +1 -1
  82. package/dist/sdk/query.js +1 -1
  83. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  84. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  85. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  86. package/dist/sdk/segment.js +1 -1
  87. package/dist/sdk/user.js +1 -1
  88. package/dist/sdk/workflow.js +1 -1
  89. package/dist/types/endpoints.js +1 -1
  90. package/dist/types/index.d.ts +20 -1
  91. package/dist/types/index.d.ts.map +1 -1
  92. package/dist/types/index.js +1 -1
  93. package/dist/types/index.js.map +1 -1
  94. package/dist/utils/agent-ref-parser.js +1 -1
  95. package/dist/utils/async.js +1 -1
  96. package/dist/utils/chat-cache.js +1 -1
  97. package/dist/utils/colors.js +1 -1
  98. package/dist/utils/command-output.js +1 -1
  99. package/dist/utils/constants.js +1 -1
  100. package/dist/utils/diff.js +1 -1
  101. package/dist/utils/fields-display.js +1 -1
  102. package/dist/utils/file-permissions.js +1 -1
  103. package/dist/utils/format-detector.js +1 -1
  104. package/dist/utils/formatters.js +1 -1
  105. package/dist/utils/json-loader.js +1 -1
  106. package/dist/utils/llm-backup-utils.js +1 -1
  107. package/dist/utils/model-aliases.js +1 -1
  108. package/dist/utils/model-factors.js +1 -1
  109. package/dist/utils/option-validation.js +1 -1
  110. package/dist/utils/port.js +1 -1
  111. package/dist/utils/process.js +1 -1
  112. package/dist/utils/prompt.js +1 -1
  113. package/dist/utils/segment-path-parser.js +1 -1
  114. package/dist/utils/segment-ref-parser.js +1 -1
  115. package/dist/utils/spinner.js +1 -1
  116. package/dist/utils/sql-parser.js +1 -1
  117. package/dist/utils/sse-parser.js +1 -1
  118. package/dist/utils/string-utils.js +1 -1
  119. package/dist/utils/table-ref-parser.js +1 -1
  120. package/dist/utils/tdx-config.js +1 -1
  121. package/dist/utils/tdx-logger.js +1 -1
  122. package/dist/utils/tree-formatter.js +1 -1
  123. package/dist/utils/version-check.js +1 -1
  124. package/dist/utils/workflow-utils.js +1 -1
  125. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x405040,_0x80a7f5){const _0x3cf5d5=a95_0x967d,_0x32f26b=_0x405040();while(!![]){try{const _0x51a066=parseInt(_0x3cf5d5(0x179))/0x1*(parseInt(_0x3cf5d5(0x188))/0x2)+-parseInt(_0x3cf5d5(0x176))/0x3+parseInt(_0x3cf5d5(0x185))/0x4+-parseInt(_0x3cf5d5(0x18b))/0x5*(-parseInt(_0x3cf5d5(0x18a))/0x6)+-parseInt(_0x3cf5d5(0x19a))/0x7*(-parseInt(_0x3cf5d5(0x198))/0x8)+-parseInt(_0x3cf5d5(0x197))/0x9+-parseInt(_0x3cf5d5(0x17e))/0xa;if(_0x51a066===_0x80a7f5)break;else _0x32f26b['push'](_0x32f26b['shift']());}catch(_0xe4cae7){_0x32f26b['push'](_0x32f26b['shift']());}}}(a95_0x3d80,0xf3955));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a95_0x3d80(){const _0x20b9d7=['number','2uYOxys','pow','name','padEnd','\x20shown)','19480610fDsMhi','startsWith','length','toLowerCase','repeat','substring','\x20rows\x20(','3627660amnjwD','map','long','1655392sDQKom','tsv','44118JBVYFR','1205ZDiHbm','log','\x20row','array','stdout','toISOString','forEach','replace','toString','string','json','data','12973500UzxXrH','8ZyGjAA','reduce','8498378kIgBtH','object','0\x20B','test','bool','date','columns','toFixed','boolean','floor','jsonl','max','double','stringify','push','type','slice','3483468SCSfbw','join'];a95_0x3d80=function(){return _0x20b9d7;};return a95_0x3d80();}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x481c5c=a95_0x967d;return process[_0x481c5c(0x18f)]['columns']||Infinity;}export function formatAsTable(_0x2276bb,_0x57d202=DEFAULT_MAX_DISPLAY_ROWS,_0x3b98b3=![],_0x2a5095={}){const _0x963362=a95_0x967d;if(_0x2276bb[_0x963362(0x196)][_0x963362(0x180)]===0x0)return'No\x20rows\x20returned';const _0x5737fb=_0x2276bb[_0x963362(0x1a0)]['map'](_0x458cac=>_0x458cac[_0x963362(0x17b)]),_0x1b9bc8=_0x2276bb[_0x963362(0x1a0)][_0x963362(0x186)](_0x8b32d3=>simplifyType(_0x8b32d3[_0x963362(0x174)])),_0x3ea6aa=_0x2276bb[_0x963362(0x196)][_0x963362(0x175)](0x0,_0x57d202),_0x17023d=_0x2276bb[_0x963362(0x196)][_0x963362(0x180)],_0x5b33ca=_0x17023d>_0x57d202,_0x488237=[],_0x461b32=getTerminalWidth(),_0x58e803=_0x461b32!==Infinity,_0x150d6a=0x32;let _0x3835b5=_0x5737fb[_0x963362(0x186)]((_0x3c7cc4,_0x458e81)=>{const _0x56d4c7=_0x963362,_0x2d487a=stringWidth(_0x1b9bc8[_0x458e81]),_0x1855f5=Math[_0x56d4c7(0x170)](..._0x3ea6aa[_0x56d4c7(0x186)](_0x1c9dc0=>{const _0x13db62=_0x1c9dc0[_0x3c7cc4];return stringWidth(formatValue(_0x13db62));})),_0x4372d3=Math['max'](stringWidth(_0x3c7cc4),_0x2d487a,_0x1855f5);return _0x3b98b3?_0x4372d3:Math['min'](_0x4372d3,_0x150d6a);});if(_0x58e803&&!_0x3b98b3&&_0x5737fb['length']>0x0){const _0x15940f=_0x8ebde5=>{let _0x5518af=0x1;for(const _0x1e0cd2 of _0x8ebde5){_0x5518af+=_0x1e0cd2+0x3;}return _0x5518af+0x1;};let _0x2054f9=_0x15940f(_0x3835b5);if(_0x2054f9>_0x461b32){const _0x518d57=0x3;for(let _0x290417=_0x3835b5[_0x963362(0x180)]-0x1;_0x290417>=0x0;_0x290417--){_0x2054f9=_0x15940f(_0x3835b5);if(_0x2054f9<=_0x461b32)break;const _0xcf5ef9=_0x3835b5[_0x290417],_0x28d421=_0x2054f9-_0x461b32,_0x5bcfd4=_0xcf5ef9-_0x518d57,_0x2b342b=Math['min'](_0x28d421,_0x5bcfd4);_0x2b342b>0x0&&(_0x3835b5[_0x290417]=_0xcf5ef9-_0x2b342b);}}}const _0x8e68e6=_0x5737fb,_0x209b16=_0x1b9bc8,_0x254641=_0x3835b5,_0x74e89f=_0x3835b5;_0x488237['push'](colorBorder('┌'+_0x74e89f[_0x963362(0x186)](_0x5e6ba0=>'─'[_0x963362(0x182)](_0x5e6ba0+0x2))[_0x963362(0x177)]('┬')+'┐',_0x2a5095));const _0x4a1f13=_0x8e68e6[_0x963362(0x186)]((_0x1f4226,_0x1bebdd)=>centerAlign(_0x1f4226,_0x254641[_0x1bebdd]));_0x488237[_0x963362(0x173)](colorBorder('│',_0x2a5095)+'\x20'+_0x4a1f13[_0x963362(0x177)]('\x20'+colorBorder('│',_0x2a5095)+'\x20')+'\x20'+colorBorder('│',_0x2a5095));const _0x1482b0=_0x209b16[_0x963362(0x186)]((_0x4420e0,_0x1345ee)=>colorType(centerAlign(_0x4420e0,_0x254641[_0x1345ee]),_0x2a5095));_0x488237['push'](colorBorder('│',_0x2a5095)+'\x20'+_0x1482b0[_0x963362(0x177)]('\x20'+colorBorder('│',_0x2a5095)+'\x20')+'\x20'+colorBorder('│',_0x2a5095)),_0x488237[_0x963362(0x173)](colorBorder('├'+_0x74e89f['map'](_0x2ac1fa=>'─'['repeat'](_0x2ac1fa+0x2))['join']('┼')+'┤',_0x2a5095));const _0x4af5fb=(_0x5ee0a2,_0x4b6e10)=>{const _0x9dca29=_0x963362,_0x564117=stringWidth(_0x5ee0a2);if(_0x564117<=_0x4b6e10)return _0x5ee0a2;let _0x2f72af=_0x5ee0a2;while(stringWidth(_0x2f72af+'…')>_0x4b6e10&&_0x2f72af[_0x9dca29(0x180)]>0x0){_0x2f72af=_0x2f72af[_0x9dca29(0x175)](0x0,-0x1);}return _0x2f72af+'…';};_0x3ea6aa[_0x963362(0x191)](_0x5b65cd=>{const _0x38a031=_0x963362,_0x12e3ef=_0x5737fb[_0x38a031(0x186)]((_0x39ecfb,_0x286292)=>{const _0x3a3a6b=_0x38a031,_0x3dd6b8=_0x5b65cd[_0x39ecfb],_0x4bea88=formatValue(_0x3dd6b8),_0x4c5fe8=_0x254641[_0x286292],_0xcff579=_0x4af5fb(_0x4bea88,_0x4c5fe8),_0x5200bd=typeof _0x3dd6b8===_0x3a3a6b(0x178)||typeof _0x3dd6b8===_0x3a3a6b(0x194)&&/^-?\d+$/[_0x3a3a6b(0x19d)](_0x3dd6b8);return _0x5200bd?padStart(_0xcff579,_0x4c5fe8):padEnd(_0xcff579,_0x4c5fe8);});_0x488237[_0x38a031(0x173)](colorBorder('│',_0x2a5095)+'\x20'+_0x12e3ef[_0x38a031(0x177)]('\x20'+colorBorder('│',_0x2a5095)+'\x20')+'\x20'+colorBorder('│',_0x2a5095));});const _0x4b9982=_0x74e89f[_0x963362(0x199)]((_0x147f8a,_0x5095b2)=>_0x147f8a+_0x5095b2+0x3,-0x1);_0x488237[_0x963362(0x173)](colorBorder('├'+_0x74e89f[_0x963362(0x186)](_0x425ba6=>'─'[_0x963362(0x182)](_0x425ba6+0x2))[_0x963362(0x177)]('┴')+'┤',_0x2a5095));let _0x3be266;_0x5b33ca?_0x3be266=_0x17023d+_0x963362(0x184)+_0x57d202+_0x963362(0x17d):_0x3be266=_0x17023d+_0x963362(0x18d)+(_0x17023d===0x1?'':'s');const _0x388152=_0x3be266[_0x963362(0x17c)](_0x4b9982-0x2);return _0x488237[_0x963362(0x173)](colorBorder('│',_0x2a5095)+'\x20'+_0x388152+'\x20'+colorBorder('│',_0x2a5095)),_0x488237[_0x963362(0x173)](colorBorder('└'+'─'[_0x963362(0x182)](_0x4b9982)+'┘',_0x2a5095)),_0x488237[_0x963362(0x177)]('\x0a');}function simplifyType(_0x4d38c5){const _0x345376=a95_0x967d,_0x32cb99={'varchar':'string','bigint':_0x345376(0x187),'integer':'int','double':_0x345376(0x171),'boolean':_0x345376(0x19e),'date':_0x345376(0x19f),'timestamp':'timestamp','array':_0x345376(0x18e),'map':_0x345376(0x186),'row':'row'},_0x345c4f=_0x4d38c5[_0x345376(0x181)]();for(const [_0x213381,_0x5f155d]of Object['entries'](_0x32cb99)){if(_0x345c4f[_0x345376(0x17f)](_0x213381))return _0x5f155d;}return _0x4d38c5[_0x345376(0x180)]>0xa?_0x4d38c5[_0x345376(0x183)](0x0,0xa):_0x4d38c5;}export function formatAsJSON(_0x5630df,_0x245e83={}){const _0x459c82=a95_0x967d;if(_0x5630df[_0x459c82(0x196)][_0x459c82(0x180)]===0x0)return'[]';if(shouldUseColor(_0x245e83))return colorizeJSON(_0x5630df['data'],_0x245e83);const _0x424ae2=_0x5630df['data']['map'](_0x38b16f=>'\x20\x20'+JSON[_0x459c82(0x172)](_0x38b16f));return'[\x0a'+_0x424ae2[_0x459c82(0x177)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x4ffbef,_0x36d076={}){const _0x50b2da=a95_0x967d;if(_0x4ffbef[_0x50b2da(0x196)][_0x50b2da(0x180)]===0x0)return'';if(shouldUseColor(_0x36d076))return _0x4ffbef[_0x50b2da(0x196)][_0x50b2da(0x186)](_0x31319e=>colorizeJSONCompact(_0x31319e,_0x36d076))[_0x50b2da(0x177)]('\x0a');return _0x4ffbef[_0x50b2da(0x196)][_0x50b2da(0x186)](_0xcc2411=>JSON[_0x50b2da(0x172)](_0xcc2411))[_0x50b2da(0x177)]('\x0a');}export function formatAsTSV(_0x11fce8){const _0x3ae10b=a95_0x967d;if(_0x11fce8['data']['length']===0x0)return'';const _0x4562ee=[],_0x533543=_0x11fce8['columns'][_0x3ae10b(0x186)](_0x39f452=>_0x39f452[_0x3ae10b(0x17b)]);return _0x4562ee[_0x3ae10b(0x173)](_0x533543[_0x3ae10b(0x177)]('\x09')),_0x11fce8['data']['forEach'](_0x3874bc=>{const _0x58263a=_0x3ae10b,_0x2801f1=_0x533543[_0x58263a(0x186)](_0x54fd4b=>{const _0x43a62e=_0x3874bc[_0x54fd4b];return formatValueForTSV(_0x43a62e);});_0x4562ee['push'](_0x2801f1[_0x58263a(0x177)]('\x09'));}),_0x4562ee[_0x3ae10b(0x177)]('\x0a');}function a95_0x967d(_0x588bc1,_0x94037b){_0x588bc1=_0x588bc1-0x16e;const _0x3d80fc=a95_0x3d80();let _0x967dd7=_0x3d80fc[_0x588bc1];return _0x967dd7;}function formatValue(_0x217e93){const _0x16bd79=a95_0x967d;if(_0x217e93===null||_0x217e93===undefined)return'';if(typeof _0x217e93===_0x16bd79(0x194)){const _0x5ed235=_0x217e93[_0x16bd79(0x192)](/\n/g,'\x5cn')[_0x16bd79(0x192)](/\r/g,'\x5cr')[_0x16bd79(0x192)](/\t/g,'\x5ct');return _0x5ed235;}if(typeof _0x217e93===_0x16bd79(0x178))return String(_0x217e93);if(typeof _0x217e93===_0x16bd79(0x1a2))return _0x217e93?'true':'false';if(_0x217e93 instanceof Date)return _0x217e93[_0x16bd79(0x190)]();if(typeof _0x217e93==='object')return JSON['stringify'](_0x217e93);return String(_0x217e93);}function formatValueForTSV(_0x508974){const _0x4bdadd=a95_0x967d;if(_0x508974===null||_0x508974===undefined)return'';if(typeof _0x508974==='string')return _0x508974['replace'](/\t/g,'\x5ct')[_0x4bdadd(0x192)](/\n/g,'\x5cn');if(typeof _0x508974===_0x4bdadd(0x178)||typeof _0x508974===_0x4bdadd(0x1a2))return String(_0x508974);if(_0x508974 instanceof Date)return _0x508974['toISOString']();if(typeof _0x508974===_0x4bdadd(0x19b))return JSON[_0x4bdadd(0x172)](_0x508974);return String(_0x508974);}export function formatQueryResult(_0x1622ea,_0xba316c){const _0x134aea=a95_0x967d;switch(_0xba316c){case'table':return formatAsTable(_0x1622ea);case _0x134aea(0x195):return formatAsJSON(_0x1622ea);case _0x134aea(0x16f):return formatAsJSONL(_0x1622ea);case _0x134aea(0x189):return formatAsTSV(_0x1622ea);default:return formatAsJSON(_0x1622ea);}}export function formatBytes(_0x3341fe){const _0x1c3063=a95_0x967d;if(_0x3341fe===0x0)return _0x1c3063(0x19c);const _0x5803a1=['B','KB','MB','GB','TB'],_0x54a6cd=0x400,_0x274bdd=Math[_0x1c3063(0x16e)](Math[_0x1c3063(0x18c)](_0x3341fe)/Math[_0x1c3063(0x18c)](_0x54a6cd)),_0xd78504=_0x3341fe/Math[_0x1c3063(0x17a)](_0x54a6cd,_0x274bdd),_0x4c5743=_0xd78504>=0xa?0x1:0x2;return _0xd78504[_0x1c3063(0x1a1)](_0x4c5743)+'\x20'+_0x5803a1[_0x274bdd];}export function formatRows(_0x53cdd5){const _0x30d999=a95_0x967d;if(_0x53cdd5==null)return'-';if(_0x53cdd5===0x0)return'0';if(_0x53cdd5<0x3e8)return _0x53cdd5[_0x30d999(0x193)]();const _0x504a1a=['','K','M','B','T'],_0x3db35f=0x3e8,_0x2d6a35=Math[_0x30d999(0x16e)](Math[_0x30d999(0x18c)](_0x53cdd5)/Math[_0x30d999(0x18c)](_0x3db35f)),_0x444b0c=_0x53cdd5/Math[_0x30d999(0x17a)](_0x3db35f,_0x2d6a35),_0x307c25=_0x444b0c>=0xa?0x1:0x2;return''+_0x444b0c['toFixed'](_0x307c25)+_0x504a1a[_0x2d6a35];}
1
+ (function(_0x45f593,_0x5d9b0e){const _0x3dfdb8=a95_0x57a5,_0x353026=_0x45f593();while(!![]){try{const _0xe52263=parseInt(_0x3dfdb8(0x1ea))/0x1+parseInt(_0x3dfdb8(0x1fd))/0x2+-parseInt(_0x3dfdb8(0x201))/0x3+-parseInt(_0x3dfdb8(0x1fb))/0x4*(-parseInt(_0x3dfdb8(0x1ed))/0x5)+-parseInt(_0x3dfdb8(0x20d))/0x6+-parseInt(_0x3dfdb8(0x1f8))/0x7+parseInt(_0x3dfdb8(0x1f9))/0x8*(parseInt(_0x3dfdb8(0x1f7))/0x9);if(_0xe52263===_0x5d9b0e)break;else _0x353026['push'](_0x353026['shift']());}catch(_0xeeb99b){_0x353026['push'](_0x353026['shift']());}}}(a95_0x1f07,0xd1b64));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x5214fb=a95_0x57a5;return process[_0x5214fb(0x208)][_0x5214fb(0x211)]||Infinity;}export function formatAsTable(_0x3f4131,_0x159bbf=DEFAULT_MAX_DISPLAY_ROWS,_0x2c28a6=![],_0xc907b6={}){const _0x4b1d8f=a95_0x57a5;if(_0x3f4131[_0x4b1d8f(0x1ef)]['length']===0x0)return _0x4b1d8f(0x200);const _0x1eee47=_0x3f4131[_0x4b1d8f(0x211)]['map'](_0x2451be=>_0x2451be[_0x4b1d8f(0x1f2)]),_0x518a7d=_0x3f4131[_0x4b1d8f(0x211)]['map'](_0x535ab8=>simplifyType(_0x535ab8[_0x4b1d8f(0x1e3)])),_0x580fa5=_0x3f4131['data'][_0x4b1d8f(0x1fc)](0x0,_0x159bbf),_0x2d1d95=_0x3f4131['data'][_0x4b1d8f(0x1ee)],_0x9e97c5=_0x2d1d95>_0x159bbf,_0x291b96=[],_0x1611f3=getTerminalWidth(),_0x5b5a07=_0x1611f3!==Infinity,_0xf99dce=0x32;let _0x13bec5=_0x1eee47[_0x4b1d8f(0x1de)]((_0x57a709,_0x13d7d7)=>{const _0x4e26c6=_0x4b1d8f,_0x203372=stringWidth(_0x518a7d[_0x13d7d7]),_0x30c231=Math[_0x4e26c6(0x1f1)](..._0x580fa5[_0x4e26c6(0x1de)](_0x197af6=>{const _0x2f0234=_0x197af6[_0x57a709];return stringWidth(formatValue(_0x2f0234));})),_0x11b07a=Math['max'](stringWidth(_0x57a709),_0x203372,_0x30c231);return _0x2c28a6?_0x11b07a:Math[_0x4e26c6(0x206)](_0x11b07a,_0xf99dce);});if(_0x5b5a07&&!_0x2c28a6&&_0x1eee47['length']>0x0){const _0x4e4f48=_0x4cc603=>{let _0x19ef2e=0x1;for(const _0x425927 of _0x4cc603){_0x19ef2e+=_0x425927+0x3;}return _0x19ef2e+0x1;};let _0xa7c5c4=_0x4e4f48(_0x13bec5);if(_0xa7c5c4>_0x1611f3){const _0x1e87c5=0x3;for(let _0x5a3fd8=_0x13bec5[_0x4b1d8f(0x1ee)]-0x1;_0x5a3fd8>=0x0;_0x5a3fd8--){_0xa7c5c4=_0x4e4f48(_0x13bec5);if(_0xa7c5c4<=_0x1611f3)break;const _0x88a49c=_0x13bec5[_0x5a3fd8],_0x4ce5a2=_0xa7c5c4-_0x1611f3,_0x2f2776=_0x88a49c-_0x1e87c5,_0x5c6bbd=Math[_0x4b1d8f(0x206)](_0x4ce5a2,_0x2f2776);_0x5c6bbd>0x0&&(_0x13bec5[_0x5a3fd8]=_0x88a49c-_0x5c6bbd);}}}const _0x4846ad=_0x1eee47,_0x1609a1=_0x518a7d,_0x419570=_0x13bec5,_0x33f5b4=_0x13bec5;_0x291b96[_0x4b1d8f(0x209)](colorBorder('┌'+_0x33f5b4[_0x4b1d8f(0x1de)](_0x55cb7e=>'─'[_0x4b1d8f(0x20b)](_0x55cb7e+0x2))[_0x4b1d8f(0x1e5)]('┬')+'┐',_0xc907b6));const _0x3746b2=_0x4846ad[_0x4b1d8f(0x1de)]((_0x8cb66f,_0x3bd55e)=>centerAlign(_0x8cb66f,_0x419570[_0x3bd55e]));_0x291b96[_0x4b1d8f(0x209)](colorBorder('│',_0xc907b6)+'\x20'+_0x3746b2['join']('\x20'+colorBorder('│',_0xc907b6)+'\x20')+'\x20'+colorBorder('│',_0xc907b6));const _0x5ecde4=_0x1609a1[_0x4b1d8f(0x1de)]((_0x22ed58,_0x2a123d)=>colorType(centerAlign(_0x22ed58,_0x419570[_0x2a123d]),_0xc907b6));_0x291b96[_0x4b1d8f(0x209)](colorBorder('│',_0xc907b6)+'\x20'+_0x5ecde4[_0x4b1d8f(0x1e5)]('\x20'+colorBorder('│',_0xc907b6)+'\x20')+'\x20'+colorBorder('│',_0xc907b6)),_0x291b96[_0x4b1d8f(0x209)](colorBorder('├'+_0x33f5b4[_0x4b1d8f(0x1de)](_0x5f4e03=>'─'[_0x4b1d8f(0x20b)](_0x5f4e03+0x2))[_0x4b1d8f(0x1e5)]('┼')+'┤',_0xc907b6));const _0xea3d42=(_0x2adf5b,_0x3bd978)=>{const _0x1a4c34=_0x4b1d8f,_0x4c5389=stringWidth(_0x2adf5b);if(_0x4c5389<=_0x3bd978)return _0x2adf5b;let _0x2feef6=_0x2adf5b;while(stringWidth(_0x2feef6+'…')>_0x3bd978&&_0x2feef6[_0x1a4c34(0x1ee)]>0x0){_0x2feef6=_0x2feef6['slice'](0x0,-0x1);}return _0x2feef6+'…';};_0x580fa5[_0x4b1d8f(0x203)](_0x3b19c8=>{const _0x2afeeb=_0x4b1d8f,_0x2b2c26=_0x1eee47[_0x2afeeb(0x1de)]((_0x1a45cb,_0x380bbf)=>{const _0x4ce84c=_0x2afeeb,_0x2942c9=_0x3b19c8[_0x1a45cb],_0x465b6b=formatValue(_0x2942c9),_0x2671c9=_0x419570[_0x380bbf],_0x490aa7=_0xea3d42(_0x465b6b,_0x2671c9),_0x3becdd=typeof _0x2942c9==='number'||typeof _0x2942c9===_0x4ce84c(0x1f6)&&/^-?\d+$/[_0x4ce84c(0x1d9)](_0x2942c9);return _0x3becdd?padStart(_0x490aa7,_0x2671c9):padEnd(_0x490aa7,_0x2671c9);});_0x291b96['push'](colorBorder('│',_0xc907b6)+'\x20'+_0x2b2c26[_0x2afeeb(0x1e5)]('\x20'+colorBorder('│',_0xc907b6)+'\x20')+'\x20'+colorBorder('│',_0xc907b6));});const _0x302fea=_0x33f5b4[_0x4b1d8f(0x1dd)]((_0x5df0bb,_0x39bc9a)=>_0x5df0bb+_0x39bc9a+0x3,-0x1);_0x291b96[_0x4b1d8f(0x209)](colorBorder('├'+_0x33f5b4['map'](_0x355539=>'─'[_0x4b1d8f(0x20b)](_0x355539+0x2))[_0x4b1d8f(0x1e5)]('┴')+'┤',_0xc907b6));let _0x1dc0ab;_0x9e97c5?_0x1dc0ab=_0x2d1d95+_0x4b1d8f(0x1f3)+_0x159bbf+_0x4b1d8f(0x1f0):_0x1dc0ab=_0x2d1d95+_0x4b1d8f(0x1e8)+(_0x2d1d95===0x1?'':'s');const _0x3245ad=_0x1dc0ab[_0x4b1d8f(0x1f4)](_0x302fea-0x2);return _0x291b96['push'](colorBorder('│',_0xc907b6)+'\x20'+_0x3245ad+'\x20'+colorBorder('│',_0xc907b6)),_0x291b96[_0x4b1d8f(0x209)](colorBorder('└'+'─'[_0x4b1d8f(0x20b)](_0x302fea)+'┘',_0xc907b6)),_0x291b96['join']('\x0a');}function simplifyType(_0x2b9b49){const _0x12ee7d=a95_0x57a5,_0x559068={'varchar':_0x12ee7d(0x1f6),'bigint':_0x12ee7d(0x1e0),'integer':_0x12ee7d(0x207),'double':_0x12ee7d(0x20c),'boolean':_0x12ee7d(0x1e1),'date':_0x12ee7d(0x1e2),'timestamp':_0x12ee7d(0x205),'array':'array','map':_0x12ee7d(0x1de),'row':_0x12ee7d(0x1e7)},_0x7dfde9=_0x2b9b49[_0x12ee7d(0x1f5)]();for(const [_0x1664c3,_0x3a01fe]of Object[_0x12ee7d(0x204)](_0x559068)){if(_0x7dfde9[_0x12ee7d(0x20e)](_0x1664c3))return _0x3a01fe;}return _0x2b9b49[_0x12ee7d(0x1ee)]>0xa?_0x2b9b49[_0x12ee7d(0x1e4)](0x0,0xa):_0x2b9b49;}export function formatAsJSON(_0xb34da0,_0x5a2acb={}){const _0x40c997=a95_0x57a5;if(_0xb34da0[_0x40c997(0x1ef)][_0x40c997(0x1ee)]===0x0)return'[]';if(shouldUseColor(_0x5a2acb))return colorizeJSON(_0xb34da0[_0x40c997(0x1ef)],_0x5a2acb);const _0x41e4c2=_0xb34da0[_0x40c997(0x1ef)][_0x40c997(0x1de)](_0xa54174=>'\x20\x20'+JSON[_0x40c997(0x202)](_0xa54174));return'[\x0a'+_0x41e4c2[_0x40c997(0x1e5)](',\x0a')+'\x0a]';}function a95_0x57a5(_0x1ec234,_0x2e7f6b){_0x1ec234=_0x1ec234-0x1d8;const _0x1f07ba=a95_0x1f07();let _0x57a526=_0x1f07ba[_0x1ec234];return _0x57a526;}export function formatAsJSONL(_0x283ce4,_0x411a10={}){const _0x58a060=a95_0x57a5;if(_0x283ce4['data'][_0x58a060(0x1ee)]===0x0)return'';if(shouldUseColor(_0x411a10))return _0x283ce4[_0x58a060(0x1ef)][_0x58a060(0x1de)](_0x4a2b87=>colorizeJSONCompact(_0x4a2b87,_0x411a10))[_0x58a060(0x1e5)]('\x0a');return _0x283ce4[_0x58a060(0x1ef)][_0x58a060(0x1de)](_0x428692=>JSON[_0x58a060(0x202)](_0x428692))[_0x58a060(0x1e5)]('\x0a');}export function formatAsTSV(_0x522d71){const _0x551722=a95_0x57a5;if(_0x522d71[_0x551722(0x1ef)][_0x551722(0x1ee)]===0x0)return'';const _0x3b71fc=[],_0x38573d=_0x522d71[_0x551722(0x211)][_0x551722(0x1de)](_0x4d58c7=>_0x4d58c7['name']);return _0x3b71fc[_0x551722(0x209)](_0x38573d[_0x551722(0x1e5)]('\x09')),_0x522d71[_0x551722(0x1ef)][_0x551722(0x203)](_0x565547=>{const _0x348e70=_0x551722,_0x4dea34=_0x38573d[_0x348e70(0x1de)](_0xb16da8=>{const _0x24bb61=_0x565547[_0xb16da8];return formatValueForTSV(_0x24bb61);});_0x3b71fc[_0x348e70(0x209)](_0x4dea34[_0x348e70(0x1e5)]('\x09'));}),_0x3b71fc['join']('\x0a');}function formatValue(_0x111e63){const _0x19bc85=a95_0x57a5;if(_0x111e63===null||_0x111e63===undefined)return'';if(typeof _0x111e63==='string'){const _0x39db10=_0x111e63[_0x19bc85(0x1da)](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x19bc85(0x1da)](/\t/g,'\x5ct');return _0x39db10;}if(typeof _0x111e63===_0x19bc85(0x1ff))return String(_0x111e63);if(typeof _0x111e63===_0x19bc85(0x1fe))return _0x111e63?'true':_0x19bc85(0x20f);if(_0x111e63 instanceof Date)return _0x111e63[_0x19bc85(0x1e9)]();if(typeof _0x111e63==='object')return JSON[_0x19bc85(0x202)](_0x111e63);return String(_0x111e63);}function formatValueForTSV(_0x547a69){const _0x3f48e6=a95_0x57a5;if(_0x547a69===null||_0x547a69===undefined)return'';if(typeof _0x547a69===_0x3f48e6(0x1f6))return _0x547a69['replace'](/\t/g,'\x5ct')[_0x3f48e6(0x1da)](/\n/g,'\x5cn');if(typeof _0x547a69===_0x3f48e6(0x1ff)||typeof _0x547a69==='boolean')return String(_0x547a69);if(_0x547a69 instanceof Date)return _0x547a69['toISOString']();if(typeof _0x547a69===_0x3f48e6(0x1df))return JSON[_0x3f48e6(0x202)](_0x547a69);return String(_0x547a69);}export function formatQueryResult(_0x128dfa,_0x50dca5){const _0x25de9c=a95_0x57a5;switch(_0x50dca5){case _0x25de9c(0x1eb):return formatAsTable(_0x128dfa);case _0x25de9c(0x1db):return formatAsJSON(_0x128dfa);case _0x25de9c(0x1ec):return formatAsJSONL(_0x128dfa);case _0x25de9c(0x210):return formatAsTSV(_0x128dfa);default:return formatAsJSON(_0x128dfa);}}export function formatBytes(_0x5a0e7e){const _0x2cedb7=a95_0x57a5;if(_0x5a0e7e===0x0)return'0\x20B';const _0x40d100=['B','KB','MB','GB','TB'],_0xceb716=0x400,_0x668d51=Math['floor'](Math[_0x2cedb7(0x1e6)](_0x5a0e7e)/Math['log'](_0xceb716)),_0x59ec9e=_0x5a0e7e/Math[_0x2cedb7(0x20a)](_0xceb716,_0x668d51),_0xb77ef8=_0x59ec9e>=0xa?0x1:0x2;return _0x59ec9e[_0x2cedb7(0x1fa)](_0xb77ef8)+'\x20'+_0x40d100[_0x668d51];}function a95_0x1f07(){const _0x2affcf=['length','data','\x20shown)','max','name','\x20rows\x20(','padEnd','toLowerCase','string','9WmOMMM','4053266MXwOdF','998024OSoHeu','toFixed','6052144ZwLIOd','slice','1448400IyEDja','boolean','number','No\x20rows\x20returned','4540080tDJTye','stringify','forEach','entries','timestamp','min','int','stdout','push','pow','repeat','double','5202630NhNLYU','startsWith','false','tsv','columns','toString','test','replace','json','floor','reduce','map','object','long','bool','date','type','substring','join','log','row','\x20row','toISOString','1456494WyymaD','table','jsonl','5OIZDKT'];a95_0x1f07=function(){return _0x2affcf;};return a95_0x1f07();}export function formatRows(_0x456ed0){const _0x29ad71=a95_0x57a5;if(_0x456ed0==null)return'-';if(_0x456ed0===0x0)return'0';if(_0x456ed0<0x3e8)return _0x456ed0[_0x29ad71(0x1d8)]();const _0x1eb6f6=['','K','M','B','T'],_0x4bcd19=0x3e8,_0x1f5b33=Math[_0x29ad71(0x1dc)](Math[_0x29ad71(0x1e6)](_0x456ed0)/Math[_0x29ad71(0x1e6)](_0x4bcd19)),_0x582884=_0x456ed0/Math[_0x29ad71(0x20a)](_0x4bcd19,_0x1f5b33),_0x52cbbf=_0x582884>=0xa?0x1:0x2;return''+_0x582884['toFixed'](_0x52cbbf)+_0x1eb6f6[_0x1f5b33];}
@@ -1 +1 @@
1
- (function(_0x4b34f6,_0x4d81c7){const _0x213fa6=a96_0x1fe0,_0x32105d=_0x4b34f6();while(!![]){try{const _0xec6fb4=parseInt(_0x213fa6(0x139))/0x1*(-parseInt(_0x213fa6(0x12d))/0x2)+parseInt(_0x213fa6(0x12b))/0x3*(-parseInt(_0x213fa6(0x133))/0x4)+-parseInt(_0x213fa6(0x135))/0x5*(parseInt(_0x213fa6(0x140))/0x6)+parseInt(_0x213fa6(0x138))/0x7+-parseInt(_0x213fa6(0x13e))/0x8*(parseInt(_0x213fa6(0x142))/0x9)+-parseInt(_0x213fa6(0x13f))/0xa*(parseInt(_0x213fa6(0x132))/0xb)+parseInt(_0x213fa6(0x13c))/0xc*(parseInt(_0x213fa6(0x130))/0xd);if(_0xec6fb4===_0x4d81c7)break;else _0x32105d['push'](_0x32105d['shift']());}catch(_0x3a4c95){_0x32105d['push'](_0x32105d['shift']());}}}(a96_0x3d1f,0xdeec2));function a96_0x3d1f(){const _0x5b342d=['File\x20not\x20found:\x20','EACCES','14755KMqApq','\x27:\x20','26081gnXgqQ','94648gWrJSg','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','594105axLKkw','message','utf-8','7874335Fvujmq','14AhNPDv','code','INTERNAL','44580auvzEg','Permission\x20denied\x20reading\x20file:\x20','12373576vrpGzK','3250FaRTPy','48EKFFhZ','INVALID_ARGUMENT','9KyTHVL','parse','123FQnMTK','Invalid\x20JSON\x20string:\x20','27194kgTcqQ'];a96_0x3d1f=function(){return _0x5b342d;};return a96_0x3d1f();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a96_0x1fe0(_0x5bdf75,_0x492d83){_0x5bdf75=_0x5bdf75-0x12a;const _0x3d1f38=a96_0x3d1f();let _0x1fe049=_0x3d1f38[_0x5bdf75];return _0x1fe049;}export async function loadJSON(_0x3813d7,_0x243c5d){const _0x28a430=a96_0x1fe0;try{if(_0x243c5d){const _0x55b968=await readFile(_0x3813d7,_0x28a430(0x137));try{return JSON[_0x28a430(0x12a)](_0x55b968);}catch(_0x371555){throw new SDKError(ErrorCode[_0x28a430(0x141)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x3813d7+_0x28a430(0x131)+(_0x371555 instanceof Error?_0x371555[_0x28a430(0x136)]:String(_0x371555)));}}else try{return JSON[_0x28a430(0x12a)](_0x3813d7);}catch(_0x4cfdce){throw new SDKError(ErrorCode[_0x28a430(0x141)],_0x28a430(0x12c)+(_0x4cfdce instanceof Error?_0x4cfdce[_0x28a430(0x136)]:String(_0x4cfdce)));}}catch(_0x1e482b){if(_0x1e482b instanceof SDKError)throw _0x1e482b;if(_0x1e482b instanceof Error&&_0x28a430(0x13a)in _0x1e482b){const _0x48bd40=_0x1e482b;if(_0x48bd40[_0x28a430(0x13a)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x28a430(0x12e)+_0x3813d7);else{if(_0x48bd40[_0x28a430(0x13a)]===_0x28a430(0x12f))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x28a430(0x13d)+_0x3813d7);}}throw new SDKError(ErrorCode[_0x28a430(0x13b)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x1e482b instanceof Error?_0x1e482b[_0x28a430(0x136)]:String(_0x1e482b)));}}export async function loadJSONFromOptions(_0x58a9be,_0x36f05f){const _0x5105ed=a96_0x1fe0;if(_0x58a9be&&_0x36f05f)throw new SDKError(ErrorCode[_0x5105ed(0x141)],_0x5105ed(0x134));if(_0x58a9be)return await loadJSON(_0x58a9be,![]);if(_0x36f05f)return await loadJSON(_0x36f05f,!![]);return undefined;}
1
+ function a96_0x59d0(){const _0x45f9f7=['2426600zOIXLb','ENOENT','933369QZCBHI','PERMISSION_DENIED','296pCjmRB','725000mSvwYg','EACCES','6486oDZDZl','\x27:\x20','1074042KfkoOB','153YXzlWE','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','message','4370597wOwypw','parse','File\x20not\x20found:\x20','INVALID_ARGUMENT','code','NOT_FOUND','Invalid\x20JSON\x20string:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','5398086zJWaJw'];a96_0x59d0=function(){return _0x45f9f7;};return a96_0x59d0();}function a96_0x37b3(_0xd92099,_0x515612){_0xd92099=_0xd92099-0x19a;const _0x59d03f=a96_0x59d0();let _0x37b34c=_0x59d03f[_0xd92099];return _0x37b34c;}(function(_0x52a859,_0xb501e7){const _0x270bda=a96_0x37b3,_0x2efb48=_0x52a859();while(!![]){try{const _0x367ef6=parseInt(_0x270bda(0x1a0))/0x1+parseInt(_0x270bda(0x1a7))/0x2+parseInt(_0x270bda(0x1a5))/0x3*(-parseInt(_0x270bda(0x1a2))/0x4)+parseInt(_0x270bda(0x19e))/0x5+parseInt(_0x270bda(0x19d))/0x6+-parseInt(_0x270bda(0x1ab))/0x7+-parseInt(_0x270bda(0x1a3))/0x8*(parseInt(_0x270bda(0x1a8))/0x9);if(_0x367ef6===_0xb501e7)break;else _0x2efb48['push'](_0x2efb48['shift']());}catch(_0x273bec){_0x2efb48['push'](_0x2efb48['shift']());}}}(a96_0x59d0,0x817e7));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1d3664,_0x68bda4){const _0x1881b8=a96_0x37b3;try{if(_0x68bda4){const _0x4206ec=await readFile(_0x1d3664,'utf-8');try{return JSON['parse'](_0x4206ec);}catch(_0x8d6f37){throw new SDKError(ErrorCode[_0x1881b8(0x1ae)],_0x1881b8(0x19c)+_0x1d3664+_0x1881b8(0x1a6)+(_0x8d6f37 instanceof Error?_0x8d6f37[_0x1881b8(0x1aa)]:String(_0x8d6f37)));}}else try{return JSON[_0x1881b8(0x1ac)](_0x1d3664);}catch(_0x307f2e){throw new SDKError(ErrorCode[_0x1881b8(0x1ae)],_0x1881b8(0x19b)+(_0x307f2e instanceof Error?_0x307f2e[_0x1881b8(0x1aa)]:String(_0x307f2e)));}}catch(_0xeded0e){if(_0xeded0e instanceof SDKError)throw _0xeded0e;if(_0xeded0e instanceof Error&&_0x1881b8(0x1af)in _0xeded0e){const _0x574b0d=_0xeded0e;if(_0x574b0d[_0x1881b8(0x1af)]===_0x1881b8(0x19f))throw new SDKError(ErrorCode[_0x1881b8(0x19a)],_0x1881b8(0x1ad)+_0x1d3664);else{if(_0x574b0d[_0x1881b8(0x1af)]===_0x1881b8(0x1a4))throw new SDKError(ErrorCode[_0x1881b8(0x1a1)],'Permission\x20denied\x20reading\x20file:\x20'+_0x1d3664);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0xeded0e instanceof Error?_0xeded0e[_0x1881b8(0x1aa)]:String(_0xeded0e)));}}export async function loadJSONFromOptions(_0x2e115c,_0xb42380){const _0x343d59=a96_0x37b3;if(_0x2e115c&&_0xb42380)throw new SDKError(ErrorCode[_0x343d59(0x1ae)],_0x343d59(0x1a9));if(_0x2e115c)return await loadJSON(_0x2e115c,![]);if(_0xb42380)return await loadJSON(_0xb42380,!![]);return undefined;}
@@ -1 +1 @@
1
- function a97_0x1969(){const _0x480bb2=['6774130FOCWrQ','attributes','215420nuwKUb','targetKnowledgeBaseId','map','3172692VASmtb','get','tools','2886852ZegkyD','1837dAGvEy','targetAgentId','14XVkQFN','688272zBTXde','8MOeEnz','1.0','has','3jeHPWn','15279714nRzYfi','319250mpgOnn'];a97_0x1969=function(){return _0x480bb2;};return a97_0x1969();}function a97_0x3b80(_0x1b90df,_0xf19776){_0x1b90df=_0x1b90df-0x1cd;const _0x196952=a97_0x1969();let _0x3b80e7=_0x196952[_0x1b90df];return _0x3b80e7;}(function(_0x44231b,_0x26e076){const _0x5443fe=a97_0x3b80,_0x4f4747=_0x44231b();while(!![]){try{const _0x1337b2=-parseInt(_0x5443fe(0x1d7))/0x1+-parseInt(_0x5443fe(0x1dd))/0x2+-parseInt(_0x5443fe(0x1d5))/0x3*(parseInt(_0x5443fe(0x1cd))/0x4)+parseInt(_0x5443fe(0x1d8))/0x5+-parseInt(_0x5443fe(0x1d1))/0x6*(-parseInt(_0x5443fe(0x1d0))/0x7)+parseInt(_0x5443fe(0x1d2))/0x8*(-parseInt(_0x5443fe(0x1d6))/0x9)+-parseInt(_0x5443fe(0x1da))/0xa*(-parseInt(_0x5443fe(0x1ce))/0xb);if(_0x1337b2===_0x26e076)break;else _0x4f4747['push'](_0x4f4747['shift']());}catch(_0x3a7ef4){_0x4f4747['push'](_0x4f4747['shift']());}}}(a97_0x1969,0xd1285));export function canCreateAgent(_0x418af9,_0xe87a98){const _0x3e7995=a97_0x3b80;for(const _0x6b9442 of _0x418af9[_0x3e7995(0x1d9)][_0x3e7995(0x1df)]){if(_0x6b9442[_0x3e7995(0x1cf)]&&!_0xe87a98[_0x3e7995(0x1d4)](_0x6b9442[_0x3e7995(0x1cf)]))return![];}return!![];}export function remapToolIds(_0x37bb0d,_0x3c0e14,_0x1d220a){const _0x188a1f=a97_0x3b80;return _0x37bb0d[_0x188a1f(0x1dc)](_0xc2d883=>({..._0xc2d883,'targetKnowledgeBaseId':_0xc2d883[_0x188a1f(0x1db)]?_0x3c0e14[_0x188a1f(0x1de)](_0xc2d883[_0x188a1f(0x1db)])||_0xc2d883[_0x188a1f(0x1db)]:undefined,'targetAgentId':_0xc2d883[_0x188a1f(0x1cf)]?_0x1d220a[_0x188a1f(0x1de)](_0xc2d883[_0x188a1f(0x1cf)])||_0xc2d883[_0x188a1f(0x1cf)]:undefined}));}export function remapVariableIds(_0x2aed4d,_0x3502e7){const _0xeb004e=a97_0x3b80;return _0x2aed4d[_0xeb004e(0x1dc)](_0xfc717c=>({..._0xfc717c,'targetKnowledgeBaseId':_0x3502e7[_0xeb004e(0x1de)](_0xfc717c[_0xeb004e(0x1db)])||_0xfc717c['targetKnowledgeBaseId']}));}export function isSupportedBackupVersion(_0x1788c3){const _0xd5765a=a97_0x3b80;return _0x1788c3===_0xd5765a(0x1d3);}
1
+ (function(_0x1f1336,_0x2281ad){const _0x5912da=a97_0x24c6,_0x2dbf06=_0x1f1336();while(!![]){try{const _0x4dc390=parseInt(_0x5912da(0x8e))/0x1*(parseInt(_0x5912da(0x91))/0x2)+-parseInt(_0x5912da(0x90))/0x3+-parseInt(_0x5912da(0x9c))/0x4+parseInt(_0x5912da(0x9d))/0x5*(-parseInt(_0x5912da(0x9b))/0x6)+parseInt(_0x5912da(0x93))/0x7+parseInt(_0x5912da(0x94))/0x8*(parseInt(_0x5912da(0x99))/0x9)+parseInt(_0x5912da(0x8d))/0xa*(parseInt(_0x5912da(0x92))/0xb);if(_0x4dc390===_0x2281ad)break;else _0x2dbf06['push'](_0x2dbf06['shift']());}catch(_0xbaa0d1){_0x2dbf06['push'](_0x2dbf06['shift']());}}}(a97_0x185d,0x261b7));export function canCreateAgent(_0x3e8bb6,_0x3b010d){const _0x4e8ffb=a97_0x24c6;for(const _0x14b776 of _0x3e8bb6['attributes'][_0x4e8ffb(0x96)]){if(_0x14b776[_0x4e8ffb(0x97)]&&!_0x3b010d['has'](_0x14b776['targetAgentId']))return![];}return!![];}function a97_0x24c6(_0x3ddb1e,_0x49bbb7){_0x3ddb1e=_0x3ddb1e-0x8d;const _0x185d20=a97_0x185d();let _0x24c67a=_0x185d20[_0x3ddb1e];return _0x24c67a;}export function remapToolIds(_0x542c86,_0x50949e,_0x258019){const _0x29412a=a97_0x24c6;return _0x542c86[_0x29412a(0x8f)](_0x36d217=>({..._0x36d217,'targetKnowledgeBaseId':_0x36d217[_0x29412a(0x95)]?_0x50949e[_0x29412a(0x98)](_0x36d217[_0x29412a(0x95)])||_0x36d217[_0x29412a(0x95)]:undefined,'targetAgentId':_0x36d217[_0x29412a(0x97)]?_0x258019[_0x29412a(0x98)](_0x36d217[_0x29412a(0x97)])||_0x36d217[_0x29412a(0x97)]:undefined}));}export function remapVariableIds(_0x2cede5,_0x104356){const _0x24f160=a97_0x24c6;return _0x2cede5[_0x24f160(0x8f)](_0xd90c93=>({..._0xd90c93,'targetKnowledgeBaseId':_0x104356[_0x24f160(0x98)](_0xd90c93[_0x24f160(0x95)])||_0xd90c93[_0x24f160(0x95)]}));}function a97_0x185d(){const _0x37d55a=['11620DPRKqe','671AhgQqd','424809SlQcAw','8EeUmhy','targetKnowledgeBaseId','tools','targetAgentId','get','1932273JIWMTN','1.0','6MyxEpG','723804pnAIWI','131855NryDbx','34010eMNFTX','18kBhxmN','map','672048bFLWjB'];a97_0x185d=function(){return _0x37d55a;};return a97_0x185d();}export function isSupportedBackupVersion(_0x1cb481){const _0x46ce4c=a97_0x24c6;return _0x1cb481===_0x46ce4c(0x9a);}
@@ -1 +1 @@
1
- const a98_0x556daa=a98_0x1dc8;(function(_0xb93999,_0x1dda11){const _0x3f7f81=a98_0x1dc8,_0x71b116=_0xb93999();while(!![]){try{const _0x1660df=-parseInt(_0x3f7f81(0xe9))/0x1+-parseInt(_0x3f7f81(0xe7))/0x2+-parseInt(_0x3f7f81(0xe0))/0x3*(parseInt(_0x3f7f81(0xe1))/0x4)+parseInt(_0x3f7f81(0xe4))/0x5+-parseInt(_0x3f7f81(0xdf))/0x6*(parseInt(_0x3f7f81(0xeb))/0x7)+parseInt(_0x3f7f81(0xe2))/0x8*(parseInt(_0x3f7f81(0xe5))/0x9)+parseInt(_0x3f7f81(0xec))/0xa*(parseInt(_0x3f7f81(0xe3))/0xb);if(_0x1660df===_0x1dda11)break;else _0x71b116['push'](_0x71b116['shift']());}catch(_0x2c22be){_0x71b116['push'](_0x71b116['shift']());}}}(a98_0x1ad8,0x39c86));const MODEL_ALIASES={'haiku':a98_0x556daa(0xe8),'sonnet':a98_0x556daa(0xea)};export function extractModelAlias(_0x5a0c80){const _0x4f127d=a98_0x556daa,_0x55f379=_0x5a0c80[_0x4f127d(0xe6)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x55f379)return _0x55f379[0x1]['toLowerCase']();return _0x5a0c80;}function a98_0x1dc8(_0x53348a,_0xddc225){_0x53348a=_0x53348a-0xdf;const _0x1ad89d=a98_0x1ad8();let _0x1dc8ed=_0x1ad89d[_0x53348a];return _0x1dc8ed;}export function resolveModelAlias(_0x55e158){const _0x3e05ff=a98_0x556daa;return MODEL_ALIASES[_0x55e158[_0x3e05ff(0xed)]()]||_0x55e158;}export function getModelAliases(){return{...MODEL_ALIASES};}function a98_0x1ad8(){const _0x50398c=['1712675GOULLi','564705oYgilR','match','375004HUwcVx','claude-4.5-haiku','370843fEsfkF','claude-4.5-sonnet','7rAKIKO','82390JfxTmG','toLowerCase','2243922QwltGb','1659rnTBpr','284ttjcZX','40HVyyuh','737AwKeXR'];a98_0x1ad8=function(){return _0x50398c;};return a98_0x1ad8();}
1
+ function a98_0x5c9c(_0x4d9c68,_0x1325a5){_0x4d9c68=_0x4d9c68-0x128;const _0x388a2b=a98_0x388a();let _0x5c9cbd=_0x388a2b[_0x4d9c68];return _0x5c9cbd;}const a98_0x8e2da1=a98_0x5c9c;function a98_0x388a(){const _0x16ce25=['2290PsxUoK','3lSkTCx','toLowerCase','match','3031wczfED','932868OeuTew','29358fekmee','46323znhOPd','5172CDeHEP','2428360fnFUVr','394693CQugMa','claude-4.5-haiku','claude-4.5-sonnet','983555CYJnMB'];a98_0x388a=function(){return _0x16ce25;};return a98_0x388a();}(function(_0xe4db94,_0x4caf0e){const _0x5063ca=a98_0x5c9c,_0x33fd97=_0xe4db94();while(!![]){try{const _0x27d04b=-parseInt(_0x5063ca(0x12b))/0x1+parseInt(_0x5063ca(0x135))/0x2+parseInt(_0x5063ca(0x130))/0x3*(-parseInt(_0x5063ca(0x134))/0x4)+-parseInt(_0x5063ca(0x12e))/0x5+-parseInt(_0x5063ca(0x129))/0x6*(parseInt(_0x5063ca(0x133))/0x7)+parseInt(_0x5063ca(0x12a))/0x8+-parseInt(_0x5063ca(0x128))/0x9*(-parseInt(_0x5063ca(0x12f))/0xa);if(_0x27d04b===_0x4caf0e)break;else _0x33fd97['push'](_0x33fd97['shift']());}catch(_0x1df619){_0x33fd97['push'](_0x33fd97['shift']());}}}(a98_0x388a,0x4900c));const MODEL_ALIASES={'haiku':a98_0x8e2da1(0x12c),'sonnet':a98_0x8e2da1(0x12d)};export function extractModelAlias(_0x44942d){const _0x350157=a98_0x8e2da1,_0x1930d5=_0x44942d[_0x350157(0x132)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x1930d5)return _0x1930d5[0x1][_0x350157(0x131)]();return _0x44942d;}export function resolveModelAlias(_0x164d49){return MODEL_ALIASES[_0x164d49['toLowerCase']()]||_0x164d49;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- function a99_0x23ac(_0x54d073,_0x40a621){_0x54d073=_0x54d073-0x119;const _0x255548=a99_0x2555();let _0x23ac86=_0x255548[_0x54d073];return _0x23ac86;}(function(_0x265269,_0x1d48f7){const _0x5c20d7=a99_0x23ac,_0x6b8401=_0x265269();while(!![]){try{const _0x277546=parseInt(_0x5c20d7(0x122))/0x1+-parseInt(_0x5c20d7(0x130))/0x2*(-parseInt(_0x5c20d7(0x125))/0x3)+-parseInt(_0x5c20d7(0x123))/0x4+parseInt(_0x5c20d7(0x11e))/0x5*(parseInt(_0x5c20d7(0x12c))/0x6)+-parseInt(_0x5c20d7(0x11a))/0x7+parseInt(_0x5c20d7(0x11c))/0x8+-parseInt(_0x5c20d7(0x129))/0x9*(parseInt(_0x5c20d7(0x12b))/0xa);if(_0x277546===_0x1d48f7)break;else _0x6b8401['push'](_0x6b8401['shift']());}catch(_0x2455c4){_0x6b8401['push'](_0x6b8401['shift']());}}}(a99_0x2555,0x67c76));function a99_0x2555(){const _0x13cf2d=['101746XiIxml','508992CgYoec','Haiku\x204.5','112692XZnVnk','haiku','toLocaleString','toLowerCase','387xEJFkQ','Claude','52850ycmaIu','6eVGaOB','Haiku\x204','4-5','round','26CegdvS','includes','1886815IYMNgY','opus','901656tAPpmj','default','1731705sgbATw','4.5','sonnet','Sonnet\x204'];a99_0x2555=function(){return _0x13cf2d;};return a99_0x2555();}export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x38ed5c){const _0x317a2a=a99_0x23ac,_0x4eb685=_0x38ed5c[_0x317a2a(0x128)]();if(MODEL_FACTORS[_0x4eb685])return MODEL_FACTORS[_0x4eb685];if(_0x4eb685['includes']('sonnet'))return MODEL_FACTORS['sonnet'];if(_0x4eb685[_0x317a2a(0x119)]('haiku'))return MODEL_FACTORS[_0x317a2a(0x126)];if(_0x4eb685['includes'](_0x317a2a(0x11b)))return MODEL_FACTORS[_0x317a2a(0x11b)];return MODEL_FACTORS['sonnet'];}export function getContextLimit(_0x1e16b8){const _0x5c162d=a99_0x23ac,_0xd1dadb=_0x1e16b8[_0x5c162d(0x128)]();if(_0xd1dadb[_0x5c162d(0x119)](_0x5c162d(0x120)))return CONTEXT_LIMITS[_0x5c162d(0x120)];if(_0xd1dadb['includes']('haiku'))return CONTEXT_LIMITS[_0x5c162d(0x126)];if(_0xd1dadb[_0x5c162d(0x119)](_0x5c162d(0x11b)))return CONTEXT_LIMITS['opus'];return CONTEXT_LIMITS[_0x5c162d(0x11d)];}export function calculateChatUnit(_0x236536,_0x1aa6cb,_0x468f4d){return(_0x236536+_0x1aa6cb)/0x1388*_0x468f4d;}export function calculateCredits(_0x43f5c3){return _0x43f5c3/0x2904;}export function getModelDisplayName(_0x5500a3){const _0x39e859=a99_0x23ac,_0x1662ea=_0x5500a3['toLowerCase']();if(_0x1662ea['includes'](_0x39e859(0x120))){if(_0x1662ea[_0x39e859(0x119)]('4-5')||_0x1662ea[_0x39e859(0x119)](_0x39e859(0x11f)))return'Sonnet\x204.5';return _0x39e859(0x121);}if(_0x1662ea['includes'](_0x39e859(0x126))){if(_0x1662ea['includes'](_0x39e859(0x12e))||_0x1662ea[_0x39e859(0x119)](_0x39e859(0x11f)))return _0x39e859(0x124);return _0x39e859(0x12d);}if(_0x1662ea['includes'](_0x39e859(0x11b))){if(_0x1662ea[_0x39e859(0x119)](_0x39e859(0x12e))||_0x1662ea['includes'](_0x39e859(0x11f)))return'Opus\x204.5';return'Opus\x204';}return _0x39e859(0x12a);}export function formatTokenCount(_0x22ad56){const _0xa827bf=a99_0x23ac;return _0x22ad56[_0xa827bf(0x127)]('en-US');}export function calculateContextPercentage(_0x1ec077,_0x7de75e){const _0x249562=a99_0x23ac,_0x5c5b35=getContextLimit(_0x7de75e);return Math[_0x249562(0x12f)](_0x1ec077/_0x5c5b35*0x64);}
1
+ (function(_0x521ca2,_0x5bb8a7){const _0x4125e4=a99_0x293c,_0x4df880=_0x521ca2();while(!![]){try{const _0x39c7e4=-parseInt(_0x4125e4(0xdb))/0x1+-parseInt(_0x4125e4(0xe5))/0x2+-parseInt(_0x4125e4(0xdc))/0x3*(-parseInt(_0x4125e4(0xe0))/0x4)+parseInt(_0x4125e4(0xee))/0x5*(parseInt(_0x4125e4(0xd7))/0x6)+-parseInt(_0x4125e4(0xd8))/0x7+parseInt(_0x4125e4(0xe9))/0x8*(parseInt(_0x4125e4(0xe1))/0x9)+parseInt(_0x4125e4(0xda))/0xa*(parseInt(_0x4125e4(0xe3))/0xb);if(_0x39c7e4===_0x5bb8a7)break;else _0x4df880['push'](_0x4df880['shift']());}catch(_0x1fbfae){_0x4df880['push'](_0x4df880['shift']());}}}(a99_0x2f6d,0x4df9b));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x181105){const _0x55ebc0=a99_0x293c,_0xa8d4d6=_0x181105[_0x55ebc0(0xd9)]();if(MODEL_FACTORS[_0xa8d4d6])return MODEL_FACTORS[_0xa8d4d6];if(_0xa8d4d6[_0x55ebc0(0xe4)](_0x55ebc0(0xeb)))return MODEL_FACTORS[_0x55ebc0(0xeb)];if(_0xa8d4d6[_0x55ebc0(0xe4)](_0x55ebc0(0xe7)))return MODEL_FACTORS['haiku'];if(_0xa8d4d6[_0x55ebc0(0xe4)]('opus'))return MODEL_FACTORS[_0x55ebc0(0xe2)];return MODEL_FACTORS[_0x55ebc0(0xeb)];}export function getContextLimit(_0x26f0a4){const _0x3ea101=a99_0x293c,_0x557671=_0x26f0a4[_0x3ea101(0xd9)]();if(_0x557671['includes'](_0x3ea101(0xeb)))return CONTEXT_LIMITS[_0x3ea101(0xeb)];if(_0x557671['includes'](_0x3ea101(0xe7)))return CONTEXT_LIMITS[_0x3ea101(0xe7)];if(_0x557671[_0x3ea101(0xe4)](_0x3ea101(0xe2)))return CONTEXT_LIMITS[_0x3ea101(0xe2)];return CONTEXT_LIMITS[_0x3ea101(0xe6)];}function a99_0x2f6d(){const _0x191281=['957442tyhUFd','default','haiku','Opus\x204','1384xgPiZm','4-5','sonnet','en-US','Opus\x204.5','5BVHlVa','4.5','Haiku\x204.5','347034OWKQiD','1290625Aldbbn','toLowerCase','6070cOYklv','228496LjdzCt','3ksGKjB','Sonnet\x204.5','round','Claude','1858172pmxOAf','23697DbvHlu','opus','4224kHTDNI','includes'];a99_0x2f6d=function(){return _0x191281;};return a99_0x2f6d();}function a99_0x293c(_0x12a5d8,_0x30ec08){_0x12a5d8=_0x12a5d8-0xd6;const _0x2f6d63=a99_0x2f6d();let _0x293c57=_0x2f6d63[_0x12a5d8];return _0x293c57;}export function calculateChatUnit(_0xdd2c6f,_0x4b08bd,_0x5c13a1){return(_0xdd2c6f+_0x4b08bd)/0x1388*_0x5c13a1;}export function calculateCredits(_0x2dd457){return _0x2dd457/0x2904;}export function getModelDisplayName(_0x14f1d5){const _0x3955a2=a99_0x293c,_0x462250=_0x14f1d5['toLowerCase']();if(_0x462250[_0x3955a2(0xe4)]('sonnet')){if(_0x462250[_0x3955a2(0xe4)](_0x3955a2(0xea))||_0x462250[_0x3955a2(0xe4)]('4.5'))return _0x3955a2(0xdd);return'Sonnet\x204';}if(_0x462250[_0x3955a2(0xe4)](_0x3955a2(0xe7))){if(_0x462250['includes'](_0x3955a2(0xea))||_0x462250['includes'](_0x3955a2(0xef)))return _0x3955a2(0xd6);return'Haiku\x204';}if(_0x462250[_0x3955a2(0xe4)](_0x3955a2(0xe2))){if(_0x462250['includes'](_0x3955a2(0xea))||_0x462250['includes'](_0x3955a2(0xef)))return _0x3955a2(0xed);return _0x3955a2(0xe8);}return _0x3955a2(0xdf);}export function formatTokenCount(_0x289903){const _0x52c624=a99_0x293c;return _0x289903['toLocaleString'](_0x52c624(0xec));}export function calculateContextPercentage(_0x6f5bb8,_0x450fac){const _0x12a71f=a99_0x293c,_0x484bc4=getContextLimit(_0x450fac);return Math[_0x12a71f(0xde)](_0x6f5bb8/_0x484bc4*0x64);}
@@ -1 +1 @@
1
- function a100_0x571c(_0x5f2054,_0x372aea){_0x5f2054=_0x5f2054-0x177;const _0xc5d25a=a100_0xc5d2();let _0x571c88=_0xc5d25a[_0x5f2054];return _0x571c88;}function a100_0xc5d2(){const _0x274f86=['36584qbmHLO','3125zEDLQI','12469951VrNdie','24vvPRRr','3262791AvzCQM','498XzRXJg','5oODcIG','13283100EkCeYs','7513swRDsF','36JPyaDb','Invalid\x20timeout\x20value:\x20','150554Gohslu','15830nTpmLy','.\x20Must\x20be\x20a\x20positive\x20number.','isInteger','.\x20Must\x20be\x20a\x20positive\x20integer.','2658ygeUxS','Invalid\x20limit\x20value:\x20'];a100_0xc5d2=function(){return _0x274f86;};return a100_0xc5d2();}(function(_0x576f6f,_0x448475){const _0x207835=a100_0x571c,_0x8cc3d1=_0x576f6f();while(!![]){try{const _0x6858c3=parseInt(_0x207835(0x183))/0x1*(parseInt(_0x207835(0x188))/0x2)+parseInt(_0x207835(0x182))/0x3*(-parseInt(_0x207835(0x17d))/0x4)+-parseInt(_0x207835(0x17e))/0x5*(-parseInt(_0x207835(0x17b))/0x6)+-parseInt(_0x207835(0x181))/0x7*(-parseInt(_0x207835(0x180))/0x8)+-parseInt(_0x207835(0x184))/0x9+parseInt(_0x207835(0x177))/0xa*(-parseInt(_0x207835(0x185))/0xb)+-parseInt(_0x207835(0x186))/0xc*(-parseInt(_0x207835(0x17f))/0xd);if(_0x6858c3===_0x448475)break;else _0x8cc3d1['push'](_0x8cc3d1['shift']());}catch(_0x3a2f61){_0x8cc3d1['push'](_0x8cc3d1['shift']());}}}(a100_0xc5d2,0xd07c3));export function validateLimitOption(_0x5cb530){const _0xc0173d=a100_0x571c;if(!Number[_0xc0173d(0x179)](_0x5cb530))return{'isValid':![],'error':_0xc0173d(0x17c)+_0x5cb530+'.\x20Must\x20be\x20an\x20integer.'};if(_0x5cb530<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5cb530+_0xc0173d(0x17a)};return{'isValid':!![],'value':_0x5cb530};}export function validateTimeoutOption(_0x5f1a08,_0x5c2319=0x1e){const _0x126745=a100_0x571c;if(_0x5f1a08===undefined)return{'isValid':!![],'value':_0x5c2319};const _0x5a8e3c=typeof _0x5f1a08==='number'?_0x5f1a08:parseFloat(_0x5f1a08);if(isNaN(_0x5a8e3c))return{'isValid':![],'error':_0x126745(0x187)+_0x5f1a08+'.\x20Must\x20be\x20a\x20number.'};if(_0x5a8e3c<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5a8e3c+_0x126745(0x178)};return{'isValid':!![],'value':_0x5a8e3c};}
1
+ (function(_0x3f518e,_0xf9d55f){const _0x3603a2=a100_0x33aa,_0x46d202=_0x3f518e();while(!![]){try{const _0x5300e9=parseInt(_0x3603a2(0x128))/0x1+-parseInt(_0x3603a2(0x11c))/0x2+-parseInt(_0x3603a2(0x120))/0x3+-parseInt(_0x3603a2(0x119))/0x4*(-parseInt(_0x3603a2(0x123))/0x5)+-parseInt(_0x3603a2(0x124))/0x6*(-parseInt(_0x3603a2(0x11e))/0x7)+-parseInt(_0x3603a2(0x129))/0x8*(parseInt(_0x3603a2(0x127))/0x9)+-parseInt(_0x3603a2(0x122))/0xa*(-parseInt(_0x3603a2(0x11d))/0xb);if(_0x5300e9===_0xf9d55f)break;else _0x46d202['push'](_0x46d202['shift']());}catch(_0x1a46d6){_0x46d202['push'](_0x46d202['shift']());}}}(a100_0x1f4d,0x71f32));export function validateLimitOption(_0x141aab){const _0x2b08de=a100_0x33aa;if(!Number['isInteger'](_0x141aab))return{'isValid':![],'error':_0x2b08de(0x11f)+_0x141aab+_0x2b08de(0x11b)};if(_0x141aab<=0x0)return{'isValid':![],'error':_0x2b08de(0x11f)+_0x141aab+_0x2b08de(0x121)};return{'isValid':!![],'value':_0x141aab};}function a100_0x33aa(_0x119847,_0x2972b6){_0x119847=_0x119847-0x119;const _0x1f4d26=a100_0x1f4d();let _0x33aab6=_0x1f4d26[_0x119847];return _0x33aab6;}export function validateTimeoutOption(_0x2794a9,_0x44ff66=0x1e){const _0xfc8c15=a100_0x33aa;if(_0x2794a9===undefined)return{'isValid':!![],'value':_0x44ff66};const _0x235043=typeof _0x2794a9==='number'?_0x2794a9:parseFloat(_0x2794a9);if(isNaN(_0x235043))return{'isValid':![],'error':_0xfc8c15(0x126)+_0x2794a9+_0xfc8c15(0x125)};if(_0x235043<=0x0)return{'isValid':![],'error':_0xfc8c15(0x126)+_0x235043+_0xfc8c15(0x11a)};return{'isValid':!![],'value':_0x235043};}function a100_0x1f4d(){const _0x2080e9=['60683RFvHON','Invalid\x20limit\x20value:\x20','2662890bOyALM','.\x20Must\x20be\x20a\x20positive\x20integer.','790iNRnMk','1015zDJMuz','366otdMpZ','.\x20Must\x20be\x20a\x20number.','Invalid\x20timeout\x20value:\x20','63FPBaTG','77343zkOONZ','496328RoZDTT','6784YwwjuV','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20an\x20integer.','1372812hETeLz','212289KMLpor'];a100_0x1f4d=function(){return _0x2080e9;};return a100_0x1f4d();}
@@ -1 +1 @@
1
- (function(_0x4df969,_0x3e6b1a){const _0x508bd1=a101_0x49c7,_0x1818fc=_0x4df969();while(!![]){try{const _0x2f3008=-parseInt(_0x508bd1(0x12e))/0x1+-parseInt(_0x508bd1(0x12b))/0x2*(-parseInt(_0x508bd1(0x134))/0x3)+-parseInt(_0x508bd1(0x12c))/0x4*(parseInt(_0x508bd1(0x139))/0x5)+-parseInt(_0x508bd1(0x133))/0x6+parseInt(_0x508bd1(0x136))/0x7+parseInt(_0x508bd1(0x128))/0x8*(parseInt(_0x508bd1(0x132))/0x9)+-parseInt(_0x508bd1(0x12d))/0xa*(-parseInt(_0x508bd1(0x129))/0xb);if(_0x2f3008===_0x3e6b1a)break;else _0x1818fc['push'](_0x1818fc['shift']());}catch(_0x2af34a){_0x1818fc['push'](_0x1818fc['shift']());}}}(a101_0x4919,0x502c7));import{createServer}from'node:net';function a101_0x49c7(_0x399df5,_0xa0e272){_0x399df5=_0x399df5-0x127;const _0x4919cf=a101_0x4919();let _0x49c784=_0x4919cf[_0x399df5];return _0x49c784;}export async function isPortAvailable(_0x51cd66){return new Promise(_0x443372=>{const _0x5ac423=a101_0x49c7,_0x133eb2=createServer();_0x133eb2[_0x5ac423(0x127)](_0x5ac423(0x137),_0x1c81a=>{const _0x2f1d59=_0x5ac423;_0x1c81a[_0x2f1d59(0x131)]===_0x2f1d59(0x12a)?_0x443372(![]):_0x443372(![]);}),_0x133eb2[_0x5ac423(0x127)](_0x5ac423(0x130),()=>{_0x133eb2['close'](),_0x443372(!![]);}),_0x133eb2[_0x5ac423(0x12f)](_0x51cd66,_0x5ac423(0x138));});}function a101_0x4919(){const _0x518e9a=['code','38547mvmpUK','3095160vHVFRd','4722oyeekJ','\x20and\x20','106925sHDXpG','error','0.0.0.0','106015xkIpRD','No\x20available\x20port\x20found\x20between\x20','once','8yJaqfy','407bxRucC','EADDRINUSE','534YQrAzq','44ofkBZI','210730DmHcbq','142033wdILiL','listen','listening'];a101_0x4919=function(){return _0x518e9a;};return a101_0x4919();}export async function findAvailablePort(_0x3c6c8f=0xfa0,_0x54c86d=0x64){const _0x1ce546=a101_0x49c7;for(let _0x514342=0x0;_0x514342<_0x54c86d;_0x514342++){const _0x3ab11b=_0x3c6c8f+_0x514342;if(await isPortAvailable(_0x3ab11b))return _0x3ab11b;}throw new Error(_0x1ce546(0x13a)+_0x3c6c8f+_0x1ce546(0x135)+(_0x3c6c8f+_0x54c86d-0x1));}
1
+ (function(_0x31cdfe,_0x523be8){const _0x159202=a101_0x314e,_0x12c6a2=_0x31cdfe();while(!![]){try{const _0x3e9a32=parseInt(_0x159202(0x13f))/0x1*(-parseInt(_0x159202(0x14d))/0x2)+-parseInt(_0x159202(0x13c))/0x3+parseInt(_0x159202(0x14b))/0x4*(-parseInt(_0x159202(0x13d))/0x5)+-parseInt(_0x159202(0x142))/0x6+-parseInt(_0x159202(0x145))/0x7+parseInt(_0x159202(0x144))/0x8*(-parseInt(_0x159202(0x141))/0x9)+parseInt(_0x159202(0x146))/0xa*(parseInt(_0x159202(0x140))/0xb);if(_0x3e9a32===_0x523be8)break;else _0x12c6a2['push'](_0x12c6a2['shift']());}catch(_0x4028ba){_0x12c6a2['push'](_0x12c6a2['shift']());}}}(a101_0x413e,0x5440f));function a101_0x314e(_0x3bd9aa,_0x5313b7){_0x3bd9aa=_0x3bd9aa-0x13c;const _0x413e02=a101_0x413e();let _0x314eba=_0x413e02[_0x3bd9aa];return _0x314eba;}import{createServer}from'node:net';function a101_0x413e(){const _0xc63860=['once','56RTaTyk','code','170YNSleb','273513MpCiKz','218070QztJQU','\x20and\x20','3461dEAZki','121iRVsfx','258858GOBapx','2370294cjpqoh','0.0.0.0','32zFzQug','3587619PTYuvq','2148790gjDyet','error','EADDRINUSE','listen'];a101_0x413e=function(){return _0xc63860;};return a101_0x413e();}export async function isPortAvailable(_0x143fb0){return new Promise(_0x18e60d=>{const _0x2ab8ab=a101_0x314e,_0x5baf6d=createServer();_0x5baf6d[_0x2ab8ab(0x14a)](_0x2ab8ab(0x147),_0x409c1c=>{const _0x7a9b08=_0x2ab8ab;_0x409c1c[_0x7a9b08(0x14c)]===_0x7a9b08(0x148)?_0x18e60d(![]):_0x18e60d(![]);}),_0x5baf6d[_0x2ab8ab(0x14a)]('listening',()=>{_0x5baf6d['close'](),_0x18e60d(!![]);}),_0x5baf6d[_0x2ab8ab(0x149)](_0x143fb0,_0x2ab8ab(0x143));});}export async function findAvailablePort(_0x3ab259=0xfa0,_0x4ae611=0x64){const _0x292093=a101_0x314e;for(let _0x4dc424=0x0;_0x4dc424<_0x4ae611;_0x4dc424++){const _0x1d6116=_0x3ab259+_0x4dc424;if(await isPortAvailable(_0x1d6116))return _0x1d6116;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x3ab259+_0x292093(0x13e)+(_0x3ab259+_0x4ae611-0x1));}
@@ -1 +1 @@
1
- const a102_0x594425=a102_0x38fb;(function(_0x1f5e3d,_0x3554d6){const _0xa8442e=a102_0x38fb,_0x53934b=_0x1f5e3d();while(!![]){try{const _0x1d097c=-parseInt(_0xa8442e(0x12f))/0x1*(-parseInt(_0xa8442e(0x135))/0x2)+-parseInt(_0xa8442e(0x130))/0x3*(parseInt(_0xa8442e(0x138))/0x4)+-parseInt(_0xa8442e(0x124))/0x5*(-parseInt(_0xa8442e(0x136))/0x6)+parseInt(_0xa8442e(0x113))/0x7+parseInt(_0xa8442e(0x117))/0x8+-parseInt(_0xa8442e(0x125))/0x9*(parseInt(_0xa8442e(0x11d))/0xa)+-parseInt(_0xa8442e(0x13c))/0xb;if(_0x1d097c===_0x3554d6)break;else _0x53934b['push'](_0x53934b['shift']());}catch(_0x229d7e){_0x53934b['push'](_0x53934b['shift']());}}}(a102_0x4785,0x90f5b));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a102_0x594425(0x122),a102_0x594425(0x13b),'sh',a102_0x594425(0x115),a102_0x594425(0x134),a102_0x594425(0x11a),a102_0x594425(0x131),a102_0x594425(0x10c),a102_0x594425(0x13d),a102_0x594425(0x12e),'nu','ion',a102_0x594425(0x118),a102_0x594425(0x10f)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a102_0x594425(0x114),a102_0x594425(0x133),a102_0x594425(0x120)]);function getProcessInfoWindows(_0x135029){const _0x91f023=a102_0x594425;try{const _0x488359=execSync(_0x91f023(0x128)+_0x135029+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x91f023(0x10e),'windowsHide':!![]})['trim'](),_0x435600=_0x488359[_0x91f023(0x12b)]('\x0a')[_0x91f023(0x12a)](_0x381c59=>_0x381c59['trim']());if(_0x435600[_0x91f023(0x110)]<0x2)return null;const _0x21af90=_0x435600[_0x435600[_0x91f023(0x110)]-0x1][_0x91f023(0x12b)](',');if(_0x21af90[_0x91f023(0x110)]<0x3)return null;const _0x26593d=_0x21af90[0x1]?.[_0x91f023(0x13a)]()||'',_0x4eed5a=parseInt(_0x21af90[0x2]?.[_0x91f023(0x13a)]()||'0',0xa);if(isNaN(_0x4eed5a)||!_0x26593d)return null;return{'pid':_0x135029,'ppid':_0x4eed5a,'comm':_0x26593d[_0x91f023(0x111)](/\.exe$/i,'')};}catch(_0x520ee3){return process[_0x91f023(0x12d)]['DEBUG']&&console[_0x91f023(0x10d)](_0x91f023(0x119)+_0x135029+'\x20on\x20Windows:',_0x520ee3),null;}}function getProcessInfoPosix(_0x3efa95){const _0x26aff=a102_0x594425;try{const _0x5d8f9b=execSync(_0x26aff(0x129)+_0x3efa95+_0x26aff(0x11c),{'encoding':'utf-8'})[_0x26aff(0x13a)](),[_0x3054fe,..._0xbf2915]=_0x5d8f9b[_0x26aff(0x12b)](/\s+/),_0x487d17=parseInt(_0x3054fe,0xa),_0x324260=_0xbf2915[_0x26aff(0x12c)]('\x20');if(isNaN(_0x487d17))return null;return{'pid':_0x3efa95,'ppid':_0x487d17,'comm':_0x324260};}catch(_0x21ef1b){return process[_0x26aff(0x12d)]['DEBUG']&&console[_0x26aff(0x10d)](_0x26aff(0x119)+_0x3efa95+_0x26aff(0x11e),_0x21ef1b),null;}}function getProcessInfo(_0x334986){const _0x286b74=a102_0x594425;if(process[_0x286b74(0x112)]==='win32')return getProcessInfoWindows(_0x334986);return getProcessInfoPosix(_0x334986);}function getBasename(_0x1722f0){const _0xfdec9f=a102_0x594425;return _0x1722f0[_0xfdec9f(0x111)](/^-/,'')['split']('/')[_0xfdec9f(0x126)]()?.[_0xfdec9f(0x137)]()||'';}function isShell(_0x56c41f){const _0x52981c=a102_0x594425;return SHELL_NAMES[_0x52981c(0x11b)](getBasename(_0x56c41f));}function isEphemeralShellSpawner(_0x106bc8){const _0x2ba227=a102_0x594425;return EPHEMERAL_SHELL_SPAWNERS[_0x2ba227(0x11b)](getBasename(_0x106bc8));}let cachedShellPID;function a102_0x4785(){const _0x256348=['136yVGYqR','6LnoNSz','toLowerCase','25308aijqKe',',\x20using\x20fallback','trim','zsh','3113143itEsAe','pwsh','dash','error','utf-8','xonsh','length','replace','platform','1464939eLYZbh','claude','fish','comm','6076832CUgdEk','elvish','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','tcsh','has','\x20-o\x20ppid=,comm=','6945590CfcShh','\x20on\x20POSIX:','pid','cursor','ppid','bash',')\x20spawned\x20by\x20','5240545ZbuXSF','9nucgPP','pop','DEBUG','wmic\x20process\x20where\x20ProcessId=','ps\x20-p\x20','filter','split','join','env','powershell','5821XMPvfH','399DpBcwR','csh','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','code','ksh'];a102_0x4785=function(){return _0x256348;};return a102_0x4785();}function findShellPID(){const _0x536086=a102_0x594425;let _0x234490=process[_0x536086(0x121)];const _0x3a0b60=0xa;let _0x3c5701=0x0;while(_0x3c5701<_0x3a0b60){const _0x327af8=getProcessInfo(_0x234490);if(!_0x327af8){process[_0x536086(0x12d)][_0x536086(0x127)]&&console[_0x536086(0x10d)](_0x536086(0x132)+_0x234490+_0x536086(0x139));break;}if(isShell(_0x327af8[_0x536086(0x116)])){const _0xf36aa3=getProcessInfo(_0x327af8[_0x536086(0x121)]);if(_0xf36aa3&&isEphemeralShellSpawner(_0xf36aa3['comm'])){process[_0x536086(0x12d)][_0x536086(0x127)]&&console[_0x536086(0x10d)]('Found\x20ephemeral\x20shell\x20'+_0x327af8[_0x536086(0x11f)]+'\x20('+_0x327af8[_0x536086(0x116)]+_0x536086(0x123)+_0xf36aa3['comm']+',\x20continuing\x20up');_0x234490=_0x327af8[_0x536086(0x121)],_0x3c5701++;continue;}return _0x327af8[_0x536086(0x11f)];}if(_0x327af8[_0x536086(0x121)]===0x0||_0x327af8[_0x536086(0x121)]===0x1){if(isShell(_0x327af8[_0x536086(0x116)]))return _0x327af8[_0x536086(0x11f)];break;}_0x234490=_0x327af8[_0x536086(0x121)],_0x3c5701++;}return process[_0x536086(0x12d)][_0x536086(0x127)]&&console[_0x536086(0x10d)]('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process[_0x536086(0x121)];}function a102_0x38fb(_0x402602,_0xdd9f1){_0x402602=_0x402602-0x10c;const _0x4785ba=a102_0x4785();let _0x38fb21=_0x4785ba[_0x402602];return _0x38fb21;}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3146fa){try{return process['kill'](_0x3146fa,0x0),!![];}catch{return![];}}
1
+ const a102_0x794313=a102_0x5998;(function(_0x3a8c88,_0x131ef9){const _0x1e7e09=a102_0x5998,_0x44df07=_0x3a8c88();while(!![]){try{const _0xb4316d=-parseInt(_0x1e7e09(0x109))/0x1*(-parseInt(_0x1e7e09(0xf8))/0x2)+-parseInt(_0x1e7e09(0x101))/0x3+parseInt(_0x1e7e09(0xe6))/0x4+parseInt(_0x1e7e09(0xe5))/0x5+-parseInt(_0x1e7e09(0xf0))/0x6+parseInt(_0x1e7e09(0xf6))/0x7+-parseInt(_0x1e7e09(0x102))/0x8;if(_0xb4316d===_0x131ef9)break;else _0x44df07['push'](_0x44df07['shift']());}catch(_0x13900a){_0x44df07['push'](_0x44df07['shift']());}}}(a102_0x1e23,0x273ce));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a102_0x794313(0xec),a102_0x794313(0x106),'sh',a102_0x794313(0xfb),a102_0x794313(0xe1),a102_0x794313(0xe8),a102_0x794313(0xf3),a102_0x794313(0x10e),a102_0x794313(0x108),'powershell','nu','ion',a102_0x794313(0xf4),a102_0x794313(0x10c)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a102_0x794313(0x103),a102_0x794313(0xfe),a102_0x794313(0xf2)]);function a102_0x5998(_0x29c6ea,_0x4b556e){_0x29c6ea=_0x29c6ea-0xe1;const _0x1e23c2=a102_0x1e23();let _0x599850=_0x1e23c2[_0x29c6ea];return _0x599850;}function getProcessInfoWindows(_0x1e41f4){const _0x59f4f3=a102_0x794313;try{const _0x4c8dd3=execSync('wmic\x20process\x20where\x20ProcessId='+_0x1e41f4+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x59f4f3(0xe4),'windowsHide':!![]})[_0x59f4f3(0xe7)](),_0x54e3e1=_0x4c8dd3['split']('\x0a')[_0x59f4f3(0xf5)](_0xdbb05e=>_0xdbb05e['trim']());if(_0x54e3e1[_0x59f4f3(0x105)]<0x2)return null;const _0x549ee0=_0x54e3e1[_0x54e3e1[_0x59f4f3(0x105)]-0x1][_0x59f4f3(0xfd)](',');if(_0x549ee0[_0x59f4f3(0x105)]<0x3)return null;const _0x5b760d=_0x549ee0[0x1]?.['trim']()||'',_0x4ff84c=parseInt(_0x549ee0[0x2]?.[_0x59f4f3(0xe7)]()||'0',0xa);if(isNaN(_0x4ff84c)||!_0x5b760d)return null;return{'pid':_0x1e41f4,'ppid':_0x4ff84c,'comm':_0x5b760d['replace'](/\.exe$/i,'')};}catch(_0x54051e){return process[_0x59f4f3(0x110)][_0x59f4f3(0x10d)]&&console[_0x59f4f3(0xf1)](_0x59f4f3(0xfa)+_0x1e41f4+_0x59f4f3(0xef),_0x54051e),null;}}function getProcessInfoPosix(_0xdafb68){const _0x1c4caf=a102_0x794313;try{const _0x4197f9=execSync(_0x1c4caf(0xfc)+_0xdafb68+_0x1c4caf(0xff),{'encoding':_0x1c4caf(0xe4)})[_0x1c4caf(0xe7)](),[_0x5a922f,..._0x16fba6]=_0x4197f9[_0x1c4caf(0xfd)](/\s+/),_0x324a56=parseInt(_0x5a922f,0xa),_0x3d9f44=_0x16fba6[_0x1c4caf(0x111)]('\x20');if(isNaN(_0x324a56))return null;return{'pid':_0xdafb68,'ppid':_0x324a56,'comm':_0x3d9f44};}catch(_0x3be435){return process[_0x1c4caf(0x110)]['DEBUG']&&console['error'](_0x1c4caf(0xfa)+_0xdafb68+_0x1c4caf(0xe9),_0x3be435),null;}}function getProcessInfo(_0x2f2ee5){const _0x25efed=a102_0x794313;if(process[_0x25efed(0xf7)]===_0x25efed(0xe2))return getProcessInfoWindows(_0x2f2ee5);return getProcessInfoPosix(_0x2f2ee5);}function getBasename(_0x23890e){const _0xc5f907=a102_0x794313;return _0x23890e[_0xc5f907(0x107)](/^-/,'')[_0xc5f907(0xfd)]('/')[_0xc5f907(0xee)]()?.['toLowerCase']()||'';}function a102_0x1e23(){const _0x46bbdc=['pop','\x20on\x20Windows:','1787682HUyOGy','error','cursor','csh','elvish','filter','888020mHOVuH','platform','50GTXGWp','pid','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','fish','ps\x20-p\x20','split','code','\x20-o\x20ppid=,comm=','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','64500diKLOB','1304000hMEpfR','claude',',\x20continuing\x20up','length','zsh','replace','pwsh','11667sCafyF',',\x20using\x20fallback','ppid','xonsh','DEBUG','dash','comm','env','join','ksh','win32','has','utf-8','503455avGSYm','495756UPJyxu','trim','tcsh','\x20on\x20POSIX:',')\x20spawned\x20by\x20','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','bash','kill'];a102_0x1e23=function(){return _0x46bbdc;};return a102_0x1e23();}function isShell(_0x58cfff){const _0x4bffb6=a102_0x794313;return SHELL_NAMES[_0x4bffb6(0xe3)](getBasename(_0x58cfff));}function isEphemeralShellSpawner(_0x3172e4){const _0x44a8c7=a102_0x794313;return EPHEMERAL_SHELL_SPAWNERS[_0x44a8c7(0xe3)](getBasename(_0x3172e4));}let cachedShellPID;function findShellPID(){const _0x1adfcc=a102_0x794313;let _0x570fb1=process['ppid'];const _0x2ee799=0xa;let _0x25eb33=0x0;while(_0x25eb33<_0x2ee799){const _0x58aab6=getProcessInfo(_0x570fb1);if(!_0x58aab6){process[_0x1adfcc(0x110)][_0x1adfcc(0x10d)]&&console[_0x1adfcc(0xf1)](_0x1adfcc(0x100)+_0x570fb1+_0x1adfcc(0x10a));break;}if(isShell(_0x58aab6[_0x1adfcc(0x10f)])){const _0x436721=getProcessInfo(_0x58aab6['ppid']);if(_0x436721&&isEphemeralShellSpawner(_0x436721[_0x1adfcc(0x10f)])){process[_0x1adfcc(0x110)][_0x1adfcc(0x10d)]&&console[_0x1adfcc(0xf1)]('Found\x20ephemeral\x20shell\x20'+_0x58aab6[_0x1adfcc(0xf9)]+'\x20('+_0x58aab6[_0x1adfcc(0x10f)]+_0x1adfcc(0xea)+_0x436721['comm']+_0x1adfcc(0x104));_0x570fb1=_0x58aab6['ppid'],_0x25eb33++;continue;}return _0x58aab6[_0x1adfcc(0xf9)];}if(_0x58aab6['ppid']===0x0||_0x58aab6['ppid']===0x1){if(isShell(_0x58aab6[_0x1adfcc(0x10f)]))return _0x58aab6[_0x1adfcc(0xf9)];break;}_0x570fb1=_0x58aab6[_0x1adfcc(0x10b)],_0x25eb33++;}return process[_0x1adfcc(0x110)][_0x1adfcc(0x10d)]&&console[_0x1adfcc(0xf1)](_0x1adfcc(0xeb)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x126205){const _0x2a700a=a102_0x794313;try{return process[_0x2a700a(0xed)](_0x126205,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x35ff36,_0x208daa){const _0x545ebb=a103_0x3628,_0x34790a=_0x35ff36();while(!![]){try{const _0x301408=-parseInt(_0x545ebb(0x1d1))/0x1*(-parseInt(_0x545ebb(0x1cc))/0x2)+parseInt(_0x545ebb(0x1d0))/0x3*(parseInt(_0x545ebb(0x1c5))/0x4)+parseInt(_0x545ebb(0x1ce))/0x5+-parseInt(_0x545ebb(0x1c4))/0x6+parseInt(_0x545ebb(0x1c3))/0x7*(-parseInt(_0x545ebb(0x1c8))/0x8)+-parseInt(_0x545ebb(0x1cd))/0x9+-parseInt(_0x545ebb(0x1bc))/0xa*(parseInt(_0x545ebb(0x1c6))/0xb);if(_0x301408===_0x208daa)break;else _0x34790a['push'](_0x34790a['shift']());}catch(_0x4df45c){_0x34790a['push'](_0x34790a['shift']());}}}(a103_0x180b,0x72a51));import*as a103_0x1a889c from'readline';export async function confirm(_0x13cf20){const _0x99e135=a103_0x3628,_0x97be9a=a103_0x1a889c[_0x99e135(0x1bf)]({'input':process[_0x99e135(0x1bd)],'output':process[_0x99e135(0x1ba)]});return new Promise(_0x5447cd=>{const _0x555e14=_0x99e135;_0x97be9a[_0x555e14(0x1d5)](_0x13cf20+_0x555e14(0x1c0),_0x448882=>{const _0x5cd8f9=_0x555e14;_0x97be9a['close'](),_0x5447cd(_0x448882[_0x5cd8f9(0x1d4)]()==='y'||_0x448882['toLowerCase']()===_0x5cd8f9(0x1c2));});});}function a103_0x180b(){const _0x4ecc08=['8DlMKlO','pause','stderr','write','20QObGFe','1910898IFWlGS','3027565JfCKlH','\x20[y/N]\x20','507PgYNKY','73774NVknhJ','setEncoding','resume','toLowerCase','question','stdout','exit','10Tgkpno','stdin','utf8','createInterface','\x20(y/N):\x20','isTTY','yes','2199057MSTBJi','5304822RVOXht','18792VUJvxe','2827220qnUqIr','removeListener'];a103_0x180b=function(){return _0x4ecc08;};return a103_0x180b();}function a103_0x3628(_0x225634,_0x21e8d1){_0x225634=_0x225634-0x1ba;const _0x180bbc=a103_0x180b();let _0x36282a=_0x180bbc[_0x225634];return _0x36282a;}export async function confirmKey(_0x2998b9){const _0x4ccec2=a103_0x3628;if(!process[_0x4ccec2(0x1bd)][_0x4ccec2(0x1c1)])return![];return process['stderr'][_0x4ccec2(0x1cb)](_0x2998b9+_0x4ccec2(0x1cf)),new Promise(_0x1a135c=>{const _0x3497f9=_0x4ccec2,_0x1e6821=process[_0x3497f9(0x1bd)];_0x1e6821['setRawMode'](!![]),_0x1e6821[_0x3497f9(0x1d3)](),_0x1e6821[_0x3497f9(0x1d2)](_0x3497f9(0x1be));const _0xf6e66c=_0xc9a967=>{const _0x3c3991=_0x3497f9;_0x1e6821['setRawMode'](![]),_0x1e6821[_0x3c3991(0x1c9)](),_0x1e6821[_0x3c3991(0x1c7)]('data',_0xf6e66c);if(_0xc9a967==='\x1b'){process[_0x3c3991(0x1ca)][_0x3c3991(0x1cb)]('\x0a'),_0x1a135c(![]);return;}_0xc9a967==='\x03'&&(process[_0x3c3991(0x1ca)][_0x3c3991(0x1cb)]('\x0a'),process[_0x3c3991(0x1bb)](0x82));if(_0xc9a967[_0x3c3991(0x1d4)]()==='y'){process[_0x3c3991(0x1ca)][_0x3c3991(0x1cb)]('y\x0a'),_0x1a135c(!![]);return;}process['stderr']['write']('\x0a'),_0x1a135c(![]);};_0x1e6821['on']('data',_0xf6e66c);});}
1
+ function a103_0x46a5(){const _0x2f1901=['removeListener','\x20[y/N]\x20','stderr','setRawMode','pause','157460UkHcyt','exit','createInterface','657dWFLAF','setEncoding','resume','stdin','47056009YWVcgI','toLowerCase','8789712RqADtZ','data','\x20(y/N):\x20','yes','stdout','4481924aDJVHY','396uCyFrW','240667CaowBH','isTTY','utf8','write','30deWIfe','5EkXRww','788561aWfxfk','4467jiJNDF','question'];a103_0x46a5=function(){return _0x2f1901;};return a103_0x46a5();}function a103_0x59e8(_0x513039,_0x43d9b7){_0x513039=_0x513039-0x1ef;const _0x46a53f=a103_0x46a5();let _0x59e899=_0x46a53f[_0x513039];return _0x59e899;}(function(_0x321371,_0x49b668){const _0x14326f=a103_0x59e8,_0x4c1626=_0x321371();while(!![]){try{const _0x41adab=-parseInt(_0x14326f(0x206))/0x1+-parseInt(_0x14326f(0x1ff))/0x2*(-parseInt(_0x14326f(0x207))/0x3)+parseInt(_0x14326f(0x1fe))/0x4*(-parseInt(_0x14326f(0x205))/0x5)+-parseInt(_0x14326f(0x204))/0x6*(-parseInt(_0x14326f(0x200))/0x7)+-parseInt(_0x14326f(0x1f9))/0x8+parseInt(_0x14326f(0x1f3))/0x9*(-parseInt(_0x14326f(0x1f0))/0xa)+parseInt(_0x14326f(0x1f7))/0xb;if(_0x41adab===_0x49b668)break;else _0x4c1626['push'](_0x4c1626['shift']());}catch(_0x3be637){_0x4c1626['push'](_0x4c1626['shift']());}}}(a103_0x46a5,0x8f644));import*as a103_0x47bfb7 from'readline';export async function confirm(_0x20ffaf){const _0x40953a=a103_0x59e8,_0x541e18=a103_0x47bfb7[_0x40953a(0x1f2)]({'input':process['stdin'],'output':process[_0x40953a(0x1fd)]});return new Promise(_0x1fb887=>{const _0x23ef74=_0x40953a;_0x541e18[_0x23ef74(0x208)](_0x20ffaf+_0x23ef74(0x1fb),_0x45e135=>{const _0x5e2824=_0x23ef74;_0x541e18['close'](),_0x1fb887(_0x45e135[_0x5e2824(0x1f8)]()==='y'||_0x45e135[_0x5e2824(0x1f8)]()===_0x5e2824(0x1fc));});});}export async function confirmKey(_0x36d3af){const _0x2b7fe9=a103_0x59e8;if(!process[_0x2b7fe9(0x1f6)][_0x2b7fe9(0x201)])return![];return process[_0x2b7fe9(0x20b)][_0x2b7fe9(0x203)](_0x36d3af+_0x2b7fe9(0x20a)),new Promise(_0x175802=>{const _0x2f73dc=_0x2b7fe9,_0x3529e2=process[_0x2f73dc(0x1f6)];_0x3529e2[_0x2f73dc(0x20c)](!![]),_0x3529e2[_0x2f73dc(0x1f5)](),_0x3529e2[_0x2f73dc(0x1f4)](_0x2f73dc(0x202));const _0x5b6b28=_0x9bd39b=>{const _0x122ccd=_0x2f73dc;_0x3529e2['setRawMode'](![]),_0x3529e2[_0x122ccd(0x1ef)](),_0x3529e2[_0x122ccd(0x209)](_0x122ccd(0x1fa),_0x5b6b28);if(_0x9bd39b==='\x1b'){process['stderr']['write']('\x0a'),_0x175802(![]);return;}_0x9bd39b==='\x03'&&(process['stderr'][_0x122ccd(0x203)]('\x0a'),process[_0x122ccd(0x1f1)](0x82));if(_0x9bd39b['toLowerCase']()==='y'){process[_0x122ccd(0x20b)][_0x122ccd(0x203)]('y\x0a'),_0x175802(!![]);return;}process[_0x122ccd(0x20b)]['write']('\x0a'),_0x175802(![]);};_0x3529e2['on'](_0x2f73dc(0x1fa),_0x5b6b28);});}
@@ -1 +1 @@
1
- (function(_0x2ef391,_0x5dadda){const _0x3eeb47=a104_0x3f44,_0x245b7e=_0x2ef391();while(!![]){try{const _0x40559d=-parseInt(_0x3eeb47(0x129))/0x1*(-parseInt(_0x3eeb47(0x136))/0x2)+-parseInt(_0x3eeb47(0x134))/0x3*(-parseInt(_0x3eeb47(0x142))/0x4)+-parseInt(_0x3eeb47(0x151))/0x5*(parseInt(_0x3eeb47(0x146))/0x6)+-parseInt(_0x3eeb47(0x14b))/0x7*(-parseInt(_0x3eeb47(0x13f))/0x8)+parseInt(_0x3eeb47(0x13d))/0x9+parseInt(_0x3eeb47(0x130))/0xa+-parseInt(_0x3eeb47(0x128))/0xb;if(_0x40559d===_0x5dadda)break;else _0x245b7e['push'](_0x245b7e['shift']());}catch(_0x1d6a46){_0x245b7e['push'](_0x245b7e['shift']());}}}(a104_0x5cf9,0xed768));import{existsSync,readFileSync}from'fs';import a104_0x1a73b3 from'path';import{parse as a104_0x1678d7}from'yaml';export function parsePath(_0x490ecf){const _0x80d503=a104_0x3f44;if(!_0x490ecf||_0x490ecf[_0x80d503(0x145)]()==='')throw new Error(_0x80d503(0x147));const _0x2ed834=_0x490ecf['trim']();if(_0x2ed834==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x490ecf};const _0x479dfd=_0x2ed834[_0x80d503(0x149)]('/')?_0x2ed834[_0x80d503(0x14c)](0x1):_0x2ed834,_0x4ffe18=_0x479dfd['split']('/')['filter'](_0x489974=>_0x489974!=='');if(_0x4ffe18[_0x80d503(0x13b)]===0x0)throw new Error(_0x80d503(0x13a));const _0x3b6b17=_0x2ed834[_0x80d503(0x149)]('/')||!isRelativePathSegment(_0x4ffe18[0x0]);for(const _0x17d2dc of _0x4ffe18){validatePathSegment(_0x17d2dc);}return{'segments':_0x4ffe18,'isAbsolute':_0x3b6b17,'raw':_0x490ecf};}function isRelativePathSegment(_0x10f16e){return _0x10f16e==='.'||_0x10f16e==='..';}function a104_0x3f44(_0x563fe1,_0x1e78c6){_0x563fe1=_0x563fe1-0x127;const _0x5cf9a2=a104_0x5cf9();let _0x3f443c=_0x5cf9a2[_0x563fe1];return _0x3f443c;}function validatePathSegment(_0x595fe0){const _0x77113d=a104_0x3f44;if(_0x595fe0==='')throw new Error(_0x77113d(0x150));if(_0x595fe0==='.'||_0x595fe0==='..')return;if(/[\x00-\x1F\x7F]/[_0x77113d(0x14a)](_0x595fe0))throw new Error(_0x77113d(0x132)+_0x595fe0);if(_0x595fe0!==_0x595fe0['trim']()){}}export function validatePath(_0xca6014){const _0x566865=a104_0x3f44;if(_0xca6014[_0x566865(0x140)]['length']===0x0&&!_0xca6014[_0x566865(0x139)])throw new Error(_0x566865(0x14e));if(_0xca6014['isAbsolute']){if(_0xca6014['segments'][0x0]==='..')throw new Error(_0x566865(0x12d));let _0x23753e=0x0;for(const _0x48fd83 of _0xca6014[_0x566865(0x140)]){if(_0x48fd83==='..'){if(_0x23753e===0x0)throw new Error(_0x566865(0x143));_0x23753e--;}else _0x48fd83!=='.'&&_0x23753e++;}}}export function joinPaths(_0xeb876d,_0xc7107c){const _0x3026a9=a104_0x3f44;if(!_0xeb876d||_0xeb876d==='/')return _0xc7107c;if(!_0xc7107c||_0xc7107c==='.')return _0xeb876d;if(_0xc7107c['startsWith']('/'))return _0xc7107c;const _0x4e0bfb=parsePath(_0xeb876d),_0x59c3b1=parsePath(_0xc7107c),_0x5ae7fe=[..._0x4e0bfb['segments']];for(const _0x32e93b of _0x59c3b1[_0x3026a9(0x140)]){if(_0x32e93b==='.')continue;else{if(_0x32e93b==='..'){if(_0x5ae7fe[_0x3026a9(0x13b)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x5ae7fe[_0x3026a9(0x127)]();}else _0x5ae7fe[_0x3026a9(0x14d)](_0x32e93b);}}const _0x3ab484=_0x5ae7fe[_0x3026a9(0x141)]('/');return _0x4e0bfb[_0x3026a9(0x12f)][_0x3026a9(0x149)]('/')?'/'+_0x3ab484:_0x3ab484;}export function normalizePath(_0x344e2e){const _0x576be9=a104_0x3f44,_0x4fb173=parsePath(_0x344e2e),_0x1764ec=[];for(const _0x56ab9a of _0x4fb173[_0x576be9(0x140)]){if(_0x56ab9a==='.')continue;else{if(_0x56ab9a==='..'){if(_0x1764ec['length']===0x0){if(_0x4fb173['isAbsolute'])throw new Error(_0x576be9(0x12e));_0x1764ec[_0x576be9(0x14d)]('..');}else _0x1764ec[_0x1764ec[_0x576be9(0x13b)]-0x1]==='..'?_0x1764ec[_0x576be9(0x14d)]('..'):_0x1764ec['pop']();}else _0x1764ec[_0x576be9(0x14d)](_0x56ab9a);}}if(_0x1764ec[_0x576be9(0x13b)]===0x0)return _0x4fb173[_0x576be9(0x139)]?'/':'.';const _0x4a1f5b=_0x1764ec[_0x576be9(0x141)]('/');return _0x4fb173[_0x576be9(0x12f)]['startsWith']('/')?'/'+_0x4a1f5b:_0x4a1f5b;}export function getParentPath(_0x3d4e66){const _0x32bde4=a104_0x3f44,_0x27307b=parsePath(_0x3d4e66);if(_0x27307b[_0x32bde4(0x140)]['length']<=0x1)return'/';const _0x549457=_0x27307b[_0x32bde4(0x140)][_0x32bde4(0x12b)](0x0,-0x1)[_0x32bde4(0x141)]('/');return _0x27307b[_0x32bde4(0x12f)]['startsWith']('/')?'/'+_0x549457:_0x549457;}export function getBaseName(_0xadaba3){const _0x3e4aea=a104_0x3f44,_0x2c9bbc=parsePath(_0xadaba3);return _0x2c9bbc[_0x3e4aea(0x140)][_0x2c9bbc[_0x3e4aea(0x140)][_0x3e4aea(0x13b)]-0x1]||'';}export function isChildPath(_0x3b8a8f,_0x81accb){const _0x23de6f=a104_0x3f44,_0x3b3055=parsePath(_0x3b8a8f),_0x426626=parsePath(_0x81accb);if(_0x3b3055['segments'][_0x23de6f(0x13b)]<=_0x426626[_0x23de6f(0x140)][_0x23de6f(0x13b)])return![];for(let _0x22ff05=0x0;_0x22ff05<_0x426626[_0x23de6f(0x140)][_0x23de6f(0x13b)];_0x22ff05++){if(_0x3b3055[_0x23de6f(0x140)][_0x22ff05]!==_0x426626[_0x23de6f(0x140)][_0x22ff05])return![];}return!![];}export function splitPath(_0x1e7743){const _0x4f510d=a104_0x3f44,_0x514d4d=parsePath(_0x1e7743);if(_0x514d4d[_0x4f510d(0x140)]['length']===0x0)throw new Error(_0x4f510d(0x137));if(_0x514d4d['segments'][_0x4f510d(0x13b)]===0x1)return{'parent':_0x514d4d['segments'][0x0]};return{'parent':_0x514d4d[_0x4f510d(0x140)][0x0],'child':_0x514d4d[_0x4f510d(0x140)]['slice'](0x1)['join']('/')};}export function isYamlFilePath(_0x423bda){const _0x44eab0=a104_0x3f44;return _0x423bda[_0x44eab0(0x14f)]('.yml')||_0x423bda[_0x44eab0(0x14f)](_0x44eab0(0x152));}export function resolveYamlFilePath(_0x4e86be){const _0x5bc870=a104_0x3f44,_0x55397b=a104_0x1a73b3[_0x5bc870(0x12c)](_0x4e86be);if(!existsSync(_0x55397b))throw new Error('File\x20not\x20found:\x20'+_0x4e86be);let _0x2b40b8=a104_0x1a73b3[_0x5bc870(0x138)](_0x55397b),_0x8e3d91=null,_0x572912=null;const _0x17ac4b=a104_0x1a73b3[_0x5bc870(0x148)](_0x2b40b8)[_0x5bc870(0x12a)];while(_0x2b40b8!==_0x17ac4b){const _0x124bf4=a104_0x1a73b3[_0x5bc870(0x141)](_0x2b40b8,_0x5bc870(0x135));if(existsSync(_0x124bf4)){_0x8e3d91=_0x124bf4,_0x572912=_0x2b40b8;break;}_0x2b40b8=a104_0x1a73b3[_0x5bc870(0x138)](_0x2b40b8);}if(!_0x8e3d91||!_0x572912)throw new Error('No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x4e86be);const _0x10d050=readFileSync(_0x8e3d91,_0x5bc870(0x13c)),_0x3ff8c2=JSON[_0x5bc870(0x148)](_0x10d050),_0x3840ab=_0x3ff8c2[_0x5bc870(0x13e)];if(!_0x3840ab)throw new Error(_0x5bc870(0x144));const _0x7aa8a8=readFileSync(_0x55397b,_0x5bc870(0x13c)),_0x1c6bf1=a104_0x1678d7(_0x7aa8a8),_0x5b8865=_0x1c6bf1[_0x5bc870(0x131)];if(!_0x5b8865)throw new Error(_0x5bc870(0x133)+_0x4e86be);const _0x1c2c93=a104_0x1a73b3['relative'](_0x572912,_0x55397b),_0x1a064c=a104_0x1a73b3[_0x5bc870(0x138)](_0x1c2c93),_0x4aa9a9=_0x1a064c==='.'?'':_0x1a064c['replace'](/\\/g,'/'),_0x24c446=_0x4aa9a9?_0x3840ab+'/'+_0x4aa9a9+'/'+_0x5b8865:_0x3840ab+'/'+_0x5b8865;return{'parentSegment':_0x3840ab,'segmentName':_0x5b8865,'folderPath':_0x4aa9a9,'fullPath':_0x24c446};}function a104_0x5cf9(){const _0x3d1244=['22kyomaF','Cannot\x20split\x20empty\x20path','dirname','isAbsolute','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','length','utf-8','754812thfywg','parent_segment','8WvuMgU','segments','join','2236uROQbT','Path\x20attempts\x20to\x20navigate\x20above\x20root','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','trim','6uzkmOb','Path\x20cannot\x20be\x20empty','parse','startsWith','test','7457485uDqpoa','substring','push','Relative\x20path\x20cannot\x20be\x20empty','endsWith','Path\x20segment\x20cannot\x20be\x20empty','5561605FpUgoZ','.yaml','pop','27572314wjNRbY','53401Zzquai','root','slice','resolve','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20navigate\x20above\x20root','raw','19085220aPRAgD','name','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Invalid\x20segment\x20YAML:\x20missing\x20name\x20field\x20in\x20','5079WEHmQD','tdx.json'];a104_0x5cf9=function(){return _0x3d1244;};return a104_0x5cf9();}
1
+ (function(_0x14d6eb,_0x43e16b){const _0x43d455=a104_0x2dfb,_0x491cb5=_0x14d6eb();while(!![]){try{const _0x19fcf4=-parseInt(_0x43d455(0x91))/0x1*(-parseInt(_0x43d455(0x9b))/0x2)+parseInt(_0x43d455(0x9f))/0x3+-parseInt(_0x43d455(0xa6))/0x4+-parseInt(_0x43d455(0xae))/0x5*(-parseInt(_0x43d455(0xa2))/0x6)+-parseInt(_0x43d455(0x90))/0x7*(parseInt(_0x43d455(0xaf))/0x8)+-parseInt(_0x43d455(0x8c))/0x9+-parseInt(_0x43d455(0xb0))/0xa*(parseInt(_0x43d455(0xab))/0xb);if(_0x19fcf4===_0x43e16b)break;else _0x491cb5['push'](_0x491cb5['shift']());}catch(_0x3836a0){_0x491cb5['push'](_0x491cb5['shift']());}}}(a104_0x3010,0x53c4a));import{existsSync,readFileSync}from'fs';import a104_0x3c04bb from'path';import{parse as a104_0x2ac202}from'yaml';export function parsePath(_0x5896f6){const _0x5ccd87=a104_0x2dfb;if(!_0x5896f6||_0x5896f6['trim']()==='')throw new Error(_0x5ccd87(0x98));const _0x8b1e91=_0x5896f6[_0x5ccd87(0x8e)]();if(_0x8b1e91==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5896f6};const _0x349283=_0x8b1e91[_0x5ccd87(0x95)]('/')?_0x8b1e91['substring'](0x1):_0x8b1e91,_0x108cd5=_0x349283['split']('/')[_0x5ccd87(0xa4)](_0x32f387=>_0x32f387!=='');if(_0x108cd5[_0x5ccd87(0xa8)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x215790=_0x8b1e91[_0x5ccd87(0x95)]('/')||!isRelativePathSegment(_0x108cd5[0x0]);for(const _0x1eb33c of _0x108cd5){validatePathSegment(_0x1eb33c);}return{'segments':_0x108cd5,'isAbsolute':_0x215790,'raw':_0x5896f6};}function isRelativePathSegment(_0x1c972d){return _0x1c972d==='.'||_0x1c972d==='..';}function validatePathSegment(_0x15c3af){const _0xad7c30=a104_0x2dfb;if(_0x15c3af==='')throw new Error(_0xad7c30(0x8f));if(_0x15c3af==='.'||_0x15c3af==='..')return;if(/[\x00-\x1F\x7F]/[_0xad7c30(0x9d)](_0x15c3af))throw new Error(_0xad7c30(0x9e)+_0x15c3af);if(_0x15c3af!==_0x15c3af['trim']()){}}export function validatePath(_0x5b684a){const _0x2a0169=a104_0x2dfb;if(_0x5b684a[_0x2a0169(0xac)][_0x2a0169(0xa8)]===0x0&&!_0x5b684a[_0x2a0169(0xa0)])throw new Error(_0x2a0169(0x9a));if(_0x5b684a[_0x2a0169(0xa0)]){if(_0x5b684a['segments'][0x0]==='..')throw new Error(_0x2a0169(0xa3));let _0x480384=0x0;for(const _0x5b0041 of _0x5b684a[_0x2a0169(0xac)]){if(_0x5b0041==='..'){if(_0x480384===0x0)throw new Error(_0x2a0169(0x9c));_0x480384--;}else _0x5b0041!=='.'&&_0x480384++;}}}export function joinPaths(_0x3046a4,_0x2c7730){const _0x1f8e40=a104_0x2dfb;if(!_0x3046a4||_0x3046a4==='/')return _0x2c7730;if(!_0x2c7730||_0x2c7730==='.')return _0x3046a4;if(_0x2c7730['startsWith']('/'))return _0x2c7730;const _0x297cd6=parsePath(_0x3046a4),_0x529d97=parsePath(_0x2c7730),_0x52094d=[..._0x297cd6['segments']];for(const _0x8d2693 of _0x529d97['segments']){if(_0x8d2693==='.')continue;else{if(_0x8d2693==='..'){if(_0x52094d[_0x1f8e40(0xa8)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x52094d['pop']();}else _0x52094d['push'](_0x8d2693);}}const _0x9b290a=_0x52094d[_0x1f8e40(0x8d)]('/');return _0x297cd6[_0x1f8e40(0x99)][_0x1f8e40(0x95)]('/')?'/'+_0x9b290a:_0x9b290a;}export function normalizePath(_0x59fa0f){const _0x21cdb8=a104_0x2dfb,_0x2a77b6=parsePath(_0x59fa0f),_0x57979f=[];for(const _0x2a7f2a of _0x2a77b6[_0x21cdb8(0xac)]){if(_0x2a7f2a==='.')continue;else{if(_0x2a7f2a==='..'){if(_0x57979f[_0x21cdb8(0xa8)]===0x0){if(_0x2a77b6[_0x21cdb8(0xa0)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x57979f[_0x21cdb8(0xb3)]('..');}else _0x57979f[_0x57979f[_0x21cdb8(0xa8)]-0x1]==='..'?_0x57979f[_0x21cdb8(0xb3)]('..'):_0x57979f[_0x21cdb8(0xb2)]();}else _0x57979f[_0x21cdb8(0xb3)](_0x2a7f2a);}}if(_0x57979f[_0x21cdb8(0xa8)]===0x0)return _0x2a77b6['isAbsolute']?'/':'.';const _0xb463de=_0x57979f[_0x21cdb8(0x8d)]('/');return _0x2a77b6[_0x21cdb8(0x99)][_0x21cdb8(0x95)]('/')?'/'+_0xb463de:_0xb463de;}function a104_0x2dfb(_0x4cb8b7,_0x11b3cf){_0x4cb8b7=_0x4cb8b7-0x8c;const _0x301028=a104_0x3010();let _0x2dfbff=_0x301028[_0x4cb8b7];return _0x2dfbff;}export function getParentPath(_0x52fd3c){const _0x34a63c=a104_0x2dfb,_0x46cd7b=parsePath(_0x52fd3c);if(_0x46cd7b[_0x34a63c(0xac)]['length']<=0x1)return'/';const _0x876844=_0x46cd7b[_0x34a63c(0xac)]['slice'](0x0,-0x1)[_0x34a63c(0x8d)]('/');return _0x46cd7b[_0x34a63c(0x99)][_0x34a63c(0x95)]('/')?'/'+_0x876844:_0x876844;}function a104_0x3010(){const _0x45d5b5=['startsWith','root','endsWith','Path\x20cannot\x20be\x20empty','raw','Relative\x20path\x20cannot\x20be\x20empty','8iYDATK','Path\x20attempts\x20to\x20navigate\x20above\x20root','test','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','1298355wxhtGh','isAbsolute','replace','66GuuuSO','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','filter','No\x20tdx.json\x20found\x20for\x20file:\x20','271216ioMpFf','tdx.json','length','Invalid\x20segment\x20YAML:\x20missing\x20name\x20field\x20in\x20','dirname','31669MEXMzP','segments','parent_segment','135475ANAUCq','105464yiQahM','1110bRhYpt','utf-8','pop','push','517338JQJlmk','join','trim','Path\x20segment\x20cannot\x20be\x20empty','217PKZLKh','116453MXTAKG','parse','slice','name'];a104_0x3010=function(){return _0x45d5b5;};return a104_0x3010();}export function getBaseName(_0x47d11a){const _0x163645=a104_0x2dfb,_0x59b0a2=parsePath(_0x47d11a);return _0x59b0a2['segments'][_0x59b0a2[_0x163645(0xac)][_0x163645(0xa8)]-0x1]||'';}export function isChildPath(_0x4191e3,_0x4c2f60){const _0x4d3258=a104_0x2dfb,_0x4f6207=parsePath(_0x4191e3),_0x4e21ea=parsePath(_0x4c2f60);if(_0x4f6207[_0x4d3258(0xac)][_0x4d3258(0xa8)]<=_0x4e21ea[_0x4d3258(0xac)][_0x4d3258(0xa8)])return![];for(let _0x478b8a=0x0;_0x478b8a<_0x4e21ea[_0x4d3258(0xac)][_0x4d3258(0xa8)];_0x478b8a++){if(_0x4f6207[_0x4d3258(0xac)][_0x478b8a]!==_0x4e21ea[_0x4d3258(0xac)][_0x478b8a])return![];}return!![];}export function splitPath(_0x30ad65){const _0x1fbfbe=a104_0x2dfb,_0x2183b5=parsePath(_0x30ad65);if(_0x2183b5['segments']['length']===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x2183b5[_0x1fbfbe(0xac)][_0x1fbfbe(0xa8)]===0x1)return{'parent':_0x2183b5[_0x1fbfbe(0xac)][0x0]};return{'parent':_0x2183b5[_0x1fbfbe(0xac)][0x0],'child':_0x2183b5[_0x1fbfbe(0xac)][_0x1fbfbe(0x93)](0x1)['join']('/')};}export function isYamlFilePath(_0x199e82){const _0x1fe99e=a104_0x2dfb;return _0x199e82[_0x1fe99e(0x97)]('.yml')||_0x199e82[_0x1fe99e(0x97)]('.yaml');}export function resolveYamlFilePath(_0x16c512){const _0x58207b=a104_0x2dfb,_0x4dc6fc=a104_0x3c04bb['resolve'](_0x16c512);if(!existsSync(_0x4dc6fc))throw new Error('File\x20not\x20found:\x20'+_0x16c512);let _0x26651d=a104_0x3c04bb[_0x58207b(0xaa)](_0x4dc6fc),_0x379470=null,_0x130cb7=null;const _0x176d4f=a104_0x3c04bb[_0x58207b(0x92)](_0x26651d)[_0x58207b(0x96)];while(_0x26651d!==_0x176d4f){const _0x14cbba=a104_0x3c04bb[_0x58207b(0x8d)](_0x26651d,_0x58207b(0xa7));if(existsSync(_0x14cbba)){_0x379470=_0x14cbba,_0x130cb7=_0x26651d;break;}_0x26651d=a104_0x3c04bb['dirname'](_0x26651d);}if(!_0x379470||!_0x130cb7)throw new Error(_0x58207b(0xa5)+_0x16c512);const _0x15ce8d=readFileSync(_0x379470,_0x58207b(0xb1)),_0x3a0ce6=JSON[_0x58207b(0x92)](_0x15ce8d),_0xe8b70e=_0x3a0ce6[_0x58207b(0xad)];if(!_0xe8b70e)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x5c1777=readFileSync(_0x4dc6fc,'utf-8'),_0x301976=a104_0x2ac202(_0x5c1777),_0x28b9e3=_0x301976[_0x58207b(0x94)];if(!_0x28b9e3)throw new Error(_0x58207b(0xa9)+_0x16c512);const _0x3c42bb=a104_0x3c04bb['relative'](_0x130cb7,_0x4dc6fc),_0x3e5567=a104_0x3c04bb[_0x58207b(0xaa)](_0x3c42bb),_0x2081b9=_0x3e5567==='.'?'':_0x3e5567[_0x58207b(0xa1)](/\\/g,'/'),_0x25f19e=_0x2081b9?_0xe8b70e+'/'+_0x2081b9+'/'+_0x28b9e3:_0xe8b70e+'/'+_0x28b9e3;return{'parentSegment':_0xe8b70e,'segmentName':_0x28b9e3,'folderPath':_0x2081b9,'fullPath':_0x25f19e};}
@@ -1 +1 @@
1
- function a105_0x1e44(){const _0x2c929c=['927864gdMviE','Invalid\x20segment\x20reference\x20format:\x20','564mhDRlr','substring','216228xnpnJQ','6wmmBmY','1676125GPQICs','.\x20Child\x20name\x20cannot\x20be\x20empty','3744MCJcfd','674KewnbV','.\x20Parent\x20name\x20cannot\x20be\x20empty','490084TOaHWm','4648YwtYmk','indexOf','2423260BxzIME'];a105_0x1e44=function(){return _0x2c929c;};return a105_0x1e44();}(function(_0x2f7fbf,_0x3ed2f8){const _0x41acc3=a105_0x9522,_0x4fa078=_0x2f7fbf();while(!![]){try{const _0x10b694=-parseInt(_0x41acc3(0x7a))/0x1*(-parseInt(_0x41acc3(0x81))/0x2)+-parseInt(_0x41acc3(0x7c))/0x3+-parseInt(_0x41acc3(0x74))/0x4+parseInt(_0x41acc3(0x7e))/0x5+-parseInt(_0x41acc3(0x7d))/0x6*(parseInt(_0x41acc3(0x78))/0x7)+parseInt(_0x41acc3(0x75))/0x8*(parseInt(_0x41acc3(0x80))/0x9)+-parseInt(_0x41acc3(0x77))/0xa;if(_0x10b694===_0x3ed2f8)break;else _0x4fa078['push'](_0x4fa078['shift']());}catch(_0xec1ca){_0x4fa078['push'](_0x4fa078['shift']());}}}(a105_0x1e44,0x3038a));function a105_0x9522(_0x11711c,_0x2baa2f){_0x11711c=_0x11711c-0x73;const _0x1e441b=a105_0x1e44();let _0x952230=_0x1e441b[_0x11711c];return _0x952230;}export function parseSegmentRef(_0x36f5fc){const _0x2c86ca=a105_0x9522,_0x337e72=_0x36f5fc[_0x2c86ca(0x76)]('/');if(_0x337e72===-0x1)return{'parentId':_0x36f5fc};if(_0x337e72===0x0)throw new Error(_0x2c86ca(0x79)+_0x36f5fc+_0x2c86ca(0x73));const _0x1166fa=_0x36f5fc[_0x2c86ca(0x7b)](0x0,_0x337e72),_0x37bbeb=_0x36f5fc[_0x2c86ca(0x7b)](_0x337e72+0x1);if(_0x37bbeb==='')throw new Error(_0x2c86ca(0x79)+_0x36f5fc+_0x2c86ca(0x7f));return{'parentId':_0x1166fa,'childId':_0x37bbeb};}
1
+ function a105_0x4260(_0x4f0fd5,_0x172494){_0x4f0fd5=_0x4f0fd5-0x15a;const _0x3f6f3b=a105_0x3f6f();let _0x4260d4=_0x3f6f3b[_0x4f0fd5];return _0x4260d4;}function a105_0x3f6f(){const _0x3430fc=['43905TLMlDS','9445020AlYpNc','indexOf','783186voxTmc','35zltges','516312HhZXBe','448LEKbHE','Invalid\x20segment\x20reference\x20format:\x20','51JHUyCR','153080mYHRzq','substring','1413063Hfxsbe','9634dPnlFl'];a105_0x3f6f=function(){return _0x3430fc;};return a105_0x3f6f();}(function(_0x275886,_0x465ad6){const _0x189593=a105_0x4260,_0x22a6e6=_0x275886();while(!![]){try{const _0x59611e=parseInt(_0x189593(0x15e))/0x1*(parseInt(_0x189593(0x162))/0x2)+parseInt(_0x189593(0x166))/0x3+-parseInt(_0x189593(0x15c))/0x4*(-parseInt(_0x189593(0x163))/0x5)+parseInt(_0x189593(0x15b))/0x6+-parseInt(_0x189593(0x15a))/0x7*(-parseInt(_0x189593(0x15f))/0x8)+-parseInt(_0x189593(0x161))/0x9+-parseInt(_0x189593(0x164))/0xa;if(_0x59611e===_0x465ad6)break;else _0x22a6e6['push'](_0x22a6e6['shift']());}catch(_0x80ca0f){_0x22a6e6['push'](_0x22a6e6['shift']());}}}(a105_0x3f6f,0x8b433));export function parseSegmentRef(_0x37c2ea){const _0x2a0138=a105_0x4260,_0x128c26=_0x37c2ea[_0x2a0138(0x165)]('/');if(_0x128c26===-0x1)return{'parentId':_0x37c2ea};if(_0x128c26===0x0)throw new Error(_0x2a0138(0x15d)+_0x37c2ea+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x426b82=_0x37c2ea[_0x2a0138(0x160)](0x0,_0x128c26),_0x40bdd3=_0x37c2ea[_0x2a0138(0x160)](_0x128c26+0x1);if(_0x40bdd3==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x37c2ea+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x426b82,'childId':_0x40bdd3};}
@@ -1 +1 @@
1
- function a106_0x205a(){const _0x59a959=['stdout','cyan','4664VEhbfS','...','now','9MtHJZv','clock','jobId','floor','1937290nMpfpu','474042IRuGzi','810IHNuAy','isTTY','1545IHmVpO','text','stop','toFixed','extra','3801bxeCxp','474550yHauaz','start','14396750jcYrbD','4620504qPolqf'];a106_0x205a=function(){return _0x59a959;};return a106_0x205a();}function a106_0x8e52(_0x10e417,_0x243862){_0x10e417=_0x10e417-0x19d;const _0x205a94=a106_0x205a();let _0x8e52ce=_0x205a94[_0x10e417];return _0x8e52ce;}(function(_0x17752f,_0xdc570b){const _0x22af01=a106_0x8e52,_0xb41fcf=_0x17752f();while(!![]){try{const _0x6829b4=-parseInt(_0x22af01(0x1af))/0x1+parseInt(_0x22af01(0x1a1))/0x2+parseInt(_0x22af01(0x1b2))/0x3*(-parseInt(_0x22af01(0x1a7))/0x4)+parseInt(_0x22af01(0x1ae))/0x5+-parseInt(_0x22af01(0x1b0))/0x6*(parseInt(_0x22af01(0x1a0))/0x7)+-parseInt(_0x22af01(0x1a4))/0x8+parseInt(_0x22af01(0x1aa))/0x9*(parseInt(_0x22af01(0x1a3))/0xa);if(_0x6829b4===_0xdc570b)break;else _0xb41fcf['push'](_0xb41fcf['shift']());}catch(_0x468824){_0xb41fcf['push'](_0xb41fcf['shift']());}}}(a106_0x205a,0x52c40));import a106_0x172599 from'ora';export function createCommandSpinner(_0x1cc2dd,_0x11176d={}){const _0x929e3d=a106_0x8e52,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x11176d;return a106_0x172599({'text':_0x1cc2dd,'color':_0x929e3d(0x1a6),'isEnabled':forceEnabled||process[_0x929e3d(0x1a5)][_0x929e3d(0x1b1)]&&!verbose});}export async function withSpinner(_0x3ae142,_0xe9f108,_0x86ca59={}){const _0x405149=a106_0x8e52,_0x5bd086=_0x86ca59[_0x405149(0x1ab)]??(()=>Date[_0x405149(0x1a9)]()),_0xd02c1e=createCommandSpinner(_0x3ae142,_0x86ca59);_0xd02c1e[_0x405149(0x1a2)]();const _0x59c182=_0x5bd086();try{const _0x56e04a=await _0xe9f108(),_0x72b345=_0x5bd086()-_0x59c182;return _0xd02c1e[_0x405149(0x19d)](),{'data':_0x56e04a,'elapsedMs':_0x72b345};}catch(_0x2cc5be){_0xd02c1e[_0x405149(0x19d)]();throw _0x2cc5be;}}export async function withQuerySpinner(_0x46e9e1,_0x3ec4ac,_0x4ede05={}){const _0x1f9351=a106_0x8e52,_0x144e89=_0x4ede05[_0x1f9351(0x1ab)]??(()=>Date[_0x1f9351(0x1a9)]()),_0x83dcc4=_0x4ede05['intervalFactory']??setInterval,_0x3d1de1=createCommandSpinner(_0x46e9e1,_0x4ede05);_0x3d1de1[_0x1f9351(0x1a2)]();const _0x37b286=_0x144e89(),_0x272e13=_0x46e9e1['replace'](_0x1f9351(0x1a8),''),_0x14ae87={},_0x12fc57=()=>{const _0x2beb65=_0x1f9351;if(!_0x3d1de1['isSpinning'])return;const _0x10663e=_0x144e89()-_0x37b286,_0x4ee165=formatElapsed(_0x10663e),_0x2b7640=_0x14ae87['phase']??_0x272e13,_0x5052ab=_0x14ae87[_0x2beb65(0x1ac)]?'\x20[Job\x20ID:\x20'+_0x14ae87['jobId']+']':'',_0x5d88d6=_0x14ae87[_0x2beb65(0x19f)]?'\x20'+_0x14ae87['extra']:'';_0x3d1de1[_0x2beb65(0x1b3)]=_0x2b7640+'\x20'+_0x4ee165+_0x5d88d6+_0x5052ab;},_0xf8c220=_0x83dcc4(()=>{_0x12fc57();},0x3e8),_0x5e8305={'setPhase':_0x266050=>{_0x14ae87['phase']=_0x266050,_0x12fc57();},'setJobId':_0x1c2f49=>{const _0x367d38=_0x1f9351;_0x14ae87[_0x367d38(0x1ac)]=_0x1c2f49,_0x12fc57();},'setExtra':_0x41caa9=>{const _0x27ee9d=_0x1f9351;_0x14ae87[_0x27ee9d(0x19f)]=_0x41caa9,_0x12fc57();}};_0x12fc57();try{const _0x3ae2de=await _0x3ec4ac(_0x5e8305),_0xeadddd=_0x144e89()-_0x37b286;return{'data':_0x3ae2de,'elapsedMs':_0xeadddd};}finally{clearInterval(_0xf8c220),_0x3d1de1[_0x1f9351(0x19d)]();}}export function formatElapsed(_0x2a5174){const _0xca0c27=a106_0x8e52,_0x5eae45=Math[_0xca0c27(0x1ad)](_0x2a5174/0x3e8);if(_0x5eae45<0x3c)return(_0x2a5174/0x3e8)[_0xca0c27(0x19e)](0x1)+'s';const _0x219544=Math[_0xca0c27(0x1ad)](_0x5eae45/0x3c),_0x5afc32=_0x5eae45%0x3c;if(_0x219544<0x3c)return _0x219544+'m\x20'+_0x5afc32+'s';const _0x5b1c5f=Math[_0xca0c27(0x1ad)](_0x219544/0x3c),_0x2018c1=_0x219544%0x3c;return _0x5b1c5f+'h\x20'+_0x2018c1+'m';}
1
+ (function(_0x3357f9,_0x492f63){const _0x29eaea=a106_0x59c6,_0x52c602=_0x3357f9();while(!![]){try{const _0x20258b=-parseInt(_0x29eaea(0x84))/0x1*(-parseInt(_0x29eaea(0x7e))/0x2)+parseInt(_0x29eaea(0x87))/0x3+parseInt(_0x29eaea(0x7c))/0x4+parseInt(_0x29eaea(0x7b))/0x5*(-parseInt(_0x29eaea(0x8f))/0x6)+parseInt(_0x29eaea(0x79))/0x7*(-parseInt(_0x29eaea(0x85))/0x8)+-parseInt(_0x29eaea(0x8a))/0x9+parseInt(_0x29eaea(0x92))/0xa*(parseInt(_0x29eaea(0x80))/0xb);if(_0x20258b===_0x492f63)break;else _0x52c602['push'](_0x52c602['shift']());}catch(_0x123aef){_0x52c602['push'](_0x52c602['shift']());}}}(a106_0x2bd0,0x18ee0));import a106_0x289f7b from'ora';export function createCommandSpinner(_0x36f245,_0xcce94c={}){const _0x14c0e9=a106_0x59c6,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xcce94c;return a106_0x289f7b({'text':_0x36f245,'color':_0x14c0e9(0x89),'isEnabled':forceEnabled||process[_0x14c0e9(0x91)]['isTTY']&&!verbose});}function a106_0x59c6(_0x30eb6b,_0xffe021){_0x30eb6b=_0x30eb6b-0x79;const _0x2bd068=a106_0x2bd0();let _0x59c6b0=_0x2bd068[_0x30eb6b];return _0x59c6b0;}export async function withSpinner(_0x15fb67,_0x498c24,_0x289710={}){const _0x168747=a106_0x59c6,_0x3e3e30=_0x289710[_0x168747(0x7a)]??(()=>Date[_0x168747(0x81)]()),_0x160316=createCommandSpinner(_0x15fb67,_0x289710);_0x160316[_0x168747(0x88)]();const _0x4a73b0=_0x3e3e30();try{const _0x42f666=await _0x498c24(),_0x524632=_0x3e3e30()-_0x4a73b0;return _0x160316[_0x168747(0x8d)](),{'data':_0x42f666,'elapsedMs':_0x524632};}catch(_0x28f308){_0x160316[_0x168747(0x8d)]();throw _0x28f308;}}export async function withQuerySpinner(_0x4e0bd8,_0xe19d29,_0x271907={}){const _0x3600c7=a106_0x59c6,_0x4858a1=_0x271907[_0x3600c7(0x7a)]??(()=>Date['now']()),_0x3b008c=_0x271907[_0x3600c7(0x82)]??setInterval,_0x251e5f=createCommandSpinner(_0x4e0bd8,_0x271907);_0x251e5f[_0x3600c7(0x88)]();const _0x4c93ac=_0x4858a1(),_0x72922=_0x4e0bd8[_0x3600c7(0x8e)](_0x3600c7(0x93),''),_0x43645={},_0x5e35e7=()=>{const _0x3b137d=_0x3600c7;if(!_0x251e5f[_0x3b137d(0x86)])return;const _0x50b8b3=_0x4858a1()-_0x4c93ac,_0x4274ed=formatElapsed(_0x50b8b3),_0x1070f8=_0x43645[_0x3b137d(0x7d)]??_0x72922,_0x48e0cf=_0x43645[_0x3b137d(0x90)]?_0x3b137d(0x7f)+_0x43645[_0x3b137d(0x90)]+']':'',_0x211c30=_0x43645['extra']?'\x20'+_0x43645['extra']:'';_0x251e5f['text']=_0x1070f8+'\x20'+_0x4274ed+_0x211c30+_0x48e0cf;},_0x3de3df=_0x3b008c(()=>{_0x5e35e7();},0x3e8),_0xdee47b={'setPhase':_0x44daba=>{const _0x5c0910=_0x3600c7;_0x43645[_0x5c0910(0x7d)]=_0x44daba,_0x5e35e7();},'setJobId':_0xdb677c=>{const _0x4f33ea=_0x3600c7;_0x43645[_0x4f33ea(0x90)]=_0xdb677c,_0x5e35e7();},'setExtra':_0x6ece7a=>{const _0x50ff81=_0x3600c7;_0x43645[_0x50ff81(0x8c)]=_0x6ece7a,_0x5e35e7();}};_0x5e35e7();try{const _0x2c071e=await _0xe19d29(_0xdee47b),_0x1411d9=_0x4858a1()-_0x4c93ac;return{'data':_0x2c071e,'elapsedMs':_0x1411d9};}finally{clearInterval(_0x3de3df),_0x251e5f['stop']();}}export function formatElapsed(_0x21fa40){const _0xd59a52=a106_0x59c6,_0x37b562=Math[_0xd59a52(0x8b)](_0x21fa40/0x3e8);if(_0x37b562<0x3c)return(_0x21fa40/0x3e8)[_0xd59a52(0x83)](0x1)+'s';const _0x363627=Math[_0xd59a52(0x8b)](_0x37b562/0x3c),_0x238d4c=_0x37b562%0x3c;if(_0x363627<0x3c)return _0x363627+'m\x20'+_0x238d4c+'s';const _0x2fcc06=Math[_0xd59a52(0x8b)](_0x363627/0x3c),_0x49fc37=_0x363627%0x3c;return _0x2fcc06+'h\x20'+_0x49fc37+'m';}function a106_0x2bd0(){const _0x7e0c8=['10uojawj','188844DJGUTR','phase','287292OczfTF','\x20[Job\x20ID:\x20','1004641usKzas','now','intervalFactory','toFixed','1KrkdFY','8ttnxQH','isSpinning','474888YQaMYT','start','cyan','1091835nAvIIc','floor','extra','stop','replace','518124ssgpZS','jobId','stdout','10TZCfER','...','310443xgIjHW','clock'];a106_0x2bd0=function(){return _0x7e0c8;};return a106_0x2bd0();}
@@ -1 +1 @@
1
- (function(_0x382054,_0x2aa85b){const _0x1cc750=a107_0xe87f,_0x50adc2=_0x382054();while(!![]){try{const _0x5ecee7=-parseInt(_0x1cc750(0x8d))/0x1+-parseInt(_0x1cc750(0x81))/0x2+parseInt(_0x1cc750(0x7f))/0x3*(-parseInt(_0x1cc750(0x87))/0x4)+-parseInt(_0x1cc750(0x7e))/0x5+parseInt(_0x1cc750(0x8f))/0x6+parseInt(_0x1cc750(0x8a))/0x7+-parseInt(_0x1cc750(0x7c))/0x8*(parseInt(_0x1cc750(0x90))/0x9);if(_0x5ecee7===_0x2aa85b)break;else _0x50adc2['push'](_0x50adc2['shift']());}catch(_0x4cb440){_0x50adc2['push'](_0x50adc2['shift']());}}}(a107_0x4aae,0x7a450));function a107_0xe87f(_0x59728e,_0x483c01){_0x59728e=_0x59728e-0x7b;const _0x4aaea3=a107_0x4aae();let _0xe87fe2=_0x4aaea3[_0x59728e];return _0xe87fe2;}function a107_0x4aae(){const _0x7e67af=['4paGwCJ','push','code','6770568VksBDq','ENOENT','Error\x20reading\x20file\x20\x27','525730hKWnUd','message','4398798RmIIiR','859851eAuBFe','File\x20\x27','replace','24VIFoCn','filter','784320hfKYJm','364791KdPhfM','Permission\x20denied\x20reading\x20file\x20\x27','217466BGEVON','\x27:\x20','EACCES','trim','length','\x27\x20not\x20found'];a107_0x4aae=function(){return _0x7e67af;};return a107_0x4aae();}import{readFileSync}from'fs';export function stripSqlComments(_0x595fc1){const _0x3f748a=a107_0xe87f;let _0x2fa2a7=_0x595fc1[_0x3f748a(0x7b)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x2fa2a7=_0x2fa2a7[_0x3f748a(0x7b)](/--.*$/gm,''),_0x2fa2a7['trim']();}function isEscaped(_0x296437,_0x5b7d8a){let _0x1231e3=0x0;for(let _0x572328=_0x5b7d8a-0x1;_0x572328>=0x0&&_0x296437[_0x572328]==='\x5c';_0x572328--){_0x1231e3++;}return _0x1231e3%0x2===0x1;}export function splitSqlStatements(_0x52b74){const _0x35abcc=a107_0xe87f,_0x5d124a=stripSqlComments(_0x52b74);if(!_0x5d124a)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x36b6d3=[];let _0x2ac344='',_0x2a70a0=![],_0x3b2c77=![],_0x343774=![];for(let _0x166888=0x0;_0x166888<_0x52b74[_0x35abcc(0x85)];_0x166888++){const _0x5ee4ed=_0x52b74[_0x166888];if(_0x5ee4ed==='\x27'&&!isEscaped(_0x52b74,_0x166888)&&!_0x3b2c77&&!_0x343774)_0x2a70a0=!_0x2a70a0;else{if(_0x5ee4ed==='\x22'&&!isEscaped(_0x52b74,_0x166888)&&!_0x2a70a0&&!_0x343774)_0x3b2c77=!_0x3b2c77;else _0x5ee4ed==='`'&&!isEscaped(_0x52b74,_0x166888)&&!_0x2a70a0&&!_0x3b2c77&&(_0x343774=!_0x343774);}if(_0x5ee4ed===';'&&!_0x2a70a0&&!_0x3b2c77&&!_0x343774){const _0x1e1484=_0x2ac344[_0x35abcc(0x84)]();_0x1e1484&&_0x36b6d3[_0x35abcc(0x88)](_0x1e1484),_0x2ac344='';}else _0x2ac344+=_0x5ee4ed;}const _0x13f8f0=_0x2ac344['trim']();_0x13f8f0&&_0x36b6d3['push'](_0x13f8f0);const _0x20e079=_0x36b6d3['map'](_0x20f384=>_0x20f384['trim']())[_0x35abcc(0x7d)](_0x10daf7=>{const _0x4a55fe=_0x35abcc,_0x2d773c=stripSqlComments(_0x10daf7);return _0x2d773c[_0x4a55fe(0x85)]>0x0;});if(_0x20e079['length']===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x20e079;}export function readFileContent(_0x2c2dbc){const _0x128521=a107_0xe87f;try{return readFileSync(_0x2c2dbc,'utf-8');}catch(_0x379814){const _0x1ab627=_0x379814[_0x128521(0x89)];if(_0x1ab627===_0x128521(0x8b))throw new Error('File\x20\x27'+_0x2c2dbc+_0x128521(0x86));else{if(_0x1ab627===_0x128521(0x83))throw new Error(_0x128521(0x80)+_0x2c2dbc+'\x27');else throw new Error(_0x128521(0x8c)+_0x2c2dbc+_0x128521(0x82)+_0x379814[_0x128521(0x8e)]);}}}export function readSqlStatementsFromFile(_0x38d1fa){const _0x5a979a=a107_0xe87f,_0x722479=readFileContent(_0x38d1fa);try{return splitSqlStatements(_0x722479);}catch(_0x105a28){throw new Error(_0x5a979a(0x91)+_0x38d1fa+'\x27\x20'+_0x105a28[_0x5a979a(0x8e)]['toLowerCase']());}}
1
+ (function(_0x54ddc8,_0x8f4492){const _0x456ef7=a107_0x5276,_0x3f74e9=_0x54ddc8();while(!![]){try{const _0x5d1b73=-parseInt(_0x456ef7(0xfc))/0x1*(parseInt(_0x456ef7(0xfd))/0x2)+-parseInt(_0x456ef7(0x105))/0x3+parseInt(_0x456ef7(0x100))/0x4+parseInt(_0x456ef7(0xf4))/0x5+-parseInt(_0x456ef7(0x103))/0x6*(-parseInt(_0x456ef7(0xf3))/0x7)+-parseInt(_0x456ef7(0xf0))/0x8*(parseInt(_0x456ef7(0xf5))/0x9)+parseInt(_0x456ef7(0xef))/0xa;if(_0x5d1b73===_0x8f4492)break;else _0x3f74e9['push'](_0x3f74e9['shift']());}catch(_0x109550){_0x3f74e9['push'](_0x3f74e9['shift']());}}}(a107_0x5227,0x780d7));import{readFileSync}from'fs';export function stripSqlComments(_0x4e60e4){const _0x54006c=a107_0x5276;let _0x38bf2e=_0x4e60e4[_0x54006c(0xff)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x38bf2e=_0x38bf2e[_0x54006c(0xff)](/--.*$/gm,''),_0x38bf2e[_0x54006c(0xfa)]();}function a107_0x5276(_0x4623ae,_0x2ddf94){_0x4623ae=_0x4623ae-0xee;const _0x5227cb=a107_0x5227();let _0x5276eb=_0x5227cb[_0x4623ae];return _0x5276eb;}function a107_0x5227(){const _0x366e88=['601680aZpQDE','9171Batkbg','Content\x20contains\x20no\x20SQL\x20statements','utf-8','Error\x20reading\x20file\x20\x27','map','trim','File\x20\x27','1mTSVas','1821994mhSWTK','message','replace','851952EzzCNt','\x27\x20not\x20found','length','23052omygdp','\x27:\x20','2169603pYwePx','EACCES','Permission\x20denied\x20reading\x20file\x20\x27','19400550TCZcih','3088RnRMyD','toLowerCase','ENOENT','448vRFdru'];a107_0x5227=function(){return _0x366e88;};return a107_0x5227();}function isEscaped(_0x23e534,_0x30ff1b){let _0x297b2e=0x0;for(let _0x187942=_0x30ff1b-0x1;_0x187942>=0x0&&_0x23e534[_0x187942]==='\x5c';_0x187942--){_0x297b2e++;}return _0x297b2e%0x2===0x1;}export function splitSqlStatements(_0x2a8af4){const _0x28c8d9=a107_0x5276,_0x333949=stripSqlComments(_0x2a8af4);if(!_0x333949)throw new Error(_0x28c8d9(0xf6));const _0x28c26d=[];let _0x30fa0c='',_0x4405e5=![],_0x3541be=![],_0x4506af=![];for(let _0x35c47f=0x0;_0x35c47f<_0x2a8af4['length'];_0x35c47f++){const _0x57cd92=_0x2a8af4[_0x35c47f];if(_0x57cd92==='\x27'&&!isEscaped(_0x2a8af4,_0x35c47f)&&!_0x3541be&&!_0x4506af)_0x4405e5=!_0x4405e5;else{if(_0x57cd92==='\x22'&&!isEscaped(_0x2a8af4,_0x35c47f)&&!_0x4405e5&&!_0x4506af)_0x3541be=!_0x3541be;else _0x57cd92==='`'&&!isEscaped(_0x2a8af4,_0x35c47f)&&!_0x4405e5&&!_0x3541be&&(_0x4506af=!_0x4506af);}if(_0x57cd92===';'&&!_0x4405e5&&!_0x3541be&&!_0x4506af){const _0x390e97=_0x30fa0c['trim']();_0x390e97&&_0x28c26d['push'](_0x390e97),_0x30fa0c='';}else _0x30fa0c+=_0x57cd92;}const _0x16af29=_0x30fa0c['trim']();_0x16af29&&_0x28c26d['push'](_0x16af29);const _0x33d4ed=_0x28c26d[_0x28c8d9(0xf9)](_0x29eaa8=>_0x29eaa8[_0x28c8d9(0xfa)]())['filter'](_0x357b7a=>{const _0x5284ab=stripSqlComments(_0x357b7a);return _0x5284ab['length']>0x0;});if(_0x33d4ed[_0x28c8d9(0x102)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x33d4ed;}export function readFileContent(_0x5e8aca){const _0x2c402b=a107_0x5276;try{return readFileSync(_0x5e8aca,_0x2c402b(0xf7));}catch(_0x5bc167){const _0x2a06af=_0x5bc167['code'];if(_0x2a06af===_0x2c402b(0xf2))throw new Error(_0x2c402b(0xfb)+_0x5e8aca+_0x2c402b(0x101));else{if(_0x2a06af===_0x2c402b(0x106))throw new Error(_0x2c402b(0xee)+_0x5e8aca+'\x27');else throw new Error(_0x2c402b(0xf8)+_0x5e8aca+_0x2c402b(0x104)+_0x5bc167[_0x2c402b(0xfe)]);}}}export function readSqlStatementsFromFile(_0x3b9a90){const _0x1e1dd2=a107_0x5276,_0x36cffb=readFileContent(_0x3b9a90);try{return splitSqlStatements(_0x36cffb);}catch(_0x22ded5){throw new Error(_0x1e1dd2(0xfb)+_0x3b9a90+'\x27\x20'+_0x22ded5[_0x1e1dd2(0xfe)][_0x1e1dd2(0xf1)]());}}
@@ -1 +1 @@
1
- (function(_0x4624e3,_0x3b8648){const _0x2e9169=a108_0x5be3,_0x1ca5e3=_0x4624e3();while(!![]){try{const _0x20c103=parseInt(_0x2e9169(0x1dc))/0x1+-parseInt(_0x2e9169(0x1cc))/0x2+parseInt(_0x2e9169(0x1c8))/0x3*(parseInt(_0x2e9169(0x1c9))/0x4)+-parseInt(_0x2e9169(0x1d3))/0x5*(parseInt(_0x2e9169(0x1db))/0x6)+-parseInt(_0x2e9169(0x1cf))/0x7+-parseInt(_0x2e9169(0x1ca))/0x8+-parseInt(_0x2e9169(0x1d8))/0x9*(-parseInt(_0x2e9169(0x1e0))/0xa);if(_0x20c103===_0x3b8648)break;else _0x1ca5e3['push'](_0x1ca5e3['shift']());}catch(_0x5e9825){_0x1ca5e3['push'](_0x1ca5e3['shift']());}}}(a108_0x4653,0xf12d3));export async function*parseSSEStream(_0x5e46b6,_0x56e19c){const _0xf820ad=a108_0x5be3;if(!_0x5e46b6['body'])throw new Error(_0xf820ad(0x1d1));const _0x590770=_0x5e46b6[_0xf820ad(0x1d2)][_0xf820ad(0x1dd)](),_0x3208bc=new TextDecoder();let _0x59de97='',_0x51da9a={};try{while(!![]){const {done:_0x1f1d8e,value:_0x100ea3}=await _0x590770['read']();if(_0x1f1d8e){if(_0x51da9a[_0xf820ad(0x1e1)]){_0x56e19c?.['debug'](_0xf820ad(0x1cd)+_0x51da9a[_0xf820ad(0x1e1)]);const _0x3553ee=parseSSEData(_0x51da9a['data']);yield _0x3553ee;}break;}_0x59de97+=_0x3208bc[_0xf820ad(0x1cb)](_0x100ea3,{'stream':!![]});const _0x1a8d2d=_0x59de97[_0xf820ad(0x1ce)]('\x0a');_0x59de97=_0x1a8d2d[_0xf820ad(0x1d7)]()||'';for(const _0x31b7fb of _0x1a8d2d){if(_0x31b7fb[_0xf820ad(0x1d9)]()===''){if(_0x51da9a[_0xf820ad(0x1e1)]){_0x56e19c?.['debug'](_0xf820ad(0x1cd)+_0x51da9a[_0xf820ad(0x1e1)]);const _0x3ac135=parseSSEData(_0x51da9a[_0xf820ad(0x1e1)]);yield _0x3ac135,_0x51da9a={};}continue;}if(_0x31b7fb['startsWith'](':'))continue;const _0x2f36ad=_0x31b7fb[_0xf820ad(0x1df)](':');if(_0x2f36ad===-0x1)continue;const _0x547a1f=_0x31b7fb[_0xf820ad(0x1d5)](0x0,_0x2f36ad);let _0x18a780=_0x31b7fb[_0xf820ad(0x1d5)](_0x2f36ad+0x1);_0x18a780[_0xf820ad(0x1de)]('\x20')&&(_0x18a780=_0x18a780[_0xf820ad(0x1d5)](0x1));switch(_0x547a1f){case _0xf820ad(0x1d0):_0x51da9a['event']=_0x18a780;break;case _0xf820ad(0x1e1):_0x51da9a[_0xf820ad(0x1e1)]=_0x51da9a[_0xf820ad(0x1e1)]?_0x51da9a['data']+'\x0a'+_0x18a780:_0x18a780;break;case'id':_0x51da9a['id']=_0x18a780;break;}}}}finally{_0x590770[_0xf820ad(0x1d6)]();}}function a108_0x4653(){const _0x115cb5=['body','5860vpGbgz','parse','slice','releaseLock','pop','34532559WqpOoE','trim','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','4656NxbFci','217991IwSmko','getReader','startsWith','indexOf','10jviryo','data','40347Ghrvin','216SWLdTw','6680448LMvzzc','decode','1843648bNfjIg','[LLM\x20API\x20SSE]\x20','split','7888839ZqsUlV','event','Response\x20body\x20is\x20null'];a108_0x4653=function(){return _0x115cb5;};return a108_0x4653();}function a108_0x5be3(_0x1f87cd,_0x151e64){_0x1f87cd=_0x1f87cd-0x1c8;const _0x46534b=a108_0x4653();let _0x5be3cf=_0x46534b[_0x1f87cd];return _0x5be3cf;}function parseSSEData(_0x508b7d){const _0x1ca6e9=a108_0x5be3;try{return JSON[_0x1ca6e9(0x1d4)](_0x508b7d);}catch(_0x26519e){throw new Error(_0x1ca6e9(0x1da)+_0x508b7d,{'cause':_0x26519e});}}
1
+ (function(_0x52efd5,_0x5188b1){const _0x3dbeb8=a108_0x1961,_0x273b72=_0x52efd5();while(!![]){try{const _0x36ac8d=parseInt(_0x3dbeb8(0xe0))/0x1+parseInt(_0x3dbeb8(0xf7))/0x2+parseInt(_0x3dbeb8(0xf8))/0x3+-parseInt(_0x3dbeb8(0xe9))/0x4*(parseInt(_0x3dbeb8(0xe1))/0x5)+-parseInt(_0x3dbeb8(0xf2))/0x6*(parseInt(_0x3dbeb8(0xf0))/0x7)+parseInt(_0x3dbeb8(0xe8))/0x8*(parseInt(_0x3dbeb8(0xdd))/0x9)+-parseInt(_0x3dbeb8(0xe2))/0xa*(-parseInt(_0x3dbeb8(0xea))/0xb);if(_0x36ac8d===_0x5188b1)break;else _0x273b72['push'](_0x273b72['shift']());}catch(_0x53ef05){_0x273b72['push'](_0x273b72['shift']());}}}(a108_0xd726,0x8c10e));function a108_0xd726(){const _0x51b586=['decode','startsWith','22344BEbWJA','2748395BBiMAq','20PouBpp','body','parse','[LLM\x20API\x20SSE]\x20','debug','split','2209784UjOuAp','4grqJRu','3995178rbRckW','Response\x20body\x20is\x20null','indexOf','event','pop','slice','56cKcrfq','trim','747276TbqAOH','releaseLock','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','data','read','1461618janYmS','263286NUrlRm','18UFMfwZ'];a108_0xd726=function(){return _0x51b586;};return a108_0xd726();}export async function*parseSSEStream(_0x498211,_0x33de2d){const _0x5e51c7=a108_0x1961;if(!_0x498211[_0x5e51c7(0xe3)])throw new Error(_0x5e51c7(0xeb));const _0x225798=_0x498211[_0x5e51c7(0xe3)]['getReader'](),_0x2a9bd3=new TextDecoder();let _0x2bb448='',_0x15d64b={};try{while(!![]){const {done:_0x1eac1f,value:_0x507217}=await _0x225798[_0x5e51c7(0xf6)]();if(_0x1eac1f){if(_0x15d64b[_0x5e51c7(0xf5)]){_0x33de2d?.[_0x5e51c7(0xe6)](_0x5e51c7(0xe5)+_0x15d64b[_0x5e51c7(0xf5)]);const _0x533ad5=parseSSEData(_0x15d64b['data']);yield _0x533ad5;}break;}_0x2bb448+=_0x2a9bd3[_0x5e51c7(0xde)](_0x507217,{'stream':!![]});const _0x138483=_0x2bb448[_0x5e51c7(0xe7)]('\x0a');_0x2bb448=_0x138483[_0x5e51c7(0xee)]()||'';for(const _0x22d02f of _0x138483){if(_0x22d02f[_0x5e51c7(0xf1)]()===''){if(_0x15d64b[_0x5e51c7(0xf5)]){_0x33de2d?.[_0x5e51c7(0xe6)](_0x5e51c7(0xe5)+_0x15d64b['data']);const _0x356091=parseSSEData(_0x15d64b[_0x5e51c7(0xf5)]);yield _0x356091,_0x15d64b={};}continue;}if(_0x22d02f[_0x5e51c7(0xdf)](':'))continue;const _0x16bab6=_0x22d02f[_0x5e51c7(0xec)](':');if(_0x16bab6===-0x1)continue;const _0x1b00ce=_0x22d02f['slice'](0x0,_0x16bab6);let _0x377815=_0x22d02f[_0x5e51c7(0xef)](_0x16bab6+0x1);_0x377815[_0x5e51c7(0xdf)]('\x20')&&(_0x377815=_0x377815[_0x5e51c7(0xef)](0x1));switch(_0x1b00ce){case _0x5e51c7(0xed):_0x15d64b[_0x5e51c7(0xed)]=_0x377815;break;case _0x5e51c7(0xf5):_0x15d64b[_0x5e51c7(0xf5)]=_0x15d64b['data']?_0x15d64b['data']+'\x0a'+_0x377815:_0x377815;break;case'id':_0x15d64b['id']=_0x377815;break;}}}}finally{_0x225798[_0x5e51c7(0xf3)]();}}function a108_0x1961(_0x2f6e98,_0x3e5afd){_0x2f6e98=_0x2f6e98-0xdd;const _0xd726=a108_0xd726();let _0x19613a=_0xd726[_0x2f6e98];return _0x19613a;}function parseSSEData(_0x274851){const _0x2ae25a=a108_0x1961;try{return JSON[_0x2ae25a(0xe4)](_0x274851);}catch(_0x28a33b){throw new Error(_0x2ae25a(0xf4)+_0x274851,{'cause':_0x28a33b});}}
@@ -1 +1 @@
1
- (function(_0x2971d8,_0x3c4d63){const _0x59d3dd=a109_0x82ea,_0x5ad38c=_0x2971d8();while(!![]){try{const _0x5d63e6=parseInt(_0x59d3dd(0x134))/0x1*(-parseInt(_0x59d3dd(0x123))/0x2)+-parseInt(_0x59d3dd(0x119))/0x3*(parseInt(_0x59d3dd(0x12e))/0x4)+-parseInt(_0x59d3dd(0x128))/0x5+-parseInt(_0x59d3dd(0x133))/0x6*(-parseInt(_0x59d3dd(0x132))/0x7)+-parseInt(_0x59d3dd(0x131))/0x8+-parseInt(_0x59d3dd(0x122))/0x9*(parseInt(_0x59d3dd(0x130))/0xa)+parseInt(_0x59d3dd(0x12b))/0xb*(parseInt(_0x59d3dd(0x11a))/0xc);if(_0x5d63e6===_0x3c4d63)break;else _0x5ad38c['push'](_0x5ad38c['shift']());}catch(_0x56e260){_0x5ad38c['push'](_0x5ad38c['shift']());}}}(a109_0x1004,0xc4e63));import a109_0x3f97ef from'string-width';function a109_0x82ea(_0x26d901,_0x454644){_0x26d901=_0x26d901-0x119;const _0x1004a2=a109_0x1004();let _0x82eace=_0x1004a2[_0x26d901];return _0x82eace;}function a109_0x1004(){const _0x15ae77=['70527vjJHtS','878229SuMdYV','57415884nuvvxk','\x5c$&','repeat','length','USER','toString','trim','padStart','13828311EvpUfX','20ToJBjy','unknown','toLowerCase','Cannot\x20escape\x20empty\x20string\x20literal','floor','5500765GzsMiO','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','random','11AZfdby','env','slice','8fYHRdJ','replace','10OvKjav','3061960BZWywZ','7XjdwVb','1991850lfAuZt'];a109_0x1004=function(){return _0x15ae77;};return a109_0x1004();}export function stringWidth(_0x12b3da){return a109_0x3f97ef(_0x12b3da);}export function padEnd(_0x2dcd7b,_0x1658ed){const _0x13ce99=a109_0x82ea,_0x2cf63c=stringWidth(_0x2dcd7b);if(_0x2cf63c>=_0x1658ed)return _0x2dcd7b;return _0x2dcd7b+'\x20'[_0x13ce99(0x11c)](_0x1658ed-_0x2cf63c);}export function padStart(_0x18930e,_0x110545){const _0x36b6b2=a109_0x82ea,_0x4f6777=stringWidth(_0x18930e);if(_0x4f6777>=_0x110545)return _0x18930e;return'\x20'[_0x36b6b2(0x11c)](_0x110545-_0x4f6777)+_0x18930e;}export function centerAlign(_0x514a8f,_0xcb6721){const _0x2abea6=a109_0x82ea,_0xeb76b=stringWidth(_0x514a8f);if(_0xeb76b>_0xcb6721){if(_0xcb6721<=0x1)return'…'['substring'](0x0,_0xcb6721);let _0x2cb1f8=_0x514a8f;while(stringWidth(_0x2cb1f8+'…')>_0xcb6721){_0x2cb1f8=_0x2cb1f8[_0x2abea6(0x12d)](0x0,-0x1);}return _0x2cb1f8+'…';}if(_0xeb76b===_0xcb6721)return _0x514a8f;const _0x296553=_0xcb6721-_0xeb76b,_0x2b9315=Math[_0x2abea6(0x127)](_0x296553/0x2),_0x5945b7=_0x296553-_0x2b9315;return'\x20'[_0x2abea6(0x11c)](_0x2b9315)+_0x514a8f+'\x20'['repeat'](_0x5945b7);}export function escapeStringLiteral(_0x109395){const _0x17d447=a109_0x82ea;if(!_0x109395||_0x109395['trim']()[_0x17d447(0x11d)]===0x0)throw new Error(_0x17d447(0x126));const _0x1d700a=_0x109395['replace'](/'/g,'\x27\x27');return'\x27'+_0x1d700a+'\x27';}export function globToLike(_0xb0b30a){const _0x27b781=a109_0x82ea;let _0x295130=_0xb0b30a[_0x27b781(0x12f)](/\\/g,'\x5c\x5c')[_0x27b781(0x12f)](/%/g,'\x5c%')[_0x27b781(0x12f)](/_/g,'\x5c_');return _0x295130=_0x295130['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x295130;}export function buildLikePattern(_0x88ab06){const _0x234609=a109_0x82ea;if(!_0x88ab06||_0x88ab06[_0x234609(0x120)]()[_0x234609(0x11d)]===0x0)throw new Error(_0x234609(0x129));const _0x1eb66a=globToLike(_0x88ab06),_0x6663e3=_0x1eb66a[_0x234609(0x12f)](/'/g,'\x27\x27');return'\x27'+_0x6663e3+'\x27';}export function matchGlobPattern(_0x2753ef,_0x5d8323){const _0x4d76ed=a109_0x82ea,_0x7836d5=_0x5d8323[_0x4d76ed(0x12f)](/[.+^${}()|[\]\\]/g,_0x4d76ed(0x11b))[_0x4d76ed(0x12f)](/\*/g,'.*')[_0x4d76ed(0x12f)](/\?/g,'.'),_0x2f0cc1=new RegExp('^'+_0x7836d5+'$');return _0x2f0cc1['test'](_0x2753ef);}export function getSanitizedUsername(){const _0x84e95=a109_0x82ea,_0x427e34=process[_0x84e95(0x12c)][_0x84e95(0x11e)]||process[_0x84e95(0x12c)]['USERNAME']||_0x84e95(0x124);return _0x427e34[_0x84e95(0x12f)](/[^a-zA-Z0-9]/g,'')[_0x84e95(0x125)]();}export function generateRandomHex(){const _0x599e89=a109_0x82ea,_0x4a6474=Math[_0x599e89(0x127)](Math[_0x599e89(0x12a)]()*0xfffff);return _0x4a6474[_0x599e89(0x11f)](0x10)[_0x599e89(0x121)](0x5,'0');}
1
+ (function(_0x32bed2,_0x266cf2){const _0x301a09=a109_0x1211,_0xafcbc1=_0x32bed2();while(!![]){try{const _0x4d8ce0=parseInt(_0x301a09(0x1b4))/0x1*(parseInt(_0x301a09(0x1c2))/0x2)+-parseInt(_0x301a09(0x1b1))/0x3*(-parseInt(_0x301a09(0x1b0))/0x4)+parseInt(_0x301a09(0x1b6))/0x5*(-parseInt(_0x301a09(0x1bf))/0x6)+parseInt(_0x301a09(0x1c1))/0x7+parseInt(_0x301a09(0x1b7))/0x8+parseInt(_0x301a09(0x1c0))/0x9*(parseInt(_0x301a09(0x1bb))/0xa)+parseInt(_0x301a09(0x1af))/0xb*(-parseInt(_0x301a09(0x1c5))/0xc);if(_0x4d8ce0===_0x266cf2)break;else _0xafcbc1['push'](_0xafcbc1['shift']());}catch(_0x3b73ca){_0xafcbc1['push'](_0xafcbc1['shift']());}}}(a109_0x3581,0xe8a6b));import a109_0x2fd2fc from'string-width';export function stringWidth(_0x414159){return a109_0x2fd2fc(_0x414159);}export function padEnd(_0x376bb1,_0x2c4813){const _0xafa9a1=a109_0x1211,_0x4c8e3=stringWidth(_0x376bb1);if(_0x4c8e3>=_0x2c4813)return _0x376bb1;return _0x376bb1+'\x20'[_0xafa9a1(0x1be)](_0x2c4813-_0x4c8e3);}export function padStart(_0x144eb9,_0x1824b5){const _0x7db62=a109_0x1211,_0x488759=stringWidth(_0x144eb9);if(_0x488759>=_0x1824b5)return _0x144eb9;return'\x20'[_0x7db62(0x1be)](_0x1824b5-_0x488759)+_0x144eb9;}export function centerAlign(_0x16bb4a,_0x1907dd){const _0x268041=a109_0x1211,_0x30e2dc=stringWidth(_0x16bb4a);if(_0x30e2dc>_0x1907dd){if(_0x1907dd<=0x1)return'…'[_0x268041(0x1bd)](0x0,_0x1907dd);let _0xd6990f=_0x16bb4a;while(stringWidth(_0xd6990f+'…')>_0x1907dd){_0xd6990f=_0xd6990f['slice'](0x0,-0x1);}return _0xd6990f+'…';}if(_0x30e2dc===_0x1907dd)return _0x16bb4a;const _0x268b51=_0x1907dd-_0x30e2dc,_0x2b35c4=Math[_0x268041(0x1b3)](_0x268b51/0x2),_0x38bcdf=_0x268b51-_0x2b35c4;return'\x20'['repeat'](_0x2b35c4)+_0x16bb4a+'\x20'[_0x268041(0x1be)](_0x38bcdf);}export function escapeStringLiteral(_0x4b175a){const _0x3bae2b=a109_0x1211;if(!_0x4b175a||_0x4b175a[_0x3bae2b(0x1b8)]()[_0x3bae2b(0x1b9)]===0x0)throw new Error(_0x3bae2b(0x1bc));const _0x276b67=_0x4b175a[_0x3bae2b(0x1c3)](/'/g,'\x27\x27');return'\x27'+_0x276b67+'\x27';}export function globToLike(_0x5af4e2){const _0x3c5d3d=a109_0x1211;let _0x32131c=_0x5af4e2['replace'](/\\/g,'\x5c\x5c')[_0x3c5d3d(0x1c3)](/%/g,'\x5c%')[_0x3c5d3d(0x1c3)](/_/g,'\x5c_');return _0x32131c=_0x32131c[_0x3c5d3d(0x1c3)](/\*/g,'%')[_0x3c5d3d(0x1c3)](/\?/g,'_'),_0x32131c;}export function buildLikePattern(_0x44d538){const _0xdf4772=a109_0x1211;if(!_0x44d538||_0x44d538[_0xdf4772(0x1b8)]()['length']===0x0)throw new Error(_0xdf4772(0x1b5));const _0x56e0c6=globToLike(_0x44d538),_0xc188d0=_0x56e0c6[_0xdf4772(0x1c3)](/'/g,'\x27\x27');return'\x27'+_0xc188d0+'\x27';}export function matchGlobPattern(_0x1d9256,_0x358711){const _0x44f11b=a109_0x1211,_0xb8e36e=_0x358711[_0x44f11b(0x1c3)](/[.+^${}()|[\]\\]/g,_0x44f11b(0x1ac))[_0x44f11b(0x1c3)](/\*/g,'.*')[_0x44f11b(0x1c3)](/\?/g,'.'),_0x3e8c33=new RegExp('^'+_0xb8e36e+'$');return _0x3e8c33[_0x44f11b(0x1ba)](_0x1d9256);}function a109_0x3581(){const _0x4c9f15=['Cannot\x20escape\x20empty\x20string\x20literal','substring','repeat','178806MxUhql','119457PkPQLR','4070507kLMhXD','129028AkxmdI','replace','toString','12qWjNls','\x5c$&','USER','USERNAME','22297792DuhOyR','4KCCXWJ','5137419mjfOXV','env','floor','7rHhyvV','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','90yoZJdc','5211200MKDBZt','trim','length','test','90NMxbVW'];a109_0x3581=function(){return _0x4c9f15;};return a109_0x3581();}function a109_0x1211(_0x7d2dca,_0x267f02){_0x7d2dca=_0x7d2dca-0x1ac;const _0x3581ba=a109_0x3581();let _0x12118f=_0x3581ba[_0x7d2dca];return _0x12118f;}export function getSanitizedUsername(){const _0x3a2eec=a109_0x1211,_0x247a20=process['env'][_0x3a2eec(0x1ad)]||process[_0x3a2eec(0x1b2)][_0x3a2eec(0x1ae)]||'unknown';return _0x247a20['replace'](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x5ea479=a109_0x1211,_0x5b51d6=Math[_0x5ea479(0x1b3)](Math['random']()*0xfffff);return _0x5b51d6[_0x5ea479(0x1c4)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x459098,_0x500cf1){const _0x416cd9=a110_0x404f,_0x1ecfe7=_0x459098();while(!![]){try{const _0x11103f=-parseInt(_0x416cd9(0x19e))/0x1+parseInt(_0x416cd9(0x197))/0x2*(-parseInt(_0x416cd9(0x18f))/0x3)+parseInt(_0x416cd9(0x196))/0x4+parseInt(_0x416cd9(0x19d))/0x5*(parseInt(_0x416cd9(0x190))/0x6)+-parseInt(_0x416cd9(0x1a3))/0x7*(parseInt(_0x416cd9(0x18d))/0x8)+parseInt(_0x416cd9(0x193))/0x9+-parseInt(_0x416cd9(0x1a0))/0xa;if(_0x11103f===_0x500cf1)break;else _0x1ecfe7['push'](_0x1ecfe7['shift']());}catch(_0x5e1f80){_0x1ecfe7['push'](_0x1ecfe7['shift']());}}}(a110_0x1eff,0xd1f70));function a110_0x1eff(){const _0x27a792=['Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','3928580tfiRNx','465686eywDSe','push','database','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','includes','710IKFrce','1338509JjGvnp','catalog','10335440yHkruT','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','table','85085gRrXol','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','88cuIEJR','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','9NHiBLj','58062cpEAEP','trim','length','15372216wNVtyw','Pattern\x20cannot\x20be\x20just\x20a\x20dot'];a110_0x1eff=function(){return _0x27a792;};return a110_0x1eff();}function hasWildcard(_0x38a291){const _0x7e0e5e=a110_0x404f;return _0x38a291[_0x7e0e5e(0x19c)]('*')||_0x38a291[_0x7e0e5e(0x19c)]('?');}export function parseTableReference(_0x3adbb7){const _0x24ee13=a110_0x404f;if(!_0x3adbb7||_0x3adbb7[_0x24ee13(0x191)]()[_0x24ee13(0x192)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x45c233=_0x3adbb7[_0x24ee13(0x191)](),_0x5b5c06={'original':_0x45c233},_0x39b7f1=_0x45c233['split']('.');if(_0x39b7f1['length']===0x1){const _0x292f6c=_0x39b7f1[0x0];if(!_0x292f6c)throw new Error(_0x24ee13(0x194));_0x5b5c06[_0x24ee13(0x1a2)]=_0x292f6c;}else{if(_0x39b7f1[_0x24ee13(0x192)]===0x2){const [_0x2b5bbf,_0x56b594]=_0x39b7f1;if(!_0x2b5bbf)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x56b594)throw new Error(_0x24ee13(0x19a));_0x5b5c06[_0x24ee13(0x199)]=_0x2b5bbf,_0x5b5c06[_0x24ee13(0x1a2)]=_0x56b594;}else{if(_0x39b7f1[_0x24ee13(0x192)]===0x3){const [_0x130be6,_0xdce90a,_0x4952c3]=_0x39b7f1;if(!_0x130be6||!_0xdce90a||!_0x4952c3)throw new Error(_0x24ee13(0x18e));_0x5b5c06[_0x24ee13(0x19f)]=_0x130be6,_0x5b5c06[_0x24ee13(0x199)]=_0xdce90a,_0x5b5c06['table']=_0x4952c3;}else throw new Error(_0x24ee13(0x1a1));}}return _0x5b5c06;}function a110_0x404f(_0x386a32,_0x314dcc){_0x386a32=_0x386a32-0x18d;const _0x1eff8a=a110_0x1eff();let _0x404f44=_0x1eff8a[_0x386a32];return _0x404f44;}export function formatTableReference(_0x1cc0e3){const _0x26afed=a110_0x404f,_0x316b46=[];return _0x1cc0e3[_0x26afed(0x19f)]&&_0x316b46[_0x26afed(0x198)](_0x1cc0e3['catalog']),_0x1cc0e3[_0x26afed(0x199)]&&_0x316b46[_0x26afed(0x198)](_0x1cc0e3[_0x26afed(0x199)]),_0x1cc0e3[_0x26afed(0x1a2)]&&_0x316b46[_0x26afed(0x198)](_0x1cc0e3['table']),_0x316b46['join']('.');}export function validateTableListReference(_0x131555){return undefined;}export function validateTableDescribeReference(_0x2f7f1b){const _0xdbb46d=a110_0x404f;if(!_0x2f7f1b[_0xdbb46d(0x1a2)])return _0xdbb46d(0x1a4);if(_0x2f7f1b[_0xdbb46d(0x199)]&&hasWildcard(_0x2f7f1b['database']))return _0xdbb46d(0x195);if(hasWildcard(_0x2f7f1b['table']))return _0xdbb46d(0x19b);return undefined;}
1
+ (function(_0x3e1d69,_0x3180f7){const _0x148c65=a110_0x1ab9,_0x574a4a=_0x3e1d69();while(!![]){try{const _0x55ab18=-parseInt(_0x148c65(0xc5))/0x1*(-parseInt(_0x148c65(0xc3))/0x2)+-parseInt(_0x148c65(0xc1))/0x3*(-parseInt(_0x148c65(0xc7))/0x4)+parseInt(_0x148c65(0xb9))/0x5*(parseInt(_0x148c65(0xcf))/0x6)+parseInt(_0x148c65(0xc2))/0x7+parseInt(_0x148c65(0xc9))/0x8+parseInt(_0x148c65(0xca))/0x9*(-parseInt(_0x148c65(0xbe))/0xa)+-parseInt(_0x148c65(0xcd))/0xb*(parseInt(_0x148c65(0xc0))/0xc);if(_0x55ab18===_0x3180f7)break;else _0x574a4a['push'](_0x574a4a['shift']());}catch(_0x455041){_0x574a4a['push'](_0x574a4a['shift']());}}}(a110_0x54af,0x69e38));function a110_0x54af(){const _0x1e6ec3=['2327916ZSTGjM','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','2102320iklRKi','185589FAuLfE','length','trim','8767mYzyTI','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','78RKrDvI','Pattern\x20cannot\x20be\x20just\x20a\x20dot','table','join','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','218090oKbXNo','database','catalog','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','150tWInDm','includes','15636jMzsrB','3QOachw','217931wRMLCA','338590MGlkMs','split','2ccggYQ','push'];a110_0x54af=function(){return _0x1e6ec3;};return a110_0x54af();}function a110_0x1ab9(_0x1cdb9a,_0x240dda){_0x1cdb9a=_0x1cdb9a-0xb7;const _0x54af7e=a110_0x54af();let _0x1ab969=_0x54af7e[_0x1cdb9a];return _0x1ab969;}function hasWildcard(_0x15cdeb){const _0x21e57a=a110_0x1ab9;return _0x15cdeb[_0x21e57a(0xbf)]('*')||_0x15cdeb[_0x21e57a(0xbf)]('?');}export function parseTableReference(_0x3beba0){const _0x3aca21=a110_0x1ab9;if(!_0x3beba0||_0x3beba0[_0x3aca21(0xcc)]()['length']===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x2e8e85=_0x3beba0[_0x3aca21(0xcc)](),_0xe28553={'original':_0x2e8e85},_0x101844=_0x2e8e85[_0x3aca21(0xc4)]('.');if(_0x101844[_0x3aca21(0xcb)]===0x1){const _0x1ae4f5=_0x101844[0x0];if(!_0x1ae4f5)throw new Error(_0x3aca21(0xd0));_0xe28553[_0x3aca21(0xd1)]=_0x1ae4f5;}else{if(_0x101844[_0x3aca21(0xcb)]===0x2){const [_0xc3b9c9,_0x715fd1]=_0x101844;if(!_0xc3b9c9)throw new Error(_0x3aca21(0xbc));if(!_0x715fd1)throw new Error(_0x3aca21(0xc8));_0xe28553[_0x3aca21(0xba)]=_0xc3b9c9,_0xe28553[_0x3aca21(0xd1)]=_0x715fd1;}else{if(_0x101844[_0x3aca21(0xcb)]===0x3){const [_0x1356d9,_0x56895d,_0x19b934]=_0x101844;if(!_0x1356d9||!_0x56895d||!_0x19b934)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0xe28553[_0x3aca21(0xbb)]=_0x1356d9,_0xe28553[_0x3aca21(0xba)]=_0x56895d,_0xe28553[_0x3aca21(0xd1)]=_0x19b934;}else throw new Error(_0x3aca21(0xce));}}return _0xe28553;}export function formatTableReference(_0x4d8bbf){const _0x557667=a110_0x1ab9,_0x1a992a=[];return _0x4d8bbf[_0x557667(0xbb)]&&_0x1a992a[_0x557667(0xc6)](_0x4d8bbf['catalog']),_0x4d8bbf['database']&&_0x1a992a[_0x557667(0xc6)](_0x4d8bbf[_0x557667(0xba)]),_0x4d8bbf[_0x557667(0xd1)]&&_0x1a992a[_0x557667(0xc6)](_0x4d8bbf[_0x557667(0xd1)]),_0x1a992a[_0x557667(0xb7)]('.');}export function validateTableListReference(_0x503072){return undefined;}export function validateTableDescribeReference(_0x3ecee1){const _0x436a12=a110_0x1ab9;if(!_0x3ecee1[_0x436a12(0xd1)])return _0x436a12(0xb8);if(_0x3ecee1['database']&&hasWildcard(_0x3ecee1[_0x436a12(0xba)]))return _0x436a12(0xbd);if(hasWildcard(_0x3ecee1[_0x436a12(0xd1)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- const a111_0x74672=a111_0x5ec6;(function(_0x43b9ca,_0x5bbce3){const _0x427df7=a111_0x5ec6,_0x5e709a=_0x43b9ca();while(!![]){try{const _0x36f2ca=parseInt(_0x427df7(0x203))/0x1*(parseInt(_0x427df7(0x1f6))/0x2)+parseInt(_0x427df7(0x200))/0x3*(-parseInt(_0x427df7(0x20c))/0x4)+parseInt(_0x427df7(0x201))/0x5*(parseInt(_0x427df7(0x1f9))/0x6)+parseInt(_0x427df7(0x209))/0x7*(parseInt(_0x427df7(0x1f8))/0x8)+-parseInt(_0x427df7(0x1f4))/0x9*(-parseInt(_0x427df7(0x20a))/0xa)+parseInt(_0x427df7(0x20b))/0xb*(-parseInt(_0x427df7(0x204))/0xc)+parseInt(_0x427df7(0x205))/0xd;if(_0x36f2ca===_0x5bbce3)break;else _0x5e709a['push'](_0x5e709a['shift']());}catch(_0x137031){_0x5e709a['push'](_0x5e709a['shift']());}}}(a111_0x4e04,0x6b51b));import{existsSync,readFileSync}from'fs';import a111_0x429dfb from'path';const TDX_CONFIG_FILE=a111_0x74672(0x1f5),SEGMENTS_DIR=a111_0x74672(0x1fe);export function findTdxConfigPath(_0xff0848=process[a111_0x74672(0x207)]()){const _0x5a4538=a111_0x74672;let _0x506683=a111_0x429dfb[_0x5a4538(0x20d)](_0xff0848);const _0x30a717=a111_0x429dfb[_0x5a4538(0x1ff)](_0x506683)['root'];while(_0x506683!==_0x30a717){const _0x3bbd88=a111_0x429dfb[_0x5a4538(0x1f1)](_0x506683,TDX_CONFIG_FILE);if(existsSync(_0x3bbd88))return _0x3bbd88;_0x506683=a111_0x429dfb[_0x5a4538(0x20e)](_0x506683);}return null;}export function loadTdxConfig(_0x30c6bd){const _0xd3d60d=a111_0x74672,_0x146247=readFileSync(_0x30c6bd,_0xd3d60d(0x206));let _0x48e4c2;try{_0x48e4c2=JSON[_0xd3d60d(0x1ff)](_0x146247);}catch{throw new Error(_0xd3d60d(0x208)+_0x30c6bd);}if(!_0x48e4c2||typeof _0x48e4c2!==_0xd3d60d(0x202))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x4e53b6=_0x48e4c2;if(!_0x4e53b6[_0xd3d60d(0x1f3)]||typeof _0x4e53b6[_0xd3d60d(0x1f3)]!==_0xd3d60d(0x1fc))throw new Error(_0xd3d60d(0x1f2));return{'parent_segment':_0x4e53b6['parent_segment']};}export function findTdxConfig(_0x46cc9b=process[a111_0x74672(0x207)]()){const _0x3e27c7=a111_0x74672,_0x376f02=findTdxConfigPath(_0x46cc9b);if(!_0x376f02)throw new Error(_0x3e27c7(0x1fb));const _0x13629f=loadTdxConfig(_0x376f02),_0x309fc4=a111_0x429dfb['dirname'](_0x376f02);return{'config':_0x13629f,'configPath':_0x376f02,'configDir':_0x309fc4};}export function getSegmentRootDir(_0x339efd,_0x25c2f7=process['cwd']()){const _0x31026d=a111_0x74672;return a111_0x429dfb[_0x31026d(0x1f1)](_0x25c2f7,SEGMENTS_DIR,_0x339efd);}function a111_0x5ec6(_0x34df2d,_0x3f5a29){_0x34df2d=_0x34df2d-0x1f1;const _0x4e0431=a111_0x4e04();let _0x5ec69a=_0x4e0431[_0x34df2d];return _0x5ec69a;}export function getTdxConfigPath(_0x7e1272,_0x45ec10=process[a111_0x74672(0x207)]()){const _0x4ca0a6=a111_0x74672;return a111_0x429dfb[_0x4ca0a6(0x1f1)](getSegmentRootDir(_0x7e1272,_0x45ec10),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x531cfc,_0x185b96){const _0x1f3d56=a111_0x74672,_0x51bcc3=a111_0x429dfb['resolve'](_0x531cfc),_0x283a63=a111_0x429dfb[_0x1f3d56(0x1fa)](_0x185b96,_0x51bcc3);if(_0x283a63[_0x1f3d56(0x1f7)]('..'))return'';return _0x283a63;}export function localPathToTdFolderPath(_0x2365b5){const _0xf4ce9c=a111_0x74672,_0x3c9bbe=a111_0x429dfb[_0xf4ce9c(0x20e)](_0x2365b5);if(_0x3c9bbe==='.'||_0x3c9bbe==='')return'';return _0x3c9bbe[_0xf4ce9c(0x1fd)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x1c181c,_0x11227f){if(!_0x1c181c)return _0x11227f;return a111_0x429dfb['join'](_0x11227f,_0x1c181c);}export function createTdxConfigContent(_0x3b1eea){const _0xa8e186={'parent_segment':_0x3b1eea};return JSON['stringify'](_0xa8e186,null,0x2)+'\x0a';}function a111_0x4e04(){const _0x50bb40=['parse','3KFBhfa','10875NgTMvU','object','14Scfrfm','12UHifyj','1123577BJukKH','utf-8','cwd','Invalid\x20JSON\x20in\x20','5427947CzwIdz','130cIfcJY','8673467dJrCFf','2563288KNLPvI','resolve','dirname','join','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','parent_segment','322461XvEfzn','tdx.json','31028TsXZSw','startsWith','8bdPNNc','894qKbUUJ','relative','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','string','replace','segments'];a111_0x4e04=function(){return _0x50bb40;};return a111_0x4e04();}
1
+ const a111_0x64ea03=a111_0xd07e;function a111_0xd07e(_0xbf4e2f,_0x24a1e2){_0xbf4e2f=_0xbf4e2f-0xbc;const _0x35d584=a111_0x35d5();let _0xd07ee0=_0x35d584[_0xbf4e2f];return _0xd07ee0;}(function(_0x4d0e28,_0x1d9885){const _0xd1b98d=a111_0xd07e,_0x26a3fe=_0x4d0e28();while(!![]){try{const _0x363c99=parseInt(_0xd1b98d(0xcc))/0x1*(parseInt(_0xd1b98d(0xd6))/0x2)+-parseInt(_0xd1b98d(0xd5))/0x3+parseInt(_0xd1b98d(0xbd))/0x4+-parseInt(_0xd1b98d(0xc5))/0x5*(-parseInt(_0xd1b98d(0xc1))/0x6)+-parseInt(_0xd1b98d(0xd1))/0x7+parseInt(_0xd1b98d(0xc9))/0x8+-parseInt(_0xd1b98d(0xcd))/0x9;if(_0x363c99===_0x1d9885)break;else _0x26a3fe['push'](_0x26a3fe['shift']());}catch(_0x2a0c19){_0x26a3fe['push'](_0x26a3fe['shift']());}}}(a111_0x35d5,0x99003));import{existsSync,readFileSync}from'fs';import a111_0x190012 from'path';const TDX_CONFIG_FILE=a111_0x64ea03(0xc3),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x39f1d4=process['cwd']()){const _0x42c8ae=a111_0x64ea03;let _0x3dd12b=a111_0x190012['resolve'](_0x39f1d4);const _0x4443df=a111_0x190012[_0x42c8ae(0xd3)](_0x3dd12b)[_0x42c8ae(0xd2)];while(_0x3dd12b!==_0x4443df){const _0x50d827=a111_0x190012['join'](_0x3dd12b,TDX_CONFIG_FILE);if(existsSync(_0x50d827))return _0x50d827;_0x3dd12b=a111_0x190012[_0x42c8ae(0xd4)](_0x3dd12b);}return null;}export function loadTdxConfig(_0x39fb34){const _0x4c9d10=a111_0x64ea03,_0x530303=readFileSync(_0x39fb34,_0x4c9d10(0xc2));let _0x5a06cb;try{_0x5a06cb=JSON[_0x4c9d10(0xd3)](_0x530303);}catch{throw new Error(_0x4c9d10(0xc6)+_0x39fb34);}if(!_0x5a06cb||typeof _0x5a06cb!==_0x4c9d10(0xbc))throw new Error(_0x4c9d10(0xd0));const _0x450ccb=_0x5a06cb;if(!_0x450ccb['parent_segment']||typeof _0x450ccb[_0x4c9d10(0xbf)]!==_0x4c9d10(0xca))throw new Error(_0x4c9d10(0xbe));return{'parent_segment':_0x450ccb[_0x4c9d10(0xbf)]};}export function findTdxConfig(_0x4979d3=process[a111_0x64ea03(0xcf)]()){const _0x592eaf=a111_0x64ea03,_0x50ea9c=findTdxConfigPath(_0x4979d3);if(!_0x50ea9c)throw new Error(_0x592eaf(0xc8));const _0x59ba5d=loadTdxConfig(_0x50ea9c),_0x4426b0=a111_0x190012[_0x592eaf(0xd4)](_0x50ea9c);return{'config':_0x59ba5d,'configPath':_0x50ea9c,'configDir':_0x4426b0};}function a111_0x35d5(){const _0x533cad=['resolve','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','934840ZQhSOb','string','relative','992421gkeMVW','4294215kpcHoa','join','cwd','Invalid\x20tdx.json:\x20expected\x20object','8581965FoqULR','root','parse','dirname','947697IcgSgR','2FfexFI','object','2778904FioBIe','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','parent_segment','stringify','6mVwVwM','utf-8','tdx.json','replace','4208590cPqkfH','Invalid\x20JSON\x20in\x20'];a111_0x35d5=function(){return _0x533cad;};return a111_0x35d5();}export function getSegmentRootDir(_0xc12b78,_0x35890e=process['cwd']()){const _0x4f9232=a111_0x64ea03;return a111_0x190012[_0x4f9232(0xce)](_0x35890e,SEGMENTS_DIR,_0xc12b78);}export function getTdxConfigPath(_0x458cde,_0x90ec33=process[a111_0x64ea03(0xcf)]()){const _0x5b803e=a111_0x64ea03;return a111_0x190012[_0x5b803e(0xce)](getSegmentRootDir(_0x458cde,_0x90ec33),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x595290,_0x33d5a4){const _0x4b51fd=a111_0x64ea03,_0x364cb0=a111_0x190012[_0x4b51fd(0xc7)](_0x595290),_0x2ceaa7=a111_0x190012[_0x4b51fd(0xcb)](_0x33d5a4,_0x364cb0);if(_0x2ceaa7['startsWith']('..'))return'';return _0x2ceaa7;}export function localPathToTdFolderPath(_0x781d12){const _0x26995c=a111_0x64ea03,_0x461ce5=a111_0x190012[_0x26995c(0xd4)](_0x781d12);if(_0x461ce5==='.'||_0x461ce5==='')return'';return _0x461ce5[_0x26995c(0xc4)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x429ec9,_0xc76772){if(!_0x429ec9)return _0xc76772;return a111_0x190012['join'](_0xc76772,_0x429ec9);}export function createTdxConfigContent(_0x59ef9c){const _0x5629b4=a111_0x64ea03,_0x120fba={'parent_segment':_0x59ef9c};return JSON[_0x5629b4(0xc0)](_0x120fba,null,0x2)+'\x0a';}