@treasuredata/tdx 0.2.3 → 0.2.5

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 (92) 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.d.ts +1 -0
  6. package/dist/client/llm-client.d.ts.map +1 -1
  7. package/dist/client/llm-client.js +1 -1
  8. package/dist/client/llm-client.js.map +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-client.js +1 -1
  11. package/dist/client/trino-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/api-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/context-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/llm-proxy.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profiles-command.js +1 -1
  26. package/dist/commands/query-command.js +1 -1
  27. package/dist/commands/segment-command.js +1 -1
  28. package/dist/commands/segment-create-command.js +1 -1
  29. package/dist/commands/segment-fields-command.js +1 -1
  30. package/dist/commands/segment-pwd-command.js +1 -1
  31. package/dist/commands/segment-update-command.js +1 -1
  32. package/dist/commands/segment-use-command.js +1 -1
  33. package/dist/commands/segments.js +1 -1
  34. package/dist/commands/show.js +1 -1
  35. package/dist/commands/tables.js +1 -1
  36. package/dist/commands/use-command.js +1 -1
  37. package/dist/commands/workflow-command.js +1 -1
  38. package/dist/core/auth.js +1 -1
  39. package/dist/core/config.js +1 -1
  40. package/dist/core/global-context.js +1 -1
  41. package/dist/core/profile.js +1 -1
  42. package/dist/core/project-config.js +1 -1
  43. package/dist/core/session.js +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/proxy/anthropic-adapter.d.ts +1 -1
  46. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  47. package/dist/proxy/anthropic-adapter.js +1 -1
  48. package/dist/proxy/anthropic-adapter.js.map +1 -1
  49. package/dist/proxy/server.d.ts.map +1 -1
  50. package/dist/proxy/server.js +1 -1
  51. package/dist/proxy/server.js.map +1 -1
  52. package/dist/proxy/session-cache.js +1 -1
  53. package/dist/sdk/api.js +1 -1
  54. package/dist/sdk/database.js +1 -1
  55. package/dist/sdk/errors.js +1 -1
  56. package/dist/sdk/index.js +1 -1
  57. package/dist/sdk/job.js +1 -1
  58. package/dist/sdk/llm.js +1 -1
  59. package/dist/sdk/query.js +1 -1
  60. package/dist/sdk/segment.js +1 -1
  61. package/dist/sdk/table.js +1 -1
  62. package/dist/sdk/workflow.js +1 -1
  63. package/dist/types/anthropic.d.ts +3 -2
  64. package/dist/types/anthropic.d.ts.map +1 -1
  65. package/dist/types/endpoints.js +1 -1
  66. package/dist/types/index.js +1 -1
  67. package/dist/utils/agent-ref-parser.js +1 -1
  68. package/dist/utils/chat-cache.js +1 -1
  69. package/dist/utils/colors.js +1 -1
  70. package/dist/utils/command-output.js +1 -1
  71. package/dist/utils/constants.js +1 -1
  72. package/dist/utils/file-permissions.js +1 -1
  73. package/dist/utils/format-detector.js +1 -1
  74. package/dist/utils/formatters.js +1 -1
  75. package/dist/utils/json-loader.js +1 -1
  76. package/dist/utils/model-aliases.js +1 -1
  77. package/dist/utils/option-validation.js +1 -1
  78. package/dist/utils/port.js +1 -1
  79. package/dist/utils/process.js +1 -1
  80. package/dist/utils/prompt.js +1 -1
  81. package/dist/utils/segment-path-parser.js +1 -1
  82. package/dist/utils/segment-ref-parser.js +1 -1
  83. package/dist/utils/spinner.js +1 -1
  84. package/dist/utils/sql-parser.js +1 -1
  85. package/dist/utils/sse-parser.js +1 -1
  86. package/dist/utils/string-utils.js +1 -1
  87. package/dist/utils/table-ref-parser.js +1 -1
  88. package/dist/utils/tdx-logger.js +1 -1
  89. package/dist/utils/tree-formatter.js +1 -1
  90. package/dist/utils/version-check.js +1 -1
  91. package/dist/utils/workflow-utils.js +1 -1
  92. package/package.json +1 -1
@@ -1 +1 @@
1
- function a67_0x3b6b(){const _0x14461b=['287xxPWOa','626298uYOnPq','message','code','utf-8','Failed\x20to\x20load\x20JSON:\x20','299272iIZeLG','8airIbg','File\x20not\x20found:\x20','\x27:\x20','190cIEuly','NOT_FOUND','ENOENT','1888146bDUsqD','1130MGdJuW','parse','54681lcxfuZ','EACCES','335790dxYTkx','PERMISSION_DENIED','INTERNAL','772ZncURT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','41970ZopTfu','INVALID_ARGUMENT'];a67_0x3b6b=function(){return _0x14461b;};return a67_0x3b6b();}(function(_0x399103,_0x1ffc82){const _0x172935=a67_0x2905,_0x5919c9=_0x399103();while(!![]){try{const _0x336a60=-parseInt(_0x172935(0x132))/0x1*(parseInt(_0x172935(0x12e))/0x2)+parseInt(_0x172935(0x133))/0x3+-parseInt(_0x172935(0x138))/0x4+parseInt(_0x172935(0x13c))/0x5*(-parseInt(_0x172935(0x130))/0x6)+parseInt(_0x172935(0x12b))/0x7+-parseInt(_0x172935(0x139))/0x8*(parseInt(_0x172935(0x13f))/0x9)+-parseInt(_0x172935(0x140))/0xa*(-parseInt(_0x172935(0x129))/0xb);if(_0x336a60===_0x1ffc82)break;else _0x5919c9['push'](_0x5919c9['shift']());}catch(_0x1e7768){_0x5919c9['push'](_0x5919c9['shift']());}}}(a67_0x3b6b,0x26647));import{readFile}from'fs/promises';function a67_0x2905(_0x2e3b99,_0x21b48e){const _0x3b6bdd=a67_0x3b6b();return a67_0x2905=function(_0x290559,_0x4a36bc){_0x290559=_0x290559-0x129;let _0x1fe970=_0x3b6bdd[_0x290559];return _0x1fe970;},a67_0x2905(_0x2e3b99,_0x21b48e);}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x25e261,_0x3b0889){const _0x145da9=a67_0x2905;try{if(_0x3b0889){const _0x402f2e=await readFile(_0x25e261,_0x145da9(0x136));try{return JSON[_0x145da9(0x141)](_0x402f2e);}catch(_0x4de53e){throw new SDKError(ErrorCode[_0x145da9(0x131)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x25e261+_0x145da9(0x13b)+(_0x4de53e instanceof Error?_0x4de53e[_0x145da9(0x134)]:String(_0x4de53e)));}}else try{return JSON[_0x145da9(0x141)](_0x25e261);}catch(_0x507d3d){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x507d3d instanceof Error?_0x507d3d[_0x145da9(0x134)]:String(_0x507d3d)));}}catch(_0x5c64fa){if(_0x5c64fa instanceof SDKError)throw _0x5c64fa;if(_0x5c64fa instanceof Error&&'code'in _0x5c64fa){const _0x353419=_0x5c64fa;if(_0x353419[_0x145da9(0x135)]===_0x145da9(0x13e))throw new SDKError(ErrorCode[_0x145da9(0x13d)],_0x145da9(0x13a)+_0x25e261);else{if(_0x353419[_0x145da9(0x135)]===_0x145da9(0x12a))throw new SDKError(ErrorCode[_0x145da9(0x12c)],'Permission\x20denied\x20reading\x20file:\x20'+_0x25e261);}}throw new SDKError(ErrorCode[_0x145da9(0x12d)],_0x145da9(0x137)+(_0x5c64fa instanceof Error?_0x5c64fa[_0x145da9(0x134)]:String(_0x5c64fa)));}}export async function loadJSONFromOptions(_0x3692cf,_0x2014de){const _0x523064=a67_0x2905;if(_0x3692cf&&_0x2014de)throw new SDKError(ErrorCode[_0x523064(0x131)],_0x523064(0x12f));if(_0x3692cf)return await loadJSON(_0x3692cf,![]);if(_0x2014de)return await loadJSON(_0x2014de,!![]);return undefined;}
1
+ (function(_0x46650a,_0x1f326d){const _0x117c65=a67_0x5ad6,_0xff1808=_0x46650a();while(!![]){try{const _0x3b6508=parseInt(_0x117c65(0x9b))/0x1+parseInt(_0x117c65(0x8e))/0x2*(parseInt(_0x117c65(0x98))/0x3)+-parseInt(_0x117c65(0x97))/0x4+-parseInt(_0x117c65(0x8f))/0x5+parseInt(_0x117c65(0x9a))/0x6+parseInt(_0x117c65(0x8d))/0x7*(-parseInt(_0x117c65(0x88))/0x8)+parseInt(_0x117c65(0x9d))/0x9;if(_0x3b6508===_0x1f326d)break;else _0xff1808['push'](_0xff1808['shift']());}catch(_0x1480b2){_0xff1808['push'](_0xff1808['shift']());}}}(a67_0x1d5c,0x794cf));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x5d4b2b,_0x737846){const _0x21cf9b=a67_0x5ad6;try{if(_0x737846){const _0x16ce31=await readFile(_0x5d4b2b,'utf-8');try{return JSON[_0x21cf9b(0x90)](_0x16ce31);}catch(_0x19710f){throw new SDKError(ErrorCode[_0x21cf9b(0x89)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x5d4b2b+_0x21cf9b(0x99)+(_0x19710f instanceof Error?_0x19710f[_0x21cf9b(0x93)]:String(_0x19710f)));}}else try{return JSON[_0x21cf9b(0x90)](_0x5d4b2b);}catch(_0x2b1688){throw new SDKError(ErrorCode[_0x21cf9b(0x89)],_0x21cf9b(0x9c)+(_0x2b1688 instanceof Error?_0x2b1688['message']:String(_0x2b1688)));}}catch(_0x1416bb){if(_0x1416bb instanceof SDKError)throw _0x1416bb;if(_0x1416bb instanceof Error&&_0x21cf9b(0x92)in _0x1416bb){const _0x85014d=_0x1416bb;if(_0x85014d[_0x21cf9b(0x92)]===_0x21cf9b(0x96))throw new SDKError(ErrorCode[_0x21cf9b(0x8c)],_0x21cf9b(0x95)+_0x5d4b2b);else{if(_0x85014d[_0x21cf9b(0x92)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x21cf9b(0x91)+_0x5d4b2b);}}throw new SDKError(ErrorCode[_0x21cf9b(0x8a)],_0x21cf9b(0x8b)+(_0x1416bb instanceof Error?_0x1416bb['message']:String(_0x1416bb)));}}function a67_0x5ad6(_0x4af81e,_0x4c78aa){const _0x1d5cb8=a67_0x1d5c();return a67_0x5ad6=function(_0x5ad6ff,_0x5689e0){_0x5ad6ff=_0x5ad6ff-0x88;let _0x47d6c5=_0x1d5cb8[_0x5ad6ff];return _0x47d6c5;},a67_0x5ad6(_0x4af81e,_0x4c78aa);}function a67_0x1d5c(){const _0x5aac93=['ENOENT','3050388VhUemj','1238904qUXduc','\x27:\x20','81666WNDYTx','984539HCkCLH','Invalid\x20JSON\x20string:\x20','4631895sGTqej','8TsyjTU','INVALID_ARGUMENT','INTERNAL','Failed\x20to\x20load\x20JSON:\x20','NOT_FOUND','3307465PLCijI','4FzuFji','3034010jECLxc','parse','Permission\x20denied\x20reading\x20file:\x20','code','message','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','File\x20not\x20found:\x20'];a67_0x1d5c=function(){return _0x5aac93;};return a67_0x1d5c();}export async function loadJSONFromOptions(_0x1423d8,_0x272801){const _0xf6a57=a67_0x5ad6;if(_0x1423d8&&_0x272801)throw new SDKError(ErrorCode[_0xf6a57(0x89)],_0xf6a57(0x94));if(_0x1423d8)return await loadJSON(_0x1423d8,![]);if(_0x272801)return await loadJSON(_0x272801,!![]);return undefined;}
@@ -1 +1 @@
1
- const a68_0x480721=a68_0x4225;(function(_0x4cc833,_0x211398){const _0x18449a=a68_0x4225,_0x113ba3=_0x4cc833();while(!![]){try{const _0x5a423c=-parseInt(_0x18449a(0x129))/0x1+-parseInt(_0x18449a(0x123))/0x2+-parseInt(_0x18449a(0x12b))/0x3*(-parseInt(_0x18449a(0x12a))/0x4)+parseInt(_0x18449a(0x126))/0x5*(-parseInt(_0x18449a(0x12c))/0x6)+parseInt(_0x18449a(0x122))/0x7+-parseInt(_0x18449a(0x121))/0x8*(-parseInt(_0x18449a(0x124))/0x9)+parseInt(_0x18449a(0x128))/0xa;if(_0x5a423c===_0x211398)break;else _0x113ba3['push'](_0x113ba3['shift']());}catch(_0x353620){_0x113ba3['push'](_0x113ba3['shift']());}}}(a68_0x3526,0x88b2d));const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':a68_0x480721(0x125)};export function extractModelAlias(_0x29c62b){const _0x5b2115=a68_0x480721,_0x1d8848=_0x29c62b[_0x5b2115(0x127)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x1d8848)return _0x1d8848[0x1][_0x5b2115(0x12d)]();return _0x29c62b;}export function resolveModelAlias(_0x41b356){const _0x48c71a=a68_0x480721;return MODEL_ALIASES[_0x41b356[_0x48c71a(0x12d)]()]||_0x41b356;}function a68_0x4225(_0x351a8d,_0x445064){const _0x352678=a68_0x3526();return a68_0x4225=function(_0x422516,_0x2b87ba){_0x422516=_0x422516-0x121;let _0x5318d1=_0x352678[_0x422516];return _0x5318d1;},a68_0x4225(_0x351a8d,_0x445064);}export function getModelAliases(){return{...MODEL_ALIASES};}function a68_0x3526(){const _0x1f4a80=['toLowerCase','392944fMNqRx','6253282kmgwSp','1807914qTQBIR','9JrYmNE','claude-4.5-sonnet','120srWGsW','match','16458050DhavAe','1020143PTcGcg','24MNNBuy','488496xixogv','270306EZngOJ'];a68_0x3526=function(){return _0x1f4a80;};return a68_0x3526();}
1
+ function a68_0x3d4d(){const _0x1991c4=['20zGTYEw','50728XiwgpY','5vmbkYH','408576zXlLmK','match','claude-4.5-haiku','737136bUNOzP','10ZFcBhJ','1516911CpItfa','67959HRUZOz','63JUAFDE','146243PgwDTf','497385TmxHcW','toLowerCase'];a68_0x3d4d=function(){return _0x1991c4;};return a68_0x3d4d();}const a68_0x4651fe=a68_0x2b2e;(function(_0x4c807c,_0x500642){const _0x211b15=a68_0x2b2e,_0x27f5b1=_0x4c807c();while(!![]){try{const _0x303027=parseInt(_0x211b15(0x143))/0x1+-parseInt(_0x211b15(0x149))/0x2+parseInt(_0x211b15(0x141))/0x3*(-parseInt(_0x211b15(0x146))/0x4)+-parseInt(_0x211b15(0x148))/0x5*(-parseInt(_0x211b15(0x14c))/0x6)+parseInt(_0x211b15(0x144))/0x7+-parseInt(_0x211b15(0x147))/0x8*(parseInt(_0x211b15(0x142))/0x9)+-parseInt(_0x211b15(0x14d))/0xa*(-parseInt(_0x211b15(0x140))/0xb);if(_0x303027===_0x500642)break;else _0x27f5b1['push'](_0x27f5b1['shift']());}catch(_0x2d71b8){_0x27f5b1['push'](_0x27f5b1['shift']());}}}(a68_0x3d4d,0x1c593));const MODEL_ALIASES={'haiku':a68_0x4651fe(0x14b),'sonnet':'claude-4.5-sonnet'};export function extractModelAlias(_0xfc833b){const _0x279879=a68_0x4651fe,_0x196224=_0xfc833b[_0x279879(0x14a)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x196224)return _0x196224[0x1][_0x279879(0x145)]();return _0xfc833b;}function a68_0x2b2e(_0x52b0c5,_0x4fe417){const _0x3d4dcd=a68_0x3d4d();return a68_0x2b2e=function(_0x2b2e81,_0x32e2d7){_0x2b2e81=_0x2b2e81-0x140;let _0x263689=_0x3d4dcd[_0x2b2e81];return _0x263689;},a68_0x2b2e(_0x52b0c5,_0x4fe417);}export function resolveModelAlias(_0x291923){const _0x1633e8=a68_0x4651fe;return MODEL_ALIASES[_0x291923[_0x1633e8(0x145)]()]||_0x291923;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0xabd6d1,_0x5b2ad5){const _0x474d25=a69_0x240a,_0x5c4d13=_0xabd6d1();while(!![]){try{const _0x5bbe0e=parseInt(_0x474d25(0xda))/0x1+parseInt(_0x474d25(0xe0))/0x2*(parseInt(_0x474d25(0xe6))/0x3)+-parseInt(_0x474d25(0xea))/0x4*(-parseInt(_0x474d25(0xde))/0x5)+-parseInt(_0x474d25(0xe4))/0x6*(-parseInt(_0x474d25(0xe1))/0x7)+-parseInt(_0x474d25(0xdc))/0x8+parseInt(_0x474d25(0xdb))/0x9+-parseInt(_0x474d25(0xe9))/0xa*(parseInt(_0x474d25(0xe3))/0xb);if(_0x5bbe0e===_0x5b2ad5)break;else _0x5c4d13['push'](_0x5c4d13['shift']());}catch(_0x208445){_0x5c4d13['push'](_0x5c4d13['shift']());}}}(a69_0x3bdb,0xa3501));function a69_0x3bdb(){const _0x44015e=['1963880QCDTWd','isInteger','5DWCmmM','.\x20Must\x20be\x20a\x20number.','46giTpEN','21XZukJJ','Invalid\x20limit\x20value:\x20','22epubKJ','2635368BVGmMn','Invalid\x20timeout\x20value:\x20','102AjFSZV','.\x20Must\x20be\x20a\x20positive\x20number.','number','10085170dmWZlD','1146916fzTgAY','.\x20Must\x20be\x20an\x20integer.','1294243znXcdH','288090EqTZLz'];a69_0x3bdb=function(){return _0x44015e;};return a69_0x3bdb();}function a69_0x240a(_0x1335a5,_0x220569){const _0x3bdbf3=a69_0x3bdb();return a69_0x240a=function(_0x240a29,_0xadd990){_0x240a29=_0x240a29-0xd9;let _0x519df9=_0x3bdbf3[_0x240a29];return _0x519df9;},a69_0x240a(_0x1335a5,_0x220569);}export function validateLimitOption(_0x126655){const _0x426185=a69_0x240a;if(!Number[_0x426185(0xdd)](_0x126655))return{'isValid':![],'error':_0x426185(0xe2)+_0x126655+_0x426185(0xd9)};if(_0x126655<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x126655+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x126655};}export function validateTimeoutOption(_0x1ac8b3,_0x16bcc4=0x1e){const _0x253689=a69_0x240a;if(_0x1ac8b3===undefined)return{'isValid':!![],'value':_0x16bcc4};const _0x8d80cd=typeof _0x1ac8b3===_0x253689(0xe8)?_0x1ac8b3:parseFloat(_0x1ac8b3);if(isNaN(_0x8d80cd))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x1ac8b3+_0x253689(0xdf)};if(_0x8d80cd<=0x0)return{'isValid':![],'error':_0x253689(0xe5)+_0x8d80cd+_0x253689(0xe7)};return{'isValid':!![],'value':_0x8d80cd};}
1
+ function a69_0x4702(_0xf30a3f,_0x1c50bc){const _0x2cdb81=a69_0x2cdb();return a69_0x4702=function(_0x4702b0,_0x3283b6){_0x4702b0=_0x4702b0-0x1a3;let _0x57c27e=_0x2cdb81[_0x4702b0];return _0x57c27e;},a69_0x4702(_0xf30a3f,_0x1c50bc);}(function(_0x16af7a,_0x424b5a){const _0xbd0082=a69_0x4702,_0x560042=_0x16af7a();while(!![]){try{const _0x247bad=parseInt(_0xbd0082(0x1a6))/0x1*(-parseInt(_0xbd0082(0x1ad))/0x2)+-parseInt(_0xbd0082(0x1b1))/0x3+-parseInt(_0xbd0082(0x1b2))/0x4+parseInt(_0xbd0082(0x1a4))/0x5+-parseInt(_0xbd0082(0x1a8))/0x6+-parseInt(_0xbd0082(0x1ac))/0x7*(-parseInt(_0xbd0082(0x1ae))/0x8)+parseInt(_0xbd0082(0x1ab))/0x9*(parseInt(_0xbd0082(0x1af))/0xa);if(_0x247bad===_0x424b5a)break;else _0x560042['push'](_0x560042['shift']());}catch(_0x33a3ae){_0x560042['push'](_0x560042['shift']());}}}(a69_0x2cdb,0x46248));function a69_0x2cdb(){const _0x53de6e=['8bXHbAr','10HzByIX','number','435330EqZGJk','613396FmnYLf','Invalid\x20limit\x20value:\x20','2275090fCqvXg','.\x20Must\x20be\x20an\x20integer.','377963yRzTkc','.\x20Must\x20be\x20a\x20positive\x20integer.','1231890cbzLPd','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20a\x20number.','5918229PHCqBH','395094wxfcxl','2lbSTVe'];a69_0x2cdb=function(){return _0x53de6e;};return a69_0x2cdb();}export function validateLimitOption(_0x57684f){const _0x1df500=a69_0x4702;if(!Number['isInteger'](_0x57684f))return{'isValid':![],'error':_0x1df500(0x1a3)+_0x57684f+_0x1df500(0x1a5)};if(_0x57684f<=0x0)return{'isValid':![],'error':_0x1df500(0x1a3)+_0x57684f+_0x1df500(0x1a7)};return{'isValid':!![],'value':_0x57684f};}export function validateTimeoutOption(_0x24cc1a,_0x1a9925=0x1e){const _0x1fb551=a69_0x4702;if(_0x24cc1a===undefined)return{'isValid':!![],'value':_0x1a9925};const _0x52caf2=typeof _0x24cc1a===_0x1fb551(0x1b0)?_0x24cc1a:parseFloat(_0x24cc1a);if(isNaN(_0x52caf2))return{'isValid':![],'error':_0x1fb551(0x1a9)+_0x24cc1a+_0x1fb551(0x1aa)};if(_0x52caf2<=0x0)return{'isValid':![],'error':_0x1fb551(0x1a9)+_0x52caf2+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x52caf2};}
@@ -1 +1 @@
1
- (function(_0x1c7685,_0x4c6da8){const _0x5cb5c2=a70_0x750f,_0x4c1e7a=_0x1c7685();while(!![]){try{const _0x3c861f=-parseInt(_0x5cb5c2(0x106))/0x1+parseInt(_0x5cb5c2(0x111))/0x2*(parseInt(_0x5cb5c2(0x102))/0x3)+parseInt(_0x5cb5c2(0x10b))/0x4+-parseInt(_0x5cb5c2(0x10c))/0x5*(-parseInt(_0x5cb5c2(0x10d))/0x6)+parseInt(_0x5cb5c2(0x107))/0x7*(-parseInt(_0x5cb5c2(0x10a))/0x8)+-parseInt(_0x5cb5c2(0x105))/0x9*(parseInt(_0x5cb5c2(0x10f))/0xa)+parseInt(_0x5cb5c2(0x109))/0xb*(-parseInt(_0x5cb5c2(0x108))/0xc);if(_0x3c861f===_0x4c6da8)break;else _0x4c1e7a['push'](_0x4c1e7a['shift']());}catch(_0x611ee6){_0x4c1e7a['push'](_0x4c1e7a['shift']());}}}(a70_0xdd43,0x2e0e8));import{createServer}from'node:net';function a70_0xdd43(){const _0x54ffdf=['listen','2xXpkaE','close','933159Izwgjf','listening','No\x20available\x20port\x20found\x20between\x20','9biZDTK','25475fuLSiH','133QRHnPl','516iSBKoo','42658dnpgRb','110056sAKEoF','887884tlbjCD','5MITHUy','1898934aPQbHo','\x20and\x20','2072530JnzEiR'];a70_0xdd43=function(){return _0x54ffdf;};return a70_0xdd43();}function a70_0x750f(_0x2c205d,_0xdeb6e9){const _0xdd4310=a70_0xdd43();return a70_0x750f=function(_0x750f92,_0x22c120){_0x750f92=_0x750f92-0x101;let _0x4ec427=_0xdd4310[_0x750f92];return _0x4ec427;},a70_0x750f(_0x2c205d,_0xdeb6e9);}export async function isPortAvailable(_0x25236b){return new Promise(_0xab9b3f=>{const _0x3e5390=a70_0x750f,_0x408d75=createServer();_0x408d75['once']('error',_0x34c613=>{_0x34c613['code']==='EADDRINUSE'?_0xab9b3f(![]):_0xab9b3f(![]);}),_0x408d75['once'](_0x3e5390(0x103),()=>{const _0x3d6f51=_0x3e5390;_0x408d75[_0x3d6f51(0x101)](),_0xab9b3f(!![]);}),_0x408d75[_0x3e5390(0x110)](_0x25236b,'0.0.0.0');});}export async function findAvailablePort(_0x2ca7ff=0xfa0,_0x4c8492=0x64){const _0x60a7a0=a70_0x750f;for(let _0x1e6a3e=0x0;_0x1e6a3e<_0x4c8492;_0x1e6a3e++){const _0x6245dc=_0x2ca7ff+_0x1e6a3e;if(await isPortAvailable(_0x6245dc))return _0x6245dc;}throw new Error(_0x60a7a0(0x104)+_0x2ca7ff+_0x60a7a0(0x10e)+(_0x2ca7ff+_0x4c8492-0x1));}
1
+ (function(_0x3551f5,_0x9b9803){const _0x5c111d=a70_0x55d2,_0x324840=_0x3551f5();while(!![]){try{const _0x5dcaf0=parseInt(_0x5c111d(0x195))/0x1+-parseInt(_0x5c111d(0x19c))/0x2+-parseInt(_0x5c111d(0x199))/0x3+-parseInt(_0x5c111d(0x19b))/0x4*(parseInt(_0x5c111d(0x196))/0x5)+-parseInt(_0x5c111d(0x198))/0x6*(-parseInt(_0x5c111d(0x1a2))/0x7)+parseInt(_0x5c111d(0x19f))/0x8+-parseInt(_0x5c111d(0x19d))/0x9*(parseInt(_0x5c111d(0x194))/0xa);if(_0x5dcaf0===_0x9b9803)break;else _0x324840['push'](_0x324840['shift']());}catch(_0x2ea2be){_0x324840['push'](_0x324840['shift']());}}}(a70_0x48f4,0xba517));function a70_0x48f4(){const _0x3309bf=['EADDRINUSE','code','11949KtecBa','once','4448210trgRuE','1494977rztrYQ','837215AgpXER','listening','2658VmGqCX','2592978zQncRw','No\x20available\x20port\x20found\x20between\x20','12SokANM','67788ETFXRB','27EcOHGh','error','9975944xDaDku'];a70_0x48f4=function(){return _0x3309bf;};return a70_0x48f4();}import{createServer}from'node:net';function a70_0x55d2(_0x38abc3,_0x425b88){const _0x48f4e7=a70_0x48f4();return a70_0x55d2=function(_0x55d225,_0x5495ca){_0x55d225=_0x55d225-0x193;let _0x3f8be1=_0x48f4e7[_0x55d225];return _0x3f8be1;},a70_0x55d2(_0x38abc3,_0x425b88);}export async function isPortAvailable(_0x2223ca){return new Promise(_0x4819e0=>{const _0x35aafb=a70_0x55d2,_0x15b2f2=createServer();_0x15b2f2['once'](_0x35aafb(0x19e),_0x41faec=>{const _0x577a07=_0x35aafb;_0x41faec[_0x577a07(0x1a1)]===_0x577a07(0x1a0)?_0x4819e0(![]):_0x4819e0(![]);}),_0x15b2f2[_0x35aafb(0x193)](_0x35aafb(0x197),()=>{_0x15b2f2['close'](),_0x4819e0(!![]);}),_0x15b2f2['listen'](_0x2223ca,'0.0.0.0');});}export async function findAvailablePort(_0x177134=0xfa0,_0xe0cf2a=0x64){const _0x3f37e4=a70_0x55d2;for(let _0x423010=0x0;_0x423010<_0xe0cf2a;_0x423010++){const _0x460644=_0x177134+_0x423010;if(await isPortAvailable(_0x460644))return _0x460644;}throw new Error(_0x3f37e4(0x19a)+_0x177134+'\x20and\x20'+(_0x177134+_0xe0cf2a-0x1));}
@@ -1 +1 @@
1
- const a71_0x5f2dec=a71_0x5f04;function a71_0x5f04(_0x237d41,_0x558eec){const _0x30b121=a71_0x30b1();return a71_0x5f04=function(_0x5f040d,_0x59544c){_0x5f040d=_0x5f040d-0xdc;let _0x2a834c=_0x30b121[_0x5f040d];return _0x2a834c;},a71_0x5f04(_0x237d41,_0x558eec);}(function(_0x5c5a80,_0x22dc43){const _0x1fa96e=a71_0x5f04,_0xf0db97=_0x5c5a80();while(!![]){try{const _0x364330=-parseInt(_0x1fa96e(0xe8))/0x1*(-parseInt(_0x1fa96e(0xe9))/0x2)+parseInt(_0x1fa96e(0xf0))/0x3*(parseInt(_0x1fa96e(0xe1))/0x4)+parseInt(_0x1fa96e(0xec))/0x5*(parseInt(_0x1fa96e(0xef))/0x6)+parseInt(_0x1fa96e(0xf5))/0x7+parseInt(_0x1fa96e(0xe5))/0x8+parseInt(_0x1fa96e(0xed))/0x9*(parseInt(_0x1fa96e(0xf3))/0xa)+-parseInt(_0x1fa96e(0x102))/0xb;if(_0x364330===_0x22dc43)break;else _0xf0db97['push'](_0xf0db97['shift']());}catch(_0x59850b){_0xf0db97['push'](_0xf0db97['shift']());}}}(a71_0x30b1,0xdfe4d));import{execSync}from'node:child_process';const SHELL_NAMES=new Set(['bash','zsh','sh',a71_0x5f2dec(0x101),a71_0x5f2dec(0xeb),a71_0x5f2dec(0xea),'csh','dash',a71_0x5f2dec(0xe7),a71_0x5f2dec(0xfd),'nu',a71_0x5f2dec(0xf8),'elvish',a71_0x5f2dec(0xe2)]);function getProcessInfoWindows(_0x52622c){const _0x75a9ce=a71_0x5f2dec;try{const _0x58c163=execSync(_0x75a9ce(0xf9)+_0x52622c+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x75a9ce(0xfe),'windowsHide':!![]})[_0x75a9ce(0xdc)](),_0x296b69=_0x58c163[_0x75a9ce(0xf2)]('\x0a')['filter'](_0x1f0faf=>_0x1f0faf[_0x75a9ce(0xdc)]());if(_0x296b69[_0x75a9ce(0xe0)]<0x2)return null;const _0x571e20=_0x296b69[_0x296b69[_0x75a9ce(0xe0)]-0x1]['split'](',');if(_0x571e20['length']<0x3)return null;const _0x204dab=_0x571e20[0x1]?.['trim']()||'',_0x14f718=parseInt(_0x571e20[0x2]?.[_0x75a9ce(0xdc)]()||'0',0xa);if(isNaN(_0x14f718)||!_0x204dab)return null;return{'pid':_0x52622c,'ppid':_0x14f718,'comm':_0x204dab[_0x75a9ce(0x100)](/\.exe$/i,'')};}catch(_0x57a380){return process[_0x75a9ce(0xe3)][_0x75a9ce(0xf7)]&&console[_0x75a9ce(0xe4)](_0x75a9ce(0xee)+_0x52622c+_0x75a9ce(0xfc),_0x57a380),null;}}function getProcessInfoPosix(_0x4eed0b){const _0x21d57a=a71_0x5f2dec;try{const _0x1695df=execSync('ps\x20-p\x20'+_0x4eed0b+_0x21d57a(0xf6),{'encoding':_0x21d57a(0xfe)})['trim'](),[_0x51b3c1,..._0x1a3871]=_0x1695df[_0x21d57a(0xf2)](/\s+/),_0x536661=parseInt(_0x51b3c1,0xa),_0x440897=_0x1a3871[_0x21d57a(0xdf)]('\x20');if(isNaN(_0x536661))return null;return{'pid':_0x4eed0b,'ppid':_0x536661,'comm':_0x440897};}catch(_0x1345ea){return process[_0x21d57a(0xe3)][_0x21d57a(0xf7)]&&console[_0x21d57a(0xe4)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x4eed0b+_0x21d57a(0xfb),_0x1345ea),null;}}function getProcessInfo(_0xe6c011){const _0x5b0cc1=a71_0x5f2dec;if(process[_0x5b0cc1(0xdd)]==='win32')return getProcessInfoWindows(_0xe6c011);return getProcessInfoPosix(_0xe6c011);}function isShell(_0x5d3ff3){const _0x442c04=a71_0x5f2dec,_0x3beda9=_0x5d3ff3['replace'](/^-/,'')[_0x442c04(0xf2)]('/')[_0x442c04(0xf4)]()||'';return SHELL_NAMES[_0x442c04(0xe6)](_0x3beda9['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x392c65=a71_0x5f2dec;let _0x5bb661=process[_0x392c65(0xf1)];const _0x460b00=0xa;let _0x51efe4=0x0;while(_0x51efe4<_0x460b00){const _0x3d78f3=getProcessInfo(_0x5bb661);if(!_0x3d78f3){process[_0x392c65(0xe3)][_0x392c65(0xf7)]&&console[_0x392c65(0xe4)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x5bb661+_0x392c65(0xfa));break;}if(isShell(_0x3d78f3[_0x392c65(0xde)]))return _0x3d78f3[_0x392c65(0xff)];if(_0x3d78f3[_0x392c65(0xf1)]===0x0||_0x3d78f3[_0x392c65(0xf1)]===0x1){if(isShell(_0x3d78f3[_0x392c65(0xde)]))return _0x3d78f3[_0x392c65(0xff)];break;}_0x5bb661=_0x3d78f3['ppid'],_0x51efe4++;}return process['env']['DEBUG']&&console[_0x392c65(0xe4)](_0x392c65(0x103)),process[_0x392c65(0xf1)];}function a71_0x30b1(){const _0x5e7479=['join','length','668zAQsfg','xonsh','env','error','11483976qwUEIE','has','pwsh','1141OZHLmU','414kEKafK','tcsh','ksh','5JUOCgI','14994deBhIw','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','7562154BNvfXJ','19374ZXqmVB','ppid','split','5180NgeEOu','pop','10299170ieSnxo','\x20-o\x20ppid=,comm=','DEBUG','ion','wmic\x20process\x20where\x20ProcessId=',',\x20using\x20fallback','\x20on\x20POSIX:','\x20on\x20Windows:','powershell','utf-8','pid','replace','fish','59705338JeFEvC','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','trim','platform','comm'];a71_0x30b1=function(){return _0x5e7479;};return a71_0x30b1();}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3003af){try{return process['kill'](_0x3003af,0x0),!![];}catch{return![];}}
1
+ const a71_0xc9423f=a71_0x51fb;(function(_0x2b969d,_0x578a50){const _0x47ce31=a71_0x51fb,_0x158c9d=_0x2b969d();while(!![]){try{const _0x11c9c1=-parseInt(_0x47ce31(0x16b))/0x1+parseInt(_0x47ce31(0x186))/0x2*(-parseInt(_0x47ce31(0x16a))/0x3)+-parseInt(_0x47ce31(0x176))/0x4*(parseInt(_0x47ce31(0x164))/0x5)+parseInt(_0x47ce31(0x169))/0x6+parseInt(_0x47ce31(0x17b))/0x7+parseInt(_0x47ce31(0x181))/0x8+parseInt(_0x47ce31(0x187))/0x9*(-parseInt(_0x47ce31(0x16f))/0xa);if(_0x11c9c1===_0x578a50)break;else _0x158c9d['push'](_0x158c9d['shift']());}catch(_0x43853d){_0x158c9d['push'](_0x158c9d['shift']());}}}(a71_0x1883,0x9d89a));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a71_0xc9423f(0x15e),a71_0xc9423f(0x167),'sh',a71_0xc9423f(0x162),a71_0xc9423f(0x161),a71_0xc9423f(0x17c),a71_0xc9423f(0x15c),a71_0xc9423f(0x168),'pwsh','powershell','nu',a71_0xc9423f(0x175),a71_0xc9423f(0x15d),a71_0xc9423f(0x17f)]);function getProcessInfoWindows(_0x51b665){const _0x111061=a71_0xc9423f;try{const _0x28b367=execSync(_0x111061(0x163)+_0x51b665+_0x111061(0x166),{'encoding':_0x111061(0x160),'windowsHide':!![]})[_0x111061(0x185)](),_0x29085d=_0x28b367[_0x111061(0x15f)]('\x0a')['filter'](_0x12ce18=>_0x12ce18[_0x111061(0x185)]());if(_0x29085d['length']<0x2)return null;const _0x36377c=_0x29085d[_0x29085d[_0x111061(0x173)]-0x1][_0x111061(0x15f)](',');if(_0x36377c[_0x111061(0x173)]<0x3)return null;const _0x19b405=_0x36377c[0x1]?.['trim']()||'',_0x5ab2c2=parseInt(_0x36377c[0x2]?.[_0x111061(0x185)]()||'0',0xa);if(isNaN(_0x5ab2c2)||!_0x19b405)return null;return{'pid':_0x51b665,'ppid':_0x5ab2c2,'comm':_0x19b405[_0x111061(0x170)](/\.exe$/i,'')};}catch(_0x41de1a){return process[_0x111061(0x174)][_0x111061(0x16d)]&&console[_0x111061(0x16c)](_0x111061(0x16e)+_0x51b665+_0x111061(0x171),_0x41de1a),null;}}function getProcessInfoPosix(_0x4100b8){const _0x43fd50=a71_0xc9423f;try{const _0x4216b7=execSync('ps\x20-p\x20'+_0x4100b8+_0x43fd50(0x182),{'encoding':_0x43fd50(0x160)})[_0x43fd50(0x185)](),[_0x302e80,..._0x15c1b1]=_0x4216b7['split'](/\s+/),_0x476851=parseInt(_0x302e80,0xa),_0x21c2bc=_0x15c1b1[_0x43fd50(0x17e)]('\x20');if(isNaN(_0x476851))return null;return{'pid':_0x4100b8,'ppid':_0x476851,'comm':_0x21c2bc};}catch(_0x132574){return process[_0x43fd50(0x174)][_0x43fd50(0x16d)]&&console[_0x43fd50(0x16c)](_0x43fd50(0x16e)+_0x4100b8+_0x43fd50(0x165),_0x132574),null;}}function getProcessInfo(_0x2a67dd){const _0xc4b956=a71_0xc9423f;if(process['platform']===_0xc4b956(0x183))return getProcessInfoWindows(_0x2a67dd);return getProcessInfoPosix(_0x2a67dd);}function a71_0x51fb(_0xdd32ac,_0x1a3695){const _0x1883b2=a71_0x1883();return a71_0x51fb=function(_0x51fb2e,_0x219602){_0x51fb2e=_0x51fb2e-0x15c;let _0x2750c0=_0x1883b2[_0x51fb2e];return _0x2750c0;},a71_0x51fb(_0xdd32ac,_0x1a3695);}function isShell(_0x19e919){const _0x4d7818=a71_0xc9423f,_0x11962d=_0x19e919[_0x4d7818(0x170)](/^-/,'')[_0x4d7818(0x15f)]('/')[_0x4d7818(0x17a)]()||'';return SHELL_NAMES[_0x4d7818(0x172)](_0x11962d[_0x4d7818(0x17d)]());}let cachedShellPID;function a71_0x1883(){const _0x17ea28=['toLowerCase','join','xonsh',',\x20using\x20fallback','7375600sDUOjp','\x20-o\x20ppid=,comm=','win32','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','trim','6PaQRzA','63YXhkNv','csh','elvish','bash','split','utf-8','ksh','fish','wmic\x20process\x20where\x20ProcessId=','20UrHJYE','\x20on\x20POSIX:','\x20get\x20ParentProcessId,Name\x20/format:csv','zsh','dash','7372122iJsous','1122579VRkleM','156748NLatJd','error','DEBUG','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','877570mEtadi','replace','\x20on\x20Windows:','has','length','env','ion','70904crFwUF','pid','comm','ppid','pop','3214169Aylnwf','tcsh'];a71_0x1883=function(){return _0x17ea28;};return a71_0x1883();}function findShellPID(){const _0x4a9363=a71_0xc9423f;let _0x3ffe09=process[_0x4a9363(0x179)];const _0x53d7ac=0xa;let _0x5ae09a=0x0;while(_0x5ae09a<_0x53d7ac){const _0x42d57f=getProcessInfo(_0x3ffe09);if(!_0x42d57f){process[_0x4a9363(0x174)]['DEBUG']&&console[_0x4a9363(0x16c)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x3ffe09+_0x4a9363(0x180));break;}if(isShell(_0x42d57f['comm']))return _0x42d57f[_0x4a9363(0x177)];if(_0x42d57f[_0x4a9363(0x179)]===0x0||_0x42d57f['ppid']===0x1){if(isShell(_0x42d57f[_0x4a9363(0x178)]))return _0x42d57f['pid'];break;}_0x3ffe09=_0x42d57f[_0x4a9363(0x179)],_0x5ae09a++;}return process[_0x4a9363(0x174)]['DEBUG']&&console[_0x4a9363(0x16c)](_0x4a9363(0x184)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3d2105){try{return process['kill'](_0x3d2105,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xc30db7,_0xfd336a){const _0x3350fd=a72_0x5118,_0x4896d5=_0xc30db7();while(!![]){try{const _0x9c0157=parseInt(_0x3350fd(0x1b3))/0x1*(parseInt(_0x3350fd(0x1ad))/0x2)+parseInt(_0x3350fd(0x1b7))/0x3*(-parseInt(_0x3350fd(0x1a7))/0x4)+-parseInt(_0x3350fd(0x1b8))/0x5*(parseInt(_0x3350fd(0x1b2))/0x6)+parseInt(_0x3350fd(0x1ab))/0x7+parseInt(_0x3350fd(0x1ac))/0x8+-parseInt(_0x3350fd(0x1a9))/0x9+-parseInt(_0x3350fd(0x1aa))/0xa*(-parseInt(_0x3350fd(0x1ae))/0xb);if(_0x9c0157===_0xfd336a)break;else _0x4896d5['push'](_0x4896d5['shift']());}catch(_0x55709e){_0x4896d5['push'](_0x4896d5['shift']());}}}(a72_0x561e,0x8f0f7));import*as a72_0x1eeb4a from'readline';function a72_0x5118(_0x48b8ea,_0x2523eb){const _0x561eb9=a72_0x561e();return a72_0x5118=function(_0x5118f6,_0x4f37b4){_0x5118f6=_0x5118f6-0x1a7;let _0x148be4=_0x561eb9[_0x5118f6];return _0x148be4;},a72_0x5118(_0x48b8ea,_0x2523eb);}export async function confirm(_0x420b4c){const _0x46b9fe=a72_0x5118,_0x4c18bc=a72_0x1eeb4a[_0x46b9fe(0x1af)]({'input':process[_0x46b9fe(0x1a8)],'output':process[_0x46b9fe(0x1b1)]});return new Promise(_0x5aecf6=>{const _0x411814=_0x46b9fe;_0x4c18bc['question'](_0x420b4c+_0x411814(0x1b5),_0x4b7624=>{const _0xa6534b=_0x411814;_0x4c18bc[_0xa6534b(0x1b6)](),_0x5aecf6(_0x4b7624[_0xa6534b(0x1b4)]()==='y'||_0x4b7624[_0xa6534b(0x1b4)]()===_0xa6534b(0x1b0));});});}function a72_0x561e(){const _0x22bf00=['9361629FCVQOJ','2722730sKsGGl','1845529cxEngF','6447864kAjNdq','16CakXBO','11XfHsle','createInterface','yes','stdout','402mZlhGg','103804ARLxXz','toLowerCase','\x20(y/N):\x20','close','3171iMNllG','31925cXEyMd','448MhjYfF','stdin'];a72_0x561e=function(){return _0x22bf00;};return a72_0x561e();}
1
+ function a72_0x4823(_0x49e4fe,_0x569e8a){const _0x1fefda=a72_0x1fef();return a72_0x4823=function(_0x48235e,_0x4819cc){_0x48235e=_0x48235e-0x132;let _0x270836=_0x1fefda[_0x48235e];return _0x270836;},a72_0x4823(_0x49e4fe,_0x569e8a);}(function(_0x1a02bf,_0x3b521b){const _0x56ac86=a72_0x4823,_0x5211d4=_0x1a02bf();while(!![]){try{const _0x10158e=-parseInt(_0x56ac86(0x139))/0x1+-parseInt(_0x56ac86(0x13e))/0x2*(parseInt(_0x56ac86(0x13f))/0x3)+-parseInt(_0x56ac86(0x136))/0x4+-parseInt(_0x56ac86(0x13c))/0x5+parseInt(_0x56ac86(0x13a))/0x6*(-parseInt(_0x56ac86(0x141))/0x7)+parseInt(_0x56ac86(0x132))/0x8*(parseInt(_0x56ac86(0x134))/0x9)+-parseInt(_0x56ac86(0x140))/0xa*(-parseInt(_0x56ac86(0x137))/0xb);if(_0x10158e===_0x3b521b)break;else _0x5211d4['push'](_0x5211d4['shift']());}catch(_0xdf244d){_0x5211d4['push'](_0x5211d4['shift']());}}}(a72_0x1fef,0x3382b));import*as a72_0x3ecffe from'readline';export async function confirm(_0x316f19){const _0x2bd65b=a72_0x4823,_0x36e610=a72_0x3ecffe['createInterface']({'input':process['stdin'],'output':process[_0x2bd65b(0x138)]});return new Promise(_0x4bc888=>{const _0x5e74dc=_0x2bd65b;_0x36e610[_0x5e74dc(0x135)](_0x316f19+_0x5e74dc(0x13d),_0x2c2927=>{const _0x113259=_0x5e74dc;_0x36e610['close'](),_0x4bc888(_0x2c2927[_0x113259(0x13b)]()==='y'||_0x2c2927[_0x113259(0x13b)]()===_0x113259(0x133));});});}function a72_0x1fef(){const _0x437c81=['11558EWpONf','90nTdhJu','22440RklTzy','14483zSMxIs','1392XWfeCp','yes','12321AFiFev','question','1380280uidoxF','6094FZaeid','stdout','335890yRbHVV','498QzuQuX','toLowerCase','1221690SXNweJ','\x20(y/N):\x20'];a72_0x1fef=function(){return _0x437c81;};return a72_0x1fef();}
@@ -1 +1 @@
1
- (function(_0x456cc3,_0xf74c5){const _0x573ca9=a73_0x291c,_0x4d5539=_0x456cc3();while(!![]){try{const _0xcdcb2e=-parseInt(_0x573ca9(0x168))/0x1*(parseInt(_0x573ca9(0x16c))/0x2)+-parseInt(_0x573ca9(0x161))/0x3+-parseInt(_0x573ca9(0x164))/0x4*(-parseInt(_0x573ca9(0x162))/0x5)+-parseInt(_0x573ca9(0x15d))/0x6+parseInt(_0x573ca9(0x166))/0x7*(-parseInt(_0x573ca9(0x154))/0x8)+-parseInt(_0x573ca9(0x15c))/0x9*(parseInt(_0x573ca9(0x16e))/0xa)+parseInt(_0x573ca9(0x155))/0xb;if(_0xcdcb2e===_0xf74c5)break;else _0x4d5539['push'](_0x4d5539['shift']());}catch(_0x4a3ebc){_0x4d5539['push'](_0x4d5539['shift']());}}}(a73_0x2a1d,0x8a5a0));export function parsePath(_0x5b46eb){const _0x4c737=a73_0x291c;if(!_0x5b46eb||_0x5b46eb[_0x4c737(0x16a)]()==='')throw new Error(_0x4c737(0x165));const _0x44a423=_0x5b46eb[_0x4c737(0x16a)]();if(_0x44a423==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5b46eb};const _0x2f0496=_0x44a423[_0x4c737(0x172)]('/')?_0x44a423[_0x4c737(0x157)](0x1):_0x44a423,_0x4e1d8f=_0x2f0496[_0x4c737(0x169)]('/')[_0x4c737(0x16d)](_0x5bec5c=>_0x5bec5c!=='');if(_0x4e1d8f['length']===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x43c3e7=_0x44a423['startsWith']('/')||!isRelativePathSegment(_0x4e1d8f[0x0]);for(const _0x3894d4 of _0x4e1d8f){validatePathSegment(_0x3894d4);}return{'segments':_0x4e1d8f,'isAbsolute':_0x43c3e7,'raw':_0x5b46eb};}function isRelativePathSegment(_0x5cc45b){return _0x5cc45b==='.'||_0x5cc45b==='..';}function validatePathSegment(_0x29a6fc){const _0x86b387=a73_0x291c;if(_0x29a6fc==='')throw new Error(_0x86b387(0x15f));if(_0x29a6fc==='.'||_0x29a6fc==='..')return;if(/[\x00-\x1F\x7F]/[_0x86b387(0x170)](_0x29a6fc))throw new Error(_0x86b387(0x156)+_0x29a6fc);if(_0x29a6fc!==_0x29a6fc[_0x86b387(0x16a)]()){}}export function validatePath(_0x22cbe9){const _0x10c5c8=a73_0x291c;if(_0x22cbe9[_0x10c5c8(0x167)][_0x10c5c8(0x15e)]===0x0&&!_0x22cbe9[_0x10c5c8(0x159)])throw new Error(_0x10c5c8(0x15a));if(_0x22cbe9[_0x10c5c8(0x159)]){if(_0x22cbe9[_0x10c5c8(0x167)][0x0]==='..')throw new Error(_0x10c5c8(0x16b));let _0x136022=0x0;for(const _0x20281c of _0x22cbe9['segments']){if(_0x20281c==='..'){if(_0x136022===0x0)throw new Error(_0x10c5c8(0x163));_0x136022--;}else _0x20281c!=='.'&&_0x136022++;}}}function a73_0x291c(_0x5434ac,_0x1e82d3){const _0x2a1d4a=a73_0x2a1d();return a73_0x291c=function(_0x291ce3,_0x1786cf){_0x291ce3=_0x291ce3-0x153;let _0x25bb01=_0x2a1d4a[_0x291ce3];return _0x25bb01;},a73_0x291c(_0x5434ac,_0x1e82d3);}export function joinPaths(_0x4ea564,_0x209974){const _0xeb4ead=a73_0x291c;if(!_0x4ea564||_0x4ea564==='/')return _0x209974;if(!_0x209974||_0x209974==='.')return _0x4ea564;if(_0x209974[_0xeb4ead(0x172)]('/'))return _0x209974;const _0x23003d=parsePath(_0x4ea564),_0x447624=parsePath(_0x209974),_0x1bb2aa=[..._0x23003d[_0xeb4ead(0x167)]];for(const _0x272690 of _0x447624[_0xeb4ead(0x167)]){if(_0x272690==='.')continue;else{if(_0x272690==='..'){if(_0x1bb2aa[_0xeb4ead(0x15e)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x1bb2aa[_0xeb4ead(0x15b)]();}else _0x1bb2aa[_0xeb4ead(0x158)](_0x272690);}}const _0x50c5f8=_0x1bb2aa[_0xeb4ead(0x171)]('/');return _0x23003d[_0xeb4ead(0x16f)]['startsWith']('/')?'/'+_0x50c5f8:_0x50c5f8;}export function normalizePath(_0x2ae544){const _0x3d77b0=a73_0x291c,_0x9e0226=parsePath(_0x2ae544),_0x1bb04c=[];for(const _0x1e3cd5 of _0x9e0226[_0x3d77b0(0x167)]){if(_0x1e3cd5==='.')continue;else{if(_0x1e3cd5==='..'){if(_0x1bb04c['length']===0x0){if(_0x9e0226[_0x3d77b0(0x159)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x1bb04c['push']('..');}else _0x1bb04c[_0x1bb04c[_0x3d77b0(0x15e)]-0x1]==='..'?_0x1bb04c[_0x3d77b0(0x158)]('..'):_0x1bb04c[_0x3d77b0(0x15b)]();}else _0x1bb04c[_0x3d77b0(0x158)](_0x1e3cd5);}}if(_0x1bb04c[_0x3d77b0(0x15e)]===0x0)return _0x9e0226[_0x3d77b0(0x159)]?'/':'.';const _0x1d56b0=_0x1bb04c[_0x3d77b0(0x171)]('/');return _0x9e0226[_0x3d77b0(0x16f)][_0x3d77b0(0x172)]('/')?'/'+_0x1d56b0:_0x1d56b0;}export function getParentPath(_0x2594c5){const _0x230310=a73_0x291c,_0x3f5196=parsePath(_0x2594c5);if(_0x3f5196['segments'][_0x230310(0x15e)]<=0x1)return'/';const _0x21e58f=_0x3f5196[_0x230310(0x167)]['slice'](0x0,-0x1)[_0x230310(0x171)]('/');return _0x3f5196[_0x230310(0x16f)][_0x230310(0x172)]('/')?'/'+_0x21e58f:_0x21e58f;}function a73_0x2a1d(){const _0x4cd999=['Relative\x20path\x20cannot\x20be\x20empty','pop','81QcFsTj','58344PrDPNX','length','Path\x20segment\x20cannot\x20be\x20empty','slice','347340WXpQdX','141070brUpFP','Path\x20attempts\x20to\x20navigate\x20above\x20root','56zbVoLk','Path\x20cannot\x20be\x20empty','169421XqAbJt','segments','164yGhOoQ','split','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','12374GdNfVB','filter','1223090mcmFht','raw','test','join','startsWith','Cannot\x20split\x20empty\x20path','64VmPoeJ','28668959KnGfdH','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','substring','push','isAbsolute'];a73_0x2a1d=function(){return _0x4cd999;};return a73_0x2a1d();}export function getBaseName(_0x346fea){const _0x2a672c=a73_0x291c,_0x1228c7=parsePath(_0x346fea);return _0x1228c7['segments'][_0x1228c7['segments'][_0x2a672c(0x15e)]-0x1]||'';}export function isChildPath(_0x2aed87,_0x71f647){const _0x31ed8f=a73_0x291c,_0x57f5b5=parsePath(_0x2aed87),_0x5d20eb=parsePath(_0x71f647);if(_0x57f5b5['segments'][_0x31ed8f(0x15e)]<=_0x5d20eb['segments'][_0x31ed8f(0x15e)])return![];for(let _0xb7a176=0x0;_0xb7a176<_0x5d20eb[_0x31ed8f(0x167)][_0x31ed8f(0x15e)];_0xb7a176++){if(_0x57f5b5[_0x31ed8f(0x167)][_0xb7a176]!==_0x5d20eb[_0x31ed8f(0x167)][_0xb7a176])return![];}return!![];}export function splitPath(_0x4b982f){const _0x29f88d=a73_0x291c,_0x1f409d=parsePath(_0x4b982f);if(_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x15e)]===0x0)throw new Error(_0x29f88d(0x153));if(_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x15e)]===0x1)return{'parent':_0x1f409d[_0x29f88d(0x167)][0x0]};return{'parent':_0x1f409d[_0x29f88d(0x167)][0x0],'child':_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x160)](0x1)['join']('/')};}
1
+ (function(_0x5b5af7,_0x8da9bc){const _0xe60fa=a73_0x209d,_0x357d2a=_0x5b5af7();while(!![]){try{const _0x1f4f45=-parseInt(_0xe60fa(0x8e))/0x1+-parseInt(_0xe60fa(0x94))/0x2+parseInt(_0xe60fa(0x84))/0x3*(parseInt(_0xe60fa(0x8d))/0x4)+-parseInt(_0xe60fa(0x8a))/0x5*(parseInt(_0xe60fa(0x93))/0x6)+-parseInt(_0xe60fa(0x90))/0x7*(-parseInt(_0xe60fa(0x8f))/0x8)+-parseInt(_0xe60fa(0x80))/0x9*(parseInt(_0xe60fa(0x7a))/0xa)+parseInt(_0xe60fa(0x7d))/0xb;if(_0x1f4f45===_0x8da9bc)break;else _0x357d2a['push'](_0x357d2a['shift']());}catch(_0x4dbaa5){_0x357d2a['push'](_0x357d2a['shift']());}}}(a73_0x4668,0x7f1b3));export function parsePath(_0x4e37a0){const _0x237a9f=a73_0x209d;if(!_0x4e37a0||_0x4e37a0[_0x237a9f(0x8c)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x376421=_0x4e37a0[_0x237a9f(0x8c)]();if(_0x376421==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x4e37a0};const _0x36e744=_0x376421[_0x237a9f(0x7b)]('/')?_0x376421[_0x237a9f(0x83)](0x1):_0x376421,_0x13c97a=_0x36e744[_0x237a9f(0x79)]('/')[_0x237a9f(0x82)](_0x25ae3b=>_0x25ae3b!=='');if(_0x13c97a[_0x237a9f(0x91)]===0x0)throw new Error(_0x237a9f(0x7f));const _0x449843=_0x376421[_0x237a9f(0x7b)]('/')||!isRelativePathSegment(_0x13c97a[0x0]);for(const _0x46cd36 of _0x13c97a){validatePathSegment(_0x46cd36);}return{'segments':_0x13c97a,'isAbsolute':_0x449843,'raw':_0x4e37a0};}function isRelativePathSegment(_0x2c294b){return _0x2c294b==='.'||_0x2c294b==='..';}function validatePathSegment(_0x4297d7){const _0x1bf91b=a73_0x209d;if(_0x4297d7==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x4297d7==='.'||_0x4297d7==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x4297d7))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x4297d7);if(_0x4297d7!==_0x4297d7[_0x1bf91b(0x8c)]()){}}export function validatePath(_0xde15f9){const _0xc768fa=a73_0x209d;if(_0xde15f9[_0xc768fa(0x89)][_0xc768fa(0x91)]===0x0&&!_0xde15f9['isAbsolute'])throw new Error(_0xc768fa(0x7c));if(_0xde15f9['isAbsolute']){if(_0xde15f9[_0xc768fa(0x89)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x59a064=0x0;for(const _0x2fb669 of _0xde15f9['segments']){if(_0x2fb669==='..'){if(_0x59a064===0x0)throw new Error(_0xc768fa(0x81));_0x59a064--;}else _0x2fb669!=='.'&&_0x59a064++;}}}function a73_0x4668(){const _0x122187=['192PcVNAw','124859SCIfam','length','Cannot\x20split\x20empty\x20path','6Qnvckm','401844SnTOPY','split','3604980hWwNif','startsWith','Relative\x20path\x20cannot\x20be\x20empty','31157852tSKMAo','raw','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','18HIlmvN','Path\x20attempts\x20to\x20navigate\x20above\x20root','filter','substring','30741QVyORM','join','isAbsolute','push','pop','segments','5159635jhPuJW','slice','trim','32OFPDlZ','868124tVqhXb'];a73_0x4668=function(){return _0x122187;};return a73_0x4668();}export function joinPaths(_0x16fcf2,_0x9ed15){const _0x2d2b97=a73_0x209d;if(!_0x16fcf2||_0x16fcf2==='/')return _0x9ed15;if(!_0x9ed15||_0x9ed15==='.')return _0x16fcf2;if(_0x9ed15[_0x2d2b97(0x7b)]('/'))return _0x9ed15;const _0x189ddf=parsePath(_0x16fcf2),_0x2a81a9=parsePath(_0x9ed15),_0x3cff7d=[..._0x189ddf[_0x2d2b97(0x89)]];for(const _0x435d79 of _0x2a81a9[_0x2d2b97(0x89)]){if(_0x435d79==='.')continue;else{if(_0x435d79==='..'){if(_0x3cff7d[_0x2d2b97(0x91)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x3cff7d[_0x2d2b97(0x88)]();}else _0x3cff7d['push'](_0x435d79);}}const _0x320383=_0x3cff7d['join']('/');return _0x189ddf['raw'][_0x2d2b97(0x7b)]('/')?'/'+_0x320383:_0x320383;}export function normalizePath(_0xc975e9){const _0x268ff6=a73_0x209d,_0x40ada6=parsePath(_0xc975e9),_0x37173c=[];for(const _0x1d5244 of _0x40ada6[_0x268ff6(0x89)]){if(_0x1d5244==='.')continue;else{if(_0x1d5244==='..'){if(_0x37173c[_0x268ff6(0x91)]===0x0){if(_0x40ada6[_0x268ff6(0x86)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x37173c['push']('..');}else _0x37173c[_0x37173c[_0x268ff6(0x91)]-0x1]==='..'?_0x37173c[_0x268ff6(0x87)]('..'):_0x37173c['pop']();}else _0x37173c[_0x268ff6(0x87)](_0x1d5244);}}if(_0x37173c['length']===0x0)return _0x40ada6[_0x268ff6(0x86)]?'/':'.';const _0xc972d1=_0x37173c[_0x268ff6(0x85)]('/');return _0x40ada6[_0x268ff6(0x7e)][_0x268ff6(0x7b)]('/')?'/'+_0xc972d1:_0xc972d1;}export function getParentPath(_0x1982a7){const _0x5e6015=a73_0x209d,_0x21aa9d=parsePath(_0x1982a7);if(_0x21aa9d['segments']['length']<=0x1)return'/';const _0x535a49=_0x21aa9d[_0x5e6015(0x89)][_0x5e6015(0x8b)](0x0,-0x1)[_0x5e6015(0x85)]('/');return _0x21aa9d['raw'][_0x5e6015(0x7b)]('/')?'/'+_0x535a49:_0x535a49;}export function getBaseName(_0xe1665c){const _0x5796a8=a73_0x209d,_0x15f937=parsePath(_0xe1665c);return _0x15f937[_0x5796a8(0x89)][_0x15f937[_0x5796a8(0x89)]['length']-0x1]||'';}function a73_0x209d(_0x5dfafa,_0x27722a){const _0x466834=a73_0x4668();return a73_0x209d=function(_0x209dd0,_0x2c0d49){_0x209dd0=_0x209dd0-0x79;let _0x589fa9=_0x466834[_0x209dd0];return _0x589fa9;},a73_0x209d(_0x5dfafa,_0x27722a);}export function isChildPath(_0x29d009,_0x2e85d0){const _0x333cca=a73_0x209d,_0x2119c4=parsePath(_0x29d009),_0x35281a=parsePath(_0x2e85d0);if(_0x2119c4[_0x333cca(0x89)][_0x333cca(0x91)]<=_0x35281a['segments'][_0x333cca(0x91)])return![];for(let _0x71300a=0x0;_0x71300a<_0x35281a[_0x333cca(0x89)][_0x333cca(0x91)];_0x71300a++){if(_0x2119c4[_0x333cca(0x89)][_0x71300a]!==_0x35281a['segments'][_0x71300a])return![];}return!![];}export function splitPath(_0xb5a0cb){const _0x215d5e=a73_0x209d,_0x4ffc78=parsePath(_0xb5a0cb);if(_0x4ffc78['segments'][_0x215d5e(0x91)]===0x0)throw new Error(_0x215d5e(0x92));if(_0x4ffc78[_0x215d5e(0x89)]['length']===0x1)return{'parent':_0x4ffc78[_0x215d5e(0x89)][0x0]};return{'parent':_0x4ffc78[_0x215d5e(0x89)][0x0],'child':_0x4ffc78[_0x215d5e(0x89)]['slice'](0x1)[_0x215d5e(0x85)]('/')};}
@@ -1 +1 @@
1
- (function(_0x3b879b,_0x1b06d7){const _0xf4c4a9=a74_0x54f7,_0x85072c=_0x3b879b();while(!![]){try{const _0x268e79=-parseInt(_0xf4c4a9(0x18a))/0x1*(-parseInt(_0xf4c4a9(0x18d))/0x2)+-parseInt(_0xf4c4a9(0x187))/0x3+parseInt(_0xf4c4a9(0x18f))/0x4*(parseInt(_0xf4c4a9(0x188))/0x5)+parseInt(_0xf4c4a9(0x193))/0x6+-parseInt(_0xf4c4a9(0x186))/0x7+-parseInt(_0xf4c4a9(0x18b))/0x8+-parseInt(_0xf4c4a9(0x18e))/0x9*(parseInt(_0xf4c4a9(0x189))/0xa);if(_0x268e79===_0x1b06d7)break;else _0x85072c['push'](_0x85072c['shift']());}catch(_0x68d79a){_0x85072c['push'](_0x85072c['shift']());}}}(a74_0xc1a6,0x99b37));function a74_0x54f7(_0x2dd3bd,_0x5ed58e){const _0xc1a622=a74_0xc1a6();return a74_0x54f7=function(_0x54f78b,_0x4dc9fb){_0x54f78b=_0x54f78b-0x186;let _0x2948d5=_0xc1a622[_0x54f78b];return _0x2948d5;},a74_0x54f7(_0x2dd3bd,_0x5ed58e);}export function parseSegmentRef(_0x580feb){const _0x1d0c9e=a74_0x54f7,_0x1418b3=_0x580feb[_0x1d0c9e(0x18c)]('/');if(_0x1418b3===-0x1)return{'parentId':_0x580feb};if(_0x1418b3===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x580feb+_0x1d0c9e(0x191));const _0x367e5a=_0x580feb[_0x1d0c9e(0x192)](0x0,_0x1418b3),_0x5a2942=_0x580feb['substring'](_0x1418b3+0x1);if(_0x5a2942==='')throw new Error(_0x1d0c9e(0x190)+_0x580feb+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x367e5a,'childId':_0x5a2942};}function a74_0xc1a6(){const _0x397948=['13865oyJDgO','40DksHfq','9493ogHRQR','8167704EfQWhS','indexOf','138YzCWiP','45855FzQFep','916eAzBDl','Invalid\x20segment\x20reference\x20format:\x20','.\x20Parent\x20name\x20cannot\x20be\x20empty','substring','6547128AkOGdM','2880360regavO','896520LqxMcP'];a74_0xc1a6=function(){return _0x397948;};return a74_0xc1a6();}
1
+ function a74_0x1f33(_0x4df71e,_0x11c9a7){const _0x108f5c=a74_0x108f();return a74_0x1f33=function(_0x1f33b7,_0x139c9e){_0x1f33b7=_0x1f33b7-0x8f;let _0x3c2080=_0x108f5c[_0x1f33b7];return _0x3c2080;},a74_0x1f33(_0x4df71e,_0x11c9a7);}(function(_0x583e82,_0x473375){const _0xc26097=a74_0x1f33,_0x36c11e=_0x583e82();while(!![]){try{const _0x46438e=-parseInt(_0xc26097(0x90))/0x1*(parseInt(_0xc26097(0x99))/0x2)+parseInt(_0xc26097(0x93))/0x3*(parseInt(_0xc26097(0x97))/0x4)+parseInt(_0xc26097(0x98))/0x5+-parseInt(_0xc26097(0x9c))/0x6*(-parseInt(_0xc26097(0x9b))/0x7)+-parseInt(_0xc26097(0x96))/0x8+-parseInt(_0xc26097(0x92))/0x9+parseInt(_0xc26097(0x95))/0xa*(parseInt(_0xc26097(0x91))/0xb);if(_0x46438e===_0x473375)break;else _0x36c11e['push'](_0x36c11e['shift']());}catch(_0x4f0883){_0x36c11e['push'](_0x36c11e['shift']());}}}(a74_0x108f,0xcc215));export function parseSegmentRef(_0x94769b){const _0x5760ea=a74_0x1f33,_0x5ee53e=_0x94769b[_0x5760ea(0x94)]('/');if(_0x5ee53e===-0x1)return{'parentId':_0x94769b};if(_0x5ee53e===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x94769b+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x4b6162=_0x94769b[_0x5760ea(0x9a)](0x0,_0x5ee53e),_0x23d26f=_0x94769b[_0x5760ea(0x9a)](_0x5ee53e+0x1);if(_0x23d26f==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x94769b+_0x5760ea(0x8f));return{'parentId':_0x4b6162,'childId':_0x23d26f};}function a74_0x108f(){const _0x511fbe=['84KxyHOD','771384oMvAvU','.\x20Child\x20name\x20cannot\x20be\x20empty','8xNFczy','2853983gxOSMo','13999374yvkaLP','189vUnJyU','indexOf','30SsAFLP','11911184lOMzOy','61868BPUeIx','4334085smCyVH','70466MnNFDm','substring'];a74_0x108f=function(){return _0x511fbe;};return a74_0x108f();}
@@ -1 +1 @@
1
- (function(_0x28d5cc,_0x40a9c6){const _0x3be618=a75_0xbdaf,_0x2f0658=_0x28d5cc();while(!![]){try{const _0x89dd2=parseInt(_0x3be618(0x69))/0x1+-parseInt(_0x3be618(0x7c))/0x2*(-parseInt(_0x3be618(0x65))/0x3)+parseInt(_0x3be618(0x76))/0x4*(parseInt(_0x3be618(0x78))/0x5)+parseInt(_0x3be618(0x79))/0x6+parseInt(_0x3be618(0x72))/0x7+parseInt(_0x3be618(0x68))/0x8*(-parseInt(_0x3be618(0x71))/0x9)+-parseInt(_0x3be618(0x6e))/0xa;if(_0x89dd2===_0x40a9c6)break;else _0x2f0658['push'](_0x2f0658['shift']());}catch(_0x3798df){_0x2f0658['push'](_0x2f0658['shift']());}}}(a75_0x6e75,0xeaf81));function a75_0xbdaf(_0x44fc2e,_0x3e22e4){const _0x6e758c=a75_0x6e75();return a75_0xbdaf=function(_0xbdaf45,_0x20e374){_0xbdaf45=_0xbdaf45-0x65;let _0x19cbbc=_0x6e758c[_0xbdaf45];return _0x19cbbc;},a75_0xbdaf(_0x44fc2e,_0x3e22e4);}import a75_0x240c2b from'ora';export function createCommandSpinner(_0x25ffef,_0x5761db={}){const _0x5325fd=a75_0xbdaf,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5761db;return a75_0x240c2b({'text':_0x25ffef,'color':'cyan','isEnabled':forceEnabled||process[_0x5325fd(0x7b)][_0x5325fd(0x6b)]&&!verbose});}function a75_0x6e75(){const _0x155135=['phase','isTTY','clock','floor','15118380VxRWFC','text','...','27AWpvJD','7516418rVNnBO','start','\x20[Job\x20ID:\x20','now','4QrjQkV','jobId','4367690wPUwPi','2390160QseYmg','extra','stdout','2gMdKPo','1891035LRhGgM','stop','isSpinning','1897904mhwvRb','209968kTiKdK'];a75_0x6e75=function(){return _0x155135;};return a75_0x6e75();}export async function withSpinner(_0x3941ab,_0x358c88,_0x4d1f75={}){const _0x5dc16f=a75_0xbdaf,_0x5ceca3=_0x4d1f75[_0x5dc16f(0x6c)]??(()=>Date['now']()),_0x3aeb05=createCommandSpinner(_0x3941ab,_0x4d1f75);_0x3aeb05['start']();const _0x443feb=_0x5ceca3();try{const _0x1436a1=await _0x358c88(),_0x540b99=_0x5ceca3()-_0x443feb;return _0x3aeb05[_0x5dc16f(0x66)](),{'data':_0x1436a1,'elapsedMs':_0x540b99};}catch(_0x10c89c){_0x3aeb05[_0x5dc16f(0x66)]();throw _0x10c89c;}}export async function withQuerySpinner(_0x3c623e,_0x3139b7,_0x1a9aca={}){const _0x12a7e1=a75_0xbdaf,_0xb4d8e9=_0x1a9aca[_0x12a7e1(0x6c)]??(()=>Date[_0x12a7e1(0x75)]()),_0x1a2938=_0x1a9aca['intervalFactory']??setInterval,_0x111e0=createCommandSpinner(_0x3c623e,_0x1a9aca);_0x111e0[_0x12a7e1(0x73)]();const _0xf65ea8=_0xb4d8e9(),_0x365aab=_0x3c623e['replace'](_0x12a7e1(0x70),''),_0x1129a4={},_0x1b76c9=()=>{const _0x413a41=_0x12a7e1;if(!_0x111e0[_0x413a41(0x67)])return;const _0x504b34=_0xb4d8e9()-_0xf65ea8,_0x44f14c=formatElapsed(_0x504b34),_0x5b466e=_0x1129a4[_0x413a41(0x6a)]??_0x365aab,_0x3ab660=_0x1129a4[_0x413a41(0x77)]?_0x413a41(0x74)+_0x1129a4[_0x413a41(0x77)]+']':'',_0xa8e139=_0x1129a4[_0x413a41(0x7a)]?'\x20'+_0x1129a4[_0x413a41(0x7a)]:'';_0x111e0[_0x413a41(0x6f)]=_0x5b466e+'\x20'+_0x44f14c+_0xa8e139+_0x3ab660;},_0x33398f=_0x1a2938(()=>{_0x1b76c9();},0x3e8),_0x1bfecc={'setPhase':_0x14395d=>{const _0x396abf=_0x12a7e1;_0x1129a4[_0x396abf(0x6a)]=_0x14395d,_0x1b76c9();},'setJobId':_0x5da096=>{_0x1129a4['jobId']=_0x5da096,_0x1b76c9();},'setExtra':_0x4d864e=>{const _0x24bb6e=_0x12a7e1;_0x1129a4[_0x24bb6e(0x7a)]=_0x4d864e,_0x1b76c9();}};_0x1b76c9();try{const _0x1cf208=await _0x3139b7(_0x1bfecc),_0x1abefd=_0xb4d8e9()-_0xf65ea8;return{'data':_0x1cf208,'elapsedMs':_0x1abefd};}finally{clearInterval(_0x33398f),_0x111e0[_0x12a7e1(0x66)]();}}export function formatElapsed(_0x3704fe){const _0x52fcb6=a75_0xbdaf,_0x40429a=Math[_0x52fcb6(0x6d)](_0x3704fe/0x3e8);if(_0x40429a<0x3c)return(_0x3704fe/0x3e8)['toFixed'](0x1)+'s';const _0x448fdb=Math['floor'](_0x40429a/0x3c),_0x398919=_0x40429a%0x3c;if(_0x448fdb<0x3c)return _0x448fdb+'m\x20'+_0x398919+'s';const _0x2cfb71=Math['floor'](_0x448fdb/0x3c),_0x4f5bef=_0x448fdb%0x3c;return _0x2cfb71+'h\x20'+_0x4f5bef+'m';}
1
+ (function(_0x555d46,_0x476c17){const _0x32a5e0=a75_0x3a7d,_0xe0392=_0x555d46();while(!![]){try{const _0x3ae174=parseInt(_0x32a5e0(0x16b))/0x1+parseInt(_0x32a5e0(0x16f))/0x2+-parseInt(_0x32a5e0(0x17a))/0x3+parseInt(_0x32a5e0(0x174))/0x4+parseInt(_0x32a5e0(0x176))/0x5+-parseInt(_0x32a5e0(0x173))/0x6*(-parseInt(_0x32a5e0(0x169))/0x7)+-parseInt(_0x32a5e0(0x16c))/0x8;if(_0x3ae174===_0x476c17)break;else _0xe0392['push'](_0xe0392['shift']());}catch(_0x548a37){_0xe0392['push'](_0xe0392['shift']());}}}(a75_0x1c76,0x4d0f1));function a75_0x3a7d(_0x72af04,_0x261951){const _0x1c7698=a75_0x1c76();return a75_0x3a7d=function(_0x3a7dc1,_0x293e94){_0x3a7dc1=_0x3a7dc1-0x166;let _0x2cd73d=_0x1c7698[_0x3a7dc1];return _0x2cd73d;},a75_0x3a7d(_0x72af04,_0x261951);}import a75_0x52ea9c from'ora';function a75_0x1c76(){const _0x275a7f=['609098hqdFIQ','jobId','toFixed','text','30oIUDga','1715800TgfYwc','start','259840NbUcWN','phase','isTTY','floor','1163547oosCoW','stop','replace','cyan','isSpinning','stdout','712033ZgrYST','clock','335842xWYOYF','7411376VzDiJT','intervalFactory','now'];a75_0x1c76=function(){return _0x275a7f;};return a75_0x1c76();}export function createCommandSpinner(_0x1f4184,_0x18ce9d={}){const _0x501e94=a75_0x3a7d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x18ce9d;return a75_0x52ea9c({'text':_0x1f4184,'color':_0x501e94(0x166),'isEnabled':forceEnabled||process[_0x501e94(0x168)][_0x501e94(0x178)]&&!verbose});}export async function withSpinner(_0x55bb5d,_0x18a496,_0xfaf4d4={}){const _0x487798=a75_0x3a7d,_0xf3cdd7=_0xfaf4d4['clock']??(()=>Date[_0x487798(0x16e)]()),_0x20ab9b=createCommandSpinner(_0x55bb5d,_0xfaf4d4);_0x20ab9b[_0x487798(0x175)]();const _0x4b00a2=_0xf3cdd7();try{const _0x4f143b=await _0x18a496(),_0x1b04b0=_0xf3cdd7()-_0x4b00a2;return _0x20ab9b[_0x487798(0x17b)](),{'data':_0x4f143b,'elapsedMs':_0x1b04b0};}catch(_0x2255a8){_0x20ab9b[_0x487798(0x17b)]();throw _0x2255a8;}}export async function withQuerySpinner(_0x8369d4,_0x53a6b8,_0x26ee86={}){const _0x115e4e=a75_0x3a7d,_0x2da331=_0x26ee86[_0x115e4e(0x16a)]??(()=>Date[_0x115e4e(0x16e)]()),_0x925499=_0x26ee86[_0x115e4e(0x16d)]??setInterval,_0xd4adbd=createCommandSpinner(_0x8369d4,_0x26ee86);_0xd4adbd['start']();const _0xc376d5=_0x2da331(),_0x1f1e67=_0x8369d4[_0x115e4e(0x17c)]('...',''),_0xc7724f={},_0x135788=()=>{const _0x41608f=_0x115e4e;if(!_0xd4adbd[_0x41608f(0x167)])return;const _0x532705=_0x2da331()-_0xc376d5,_0x3149c2=formatElapsed(_0x532705),_0x108daa=_0xc7724f[_0x41608f(0x177)]??_0x1f1e67,_0x269f4c=_0xc7724f['jobId']?'\x20[Job\x20ID:\x20'+_0xc7724f[_0x41608f(0x170)]+']':'',_0x328016=_0xc7724f['extra']?'\x20'+_0xc7724f['extra']:'';_0xd4adbd[_0x41608f(0x172)]=_0x108daa+'\x20'+_0x3149c2+_0x328016+_0x269f4c;},_0x48b7da=_0x925499(()=>{_0x135788();},0x3e8),_0x32014f={'setPhase':_0x47b0d9=>{const _0x29deb2=_0x115e4e;_0xc7724f[_0x29deb2(0x177)]=_0x47b0d9,_0x135788();},'setJobId':_0x5c5f02=>{const _0x1c40af=_0x115e4e;_0xc7724f[_0x1c40af(0x170)]=_0x5c5f02,_0x135788();},'setExtra':_0x2e8c9f=>{_0xc7724f['extra']=_0x2e8c9f,_0x135788();}};_0x135788();try{const _0x8856ca=await _0x53a6b8(_0x32014f),_0x185e77=_0x2da331()-_0xc376d5;return{'data':_0x8856ca,'elapsedMs':_0x185e77};}finally{clearInterval(_0x48b7da),_0xd4adbd['stop']();}}export function formatElapsed(_0x18517d){const _0x331707=a75_0x3a7d,_0xcf5ffe=Math[_0x331707(0x179)](_0x18517d/0x3e8);if(_0xcf5ffe<0x3c)return(_0x18517d/0x3e8)[_0x331707(0x171)](0x1)+'s';const _0x583bdb=Math[_0x331707(0x179)](_0xcf5ffe/0x3c),_0x18bb47=_0xcf5ffe%0x3c;if(_0x583bdb<0x3c)return _0x583bdb+'m\x20'+_0x18bb47+'s';const _0x4c6600=Math[_0x331707(0x179)](_0x583bdb/0x3c),_0x5dae60=_0x583bdb%0x3c;return _0x4c6600+'h\x20'+_0x5dae60+'m';}
@@ -1 +1 @@
1
- (function(_0x52c632,_0x4e898f){const _0x24f267=a76_0x2c9c,_0x293264=_0x52c632();while(!![]){try{const _0x412f35=-parseInt(_0x24f267(0x13a))/0x1*(-parseInt(_0x24f267(0x136))/0x2)+-parseInt(_0x24f267(0x145))/0x3+-parseInt(_0x24f267(0x140))/0x4+parseInt(_0x24f267(0x146))/0x5*(-parseInt(_0x24f267(0x131))/0x6)+-parseInt(_0x24f267(0x141))/0x7*(parseInt(_0x24f267(0x138))/0x8)+-parseInt(_0x24f267(0x144))/0x9*(parseInt(_0x24f267(0x135))/0xa)+-parseInt(_0x24f267(0x137))/0xb*(-parseInt(_0x24f267(0x133))/0xc);if(_0x412f35===_0x4e898f)break;else _0x293264['push'](_0x293264['shift']());}catch(_0x1a4b0f){_0x293264['push'](_0x293264['shift']());}}}(a76_0x5bfc,0x507d6));import{readFileSync}from'fs';export function stripSqlComments(_0x26ba60){const _0x266b28=a76_0x2c9c;let _0x5add19=_0x26ba60[_0x266b28(0x139)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5add19=_0x5add19[_0x266b28(0x139)](/--.*$/gm,''),_0x5add19[_0x266b28(0x13c)]();}function isEscaped(_0x3a1b26,_0x3b277e){let _0x2966bf=0x0;for(let _0x27255b=_0x3b277e-0x1;_0x27255b>=0x0&&_0x3a1b26[_0x27255b]==='\x5c';_0x27255b--){_0x2966bf++;}return _0x2966bf%0x2===0x1;}export function splitSqlStatements(_0x2aa4e4){const _0x459008=a76_0x2c9c,_0x41de76=stripSqlComments(_0x2aa4e4);if(!_0x41de76)throw new Error(_0x459008(0x143));const _0xb97a5b=[];let _0x2685bb='',_0x1494c2=![],_0x2aed84=![],_0xdc8826=![];for(let _0x5dbcd2=0x0;_0x5dbcd2<_0x2aa4e4['length'];_0x5dbcd2++){const _0x464a14=_0x2aa4e4[_0x5dbcd2];if(_0x464a14==='\x27'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x2aed84&&!_0xdc8826)_0x1494c2=!_0x1494c2;else{if(_0x464a14==='\x22'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x1494c2&&!_0xdc8826)_0x2aed84=!_0x2aed84;else _0x464a14==='`'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x1494c2&&!_0x2aed84&&(_0xdc8826=!_0xdc8826);}if(_0x464a14===';'&&!_0x1494c2&&!_0x2aed84&&!_0xdc8826){const _0x364494=_0x2685bb[_0x459008(0x13c)]();_0x364494&&_0xb97a5b[_0x459008(0x147)](_0x364494),_0x2685bb='';}else _0x2685bb+=_0x464a14;}const _0x35c80e=_0x2685bb[_0x459008(0x13c)]();_0x35c80e&&_0xb97a5b[_0x459008(0x147)](_0x35c80e);const _0x4582b6=_0xb97a5b['map'](_0x4c4399=>_0x4c4399[_0x459008(0x13c)]())[_0x459008(0x13b)](_0x57e6d4=>{const _0x463ed7=_0x459008,_0x3f639e=stripSqlComments(_0x57e6d4);return _0x3f639e[_0x463ed7(0x13e)]>0x0;});if(_0x4582b6['length']===0x0)throw new Error(_0x459008(0x143));return _0x4582b6;}export function readFileContent(_0x44007e){const _0x1773df=a76_0x2c9c;try{return readFileSync(_0x44007e,_0x1773df(0x13f));}catch(_0x52d722){const _0x4efd6e=_0x52d722['code'];if(_0x4efd6e===_0x1773df(0x130))throw new Error(_0x1773df(0x132)+_0x44007e+'\x27\x20not\x20found');else{if(_0x4efd6e===_0x1773df(0x142))throw new Error(_0x1773df(0x134)+_0x44007e+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x44007e+'\x27:\x20'+_0x52d722['message']);}}}export function readSqlStatementsFromFile(_0x481c12){const _0x25f701=a76_0x2c9c,_0x349e84=readFileContent(_0x481c12);try{return splitSqlStatements(_0x349e84);}catch(_0xf1e090){throw new Error(_0x25f701(0x132)+_0x481c12+'\x27\x20'+_0xf1e090['message'][_0x25f701(0x13d)]());}}function a76_0x2c9c(_0x107978,_0x457b1c){const _0x5bfc63=a76_0x5bfc();return a76_0x2c9c=function(_0x2c9c8d,_0x2961df){_0x2c9c8d=_0x2c9c8d-0x130;let _0x12c829=_0x5bfc63[_0x2c9c8d];return _0x12c829;},a76_0x2c9c(_0x107978,_0x457b1c);}function a76_0x5bfc(){const _0x16431a=['452PByBLX','filter','trim','toLowerCase','length','utf-8','1572928aGHVdb','560cDmBDd','EACCES','Content\x20contains\x20no\x20SQL\x20statements','9uVRzXh','610398UhQSVE','14365fxFkoa','push','ENOENT','1002dmsKDK','File\x20\x27','1056TMnqWc','Permission\x20denied\x20reading\x20file\x20\x27','6150050iChkeS','2198aiszMH','248644zEKjPJ','46472owqNzA','replace'];a76_0x5bfc=function(){return _0x16431a;};return a76_0x5bfc();}
1
+ (function(_0x23112c,_0x13740f){const _0x2fb97f=a76_0x5043,_0x5432aa=_0x23112c();while(!![]){try{const _0x1b726b=-parseInt(_0x2fb97f(0x15f))/0x1*(parseInt(_0x2fb97f(0x166))/0x2)+-parseInt(_0x2fb97f(0x162))/0x3+parseInt(_0x2fb97f(0x158))/0x4+-parseInt(_0x2fb97f(0x169))/0x5+parseInt(_0x2fb97f(0x167))/0x6+parseInt(_0x2fb97f(0x168))/0x7*(parseInt(_0x2fb97f(0x15c))/0x8)+parseInt(_0x2fb97f(0x164))/0x9;if(_0x1b726b===_0x13740f)break;else _0x5432aa['push'](_0x5432aa['shift']());}catch(_0x5294b5){_0x5432aa['push'](_0x5432aa['shift']());}}}(a76_0x30ae,0xed38e));import{readFileSync}from'fs';function a76_0x30ae(){const _0x2160fb=['code','4503864uZGcyd','filter','22237470tvFVkA','\x27\x20not\x20found','562DhVizL','1396614CLtqod','764813sbdqgn','5295080SyZZSJ','trim','File\x20\x27','length','message','utf-8','3319364LlDAxa','Content\x20contains\x20no\x20SQL\x20statements','toLowerCase','push','56hcXUEb','replace','map','2727pVRFCD','Error\x20reading\x20file\x20\x27'];a76_0x30ae=function(){return _0x2160fb;};return a76_0x30ae();}export function stripSqlComments(_0x5a7a93){const _0x376491=a76_0x5043;let _0x3b19f8=_0x5a7a93[_0x376491(0x15d)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3b19f8=_0x3b19f8[_0x376491(0x15d)](/--.*$/gm,''),_0x3b19f8[_0x376491(0x16a)]();}function a76_0x5043(_0x196978,_0x2cfa1e){const _0x30ae19=a76_0x30ae();return a76_0x5043=function(_0x5043cc,_0x1a86b7){_0x5043cc=_0x5043cc-0x158;let _0x49097f=_0x30ae19[_0x5043cc];return _0x49097f;},a76_0x5043(_0x196978,_0x2cfa1e);}function isEscaped(_0x19cc36,_0x31807f){let _0x5eb118=0x0;for(let _0x12e464=_0x31807f-0x1;_0x12e464>=0x0&&_0x19cc36[_0x12e464]==='\x5c';_0x12e464--){_0x5eb118++;}return _0x5eb118%0x2===0x1;}export function splitSqlStatements(_0x1f9b1a){const _0xd842a4=a76_0x5043,_0x2ce210=stripSqlComments(_0x1f9b1a);if(!_0x2ce210)throw new Error(_0xd842a4(0x159));const _0x46d155=[];let _0x6ff160='',_0x5b9ea8=![],_0x25cbfd=![],_0x2a8007=![];for(let _0x31fd95=0x0;_0x31fd95<_0x1f9b1a['length'];_0x31fd95++){const _0x393f23=_0x1f9b1a[_0x31fd95];if(_0x393f23==='\x27'&&!isEscaped(_0x1f9b1a,_0x31fd95)&&!_0x25cbfd&&!_0x2a8007)_0x5b9ea8=!_0x5b9ea8;else{if(_0x393f23==='\x22'&&!isEscaped(_0x1f9b1a,_0x31fd95)&&!_0x5b9ea8&&!_0x2a8007)_0x25cbfd=!_0x25cbfd;else _0x393f23==='`'&&!isEscaped(_0x1f9b1a,_0x31fd95)&&!_0x5b9ea8&&!_0x25cbfd&&(_0x2a8007=!_0x2a8007);}if(_0x393f23===';'&&!_0x5b9ea8&&!_0x25cbfd&&!_0x2a8007){const _0x27dc10=_0x6ff160['trim']();_0x27dc10&&_0x46d155[_0xd842a4(0x15b)](_0x27dc10),_0x6ff160='';}else _0x6ff160+=_0x393f23;}const _0x4549be=_0x6ff160[_0xd842a4(0x16a)]();_0x4549be&&_0x46d155[_0xd842a4(0x15b)](_0x4549be);const _0x3ec308=_0x46d155[_0xd842a4(0x15e)](_0x3745cd=>_0x3745cd[_0xd842a4(0x16a)]())[_0xd842a4(0x163)](_0x31fdd5=>{const _0x519099=_0xd842a4,_0x2b8a4b=stripSqlComments(_0x31fdd5);return _0x2b8a4b[_0x519099(0x16c)]>0x0;});if(_0x3ec308[_0xd842a4(0x16c)]===0x0)throw new Error(_0xd842a4(0x159));return _0x3ec308;}export function readFileContent(_0x20991a){const _0x35c5b3=a76_0x5043;try{return readFileSync(_0x20991a,_0x35c5b3(0x16e));}catch(_0x1130f6){const _0x3af4b0=_0x1130f6[_0x35c5b3(0x161)];if(_0x3af4b0==='ENOENT')throw new Error('File\x20\x27'+_0x20991a+_0x35c5b3(0x165));else{if(_0x3af4b0==='EACCES')throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x20991a+'\x27');else throw new Error(_0x35c5b3(0x160)+_0x20991a+'\x27:\x20'+_0x1130f6[_0x35c5b3(0x16d)]);}}}export function readSqlStatementsFromFile(_0x3a76f4){const _0x2a76a5=a76_0x5043,_0x2295f7=readFileContent(_0x3a76f4);try{return splitSqlStatements(_0x2295f7);}catch(_0xbf3695){throw new Error(_0x2a76a5(0x16b)+_0x3a76f4+'\x27\x20'+_0xbf3695[_0x2a76a5(0x16d)][_0x2a76a5(0x15a)]());}}
@@ -1 +1 @@
1
- (function(_0xed512b,_0x37b51f){const _0x3c2c98=a77_0x574e,_0x47919b=_0xed512b();while(!![]){try{const _0x262f83=parseInt(_0x3c2c98(0xd1))/0x1+-parseInt(_0x3c2c98(0xdc))/0x2*(-parseInt(_0x3c2c98(0xd0))/0x3)+-parseInt(_0x3c2c98(0xcf))/0x4+parseInt(_0x3c2c98(0xdb))/0x5*(parseInt(_0x3c2c98(0xd9))/0x6)+-parseInt(_0x3c2c98(0xc9))/0x7+parseInt(_0x3c2c98(0xd5))/0x8+-parseInt(_0x3c2c98(0xda))/0x9;if(_0x262f83===_0x37b51f)break;else _0x47919b['push'](_0x47919b['shift']());}catch(_0x4d6402){_0x47919b['push'](_0x47919b['shift']());}}}(a77_0x2df3,0x670b0));export async function*parseSSEStream(_0x5f0493){const _0x5c756b=a77_0x574e;if(!_0x5f0493['body'])throw new Error(_0x5c756b(0xd3));const _0x5afe79=_0x5f0493['body'][_0x5c756b(0xd7)](),_0x38582e=new TextDecoder();let _0x2e433c='',_0x358d4b={};try{while(!![]){const {done:_0x56efe0,value:_0x254c88}=await _0x5afe79['read']();if(_0x56efe0){_0x358d4b[_0x5c756b(0xce)]&&(yield parseSSEData(_0x358d4b[_0x5c756b(0xce)]));break;}_0x2e433c+=_0x38582e['decode'](_0x254c88,{'stream':!![]});const _0x3724cc=_0x2e433c[_0x5c756b(0xd8)]('\x0a');_0x2e433c=_0x3724cc[_0x5c756b(0xdd)]()||'';for(const _0x4e5f63 of _0x3724cc){if(_0x4e5f63['trim']()===''){_0x358d4b['data']&&(yield parseSSEData(_0x358d4b[_0x5c756b(0xce)]),_0x358d4b={});continue;}if(_0x4e5f63[_0x5c756b(0xca)](':'))continue;const _0xc7304d=_0x4e5f63[_0x5c756b(0xd4)](':');if(_0xc7304d===-0x1)continue;const _0x3b1890=_0x4e5f63[_0x5c756b(0xcc)](0x0,_0xc7304d);let _0x23a815=_0x4e5f63[_0x5c756b(0xcc)](_0xc7304d+0x1);_0x23a815['startsWith']('\x20')&&(_0x23a815=_0x23a815['slice'](0x1));switch(_0x3b1890){case _0x5c756b(0xd2):_0x358d4b[_0x5c756b(0xd2)]=_0x23a815;break;case _0x5c756b(0xce):_0x358d4b[_0x5c756b(0xce)]=_0x358d4b[_0x5c756b(0xce)]?_0x358d4b[_0x5c756b(0xce)]+'\x0a'+_0x23a815:_0x23a815;break;case'id':_0x358d4b['id']=_0x23a815;break;}}}}finally{_0x5afe79[_0x5c756b(0xcd)]();}}function a77_0x2df3(){const _0x5f81d3=['getReader','split','2479140VATHAW','13223187MVoKzh','10uFcBQZ','4zRXGbq','pop','493311zmGNWJ','startsWith','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','slice','releaseLock','data','203332LscEHg','636117EipMjc','41597KpIOae','event','Response\x20body\x20is\x20null','indexOf','5764464CntUwv','parse'];a77_0x2df3=function(){return _0x5f81d3;};return a77_0x2df3();}function a77_0x574e(_0x2ce473,_0x4c4746){const _0x2df30e=a77_0x2df3();return a77_0x574e=function(_0x574e90,_0x35f4ce){_0x574e90=_0x574e90-0xc9;let _0x1aa03f=_0x2df30e[_0x574e90];return _0x1aa03f;},a77_0x574e(_0x2ce473,_0x4c4746);}function parseSSEData(_0x33e120){const _0x5c4ad7=a77_0x574e;try{return JSON[_0x5c4ad7(0xd6)](_0x33e120);}catch(_0x3e1fa7){throw new Error(_0x5c4ad7(0xcb)+_0x33e120,{'cause':_0x3e1fa7});}}
1
+ (function(_0xd78f3d,_0x15faac){const _0x1d2689=a77_0x57cb,_0x19cc04=_0xd78f3d();while(!![]){try{const _0x57c15f=-parseInt(_0x1d2689(0xa2))/0x1*(-parseInt(_0x1d2689(0x98))/0x2)+parseInt(_0x1d2689(0xac))/0x3*(-parseInt(_0x1d2689(0x97))/0x4)+parseInt(_0x1d2689(0xa5))/0x5*(parseInt(_0x1d2689(0xa7))/0x6)+-parseInt(_0x1d2689(0xa3))/0x7+-parseInt(_0x1d2689(0xab))/0x8*(-parseInt(_0x1d2689(0x9a))/0x9)+-parseInt(_0x1d2689(0x96))/0xa+parseInt(_0x1d2689(0xa4))/0xb*(-parseInt(_0x1d2689(0x9d))/0xc);if(_0x57c15f===_0x15faac)break;else _0x19cc04['push'](_0x19cc04['shift']());}catch(_0x6d5c8e){_0x19cc04['push'](_0x19cc04['shift']());}}}(a77_0x8ec2,0x21e19));function a77_0x8ec2(){const _0xfbf51b=['startsWith','6OWHJjq','pop','event','split','6536uRjXFR','387DclVqI','body','1867410dbDbyO','3124ZSHBXN','2VIRkhF','data','1791HPaeLF','indexOf','trim','336uwrgdr','slice','getReader','releaseLock','parse','235173Mhayim','44534BOdCkC','1815JshgaN','197465AQkBgz'];a77_0x8ec2=function(){return _0xfbf51b;};return a77_0x8ec2();}function a77_0x57cb(_0x29c5a2,_0x47369c){const _0x8ec2a5=a77_0x8ec2();return a77_0x57cb=function(_0x57cb38,_0xf3de56){_0x57cb38=_0x57cb38-0x96;let _0x6ecc95=_0x8ec2a5[_0x57cb38];return _0x6ecc95;},a77_0x57cb(_0x29c5a2,_0x47369c);}export async function*parseSSEStream(_0x6225ef){const _0x4e2bdf=a77_0x57cb;if(!_0x6225ef[_0x4e2bdf(0xad)])throw new Error('Response\x20body\x20is\x20null');const _0x2ec2e5=_0x6225ef[_0x4e2bdf(0xad)][_0x4e2bdf(0x9f)](),_0x1b8be4=new TextDecoder();let _0x565683='',_0x35d74b={};try{while(!![]){const {done:_0x342c28,value:_0x15c34a}=await _0x2ec2e5['read']();if(_0x342c28){_0x35d74b[_0x4e2bdf(0x99)]&&(yield parseSSEData(_0x35d74b[_0x4e2bdf(0x99)]));break;}_0x565683+=_0x1b8be4['decode'](_0x15c34a,{'stream':!![]});const _0x46eda5=_0x565683[_0x4e2bdf(0xaa)]('\x0a');_0x565683=_0x46eda5[_0x4e2bdf(0xa8)]()||'';for(const _0xd555fd of _0x46eda5){if(_0xd555fd[_0x4e2bdf(0x9c)]()===''){_0x35d74b[_0x4e2bdf(0x99)]&&(yield parseSSEData(_0x35d74b[_0x4e2bdf(0x99)]),_0x35d74b={});continue;}if(_0xd555fd[_0x4e2bdf(0xa6)](':'))continue;const _0x13976c=_0xd555fd[_0x4e2bdf(0x9b)](':');if(_0x13976c===-0x1)continue;const _0x547d50=_0xd555fd['slice'](0x0,_0x13976c);let _0x39299d=_0xd555fd[_0x4e2bdf(0x9e)](_0x13976c+0x1);_0x39299d[_0x4e2bdf(0xa6)]('\x20')&&(_0x39299d=_0x39299d[_0x4e2bdf(0x9e)](0x1));switch(_0x547d50){case _0x4e2bdf(0xa9):_0x35d74b[_0x4e2bdf(0xa9)]=_0x39299d;break;case'data':_0x35d74b[_0x4e2bdf(0x99)]=_0x35d74b[_0x4e2bdf(0x99)]?_0x35d74b[_0x4e2bdf(0x99)]+'\x0a'+_0x39299d:_0x39299d;break;case'id':_0x35d74b['id']=_0x39299d;break;}}}}finally{_0x2ec2e5[_0x4e2bdf(0xa0)]();}}function parseSSEData(_0x1032d6){const _0x399413=a77_0x57cb;try{return JSON[_0x399413(0xa1)](_0x1032d6);}catch(_0x2d5651){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x1032d6,{'cause':_0x2d5651});}}
@@ -1 +1 @@
1
- (function(_0x5d375f,_0x2cec03){const _0x448d7f=a78_0x3aa4,_0x3ec483=_0x5d375f();while(!![]){try{const _0x195467=-parseInt(_0x448d7f(0x1c3))/0x1*(-parseInt(_0x448d7f(0x1d2))/0x2)+parseInt(_0x448d7f(0x1c6))/0x3*(parseInt(_0x448d7f(0x1d7))/0x4)+parseInt(_0x448d7f(0x1c0))/0x5+parseInt(_0x448d7f(0x1d8))/0x6*(-parseInt(_0x448d7f(0x1d4))/0x7)+-parseInt(_0x448d7f(0x1c4))/0x8*(-parseInt(_0x448d7f(0x1cc))/0x9)+parseInt(_0x448d7f(0x1d5))/0xa*(-parseInt(_0x448d7f(0x1c1))/0xb)+parseInt(_0x448d7f(0x1c2))/0xc;if(_0x195467===_0x2cec03)break;else _0x3ec483['push'](_0x3ec483['shift']());}catch(_0x5001b9){_0x3ec483['push'](_0x3ec483['shift']());}}}(a78_0x338a,0x736b8));import a78_0x424a51 from'string-width';export function stringWidth(_0x189c82){return a78_0x424a51(_0x189c82);}export function padEnd(_0x3f03ef,_0x56ec29){const _0x4e13ee=a78_0x3aa4,_0x490534=stringWidth(_0x3f03ef);if(_0x490534>=_0x56ec29)return _0x3f03ef;return _0x3f03ef+'\x20'[_0x4e13ee(0x1c8)](_0x56ec29-_0x490534);}function a78_0x3aa4(_0x5b45be,_0x2abf5e){const _0x338a3f=a78_0x338a();return a78_0x3aa4=function(_0x3aa4ed,_0x24aef2){_0x3aa4ed=_0x3aa4ed-0x1c0;let _0x3b138f=_0x338a3f[_0x3aa4ed];return _0x3b138f;},a78_0x3aa4(_0x5b45be,_0x2abf5e);}export function padStart(_0x622700,_0x2276d4){const _0x1294c4=a78_0x3aa4,_0x46a74b=stringWidth(_0x622700);if(_0x46a74b>=_0x2276d4)return _0x622700;return'\x20'[_0x1294c4(0x1c8)](_0x2276d4-_0x46a74b)+_0x622700;}export function centerAlign(_0x2a79fd,_0x4698c0){const _0x45e226=a78_0x3aa4,_0x26f817=stringWidth(_0x2a79fd);if(_0x26f817>_0x4698c0){if(_0x4698c0<=0x1)return'…'[_0x45e226(0x1da)](0x0,_0x4698c0);let _0xeee4fc=_0x2a79fd;while(stringWidth(_0xeee4fc+'…')>_0x4698c0){_0xeee4fc=_0xeee4fc[_0x45e226(0x1cd)](0x0,-0x1);}return _0xeee4fc+'…';}if(_0x26f817===_0x4698c0)return _0x2a79fd;const _0x4b7f5e=_0x4698c0-_0x26f817,_0x13cd24=Math[_0x45e226(0x1d6)](_0x4b7f5e/0x2),_0x2e5b93=_0x4b7f5e-_0x13cd24;return'\x20'['repeat'](_0x13cd24)+_0x2a79fd+'\x20'[_0x45e226(0x1c8)](_0x2e5b93);}function a78_0x338a(){const _0xd02b06=['1288072Jpwgwt','trim','19533BVAEGH','toString','repeat','\x5c$&','USERNAME','random','45hUkrIx','slice','replace','env','length','toLowerCase','14604ZfNleU','Cannot\x20escape\x20empty\x20string\x20literal','295183iSSCDu','87110NEMAin','floor','328QLmYmB','66NGdHbf','USER','substring','unknown','test','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','628490zBHSyE','979VUbeNW','1565052KmFzGa','16BuwifL'];a78_0x338a=function(){return _0xd02b06;};return a78_0x338a();}export function escapeStringLiteral(_0x26457e){const _0x438d2a=a78_0x3aa4;if(!_0x26457e||_0x26457e[_0x438d2a(0x1c5)]()[_0x438d2a(0x1d0)]===0x0)throw new Error(_0x438d2a(0x1d3));const _0x59ba7e=_0x26457e['replace'](/'/g,'\x27\x27');return'\x27'+_0x59ba7e+'\x27';}export function globToLike(_0x2cba50){const _0x3d03e6=a78_0x3aa4;let _0x45de41=_0x2cba50['replace'](/\\/g,'\x5c\x5c')[_0x3d03e6(0x1ce)](/%/g,'\x5c%')[_0x3d03e6(0x1ce)](/_/g,'\x5c_');return _0x45de41=_0x45de41[_0x3d03e6(0x1ce)](/\*/g,'%')['replace'](/\?/g,'_'),_0x45de41;}export function buildLikePattern(_0x4796d5){const _0xd679cf=a78_0x3aa4;if(!_0x4796d5||_0x4796d5[_0xd679cf(0x1c5)]()[_0xd679cf(0x1d0)]===0x0)throw new Error(_0xd679cf(0x1dd));const _0x2a2778=globToLike(_0x4796d5),_0x2c8b87=_0x2a2778[_0xd679cf(0x1ce)](/'/g,'\x27\x27');return'\x27'+_0x2c8b87+'\x27';}export function matchGlobPattern(_0x2f4e47,_0x39c135){const _0x31beb8=a78_0x3aa4,_0x4dee1e=_0x39c135[_0x31beb8(0x1ce)](/[.+^${}()|[\]\\]/g,_0x31beb8(0x1c9))[_0x31beb8(0x1ce)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x57a44d=new RegExp('^'+_0x4dee1e+'$');return _0x57a44d[_0x31beb8(0x1dc)](_0x2f4e47);}export function getSanitizedUsername(){const _0x334281=a78_0x3aa4,_0x32ebb7=process['env'][_0x334281(0x1d9)]||process[_0x334281(0x1cf)][_0x334281(0x1ca)]||_0x334281(0x1db);return _0x32ebb7[_0x334281(0x1ce)](/[^a-zA-Z0-9]/g,'')[_0x334281(0x1d1)]();}export function generateRandomHex(){const _0x353323=a78_0x3aa4,_0x5561e3=Math['floor'](Math[_0x353323(0x1cb)]()*0xfffff);return _0x5561e3[_0x353323(0x1c7)](0x10)['padStart'](0x5,'0');}
1
+ (function(_0x3de063,_0x23edb5){const _0xcdb62c=a78_0x3800,_0x59c3d6=_0x3de063();while(!![]){try{const _0x4e3d60=-parseInt(_0xcdb62c(0x130))/0x1+-parseInt(_0xcdb62c(0x12c))/0x2+parseInt(_0xcdb62c(0x11c))/0x3*(-parseInt(_0xcdb62c(0x129))/0x4)+parseInt(_0xcdb62c(0x122))/0x5+parseInt(_0xcdb62c(0x120))/0x6+parseInt(_0xcdb62c(0x12f))/0x7*(-parseInt(_0xcdb62c(0x125))/0x8)+parseInt(_0xcdb62c(0x124))/0x9;if(_0x4e3d60===_0x23edb5)break;else _0x59c3d6['push'](_0x59c3d6['shift']());}catch(_0x1258e5){_0x59c3d6['push'](_0x59c3d6['shift']());}}}(a78_0x3abc,0x1bba0));import a78_0x2524fb from'string-width';export function stringWidth(_0x150cf6){return a78_0x2524fb(_0x150cf6);}export function padEnd(_0x17cd9a,_0x268e14){const _0x1e92d4=a78_0x3800,_0x510ba0=stringWidth(_0x17cd9a);if(_0x510ba0>=_0x268e14)return _0x17cd9a;return _0x17cd9a+'\x20'[_0x1e92d4(0x11b)](_0x268e14-_0x510ba0);}export function padStart(_0x1e1614,_0x363776){const _0x487135=stringWidth(_0x1e1614);if(_0x487135>=_0x363776)return _0x1e1614;return'\x20'['repeat'](_0x363776-_0x487135)+_0x1e1614;}function a78_0x3abc(){const _0x39b7a6=['21fRNwqP','118963gdpuNK','repeat','102zOLGCF','replace','random','slice','96072EkPRjQ','test','546380XQxgHJ','length','3567609fveTtq','485416tNeIml','env','trim','USER','5696cFDzxC','\x5c$&','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','117422oKNeGy','floor','USERNAME'];a78_0x3abc=function(){return _0x39b7a6;};return a78_0x3abc();}export function centerAlign(_0x26695b,_0x52c0be){const _0x3637bf=a78_0x3800,_0x208c53=stringWidth(_0x26695b);if(_0x208c53>_0x52c0be){if(_0x52c0be<=0x1)return'…'['substring'](0x0,_0x52c0be);let _0x3b5195=_0x26695b;while(stringWidth(_0x3b5195+'…')>_0x52c0be){_0x3b5195=_0x3b5195[_0x3637bf(0x11f)](0x0,-0x1);}return _0x3b5195+'…';}if(_0x208c53===_0x52c0be)return _0x26695b;const _0x1ae3a2=_0x52c0be-_0x208c53,_0x2a1a77=Math[_0x3637bf(0x12d)](_0x1ae3a2/0x2),_0x4871e8=_0x1ae3a2-_0x2a1a77;return'\x20'[_0x3637bf(0x11b)](_0x2a1a77)+_0x26695b+'\x20'[_0x3637bf(0x11b)](_0x4871e8);}function a78_0x3800(_0x4f6274,_0x3029ae){const _0x3abc06=a78_0x3abc();return a78_0x3800=function(_0x380016,_0xbde166){_0x380016=_0x380016-0x11b;let _0x1a7560=_0x3abc06[_0x380016];return _0x1a7560;},a78_0x3800(_0x4f6274,_0x3029ae);}export function escapeStringLiteral(_0x148784){const _0x2d56ca=a78_0x3800;if(!_0x148784||_0x148784[_0x2d56ca(0x127)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x46944f=_0x148784['replace'](/'/g,'\x27\x27');return'\x27'+_0x46944f+'\x27';}export function globToLike(_0x4a5f00){const _0x3fb9fb=a78_0x3800;let _0x15f0d0=_0x4a5f00[_0x3fb9fb(0x11d)](/\\/g,'\x5c\x5c')[_0x3fb9fb(0x11d)](/%/g,'\x5c%')[_0x3fb9fb(0x11d)](/_/g,'\x5c_');return _0x15f0d0=_0x15f0d0[_0x3fb9fb(0x11d)](/\*/g,'%')[_0x3fb9fb(0x11d)](/\?/g,'_'),_0x15f0d0;}export function buildLikePattern(_0x26fc22){const _0x23472d=a78_0x3800;if(!_0x26fc22||_0x26fc22[_0x23472d(0x127)]()[_0x23472d(0x123)]===0x0)throw new Error(_0x23472d(0x12b));const _0x3c5150=globToLike(_0x26fc22),_0x47b6a2=_0x3c5150[_0x23472d(0x11d)](/'/g,'\x27\x27');return'\x27'+_0x47b6a2+'\x27';}export function matchGlobPattern(_0x3c46ad,_0x4b8448){const _0x4965ea=a78_0x3800,_0x2df816=_0x4b8448[_0x4965ea(0x11d)](/[.+^${}()|[\]\\]/g,_0x4965ea(0x12a))[_0x4965ea(0x11d)](/\*/g,'.*')[_0x4965ea(0x11d)](/\?/g,'.'),_0x3d6032=new RegExp('^'+_0x2df816+'$');return _0x3d6032[_0x4965ea(0x121)](_0x3c46ad);}export function getSanitizedUsername(){const _0x5df1d7=a78_0x3800,_0x4c1d90=process[_0x5df1d7(0x126)][_0x5df1d7(0x128)]||process[_0x5df1d7(0x126)][_0x5df1d7(0x12e)]||'unknown';return _0x4c1d90['replace'](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x2cc3ac=a78_0x3800,_0x48b8da=Math[_0x2cc3ac(0x12d)](Math[_0x2cc3ac(0x11e)]()*0xfffff);return _0x48b8da['toString'](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- function a79_0x3bc1(_0x2e0485,_0x381de6){const _0x51ba77=a79_0x51ba();return a79_0x3bc1=function(_0x3bc102,_0x4112ce){_0x3bc102=_0x3bc102-0xb3;let _0x4ab172=_0x51ba77[_0x3bc102];return _0x4ab172;},a79_0x3bc1(_0x2e0485,_0x381de6);}(function(_0x33674f,_0x5437dc){const _0x2beec8=a79_0x3bc1,_0x2db93f=_0x33674f();while(!![]){try{const _0x3e1412=-parseInt(_0x2beec8(0xb4))/0x1*(-parseInt(_0x2beec8(0xc5))/0x2)+parseInt(_0x2beec8(0xc0))/0x3+parseInt(_0x2beec8(0xbb))/0x4+-parseInt(_0x2beec8(0xc8))/0x5*(parseInt(_0x2beec8(0xb5))/0x6)+parseInt(_0x2beec8(0xc9))/0x7*(-parseInt(_0x2beec8(0xc3))/0x8)+-parseInt(_0x2beec8(0xb8))/0x9+parseInt(_0x2beec8(0xc7))/0xa;if(_0x3e1412===_0x5437dc)break;else _0x2db93f['push'](_0x2db93f['shift']());}catch(_0x59c6e6){_0x2db93f['push'](_0x2db93f['shift']());}}}(a79_0x51ba,0xddb8e));function hasWildcard(_0x2d5aa8){const _0x49ee31=a79_0x3bc1;return _0x2d5aa8[_0x49ee31(0xbe)]('*')||_0x2d5aa8[_0x49ee31(0xbe)]('?');}export function parseTableReference(_0x28430b){const _0x182211=a79_0x3bc1;if(!_0x28430b||_0x28430b['trim']()[_0x182211(0xb6)]===0x0)throw new Error(_0x182211(0xc6));const _0x3e0041=_0x28430b[_0x182211(0xbd)](),_0x34e34c={'original':_0x3e0041},_0x56737a=_0x3e0041['split']('.');if(_0x56737a['length']===0x1){const _0x445f4a=_0x56737a[0x0];if(!_0x445f4a)throw new Error(_0x182211(0xb3));_0x34e34c[_0x182211(0xc1)]=_0x445f4a;}else{if(_0x56737a[_0x182211(0xb6)]===0x2){const [_0x2535a4,_0x5e82de]=_0x56737a;if(!_0x2535a4)throw new Error(_0x182211(0xb9));if(!_0x5e82de)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x34e34c[_0x182211(0xc2)]=_0x2535a4,_0x34e34c[_0x182211(0xc1)]=_0x5e82de;}else{if(_0x56737a[_0x182211(0xb6)]===0x3){const [_0x4ab168,_0xb1836c,_0x16999c]=_0x56737a;if(!_0x4ab168||!_0xb1836c||!_0x16999c)throw new Error(_0x182211(0xbf));_0x34e34c['catalog']=_0x4ab168,_0x34e34c[_0x182211(0xc2)]=_0xb1836c,_0x34e34c[_0x182211(0xc1)]=_0x16999c;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x34e34c;}function a79_0x51ba(){const _0x35e24c=['Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','1813606sLTrmk','6eDcMtj','length','push','13221738fdKmBX','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','4835028dxezpg','catalog','trim','includes','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','95427WSbVzQ','table','database','8QIPEfo','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','2uKoyuO','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','20139820MtJgGu','8914090RkeIaG','6356560rNzkFr'];a79_0x51ba=function(){return _0x35e24c;};return a79_0x51ba();}export function formatTableReference(_0x358b5d){const _0x82264d=a79_0x3bc1,_0x446918=[];return _0x358b5d[_0x82264d(0xbc)]&&_0x446918[_0x82264d(0xb7)](_0x358b5d['catalog']),_0x358b5d[_0x82264d(0xc2)]&&_0x446918[_0x82264d(0xb7)](_0x358b5d[_0x82264d(0xc2)]),_0x358b5d['table']&&_0x446918[_0x82264d(0xb7)](_0x358b5d[_0x82264d(0xc1)]),_0x446918['join']('.');}export function validateTableListReference(_0xa903b0){return undefined;}export function validateTableDescribeReference(_0x3e81df){const _0x54b77f=a79_0x3bc1;if(!_0x3e81df['table'])return _0x54b77f(0xba);if(_0x3e81df[_0x54b77f(0xc2)]&&hasWildcard(_0x3e81df[_0x54b77f(0xc2)]))return _0x54b77f(0xca);if(hasWildcard(_0x3e81df['table']))return _0x54b77f(0xc4);return undefined;}
1
+ (function(_0x2879a3,_0x1b9a8b){const _0x57c971=a79_0x49c9,_0x1ad2fc=_0x2879a3();while(!![]){try{const _0xc07f55=parseInt(_0x57c971(0x84))/0x1+parseInt(_0x57c971(0x95))/0x2+parseInt(_0x57c971(0x92))/0x3*(-parseInt(_0x57c971(0x97))/0x4)+parseInt(_0x57c971(0x8e))/0x5*(parseInt(_0x57c971(0x91))/0x6)+parseInt(_0x57c971(0x90))/0x7*(parseInt(_0x57c971(0x8a))/0x8)+parseInt(_0x57c971(0x87))/0x9*(parseInt(_0x57c971(0x8f))/0xa)+-parseInt(_0x57c971(0x86))/0xb;if(_0xc07f55===_0x1b9a8b)break;else _0x1ad2fc['push'](_0x1ad2fc['shift']());}catch(_0x1a03be){_0x1ad2fc['push'](_0x1ad2fc['shift']());}}}(a79_0x439f,0x90807));function a79_0x49c9(_0x418faf,_0x3fc4f1){const _0x439fe3=a79_0x439f();return a79_0x49c9=function(_0x49c9cf,_0x57c725){_0x49c9cf=_0x49c9cf-0x84;let _0x571008=_0x439fe3[_0x49c9cf];return _0x571008;},a79_0x49c9(_0x418faf,_0x3fc4f1);}function hasWildcard(_0x21a6fd){const _0x3710a7=a79_0x49c9;return _0x21a6fd[_0x3710a7(0x93)]('*')||_0x21a6fd[_0x3710a7(0x93)]('?');}function a79_0x439f(){const _0x17b538=['423135WXxMuo','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','4004891Ravtsy','188271qhEoDn','database','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','24lEBNmV','catalog','split','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','251850VjSTTP','20mmScTs','1514779YIpVRz','12DsfTAw','234COyTip','includes','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','223268ZmNpns','trim','19004JMuRfw','table','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','length','push'];a79_0x439f=function(){return _0x17b538;};return a79_0x439f();}export function parseTableReference(_0x44adc3){const _0x33e3bd=a79_0x49c9;if(!_0x44adc3||_0x44adc3[_0x33e3bd(0x96)]()[_0x33e3bd(0x9d)]===0x0)throw new Error(_0x33e3bd(0x9c));const _0x100804=_0x44adc3[_0x33e3bd(0x96)](),_0x20e16f={'original':_0x100804},_0x33b728=_0x100804[_0x33e3bd(0x8c)]('.');if(_0x33b728[_0x33e3bd(0x9d)]===0x1){const _0x582b0e=_0x33b728[0x0];if(!_0x582b0e)throw new Error(_0x33e3bd(0x9a));_0x20e16f['table']=_0x582b0e;}else{if(_0x33b728[_0x33e3bd(0x9d)]===0x2){const [_0x4fa336,_0x4e86cd]=_0x33b728;if(!_0x4fa336)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x4e86cd)throw new Error(_0x33e3bd(0x94));_0x20e16f[_0x33e3bd(0x88)]=_0x4fa336,_0x20e16f[_0x33e3bd(0x98)]=_0x4e86cd;}else{if(_0x33b728[_0x33e3bd(0x9d)]===0x3){const [_0x455461,_0x5aed73,_0x4e924f]=_0x33b728;if(!_0x455461||!_0x5aed73||!_0x4e924f)throw new Error(_0x33e3bd(0x89));_0x20e16f[_0x33e3bd(0x8b)]=_0x455461,_0x20e16f[_0x33e3bd(0x88)]=_0x5aed73,_0x20e16f[_0x33e3bd(0x98)]=_0x4e924f;}else throw new Error(_0x33e3bd(0x85));}}return _0x20e16f;}export function formatTableReference(_0x20769a){const _0x480275=a79_0x49c9,_0x1a539d=[];return _0x20769a[_0x480275(0x8b)]&&_0x1a539d[_0x480275(0x9e)](_0x20769a['catalog']),_0x20769a[_0x480275(0x88)]&&_0x1a539d[_0x480275(0x9e)](_0x20769a['database']),_0x20769a[_0x480275(0x98)]&&_0x1a539d[_0x480275(0x9e)](_0x20769a['table']),_0x1a539d['join']('.');}export function validateTableListReference(_0x3eefb6){return undefined;}export function validateTableDescribeReference(_0x58cd5b){const _0x352fd2=a79_0x49c9;if(!_0x58cd5b[_0x352fd2(0x98)])return _0x352fd2(0x9b);if(_0x58cd5b[_0x352fd2(0x88)]&&hasWildcard(_0x58cd5b[_0x352fd2(0x88)]))return _0x352fd2(0x8d);if(hasWildcard(_0x58cd5b[_0x352fd2(0x98)]))return _0x352fd2(0x99);return undefined;}
@@ -1 +1 @@
1
- const a80_0x3aa41f=a80_0x307d;(function(_0x3b92f2,_0x4930ec){const _0x247c63=a80_0x307d,_0x35db6e=_0x3b92f2();while(!![]){try{const _0x3b6bc3=-parseInt(_0x247c63(0xc2))/0x1+parseInt(_0x247c63(0xc7))/0x2*(parseInt(_0x247c63(0xc3))/0x3)+parseInt(_0x247c63(0xc6))/0x4*(parseInt(_0x247c63(0xc1))/0x5)+parseInt(_0x247c63(0xf2))/0x6*(parseInt(_0x247c63(0xec))/0x7)+-parseInt(_0x247c63(0xcf))/0x8*(-parseInt(_0x247c63(0xe1))/0x9)+-parseInt(_0x247c63(0xc5))/0xa*(-parseInt(_0x247c63(0xcc))/0xb)+-parseInt(_0x247c63(0xde))/0xc*(parseInt(_0x247c63(0xf3))/0xd);if(_0x3b6bc3===_0x4930ec)break;else _0x35db6e['push'](_0x35db6e['shift']());}catch(_0x32f3e6){_0x35db6e['push'](_0x35db6e['shift']());}}}(a80_0x45c1,0x4f3d9));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a80_0x307d(_0x161aca,_0x2efe13){const _0x45c176=a80_0x45c1();return a80_0x307d=function(_0x307d43,_0x378358){_0x307d43=_0x307d43-0xc1;let _0x54208d=_0x45c176[_0x307d43];return _0x54208d;},a80_0x307d(_0x161aca,_0x2efe13);}import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x20199d from'chalk';function safeStringify(_0x3da47c){const _0x4ceba4=a80_0x307d;if(typeof _0x3da47c===_0x4ceba4(0xdd))return _0x3da47c;if(_0x3da47c instanceof Error)return _0x3da47c[_0x4ceba4(0xf9)]||_0x3da47c[_0x4ceba4(0xe6)]+':\x20'+_0x3da47c['message'];try{return JSON['stringify'](_0x3da47c,(_0x2f7b92,_0x4147d9)=>{const _0xcb0f14=_0x4ceba4;if(_0x4147d9 instanceof Error)return{'name':_0x4147d9[_0xcb0f14(0xe6)],'message':_0x4147d9[_0xcb0f14(0xd9)],'stack':_0x4147d9[_0xcb0f14(0xf9)],'cause':_0x4147d9[_0xcb0f14(0xd3)]};return _0x4147d9;});}catch{return String(_0x3da47c);}}function getTimezoneOffset(){const _0x43d7cf=a80_0x307d,_0xbb5f3a=-new Date()[_0x43d7cf(0xc4)](),_0x4d82a7=Math['floor'](Math[_0x43d7cf(0xf7)](_0xbb5f3a)/0x3c),_0x1117a2=Math[_0x43d7cf(0xf7)](_0xbb5f3a)%0x3c,_0x412add=_0xbb5f3a>=0x0?'+':'-';return''+_0x412add+_0x4d82a7[_0x43d7cf(0xdf)]()[_0x43d7cf(0xd5)](0x2,'0')+_0x1117a2[_0x43d7cf(0xdf)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x269ede=a80_0x307d,_0x1ac33f=new Date(),_0x4232e1=_0x1ac33f[_0x269ede(0xcd)](),_0x3a45f9=(_0x1ac33f[_0x269ede(0xdc)]()+0x1)[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x2,'0'),_0x3b29f6=_0x1ac33f['getDate']()[_0x269ede(0xdf)]()['padStart'](0x2,'0'),_0x6807bd=_0x1ac33f[_0x269ede(0xe9)]()['toString']()[_0x269ede(0xd5)](0x2,'0'),_0x571fd4=_0x1ac33f['getMinutes']()['toString']()['padStart'](0x2,'0'),_0x147ada=_0x1ac33f['getSeconds']()[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x2,'0'),_0x430391=_0x1ac33f[_0x269ede(0x100)]()[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x3,'0'),_0x4a0d2c=getTimezoneOffset();return _0x4232e1+'-'+_0x3a45f9+'-'+_0x3b29f6+'\x20'+_0x6807bd+':'+_0x571fd4+':'+_0x147ada+'.'+_0x430391+_0x4a0d2c;}function formatColoredLogEntry(_0x844e09,_0x3a66d6){const _0x4bcd9e=a80_0x307d,_0x1f7384=formatTimestamp(),_0x40e602=_0x3a66d6[_0x4bcd9e(0xfe)](safeStringify)[_0x4bcd9e(0xc9)]('\x20'),_0x4cab00=a80_0x20199d[_0x4bcd9e(0xe8)](_0x1f7384);let _0x29973f;switch(_0x844e09){case _0x4bcd9e(0xfb):_0x29973f=a80_0x20199d[_0x4bcd9e(0xd8)]('['+_0x844e09+']\x20');break;case _0x4bcd9e(0xfd):_0x29973f=a80_0x20199d[_0x4bcd9e(0xc8)]('['+_0x844e09+']\x20');break;case _0x4bcd9e(0xfc):_0x29973f=a80_0x20199d[_0x4bcd9e(0xea)]('['+_0x844e09+']');break;case _0x4bcd9e(0xda):_0x29973f=a80_0x20199d[_0x4bcd9e(0xe8)]('['+_0x844e09+']');break;default:_0x29973f='['+_0x844e09+']';}return _0x4cab00+'\x20'+_0x29973f+'\x20'+_0x40e602;}export var LogLevel;function a80_0x45c1(){const _0xe163c3=['12XlGVld','1752569UvzpFL','filter','mtime','Proxy\x20session\x20ended','abs','Proxy\x20server\x20started','stack','logs','info','error','warn','map','TRACE','getMilliseconds','2507025KmXMuJ','241363xdEPTH','66lfMeez','getTimezoneOffset','590KhSnMt','4qsANwv','57606NtQyNB','yellow','join','init','INFO','8107KZIvvm','getFullYear','DEBUG','8jhVgpr','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','getLogPath','proxy.log','cause','ERROR','padStart','end','WARN','cyan','message','debug','logLevel','getMonth','string','60PBHaLc','toString','write','506295FSFuXc','split','proxy-','.cache','.log','name','rotateOldLogs','gray','getHours','red','tdx','18158tcqWEX','logDir','trace','fileOnly','Warning:\x20Error\x20writing\x20to\x20proxy.log:','logStream'];a80_0x45c1=function(){return _0xe163c3;};return a80_0x45c1();}(function(_0x528c9b){const _0x5d8726=a80_0x307d;_0x528c9b[_0x528c9b[_0x5d8726(0xff)]=-0x2]=_0x5d8726(0xff),_0x528c9b[_0x528c9b['DEBUG']=-0x1]=_0x5d8726(0xce),_0x528c9b[_0x528c9b['INFO']=0x0]='INFO',_0x528c9b[_0x528c9b[_0x5d8726(0xd7)]=0x1]=_0x5d8726(0xd7),_0x528c9b[_0x528c9b[_0x5d8726(0xd4)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x3aa41f(0xf1)];[a80_0x3aa41f(0xed)];['logLevel'];[a80_0x3aa41f(0xef)];constructor(_0x1d59db=LogLevel[a80_0x3aa41f(0xcb)],_0x4da62c=![]){const _0x5da9be=a80_0x3aa41f;this['logDir']=join(homedir(),_0x5da9be(0xe4),_0x5da9be(0xeb),_0x5da9be(0xfa)),this[_0x5da9be(0xdb)]=_0x1d59db,this[_0x5da9be(0xef)]=_0x4da62c;}async[a80_0x3aa41f(0xca)](){const _0x27d772=a80_0x3aa41f;try{await mkdir(this[_0x27d772(0xed)],{'recursive':!![]}),await this[_0x27d772(0xe7)]();const _0x2b826c=join(this[_0x27d772(0xed)],_0x27d772(0xd2));this[_0x27d772(0xf1)]=createWriteStream(_0x2b826c,{'flags':'a'}),this[_0x27d772(0xf1)]['on'](_0x27d772(0xfc),_0x1ff279=>{const _0x4b6ff4=_0x27d772;console['error'](_0x4b6ff4(0xf0),_0x1ff279[_0x4b6ff4(0xd9)]);}),this['info'](_0x27d772(0xf8));}catch(_0x473068){console['error'](_0x27d772(0xd0),_0x473068);}}async[a80_0x3aa41f(0xe7)](){const _0xb77364=a80_0x3aa41f;try{const _0x4c231f=await readdir(this['logDir']),_0x51133e=new Date()['toISOString']()['split']('T')[0x0];if(_0x4c231f['includes']('proxy.log')){const _0x80628b=join(this[_0xb77364(0xed)],_0xb77364(0xd2)),_0x20682f=await stat(_0x80628b),_0x3458e9=new Date(_0x20682f[_0xb77364(0xf5)])['toISOString']()[_0xb77364(0xe2)]('T')[0x0];if(_0x3458e9<_0x51133e){const _0x44f6df=join(this['logDir'],_0xb77364(0xe3)+_0x3458e9+_0xb77364(0xe5));await rename(_0x80628b,_0x44f6df);}}const _0x213c81=await readdir(this[_0xb77364(0xed)]),_0x1e7255=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x521585=_0x213c81[_0xb77364(0xf4)](_0x54b9ad=>_0x1e7255['test'](_0x54b9ad));for(const _0x87c6fa of _0x521585){const _0x3d6c94=join(this['logDir'],_0x87c6fa),_0x5dc235=join(this['logDir'],_0x87c6fa+'.gz');try{await pipeline(createReadStream(_0x3d6c94),createGzip(),createWriteStream(_0x5dc235)),await unlink(_0x3d6c94);}catch(_0x2f89f3){console[_0xb77364(0xfc)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x87c6fa+':',_0x2f89f3);}}}catch{}}[a80_0x3aa41f(0xda)](..._0x50132a){const _0x20b25f=a80_0x3aa41f;if(this['logLevel']>LogLevel['DEBUG'])return;const _0x91836=formatColoredLogEntry(_0x20b25f(0xda),_0x50132a);this['logStream']?.[_0x20b25f(0xe0)](_0x91836+'\x0a');}[a80_0x3aa41f(0xee)](..._0x26430d){const _0x3fa6c0=a80_0x3aa41f;if(this[_0x3fa6c0(0xdb)]>LogLevel[_0x3fa6c0(0xff)])return;const _0xfed187=formatColoredLogEntry(_0x3fa6c0(0xee),_0x26430d);this[_0x3fa6c0(0xf1)]?.[_0x3fa6c0(0xe0)](_0xfed187+'\x0a');}[a80_0x3aa41f(0xfb)](..._0x4dc37d){const _0x599cb6=a80_0x3aa41f;if(this[_0x599cb6(0xdb)]>LogLevel[_0x599cb6(0xcb)])return;const _0xa1a645=formatColoredLogEntry(_0x599cb6(0xfb),_0x4dc37d);!this[_0x599cb6(0xef)]&&console['log'](_0xa1a645),this[_0x599cb6(0xf1)]?.[_0x599cb6(0xe0)](_0xa1a645+'\x0a');}[a80_0x3aa41f(0xfd)](..._0x1484c4){const _0x4b2b48=a80_0x3aa41f;if(this[_0x4b2b48(0xdb)]>LogLevel[_0x4b2b48(0xd7)])return;const _0x104f60=formatColoredLogEntry(_0x4b2b48(0xfd),_0x1484c4);!this[_0x4b2b48(0xef)]&&console['error'](_0x104f60),this[_0x4b2b48(0xf1)]?.[_0x4b2b48(0xe0)](_0x104f60+'\x0a');}[a80_0x3aa41f(0xfc)](..._0x168dc4){const _0x551100=a80_0x3aa41f,_0xbd0c7a=formatColoredLogEntry(_0x551100(0xfc),_0x168dc4);!this[_0x551100(0xef)]&&console['error'](_0xbd0c7a),this[_0x551100(0xf1)]?.[_0x551100(0xe0)](_0xbd0c7a+'\x0a');}async['close'](){const _0x42cd90=a80_0x3aa41f;return this[_0x42cd90(0xfb)](_0x42cd90(0xf6)),new Promise(_0x4090c9=>{const _0x29d587=_0x42cd90;this[_0x29d587(0xf1)]?this[_0x29d587(0xf1)][_0x29d587(0xd6)](()=>{_0x4090c9();}):_0x4090c9();});}[a80_0x3aa41f(0xd1)](){const _0x13e191=a80_0x3aa41f;return join(this[_0x13e191(0xed)],_0x13e191(0xd2));}}
1
+ const a80_0x49bbe5=a80_0x3bbe;(function(_0x448d65,_0x353a37){const _0x3e8d54=a80_0x3bbe,_0x38e61b=_0x448d65();while(!![]){try{const _0x1204ca=-parseInt(_0x3e8d54(0xe0))/0x1+parseInt(_0x3e8d54(0xc7))/0x2*(parseInt(_0x3e8d54(0xff))/0x3)+-parseInt(_0x3e8d54(0xf9))/0x4*(-parseInt(_0x3e8d54(0xdf))/0x5)+-parseInt(_0x3e8d54(0xc9))/0x6+parseInt(_0x3e8d54(0xfd))/0x7*(-parseInt(_0x3e8d54(0xef))/0x8)+parseInt(_0x3e8d54(0xfa))/0x9+parseInt(_0x3e8d54(0xe2))/0xa*(parseInt(_0x3e8d54(0xd1))/0xb);if(_0x1204ca===_0x353a37)break;else _0x38e61b['push'](_0x38e61b['shift']());}catch(_0x32f58e){_0x38e61b['push'](_0x38e61b['shift']());}}}(a80_0x3156,0xf088f));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';function a80_0x3bbe(_0x2b495f,_0x1a2d46){const _0x3156fa=a80_0x3156();return a80_0x3bbe=function(_0x3bbe92,_0xa35f4b){_0x3bbe92=_0x3bbe92-0xc1;let _0x4d251e=_0x3156fa[_0x3bbe92];return _0x4d251e;},a80_0x3bbe(_0x2b495f,_0x1a2d46);}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x59610a from'chalk';function safeStringify(_0x40c7b2){const _0x1eea87=a80_0x3bbe;if(typeof _0x40c7b2===_0x1eea87(0xe6))return _0x40c7b2;if(_0x40c7b2 instanceof Error)return _0x40c7b2[_0x1eea87(0xed)]||_0x40c7b2[_0x1eea87(0xda)]+':\x20'+_0x40c7b2[_0x1eea87(0xf0)];try{return JSON[_0x1eea87(0xc2)](_0x40c7b2,(_0x41cb9d,_0x146cca)=>{const _0x3d72ec=_0x1eea87;if(_0x146cca instanceof Error)return{'name':_0x146cca[_0x3d72ec(0xda)],'message':_0x146cca[_0x3d72ec(0xf0)],'stack':_0x146cca['stack'],'cause':_0x146cca['cause']};return _0x146cca;});}catch{return String(_0x40c7b2);}}function getTimezoneOffset(){const _0x3d4fe3=a80_0x3bbe,_0x2fedda=-new Date()[_0x3d4fe3(0xf6)](),_0xede33a=Math['floor'](Math[_0x3d4fe3(0xe4)](_0x2fedda)/0x3c),_0x13be25=Math['abs'](_0x2fedda)%0x3c,_0x49ba15=_0x2fedda>=0x0?'+':'-';return''+_0x49ba15+_0xede33a[_0x3d4fe3(0xea)]()[_0x3d4fe3(0xf4)](0x2,'0')+_0x13be25['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0x29100d=a80_0x3bbe,_0xffada8=new Date(),_0x47041a=_0xffada8[_0x29100d(0xe5)](),_0x5f8fca=(_0xffada8['getMonth']()+0x1)[_0x29100d(0xea)]()['padStart'](0x2,'0'),_0x5d1de0=_0xffada8[_0x29100d(0xc5)]()[_0x29100d(0xea)]()['padStart'](0x2,'0'),_0x2b53e6=_0xffada8[_0x29100d(0xdc)]()[_0x29100d(0xea)]()['padStart'](0x2,'0'),_0x1aa339=_0xffada8[_0x29100d(0xd0)]()[_0x29100d(0xea)]()[_0x29100d(0xf4)](0x2,'0'),_0x2eafef=_0xffada8['getSeconds']()['toString']()[_0x29100d(0xf4)](0x2,'0'),_0x1bfe3b=_0xffada8[_0x29100d(0xdb)]()[_0x29100d(0xea)]()['padStart'](0x3,'0'),_0x44ea66=getTimezoneOffset();return _0x47041a+'-'+_0x5f8fca+'-'+_0x5d1de0+'\x20'+_0x2b53e6+':'+_0x1aa339+':'+_0x2eafef+'.'+_0x1bfe3b+_0x44ea66;}function a80_0x3156(){const _0x5ceeb2=['Proxy\x20session\x20ended','name','getMilliseconds','getHours','toISOString','log','65Csjfsp','852035KAOwQK','red','280tenhxV','end','abs','getFullYear','string','Warning:\x20Failed\x20to\x20compress\x20','DEBUG','TRACE','toString','WARN','proxy-','stack','write','24bYhGZW','message','tdx','ERROR','Warning:\x20Error\x20writing\x20to\x20proxy.log:','padStart','mtime','getTimezoneOffset','split','yellow','422152wZOlmP','3922758kegwpO','test','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','2193611SDPIdz','trace','249297eyCKqS','logDir','stringify','proxy.log','getLogPath','getDate','gray','18ommshr','Proxy\x20server\x20started','1924164kKBfCZ','.log','filter','logLevel','logStream','error','warn','getMinutes','213059kyYoCg','close','fileOnly','INFO','debug','includes','info','.cache'];a80_0x3156=function(){return _0x5ceeb2;};return a80_0x3156();}function formatColoredLogEntry(_0x21fdc0,_0x480b7f){const _0x51c72b=a80_0x3bbe,_0x4c23c3=formatTimestamp(),_0x1eb2db=_0x480b7f['map'](safeStringify)['join']('\x20'),_0x2bd6b2=a80_0x59610a[_0x51c72b(0xc6)](_0x4c23c3);let _0x7501d9;switch(_0x21fdc0){case'info':_0x7501d9=a80_0x59610a['cyan']('['+_0x21fdc0+']\x20');break;case _0x51c72b(0xcf):_0x7501d9=a80_0x59610a[_0x51c72b(0xf8)]('['+_0x21fdc0+']\x20');break;case _0x51c72b(0xce):_0x7501d9=a80_0x59610a[_0x51c72b(0xe1)]('['+_0x21fdc0+']');break;case _0x51c72b(0xd5):_0x7501d9=a80_0x59610a[_0x51c72b(0xc6)]('['+_0x21fdc0+']');break;default:_0x7501d9='['+_0x21fdc0+']';}return _0x2bd6b2+'\x20'+_0x7501d9+'\x20'+_0x1eb2db;}export var LogLevel;(function(_0x1b5f33){const _0x377e60=a80_0x3bbe;_0x1b5f33[_0x1b5f33['TRACE']=-0x2]=_0x377e60(0xe9),_0x1b5f33[_0x1b5f33[_0x377e60(0xe8)]=-0x1]='DEBUG',_0x1b5f33[_0x1b5f33['INFO']=0x0]=_0x377e60(0xd4),_0x1b5f33[_0x1b5f33[_0x377e60(0xeb)]=0x1]='WARN',_0x1b5f33[_0x1b5f33[_0x377e60(0xf2)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x49bbe5(0xcd)];[a80_0x49bbe5(0xc1)];[a80_0x49bbe5(0xcc)];[a80_0x49bbe5(0xd3)];constructor(_0x26c9ec=LogLevel[a80_0x49bbe5(0xd4)],_0x375228=![]){const _0x2cb4f3=a80_0x49bbe5;this[_0x2cb4f3(0xc1)]=join(homedir(),_0x2cb4f3(0xd8),_0x2cb4f3(0xf1),'logs'),this['logLevel']=_0x26c9ec,this[_0x2cb4f3(0xd3)]=_0x375228;}async['init'](){const _0x37775f=a80_0x49bbe5;try{await mkdir(this[_0x37775f(0xc1)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x5a8220=join(this[_0x37775f(0xc1)],_0x37775f(0xc3));this[_0x37775f(0xcd)]=createWriteStream(_0x5a8220,{'flags':'a'}),this[_0x37775f(0xcd)]['on'](_0x37775f(0xce),_0x5a317d=>{const _0xc4800a=_0x37775f;console[_0xc4800a(0xce)](_0xc4800a(0xf3),_0x5a317d[_0xc4800a(0xf0)]);}),this['info'](_0x37775f(0xc8));}catch(_0x1fd386){console[_0x37775f(0xce)](_0x37775f(0xfc),_0x1fd386);}}async['rotateOldLogs'](){const _0x2da377=a80_0x49bbe5;try{const _0xd3c352=await readdir(this[_0x2da377(0xc1)]),_0x29a7bc=new Date()[_0x2da377(0xdd)]()['split']('T')[0x0];if(_0xd3c352[_0x2da377(0xd6)]('proxy.log')){const _0x3ecd18=join(this['logDir'],_0x2da377(0xc3)),_0x18cd14=await stat(_0x3ecd18),_0x21435a=new Date(_0x18cd14[_0x2da377(0xf5)])[_0x2da377(0xdd)]()[_0x2da377(0xf7)]('T')[0x0];if(_0x21435a<_0x29a7bc){const _0x291143=join(this[_0x2da377(0xc1)],_0x2da377(0xec)+_0x21435a+_0x2da377(0xca));await rename(_0x3ecd18,_0x291143);}}const _0x4c116e=await readdir(this[_0x2da377(0xc1)]),_0x3abac7=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x3436bb=_0x4c116e[_0x2da377(0xcb)](_0x21c5a6=>_0x3abac7[_0x2da377(0xfb)](_0x21c5a6));for(const _0x55f109 of _0x3436bb){const _0x321032=join(this[_0x2da377(0xc1)],_0x55f109),_0x547962=join(this[_0x2da377(0xc1)],_0x55f109+'.gz');try{await pipeline(createReadStream(_0x321032),createGzip(),createWriteStream(_0x547962)),await unlink(_0x321032);}catch(_0x16d19a){console[_0x2da377(0xce)](_0x2da377(0xe7)+_0x55f109+':',_0x16d19a);}}}catch{}}[a80_0x49bbe5(0xd5)](..._0x36fc52){const _0x5eec62=a80_0x49bbe5;if(this['logLevel']>LogLevel[_0x5eec62(0xe8)])return;const _0x367e59=formatColoredLogEntry(_0x5eec62(0xd5),_0x36fc52);this[_0x5eec62(0xcd)]?.[_0x5eec62(0xee)](_0x367e59+'\x0a');}[a80_0x49bbe5(0xfe)](..._0x182b9a){const _0xe3183b=a80_0x49bbe5;if(this[_0xe3183b(0xcc)]>LogLevel[_0xe3183b(0xe9)])return;const _0x349c19=formatColoredLogEntry(_0xe3183b(0xfe),_0x182b9a);this['logStream']?.['write'](_0x349c19+'\x0a');}[a80_0x49bbe5(0xd7)](..._0x43b8e7){const _0x3622fe=a80_0x49bbe5;if(this[_0x3622fe(0xcc)]>LogLevel['INFO'])return;const _0x43c40b=formatColoredLogEntry('info',_0x43b8e7);!this[_0x3622fe(0xd3)]&&console[_0x3622fe(0xde)](_0x43c40b),this['logStream']?.[_0x3622fe(0xee)](_0x43c40b+'\x0a');}[a80_0x49bbe5(0xcf)](..._0x250e49){const _0x4c967c=a80_0x49bbe5;if(this[_0x4c967c(0xcc)]>LogLevel[_0x4c967c(0xeb)])return;const _0x31021d=formatColoredLogEntry(_0x4c967c(0xcf),_0x250e49);!this[_0x4c967c(0xd3)]&&console[_0x4c967c(0xce)](_0x31021d),this['logStream']?.['write'](_0x31021d+'\x0a');}[a80_0x49bbe5(0xce)](..._0x212618){const _0x1bf7aa=a80_0x49bbe5,_0x1e5144=formatColoredLogEntry(_0x1bf7aa(0xce),_0x212618);!this[_0x1bf7aa(0xd3)]&&console[_0x1bf7aa(0xce)](_0x1e5144),this[_0x1bf7aa(0xcd)]?.[_0x1bf7aa(0xee)](_0x1e5144+'\x0a');}async[a80_0x49bbe5(0xd2)](){const _0x23a0cd=a80_0x49bbe5;return this[_0x23a0cd(0xd7)](_0x23a0cd(0xd9)),new Promise(_0x3287a8=>{const _0xecdb4f=_0x23a0cd;this[_0xecdb4f(0xcd)]?this['logStream'][_0xecdb4f(0xe3)](()=>{_0x3287a8();}):_0x3287a8();});}[a80_0x49bbe5(0xc4)](){const _0x183785=a80_0x49bbe5;return join(this[_0x183785(0xc1)],_0x183785(0xc3));}}
@@ -1 +1 @@
1
- (function(_0x59ddbc,_0x62b989){const _0x4c63fd=a81_0x4a0b,_0x20f387=_0x59ddbc();while(!![]){try{const _0x572380=-parseInt(_0x4c63fd(0x16f))/0x1+parseInt(_0x4c63fd(0x16b))/0x2*(parseInt(_0x4c63fd(0x17e))/0x3)+-parseInt(_0x4c63fd(0x17d))/0x4+-parseInt(_0x4c63fd(0x18b))/0x5*(parseInt(_0x4c63fd(0x176))/0x6)+-parseInt(_0x4c63fd(0x179))/0x7*(-parseInt(_0x4c63fd(0x181))/0x8)+-parseInt(_0x4c63fd(0x16e))/0x9+parseInt(_0x4c63fd(0x18c))/0xa;if(_0x572380===_0x62b989)break;else _0x20f387['push'](_0x20f387['shift']());}catch(_0x91f30d){_0x20f387['push'](_0x20f387['shift']());}}}(a81_0x2b5a,0xf065c));import{formatRows}from'./formatters.js';import a81_0x63b894 from'chalk';function a81_0x2b5a(){const _0x2142f7=['sort','3676752owwCHV','segment','showMetadata','5670297eDyRvO','812047rXzvfR','\x20\x20\x20\x20','localeCompare','name','length','population','folderCount','1782WLzLYm','dim','metadata','7tPfCAH','children','indent','join','446992MRTqvo','3UsITSn','folder','type','3577176opJQqR','showIcons','📁\x20','segmentCount','push','showTreeLines','icon','\x20\x20\x20','\x20segment','\x20folder','20595SPtVXv','14763160NFVKBr','🎯\x20'];a81_0x2b5a=function(){return _0x2142f7;};return a81_0x2b5a();}function a81_0x4a0b(_0x1cb937,_0x384648){const _0x2b5ac0=a81_0x2b5a();return a81_0x4a0b=function(_0x4a0b1b,_0x3a68d0){_0x4a0b1b=_0x4a0b1b-0x16a;let _0x4cb081=_0x2b5ac0[_0x4a0b1b];return _0x4cb081;},a81_0x4a0b(_0x1cb937,_0x384648);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x20cf24,_0x330867={},_0x2fc3fe=0x0,_0x4cb7c2=''){const _0x3075e0=a81_0x4a0b,_0x1ef595={...DEFAULT_OPTIONS,..._0x330867},_0x52ab82=[],_0x3871d8=[..._0x20cf24][_0x3075e0(0x16a)]((_0x10e1bd,_0x357785)=>_0x10e1bd[_0x3075e0(0x172)][_0x3075e0(0x171)](_0x357785['name']));for(let _0x3ceb5c=0x0;_0x3ceb5c<_0x3871d8['length'];_0x3ceb5c++){const _0x367497=_0x3871d8[_0x3ceb5c],_0x517be1=_0x3ceb5c===_0x3871d8[_0x3075e0(0x173)]-0x1;let _0x2258cd='';_0x2fc3fe>0x0&&(_0x2258cd+=_0x4cb7c2);_0x1ef595[_0x3075e0(0x186)]&&_0x2fc3fe>0x0&&(_0x2258cd+=a81_0x63b894[_0x3075e0(0x177)](_0x517be1?'└──\x20':'├──\x20'));_0x1ef595[_0x3075e0(0x182)]&&(_0x2258cd+=_0x367497[_0x3075e0(0x180)]==='folder'?_0x3075e0(0x183):_0x3075e0(0x18d));_0x2258cd+=_0x367497['name'];if(_0x1ef595[_0x3075e0(0x16d)]){if(_0x367497['type']===_0x3075e0(0x17f)){const _0x3f8f78=[];_0x367497['metadata'][_0x3075e0(0x184)]&&_0x3f8f78['push'](_0x367497['metadata']['segmentCount']+_0x3075e0(0x189)+(_0x367497[_0x3075e0(0x178)][_0x3075e0(0x184)]!==0x1?'s':'')),_0x367497['metadata'][_0x3075e0(0x175)]&&_0x3f8f78[_0x3075e0(0x185)](_0x367497[_0x3075e0(0x178)]['folderCount']+_0x3075e0(0x18a)+(_0x367497[_0x3075e0(0x178)][_0x3075e0(0x175)]!==0x1?'s':'')),_0x3f8f78['length']>0x0&&(_0x2258cd+=a81_0x63b894['dim']('\x20('+_0x3f8f78[_0x3075e0(0x17c)](',\x20')+')'));}else _0x367497[_0x3075e0(0x180)]===_0x3075e0(0x16c)&&_0x367497[_0x3075e0(0x174)]!==undefined&&(_0x2258cd+=a81_0x63b894[_0x3075e0(0x177)]('\x20('+formatRows(_0x367497[_0x3075e0(0x174)])+')'));}_0x52ab82[_0x3075e0(0x185)](_0x2258cd);if(_0x367497[_0x3075e0(0x17a)]&&_0x367497[_0x3075e0(0x17a)]['length']>0x0){let _0x1099df;if(_0x2fc3fe===0x0)_0x1099df='';else _0x1ef595[_0x3075e0(0x186)]?_0x1099df=_0x4cb7c2+(_0x517be1?_0x3075e0(0x170):a81_0x63b894[_0x3075e0(0x177)]('│')+_0x3075e0(0x188)):_0x1099df=_0x4cb7c2+_0x1ef595[_0x3075e0(0x17b)];const _0x5e7f26=formatTree(_0x367497[_0x3075e0(0x17a)],_0x1ef595,_0x2fc3fe+0x1,_0x1099df);_0x52ab82['push'](_0x5e7f26);}}return _0x52ab82['join']('\x0a');}export function formatFlatList(_0x4e776f,_0x88d516,_0x14fec5={}){const _0x74ca57=a81_0x4a0b,_0x412cbb={...DEFAULT_OPTIONS,..._0x14fec5},_0x273155=[];for(const _0x3f9b6a of _0x4e776f){_0x273155[_0x74ca57(0x185)]({'name':_0x3f9b6a[_0x74ca57(0x172)],'icon':_0x412cbb[_0x74ca57(0x182)]?'📁':'','metadata':undefined});}for(const _0x401c77 of _0x88d516){const _0x186755=_0x412cbb[_0x74ca57(0x16d)]&&_0x401c77[_0x74ca57(0x174)]!==undefined?a81_0x63b894['dim']('\x20('+formatRows(_0x401c77[_0x74ca57(0x174)])+')'):'';_0x273155['push']({'name':_0x401c77[_0x74ca57(0x172)],'icon':_0x412cbb[_0x74ca57(0x182)]?'🎯':'','metadata':_0x186755});}_0x273155[_0x74ca57(0x16a)]((_0x1aa4bd,_0x1291ff)=>_0x1aa4bd[_0x74ca57(0x172)][_0x74ca57(0x171)](_0x1291ff[_0x74ca57(0x172)]));if(_0x273155[_0x74ca57(0x173)]===0x0)return'(empty)';const _0x21d73f=_0x273155['map'](_0x44b2ce=>{const _0x393ffa=_0x74ca57,_0x5b6571=_0x44b2ce['icon']?_0x44b2ce[_0x393ffa(0x187)]+'\x20':'',_0x38f943=_0x44b2ce[_0x393ffa(0x178)]||'';return''+_0x5b6571+_0x44b2ce[_0x393ffa(0x172)]+_0x38f943;});return _0x21d73f[_0x74ca57(0x17c)]('\x0a');}
1
+ (function(_0x246033,_0x12a3d9){const _0x173af0=a81_0x1e9b,_0x476990=_0x246033();while(!![]){try{const _0x23c4f4=parseInt(_0x173af0(0x1f9))/0x1+parseInt(_0x173af0(0x1fb))/0x2*(parseInt(_0x173af0(0x1f7))/0x3)+-parseInt(_0x173af0(0x209))/0x4*(-parseInt(_0x173af0(0x1ee))/0x5)+parseInt(_0x173af0(0x207))/0x6+parseInt(_0x173af0(0x204))/0x7+parseInt(_0x173af0(0x210))/0x8*(-parseInt(_0x173af0(0x1ff))/0x9)+-parseInt(_0x173af0(0x203))/0xa*(parseInt(_0x173af0(0x1f3))/0xb);if(_0x23c4f4===_0x12a3d9)break;else _0x476990['push'](_0x476990['shift']());}catch(_0x4b8774){_0x476990['push'](_0x476990['shift']());}}}(a81_0x5658,0x7b410));import{formatRows}from'./formatters.js';function a81_0x1e9b(_0x48fa5d,_0x177006){const _0x565881=a81_0x5658();return a81_0x1e9b=function(_0x1e9b1f,_0x190d3d){_0x1e9b1f=_0x1e9b1f-0x1ed;let _0x395395=_0x565881[_0x1e9b1f];return _0x395395;},a81_0x1e9b(_0x48fa5d,_0x177006);}import a81_0x321d8a from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x122009,_0x3cb5f9={},_0x17fcb1=0x0,_0x274135=''){const _0x35f2e6=a81_0x1e9b,_0x45f726={...DEFAULT_OPTIONS,..._0x3cb5f9},_0x16eff2=[],_0x59f64e=[..._0x122009][_0x35f2e6(0x1f6)]((_0x59d4b0,_0x3b14d6)=>_0x59d4b0[_0x35f2e6(0x20d)][_0x35f2e6(0x1fa)](_0x3b14d6['name']));for(let _0x2fb3bd=0x0;_0x2fb3bd<_0x59f64e[_0x35f2e6(0x202)];_0x2fb3bd++){const _0x3a71de=_0x59f64e[_0x2fb3bd],_0x29684f=_0x2fb3bd===_0x59f64e[_0x35f2e6(0x202)]-0x1;let _0x54d9cb='';_0x17fcb1>0x0&&(_0x54d9cb+=_0x274135);_0x45f726['showTreeLines']&&_0x17fcb1>0x0&&(_0x54d9cb+=a81_0x321d8a['dim'](_0x29684f?_0x35f2e6(0x1fc):_0x35f2e6(0x1f2)));_0x45f726[_0x35f2e6(0x208)]&&(_0x54d9cb+=_0x3a71de[_0x35f2e6(0x1ef)]==='folder'?_0x35f2e6(0x205):_0x35f2e6(0x1f4));_0x54d9cb+=_0x3a71de['name'];if(_0x45f726[_0x35f2e6(0x1ed)]){if(_0x3a71de['type']===_0x35f2e6(0x212)){const _0x1eff70=[];_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f1)]&&_0x1eff70[_0x35f2e6(0x20f)](_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f1)]+_0x35f2e6(0x20a)+(_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f1)]!==0x1?'s':'')),_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f0)]&&_0x1eff70['push'](_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f0)]+_0x35f2e6(0x1f8)+(_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f0)]!==0x1?'s':'')),_0x1eff70[_0x35f2e6(0x202)]>0x0&&(_0x54d9cb+=a81_0x321d8a[_0x35f2e6(0x20b)]('\x20('+_0x1eff70[_0x35f2e6(0x211)](',\x20')+')'));}else _0x3a71de[_0x35f2e6(0x1ef)]==='segment'&&_0x3a71de[_0x35f2e6(0x200)]!==undefined&&(_0x54d9cb+=a81_0x321d8a[_0x35f2e6(0x20b)]('\x20('+formatRows(_0x3a71de[_0x35f2e6(0x200)])+')'));}_0x16eff2[_0x35f2e6(0x20f)](_0x54d9cb);if(_0x3a71de[_0x35f2e6(0x20e)]&&_0x3a71de[_0x35f2e6(0x20e)][_0x35f2e6(0x202)]>0x0){let _0x17e141;if(_0x17fcb1===0x0)_0x17e141='';else _0x45f726[_0x35f2e6(0x20c)]?_0x17e141=_0x274135+(_0x29684f?'\x20\x20\x20\x20':a81_0x321d8a['dim']('│')+'\x20\x20\x20'):_0x17e141=_0x274135+_0x45f726[_0x35f2e6(0x206)];const _0x333fc5=formatTree(_0x3a71de[_0x35f2e6(0x20e)],_0x45f726,_0x17fcb1+0x1,_0x17e141);_0x16eff2[_0x35f2e6(0x20f)](_0x333fc5);}}return _0x16eff2[_0x35f2e6(0x211)]('\x0a');}export function formatFlatList(_0x346d2f,_0x9bba67,_0x48031f={}){const _0x294e7d=a81_0x1e9b,_0x1f0b72={...DEFAULT_OPTIONS,..._0x48031f},_0x283434=[];for(const _0xb8aa5a of _0x346d2f){_0x283434[_0x294e7d(0x20f)]({'name':_0xb8aa5a[_0x294e7d(0x20d)],'icon':_0x1f0b72[_0x294e7d(0x208)]?'📁':'','metadata':undefined});}for(const _0x4ee21d of _0x9bba67){const _0x2696ea=_0x1f0b72[_0x294e7d(0x1ed)]&&_0x4ee21d[_0x294e7d(0x200)]!==undefined?a81_0x321d8a[_0x294e7d(0x20b)]('\x20('+formatRows(_0x4ee21d[_0x294e7d(0x200)])+')'):'';_0x283434['push']({'name':_0x4ee21d[_0x294e7d(0x20d)],'icon':_0x1f0b72[_0x294e7d(0x208)]?'🎯':'','metadata':_0x2696ea});}_0x283434[_0x294e7d(0x1f6)]((_0x94c27e,_0x23c619)=>_0x94c27e[_0x294e7d(0x20d)]['localeCompare'](_0x23c619['name']));if(_0x283434['length']===0x0)return _0x294e7d(0x1f5);const _0x53bf23=_0x283434[_0x294e7d(0x201)](_0x39ead0=>{const _0x54aec7=_0x294e7d,_0x503689=_0x39ead0[_0x54aec7(0x1fe)]?_0x39ead0['icon']+'\x20':'',_0x316df0=_0x39ead0['metadata']||'';return''+_0x503689+_0x39ead0[_0x54aec7(0x20d)]+_0x316df0;});return _0x53bf23['join']('\x0a');}function a81_0x5658(){const _0x513363=['32395dsxSwu','type','folderCount','segmentCount','├──\x20','24211TFtJYq','🎯\x20','(empty)','sort','3whsyYa','\x20folder','888506IXXlMP','localeCompare','1481902iQtsjE','└──\x20','metadata','icon','830781MiHbUx','population','map','length','12780dmGWfC','6687583xXIiCY','📁\x20','indent','5203734tHJPxQ','showIcons','88RKaIKw','\x20segment','dim','showTreeLines','name','children','push','24gqbvyN','join','folder','showMetadata'];a81_0x5658=function(){return _0x513363;};return a81_0x5658();}
@@ -1 +1 @@
1
- const a82_0x19f9cb=a82_0x2831;(function(_0x26969f,_0x511fc3){const _0x1df863=a82_0x2831,_0x5f111c=_0x26969f();while(!![]){try{const _0x1c97df=-parseInt(_0x1df863(0x198))/0x1*(parseInt(_0x1df863(0x1a4))/0x2)+parseInt(_0x1df863(0x1aa))/0x3*(parseInt(_0x1df863(0x1a2))/0x4)+parseInt(_0x1df863(0x1b4))/0x5+parseInt(_0x1df863(0x1b7))/0x6*(-parseInt(_0x1df863(0x1a1))/0x7)+-parseInt(_0x1df863(0x1b1))/0x8*(-parseInt(_0x1df863(0x1b8))/0x9)+parseInt(_0x1df863(0x1ba))/0xa*(-parseInt(_0x1df863(0x1ac))/0xb)+-parseInt(_0x1df863(0x1b9))/0xc*(-parseInt(_0x1df863(0x19b))/0xd);if(_0x1c97df===_0x511fc3)break;else _0x5f111c['push'](_0x5f111c['shift']());}catch(_0x55432e){_0x5f111c['push'](_0x5f111c['shift']());}}}(a82_0x2de9,0x31c7f));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';function a82_0x2831(_0x1da793,_0xa0e9d){const _0x2de911=a82_0x2de9();return a82_0x2831=function(_0x2831e2,_0x1d316c){_0x2831e2=_0x2831e2-0x196;let _0x286b6d=_0x2de911[_0x2831e2];return _0x286b6d;},a82_0x2831(_0x1da793,_0xa0e9d);}import{join}from'path';import{gt,valid}from'semver';import a82_0x1eb4b7 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x19f9cb(0x19c),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x1cdcf7=a82_0x19f9cb,_0x53aa4e=getCacheDir();return join(_0x53aa4e,_0x1cdcf7(0x1bc));}function readCache(){const _0x3dabd7=a82_0x19f9cb;try{const _0x46889f=getCacheFilePath(),_0x536634=readFileSync(_0x46889f,_0x3dabd7(0x1b5));return JSON[_0x3dabd7(0x1ae)](_0x536634);}catch{return null;}}function writeCache(_0x2787f8){const _0x5205a4=a82_0x19f9cb;try{const _0x558c2a=getCacheDir();mkdirSync(_0x558c2a,{'recursive':!![]});const _0x49aada={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2787f8},_0x59ed5f=getCacheFilePath();writeFileSync(_0x59ed5f,JSON[_0x5205a4(0x1a7)](_0x49aada,null,0x2),_0x5205a4(0x1b5));}catch{}}function isCacheValid(_0x332765){const _0x116559=a82_0x19f9cb;if(!_0x332765)return![];const _0x108eff=new Date(_0x332765['lastCheck'])[_0x116559(0x197)](),_0x2494f6=Date[_0x116559(0x1b0)]();return _0x2494f6-_0x108eff<CACHE_DURATION_MS;}function a82_0x2de9(){const _0x776bfc=['gray','3QKtIBp','yellow','4763wLsJBj','npm\x20install\x20-g\x20@treasuredata/tdx@latest','parse','currentVersion','now','232EYgFNp','stderr','statusCode','520525yqImbQ','utf-8','updateAvailable','6OlxyKT','3015uOQuDp','13644gpLJiX','1780aXPgPN','env','last_version_check','Request\x20timeout','cyan','getTime','172RKREHZ','Run:','NO_COLOR','2561ModDCp','https://registry.npmjs.org/@treasuredata/tdx/latest','end','version','error','green','1610231KSIDwt','1255588cDtPBK','dim','1636UQaYLo','data','\x0aRun:\x20','stringify','latestVersion'];a82_0x2de9=function(){return _0x776bfc;};return a82_0x2de9();}function fetchLatestVersion(){return new Promise((_0x359c09,_0x357f02)=>{const _0x56eb95=a82_0x2831,_0x1fd372=get(NPM_REGISTRY_URL,_0x989ec9=>{const _0xbad4e2=a82_0x2831;if(_0x989ec9[_0xbad4e2(0x1b3)]!==0xc8){clearTimeout(_0x50225f),_0x357f02(new Error('HTTP\x20'+_0x989ec9[_0xbad4e2(0x1b3)]));return;}let _0x189239='';_0x989ec9['on'](_0xbad4e2(0x1a5),_0x5aea3c=>{_0x189239+=_0x5aea3c;}),_0x989ec9['on'](_0xbad4e2(0x19d),()=>{const _0x4e7492=_0xbad4e2;clearTimeout(_0x50225f);try{const _0x5d0da0=JSON[_0x4e7492(0x1ae)](_0x189239);if(!valid(_0x5d0da0[_0x4e7492(0x19e)])){_0x357f02(new Error('Invalid\x20version\x20format'));return;}_0x359c09(_0x5d0da0[_0x4e7492(0x19e)]);}catch(_0x13f057){_0x357f02(_0x13f057);}});})['on'](_0x56eb95(0x19f),_0x2baf59=>{clearTimeout(_0x50225f),_0x357f02(_0x2baf59);}),_0x50225f=setTimeout(()=>{const _0x20dc9d=_0x56eb95;_0x1fd372['destroy'](),_0x357f02(new Error(_0x20dc9d(0x1bd)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x1fe808){const _0xe79d91=a82_0x19f9cb;try{const _0x36d5a4=readCache();if(isCacheValid(_0x36d5a4)){const _0x4a2d91=gt(_0x36d5a4['latestVersion'],_0x1fe808);return{'updateAvailable':_0x4a2d91,'currentVersion':_0x1fe808,'latestVersion':_0x36d5a4[_0xe79d91(0x1a8)]};}const _0x905a4=await fetchLatestVersion();writeCache(_0x905a4);const _0x900d4e=gt(_0x905a4,_0x1fe808);return{'updateAvailable':_0x900d4e,'currentVersion':_0x1fe808,'latestVersion':_0x905a4};}catch{return null;}}export function displayUpdateNotification(_0x2e01e7){const _0x1a7440=a82_0x19f9cb;if(!_0x2e01e7[_0x1a7440(0x1b6)])return;const _0x3e61b3=process[_0x1a7440(0x1b2)]['isTTY']&&!process[_0x1a7440(0x1bb)][_0x1a7440(0x19a)],_0x2d8189=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a9)]('→'):'→',_0x1ebc86=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a3)](_0x2e01e7[_0x1a7440(0x1af)]):_0x2e01e7[_0x1a7440(0x1af)],_0x4272fd=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a0)](_0x2e01e7['latestVersion']):_0x2e01e7[_0x1a7440(0x1a8)],_0x1bbcca=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x196)](_0x1a7440(0x1ad)):_0x1a7440(0x1ad),_0x326569=_0x3e61b3?'\x0a'+a82_0x1eb4b7[_0x1a7440(0x1ab)]('Update\x20available:')+'\x20'+_0x1ebc86+'\x20'+_0x2d8189+'\x20'+_0x4272fd+'\x0a'+a82_0x1eb4b7[_0x1a7440(0x1a3)](_0x1a7440(0x199))+'\x20'+_0x1bbcca+'\x0a':'\x0aUpdate\x20available:\x20'+_0x1ebc86+'\x20'+_0x2d8189+'\x20'+_0x4272fd+_0x1a7440(0x1a6)+_0x1bbcca+'\x0a';process[_0x1a7440(0x1b2)]['write'](_0x326569);}
1
+ const a82_0x1d05f9=a82_0x8c62;(function(_0x388c2f,_0x329bad){const _0x4b3f41=a82_0x8c62,_0xbc86c9=_0x388c2f();while(!![]){try{const _0x5327fe=-parseInt(_0x4b3f41(0x140))/0x1+-parseInt(_0x4b3f41(0x134))/0x2+parseInt(_0x4b3f41(0x14b))/0x3*(-parseInt(_0x4b3f41(0x143))/0x4)+-parseInt(_0x4b3f41(0x14a))/0x5+-parseInt(_0x4b3f41(0x144))/0x6+-parseInt(_0x4b3f41(0x14c))/0x7*(-parseInt(_0x4b3f41(0x151))/0x8)+parseInt(_0x4b3f41(0x138))/0x9;if(_0x5327fe===_0x329bad)break;else _0xbc86c9['push'](_0xbc86c9['shift']());}catch(_0x2ab6f5){_0xbc86c9['push'](_0xbc86c9['shift']());}}}(a82_0x515c,0xb3321));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';function a82_0x8c62(_0x45afd0,_0x4d17f7){const _0x515c9c=a82_0x515c();return a82_0x8c62=function(_0x8c627c,_0x94c0cd){_0x8c627c=_0x8c627c-0x130;let _0x39f572=_0x515c9c[_0x8c627c];return _0x39f572;},a82_0x8c62(_0x45afd0,_0x4d17f7);}import a82_0x24bdab from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x1d05f9(0x13f),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x440a61=getCacheDir();return join(_0x440a61,'last_version_check');}function readCache(){const _0x310cd2=a82_0x1d05f9;try{const _0xd543cc=getCacheFilePath(),_0x9abf99=readFileSync(_0xd543cc,_0x310cd2(0x14d));return JSON[_0x310cd2(0x14e)](_0x9abf99);}catch{return null;}}function writeCache(_0x5a20c9){const _0x4b1922=a82_0x1d05f9;try{const _0x4d3dc9=getCacheDir();mkdirSync(_0x4d3dc9,{'recursive':!![]});const _0x5c4483={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x5a20c9},_0x41b739=getCacheFilePath();writeFileSync(_0x41b739,JSON[_0x4b1922(0x13d)](_0x5c4483,null,0x2),_0x4b1922(0x14d));}catch{}}function a82_0x515c(){const _0x11de15=['8DRgiYn','now','currentVersion','latestVersion','getTime','Update\x20available:','1310488XnCjZC','NO_COLOR','stderr','dim','37152792BvWVPv','env','Request\x20timeout','gray','statusCode','stringify','\x0aRun:\x20','https://registry.npmjs.org/@treasuredata/tdx/latest','1328270eEHxBf','Run:','version','200cslqsy','6633948Bmtksz','npm\x20install\x20-g\x20@treasuredata/tdx@latest','error','write','green','isTTY','1600875hpBhAF','41559uARpQo','4955258ahAeZG','utf-8','parse','destroy','updateAvailable'];a82_0x515c=function(){return _0x11de15;};return a82_0x515c();}function isCacheValid(_0x89608e){const _0x4b4388=a82_0x1d05f9;if(!_0x89608e)return![];const _0x44a8d5=new Date(_0x89608e['lastCheck'])[_0x4b4388(0x132)](),_0x13ae8d=Date[_0x4b4388(0x152)]();return _0x13ae8d-_0x44a8d5<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x17f49b,_0x4defef)=>{const _0x3b3e95=a82_0x8c62,_0x245dfa=get(NPM_REGISTRY_URL,_0x21e1a9=>{const _0x283dce=a82_0x8c62;if(_0x21e1a9[_0x283dce(0x13c)]!==0xc8){clearTimeout(_0x5ee1e4),_0x4defef(new Error('HTTP\x20'+_0x21e1a9['statusCode']));return;}let _0x4af184='';_0x21e1a9['on']('data',_0x5d8a77=>{_0x4af184+=_0x5d8a77;}),_0x21e1a9['on']('end',()=>{const _0x3edd35=_0x283dce;clearTimeout(_0x5ee1e4);try{const _0x2ef2c0=JSON[_0x3edd35(0x14e)](_0x4af184);if(!valid(_0x2ef2c0[_0x3edd35(0x142)])){_0x4defef(new Error('Invalid\x20version\x20format'));return;}_0x17f49b(_0x2ef2c0[_0x3edd35(0x142)]);}catch(_0x2f629f){_0x4defef(_0x2f629f);}});})['on'](_0x3b3e95(0x146),_0x40fb79=>{clearTimeout(_0x5ee1e4),_0x4defef(_0x40fb79);}),_0x5ee1e4=setTimeout(()=>{const _0x319eca=_0x3b3e95;_0x245dfa[_0x319eca(0x14f)](),_0x4defef(new Error(_0x319eca(0x13a)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x37c472){const _0x4e99fc=a82_0x1d05f9;try{const _0x47a039=readCache();if(isCacheValid(_0x47a039)){const _0x50a7b2=gt(_0x47a039['latestVersion'],_0x37c472);return{'updateAvailable':_0x50a7b2,'currentVersion':_0x37c472,'latestVersion':_0x47a039[_0x4e99fc(0x131)]};}const _0x5ad5c0=await fetchLatestVersion();writeCache(_0x5ad5c0);const _0x5b3fb4=gt(_0x5ad5c0,_0x37c472);return{'updateAvailable':_0x5b3fb4,'currentVersion':_0x37c472,'latestVersion':_0x5ad5c0};}catch{return null;}}export function displayUpdateNotification(_0x4bea55){const _0x20b960=a82_0x1d05f9;if(!_0x4bea55[_0x20b960(0x150)])return;const _0x311ddd=process[_0x20b960(0x136)][_0x20b960(0x149)]&&!process[_0x20b960(0x139)][_0x20b960(0x135)],_0x465217=_0x311ddd?a82_0x24bdab[_0x20b960(0x13b)]('→'):'→',_0x2b0bbb=_0x311ddd?a82_0x24bdab['dim'](_0x4bea55[_0x20b960(0x130)]):_0x4bea55['currentVersion'],_0xfb349e=_0x311ddd?a82_0x24bdab[_0x20b960(0x148)](_0x4bea55[_0x20b960(0x131)]):_0x4bea55[_0x20b960(0x131)],_0xfba5a4=_0x311ddd?a82_0x24bdab['cyan'](_0x20b960(0x145)):'npm\x20install\x20-g\x20@treasuredata/tdx@latest',_0x335669=_0x311ddd?'\x0a'+a82_0x24bdab['yellow'](_0x20b960(0x133))+'\x20'+_0x2b0bbb+'\x20'+_0x465217+'\x20'+_0xfb349e+'\x0a'+a82_0x24bdab[_0x20b960(0x137)](_0x20b960(0x141))+'\x20'+_0xfba5a4+'\x0a':'\x0aUpdate\x20available:\x20'+_0x2b0bbb+'\x20'+_0x465217+'\x20'+_0xfb349e+_0x20b960(0x13e)+_0xfba5a4+'\x0a';process[_0x20b960(0x136)][_0x20b960(0x147)](_0x335669);}
@@ -1 +1 @@
1
- function a83_0xfa44(){const _0xbc2973=['8960544yWpHNZ','5320104CazQmy','3585195kQYdwt','2wsnfxe','1193196nhMWWM','4611204fERofl','startsWith','1892107RhioAO','932142vSksjP','8wNehpc'];a83_0xfa44=function(){return _0xbc2973;};return a83_0xfa44();}(function(_0x3e011e,_0x2ea95a){const _0x1b1e77=a83_0x4c03,_0x546851=_0x3e011e();while(!![]){try{const _0x453b76=parseInt(_0x1b1e77(0x1da))/0x1*(-parseInt(_0x1b1e77(0x1df))/0x2)+-parseInt(_0x1b1e77(0x1db))/0x3+parseInt(_0x1b1e77(0x1e2))/0x4+parseInt(_0x1b1e77(0x1e3))/0x5+-parseInt(_0x1b1e77(0x1dc))/0x6+-parseInt(_0x1b1e77(0x1de))/0x7+-parseInt(_0x1b1e77(0x1e0))/0x8*(-parseInt(_0x1b1e77(0x1e1))/0x9);if(_0x453b76===_0x2ea95a)break;else _0x546851['push'](_0x546851['shift']());}catch(_0x3b38ec){_0x546851['push'](_0x546851['shift']());}}}(a83_0xfa44,0xa48b4));function a83_0x4c03(_0x185a52,_0x1a4851){const _0xfa4465=a83_0xfa44();return a83_0x4c03=function(_0x4c031e,_0x57d91c){_0x4c031e=_0x4c031e-0x1da;let _0x38e25b=_0xfa4465[_0x4c031e];return _0x38e25b;},a83_0x4c03(_0x185a52,_0x1a4851);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x1f2f7e){const _0x3c4f46=a83_0x4c03;if(_0x1f2f7e==='.digdag')return!![];if(_0x1f2f7e[_0x3c4f46(0x1dd)]('.'))return![];return!![];}
1
+ const a83_0x5b80eb=a83_0x3b72;function a83_0x3b72(_0x31df92,_0x540efe){const _0x2fe789=a83_0x2fe7();return a83_0x3b72=function(_0x3b7284,_0x2d6739){_0x3b7284=_0x3b7284-0x15e;let _0x5e6268=_0x2fe789[_0x3b7284];return _0x5e6268;},a83_0x3b72(_0x31df92,_0x540efe);}function a83_0x2fe7(){const _0x5558d2=['13393184YnwvzM','1wzWAhN','429uePnGU','5879622IYHRid','36cBiZeq','4318014hcicCb','2898600QsxHUX','515580vCfymD','startsWith','.digdag','580269IfyPwM','.dig','9OYNUJO','4859725Yifvms'];a83_0x2fe7=function(){return _0x5558d2;};return a83_0x2fe7();}(function(_0x262209,_0x1e0768){const _0x2fb6be=a83_0x3b72,_0x46f69b=_0x262209();while(!![]){try{const _0x3cb552=parseInt(_0x2fb6be(0x160))/0x1*(parseInt(_0x2fb6be(0x165))/0x2)+parseInt(_0x2fb6be(0x169))/0x3*(-parseInt(_0x2fb6be(0x163))/0x4)+parseInt(_0x2fb6be(0x15e))/0x5+parseInt(_0x2fb6be(0x164))/0x6+-parseInt(_0x2fb6be(0x162))/0x7+-parseInt(_0x2fb6be(0x15f))/0x8*(parseInt(_0x2fb6be(0x16b))/0x9)+-parseInt(_0x2fb6be(0x166))/0xa*(-parseInt(_0x2fb6be(0x161))/0xb);if(_0x3cb552===_0x1e0768)break;else _0x46f69b['push'](_0x46f69b['shift']());}catch(_0x505c66){_0x46f69b['push'](_0x46f69b['shift']());}}}(a83_0x2fe7,0xdaf07));export const WORKFLOW_FILE_EXTENSION=a83_0x5b80eb(0x16a);export function shouldIncludeInArchive(_0x349f48){const _0x93a401=a83_0x5b80eb;if(_0x349f48===_0x93a401(0x168))return!![];if(_0x349f48[_0x93a401(0x167)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
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": {