@treasuredata/tdx 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.js +1 -1
  6. package/dist/client/llm-client.js.map +1 -1
  7. package/dist/client/rate-limiter.js +1 -1
  8. package/dist/client/td-client.js +1 -1
  9. package/dist/client/trino-client.js +1 -1
  10. package/dist/client/workflow-client.js +1 -1
  11. package/dist/commands/activations.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/context-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/llm-command.js +1 -1
  21. package/dist/commands/llm-proxy.js +1 -1
  22. package/dist/commands/parent-segment-command.js +1 -1
  23. package/dist/commands/profiles-command.js +1 -1
  24. package/dist/commands/query-command.js +1 -1
  25. package/dist/commands/segment-command.js +1 -1
  26. package/dist/commands/segment-create-command.js +1 -1
  27. package/dist/commands/segment-fields-command.js +1 -1
  28. package/dist/commands/segment-pwd-command.js +1 -1
  29. package/dist/commands/segment-update-command.js +1 -1
  30. package/dist/commands/segment-use-command.js +1 -1
  31. package/dist/commands/segments.js +1 -1
  32. package/dist/commands/show.js +1 -1
  33. package/dist/commands/tables.js +1 -1
  34. package/dist/commands/use-command.js +1 -1
  35. package/dist/commands/workflow-command.js +1 -1
  36. package/dist/core/auth.js +1 -1
  37. package/dist/core/config.js +1 -1
  38. package/dist/core/global-context.js +1 -1
  39. package/dist/core/profile.js +1 -1
  40. package/dist/core/project-config.js +1 -1
  41. package/dist/core/session.js +1 -1
  42. package/dist/index.js +1 -1
  43. package/dist/proxy/anthropic-adapter.js +1 -1
  44. package/dist/proxy/server.d.ts.map +1 -1
  45. package/dist/proxy/server.js +1 -1
  46. package/dist/proxy/server.js.map +1 -1
  47. package/dist/proxy/session-cache.d.ts +3 -1
  48. package/dist/proxy/session-cache.d.ts.map +1 -1
  49. package/dist/proxy/session-cache.js +1 -1
  50. package/dist/proxy/session-cache.js.map +1 -1
  51. package/dist/sdk/api.js +1 -1
  52. package/dist/sdk/database.js +1 -1
  53. package/dist/sdk/errors.js +1 -1
  54. package/dist/sdk/index.js +1 -1
  55. package/dist/sdk/job.js +1 -1
  56. package/dist/sdk/llm.js +1 -1
  57. package/dist/sdk/query.js +1 -1
  58. package/dist/sdk/segment.js +1 -1
  59. package/dist/sdk/table.js +1 -1
  60. package/dist/sdk/workflow.js +1 -1
  61. package/dist/types/endpoints.js +1 -1
  62. package/dist/types/index.js +1 -1
  63. package/dist/utils/agent-ref-parser.js +1 -1
  64. package/dist/utils/chat-cache.js +1 -1
  65. package/dist/utils/colors.js +1 -1
  66. package/dist/utils/command-output.js +1 -1
  67. package/dist/utils/constants.js +1 -1
  68. package/dist/utils/file-permissions.js +1 -1
  69. package/dist/utils/format-detector.js +1 -1
  70. package/dist/utils/formatters.js +1 -1
  71. package/dist/utils/json-loader.js +1 -1
  72. package/dist/utils/model-aliases.js +1 -1
  73. package/dist/utils/option-validation.js +1 -1
  74. package/dist/utils/port.js +1 -1
  75. package/dist/utils/process.js +1 -1
  76. package/dist/utils/prompt.js +1 -1
  77. package/dist/utils/segment-path-parser.js +1 -1
  78. package/dist/utils/segment-ref-parser.js +1 -1
  79. package/dist/utils/spinner.js +1 -1
  80. package/dist/utils/sql-parser.js +1 -1
  81. package/dist/utils/sse-parser.js +1 -1
  82. package/dist/utils/string-utils.js +1 -1
  83. package/dist/utils/table-ref-parser.js +1 -1
  84. package/dist/utils/tdx-logger.js +1 -1
  85. package/dist/utils/tree-formatter.js +1 -1
  86. package/dist/utils/version-check.js +1 -1
  87. package/dist/utils/workflow-utils.js +1 -1
  88. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x15edde,_0x4e0352){const _0x27a583=a73_0x1052,_0x185536=_0x15edde();while(!![]){try{const _0x347cb4=parseInt(_0x27a583(0x1e7))/0x1+parseInt(_0x27a583(0x1ee))/0x2+-parseInt(_0x27a583(0x1f1))/0x3*(-parseInt(_0x27a583(0x1dc))/0x4)+-parseInt(_0x27a583(0x1df))/0x5*(-parseInt(_0x27a583(0x1d8))/0x6)+-parseInt(_0x27a583(0x1db))/0x7+-parseInt(_0x27a583(0x1da))/0x8+parseInt(_0x27a583(0x1d7))/0x9*(-parseInt(_0x27a583(0x1e2))/0xa);if(_0x347cb4===_0x4e0352)break;else _0x185536['push'](_0x185536['shift']());}catch(_0x1d5deb){_0x185536['push'](_0x185536['shift']());}}}(a73_0xd74a,0x1a6a3));export function parsePath(_0x1f347d){const _0x1744a0=a73_0x1052;if(!_0x1f347d||_0x1f347d[_0x1744a0(0x1f0)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x2bcf3d=_0x1f347d[_0x1744a0(0x1f0)]();if(_0x2bcf3d==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x1f347d};const _0x3ee95f=_0x2bcf3d[_0x1744a0(0x1d6)]('/')?_0x2bcf3d[_0x1744a0(0x1eb)](0x1):_0x2bcf3d,_0x5aaa24=_0x3ee95f['split']('/')[_0x1744a0(0x1e5)](_0x2a7708=>_0x2a7708!=='');if(_0x5aaa24['length']===0x0)throw new Error(_0x1744a0(0x1f2));const _0x5d9551=_0x2bcf3d['startsWith']('/')||!isRelativePathSegment(_0x5aaa24[0x0]);for(const _0x3e2334 of _0x5aaa24){validatePathSegment(_0x3e2334);}return{'segments':_0x5aaa24,'isAbsolute':_0x5d9551,'raw':_0x1f347d};}function isRelativePathSegment(_0x58b88d){return _0x58b88d==='.'||_0x58b88d==='..';}function validatePathSegment(_0x27341b){const _0x20caac=a73_0x1052;if(_0x27341b==='')throw new Error(_0x20caac(0x1e6));if(_0x27341b==='.'||_0x27341b==='..')return;if(/[\x00-\x1F\x7F]/[_0x20caac(0x1e4)](_0x27341b))throw new Error(_0x20caac(0x1e9)+_0x27341b);if(_0x27341b!==_0x27341b['trim']()){}}export function validatePath(_0x32c49e){const _0x2d878a=a73_0x1052;if(_0x32c49e[_0x2d878a(0x1ec)][_0x2d878a(0x1e3)]===0x0&&!_0x32c49e[_0x2d878a(0x1e1)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x32c49e[_0x2d878a(0x1e1)]){if(_0x32c49e[_0x2d878a(0x1ec)][0x0]==='..')throw new Error(_0x2d878a(0x1d5));let _0x2be7a8=0x0;for(const _0x1e363b of _0x32c49e['segments']){if(_0x1e363b==='..'){if(_0x2be7a8===0x0)throw new Error(_0x2d878a(0x1de));_0x2be7a8--;}else _0x1e363b!=='.'&&_0x2be7a8++;}}}export function joinPaths(_0x5a793a,_0x28e51e){const _0x313c2d=a73_0x1052;if(!_0x5a793a||_0x5a793a==='/')return _0x28e51e;if(!_0x28e51e||_0x28e51e==='.')return _0x5a793a;if(_0x28e51e[_0x313c2d(0x1d6)]('/'))return _0x28e51e;const _0x4d89c2=parsePath(_0x5a793a),_0x33e135=parsePath(_0x28e51e),_0x26c3cd=[..._0x4d89c2[_0x313c2d(0x1ec)]];for(const _0x170765 of _0x33e135[_0x313c2d(0x1ec)]){if(_0x170765==='.')continue;else{if(_0x170765==='..'){if(_0x26c3cd['length']===0x0)throw new Error(_0x313c2d(0x1ed));_0x26c3cd['pop']();}else _0x26c3cd['push'](_0x170765);}}const _0x4ac6cb=_0x26c3cd[_0x313c2d(0x1dd)]('/');return _0x4d89c2[_0x313c2d(0x1ea)][_0x313c2d(0x1d6)]('/')?'/'+_0x4ac6cb:_0x4ac6cb;}export function normalizePath(_0x44ff62){const _0x473d0c=a73_0x1052,_0x37fa1e=parsePath(_0x44ff62),_0x1891a0=[];for(const _0x18e4bd of _0x37fa1e[_0x473d0c(0x1ec)]){if(_0x18e4bd==='.')continue;else{if(_0x18e4bd==='..'){if(_0x1891a0[_0x473d0c(0x1e3)]===0x0){if(_0x37fa1e[_0x473d0c(0x1e1)])throw new Error(_0x473d0c(0x1ed));_0x1891a0[_0x473d0c(0x1ef)]('..');}else _0x1891a0[_0x1891a0['length']-0x1]==='..'?_0x1891a0[_0x473d0c(0x1ef)]('..'):_0x1891a0[_0x473d0c(0x1e8)]();}else _0x1891a0['push'](_0x18e4bd);}}if(_0x1891a0[_0x473d0c(0x1e3)]===0x0)return _0x37fa1e[_0x473d0c(0x1e1)]?'/':'.';const _0x17af41=_0x1891a0[_0x473d0c(0x1dd)]('/');return _0x37fa1e[_0x473d0c(0x1ea)]['startsWith']('/')?'/'+_0x17af41:_0x17af41;}function a73_0x1052(_0x340864,_0x14ab0a){const _0xd74adc=a73_0xd74a();return a73_0x1052=function(_0x1052fd,_0x4aabd7){_0x1052fd=_0x1052fd-0x1d5;let _0x26b9b3=_0xd74adc[_0x1052fd];return _0x26b9b3;},a73_0x1052(_0x340864,_0x14ab0a);}export function getParentPath(_0x198f42){const _0x375797=a73_0x1052,_0x192f12=parsePath(_0x198f42);if(_0x192f12[_0x375797(0x1ec)]['length']<=0x1)return'/';const _0x1a17d3=_0x192f12[_0x375797(0x1ec)][_0x375797(0x1d9)](0x0,-0x1)[_0x375797(0x1dd)]('/');return _0x192f12[_0x375797(0x1ea)][_0x375797(0x1d6)]('/')?'/'+_0x1a17d3:_0x1a17d3;}export function getBaseName(_0x41252e){const _0x395f52=a73_0x1052,_0x55d0c0=parsePath(_0x41252e);return _0x55d0c0[_0x395f52(0x1ec)][_0x55d0c0[_0x395f52(0x1ec)][_0x395f52(0x1e3)]-0x1]||'';}export function isChildPath(_0x55d50f,_0x2ea912){const _0x1e11e8=a73_0x1052,_0x3d7d96=parsePath(_0x55d50f),_0x16ae7d=parsePath(_0x2ea912);if(_0x3d7d96['segments'][_0x1e11e8(0x1e3)]<=_0x16ae7d['segments']['length'])return![];for(let _0x4f5802=0x0;_0x4f5802<_0x16ae7d[_0x1e11e8(0x1ec)][_0x1e11e8(0x1e3)];_0x4f5802++){if(_0x3d7d96[_0x1e11e8(0x1ec)][_0x4f5802]!==_0x16ae7d['segments'][_0x4f5802])return![];}return!![];}function a73_0xd74a(){const _0xb3f55c=['Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','raw','substring','segments','Cannot\x20navigate\x20above\x20root','177474BKQiZE','push','trim','157443UEVqwW','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','startsWith','135423kfRJqT','1326NnOGqX','slice','940000loODro','1398243UzPdqa','4YMTAlH','join','Path\x20attempts\x20to\x20navigate\x20above\x20root','3185xZYVXu','Cannot\x20split\x20empty\x20path','isAbsolute','40xNpOPr','length','test','filter','Path\x20segment\x20cannot\x20be\x20empty','203637goDZEI','pop'];a73_0xd74a=function(){return _0xb3f55c;};return a73_0xd74a();}export function splitPath(_0x17a54c){const _0x45ce3c=a73_0x1052,_0x3b5670=parsePath(_0x17a54c);if(_0x3b5670['segments'][_0x45ce3c(0x1e3)]===0x0)throw new Error(_0x45ce3c(0x1e0));if(_0x3b5670[_0x45ce3c(0x1ec)][_0x45ce3c(0x1e3)]===0x1)return{'parent':_0x3b5670['segments'][0x0]};return{'parent':_0x3b5670[_0x45ce3c(0x1ec)][0x0],'child':_0x3b5670[_0x45ce3c(0x1ec)][_0x45ce3c(0x1d9)](0x1)[_0x45ce3c(0x1dd)]('/')};}
1
+ (function(_0x134b21,_0x735a9){const _0x1b8392=a73_0x50c9,_0x35dcac=_0x134b21();while(!![]){try{const _0x33b94d=-parseInt(_0x1b8392(0x164))/0x1*(-parseInt(_0x1b8392(0x156))/0x2)+-parseInt(_0x1b8392(0x168))/0x3+parseInt(_0x1b8392(0x165))/0x4*(parseInt(_0x1b8392(0x155))/0x5)+parseInt(_0x1b8392(0x166))/0x6*(-parseInt(_0x1b8392(0x150))/0x7)+-parseInt(_0x1b8392(0x160))/0x8+parseInt(_0x1b8392(0x14b))/0x9+parseInt(_0x1b8392(0x15b))/0xa*(parseInt(_0x1b8392(0x159))/0xb);if(_0x33b94d===_0x735a9)break;else _0x35dcac['push'](_0x35dcac['shift']());}catch(_0x36683d){_0x35dcac['push'](_0x35dcac['shift']());}}}(a73_0x38a9,0x73b51));export function parsePath(_0x521e1f){const _0x21a7b5=a73_0x50c9;if(!_0x521e1f||_0x521e1f[_0x21a7b5(0x154)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x11e84b=_0x521e1f[_0x21a7b5(0x154)]();if(_0x11e84b==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x521e1f};const _0x36bb77=_0x11e84b[_0x21a7b5(0x163)]('/')?_0x11e84b[_0x21a7b5(0x157)](0x1):_0x11e84b,_0x53cc6d=_0x36bb77[_0x21a7b5(0x15d)]('/')['filter'](_0x427451=>_0x427451!=='');if(_0x53cc6d[_0x21a7b5(0x161)]===0x0)throw new Error(_0x21a7b5(0x14e));const _0xd29b97=_0x11e84b['startsWith']('/')||!isRelativePathSegment(_0x53cc6d[0x0]);for(const _0x47dc7d of _0x53cc6d){validatePathSegment(_0x47dc7d);}return{'segments':_0x53cc6d,'isAbsolute':_0xd29b97,'raw':_0x521e1f};}function a73_0x38a9(){const _0x25f96e=['substring','pop','11tMBGps','Cannot\x20navigate\x20above\x20root','10385230smnvIn','slice','split','Path\x20attempts\x20to\x20navigate\x20above\x20root','isAbsolute','4141120iuAgAP','length','Cannot\x20split\x20empty\x20path','startsWith','2893aXvlSX','1717060wdqKGN','1362VouCvr','push','1320849MfqPFD','929763WMUqAQ','Relative\x20path\x20cannot\x20be\x20empty','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','join','18389TcPOXB','segments','raw','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','trim','5SFafyv','316dnQTXr'];a73_0x38a9=function(){return _0x25f96e;};return a73_0x38a9();}function isRelativePathSegment(_0x216e4a){return _0x216e4a==='.'||_0x216e4a==='..';}function validatePathSegment(_0x37d7dc){const _0x18b7c6=a73_0x50c9;if(_0x37d7dc==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x37d7dc==='.'||_0x37d7dc==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x37d7dc))throw new Error(_0x18b7c6(0x153)+_0x37d7dc);if(_0x37d7dc!==_0x37d7dc[_0x18b7c6(0x154)]()){}}function a73_0x50c9(_0x51e3b0,_0x280e57){const _0x38a911=a73_0x38a9();return a73_0x50c9=function(_0x50c968,_0x380188){_0x50c968=_0x50c968-0x14b;let _0x562f18=_0x38a911[_0x50c968];return _0x562f18;},a73_0x50c9(_0x51e3b0,_0x280e57);}export function validatePath(_0x585d16){const _0x129c48=a73_0x50c9;if(_0x585d16[_0x129c48(0x151)]['length']===0x0&&!_0x585d16['isAbsolute'])throw new Error(_0x129c48(0x14c));if(_0x585d16[_0x129c48(0x15f)]){if(_0x585d16['segments'][0x0]==='..')throw new Error(_0x129c48(0x14d));let _0x474ac9=0x0;for(const _0x2f1314 of _0x585d16[_0x129c48(0x151)]){if(_0x2f1314==='..'){if(_0x474ac9===0x0)throw new Error(_0x129c48(0x15e));_0x474ac9--;}else _0x2f1314!=='.'&&_0x474ac9++;}}}export function joinPaths(_0x4bb457,_0x40fc95){const _0x2b1018=a73_0x50c9;if(!_0x4bb457||_0x4bb457==='/')return _0x40fc95;if(!_0x40fc95||_0x40fc95==='.')return _0x4bb457;if(_0x40fc95[_0x2b1018(0x163)]('/'))return _0x40fc95;const _0x32f8de=parsePath(_0x4bb457),_0x4b28fb=parsePath(_0x40fc95),_0x28d68d=[..._0x32f8de[_0x2b1018(0x151)]];for(const _0x197b16 of _0x4b28fb[_0x2b1018(0x151)]){if(_0x197b16==='.')continue;else{if(_0x197b16==='..'){if(_0x28d68d[_0x2b1018(0x161)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x28d68d[_0x2b1018(0x158)]();}else _0x28d68d[_0x2b1018(0x167)](_0x197b16);}}const _0x7c0f31=_0x28d68d[_0x2b1018(0x14f)]('/');return _0x32f8de['raw'][_0x2b1018(0x163)]('/')?'/'+_0x7c0f31:_0x7c0f31;}export function normalizePath(_0x4f769b){const _0x4bda06=a73_0x50c9,_0x36f048=parsePath(_0x4f769b),_0x1ac08f=[];for(const _0x548911 of _0x36f048['segments']){if(_0x548911==='.')continue;else{if(_0x548911==='..'){if(_0x1ac08f[_0x4bda06(0x161)]===0x0){if(_0x36f048[_0x4bda06(0x15f)])throw new Error(_0x4bda06(0x15a));_0x1ac08f['push']('..');}else _0x1ac08f[_0x1ac08f[_0x4bda06(0x161)]-0x1]==='..'?_0x1ac08f[_0x4bda06(0x167)]('..'):_0x1ac08f[_0x4bda06(0x158)]();}else _0x1ac08f[_0x4bda06(0x167)](_0x548911);}}if(_0x1ac08f[_0x4bda06(0x161)]===0x0)return _0x36f048[_0x4bda06(0x15f)]?'/':'.';const _0x24e743=_0x1ac08f[_0x4bda06(0x14f)]('/');return _0x36f048[_0x4bda06(0x152)][_0x4bda06(0x163)]('/')?'/'+_0x24e743:_0x24e743;}export function getParentPath(_0x54e681){const _0x2894e6=a73_0x50c9,_0x28d8bc=parsePath(_0x54e681);if(_0x28d8bc[_0x2894e6(0x151)][_0x2894e6(0x161)]<=0x1)return'/';const _0x2a4067=_0x28d8bc[_0x2894e6(0x151)][_0x2894e6(0x15c)](0x0,-0x1)['join']('/');return _0x28d8bc[_0x2894e6(0x152)][_0x2894e6(0x163)]('/')?'/'+_0x2a4067:_0x2a4067;}export function getBaseName(_0x33f8ef){const _0x3d46a7=a73_0x50c9,_0x3e3e9e=parsePath(_0x33f8ef);return _0x3e3e9e[_0x3d46a7(0x151)][_0x3e3e9e[_0x3d46a7(0x151)]['length']-0x1]||'';}export function isChildPath(_0x47cdf9,_0x19578b){const _0x29412d=a73_0x50c9,_0x2220d1=parsePath(_0x47cdf9),_0x21f17b=parsePath(_0x19578b);if(_0x2220d1[_0x29412d(0x151)][_0x29412d(0x161)]<=_0x21f17b[_0x29412d(0x151)][_0x29412d(0x161)])return![];for(let _0x58b21f=0x0;_0x58b21f<_0x21f17b[_0x29412d(0x151)][_0x29412d(0x161)];_0x58b21f++){if(_0x2220d1[_0x29412d(0x151)][_0x58b21f]!==_0x21f17b[_0x29412d(0x151)][_0x58b21f])return![];}return!![];}export function splitPath(_0x2a5ebc){const _0x1c941a=a73_0x50c9,_0x3d5401=parsePath(_0x2a5ebc);if(_0x3d5401['segments'][_0x1c941a(0x161)]===0x0)throw new Error(_0x1c941a(0x162));if(_0x3d5401[_0x1c941a(0x151)]['length']===0x1)return{'parent':_0x3d5401[_0x1c941a(0x151)][0x0]};return{'parent':_0x3d5401['segments'][0x0],'child':_0x3d5401[_0x1c941a(0x151)][_0x1c941a(0x15c)](0x1)[_0x1c941a(0x14f)]('/')};}
@@ -1 +1 @@
1
- function a74_0x4db6(_0x172632,_0x4021b9){const _0x7e2595=a74_0x7e25();return a74_0x4db6=function(_0x4db612,_0x1f724f){_0x4db612=_0x4db612-0x194;let _0xd614f3=_0x7e2595[_0x4db612];return _0xd614f3;},a74_0x4db6(_0x172632,_0x4021b9);}(function(_0x1d9db6,_0x3193e8){const _0x20106a=a74_0x4db6,_0x42708a=_0x1d9db6();while(!![]){try{const _0x55900f=-parseInt(_0x20106a(0x199))/0x1+parseInt(_0x20106a(0x19a))/0x2*(parseInt(_0x20106a(0x196))/0x3)+-parseInt(_0x20106a(0x1a0))/0x4+parseInt(_0x20106a(0x19b))/0x5*(parseInt(_0x20106a(0x19f))/0x6)+parseInt(_0x20106a(0x194))/0x7+-parseInt(_0x20106a(0x197))/0x8+parseInt(_0x20106a(0x19c))/0x9*(parseInt(_0x20106a(0x1a1))/0xa);if(_0x55900f===_0x3193e8)break;else _0x42708a['push'](_0x42708a['shift']());}catch(_0x5b2229){_0x42708a['push'](_0x42708a['shift']());}}}(a74_0x7e25,0xdd84c));function a74_0x7e25(){const _0x53d505=['179638sCKJVl','3847145fKXvDg','18509571eVCgvj','indexOf','.\x20Parent\x20name\x20cannot\x20be\x20empty','6lJntSs','5188948ZrvtmJ','10MdYyIi','5700009ZjTzlz','Invalid\x20segment\x20reference\x20format:\x20','12vIfGZZ','8197488xRmaQA','substring','770348rYkeDW'];a74_0x7e25=function(){return _0x53d505;};return a74_0x7e25();}export function parseSegmentRef(_0xd4ef3f){const _0x22a872=a74_0x4db6,_0x344add=_0xd4ef3f[_0x22a872(0x19d)]('/');if(_0x344add===-0x1)return{'parentId':_0xd4ef3f};if(_0x344add===0x0)throw new Error(_0x22a872(0x195)+_0xd4ef3f+_0x22a872(0x19e));const _0x5b4ce1=_0xd4ef3f[_0x22a872(0x198)](0x0,_0x344add),_0x2259b4=_0xd4ef3f[_0x22a872(0x198)](_0x344add+0x1);if(_0x2259b4==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0xd4ef3f+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x5b4ce1,'childId':_0x2259b4};}
1
+ function a74_0x4b4c(_0x4b8310,_0x2fd7a9){const _0x2ab28e=a74_0x2ab2();return a74_0x4b4c=function(_0x4b4c7f,_0x4f60b3){_0x4b4c7f=_0x4b4c7f-0x1c2;let _0x1ac044=_0x2ab28e[_0x4b4c7f];return _0x1ac044;},a74_0x4b4c(_0x4b8310,_0x2fd7a9);}(function(_0x28ba21,_0x3ad2f7){const _0x1c940e=a74_0x4b4c,_0x1b9671=_0x28ba21();while(!![]){try{const _0x23ad29=-parseInt(_0x1c940e(0x1ca))/0x1+parseInt(_0x1c940e(0x1c3))/0x2+-parseInt(_0x1c940e(0x1c7))/0x3*(parseInt(_0x1c940e(0x1c5))/0x4)+parseInt(_0x1c940e(0x1c9))/0x5*(-parseInt(_0x1c940e(0x1c6))/0x6)+-parseInt(_0x1c940e(0x1c8))/0x7+-parseInt(_0x1c940e(0x1cb))/0x8*(parseInt(_0x1c940e(0x1c2))/0x9)+parseInt(_0x1c940e(0x1c4))/0xa;if(_0x23ad29===_0x3ad2f7)break;else _0x1b9671['push'](_0x1b9671['shift']());}catch(_0x4a5b5c){_0x1b9671['push'](_0x1b9671['shift']());}}}(a74_0x2ab2,0x53b0d));export function parseSegmentRef(_0x23be49){const _0x126b16=a74_0x4b4c,_0x2570bb=_0x23be49[_0x126b16(0x1ce)]('/');if(_0x2570bb===-0x1)return{'parentId':_0x23be49};if(_0x2570bb===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x23be49+_0x126b16(0x1cc));const _0x415fa8=_0x23be49['substring'](0x0,_0x2570bb),_0x544fc7=_0x23be49['substring'](_0x2570bb+0x1);if(_0x544fc7==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x23be49+_0x126b16(0x1cd));return{'parentId':_0x415fa8,'childId':_0x544fc7};}function a74_0x2ab2(){const _0x467173=['19731180cwxUSC','211116mlHuxg','799698rgpeRs','6iCgKyA','3790990LQiKXq','5mtfOJD','330386XhOjxE','4823608KZUsBY','.\x20Parent\x20name\x20cannot\x20be\x20empty','.\x20Child\x20name\x20cannot\x20be\x20empty','indexOf','9oBeFvy','166854TySFTZ'];a74_0x2ab2=function(){return _0x467173;};return a74_0x2ab2();}
@@ -1 +1 @@
1
- (function(_0x3c69a1,_0x105cd3){const _0x16900c=a75_0x18d5,_0x45e719=_0x3c69a1();while(!![]){try{const _0x561ced=parseInt(_0x16900c(0x93))/0x1*(-parseInt(_0x16900c(0x96))/0x2)+-parseInt(_0x16900c(0x94))/0x3+parseInt(_0x16900c(0x88))/0x4+parseInt(_0x16900c(0x86))/0x5+parseInt(_0x16900c(0x8b))/0x6+parseInt(_0x16900c(0x8d))/0x7*(parseInt(_0x16900c(0x87))/0x8)+parseInt(_0x16900c(0x91))/0x9;if(_0x561ced===_0x105cd3)break;else _0x45e719['push'](_0x45e719['shift']());}catch(_0x2c13d8){_0x45e719['push'](_0x45e719['shift']());}}}(a75_0x1131,0xcb235));function a75_0x1131(){const _0x173bc0=['replace','stdout','start','phase','3169840DdQQsz','1665128nmbiNn','128752oQlqKX','\x20[Job\x20ID:\x20','stop','6500958VcFtOc','extra','35PPGpNL','clock','jobId','now','3950190OFvKYh','floor','1tfqRjD','3696255tSiIub','cyan','2330252dMLcvc','isSpinning','intervalFactory','isTTY'];a75_0x1131=function(){return _0x173bc0;};return a75_0x1131();}import a75_0x2e9b22 from'ora';export function createCommandSpinner(_0x53eb06,_0x139aaa={}){const _0x1e9789=a75_0x18d5,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x139aaa;return a75_0x2e9b22({'text':_0x53eb06,'color':_0x1e9789(0x95),'isEnabled':forceEnabled||process[_0x1e9789(0x83)][_0x1e9789(0x81)]&&!verbose});}export async function withSpinner(_0x55a7ab,_0x48e006,_0x44acd9={}){const _0x1e3354=a75_0x18d5,_0x1ad090=_0x44acd9[_0x1e3354(0x8e)]??(()=>Date[_0x1e3354(0x90)]()),_0x4ef800=createCommandSpinner(_0x55a7ab,_0x44acd9);_0x4ef800[_0x1e3354(0x84)]();const _0x360d3f=_0x1ad090();try{const _0x4ccb36=await _0x48e006(),_0x4c372b=_0x1ad090()-_0x360d3f;return _0x4ef800[_0x1e3354(0x8a)](),{'data':_0x4ccb36,'elapsedMs':_0x4c372b};}catch(_0x113e4e){_0x4ef800[_0x1e3354(0x8a)]();throw _0x113e4e;}}export async function withQuerySpinner(_0x2d6c0a,_0x4595bb,_0x1fb0b1={}){const _0x4e776a=a75_0x18d5,_0x13d1c6=_0x1fb0b1[_0x4e776a(0x8e)]??(()=>Date[_0x4e776a(0x90)]()),_0x9e2c10=_0x1fb0b1[_0x4e776a(0x80)]??setInterval,_0x56cede=createCommandSpinner(_0x2d6c0a,_0x1fb0b1);_0x56cede[_0x4e776a(0x84)]();const _0x3f0417=_0x13d1c6(),_0xb6c601=_0x2d6c0a[_0x4e776a(0x82)]('...',''),_0x2b761a={},_0x15aaca=()=>{const _0x6e504f=_0x4e776a;if(!_0x56cede[_0x6e504f(0x7f)])return;const _0x1825ec=_0x13d1c6()-_0x3f0417,_0x37e8e0=formatElapsed(_0x1825ec),_0x239b90=_0x2b761a[_0x6e504f(0x85)]??_0xb6c601,_0x3c433c=_0x2b761a[_0x6e504f(0x8f)]?_0x6e504f(0x89)+_0x2b761a['jobId']+']':'',_0x4c8f41=_0x2b761a['extra']?'\x20'+_0x2b761a['extra']:'';_0x56cede['text']=_0x239b90+'\x20'+_0x37e8e0+_0x4c8f41+_0x3c433c;},_0x2b8f2b=_0x9e2c10(()=>{_0x15aaca();},0x3e8),_0x11fd09={'setPhase':_0x198942=>{_0x2b761a['phase']=_0x198942,_0x15aaca();},'setJobId':_0x4195b5=>{const _0x408a34=_0x4e776a;_0x2b761a[_0x408a34(0x8f)]=_0x4195b5,_0x15aaca();},'setExtra':_0x49be26=>{const _0x50b267=_0x4e776a;_0x2b761a[_0x50b267(0x8c)]=_0x49be26,_0x15aaca();}};_0x15aaca();try{const _0x360e23=await _0x4595bb(_0x11fd09),_0x426e29=_0x13d1c6()-_0x3f0417;return{'data':_0x360e23,'elapsedMs':_0x426e29};}finally{clearInterval(_0x2b8f2b),_0x56cede[_0x4e776a(0x8a)]();}}function a75_0x18d5(_0x9dbc41,_0x255c5a){const _0x1131db=a75_0x1131();return a75_0x18d5=function(_0x18d591,_0x5847b1){_0x18d591=_0x18d591-0x7f;let _0x2f8cc2=_0x1131db[_0x18d591];return _0x2f8cc2;},a75_0x18d5(_0x9dbc41,_0x255c5a);}export function formatElapsed(_0x59d52a){const _0x37c53a=a75_0x18d5,_0x4a0aad=Math[_0x37c53a(0x92)](_0x59d52a/0x3e8);if(_0x4a0aad<0x3c)return(_0x59d52a/0x3e8)['toFixed'](0x1)+'s';const _0xef8766=Math[_0x37c53a(0x92)](_0x4a0aad/0x3c),_0x48560a=_0x4a0aad%0x3c;if(_0xef8766<0x3c)return _0xef8766+'m\x20'+_0x48560a+'s';const _0x1007d4=Math['floor'](_0xef8766/0x3c),_0x1d8e0e=_0xef8766%0x3c;return _0x1007d4+'h\x20'+_0x1d8e0e+'m';}
1
+ function a75_0x1596(){const _0x1452e3=['1212AmjJmi','1425477kgwACb','6759805jrqwiV','stop','floor','clock','12436cLQvuH','toFixed','start','jobId','extra','5183787XBIfzt','cyan','1483630CaYmpN','...','phase','text','\x20[Job\x20ID:\x20','12994360tOMzqV','now','isTTY','6945240MfJWpe'];a75_0x1596=function(){return _0x1452e3;};return a75_0x1596();}(function(_0x545864,_0x298e3d){const _0x3f9751=a75_0x53de,_0x2b9b6e=_0x545864();while(!![]){try{const _0x2718e6=-parseInt(_0x3f9751(0x12d))/0x1+parseInt(_0x3f9751(0x139))/0x2+parseInt(_0x3f9751(0x12c))/0x3*(parseInt(_0x3f9751(0x132))/0x4)+parseInt(_0x3f9751(0x12e))/0x5+parseInt(_0x3f9751(0x12b))/0x6+-parseInt(_0x3f9751(0x137))/0x7+-parseInt(_0x3f9751(0x13e))/0x8;if(_0x2718e6===_0x298e3d)break;else _0x2b9b6e['push'](_0x2b9b6e['shift']());}catch(_0x3a14d2){_0x2b9b6e['push'](_0x2b9b6e['shift']());}}}(a75_0x1596,0xaf0ef));import a75_0xb2bf97 from'ora';function a75_0x53de(_0x540a27,_0x1ba888){const _0x1596b0=a75_0x1596();return a75_0x53de=function(_0x53de8f,_0x96c421){_0x53de8f=_0x53de8f-0x129;let _0x27b9c5=_0x1596b0[_0x53de8f];return _0x27b9c5;},a75_0x53de(_0x540a27,_0x1ba888);}export function createCommandSpinner(_0x28447b,_0x5282d1={}){const _0xb55878=a75_0x53de,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5282d1;return a75_0xb2bf97({'text':_0x28447b,'color':_0xb55878(0x138),'isEnabled':forceEnabled||process['stdout'][_0xb55878(0x12a)]&&!verbose});}export async function withSpinner(_0x36f5b2,_0x127b93,_0x4920d8={}){const _0x3208ae=a75_0x53de,_0x18ffc2=_0x4920d8['clock']??(()=>Date[_0x3208ae(0x129)]()),_0x4e0e2c=createCommandSpinner(_0x36f5b2,_0x4920d8);_0x4e0e2c[_0x3208ae(0x134)]();const _0x2a9c30=_0x18ffc2();try{const _0x160efd=await _0x127b93(),_0x10fc6d=_0x18ffc2()-_0x2a9c30;return _0x4e0e2c[_0x3208ae(0x12f)](),{'data':_0x160efd,'elapsedMs':_0x10fc6d};}catch(_0x3bd996){_0x4e0e2c[_0x3208ae(0x12f)]();throw _0x3bd996;}}export async function withQuerySpinner(_0x6e5505,_0x5d67e0,_0x171cec={}){const _0x25b591=a75_0x53de,_0x1dce6b=_0x171cec[_0x25b591(0x131)]??(()=>Date['now']()),_0x1a0101=_0x171cec['intervalFactory']??setInterval,_0x13472d=createCommandSpinner(_0x6e5505,_0x171cec);_0x13472d['start']();const _0x105cbb=_0x1dce6b(),_0x5a9efc=_0x6e5505['replace'](_0x25b591(0x13a),''),_0x437a9b={},_0x4bf356=()=>{const _0x5c4e8c=_0x25b591;if(!_0x13472d['isSpinning'])return;const _0x330a96=_0x1dce6b()-_0x105cbb,_0xd28214=formatElapsed(_0x330a96),_0x298ddc=_0x437a9b[_0x5c4e8c(0x13b)]??_0x5a9efc,_0x2a979e=_0x437a9b[_0x5c4e8c(0x135)]?_0x5c4e8c(0x13d)+_0x437a9b[_0x5c4e8c(0x135)]+']':'',_0x3a0639=_0x437a9b[_0x5c4e8c(0x136)]?'\x20'+_0x437a9b['extra']:'';_0x13472d[_0x5c4e8c(0x13c)]=_0x298ddc+'\x20'+_0xd28214+_0x3a0639+_0x2a979e;},_0x1bee59=_0x1a0101(()=>{_0x4bf356();},0x3e8),_0x30aa10={'setPhase':_0x4c54be=>{const _0x5ed6f8=_0x25b591;_0x437a9b[_0x5ed6f8(0x13b)]=_0x4c54be,_0x4bf356();},'setJobId':_0x23ac71=>{const _0x29d468=_0x25b591;_0x437a9b[_0x29d468(0x135)]=_0x23ac71,_0x4bf356();},'setExtra':_0x18c4d2=>{const _0x2fa53a=_0x25b591;_0x437a9b[_0x2fa53a(0x136)]=_0x18c4d2,_0x4bf356();}};_0x4bf356();try{const _0x5a327b=await _0x5d67e0(_0x30aa10),_0x55fb50=_0x1dce6b()-_0x105cbb;return{'data':_0x5a327b,'elapsedMs':_0x55fb50};}finally{clearInterval(_0x1bee59),_0x13472d['stop']();}}export function formatElapsed(_0x1abdc0){const _0x1f20bb=a75_0x53de,_0x26389d=Math[_0x1f20bb(0x130)](_0x1abdc0/0x3e8);if(_0x26389d<0x3c)return(_0x1abdc0/0x3e8)[_0x1f20bb(0x133)](0x1)+'s';const _0x14b3a2=Math['floor'](_0x26389d/0x3c),_0x3981d1=_0x26389d%0x3c;if(_0x14b3a2<0x3c)return _0x14b3a2+'m\x20'+_0x3981d1+'s';const _0x28253f=Math[_0x1f20bb(0x130)](_0x14b3a2/0x3c),_0x4f668d=_0x14b3a2%0x3c;return _0x28253f+'h\x20'+_0x4f668d+'m';}
@@ -1 +1 @@
1
- (function(_0x55b73c,_0x133570){const _0xfaa4b4=a76_0x3bda,_0x58b265=_0x55b73c();while(!![]){try{const _0x6fc7da=-parseInt(_0xfaa4b4(0x13b))/0x1+-parseInt(_0xfaa4b4(0x145))/0x2*(-parseInt(_0xfaa4b4(0x13d))/0x3)+parseInt(_0xfaa4b4(0x14d))/0x4+parseInt(_0xfaa4b4(0x147))/0x5+-parseInt(_0xfaa4b4(0x14e))/0x6+parseInt(_0xfaa4b4(0x13e))/0x7*(parseInt(_0xfaa4b4(0x144))/0x8)+-parseInt(_0xfaa4b4(0x13c))/0x9*(parseInt(_0xfaa4b4(0x146))/0xa);if(_0x6fc7da===_0x133570)break;else _0x58b265['push'](_0x58b265['shift']());}catch(_0x2b9a39){_0x58b265['push'](_0x58b265['shift']());}}}(a76_0x5da6,0xd005f));function a76_0x5da6(){const _0x1776d0=['8018244qLwurv','replace','ENOENT','code','\x27:\x20','filter','926941dIDFiJ','369qwxPii','3pzNTsX','7QYGmup','toLowerCase','message','length','push','Content\x20contains\x20no\x20SQL\x20statements','13165848QUyMnm','85396KSwKwQ','99310cpCuMy','7314310OdfkuX','utf-8','File\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','EACCES','trim','1485032TwfkdP'];a76_0x5da6=function(){return _0x1776d0;};return a76_0x5da6();}import{readFileSync}from'fs';export function stripSqlComments(_0x4271ff){const _0x46fc9e=a76_0x3bda;let _0x1f9b66=_0x4271ff[_0x46fc9e(0x14f)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x1f9b66=_0x1f9b66[_0x46fc9e(0x14f)](/--.*$/gm,''),_0x1f9b66[_0x46fc9e(0x14c)]();}function a76_0x3bda(_0x2271bc,_0x42929c){const _0x5da689=a76_0x5da6();return a76_0x3bda=function(_0x3bda0e,_0x4db199){_0x3bda0e=_0x3bda0e-0x138;let _0x2ad65c=_0x5da689[_0x3bda0e];return _0x2ad65c;},a76_0x3bda(_0x2271bc,_0x42929c);}function isEscaped(_0x246e6c,_0x1f0af4){let _0x4bc33e=0x0;for(let _0x2ad26a=_0x1f0af4-0x1;_0x2ad26a>=0x0&&_0x246e6c[_0x2ad26a]==='\x5c';_0x2ad26a--){_0x4bc33e++;}return _0x4bc33e%0x2===0x1;}export function splitSqlStatements(_0x13d0da){const _0x1a36b8=a76_0x3bda,_0x524cf1=stripSqlComments(_0x13d0da);if(!_0x524cf1)throw new Error(_0x1a36b8(0x143));const _0x216138=[];let _0x18988f='',_0x4fc486=![],_0x7f4acb=![],_0x382f91=![];for(let _0x15b536=0x0;_0x15b536<_0x13d0da['length'];_0x15b536++){const _0x25e71e=_0x13d0da[_0x15b536];if(_0x25e71e==='\x27'&&!isEscaped(_0x13d0da,_0x15b536)&&!_0x7f4acb&&!_0x382f91)_0x4fc486=!_0x4fc486;else{if(_0x25e71e==='\x22'&&!isEscaped(_0x13d0da,_0x15b536)&&!_0x4fc486&&!_0x382f91)_0x7f4acb=!_0x7f4acb;else _0x25e71e==='`'&&!isEscaped(_0x13d0da,_0x15b536)&&!_0x4fc486&&!_0x7f4acb&&(_0x382f91=!_0x382f91);}if(_0x25e71e===';'&&!_0x4fc486&&!_0x7f4acb&&!_0x382f91){const _0x8d040c=_0x18988f[_0x1a36b8(0x14c)]();_0x8d040c&&_0x216138[_0x1a36b8(0x142)](_0x8d040c),_0x18988f='';}else _0x18988f+=_0x25e71e;}const _0x25dc67=_0x18988f[_0x1a36b8(0x14c)]();_0x25dc67&&_0x216138[_0x1a36b8(0x142)](_0x25dc67);const _0x5944e7=_0x216138['map'](_0x49cb85=>_0x49cb85[_0x1a36b8(0x14c)]())[_0x1a36b8(0x13a)](_0x231c1a=>{const _0x42dc89=_0x1a36b8,_0x1c21eb=stripSqlComments(_0x231c1a);return _0x1c21eb[_0x42dc89(0x141)]>0x0;});if(_0x5944e7[_0x1a36b8(0x141)]===0x0)throw new Error(_0x1a36b8(0x143));return _0x5944e7;}export function readFileContent(_0x110ab7){const _0x7b88da=a76_0x3bda;try{return readFileSync(_0x110ab7,_0x7b88da(0x148));}catch(_0x107b7c){const _0x5c7559=_0x107b7c[_0x7b88da(0x138)];if(_0x5c7559===_0x7b88da(0x150))throw new Error(_0x7b88da(0x149)+_0x110ab7+'\x27\x20not\x20found');else{if(_0x5c7559===_0x7b88da(0x14b))throw new Error(_0x7b88da(0x14a)+_0x110ab7+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x110ab7+_0x7b88da(0x139)+_0x107b7c['message']);}}}export function readSqlStatementsFromFile(_0x43850b){const _0x3608cb=a76_0x3bda,_0x47c5c7=readFileContent(_0x43850b);try{return splitSqlStatements(_0x47c5c7);}catch(_0x5bd01e){throw new Error(_0x3608cb(0x149)+_0x43850b+'\x27\x20'+_0x5bd01e[_0x3608cb(0x140)][_0x3608cb(0x13f)]());}}
1
+ (function(_0x47db78,_0x533cca){const _0x2782d7=a76_0x1767,_0x16b766=_0x47db78();while(!![]){try{const _0x1491a2=parseInt(_0x2782d7(0x1e5))/0x1*(-parseInt(_0x2782d7(0x1f8))/0x2)+-parseInt(_0x2782d7(0x1ea))/0x3+parseInt(_0x2782d7(0x1ed))/0x4*(-parseInt(_0x2782d7(0x1f7))/0x5)+parseInt(_0x2782d7(0x1fa))/0x6*(parseInt(_0x2782d7(0x1e9))/0x7)+parseInt(_0x2782d7(0x1fd))/0x8+parseInt(_0x2782d7(0x1ef))/0x9*(parseInt(_0x2782d7(0x1f2))/0xa)+-parseInt(_0x2782d7(0x1f1))/0xb;if(_0x1491a2===_0x533cca)break;else _0x16b766['push'](_0x16b766['shift']());}catch(_0x28e351){_0x16b766['push'](_0x16b766['shift']());}}}(a76_0x41ff,0xc5a6b));import{readFileSync}from'fs';export function stripSqlComments(_0x52373d){const _0x43c65e=a76_0x1767;let _0x259b03=_0x52373d[_0x43c65e(0x1f6)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x259b03=_0x259b03[_0x43c65e(0x1f6)](/--.*$/gm,''),_0x259b03[_0x43c65e(0x1e7)]();}function a76_0x1767(_0x10853b,_0x665040){const _0x41ff91=a76_0x41ff();return a76_0x1767=function(_0x176746,_0x4c027e){_0x176746=_0x176746-0x1e4;let _0x82e187=_0x41ff91[_0x176746];return _0x82e187;},a76_0x1767(_0x10853b,_0x665040);}function isEscaped(_0x2d4e37,_0x272d3f){let _0x30a594=0x0;for(let _0x4324b9=_0x272d3f-0x1;_0x4324b9>=0x0&&_0x2d4e37[_0x4324b9]==='\x5c';_0x4324b9--){_0x30a594++;}return _0x30a594%0x2===0x1;}export function splitSqlStatements(_0x1b2f54){const _0x430fc9=a76_0x1767,_0x4ab1c0=stripSqlComments(_0x1b2f54);if(!_0x4ab1c0)throw new Error(_0x430fc9(0x1f9));const _0x2ac928=[];let _0x37e1d7='',_0x6facad=![],_0x4c2538=![],_0x215a8d=![];for(let _0xf02ca9=0x0;_0xf02ca9<_0x1b2f54[_0x430fc9(0x1fb)];_0xf02ca9++){const _0x1edf59=_0x1b2f54[_0xf02ca9];if(_0x1edf59==='\x27'&&!isEscaped(_0x1b2f54,_0xf02ca9)&&!_0x4c2538&&!_0x215a8d)_0x6facad=!_0x6facad;else{if(_0x1edf59==='\x22'&&!isEscaped(_0x1b2f54,_0xf02ca9)&&!_0x6facad&&!_0x215a8d)_0x4c2538=!_0x4c2538;else _0x1edf59==='`'&&!isEscaped(_0x1b2f54,_0xf02ca9)&&!_0x6facad&&!_0x4c2538&&(_0x215a8d=!_0x215a8d);}if(_0x1edf59===';'&&!_0x6facad&&!_0x4c2538&&!_0x215a8d){const _0x591799=_0x37e1d7[_0x430fc9(0x1e7)]();_0x591799&&_0x2ac928['push'](_0x591799),_0x37e1d7='';}else _0x37e1d7+=_0x1edf59;}const _0x344665=_0x37e1d7['trim']();_0x344665&&_0x2ac928[_0x430fc9(0x1fc)](_0x344665);const _0x3752b0=_0x2ac928[_0x430fc9(0x1f3)](_0x2f1df3=>_0x2f1df3[_0x430fc9(0x1e7)]())[_0x430fc9(0x1e6)](_0x52120a=>{const _0x6fe2d2=_0x430fc9,_0xf424e=stripSqlComments(_0x52120a);return _0xf424e[_0x6fe2d2(0x1fb)]>0x0;});if(_0x3752b0[_0x430fc9(0x1fb)]===0x0)throw new Error(_0x430fc9(0x1f9));return _0x3752b0;}export function readFileContent(_0x365101){const _0x42c624=a76_0x1767;try{return readFileSync(_0x365101,_0x42c624(0x1ec));}catch(_0x57037a){const _0x278adc=_0x57037a['code'];if(_0x278adc===_0x42c624(0x1e4))throw new Error(_0x42c624(0x1f4)+_0x365101+'\x27\x20not\x20found');else{if(_0x278adc===_0x42c624(0x1f5))throw new Error(_0x42c624(0x1fe)+_0x365101+'\x27');else throw new Error(_0x42c624(0x1f0)+_0x365101+_0x42c624(0x1e8)+_0x57037a[_0x42c624(0x1eb)]);}}}function a76_0x41ff(){const _0x1a4185=['3263832BriTKK','10jlbTOw','map','File\x20\x27','EACCES','replace','30QQtCVv','4LgdLGC','Content\x20contains\x20no\x20SQL\x20statements','462xCDcxk','length','push','11023008Vizneb','Permission\x20denied\x20reading\x20file\x20\x27','ENOENT','290620WBAdFC','filter','trim','\x27:\x20','89887oTJMbn','1313367DpRxbz','message','utf-8','943772CSdYwc','toLowerCase','10569105iojChf','Error\x20reading\x20file\x20\x27'];a76_0x41ff=function(){return _0x1a4185;};return a76_0x41ff();}export function readSqlStatementsFromFile(_0x2bfd9d){const _0x2ff9b5=a76_0x1767,_0x384d3f=readFileContent(_0x2bfd9d);try{return splitSqlStatements(_0x384d3f);}catch(_0x38c086){throw new Error(_0x2ff9b5(0x1f4)+_0x2bfd9d+'\x27\x20'+_0x38c086[_0x2ff9b5(0x1eb)][_0x2ff9b5(0x1ee)]());}}
@@ -1 +1 @@
1
- (function(_0x5d3e40,_0xcfec51){const _0x58b53f=a77_0x1ebd,_0x434a2e=_0x5d3e40();while(!![]){try{const _0x4b661a=-parseInt(_0x58b53f(0x95))/0x1+parseInt(_0x58b53f(0x9c))/0x2*(-parseInt(_0x58b53f(0x8a))/0x3)+-parseInt(_0x58b53f(0x98))/0x4+parseInt(_0x58b53f(0x90))/0x5*(parseInt(_0x58b53f(0x92))/0x6)+parseInt(_0x58b53f(0x97))/0x7+parseInt(_0x58b53f(0x91))/0x8*(-parseInt(_0x58b53f(0x99))/0x9)+parseInt(_0x58b53f(0x86))/0xa*(parseInt(_0x58b53f(0x93))/0xb);if(_0x4b661a===_0xcfec51)break;else _0x434a2e['push'](_0x434a2e['shift']());}catch(_0x529529){_0x434a2e['push'](_0x434a2e['shift']());}}}(a77_0x1f6d,0xc04df));function a77_0x1ebd(_0x127063,_0x3713ca){const _0x1f6ded=a77_0x1f6d();return a77_0x1ebd=function(_0x1ebd3f,_0x4c10cb){_0x1ebd3f=_0x1ebd3f-0x84;let _0x118180=_0x1f6ded[_0x1ebd3f];return _0x118180;},a77_0x1ebd(_0x127063,_0x3713ca);}function a77_0x1f6d(){const _0x11b7ba=['5ZosTdl','8OMaBoS','1394706CKikTR','102553bbMatt','releaseLock','91481JdDTYc','Response\x20body\x20is\x20null','9559501lmIRtR','3378928CBTLVV','8623557awijbU','data','slice','3034292GYyPom','startsWith','indexOf','getReader','2790vxIhcW','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','body','read','3qotKfi','decode','split','event','trim','pop'];a77_0x1f6d=function(){return _0x11b7ba;};return a77_0x1f6d();}export async function*parseSSEStream(_0x2cd2a4){const _0x5529cc=a77_0x1ebd;if(!_0x2cd2a4[_0x5529cc(0x88)])throw new Error(_0x5529cc(0x96));const _0x4fa46a=_0x2cd2a4[_0x5529cc(0x88)][_0x5529cc(0x85)](),_0x3ae038=new TextDecoder();let _0x121eee='',_0x4a8122={};try{while(!![]){const {done:_0x572dc0,value:_0x2e4e8a}=await _0x4fa46a[_0x5529cc(0x89)]();if(_0x572dc0){_0x4a8122[_0x5529cc(0x9a)]&&(yield parseSSEData(_0x4a8122[_0x5529cc(0x9a)]));break;}_0x121eee+=_0x3ae038[_0x5529cc(0x8b)](_0x2e4e8a,{'stream':!![]});const _0x33be7c=_0x121eee[_0x5529cc(0x8c)]('\x0a');_0x121eee=_0x33be7c[_0x5529cc(0x8f)]()||'';for(const _0x492e60 of _0x33be7c){if(_0x492e60[_0x5529cc(0x8e)]()===''){_0x4a8122[_0x5529cc(0x9a)]&&(yield parseSSEData(_0x4a8122['data']),_0x4a8122={});continue;}if(_0x492e60[_0x5529cc(0x9d)](':'))continue;const _0xa4c628=_0x492e60[_0x5529cc(0x84)](':');if(_0xa4c628===-0x1)continue;const _0x5f112c=_0x492e60['slice'](0x0,_0xa4c628);let _0x16e68d=_0x492e60[_0x5529cc(0x9b)](_0xa4c628+0x1);_0x16e68d['startsWith']('\x20')&&(_0x16e68d=_0x16e68d[_0x5529cc(0x9b)](0x1));switch(_0x5f112c){case _0x5529cc(0x8d):_0x4a8122[_0x5529cc(0x8d)]=_0x16e68d;break;case _0x5529cc(0x9a):_0x4a8122['data']=_0x4a8122[_0x5529cc(0x9a)]?_0x4a8122[_0x5529cc(0x9a)]+'\x0a'+_0x16e68d:_0x16e68d;break;case'id':_0x4a8122['id']=_0x16e68d;break;}}}}finally{_0x4fa46a[_0x5529cc(0x94)]();}}function parseSSEData(_0x35bee9){const _0x503cd9=a77_0x1ebd;try{return JSON['parse'](_0x35bee9);}catch(_0x477ed8){throw new Error(_0x503cd9(0x87)+_0x35bee9,{'cause':_0x477ed8});}}
1
+ function a77_0x3f2c(){const _0x2e9ca4=['2141060mmHdcQ','846833iPAZvl','Response\x20body\x20is\x20null','startsWith','683258hWdefN','decode','576650FTKOCk','11WbyohD','413YlFBkw','indexOf','event','79302PhVDCN','4hsewKT','trim','708429fLHXcy','data','9CfWzBy','getReader','slice','13964632dNrcSA','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','276gqbsVn','parse','28SHCRGf','split'];a77_0x3f2c=function(){return _0x2e9ca4;};return a77_0x3f2c();}(function(_0x3ec2f9,_0x4a51a1){const _0x555e7b=a77_0x4892,_0x36834a=_0x3ec2f9();while(!![]){try{const _0x553e88=parseInt(_0x555e7b(0x84))/0x1*(-parseInt(_0x555e7b(0x73))/0x2)+-parseInt(_0x555e7b(0x75))/0x3*(-parseInt(_0x555e7b(0x7e))/0x4)+-parseInt(_0x555e7b(0x6d))/0x5+-parseInt(_0x555e7b(0x72))/0x6*(-parseInt(_0x555e7b(0x6f))/0x7)+parseInt(_0x555e7b(0x7a))/0x8*(-parseInt(_0x555e7b(0x77))/0x9)+parseInt(_0x555e7b(0x80))/0xa*(parseInt(_0x555e7b(0x6e))/0xb)+-parseInt(_0x555e7b(0x7c))/0xc*(-parseInt(_0x555e7b(0x81))/0xd);if(_0x553e88===_0x4a51a1)break;else _0x36834a['push'](_0x36834a['shift']());}catch(_0x2ce7a9){_0x36834a['push'](_0x36834a['shift']());}}}(a77_0x3f2c,0xe00e0));function a77_0x4892(_0x489504,_0x345c60){const _0x3f2c25=a77_0x3f2c();return a77_0x4892=function(_0x4892f5,_0x5f3eaf){_0x4892f5=_0x4892f5-0x6c;let _0x2e4686=_0x3f2c25[_0x4892f5];return _0x2e4686;},a77_0x4892(_0x489504,_0x345c60);}export async function*parseSSEStream(_0xbe45ad){const _0x116552=a77_0x4892;if(!_0xbe45ad['body'])throw new Error(_0x116552(0x82));const _0x1d9c5d=_0xbe45ad['body'][_0x116552(0x78)](),_0x84c31=new TextDecoder();let _0xc6f4eb='',_0x1420c1={};try{while(!![]){const {done:_0x788838,value:_0x30fdd9}=await _0x1d9c5d['read']();if(_0x788838){_0x1420c1[_0x116552(0x76)]&&(yield parseSSEData(_0x1420c1[_0x116552(0x76)]));break;}_0xc6f4eb+=_0x84c31[_0x116552(0x6c)](_0x30fdd9,{'stream':!![]});const _0x5a664e=_0xc6f4eb[_0x116552(0x7f)]('\x0a');_0xc6f4eb=_0x5a664e['pop']()||'';for(const _0x257aaf of _0x5a664e){if(_0x257aaf[_0x116552(0x74)]()===''){_0x1420c1[_0x116552(0x76)]&&(yield parseSSEData(_0x1420c1[_0x116552(0x76)]),_0x1420c1={});continue;}if(_0x257aaf[_0x116552(0x83)](':'))continue;const _0x340cbe=_0x257aaf[_0x116552(0x70)](':');if(_0x340cbe===-0x1)continue;const _0x2f04d2=_0x257aaf[_0x116552(0x79)](0x0,_0x340cbe);let _0xddacfa=_0x257aaf[_0x116552(0x79)](_0x340cbe+0x1);_0xddacfa[_0x116552(0x83)]('\x20')&&(_0xddacfa=_0xddacfa[_0x116552(0x79)](0x1));switch(_0x2f04d2){case _0x116552(0x71):_0x1420c1[_0x116552(0x71)]=_0xddacfa;break;case'data':_0x1420c1['data']=_0x1420c1[_0x116552(0x76)]?_0x1420c1[_0x116552(0x76)]+'\x0a'+_0xddacfa:_0xddacfa;break;case'id':_0x1420c1['id']=_0xddacfa;break;}}}}finally{_0x1d9c5d['releaseLock']();}}function parseSSEData(_0x2ff8f5){const _0x45100c=a77_0x4892;try{return JSON[_0x45100c(0x7d)](_0x2ff8f5);}catch(_0x27dde8){throw new Error(_0x45100c(0x7b)+_0x2ff8f5,{'cause':_0x27dde8});}}
@@ -1 +1 @@
1
- function a78_0x30ef(_0xb71fa8,_0x453f62){const _0x388ad2=a78_0x388a();return a78_0x30ef=function(_0x30ef83,_0x33b01c){_0x30ef83=_0x30ef83-0x157;let _0x4dc15f=_0x388ad2[_0x30ef83];return _0x4dc15f;},a78_0x30ef(_0xb71fa8,_0x453f62);}(function(_0xe6158a,_0x1acf4c){const _0x3f421d=a78_0x30ef,_0x3310f6=_0xe6158a();while(!![]){try{const _0x10ba8c=-parseInt(_0x3f421d(0x161))/0x1*(-parseInt(_0x3f421d(0x168))/0x2)+-parseInt(_0x3f421d(0x162))/0x3+parseInt(_0x3f421d(0x166))/0x4+-parseInt(_0x3f421d(0x16d))/0x5+parseInt(_0x3f421d(0x15d))/0x6*(parseInt(_0x3f421d(0x157))/0x7)+-parseInt(_0x3f421d(0x15a))/0x8+parseInt(_0x3f421d(0x15b))/0x9;if(_0x10ba8c===_0x1acf4c)break;else _0x3310f6['push'](_0x3310f6['shift']());}catch(_0x23c1b7){_0x3310f6['push'](_0x3310f6['shift']());}}}(a78_0x388a,0xd38c5));import a78_0x2d92b1 from'string-width';function a78_0x388a(){const _0xd93b98=['padStart','3980155RRUrIL','119AhdSSW','slice','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','1918080GwlMRc','5745996WacTBS','repeat','196578AUUtWQ','length','unknown','replace','16181WJBtAA','3284466boGVfI','toString','trim','floor','2093600CTkhLv','toLowerCase','158OioemI','USER','USERNAME','env'];a78_0x388a=function(){return _0xd93b98;};return a78_0x388a();}export function stringWidth(_0x1d835d){return a78_0x2d92b1(_0x1d835d);}export function padEnd(_0x8b7bfa,_0x4d13da){const _0x5dcd1d=a78_0x30ef,_0x2b19bd=stringWidth(_0x8b7bfa);if(_0x2b19bd>=_0x4d13da)return _0x8b7bfa;return _0x8b7bfa+'\x20'[_0x5dcd1d(0x15c)](_0x4d13da-_0x2b19bd);}export function padStart(_0x4b6541,_0x5d44c4){const _0x44a554=stringWidth(_0x4b6541);if(_0x44a554>=_0x5d44c4)return _0x4b6541;return'\x20'['repeat'](_0x5d44c4-_0x44a554)+_0x4b6541;}export function centerAlign(_0x92084a,_0x36e8cc){const _0x292e9b=a78_0x30ef,_0x7b1b9=stringWidth(_0x92084a);if(_0x7b1b9>_0x36e8cc){if(_0x36e8cc<=0x1)return'…'['substring'](0x0,_0x36e8cc);let _0x3522f2=_0x92084a;while(stringWidth(_0x3522f2+'…')>_0x36e8cc){_0x3522f2=_0x3522f2[_0x292e9b(0x158)](0x0,-0x1);}return _0x3522f2+'…';}if(_0x7b1b9===_0x36e8cc)return _0x92084a;const _0x5897d7=_0x36e8cc-_0x7b1b9,_0xfaccfc=Math[_0x292e9b(0x165)](_0x5897d7/0x2),_0x3e4a49=_0x5897d7-_0xfaccfc;return'\x20'[_0x292e9b(0x15c)](_0xfaccfc)+_0x92084a+'\x20'[_0x292e9b(0x15c)](_0x3e4a49);}export function escapeStringLiteral(_0x37783b){const _0x4b9d5c=a78_0x30ef;if(!_0x37783b||_0x37783b[_0x4b9d5c(0x164)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2025ac=_0x37783b['replace'](/'/g,'\x27\x27');return'\x27'+_0x2025ac+'\x27';}export function globToLike(_0x47f42d){const _0x10e467=a78_0x30ef;let _0x5ea864=_0x47f42d[_0x10e467(0x160)](/\\/g,'\x5c\x5c')[_0x10e467(0x160)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x5ea864=_0x5ea864['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x5ea864;}export function buildLikePattern(_0xb0b3eb){const _0x122aa3=a78_0x30ef;if(!_0xb0b3eb||_0xb0b3eb[_0x122aa3(0x164)]()[_0x122aa3(0x15e)]===0x0)throw new Error(_0x122aa3(0x159));const _0x1fa725=globToLike(_0xb0b3eb),_0x4e60e0=_0x1fa725['replace'](/'/g,'\x27\x27');return'\x27'+_0x4e60e0+'\x27';}export function matchGlobPattern(_0x959413,_0x33fea2){const _0x1e4d99=a78_0x30ef,_0x32c501=_0x33fea2[_0x1e4d99(0x160)](/[.+^${}()|[\]\\]/g,'\x5c$&')['replace'](/\*/g,'.*')[_0x1e4d99(0x160)](/\?/g,'.'),_0x13aac0=new RegExp('^'+_0x32c501+'$');return _0x13aac0['test'](_0x959413);}export function getSanitizedUsername(){const _0x2eb502=a78_0x30ef,_0x1c783b=process[_0x2eb502(0x16b)][_0x2eb502(0x169)]||process[_0x2eb502(0x16b)][_0x2eb502(0x16a)]||_0x2eb502(0x15f);return _0x1c783b[_0x2eb502(0x160)](/[^a-zA-Z0-9]/g,'')[_0x2eb502(0x167)]();}export function generateRandomHex(){const _0x30f694=a78_0x30ef,_0x2de1ad=Math[_0x30f694(0x165)](Math['random']()*0xfffff);return _0x2de1ad[_0x30f694(0x163)](0x10)[_0x30f694(0x16c)](0x5,'0');}
1
+ (function(_0x342850,_0x9339e1){const _0x4e28ed=a78_0x52eb,_0x4d3f4b=_0x342850();while(!![]){try{const _0x41c625=-parseInt(_0x4e28ed(0x6d))/0x1+parseInt(_0x4e28ed(0x71))/0x2*(parseInt(_0x4e28ed(0x6f))/0x3)+-parseInt(_0x4e28ed(0x66))/0x4+-parseInt(_0x4e28ed(0x75))/0x5+-parseInt(_0x4e28ed(0x69))/0x6+-parseInt(_0x4e28ed(0x6e))/0x7*(-parseInt(_0x4e28ed(0x6c))/0x8)+parseInt(_0x4e28ed(0x76))/0x9;if(_0x41c625===_0x9339e1)break;else _0x4d3f4b['push'](_0x4d3f4b['shift']());}catch(_0x7ff6ce){_0x4d3f4b['push'](_0x4d3f4b['shift']());}}}(a78_0x2749,0xc0e10));function a78_0x2749(){const _0x1f4550=['slice','5969944uzOLsJ','unknown','padStart','7273452mLCnnp','floor','test','3963000OQBobO','439540xiDkZm','21nhEANv','8973RGcoJx','trim','366TMKMDu','USERNAME','env','replace','1276950CcIfiU','19405908QpOqNK','Cannot\x20escape\x20empty\x20string\x20literal','repeat','length','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','\x5c$&'];a78_0x2749=function(){return _0x1f4550;};return a78_0x2749();}import a78_0x5c56ae from'string-width';export function stringWidth(_0x573ebc){return a78_0x5c56ae(_0x573ebc);}export function padEnd(_0x4eb28e,_0x3e7eb1){const _0x46988d=stringWidth(_0x4eb28e);if(_0x46988d>=_0x3e7eb1)return _0x4eb28e;return _0x4eb28e+'\x20'['repeat'](_0x3e7eb1-_0x46988d);}export function padStart(_0x4cb864,_0x526cb0){const _0x165873=a78_0x52eb,_0x2d3555=stringWidth(_0x4cb864);if(_0x2d3555>=_0x526cb0)return _0x4cb864;return'\x20'[_0x165873(0x78)](_0x526cb0-_0x2d3555)+_0x4cb864;}function a78_0x52eb(_0x16bce5,_0x385e0c){const _0x274945=a78_0x2749();return a78_0x52eb=function(_0x52ebfd,_0x43e335){_0x52ebfd=_0x52ebfd-0x65;let _0x3243fc=_0x274945[_0x52ebfd];return _0x3243fc;},a78_0x52eb(_0x16bce5,_0x385e0c);}export function centerAlign(_0x17cc19,_0x4c3570){const _0x1251c8=a78_0x52eb,_0xbf73aa=stringWidth(_0x17cc19);if(_0xbf73aa>_0x4c3570){if(_0x4c3570<=0x1)return'…'['substring'](0x0,_0x4c3570);let _0x41735f=_0x17cc19;while(stringWidth(_0x41735f+'…')>_0x4c3570){_0x41735f=_0x41735f[_0x1251c8(0x65)](0x0,-0x1);}return _0x41735f+'…';}if(_0xbf73aa===_0x4c3570)return _0x17cc19;const _0x474598=_0x4c3570-_0xbf73aa,_0x567bf2=Math[_0x1251c8(0x6a)](_0x474598/0x2),_0x30bddd=_0x474598-_0x567bf2;return'\x20'[_0x1251c8(0x78)](_0x567bf2)+_0x17cc19+'\x20'[_0x1251c8(0x78)](_0x30bddd);}export function escapeStringLiteral(_0x416cc3){const _0x454485=a78_0x52eb;if(!_0x416cc3||_0x416cc3[_0x454485(0x70)]()['length']===0x0)throw new Error(_0x454485(0x77));const _0x15c480=_0x416cc3['replace'](/'/g,'\x27\x27');return'\x27'+_0x15c480+'\x27';}export function globToLike(_0x7e0221){const _0x2951e8=a78_0x52eb;let _0x58d849=_0x7e0221[_0x2951e8(0x74)](/\\/g,'\x5c\x5c')[_0x2951e8(0x74)](/%/g,'\x5c%')[_0x2951e8(0x74)](/_/g,'\x5c_');return _0x58d849=_0x58d849[_0x2951e8(0x74)](/\*/g,'%')['replace'](/\?/g,'_'),_0x58d849;}export function buildLikePattern(_0x218990){const _0x222b38=a78_0x52eb;if(!_0x218990||_0x218990[_0x222b38(0x70)]()[_0x222b38(0x79)]===0x0)throw new Error(_0x222b38(0x7a));const _0x248a79=globToLike(_0x218990),_0x5bd9a5=_0x248a79['replace'](/'/g,'\x27\x27');return'\x27'+_0x5bd9a5+'\x27';}export function matchGlobPattern(_0x211890,_0x5bebe6){const _0x478b8f=a78_0x52eb,_0x4f9441=_0x5bebe6[_0x478b8f(0x74)](/[.+^${}()|[\]\\]/g,_0x478b8f(0x7b))[_0x478b8f(0x74)](/\*/g,'.*')[_0x478b8f(0x74)](/\?/g,'.'),_0x4f6bb3=new RegExp('^'+_0x4f9441+'$');return _0x4f6bb3[_0x478b8f(0x6b)](_0x211890);}export function getSanitizedUsername(){const _0x5e7413=a78_0x52eb,_0x2a8918=process[_0x5e7413(0x73)]['USER']||process[_0x5e7413(0x73)][_0x5e7413(0x72)]||_0x5e7413(0x67);return _0x2a8918['replace'](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x52d460=a78_0x52eb,_0x2a39aa=Math['floor'](Math['random']()*0xfffff);return _0x2a39aa['toString'](0x10)[_0x52d460(0x68)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x227a77,_0x531d0a){const _0x10d2bc=a79_0x5bae,_0x1ec7f1=_0x227a77();while(!![]){try{const _0x3ba531=parseInt(_0x10d2bc(0xc8))/0x1+parseInt(_0x10d2bc(0xd1))/0x2*(-parseInt(_0x10d2bc(0xcd))/0x3)+parseInt(_0x10d2bc(0xd2))/0x4+-parseInt(_0x10d2bc(0xd7))/0x5+-parseInt(_0x10d2bc(0xcb))/0x6+-parseInt(_0x10d2bc(0xce))/0x7+parseInt(_0x10d2bc(0xda))/0x8;if(_0x3ba531===_0x531d0a)break;else _0x1ec7f1['push'](_0x1ec7f1['shift']());}catch(_0x2f74f7){_0x1ec7f1['push'](_0x1ec7f1['shift']());}}}(a79_0x1581,0x6bc7a));function a79_0x1581(){const _0x58ec50=['length','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','3339725ZRJkFv','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','13368808hfflCM','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','includes','join','database','table','734389VRmYbF','push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','3459510npJCsi','trim','111HiMUnK','2760884sansfx','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','split','17672abKNiY','7400BhefGL','catalog'];a79_0x1581=function(){return _0x58ec50;};return a79_0x1581();}function hasWildcard(_0x24e420){const _0xc09fcf=a79_0x5bae;return _0x24e420[_0xc09fcf(0xc4)]('*')||_0x24e420['includes']('?');}export function parseTableReference(_0x47ff66){const _0x21e5f3=a79_0x5bae;if(!_0x47ff66||_0x47ff66[_0x21e5f3(0xcc)]()['length']===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x313a1f=_0x47ff66[_0x21e5f3(0xcc)](),_0x542934={'original':_0x313a1f},_0x1dacde=_0x313a1f[_0x21e5f3(0xd0)]('.');if(_0x1dacde[_0x21e5f3(0xd4)]===0x1){const _0x4459db=_0x1dacde[0x0];if(!_0x4459db)throw new Error(_0x21e5f3(0xd5));_0x542934[_0x21e5f3(0xc7)]=_0x4459db;}else{if(_0x1dacde['length']===0x2){const [_0x38c9cb,_0x151f7f]=_0x1dacde;if(!_0x38c9cb)throw new Error(_0x21e5f3(0xca));if(!_0x151f7f)throw new Error(_0x21e5f3(0xc3));_0x542934[_0x21e5f3(0xc6)]=_0x38c9cb,_0x542934[_0x21e5f3(0xc7)]=_0x151f7f;}else{if(_0x1dacde[_0x21e5f3(0xd4)]===0x3){const [_0x2e43c4,_0x2830f2,_0x553a49]=_0x1dacde;if(!_0x2e43c4||!_0x2830f2||!_0x553a49)throw new Error(_0x21e5f3(0xd8));_0x542934[_0x21e5f3(0xd3)]=_0x2e43c4,_0x542934[_0x21e5f3(0xc6)]=_0x2830f2,_0x542934['table']=_0x553a49;}else throw new Error(_0x21e5f3(0xd6));}}return _0x542934;}function a79_0x5bae(_0x44b1d1,_0x426332){const _0x1581ab=a79_0x1581();return a79_0x5bae=function(_0x5bae81,_0x26a739){_0x5bae81=_0x5bae81-0xc3;let _0x5869a9=_0x1581ab[_0x5bae81];return _0x5869a9;},a79_0x5bae(_0x44b1d1,_0x426332);}export function formatTableReference(_0x275b02){const _0x3f6b5f=a79_0x5bae,_0x4ac524=[];return _0x275b02[_0x3f6b5f(0xd3)]&&_0x4ac524[_0x3f6b5f(0xc9)](_0x275b02[_0x3f6b5f(0xd3)]),_0x275b02[_0x3f6b5f(0xc6)]&&_0x4ac524[_0x3f6b5f(0xc9)](_0x275b02[_0x3f6b5f(0xc6)]),_0x275b02[_0x3f6b5f(0xc7)]&&_0x4ac524[_0x3f6b5f(0xc9)](_0x275b02[_0x3f6b5f(0xc7)]),_0x4ac524[_0x3f6b5f(0xc5)]('.');}export function validateTableListReference(_0x50d944){return undefined;}export function validateTableDescribeReference(_0x2f4fee){const _0x510676=a79_0x5bae;if(!_0x2f4fee[_0x510676(0xc7)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x2f4fee['database']&&hasWildcard(_0x2f4fee[_0x510676(0xc6)]))return _0x510676(0xd9);if(hasWildcard(_0x2f4fee[_0x510676(0xc7)]))return _0x510676(0xcf);return undefined;}
1
+ (function(_0x434dcf,_0x2b24d2){const _0x100f6c=a79_0x1f10,_0xd23851=_0x434dcf();while(!![]){try{const _0x4c85ce=parseInt(_0x100f6c(0x108))/0x1*(-parseInt(_0x100f6c(0x10d))/0x2)+parseInt(_0x100f6c(0x10a))/0x3*(-parseInt(_0x100f6c(0x10b))/0x4)+-parseInt(_0x100f6c(0xf9))/0x5*(parseInt(_0x100f6c(0x105))/0x6)+parseInt(_0x100f6c(0xfc))/0x7+-parseInt(_0x100f6c(0xfd))/0x8+-parseInt(_0x100f6c(0x103))/0x9+-parseInt(_0x100f6c(0xf8))/0xa*(-parseInt(_0x100f6c(0x110))/0xb);if(_0x4c85ce===_0x2b24d2)break;else _0xd23851['push'](_0xd23851['shift']());}catch(_0x2f0ce1){_0xd23851['push'](_0xd23851['shift']());}}}(a79_0x2b49,0xd3507));function hasWildcard(_0x4e64c5){const _0x1ca334=a79_0x1f10;return _0x4e64c5[_0x1ca334(0xfa)]('*')||_0x4e64c5[_0x1ca334(0xfa)]('?');}function a79_0x1f10(_0xdc013,_0x2313a7){const _0x2b4976=a79_0x2b49();return a79_0x1f10=function(_0x1f102b,_0x43012c){_0x1f102b=_0x1f102b-0xf7;let _0x4224c0=_0x2b4976[_0x1f102b];return _0x4224c0;},a79_0x1f10(_0xdc013,_0x2313a7);}export function parseTableReference(_0x41d93c){const _0x51ba3a=a79_0x1f10;if(!_0x41d93c||_0x41d93c[_0x51ba3a(0x10e)]()[_0x51ba3a(0x104)]===0x0)throw new Error(_0x51ba3a(0x106));const _0x1c1020=_0x41d93c['trim'](),_0x3e7ac5={'original':_0x1c1020},_0x36e659=_0x1c1020[_0x51ba3a(0x102)]('.');if(_0x36e659['length']===0x1){const _0x29f299=_0x36e659[0x0];if(!_0x29f299)throw new Error(_0x51ba3a(0x101));_0x3e7ac5[_0x51ba3a(0x109)]=_0x29f299;}else{if(_0x36e659[_0x51ba3a(0x104)]===0x2){const [_0x2898e2,_0x2dd4c8]=_0x36e659;if(!_0x2898e2)throw new Error(_0x51ba3a(0xfb));if(!_0x2dd4c8)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x3e7ac5[_0x51ba3a(0x10f)]=_0x2898e2,_0x3e7ac5['table']=_0x2dd4c8;}else{if(_0x36e659['length']===0x3){const [_0x547f03,_0x111f19,_0x11c8a4]=_0x36e659;if(!_0x547f03||!_0x111f19||!_0x11c8a4)throw new Error(_0x51ba3a(0xf7));_0x3e7ac5[_0x51ba3a(0xff)]=_0x547f03,_0x3e7ac5['database']=_0x111f19,_0x3e7ac5['table']=_0x11c8a4;}else throw new Error(_0x51ba3a(0xfe));}}return _0x3e7ac5;}export function formatTableReference(_0x2fa26f){const _0x53e608=a79_0x1f10,_0x295380=[];return _0x2fa26f[_0x53e608(0xff)]&&_0x295380[_0x53e608(0x10c)](_0x2fa26f[_0x53e608(0xff)]),_0x2fa26f['database']&&_0x295380[_0x53e608(0x10c)](_0x2fa26f[_0x53e608(0x10f)]),_0x2fa26f[_0x53e608(0x109)]&&_0x295380['push'](_0x2fa26f[_0x53e608(0x109)]),_0x295380['join']('.');}export function validateTableListReference(_0x3eceb3){return undefined;}function a79_0x2b49(){const _0x4c2ebc=['1842090LrUrPI','4wADYck','push','166vKvaTj','trim','database','22zTkVRY','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','23512720HiOEtI','35810XTIGUq','includes','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','1110235bCWMqF','1548112yzCgGk','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','catalog','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','split','10374975RxJfmk','length','426qdMPuS','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','18395oqZQcV','table'];a79_0x2b49=function(){return _0x4c2ebc;};return a79_0x2b49();}export function validateTableDescribeReference(_0x2383d4){const _0x5187e9=a79_0x1f10;if(!_0x2383d4[_0x5187e9(0x109)])return _0x5187e9(0x107);if(_0x2383d4['database']&&hasWildcard(_0x2383d4[_0x5187e9(0x10f)]))return _0x5187e9(0x100);if(hasWildcard(_0x2383d4['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- const a80_0x8b8512=a80_0x2d51;(function(_0x2a6b16,_0x22dac0){const _0x24cc6a=a80_0x2d51,_0x3a70d3=_0x2a6b16();while(!![]){try{const _0x13c9f2=-parseInt(_0x24cc6a(0xb8))/0x1*(parseInt(_0x24cc6a(0xea))/0x2)+parseInt(_0x24cc6a(0xbb))/0x3*(-parseInt(_0x24cc6a(0xe3))/0x4)+parseInt(_0x24cc6a(0xd6))/0x5*(parseInt(_0x24cc6a(0xdb))/0x6)+-parseInt(_0x24cc6a(0xc6))/0x7+-parseInt(_0x24cc6a(0xaf))/0x8*(-parseInt(_0x24cc6a(0xc9))/0x9)+parseInt(_0x24cc6a(0xad))/0xa*(parseInt(_0x24cc6a(0xd9))/0xb)+-parseInt(_0x24cc6a(0xe0))/0xc*(-parseInt(_0x24cc6a(0xc7))/0xd);if(_0x13c9f2===_0x22dac0)break;else _0x3a70d3['push'](_0x3a70d3['shift']());}catch(_0x41491a){_0x3a70d3['push'](_0x3a70d3['shift']());}}}(a80_0x4500,0xa25ab));function a80_0x4500(){const _0x32da38=['mtime','join','write','getFullYear','logLevel','getTimezoneOffset','error','1156645CdAksY','9697727shOrIv','string','134379EJCFAj','getHours','close','map','init','getLogPath','getMilliseconds','yellow','abs','.gz','ERROR','.cache','message','5010aGhYTe','Warning:\x20Failed\x20to\x20compress\x20','padStart','599346gNYmBW','Proxy\x20session\x20ended','5514GtWjmO','toString','includes','debug','Proxy\x20server\x20started','12aawrpJ','stack','logDir','4THGXUC','split','info','getSeconds','log','red','getMonth','1440570PkoxsP','DEBUG','toISOString','TRACE','fileOnly','cyan','test','10SMGxTx','WARN','56cpPdZf','logStream','cause','rotateOldLogs','INFO','.log','getMinutes','name','trace','1YRMJZJ','gray','filter','825891IYjuWQ','stringify','getDate','proxy.log'];a80_0x4500=function(){return _0x32da38;};return a80_0x4500();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';function a80_0x2d51(_0x331b83,_0x478cac){const _0x4500d4=a80_0x4500();return a80_0x2d51=function(_0x2d51be,_0x2cc1aa){_0x2d51be=_0x2d51be-0xa7;let _0x1f2a62=_0x4500d4[_0x2d51be];return _0x1f2a62;},a80_0x2d51(_0x331b83,_0x478cac);}import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x3f0a38 from'chalk';function safeStringify(_0x8724c1){const _0x595dce=a80_0x2d51;if(typeof _0x8724c1===_0x595dce(0xc8))return _0x8724c1;if(_0x8724c1 instanceof Error)return _0x8724c1[_0x595dce(0xe1)]||_0x8724c1[_0x595dce(0xb6)]+':\x20'+_0x8724c1['message'];try{return JSON[_0x595dce(0xbc)](_0x8724c1,(_0x48b23b,_0x526124)=>{const _0x512ad3=_0x595dce;if(_0x526124 instanceof Error)return{'name':_0x526124[_0x512ad3(0xb6)],'message':_0x526124[_0x512ad3(0xd5)],'stack':_0x526124[_0x512ad3(0xe1)],'cause':_0x526124[_0x512ad3(0xb1)]};return _0x526124;});}catch{return String(_0x8724c1);}}function getTimezoneOffset(){const _0x3d1fb3=a80_0x2d51,_0x54f1a6=-new Date()[_0x3d1fb3(0xc4)](),_0x34467b=Math['floor'](Math[_0x3d1fb3(0xd1)](_0x54f1a6)/0x3c),_0x344eed=Math[_0x3d1fb3(0xd1)](_0x54f1a6)%0x3c,_0x307efa=_0x54f1a6>=0x0?'+':'-';return''+_0x307efa+_0x34467b['toString']()[_0x3d1fb3(0xd8)](0x2,'0')+_0x344eed[_0x3d1fb3(0xdc)]()[_0x3d1fb3(0xd8)](0x2,'0');}function formatTimestamp(){const _0x3e096a=a80_0x2d51,_0x437c4e=new Date(),_0x4830cb=_0x437c4e[_0x3e096a(0xc2)](),_0x282657=(_0x437c4e[_0x3e096a(0xe9)]()+0x1)[_0x3e096a(0xdc)]()[_0x3e096a(0xd8)](0x2,'0'),_0x25e927=_0x437c4e[_0x3e096a(0xbd)]()[_0x3e096a(0xdc)]()['padStart'](0x2,'0'),_0x155ac6=_0x437c4e[_0x3e096a(0xca)]()[_0x3e096a(0xdc)]()[_0x3e096a(0xd8)](0x2,'0'),_0x4b63c4=_0x437c4e[_0x3e096a(0xb5)]()[_0x3e096a(0xdc)]()['padStart'](0x2,'0'),_0xdf731=_0x437c4e[_0x3e096a(0xe6)]()[_0x3e096a(0xdc)]()[_0x3e096a(0xd8)](0x2,'0'),_0x301851=_0x437c4e[_0x3e096a(0xcf)]()['toString']()[_0x3e096a(0xd8)](0x3,'0'),_0x3d43b9=getTimezoneOffset();return _0x4830cb+'-'+_0x282657+'-'+_0x25e927+'\x20'+_0x155ac6+':'+_0x4b63c4+':'+_0xdf731+'.'+_0x301851+_0x3d43b9;}function formatColoredLogEntry(_0x12ce4a,_0x4bec4e){const _0x2a1938=a80_0x2d51,_0x321f66=formatTimestamp(),_0x2f4b95=_0x4bec4e[_0x2a1938(0xcc)](safeStringify)[_0x2a1938(0xc0)]('\x20'),_0x5e2163=a80_0x3f0a38['gray'](_0x321f66);let _0x14ff4b;switch(_0x12ce4a){case _0x2a1938(0xe5):_0x14ff4b=a80_0x3f0a38[_0x2a1938(0xab)]('['+_0x12ce4a+']\x20');break;case'warn':_0x14ff4b=a80_0x3f0a38[_0x2a1938(0xd0)]('['+_0x12ce4a+']\x20');break;case'error':_0x14ff4b=a80_0x3f0a38[_0x2a1938(0xe8)]('['+_0x12ce4a+']');break;case'debug':_0x14ff4b=a80_0x3f0a38[_0x2a1938(0xb9)]('['+_0x12ce4a+']');break;default:_0x14ff4b='['+_0x12ce4a+']';}return _0x5e2163+'\x20'+_0x14ff4b+'\x20'+_0x2f4b95;}export var LogLevel;(function(_0x4b715b){const _0x9150e0=a80_0x2d51;_0x4b715b[_0x4b715b['TRACE']=-0x2]=_0x9150e0(0xa9),_0x4b715b[_0x4b715b[_0x9150e0(0xa7)]=-0x1]=_0x9150e0(0xa7),_0x4b715b[_0x4b715b[_0x9150e0(0xb3)]=0x0]=_0x9150e0(0xb3),_0x4b715b[_0x4b715b[_0x9150e0(0xae)]=0x1]='WARN',_0x4b715b[_0x4b715b[_0x9150e0(0xd3)]=0x2]=_0x9150e0(0xd3);}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x8b8512(0xb0)];[a80_0x8b8512(0xe2)];[a80_0x8b8512(0xc3)];['fileOnly'];constructor(_0x49adb1=LogLevel[a80_0x8b8512(0xb3)],_0x4ed447=![]){const _0x5bfaa6=a80_0x8b8512;this[_0x5bfaa6(0xe2)]=join(homedir(),_0x5bfaa6(0xd4),'tdx','logs'),this['logLevel']=_0x49adb1,this[_0x5bfaa6(0xaa)]=_0x4ed447;}async[a80_0x8b8512(0xcd)](){const _0x32acf0=a80_0x8b8512;try{await mkdir(this[_0x32acf0(0xe2)],{'recursive':!![]}),await this[_0x32acf0(0xb2)]();const _0xc8ba6e=join(this[_0x32acf0(0xe2)],_0x32acf0(0xbe));this['logStream']=createWriteStream(_0xc8ba6e,{'flags':'a'}),this['logStream']['on'](_0x32acf0(0xc5),_0x4a8d4a=>{const _0x5b7c97=_0x32acf0;console[_0x5b7c97(0xc5)]('Warning:\x20Error\x20writing\x20to\x20proxy.log:',_0x4a8d4a[_0x5b7c97(0xd5)]);}),this[_0x32acf0(0xe5)](_0x32acf0(0xdf));}catch(_0x11343a){console[_0x32acf0(0xc5)]('Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:',_0x11343a);}}async[a80_0x8b8512(0xb2)](){const _0x2e8e7b=a80_0x8b8512;try{const _0x5f045e=await readdir(this[_0x2e8e7b(0xe2)]),_0x14b447=new Date()[_0x2e8e7b(0xa8)]()[_0x2e8e7b(0xe4)]('T')[0x0];if(_0x5f045e[_0x2e8e7b(0xdd)](_0x2e8e7b(0xbe))){const _0x5b204d=join(this[_0x2e8e7b(0xe2)],'proxy.log'),_0x572671=await stat(_0x5b204d),_0x9e46b2=new Date(_0x572671[_0x2e8e7b(0xbf)])[_0x2e8e7b(0xa8)]()[_0x2e8e7b(0xe4)]('T')[0x0];if(_0x9e46b2<_0x14b447){const _0x591553=join(this[_0x2e8e7b(0xe2)],'proxy-'+_0x9e46b2+_0x2e8e7b(0xb4));await rename(_0x5b204d,_0x591553);}}const _0xaafc2e=await readdir(this[_0x2e8e7b(0xe2)]),_0xd8a1a0=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x24e7cf=_0xaafc2e[_0x2e8e7b(0xba)](_0x36cd3a=>_0xd8a1a0[_0x2e8e7b(0xac)](_0x36cd3a));for(const _0x2771a0 of _0x24e7cf){const _0x54ef0d=join(this[_0x2e8e7b(0xe2)],_0x2771a0),_0x37dad3=join(this['logDir'],_0x2771a0+_0x2e8e7b(0xd2));try{await pipeline(createReadStream(_0x54ef0d),createGzip(),createWriteStream(_0x37dad3)),await unlink(_0x54ef0d);}catch(_0x1a9dea){console[_0x2e8e7b(0xc5)](_0x2e8e7b(0xd7)+_0x2771a0+':',_0x1a9dea);}}}catch{}}[a80_0x8b8512(0xde)](..._0x520b63){const _0xf19db8=a80_0x8b8512;if(this[_0xf19db8(0xc3)]>LogLevel[_0xf19db8(0xa7)])return;const _0x15de8b=formatColoredLogEntry(_0xf19db8(0xde),_0x520b63);this[_0xf19db8(0xb0)]?.[_0xf19db8(0xc1)](_0x15de8b+'\x0a');}[a80_0x8b8512(0xb7)](..._0x2022cf){const _0x250d18=a80_0x8b8512;if(this[_0x250d18(0xc3)]>LogLevel[_0x250d18(0xa9)])return;const _0x122d34=formatColoredLogEntry('trace',_0x2022cf);this[_0x250d18(0xb0)]?.['write'](_0x122d34+'\x0a');}[a80_0x8b8512(0xe5)](..._0x421d82){const _0x2700ab=a80_0x8b8512;if(this['logLevel']>LogLevel[_0x2700ab(0xb3)])return;const _0x466ac9=formatColoredLogEntry(_0x2700ab(0xe5),_0x421d82);!this[_0x2700ab(0xaa)]&&console[_0x2700ab(0xe7)](_0x466ac9),this[_0x2700ab(0xb0)]?.['write'](_0x466ac9+'\x0a');}['warn'](..._0x214ad6){const _0x3c5136=a80_0x8b8512;if(this[_0x3c5136(0xc3)]>LogLevel[_0x3c5136(0xae)])return;const _0x2ef2f7=formatColoredLogEntry('warn',_0x214ad6);!this[_0x3c5136(0xaa)]&&console[_0x3c5136(0xc5)](_0x2ef2f7),this['logStream']?.[_0x3c5136(0xc1)](_0x2ef2f7+'\x0a');}[a80_0x8b8512(0xc5)](..._0x34f4e8){const _0x5a7419=a80_0x8b8512,_0x1b55e=formatColoredLogEntry(_0x5a7419(0xc5),_0x34f4e8);!this[_0x5a7419(0xaa)]&&console[_0x5a7419(0xc5)](_0x1b55e),this[_0x5a7419(0xb0)]?.[_0x5a7419(0xc1)](_0x1b55e+'\x0a');}async[a80_0x8b8512(0xcb)](){const _0x1df6cc=a80_0x8b8512;return this[_0x1df6cc(0xe5)](_0x1df6cc(0xda)),new Promise(_0x4007a4=>{const _0x5e38c9=_0x1df6cc;this[_0x5e38c9(0xb0)]?this[_0x5e38c9(0xb0)]['end'](()=>{_0x4007a4();}):_0x4007a4();});}[a80_0x8b8512(0xce)](){const _0x303c05=a80_0x8b8512;return join(this[_0x303c05(0xe2)],_0x303c05(0xbe));}}
1
+ const a80_0x4151c9=a80_0x39f0;function a80_0x39f0(_0x2b4838,_0x4135d8){const _0x1fa10f=a80_0x1fa1();return a80_0x39f0=function(_0x39f0fe,_0x1b2b38){_0x39f0fe=_0x39f0fe-0x1a4;let _0x5948c5=_0x1fa10f[_0x39f0fe];return _0x5948c5;},a80_0x39f0(_0x2b4838,_0x4135d8);}(function(_0x32448b,_0xf54863){const _0x4f060f=a80_0x39f0,_0x1b22e2=_0x32448b();while(!![]){try{const _0x7f7d59=parseInt(_0x4f060f(0x1c5))/0x1+-parseInt(_0x4f060f(0x1c3))/0x2+-parseInt(_0x4f060f(0x1d2))/0x3*(parseInt(_0x4f060f(0x1a5))/0x4)+-parseInt(_0x4f060f(0x1ce))/0x5*(-parseInt(_0x4f060f(0x1ae))/0x6)+-parseInt(_0x4f060f(0x1bc))/0x7*(parseInt(_0x4f060f(0x1e0))/0x8)+-parseInt(_0x4f060f(0x1ab))/0x9*(-parseInt(_0x4f060f(0x1b3))/0xa)+parseInt(_0x4f060f(0x1ac))/0xb*(parseInt(_0x4f060f(0x1c6))/0xc);if(_0x7f7d59===_0xf54863)break;else _0x1b22e2['push'](_0x1b22e2['shift']());}catch(_0x34dbb0){_0x1b22e2['push'](_0x1b22e2['shift']());}}}(a80_0x1fa1,0x86787));import{createWriteStream,createReadStream}from'fs';function a80_0x1fa1(){const _0x5e6ff8=['map','2001336hzBHLT','getFullYear','abs','getDate','INFO','574124GWgpql','toString','getTimezoneOffset','ERROR','.log','filter','261jXkHYI','5534397ipSuvT','getMilliseconds','31254hxWmIf','logLevel','gray','cause','debug','2750TKgsYy','test','logDir','toISOString','Warning:\x20Error\x20writing\x20to\x20proxy.log:','info','proxy-','TRACE','error','21lJXaCZ','name','DEBUG','logStream','floor','Proxy\x20server\x20started','warn','1485794TtwBfF','getMinutes','123636XvTKzs','60qUSNYX','red','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','cyan','close','stack','getSeconds','write','110UHJjDz','message','split','end','15lwwyUW','mtime','getLogPath','proxy.log','padStart','.cache','stringify','WARN','rotateOldLogs','.gz','tdx','Proxy\x20session\x20ended','fileOnly'];a80_0x1fa1=function(){return _0x5e6ff8;};return a80_0x1fa1();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x2a4967 from'chalk';function safeStringify(_0x454697){const _0x1bf5f8=a80_0x39f0;if(typeof _0x454697==='string')return _0x454697;if(_0x454697 instanceof Error)return _0x454697[_0x1bf5f8(0x1cb)]||_0x454697['name']+':\x20'+_0x454697[_0x1bf5f8(0x1cf)];try{return JSON[_0x1bf5f8(0x1d8)](_0x454697,(_0x1ed6d1,_0x3f0093)=>{const _0x17b0b6=_0x1bf5f8;if(_0x3f0093 instanceof Error)return{'name':_0x3f0093[_0x17b0b6(0x1bd)],'message':_0x3f0093[_0x17b0b6(0x1cf)],'stack':_0x3f0093['stack'],'cause':_0x3f0093[_0x17b0b6(0x1b1)]};return _0x3f0093;});}catch{return String(_0x454697);}}function getTimezoneOffset(){const _0x3f1aec=a80_0x39f0,_0x598668=-new Date()[_0x3f1aec(0x1a7)](),_0x1d58cc=Math[_0x3f1aec(0x1c0)](Math[_0x3f1aec(0x1e2)](_0x598668)/0x3c),_0x134135=Math[_0x3f1aec(0x1e2)](_0x598668)%0x3c,_0x2f4eb1=_0x598668>=0x0?'+':'-';return''+_0x2f4eb1+_0x1d58cc[_0x3f1aec(0x1a6)]()[_0x3f1aec(0x1d6)](0x2,'0')+_0x134135[_0x3f1aec(0x1a6)]()[_0x3f1aec(0x1d6)](0x2,'0');}function formatTimestamp(){const _0x15b945=a80_0x39f0,_0x53a44c=new Date(),_0x5ac7f4=_0x53a44c[_0x15b945(0x1e1)](),_0x48f363=(_0x53a44c['getMonth']()+0x1)['toString']()['padStart'](0x2,'0'),_0x31fe0b=_0x53a44c[_0x15b945(0x1e3)]()['toString']()[_0x15b945(0x1d6)](0x2,'0'),_0x25dbde=_0x53a44c['getHours']()[_0x15b945(0x1a6)]()[_0x15b945(0x1d6)](0x2,'0'),_0xb8ad0f=_0x53a44c[_0x15b945(0x1c4)]()[_0x15b945(0x1a6)]()[_0x15b945(0x1d6)](0x2,'0'),_0x2ce0e1=_0x53a44c[_0x15b945(0x1cc)]()[_0x15b945(0x1a6)]()['padStart'](0x2,'0'),_0x42baaa=_0x53a44c[_0x15b945(0x1ad)]()[_0x15b945(0x1a6)]()[_0x15b945(0x1d6)](0x3,'0'),_0x130528=getTimezoneOffset();return _0x5ac7f4+'-'+_0x48f363+'-'+_0x31fe0b+'\x20'+_0x25dbde+':'+_0xb8ad0f+':'+_0x2ce0e1+'.'+_0x42baaa+_0x130528;}function formatColoredLogEntry(_0x57c2c1,_0x56e5aa){const _0xb6212=a80_0x39f0,_0x337733=formatTimestamp(),_0x5aea0d=_0x56e5aa[_0xb6212(0x1df)](safeStringify)['join']('\x20'),_0x14845d=a80_0x2a4967[_0xb6212(0x1b0)](_0x337733);let _0x3bb3aa;switch(_0x57c2c1){case'info':_0x3bb3aa=a80_0x2a4967[_0xb6212(0x1c9)]('['+_0x57c2c1+']\x20');break;case _0xb6212(0x1c2):_0x3bb3aa=a80_0x2a4967['yellow']('['+_0x57c2c1+']\x20');break;case _0xb6212(0x1bb):_0x3bb3aa=a80_0x2a4967[_0xb6212(0x1c7)]('['+_0x57c2c1+']');break;case _0xb6212(0x1b2):_0x3bb3aa=a80_0x2a4967[_0xb6212(0x1b0)]('['+_0x57c2c1+']');break;default:_0x3bb3aa='['+_0x57c2c1+']';}return _0x14845d+'\x20'+_0x3bb3aa+'\x20'+_0x5aea0d;}export var LogLevel;(function(_0x27b8fd){const _0xc66bc3=a80_0x39f0;_0x27b8fd[_0x27b8fd[_0xc66bc3(0x1ba)]=-0x2]=_0xc66bc3(0x1ba),_0x27b8fd[_0x27b8fd[_0xc66bc3(0x1be)]=-0x1]='DEBUG',_0x27b8fd[_0x27b8fd[_0xc66bc3(0x1a4)]=0x0]=_0xc66bc3(0x1a4),_0x27b8fd[_0x27b8fd[_0xc66bc3(0x1d9)]=0x1]=_0xc66bc3(0x1d9),_0x27b8fd[_0x27b8fd[_0xc66bc3(0x1a8)]=0x2]=_0xc66bc3(0x1a8);}(LogLevel||(LogLevel={})));export class TDXLogger{['logStream'];[a80_0x4151c9(0x1b5)];[a80_0x4151c9(0x1af)];[a80_0x4151c9(0x1de)];constructor(_0x416c29=LogLevel[a80_0x4151c9(0x1a4)],_0x5cdb94=![]){const _0x2523b1=a80_0x4151c9;this[_0x2523b1(0x1b5)]=join(homedir(),_0x2523b1(0x1d7),_0x2523b1(0x1dc),'logs'),this[_0x2523b1(0x1af)]=_0x416c29,this[_0x2523b1(0x1de)]=_0x5cdb94;}async['init'](){const _0x5bc653=a80_0x4151c9;try{await mkdir(this[_0x5bc653(0x1b5)],{'recursive':!![]}),await this[_0x5bc653(0x1da)]();const _0x22deaf=join(this['logDir'],_0x5bc653(0x1d5));this['logStream']=createWriteStream(_0x22deaf,{'flags':'a'}),this[_0x5bc653(0x1bf)]['on'](_0x5bc653(0x1bb),_0x3326e0=>{const _0x42af91=_0x5bc653;console[_0x42af91(0x1bb)](_0x42af91(0x1b7),_0x3326e0[_0x42af91(0x1cf)]);}),this[_0x5bc653(0x1b8)](_0x5bc653(0x1c1));}catch(_0x3aa337){console[_0x5bc653(0x1bb)](_0x5bc653(0x1c8),_0x3aa337);}}async['rotateOldLogs'](){const _0x14653e=a80_0x4151c9;try{const _0x65e178=await readdir(this[_0x14653e(0x1b5)]),_0x42f9b8=new Date()[_0x14653e(0x1b6)]()[_0x14653e(0x1d0)]('T')[0x0];if(_0x65e178['includes'](_0x14653e(0x1d5))){const _0x438657=join(this[_0x14653e(0x1b5)],_0x14653e(0x1d5)),_0x590a6f=await stat(_0x438657),_0x2214a2=new Date(_0x590a6f[_0x14653e(0x1d3)])[_0x14653e(0x1b6)]()[_0x14653e(0x1d0)]('T')[0x0];if(_0x2214a2<_0x42f9b8){const _0x31404a=join(this[_0x14653e(0x1b5)],_0x14653e(0x1b9)+_0x2214a2+_0x14653e(0x1a9));await rename(_0x438657,_0x31404a);}}const _0x4fc1fd=await readdir(this[_0x14653e(0x1b5)]),_0x1bb824=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x433a63=_0x4fc1fd[_0x14653e(0x1aa)](_0x2591cc=>_0x1bb824[_0x14653e(0x1b4)](_0x2591cc));for(const _0x1c5b13 of _0x433a63){const _0x26aec3=join(this[_0x14653e(0x1b5)],_0x1c5b13),_0x47a0cc=join(this['logDir'],_0x1c5b13+_0x14653e(0x1db));try{await pipeline(createReadStream(_0x26aec3),createGzip(),createWriteStream(_0x47a0cc)),await unlink(_0x26aec3);}catch(_0xd831fc){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x1c5b13+':',_0xd831fc);}}}catch{}}['debug'](..._0x13664e){const _0x2a2edf=a80_0x4151c9;if(this['logLevel']>LogLevel[_0x2a2edf(0x1be)])return;const _0x54345a=formatColoredLogEntry('debug',_0x13664e);this['logStream']?.[_0x2a2edf(0x1cd)](_0x54345a+'\x0a');}['trace'](..._0x228e9e){const _0x5837dc=a80_0x4151c9;if(this[_0x5837dc(0x1af)]>LogLevel[_0x5837dc(0x1ba)])return;const _0x5540b9=formatColoredLogEntry('trace',_0x228e9e);this['logStream']?.['write'](_0x5540b9+'\x0a');}['info'](..._0x436a2e){const _0x1373c6=a80_0x4151c9;if(this[_0x1373c6(0x1af)]>LogLevel[_0x1373c6(0x1a4)])return;const _0x260a94=formatColoredLogEntry(_0x1373c6(0x1b8),_0x436a2e);!this['fileOnly']&&console['log'](_0x260a94),this[_0x1373c6(0x1bf)]?.['write'](_0x260a94+'\x0a');}[a80_0x4151c9(0x1c2)](..._0x3e4843){const _0x401457=a80_0x4151c9;if(this['logLevel']>LogLevel[_0x401457(0x1d9)])return;const _0x1359ab=formatColoredLogEntry(_0x401457(0x1c2),_0x3e4843);!this['fileOnly']&&console[_0x401457(0x1bb)](_0x1359ab),this[_0x401457(0x1bf)]?.[_0x401457(0x1cd)](_0x1359ab+'\x0a');}[a80_0x4151c9(0x1bb)](..._0x23124d){const _0x14af19=a80_0x4151c9,_0x34392c=formatColoredLogEntry(_0x14af19(0x1bb),_0x23124d);!this['fileOnly']&&console[_0x14af19(0x1bb)](_0x34392c),this[_0x14af19(0x1bf)]?.[_0x14af19(0x1cd)](_0x34392c+'\x0a');}async[a80_0x4151c9(0x1ca)](){const _0x2c3b56=a80_0x4151c9;return this[_0x2c3b56(0x1b8)](_0x2c3b56(0x1dd)),new Promise(_0x358e65=>{const _0x42872c=_0x2c3b56;this['logStream']?this[_0x42872c(0x1bf)][_0x42872c(0x1d1)](()=>{_0x358e65();}):_0x358e65();});}[a80_0x4151c9(0x1d4)](){const _0x15e086=a80_0x4151c9;return join(this[_0x15e086(0x1b5)],'proxy.log');}}
@@ -1 +1 @@
1
- function a81_0x31f7(){const _0x4e19bb=['length','icon','\x20\x20\x20\x20','segment','population','\x20\x20\x20','5jPsJeu','push','showMetadata','820200kzOBWw','\x20folder','11YtQTas','folderCount','(empty)','join','234096iuvsOq','4JupkzV','├──\x20','localeCompare','name','131966tsuiDT','924585hvWSBc','folder','1144140scLLWJ','showIcons','indent','12xrBSrf','children','metadata','8jbfWmt','map','6346054YdKnlV','type','segmentCount','📁\x20','dim','showTreeLines','sort','2789037RSLfXi','🎯\x20','\x20segment','28JYvoyg','└──\x20'];a81_0x31f7=function(){return _0x4e19bb;};return a81_0x31f7();}(function(_0x5913a3,_0x41a329){const _0xd13548=a81_0x2426,_0x2d200b=_0x5913a3();while(!![]){try{const _0xacc18a=-parseInt(_0xd13548(0x154))/0x1*(parseInt(_0xd13548(0x162))/0x2)+parseInt(_0xd13548(0x157))/0x3+parseInt(_0xd13548(0x15e))/0x4*(-parseInt(_0xd13548(0x163))/0x5)+-parseInt(_0xd13548(0x15d))/0x6*(-parseInt(_0xd13548(0x177))/0x7)+-parseInt(_0xd13548(0x16b))/0x8*(parseInt(_0xd13548(0x174))/0x9)+parseInt(_0xd13548(0x165))/0xa*(parseInt(_0xd13548(0x159))/0xb)+parseInt(_0xd13548(0x168))/0xc*(parseInt(_0xd13548(0x16d))/0xd);if(_0xacc18a===_0x41a329)break;else _0x2d200b['push'](_0x2d200b['shift']());}catch(_0x450f7e){_0x2d200b['push'](_0x2d200b['shift']());}}}(a81_0x31f7,0x329cf));import{formatRows}from'./formatters.js';import a81_0xbd5f88 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x509710,_0x308630={},_0x3a50ee=0x0,_0x2b81ff=''){const _0xb2094f=a81_0x2426,_0x3ca481={...DEFAULT_OPTIONS,..._0x308630},_0x364543=[],_0xc43ca6=[..._0x509710]['sort']((_0xa19777,_0x13559d)=>_0xa19777['name'][_0xb2094f(0x160)](_0x13559d[_0xb2094f(0x161)]));for(let _0x4ddda7=0x0;_0x4ddda7<_0xc43ca6[_0xb2094f(0x14e)];_0x4ddda7++){const _0x52880e=_0xc43ca6[_0x4ddda7],_0x551e6d=_0x4ddda7===_0xc43ca6[_0xb2094f(0x14e)]-0x1;let _0xf35d7d='';_0x3a50ee>0x0&&(_0xf35d7d+=_0x2b81ff);_0x3ca481[_0xb2094f(0x172)]&&_0x3a50ee>0x0&&(_0xf35d7d+=a81_0xbd5f88[_0xb2094f(0x171)](_0x551e6d?_0xb2094f(0x178):_0xb2094f(0x15f)));_0x3ca481[_0xb2094f(0x166)]&&(_0xf35d7d+=_0x52880e[_0xb2094f(0x16e)]===_0xb2094f(0x164)?_0xb2094f(0x170):_0xb2094f(0x175));_0xf35d7d+=_0x52880e['name'];if(_0x3ca481[_0xb2094f(0x156)]){if(_0x52880e[_0xb2094f(0x16e)]==='folder'){const _0x463cd8=[];_0x52880e[_0xb2094f(0x16a)][_0xb2094f(0x16f)]&&_0x463cd8[_0xb2094f(0x155)](_0x52880e[_0xb2094f(0x16a)]['segmentCount']+_0xb2094f(0x176)+(_0x52880e[_0xb2094f(0x16a)]['segmentCount']!==0x1?'s':'')),_0x52880e[_0xb2094f(0x16a)][_0xb2094f(0x15a)]&&_0x463cd8[_0xb2094f(0x155)](_0x52880e[_0xb2094f(0x16a)][_0xb2094f(0x15a)]+_0xb2094f(0x158)+(_0x52880e['metadata'][_0xb2094f(0x15a)]!==0x1?'s':'')),_0x463cd8['length']>0x0&&(_0xf35d7d+=a81_0xbd5f88[_0xb2094f(0x171)]('\x20('+_0x463cd8[_0xb2094f(0x15c)](',\x20')+')'));}else _0x52880e[_0xb2094f(0x16e)]===_0xb2094f(0x151)&&_0x52880e[_0xb2094f(0x152)]!==undefined&&(_0xf35d7d+=a81_0xbd5f88['dim']('\x20('+formatRows(_0x52880e['population'])+')'));}_0x364543[_0xb2094f(0x155)](_0xf35d7d);if(_0x52880e[_0xb2094f(0x169)]&&_0x52880e[_0xb2094f(0x169)][_0xb2094f(0x14e)]>0x0){let _0x44aa95;if(_0x3a50ee===0x0)_0x44aa95='';else _0x3ca481['showTreeLines']?_0x44aa95=_0x2b81ff+(_0x551e6d?_0xb2094f(0x150):a81_0xbd5f88[_0xb2094f(0x171)]('│')+_0xb2094f(0x153)):_0x44aa95=_0x2b81ff+_0x3ca481[_0xb2094f(0x167)];const _0x2f3ef1=formatTree(_0x52880e['children'],_0x3ca481,_0x3a50ee+0x1,_0x44aa95);_0x364543['push'](_0x2f3ef1);}}return _0x364543[_0xb2094f(0x15c)]('\x0a');}function a81_0x2426(_0x17798d,_0x289b25){const _0x31f716=a81_0x31f7();return a81_0x2426=function(_0x242661,_0x6dfcee){_0x242661=_0x242661-0x14e;let _0x1307e0=_0x31f716[_0x242661];return _0x1307e0;},a81_0x2426(_0x17798d,_0x289b25);}export function formatFlatList(_0x573ad5,_0x246a0b,_0x28fa8a={}){const _0x41de8d=a81_0x2426,_0x226930={...DEFAULT_OPTIONS,..._0x28fa8a},_0x5a2489=[];for(const _0x32ce54 of _0x573ad5){_0x5a2489[_0x41de8d(0x155)]({'name':_0x32ce54[_0x41de8d(0x161)],'icon':_0x226930[_0x41de8d(0x166)]?'📁':'','metadata':undefined});}for(const _0x291be3 of _0x246a0b){const _0x508845=_0x226930[_0x41de8d(0x156)]&&_0x291be3[_0x41de8d(0x152)]!==undefined?a81_0xbd5f88[_0x41de8d(0x171)]('\x20('+formatRows(_0x291be3['population'])+')'):'';_0x5a2489['push']({'name':_0x291be3[_0x41de8d(0x161)],'icon':_0x226930[_0x41de8d(0x166)]?'🎯':'','metadata':_0x508845});}_0x5a2489[_0x41de8d(0x173)]((_0x22dcfd,_0x56b1bc)=>_0x22dcfd[_0x41de8d(0x161)][_0x41de8d(0x160)](_0x56b1bc[_0x41de8d(0x161)]));if(_0x5a2489[_0x41de8d(0x14e)]===0x0)return _0x41de8d(0x15b);const _0x277bb6=_0x5a2489[_0x41de8d(0x16c)](_0x272fa5=>{const _0x113667=_0x41de8d,_0x1f0ac5=_0x272fa5['icon']?_0x272fa5[_0x113667(0x14f)]+'\x20':'',_0x2136e1=_0x272fa5[_0x113667(0x16a)]||'';return''+_0x1f0ac5+_0x272fa5[_0x113667(0x161)]+_0x2136e1;});return _0x277bb6['join']('\x0a');}
1
+ function a81_0x13e2(){const _0x49fa4e=['length','push','showMetadata','indent','\x20\x20\x20\x20','sort','1772145vYamKb','dim','localeCompare','└──\x20','showIcons','segment','12eATgHi','11494WYGiFj','\x20folder','showTreeLines','metadata','├──\x20','10jaOuNR','children','131332DGThsj','1224IcoAya','14591382ZLZjxe','1955620WcVfeF','population','segmentCount','\x20segment','11nXiJBS','572twXvqr','join','9yOCPVb','6122416tuQBRa','\x20\x20\x20','name','map','2417PPGbzR','type','folder','folderCount','icon'];a81_0x13e2=function(){return _0x49fa4e;};return a81_0x13e2();}(function(_0x2a42ac,_0x3a15cf){const _0x35adcd=a81_0x1363,_0x37f240=_0x2a42ac();while(!![]){try{const _0x40a220=-parseInt(_0x35adcd(0x1b7))/0x1*(-parseInt(_0x35adcd(0x1d8))/0x2)+-parseInt(_0x35adcd(0x1c2))/0x3+parseInt(_0x35adcd(0x1d0))/0x4*(parseInt(_0x35adcd(0x1ce))/0x5)+-parseInt(_0x35adcd(0x1d1))/0x6*(parseInt(_0x35adcd(0x1c9))/0x7)+-parseInt(_0x35adcd(0x1b3))/0x8*(parseInt(_0x35adcd(0x1b2))/0x9)+-parseInt(_0x35adcd(0x1d3))/0xa*(-parseInt(_0x35adcd(0x1d7))/0xb)+parseInt(_0x35adcd(0x1c8))/0xc*(parseInt(_0x35adcd(0x1d2))/0xd);if(_0x40a220===_0x3a15cf)break;else _0x37f240['push'](_0x37f240['shift']());}catch(_0x4fe08b){_0x37f240['push'](_0x37f240['shift']());}}}(a81_0x13e2,0x5dbaf));import{formatRows}from'./formatters.js';import a81_0x1b9488 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x1e55f9,_0x1fa406={},_0x2e0d75=0x0,_0x198615=''){const _0xef305e=a81_0x1363,_0x375fbb={...DEFAULT_OPTIONS,..._0x1fa406},_0x5d573b=[],_0xf36898=[..._0x1e55f9][_0xef305e(0x1c1)]((_0xf81865,_0x24f276)=>_0xf81865['name'][_0xef305e(0x1c4)](_0x24f276[_0xef305e(0x1b5)]));for(let _0x476d5b=0x0;_0x476d5b<_0xf36898[_0xef305e(0x1bc)];_0x476d5b++){const _0x196a69=_0xf36898[_0x476d5b],_0x306333=_0x476d5b===_0xf36898['length']-0x1;let _0x427273='';_0x2e0d75>0x0&&(_0x427273+=_0x198615);_0x375fbb[_0xef305e(0x1cb)]&&_0x2e0d75>0x0&&(_0x427273+=a81_0x1b9488[_0xef305e(0x1c3)](_0x306333?_0xef305e(0x1c5):_0xef305e(0x1cd)));_0x375fbb[_0xef305e(0x1c6)]&&(_0x427273+=_0x196a69[_0xef305e(0x1b8)]===_0xef305e(0x1b9)?'📁\x20':'🎯\x20');_0x427273+=_0x196a69[_0xef305e(0x1b5)];if(_0x375fbb[_0xef305e(0x1be)]){if(_0x196a69[_0xef305e(0x1b8)]===_0xef305e(0x1b9)){const _0x8e2926=[];_0x196a69['metadata'][_0xef305e(0x1d5)]&&_0x8e2926[_0xef305e(0x1bd)](_0x196a69[_0xef305e(0x1cc)][_0xef305e(0x1d5)]+_0xef305e(0x1d6)+(_0x196a69[_0xef305e(0x1cc)]['segmentCount']!==0x1?'s':'')),_0x196a69[_0xef305e(0x1cc)][_0xef305e(0x1ba)]&&_0x8e2926[_0xef305e(0x1bd)](_0x196a69[_0xef305e(0x1cc)][_0xef305e(0x1ba)]+_0xef305e(0x1ca)+(_0x196a69[_0xef305e(0x1cc)][_0xef305e(0x1ba)]!==0x1?'s':'')),_0x8e2926['length']>0x0&&(_0x427273+=a81_0x1b9488['dim']('\x20('+_0x8e2926[_0xef305e(0x1d9)](',\x20')+')'));}else _0x196a69[_0xef305e(0x1b8)]===_0xef305e(0x1c7)&&_0x196a69['population']!==undefined&&(_0x427273+=a81_0x1b9488['dim']('\x20('+formatRows(_0x196a69[_0xef305e(0x1d4)])+')'));}_0x5d573b[_0xef305e(0x1bd)](_0x427273);if(_0x196a69[_0xef305e(0x1cf)]&&_0x196a69[_0xef305e(0x1cf)][_0xef305e(0x1bc)]>0x0){let _0x5c5399;if(_0x2e0d75===0x0)_0x5c5399='';else _0x375fbb[_0xef305e(0x1cb)]?_0x5c5399=_0x198615+(_0x306333?_0xef305e(0x1c0):a81_0x1b9488['dim']('│')+_0xef305e(0x1b4)):_0x5c5399=_0x198615+_0x375fbb[_0xef305e(0x1bf)];const _0x5722b3=formatTree(_0x196a69[_0xef305e(0x1cf)],_0x375fbb,_0x2e0d75+0x1,_0x5c5399);_0x5d573b['push'](_0x5722b3);}}return _0x5d573b[_0xef305e(0x1d9)]('\x0a');}function a81_0x1363(_0x255a8b,_0x6515ca){const _0x13e2f1=a81_0x13e2();return a81_0x1363=function(_0x136324,_0x460581){_0x136324=_0x136324-0x1b2;let _0x305082=_0x13e2f1[_0x136324];return _0x305082;},a81_0x1363(_0x255a8b,_0x6515ca);}export function formatFlatList(_0x55bf89,_0x47e300,_0x27bc77={}){const _0xcaf075=a81_0x1363,_0x5e703a={...DEFAULT_OPTIONS,..._0x27bc77},_0x545375=[];for(const _0xc451cf of _0x55bf89){_0x545375[_0xcaf075(0x1bd)]({'name':_0xc451cf[_0xcaf075(0x1b5)],'icon':_0x5e703a[_0xcaf075(0x1c6)]?'📁':'','metadata':undefined});}for(const _0xab48b5 of _0x47e300){const _0x1a8805=_0x5e703a[_0xcaf075(0x1be)]&&_0xab48b5['population']!==undefined?a81_0x1b9488['dim']('\x20('+formatRows(_0xab48b5[_0xcaf075(0x1d4)])+')'):'';_0x545375[_0xcaf075(0x1bd)]({'name':_0xab48b5[_0xcaf075(0x1b5)],'icon':_0x5e703a[_0xcaf075(0x1c6)]?'🎯':'','metadata':_0x1a8805});}_0x545375[_0xcaf075(0x1c1)]((_0x49180d,_0x2328bd)=>_0x49180d[_0xcaf075(0x1b5)][_0xcaf075(0x1c4)](_0x2328bd[_0xcaf075(0x1b5)]));if(_0x545375['length']===0x0)return'(empty)';const _0x22bd64=_0x545375[_0xcaf075(0x1b6)](_0x3ef67c=>{const _0x46946e=_0xcaf075,_0x41b976=_0x3ef67c[_0x46946e(0x1bb)]?_0x3ef67c['icon']+'\x20':'',_0x443400=_0x3ef67c[_0x46946e(0x1cc)]||'';return''+_0x41b976+_0x3ef67c[_0x46946e(0x1b5)]+_0x443400;});return _0x22bd64[_0xcaf075(0x1d9)]('\x0a');}
@@ -1 +1 @@
1
- function a82_0x16ad(_0x2b686d,_0x235fbc){const _0x194b41=a82_0x194b();return a82_0x16ad=function(_0x16adfd,_0x307f31){_0x16adfd=_0x16adfd-0x1a0;let _0x25d43c=_0x194b41[_0x16adfd];return _0x25d43c;},a82_0x16ad(_0x2b686d,_0x235fbc);}(function(_0x1954c2,_0x3e1c61){const _0xcf075e=a82_0x16ad,_0x5ca886=_0x1954c2();while(!![]){try{const _0x1c155f=parseInt(_0xcf075e(0x1be))/0x1*(parseInt(_0xcf075e(0x1c5))/0x2)+parseInt(_0xcf075e(0x1ae))/0x3+parseInt(_0xcf075e(0x1b9))/0x4+-parseInt(_0xcf075e(0x1a3))/0x5*(parseInt(_0xcf075e(0x1b4))/0x6)+-parseInt(_0xcf075e(0x1bf))/0x7*(-parseInt(_0xcf075e(0x1b6))/0x8)+parseInt(_0xcf075e(0x1ac))/0x9*(-parseInt(_0xcf075e(0x1c1))/0xa)+parseInt(_0xcf075e(0x1a7))/0xb*(-parseInt(_0xcf075e(0x1a5))/0xc);if(_0x1c155f===_0x3e1c61)break;else _0x5ca886['push'](_0x5ca886['shift']());}catch(_0x52aa13){_0x5ca886['push'](_0x5ca886['shift']());}}}(a82_0x194b,0x31956));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function a82_0x194b(){const _0x10fea4=['green','3WbVLit','17395oBPLxe','HTTP\x20','3625150zTJhqB','cyan','Request\x20timeout','currentVersion','173686WQLYjJ','data','yellow','Update\x20available:','58450cbVIPN','utf-8','25716vohwyk','env','2189VNCWiQ','isTTY','latestVersion','getTime','statusCode','9lDJUNI','\x0aRun:\x20','1208559JxXbZZ','npm\x20install\x20-g\x20@treasuredata/tdx@latest','error','destroy','NO_COLOR','write','60nCjJjS','lastCheck','632YETujK','now','Invalid\x20version\x20format','997076BcIPia','end','version','Run:'];a82_0x194b=function(){return _0x10fea4;};return a82_0x194b();}import{gt,valid}from'semver';import a82_0x5e2a27 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x4206cc=getCacheDir();return join(_0x4206cc,'last_version_check');}function readCache(){try{const _0xb3f178=getCacheFilePath(),_0x4afd13=readFileSync(_0xb3f178,'utf-8');return JSON['parse'](_0x4afd13);}catch{return null;}}function writeCache(_0x2e2209){const _0x12d44e=a82_0x16ad;try{const _0x210d5f=getCacheDir();mkdirSync(_0x210d5f,{'recursive':!![]});const _0x25241c={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2e2209},_0x3d3b81=getCacheFilePath();writeFileSync(_0x3d3b81,JSON['stringify'](_0x25241c,null,0x2),_0x12d44e(0x1a4));}catch{}}function isCacheValid(_0x7ba902){const _0x310b1b=a82_0x16ad;if(!_0x7ba902)return![];const _0x2b758c=new Date(_0x7ba902[_0x310b1b(0x1b5)])[_0x310b1b(0x1aa)](),_0x5baf89=Date[_0x310b1b(0x1b7)]();return _0x5baf89-_0x2b758c<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x19c1b1,_0x1ed7b4)=>{const _0x83d112=a82_0x16ad,_0x3cff4b=get(NPM_REGISTRY_URL,_0xca5c5e=>{const _0x25773f=a82_0x16ad;if(_0xca5c5e['statusCode']!==0xc8){clearTimeout(_0x47f996),_0x1ed7b4(new Error(_0x25773f(0x1c0)+_0xca5c5e[_0x25773f(0x1ab)]));return;}let _0x402332='';_0xca5c5e['on'](_0x25773f(0x1a0),_0x21f12b=>{_0x402332+=_0x21f12b;}),_0xca5c5e['on'](_0x25773f(0x1ba),()=>{const _0x11020f=_0x25773f;clearTimeout(_0x47f996);try{const _0x22c717=JSON['parse'](_0x402332);if(!valid(_0x22c717['version'])){_0x1ed7b4(new Error(_0x11020f(0x1b8)));return;}_0x19c1b1(_0x22c717[_0x11020f(0x1bb)]);}catch(_0x143586){_0x1ed7b4(_0x143586);}});})['on'](_0x83d112(0x1b0),_0x53112d=>{clearTimeout(_0x47f996),_0x1ed7b4(_0x53112d);}),_0x47f996=setTimeout(()=>{const _0x3a2246=_0x83d112;_0x3cff4b[_0x3a2246(0x1b1)](),_0x1ed7b4(new Error(_0x3a2246(0x1c3)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x3401eb){const _0x30b5d0=a82_0x16ad;try{const _0x11f9f2=readCache();if(isCacheValid(_0x11f9f2)){const _0x250f99=gt(_0x11f9f2[_0x30b5d0(0x1a9)],_0x3401eb);return{'updateAvailable':_0x250f99,'currentVersion':_0x3401eb,'latestVersion':_0x11f9f2[_0x30b5d0(0x1a9)]};}const _0x472d80=await fetchLatestVersion();writeCache(_0x472d80);const _0xb603a9=gt(_0x472d80,_0x3401eb);return{'updateAvailable':_0xb603a9,'currentVersion':_0x3401eb,'latestVersion':_0x472d80};}catch{return null;}}export function displayUpdateNotification(_0x5afbf0){const _0x39d9aa=a82_0x16ad;if(!_0x5afbf0['updateAvailable'])return;const _0x22ee33=process['stderr'][_0x39d9aa(0x1a8)]&&!process[_0x39d9aa(0x1a6)][_0x39d9aa(0x1b2)],_0x588257=_0x22ee33?a82_0x5e2a27['gray']('→'):'→',_0x311541=_0x22ee33?a82_0x5e2a27['dim'](_0x5afbf0[_0x39d9aa(0x1c4)]):_0x5afbf0[_0x39d9aa(0x1c4)],_0x294525=_0x22ee33?a82_0x5e2a27[_0x39d9aa(0x1bd)](_0x5afbf0[_0x39d9aa(0x1a9)]):_0x5afbf0[_0x39d9aa(0x1a9)],_0x32ead0=_0x22ee33?a82_0x5e2a27[_0x39d9aa(0x1c2)](_0x39d9aa(0x1af)):_0x39d9aa(0x1af),_0x3fb9c2=_0x22ee33?'\x0a'+a82_0x5e2a27[_0x39d9aa(0x1a1)](_0x39d9aa(0x1a2))+'\x20'+_0x311541+'\x20'+_0x588257+'\x20'+_0x294525+'\x0a'+a82_0x5e2a27['dim'](_0x39d9aa(0x1bc))+'\x20'+_0x32ead0+'\x0a':'\x0aUpdate\x20available:\x20'+_0x311541+'\x20'+_0x588257+'\x20'+_0x294525+_0x39d9aa(0x1ad)+_0x32ead0+'\x0a';process['stderr'][_0x39d9aa(0x1b3)](_0x3fb9c2);}
1
+ (function(_0x5db9e3,_0x836a74){const _0x114657=a82_0x4c05,_0x44dd7a=_0x5db9e3();while(!![]){try{const _0x219b6b=parseInt(_0x114657(0x1a7))/0x1*(-parseInt(_0x114657(0x1bb))/0x2)+parseInt(_0x114657(0x1b9))/0x3+parseInt(_0x114657(0x1bf))/0x4*(parseInt(_0x114657(0x1c0))/0x5)+parseInt(_0x114657(0x1ad))/0x6*(-parseInt(_0x114657(0x1b2))/0x7)+-parseInt(_0x114657(0x1c1))/0x8*(parseInt(_0x114657(0x1a8))/0x9)+-parseInt(_0x114657(0x1aa))/0xa+-parseInt(_0x114657(0x1b1))/0xb*(-parseInt(_0x114657(0x19f))/0xc);if(_0x219b6b===_0x836a74)break;else _0x44dd7a['push'](_0x44dd7a['shift']());}catch(_0x9e7a86){_0x44dd7a['push'](_0x44dd7a['shift']());}}}(a82_0x2c1f,0x547f2));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a82_0x130712 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x5171a6=a82_0x4c05,_0x11f084=getCacheDir();return join(_0x11f084,_0x5171a6(0x1ae));}function a82_0x2c1f(){const _0x471030=['green','49211wwxFSy','36xKGNud','currentVersion','297980rFMdFQ','gray','toISOString','6osjUyj','last_version_check','stderr','latestVersion','3521397svkTpD','3221547CMMYVD','Invalid\x20version\x20format','dim','utf-8','error','parse','\x0aRun:\x20','1239024QcqxSb','statusCode','10lnBbKA','env','data','isTTY','689484FuWZan','5VTmutC','927176TcnHjv','NO_COLOR','Run:','npm\x20install\x20-g\x20@treasuredata/tdx@latest','stringify','yellow','36qnXGMF','getTime','HTTP\x20','version','end','updateAvailable','Update\x20available:'];a82_0x2c1f=function(){return _0x471030;};return a82_0x2c1f();}function readCache(){const _0x1cf732=a82_0x4c05;try{const _0x26ecd2=getCacheFilePath(),_0x2bb35b=readFileSync(_0x26ecd2,_0x1cf732(0x1b5));return JSON[_0x1cf732(0x1b7)](_0x2bb35b);}catch{return null;}}function writeCache(_0x11651d){const _0x1386ac=a82_0x4c05;try{const _0x2bfb07=getCacheDir();mkdirSync(_0x2bfb07,{'recursive':!![]});const _0x149c9e={'lastCheck':new Date()[_0x1386ac(0x1ac)](),'latestVersion':_0x11651d},_0x1c9370=getCacheFilePath();writeFileSync(_0x1c9370,JSON[_0x1386ac(0x1c5)](_0x149c9e,null,0x2),_0x1386ac(0x1b5));}catch{}}function isCacheValid(_0xf86b1e){const _0x26251d=a82_0x4c05;if(!_0xf86b1e)return![];const _0x1fb1a4=new Date(_0xf86b1e['lastCheck'])[_0x26251d(0x1a0)](),_0xd5cfd9=Date['now']();return _0xd5cfd9-_0x1fb1a4<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x36f3d2,_0x424159)=>{const _0x145179=a82_0x4c05,_0x540dcd=get(NPM_REGISTRY_URL,_0x121add=>{const _0x57fc86=a82_0x4c05;if(_0x121add[_0x57fc86(0x1ba)]!==0xc8){clearTimeout(_0x1b57b6),_0x424159(new Error(_0x57fc86(0x1a1)+_0x121add[_0x57fc86(0x1ba)]));return;}let _0x13008c='';_0x121add['on'](_0x57fc86(0x1bd),_0x2beddb=>{_0x13008c+=_0x2beddb;}),_0x121add['on'](_0x57fc86(0x1a3),()=>{const _0x341b86=_0x57fc86;clearTimeout(_0x1b57b6);try{const _0x3dfea1=JSON[_0x341b86(0x1b7)](_0x13008c);if(!valid(_0x3dfea1[_0x341b86(0x1a2)])){_0x424159(new Error(_0x341b86(0x1b3)));return;}_0x36f3d2(_0x3dfea1['version']);}catch(_0x5b0358){_0x424159(_0x5b0358);}});})['on'](_0x145179(0x1b6),_0x33a89b=>{clearTimeout(_0x1b57b6),_0x424159(_0x33a89b);}),_0x1b57b6=setTimeout(()=>{_0x540dcd['destroy'](),_0x424159(new Error('Request\x20timeout'));},TIMEOUT_MS);});}function a82_0x4c05(_0x1f9e18,_0x6960dc){const _0x2c1fbc=a82_0x2c1f();return a82_0x4c05=function(_0x4c0512,_0x377cd5){_0x4c0512=_0x4c0512-0x19e;let _0x3c397f=_0x2c1fbc[_0x4c0512];return _0x3c397f;},a82_0x4c05(_0x1f9e18,_0x6960dc);}export async function checkForUpdate(_0x5efcd2){try{const _0x21ff6d=readCache();if(isCacheValid(_0x21ff6d)){const _0x652273=gt(_0x21ff6d['latestVersion'],_0x5efcd2);return{'updateAvailable':_0x652273,'currentVersion':_0x5efcd2,'latestVersion':_0x21ff6d['latestVersion']};}const _0x42dfc5=await fetchLatestVersion();writeCache(_0x42dfc5);const _0x5c0af1=gt(_0x42dfc5,_0x5efcd2);return{'updateAvailable':_0x5c0af1,'currentVersion':_0x5efcd2,'latestVersion':_0x42dfc5};}catch{return null;}}export function displayUpdateNotification(_0x1c690d){const _0x2b6550=a82_0x4c05;if(!_0x1c690d[_0x2b6550(0x1a4)])return;const _0x5577dc=process[_0x2b6550(0x1af)][_0x2b6550(0x1be)]&&!process[_0x2b6550(0x1bc)][_0x2b6550(0x1c2)],_0x26ce58=_0x5577dc?a82_0x130712[_0x2b6550(0x1ab)]('→'):'→',_0x5ca6f7=_0x5577dc?a82_0x130712['dim'](_0x1c690d[_0x2b6550(0x1a9)]):_0x1c690d[_0x2b6550(0x1a9)],_0x1d95bc=_0x5577dc?a82_0x130712[_0x2b6550(0x1a6)](_0x1c690d[_0x2b6550(0x1b0)]):_0x1c690d[_0x2b6550(0x1b0)],_0x32267c=_0x5577dc?a82_0x130712['cyan'](_0x2b6550(0x1c4)):_0x2b6550(0x1c4),_0x140185=_0x5577dc?'\x0a'+a82_0x130712[_0x2b6550(0x19e)](_0x2b6550(0x1a5))+'\x20'+_0x5ca6f7+'\x20'+_0x26ce58+'\x20'+_0x1d95bc+'\x0a'+a82_0x130712[_0x2b6550(0x1b4)](_0x2b6550(0x1c3))+'\x20'+_0x32267c+'\x0a':'\x0aUpdate\x20available:\x20'+_0x5ca6f7+'\x20'+_0x26ce58+'\x20'+_0x1d95bc+_0x2b6550(0x1b8)+_0x32267c+'\x0a';process[_0x2b6550(0x1af)]['write'](_0x140185);}
@@ -1 +1 @@
1
- const a83_0x3fae8f=a83_0x304c;(function(_0xffa74b,_0xbd1c27){const _0x26ee20=a83_0x304c,_0x1b29d1=_0xffa74b();while(!![]){try{const _0x366957=parseInt(_0x26ee20(0x177))/0x1+-parseInt(_0x26ee20(0x173))/0x2*(-parseInt(_0x26ee20(0x176))/0x3)+parseInt(_0x26ee20(0x17d))/0x4*(-parseInt(_0x26ee20(0x175))/0x5)+-parseInt(_0x26ee20(0x171))/0x6*(parseInt(_0x26ee20(0x17a))/0x7)+-parseInt(_0x26ee20(0x170))/0x8+parseInt(_0x26ee20(0x17b))/0x9+parseInt(_0x26ee20(0x172))/0xa*(-parseInt(_0x26ee20(0x174))/0xb);if(_0x366957===_0xbd1c27)break;else _0x1b29d1['push'](_0x1b29d1['shift']());}catch(_0x974b43){_0x1b29d1['push'](_0x1b29d1['shift']());}}}(a83_0x3cf7,0x37cd7));export const WORKFLOW_FILE_EXTENSION=a83_0x3fae8f(0x17c);function a83_0x304c(_0x266072,_0xbddc1a){const _0x3cf727=a83_0x3cf7();return a83_0x304c=function(_0x304c95,_0x1c2416){_0x304c95=_0x304c95-0x170;let _0x119e4e=_0x3cf727[_0x304c95];return _0x119e4e;},a83_0x304c(_0x266072,_0xbddc1a);}function a83_0x3cf7(){const _0x4d1b90=['1404221oJJSzz','2881260RDbzWG','.dig','4UMYKKF','500088xOlLwA','6kKNAMs','110EVoZhp','289566YzGXhC','172711XZffIZ','1148975DkNcZD','3SNKtTp','429264gYlPfx','.digdag','startsWith'];a83_0x3cf7=function(){return _0x4d1b90;};return a83_0x3cf7();}export function shouldIncludeInArchive(_0x54840d){const _0x105288=a83_0x3fae8f;if(_0x54840d===_0x105288(0x178))return!![];if(_0x54840d[_0x105288(0x179)]('.'))return![];return!![];}
1
+ function a83_0x17ce(){const _0x3a2b4d=['203UJQTnN','2001910NlhNej','4JYtxZm','3212358XfOzRy','28036370TdgPwm','3550485STUPpc','430262aJOHfh','18WnfgDG','9040WyBxdg','.dig','3187896nDWtQp','startsWith'];a83_0x17ce=function(){return _0x3a2b4d;};return a83_0x17ce();}const a83_0x53bcb6=a83_0x1b91;(function(_0x585bdb,_0x2b31b4){const _0x596a56=a83_0x1b91,_0x552937=_0x585bdb();while(!![]){try{const _0x3f5baf=parseInt(_0x596a56(0x183))/0x1*(-parseInt(_0x596a56(0x17f))/0x2)+-parseInt(_0x596a56(0x17c))/0x3+-parseInt(_0x596a56(0x179))/0x4*(parseInt(_0x596a56(0x184))/0x5)+-parseInt(_0x596a56(0x17a))/0x6+parseInt(_0x596a56(0x17d))/0x7+-parseInt(_0x596a56(0x181))/0x8*(-parseInt(_0x596a56(0x17e))/0x9)+parseInt(_0x596a56(0x17b))/0xa;if(_0x3f5baf===_0x2b31b4)break;else _0x552937['push'](_0x552937['shift']());}catch(_0x449790){_0x552937['push'](_0x552937['shift']());}}}(a83_0x17ce,0x98a5f));function a83_0x1b91(_0x980f90,_0x3eb77c){const _0x17ce6a=a83_0x17ce();return a83_0x1b91=function(_0x1b915a,_0x5d6113){_0x1b915a=_0x1b915a-0x179;let _0x1fa1b7=_0x17ce6a[_0x1b915a];return _0x1fa1b7;},a83_0x1b91(_0x980f90,_0x3eb77c);}export const WORKFLOW_FILE_EXTENSION=a83_0x53bcb6(0x180);export function shouldIncludeInArchive(_0x45c4d2){const _0x24fd75=a83_0x53bcb6;if(_0x45c4d2==='.digdag')return!![];if(_0x45c4d2[_0x24fd75(0x182)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
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": {