@treasuredata/tdx 0.4.6 → 0.4.7

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 (90) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-api-client.js +1 -1
  5. package/dist/client/engage-api-client.js +1 -1
  6. package/dist/client/http-client.js +1 -1
  7. package/dist/client/llm-api-client.js +1 -1
  8. package/dist/client/rate-limiter.js +1 -1
  9. package/dist/client/td-api-client.js +1 -1
  10. package/dist/client/trino-api-client.js +1 -1
  11. package/dist/client/workflow-client.js +1 -1
  12. package/dist/commands/activations.js +1 -1
  13. package/dist/commands/api-command.js +1 -1
  14. package/dist/commands/auth-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.d.ts.map +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-command.js.map +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/context-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/job-command.js +1 -1
  25. package/dist/commands/llm-command.js +1 -1
  26. package/dist/commands/llm-proxy.js +1 -1
  27. package/dist/commands/parent-segment-command.js +1 -1
  28. package/dist/commands/profiles-command.js +1 -1
  29. package/dist/commands/query-command.js +1 -1
  30. package/dist/commands/segment-command.js +1 -1
  31. package/dist/commands/segment-create-command.js +1 -1
  32. package/dist/commands/segment-fields-command.js +1 -1
  33. package/dist/commands/segment-pwd-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segments.js +1 -1
  37. package/dist/commands/show.js +1 -1
  38. package/dist/commands/tables.js +1 -1
  39. package/dist/commands/use-command.js +1 -1
  40. package/dist/commands/workflow-command.js +1 -1
  41. package/dist/core/auth.js +1 -1
  42. package/dist/core/config.js +1 -1
  43. package/dist/core/credential-cache.js +1 -1
  44. package/dist/core/global-context.js +1 -1
  45. package/dist/core/keychain.js +1 -1
  46. package/dist/core/profile.js +1 -1
  47. package/dist/core/project-config.js +1 -1
  48. package/dist/core/session.js +1 -1
  49. package/dist/index.js +1 -1
  50. package/dist/proxy/anthropic-adapter.js +1 -1
  51. package/dist/proxy/server.js +1 -1
  52. package/dist/proxy/session-cache.js +1 -1
  53. package/dist/sdk/api.js +1 -1
  54. package/dist/sdk/engage.js +1 -1
  55. package/dist/sdk/errors.js +1 -1
  56. package/dist/sdk/index.js +1 -1
  57. package/dist/sdk/job.js +1 -1
  58. package/dist/sdk/llm.js +1 -1
  59. package/dist/sdk/query.js +1 -1
  60. package/dist/sdk/segment.js +1 -1
  61. package/dist/sdk/workflow.js +1 -1
  62. package/dist/types/endpoints.js +1 -1
  63. package/dist/types/index.js +1 -1
  64. package/dist/utils/agent-ref-parser.js +1 -1
  65. package/dist/utils/chat-cache.js +1 -1
  66. package/dist/utils/colors.js +1 -1
  67. package/dist/utils/command-output.js +1 -1
  68. package/dist/utils/constants.js +1 -1
  69. package/dist/utils/file-permissions.js +1 -1
  70. package/dist/utils/format-detector.js +1 -1
  71. package/dist/utils/formatters.js +1 -1
  72. package/dist/utils/json-loader.js +1 -1
  73. package/dist/utils/llm-backup-utils.js +1 -1
  74. package/dist/utils/model-aliases.js +1 -1
  75. package/dist/utils/option-validation.js +1 -1
  76. package/dist/utils/port.js +1 -1
  77. package/dist/utils/process.js +1 -1
  78. package/dist/utils/prompt.js +1 -1
  79. package/dist/utils/segment-path-parser.js +1 -1
  80. package/dist/utils/segment-ref-parser.js +1 -1
  81. package/dist/utils/spinner.js +1 -1
  82. package/dist/utils/sql-parser.js +1 -1
  83. package/dist/utils/sse-parser.js +1 -1
  84. package/dist/utils/string-utils.js +1 -1
  85. package/dist/utils/table-ref-parser.js +1 -1
  86. package/dist/utils/tdx-logger.js +1 -1
  87. package/dist/utils/tree-formatter.js +1 -1
  88. package/dist/utils/version-check.js +1 -1
  89. package/dist/utils/workflow-utils.js +1 -1
  90. package/package.json +6 -5
@@ -1 +1 @@
1
- (function(_0x235e00,_0x391914){const _0x30ddd8=a70_0x5133,_0x4b05ff=_0x235e00();while(!![]){try{const _0x419cb9=-parseInt(_0x30ddd8(0x1a1))/0x1+parseInt(_0x30ddd8(0x192))/0x2+-parseInt(_0x30ddd8(0x193))/0x3+-parseInt(_0x30ddd8(0x1cd))/0x4*(-parseInt(_0x30ddd8(0x1ae))/0x5)+-parseInt(_0x30ddd8(0x18f))/0x6+parseInt(_0x30ddd8(0x196))/0x7*(-parseInt(_0x30ddd8(0x191))/0x8)+parseInt(_0x30ddd8(0x1c7))/0x9*(parseInt(_0x30ddd8(0x1c9))/0xa);if(_0x419cb9===_0x391914)break;else _0x4b05ff['push'](_0x4b05ff['shift']());}catch(_0xa0c899){_0x4b05ff['push'](_0x4b05ff['shift']());}}}(a70_0x2d45,0xece5b));function a70_0x5133(_0x2c5bc8,_0xd50b62){const _0x2d45ed=a70_0x2d45();return a70_0x5133=function(_0x51336b,_0x93d55a){_0x51336b=_0x51336b-0x18a;let _0x47f6ac=_0x2d45ed[_0x51336b];return _0x47f6ac;},a70_0x5133(_0x2c5bc8,_0xd50b62);}import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a70_0x5d9bbb from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x34bff5){const _0x42b154=a70_0x5133;return{'format':_0x34bff5[_0x42b154(0x19c)]||'table','output':_0x34bff5[_0x42b154(0x1b7)]||'','limit':_0x34bff5[_0x42b154(0x1b0)],'color':_0x34bff5['color'],'noColor':_0x34bff5[_0x42b154(0x1c2)]};}function convertSDKResultToQueryResult(_0x2e49e2){const _0x2a9d15=a70_0x5133,_0x5ba042=[];if(_0x2e49e2[_0x2a9d15(0x198)]>0x0){const _0x45efe2=_0x2e49e2[0x0];for(const [_0x4ccdb2,_0x133d9e]of Object['entries'](_0x45efe2)){let _0x336b17=_0x2a9d15(0x18a);if(typeof _0x133d9e===_0x2a9d15(0x1b2))_0x336b17=Number[_0x2a9d15(0x1ce)](_0x133d9e)?_0x2a9d15(0x1c0):_0x2a9d15(0x1b9);else{if(typeof _0x133d9e===_0x2a9d15(0x19a))_0x336b17='boolean';else _0x133d9e===null&&(_0x336b17='varchar');}_0x5ba042[_0x2a9d15(0x18e)]({'name':_0x4ccdb2,'type':_0x336b17});}}return{'queryId':'sdk-result','columns':_0x5ba042,'data':_0x2e49e2,'stats':{'state':_0x2a9d15(0x199),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x2e49e2[_0x2a9d15(0x198)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x588ce7,_0x186851){const _0x1429a9=convertSDKResultToQueryResult(_0x588ce7);return formatQueryOutput(_0x1429a9,_0x186851);}export async function formatQueryOutput(_0x1266fc,_0x404bc6){const _0x4e0614=a70_0x5133,{format:_0x16a28f,limit:_0x257309,output:_0x4b9dca,color:_0x326180,noColor:_0x3e9ef4}=_0x404bc6,_0x44fd69=Boolean(_0x4b9dca)&&!_0x326180,_0x29af2c={'color':_0x326180,'noColor':_0x3e9ef4||_0x44fd69};if(_0x16a28f===_0x4e0614(0x1b4)){const _0x502e04=shouldUseLess(_0x16a28f,_0x4b9dca);return formatAsTable(_0x1266fc,_0x257309,_0x502e04,_0x29af2c);}else{if(_0x16a28f===_0x4e0614(0x1bd))return formatAsJSON(_0x1266fc,_0x29af2c);else return _0x16a28f===_0x4e0614(0x1b5)?formatAsJSONL(_0x1266fc,_0x29af2c):formatQueryResult(_0x1266fc,_0x16a28f);}}function shouldUseLess(_0x362b93,_0x12c161){const _0x5ee5e1=a70_0x5133;return _0x362b93==='table'&&process[_0x5ee5e1(0x1b1)][_0x5ee5e1(0x1cb)]&&!_0x12c161;}function a70_0x2d45(){const _0x3b9145=['273177MsonKd','padEnd','580xkfMBD','yellow','isTTY','magenta','123380vRYtiP','isInteger','─┴─','[rule]','error','varchar','string','[error]','trim','push','598074GgcnVa','[query]','9302624OwFEvi','1127648euTrLF','3335508apQEnS','stringify','No\x20data','7zshHws','forEach','length','FINISHED','boolean','max','format','params','object','stdin','stderr','737789SJGeRj','tsv','join','[logs]','cyan','bold','close','debug','cmdout','query','less','inherit','[Object]','285fvhTXX','keys','limit','stdout','number','repeat','table','jsonl','log','output','end','double','entries','─┬─','filter','json','red','split','bigint','resolve','noColor','write','map','blue','color'];a70_0x2d45=function(){return _0x3b9145;};return a70_0x2d45();}export function resolveOutputOptions(_0x1b7cb1){const _0x313d99=a70_0x5133,_0x35a93b=resolveOutputFormat(_0x1b7cb1[_0x313d99(0x19c)],_0x1b7cb1[_0x313d99(0x1b7)],_0x313d99(0x1b4));let _0x4e4bb1=typeof _0x1b7cb1[_0x313d99(0x1b0)]===_0x313d99(0x1b2)?_0x1b7cb1[_0x313d99(0x1b0)]:parseInt(_0x1b7cb1['limit']||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x1c54be=_0x1b7cb1[_0x313d99(0x1b7)]||'';return shouldUseLess(_0x35a93b,_0x1c54be)&&(_0x4e4bb1=Infinity),{'format':_0x35a93b,'output':_0x1c54be,'limit':_0x4e4bb1,'color':_0x1b7cb1[_0x313d99(0x1c6)],'noColor':_0x1b7cb1['noColor']};}export function writeOutput(_0x549fa0,_0xe1de69,_0xb0bfa3){const _0xa18d0d=a70_0x5133;return _0xe1de69?(writeFileSync(_0xe1de69,_0x549fa0),console[_0xa18d0d(0x1d1)]('Results\x20saved\x20to\x20'+_0xe1de69),Promise['resolve']()):shouldUseLess(_0xb0bfa3||'','')?new Promise(_0x37eb22=>{const _0x34d93c=_0xa18d0d,_0x96fab7=spawn(_0x34d93c(0x1ab),['-FXRSn'],{'stdio':['pipe',_0x34d93c(0x1ac),_0x34d93c(0x1ac)]});let _0x2eb8c0=![];_0x96fab7['on'](_0x34d93c(0x1d1),()=>{const _0x251535=_0x34d93c;!_0x2eb8c0&&(_0x2eb8c0=!![],console[_0x251535(0x1b6)](_0x549fa0),_0x37eb22());}),_0x96fab7['on'](_0x34d93c(0x1a7),()=>{!_0x2eb8c0&&(_0x2eb8c0=!![],_0x37eb22());}),_0x96fab7['on']('spawn',()=>{const _0x47b492=_0x34d93c;!_0x2eb8c0&&_0x96fab7[_0x47b492(0x19f)]&&(_0x96fab7[_0x47b492(0x19f)]['on'](_0x47b492(0x1d1),()=>{}),_0x96fab7[_0x47b492(0x19f)][_0x47b492(0x1c3)](_0x549fa0),_0x96fab7[_0x47b492(0x19f)][_0x47b492(0x1b8)]());}),!_0x96fab7[_0x34d93c(0x19f)]&&(!_0x2eb8c0&&(_0x2eb8c0=!![],console['log'](_0x549fa0),_0x37eb22()));}):(console['log'](_0x549fa0),Promise[_0xa18d0d(0x1c1)]());}export async function handleSDKOutput(_0x5d64d9,_0x310dfb){const _0xaba736=a70_0x5133,_0x1417f1=resolveOutputOptions(_0x310dfb),_0x4f5293=await formatSDKOutput(_0x5d64d9,_0x1417f1);await writeOutput(_0x4f5293,_0x1417f1['output']||undefined,_0x1417f1[_0xaba736(0x19c)]);}export async function handleQueryOutput(_0x343291,_0x4cc9b1){const _0x4a4517=a70_0x5133,_0x22963a=resolveOutputOptions(_0x4cc9b1),_0x317658=await formatQueryOutput(_0x343291,_0x22963a);await writeOutput(_0x317658,_0x22963a[_0x4a4517(0x1b7)]||undefined,_0x22963a[_0x4a4517(0x19c)]);}async function formatSingleObject(_0x4264b3,_0x55e9d7){const _0x1f30ac=a70_0x5133,{format:_0x26e519,color:_0x23619b,noColor:_0x1131ff}=_0x55e9d7,_0x441bfc={'color':_0x23619b,'noColor':_0x1131ff};if(_0x26e519==='json'){if(shouldUseColor(_0x441bfc))return colorizeJSON(_0x4264b3,_0x441bfc);return JSON['stringify'](_0x4264b3,null,0x2);}else{if(_0x26e519===_0x1f30ac(0x1b5)){if(shouldUseColor(_0x441bfc))return colorizeJSONCompact(_0x4264b3,_0x441bfc);return JSON[_0x1f30ac(0x194)](_0x4264b3);}else{if(_0x26e519===_0x1f30ac(0x1a2))return Object[_0x1f30ac(0x1ba)](_0x4264b3)['map'](([_0x2a2b95,_0x5203bf])=>_0x2a2b95+'\x09'+_0x5203bf)[_0x1f30ac(0x1a3)]('\x0a');else{const _0x270997=Object[_0x1f30ac(0x1ba)](_0x4264b3);if(_0x270997['length']===0x0)return _0x1f30ac(0x195);const _0x4af8be=_0x4264b3['debug'],_0x4e52a0=_0x4264b3[_0x1f30ac(0x1aa)],_0x144bbc=_0x4264b3[_0x1f30ac(0x19d)],_0xb3e31d=_0x4264b3['rule'],_0x27e4c8=_0x4e52a0?typeof _0x4e52a0===_0x1f30ac(0x18b)?_0x4e52a0:JSON['stringify'](_0x4e52a0,null,0x2):undefined,_0x1737cc=_0x144bbc&&Object[_0x1f30ac(0x1af)](_0x144bbc)[_0x1f30ac(0x198)]>0x0?JSON[_0x1f30ac(0x194)](_0x144bbc,null,0x2):undefined,_0x57e3e8=_0xb3e31d&&Object[_0x1f30ac(0x1af)](_0xb3e31d)[_0x1f30ac(0x198)]>0x0?JSON[_0x1f30ac(0x194)](_0xb3e31d,null,0x2):undefined,_0x3e300d=_0x270997[_0x1f30ac(0x1bc)](([_0x255ab5])=>_0x255ab5!==_0x1f30ac(0x1a8)&&_0x255ab5!==_0x1f30ac(0x1aa)&&_0x255ab5!==_0x1f30ac(0x19d)&&_0x255ab5!=='rule'),_0x3d0bb2=Math['max'](..._0x3e300d[_0x1f30ac(0x1c4)](([_0x1fc9f4])=>_0x1fc9f4[_0x1f30ac(0x198)])),_0x5efa89=Math[_0x1f30ac(0x19b)](..._0x3e300d['map'](([,_0x2c7a97])=>{const _0x4a96a8=_0x1f30ac;try{const _0x209c5d=_0x2c7a97===null||_0x2c7a97===undefined?'':typeof _0x2c7a97===_0x4a96a8(0x19e)?JSON[_0x4a96a8(0x194)](_0x2c7a97):String(_0x2c7a97),_0x4ef18d=_0x209c5d[_0x4a96a8(0x1bf)]('\x0a');return Math[_0x4a96a8(0x19b)](..._0x4ef18d['map'](_0x979f4=>_0x979f4[_0x4a96a8(0x198)]),0x0);}catch{return 0x0;}}),0x14),_0x3cd2be=[];_0x3cd2be['push'](colorBorder('┌─'+'─'[_0x1f30ac(0x1b3)](_0x3d0bb2)+_0x1f30ac(0x1bb)+'─'[_0x1f30ac(0x1b3)](_0x5efa89)+'─┐',_0x441bfc)),_0x3e300d[_0x1f30ac(0x197)](([_0x18b698,_0x17db39])=>{const _0x33a646=_0x1f30ac;let _0x12a232;try{_0x12a232=_0x17db39===null||_0x17db39===undefined?'':typeof _0x17db39==='object'?JSON[_0x33a646(0x194)](_0x17db39):String(_0x17db39);}catch{_0x12a232=_0x33a646(0x1ad);}const _0xdd6b8e=_0x18b698['padEnd'](_0x3d0bb2),_0x4bd19c=_0x12a232[_0x33a646(0x1bf)]('\x0a');_0x4bd19c[_0x33a646(0x197)]((_0x4f4836,_0x4da042)=>{const _0x1dc4ff=_0x33a646,_0x23daa1=colorBorder('│',_0x441bfc);_0x4da042===0x0?_0x3cd2be[_0x1dc4ff(0x18e)](_0x23daa1+'\x20'+_0xdd6b8e+'\x20'+_0x23daa1+'\x20'+_0x4f4836['padEnd'](_0x5efa89)+'\x20'+_0x23daa1):_0x3cd2be[_0x1dc4ff(0x18e)](_0x23daa1+'\x20'+'\x20'[_0x1dc4ff(0x1b3)](_0x3d0bb2)+'\x20'+_0x23daa1+'\x20'+_0x4f4836[_0x1dc4ff(0x1c8)](_0x5efa89)+'\x20'+_0x23daa1);});}),_0x3cd2be['push'](colorBorder('└─'+'─'['repeat'](_0x3d0bb2)+_0x1f30ac(0x1cf)+'─'[_0x1f30ac(0x1b3)](_0x5efa89)+'─┘',_0x441bfc));_0x27e4c8&&(_0x3cd2be[_0x1f30ac(0x18e)](''),_0x3cd2be[_0x1f30ac(0x18e)](String(a70_0x5d9bbb[_0x1f30ac(0x1ca)][_0x1f30ac(0x1a6)](_0x1f30ac(0x190)))),_0x3cd2be[_0x1f30ac(0x18e)](_0x27e4c8));_0x1737cc&&(_0x3cd2be['push'](''),_0x3cd2be[_0x1f30ac(0x18e)](String(a70_0x5d9bbb[_0x1f30ac(0x1c5)][_0x1f30ac(0x1a6)]('[params]'))),_0x3cd2be['push'](_0x1737cc));_0x57e3e8&&(_0x3cd2be[_0x1f30ac(0x18e)](''),_0x3cd2be[_0x1f30ac(0x18e)](String(a70_0x5d9bbb[_0x1f30ac(0x1cc)][_0x1f30ac(0x1a6)](_0x1f30ac(0x1d0)))),_0x3cd2be[_0x1f30ac(0x18e)](_0x57e3e8));if(_0x4af8be){if(_0x4af8be[_0x1f30ac(0x1a0)]){_0x3cd2be['push'](''),_0x3cd2be['push'](String(a70_0x5d9bbb[_0x1f30ac(0x1be)][_0x1f30ac(0x1a6)](_0x1f30ac(0x18c))));const _0x14bc31=_0x4af8be['stderr'][_0x1f30ac(0x1bf)]('\x0a');_0x14bc31[_0x1f30ac(0x197)](_0x148398=>{const _0x4e14af=_0x1f30ac;_0x148398[_0x4e14af(0x18d)]()&&_0x3cd2be['push'](_0x148398);});}if(_0x4af8be['cmdout']){_0x3cd2be['push'](''),_0x3cd2be[_0x1f30ac(0x18e)](String(a70_0x5d9bbb[_0x1f30ac(0x1a5)][_0x1f30ac(0x1a6)](_0x1f30ac(0x1a4))));const _0x125d36=_0x4af8be[_0x1f30ac(0x1a9)][_0x1f30ac(0x1bf)]('\x0a');_0x125d36[_0x1f30ac(0x197)](_0x125896=>{const _0x4068c7=_0x1f30ac;_0x125896[_0x4068c7(0x18d)]()&&_0x3cd2be[_0x4068c7(0x18e)](_0x125896);});}}return _0x3cd2be['join']('\x0a');}}}}export async function handleSingleObjectOutput(_0x525ac5,_0x184eaf){const _0x351ed9=a70_0x5133,_0x1df23b=resolveOutputOptions(_0x184eaf),_0x10e761=await formatSingleObject(_0x525ac5,_0x1df23b);await writeOutput(_0x10e761,_0x1df23b['output']||undefined,_0x1df23b[_0x351ed9(0x19c)]);}
1
+ (function(_0x3afa1d,_0x436bf8){const _0xeafe2=a70_0x24f1,_0x3fe141=_0x3afa1d();while(!![]){try{const _0x264d37=parseInt(_0xeafe2(0x19c))/0x1*(parseInt(_0xeafe2(0x1c4))/0x2)+parseInt(_0xeafe2(0x1d1))/0x3+-parseInt(_0xeafe2(0x1a7))/0x4+parseInt(_0xeafe2(0x1c6))/0x5+parseInt(_0xeafe2(0x1a2))/0x6*(parseInt(_0xeafe2(0x1bf))/0x7)+-parseInt(_0xeafe2(0x1ba))/0x8*(-parseInt(_0xeafe2(0x1cd))/0x9)+-parseInt(_0xeafe2(0x1a3))/0xa*(parseInt(_0xeafe2(0x1b2))/0xb);if(_0x264d37===_0x436bf8)break;else _0x3fe141['push'](_0x3fe141['shift']());}catch(_0x448311){_0x3fe141['push'](_0x3fe141['shift']());}}}(a70_0x342f,0x8fec6));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a70_0x292819 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x5afaa9){const _0xa0326e=a70_0x24f1;return{'format':_0x5afaa9[_0xa0326e(0x1a1)]||_0xa0326e(0x1c5),'output':_0x5afaa9[_0xa0326e(0x1c3)]||'','limit':_0x5afaa9[_0xa0326e(0x190)],'color':_0x5afaa9[_0xa0326e(0x1c1)],'noColor':_0x5afaa9['noColor']};}function convertSDKResultToQueryResult(_0x376af7){const _0x2ced3b=a70_0x24f1,_0x512c51=[];if(_0x376af7[_0x2ced3b(0x1ad)]>0x0){const _0x2ac69a=_0x376af7[0x0];for(const [_0x52683f,_0x50b834]of Object[_0x2ced3b(0x1be)](_0x2ac69a)){let _0x3d8387=_0x2ced3b(0x1c8);if(typeof _0x50b834==='number')_0x3d8387=Number[_0x2ced3b(0x19b)](_0x50b834)?_0x2ced3b(0x1d5):_0x2ced3b(0x1b6);else{if(typeof _0x50b834==='boolean')_0x3d8387=_0x2ced3b(0x1c9);else _0x50b834===null&&(_0x3d8387=_0x2ced3b(0x1c8));}_0x512c51['push']({'name':_0x52683f,'type':_0x3d8387});}}return{'queryId':_0x2ced3b(0x1d4),'columns':_0x512c51,'data':_0x376af7,'stats':{'state':_0x2ced3b(0x18e),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x376af7['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}function a70_0x342f(){const _0x547422=['query','[query]','cmdout','length','less','pipe','[params]','forEach','8235062wtIWmQ','bold','stdout','split','double','stderr','resolve','─┴─','568hJHxId','debug','error','[rule]','entries','1883sPggNH','blue','color','rule','output','2hoNWHr','table','4689265kJEnoF','join','varchar','boolean','max','stringify','write','11277PSaCYE','close','isTTY','padEnd','2266704XIVDAS','-FXRSn','yellow','sdk-result','bigint','cyan','FINISHED','[error]','limit','No\x20data','stdin','string','keys','jsonl','map','repeat','number','inherit','object','isInteger','399769mIBfRJ','push','params','spawn','log','format','15522zjqvhI','20rsBvEh','magenta','noColor','[Object]','3165048WSJOEN','trim','red'];a70_0x342f=function(){return _0x547422;};return a70_0x342f();}export async function formatSDKOutput(_0x4c7b2a,_0x386fa0){const _0x264985=convertSDKResultToQueryResult(_0x4c7b2a);return formatQueryOutput(_0x264985,_0x386fa0);}export async function formatQueryOutput(_0x21a7d6,_0x44b02b){const _0x550305=a70_0x24f1,{format:_0x2ebd5a,limit:_0x1b8a8e,output:_0x4d107d,color:_0x5b323e,noColor:_0x244472}=_0x44b02b,_0x280491=Boolean(_0x4d107d)&&!_0x5b323e,_0x5dfff2={'color':_0x5b323e,'noColor':_0x244472||_0x280491};if(_0x2ebd5a===_0x550305(0x1c5)){const _0x1451f1=shouldUseLess(_0x2ebd5a,_0x4d107d);return formatAsTable(_0x21a7d6,_0x1b8a8e,_0x1451f1,_0x5dfff2);}else{if(_0x2ebd5a==='json')return formatAsJSON(_0x21a7d6,_0x5dfff2);else return _0x2ebd5a===_0x550305(0x195)?formatAsJSONL(_0x21a7d6,_0x5dfff2):formatQueryResult(_0x21a7d6,_0x2ebd5a);}}function shouldUseLess(_0x426e9e,_0x1123c7){const _0x3e3ca9=a70_0x24f1;return _0x426e9e==='table'&&process[_0x3e3ca9(0x1b4)][_0x3e3ca9(0x1cf)]&&!_0x1123c7;}export function resolveOutputOptions(_0x48c0fb){const _0x56a845=a70_0x24f1,_0x48e13d=resolveOutputFormat(_0x48c0fb['format'],_0x48c0fb['output'],_0x56a845(0x1c5));let _0x25c15c=typeof _0x48c0fb[_0x56a845(0x190)]===_0x56a845(0x198)?_0x48c0fb[_0x56a845(0x190)]:parseInt(_0x48c0fb[_0x56a845(0x190)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x59c7a9=_0x48c0fb[_0x56a845(0x1c3)]||'';return shouldUseLess(_0x48e13d,_0x59c7a9)&&(_0x25c15c=Infinity),{'format':_0x48e13d,'output':_0x59c7a9,'limit':_0x25c15c,'color':_0x48c0fb[_0x56a845(0x1c1)],'noColor':_0x48c0fb[_0x56a845(0x1a5)]};}export function writeOutput(_0x298eb0,_0xf2eee1,_0x5de5f4){const _0x3b644d=a70_0x24f1;return _0xf2eee1?(writeFileSync(_0xf2eee1,_0x298eb0),console['error']('Results\x20saved\x20to\x20'+_0xf2eee1),Promise[_0x3b644d(0x1b8)]()):shouldUseLess(_0x5de5f4||'','')?new Promise(_0x1b3e0d=>{const _0x41ae8c=_0x3b644d,_0x50d819=spawn(_0x41ae8c(0x1ae),[_0x41ae8c(0x1d2)],{'stdio':[_0x41ae8c(0x1af),_0x41ae8c(0x199),_0x41ae8c(0x199)]});let _0x106320=![];_0x50d819['on'](_0x41ae8c(0x1bc),()=>{!_0x106320&&(_0x106320=!![],console['log'](_0x298eb0),_0x1b3e0d());}),_0x50d819['on'](_0x41ae8c(0x1ce),()=>{!_0x106320&&(_0x106320=!![],_0x1b3e0d());}),_0x50d819['on'](_0x41ae8c(0x19f),()=>{const _0x57ea8c=_0x41ae8c;!_0x106320&&_0x50d819['stdin']&&(_0x50d819[_0x57ea8c(0x192)]['on'](_0x57ea8c(0x1bc),()=>{}),_0x50d819[_0x57ea8c(0x192)][_0x57ea8c(0x1cc)](_0x298eb0),_0x50d819[_0x57ea8c(0x192)]['end']());}),!_0x50d819[_0x41ae8c(0x192)]&&(!_0x106320&&(_0x106320=!![],console[_0x41ae8c(0x1a0)](_0x298eb0),_0x1b3e0d()));}):(console[_0x3b644d(0x1a0)](_0x298eb0),Promise['resolve']());}export async function handleSDKOutput(_0x4e2f29,_0x2aa350){const _0x2c79cd=a70_0x24f1,_0x3d3d34=resolveOutputOptions(_0x2aa350),_0x484bdf=await formatSDKOutput(_0x4e2f29,_0x3d3d34);await writeOutput(_0x484bdf,_0x3d3d34[_0x2c79cd(0x1c3)]||undefined,_0x3d3d34[_0x2c79cd(0x1a1)]);}export async function handleQueryOutput(_0x1e9aad,_0x427549){const _0x1d5f18=a70_0x24f1,_0x3e6fd0=resolveOutputOptions(_0x427549),_0x2abefc=await formatQueryOutput(_0x1e9aad,_0x3e6fd0);await writeOutput(_0x2abefc,_0x3e6fd0[_0x1d5f18(0x1c3)]||undefined,_0x3e6fd0['format']);}async function formatSingleObject(_0x35b522,_0x19ee53){const _0x1e3b82=a70_0x24f1,{format:_0x37c901,color:_0x63b91d,noColor:_0x63cc50}=_0x19ee53,_0xdef08b={'color':_0x63b91d,'noColor':_0x63cc50};if(_0x37c901==='json'){if(shouldUseColor(_0xdef08b))return colorizeJSON(_0x35b522,_0xdef08b);return JSON[_0x1e3b82(0x1cb)](_0x35b522,null,0x2);}else{if(_0x37c901==='jsonl'){if(shouldUseColor(_0xdef08b))return colorizeJSONCompact(_0x35b522,_0xdef08b);return JSON[_0x1e3b82(0x1cb)](_0x35b522);}else{if(_0x37c901==='tsv')return Object['entries'](_0x35b522)['map'](([_0x515b6a,_0x3b3bec])=>_0x515b6a+'\x09'+_0x3b3bec)['join']('\x0a');else{const _0x8e8998=Object[_0x1e3b82(0x1be)](_0x35b522);if(_0x8e8998[_0x1e3b82(0x1ad)]===0x0)return _0x1e3b82(0x191);const _0x4f0ea5=_0x35b522[_0x1e3b82(0x1bb)],_0x3d66c9=_0x35b522['query'],_0x39e9d9=_0x35b522[_0x1e3b82(0x19e)],_0xa617da=_0x35b522['rule'],_0x202ae1=_0x3d66c9?typeof _0x3d66c9===_0x1e3b82(0x193)?_0x3d66c9:JSON[_0x1e3b82(0x1cb)](_0x3d66c9,null,0x2):undefined,_0x12034b=_0x39e9d9&&Object[_0x1e3b82(0x194)](_0x39e9d9)['length']>0x0?JSON[_0x1e3b82(0x1cb)](_0x39e9d9,null,0x2):undefined,_0x2743ef=_0xa617da&&Object['keys'](_0xa617da)[_0x1e3b82(0x1ad)]>0x0?JSON[_0x1e3b82(0x1cb)](_0xa617da,null,0x2):undefined,_0x31cd92=_0x8e8998['filter'](([_0x3d4f30])=>_0x3d4f30!=='debug'&&_0x3d4f30!==_0x1e3b82(0x1aa)&&_0x3d4f30!==_0x1e3b82(0x19e)&&_0x3d4f30!==_0x1e3b82(0x1c2)),_0x35e892=Math[_0x1e3b82(0x1ca)](..._0x31cd92['map'](([_0x2b7849])=>_0x2b7849[_0x1e3b82(0x1ad)])),_0x2c3280=Math[_0x1e3b82(0x1ca)](..._0x31cd92[_0x1e3b82(0x196)](([,_0x24a320])=>{const _0x5f040e=_0x1e3b82;try{const _0x4992c1=_0x24a320===null||_0x24a320===undefined?'':typeof _0x24a320===_0x5f040e(0x19a)?JSON[_0x5f040e(0x1cb)](_0x24a320):String(_0x24a320),_0x3ddc27=_0x4992c1[_0x5f040e(0x1b5)]('\x0a');return Math[_0x5f040e(0x1ca)](..._0x3ddc27[_0x5f040e(0x196)](_0x37ab1f=>_0x37ab1f[_0x5f040e(0x1ad)]),0x0);}catch{return 0x0;}}),0x14),_0x1b11bb=[];_0x1b11bb['push'](colorBorder('┌─'+'─'['repeat'](_0x35e892)+'─┬─'+'─'[_0x1e3b82(0x197)](_0x2c3280)+'─┐',_0xdef08b)),_0x31cd92[_0x1e3b82(0x1b1)](([_0x18258c,_0x3f1466])=>{const _0xea1f9c=_0x1e3b82;let _0x4f7f3e;try{_0x4f7f3e=_0x3f1466===null||_0x3f1466===undefined?'':typeof _0x3f1466===_0xea1f9c(0x19a)?JSON[_0xea1f9c(0x1cb)](_0x3f1466):String(_0x3f1466);}catch{_0x4f7f3e=_0xea1f9c(0x1a6);}const _0x5961aa=_0x18258c[_0xea1f9c(0x1d0)](_0x35e892),_0x55858e=_0x4f7f3e[_0xea1f9c(0x1b5)]('\x0a');_0x55858e[_0xea1f9c(0x1b1)]((_0x494723,_0x274757)=>{const _0xeda5e8=_0xea1f9c,_0x2b16ef=colorBorder('│',_0xdef08b);_0x274757===0x0?_0x1b11bb['push'](_0x2b16ef+'\x20'+_0x5961aa+'\x20'+_0x2b16ef+'\x20'+_0x494723[_0xeda5e8(0x1d0)](_0x2c3280)+'\x20'+_0x2b16ef):_0x1b11bb['push'](_0x2b16ef+'\x20'+'\x20'[_0xeda5e8(0x197)](_0x35e892)+'\x20'+_0x2b16ef+'\x20'+_0x494723[_0xeda5e8(0x1d0)](_0x2c3280)+'\x20'+_0x2b16ef);});}),_0x1b11bb[_0x1e3b82(0x19d)](colorBorder('└─'+'─'['repeat'](_0x35e892)+_0x1e3b82(0x1b9)+'─'['repeat'](_0x2c3280)+'─┘',_0xdef08b));_0x202ae1&&(_0x1b11bb['push'](''),_0x1b11bb[_0x1e3b82(0x19d)](String(a70_0x292819[_0x1e3b82(0x1d3)][_0x1e3b82(0x1b3)](_0x1e3b82(0x1ab)))),_0x1b11bb[_0x1e3b82(0x19d)](_0x202ae1));_0x12034b&&(_0x1b11bb[_0x1e3b82(0x19d)](''),_0x1b11bb[_0x1e3b82(0x19d)](String(a70_0x292819[_0x1e3b82(0x1c0)][_0x1e3b82(0x1b3)](_0x1e3b82(0x1b0)))),_0x1b11bb[_0x1e3b82(0x19d)](_0x12034b));_0x2743ef&&(_0x1b11bb[_0x1e3b82(0x19d)](''),_0x1b11bb[_0x1e3b82(0x19d)](String(a70_0x292819[_0x1e3b82(0x1a4)][_0x1e3b82(0x1b3)](_0x1e3b82(0x1bd)))),_0x1b11bb['push'](_0x2743ef));if(_0x4f0ea5){if(_0x4f0ea5[_0x1e3b82(0x1b7)]){_0x1b11bb['push'](''),_0x1b11bb[_0x1e3b82(0x19d)](String(a70_0x292819[_0x1e3b82(0x1a9)]['bold'](_0x1e3b82(0x18f))));const _0x3cbbe5=_0x4f0ea5[_0x1e3b82(0x1b7)]['split']('\x0a');_0x3cbbe5[_0x1e3b82(0x1b1)](_0x1c446d=>{const _0x594b16=_0x1e3b82;_0x1c446d[_0x594b16(0x1a8)]()&&_0x1b11bb[_0x594b16(0x19d)](_0x1c446d);});}if(_0x4f0ea5['cmdout']){_0x1b11bb[_0x1e3b82(0x19d)](''),_0x1b11bb['push'](String(a70_0x292819[_0x1e3b82(0x1d6)][_0x1e3b82(0x1b3)]('[logs]')));const _0x5aeacb=_0x4f0ea5[_0x1e3b82(0x1ac)][_0x1e3b82(0x1b5)]('\x0a');_0x5aeacb[_0x1e3b82(0x1b1)](_0x5e61ad=>{const _0x16ef8d=_0x1e3b82;_0x5e61ad[_0x16ef8d(0x1a8)]()&&_0x1b11bb[_0x16ef8d(0x19d)](_0x5e61ad);});}}return _0x1b11bb[_0x1e3b82(0x1c7)]('\x0a');}}}}function a70_0x24f1(_0x220437,_0x5927ea){const _0x342f45=a70_0x342f();return a70_0x24f1=function(_0x24f135,_0x9af92e){_0x24f135=_0x24f135-0x18e;let _0x3d5728=_0x342f45[_0x24f135];return _0x3d5728;},a70_0x24f1(_0x220437,_0x5927ea);}export async function handleSingleObjectOutput(_0x2ef428,_0xfbb83b){const _0x4b00c=a70_0x24f1,_0x399cbb=resolveOutputOptions(_0xfbb83b),_0x3f7998=await formatSingleObject(_0x2ef428,_0x399cbb);await writeOutput(_0x3f7998,_0x399cbb[_0x4b00c(0x1c3)]||undefined,_0x399cbb[_0x4b00c(0x1a1)]);}
@@ -1 +1 @@
1
- (function(_0x570ca1,_0x1c4b32){const _0xb20e2c=a71_0x5800,_0x1cf1c9=_0x570ca1();while(!![]){try{const _0x4a77f8=parseInt(_0xb20e2c(0xef))/0x1*(parseInt(_0xb20e2c(0xed))/0x2)+parseInt(_0xb20e2c(0xea))/0x3+parseInt(_0xb20e2c(0xec))/0x4*(parseInt(_0xb20e2c(0xf0))/0x5)+-parseInt(_0xb20e2c(0xf3))/0x6*(-parseInt(_0xb20e2c(0xf1))/0x7)+parseInt(_0xb20e2c(0xf2))/0x8+-parseInt(_0xb20e2c(0xeb))/0x9*(-parseInt(_0xb20e2c(0xee))/0xa)+-parseInt(_0xb20e2c(0xe9))/0xb*(parseInt(_0xb20e2c(0xe8))/0xc);if(_0x4a77f8===_0x1c4b32)break;else _0x1cf1c9['push'](_0x1cf1c9['shift']());}catch(_0x7058da){_0x1cf1c9['push'](_0x1cf1c9['shift']());}}}(a71_0x23fa,0x7fd5e));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;function a71_0x23fa(){const _0x2260d4=['14445057nPlVGA','2823456avFqeB','1701SiWZSs','4153060SfASgf','21210CtfFXW','30910TmmHed','93IypUoe','5JGpRKr','76762CeZjDC','5464064OsPthV','126khJOMy','36vdiZzC'];a71_0x23fa=function(){return _0x2260d4;};return a71_0x23fa();}function a71_0x5800(_0x1e731c,_0x3356af){const _0x23fa66=a71_0x23fa();return a71_0x5800=function(_0x5800e6,_0x260afd){_0x5800e6=_0x5800e6-0xe8;let _0x40e9d2=_0x23fa66[_0x5800e6];return _0x40e9d2;},a71_0x5800(_0x1e731c,_0x3356af);}export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x103ccf,_0x3a9fdf){if(_0x103ccf===undefined)return _0x3a9fdf;if(typeof _0x103ccf==='number')return _0x103ccf;return parseInt(_0x103ccf,0xa);}
1
+ function a71_0x5666(_0x2d28c0,_0x1c9749){const _0x5239ea=a71_0x5239();return a71_0x5666=function(_0x5666d7,_0x28718f){_0x5666d7=_0x5666d7-0x1a3;let _0x135973=_0x5239ea[_0x5666d7];return _0x135973;},a71_0x5666(_0x2d28c0,_0x1c9749);}function a71_0x5239(){const _0x273eb3=['2367972apEjtQ','2002TUKgBx','1206096dvQhkg','6113160vKNdUy','903lEDTop','number','4ptllXI','9aXlDgn','4373019KsZmPm','18375RBeqUL','519005TyzCXk'];a71_0x5239=function(){return _0x273eb3;};return a71_0x5239();}(function(_0x5b87de,_0xf4870){const _0x545a7c=a71_0x5666,_0x532bf2=_0x5b87de();while(!![]){try{const _0x5ac108=parseInt(_0x545a7c(0x1a9))/0x1*(parseInt(_0x545a7c(0x1a6))/0x2)+-parseInt(_0x545a7c(0x1a3))/0x3*(-parseInt(_0x545a7c(0x1ab))/0x4)+parseInt(_0x545a7c(0x1a4))/0x5+-parseInt(_0x545a7c(0x1a5))/0x6+-parseInt(_0x545a7c(0x1ad))/0x7+-parseInt(_0x545a7c(0x1a7))/0x8*(parseInt(_0x545a7c(0x1ac))/0x9)+parseInt(_0x545a7c(0x1a8))/0xa;if(_0x5ac108===_0xf4870)break;else _0x532bf2['push'](_0x532bf2['shift']());}catch(_0x10cd59){_0x532bf2['push'](_0x532bf2['shift']());}}}(a71_0x5239,0x6f15c));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x25804b,_0x39b88d){const _0x48d03a=a71_0x5666;if(_0x25804b===undefined)return _0x39b88d;if(typeof _0x25804b===_0x48d03a(0x1aa))return _0x25804b;return parseInt(_0x25804b,0xa);}
@@ -1 +1 @@
1
- function a72_0x2e5c(){const _0xb931cf=['283382dPnsym','warn','456074ZPqcmu','367292vclMaC','existsSync','7545590qJcGkK','9081906dFXSFt','7xjNIQD','1283271UGQYzP','16rrhyEy','mkdirSync','statSync','chmodSync','mode','530BEztcG','1189323lLaFvw','toString','Should\x20be\x200600\x20or\x20more\x20restrictive.','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20',').\x20','15FwmLmy'];a72_0x2e5c=function(){return _0xb931cf;};return a72_0x2e5c();}(function(_0x4ac05a,_0x54884d){const _0x1164c8=a72_0x4090,_0x58f2c9=_0x4ac05a();while(!![]){try{const _0x23848b=parseInt(_0x1164c8(0xf7))/0x1+parseInt(_0x1164c8(0xf1))/0x2*(parseInt(_0x1164c8(0xee))/0x3)+-parseInt(_0x1164c8(0xf2))/0x4+-parseInt(_0x1164c8(0xf4))/0x5+-parseInt(_0x1164c8(0xf5))/0x6*(parseInt(_0x1164c8(0xf6))/0x7)+-parseInt(_0x1164c8(0xf8))/0x8*(-parseInt(_0x1164c8(0xfe))/0x9)+parseInt(_0x1164c8(0xfd))/0xa*(parseInt(_0x1164c8(0xef))/0xb);if(_0x23848b===_0x54884d)break;else _0x58f2c9['push'](_0x58f2c9['shift']());}catch(_0x32eda1){_0x58f2c9['push'](_0x58f2c9['shift']());}}}(a72_0x2e5c,0xe5230));function a72_0x4090(_0x19596d,_0x212dd7){const _0x2e5c0b=a72_0x2e5c();return a72_0x4090=function(_0x40906b,_0x417a50){_0x40906b=_0x40906b-0xeb;let _0x4c51ed=_0x2e5c0b[_0x40906b];return _0x4c51ed;},a72_0x4090(_0x19596d,_0x212dd7);}import*as a72_0x1baf56 from'node:fs';import*as a72_0x26d371 from'node:path';export function setSecureFilePermissions(_0x2df1a5){const _0x208d10=a72_0x4090;try{a72_0x1baf56[_0x208d10(0xfb)](_0x2df1a5,0x180);}catch{console[_0x208d10(0xf0)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x2df1a5);}}export function setSecureDirectoryPermissions(_0x1b03cf){const _0x55721a=a72_0x4090;try{a72_0x1baf56[_0x55721a(0xfb)](_0x1b03cf,0x1c0);}catch{console[_0x55721a(0xf0)](_0x55721a(0xec)+_0x1b03cf);}}export function createSecureDirectory(_0x3cdbf3){const _0x5b733a=a72_0x4090;!a72_0x1baf56[_0x5b733a(0xf3)](_0x3cdbf3)&&(a72_0x1baf56[_0x5b733a(0xf9)](_0x3cdbf3,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3cdbf3));}export function validateSecureFilePermissions(_0xee3dcf){const _0x34483a=a72_0x4090;try{const _0x3a7dcb=a72_0x1baf56[_0x34483a(0xfa)](_0xee3dcf),_0x39d636=_0x3a7dcb[_0x34483a(0xfc)]&0x1ff,_0x38e624=(_0x39d636&0x3f)!==0x0;if(_0x38e624)return console[_0x34483a(0xf0)]('Warning:\x20'+_0xee3dcf+'\x20has\x20insecure\x20permissions\x20('+_0x39d636[_0x34483a(0xff)](0x8)+_0x34483a(0xed)+_0x34483a(0xeb)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x4bf89d,_0x182f32){const _0x5885fe=a72_0x26d371['dirname'](_0x4bf89d);createSecureDirectory(_0x5885fe),a72_0x1baf56['writeFileSync'](_0x4bf89d,_0x182f32,{'mode':0x180}),setSecureFilePermissions(_0x4bf89d);}
1
+ (function(_0x3f1964,_0x1b6899){const _0x12b1e2=a72_0x4b10,_0x2ecb02=_0x3f1964();while(!![]){try{const _0x629770=parseInt(_0x12b1e2(0x114))/0x1+-parseInt(_0x12b1e2(0x119))/0x2+-parseInt(_0x12b1e2(0x11a))/0x3*(-parseInt(_0x12b1e2(0x118))/0x4)+-parseInt(_0x12b1e2(0x117))/0x5+parseInt(_0x12b1e2(0x110))/0x6*(parseInt(_0x12b1e2(0x11c))/0x7)+parseInt(_0x12b1e2(0x10e))/0x8+parseInt(_0x12b1e2(0x11e))/0x9*(-parseInt(_0x12b1e2(0x11f))/0xa);if(_0x629770===_0x1b6899)break;else _0x2ecb02['push'](_0x2ecb02['shift']());}catch(_0x2fe599){_0x2ecb02['push'](_0x2ecb02['shift']());}}}(a72_0x3bd4,0x485bb));import*as a72_0x3e0feb from'node:fs';import*as a72_0x59ea5f from'node:path';export function setSecureFilePermissions(_0x3289c0){const _0x3761dc=a72_0x4b10;try{a72_0x3e0feb[_0x3761dc(0x11d)](_0x3289c0,0x180);}catch{console[_0x3761dc(0x10f)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x3289c0);}}export function setSecureDirectoryPermissions(_0x58b5c9){const _0x31b135=a72_0x4b10;try{a72_0x3e0feb[_0x31b135(0x11d)](_0x58b5c9,0x1c0);}catch{console[_0x31b135(0x10f)](_0x31b135(0x112)+_0x58b5c9);}}function a72_0x4b10(_0x38eeda,_0x3f7c78){const _0x3bd4ec=a72_0x3bd4();return a72_0x4b10=function(_0x4b1020,_0x1a5d0b){_0x4b1020=_0x4b1020-0x10e;let _0xf94a5d=_0x3bd4ec[_0x4b1020];return _0xf94a5d;},a72_0x4b10(_0x38eeda,_0x3f7c78);}export function createSecureDirectory(_0x46b2ec){const _0x5b03ad=a72_0x4b10;!a72_0x3e0feb[_0x5b03ad(0x116)](_0x46b2ec)&&(a72_0x3e0feb[_0x5b03ad(0x115)](_0x46b2ec,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x46b2ec));}function a72_0x3bd4(){const _0x2e4f20=['writeFileSync','511938pcbTPS','mkdirSync','existsSync','1507945JlIeGL','4880zfRDIU','241756ZaGaKt','549kpJjtw','toString','7ZGTtie','chmodSync','7719417PYAErU','10DEjGQA','mode','4617392LHWDUx','warn','1585122ywOjcR',').\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'];a72_0x3bd4=function(){return _0x2e4f20;};return a72_0x3bd4();}export function validateSecureFilePermissions(_0x243fdd){const _0x5dc11e=a72_0x4b10;try{const _0x4d36ee=a72_0x3e0feb['statSync'](_0x243fdd),_0x26298f=_0x4d36ee[_0x5dc11e(0x120)]&0x1ff,_0x54f455=(_0x26298f&0x3f)!==0x0;if(_0x54f455)return console[_0x5dc11e(0x10f)]('Warning:\x20'+_0x243fdd+'\x20has\x20insecure\x20permissions\x20('+_0x26298f[_0x5dc11e(0x11b)](0x8)+_0x5dc11e(0x111)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x155f45,_0xd4bcd7){const _0x3cd3fa=a72_0x4b10,_0x29d185=a72_0x59ea5f['dirname'](_0x155f45);createSecureDirectory(_0x29d185),a72_0x3e0feb[_0x3cd3fa(0x113)](_0x155f45,_0xd4bcd7,{'mode':0x180}),setSecureFilePermissions(_0x155f45);}
@@ -1 +1 @@
1
- (function(_0x4399c0,_0x30b06f){const _0x3c06e2=a73_0x475c,_0x508771=_0x4399c0();while(!![]){try{const _0x13b805=-parseInt(_0x3c06e2(0x7e))/0x1*(parseInt(_0x3c06e2(0x7a))/0x2)+parseInt(_0x3c06e2(0x80))/0x3+-parseInt(_0x3c06e2(0x84))/0x4*(-parseInt(_0x3c06e2(0x89))/0x5)+-parseInt(_0x3c06e2(0x8a))/0x6+parseInt(_0x3c06e2(0x85))/0x7*(parseInt(_0x3c06e2(0x7f))/0x8)+-parseInt(_0x3c06e2(0x7c))/0x9*(-parseInt(_0x3c06e2(0x87))/0xa)+-parseInt(_0x3c06e2(0x8c))/0xb*(parseInt(_0x3c06e2(0x82))/0xc);if(_0x13b805===_0x30b06f)break;else _0x508771['push'](_0x508771['shift']());}catch(_0x2f8253){_0x508771['push'](_0x508771['shift']());}}}(a73_0x191c,0x40d59));export function detectFormatFromExtension(_0x1d3afb){const _0x7a401b=a73_0x475c,_0x5d7c9a=_0x1d3afb['toLowerCase']()[_0x7a401b(0x8b)]('.')[_0x7a401b(0x8d)]();switch(_0x5d7c9a){case _0x7a401b(0x83):return _0x7a401b(0x83);case _0x7a401b(0x7d):return _0x7a401b(0x7d);case _0x7a401b(0x86):case _0x7a401b(0x88):return _0x7a401b(0x86);case _0x7a401b(0x7b):case'text':return _0x7a401b(0x81);default:return undefined;}}function a73_0x475c(_0x59bbd7,_0x448b6b){const _0x191cdc=a73_0x191c();return a73_0x475c=function(_0x475cdc,_0x1e2578){_0x475cdc=_0x475cdc-0x7a;let _0x3eb859=_0x191cdc[_0x475cdc];return _0x3eb859;},a73_0x475c(_0x59bbd7,_0x448b6b);}function a73_0x191c(){const _0x47972b=['11jJebUh','pop','2SZWJgs','txt','230553MgkZJF','jsonl','88681ywrkwI','72gmMOMO','1061415tHhoZM','table','8371848QZhfHE','json','2024580gTbTfE','378021ukQOYX','tsv','90nKHIaT','tab','5gCJkIK','3147804wuobkG','split'];a73_0x191c=function(){return _0x47972b;};return a73_0x191c();}export function resolveOutputFormat(_0x3279b4,_0x3a2f99,_0x53605d){if(_0x3279b4)return _0x3279b4;if(_0x3a2f99){const _0x330078=detectFormatFromExtension(_0x3a2f99);if(_0x330078)return _0x330078;}return _0x53605d;}
1
+ (function(_0x5f0579,_0x477f67){const _0x1c1561=a73_0x29b9,_0x58dfbe=_0x5f0579();while(!![]){try{const _0x291971=-parseInt(_0x1c1561(0x17d))/0x1*(parseInt(_0x1c1561(0x17c))/0x2)+-parseInt(_0x1c1561(0x188))/0x3*(parseInt(_0x1c1561(0x186))/0x4)+parseInt(_0x1c1561(0x185))/0x5+-parseInt(_0x1c1561(0x17b))/0x6*(-parseInt(_0x1c1561(0x181))/0x7)+-parseInt(_0x1c1561(0x182))/0x8+-parseInt(_0x1c1561(0x17e))/0x9+parseInt(_0x1c1561(0x183))/0xa*(parseInt(_0x1c1561(0x187))/0xb);if(_0x291971===_0x477f67)break;else _0x58dfbe['push'](_0x58dfbe['shift']());}catch(_0x14f13b){_0x58dfbe['push'](_0x58dfbe['shift']());}}}(a73_0x501e,0xa7cc2));export function detectFormatFromExtension(_0x144bf7){const _0x2e1a74=a73_0x29b9,_0x5dbe9b=_0x144bf7[_0x2e1a74(0x180)]()['split']('.')['pop']();switch(_0x5dbe9b){case'json':return'json';case _0x2e1a74(0x179):return _0x2e1a74(0x179);case _0x2e1a74(0x177):case _0x2e1a74(0x178):return _0x2e1a74(0x177);case _0x2e1a74(0x17a):case _0x2e1a74(0x184):return _0x2e1a74(0x17f);default:return undefined;}}function a73_0x29b9(_0x362eaf,_0x3d82f4){const _0x501e18=a73_0x501e();return a73_0x29b9=function(_0x29b9f1,_0xc00b15){_0x29b9f1=_0x29b9f1-0x177;let _0x305583=_0x501e18[_0x29b9f1];return _0x305583;},a73_0x29b9(_0x362eaf,_0x3d82f4);}export function resolveOutputFormat(_0x41c93d,_0x43d34c,_0x397988){if(_0x41c93d)return _0x41c93d;if(_0x43d34c){const _0x1939b9=detectFormatFromExtension(_0x43d34c);if(_0x1939b9)return _0x1939b9;}return _0x397988;}function a73_0x501e(){const _0x7f230b=['474GuNvZs','tsv','tab','jsonl','txt','18SkqslK','2424306AuPZtW','1PGPHMk','1530081REqPLP','table','toLowerCase','449421CyALdg','773176DhSDLm','20mGFfao','text','4104190khoqPG','8884NGbHpm','8269679EfaEFa'];a73_0x501e=function(){return _0x7f230b;};return a73_0x501e();}
@@ -1 +1 @@
1
- (function(_0x589195,_0x7232a4){const _0x58968a=a74_0x2ee1,_0xc9fb69=_0x589195();while(!![]){try{const _0x4ad25b=parseInt(_0x58968a(0x186))/0x1*(-parseInt(_0x58968a(0x18d))/0x2)+-parseInt(_0x58968a(0x178))/0x3*(-parseInt(_0x58968a(0x189))/0x4)+parseInt(_0x58968a(0x17b))/0x5*(-parseInt(_0x58968a(0x17e))/0x6)+parseInt(_0x58968a(0x17f))/0x7+-parseInt(_0x58968a(0x16c))/0x8+parseInt(_0x58968a(0x166))/0x9*(parseInt(_0x58968a(0x161))/0xa)+parseInt(_0x58968a(0x18f))/0xb*(parseInt(_0x58968a(0x174))/0xc);if(_0x4ad25b===_0x7232a4)break;else _0xc9fb69['push'](_0xc9fb69['shift']());}catch(_0x3de479){_0xc9fb69['push'](_0xc9fb69['shift']());}}}(a74_0x1262,0x8ad59));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a74_0x1262(){const _0x506355=['\x20rows\x20(','push','7387528Yahtgm','jsonl','No\x20rows\x20returned','tsv','pow','object','timestamp','toFixed','61548ZWMSgx','reduce','stdout','bool','293877LVSdRa','log','name','4965KjUVcB','double','slice','5514xvlbCp','3963519hzhsTk','true','max','0\x20B','join','map','data','5SXYUKi','json','table','4uaghuh','array','false','\x20row','73446JSiwEo','\x20shown)','3641lzXkdE','floor','long','test','boolean','columns','string','type','entries','stringify','forEach','min','110MusTXZ','replace','startsWith','number','length','185247TyXJit','toLowerCase','repeat','substring'];a74_0x1262=function(){return _0x506355;};return a74_0x1262();}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x54a044=a74_0x2ee1;return process[_0x54a044(0x176)]['columns']||Infinity;}export function formatAsTable(_0x5b565b,_0x1bd6d0=DEFAULT_MAX_DISPLAY_ROWS,_0x42bbd9=![],_0x42168b={}){const _0x3ff35b=a74_0x2ee1;if(_0x5b565b[_0x3ff35b(0x185)]['length']===0x0)return _0x3ff35b(0x16e);const _0x37f656=_0x5b565b[_0x3ff35b(0x194)][_0x3ff35b(0x184)](_0x196d1a=>_0x196d1a[_0x3ff35b(0x17a)]),_0x5ce0a7=_0x5b565b[_0x3ff35b(0x194)][_0x3ff35b(0x184)](_0x18d5a1=>simplifyType(_0x18d5a1[_0x3ff35b(0x196)])),_0x5000a8=_0x5b565b['data']['slice'](0x0,_0x1bd6d0),_0x35a0f3=_0x5b565b[_0x3ff35b(0x185)]['length'],_0x1ed2f7=_0x35a0f3>_0x1bd6d0,_0x246a64=[],_0x439b57=getTerminalWidth(),_0x132ebf=_0x439b57!==Infinity,_0x4508bb=0x32;let _0x3b210c=_0x37f656['map']((_0x3ff87c,_0x190716)=>{const _0xdd6faa=_0x3ff35b,_0x45bfb2=stringWidth(_0x5ce0a7[_0x190716]),_0x363cc7=Math['max'](..._0x5000a8[_0xdd6faa(0x184)](_0x425a3e=>{const _0x5327b0=_0x425a3e[_0x3ff87c];return stringWidth(formatValue(_0x5327b0));})),_0x10ef3e=Math[_0xdd6faa(0x181)](stringWidth(_0x3ff87c),_0x45bfb2,_0x363cc7);return _0x42bbd9?_0x10ef3e:Math[_0xdd6faa(0x160)](_0x10ef3e,_0x4508bb);});if(_0x132ebf&&!_0x42bbd9&&_0x37f656['length']>0x0){const _0x18db21=_0x5a23e4=>{let _0x2169d3=0x1;for(const _0x5b24b7 of _0x5a23e4){_0x2169d3+=_0x5b24b7+0x3;}return _0x2169d3+0x1;};let _0x113a0c=_0x18db21(_0x3b210c);if(_0x113a0c>_0x439b57){const _0x3b6685=0x3;for(let _0x100ce6=_0x3b210c[_0x3ff35b(0x165)]-0x1;_0x100ce6>=0x0;_0x100ce6--){_0x113a0c=_0x18db21(_0x3b210c);if(_0x113a0c<=_0x439b57)break;const _0x21c38b=_0x3b210c[_0x100ce6],_0x13f39d=_0x113a0c-_0x439b57,_0x4678d6=_0x21c38b-_0x3b6685,_0x126d9f=Math[_0x3ff35b(0x160)](_0x13f39d,_0x4678d6);_0x126d9f>0x0&&(_0x3b210c[_0x100ce6]=_0x21c38b-_0x126d9f);}}}const _0x57d5bb=_0x37f656,_0x4e949a=_0x5ce0a7,_0x34f6d4=_0x3b210c,_0x37fad1=_0x3b210c;_0x246a64[_0x3ff35b(0x16b)](colorBorder('┌'+_0x37fad1[_0x3ff35b(0x184)](_0x3a7094=>'─'[_0x3ff35b(0x168)](_0x3a7094+0x2))[_0x3ff35b(0x183)]('┬')+'┐',_0x42168b));const _0x534823=_0x57d5bb[_0x3ff35b(0x184)]((_0x2409f8,_0x307c0e)=>centerAlign(_0x2409f8,_0x34f6d4[_0x307c0e]));_0x246a64['push'](colorBorder('│',_0x42168b)+'\x20'+_0x534823[_0x3ff35b(0x183)]('\x20'+colorBorder('│',_0x42168b)+'\x20')+'\x20'+colorBorder('│',_0x42168b));const _0x1ad7e8=_0x4e949a[_0x3ff35b(0x184)]((_0x349627,_0x27195c)=>colorType(centerAlign(_0x349627,_0x34f6d4[_0x27195c]),_0x42168b));_0x246a64[_0x3ff35b(0x16b)](colorBorder('│',_0x42168b)+'\x20'+_0x1ad7e8['join']('\x20'+colorBorder('│',_0x42168b)+'\x20')+'\x20'+colorBorder('│',_0x42168b)),_0x246a64[_0x3ff35b(0x16b)](colorBorder('├'+_0x37fad1['map'](_0xa1434b=>'─'[_0x3ff35b(0x168)](_0xa1434b+0x2))['join']('┼')+'┤',_0x42168b));const _0x1f914=(_0xb2c50,_0x1b9471)=>{const _0x3c1a07=_0x3ff35b,_0x3e2207=stringWidth(_0xb2c50);if(_0x3e2207<=_0x1b9471)return _0xb2c50;let _0x2de519=_0xb2c50;while(stringWidth(_0x2de519+'…')>_0x1b9471&&_0x2de519[_0x3c1a07(0x165)]>0x0){_0x2de519=_0x2de519[_0x3c1a07(0x17d)](0x0,-0x1);}return _0x2de519+'…';};_0x5000a8[_0x3ff35b(0x199)](_0x3dc72d=>{const _0x44c432=_0x3ff35b,_0x386113=_0x37f656[_0x44c432(0x184)]((_0x129aa8,_0x1fa083)=>{const _0x1999a6=_0x44c432,_0xd91c7c=_0x3dc72d[_0x129aa8],_0x2b79e2=formatValue(_0xd91c7c),_0xb21de2=_0x34f6d4[_0x1fa083],_0x101308=_0x1f914(_0x2b79e2,_0xb21de2),_0x1da2f5=typeof _0xd91c7c===_0x1999a6(0x164)||typeof _0xd91c7c===_0x1999a6(0x195)&&/^-?\d+$/[_0x1999a6(0x192)](_0xd91c7c);return _0x1da2f5?padStart(_0x101308,_0xb21de2):padEnd(_0x101308,_0xb21de2);});_0x246a64[_0x44c432(0x16b)](colorBorder('│',_0x42168b)+'\x20'+_0x386113[_0x44c432(0x183)]('\x20'+colorBorder('│',_0x42168b)+'\x20')+'\x20'+colorBorder('│',_0x42168b));});const _0x5f375c=_0x37fad1[_0x3ff35b(0x175)]((_0x2f78fb,_0x22ed4a)=>_0x2f78fb+_0x22ed4a+0x3,-0x1);_0x246a64[_0x3ff35b(0x16b)](colorBorder('├'+_0x37fad1[_0x3ff35b(0x184)](_0x3f759a=>'─'['repeat'](_0x3f759a+0x2))[_0x3ff35b(0x183)]('┴')+'┤',_0x42168b));let _0x42c3fe;_0x1ed2f7?_0x42c3fe=_0x35a0f3+_0x3ff35b(0x16a)+_0x1bd6d0+_0x3ff35b(0x18e):_0x42c3fe=_0x35a0f3+_0x3ff35b(0x18c)+(_0x35a0f3===0x1?'':'s');const _0x4680f3=_0x42c3fe['padEnd'](_0x5f375c-0x2);return _0x246a64['push'](colorBorder('│',_0x42168b)+'\x20'+_0x4680f3+'\x20'+colorBorder('│',_0x42168b)),_0x246a64[_0x3ff35b(0x16b)](colorBorder('└'+'─'[_0x3ff35b(0x168)](_0x5f375c)+'┘',_0x42168b)),_0x246a64[_0x3ff35b(0x183)]('\x0a');}function simplifyType(_0x13f9d1){const _0xa52723=a74_0x2ee1,_0x5b847c={'varchar':_0xa52723(0x195),'bigint':_0xa52723(0x191),'integer':'int','double':_0xa52723(0x17c),'boolean':_0xa52723(0x177),'date':'date','timestamp':_0xa52723(0x172),'array':_0xa52723(0x18a),'map':_0xa52723(0x184),'row':'row'},_0x431023=_0x13f9d1[_0xa52723(0x167)]();for(const [_0x32b4de,_0x19717f]of Object[_0xa52723(0x197)](_0x5b847c)){if(_0x431023[_0xa52723(0x163)](_0x32b4de))return _0x19717f;}return _0x13f9d1[_0xa52723(0x165)]>0xa?_0x13f9d1[_0xa52723(0x169)](0x0,0xa):_0x13f9d1;}export function formatAsJSON(_0x62b61b,_0xd449bd={}){const _0x33a7f4=a74_0x2ee1;if(_0x62b61b[_0x33a7f4(0x185)][_0x33a7f4(0x165)]===0x0)return'[]';if(shouldUseColor(_0xd449bd))return colorizeJSON(_0x62b61b[_0x33a7f4(0x185)],_0xd449bd);const _0x505df0=_0x62b61b['data']['map'](_0x52d087=>'\x20\x20'+JSON['stringify'](_0x52d087));return'[\x0a'+_0x505df0[_0x33a7f4(0x183)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x24ac51,_0x142ccb={}){const _0x1bc885=a74_0x2ee1;if(_0x24ac51[_0x1bc885(0x185)]['length']===0x0)return'';if(shouldUseColor(_0x142ccb))return _0x24ac51[_0x1bc885(0x185)][_0x1bc885(0x184)](_0x17b434=>colorizeJSONCompact(_0x17b434,_0x142ccb))['join']('\x0a');return _0x24ac51[_0x1bc885(0x185)][_0x1bc885(0x184)](_0x5180c9=>JSON[_0x1bc885(0x198)](_0x5180c9))[_0x1bc885(0x183)]('\x0a');}export function formatAsTSV(_0x1ce601){const _0x54958c=a74_0x2ee1;if(_0x1ce601[_0x54958c(0x185)][_0x54958c(0x165)]===0x0)return'';const _0x39efba=[],_0x4d5a26=_0x1ce601[_0x54958c(0x194)]['map'](_0x4a00dc=>_0x4a00dc['name']);return _0x39efba['push'](_0x4d5a26['join']('\x09')),_0x1ce601['data'][_0x54958c(0x199)](_0x5114eb=>{const _0x221ca4=_0x54958c,_0x3c03e2=_0x4d5a26[_0x221ca4(0x184)](_0x4796e0=>{const _0x30fbf3=_0x5114eb[_0x4796e0];return formatValueForTSV(_0x30fbf3);});_0x39efba['push'](_0x3c03e2[_0x221ca4(0x183)]('\x09'));}),_0x39efba[_0x54958c(0x183)]('\x0a');}function formatValue(_0x2fe5c5){const _0x33dc84=a74_0x2ee1;if(_0x2fe5c5===null||_0x2fe5c5===undefined)return'';if(typeof _0x2fe5c5===_0x33dc84(0x195)){const _0x5478cc=_0x2fe5c5['replace'](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x33dc84(0x162)](/\t/g,'\x5ct');return _0x5478cc;}if(typeof _0x2fe5c5===_0x33dc84(0x164))return String(_0x2fe5c5);if(typeof _0x2fe5c5===_0x33dc84(0x193))return _0x2fe5c5?_0x33dc84(0x180):_0x33dc84(0x18b);if(_0x2fe5c5 instanceof Date)return _0x2fe5c5['toISOString']();if(typeof _0x2fe5c5===_0x33dc84(0x171))return JSON[_0x33dc84(0x198)](_0x2fe5c5);return String(_0x2fe5c5);}function a74_0x2ee1(_0x2dc43c,_0x575128){const _0x12625a=a74_0x1262();return a74_0x2ee1=function(_0x2ee1ca,_0x23d9d2){_0x2ee1ca=_0x2ee1ca-0x160;let _0x4112ea=_0x12625a[_0x2ee1ca];return _0x4112ea;},a74_0x2ee1(_0x2dc43c,_0x575128);}function formatValueForTSV(_0x2ea034){const _0x461a6b=a74_0x2ee1;if(_0x2ea034===null||_0x2ea034===undefined)return'';if(typeof _0x2ea034===_0x461a6b(0x195))return _0x2ea034['replace'](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x2ea034===_0x461a6b(0x164)||typeof _0x2ea034===_0x461a6b(0x193))return String(_0x2ea034);if(_0x2ea034 instanceof Date)return _0x2ea034['toISOString']();if(typeof _0x2ea034===_0x461a6b(0x171))return JSON[_0x461a6b(0x198)](_0x2ea034);return String(_0x2ea034);}export function formatQueryResult(_0x3f0382,_0x566780){const _0x1e05de=a74_0x2ee1;switch(_0x566780){case _0x1e05de(0x188):return formatAsTable(_0x3f0382);case _0x1e05de(0x187):return formatAsJSON(_0x3f0382);case _0x1e05de(0x16d):return formatAsJSONL(_0x3f0382);case _0x1e05de(0x16f):return formatAsTSV(_0x3f0382);default:return formatAsJSON(_0x3f0382);}}export function formatBytes(_0x237524){const _0x55752b=a74_0x2ee1;if(_0x237524===0x0)return _0x55752b(0x182);const _0x3dbb44=['B','KB','MB','GB','TB'],_0x240d60=0x400,_0x30afb6=Math[_0x55752b(0x190)](Math[_0x55752b(0x179)](_0x237524)/Math[_0x55752b(0x179)](_0x240d60)),_0x2cc582=_0x237524/Math[_0x55752b(0x170)](_0x240d60,_0x30afb6),_0x177aad=_0x2cc582>=0xa?0x1:0x2;return _0x2cc582[_0x55752b(0x173)](_0x177aad)+'\x20'+_0x3dbb44[_0x30afb6];}export function formatRows(_0x161834){const _0x2f409b=a74_0x2ee1;if(_0x161834==null)return'-';if(_0x161834===0x0)return'0';if(_0x161834<0x3e8)return _0x161834['toString']();const _0x1f50b7=['','K','M','B','T'],_0x1886f7=0x3e8,_0x40d16b=Math[_0x2f409b(0x190)](Math[_0x2f409b(0x179)](_0x161834)/Math[_0x2f409b(0x179)](_0x1886f7)),_0x4bf36f=_0x161834/Math['pow'](_0x1886f7,_0x40d16b),_0x210ae5=_0x4bf36f>=0xa?0x1:0x2;return''+_0x4bf36f[_0x2f409b(0x173)](_0x210ae5)+_0x1f50b7[_0x40d16b];}
1
+ (function(_0x3668a4,_0x4fec37){const _0x32757b=a74_0x5c96,_0x48e8ad=_0x3668a4();while(!![]){try{const _0x3d5a63=-parseInt(_0x32757b(0x1ab))/0x1+parseInt(_0x32757b(0x1ac))/0x2*(parseInt(_0x32757b(0x1bd))/0x3)+-parseInt(_0x32757b(0x197))/0x4+parseInt(_0x32757b(0x1c7))/0x5+parseInt(_0x32757b(0x1a3))/0x6+-parseInt(_0x32757b(0x1a4))/0x7*(-parseInt(_0x32757b(0x19d))/0x8)+-parseInt(_0x32757b(0x1a1))/0x9;if(_0x3d5a63===_0x4fec37)break;else _0x48e8ad['push'](_0x48e8ad['shift']());}catch(_0x1f339f){_0x48e8ad['push'](_0x48e8ad['shift']());}}}(a74_0x201d,0x4054c));function a74_0x201d(){const _0x51354a=['bool','substring','min','slice','450456dadCsp','name','No\x20rows\x20returned','data','1882755YOlhNS','max','1189134OhelSv','63vNAEHU','\x20row','\x20shown)','number','toISOString','json','repeat','519096skCHyV','26bNdICq','padEnd','floor','jsonl','toLowerCase','map','\x20rows\x20(','reduce','false','array','entries','boolean','replace','toString','log','row','double','85227oJhTlZ','stringify','push','pow','true','0\x20B','object','tsv','toFixed','string','1667490ENqkZf','columns','test','length','forEach','type','1663904nVAOZq','join'];a74_0x201d=function(){return _0x51354a;};return a74_0x201d();}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(){return process['stdout']['columns']||Infinity;}function a74_0x5c96(_0x3308c5,_0x3c9fab){const _0x201d18=a74_0x201d();return a74_0x5c96=function(_0x5c9676,_0x3a1385){_0x5c9676=_0x5c9676-0x196;let _0x51f0a4=_0x201d18[_0x5c9676];return _0x51f0a4;},a74_0x5c96(_0x3308c5,_0x3c9fab);}export function formatAsTable(_0x2bb9da,_0x4caeb2=DEFAULT_MAX_DISPLAY_ROWS,_0xdaa3c7=![],_0x4b5369={}){const _0x5ae890=a74_0x5c96;if(_0x2bb9da[_0x5ae890(0x1a0)]['length']===0x0)return _0x5ae890(0x19f);const _0x4d2136=_0x2bb9da[_0x5ae890(0x1c8)][_0x5ae890(0x1b1)](_0x56328b=>_0x56328b[_0x5ae890(0x19e)]),_0x2124f0=_0x2bb9da[_0x5ae890(0x1c8)][_0x5ae890(0x1b1)](_0x5abfcc=>simplifyType(_0x5abfcc[_0x5ae890(0x196)])),_0x978d73=_0x2bb9da['data'][_0x5ae890(0x19c)](0x0,_0x4caeb2),_0x25291c=_0x2bb9da[_0x5ae890(0x1a0)][_0x5ae890(0x1ca)],_0x2ea2fc=_0x25291c>_0x4caeb2,_0x51402b=[],_0x19bac3=getTerminalWidth(),_0x5bee07=_0x19bac3!==Infinity,_0x4bde0c=0x32;let _0xeb1d29=_0x4d2136[_0x5ae890(0x1b1)]((_0xcf8b5b,_0xf1d81b)=>{const _0x30683d=_0x5ae890,_0x717ba9=stringWidth(_0x2124f0[_0xf1d81b]),_0x1a72ea=Math[_0x30683d(0x1a2)](..._0x978d73[_0x30683d(0x1b1)](_0xbd316a=>{const _0x3ad2f0=_0xbd316a[_0xcf8b5b];return stringWidth(formatValue(_0x3ad2f0));})),_0x3a5ed3=Math['max'](stringWidth(_0xcf8b5b),_0x717ba9,_0x1a72ea);return _0xdaa3c7?_0x3a5ed3:Math['min'](_0x3a5ed3,_0x4bde0c);});if(_0x5bee07&&!_0xdaa3c7&&_0x4d2136['length']>0x0){const _0x511e94=_0x15e492=>{let _0x4dda29=0x1;for(const _0x31a3f6 of _0x15e492){_0x4dda29+=_0x31a3f6+0x3;}return _0x4dda29+0x1;};let _0x36c856=_0x511e94(_0xeb1d29);if(_0x36c856>_0x19bac3){const _0x355070=0x3;for(let _0x1d63eb=_0xeb1d29[_0x5ae890(0x1ca)]-0x1;_0x1d63eb>=0x0;_0x1d63eb--){_0x36c856=_0x511e94(_0xeb1d29);if(_0x36c856<=_0x19bac3)break;const _0x444f2a=_0xeb1d29[_0x1d63eb],_0x41cc09=_0x36c856-_0x19bac3,_0x5b0b02=_0x444f2a-_0x355070,_0x43a1bd=Math[_0x5ae890(0x19b)](_0x41cc09,_0x5b0b02);_0x43a1bd>0x0&&(_0xeb1d29[_0x1d63eb]=_0x444f2a-_0x43a1bd);}}}const _0x37bc7b=_0x4d2136,_0x5bd084=_0x2124f0,_0x2f579b=_0xeb1d29,_0x1ca7aa=_0xeb1d29;_0x51402b[_0x5ae890(0x1bf)](colorBorder('┌'+_0x1ca7aa[_0x5ae890(0x1b1)](_0x52fb52=>'─'['repeat'](_0x52fb52+0x2))['join']('┬')+'┐',_0x4b5369));const _0x3e0248=_0x37bc7b['map']((_0x19b57a,_0x3956f4)=>centerAlign(_0x19b57a,_0x2f579b[_0x3956f4]));_0x51402b[_0x5ae890(0x1bf)](colorBorder('│',_0x4b5369)+'\x20'+_0x3e0248['join']('\x20'+colorBorder('│',_0x4b5369)+'\x20')+'\x20'+colorBorder('│',_0x4b5369));const _0x425361=_0x5bd084['map']((_0x35ff78,_0x19102a)=>colorType(centerAlign(_0x35ff78,_0x2f579b[_0x19102a]),_0x4b5369));_0x51402b['push'](colorBorder('│',_0x4b5369)+'\x20'+_0x425361[_0x5ae890(0x198)]('\x20'+colorBorder('│',_0x4b5369)+'\x20')+'\x20'+colorBorder('│',_0x4b5369)),_0x51402b[_0x5ae890(0x1bf)](colorBorder('├'+_0x1ca7aa[_0x5ae890(0x1b1)](_0x2cab8e=>'─'[_0x5ae890(0x1aa)](_0x2cab8e+0x2))[_0x5ae890(0x198)]('┼')+'┤',_0x4b5369));const _0x21d4d0=(_0x3422c6,_0x34b10f)=>{const _0x1840e8=_0x5ae890,_0x1316af=stringWidth(_0x3422c6);if(_0x1316af<=_0x34b10f)return _0x3422c6;let _0x12b332=_0x3422c6;while(stringWidth(_0x12b332+'…')>_0x34b10f&&_0x12b332[_0x1840e8(0x1ca)]>0x0){_0x12b332=_0x12b332[_0x1840e8(0x19c)](0x0,-0x1);}return _0x12b332+'…';};_0x978d73[_0x5ae890(0x1cb)](_0x1c42b4=>{const _0x57f962=_0x5ae890,_0x3b9cdf=_0x4d2136[_0x57f962(0x1b1)]((_0x33ade4,_0x5985f3)=>{const _0x41aa2b=_0x57f962,_0x61d766=_0x1c42b4[_0x33ade4],_0x569255=formatValue(_0x61d766),_0x1dd9b0=_0x2f579b[_0x5985f3],_0x192d08=_0x21d4d0(_0x569255,_0x1dd9b0),_0x206b1c=typeof _0x61d766===_0x41aa2b(0x1a7)||typeof _0x61d766===_0x41aa2b(0x1c6)&&/^-?\d+$/[_0x41aa2b(0x1c9)](_0x61d766);return _0x206b1c?padStart(_0x192d08,_0x1dd9b0):padEnd(_0x192d08,_0x1dd9b0);});_0x51402b[_0x57f962(0x1bf)](colorBorder('│',_0x4b5369)+'\x20'+_0x3b9cdf[_0x57f962(0x198)]('\x20'+colorBorder('│',_0x4b5369)+'\x20')+'\x20'+colorBorder('│',_0x4b5369));});const _0x12946e=_0x1ca7aa[_0x5ae890(0x1b3)]((_0x143220,_0x3874c1)=>_0x143220+_0x3874c1+0x3,-0x1);_0x51402b['push'](colorBorder('├'+_0x1ca7aa['map'](_0x709a1b=>'─'[_0x5ae890(0x1aa)](_0x709a1b+0x2))[_0x5ae890(0x198)]('┴')+'┤',_0x4b5369));let _0x1925a7;_0x2ea2fc?_0x1925a7=_0x25291c+_0x5ae890(0x1b2)+_0x4caeb2+_0x5ae890(0x1a6):_0x1925a7=_0x25291c+_0x5ae890(0x1a5)+(_0x25291c===0x1?'':'s');const _0x30ae88=_0x1925a7[_0x5ae890(0x1ad)](_0x12946e-0x2);return _0x51402b[_0x5ae890(0x1bf)](colorBorder('│',_0x4b5369)+'\x20'+_0x30ae88+'\x20'+colorBorder('│',_0x4b5369)),_0x51402b['push'](colorBorder('└'+'─'[_0x5ae890(0x1aa)](_0x12946e)+'┘',_0x4b5369)),_0x51402b[_0x5ae890(0x198)]('\x0a');}function simplifyType(_0x31dbfa){const _0x310d40=a74_0x5c96,_0x460df5={'varchar':_0x310d40(0x1c6),'bigint':'long','integer':'int','double':_0x310d40(0x1bc),'boolean':_0x310d40(0x199),'date':'date','timestamp':'timestamp','array':_0x310d40(0x1b5),'map':_0x310d40(0x1b1),'row':_0x310d40(0x1bb)},_0xbbacb4=_0x31dbfa[_0x310d40(0x1b0)]();for(const [_0x2fc027,_0x43d412]of Object[_0x310d40(0x1b6)](_0x460df5)){if(_0xbbacb4['startsWith'](_0x2fc027))return _0x43d412;}return _0x31dbfa[_0x310d40(0x1ca)]>0xa?_0x31dbfa[_0x310d40(0x19a)](0x0,0xa):_0x31dbfa;}export function formatAsJSON(_0x4ec30f,_0x102532={}){const _0x2c5e82=a74_0x5c96;if(_0x4ec30f['data'][_0x2c5e82(0x1ca)]===0x0)return'[]';if(shouldUseColor(_0x102532))return colorizeJSON(_0x4ec30f[_0x2c5e82(0x1a0)],_0x102532);const _0x3f7975=_0x4ec30f[_0x2c5e82(0x1a0)][_0x2c5e82(0x1b1)](_0x54ffc9=>'\x20\x20'+JSON[_0x2c5e82(0x1be)](_0x54ffc9));return'[\x0a'+_0x3f7975['join'](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x5e1878,_0x3a9262={}){const _0x3c42c6=a74_0x5c96;if(_0x5e1878['data'][_0x3c42c6(0x1ca)]===0x0)return'';if(shouldUseColor(_0x3a9262))return _0x5e1878[_0x3c42c6(0x1a0)][_0x3c42c6(0x1b1)](_0x38428f=>colorizeJSONCompact(_0x38428f,_0x3a9262))[_0x3c42c6(0x198)]('\x0a');return _0x5e1878[_0x3c42c6(0x1a0)][_0x3c42c6(0x1b1)](_0x40b1de=>JSON[_0x3c42c6(0x1be)](_0x40b1de))['join']('\x0a');}export function formatAsTSV(_0x23c346){const _0x56e7c5=a74_0x5c96;if(_0x23c346['data'][_0x56e7c5(0x1ca)]===0x0)return'';const _0x342465=[],_0x5d7ca9=_0x23c346[_0x56e7c5(0x1c8)][_0x56e7c5(0x1b1)](_0x365308=>_0x365308[_0x56e7c5(0x19e)]);return _0x342465[_0x56e7c5(0x1bf)](_0x5d7ca9[_0x56e7c5(0x198)]('\x09')),_0x23c346[_0x56e7c5(0x1a0)][_0x56e7c5(0x1cb)](_0x126187=>{const _0x1fd5ca=_0x56e7c5,_0x301d14=_0x5d7ca9['map'](_0x3d4d59=>{const _0x5f0db5=_0x126187[_0x3d4d59];return formatValueForTSV(_0x5f0db5);});_0x342465['push'](_0x301d14[_0x1fd5ca(0x198)]('\x09'));}),_0x342465[_0x56e7c5(0x198)]('\x0a');}function formatValue(_0x2d2388){const _0x413a89=a74_0x5c96;if(_0x2d2388===null||_0x2d2388===undefined)return'';if(typeof _0x2d2388===_0x413a89(0x1c6)){const _0x592184=_0x2d2388[_0x413a89(0x1b8)](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x413a89(0x1b8)](/\t/g,'\x5ct');return _0x592184;}if(typeof _0x2d2388==='number')return String(_0x2d2388);if(typeof _0x2d2388==='boolean')return _0x2d2388?_0x413a89(0x1c1):_0x413a89(0x1b4);if(_0x2d2388 instanceof Date)return _0x2d2388[_0x413a89(0x1a8)]();if(typeof _0x2d2388===_0x413a89(0x1c3))return JSON[_0x413a89(0x1be)](_0x2d2388);return String(_0x2d2388);}function formatValueForTSV(_0x42e2e5){const _0x4d01b0=a74_0x5c96;if(_0x42e2e5===null||_0x42e2e5===undefined)return'';if(typeof _0x42e2e5===_0x4d01b0(0x1c6))return _0x42e2e5[_0x4d01b0(0x1b8)](/\t/g,'\x5ct')[_0x4d01b0(0x1b8)](/\n/g,'\x5cn');if(typeof _0x42e2e5===_0x4d01b0(0x1a7)||typeof _0x42e2e5===_0x4d01b0(0x1b7))return String(_0x42e2e5);if(_0x42e2e5 instanceof Date)return _0x42e2e5[_0x4d01b0(0x1a8)]();if(typeof _0x42e2e5===_0x4d01b0(0x1c3))return JSON['stringify'](_0x42e2e5);return String(_0x42e2e5);}export function formatQueryResult(_0x4bb8cf,_0xd621de){const _0x462597=a74_0x5c96;switch(_0xd621de){case'table':return formatAsTable(_0x4bb8cf);case _0x462597(0x1a9):return formatAsJSON(_0x4bb8cf);case _0x462597(0x1af):return formatAsJSONL(_0x4bb8cf);case _0x462597(0x1c4):return formatAsTSV(_0x4bb8cf);default:return formatAsJSON(_0x4bb8cf);}}export function formatBytes(_0x12fed7){const _0xa01171=a74_0x5c96;if(_0x12fed7===0x0)return _0xa01171(0x1c2);const _0x52ae44=['B','KB','MB','GB','TB'],_0x5588ec=0x400,_0x3ab90b=Math['floor'](Math['log'](_0x12fed7)/Math['log'](_0x5588ec)),_0x2c278e=_0x12fed7/Math[_0xa01171(0x1c0)](_0x5588ec,_0x3ab90b),_0x40412b=_0x2c278e>=0xa?0x1:0x2;return _0x2c278e[_0xa01171(0x1c5)](_0x40412b)+'\x20'+_0x52ae44[_0x3ab90b];}export function formatRows(_0x350f8f){const _0xe31fae=a74_0x5c96;if(_0x350f8f==null)return'-';if(_0x350f8f===0x0)return'0';if(_0x350f8f<0x3e8)return _0x350f8f[_0xe31fae(0x1b9)]();const _0x174a5c=['','K','M','B','T'],_0x2c6d41=0x3e8,_0x3146f7=Math[_0xe31fae(0x1ae)](Math[_0xe31fae(0x1ba)](_0x350f8f)/Math[_0xe31fae(0x1ba)](_0x2c6d41)),_0x2e4a75=_0x350f8f/Math[_0xe31fae(0x1c0)](_0x2c6d41,_0x3146f7),_0x273797=_0x2e4a75>=0xa?0x1:0x2;return''+_0x2e4a75[_0xe31fae(0x1c5)](_0x273797)+_0x174a5c[_0x3146f7];}
@@ -1 +1 @@
1
- (function(_0xefbd58,_0x4ffc8b){const _0x29bb82=a75_0x13b7,_0x47c613=_0xefbd58();while(!![]){try{const _0x221949=-parseInt(_0x29bb82(0x1ca))/0x1*(-parseInt(_0x29bb82(0x1c1))/0x2)+-parseInt(_0x29bb82(0x1bc))/0x3+-parseInt(_0x29bb82(0x1bf))/0x4*(parseInt(_0x29bb82(0x1d1))/0x5)+-parseInt(_0x29bb82(0x1c2))/0x6+-parseInt(_0x29bb82(0x1c9))/0x7*(parseInt(_0x29bb82(0x1cf))/0x8)+parseInt(_0x29bb82(0x1c6))/0x9+parseInt(_0x29bb82(0x1cc))/0xa;if(_0x221949===_0x4ffc8b)break;else _0x47c613['push'](_0x47c613['shift']());}catch(_0x33ca5b){_0x47c613['push'](_0x47c613['shift']());}}}(a75_0x18f8,0xd3ca3));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a75_0x13b7(_0x2069c2,_0x5dd8d5){const _0x18f8c9=a75_0x18f8();return a75_0x13b7=function(_0x13b74a,_0x5a224d){_0x13b74a=_0x13b74a-0x1bc;let _0x53c467=_0x18f8c9[_0x13b74a];return _0x53c467;},a75_0x13b7(_0x2069c2,_0x5dd8d5);}function a75_0x18f8(){const _0x9e48c6=['Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','1468HaMiPX','4380978EDOtWB','ENOENT','INTERNAL','EACCES','6343794OLmSSJ','NOT_FOUND','File\x20not\x20found:\x20','7bXpwyw','185zoLQGc','Invalid\x20JSON\x20in\x20file\x20\x27','28357450oFKbbn','parse','INVALID_ARGUMENT','5806232KUftbQ','code','25265SwwpoY','739083wXwBDj','PERMISSION_DENIED','message','876cJCnut'];a75_0x18f8=function(){return _0x9e48c6;};return a75_0x18f8();}export async function loadJSON(_0x5b209c,_0x3e147b){const _0x494801=a75_0x13b7;try{if(_0x3e147b){const _0x366611=await readFile(_0x5b209c,'utf-8');try{return JSON[_0x494801(0x1cd)](_0x366611);}catch(_0x4a08b9){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x494801(0x1cb)+_0x5b209c+'\x27:\x20'+(_0x4a08b9 instanceof Error?_0x4a08b9[_0x494801(0x1be)]:String(_0x4a08b9)));}}else try{return JSON[_0x494801(0x1cd)](_0x5b209c);}catch(_0x368c7b){throw new SDKError(ErrorCode[_0x494801(0x1ce)],'Invalid\x20JSON\x20string:\x20'+(_0x368c7b instanceof Error?_0x368c7b[_0x494801(0x1be)]:String(_0x368c7b)));}}catch(_0x3852d5){if(_0x3852d5 instanceof SDKError)throw _0x3852d5;if(_0x3852d5 instanceof Error&&'code'in _0x3852d5){const _0x5262e2=_0x3852d5;if(_0x5262e2[_0x494801(0x1d0)]===_0x494801(0x1c3))throw new SDKError(ErrorCode[_0x494801(0x1c7)],_0x494801(0x1c8)+_0x5b209c);else{if(_0x5262e2[_0x494801(0x1d0)]===_0x494801(0x1c5))throw new SDKError(ErrorCode[_0x494801(0x1bd)],'Permission\x20denied\x20reading\x20file:\x20'+_0x5b209c);}}throw new SDKError(ErrorCode[_0x494801(0x1c4)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3852d5 instanceof Error?_0x3852d5['message']:String(_0x3852d5)));}}export async function loadJSONFromOptions(_0x1ee9eb,_0x3936c2){const _0x3e31e0=a75_0x13b7;if(_0x1ee9eb&&_0x3936c2)throw new SDKError(ErrorCode[_0x3e31e0(0x1ce)],_0x3e31e0(0x1c0));if(_0x1ee9eb)return await loadJSON(_0x1ee9eb,![]);if(_0x3936c2)return await loadJSON(_0x3936c2,!![]);return undefined;}
1
+ (function(_0x16c626,_0x46ac24){const _0x455b29=a75_0x4926,_0x58c245=_0x16c626();while(!![]){try{const _0x5d281a=parseInt(_0x455b29(0x1d1))/0x1+parseInt(_0x455b29(0x1d5))/0x2*(-parseInt(_0x455b29(0x1cf))/0x3)+-parseInt(_0x455b29(0x1de))/0x4*(parseInt(_0x455b29(0x1d3))/0x5)+-parseInt(_0x455b29(0x1d0))/0x6+-parseInt(_0x455b29(0x1da))/0x7+-parseInt(_0x455b29(0x1db))/0x8*(parseInt(_0x455b29(0x1d7))/0x9)+parseInt(_0x455b29(0x1df))/0xa;if(_0x5d281a===_0x46ac24)break;else _0x58c245['push'](_0x58c245['shift']());}catch(_0xe6906e){_0x58c245['push'](_0x58c245['shift']());}}}(a75_0x1b5d,0xe17b6));function a75_0x4926(_0x317bc8,_0x340f59){const _0x1b5d04=a75_0x1b5d();return a75_0x4926=function(_0x49267b,_0x224df7){_0x49267b=_0x49267b-0x1cc;let _0x9c236d=_0x1b5d04[_0x49267b];return _0x9c236d;},a75_0x4926(_0x317bc8,_0x340f59);}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x27eece,_0xe2c3cf){const _0x174442=a75_0x4926;try{if(_0xe2c3cf){const _0xbc6999=await readFile(_0x27eece,'utf-8');try{return JSON[_0x174442(0x1dd)](_0xbc6999);}catch(_0x2664ca){throw new SDKError(ErrorCode[_0x174442(0x1cd)],_0x174442(0x1d4)+_0x27eece+'\x27:\x20'+(_0x2664ca instanceof Error?_0x2664ca[_0x174442(0x1dc)]:String(_0x2664ca)));}}else try{return JSON['parse'](_0x27eece);}catch(_0x371181){throw new SDKError(ErrorCode[_0x174442(0x1cd)],'Invalid\x20JSON\x20string:\x20'+(_0x371181 instanceof Error?_0x371181[_0x174442(0x1dc)]:String(_0x371181)));}}catch(_0x715f83){if(_0x715f83 instanceof SDKError)throw _0x715f83;if(_0x715f83 instanceof Error&&_0x174442(0x1d8)in _0x715f83){const _0x5a63da=_0x715f83;if(_0x5a63da['code']==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x27eece);else{if(_0x5a63da[_0x174442(0x1d8)]===_0x174442(0x1d9))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x174442(0x1cc)+_0x27eece);}}throw new SDKError(ErrorCode[_0x174442(0x1d2)],_0x174442(0x1ce)+(_0x715f83 instanceof Error?_0x715f83['message']:String(_0x715f83)));}}export async function loadJSONFromOptions(_0xac4d20,_0x2e41d8){const _0x41b097=a75_0x4926;if(_0xac4d20&&_0x2e41d8)throw new SDKError(ErrorCode[_0x41b097(0x1cd)],_0x41b097(0x1d6));if(_0xac4d20)return await loadJSON(_0xac4d20,![]);if(_0x2e41d8)return await loadJSON(_0x2e41d8,!![]);return undefined;}function a75_0x1b5d(){const _0x785340=['1923mbIeZE','2631318DyTPvz','1100214JEkOnI','INTERNAL','35RYzhYc','Invalid\x20JSON\x20in\x20file\x20\x27','3938kdvsxg','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','397989yHTxRg','code','EACCES','994973alMoct','232KsKAiR','message','parse','128756oPdcPJ','31739130ugCiyW','Permission\x20denied\x20reading\x20file:\x20','INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20'];a75_0x1b5d=function(){return _0x785340;};return a75_0x1b5d();}
@@ -1 +1 @@
1
- (function(_0x5f3184,_0x5a043a){const _0x547ee5=a76_0x181f,_0x31f797=_0x5f3184();while(!![]){try{const _0x278b30=-parseInt(_0x547ee5(0x126))/0x1*(-parseInt(_0x547ee5(0x12a))/0x2)+parseInt(_0x547ee5(0x133))/0x3+parseInt(_0x547ee5(0x134))/0x4*(-parseInt(_0x547ee5(0x129))/0x5)+parseInt(_0x547ee5(0x124))/0x6+parseInt(_0x547ee5(0x132))/0x7*(parseInt(_0x547ee5(0x12e))/0x8)+-parseInt(_0x547ee5(0x127))/0x9+parseInt(_0x547ee5(0x12c))/0xa*(-parseInt(_0x547ee5(0x130))/0xb);if(_0x278b30===_0x5a043a)break;else _0x31f797['push'](_0x31f797['shift']());}catch(_0x3b9b1c){_0x31f797['push'](_0x31f797['shift']());}}}(a76_0x5a9d,0x6b1b0));function a76_0x181f(_0x498df7,_0x2f9177){const _0x5a9d0b=a76_0x5a9d();return a76_0x181f=function(_0x181f54,_0xc37993){_0x181f54=_0x181f54-0x124;let _0x3d1714=_0x5a9d0b[_0x181f54];return _0x3d1714;},a76_0x181f(_0x498df7,_0x2f9177);}export function canCreateAgent(_0x2f97f1,_0x21c1e5){const _0x309c6b=a76_0x181f;for(const _0x31986e of _0x2f97f1[_0x309c6b(0x131)]['tools']){if(_0x31986e['targetAgentId']&&!_0x21c1e5['has'](_0x31986e[_0x309c6b(0x125)]))return![];}return!![];}function a76_0x5a9d(){const _0x548c57=['490vlxgnj','1.0','189040YutKHD','get','136609jaGAHU','attributes','77RHtFoa','1459626kPrshJ','8LskBOE','3404988lUlJQv','targetAgentId','50682GZZvPe','2549439YzCWmr','targetKnowledgeBaseId','338775FTRbXK','6EhDxKW','map'];a76_0x5a9d=function(){return _0x548c57;};return a76_0x5a9d();}export function remapToolIds(_0x336582,_0x21ef08,_0x48f963){const _0x175475=a76_0x181f;return _0x336582[_0x175475(0x12b)](_0x264511=>({..._0x264511,'targetKnowledgeBaseId':_0x264511[_0x175475(0x128)]?_0x21ef08[_0x175475(0x12f)](_0x264511[_0x175475(0x128)])||_0x264511[_0x175475(0x128)]:undefined,'targetAgentId':_0x264511[_0x175475(0x125)]?_0x48f963['get'](_0x264511[_0x175475(0x125)])||_0x264511[_0x175475(0x125)]:undefined}));}export function remapVariableIds(_0x3392ee,_0xdc20fc){const _0x24c032=a76_0x181f;return _0x3392ee[_0x24c032(0x12b)](_0x45ca8f=>({..._0x45ca8f,'targetKnowledgeBaseId':_0xdc20fc[_0x24c032(0x12f)](_0x45ca8f[_0x24c032(0x128)])||_0x45ca8f[_0x24c032(0x128)]}));}export function isSupportedBackupVersion(_0x33c878){const _0x34670c=a76_0x181f;return _0x33c878===_0x34670c(0x12d);}
1
+ (function(_0x3fa164,_0xf05905){const _0x260acc=a76_0x55ae,_0x4c6ad7=_0x3fa164();while(!![]){try{const _0x34803d=-parseInt(_0x260acc(0xdc))/0x1*(parseInt(_0x260acc(0xd8))/0x2)+parseInt(_0x260acc(0xe1))/0x3+-parseInt(_0x260acc(0xdb))/0x4+-parseInt(_0x260acc(0xd9))/0x5*(parseInt(_0x260acc(0xda))/0x6)+parseInt(_0x260acc(0xe2))/0x7+-parseInt(_0x260acc(0xd5))/0x8+parseInt(_0x260acc(0xe3))/0x9;if(_0x34803d===_0xf05905)break;else _0x4c6ad7['push'](_0x4c6ad7['shift']());}catch(_0x20e97d){_0x4c6ad7['push'](_0x4c6ad7['shift']());}}}(a76_0x48f1,0xf1336));export function canCreateAgent(_0x12e078,_0x13d470){const _0x3fcfe0=a76_0x55ae;for(const _0x21b798 of _0x12e078[_0x3fcfe0(0xd6)][_0x3fcfe0(0xd7)]){if(_0x21b798[_0x3fcfe0(0xe0)]&&!_0x13d470['has'](_0x21b798[_0x3fcfe0(0xe0)]))return![];}return!![];}function a76_0x55ae(_0x5902aa,_0x51b93d){const _0x48f1df=a76_0x48f1();return a76_0x55ae=function(_0x55aec5,_0x424857){_0x55aec5=_0x55aec5-0xd5;let _0x2b6c28=_0x48f1df[_0x55aec5];return _0x2b6c28;},a76_0x55ae(_0x5902aa,_0x51b93d);}export function remapToolIds(_0x59e06f,_0x3c2a3c,_0xd9b361){const _0x189b00=a76_0x55ae;return _0x59e06f['map'](_0xa575c6=>({..._0xa575c6,'targetKnowledgeBaseId':_0xa575c6[_0x189b00(0xdd)]?_0x3c2a3c[_0x189b00(0xdf)](_0xa575c6['targetKnowledgeBaseId'])||_0xa575c6[_0x189b00(0xdd)]:undefined,'targetAgentId':_0xa575c6['targetAgentId']?_0xd9b361[_0x189b00(0xdf)](_0xa575c6[_0x189b00(0xe0)])||_0xa575c6[_0x189b00(0xe0)]:undefined}));}export function remapVariableIds(_0x11e940,_0x31a481){const _0x556ea2=a76_0x55ae;return _0x11e940[_0x556ea2(0xde)](_0x500386=>({..._0x500386,'targetKnowledgeBaseId':_0x31a481[_0x556ea2(0xdf)](_0x500386[_0x556ea2(0xdd)])||_0x500386[_0x556ea2(0xdd)]}));}export function isSupportedBackupVersion(_0x365ef7){return _0x365ef7==='1.0';}function a76_0x48f1(){const _0x3e4fa0=['51258cURJnO','3076036IMgAJr','211FcKomk','targetKnowledgeBaseId','map','get','targetAgentId','5456196IjvCew','386582UYdlRt','15970716BPyeAm','4325776levpeT','attributes','tools','5030MKCFpG','480xgOniy'];a76_0x48f1=function(){return _0x3e4fa0;};return a76_0x48f1();}
@@ -1 +1 @@
1
- const a77_0x3c8c0f=a77_0x4c00;(function(_0xe395bc,_0x119d64){const _0x5744fd=a77_0x4c00,_0x484320=_0xe395bc();while(!![]){try{const _0x2dfe1a=-parseInt(_0x5744fd(0x193))/0x1+-parseInt(_0x5744fd(0x18f))/0x2+parseInt(_0x5744fd(0x190))/0x3*(-parseInt(_0x5744fd(0x18c))/0x4)+-parseInt(_0x5744fd(0x196))/0x5+parseInt(_0x5744fd(0x18d))/0x6+-parseInt(_0x5744fd(0x18e))/0x7*(-parseInt(_0x5744fd(0x194))/0x8)+parseInt(_0x5744fd(0x18b))/0x9;if(_0x2dfe1a===_0x119d64)break;else _0x484320['push'](_0x484320['shift']());}catch(_0x40d33e){_0x484320['push'](_0x484320['shift']());}}}(a77_0x1c93,0xe2b25));const MODEL_ALIASES={'haiku':a77_0x3c8c0f(0x192),'sonnet':'claude-4.5-sonnet'};export function extractModelAlias(_0x3ac910){const _0x29e961=a77_0x3c8c0f,_0xb6e39c=_0x3ac910[_0x29e961(0x191)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0xb6e39c)return _0xb6e39c[0x1][_0x29e961(0x195)]();return _0x3ac910;}export function resolveModelAlias(_0x5cf881){const _0x276aaf=a77_0x3c8c0f;return MODEL_ALIASES[_0x5cf881[_0x276aaf(0x195)]()]||_0x5cf881;}function a77_0x4c00(_0x2b56e8,_0x1d787d){const _0x1c93bc=a77_0x1c93();return a77_0x4c00=function(_0x4c00b9,_0x38d8b9){_0x4c00b9=_0x4c00b9-0x18b;let _0x4e3fab=_0x1c93bc[_0x4c00b9];return _0x4e3fab;},a77_0x4c00(_0x2b56e8,_0x1d787d);}function a77_0x1c93(){const _0x113ae9=['17521803dPCLbG','55444rmDfUm','6833550BQwplf','742sBQdlr','3460824CwAgNR','30mOqdCJ','match','claude-4.5-haiku','324289uOcCEl','16056HWWLJc','toLowerCase','883370KGgSdF'];a77_0x1c93=function(){return _0x113ae9;};return a77_0x1c93();}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a77_0x184f6d=a77_0x444f;(function(_0x1355d5,_0x55d40b){const _0x172287=a77_0x444f,_0x3d938d=_0x1355d5();while(!![]){try{const _0x1788f3=-parseInt(_0x172287(0x19a))/0x1*(-parseInt(_0x172287(0x192))/0x2)+-parseInt(_0x172287(0x193))/0x3+-parseInt(_0x172287(0x194))/0x4*(-parseInt(_0x172287(0x195))/0x5)+-parseInt(_0x172287(0x19c))/0x6*(parseInt(_0x172287(0x19e))/0x7)+parseInt(_0x172287(0x197))/0x8+-parseInt(_0x172287(0x19f))/0x9+parseInt(_0x172287(0x19d))/0xa;if(_0x1788f3===_0x55d40b)break;else _0x3d938d['push'](_0x3d938d['shift']());}catch(_0x1585a9){_0x3d938d['push'](_0x3d938d['shift']());}}}(a77_0x1ca5,0x2abd3));function a77_0x444f(_0x1a2658,_0x46ec64){const _0x1ca500=a77_0x1ca5();return a77_0x444f=function(_0x444f94,_0x212482){_0x444f94=_0x444f94-0x192;let _0x2c6482=_0x1ca500[_0x444f94];return _0x2c6482;},a77_0x444f(_0x1a2658,_0x46ec64);}const MODEL_ALIASES={'haiku':a77_0x184f6d(0x199),'sonnet':a77_0x184f6d(0x19b)};export function extractModelAlias(_0x2364f3){const _0x307239=a77_0x184f6d,_0x30df37=_0x2364f3[_0x307239(0x196)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x30df37)return _0x30df37[0x1][_0x307239(0x198)]();return _0x2364f3;}export function resolveModelAlias(_0x33da55){const _0x2b42fe=a77_0x184f6d;return MODEL_ALIASES[_0x33da55[_0x2b42fe(0x198)]()]||_0x33da55;}export function getModelAliases(){return{...MODEL_ALIASES};}function a77_0x1ca5(){const _0x166e11=['5181080xZCXmx','559041bfwWan','1067328TFDPCE','12842pxWbOd','1031556SnehbW','72PGMiTY','32620nJYuUj','match','397768QTMkQn','toLowerCase','claude-4.5-haiku','5qLQCwY','claude-4.5-sonnet','6FATtes'];a77_0x1ca5=function(){return _0x166e11;};return a77_0x1ca5();}
@@ -1 +1 @@
1
- (function(_0x3000f5,_0x290202){const _0x4dbde3=a78_0x4878,_0x8c8ff9=_0x3000f5();while(!![]){try{const _0x1b17ab=-parseInt(_0x4dbde3(0x16d))/0x1+parseInt(_0x4dbde3(0x172))/0x2+parseInt(_0x4dbde3(0x175))/0x3*(-parseInt(_0x4dbde3(0x16a))/0x4)+parseInt(_0x4dbde3(0x17b))/0x5*(parseInt(_0x4dbde3(0x173))/0x6)+-parseInt(_0x4dbde3(0x16c))/0x7+-parseInt(_0x4dbde3(0x16e))/0x8+parseInt(_0x4dbde3(0x16f))/0x9*(parseInt(_0x4dbde3(0x17a))/0xa);if(_0x1b17ab===_0x290202)break;else _0x8c8ff9['push'](_0x8c8ff9['shift']());}catch(_0x4c87cc){_0x8c8ff9['push'](_0x8c8ff9['shift']());}}}(a78_0x140b,0xd7222));function a78_0x4878(_0x4a42ca,_0x51f959){const _0x140bf9=a78_0x140b();return a78_0x4878=function(_0x4878ad,_0x4741b2){_0x4878ad=_0x4878ad-0x16a;let _0x1ec298=_0x140bf9[_0x4878ad];return _0x1ec298;},a78_0x4878(_0x4a42ca,_0x51f959);}export function validateLimitOption(_0x244d19){const _0x5b2439=a78_0x4878;if(!Number[_0x5b2439(0x174)](_0x244d19))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x244d19+_0x5b2439(0x16b)};if(_0x244d19<=0x0)return{'isValid':![],'error':_0x5b2439(0x171)+_0x244d19+_0x5b2439(0x176)};return{'isValid':!![],'value':_0x244d19};}function a78_0x140b(){const _0x40a38a=['55326vFavbp','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20a\x20positive\x20number.','number','.\x20Must\x20be\x20a\x20number.','10pbrwua','5YXlCNy','32BHfQoI','.\x20Must\x20be\x20an\x20integer.','7157269wpBOfA','178180iLzjrh','3638536lwIsVb','13561137pKDyEN','Invalid\x20timeout\x20value:\x20','Invalid\x20limit\x20value:\x20','2042236JujKOt','937650rGhFhY','isInteger'];a78_0x140b=function(){return _0x40a38a;};return a78_0x140b();}export function validateTimeoutOption(_0x20ea00,_0x53b548=0x1e){const _0x3958d6=a78_0x4878;if(_0x20ea00===undefined)return{'isValid':!![],'value':_0x53b548};const _0x3a21ce=typeof _0x20ea00===_0x3958d6(0x178)?_0x20ea00:parseFloat(_0x20ea00);if(isNaN(_0x3a21ce))return{'isValid':![],'error':_0x3958d6(0x170)+_0x20ea00+_0x3958d6(0x179)};if(_0x3a21ce<=0x0)return{'isValid':![],'error':_0x3958d6(0x170)+_0x3a21ce+_0x3958d6(0x177)};return{'isValid':!![],'value':_0x3a21ce};}
1
+ (function(_0x17aa6b,_0x545812){const _0x30df1d=a78_0x14ec,_0x47a80b=_0x17aa6b();while(!![]){try{const _0x50103d=parseInt(_0x30df1d(0xd4))/0x1*(-parseInt(_0x30df1d(0xc8))/0x2)+-parseInt(_0x30df1d(0xd8))/0x3+-parseInt(_0x30df1d(0xd0))/0x4*(-parseInt(_0x30df1d(0xcf))/0x5)+-parseInt(_0x30df1d(0xca))/0x6+-parseInt(_0x30df1d(0xd2))/0x7*(parseInt(_0x30df1d(0xcc))/0x8)+-parseInt(_0x30df1d(0xd3))/0x9+parseInt(_0x30df1d(0xcb))/0xa;if(_0x50103d===_0x545812)break;else _0x47a80b['push'](_0x47a80b['shift']());}catch(_0x3afae3){_0x47a80b['push'](_0x47a80b['shift']());}}}(a78_0x48e1,0x88fdb));export function validateLimitOption(_0x372f65){const _0xd3832d=a78_0x14ec;if(!Number[_0xd3832d(0xcd)](_0x372f65))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x372f65+'.\x20Must\x20be\x20an\x20integer.'};if(_0x372f65<=0x0)return{'isValid':![],'error':_0xd3832d(0xd5)+_0x372f65+_0xd3832d(0xd6)};return{'isValid':!![],'value':_0x372f65};}function a78_0x48e1(){const _0x29d484=['.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20a\x20number.','2054340ltVzqS','1759378QAPETE','Invalid\x20timeout\x20value:\x20','6190722TTfvZz','34910350heegzN','4300304jBwQHZ','isInteger','number','3857870gcgsWT','4meGYhR','.\x20Must\x20be\x20a\x20positive\x20number.','7vYfWtq','5109300EKIoHN','1NzWGmK','Invalid\x20limit\x20value:\x20'];a78_0x48e1=function(){return _0x29d484;};return a78_0x48e1();}function a78_0x14ec(_0x130dde,_0x30514a){const _0x48e109=a78_0x48e1();return a78_0x14ec=function(_0x14ecce,_0x2a25a3){_0x14ecce=_0x14ecce-0xc8;let _0xa92e91=_0x48e109[_0x14ecce];return _0xa92e91;},a78_0x14ec(_0x130dde,_0x30514a);}export function validateTimeoutOption(_0x19ab56,_0x2d6084=0x1e){const _0x48991=a78_0x14ec;if(_0x19ab56===undefined)return{'isValid':!![],'value':_0x2d6084};const _0x4daefa=typeof _0x19ab56===_0x48991(0xce)?_0x19ab56:parseFloat(_0x19ab56);if(isNaN(_0x4daefa))return{'isValid':![],'error':_0x48991(0xc9)+_0x19ab56+_0x48991(0xd7)};if(_0x4daefa<=0x0)return{'isValid':![],'error':_0x48991(0xc9)+_0x4daefa+_0x48991(0xd1)};return{'isValid':!![],'value':_0x4daefa};}
@@ -1 +1 @@
1
- (function(_0x5f549a,_0x1aa96f){const _0x153af2=a79_0x5175,_0xa86917=_0x5f549a();while(!![]){try{const _0xe9d8d1=parseInt(_0x153af2(0xe9))/0x1*(parseInt(_0x153af2(0xf0))/0x2)+parseInt(_0x153af2(0xf5))/0x3+parseInt(_0x153af2(0xea))/0x4+-parseInt(_0x153af2(0xed))/0x5*(-parseInt(_0x153af2(0xe8))/0x6)+-parseInt(_0x153af2(0xf6))/0x7*(-parseInt(_0x153af2(0xeb))/0x8)+-parseInt(_0x153af2(0xee))/0x9+-parseInt(_0x153af2(0xec))/0xa*(parseInt(_0x153af2(0xe6))/0xb);if(_0xe9d8d1===_0x1aa96f)break;else _0xa86917['push'](_0xa86917['shift']());}catch(_0x129c29){_0xa86917['push'](_0xa86917['shift']());}}}(a79_0x4416,0x29ff0));import{createServer}from'node:net';function a79_0x4416(){const _0xac8b1c=['listening','error','No\x20available\x20port\x20found\x20between\x20','\x20and\x20','692523LigeHc','4774igysKc','code','close','11lUzzUZ','listen','30YLRfBx','7823cqlxvp','1223564HsdaFj','872kkbQto','5641970HIrWTh','189155nMwkuM','787329qmjhtc','once','6PKnTgq'];a79_0x4416=function(){return _0xac8b1c;};return a79_0x4416();}function a79_0x5175(_0x10cf20,_0x243792){const _0x441666=a79_0x4416();return a79_0x5175=function(_0x51751b,_0x44c6da){_0x51751b=_0x51751b-0xe5;let _0xce8796=_0x441666[_0x51751b];return _0xce8796;},a79_0x5175(_0x10cf20,_0x243792);}export async function isPortAvailable(_0x623517){return new Promise(_0xe89687=>{const _0x4fe91b=a79_0x5175,_0x3a1f89=createServer();_0x3a1f89[_0x4fe91b(0xef)](_0x4fe91b(0xf2),_0x188fce=>{const _0x5e0e17=_0x4fe91b;_0x188fce[_0x5e0e17(0xf7)]==='EADDRINUSE'?_0xe89687(![]):_0xe89687(![]);}),_0x3a1f89[_0x4fe91b(0xef)](_0x4fe91b(0xf1),()=>{const _0x331426=_0x4fe91b;_0x3a1f89[_0x331426(0xe5)](),_0xe89687(!![]);}),_0x3a1f89[_0x4fe91b(0xe7)](_0x623517,'0.0.0.0');});}export async function findAvailablePort(_0x2c3c7d=0xfa0,_0x110530=0x64){const _0x419947=a79_0x5175;for(let _0x4ac124=0x0;_0x4ac124<_0x110530;_0x4ac124++){const _0x476c25=_0x2c3c7d+_0x4ac124;if(await isPortAvailable(_0x476c25))return _0x476c25;}throw new Error(_0x419947(0xf3)+_0x2c3c7d+_0x419947(0xf4)+(_0x2c3c7d+_0x110530-0x1));}
1
+ function a79_0x2726(_0x4ee5f1,_0x53ec44){const _0x467d65=a79_0x467d();return a79_0x2726=function(_0x272607,_0x348290){_0x272607=_0x272607-0x11f;let _0x3fa7aa=_0x467d65[_0x272607];return _0x3fa7aa;},a79_0x2726(_0x4ee5f1,_0x53ec44);}(function(_0x57bae0,_0x4d9363){const _0x1607c4=a79_0x2726,_0x43277e=_0x57bae0();while(!![]){try{const _0x4fc6b5=-parseInt(_0x1607c4(0x127))/0x1*(-parseInt(_0x1607c4(0x123))/0x2)+parseInt(_0x1607c4(0x131))/0x3+parseInt(_0x1607c4(0x12e))/0x4+-parseInt(_0x1607c4(0x122))/0x5*(parseInt(_0x1607c4(0x11f))/0x6)+-parseInt(_0x1607c4(0x121))/0x7*(-parseInt(_0x1607c4(0x132))/0x8)+parseInt(_0x1607c4(0x12a))/0x9*(-parseInt(_0x1607c4(0x12d))/0xa)+-parseInt(_0x1607c4(0x129))/0xb*(-parseInt(_0x1607c4(0x130))/0xc);if(_0x4fc6b5===_0x4d9363)break;else _0x43277e['push'](_0x43277e['shift']());}catch(_0x321295){_0x43277e['push'](_0x43277e['shift']());}}}(a79_0x467d,0x53224));import{createServer}from'node:net';function a79_0x467d(){const _0x274df2=['114664minUGd','27JZNmQV','error','\x20and\x20','1426290JbpoFl','506516fOLlMF','listen','12MlERwJ','1281210xjTbJN','10904DLLkeT','3112722YsPQXE','close','1463ZRqaRP','5XXRBez','4382srwoHw','No\x20available\x20port\x20found\x20between\x20','code','0.0.0.0','200uMzVSg','listening'];a79_0x467d=function(){return _0x274df2;};return a79_0x467d();}export async function isPortAvailable(_0x39b21c){return new Promise(_0x4a957a=>{const _0x551c34=a79_0x2726,_0x1e6d03=createServer();_0x1e6d03['once'](_0x551c34(0x12b),_0x57a2c9=>{const _0x2bca99=_0x551c34;_0x57a2c9[_0x2bca99(0x125)]==='EADDRINUSE'?_0x4a957a(![]):_0x4a957a(![]);}),_0x1e6d03['once'](_0x551c34(0x128),()=>{const _0xd986b=_0x551c34;_0x1e6d03[_0xd986b(0x120)](),_0x4a957a(!![]);}),_0x1e6d03[_0x551c34(0x12f)](_0x39b21c,_0x551c34(0x126));});}export async function findAvailablePort(_0x2202a4=0xfa0,_0x20c805=0x64){const _0x4a2683=a79_0x2726;for(let _0x1f2e61=0x0;_0x1f2e61<_0x20c805;_0x1f2e61++){const _0x296bd7=_0x2202a4+_0x1f2e61;if(await isPortAvailable(_0x296bd7))return _0x296bd7;}throw new Error(_0x4a2683(0x124)+_0x2202a4+_0x4a2683(0x12c)+(_0x2202a4+_0x20c805-0x1));}
@@ -1 +1 @@
1
- const a80_0x208558=a80_0x1915;(function(_0x14c5e8,_0x10e817){const _0x3bbd2d=a80_0x1915,_0x1e59c1=_0x14c5e8();while(!![]){try{const _0x5c63cb=parseInt(_0x3bbd2d(0xe1))/0x1+parseInt(_0x3bbd2d(0xea))/0x2*(parseInt(_0x3bbd2d(0xe8))/0x3)+-parseInt(_0x3bbd2d(0x104))/0x4+-parseInt(_0x3bbd2d(0xeb))/0x5*(-parseInt(_0x3bbd2d(0xe5))/0x6)+-parseInt(_0x3bbd2d(0xfb))/0x7+-parseInt(_0x3bbd2d(0xef))/0x8*(-parseInt(_0x3bbd2d(0xf8))/0x9)+-parseInt(_0x3bbd2d(0xdf))/0xa;if(_0x5c63cb===_0x10e817)break;else _0x1e59c1['push'](_0x1e59c1['shift']());}catch(_0x423090){_0x1e59c1['push'](_0x1e59c1['shift']());}}}(a80_0x3a40,0x9304e));function a80_0x3a40(){const _0x47974b=['kill','env','127928SZYuic','utf-8','\x20-o\x20ppid=,comm=','cursor','replace',',\x20using\x20fallback','wmic\x20process\x20where\x20ProcessId=','toLowerCase','trim','117cTSThG','length','DEBUG','2886408eFsTbc','tcsh','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','zsh','error',',\x20continuing\x20up','dash','code','pop','435664fBjefn','split','join','win32','filter','fish','Found\x20ephemeral\x20shell\x20','platform','bash','15126840yTOcPh','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','304942QZVYZG','pwsh','comm','has','78bVwMQx','elvish','powershell','6kcKdfr','pid','1134802laTkUK','380195LdFzhr','ppid'];a80_0x3a40=function(){return _0x47974b;};return a80_0x3a40();}import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a80_0x208558(0xde),a80_0x208558(0xfe),'sh',a80_0x208558(0xdb),'ksh',a80_0x208558(0xfc),'csh',a80_0x208558(0x101),a80_0x208558(0xe2),a80_0x208558(0xe7),'nu','ion',a80_0x208558(0xe6),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a80_0x208558(0x102),a80_0x208558(0xf2)]);function getProcessInfoWindows(_0xa56256){const _0x2ff9ef=a80_0x208558;try{const _0x32f082=execSync(_0x2ff9ef(0xf5)+_0xa56256+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':'utf-8','windowsHide':!![]})[_0x2ff9ef(0xf7)](),_0x4f93f2=_0x32f082['split']('\x0a')[_0x2ff9ef(0xda)](_0x3f294c=>_0x3f294c[_0x2ff9ef(0xf7)]());if(_0x4f93f2['length']<0x2)return null;const _0x29496a=_0x4f93f2[_0x4f93f2[_0x2ff9ef(0xf9)]-0x1][_0x2ff9ef(0x105)](',');if(_0x29496a['length']<0x3)return null;const _0x5e43f4=_0x29496a[0x1]?.[_0x2ff9ef(0xf7)]()||'',_0x3cb2c0=parseInt(_0x29496a[0x2]?.[_0x2ff9ef(0xf7)]()||'0',0xa);if(isNaN(_0x3cb2c0)||!_0x5e43f4)return null;return{'pid':_0xa56256,'ppid':_0x3cb2c0,'comm':_0x5e43f4[_0x2ff9ef(0xf3)](/\.exe$/i,'')};}catch(_0x17e1a7){return process[_0x2ff9ef(0xee)]['DEBUG']&&console[_0x2ff9ef(0xff)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0xa56256+'\x20on\x20Windows:',_0x17e1a7),null;}}function getProcessInfoPosix(_0x76f6b7){const _0x4170c3=a80_0x208558;try{const _0x3f37be=execSync('ps\x20-p\x20'+_0x76f6b7+_0x4170c3(0xf1),{'encoding':_0x4170c3(0xf0)})['trim'](),[_0x5ba57,..._0x4ae456]=_0x3f37be[_0x4170c3(0x105)](/\s+/),_0x18fbc4=parseInt(_0x5ba57,0xa),_0x535ada=_0x4ae456[_0x4170c3(0x106)]('\x20');if(isNaN(_0x18fbc4))return null;return{'pid':_0x76f6b7,'ppid':_0x18fbc4,'comm':_0x535ada};}catch(_0xc029cc){return process[_0x4170c3(0xee)][_0x4170c3(0xfa)]&&console['error'](_0x4170c3(0xe0)+_0x76f6b7+'\x20on\x20POSIX:',_0xc029cc),null;}}function getProcessInfo(_0x4bbde4){const _0x574c05=a80_0x208558;if(process[_0x574c05(0xdd)]===_0x574c05(0xd9))return getProcessInfoWindows(_0x4bbde4);return getProcessInfoPosix(_0x4bbde4);}function getBasename(_0x102a07){const _0x12a664=a80_0x208558;return _0x102a07[_0x12a664(0xf3)](/^-/,'')[_0x12a664(0x105)]('/')[_0x12a664(0x103)]()?.[_0x12a664(0xf6)]()||'';}function isShell(_0x5359b5){const _0x1dd568=a80_0x208558;return SHELL_NAMES[_0x1dd568(0xe4)](getBasename(_0x5359b5));}function a80_0x1915(_0x39c6a9,_0x1a14c5){const _0x3a40d2=a80_0x3a40();return a80_0x1915=function(_0x191577,_0x38a0f6){_0x191577=_0x191577-0xd9;let _0x539ed9=_0x3a40d2[_0x191577];return _0x539ed9;},a80_0x1915(_0x39c6a9,_0x1a14c5);}function isEphemeralShellSpawner(_0x45be31){const _0x5b1aa9=a80_0x208558;return EPHEMERAL_SHELL_SPAWNERS[_0x5b1aa9(0xe4)](getBasename(_0x45be31));}let cachedShellPID;function findShellPID(){const _0x4d8385=a80_0x208558;let _0x69b723=process[_0x4d8385(0xec)];const _0x13795f=0xa;let _0xa6264f=0x0;while(_0xa6264f<_0x13795f){const _0x52f349=getProcessInfo(_0x69b723);if(!_0x52f349){process[_0x4d8385(0xee)][_0x4d8385(0xfa)]&&console[_0x4d8385(0xff)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x69b723+_0x4d8385(0xf4));break;}if(isShell(_0x52f349[_0x4d8385(0xe3)])){const _0x402c80=getProcessInfo(_0x52f349['ppid']);if(_0x402c80&&isEphemeralShellSpawner(_0x402c80[_0x4d8385(0xe3)])){process[_0x4d8385(0xee)][_0x4d8385(0xfa)]&&console[_0x4d8385(0xff)](_0x4d8385(0xdc)+_0x52f349[_0x4d8385(0xe9)]+'\x20('+_0x52f349[_0x4d8385(0xe3)]+')\x20spawned\x20by\x20'+_0x402c80[_0x4d8385(0xe3)]+_0x4d8385(0x100));_0x69b723=_0x52f349[_0x4d8385(0xec)],_0xa6264f++;continue;}return _0x52f349[_0x4d8385(0xe9)];}if(_0x52f349[_0x4d8385(0xec)]===0x0||_0x52f349[_0x4d8385(0xec)]===0x1){if(isShell(_0x52f349[_0x4d8385(0xe3)]))return _0x52f349[_0x4d8385(0xe9)];break;}_0x69b723=_0x52f349[_0x4d8385(0xec)],_0xa6264f++;}return process[_0x4d8385(0xee)]['DEBUG']&&console['error'](_0x4d8385(0xfd)),process[_0x4d8385(0xec)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x8ab622){const _0x35b0f5=a80_0x208558;try{return process[_0x35b0f5(0xed)](_0x8ab622,0x0),!![];}catch{return![];}}
1
+ const a80_0x25a537=a80_0x5670;(function(_0x3c2f00,_0x323c53){const _0x3b9022=a80_0x5670,_0x141b50=_0x3c2f00();while(!![]){try{const _0x4620c4=-parseInt(_0x3b9022(0xe2))/0x1+-parseInt(_0x3b9022(0xc1))/0x2+parseInt(_0x3b9022(0xdc))/0x3*(-parseInt(_0x3b9022(0xd9))/0x4)+parseInt(_0x3b9022(0xca))/0x5*(parseInt(_0x3b9022(0xe1))/0x6)+parseInt(_0x3b9022(0xbd))/0x7+-parseInt(_0x3b9022(0xba))/0x8*(-parseInt(_0x3b9022(0xc8))/0x9)+-parseInt(_0x3b9022(0xc6))/0xa*(parseInt(_0x3b9022(0xce))/0xb);if(_0x4620c4===_0x323c53)break;else _0x141b50['push'](_0x141b50['shift']());}catch(_0x2363b2){_0x141b50['push'](_0x141b50['shift']());}}}(a80_0x3a96,0x66eb2));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a80_0x25a537(0xc2),a80_0x25a537(0xc0),'sh',a80_0x25a537(0xe0),'ksh',a80_0x25a537(0xc9),a80_0x25a537(0xc4),'dash',a80_0x25a537(0xcb),'powershell','nu',a80_0x25a537(0xcc),a80_0x25a537(0xbf),a80_0x25a537(0xdd)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a80_0x25a537(0xd2),a80_0x25a537(0xd3),a80_0x25a537(0xdb)]);function a80_0x5670(_0x4d00c2,_0x596095){const _0x3a9622=a80_0x3a96();return a80_0x5670=function(_0x567087,_0x53c8a6){_0x567087=_0x567087-0xb3;let _0x5245e8=_0x3a9622[_0x567087];return _0x5245e8;},a80_0x5670(_0x4d00c2,_0x596095);}function getProcessInfoWindows(_0x28bc8a){const _0x2b68d7=a80_0x25a537;try{const _0x29666f=execSync('wmic\x20process\x20where\x20ProcessId='+_0x28bc8a+_0x2b68d7(0xd4),{'encoding':_0x2b68d7(0xb3),'windowsHide':!![]})['trim'](),_0x5a2f69=_0x29666f[_0x2b68d7(0xb6)]('\x0a')[_0x2b68d7(0xb8)](_0x54393f=>_0x54393f['trim']());if(_0x5a2f69[_0x2b68d7(0xcd)]<0x2)return null;const _0x10291f=_0x5a2f69[_0x5a2f69[_0x2b68d7(0xcd)]-0x1][_0x2b68d7(0xb6)](',');if(_0x10291f[_0x2b68d7(0xcd)]<0x3)return null;const _0x18a676=_0x10291f[0x1]?.[_0x2b68d7(0xe3)]()||'',_0x43fd2d=parseInt(_0x10291f[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x43fd2d)||!_0x18a676)return null;return{'pid':_0x28bc8a,'ppid':_0x43fd2d,'comm':_0x18a676[_0x2b68d7(0xb5)](/\.exe$/i,'')};}catch(_0x2dd60d){return process['env'][_0x2b68d7(0xc5)]&&console[_0x2b68d7(0xbb)](_0x2b68d7(0xd8)+_0x28bc8a+_0x2b68d7(0xbc),_0x2dd60d),null;}}function getProcessInfoPosix(_0x36227d){const _0x457aac=a80_0x25a537;try{const _0x128a5d=execSync(_0x457aac(0xde)+_0x36227d+'\x20-o\x20ppid=,comm=',{'encoding':_0x457aac(0xb3)})[_0x457aac(0xe3)](),[_0x4ca2f7,..._0x42dece]=_0x128a5d[_0x457aac(0xb6)](/\s+/),_0x40fda4=parseInt(_0x4ca2f7,0xa),_0x350462=_0x42dece[_0x457aac(0xc3)]('\x20');if(isNaN(_0x40fda4))return null;return{'pid':_0x36227d,'ppid':_0x40fda4,'comm':_0x350462};}catch(_0x3dc3fa){return process[_0x457aac(0xbe)][_0x457aac(0xc5)]&&console[_0x457aac(0xbb)](_0x457aac(0xd8)+_0x36227d+_0x457aac(0xd5),_0x3dc3fa),null;}}function getProcessInfo(_0x9142cf){const _0x47803a=a80_0x25a537;if(process[_0x47803a(0xb4)]===_0x47803a(0xd6))return getProcessInfoWindows(_0x9142cf);return getProcessInfoPosix(_0x9142cf);}function getBasename(_0x3f591a){const _0x46b8ff=a80_0x25a537;return _0x3f591a['replace'](/^-/,'')[_0x46b8ff(0xb6)]('/')[_0x46b8ff(0xd7)]()?.['toLowerCase']()||'';}function isShell(_0x4325ac){const _0x59f774=a80_0x25a537;return SHELL_NAMES[_0x59f774(0xd1)](getBasename(_0x4325ac));}function isEphemeralShellSpawner(_0x3b1096){const _0x327114=a80_0x25a537;return EPHEMERAL_SHELL_SPAWNERS[_0x327114(0xd1)](getBasename(_0x3b1096));}function a80_0x3a96(){const _0x121dcb=['env','elvish','zsh','758560pcmxMQ','bash','join','csh','DEBUG','22370UVEQXh','Found\x20ephemeral\x20shell\x20','5130pAcfSL','tcsh','80RgYKWn','pwsh','ion','length','11cugBHH','ppid',',\x20continuing\x20up','has','claude','code','\x20get\x20ParentProcessId,Name\x20/format:csv','\x20on\x20POSIX:','win32','pop','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','324ididIk',',\x20using\x20fallback','cursor','8076bpsqoL','xonsh','ps\x20-p\x20','kill','fish','265974GGstmN','529589aNOeyb','trim','utf-8','platform','replace','split','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','filter','comm','3424SkPFzL','error','\x20on\x20Windows:','4182416BSYiuS'];a80_0x3a96=function(){return _0x121dcb;};return a80_0x3a96();}let cachedShellPID;function findShellPID(){const _0x1882e6=a80_0x25a537;let _0xc71941=process['ppid'];const _0x140256=0xa;let _0x2d1515=0x0;while(_0x2d1515<_0x140256){const _0x1fec55=getProcessInfo(_0xc71941);if(!_0x1fec55){process[_0x1882e6(0xbe)][_0x1882e6(0xc5)]&&console[_0x1882e6(0xbb)](_0x1882e6(0xb7)+_0xc71941+_0x1882e6(0xda));break;}if(isShell(_0x1fec55['comm'])){const _0x2073fb=getProcessInfo(_0x1fec55['ppid']);if(_0x2073fb&&isEphemeralShellSpawner(_0x2073fb[_0x1882e6(0xb9)])){process['env'][_0x1882e6(0xc5)]&&console[_0x1882e6(0xbb)](_0x1882e6(0xc7)+_0x1fec55['pid']+'\x20('+_0x1fec55['comm']+')\x20spawned\x20by\x20'+_0x2073fb['comm']+_0x1882e6(0xd0));_0xc71941=_0x1fec55[_0x1882e6(0xcf)],_0x2d1515++;continue;}return _0x1fec55['pid'];}if(_0x1fec55[_0x1882e6(0xcf)]===0x0||_0x1fec55[_0x1882e6(0xcf)]===0x1){if(isShell(_0x1fec55[_0x1882e6(0xb9)]))return _0x1fec55['pid'];break;}_0xc71941=_0x1fec55[_0x1882e6(0xcf)],_0x2d1515++;}return process[_0x1882e6(0xbe)]['DEBUG']&&console['error']('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3e43ab){const _0x5ecb0b=a80_0x25a537;try{return process[_0x5ecb0b(0xdf)](_0x3e43ab,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a81_0x7d98(){const _0x2801f5=['10909930jbkGll','21434dfGWHX','toLowerCase','close','question','3779820yyDBvP','3828415AJNUvS','createInterface','27fiuETb','4UANgRp','stdin','2021289wTVUlE','4cAmUkx','1515376pWejfX','95698NhgbyV','1578DfpTYB','11QejyDX','\x20(y/N):\x20'];a81_0x7d98=function(){return _0x2801f5;};return a81_0x7d98();}(function(_0x4bab44,_0x58e26b){const _0x56e2c2=a81_0x5b69,_0x4fc7b0=_0x4bab44();while(!![]){try{const _0x8f96fe=parseInt(_0x56e2c2(0x1df))/0x1*(parseInt(_0x56e2c2(0x1da))/0x2)+parseInt(_0x56e2c2(0x1dc))/0x3+parseInt(_0x56e2c2(0x1dd))/0x4*(parseInt(_0x56e2c2(0x1d7))/0x5)+parseInt(_0x56e2c2(0x1e0))/0x6*(-parseInt(_0x56e2c2(0x1d2))/0x7)+parseInt(_0x56e2c2(0x1de))/0x8*(parseInt(_0x56e2c2(0x1d9))/0x9)+parseInt(_0x56e2c2(0x1d1))/0xa*(-parseInt(_0x56e2c2(0x1cf))/0xb)+parseInt(_0x56e2c2(0x1d6))/0xc;if(_0x8f96fe===_0x58e26b)break;else _0x4fc7b0['push'](_0x4fc7b0['shift']());}catch(_0x40b6d8){_0x4fc7b0['push'](_0x4fc7b0['shift']());}}}(a81_0x7d98,0x96d42));function a81_0x5b69(_0x20af54,_0x3b241d){const _0x7d989f=a81_0x7d98();return a81_0x5b69=function(_0x5b6910,_0x3b624f){_0x5b6910=_0x5b6910-0x1cf;let _0xc095fb=_0x7d989f[_0x5b6910];return _0xc095fb;},a81_0x5b69(_0x20af54,_0x3b241d);}import*as a81_0x3db391 from'readline';export async function confirm(_0x151784){const _0x134e58=a81_0x5b69,_0x2cfb68=a81_0x3db391[_0x134e58(0x1d8)]({'input':process[_0x134e58(0x1db)],'output':process['stdout']});return new Promise(_0x5d8618=>{const _0x199e49=_0x134e58;_0x2cfb68[_0x199e49(0x1d5)](_0x151784+_0x199e49(0x1d0),_0x522105=>{const _0x417d8f=_0x199e49;_0x2cfb68[_0x417d8f(0x1d4)](),_0x5d8618(_0x522105[_0x417d8f(0x1d3)]()==='y'||_0x522105['toLowerCase']()==='yes');});});}
1
+ (function(_0xfe20ea,_0x148358){const _0x26dc9a=a81_0x5403,_0x1fdee9=_0xfe20ea();while(!![]){try{const _0x1876e9=-parseInt(_0x26dc9a(0x108))/0x1+parseInt(_0x26dc9a(0x101))/0x2+-parseInt(_0x26dc9a(0x109))/0x3+parseInt(_0x26dc9a(0xff))/0x4+parseInt(_0x26dc9a(0x104))/0x5*(-parseInt(_0x26dc9a(0x100))/0x6)+parseInt(_0x26dc9a(0x102))/0x7+-parseInt(_0x26dc9a(0x10b))/0x8*(-parseInt(_0x26dc9a(0x105))/0x9);if(_0x1876e9===_0x148358)break;else _0x1fdee9['push'](_0x1fdee9['shift']());}catch(_0xe3ef1c){_0x1fdee9['push'](_0x1fdee9['shift']());}}}(a81_0x44a6,0xbc6ae));import*as a81_0x4692a4 from'readline';function a81_0x5403(_0x1332e7,_0x136935){const _0x44a64b=a81_0x44a6();return a81_0x5403=function(_0x540385,_0x2d0995){_0x540385=_0x540385-0xff;let _0x49a94d=_0x44a64b[_0x540385];return _0x49a94d;},a81_0x5403(_0x1332e7,_0x136935);}function a81_0x44a6(){const _0x5b4d73=['1013632wvRitF','createInterface','stdout','184064UEUOGX','10974Vtrmnd','946198rcIRBU','8960427DSFuaa','toLowerCase','635rsqKfs','63yBuUTh','yes','question','841527yuRNYA','2521608paxAmV','close'];a81_0x44a6=function(){return _0x5b4d73;};return a81_0x44a6();}export async function confirm(_0x223d9d){const _0x18a8e9=a81_0x5403,_0x1caa89=a81_0x4692a4[_0x18a8e9(0x10c)]({'input':process['stdin'],'output':process[_0x18a8e9(0x10d)]});return new Promise(_0x279553=>{const _0x5f07a9=_0x18a8e9;_0x1caa89[_0x5f07a9(0x107)](_0x223d9d+'\x20(y/N):\x20',_0x37f2f1=>{const _0x55ca9b=_0x5f07a9;_0x1caa89[_0x55ca9b(0x10a)](),_0x279553(_0x37f2f1[_0x55ca9b(0x103)]()==='y'||_0x37f2f1[_0x55ca9b(0x103)]()===_0x55ca9b(0x106));});});}
@@ -1 +1 @@
1
- (function(_0x1be507,_0x2f5ba6){const _0x602bf4=a82_0x54e6,_0x339c20=_0x1be507();while(!![]){try{const _0x2bc63d=-parseInt(_0x602bf4(0x173))/0x1+-parseInt(_0x602bf4(0x18c))/0x2+parseInt(_0x602bf4(0x17c))/0x3*(parseInt(_0x602bf4(0x183))/0x4)+parseInt(_0x602bf4(0x189))/0x5+parseInt(_0x602bf4(0x177))/0x6*(parseInt(_0x602bf4(0x18e))/0x7)+parseInt(_0x602bf4(0x17f))/0x8*(-parseInt(_0x602bf4(0x188))/0x9)+parseInt(_0x602bf4(0x17e))/0xa;if(_0x2bc63d===_0x2f5ba6)break;else _0x339c20['push'](_0x339c20['shift']());}catch(_0xb337c2){_0x339c20['push'](_0x339c20['shift']());}}}(a82_0x31b5,0xa1c5f));function a82_0x54e6(_0x577388,_0x5ad2bf){const _0x31b55e=a82_0x31b5();return a82_0x54e6=function(_0x54e6cf,_0x2912cb){_0x54e6cf=_0x54e6cf-0x173;let _0x46fd30=_0x31b55e[_0x54e6cf];return _0x46fd30;},a82_0x54e6(_0x577388,_0x5ad2bf);}export function parsePath(_0x1d46bf){const _0x460ec4=a82_0x54e6;if(!_0x1d46bf||_0x1d46bf[_0x460ec4(0x17d)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x182818=_0x1d46bf['trim']();if(_0x182818==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x1d46bf};const _0x5164e4=_0x182818[_0x460ec4(0x175)]('/')?_0x182818[_0x460ec4(0x18a)](0x1):_0x182818,_0x342046=_0x5164e4[_0x460ec4(0x185)]('/')[_0x460ec4(0x184)](_0x30da1b=>_0x30da1b!=='');if(_0x342046[_0x460ec4(0x18b)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x115f8d=_0x182818[_0x460ec4(0x175)]('/')||!isRelativePathSegment(_0x342046[0x0]);for(const _0x1fde54 of _0x342046){validatePathSegment(_0x1fde54);}return{'segments':_0x342046,'isAbsolute':_0x115f8d,'raw':_0x1d46bf};}function isRelativePathSegment(_0x5beef7){return _0x5beef7==='.'||_0x5beef7==='..';}function validatePathSegment(_0x5625f4){const _0xaa4818=a82_0x54e6;if(_0x5625f4==='')throw new Error(_0xaa4818(0x174));if(_0x5625f4==='.'||_0x5625f4==='..')return;if(/[\x00-\x1F\x7F]/[_0xaa4818(0x178)](_0x5625f4))throw new Error(_0xaa4818(0x18f)+_0x5625f4);if(_0x5625f4!==_0x5625f4[_0xaa4818(0x17d)]()){}}export function validatePath(_0x53cef1){const _0x276bb6=a82_0x54e6;if(_0x53cef1[_0x276bb6(0x181)][_0x276bb6(0x18b)]===0x0&&!_0x53cef1[_0x276bb6(0x187)])throw new Error(_0x276bb6(0x17b));if(_0x53cef1['isAbsolute']){if(_0x53cef1[_0x276bb6(0x181)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x1b4a4b=0x0;for(const _0x2ea1b9 of _0x53cef1[_0x276bb6(0x181)]){if(_0x2ea1b9==='..'){if(_0x1b4a4b===0x0)throw new Error(_0x276bb6(0x176));_0x1b4a4b--;}else _0x2ea1b9!=='.'&&_0x1b4a4b++;}}}export function joinPaths(_0x2f4d00,_0x2b1b5d){const _0x46490d=a82_0x54e6;if(!_0x2f4d00||_0x2f4d00==='/')return _0x2b1b5d;if(!_0x2b1b5d||_0x2b1b5d==='.')return _0x2f4d00;if(_0x2b1b5d[_0x46490d(0x175)]('/'))return _0x2b1b5d;const _0x11dfe0=parsePath(_0x2f4d00),_0x92b9be=parsePath(_0x2b1b5d),_0x47039b=[..._0x11dfe0[_0x46490d(0x181)]];for(const _0x144bc3 of _0x92b9be[_0x46490d(0x181)]){if(_0x144bc3==='.')continue;else{if(_0x144bc3==='..'){if(_0x47039b[_0x46490d(0x18b)]===0x0)throw new Error(_0x46490d(0x18d));_0x47039b['pop']();}else _0x47039b[_0x46490d(0x186)](_0x144bc3);}}const _0x2497bf=_0x47039b[_0x46490d(0x17a)]('/');return _0x11dfe0[_0x46490d(0x180)][_0x46490d(0x175)]('/')?'/'+_0x2497bf:_0x2497bf;}export function normalizePath(_0x196594){const _0x14cd7c=a82_0x54e6,_0x267c48=parsePath(_0x196594),_0xff7576=[];for(const _0x49d59e of _0x267c48[_0x14cd7c(0x181)]){if(_0x49d59e==='.')continue;else{if(_0x49d59e==='..'){if(_0xff7576['length']===0x0){if(_0x267c48['isAbsolute'])throw new Error(_0x14cd7c(0x18d));_0xff7576[_0x14cd7c(0x186)]('..');}else _0xff7576[_0xff7576[_0x14cd7c(0x18b)]-0x1]==='..'?_0xff7576['push']('..'):_0xff7576['pop']();}else _0xff7576['push'](_0x49d59e);}}if(_0xff7576[_0x14cd7c(0x18b)]===0x0)return _0x267c48[_0x14cd7c(0x187)]?'/':'.';const _0x249c12=_0xff7576[_0x14cd7c(0x17a)]('/');return _0x267c48[_0x14cd7c(0x180)][_0x14cd7c(0x175)]('/')?'/'+_0x249c12:_0x249c12;}export function getParentPath(_0x248db0){const _0x3057ed=a82_0x54e6,_0x1007dd=parsePath(_0x248db0);if(_0x1007dd['segments']['length']<=0x1)return'/';const _0x242150=_0x1007dd[_0x3057ed(0x181)][_0x3057ed(0x179)](0x0,-0x1)[_0x3057ed(0x17a)]('/');return _0x1007dd['raw'][_0x3057ed(0x175)]('/')?'/'+_0x242150:_0x242150;}export function getBaseName(_0x4bcdaa){const _0x651787=a82_0x54e6,_0x29eeb4=parsePath(_0x4bcdaa);return _0x29eeb4[_0x651787(0x181)][_0x29eeb4[_0x651787(0x181)]['length']-0x1]||'';}export function isChildPath(_0x1af4d5,_0x1495e9){const _0x1acd12=a82_0x54e6,_0x478324=parsePath(_0x1af4d5),_0x5bcf60=parsePath(_0x1495e9);if(_0x478324[_0x1acd12(0x181)][_0x1acd12(0x18b)]<=_0x5bcf60[_0x1acd12(0x181)][_0x1acd12(0x18b)])return![];for(let _0x29a6c1=0x0;_0x29a6c1<_0x5bcf60[_0x1acd12(0x181)][_0x1acd12(0x18b)];_0x29a6c1++){if(_0x478324[_0x1acd12(0x181)][_0x29a6c1]!==_0x5bcf60[_0x1acd12(0x181)][_0x29a6c1])return![];}return!![];}export function splitPath(_0x2c591b){const _0x66640d=a82_0x54e6,_0x2dcf21=parsePath(_0x2c591b);if(_0x2dcf21[_0x66640d(0x181)]['length']===0x0)throw new Error(_0x66640d(0x182));if(_0x2dcf21['segments'][_0x66640d(0x18b)]===0x1)return{'parent':_0x2dcf21['segments'][0x0]};return{'parent':_0x2dcf21['segments'][0x0],'child':_0x2dcf21[_0x66640d(0x181)][_0x66640d(0x179)](0x1)[_0x66640d(0x17a)]('/')};}function a82_0x31b5(){const _0x4119a3=['slice','join','Relative\x20path\x20cannot\x20be\x20empty','1776555zQlWIJ','trim','9851080yqaXgI','66200XPUzGS','raw','segments','Cannot\x20split\x20empty\x20path','4MrlpFS','filter','split','push','isAbsolute','1404CyQsdO','1730260ikUuzL','substring','length','1548462aWBvDO','Cannot\x20navigate\x20above\x20root','1043kkmsbM','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','275394PUoueH','Path\x20segment\x20cannot\x20be\x20empty','startsWith','Path\x20attempts\x20to\x20navigate\x20above\x20root','43482GLLfMH','test'];a82_0x31b5=function(){return _0x4119a3;};return a82_0x31b5();}
1
+ (function(_0x5d6f5d,_0x2319cc){const _0x35a0d5=a82_0x3dd2,_0x1fed63=_0x5d6f5d();while(!![]){try{const _0x41ce0f=parseInt(_0x35a0d5(0xb4))/0x1+-parseInt(_0x35a0d5(0xb7))/0x2+parseInt(_0x35a0d5(0xba))/0x3*(-parseInt(_0x35a0d5(0xae))/0x4)+-parseInt(_0x35a0d5(0xc1))/0x5+parseInt(_0x35a0d5(0xb5))/0x6+-parseInt(_0x35a0d5(0xaf))/0x7*(parseInt(_0x35a0d5(0xb8))/0x8)+parseInt(_0x35a0d5(0xb0))/0x9;if(_0x41ce0f===_0x2319cc)break;else _0x1fed63['push'](_0x1fed63['shift']());}catch(_0x51142f){_0x1fed63['push'](_0x1fed63['shift']());}}}(a82_0x5ac8,0xd3999));export function parsePath(_0x536df4){const _0x250579=a82_0x3dd2;if(!_0x536df4||_0x536df4['trim']()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x1d0074=_0x536df4[_0x250579(0xac)]();if(_0x1d0074==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x536df4};const _0x4841ee=_0x1d0074[_0x250579(0xb9)]('/')?_0x1d0074[_0x250579(0xb1)](0x1):_0x1d0074,_0x1e0e33=_0x4841ee['split']('/')['filter'](_0x49e161=>_0x49e161!=='');if(_0x1e0e33[_0x250579(0xbb)]===0x0)throw new Error(_0x250579(0xbd));const _0x42df7b=_0x1d0074['startsWith']('/')||!isRelativePathSegment(_0x1e0e33[0x0]);for(const _0x18c3c4 of _0x1e0e33){validatePathSegment(_0x18c3c4);}return{'segments':_0x1e0e33,'isAbsolute':_0x42df7b,'raw':_0x536df4};}function isRelativePathSegment(_0x468341){return _0x468341==='.'||_0x468341==='..';}function a82_0x5ac8(){const _0x1a7e8f=['1449JykzsM','31430349hUWfwH','substring','push','Path\x20attempts\x20to\x20navigate\x20above\x20root','848363ECCtDm','4899006LALhsD','Cannot\x20navigate\x20above\x20root','2263178YhgqQo','7096OFTvXp','startsWith','42hQJpPg','length','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','slice','segments','8206540XXjLvL','pop','test','raw','isAbsolute','Relative\x20path\x20cannot\x20be\x20empty','trim','join','381116FZGoWo'];a82_0x5ac8=function(){return _0x1a7e8f;};return a82_0x5ac8();}function a82_0x3dd2(_0x5b9ed5,_0x230492){const _0x5ac86b=a82_0x5ac8();return a82_0x3dd2=function(_0x3dd201,_0x2a2f5d){_0x3dd201=_0x3dd201-0xac;let _0x416cf1=_0x5ac86b[_0x3dd201];return _0x416cf1;},a82_0x3dd2(_0x5b9ed5,_0x230492);}function validatePathSegment(_0x2574a2){const _0x3900bf=a82_0x3dd2;if(_0x2574a2==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x2574a2==='.'||_0x2574a2==='..')return;if(/[\x00-\x1F\x7F]/[_0x3900bf(0xc3)](_0x2574a2))throw new Error(_0x3900bf(0xbc)+_0x2574a2);if(_0x2574a2!==_0x2574a2[_0x3900bf(0xac)]()){}}export function validatePath(_0x29889c){const _0x2bc615=a82_0x3dd2;if(_0x29889c[_0x2bc615(0xc0)][_0x2bc615(0xbb)]===0x0&&!_0x29889c[_0x2bc615(0xc5)])throw new Error(_0x2bc615(0xc6));if(_0x29889c['isAbsolute']){if(_0x29889c[_0x2bc615(0xc0)][0x0]==='..')throw new Error(_0x2bc615(0xbe));let _0x3144d0=0x0;for(const _0x22c236 of _0x29889c[_0x2bc615(0xc0)]){if(_0x22c236==='..'){if(_0x3144d0===0x0)throw new Error(_0x2bc615(0xb3));_0x3144d0--;}else _0x22c236!=='.'&&_0x3144d0++;}}}export function joinPaths(_0xc949bb,_0xad2bd6){const _0x19bbaa=a82_0x3dd2;if(!_0xc949bb||_0xc949bb==='/')return _0xad2bd6;if(!_0xad2bd6||_0xad2bd6==='.')return _0xc949bb;if(_0xad2bd6[_0x19bbaa(0xb9)]('/'))return _0xad2bd6;const _0x30259b=parsePath(_0xc949bb),_0x4fee92=parsePath(_0xad2bd6),_0x44a998=[..._0x30259b[_0x19bbaa(0xc0)]];for(const _0x39f2af of _0x4fee92[_0x19bbaa(0xc0)]){if(_0x39f2af==='.')continue;else{if(_0x39f2af==='..'){if(_0x44a998[_0x19bbaa(0xbb)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x44a998[_0x19bbaa(0xc2)]();}else _0x44a998[_0x19bbaa(0xb2)](_0x39f2af);}}const _0x2010ce=_0x44a998[_0x19bbaa(0xad)]('/');return _0x30259b['raw'][_0x19bbaa(0xb9)]('/')?'/'+_0x2010ce:_0x2010ce;}export function normalizePath(_0x21c8fc){const _0x446649=a82_0x3dd2,_0x181bfe=parsePath(_0x21c8fc),_0x567e46=[];for(const _0x319d1d of _0x181bfe[_0x446649(0xc0)]){if(_0x319d1d==='.')continue;else{if(_0x319d1d==='..'){if(_0x567e46['length']===0x0){if(_0x181bfe[_0x446649(0xc5)])throw new Error(_0x446649(0xb6));_0x567e46[_0x446649(0xb2)]('..');}else _0x567e46[_0x567e46[_0x446649(0xbb)]-0x1]==='..'?_0x567e46[_0x446649(0xb2)]('..'):_0x567e46[_0x446649(0xc2)]();}else _0x567e46[_0x446649(0xb2)](_0x319d1d);}}if(_0x567e46[_0x446649(0xbb)]===0x0)return _0x181bfe[_0x446649(0xc5)]?'/':'.';const _0xaba3cf=_0x567e46[_0x446649(0xad)]('/');return _0x181bfe[_0x446649(0xc4)]['startsWith']('/')?'/'+_0xaba3cf:_0xaba3cf;}export function getParentPath(_0x3cbced){const _0x3aa7a5=a82_0x3dd2,_0x5e5e94=parsePath(_0x3cbced);if(_0x5e5e94['segments'][_0x3aa7a5(0xbb)]<=0x1)return'/';const _0x2179e4=_0x5e5e94[_0x3aa7a5(0xc0)][_0x3aa7a5(0xbf)](0x0,-0x1)[_0x3aa7a5(0xad)]('/');return _0x5e5e94[_0x3aa7a5(0xc4)][_0x3aa7a5(0xb9)]('/')?'/'+_0x2179e4:_0x2179e4;}export function getBaseName(_0x3126a3){const _0x39dfac=a82_0x3dd2,_0x4f4ca4=parsePath(_0x3126a3);return _0x4f4ca4[_0x39dfac(0xc0)][_0x4f4ca4[_0x39dfac(0xc0)][_0x39dfac(0xbb)]-0x1]||'';}export function isChildPath(_0x215721,_0xe577f6){const _0x43b2cd=a82_0x3dd2,_0x28ddb8=parsePath(_0x215721),_0x131f88=parsePath(_0xe577f6);if(_0x28ddb8[_0x43b2cd(0xc0)][_0x43b2cd(0xbb)]<=_0x131f88[_0x43b2cd(0xc0)][_0x43b2cd(0xbb)])return![];for(let _0x1f08e8=0x0;_0x1f08e8<_0x131f88[_0x43b2cd(0xc0)]['length'];_0x1f08e8++){if(_0x28ddb8[_0x43b2cd(0xc0)][_0x1f08e8]!==_0x131f88[_0x43b2cd(0xc0)][_0x1f08e8])return![];}return!![];}export function splitPath(_0x2416a9){const _0x5297da=a82_0x3dd2,_0x5c4143=parsePath(_0x2416a9);if(_0x5c4143[_0x5297da(0xc0)][_0x5297da(0xbb)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x5c4143[_0x5297da(0xc0)]['length']===0x1)return{'parent':_0x5c4143[_0x5297da(0xc0)][0x0]};return{'parent':_0x5c4143[_0x5297da(0xc0)][0x0],'child':_0x5c4143['segments'][_0x5297da(0xbf)](0x1)[_0x5297da(0xad)]('/')};}
@@ -1 +1 @@
1
- function a83_0x4f7e(_0x174cf6,_0xc9a3){const _0x1ce0aa=a83_0x1ce0();return a83_0x4f7e=function(_0x4f7e3c,_0x19c6d1){_0x4f7e3c=_0x4f7e3c-0xb0;let _0x2db22f=_0x1ce0aa[_0x4f7e3c];return _0x2db22f;},a83_0x4f7e(_0x174cf6,_0xc9a3);}(function(_0x216413,_0x3a91ab){const _0x1afa69=a83_0x4f7e,_0x377d01=_0x216413();while(!![]){try{const _0x1bd7bd=parseInt(_0x1afa69(0xb1))/0x1*(-parseInt(_0x1afa69(0xb9))/0x2)+-parseInt(_0x1afa69(0xb0))/0x3+-parseInt(_0x1afa69(0xba))/0x4*(parseInt(_0x1afa69(0xb4))/0x5)+-parseInt(_0x1afa69(0xbb))/0x6+-parseInt(_0x1afa69(0xb5))/0x7+parseInt(_0x1afa69(0xb3))/0x8+parseInt(_0x1afa69(0xb6))/0x9*(parseInt(_0x1afa69(0xb8))/0xa);if(_0x1bd7bd===_0x3a91ab)break;else _0x377d01['push'](_0x377d01['shift']());}catch(_0x2ff6cb){_0x377d01['push'](_0x377d01['shift']());}}}(a83_0x1ce0,0xe228c));export function parseSegmentRef(_0x4e53da){const _0x191a00=a83_0x4f7e,_0x4a06e4=_0x4e53da['indexOf']('/');if(_0x4a06e4===-0x1)return{'parentId':_0x4e53da};if(_0x4a06e4===0x0)throw new Error(_0x191a00(0xbc)+_0x4e53da+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x5cf0ae=_0x4e53da[_0x191a00(0xb7)](0x0,_0x4a06e4),_0xbcc2c7=_0x4e53da[_0x191a00(0xb7)](_0x4a06e4+0x1);if(_0xbcc2c7==='')throw new Error(_0x191a00(0xbc)+_0x4e53da+_0x191a00(0xb2));return{'parentId':_0x5cf0ae,'childId':_0xbcc2c7};}function a83_0x1ce0(){const _0x8c5591=['974DDSKsD','6284VfdDwN','1429098znwzKC','Invalid\x20segment\x20reference\x20format:\x20','653358hhfiFF','1143ZypjPy','.\x20Child\x20name\x20cannot\x20be\x20empty','23272YnKuzC','3545TbTdzM','431088pnSrfB','250029DGkDLl','substring','1120uMUOep'];a83_0x1ce0=function(){return _0x8c5591;};return a83_0x1ce0();}
1
+ function a83_0x5a80(){const _0x11189a=['2504560VoCVDR','1476344SRUXuM','.\x20Child\x20name\x20cannot\x20be\x20empty','5QTUfud','substring','1116853paumoQ','684838NTkTpE','5958090xqGGbj','27daMoQu','4178544MsOStr','1115149lKJURE','indexOf','Invalid\x20segment\x20reference\x20format:\x20','6nZzNaD','.\x20Parent\x20name\x20cannot\x20be\x20empty'];a83_0x5a80=function(){return _0x11189a;};return a83_0x5a80();}(function(_0x3167fd,_0x108ecf){const _0x1f2153=a83_0x93f8,_0x35db49=_0x3167fd();while(!![]){try{const _0x5e274f=-parseInt(_0x1f2153(0x1bd))/0x1+parseInt(_0x1f2153(0x1be))/0x2*(-parseInt(_0x1f2153(0x1c5))/0x3)+-parseInt(_0x1f2153(0x1b9))/0x4*(-parseInt(_0x1f2153(0x1bb))/0x5)+parseInt(_0x1f2153(0x1c1))/0x6+-parseInt(_0x1f2153(0x1c2))/0x7+-parseInt(_0x1f2153(0x1c7))/0x8+-parseInt(_0x1f2153(0x1c0))/0x9*(-parseInt(_0x1f2153(0x1bf))/0xa);if(_0x5e274f===_0x108ecf)break;else _0x35db49['push'](_0x35db49['shift']());}catch(_0x3b7e88){_0x35db49['push'](_0x35db49['shift']());}}}(a83_0x5a80,0x8d535));function a83_0x93f8(_0x44ae0c,_0x1a5e4d){const _0x5a8033=a83_0x5a80();return a83_0x93f8=function(_0x93f864,_0x1bdf7d){_0x93f864=_0x93f864-0x1b9;let _0x387e95=_0x5a8033[_0x93f864];return _0x387e95;},a83_0x93f8(_0x44ae0c,_0x1a5e4d);}export function parseSegmentRef(_0x5cd375){const _0x300126=a83_0x93f8,_0x4cbfbd=_0x5cd375[_0x300126(0x1c3)]('/');if(_0x4cbfbd===-0x1)return{'parentId':_0x5cd375};if(_0x4cbfbd===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x5cd375+_0x300126(0x1c6));const _0x4a32b4=_0x5cd375[_0x300126(0x1bc)](0x0,_0x4cbfbd),_0x1474b3=_0x5cd375[_0x300126(0x1bc)](_0x4cbfbd+0x1);if(_0x1474b3==='')throw new Error(_0x300126(0x1c4)+_0x5cd375+_0x300126(0x1ba));return{'parentId':_0x4a32b4,'childId':_0x1474b3};}
@@ -1 +1 @@
1
- (function(_0x1a71fd,_0x575cdb){const _0x33b635=a84_0x235f,_0x3edf6e=_0x1a71fd();while(!![]){try{const _0x1eebe6=-parseInt(_0x33b635(0x1d5))/0x1+parseInt(_0x33b635(0x1c0))/0x2*(-parseInt(_0x33b635(0x1c9))/0x3)+parseInt(_0x33b635(0x1ca))/0x4*(parseInt(_0x33b635(0x1ce))/0x5)+-parseInt(_0x33b635(0x1d0))/0x6*(parseInt(_0x33b635(0x1d3))/0x7)+parseInt(_0x33b635(0x1c6))/0x8+-parseInt(_0x33b635(0x1d9))/0x9+-parseInt(_0x33b635(0x1cf))/0xa*(-parseInt(_0x33b635(0x1be))/0xb);if(_0x1eebe6===_0x575cdb)break;else _0x3edf6e['push'](_0x3edf6e['shift']());}catch(_0x2ccf80){_0x3edf6e['push'](_0x3edf6e['shift']());}}}(a84_0x2a28,0xc1fe9));function a84_0x235f(_0x4555fb,_0x4f363b){const _0x2a2849=a84_0x2a28();return a84_0x235f=function(_0x235fc0,_0x1ad1dc){_0x235fc0=_0x235fc0-0x1be;let _0x560478=_0x2a2849[_0x235fc0];return _0x560478;},a84_0x235f(_0x4555fb,_0x4f363b);}import a84_0x205bda from'ora';function a84_0x2a28(){const _0x445252=['6220015csCvRI','7780wZPMEr','62364wOUttD','start','cyan','189qltCru','\x20[Job\x20ID:\x20','105060vPwLaa','replace','phase','isTTY','7908525MPdwFP','18007kRMNcg','intervalFactory','1807434sdIDJw','toFixed','stop','stdout','isSpinning','jobId','3561216KsTsAd','now','text','3OBJFRm','4RDwvaj','extra','clock','floor'];a84_0x2a28=function(){return _0x445252;};return a84_0x2a28();}export function createCommandSpinner(_0x10b4d6,_0x9e5ee6={}){const _0x4aceda=a84_0x235f,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x9e5ee6;return a84_0x205bda({'text':_0x10b4d6,'color':_0x4aceda(0x1d2),'isEnabled':forceEnabled||process[_0x4aceda(0x1c3)][_0x4aceda(0x1d8)]&&!verbose});}export async function withSpinner(_0x61a246,_0x3eff16,_0x2a5f65={}){const _0x2f4928=a84_0x235f,_0x65eb46=_0x2a5f65['clock']??(()=>Date[_0x2f4928(0x1c7)]()),_0x3e2047=createCommandSpinner(_0x61a246,_0x2a5f65);_0x3e2047[_0x2f4928(0x1d1)]();const _0x4c034f=_0x65eb46();try{const _0x3ec375=await _0x3eff16(),_0x26de8f=_0x65eb46()-_0x4c034f;return _0x3e2047[_0x2f4928(0x1c2)](),{'data':_0x3ec375,'elapsedMs':_0x26de8f};}catch(_0x20f4b9){_0x3e2047[_0x2f4928(0x1c2)]();throw _0x20f4b9;}}export async function withQuerySpinner(_0x419f91,_0x314718,_0xc6f8a={}){const _0x2472af=a84_0x235f,_0x197916=_0xc6f8a[_0x2472af(0x1cc)]??(()=>Date[_0x2472af(0x1c7)]()),_0x33d72e=_0xc6f8a[_0x2472af(0x1bf)]??setInterval,_0x3ccc0d=createCommandSpinner(_0x419f91,_0xc6f8a);_0x3ccc0d['start']();const _0x6daae=_0x197916(),_0x16e499=_0x419f91[_0x2472af(0x1d6)]('...',''),_0x4cb110={},_0x1a403f=()=>{const _0x26dfcb=_0x2472af;if(!_0x3ccc0d[_0x26dfcb(0x1c4)])return;const _0x4318bd=_0x197916()-_0x6daae,_0x1c8e2e=formatElapsed(_0x4318bd),_0x52446c=_0x4cb110[_0x26dfcb(0x1d7)]??_0x16e499,_0x567cda=_0x4cb110['jobId']?_0x26dfcb(0x1d4)+_0x4cb110['jobId']+']':'',_0x2d84c8=_0x4cb110[_0x26dfcb(0x1cb)]?'\x20'+_0x4cb110[_0x26dfcb(0x1cb)]:'';_0x3ccc0d[_0x26dfcb(0x1c8)]=_0x52446c+'\x20'+_0x1c8e2e+_0x2d84c8+_0x567cda;},_0xcf1f1e=_0x33d72e(()=>{_0x1a403f();},0x3e8),_0x4ee1db={'setPhase':_0x36817f=>{const _0x59fd74=_0x2472af;_0x4cb110[_0x59fd74(0x1d7)]=_0x36817f,_0x1a403f();},'setJobId':_0x4a7973=>{const _0x201fc3=_0x2472af;_0x4cb110[_0x201fc3(0x1c5)]=_0x4a7973,_0x1a403f();},'setExtra':_0x54858f=>{const _0x496993=_0x2472af;_0x4cb110[_0x496993(0x1cb)]=_0x54858f,_0x1a403f();}};_0x1a403f();try{const _0x58ca94=await _0x314718(_0x4ee1db),_0x22a4dc=_0x197916()-_0x6daae;return{'data':_0x58ca94,'elapsedMs':_0x22a4dc};}finally{clearInterval(_0xcf1f1e),_0x3ccc0d[_0x2472af(0x1c2)]();}}export function formatElapsed(_0x132a1d){const _0x243114=a84_0x235f,_0x43c754=Math[_0x243114(0x1cd)](_0x132a1d/0x3e8);if(_0x43c754<0x3c)return(_0x132a1d/0x3e8)[_0x243114(0x1c1)](0x1)+'s';const _0x18805c=Math[_0x243114(0x1cd)](_0x43c754/0x3c),_0x4cb0e6=_0x43c754%0x3c;if(_0x18805c<0x3c)return _0x18805c+'m\x20'+_0x4cb0e6+'s';const _0xd23e01=Math['floor'](_0x18805c/0x3c),_0x3c9627=_0x18805c%0x3c;return _0xd23e01+'h\x20'+_0x3c9627+'m';}
1
+ (function(_0x996f22,_0x5694f5){const _0x152bdb=a84_0x1a8d,_0x49513d=_0x996f22();while(!![]){try{const _0x159df1=-parseInt(_0x152bdb(0x1e6))/0x1*(-parseInt(_0x152bdb(0x1f2))/0x2)+parseInt(_0x152bdb(0x1e1))/0x3+-parseInt(_0x152bdb(0x1ea))/0x4*(parseInt(_0x152bdb(0x1fa))/0x5)+-parseInt(_0x152bdb(0x1ed))/0x6+parseInt(_0x152bdb(0x1e2))/0x7*(-parseInt(_0x152bdb(0x1f4))/0x8)+parseInt(_0x152bdb(0x1ee))/0x9*(parseInt(_0x152bdb(0x1e5))/0xa)+parseInt(_0x152bdb(0x1f6))/0xb*(parseInt(_0x152bdb(0x1e8))/0xc);if(_0x159df1===_0x5694f5)break;else _0x49513d['push'](_0x49513d['shift']());}catch(_0x2752d5){_0x49513d['push'](_0x49513d['shift']());}}}(a84_0x4af2,0xad35d));import a84_0x34a74d from'ora';export function createCommandSpinner(_0x58804f,_0x9cd8bc={}){const _0xa67656=a84_0x1a8d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x9cd8bc;return a84_0x34a74d({'text':_0x58804f,'color':_0xa67656(0x1ef),'isEnabled':forceEnabled||process[_0xa67656(0x1e4)][_0xa67656(0x1e7)]&&!verbose});}function a84_0x1a8d(_0x533a2d,_0x3ff22b){const _0x4af2fb=a84_0x4af2();return a84_0x1a8d=function(_0x1a8d07,_0x395114){_0x1a8d07=_0x1a8d07-0x1df;let _0x1d2ff8=_0x4af2fb[_0x1a8d07];return _0x1d2ff8;},a84_0x1a8d(_0x533a2d,_0x3ff22b);}export async function withSpinner(_0x443c00,_0x57d1bf,_0x3ea54a={}){const _0x7f489d=a84_0x1a8d,_0x5ef997=_0x3ea54a[_0x7f489d(0x1f1)]??(()=>Date['now']()),_0x36fdf1=createCommandSpinner(_0x443c00,_0x3ea54a);_0x36fdf1[_0x7f489d(0x1f7)]();const _0xdf5a90=_0x5ef997();try{const _0x37724b=await _0x57d1bf(),_0x257d75=_0x5ef997()-_0xdf5a90;return _0x36fdf1[_0x7f489d(0x1f0)](),{'data':_0x37724b,'elapsedMs':_0x257d75};}catch(_0x501766){_0x36fdf1[_0x7f489d(0x1f0)]();throw _0x501766;}}export async function withQuerySpinner(_0xecc434,_0x884dc8,_0x1d5cb5={}){const _0x4b9e07=a84_0x1a8d,_0x4b1dc8=_0x1d5cb5[_0x4b9e07(0x1f1)]??(()=>Date[_0x4b9e07(0x1ec)]()),_0x3074cd=_0x1d5cb5[_0x4b9e07(0x1df)]??setInterval,_0x8e833=createCommandSpinner(_0xecc434,_0x1d5cb5);_0x8e833['start']();const _0x490a97=_0x4b1dc8(),_0x2a5e50=_0xecc434[_0x4b9e07(0x1e3)]('...',''),_0x42be6b={},_0x35bac9=()=>{const _0x3fb3e1=_0x4b9e07;if(!_0x8e833[_0x3fb3e1(0x1f5)])return;const _0x110593=_0x4b1dc8()-_0x490a97,_0x25f542=formatElapsed(_0x110593),_0x1aa3d7=_0x42be6b[_0x3fb3e1(0x1eb)]??_0x2a5e50,_0x22e376=_0x42be6b[_0x3fb3e1(0x1f9)]?'\x20[Job\x20ID:\x20'+_0x42be6b[_0x3fb3e1(0x1f9)]+']':'',_0x253e61=_0x42be6b[_0x3fb3e1(0x1f3)]?'\x20'+_0x42be6b[_0x3fb3e1(0x1f3)]:'';_0x8e833[_0x3fb3e1(0x1e9)]=_0x1aa3d7+'\x20'+_0x25f542+_0x253e61+_0x22e376;},_0xbd959=_0x3074cd(()=>{_0x35bac9();},0x3e8),_0x5184dd={'setPhase':_0x578e86=>{const _0x282821=_0x4b9e07;_0x42be6b[_0x282821(0x1eb)]=_0x578e86,_0x35bac9();},'setJobId':_0x1079b4=>{const _0x19fd47=_0x4b9e07;_0x42be6b[_0x19fd47(0x1f9)]=_0x1079b4,_0x35bac9();},'setExtra':_0x3a1e=>{const _0x457012=_0x4b9e07;_0x42be6b[_0x457012(0x1f3)]=_0x3a1e,_0x35bac9();}};_0x35bac9();try{const _0x22376b=await _0x884dc8(_0x5184dd),_0x14f611=_0x4b1dc8()-_0x490a97;return{'data':_0x22376b,'elapsedMs':_0x14f611};}finally{clearInterval(_0xbd959),_0x8e833[_0x4b9e07(0x1f0)]();}}export function formatElapsed(_0x1958cd){const _0x2c9952=a84_0x1a8d,_0xf2412e=Math[_0x2c9952(0x1f8)](_0x1958cd/0x3e8);if(_0xf2412e<0x3c)return(_0x1958cd/0x3e8)[_0x2c9952(0x1e0)](0x1)+'s';const _0x3236be=Math[_0x2c9952(0x1f8)](_0xf2412e/0x3c),_0x121458=_0xf2412e%0x3c;if(_0x3236be<0x3c)return _0x3236be+'m\x20'+_0x121458+'s';const _0x2ab4d2=Math[_0x2c9952(0x1f8)](_0x3236be/0x3c),_0x4d5c61=_0x3236be%0x3c;return _0x2ab4d2+'h\x20'+_0x4d5c61+'m';}function a84_0x4af2(){const _0x47af54=['clock','126xPxQFB','extra','40GfZSUa','isSpinning','3752056VBxVaV','start','floor','jobId','5GwebJZ','intervalFactory','toFixed','2365266Kpslbo','1972957zZePyj','replace','stdout','10ESXHmO','12985TlNgNE','isTTY','48fCPZSt','text','5626424rnfgMk','phase','now','2783616jnhByI','9165645sJFDkJ','cyan','stop'];a84_0x4af2=function(){return _0x47af54;};return a84_0x4af2();}
@@ -1 +1 @@
1
- (function(_0x4de609,_0x55850f){const _0x2c0648=a85_0x3c14,_0x4386e9=_0x4de609();while(!![]){try{const _0x5a3eea=-parseInt(_0x2c0648(0x13a))/0x1*(parseInt(_0x2c0648(0x123))/0x2)+parseInt(_0x2c0648(0x12e))/0x3+-parseInt(_0x2c0648(0x126))/0x4+-parseInt(_0x2c0648(0x129))/0x5+-parseInt(_0x2c0648(0x12f))/0x6+parseInt(_0x2c0648(0x139))/0x7+parseInt(_0x2c0648(0x134))/0x8*(parseInt(_0x2c0648(0x125))/0x9);if(_0x5a3eea===_0x55850f)break;else _0x4386e9['push'](_0x4386e9['shift']());}catch(_0xf312dc){_0x4386e9['push'](_0x4386e9['shift']());}}}(a85_0x491d,0x96fd3));import{readFileSync}from'fs';export function stripSqlComments(_0x497fc4){const _0x42eeff=a85_0x3c14;let _0x3dc652=_0x497fc4[_0x42eeff(0x133)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3dc652=_0x3dc652[_0x42eeff(0x133)](/--.*$/gm,''),_0x3dc652[_0x42eeff(0x135)]();}function a85_0x3c14(_0x59ff21,_0x11a810){const _0x491dc6=a85_0x491d();return a85_0x3c14=function(_0x3c14eb,_0x4e625b){_0x3c14eb=_0x3c14eb-0x123;let _0x2fddd8=_0x491dc6[_0x3c14eb];return _0x2fddd8;},a85_0x3c14(_0x59ff21,_0x11a810);}function isEscaped(_0x57d695,_0x16f8a5){let _0x3b7e7e=0x0;for(let _0x327850=_0x16f8a5-0x1;_0x327850>=0x0&&_0x57d695[_0x327850]==='\x5c';_0x327850--){_0x3b7e7e++;}return _0x3b7e7e%0x2===0x1;}export function splitSqlStatements(_0x4debca){const _0x495ebb=a85_0x3c14,_0x15297e=stripSqlComments(_0x4debca);if(!_0x15297e)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x1b891d=[];let _0x458113='',_0x260cbf=![],_0x2ffa43=![],_0x571d88=![];for(let _0x1c007a=0x0;_0x1c007a<_0x4debca['length'];_0x1c007a++){const _0x456cac=_0x4debca[_0x1c007a];if(_0x456cac==='\x27'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x2ffa43&&!_0x571d88)_0x260cbf=!_0x260cbf;else{if(_0x456cac==='\x22'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x260cbf&&!_0x571d88)_0x2ffa43=!_0x2ffa43;else _0x456cac==='`'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x260cbf&&!_0x2ffa43&&(_0x571d88=!_0x571d88);}if(_0x456cac===';'&&!_0x260cbf&&!_0x2ffa43&&!_0x571d88){const _0x1ef458=_0x458113[_0x495ebb(0x135)]();_0x1ef458&&_0x1b891d['push'](_0x1ef458),_0x458113='';}else _0x458113+=_0x456cac;}const _0x3c2222=_0x458113[_0x495ebb(0x135)]();_0x3c2222&&_0x1b891d['push'](_0x3c2222);const _0x27d8b8=_0x1b891d[_0x495ebb(0x137)](_0x406281=>_0x406281[_0x495ebb(0x135)]())[_0x495ebb(0x12b)](_0x57948b=>{const _0x3c3eaa=_0x495ebb,_0x44eec5=stripSqlComments(_0x57948b);return _0x44eec5[_0x3c3eaa(0x131)]>0x0;});if(_0x27d8b8['length']===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x27d8b8;}export function readFileContent(_0x50beab){const _0xe3b6ad=a85_0x3c14;try{return readFileSync(_0x50beab,_0xe3b6ad(0x12d));}catch(_0x5e94ec){const _0x4621a7=_0x5e94ec[_0xe3b6ad(0x138)];if(_0x4621a7==='ENOENT')throw new Error(_0xe3b6ad(0x130)+_0x50beab+_0xe3b6ad(0x124));else{if(_0x4621a7===_0xe3b6ad(0x136))throw new Error(_0xe3b6ad(0x12c)+_0x50beab+'\x27');else throw new Error(_0xe3b6ad(0x127)+_0x50beab+_0xe3b6ad(0x128)+_0x5e94ec[_0xe3b6ad(0x12a)]);}}}export function readSqlStatementsFromFile(_0x14ca81){const _0x3bf976=a85_0x3c14,_0x460cec=readFileContent(_0x14ca81);try{return splitSqlStatements(_0x460cec);}catch(_0x8629be){throw new Error(_0x3bf976(0x130)+_0x14ca81+'\x27\x20'+_0x8629be[_0x3bf976(0x12a)][_0x3bf976(0x132)]());}}function a85_0x491d(){const _0x254322=['819kgGNMt','165640eiRCFz','Error\x20reading\x20file\x20\x27','\x27:\x20','1143545nVsrBy','message','filter','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','2521125FFWQKs','2054784oTRFex','File\x20\x27','length','toLowerCase','replace','54488cAJQRF','trim','EACCES','map','code','4062765KarhFG','809537DtMcPn','2pkyipi','\x27\x20not\x20found'];a85_0x491d=function(){return _0x254322;};return a85_0x491d();}
1
+ (function(_0x3fa4bb,_0xf7072a){const _0x1f741f=a85_0x1dfd,_0x53e778=_0x3fa4bb();while(!![]){try{const _0x539568=-parseInt(_0x1f741f(0x88))/0x1+-parseInt(_0x1f741f(0x8b))/0x2*(-parseInt(_0x1f741f(0x8f))/0x3)+-parseInt(_0x1f741f(0x7a))/0x4+-parseInt(_0x1f741f(0x81))/0x5+parseInt(_0x1f741f(0x7d))/0x6*(-parseInt(_0x1f741f(0x8c))/0x7)+-parseInt(_0x1f741f(0x83))/0x8+parseInt(_0x1f741f(0x7b))/0x9*(parseInt(_0x1f741f(0x85))/0xa);if(_0x539568===_0xf7072a)break;else _0x53e778['push'](_0x53e778['shift']());}catch(_0x5a322b){_0x53e778['push'](_0x53e778['shift']());}}}(a85_0x5cab,0xdc9f2));import{readFileSync}from'fs';export function stripSqlComments(_0x4361d9){const _0x3882c8=a85_0x1dfd;let _0x35dbcb=_0x4361d9[_0x3882c8(0x87)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x35dbcb=_0x35dbcb[_0x3882c8(0x87)](/--.*$/gm,''),_0x35dbcb['trim']();}function a85_0x1dfd(_0x281515,_0x321b98){const _0x5cab51=a85_0x5cab();return a85_0x1dfd=function(_0x1dfddf,_0x41ced0){_0x1dfddf=_0x1dfddf-0x78;let _0x20cf41=_0x5cab51[_0x1dfddf];return _0x20cf41;},a85_0x1dfd(_0x281515,_0x321b98);}function isEscaped(_0x41a0f9,_0x2af30c){let _0x20e9fe=0x0;for(let _0x4e925f=_0x2af30c-0x1;_0x4e925f>=0x0&&_0x41a0f9[_0x4e925f]==='\x5c';_0x4e925f--){_0x20e9fe++;}return _0x20e9fe%0x2===0x1;}export function splitSqlStatements(_0x1c91ee){const _0x462497=a85_0x1dfd,_0x580b54=stripSqlComments(_0x1c91ee);if(!_0x580b54)throw new Error(_0x462497(0x8e));const _0x9cdca=[];let _0x296677='',_0x20bc59=![],_0x519452=![],_0x141064=![];for(let _0x30267e=0x0;_0x30267e<_0x1c91ee['length'];_0x30267e++){const _0x49bc17=_0x1c91ee[_0x30267e];if(_0x49bc17==='\x27'&&!isEscaped(_0x1c91ee,_0x30267e)&&!_0x519452&&!_0x141064)_0x20bc59=!_0x20bc59;else{if(_0x49bc17==='\x22'&&!isEscaped(_0x1c91ee,_0x30267e)&&!_0x20bc59&&!_0x141064)_0x519452=!_0x519452;else _0x49bc17==='`'&&!isEscaped(_0x1c91ee,_0x30267e)&&!_0x20bc59&&!_0x519452&&(_0x141064=!_0x141064);}if(_0x49bc17===';'&&!_0x20bc59&&!_0x519452&&!_0x141064){const _0x6ee058=_0x296677[_0x462497(0x80)]();_0x6ee058&&_0x9cdca[_0x462497(0x84)](_0x6ee058),_0x296677='';}else _0x296677+=_0x49bc17;}const _0x8738e2=_0x296677[_0x462497(0x80)]();_0x8738e2&&_0x9cdca[_0x462497(0x84)](_0x8738e2);const _0x3b42c1=_0x9cdca[_0x462497(0x90)](_0xfc12ee=>_0xfc12ee[_0x462497(0x80)]())[_0x462497(0x89)](_0x3fd910=>{const _0x176640=_0x462497,_0x5aba86=stripSqlComments(_0x3fd910);return _0x5aba86[_0x176640(0x7e)]>0x0;});if(_0x3b42c1['length']===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x3b42c1;}export function readFileContent(_0x19192b){const _0x246707=a85_0x1dfd;try{return readFileSync(_0x19192b,'utf-8');}catch(_0x5dcb66){const _0x1cadb7=_0x5dcb66[_0x246707(0x86)];if(_0x1cadb7===_0x246707(0x8d))throw new Error(_0x246707(0x79)+_0x19192b+'\x27\x20not\x20found');else{if(_0x1cadb7===_0x246707(0x82))throw new Error(_0x246707(0x7c)+_0x19192b+'\x27');else throw new Error(_0x246707(0x78)+_0x19192b+_0x246707(0x8a)+_0x5dcb66[_0x246707(0x7f)]);}}}function a85_0x5cab(){const _0x3b9768=['ENOENT','Content\x20contains\x20no\x20SQL\x20statements','3NFrqtE','map','Error\x20reading\x20file\x20\x27','File\x20\x27','6393560dvBBvS','426951ocIFhT','Permission\x20denied\x20reading\x20file\x20\x27','2594394LAXWGb','length','message','trim','6500130sYWNjK','EACCES','10435808TdJGzO','push','1350kmGfEO','code','replace','622853yTZRox','filter','\x27:\x20','1244686TXKQOW','21MEdUFL'];a85_0x5cab=function(){return _0x3b9768;};return a85_0x5cab();}export function readSqlStatementsFromFile(_0x3ec519){const _0x1380de=a85_0x1dfd,_0x28c6f4=readFileContent(_0x3ec519);try{return splitSqlStatements(_0x28c6f4);}catch(_0x334f17){throw new Error(_0x1380de(0x79)+_0x3ec519+'\x27\x20'+_0x334f17['message']['toLowerCase']());}}
@@ -1 +1 @@
1
- function a86_0x3485(_0x1dbb75,_0x4e9039){const _0x2f691c=a86_0x2f69();return a86_0x3485=function(_0x348539,_0x2f61e6){_0x348539=_0x348539-0x131;let _0x331a92=_0x2f691c[_0x348539];return _0x331a92;},a86_0x3485(_0x1dbb75,_0x4e9039);}(function(_0x8afdff,_0x2ec08a){const _0x2a76fd=a86_0x3485,_0x33bdb9=_0x8afdff();while(!![]){try{const _0x163b98=parseInt(_0x2a76fd(0x13c))/0x1*(parseInt(_0x2a76fd(0x13f))/0x2)+-parseInt(_0x2a76fd(0x133))/0x3*(-parseInt(_0x2a76fd(0x138))/0x4)+parseInt(_0x2a76fd(0x135))/0x5*(-parseInt(_0x2a76fd(0x137))/0x6)+-parseInt(_0x2a76fd(0x13e))/0x7+parseInt(_0x2a76fd(0x139))/0x8*(-parseInt(_0x2a76fd(0x142))/0x9)+parseInt(_0x2a76fd(0x144))/0xa*(-parseInt(_0x2a76fd(0x145))/0xb)+parseInt(_0x2a76fd(0x132))/0xc;if(_0x163b98===_0x2ec08a)break;else _0x33bdb9['push'](_0x33bdb9['shift']());}catch(_0x435752){_0x33bdb9['push'](_0x33bdb9['shift']());}}}(a86_0x2f69,0x9c37d));export async function*parseSSEStream(_0x375fc7,_0x566152){const _0x65d315=a86_0x3485;if(!_0x375fc7[_0x65d315(0x13d)])throw new Error('Response\x20body\x20is\x20null');const _0x2d6012=_0x375fc7[_0x65d315(0x13d)][_0x65d315(0x13a)](),_0x3e3f75=new TextDecoder();let _0x559ae5='',_0x17c04a={};try{while(!![]){const {done:_0x54fcda,value:_0x285e2d}=await _0x2d6012[_0x65d315(0x13b)]();if(_0x54fcda){if(_0x17c04a[_0x65d315(0x146)]){_0x566152?.[_0x65d315(0x149)](_0x65d315(0x134)+_0x17c04a[_0x65d315(0x146)]);const _0x2ddc4c=parseSSEData(_0x17c04a[_0x65d315(0x146)]);yield _0x2ddc4c;}break;}_0x559ae5+=_0x3e3f75[_0x65d315(0x140)](_0x285e2d,{'stream':!![]});const _0x58ec59=_0x559ae5['split']('\x0a');_0x559ae5=_0x58ec59[_0x65d315(0x141)]()||'';for(const _0x426aa3 of _0x58ec59){if(_0x426aa3[_0x65d315(0x136)]()===''){if(_0x17c04a['data']){_0x566152?.[_0x65d315(0x149)](_0x65d315(0x134)+_0x17c04a[_0x65d315(0x146)]);const _0x11e7b4=parseSSEData(_0x17c04a['data']);yield _0x11e7b4,_0x17c04a={};}continue;}if(_0x426aa3[_0x65d315(0x148)](':'))continue;const _0x369ea7=_0x426aa3['indexOf'](':');if(_0x369ea7===-0x1)continue;const _0x4fa288=_0x426aa3[_0x65d315(0x131)](0x0,_0x369ea7);let _0x3cd8ce=_0x426aa3['slice'](_0x369ea7+0x1);_0x3cd8ce[_0x65d315(0x148)]('\x20')&&(_0x3cd8ce=_0x3cd8ce[_0x65d315(0x131)](0x1));switch(_0x4fa288){case'event':_0x17c04a['event']=_0x3cd8ce;break;case _0x65d315(0x146):_0x17c04a['data']=_0x17c04a['data']?_0x17c04a[_0x65d315(0x146)]+'\x0a'+_0x3cd8ce:_0x3cd8ce;break;case'id':_0x17c04a['id']=_0x3cd8ce;break;}}}}finally{_0x2d6012[_0x65d315(0x143)]();}}function parseSSEData(_0x207d43){const _0x353d4c=a86_0x3485;try{return JSON[_0x353d4c(0x147)](_0x207d43);}catch(_0x1bcab8){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x207d43,{'cause':_0x1bcab8});}}function a86_0x2f69(){const _0x2c4a63=['[LLM\x20API\x20SSE]\x20','5ikhguH','trim','7232838zuhYcL','146404TveIqX','2237416cPhzDe','getReader','read','166772jFbwyb','body','7432152zPkXXr','4BhzWOX','decode','pop','18eYEYKR','releaseLock','1930ubqhbN','10769jALOJG','data','parse','startsWith','debug','slice','37226748qwLgQm','18evkcsA'];a86_0x2f69=function(){return _0x2c4a63;};return a86_0x2f69();}
1
+ function a86_0x2789(){const _0x3d23fa=['[LLM\x20API\x20SSE]\x20','slice','data','decode','7755552NABily','1470354WjqnjH','pop','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','body','debug','164599DfsBNm','releaseLock','event','trim','startsWith','read','9HLmhsu','6533478SpnpgJ','698722HeDBdz','3eiMvRF','948524ohIiqM','4146040bDKwJN'];a86_0x2789=function(){return _0x3d23fa;};return a86_0x2789();}(function(_0xc0d661,_0x2fa476){const _0x50d681=a86_0x4361,_0x29236e=_0xc0d661();while(!![]){try{const _0x4bb359=-parseInt(_0x50d681(0x192))/0x1+parseInt(_0x50d681(0x19a))/0x2*(-parseInt(_0x50d681(0x19b))/0x3)+-parseInt(_0x50d681(0x19c))/0x4+-parseInt(_0x50d681(0x19d))/0x5+parseInt(_0x50d681(0x18d))/0x6+parseInt(_0x50d681(0x199))/0x7+-parseInt(_0x50d681(0x18c))/0x8*(-parseInt(_0x50d681(0x198))/0x9);if(_0x4bb359===_0x2fa476)break;else _0x29236e['push'](_0x29236e['shift']());}catch(_0x1b114b){_0x29236e['push'](_0x29236e['shift']());}}}(a86_0x2789,0x8a906));function a86_0x4361(_0x4a23d4,_0x8a415b){const _0x2789e2=a86_0x2789();return a86_0x4361=function(_0x4361d0,_0x2bad9d){_0x4361d0=_0x4361d0-0x189;let _0x27561e=_0x2789e2[_0x4361d0];return _0x27561e;},a86_0x4361(_0x4a23d4,_0x8a415b);}export async function*parseSSEStream(_0x173af4,_0x46b4d2){const _0x1c805b=a86_0x4361;if(!_0x173af4[_0x1c805b(0x190)])throw new Error('Response\x20body\x20is\x20null');const _0x4ba4c6=_0x173af4[_0x1c805b(0x190)]['getReader'](),_0x1f2949=new TextDecoder();let _0x390d92='',_0x2e0c53={};try{while(!![]){const {done:_0x2e74d7,value:_0x27c013}=await _0x4ba4c6[_0x1c805b(0x197)]();if(_0x2e74d7){if(_0x2e0c53[_0x1c805b(0x18a)]){_0x46b4d2?.['debug'](_0x1c805b(0x19e)+_0x2e0c53[_0x1c805b(0x18a)]);const _0x44a780=parseSSEData(_0x2e0c53[_0x1c805b(0x18a)]);yield _0x44a780;}break;}_0x390d92+=_0x1f2949[_0x1c805b(0x18b)](_0x27c013,{'stream':!![]});const _0x1129d6=_0x390d92['split']('\x0a');_0x390d92=_0x1129d6[_0x1c805b(0x18e)]()||'';for(const _0x307934 of _0x1129d6){if(_0x307934[_0x1c805b(0x195)]()===''){if(_0x2e0c53['data']){_0x46b4d2?.[_0x1c805b(0x191)](_0x1c805b(0x19e)+_0x2e0c53['data']);const _0x9a27c1=parseSSEData(_0x2e0c53[_0x1c805b(0x18a)]);yield _0x9a27c1,_0x2e0c53={};}continue;}if(_0x307934[_0x1c805b(0x196)](':'))continue;const _0x512e39=_0x307934['indexOf'](':');if(_0x512e39===-0x1)continue;const _0x591220=_0x307934['slice'](0x0,_0x512e39);let _0x3a1a4e=_0x307934[_0x1c805b(0x189)](_0x512e39+0x1);_0x3a1a4e['startsWith']('\x20')&&(_0x3a1a4e=_0x3a1a4e[_0x1c805b(0x189)](0x1));switch(_0x591220){case _0x1c805b(0x194):_0x2e0c53[_0x1c805b(0x194)]=_0x3a1a4e;break;case'data':_0x2e0c53[_0x1c805b(0x18a)]=_0x2e0c53[_0x1c805b(0x18a)]?_0x2e0c53['data']+'\x0a'+_0x3a1a4e:_0x3a1a4e;break;case'id':_0x2e0c53['id']=_0x3a1a4e;break;}}}}finally{_0x4ba4c6[_0x1c805b(0x193)]();}}function parseSSEData(_0x18104a){const _0xdbfbfc=a86_0x4361;try{return JSON['parse'](_0x18104a);}catch(_0x66a3aa){throw new Error(_0xdbfbfc(0x18f)+_0x18104a,{'cause':_0x66a3aa});}}
@@ -1 +1 @@
1
- (function(_0x143fc9,_0x1e9160){const _0xc81d0b=a87_0x4acb,_0x2c7bc0=_0x143fc9();while(!![]){try{const _0x58aed4=-parseInt(_0xc81d0b(0x207))/0x1+-parseInt(_0xc81d0b(0x205))/0x2*(-parseInt(_0xc81d0b(0x1f3))/0x3)+-parseInt(_0xc81d0b(0x1fe))/0x4+parseInt(_0xc81d0b(0x1f7))/0x5+-parseInt(_0xc81d0b(0x206))/0x6*(-parseInt(_0xc81d0b(0x204))/0x7)+-parseInt(_0xc81d0b(0x1f5))/0x8+-parseInt(_0xc81d0b(0x1f4))/0x9*(-parseInt(_0xc81d0b(0x1f9))/0xa);if(_0x58aed4===_0x1e9160)break;else _0x2c7bc0['push'](_0x2c7bc0['shift']());}catch(_0x37025d){_0x2c7bc0['push'](_0x2c7bc0['shift']());}}}(a87_0x4c1b,0x1a327));import a87_0x54c074 from'string-width';export function stringWidth(_0xcf9c5c){return a87_0x54c074(_0xcf9c5c);}export function padEnd(_0x20c156,_0x92035f){const _0x3d0857=a87_0x4acb,_0x3b30fc=stringWidth(_0x20c156);if(_0x3b30fc>=_0x92035f)return _0x20c156;return _0x20c156+'\x20'[_0x3d0857(0x208)](_0x92035f-_0x3b30fc);}function a87_0x4c1b(){const _0x3b2cdd=['3PtOXti','2556mjexFm','664728RffRME','unknown','838570KwbWHH','trim','7430wwxrga','substring','\x5c$&','test','toString','618264ecNylc','toLowerCase','random','floor','env','padStart','303499evKQqF','175704JhJgkQ','6eJyhef','164975fUUxET','repeat','USERNAME','length','replace','USER','Cannot\x20escape\x20empty\x20string\x20literal'];a87_0x4c1b=function(){return _0x3b2cdd;};return a87_0x4c1b();}export function padStart(_0x4ec16d,_0x4e3352){const _0x34873b=a87_0x4acb,_0x1e2544=stringWidth(_0x4ec16d);if(_0x1e2544>=_0x4e3352)return _0x4ec16d;return'\x20'[_0x34873b(0x208)](_0x4e3352-_0x1e2544)+_0x4ec16d;}export function centerAlign(_0xa5e501,_0xb09867){const _0x307043=a87_0x4acb,_0x11048b=stringWidth(_0xa5e501);if(_0x11048b>_0xb09867){if(_0xb09867<=0x1)return'…'[_0x307043(0x1fa)](0x0,_0xb09867);let _0x305f04=_0xa5e501;while(stringWidth(_0x305f04+'…')>_0xb09867){_0x305f04=_0x305f04['slice'](0x0,-0x1);}return _0x305f04+'…';}if(_0x11048b===_0xb09867)return _0xa5e501;const _0x375244=_0xb09867-_0x11048b,_0x2db6f2=Math[_0x307043(0x201)](_0x375244/0x2),_0x53fe47=_0x375244-_0x2db6f2;return'\x20'[_0x307043(0x208)](_0x2db6f2)+_0xa5e501+'\x20'['repeat'](_0x53fe47);}function a87_0x4acb(_0x58aa1c,_0x44cd1e){const _0x4c1bd4=a87_0x4c1b();return a87_0x4acb=function(_0x4acb2b,_0x287a35){_0x4acb2b=_0x4acb2b-0x1f3;let _0x2965f2=_0x4c1bd4[_0x4acb2b];return _0x2965f2;},a87_0x4acb(_0x58aa1c,_0x44cd1e);}export function escapeStringLiteral(_0x4c5861){const _0x32b974=a87_0x4acb;if(!_0x4c5861||_0x4c5861[_0x32b974(0x1f8)]()[_0x32b974(0x20a)]===0x0)throw new Error(_0x32b974(0x20d));const _0x26ff4d=_0x4c5861[_0x32b974(0x20b)](/'/g,'\x27\x27');return'\x27'+_0x26ff4d+'\x27';}export function globToLike(_0x5bf058){const _0x49a08f=a87_0x4acb;let _0x79ec4f=_0x5bf058['replace'](/\\/g,'\x5c\x5c')[_0x49a08f(0x20b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x79ec4f=_0x79ec4f[_0x49a08f(0x20b)](/\*/g,'%')[_0x49a08f(0x20b)](/\?/g,'_'),_0x79ec4f;}export function buildLikePattern(_0x3202a8){const _0x21408d=a87_0x4acb;if(!_0x3202a8||_0x3202a8['trim']()[_0x21408d(0x20a)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x443136=globToLike(_0x3202a8),_0xf4ca13=_0x443136[_0x21408d(0x20b)](/'/g,'\x27\x27');return'\x27'+_0xf4ca13+'\x27';}export function matchGlobPattern(_0x90a1c,_0x39b5c7){const _0x40636e=a87_0x4acb,_0x4f2a33=_0x39b5c7['replace'](/[.+^${}()|[\]\\]/g,_0x40636e(0x1fb))['replace'](/\*/g,'.*')[_0x40636e(0x20b)](/\?/g,'.'),_0x5d8f1f=new RegExp('^'+_0x4f2a33+'$');return _0x5d8f1f[_0x40636e(0x1fc)](_0x90a1c);}export function getSanitizedUsername(){const _0x5dceb9=a87_0x4acb,_0x3cde66=process[_0x5dceb9(0x202)][_0x5dceb9(0x20c)]||process[_0x5dceb9(0x202)][_0x5dceb9(0x209)]||_0x5dceb9(0x1f6);return _0x3cde66[_0x5dceb9(0x20b)](/[^a-zA-Z0-9]/g,'')[_0x5dceb9(0x1ff)]();}export function generateRandomHex(){const _0x22fc24=a87_0x4acb,_0x20494f=Math[_0x22fc24(0x201)](Math[_0x22fc24(0x200)]()*0xfffff);return _0x20494f[_0x22fc24(0x1fd)](0x10)[_0x22fc24(0x203)](0x5,'0');}
1
+ (function(_0x2a5686,_0x35da65){const _0x2b6b35=a87_0x5208,_0x337626=_0x2a5686();while(!![]){try{const _0x577649=parseInt(_0x2b6b35(0xc0))/0x1+parseInt(_0x2b6b35(0xc7))/0x2+-parseInt(_0x2b6b35(0xbf))/0x3+-parseInt(_0x2b6b35(0xbb))/0x4*(-parseInt(_0x2b6b35(0xc5))/0x5)+-parseInt(_0x2b6b35(0xc6))/0x6+parseInt(_0x2b6b35(0xb4))/0x7*(-parseInt(_0x2b6b35(0xc1))/0x8)+parseInt(_0x2b6b35(0xaf))/0x9;if(_0x577649===_0x35da65)break;else _0x337626['push'](_0x337626['shift']());}catch(_0x57eec0){_0x337626['push'](_0x337626['shift']());}}}(a87_0x343c,0xf252c));function a87_0x343c(){const _0x3a252f=['unknown','length','410889ttjgOM','139716XeWYhd','16jiestU','random','\x5c$&','substring','250ofGxlY','7659840aMOGLD','1294148EAEZTr','18910305XoPFso','USER','USERNAME','trim','floor','5950091EfQpws','replace','toString','padStart','repeat','env','slice','97460NuQzfG','test'];a87_0x343c=function(){return _0x3a252f;};return a87_0x343c();}import a87_0x1c621c from'string-width';export function stringWidth(_0x40404a){return a87_0x1c621c(_0x40404a);}export function padEnd(_0x6cd66f,_0x11e3ff){const _0x15206d=stringWidth(_0x6cd66f);if(_0x15206d>=_0x11e3ff)return _0x6cd66f;return _0x6cd66f+'\x20'['repeat'](_0x11e3ff-_0x15206d);}export function padStart(_0x38e735,_0x2a9474){const _0x1e6a72=a87_0x5208,_0x127547=stringWidth(_0x38e735);if(_0x127547>=_0x2a9474)return _0x38e735;return'\x20'[_0x1e6a72(0xb8)](_0x2a9474-_0x127547)+_0x38e735;}export function centerAlign(_0x112385,_0x26a172){const _0xdde290=a87_0x5208,_0x1c438e=stringWidth(_0x112385);if(_0x1c438e>_0x26a172){if(_0x26a172<=0x1)return'…'[_0xdde290(0xc4)](0x0,_0x26a172);let _0x357cbe=_0x112385;while(stringWidth(_0x357cbe+'…')>_0x26a172){_0x357cbe=_0x357cbe[_0xdde290(0xba)](0x0,-0x1);}return _0x357cbe+'…';}if(_0x1c438e===_0x26a172)return _0x112385;const _0x20257c=_0x26a172-_0x1c438e,_0x3b252f=Math[_0xdde290(0xb3)](_0x20257c/0x2),_0x336683=_0x20257c-_0x3b252f;return'\x20'['repeat'](_0x3b252f)+_0x112385+'\x20'[_0xdde290(0xb8)](_0x336683);}export function escapeStringLiteral(_0x446dd1){const _0x85a123=a87_0x5208;if(!_0x446dd1||_0x446dd1[_0x85a123(0xb2)]()[_0x85a123(0xbe)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x1c2055=_0x446dd1[_0x85a123(0xb5)](/'/g,'\x27\x27');return'\x27'+_0x1c2055+'\x27';}export function globToLike(_0x5b323a){const _0x18282d=a87_0x5208;let _0x3daeba=_0x5b323a[_0x18282d(0xb5)](/\\/g,'\x5c\x5c')[_0x18282d(0xb5)](/%/g,'\x5c%')[_0x18282d(0xb5)](/_/g,'\x5c_');return _0x3daeba=_0x3daeba[_0x18282d(0xb5)](/\*/g,'%')[_0x18282d(0xb5)](/\?/g,'_'),_0x3daeba;}export function buildLikePattern(_0x46413e){const _0x3b17d9=a87_0x5208;if(!_0x46413e||_0x46413e['trim']()[_0x3b17d9(0xbe)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0xca98dd=globToLike(_0x46413e),_0x49ec49=_0xca98dd[_0x3b17d9(0xb5)](/'/g,'\x27\x27');return'\x27'+_0x49ec49+'\x27';}export function matchGlobPattern(_0x4646de,_0xbdd6b3){const _0x271c17=a87_0x5208,_0x3b6346=_0xbdd6b3[_0x271c17(0xb5)](/[.+^${}()|[\]\\]/g,_0x271c17(0xc3))[_0x271c17(0xb5)](/\*/g,'.*')[_0x271c17(0xb5)](/\?/g,'.'),_0x2e75d7=new RegExp('^'+_0x3b6346+'$');return _0x2e75d7[_0x271c17(0xbc)](_0x4646de);}function a87_0x5208(_0xb6b50f,_0x2fca1c){const _0x343ca3=a87_0x343c();return a87_0x5208=function(_0x5208f4,_0x23351b){_0x5208f4=_0x5208f4-0xaf;let _0x49e97f=_0x343ca3[_0x5208f4];return _0x49e97f;},a87_0x5208(_0xb6b50f,_0x2fca1c);}export function getSanitizedUsername(){const _0x1f5b1e=a87_0x5208,_0x3bf44e=process['env'][_0x1f5b1e(0xb0)]||process[_0x1f5b1e(0xb9)][_0x1f5b1e(0xb1)]||_0x1f5b1e(0xbd);return _0x3bf44e[_0x1f5b1e(0xb5)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x190958=a87_0x5208,_0x29efff=Math[_0x190958(0xb3)](Math[_0x190958(0xc2)]()*0xfffff);return _0x29efff[_0x190958(0xb6)](0x10)[_0x190958(0xb7)](0x5,'0');}