@treasuredata/tdx 0.1.19 → 0.1.20

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 (87) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-client.js +1 -1
  5. package/dist/client/http-client.js +1 -1
  6. package/dist/client/llm-client.js +1 -1
  7. package/dist/client/rate-limiter.js +1 -1
  8. package/dist/client/td-client.js +1 -1
  9. package/dist/client/trino-client.js +1 -1
  10. package/dist/client/workflow-client.js +1 -1
  11. package/dist/commands/activations.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/context-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/llm-command.js +1 -1
  21. package/dist/commands/llm-proxy.js +1 -1
  22. package/dist/commands/parent-segment-command.js +1 -1
  23. package/dist/commands/profiles-command.js +1 -1
  24. package/dist/commands/query-command.js +1 -1
  25. package/dist/commands/segment-command.js +1 -1
  26. package/dist/commands/segment-create-command.js +1 -1
  27. package/dist/commands/segment-fields-command.js +1 -1
  28. package/dist/commands/segment-pwd-command.js +1 -1
  29. package/dist/commands/segment-update-command.js +1 -1
  30. package/dist/commands/segment-use-command.js +1 -1
  31. package/dist/commands/segments.js +1 -1
  32. package/dist/commands/show.js +1 -1
  33. package/dist/commands/tables.js +1 -1
  34. package/dist/commands/use-command.js +1 -1
  35. package/dist/commands/workflow-command.js +1 -1
  36. package/dist/core/auth.js +1 -1
  37. package/dist/core/config.js +1 -1
  38. package/dist/core/global-context.js +1 -1
  39. package/dist/core/profile.js +1 -1
  40. package/dist/core/project-config.js +1 -1
  41. package/dist/core/session.js +1 -1
  42. package/dist/index.js +1 -1
  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.d.ts.map +1 -1
  47. package/dist/proxy/server.js +1 -1
  48. package/dist/proxy/server.js.map +1 -1
  49. package/dist/sdk/api.js +1 -1
  50. package/dist/sdk/database.js +1 -1
  51. package/dist/sdk/errors.d.ts +3 -1
  52. package/dist/sdk/errors.d.ts.map +1 -1
  53. package/dist/sdk/errors.js +1 -1
  54. package/dist/sdk/errors.js.map +1 -1
  55. package/dist/sdk/index.js +1 -1
  56. package/dist/sdk/job.js +1 -1
  57. package/dist/sdk/llm.js +1 -1
  58. package/dist/sdk/query.js +1 -1
  59. package/dist/sdk/segment.js +1 -1
  60. package/dist/sdk/table.js +1 -1
  61. package/dist/sdk/workflow.js +1 -1
  62. package/dist/types/endpoints.js +1 -1
  63. package/dist/types/index.js +1 -1
  64. package/dist/utils/agent-ref-parser.js +1 -1
  65. package/dist/utils/chat-cache.js +1 -1
  66. package/dist/utils/colors.js +1 -1
  67. package/dist/utils/command-output.js +1 -1
  68. package/dist/utils/file-permissions.js +1 -1
  69. package/dist/utils/format-detector.js +1 -1
  70. package/dist/utils/formatters.js +1 -1
  71. package/dist/utils/json-loader.js +1 -1
  72. package/dist/utils/model-aliases.js +1 -1
  73. package/dist/utils/option-validation.js +1 -1
  74. package/dist/utils/port.js +1 -1
  75. package/dist/utils/process.js +1 -1
  76. package/dist/utils/prompt.js +1 -1
  77. package/dist/utils/segment-path-parser.js +1 -1
  78. package/dist/utils/segment-ref-parser.js +1 -1
  79. package/dist/utils/spinner.js +1 -1
  80. package/dist/utils/sql-parser.js +1 -1
  81. package/dist/utils/sse-parser.js +1 -1
  82. package/dist/utils/string-utils.js +1 -1
  83. package/dist/utils/table-ref-parser.js +1 -1
  84. package/dist/utils/tree-formatter.js +1 -1
  85. package/dist/utils/version-check.js +1 -1
  86. package/dist/utils/workflow-utils.js +1 -1
  87. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x53ed93,_0x1b0b07){const _0x320fec=a71_0xe85b,_0x55ca61=_0x53ed93();while(!![]){try{const _0x369e37=-parseInt(_0x320fec(0xc1))/0x1*(-parseInt(_0x320fec(0xb5))/0x2)+parseInt(_0x320fec(0xba))/0x3+parseInt(_0x320fec(0xae))/0x4+parseInt(_0x320fec(0xaa))/0x5+-parseInt(_0x320fec(0xbc))/0x6*(-parseInt(_0x320fec(0xb1))/0x7)+parseInt(_0x320fec(0xbb))/0x8*(parseInt(_0x320fec(0xab))/0x9)+-parseInt(_0x320fec(0xc4))/0xa;if(_0x369e37===_0x1b0b07)break;else _0x55ca61['push'](_0x55ca61['shift']());}catch(_0x4370b5){_0x55ca61['push'](_0x55ca61['shift']());}}}(a71_0x4748,0x5c720));export function parsePath(_0x4f9821){const _0x5a0cd2=a71_0xe85b;if(!_0x4f9821||_0x4f9821[_0x5a0cd2(0xb6)]()==='')throw new Error(_0x5a0cd2(0xb2));const _0x52c9d5=_0x4f9821[_0x5a0cd2(0xb6)]();if(_0x52c9d5==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x4f9821};const _0x4b2899=_0x52c9d5[_0x5a0cd2(0xa8)]('/')?_0x52c9d5['substring'](0x1):_0x52c9d5,_0x3e15c0=_0x4b2899[_0x5a0cd2(0xbe)]('/')[_0x5a0cd2(0xc0)](_0x32cad9=>_0x32cad9!=='');if(_0x3e15c0[_0x5a0cd2(0xb8)]===0x0)throw new Error(_0x5a0cd2(0xaf));const _0x288d40=_0x52c9d5[_0x5a0cd2(0xa8)]('/')||!isRelativePathSegment(_0x3e15c0[0x0]);for(const _0x175662 of _0x3e15c0){validatePathSegment(_0x175662);}return{'segments':_0x3e15c0,'isAbsolute':_0x288d40,'raw':_0x4f9821};}function a71_0x4748(){const _0x5161f1=['join','split','Path\x20attempts\x20to\x20navigate\x20above\x20root','filter','4ZmVgHL','pop','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','23593670Tfhwmx','startsWith','Relative\x20path\x20cannot\x20be\x20empty','1177320Nzwxqf','18qLWaDt','isAbsolute','Cannot\x20navigate\x20above\x20root','2482720wcScLb','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','raw','2735390sNKXdA','Path\x20cannot\x20be\x20empty','push','segments','357136qIPAIx','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','length','slice','698133CuYVpj','2176504dRLHWA','6cpIJOW'];a71_0x4748=function(){return _0x5161f1;};return a71_0x4748();}function isRelativePathSegment(_0x321dd0){return _0x321dd0==='.'||_0x321dd0==='..';}function validatePathSegment(_0x165828){const _0x4a070f=a71_0xe85b;if(_0x165828==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x165828==='.'||_0x165828==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x165828))throw new Error(_0x4a070f(0xc3)+_0x165828);if(_0x165828!==_0x165828['trim']()){}}function a71_0xe85b(_0x207821,_0x2f157d){const _0x4748ba=a71_0x4748();return a71_0xe85b=function(_0xe85b0,_0x478b7a){_0xe85b0=_0xe85b0-0xa8;let _0x26fa20=_0x4748ba[_0xe85b0];return _0x26fa20;},a71_0xe85b(_0x207821,_0x2f157d);}export function validatePath(_0x43bf9a){const _0xe36592=a71_0xe85b;if(_0x43bf9a[_0xe36592(0xb4)][_0xe36592(0xb8)]===0x0&&!_0x43bf9a[_0xe36592(0xac)])throw new Error(_0xe36592(0xa9));if(_0x43bf9a[_0xe36592(0xac)]){if(_0x43bf9a[_0xe36592(0xb4)][0x0]==='..')throw new Error(_0xe36592(0xb7));let _0x1f00d3=0x0;for(const _0x3a7271 of _0x43bf9a[_0xe36592(0xb4)]){if(_0x3a7271==='..'){if(_0x1f00d3===0x0)throw new Error(_0xe36592(0xbf));_0x1f00d3--;}else _0x3a7271!=='.'&&_0x1f00d3++;}}}export function joinPaths(_0x1f8fdd,_0x27e689){const _0x597f11=a71_0xe85b;if(!_0x1f8fdd||_0x1f8fdd==='/')return _0x27e689;if(!_0x27e689||_0x27e689==='.')return _0x1f8fdd;if(_0x27e689[_0x597f11(0xa8)]('/'))return _0x27e689;const _0x814f36=parsePath(_0x1f8fdd),_0x3d20f1=parsePath(_0x27e689),_0x39863b=[..._0x814f36[_0x597f11(0xb4)]];for(const _0x1e009c of _0x3d20f1[_0x597f11(0xb4)]){if(_0x1e009c==='.')continue;else{if(_0x1e009c==='..'){if(_0x39863b[_0x597f11(0xb8)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x39863b['pop']();}else _0x39863b[_0x597f11(0xb3)](_0x1e009c);}}const _0x44c814=_0x39863b[_0x597f11(0xbd)]('/');return _0x814f36[_0x597f11(0xb0)][_0x597f11(0xa8)]('/')?'/'+_0x44c814:_0x44c814;}export function normalizePath(_0xf40bf1){const _0x5cc0d5=a71_0xe85b,_0x2f0add=parsePath(_0xf40bf1),_0x463996=[];for(const _0x58c72f of _0x2f0add[_0x5cc0d5(0xb4)]){if(_0x58c72f==='.')continue;else{if(_0x58c72f==='..'){if(_0x463996['length']===0x0){if(_0x2f0add[_0x5cc0d5(0xac)])throw new Error(_0x5cc0d5(0xad));_0x463996['push']('..');}else _0x463996[_0x463996[_0x5cc0d5(0xb8)]-0x1]==='..'?_0x463996[_0x5cc0d5(0xb3)]('..'):_0x463996[_0x5cc0d5(0xc2)]();}else _0x463996[_0x5cc0d5(0xb3)](_0x58c72f);}}if(_0x463996[_0x5cc0d5(0xb8)]===0x0)return _0x2f0add[_0x5cc0d5(0xac)]?'/':'.';const _0x3e96ea=_0x463996['join']('/');return _0x2f0add[_0x5cc0d5(0xb0)]['startsWith']('/')?'/'+_0x3e96ea:_0x3e96ea;}export function getParentPath(_0x12e7c3){const _0x2dc13b=a71_0xe85b,_0x298bae=parsePath(_0x12e7c3);if(_0x298bae[_0x2dc13b(0xb4)][_0x2dc13b(0xb8)]<=0x1)return'/';const _0x2da785=_0x298bae['segments'][_0x2dc13b(0xb9)](0x0,-0x1)[_0x2dc13b(0xbd)]('/');return _0x298bae[_0x2dc13b(0xb0)][_0x2dc13b(0xa8)]('/')?'/'+_0x2da785:_0x2da785;}export function getBaseName(_0x16eea5){const _0x5a57fc=a71_0xe85b,_0x2bc15c=parsePath(_0x16eea5);return _0x2bc15c[_0x5a57fc(0xb4)][_0x2bc15c['segments'][_0x5a57fc(0xb8)]-0x1]||'';}export function isChildPath(_0x490a07,_0x16c90f){const _0x2eaa29=a71_0xe85b,_0x47daa9=parsePath(_0x490a07),_0x5859e0=parsePath(_0x16c90f);if(_0x47daa9['segments'][_0x2eaa29(0xb8)]<=_0x5859e0[_0x2eaa29(0xb4)][_0x2eaa29(0xb8)])return![];for(let _0x4209f8=0x0;_0x4209f8<_0x5859e0[_0x2eaa29(0xb4)]['length'];_0x4209f8++){if(_0x47daa9[_0x2eaa29(0xb4)][_0x4209f8]!==_0x5859e0[_0x2eaa29(0xb4)][_0x4209f8])return![];}return!![];}export function splitPath(_0x100985){const _0x1918bf=a71_0xe85b,_0x21676f=parsePath(_0x100985);if(_0x21676f[_0x1918bf(0xb4)][_0x1918bf(0xb8)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x21676f[_0x1918bf(0xb4)][_0x1918bf(0xb8)]===0x1)return{'parent':_0x21676f[_0x1918bf(0xb4)][0x0]};return{'parent':_0x21676f[_0x1918bf(0xb4)][0x0],'child':_0x21676f[_0x1918bf(0xb4)][_0x1918bf(0xb9)](0x1)[_0x1918bf(0xbd)]('/')};}
1
+ (function(_0x539be7,_0x16c893){const _0x145eaa=a71_0x550e,_0x1576ad=_0x539be7();while(!![]){try{const _0x1828ec=-parseInt(_0x145eaa(0x14a))/0x1+-parseInt(_0x145eaa(0x15d))/0x2+-parseInt(_0x145eaa(0x149))/0x3*(-parseInt(_0x145eaa(0x14f))/0x4)+parseInt(_0x145eaa(0x15c))/0x5+parseInt(_0x145eaa(0x148))/0x6+parseInt(_0x145eaa(0x14e))/0x7*(-parseInt(_0x145eaa(0x145))/0x8)+parseInt(_0x145eaa(0x15a))/0x9;if(_0x1828ec===_0x16c893)break;else _0x1576ad['push'](_0x1576ad['shift']());}catch(_0x12cb3b){_0x1576ad['push'](_0x1576ad['shift']());}}}(a71_0x3f35,0x2de48));export function parsePath(_0x5648a3){const _0x436306=a71_0x550e;if(!_0x5648a3||_0x5648a3['trim']()==='')throw new Error(_0x436306(0x146));const _0x1033a9=_0x5648a3[_0x436306(0x147)]();if(_0x1033a9==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5648a3};const _0x2b9e61=_0x1033a9['startsWith']('/')?_0x1033a9[_0x436306(0x155)](0x1):_0x1033a9,_0x42ee30=_0x2b9e61['split']('/')[_0x436306(0x151)](_0x2b21e8=>_0x2b21e8!=='');if(_0x42ee30[_0x436306(0x154)]===0x0)throw new Error(_0x436306(0x158));const _0x4a5c7c=_0x1033a9[_0x436306(0x153)]('/')||!isRelativePathSegment(_0x42ee30[0x0]);for(const _0x49ce72 of _0x42ee30){validatePathSegment(_0x49ce72);}return{'segments':_0x42ee30,'isAbsolute':_0x4a5c7c,'raw':_0x5648a3};}function a71_0x3f35(){const _0x307a01=['slice','Path\x20segment\x20cannot\x20be\x20empty','Relative\x20path\x20cannot\x20be\x20empty','join','Cannot\x20navigate\x20above\x20root','194960TlsgAa','Path\x20cannot\x20be\x20empty','trim','2181558QPKNDz','1611XKZwtL','264275haPbYH','test','pop','segments','42ZDhrqd','844ZIrRoP','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','filter','Path\x20attempts\x20to\x20navigate\x20above\x20root','startsWith','length','substring','isAbsolute','Cannot\x20split\x20empty\x20path','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','push','651510oYtGKq','raw','1466610kzwYaA','488282zozRfU','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'];a71_0x3f35=function(){return _0x307a01;};return a71_0x3f35();}function isRelativePathSegment(_0xd1890){return _0xd1890==='.'||_0xd1890==='..';}function validatePathSegment(_0x41ef69){const _0x3661ab=a71_0x550e;if(_0x41ef69==='')throw new Error(_0x3661ab(0x160));if(_0x41ef69==='.'||_0x41ef69==='..')return;if(/[\x00-\x1F\x7F]/[_0x3661ab(0x14b)](_0x41ef69))throw new Error(_0x3661ab(0x15e)+_0x41ef69);if(_0x41ef69!==_0x41ef69[_0x3661ab(0x147)]()){}}export function validatePath(_0x2cc4dc){const _0x3da770=a71_0x550e;if(_0x2cc4dc['segments']['length']===0x0&&!_0x2cc4dc[_0x3da770(0x156)])throw new Error(_0x3da770(0x161));if(_0x2cc4dc['isAbsolute']){if(_0x2cc4dc[_0x3da770(0x14d)][0x0]==='..')throw new Error(_0x3da770(0x150));let _0x2598fd=0x0;for(const _0x5977d6 of _0x2cc4dc[_0x3da770(0x14d)]){if(_0x5977d6==='..'){if(_0x2598fd===0x0)throw new Error(_0x3da770(0x152));_0x2598fd--;}else _0x5977d6!=='.'&&_0x2598fd++;}}}function a71_0x550e(_0x5ed252,_0x4cab44){const _0x3f35a9=a71_0x3f35();return a71_0x550e=function(_0x550e59,_0x5b1aeb){_0x550e59=_0x550e59-0x144;let _0x1847c8=_0x3f35a9[_0x550e59];return _0x1847c8;},a71_0x550e(_0x5ed252,_0x4cab44);}export function joinPaths(_0x165275,_0x42b91a){const _0x49e532=a71_0x550e;if(!_0x165275||_0x165275==='/')return _0x42b91a;if(!_0x42b91a||_0x42b91a==='.')return _0x165275;if(_0x42b91a[_0x49e532(0x153)]('/'))return _0x42b91a;const _0xbff34=parsePath(_0x165275),_0x225e71=parsePath(_0x42b91a),_0x10181e=[..._0xbff34[_0x49e532(0x14d)]];for(const _0x19c2ac of _0x225e71[_0x49e532(0x14d)]){if(_0x19c2ac==='.')continue;else{if(_0x19c2ac==='..'){if(_0x10181e[_0x49e532(0x154)]===0x0)throw new Error(_0x49e532(0x144));_0x10181e[_0x49e532(0x14c)]();}else _0x10181e['push'](_0x19c2ac);}}const _0x59f825=_0x10181e[_0x49e532(0x162)]('/');return _0xbff34['raw'][_0x49e532(0x153)]('/')?'/'+_0x59f825:_0x59f825;}export function normalizePath(_0x444e33){const _0x606b7e=a71_0x550e,_0x507648=parsePath(_0x444e33),_0xb4e8ee=[];for(const _0xb6b53e of _0x507648[_0x606b7e(0x14d)]){if(_0xb6b53e==='.')continue;else{if(_0xb6b53e==='..'){if(_0xb4e8ee[_0x606b7e(0x154)]===0x0){if(_0x507648[_0x606b7e(0x156)])throw new Error(_0x606b7e(0x144));_0xb4e8ee[_0x606b7e(0x159)]('..');}else _0xb4e8ee[_0xb4e8ee['length']-0x1]==='..'?_0xb4e8ee['push']('..'):_0xb4e8ee[_0x606b7e(0x14c)]();}else _0xb4e8ee['push'](_0xb6b53e);}}if(_0xb4e8ee[_0x606b7e(0x154)]===0x0)return _0x507648['isAbsolute']?'/':'.';const _0x310a36=_0xb4e8ee[_0x606b7e(0x162)]('/');return _0x507648['raw']['startsWith']('/')?'/'+_0x310a36:_0x310a36;}export function getParentPath(_0x57508f){const _0x28df54=a71_0x550e,_0x513e5b=parsePath(_0x57508f);if(_0x513e5b[_0x28df54(0x14d)][_0x28df54(0x154)]<=0x1)return'/';const _0x495b5d=_0x513e5b[_0x28df54(0x14d)][_0x28df54(0x15f)](0x0,-0x1)[_0x28df54(0x162)]('/');return _0x513e5b[_0x28df54(0x15b)]['startsWith']('/')?'/'+_0x495b5d:_0x495b5d;}export function getBaseName(_0x29bc8b){const _0x27cf7a=a71_0x550e,_0x3a8ce6=parsePath(_0x29bc8b);return _0x3a8ce6[_0x27cf7a(0x14d)][_0x3a8ce6[_0x27cf7a(0x14d)][_0x27cf7a(0x154)]-0x1]||'';}export function isChildPath(_0x50a2ad,_0x248e13){const _0x2569c2=a71_0x550e,_0x2820cc=parsePath(_0x50a2ad),_0x5e237f=parsePath(_0x248e13);if(_0x2820cc[_0x2569c2(0x14d)]['length']<=_0x5e237f[_0x2569c2(0x14d)][_0x2569c2(0x154)])return![];for(let _0x23aab2=0x0;_0x23aab2<_0x5e237f[_0x2569c2(0x14d)][_0x2569c2(0x154)];_0x23aab2++){if(_0x2820cc['segments'][_0x23aab2]!==_0x5e237f[_0x2569c2(0x14d)][_0x23aab2])return![];}return!![];}export function splitPath(_0x288b17){const _0x15a00c=a71_0x550e,_0x24792d=parsePath(_0x288b17);if(_0x24792d['segments'][_0x15a00c(0x154)]===0x0)throw new Error(_0x15a00c(0x157));if(_0x24792d['segments'][_0x15a00c(0x154)]===0x1)return{'parent':_0x24792d[_0x15a00c(0x14d)][0x0]};return{'parent':_0x24792d[_0x15a00c(0x14d)][0x0],'child':_0x24792d['segments'][_0x15a00c(0x15f)](0x1)['join']('/')};}
@@ -1 +1 @@
1
- (function(_0x42986a,_0x3ca7aa){const _0x4852cd=a72_0xaec8,_0x3529a1=_0x42986a();while(!![]){try{const _0x2a34ec=-parseInt(_0x4852cd(0x1b5))/0x1*(-parseInt(_0x4852cd(0x1b4))/0x2)+parseInt(_0x4852cd(0x1b9))/0x3+parseInt(_0x4852cd(0x1b8))/0x4*(parseInt(_0x4852cd(0x1b7))/0x5)+-parseInt(_0x4852cd(0x1ba))/0x6*(parseInt(_0x4852cd(0x1b6))/0x7)+-parseInt(_0x4852cd(0x1bd))/0x8+-parseInt(_0x4852cd(0x1be))/0x9+parseInt(_0x4852cd(0x1c2))/0xa*(parseInt(_0x4852cd(0x1bc))/0xb);if(_0x2a34ec===_0x3ca7aa)break;else _0x3529a1['push'](_0x3529a1['shift']());}catch(_0x18695a){_0x3529a1['push'](_0x3529a1['shift']());}}}(a72_0x3e7a,0x8132b));function a72_0xaec8(_0x4e47fd,_0x5645af){const _0x3e7a9f=a72_0x3e7a();return a72_0xaec8=function(_0xaec8ec,_0x28af72){_0xaec8ec=_0xaec8ec-0x1b4;let _0x5f8947=_0x3e7a9f[_0xaec8ec];return _0x5f8947;},a72_0xaec8(_0x4e47fd,_0x5645af);}function a72_0x3e7a(){const _0x81d21b=['substring','44DQPWQe','5887272FVGERp','6081156NHxNjC','.\x20Child\x20name\x20cannot\x20be\x20empty','indexOf','Invalid\x20segment\x20reference\x20format:\x20','5863010bvUMJG','862PwWtzm','569LbYIbZ','287AlCmnq','20365RpMmHB','116mdTUVJ','688290rwDJFR','145932AKUuxw'];a72_0x3e7a=function(){return _0x81d21b;};return a72_0x3e7a();}export function parseSegmentRef(_0x8cf905){const _0x16723d=a72_0xaec8,_0x221301=_0x8cf905[_0x16723d(0x1c0)]('/');if(_0x221301===-0x1)return{'parentId':_0x8cf905};if(_0x221301===0x0)throw new Error(_0x16723d(0x1c1)+_0x8cf905+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x170075=_0x8cf905[_0x16723d(0x1bb)](0x0,_0x221301),_0x22568c=_0x8cf905[_0x16723d(0x1bb)](_0x221301+0x1);if(_0x22568c==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x8cf905+_0x16723d(0x1bf));return{'parentId':_0x170075,'childId':_0x22568c};}
1
+ (function(_0x1c3f3c,_0x5f23c8){const _0x319b24=a72_0x374c,_0x39fab3=_0x1c3f3c();while(!![]){try{const _0x45ca48=parseInt(_0x319b24(0xce))/0x1+parseInt(_0x319b24(0xca))/0x2*(-parseInt(_0x319b24(0xd6))/0x3)+parseInt(_0x319b24(0xd1))/0x4+parseInt(_0x319b24(0xd5))/0x5*(-parseInt(_0x319b24(0xd4))/0x6)+-parseInt(_0x319b24(0xcd))/0x7*(parseInt(_0x319b24(0xc9))/0x8)+parseInt(_0x319b24(0xcb))/0x9+-parseInt(_0x319b24(0xd2))/0xa;if(_0x45ca48===_0x5f23c8)break;else _0x39fab3['push'](_0x39fab3['shift']());}catch(_0x2e71c9){_0x39fab3['push'](_0x39fab3['shift']());}}}(a72_0xf817,0xbbdf2));function a72_0xf817(){const _0x469e82=['21OSCFNt','Invalid\x20segment\x20reference\x20format:\x20','3771736lEMkrX','438318dyBjEt','13525056YHcgNp','.\x20Child\x20name\x20cannot\x20be\x20empty','7nDRjBf','660821VoKBwe','.\x20Parent\x20name\x20cannot\x20be\x20empty','indexOf','6077080fpgYca','5656480dYSIyB','substring','120750fVNhpN','85yEvCJm'];a72_0xf817=function(){return _0x469e82;};return a72_0xf817();}function a72_0x374c(_0x336f63,_0x392214){const _0xf817f4=a72_0xf817();return a72_0x374c=function(_0x374cb0,_0x19c80f){_0x374cb0=_0x374cb0-0xc9;let _0x1bbcf7=_0xf817f4[_0x374cb0];return _0x1bbcf7;},a72_0x374c(_0x336f63,_0x392214);}export function parseSegmentRef(_0x459589){const _0x4cd769=a72_0x374c,_0x57dbcb=_0x459589[_0x4cd769(0xd0)]('/');if(_0x57dbcb===-0x1)return{'parentId':_0x459589};if(_0x57dbcb===0x0)throw new Error(_0x4cd769(0xd7)+_0x459589+_0x4cd769(0xcf));const _0x47c5cd=_0x459589[_0x4cd769(0xd3)](0x0,_0x57dbcb),_0xe0c30e=_0x459589[_0x4cd769(0xd3)](_0x57dbcb+0x1);if(_0xe0c30e==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x459589+_0x4cd769(0xcc));return{'parentId':_0x47c5cd,'childId':_0xe0c30e};}
@@ -1 +1 @@
1
- (function(_0x23336a,_0x2198c7){const _0x4ed415=a73_0x1331,_0x5429fd=_0x23336a();while(!![]){try{const _0x37d0af=-parseInt(_0x4ed415(0x1cf))/0x1*(parseInt(_0x4ed415(0x1d6))/0x2)+parseInt(_0x4ed415(0x1dd))/0x3+-parseInt(_0x4ed415(0x1e7))/0x4+-parseInt(_0x4ed415(0x1e5))/0x5+-parseInt(_0x4ed415(0x1d4))/0x6+-parseInt(_0x4ed415(0x1e6))/0x7*(parseInt(_0x4ed415(0x1e3))/0x8)+parseInt(_0x4ed415(0x1df))/0x9;if(_0x37d0af===_0x2198c7)break;else _0x5429fd['push'](_0x5429fd['shift']());}catch(_0x5d8b62){_0x5429fd['push'](_0x5429fd['shift']());}}}(a73_0x33ad,0x39e08));import a73_0x17f646 from'ora';function a73_0x1331(_0x263c64,_0x379cb9){const _0x33ad50=a73_0x33ad();return a73_0x1331=function(_0x1331f1,_0x49842b){_0x1331f1=_0x1331f1-0x1cf;let _0xcf74f8=_0x33ad50[_0x1331f1];return _0xcf74f8;},a73_0x1331(_0x263c64,_0x379cb9);}export function createCommandSpinner(_0x206771,_0x4d0aa7={}){const _0x2486df=a73_0x1331,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x4d0aa7;return a73_0x17f646({'text':_0x206771,'color':_0x2486df(0x1de),'isEnabled':forceEnabled||process[_0x2486df(0x1d3)][_0x2486df(0x1e1)]&&!verbose});}export async function withSpinner(_0x4f0e7a,_0x50c508,_0x157754={}){const _0x2d66b5=a73_0x1331,_0x179e59=_0x157754[_0x2d66b5(0x1d0)]??(()=>Date[_0x2d66b5(0x1da)]()),_0x4b4e93=createCommandSpinner(_0x4f0e7a,_0x157754);_0x4b4e93['start']();const _0x3ffc65=_0x179e59();try{const _0x3c15ec=await _0x50c508(),_0xbc75cb=_0x179e59()-_0x3ffc65;return _0x4b4e93[_0x2d66b5(0x1e2)](),{'data':_0x3c15ec,'elapsedMs':_0xbc75cb};}catch(_0x4b5abb){_0x4b4e93['stop']();throw _0x4b5abb;}}export async function withQuerySpinner(_0x48a35b,_0x2d0fb6,_0x3f66ff={}){const _0x579d2e=a73_0x1331,_0x17bc4d=_0x3f66ff[_0x579d2e(0x1d0)]??(()=>Date[_0x579d2e(0x1da)]()),_0x4ea952=_0x3f66ff[_0x579d2e(0x1d8)]??setInterval,_0x9e2312=createCommandSpinner(_0x48a35b,_0x3f66ff);_0x9e2312[_0x579d2e(0x1d1)]();const _0x42fa66=_0x17bc4d(),_0x1bf4ef=_0x48a35b['replace'](_0x579d2e(0x1d2),''),_0x1ecd6e={},_0x3b020b=()=>{const _0x1b27ac=_0x579d2e;if(!_0x9e2312[_0x1b27ac(0x1d7)])return;const _0x8aa457=_0x17bc4d()-_0x42fa66,_0x52de48=formatElapsed(_0x8aa457),_0x4fed12=_0x1ecd6e[_0x1b27ac(0x1e4)]??_0x1bf4ef,_0x33fec9=_0x1ecd6e[_0x1b27ac(0x1dc)]?_0x1b27ac(0x1d5)+_0x1ecd6e['jobId']+']':'',_0x2bf0b4=_0x1ecd6e['extra']?'\x20'+_0x1ecd6e[_0x1b27ac(0x1e0)]:'';_0x9e2312[_0x1b27ac(0x1d9)]=_0x4fed12+'\x20'+_0x52de48+_0x2bf0b4+_0x33fec9;},_0x1a8d3c=_0x4ea952(()=>{_0x3b020b();},0x3e8),_0x190dbb={'setPhase':_0x3bda61=>{const _0x2dbbe3=_0x579d2e;_0x1ecd6e[_0x2dbbe3(0x1e4)]=_0x3bda61,_0x3b020b();},'setJobId':_0x488b14=>{const _0x4bfe3b=_0x579d2e;_0x1ecd6e[_0x4bfe3b(0x1dc)]=_0x488b14,_0x3b020b();},'setExtra':_0x1c365f=>{const _0x4b1dc0=_0x579d2e;_0x1ecd6e[_0x4b1dc0(0x1e0)]=_0x1c365f,_0x3b020b();}};_0x3b020b();try{const _0x148ac5=await _0x2d0fb6(_0x190dbb),_0x2da31b=_0x17bc4d()-_0x42fa66;return{'data':_0x148ac5,'elapsedMs':_0x2da31b};}finally{clearInterval(_0x1a8d3c),_0x9e2312['stop']();}}function a73_0x33ad(){const _0x30deff=['stdout','2127972qGnKHx','\x20[Job\x20ID:\x20','2wsDJCV','isSpinning','intervalFactory','text','now','floor','jobId','704367gyyJPt','cyan','8721387tLWEur','extra','isTTY','stop','112lGrgYw','phase','245750HcqwWI','94038ZGiYvb','479500aremcs','toFixed','255005WzWWRF','clock','start','...'];a73_0x33ad=function(){return _0x30deff;};return a73_0x33ad();}export function formatElapsed(_0x25d87c){const _0x5bf9cf=a73_0x1331,_0x4535bb=Math[_0x5bf9cf(0x1db)](_0x25d87c/0x3e8);if(_0x4535bb<0x3c)return(_0x25d87c/0x3e8)[_0x5bf9cf(0x1e8)](0x1)+'s';const _0xc3b0a0=Math[_0x5bf9cf(0x1db)](_0x4535bb/0x3c),_0x4337e7=_0x4535bb%0x3c;if(_0xc3b0a0<0x3c)return _0xc3b0a0+'m\x20'+_0x4337e7+'s';const _0x2e3ee4=Math[_0x5bf9cf(0x1db)](_0xc3b0a0/0x3c),_0x3f78d4=_0xc3b0a0%0x3c;return _0x2e3ee4+'h\x20'+_0x3f78d4+'m';}
1
+ (function(_0x4cf9c8,_0x2566ab){const _0x2a3b01=a73_0x575a,_0x4311df=_0x4cf9c8();while(!![]){try{const _0x427468=parseInt(_0x2a3b01(0x1cd))/0x1+parseInt(_0x2a3b01(0x1dd))/0x2+parseInt(_0x2a3b01(0x1cb))/0x3*(-parseInt(_0x2a3b01(0x1d9))/0x4)+parseInt(_0x2a3b01(0x1d4))/0x5+parseInt(_0x2a3b01(0x1e2))/0x6+parseInt(_0x2a3b01(0x1ce))/0x7*(parseInt(_0x2a3b01(0x1d2))/0x8)+-parseInt(_0x2a3b01(0x1d7))/0x9*(parseInt(_0x2a3b01(0x1da))/0xa);if(_0x427468===_0x2566ab)break;else _0x4311df['push'](_0x4311df['shift']());}catch(_0xa98f71){_0x4311df['push'](_0x4311df['shift']());}}}(a73_0xce09,0x2dad7));function a73_0xce09(){const _0x3ef83f=['jobId','\x20[Job\x20ID:\x20','8SrYgan','start','713190YKYxHo','...','extra','9VsDiuJ','phase','10516IHkftT','3542270evjdNF','toFixed','cyan','330994okrfOZ','stop','isSpinning','clock','floor','687216QMlfcg','stdout','text','now','423uwfHmC','intervalFactory','223989PcKyWC','1857457Hsysbk','isTTY'];a73_0xce09=function(){return _0x3ef83f;};return a73_0xce09();}import a73_0x359fa6 from'ora';export function createCommandSpinner(_0x555a77,_0x349006={}){const _0x2ee0d6=a73_0x575a,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x349006;return a73_0x359fa6({'text':_0x555a77,'color':_0x2ee0d6(0x1dc),'isEnabled':forceEnabled||process[_0x2ee0d6(0x1e3)][_0x2ee0d6(0x1cf)]&&!verbose});}function a73_0x575a(_0x3707e7,_0x57c55a){const _0xce09b2=a73_0xce09();return a73_0x575a=function(_0x575a9d,_0x308153){_0x575a9d=_0x575a9d-0x1ca;let _0x19028d=_0xce09b2[_0x575a9d];return _0x19028d;},a73_0x575a(_0x3707e7,_0x57c55a);}export async function withSpinner(_0xf149f4,_0x4cda04,_0x1df181={}){const _0x1ecb99=a73_0x575a,_0x34d7df=_0x1df181[_0x1ecb99(0x1e0)]??(()=>Date['now']()),_0x904663=createCommandSpinner(_0xf149f4,_0x1df181);_0x904663[_0x1ecb99(0x1d3)]();const _0x2106ab=_0x34d7df();try{const _0xadf6bf=await _0x4cda04(),_0x4ca73f=_0x34d7df()-_0x2106ab;return _0x904663[_0x1ecb99(0x1de)](),{'data':_0xadf6bf,'elapsedMs':_0x4ca73f};}catch(_0x497e5c){_0x904663[_0x1ecb99(0x1de)]();throw _0x497e5c;}}export async function withQuerySpinner(_0x4d9c6c,_0x38e050,_0x459fe5={}){const _0x4dfb87=a73_0x575a,_0x169aea=_0x459fe5[_0x4dfb87(0x1e0)]??(()=>Date[_0x4dfb87(0x1ca)]()),_0x4cd76f=_0x459fe5[_0x4dfb87(0x1cc)]??setInterval,_0x2ab749=createCommandSpinner(_0x4d9c6c,_0x459fe5);_0x2ab749[_0x4dfb87(0x1d3)]();const _0xefd86c=_0x169aea(),_0x251683=_0x4d9c6c['replace'](_0x4dfb87(0x1d5),''),_0x3677fc={},_0x576432=()=>{const _0x59bd47=_0x4dfb87;if(!_0x2ab749[_0x59bd47(0x1df)])return;const _0x2a2c84=_0x169aea()-_0xefd86c,_0x183272=formatElapsed(_0x2a2c84),_0x201100=_0x3677fc[_0x59bd47(0x1d8)]??_0x251683,_0x174537=_0x3677fc[_0x59bd47(0x1d0)]?_0x59bd47(0x1d1)+_0x3677fc[_0x59bd47(0x1d0)]+']':'',_0x2cec58=_0x3677fc[_0x59bd47(0x1d6)]?'\x20'+_0x3677fc[_0x59bd47(0x1d6)]:'';_0x2ab749[_0x59bd47(0x1e4)]=_0x201100+'\x20'+_0x183272+_0x2cec58+_0x174537;},_0xb900e0=_0x4cd76f(()=>{_0x576432();},0x3e8),_0x2b5e91={'setPhase':_0x3dcfbb=>{const _0x1ef274=_0x4dfb87;_0x3677fc[_0x1ef274(0x1d8)]=_0x3dcfbb,_0x576432();},'setJobId':_0x5a5062=>{const _0x58bb30=_0x4dfb87;_0x3677fc[_0x58bb30(0x1d0)]=_0x5a5062,_0x576432();},'setExtra':_0x571d0e=>{const _0x2f1d6b=_0x4dfb87;_0x3677fc[_0x2f1d6b(0x1d6)]=_0x571d0e,_0x576432();}};_0x576432();try{const _0x1dafcb=await _0x38e050(_0x2b5e91),_0x2c878e=_0x169aea()-_0xefd86c;return{'data':_0x1dafcb,'elapsedMs':_0x2c878e};}finally{clearInterval(_0xb900e0),_0x2ab749[_0x4dfb87(0x1de)]();}}export function formatElapsed(_0x1d9bc9){const _0x5c2c6b=a73_0x575a,_0x16096a=Math['floor'](_0x1d9bc9/0x3e8);if(_0x16096a<0x3c)return(_0x1d9bc9/0x3e8)[_0x5c2c6b(0x1db)](0x1)+'s';const _0x5966b2=Math[_0x5c2c6b(0x1e1)](_0x16096a/0x3c),_0x21cb26=_0x16096a%0x3c;if(_0x5966b2<0x3c)return _0x5966b2+'m\x20'+_0x21cb26+'s';const _0x35b521=Math[_0x5c2c6b(0x1e1)](_0x5966b2/0x3c),_0x43b209=_0x5966b2%0x3c;return _0x35b521+'h\x20'+_0x43b209+'m';}
@@ -1 +1 @@
1
- (function(_0x174c67,_0x43c50a){const _0x24a842=a74_0x17f9,_0x400eb5=_0x174c67();while(!![]){try{const _0x1506de=parseInt(_0x24a842(0xeb))/0x1+parseInt(_0x24a842(0xf1))/0x2+parseInt(_0x24a842(0xf2))/0x3*(-parseInt(_0x24a842(0xfb))/0x4)+parseInt(_0x24a842(0xf7))/0x5*(-parseInt(_0x24a842(0xea))/0x6)+-parseInt(_0x24a842(0xe9))/0x7*(-parseInt(_0x24a842(0xed))/0x8)+parseInt(_0x24a842(0xf5))/0x9*(-parseInt(_0x24a842(0xf3))/0xa)+-parseInt(_0x24a842(0xe8))/0xb;if(_0x1506de===_0x43c50a)break;else _0x400eb5['push'](_0x400eb5['shift']());}catch(_0x4bf4ff){_0x400eb5['push'](_0x400eb5['shift']());}}}(a74_0x4127,0xb2ec7));import{readFileSync}from'fs';function a74_0x17f9(_0x527296,_0x40ff88){const _0x41271a=a74_0x4127();return a74_0x17f9=function(_0x17f92a,_0x126cfe){_0x17f92a=_0x17f92a-0xe7;let _0x538523=_0x41271a[_0x17f92a];return _0x538523;},a74_0x17f9(_0x527296,_0x40ff88);}export function stripSqlComments(_0x58d2cc){const _0x1927c1=a74_0x17f9;let _0x5d04da=_0x58d2cc[_0x1927c1(0xf4)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5d04da=_0x5d04da[_0x1927c1(0xf4)](/--.*$/gm,''),_0x5d04da[_0x1927c1(0xf0)]();}function isEscaped(_0x1df53d,_0x16a63a){let _0x43c368=0x0;for(let _0x3d6f80=_0x16a63a-0x1;_0x3d6f80>=0x0&&_0x1df53d[_0x3d6f80]==='\x5c';_0x3d6f80--){_0x43c368++;}return _0x43c368%0x2===0x1;}function a74_0x4127(){const _0x2053c7=['2796339vTKHni','141130GbuEbF','replace','9kCbISZ','EACCES','3167365FJiZjA','Content\x20contains\x20no\x20SQL\x20statements','push','utf-8','4MJCeoU','Permission\x20denied\x20reading\x20file\x20\x27','filter','4881613WFXeXV','6402179niOtuR','6kNZDrf','725255lKAQpd','\x27:\x20','8lvQhSU','map','length','trim','2233002qlsXXI'];a74_0x4127=function(){return _0x2053c7;};return a74_0x4127();}export function splitSqlStatements(_0x131aef){const _0x16ad0b=a74_0x17f9,_0x1e8b6d=stripSqlComments(_0x131aef);if(!_0x1e8b6d)throw new Error(_0x16ad0b(0xf8));const _0x56c09e=[];let _0x59f534='',_0x5e595a=![],_0x5e4939=![],_0x2dd442=![];for(let _0x1c2b17=0x0;_0x1c2b17<_0x131aef['length'];_0x1c2b17++){const _0x48a3ce=_0x131aef[_0x1c2b17];if(_0x48a3ce==='\x27'&&!isEscaped(_0x131aef,_0x1c2b17)&&!_0x5e4939&&!_0x2dd442)_0x5e595a=!_0x5e595a;else{if(_0x48a3ce==='\x22'&&!isEscaped(_0x131aef,_0x1c2b17)&&!_0x5e595a&&!_0x2dd442)_0x5e4939=!_0x5e4939;else _0x48a3ce==='`'&&!isEscaped(_0x131aef,_0x1c2b17)&&!_0x5e595a&&!_0x5e4939&&(_0x2dd442=!_0x2dd442);}if(_0x48a3ce===';'&&!_0x5e595a&&!_0x5e4939&&!_0x2dd442){const _0x7c3d2a=_0x59f534[_0x16ad0b(0xf0)]();_0x7c3d2a&&_0x56c09e['push'](_0x7c3d2a),_0x59f534='';}else _0x59f534+=_0x48a3ce;}const _0x266195=_0x59f534['trim']();_0x266195&&_0x56c09e[_0x16ad0b(0xf9)](_0x266195);const _0x367d23=_0x56c09e[_0x16ad0b(0xee)](_0x5aa96e=>_0x5aa96e['trim']())[_0x16ad0b(0xe7)](_0x19bd4c=>{const _0x30ffa6=stripSqlComments(_0x19bd4c);return _0x30ffa6['length']>0x0;});if(_0x367d23[_0x16ad0b(0xef)]===0x0)throw new Error(_0x16ad0b(0xf8));return _0x367d23;}export function readFileContent(_0x50622a){const _0x595273=a74_0x17f9;try{return readFileSync(_0x50622a,_0x595273(0xfa));}catch(_0x595205){const _0x49eee9=_0x595205['code'];if(_0x49eee9==='ENOENT')throw new Error('File\x20\x27'+_0x50622a+'\x27\x20not\x20found');else{if(_0x49eee9===_0x595273(0xf6))throw new Error(_0x595273(0xfc)+_0x50622a+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x50622a+_0x595273(0xec)+_0x595205['message']);}}}export function readSqlStatementsFromFile(_0x3ae652){const _0x4189fc=readFileContent(_0x3ae652);try{return splitSqlStatements(_0x4189fc);}catch(_0x30c025){throw new Error('File\x20\x27'+_0x3ae652+'\x27\x20'+_0x30c025['message']['toLowerCase']());}}
1
+ (function(_0x5ada66,_0x278ade){const _0x405455=a74_0x2efb,_0x58c694=_0x5ada66();while(!![]){try{const _0x4130dc=parseInt(_0x405455(0xe8))/0x1+-parseInt(_0x405455(0xde))/0x2+parseInt(_0x405455(0xe2))/0x3*(-parseInt(_0x405455(0xe4))/0x4)+-parseInt(_0x405455(0xf0))/0x5*(parseInt(_0x405455(0xe3))/0x6)+-parseInt(_0x405455(0xed))/0x7+parseInt(_0x405455(0xe5))/0x8+-parseInt(_0x405455(0xec))/0x9*(-parseInt(_0x405455(0xf1))/0xa);if(_0x4130dc===_0x278ade)break;else _0x58c694['push'](_0x58c694['shift']());}catch(_0x394230){_0x58c694['push'](_0x58c694['shift']());}}}(a74_0x2e06,0x564d3));function a74_0x2e06(){const _0x42bd37=['4NetfGT','1441304EWTITF','Error\x20reading\x20file\x20\x27','\x27:\x20','27292BMZwCP','code','toLowerCase','message','27558thRSJE','132762ekYRpC','filter','replace','114865qwdgrT','3970DqjQVJ','Permission\x20denied\x20reading\x20file\x20\x27','File\x20\x27','\x27\x20not\x20found','length','trim','1315108btncDu','push','utf-8','Content\x20contains\x20no\x20SQL\x20statements','558903ojtpza','54vqqdBQ'];a74_0x2e06=function(){return _0x42bd37;};return a74_0x2e06();}import{readFileSync}from'fs';export function stripSqlComments(_0x4dd4e8){const _0x5f3faf=a74_0x2efb;let _0x4c3973=_0x4dd4e8[_0x5f3faf(0xef)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4c3973=_0x4c3973['replace'](/--.*$/gm,''),_0x4c3973['trim']();}function isEscaped(_0x4b333a,_0x331803){let _0x15292b=0x0;for(let _0x1d1fd0=_0x331803-0x1;_0x1d1fd0>=0x0&&_0x4b333a[_0x1d1fd0]==='\x5c';_0x1d1fd0--){_0x15292b++;}return _0x15292b%0x2===0x1;}function a74_0x2efb(_0x5459c0,_0x143d76){const _0x2e068e=a74_0x2e06();return a74_0x2efb=function(_0x2efb16,_0xe0c841){_0x2efb16=_0x2efb16-0xde;let _0x5c9931=_0x2e068e[_0x2efb16];return _0x5c9931;},a74_0x2efb(_0x5459c0,_0x143d76);}export function splitSqlStatements(_0x3e392d){const _0x382532=a74_0x2efb,_0x5cd2b7=stripSqlComments(_0x3e392d);if(!_0x5cd2b7)throw new Error(_0x382532(0xe1));const _0x59be64=[];let _0x243a32='',_0x266bca=![],_0x391f75=![],_0x711798=![];for(let _0x2a75cc=0x0;_0x2a75cc<_0x3e392d[_0x382532(0xf5)];_0x2a75cc++){const _0x2a1fd2=_0x3e392d[_0x2a75cc];if(_0x2a1fd2==='\x27'&&!isEscaped(_0x3e392d,_0x2a75cc)&&!_0x391f75&&!_0x711798)_0x266bca=!_0x266bca;else{if(_0x2a1fd2==='\x22'&&!isEscaped(_0x3e392d,_0x2a75cc)&&!_0x266bca&&!_0x711798)_0x391f75=!_0x391f75;else _0x2a1fd2==='`'&&!isEscaped(_0x3e392d,_0x2a75cc)&&!_0x266bca&&!_0x391f75&&(_0x711798=!_0x711798);}if(_0x2a1fd2===';'&&!_0x266bca&&!_0x391f75&&!_0x711798){const _0x58fd25=_0x243a32[_0x382532(0xf6)]();_0x58fd25&&_0x59be64['push'](_0x58fd25),_0x243a32='';}else _0x243a32+=_0x2a1fd2;}const _0x1d1901=_0x243a32[_0x382532(0xf6)]();_0x1d1901&&_0x59be64[_0x382532(0xdf)](_0x1d1901);const _0x2b6ba3=_0x59be64['map'](_0x1e9008=>_0x1e9008[_0x382532(0xf6)]())[_0x382532(0xee)](_0x390795=>{const _0xa6fbba=stripSqlComments(_0x390795);return _0xa6fbba['length']>0x0;});if(_0x2b6ba3[_0x382532(0xf5)]===0x0)throw new Error(_0x382532(0xe1));return _0x2b6ba3;}export function readFileContent(_0x45861e){const _0x2aaf71=a74_0x2efb;try{return readFileSync(_0x45861e,_0x2aaf71(0xe0));}catch(_0x4824d0){const _0x52e1c1=_0x4824d0[_0x2aaf71(0xe9)];if(_0x52e1c1==='ENOENT')throw new Error(_0x2aaf71(0xf3)+_0x45861e+_0x2aaf71(0xf4));else{if(_0x52e1c1==='EACCES')throw new Error(_0x2aaf71(0xf2)+_0x45861e+'\x27');else throw new Error(_0x2aaf71(0xe6)+_0x45861e+_0x2aaf71(0xe7)+_0x4824d0[_0x2aaf71(0xeb)]);}}}export function readSqlStatementsFromFile(_0xf5d3d4){const _0x18adee=a74_0x2efb,_0x265e9b=readFileContent(_0xf5d3d4);try{return splitSqlStatements(_0x265e9b);}catch(_0x59b415){throw new Error('File\x20\x27'+_0xf5d3d4+'\x27\x20'+_0x59b415[_0x18adee(0xeb)][_0x18adee(0xea)]());}}
@@ -1 +1 @@
1
- function a75_0x184a(_0x4ca88a,_0x15608e){const _0x3bd6d4=a75_0x3bd6();return a75_0x184a=function(_0x184ada,_0x4df810){_0x184ada=_0x184ada-0x10e;let _0xeed9e6=_0x3bd6d4[_0x184ada];return _0xeed9e6;},a75_0x184a(_0x4ca88a,_0x15608e);}(function(_0x5ac642,_0x3382b6){const _0x54ce63=a75_0x184a,_0xb4bfc9=_0x5ac642();while(!![]){try{const _0x17c271=parseInt(_0x54ce63(0x110))/0x1+parseInt(_0x54ce63(0x119))/0x2*(parseInt(_0x54ce63(0x122))/0x3)+parseInt(_0x54ce63(0x112))/0x4*(-parseInt(_0x54ce63(0x113))/0x5)+parseInt(_0x54ce63(0x118))/0x6+parseInt(_0x54ce63(0x11d))/0x7+parseInt(_0x54ce63(0x10f))/0x8+parseInt(_0x54ce63(0x111))/0x9*(-parseInt(_0x54ce63(0x11f))/0xa);if(_0x17c271===_0x3382b6)break;else _0xb4bfc9['push'](_0xb4bfc9['shift']());}catch(_0x544851){_0xb4bfc9['push'](_0xb4bfc9['shift']());}}}(a75_0x3bd6,0x62bc9));function a75_0x3bd6(){const _0x2a1de5=['pop','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','split','indexOf','2109828MiIarp','744878BnJTCe','read','startsWith','Response\x20body\x20is\x20null','3543169dCzSoa','parse','60uKeMhC','event','trim','3otpZHy','releaseLock','data','1819120ltDbed','39157XyuLOO','1246869LtNgkf','64SAOKsb','81600PGJBOv'];a75_0x3bd6=function(){return _0x2a1de5;};return a75_0x3bd6();}export async function*parseSSEStream(_0xb19995){const _0x2cc198=a75_0x184a;if(!_0xb19995['body'])throw new Error(_0x2cc198(0x11c));const _0x5c6d41=_0xb19995['body']['getReader'](),_0x42d403=new TextDecoder();let _0x3a4db8='',_0x2c5b1b={};try{while(!![]){const {done:_0x30cf3e,value:_0x309973}=await _0x5c6d41[_0x2cc198(0x11a)]();if(_0x30cf3e){_0x2c5b1b['data']&&(yield parseSSEData(_0x2c5b1b[_0x2cc198(0x10e)]));break;}_0x3a4db8+=_0x42d403['decode'](_0x309973,{'stream':!![]});const _0x41dfe9=_0x3a4db8[_0x2cc198(0x116)]('\x0a');_0x3a4db8=_0x41dfe9[_0x2cc198(0x114)]()||'';for(const _0x4f1cd6 of _0x41dfe9){if(_0x4f1cd6[_0x2cc198(0x121)]()===''){_0x2c5b1b[_0x2cc198(0x10e)]&&(yield parseSSEData(_0x2c5b1b[_0x2cc198(0x10e)]),_0x2c5b1b={});continue;}if(_0x4f1cd6[_0x2cc198(0x11b)](':'))continue;const _0x501b6b=_0x4f1cd6[_0x2cc198(0x117)](':');if(_0x501b6b===-0x1)continue;const _0x4f9c38=_0x4f1cd6['slice'](0x0,_0x501b6b);let _0x55fff9=_0x4f1cd6['slice'](_0x501b6b+0x1);_0x55fff9[_0x2cc198(0x11b)]('\x20')&&(_0x55fff9=_0x55fff9['slice'](0x1));switch(_0x4f9c38){case _0x2cc198(0x120):_0x2c5b1b[_0x2cc198(0x120)]=_0x55fff9;break;case _0x2cc198(0x10e):_0x2c5b1b[_0x2cc198(0x10e)]=_0x2c5b1b[_0x2cc198(0x10e)]?_0x2c5b1b['data']+'\x0a'+_0x55fff9:_0x55fff9;break;case'id':_0x2c5b1b['id']=_0x55fff9;break;}}}}finally{_0x5c6d41[_0x2cc198(0x123)]();}}function parseSSEData(_0x1a2fc5){const _0x166eeb=a75_0x184a;try{return JSON[_0x166eeb(0x11e)](_0x1a2fc5);}catch(_0x5cdd55){throw new Error(_0x166eeb(0x115)+_0x1a2fc5,{'cause':_0x5cdd55});}}
1
+ (function(_0x272143,_0x45b836){const _0x5238b1=a75_0x3be5,_0x345cca=_0x272143();while(!![]){try{const _0x9a5e36=-parseInt(_0x5238b1(0x1a4))/0x1+parseInt(_0x5238b1(0x1ad))/0x2+parseInt(_0x5238b1(0x1a6))/0x3+parseInt(_0x5238b1(0x1aa))/0x4+parseInt(_0x5238b1(0x1b4))/0x5+parseInt(_0x5238b1(0x1b1))/0x6+parseInt(_0x5238b1(0x1b8))/0x7*(-parseInt(_0x5238b1(0x1bb))/0x8);if(_0x9a5e36===_0x45b836)break;else _0x345cca['push'](_0x345cca['shift']());}catch(_0x53e141){_0x345cca['push'](_0x345cca['shift']());}}}(a75_0x37b4,0xac3b1));export async function*parseSSEStream(_0x4cbca6){const _0x20e723=a75_0x3be5;if(!_0x4cbca6['body'])throw new Error(_0x20e723(0x1a8));const _0x1f29e5=_0x4cbca6[_0x20e723(0x1b7)][_0x20e723(0x1ba)](),_0x4f24d1=new TextDecoder();let _0x56fa2f='',_0x200bf4={};try{while(!![]){const {done:_0x372e09,value:_0x2e6768}=await _0x1f29e5[_0x20e723(0x1b0)]();if(_0x372e09){_0x200bf4[_0x20e723(0x1a9)]&&(yield parseSSEData(_0x200bf4[_0x20e723(0x1a9)]));break;}_0x56fa2f+=_0x4f24d1[_0x20e723(0x1b6)](_0x2e6768,{'stream':!![]});const _0x5b9d16=_0x56fa2f[_0x20e723(0x1ab)]('\x0a');_0x56fa2f=_0x5b9d16[_0x20e723(0x1af)]()||'';for(const _0x293698 of _0x5b9d16){if(_0x293698[_0x20e723(0x1b2)]()===''){_0x200bf4['data']&&(yield parseSSEData(_0x200bf4[_0x20e723(0x1a9)]),_0x200bf4={});continue;}if(_0x293698[_0x20e723(0x1ac)](':'))continue;const _0x3b1f4c=_0x293698[_0x20e723(0x1a5)](':');if(_0x3b1f4c===-0x1)continue;const _0x4e65ce=_0x293698[_0x20e723(0x1b5)](0x0,_0x3b1f4c);let _0xc6c44b=_0x293698[_0x20e723(0x1b5)](_0x3b1f4c+0x1);_0xc6c44b[_0x20e723(0x1ac)]('\x20')&&(_0xc6c44b=_0xc6c44b[_0x20e723(0x1b5)](0x1));switch(_0x4e65ce){case _0x20e723(0x1a7):_0x200bf4[_0x20e723(0x1a7)]=_0xc6c44b;break;case'data':_0x200bf4[_0x20e723(0x1a9)]=_0x200bf4[_0x20e723(0x1a9)]?_0x200bf4[_0x20e723(0x1a9)]+'\x0a'+_0xc6c44b:_0xc6c44b;break;case'id':_0x200bf4['id']=_0xc6c44b;break;}}}}finally{_0x1f29e5[_0x20e723(0x1b3)]();}}function a75_0x3be5(_0x210b94,_0x115fde){const _0x37b40a=a75_0x37b4();return a75_0x3be5=function(_0x3be5c6,_0x384234){_0x3be5c6=_0x3be5c6-0x1a4;let _0x479eb6=_0x37b40a[_0x3be5c6];return _0x479eb6;},a75_0x3be5(_0x210b94,_0x115fde);}function parseSSEData(_0x24faca){const _0x7a577a=a75_0x3be5;try{return JSON[_0x7a577a(0x1ae)](_0x24faca);}catch(_0x1b37da){throw new Error(_0x7a577a(0x1b9)+_0x24faca,{'cause':_0x1b37da});}}function a75_0x37b4(){const _0x36bb10=['data','2722488MjYRIn','split','startsWith','1237632wyDDBp','parse','pop','read','3875808GjizPe','trim','releaseLock','3044825cpvhjz','slice','decode','body','9237221gVPwuA','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','getReader','16SBKoqP','506809lEKrTA','indexOf','3891303XCtdyl','event','Response\x20body\x20is\x20null'];a75_0x37b4=function(){return _0x36bb10;};return a75_0x37b4();}
@@ -1 +1 @@
1
- (function(_0x19d9ca,_0x22811f){const _0x2a62c6=a76_0x4a05,_0x43adaa=_0x19d9ca();while(!![]){try{const _0x338ae5=parseInt(_0x2a62c6(0x93))/0x1+-parseInt(_0x2a62c6(0x88))/0x2*(-parseInt(_0x2a62c6(0x89))/0x3)+parseInt(_0x2a62c6(0x8a))/0x4*(parseInt(_0x2a62c6(0x86))/0x5)+-parseInt(_0x2a62c6(0x7d))/0x6+parseInt(_0x2a62c6(0x92))/0x7+parseInt(_0x2a62c6(0x91))/0x8+parseInt(_0x2a62c6(0x83))/0x9*(-parseInt(_0x2a62c6(0x95))/0xa);if(_0x338ae5===_0x22811f)break;else _0x43adaa['push'](_0x43adaa['shift']());}catch(_0x2ad139){_0x43adaa['push'](_0x43adaa['shift']());}}}(a76_0x3726,0x1f46d));import a76_0x29fbff from'string-width';export function stringWidth(_0x14cde5){return a76_0x29fbff(_0x14cde5);}export function padEnd(_0x19fa08,_0x3a306f){const _0x5e3574=a76_0x4a05,_0x30e356=stringWidth(_0x19fa08);if(_0x30e356>=_0x3a306f)return _0x19fa08;return _0x19fa08+'\x20'[_0x5e3574(0x94)](_0x3a306f-_0x30e356);}export function padStart(_0x1ae3cb,_0x1f2274){const _0x44f554=a76_0x4a05,_0x2b50da=stringWidth(_0x1ae3cb);if(_0x2b50da>=_0x1f2274)return _0x1ae3cb;return'\x20'[_0x44f554(0x94)](_0x1f2274-_0x2b50da)+_0x1ae3cb;}export function centerAlign(_0x29a2c5,_0x3ba9a9){const _0x26781c=a76_0x4a05,_0x1ebb67=stringWidth(_0x29a2c5);if(_0x1ebb67>_0x3ba9a9){if(_0x3ba9a9<=0x1)return'…'[_0x26781c(0x7e)](0x0,_0x3ba9a9);let _0xaf24d1=_0x29a2c5;while(stringWidth(_0xaf24d1+'…')>_0x3ba9a9){_0xaf24d1=_0xaf24d1[_0x26781c(0x84)](0x0,-0x1);}return _0xaf24d1+'…';}if(_0x1ebb67===_0x3ba9a9)return _0x29a2c5;const _0x1ae537=_0x3ba9a9-_0x1ebb67,_0xfffdf2=Math['floor'](_0x1ae537/0x2),_0x38bfb3=_0x1ae537-_0xfffdf2;return'\x20'[_0x26781c(0x94)](_0xfffdf2)+_0x29a2c5+'\x20'[_0x26781c(0x94)](_0x38bfb3);}export function escapeStringLiteral(_0x2cbb3c){const _0x3f180f=a76_0x4a05;if(!_0x2cbb3c||_0x2cbb3c[_0x3f180f(0x82)]()['length']===0x0)throw new Error(_0x3f180f(0x8f));const _0x1baff3=_0x2cbb3c[_0x3f180f(0x8b)](/'/g,'\x27\x27');return'\x27'+_0x1baff3+'\x27';}function a76_0x3726(){const _0x4ff4eb=['1358100MtonEI','substring','padStart','env','USERNAME','trim','508527zgYAbp','slice','\x5c$&','65wmCadZ','unknown','14yqjqQH','4041Vbexkd','42032SHodBT','replace','floor','length','toString','Cannot\x20escape\x20empty\x20string\x20literal','test','1001464BUBwFa','1264592tOoGrp','15593niNtNF','repeat','20OHijeq'];a76_0x3726=function(){return _0x4ff4eb;};return a76_0x3726();}export function globToLike(_0x28a0e7){const _0x4df83d=a76_0x4a05;let _0x370eaf=_0x28a0e7[_0x4df83d(0x8b)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x370eaf=_0x370eaf[_0x4df83d(0x8b)](/\*/g,'%')[_0x4df83d(0x8b)](/\?/g,'_'),_0x370eaf;}function a76_0x4a05(_0x16a0cc,_0x3e0b1c){const _0x37269e=a76_0x3726();return a76_0x4a05=function(_0x4a05c1,_0x41f783){_0x4a05c1=_0x4a05c1-0x7d;let _0x460a5c=_0x37269e[_0x4a05c1];return _0x460a5c;},a76_0x4a05(_0x16a0cc,_0x3e0b1c);}export function buildLikePattern(_0x4acc2b){const _0x3cbd95=a76_0x4a05;if(!_0x4acc2b||_0x4acc2b[_0x3cbd95(0x82)]()[_0x3cbd95(0x8d)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x116cf7=globToLike(_0x4acc2b),_0x428d2d=_0x116cf7[_0x3cbd95(0x8b)](/'/g,'\x27\x27');return'\x27'+_0x428d2d+'\x27';}export function matchGlobPattern(_0x18d410,_0x5e0548){const _0x3d415c=a76_0x4a05,_0x28a61e=_0x5e0548[_0x3d415c(0x8b)](/[.+^${}()|[\]\\]/g,_0x3d415c(0x85))[_0x3d415c(0x8b)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x364f9e=new RegExp('^'+_0x28a61e+'$');return _0x364f9e[_0x3d415c(0x90)](_0x18d410);}export function getSanitizedUsername(){const _0x2e9897=a76_0x4a05,_0x3ba47d=process[_0x2e9897(0x80)]['USER']||process[_0x2e9897(0x80)][_0x2e9897(0x81)]||_0x2e9897(0x87);return _0x3ba47d[_0x2e9897(0x8b)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x31cce0=a76_0x4a05,_0x524cf2=Math[_0x31cce0(0x8c)](Math['random']()*0xfffff);return _0x524cf2[_0x31cce0(0x8e)](0x10)[_0x31cce0(0x7f)](0x5,'0');}
1
+ (function(_0x4bca5b,_0x27bb97){const _0x10275a=a76_0x3a8e,_0x1f4c35=_0x4bca5b();while(!![]){try{const _0x3cb005=parseInt(_0x10275a(0xa0))/0x1+parseInt(_0x10275a(0x94))/0x2+-parseInt(_0x10275a(0x95))/0x3+parseInt(_0x10275a(0x9f))/0x4+-parseInt(_0x10275a(0x93))/0x5*(-parseInt(_0x10275a(0x8f))/0x6)+parseInt(_0x10275a(0x9a))/0x7*(parseInt(_0x10275a(0x99))/0x8)+-parseInt(_0x10275a(0x9d))/0x9;if(_0x3cb005===_0x27bb97)break;else _0x1f4c35['push'](_0x1f4c35['shift']());}catch(_0x481dd0){_0x1f4c35['push'](_0x1f4c35['shift']());}}}(a76_0x117e,0xa6589));function a76_0x117e(){const _0x1ee130=['4339316aDPAlF','1035046WWlVrx','unknown','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','replace','\x5c$&','env','floor','6199452prpgtR','toLowerCase','length','slice','5drTOzh','1452578QucLxf','153885yshMaG','repeat','random','trim','18856lGqCsx','1407qbZASG','USERNAME','test','32584635VSMbAi','toString'];a76_0x117e=function(){return _0x1ee130;};return a76_0x117e();}import a76_0x4bbc14 from'string-width';export function stringWidth(_0x4558a1){return a76_0x4bbc14(_0x4558a1);}export function padEnd(_0x4619eb,_0x185509){const _0x5e53a4=a76_0x3a8e,_0x6c1fe5=stringWidth(_0x4619eb);if(_0x6c1fe5>=_0x185509)return _0x4619eb;return _0x4619eb+'\x20'[_0x5e53a4(0x96)](_0x185509-_0x6c1fe5);}export function padStart(_0x460cfe,_0x2c61cc){const _0x3b75df=a76_0x3a8e,_0x46674d=stringWidth(_0x460cfe);if(_0x46674d>=_0x2c61cc)return _0x460cfe;return'\x20'[_0x3b75df(0x96)](_0x2c61cc-_0x46674d)+_0x460cfe;}export function centerAlign(_0x411a1b,_0xd64fb2){const _0x25d083=a76_0x3a8e,_0x301abe=stringWidth(_0x411a1b);if(_0x301abe>_0xd64fb2){if(_0xd64fb2<=0x1)return'…'['substring'](0x0,_0xd64fb2);let _0x317428=_0x411a1b;while(stringWidth(_0x317428+'…')>_0xd64fb2){_0x317428=_0x317428[_0x25d083(0x92)](0x0,-0x1);}return _0x317428+'…';}if(_0x301abe===_0xd64fb2)return _0x411a1b;const _0x5a6acb=_0xd64fb2-_0x301abe,_0x1ecc6e=Math['floor'](_0x5a6acb/0x2),_0x4fd157=_0x5a6acb-_0x1ecc6e;return'\x20'[_0x25d083(0x96)](_0x1ecc6e)+_0x411a1b+'\x20'[_0x25d083(0x96)](_0x4fd157);}function a76_0x3a8e(_0x54240d,_0x214ec5){const _0x117e47=a76_0x117e();return a76_0x3a8e=function(_0x3a8e83,_0x906506){_0x3a8e83=_0x3a8e83-0x8a;let _0x42ca4b=_0x117e47[_0x3a8e83];return _0x42ca4b;},a76_0x3a8e(_0x54240d,_0x214ec5);}export function escapeStringLiteral(_0x284af2){const _0x274522=a76_0x3a8e;if(!_0x284af2||_0x284af2['trim']()[_0x274522(0x91)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2898d0=_0x284af2[_0x274522(0x8b)](/'/g,'\x27\x27');return'\x27'+_0x2898d0+'\x27';}export function globToLike(_0x7b4a90){const _0x4681ef=a76_0x3a8e;let _0x248f87=_0x7b4a90[_0x4681ef(0x8b)](/\\/g,'\x5c\x5c')[_0x4681ef(0x8b)](/%/g,'\x5c%')[_0x4681ef(0x8b)](/_/g,'\x5c_');return _0x248f87=_0x248f87['replace'](/\*/g,'%')[_0x4681ef(0x8b)](/\?/g,'_'),_0x248f87;}export function buildLikePattern(_0x43c7f4){const _0x193eaa=a76_0x3a8e;if(!_0x43c7f4||_0x43c7f4[_0x193eaa(0x98)]()[_0x193eaa(0x91)]===0x0)throw new Error(_0x193eaa(0x8a));const _0x3883c0=globToLike(_0x43c7f4),_0x106e34=_0x3883c0[_0x193eaa(0x8b)](/'/g,'\x27\x27');return'\x27'+_0x106e34+'\x27';}export function matchGlobPattern(_0x367c87,_0x3c0129){const _0x4e3fee=a76_0x3a8e,_0x57fa4b=_0x3c0129[_0x4e3fee(0x8b)](/[.+^${}()|[\]\\]/g,_0x4e3fee(0x8c))[_0x4e3fee(0x8b)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x507e41=new RegExp('^'+_0x57fa4b+'$');return _0x507e41[_0x4e3fee(0x9c)](_0x367c87);}export function getSanitizedUsername(){const _0x515547=a76_0x3a8e,_0x4c7e84=process[_0x515547(0x8d)]['USER']||process['env'][_0x515547(0x9b)]||_0x515547(0xa1);return _0x4c7e84[_0x515547(0x8b)](/[^a-zA-Z0-9]/g,'')[_0x515547(0x90)]();}export function generateRandomHex(){const _0x1fcb3c=a76_0x3a8e,_0x87a4d=Math[_0x1fcb3c(0x8e)](Math[_0x1fcb3c(0x97)]()*0xfffff);return _0x87a4d[_0x1fcb3c(0x9e)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x38d237,_0x10ad40){const _0x4e7fdb=a77_0x27c1,_0x2ebc2b=_0x38d237();while(!![]){try{const _0x178f6b=parseInt(_0x4e7fdb(0xd5))/0x1+parseInt(_0x4e7fdb(0xd6))/0x2+parseInt(_0x4e7fdb(0xdc))/0x3*(parseInt(_0x4e7fdb(0xd1))/0x4)+parseInt(_0x4e7fdb(0xda))/0x5+parseInt(_0x4e7fdb(0xc9))/0x6*(parseInt(_0x4e7fdb(0xd2))/0x7)+-parseInt(_0x4e7fdb(0xce))/0x8*(parseInt(_0x4e7fdb(0xe0))/0x9)+-parseInt(_0x4e7fdb(0xdd))/0xa;if(_0x178f6b===_0x10ad40)break;else _0x2ebc2b['push'](_0x2ebc2b['shift']());}catch(_0xbd8948){_0x2ebc2b['push'](_0x2ebc2b['shift']());}}}(a77_0xcb33,0x83972));function hasWildcard(_0x34ec7e){const _0x2cf1e3=a77_0x27c1;return _0x34ec7e[_0x2cf1e3(0xca)]('*')||_0x34ec7e['includes']('?');}export function parseTableReference(_0x45331e){const _0x44065d=a77_0x27c1;if(!_0x45331e||_0x45331e[_0x44065d(0xc8)]()[_0x44065d(0xd7)]===0x0)throw new Error(_0x44065d(0xd9));const _0xa5b1fd=_0x45331e[_0x44065d(0xc8)](),_0x5772db={'original':_0xa5b1fd},_0x3e3259=_0xa5b1fd[_0x44065d(0xdf)]('.');if(_0x3e3259['length']===0x1){const _0x5413a7=_0x3e3259[0x0];if(!_0x5413a7)throw new Error(_0x44065d(0xd0));_0x5772db[_0x44065d(0xdb)]=_0x5413a7;}else{if(_0x3e3259[_0x44065d(0xd7)]===0x2){const [_0x2cd12f,_0x33eefa]=_0x3e3259;if(!_0x2cd12f)throw new Error(_0x44065d(0xcf));if(!_0x33eefa)throw new Error(_0x44065d(0xde));_0x5772db[_0x44065d(0xcd)]=_0x2cd12f,_0x5772db['table']=_0x33eefa;}else{if(_0x3e3259[_0x44065d(0xd7)]===0x3){const [_0x1d18f9,_0xbba448,_0x182879]=_0x3e3259;if(!_0x1d18f9||!_0xbba448||!_0x182879)throw new Error(_0x44065d(0xd3));_0x5772db[_0x44065d(0xd4)]=_0x1d18f9,_0x5772db[_0x44065d(0xcd)]=_0xbba448,_0x5772db['table']=_0x182879;}else throw new Error(_0x44065d(0xcc));}}return _0x5772db;}export function formatTableReference(_0xeb75a0){const _0x5f6684=a77_0x27c1,_0x12e357=[];return _0xeb75a0[_0x5f6684(0xd4)]&&_0x12e357[_0x5f6684(0xcb)](_0xeb75a0[_0x5f6684(0xd4)]),_0xeb75a0['database']&&_0x12e357[_0x5f6684(0xcb)](_0xeb75a0['database']),_0xeb75a0[_0x5f6684(0xdb)]&&_0x12e357[_0x5f6684(0xcb)](_0xeb75a0[_0x5f6684(0xdb)]),_0x12e357[_0x5f6684(0xd8)]('.');}function a77_0x27c1(_0x56f3aa,_0x2482fe){const _0xcb3347=a77_0xcb33();return a77_0x27c1=function(_0x27c18b,_0x299de5){_0x27c18b=_0x27c18b-0xc8;let _0x5befa4=_0xcb3347[_0x27c18b];return _0x5befa4;},a77_0x27c1(_0x56f3aa,_0x2482fe);}export function validateTableListReference(_0x2dce97){return undefined;}export function validateTableDescribeReference(_0x212133){const _0x3592cb=a77_0x27c1;if(!_0x212133[_0x3592cb(0xdb)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x212133['database']&&hasWildcard(_0x212133[_0x3592cb(0xcd)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x212133[_0x3592cb(0xdb)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}function a77_0xcb33(){const _0x35b2b9=['132839ageMdj','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','catalog','841479LWutUm','76890XFLtkf','length','join','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','20680uNAFHB','table','86649THjrQH','656040UasQvt','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','split','50274AOIlvg','trim','102uXWwyo','includes','push','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','database','1400iyCKqZ','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','52ESykke'];a77_0xcb33=function(){return _0x35b2b9;};return a77_0xcb33();}
1
+ (function(_0x42930a,_0x1317a9){const _0x74b403=a77_0x3b9c,_0x50af77=_0x42930a();while(!![]){try{const _0x4c2675=parseInt(_0x74b403(0xcd))/0x1+parseInt(_0x74b403(0xd1))/0x2*(-parseInt(_0x74b403(0xbe))/0x3)+-parseInt(_0x74b403(0xd2))/0x4*(parseInt(_0x74b403(0xd0))/0x5)+parseInt(_0x74b403(0xcb))/0x6+-parseInt(_0x74b403(0xc7))/0x7+-parseInt(_0x74b403(0xc4))/0x8+parseInt(_0x74b403(0xc2))/0x9;if(_0x4c2675===_0x1317a9)break;else _0x50af77['push'](_0x50af77['shift']());}catch(_0x53adf7){_0x50af77['push'](_0x50af77['shift']());}}}(a77_0x4eea,0x96c83));function hasWildcard(_0x5d6473){const _0x3883e7=a77_0x3b9c;return _0x5d6473[_0x3883e7(0xc8)]('*')||_0x5d6473[_0x3883e7(0xc8)]('?');}export function parseTableReference(_0x462940){const _0x3b27c2=a77_0x3b9c;if(!_0x462940||_0x462940[_0x3b27c2(0xd4)]()[_0x3b27c2(0xc9)]===0x0)throw new Error(_0x3b27c2(0xcc));const _0x552c9e=_0x462940[_0x3b27c2(0xd4)](),_0x493d5b={'original':_0x552c9e},_0x1a468b=_0x552c9e['split']('.');if(_0x1a468b[_0x3b27c2(0xc9)]===0x1){const _0xa31d3b=_0x1a468b[0x0];if(!_0xa31d3b)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x493d5b['table']=_0xa31d3b;}else{if(_0x1a468b[_0x3b27c2(0xc9)]===0x2){const [_0x505fc2,_0x47594a]=_0x1a468b;if(!_0x505fc2)throw new Error(_0x3b27c2(0xc5));if(!_0x47594a)throw new Error(_0x3b27c2(0xcf));_0x493d5b[_0x3b27c2(0xc6)]=_0x505fc2,_0x493d5b[_0x3b27c2(0xbc)]=_0x47594a;}else{if(_0x1a468b[_0x3b27c2(0xc9)]===0x3){const [_0x3e9440,_0x1779b2,_0x25edd8]=_0x1a468b;if(!_0x3e9440||!_0x1779b2||!_0x25edd8)throw new Error(_0x3b27c2(0xc1));_0x493d5b[_0x3b27c2(0xce)]=_0x3e9440,_0x493d5b['database']=_0x1779b2,_0x493d5b[_0x3b27c2(0xbc)]=_0x25edd8;}else throw new Error(_0x3b27c2(0xbf));}}return _0x493d5b;}function a77_0x4eea(){const _0x4816c4=['4445105OczTGX','includes','length','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','5906340CfUYic','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','630414jbuLWe','catalog','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','355VodEmW','120206BYLcsO','34284nmWnTx','push','trim','table','join','51quRcIL','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','14576472OFnrov','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','2812016mISbbZ','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','database'];a77_0x4eea=function(){return _0x4816c4;};return a77_0x4eea();}export function formatTableReference(_0x1926d4){const _0x4fcf8f=a77_0x3b9c,_0x37df3d=[];return _0x1926d4[_0x4fcf8f(0xce)]&&_0x37df3d['push'](_0x1926d4['catalog']),_0x1926d4[_0x4fcf8f(0xc6)]&&_0x37df3d['push'](_0x1926d4[_0x4fcf8f(0xc6)]),_0x1926d4[_0x4fcf8f(0xbc)]&&_0x37df3d[_0x4fcf8f(0xd3)](_0x1926d4['table']),_0x37df3d[_0x4fcf8f(0xbd)]('.');}function a77_0x3b9c(_0xcc7b4f,_0x493d7f){const _0x4eeac5=a77_0x4eea();return a77_0x3b9c=function(_0x3b9c24,_0x49aa9e){_0x3b9c24=_0x3b9c24-0xbc;let _0x3e8e2b=_0x4eeac5[_0x3b9c24];return _0x3e8e2b;},a77_0x3b9c(_0xcc7b4f,_0x493d7f);}export function validateTableListReference(_0x1a3e89){return undefined;}export function validateTableDescribeReference(_0x5e6306){const _0x21331c=a77_0x3b9c;if(!_0x5e6306[_0x21331c(0xbc)])return _0x21331c(0xc3);if(_0x5e6306[_0x21331c(0xc6)]&&hasWildcard(_0x5e6306[_0x21331c(0xc6)]))return _0x21331c(0xca);if(hasWildcard(_0x5e6306[_0x21331c(0xbc)]))return _0x21331c(0xc0);return undefined;}
@@ -1 +1 @@
1
- (function(_0x54a88e,_0x1ed5ef){const _0x2d6111=a78_0xea0e,_0x13510c=_0x54a88e();while(!![]){try{const _0x13615d=parseInt(_0x2d6111(0x185))/0x1*(-parseInt(_0x2d6111(0x17b))/0x2)+parseInt(_0x2d6111(0x16f))/0x3*(-parseInt(_0x2d6111(0x16d))/0x4)+-parseInt(_0x2d6111(0x182))/0x5*(-parseInt(_0x2d6111(0x176))/0x6)+-parseInt(_0x2d6111(0x178))/0x7+parseInt(_0x2d6111(0x186))/0x8+-parseInt(_0x2d6111(0x18a))/0x9+parseInt(_0x2d6111(0x174))/0xa;if(_0x13615d===_0x1ed5ef)break;else _0x13510c['push'](_0x13510c['shift']());}catch(_0x16ac67){_0x13510c['push'](_0x13510c['shift']());}}}(a78_0x4659,0xd0f73));import{formatRows}from'./formatters.js';import a78_0x94c717 from'chalk';function a78_0x4659(){const _0x3a0e8c=['push','map','indent','population','showIcons','segment','15IGlnRY','🎯\x20','type','3bJEaCt','11667216cmxFak','icon','children','join','13667868vxqZOV','dim','metadata','showTreeLines','📁\x20','localeCompare','4PHkBpx','length','3298899rVGswn','\x20folder','segmentCount','\x20\x20\x20\x20','name','24356360JZeUip','folderCount','2302332pWqnwi','├──\x20','4096603zqWVnG','folder','showMetadata','657178FSrUgn'];a78_0x4659=function(){return _0x3a0e8c;};return a78_0x4659();}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x9cdcea,_0x3da41f={},_0x12a21c=0x0,_0x40c7cd=''){const _0x1a42a9=a78_0xea0e,_0x68ce58={...DEFAULT_OPTIONS,..._0x3da41f},_0x177bca=[],_0x1698ea=[..._0x9cdcea]['sort']((_0x35bcd3,_0x1b38e6)=>_0x35bcd3[_0x1a42a9(0x173)]['localeCompare'](_0x1b38e6[_0x1a42a9(0x173)]));for(let _0x1e53b8=0x0;_0x1e53b8<_0x1698ea[_0x1a42a9(0x16e)];_0x1e53b8++){const _0x60bce5=_0x1698ea[_0x1e53b8],_0x576c1a=_0x1e53b8===_0x1698ea['length']-0x1;let _0x3a550b='';_0x12a21c>0x0&&(_0x3a550b+=_0x40c7cd);_0x68ce58[_0x1a42a9(0x16a)]&&_0x12a21c>0x0&&(_0x3a550b+=a78_0x94c717['dim'](_0x576c1a?'└──\x20':_0x1a42a9(0x177)));_0x68ce58[_0x1a42a9(0x180)]&&(_0x3a550b+=_0x60bce5[_0x1a42a9(0x184)]===_0x1a42a9(0x179)?_0x1a42a9(0x16b):_0x1a42a9(0x183));_0x3a550b+=_0x60bce5[_0x1a42a9(0x173)];if(_0x68ce58[_0x1a42a9(0x17a)]){if(_0x60bce5[_0x1a42a9(0x184)]===_0x1a42a9(0x179)){const _0x1df672=[];_0x60bce5[_0x1a42a9(0x169)]['segmentCount']&&_0x1df672[_0x1a42a9(0x17c)](_0x60bce5['metadata'][_0x1a42a9(0x171)]+'\x20segment'+(_0x60bce5[_0x1a42a9(0x169)][_0x1a42a9(0x171)]!==0x1?'s':'')),_0x60bce5[_0x1a42a9(0x169)][_0x1a42a9(0x175)]&&_0x1df672[_0x1a42a9(0x17c)](_0x60bce5[_0x1a42a9(0x169)][_0x1a42a9(0x175)]+_0x1a42a9(0x170)+(_0x60bce5[_0x1a42a9(0x169)][_0x1a42a9(0x175)]!==0x1?'s':'')),_0x1df672[_0x1a42a9(0x16e)]>0x0&&(_0x3a550b+=a78_0x94c717['dim']('\x20('+_0x1df672[_0x1a42a9(0x189)](',\x20')+')'));}else _0x60bce5[_0x1a42a9(0x184)]===_0x1a42a9(0x181)&&_0x60bce5['population']!==undefined&&(_0x3a550b+=a78_0x94c717['dim']('\x20('+formatRows(_0x60bce5['population'])+')'));}_0x177bca['push'](_0x3a550b);if(_0x60bce5['children']&&_0x60bce5[_0x1a42a9(0x188)][_0x1a42a9(0x16e)]>0x0){let _0x39a840;if(_0x12a21c===0x0)_0x39a840='';else _0x68ce58['showTreeLines']?_0x39a840=_0x40c7cd+(_0x576c1a?_0x1a42a9(0x172):a78_0x94c717['dim']('│')+'\x20\x20\x20'):_0x39a840=_0x40c7cd+_0x68ce58[_0x1a42a9(0x17e)];const _0x42a626=formatTree(_0x60bce5['children'],_0x68ce58,_0x12a21c+0x1,_0x39a840);_0x177bca['push'](_0x42a626);}}return _0x177bca[_0x1a42a9(0x189)]('\x0a');}function a78_0xea0e(_0x30a10f,_0x15b5c3){const _0x46592a=a78_0x4659();return a78_0xea0e=function(_0xea0e8d,_0xd388df){_0xea0e8d=_0xea0e8d-0x168;let _0x4e00b2=_0x46592a[_0xea0e8d];return _0x4e00b2;},a78_0xea0e(_0x30a10f,_0x15b5c3);}export function formatFlatList(_0x3ece1c,_0x36c31a,_0x25fb55={}){const _0xbd1915=a78_0xea0e,_0x3cbc04={...DEFAULT_OPTIONS,..._0x25fb55},_0x4130b1=[];for(const _0x50ca3b of _0x3ece1c){_0x4130b1['push']({'name':_0x50ca3b['name'],'icon':_0x3cbc04[_0xbd1915(0x180)]?'📁':'','metadata':undefined});}for(const _0x3dd0bc of _0x36c31a){const _0x461327=_0x3cbc04['showMetadata']&&_0x3dd0bc['population']!==undefined?a78_0x94c717[_0xbd1915(0x168)]('\x20('+formatRows(_0x3dd0bc[_0xbd1915(0x17f)])+')'):'';_0x4130b1[_0xbd1915(0x17c)]({'name':_0x3dd0bc[_0xbd1915(0x173)],'icon':_0x3cbc04[_0xbd1915(0x180)]?'🎯':'','metadata':_0x461327});}_0x4130b1['sort']((_0x243b78,_0x32e36e)=>_0x243b78[_0xbd1915(0x173)][_0xbd1915(0x16c)](_0x32e36e['name']));if(_0x4130b1[_0xbd1915(0x16e)]===0x0)return'(empty)';const _0xc835da=_0x4130b1[_0xbd1915(0x17d)](_0x360c2e=>{const _0x30393f=_0xbd1915,_0x2c24e6=_0x360c2e[_0x30393f(0x187)]?_0x360c2e[_0x30393f(0x187)]+'\x20':'',_0x166985=_0x360c2e[_0x30393f(0x169)]||'';return''+_0x2c24e6+_0x360c2e[_0x30393f(0x173)]+_0x166985;});return _0xc835da[_0xbd1915(0x189)]('\x0a');}
1
+ function a78_0x67c6(_0x3a5f7b,_0x5948c8){const _0x37a479=a78_0x37a4();return a78_0x67c6=function(_0x67c61f,_0x2409ea){_0x67c61f=_0x67c61f-0x1e7;let _0x4b831d=_0x37a479[_0x67c61f];return _0x4b831d;},a78_0x67c6(_0x3a5f7b,_0x5948c8);}(function(_0x5dd40c,_0x532984){const _0x52635d=a78_0x67c6,_0x5ce3f0=_0x5dd40c();while(!![]){try{const _0x195f21=parseInt(_0x52635d(0x1f4))/0x1*(parseInt(_0x52635d(0x1ef))/0x2)+-parseInt(_0x52635d(0x208))/0x3*(-parseInt(_0x52635d(0x206))/0x4)+-parseInt(_0x52635d(0x1fa))/0x5*(parseInt(_0x52635d(0x1f1))/0x6)+-parseInt(_0x52635d(0x1ea))/0x7+-parseInt(_0x52635d(0x1e7))/0x8*(-parseInt(_0x52635d(0x1f0))/0x9)+-parseInt(_0x52635d(0x204))/0xa+parseInt(_0x52635d(0x20c))/0xb;if(_0x195f21===_0x532984)break;else _0x5ce3f0['push'](_0x5ce3f0['shift']());}catch(_0x2757a0){_0x5ce3f0['push'](_0x5ce3f0['shift']());}}}(a78_0x37a4,0x62ed6));import{formatRows}from'./formatters.js';function a78_0x37a4(){const _0x342134=['population','2363196FmFvYQ','8kTgTKe','folderCount','type','2923067nzXWte','\x20\x20\x20\x20','showIcons','metadata','showTreeLines','140MxVgoK','5660433dpeJsM','5304gSLUqi','(empty)','📁\x20','5854Hnjnjm','name','🎯\x20','├──\x20','segmentCount','join','4435RepZCF','showMetadata','sort','dim','length','children','icon','localeCompare','segment','map','2632360NHLtZL','push','2466312sazjcJ','\x20\x20\x20','3CRFhgz','└──\x20','folder'];a78_0x37a4=function(){return _0x342134;};return a78_0x37a4();}import a78_0x46398d from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x487ccd,_0x14376b={},_0xc6e8e3=0x0,_0x15f7ef=''){const _0x42ba95=a78_0x67c6,_0x320c9b={...DEFAULT_OPTIONS,..._0x14376b},_0x2c0cfd=[],_0xdff940=[..._0x487ccd][_0x42ba95(0x1fc)]((_0x24c104,_0xab72e1)=>_0x24c104[_0x42ba95(0x1f5)][_0x42ba95(0x201)](_0xab72e1['name']));for(let _0xa8135=0x0;_0xa8135<_0xdff940['length'];_0xa8135++){const _0x1a4f7e=_0xdff940[_0xa8135],_0x1909db=_0xa8135===_0xdff940['length']-0x1;let _0x421523='';_0xc6e8e3>0x0&&(_0x421523+=_0x15f7ef);_0x320c9b[_0x42ba95(0x1ee)]&&_0xc6e8e3>0x0&&(_0x421523+=a78_0x46398d[_0x42ba95(0x1fd)](_0x1909db?_0x42ba95(0x209):_0x42ba95(0x1f7)));_0x320c9b['showIcons']&&(_0x421523+=_0x1a4f7e[_0x42ba95(0x1e9)]===_0x42ba95(0x20a)?_0x42ba95(0x1f3):_0x42ba95(0x1f6));_0x421523+=_0x1a4f7e[_0x42ba95(0x1f5)];if(_0x320c9b[_0x42ba95(0x1fb)]){if(_0x1a4f7e[_0x42ba95(0x1e9)]===_0x42ba95(0x20a)){const _0x13ebd6=[];_0x1a4f7e[_0x42ba95(0x1ed)][_0x42ba95(0x1f8)]&&_0x13ebd6['push'](_0x1a4f7e['metadata']['segmentCount']+'\x20segment'+(_0x1a4f7e[_0x42ba95(0x1ed)]['segmentCount']!==0x1?'s':'')),_0x1a4f7e[_0x42ba95(0x1ed)][_0x42ba95(0x1e8)]&&_0x13ebd6[_0x42ba95(0x205)](_0x1a4f7e[_0x42ba95(0x1ed)][_0x42ba95(0x1e8)]+'\x20folder'+(_0x1a4f7e[_0x42ba95(0x1ed)][_0x42ba95(0x1e8)]!==0x1?'s':'')),_0x13ebd6[_0x42ba95(0x1fe)]>0x0&&(_0x421523+=a78_0x46398d[_0x42ba95(0x1fd)]('\x20('+_0x13ebd6[_0x42ba95(0x1f9)](',\x20')+')'));}else _0x1a4f7e[_0x42ba95(0x1e9)]===_0x42ba95(0x202)&&_0x1a4f7e[_0x42ba95(0x20b)]!==undefined&&(_0x421523+=a78_0x46398d[_0x42ba95(0x1fd)]('\x20('+formatRows(_0x1a4f7e[_0x42ba95(0x20b)])+')'));}_0x2c0cfd['push'](_0x421523);if(_0x1a4f7e[_0x42ba95(0x1ff)]&&_0x1a4f7e[_0x42ba95(0x1ff)][_0x42ba95(0x1fe)]>0x0){let _0x4a162d;if(_0xc6e8e3===0x0)_0x4a162d='';else _0x320c9b['showTreeLines']?_0x4a162d=_0x15f7ef+(_0x1909db?_0x42ba95(0x1eb):a78_0x46398d[_0x42ba95(0x1fd)]('│')+_0x42ba95(0x207)):_0x4a162d=_0x15f7ef+_0x320c9b['indent'];const _0x2f1909=formatTree(_0x1a4f7e[_0x42ba95(0x1ff)],_0x320c9b,_0xc6e8e3+0x1,_0x4a162d);_0x2c0cfd[_0x42ba95(0x205)](_0x2f1909);}}return _0x2c0cfd[_0x42ba95(0x1f9)]('\x0a');}export function formatFlatList(_0x4a87c9,_0x404e61,_0x3bfd3c={}){const _0x465ee4=a78_0x67c6,_0x5a1ef0={...DEFAULT_OPTIONS,..._0x3bfd3c},_0x235208=[];for(const _0x49b4e6 of _0x4a87c9){_0x235208[_0x465ee4(0x205)]({'name':_0x49b4e6[_0x465ee4(0x1f5)],'icon':_0x5a1ef0[_0x465ee4(0x1ec)]?'📁':'','metadata':undefined});}for(const _0x4eb789 of _0x404e61){const _0x2380cb=_0x5a1ef0[_0x465ee4(0x1fb)]&&_0x4eb789[_0x465ee4(0x20b)]!==undefined?a78_0x46398d[_0x465ee4(0x1fd)]('\x20('+formatRows(_0x4eb789[_0x465ee4(0x20b)])+')'):'';_0x235208[_0x465ee4(0x205)]({'name':_0x4eb789[_0x465ee4(0x1f5)],'icon':_0x5a1ef0[_0x465ee4(0x1ec)]?'🎯':'','metadata':_0x2380cb});}_0x235208['sort']((_0xeaf530,_0x33aa2f)=>_0xeaf530[_0x465ee4(0x1f5)]['localeCompare'](_0x33aa2f[_0x465ee4(0x1f5)]));if(_0x235208[_0x465ee4(0x1fe)]===0x0)return _0x465ee4(0x1f2);const _0x28feba=_0x235208[_0x465ee4(0x203)](_0xee4c76=>{const _0x357db5=_0x465ee4,_0x317ccf=_0xee4c76[_0x357db5(0x200)]?_0xee4c76[_0x357db5(0x200)]+'\x20':'',_0x39b886=_0xee4c76['metadata']||'';return''+_0x317ccf+_0xee4c76[_0x357db5(0x1f5)]+_0x39b886;});return _0x28feba[_0x465ee4(0x1f9)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x2ac534,_0x500b7a){const _0x403efa=a79_0x4860,_0x250080=_0x2ac534();while(!![]){try{const _0x5df5be=parseInt(_0x403efa(0x180))/0x1*(parseInt(_0x403efa(0x169))/0x2)+parseInt(_0x403efa(0x172))/0x3+parseInt(_0x403efa(0x160))/0x4+parseInt(_0x403efa(0x168))/0x5+parseInt(_0x403efa(0x17a))/0x6*(-parseInt(_0x403efa(0x176))/0x7)+-parseInt(_0x403efa(0x16e))/0x8+-parseInt(_0x403efa(0x167))/0x9*(parseInt(_0x403efa(0x166))/0xa);if(_0x5df5be===_0x500b7a)break;else _0x250080['push'](_0x250080['shift']());}catch(_0x35f1d7){_0x250080['push'](_0x250080['shift']());}}}(a79_0x5941,0xe268e));function a79_0x5941(){const _0x338014=['yellow','isTTY','259FChTvs','statusCode','Invalid\x20version\x20format','version','104166wMAWGG','\x0aUpdate\x20available:\x20','npm\x20install\x20-g\x20@treasuredata/tdx@latest','end','destroy','\x0aRun:\x20','110185whxtgf','updateAvailable','stringify','latestVersion','stderr','Run:','5743052uNzdLD','write','dim','last_version_check','toISOString','gray','6409640mkDsPG','36kBbNrH','4565140FZJFwM','30SdVZYO','Update\x20available:','HTTP\x20','currentVersion','error','3403296szAqrj','env','getTime','cyan','1672299NyQHqz','parse'];a79_0x5941=function(){return _0x338014;};return a79_0x5941();}import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a79_0x38efc4 from'chalk';import{getCacheDir}from'../core/config.js';function a79_0x4860(_0x1bcd2f,_0x22596d){const _0x594175=a79_0x5941();return a79_0x4860=function(_0x48604b,_0x42a160){_0x48604b=_0x48604b-0x15c;let _0x2de5e3=_0x594175[_0x48604b];return _0x2de5e3;},a79_0x4860(_0x1bcd2f,_0x22596d);}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x5b5ab2=a79_0x4860,_0x243125=getCacheDir();return join(_0x243125,_0x5b5ab2(0x163));}function readCache(){const _0x537a91=a79_0x4860;try{const _0x212b12=getCacheFilePath(),_0x34b815=readFileSync(_0x212b12,'utf-8');return JSON[_0x537a91(0x173)](_0x34b815);}catch{return null;}}function writeCache(_0x2a1c61){const _0x2cf428=a79_0x4860;try{const _0x53cfba=getCacheDir();mkdirSync(_0x53cfba,{'recursive':!![]});const _0x263e20={'lastCheck':new Date()[_0x2cf428(0x164)](),'latestVersion':_0x2a1c61},_0x3f1760=getCacheFilePath();writeFileSync(_0x3f1760,JSON[_0x2cf428(0x15c)](_0x263e20,null,0x2),'utf-8');}catch{}}function isCacheValid(_0x550a5a){const _0x1a108f=a79_0x4860;if(!_0x550a5a)return![];const _0x1836ad=new Date(_0x550a5a['lastCheck'])[_0x1a108f(0x170)](),_0x1d8a62=Date['now']();return _0x1d8a62-_0x1836ad<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x3583fa,_0x1046bb)=>{const _0x27faa7=a79_0x4860,_0x3efea5=get(NPM_REGISTRY_URL,_0x53d81d=>{const _0x28e97c=a79_0x4860;if(_0x53d81d[_0x28e97c(0x177)]!==0xc8){clearTimeout(_0x83d599),_0x1046bb(new Error(_0x28e97c(0x16b)+_0x53d81d[_0x28e97c(0x177)]));return;}let _0x576d10='';_0x53d81d['on']('data',_0x44f7be=>{_0x576d10+=_0x44f7be;}),_0x53d81d['on'](_0x28e97c(0x17d),()=>{const _0x290917=_0x28e97c;clearTimeout(_0x83d599);try{const _0x4e83bb=JSON[_0x290917(0x173)](_0x576d10);if(!valid(_0x4e83bb[_0x290917(0x179)])){_0x1046bb(new Error(_0x290917(0x178)));return;}_0x3583fa(_0x4e83bb[_0x290917(0x179)]);}catch(_0x34dc52){_0x1046bb(_0x34dc52);}});})['on'](_0x27faa7(0x16d),_0x2df837=>{clearTimeout(_0x83d599),_0x1046bb(_0x2df837);}),_0x83d599=setTimeout(()=>{const _0xfeed3=_0x27faa7;_0x3efea5[_0xfeed3(0x17e)](),_0x1046bb(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4b6359){const _0x1060d3=a79_0x4860;try{const _0x502084=readCache();if(isCacheValid(_0x502084)){const _0x1b743b=gt(_0x502084[_0x1060d3(0x15d)],_0x4b6359);return{'updateAvailable':_0x1b743b,'currentVersion':_0x4b6359,'latestVersion':_0x502084[_0x1060d3(0x15d)]};}const _0x4354d6=await fetchLatestVersion();writeCache(_0x4354d6);const _0x42dcea=gt(_0x4354d6,_0x4b6359);return{'updateAvailable':_0x42dcea,'currentVersion':_0x4b6359,'latestVersion':_0x4354d6};}catch{return null;}}export function displayUpdateNotification(_0x38b254){const _0x1c7908=a79_0x4860;if(!_0x38b254[_0x1c7908(0x181)])return;const _0x433287=process[_0x1c7908(0x15e)][_0x1c7908(0x175)]&&!process[_0x1c7908(0x16f)]['NO_COLOR'],_0x15b9b1=_0x433287?a79_0x38efc4[_0x1c7908(0x165)]('→'):'→',_0x68a22c=_0x433287?a79_0x38efc4[_0x1c7908(0x162)](_0x38b254[_0x1c7908(0x16c)]):_0x38b254[_0x1c7908(0x16c)],_0x11d099=_0x433287?a79_0x38efc4['green'](_0x38b254[_0x1c7908(0x15d)]):_0x38b254[_0x1c7908(0x15d)],_0x3f1c86=_0x433287?a79_0x38efc4[_0x1c7908(0x171)](_0x1c7908(0x17c)):_0x1c7908(0x17c),_0xd5d088=_0x433287?'\x0a'+a79_0x38efc4[_0x1c7908(0x174)](_0x1c7908(0x16a))+'\x20'+_0x68a22c+'\x20'+_0x15b9b1+'\x20'+_0x11d099+'\x0a'+a79_0x38efc4[_0x1c7908(0x162)](_0x1c7908(0x15f))+'\x20'+_0x3f1c86+'\x0a':_0x1c7908(0x17b)+_0x68a22c+'\x20'+_0x15b9b1+'\x20'+_0x11d099+_0x1c7908(0x17f)+_0x3f1c86+'\x0a';process[_0x1c7908(0x15e)][_0x1c7908(0x161)](_0xd5d088);}
1
+ const a79_0x2c204d=a79_0x6e4e;(function(_0x1fbd9d,_0x171a21){const _0x1c9c9a=a79_0x6e4e,_0x20b510=_0x1fbd9d();while(!![]){try{const _0x535a8a=parseInt(_0x1c9c9a(0x1d2))/0x1*(-parseInt(_0x1c9c9a(0x1e1))/0x2)+-parseInt(_0x1c9c9a(0x1d1))/0x3+parseInt(_0x1c9c9a(0x1d0))/0x4+-parseInt(_0x1c9c9a(0x1c6))/0x5+parseInt(_0x1c9c9a(0x1d9))/0x6*(-parseInt(_0x1c9c9a(0x1be))/0x7)+parseInt(_0x1c9c9a(0x1c9))/0x8*(-parseInt(_0x1c9c9a(0x1c5))/0x9)+parseInt(_0x1c9c9a(0x1d3))/0xa;if(_0x535a8a===_0x171a21)break;else _0x20b510['push'](_0x20b510['shift']());}catch(_0x2ebf47){_0x20b510['push'](_0x20b510['shift']());}}}(a79_0x27b9,0xe539b));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a79_0x458453 from'chalk';function a79_0x27b9(){const _0x609aa0=['currentVersion','stringify','toISOString','data','npm\x20install\x20-g\x20@treasuredata/tdx@latest','1453725CiGBaY','5868750CiDPWn','https://registry.npmjs.org/@treasuredata/tdx/latest','last_version_check','88zEYZlW','destroy','Invalid\x20version\x20format','Run:','latestVersion','NO_COLOR','env','1583432CGsGuE','1595193WCGxXJ','27583MRFalf','62210410Ucihcb','write','statusCode','HTTP\x20','now','yellow','82974kUDpPL','isTTY','Update\x20available:','dim','gray','\x0aRun:\x20','\x0aUpdate\x20available:\x20','stderr','82Fxtxlo','green','version','parse','539jBfQfP','utf-8'];a79_0x27b9=function(){return _0x609aa0;};return a79_0x27b9();}function a79_0x6e4e(_0x3c9fd7,_0x1cf59a){const _0x27b984=a79_0x27b9();return a79_0x6e4e=function(_0x6e4efc,_0x5e2ad0){_0x6e4efc=_0x6e4efc-0x1be;let _0x8f5928=_0x27b984[_0x6e4efc];return _0x8f5928;},a79_0x6e4e(_0x3c9fd7,_0x1cf59a);}import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a79_0x2c204d(0x1c7),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x64b2af=a79_0x2c204d,_0x5b0ca1=getCacheDir();return join(_0x5b0ca1,_0x64b2af(0x1c8));}function readCache(){const _0x14bf6d=a79_0x2c204d;try{const _0x5af13c=getCacheFilePath(),_0x34ad7b=readFileSync(_0x5af13c,_0x14bf6d(0x1bf));return JSON[_0x14bf6d(0x1e4)](_0x34ad7b);}catch{return null;}}function writeCache(_0x2e5ee3){const _0x3bc447=a79_0x2c204d;try{const _0x7e57c4=getCacheDir();mkdirSync(_0x7e57c4,{'recursive':!![]});const _0x4f4c31={'lastCheck':new Date()[_0x3bc447(0x1c2)](),'latestVersion':_0x2e5ee3},_0x2a8eab=getCacheFilePath();writeFileSync(_0x2a8eab,JSON[_0x3bc447(0x1c1)](_0x4f4c31,null,0x2),_0x3bc447(0x1bf));}catch{}}function isCacheValid(_0x139cf5){const _0x2b9997=a79_0x2c204d;if(!_0x139cf5)return![];const _0x4b521f=new Date(_0x139cf5['lastCheck'])['getTime'](),_0x526a7c=Date[_0x2b9997(0x1d7)]();return _0x526a7c-_0x4b521f<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x3fadb5,_0x195335)=>{const _0x36edb3=get(NPM_REGISTRY_URL,_0x5a27c0=>{const _0x481eb3=a79_0x6e4e;if(_0x5a27c0['statusCode']!==0xc8){clearTimeout(_0x2ae13b),_0x195335(new Error(_0x481eb3(0x1d6)+_0x5a27c0[_0x481eb3(0x1d5)]));return;}let _0x5c041='';_0x5a27c0['on'](_0x481eb3(0x1c3),_0x5364d4=>{_0x5c041+=_0x5364d4;}),_0x5a27c0['on']('end',()=>{const _0x55eb8f=_0x481eb3;clearTimeout(_0x2ae13b);try{const _0x5a985d=JSON[_0x55eb8f(0x1e4)](_0x5c041);if(!valid(_0x5a985d[_0x55eb8f(0x1e3)])){_0x195335(new Error(_0x55eb8f(0x1cb)));return;}_0x3fadb5(_0x5a985d[_0x55eb8f(0x1e3)]);}catch(_0x3da5dd){_0x195335(_0x3da5dd);}});})['on']('error',_0x5ac01d=>{clearTimeout(_0x2ae13b),_0x195335(_0x5ac01d);}),_0x2ae13b=setTimeout(()=>{const _0x4c55ed=a79_0x6e4e;_0x36edb3[_0x4c55ed(0x1ca)](),_0x195335(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x2ab065){try{const _0x4ca974=readCache();if(isCacheValid(_0x4ca974)){const _0x57c6f1=gt(_0x4ca974['latestVersion'],_0x2ab065);return{'updateAvailable':_0x57c6f1,'currentVersion':_0x2ab065,'latestVersion':_0x4ca974['latestVersion']};}const _0x196ff2=await fetchLatestVersion();writeCache(_0x196ff2);const _0x1dcb10=gt(_0x196ff2,_0x2ab065);return{'updateAvailable':_0x1dcb10,'currentVersion':_0x2ab065,'latestVersion':_0x196ff2};}catch{return null;}}export function displayUpdateNotification(_0x4f3bce){const _0x2c09cf=a79_0x2c204d;if(!_0x4f3bce['updateAvailable'])return;const _0x1c064f=process[_0x2c09cf(0x1e0)][_0x2c09cf(0x1da)]&&!process[_0x2c09cf(0x1cf)][_0x2c09cf(0x1ce)],_0x5c1cba=_0x1c064f?a79_0x458453[_0x2c09cf(0x1dd)]('→'):'→',_0xd29370=_0x1c064f?a79_0x458453[_0x2c09cf(0x1dc)](_0x4f3bce[_0x2c09cf(0x1c0)]):_0x4f3bce[_0x2c09cf(0x1c0)],_0x2aa698=_0x1c064f?a79_0x458453[_0x2c09cf(0x1e2)](_0x4f3bce[_0x2c09cf(0x1cd)]):_0x4f3bce[_0x2c09cf(0x1cd)],_0x540fb2=_0x1c064f?a79_0x458453['cyan'](_0x2c09cf(0x1c4)):'npm\x20install\x20-g\x20@treasuredata/tdx@latest',_0x1c7e52=_0x1c064f?'\x0a'+a79_0x458453[_0x2c09cf(0x1d8)](_0x2c09cf(0x1db))+'\x20'+_0xd29370+'\x20'+_0x5c1cba+'\x20'+_0x2aa698+'\x0a'+a79_0x458453[_0x2c09cf(0x1dc)](_0x2c09cf(0x1cc))+'\x20'+_0x540fb2+'\x0a':_0x2c09cf(0x1df)+_0xd29370+'\x20'+_0x5c1cba+'\x20'+_0x2aa698+_0x2c09cf(0x1de)+_0x540fb2+'\x0a';process[_0x2c09cf(0x1e0)][_0x2c09cf(0x1d4)](_0x1c7e52);}
@@ -1 +1 @@
1
- const a80_0x125028=a80_0x323a;(function(_0x546e1b,_0x4d294b){const _0x571cd7=a80_0x323a,_0x3af7ba=_0x546e1b();while(!![]){try{const _0x20f668=-parseInt(_0x571cd7(0x11b))/0x1+parseInt(_0x571cd7(0x11a))/0x2*(parseInt(_0x571cd7(0x124))/0x3)+-parseInt(_0x571cd7(0x119))/0x4+-parseInt(_0x571cd7(0x121))/0x5*(-parseInt(_0x571cd7(0x123))/0x6)+parseInt(_0x571cd7(0x125))/0x7+parseInt(_0x571cd7(0x11c))/0x8*(-parseInt(_0x571cd7(0x11d))/0x9)+-parseInt(_0x571cd7(0x11e))/0xa*(-parseInt(_0x571cd7(0x120))/0xb);if(_0x20f668===_0x4d294b)break;else _0x3af7ba['push'](_0x3af7ba['shift']());}catch(_0x4f08a7){_0x3af7ba['push'](_0x3af7ba['shift']());}}}(a80_0x14fb,0xebdde));export const WORKFLOW_FILE_EXTENSION=a80_0x125028(0x122);export function shouldIncludeInArchive(_0x497cf8){const _0x3b8796=a80_0x125028;if(_0x497cf8==='.digdag')return!![];if(_0x497cf8[_0x3b8796(0x11f)]('.'))return![];return!![];}function a80_0x323a(_0x5930d4,_0x59a9c7){const _0x14fb7d=a80_0x14fb();return a80_0x323a=function(_0x323a7b,_0x1b72ec){_0x323a7b=_0x323a7b-0x119;let _0x29fb44=_0x14fb7d[_0x323a7b];return _0x29fb44;},a80_0x323a(_0x5930d4,_0x59a9c7);}function a80_0x14fb(){const _0x2e78c9=['4605396GwOjlR','4235616TPIEcE','7119040jHHWnC','2DTZMyd','1875550vEmXld','8288296rTFbOp','9ebMSpO','93860yjLABa','startsWith','3256HRMpEF','2115chKlHa','.dig','10482yJzLnj'];a80_0x14fb=function(){return _0x2e78c9;};return a80_0x14fb();}
1
+ function a80_0x16e3(){const _0x38a798=['.digdag','startsWith','80rxzSql','366602ZzlPnu','1605339BmDXmA','1189388dByzTm','355uGeHvo','1648479RkkQmo','3176hlSybq','4872arqViG','182EJZAXq','3136196OqReDK'];a80_0x16e3=function(){return _0x38a798;};return a80_0x16e3();}(function(_0x5ccef4,_0x13b8b2){const _0x38d77e=a80_0x4083,_0x55f40b=_0x5ccef4();while(!![]){try{const _0x13680a=-parseInt(_0x38d77e(0xb4))/0x1+-parseInt(_0x38d77e(0xb6))/0x2+-parseInt(_0x38d77e(0xb8))/0x3+parseInt(_0x38d77e(0xbc))/0x4+-parseInt(_0x38d77e(0xb7))/0x5*(parseInt(_0x38d77e(0xba))/0x6)+-parseInt(_0x38d77e(0xbb))/0x7*(parseInt(_0x38d77e(0xb9))/0x8)+-parseInt(_0x38d77e(0xb5))/0x9*(-parseInt(_0x38d77e(0xbf))/0xa);if(_0x13680a===_0x13b8b2)break;else _0x55f40b['push'](_0x55f40b['shift']());}catch(_0x499270){_0x55f40b['push'](_0x55f40b['shift']());}}}(a80_0x16e3,0x9a5be));function a80_0x4083(_0x3c5346,_0x18bf09){const _0x16e3b5=a80_0x16e3();return a80_0x4083=function(_0x40830c,_0x998407){_0x40830c=_0x40830c-0xb4;let _0xcc0756=_0x16e3b5[_0x40830c];return _0xcc0756;},a80_0x4083(_0x3c5346,_0x18bf09);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x4f8d55){const _0x13ea9b=a80_0x4083;if(_0x4f8d55===_0x13ea9b(0xbd))return!![];if(_0x4f8d55[_0x13ea9b(0xbe)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
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": {