@treasuredata/tdx 0.26.4 → 0.26.6

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 (169) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-command.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/journey-command.js +1 -1
  23. package/dist/commands/journey-validate-command.js +1 -1
  24. package/dist/commands/llm-command.js +1 -1
  25. package/dist/commands/mcp-command.js +1 -1
  26. package/dist/commands/parent-segment-command.js +1 -1
  27. package/dist/commands/profile-command.js +1 -1
  28. package/dist/commands/profiles-command.js +1 -1
  29. package/dist/commands/query-command.js +1 -1
  30. package/dist/commands/schedule-command.js +1 -1
  31. package/dist/commands/segment-command.js +1 -1
  32. package/dist/commands/segment-create-command.js +1 -1
  33. package/dist/commands/segment-fields-command.js +1 -1
  34. package/dist/commands/segment-pull-command.js +1 -1
  35. package/dist/commands/segment-push-command.js +1 -1
  36. package/dist/commands/segment-update-command.js +1 -1
  37. package/dist/commands/segment-use-command.js +1 -1
  38. package/dist/commands/segment-validate-command.js +1 -1
  39. package/dist/commands/segments.js +1 -1
  40. package/dist/commands/show.js +1 -1
  41. package/dist/commands/status-command.js +1 -1
  42. package/dist/commands/tables.js +1 -1
  43. package/dist/commands/unset-command.js +1 -1
  44. package/dist/commands/use-command.js +1 -1
  45. package/dist/commands/user-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/command-output.js +1 -1
  49. package/dist/core/config.js +1 -1
  50. package/dist/core/connection-cache.js +1 -1
  51. package/dist/core/constants.js +1 -1
  52. package/dist/core/credential-cache.js +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/keychain.js +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/project-config.js +1 -1
  57. package/dist/core/session.js +1 -1
  58. package/dist/core/user-cache.js +1 -1
  59. package/dist/core/version.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/mcp/server.js +1 -1
  62. package/dist/mcp/tools/index.js +1 -1
  63. package/dist/mcp/tools/tdx-run.js +1 -1
  64. package/dist/mcp/tools/tdx-search.js +1 -1
  65. package/dist/mcp/utils.js +1 -1
  66. package/dist/proxy/claude-usage-tracker.js +1 -1
  67. package/dist/proxy/passthrough-server.js +1 -1
  68. package/dist/proxy/sse-usage-parser.js +1 -1
  69. package/dist/sdk/agent/agent-config.js +1 -1
  70. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  71. package/dist/sdk/agent/agent-yaml.js +1 -1
  72. package/dist/sdk/agent/test/evaluator.js +1 -1
  73. package/dist/sdk/agent/test/executor.js +1 -1
  74. package/dist/sdk/agent/test/index.js +1 -1
  75. package/dist/sdk/agent/test/output.js +1 -1
  76. package/dist/sdk/agent/test/parser.js +1 -1
  77. package/dist/sdk/api.js +1 -1
  78. package/dist/sdk/client/cdp-api-client.js +1 -1
  79. package/dist/sdk/client/endpoints.js +1 -1
  80. package/dist/sdk/client/engage-api-client.js +1 -1
  81. package/dist/sdk/client/http-client.js +1 -1
  82. package/dist/sdk/client/llm-api-client.js +1 -1
  83. package/dist/sdk/client/rate-limiter.js +1 -1
  84. package/dist/sdk/client/td-api-client.js +1 -1
  85. package/dist/sdk/client/trino-api-client.js +1 -1
  86. package/dist/sdk/client/workflow-client.js +1 -1
  87. package/dist/sdk/connection-validator.js +1 -1
  88. package/dist/sdk/connection.js +1 -1
  89. package/dist/sdk/engage.js +1 -1
  90. package/dist/sdk/errors.js +1 -1
  91. package/dist/sdk/index.js +1 -1
  92. package/dist/sdk/io/index.js +1 -1
  93. package/dist/sdk/io/node-filesystem.js +1 -1
  94. package/dist/sdk/job.js +1 -1
  95. package/dist/sdk/journey.js +1 -1
  96. package/dist/sdk/llm/chat-cache.js +1 -1
  97. package/dist/sdk/llm/index.js +1 -1
  98. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  99. package/dist/sdk/llm/model-factors.js +1 -1
  100. package/dist/sdk/personalization.js +1 -1
  101. package/dist/sdk/query/index.js +1 -1
  102. package/dist/sdk/query/sql-parser.js +1 -1
  103. package/dist/sdk/realtime.js +1 -1
  104. package/dist/sdk/schedule.js +1 -1
  105. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  106. package/dist/sdk/segment/fields-display.js +1 -1
  107. package/dist/sdk/segment/file-discovery.js +1 -1
  108. package/dist/sdk/segment/journey-utils.js +1 -1
  109. package/dist/sdk/segment/journey-validator.js +1 -1
  110. package/dist/sdk/segment/journey-yaml.js +1 -1
  111. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  112. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  113. package/dist/sdk/segment/pull-workflow.js +1 -1
  114. package/dist/sdk/segment/push-recovery.js +1 -1
  115. package/dist/sdk/segment/push-workflow.js +1 -1
  116. package/dist/sdk/segment/resolution-context.js +1 -1
  117. package/dist/sdk/segment/segment-path-parser.js +1 -1
  118. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  119. package/dist/sdk/segment/target-resolution.js +1 -1
  120. package/dist/sdk/segment/tdx-config.js +1 -1
  121. package/dist/sdk/segment/validate-files.js +1 -1
  122. package/dist/sdk/segment/yaml-validator.js +1 -1
  123. package/dist/sdk/segment.js +1 -1
  124. package/dist/sdk/types/index.js +1 -1
  125. package/dist/sdk/types/progress.js +1 -1
  126. package/dist/sdk/user.js +1 -1
  127. package/dist/sdk/util/format-detector.js +1 -1
  128. package/dist/sdk/util/formatters.js +1 -1
  129. package/dist/sdk/util/index.js +1 -1
  130. package/dist/sdk/util/tree-formatter.js +1 -1
  131. package/dist/sdk/workflow/archive-validation.js +1 -1
  132. package/dist/sdk/workflow/clone-workflow.js +1 -1
  133. package/dist/sdk/workflow/index.js +1 -1
  134. package/dist/sdk/workflow/pull-workflow.js +1 -1
  135. package/dist/sdk/workflow/push-workflow.js +1 -1
  136. package/dist/sdk/workflow/tdx-config.js +1 -1
  137. package/dist/sdk/workflow/workflow-utils.js +1 -1
  138. package/dist/test-utils/command-runner.js +1 -1
  139. package/dist/test-utils/factories.js +1 -1
  140. package/dist/test-utils/fixtures.js +1 -1
  141. package/dist/test-utils/http-mock.js +1 -1
  142. package/dist/test-utils/index.js +1 -1
  143. package/dist/utils/async.js +1 -1
  144. package/dist/utils/colors.js +1 -1
  145. package/dist/utils/diff.js +1 -1
  146. package/dist/utils/file-permissions.js +1 -1
  147. package/dist/utils/global-cache.js +1 -1
  148. package/dist/utils/json-loader.js +1 -1
  149. package/dist/utils/local-cache.js +1 -1
  150. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  151. package/dist/utils/logger/formatters/index.js +1 -1
  152. package/dist/utils/logger/handlers/console-handler.js +1 -1
  153. package/dist/utils/logger/handlers/file-handler.js +1 -1
  154. package/dist/utils/logger/handlers/index.js +1 -1
  155. package/dist/utils/logger/handlers/null-handler.js +1 -1
  156. package/dist/utils/logger/index.js +1 -1
  157. package/dist/utils/logger/logger.js +1 -1
  158. package/dist/utils/logger/types.js +1 -1
  159. package/dist/utils/option-validation.js +1 -1
  160. package/dist/utils/port.js +1 -1
  161. package/dist/utils/process.js +1 -1
  162. package/dist/utils/prompt.js +1 -1
  163. package/dist/utils/spinner.js +1 -1
  164. package/dist/utils/sse-parser.js +1 -1
  165. package/dist/utils/string-utils.js +1 -1
  166. package/dist/utils/table-ref-parser.js +1 -1
  167. package/dist/utils/tdx-logger.js +1 -1
  168. package/dist/utils/version-check.js +1 -1
  169. package/package.json +1 -1
@@ -1 +1 @@
1
- const a170_0x3f6874=a170_0x466d;(function(_0x2c5625,_0x5749ed){const _0x2a4211=a170_0x466d,_0x18fe1f=_0x2c5625();while(!![]){try{const _0x6434e5=-parseInt(_0x2a4211(0x151))/0x1+-parseInt(_0x2a4211(0x14f))/0x2+parseInt(_0x2a4211(0x15a))/0x3*(-parseInt(_0x2a4211(0x141))/0x4)+-parseInt(_0x2a4211(0x13f))/0x5+-parseInt(_0x2a4211(0x143))/0x6*(-parseInt(_0x2a4211(0x16b))/0x7)+parseInt(_0x2a4211(0x14d))/0x8+-parseInt(_0x2a4211(0x169))/0x9*(-parseInt(_0x2a4211(0x176))/0xa);if(_0x6434e5===_0x5749ed)break;else _0x18fe1f['push'](_0x18fe1f['shift']());}catch(_0x54b63c){_0x18fe1f['push'](_0x18fe1f['shift']());}}}(a170_0x516d,0x6ad41));function a170_0x466d(_0x2c026f,_0x572905){_0x2c026f=_0x2c026f-0x13b;const _0x516d3f=a170_0x516d();let _0x466d4a=_0x516d3f[_0x2c026f];return _0x466d4a;}import{LogLevel as a170_0x16b9e2,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a170_0x16b9e2[a170_0x3f6874(0x156)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a170_0x516d(){const _0x248a2d=['function','ERROR','message','842512MCGwLj','has','1517226VpgXBM','close','196410BApHdq','split','error','TRACE','format','INFO',']\x20[','shutdown','getEffectiveLevel','33UQzynR','loggers','debug','timestamp','level','push','slice','set','stack','setLogLevel','clearHandlers','setDefaultLevel','reset','warn','DEBUG','27ZFbVZA','get','8491htqslU','pendingRecords','toISOString','log','join','length','isInitialized','defaultLevel','levelOverrides','clear','dispatch','8184720hrkYsO','component','name','addHandler','shouldLog','3809795svkbEs','handlers','184312NCvaTM','formatter','498KXOoFU','init','map','trace','stringify','initialized','string'];a170_0x516d=function(){return _0x248a2d;};return a170_0x516d();}function safeStringify(_0x250897){const _0x4df0b7=a170_0x3f6874;if(typeof _0x250897===_0x4df0b7(0x149))return _0x250897;if(_0x250897 instanceof Error)return _0x250897[_0x4df0b7(0x162)]||_0x250897[_0x4df0b7(0x13c)]+':\x20'+_0x250897['message'];try{return JSON[_0x4df0b7(0x147)](_0x250897,(_0x20f027,_0x29b0b8)=>{const _0x3815f5=_0x4df0b7;if(_0x29b0b8 instanceof Error)return{'name':_0x29b0b8[_0x3815f5(0x13c)],'message':_0x29b0b8[_0x3815f5(0x14c)],'stack':_0x29b0b8[_0x3815f5(0x162)],'cause':_0x29b0b8['cause']};return _0x29b0b8;});}catch{return String(_0x250897);}}export class Logger{[a170_0x3f6874(0x13b)];constructor(_0x10e567){this['component']=_0x10e567;}static['of'](_0x1a07d3){const _0x4c4151=a170_0x3f6874,_0xd7d9d9=typeof _0x1a07d3===_0x4c4151(0x149)?_0x1a07d3:_0x1a07d3['name'];let _0x537358=state[_0x4c4151(0x15b)]['get'](_0xd7d9d9);return!_0x537358&&(_0x537358=new Logger(_0xd7d9d9),state['loggers'][_0x4c4151(0x161)](_0xd7d9d9,_0x537358)),_0x537358;}static async[a170_0x3f6874(0x144)](_0x2cfac9={}){const _0x418c36=a170_0x3f6874;state['defaultLevel']=_0x2cfac9[_0x418c36(0x172)]??a170_0x16b9e2['INFO'],state[_0x418c36(0x140)]=_0x2cfac9[_0x418c36(0x140)]??[],state[_0x418c36(0x142)]=_0x2cfac9[_0x418c36(0x142)]??null,state[_0x418c36(0x173)][_0x418c36(0x174)]();if(_0x2cfac9[_0x418c36(0x173)])for(const [_0x10febc,_0x352543]of Object['entries'](_0x2cfac9['levelOverrides'])){state[_0x418c36(0x173)][_0x418c36(0x161)](_0x10febc,_0x352543);}for(const _0x4bc03f of state[_0x418c36(0x140)]){_0x4bc03f['init']&&await _0x4bc03f['init']();}state[_0x418c36(0x148)]=!![];for(const _0x4747c0 of state[_0x418c36(0x16c)]){Logger[_0x418c36(0x175)](_0x4747c0);}state[_0x418c36(0x16c)]=[];}static[a170_0x3f6874(0x163)](_0x172a0,_0x4c3041){const _0x736fa7=a170_0x3f6874;state[_0x736fa7(0x173)]['set'](_0x172a0,_0x4c3041);}static[a170_0x3f6874(0x165)](_0x578ca9){const _0x8dbc5e=a170_0x3f6874;state[_0x8dbc5e(0x172)]=_0x578ca9;}static[a170_0x3f6874(0x13d)](_0x5591c7){const _0x7b735b=a170_0x3f6874;state['handlers'][_0x7b735b(0x15f)](_0x5591c7),state[_0x7b735b(0x148)]&&_0x5591c7[_0x7b735b(0x144)]&&_0x5591c7[_0x7b735b(0x144)]();}static[a170_0x3f6874(0x164)](){state['handlers']=[];}static async[a170_0x3f6874(0x158)](){const _0x3fb06c=a170_0x3f6874;for(const _0xfa758a of state[_0x3fb06c(0x140)]){_0xfa758a['close']&&await _0xfa758a[_0x3fb06c(0x150)]();}state[_0x3fb06c(0x140)]=[],state[_0x3fb06c(0x148)]=![],state[_0x3fb06c(0x15b)][_0x3fb06c(0x174)](),state['pendingRecords']=[];}static[a170_0x3f6874(0x166)](){const _0x4eadf4=a170_0x3f6874;state[_0x4eadf4(0x148)]=![],state[_0x4eadf4(0x172)]=a170_0x16b9e2['INFO'],state['levelOverrides'][_0x4eadf4(0x174)](),state['handlers']=[],state[_0x4eadf4(0x142)]=null,state['loggers'][_0x4eadf4(0x174)](),state[_0x4eadf4(0x16c)]=[];}static[a170_0x3f6874(0x171)](){const _0x396f76=a170_0x3f6874;return state[_0x396f76(0x148)];}static['getEffectiveLevel'](_0x5c537e){const _0x206905=a170_0x3f6874;if(state['levelOverrides'][_0x206905(0x14e)](_0x5c537e))return state[_0x206905(0x173)][_0x206905(0x16a)](_0x5c537e);const _0x1da4cf=_0x5c537e[_0x206905(0x152)]('.');for(let _0x4d1193=_0x1da4cf[_0x206905(0x170)]-0x1;_0x4d1193>0x0;_0x4d1193--){const _0xa5dbe3=_0x1da4cf[_0x206905(0x160)](0x0,_0x4d1193)['join']('.');if(state[_0x206905(0x173)][_0x206905(0x14e)](_0xa5dbe3))return state['levelOverrides']['get'](_0xa5dbe3);}return state[_0x206905(0x172)];}[a170_0x3f6874(0x13e)](_0x4532f6){const _0x2b35da=a170_0x3f6874,_0x2474ae=Logger[_0x2b35da(0x159)](this[_0x2b35da(0x13b)]);return _0x4532f6>=_0x2474ae;}static['dispatch'](_0x3c1edf){const _0x5c8253=a170_0x3f6874;for(const _0x40359f of state[_0x5c8253(0x140)]){_0x40359f['handle'](_0x3c1edf);}}[a170_0x3f6874(0x16e)](_0x2ef25e,_0x496c7e){const _0x3b28a8=a170_0x3f6874;if(!this[_0x3b28a8(0x13e)](_0x2ef25e))return;const _0x390819=_0x496c7e[_0x3b28a8(0x145)](_0x14caa0=>typeof _0x14caa0===_0x3b28a8(0x14a)?_0x14caa0():_0x14caa0),_0x737989=_0x390819[_0x3b28a8(0x145)](safeStringify)[_0x3b28a8(0x16f)]('\x20'),_0x12808c={'timestamp':new Date(),'level':_0x2ef25e,'component':this['component'],'message':_0x737989};if(!state['initialized']){state[_0x3b28a8(0x16c)][_0x3b28a8(0x170)]<MAX_PENDING_RECORDS&&state[_0x3b28a8(0x16c)][_0x3b28a8(0x15f)](_0x12808c);return;}Logger[_0x3b28a8(0x175)](_0x12808c);}[a170_0x3f6874(0x146)](..._0x46fa8c){const _0x17fe72=a170_0x3f6874;this[_0x17fe72(0x16e)](a170_0x16b9e2[_0x17fe72(0x154)],_0x46fa8c);}[a170_0x3f6874(0x15c)](..._0x36ad0b){const _0x54563f=a170_0x3f6874;this[_0x54563f(0x16e)](a170_0x16b9e2[_0x54563f(0x168)],_0x36ad0b);}['info'](..._0x586e06){const _0x569411=a170_0x3f6874;this[_0x569411(0x16e)](a170_0x16b9e2[_0x569411(0x156)],_0x586e06);}[a170_0x3f6874(0x167)](..._0x22cf4e){const _0x44a8b6=a170_0x3f6874;this[_0x44a8b6(0x16e)](a170_0x16b9e2['WARN'],_0x22cf4e);}[a170_0x3f6874(0x153)](..._0x5cde43){const _0x30710a=a170_0x3f6874;this[_0x30710a(0x16e)](a170_0x16b9e2[_0x30710a(0x14b)],_0x5cde43);}static['getFormatter'](){const _0x649b98=a170_0x3f6874;return state[_0x649b98(0x142)];}static[a170_0x3f6874(0x155)](_0x10941f){const _0x385d11=a170_0x3f6874;if(state['formatter'])return state['formatter'][_0x385d11(0x155)](_0x10941f);return _0x10941f[_0x385d11(0x15d)][_0x385d11(0x16d)]()+'\x20['+logLevelToString(_0x10941f[_0x385d11(0x15e)])+_0x385d11(0x157)+_0x10941f[_0x385d11(0x13b)]+']\x20'+_0x10941f[_0x385d11(0x14c)];}}
1
+ function a170_0x558f(_0x3bdc4d,_0x2056d1){_0x3bdc4d=_0x3bdc4d-0xdb;const _0x2a2d1b=a170_0x2a2d();let _0x558f0d=_0x2a2d1b[_0x3bdc4d];return _0x558f0d;}const a170_0x38e70a=a170_0x558f;(function(_0x2b97de,_0x53bc22){const _0x4731c4=a170_0x558f,_0x3d5282=_0x2b97de();while(!![]){try{const _0x134628=parseInt(_0x4731c4(0x104))/0x1+-parseInt(_0x4731c4(0xf9))/0x2+parseInt(_0x4731c4(0xe5))/0x3*(parseInt(_0x4731c4(0x10d))/0x4)+-parseInt(_0x4731c4(0x111))/0x5+-parseInt(_0x4731c4(0x10c))/0x6+-parseInt(_0x4731c4(0x109))/0x7*(parseInt(_0x4731c4(0xec))/0x8)+-parseInt(_0x4731c4(0xef))/0x9*(-parseInt(_0x4731c4(0x106))/0xa);if(_0x134628===_0x53bc22)break;else _0x3d5282['push'](_0x3d5282['shift']());}catch(_0x170653){_0x3d5282['push'](_0x3d5282['shift']());}}}(a170_0x2a2d,0xecc46));import{LogLevel as a170_0x40fa63,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a170_0x40fa63[a170_0x38e70a(0xe4)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a170_0x2a2d(){const _0x2c45d3=['WARN',']\x20[','initialized','levelOverrides','split','194895qSUyOS','log','1090AJUqAp','has','cause','15379LTpDlj','warn','handle','1013958eqDiHw','14464byqAaU','map','pendingRecords','trace','3499300ziNYEW','getEffectiveLevel','ERROR','length','reset','slice','timestamp','message','component','close','handlers','name','info','INFO','1335HkHeWc','defaultLevel','toISOString','dispatch','formatter','addHandler','set','976QIISep','clear','stack','65466fbqzhx','stringify','format','string','entries','push','get','level','loggers','TRACE','980392umrJxl','shutdown','init','setLogLevel','isInitialized','error'];a170_0x2a2d=function(){return _0x2c45d3;};return a170_0x2a2d();}function safeStringify(_0x28cf5c){const _0xe4b08e=a170_0x38e70a;if(typeof _0x28cf5c===_0xe4b08e(0xf2))return _0x28cf5c;if(_0x28cf5c instanceof Error)return _0x28cf5c[_0xe4b08e(0xee)]||_0x28cf5c['name']+':\x20'+_0x28cf5c[_0xe4b08e(0xde)];try{return JSON[_0xe4b08e(0xf0)](_0x28cf5c,(_0x3e7be1,_0x39bc2c)=>{const _0x3ecf4c=_0xe4b08e;if(_0x39bc2c instanceof Error)return{'name':_0x39bc2c[_0x3ecf4c(0xe2)],'message':_0x39bc2c[_0x3ecf4c(0xde)],'stack':_0x39bc2c[_0x3ecf4c(0xee)],'cause':_0x39bc2c[_0x3ecf4c(0x108)]};return _0x39bc2c;});}catch{return String(_0x28cf5c);}}export class Logger{[a170_0x38e70a(0xdf)];constructor(_0x33aef4){const _0x2ae6ea=a170_0x38e70a;this[_0x2ae6ea(0xdf)]=_0x33aef4;}static['of'](_0x33c175){const _0x24701e=a170_0x38e70a,_0x1c2bfa=typeof _0x33c175==='string'?_0x33c175:_0x33c175[_0x24701e(0xe2)];let _0x5a49c1=state[_0x24701e(0xf7)][_0x24701e(0xf5)](_0x1c2bfa);return!_0x5a49c1&&(_0x5a49c1=new Logger(_0x1c2bfa),state[_0x24701e(0xf7)][_0x24701e(0xeb)](_0x1c2bfa,_0x5a49c1)),_0x5a49c1;}static async[a170_0x38e70a(0xfb)](_0x4f1489={}){const _0x459fea=a170_0x38e70a;state[_0x459fea(0xe6)]=_0x4f1489['defaultLevel']??a170_0x40fa63[_0x459fea(0xe4)],state[_0x459fea(0xe1)]=_0x4f1489[_0x459fea(0xe1)]??[],state[_0x459fea(0xe9)]=_0x4f1489[_0x459fea(0xe9)]??null,state[_0x459fea(0x102)][_0x459fea(0xed)]();if(_0x4f1489[_0x459fea(0x102)])for(const [_0x546b2d,_0x3f7562]of Object[_0x459fea(0xf3)](_0x4f1489[_0x459fea(0x102)])){state[_0x459fea(0x102)][_0x459fea(0xeb)](_0x546b2d,_0x3f7562);}for(const _0x59b7a7 of state[_0x459fea(0xe1)]){_0x59b7a7[_0x459fea(0xfb)]&&await _0x59b7a7[_0x459fea(0xfb)]();}state[_0x459fea(0x101)]=!![];for(const _0x17f295 of state[_0x459fea(0x10f)]){Logger[_0x459fea(0xe8)](_0x17f295);}state[_0x459fea(0x10f)]=[];}static[a170_0x38e70a(0xfc)](_0x180333,_0x6bb31f){state['levelOverrides']['set'](_0x180333,_0x6bb31f);}static['setDefaultLevel'](_0x4fa2a1){state['defaultLevel']=_0x4fa2a1;}static[a170_0x38e70a(0xea)](_0x30a50a){const _0x36b379=a170_0x38e70a;state[_0x36b379(0xe1)][_0x36b379(0xf4)](_0x30a50a),state[_0x36b379(0x101)]&&_0x30a50a[_0x36b379(0xfb)]&&_0x30a50a[_0x36b379(0xfb)]();}static['clearHandlers'](){const _0x17e940=a170_0x38e70a;state[_0x17e940(0xe1)]=[];}static async[a170_0x38e70a(0xfa)](){const _0x3f414c=a170_0x38e70a;for(const _0x455569 of state[_0x3f414c(0xe1)]){_0x455569[_0x3f414c(0xe0)]&&await _0x455569[_0x3f414c(0xe0)]();}state[_0x3f414c(0xe1)]=[],state['initialized']=![],state[_0x3f414c(0xf7)][_0x3f414c(0xed)](),state[_0x3f414c(0x10f)]=[];}static[a170_0x38e70a(0xdb)](){const _0x1b9ab4=a170_0x38e70a;state[_0x1b9ab4(0x101)]=![],state[_0x1b9ab4(0xe6)]=a170_0x40fa63['INFO'],state[_0x1b9ab4(0x102)][_0x1b9ab4(0xed)](),state[_0x1b9ab4(0xe1)]=[],state['formatter']=null,state[_0x1b9ab4(0xf7)]['clear'](),state[_0x1b9ab4(0x10f)]=[];}static[a170_0x38e70a(0xfd)](){const _0x14d7a9=a170_0x38e70a;return state[_0x14d7a9(0x101)];}static[a170_0x38e70a(0x112)](_0x4962e7){const _0x40435e=a170_0x38e70a;if(state['levelOverrides'][_0x40435e(0x107)](_0x4962e7))return state[_0x40435e(0x102)]['get'](_0x4962e7);const _0x204137=_0x4962e7[_0x40435e(0x103)]('.');for(let _0x3772ed=_0x204137['length']-0x1;_0x3772ed>0x0;_0x3772ed--){const _0x3dff38=_0x204137[_0x40435e(0xdc)](0x0,_0x3772ed)['join']('.');if(state[_0x40435e(0x102)]['has'](_0x3dff38))return state[_0x40435e(0x102)][_0x40435e(0xf5)](_0x3dff38);}return state[_0x40435e(0xe6)];}['shouldLog'](_0x181fde){const _0x592409=a170_0x38e70a,_0x161d9e=Logger[_0x592409(0x112)](this[_0x592409(0xdf)]);return _0x181fde>=_0x161d9e;}static['dispatch'](_0x20a129){const _0x446e49=a170_0x38e70a;for(const _0x2a702d of state[_0x446e49(0xe1)]){_0x2a702d[_0x446e49(0x10b)](_0x20a129);}}[a170_0x38e70a(0x105)](_0x5eba7d,_0x23b07e){const _0xde0706=a170_0x38e70a;if(!this['shouldLog'](_0x5eba7d))return;const _0x2abe18=_0x23b07e[_0xde0706(0x10e)](_0x5444da=>typeof _0x5444da==='function'?_0x5444da():_0x5444da),_0x158fb6=_0x2abe18['map'](safeStringify)['join']('\x20'),_0x48ba25={'timestamp':new Date(),'level':_0x5eba7d,'component':this[_0xde0706(0xdf)],'message':_0x158fb6};if(!state[_0xde0706(0x101)]){state['pendingRecords'][_0xde0706(0x114)]<MAX_PENDING_RECORDS&&state[_0xde0706(0x10f)][_0xde0706(0xf4)](_0x48ba25);return;}Logger['dispatch'](_0x48ba25);}[a170_0x38e70a(0x110)](..._0x199407){const _0x5d911b=a170_0x38e70a;this[_0x5d911b(0x105)](a170_0x40fa63[_0x5d911b(0xf8)],_0x199407);}['debug'](..._0x74290b){const _0x2e3ee7=a170_0x38e70a;this[_0x2e3ee7(0x105)](a170_0x40fa63['DEBUG'],_0x74290b);}[a170_0x38e70a(0xe3)](..._0x584e00){const _0x7b645d=a170_0x38e70a;this[_0x7b645d(0x105)](a170_0x40fa63['INFO'],_0x584e00);}[a170_0x38e70a(0x10a)](..._0x17b8a4){const _0x9c1a7a=a170_0x38e70a;this[_0x9c1a7a(0x105)](a170_0x40fa63[_0x9c1a7a(0xff)],_0x17b8a4);}[a170_0x38e70a(0xfe)](..._0x540e6a){const _0x239a4b=a170_0x38e70a;this[_0x239a4b(0x105)](a170_0x40fa63[_0x239a4b(0x113)],_0x540e6a);}static['getFormatter'](){return state['formatter'];}static[a170_0x38e70a(0xf1)](_0x134c03){const _0x40b538=a170_0x38e70a;if(state['formatter'])return state['formatter']['format'](_0x134c03);return _0x134c03[_0x40b538(0xdd)][_0x40b538(0xe7)]()+'\x20['+logLevelToString(_0x134c03[_0x40b538(0xf6)])+_0x40b538(0x100)+_0x134c03[_0x40b538(0xdf)]+']\x20'+_0x134c03[_0x40b538(0xde)];}}
@@ -1 +1 @@
1
- (function(_0x13505a,_0x18a361){const _0x27a808=a171_0x3080,_0x4556df=_0x13505a();while(!![]){try{const _0x8456bb=-parseInt(_0x27a808(0x1f0))/0x1*(parseInt(_0x27a808(0x1e6))/0x2)+-parseInt(_0x27a808(0x1f1))/0x3+parseInt(_0x27a808(0x1e9))/0x4+-parseInt(_0x27a808(0x1fc))/0x5+parseInt(_0x27a808(0x1ee))/0x6*(-parseInt(_0x27a808(0x1e3))/0x7)+-parseInt(_0x27a808(0x1f5))/0x8*(-parseInt(_0x27a808(0x1eb))/0x9)+parseInt(_0x27a808(0x1f8))/0xa*(parseInt(_0x27a808(0x1e8))/0xb);if(_0x8456bb===_0x18a361)break;else _0x4556df['push'](_0x4556df['shift']());}catch(_0x54f942){_0x4556df['push'](_0x4556df['shift']());}}}(a171_0xd825,0x453e4));export var LogLevel;(function(_0x190033){const _0x461599=a171_0x3080;_0x190033[_0x190033[_0x461599(0x1df)]=-0x2]=_0x461599(0x1df),_0x190033[_0x190033[_0x461599(0x1ef)]=-0x1]='DEBUG',_0x190033[_0x190033[_0x461599(0x1fa)]=0x0]=_0x461599(0x1fa),_0x190033[_0x190033['WARN']=0x1]=_0x461599(0x1f2),_0x190033[_0x190033[_0x461599(0x1f7)]=0x2]=_0x461599(0x1f7);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x4e64a3){const _0x42ed0f=a171_0x3080;switch(_0x4e64a3[_0x42ed0f(0x1fb)]()){case _0x42ed0f(0x1df):return LogLevel['TRACE'];case _0x42ed0f(0x1ef):return LogLevel[_0x42ed0f(0x1ef)];case _0x42ed0f(0x1fa):return LogLevel[_0x42ed0f(0x1fa)];case _0x42ed0f(0x1f2):case _0x42ed0f(0x1e2):return LogLevel[_0x42ed0f(0x1f2)];case _0x42ed0f(0x1f7):return LogLevel['ERROR'];default:return LogLevel[_0x42ed0f(0x1fa)];}}function a171_0xd825(){const _0x45cde6=['40643KPesbL','1379394Xvkgdl','WARN','getFullYear','trace','56qlkUdR','debug','ERROR','1273150dKlnLg','padStart','INFO','toUpperCase','579980bTJocp','TRACE','getHours','getMonth','WARNING','1001OOawYy','getMilliseconds','getSeconds','18nfHuBx','getDate','55FswmMQ','2145912wKgGIX','toString','608139laZBwF','getTimezoneOffset','floor','17658swWPXn','DEBUG'];a171_0xd825=function(){return _0x45cde6;};return a171_0xd825();}function a171_0x3080(_0x54efb3,_0x290d69){_0x54efb3=_0x54efb3-0x1df;const _0xd825e5=a171_0xd825();let _0x308094=_0xd825e5[_0x54efb3];return _0x308094;}export function logLevelToString(_0xf82104){const _0x49e5ac=a171_0x3080;switch(_0xf82104){case LogLevel[_0x49e5ac(0x1df)]:return _0x49e5ac(0x1f4);case LogLevel[_0x49e5ac(0x1ef)]:return _0x49e5ac(0x1f6);case LogLevel[_0x49e5ac(0x1fa)]:return'info';case LogLevel['WARN']:return'warn';case LogLevel[_0x49e5ac(0x1f7)]:return'error';default:return'info';}}export function formatTimestamp(_0x285b7f){const _0x35e65b=a171_0x3080,_0x2fbd21=_0x285b7f[_0x35e65b(0x1f3)](),_0x438a19=(_0x285b7f[_0x35e65b(0x1e1)]()+0x1)['toString']()[_0x35e65b(0x1f9)](0x2,'0'),_0x1a20c9=_0x285b7f[_0x35e65b(0x1e7)]()['toString']()[_0x35e65b(0x1f9)](0x2,'0'),_0x8e87f=_0x285b7f[_0x35e65b(0x1e0)]()[_0x35e65b(0x1ea)]()[_0x35e65b(0x1f9)](0x2,'0'),_0xd990c3=_0x285b7f['getMinutes']()[_0x35e65b(0x1ea)]()['padStart'](0x2,'0'),_0x101d35=_0x285b7f[_0x35e65b(0x1e5)]()[_0x35e65b(0x1ea)]()[_0x35e65b(0x1f9)](0x2,'0'),_0x1548ba=_0x285b7f[_0x35e65b(0x1e4)]()[_0x35e65b(0x1ea)]()[_0x35e65b(0x1f9)](0x3,'0'),_0x18bcb0=-_0x285b7f[_0x35e65b(0x1ec)](),_0x9fac87=Math[_0x35e65b(0x1ed)](Math['abs'](_0x18bcb0)/0x3c),_0x300925=Math['abs'](_0x18bcb0)%0x3c,_0x2717f5=_0x18bcb0>=0x0?'+':'-',_0x4e4684=''+_0x2717f5+_0x9fac87[_0x35e65b(0x1ea)]()['padStart'](0x2,'0')+_0x300925[_0x35e65b(0x1ea)]()[_0x35e65b(0x1f9)](0x2,'0');return _0x2fbd21+'-'+_0x438a19+'-'+_0x1a20c9+'\x20'+_0x8e87f+':'+_0xd990c3+':'+_0x101d35+'.'+_0x1548ba+_0x4e4684;}
1
+ function a171_0x4837(){const _0x12cb23=['36kAHkXt','676028SfCWkY','getMinutes','ERROR','debug','toString','getHours','warn','DEBUG','padStart','getMilliseconds','error','toUpperCase','getSeconds','getFullYear','abs','101654iiBctR','TRACE','getTimezoneOffset','13288LnNgGU','WARN','1626457Vavegd','8443818VJXsGU','1007344rElMEF','trace','INFO','522985kpftNi','453mzLwCH','floor','WARNING'];a171_0x4837=function(){return _0x12cb23;};return a171_0x4837();}(function(_0x1579ab,_0x3e62cc){const _0x213566=a171_0x3c15,_0x7589f7=_0x1579ab();while(!![]){try{const _0x3c260c=parseInt(_0x213566(0x14a))/0x1+-parseInt(_0x213566(0x159))/0x2+-parseInt(_0x213566(0x155))/0x3*(parseInt(_0x213566(0x14d))/0x4)+parseInt(_0x213566(0x154))/0x5*(parseInt(_0x213566(0x158))/0x6)+-parseInt(_0x213566(0x14f))/0x7+parseInt(_0x213566(0x151))/0x8+parseInt(_0x213566(0x150))/0x9;if(_0x3c260c===_0x3e62cc)break;else _0x7589f7['push'](_0x7589f7['shift']());}catch(_0x34c2d9){_0x7589f7['push'](_0x7589f7['shift']());}}}(a171_0x4837,0xb01d9));function a171_0x3c15(_0x10be78,_0xa6dda2){_0x10be78=_0x10be78-0x140;const _0x4837aa=a171_0x4837();let _0x3c15a3=_0x4837aa[_0x10be78];return _0x3c15a3;}export var LogLevel;(function(_0x3a8786){const _0x1deea5=a171_0x3c15;_0x3a8786[_0x3a8786['TRACE']=-0x2]=_0x1deea5(0x14b),_0x3a8786[_0x3a8786['DEBUG']=-0x1]=_0x1deea5(0x142),_0x3a8786[_0x3a8786[_0x1deea5(0x153)]=0x0]=_0x1deea5(0x153),_0x3a8786[_0x3a8786[_0x1deea5(0x14e)]=0x1]='WARN',_0x3a8786[_0x3a8786[_0x1deea5(0x15b)]=0x2]=_0x1deea5(0x15b);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x57ec6f){const _0x5a1fe0=a171_0x3c15;switch(_0x57ec6f[_0x5a1fe0(0x146)]()){case _0x5a1fe0(0x14b):return LogLevel[_0x5a1fe0(0x14b)];case _0x5a1fe0(0x142):return LogLevel[_0x5a1fe0(0x142)];case _0x5a1fe0(0x153):return LogLevel[_0x5a1fe0(0x153)];case _0x5a1fe0(0x14e):case _0x5a1fe0(0x157):return LogLevel[_0x5a1fe0(0x14e)];case _0x5a1fe0(0x15b):return LogLevel[_0x5a1fe0(0x15b)];default:return LogLevel[_0x5a1fe0(0x153)];}}export function logLevelToString(_0x4b2aec){const _0x558682=a171_0x3c15;switch(_0x4b2aec){case LogLevel[_0x558682(0x14b)]:return _0x558682(0x152);case LogLevel['DEBUG']:return _0x558682(0x15c);case LogLevel[_0x558682(0x153)]:return'info';case LogLevel[_0x558682(0x14e)]:return _0x558682(0x141);case LogLevel[_0x558682(0x15b)]:return _0x558682(0x145);default:return'info';}}export function formatTimestamp(_0x2cbfb8){const _0x5bad6d=a171_0x3c15,_0x15d7ce=_0x2cbfb8[_0x5bad6d(0x148)](),_0x18cb62=(_0x2cbfb8['getMonth']()+0x1)['toString']()[_0x5bad6d(0x143)](0x2,'0'),_0x4d1999=_0x2cbfb8['getDate']()[_0x5bad6d(0x15d)]()[_0x5bad6d(0x143)](0x2,'0'),_0x9a5721=_0x2cbfb8[_0x5bad6d(0x140)]()[_0x5bad6d(0x15d)]()[_0x5bad6d(0x143)](0x2,'0'),_0x37831a=_0x2cbfb8[_0x5bad6d(0x15a)]()[_0x5bad6d(0x15d)]()[_0x5bad6d(0x143)](0x2,'0'),_0xf5e0d5=_0x2cbfb8[_0x5bad6d(0x147)]()[_0x5bad6d(0x15d)]()['padStart'](0x2,'0'),_0x2310ca=_0x2cbfb8[_0x5bad6d(0x144)]()['toString']()[_0x5bad6d(0x143)](0x3,'0'),_0x3b3c7f=-_0x2cbfb8[_0x5bad6d(0x14c)](),_0xb1c303=Math[_0x5bad6d(0x156)](Math['abs'](_0x3b3c7f)/0x3c),_0x305fe7=Math[_0x5bad6d(0x149)](_0x3b3c7f)%0x3c,_0x569baf=_0x3b3c7f>=0x0?'+':'-',_0x16a4fd=''+_0x569baf+_0xb1c303['toString']()['padStart'](0x2,'0')+_0x305fe7[_0x5bad6d(0x15d)]()['padStart'](0x2,'0');return _0x15d7ce+'-'+_0x18cb62+'-'+_0x4d1999+'\x20'+_0x9a5721+':'+_0x37831a+':'+_0xf5e0d5+'.'+_0x2310ca+_0x16a4fd;}
@@ -1 +1 @@
1
- (function(_0x19bc4d,_0x39a551){const _0x3008f5=a172_0x1187,_0x2f88eb=_0x19bc4d();while(!![]){try{const _0xcff7ae=parseInt(_0x3008f5(0x103))/0x1+-parseInt(_0x3008f5(0x101))/0x2+parseInt(_0x3008f5(0xfa))/0x3*(-parseInt(_0x3008f5(0xff))/0x4)+parseInt(_0x3008f5(0xfb))/0x5+-parseInt(_0x3008f5(0x106))/0x6*(-parseInt(_0x3008f5(0x109))/0x7)+parseInt(_0x3008f5(0x105))/0x8*(-parseInt(_0x3008f5(0xfd))/0x9)+parseInt(_0x3008f5(0x102))/0xa;if(_0xcff7ae===_0x39a551)break;else _0x2f88eb['push'](_0x2f88eb['shift']());}catch(_0x1705f1){_0x2f88eb['push'](_0x2f88eb['shift']());}}}(a172_0x5198,0x26127));export function validateLimitOption(_0x5f2938){const _0x26810a=a172_0x1187;if(!Number[_0x26810a(0xfc)](_0x5f2938))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5f2938+_0x26810a(0xfe)};if(_0x5f2938<=0x0)return{'isValid':![],'error':_0x26810a(0x107)+_0x5f2938+_0x26810a(0x10a)};return{'isValid':!![],'value':_0x5f2938};}export function validateTimeoutOption(_0x5c92bd,_0x268987=0x1e){const _0x10871c=a172_0x1187;if(_0x5c92bd===undefined)return{'isValid':!![],'value':_0x268987};const _0x3ca046=typeof _0x5c92bd===_0x10871c(0x104)?_0x5c92bd:parseFloat(_0x5c92bd);if(isNaN(_0x3ca046))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5c92bd+_0x10871c(0x100)};if(_0x3ca046<=0x0)return{'isValid':![],'error':_0x10871c(0x10b)+_0x3ca046+_0x10871c(0x108)};return{'isValid':!![],'value':_0x3ca046};}function a172_0x1187(_0x1ffff4,_0x26cfa8){_0x1ffff4=_0x1ffff4-0xfa;const _0x5198ce=a172_0x5198();let _0x1187f7=_0x5198ce[_0x1ffff4];return _0x1187f7;}function a172_0x5198(){const _0x439b75=['632zTPXsD','309990XpLKnR','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20number.','14zrYGmY','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20timeout\x20value:\x20','327waQCBY','596890WUUqip','isInteger','549KXkRad','.\x20Must\x20be\x20an\x20integer.','8468wZSpMZ','.\x20Must\x20be\x20a\x20number.','579192OFKejr','3452270MkUIxN','113176pAQRgk','number'];a172_0x5198=function(){return _0x439b75;};return a172_0x5198();}
1
+ (function(_0x5ab862,_0x5ca807){const _0x24195a=a172_0x373c,_0x1f2804=_0x5ab862();while(!![]){try{const _0x52f09c=-parseInt(_0x24195a(0x186))/0x1*(parseInt(_0x24195a(0x185))/0x2)+parseInt(_0x24195a(0x183))/0x3*(-parseInt(_0x24195a(0x184))/0x4)+-parseInt(_0x24195a(0x191))/0x5*(parseInt(_0x24195a(0x18a))/0x6)+parseInt(_0x24195a(0x18b))/0x7+parseInt(_0x24195a(0x193))/0x8+parseInt(_0x24195a(0x182))/0x9+parseInt(_0x24195a(0x189))/0xa;if(_0x52f09c===_0x5ca807)break;else _0x1f2804['push'](_0x1f2804['shift']());}catch(_0x178f1f){_0x1f2804['push'](_0x1f2804['shift']());}}}(a172_0x54fd,0x3539a));function a172_0x54fd(){const _0x1b948d=['282360rKSWPa','2931156HPpGiw','973113palTus','4FdjXfF','4fxGrln','35994zlKfgk','isInteger','Invalid\x20limit\x20value:\x20','2682150nduvAX','240294fAVWIp','456911aeMPcz','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20an\x20integer.','Invalid\x20timeout\x20value:\x20','number','10WIvGtQ','.\x20Must\x20be\x20a\x20number.'];a172_0x54fd=function(){return _0x1b948d;};return a172_0x54fd();}function a172_0x373c(_0x441255,_0x1bc56e){_0x441255=_0x441255-0x182;const _0x54fd78=a172_0x54fd();let _0x373cc7=_0x54fd78[_0x441255];return _0x373cc7;}export function validateLimitOption(_0x35a121){const _0x2f9224=a172_0x373c;if(!Number[_0x2f9224(0x187)](_0x35a121))return{'isValid':![],'error':_0x2f9224(0x188)+_0x35a121+_0x2f9224(0x18e)};if(_0x35a121<=0x0)return{'isValid':![],'error':_0x2f9224(0x188)+_0x35a121+_0x2f9224(0x18d)};return{'isValid':!![],'value':_0x35a121};}export function validateTimeoutOption(_0x25ece8,_0x1e4806=0x1e){const _0x13ba73=a172_0x373c;if(_0x25ece8===undefined)return{'isValid':!![],'value':_0x1e4806};const _0x268e4d=typeof _0x25ece8===_0x13ba73(0x190)?_0x25ece8:parseFloat(_0x25ece8);if(isNaN(_0x268e4d))return{'isValid':![],'error':_0x13ba73(0x18f)+_0x25ece8+_0x13ba73(0x192)};if(_0x268e4d<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x268e4d+_0x13ba73(0x18c)};return{'isValid':!![],'value':_0x268e4d};}
@@ -1 +1 @@
1
- (function(_0x442b04,_0x2eda1d){const _0x40499b=a173_0x5b47,_0x5b905d=_0x442b04();while(!![]){try{const _0x2e2f43=-parseInt(_0x40499b(0x1b6))/0x1+parseInt(_0x40499b(0x1af))/0x2+-parseInt(_0x40499b(0x1bc))/0x3*(-parseInt(_0x40499b(0x1ba))/0x4)+-parseInt(_0x40499b(0x1b4))/0x5*(-parseInt(_0x40499b(0x1be))/0x6)+parseInt(_0x40499b(0x1b7))/0x7*(parseInt(_0x40499b(0x1b0))/0x8)+-parseInt(_0x40499b(0x1bf))/0x9+-parseInt(_0x40499b(0x1bd))/0xa*(parseInt(_0x40499b(0x1b9))/0xb);if(_0x2e2f43===_0x2eda1d)break;else _0x5b905d['push'](_0x5b905d['shift']());}catch(_0x577571){_0x5b905d['push'](_0x5b905d['shift']());}}}(a173_0x136c,0x8903c));function a173_0x5b47(_0x50eba1,_0x393004){_0x50eba1=_0x50eba1-0x1af;const _0x136c0b=a173_0x136c();let _0x5b4749=_0x136c0b[_0x50eba1];return _0x5b4749;}import{createServer}from'node:net';function a173_0x136c(){const _0x2ffcb2=['listening','11EgXpMF','36dzDOdB','No\x20available\x20port\x20found\x20between\x20','213903atePhN','16091710AiFOaM','29982QTrmTH','6383664LbSYzd','once','1438348jbsQLd','8682584DJHuuA','\x20and\x20','error','EADDRINUSE','970JALnDA','listen','535945mXxmqO','7ZTfemG'];a173_0x136c=function(){return _0x2ffcb2;};return a173_0x136c();}export async function isPortAvailable(_0x2d42ee){return new Promise(_0x42416a=>{const _0xb744c6=a173_0x5b47,_0x499d61=createServer();_0x499d61[_0xb744c6(0x1c0)](_0xb744c6(0x1b2),_0x2722d4=>{const _0x2b172a=_0xb744c6;_0x2722d4['code']===_0x2b172a(0x1b3)?_0x42416a(![]):_0x42416a(![]);}),_0x499d61['once'](_0xb744c6(0x1b8),()=>{_0x499d61['close'](),_0x42416a(!![]);}),_0x499d61[_0xb744c6(0x1b5)](_0x2d42ee,'0.0.0.0');});}export async function findAvailablePort(_0x153df0=0xfa0,_0x21ce67=0x64){const _0x3f55a4=a173_0x5b47;for(let _0x2f3e55=0x0;_0x2f3e55<_0x21ce67;_0x2f3e55++){const _0x4a7ae5=_0x153df0+_0x2f3e55;if(await isPortAvailable(_0x4a7ae5))return _0x4a7ae5;}throw new Error(_0x3f55a4(0x1bb)+_0x153df0+_0x3f55a4(0x1b1)+(_0x153df0+_0x21ce67-0x1));}
1
+ (function(_0x24478a,_0x888a4c){const _0x45c61f=a173_0x4f2f,_0x165c8e=_0x24478a();while(!![]){try{const _0x2f0a88=-parseInt(_0x45c61f(0x13f))/0x1+parseInt(_0x45c61f(0x13e))/0x2*(parseInt(_0x45c61f(0x147))/0x3)+-parseInt(_0x45c61f(0x13b))/0x4+parseInt(_0x45c61f(0x145))/0x5+-parseInt(_0x45c61f(0x13a))/0x6+-parseInt(_0x45c61f(0x13c))/0x7*(parseInt(_0x45c61f(0x13d))/0x8)+parseInt(_0x45c61f(0x149))/0x9;if(_0x2f0a88===_0x888a4c)break;else _0x165c8e['push'](_0x165c8e['shift']());}catch(_0x504bb1){_0x165c8e['push'](_0x165c8e['shift']());}}}(a173_0x1ad1,0xb146f));import{createServer}from'node:net';export async function isPortAvailable(_0x26431b){return new Promise(_0x30dbd5=>{const _0x19c62f=a173_0x4f2f,_0x14c634=createServer();_0x14c634[_0x19c62f(0x143)](_0x19c62f(0x146),_0x319982=>{const _0x195903=_0x19c62f;_0x319982[_0x195903(0x140)]===_0x195903(0x141)?_0x30dbd5(![]):_0x30dbd5(![]);}),_0x14c634['once'](_0x19c62f(0x144),()=>{const _0x136c35=_0x19c62f;_0x14c634[_0x136c35(0x148)](),_0x30dbd5(!![]);}),_0x14c634[_0x19c62f(0x142)](_0x26431b,'0.0.0.0');});}function a173_0x1ad1(){const _0xb4e548=['2932890XKNBzV','309888gcdOLx','3980767lnUxyc','8EMXbqP','2JBtNHQ','1175806amdyhX','code','EADDRINUSE','listen','once','listening','5300010qSkCto','error','2649411wjhPve','close','9843858piUuxt','No\x20available\x20port\x20found\x20between\x20'];a173_0x1ad1=function(){return _0xb4e548;};return a173_0x1ad1();}function a173_0x4f2f(_0x2b4ed6,_0x2a7f0b){_0x2b4ed6=_0x2b4ed6-0x139;const _0x1ad1a7=a173_0x1ad1();let _0x4f2f4=_0x1ad1a7[_0x2b4ed6];return _0x4f2f4;}export async function findAvailablePort(_0x15708e=0xfa0,_0x1cfe6c=0x64){const _0x1f116e=a173_0x4f2f;for(let _0x138bca=0x0;_0x138bca<_0x1cfe6c;_0x138bca++){const _0x214249=_0x15708e+_0x138bca;if(await isPortAvailable(_0x214249))return _0x214249;}throw new Error(_0x1f116e(0x139)+_0x15708e+'\x20and\x20'+(_0x15708e+_0x1cfe6c-0x1));}
@@ -1 +1 @@
1
- const a174_0x2f92dc=a174_0x4ad6;(function(_0x5f51f7,_0x2e575a){const _0x506423=a174_0x4ad6,_0x54c89c=_0x5f51f7();while(!![]){try{const _0x248f3e=-parseInt(_0x506423(0x9f))/0x1*(-parseInt(_0x506423(0x8d))/0x2)+-parseInt(_0x506423(0x78))/0x3*(-parseInt(_0x506423(0x83))/0x4)+-parseInt(_0x506423(0xa8))/0x5*(parseInt(_0x506423(0x91))/0x6)+parseInt(_0x506423(0x7d))/0x7+-parseInt(_0x506423(0xa0))/0x8+parseInt(_0x506423(0x7b))/0x9*(parseInt(_0x506423(0x8b))/0xa)+parseInt(_0x506423(0x97))/0xb*(-parseInt(_0x506423(0x7f))/0xc);if(_0x248f3e===_0x2e575a)break;else _0x54c89c['push'](_0x54c89c['shift']());}catch(_0x2a78a6){_0x54c89c['push'](_0x54c89c['shift']());}}}(a174_0xbcf0,0xb5623));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a174_0x2f92dc(0x7c),a174_0x2f92dc(0x73),'sh',a174_0x2f92dc(0x94),'ksh',a174_0x2f92dc(0xa5),'csh',a174_0x2f92dc(0x8c),a174_0x2f92dc(0x99),'powershell','nu',a174_0x2f92dc(0xaa),a174_0x2f92dc(0xa4),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a174_0x2f92dc(0x74),a174_0x2f92dc(0x8e),a174_0x2f92dc(0xa1),a174_0x2f92dc(0x72),a174_0x2f92dc(0x77)]);function getProcessInfoWindows(_0x1f73a0){const _0x2ce563=a174_0x2f92dc;try{if(!Number[_0x2ce563(0x84)](_0x1f73a0)||_0x1f73a0<=0x0)return null;const _0x2ad1b9='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x1f73a0+_0x2ce563(0x9d),_0x1d8c86=execSync(_0x2ce563(0xa3)+_0x2ad1b9+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x2ce563(0x90),_0x2ce563(0x90),'pipe']})[_0x2ce563(0x9b)]();if(!_0x1d8c86)return null;const [_0x55885e,..._0x59c354]=_0x1d8c86[_0x2ce563(0x9c)](','),_0x585cb2=parseInt(_0x55885e,0xa),_0x4009ee=_0x59c354[_0x2ce563(0x9a)](',')[_0x2ce563(0x9b)]();if(isNaN(_0x585cb2)||!_0x4009ee)return null;return{'pid':_0x1f73a0,'ppid':_0x585cb2,'comm':_0x4009ee[_0x2ce563(0x85)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x49d26d){const _0x27300d=a174_0x2f92dc;try{const _0x3aab76=0x400000;if(!Number[_0x27300d(0x84)](_0x49d26d)||_0x49d26d<=0x0||_0x49d26d>_0x3aab76)return null;const _0x2f6bef=execSync('ps\x20-p\x20'+_0x49d26d+_0x27300d(0x88),{'encoding':_0x27300d(0xa2),'stdio':'pipe'})['trim'](),[_0x60c91e,..._0x39f3f5]=_0x2f6bef['split'](/\s+/),_0x4dd338=parseInt(_0x60c91e,0xa),_0x572349=_0x39f3f5[_0x27300d(0x9a)]('\x20');if(isNaN(_0x4dd338))return null;return{'pid':_0x49d26d,'ppid':_0x4dd338,'comm':_0x572349};}catch{return null;}}function getProcessInfo(_0x590754){const _0x32e8ba=a174_0x2f92dc;if(process[_0x32e8ba(0x89)]===_0x32e8ba(0xae))return getProcessInfoWindows(_0x590754);return getProcessInfoPosix(_0x590754);}function a174_0x4ad6(_0xef93fc,_0x1daa06){_0xef93fc=_0xef93fc-0x72;const _0xbcf068=a174_0xbcf0();let _0x4ad6d2=_0xbcf068[_0xef93fc];return _0x4ad6d2;}function getBasename(_0x5cd348){const _0x4965b0=a174_0x2f92dc;return _0x5cd348['replace'](/^-/,'')[_0x4965b0(0x9c)]('/')[_0x4965b0(0xa9)]()?.['toLowerCase']()||'';}function isShell(_0x2d0628){return SHELL_NAMES['has'](getBasename(_0x2d0628));}function a174_0xbcf0(){const _0x53229e=['stderr','where.exe','treasure\x20studio','628077vNSDSC','Unsupported\x20protocol:\x20','comm','32454lTrLUE','bash','4500769ugaACc','test','20166672TentDG','pid','start','stdout','4jyxHue','isInteger','replace','ppid','open','\x20-o\x20ppid=,comm=','platform','map','3760vIZkxk','dash','4QFMsYb','code','error','pipe','18mtelug','darwin','which','fish','href','ignore','11PjxZFZ','protocol','pwsh','join','trim','split','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','cmd.exe','684731NKXevM','7621336mGYGGI','cursor','utf-8','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','elvish','tcsh','has','exit','335790yeESpr','pop','ion','data','http:','xdg-open','win32','kill','electron','zsh','claude'];a174_0xbcf0=function(){return _0x53229e;};return a174_0xbcf0();}function isEphemeralShellSpawner(_0x3a6f1e){const _0x36a76b=a174_0x2f92dc;return EPHEMERAL_SHELL_SPAWNERS[_0x36a76b(0xa6)](getBasename(_0x3a6f1e));}let cachedShellPID;function findShellPID(){const _0x4de211=a174_0x2f92dc;if(process[_0x4de211(0x86)]===undefined)return process['pid'];let _0xd6d536=process[_0x4de211(0x86)];const _0x399ac9=0xa;let _0x318cac=0x0;while(_0x318cac<_0x399ac9){const _0x5528a6=getProcessInfo(_0xd6d536);if(!_0x5528a6)break;if(isShell(_0x5528a6[_0x4de211(0x7a)])){const _0x418489=getProcessInfo(_0x5528a6[_0x4de211(0x86)]);if(_0x418489&&isEphemeralShellSpawner(_0x418489[_0x4de211(0x7a)])){_0xd6d536=_0x5528a6[_0x4de211(0x86)],_0x318cac++;continue;}return _0x5528a6[_0x4de211(0x80)];}if(_0x5528a6[_0x4de211(0x86)]===0x0||_0x5528a6[_0x4de211(0x86)]===0x1){if(isShell(_0x5528a6[_0x4de211(0x7a)]))return _0x5528a6[_0x4de211(0x80)];break;}_0xd6d536=_0x5528a6['ppid'],_0x318cac++;}return process[_0x4de211(0x86)]!==undefined?process[_0x4de211(0x86)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x40a053){const _0xcd91c5=a174_0x2f92dc;if(!Number['isInteger'](_0x40a053)||_0x40a053<=0x0)return![];try{return process[_0xcd91c5(0xaf)](_0x40a053,0x0),!![];}catch{return![];}}export function openBrowser(_0x438c68){const _0x51bf4d=a174_0x2f92dc;let _0x29b438;try{_0x29b438=new URL(_0x438c68);}catch{throw new Error('Invalid\x20URL:\x20'+_0x438c68);}if(_0x29b438[_0x51bf4d(0x98)]!==_0x51bf4d(0xac)&&_0x29b438[_0x51bf4d(0x98)]!=='https:')throw new Error(_0x51bf4d(0x79)+_0x29b438[_0x51bf4d(0x98)]);const _0x16f926=_0x29b438[_0x51bf4d(0x95)],_0x4372d4=process[_0x51bf4d(0x89)];if(_0x4372d4==='win32')spawn(_0x51bf4d(0x9e),['/c',_0x51bf4d(0x81),'',_0x16f926],{'detached':!![],'stdio':_0x51bf4d(0x96)})['unref']();else{const _0x452c85=_0x4372d4===_0x51bf4d(0x92)?_0x51bf4d(0x87):_0x51bf4d(0xad);spawn(_0x452c85,[_0x16f926],{'detached':!![],'stdio':'ignore'})['unref']();}}export function isWindows(){const _0x1b3f01=a174_0x2f92dc;return process[_0x1b3f01(0x89)]===_0x1b3f01(0xae);}export function getCrossSpawnOptions(_0x1dab81){return{..._0x1dab81??{},'shell':isWindows()};}export function escapeWindowsArg(_0x227fef){const _0x4b458e=a174_0x2f92dc;if(!/[ \t"&|<>^%!`\r\n]/[_0x4b458e(0x7e)](_0x227fef))return _0x227fef;const _0x3012f6=_0x227fef[_0x4b458e(0x85)](/"/g,'\x22\x22');return'\x22'+_0x3012f6+'\x22';}export function crossSpawn(_0x2b330c,_0x5792f5,_0x3a8933){const _0x1f0b1b=a174_0x2f92dc;if(isWindows()){const _0x18f69b=escapeWindowsArg(_0x2b330c),_0x30636f=_0x5792f5[_0x1f0b1b(0x8a)](escapeWindowsArg),_0x51250b=[_0x18f69b,..._0x30636f][_0x1f0b1b(0x9a)]('\x20');return spawn(_0x51250b,[],{..._0x3a8933,'shell':!![]});}return spawn(_0x2b330c,_0x5792f5,{..._0x3a8933,'shell':![]});}export function gracefulExit(_0x3955da=0x0){const _0x1e2674=a174_0x2f92dc;isWindows()?setImmediate(()=>process[_0x1e2674(0xa7)](_0x3955da)):process[_0x1e2674(0xa7)](_0x3955da);}export function findExecutable(_0x34e49c,_0x487fed=0x1388){return new Promise(_0x3cf873=>{const _0x356059=a174_0x4ad6,_0x5db726=isWindows()?_0x356059(0x76):_0x356059(0x93);let _0x28790a=![];const _0x4ef10e=crossSpawn(_0x5db726,[_0x34e49c],{'stdio':_0x356059(0x90),'shell':isWindows()}),_0x2d3044=setTimeout(()=>{const _0x3d49c6=_0x356059;!_0x28790a&&(_0x28790a=!![],_0x4ef10e[_0x3d49c6(0xaf)](),_0x3cf873(null));},_0x487fed);let _0x13094f='';_0x4ef10e[_0x356059(0x82)]?.['on']('data',_0x400231=>{_0x13094f+=_0x400231['toString']();}),_0x4ef10e[_0x356059(0x75)]?.['on'](_0x356059(0xab),()=>{}),_0x4ef10e['on'](_0x356059(0xa7),_0x26c5b9=>{const _0x30078e=_0x356059;if(_0x28790a)return;_0x28790a=!![],clearTimeout(_0x2d3044);if(_0x26c5b9===0x0&&_0x13094f[_0x30078e(0x9b)]()){const _0x44a16d=_0x13094f['trim']()[_0x30078e(0x9c)](/\r?\n/)[0x0];_0x3cf873(_0x44a16d);}else _0x3cf873(null);}),_0x4ef10e['on'](_0x356059(0x8f),()=>{if(_0x28790a)return;_0x28790a=!![],clearTimeout(_0x2d3044),_0x3cf873(null);});});}
1
+ const a174_0x556166=a174_0x2ab6;(function(_0x4144b4,_0x109c4e){const _0x3adf3b=a174_0x2ab6,_0x503ec2=_0x4144b4();while(!![]){try{const _0x4cc768=-parseInt(_0x3adf3b(0x138))/0x1+-parseInt(_0x3adf3b(0x129))/0x2*(-parseInt(_0x3adf3b(0x146))/0x3)+-parseInt(_0x3adf3b(0x114))/0x4*(-parseInt(_0x3adf3b(0x14a))/0x5)+-parseInt(_0x3adf3b(0x145))/0x6*(-parseInt(_0x3adf3b(0x148))/0x7)+-parseInt(_0x3adf3b(0x130))/0x8*(-parseInt(_0x3adf3b(0x140))/0x9)+-parseInt(_0x3adf3b(0x131))/0xa+-parseInt(_0x3adf3b(0x11a))/0xb*(parseInt(_0x3adf3b(0x12d))/0xc);if(_0x4cc768===_0x109c4e)break;else _0x503ec2['push'](_0x503ec2['shift']());}catch(_0x26be45){_0x503ec2['push'](_0x503ec2['shift']());}}}(a174_0x2e01,0x5028c));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash','zsh','sh',a174_0x556166(0x123),'ksh',a174_0x556166(0x134),'csh',a174_0x556166(0x12b),a174_0x556166(0x11b),a174_0x556166(0x12c),'nu',a174_0x556166(0x113),a174_0x556166(0x118),a174_0x556166(0x126)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a174_0x556166(0x147),a174_0x556166(0x13c),'cursor',a174_0x556166(0x115),'treasure\x20studio']);function getProcessInfoWindows(_0x4117b8){const _0x4309b7=a174_0x556166;try{if(!Number[_0x4309b7(0x112)](_0x4117b8)||_0x4117b8<=0x0)return null;const _0x348097='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x4117b8+_0x4309b7(0x11e),_0x5ef1c5=execSync(_0x4309b7(0x144)+_0x348097+'\x22',{'encoding':_0x4309b7(0x135),'windowsHide':!![],'stdio':[_0x4309b7(0x132),_0x4309b7(0x132),_0x4309b7(0x132)]})[_0x4309b7(0x14b)]();if(!_0x5ef1c5)return null;const [_0x5c35a6,..._0x583ea2]=_0x5ef1c5[_0x4309b7(0x12e)](','),_0x3fc2fb=parseInt(_0x5c35a6,0xa),_0x4fba49=_0x583ea2[_0x4309b7(0x136)](',')[_0x4309b7(0x14b)]();if(isNaN(_0x3fc2fb)||!_0x4fba49)return null;return{'pid':_0x4117b8,'ppid':_0x3fc2fb,'comm':_0x4fba49[_0x4309b7(0x13a)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x3f10af){const _0x4c3d06=a174_0x556166;try{const _0x423cd4=0x400000;if(!Number[_0x4c3d06(0x112)](_0x3f10af)||_0x3f10af<=0x0||_0x3f10af>_0x423cd4)return null;const _0x5a33db=execSync(_0x4c3d06(0x111)+_0x3f10af+_0x4c3d06(0x125),{'encoding':'utf-8','stdio':_0x4c3d06(0x132)})[_0x4c3d06(0x14b)](),[_0xa2b025,..._0x3e0008]=_0x5a33db[_0x4c3d06(0x12e)](/\s+/),_0x4b000e=parseInt(_0xa2b025,0xa),_0xfca507=_0x3e0008[_0x4c3d06(0x136)]('\x20');if(isNaN(_0x4b000e))return null;return{'pid':_0x3f10af,'ppid':_0x4b000e,'comm':_0xfca507};}catch{return null;}}function getProcessInfo(_0x2f663d){const _0x3541bf=a174_0x556166;if(process['platform']===_0x3541bf(0x117))return getProcessInfoWindows(_0x2f663d);return getProcessInfoPosix(_0x2f663d);}function a174_0x2e01(){const _0x3bd6cf=['pipe','ignore','tcsh','utf-8','join','Unsupported\x20protocol:\x20','78030oNtdOd','error','replace','start','code','xdg-open','comm','darwin','1590903YGUaDd','data','has','Invalid\x20URL:\x20','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','66UQOIiZ','1841727aFuAtO','claude','49994Papcqg','open','45vPAfSJ','trim','ps\x20-p\x20','isInteger','ion','236116aQctHF','electron','ppid','win32','elvish','stdout','110WnjaBx','pwsh','where.exe','href','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','protocol','unref','map','cmd.exe','fish','which','\x20-o\x20ppid=,comm=','xonsh','exit','pid','2oZcUIC','toString','dash','powershell','1094724cLKrfp','split','test','8ZglEhY','818670cGVYwX'];a174_0x2e01=function(){return _0x3bd6cf;};return a174_0x2e01();}function getBasename(_0x1d8272){const _0x391b5c=a174_0x556166;return _0x1d8272['replace'](/^-/,'')[_0x391b5c(0x12e)]('/')['pop']()?.['toLowerCase']()||'';}function isShell(_0x465baa){const _0x2e4f30=a174_0x556166;return SHELL_NAMES[_0x2e4f30(0x142)](getBasename(_0x465baa));}function isEphemeralShellSpawner(_0x24e269){const _0x4b3488=a174_0x556166;return EPHEMERAL_SHELL_SPAWNERS[_0x4b3488(0x142)](getBasename(_0x24e269));}function a174_0x2ab6(_0x36cae8,_0x569564){_0x36cae8=_0x36cae8-0x111;const _0x2e01cb=a174_0x2e01();let _0x2ab61f=_0x2e01cb[_0x36cae8];return _0x2ab61f;}let cachedShellPID;function findShellPID(){const _0x503e33=a174_0x556166;if(process[_0x503e33(0x116)]===undefined)return process[_0x503e33(0x128)];let _0x570da4=process[_0x503e33(0x116)];const _0xc5acb0=0xa;let _0x1baf01=0x0;while(_0x1baf01<_0xc5acb0){const _0x25c634=getProcessInfo(_0x570da4);if(!_0x25c634)break;if(isShell(_0x25c634[_0x503e33(0x13e)])){const _0x46d516=getProcessInfo(_0x25c634[_0x503e33(0x116)]);if(_0x46d516&&isEphemeralShellSpawner(_0x46d516['comm'])){_0x570da4=_0x25c634[_0x503e33(0x116)],_0x1baf01++;continue;}return _0x25c634[_0x503e33(0x128)];}if(_0x25c634['ppid']===0x0||_0x25c634[_0x503e33(0x116)]===0x1){if(isShell(_0x25c634[_0x503e33(0x13e)]))return _0x25c634['pid'];break;}_0x570da4=_0x25c634[_0x503e33(0x116)],_0x1baf01++;}return process[_0x503e33(0x116)]!==undefined?process['ppid']:process[_0x503e33(0x128)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x6c606c){if(!Number['isInteger'](_0x6c606c)||_0x6c606c<=0x0)return![];try{return process['kill'](_0x6c606c,0x0),!![];}catch{return![];}}export function openBrowser(_0xbb72d){const _0x212726=a174_0x556166;let _0x25e56e;try{_0x25e56e=new URL(_0xbb72d);}catch{throw new Error(_0x212726(0x143)+_0xbb72d);}if(_0x25e56e['protocol']!=='http:'&&_0x25e56e[_0x212726(0x11f)]!=='https:')throw new Error(_0x212726(0x137)+_0x25e56e['protocol']);const _0x4385af=_0x25e56e[_0x212726(0x11d)],_0x50ff90=process['platform'];if(_0x50ff90===_0x212726(0x117))spawn(_0x212726(0x122),['/c',_0x212726(0x13b),'',_0x4385af],{'detached':!![],'stdio':_0x212726(0x133)})[_0x212726(0x120)]();else{const _0x11d4de=_0x50ff90===_0x212726(0x13f)?_0x212726(0x149):_0x212726(0x13d);spawn(_0x11d4de,[_0x4385af],{'detached':!![],'stdio':_0x212726(0x133)})['unref']();}}export function isWindows(){return process['platform']==='win32';}export function getCrossSpawnOptions(_0x399f07){return{..._0x399f07??{},'shell':isWindows()};}export function escapeWindowsArg(_0x272fe1){const _0x3850bb=a174_0x556166;if(!/[ \t"&|<>^%!`\r\n]/[_0x3850bb(0x12f)](_0x272fe1))return _0x272fe1;const _0x994f37=_0x272fe1[_0x3850bb(0x13a)](/"/g,'\x22\x22');return'\x22'+_0x994f37+'\x22';}export function crossSpawn(_0x428e3b,_0x3b313e,_0x5ed391){const _0x3666a2=a174_0x556166;if(isWindows()){const _0x49bab3=escapeWindowsArg(_0x428e3b),_0x127a96=_0x3b313e[_0x3666a2(0x121)](escapeWindowsArg),_0x2a9acb=[_0x49bab3,..._0x127a96][_0x3666a2(0x136)]('\x20');return spawn(_0x2a9acb,[],{..._0x5ed391,'shell':!![]});}return spawn(_0x428e3b,_0x3b313e,{..._0x5ed391,'shell':![]});}export function gracefulExit(_0x468a76=0x0){const _0x2fcc48=a174_0x556166;isWindows()?setImmediate(()=>process[_0x2fcc48(0x127)](_0x468a76)):process[_0x2fcc48(0x127)](_0x468a76);}export function findExecutable(_0x499407,_0x3a3bb4=0x1388){return new Promise(_0x23af5f=>{const _0x6a55f6=a174_0x2ab6,_0x597348=isWindows()?_0x6a55f6(0x11c):_0x6a55f6(0x124);let _0x3f3ecf=![];const _0x19ae70=crossSpawn(_0x597348,[_0x499407],{'stdio':_0x6a55f6(0x132),'shell':isWindows()}),_0x2a522f=setTimeout(()=>{!_0x3f3ecf&&(_0x3f3ecf=!![],_0x19ae70['kill'](),_0x23af5f(null));},_0x3a3bb4);let _0x166a83='';_0x19ae70[_0x6a55f6(0x119)]?.['on'](_0x6a55f6(0x141),_0x531a11=>{const _0x4100a0=_0x6a55f6;_0x166a83+=_0x531a11[_0x4100a0(0x12a)]();}),_0x19ae70['stderr']?.['on'](_0x6a55f6(0x141),()=>{}),_0x19ae70['on'](_0x6a55f6(0x127),_0x21f7f6=>{const _0x2f9c63=_0x6a55f6;if(_0x3f3ecf)return;_0x3f3ecf=!![],clearTimeout(_0x2a522f);if(_0x21f7f6===0x0&&_0x166a83[_0x2f9c63(0x14b)]()){const _0x26f27b=_0x166a83[_0x2f9c63(0x14b)]()[_0x2f9c63(0x12e)](/\r?\n/)[0x0];_0x23af5f(_0x26f27b);}else _0x23af5f(null);}),_0x19ae70['on'](_0x6a55f6(0x139),()=>{if(_0x3f3ecf)return;_0x3f3ecf=!![],clearTimeout(_0x2a522f),_0x23af5f(null);});});}
@@ -1 +1 @@
1
- function a175_0x9f0f(){const _0x78dbf1=['toLowerCase','\x20(y/N):\x20','utf8','removeListener','23IlVper','7167485MblmQq','createInterface','75028RxCRhP','setRawMode','926640eLrUEq','1039746vUOCOj','isTTY','pause','resume','yes','21729456tOwUMA','stderr','\x20[y/N]\x20','6906396sGIIjJ','3234928itIHGw','data','write','stdin','setEncoding'];a175_0x9f0f=function(){return _0x78dbf1;};return a175_0x9f0f();}(function(_0x2b8d00,_0x17db41){const _0x146256=a175_0xca28,_0x44af5f=_0x2b8d00();while(!![]){try{const _0x40c11=parseInt(_0x146256(0x1d8))/0x1*(-parseInt(_0x146256(0x1db))/0x2)+parseInt(_0x146256(0x1dd))/0x3+parseInt(_0x146256(0x1e7))/0x4+-parseInt(_0x146256(0x1d9))/0x5+parseInt(_0x146256(0x1de))/0x6+-parseInt(_0x146256(0x1e6))/0x7+parseInt(_0x146256(0x1e3))/0x8;if(_0x40c11===_0x17db41)break;else _0x44af5f['push'](_0x44af5f['shift']());}catch(_0x4ee3da){_0x44af5f['push'](_0x44af5f['shift']());}}}(a175_0x9f0f,0xb0caa));function a175_0xca28(_0x4519cd,_0xf1f829){_0x4519cd=_0x4519cd-0x1d1;const _0x9f0f91=a175_0x9f0f();let _0xca2848=_0x9f0f91[_0x4519cd];return _0xca2848;}import*as a175_0x59f469 from'readline';export function isInteractive(){const _0x3d0a3f=a175_0xca28;return process['stdin'][_0x3d0a3f(0x1df)]===!![];}export async function confirm(_0x497745){const _0x21002e=a175_0xca28,_0x551579=a175_0x59f469[_0x21002e(0x1da)]({'input':process[_0x21002e(0x1d2)],'output':process['stdout']});return new Promise(_0x461c21=>{const _0x37a205=_0x21002e;_0x551579['question'](_0x497745+_0x37a205(0x1d5),_0x20bef9=>{const _0x3d9e9f=_0x37a205;_0x551579['close'](),_0x461c21(_0x20bef9[_0x3d9e9f(0x1d4)]()==='y'||_0x20bef9[_0x3d9e9f(0x1d4)]()===_0x3d9e9f(0x1e2));});});}export async function confirmKey(_0x3fb43a){const _0x7deb07=a175_0xca28;if(!process[_0x7deb07(0x1d2)][_0x7deb07(0x1df)])return![];return process[_0x7deb07(0x1e4)][_0x7deb07(0x1d1)](_0x3fb43a+_0x7deb07(0x1e5)),new Promise(_0x256434=>{const _0x25a0de=_0x7deb07,_0x2a4383=process[_0x25a0de(0x1d2)];_0x2a4383['setRawMode'](!![]),_0x2a4383[_0x25a0de(0x1e1)](),_0x2a4383[_0x25a0de(0x1d3)](_0x25a0de(0x1d6));const _0x7f6249=_0x2f916=>{const _0x36665d=_0x25a0de;_0x2a4383[_0x36665d(0x1dc)](![]),_0x2a4383[_0x36665d(0x1e0)](),_0x2a4383[_0x36665d(0x1d7)](_0x36665d(0x1e8),_0x7f6249);if(_0x2f916==='\x1b'){process[_0x36665d(0x1e4)][_0x36665d(0x1d1)]('\x0a'),_0x256434(![]);return;}_0x2f916==='\x03'&&(process[_0x36665d(0x1e4)]['write']('\x0a'),process['exit'](0x82));if(_0x2f916[_0x36665d(0x1d4)]()==='y'){process[_0x36665d(0x1e4)][_0x36665d(0x1d1)]('y\x0a'),_0x256434(!![]);return;}process[_0x36665d(0x1e4)]['write']('\x0a'),_0x256434(![]);};_0x2a4383['on'](_0x25a0de(0x1e8),_0x7f6249);});}
1
+ (function(_0x2a578b,_0x3946ab){const _0x347048=a175_0x2b37,_0x458c6c=_0x2a578b();while(!![]){try{const _0x2de813=-parseInt(_0x347048(0x12e))/0x1+parseInt(_0x347048(0x13b))/0x2*(parseInt(_0x347048(0x137))/0x3)+parseInt(_0x347048(0x140))/0x4+-parseInt(_0x347048(0x131))/0x5+parseInt(_0x347048(0x143))/0x6+-parseInt(_0x347048(0x130))/0x7+parseInt(_0x347048(0x13a))/0x8;if(_0x2de813===_0x3946ab)break;else _0x458c6c['push'](_0x458c6c['shift']());}catch(_0x15ec18){_0x458c6c['push'](_0x458c6c['shift']());}}}(a175_0x45f0,0x8d4f3));import*as a175_0x3fa5c7 from'readline';function a175_0x2b37(_0x2eea57,_0x528504){_0x2eea57=_0x2eea57-0x12d;const _0x45f04b=a175_0x45f0();let _0x2b374c=_0x45f04b[_0x2eea57];return _0x2b374c;}export function isInteractive(){const _0x486570=a175_0x2b37;return process['stdin'][_0x486570(0x13d)]===!![];}export async function confirm(_0x3d5193){const _0xb15a83=a175_0x2b37,_0x3ffdbd=a175_0x3fa5c7[_0xb15a83(0x134)]({'input':process[_0xb15a83(0x141)],'output':process['stdout']});return new Promise(_0xd26d50=>{const _0x33a177=_0xb15a83;_0x3ffdbd[_0x33a177(0x138)](_0x3d5193+'\x20(y/N):\x20',_0x2514b9=>{const _0x4d1c46=_0x33a177;_0x3ffdbd[_0x4d1c46(0x142)](),_0xd26d50(_0x2514b9[_0x4d1c46(0x12d)]()==='y'||_0x2514b9[_0x4d1c46(0x12d)]()===_0x4d1c46(0x13c));});});}export async function confirmKey(_0x42924b){const _0x1a52f7=a175_0x2b37;if(!process[_0x1a52f7(0x141)]['isTTY'])return![];return process['stderr']['write'](_0x42924b+'\x20[y/N]\x20'),new Promise(_0x291858=>{const _0x5d4879=_0x1a52f7,_0x7bdbdd=process[_0x5d4879(0x141)];_0x7bdbdd['setRawMode'](!![]),_0x7bdbdd['resume'](),_0x7bdbdd[_0x5d4879(0x133)](_0x5d4879(0x132));const _0x3846eb=_0x315318=>{const _0x4f731f=_0x5d4879;_0x7bdbdd[_0x4f731f(0x139)](![]),_0x7bdbdd['pause'](),_0x7bdbdd[_0x4f731f(0x136)](_0x4f731f(0x13f),_0x3846eb);if(_0x315318==='\x1b'){process[_0x4f731f(0x135)]['write']('\x0a'),_0x291858(![]);return;}_0x315318==='\x03'&&(process[_0x4f731f(0x135)][_0x4f731f(0x12f)]('\x0a'),process[_0x4f731f(0x13e)](0x82));if(_0x315318[_0x4f731f(0x12d)]()==='y'){process['stderr'][_0x4f731f(0x12f)]('y\x0a'),_0x291858(!![]);return;}process[_0x4f731f(0x135)]['write']('\x0a'),_0x291858(![]);};_0x7bdbdd['on'](_0x5d4879(0x13f),_0x3846eb);});}function a175_0x45f0(){const _0x2cdcb0=['2TKhtWF','yes','isTTY','exit','data','3945368LrtyJe','stdin','close','6098322tAzttA','toLowerCase','741492jQPCCN','write','2487275VFgZgd','2541735QRzAxK','utf8','setEncoding','createInterface','stderr','removeListener','303843nqkdce','question','setRawMode','639656Ybbbjn'];a175_0x45f0=function(){return _0x2cdcb0;};return a175_0x45f0();}
@@ -1 +1 @@
1
- function a176_0x2a63(_0xdc350c,_0x53744f){_0xdc350c=_0xdc350c-0x165;const _0x4a4999=a176_0x4a49();let _0x2a63e8=_0x4a4999[_0xdc350c];return _0x2a63e8;}(function(_0x1d2e79,_0x3df350){const _0x5f021c=a176_0x2a63,_0x45858f=_0x1d2e79();while(!![]){try{const _0x50ddc7=parseInt(_0x5f021c(0x168))/0x1*(-parseInt(_0x5f021c(0x176))/0x2)+parseInt(_0x5f021c(0x17b))/0x3+-parseInt(_0x5f021c(0x179))/0x4*(parseInt(_0x5f021c(0x167))/0x5)+-parseInt(_0x5f021c(0x16d))/0x6+parseInt(_0x5f021c(0x16f))/0x7*(-parseInt(_0x5f021c(0x181))/0x8)+-parseInt(_0x5f021c(0x170))/0x9+parseInt(_0x5f021c(0x166))/0xa*(parseInt(_0x5f021c(0x17f))/0xb);if(_0x50ddc7===_0x3df350)break;else _0x45858f['push'](_0x45858f['shift']());}catch(_0x4dff89){_0x45858f['push'](_0x45858f['shift']());}}}(a176_0x4a49,0xb2b0f));import a176_0x312c0c from'ora';import{isWindows}from'./process.js';function a176_0x4a49(){const _0x5360e1=['toFixed','4250IQZBjl','7145hbnhLJ','987LAjjrQ','stderr','jobId','\x20[Job\x20ID:\x20','replace','4547862sagjbT','intervalFactory','618289wsgXUn','2045763WruiZF','extra','Processing','clock','text','isTTY','626hhXYyT','...','trim','192wNDUQW','start','598437oRunom','cyan','now','stop','81059sNfhMf','isSpinning','112EjuHVH','floor'];a176_0x4a49=function(){return _0x5360e1;};return a176_0x4a49();}const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x4afc99,_0x7301a1={}){const _0xd36fbc=a176_0x2a63,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x7301a1;return a176_0x312c0c({'text':_0x4afc99,'color':_0xd36fbc(0x17c),'stream':process[_0xd36fbc(0x169)],'isEnabled':forceEnabled||process[_0xd36fbc(0x169)][_0xd36fbc(0x175)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x31efeb,_0x3f4f28,_0x266b2f={}){const _0x22eba8=a176_0x2a63,_0x1a05b5=_0x266b2f[_0x22eba8(0x173)]??(()=>Date['now']()),_0x1eb902=createCommandSpinner(_0x31efeb,_0x266b2f);_0x1eb902[_0x22eba8(0x17a)]();const _0x47b4e5=_0x1a05b5();try{const _0x48b691=await _0x3f4f28(),_0x37d6c6=_0x1a05b5()-_0x47b4e5;return _0x1eb902['stop'](),{'data':_0x48b691,'elapsedMs':_0x37d6c6};}catch(_0x326577){_0x1eb902['stop']();throw _0x326577;}}export async function withProgressSpinner(_0x31e814,_0x439a97,_0x31f87={}){const _0x145e6f=a176_0x2a63,_0x42ec81=_0x31f87[_0x145e6f(0x173)]??(()=>Date[_0x145e6f(0x17d)]()),_0x415c07=_0x31f87[_0x145e6f(0x16e)]??setInterval,_0x2c0802=createCommandSpinner(_0x31e814,_0x31f87);_0x2c0802[_0x145e6f(0x17a)]();const _0x3254d7=_0x42ec81(),_0x211e99=_0x31e814[_0x145e6f(0x16c)](_0x145e6f(0x177),'')[_0x145e6f(0x178)]()||_0x145e6f(0x172),_0x3c13cb={};let _0x3f6d41=_0x31e814;const _0x39453b=()=>{const _0x39f858=_0x145e6f;if(!_0x2c0802['isSpinning'])return;const _0x4c0377=_0x42ec81()-_0x3254d7,_0x5ced14=formatElapsed(_0x4c0377),_0x11d9c4=_0x3c13cb['phase']?.[_0x39f858(0x178)]()||_0x211e99,_0x898edb=_0x3c13cb[_0x39f858(0x16a)]?_0x39f858(0x16b)+_0x3c13cb['jobId']+']':'',_0x4df017=_0x3c13cb['extra']?'\x20'+_0x3c13cb['extra']:'',_0x5d0af6=_0x11d9c4+'\x20'+_0x5ced14+_0x4df017+_0x898edb;_0x5d0af6!==_0x3f6d41&&_0x5d0af6['trim']()&&(_0x2c0802[_0x39f858(0x174)]=_0x5d0af6,_0x3f6d41=_0x5d0af6);},_0x1c7947=_0x415c07(()=>{_0x39453b();},0x3e8),_0x176cdd={'setPhase':_0x4e9b5b=>{const _0x23b933=_0x145e6f;_0x3c13cb['phase']=_0x4e9b5b;const _0x1f8b56=_0x4e9b5b?.[_0x23b933(0x178)]()||_0x211e99,_0x48db40=_0x42ec81()-_0x3254d7,_0x167343=formatElapsed(_0x48db40),_0x49d49b=_0x3c13cb[_0x23b933(0x16a)]?_0x23b933(0x16b)+_0x3c13cb[_0x23b933(0x16a)]+']':'',_0xcc3d27=_0x3c13cb[_0x23b933(0x171)]?'\x20'+_0x3c13cb[_0x23b933(0x171)]:'',_0x1bd930=_0x1f8b56+'\x20'+_0x167343+_0xcc3d27+_0x49d49b;_0x2c0802[_0x23b933(0x180)]&&_0x1bd930['trim']()&&(_0x2c0802[_0x23b933(0x174)]=_0x1bd930,_0x3f6d41=_0x1bd930);},'setJobId':_0x418f0e=>{const _0x18f41a=_0x145e6f;_0x3c13cb[_0x18f41a(0x16a)]=_0x418f0e,_0x39453b();},'setExtra':_0x1e10d4=>{const _0x391cb5=_0x145e6f;_0x3c13cb[_0x391cb5(0x171)]=_0x1e10d4,_0x39453b();}};_0x39453b();try{const _0x2ccbb4=await _0x439a97(_0x176cdd),_0x48df3b=_0x42ec81()-_0x3254d7;return{'data':_0x2ccbb4,'elapsedMs':_0x48df3b};}finally{clearInterval(_0x1c7947),_0x2c0802[_0x145e6f(0x17e)]();}}export function formatElapsed(_0x2c516e){const _0x536189=a176_0x2a63,_0x3f1c01=Math[_0x536189(0x182)](_0x2c516e/0x3e8);if(_0x3f1c01<0x3c)return(_0x2c516e/0x3e8)[_0x536189(0x165)](0x1)+'s';const _0x4eced0=Math[_0x536189(0x182)](_0x3f1c01/0x3c),_0x29aa5d=_0x3f1c01%0x3c;if(_0x4eced0<0x3c)return _0x4eced0+'m\x20'+_0x29aa5d+'s';const _0x56254d=Math[_0x536189(0x182)](_0x4eced0/0x3c),_0x112126=_0x4eced0%0x3c;return _0x56254d+'h\x20'+_0x112126+'m';}
1
+ (function(_0x42246d,_0x55778a){const _0x130528=a176_0x48d5,_0x12f0ba=_0x42246d();while(!![]){try{const _0x39e000=parseInt(_0x130528(0x13e))/0x1*(-parseInt(_0x130528(0x131))/0x2)+parseInt(_0x130528(0x12a))/0x3*(parseInt(_0x130528(0x133))/0x4)+-parseInt(_0x130528(0x12c))/0x5+parseInt(_0x130528(0x140))/0x6*(-parseInt(_0x130528(0x12d))/0x7)+-parseInt(_0x130528(0x139))/0x8+-parseInt(_0x130528(0x134))/0x9*(-parseInt(_0x130528(0x145))/0xa)+parseInt(_0x130528(0x13b))/0xb*(parseInt(_0x130528(0x138))/0xc);if(_0x39e000===_0x55778a)break;else _0x12f0ba['push'](_0x12f0ba['shift']());}catch(_0x1d8b37){_0x12f0ba['push'](_0x12f0ba['shift']());}}}(a176_0x4409,0x4100f));import a176_0x26c0bf from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a176_0x48d5(_0x88f821,_0x8bf5ac){_0x88f821=_0x88f821-0x12a;const _0x4409f1=a176_0x4409();let _0x48d50e=_0x4409f1[_0x88f821];return _0x48d50e;}export function createCommandSpinner(_0x19f36f,_0x145f98={}){const _0xaaea52=a176_0x48d5,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x145f98;return a176_0x26c0bf({'text':_0x19f36f,'color':_0xaaea52(0x13f),'stream':process[_0xaaea52(0x144)],'isEnabled':forceEnabled||process['stderr'][_0xaaea52(0x141)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}function a176_0x4409(){const _0x2d305b=['2cXiQpk','\x20[Job\x20ID:\x20','80GrSVrP','18hMcPDz','Processing','now','replace','72qkFgNN','1870000NQsKMw','toFixed','2133076iCPJbn','trim','stop','76433ibdixo','cyan','8994VOAuOo','isTTY','phase','text','stderr','1372360QlVVhS','extra','isSpinning','12237jOOyqH','start','2234705eNAHox','2317WGpgLX','clock','floor','jobId'];a176_0x4409=function(){return _0x2d305b;};return a176_0x4409();}export async function withSpinner(_0x55f9f4,_0x231cd7,_0x14e114={}){const _0x5766ce=a176_0x48d5,_0x4800fe=_0x14e114[_0x5766ce(0x12e)]??(()=>Date[_0x5766ce(0x136)]()),_0x1c2f42=createCommandSpinner(_0x55f9f4,_0x14e114);_0x1c2f42[_0x5766ce(0x12b)]();const _0x41631f=_0x4800fe();try{const _0x1e81e0=await _0x231cd7(),_0x16dd9f=_0x4800fe()-_0x41631f;return _0x1c2f42[_0x5766ce(0x13d)](),{'data':_0x1e81e0,'elapsedMs':_0x16dd9f};}catch(_0x4c271a){_0x1c2f42[_0x5766ce(0x13d)]();throw _0x4c271a;}}export async function withProgressSpinner(_0x41b6c1,_0x209c2a,_0x127dc4={}){const _0x4ed806=a176_0x48d5,_0x3be854=_0x127dc4[_0x4ed806(0x12e)]??(()=>Date[_0x4ed806(0x136)]()),_0x472b95=_0x127dc4['intervalFactory']??setInterval,_0x57797f=createCommandSpinner(_0x41b6c1,_0x127dc4);_0x57797f[_0x4ed806(0x12b)]();const _0x2c625b=_0x3be854(),_0x4bc3b6=_0x41b6c1[_0x4ed806(0x137)]('...','')[_0x4ed806(0x13c)]()||_0x4ed806(0x135),_0x22787f={};let _0x4d13c7=_0x41b6c1;const _0x4e0ef4=()=>{const _0x307ad8=_0x4ed806;if(!_0x57797f[_0x307ad8(0x147)])return;const _0x308b0a=_0x3be854()-_0x2c625b,_0x4f8724=formatElapsed(_0x308b0a),_0x2d4337=_0x22787f['phase']?.[_0x307ad8(0x13c)]()||_0x4bc3b6,_0xeae331=_0x22787f['jobId']?_0x307ad8(0x132)+_0x22787f['jobId']+']':'',_0x3d0744=_0x22787f[_0x307ad8(0x146)]?'\x20'+_0x22787f['extra']:'',_0x38a7fb=_0x2d4337+'\x20'+_0x4f8724+_0x3d0744+_0xeae331;_0x38a7fb!==_0x4d13c7&&_0x38a7fb['trim']()&&(_0x57797f[_0x307ad8(0x143)]=_0x38a7fb,_0x4d13c7=_0x38a7fb);},_0x1e8342=_0x472b95(()=>{_0x4e0ef4();},0x3e8),_0x433971={'setPhase':_0x5d3a14=>{const _0x505b20=_0x4ed806;_0x22787f[_0x505b20(0x142)]=_0x5d3a14;const _0x45bcd2=_0x5d3a14?.['trim']()||_0x4bc3b6,_0x31d3a5=_0x3be854()-_0x2c625b,_0x5f4eda=formatElapsed(_0x31d3a5),_0xe7e464=_0x22787f[_0x505b20(0x130)]?_0x505b20(0x132)+_0x22787f['jobId']+']':'',_0x4976d2=_0x22787f[_0x505b20(0x146)]?'\x20'+_0x22787f[_0x505b20(0x146)]:'',_0x1cc60a=_0x45bcd2+'\x20'+_0x5f4eda+_0x4976d2+_0xe7e464;_0x57797f[_0x505b20(0x147)]&&_0x1cc60a[_0x505b20(0x13c)]()&&(_0x57797f[_0x505b20(0x143)]=_0x1cc60a,_0x4d13c7=_0x1cc60a);},'setJobId':_0x1d4e73=>{const _0x23d0b6=_0x4ed806;_0x22787f[_0x23d0b6(0x130)]=_0x1d4e73,_0x4e0ef4();},'setExtra':_0x39ffcc=>{const _0x178a67=_0x4ed806;_0x22787f[_0x178a67(0x146)]=_0x39ffcc,_0x4e0ef4();}};_0x4e0ef4();try{const _0x50ea8a=await _0x209c2a(_0x433971),_0x5f035e=_0x3be854()-_0x2c625b;return{'data':_0x50ea8a,'elapsedMs':_0x5f035e};}finally{clearInterval(_0x1e8342),_0x57797f[_0x4ed806(0x13d)]();}}export function formatElapsed(_0x210ddb){const _0x322a5b=a176_0x48d5,_0xe7b0bc=Math['floor'](_0x210ddb/0x3e8);if(_0xe7b0bc<0x3c)return(_0x210ddb/0x3e8)[_0x322a5b(0x13a)](0x1)+'s';const _0x2e7e69=Math[_0x322a5b(0x12f)](_0xe7b0bc/0x3c),_0x577ac4=_0xe7b0bc%0x3c;if(_0x2e7e69<0x3c)return _0x2e7e69+'m\x20'+_0x577ac4+'s';const _0x51ac33=Math[_0x322a5b(0x12f)](_0x2e7e69/0x3c),_0x3c5e2a=_0x2e7e69%0x3c;return _0x51ac33+'h\x20'+_0x3c5e2a+'m';}
@@ -1 +1 @@
1
- function a177_0x3359(_0x36de5a,_0xd62c62){_0x36de5a=_0x36de5a-0x156;const _0x48cc62=a177_0x48cc();let _0x335970=_0x48cc62[_0x36de5a];return _0x335970;}(function(_0x345e33,_0x4f2524){const _0x5dd56b=a177_0x3359,_0x4db4be=_0x345e33();while(!![]){try{const _0x4dc264=parseInt(_0x5dd56b(0x156))/0x1+-parseInt(_0x5dd56b(0x15e))/0x2+-parseInt(_0x5dd56b(0x16b))/0x3*(-parseInt(_0x5dd56b(0x166))/0x4)+-parseInt(_0x5dd56b(0x15b))/0x5*(parseInt(_0x5dd56b(0x162))/0x6)+parseInt(_0x5dd56b(0x16e))/0x7+-parseInt(_0x5dd56b(0x160))/0x8*(parseInt(_0x5dd56b(0x16a))/0x9)+parseInt(_0x5dd56b(0x168))/0xa;if(_0x4dc264===_0x4f2524)break;else _0x4db4be['push'](_0x4db4be['shift']());}catch(_0x375cec){_0x4db4be['push'](_0x4db4be['shift']());}}}(a177_0x48cc,0xb2c9a));function a177_0x48cc(){const _0x27ad2c=['Response\x20body\x20is\x20null','slice','132XdflJH','read','1153610BbYBmp','decode','9sRhNao','8907KuKdaV','debug','data','8561553pSKsBC','pop','1365872zjiUsE','startsWith','split','[LLM\x20API\x20SSE]\x20','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1948745Maitpd','indexOf','event','241792HzkiHt','body','9356648mmfzzE','parse','12GgVblV','getReader'];a177_0x48cc=function(){return _0x27ad2c;};return a177_0x48cc();}export async function*parseSSEStream(_0x471070,_0x312fb2){const _0x5c57b4=a177_0x3359;if(!_0x471070[_0x5c57b4(0x15f)])throw new Error(_0x5c57b4(0x164));const _0x1091bc=_0x471070[_0x5c57b4(0x15f)][_0x5c57b4(0x163)](),_0x33cc69=new TextDecoder();let _0x4d0a4b='',_0x2e971e={};try{while(!![]){const {done:_0x4d3526,value:_0x3535dd}=await _0x1091bc[_0x5c57b4(0x167)]();if(_0x4d3526){if(_0x2e971e[_0x5c57b4(0x16d)]){_0x312fb2?.[_0x5c57b4(0x16c)](_0x5c57b4(0x159)+_0x2e971e[_0x5c57b4(0x16d)]);const _0xa84189=parseSSEData(_0x2e971e[_0x5c57b4(0x16d)]);yield _0xa84189;}break;}_0x4d0a4b+=_0x33cc69[_0x5c57b4(0x169)](_0x3535dd,{'stream':!![]});const _0x23096f=_0x4d0a4b[_0x5c57b4(0x158)]('\x0a');_0x4d0a4b=_0x23096f[_0x5c57b4(0x16f)]()||'';for(const _0x2ee504 of _0x23096f){if(_0x2ee504['trim']()===''){if(_0x2e971e[_0x5c57b4(0x16d)]){_0x312fb2?.[_0x5c57b4(0x16c)](_0x5c57b4(0x159)+_0x2e971e[_0x5c57b4(0x16d)]);const _0x1de0b4=parseSSEData(_0x2e971e['data']);yield _0x1de0b4,_0x2e971e={};}continue;}if(_0x2ee504[_0x5c57b4(0x157)](':'))continue;const _0x1438c9=_0x2ee504[_0x5c57b4(0x15c)](':');if(_0x1438c9===-0x1)continue;const _0x2f1799=_0x2ee504['slice'](0x0,_0x1438c9);let _0x42942c=_0x2ee504[_0x5c57b4(0x165)](_0x1438c9+0x1);_0x42942c['startsWith']('\x20')&&(_0x42942c=_0x42942c['slice'](0x1));switch(_0x2f1799){case _0x5c57b4(0x15d):_0x2e971e[_0x5c57b4(0x15d)]=_0x42942c;break;case _0x5c57b4(0x16d):_0x2e971e['data']=_0x2e971e[_0x5c57b4(0x16d)]?_0x2e971e['data']+'\x0a'+_0x42942c:_0x42942c;break;case'id':_0x2e971e['id']=_0x42942c;break;}}}}finally{_0x1091bc['releaseLock']();}}function parseSSEData(_0x226567){const _0x3e577c=a177_0x3359;try{return JSON[_0x3e577c(0x161)](_0x226567);}catch(_0x6af5d7){throw new Error(_0x3e577c(0x15a)+_0x226567,{'cause':_0x6af5d7});}}
1
+ function a177_0x5930(_0x10219d,_0x1a3a60){_0x10219d=_0x10219d-0x1b5;const _0x4388af=a177_0x4388();let _0x593083=_0x4388af[_0x10219d];return _0x593083;}function a177_0x4388(){const _0x315276=['read','trim','data','[LLM\x20API\x20SSE]\x20','89269TSEwIV','775914kcSRwm','startsWith','slice','12596166JWDsDH','debug','event','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','releaseLock','6xLaGYO','124080NnnXNV','8zbbqxe','pop','137682MirSOH','Response\x20body\x20is\x20null','split','indexOf','18JxCUva','1042585PCvOhh','decode','140UyHlag','body','1443496obqQgY','getReader','parse'];a177_0x4388=function(){return _0x315276;};return a177_0x4388();}(function(_0x59335c,_0x3633b0){const _0x55671c=a177_0x5930,_0xa9dd73=_0x59335c();while(!![]){try{const _0xad3aa1=parseInt(_0x55671c(0x1c7))/0x1*(-parseInt(_0x55671c(0x1d0))/0x2)+-parseInt(_0x55671c(0x1c8))/0x3+parseInt(_0x55671c(0x1b5))/0x4*(-parseInt(_0x55671c(0x1bc))/0x5)+-parseInt(_0x55671c(0x1b7))/0x6*(-parseInt(_0x55671c(0x1be))/0x7)+parseInt(_0x55671c(0x1c0))/0x8*(-parseInt(_0x55671c(0x1bb))/0x9)+-parseInt(_0x55671c(0x1d1))/0xa+parseInt(_0x55671c(0x1cb))/0xb;if(_0xad3aa1===_0x3633b0)break;else _0xa9dd73['push'](_0xa9dd73['shift']());}catch(_0x82bb29){_0xa9dd73['push'](_0xa9dd73['shift']());}}}(a177_0x4388,0x46235));export async function*parseSSEStream(_0x1d0f92,_0x47b294){const _0xb247f6=a177_0x5930;if(!_0x1d0f92[_0xb247f6(0x1bf)])throw new Error(_0xb247f6(0x1b8));const _0x499419=_0x1d0f92[_0xb247f6(0x1bf)][_0xb247f6(0x1c1)](),_0x6b346b=new TextDecoder();let _0x2c2913='',_0x1c0ef8={};try{while(!![]){const {done:_0x3ab110,value:_0x3a514a}=await _0x499419[_0xb247f6(0x1c3)]();if(_0x3ab110){if(_0x1c0ef8['data']){_0x47b294?.[_0xb247f6(0x1cc)](_0xb247f6(0x1c6)+_0x1c0ef8[_0xb247f6(0x1c5)]);const _0x30d46c=parseSSEData(_0x1c0ef8[_0xb247f6(0x1c5)]);yield _0x30d46c;}break;}_0x2c2913+=_0x6b346b[_0xb247f6(0x1bd)](_0x3a514a,{'stream':!![]});const _0x421b1c=_0x2c2913[_0xb247f6(0x1b9)]('\x0a');_0x2c2913=_0x421b1c[_0xb247f6(0x1b6)]()||'';for(const _0x4c7840 of _0x421b1c){if(_0x4c7840[_0xb247f6(0x1c4)]()===''){if(_0x1c0ef8['data']){_0x47b294?.[_0xb247f6(0x1cc)](_0xb247f6(0x1c6)+_0x1c0ef8[_0xb247f6(0x1c5)]);const _0x47ebad=parseSSEData(_0x1c0ef8['data']);yield _0x47ebad,_0x1c0ef8={};}continue;}if(_0x4c7840[_0xb247f6(0x1c9)](':'))continue;const _0x287b74=_0x4c7840[_0xb247f6(0x1ba)](':');if(_0x287b74===-0x1)continue;const _0x6258dd=_0x4c7840[_0xb247f6(0x1ca)](0x0,_0x287b74);let _0x4e7be0=_0x4c7840['slice'](_0x287b74+0x1);_0x4e7be0['startsWith']('\x20')&&(_0x4e7be0=_0x4e7be0[_0xb247f6(0x1ca)](0x1));switch(_0x6258dd){case'event':_0x1c0ef8[_0xb247f6(0x1cd)]=_0x4e7be0;break;case _0xb247f6(0x1c5):_0x1c0ef8[_0xb247f6(0x1c5)]=_0x1c0ef8[_0xb247f6(0x1c5)]?_0x1c0ef8[_0xb247f6(0x1c5)]+'\x0a'+_0x4e7be0:_0x4e7be0;break;case'id':_0x1c0ef8['id']=_0x4e7be0;break;}}}}finally{_0x499419[_0xb247f6(0x1cf)]();}}function parseSSEData(_0x5e05ff){const _0x3c5b6b=a177_0x5930;try{return JSON[_0x3c5b6b(0x1c2)](_0x5e05ff);}catch(_0x77790a){throw new Error(_0x3c5b6b(0x1ce)+_0x5e05ff,{'cause':_0x77790a});}}
@@ -1 +1 @@
1
- (function(_0x163022,_0x20fdbf){const _0xd09743=a178_0x37aa,_0x3290cd=_0x163022();while(!![]){try{const _0x16f1d5=parseInt(_0xd09743(0x1c6))/0x1+-parseInt(_0xd09743(0x1d9))/0x2*(parseInt(_0xd09743(0x1cc))/0x3)+-parseInt(_0xd09743(0x1d5))/0x4*(-parseInt(_0xd09743(0x1c5))/0x5)+-parseInt(_0xd09743(0x1d1))/0x6+-parseInt(_0xd09743(0x1cb))/0x7*(parseInt(_0xd09743(0x1c4))/0x8)+parseInt(_0xd09743(0x1c9))/0x9*(-parseInt(_0xd09743(0x1d4))/0xa)+parseInt(_0xd09743(0x1d8))/0xb;if(_0x16f1d5===_0x20fdbf)break;else _0x3290cd['push'](_0x3290cd['shift']());}catch(_0x2f0c06){_0x3290cd['push'](_0x3290cd['shift']());}}}(a178_0x565e,0xb192e));import a178_0x2eb1c9 from'string-width';export function stringWidth(_0x25df5b){return a178_0x2eb1c9(_0x25df5b);}export function padEnd(_0x3e7497,_0x401162){const _0x2b626a=stringWidth(_0x3e7497);if(_0x2b626a>=_0x401162)return _0x3e7497;return _0x3e7497+'\x20'['repeat'](_0x401162-_0x2b626a);}export function padStart(_0x323571,_0x1dc778){const _0x1af747=a178_0x37aa,_0x440baa=stringWidth(_0x323571);if(_0x440baa>=_0x1dc778)return _0x323571;return'\x20'[_0x1af747(0x1c3)](_0x1dc778-_0x440baa)+_0x323571;}export function centerAlign(_0x3bb1bc,_0x396bb9){const _0x785b79=a178_0x37aa,_0x45c845=stringWidth(_0x3bb1bc);if(_0x45c845>_0x396bb9){if(_0x396bb9<=0x1)return'…'[_0x785b79(0x1c7)](0x0,_0x396bb9);let _0xeabde9=_0x3bb1bc;while(stringWidth(_0xeabde9+'…')>_0x396bb9){_0xeabde9=_0xeabde9[_0x785b79(0x1ce)](0x0,-0x1);}return _0xeabde9+'…';}if(_0x45c845===_0x396bb9)return _0x3bb1bc;const _0x24fdea=_0x396bb9-_0x45c845,_0x4b8b96=Math[_0x785b79(0x1d0)](_0x24fdea/0x2),_0x4e88c4=_0x24fdea-_0x4b8b96;return'\x20'['repeat'](_0x4b8b96)+_0x3bb1bc+'\x20'[_0x785b79(0x1c3)](_0x4e88c4);}export function escapeStringLiteral(_0x507667){const _0x46424f=a178_0x37aa;if(!_0x507667||_0x507667[_0x46424f(0x1c8)]()['length']===0x0)throw new Error(_0x46424f(0x1ca));const _0x3f0e3e=_0x507667['replace'](/'/g,'\x27\x27');return'\x27'+_0x3f0e3e+'\x27';}export function globToLike(_0x54a4cc){const _0x3ee0f1=a178_0x37aa;let _0x581f16=_0x54a4cc[_0x3ee0f1(0x1cd)](/\\/g,'\x5c\x5c')[_0x3ee0f1(0x1cd)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x581f16=_0x581f16[_0x3ee0f1(0x1cd)](/\*/g,'%')[_0x3ee0f1(0x1cd)](/\?/g,'_'),_0x581f16;}export function buildLikePattern(_0x25c19b){const _0x271b44=a178_0x37aa;if(!_0x25c19b||_0x25c19b[_0x271b44(0x1c8)]()['length']===0x0)throw new Error(_0x271b44(0x1d2));const _0x574df2=globToLike(_0x25c19b),_0x15a950=_0x574df2[_0x271b44(0x1cd)](/'/g,'\x27\x27');return'\x27'+_0x15a950+'\x27';}function a178_0x565e(){const _0x45dcb5=['slice','unknown','floor','4991838UffwqF','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','test','8530IowFuO','67196WVSawX','random','toLowerCase','17714378UXXdih','2rCNPko','\x5c$&','repeat','8iQZRVu','155PFKVgZ','1274971tFiIYE','substring','trim','12069tICijs','Cannot\x20escape\x20empty\x20string\x20literal','1889419GZWUat','1299099cIUXZn','replace'];a178_0x565e=function(){return _0x45dcb5;};return a178_0x565e();}function a178_0x37aa(_0x427f55,_0xcee495){_0x427f55=_0x427f55-0x1c2;const _0x565ec7=a178_0x565e();let _0x37aa9a=_0x565ec7[_0x427f55];return _0x37aa9a;}export function matchGlobPattern(_0x14e66a,_0x30fa75){const _0x528e7f=a178_0x37aa,_0x34122e=_0x30fa75['replace'](/[.+^${}()|[\]\\]/g,_0x528e7f(0x1c2))[_0x528e7f(0x1cd)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x127260=new RegExp('^'+_0x34122e+'$');return _0x127260[_0x528e7f(0x1d3)](_0x14e66a);}export function getSanitizedUsername(){const _0x5378ab=a178_0x37aa,_0xcb8a26=process.env.USER||process.env.USERNAME||_0x5378ab(0x1cf);return _0xcb8a26[_0x5378ab(0x1cd)](/[^a-zA-Z0-9]/g,'')[_0x5378ab(0x1d7)]();}export function generateRandomHex(){const _0x502925=a178_0x37aa,_0x11ff87=Math[_0x502925(0x1d0)](Math[_0x502925(0x1d6)]()*0xfffff);return _0x11ff87['toString'](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x40bb6c){const _0x5ddacb=a178_0x37aa;return _0x40bb6c['toLowerCase']()[_0x5ddacb(0x1cd)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x5ddacb(0x1cd)](/-+/g,'-')[_0x5ddacb(0x1cd)](/^-|-$/g,'');}
1
+ function a178_0xce5b(){const _0x549f12=['unknown','1001915iMCtgu','slice','110620XqfKGv','toString','random','trim','toLowerCase','3483296Wulsfn','Cannot\x20escape\x20empty\x20string\x20literal','170tXGLBM','295EtkSOT','1212186UVWYuX','test','floor','replace','2IwJJYH','repeat','length','1054881BNdaVS','522277NvpUqJ','4331916ztcAje'];a178_0xce5b=function(){return _0x549f12;};return a178_0xce5b();}(function(_0x34089a,_0x405b4a){const _0x3ee83d=a178_0x3148,_0x4e1fb2=_0x34089a();while(!![]){try{const _0x1e4e4e=parseInt(_0x3ee83d(0xec))/0x1+parseInt(_0x3ee83d(0xe5))/0x2*(parseInt(_0x3ee83d(0xe1))/0x3)+-parseInt(_0x3ee83d(0xee))/0x4*(-parseInt(_0x3ee83d(0xe0))/0x5)+-parseInt(_0x3ee83d(0xea))/0x6+parseInt(_0x3ee83d(0xe9))/0x7+parseInt(_0x3ee83d(0xdd))/0x8+parseInt(_0x3ee83d(0xe8))/0x9*(-parseInt(_0x3ee83d(0xdf))/0xa);if(_0x1e4e4e===_0x405b4a)break;else _0x4e1fb2['push'](_0x4e1fb2['shift']());}catch(_0xf9b217){_0x4e1fb2['push'](_0x4e1fb2['shift']());}}}(a178_0xce5b,0xcb652));import a178_0x9e693d from'string-width';export function stringWidth(_0x214f7c){return a178_0x9e693d(_0x214f7c);}export function padEnd(_0x497341,_0x3547d6){const _0x2e62b1=a178_0x3148,_0x3efa40=stringWidth(_0x497341);if(_0x3efa40>=_0x3547d6)return _0x497341;return _0x497341+'\x20'[_0x2e62b1(0xe6)](_0x3547d6-_0x3efa40);}export function padStart(_0x5f3e2e,_0x4f5bc7){const _0x1a7789=a178_0x3148,_0x539923=stringWidth(_0x5f3e2e);if(_0x539923>=_0x4f5bc7)return _0x5f3e2e;return'\x20'[_0x1a7789(0xe6)](_0x4f5bc7-_0x539923)+_0x5f3e2e;}export function centerAlign(_0x3f6155,_0x2b775c){const _0x3b5068=a178_0x3148,_0x500b96=stringWidth(_0x3f6155);if(_0x500b96>_0x2b775c){if(_0x2b775c<=0x1)return'…'['substring'](0x0,_0x2b775c);let _0x188c8c=_0x3f6155;while(stringWidth(_0x188c8c+'…')>_0x2b775c){_0x188c8c=_0x188c8c[_0x3b5068(0xed)](0x0,-0x1);}return _0x188c8c+'…';}if(_0x500b96===_0x2b775c)return _0x3f6155;const _0x399701=_0x2b775c-_0x500b96,_0x3bc7bf=Math['floor'](_0x399701/0x2),_0x4b5065=_0x399701-_0x3bc7bf;return'\x20'['repeat'](_0x3bc7bf)+_0x3f6155+'\x20'[_0x3b5068(0xe6)](_0x4b5065);}export function escapeStringLiteral(_0x61fa1e){const _0x401588=a178_0x3148;if(!_0x61fa1e||_0x61fa1e[_0x401588(0xf1)]()[_0x401588(0xe7)]===0x0)throw new Error(_0x401588(0xde));const _0x53e048=_0x61fa1e[_0x401588(0xe4)](/'/g,'\x27\x27');return'\x27'+_0x53e048+'\x27';}function a178_0x3148(_0x22e94a,_0x2e4a84){_0x22e94a=_0x22e94a-0xdd;const _0xce5ba9=a178_0xce5b();let _0x314869=_0xce5ba9[_0x22e94a];return _0x314869;}export function globToLike(_0x37061e){const _0x53d125=a178_0x3148;let _0x2419d4=_0x37061e['replace'](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x53d125(0xe4)](/_/g,'\x5c_');return _0x2419d4=_0x2419d4['replace'](/\*/g,'%')[_0x53d125(0xe4)](/\?/g,'_'),_0x2419d4;}export function buildLikePattern(_0x404130){const _0x55beae=a178_0x3148;if(!_0x404130||_0x404130[_0x55beae(0xf1)]()[_0x55beae(0xe7)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x186742=globToLike(_0x404130),_0xa5ea14=_0x186742[_0x55beae(0xe4)](/'/g,'\x27\x27');return'\x27'+_0xa5ea14+'\x27';}export function matchGlobPattern(_0x5491db,_0x114f89){const _0x508b85=a178_0x3148,_0x25013d=_0x114f89['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x508b85(0xe4)](/\*/g,'.*')[_0x508b85(0xe4)](/\?/g,'.'),_0x2b3547=new RegExp('^'+_0x25013d+'$');return _0x2b3547[_0x508b85(0xe2)](_0x5491db);}export function getSanitizedUsername(){const _0xc7dc31=a178_0x3148,_0x3ce9e3=process.env.USER||process.env.USERNAME||_0xc7dc31(0xeb);return _0x3ce9e3[_0xc7dc31(0xe4)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x2acc7f=a178_0x3148,_0xc66c50=Math[_0x2acc7f(0xe3)](Math[_0x2acc7f(0xf0)]()*0xfffff);return _0xc66c50[_0x2acc7f(0xef)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x16a31b){const _0x111c1c=a178_0x3148;return _0x16a31b[_0x111c1c(0xf2)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x111c1c(0xe4)](/\s+/g,'-')[_0x111c1c(0xe4)](/-+/g,'-')[_0x111c1c(0xe4)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x2b8337,_0x1cbe22){const _0x9889e=a179_0x508a,_0x4eb7a8=_0x2b8337();while(!![]){try{const _0x462705=parseInt(_0x9889e(0x138))/0x1*(-parseInt(_0x9889e(0x13f))/0x2)+parseInt(_0x9889e(0x14a))/0x3*(-parseInt(_0x9889e(0x141))/0x4)+parseInt(_0x9889e(0x145))/0x5+-parseInt(_0x9889e(0x137))/0x6*(-parseInt(_0x9889e(0x134))/0x7)+parseInt(_0x9889e(0x142))/0x8*(parseInt(_0x9889e(0x133))/0x9)+parseInt(_0x9889e(0x14b))/0xa+parseInt(_0x9889e(0x132))/0xb*(parseInt(_0x9889e(0x136))/0xc);if(_0x462705===_0x1cbe22)break;else _0x4eb7a8['push'](_0x4eb7a8['shift']());}catch(_0x2c2b3e){_0x4eb7a8['push'](_0x4eb7a8['shift']());}}}(a179_0x3018,0x47cce));function hasWildcard(_0x4541b4){const _0x4fef3c=a179_0x508a;return _0x4541b4[_0x4fef3c(0x147)]('*')||_0x4541b4[_0x4fef3c(0x147)]('?');}export function parseTableReference(_0x3fc2de){const _0x1ccac3=a179_0x508a;if(!_0x3fc2de||_0x3fc2de[_0x1ccac3(0x139)]()[_0x1ccac3(0x149)]===0x0)throw new Error(_0x1ccac3(0x143));const _0x4ce68f=_0x3fc2de[_0x1ccac3(0x139)](),_0x2bbf4a={'original':_0x4ce68f},_0x3830ba=_0x4ce68f['split']('.');if(_0x3830ba['length']===0x1){const _0x4a88b4=_0x3830ba[0x0];if(!_0x4a88b4)throw new Error(_0x1ccac3(0x13d));_0x2bbf4a[_0x1ccac3(0x13e)]=_0x4a88b4;}else{if(_0x3830ba[_0x1ccac3(0x149)]===0x2){const [_0x20b96d,_0x2263d3]=_0x3830ba;if(!_0x20b96d)throw new Error(_0x1ccac3(0x148));if(!_0x2263d3)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x2bbf4a[_0x1ccac3(0x140)]=_0x20b96d,_0x2bbf4a[_0x1ccac3(0x13e)]=_0x2263d3;}else{if(_0x3830ba[_0x1ccac3(0x149)]===0x3){const [_0x2447c3,_0x2e4df0,_0x28a369]=_0x3830ba;if(!_0x2447c3||!_0x2e4df0||!_0x28a369)throw new Error(_0x1ccac3(0x13a));_0x2bbf4a[_0x1ccac3(0x146)]=_0x2447c3,_0x2bbf4a[_0x1ccac3(0x140)]=_0x2e4df0,_0x2bbf4a[_0x1ccac3(0x13e)]=_0x28a369;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x2bbf4a;}export function formatTableReference(_0x10286c){const _0x5881ff=a179_0x508a,_0x5c487b=[];return _0x10286c['catalog']&&_0x5c487b[_0x5881ff(0x13b)](_0x10286c[_0x5881ff(0x146)]),_0x10286c['database']&&_0x5c487b['push'](_0x10286c[_0x5881ff(0x140)]),_0x10286c['table']&&_0x5c487b['push'](_0x10286c[_0x5881ff(0x13e)]),_0x5c487b[_0x5881ff(0x13c)]('.');}export function validateTableListReference(_0xeefdcb){return undefined;}export function validateTableDescribeReference(_0x5a9a2d){const _0x228d3b=a179_0x508a;if(!_0x5a9a2d[_0x228d3b(0x13e)])return _0x228d3b(0x144);if(_0x5a9a2d[_0x228d3b(0x140)]&&hasWildcard(_0x5a9a2d[_0x228d3b(0x140)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x5a9a2d['table']))return _0x228d3b(0x135);return undefined;}function a179_0x508a(_0x4c9229,_0x44c60d){_0x4c9229=_0x4c9229-0x132;const _0x3018b8=a179_0x3018();let _0x508a5e=_0x3018b8[_0x4c9229];return _0x508a5e;}function a179_0x3018(){const _0x1b3535=['Table\x20name\x20is\x20required\x20for\x20describe\x20operation','635865zFsaOP','catalog','includes','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','length','115053vNWMDs','4320020HCqtmD','2984531iTCTki','36wtzJjk','1976443SxpDFr','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','12DAOCkI','12tVqiBF','3277BQBGyN','trim','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','push','join','Pattern\x20cannot\x20be\x20just\x20a\x20dot','table','334GFNhDo','database','60KmZvSp','42848KBCepV','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only'];a179_0x3018=function(){return _0x1b3535;};return a179_0x3018();}
1
+ function a179_0x2059(_0x3efaaf,_0x1c8f0d){_0x3efaaf=_0x3efaaf-0x109;const _0x49c7cf=a179_0x49c7();let _0x205963=_0x49c7cf[_0x3efaaf];return _0x205963;}(function(_0x3ff42e,_0x26e693){const _0x2785d6=a179_0x2059,_0x37684=_0x3ff42e();while(!![]){try{const _0x4f5018=parseInt(_0x2785d6(0x117))/0x1*(parseInt(_0x2785d6(0x118))/0x2)+parseInt(_0x2785d6(0x123))/0x3*(parseInt(_0x2785d6(0x110))/0x4)+-parseInt(_0x2785d6(0x116))/0x5+parseInt(_0x2785d6(0x111))/0x6*(parseInt(_0x2785d6(0x119))/0x7)+parseInt(_0x2785d6(0x11f))/0x8+-parseInt(_0x2785d6(0x113))/0x9*(-parseInt(_0x2785d6(0x122))/0xa)+-parseInt(_0x2785d6(0x121))/0xb*(parseInt(_0x2785d6(0x114))/0xc);if(_0x4f5018===_0x26e693)break;else _0x37684['push'](_0x37684['shift']());}catch(_0x1c371d){_0x37684['push'](_0x37684['shift']());}}}(a179_0x49c7,0xe8782));function hasWildcard(_0x5e0e33){const _0x1e28ce=a179_0x2059;return _0x5e0e33[_0x1e28ce(0x10f)]('*')||_0x5e0e33[_0x1e28ce(0x10f)]('?');}export function parseTableReference(_0x17dbff){const _0x5375f0=a179_0x2059;if(!_0x17dbff||_0x17dbff[_0x5375f0(0x109)]()[_0x5375f0(0x10b)]===0x0)throw new Error(_0x5375f0(0x11e));const _0x581001=_0x17dbff[_0x5375f0(0x109)](),_0x4d590b={'original':_0x581001},_0xc48034=_0x581001['split']('.');if(_0xc48034[_0x5375f0(0x10b)]===0x1){const _0x43276d=_0xc48034[0x0];if(!_0x43276d)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x4d590b['table']=_0x43276d;}else{if(_0xc48034[_0x5375f0(0x10b)]===0x2){const [_0x46f9b4,_0x2d45f3]=_0xc48034;if(!_0x46f9b4)throw new Error(_0x5375f0(0x10a));if(!_0x2d45f3)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x4d590b[_0x5375f0(0x11a)]=_0x46f9b4,_0x4d590b['table']=_0x2d45f3;}else{if(_0xc48034[_0x5375f0(0x10b)]===0x3){const [_0x387664,_0x4288b2,_0x124cc1]=_0xc48034;if(!_0x387664||!_0x4288b2||!_0x124cc1)throw new Error(_0x5375f0(0x11b));_0x4d590b[_0x5375f0(0x112)]=_0x387664,_0x4d590b['database']=_0x4288b2,_0x4d590b[_0x5375f0(0x10d)]=_0x124cc1;}else throw new Error(_0x5375f0(0x115));}}return _0x4d590b;}function a179_0x49c7(){const _0x3eabd8=['join','table','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','includes','4QcjoqS','203490JYHlHu','catalog','449235oxyjTH','8364LAdLsT','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','6457595ZkQqkt','1lVrUcn','2228784JHYViK','119GZLisi','database','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','6367456yDPCuU','push','59389yeUHSS','370DuSYKZ','5019246dxoOPY','trim','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','length'];a179_0x49c7=function(){return _0x3eabd8;};return a179_0x49c7();}export function formatTableReference(_0x363db4){const _0x1a641f=a179_0x2059,_0x4171b2=[];return _0x363db4[_0x1a641f(0x112)]&&_0x4171b2[_0x1a641f(0x120)](_0x363db4['catalog']),_0x363db4[_0x1a641f(0x11a)]&&_0x4171b2['push'](_0x363db4[_0x1a641f(0x11a)]),_0x363db4['table']&&_0x4171b2[_0x1a641f(0x120)](_0x363db4[_0x1a641f(0x10d)]),_0x4171b2[_0x1a641f(0x10c)]('.');}export function validateTableListReference(_0x1cbb74){return undefined;}export function validateTableDescribeReference(_0x33d80d){const _0x3083f5=a179_0x2059;if(!_0x33d80d['table'])return _0x3083f5(0x11d);if(_0x33d80d[_0x3083f5(0x11a)]&&hasWildcard(_0x33d80d['database']))return _0x3083f5(0x10e);if(hasWildcard(_0x33d80d['table']))return _0x3083f5(0x11c);return undefined;}
@@ -1 +1 @@
1
- const a180_0x266faa=a180_0x148b;function a180_0x148b(_0x32499e,_0x5750fb){_0x32499e=_0x32499e-0x15f;const _0x4e7a43=a180_0x4e7a();let _0x148b04=_0x4e7a43[_0x32499e];return _0x148b04;}function a180_0x4e7a(){const _0x19a0e7=['shutdown','info','fileHandler','logDir','INFO','consoleHandler','logLevel','432ocbwba','3624egJaaO','fileOnly','close','isInitialized','316SabJsP','Session\x20ended','init','logger','logFileName','3834gFZxAr','addHandler','88263lyhQie','trace','tdx','1902NqvlcU','getLogPath','error','tdx.log','2924336XcnlEd','9362510SolBVm','1179891SzjwXO','1647900NXPkmh','debug'];a180_0x4e7a=function(){return _0x19a0e7;};return a180_0x4e7a();}(function(_0x239861,_0x1c4f56){const _0x2ebcd8=a180_0x148b,_0x5eee6f=_0x239861();while(!![]){try{const _0x8f58f6=parseInt(_0x2ebcd8(0x175))/0x1*(-parseInt(_0x2ebcd8(0x17a))/0x2)+parseInt(_0x2ebcd8(0x160))/0x3*(-parseInt(_0x2ebcd8(0x171))/0x4)+parseInt(_0x2ebcd8(0x167))/0x5+-parseInt(_0x2ebcd8(0x170))/0x6*(-parseInt(_0x2ebcd8(0x17c))/0x7)+-parseInt(_0x2ebcd8(0x164))/0x8+-parseInt(_0x2ebcd8(0x166))/0x9+parseInt(_0x2ebcd8(0x165))/0xa;if(_0x8f58f6===_0x1c4f56)break;else _0x5eee6f['push'](_0x5eee6f['shift']());}catch(_0x37a993){_0x5eee6f['push'](_0x5eee6f['shift']());}}}(a180_0x4e7a,0x794de));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a180_0x266faa(0x16f)];['fileOnly'];[a180_0x266faa(0x16c)];[a180_0x266faa(0x179)];['logger'];[a180_0x266faa(0x16b)]=null;[a180_0x266faa(0x16e)]=null;constructor(_0x3ea5ca=LogLevel[a180_0x266faa(0x16d)],_0x52bae5=![],_0x257a52,_0x39e0b4=a180_0x266faa(0x163)){const _0x507a32=a180_0x266faa;this['logLevel']=_0x3ea5ca,this['fileOnly']=_0x52bae5,this['logDir']=_0x257a52||join(getGlobalCacheDir(),'logs'),this[_0x507a32(0x179)]=_0x39e0b4,this['logger']=Logger['of'](_0x507a32(0x15f));}async[a180_0x266faa(0x177)](){const _0x4fc9b0=a180_0x266faa,_0x39ce93=join(this[_0x4fc9b0(0x16c)],this[_0x4fc9b0(0x179)]);if(Logger[_0x4fc9b0(0x174)]()){!this[_0x4fc9b0(0x172)]&&(this[_0x4fc9b0(0x16e)]=new ConsoleHandler({'minLevel':LogLevel[_0x4fc9b0(0x16d)],'colors':!![]}),Logger[_0x4fc9b0(0x17b)](this[_0x4fc9b0(0x16e)]));return;}this[_0x4fc9b0(0x16b)]=new FileHandler({'filePath':_0x39ce93});const _0x1de1d1=[this[_0x4fc9b0(0x16b)]];!this[_0x4fc9b0(0x172)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),_0x1de1d1['push'](this['consoleHandler'])),await Logger[_0x4fc9b0(0x177)]({'defaultLevel':this['logLevel'],'handlers':_0x1de1d1,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a180_0x266faa(0x168)](..._0x26a6fd){const _0x547499=a180_0x266faa;this[_0x547499(0x178)]['debug'](..._0x26a6fd);}['trace'](..._0x43ddae){const _0x21512a=a180_0x266faa;this[_0x21512a(0x178)][_0x21512a(0x17d)](..._0x43ddae);}[a180_0x266faa(0x16a)](..._0x28f801){const _0x46337a=a180_0x266faa;this[_0x46337a(0x178)][_0x46337a(0x16a)](..._0x28f801);}['warn'](..._0x2a61eb){const _0x5e794f=a180_0x266faa;this[_0x5e794f(0x178)]['warn'](..._0x2a61eb);}[a180_0x266faa(0x162)](..._0x40dd5c){const _0x4bc2fe=a180_0x266faa;this[_0x4bc2fe(0x178)]['error'](..._0x40dd5c);}async[a180_0x266faa(0x173)](){const _0x4fe365=a180_0x266faa;this['logger'][_0x4fe365(0x16a)](_0x4fe365(0x176)),await Logger[_0x4fe365(0x169)]();}[a180_0x266faa(0x161)](){const _0x16547a=a180_0x266faa;return join(this[_0x16547a(0x16c)],this[_0x16547a(0x179)]);}}
1
+ const a180_0x36c644=a180_0x2d20;(function(_0x3aa4c1,_0x54a739){const _0xdc3292=a180_0x2d20,_0x312b96=_0x3aa4c1();while(!![]){try{const _0x22b71d=parseInt(_0xdc3292(0x150))/0x1+parseInt(_0xdc3292(0x141))/0x2*(parseInt(_0xdc3292(0x144))/0x3)+parseInt(_0xdc3292(0x13c))/0x4+-parseInt(_0xdc3292(0x137))/0x5*(-parseInt(_0xdc3292(0x13b))/0x6)+-parseInt(_0xdc3292(0x145))/0x7+parseInt(_0xdc3292(0x136))/0x8*(-parseInt(_0xdc3292(0x148))/0x9)+parseInt(_0xdc3292(0x142))/0xa*(parseInt(_0xdc3292(0x139))/0xb);if(_0x22b71d===_0x54a739)break;else _0x312b96['push'](_0x312b96['shift']());}catch(_0x27f1f6){_0x312b96['push'](_0x312b96['shift']());}}}(a180_0x1b6b,0x93ec4));import{join}from'path';function a180_0x2d20(_0x3f613a,_0x53e9d6){_0x3f613a=_0x3f613a-0x131;const _0x1b6bb9=a180_0x1b6b();let _0x2d20f1=_0x1b6bb9[_0x3f613a];return _0x2d20f1;}import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a180_0x36c644(0x138)];[a180_0x36c644(0x14f)];[a180_0x36c644(0x14d)];[a180_0x36c644(0x13e)];[a180_0x36c644(0x14b)];['fileHandler']=null;['consoleHandler']=null;constructor(_0x1f4d94=LogLevel[a180_0x36c644(0x134)],_0x14325e=![],_0x47ed5c,_0x2c85aa=a180_0x36c644(0x13d)){const _0x226b92=a180_0x36c644;this[_0x226b92(0x138)]=_0x1f4d94,this[_0x226b92(0x14f)]=_0x14325e,this[_0x226b92(0x14d)]=_0x47ed5c||join(getGlobalCacheDir(),_0x226b92(0x14a)),this[_0x226b92(0x13e)]=_0x2c85aa,this[_0x226b92(0x14b)]=Logger['of'](_0x226b92(0x13f));}async[a180_0x36c644(0x140)](){const _0x39d22d=a180_0x36c644,_0x3f68d8=join(this[_0x39d22d(0x14d)],this[_0x39d22d(0x13e)]);if(Logger[_0x39d22d(0x146)]()){!this[_0x39d22d(0x14f)]&&(this[_0x39d22d(0x14c)]=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),Logger[_0x39d22d(0x149)](this['consoleHandler']));return;}this[_0x39d22d(0x147)]=new FileHandler({'filePath':_0x3f68d8});const _0x2faaaf=[this[_0x39d22d(0x147)]];!this[_0x39d22d(0x14f)]&&(this[_0x39d22d(0x14c)]=new ConsoleHandler({'minLevel':LogLevel[_0x39d22d(0x134)],'colors':!![]}),_0x2faaaf[_0x39d22d(0x133)](this[_0x39d22d(0x14c)])),await Logger['init']({'defaultLevel':this['logLevel'],'handlers':_0x2faaaf,'formatter':new DefaultLogFormatter({'colors':!![]})});}['debug'](..._0x9ce88f){const _0x20e2fe=a180_0x36c644;this[_0x20e2fe(0x14b)][_0x20e2fe(0x13a)](..._0x9ce88f);}[a180_0x36c644(0x132)](..._0x323ab8){const _0x49fc72=a180_0x36c644;this[_0x49fc72(0x14b)]['trace'](..._0x323ab8);}[a180_0x36c644(0x131)](..._0x10cbd0){const _0x359b26=a180_0x36c644;this[_0x359b26(0x14b)]['info'](..._0x10cbd0);}[a180_0x36c644(0x14e)](..._0x5a1b40){const _0x329ea5=a180_0x36c644;this['logger'][_0x329ea5(0x14e)](..._0x5a1b40);}['error'](..._0x48d4a0){this['logger']['error'](..._0x48d4a0);}async['close'](){const _0x59aa40=a180_0x36c644;this[_0x59aa40(0x14b)][_0x59aa40(0x131)](_0x59aa40(0x151)),await Logger[_0x59aa40(0x135)]();}[a180_0x36c644(0x143)](){const _0xc4e99=a180_0x36c644;return join(this[_0xc4e99(0x14d)],this[_0xc4e99(0x13e)]);}}function a180_0x1b6b(){const _0x150105=['7042280ZUWcOU','isInitialized','fileHandler','4552587pFjnWC','addHandler','logs','logger','consoleHandler','logDir','warn','fileOnly','315266cCjaPK','Session\x20ended','info','trace','push','INFO','shutdown','16aoeHIL','5193535gCWiPd','logLevel','428934TboRbE','debug','6arovEp','4203664kOGMUz','tdx.log','logFileName','tdx','init','203494utereB','30FsZbQM','getLogPath','3imRHNw'];a180_0x1b6b=function(){return _0x150105;};return a180_0x1b6b();}
@@ -1 +1 @@
1
- const a181_0x4459ef=a181_0x25a2;(function(_0x462803,_0x5c617a){const _0x302126=a181_0x25a2,_0x1983a5=_0x462803();while(!![]){try{const _0x15c6fe=-parseInt(_0x302126(0x161))/0x1*(-parseInt(_0x302126(0x155))/0x2)+parseInt(_0x302126(0x16f))/0x3*(parseInt(_0x302126(0x16a))/0x4)+-parseInt(_0x302126(0x156))/0x5+parseInt(_0x302126(0x171))/0x6+-parseInt(_0x302126(0x163))/0x7+-parseInt(_0x302126(0x154))/0x8*(parseInt(_0x302126(0x153))/0x9)+parseInt(_0x302126(0x158))/0xa*(parseInt(_0x302126(0x15d))/0xb);if(_0x15c6fe===_0x5c617a)break;else _0x1983a5['push'](_0x1983a5['shift']());}catch(_0x4526a3){_0x1983a5['push'](_0x1983a5['shift']());}}}(a181_0x5c24,0xaa808));import{get}from'https';import{gt,valid}from'semver';import a181_0x31e4ec from'chalk';import{createGlobalCache}from'./global-cache.js';function a181_0x25a2(_0x21707f,_0x34c8dc){_0x21707f=_0x21707f-0x150;const _0x5c2492=a181_0x5c24();let _0x25a2bb=_0x5c2492[_0x21707f];return _0x25a2bb;}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a181_0x4459ef(0x164),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a181_0x4459ef(0x150),'utils/version-check'),nextVersionCache=createGlobalCache('last_version_check_next',a181_0x4459ef(0x174));function getCacheForChannel(_0x38040e){const _0x25282c=a181_0x4459ef;return _0x38040e===_0x25282c(0x178)?nextVersionCache:stableVersionCache;}function readCache(_0x444703){const _0x3fc008=a181_0x4459ef;return getCacheForChannel(_0x444703)[_0x3fc008(0x16d)]()??null;}function writeCache(_0x2aef0f,_0x4455f8){const _0x2c9f6e=a181_0x4459ef;try{getCacheForChannel(_0x4455f8)['write']({'lastCheck':new Date()[_0x2c9f6e(0x151)](),'latestVersion':_0x2aef0f});}catch{}}function isCacheValid(_0x3cc33a){const _0x844fb8=a181_0x4459ef;if(!_0x3cc33a)return![];const _0x1c866b=new Date(_0x3cc33a[_0x844fb8(0x15b)])[_0x844fb8(0x16c)](),_0x334bff=Date[_0x844fb8(0x15e)]();return _0x334bff-_0x1c866b<CACHE_DURATION_MS;}function a181_0x5c24(){const _0xcf46f7=['dim','last_version_check','toISOString','error','446922QfdtpT','104LtGWkQ','262686ieGQBV','2572195VnOCJC','latest','31220GAlHYX','gray','stable','lastCheck','write','3322DRnHrb','now','destroy','npm\x20install\x20-g\x20@treasuredata/tdx@','1Emygwr','statusCode','4555453HwZFAu','https://registry.npmjs.org/@treasuredata/tdx','green','latestVersion','Update\x20available:','version','parse','256556dWgjar','data','getTime','read','end','18NDzKfJ','cyan','6300762Yonucq','\x0aRun:\x20','updateAvailable','utils/version-check-next','isTTY','Run:','currentVersion','next'];a181_0x5c24=function(){return _0xcf46f7;};return a181_0x5c24();}function fetchLatestVersion(_0x54b8b7=a181_0x4459ef(0x15a)){const _0x2bee51=a181_0x4459ef,_0x4bc128=_0x54b8b7===_0x2bee51(0x178)?'next':'latest',_0x4b0eed=NPM_REGISTRY_BASE+'/'+_0x4bc128;return new Promise((_0x137892,_0x2e8f0f)=>{const _0x3cc671=_0x2bee51,_0xff2cad=get(_0x4b0eed,_0x23ba96=>{const _0x2ed386=a181_0x25a2;if(_0x23ba96[_0x2ed386(0x162)]!==0xc8){clearTimeout(_0x4bfc8e),_0x2e8f0f(new Error('HTTP\x20'+_0x23ba96[_0x2ed386(0x162)]));return;}let _0x43774b='';_0x23ba96['on'](_0x2ed386(0x16b),_0x14902f=>{_0x43774b+=_0x14902f;}),_0x23ba96['on'](_0x2ed386(0x16e),()=>{const _0x1fd9ae=_0x2ed386;clearTimeout(_0x4bfc8e);try{const _0x5a07da=JSON[_0x1fd9ae(0x169)](_0x43774b);if(!valid(_0x5a07da[_0x1fd9ae(0x168)])){_0x2e8f0f(new Error('Invalid\x20version\x20format'));return;}_0x137892(_0x5a07da[_0x1fd9ae(0x168)]);}catch(_0x402825){_0x2e8f0f(_0x402825);}});})['on'](_0x3cc671(0x152),_0x3af31a=>{clearTimeout(_0x4bfc8e),_0x2e8f0f(_0x3af31a);}),_0x4bfc8e=setTimeout(()=>{const _0x19010a=_0x3cc671;_0xff2cad[_0x19010a(0x15f)](),_0x2e8f0f(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x2dd41b,_0x5f31eb='stable'){const _0x1f401f=a181_0x4459ef;try{const _0x7535e=readCache(_0x5f31eb);if(isCacheValid(_0x7535e)){const _0x3269e4=gt(_0x7535e[_0x1f401f(0x166)],_0x2dd41b);return{'updateAvailable':_0x3269e4,'currentVersion':_0x2dd41b,'latestVersion':_0x7535e[_0x1f401f(0x166)],'channel':_0x5f31eb};}const _0x33b962=await fetchLatestVersion(_0x5f31eb);writeCache(_0x33b962,_0x5f31eb);const _0x216877=gt(_0x33b962,_0x2dd41b);return{'updateAvailable':_0x216877,'currentVersion':_0x2dd41b,'latestVersion':_0x33b962,'channel':_0x5f31eb};}catch{return null;}}export function displayUpdateNotification(_0x108fb7){const _0x5989e7=a181_0x4459ef;if(!_0x108fb7[_0x5989e7(0x173)])return;const _0xb57293=_0x108fb7['channel']===_0x5989e7(0x178)?'next':_0x5989e7(0x157),_0x1aaff7=process['stderr'][_0x5989e7(0x175)]&&!process.env.NO_COLOR,_0x1f8917=_0x1aaff7?a181_0x31e4ec[_0x5989e7(0x159)]('→'):'→',_0x19d0d9=_0x1aaff7?a181_0x31e4ec[_0x5989e7(0x179)](_0x108fb7[_0x5989e7(0x177)]):_0x108fb7[_0x5989e7(0x177)],_0x20998f=_0x1aaff7?a181_0x31e4ec[_0x5989e7(0x165)](_0x108fb7[_0x5989e7(0x166)]):_0x108fb7[_0x5989e7(0x166)],_0x41ecf7=_0x1aaff7?a181_0x31e4ec[_0x5989e7(0x170)](_0x5989e7(0x160)+_0xb57293):_0x5989e7(0x160)+_0xb57293,_0x3ba674=_0x1aaff7?'\x0a'+a181_0x31e4ec['yellow'](_0x5989e7(0x167))+'\x20'+_0x19d0d9+'\x20'+_0x1f8917+'\x20'+_0x20998f+'\x0a'+a181_0x31e4ec[_0x5989e7(0x179)](_0x5989e7(0x176))+'\x20'+_0x41ecf7+'\x0a':'\x0aUpdate\x20available:\x20'+_0x19d0d9+'\x20'+_0x1f8917+'\x20'+_0x20998f+_0x5989e7(0x172)+_0x41ecf7+'\x0a';process['stderr'][_0x5989e7(0x15c)](_0x3ba674);}
1
+ const a181_0x1b2ed6=a181_0x269b;(function(_0x24682d,_0x5c7446){const _0x46818e=a181_0x269b,_0x39e93a=_0x24682d();while(!![]){try{const _0x12650c=parseInt(_0x46818e(0x1a1))/0x1*(parseInt(_0x46818e(0x1a5))/0x2)+-parseInt(_0x46818e(0x1a4))/0x3*(parseInt(_0x46818e(0x1a3))/0x4)+-parseInt(_0x46818e(0x1b4))/0x5*(parseInt(_0x46818e(0x19c))/0x6)+-parseInt(_0x46818e(0x1ba))/0x7*(-parseInt(_0x46818e(0x1b8))/0x8)+parseInt(_0x46818e(0x1a9))/0x9+parseInt(_0x46818e(0x1b3))/0xa+-parseInt(_0x46818e(0x1aa))/0xb;if(_0x12650c===_0x5c7446)break;else _0x39e93a['push'](_0x39e93a['shift']());}catch(_0x2d6b28){_0x39e93a['push'](_0x39e93a['shift']());}}}(a181_0x3c44,0x6b0ac));import{get}from'https';import{gt,valid}from'semver';import a181_0xbbcd9e from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a181_0x1b2ed6(0x195),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache('last_version_check',a181_0x1b2ed6(0x1b5)),nextVersionCache=createGlobalCache(a181_0x1b2ed6(0x197),a181_0x1b2ed6(0x1a0));function a181_0x269b(_0x3ea2b0,_0x40aeed){_0x3ea2b0=_0x3ea2b0-0x191;const _0x3c440f=a181_0x3c44();let _0x269b6e=_0x3c440f[_0x3ea2b0];return _0x269b6e;}function getCacheForChannel(_0x179eba){const _0x5decbd=a181_0x1b2ed6;return _0x179eba===_0x5decbd(0x19d)?nextVersionCache:stableVersionCache;}function readCache(_0x2734a7){return getCacheForChannel(_0x2734a7)['read']()??null;}function writeCache(_0x517726,_0x508d60){const _0x266633=a181_0x1b2ed6;try{getCacheForChannel(_0x508d60)['write']({'lastCheck':new Date()[_0x266633(0x191)](),'latestVersion':_0x517726});}catch{}}function a181_0x3c44(){const _0x13d004=['npm\x20install\x20-g\x20@treasuredata/tdx@','cyan','dim','7880780zKJnWO','5lQynVA','utils/version-check','green','end','8NLAxDY','isTTY','5651408ASkVMU','latest','gray','toISOString','HTTP\x20','latestVersion','version','https://registry.npmjs.org/@treasuredata/tdx','yellow','last_version_check_next','parse','destroy','currentVersion','Update\x20available:','1532652gxVwvh','next','Request\x20timeout','error','utils/version-check-next','863GZvDUy','data','275988olMffk','3aKtthj','202ruZMaM','statusCode','stable','channel','7322202LvfivM','19066080KOslsz','Run:','stderr','write','\x0aUpdate\x20available:\x20','getTime'];a181_0x3c44=function(){return _0x13d004;};return a181_0x3c44();}function isCacheValid(_0x3fc981){const _0x1d460d=a181_0x1b2ed6;if(!_0x3fc981)return![];const _0x4bedc4=new Date(_0x3fc981['lastCheck'])[_0x1d460d(0x1af)](),_0x16960d=Date['now']();return _0x16960d-_0x4bedc4<CACHE_DURATION_MS;}function fetchLatestVersion(_0x2d9d89=a181_0x1b2ed6(0x1a7)){const _0x1595f3=a181_0x1b2ed6,_0x1f8a33=_0x2d9d89===_0x1595f3(0x19d)?_0x1595f3(0x19d):'latest',_0x450e9f=NPM_REGISTRY_BASE+'/'+_0x1f8a33;return new Promise((_0x2a0baf,_0x533d5c)=>{const _0x2b086a=_0x1595f3,_0x4b2166=get(_0x450e9f,_0xb2d1fd=>{const _0x5af834=a181_0x269b;if(_0xb2d1fd['statusCode']!==0xc8){clearTimeout(_0x2cff68),_0x533d5c(new Error(_0x5af834(0x192)+_0xb2d1fd[_0x5af834(0x1a6)]));return;}let _0x14226c='';_0xb2d1fd['on'](_0x5af834(0x1a2),_0x6b20e8=>{_0x14226c+=_0x6b20e8;}),_0xb2d1fd['on'](_0x5af834(0x1b7),()=>{const _0x7abc88=_0x5af834;clearTimeout(_0x2cff68);try{const _0x49d93b=JSON[_0x7abc88(0x198)](_0x14226c);if(!valid(_0x49d93b[_0x7abc88(0x194)])){_0x533d5c(new Error('Invalid\x20version\x20format'));return;}_0x2a0baf(_0x49d93b[_0x7abc88(0x194)]);}catch(_0x2e89f9){_0x533d5c(_0x2e89f9);}});})['on'](_0x2b086a(0x19f),_0xfbbe54=>{clearTimeout(_0x2cff68),_0x533d5c(_0xfbbe54);}),_0x2cff68=setTimeout(()=>{const _0x37a330=_0x2b086a;_0x4b2166[_0x37a330(0x199)](),_0x533d5c(new Error(_0x37a330(0x19e)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x36432c,_0x27a54a=a181_0x1b2ed6(0x1a7)){const _0x2ef486=a181_0x1b2ed6;try{const _0x43e1db=readCache(_0x27a54a);if(isCacheValid(_0x43e1db)){const _0x3afd35=gt(_0x43e1db['latestVersion'],_0x36432c);return{'updateAvailable':_0x3afd35,'currentVersion':_0x36432c,'latestVersion':_0x43e1db[_0x2ef486(0x193)],'channel':_0x27a54a};}const _0x1a3af9=await fetchLatestVersion(_0x27a54a);writeCache(_0x1a3af9,_0x27a54a);const _0x4b20fc=gt(_0x1a3af9,_0x36432c);return{'updateAvailable':_0x4b20fc,'currentVersion':_0x36432c,'latestVersion':_0x1a3af9,'channel':_0x27a54a};}catch{return null;}}export function displayUpdateNotification(_0x57f13d){const _0x161633=a181_0x1b2ed6;if(!_0x57f13d['updateAvailable'])return;const _0x43e4df=_0x57f13d[_0x161633(0x1a8)]===_0x161633(0x19d)?'next':_0x161633(0x1bb),_0x145116=process[_0x161633(0x1ac)][_0x161633(0x1b9)]&&!process.env.NO_COLOR,_0x41947f=_0x145116?a181_0xbbcd9e[_0x161633(0x1bc)]('→'):'→',_0x145493=_0x145116?a181_0xbbcd9e[_0x161633(0x1b2)](_0x57f13d[_0x161633(0x19a)]):_0x57f13d[_0x161633(0x19a)],_0x590d12=_0x145116?a181_0xbbcd9e[_0x161633(0x1b6)](_0x57f13d['latestVersion']):_0x57f13d[_0x161633(0x193)],_0x389a74=_0x145116?a181_0xbbcd9e[_0x161633(0x1b1)](_0x161633(0x1b0)+_0x43e4df):_0x161633(0x1b0)+_0x43e4df,_0x22cdda=_0x145116?'\x0a'+a181_0xbbcd9e[_0x161633(0x196)](_0x161633(0x19b))+'\x20'+_0x145493+'\x20'+_0x41947f+'\x20'+_0x590d12+'\x0a'+a181_0xbbcd9e[_0x161633(0x1b2)](_0x161633(0x1ab))+'\x20'+_0x389a74+'\x0a':_0x161633(0x1ae)+_0x145493+'\x20'+_0x41947f+'\x20'+_0x590d12+'\x0aRun:\x20'+_0x389a74+'\x0a';process[_0x161633(0x1ac)][_0x161633(0x1ad)](_0x22cdda);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.26.4",
3
+ "version": "0.26.6",
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": {