@treasuredata/tdx 0.3.3 → 0.3.4

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 (81) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-api-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-api-client.js +1 -1
  6. package/dist/client/rate-limiter.js +1 -1
  7. package/dist/client/td-api-client.js +1 -1
  8. package/dist/client/trino-api-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/auth-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.js +1 -1
  44. package/dist/proxy/server.js +1 -1
  45. package/dist/proxy/session-cache.js +1 -1
  46. package/dist/sdk/api.js +1 -1
  47. package/dist/sdk/errors.js +1 -1
  48. package/dist/sdk/index.js +1 -1
  49. package/dist/sdk/job.js +1 -1
  50. package/dist/sdk/llm.js +1 -1
  51. package/dist/sdk/query.js +1 -1
  52. package/dist/sdk/segment.js +1 -1
  53. package/dist/sdk/workflow.js +1 -1
  54. package/dist/types/endpoints.js +1 -1
  55. package/dist/types/index.js +1 -1
  56. package/dist/utils/agent-ref-parser.js +1 -1
  57. package/dist/utils/chat-cache.js +1 -1
  58. package/dist/utils/colors.js +1 -1
  59. package/dist/utils/command-output.js +1 -1
  60. package/dist/utils/constants.js +1 -1
  61. package/dist/utils/file-permissions.js +1 -1
  62. package/dist/utils/format-detector.js +1 -1
  63. package/dist/utils/formatters.js +1 -1
  64. package/dist/utils/json-loader.js +1 -1
  65. package/dist/utils/model-aliases.js +1 -1
  66. package/dist/utils/option-validation.js +1 -1
  67. package/dist/utils/port.js +1 -1
  68. package/dist/utils/process.js +1 -1
  69. package/dist/utils/prompt.js +1 -1
  70. package/dist/utils/segment-path-parser.js +1 -1
  71. package/dist/utils/segment-ref-parser.js +1 -1
  72. package/dist/utils/spinner.js +1 -1
  73. package/dist/utils/sql-parser.js +1 -1
  74. package/dist/utils/sse-parser.js +1 -1
  75. package/dist/utils/string-utils.js +1 -1
  76. package/dist/utils/table-ref-parser.js +1 -1
  77. package/dist/utils/tdx-logger.js +1 -1
  78. package/dist/utils/tree-formatter.js +1 -1
  79. package/dist/utils/version-check.js +1 -1
  80. package/dist/utils/workflow-utils.js +1 -1
  81. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x573ea3,_0x3ae6c9){const _0x56f2c3=a75_0x33ed,_0x56d01f=_0x573ea3();while(!![]){try{const _0x3d6c36=parseInt(_0x56f2c3(0x11f))/0x1+-parseInt(_0x56f2c3(0x11d))/0x2*(parseInt(_0x56f2c3(0x12e))/0x3)+parseInt(_0x56f2c3(0x121))/0x4+-parseInt(_0x56f2c3(0x11e))/0x5*(parseInt(_0x56f2c3(0x133))/0x6)+parseInt(_0x56f2c3(0x117))/0x7+-parseInt(_0x56f2c3(0x130))/0x8*(-parseInt(_0x56f2c3(0x12f))/0x9)+parseInt(_0x56f2c3(0x128))/0xa;if(_0x3d6c36===_0x3ae6c9)break;else _0x56d01f['push'](_0x56d01f['shift']());}catch(_0x3870fd){_0x56d01f['push'](_0x56d01f['shift']());}}}(a75_0x1361,0x6ef15));function a75_0x1361(){const _0x33e8f0=['1889260lOLlMS','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20navigate\x20above\x20root','segments','slice','raw','isAbsolute','486180MAHpOT','substring','trim','Cannot\x20split\x20empty\x20path','join','Path\x20attempts\x20to\x20navigate\x20above\x20root','1110636FFKLbJ','45nJMPRA','72040VLiCct','startsWith','pop','6wBaosY','test','filter','3633399UtlgaL','push','Path\x20cannot\x20be\x20empty','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Path\x20segment\x20cannot\x20be\x20empty','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','2ZfRgnL','3467315hPJwPm','433081IbcYSR','length'];a75_0x1361=function(){return _0x33e8f0;};return a75_0x1361();}export function parsePath(_0x374066){const _0x472bc3=a75_0x33ed;if(!_0x374066||_0x374066[_0x472bc3(0x12a)]()==='')throw new Error(_0x472bc3(0x119));const _0x260a55=_0x374066[_0x472bc3(0x12a)]();if(_0x260a55==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x374066};const _0x29095e=_0x260a55[_0x472bc3(0x131)]('/')?_0x260a55[_0x472bc3(0x129)](0x1):_0x260a55,_0x215df5=_0x29095e['split']('/')[_0x472bc3(0x135)](_0x471aeb=>_0x471aeb!=='');if(_0x215df5['length']===0x0)throw new Error(_0x472bc3(0x11a));const _0x3fdbb6=_0x260a55[_0x472bc3(0x131)]('/')||!isRelativePathSegment(_0x215df5[0x0]);for(const _0x3111ff of _0x215df5){validatePathSegment(_0x3111ff);}return{'segments':_0x215df5,'isAbsolute':_0x3fdbb6,'raw':_0x374066};}function isRelativePathSegment(_0x27d7af){return _0x27d7af==='.'||_0x27d7af==='..';}function validatePathSegment(_0x226622){const _0x156665=a75_0x33ed;if(_0x226622==='')throw new Error(_0x156665(0x11b));if(_0x226622==='.'||_0x226622==='..')return;if(/[\x00-\x1F\x7F]/[_0x156665(0x134)](_0x226622))throw new Error(_0x156665(0x11c)+_0x226622);if(_0x226622!==_0x226622[_0x156665(0x12a)]()){}}export function validatePath(_0x32e62f){const _0x49547a=a75_0x33ed;if(_0x32e62f[_0x49547a(0x124)]['length']===0x0&&!_0x32e62f[_0x49547a(0x127)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x32e62f['isAbsolute']){if(_0x32e62f[_0x49547a(0x124)][0x0]==='..')throw new Error(_0x49547a(0x122));let _0x1410cf=0x0;for(const _0x5302dc of _0x32e62f[_0x49547a(0x124)]){if(_0x5302dc==='..'){if(_0x1410cf===0x0)throw new Error(_0x49547a(0x12d));_0x1410cf--;}else _0x5302dc!=='.'&&_0x1410cf++;}}}export function joinPaths(_0x4e2eff,_0x34e25b){const _0x5bfb62=a75_0x33ed;if(!_0x4e2eff||_0x4e2eff==='/')return _0x34e25b;if(!_0x34e25b||_0x34e25b==='.')return _0x4e2eff;if(_0x34e25b[_0x5bfb62(0x131)]('/'))return _0x34e25b;const _0x59adac=parsePath(_0x4e2eff),_0x385fe3=parsePath(_0x34e25b),_0xe96e8c=[..._0x59adac[_0x5bfb62(0x124)]];for(const _0x344c5a of _0x385fe3[_0x5bfb62(0x124)]){if(_0x344c5a==='.')continue;else{if(_0x344c5a==='..'){if(_0xe96e8c[_0x5bfb62(0x120)]===0x0)throw new Error(_0x5bfb62(0x123));_0xe96e8c['pop']();}else _0xe96e8c[_0x5bfb62(0x118)](_0x344c5a);}}const _0x2c29c4=_0xe96e8c['join']('/');return _0x59adac[_0x5bfb62(0x126)][_0x5bfb62(0x131)]('/')?'/'+_0x2c29c4:_0x2c29c4;}export function normalizePath(_0x40c7e0){const _0x442720=a75_0x33ed,_0x226932=parsePath(_0x40c7e0),_0x535e07=[];for(const _0x1aa5dc of _0x226932[_0x442720(0x124)]){if(_0x1aa5dc==='.')continue;else{if(_0x1aa5dc==='..'){if(_0x535e07[_0x442720(0x120)]===0x0){if(_0x226932['isAbsolute'])throw new Error(_0x442720(0x123));_0x535e07[_0x442720(0x118)]('..');}else _0x535e07[_0x535e07['length']-0x1]==='..'?_0x535e07[_0x442720(0x118)]('..'):_0x535e07[_0x442720(0x132)]();}else _0x535e07[_0x442720(0x118)](_0x1aa5dc);}}if(_0x535e07[_0x442720(0x120)]===0x0)return _0x226932[_0x442720(0x127)]?'/':'.';const _0x29159c=_0x535e07['join']('/');return _0x226932[_0x442720(0x126)][_0x442720(0x131)]('/')?'/'+_0x29159c:_0x29159c;}function a75_0x33ed(_0x5750b,_0x2d9e7d){const _0x136153=a75_0x1361();return a75_0x33ed=function(_0x33ede1,_0x2c2864){_0x33ede1=_0x33ede1-0x117;let _0xa655f2=_0x136153[_0x33ede1];return _0xa655f2;},a75_0x33ed(_0x5750b,_0x2d9e7d);}export function getParentPath(_0x5d6335){const _0x105bd4=a75_0x33ed,_0x5c677d=parsePath(_0x5d6335);if(_0x5c677d['segments']['length']<=0x1)return'/';const _0x330682=_0x5c677d[_0x105bd4(0x124)][_0x105bd4(0x125)](0x0,-0x1)[_0x105bd4(0x12c)]('/');return _0x5c677d['raw'][_0x105bd4(0x131)]('/')?'/'+_0x330682:_0x330682;}export function getBaseName(_0x3495ac){const _0x518071=a75_0x33ed,_0x4c7999=parsePath(_0x3495ac);return _0x4c7999[_0x518071(0x124)][_0x4c7999['segments'][_0x518071(0x120)]-0x1]||'';}export function isChildPath(_0x40ee8e,_0x27e4bd){const _0x5b2686=a75_0x33ed,_0x2a07ef=parsePath(_0x40ee8e),_0x5c6a2f=parsePath(_0x27e4bd);if(_0x2a07ef[_0x5b2686(0x124)][_0x5b2686(0x120)]<=_0x5c6a2f['segments'][_0x5b2686(0x120)])return![];for(let _0x4ac833=0x0;_0x4ac833<_0x5c6a2f[_0x5b2686(0x124)][_0x5b2686(0x120)];_0x4ac833++){if(_0x2a07ef[_0x5b2686(0x124)][_0x4ac833]!==_0x5c6a2f['segments'][_0x4ac833])return![];}return!![];}export function splitPath(_0x1cf796){const _0x19814b=a75_0x33ed,_0x5f3163=parsePath(_0x1cf796);if(_0x5f3163[_0x19814b(0x124)][_0x19814b(0x120)]===0x0)throw new Error(_0x19814b(0x12b));if(_0x5f3163['segments']['length']===0x1)return{'parent':_0x5f3163[_0x19814b(0x124)][0x0]};return{'parent':_0x5f3163[_0x19814b(0x124)][0x0],'child':_0x5f3163[_0x19814b(0x124)]['slice'](0x1)[_0x19814b(0x12c)]('/')};}
1
+ (function(_0x5749bd,_0x2a431e){const _0x154f96=a75_0xd4d9,_0x2880e5=_0x5749bd();while(!![]){try{const _0x216aac=-parseInt(_0x154f96(0x160))/0x1+-parseInt(_0x154f96(0x168))/0x2+parseInt(_0x154f96(0x167))/0x3*(parseInt(_0x154f96(0x171))/0x4)+-parseInt(_0x154f96(0x15d))/0x5*(-parseInt(_0x154f96(0x162))/0x6)+-parseInt(_0x154f96(0x179))/0x7*(-parseInt(_0x154f96(0x173))/0x8)+-parseInt(_0x154f96(0x16d))/0x9*(parseInt(_0x154f96(0x16e))/0xa)+parseInt(_0x154f96(0x177))/0xb;if(_0x216aac===_0x2a431e)break;else _0x2880e5['push'](_0x2880e5['shift']());}catch(_0x5e4992){_0x2880e5['push'](_0x2880e5['shift']());}}}(a75_0x5eb5,0xc7eff));export function parsePath(_0x26f1f5){const _0x53d4d7=a75_0xd4d9;if(!_0x26f1f5||_0x26f1f5[_0x53d4d7(0x166)]()==='')throw new Error(_0x53d4d7(0x161));const _0x40f9a2=_0x26f1f5[_0x53d4d7(0x166)]();if(_0x40f9a2==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x26f1f5};const _0x3a7730=_0x40f9a2[_0x53d4d7(0x174)]('/')?_0x40f9a2['substring'](0x1):_0x40f9a2,_0x2378ea=_0x3a7730[_0x53d4d7(0x175)]('/')[_0x53d4d7(0x172)](_0x29d26d=>_0x29d26d!=='');if(_0x2378ea['length']===0x0)throw new Error(_0x53d4d7(0x16f));const _0x5a157d=_0x40f9a2['startsWith']('/')||!isRelativePathSegment(_0x2378ea[0x0]);for(const _0x356c71 of _0x2378ea){validatePathSegment(_0x356c71);}return{'segments':_0x2378ea,'isAbsolute':_0x5a157d,'raw':_0x26f1f5};}function isRelativePathSegment(_0x4f38f3){return _0x4f38f3==='.'||_0x4f38f3==='..';}function validatePathSegment(_0x2c98ac){const _0x318c26=a75_0xd4d9;if(_0x2c98ac==='')throw new Error(_0x318c26(0x16a));if(_0x2c98ac==='.'||_0x2c98ac==='..')return;if(/[\x00-\x1F\x7F]/[_0x318c26(0x15c)](_0x2c98ac))throw new Error(_0x318c26(0x15e)+_0x2c98ac);if(_0x2c98ac!==_0x2c98ac[_0x318c26(0x166)]()){}}export function validatePath(_0x7fc9e){const _0x52e2fd=a75_0xd4d9;if(_0x7fc9e[_0x52e2fd(0x178)][_0x52e2fd(0x170)]===0x0&&!_0x7fc9e['isAbsolute'])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x7fc9e['isAbsolute']){if(_0x7fc9e[_0x52e2fd(0x178)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x4daad0=0x0;for(const _0xdf66 of _0x7fc9e[_0x52e2fd(0x178)]){if(_0xdf66==='..'){if(_0x4daad0===0x0)throw new Error(_0x52e2fd(0x163));_0x4daad0--;}else _0xdf66!=='.'&&_0x4daad0++;}}}export function joinPaths(_0x50cfea,_0xa712c0){const _0x5ecaa0=a75_0xd4d9;if(!_0x50cfea||_0x50cfea==='/')return _0xa712c0;if(!_0xa712c0||_0xa712c0==='.')return _0x50cfea;if(_0xa712c0['startsWith']('/'))return _0xa712c0;const _0x3ca3fb=parsePath(_0x50cfea),_0x32680d=parsePath(_0xa712c0),_0xa16c5c=[..._0x3ca3fb[_0x5ecaa0(0x178)]];for(const _0x45e7f8 of _0x32680d[_0x5ecaa0(0x178)]){if(_0x45e7f8==='.')continue;else{if(_0x45e7f8==='..'){if(_0xa16c5c['length']===0x0)throw new Error(_0x5ecaa0(0x164));_0xa16c5c[_0x5ecaa0(0x169)]();}else _0xa16c5c[_0x5ecaa0(0x16c)](_0x45e7f8);}}const _0x194b08=_0xa16c5c[_0x5ecaa0(0x165)]('/');return _0x3ca3fb[_0x5ecaa0(0x16b)][_0x5ecaa0(0x174)]('/')?'/'+_0x194b08:_0x194b08;}export function normalizePath(_0x3c7e0b){const _0x2c8925=a75_0xd4d9,_0x9524e7=parsePath(_0x3c7e0b),_0x1c01b3=[];for(const _0x249288 of _0x9524e7['segments']){if(_0x249288==='.')continue;else{if(_0x249288==='..'){if(_0x1c01b3[_0x2c8925(0x170)]===0x0){if(_0x9524e7[_0x2c8925(0x15b)])throw new Error(_0x2c8925(0x164));_0x1c01b3[_0x2c8925(0x16c)]('..');}else _0x1c01b3[_0x1c01b3['length']-0x1]==='..'?_0x1c01b3['push']('..'):_0x1c01b3[_0x2c8925(0x169)]();}else _0x1c01b3[_0x2c8925(0x16c)](_0x249288);}}if(_0x1c01b3['length']===0x0)return _0x9524e7[_0x2c8925(0x15b)]?'/':'.';const _0x30bf03=_0x1c01b3[_0x2c8925(0x165)]('/');return _0x9524e7['raw'][_0x2c8925(0x174)]('/')?'/'+_0x30bf03:_0x30bf03;}export function getParentPath(_0x204e98){const _0xd70122=a75_0xd4d9,_0x42c799=parsePath(_0x204e98);if(_0x42c799[_0xd70122(0x178)][_0xd70122(0x170)]<=0x1)return'/';const _0x2ad1cb=_0x42c799[_0xd70122(0x178)][_0xd70122(0x15f)](0x0,-0x1)[_0xd70122(0x165)]('/');return _0x42c799[_0xd70122(0x16b)]['startsWith']('/')?'/'+_0x2ad1cb:_0x2ad1cb;}function a75_0xd4d9(_0x48d194,_0x41220c){const _0x5eb568=a75_0x5eb5();return a75_0xd4d9=function(_0xd4d973,_0x2df6cb){_0xd4d973=_0xd4d973-0x15b;let _0x3430f3=_0x5eb568[_0xd4d973];return _0x3430f3;},a75_0xd4d9(_0x48d194,_0x41220c);}export function getBaseName(_0x22d904){const _0x81e436=a75_0xd4d9,_0x5b00cc=parsePath(_0x22d904);return _0x5b00cc[_0x81e436(0x178)][_0x5b00cc[_0x81e436(0x178)]['length']-0x1]||'';}export function isChildPath(_0x38a158,_0x1736d2){const _0x54292b=a75_0xd4d9,_0x527195=parsePath(_0x38a158),_0x33c4dd=parsePath(_0x1736d2);if(_0x527195[_0x54292b(0x178)][_0x54292b(0x170)]<=_0x33c4dd[_0x54292b(0x178)][_0x54292b(0x170)])return![];for(let _0x22b08d=0x0;_0x22b08d<_0x33c4dd['segments'][_0x54292b(0x170)];_0x22b08d++){if(_0x527195[_0x54292b(0x178)][_0x22b08d]!==_0x33c4dd['segments'][_0x22b08d])return![];}return!![];}function a75_0x5eb5(){const _0x195945=['startsWith','split','Cannot\x20split\x20empty\x20path','11411895XqEaqV','segments','7NfiyER','isAbsolute','test','5ECvWcD','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','slice','1254320aSdPjb','Path\x20cannot\x20be\x20empty','112830BcZYzM','Path\x20attempts\x20to\x20navigate\x20above\x20root','Cannot\x20navigate\x20above\x20root','join','trim','3703380yQjYki','1611432gQSvnL','pop','Path\x20segment\x20cannot\x20be\x20empty','raw','push','104283RwcJVb','90kNxTSW','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','length','4uuEiXd','filter','5540416GCaqkh'];a75_0x5eb5=function(){return _0x195945;};return a75_0x5eb5();}export function splitPath(_0x579670){const _0x385af8=a75_0xd4d9,_0x24f556=parsePath(_0x579670);if(_0x24f556[_0x385af8(0x178)][_0x385af8(0x170)]===0x0)throw new Error(_0x385af8(0x176));if(_0x24f556[_0x385af8(0x178)][_0x385af8(0x170)]===0x1)return{'parent':_0x24f556[_0x385af8(0x178)][0x0]};return{'parent':_0x24f556['segments'][0x0],'child':_0x24f556[_0x385af8(0x178)]['slice'](0x1)[_0x385af8(0x165)]('/')};}
@@ -1 +1 @@
1
- function a76_0x2b06(_0x383eee,_0x2626c3){const _0x23d276=a76_0x23d2();return a76_0x2b06=function(_0x2b06b8,_0x1721a9){_0x2b06b8=_0x2b06b8-0x1c4;let _0x49901e=_0x23d276[_0x2b06b8];return _0x49901e;},a76_0x2b06(_0x383eee,_0x2626c3);}function a76_0x23d2(){const _0x151699=['9Eadhax','Invalid\x20segment\x20reference\x20format:\x20','303240KZycQf','1DfNsGt','214899GIopkR','.\x20Child\x20name\x20cannot\x20be\x20empty','849023yXHeig','89690pnTXpe','.\x20Parent\x20name\x20cannot\x20be\x20empty','1076520CWaCJw','2540PZOjLY','44BDxBnJ','262498mrMsZg','substring','1290YIjbSv'];a76_0x23d2=function(){return _0x151699;};return a76_0x23d2();}(function(_0x2b4713,_0x36a577){const _0x412de8=a76_0x2b06,_0x11255d=_0x2b4713();while(!![]){try{const _0x538d2e=parseInt(_0x412de8(0x1c9))/0x1*(parseInt(_0x412de8(0x1d2))/0x2)+-parseInt(_0x412de8(0x1ca))/0x3+-parseInt(_0x412de8(0x1c8))/0x4+-parseInt(_0x412de8(0x1d0))/0x5*(-parseInt(_0x412de8(0x1c5))/0x6)+-parseInt(_0x412de8(0x1cc))/0x7+-parseInt(_0x412de8(0x1cf))/0x8*(-parseInt(_0x412de8(0x1c6))/0x9)+-parseInt(_0x412de8(0x1cd))/0xa*(-parseInt(_0x412de8(0x1d1))/0xb);if(_0x538d2e===_0x36a577)break;else _0x11255d['push'](_0x11255d['shift']());}catch(_0x4519af){_0x11255d['push'](_0x11255d['shift']());}}}(a76_0x23d2,0x22b62));export function parseSegmentRef(_0x71db51){const _0x562e21=a76_0x2b06,_0x4b98fe=_0x71db51['indexOf']('/');if(_0x4b98fe===-0x1)return{'parentId':_0x71db51};if(_0x4b98fe===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x71db51+_0x562e21(0x1ce));const _0x14879e=_0x71db51[_0x562e21(0x1c4)](0x0,_0x4b98fe),_0x38c852=_0x71db51[_0x562e21(0x1c4)](_0x4b98fe+0x1);if(_0x38c852==='')throw new Error(_0x562e21(0x1c7)+_0x71db51+_0x562e21(0x1cb));return{'parentId':_0x14879e,'childId':_0x38c852};}
1
+ function a76_0x1632(){const _0x18c615=['.\x20Child\x20name\x20cannot\x20be\x20empty','1724219cDtSwv','.\x20Parent\x20name\x20cannot\x20be\x20empty','8hrckGG','141352hKvHMQ','substring','7505090XrEBGj','109304FcudSj','12618063sRTFuG','52991150hGZUCb','96NEGjPF','6qRmdNX','Invalid\x20segment\x20reference\x20format:\x20','73568iMNmRu'];a76_0x1632=function(){return _0x18c615;};return a76_0x1632();}function a76_0x24a4(_0x5cca21,_0x1b505c){const _0x1632af=a76_0x1632();return a76_0x24a4=function(_0x24a4c2,_0x33d043){_0x24a4c2=_0x24a4c2-0xab;let _0x39ef83=_0x1632af[_0x24a4c2];return _0x39ef83;},a76_0x24a4(_0x5cca21,_0x1b505c);}(function(_0x5d90e9,_0x5e8d65){const _0xdd5c79=a76_0x24a4,_0x29fabc=_0x5d90e9();while(!![]){try{const _0x36b083=-parseInt(_0xdd5c79(0xb8))/0x1+parseInt(_0xdd5c79(0xb3))/0x2*(-parseInt(_0xdd5c79(0xb0))/0x3)+-parseInt(_0xdd5c79(0xad))/0x4+-parseInt(_0xdd5c79(0xac))/0x5+-parseInt(_0xdd5c79(0xb1))/0x6*(parseInt(_0xdd5c79(0xb5))/0x7)+parseInt(_0xdd5c79(0xb7))/0x8*(-parseInt(_0xdd5c79(0xae))/0x9)+parseInt(_0xdd5c79(0xaf))/0xa;if(_0x36b083===_0x5e8d65)break;else _0x29fabc['push'](_0x29fabc['shift']());}catch(_0x18aec8){_0x29fabc['push'](_0x29fabc['shift']());}}}(a76_0x1632,0xc44a7));export function parseSegmentRef(_0x428b7e){const _0x23af9d=a76_0x24a4,_0x3b2885=_0x428b7e['indexOf']('/');if(_0x3b2885===-0x1)return{'parentId':_0x428b7e};if(_0x3b2885===0x0)throw new Error(_0x23af9d(0xb2)+_0x428b7e+_0x23af9d(0xb6));const _0x214df3=_0x428b7e['substring'](0x0,_0x3b2885),_0xb0433c=_0x428b7e[_0x23af9d(0xab)](_0x3b2885+0x1);if(_0xb0433c==='')throw new Error(_0x23af9d(0xb2)+_0x428b7e+_0x23af9d(0xb4));return{'parentId':_0x214df3,'childId':_0xb0433c};}
@@ -1 +1 @@
1
- (function(_0x1defa5,_0x37530d){const _0xe8ec7d=a77_0x3c74,_0x2335c5=_0x1defa5();while(!![]){try{const _0x3a5cac=-parseInt(_0xe8ec7d(0xe0))/0x1*(parseInt(_0xe8ec7d(0xd7))/0x2)+-parseInt(_0xe8ec7d(0xe1))/0x3*(parseInt(_0xe8ec7d(0xde))/0x4)+parseInt(_0xe8ec7d(0xdc))/0x5*(parseInt(_0xe8ec7d(0xe3))/0x6)+-parseInt(_0xe8ec7d(0xeb))/0x7*(parseInt(_0xe8ec7d(0xef))/0x8)+parseInt(_0xe8ec7d(0xec))/0x9+parseInt(_0xe8ec7d(0xed))/0xa+parseInt(_0xe8ec7d(0xd8))/0xb*(parseInt(_0xe8ec7d(0xd9))/0xc);if(_0x3a5cac===_0x37530d)break;else _0x2335c5['push'](_0x2335c5['shift']());}catch(_0x480c1d){_0x2335c5['push'](_0x2335c5['shift']());}}}(a77_0x5051,0x5b8a3));function a77_0x5051(){const _0x427615=['isSpinning','78fDSMwW','clock','phase','replace','toFixed','isTTY','extra','text','876155gKQszd','1737bcpsdS','4489780zjcOix','now','16dlhzIb','...','start','390934WWBHHL','3058vRgnez','29208saTDIv','intervalFactory','stop','101165RZwAUZ','stdout','4632sbIpLU','floor','3dFEAww','459aDOLYz'];a77_0x5051=function(){return _0x427615;};return a77_0x5051();}import a77_0x3da95a from'ora';export function createCommandSpinner(_0x2f8a82,_0x120e8e={}){const _0x343174=a77_0x3c74,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x120e8e;return a77_0x3da95a({'text':_0x2f8a82,'color':'cyan','isEnabled':forceEnabled||process[_0x343174(0xdd)][_0x343174(0xe8)]&&!verbose});}export async function withSpinner(_0x56a695,_0x5839c1,_0x241d9f={}){const _0x2b53bf=a77_0x3c74,_0x19b98f=_0x241d9f[_0x2b53bf(0xe4)]??(()=>Date[_0x2b53bf(0xee)]()),_0xcf14fe=createCommandSpinner(_0x56a695,_0x241d9f);_0xcf14fe[_0x2b53bf(0xd6)]();const _0x2cb1a8=_0x19b98f();try{const _0x175d8c=await _0x5839c1(),_0x62e114=_0x19b98f()-_0x2cb1a8;return _0xcf14fe[_0x2b53bf(0xdb)](),{'data':_0x175d8c,'elapsedMs':_0x62e114};}catch(_0x443eaf){_0xcf14fe[_0x2b53bf(0xdb)]();throw _0x443eaf;}}function a77_0x3c74(_0x1e8960,_0x34f6b0){const _0x5051c4=a77_0x5051();return a77_0x3c74=function(_0x3c74c1,_0x7250b9){_0x3c74c1=_0x3c74c1-0xd5;let _0x2282a0=_0x5051c4[_0x3c74c1];return _0x2282a0;},a77_0x3c74(_0x1e8960,_0x34f6b0);}export async function withQuerySpinner(_0xcf05b0,_0x3dd13b,_0x86d022={}){const _0x352a26=a77_0x3c74,_0x9cc52=_0x86d022[_0x352a26(0xe4)]??(()=>Date[_0x352a26(0xee)]()),_0x5c5d8c=_0x86d022[_0x352a26(0xda)]??setInterval,_0x234a6d=createCommandSpinner(_0xcf05b0,_0x86d022);_0x234a6d[_0x352a26(0xd6)]();const _0x56b7ab=_0x9cc52(),_0x1841f1=_0xcf05b0[_0x352a26(0xe6)](_0x352a26(0xd5),''),_0x1d4000={},_0x3dd1ae=()=>{const _0x177f5a=_0x352a26;if(!_0x234a6d[_0x177f5a(0xe2)])return;const _0x3a7c1d=_0x9cc52()-_0x56b7ab,_0x4b1d78=formatElapsed(_0x3a7c1d),_0x4393a5=_0x1d4000[_0x177f5a(0xe5)]??_0x1841f1,_0x48f7eb=_0x1d4000['jobId']?'\x20[Job\x20ID:\x20'+_0x1d4000['jobId']+']':'',_0x4548e4=_0x1d4000[_0x177f5a(0xe9)]?'\x20'+_0x1d4000[_0x177f5a(0xe9)]:'';_0x234a6d[_0x177f5a(0xea)]=_0x4393a5+'\x20'+_0x4b1d78+_0x4548e4+_0x48f7eb;},_0x310572=_0x5c5d8c(()=>{_0x3dd1ae();},0x3e8),_0x30082f={'setPhase':_0x3126ca=>{const _0x345505=_0x352a26;_0x1d4000[_0x345505(0xe5)]=_0x3126ca,_0x3dd1ae();},'setJobId':_0x6f2b7a=>{_0x1d4000['jobId']=_0x6f2b7a,_0x3dd1ae();},'setExtra':_0x445157=>{const _0x3a4125=_0x352a26;_0x1d4000[_0x3a4125(0xe9)]=_0x445157,_0x3dd1ae();}};_0x3dd1ae();try{const _0x256383=await _0x3dd13b(_0x30082f),_0x9e10d6=_0x9cc52()-_0x56b7ab;return{'data':_0x256383,'elapsedMs':_0x9e10d6};}finally{clearInterval(_0x310572),_0x234a6d['stop']();}}export function formatElapsed(_0x1595fc){const _0x440e1d=a77_0x3c74,_0x173093=Math[_0x440e1d(0xdf)](_0x1595fc/0x3e8);if(_0x173093<0x3c)return(_0x1595fc/0x3e8)[_0x440e1d(0xe7)](0x1)+'s';const _0x4ffd13=Math[_0x440e1d(0xdf)](_0x173093/0x3c),_0x14a8bc=_0x173093%0x3c;if(_0x4ffd13<0x3c)return _0x4ffd13+'m\x20'+_0x14a8bc+'s';const _0x2bbf4a=Math[_0x440e1d(0xdf)](_0x4ffd13/0x3c),_0x2d1815=_0x4ffd13%0x3c;return _0x2bbf4a+'h\x20'+_0x2d1815+'m';}
1
+ (function(_0x20e0ae,_0x2ccd29){const _0x77d737=a77_0x27c5,_0x1ebf5d=_0x20e0ae();while(!![]){try{const _0x47f0d4=parseInt(_0x77d737(0x181))/0x1+-parseInt(_0x77d737(0x184))/0x2*(-parseInt(_0x77d737(0x17c))/0x3)+-parseInt(_0x77d737(0x16d))/0x4*(parseInt(_0x77d737(0x176))/0x5)+-parseInt(_0x77d737(0x179))/0x6+-parseInt(_0x77d737(0x174))/0x7+parseInt(_0x77d737(0x16c))/0x8*(parseInt(_0x77d737(0x171))/0x9)+-parseInt(_0x77d737(0x177))/0xa*(-parseInt(_0x77d737(0x182))/0xb);if(_0x47f0d4===_0x2ccd29)break;else _0x1ebf5d['push'](_0x1ebf5d['shift']());}catch(_0x42951e){_0x1ebf5d['push'](_0x1ebf5d['shift']());}}}(a77_0x3bb7,0xe99a5));import a77_0x20bc12 from'ora';function a77_0x27c5(_0x52a951,_0x150ff4){const _0x3bb76e=a77_0x3bb7();return a77_0x27c5=function(_0x27c542,_0xacbc5e){_0x27c542=_0x27c542-0x16c;let _0x36ef7f=_0x3bb76e[_0x27c542];return _0x36ef7f;},a77_0x27c5(_0x52a951,_0x150ff4);}export function createCommandSpinner(_0x464812,_0xa951c7={}){const _0x295ffe=a77_0x27c5,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xa951c7;return a77_0x20bc12({'text':_0x464812,'color':'cyan','isEnabled':forceEnabled||process[_0x295ffe(0x170)][_0x295ffe(0x16e)]&&!verbose});}export async function withSpinner(_0x5318ee,_0xa8d974,_0x459730={}){const _0x19b1c2=a77_0x27c5,_0x3c37ed=_0x459730['clock']??(()=>Date[_0x19b1c2(0x172)]()),_0xed5b54=createCommandSpinner(_0x5318ee,_0x459730);_0xed5b54[_0x19b1c2(0x17e)]();const _0x52b290=_0x3c37ed();try{const _0x226c42=await _0xa8d974(),_0x40925a=_0x3c37ed()-_0x52b290;return _0xed5b54[_0x19b1c2(0x173)](),{'data':_0x226c42,'elapsedMs':_0x40925a};}catch(_0x29c047){_0xed5b54['stop']();throw _0x29c047;}}export async function withQuerySpinner(_0x35dd75,_0x502909,_0xb657e6={}){const _0x2e2fb7=a77_0x27c5,_0x420d03=_0xb657e6[_0x2e2fb7(0x17d)]??(()=>Date['now']()),_0x3b7b13=_0xb657e6['intervalFactory']??setInterval,_0x28bfda=createCommandSpinner(_0x35dd75,_0xb657e6);_0x28bfda[_0x2e2fb7(0x17e)]();const _0x5ae51c=_0x420d03(),_0x2403be=_0x35dd75['replace'](_0x2e2fb7(0x17a),''),_0x2b75c3={},_0x55540=()=>{const _0x246b65=_0x2e2fb7;if(!_0x28bfda[_0x246b65(0x17b)])return;const _0x4904ff=_0x420d03()-_0x5ae51c,_0x1d868a=formatElapsed(_0x4904ff),_0x58b582=_0x2b75c3['phase']??_0x2403be,_0xc36d41=_0x2b75c3['jobId']?_0x246b65(0x185)+_0x2b75c3[_0x246b65(0x178)]+']':'',_0x174174=_0x2b75c3['extra']?'\x20'+_0x2b75c3['extra']:'';_0x28bfda[_0x246b65(0x175)]=_0x58b582+'\x20'+_0x1d868a+_0x174174+_0xc36d41;},_0x1c9a8c=_0x3b7b13(()=>{_0x55540();},0x3e8),_0x26240b={'setPhase':_0x449f82=>{const _0x43ac6e=_0x2e2fb7;_0x2b75c3[_0x43ac6e(0x180)]=_0x449f82,_0x55540();},'setJobId':_0x40b486=>{const _0x45dc22=_0x2e2fb7;_0x2b75c3[_0x45dc22(0x178)]=_0x40b486,_0x55540();},'setExtra':_0x5d0ac7=>{const _0xbe2f6f=_0x2e2fb7;_0x2b75c3[_0xbe2f6f(0x183)]=_0x5d0ac7,_0x55540();}};_0x55540();try{const _0x5132c4=await _0x502909(_0x26240b),_0x4a92f0=_0x420d03()-_0x5ae51c;return{'data':_0x5132c4,'elapsedMs':_0x4a92f0};}finally{clearInterval(_0x1c9a8c),_0x28bfda['stop']();}}export function formatElapsed(_0x667faa){const _0x4b26e7=a77_0x27c5,_0xb3900f=Math[_0x4b26e7(0x16f)](_0x667faa/0x3e8);if(_0xb3900f<0x3c)return(_0x667faa/0x3e8)[_0x4b26e7(0x17f)](0x1)+'s';const _0xeda6c6=Math[_0x4b26e7(0x16f)](_0xb3900f/0x3c),_0x4f9487=_0xb3900f%0x3c;if(_0xeda6c6<0x3c)return _0xeda6c6+'m\x20'+_0x4f9487+'s';const _0x59111d=Math['floor'](_0xeda6c6/0x3c),_0x1bd2ce=_0xeda6c6%0x3c;return _0x59111d+'h\x20'+_0x1bd2ce+'m';}function a77_0x3bb7(){const _0x1eeabe=['jobId','3730908xmJAfL','...','isSpinning','6IyncBJ','clock','start','toFixed','phase','83036KvSrWb','715wjKBtr','extra','1499606iQjBJl','\x20[Job\x20ID:\x20','168boaMeF','4xSsCCk','isTTY','floor','stdout','216189ujojpY','now','stop','8315363cRmdse','text','5195920YjZCfd','264410SUbQEF'];a77_0x3bb7=function(){return _0x1eeabe;};return a77_0x3bb7();}
@@ -1 +1 @@
1
- (function(_0x5b397d,_0x22afe6){const _0x288136=a78_0x2027,_0x4d6ff1=_0x5b397d();while(!![]){try{const _0x48fd79=parseInt(_0x288136(0xee))/0x1+-parseInt(_0x288136(0xe3))/0x2+parseInt(_0x288136(0xf4))/0x3*(parseInt(_0x288136(0xf3))/0x4)+parseInt(_0x288136(0xe5))/0x5+parseInt(_0x288136(0xf8))/0x6*(parseInt(_0x288136(0xf0))/0x7)+-parseInt(_0x288136(0xf1))/0x8+parseInt(_0x288136(0xeb))/0x9*(-parseInt(_0x288136(0xec))/0xa);if(_0x48fd79===_0x22afe6)break;else _0x4d6ff1['push'](_0x4d6ff1['shift']());}catch(_0x538f4d){_0x4d6ff1['push'](_0x4d6ff1['shift']());}}}(a78_0x4d04,0xaf4c5));function a78_0x4d04(){const _0x2c7a76=['toLowerCase','\x27:\x20','774UWpYOY','message','EACCES','code','replace','273868RVwrKM','Content\x20contains\x20no\x20SQL\x20statements','1113240kjEycj','trim','length','utf-8','File\x20\x27','ENOENT','9178695GqjEFw','10pbyVaa','Permission\x20denied\x20reading\x20file\x20\x27','657385cqvlNM','\x27\x20not\x20found','61922FfMCtF','3954968kmsNJR','map','4bpFBUn','1044042lUxZys','push'];a78_0x4d04=function(){return _0x2c7a76;};return a78_0x4d04();}import{readFileSync}from'fs';export function stripSqlComments(_0x20b927){const _0x53acb1=a78_0x2027;let _0x556bbd=_0x20b927[_0x53acb1(0xe2)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x556bbd=_0x556bbd['replace'](/--.*$/gm,''),_0x556bbd[_0x53acb1(0xe6)]();}function isEscaped(_0x2078cc,_0x12ba4e){let _0x2a434c=0x0;for(let _0x441431=_0x12ba4e-0x1;_0x441431>=0x0&&_0x2078cc[_0x441431]==='\x5c';_0x441431--){_0x2a434c++;}return _0x2a434c%0x2===0x1;}export function splitSqlStatements(_0x15854f){const _0x198f35=a78_0x2027,_0x374386=stripSqlComments(_0x15854f);if(!_0x374386)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x27fe1b=[];let _0x5beb71='',_0x3a8b9d=![],_0x1f3105=![],_0x517ff1=![];for(let _0x41249a=0x0;_0x41249a<_0x15854f[_0x198f35(0xe7)];_0x41249a++){const _0x47179d=_0x15854f[_0x41249a];if(_0x47179d==='\x27'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x1f3105&&!_0x517ff1)_0x3a8b9d=!_0x3a8b9d;else{if(_0x47179d==='\x22'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x3a8b9d&&!_0x517ff1)_0x1f3105=!_0x1f3105;else _0x47179d==='`'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x3a8b9d&&!_0x1f3105&&(_0x517ff1=!_0x517ff1);}if(_0x47179d===';'&&!_0x3a8b9d&&!_0x1f3105&&!_0x517ff1){const _0x2f31fd=_0x5beb71[_0x198f35(0xe6)]();_0x2f31fd&&_0x27fe1b[_0x198f35(0xf5)](_0x2f31fd),_0x5beb71='';}else _0x5beb71+=_0x47179d;}const _0xd18bc3=_0x5beb71[_0x198f35(0xe6)]();_0xd18bc3&&_0x27fe1b[_0x198f35(0xf5)](_0xd18bc3);const _0xc51be1=_0x27fe1b[_0x198f35(0xf2)](_0x567894=>_0x567894[_0x198f35(0xe6)]())['filter'](_0x154f2c=>{const _0x41e884=_0x198f35,_0x3da1d6=stripSqlComments(_0x154f2c);return _0x3da1d6[_0x41e884(0xe7)]>0x0;});if(_0xc51be1[_0x198f35(0xe7)]===0x0)throw new Error(_0x198f35(0xe4));return _0xc51be1;}export function readFileContent(_0xe3c05a){const _0x566522=a78_0x2027;try{return readFileSync(_0xe3c05a,_0x566522(0xe8));}catch(_0x2470c4){const _0x1ad311=_0x2470c4[_0x566522(0xe1)];if(_0x1ad311===_0x566522(0xea))throw new Error(_0x566522(0xe9)+_0xe3c05a+_0x566522(0xef));else{if(_0x1ad311===_0x566522(0xe0))throw new Error(_0x566522(0xed)+_0xe3c05a+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0xe3c05a+_0x566522(0xf7)+_0x2470c4[_0x566522(0xdf)]);}}}function a78_0x2027(_0x331ae7,_0x38a988){const _0x4d043a=a78_0x4d04();return a78_0x2027=function(_0x202768,_0x29393c){_0x202768=_0x202768-0xdf;let _0x13d1c2=_0x4d043a[_0x202768];return _0x13d1c2;},a78_0x2027(_0x331ae7,_0x38a988);}export function readSqlStatementsFromFile(_0x112b97){const _0x29cf87=a78_0x2027,_0x595478=readFileContent(_0x112b97);try{return splitSqlStatements(_0x595478);}catch(_0x5cfc36){throw new Error('File\x20\x27'+_0x112b97+'\x27\x20'+_0x5cfc36[_0x29cf87(0xdf)][_0x29cf87(0xf6)]());}}
1
+ function a78_0x5bd0(){const _0x16eb58=['1257798tXreky','56pMztpo','push','EACCES','Content\x20contains\x20no\x20SQL\x20statements','2329576AOkDgq','trim','Error\x20reading\x20file\x20\x27','5906100QORqrx','\x27:\x20','length','message','\x27\x20not\x20found','1466554XYqSwD','5767452ejlyxJ','File\x20\x27','4782104LSqhuZ','map','utf-8','4085412TfEYqq','replace'];a78_0x5bd0=function(){return _0x16eb58;};return a78_0x5bd0();}(function(_0x518124,_0x513705){const _0x4ab702=a78_0x4055,_0x5c70a7=_0x518124();while(!![]){try{const _0x56b28a=parseInt(_0x4ab702(0x1b6))/0x1+-parseInt(_0x4ab702(0x1a9))/0x2+-parseInt(_0x4ab702(0x1a7))/0x3+parseInt(_0x4ab702(0x1a4))/0x4+-parseInt(_0x4ab702(0x1b1))/0x5+-parseInt(_0x4ab702(0x1b7))/0x6+parseInt(_0x4ab702(0x1aa))/0x7*(parseInt(_0x4ab702(0x1ae))/0x8);if(_0x56b28a===_0x513705)break;else _0x5c70a7['push'](_0x5c70a7['shift']());}catch(_0x5ab2dc){_0x5c70a7['push'](_0x5c70a7['shift']());}}}(a78_0x5bd0,0xd197b));import{readFileSync}from'fs';export function stripSqlComments(_0x3ef928){const _0x9cedab=a78_0x4055;let _0x253025=_0x3ef928['replace'](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x253025=_0x253025[_0x9cedab(0x1a8)](/--.*$/gm,''),_0x253025['trim']();}function a78_0x4055(_0x3e830a,_0xfc8321){const _0x5bd0a0=a78_0x5bd0();return a78_0x4055=function(_0x4055e6,_0x310d32){_0x4055e6=_0x4055e6-0x1a3;let _0xee7969=_0x5bd0a0[_0x4055e6];return _0xee7969;},a78_0x4055(_0x3e830a,_0xfc8321);}function isEscaped(_0x1d581c,_0x3cbcf7){let _0x1f367a=0x0;for(let _0x17d64e=_0x3cbcf7-0x1;_0x17d64e>=0x0&&_0x1d581c[_0x17d64e]==='\x5c';_0x17d64e--){_0x1f367a++;}return _0x1f367a%0x2===0x1;}export function splitSqlStatements(_0x436c6c){const _0x2db40d=a78_0x4055,_0x4f1889=stripSqlComments(_0x436c6c);if(!_0x4f1889)throw new Error(_0x2db40d(0x1ad));const _0x568f82=[];let _0x3e9da7='',_0x4bb059=![],_0x206ca3=![],_0x2fd846=![];for(let _0x28acf7=0x0;_0x28acf7<_0x436c6c['length'];_0x28acf7++){const _0x2b55a3=_0x436c6c[_0x28acf7];if(_0x2b55a3==='\x27'&&!isEscaped(_0x436c6c,_0x28acf7)&&!_0x206ca3&&!_0x2fd846)_0x4bb059=!_0x4bb059;else{if(_0x2b55a3==='\x22'&&!isEscaped(_0x436c6c,_0x28acf7)&&!_0x4bb059&&!_0x2fd846)_0x206ca3=!_0x206ca3;else _0x2b55a3==='`'&&!isEscaped(_0x436c6c,_0x28acf7)&&!_0x4bb059&&!_0x206ca3&&(_0x2fd846=!_0x2fd846);}if(_0x2b55a3===';'&&!_0x4bb059&&!_0x206ca3&&!_0x2fd846){const _0x9e546e=_0x3e9da7[_0x2db40d(0x1af)]();_0x9e546e&&_0x568f82[_0x2db40d(0x1ab)](_0x9e546e),_0x3e9da7='';}else _0x3e9da7+=_0x2b55a3;}const _0x3d5ddf=_0x3e9da7['trim']();_0x3d5ddf&&_0x568f82[_0x2db40d(0x1ab)](_0x3d5ddf);const _0x5ba5fd=_0x568f82[_0x2db40d(0x1a5)](_0x369f38=>_0x369f38[_0x2db40d(0x1af)]())['filter'](_0x446132=>{const _0x302996=_0x2db40d,_0x5d621b=stripSqlComments(_0x446132);return _0x5d621b[_0x302996(0x1b3)]>0x0;});if(_0x5ba5fd[_0x2db40d(0x1b3)]===0x0)throw new Error(_0x2db40d(0x1ad));return _0x5ba5fd;}export function readFileContent(_0x5b22e9){const _0x2d555b=a78_0x4055;try{return readFileSync(_0x5b22e9,_0x2d555b(0x1a6));}catch(_0x39efba){const _0x5b36eb=_0x39efba['code'];if(_0x5b36eb==='ENOENT')throw new Error(_0x2d555b(0x1a3)+_0x5b22e9+_0x2d555b(0x1b5));else{if(_0x5b36eb===_0x2d555b(0x1ac))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x5b22e9+'\x27');else throw new Error(_0x2d555b(0x1b0)+_0x5b22e9+_0x2d555b(0x1b2)+_0x39efba[_0x2d555b(0x1b4)]);}}}export function readSqlStatementsFromFile(_0x19e8db){const _0x2fec54=a78_0x4055,_0x190e36=readFileContent(_0x19e8db);try{return splitSqlStatements(_0x190e36);}catch(_0x3b89d5){throw new Error(_0x2fec54(0x1a3)+_0x19e8db+'\x27\x20'+_0x3b89d5[_0x2fec54(0x1b4)]['toLowerCase']());}}
@@ -1 +1 @@
1
- function a79_0x3178(_0x363e76,_0x544f58){const _0x56924f=a79_0x5692();return a79_0x3178=function(_0x3178cc,_0x2627b1){_0x3178cc=_0x3178cc-0x1db;let _0x30b162=_0x56924f[_0x3178cc];return _0x30b162;},a79_0x3178(_0x363e76,_0x544f58);}(function(_0x4f7908,_0x3830dc){const _0x18213a=a79_0x3178,_0x2d01e9=_0x4f7908();while(!![]){try{const _0x423353=parseInt(_0x18213a(0x1db))/0x1+-parseInt(_0x18213a(0x1ed))/0x2+parseInt(_0x18213a(0x1ec))/0x3+parseInt(_0x18213a(0x1e9))/0x4+-parseInt(_0x18213a(0x1dc))/0x5+-parseInt(_0x18213a(0x1e7))/0x6+parseInt(_0x18213a(0x1e2))/0x7;if(_0x423353===_0x3830dc)break;else _0x2d01e9['push'](_0x2d01e9['shift']());}catch(_0x4bcb3f){_0x2d01e9['push'](_0x2d01e9['shift']());}}}(a79_0x5692,0x3a534));export async function*parseSSEStream(_0x2ae387,_0x4c9a22){const _0x2a57e8=a79_0x3178;if(!_0x2ae387[_0x2a57e8(0x1dd)])throw new Error(_0x2a57e8(0x1eb));const _0x4fffe4=_0x2ae387[_0x2a57e8(0x1dd)][_0x2a57e8(0x1e0)](),_0x2c716d=new TextDecoder();let _0xf3dd43='',_0x2e93bf={};try{while(!![]){const {done:_0x5878fb,value:_0x4024ee}=await _0x4fffe4[_0x2a57e8(0x1ea)]();if(_0x5878fb){if(_0x2e93bf['data']){_0x4c9a22?.[_0x2a57e8(0x1e1)]('[LLM\x20API\x20SSE]\x20'+_0x2e93bf[_0x2a57e8(0x1ef)]);const _0x1c6b0c=parseSSEData(_0x2e93bf[_0x2a57e8(0x1ef)]);yield _0x1c6b0c;}break;}_0xf3dd43+=_0x2c716d['decode'](_0x4024ee,{'stream':!![]});const _0x4ea2db=_0xf3dd43[_0x2a57e8(0x1de)]('\x0a');_0xf3dd43=_0x4ea2db[_0x2a57e8(0x1df)]()||'';for(const _0x4f1954 of _0x4ea2db){if(_0x4f1954['trim']()===''){if(_0x2e93bf[_0x2a57e8(0x1ef)]){_0x4c9a22?.[_0x2a57e8(0x1e1)](_0x2a57e8(0x1e4)+_0x2e93bf[_0x2a57e8(0x1ef)]);const _0x595702=parseSSEData(_0x2e93bf[_0x2a57e8(0x1ef)]);yield _0x595702,_0x2e93bf={};}continue;}if(_0x4f1954[_0x2a57e8(0x1e3)](':'))continue;const _0x29fd2c=_0x4f1954[_0x2a57e8(0x1ee)](':');if(_0x29fd2c===-0x1)continue;const _0x348ad1=_0x4f1954[_0x2a57e8(0x1e6)](0x0,_0x29fd2c);let _0x42acd5=_0x4f1954[_0x2a57e8(0x1e6)](_0x29fd2c+0x1);_0x42acd5[_0x2a57e8(0x1e3)]('\x20')&&(_0x42acd5=_0x42acd5['slice'](0x1));switch(_0x348ad1){case'event':_0x2e93bf['event']=_0x42acd5;break;case _0x2a57e8(0x1ef):_0x2e93bf[_0x2a57e8(0x1ef)]=_0x2e93bf[_0x2a57e8(0x1ef)]?_0x2e93bf[_0x2a57e8(0x1ef)]+'\x0a'+_0x42acd5:_0x42acd5;break;case'id':_0x2e93bf['id']=_0x42acd5;break;}}}}finally{_0x4fffe4['releaseLock']();}}function parseSSEData(_0x44e8f1){const _0x2a718a=a79_0x3178;try{return JSON[_0x2a718a(0x1e5)](_0x44e8f1);}catch(_0x5b8701){throw new Error(_0x2a718a(0x1e8)+_0x44e8f1,{'cause':_0x5b8701});}}function a79_0x5692(){const _0x5d6cfa=['1281470XiDQdB','body','split','pop','getReader','debug','1794835DKmZDK','startsWith','[LLM\x20API\x20SSE]\x20','parse','slice','1714062fUricj','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1599980AKGJpV','read','Response\x20body\x20is\x20null','38883bgPprN','684662GEKfhg','indexOf','data','453841yYOCKy'];a79_0x5692=function(){return _0x5d6cfa;};return a79_0x5692();}
1
+ function a79_0x3856(){const _0x3761cb=['parse','split','Response\x20body\x20is\x20null','5518950NPfFFb','data','24921594lNjOAJ','69111QBfckC','releaseLock','startsWith','event','11863YjSvds','read','5467720NoNCAO','158oydEta','pop','indexOf','4712976JUUTko','trim','slice','[LLM\x20API\x20SSE]\x20','1709298EUdxIA','getReader','body','606RYOhmz'];a79_0x3856=function(){return _0x3761cb;};return a79_0x3856();}(function(_0x5da674,_0x28bb52){const _0x48dc35=a79_0x528e,_0x5d0bc5=_0x5da674();while(!![]){try{const _0x1f277a=-parseInt(_0x48dc35(0x120))/0x1*(parseInt(_0x48dc35(0x123))/0x2)+-parseInt(_0x48dc35(0x12a))/0x3+-parseInt(_0x48dc35(0x126))/0x4+-parseInt(_0x48dc35(0x131))/0x5+-parseInt(_0x48dc35(0x12d))/0x6*(-parseInt(_0x48dc35(0x11c))/0x7)+parseInt(_0x48dc35(0x122))/0x8+parseInt(_0x48dc35(0x11b))/0x9;if(_0x1f277a===_0x28bb52)break;else _0x5d0bc5['push'](_0x5d0bc5['shift']());}catch(_0x5aaa92){_0x5d0bc5['push'](_0x5d0bc5['shift']());}}}(a79_0x3856,0xa14f7));export async function*parseSSEStream(_0x3132a8,_0x21f9e1){const _0x111ea2=a79_0x528e;if(!_0x3132a8[_0x111ea2(0x12c)])throw new Error(_0x111ea2(0x130));const _0x2ca07f=_0x3132a8['body'][_0x111ea2(0x12b)](),_0x20d8ba=new TextDecoder();let _0x4f2c4a='',_0x525a10={};try{while(!![]){const {done:_0x3205df,value:_0x1ff56b}=await _0x2ca07f[_0x111ea2(0x121)]();if(_0x3205df){if(_0x525a10[_0x111ea2(0x11a)]){_0x21f9e1?.['debug'](_0x111ea2(0x129)+_0x525a10['data']);const _0x48192b=parseSSEData(_0x525a10[_0x111ea2(0x11a)]);yield _0x48192b;}break;}_0x4f2c4a+=_0x20d8ba['decode'](_0x1ff56b,{'stream':!![]});const _0x2985cb=_0x4f2c4a[_0x111ea2(0x12f)]('\x0a');_0x4f2c4a=_0x2985cb[_0x111ea2(0x124)]()||'';for(const _0xe71955 of _0x2985cb){if(_0xe71955[_0x111ea2(0x127)]()===''){if(_0x525a10[_0x111ea2(0x11a)]){_0x21f9e1?.['debug'](_0x111ea2(0x129)+_0x525a10['data']);const _0x899600=parseSSEData(_0x525a10['data']);yield _0x899600,_0x525a10={};}continue;}if(_0xe71955[_0x111ea2(0x11e)](':'))continue;const _0x4dac23=_0xe71955[_0x111ea2(0x125)](':');if(_0x4dac23===-0x1)continue;const _0xb2ed74=_0xe71955[_0x111ea2(0x128)](0x0,_0x4dac23);let _0x645b4e=_0xe71955[_0x111ea2(0x128)](_0x4dac23+0x1);_0x645b4e['startsWith']('\x20')&&(_0x645b4e=_0x645b4e[_0x111ea2(0x128)](0x1));switch(_0xb2ed74){case'event':_0x525a10[_0x111ea2(0x11f)]=_0x645b4e;break;case _0x111ea2(0x11a):_0x525a10['data']=_0x525a10[_0x111ea2(0x11a)]?_0x525a10[_0x111ea2(0x11a)]+'\x0a'+_0x645b4e:_0x645b4e;break;case'id':_0x525a10['id']=_0x645b4e;break;}}}}finally{_0x2ca07f[_0x111ea2(0x11d)]();}}function a79_0x528e(_0x39e63f,_0x8f346b){const _0x3856bb=a79_0x3856();return a79_0x528e=function(_0x528e95,_0x426f19){_0x528e95=_0x528e95-0x11a;let _0x39d31b=_0x3856bb[_0x528e95];return _0x39d31b;},a79_0x528e(_0x39e63f,_0x8f346b);}function parseSSEData(_0xafa67a){const _0x506d3c=a79_0x528e;try{return JSON[_0x506d3c(0x12e)](_0xafa67a);}catch(_0x44b5ae){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0xafa67a,{'cause':_0x44b5ae});}}
@@ -1 +1 @@
1
- (function(_0x5ddfb8,_0x30ced7){const _0x39a305=a80_0x58fe,_0x35c170=_0x5ddfb8();while(!![]){try{const _0x38a415=-parseInt(_0x39a305(0x88))/0x1*(parseInt(_0x39a305(0x91))/0x2)+-parseInt(_0x39a305(0x8a))/0x3*(-parseInt(_0x39a305(0x82))/0x4)+-parseInt(_0x39a305(0x7c))/0x5*(-parseInt(_0x39a305(0x7d))/0x6)+-parseInt(_0x39a305(0x8c))/0x7+parseInt(_0x39a305(0x8d))/0x8+-parseInt(_0x39a305(0x80))/0x9*(parseInt(_0x39a305(0x86))/0xa)+-parseInt(_0x39a305(0x90))/0xb*(-parseInt(_0x39a305(0x8b))/0xc);if(_0x38a415===_0x30ced7)break;else _0x35c170['push'](_0x35c170['shift']());}catch(_0x393b2b){_0x35c170['push'](_0x35c170['shift']());}}}(a80_0x13f2,0xa0d38));function a80_0x58fe(_0x3da654,_0x45e9ec){const _0x13f298=a80_0x13f2();return a80_0x58fe=function(_0x58fe66,_0x2604e7){_0x58fe66=_0x58fe66-0x76;let _0x2cd9ad=_0x13f298[_0x58fe66];return _0x2cd9ad;},a80_0x58fe(_0x3da654,_0x45e9ec);}function a80_0x13f2(){const _0x3ea8bd=['replace','repeat','99tQAnhg','147894NLVkbp','toLowerCase','random','USERNAME','env','Cannot\x20escape\x20empty\x20string\x20literal','padStart','703315kkAjUx','6YtTiKV','test','slice','64044qtnJIj','length','4yWRpxl','floor','substring','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','820cwWYyL','unknown','1dEpEiK','trim','774021LHxOME','1725564whbPVR','7890155yYXwwK','6004200CCtAWZ'];a80_0x13f2=function(){return _0x3ea8bd;};return a80_0x13f2();}import a80_0x2d6e5f from'string-width';export function stringWidth(_0x5a59cc){return a80_0x2d6e5f(_0x5a59cc);}export function padEnd(_0x281527,_0x24f6bb){const _0x24c123=a80_0x58fe,_0x59976c=stringWidth(_0x281527);if(_0x59976c>=_0x24f6bb)return _0x281527;return _0x281527+'\x20'[_0x24c123(0x8f)](_0x24f6bb-_0x59976c);}export function padStart(_0x1d5116,_0x349567){const _0x32401d=stringWidth(_0x1d5116);if(_0x32401d>=_0x349567)return _0x1d5116;return'\x20'['repeat'](_0x349567-_0x32401d)+_0x1d5116;}export function centerAlign(_0x4a028b,_0x4b1a78){const _0x56805b=a80_0x58fe,_0x21e85d=stringWidth(_0x4a028b);if(_0x21e85d>_0x4b1a78){if(_0x4b1a78<=0x1)return'…'[_0x56805b(0x84)](0x0,_0x4b1a78);let _0x4dd71a=_0x4a028b;while(stringWidth(_0x4dd71a+'…')>_0x4b1a78){_0x4dd71a=_0x4dd71a[_0x56805b(0x7f)](0x0,-0x1);}return _0x4dd71a+'…';}if(_0x21e85d===_0x4b1a78)return _0x4a028b;const _0x427c68=_0x4b1a78-_0x21e85d,_0x3bd3e8=Math[_0x56805b(0x83)](_0x427c68/0x2),_0x2aee4b=_0x427c68-_0x3bd3e8;return'\x20'[_0x56805b(0x8f)](_0x3bd3e8)+_0x4a028b+'\x20'[_0x56805b(0x8f)](_0x2aee4b);}export function escapeStringLiteral(_0x2ead6e){const _0x428ae6=a80_0x58fe;if(!_0x2ead6e||_0x2ead6e[_0x428ae6(0x89)]()[_0x428ae6(0x81)]===0x0)throw new Error(_0x428ae6(0x7a));const _0x86e926=_0x2ead6e[_0x428ae6(0x8e)](/'/g,'\x27\x27');return'\x27'+_0x86e926+'\x27';}export function globToLike(_0x4b98a2){const _0x5358ca=a80_0x58fe;let _0x494ad0=_0x4b98a2[_0x5358ca(0x8e)](/\\/g,'\x5c\x5c')[_0x5358ca(0x8e)](/%/g,'\x5c%')[_0x5358ca(0x8e)](/_/g,'\x5c_');return _0x494ad0=_0x494ad0[_0x5358ca(0x8e)](/\*/g,'%')[_0x5358ca(0x8e)](/\?/g,'_'),_0x494ad0;}export function buildLikePattern(_0x107c8a){const _0x3bf082=a80_0x58fe;if(!_0x107c8a||_0x107c8a[_0x3bf082(0x89)]()[_0x3bf082(0x81)]===0x0)throw new Error(_0x3bf082(0x85));const _0xa507c5=globToLike(_0x107c8a),_0x1b0b03=_0xa507c5[_0x3bf082(0x8e)](/'/g,'\x27\x27');return'\x27'+_0x1b0b03+'\x27';}export function matchGlobPattern(_0x83a60c,_0x1b14c7){const _0x4ac84b=a80_0x58fe,_0x999ffa=_0x1b14c7[_0x4ac84b(0x8e)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x4ac84b(0x8e)](/\*/g,'.*')[_0x4ac84b(0x8e)](/\?/g,'.'),_0x564bb9=new RegExp('^'+_0x999ffa+'$');return _0x564bb9[_0x4ac84b(0x7e)](_0x83a60c);}export function getSanitizedUsername(){const _0x268a2d=a80_0x58fe,_0x3e61db=process[_0x268a2d(0x79)]['USER']||process[_0x268a2d(0x79)][_0x268a2d(0x78)]||_0x268a2d(0x87);return _0x3e61db[_0x268a2d(0x8e)](/[^a-zA-Z0-9]/g,'')[_0x268a2d(0x76)]();}export function generateRandomHex(){const _0xed59bd=a80_0x58fe,_0x1bcf08=Math[_0xed59bd(0x83)](Math[_0xed59bd(0x77)]()*0xfffff);return _0x1bcf08['toString'](0x10)[_0xed59bd(0x7b)](0x5,'0');}
1
+ (function(_0x594f10,_0x3b6a3d){const _0x3f117b=a80_0x1527,_0x11a95e=_0x594f10();while(!![]){try{const _0x596743=parseInt(_0x3f117b(0xc3))/0x1*(-parseInt(_0x3f117b(0xc7))/0x2)+-parseInt(_0x3f117b(0xbf))/0x3+-parseInt(_0x3f117b(0xcb))/0x4+parseInt(_0x3f117b(0xd2))/0x5+-parseInt(_0x3f117b(0xc2))/0x6*(-parseInt(_0x3f117b(0xce))/0x7)+-parseInt(_0x3f117b(0xc8))/0x8+parseInt(_0x3f117b(0xc5))/0x9;if(_0x596743===_0x3b6a3d)break;else _0x11a95e['push'](_0x11a95e['shift']());}catch(_0x58a5df){_0x11a95e['push'](_0x11a95e['shift']());}}}(a80_0x5cb1,0x741a7));import a80_0x10f43b from'string-width';export function stringWidth(_0x366168){return a80_0x10f43b(_0x366168);}export function padEnd(_0x269202,_0x5b7f98){const _0x3c5065=a80_0x1527,_0x3492c9=stringWidth(_0x269202);if(_0x3492c9>=_0x5b7f98)return _0x269202;return _0x269202+'\x20'[_0x3c5065(0xbb)](_0x5b7f98-_0x3492c9);}export function padStart(_0x53f992,_0x3c5252){const _0x907b68=a80_0x1527,_0x56acd1=stringWidth(_0x53f992);if(_0x56acd1>=_0x3c5252)return _0x53f992;return'\x20'[_0x907b68(0xbb)](_0x3c5252-_0x56acd1)+_0x53f992;}export function centerAlign(_0xcad752,_0x2e57d1){const _0x44f55a=a80_0x1527,_0x1714e9=stringWidth(_0xcad752);if(_0x1714e9>_0x2e57d1){if(_0x2e57d1<=0x1)return'…'[_0x44f55a(0xc1)](0x0,_0x2e57d1);let _0x5c10f7=_0xcad752;while(stringWidth(_0x5c10f7+'…')>_0x2e57d1){_0x5c10f7=_0x5c10f7['slice'](0x0,-0x1);}return _0x5c10f7+'…';}if(_0x1714e9===_0x2e57d1)return _0xcad752;const _0x2dff5f=_0x2e57d1-_0x1714e9,_0x5550de=Math['floor'](_0x2dff5f/0x2),_0x5b0060=_0x2dff5f-_0x5550de;return'\x20'[_0x44f55a(0xbb)](_0x5550de)+_0xcad752+'\x20'[_0x44f55a(0xbb)](_0x5b0060);}export function escapeStringLiteral(_0x50fad5){const _0x36dc48=a80_0x1527;if(!_0x50fad5||_0x50fad5[_0x36dc48(0xc6)]()[_0x36dc48(0xbd)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x356589=_0x50fad5['replace'](/'/g,'\x27\x27');return'\x27'+_0x356589+'\x27';}export function globToLike(_0xc6fca4){const _0x37100=a80_0x1527;let _0x483e06=_0xc6fca4[_0x37100(0xca)](/\\/g,'\x5c\x5c')[_0x37100(0xca)](/%/g,'\x5c%')[_0x37100(0xca)](/_/g,'\x5c_');return _0x483e06=_0x483e06[_0x37100(0xca)](/\*/g,'%')[_0x37100(0xca)](/\?/g,'_'),_0x483e06;}export function buildLikePattern(_0xeb2d32){const _0x380b3f=a80_0x1527;if(!_0xeb2d32||_0xeb2d32['trim']()[_0x380b3f(0xbd)]===0x0)throw new Error(_0x380b3f(0xcd));const _0x5a810d=globToLike(_0xeb2d32),_0x5222f7=_0x5a810d[_0x380b3f(0xca)](/'/g,'\x27\x27');return'\x27'+_0x5222f7+'\x27';}export function matchGlobPattern(_0x2eb848,_0x576c86){const _0x471920=a80_0x1527,_0x2be4d0=_0x576c86['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x471920(0xca)](/\*/g,'.*')[_0x471920(0xca)](/\?/g,'.'),_0x3cca79=new RegExp('^'+_0x2be4d0+'$');return _0x3cca79[_0x471920(0xcc)](_0x2eb848);}function a80_0x1527(_0x2952fd,_0x4d8268){const _0x5cb164=a80_0x5cb1();return a80_0x1527=function(_0x152707,_0xaa1146){_0x152707=_0x152707-0xbb;let _0x2f11e1=_0x5cb164[_0x152707];return _0x2f11e1;},a80_0x1527(_0x2952fd,_0x4d8268);}export function getSanitizedUsername(){const _0x1cd1d6=a80_0x1527,_0x457252=process[_0x1cd1d6(0xc9)][_0x1cd1d6(0xd0)]||process['env'][_0x1cd1d6(0xd1)]||_0x1cd1d6(0xbe);return _0x457252[_0x1cd1d6(0xca)](/[^a-zA-Z0-9]/g,'')[_0x1cd1d6(0xbc)]();}export function generateRandomHex(){const _0x411936=a80_0x1527,_0x3dfb8a=Math[_0x411936(0xc0)](Math['random']()*0xfffff);return _0x3dfb8a[_0x411936(0xcf)](0x10)[_0x411936(0xc4)](0x5,'0');}function a80_0x5cb1(){const _0x3352e1=['unknown','1244391WjIrUG','floor','substring','210oGCAul','808966hfcqlj','padStart','23486256SLNvHw','trim','2NDaBex','3601416jzgOxd','env','replace','3716956csFsCk','test','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','64435TbtXRu','toString','USER','USERNAME','734895FVfQxt','repeat','toLowerCase','length'];a80_0x5cb1=function(){return _0x3352e1;};return a80_0x5cb1();}
@@ -1 +1 @@
1
- (function(_0x1481f3,_0x4673a6){const _0x4d828e=a81_0x2e20,_0xb49ed2=_0x1481f3();while(!![]){try{const _0x2e544e=parseInt(_0x4d828e(0x74))/0x1*(parseInt(_0x4d828e(0x6c))/0x2)+parseInt(_0x4d828e(0x7e))/0x3+parseInt(_0x4d828e(0x70))/0x4+parseInt(_0x4d828e(0x7d))/0x5+parseInt(_0x4d828e(0x6a))/0x6*(-parseInt(_0x4d828e(0x79))/0x7)+-parseInt(_0x4d828e(0x7f))/0x8*(-parseInt(_0x4d828e(0x6e))/0x9)+-parseInt(_0x4d828e(0x6d))/0xa;if(_0x2e544e===_0x4673a6)break;else _0xb49ed2['push'](_0xb49ed2['shift']());}catch(_0x233cef){_0xb49ed2['push'](_0xb49ed2['shift']());}}}(a81_0x215b,0x54a87));function a81_0x215b(){const _0x1f73f8=['includes','8djYihh','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','table','length','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','35TAdRgo','catalog','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','join','857635ecVitr','255918zczcrZ','1031480RjzBzu','split','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','433338tCBwPi','Pattern\x20cannot\x20be\x20just\x20a\x20dot','50828zvpVGV','10049270rZgXrc','45vWISbx','database','2431924YZykOT','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)'];a81_0x215b=function(){return _0x1f73f8;};return a81_0x215b();}function a81_0x2e20(_0x4e6b95,_0x3d97ec){const _0x215bd7=a81_0x215b();return a81_0x2e20=function(_0x2e20bd,_0x3a5c20){_0x2e20bd=_0x2e20bd-0x6a;let _0x5051fb=_0x215bd7[_0x2e20bd];return _0x5051fb;},a81_0x2e20(_0x4e6b95,_0x3d97ec);}function hasWildcard(_0x57652c){const _0xf02f6c=a81_0x2e20;return _0x57652c[_0xf02f6c(0x73)]('*')||_0x57652c[_0xf02f6c(0x73)]('?');}export function parseTableReference(_0x2ff06a){const _0x4b4ee1=a81_0x2e20;if(!_0x2ff06a||_0x2ff06a['trim']()[_0x4b4ee1(0x77)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x2bdd47=_0x2ff06a['trim'](),_0x3f6878={'original':_0x2bdd47},_0x2bbc78=_0x2bdd47[_0x4b4ee1(0x80)]('.');if(_0x2bbc78[_0x4b4ee1(0x77)]===0x1){const _0x515b33=_0x2bbc78[0x0];if(!_0x515b33)throw new Error(_0x4b4ee1(0x6b));_0x3f6878[_0x4b4ee1(0x76)]=_0x515b33;}else{if(_0x2bbc78[_0x4b4ee1(0x77)]===0x2){const [_0x4f1b16,_0x116035]=_0x2bbc78;if(!_0x4f1b16)throw new Error(_0x4b4ee1(0x71));if(!_0x116035)throw new Error(_0x4b4ee1(0x72));_0x3f6878['database']=_0x4f1b16,_0x3f6878[_0x4b4ee1(0x76)]=_0x116035;}else{if(_0x2bbc78['length']===0x3){const [_0x465c7b,_0x4c610a,_0x44d123]=_0x2bbc78;if(!_0x465c7b||!_0x4c610a||!_0x44d123)throw new Error(_0x4b4ee1(0x75));_0x3f6878[_0x4b4ee1(0x7a)]=_0x465c7b,_0x3f6878[_0x4b4ee1(0x6f)]=_0x4c610a,_0x3f6878[_0x4b4ee1(0x76)]=_0x44d123;}else throw new Error(_0x4b4ee1(0x7b));}}return _0x3f6878;}export function formatTableReference(_0x45381c){const _0x4811f4=a81_0x2e20,_0x1115ae=[];return _0x45381c[_0x4811f4(0x7a)]&&_0x1115ae['push'](_0x45381c[_0x4811f4(0x7a)]),_0x45381c['database']&&_0x1115ae[_0x4811f4(0x81)](_0x45381c[_0x4811f4(0x6f)]),_0x45381c[_0x4811f4(0x76)]&&_0x1115ae[_0x4811f4(0x81)](_0x45381c[_0x4811f4(0x76)]),_0x1115ae[_0x4811f4(0x7c)]('.');}export function validateTableListReference(_0x3e5b7a){return undefined;}export function validateTableDescribeReference(_0x230aff){const _0x20fbbe=a81_0x2e20;if(!_0x230aff[_0x20fbbe(0x76)])return _0x20fbbe(0x78);if(_0x230aff['database']&&hasWildcard(_0x230aff['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x230aff[_0x20fbbe(0x76)]))return _0x20fbbe(0x82);return undefined;}
1
+ (function(_0xd9a13f,_0x322af4){const _0x1bed3c=a81_0xf80d,_0x2d989e=_0xd9a13f();while(!![]){try{const _0x23afd8=-parseInt(_0x1bed3c(0x16d))/0x1*(-parseInt(_0x1bed3c(0x15c))/0x2)+parseInt(_0x1bed3c(0x15e))/0x3*(parseInt(_0x1bed3c(0x16a))/0x4)+-parseInt(_0x1bed3c(0x169))/0x5+-parseInt(_0x1bed3c(0x162))/0x6*(-parseInt(_0x1bed3c(0x173))/0x7)+-parseInt(_0x1bed3c(0x16e))/0x8+-parseInt(_0x1bed3c(0x170))/0x9*(-parseInt(_0x1bed3c(0x168))/0xa)+-parseInt(_0x1bed3c(0x174))/0xb;if(_0x23afd8===_0x322af4)break;else _0x2d989e['push'](_0x2d989e['shift']());}catch(_0x3b7219){_0x2d989e['push'](_0x2d989e['shift']());}}}(a81_0x48ac,0xc7ef1));function hasWildcard(_0x1c646c){const _0x59bce8=a81_0xf80d;return _0x1c646c[_0x59bce8(0x172)]('*')||_0x1c646c[_0x59bce8(0x172)]('?');}export function parseTableReference(_0x7583a5){const _0x256bff=a81_0xf80d;if(!_0x7583a5||_0x7583a5[_0x256bff(0x16f)]()[_0x256bff(0x165)]===0x0)throw new Error(_0x256bff(0x161));const _0x55faf2=_0x7583a5[_0x256bff(0x16f)](),_0x4817d2={'original':_0x55faf2},_0x116d43=_0x55faf2[_0x256bff(0x163)]('.');if(_0x116d43[_0x256bff(0x165)]===0x1){const _0x2f5a4b=_0x116d43[0x0];if(!_0x2f5a4b)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x4817d2['table']=_0x2f5a4b;}else{if(_0x116d43[_0x256bff(0x165)]===0x2){const [_0x31e9f2,_0xd3fb16]=_0x116d43;if(!_0x31e9f2)throw new Error(_0x256bff(0x15d));if(!_0xd3fb16)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x4817d2['database']=_0x31e9f2,_0x4817d2[_0x256bff(0x160)]=_0xd3fb16;}else{if(_0x116d43[_0x256bff(0x165)]===0x3){const [_0x43dc7c,_0x2434f2,_0x3fb9e2]=_0x116d43;if(!_0x43dc7c||!_0x2434f2||!_0x3fb9e2)throw new Error(_0x256bff(0x167));_0x4817d2[_0x256bff(0x164)]=_0x43dc7c,_0x4817d2[_0x256bff(0x15f)]=_0x2434f2,_0x4817d2[_0x256bff(0x160)]=_0x3fb9e2;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x4817d2;}export function formatTableReference(_0x3b3040){const _0x26dd1e=a81_0xf80d,_0x1230f7=[];return _0x3b3040['catalog']&&_0x1230f7[_0x26dd1e(0x171)](_0x3b3040[_0x26dd1e(0x164)]),_0x3b3040[_0x26dd1e(0x15f)]&&_0x1230f7[_0x26dd1e(0x171)](_0x3b3040[_0x26dd1e(0x15f)]),_0x3b3040[_0x26dd1e(0x160)]&&_0x1230f7[_0x26dd1e(0x171)](_0x3b3040['table']),_0x1230f7[_0x26dd1e(0x175)]('.');}export function validateTableListReference(_0x48b167){return undefined;}function a81_0xf80d(_0x37264d,_0x35f264){const _0x48ac08=a81_0x48ac();return a81_0xf80d=function(_0xf80d96,_0x181c66){_0xf80d96=_0xf80d96-0x15c;let _0x22f586=_0x48ac08[_0xf80d96];return _0x22f586;},a81_0xf80d(_0x37264d,_0x35f264);}function a81_0x48ac(){const _0x152e14=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','186KXDiQu','split','catalog','length','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','11910aBZvql','4108790eskPhM','16tswVZJ','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','47DtjMzC','12515656tTzBpc','trim','12213zjfwXB','push','includes','174223JupVRp','14984332YLOKyC','join','49732ZVodDF','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','758181poRhZn','database','table'];a81_0x48ac=function(){return _0x152e14;};return a81_0x48ac();}export function validateTableDescribeReference(_0x24eede){const _0x117a6d=a81_0xf80d;if(!_0x24eede[_0x117a6d(0x160)])return _0x117a6d(0x16c);if(_0x24eede[_0x117a6d(0x15f)]&&hasWildcard(_0x24eede['database']))return _0x117a6d(0x166);if(hasWildcard(_0x24eede['table']))return _0x117a6d(0x16b);return undefined;}
@@ -1 +1 @@
1
- const a82_0x28d245=a82_0x2580;function a82_0x5292(){const _0x14a3cd=['742002leLyCb','log','cyan','cause','warn','24096nixRaJ','logDir','48697946dReMpB','11666216pxFzPp','tdx-','ERROR','getFullYear','map','logs','toString','yellow','includes','getTimezoneOffset','2YuSxGr','getDate','error','stack','tdx','getSeconds','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','mtime','617654IDMRDK','stringify','info','getHours','trace','toISOString','string','message','DEBUG','5823875XjnaCd','rotateOldLogs','red','.gz','TRACE','28EaLesx','INFO','padStart','fileOnly','getMilliseconds','gray','WARN','tdx.log','debug','split','write','logStream','init','getLogPath','Warning:\x20Error\x20writing\x20to\x20tdx.log:','429BrDoim','9828750NLuKID','abs','9FTRfNB','logLevel','Warning:\x20Failed\x20to\x20compress\x20','floor','name'];a82_0x5292=function(){return _0x14a3cd;};return a82_0x5292();}(function(_0x277758,_0x2c26af){const _0x194f17=a82_0x2580,_0x55851c=_0x277758();while(!![]){try{const _0x3acfb2=parseInt(_0x194f17(0xfd))/0x1*(-parseInt(_0x194f17(0x105))/0x2)+parseInt(_0x194f17(0xe3))/0x3*(-parseInt(_0x194f17(0xf0))/0x4)+-parseInt(_0x194f17(0xcf))/0x5+-parseInt(_0x194f17(0xeb))/0x6*(parseInt(_0x194f17(0xd4))/0x7)+parseInt(_0x194f17(0xf3))/0x8*(-parseInt(_0x194f17(0xe6))/0x9)+parseInt(_0x194f17(0xe4))/0xa+parseInt(_0x194f17(0xf2))/0xb;if(_0x3acfb2===_0x2c26af)break;else _0x55851c['push'](_0x55851c['shift']());}catch(_0xf26c3){_0x55851c['push'](_0x55851c['shift']());}}}(a82_0x5292,0xc6863));function a82_0x2580(_0x125088,_0x48b14e){const _0x529260=a82_0x5292();return a82_0x2580=function(_0x258029,_0x3061f4){_0x258029=_0x258029-0xc9;let _0x31e2fe=_0x529260[_0x258029];return _0x31e2fe;},a82_0x2580(_0x125088,_0x48b14e);}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 a82_0x27a5bc from'chalk';function safeStringify(_0x301985){const _0x5342db=a82_0x2580;if(typeof _0x301985===_0x5342db(0xcc))return _0x301985;if(_0x301985 instanceof Error)return _0x301985['stack']||_0x301985[_0x5342db(0xea)]+':\x20'+_0x301985[_0x5342db(0xcd)];try{return JSON[_0x5342db(0x106)](_0x301985,(_0x1b03b9,_0x2aac40)=>{const _0x423179=_0x5342db;if(_0x2aac40 instanceof Error)return{'name':_0x2aac40[_0x423179(0xea)],'message':_0x2aac40['message'],'stack':_0x2aac40[_0x423179(0x100)],'cause':_0x2aac40[_0x423179(0xee)]};return _0x2aac40;});}catch{return String(_0x301985);}}function getTimezoneOffset(){const _0x4b3034=a82_0x2580,_0x12b1ec=-new Date()[_0x4b3034(0xfc)](),_0x206a7a=Math[_0x4b3034(0xe9)](Math[_0x4b3034(0xe5)](_0x12b1ec)/0x3c),_0x46583f=Math[_0x4b3034(0xe5)](_0x12b1ec)%0x3c,_0x4d9f0b=_0x12b1ec>=0x0?'+':'-';return''+_0x4d9f0b+_0x206a7a[_0x4b3034(0xf9)]()[_0x4b3034(0xd6)](0x2,'0')+_0x46583f[_0x4b3034(0xf9)]()[_0x4b3034(0xd6)](0x2,'0');}function formatTimestamp(){const _0xd9d87b=a82_0x2580,_0xe2ab0=new Date(),_0x391f8c=_0xe2ab0[_0xd9d87b(0xf6)](),_0x2e04fe=(_0xe2ab0['getMonth']()+0x1)[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x2,'0'),_0x4c673f=_0xe2ab0[_0xd9d87b(0xfe)]()[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x2,'0'),_0x39740b=_0xe2ab0[_0xd9d87b(0xc9)]()['toString']()[_0xd9d87b(0xd6)](0x2,'0'),_0x8761a8=_0xe2ab0['getMinutes']()[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x2,'0'),_0xc59430=_0xe2ab0[_0xd9d87b(0x102)]()[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x2,'0'),_0x2e3264=_0xe2ab0[_0xd9d87b(0xd8)]()[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x3,'0'),_0x22dc8e=getTimezoneOffset();return _0x391f8c+'-'+_0x2e04fe+'-'+_0x4c673f+'\x20'+_0x39740b+':'+_0x8761a8+':'+_0xc59430+'.'+_0x2e3264+_0x22dc8e;}function formatColoredLogEntry(_0x3e5851,_0x2091fd){const _0x9115e9=a82_0x2580,_0x4a4cd9=formatTimestamp(),_0x42031d=_0x2091fd[_0x9115e9(0xf7)](safeStringify)['join']('\x20'),_0xa61b5a=a82_0x27a5bc[_0x9115e9(0xd9)](_0x4a4cd9);let _0x1ed7a9;switch(_0x3e5851){case _0x9115e9(0x107):_0x1ed7a9=a82_0x27a5bc[_0x9115e9(0xed)]('['+_0x3e5851+']\x20');break;case _0x9115e9(0xef):_0x1ed7a9=a82_0x27a5bc[_0x9115e9(0xfa)]('['+_0x3e5851+']\x20');break;case'error':_0x1ed7a9=a82_0x27a5bc[_0x9115e9(0xd1)]('['+_0x3e5851+']');break;case _0x9115e9(0xdc):_0x1ed7a9=a82_0x27a5bc['gray']('['+_0x3e5851+']');break;default:_0x1ed7a9='['+_0x3e5851+']';}return _0xa61b5a+'\x20'+_0x1ed7a9+'\x20'+_0x42031d;}export var LogLevel;(function(_0x5aae88){const _0x12f26c=a82_0x2580;_0x5aae88[_0x5aae88[_0x12f26c(0xd3)]=-0x2]=_0x12f26c(0xd3),_0x5aae88[_0x5aae88[_0x12f26c(0xce)]=-0x1]='DEBUG',_0x5aae88[_0x5aae88[_0x12f26c(0xd5)]=0x0]=_0x12f26c(0xd5),_0x5aae88[_0x5aae88[_0x12f26c(0xda)]=0x1]=_0x12f26c(0xda),_0x5aae88[_0x5aae88[_0x12f26c(0xf5)]=0x2]=_0x12f26c(0xf5);}(LogLevel||(LogLevel={})));export class TDXLogger{[a82_0x28d245(0xdf)];[a82_0x28d245(0xf1)];[a82_0x28d245(0xe7)];[a82_0x28d245(0xd7)];constructor(_0x13c31b=LogLevel[a82_0x28d245(0xd5)],_0x57f834=![]){const _0x4bd338=a82_0x28d245;this['logDir']=join(homedir(),'.cache',_0x4bd338(0x101),_0x4bd338(0xf8)),this[_0x4bd338(0xe7)]=_0x13c31b,this[_0x4bd338(0xd7)]=_0x57f834;}async[a82_0x28d245(0xe0)](){const _0x351883=a82_0x28d245;try{await mkdir(this[_0x351883(0xf1)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x12ba7e=join(this[_0x351883(0xf1)],_0x351883(0xdb));this[_0x351883(0xdf)]=createWriteStream(_0x12ba7e,{'flags':'a'}),this[_0x351883(0xdf)]['on'](_0x351883(0xff),_0x55fd8a=>{const _0x14e67c=_0x351883;console[_0x14e67c(0xff)](_0x14e67c(0xe2),_0x55fd8a[_0x14e67c(0xcd)]);});}catch(_0x2646d0){console[_0x351883(0xff)](_0x351883(0x103),_0x2646d0);}}async[a82_0x28d245(0xd0)](){const _0x1a6aa6=a82_0x28d245;try{const _0x51dea0=await readdir(this[_0x1a6aa6(0xf1)]),_0x21b7f9=new Date()[_0x1a6aa6(0xcb)]()[_0x1a6aa6(0xdd)]('T')[0x0];if(_0x51dea0[_0x1a6aa6(0xfb)](_0x1a6aa6(0xdb))){const _0x472f92=join(this['logDir'],'tdx.log'),_0x595f6e=await stat(_0x472f92),_0x3d134f=new Date(_0x595f6e[_0x1a6aa6(0x104)])[_0x1a6aa6(0xcb)]()['split']('T')[0x0];if(_0x3d134f<_0x21b7f9){const _0x4248c2=join(this[_0x1a6aa6(0xf1)],_0x1a6aa6(0xf4)+_0x3d134f+'.log');await rename(_0x472f92,_0x4248c2);}}const _0x529fb3=await readdir(this['logDir']),_0x4a0e7b=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x1d335b=_0x529fb3['filter'](_0x428808=>_0x4a0e7b['test'](_0x428808));for(const _0x169afe of _0x1d335b){const _0x1ac6cc=join(this[_0x1a6aa6(0xf1)],_0x169afe),_0x1c489c=join(this['logDir'],_0x169afe+_0x1a6aa6(0xd2));try{await pipeline(createReadStream(_0x1ac6cc),createGzip(),createWriteStream(_0x1c489c)),await unlink(_0x1ac6cc);}catch(_0x578e43){console[_0x1a6aa6(0xff)](_0x1a6aa6(0xe8)+_0x169afe+':',_0x578e43);}}}catch{}}['debug'](..._0x2a6691){const _0x30215c=a82_0x28d245;if(this['logLevel']>LogLevel['DEBUG'])return;const _0x2fe450=formatColoredLogEntry(_0x30215c(0xdc),_0x2a6691);this[_0x30215c(0xdf)]?.[_0x30215c(0xde)](_0x2fe450+'\x0a');}[a82_0x28d245(0xca)](..._0x17c0e1){const _0x8084c9=a82_0x28d245;if(this[_0x8084c9(0xe7)]>LogLevel[_0x8084c9(0xd3)])return;const _0x3e4aec=formatColoredLogEntry(_0x8084c9(0xca),_0x17c0e1);this[_0x8084c9(0xdf)]?.[_0x8084c9(0xde)](_0x3e4aec+'\x0a');}[a82_0x28d245(0x107)](..._0x36fc8a){const _0x32ac07=a82_0x28d245;if(this[_0x32ac07(0xe7)]>LogLevel['INFO'])return;const _0x2dd6e4=formatColoredLogEntry(_0x32ac07(0x107),_0x36fc8a);!this[_0x32ac07(0xd7)]&&console[_0x32ac07(0xec)](_0x2dd6e4),this[_0x32ac07(0xdf)]?.['write'](_0x2dd6e4+'\x0a');}[a82_0x28d245(0xef)](..._0x5e1e9d){const _0x586f8f=a82_0x28d245;if(this['logLevel']>LogLevel[_0x586f8f(0xda)])return;const _0xe2cf80=formatColoredLogEntry(_0x586f8f(0xef),_0x5e1e9d);!this['fileOnly']&&console['error'](_0xe2cf80),this[_0x586f8f(0xdf)]?.[_0x586f8f(0xde)](_0xe2cf80+'\x0a');}[a82_0x28d245(0xff)](..._0x103ea6){const _0x41d3bc=a82_0x28d245,_0x59c1d1=formatColoredLogEntry(_0x41d3bc(0xff),_0x103ea6);!this['fileOnly']&&console[_0x41d3bc(0xff)](_0x59c1d1),this[_0x41d3bc(0xdf)]?.['write'](_0x59c1d1+'\x0a');}async['close'](){const _0x3cdc7a=a82_0x28d245;return this[_0x3cdc7a(0x107)]('Proxy\x20session\x20ended'),new Promise(_0x599640=>{const _0x4699bb=_0x3cdc7a;this[_0x4699bb(0xdf)]?this[_0x4699bb(0xdf)]['end'](()=>{_0x599640();}):_0x599640();});}[a82_0x28d245(0xe1)](){const _0x1483a7=a82_0x28d245;return join(this[_0x1483a7(0xf1)],_0x1483a7(0xdb));}}
1
+ const a82_0x4ebb56=a82_0xea55;function a82_0x414c(){const _0x1d1a80=['1866108SJHITg','logLevel','11ozeVbK','name','warn','logStream','tdx.log','abs','8saVPcl','DEBUG','.gz','info','getLogPath','getFullYear','2898600bekqDr','Warning:\x20Error\x20writing\x20to\x20tdx.log:','red','cause','TRACE','toISOString','tdx-','tdx','write','debug','init','log','split','getDate','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','error','getHours','415921BNVDEz','70lAqoHS','padStart','logDir','stringify','test','floor','.cache','864378ZwUzzM','message','3141420oPUMNg','WARN','Warning:\x20Failed\x20to\x20compress\x20','trace','.log','stack','includes','getMilliseconds','2KgSgYj','2996328jLcyzu','toString','ERROR','fileOnly','5GOegwM','2768794mlYbmu','map','getSeconds','INFO','join','rotateOldLogs','gray','logs'];a82_0x414c=function(){return _0x1d1a80;};return a82_0x414c();}(function(_0x329d9b,_0x397ae5){const _0x590c83=a82_0xea55,_0x2f5b82=_0x329d9b();while(!![]){try{const _0xf28b1e=-parseInt(_0x590c83(0x1ef))/0x1*(parseInt(_0x590c83(0x201))/0x2)+-parseInt(_0x590c83(0x1de))/0x3+-parseInt(_0x590c83(0x202))/0x4*(-parseInt(_0x590c83(0x206))/0x5)+parseInt(_0x590c83(0x20f))/0x6+-parseInt(_0x590c83(0x207))/0x7*(-parseInt(_0x590c83(0x217))/0x8)+parseInt(_0x590c83(0x1f7))/0x9*(parseInt(_0x590c83(0x1f0))/0xa)+parseInt(_0x590c83(0x211))/0xb*(-parseInt(_0x590c83(0x1f9))/0xc);if(_0xf28b1e===_0x397ae5)break;else _0x2f5b82['push'](_0x2f5b82['shift']());}catch(_0x413ab0){_0x2f5b82['push'](_0x2f5b82['shift']());}}}(a82_0x414c,0x762be));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 a82_0x676094 from'chalk';function safeStringify(_0xcb6069){const _0xa6fe76=a82_0xea55;if(typeof _0xcb6069==='string')return _0xcb6069;if(_0xcb6069 instanceof Error)return _0xcb6069[_0xa6fe76(0x1fe)]||_0xcb6069[_0xa6fe76(0x212)]+':\x20'+_0xcb6069[_0xa6fe76(0x1f8)];try{return JSON[_0xa6fe76(0x1f3)](_0xcb6069,(_0x11d891,_0x50e8e0)=>{const _0x1aae06=_0xa6fe76;if(_0x50e8e0 instanceof Error)return{'name':_0x50e8e0[_0x1aae06(0x212)],'message':_0x50e8e0[_0x1aae06(0x1f8)],'stack':_0x50e8e0[_0x1aae06(0x1fe)],'cause':_0x50e8e0[_0x1aae06(0x1e1)]};return _0x50e8e0;});}catch{return String(_0xcb6069);}}function getTimezoneOffset(){const _0x3957a4=a82_0xea55,_0x3adb70=-new Date()['getTimezoneOffset'](),_0x2e872c=Math[_0x3957a4(0x1f5)](Math[_0x3957a4(0x216)](_0x3adb70)/0x3c),_0xfff66b=Math[_0x3957a4(0x216)](_0x3adb70)%0x3c,_0x9fd8ca=_0x3adb70>=0x0?'+':'-';return''+_0x9fd8ca+_0x2e872c[_0x3957a4(0x203)]()[_0x3957a4(0x1f1)](0x2,'0')+_0xfff66b['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0x162137=a82_0xea55,_0x34b56e=new Date(),_0xf44e13=_0x34b56e[_0x162137(0x1dd)](),_0x11ede0=(_0x34b56e['getMonth']()+0x1)['toString']()[_0x162137(0x1f1)](0x2,'0'),_0x538f03=_0x34b56e[_0x162137(0x1eb)]()[_0x162137(0x203)]()[_0x162137(0x1f1)](0x2,'0'),_0x33d557=_0x34b56e[_0x162137(0x1ee)]()['toString']()[_0x162137(0x1f1)](0x2,'0'),_0x20b238=_0x34b56e['getMinutes']()[_0x162137(0x203)]()[_0x162137(0x1f1)](0x2,'0'),_0xfd8135=_0x34b56e[_0x162137(0x209)]()[_0x162137(0x203)]()[_0x162137(0x1f1)](0x2,'0'),_0x33c32d=_0x34b56e[_0x162137(0x200)]()['toString']()[_0x162137(0x1f1)](0x3,'0'),_0x436d21=getTimezoneOffset();return _0xf44e13+'-'+_0x11ede0+'-'+_0x538f03+'\x20'+_0x33d557+':'+_0x20b238+':'+_0xfd8135+'.'+_0x33c32d+_0x436d21;}function formatColoredLogEntry(_0x32069f,_0x325cbf){const _0x143104=a82_0xea55,_0xc12a51=formatTimestamp(),_0x527876=_0x325cbf[_0x143104(0x208)](safeStringify)[_0x143104(0x20b)]('\x20'),_0x245439=a82_0x676094[_0x143104(0x20d)](_0xc12a51);let _0x1d3496;switch(_0x32069f){case'info':_0x1d3496=a82_0x676094['cyan']('['+_0x32069f+']\x20');break;case _0x143104(0x213):_0x1d3496=a82_0x676094['yellow']('['+_0x32069f+']\x20');break;case _0x143104(0x1ed):_0x1d3496=a82_0x676094[_0x143104(0x1e0)]('['+_0x32069f+']');break;case _0x143104(0x1e7):_0x1d3496=a82_0x676094[_0x143104(0x20d)]('['+_0x32069f+']');break;default:_0x1d3496='['+_0x32069f+']';}return _0x245439+'\x20'+_0x1d3496+'\x20'+_0x527876;}export var LogLevel;function a82_0xea55(_0x545801,_0x1c7bf5){const _0x414c61=a82_0x414c();return a82_0xea55=function(_0xea556d,_0x69f0e6){_0xea556d=_0xea556d-0x1dd;let _0x417e42=_0x414c61[_0xea556d];return _0x417e42;},a82_0xea55(_0x545801,_0x1c7bf5);}(function(_0x3545b5){const _0x5418ee=a82_0xea55;_0x3545b5[_0x3545b5[_0x5418ee(0x1e2)]=-0x2]=_0x5418ee(0x1e2),_0x3545b5[_0x3545b5[_0x5418ee(0x218)]=-0x1]=_0x5418ee(0x218),_0x3545b5[_0x3545b5[_0x5418ee(0x20a)]=0x0]='INFO',_0x3545b5[_0x3545b5[_0x5418ee(0x1fa)]=0x1]=_0x5418ee(0x1fa),_0x3545b5[_0x3545b5[_0x5418ee(0x204)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a82_0x4ebb56(0x214)];[a82_0x4ebb56(0x1f2)];[a82_0x4ebb56(0x210)];['fileOnly'];constructor(_0x1bf0cf=LogLevel['INFO'],_0x4f6a3d=![]){const _0x479d84=a82_0x4ebb56;this[_0x479d84(0x1f2)]=join(homedir(),_0x479d84(0x1f6),_0x479d84(0x1e5),_0x479d84(0x20e)),this['logLevel']=_0x1bf0cf,this[_0x479d84(0x205)]=_0x4f6a3d;}async[a82_0x4ebb56(0x1e8)](){const _0x2b5adb=a82_0x4ebb56;try{await mkdir(this[_0x2b5adb(0x1f2)],{'recursive':!![]}),await this[_0x2b5adb(0x20c)]();const _0x341e30=join(this[_0x2b5adb(0x1f2)],'tdx.log');this[_0x2b5adb(0x214)]=createWriteStream(_0x341e30,{'flags':'a'}),this[_0x2b5adb(0x214)]['on'](_0x2b5adb(0x1ed),_0x54ffec=>{const _0x199f44=_0x2b5adb;console['error'](_0x199f44(0x1df),_0x54ffec[_0x199f44(0x1f8)]);});}catch(_0x259084){console[_0x2b5adb(0x1ed)](_0x2b5adb(0x1ec),_0x259084);}}async[a82_0x4ebb56(0x20c)](){const _0x5ebafb=a82_0x4ebb56;try{const _0x3620d6=await readdir(this[_0x5ebafb(0x1f2)]),_0x1b3b23=new Date()[_0x5ebafb(0x1e3)]()['split']('T')[0x0];if(_0x3620d6[_0x5ebafb(0x1ff)](_0x5ebafb(0x215))){const _0x548b84=join(this[_0x5ebafb(0x1f2)],_0x5ebafb(0x215)),_0x2a68f3=await stat(_0x548b84),_0x2a5fe2=new Date(_0x2a68f3['mtime'])[_0x5ebafb(0x1e3)]()[_0x5ebafb(0x1ea)]('T')[0x0];if(_0x2a5fe2<_0x1b3b23){const _0x5d7981=join(this[_0x5ebafb(0x1f2)],_0x5ebafb(0x1e4)+_0x2a5fe2+_0x5ebafb(0x1fd));await rename(_0x548b84,_0x5d7981);}}const _0x4fa13b=await readdir(this[_0x5ebafb(0x1f2)]),_0x17e547=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x240a7c=_0x4fa13b['filter'](_0x56ebd1=>_0x17e547[_0x5ebafb(0x1f4)](_0x56ebd1));for(const _0x343700 of _0x240a7c){const _0x10f68a=join(this[_0x5ebafb(0x1f2)],_0x343700),_0x3c528c=join(this[_0x5ebafb(0x1f2)],_0x343700+_0x5ebafb(0x219));try{await pipeline(createReadStream(_0x10f68a),createGzip(),createWriteStream(_0x3c528c)),await unlink(_0x10f68a);}catch(_0x5f46a0){console[_0x5ebafb(0x1ed)](_0x5ebafb(0x1fb)+_0x343700+':',_0x5f46a0);}}}catch{}}[a82_0x4ebb56(0x1e7)](..._0x3f0efe){const _0x550892=a82_0x4ebb56;if(this[_0x550892(0x210)]>LogLevel[_0x550892(0x218)])return;const _0x3cb020=formatColoredLogEntry(_0x550892(0x1e7),_0x3f0efe);this['logStream']?.[_0x550892(0x1e6)](_0x3cb020+'\x0a');}['trace'](..._0x5b2da9){const _0x375b17=a82_0x4ebb56;if(this[_0x375b17(0x210)]>LogLevel[_0x375b17(0x1e2)])return;const _0x34bd46=formatColoredLogEntry(_0x375b17(0x1fc),_0x5b2da9);this[_0x375b17(0x214)]?.[_0x375b17(0x1e6)](_0x34bd46+'\x0a');}[a82_0x4ebb56(0x21a)](..._0x16d867){const _0x3e7fda=a82_0x4ebb56;if(this[_0x3e7fda(0x210)]>LogLevel[_0x3e7fda(0x20a)])return;const _0x1e23f0=formatColoredLogEntry(_0x3e7fda(0x21a),_0x16d867);!this[_0x3e7fda(0x205)]&&console[_0x3e7fda(0x1e9)](_0x1e23f0),this[_0x3e7fda(0x214)]?.['write'](_0x1e23f0+'\x0a');}[a82_0x4ebb56(0x213)](..._0x2ea7e5){const _0x5adb30=a82_0x4ebb56;if(this['logLevel']>LogLevel[_0x5adb30(0x1fa)])return;const _0x3246d8=formatColoredLogEntry(_0x5adb30(0x213),_0x2ea7e5);!this[_0x5adb30(0x205)]&&console[_0x5adb30(0x1ed)](_0x3246d8),this['logStream']?.[_0x5adb30(0x1e6)](_0x3246d8+'\x0a');}[a82_0x4ebb56(0x1ed)](..._0xe24ccb){const _0x2b2dc4=a82_0x4ebb56,_0x1c8346=formatColoredLogEntry(_0x2b2dc4(0x1ed),_0xe24ccb);!this[_0x2b2dc4(0x205)]&&console[_0x2b2dc4(0x1ed)](_0x1c8346),this['logStream']?.[_0x2b2dc4(0x1e6)](_0x1c8346+'\x0a');}async['close'](){const _0x473383=a82_0x4ebb56;return this[_0x473383(0x21a)]('Proxy\x20session\x20ended'),new Promise(_0x2a6000=>{const _0x513b53=_0x473383;this[_0x513b53(0x214)]?this[_0x513b53(0x214)]['end'](()=>{_0x2a6000();}):_0x2a6000();});}[a82_0x4ebb56(0x21b)](){const _0x5dcfee=a82_0x4ebb56;return join(this[_0x5dcfee(0x1f2)],_0x5dcfee(0x215));}}
@@ -1 +1 @@
1
- (function(_0x167f56,_0x23f87e){const _0x51f766=a83_0x4b9f,_0x17d214=_0x167f56();while(!![]){try{const _0xd5097b=-parseInt(_0x51f766(0xd6))/0x1*(parseInt(_0x51f766(0xda))/0x2)+parseInt(_0x51f766(0xe0))/0x3+parseInt(_0x51f766(0xca))/0x4*(parseInt(_0x51f766(0xcb))/0x5)+parseInt(_0x51f766(0xdc))/0x6+parseInt(_0x51f766(0xdb))/0x7*(-parseInt(_0x51f766(0xcc))/0x8)+parseInt(_0x51f766(0xc5))/0x9*(-parseInt(_0x51f766(0xe3))/0xa)+parseInt(_0x51f766(0xd8))/0xb;if(_0xd5097b===_0x23f87e)break;else _0x17d214['push'](_0x17d214['shift']());}catch(_0x5a51da){_0x17d214['push'](_0x17d214['shift']());}}}(a83_0x18d2,0x48613));import{formatRows}from'./formatters.js';import a83_0xf97e8a from'chalk';function a83_0x4b9f(_0x425f68,_0x275964){const _0x18d244=a83_0x18d2();return a83_0x4b9f=function(_0x4b9f4e,_0x10396b){_0x4b9f4e=_0x4b9f4e-0xc3;let _0x43ea08=_0x18d244[_0x4b9f4e];return _0x43ea08;},a83_0x4b9f(_0x425f68,_0x275964);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x9c343a,_0x275d87={},_0x370c67=0x0,_0x18866a=''){const _0x214886=a83_0x4b9f,_0x51f003={...DEFAULT_OPTIONS,..._0x275d87},_0x6cded0=[],_0x3252f0=[..._0x9c343a][_0x214886(0xcd)]((_0x310b79,_0x28f896)=>_0x310b79['name'][_0x214886(0xde)](_0x28f896[_0x214886(0xe2)]));for(let _0x35714e=0x0;_0x35714e<_0x3252f0[_0x214886(0xdf)];_0x35714e++){const _0x46d73b=_0x3252f0[_0x35714e],_0x4a873d=_0x35714e===_0x3252f0[_0x214886(0xdf)]-0x1;let _0x25905e='';_0x370c67>0x0&&(_0x25905e+=_0x18866a);_0x51f003['showTreeLines']&&_0x370c67>0x0&&(_0x25905e+=a83_0xf97e8a[_0x214886(0xc3)](_0x4a873d?'└──\x20':'├──\x20'));_0x51f003[_0x214886(0xe1)]&&(_0x25905e+=_0x46d73b[_0x214886(0xc8)]===_0x214886(0xd7)?'📁\x20':_0x214886(0xce));_0x25905e+=_0x46d73b['name'];if(_0x51f003[_0x214886(0xc7)]){if(_0x46d73b[_0x214886(0xc8)]===_0x214886(0xd7)){const _0x158779=[];_0x46d73b[_0x214886(0xe5)][_0x214886(0xd4)]&&_0x158779[_0x214886(0xd9)](_0x46d73b[_0x214886(0xe5)][_0x214886(0xd4)]+'\x20segment'+(_0x46d73b[_0x214886(0xe5)][_0x214886(0xd4)]!==0x1?'s':'')),_0x46d73b[_0x214886(0xe5)][_0x214886(0xc6)]&&_0x158779['push'](_0x46d73b[_0x214886(0xe5)]['folderCount']+'\x20folder'+(_0x46d73b['metadata'][_0x214886(0xc6)]!==0x1?'s':'')),_0x158779[_0x214886(0xdf)]>0x0&&(_0x25905e+=a83_0xf97e8a[_0x214886(0xc3)]('\x20('+_0x158779[_0x214886(0xd2)](',\x20')+')'));}else _0x46d73b[_0x214886(0xc8)]===_0x214886(0xd0)&&_0x46d73b[_0x214886(0xd5)]!==undefined&&(_0x25905e+=a83_0xf97e8a['dim']('\x20('+formatRows(_0x46d73b[_0x214886(0xd5)])+')'));}_0x6cded0[_0x214886(0xd9)](_0x25905e);if(_0x46d73b['children']&&_0x46d73b[_0x214886(0xd1)][_0x214886(0xdf)]>0x0){let _0x20ce2f;if(_0x370c67===0x0)_0x20ce2f='';else _0x51f003[_0x214886(0xd3)]?_0x20ce2f=_0x18866a+(_0x4a873d?_0x214886(0xc4):a83_0xf97e8a[_0x214886(0xc3)]('│')+_0x214886(0xe4)):_0x20ce2f=_0x18866a+_0x51f003['indent'];const _0x5e8dcd=formatTree(_0x46d73b[_0x214886(0xd1)],_0x51f003,_0x370c67+0x1,_0x20ce2f);_0x6cded0['push'](_0x5e8dcd);}}return _0x6cded0[_0x214886(0xd2)]('\x0a');}export function formatFlatList(_0x1f4a52,_0x402d9e,_0x2ab47f={}){const _0x485841=a83_0x4b9f,_0x3624d8={...DEFAULT_OPTIONS,..._0x2ab47f},_0x2ee4d4=[];for(const _0x42d2b3 of _0x1f4a52){_0x2ee4d4[_0x485841(0xd9)]({'name':_0x42d2b3[_0x485841(0xe2)],'icon':_0x3624d8[_0x485841(0xe1)]?'📁':'','metadata':undefined});}for(const _0x2601e9 of _0x402d9e){const _0x1876f3=_0x3624d8[_0x485841(0xc7)]&&_0x2601e9[_0x485841(0xd5)]!==undefined?a83_0xf97e8a[_0x485841(0xc3)]('\x20('+formatRows(_0x2601e9['population'])+')'):'';_0x2ee4d4[_0x485841(0xd9)]({'name':_0x2601e9[_0x485841(0xe2)],'icon':_0x3624d8[_0x485841(0xe1)]?'🎯':'','metadata':_0x1876f3});}_0x2ee4d4[_0x485841(0xcd)]((_0x2c2f7c,_0x48a247)=>_0x2c2f7c['name'][_0x485841(0xde)](_0x48a247[_0x485841(0xe2)]));if(_0x2ee4d4[_0x485841(0xdf)]===0x0)return _0x485841(0xc9);const _0x2f1710=_0x2ee4d4[_0x485841(0xcf)](_0x5e1afc=>{const _0x4bf057=_0x485841,_0x23c710=_0x5e1afc['icon']?_0x5e1afc[_0x4bf057(0xdd)]+'\x20':'',_0x1fe9e7=_0x5e1afc[_0x4bf057(0xe5)]||'';return''+_0x23c710+_0x5e1afc[_0x4bf057(0xe2)]+_0x1fe9e7;});return _0x2f1710['join']('\x0a');}function a83_0x18d2(){const _0x3f5a5b=['showMetadata','type','(empty)','3084qBSgnd','1595fwOkEF','224KgaPAd','sort','🎯\x20','map','segment','children','join','showTreeLines','segmentCount','population','357SpQrAJ','folder','5107861aVvBqo','push','358uIIDuE','128765ICHKDp','1346622MjHExZ','icon','localeCompare','length','61104JcKMcK','showIcons','name','50oiKWFh','\x20\x20\x20','metadata','dim','\x20\x20\x20\x20','143415EnjkRf','folderCount'];a83_0x18d2=function(){return _0x3f5a5b;};return a83_0x18d2();}
1
+ (function(_0x43b8b8,_0xa8035a){const _0x35c1ac=a83_0x3b64,_0xa9d950=_0x43b8b8();while(!![]){try{const _0x35edc1=-parseInt(_0x35c1ac(0x1ad))/0x1+-parseInt(_0x35c1ac(0x1c2))/0x2+parseInt(_0x35c1ac(0x1bb))/0x3*(parseInt(_0x35c1ac(0x1b3))/0x4)+parseInt(_0x35c1ac(0x1cb))/0x5+-parseInt(_0x35c1ac(0x1b9))/0x6+parseInt(_0x35c1ac(0x1c4))/0x7*(-parseInt(_0x35c1ac(0x1ca))/0x8)+-parseInt(_0x35c1ac(0x1b2))/0x9*(-parseInt(_0x35c1ac(0x1c7))/0xa);if(_0x35edc1===_0xa8035a)break;else _0xa9d950['push'](_0xa9d950['shift']());}catch(_0x49a9c1){_0xa9d950['push'](_0xa9d950['shift']());}}}(a83_0x3698,0x216da));import{formatRows}from'./formatters.js';function a83_0x3b64(_0x2076f2,_0x1c7eb4){const _0x3698d6=a83_0x3698();return a83_0x3b64=function(_0x3b644e,_0x2505ba){_0x3b644e=_0x3b644e-0x1ab;let _0x5e12ee=_0x3698d6[_0x3b644e];return _0x5e12ee;},a83_0x3b64(_0x2076f2,_0x1c7eb4);}import a83_0x2cb42b from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x3104ae,_0x9a1fa6={},_0x171540=0x0,_0x308bed=''){const _0x32ce0c=a83_0x3b64,_0x14ce89={...DEFAULT_OPTIONS,..._0x9a1fa6},_0x1ab219=[],_0xb12788=[..._0x3104ae][_0x32ce0c(0x1c1)]((_0x19cb4a,_0x3defe8)=>_0x19cb4a[_0x32ce0c(0x1ce)][_0x32ce0c(0x1ab)](_0x3defe8['name']));for(let _0x2a84a7=0x0;_0x2a84a7<_0xb12788[_0x32ce0c(0x1bd)];_0x2a84a7++){const _0x4b787b=_0xb12788[_0x2a84a7],_0x30bde4=_0x2a84a7===_0xb12788[_0x32ce0c(0x1bd)]-0x1;let _0x711422='';_0x171540>0x0&&(_0x711422+=_0x308bed);_0x14ce89['showTreeLines']&&_0x171540>0x0&&(_0x711422+=a83_0x2cb42b[_0x32ce0c(0x1cf)](_0x30bde4?_0x32ce0c(0x1bf):_0x32ce0c(0x1cd)));_0x14ce89[_0x32ce0c(0x1c0)]&&(_0x711422+=_0x4b787b[_0x32ce0c(0x1b7)]==='folder'?_0x32ce0c(0x1c9):_0x32ce0c(0x1c8));_0x711422+=_0x4b787b[_0x32ce0c(0x1ce)];if(_0x14ce89['showMetadata']){if(_0x4b787b[_0x32ce0c(0x1b7)]===_0x32ce0c(0x1ba)){const _0x3aec0d=[];_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1b8)]&&_0x3aec0d[_0x32ce0c(0x1c3)](_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1b8)]+'\x20segment'+(_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1b8)]!==0x1?'s':'')),_0x4b787b[_0x32ce0c(0x1ae)]['folderCount']&&_0x3aec0d[_0x32ce0c(0x1c3)](_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1cc)]+_0x32ce0c(0x1b0)+(_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1cc)]!==0x1?'s':'')),_0x3aec0d[_0x32ce0c(0x1bd)]>0x0&&(_0x711422+=a83_0x2cb42b[_0x32ce0c(0x1cf)]('\x20('+_0x3aec0d['join'](',\x20')+')'));}else _0x4b787b['type']===_0x32ce0c(0x1b6)&&_0x4b787b[_0x32ce0c(0x1c6)]!==undefined&&(_0x711422+=a83_0x2cb42b[_0x32ce0c(0x1cf)]('\x20('+formatRows(_0x4b787b[_0x32ce0c(0x1c6)])+')'));}_0x1ab219['push'](_0x711422);if(_0x4b787b[_0x32ce0c(0x1b1)]&&_0x4b787b[_0x32ce0c(0x1b1)][_0x32ce0c(0x1bd)]>0x0){let _0x4fccc2;if(_0x171540===0x0)_0x4fccc2='';else _0x14ce89[_0x32ce0c(0x1be)]?_0x4fccc2=_0x308bed+(_0x30bde4?_0x32ce0c(0x1b4):a83_0x2cb42b[_0x32ce0c(0x1cf)]('│')+'\x20\x20\x20'):_0x4fccc2=_0x308bed+_0x14ce89[_0x32ce0c(0x1bc)];const _0x529f32=formatTree(_0x4b787b[_0x32ce0c(0x1b1)],_0x14ce89,_0x171540+0x1,_0x4fccc2);_0x1ab219[_0x32ce0c(0x1c3)](_0x529f32);}}return _0x1ab219[_0x32ce0c(0x1b5)]('\x0a');}export function formatFlatList(_0x17b184,_0x4c86e0,_0x187894={}){const _0x4a0e95=a83_0x3b64,_0x387e4f={...DEFAULT_OPTIONS,..._0x187894},_0x306ed3=[];for(const _0x27becd of _0x17b184){_0x306ed3[_0x4a0e95(0x1c3)]({'name':_0x27becd['name'],'icon':_0x387e4f[_0x4a0e95(0x1c0)]?'📁':'','metadata':undefined});}for(const _0x539cfc of _0x4c86e0){const _0x44515b=_0x387e4f[_0x4a0e95(0x1ac)]&&_0x539cfc[_0x4a0e95(0x1c6)]!==undefined?a83_0x2cb42b[_0x4a0e95(0x1cf)]('\x20('+formatRows(_0x539cfc[_0x4a0e95(0x1c6)])+')'):'';_0x306ed3['push']({'name':_0x539cfc[_0x4a0e95(0x1ce)],'icon':_0x387e4f['showIcons']?'🎯':'','metadata':_0x44515b});}_0x306ed3['sort']((_0x39aeed,_0x2e852e)=>_0x39aeed[_0x4a0e95(0x1ce)][_0x4a0e95(0x1ab)](_0x2e852e[_0x4a0e95(0x1ce)]));if(_0x306ed3[_0x4a0e95(0x1bd)]===0x0)return'(empty)';const _0x106ebb=_0x306ed3[_0x4a0e95(0x1af)](_0x43250f=>{const _0x54d006=_0x4a0e95,_0x5e6d01=_0x43250f[_0x54d006(0x1c5)]?_0x43250f['icon']+'\x20':'',_0x4b14ef=_0x43250f[_0x54d006(0x1ae)]||'';return''+_0x5e6d01+_0x43250f[_0x54d006(0x1ce)]+_0x4b14ef;});return _0x106ebb[_0x4a0e95(0x1b5)]('\x0a');}function a83_0x3698(){const _0x2a682c=['374686vyascy','push','1805965fWblTr','icon','population','1811220mNVsnE','🎯\x20','📁\x20','8hwQLHO','735475YUJYVX','folderCount','├──\x20','name','dim','localeCompare','showMetadata','19924hgLZef','metadata','map','\x20folder','children','27WPEHKQ','4zQzaOR','\x20\x20\x20\x20','join','segment','type','segmentCount','974772SslwEM','folder','222555xhbahD','indent','length','showTreeLines','└──\x20','showIcons','sort'];a83_0x3698=function(){return _0x2a682c;};return a83_0x3698();}
@@ -1 +1 @@
1
- const a84_0x1dc2b1=a84_0x5285;(function(_0x71e8d,_0x5ea82c){const _0x4d776e=a84_0x5285,_0x23e3f0=_0x71e8d();while(!![]){try{const _0x29b518=-parseInt(_0x4d776e(0x1c0))/0x1*(-parseInt(_0x4d776e(0x1e5))/0x2)+-parseInt(_0x4d776e(0x1d7))/0x3+parseInt(_0x4d776e(0x1de))/0x4+parseInt(_0x4d776e(0x1d6))/0x5*(parseInt(_0x4d776e(0x1ca))/0x6)+parseInt(_0x4d776e(0x1c7))/0x7+-parseInt(_0x4d776e(0x1cd))/0x8+-parseInt(_0x4d776e(0x1d5))/0x9;if(_0x29b518===_0x5ea82c)break;else _0x23e3f0['push'](_0x23e3f0['shift']());}catch(_0x39878a){_0x23e3f0['push'](_0x23e3f0['shift']());}}}(a84_0x3112,0xd0eaf));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a84_0x4f9065 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a84_0x1dc2b1(0x1e3),TIMEOUT_MS=0x7d0;function a84_0x3112(){const _0xecd84e=['\x0aUpdate\x20available:\x20','Request\x20timeout','updateAvailable','1459880GNBxOg','dim','yellow','Invalid\x20version\x20format','\x0aRun:\x20','https://registry.npmjs.org/@treasuredata/tdx/latest','statusCode','3396754qWhjkx','cyan','NO_COLOR','1ZcmjUI','toISOString','Update\x20available:','end','npm\x20install\x20-g\x20@treasuredata/tdx@latest','now','HTTP\x20','2965179wwsWOG','isTTY','error','366EaYTEs','last_version_check','data','11368928bmtTFh','currentVersion','latestVersion','write','version','utf-8','getTime','lastCheck','3308013DvFddJ','125155jYZbQA','4108305GXwCgR','gray','stderr','Run:'];a84_0x3112=function(){return _0xecd84e;};return a84_0x3112();}function getCacheFilePath(){const _0x3a0ac0=a84_0x1dc2b1,_0x4bcd5f=getCacheDir();return join(_0x4bcd5f,_0x3a0ac0(0x1cb));}function readCache(){const _0x3d743e=a84_0x1dc2b1;try{const _0x108ec6=getCacheFilePath(),_0x2072f1=readFileSync(_0x108ec6,_0x3d743e(0x1d2));return JSON['parse'](_0x2072f1);}catch{return null;}}function a84_0x5285(_0x1326fd,_0x2d764b){const _0x3112fb=a84_0x3112();return a84_0x5285=function(_0x528596,_0x10dac8){_0x528596=_0x528596-0x1c0;let _0x3dee08=_0x3112fb[_0x528596];return _0x3dee08;},a84_0x5285(_0x1326fd,_0x2d764b);}function writeCache(_0x3ce8d5){const _0x1e6599=a84_0x1dc2b1;try{const _0x243c8e=getCacheDir();mkdirSync(_0x243c8e,{'recursive':!![]});const _0xba4b1b={'lastCheck':new Date()[_0x1e6599(0x1c1)](),'latestVersion':_0x3ce8d5},_0x1fc331=getCacheFilePath();writeFileSync(_0x1fc331,JSON['stringify'](_0xba4b1b,null,0x2),_0x1e6599(0x1d2));}catch{}}function isCacheValid(_0x41ccf9){const _0x405a37=a84_0x1dc2b1;if(!_0x41ccf9)return![];const _0x290f3b=new Date(_0x41ccf9[_0x405a37(0x1d4)])[_0x405a37(0x1d3)](),_0x2eec15=Date[_0x405a37(0x1c5)]();return _0x2eec15-_0x290f3b<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x27bf58,_0x4154ed)=>{const _0x453954=a84_0x5285,_0x346d43=get(NPM_REGISTRY_URL,_0x1b93ac=>{const _0x3a3373=a84_0x5285;if(_0x1b93ac['statusCode']!==0xc8){clearTimeout(_0x2b6150),_0x4154ed(new Error(_0x3a3373(0x1c6)+_0x1b93ac[_0x3a3373(0x1e4)]));return;}let _0x1b0926='';_0x1b93ac['on'](_0x3a3373(0x1cc),_0xd6991b=>{_0x1b0926+=_0xd6991b;}),_0x1b93ac['on'](_0x3a3373(0x1c3),()=>{const _0x38ddc4=_0x3a3373;clearTimeout(_0x2b6150);try{const _0x4d86ef=JSON['parse'](_0x1b0926);if(!valid(_0x4d86ef['version'])){_0x4154ed(new Error(_0x38ddc4(0x1e1)));return;}_0x27bf58(_0x4d86ef[_0x38ddc4(0x1d1)]);}catch(_0x4a87a9){_0x4154ed(_0x4a87a9);}});})['on'](_0x453954(0x1c9),_0x4c0777=>{clearTimeout(_0x2b6150),_0x4154ed(_0x4c0777);}),_0x2b6150=setTimeout(()=>{const _0x40b755=_0x453954;_0x346d43['destroy'](),_0x4154ed(new Error(_0x40b755(0x1dc)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x26e076){const _0x12d69c=a84_0x1dc2b1;try{const _0x527eeb=readCache();if(isCacheValid(_0x527eeb)){const _0x3735e3=gt(_0x527eeb[_0x12d69c(0x1cf)],_0x26e076);return{'updateAvailable':_0x3735e3,'currentVersion':_0x26e076,'latestVersion':_0x527eeb[_0x12d69c(0x1cf)]};}const _0x3e9268=await fetchLatestVersion();writeCache(_0x3e9268);const _0x328de6=gt(_0x3e9268,_0x26e076);return{'updateAvailable':_0x328de6,'currentVersion':_0x26e076,'latestVersion':_0x3e9268};}catch{return null;}}export function displayUpdateNotification(_0x59608e){const _0xfa13cb=a84_0x1dc2b1;if(!_0x59608e[_0xfa13cb(0x1dd)])return;const _0x283976=process[_0xfa13cb(0x1d9)][_0xfa13cb(0x1c8)]&&!process['env'][_0xfa13cb(0x1e7)],_0xf43f=_0x283976?a84_0x4f9065[_0xfa13cb(0x1d8)]('→'):'→',_0x2d99e2=_0x283976?a84_0x4f9065['dim'](_0x59608e[_0xfa13cb(0x1ce)]):_0x59608e[_0xfa13cb(0x1ce)],_0x3d4fad=_0x283976?a84_0x4f9065['green'](_0x59608e[_0xfa13cb(0x1cf)]):_0x59608e[_0xfa13cb(0x1cf)],_0x541d06=_0x283976?a84_0x4f9065[_0xfa13cb(0x1e6)](_0xfa13cb(0x1c4)):_0xfa13cb(0x1c4),_0xb2e403=_0x283976?'\x0a'+a84_0x4f9065[_0xfa13cb(0x1e0)](_0xfa13cb(0x1c2))+'\x20'+_0x2d99e2+'\x20'+_0xf43f+'\x20'+_0x3d4fad+'\x0a'+a84_0x4f9065[_0xfa13cb(0x1df)](_0xfa13cb(0x1da))+'\x20'+_0x541d06+'\x0a':_0xfa13cb(0x1db)+_0x2d99e2+'\x20'+_0xf43f+'\x20'+_0x3d4fad+_0xfa13cb(0x1e2)+_0x541d06+'\x0a';process[_0xfa13cb(0x1d9)][_0xfa13cb(0x1d0)](_0xb2e403);}
1
+ function a84_0x37cc(_0x42501e,_0x524587){const _0x5daa7d=a84_0x5daa();return a84_0x37cc=function(_0x37cc94,_0x107f20){_0x37cc94=_0x37cc94-0x8c;let _0x4e21df=_0x5daa7d[_0x37cc94];return _0x4e21df;},a84_0x37cc(_0x42501e,_0x524587);}(function(_0x2ba4be,_0x4b6379){const _0xd6046b=a84_0x37cc,_0xd55cf=_0x2ba4be();while(!![]){try{const _0x55c72e=parseInt(_0xd6046b(0x91))/0x1*(parseInt(_0xd6046b(0x9f))/0x2)+parseInt(_0xd6046b(0x9e))/0x3+parseInt(_0xd6046b(0xad))/0x4*(parseInt(_0xd6046b(0xab))/0x5)+parseInt(_0xd6046b(0x8c))/0x6+parseInt(_0xd6046b(0x93))/0x7+parseInt(_0xd6046b(0x90))/0x8+-parseInt(_0xd6046b(0x8f))/0x9;if(_0x55c72e===_0x4b6379)break;else _0xd55cf['push'](_0xd55cf['shift']());}catch(_0x18c22a){_0xd55cf['push'](_0xd55cf['shift']());}}}(a84_0x5daa,0xd1a81));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a84_0x17bbef from'chalk';import{getCacheDir}from'../core/config.js';function a84_0x5daa(){const _0x5d1fbe=['stderr','error','Invalid\x20version\x20format','HTTP\x20','gray','Update\x20available:','latestVersion','env','3273429fyhZdt','22xaGbfp','lastCheck','now','npm\x20install\x20-g\x20@treasuredata/tdx@latest','getTime','destroy','last_version_check','end','version','Run:','cyan','isTTY','267590hLVCbu','currentVersion','88ZqAbvQ','parse','NO_COLOR','\x0aUpdate\x20available:\x20','utf-8','2706102ofOrQy','yellow','updateAvailable','34677432aWeMHE','6551376YbWaVa','53373fPNovt','toISOString','4103540dTbZuz','\x0aRun:\x20','dim'];a84_0x5daa=function(){return _0x5d1fbe;};return a84_0x5daa();}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x908eb3=a84_0x37cc,_0x46db76=getCacheDir();return join(_0x46db76,_0x908eb3(0xa5));}function readCache(){const _0x4b2410=a84_0x37cc;try{const _0x124356=getCacheFilePath(),_0x1453b5=readFileSync(_0x124356,_0x4b2410(0xb1));return JSON[_0x4b2410(0xae)](_0x1453b5);}catch{return null;}}function writeCache(_0x5e5a63){const _0x5652a2=a84_0x37cc;try{const _0x1dc19f=getCacheDir();mkdirSync(_0x1dc19f,{'recursive':!![]});const _0x4332a5={'lastCheck':new Date()[_0x5652a2(0x92)](),'latestVersion':_0x5e5a63},_0x2872b1=getCacheFilePath();writeFileSync(_0x2872b1,JSON['stringify'](_0x4332a5,null,0x2),_0x5652a2(0xb1));}catch{}}function isCacheValid(_0x5072cd){const _0x417706=a84_0x37cc;if(!_0x5072cd)return![];const _0x11133a=new Date(_0x5072cd[_0x417706(0xa0)])[_0x417706(0xa3)](),_0x58263=Date[_0x417706(0xa1)]();return _0x58263-_0x11133a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x49f61b,_0x2e2d72)=>{const _0x436fc5=a84_0x37cc,_0x2972d6=get(NPM_REGISTRY_URL,_0x571edf=>{const _0x2f31c3=a84_0x37cc;if(_0x571edf['statusCode']!==0xc8){clearTimeout(_0xf58985),_0x2e2d72(new Error(_0x2f31c3(0x99)+_0x571edf['statusCode']));return;}let _0x581e63='';_0x571edf['on']('data',_0x288e66=>{_0x581e63+=_0x288e66;}),_0x571edf['on'](_0x2f31c3(0xa6),()=>{const _0x1d53ca=_0x2f31c3;clearTimeout(_0xf58985);try{const _0x15971c=JSON[_0x1d53ca(0xae)](_0x581e63);if(!valid(_0x15971c[_0x1d53ca(0xa7)])){_0x2e2d72(new Error(_0x1d53ca(0x98)));return;}_0x49f61b(_0x15971c[_0x1d53ca(0xa7)]);}catch(_0x36892e){_0x2e2d72(_0x36892e);}});})['on'](_0x436fc5(0x97),_0x24846b=>{clearTimeout(_0xf58985),_0x2e2d72(_0x24846b);}),_0xf58985=setTimeout(()=>{const _0x104f9b=_0x436fc5;_0x2972d6[_0x104f9b(0xa4)](),_0x2e2d72(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x324293){const _0x7b69de=a84_0x37cc;try{const _0x1ee337=readCache();if(isCacheValid(_0x1ee337)){const _0xee4714=gt(_0x1ee337[_0x7b69de(0x9c)],_0x324293);return{'updateAvailable':_0xee4714,'currentVersion':_0x324293,'latestVersion':_0x1ee337[_0x7b69de(0x9c)]};}const _0x54970a=await fetchLatestVersion();writeCache(_0x54970a);const _0x38edf1=gt(_0x54970a,_0x324293);return{'updateAvailable':_0x38edf1,'currentVersion':_0x324293,'latestVersion':_0x54970a};}catch{return null;}}export function displayUpdateNotification(_0x48a85a){const _0x4dc866=a84_0x37cc;if(!_0x48a85a[_0x4dc866(0x8e)])return;const _0x3663fe=process[_0x4dc866(0x96)][_0x4dc866(0xaa)]&&!process[_0x4dc866(0x9d)][_0x4dc866(0xaf)],_0x9ac365=_0x3663fe?a84_0x17bbef[_0x4dc866(0x9a)]('→'):'→',_0x4f7e05=_0x3663fe?a84_0x17bbef[_0x4dc866(0x95)](_0x48a85a[_0x4dc866(0xac)]):_0x48a85a[_0x4dc866(0xac)],_0x31511b=_0x3663fe?a84_0x17bbef['green'](_0x48a85a[_0x4dc866(0x9c)]):_0x48a85a[_0x4dc866(0x9c)],_0x53ec55=_0x3663fe?a84_0x17bbef[_0x4dc866(0xa9)](_0x4dc866(0xa2)):_0x4dc866(0xa2),_0x1bab35=_0x3663fe?'\x0a'+a84_0x17bbef[_0x4dc866(0x8d)](_0x4dc866(0x9b))+'\x20'+_0x4f7e05+'\x20'+_0x9ac365+'\x20'+_0x31511b+'\x0a'+a84_0x17bbef[_0x4dc866(0x95)](_0x4dc866(0xa8))+'\x20'+_0x53ec55+'\x0a':_0x4dc866(0xb0)+_0x4f7e05+'\x20'+_0x9ac365+'\x20'+_0x31511b+_0x4dc866(0x94)+_0x53ec55+'\x0a';process[_0x4dc866(0x96)]['write'](_0x1bab35);}
@@ -1 +1 @@
1
- (function(_0x4071b1,_0x5566ca){const _0x34227f=a85_0x4567,_0x512f5e=_0x4071b1();while(!![]){try{const _0x2fa79a=parseInt(_0x34227f(0xb5))/0x1+parseInt(_0x34227f(0xae))/0x2*(-parseInt(_0x34227f(0xad))/0x3)+parseInt(_0x34227f(0xaf))/0x4*(-parseInt(_0x34227f(0xb0))/0x5)+-parseInt(_0x34227f(0xb4))/0x6+parseInt(_0x34227f(0xb1))/0x7+-parseInt(_0x34227f(0xb3))/0x8+parseInt(_0x34227f(0xac))/0x9;if(_0x2fa79a===_0x5566ca)break;else _0x512f5e['push'](_0x512f5e['shift']());}catch(_0x4b478e){_0x512f5e['push'](_0x512f5e['shift']());}}}(a85_0x47a2,0xc75b3));function a85_0x4567(_0x43090e,_0x580d76){const _0x47a2fe=a85_0x47a2();return a85_0x4567=function(_0x45673b,_0x3a6029){_0x45673b=_0x45673b-0xac;let _0x3c8096=_0x47a2fe[_0x45673b];return _0x3c8096;},a85_0x4567(_0x43090e,_0x580d76);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x5b76fc){const _0x505e52=a85_0x4567;if(_0x5b76fc===_0x505e52(0xb6))return!![];if(_0x5b76fc[_0x505e52(0xb2)]('.'))return![];return!![];}function a85_0x47a2(){const _0x18f803=['.digdag','28780857NuEiPi','482523ahluUt','10jnvLah','5565604STsSbe','5nawBVL','7266238DdSfvn','startsWith','6374960NAPLjm','9392142CuTvhH','1138489MZbdvr'];a85_0x47a2=function(){return _0x18f803;};return a85_0x47a2();}
1
+ function a85_0x77ac(_0x3398ef,_0xd08dd8){const _0x1d7283=a85_0x1d72();return a85_0x77ac=function(_0x77acc3,_0x582de9){_0x77acc3=_0x77acc3-0x13d;let _0x499843=_0x1d7283[_0x77acc3];return _0x499843;},a85_0x77ac(_0x3398ef,_0xd08dd8);}(function(_0xc18cfe,_0x5417b8){const _0x3e87c3=a85_0x77ac,_0x40c6fa=_0xc18cfe();while(!![]){try{const _0x585a61=-parseInt(_0x3e87c3(0x148))/0x1*(parseInt(_0x3e87c3(0x13e))/0x2)+-parseInt(_0x3e87c3(0x143))/0x3+-parseInt(_0x3e87c3(0x147))/0x4*(parseInt(_0x3e87c3(0x13f))/0x5)+parseInt(_0x3e87c3(0x146))/0x6*(parseInt(_0x3e87c3(0x145))/0x7)+-parseInt(_0x3e87c3(0x13d))/0x8*(parseInt(_0x3e87c3(0x142))/0x9)+parseInt(_0x3e87c3(0x141))/0xa+parseInt(_0x3e87c3(0x140))/0xb;if(_0x585a61===_0x5417b8)break;else _0x40c6fa['push'](_0x40c6fa['shift']());}catch(_0x3d5781){_0x40c6fa['push'](_0x40c6fa['shift']());}}}(a85_0x1d72,0x265cc));export const WORKFLOW_FILE_EXTENSION='.dig';function a85_0x1d72(){const _0x3ee792=['30332IzOXex','5wdHNyL','6165654PqFbQc','238130WEldnK','414uQyFyW','196284RywWox','.digdag','399665mtZhmA','6LSzMoh','671288eqffVX','2zXuIWb','38384tNPZRM'];a85_0x1d72=function(){return _0x3ee792;};return a85_0x1d72();}export function shouldIncludeInArchive(_0x3a65a7){const _0x157bfc=a85_0x77ac;if(_0x3a65a7===_0x157bfc(0x144))return!![];if(_0x3a65a7['startsWith']('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
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": {