@treasuredata/tdx 0.7.0 → 0.7.1

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 (99) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-api-client.js +1 -1
  11. package/dist/client/trino-api-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/api-command.js +1 -1
  15. package/dist/commands/auth-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-usage-command.js +1 -1
  20. package/dist/commands/command.js +1 -1
  21. package/dist/commands/context-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/job-command.js +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/llm-proxy.js +1 -1
  28. package/dist/commands/parent-segment-command.js +1 -1
  29. package/dist/commands/profiles-command.js +1 -1
  30. package/dist/commands/query-command.js +1 -1
  31. package/dist/commands/segment-command.js +1 -1
  32. package/dist/commands/segment-create-command.js +1 -1
  33. package/dist/commands/segment-fields-command.js +1 -1
  34. package/dist/commands/segment-pwd-command.js +1 -1
  35. package/dist/commands/segment-update-command.js +1 -1
  36. package/dist/commands/segment-use-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/tables.js +1 -1
  40. package/dist/commands/use-command.js +1 -1
  41. package/dist/commands/workflow-command.js +1 -1
  42. package/dist/core/auth.js +1 -1
  43. package/dist/core/config.js +1 -1
  44. package/dist/core/credential-cache.js +1 -1
  45. package/dist/core/global-context.js +1 -1
  46. package/dist/core/keychain.js +1 -1
  47. package/dist/core/profile.js +1 -1
  48. package/dist/core/project-config.js +1 -1
  49. package/dist/core/session.js +1 -1
  50. package/dist/index.js +1 -1
  51. package/dist/proxy/anthropic-adapter.js +1 -1
  52. package/dist/proxy/claude-usage-tracker.js +1 -1
  53. package/dist/proxy/context-signature.js +1 -1
  54. package/dist/proxy/conversation-utils.js +1 -1
  55. package/dist/proxy/server.js +1 -1
  56. package/dist/proxy/session-cache.js +1 -1
  57. package/dist/sdk/api.js +1 -1
  58. package/dist/sdk/engage.js +1 -1
  59. package/dist/sdk/errors.js +1 -1
  60. package/dist/sdk/index.js +1 -1
  61. package/dist/sdk/job.js +1 -1
  62. package/dist/sdk/llm.js +1 -1
  63. package/dist/sdk/query.js +1 -1
  64. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  65. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  66. package/dist/sdk/segment.js +1 -1
  67. package/dist/sdk/workflow.js +1 -1
  68. package/dist/types/endpoints.js +1 -1
  69. package/dist/types/index.js +1 -1
  70. package/dist/utils/agent-ref-parser.js +1 -1
  71. package/dist/utils/chat-cache.js +1 -1
  72. package/dist/utils/colors.js +1 -1
  73. package/dist/utils/command-output.js +1 -1
  74. package/dist/utils/constants.js +1 -1
  75. package/dist/utils/diff.js +1 -1
  76. package/dist/utils/fields-display.js +1 -1
  77. package/dist/utils/file-permissions.js +1 -1
  78. package/dist/utils/format-detector.js +1 -1
  79. package/dist/utils/formatters.js +1 -1
  80. package/dist/utils/json-loader.js +1 -1
  81. package/dist/utils/llm-backup-utils.js +1 -1
  82. package/dist/utils/model-aliases.js +1 -1
  83. package/dist/utils/model-factors.js +1 -1
  84. package/dist/utils/option-validation.js +1 -1
  85. package/dist/utils/port.js +1 -1
  86. package/dist/utils/process.js +1 -1
  87. package/dist/utils/prompt.js +1 -1
  88. package/dist/utils/segment-path-parser.js +1 -1
  89. package/dist/utils/segment-ref-parser.js +1 -1
  90. package/dist/utils/spinner.js +1 -1
  91. package/dist/utils/sql-parser.js +1 -1
  92. package/dist/utils/sse-parser.js +1 -1
  93. package/dist/utils/string-utils.js +1 -1
  94. package/dist/utils/table-ref-parser.js +1 -1
  95. package/dist/utils/tdx-logger.js +1 -1
  96. package/dist/utils/tree-formatter.js +1 -1
  97. package/dist/utils/version-check.js +1 -1
  98. package/dist/utils/workflow-utils.js +1 -1
  99. package/package.json +4 -2
@@ -1 +1 @@
1
- (function(_0x1f720b,_0x33c485){const _0x532408=a77_0x2afa,_0xaf558a=_0x1f720b();while(!![]){try{const _0x44fbf6=-parseInt(_0x532408(0x7c))/0x1*(parseInt(_0x532408(0x77))/0x2)+parseInt(_0x532408(0x78))/0x3+-parseInt(_0x532408(0x7a))/0x4*(parseInt(_0x532408(0x73))/0x5)+-parseInt(_0x532408(0x71))/0x6+-parseInt(_0x532408(0x72))/0x7*(-parseInt(_0x532408(0x7d))/0x8)+parseInt(_0x532408(0x79))/0x9+-parseInt(_0x532408(0x7f))/0xa*(-parseInt(_0x532408(0x75))/0xb);if(_0x44fbf6===_0x33c485)break;else _0xaf558a['push'](_0xaf558a['shift']());}catch(_0x35ea9a){_0xaf558a['push'](_0xaf558a['shift']());}}}(a77_0x3ffb,0x489ab));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x503b12=a77_0x2afa;return join(process[_0x503b12(0x74)](),_0x503b12(0x70),_0x503b12(0x6f));}function getLastChatIdPath(){const _0x4e6425=a77_0x2afa;return join(getCacheDir(),_0x4e6425(0x7b));}function a77_0x2afa(_0x4395ba,_0xb885ef){const _0x3ffbe1=a77_0x3ffb();return a77_0x2afa=function(_0x2afaa3,_0x2d00a4){_0x2afaa3=_0x2afaa3-0x6f;let _0x55c2fe=_0x3ffbe1[_0x2afaa3];return _0x55c2fe;},a77_0x2afa(_0x4395ba,_0xb885ef);}function ensureCacheDir(){const _0x57bf54=getCacheDir();!existsSync(_0x57bf54)&&mkdirSync(_0x57bf54,{'recursive':!![]});}export function saveLastChatId(_0x1d064e){const _0x56523c=a77_0x2afa;ensureCacheDir();const _0x592c85=getLastChatIdPath();writeFileSync(_0x592c85,_0x1d064e,_0x56523c(0x76));}export function loadLastChatId(){const _0x2671be=a77_0x2afa,_0x1301ac=getLastChatIdPath();if(!existsSync(_0x1301ac))return undefined;try{const _0x30c58a=readFileSync(_0x1301ac,_0x2671be(0x76))[_0x2671be(0x7e)]();return _0x30c58a||undefined;}catch{return undefined;}}function a77_0x3ffb(){const _0x3f9409=['4jvhsla','last_chat_id','19fdJbRe','31288dRabsL','trim','10TLJRQC','tdx','.cache','3036192ZQVzhS','511GkKbvZ','1570035ahhdMZ','cwd','5842903LOjJKw','utf-8','39532ifSDCl','1783959azXnxI','734859DyHwtf'];a77_0x3ffb=function(){return _0x3f9409;};return a77_0x3ffb();}export function clearLastChatId(){const _0x342a1b=a77_0x2afa,_0x52f020=getLastChatIdPath();if(existsSync(_0x52f020))try{writeFileSync(_0x52f020,'',_0x342a1b(0x76));}catch{}}
1
+ (function(_0x176d60,_0x3d2b10){const _0xc40373=a77_0x2bf3,_0xc42536=_0x176d60();while(!![]){try{const _0x1f67a7=-parseInt(_0xc40373(0x11a))/0x1*(-parseInt(_0xc40373(0x118))/0x2)+-parseInt(_0xc40373(0x116))/0x3+-parseInt(_0xc40373(0x125))/0x4*(-parseInt(_0xc40373(0x11b))/0x5)+-parseInt(_0xc40373(0x11e))/0x6*(-parseInt(_0xc40373(0x119))/0x7)+-parseInt(_0xc40373(0x11f))/0x8+-parseInt(_0xc40373(0x117))/0x9*(parseInt(_0xc40373(0x115))/0xa)+parseInt(_0xc40373(0x124))/0xb*(parseInt(_0xc40373(0x123))/0xc);if(_0x1f67a7===_0x3d2b10)break;else _0xc42536['push'](_0xc42536['shift']());}catch(_0x56c41c){_0xc42536['push'](_0xc42536['shift']());}}}(a77_0x78a7,0xb8249));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function a77_0x78a7(){const _0x14b281=['3680034ZrQSYw','9046888ScDuCN','utf-8','.cache','last_chat_id','69792SbtHNm','693fsUJhu','280292DZSgvR','9919310HDutTH','4035282lGalhb','9tvBhkX','376poiowo','14Hpowzn','6157DGKtPo','105yJXmeb','cwd','tdx'];a77_0x78a7=function(){return _0x14b281;};return a77_0x78a7();}function getCacheDir(){const _0x10395e=a77_0x2bf3;return join(process[_0x10395e(0x11c)](),_0x10395e(0x121),_0x10395e(0x11d));}function getLastChatIdPath(){const _0x33bf56=a77_0x2bf3;return join(getCacheDir(),_0x33bf56(0x122));}function ensureCacheDir(){const _0x363e25=getCacheDir();!existsSync(_0x363e25)&&mkdirSync(_0x363e25,{'recursive':!![]});}export function saveLastChatId(_0x2a00d7){const _0x20af20=a77_0x2bf3;ensureCacheDir();const _0x3f32d3=getLastChatIdPath();writeFileSync(_0x3f32d3,_0x2a00d7,_0x20af20(0x120));}export function loadLastChatId(){const _0x41f124=getLastChatIdPath();if(!existsSync(_0x41f124))return undefined;try{const _0x1a6bf6=readFileSync(_0x41f124,'utf-8')['trim']();return _0x1a6bf6||undefined;}catch{return undefined;}}function a77_0x2bf3(_0x4ae17a,_0xa413ee){const _0x78a7ef=a77_0x78a7();return a77_0x2bf3=function(_0x2bf33b,_0x5db660){_0x2bf33b=_0x2bf33b-0x115;let _0x23f4c9=_0x78a7ef[_0x2bf33b];return _0x23f4c9;},a77_0x2bf3(_0x4ae17a,_0xa413ee);}export function clearLastChatId(){const _0x254cd6=a77_0x2bf3,_0x427b5a=getLastChatIdPath();if(existsSync(_0x427b5a))try{writeFileSync(_0x427b5a,'',_0x254cd6(0x120));}catch{}}
@@ -1 +1 @@
1
- (function(_0x2c8e8a,_0x1d2fd3){const _0x32728a=a78_0x5dde,_0x237acd=_0x2c8e8a();while(!![]){try{const _0x266b8e=-parseInt(_0x32728a(0x173))/0x1*(parseInt(_0x32728a(0x166))/0x2)+-parseInt(_0x32728a(0x16a))/0x3+parseInt(_0x32728a(0x181))/0x4*(parseInt(_0x32728a(0x171))/0x5)+parseInt(_0x32728a(0x180))/0x6*(-parseInt(_0x32728a(0x167))/0x7)+parseInt(_0x32728a(0x177))/0x8+-parseInt(_0x32728a(0x16d))/0x9+parseInt(_0x32728a(0x172))/0xa*(parseInt(_0x32728a(0x174))/0xb);if(_0x266b8e===_0x1d2fd3)break;else _0x237acd['push'](_0x237acd['shift']());}catch(_0x2a07ba){_0x237acd['push'](_0x237acd['shift']());}}}(a78_0x4886,0x265e1));import{Chalk}from'chalk';export function shouldUseColor(_0x5b360a={}){const _0x38a669=a78_0x5dde;if(_0x5b360a['noColor']===!![])return![];if(_0x5b360a[_0x38a669(0x184)]===!![])return!![];if(process[_0x38a669(0x176)][_0x38a669(0x16f)]!==undefined)return![];return process[_0x38a669(0x17a)][_0x38a669(0x185)]??![];}export function getChalk(_0x55c525={}){if(shouldUseColor(_0x55c525))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x13fef7,_0x61639c={}){const _0x6f1686=a78_0x5dde;return getChalk(_0x61639c)[_0x6f1686(0x17f)](_0x13fef7);}export function colorHeader(_0xc7df06,_0x2d266={}){const _0x1fc153=a78_0x5dde;return getChalk(_0x2d266)[_0x1fc153(0x17e)](_0xc7df06);}export function colorType(_0x4f063d,_0x292d15={}){const _0x5c8ec4=a78_0x5dde;return getChalk(_0x292d15)[_0x5c8ec4(0x17f)](_0x4f063d);}export function colorJSONKey(_0x2219dc,_0x396ae6={}){const _0x1e48ac=a78_0x5dde;return getChalk(_0x396ae6)[_0x1e48ac(0x179)](_0x2219dc);}export function colorJSONString(_0x3a5251,_0x294535={}){const _0x472dbd=a78_0x5dde;return getChalk(_0x294535)[_0x472dbd(0x17c)](_0x3a5251);}function a78_0x4886(){const _0x2316c6=['dim','439152YwFKYR','4RjdWKe','null','map','color','isTTY','string','17654cRIPVz','14xAxfoi','number','length','691971SEZqTo','object','entries','2504070yhlBTm','stringify','NO_COLOR','boolean','1329945iSJoCu','1239770aCgqCc','25rwdfWV','44NjvFXZ','isArray','env','2169616PuvmXg','join','blue','stdout','yellow','green','repeat','cyan'];a78_0x4886=function(){return _0x2316c6;};return a78_0x4886();}function a78_0x5dde(_0x36de31,_0xeaa201){const _0x4886a6=a78_0x4886();return a78_0x5dde=function(_0x5dde77,_0x123b74){_0x5dde77=_0x5dde77-0x166;let _0xba99d3=_0x4886a6[_0x5dde77];return _0xba99d3;},a78_0x5dde(_0x36de31,_0xeaa201);}export function colorJSONNumber(_0x553505,_0x510bc9={}){return getChalk(_0x510bc9)['cyan'](_0x553505);}export function colorJSONBoolean(_0x3d4fc1,_0x3d1397={}){const _0x46e34e=a78_0x5dde;return getChalk(_0x3d1397)[_0x46e34e(0x17b)](_0x3d4fc1);}export function colorJSONNull(_0x27201e,_0x429277={}){return getChalk(_0x429277)['dim'](_0x27201e);}export function colorizeJSONCompact(_0x2b453e,_0x46abe4={}){const _0x4c4072=a78_0x5dde;if(!shouldUseColor(_0x46abe4))return JSON['stringify'](_0x2b453e);if(_0x2b453e===null)return colorJSONNull('null',_0x46abe4);if(typeof _0x2b453e===_0x4c4072(0x170))return colorJSONBoolean(String(_0x2b453e),_0x46abe4);if(typeof _0x2b453e===_0x4c4072(0x168))return colorJSONNumber(String(_0x2b453e),_0x46abe4);if(typeof _0x2b453e===_0x4c4072(0x186))return colorJSONString(JSON[_0x4c4072(0x16e)](_0x2b453e),_0x46abe4);if(Array[_0x4c4072(0x175)](_0x2b453e)){if(_0x2b453e[_0x4c4072(0x169)]===0x0)return'[]';const _0x8250d4=_0x2b453e[_0x4c4072(0x183)](_0x234f28=>colorizeJSONCompact(_0x234f28,_0x46abe4));return'['+_0x8250d4[_0x4c4072(0x178)](',')+']';}if(typeof _0x2b453e===_0x4c4072(0x16b)){const _0x113d3f=Object[_0x4c4072(0x16c)](_0x2b453e);if(_0x113d3f[_0x4c4072(0x169)]===0x0)return'{}';const _0x2325a3=_0x113d3f['map'](([_0x548f2c,_0x18fe00])=>{const _0x8709b=_0x4c4072,_0x5a53ce=colorJSONKey(JSON[_0x8709b(0x16e)](_0x548f2c),_0x46abe4),_0x2e8a13=colorizeJSONCompact(_0x18fe00,_0x46abe4);return _0x5a53ce+':'+_0x2e8a13;});return'{'+_0x2325a3[_0x4c4072(0x178)](',')+'}';}return String(_0x2b453e);}export function colorizeJSON(_0x322828,_0x2028b1={},_0x144542=0x0){const _0x529697=a78_0x5dde;if(!shouldUseColor(_0x2028b1))return JSON['stringify'](_0x322828,null,0x2);const _0x297898='\x20'[_0x529697(0x17d)](_0x144542),_0x2a0683=_0x144542+0x2;if(_0x322828===null)return colorJSONNull(_0x529697(0x182),_0x2028b1);if(typeof _0x322828===_0x529697(0x170))return colorJSONBoolean(String(_0x322828),_0x2028b1);if(typeof _0x322828==='number')return colorJSONNumber(String(_0x322828),_0x2028b1);if(typeof _0x322828===_0x529697(0x186))return colorJSONString(JSON[_0x529697(0x16e)](_0x322828),_0x2028b1);if(Array[_0x529697(0x175)](_0x322828)){if(_0x322828[_0x529697(0x169)]===0x0)return'[]';const _0xbc9c14=_0x322828[_0x529697(0x183)](_0x23bf9d=>{const _0x2d1ac1=colorizeJSON(_0x23bf9d,_0x2028b1,_0x2a0683);return''+'\x20'['repeat'](_0x2a0683)+_0x2d1ac1;});return'[\x0a'+_0xbc9c14[_0x529697(0x178)](',\x0a')+('\x0a'+_0x297898+']');}if(typeof _0x322828===_0x529697(0x16b)){const _0x5d9b3d=Object[_0x529697(0x16c)](_0x322828);if(_0x5d9b3d['length']===0x0)return'{}';const _0x1924ed=_0x5d9b3d['map'](([_0x355a9c,_0x68191f])=>{const _0xb9332=_0x529697,_0x53b9e4=colorJSONKey(JSON['stringify'](_0x355a9c),_0x2028b1),_0x462cad=colorizeJSON(_0x68191f,_0x2028b1,_0x2a0683);return''+'\x20'[_0xb9332(0x17d)](_0x2a0683)+_0x53b9e4+':\x20'+_0x462cad;});return'{\x0a'+_0x1924ed[_0x529697(0x178)](',\x0a')+('\x0a'+_0x297898+'}');}return String(_0x322828);}
1
+ function a78_0x1cc8(){const _0x4b674b=['noColor','env','length','entries','1241160JQSJtO','blue','isTTY','map','dim','1302702ZXoJKa','number','NO_COLOR','color','35521890ZpBffd','3zepoyE','213846poQleH','3942076pblVLQ','object','string','join','806992nqBqTb','isArray','null','yellow','2061608MWheev','repeat','9ePkypi','14WVJIeJ','stringify','boolean'];a78_0x1cc8=function(){return _0x4b674b;};return a78_0x1cc8();}(function(_0x5d5c6,_0x1834e8){const _0x5a3824=a78_0x1165,_0x297fa5=_0x5d5c6();while(!![]){try{const _0x1f7811=parseInt(_0x5a3824(0x89))/0x1*(-parseInt(_0x5a3824(0x71))/0x2)+-parseInt(_0x5a3824(0x84))/0x3+-parseInt(_0x5a3824(0x8b))/0x4+parseInt(_0x5a3824(0x7f))/0x5+-parseInt(_0x5a3824(0x8a))/0x6*(parseInt(_0x5a3824(0x78))/0x7)+-parseInt(_0x5a3824(0x75))/0x8*(parseInt(_0x5a3824(0x77))/0x9)+parseInt(_0x5a3824(0x88))/0xa;if(_0x1f7811===_0x1834e8)break;else _0x297fa5['push'](_0x297fa5['shift']());}catch(_0x2b856a){_0x297fa5['push'](_0x297fa5['shift']());}}}(a78_0x1cc8,0xcd5ed));import{Chalk}from'chalk';export function shouldUseColor(_0x3aba7f={}){const _0x1a29b7=a78_0x1165;if(_0x3aba7f[_0x1a29b7(0x7b)]===!![])return![];if(_0x3aba7f[_0x1a29b7(0x87)]===!![])return!![];if(process[_0x1a29b7(0x7c)][_0x1a29b7(0x86)]!==undefined)return![];return process['stdout'][_0x1a29b7(0x81)]??![];}export function getChalk(_0xe58b76={}){if(shouldUseColor(_0xe58b76))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x56bc87,_0x3e48ee={}){return getChalk(_0x3e48ee)['dim'](_0x56bc87);}export function colorHeader(_0x227ba0,_0x1ab603={}){return getChalk(_0x1ab603)['cyan'](_0x227ba0);}export function colorType(_0xdb2e1d,_0x53cb46={}){const _0x513f53=a78_0x1165;return getChalk(_0x53cb46)[_0x513f53(0x83)](_0xdb2e1d);}export function colorJSONKey(_0x4c3b32,_0x20c243={}){const _0x5e8794=a78_0x1165;return getChalk(_0x20c243)[_0x5e8794(0x80)](_0x4c3b32);}export function colorJSONString(_0x100271,_0x5a444f={}){return getChalk(_0x5a444f)['green'](_0x100271);}export function colorJSONNumber(_0x3ee543,_0x36d6bf={}){return getChalk(_0x36d6bf)['cyan'](_0x3ee543);}export function colorJSONBoolean(_0x2d04a7,_0x18a9ed={}){const _0x29c0e9=a78_0x1165;return getChalk(_0x18a9ed)[_0x29c0e9(0x74)](_0x2d04a7);}function a78_0x1165(_0x2b3a19,_0x70d87c){const _0x1cc86f=a78_0x1cc8();return a78_0x1165=function(_0x1165d7,_0x4e32c4){_0x1165d7=_0x1165d7-0x70;let _0x41349d=_0x1cc86f[_0x1165d7];return _0x41349d;},a78_0x1165(_0x2b3a19,_0x70d87c);}export function colorJSONNull(_0x515a33,_0x35b775={}){return getChalk(_0x35b775)['dim'](_0x515a33);}export function colorizeJSONCompact(_0x5ec2af,_0x24b717={}){const _0x423a61=a78_0x1165;if(!shouldUseColor(_0x24b717))return JSON['stringify'](_0x5ec2af);if(_0x5ec2af===null)return colorJSONNull(_0x423a61(0x73),_0x24b717);if(typeof _0x5ec2af===_0x423a61(0x7a))return colorJSONBoolean(String(_0x5ec2af),_0x24b717);if(typeof _0x5ec2af===_0x423a61(0x85))return colorJSONNumber(String(_0x5ec2af),_0x24b717);if(typeof _0x5ec2af===_0x423a61(0x8d))return colorJSONString(JSON['stringify'](_0x5ec2af),_0x24b717);if(Array[_0x423a61(0x72)](_0x5ec2af)){if(_0x5ec2af[_0x423a61(0x7d)]===0x0)return'[]';const _0x562ab0=_0x5ec2af['map'](_0x2c560a=>colorizeJSONCompact(_0x2c560a,_0x24b717));return'['+_0x562ab0[_0x423a61(0x70)](',')+']';}if(typeof _0x5ec2af===_0x423a61(0x8c)){const _0x413016=Object[_0x423a61(0x7e)](_0x5ec2af);if(_0x413016[_0x423a61(0x7d)]===0x0)return'{}';const _0x49320e=_0x413016[_0x423a61(0x82)](([_0x362aaf,_0x5bf9cc])=>{const _0x18352c=colorJSONKey(JSON['stringify'](_0x362aaf),_0x24b717),_0x44fb91=colorizeJSONCompact(_0x5bf9cc,_0x24b717);return _0x18352c+':'+_0x44fb91;});return'{'+_0x49320e[_0x423a61(0x70)](',')+'}';}return String(_0x5ec2af);}export function colorizeJSON(_0x1b2c3f,_0x3470d4={},_0x43110d=0x0){const _0x9712a=a78_0x1165;if(!shouldUseColor(_0x3470d4))return JSON['stringify'](_0x1b2c3f,null,0x2);const _0x4d3b76='\x20'[_0x9712a(0x76)](_0x43110d),_0x28b97e=_0x43110d+0x2;if(_0x1b2c3f===null)return colorJSONNull(_0x9712a(0x73),_0x3470d4);if(typeof _0x1b2c3f==='boolean')return colorJSONBoolean(String(_0x1b2c3f),_0x3470d4);if(typeof _0x1b2c3f==='number')return colorJSONNumber(String(_0x1b2c3f),_0x3470d4);if(typeof _0x1b2c3f===_0x9712a(0x8d))return colorJSONString(JSON[_0x9712a(0x79)](_0x1b2c3f),_0x3470d4);if(Array[_0x9712a(0x72)](_0x1b2c3f)){if(_0x1b2c3f['length']===0x0)return'[]';const _0x2ae509=_0x1b2c3f['map'](_0xf7edde=>{const _0x3a687d=_0x9712a,_0x254635=colorizeJSON(_0xf7edde,_0x3470d4,_0x28b97e);return''+'\x20'[_0x3a687d(0x76)](_0x28b97e)+_0x254635;});return'[\x0a'+_0x2ae509[_0x9712a(0x70)](',\x0a')+('\x0a'+_0x4d3b76+']');}if(typeof _0x1b2c3f===_0x9712a(0x8c)){const _0x4ff49a=Object[_0x9712a(0x7e)](_0x1b2c3f);if(_0x4ff49a[_0x9712a(0x7d)]===0x0)return'{}';const _0x1340c1=_0x4ff49a[_0x9712a(0x82)](([_0x571806,_0x562506])=>{const _0x12a442=colorJSONKey(JSON['stringify'](_0x571806),_0x3470d4),_0x4946c1=colorizeJSON(_0x562506,_0x3470d4,_0x28b97e);return''+'\x20'['repeat'](_0x28b97e)+_0x12a442+':\x20'+_0x4946c1;});return'{\x0a'+_0x1340c1[_0x9712a(0x70)](',\x0a')+('\x0a'+_0x4d3b76+'}');}return String(_0x1b2c3f);}
@@ -1 +1 @@
1
- (function(_0x195029,_0x1dabbb){const _0x27889c=a79_0x4fff,_0xcd3a5=_0x195029();while(!![]){try{const _0x3cb13c=-parseInt(_0x27889c(0x217))/0x1*(-parseInt(_0x27889c(0x1e8))/0x2)+parseInt(_0x27889c(0x214))/0x3*(-parseInt(_0x27889c(0x1ec))/0x4)+parseInt(_0x27889c(0x203))/0x5*(-parseInt(_0x27889c(0x202))/0x6)+parseInt(_0x27889c(0x20c))/0x7+parseInt(_0x27889c(0x20e))/0x8*(-parseInt(_0x27889c(0x205))/0x9)+parseInt(_0x27889c(0x1d9))/0xa+parseInt(_0x27889c(0x21b))/0xb;if(_0x3cb13c===_0x1dabbb)break;else _0xcd3a5['push'](_0xcd3a5['shift']());}catch(_0x5d1008){_0xcd3a5['push'](_0xcd3a5['shift']());}}}(a79_0x32e5,0x84161));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a79_0x3963f6 from'chalk';function a79_0x32e5(){const _0x895ec9=['isInteger','-FXRSn','json','keys','error','number','spawn','debug','query','1507314OzXyVM','5EoeGpF','boolean','9731709hlSGKA','object','map','[error]','push','[rule]','─┴─','2715412YmzxyP','format','8RaefHp','length','limit','entries','log','tsv','153606rtEUYD','forEach','stdout','2289LEGHWC','inherit','jsonl','No\x20data','13241382loeDGL','pipe','stderr','bold','2983760DcbIYg','[query]','table','bigint','blue','noColor','resolve','[logs]','red','max','cmdout','repeat','split','magenta','double','254LwVTpO','[params]','end','sdk-result','24Xzibvx','output','stringify','yellow','join','varchar','rule','padEnd','trim','stdin','filter','─┬─','params'];a79_0x32e5=function(){return _0x895ec9;};return a79_0x32e5();}import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x74ae2){const _0x248879=a79_0x4fff;return{'format':_0x74ae2['format']||'table','output':_0x74ae2['output']||'','limit':_0x74ae2[_0x248879(0x210)],'color':_0x74ae2['color'],'noColor':_0x74ae2[_0x248879(0x1de)]};}function convertSDKResultToQueryResult(_0x70516f){const _0x387396=a79_0x4fff,_0x4a5f9a=[];if(_0x70516f['length']>0x0){const _0x56642f=_0x70516f[0x0];for(const [_0x272e2b,_0x4fd170]of Object['entries'](_0x56642f)){let _0x530889=_0x387396(0x1f1);if(typeof _0x4fd170===_0x387396(0x1fe))_0x530889=Number[_0x387396(0x1f9)](_0x4fd170)?_0x387396(0x1dc):_0x387396(0x1e7);else{if(typeof _0x4fd170===_0x387396(0x204))_0x530889=_0x387396(0x204);else _0x4fd170===null&&(_0x530889=_0x387396(0x1f1));}_0x4a5f9a[_0x387396(0x209)]({'name':_0x272e2b,'type':_0x530889});}}return{'queryId':_0x387396(0x1eb),'columns':_0x4a5f9a,'data':_0x70516f,'stats':{'state':'FINISHED','queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x70516f[_0x387396(0x20f)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x200b79,_0x4a0daa){const _0x1deae0=convertSDKResultToQueryResult(_0x200b79);return formatQueryOutput(_0x1deae0,_0x4a0daa);}function a79_0x4fff(_0x543da1,_0x5311c8){const _0x32e5f6=a79_0x32e5();return a79_0x4fff=function(_0x4ffff6,_0x16665f){_0x4ffff6=_0x4ffff6-0x1d7;let _0x2b74c5=_0x32e5f6[_0x4ffff6];return _0x2b74c5;},a79_0x4fff(_0x543da1,_0x5311c8);}export async function formatQueryOutput(_0x2b9d9c,_0x5e1635){const _0x5f3c1a=a79_0x4fff,{format:_0x3840f5,limit:_0x36711c,output:_0x537b4f,color:_0x100b72,noColor:_0x23fa1b}=_0x5e1635,_0x814007=Boolean(_0x537b4f)&&!_0x100b72,_0x502d1d={'color':_0x100b72,'noColor':_0x23fa1b||_0x814007};if(_0x3840f5===_0x5f3c1a(0x1db)){const _0x3a3927=shouldUseLess(_0x3840f5,_0x537b4f);return formatAsTable(_0x2b9d9c,_0x36711c,_0x3a3927,_0x502d1d);}else{if(_0x3840f5==='json')return formatAsJSON(_0x2b9d9c,_0x502d1d);else return _0x3840f5==='jsonl'?formatAsJSONL(_0x2b9d9c,_0x502d1d):formatQueryResult(_0x2b9d9c,_0x3840f5);}}function shouldUseLess(_0x344eac,_0x31669f){const _0x16d107=a79_0x4fff;return _0x344eac==='table'&&process[_0x16d107(0x216)]['isTTY']&&!_0x31669f;}export function resolveOutputOptions(_0x360144){const _0x3a20af=a79_0x4fff,_0x3133bf=resolveOutputFormat(_0x360144['format'],_0x360144['output'],_0x3a20af(0x1db));let _0x2039cc=typeof _0x360144[_0x3a20af(0x210)]===_0x3a20af(0x1fe)?_0x360144[_0x3a20af(0x210)]:parseInt(_0x360144['limit']||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x22c3c8=_0x360144[_0x3a20af(0x1ed)]||'';return shouldUseLess(_0x3133bf,_0x22c3c8)&&(_0x2039cc=Infinity),{'format':_0x3133bf,'output':_0x22c3c8,'limit':_0x2039cc,'color':_0x360144['color'],'noColor':_0x360144[_0x3a20af(0x1de)]};}export function writeOutput(_0x251cef,_0x37914b,_0x322b50){const _0x567c74=a79_0x4fff;return _0x37914b?(writeFileSync(_0x37914b,_0x251cef),console[_0x567c74(0x1fd)]('Results\x20saved\x20to\x20'+_0x37914b),Promise['resolve']()):shouldUseLess(_0x322b50||'','')?new Promise(_0x5ef686=>{const _0x11d469=_0x567c74,_0x10e5a0=spawn('less',[_0x11d469(0x1fa)],{'stdio':[_0x11d469(0x21c),'inherit',_0x11d469(0x218)]});let _0x1b54b8=![];_0x10e5a0['on']('error',()=>{const _0x5ce35a=_0x11d469;!_0x1b54b8&&(_0x1b54b8=!![],console[_0x5ce35a(0x212)](_0x251cef),_0x5ef686());}),_0x10e5a0['on']('close',()=>{!_0x1b54b8&&(_0x1b54b8=!![],_0x5ef686());}),_0x10e5a0['on'](_0x11d469(0x1ff),()=>{const _0x15cd24=_0x11d469;!_0x1b54b8&&_0x10e5a0[_0x15cd24(0x1f5)]&&(_0x10e5a0[_0x15cd24(0x1f5)]['on'](_0x15cd24(0x1fd),()=>{}),_0x10e5a0['stdin']['write'](_0x251cef),_0x10e5a0[_0x15cd24(0x1f5)][_0x15cd24(0x1ea)]());}),!_0x10e5a0['stdin']&&(!_0x1b54b8&&(_0x1b54b8=!![],console[_0x11d469(0x212)](_0x251cef),_0x5ef686()));}):(console[_0x567c74(0x212)](_0x251cef),Promise[_0x567c74(0x1df)]());}export async function handleSDKOutput(_0x12a779,_0x1e6103){const _0xfd86e5=a79_0x4fff,_0x29c37a=resolveOutputOptions(_0x1e6103),_0x24162b=await formatSDKOutput(_0x12a779,_0x29c37a);await writeOutput(_0x24162b,_0x29c37a[_0xfd86e5(0x1ed)]||undefined,_0x29c37a[_0xfd86e5(0x20d)]);}export async function handleQueryOutput(_0x37ff8b,_0x67ab2a){const _0x3157c9=a79_0x4fff,_0x559f71=resolveOutputOptions(_0x67ab2a),_0x4665cf=await formatQueryOutput(_0x37ff8b,_0x559f71);await writeOutput(_0x4665cf,_0x559f71[_0x3157c9(0x1ed)]||undefined,_0x559f71[_0x3157c9(0x20d)]);}async function formatSingleObject(_0x4bfdea,_0x11abe6){const _0x302fa3=a79_0x4fff,{format:_0x3419cd,color:_0x2cb0c2,noColor:_0x9482b2}=_0x11abe6,_0x8b83cb={'color':_0x2cb0c2,'noColor':_0x9482b2};if(_0x3419cd===_0x302fa3(0x1fb)){if(shouldUseColor(_0x8b83cb))return colorizeJSON(_0x4bfdea,_0x8b83cb);return JSON['stringify'](_0x4bfdea,null,0x2);}else{if(_0x3419cd===_0x302fa3(0x219)){if(shouldUseColor(_0x8b83cb))return colorizeJSONCompact(_0x4bfdea,_0x8b83cb);return JSON[_0x302fa3(0x1ee)](_0x4bfdea);}else{if(_0x3419cd===_0x302fa3(0x213))return Object[_0x302fa3(0x211)](_0x4bfdea)[_0x302fa3(0x207)](([_0x201339,_0x4175f0])=>_0x201339+'\x09'+_0x4175f0)[_0x302fa3(0x1f0)]('\x0a');else{const _0x3faf7e=Object[_0x302fa3(0x211)](_0x4bfdea);if(_0x3faf7e[_0x302fa3(0x20f)]===0x0)return _0x302fa3(0x21a);const _0x4d0cd9=_0x4bfdea['debug'],_0x3ce2fb=_0x4bfdea['query'],_0x130936=_0x4bfdea[_0x302fa3(0x1f8)],_0x12e23f=_0x4bfdea[_0x302fa3(0x1f2)],_0xdc2271=_0x3ce2fb?typeof _0x3ce2fb==='string'?_0x3ce2fb:JSON[_0x302fa3(0x1ee)](_0x3ce2fb,null,0x2):undefined,_0x1f76b0=_0x130936&&Object[_0x302fa3(0x1fc)](_0x130936)['length']>0x0?JSON[_0x302fa3(0x1ee)](_0x130936,null,0x2):undefined,_0x129b97=_0x12e23f&&Object['keys'](_0x12e23f)['length']>0x0?JSON['stringify'](_0x12e23f,null,0x2):undefined,_0x19b3fa=_0x3faf7e[_0x302fa3(0x1f6)](([_0x4b1d5a])=>_0x4b1d5a!==_0x302fa3(0x200)&&_0x4b1d5a!==_0x302fa3(0x201)&&_0x4b1d5a!=='params'&&_0x4b1d5a!==_0x302fa3(0x1f2)),_0x5e06cd=Math[_0x302fa3(0x1e2)](..._0x19b3fa[_0x302fa3(0x207)](([_0x282bb3])=>_0x282bb3[_0x302fa3(0x20f)])),_0x1a6c96=Math[_0x302fa3(0x1e2)](..._0x19b3fa[_0x302fa3(0x207)](([,_0x1637c6])=>{const _0xe0f48e=_0x302fa3;try{const _0x386548=_0x1637c6===null||_0x1637c6===undefined?'':typeof _0x1637c6==='object'?JSON[_0xe0f48e(0x1ee)](_0x1637c6):String(_0x1637c6),_0x453003=_0x386548[_0xe0f48e(0x1e5)]('\x0a');return Math[_0xe0f48e(0x1e2)](..._0x453003['map'](_0x1b3828=>_0x1b3828[_0xe0f48e(0x20f)]),0x0);}catch{return 0x0;}}),0x14),_0x1ac16e=[];_0x1ac16e[_0x302fa3(0x209)](colorBorder('┌─'+'─'[_0x302fa3(0x1e4)](_0x5e06cd)+_0x302fa3(0x1f7)+'─'[_0x302fa3(0x1e4)](_0x1a6c96)+'─┐',_0x8b83cb)),_0x19b3fa[_0x302fa3(0x215)](([_0x3c362e,_0x1f1425])=>{const _0x10f3f0=_0x302fa3;let _0xcfdf31;try{_0xcfdf31=_0x1f1425===null||_0x1f1425===undefined?'':typeof _0x1f1425===_0x10f3f0(0x206)?JSON[_0x10f3f0(0x1ee)](_0x1f1425):String(_0x1f1425);}catch{_0xcfdf31='[Object]';}const _0x2d7528=_0x3c362e[_0x10f3f0(0x1f3)](_0x5e06cd),_0x385d51=_0xcfdf31[_0x10f3f0(0x1e5)]('\x0a');_0x385d51[_0x10f3f0(0x215)]((_0x2cf5fe,_0x56edd1)=>{const _0x21f484=_0x10f3f0,_0x14ce38=colorBorder('│',_0x8b83cb);_0x56edd1===0x0?_0x1ac16e['push'](_0x14ce38+'\x20'+_0x2d7528+'\x20'+_0x14ce38+'\x20'+_0x2cf5fe['padEnd'](_0x1a6c96)+'\x20'+_0x14ce38):_0x1ac16e['push'](_0x14ce38+'\x20'+'\x20'[_0x21f484(0x1e4)](_0x5e06cd)+'\x20'+_0x14ce38+'\x20'+_0x2cf5fe[_0x21f484(0x1f3)](_0x1a6c96)+'\x20'+_0x14ce38);});}),_0x1ac16e[_0x302fa3(0x209)](colorBorder('└─'+'─'[_0x302fa3(0x1e4)](_0x5e06cd)+_0x302fa3(0x20b)+'─'[_0x302fa3(0x1e4)](_0x1a6c96)+'─┘',_0x8b83cb));_0xdc2271&&(_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6[_0x302fa3(0x1ef)][_0x302fa3(0x1d8)](_0x302fa3(0x1da)))),_0x1ac16e[_0x302fa3(0x209)](_0xdc2271));_0x1f76b0&&(_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6[_0x302fa3(0x1dd)]['bold'](_0x302fa3(0x1e9)))),_0x1ac16e[_0x302fa3(0x209)](_0x1f76b0));_0x129b97&&(_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6[_0x302fa3(0x1e6)][_0x302fa3(0x1d8)](_0x302fa3(0x20a)))),_0x1ac16e[_0x302fa3(0x209)](_0x129b97));if(_0x4d0cd9){if(_0x4d0cd9[_0x302fa3(0x1d7)]){_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6[_0x302fa3(0x1e1)][_0x302fa3(0x1d8)](_0x302fa3(0x208))));const _0x1a00db=_0x4d0cd9[_0x302fa3(0x1d7)]['split']('\x0a');_0x1a00db[_0x302fa3(0x215)](_0x373734=>{const _0xb9ca9d=_0x302fa3;_0x373734[_0xb9ca9d(0x1f4)]()&&_0x1ac16e['push'](_0x373734);});}if(_0x4d0cd9['cmdout']){_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6['cyan'][_0x302fa3(0x1d8)](_0x302fa3(0x1e0))));const _0x5e250b=_0x4d0cd9[_0x302fa3(0x1e3)][_0x302fa3(0x1e5)]('\x0a');_0x5e250b[_0x302fa3(0x215)](_0x57bceb=>{const _0x112db2=_0x302fa3;_0x57bceb[_0x112db2(0x1f4)]()&&_0x1ac16e[_0x112db2(0x209)](_0x57bceb);});}}return _0x1ac16e[_0x302fa3(0x1f0)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x2f5e4b,_0x4973af){const _0x57a3e9=a79_0x4fff,_0x284f06=resolveOutputOptions(_0x4973af),_0x5540ca=await formatSingleObject(_0x2f5e4b,_0x284f06);await writeOutput(_0x5540ca,_0x284f06['output']||undefined,_0x284f06[_0x57a3e9(0x20d)]);}
1
+ (function(_0x54dd0d,_0x5d487f){const _0x4e6519=a79_0xcfea,_0x449a85=_0x54dd0d();while(!![]){try{const _0xa02f7c=-parseInt(_0x4e6519(0xae))/0x1+-parseInt(_0x4e6519(0xa6))/0x2+-parseInt(_0x4e6519(0xc5))/0x3+-parseInt(_0x4e6519(0xb4))/0x4+-parseInt(_0x4e6519(0xc3))/0x5+-parseInt(_0x4e6519(0x91))/0x6*(parseInt(_0x4e6519(0xc7))/0x7)+parseInt(_0x4e6519(0x9e))/0x8;if(_0xa02f7c===_0x5d487f)break;else _0x449a85['push'](_0x449a85['shift']());}catch(_0xd5ff16){_0x449a85['push'](_0x449a85['shift']());}}}(a79_0x1ca7,0xbc46d));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';function a79_0xcfea(_0x2e9921,_0x30bb57){const _0x1ca747=a79_0x1ca7();return a79_0xcfea=function(_0xcfeaf9,_0x4f95f9){_0xcfeaf9=_0xcfeaf9-0x87;let _0x325487=_0x1ca747[_0xcfeaf9];return _0x325487;},a79_0xcfea(_0x2e9921,_0x30bb57);}import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a79_0x1ca7(){const _0x32e18d=['inherit','-FXRSn','797872TSUUgH','log','noColor','params','resolve','object','error','debug','format','blue','sdk-result','push','─┬─','json','[logs]','6899370llkmdA','FINISHED','2146476irjyJD','─┴─','7369579xLheMv','Results\x20saved\x20to\x20','stringify','bold','split','tsv','stdin','repeat','table','stderr','jsonl','[query]','6XhWVRc','magenta','length','filter','rule','red','pipe','stdout','forEach','bigint','[params]','No\x20data','join','55003896pEdyAe','color','limit','query','number','max','map','end','2982684AOwyOx','output','varchar','cyan','[rule]','write','spawn','cmdout','1265333JuRIFx','isTTY','padEnd','yellow'];a79_0x1ca7=function(){return _0x32e18d;};return a79_0x1ca7();}import a79_0x1f6a3b from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x3128a3){const _0x282a8a=a79_0xcfea;return{'format':_0x3128a3[_0x282a8a(0xbc)]||_0x282a8a(0x8d),'output':_0x3128a3[_0x282a8a(0xa7)]||'','limit':_0x3128a3[_0x282a8a(0xa0)],'color':_0x3128a3[_0x282a8a(0x9f)],'noColor':_0x3128a3[_0x282a8a(0xb6)]};}function convertSDKResultToQueryResult(_0x5902fe){const _0x140ed5=a79_0xcfea,_0x4f0c73=[];if(_0x5902fe[_0x140ed5(0x93)]>0x0){const _0x52bf37=_0x5902fe[0x0];for(const [_0x26cff9,_0x3c1098]of Object['entries'](_0x52bf37)){let _0x29a8f9='varchar';if(typeof _0x3c1098===_0x140ed5(0xa2))_0x29a8f9=Number['isInteger'](_0x3c1098)?_0x140ed5(0x9a):'double';else{if(typeof _0x3c1098==='boolean')_0x29a8f9='boolean';else _0x3c1098===null&&(_0x29a8f9=_0x140ed5(0xa8));}_0x4f0c73[_0x140ed5(0xbf)]({'name':_0x26cff9,'type':_0x29a8f9});}}return{'queryId':_0x140ed5(0xbe),'columns':_0x4f0c73,'data':_0x5902fe,'stats':{'state':_0x140ed5(0xc4),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x5902fe['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x276979,_0x31012){const _0x186f9f=convertSDKResultToQueryResult(_0x276979);return formatQueryOutput(_0x186f9f,_0x31012);}export async function formatQueryOutput(_0x397a4e,_0x1db892){const _0x3cab35=a79_0xcfea,{format:_0x119917,limit:_0x2add23,output:_0x1bc542,color:_0x54ad07,noColor:_0x52cdee}=_0x1db892,_0x1f1473=Boolean(_0x1bc542)&&!_0x54ad07,_0x2761b5={'color':_0x54ad07,'noColor':_0x52cdee||_0x1f1473};if(_0x119917==='table'){const _0x1344f0=shouldUseLess(_0x119917,_0x1bc542);return formatAsTable(_0x397a4e,_0x2add23,_0x1344f0,_0x2761b5);}else{if(_0x119917===_0x3cab35(0xc1))return formatAsJSON(_0x397a4e,_0x2761b5);else return _0x119917===_0x3cab35(0x8f)?formatAsJSONL(_0x397a4e,_0x2761b5):formatQueryResult(_0x397a4e,_0x119917);}}function shouldUseLess(_0x5f476a,_0x396f0f){const _0x1c0883=a79_0xcfea;return _0x5f476a===_0x1c0883(0x8d)&&process[_0x1c0883(0x98)][_0x1c0883(0xaf)]&&!_0x396f0f;}export function resolveOutputOptions(_0x5534fb){const _0x1c1695=a79_0xcfea,_0x3a06d8=resolveOutputFormat(_0x5534fb[_0x1c1695(0xbc)],_0x5534fb[_0x1c1695(0xa7)],_0x1c1695(0x8d));let _0x523d39=typeof _0x5534fb[_0x1c1695(0xa0)]===_0x1c1695(0xa2)?_0x5534fb[_0x1c1695(0xa0)]:parseInt(_0x5534fb[_0x1c1695(0xa0)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x2489e4=_0x5534fb[_0x1c1695(0xa7)]||'';return shouldUseLess(_0x3a06d8,_0x2489e4)&&(_0x523d39=Infinity),{'format':_0x3a06d8,'output':_0x2489e4,'limit':_0x523d39,'color':_0x5534fb[_0x1c1695(0x9f)],'noColor':_0x5534fb[_0x1c1695(0xb6)]};}export function writeOutput(_0x4a6d3b,_0x640b7,_0x83687a){const _0x90c25b=a79_0xcfea;return _0x640b7?(writeFileSync(_0x640b7,_0x4a6d3b),console[_0x90c25b(0xba)](_0x90c25b(0xc8)+_0x640b7),Promise[_0x90c25b(0xb8)]()):shouldUseLess(_0x83687a||'','')?new Promise(_0x106675=>{const _0x2ac8f1=_0x90c25b,_0x4a6b56=spawn('less',[_0x2ac8f1(0xb3)],{'stdio':[_0x2ac8f1(0x97),_0x2ac8f1(0xb2),_0x2ac8f1(0xb2)]});let _0x44e0c1=![];_0x4a6b56['on'](_0x2ac8f1(0xba),()=>{!_0x44e0c1&&(_0x44e0c1=!![],console['log'](_0x4a6d3b),_0x106675());}),_0x4a6b56['on']('close',()=>{!_0x44e0c1&&(_0x44e0c1=!![],_0x106675());}),_0x4a6b56['on'](_0x2ac8f1(0xac),()=>{const _0x35d2de=_0x2ac8f1;!_0x44e0c1&&_0x4a6b56[_0x35d2de(0x8b)]&&(_0x4a6b56['stdin']['on'](_0x35d2de(0xba),()=>{}),_0x4a6b56[_0x35d2de(0x8b)][_0x35d2de(0xab)](_0x4a6d3b),_0x4a6b56[_0x35d2de(0x8b)][_0x35d2de(0xa5)]());}),!_0x4a6b56[_0x2ac8f1(0x8b)]&&(!_0x44e0c1&&(_0x44e0c1=!![],console[_0x2ac8f1(0xb5)](_0x4a6d3b),_0x106675()));}):(console[_0x90c25b(0xb5)](_0x4a6d3b),Promise['resolve']());}export async function handleSDKOutput(_0xddda52,_0xa2e4ea){const _0x4038e0=a79_0xcfea,_0x151bea=resolveOutputOptions(_0xa2e4ea),_0x1bc7ce=await formatSDKOutput(_0xddda52,_0x151bea);await writeOutput(_0x1bc7ce,_0x151bea[_0x4038e0(0xa7)]||undefined,_0x151bea[_0x4038e0(0xbc)]);}export async function handleQueryOutput(_0x2e45c8,_0x2a95bd){const _0x5bf85c=a79_0xcfea,_0x47d939=resolveOutputOptions(_0x2a95bd),_0x56d750=await formatQueryOutput(_0x2e45c8,_0x47d939);await writeOutput(_0x56d750,_0x47d939[_0x5bf85c(0xa7)]||undefined,_0x47d939['format']);}async function formatSingleObject(_0x5a8017,_0x48f358){const _0x59e138=a79_0xcfea,{format:_0x46ca43,color:_0x41d753,noColor:_0x5d9881}=_0x48f358,_0x26a822={'color':_0x41d753,'noColor':_0x5d9881};if(_0x46ca43===_0x59e138(0xc1)){if(shouldUseColor(_0x26a822))return colorizeJSON(_0x5a8017,_0x26a822);return JSON[_0x59e138(0x87)](_0x5a8017,null,0x2);}else{if(_0x46ca43===_0x59e138(0x8f)){if(shouldUseColor(_0x26a822))return colorizeJSONCompact(_0x5a8017,_0x26a822);return JSON['stringify'](_0x5a8017);}else{if(_0x46ca43===_0x59e138(0x8a))return Object['entries'](_0x5a8017)['map'](([_0x412607,_0x2b03c4])=>_0x412607+'\x09'+_0x2b03c4)[_0x59e138(0x9d)]('\x0a');else{const _0x2491cc=Object['entries'](_0x5a8017);if(_0x2491cc[_0x59e138(0x93)]===0x0)return _0x59e138(0x9c);const _0x5115b2=_0x5a8017['debug'],_0x2b80b4=_0x5a8017[_0x59e138(0xa1)],_0x274ddb=_0x5a8017[_0x59e138(0xb7)],_0x27363a=_0x5a8017[_0x59e138(0x95)],_0x233ae6=_0x2b80b4?typeof _0x2b80b4==='string'?_0x2b80b4:JSON[_0x59e138(0x87)](_0x2b80b4,null,0x2):undefined,_0x15c98d=_0x274ddb&&Object['keys'](_0x274ddb)[_0x59e138(0x93)]>0x0?JSON[_0x59e138(0x87)](_0x274ddb,null,0x2):undefined,_0x10b4fe=_0x27363a&&Object['keys'](_0x27363a)['length']>0x0?JSON[_0x59e138(0x87)](_0x27363a,null,0x2):undefined,_0x46377a=_0x2491cc[_0x59e138(0x94)](([_0x49fb6b])=>_0x49fb6b!==_0x59e138(0xbb)&&_0x49fb6b!=='query'&&_0x49fb6b!==_0x59e138(0xb7)&&_0x49fb6b!=='rule'),_0x13fe57=Math[_0x59e138(0xa3)](..._0x46377a['map'](([_0x57cd59])=>_0x57cd59[_0x59e138(0x93)])),_0x5982e5=Math[_0x59e138(0xa3)](..._0x46377a[_0x59e138(0xa4)](([,_0x642799])=>{const _0x2db8ac=_0x59e138;try{const _0x5d35ac=_0x642799===null||_0x642799===undefined?'':typeof _0x642799==='object'?JSON[_0x2db8ac(0x87)](_0x642799):String(_0x642799),_0x513dbb=_0x5d35ac[_0x2db8ac(0x89)]('\x0a');return Math[_0x2db8ac(0xa3)](..._0x513dbb['map'](_0x3d9575=>_0x3d9575[_0x2db8ac(0x93)]),0x0);}catch{return 0x0;}}),0x14),_0x2470d5=[];_0x2470d5[_0x59e138(0xbf)](colorBorder('┌─'+'─'['repeat'](_0x13fe57)+_0x59e138(0xc0)+'─'[_0x59e138(0x8c)](_0x5982e5)+'─┐',_0x26a822)),_0x46377a['forEach'](([_0x331fa1,_0x1457f2])=>{const _0x588d19=_0x59e138;let _0x5d8561;try{_0x5d8561=_0x1457f2===null||_0x1457f2===undefined?'':typeof _0x1457f2===_0x588d19(0xb9)?JSON[_0x588d19(0x87)](_0x1457f2):String(_0x1457f2);}catch{_0x5d8561='[Object]';}const _0x2d0697=_0x331fa1['padEnd'](_0x13fe57),_0x3609b4=_0x5d8561[_0x588d19(0x89)]('\x0a');_0x3609b4['forEach']((_0x1b00d0,_0x10a1b2)=>{const _0x5b8a83=_0x588d19,_0x4a157d=colorBorder('│',_0x26a822);_0x10a1b2===0x0?_0x2470d5[_0x5b8a83(0xbf)](_0x4a157d+'\x20'+_0x2d0697+'\x20'+_0x4a157d+'\x20'+_0x1b00d0[_0x5b8a83(0xb0)](_0x5982e5)+'\x20'+_0x4a157d):_0x2470d5[_0x5b8a83(0xbf)](_0x4a157d+'\x20'+'\x20'[_0x5b8a83(0x8c)](_0x13fe57)+'\x20'+_0x4a157d+'\x20'+_0x1b00d0[_0x5b8a83(0xb0)](_0x5982e5)+'\x20'+_0x4a157d);});}),_0x2470d5['push'](colorBorder('└─'+'─'[_0x59e138(0x8c)](_0x13fe57)+_0x59e138(0xc6)+'─'[_0x59e138(0x8c)](_0x5982e5)+'─┘',_0x26a822));_0x233ae6&&(_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5[_0x59e138(0xbf)](String(a79_0x1f6a3b[_0x59e138(0xb1)][_0x59e138(0x88)](_0x59e138(0x90)))),_0x2470d5[_0x59e138(0xbf)](_0x233ae6));_0x15c98d&&(_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5[_0x59e138(0xbf)](String(a79_0x1f6a3b[_0x59e138(0xbd)]['bold'](_0x59e138(0x9b)))),_0x2470d5[_0x59e138(0xbf)](_0x15c98d));_0x10b4fe&&(_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5[_0x59e138(0xbf)](String(a79_0x1f6a3b[_0x59e138(0x92)][_0x59e138(0x88)](_0x59e138(0xaa)))),_0x2470d5['push'](_0x10b4fe));if(_0x5115b2){if(_0x5115b2[_0x59e138(0x8e)]){_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5[_0x59e138(0xbf)](String(a79_0x1f6a3b[_0x59e138(0x96)][_0x59e138(0x88)]('[error]')));const _0x3a4476=_0x5115b2[_0x59e138(0x8e)][_0x59e138(0x89)]('\x0a');_0x3a4476[_0x59e138(0x99)](_0x25d321=>{_0x25d321['trim']()&&_0x2470d5['push'](_0x25d321);});}if(_0x5115b2[_0x59e138(0xad)]){_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5['push'](String(a79_0x1f6a3b[_0x59e138(0xa9)]['bold'](_0x59e138(0xc2))));const _0x30878f=_0x5115b2['cmdout']['split']('\x0a');_0x30878f[_0x59e138(0x99)](_0x3fc768=>{const _0x3955c1=_0x59e138;_0x3fc768['trim']()&&_0x2470d5[_0x3955c1(0xbf)](_0x3fc768);});}}return _0x2470d5[_0x59e138(0x9d)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x174466,_0x849e2d){const _0x5bc65d=resolveOutputOptions(_0x849e2d),_0x48169b=await formatSingleObject(_0x174466,_0x5bc65d);await writeOutput(_0x48169b,_0x5bc65d['output']||undefined,_0x5bc65d['format']);}
@@ -1 +1 @@
1
- (function(_0x53ac95,_0x4bd3d5){const _0x54c04a=a80_0xa095,_0xff27ea=_0x53ac95();while(!![]){try{const _0x1d3cff=-parseInt(_0x54c04a(0x107))/0x1*(-parseInt(_0x54c04a(0x10f))/0x2)+parseInt(_0x54c04a(0x10b))/0x3*(-parseInt(_0x54c04a(0x10c))/0x4)+parseInt(_0x54c04a(0x10a))/0x5+-parseInt(_0x54c04a(0x10d))/0x6+parseInt(_0x54c04a(0x108))/0x7*(-parseInt(_0x54c04a(0x111))/0x8)+parseInt(_0x54c04a(0x10e))/0x9+-parseInt(_0x54c04a(0x112))/0xa*(-parseInt(_0x54c04a(0x109))/0xb);if(_0x1d3cff===_0x4bd3d5)break;else _0xff27ea['push'](_0xff27ea['shift']());}catch(_0x13ed3b){_0xff27ea['push'](_0xff27ea['shift']());}}}(a80_0xf4fa,0x76c13));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x3d5e05,_0x587b2d){const _0x3bf989=a80_0xa095;if(_0x3d5e05===undefined)return _0x587b2d;if(typeof _0x3d5e05===_0x3bf989(0x110))return _0x3d5e05;return parseInt(_0x3d5e05,0xa);}function a80_0xa095(_0x5797b6,_0x19356a){const _0xf4faf7=a80_0xf4fa();return a80_0xa095=function(_0xa0956c,_0x218e10){_0xa0956c=_0xa0956c-0x107;let _0x17750f=_0xf4faf7[_0xa0956c];return _0x17750f;},a80_0xa095(_0x5797b6,_0x19356a);}function a80_0xf4fa(){const _0x44d78c=['1053902niQHtU','number','392824wlMTLB','15411920sAuWzv','1cTaTbA','105qDBFdb','11HhCdkG','2787055ILFlCp','42534hIQwZB','252irSoNA','3289452WNkFFD','349794ZCUxLT'];a80_0xf4fa=function(){return _0x44d78c;};return a80_0xf4fa();}
1
+ (function(_0x151bcc,_0x17f589){const _0x8e2a99=a80_0xe14c,_0x2a2042=_0x151bcc();while(!![]){try{const _0xb30956=parseInt(_0x8e2a99(0xfa))/0x1+-parseInt(_0x8e2a99(0xfd))/0x2*(parseInt(_0x8e2a99(0xf7))/0x3)+-parseInt(_0x8e2a99(0xfe))/0x4+parseInt(_0x8e2a99(0x101))/0x5*(parseInt(_0x8e2a99(0xfc))/0x6)+parseInt(_0x8e2a99(0xf8))/0x7*(parseInt(_0x8e2a99(0x100))/0x8)+parseInt(_0x8e2a99(0xff))/0x9*(-parseInt(_0x8e2a99(0xfb))/0xa)+-parseInt(_0x8e2a99(0xf6))/0xb;if(_0xb30956===_0x17f589)break;else _0x2a2042['push'](_0x2a2042['shift']());}catch(_0x5783cd){_0x2a2042['push'](_0x2a2042['shift']());}}}(a80_0x5f36,0x283b6));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;function a80_0x5f36(){const _0x3fe235=['5082TVNtXM','number','197680nAnpTA','448150ylUsbu','1703742jMZPit','66NfgktN','122388VOZuEh','9WvJbvw','2656JJWArH','5GTxKhB','4900214ZduVvV','3363axXqCZ'];a80_0x5f36=function(){return _0x3fe235;};return a80_0x5f36();}function a80_0xe14c(_0x1a8719,_0x47a3b5){const _0x5f3620=a80_0x5f36();return a80_0xe14c=function(_0xe14cad,_0x3aa6e1){_0xe14cad=_0xe14cad-0xf6;let _0x509033=_0x5f3620[_0xe14cad];return _0x509033;},a80_0xe14c(_0x1a8719,_0x47a3b5);}export function resolveLimit(_0x19b185,_0x4c0e6e){const _0x1a15eb=a80_0xe14c;if(_0x19b185===undefined)return _0x4c0e6e;if(typeof _0x19b185===_0x1a15eb(0xf9))return _0x19b185;return parseInt(_0x19b185,0xa);}
@@ -1 +1 @@
1
- function a81_0x19c1(_0x4176b8,_0x4ef568){const _0x160bee=a81_0x160b();return a81_0x19c1=function(_0x19c147,_0x432185){_0x19c147=_0x19c147-0x139;let _0x631ad2=_0x160bee[_0x19c147];return _0x631ad2;},a81_0x19c1(_0x4176b8,_0x4ef568);}(function(_0x1a80c8,_0x156b64){const _0x190c34=a81_0x19c1,_0x57befb=_0x1a80c8();while(!![]){try{const _0x45cea1=-parseInt(_0x190c34(0x13c))/0x1*(parseInt(_0x190c34(0x14a))/0x2)+parseInt(_0x190c34(0x157))/0x3+-parseInt(_0x190c34(0x159))/0x4+parseInt(_0x190c34(0x156))/0x5+parseInt(_0x190c34(0x151))/0x6*(-parseInt(_0x190c34(0x142))/0x7)+parseInt(_0x190c34(0x13b))/0x8+-parseInt(_0x190c34(0x141))/0x9*(parseInt(_0x190c34(0x149))/0xa);if(_0x45cea1===_0x156b64)break;else _0x57befb['push'](_0x57befb['shift']());}catch(_0x900c0d){_0x57befb['push'](_0x57befb['shift']());}}}(a81_0x160b,0x9d151));import a81_0x115866 from'chalk';export function generateDiff(_0x4b638f,_0x1cb7fc){const _0x540022=a81_0x19c1,_0x144098=_0x4b638f['split']('\x0a'),_0x21db4c=_0x1cb7fc['split']('\x0a'),_0xa31dc9=[],_0x281bda=computeLCS(_0x144098,_0x21db4c);let _0x5bcc21=0x0,_0x1aaadc=0x0,_0x4398fc=0x0;while(_0x5bcc21<_0x144098[_0x540022(0x13d)]||_0x1aaadc<_0x21db4c[_0x540022(0x13d)]){if(_0x4398fc<_0x281bda[_0x540022(0x13d)]&&_0x5bcc21<_0x144098['length']&&_0x144098[_0x5bcc21]===_0x281bda[_0x4398fc])_0x1aaadc<_0x21db4c[_0x540022(0x13d)]&&_0x21db4c[_0x1aaadc]===_0x281bda[_0x4398fc]?(_0xa31dc9[_0x540022(0x14d)]({'type':_0x540022(0x155),'content':_0x144098[_0x5bcc21]}),_0x5bcc21++,_0x1aaadc++,_0x4398fc++):(_0xa31dc9[_0x540022(0x14d)]({'type':'added','content':_0x21db4c[_0x1aaadc]}),_0x1aaadc++);else{if(_0x4398fc<_0x281bda[_0x540022(0x13d)]&&_0x1aaadc<_0x21db4c[_0x540022(0x13d)]&&_0x21db4c[_0x1aaadc]===_0x281bda[_0x4398fc])_0xa31dc9['push']({'type':_0x540022(0x147),'content':_0x144098[_0x5bcc21]}),_0x5bcc21++;else{if(_0x5bcc21<_0x144098['length']&&(_0x4398fc>=_0x281bda[_0x540022(0x13d)]||_0x144098[_0x5bcc21]!==_0x281bda[_0x4398fc]))_0xa31dc9[_0x540022(0x14d)]({'type':_0x540022(0x147),'content':_0x144098[_0x5bcc21]}),_0x5bcc21++;else _0x1aaadc<_0x21db4c[_0x540022(0x13d)]&&(_0xa31dc9[_0x540022(0x14d)]({'type':_0x540022(0x15a),'content':_0x21db4c[_0x1aaadc]}),_0x1aaadc++);}}}return _0xa31dc9;}function computeLCS(_0x3aa4cc,_0x52d187){const _0x143286=a81_0x19c1,_0x3b6725=_0x3aa4cc[_0x143286(0x13d)],_0x279e4a=_0x52d187[_0x143286(0x13d)],_0x2efb77=Array(_0x3b6725+0x1)[_0x143286(0x14c)](null)[_0x143286(0x143)](()=>Array(_0x279e4a+0x1)[_0x143286(0x14c)](0x0));for(let _0x3580c9=0x1;_0x3580c9<=_0x3b6725;_0x3580c9++){for(let _0x6b5601=0x1;_0x6b5601<=_0x279e4a;_0x6b5601++){_0x3aa4cc[_0x3580c9-0x1]===_0x52d187[_0x6b5601-0x1]?_0x2efb77[_0x3580c9][_0x6b5601]=_0x2efb77[_0x3580c9-0x1][_0x6b5601-0x1]+0x1:_0x2efb77[_0x3580c9][_0x6b5601]=Math[_0x143286(0x14e)](_0x2efb77[_0x3580c9-0x1][_0x6b5601],_0x2efb77[_0x3580c9][_0x6b5601-0x1]);}}const _0x10cd71=[];let _0x16b406=_0x3b6725,_0x264e94=_0x279e4a;while(_0x16b406>0x0&&_0x264e94>0x0){if(_0x3aa4cc[_0x16b406-0x1]===_0x52d187[_0x264e94-0x1])_0x10cd71[_0x143286(0x153)](_0x3aa4cc[_0x16b406-0x1]),_0x16b406--,_0x264e94--;else _0x2efb77[_0x16b406-0x1][_0x264e94]>_0x2efb77[_0x16b406][_0x264e94-0x1]?_0x16b406--:_0x264e94--;}return _0x10cd71;}export function formatDiffWithColors(_0x3ca1f1,_0x33e280=0x3){const _0x16a17a=a81_0x19c1,_0x5da2d7=new Set();_0x3ca1f1[_0x16a17a(0x14f)]((_0x37ad1e,_0x5d3d5a)=>{const _0x4f6383=_0x16a17a;_0x37ad1e[_0x4f6383(0x146)]!==_0x4f6383(0x155)&&_0x5da2d7[_0x4f6383(0x15b)](_0x5d3d5a);});if(_0x5da2d7['size']===0x0)return'';const _0xcc9a2a=new Set();for(const _0x1a6238 of _0x5da2d7){for(let _0x475cd5=Math[_0x16a17a(0x14e)](0x0,_0x1a6238-_0x33e280);_0x475cd5<=Math[_0x16a17a(0x145)](_0x3ca1f1[_0x16a17a(0x13d)]-0x1,_0x1a6238+_0x33e280);_0x475cd5++){_0xcc9a2a[_0x16a17a(0x15b)](_0x475cd5);}}const _0x1013e9=[];let _0x3e5e02=-0x1;const _0x265070=_0x3ca1f1['length'],_0x2329e4=Math[_0x16a17a(0x14e)](0x3,String(_0x265070)[_0x16a17a(0x13d)]),_0x21c188=[];let _0x5dea0a=0x0,_0x5a7e64=0x0;for(const _0x105bfa of _0x3ca1f1){if(_0x105bfa[_0x16a17a(0x146)]===_0x16a17a(0x147))_0x5dea0a++,_0x21c188[_0x16a17a(0x14d)]({'old':_0x5dea0a,'new':0x0});else _0x105bfa[_0x16a17a(0x146)]==='added'?(_0x5a7e64++,_0x21c188[_0x16a17a(0x14d)]({'old':0x0,'new':_0x5a7e64})):(_0x5dea0a++,_0x5a7e64++,_0x21c188[_0x16a17a(0x14d)]({'old':_0x5dea0a,'new':_0x5a7e64}));}for(let _0x27bba0=0x0;_0x27bba0<_0x3ca1f1[_0x16a17a(0x13d)];_0x27bba0++){if(!_0xcc9a2a[_0x16a17a(0x154)](_0x27bba0))continue;_0x3e5e02!==-0x1&&_0x27bba0>_0x3e5e02+0x1&&_0x1013e9[_0x16a17a(0x14d)](a81_0x115866[_0x16a17a(0x158)](_0x16a17a(0x13f)));_0x3e5e02=_0x27bba0;const _0x402b62=_0x3ca1f1[_0x27bba0],_0x538be5=_0x21c188[_0x27bba0],_0x116b82=_0x538be5[_0x16a17a(0x13a)]>0x0?String(_0x538be5[_0x16a17a(0x13a)])['padStart'](_0x2329e4):'\x20'[_0x16a17a(0x150)](_0x2329e4),_0x51197f=_0x538be5[_0x16a17a(0x144)]>0x0?String(_0x538be5['new'])[_0x16a17a(0x148)](_0x2329e4):'\x20'[_0x16a17a(0x150)](_0x2329e4);switch(_0x402b62[_0x16a17a(0x146)]){case'removed':_0x1013e9['push'](a81_0x115866[_0x16a17a(0x14b)](_0x116b82+'\x20'+_0x51197f+'\x20-\x20'+_0x402b62[_0x16a17a(0x139)]));break;case _0x16a17a(0x15a):_0x1013e9['push'](a81_0x115866[_0x16a17a(0x13e)](_0x116b82+'\x20'+_0x51197f+'\x20+\x20'+_0x402b62[_0x16a17a(0x139)]));break;default:_0x1013e9[_0x16a17a(0x14d)](a81_0x115866['dim'](_0x116b82+'\x20'+_0x51197f+_0x16a17a(0x140)+_0x402b62[_0x16a17a(0x139)]));break;}}return _0x1013e9['join']('\x0a');}function a81_0x160b(){const _0x3bbc40=['push','max','forEach','repeat','6ypuWJe','some','unshift','has','unchanged','1939815uNlaWP','2239599kGrqVq','cyan','446140dTCvqj','added','add','content','old','10178200MUlTRV','1037889yXwUUj','length','green','\x20\x20...','\x20\x20\x20','1364049rpUBJL','3236639BMawDi','map','new','min','type','removed','padStart','10DRYbnv','2KfFlPp','red','fill'];a81_0x160b=function(){return _0x3bbc40;};return a81_0x160b();}export function hasChanges(_0x50e177){const _0x2e57d9=a81_0x19c1;return _0x50e177[_0x2e57d9(0x152)](_0x200a3f=>_0x200a3f[_0x2e57d9(0x146)]!==_0x2e57d9(0x155));}
1
+ function a81_0x42fe(){const _0x303225=['dim','type','460152WuAVuo','repeat','added','red','min','add','72dtMBBP','1952115PEgCEM','3425264UhJsbC','split','696183DBKQkC','old','new','fill','green','forEach','182147PYbQzq','content','some','\x20-\x20','has','removed','max','\x20\x20\x20','padStart','length','unchanged','cyan','\x20\x20...','unshift','push','1562980JFFiZp','map','3090296DuEQAC','\x20+\x20'];a81_0x42fe=function(){return _0x303225;};return a81_0x42fe();}function a81_0x9c14(_0x4f8324,_0x1056dd){const _0x42fed4=a81_0x42fe();return a81_0x9c14=function(_0x9c1487,_0x3d2a67){_0x9c1487=_0x9c1487-0x148;let _0x13db12=_0x42fed4[_0x9c1487];return _0x13db12;},a81_0x9c14(_0x4f8324,_0x1056dd);}(function(_0x30fd34,_0x2d78d1){const _0x480644=a81_0x9c14,_0x57e2e4=_0x30fd34();while(!![]){try{const _0x5ef802=parseInt(_0x480644(0x152))/0x1+-parseInt(_0x480644(0x169))/0x2+parseInt(_0x480644(0x14f))/0x3+parseInt(_0x480644(0x148))/0x4+parseInt(_0x480644(0x167))/0x5+parseInt(_0x480644(0x14e))/0x6*(parseInt(_0x480644(0x158))/0x7)+parseInt(_0x480644(0x150))/0x8;if(_0x5ef802===_0x2d78d1)break;else _0x57e2e4['push'](_0x57e2e4['shift']());}catch(_0x2dffc9){_0x57e2e4['push'](_0x57e2e4['shift']());}}}(a81_0x42fe,0xecc38));import a81_0x537649 from'chalk';export function generateDiff(_0xec6401,_0x24070f){const _0x3f11e7=a81_0x9c14,_0x4bfa18=_0xec6401[_0x3f11e7(0x151)]('\x0a'),_0x48e20e=_0x24070f['split']('\x0a'),_0x2b40be=[],_0x857e56=computeLCS(_0x4bfa18,_0x48e20e);let _0x128ab6=0x0,_0x34823f=0x0,_0x54306c=0x0;while(_0x128ab6<_0x4bfa18[_0x3f11e7(0x161)]||_0x34823f<_0x48e20e[_0x3f11e7(0x161)]){if(_0x54306c<_0x857e56[_0x3f11e7(0x161)]&&_0x128ab6<_0x4bfa18[_0x3f11e7(0x161)]&&_0x4bfa18[_0x128ab6]===_0x857e56[_0x54306c])_0x34823f<_0x48e20e[_0x3f11e7(0x161)]&&_0x48e20e[_0x34823f]===_0x857e56[_0x54306c]?(_0x2b40be[_0x3f11e7(0x166)]({'type':_0x3f11e7(0x162),'content':_0x4bfa18[_0x128ab6]}),_0x128ab6++,_0x34823f++,_0x54306c++):(_0x2b40be[_0x3f11e7(0x166)]({'type':_0x3f11e7(0x14a),'content':_0x48e20e[_0x34823f]}),_0x34823f++);else{if(_0x54306c<_0x857e56[_0x3f11e7(0x161)]&&_0x34823f<_0x48e20e['length']&&_0x48e20e[_0x34823f]===_0x857e56[_0x54306c])_0x2b40be[_0x3f11e7(0x166)]({'type':'removed','content':_0x4bfa18[_0x128ab6]}),_0x128ab6++;else{if(_0x128ab6<_0x4bfa18[_0x3f11e7(0x161)]&&(_0x54306c>=_0x857e56[_0x3f11e7(0x161)]||_0x4bfa18[_0x128ab6]!==_0x857e56[_0x54306c]))_0x2b40be['push']({'type':_0x3f11e7(0x15d),'content':_0x4bfa18[_0x128ab6]}),_0x128ab6++;else _0x34823f<_0x48e20e[_0x3f11e7(0x161)]&&(_0x2b40be[_0x3f11e7(0x166)]({'type':_0x3f11e7(0x14a),'content':_0x48e20e[_0x34823f]}),_0x34823f++);}}}return _0x2b40be;}function computeLCS(_0x3c69c7,_0x1f3278){const _0x3273ba=a81_0x9c14,_0x158e60=_0x3c69c7[_0x3273ba(0x161)],_0x5c7dff=_0x1f3278[_0x3273ba(0x161)],_0x49ecc0=Array(_0x158e60+0x1)[_0x3273ba(0x155)](null)[_0x3273ba(0x168)](()=>Array(_0x5c7dff+0x1)[_0x3273ba(0x155)](0x0));for(let _0x1a5c87=0x1;_0x1a5c87<=_0x158e60;_0x1a5c87++){for(let _0x553c7b=0x1;_0x553c7b<=_0x5c7dff;_0x553c7b++){_0x3c69c7[_0x1a5c87-0x1]===_0x1f3278[_0x553c7b-0x1]?_0x49ecc0[_0x1a5c87][_0x553c7b]=_0x49ecc0[_0x1a5c87-0x1][_0x553c7b-0x1]+0x1:_0x49ecc0[_0x1a5c87][_0x553c7b]=Math[_0x3273ba(0x15e)](_0x49ecc0[_0x1a5c87-0x1][_0x553c7b],_0x49ecc0[_0x1a5c87][_0x553c7b-0x1]);}}const _0x5157bb=[];let _0x3c1335=_0x158e60,_0x156033=_0x5c7dff;while(_0x3c1335>0x0&&_0x156033>0x0){if(_0x3c69c7[_0x3c1335-0x1]===_0x1f3278[_0x156033-0x1])_0x5157bb[_0x3273ba(0x165)](_0x3c69c7[_0x3c1335-0x1]),_0x3c1335--,_0x156033--;else _0x49ecc0[_0x3c1335-0x1][_0x156033]>_0x49ecc0[_0x3c1335][_0x156033-0x1]?_0x3c1335--:_0x156033--;}return _0x5157bb;}export function formatDiffWithColors(_0x46ad2f,_0x4290ad=0x3){const _0x1ec026=a81_0x9c14,_0x4088c5=new Set();_0x46ad2f[_0x1ec026(0x157)]((_0x53e210,_0x20d9e4)=>{const _0x417798=_0x1ec026;_0x53e210[_0x417798(0x16c)]!=='unchanged'&&_0x4088c5[_0x417798(0x14d)](_0x20d9e4);});if(_0x4088c5['size']===0x0)return'';const _0x18ec87=new Set();for(const _0x3cfd6b of _0x4088c5){for(let _0x1402fd=Math['max'](0x0,_0x3cfd6b-_0x4290ad);_0x1402fd<=Math[_0x1ec026(0x14c)](_0x46ad2f[_0x1ec026(0x161)]-0x1,_0x3cfd6b+_0x4290ad);_0x1402fd++){_0x18ec87[_0x1ec026(0x14d)](_0x1402fd);}}const _0x524f1c=[];let _0xecaaa9=-0x1;const _0x5a07ae=_0x46ad2f['length'],_0x560ca6=Math[_0x1ec026(0x15e)](0x3,String(_0x5a07ae)['length']),_0x17fe66=[];let _0x137c8a=0x0,_0x55d1b8=0x0;for(const _0x3b9648 of _0x46ad2f){if(_0x3b9648['type']===_0x1ec026(0x15d))_0x137c8a++,_0x17fe66[_0x1ec026(0x166)]({'old':_0x137c8a,'new':0x0});else _0x3b9648[_0x1ec026(0x16c)]===_0x1ec026(0x14a)?(_0x55d1b8++,_0x17fe66[_0x1ec026(0x166)]({'old':0x0,'new':_0x55d1b8})):(_0x137c8a++,_0x55d1b8++,_0x17fe66[_0x1ec026(0x166)]({'old':_0x137c8a,'new':_0x55d1b8}));}for(let _0x159fff=0x0;_0x159fff<_0x46ad2f[_0x1ec026(0x161)];_0x159fff++){if(!_0x18ec87[_0x1ec026(0x15c)](_0x159fff))continue;_0xecaaa9!==-0x1&&_0x159fff>_0xecaaa9+0x1&&_0x524f1c[_0x1ec026(0x166)](a81_0x537649[_0x1ec026(0x163)](_0x1ec026(0x164)));_0xecaaa9=_0x159fff;const _0x1891fc=_0x46ad2f[_0x159fff],_0x2e2bd=_0x17fe66[_0x159fff],_0x186315=_0x2e2bd[_0x1ec026(0x153)]>0x0?String(_0x2e2bd[_0x1ec026(0x153)])[_0x1ec026(0x160)](_0x560ca6):'\x20'[_0x1ec026(0x149)](_0x560ca6),_0x3f5111=_0x2e2bd[_0x1ec026(0x154)]>0x0?String(_0x2e2bd[_0x1ec026(0x154)])['padStart'](_0x560ca6):'\x20'[_0x1ec026(0x149)](_0x560ca6);switch(_0x1891fc['type']){case _0x1ec026(0x15d):_0x524f1c[_0x1ec026(0x166)](a81_0x537649[_0x1ec026(0x14b)](_0x186315+'\x20'+_0x3f5111+_0x1ec026(0x15b)+_0x1891fc[_0x1ec026(0x159)]));break;case _0x1ec026(0x14a):_0x524f1c[_0x1ec026(0x166)](a81_0x537649[_0x1ec026(0x156)](_0x186315+'\x20'+_0x3f5111+_0x1ec026(0x16a)+_0x1891fc[_0x1ec026(0x159)]));break;default:_0x524f1c[_0x1ec026(0x166)](a81_0x537649[_0x1ec026(0x16b)](_0x186315+'\x20'+_0x3f5111+_0x1ec026(0x15f)+_0x1891fc['content']));break;}}return _0x524f1c['join']('\x0a');}export function hasChanges(_0x5c6b48){const _0x322438=a81_0x9c14;return _0x5c6b48[_0x322438(0x15a)](_0x12d688=>_0x12d688['type']!==_0x322438(0x162));}
@@ -1 +1 @@
1
- (function(_0x3d96f5,_0x7ce5e8){const _0xf4e8de=a82_0x2e80,_0x161664=_0x3d96f5();while(!![]){try{const _0x34d6a0=-parseInt(_0xf4e8de(0x92))/0x1+parseInt(_0xf4e8de(0x8b))/0x2*(parseInt(_0xf4e8de(0x94))/0x3)+-parseInt(_0xf4e8de(0x76))/0x4*(-parseInt(_0xf4e8de(0x8e))/0x5)+parseInt(_0xf4e8de(0x70))/0x6+parseInt(_0xf4e8de(0x6c))/0x7+parseInt(_0xf4e8de(0x95))/0x8*(parseInt(_0xf4e8de(0x7f))/0x9)+parseInt(_0xf4e8de(0x7d))/0xa*(-parseInt(_0xf4e8de(0x73))/0xb);if(_0x34d6a0===_0x7ce5e8)break;else _0x161664['push'](_0x161664['shift']());}catch(_0x14c500){_0x161664['push'](_0x161664['shift']());}}}(a82_0x3afa,0xc646b));import a82_0x165fd1 from'chalk';function a82_0x3afa(){const _0x4731b8=['Unknown','verbose','\x20\x20\x20\x20','columns','varchar','behaviorName','10hjpmcm','YES','8073ZiFBXR','sort','entries','trim','error','attribute','length','get','bold','replace','filter','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','2IsHeEW','slice','data','5hGcGHv','set','cyan','column_type','132136LTutkR','information_schema','3305319NXMLcK','10016vvHvBO','parentColumn','extra','null','parentTableName','source','key','name','localeCompare','column_name','size','query','SELECT\x20*\x20FROM\x20(\x0a','749511FjDowR','Behaviors','dim','push','5182638VOyqnM','startsWith','Schema\x20query:\x0a','37240511UvXILi','behavior','type','4536452MuejKM'];a82_0x3afa=function(){return _0x4731b8;};return a82_0x3afa();}import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x4cd076){const _0x1c3809=a82_0x2e80,_0x280f18=_0x4cd076[_0x1c3809(0x7a)]['map'](_0x4a7417=>({'column_name':_0x4a7417['name'],'column_type':_0x4a7417[_0x1c3809(0x75)],'null':_0x1c3809(0x7e),'key':null,'default':null,'extra':null}));return{..._0x4cd076,'columns':[{'name':_0x1c3809(0x9e),'type':_0x1c3809(0x7b)},{'name':_0x1c3809(0x91),'type':'varchar'},{'name':_0x1c3809(0x98),'type':_0x1c3809(0x7b)},{'name':_0x1c3809(0x9b),'type':_0x1c3809(0x7b)},{'name':'default','type':_0x1c3809(0x7b)},{'name':_0x1c3809(0x97),'type':_0x1c3809(0x7b)}],'data':_0x280f18};}export async function executeSchemaQuery(_0xa69b20,_0x41cdd2,_0x28c8de){const _0x44857c=a82_0x2e80,_0x480f70=_0xa69b20[_0x44857c(0x82)]()[_0x44857c(0x88)](/;+$/,''),_0x25484e=_0x44857c(0x6b)+_0x480f70+_0x44857c(0x8a);_0x28c8de['verbose']&&console[_0x44857c(0x83)](_0x44857c(0x72)+_0x25484e);const _0x2af7ac=await withQuerySpinner('Fetching\x20schema...',async _0xf7522d=>{const _0x1549c5=_0x44857c,_0x4ec3a4=await _0x41cdd2[_0x1549c5(0x6a)]['execute'](_0x25484e,{'catalog':'td','schema':_0x1549c5(0x93),'onJobId':_0x172622=>{_0xf7522d['setJobId'](_0x172622);}});return _0x4ec3a4;},{'verbose':_0x28c8de[_0x44857c(0x78)]});return buildSchemaResult(_0x2af7ac[_0x44857c(0x8d)]);}function a82_0x2e80(_0x40d0bb,_0x39bf2b){const _0x3afa59=a82_0x3afa();return a82_0x2e80=function(_0x2e80fc,_0xeda083){_0x2e80fc=_0x2e80fc-0x6a;let _0x2344cc=_0x3afa59[_0x2e80fc];return _0x2344cc;},a82_0x2e80(_0x40d0bb,_0x39bf2b);}export function displayFieldsHumanReadable(_0x16562b,_0x2f0189){const _0x5d8d69=a82_0x2e80,_0x3a500f=_0x16562b[_0x5d8d69(0x89)](_0x4f629e=>_0x4f629e[_0x5d8d69(0x9a)]===_0x5d8d69(0x84)),_0x406ab3=_0x16562b[_0x5d8d69(0x89)](_0x2bc293=>_0x2bc293[_0x5d8d69(0x9a)]===_0x5d8d69(0x74)),_0x9d1507=new Map();for(const _0x3e5157 of _0x3a500f){const _0x40f1c3=_0x3e5157[_0x5d8d69(0x99)]||_0x5d8d69(0x77),_0x4c2a48=_0x9d1507[_0x5d8d69(0x86)](_0x40f1c3)||[];_0x4c2a48[_0x5d8d69(0x6f)](_0x3e5157),_0x9d1507[_0x5d8d69(0x8f)](_0x40f1c3,_0x4c2a48);}const _0x58c06e=new Map();for(const _0xdd4645 of _0x406ab3){const _0x132a4a=_0xdd4645[_0x5d8d69(0x7c)]||_0x5d8d69(0x77),_0x13fc03=_0x58c06e['get'](_0x132a4a)||[];_0x13fc03['push'](_0xdd4645),_0x58c06e[_0x5d8d69(0x8f)](_0x132a4a,_0x13fc03);}console[_0x5d8d69(0x83)]('\x0a'+a82_0x165fd1[_0x5d8d69(0x87)](_0x2f0189));if(_0x9d1507[_0x5d8d69(0x9f)]>0x0){console[_0x5d8d69(0x83)]('\x0a'+a82_0x165fd1[_0x5d8d69(0x6e)]('Attributes'));const _0x571cbd=[..._0x9d1507[_0x5d8d69(0x81)]()]['sort']((_0x87042c,_0x175c92)=>_0x87042c[0x0][_0x5d8d69(0x9d)](_0x175c92[0x0]));for(const [_0x4fb941,_0x5b100c]of _0x571cbd){console[_0x5d8d69(0x83)]('\x20\x20'+a82_0x165fd1[_0x5d8d69(0x87)](_0x4fb941));const _0x23b3b7=[..._0x5b100c][_0x5d8d69(0x80)]((_0x48ce55,_0x508978)=>_0x48ce55[_0x5d8d69(0x9c)][_0x5d8d69(0x9d)](_0x508978[_0x5d8d69(0x9c)]));for(const _0x4f7e69 of _0x23b3b7){const _0x4b11b8=_0x4f7e69[_0x5d8d69(0x96)]&&_0x4f7e69[_0x5d8d69(0x96)]!==_0x4f7e69['name']?'\x20'+a82_0x165fd1[_0x5d8d69(0x6e)]('('+_0x4f7e69[_0x5d8d69(0x96)]+')'):'';console['error'](_0x5d8d69(0x79)+_0x4f7e69[_0x5d8d69(0x9c)]+_0x4b11b8+':\x20'+a82_0x165fd1[_0x5d8d69(0x90)](_0x4f7e69[_0x5d8d69(0x75)]));}}}if(_0x58c06e['size']>0x0){console[_0x5d8d69(0x83)]('\x0a'+a82_0x165fd1[_0x5d8d69(0x6e)](_0x5d8d69(0x6d)));const _0x342ae0=[..._0x58c06e[_0x5d8d69(0x81)]()]['sort']((_0x1d1eb2,_0x207c37)=>_0x1d1eb2[0x0][_0x5d8d69(0x9d)](_0x207c37[0x0]));for(const [_0x1c553b,_0x499a6c]of _0x342ae0){const _0x534c0b=_0x499a6c[0x0],_0x4560ca=_0x534c0b?.[_0x5d8d69(0x99)]||'';console[_0x5d8d69(0x83)]('\x20\x20'+a82_0x165fd1['bold'](_0x1c553b)+(_0x4560ca?'\x20'+a82_0x165fd1[_0x5d8d69(0x6e)]('('+_0x4560ca+')'):''));const _0x528249=[..._0x499a6c]['sort']((_0x365a80,_0x5d0961)=>_0x365a80[_0x5d8d69(0x9c)][_0x5d8d69(0x9d)](_0x5d0961[_0x5d8d69(0x9c)]));for(const _0x6df7d7 of _0x528249){const _0x256fba=_0x6df7d7['name'][_0x5d8d69(0x71)](_0x1c553b+'.')?_0x6df7d7[_0x5d8d69(0x9c)][_0x5d8d69(0x8c)](_0x1c553b[_0x5d8d69(0x85)]+0x1):_0x6df7d7['name'],_0x2a5b40=_0x6df7d7[_0x5d8d69(0x96)]&&_0x6df7d7[_0x5d8d69(0x96)]!==_0x256fba?'\x20'+a82_0x165fd1[_0x5d8d69(0x6e)]('('+_0x6df7d7[_0x5d8d69(0x96)]+')'):'';console[_0x5d8d69(0x83)](_0x5d8d69(0x79)+_0x256fba+_0x2a5b40+':\x20'+a82_0x165fd1['cyan'](_0x6df7d7[_0x5d8d69(0x75)]));}}}console[_0x5d8d69(0x83)]('');}
1
+ function a82_0x59fe(_0x1f1833,_0x257668){const _0x3651c4=a82_0x3651();return a82_0x59fe=function(_0x59fe39,_0x2567a6){_0x59fe39=_0x59fe39-0xa6;let _0x29e983=_0x3651c4[_0x59fe39];return _0x29e983;},a82_0x59fe(_0x1f1833,_0x257668);}(function(_0x50b97b,_0x2d7e63){const _0x566864=a82_0x59fe,_0x4b88f6=_0x50b97b();while(!![]){try{const _0x4b6f4e=-parseInt(_0x566864(0xc5))/0x1*(-parseInt(_0x566864(0xb7))/0x2)+-parseInt(_0x566864(0xcd))/0x3*(-parseInt(_0x566864(0xcf))/0x4)+parseInt(_0x566864(0xd4))/0x5+parseInt(_0x566864(0xc2))/0x6+-parseInt(_0x566864(0xad))/0x7+parseInt(_0x566864(0xbe))/0x8*(parseInt(_0x566864(0xc4))/0x9)+-parseInt(_0x566864(0xcc))/0xa*(parseInt(_0x566864(0xbc))/0xb);if(_0x4b6f4e===_0x2d7e63)break;else _0x4b88f6['push'](_0x4b88f6['shift']());}catch(_0x1591e9){_0x4b88f6['push'](_0x4b88f6['shift']());}}}(a82_0x3651,0x4f31e));function a82_0x3651(){const _0x494897=['1320888aXqzkI','Attributes','27ZPjjJl','22241arAFjt','Behaviors','error','map','setJobId','entries','trim','10vteELa','6hiJRbq','behavior','512188GVOPgV','verbose','sort','length','columns','2458865pQJZZN','\x20\x20\x20\x20','size','localeCompare','type','behaviorName','get','data','dim','3918971bSdupB','Schema\x20query:\x0a','default','push','parentColumn','varchar','source','execute','name','column_name','12ljQXtD','attribute','parentTableName','YES','startsWith','8209399iUtTMc','information_schema','1410888gyBpDH','filter','key','\x0a)\x20AS\x20segment_query\x20LIMIT\x200'];a82_0x3651=function(){return _0x494897;};return a82_0x3651();}import a82_0x11d25d from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x536bff){const _0x2ef23a=a82_0x59fe,_0x2ed330=_0x536bff[_0x2ef23a(0xd3)][_0x2ef23a(0xc8)](_0x188987=>({'column_name':_0x188987[_0x2ef23a(0xb5)],'column_type':_0x188987[_0x2ef23a(0xa8)],'null':_0x2ef23a(0xba),'key':null,'default':null,'extra':null}));return{..._0x536bff,'columns':[{'name':_0x2ef23a(0xb6),'type':'varchar'},{'name':'column_type','type':'varchar'},{'name':'null','type':_0x2ef23a(0xb2)},{'name':_0x2ef23a(0xc0),'type':'varchar'},{'name':_0x2ef23a(0xaf),'type':'varchar'},{'name':'extra','type':'varchar'}],'data':_0x2ed330};}export async function executeSchemaQuery(_0x4a0ee9,_0xcf6852,_0x4896b9){const _0x2d1f77=a82_0x59fe,_0x3edc80=_0x4a0ee9[_0x2d1f77(0xcb)]()['replace'](/;+$/,''),_0x115c34='SELECT\x20*\x20FROM\x20(\x0a'+_0x3edc80+_0x2d1f77(0xc1);_0x4896b9[_0x2d1f77(0xd0)]&&console[_0x2d1f77(0xc7)](_0x2d1f77(0xae)+_0x115c34);const _0x4d0edb=await withQuerySpinner('Fetching\x20schema...',async _0x58d16a=>{const _0x3fced3=_0x2d1f77,_0x351fca=await _0xcf6852['query'][_0x3fced3(0xb4)](_0x115c34,{'catalog':'td','schema':_0x3fced3(0xbd),'onJobId':_0x1e00ac=>{const _0x22e180=_0x3fced3;_0x58d16a[_0x22e180(0xc9)](_0x1e00ac);}});return _0x351fca;},{'verbose':_0x4896b9[_0x2d1f77(0xd0)]});return buildSchemaResult(_0x4d0edb[_0x2d1f77(0xab)]);}export function displayFieldsHumanReadable(_0x33b8a6,_0x44373e){const _0xd5190a=a82_0x59fe,_0x272cf4=_0x33b8a6[_0xd5190a(0xbf)](_0xca9516=>_0xca9516[_0xd5190a(0xb3)]===_0xd5190a(0xb8)),_0x3c2158=_0x33b8a6['filter'](_0xd17fbf=>_0xd17fbf[_0xd5190a(0xb3)]===_0xd5190a(0xce)),_0x3a98f1=new Map();for(const _0x34d425 of _0x272cf4){const _0x1255e5=_0x34d425[_0xd5190a(0xb9)]||'Unknown',_0x34eebb=_0x3a98f1[_0xd5190a(0xaa)](_0x1255e5)||[];_0x34eebb[_0xd5190a(0xb0)](_0x34d425),_0x3a98f1['set'](_0x1255e5,_0x34eebb);}const _0x34040b=new Map();for(const _0x3a58a8 of _0x3c2158){const _0x1170b6=_0x3a58a8[_0xd5190a(0xa9)]||'Unknown',_0x5c27ff=_0x34040b[_0xd5190a(0xaa)](_0x1170b6)||[];_0x5c27ff[_0xd5190a(0xb0)](_0x3a58a8),_0x34040b['set'](_0x1170b6,_0x5c27ff);}console['error']('\x0a'+a82_0x11d25d['bold'](_0x44373e));if(_0x3a98f1['size']>0x0){console[_0xd5190a(0xc7)]('\x0a'+a82_0x11d25d[_0xd5190a(0xac)](_0xd5190a(0xc3)));const _0x207650=[..._0x3a98f1[_0xd5190a(0xca)]()][_0xd5190a(0xd1)]((_0x50389b,_0x5ee71b)=>_0x50389b[0x0]['localeCompare'](_0x5ee71b[0x0]));for(const [_0x1e7d0f,_0x3c1a47]of _0x207650){console[_0xd5190a(0xc7)]('\x20\x20'+a82_0x11d25d['bold'](_0x1e7d0f));const _0x11428c=[..._0x3c1a47][_0xd5190a(0xd1)]((_0x269361,_0x2d9bd0)=>_0x269361[_0xd5190a(0xb5)][_0xd5190a(0xa7)](_0x2d9bd0[_0xd5190a(0xb5)]));for(const _0x2a83a3 of _0x11428c){const _0x378cf9=_0x2a83a3[_0xd5190a(0xb1)]&&_0x2a83a3[_0xd5190a(0xb1)]!==_0x2a83a3['name']?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x2a83a3['parentColumn']+')'):'';console[_0xd5190a(0xc7)](_0xd5190a(0xd5)+_0x2a83a3['name']+_0x378cf9+':\x20'+a82_0x11d25d['cyan'](_0x2a83a3[_0xd5190a(0xa8)]));}}}if(_0x34040b[_0xd5190a(0xa6)]>0x0){console['error']('\x0a'+a82_0x11d25d[_0xd5190a(0xac)](_0xd5190a(0xc6)));const _0x19283a=[..._0x34040b[_0xd5190a(0xca)]()][_0xd5190a(0xd1)]((_0x57067f,_0x3e82c2)=>_0x57067f[0x0]['localeCompare'](_0x3e82c2[0x0]));for(const [_0x50840f,_0x286960]of _0x19283a){const _0x27962f=_0x286960[0x0],_0x3df54b=_0x27962f?.[_0xd5190a(0xb9)]||'';console[_0xd5190a(0xc7)]('\x20\x20'+a82_0x11d25d['bold'](_0x50840f)+(_0x3df54b?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x3df54b+')'):''));const _0x5f0a9e=[..._0x286960][_0xd5190a(0xd1)]((_0x1994e3,_0x1892e1)=>_0x1994e3[_0xd5190a(0xb5)][_0xd5190a(0xa7)](_0x1892e1[_0xd5190a(0xb5)]));for(const _0x2c64e7 of _0x5f0a9e){const _0x58e8dd=_0x2c64e7[_0xd5190a(0xb5)][_0xd5190a(0xbb)](_0x50840f+'.')?_0x2c64e7[_0xd5190a(0xb5)]['slice'](_0x50840f[_0xd5190a(0xd2)]+0x1):_0x2c64e7[_0xd5190a(0xb5)],_0xd1584d=_0x2c64e7[_0xd5190a(0xb1)]&&_0x2c64e7[_0xd5190a(0xb1)]!==_0x58e8dd?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x2c64e7[_0xd5190a(0xb1)]+')'):'';console[_0xd5190a(0xc7)](_0xd5190a(0xd5)+_0x58e8dd+_0xd1584d+':\x20'+a82_0x11d25d['cyan'](_0x2c64e7[_0xd5190a(0xa8)]));}}}console[_0xd5190a(0xc7)]('');}
@@ -1 +1 @@
1
- (function(_0x3ce9e0,_0x336e13){const _0x261c8e=a83_0xff1d,_0xcf59af=_0x3ce9e0();while(!![]){try{const _0x2a9114=parseInt(_0x261c8e(0xc4))/0x1+-parseInt(_0x261c8e(0xce))/0x2*(-parseInt(_0x261c8e(0xc8))/0x3)+-parseInt(_0x261c8e(0xcf))/0x4+parseInt(_0x261c8e(0xc1))/0x5+parseInt(_0x261c8e(0xc9))/0x6*(parseInt(_0x261c8e(0xc5))/0x7)+parseInt(_0x261c8e(0xca))/0x8*(-parseInt(_0x261c8e(0xcd))/0x9)+-parseInt(_0x261c8e(0xc6))/0xa;if(_0x2a9114===_0x336e13)break;else _0xcf59af['push'](_0xcf59af['shift']());}catch(_0x1ba254){_0xcf59af['push'](_0xcf59af['shift']());}}}(a83_0x3663,0xe9556));import*as a83_0x36de71 from'node:fs';import*as a83_0x5977b6 from'node:path';export function setSecureFilePermissions(_0x2e83bf){const _0x195a34=a83_0xff1d;try{a83_0x36de71[_0x195a34(0xcc)](_0x2e83bf,0x180);}catch{console[_0x195a34(0xcb)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x2e83bf);}}function a83_0xff1d(_0x426acc,_0x2ee5f9){const _0x36637c=a83_0x3663();return a83_0xff1d=function(_0xff1dd1,_0x36efa8){_0xff1dd1=_0xff1dd1-0xbf;let _0x1dcaf3=_0x36637c[_0xff1dd1];return _0x1dcaf3;},a83_0xff1d(_0x426acc,_0x2ee5f9);}export function setSecureDirectoryPermissions(_0x4f971d){const _0xfd4545=a83_0xff1d;try{a83_0x36de71[_0xfd4545(0xcc)](_0x4f971d,0x1c0);}catch{console[_0xfd4545(0xcb)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4f971d);}}export function createSecureDirectory(_0x5b821a){!a83_0x36de71['existsSync'](_0x5b821a)&&(a83_0x36de71['mkdirSync'](_0x5b821a,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5b821a));}export function validateSecureFilePermissions(_0x12109f){const _0x383e7e=a83_0xff1d;try{const _0xca4c7d=a83_0x36de71[_0x383e7e(0xc0)](_0x12109f),_0x23e2ba=_0xca4c7d[_0x383e7e(0xbf)]&0x1ff,_0x36ac64=(_0x23e2ba&0x3f)!==0x0;if(_0x36ac64)return console[_0x383e7e(0xcb)]('Warning:\x20'+_0x12109f+'\x20has\x20insecure\x20permissions\x20('+_0x23e2ba[_0x383e7e(0xc3)](0x8)+_0x383e7e(0xc7)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}function a83_0x3663(){const _0xc0519=['chmodSync','261jyDgqk','102066CGgyju','5490952sRmUlS','mode','statSync','1478245JXOIpM','writeFileSync','toString','1651685CeSDsU','151445mKfEkt','739180mVnBOK',').\x20','57IWMfCe','30UdbQME','171792kMRHac','warn'];a83_0x3663=function(){return _0xc0519;};return a83_0x3663();}export function writeSecureFile(_0x53a1e9,_0x36ef7d){const _0x32c846=a83_0xff1d,_0x248314=a83_0x5977b6['dirname'](_0x53a1e9);createSecureDirectory(_0x248314),a83_0x36de71[_0x32c846(0xc2)](_0x53a1e9,_0x36ef7d,{'mode':0x180}),setSecureFilePermissions(_0x53a1e9);}
1
+ function a83_0x31ab(){const _0x2146ca=['toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1977387tGwNcB','343125NovUGj','dirname','3480WmxBxP','12355oBbFtA','mode','2aCigLc','writeFileSync','warn','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.',').\x20','statSync','2399864vZIkQG','existsSync','4247040fNtEdo','Warning:\x20','2220273FlDsNH','550170asyJdW','chmodSync','60tgXnst'];a83_0x31ab=function(){return _0x2146ca;};return a83_0x31ab();}(function(_0x1836c6,_0x1f0886){const _0x298c5f=a83_0x1a8b,_0x42702b=_0x1836c6();while(!![]){try{const _0x3e8194=-parseInt(_0x298c5f(0x116))/0x1+parseInt(_0x298c5f(0x121))/0x2*(parseInt(_0x298c5f(0x11b))/0x3)+parseInt(_0x298c5f(0x128))/0x4+parseInt(_0x298c5f(0x11c))/0x5*(parseInt(_0x298c5f(0x118))/0x6)+-parseInt(_0x298c5f(0x11f))/0x7*(parseInt(_0x298c5f(0x11e))/0x8)+parseInt(_0x298c5f(0x115))/0x9+-parseInt(_0x298c5f(0x113))/0xa;if(_0x3e8194===_0x1f0886)break;else _0x42702b['push'](_0x42702b['shift']());}catch(_0x5174c2){_0x42702b['push'](_0x42702b['shift']());}}}(a83_0x31ab,0x6db71));import*as a83_0x12a4a2 from'node:fs';import*as a83_0x40af7a from'node:path';function a83_0x1a8b(_0xc32a89,_0x14f9a2){const _0x31ab79=a83_0x31ab();return a83_0x1a8b=function(_0x1a8bfe,_0x521982){_0x1a8bfe=_0x1a8bfe-0x112;let _0x11df67=_0x31ab79[_0x1a8bfe];return _0x11df67;},a83_0x1a8b(_0xc32a89,_0x14f9a2);}export function setSecureFilePermissions(_0x416408){const _0x2c60e3=a83_0x1a8b;try{a83_0x12a4a2[_0x2c60e3(0x117)](_0x416408,0x180);}catch{console[_0x2c60e3(0x123)](_0x2c60e3(0x11a)+_0x416408);}}export function setSecureDirectoryPermissions(_0x3265ab){const _0x252004=a83_0x1a8b;try{a83_0x12a4a2[_0x252004(0x117)](_0x3265ab,0x1c0);}catch{console[_0x252004(0x123)](_0x252004(0x11a)+_0x3265ab);}}export function createSecureDirectory(_0x52e9c9){const _0x46fad5=a83_0x1a8b;!a83_0x12a4a2[_0x46fad5(0x112)](_0x52e9c9)&&(a83_0x12a4a2[_0x46fad5(0x124)](_0x52e9c9,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x52e9c9));}export function validateSecureFilePermissions(_0xb51c69){const _0x403aa3=a83_0x1a8b;try{const _0x153878=a83_0x12a4a2[_0x403aa3(0x127)](_0xb51c69),_0x59fe7e=_0x153878[_0x403aa3(0x120)]&0x1ff,_0x3fe803=(_0x59fe7e&0x3f)!==0x0;if(_0x3fe803)return console[_0x403aa3(0x123)](_0x403aa3(0x114)+_0xb51c69+'\x20has\x20insecure\x20permissions\x20('+_0x59fe7e[_0x403aa3(0x119)](0x8)+_0x403aa3(0x126)+_0x403aa3(0x125)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x491f58,_0x4e08d4){const _0x3fca61=a83_0x1a8b,_0x39ef45=a83_0x40af7a[_0x3fca61(0x11d)](_0x491f58);createSecureDirectory(_0x39ef45),a83_0x12a4a2[_0x3fca61(0x122)](_0x491f58,_0x4e08d4,{'mode':0x180}),setSecureFilePermissions(_0x491f58);}
@@ -1 +1 @@
1
- (function(_0x3f3b98,_0x224e56){const _0x3d6d41=a84_0x57b3,_0x20c87d=_0x3f3b98();while(!![]){try{const _0x3e9edc=parseInt(_0x3d6d41(0x1c3))/0x1+parseInt(_0x3d6d41(0x1c5))/0x2+parseInt(_0x3d6d41(0x1be))/0x3+-parseInt(_0x3d6d41(0x1ca))/0x4*(parseInt(_0x3d6d41(0x1c6))/0x5)+-parseInt(_0x3d6d41(0x1cc))/0x6*(parseInt(_0x3d6d41(0x1ce))/0x7)+-parseInt(_0x3d6d41(0x1c2))/0x8*(parseInt(_0x3d6d41(0x1cd))/0x9)+-parseInt(_0x3d6d41(0x1cb))/0xa;if(_0x3e9edc===_0x224e56)break;else _0x20c87d['push'](_0x20c87d['shift']());}catch(_0x404a46){_0x20c87d['push'](_0x20c87d['shift']());}}}(a84_0x4026,0x9a6e6));export function detectFormatFromExtension(_0x91a28c){const _0xb2b672=a84_0x57b3,_0x20963f=_0x91a28c[_0xb2b672(0x1c9)]()[_0xb2b672(0x1c0)]('.')[_0xb2b672(0x1cf)]();switch(_0x20963f){case'json':return _0xb2b672(0x1bf);case'jsonl':return _0xb2b672(0x1c1);case _0xb2b672(0x1c8):case'tab':return _0xb2b672(0x1c8);case _0xb2b672(0x1c4):case _0xb2b672(0x1d0):return _0xb2b672(0x1c7);default:return undefined;}}export function resolveOutputFormat(_0xbc5fe9,_0x24c86b,_0x554161){if(_0xbc5fe9)return _0xbc5fe9;if(_0x24c86b){const _0x1161c5=detectFormatFromExtension(_0x24c86b);if(_0x1161c5)return _0x1161c5;}return _0x554161;}function a84_0x57b3(_0x22034d,_0x33efbc){const _0x402687=a84_0x4026();return a84_0x57b3=function(_0x57b353,_0x62902b){_0x57b353=_0x57b353-0x1be;let _0x5c0f6f=_0x402687[_0x57b353];return _0x5c0f6f;},a84_0x57b3(_0x22034d,_0x33efbc);}function a84_0x4026(){const _0x3d19ce=['112311JKLrtY','7Ojsslp','pop','text','1098804JsYuJG','json','split','jsonl','152bHVhPK','797617sQdmBr','txt','2126994QxQrPe','1794530FDnMFn','table','tsv','toLowerCase','4ElDAvd','4177410apvOrD','3486504vFdndn'];a84_0x4026=function(){return _0x3d19ce;};return a84_0x4026();}
1
+ (function(_0x317d27,_0x3a39fa){const _0xbc631f=a84_0x1ae5,_0x40492a=_0x317d27();while(!![]){try{const _0x4a2176=parseInt(_0xbc631f(0x1e0))/0x1+parseInt(_0xbc631f(0x1e3))/0x2*(-parseInt(_0xbc631f(0x1e1))/0x3)+parseInt(_0xbc631f(0x1ee))/0x4*(-parseInt(_0xbc631f(0x1e6))/0x5)+parseInt(_0xbc631f(0x1df))/0x6+parseInt(_0xbc631f(0x1e2))/0x7*(-parseInt(_0xbc631f(0x1ed))/0x8)+parseInt(_0xbc631f(0x1e5))/0x9*(parseInt(_0xbc631f(0x1eb))/0xa)+parseInt(_0xbc631f(0x1e8))/0xb;if(_0x4a2176===_0x3a39fa)break;else _0x40492a['push'](_0x40492a['shift']());}catch(_0x28ffb8){_0x40492a['push'](_0x40492a['shift']());}}}(a84_0x267f,0xb49a1));export function detectFormatFromExtension(_0x19b880){const _0x503af0=a84_0x1ae5,_0x36ea14=_0x19b880[_0x503af0(0x1e7)]()['split']('.')['pop']();switch(_0x36ea14){case _0x503af0(0x1e4):return _0x503af0(0x1e4);case _0x503af0(0x1ef):return _0x503af0(0x1ef);case _0x503af0(0x1ec):case _0x503af0(0x1e9):return _0x503af0(0x1ec);case _0x503af0(0x1f0):case'text':return _0x503af0(0x1ea);default:return undefined;}}function a84_0x267f(){const _0x21d479=['626hgklLK','json','9fuhXDJ','50980mfxkuN','toLowerCase','13368839bPYHMG','tab','table','10078230adCEsJ','tsv','812872FYwsrK','324IhBbpk','jsonl','txt','2469858GBhjbN','676569CBHuie','12837GGcFeA','28wRrKZW'];a84_0x267f=function(){return _0x21d479;};return a84_0x267f();}function a84_0x1ae5(_0x2825ae,_0x52c163){const _0x267f39=a84_0x267f();return a84_0x1ae5=function(_0x1ae52c,_0x5129f9){_0x1ae52c=_0x1ae52c-0x1df;let _0x47b113=_0x267f39[_0x1ae52c];return _0x47b113;},a84_0x1ae5(_0x2825ae,_0x52c163);}export function resolveOutputFormat(_0x1a8444,_0x5146c8,_0x113ad9){if(_0x1a8444)return _0x1a8444;if(_0x5146c8){const _0xe2ac65=detectFormatFromExtension(_0x5146c8);if(_0xe2ac65)return _0xe2ac65;}return _0x113ad9;}
@@ -1 +1 @@
1
- (function(_0xe8e20c,_0x570327){const _0x1cdbf7=a85_0x2af6,_0x4df4b1=_0xe8e20c();while(!![]){try{const _0x4e0922=-parseInt(_0x1cdbf7(0x1ed))/0x1*(-parseInt(_0x1cdbf7(0x1fd))/0x2)+parseInt(_0x1cdbf7(0x21e))/0x3+parseInt(_0x1cdbf7(0x1f6))/0x4+parseInt(_0x1cdbf7(0x21d))/0x5*(-parseInt(_0x1cdbf7(0x207))/0x6)+parseInt(_0x1cdbf7(0x216))/0x7+parseInt(_0x1cdbf7(0x1f3))/0x8+-parseInt(_0x1cdbf7(0x224))/0x9;if(_0x4e0922===_0x570327)break;else _0x4df4b1['push'](_0x4df4b1['shift']());}catch(_0x403d8b){_0x4df4b1['push'](_0x4df4b1['shift']());}}}(a85_0x109e,0x43f64));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 a85_0x2af6(_0x4d3938,_0xde5c17){const _0x109e1a=a85_0x109e();return a85_0x2af6=function(_0x2af676,_0x1f9562){_0x2af676=_0x2af676-0x1ed;let _0x42bd12=_0x109e1a[_0x2af676];return _0x42bd12;},a85_0x2af6(_0x4d3938,_0xde5c17);}function getTerminalWidth(){const _0x22f5bd=a85_0x2af6;return process[_0x22f5bd(0x1f7)][_0x22f5bd(0x1f1)]||Infinity;}export function formatAsTable(_0x1a44d1,_0x4cabba=DEFAULT_MAX_DISPLAY_ROWS,_0x492f09=![],_0x1a01b8={}){const _0x3df6e8=a85_0x2af6;if(_0x1a44d1[_0x3df6e8(0x21c)][_0x3df6e8(0x1ee)]===0x0)return _0x3df6e8(0x1fa);const _0x314245=_0x1a44d1[_0x3df6e8(0x1f1)][_0x3df6e8(0x201)](_0x59454c=>_0x59454c[_0x3df6e8(0x20d)]),_0x225a4f=_0x1a44d1[_0x3df6e8(0x1f1)][_0x3df6e8(0x201)](_0x469a65=>simplifyType(_0x469a65[_0x3df6e8(0x204)])),_0x51dbbd=_0x1a44d1['data'][_0x3df6e8(0x1ef)](0x0,_0x4cabba),_0x581e02=_0x1a44d1['data'][_0x3df6e8(0x1ee)],_0x3de2b6=_0x581e02>_0x4cabba,_0x342eec=[],_0x141ef1=getTerminalWidth(),_0x2f5474=_0x141ef1!==Infinity,_0x3ffae4=0x32;let _0x11c762=_0x314245[_0x3df6e8(0x201)]((_0xc230a1,_0x5748b8)=>{const _0x5009b3=_0x3df6e8,_0x53fc44=stringWidth(_0x225a4f[_0x5748b8]),_0x432315=Math['max'](..._0x51dbbd[_0x5009b3(0x201)](_0x3bd286=>{const _0x570651=_0x3bd286[_0xc230a1];return stringWidth(formatValue(_0x570651));})),_0x1e33f7=Math[_0x5009b3(0x218)](stringWidth(_0xc230a1),_0x53fc44,_0x432315);return _0x492f09?_0x1e33f7:Math[_0x5009b3(0x1f2)](_0x1e33f7,_0x3ffae4);});if(_0x2f5474&&!_0x492f09&&_0x314245[_0x3df6e8(0x1ee)]>0x0){const _0x70dd5b=_0x2fbe42=>{let _0x24d587=0x1;for(const _0x459638 of _0x2fbe42){_0x24d587+=_0x459638+0x3;}return _0x24d587+0x1;};let _0x499652=_0x70dd5b(_0x11c762);if(_0x499652>_0x141ef1){const _0x21199f=0x3;for(let _0x1d5166=_0x11c762[_0x3df6e8(0x1ee)]-0x1;_0x1d5166>=0x0;_0x1d5166--){_0x499652=_0x70dd5b(_0x11c762);if(_0x499652<=_0x141ef1)break;const _0x48aeeb=_0x11c762[_0x1d5166],_0x16116a=_0x499652-_0x141ef1,_0x29db0c=_0x48aeeb-_0x21199f,_0x5b924f=Math[_0x3df6e8(0x1f2)](_0x16116a,_0x29db0c);_0x5b924f>0x0&&(_0x11c762[_0x1d5166]=_0x48aeeb-_0x5b924f);}}}const _0x5a995f=_0x314245,_0x23e517=_0x225a4f,_0x4c5526=_0x11c762,_0x1974a5=_0x11c762;_0x342eec[_0x3df6e8(0x1ff)](colorBorder('┌'+_0x1974a5[_0x3df6e8(0x201)](_0x1a2070=>'─'[_0x3df6e8(0x210)](_0x1a2070+0x2))[_0x3df6e8(0x1f4)]('┬')+'┐',_0x1a01b8));const _0x1d6346=_0x5a995f[_0x3df6e8(0x201)]((_0x20f8ce,_0x20129f)=>centerAlign(_0x20f8ce,_0x4c5526[_0x20129f]));_0x342eec[_0x3df6e8(0x1ff)](colorBorder('│',_0x1a01b8)+'\x20'+_0x1d6346['join']('\x20'+colorBorder('│',_0x1a01b8)+'\x20')+'\x20'+colorBorder('│',_0x1a01b8));const _0x407b30=_0x23e517['map']((_0x1cc70e,_0x1dcfac)=>colorType(centerAlign(_0x1cc70e,_0x4c5526[_0x1dcfac]),_0x1a01b8));_0x342eec[_0x3df6e8(0x1ff)](colorBorder('│',_0x1a01b8)+'\x20'+_0x407b30[_0x3df6e8(0x1f4)]('\x20'+colorBorder('│',_0x1a01b8)+'\x20')+'\x20'+colorBorder('│',_0x1a01b8)),_0x342eec['push'](colorBorder('├'+_0x1974a5[_0x3df6e8(0x201)](_0x4fcb62=>'─'[_0x3df6e8(0x210)](_0x4fcb62+0x2))[_0x3df6e8(0x1f4)]('┼')+'┤',_0x1a01b8));const _0x236843=(_0x3bc9f1,_0x4efd2e)=>{const _0x1e4fd6=_0x3df6e8,_0x45ad23=stringWidth(_0x3bc9f1);if(_0x45ad23<=_0x4efd2e)return _0x3bc9f1;let _0x239c04=_0x3bc9f1;while(stringWidth(_0x239c04+'…')>_0x4efd2e&&_0x239c04[_0x1e4fd6(0x1ee)]>0x0){_0x239c04=_0x239c04['slice'](0x0,-0x1);}return _0x239c04+'…';};_0x51dbbd[_0x3df6e8(0x214)](_0xe72444=>{const _0x476359=_0x3df6e8,_0x1ffc40=_0x314245[_0x476359(0x201)]((_0x1ca64a,_0x4455ad)=>{const _0x182593=_0x476359,_0x35a727=_0xe72444[_0x1ca64a],_0x2d6395=formatValue(_0x35a727),_0x5d30dd=_0x4c5526[_0x4455ad],_0x484c4f=_0x236843(_0x2d6395,_0x5d30dd),_0x5f392d=typeof _0x35a727===_0x182593(0x223)||typeof _0x35a727===_0x182593(0x1f8)&&/^-?\d+$/[_0x182593(0x215)](_0x35a727);return _0x5f392d?padStart(_0x484c4f,_0x5d30dd):padEnd(_0x484c4f,_0x5d30dd);});_0x342eec['push'](colorBorder('│',_0x1a01b8)+'\x20'+_0x1ffc40['join']('\x20'+colorBorder('│',_0x1a01b8)+'\x20')+'\x20'+colorBorder('│',_0x1a01b8));});const _0x44531d=_0x1974a5['reduce']((_0x27203d,_0x242d5e)=>_0x27203d+_0x242d5e+0x3,-0x1);_0x342eec[_0x3df6e8(0x1ff)](colorBorder('├'+_0x1974a5[_0x3df6e8(0x201)](_0x284260=>'─'[_0x3df6e8(0x210)](_0x284260+0x2))['join']('┴')+'┤',_0x1a01b8));let _0xfd4c2e;_0x3de2b6?_0xfd4c2e=_0x581e02+'\x20rows\x20('+_0x4cabba+_0x3df6e8(0x1fe):_0xfd4c2e=_0x581e02+_0x3df6e8(0x213)+(_0x581e02===0x1?'':'s');const _0x2c32d1=_0xfd4c2e[_0x3df6e8(0x221)](_0x44531d-0x2);return _0x342eec[_0x3df6e8(0x1ff)](colorBorder('│',_0x1a01b8)+'\x20'+_0x2c32d1+'\x20'+colorBorder('│',_0x1a01b8)),_0x342eec[_0x3df6e8(0x1ff)](colorBorder('└'+'─'[_0x3df6e8(0x210)](_0x44531d)+'┘',_0x1a01b8)),_0x342eec['join']('\x0a');}function simplifyType(_0x5bc354){const _0x2f9d01=a85_0x2af6,_0x98bfdc={'varchar':_0x2f9d01(0x1f8),'bigint':_0x2f9d01(0x202),'integer':_0x2f9d01(0x20c),'double':'double','boolean':_0x2f9d01(0x1fb),'date':_0x2f9d01(0x222),'timestamp':_0x2f9d01(0x1fc),'array':_0x2f9d01(0x206),'map':_0x2f9d01(0x201),'row':_0x2f9d01(0x20a)},_0x10ce92=_0x5bc354['toLowerCase']();for(const [_0x3d0628,_0xdfbc8b]of Object[_0x2f9d01(0x21b)](_0x98bfdc)){if(_0x10ce92[_0x2f9d01(0x1f9)](_0x3d0628))return _0xdfbc8b;}return _0x5bc354[_0x2f9d01(0x1ee)]>0xa?_0x5bc354[_0x2f9d01(0x1f0)](0x0,0xa):_0x5bc354;}export function formatAsJSON(_0xb2b525,_0x174ea4={}){const _0x58719e=a85_0x2af6;if(_0xb2b525['data']['length']===0x0)return'[]';if(shouldUseColor(_0x174ea4))return colorizeJSON(_0xb2b525[_0x58719e(0x21c)],_0x174ea4);const _0x5b2e13=_0xb2b525['data'][_0x58719e(0x201)](_0x657ca5=>'\x20\x20'+JSON[_0x58719e(0x21a)](_0x657ca5));return'[\x0a'+_0x5b2e13[_0x58719e(0x1f4)](',\x0a')+'\x0a]';}function a85_0x109e(){const _0x2e5501=['array','156bDWWVr','json','toFixed','row','jsonl','int','name','false','replace','repeat','toString','tsv','\x20row','forEach','test','2372209cwHFkb','floor','max','true','stringify','entries','data','89090pMGLSN','1576551oozxiz','pow','boolean','padEnd','date','number','9392499QoMLtU','3lYgnBB','length','slice','substring','columns','min','3012184zkOeLd','join','log','1730164WUZQZP','stdout','string','startsWith','No\x20rows\x20returned','bool','timestamp','74522AQdVdO','\x20shown)','push','toISOString','map','long','object','type','0\x20B'];a85_0x109e=function(){return _0x2e5501;};return a85_0x109e();}export function formatAsJSONL(_0xc7b459,_0x573f8b={}){const _0x221946=a85_0x2af6;if(_0xc7b459['data']['length']===0x0)return'';if(shouldUseColor(_0x573f8b))return _0xc7b459[_0x221946(0x21c)][_0x221946(0x201)](_0x34bb59=>colorizeJSONCompact(_0x34bb59,_0x573f8b))[_0x221946(0x1f4)]('\x0a');return _0xc7b459[_0x221946(0x21c)]['map'](_0x232dd4=>JSON[_0x221946(0x21a)](_0x232dd4))[_0x221946(0x1f4)]('\x0a');}export function formatAsTSV(_0x2f43cf){const _0x299de0=a85_0x2af6;if(_0x2f43cf[_0x299de0(0x21c)]['length']===0x0)return'';const _0x477e36=[],_0x3445a6=_0x2f43cf['columns'][_0x299de0(0x201)](_0x18e14e=>_0x18e14e[_0x299de0(0x20d)]);return _0x477e36['push'](_0x3445a6['join']('\x09')),_0x2f43cf[_0x299de0(0x21c)][_0x299de0(0x214)](_0x59fbdd=>{const _0x452355=_0x299de0,_0x1a729e=_0x3445a6[_0x452355(0x201)](_0xaa94fb=>{const _0x59292c=_0x59fbdd[_0xaa94fb];return formatValueForTSV(_0x59292c);});_0x477e36[_0x452355(0x1ff)](_0x1a729e[_0x452355(0x1f4)]('\x09'));}),_0x477e36[_0x299de0(0x1f4)]('\x0a');}function formatValue(_0x3354d9){const _0x9728e3=a85_0x2af6;if(_0x3354d9===null||_0x3354d9===undefined)return'';if(typeof _0x3354d9===_0x9728e3(0x1f8)){const _0x15cc4c=_0x3354d9[_0x9728e3(0x20f)](/\n/g,'\x5cn')[_0x9728e3(0x20f)](/\r/g,'\x5cr')[_0x9728e3(0x20f)](/\t/g,'\x5ct');return _0x15cc4c;}if(typeof _0x3354d9===_0x9728e3(0x223))return String(_0x3354d9);if(typeof _0x3354d9==='boolean')return _0x3354d9?_0x9728e3(0x219):_0x9728e3(0x20e);if(_0x3354d9 instanceof Date)return _0x3354d9[_0x9728e3(0x200)]();if(typeof _0x3354d9===_0x9728e3(0x203))return JSON['stringify'](_0x3354d9);return String(_0x3354d9);}function formatValueForTSV(_0x2fda9e){const _0x5d2c3d=a85_0x2af6;if(_0x2fda9e===null||_0x2fda9e===undefined)return'';if(typeof _0x2fda9e===_0x5d2c3d(0x1f8))return _0x2fda9e[_0x5d2c3d(0x20f)](/\t/g,'\x5ct')[_0x5d2c3d(0x20f)](/\n/g,'\x5cn');if(typeof _0x2fda9e===_0x5d2c3d(0x223)||typeof _0x2fda9e===_0x5d2c3d(0x220))return String(_0x2fda9e);if(_0x2fda9e instanceof Date)return _0x2fda9e[_0x5d2c3d(0x200)]();if(typeof _0x2fda9e===_0x5d2c3d(0x203))return JSON[_0x5d2c3d(0x21a)](_0x2fda9e);return String(_0x2fda9e);}export function formatQueryResult(_0x97f23e,_0x567b44){const _0x391890=a85_0x2af6;switch(_0x567b44){case'table':return formatAsTable(_0x97f23e);case _0x391890(0x208):return formatAsJSON(_0x97f23e);case _0x391890(0x20b):return formatAsJSONL(_0x97f23e);case _0x391890(0x212):return formatAsTSV(_0x97f23e);default:return formatAsJSON(_0x97f23e);}}export function formatBytes(_0x2d06d0){const _0x2812af=a85_0x2af6;if(_0x2d06d0===0x0)return _0x2812af(0x205);const _0x91b936=['B','KB','MB','GB','TB'],_0x1caebf=0x400,_0x494e6a=Math[_0x2812af(0x217)](Math[_0x2812af(0x1f5)](_0x2d06d0)/Math[_0x2812af(0x1f5)](_0x1caebf)),_0x2857f6=_0x2d06d0/Math['pow'](_0x1caebf,_0x494e6a),_0xc6186b=_0x2857f6>=0xa?0x1:0x2;return _0x2857f6[_0x2812af(0x209)](_0xc6186b)+'\x20'+_0x91b936[_0x494e6a];}export function formatRows(_0x4833e2){const _0x2f6180=a85_0x2af6;if(_0x4833e2==null)return'-';if(_0x4833e2===0x0)return'0';if(_0x4833e2<0x3e8)return _0x4833e2[_0x2f6180(0x211)]();const _0x4e7fa1=['','K','M','B','T'],_0x2af266=0x3e8,_0x4745d5=Math['floor'](Math[_0x2f6180(0x1f5)](_0x4833e2)/Math['log'](_0x2af266)),_0xfe8d29=_0x4833e2/Math[_0x2f6180(0x21f)](_0x2af266,_0x4745d5),_0xa7e832=_0xfe8d29>=0xa?0x1:0x2;return''+_0xfe8d29[_0x2f6180(0x209)](_0xa7e832)+_0x4e7fa1[_0x4745d5];}
1
+ (function(_0x3da911,_0x373687){const _0xde121e=a85_0x229f,_0x56d224=_0x3da911();while(!![]){try{const _0x4850a8=-parseInt(_0xde121e(0x189))/0x1*(parseInt(_0xde121e(0x17e))/0x2)+parseInt(_0xde121e(0x18f))/0x3+-parseInt(_0xde121e(0x174))/0x4*(-parseInt(_0xde121e(0x18c))/0x5)+-parseInt(_0xde121e(0x18b))/0x6*(parseInt(_0xde121e(0x178))/0x7)+parseInt(_0xde121e(0x16b))/0x8+parseInt(_0xde121e(0x17f))/0x9+-parseInt(_0xde121e(0x18e))/0xa*(parseInt(_0xde121e(0x16c))/0xb);if(_0x4850a8===_0x373687)break;else _0x56d224['push'](_0x56d224['shift']());}catch(_0x54cdaf){_0x56d224['push'](_0x56d224['shift']());}}}(a85_0x3d7c,0x717ff));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a85_0x3d7c(){const _0x39e62a=['replace','substring','forEach','\x20rows\x20(','370692XUypXw','5133339zVjOVK','object','columns','pow','\x20row','No\x20rows\x20returned','array','\x20shown)','repeat','slice','2GDSXeV','boolean','6rNYMMH','5ZJmwaB','tsv','30vLmDQd','407862mRVoWC','data','table','0\x20B','startsWith','jsonl','row','length','date','false','min','stringify','number','7034144SwsdjL','2499112oYBRGM','toString','stdout','map','push','toFixed','join','entries','456004SsmeIA','max','floor','long','1277017DyeIPK','log'];a85_0x3d7c=function(){return _0x39e62a;};return a85_0x3d7c();}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x6df167=a85_0x229f;return process[_0x6df167(0x16e)][_0x6df167(0x181)]||Infinity;}export function formatAsTable(_0x39dcf9,_0x46d90b=DEFAULT_MAX_DISPLAY_ROWS,_0x2f66c0=![],_0x379a1a={}){const _0x5bdadf=a85_0x229f;if(_0x39dcf9[_0x5bdadf(0x190)][_0x5bdadf(0x165)]===0x0)return _0x5bdadf(0x184);const _0x54eb17=_0x39dcf9[_0x5bdadf(0x181)][_0x5bdadf(0x16f)](_0x4b4e8e=>_0x4b4e8e['name']),_0x55cbc4=_0x39dcf9['columns'][_0x5bdadf(0x16f)](_0x380c11=>simplifyType(_0x380c11['type'])),_0x68aadd=_0x39dcf9['data'][_0x5bdadf(0x188)](0x0,_0x46d90b),_0x481bd2=_0x39dcf9[_0x5bdadf(0x190)][_0x5bdadf(0x165)],_0x28582c=_0x481bd2>_0x46d90b,_0x1d23ac=[],_0x39599f=getTerminalWidth(),_0x59e5e1=_0x39599f!==Infinity,_0x1f245d=0x32;let _0x16b7ab=_0x54eb17[_0x5bdadf(0x16f)]((_0x24ba34,_0x25eda3)=>{const _0x5759a6=_0x5bdadf,_0x4e8e1a=stringWidth(_0x55cbc4[_0x25eda3]),_0x1b4e17=Math[_0x5759a6(0x175)](..._0x68aadd['map'](_0x5dc4c7=>{const _0x50552d=_0x5dc4c7[_0x24ba34];return stringWidth(formatValue(_0x50552d));})),_0x2070dd=Math[_0x5759a6(0x175)](stringWidth(_0x24ba34),_0x4e8e1a,_0x1b4e17);return _0x2f66c0?_0x2070dd:Math['min'](_0x2070dd,_0x1f245d);});if(_0x59e5e1&&!_0x2f66c0&&_0x54eb17[_0x5bdadf(0x165)]>0x0){const _0x22b912=_0xc2feeb=>{let _0x8db591=0x1;for(const _0x376721 of _0xc2feeb){_0x8db591+=_0x376721+0x3;}return _0x8db591+0x1;};let _0x5f3bc2=_0x22b912(_0x16b7ab);if(_0x5f3bc2>_0x39599f){const _0x2ec735=0x3;for(let _0x87798e=_0x16b7ab[_0x5bdadf(0x165)]-0x1;_0x87798e>=0x0;_0x87798e--){_0x5f3bc2=_0x22b912(_0x16b7ab);if(_0x5f3bc2<=_0x39599f)break;const _0x4bd31f=_0x16b7ab[_0x87798e],_0x3ec83b=_0x5f3bc2-_0x39599f,_0x222e40=_0x4bd31f-_0x2ec735,_0x397cbb=Math[_0x5bdadf(0x168)](_0x3ec83b,_0x222e40);_0x397cbb>0x0&&(_0x16b7ab[_0x87798e]=_0x4bd31f-_0x397cbb);}}}const _0x23ad12=_0x54eb17,_0x5a1f13=_0x55cbc4,_0x579e8c=_0x16b7ab,_0x5fafd2=_0x16b7ab;_0x1d23ac['push'](colorBorder('┌'+_0x5fafd2[_0x5bdadf(0x16f)](_0x12bfbf=>'─'['repeat'](_0x12bfbf+0x2))[_0x5bdadf(0x172)]('┬')+'┐',_0x379a1a));const _0x5ced88=_0x23ad12[_0x5bdadf(0x16f)]((_0xcb870b,_0x1df1fc)=>centerAlign(_0xcb870b,_0x579e8c[_0x1df1fc]));_0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x5ced88[_0x5bdadf(0x172)]('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a));const _0x2878ec=_0x5a1f13[_0x5bdadf(0x16f)]((_0x266a1f,_0x85775)=>colorType(centerAlign(_0x266a1f,_0x579e8c[_0x85775]),_0x379a1a));_0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x2878ec['join']('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a)),_0x1d23ac['push'](colorBorder('├'+_0x5fafd2[_0x5bdadf(0x16f)](_0x49522e=>'─'[_0x5bdadf(0x187)](_0x49522e+0x2))[_0x5bdadf(0x172)]('┼')+'┤',_0x379a1a));const _0x8750da=(_0x17362f,_0x131793)=>{const _0x5aa453=_0x5bdadf,_0x5ab06f=stringWidth(_0x17362f);if(_0x5ab06f<=_0x131793)return _0x17362f;let _0x3026aa=_0x17362f;while(stringWidth(_0x3026aa+'…')>_0x131793&&_0x3026aa[_0x5aa453(0x165)]>0x0){_0x3026aa=_0x3026aa[_0x5aa453(0x188)](0x0,-0x1);}return _0x3026aa+'…';};_0x68aadd[_0x5bdadf(0x17c)](_0x337455=>{const _0xa85bd5=_0x5bdadf,_0x51d0ce=_0x54eb17['map']((_0x51b9d9,_0x51e701)=>{const _0x251650=a85_0x229f,_0x59c9b3=_0x337455[_0x51b9d9],_0x36cbdb=formatValue(_0x59c9b3),_0x10c5bc=_0x579e8c[_0x51e701],_0x1b0f8c=_0x8750da(_0x36cbdb,_0x10c5bc),_0x397ea1=typeof _0x59c9b3===_0x251650(0x16a)||typeof _0x59c9b3==='string'&&/^-?\d+$/['test'](_0x59c9b3);return _0x397ea1?padStart(_0x1b0f8c,_0x10c5bc):padEnd(_0x1b0f8c,_0x10c5bc);});_0x1d23ac['push'](colorBorder('│',_0x379a1a)+'\x20'+_0x51d0ce[_0xa85bd5(0x172)]('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a));});const _0x19f5fd=_0x5fafd2['reduce']((_0x12a3d9,_0x2c2216)=>_0x12a3d9+_0x2c2216+0x3,-0x1);_0x1d23ac[_0x5bdadf(0x170)](colorBorder('├'+_0x5fafd2[_0x5bdadf(0x16f)](_0x2d6f28=>'─'[_0x5bdadf(0x187)](_0x2d6f28+0x2))[_0x5bdadf(0x172)]('┴')+'┤',_0x379a1a));let _0x4773d6;_0x28582c?_0x4773d6=_0x481bd2+_0x5bdadf(0x17d)+_0x46d90b+_0x5bdadf(0x186):_0x4773d6=_0x481bd2+_0x5bdadf(0x183)+(_0x481bd2===0x1?'':'s');const _0x1ab273=_0x4773d6['padEnd'](_0x19f5fd-0x2);return _0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x1ab273+'\x20'+colorBorder('│',_0x379a1a)),_0x1d23ac[_0x5bdadf(0x170)](colorBorder('└'+'─'[_0x5bdadf(0x187)](_0x19f5fd)+'┘',_0x379a1a)),_0x1d23ac['join']('\x0a');}function simplifyType(_0x453e2f){const _0x2cc3de=a85_0x229f,_0x3ce160={'varchar':'string','bigint':_0x2cc3de(0x177),'integer':'int','double':'double','boolean':'bool','date':_0x2cc3de(0x166),'timestamp':'timestamp','array':_0x2cc3de(0x185),'map':_0x2cc3de(0x16f),'row':_0x2cc3de(0x164)},_0xfb1f45=_0x453e2f['toLowerCase']();for(const [_0x1e6474,_0x5093a1]of Object[_0x2cc3de(0x173)](_0x3ce160)){if(_0xfb1f45[_0x2cc3de(0x193)](_0x1e6474))return _0x5093a1;}return _0x453e2f[_0x2cc3de(0x165)]>0xa?_0x453e2f[_0x2cc3de(0x17b)](0x0,0xa):_0x453e2f;}export function formatAsJSON(_0x315839,_0x160a03={}){const _0x3be8c7=a85_0x229f;if(_0x315839['data'][_0x3be8c7(0x165)]===0x0)return'[]';if(shouldUseColor(_0x160a03))return colorizeJSON(_0x315839[_0x3be8c7(0x190)],_0x160a03);const _0x5b65b9=_0x315839[_0x3be8c7(0x190)][_0x3be8c7(0x16f)](_0x57beb9=>'\x20\x20'+JSON[_0x3be8c7(0x169)](_0x57beb9));return'[\x0a'+_0x5b65b9[_0x3be8c7(0x172)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x2c5ff6,_0x81ce6={}){const _0x447de8=a85_0x229f;if(_0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x165)]===0x0)return'';if(shouldUseColor(_0x81ce6))return _0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x16f)](_0xee305d=>colorizeJSONCompact(_0xee305d,_0x81ce6))[_0x447de8(0x172)]('\x0a');return _0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x16f)](_0x387937=>JSON[_0x447de8(0x169)](_0x387937))[_0x447de8(0x172)]('\x0a');}export function formatAsTSV(_0x29c336){const _0x5852d6=a85_0x229f;if(_0x29c336[_0x5852d6(0x190)][_0x5852d6(0x165)]===0x0)return'';const _0x40759e=[],_0x52b8aa=_0x29c336[_0x5852d6(0x181)][_0x5852d6(0x16f)](_0x2574bb=>_0x2574bb['name']);return _0x40759e[_0x5852d6(0x170)](_0x52b8aa[_0x5852d6(0x172)]('\x09')),_0x29c336['data'][_0x5852d6(0x17c)](_0x15b4d1=>{const _0x4e16f5=_0x5852d6,_0x316e79=_0x52b8aa['map'](_0x4a458a=>{const _0xd40a44=_0x15b4d1[_0x4a458a];return formatValueForTSV(_0xd40a44);});_0x40759e['push'](_0x316e79[_0x4e16f5(0x172)]('\x09'));}),_0x40759e[_0x5852d6(0x172)]('\x0a');}function formatValue(_0x1025fe){const _0x5d4fab=a85_0x229f;if(_0x1025fe===null||_0x1025fe===undefined)return'';if(typeof _0x1025fe==='string'){const _0x4f4916=_0x1025fe[_0x5d4fab(0x17a)](/\n/g,'\x5cn')[_0x5d4fab(0x17a)](/\r/g,'\x5cr')[_0x5d4fab(0x17a)](/\t/g,'\x5ct');return _0x4f4916;}if(typeof _0x1025fe===_0x5d4fab(0x16a))return String(_0x1025fe);if(typeof _0x1025fe===_0x5d4fab(0x18a))return _0x1025fe?'true':_0x5d4fab(0x167);if(_0x1025fe instanceof Date)return _0x1025fe['toISOString']();if(typeof _0x1025fe===_0x5d4fab(0x180))return JSON['stringify'](_0x1025fe);return String(_0x1025fe);}function formatValueForTSV(_0x4a9f2e){const _0xf769=a85_0x229f;if(_0x4a9f2e===null||_0x4a9f2e===undefined)return'';if(typeof _0x4a9f2e==='string')return _0x4a9f2e[_0xf769(0x17a)](/\t/g,'\x5ct')[_0xf769(0x17a)](/\n/g,'\x5cn');if(typeof _0x4a9f2e===_0xf769(0x16a)||typeof _0x4a9f2e===_0xf769(0x18a))return String(_0x4a9f2e);if(_0x4a9f2e instanceof Date)return _0x4a9f2e['toISOString']();if(typeof _0x4a9f2e==='object')return JSON[_0xf769(0x169)](_0x4a9f2e);return String(_0x4a9f2e);}export function formatQueryResult(_0x1527ff,_0x4bb75d){const _0x2a47f4=a85_0x229f;switch(_0x4bb75d){case _0x2a47f4(0x191):return formatAsTable(_0x1527ff);case'json':return formatAsJSON(_0x1527ff);case _0x2a47f4(0x163):return formatAsJSONL(_0x1527ff);case _0x2a47f4(0x18d):return formatAsTSV(_0x1527ff);default:return formatAsJSON(_0x1527ff);}}function a85_0x229f(_0x14acc2,_0x48a39e){const _0x3d7cdf=a85_0x3d7c();return a85_0x229f=function(_0x229f52,_0x592fab){_0x229f52=_0x229f52-0x163;let _0x43f4f3=_0x3d7cdf[_0x229f52];return _0x43f4f3;},a85_0x229f(_0x14acc2,_0x48a39e);}export function formatBytes(_0x495199){const _0x438460=a85_0x229f;if(_0x495199===0x0)return _0x438460(0x192);const _0x24becb=['B','KB','MB','GB','TB'],_0x2768cb=0x400,_0x36cfd1=Math[_0x438460(0x176)](Math[_0x438460(0x179)](_0x495199)/Math['log'](_0x2768cb)),_0x362a91=_0x495199/Math[_0x438460(0x182)](_0x2768cb,_0x36cfd1),_0x20be4b=_0x362a91>=0xa?0x1:0x2;return _0x362a91[_0x438460(0x171)](_0x20be4b)+'\x20'+_0x24becb[_0x36cfd1];}export function formatRows(_0x5025d9){const _0x720ca=a85_0x229f;if(_0x5025d9==null)return'-';if(_0x5025d9===0x0)return'0';if(_0x5025d9<0x3e8)return _0x5025d9[_0x720ca(0x16d)]();const _0x3ce492=['','K','M','B','T'],_0x4f828b=0x3e8,_0x2a6f88=Math[_0x720ca(0x176)](Math[_0x720ca(0x179)](_0x5025d9)/Math['log'](_0x4f828b)),_0x271a40=_0x5025d9/Math['pow'](_0x4f828b,_0x2a6f88),_0x26ea2e=_0x271a40>=0xa?0x1:0x2;return''+_0x271a40[_0x720ca(0x171)](_0x26ea2e)+_0x3ce492[_0x2a6f88];}
@@ -1 +1 @@
1
- (function(_0xa23520,_0x286c34){const _0x140a30=a86_0x1ed9,_0x21fc8e=_0xa23520();while(!![]){try{const _0x1f8d00=-parseInt(_0x140a30(0x194))/0x1*(-parseInt(_0x140a30(0x18e))/0x2)+-parseInt(_0x140a30(0x18f))/0x3+parseInt(_0x140a30(0x18b))/0x4+parseInt(_0x140a30(0x18d))/0x5*(-parseInt(_0x140a30(0x181))/0x6)+parseInt(_0x140a30(0x17f))/0x7*(-parseInt(_0x140a30(0x191))/0x8)+-parseInt(_0x140a30(0x190))/0x9+parseInt(_0x140a30(0x187))/0xa;if(_0x1f8d00===_0x286c34)break;else _0x21fc8e['push'](_0x21fc8e['shift']());}catch(_0x50d2ae){_0x21fc8e['push'](_0x21fc8e['shift']());}}}(a86_0x7c42,0xbbab1));function a86_0x7c42(){const _0x7384e9=['Permission\x20denied\x20reading\x20file:\x20','\x27:\x20','message','parse','22431310VwBeTa','Invalid\x20JSON\x20in\x20file\x20\x27','Invalid\x20JSON\x20string:\x20','EACCES','3138348lIhuWv','ENOENT','7835PaPBct','542cowVqy','428442qAkwFj','11321118meyrYx','12736WcElGw','code','Failed\x20to\x20load\x20JSON:\x20','1823tUfpiO','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','7lFPgMD','INVALID_ARGUMENT','5172zxPanv','INTERNAL'];a86_0x7c42=function(){return _0x7384e9;};return a86_0x7c42();}import{readFile}from'fs/promises';function a86_0x1ed9(_0x30b06c,_0x14ed6b){const _0x7c4289=a86_0x7c42();return a86_0x1ed9=function(_0x1ed951,_0x4878cc){_0x1ed951=_0x1ed951-0x17f;let _0x5555d5=_0x7c4289[_0x1ed951];return _0x5555d5;},a86_0x1ed9(_0x30b06c,_0x14ed6b);}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x43a955,_0x4f1f15){const _0x1c8a0d=a86_0x1ed9;try{if(_0x4f1f15){const _0x585631=await readFile(_0x43a955,'utf-8');try{return JSON[_0x1c8a0d(0x186)](_0x585631);}catch(_0x556c0e){throw new SDKError(ErrorCode[_0x1c8a0d(0x180)],_0x1c8a0d(0x188)+_0x43a955+_0x1c8a0d(0x184)+(_0x556c0e instanceof Error?_0x556c0e[_0x1c8a0d(0x185)]:String(_0x556c0e)));}}else try{return JSON[_0x1c8a0d(0x186)](_0x43a955);}catch(_0x5617b6){throw new SDKError(ErrorCode[_0x1c8a0d(0x180)],_0x1c8a0d(0x189)+(_0x5617b6 instanceof Error?_0x5617b6[_0x1c8a0d(0x185)]:String(_0x5617b6)));}}catch(_0x1bbef8){if(_0x1bbef8 instanceof SDKError)throw _0x1bbef8;if(_0x1bbef8 instanceof Error&&'code'in _0x1bbef8){const _0x2dbf7b=_0x1bbef8;if(_0x2dbf7b['code']===_0x1c8a0d(0x18c))throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x43a955);else{if(_0x2dbf7b[_0x1c8a0d(0x192)]===_0x1c8a0d(0x18a))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1c8a0d(0x183)+_0x43a955);}}throw new SDKError(ErrorCode[_0x1c8a0d(0x182)],_0x1c8a0d(0x193)+(_0x1bbef8 instanceof Error?_0x1bbef8[_0x1c8a0d(0x185)]:String(_0x1bbef8)));}}export async function loadJSONFromOptions(_0xc718ba,_0x6b3dc3){const _0x2899b6=a86_0x1ed9;if(_0xc718ba&&_0x6b3dc3)throw new SDKError(ErrorCode[_0x2899b6(0x180)],_0x2899b6(0x195));if(_0xc718ba)return await loadJSON(_0xc718ba,![]);if(_0x6b3dc3)return await loadJSON(_0x6b3dc3,!![]);return undefined;}
1
+ (function(_0x534d15,_0x38e0b1){const _0x594eb2=a86_0x5ca2,_0x5a7ef8=_0x534d15();while(!![]){try{const _0x41562d=-parseInt(_0x594eb2(0x1ca))/0x1*(-parseInt(_0x594eb2(0x1cd))/0x2)+-parseInt(_0x594eb2(0x1cc))/0x3*(-parseInt(_0x594eb2(0x1ce))/0x4)+parseInt(_0x594eb2(0x1d1))/0x5*(-parseInt(_0x594eb2(0x1d8))/0x6)+-parseInt(_0x594eb2(0x1d6))/0x7+-parseInt(_0x594eb2(0x1cb))/0x8*(-parseInt(_0x594eb2(0x1d4))/0x9)+parseInt(_0x594eb2(0x1d9))/0xa+-parseInt(_0x594eb2(0x1d3))/0xb;if(_0x41562d===_0x38e0b1)break;else _0x5a7ef8['push'](_0x5a7ef8['shift']());}catch(_0x54a5a5){_0x5a7ef8['push'](_0x5a7ef8['shift']());}}}(a86_0x25ee,0x25597));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x26bf6b,_0x17bb17){const _0x1b2b54=a86_0x5ca2;try{if(_0x17bb17){const _0x1419f9=await readFile(_0x26bf6b,'utf-8');try{return JSON[_0x1b2b54(0x1d7)](_0x1419f9);}catch(_0x186b50){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x1b2b54(0x1c9)+_0x26bf6b+_0x1b2b54(0x1db)+(_0x186b50 instanceof Error?_0x186b50['message']:String(_0x186b50)));}}else try{return JSON[_0x1b2b54(0x1d7)](_0x26bf6b);}catch(_0x37c397){throw new SDKError(ErrorCode[_0x1b2b54(0x1d5)],_0x1b2b54(0x1dc)+(_0x37c397 instanceof Error?_0x37c397['message']:String(_0x37c397)));}}catch(_0x2ad894){if(_0x2ad894 instanceof SDKError)throw _0x2ad894;if(_0x2ad894 instanceof Error&&_0x1b2b54(0x1c7)in _0x2ad894){const _0x6c1317=_0x2ad894;if(_0x6c1317[_0x1b2b54(0x1c7)]===_0x1b2b54(0x1c6))throw new SDKError(ErrorCode[_0x1b2b54(0x1d2)],'File\x20not\x20found:\x20'+_0x26bf6b);else{if(_0x6c1317[_0x1b2b54(0x1c7)]===_0x1b2b54(0x1cf))throw new SDKError(ErrorCode[_0x1b2b54(0x1da)],_0x1b2b54(0x1c8)+_0x26bf6b);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x2ad894 instanceof Error?_0x2ad894[_0x1b2b54(0x1d0)]:String(_0x2ad894)));}}function a86_0x5ca2(_0x2f1838,_0x3c0a3b){const _0x25ee20=a86_0x25ee();return a86_0x5ca2=function(_0x5ca2d9,_0x1db60b){_0x5ca2d9=_0x5ca2d9-0x1c6;let _0x48cd9a=_0x25ee20[_0x5ca2d9];return _0x48cd9a;},a86_0x5ca2(_0x2f1838,_0x3c0a3b);}function a86_0x25ee(){const _0x1592cb=['message','1380vKnoUh','NOT_FOUND','5833135tWcJjv','273231KgRoqR','INVALID_ARGUMENT','1574279djZaef','parse','2034ctucPE','2954010vPfUpY','PERMISSION_DENIED','\x27:\x20','Invalid\x20JSON\x20string:\x20','ENOENT','code','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','124661iAvqzb','64wrFYjs','3seGuyM','4wlutwP','856536mkFtgy','EACCES'];a86_0x25ee=function(){return _0x1592cb;};return a86_0x25ee();}export async function loadJSONFromOptions(_0x24a3db,_0xeafd44){const _0x3fffa3=a86_0x5ca2;if(_0x24a3db&&_0xeafd44)throw new SDKError(ErrorCode[_0x3fffa3(0x1d5)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x24a3db)return await loadJSON(_0x24a3db,![]);if(_0xeafd44)return await loadJSON(_0xeafd44,!![]);return undefined;}
@@ -1 +1 @@
1
- function a87_0x5a67(){const _0x111642=['tools','get','481816KOUqLd','1430220gPgLEa','144MqLPCp','115gagyMI','70MCgPJf','27xgyWoO','1489268nmaLoP','has','targetKnowledgeBaseId','24ZDbFLj','targetAgentId','52jNpamM','attributes','876HkAJSA','map','32862MehoYP','192523azeVdG'];a87_0x5a67=function(){return _0x111642;};return a87_0x5a67();}(function(_0x4a6a82,_0x5e12d6){const _0x2dc7b6=a87_0x1ca0,_0x5dd30e=_0x4a6a82();while(!![]){try{const _0xa6bb25=parseInt(_0x2dc7b6(0x1f7))/0x1+-parseInt(_0x2dc7b6(0x1fc))/0x2*(-parseInt(_0x2dc7b6(0x1f4))/0x3)+parseInt(_0x2dc7b6(0x205))/0x4*(-parseInt(_0x2dc7b6(0x1fd))/0x5)+parseInt(_0x2dc7b6(0x1f6))/0x6*(-parseInt(_0x2dc7b6(0x1fe))/0x7)+parseInt(_0x2dc7b6(0x1fa))/0x8*(-parseInt(_0x2dc7b6(0x1ff))/0x9)+-parseInt(_0x2dc7b6(0x1fb))/0xa+parseInt(_0x2dc7b6(0x200))/0xb*(parseInt(_0x2dc7b6(0x203))/0xc);if(_0xa6bb25===_0x5e12d6)break;else _0x5dd30e['push'](_0x5dd30e['shift']());}catch(_0x39c7fe){_0x5dd30e['push'](_0x5dd30e['shift']());}}}(a87_0x5a67,0x19c4f));function a87_0x1ca0(_0x20c3c3,_0x36703d){const _0x5a670d=a87_0x5a67();return a87_0x1ca0=function(_0x1ca00e,_0x4b4965){_0x1ca00e=_0x1ca00e-0x1f4;let _0x35d5e4=_0x5a670d[_0x1ca00e];return _0x35d5e4;},a87_0x1ca0(_0x20c3c3,_0x36703d);}export function canCreateAgent(_0x1a66c2,_0x1bb281){const _0x483426=a87_0x1ca0;for(const _0xd27d35 of _0x1a66c2[_0x483426(0x206)][_0x483426(0x1f8)]){if(_0xd27d35[_0x483426(0x204)]&&!_0x1bb281[_0x483426(0x201)](_0xd27d35[_0x483426(0x204)]))return![];}return!![];}export function remapToolIds(_0x106112,_0x145981,_0x46d5f6){const _0x368737=a87_0x1ca0;return _0x106112['map'](_0x452949=>({..._0x452949,'targetKnowledgeBaseId':_0x452949[_0x368737(0x202)]?_0x145981[_0x368737(0x1f9)](_0x452949[_0x368737(0x202)])||_0x452949[_0x368737(0x202)]:undefined,'targetAgentId':_0x452949['targetAgentId']?_0x46d5f6[_0x368737(0x1f9)](_0x452949['targetAgentId'])||_0x452949['targetAgentId']:undefined}));}export function remapVariableIds(_0x2ffd98,_0x3d1b93){const _0xea02b=a87_0x1ca0;return _0x2ffd98[_0xea02b(0x1f5)](_0x327d9f=>({..._0x327d9f,'targetKnowledgeBaseId':_0x3d1b93[_0xea02b(0x1f9)](_0x327d9f['targetKnowledgeBaseId'])||_0x327d9f['targetKnowledgeBaseId']}));}export function isSupportedBackupVersion(_0x12240c){return _0x12240c==='1.0';}
1
+ (function(_0x426f9d,_0x595375){const _0x248764=a87_0x5e6b,_0x47de90=_0x426f9d();while(!![]){try{const _0x3560dd=parseInt(_0x248764(0x179))/0x1*(-parseInt(_0x248764(0x175))/0x2)+parseInt(_0x248764(0x17a))/0x3*(-parseInt(_0x248764(0x176))/0x4)+parseInt(_0x248764(0x172))/0x5*(-parseInt(_0x248764(0x16f))/0x6)+parseInt(_0x248764(0x17e))/0x7+-parseInt(_0x248764(0x16d))/0x8+-parseInt(_0x248764(0x170))/0x9+parseInt(_0x248764(0x17b))/0xa*(parseInt(_0x248764(0x171))/0xb);if(_0x3560dd===_0x595375)break;else _0x47de90['push'](_0x47de90['shift']());}catch(_0x543db9){_0x47de90['push'](_0x47de90['shift']());}}}(a87_0x56ed,0xad3ac));export function canCreateAgent(_0x1c31cb,_0x31fd08){const _0x3756d5=a87_0x5e6b;for(const _0x5379bc of _0x1c31cb[_0x3756d5(0x17c)][_0x3756d5(0x173)]){if(_0x5379bc[_0x3756d5(0x16e)]&&!_0x31fd08['has'](_0x5379bc[_0x3756d5(0x16e)]))return![];}return!![];}function a87_0x56ed(){const _0xc4673d=['554544jvbdAP','10450qemIBh','attributes','map','6100731klAAwF','4090552kcuatv','targetAgentId','48684NCeUsO','11046204BPPtfy','47729aIEDlR','845LySeyh','tools','1.0','1693814BXEhzN','16nIYaRL','targetKnowledgeBaseId','get','1RiRljJ'];a87_0x56ed=function(){return _0xc4673d;};return a87_0x56ed();}function a87_0x5e6b(_0x4d4fd5,_0x457fc5){const _0x56edb8=a87_0x56ed();return a87_0x5e6b=function(_0x5e6b15,_0xdaabee){_0x5e6b15=_0x5e6b15-0x16d;let _0xc9d366=_0x56edb8[_0x5e6b15];return _0xc9d366;},a87_0x5e6b(_0x4d4fd5,_0x457fc5);}export function remapToolIds(_0x332fc3,_0x502461,_0x20c2dc){const _0x36bb65=a87_0x5e6b;return _0x332fc3[_0x36bb65(0x17d)](_0x20d557=>({..._0x20d557,'targetKnowledgeBaseId':_0x20d557[_0x36bb65(0x177)]?_0x502461[_0x36bb65(0x178)](_0x20d557[_0x36bb65(0x177)])||_0x20d557['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x20d557[_0x36bb65(0x16e)]?_0x20c2dc['get'](_0x20d557[_0x36bb65(0x16e)])||_0x20d557['targetAgentId']:undefined}));}export function remapVariableIds(_0x1ac819,_0x47eae2){const _0x3c3b20=a87_0x5e6b;return _0x1ac819['map'](_0x1e797a=>({..._0x1e797a,'targetKnowledgeBaseId':_0x47eae2[_0x3c3b20(0x178)](_0x1e797a[_0x3c3b20(0x177)])||_0x1e797a[_0x3c3b20(0x177)]}));}export function isSupportedBackupVersion(_0xeb652b){const _0x5bd435=a87_0x5e6b;return _0xeb652b===_0x5bd435(0x174);}
@@ -1 +1 @@
1
- const a88_0x29ffb5=a88_0x1c94;(function(_0x4a4f2a,_0x26ab0e){const _0x25af34=a88_0x1c94,_0xa7e87c=_0x4a4f2a();while(!![]){try{const _0x38105a=-parseInt(_0x25af34(0xe1))/0x1+parseInt(_0x25af34(0xe2))/0x2+-parseInt(_0x25af34(0xe4))/0x3*(parseInt(_0x25af34(0xe6))/0x4)+-parseInt(_0x25af34(0xec))/0x5+-parseInt(_0x25af34(0xe9))/0x6+-parseInt(_0x25af34(0xea))/0x7*(parseInt(_0x25af34(0xe7))/0x8)+parseInt(_0x25af34(0xeb))/0x9;if(_0x38105a===_0x26ab0e)break;else _0xa7e87c['push'](_0xa7e87c['shift']());}catch(_0x57576b){_0xa7e87c['push'](_0xa7e87c['shift']());}}}(a88_0x3b97,0xc787a));function a88_0x3b97(){const _0x3790f2=['671302xejULB','314580EnZWvw','toLowerCase','2148087OwdieH','claude-4.5-haiku','4foskMW','6683672tfwGpr','claude-4.5-sonnet','8727204oOKDNE','7EgkZqb','45920268BuVKTH','3824720xycYQc','match'];a88_0x3b97=function(){return _0x3790f2;};return a88_0x3b97();}function a88_0x1c94(_0x1a88ad,_0x299abc){const _0x3b97b3=a88_0x3b97();return a88_0x1c94=function(_0x1c94d8,_0x54404a){_0x1c94d8=_0x1c94d8-0xe0;let _0x4dcdd2=_0x3b97b3[_0x1c94d8];return _0x4dcdd2;},a88_0x1c94(_0x1a88ad,_0x299abc);}const MODEL_ALIASES={'haiku':a88_0x29ffb5(0xe5),'sonnet':a88_0x29ffb5(0xe8)};export function extractModelAlias(_0x42b613){const _0x1f4800=a88_0x29ffb5,_0x59a2f3=_0x42b613[_0x1f4800(0xe0)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x59a2f3)return _0x59a2f3[0x1]['toLowerCase']();return _0x42b613;}export function resolveModelAlias(_0x25efdd){const _0xb050f8=a88_0x29ffb5;return MODEL_ALIASES[_0x25efdd[_0xb050f8(0xe3)]()]||_0x25efdd;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ function a88_0x5569(){const _0x585808=['6ZmXBJX','4863780ddhUva','claude-4.5-haiku','305324KdLhBU','claude-4.5-sonnet','match','1019834UUdURx','11ZbKMGm','765nlaXck','1820696FuBUtq','126328IuMDuP','486RlHDQI','11329250DWlpkv','7028YjnDoh','toLowerCase'];a88_0x5569=function(){return _0x585808;};return a88_0x5569();}const a88_0xa9613b=a88_0x4a0b;(function(_0x310e77,_0x584ae3){const _0x1ff2e6=a88_0x4a0b,_0x16ef90=_0x310e77();while(!![]){try{const _0x5b0b1b=-parseInt(_0x1ff2e6(0x153))/0x1+parseInt(_0x1ff2e6(0x150))/0x2*(-parseInt(_0x1ff2e6(0x14d))/0x3)+parseInt(_0x1ff2e6(0x156))/0x4+-parseInt(_0x1ff2e6(0x14e))/0x5+parseInt(_0x1ff2e6(0x158))/0x6*(parseInt(_0x1ff2e6(0x14b))/0x7)+parseInt(_0x1ff2e6(0x157))/0x8*(parseInt(_0x1ff2e6(0x155))/0x9)+parseInt(_0x1ff2e6(0x14a))/0xa*(parseInt(_0x1ff2e6(0x154))/0xb);if(_0x5b0b1b===_0x584ae3)break;else _0x16ef90['push'](_0x16ef90['shift']());}catch(_0x288220){_0x16ef90['push'](_0x16ef90['shift']());}}}(a88_0x5569,0xae410));function a88_0x4a0b(_0x15cf3e,_0x226e40){const _0x5569ad=a88_0x5569();return a88_0x4a0b=function(_0x4a0bf8,_0x3145fa){_0x4a0bf8=_0x4a0bf8-0x14a;let _0x220beb=_0x5569ad[_0x4a0bf8];return _0x220beb;},a88_0x4a0b(_0x15cf3e,_0x226e40);}const MODEL_ALIASES={'haiku':a88_0xa9613b(0x14f),'sonnet':a88_0xa9613b(0x151)};export function extractModelAlias(_0x474a81){const _0x3bba5b=a88_0xa9613b,_0x412274=_0x474a81[_0x3bba5b(0x152)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x412274)return _0x412274[0x1][_0x3bba5b(0x14c)]();return _0x474a81;}export function resolveModelAlias(_0x3d5612){const _0x2a2876=a88_0xa9613b;return MODEL_ALIASES[_0x3d5612[_0x2a2876(0x14c)]()]||_0x3d5612;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x261162,_0x408c3c){const _0x510f7d=a89_0x5991,_0x1dcf23=_0x261162();while(!![]){try{const _0x571c79=parseInt(_0x510f7d(0x180))/0x1*(parseInt(_0x510f7d(0x17e))/0x2)+-parseInt(_0x510f7d(0x179))/0x3*(-parseInt(_0x510f7d(0x17a))/0x4)+-parseInt(_0x510f7d(0x18f))/0x5*(-parseInt(_0x510f7d(0x184))/0x6)+parseInt(_0x510f7d(0x183))/0x7+parseInt(_0x510f7d(0x188))/0x8+-parseInt(_0x510f7d(0x189))/0x9+-parseInt(_0x510f7d(0x17f))/0xa;if(_0x571c79===_0x408c3c)break;else _0x1dcf23['push'](_0x1dcf23['shift']());}catch(_0x1d2219){_0x1dcf23['push'](_0x1dcf23['shift']());}}}(a89_0x2846,0xca3f6));function a89_0x2846(){const _0x33209b=['4.5','sonnet','includes','3206270SilBPc','29460090sMlyox','1gyhGJl','en-US','round','8559712oWsEeW','6tYhXZx','default','Haiku\x204','toLocaleString','9905760WatxOM','7529436jHMCDa','4-5','toLowerCase','opus','haiku','Sonnet\x204','1786485fORLic','111RFtLeP','20492RfGRjJ'];a89_0x2846=function(){return _0x33209b;};return a89_0x2846();}function a89_0x5991(_0x2bf146,_0x343aa9){const _0x284636=a89_0x2846();return a89_0x5991=function(_0x5991cd,_0x1d75b7){_0x5991cd=_0x5991cd-0x179;let _0xd87b49=_0x284636[_0x5991cd];return _0xd87b49;},a89_0x5991(_0x2bf146,_0x343aa9);}export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x47a4a7){const _0x52d798=a89_0x5991,_0x284e80=_0x47a4a7[_0x52d798(0x18b)]();if(MODEL_FACTORS[_0x284e80])return MODEL_FACTORS[_0x284e80];if(_0x284e80['includes']('sonnet'))return MODEL_FACTORS[_0x52d798(0x17c)];if(_0x284e80[_0x52d798(0x17d)](_0x52d798(0x18d)))return MODEL_FACTORS[_0x52d798(0x18d)];if(_0x284e80[_0x52d798(0x17d)](_0x52d798(0x18c)))return MODEL_FACTORS[_0x52d798(0x18c)];return MODEL_FACTORS[_0x52d798(0x17c)];}export function getContextLimit(_0x18f885){const _0x3644cf=a89_0x5991,_0xe35449=_0x18f885[_0x3644cf(0x18b)]();if(_0xe35449[_0x3644cf(0x17d)](_0x3644cf(0x17c)))return CONTEXT_LIMITS[_0x3644cf(0x17c)];if(_0xe35449[_0x3644cf(0x17d)]('haiku'))return CONTEXT_LIMITS['haiku'];if(_0xe35449['includes'](_0x3644cf(0x18c)))return CONTEXT_LIMITS['opus'];return CONTEXT_LIMITS[_0x3644cf(0x185)];}export function calculateChatUnit(_0x12e6d3,_0x3512c6,_0x162eab){return(_0x12e6d3+_0x3512c6)/0x1388*_0x162eab;}export function calculateCredits(_0x2146ee){return _0x2146ee/0x2904;}export function getModelDisplayName(_0x1840d4){const _0x485958=a89_0x5991,_0x2f7b37=_0x1840d4[_0x485958(0x18b)]();if(_0x2f7b37[_0x485958(0x17d)]('sonnet')){if(_0x2f7b37[_0x485958(0x17d)]('4-5')||_0x2f7b37[_0x485958(0x17d)]('4.5'))return'Sonnet\x204.5';return _0x485958(0x18e);}if(_0x2f7b37['includes'](_0x485958(0x18d))){if(_0x2f7b37['includes'](_0x485958(0x18a))||_0x2f7b37['includes']('4.5'))return'Haiku\x204.5';return _0x485958(0x186);}if(_0x2f7b37['includes'](_0x485958(0x18c))){if(_0x2f7b37[_0x485958(0x17d)](_0x485958(0x18a))||_0x2f7b37[_0x485958(0x17d)](_0x485958(0x17b)))return'Opus\x204.5';return'Opus\x204';}return'Claude';}export function formatTokenCount(_0x377959){const _0x2bb80b=a89_0x5991;return _0x377959[_0x2bb80b(0x187)](_0x2bb80b(0x181));}export function calculateContextPercentage(_0x4064ef,_0x1e7021){const _0x27048e=a89_0x5991,_0x84bce9=getContextLimit(_0x1e7021);return Math[_0x27048e(0x182)](_0x4064ef/_0x84bce9*0x64);}
1
+ (function(_0x4fd21d,_0x298ca3){const _0x5b5029=a89_0x563f,_0x2fc38f=_0x4fd21d();while(!![]){try{const _0x4c8c7a=parseInt(_0x5b5029(0x110))/0x1+-parseInt(_0x5b5029(0x119))/0x2+-parseInt(_0x5b5029(0x114))/0x3*(parseInt(_0x5b5029(0x11c))/0x4)+parseInt(_0x5b5029(0x116))/0x5*(-parseInt(_0x5b5029(0x124))/0x6)+parseInt(_0x5b5029(0x10e))/0x7*(parseInt(_0x5b5029(0x120))/0x8)+parseInt(_0x5b5029(0x113))/0x9*(-parseInt(_0x5b5029(0x11a))/0xa)+parseInt(_0x5b5029(0x123))/0xb;if(_0x4c8c7a===_0x298ca3)break;else _0x2fc38f['push'](_0x2fc38f['shift']());}catch(_0x4e3505){_0x2fc38f['push'](_0x2fc38f['shift']());}}}(a89_0x4806,0xf307d));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x1aca45){const _0x189edf=a89_0x563f,_0x500804=_0x1aca45[_0x189edf(0x115)]();if(MODEL_FACTORS[_0x500804])return MODEL_FACTORS[_0x500804];if(_0x500804[_0x189edf(0x126)](_0x189edf(0x127)))return MODEL_FACTORS[_0x189edf(0x127)];if(_0x500804[_0x189edf(0x126)](_0x189edf(0x122)))return MODEL_FACTORS[_0x189edf(0x122)];if(_0x500804[_0x189edf(0x126)]('opus'))return MODEL_FACTORS['opus'];return MODEL_FACTORS[_0x189edf(0x127)];}export function getContextLimit(_0x3f95d5){const _0x402fde=a89_0x563f,_0x2d41a5=_0x3f95d5[_0x402fde(0x115)]();if(_0x2d41a5[_0x402fde(0x126)](_0x402fde(0x127)))return CONTEXT_LIMITS[_0x402fde(0x127)];if(_0x2d41a5[_0x402fde(0x126)](_0x402fde(0x122)))return CONTEXT_LIMITS[_0x402fde(0x122)];if(_0x2d41a5['includes'](_0x402fde(0x11f)))return CONTEXT_LIMITS[_0x402fde(0x11f)];return CONTEXT_LIMITS[_0x402fde(0x111)];}function a89_0x4806(){const _0x5427b5=['3800268lOMYma','69730ZFSIir','en-US','14404FwhFTX','4-5','Sonnet\x204','opus','1624VMOwvV','toLocaleString','haiku','22509124HRWsSo','24tsqEHl','Haiku\x204.5','includes','sonnet','Haiku\x204','Opus\x204.5','57554EpJhjH','round','522025exJRXG','default','Opus\x204','342GgCaiC','678TqyACS','toLowerCase','328735RgTsMX','4.5','Claude'];a89_0x4806=function(){return _0x5427b5;};return a89_0x4806();}export function calculateChatUnit(_0x44f1e1,_0x1f60cc,_0x1f7fc5){return(_0x44f1e1+_0x1f60cc)/0x1388*_0x1f7fc5;}export function calculateCredits(_0x5514cb){return _0x5514cb/0x2904;}export function getModelDisplayName(_0xdd32f7){const _0x3ae76a=a89_0x563f,_0x1afe8f=_0xdd32f7[_0x3ae76a(0x115)]();if(_0x1afe8f['includes']('sonnet')){if(_0x1afe8f[_0x3ae76a(0x126)]('4-5')||_0x1afe8f['includes'](_0x3ae76a(0x117)))return'Sonnet\x204.5';return _0x3ae76a(0x11e);}if(_0x1afe8f[_0x3ae76a(0x126)]('haiku')){if(_0x1afe8f['includes'](_0x3ae76a(0x11d))||_0x1afe8f['includes']('4.5'))return _0x3ae76a(0x125);return _0x3ae76a(0x128);}if(_0x1afe8f['includes'](_0x3ae76a(0x11f))){if(_0x1afe8f['includes'](_0x3ae76a(0x11d))||_0x1afe8f[_0x3ae76a(0x126)](_0x3ae76a(0x117)))return _0x3ae76a(0x10d);return _0x3ae76a(0x112);}return _0x3ae76a(0x118);}export function formatTokenCount(_0x1e6047){const _0x792fbe=a89_0x563f;return _0x1e6047[_0x792fbe(0x121)](_0x792fbe(0x11b));}function a89_0x563f(_0x5a4bd6,_0x544cf0){const _0x480618=a89_0x4806();return a89_0x563f=function(_0x563f64,_0x4d8e08){_0x563f64=_0x563f64-0x10d;let _0x432165=_0x480618[_0x563f64];return _0x432165;},a89_0x563f(_0x5a4bd6,_0x544cf0);}export function calculateContextPercentage(_0x56963c,_0x8b28fa){const _0x98535f=a89_0x563f,_0xb9509a=getContextLimit(_0x8b28fa);return Math[_0x98535f(0x10f)](_0x56963c/_0xb9509a*0x64);}
@@ -1 +1 @@
1
- function a90_0x1669(_0x43388f,_0x432564){const _0x1439bb=a90_0x1439();return a90_0x1669=function(_0x166997,_0x47233c){_0x166997=_0x166997-0x191;let _0x4e37c0=_0x1439bb[_0x166997];return _0x4e37c0;},a90_0x1669(_0x43388f,_0x432564);}(function(_0x123032,_0x2258e6){const _0x53a53c=a90_0x1669,_0x50a319=_0x123032();while(!![]){try{const _0x35affd=parseInt(_0x53a53c(0x19d))/0x1+-parseInt(_0x53a53c(0x192))/0x2+parseInt(_0x53a53c(0x194))/0x3+parseInt(_0x53a53c(0x19f))/0x4*(-parseInt(_0x53a53c(0x199))/0x5)+-parseInt(_0x53a53c(0x197))/0x6+parseInt(_0x53a53c(0x19c))/0x7+parseInt(_0x53a53c(0x198))/0x8*(-parseInt(_0x53a53c(0x195))/0x9);if(_0x35affd===_0x2258e6)break;else _0x50a319['push'](_0x50a319['shift']());}catch(_0x5a90e9){_0x50a319['push'](_0x50a319['shift']());}}}(a90_0x1439,0xcc3f9));function a90_0x1439(){const _0x592d67=['isInteger','422496OBCVqg','.\x20Must\x20be\x20a\x20number.','3302277DJQPJN','9rGsNyL','.\x20Must\x20be\x20a\x20positive\x20number.','4541364sQmpki','55672PgtPdU','10YUaVlx','number','.\x20Must\x20be\x20an\x20integer.','3609459wTRwlN','952612andpqp','.\x20Must\x20be\x20a\x20positive\x20integer.','1514612EWJtMp'];a90_0x1439=function(){return _0x592d67;};return a90_0x1439();}export function validateLimitOption(_0x4a8744){const _0x3f3e65=a90_0x1669;if(!Number[_0x3f3e65(0x191)](_0x4a8744))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x4a8744+_0x3f3e65(0x19b)};if(_0x4a8744<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x4a8744+_0x3f3e65(0x19e)};return{'isValid':!![],'value':_0x4a8744};}export function validateTimeoutOption(_0x2a43ff,_0x224bb5=0x1e){const _0x5932ef=a90_0x1669;if(_0x2a43ff===undefined)return{'isValid':!![],'value':_0x224bb5};const _0x330a94=typeof _0x2a43ff===_0x5932ef(0x19a)?_0x2a43ff:parseFloat(_0x2a43ff);if(isNaN(_0x330a94))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x2a43ff+_0x5932ef(0x193)};if(_0x330a94<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x330a94+_0x5932ef(0x196)};return{'isValid':!![],'value':_0x330a94};}
1
+ (function(_0x515709,_0x34323c){const _0x43b49c=a90_0x1117,_0x313569=_0x515709();while(!![]){try{const _0x5e845d=-parseInt(_0x43b49c(0x18d))/0x1+-parseInt(_0x43b49c(0x189))/0x2+-parseInt(_0x43b49c(0x18f))/0x3+-parseInt(_0x43b49c(0x185))/0x4+-parseInt(_0x43b49c(0x18b))/0x5*(parseInt(_0x43b49c(0x192))/0x6)+parseInt(_0x43b49c(0x190))/0x7*(parseInt(_0x43b49c(0x183))/0x8)+-parseInt(_0x43b49c(0x188))/0x9*(-parseInt(_0x43b49c(0x18e))/0xa);if(_0x5e845d===_0x34323c)break;else _0x313569['push'](_0x313569['shift']());}catch(_0x7b7886){_0x313569['push'](_0x313569['shift']());}}}(a90_0x3748,0xc81bd));export function validateLimitOption(_0x1c81cd){const _0x264967=a90_0x1117;if(!Number['isInteger'](_0x1c81cd))return{'isValid':![],'error':_0x264967(0x193)+_0x1c81cd+_0x264967(0x18a)};if(_0x1c81cd<=0x0)return{'isValid':![],'error':_0x264967(0x193)+_0x1c81cd+_0x264967(0x186)};return{'isValid':!![],'value':_0x1c81cd};}function a90_0x1117(_0xab309a,_0x2ab71c){const _0x3748f7=a90_0x3748();return a90_0x1117=function(_0x111786,_0x1ee572){_0x111786=_0x111786-0x183;let _0x3eb38e=_0x3748f7[_0x111786];return _0x3eb38e;},a90_0x1117(_0xab309a,_0x2ab71c);}function a90_0x3748(){const _0x24f35d=['.\x20Must\x20be\x20an\x20integer.','76470nhVlNd','.\x20Must\x20be\x20a\x20positive\x20number.','230517SDXwUF','2192520LSglyx','394158yXhMdV','42SEVCBM','.\x20Must\x20be\x20a\x20number.','426raDKLQ','Invalid\x20limit\x20value:\x20','923504eWpAGM','Invalid\x20timeout\x20value:\x20','3805100eEKELF','.\x20Must\x20be\x20a\x20positive\x20integer.','number','162lBvEgV','2840934mzdJtm'];a90_0x3748=function(){return _0x24f35d;};return a90_0x3748();}export function validateTimeoutOption(_0xa4eecb,_0x529b53=0x1e){const _0x2f11c8=a90_0x1117;if(_0xa4eecb===undefined)return{'isValid':!![],'value':_0x529b53};const _0x3daea8=typeof _0xa4eecb===_0x2f11c8(0x187)?_0xa4eecb:parseFloat(_0xa4eecb);if(isNaN(_0x3daea8))return{'isValid':![],'error':_0x2f11c8(0x184)+_0xa4eecb+_0x2f11c8(0x191)};if(_0x3daea8<=0x0)return{'isValid':![],'error':_0x2f11c8(0x184)+_0x3daea8+_0x2f11c8(0x18c)};return{'isValid':!![],'value':_0x3daea8};}
@@ -1 +1 @@
1
- function a91_0x36b3(_0xc10ea,_0x19a363){const _0x58a437=a91_0x58a4();return a91_0x36b3=function(_0x36b316,_0x3e4faa){_0x36b316=_0x36b316-0x13a;let _0x22b3e3=_0x58a437[_0x36b316];return _0x22b3e3;},a91_0x36b3(_0xc10ea,_0x19a363);}(function(_0x3ad267,_0x487810){const _0xa2afea=a91_0x36b3,_0x1c0f34=_0x3ad267();while(!![]){try{const _0x1a3354=parseInt(_0xa2afea(0x13f))/0x1+parseInt(_0xa2afea(0x140))/0x2*(parseInt(_0xa2afea(0x145))/0x3)+-parseInt(_0xa2afea(0x144))/0x4+-parseInt(_0xa2afea(0x148))/0x5*(-parseInt(_0xa2afea(0x149))/0x6)+-parseInt(_0xa2afea(0x13c))/0x7*(-parseInt(_0xa2afea(0x13d))/0x8)+parseInt(_0xa2afea(0x142))/0x9+-parseInt(_0xa2afea(0x14a))/0xa;if(_0x1a3354===_0x487810)break;else _0x1c0f34['push'](_0x1c0f34['shift']());}catch(_0x48f606){_0x1c0f34['push'](_0x1c0f34['shift']());}}}(a91_0x58a4,0xf2c00));import{createServer}from'node:net';function a91_0x58a4(){const _0x2d8f77=['289145GXTrUM','174SYEcKa','48413530qBNuZK','listen','EADDRINUSE','No\x20available\x20port\x20found\x20between\x20','633283GNQduU','168sunwQH','close','1270730LlfftV','35782sugUVh','listening','9540972Rvthdp','once','2578332ZCfmbn','96cEorRY','0.0.0.0','\x20and\x20'];a91_0x58a4=function(){return _0x2d8f77;};return a91_0x58a4();}export async function isPortAvailable(_0x2617ca){return new Promise(_0x293abd=>{const _0x52df7f=a91_0x36b3,_0x24ab53=createServer();_0x24ab53[_0x52df7f(0x143)]('error',_0x5b453b=>{const _0x311517=_0x52df7f;_0x5b453b['code']===_0x311517(0x13a)?_0x293abd(![]):_0x293abd(![]);}),_0x24ab53[_0x52df7f(0x143)](_0x52df7f(0x141),()=>{const _0x2ab6e9=_0x52df7f;_0x24ab53[_0x2ab6e9(0x13e)](),_0x293abd(!![]);}),_0x24ab53[_0x52df7f(0x14b)](_0x2617ca,_0x52df7f(0x146));});}export async function findAvailablePort(_0xca82dc=0xfa0,_0x56aff2=0x64){const _0x1edbf2=a91_0x36b3;for(let _0xb4c638=0x0;_0xb4c638<_0x56aff2;_0xb4c638++){const _0x58e03e=_0xca82dc+_0xb4c638;if(await isPortAvailable(_0x58e03e))return _0x58e03e;}throw new Error(_0x1edbf2(0x13b)+_0xca82dc+_0x1edbf2(0x147)+(_0xca82dc+_0x56aff2-0x1));}
1
+ function a91_0x5f40(_0x596cf5,_0x31fe61){const _0x2dc4a9=a91_0x2dc4();return a91_0x5f40=function(_0x5f4004,_0xce6b62){_0x5f4004=_0x5f4004-0xee;let _0x72eb1e=_0x2dc4a9[_0x5f4004];return _0x72eb1e;},a91_0x5f40(_0x596cf5,_0x31fe61);}(function(_0x1686db,_0x3fd6a0){const _0x1bbe27=a91_0x5f40,_0x418ace=_0x1686db();while(!![]){try{const _0x59f0ee=parseInt(_0x1bbe27(0xfc))/0x1+parseInt(_0x1bbe27(0xf4))/0x2+-parseInt(_0x1bbe27(0xf7))/0x3*(parseInt(_0x1bbe27(0xef))/0x4)+-parseInt(_0x1bbe27(0xf8))/0x5*(-parseInt(_0x1bbe27(0xf2))/0x6)+-parseInt(_0x1bbe27(0xf3))/0x7+parseInt(_0x1bbe27(0x101))/0x8*(parseInt(_0x1bbe27(0xf9))/0x9)+-parseInt(_0x1bbe27(0xfb))/0xa*(-parseInt(_0x1bbe27(0xff))/0xb);if(_0x59f0ee===_0x3fd6a0)break;else _0x418ace['push'](_0x418ace['shift']());}catch(_0x42e475){_0x418ace['push'](_0x418ace['shift']());}}}(a91_0x2dc4,0x61575));import{createServer}from'node:net';export async function isPortAvailable(_0x3164cf){return new Promise(_0x298753=>{const _0x595a34=a91_0x5f40,_0x29d8d7=createServer();_0x29d8d7[_0x595a34(0xf6)](_0x595a34(0xf5),_0x24f75a=>{const _0x22131d=_0x595a34;_0x24f75a['code']===_0x22131d(0xee)?_0x298753(![]):_0x298753(![]);}),_0x29d8d7['once'](_0x595a34(0xfa),()=>{const _0x3f58c8=_0x595a34;_0x29d8d7[_0x3f58c8(0xfd)](),_0x298753(!![]);}),_0x29d8d7[_0x595a34(0xf1)](_0x3164cf,_0x595a34(0xfe));});}function a91_0x2dc4(){const _0x57685b=['349692LUNOHk','error','once','1839oTxlBC','10ixcJym','90VdFyGg','listening','1206300tGVmQS','715675MPFYsh','close','0.0.0.0','11LdPNDR','\x20and\x20','107288AsksMM','EADDRINUSE','2404fFboFG','No\x20available\x20port\x20found\x20between\x20','listen','665358NAuJzF','4199475SvPUJD'];a91_0x2dc4=function(){return _0x57685b;};return a91_0x2dc4();}export async function findAvailablePort(_0x13808a=0xfa0,_0x2400c5=0x64){const _0x66cacd=a91_0x5f40;for(let _0x97a6de=0x0;_0x97a6de<_0x2400c5;_0x97a6de++){const _0x530a31=_0x13808a+_0x97a6de;if(await isPortAvailable(_0x530a31))return _0x530a31;}throw new Error(_0x66cacd(0xf0)+_0x13808a+_0x66cacd(0x100)+(_0x13808a+_0x2400c5-0x1));}
@@ -1 +1 @@
1
- const a92_0x1c1237=a92_0x113e;(function(_0x5256f8,_0x4d8414){const _0x16ac2a=a92_0x113e,_0x125d59=_0x5256f8();while(!![]){try{const _0x41b9e9=-parseInt(_0x16ac2a(0xb3))/0x1+parseInt(_0x16ac2a(0x9d))/0x2+-parseInt(_0x16ac2a(0xad))/0x3*(-parseInt(_0x16ac2a(0x9a))/0x4)+parseInt(_0x16ac2a(0x9e))/0x5+-parseInt(_0x16ac2a(0x9f))/0x6*(parseInt(_0x16ac2a(0x99))/0x7)+-parseInt(_0x16ac2a(0xc2))/0x8*(parseInt(_0x16ac2a(0xb7))/0x9)+parseInt(_0x16ac2a(0xaf))/0xa;if(_0x41b9e9===_0x4d8414)break;else _0x125d59['push'](_0x125d59['shift']());}catch(_0x4529a5){_0x125d59['push'](_0x125d59['shift']());}}}(a92_0x2bfc,0x26bd9));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a92_0x1c1237(0xbf),'zsh','sh','fish','ksh',a92_0x1c1237(0xac),a92_0x1c1237(0xb6),a92_0x1c1237(0xb1),a92_0x1c1237(0xb9),'powershell','nu','ion','elvish',a92_0x1c1237(0xb4)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a92_0x1c1237(0xa7),a92_0x1c1237(0xa1)]);function getProcessInfoWindows(_0xbfaba8){const _0xbbcf73=a92_0x1c1237;try{const _0x13dde7=execSync(_0xbbcf73(0xbd)+_0xbfaba8+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0xbbcf73(0x97),'windowsHide':!![]})[_0xbbcf73(0xb8)](),_0xb11148=_0x13dde7['split']('\x0a')[_0xbbcf73(0x9c)](_0x4fd602=>_0x4fd602[_0xbbcf73(0xb8)]());if(_0xb11148[_0xbbcf73(0xbe)]<0x2)return null;const _0x251b2e=_0xb11148[_0xb11148[_0xbbcf73(0xbe)]-0x1]['split'](',');if(_0x251b2e[_0xbbcf73(0xbe)]<0x3)return null;const _0x367c3e=_0x251b2e[0x1]?.[_0xbbcf73(0xb8)]()||'',_0x5d4a0c=parseInt(_0x251b2e[0x2]?.[_0xbbcf73(0xb8)]()||'0',0xa);if(isNaN(_0x5d4a0c)||!_0x367c3e)return null;return{'pid':_0xbfaba8,'ppid':_0x5d4a0c,'comm':_0x367c3e[_0xbbcf73(0xba)](/\.exe$/i,'')};}catch(_0x4b7b72){return process[_0xbbcf73(0xa4)][_0xbbcf73(0xbc)]&&console[_0xbbcf73(0xab)](_0xbbcf73(0xb5)+_0xbfaba8+_0xbbcf73(0xbb),_0x4b7b72),null;}}function getProcessInfoPosix(_0x251f97){const _0x54f6dc=a92_0x1c1237;try{const _0x53bed9=execSync(_0x54f6dc(0xc1)+_0x251f97+_0x54f6dc(0xc0),{'encoding':_0x54f6dc(0x97)})[_0x54f6dc(0xb8)](),[_0x1071e7,..._0x21db2c]=_0x53bed9[_0x54f6dc(0xa5)](/\s+/),_0x31f8f0=parseInt(_0x1071e7,0xa),_0x5579c8=_0x21db2c[_0x54f6dc(0xa8)]('\x20');if(isNaN(_0x31f8f0))return null;return{'pid':_0x251f97,'ppid':_0x31f8f0,'comm':_0x5579c8};}catch(_0x2d8155){return process[_0x54f6dc(0xa4)][_0x54f6dc(0xbc)]&&console[_0x54f6dc(0xab)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x251f97+_0x54f6dc(0xae),_0x2d8155),null;}}function getProcessInfo(_0xb37afb){if(process['platform']==='win32')return getProcessInfoWindows(_0xb37afb);return getProcessInfoPosix(_0xb37afb);}function a92_0x113e(_0x229a3c,_0x56f808){const _0x2bfca0=a92_0x2bfc();return a92_0x113e=function(_0x113e31,_0x3a4eea){_0x113e31=_0x113e31-0x97;let _0x3818a4=_0x2bfca0[_0x113e31];return _0x3818a4;},a92_0x113e(_0x229a3c,_0x56f808);}function getBasename(_0x18803c){const _0x93d444=a92_0x1c1237;return _0x18803c[_0x93d444(0xba)](/^-/,'')[_0x93d444(0xa5)]('/')[_0x93d444(0xa0)]()?.[_0x93d444(0xa6)]()||'';}function isShell(_0x40bb8f){const _0x275d70=a92_0x1c1237;return SHELL_NAMES[_0x275d70(0x9b)](getBasename(_0x40bb8f));}function isEphemeralShellSpawner(_0x148ad4){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x148ad4));}function a92_0x2bfc(){const _0x2abd24=['1164265IumtXQ','126744YovRJO','pop','cursor','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','Found\x20ephemeral\x20shell\x20','env','split','toLowerCase','code','join',',\x20using\x20fallback','ppid','error','tcsh','140421IQorCe','\x20on\x20POSIX:','172120fYxDqb','pid','dash',')\x20spawned\x20by\x20','53553qRMTDU','xonsh','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','csh','892746QbmJoe','trim','pwsh','replace','\x20on\x20Windows:','DEBUG','wmic\x20process\x20where\x20ProcessId=','length','bash','\x20-o\x20ppid=,comm=','ps\x20-p\x20','8UvVJLj','comm','utf-8','kill','70qelwdR','16UvNnSN','has','filter','170750BfBvcs'];a92_0x2bfc=function(){return _0x2abd24;};return a92_0x2bfc();}let cachedShellPID;function findShellPID(){const _0x56c854=a92_0x1c1237;let _0x5b2b36=process[_0x56c854(0xaa)];const _0x5e073c=0xa;let _0x52be17=0x0;while(_0x52be17<_0x5e073c){const _0x63b9a=getProcessInfo(_0x5b2b36);if(!_0x63b9a){process[_0x56c854(0xa4)]['DEBUG']&&console[_0x56c854(0xab)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x5b2b36+_0x56c854(0xa9));break;}if(isShell(_0x63b9a['comm'])){const _0x280f24=getProcessInfo(_0x63b9a[_0x56c854(0xaa)]);if(_0x280f24&&isEphemeralShellSpawner(_0x280f24[_0x56c854(0xc3)])){process[_0x56c854(0xa4)][_0x56c854(0xbc)]&&console[_0x56c854(0xab)](_0x56c854(0xa3)+_0x63b9a['pid']+'\x20('+_0x63b9a[_0x56c854(0xc3)]+_0x56c854(0xb2)+_0x280f24[_0x56c854(0xc3)]+',\x20continuing\x20up');_0x5b2b36=_0x63b9a['ppid'],_0x52be17++;continue;}return _0x63b9a[_0x56c854(0xb0)];}if(_0x63b9a[_0x56c854(0xaa)]===0x0||_0x63b9a[_0x56c854(0xaa)]===0x1){if(isShell(_0x63b9a[_0x56c854(0xc3)]))return _0x63b9a[_0x56c854(0xb0)];break;}_0x5b2b36=_0x63b9a[_0x56c854(0xaa)],_0x52be17++;}return process[_0x56c854(0xa4)]['DEBUG']&&console[_0x56c854(0xab)](_0x56c854(0xa2)),process[_0x56c854(0xaa)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x37d648){const _0x119fb7=a92_0x1c1237;try{return process[_0x119fb7(0x98)](_0x37d648,0x0),!![];}catch{return![];}}
1
+ const a92_0x23413d=a92_0x5947;(function(_0x299da4,_0xc97d1a){const _0x21b396=a92_0x5947,_0xb23021=_0x299da4();while(!![]){try{const _0x49c364=-parseInt(_0x21b396(0x148))/0x1*(-parseInt(_0x21b396(0x131))/0x2)+parseInt(_0x21b396(0x147))/0x3+-parseInt(_0x21b396(0x146))/0x4+parseInt(_0x21b396(0x14b))/0x5+-parseInt(_0x21b396(0x13b))/0x6*(-parseInt(_0x21b396(0x13d))/0x7)+parseInt(_0x21b396(0x15a))/0x8+-parseInt(_0x21b396(0x15c))/0x9;if(_0x49c364===_0xc97d1a)break;else _0xb23021['push'](_0xb23021['shift']());}catch(_0x158279){_0xb23021['push'](_0xb23021['shift']());}}}(a92_0x33fb,0xc1013));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a92_0x23413d(0x156),a92_0x23413d(0x155),'sh',a92_0x23413d(0x138),a92_0x23413d(0x13e),a92_0x23413d(0x143),a92_0x23413d(0x14c),a92_0x23413d(0x134),a92_0x23413d(0x132),a92_0x23413d(0x15f),'nu',a92_0x23413d(0x15e),'elvish',a92_0x23413d(0x137)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a92_0x23413d(0x14e),a92_0x23413d(0x149),'cursor']);function getProcessInfoWindows(_0x72c238){const _0x5e3b9c=a92_0x23413d;try{const _0x437129=execSync(_0x5e3b9c(0x13f)+_0x72c238+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x5e3b9c(0x13c),'windowsHide':!![]})[_0x5e3b9c(0x136)](),_0x53317c=_0x437129[_0x5e3b9c(0x144)]('\x0a')[_0x5e3b9c(0x142)](_0x5c1ca3=>_0x5c1ca3[_0x5e3b9c(0x136)]());if(_0x53317c[_0x5e3b9c(0x140)]<0x2)return null;const _0xcf23d5=_0x53317c[_0x53317c[_0x5e3b9c(0x140)]-0x1][_0x5e3b9c(0x144)](',');if(_0xcf23d5[_0x5e3b9c(0x140)]<0x3)return null;const _0x4cdbb8=_0xcf23d5[0x1]?.[_0x5e3b9c(0x136)]()||'',_0x587b20=parseInt(_0xcf23d5[0x2]?.[_0x5e3b9c(0x136)]()||'0',0xa);if(isNaN(_0x587b20)||!_0x4cdbb8)return null;return{'pid':_0x72c238,'ppid':_0x587b20,'comm':_0x4cdbb8[_0x5e3b9c(0x157)](/\.exe$/i,'')};}catch(_0x432a8c){return process[_0x5e3b9c(0x152)][_0x5e3b9c(0x145)]&&console[_0x5e3b9c(0x133)](_0x5e3b9c(0x15d)+_0x72c238+_0x5e3b9c(0x160),_0x432a8c),null;}}function getProcessInfoPosix(_0x34f044){const _0x5dcb91=a92_0x23413d;try{const _0x30382c=execSync(_0x5dcb91(0x153)+_0x34f044+_0x5dcb91(0x139),{'encoding':_0x5dcb91(0x13c)})['trim'](),[_0x3edc61,..._0x3b17db]=_0x30382c['split'](/\s+/),_0x85c2e4=parseInt(_0x3edc61,0xa),_0x22c87e=_0x3b17db[_0x5dcb91(0x15b)]('\x20');if(isNaN(_0x85c2e4))return null;return{'pid':_0x34f044,'ppid':_0x85c2e4,'comm':_0x22c87e};}catch(_0x31c3b5){return process[_0x5dcb91(0x152)][_0x5dcb91(0x145)]&&console[_0x5dcb91(0x133)](_0x5dcb91(0x15d)+_0x34f044+_0x5dcb91(0x141),_0x31c3b5),null;}}function getProcessInfo(_0x58984c){const _0x2858c5=a92_0x23413d;if(process[_0x2858c5(0x158)]==='win32')return getProcessInfoWindows(_0x58984c);return getProcessInfoPosix(_0x58984c);}function a92_0x33fb(){const _0x39ffac=['comm','1518520dJIHcp','csh',',\x20using\x20fallback','claude','ppid',')\x20spawned\x20by\x20','pid','env','ps\x20-p\x20','kill','zsh','bash','replace','platform','has','11249208OQQpIU','join','23292009vFWHFK','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','ion','powershell','\x20on\x20Windows:','299614dENELJ','pwsh','error','dash','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','trim','xonsh','fish','\x20-o\x20ppid=,comm=','pop','16926vQBuzI','utf-8','2303RQZPnG','ksh','wmic\x20process\x20where\x20ProcessId=','length','\x20on\x20POSIX:','filter','tcsh','split','DEBUG','1116552hCnKUC','2160324KEFFLE','2xKweMR','code'];a92_0x33fb=function(){return _0x39ffac;};return a92_0x33fb();}function a92_0x5947(_0x23516c,_0x2033cf){const _0x33fb26=a92_0x33fb();return a92_0x5947=function(_0x594732,_0x54a1c7){_0x594732=_0x594732-0x131;let _0x1b2f2a=_0x33fb26[_0x594732];return _0x1b2f2a;},a92_0x5947(_0x23516c,_0x2033cf);}function getBasename(_0x44c654){const _0x414cac=a92_0x23413d;return _0x44c654[_0x414cac(0x157)](/^-/,'')[_0x414cac(0x144)]('/')[_0x414cac(0x13a)]()?.['toLowerCase']()||'';}function isShell(_0x3adfe5){const _0x568d35=a92_0x23413d;return SHELL_NAMES[_0x568d35(0x159)](getBasename(_0x3adfe5));}function isEphemeralShellSpawner(_0x169906){const _0x46e97d=a92_0x23413d;return EPHEMERAL_SHELL_SPAWNERS[_0x46e97d(0x159)](getBasename(_0x169906));}let cachedShellPID;function findShellPID(){const _0xb95db7=a92_0x23413d;let _0x12c5c5=process[_0xb95db7(0x14f)];const _0x529381=0xa;let _0x1d706b=0x0;while(_0x1d706b<_0x529381){const _0x53d7d2=getProcessInfo(_0x12c5c5);if(!_0x53d7d2){process[_0xb95db7(0x152)][_0xb95db7(0x145)]&&console[_0xb95db7(0x133)](_0xb95db7(0x135)+_0x12c5c5+_0xb95db7(0x14d));break;}if(isShell(_0x53d7d2[_0xb95db7(0x14a)])){const _0x5b86ca=getProcessInfo(_0x53d7d2[_0xb95db7(0x14f)]);if(_0x5b86ca&&isEphemeralShellSpawner(_0x5b86ca[_0xb95db7(0x14a)])){process['env'][_0xb95db7(0x145)]&&console[_0xb95db7(0x133)]('Found\x20ephemeral\x20shell\x20'+_0x53d7d2[_0xb95db7(0x151)]+'\x20('+_0x53d7d2[_0xb95db7(0x14a)]+_0xb95db7(0x150)+_0x5b86ca[_0xb95db7(0x14a)]+',\x20continuing\x20up');_0x12c5c5=_0x53d7d2['ppid'],_0x1d706b++;continue;}return _0x53d7d2['pid'];}if(_0x53d7d2[_0xb95db7(0x14f)]===0x0||_0x53d7d2[_0xb95db7(0x14f)]===0x1){if(isShell(_0x53d7d2['comm']))return _0x53d7d2['pid'];break;}_0x12c5c5=_0x53d7d2[_0xb95db7(0x14f)],_0x1d706b++;}return process[_0xb95db7(0x152)][_0xb95db7(0x145)]&&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(_0x11a56c){const _0x6d21b5=a92_0x23413d;try{return process[_0x6d21b5(0x154)](_0x11a56c,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a93_0x3189(_0x519aef,_0x5ab3d5){const _0x384ea=a93_0x384e();return a93_0x3189=function(_0x3189cc,_0x3b80b1){_0x3189cc=_0x3189cc-0x151;let _0x314e5f=_0x384ea[_0x3189cc];return _0x314e5f;},a93_0x3189(_0x519aef,_0x5ab3d5);}(function(_0x6d54e3,_0x1221de){const _0x3cc109=a93_0x3189,_0x4365e3=_0x6d54e3();while(!![]){try{const _0x3283d9=-parseInt(_0x3cc109(0x151))/0x1*(-parseInt(_0x3cc109(0x153))/0x2)+parseInt(_0x3cc109(0x166))/0x3*(-parseInt(_0x3cc109(0x157))/0x4)+-parseInt(_0x3cc109(0x161))/0x5*(parseInt(_0x3cc109(0x154))/0x6)+-parseInt(_0x3cc109(0x164))/0x7+-parseInt(_0x3cc109(0x159))/0x8+parseInt(_0x3cc109(0x168))/0x9+parseInt(_0x3cc109(0x156))/0xa*(parseInt(_0x3cc109(0x15a))/0xb);if(_0x3283d9===_0x1221de)break;else _0x4365e3['push'](_0x4365e3['shift']());}catch(_0x541b3d){_0x4365e3['push'](_0x4365e3['shift']());}}}(a93_0x384e,0xc9959));import*as a93_0x2ab31c from'readline';export async function confirm(_0x355212){const _0x15c1b4=a93_0x3189,_0xe184f7=a93_0x2ab31c['createInterface']({'input':process[_0x15c1b4(0x15c)],'output':process['stdout']});return new Promise(_0x7fa77=>{const _0x1a3e72=_0x15c1b4;_0xe184f7[_0x1a3e72(0x155)](_0x355212+_0x1a3e72(0x15b),_0x34cdca=>{const _0x4c3593=_0x1a3e72;_0xe184f7[_0x4c3593(0x167)](),_0x7fa77(_0x34cdca['toLowerCase']()==='y'||_0x34cdca[_0x4c3593(0x163)]()==='yes');});});}export async function confirmKey(_0x49f442){const _0x86cb4a=a93_0x3189;if(!process[_0x86cb4a(0x15c)][_0x86cb4a(0x158)])return![];return process[_0x86cb4a(0x15e)]['write'](_0x49f442+_0x86cb4a(0x160)),new Promise(_0x54273c=>{const _0x13750c=_0x86cb4a,_0x5e1d73=process[_0x13750c(0x15c)];_0x5e1d73[_0x13750c(0x165)](!![]),_0x5e1d73['resume'](),_0x5e1d73[_0x13750c(0x15f)]('utf8');const _0x3613f4=_0x71962d=>{const _0x23a4db=_0x13750c;_0x5e1d73[_0x23a4db(0x165)](![]),_0x5e1d73['pause'](),_0x5e1d73[_0x23a4db(0x152)](_0x23a4db(0x15d),_0x3613f4);if(_0x71962d==='\x1b'){process[_0x23a4db(0x15e)][_0x23a4db(0x162)]('\x0a'),_0x54273c(![]);return;}_0x71962d==='\x03'&&(process[_0x23a4db(0x15e)][_0x23a4db(0x162)]('\x0a'),process['exit'](0x82));if(_0x71962d['toLowerCase']()==='y'){process[_0x23a4db(0x15e)][_0x23a4db(0x162)]('y\x0a'),_0x54273c(!![]);return;}process[_0x23a4db(0x15e)]['write']('\x0a'),_0x54273c(![]);};_0x5e1d73['on'](_0x13750c(0x15d),_0x3613f4);});}function a93_0x384e(){const _0x9c9f1c=['data','stderr','setEncoding','\x20[y/N]\x20','171565VQlBZQ','write','toLowerCase','4241419AKbmrH','setRawMode','496323MAedvh','close','13168440qhvgMs','2363QoDHNP','removeListener','1356HWqAqp','96luDCjH','question','10WQdrYC','36UBeNEd','isTTY','12651040HPNmjb','21842579txmoAY','\x20(y/N):\x20','stdin'];a93_0x384e=function(){return _0x9c9f1c;};return a93_0x384e();}
1
+ (function(_0x1db066,_0x34934b){const _0x174163=a93_0x55a1,_0x22bb04=_0x1db066();while(!![]){try{const _0x2606ee=-parseInt(_0x174163(0x12f))/0x1*(parseInt(_0x174163(0x143))/0x2)+parseInt(_0x174163(0x139))/0x3+-parseInt(_0x174163(0x13c))/0x4+-parseInt(_0x174163(0x138))/0x5+parseInt(_0x174163(0x137))/0x6*(parseInt(_0x174163(0x12d))/0x7)+-parseInt(_0x174163(0x141))/0x8+parseInt(_0x174163(0x12c))/0x9;if(_0x2606ee===_0x34934b)break;else _0x22bb04['push'](_0x22bb04['shift']());}catch(_0x40fdd4){_0x22bb04['push'](_0x22bb04['shift']());}}}(a93_0x60dd,0xd1a9a));import*as a93_0x28b909 from'readline';export async function confirm(_0x4d053a){const _0x1d9764=a93_0x55a1,_0xd84473=a93_0x28b909[_0x1d9764(0x13a)]({'input':process[_0x1d9764(0x12b)],'output':process[_0x1d9764(0x135)]});return new Promise(_0x46b607=>{const _0x252d0f=_0x1d9764;_0xd84473[_0x252d0f(0x131)](_0x4d053a+_0x252d0f(0x133),_0x5c9b08=>{const _0x5a7381=_0x252d0f;_0xd84473[_0x5a7381(0x130)](),_0x46b607(_0x5c9b08[_0x5a7381(0x12e)]()==='y'||_0x5c9b08['toLowerCase']()===_0x5a7381(0x13e));});});}function a93_0x55a1(_0x49a200,_0x4ea815){const _0x60ddba=a93_0x60dd();return a93_0x55a1=function(_0x55a10e,_0x4bbed0){_0x55a10e=_0x55a10e-0x12a;let _0x2d6766=_0x60ddba[_0x55a10e];return _0x2d6766;},a93_0x55a1(_0x49a200,_0x4ea815);}export async function confirmKey(_0x128ebb){const _0x4e1064=a93_0x55a1;if(!process['stdin'][_0x4e1064(0x132)])return![];return process['stderr'][_0x4e1064(0x134)](_0x128ebb+_0x4e1064(0x13b)),new Promise(_0x25138d=>{const _0x4f1111=_0x4e1064,_0x5e2b1f=process['stdin'];_0x5e2b1f['setRawMode'](!![]),_0x5e2b1f['resume'](),_0x5e2b1f[_0x4f1111(0x140)](_0x4f1111(0x142));const _0x4d63b1=_0x40496b=>{const _0x2df3da=_0x4f1111;_0x5e2b1f['setRawMode'](![]),_0x5e2b1f[_0x2df3da(0x13d)](),_0x5e2b1f[_0x2df3da(0x13f)]('data',_0x4d63b1);if(_0x40496b==='\x1b'){process[_0x2df3da(0x136)]['write']('\x0a'),_0x25138d(![]);return;}_0x40496b==='\x03'&&(process[_0x2df3da(0x136)][_0x2df3da(0x134)]('\x0a'),process[_0x2df3da(0x12a)](0x82));if(_0x40496b['toLowerCase']()==='y'){process[_0x2df3da(0x136)][_0x2df3da(0x134)]('y\x0a'),_0x25138d(!![]);return;}process['stderr'][_0x2df3da(0x134)]('\x0a'),_0x25138d(![]);};_0x5e2b1f['on'](_0x4f1111(0x144),_0x4d63b1);});}function a93_0x60dd(){const _0x3dcf6d=['4407016FRflxQ','pause','yes','removeListener','setEncoding','89904tuLfRg','utf8','34jOZZHS','data','exit','stdin','13569714cfLpTe','466522rZVKGW','toLowerCase','29831GWugPw','close','question','isTTY','\x20(y/N):\x20','write','stdout','stderr','132hQNuCQ','7595310fPQDaB','3072003PVYJoU','createInterface','\x20[y/N]\x20'];a93_0x60dd=function(){return _0x3dcf6d;};return a93_0x60dd();}