@treasuredata/tdx 0.2.2 → 0.2.3

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 (85) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.js +1 -1
  6. package/dist/client/rate-limiter.js +1 -1
  7. package/dist/client/td-client.js +1 -1
  8. package/dist/client/trino-client.js +1 -1
  9. package/dist/client/workflow-client.js +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/api-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/context-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/job-command.js +1 -1
  19. package/dist/commands/llm-command.js +1 -1
  20. package/dist/commands/llm-proxy.js +1 -1
  21. package/dist/commands/parent-segment-command.js +1 -1
  22. package/dist/commands/profiles-command.js +1 -1
  23. package/dist/commands/query-command.js +1 -1
  24. package/dist/commands/segment-command.js +1 -1
  25. package/dist/commands/segment-create-command.js +1 -1
  26. package/dist/commands/segment-fields-command.js +1 -1
  27. package/dist/commands/segment-pwd-command.js +1 -1
  28. package/dist/commands/segment-update-command.js +1 -1
  29. package/dist/commands/segment-use-command.js +1 -1
  30. package/dist/commands/segments.js +1 -1
  31. package/dist/commands/show.js +1 -1
  32. package/dist/commands/tables.js +1 -1
  33. package/dist/commands/use-command.js +1 -1
  34. package/dist/commands/workflow-command.js +1 -1
  35. package/dist/core/auth.js +1 -1
  36. package/dist/core/config.js +1 -1
  37. package/dist/core/global-context.js +1 -1
  38. package/dist/core/profile.js +1 -1
  39. package/dist/core/project-config.js +1 -1
  40. package/dist/core/session.js +1 -1
  41. package/dist/index.js +1 -1
  42. package/dist/proxy/anthropic-adapter.d.ts +8 -0
  43. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  44. package/dist/proxy/anthropic-adapter.js +1 -1
  45. package/dist/proxy/anthropic-adapter.js.map +1 -1
  46. package/dist/proxy/server.js +1 -1
  47. package/dist/proxy/session-cache.js +1 -1
  48. package/dist/sdk/api.js +1 -1
  49. package/dist/sdk/database.js +1 -1
  50. package/dist/sdk/errors.js +1 -1
  51. package/dist/sdk/index.js +1 -1
  52. package/dist/sdk/job.js +1 -1
  53. package/dist/sdk/llm.js +1 -1
  54. package/dist/sdk/query.js +1 -1
  55. package/dist/sdk/segment.js +1 -1
  56. package/dist/sdk/table.js +1 -1
  57. package/dist/sdk/workflow.js +1 -1
  58. package/dist/types/endpoints.js +1 -1
  59. package/dist/types/index.js +1 -1
  60. package/dist/utils/agent-ref-parser.js +1 -1
  61. package/dist/utils/chat-cache.js +1 -1
  62. package/dist/utils/colors.js +1 -1
  63. package/dist/utils/command-output.js +1 -1
  64. package/dist/utils/constants.js +1 -1
  65. package/dist/utils/file-permissions.js +1 -1
  66. package/dist/utils/format-detector.js +1 -1
  67. package/dist/utils/formatters.js +1 -1
  68. package/dist/utils/json-loader.js +1 -1
  69. package/dist/utils/model-aliases.js +1 -1
  70. package/dist/utils/option-validation.js +1 -1
  71. package/dist/utils/port.js +1 -1
  72. package/dist/utils/process.js +1 -1
  73. package/dist/utils/prompt.js +1 -1
  74. package/dist/utils/segment-path-parser.js +1 -1
  75. package/dist/utils/segment-ref-parser.js +1 -1
  76. package/dist/utils/spinner.js +1 -1
  77. package/dist/utils/sql-parser.js +1 -1
  78. package/dist/utils/sse-parser.js +1 -1
  79. package/dist/utils/string-utils.js +1 -1
  80. package/dist/utils/table-ref-parser.js +1 -1
  81. package/dist/utils/tdx-logger.js +1 -1
  82. package/dist/utils/tree-formatter.js +1 -1
  83. package/dist/utils/version-check.js +1 -1
  84. package/dist/utils/workflow-utils.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x32bff8,_0x49fcf6){const _0x548ab4=a73_0x340a,_0x3283d0=_0x32bff8();while(!![]){try{const _0xf098ee=parseInt(_0x548ab4(0xb8))/0x1*(parseInt(_0x548ab4(0xc4))/0x2)+parseInt(_0x548ab4(0xbd))/0x3*(parseInt(_0x548ab4(0xb1))/0x4)+parseInt(_0x548ab4(0xc9))/0x5*(-parseInt(_0x548ab4(0xbc))/0x6)+-parseInt(_0x548ab4(0xb6))/0x7+parseInt(_0x548ab4(0xb0))/0x8+-parseInt(_0x548ab4(0xc7))/0x9*(-parseInt(_0x548ab4(0xc0))/0xa)+parseInt(_0x548ab4(0xb2))/0xb*(parseInt(_0x548ab4(0xbf))/0xc);if(_0xf098ee===_0x49fcf6)break;else _0x3283d0['push'](_0x3283d0['shift']());}catch(_0x5344a4){_0x3283d0['push'](_0x3283d0['shift']());}}}(a73_0x344f,0xccfdf));function a73_0x340a(_0x59495a,_0x1206d2){const _0x344f5c=a73_0x344f();return a73_0x340a=function(_0x340a30,_0x5c0b47){_0x340a30=_0x340a30-0xb0;let _0x45936f=_0x344f5c[_0x340a30];return _0x45936f;},a73_0x340a(_0x59495a,_0x1206d2);}export function parsePath(_0x1ba3fd){const _0x53a744=a73_0x340a;if(!_0x1ba3fd||_0x1ba3fd[_0x53a744(0xc2)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x3032a1=_0x1ba3fd[_0x53a744(0xc2)]();if(_0x3032a1==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x1ba3fd};const _0x3c8426=_0x3032a1['startsWith']('/')?_0x3032a1[_0x53a744(0xb9)](0x1):_0x3032a1,_0x341da4=_0x3c8426[_0x53a744(0xc1)]('/')[_0x53a744(0xc8)](_0x373556=>_0x373556!=='');if(_0x341da4[_0x53a744(0xc3)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x13df61=_0x3032a1[_0x53a744(0xbe)]('/')||!isRelativePathSegment(_0x341da4[0x0]);for(const _0x3c03c4 of _0x341da4){validatePathSegment(_0x3c03c4);}return{'segments':_0x341da4,'isAbsolute':_0x13df61,'raw':_0x1ba3fd};}function isRelativePathSegment(_0x9b771b){return _0x9b771b==='.'||_0x9b771b==='..';}function validatePathSegment(_0x1b20b1){const _0x3de01e=a73_0x340a;if(_0x1b20b1==='')throw new Error(_0x3de01e(0xc6));if(_0x1b20b1==='.'||_0x1b20b1==='..')return;if(/[\x00-\x1F\x7F]/[_0x3de01e(0xb5)](_0x1b20b1))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x1b20b1);if(_0x1b20b1!==_0x1b20b1[_0x3de01e(0xc2)]()){}}export function validatePath(_0x508693){const _0x370aa0=a73_0x340a;if(_0x508693[_0x370aa0(0xb7)]['length']===0x0&&!_0x508693['isAbsolute'])throw new Error(_0x370aa0(0xb4));if(_0x508693[_0x370aa0(0xba)]){if(_0x508693['segments'][0x0]==='..')throw new Error(_0x370aa0(0xca));let _0xbba825=0x0;for(const _0xbef4ff of _0x508693[_0x370aa0(0xb7)]){if(_0xbef4ff==='..'){if(_0xbba825===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0xbba825--;}else _0xbef4ff!=='.'&&_0xbba825++;}}}export function joinPaths(_0x368825,_0x54cdf4){const _0x373558=a73_0x340a;if(!_0x368825||_0x368825==='/')return _0x54cdf4;if(!_0x54cdf4||_0x54cdf4==='.')return _0x368825;if(_0x54cdf4[_0x373558(0xbe)]('/'))return _0x54cdf4;const _0x48588d=parsePath(_0x368825),_0x26a9e8=parsePath(_0x54cdf4),_0x37e0a4=[..._0x48588d['segments']];for(const _0x504756 of _0x26a9e8[_0x373558(0xb7)]){if(_0x504756==='.')continue;else{if(_0x504756==='..'){if(_0x37e0a4[_0x373558(0xc3)]===0x0)throw new Error(_0x373558(0xcd));_0x37e0a4[_0x373558(0xb3)]();}else _0x37e0a4[_0x373558(0xc5)](_0x504756);}}const _0xab12e1=_0x37e0a4[_0x373558(0xce)]('/');return _0x48588d[_0x373558(0xbb)]['startsWith']('/')?'/'+_0xab12e1:_0xab12e1;}export function normalizePath(_0xf69ec1){const _0x1c6919=a73_0x340a,_0x5d3408=parsePath(_0xf69ec1),_0x1d230b=[];for(const _0x486752 of _0x5d3408['segments']){if(_0x486752==='.')continue;else{if(_0x486752==='..'){if(_0x1d230b[_0x1c6919(0xc3)]===0x0){if(_0x5d3408[_0x1c6919(0xba)])throw new Error(_0x1c6919(0xcd));_0x1d230b[_0x1c6919(0xc5)]('..');}else _0x1d230b[_0x1d230b['length']-0x1]==='..'?_0x1d230b[_0x1c6919(0xc5)]('..'):_0x1d230b[_0x1c6919(0xb3)]();}else _0x1d230b[_0x1c6919(0xc5)](_0x486752);}}if(_0x1d230b[_0x1c6919(0xc3)]===0x0)return _0x5d3408[_0x1c6919(0xba)]?'/':'.';const _0x848fac=_0x1d230b['join']('/');return _0x5d3408['raw'][_0x1c6919(0xbe)]('/')?'/'+_0x848fac:_0x848fac;}export function getParentPath(_0x4010cf){const _0x41c07c=a73_0x340a,_0x4b3a2d=parsePath(_0x4010cf);if(_0x4b3a2d[_0x41c07c(0xb7)][_0x41c07c(0xc3)]<=0x1)return'/';const _0x5ada2d=_0x4b3a2d[_0x41c07c(0xb7)][_0x41c07c(0xcb)](0x0,-0x1)[_0x41c07c(0xce)]('/');return _0x4b3a2d[_0x41c07c(0xbb)][_0x41c07c(0xbe)]('/')?'/'+_0x5ada2d:_0x5ada2d;}export function getBaseName(_0x2571be){const _0xe8480f=a73_0x340a,_0xe5f1a1=parsePath(_0x2571be);return _0xe5f1a1[_0xe8480f(0xb7)][_0xe5f1a1[_0xe8480f(0xb7)]['length']-0x1]||'';}function a73_0x344f(){const _0x465176=['4IhzxJc','push','Path\x20segment\x20cannot\x20be\x20empty','549MYJjYE','filter','30PVNjil','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','slice','Cannot\x20split\x20empty\x20path','Cannot\x20navigate\x20above\x20root','join','345520IdBDHY','19424GQqEoR','1214114zqMZct','pop','Relative\x20path\x20cannot\x20be\x20empty','test','2477006OHTAKa','segments','141751gVDNlE','substring','isAbsolute','raw','411414TTLEEP','426VfEdIN','startsWith','12SigTvd','78410kKDiVx','split','trim','length'];a73_0x344f=function(){return _0x465176;};return a73_0x344f();}export function isChildPath(_0x208bbf,_0x170a95){const _0x3b4790=a73_0x340a,_0x3e0984=parsePath(_0x208bbf),_0x4de7f7=parsePath(_0x170a95);if(_0x3e0984['segments'][_0x3b4790(0xc3)]<=_0x4de7f7[_0x3b4790(0xb7)][_0x3b4790(0xc3)])return![];for(let _0x4451d8=0x0;_0x4451d8<_0x4de7f7['segments'][_0x3b4790(0xc3)];_0x4451d8++){if(_0x3e0984[_0x3b4790(0xb7)][_0x4451d8]!==_0x4de7f7['segments'][_0x4451d8])return![];}return!![];}export function splitPath(_0x1eb4b3){const _0x255b9e=a73_0x340a,_0x6a7481=parsePath(_0x1eb4b3);if(_0x6a7481[_0x255b9e(0xb7)]['length']===0x0)throw new Error(_0x255b9e(0xcc));if(_0x6a7481[_0x255b9e(0xb7)][_0x255b9e(0xc3)]===0x1)return{'parent':_0x6a7481['segments'][0x0]};return{'parent':_0x6a7481[_0x255b9e(0xb7)][0x0],'child':_0x6a7481[_0x255b9e(0xb7)]['slice'](0x1)[_0x255b9e(0xce)]('/')};}
1
+ (function(_0x456cc3,_0xf74c5){const _0x573ca9=a73_0x291c,_0x4d5539=_0x456cc3();while(!![]){try{const _0xcdcb2e=-parseInt(_0x573ca9(0x168))/0x1*(parseInt(_0x573ca9(0x16c))/0x2)+-parseInt(_0x573ca9(0x161))/0x3+-parseInt(_0x573ca9(0x164))/0x4*(-parseInt(_0x573ca9(0x162))/0x5)+-parseInt(_0x573ca9(0x15d))/0x6+parseInt(_0x573ca9(0x166))/0x7*(-parseInt(_0x573ca9(0x154))/0x8)+-parseInt(_0x573ca9(0x15c))/0x9*(parseInt(_0x573ca9(0x16e))/0xa)+parseInt(_0x573ca9(0x155))/0xb;if(_0xcdcb2e===_0xf74c5)break;else _0x4d5539['push'](_0x4d5539['shift']());}catch(_0x4a3ebc){_0x4d5539['push'](_0x4d5539['shift']());}}}(a73_0x2a1d,0x8a5a0));export function parsePath(_0x5b46eb){const _0x4c737=a73_0x291c;if(!_0x5b46eb||_0x5b46eb[_0x4c737(0x16a)]()==='')throw new Error(_0x4c737(0x165));const _0x44a423=_0x5b46eb[_0x4c737(0x16a)]();if(_0x44a423==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5b46eb};const _0x2f0496=_0x44a423[_0x4c737(0x172)]('/')?_0x44a423[_0x4c737(0x157)](0x1):_0x44a423,_0x4e1d8f=_0x2f0496[_0x4c737(0x169)]('/')[_0x4c737(0x16d)](_0x5bec5c=>_0x5bec5c!=='');if(_0x4e1d8f['length']===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x43c3e7=_0x44a423['startsWith']('/')||!isRelativePathSegment(_0x4e1d8f[0x0]);for(const _0x3894d4 of _0x4e1d8f){validatePathSegment(_0x3894d4);}return{'segments':_0x4e1d8f,'isAbsolute':_0x43c3e7,'raw':_0x5b46eb};}function isRelativePathSegment(_0x5cc45b){return _0x5cc45b==='.'||_0x5cc45b==='..';}function validatePathSegment(_0x29a6fc){const _0x86b387=a73_0x291c;if(_0x29a6fc==='')throw new Error(_0x86b387(0x15f));if(_0x29a6fc==='.'||_0x29a6fc==='..')return;if(/[\x00-\x1F\x7F]/[_0x86b387(0x170)](_0x29a6fc))throw new Error(_0x86b387(0x156)+_0x29a6fc);if(_0x29a6fc!==_0x29a6fc[_0x86b387(0x16a)]()){}}export function validatePath(_0x22cbe9){const _0x10c5c8=a73_0x291c;if(_0x22cbe9[_0x10c5c8(0x167)][_0x10c5c8(0x15e)]===0x0&&!_0x22cbe9[_0x10c5c8(0x159)])throw new Error(_0x10c5c8(0x15a));if(_0x22cbe9[_0x10c5c8(0x159)]){if(_0x22cbe9[_0x10c5c8(0x167)][0x0]==='..')throw new Error(_0x10c5c8(0x16b));let _0x136022=0x0;for(const _0x20281c of _0x22cbe9['segments']){if(_0x20281c==='..'){if(_0x136022===0x0)throw new Error(_0x10c5c8(0x163));_0x136022--;}else _0x20281c!=='.'&&_0x136022++;}}}function a73_0x291c(_0x5434ac,_0x1e82d3){const _0x2a1d4a=a73_0x2a1d();return a73_0x291c=function(_0x291ce3,_0x1786cf){_0x291ce3=_0x291ce3-0x153;let _0x25bb01=_0x2a1d4a[_0x291ce3];return _0x25bb01;},a73_0x291c(_0x5434ac,_0x1e82d3);}export function joinPaths(_0x4ea564,_0x209974){const _0xeb4ead=a73_0x291c;if(!_0x4ea564||_0x4ea564==='/')return _0x209974;if(!_0x209974||_0x209974==='.')return _0x4ea564;if(_0x209974[_0xeb4ead(0x172)]('/'))return _0x209974;const _0x23003d=parsePath(_0x4ea564),_0x447624=parsePath(_0x209974),_0x1bb2aa=[..._0x23003d[_0xeb4ead(0x167)]];for(const _0x272690 of _0x447624[_0xeb4ead(0x167)]){if(_0x272690==='.')continue;else{if(_0x272690==='..'){if(_0x1bb2aa[_0xeb4ead(0x15e)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x1bb2aa[_0xeb4ead(0x15b)]();}else _0x1bb2aa[_0xeb4ead(0x158)](_0x272690);}}const _0x50c5f8=_0x1bb2aa[_0xeb4ead(0x171)]('/');return _0x23003d[_0xeb4ead(0x16f)]['startsWith']('/')?'/'+_0x50c5f8:_0x50c5f8;}export function normalizePath(_0x2ae544){const _0x3d77b0=a73_0x291c,_0x9e0226=parsePath(_0x2ae544),_0x1bb04c=[];for(const _0x1e3cd5 of _0x9e0226[_0x3d77b0(0x167)]){if(_0x1e3cd5==='.')continue;else{if(_0x1e3cd5==='..'){if(_0x1bb04c['length']===0x0){if(_0x9e0226[_0x3d77b0(0x159)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x1bb04c['push']('..');}else _0x1bb04c[_0x1bb04c[_0x3d77b0(0x15e)]-0x1]==='..'?_0x1bb04c[_0x3d77b0(0x158)]('..'):_0x1bb04c[_0x3d77b0(0x15b)]();}else _0x1bb04c[_0x3d77b0(0x158)](_0x1e3cd5);}}if(_0x1bb04c[_0x3d77b0(0x15e)]===0x0)return _0x9e0226[_0x3d77b0(0x159)]?'/':'.';const _0x1d56b0=_0x1bb04c[_0x3d77b0(0x171)]('/');return _0x9e0226[_0x3d77b0(0x16f)][_0x3d77b0(0x172)]('/')?'/'+_0x1d56b0:_0x1d56b0;}export function getParentPath(_0x2594c5){const _0x230310=a73_0x291c,_0x3f5196=parsePath(_0x2594c5);if(_0x3f5196['segments'][_0x230310(0x15e)]<=0x1)return'/';const _0x21e58f=_0x3f5196[_0x230310(0x167)]['slice'](0x0,-0x1)[_0x230310(0x171)]('/');return _0x3f5196[_0x230310(0x16f)][_0x230310(0x172)]('/')?'/'+_0x21e58f:_0x21e58f;}function a73_0x2a1d(){const _0x4cd999=['Relative\x20path\x20cannot\x20be\x20empty','pop','81QcFsTj','58344PrDPNX','length','Path\x20segment\x20cannot\x20be\x20empty','slice','347340WXpQdX','141070brUpFP','Path\x20attempts\x20to\x20navigate\x20above\x20root','56zbVoLk','Path\x20cannot\x20be\x20empty','169421XqAbJt','segments','164yGhOoQ','split','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','12374GdNfVB','filter','1223090mcmFht','raw','test','join','startsWith','Cannot\x20split\x20empty\x20path','64VmPoeJ','28668959KnGfdH','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','substring','push','isAbsolute'];a73_0x2a1d=function(){return _0x4cd999;};return a73_0x2a1d();}export function getBaseName(_0x346fea){const _0x2a672c=a73_0x291c,_0x1228c7=parsePath(_0x346fea);return _0x1228c7['segments'][_0x1228c7['segments'][_0x2a672c(0x15e)]-0x1]||'';}export function isChildPath(_0x2aed87,_0x71f647){const _0x31ed8f=a73_0x291c,_0x57f5b5=parsePath(_0x2aed87),_0x5d20eb=parsePath(_0x71f647);if(_0x57f5b5['segments'][_0x31ed8f(0x15e)]<=_0x5d20eb['segments'][_0x31ed8f(0x15e)])return![];for(let _0xb7a176=0x0;_0xb7a176<_0x5d20eb[_0x31ed8f(0x167)][_0x31ed8f(0x15e)];_0xb7a176++){if(_0x57f5b5[_0x31ed8f(0x167)][_0xb7a176]!==_0x5d20eb[_0x31ed8f(0x167)][_0xb7a176])return![];}return!![];}export function splitPath(_0x4b982f){const _0x29f88d=a73_0x291c,_0x1f409d=parsePath(_0x4b982f);if(_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x15e)]===0x0)throw new Error(_0x29f88d(0x153));if(_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x15e)]===0x1)return{'parent':_0x1f409d[_0x29f88d(0x167)][0x0]};return{'parent':_0x1f409d[_0x29f88d(0x167)][0x0],'child':_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x160)](0x1)['join']('/')};}
@@ -1 +1 @@
1
- (function(_0x432b77,_0x5909eb){const _0x4b4ddd=a74_0x37a7,_0x1e5cb8=_0x432b77();while(!![]){try{const _0x13adea=parseInt(_0x4b4ddd(0xca))/0x1*(parseInt(_0x4b4ddd(0xc9))/0x2)+parseInt(_0x4b4ddd(0xc0))/0x3+-parseInt(_0x4b4ddd(0xc5))/0x4+-parseInt(_0x4b4ddd(0xc2))/0x5+-parseInt(_0x4b4ddd(0xc8))/0x6+-parseInt(_0x4b4ddd(0xc3))/0x7+parseInt(_0x4b4ddd(0xc1))/0x8;if(_0x13adea===_0x5909eb)break;else _0x1e5cb8['push'](_0x1e5cb8['shift']());}catch(_0x1322fa){_0x1e5cb8['push'](_0x1e5cb8['shift']());}}}(a74_0x4da1,0xc76a9));export function parseSegmentRef(_0x5c2702){const _0x2ac4d9=a74_0x37a7,_0x17fec2=_0x5c2702['indexOf']('/');if(_0x17fec2===-0x1)return{'parentId':_0x5c2702};if(_0x17fec2===0x0)throw new Error(_0x2ac4d9(0xc7)+_0x5c2702+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x5c4c13=_0x5c2702['substring'](0x0,_0x17fec2),_0x4bbac7=_0x5c2702[_0x2ac4d9(0xc6)](_0x17fec2+0x1);if(_0x4bbac7==='')throw new Error(_0x2ac4d9(0xc7)+_0x5c2702+_0x2ac4d9(0xc4));return{'parentId':_0x5c4c13,'childId':_0x4bbac7};}function a74_0x37a7(_0x1bb5f2,_0x359bee){const _0x4da1b6=a74_0x4da1();return a74_0x37a7=function(_0x37a766,_0x14a908){_0x37a766=_0x37a766-0xc0;let _0xaeed70=_0x4da1b6[_0x37a766];return _0xaeed70;},a74_0x37a7(_0x1bb5f2,_0x359bee);}function a74_0x4da1(){const _0x5d98ad=['4155138bjOVpc','6698584Mwifiq','4799205WAUQgw','3654182qtywKV','.\x20Child\x20name\x20cannot\x20be\x20empty','132380CwBFzg','substring','Invalid\x20segment\x20reference\x20format:\x20','6528174HNGdkH','2TmIgXe','1197431oADWLo'];a74_0x4da1=function(){return _0x5d98ad;};return a74_0x4da1();}
1
+ (function(_0x3b879b,_0x1b06d7){const _0xf4c4a9=a74_0x54f7,_0x85072c=_0x3b879b();while(!![]){try{const _0x268e79=-parseInt(_0xf4c4a9(0x18a))/0x1*(-parseInt(_0xf4c4a9(0x18d))/0x2)+-parseInt(_0xf4c4a9(0x187))/0x3+parseInt(_0xf4c4a9(0x18f))/0x4*(parseInt(_0xf4c4a9(0x188))/0x5)+parseInt(_0xf4c4a9(0x193))/0x6+-parseInt(_0xf4c4a9(0x186))/0x7+-parseInt(_0xf4c4a9(0x18b))/0x8+-parseInt(_0xf4c4a9(0x18e))/0x9*(parseInt(_0xf4c4a9(0x189))/0xa);if(_0x268e79===_0x1b06d7)break;else _0x85072c['push'](_0x85072c['shift']());}catch(_0x68d79a){_0x85072c['push'](_0x85072c['shift']());}}}(a74_0xc1a6,0x99b37));function a74_0x54f7(_0x2dd3bd,_0x5ed58e){const _0xc1a622=a74_0xc1a6();return a74_0x54f7=function(_0x54f78b,_0x4dc9fb){_0x54f78b=_0x54f78b-0x186;let _0x2948d5=_0xc1a622[_0x54f78b];return _0x2948d5;},a74_0x54f7(_0x2dd3bd,_0x5ed58e);}export function parseSegmentRef(_0x580feb){const _0x1d0c9e=a74_0x54f7,_0x1418b3=_0x580feb[_0x1d0c9e(0x18c)]('/');if(_0x1418b3===-0x1)return{'parentId':_0x580feb};if(_0x1418b3===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x580feb+_0x1d0c9e(0x191));const _0x367e5a=_0x580feb[_0x1d0c9e(0x192)](0x0,_0x1418b3),_0x5a2942=_0x580feb['substring'](_0x1418b3+0x1);if(_0x5a2942==='')throw new Error(_0x1d0c9e(0x190)+_0x580feb+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x367e5a,'childId':_0x5a2942};}function a74_0xc1a6(){const _0x397948=['13865oyJDgO','40DksHfq','9493ogHRQR','8167704EfQWhS','indexOf','138YzCWiP','45855FzQFep','916eAzBDl','Invalid\x20segment\x20reference\x20format:\x20','.\x20Parent\x20name\x20cannot\x20be\x20empty','substring','6547128AkOGdM','2880360regavO','896520LqxMcP'];a74_0xc1a6=function(){return _0x397948;};return a74_0xc1a6();}
@@ -1 +1 @@
1
- function a75_0x4403(){const _0x3d949a=['intervalFactory','jobId','replace','31236yOFfMb','7GGeySu','288906Htrzqq','isTTY','\x20[Job\x20ID:\x20','895800vIObQP','20OJuWlJ','5419744omMjOS','1604336KKjBCT','clock','4sluSzW','622338migxYi','243729BWKINg','cyan','start','toFixed','phase','floor','now','stop','extra','stdout','470pEQsHd'];a75_0x4403=function(){return _0x3d949a;};return a75_0x4403();}(function(_0x4f5f09,_0x2a3f3c){const _0xb7fcd2=a75_0x3c9b,_0xf42347=_0x4f5f09();while(!![]){try{const _0x1eba96=-parseInt(_0xb7fcd2(0x178))/0x1+-parseInt(_0xb7fcd2(0x180))/0x2*(parseInt(_0xb7fcd2(0x181))/0x3)+parseInt(_0xb7fcd2(0x17b))/0x4+parseInt(_0xb7fcd2(0x18c))/0x5*(parseInt(_0xb7fcd2(0x176))/0x6)+-parseInt(_0xb7fcd2(0x177))/0x7*(parseInt(_0xb7fcd2(0x17e))/0x8)+-parseInt(_0xb7fcd2(0x182))/0x9*(parseInt(_0xb7fcd2(0x17c))/0xa)+parseInt(_0xb7fcd2(0x17d))/0xb;if(_0x1eba96===_0x2a3f3c)break;else _0xf42347['push'](_0xf42347['shift']());}catch(_0x443337){_0xf42347['push'](_0xf42347['shift']());}}}(a75_0x4403,0x3c6dc));import a75_0x293ebc from'ora';function a75_0x3c9b(_0x21a516,_0x4c5ec1){const _0x440326=a75_0x4403();return a75_0x3c9b=function(_0x3c9b66,_0xc38ee1){_0x3c9b66=_0x3c9b66-0x176;let _0x4816b7=_0x440326[_0x3c9b66];return _0x4816b7;},a75_0x3c9b(_0x21a516,_0x4c5ec1);}export function createCommandSpinner(_0x1a80cc,_0xbdce1e={}){const _0x3450b4=a75_0x3c9b,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xbdce1e;return a75_0x293ebc({'text':_0x1a80cc,'color':_0x3450b4(0x183),'isEnabled':forceEnabled||process[_0x3450b4(0x18b)][_0x3450b4(0x179)]&&!verbose});}export async function withSpinner(_0x566720,_0x6e6062,_0x494761={}){const _0x2c63b3=a75_0x3c9b,_0x448e10=_0x494761[_0x2c63b3(0x17f)]??(()=>Date[_0x2c63b3(0x188)]()),_0x2225d5=createCommandSpinner(_0x566720,_0x494761);_0x2225d5[_0x2c63b3(0x184)]();const _0x5d2a68=_0x448e10();try{const _0x4a53cb=await _0x6e6062(),_0x52b373=_0x448e10()-_0x5d2a68;return _0x2225d5[_0x2c63b3(0x189)](),{'data':_0x4a53cb,'elapsedMs':_0x52b373};}catch(_0x253eb2){_0x2225d5[_0x2c63b3(0x189)]();throw _0x253eb2;}}export async function withQuerySpinner(_0x4a2293,_0x3797b4,_0x39f2f3={}){const _0x45c14f=a75_0x3c9b,_0x50b06c=_0x39f2f3[_0x45c14f(0x17f)]??(()=>Date['now']()),_0xc0a8ff=_0x39f2f3[_0x45c14f(0x18d)]??setInterval,_0x377699=createCommandSpinner(_0x4a2293,_0x39f2f3);_0x377699[_0x45c14f(0x184)]();const _0x40881f=_0x50b06c(),_0x1c0c8f=_0x4a2293[_0x45c14f(0x18f)]('...',''),_0x50d432={},_0x4dd5c8=()=>{const _0xa9a876=_0x45c14f;if(!_0x377699['isSpinning'])return;const _0x36a6e7=_0x50b06c()-_0x40881f,_0x176e39=formatElapsed(_0x36a6e7),_0x2f0599=_0x50d432[_0xa9a876(0x186)]??_0x1c0c8f,_0x39916d=_0x50d432[_0xa9a876(0x18e)]?_0xa9a876(0x17a)+_0x50d432[_0xa9a876(0x18e)]+']':'',_0x3f3c0c=_0x50d432[_0xa9a876(0x18a)]?'\x20'+_0x50d432['extra']:'';_0x377699['text']=_0x2f0599+'\x20'+_0x176e39+_0x3f3c0c+_0x39916d;},_0x534d1d=_0xc0a8ff(()=>{_0x4dd5c8();},0x3e8),_0x5dded2={'setPhase':_0x34cbeb=>{const _0x35361d=_0x45c14f;_0x50d432[_0x35361d(0x186)]=_0x34cbeb,_0x4dd5c8();},'setJobId':_0x177182=>{const _0x293382=_0x45c14f;_0x50d432[_0x293382(0x18e)]=_0x177182,_0x4dd5c8();},'setExtra':_0x134932=>{const _0xaee1b3=_0x45c14f;_0x50d432[_0xaee1b3(0x18a)]=_0x134932,_0x4dd5c8();}};_0x4dd5c8();try{const _0x348f68=await _0x3797b4(_0x5dded2),_0x85d67d=_0x50b06c()-_0x40881f;return{'data':_0x348f68,'elapsedMs':_0x85d67d};}finally{clearInterval(_0x534d1d),_0x377699[_0x45c14f(0x189)]();}}export function formatElapsed(_0x4864ee){const _0x5b172c=a75_0x3c9b,_0x4d70c9=Math[_0x5b172c(0x187)](_0x4864ee/0x3e8);if(_0x4d70c9<0x3c)return(_0x4864ee/0x3e8)[_0x5b172c(0x185)](0x1)+'s';const _0x131ea9=Math[_0x5b172c(0x187)](_0x4d70c9/0x3c),_0x375cd7=_0x4d70c9%0x3c;if(_0x131ea9<0x3c)return _0x131ea9+'m\x20'+_0x375cd7+'s';const _0x58fe15=Math[_0x5b172c(0x187)](_0x131ea9/0x3c),_0x4157a9=_0x131ea9%0x3c;return _0x58fe15+'h\x20'+_0x4157a9+'m';}
1
+ (function(_0x28d5cc,_0x40a9c6){const _0x3be618=a75_0xbdaf,_0x2f0658=_0x28d5cc();while(!![]){try{const _0x89dd2=parseInt(_0x3be618(0x69))/0x1+-parseInt(_0x3be618(0x7c))/0x2*(-parseInt(_0x3be618(0x65))/0x3)+parseInt(_0x3be618(0x76))/0x4*(parseInt(_0x3be618(0x78))/0x5)+parseInt(_0x3be618(0x79))/0x6+parseInt(_0x3be618(0x72))/0x7+parseInt(_0x3be618(0x68))/0x8*(-parseInt(_0x3be618(0x71))/0x9)+-parseInt(_0x3be618(0x6e))/0xa;if(_0x89dd2===_0x40a9c6)break;else _0x2f0658['push'](_0x2f0658['shift']());}catch(_0x3798df){_0x2f0658['push'](_0x2f0658['shift']());}}}(a75_0x6e75,0xeaf81));function a75_0xbdaf(_0x44fc2e,_0x3e22e4){const _0x6e758c=a75_0x6e75();return a75_0xbdaf=function(_0xbdaf45,_0x20e374){_0xbdaf45=_0xbdaf45-0x65;let _0x19cbbc=_0x6e758c[_0xbdaf45];return _0x19cbbc;},a75_0xbdaf(_0x44fc2e,_0x3e22e4);}import a75_0x240c2b from'ora';export function createCommandSpinner(_0x25ffef,_0x5761db={}){const _0x5325fd=a75_0xbdaf,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5761db;return a75_0x240c2b({'text':_0x25ffef,'color':'cyan','isEnabled':forceEnabled||process[_0x5325fd(0x7b)][_0x5325fd(0x6b)]&&!verbose});}function a75_0x6e75(){const _0x155135=['phase','isTTY','clock','floor','15118380VxRWFC','text','...','27AWpvJD','7516418rVNnBO','start','\x20[Job\x20ID:\x20','now','4QrjQkV','jobId','4367690wPUwPi','2390160QseYmg','extra','stdout','2gMdKPo','1891035LRhGgM','stop','isSpinning','1897904mhwvRb','209968kTiKdK'];a75_0x6e75=function(){return _0x155135;};return a75_0x6e75();}export async function withSpinner(_0x3941ab,_0x358c88,_0x4d1f75={}){const _0x5dc16f=a75_0xbdaf,_0x5ceca3=_0x4d1f75[_0x5dc16f(0x6c)]??(()=>Date['now']()),_0x3aeb05=createCommandSpinner(_0x3941ab,_0x4d1f75);_0x3aeb05['start']();const _0x443feb=_0x5ceca3();try{const _0x1436a1=await _0x358c88(),_0x540b99=_0x5ceca3()-_0x443feb;return _0x3aeb05[_0x5dc16f(0x66)](),{'data':_0x1436a1,'elapsedMs':_0x540b99};}catch(_0x10c89c){_0x3aeb05[_0x5dc16f(0x66)]();throw _0x10c89c;}}export async function withQuerySpinner(_0x3c623e,_0x3139b7,_0x1a9aca={}){const _0x12a7e1=a75_0xbdaf,_0xb4d8e9=_0x1a9aca[_0x12a7e1(0x6c)]??(()=>Date[_0x12a7e1(0x75)]()),_0x1a2938=_0x1a9aca['intervalFactory']??setInterval,_0x111e0=createCommandSpinner(_0x3c623e,_0x1a9aca);_0x111e0[_0x12a7e1(0x73)]();const _0xf65ea8=_0xb4d8e9(),_0x365aab=_0x3c623e['replace'](_0x12a7e1(0x70),''),_0x1129a4={},_0x1b76c9=()=>{const _0x413a41=_0x12a7e1;if(!_0x111e0[_0x413a41(0x67)])return;const _0x504b34=_0xb4d8e9()-_0xf65ea8,_0x44f14c=formatElapsed(_0x504b34),_0x5b466e=_0x1129a4[_0x413a41(0x6a)]??_0x365aab,_0x3ab660=_0x1129a4[_0x413a41(0x77)]?_0x413a41(0x74)+_0x1129a4[_0x413a41(0x77)]+']':'',_0xa8e139=_0x1129a4[_0x413a41(0x7a)]?'\x20'+_0x1129a4[_0x413a41(0x7a)]:'';_0x111e0[_0x413a41(0x6f)]=_0x5b466e+'\x20'+_0x44f14c+_0xa8e139+_0x3ab660;},_0x33398f=_0x1a2938(()=>{_0x1b76c9();},0x3e8),_0x1bfecc={'setPhase':_0x14395d=>{const _0x396abf=_0x12a7e1;_0x1129a4[_0x396abf(0x6a)]=_0x14395d,_0x1b76c9();},'setJobId':_0x5da096=>{_0x1129a4['jobId']=_0x5da096,_0x1b76c9();},'setExtra':_0x4d864e=>{const _0x24bb6e=_0x12a7e1;_0x1129a4[_0x24bb6e(0x7a)]=_0x4d864e,_0x1b76c9();}};_0x1b76c9();try{const _0x1cf208=await _0x3139b7(_0x1bfecc),_0x1abefd=_0xb4d8e9()-_0xf65ea8;return{'data':_0x1cf208,'elapsedMs':_0x1abefd};}finally{clearInterval(_0x33398f),_0x111e0[_0x12a7e1(0x66)]();}}export function formatElapsed(_0x3704fe){const _0x52fcb6=a75_0xbdaf,_0x40429a=Math[_0x52fcb6(0x6d)](_0x3704fe/0x3e8);if(_0x40429a<0x3c)return(_0x3704fe/0x3e8)['toFixed'](0x1)+'s';const _0x448fdb=Math['floor'](_0x40429a/0x3c),_0x398919=_0x40429a%0x3c;if(_0x448fdb<0x3c)return _0x448fdb+'m\x20'+_0x398919+'s';const _0x2cfb71=Math['floor'](_0x448fdb/0x3c),_0x4f5bef=_0x448fdb%0x3c;return _0x2cfb71+'h\x20'+_0x4f5bef+'m';}
@@ -1 +1 @@
1
- (function(_0x3daaa1,_0x6f9c62){const _0x26f35a=a76_0x5241,_0x13ed42=_0x3daaa1();while(!![]){try{const _0x413bec=-parseInt(_0x26f35a(0x1f0))/0x1+-parseInt(_0x26f35a(0x1fd))/0x2+-parseInt(_0x26f35a(0x1f8))/0x3*(parseInt(_0x26f35a(0x1f1))/0x4)+-parseInt(_0x26f35a(0x1f3))/0x5+-parseInt(_0x26f35a(0x1fa))/0x6*(-parseInt(_0x26f35a(0x1f7))/0x7)+-parseInt(_0x26f35a(0x1ed))/0x8+parseInt(_0x26f35a(0x1f2))/0x9;if(_0x413bec===_0x6f9c62)break;else _0x13ed42['push'](_0x13ed42['shift']());}catch(_0x5d031a){_0x13ed42['push'](_0x13ed42['shift']());}}}(a76_0x53b0,0xd3768));import{readFileSync}from'fs';export function stripSqlComments(_0x5031e2){const _0x5db56d=a76_0x5241;let _0x4fb5c3=_0x5031e2['replace'](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4fb5c3=_0x4fb5c3[_0x5db56d(0x1fe)](/--.*$/gm,''),_0x4fb5c3[_0x5db56d(0x1ef)]();}function a76_0x53b0(){const _0x31516a=['replace','Permission\x20denied\x20reading\x20file\x20\x27','code','message','filter','map','\x27\x20not\x20found','push','2515200ENenvH','EACCES','trim','518860ZAjEMA','8LuiSKn','38797920iMkTZv','4581180UOMmNv','length','File\x20\x27','Error\x20reading\x20file\x20\x27','7oiqCoA','156129aiQvUY','\x27:\x20','154380ElfubE','Content\x20contains\x20no\x20SQL\x20statements','utf-8','3233752MLenKJ'];a76_0x53b0=function(){return _0x31516a;};return a76_0x53b0();}function isEscaped(_0x3400d1,_0x2ade7a){let _0x2f931f=0x0;for(let _0x30df57=_0x2ade7a-0x1;_0x30df57>=0x0&&_0x3400d1[_0x30df57]==='\x5c';_0x30df57--){_0x2f931f++;}return _0x2f931f%0x2===0x1;}export function splitSqlStatements(_0x24014f){const _0x414835=a76_0x5241,_0xa1bac1=stripSqlComments(_0x24014f);if(!_0xa1bac1)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x43f10d=[];let _0x5b2357='',_0x45afc2=![],_0x4c73b7=![],_0x24e73f=![];for(let _0x510325=0x0;_0x510325<_0x24014f[_0x414835(0x1f4)];_0x510325++){const _0x16df76=_0x24014f[_0x510325];if(_0x16df76==='\x27'&&!isEscaped(_0x24014f,_0x510325)&&!_0x4c73b7&&!_0x24e73f)_0x45afc2=!_0x45afc2;else{if(_0x16df76==='\x22'&&!isEscaped(_0x24014f,_0x510325)&&!_0x45afc2&&!_0x24e73f)_0x4c73b7=!_0x4c73b7;else _0x16df76==='`'&&!isEscaped(_0x24014f,_0x510325)&&!_0x45afc2&&!_0x4c73b7&&(_0x24e73f=!_0x24e73f);}if(_0x16df76===';'&&!_0x45afc2&&!_0x4c73b7&&!_0x24e73f){const _0x518327=_0x5b2357[_0x414835(0x1ef)]();_0x518327&&_0x43f10d[_0x414835(0x1ec)](_0x518327),_0x5b2357='';}else _0x5b2357+=_0x16df76;}const _0x2c6339=_0x5b2357[_0x414835(0x1ef)]();_0x2c6339&&_0x43f10d[_0x414835(0x1ec)](_0x2c6339);const _0x4ca4be=_0x43f10d[_0x414835(0x1ea)](_0x9a473b=>_0x9a473b['trim']())[_0x414835(0x1e9)](_0x505f87=>{const _0x38c338=stripSqlComments(_0x505f87);return _0x38c338['length']>0x0;});if(_0x4ca4be[_0x414835(0x1f4)]===0x0)throw new Error(_0x414835(0x1fb));return _0x4ca4be;}export function readFileContent(_0x2d29ab){const _0xa5c0cc=a76_0x5241;try{return readFileSync(_0x2d29ab,_0xa5c0cc(0x1fc));}catch(_0x3e88ff){const _0x270a2d=_0x3e88ff[_0xa5c0cc(0x200)];if(_0x270a2d==='ENOENT')throw new Error(_0xa5c0cc(0x1f5)+_0x2d29ab+_0xa5c0cc(0x1eb));else{if(_0x270a2d===_0xa5c0cc(0x1ee))throw new Error(_0xa5c0cc(0x1ff)+_0x2d29ab+'\x27');else throw new Error(_0xa5c0cc(0x1f6)+_0x2d29ab+_0xa5c0cc(0x1f9)+_0x3e88ff[_0xa5c0cc(0x1e8)]);}}}function a76_0x5241(_0x1b6615,_0x3b5411){const _0x53b0db=a76_0x53b0();return a76_0x5241=function(_0x524159,_0xe7cc2c){_0x524159=_0x524159-0x1e8;let _0x23b43b=_0x53b0db[_0x524159];return _0x23b43b;},a76_0x5241(_0x1b6615,_0x3b5411);}export function readSqlStatementsFromFile(_0x1a236f){const _0x4eac32=a76_0x5241,_0x4be734=readFileContent(_0x1a236f);try{return splitSqlStatements(_0x4be734);}catch(_0x32564f){throw new Error('File\x20\x27'+_0x1a236f+'\x27\x20'+_0x32564f[_0x4eac32(0x1e8)]['toLowerCase']());}}
1
+ (function(_0x52c632,_0x4e898f){const _0x24f267=a76_0x2c9c,_0x293264=_0x52c632();while(!![]){try{const _0x412f35=-parseInt(_0x24f267(0x13a))/0x1*(-parseInt(_0x24f267(0x136))/0x2)+-parseInt(_0x24f267(0x145))/0x3+-parseInt(_0x24f267(0x140))/0x4+parseInt(_0x24f267(0x146))/0x5*(-parseInt(_0x24f267(0x131))/0x6)+-parseInt(_0x24f267(0x141))/0x7*(parseInt(_0x24f267(0x138))/0x8)+-parseInt(_0x24f267(0x144))/0x9*(parseInt(_0x24f267(0x135))/0xa)+-parseInt(_0x24f267(0x137))/0xb*(-parseInt(_0x24f267(0x133))/0xc);if(_0x412f35===_0x4e898f)break;else _0x293264['push'](_0x293264['shift']());}catch(_0x1a4b0f){_0x293264['push'](_0x293264['shift']());}}}(a76_0x5bfc,0x507d6));import{readFileSync}from'fs';export function stripSqlComments(_0x26ba60){const _0x266b28=a76_0x2c9c;let _0x5add19=_0x26ba60[_0x266b28(0x139)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5add19=_0x5add19[_0x266b28(0x139)](/--.*$/gm,''),_0x5add19[_0x266b28(0x13c)]();}function isEscaped(_0x3a1b26,_0x3b277e){let _0x2966bf=0x0;for(let _0x27255b=_0x3b277e-0x1;_0x27255b>=0x0&&_0x3a1b26[_0x27255b]==='\x5c';_0x27255b--){_0x2966bf++;}return _0x2966bf%0x2===0x1;}export function splitSqlStatements(_0x2aa4e4){const _0x459008=a76_0x2c9c,_0x41de76=stripSqlComments(_0x2aa4e4);if(!_0x41de76)throw new Error(_0x459008(0x143));const _0xb97a5b=[];let _0x2685bb='',_0x1494c2=![],_0x2aed84=![],_0xdc8826=![];for(let _0x5dbcd2=0x0;_0x5dbcd2<_0x2aa4e4['length'];_0x5dbcd2++){const _0x464a14=_0x2aa4e4[_0x5dbcd2];if(_0x464a14==='\x27'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x2aed84&&!_0xdc8826)_0x1494c2=!_0x1494c2;else{if(_0x464a14==='\x22'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x1494c2&&!_0xdc8826)_0x2aed84=!_0x2aed84;else _0x464a14==='`'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x1494c2&&!_0x2aed84&&(_0xdc8826=!_0xdc8826);}if(_0x464a14===';'&&!_0x1494c2&&!_0x2aed84&&!_0xdc8826){const _0x364494=_0x2685bb[_0x459008(0x13c)]();_0x364494&&_0xb97a5b[_0x459008(0x147)](_0x364494),_0x2685bb='';}else _0x2685bb+=_0x464a14;}const _0x35c80e=_0x2685bb[_0x459008(0x13c)]();_0x35c80e&&_0xb97a5b[_0x459008(0x147)](_0x35c80e);const _0x4582b6=_0xb97a5b['map'](_0x4c4399=>_0x4c4399[_0x459008(0x13c)]())[_0x459008(0x13b)](_0x57e6d4=>{const _0x463ed7=_0x459008,_0x3f639e=stripSqlComments(_0x57e6d4);return _0x3f639e[_0x463ed7(0x13e)]>0x0;});if(_0x4582b6['length']===0x0)throw new Error(_0x459008(0x143));return _0x4582b6;}export function readFileContent(_0x44007e){const _0x1773df=a76_0x2c9c;try{return readFileSync(_0x44007e,_0x1773df(0x13f));}catch(_0x52d722){const _0x4efd6e=_0x52d722['code'];if(_0x4efd6e===_0x1773df(0x130))throw new Error(_0x1773df(0x132)+_0x44007e+'\x27\x20not\x20found');else{if(_0x4efd6e===_0x1773df(0x142))throw new Error(_0x1773df(0x134)+_0x44007e+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x44007e+'\x27:\x20'+_0x52d722['message']);}}}export function readSqlStatementsFromFile(_0x481c12){const _0x25f701=a76_0x2c9c,_0x349e84=readFileContent(_0x481c12);try{return splitSqlStatements(_0x349e84);}catch(_0xf1e090){throw new Error(_0x25f701(0x132)+_0x481c12+'\x27\x20'+_0xf1e090['message'][_0x25f701(0x13d)]());}}function a76_0x2c9c(_0x107978,_0x457b1c){const _0x5bfc63=a76_0x5bfc();return a76_0x2c9c=function(_0x2c9c8d,_0x2961df){_0x2c9c8d=_0x2c9c8d-0x130;let _0x12c829=_0x5bfc63[_0x2c9c8d];return _0x12c829;},a76_0x2c9c(_0x107978,_0x457b1c);}function a76_0x5bfc(){const _0x16431a=['452PByBLX','filter','trim','toLowerCase','length','utf-8','1572928aGHVdb','560cDmBDd','EACCES','Content\x20contains\x20no\x20SQL\x20statements','9uVRzXh','610398UhQSVE','14365fxFkoa','push','ENOENT','1002dmsKDK','File\x20\x27','1056TMnqWc','Permission\x20denied\x20reading\x20file\x20\x27','6150050iChkeS','2198aiszMH','248644zEKjPJ','46472owqNzA','replace'];a76_0x5bfc=function(){return _0x16431a;};return a76_0x5bfc();}
@@ -1 +1 @@
1
- (function(_0x3eb716,_0x989c62){const _0x578d4b=a77_0x5cf0,_0x1297cc=_0x3eb716();while(!![]){try{const _0x42f3b4=parseInt(_0x578d4b(0x88))/0x1*(-parseInt(_0x578d4b(0x80))/0x2)+-parseInt(_0x578d4b(0x7a))/0x3+-parseInt(_0x578d4b(0x7d))/0x4+-parseInt(_0x578d4b(0x89))/0x5+-parseInt(_0x578d4b(0x83))/0x6+-parseInt(_0x578d4b(0x8a))/0x7+-parseInt(_0x578d4b(0x82))/0x8*(-parseInt(_0x578d4b(0x86))/0x9);if(_0x42f3b4===_0x989c62)break;else _0x1297cc['push'](_0x1297cc['shift']());}catch(_0x5aa462){_0x1297cc['push'](_0x1297cc['shift']());}}}(a77_0xf2cf,0xaa77e));export async function*parseSSEStream(_0x2eb740){const _0x1ca80b=a77_0x5cf0;if(!_0x2eb740['body'])throw new Error(_0x1ca80b(0x7b));const _0x1bbbbd=_0x2eb740[_0x1ca80b(0x84)]['getReader'](),_0x531bf0=new TextDecoder();let _0x49791c='',_0xc89834={};try{while(!![]){const {done:_0x60a250,value:_0x54f12c}=await _0x1bbbbd['read']();if(_0x60a250){_0xc89834['data']&&(yield parseSSEData(_0xc89834[_0x1ca80b(0x7f)]));break;}_0x49791c+=_0x531bf0['decode'](_0x54f12c,{'stream':!![]});const _0x136545=_0x49791c['split']('\x0a');_0x49791c=_0x136545[_0x1ca80b(0x85)]()||'';for(const _0x1d595e of _0x136545){if(_0x1d595e['trim']()===''){_0xc89834['data']&&(yield parseSSEData(_0xc89834['data']),_0xc89834={});continue;}if(_0x1d595e[_0x1ca80b(0x78)](':'))continue;const _0x225b25=_0x1d595e[_0x1ca80b(0x7e)](':');if(_0x225b25===-0x1)continue;const _0x6f4a35=_0x1d595e[_0x1ca80b(0x79)](0x0,_0x225b25);let _0x556cf6=_0x1d595e[_0x1ca80b(0x79)](_0x225b25+0x1);_0x556cf6['startsWith']('\x20')&&(_0x556cf6=_0x556cf6[_0x1ca80b(0x79)](0x1));switch(_0x6f4a35){case'event':_0xc89834[_0x1ca80b(0x8b)]=_0x556cf6;break;case _0x1ca80b(0x7f):_0xc89834['data']=_0xc89834['data']?_0xc89834[_0x1ca80b(0x7f)]+'\x0a'+_0x556cf6:_0x556cf6;break;case'id':_0xc89834['id']=_0x556cf6;break;}}}}finally{_0x1bbbbd[_0x1ca80b(0x7c)]();}}function a77_0xf2cf(){const _0x4ed5fc=['13815944yZXwJH','1498494ZXyEFt','body','pop','18LbURoB','parse','2BYHmrU','1354340XlJlJk','3650612EyPACs','event','startsWith','slice','1968045zodbFM','Response\x20body\x20is\x20null','releaseLock','234152kXCEAQ','indexOf','data','999062oQEMUO','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'];a77_0xf2cf=function(){return _0x4ed5fc;};return a77_0xf2cf();}function a77_0x5cf0(_0x5355ca,_0x3b74bd){const _0xf2cf01=a77_0xf2cf();return a77_0x5cf0=function(_0x5cf07f,_0x3399bb){_0x5cf07f=_0x5cf07f-0x78;let _0x5abee6=_0xf2cf01[_0x5cf07f];return _0x5abee6;},a77_0x5cf0(_0x5355ca,_0x3b74bd);}function parseSSEData(_0x598a9e){const _0x25e5d8=a77_0x5cf0;try{return JSON[_0x25e5d8(0x87)](_0x598a9e);}catch(_0x4793ef){throw new Error(_0x25e5d8(0x81)+_0x598a9e,{'cause':_0x4793ef});}}
1
+ (function(_0xed512b,_0x37b51f){const _0x3c2c98=a77_0x574e,_0x47919b=_0xed512b();while(!![]){try{const _0x262f83=parseInt(_0x3c2c98(0xd1))/0x1+-parseInt(_0x3c2c98(0xdc))/0x2*(-parseInt(_0x3c2c98(0xd0))/0x3)+-parseInt(_0x3c2c98(0xcf))/0x4+parseInt(_0x3c2c98(0xdb))/0x5*(parseInt(_0x3c2c98(0xd9))/0x6)+-parseInt(_0x3c2c98(0xc9))/0x7+parseInt(_0x3c2c98(0xd5))/0x8+-parseInt(_0x3c2c98(0xda))/0x9;if(_0x262f83===_0x37b51f)break;else _0x47919b['push'](_0x47919b['shift']());}catch(_0x4d6402){_0x47919b['push'](_0x47919b['shift']());}}}(a77_0x2df3,0x670b0));export async function*parseSSEStream(_0x5f0493){const _0x5c756b=a77_0x574e;if(!_0x5f0493['body'])throw new Error(_0x5c756b(0xd3));const _0x5afe79=_0x5f0493['body'][_0x5c756b(0xd7)](),_0x38582e=new TextDecoder();let _0x2e433c='',_0x358d4b={};try{while(!![]){const {done:_0x56efe0,value:_0x254c88}=await _0x5afe79['read']();if(_0x56efe0){_0x358d4b[_0x5c756b(0xce)]&&(yield parseSSEData(_0x358d4b[_0x5c756b(0xce)]));break;}_0x2e433c+=_0x38582e['decode'](_0x254c88,{'stream':!![]});const _0x3724cc=_0x2e433c[_0x5c756b(0xd8)]('\x0a');_0x2e433c=_0x3724cc[_0x5c756b(0xdd)]()||'';for(const _0x4e5f63 of _0x3724cc){if(_0x4e5f63['trim']()===''){_0x358d4b['data']&&(yield parseSSEData(_0x358d4b[_0x5c756b(0xce)]),_0x358d4b={});continue;}if(_0x4e5f63[_0x5c756b(0xca)](':'))continue;const _0xc7304d=_0x4e5f63[_0x5c756b(0xd4)](':');if(_0xc7304d===-0x1)continue;const _0x3b1890=_0x4e5f63[_0x5c756b(0xcc)](0x0,_0xc7304d);let _0x23a815=_0x4e5f63[_0x5c756b(0xcc)](_0xc7304d+0x1);_0x23a815['startsWith']('\x20')&&(_0x23a815=_0x23a815['slice'](0x1));switch(_0x3b1890){case _0x5c756b(0xd2):_0x358d4b[_0x5c756b(0xd2)]=_0x23a815;break;case _0x5c756b(0xce):_0x358d4b[_0x5c756b(0xce)]=_0x358d4b[_0x5c756b(0xce)]?_0x358d4b[_0x5c756b(0xce)]+'\x0a'+_0x23a815:_0x23a815;break;case'id':_0x358d4b['id']=_0x23a815;break;}}}}finally{_0x5afe79[_0x5c756b(0xcd)]();}}function a77_0x2df3(){const _0x5f81d3=['getReader','split','2479140VATHAW','13223187MVoKzh','10uFcBQZ','4zRXGbq','pop','493311zmGNWJ','startsWith','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','slice','releaseLock','data','203332LscEHg','636117EipMjc','41597KpIOae','event','Response\x20body\x20is\x20null','indexOf','5764464CntUwv','parse'];a77_0x2df3=function(){return _0x5f81d3;};return a77_0x2df3();}function a77_0x574e(_0x2ce473,_0x4c4746){const _0x2df30e=a77_0x2df3();return a77_0x574e=function(_0x574e90,_0x35f4ce){_0x574e90=_0x574e90-0xc9;let _0x1aa03f=_0x2df30e[_0x574e90];return _0x1aa03f;},a77_0x574e(_0x2ce473,_0x4c4746);}function parseSSEData(_0x33e120){const _0x5c4ad7=a77_0x574e;try{return JSON[_0x5c4ad7(0xd6)](_0x33e120);}catch(_0x3e1fa7){throw new Error(_0x5c4ad7(0xcb)+_0x33e120,{'cause':_0x3e1fa7});}}
@@ -1 +1 @@
1
- function a78_0x53b2(){const _0x3afcb4=['Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','7ivbBFQ','4444tCgtyn','5715237tEaVhb','unknown','trim','4736330lYGayd','1667320joKILr','replace','1425072ryEWtL','repeat','substring','\x5c$&','388muGBMS','toString','random','test','env','slice','toLowerCase','2778996tNJsrp','16555FMijOK','Cannot\x20escape\x20empty\x20string\x20literal','88yJRnuW','9LVvMmd','floor','length'];a78_0x53b2=function(){return _0x3afcb4;};return a78_0x53b2();}(function(_0x3c956d,_0x2a0e40){const _0xd7a877=a78_0x55c3,_0x5e68fb=_0x3c956d();while(!![]){try{const _0x400c14=-parseInt(_0xd7a877(0xa6))/0x1*(parseInt(_0xd7a877(0xac))/0x2)+-parseInt(_0xd7a877(0xb3))/0x3+-parseInt(_0xd7a877(0xb7))/0x4*(-parseInt(_0xd7a877(0xa4))/0x5)+parseInt(_0xd7a877(0xa3))/0x6+-parseInt(_0xd7a877(0xab))/0x7*(-parseInt(_0xd7a877(0xb1))/0x8)+-parseInt(_0xd7a877(0xa7))/0x9*(-parseInt(_0xd7a877(0xb0))/0xa)+-parseInt(_0xd7a877(0xad))/0xb;if(_0x400c14===_0x2a0e40)break;else _0x5e68fb['push'](_0x5e68fb['shift']());}catch(_0x177f42){_0x5e68fb['push'](_0x5e68fb['shift']());}}}(a78_0x53b2,0x4371e));import a78_0x188cad from'string-width';export function stringWidth(_0x427b4e){return a78_0x188cad(_0x427b4e);}export function padEnd(_0x474770,_0x2db0b3){const _0x34ae8e=a78_0x55c3,_0x490023=stringWidth(_0x474770);if(_0x490023>=_0x2db0b3)return _0x474770;return _0x474770+'\x20'[_0x34ae8e(0xb4)](_0x2db0b3-_0x490023);}export function padStart(_0x2b85cc,_0x232d47){const _0x41ef6d=stringWidth(_0x2b85cc);if(_0x41ef6d>=_0x232d47)return _0x2b85cc;return'\x20'['repeat'](_0x232d47-_0x41ef6d)+_0x2b85cc;}export function centerAlign(_0xe1b6f6,_0x39005c){const _0x84db77=a78_0x55c3,_0x4691a1=stringWidth(_0xe1b6f6);if(_0x4691a1>_0x39005c){if(_0x39005c<=0x1)return'…'[_0x84db77(0xb5)](0x0,_0x39005c);let _0x4fe13c=_0xe1b6f6;while(stringWidth(_0x4fe13c+'…')>_0x39005c){_0x4fe13c=_0x4fe13c[_0x84db77(0xbc)](0x0,-0x1);}return _0x4fe13c+'…';}if(_0x4691a1===_0x39005c)return _0xe1b6f6;const _0x721864=_0x39005c-_0x4691a1,_0x99eae5=Math['floor'](_0x721864/0x2),_0x41d49e=_0x721864-_0x99eae5;return'\x20'[_0x84db77(0xb4)](_0x99eae5)+_0xe1b6f6+'\x20'['repeat'](_0x41d49e);}export function escapeStringLiteral(_0x20384b){const _0x43b00e=a78_0x55c3;if(!_0x20384b||_0x20384b[_0x43b00e(0xaf)]()['length']===0x0)throw new Error(_0x43b00e(0xa5));const _0x219570=_0x20384b[_0x43b00e(0xb2)](/'/g,'\x27\x27');return'\x27'+_0x219570+'\x27';}export function globToLike(_0x34a0be){const _0x1b4242=a78_0x55c3;let _0x2b6459=_0x34a0be[_0x1b4242(0xb2)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x1b4242(0xb2)](/_/g,'\x5c_');return _0x2b6459=_0x2b6459[_0x1b4242(0xb2)](/\*/g,'%')['replace'](/\?/g,'_'),_0x2b6459;}export function buildLikePattern(_0x319cd0){const _0x3df1c1=a78_0x55c3;if(!_0x319cd0||_0x319cd0[_0x3df1c1(0xaf)]()[_0x3df1c1(0xa9)]===0x0)throw new Error(_0x3df1c1(0xaa));const _0x564b14=globToLike(_0x319cd0),_0x2e52b2=_0x564b14[_0x3df1c1(0xb2)](/'/g,'\x27\x27');return'\x27'+_0x2e52b2+'\x27';}export function matchGlobPattern(_0x4a33d1,_0x26ef1c){const _0x2d5b57=a78_0x55c3,_0x515e4a=_0x26ef1c[_0x2d5b57(0xb2)](/[.+^${}()|[\]\\]/g,_0x2d5b57(0xb6))[_0x2d5b57(0xb2)](/\*/g,'.*')[_0x2d5b57(0xb2)](/\?/g,'.'),_0x32ade8=new RegExp('^'+_0x515e4a+'$');return _0x32ade8[_0x2d5b57(0xba)](_0x4a33d1);}function a78_0x55c3(_0x1c1e3d,_0x164d5c){const _0x53b26e=a78_0x53b2();return a78_0x55c3=function(_0x55c302,_0x5c20df){_0x55c302=_0x55c302-0xa3;let _0x2e8625=_0x53b26e[_0x55c302];return _0x2e8625;},a78_0x55c3(_0x1c1e3d,_0x164d5c);}export function getSanitizedUsername(){const _0x2145de=a78_0x55c3,_0x4dea97=process[_0x2145de(0xbb)]['USER']||process['env']['USERNAME']||_0x2145de(0xae);return _0x4dea97[_0x2145de(0xb2)](/[^a-zA-Z0-9]/g,'')[_0x2145de(0xbd)]();}export function generateRandomHex(){const _0x1781b1=a78_0x55c3,_0xa54298=Math[_0x1781b1(0xa8)](Math[_0x1781b1(0xb9)]()*0xfffff);return _0xa54298[_0x1781b1(0xb8)](0x10)['padStart'](0x5,'0');}
1
+ (function(_0x5d375f,_0x2cec03){const _0x448d7f=a78_0x3aa4,_0x3ec483=_0x5d375f();while(!![]){try{const _0x195467=-parseInt(_0x448d7f(0x1c3))/0x1*(-parseInt(_0x448d7f(0x1d2))/0x2)+parseInt(_0x448d7f(0x1c6))/0x3*(parseInt(_0x448d7f(0x1d7))/0x4)+parseInt(_0x448d7f(0x1c0))/0x5+parseInt(_0x448d7f(0x1d8))/0x6*(-parseInt(_0x448d7f(0x1d4))/0x7)+-parseInt(_0x448d7f(0x1c4))/0x8*(-parseInt(_0x448d7f(0x1cc))/0x9)+parseInt(_0x448d7f(0x1d5))/0xa*(-parseInt(_0x448d7f(0x1c1))/0xb)+parseInt(_0x448d7f(0x1c2))/0xc;if(_0x195467===_0x2cec03)break;else _0x3ec483['push'](_0x3ec483['shift']());}catch(_0x5001b9){_0x3ec483['push'](_0x3ec483['shift']());}}}(a78_0x338a,0x736b8));import a78_0x424a51 from'string-width';export function stringWidth(_0x189c82){return a78_0x424a51(_0x189c82);}export function padEnd(_0x3f03ef,_0x56ec29){const _0x4e13ee=a78_0x3aa4,_0x490534=stringWidth(_0x3f03ef);if(_0x490534>=_0x56ec29)return _0x3f03ef;return _0x3f03ef+'\x20'[_0x4e13ee(0x1c8)](_0x56ec29-_0x490534);}function a78_0x3aa4(_0x5b45be,_0x2abf5e){const _0x338a3f=a78_0x338a();return a78_0x3aa4=function(_0x3aa4ed,_0x24aef2){_0x3aa4ed=_0x3aa4ed-0x1c0;let _0x3b138f=_0x338a3f[_0x3aa4ed];return _0x3b138f;},a78_0x3aa4(_0x5b45be,_0x2abf5e);}export function padStart(_0x622700,_0x2276d4){const _0x1294c4=a78_0x3aa4,_0x46a74b=stringWidth(_0x622700);if(_0x46a74b>=_0x2276d4)return _0x622700;return'\x20'[_0x1294c4(0x1c8)](_0x2276d4-_0x46a74b)+_0x622700;}export function centerAlign(_0x2a79fd,_0x4698c0){const _0x45e226=a78_0x3aa4,_0x26f817=stringWidth(_0x2a79fd);if(_0x26f817>_0x4698c0){if(_0x4698c0<=0x1)return'…'[_0x45e226(0x1da)](0x0,_0x4698c0);let _0xeee4fc=_0x2a79fd;while(stringWidth(_0xeee4fc+'…')>_0x4698c0){_0xeee4fc=_0xeee4fc[_0x45e226(0x1cd)](0x0,-0x1);}return _0xeee4fc+'…';}if(_0x26f817===_0x4698c0)return _0x2a79fd;const _0x4b7f5e=_0x4698c0-_0x26f817,_0x13cd24=Math[_0x45e226(0x1d6)](_0x4b7f5e/0x2),_0x2e5b93=_0x4b7f5e-_0x13cd24;return'\x20'['repeat'](_0x13cd24)+_0x2a79fd+'\x20'[_0x45e226(0x1c8)](_0x2e5b93);}function a78_0x338a(){const _0xd02b06=['1288072Jpwgwt','trim','19533BVAEGH','toString','repeat','\x5c$&','USERNAME','random','45hUkrIx','slice','replace','env','length','toLowerCase','14604ZfNleU','Cannot\x20escape\x20empty\x20string\x20literal','295183iSSCDu','87110NEMAin','floor','328QLmYmB','66NGdHbf','USER','substring','unknown','test','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','628490zBHSyE','979VUbeNW','1565052KmFzGa','16BuwifL'];a78_0x338a=function(){return _0xd02b06;};return a78_0x338a();}export function escapeStringLiteral(_0x26457e){const _0x438d2a=a78_0x3aa4;if(!_0x26457e||_0x26457e[_0x438d2a(0x1c5)]()[_0x438d2a(0x1d0)]===0x0)throw new Error(_0x438d2a(0x1d3));const _0x59ba7e=_0x26457e['replace'](/'/g,'\x27\x27');return'\x27'+_0x59ba7e+'\x27';}export function globToLike(_0x2cba50){const _0x3d03e6=a78_0x3aa4;let _0x45de41=_0x2cba50['replace'](/\\/g,'\x5c\x5c')[_0x3d03e6(0x1ce)](/%/g,'\x5c%')[_0x3d03e6(0x1ce)](/_/g,'\x5c_');return _0x45de41=_0x45de41[_0x3d03e6(0x1ce)](/\*/g,'%')['replace'](/\?/g,'_'),_0x45de41;}export function buildLikePattern(_0x4796d5){const _0xd679cf=a78_0x3aa4;if(!_0x4796d5||_0x4796d5[_0xd679cf(0x1c5)]()[_0xd679cf(0x1d0)]===0x0)throw new Error(_0xd679cf(0x1dd));const _0x2a2778=globToLike(_0x4796d5),_0x2c8b87=_0x2a2778[_0xd679cf(0x1ce)](/'/g,'\x27\x27');return'\x27'+_0x2c8b87+'\x27';}export function matchGlobPattern(_0x2f4e47,_0x39c135){const _0x31beb8=a78_0x3aa4,_0x4dee1e=_0x39c135[_0x31beb8(0x1ce)](/[.+^${}()|[\]\\]/g,_0x31beb8(0x1c9))[_0x31beb8(0x1ce)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x57a44d=new RegExp('^'+_0x4dee1e+'$');return _0x57a44d[_0x31beb8(0x1dc)](_0x2f4e47);}export function getSanitizedUsername(){const _0x334281=a78_0x3aa4,_0x32ebb7=process['env'][_0x334281(0x1d9)]||process[_0x334281(0x1cf)][_0x334281(0x1ca)]||_0x334281(0x1db);return _0x32ebb7[_0x334281(0x1ce)](/[^a-zA-Z0-9]/g,'')[_0x334281(0x1d1)]();}export function generateRandomHex(){const _0x353323=a78_0x3aa4,_0x5561e3=Math['floor'](Math[_0x353323(0x1cb)]()*0xfffff);return _0x5561e3[_0x353323(0x1c7)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x404721,_0x3a2f95){const _0x4efeee=a79_0x11f5,_0xc8af2b=_0x404721();while(!![]){try{const _0x761046=parseInt(_0x4efeee(0xab))/0x1+parseInt(_0x4efeee(0xa4))/0x2+parseInt(_0x4efeee(0xa8))/0x3*(-parseInt(_0x4efeee(0xa9))/0x4)+parseInt(_0x4efeee(0x99))/0x5+parseInt(_0x4efeee(0xaa))/0x6+parseInt(_0x4efeee(0x9d))/0x7+parseInt(_0x4efeee(0x9e))/0x8*(-parseInt(_0x4efeee(0xa3))/0x9);if(_0x761046===_0x3a2f95)break;else _0xc8af2b['push'](_0xc8af2b['shift']());}catch(_0x313063){_0xc8af2b['push'](_0xc8af2b['shift']());}}}(a79_0xde90,0x528b0));function a79_0xde90(){const _0x226123=['4211186erpfMF','7896zIikRq','split','push','database','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','5337EjpymI','130018KVbLtW','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','146661RMtFnm','20UrHCQt','2360958SuGaPB','23161lfIXEO','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','trim','length','422805beddSe','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','table'];a79_0xde90=function(){return _0x226123;};return a79_0xde90();}function hasWildcard(_0x2e09e7){return _0x2e09e7['includes']('*')||_0x2e09e7['includes']('?');}export function parseTableReference(_0xa8276c){const _0x42af0e=a79_0x11f5;if(!_0xa8276c||_0xa8276c[_0x42af0e(0x97)]()['length']===0x0)throw new Error(_0x42af0e(0xa2));const _0x12860b=_0xa8276c['trim'](),_0x3cca31={'original':_0x12860b},_0x26ede8=_0x12860b[_0x42af0e(0x9f)]('.');if(_0x26ede8['length']===0x1){const _0x46f5ee=_0x26ede8[0x0];if(!_0x46f5ee)throw new Error(_0x42af0e(0xa6));_0x3cca31[_0x42af0e(0x9c)]=_0x46f5ee;}else{if(_0x26ede8[_0x42af0e(0x98)]===0x2){const [_0x55530a,_0x1c0112]=_0x26ede8;if(!_0x55530a)throw new Error(_0x42af0e(0x9b));if(!_0x1c0112)throw new Error(_0x42af0e(0xa5));_0x3cca31[_0x42af0e(0xa1)]=_0x55530a,_0x3cca31[_0x42af0e(0x9c)]=_0x1c0112;}else{if(_0x26ede8['length']===0x3){const [_0x55e77d,_0x6c1667,_0xe5ae41]=_0x26ede8;if(!_0x55e77d||!_0x6c1667||!_0xe5ae41)throw new Error(_0x42af0e(0x9a));_0x3cca31['catalog']=_0x55e77d,_0x3cca31['database']=_0x6c1667,_0x3cca31[_0x42af0e(0x9c)]=_0xe5ae41;}else throw new Error(_0x42af0e(0x96));}}return _0x3cca31;}export function formatTableReference(_0x52aa72){const _0x58f587=a79_0x11f5,_0x34eca6=[];return _0x52aa72['catalog']&&_0x34eca6[_0x58f587(0xa0)](_0x52aa72['catalog']),_0x52aa72[_0x58f587(0xa1)]&&_0x34eca6['push'](_0x52aa72[_0x58f587(0xa1)]),_0x52aa72[_0x58f587(0x9c)]&&_0x34eca6[_0x58f587(0xa0)](_0x52aa72['table']),_0x34eca6['join']('.');}function a79_0x11f5(_0x4b8180,_0x179589){const _0xde9024=a79_0xde90();return a79_0x11f5=function(_0x11f524,_0x4b0bd2){_0x11f524=_0x11f524-0x96;let _0x135ce0=_0xde9024[_0x11f524];return _0x135ce0;},a79_0x11f5(_0x4b8180,_0x179589);}export function validateTableListReference(_0x20bec5){return undefined;}export function validateTableDescribeReference(_0x77206c){const _0x5d2b19=a79_0x11f5;if(!_0x77206c[_0x5d2b19(0x9c)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x77206c['database']&&hasWildcard(_0x77206c[_0x5d2b19(0xa1)]))return _0x5d2b19(0xa7);if(hasWildcard(_0x77206c[_0x5d2b19(0x9c)]))return _0x5d2b19(0xac);return undefined;}
1
+ function a79_0x3bc1(_0x2e0485,_0x381de6){const _0x51ba77=a79_0x51ba();return a79_0x3bc1=function(_0x3bc102,_0x4112ce){_0x3bc102=_0x3bc102-0xb3;let _0x4ab172=_0x51ba77[_0x3bc102];return _0x4ab172;},a79_0x3bc1(_0x2e0485,_0x381de6);}(function(_0x33674f,_0x5437dc){const _0x2beec8=a79_0x3bc1,_0x2db93f=_0x33674f();while(!![]){try{const _0x3e1412=-parseInt(_0x2beec8(0xb4))/0x1*(-parseInt(_0x2beec8(0xc5))/0x2)+parseInt(_0x2beec8(0xc0))/0x3+parseInt(_0x2beec8(0xbb))/0x4+-parseInt(_0x2beec8(0xc8))/0x5*(parseInt(_0x2beec8(0xb5))/0x6)+parseInt(_0x2beec8(0xc9))/0x7*(-parseInt(_0x2beec8(0xc3))/0x8)+-parseInt(_0x2beec8(0xb8))/0x9+parseInt(_0x2beec8(0xc7))/0xa;if(_0x3e1412===_0x5437dc)break;else _0x2db93f['push'](_0x2db93f['shift']());}catch(_0x59c6e6){_0x2db93f['push'](_0x2db93f['shift']());}}}(a79_0x51ba,0xddb8e));function hasWildcard(_0x2d5aa8){const _0x49ee31=a79_0x3bc1;return _0x2d5aa8[_0x49ee31(0xbe)]('*')||_0x2d5aa8[_0x49ee31(0xbe)]('?');}export function parseTableReference(_0x28430b){const _0x182211=a79_0x3bc1;if(!_0x28430b||_0x28430b['trim']()[_0x182211(0xb6)]===0x0)throw new Error(_0x182211(0xc6));const _0x3e0041=_0x28430b[_0x182211(0xbd)](),_0x34e34c={'original':_0x3e0041},_0x56737a=_0x3e0041['split']('.');if(_0x56737a['length']===0x1){const _0x445f4a=_0x56737a[0x0];if(!_0x445f4a)throw new Error(_0x182211(0xb3));_0x34e34c[_0x182211(0xc1)]=_0x445f4a;}else{if(_0x56737a[_0x182211(0xb6)]===0x2){const [_0x2535a4,_0x5e82de]=_0x56737a;if(!_0x2535a4)throw new Error(_0x182211(0xb9));if(!_0x5e82de)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x34e34c[_0x182211(0xc2)]=_0x2535a4,_0x34e34c[_0x182211(0xc1)]=_0x5e82de;}else{if(_0x56737a[_0x182211(0xb6)]===0x3){const [_0x4ab168,_0xb1836c,_0x16999c]=_0x56737a;if(!_0x4ab168||!_0xb1836c||!_0x16999c)throw new Error(_0x182211(0xbf));_0x34e34c['catalog']=_0x4ab168,_0x34e34c[_0x182211(0xc2)]=_0xb1836c,_0x34e34c[_0x182211(0xc1)]=_0x16999c;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x34e34c;}function a79_0x51ba(){const _0x35e24c=['Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','1813606sLTrmk','6eDcMtj','length','push','13221738fdKmBX','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','4835028dxezpg','catalog','trim','includes','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','95427WSbVzQ','table','database','8QIPEfo','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','2uKoyuO','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','20139820MtJgGu','8914090RkeIaG','6356560rNzkFr'];a79_0x51ba=function(){return _0x35e24c;};return a79_0x51ba();}export function formatTableReference(_0x358b5d){const _0x82264d=a79_0x3bc1,_0x446918=[];return _0x358b5d[_0x82264d(0xbc)]&&_0x446918[_0x82264d(0xb7)](_0x358b5d['catalog']),_0x358b5d[_0x82264d(0xc2)]&&_0x446918[_0x82264d(0xb7)](_0x358b5d[_0x82264d(0xc2)]),_0x358b5d['table']&&_0x446918[_0x82264d(0xb7)](_0x358b5d[_0x82264d(0xc1)]),_0x446918['join']('.');}export function validateTableListReference(_0xa903b0){return undefined;}export function validateTableDescribeReference(_0x3e81df){const _0x54b77f=a79_0x3bc1;if(!_0x3e81df['table'])return _0x54b77f(0xba);if(_0x3e81df[_0x54b77f(0xc2)]&&hasWildcard(_0x3e81df[_0x54b77f(0xc2)]))return _0x54b77f(0xca);if(hasWildcard(_0x3e81df['table']))return _0x54b77f(0xc4);return undefined;}
@@ -1 +1 @@
1
- const a80_0x59ca80=a80_0xcb33;(function(_0x4252e5,_0x370869){const _0x372e8f=a80_0xcb33,_0x77021a=_0x4252e5();while(!![]){try{const _0x523d93=-parseInt(_0x372e8f(0xfa))/0x1+parseInt(_0x372e8f(0xda))/0x2*(-parseInt(_0x372e8f(0xd1))/0x3)+-parseInt(_0x372e8f(0xf8))/0x4*(parseInt(_0x372e8f(0xca))/0x5)+-parseInt(_0x372e8f(0xd7))/0x6*(-parseInt(_0x372e8f(0xf1))/0x7)+parseInt(_0x372e8f(0xc2))/0x8+-parseInt(_0x372e8f(0xef))/0x9+parseInt(_0x372e8f(0xc7))/0xa;if(_0x523d93===_0x370869)break;else _0x77021a['push'](_0x77021a['shift']());}catch(_0x10376){_0x77021a['push'](_0x77021a['shift']());}}}(a80_0x3d38,0xe85d9));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x5ddf68 from'chalk';function safeStringify(_0x5d2650){const _0x546a10=a80_0xcb33;if(typeof _0x5d2650===_0x546a10(0xd5))return _0x5d2650;if(_0x5d2650 instanceof Error)return _0x5d2650[_0x546a10(0xcb)]||_0x5d2650[_0x546a10(0xe9)]+':\x20'+_0x5d2650['message'];try{return JSON['stringify'](_0x5d2650,(_0x233ac8,_0x150c2c)=>{const _0x3be9b7=_0x546a10;if(_0x150c2c instanceof Error)return{'name':_0x150c2c[_0x3be9b7(0xe9)],'message':_0x150c2c[_0x3be9b7(0xe3)],'stack':_0x150c2c[_0x3be9b7(0xcb)],'cause':_0x150c2c[_0x3be9b7(0xea)]};return _0x150c2c;});}catch{return String(_0x5d2650);}}function getTimezoneOffset(){const _0x291e68=a80_0xcb33,_0x42f578=-new Date()[_0x291e68(0xf6)](),_0xfdb8a5=Math[_0x291e68(0xdf)](Math[_0x291e68(0xc4)](_0x42f578)/0x3c),_0x297c86=Math['abs'](_0x42f578)%0x3c,_0x18cf2c=_0x42f578>=0x0?'+':'-';return''+_0x18cf2c+_0xfdb8a5['toString']()[_0x291e68(0xf0)](0x2,'0')+_0x297c86[_0x291e68(0xec)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x74a62e=a80_0xcb33,_0x45156a=new Date(),_0x3ad243=_0x45156a[_0x74a62e(0xc5)](),_0xe9b11a=(_0x45156a[_0x74a62e(0xfe)]()+0x1)[_0x74a62e(0xec)]()['padStart'](0x2,'0'),_0x581ad3=_0x45156a['getDate']()['toString']()[_0x74a62e(0xf0)](0x2,'0'),_0x145515=_0x45156a['getHours']()[_0x74a62e(0xec)]()[_0x74a62e(0xf0)](0x2,'0'),_0x2adc76=_0x45156a[_0x74a62e(0xe8)]()[_0x74a62e(0xec)]()[_0x74a62e(0xf0)](0x2,'0'),_0x4eccb8=_0x45156a['getSeconds']()['toString']()[_0x74a62e(0xf0)](0x2,'0'),_0x16b0db=_0x45156a[_0x74a62e(0xf7)]()['toString']()[_0x74a62e(0xf0)](0x3,'0'),_0x15592b=getTimezoneOffset();return _0x3ad243+'-'+_0xe9b11a+'-'+_0x581ad3+'\x20'+_0x145515+':'+_0x2adc76+':'+_0x4eccb8+'.'+_0x16b0db+_0x15592b;}function a80_0x3d38(){const _0x3c0c0d=['getMonth','logStream','warn','getLogPath','DEBUG','2783016BSyKZZ','logDir','abs','getFullYear','info','15040800Gxhjmr','INFO','filter','13045CpaTOb','stack','includes','logs','Warning:\x20Failed\x20to\x20compress\x20','split','error','246DmcngX','ERROR','write','init','string','toISOString','9295632aIiySP','gray','rotateOldLogs','24812ujioyW','tdx','.gz','proxy-','TRACE','floor','.cache','.log','cyan','message','proxy.log','Proxy\x20server\x20started','WARN','debug','getMinutes','name','cause','fileOnly','toString','log','end','7423551qBGaPp','padStart','7frFwpl','mtime','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','trace','join','getTimezoneOffset','getMilliseconds','284jBsEBc','yellow','422090XcfmhZ','close','Warning:\x20Error\x20writing\x20to\x20proxy.log:','logLevel'];a80_0x3d38=function(){return _0x3c0c0d;};return a80_0x3d38();}function formatColoredLogEntry(_0x55b0a2,_0x285a88){const _0x5779e=a80_0xcb33,_0x448e1c=formatTimestamp(),_0x3c5f7a=_0x285a88['map'](safeStringify)[_0x5779e(0xf5)]('\x20'),_0x30a78b=a80_0x5ddf68[_0x5779e(0xd8)](_0x448e1c);let _0x32970c;switch(_0x55b0a2){case _0x5779e(0xc6):_0x32970c=a80_0x5ddf68[_0x5779e(0xe2)]('['+_0x55b0a2+']\x20');break;case _0x5779e(0x100):_0x32970c=a80_0x5ddf68[_0x5779e(0xf9)]('['+_0x55b0a2+']\x20');break;case _0x5779e(0xd0):_0x32970c=a80_0x5ddf68['red']('['+_0x55b0a2+']');break;case _0x5779e(0xe7):_0x32970c=a80_0x5ddf68['gray']('['+_0x55b0a2+']');break;default:_0x32970c='['+_0x55b0a2+']';}return _0x30a78b+'\x20'+_0x32970c+'\x20'+_0x3c5f7a;}export var LogLevel;function a80_0xcb33(_0x177707,_0x53e678){const _0x3d389a=a80_0x3d38();return a80_0xcb33=function(_0xcb336b,_0x251c90){_0xcb336b=_0xcb336b-0xc2;let _0xc6e307=_0x3d389a[_0xcb336b];return _0xc6e307;},a80_0xcb33(_0x177707,_0x53e678);}(function(_0x1ee281){const _0x347e0a=a80_0xcb33;_0x1ee281[_0x1ee281[_0x347e0a(0xde)]=-0x2]=_0x347e0a(0xde),_0x1ee281[_0x1ee281[_0x347e0a(0x102)]=-0x1]=_0x347e0a(0x102),_0x1ee281[_0x1ee281[_0x347e0a(0xc8)]=0x0]=_0x347e0a(0xc8),_0x1ee281[_0x1ee281['WARN']=0x1]=_0x347e0a(0xe6),_0x1ee281[_0x1ee281[_0x347e0a(0xd2)]=0x2]=_0x347e0a(0xd2);}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x59ca80(0xff)];['logDir'];[a80_0x59ca80(0xfd)];[a80_0x59ca80(0xeb)];constructor(_0x4ba1f4=LogLevel[a80_0x59ca80(0xc8)],_0x2601bd=![]){const _0x1b6e04=a80_0x59ca80;this[_0x1b6e04(0xc3)]=join(homedir(),_0x1b6e04(0xe0),_0x1b6e04(0xdb),_0x1b6e04(0xcd)),this[_0x1b6e04(0xfd)]=_0x4ba1f4,this[_0x1b6e04(0xeb)]=_0x2601bd;}async[a80_0x59ca80(0xd4)](){const _0x283938=a80_0x59ca80;try{await mkdir(this[_0x283938(0xc3)],{'recursive':!![]}),await this[_0x283938(0xd9)]();const _0x264eab=join(this['logDir'],_0x283938(0xe4));this[_0x283938(0xff)]=createWriteStream(_0x264eab,{'flags':'a'}),this[_0x283938(0xff)]['on']('error',_0x5630f5=>{const _0x5109c6=_0x283938;console['error'](_0x5109c6(0xfc),_0x5630f5[_0x5109c6(0xe3)]);}),this['info'](_0x283938(0xe5));}catch(_0x498ae1){console[_0x283938(0xd0)](_0x283938(0xf3),_0x498ae1);}}async[a80_0x59ca80(0xd9)](){const _0x3a2f01=a80_0x59ca80;try{const _0x5d2a07=await readdir(this[_0x3a2f01(0xc3)]),_0x4c3705=new Date()[_0x3a2f01(0xd6)]()[_0x3a2f01(0xcf)]('T')[0x0];if(_0x5d2a07[_0x3a2f01(0xcc)](_0x3a2f01(0xe4))){const _0x3ae086=join(this['logDir'],_0x3a2f01(0xe4)),_0x1e841a=await stat(_0x3ae086),_0x1fe434=new Date(_0x1e841a[_0x3a2f01(0xf2)])['toISOString']()['split']('T')[0x0];if(_0x1fe434<_0x4c3705){const _0x2da789=join(this[_0x3a2f01(0xc3)],_0x3a2f01(0xdd)+_0x1fe434+_0x3a2f01(0xe1));await rename(_0x3ae086,_0x2da789);}}const _0x1bba29=await readdir(this[_0x3a2f01(0xc3)]),_0x2aea42=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x573310=_0x1bba29[_0x3a2f01(0xc9)](_0xd097f6=>_0x2aea42['test'](_0xd097f6));for(const _0xdbace2 of _0x573310){const _0xd743a7=join(this['logDir'],_0xdbace2),_0x1112e4=join(this[_0x3a2f01(0xc3)],_0xdbace2+_0x3a2f01(0xdc));try{await pipeline(createReadStream(_0xd743a7),createGzip(),createWriteStream(_0x1112e4)),await unlink(_0xd743a7);}catch(_0x105ecc){console[_0x3a2f01(0xd0)](_0x3a2f01(0xce)+_0xdbace2+':',_0x105ecc);}}}catch{}}[a80_0x59ca80(0xe7)](..._0x46a941){const _0x56b400=a80_0x59ca80;if(this[_0x56b400(0xfd)]>LogLevel[_0x56b400(0x102)])return;const _0x2ff27e=formatColoredLogEntry('debug',_0x46a941);this[_0x56b400(0xff)]?.[_0x56b400(0xd3)](_0x2ff27e+'\x0a');}['trace'](..._0x4011fc){const _0x2451ef=a80_0x59ca80;if(this[_0x2451ef(0xfd)]>LogLevel[_0x2451ef(0xde)])return;const _0x3b3769=formatColoredLogEntry(_0x2451ef(0xf4),_0x4011fc);this['logStream']?.['write'](_0x3b3769+'\x0a');}[a80_0x59ca80(0xc6)](..._0x4fb703){const _0x568dad=a80_0x59ca80;if(this[_0x568dad(0xfd)]>LogLevel[_0x568dad(0xc8)])return;const _0x4365a3=formatColoredLogEntry('info',_0x4fb703);!this[_0x568dad(0xeb)]&&console[_0x568dad(0xed)](_0x4365a3),this['logStream']?.[_0x568dad(0xd3)](_0x4365a3+'\x0a');}[a80_0x59ca80(0x100)](..._0x3fcce9){const _0x1ae6fc=a80_0x59ca80;if(this['logLevel']>LogLevel['WARN'])return;const _0x216e3a=formatColoredLogEntry(_0x1ae6fc(0x100),_0x3fcce9);!this[_0x1ae6fc(0xeb)]&&console['error'](_0x216e3a),this[_0x1ae6fc(0xff)]?.[_0x1ae6fc(0xd3)](_0x216e3a+'\x0a');}[a80_0x59ca80(0xd0)](..._0x4aa44f){const _0x2f1219=a80_0x59ca80,_0x5bc5a5=formatColoredLogEntry(_0x2f1219(0xd0),_0x4aa44f);!this['fileOnly']&&console[_0x2f1219(0xd0)](_0x5bc5a5),this['logStream']?.['write'](_0x5bc5a5+'\x0a');}async[a80_0x59ca80(0xfb)](){const _0x43cfbf=a80_0x59ca80;return this[_0x43cfbf(0xc6)]('Proxy\x20session\x20ended'),new Promise(_0x2dfef2=>{const _0x433eea=_0x43cfbf;this[_0x433eea(0xff)]?this[_0x433eea(0xff)][_0x433eea(0xee)](()=>{_0x2dfef2();}):_0x2dfef2();});}[a80_0x59ca80(0x101)](){const _0x3ae44d=a80_0x59ca80;return join(this['logDir'],_0x3ae44d(0xe4));}}
1
+ const a80_0x3aa41f=a80_0x307d;(function(_0x3b92f2,_0x4930ec){const _0x247c63=a80_0x307d,_0x35db6e=_0x3b92f2();while(!![]){try{const _0x3b6bc3=-parseInt(_0x247c63(0xc2))/0x1+parseInt(_0x247c63(0xc7))/0x2*(parseInt(_0x247c63(0xc3))/0x3)+parseInt(_0x247c63(0xc6))/0x4*(parseInt(_0x247c63(0xc1))/0x5)+parseInt(_0x247c63(0xf2))/0x6*(parseInt(_0x247c63(0xec))/0x7)+-parseInt(_0x247c63(0xcf))/0x8*(-parseInt(_0x247c63(0xe1))/0x9)+-parseInt(_0x247c63(0xc5))/0xa*(-parseInt(_0x247c63(0xcc))/0xb)+-parseInt(_0x247c63(0xde))/0xc*(parseInt(_0x247c63(0xf3))/0xd);if(_0x3b6bc3===_0x4930ec)break;else _0x35db6e['push'](_0x35db6e['shift']());}catch(_0x32f3e6){_0x35db6e['push'](_0x35db6e['shift']());}}}(a80_0x45c1,0x4f3d9));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a80_0x307d(_0x161aca,_0x2efe13){const _0x45c176=a80_0x45c1();return a80_0x307d=function(_0x307d43,_0x378358){_0x307d43=_0x307d43-0xc1;let _0x54208d=_0x45c176[_0x307d43];return _0x54208d;},a80_0x307d(_0x161aca,_0x2efe13);}import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x20199d from'chalk';function safeStringify(_0x3da47c){const _0x4ceba4=a80_0x307d;if(typeof _0x3da47c===_0x4ceba4(0xdd))return _0x3da47c;if(_0x3da47c instanceof Error)return _0x3da47c[_0x4ceba4(0xf9)]||_0x3da47c[_0x4ceba4(0xe6)]+':\x20'+_0x3da47c['message'];try{return JSON['stringify'](_0x3da47c,(_0x2f7b92,_0x4147d9)=>{const _0xcb0f14=_0x4ceba4;if(_0x4147d9 instanceof Error)return{'name':_0x4147d9[_0xcb0f14(0xe6)],'message':_0x4147d9[_0xcb0f14(0xd9)],'stack':_0x4147d9[_0xcb0f14(0xf9)],'cause':_0x4147d9[_0xcb0f14(0xd3)]};return _0x4147d9;});}catch{return String(_0x3da47c);}}function getTimezoneOffset(){const _0x43d7cf=a80_0x307d,_0xbb5f3a=-new Date()[_0x43d7cf(0xc4)](),_0x4d82a7=Math['floor'](Math[_0x43d7cf(0xf7)](_0xbb5f3a)/0x3c),_0x1117a2=Math[_0x43d7cf(0xf7)](_0xbb5f3a)%0x3c,_0x412add=_0xbb5f3a>=0x0?'+':'-';return''+_0x412add+_0x4d82a7[_0x43d7cf(0xdf)]()[_0x43d7cf(0xd5)](0x2,'0')+_0x1117a2[_0x43d7cf(0xdf)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x269ede=a80_0x307d,_0x1ac33f=new Date(),_0x4232e1=_0x1ac33f[_0x269ede(0xcd)](),_0x3a45f9=(_0x1ac33f[_0x269ede(0xdc)]()+0x1)[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x2,'0'),_0x3b29f6=_0x1ac33f['getDate']()[_0x269ede(0xdf)]()['padStart'](0x2,'0'),_0x6807bd=_0x1ac33f[_0x269ede(0xe9)]()['toString']()[_0x269ede(0xd5)](0x2,'0'),_0x571fd4=_0x1ac33f['getMinutes']()['toString']()['padStart'](0x2,'0'),_0x147ada=_0x1ac33f['getSeconds']()[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x2,'0'),_0x430391=_0x1ac33f[_0x269ede(0x100)]()[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x3,'0'),_0x4a0d2c=getTimezoneOffset();return _0x4232e1+'-'+_0x3a45f9+'-'+_0x3b29f6+'\x20'+_0x6807bd+':'+_0x571fd4+':'+_0x147ada+'.'+_0x430391+_0x4a0d2c;}function formatColoredLogEntry(_0x844e09,_0x3a66d6){const _0x4bcd9e=a80_0x307d,_0x1f7384=formatTimestamp(),_0x40e602=_0x3a66d6[_0x4bcd9e(0xfe)](safeStringify)[_0x4bcd9e(0xc9)]('\x20'),_0x4cab00=a80_0x20199d[_0x4bcd9e(0xe8)](_0x1f7384);let _0x29973f;switch(_0x844e09){case _0x4bcd9e(0xfb):_0x29973f=a80_0x20199d[_0x4bcd9e(0xd8)]('['+_0x844e09+']\x20');break;case _0x4bcd9e(0xfd):_0x29973f=a80_0x20199d[_0x4bcd9e(0xc8)]('['+_0x844e09+']\x20');break;case _0x4bcd9e(0xfc):_0x29973f=a80_0x20199d[_0x4bcd9e(0xea)]('['+_0x844e09+']');break;case _0x4bcd9e(0xda):_0x29973f=a80_0x20199d[_0x4bcd9e(0xe8)]('['+_0x844e09+']');break;default:_0x29973f='['+_0x844e09+']';}return _0x4cab00+'\x20'+_0x29973f+'\x20'+_0x40e602;}export var LogLevel;function a80_0x45c1(){const _0xe163c3=['12XlGVld','1752569UvzpFL','filter','mtime','Proxy\x20session\x20ended','abs','Proxy\x20server\x20started','stack','logs','info','error','warn','map','TRACE','getMilliseconds','2507025KmXMuJ','241363xdEPTH','66lfMeez','getTimezoneOffset','590KhSnMt','4qsANwv','57606NtQyNB','yellow','join','init','INFO','8107KZIvvm','getFullYear','DEBUG','8jhVgpr','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','getLogPath','proxy.log','cause','ERROR','padStart','end','WARN','cyan','message','debug','logLevel','getMonth','string','60PBHaLc','toString','write','506295FSFuXc','split','proxy-','.cache','.log','name','rotateOldLogs','gray','getHours','red','tdx','18158tcqWEX','logDir','trace','fileOnly','Warning:\x20Error\x20writing\x20to\x20proxy.log:','logStream'];a80_0x45c1=function(){return _0xe163c3;};return a80_0x45c1();}(function(_0x528c9b){const _0x5d8726=a80_0x307d;_0x528c9b[_0x528c9b[_0x5d8726(0xff)]=-0x2]=_0x5d8726(0xff),_0x528c9b[_0x528c9b['DEBUG']=-0x1]=_0x5d8726(0xce),_0x528c9b[_0x528c9b['INFO']=0x0]='INFO',_0x528c9b[_0x528c9b[_0x5d8726(0xd7)]=0x1]=_0x5d8726(0xd7),_0x528c9b[_0x528c9b[_0x5d8726(0xd4)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x3aa41f(0xf1)];[a80_0x3aa41f(0xed)];['logLevel'];[a80_0x3aa41f(0xef)];constructor(_0x1d59db=LogLevel[a80_0x3aa41f(0xcb)],_0x4da62c=![]){const _0x5da9be=a80_0x3aa41f;this['logDir']=join(homedir(),_0x5da9be(0xe4),_0x5da9be(0xeb),_0x5da9be(0xfa)),this[_0x5da9be(0xdb)]=_0x1d59db,this[_0x5da9be(0xef)]=_0x4da62c;}async[a80_0x3aa41f(0xca)](){const _0x27d772=a80_0x3aa41f;try{await mkdir(this[_0x27d772(0xed)],{'recursive':!![]}),await this[_0x27d772(0xe7)]();const _0x2b826c=join(this[_0x27d772(0xed)],_0x27d772(0xd2));this[_0x27d772(0xf1)]=createWriteStream(_0x2b826c,{'flags':'a'}),this[_0x27d772(0xf1)]['on'](_0x27d772(0xfc),_0x1ff279=>{const _0x4b6ff4=_0x27d772;console['error'](_0x4b6ff4(0xf0),_0x1ff279[_0x4b6ff4(0xd9)]);}),this['info'](_0x27d772(0xf8));}catch(_0x473068){console['error'](_0x27d772(0xd0),_0x473068);}}async[a80_0x3aa41f(0xe7)](){const _0xb77364=a80_0x3aa41f;try{const _0x4c231f=await readdir(this['logDir']),_0x51133e=new Date()['toISOString']()['split']('T')[0x0];if(_0x4c231f['includes']('proxy.log')){const _0x80628b=join(this[_0xb77364(0xed)],_0xb77364(0xd2)),_0x20682f=await stat(_0x80628b),_0x3458e9=new Date(_0x20682f[_0xb77364(0xf5)])['toISOString']()[_0xb77364(0xe2)]('T')[0x0];if(_0x3458e9<_0x51133e){const _0x44f6df=join(this['logDir'],_0xb77364(0xe3)+_0x3458e9+_0xb77364(0xe5));await rename(_0x80628b,_0x44f6df);}}const _0x213c81=await readdir(this[_0xb77364(0xed)]),_0x1e7255=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x521585=_0x213c81[_0xb77364(0xf4)](_0x54b9ad=>_0x1e7255['test'](_0x54b9ad));for(const _0x87c6fa of _0x521585){const _0x3d6c94=join(this['logDir'],_0x87c6fa),_0x5dc235=join(this['logDir'],_0x87c6fa+'.gz');try{await pipeline(createReadStream(_0x3d6c94),createGzip(),createWriteStream(_0x5dc235)),await unlink(_0x3d6c94);}catch(_0x2f89f3){console[_0xb77364(0xfc)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x87c6fa+':',_0x2f89f3);}}}catch{}}[a80_0x3aa41f(0xda)](..._0x50132a){const _0x20b25f=a80_0x3aa41f;if(this['logLevel']>LogLevel['DEBUG'])return;const _0x91836=formatColoredLogEntry(_0x20b25f(0xda),_0x50132a);this['logStream']?.[_0x20b25f(0xe0)](_0x91836+'\x0a');}[a80_0x3aa41f(0xee)](..._0x26430d){const _0x3fa6c0=a80_0x3aa41f;if(this[_0x3fa6c0(0xdb)]>LogLevel[_0x3fa6c0(0xff)])return;const _0xfed187=formatColoredLogEntry(_0x3fa6c0(0xee),_0x26430d);this[_0x3fa6c0(0xf1)]?.[_0x3fa6c0(0xe0)](_0xfed187+'\x0a');}[a80_0x3aa41f(0xfb)](..._0x4dc37d){const _0x599cb6=a80_0x3aa41f;if(this[_0x599cb6(0xdb)]>LogLevel[_0x599cb6(0xcb)])return;const _0xa1a645=formatColoredLogEntry(_0x599cb6(0xfb),_0x4dc37d);!this[_0x599cb6(0xef)]&&console['log'](_0xa1a645),this[_0x599cb6(0xf1)]?.[_0x599cb6(0xe0)](_0xa1a645+'\x0a');}[a80_0x3aa41f(0xfd)](..._0x1484c4){const _0x4b2b48=a80_0x3aa41f;if(this[_0x4b2b48(0xdb)]>LogLevel[_0x4b2b48(0xd7)])return;const _0x104f60=formatColoredLogEntry(_0x4b2b48(0xfd),_0x1484c4);!this[_0x4b2b48(0xef)]&&console['error'](_0x104f60),this[_0x4b2b48(0xf1)]?.[_0x4b2b48(0xe0)](_0x104f60+'\x0a');}[a80_0x3aa41f(0xfc)](..._0x168dc4){const _0x551100=a80_0x3aa41f,_0xbd0c7a=formatColoredLogEntry(_0x551100(0xfc),_0x168dc4);!this[_0x551100(0xef)]&&console['error'](_0xbd0c7a),this[_0x551100(0xf1)]?.[_0x551100(0xe0)](_0xbd0c7a+'\x0a');}async['close'](){const _0x42cd90=a80_0x3aa41f;return this[_0x42cd90(0xfb)](_0x42cd90(0xf6)),new Promise(_0x4090c9=>{const _0x29d587=_0x42cd90;this[_0x29d587(0xf1)]?this[_0x29d587(0xf1)][_0x29d587(0xd6)](()=>{_0x4090c9();}):_0x4090c9();});}[a80_0x3aa41f(0xd1)](){const _0x13e191=a80_0x3aa41f;return join(this[_0x13e191(0xed)],_0x13e191(0xd2));}}
@@ -1 +1 @@
1
- (function(_0x570e66,_0xb679c6){const _0x3cef39=a81_0x55e8,_0x12140f=_0x570e66();while(!![]){try{const _0x1dc595=-parseInt(_0x3cef39(0x10f))/0x1*(-parseInt(_0x3cef39(0x107))/0x2)+-parseInt(_0x3cef39(0x105))/0x3+parseInt(_0x3cef39(0xfc))/0x4+-parseInt(_0x3cef39(0x10b))/0x5*(parseInt(_0x3cef39(0xf8))/0x6)+parseInt(_0x3cef39(0x103))/0x7*(-parseInt(_0x3cef39(0x104))/0x8)+parseInt(_0x3cef39(0x101))/0x9*(-parseInt(_0x3cef39(0x10c))/0xa)+parseInt(_0x3cef39(0xf9))/0xb;if(_0x1dc595===_0xb679c6)break;else _0x12140f['push'](_0x12140f['shift']());}catch(_0x45e540){_0x12140f['push'](_0x12140f['shift']());}}}(a81_0x29d9,0xc0d78));import{formatRows}from'./formatters.js';import a81_0x40dc8b from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0xb19482,_0x4693c5={},_0x27023a=0x0,_0x37259d=''){const _0x435a60=a81_0x55e8,_0x3b804c={...DEFAULT_OPTIONS,..._0x4693c5},_0xea6eec=[],_0x5185b8=[..._0xb19482][_0x435a60(0xed)]((_0x23d822,_0x470ea7)=>_0x23d822['name'][_0x435a60(0xf3)](_0x470ea7[_0x435a60(0x106)]));for(let _0x37a0be=0x0;_0x37a0be<_0x5185b8[_0x435a60(0xf4)];_0x37a0be++){const _0x446cd3=_0x5185b8[_0x37a0be],_0x4867bc=_0x37a0be===_0x5185b8[_0x435a60(0xf4)]-0x1;let _0x5550d3='';_0x27023a>0x0&&(_0x5550d3+=_0x37259d);_0x3b804c[_0x435a60(0xf5)]&&_0x27023a>0x0&&(_0x5550d3+=a81_0x40dc8b[_0x435a60(0xfd)](_0x4867bc?'└──\x20':'├──\x20'));_0x3b804c['showIcons']&&(_0x5550d3+=_0x446cd3['type']===_0x435a60(0x100)?'📁\x20':'🎯\x20');_0x5550d3+=_0x446cd3[_0x435a60(0x106)];if(_0x3b804c[_0x435a60(0x108)]){if(_0x446cd3[_0x435a60(0xfe)]===_0x435a60(0x100)){const _0x1e9fd1=[];_0x446cd3[_0x435a60(0xfa)][_0x435a60(0xf1)]&&_0x1e9fd1[_0x435a60(0x102)](_0x446cd3['metadata'][_0x435a60(0xf1)]+_0x435a60(0xef)+(_0x446cd3[_0x435a60(0xfa)][_0x435a60(0xf1)]!==0x1?'s':'')),_0x446cd3['metadata'][_0x435a60(0xfb)]&&_0x1e9fd1[_0x435a60(0x102)](_0x446cd3[_0x435a60(0xfa)][_0x435a60(0xfb)]+'\x20folder'+(_0x446cd3['metadata'][_0x435a60(0xfb)]!==0x1?'s':'')),_0x1e9fd1[_0x435a60(0xf4)]>0x0&&(_0x5550d3+=a81_0x40dc8b[_0x435a60(0xfd)]('\x20('+_0x1e9fd1[_0x435a60(0xee)](',\x20')+')'));}else _0x446cd3[_0x435a60(0xfe)]===_0x435a60(0x10a)&&_0x446cd3[_0x435a60(0xf0)]!==undefined&&(_0x5550d3+=a81_0x40dc8b[_0x435a60(0xfd)]('\x20('+formatRows(_0x446cd3[_0x435a60(0xf0)])+')'));}_0xea6eec[_0x435a60(0x102)](_0x5550d3);if(_0x446cd3['children']&&_0x446cd3[_0x435a60(0x109)][_0x435a60(0xf4)]>0x0){let _0x5491c9;if(_0x27023a===0x0)_0x5491c9='';else _0x3b804c[_0x435a60(0xf5)]?_0x5491c9=_0x37259d+(_0x4867bc?_0x435a60(0x10e):a81_0x40dc8b[_0x435a60(0xfd)]('│')+_0x435a60(0xf7)):_0x5491c9=_0x37259d+_0x3b804c['indent'];const _0x2e4fb8=formatTree(_0x446cd3[_0x435a60(0x109)],_0x3b804c,_0x27023a+0x1,_0x5491c9);_0xea6eec['push'](_0x2e4fb8);}}return _0xea6eec[_0x435a60(0xee)]('\x0a');}function a81_0x55e8(_0x24e004,_0x2f6cd2){const _0x29d9ec=a81_0x29d9();return a81_0x55e8=function(_0x55e817,_0x780f6d){_0x55e817=_0x55e817-0xed;let _0x28e3ac=_0x29d9ec[_0x55e817];return _0x28e3ac;},a81_0x55e8(_0x24e004,_0x2f6cd2);}function a81_0x29d9(){const _0x4372a9=['showTreeLines','icon','\x20\x20\x20','1038BdBQxc','37251852xTDFJw','metadata','folderCount','1706960wIcyNY','dim','type','showIcons','folder','369RRFftk','push','6163087HcTgnR','8BYnoQw','810195MlsFYl','name','66KARPGF','showMetadata','children','segment','24300NmZaCw','263750rhKLyJ','map','\x20\x20\x20\x20','1493eIpdym','sort','join','\x20segment','population','segmentCount','(empty)','localeCompare','length'];a81_0x29d9=function(){return _0x4372a9;};return a81_0x29d9();}export function formatFlatList(_0x8ad22,_0x51eef9,_0x36f7c1={}){const _0x4f41b5=a81_0x55e8,_0x430ed7={...DEFAULT_OPTIONS,..._0x36f7c1},_0x58482d=[];for(const _0x372507 of _0x8ad22){_0x58482d[_0x4f41b5(0x102)]({'name':_0x372507['name'],'icon':_0x430ed7[_0x4f41b5(0xff)]?'📁':'','metadata':undefined});}for(const _0x23687f of _0x51eef9){const _0x28b319=_0x430ed7[_0x4f41b5(0x108)]&&_0x23687f[_0x4f41b5(0xf0)]!==undefined?a81_0x40dc8b[_0x4f41b5(0xfd)]('\x20('+formatRows(_0x23687f['population'])+')'):'';_0x58482d[_0x4f41b5(0x102)]({'name':_0x23687f[_0x4f41b5(0x106)],'icon':_0x430ed7['showIcons']?'🎯':'','metadata':_0x28b319});}_0x58482d[_0x4f41b5(0xed)]((_0x5e909c,_0x1b3a3e)=>_0x5e909c['name'][_0x4f41b5(0xf3)](_0x1b3a3e[_0x4f41b5(0x106)]));if(_0x58482d[_0x4f41b5(0xf4)]===0x0)return _0x4f41b5(0xf2);const _0x117890=_0x58482d[_0x4f41b5(0x10d)](_0x47a438=>{const _0x49874b=_0x4f41b5,_0xc05006=_0x47a438['icon']?_0x47a438[_0x49874b(0xf6)]+'\x20':'',_0x46a748=_0x47a438['metadata']||'';return''+_0xc05006+_0x47a438[_0x49874b(0x106)]+_0x46a748;});return _0x117890[_0x4f41b5(0xee)]('\x0a');}
1
+ (function(_0x59ddbc,_0x62b989){const _0x4c63fd=a81_0x4a0b,_0x20f387=_0x59ddbc();while(!![]){try{const _0x572380=-parseInt(_0x4c63fd(0x16f))/0x1+parseInt(_0x4c63fd(0x16b))/0x2*(parseInt(_0x4c63fd(0x17e))/0x3)+-parseInt(_0x4c63fd(0x17d))/0x4+-parseInt(_0x4c63fd(0x18b))/0x5*(parseInt(_0x4c63fd(0x176))/0x6)+-parseInt(_0x4c63fd(0x179))/0x7*(-parseInt(_0x4c63fd(0x181))/0x8)+-parseInt(_0x4c63fd(0x16e))/0x9+parseInt(_0x4c63fd(0x18c))/0xa;if(_0x572380===_0x62b989)break;else _0x20f387['push'](_0x20f387['shift']());}catch(_0x91f30d){_0x20f387['push'](_0x20f387['shift']());}}}(a81_0x2b5a,0xf065c));import{formatRows}from'./formatters.js';import a81_0x63b894 from'chalk';function a81_0x2b5a(){const _0x2142f7=['sort','3676752owwCHV','segment','showMetadata','5670297eDyRvO','812047rXzvfR','\x20\x20\x20\x20','localeCompare','name','length','population','folderCount','1782WLzLYm','dim','metadata','7tPfCAH','children','indent','join','446992MRTqvo','3UsITSn','folder','type','3577176opJQqR','showIcons','📁\x20','segmentCount','push','showTreeLines','icon','\x20\x20\x20','\x20segment','\x20folder','20595SPtVXv','14763160NFVKBr','🎯\x20'];a81_0x2b5a=function(){return _0x2142f7;};return a81_0x2b5a();}function a81_0x4a0b(_0x1cb937,_0x384648){const _0x2b5ac0=a81_0x2b5a();return a81_0x4a0b=function(_0x4a0b1b,_0x3a68d0){_0x4a0b1b=_0x4a0b1b-0x16a;let _0x4cb081=_0x2b5ac0[_0x4a0b1b];return _0x4cb081;},a81_0x4a0b(_0x1cb937,_0x384648);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x20cf24,_0x330867={},_0x2fc3fe=0x0,_0x4cb7c2=''){const _0x3075e0=a81_0x4a0b,_0x1ef595={...DEFAULT_OPTIONS,..._0x330867},_0x52ab82=[],_0x3871d8=[..._0x20cf24][_0x3075e0(0x16a)]((_0x10e1bd,_0x357785)=>_0x10e1bd[_0x3075e0(0x172)][_0x3075e0(0x171)](_0x357785['name']));for(let _0x3ceb5c=0x0;_0x3ceb5c<_0x3871d8['length'];_0x3ceb5c++){const _0x367497=_0x3871d8[_0x3ceb5c],_0x517be1=_0x3ceb5c===_0x3871d8[_0x3075e0(0x173)]-0x1;let _0x2258cd='';_0x2fc3fe>0x0&&(_0x2258cd+=_0x4cb7c2);_0x1ef595[_0x3075e0(0x186)]&&_0x2fc3fe>0x0&&(_0x2258cd+=a81_0x63b894[_0x3075e0(0x177)](_0x517be1?'└──\x20':'├──\x20'));_0x1ef595[_0x3075e0(0x182)]&&(_0x2258cd+=_0x367497[_0x3075e0(0x180)]==='folder'?_0x3075e0(0x183):_0x3075e0(0x18d));_0x2258cd+=_0x367497['name'];if(_0x1ef595[_0x3075e0(0x16d)]){if(_0x367497['type']===_0x3075e0(0x17f)){const _0x3f8f78=[];_0x367497['metadata'][_0x3075e0(0x184)]&&_0x3f8f78['push'](_0x367497['metadata']['segmentCount']+_0x3075e0(0x189)+(_0x367497[_0x3075e0(0x178)][_0x3075e0(0x184)]!==0x1?'s':'')),_0x367497['metadata'][_0x3075e0(0x175)]&&_0x3f8f78[_0x3075e0(0x185)](_0x367497[_0x3075e0(0x178)]['folderCount']+_0x3075e0(0x18a)+(_0x367497[_0x3075e0(0x178)][_0x3075e0(0x175)]!==0x1?'s':'')),_0x3f8f78['length']>0x0&&(_0x2258cd+=a81_0x63b894['dim']('\x20('+_0x3f8f78[_0x3075e0(0x17c)](',\x20')+')'));}else _0x367497[_0x3075e0(0x180)]===_0x3075e0(0x16c)&&_0x367497[_0x3075e0(0x174)]!==undefined&&(_0x2258cd+=a81_0x63b894[_0x3075e0(0x177)]('\x20('+formatRows(_0x367497[_0x3075e0(0x174)])+')'));}_0x52ab82[_0x3075e0(0x185)](_0x2258cd);if(_0x367497[_0x3075e0(0x17a)]&&_0x367497[_0x3075e0(0x17a)]['length']>0x0){let _0x1099df;if(_0x2fc3fe===0x0)_0x1099df='';else _0x1ef595[_0x3075e0(0x186)]?_0x1099df=_0x4cb7c2+(_0x517be1?_0x3075e0(0x170):a81_0x63b894[_0x3075e0(0x177)]('│')+_0x3075e0(0x188)):_0x1099df=_0x4cb7c2+_0x1ef595[_0x3075e0(0x17b)];const _0x5e7f26=formatTree(_0x367497[_0x3075e0(0x17a)],_0x1ef595,_0x2fc3fe+0x1,_0x1099df);_0x52ab82['push'](_0x5e7f26);}}return _0x52ab82['join']('\x0a');}export function formatFlatList(_0x4e776f,_0x88d516,_0x14fec5={}){const _0x74ca57=a81_0x4a0b,_0x412cbb={...DEFAULT_OPTIONS,..._0x14fec5},_0x273155=[];for(const _0x3f9b6a of _0x4e776f){_0x273155[_0x74ca57(0x185)]({'name':_0x3f9b6a[_0x74ca57(0x172)],'icon':_0x412cbb[_0x74ca57(0x182)]?'📁':'','metadata':undefined});}for(const _0x401c77 of _0x88d516){const _0x186755=_0x412cbb[_0x74ca57(0x16d)]&&_0x401c77[_0x74ca57(0x174)]!==undefined?a81_0x63b894['dim']('\x20('+formatRows(_0x401c77[_0x74ca57(0x174)])+')'):'';_0x273155['push']({'name':_0x401c77[_0x74ca57(0x172)],'icon':_0x412cbb[_0x74ca57(0x182)]?'🎯':'','metadata':_0x186755});}_0x273155[_0x74ca57(0x16a)]((_0x1aa4bd,_0x1291ff)=>_0x1aa4bd[_0x74ca57(0x172)][_0x74ca57(0x171)](_0x1291ff[_0x74ca57(0x172)]));if(_0x273155[_0x74ca57(0x173)]===0x0)return'(empty)';const _0x21d73f=_0x273155['map'](_0x44b2ce=>{const _0x393ffa=_0x74ca57,_0x5b6571=_0x44b2ce['icon']?_0x44b2ce[_0x393ffa(0x187)]+'\x20':'',_0x38f943=_0x44b2ce[_0x393ffa(0x178)]||'';return''+_0x5b6571+_0x44b2ce[_0x393ffa(0x172)]+_0x38f943;});return _0x21d73f[_0x74ca57(0x17c)]('\x0a');}
@@ -1 +1 @@
1
- function a82_0x442a(_0x3724d2,_0x56e286){const _0x4d26d2=a82_0x4d26();return a82_0x442a=function(_0x442a6e,_0x189bf8){_0x442a6e=_0x442a6e-0x152;let _0x3048ed=_0x4d26d2[_0x442a6e];return _0x3048ed;},a82_0x442a(_0x3724d2,_0x56e286);}(function(_0x5cd361,_0x49c92a){const _0x24c7c7=a82_0x442a,_0x24b627=_0x5cd361();while(!![]){try{const _0x258b6b=parseInt(_0x24c7c7(0x174))/0x1+parseInt(_0x24c7c7(0x171))/0x2+parseInt(_0x24c7c7(0x15e))/0x3+parseInt(_0x24c7c7(0x165))/0x4+-parseInt(_0x24c7c7(0x173))/0x5+parseInt(_0x24c7c7(0x170))/0x6*(-parseInt(_0x24c7c7(0x15b))/0x7)+-parseInt(_0x24c7c7(0x16f))/0x8;if(_0x258b6b===_0x49c92a)break;else _0x24b627['push'](_0x24b627['shift']());}catch(_0x2ff0f1){_0x24b627['push'](_0x24b627['shift']());}}}(a82_0x4d26,0x6a717));import{get}from'https';function a82_0x4d26(){const _0x1fd972=['123952IPNDWX','cyan','1555660NqPRXu','504835cNnNrH','Invalid\x20version\x20format','last_version_check','dim','Request\x20timeout','toISOString','\x0aRun:\x20','write','data','\x0aUpdate\x20available:\x20','green','npm\x20install\x20-g\x20@treasuredata/tdx@latest','70NXUybc','statusCode','currentVersion','1435314OSUBQj','version','utf-8','stderr','updateAvailable','isTTY','end','1858032ApZYKi','yellow','parse','Run:','NO_COLOR','now','destroy','Update\x20available:','latestVersion','getTime','1200672ATZVoK','367530bsjkCt'];a82_0x4d26=function(){return _0x1fd972;};return a82_0x4d26();}import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a82_0x7157bc from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x37364f=a82_0x442a,_0x1b3b2d=getCacheDir();return join(_0x1b3b2d,_0x37364f(0x176));}function readCache(){const _0x3f1a00=a82_0x442a;try{const _0x494220=getCacheFilePath(),_0x5235b6=readFileSync(_0x494220,_0x3f1a00(0x160));return JSON['parse'](_0x5235b6);}catch{return null;}}function writeCache(_0x362fa6){const _0x520c90=a82_0x442a;try{const _0x26137c=getCacheDir();mkdirSync(_0x26137c,{'recursive':!![]});const _0x1d8916={'lastCheck':new Date()[_0x520c90(0x154)](),'latestVersion':_0x362fa6},_0x14815a=getCacheFilePath();writeFileSync(_0x14815a,JSON['stringify'](_0x1d8916,null,0x2),_0x520c90(0x160));}catch{}}function isCacheValid(_0x5c4455){const _0x2c2394=a82_0x442a;if(!_0x5c4455)return![];const _0x3bbe34=new Date(_0x5c4455['lastCheck'])[_0x2c2394(0x16e)](),_0x5a2e1a=Date[_0x2c2394(0x16a)]();return _0x5a2e1a-_0x3bbe34<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4da66a,_0xf2371f)=>{const _0x4ea478=get(NPM_REGISTRY_URL,_0xee6904=>{const _0x23865a=a82_0x442a;if(_0xee6904[_0x23865a(0x15c)]!==0xc8){clearTimeout(_0x21dfe7),_0xf2371f(new Error('HTTP\x20'+_0xee6904[_0x23865a(0x15c)]));return;}let _0x338475='';_0xee6904['on'](_0x23865a(0x157),_0x5eaee7=>{_0x338475+=_0x5eaee7;}),_0xee6904['on'](_0x23865a(0x164),()=>{const _0x1e241f=_0x23865a;clearTimeout(_0x21dfe7);try{const _0x3e12c2=JSON[_0x1e241f(0x167)](_0x338475);if(!valid(_0x3e12c2[_0x1e241f(0x15f)])){_0xf2371f(new Error(_0x1e241f(0x175)));return;}_0x4da66a(_0x3e12c2[_0x1e241f(0x15f)]);}catch(_0x5a7bfc){_0xf2371f(_0x5a7bfc);}});})['on']('error',_0x53faa3=>{clearTimeout(_0x21dfe7),_0xf2371f(_0x53faa3);}),_0x21dfe7=setTimeout(()=>{const _0x7bb069=a82_0x442a;_0x4ea478[_0x7bb069(0x16b)](),_0xf2371f(new Error(_0x7bb069(0x153)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x5e592b){const _0x960435=a82_0x442a;try{const _0x5a4b7c=readCache();if(isCacheValid(_0x5a4b7c)){const _0xdd603c=gt(_0x5a4b7c['latestVersion'],_0x5e592b);return{'updateAvailable':_0xdd603c,'currentVersion':_0x5e592b,'latestVersion':_0x5a4b7c[_0x960435(0x16d)]};}const _0x82aef=await fetchLatestVersion();writeCache(_0x82aef);const _0x4a4cf2=gt(_0x82aef,_0x5e592b);return{'updateAvailable':_0x4a4cf2,'currentVersion':_0x5e592b,'latestVersion':_0x82aef};}catch{return null;}}export function displayUpdateNotification(_0x332bf4){const _0x1bd22e=a82_0x442a;if(!_0x332bf4[_0x1bd22e(0x162)])return;const _0x1bd67e=process[_0x1bd22e(0x161)][_0x1bd22e(0x163)]&&!process['env'][_0x1bd22e(0x169)],_0x102a34=_0x1bd67e?a82_0x7157bc['gray']('→'):'→',_0x950c1a=_0x1bd67e?a82_0x7157bc[_0x1bd22e(0x152)](_0x332bf4['currentVersion']):_0x332bf4[_0x1bd22e(0x15d)],_0x16cc22=_0x1bd67e?a82_0x7157bc[_0x1bd22e(0x159)](_0x332bf4['latestVersion']):_0x332bf4[_0x1bd22e(0x16d)],_0x309c33=_0x1bd67e?a82_0x7157bc[_0x1bd22e(0x172)](_0x1bd22e(0x15a)):_0x1bd22e(0x15a),_0x55b973=_0x1bd67e?'\x0a'+a82_0x7157bc[_0x1bd22e(0x166)](_0x1bd22e(0x16c))+'\x20'+_0x950c1a+'\x20'+_0x102a34+'\x20'+_0x16cc22+'\x0a'+a82_0x7157bc[_0x1bd22e(0x152)](_0x1bd22e(0x168))+'\x20'+_0x309c33+'\x0a':_0x1bd22e(0x158)+_0x950c1a+'\x20'+_0x102a34+'\x20'+_0x16cc22+_0x1bd22e(0x155)+_0x309c33+'\x0a';process[_0x1bd22e(0x161)][_0x1bd22e(0x156)](_0x55b973);}
1
+ const a82_0x19f9cb=a82_0x2831;(function(_0x26969f,_0x511fc3){const _0x1df863=a82_0x2831,_0x5f111c=_0x26969f();while(!![]){try{const _0x1c97df=-parseInt(_0x1df863(0x198))/0x1*(parseInt(_0x1df863(0x1a4))/0x2)+parseInt(_0x1df863(0x1aa))/0x3*(parseInt(_0x1df863(0x1a2))/0x4)+parseInt(_0x1df863(0x1b4))/0x5+parseInt(_0x1df863(0x1b7))/0x6*(-parseInt(_0x1df863(0x1a1))/0x7)+-parseInt(_0x1df863(0x1b1))/0x8*(-parseInt(_0x1df863(0x1b8))/0x9)+parseInt(_0x1df863(0x1ba))/0xa*(-parseInt(_0x1df863(0x1ac))/0xb)+-parseInt(_0x1df863(0x1b9))/0xc*(-parseInt(_0x1df863(0x19b))/0xd);if(_0x1c97df===_0x511fc3)break;else _0x5f111c['push'](_0x5f111c['shift']());}catch(_0x55432e){_0x5f111c['push'](_0x5f111c['shift']());}}}(a82_0x2de9,0x31c7f));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';function a82_0x2831(_0x1da793,_0xa0e9d){const _0x2de911=a82_0x2de9();return a82_0x2831=function(_0x2831e2,_0x1d316c){_0x2831e2=_0x2831e2-0x196;let _0x286b6d=_0x2de911[_0x2831e2];return _0x286b6d;},a82_0x2831(_0x1da793,_0xa0e9d);}import{join}from'path';import{gt,valid}from'semver';import a82_0x1eb4b7 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x19f9cb(0x19c),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x1cdcf7=a82_0x19f9cb,_0x53aa4e=getCacheDir();return join(_0x53aa4e,_0x1cdcf7(0x1bc));}function readCache(){const _0x3dabd7=a82_0x19f9cb;try{const _0x46889f=getCacheFilePath(),_0x536634=readFileSync(_0x46889f,_0x3dabd7(0x1b5));return JSON[_0x3dabd7(0x1ae)](_0x536634);}catch{return null;}}function writeCache(_0x2787f8){const _0x5205a4=a82_0x19f9cb;try{const _0x558c2a=getCacheDir();mkdirSync(_0x558c2a,{'recursive':!![]});const _0x49aada={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2787f8},_0x59ed5f=getCacheFilePath();writeFileSync(_0x59ed5f,JSON[_0x5205a4(0x1a7)](_0x49aada,null,0x2),_0x5205a4(0x1b5));}catch{}}function isCacheValid(_0x332765){const _0x116559=a82_0x19f9cb;if(!_0x332765)return![];const _0x108eff=new Date(_0x332765['lastCheck'])[_0x116559(0x197)](),_0x2494f6=Date[_0x116559(0x1b0)]();return _0x2494f6-_0x108eff<CACHE_DURATION_MS;}function a82_0x2de9(){const _0x776bfc=['gray','3QKtIBp','yellow','4763wLsJBj','npm\x20install\x20-g\x20@treasuredata/tdx@latest','parse','currentVersion','now','232EYgFNp','stderr','statusCode','520525yqImbQ','utf-8','updateAvailable','6OlxyKT','3015uOQuDp','13644gpLJiX','1780aXPgPN','env','last_version_check','Request\x20timeout','cyan','getTime','172RKREHZ','Run:','NO_COLOR','2561ModDCp','https://registry.npmjs.org/@treasuredata/tdx/latest','end','version','error','green','1610231KSIDwt','1255588cDtPBK','dim','1636UQaYLo','data','\x0aRun:\x20','stringify','latestVersion'];a82_0x2de9=function(){return _0x776bfc;};return a82_0x2de9();}function fetchLatestVersion(){return new Promise((_0x359c09,_0x357f02)=>{const _0x56eb95=a82_0x2831,_0x1fd372=get(NPM_REGISTRY_URL,_0x989ec9=>{const _0xbad4e2=a82_0x2831;if(_0x989ec9[_0xbad4e2(0x1b3)]!==0xc8){clearTimeout(_0x50225f),_0x357f02(new Error('HTTP\x20'+_0x989ec9[_0xbad4e2(0x1b3)]));return;}let _0x189239='';_0x989ec9['on'](_0xbad4e2(0x1a5),_0x5aea3c=>{_0x189239+=_0x5aea3c;}),_0x989ec9['on'](_0xbad4e2(0x19d),()=>{const _0x4e7492=_0xbad4e2;clearTimeout(_0x50225f);try{const _0x5d0da0=JSON[_0x4e7492(0x1ae)](_0x189239);if(!valid(_0x5d0da0[_0x4e7492(0x19e)])){_0x357f02(new Error('Invalid\x20version\x20format'));return;}_0x359c09(_0x5d0da0[_0x4e7492(0x19e)]);}catch(_0x13f057){_0x357f02(_0x13f057);}});})['on'](_0x56eb95(0x19f),_0x2baf59=>{clearTimeout(_0x50225f),_0x357f02(_0x2baf59);}),_0x50225f=setTimeout(()=>{const _0x20dc9d=_0x56eb95;_0x1fd372['destroy'](),_0x357f02(new Error(_0x20dc9d(0x1bd)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x1fe808){const _0xe79d91=a82_0x19f9cb;try{const _0x36d5a4=readCache();if(isCacheValid(_0x36d5a4)){const _0x4a2d91=gt(_0x36d5a4['latestVersion'],_0x1fe808);return{'updateAvailable':_0x4a2d91,'currentVersion':_0x1fe808,'latestVersion':_0x36d5a4[_0xe79d91(0x1a8)]};}const _0x905a4=await fetchLatestVersion();writeCache(_0x905a4);const _0x900d4e=gt(_0x905a4,_0x1fe808);return{'updateAvailable':_0x900d4e,'currentVersion':_0x1fe808,'latestVersion':_0x905a4};}catch{return null;}}export function displayUpdateNotification(_0x2e01e7){const _0x1a7440=a82_0x19f9cb;if(!_0x2e01e7[_0x1a7440(0x1b6)])return;const _0x3e61b3=process[_0x1a7440(0x1b2)]['isTTY']&&!process[_0x1a7440(0x1bb)][_0x1a7440(0x19a)],_0x2d8189=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a9)]('→'):'→',_0x1ebc86=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a3)](_0x2e01e7[_0x1a7440(0x1af)]):_0x2e01e7[_0x1a7440(0x1af)],_0x4272fd=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a0)](_0x2e01e7['latestVersion']):_0x2e01e7[_0x1a7440(0x1a8)],_0x1bbcca=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x196)](_0x1a7440(0x1ad)):_0x1a7440(0x1ad),_0x326569=_0x3e61b3?'\x0a'+a82_0x1eb4b7[_0x1a7440(0x1ab)]('Update\x20available:')+'\x20'+_0x1ebc86+'\x20'+_0x2d8189+'\x20'+_0x4272fd+'\x0a'+a82_0x1eb4b7[_0x1a7440(0x1a3)](_0x1a7440(0x199))+'\x20'+_0x1bbcca+'\x0a':'\x0aUpdate\x20available:\x20'+_0x1ebc86+'\x20'+_0x2d8189+'\x20'+_0x4272fd+_0x1a7440(0x1a6)+_0x1bbcca+'\x0a';process[_0x1a7440(0x1b2)]['write'](_0x326569);}
@@ -1 +1 @@
1
- const a83_0x40202d=a83_0x815d;(function(_0x4f0165,_0x4743b1){const _0x1af26c=a83_0x815d,_0xe6559f=_0x4f0165();while(!![]){try{const _0x182331=parseInt(_0x1af26c(0x1d6))/0x1+-parseInt(_0x1af26c(0x1d0))/0x2+-parseInt(_0x1af26c(0x1d1))/0x3+parseInt(_0x1af26c(0x1da))/0x4*(parseInt(_0x1af26c(0x1d8))/0x5)+parseInt(_0x1af26c(0x1d9))/0x6+-parseInt(_0x1af26c(0x1d5))/0x7+parseInt(_0x1af26c(0x1d3))/0x8;if(_0x182331===_0x4743b1)break;else _0xe6559f['push'](_0xe6559f['shift']());}catch(_0x1c1fde){_0xe6559f['push'](_0xe6559f['shift']());}}}(a83_0x41cd,0x20b50));function a83_0x815d(_0x273c12,_0xa92dec){const _0x41cd6e=a83_0x41cd();return a83_0x815d=function(_0x815dad,_0x452f34){_0x815dad=_0x815dad-0x1d0;let _0x45c4c5=_0x41cd6e[_0x815dad];return _0x45c4c5;},a83_0x815d(_0x273c12,_0xa92dec);}export const WORKFLOW_FILE_EXTENSION=a83_0x40202d(0x1d4);export function shouldIncludeInArchive(_0x33d56c){const _0x166076=a83_0x40202d;if(_0x33d56c===_0x166076(0x1d2))return!![];if(_0x33d56c[_0x166076(0x1d7)]('.'))return![];return!![];}function a83_0x41cd(){const _0x2672cf=['445176pnujqw','271281uyTIil','.digdag','429504PBXtSE','.dig','316673jcuWcq','119804ROBnmd','startsWith','1500cEKGZv','562380BRzCzS','3000IscXCD'];a83_0x41cd=function(){return _0x2672cf;};return a83_0x41cd();}
1
+ function a83_0xfa44(){const _0xbc2973=['8960544yWpHNZ','5320104CazQmy','3585195kQYdwt','2wsnfxe','1193196nhMWWM','4611204fERofl','startsWith','1892107RhioAO','932142vSksjP','8wNehpc'];a83_0xfa44=function(){return _0xbc2973;};return a83_0xfa44();}(function(_0x3e011e,_0x2ea95a){const _0x1b1e77=a83_0x4c03,_0x546851=_0x3e011e();while(!![]){try{const _0x453b76=parseInt(_0x1b1e77(0x1da))/0x1*(-parseInt(_0x1b1e77(0x1df))/0x2)+-parseInt(_0x1b1e77(0x1db))/0x3+parseInt(_0x1b1e77(0x1e2))/0x4+parseInt(_0x1b1e77(0x1e3))/0x5+-parseInt(_0x1b1e77(0x1dc))/0x6+-parseInt(_0x1b1e77(0x1de))/0x7+-parseInt(_0x1b1e77(0x1e0))/0x8*(-parseInt(_0x1b1e77(0x1e1))/0x9);if(_0x453b76===_0x2ea95a)break;else _0x546851['push'](_0x546851['shift']());}catch(_0x3b38ec){_0x546851['push'](_0x546851['shift']());}}}(a83_0xfa44,0xa48b4));function a83_0x4c03(_0x185a52,_0x1a4851){const _0xfa4465=a83_0xfa44();return a83_0x4c03=function(_0x4c031e,_0x57d91c){_0x4c031e=_0x4c031e-0x1da;let _0x38e25b=_0xfa4465[_0x4c031e];return _0x38e25b;},a83_0x4c03(_0x185a52,_0x1a4851);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x1f2f7e){const _0x3c4f46=a83_0x4c03;if(_0x1f2f7e==='.digdag')return!![];if(_0x1f2f7e[_0x3c4f46(0x1dd)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {