@treasuredata/tdx 2026.3.9 → 2026.3.10

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 (210) 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.js +1 -1
  5. package/dist/cli.js.map +1 -1
  6. package/dist/commands/activations.js +1 -1
  7. package/dist/commands/agent-command.js +1 -1
  8. package/dist/commands/agent-test-command.js +1 -1
  9. package/dist/commands/api-command.js +1 -1
  10. package/dist/commands/auth-command.js +1 -1
  11. package/dist/commands/auth-login-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/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.js +1 -1
  36. package/dist/commands/query-command.js +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.js +1 -1
  42. package/dist/commands/segment-push-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segment-validate-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/status-command.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/unset-command.js +1 -1
  51. package/dist/commands/upgrade-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.d.ts.map +1 -1
  55. package/dist/commands/workflow-command.js +1 -1
  56. package/dist/commands/workflow-command.js.map +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/utils.js +1 -1
  78. package/dist/proxy/claude-usage-tracker.js +1 -1
  79. package/dist/proxy/passthrough-server.js +1 -1
  80. package/dist/proxy/sse-usage-parser.js +1 -1
  81. package/dist/sdk/agent/agent-config.js +1 -1
  82. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  83. package/dist/sdk/agent/agent-yaml.js +1 -1
  84. package/dist/sdk/agent/test/evaluator.js +1 -1
  85. package/dist/sdk/agent/test/executor.js +1 -1
  86. package/dist/sdk/agent/test/index.js +1 -1
  87. package/dist/sdk/agent/test/output.js +1 -1
  88. package/dist/sdk/agent/test/parser.js +1 -1
  89. package/dist/sdk/agent/tool-target-registry.js +1 -1
  90. package/dist/sdk/api.js +1 -1
  91. package/dist/sdk/client/cdp-api-client.js +1 -1
  92. package/dist/sdk/client/delivery-api-client.js +1 -1
  93. package/dist/sdk/client/endpoints.js +1 -1
  94. package/dist/sdk/client/engage-api-client.js +1 -1
  95. package/dist/sdk/client/http-client.js +1 -1
  96. package/dist/sdk/client/llm-api-client.js +1 -1
  97. package/dist/sdk/client/oauth-refresh.js +1 -1
  98. package/dist/sdk/client/rate-limiter.js +1 -1
  99. package/dist/sdk/client/td-api-client.js +1 -1
  100. package/dist/sdk/client/trino-api-client.js +1 -1
  101. package/dist/sdk/client/workflow-client.js +1 -1
  102. package/dist/sdk/connection-validator.js +1 -1
  103. package/dist/sdk/connection.js +1 -1
  104. package/dist/sdk/delivery.js +1 -1
  105. package/dist/sdk/engage/campaign-pull.js +1 -1
  106. package/dist/sdk/engage/campaign-push.js +1 -1
  107. package/dist/sdk/engage/campaign-validator.js +1 -1
  108. package/dist/sdk/engage/campaign-yaml.js +1 -1
  109. package/dist/sdk/engage/template-pull.js +1 -1
  110. package/dist/sdk/engage/template-push.js +1 -1
  111. package/dist/sdk/engage/template-validator.js +1 -1
  112. package/dist/sdk/engage/template-yaml.js +1 -1
  113. package/dist/sdk/engage/types/campaign-def.js +1 -1
  114. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  115. package/dist/sdk/engage/types/template-schema.js +1 -1
  116. package/dist/sdk/engage.js +1 -1
  117. package/dist/sdk/errors.d.ts +2 -0
  118. package/dist/sdk/errors.d.ts.map +1 -1
  119. package/dist/sdk/errors.js +1 -1
  120. package/dist/sdk/errors.js.map +1 -1
  121. package/dist/sdk/index.js +1 -1
  122. package/dist/sdk/io/index.js +1 -1
  123. package/dist/sdk/io/node-filesystem.js +1 -1
  124. package/dist/sdk/job.js +1 -1
  125. package/dist/sdk/journey.js +1 -1
  126. package/dist/sdk/llm/chat-cache.js +1 -1
  127. package/dist/sdk/llm/index.js +1 -1
  128. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  129. package/dist/sdk/llm/model-factors.js +1 -1
  130. package/dist/sdk/personalization.js +1 -1
  131. package/dist/sdk/query/index.js +1 -1
  132. package/dist/sdk/query/sql-parser.js +1 -1
  133. package/dist/sdk/realtime.js +1 -1
  134. package/dist/sdk/schedule.js +1 -1
  135. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  136. package/dist/sdk/segment/fields-display.js +1 -1
  137. package/dist/sdk/segment/file-discovery.js +1 -1
  138. package/dist/sdk/segment/journey-utils.js +1 -1
  139. package/dist/sdk/segment/journey-validator.js +1 -1
  140. package/dist/sdk/segment/journey-yaml.js +1 -1
  141. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  142. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  143. package/dist/sdk/segment/pull-workflow.js +1 -1
  144. package/dist/sdk/segment/push-recovery.js +1 -1
  145. package/dist/sdk/segment/push-workflow.js +1 -1
  146. package/dist/sdk/segment/resolution-context.js +1 -1
  147. package/dist/sdk/segment/segment-path-parser.js +1 -1
  148. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  149. package/dist/sdk/segment/segment-validator.js +1 -1
  150. package/dist/sdk/segment/target-resolution.js +1 -1
  151. package/dist/sdk/segment/tdx-config.js +1 -1
  152. package/dist/sdk/segment/types/activation-schema.js +1 -1
  153. package/dist/sdk/segment/types/journey-def.js +1 -1
  154. package/dist/sdk/segment/types/journey-schema.js +1 -1
  155. package/dist/sdk/segment/types/segment-def.js +1 -1
  156. package/dist/sdk/segment/types/segment-schema.js +1 -1
  157. package/dist/sdk/segment/validate-files.js +1 -1
  158. package/dist/sdk/segment/yaml-validator.js +1 -1
  159. package/dist/sdk/segment.js +1 -1
  160. package/dist/sdk/types/index.js +1 -1
  161. package/dist/sdk/types/progress.js +1 -1
  162. package/dist/sdk/user.js +1 -1
  163. package/dist/sdk/util/format-detector.js +1 -1
  164. package/dist/sdk/util/formatters.js +1 -1
  165. package/dist/sdk/util/index.js +1 -1
  166. package/dist/sdk/util/paginate.js +1 -1
  167. package/dist/sdk/util/tree-formatter.js +1 -1
  168. package/dist/sdk/workflow/archive-validation.js +1 -1
  169. package/dist/sdk/workflow/clone-workflow.js +1 -1
  170. package/dist/sdk/workflow/index.d.ts +12 -0
  171. package/dist/sdk/workflow/index.d.ts.map +1 -1
  172. package/dist/sdk/workflow/index.js +1 -1
  173. package/dist/sdk/workflow/index.js.map +1 -1
  174. package/dist/sdk/workflow/pull-workflow.js +1 -1
  175. package/dist/sdk/workflow/push-workflow.js +1 -1
  176. package/dist/sdk/workflow/tdx-config.js +1 -1
  177. package/dist/sdk/workflow/workflow-utils.js +1 -1
  178. package/dist/test-utils/command-runner.js +1 -1
  179. package/dist/test-utils/factories.js +1 -1
  180. package/dist/test-utils/fixtures.js +1 -1
  181. package/dist/test-utils/http-mock.js +1 -1
  182. package/dist/test-utils/index.js +1 -1
  183. package/dist/utils/async.js +1 -1
  184. package/dist/utils/colors.js +1 -1
  185. package/dist/utils/diff.js +1 -1
  186. package/dist/utils/file-permissions.js +1 -1
  187. package/dist/utils/file-reader.js +1 -1
  188. package/dist/utils/github-releases.js +1 -1
  189. package/dist/utils/global-cache.js +1 -1
  190. package/dist/utils/json-loader.js +1 -1
  191. package/dist/utils/local-cache.js +1 -1
  192. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  193. package/dist/utils/logger/formatters/index.js +1 -1
  194. package/dist/utils/logger/handlers/console-handler.js +1 -1
  195. package/dist/utils/logger/handlers/file-handler.js +1 -1
  196. package/dist/utils/logger/handlers/index.js +1 -1
  197. package/dist/utils/logger/handlers/null-handler.js +1 -1
  198. package/dist/utils/logger/index.js +1 -1
  199. package/dist/utils/logger/logger.js +1 -1
  200. package/dist/utils/logger/types.js +1 -1
  201. package/dist/utils/option-validation.js +1 -1
  202. package/dist/utils/process.js +1 -1
  203. package/dist/utils/prompt.js +1 -1
  204. package/dist/utils/spinner.js +1 -1
  205. package/dist/utils/sse-parser.js +1 -1
  206. package/dist/utils/string-utils.js +1 -1
  207. package/dist/utils/table-ref-parser.js +1 -1
  208. package/dist/utils/tdx-logger.js +1 -1
  209. package/dist/utils/version-check.js +1 -1
  210. package/package.json +1 -1
@@ -1 +1 @@
1
- function a202_0x4303(){var _0x489267=['5620780VTQWCK','206zyKCBl','224448ySOMuR','7836144TbLODL','9MkmjUl','822OfnPWD','12301UQLDPO','11837250owLpTp','28DzwiuH','59996640gMagxR','73598USVJgk'];a202_0x4303=function(){return _0x489267;};return a202_0x4303();}(function(_0x3fdef3,_0x1233f3){var _0x31e122=a202_0x34b6,_0x321bc5=_0x3fdef3();while(!![]){try{var _0x1fabc2=-parseInt(_0x31e122(0xd4))/0x1*(parseInt(_0x31e122(0xda))/0x2)+parseInt(_0x31e122(0xdb))/0x3*(-parseInt(_0x31e122(0xd6))/0x4)+-parseInt(_0x31e122(0xd9))/0x5+-parseInt(_0x31e122(0xd3))/0x6*(parseInt(_0x31e122(0xd8))/0x7)+parseInt(_0x31e122(0xdc))/0x8+-parseInt(_0x31e122(0xdd))/0x9*(parseInt(_0x31e122(0xd5))/0xa)+parseInt(_0x31e122(0xd7))/0xb;if(_0x1fabc2===_0x1233f3)break;else _0x321bc5['push'](_0x321bc5['shift']());}catch(_0x328836){_0x321bc5['push'](_0x321bc5['shift']());}}}(a202_0x4303,0xda718));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a202_0x34b6(_0x328bec,_0x55cc6a){_0x328bec=_0x328bec-0xd3;var _0x4303f2=a202_0x4303();var _0x34b6e2=_0x4303f2[_0x328bec];return _0x34b6e2;}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ function a202_0x4fb1(_0x2c97cc,_0x4c5b47){_0x2c97cc=_0x2c97cc-0x10e;var _0x5f0c92=a202_0x5f0c();var _0x4fb1cf=_0x5f0c92[_0x2c97cc];return _0x4fb1cf;}(function(_0x1bf4b8,_0x127113){var _0x4e2614=a202_0x4fb1,_0x332bd1=_0x1bf4b8();while(!![]){try{var _0x2b7e5f=-parseInt(_0x4e2614(0x10f))/0x1+-parseInt(_0x4e2614(0x10e))/0x2*(-parseInt(_0x4e2614(0x115))/0x3)+parseInt(_0x4e2614(0x114))/0x4+-parseInt(_0x4e2614(0x112))/0x5*(parseInt(_0x4e2614(0x116))/0x6)+parseInt(_0x4e2614(0x111))/0x7*(-parseInt(_0x4e2614(0x113))/0x8)+parseInt(_0x4e2614(0x110))/0x9+parseInt(_0x4e2614(0x117))/0xa;if(_0x2b7e5f===_0x127113)break;else _0x332bd1['push'](_0x332bd1['shift']());}catch(_0x539a54){_0x332bd1['push'](_0x332bd1['shift']());}}}(a202_0x5f0c,0x22fd8));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a202_0x5f0c(){var _0x587407=['602008ujgfyw','89541JxHMsD','1368282divVrp','700480avFQTO','6khvSAS','4443nsjWsH','2041668RomEAm','147pNeGDd','5GXPpgp','61384tRHwUx'];a202_0x5f0c=function(){return _0x587407;};return a202_0x5f0c();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- const a203_0x26a89d=a203_0x3602;function a203_0x218d(){const _0x4f5e8a=['message','WARN','levelOverrides','toISOString','stack','33vTfQzK','push','map','57212aszbYi','getEffectiveLevel','formatter','set','7amTwZN','name','2046376cjnoyA','cause','120535JlmlID','error','stringify','handlers','debug','initialized','INFO','TRACE','format','timestamp','string','clearHandlers','addHandler','getFormatter',']\x20[','DEBUG','231536rTKFDF','pendingRecords','565974oMQxNP','init','close','defaultLevel','component','has','setDefaultLevel','reset','40yafIzz','log','381447xHboOJ','get','setLogLevel','clear','6TCuDvv','39888YttOfz','join','dispatch','level','shouldLog','function','slice','loggers'];a203_0x218d=function(){return _0x4f5e8a;};return a203_0x218d();}(function(_0x29ee76,_0x17d914){const _0x5570a8=a203_0x3602,_0x2be9d2=_0x29ee76();while(!![]){try{const _0x5f2c5e=-parseInt(_0x5570a8(0xea))/0x1+-parseInt(_0x5570a8(0xda))/0x2*(-parseInt(_0x5570a8(0xe7))/0x3)+-parseInt(_0x5570a8(0xc9))/0x4+parseInt(_0x5570a8(0xf2))/0x5*(-parseInt(_0x5570a8(0xd9))/0x6)+-parseInt(_0x5570a8(0xee))/0x7*(-parseInt(_0x5570a8(0xf0))/0x8)+-parseInt(_0x5570a8(0xcb))/0x9+parseInt(_0x5570a8(0xd3))/0xa*(-parseInt(_0x5570a8(0xd5))/0xb);if(_0x5f2c5e===_0x17d914)break;else _0x2be9d2['push'](_0x2be9d2['shift']());}catch(_0x56abce){_0x2be9d2['push'](_0x2be9d2['shift']());}}}(a203_0x218d,0x20cf0));import{LogLevel as a203_0x2c8c50,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a203_0x2c8c50[a203_0x26a89d(0xf8)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x3bb8fa){const _0x34355a=a203_0x26a89d;if(typeof _0x3bb8fa===_0x34355a(0xfc))return _0x3bb8fa;if(_0x3bb8fa instanceof Error)return _0x3bb8fa['stack']||_0x3bb8fa[_0x34355a(0xef)]+':\x20'+_0x3bb8fa['message'];try{return JSON[_0x34355a(0xf4)](_0x3bb8fa,(_0xea47ad,_0x4beee0)=>{const _0x3fead7=_0x34355a;if(_0x4beee0 instanceof Error)return{'name':_0x4beee0[_0x3fead7(0xef)],'message':_0x4beee0[_0x3fead7(0xe2)],'stack':_0x4beee0[_0x3fead7(0xe6)],'cause':_0x4beee0[_0x3fead7(0xf1)]};return _0x4beee0;});}catch{return String(_0x3bb8fa);}}function a203_0x3602(_0x59839c,_0x34b336){_0x59839c=_0x59839c-0xc8;const _0x218d10=a203_0x218d();let _0x360210=_0x218d10[_0x59839c];return _0x360210;}export class Logger{['component'];constructor(_0x52cfef){const _0x4cd4e4=a203_0x26a89d;this[_0x4cd4e4(0xcf)]=_0x52cfef;}static['of'](_0x3d06d6){const _0x2762dd=a203_0x26a89d,_0x5f3326=typeof _0x3d06d6===_0x2762dd(0xfc)?_0x3d06d6:_0x3d06d6[_0x2762dd(0xef)];let _0x27364e=state[_0x2762dd(0xe1)][_0x2762dd(0xd6)](_0x5f3326);return!_0x27364e&&(_0x27364e=new Logger(_0x5f3326),state[_0x2762dd(0xe1)][_0x2762dd(0xed)](_0x5f3326,_0x27364e)),_0x27364e;}static async[a203_0x26a89d(0xcc)](_0x250e1b={}){const _0x7280e3=a203_0x26a89d;state[_0x7280e3(0xce)]=_0x250e1b[_0x7280e3(0xce)]??a203_0x2c8c50[_0x7280e3(0xf8)],state['handlers']=_0x250e1b[_0x7280e3(0xf5)]??[],state[_0x7280e3(0xec)]=_0x250e1b[_0x7280e3(0xec)]??null,state[_0x7280e3(0xe4)][_0x7280e3(0xd8)]();if(_0x250e1b[_0x7280e3(0xe4)])for(const [_0x3bb232,_0x561720]of Object['entries'](_0x250e1b[_0x7280e3(0xe4)])){state[_0x7280e3(0xe4)][_0x7280e3(0xed)](_0x3bb232,_0x561720);}for(const _0x5945bc of state[_0x7280e3(0xf5)]){_0x5945bc['init']&&await _0x5945bc[_0x7280e3(0xcc)]();}state['initialized']=!![];for(const _0x3f94b7 of state[_0x7280e3(0xca)]){Logger[_0x7280e3(0xdc)](_0x3f94b7);}state['pendingRecords']=[];}static[a203_0x26a89d(0xd7)](_0x996e71,_0x20e096){const _0x54fdfe=a203_0x26a89d;state[_0x54fdfe(0xe4)][_0x54fdfe(0xed)](_0x996e71,_0x20e096);}static[a203_0x26a89d(0xd1)](_0x26b4a0){state['defaultLevel']=_0x26b4a0;}static[a203_0x26a89d(0xfe)](_0x397d02){const _0x5963d6=a203_0x26a89d;state[_0x5963d6(0xf5)]['push'](_0x397d02),state['initialized']&&_0x397d02[_0x5963d6(0xcc)]&&_0x397d02['init']();}static[a203_0x26a89d(0xfd)](){state['handlers']=[];}static async['shutdown'](){const _0x3aff19=a203_0x26a89d;for(const _0x5cfdf3 of state[_0x3aff19(0xf5)]){_0x5cfdf3['close']&&await _0x5cfdf3[_0x3aff19(0xcd)]();}state[_0x3aff19(0xf5)]=[],state[_0x3aff19(0xf7)]=![],state['loggers'][_0x3aff19(0xd8)](),state[_0x3aff19(0xca)]=[];}static[a203_0x26a89d(0xd2)](){const _0x2f0016=a203_0x26a89d;state[_0x2f0016(0xf7)]=![],state[_0x2f0016(0xce)]=a203_0x2c8c50[_0x2f0016(0xf8)],state[_0x2f0016(0xe4)]['clear'](),state[_0x2f0016(0xf5)]=[],state['formatter']=null,state['loggers'][_0x2f0016(0xd8)](),state['pendingRecords']=[];}static['isInitialized'](){const _0x44d694=a203_0x26a89d;return state[_0x44d694(0xf7)];}static[a203_0x26a89d(0xeb)](_0x2181f1){const _0x5d8eba=a203_0x26a89d;if(state[_0x5d8eba(0xe4)]['has'](_0x2181f1))return state[_0x5d8eba(0xe4)][_0x5d8eba(0xd6)](_0x2181f1);const _0x12b311=_0x2181f1['split']('.');for(let _0x32bbd3=_0x12b311['length']-0x1;_0x32bbd3>0x0;_0x32bbd3--){const _0x2d20b5=_0x12b311[_0x5d8eba(0xe0)](0x0,_0x32bbd3)['join']('.');if(state[_0x5d8eba(0xe4)][_0x5d8eba(0xd0)](_0x2d20b5))return state[_0x5d8eba(0xe4)]['get'](_0x2d20b5);}return state['defaultLevel'];}[a203_0x26a89d(0xde)](_0x50fb1c){const _0x1437f3=a203_0x26a89d,_0x228b24=Logger[_0x1437f3(0xeb)](this[_0x1437f3(0xcf)]);return _0x50fb1c>=_0x228b24;}static[a203_0x26a89d(0xdc)](_0x27f3a8){const _0x274d51=a203_0x26a89d;for(const _0x28da8b of state[_0x274d51(0xf5)]){_0x28da8b['handle'](_0x27f3a8);}}[a203_0x26a89d(0xd4)](_0x425813,_0x3f1379){const _0x4b790d=a203_0x26a89d;if(!this[_0x4b790d(0xde)](_0x425813))return;const _0xb86e2f=_0x3f1379[_0x4b790d(0xe9)](_0x5908ca=>typeof _0x5908ca===_0x4b790d(0xdf)?_0x5908ca():_0x5908ca),_0x397cff=_0xb86e2f[_0x4b790d(0xe9)](safeStringify)[_0x4b790d(0xdb)]('\x20'),_0x55774b={'timestamp':new Date(),'level':_0x425813,'component':this[_0x4b790d(0xcf)],'message':_0x397cff};if(!state[_0x4b790d(0xf7)]){state[_0x4b790d(0xca)]['length']<MAX_PENDING_RECORDS&&state[_0x4b790d(0xca)][_0x4b790d(0xe8)](_0x55774b);return;}Logger[_0x4b790d(0xdc)](_0x55774b);}['trace'](..._0x143726){const _0x178af7=a203_0x26a89d;this[_0x178af7(0xd4)](a203_0x2c8c50[_0x178af7(0xf9)],_0x143726);}[a203_0x26a89d(0xf6)](..._0x121e76){const _0x7ed452=a203_0x26a89d;this[_0x7ed452(0xd4)](a203_0x2c8c50[_0x7ed452(0xc8)],_0x121e76);}['info'](..._0xd41825){const _0x34a620=a203_0x26a89d;this[_0x34a620(0xd4)](a203_0x2c8c50[_0x34a620(0xf8)],_0xd41825);}['warn'](..._0x4ff900){const _0x41a771=a203_0x26a89d;this[_0x41a771(0xd4)](a203_0x2c8c50[_0x41a771(0xe3)],_0x4ff900);}[a203_0x26a89d(0xf3)](..._0x49b782){this['log'](a203_0x2c8c50['ERROR'],_0x49b782);}static[a203_0x26a89d(0xff)](){return state['formatter'];}static[a203_0x26a89d(0xfa)](_0x27ecfd){const _0x1b472a=a203_0x26a89d;if(state[_0x1b472a(0xec)])return state['formatter'][_0x1b472a(0xfa)](_0x27ecfd);return _0x27ecfd[_0x1b472a(0xfb)][_0x1b472a(0xe5)]()+'\x20['+logLevelToString(_0x27ecfd[_0x1b472a(0xdd)])+_0x1b472a(0x100)+_0x27ecfd['component']+']\x20'+_0x27ecfd['message'];}}
1
+ const a203_0x5e6813=a203_0x2d79;(function(_0x54694f,_0x155b8c){const _0x41fd7c=a203_0x2d79,_0x554315=_0x54694f();while(!![]){try{const _0x499b1e=-parseInt(_0x41fd7c(0x10c))/0x1*(-parseInt(_0x41fd7c(0x119))/0x2)+-parseInt(_0x41fd7c(0x123))/0x3*(parseInt(_0x41fd7c(0x117))/0x4)+-parseInt(_0x41fd7c(0x12c))/0x5+-parseInt(_0x41fd7c(0x101))/0x6*(parseInt(_0x41fd7c(0x106))/0x7)+parseInt(_0x41fd7c(0x11f))/0x8*(-parseInt(_0x41fd7c(0x127))/0x9)+parseInt(_0x41fd7c(0x130))/0xa*(-parseInt(_0x41fd7c(0x11a))/0xb)+parseInt(_0x41fd7c(0x116))/0xc*(parseInt(_0x41fd7c(0x10f))/0xd);if(_0x499b1e===_0x155b8c)break;else _0x554315['push'](_0x554315['shift']());}catch(_0x5e1077){_0x554315['push'](_0x554315['shift']());}}}(a203_0x5d62,0xe9f4e));import{LogLevel as a203_0x32eeee,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a203_0x32eeee[a203_0x5e6813(0x121)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x2bdd45){const _0x454772=a203_0x5e6813;if(typeof _0x2bdd45===_0x454772(0x12e))return _0x2bdd45;if(_0x2bdd45 instanceof Error)return _0x2bdd45[_0x454772(0x131)]||_0x2bdd45[_0x454772(0x12f)]+':\x20'+_0x2bdd45[_0x454772(0x113)];try{return JSON['stringify'](_0x2bdd45,(_0x2e54f4,_0x12700a)=>{const _0x3e63d6=_0x454772;if(_0x12700a instanceof Error)return{'name':_0x12700a[_0x3e63d6(0x12f)],'message':_0x12700a['message'],'stack':_0x12700a['stack'],'cause':_0x12700a[_0x3e63d6(0x105)]};return _0x12700a;});}catch{return String(_0x2bdd45);}}export class Logger{[a203_0x5e6813(0x12d)];constructor(_0x5be623){const _0x3f5d42=a203_0x5e6813;this[_0x3f5d42(0x12d)]=_0x5be623;}static['of'](_0x4ecc60){const _0x2faab1=a203_0x5e6813,_0x33c68a=typeof _0x4ecc60===_0x2faab1(0x12e)?_0x4ecc60:_0x4ecc60[_0x2faab1(0x12f)];let _0x372f74=state[_0x2faab1(0x110)][_0x2faab1(0x103)](_0x33c68a);return!_0x372f74&&(_0x372f74=new Logger(_0x33c68a),state[_0x2faab1(0x110)]['set'](_0x33c68a,_0x372f74)),_0x372f74;}static async['init'](_0x4a57db={}){const _0x1687ee=a203_0x5e6813;state[_0x1687ee(0x111)]=_0x4a57db[_0x1687ee(0x111)]??a203_0x32eeee[_0x1687ee(0x121)],state[_0x1687ee(0x124)]=_0x4a57db[_0x1687ee(0x124)]??[],state['formatter']=_0x4a57db[_0x1687ee(0xfe)]??null,state[_0x1687ee(0x108)][_0x1687ee(0x11b)]();if(_0x4a57db[_0x1687ee(0x108)])for(const [_0x1a9bde,_0x567c08]of Object[_0x1687ee(0x12b)](_0x4a57db[_0x1687ee(0x108)])){state['levelOverrides'][_0x1687ee(0x125)](_0x1a9bde,_0x567c08);}for(const _0x5e5817 of state[_0x1687ee(0x124)]){_0x5e5817[_0x1687ee(0x11c)]&&await _0x5e5817[_0x1687ee(0x11c)]();}state['initialized']=!![];for(const _0x872115 of state[_0x1687ee(0xfc)]){Logger[_0x1687ee(0x126)](_0x872115);}state[_0x1687ee(0xfc)]=[];}static['setLogLevel'](_0x5a6c20,_0x50a6fa){const _0x46e75e=a203_0x5e6813;state[_0x46e75e(0x108)][_0x46e75e(0x125)](_0x5a6c20,_0x50a6fa);}static[a203_0x5e6813(0xf9)](_0x2db955){state['defaultLevel']=_0x2db955;}static[a203_0x5e6813(0x114)](_0x107255){const _0x24dfac=a203_0x5e6813;state['handlers']['push'](_0x107255),state[_0x24dfac(0xfa)]&&_0x107255[_0x24dfac(0x11c)]&&_0x107255[_0x24dfac(0x11c)]();}static['clearHandlers'](){const _0x433810=a203_0x5e6813;state[_0x433810(0x124)]=[];}static async[a203_0x5e6813(0x107)](){const _0x10d634=a203_0x5e6813;for(const _0x157ea8 of state[_0x10d634(0x124)]){_0x157ea8[_0x10d634(0x10d)]&&await _0x157ea8['close']();}state[_0x10d634(0x124)]=[],state[_0x10d634(0xfa)]=![],state[_0x10d634(0x110)][_0x10d634(0x11b)](),state[_0x10d634(0xfc)]=[];}static['reset'](){const _0x160554=a203_0x5e6813;state[_0x160554(0xfa)]=![],state['defaultLevel']=a203_0x32eeee[_0x160554(0x121)],state['levelOverrides']['clear'](),state[_0x160554(0x124)]=[],state[_0x160554(0xfe)]=null,state['loggers'][_0x160554(0x11b)](),state[_0x160554(0xfc)]=[];}static[a203_0x5e6813(0x120)](){return state['initialized'];}static[a203_0x5e6813(0xfd)](_0x17f8fc){const _0x4bc804=a203_0x5e6813;if(state[_0x4bc804(0x108)][_0x4bc804(0x102)](_0x17f8fc))return state['levelOverrides'][_0x4bc804(0x103)](_0x17f8fc);const _0x1b980e=_0x17f8fc[_0x4bc804(0x115)]('.');for(let _0x24cd7b=_0x1b980e['length']-0x1;_0x24cd7b>0x0;_0x24cd7b--){const _0x5e24f1=_0x1b980e[_0x4bc804(0x128)](0x0,_0x24cd7b)['join']('.');if(state[_0x4bc804(0x108)][_0x4bc804(0x102)](_0x5e24f1))return state[_0x4bc804(0x108)][_0x4bc804(0x103)](_0x5e24f1);}return state[_0x4bc804(0x111)];}['shouldLog'](_0x18ef92){const _0xb82de3=a203_0x5e6813,_0x546113=Logger['getEffectiveLevel'](this[_0xb82de3(0x12d)]);return _0x18ef92>=_0x546113;}static[a203_0x5e6813(0x126)](_0x30956e){const _0x309317=a203_0x5e6813;for(const _0x389bdd of state[_0x309317(0x124)]){_0x389bdd[_0x309317(0x122)](_0x30956e);}}[a203_0x5e6813(0x104)](_0x4185e0,_0x19d0ed){const _0x45063d=a203_0x5e6813;if(!this['shouldLog'](_0x4185e0))return;const _0xaf2df1=_0x19d0ed[_0x45063d(0x10b)](_0x5511ff=>typeof _0x5511ff===_0x45063d(0x11e)?_0x5511ff():_0x5511ff),_0x57e985=_0xaf2df1[_0x45063d(0x10b)](safeStringify)['join']('\x20'),_0x2666a6={'timestamp':new Date(),'level':_0x4185e0,'component':this[_0x45063d(0x12d)],'message':_0x57e985};if(!state[_0x45063d(0xfa)]){state[_0x45063d(0xfc)][_0x45063d(0x129)]<MAX_PENDING_RECORDS&&state[_0x45063d(0xfc)][_0x45063d(0x12a)](_0x2666a6);return;}Logger[_0x45063d(0x126)](_0x2666a6);}['trace'](..._0x8db7f9){const _0x415e08=a203_0x5e6813;this[_0x415e08(0x104)](a203_0x32eeee[_0x415e08(0xfb)],_0x8db7f9);}['debug'](..._0x515cdc){const _0x25d52d=a203_0x5e6813;this[_0x25d52d(0x104)](a203_0x32eeee[_0x25d52d(0x118)],_0x515cdc);}[a203_0x5e6813(0x10e)](..._0x3e9484){const _0x202e2f=a203_0x5e6813;this[_0x202e2f(0x104)](a203_0x32eeee['INFO'],_0x3e9484);}['warn'](..._0x351905){const _0x421646=a203_0x5e6813;this[_0x421646(0x104)](a203_0x32eeee[_0x421646(0x100)],_0x351905);}[a203_0x5e6813(0x10a)](..._0x30a4e3){const _0x5a8c43=a203_0x5e6813;this[_0x5a8c43(0x104)](a203_0x32eeee['ERROR'],_0x30a4e3);}static[a203_0x5e6813(0xf7)](){return state['formatter'];}static[a203_0x5e6813(0x109)](_0x12e71d){const _0x689e5e=a203_0x5e6813;if(state[_0x689e5e(0xfe)])return state[_0x689e5e(0xfe)][_0x689e5e(0x109)](_0x12e71d);return _0x12e71d[_0x689e5e(0xf8)][_0x689e5e(0xff)]()+'\x20['+logLevelToString(_0x12e71d[_0x689e5e(0x112)])+_0x689e5e(0x11d)+_0x12e71d['component']+']\x20'+_0x12e71d[_0x689e5e(0x113)];}}function a203_0x2d79(_0x550b8e,_0x6b07d2){_0x550b8e=_0x550b8e-0xf7;const _0x5d626f=a203_0x5d62();let _0x2d799c=_0x5d626f[_0x550b8e];return _0x2d799c;}function a203_0x5d62(){const _0x13507a=['pendingRecords','getEffectiveLevel','formatter','toISOString','WARN','1158iDZyQm','has','get','log','cause','53788nQeKAK','shutdown','levelOverrides','format','error','map','1963FSLVcb','close','info','156lRdmat','loggers','defaultLevel','level','message','addHandler','split','7480116rrKxIj','573172YkFMnq','DEBUG','1252BBCOnW','495svjPzg','clear','init',']\x20[','function','4932808qhGIyW','isInitialized','INFO','handle','33mpHrKj','handlers','set','dispatch','27AqXIUm','slice','length','push','entries','4884600tywzsK','component','string','name','414380WiDhJr','stack','getFormatter','timestamp','setDefaultLevel','initialized','TRACE'];a203_0x5d62=function(){return _0x13507a;};return a203_0x5d62();}
@@ -1 +1 @@
1
- function a204_0x568b(){const _0x28663d=['getDate','warn','29704KsZfwJ','error','2930790jebcmd','544656PdwEDg','floor','DEBUG','14JrTxFl','padStart','abs','debug','ERROR','WARNING','INFO','WARN','2mOkQSH','1151634dsXyCN','getMonth','691172obpVJF','getSeconds','1467uAHnrK','getMilliseconds','toString','11pzMZhd','toUpperCase','getFullYear','trace','getMinutes','24nnJVLA','13431588jGqkDi','getTimezoneOffset','422755XTObiO','TRACE'];a204_0x568b=function(){return _0x28663d;};return a204_0x568b();}(function(_0x176915,_0x3f74bd){const _0xf21f7b=a204_0x99ff,_0x1132d9=_0x176915();while(!![]){try{const _0x4caa43=-parseInt(_0xf21f7b(0x1c9))/0x1+-parseInt(_0xf21f7b(0x1c6))/0x2*(-parseInt(_0xf21f7b(0x1dd))/0x3)+-parseInt(_0xf21f7b(0x1d3))/0x4*(parseInt(_0xf21f7b(0x1d6))/0x5)+parseInt(_0xf21f7b(0x1c7))/0x6*(-parseInt(_0xf21f7b(0x1e0))/0x7)+-parseInt(_0xf21f7b(0x1da))/0x8*(-parseInt(_0xf21f7b(0x1cb))/0x9)+parseInt(_0xf21f7b(0x1dc))/0xa+parseInt(_0xf21f7b(0x1ce))/0xb*(parseInt(_0xf21f7b(0x1d4))/0xc);if(_0x4caa43===_0x3f74bd)break;else _0x1132d9['push'](_0x1132d9['shift']());}catch(_0x1f16af){_0x1132d9['push'](_0x1132d9['shift']());}}}(a204_0x568b,0x96959));export var LogLevel;(function(_0xba0bc4){const _0x2352cd=a204_0x99ff;_0xba0bc4[_0xba0bc4[_0x2352cd(0x1d7)]=-0x2]='TRACE',_0xba0bc4[_0xba0bc4[_0x2352cd(0x1df)]=-0x1]=_0x2352cd(0x1df),_0xba0bc4[_0xba0bc4[_0x2352cd(0x1e6)]=0x0]='INFO',_0xba0bc4[_0xba0bc4['WARN']=0x1]=_0x2352cd(0x1e7),_0xba0bc4[_0xba0bc4[_0x2352cd(0x1e4)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x4272a9){const _0x125d8b=a204_0x99ff;switch(_0x4272a9[_0x125d8b(0x1cf)]()){case _0x125d8b(0x1d7):return LogLevel['TRACE'];case _0x125d8b(0x1df):return LogLevel[_0x125d8b(0x1df)];case _0x125d8b(0x1e6):return LogLevel[_0x125d8b(0x1e6)];case _0x125d8b(0x1e7):case _0x125d8b(0x1e5):return LogLevel['WARN'];case _0x125d8b(0x1e4):return LogLevel[_0x125d8b(0x1e4)];default:return LogLevel[_0x125d8b(0x1e6)];}}export function logLevelToString(_0x5e7d14){const _0x26e6be=a204_0x99ff;switch(_0x5e7d14){case LogLevel[_0x26e6be(0x1d7)]:return _0x26e6be(0x1d1);case LogLevel[_0x26e6be(0x1df)]:return _0x26e6be(0x1e3);case LogLevel[_0x26e6be(0x1e6)]:return'info';case LogLevel[_0x26e6be(0x1e7)]:return _0x26e6be(0x1d9);case LogLevel[_0x26e6be(0x1e4)]:return _0x26e6be(0x1db);default:return'info';}}function a204_0x99ff(_0x1c12e2,_0x26f592){_0x1c12e2=_0x1c12e2-0x1c6;const _0x568ba8=a204_0x568b();let _0x99fff4=_0x568ba8[_0x1c12e2];return _0x99fff4;}export function formatTimestamp(_0xf31a9d){const _0xe689c6=a204_0x99ff,_0x13329f=_0xf31a9d[_0xe689c6(0x1d0)](),_0xd438b5=(_0xf31a9d[_0xe689c6(0x1c8)]()+0x1)[_0xe689c6(0x1cd)]()[_0xe689c6(0x1e1)](0x2,'0'),_0x5b272f=_0xf31a9d[_0xe689c6(0x1d8)]()[_0xe689c6(0x1cd)]()[_0xe689c6(0x1e1)](0x2,'0'),_0x29f870=_0xf31a9d['getHours']()['toString']()[_0xe689c6(0x1e1)](0x2,'0'),_0x18d8ce=_0xf31a9d[_0xe689c6(0x1d2)]()['toString']()[_0xe689c6(0x1e1)](0x2,'0'),_0x1d893e=_0xf31a9d[_0xe689c6(0x1ca)]()[_0xe689c6(0x1cd)]()['padStart'](0x2,'0'),_0x102af3=_0xf31a9d[_0xe689c6(0x1cc)]()[_0xe689c6(0x1cd)]()[_0xe689c6(0x1e1)](0x3,'0'),_0x543eb7=-_0xf31a9d[_0xe689c6(0x1d5)](),_0x507238=Math[_0xe689c6(0x1de)](Math['abs'](_0x543eb7)/0x3c),_0x5a8b17=Math[_0xe689c6(0x1e2)](_0x543eb7)%0x3c,_0x2c800c=_0x543eb7>=0x0?'+':'-',_0x1ed50a=''+_0x2c800c+_0x507238['toString']()['padStart'](0x2,'0')+_0x5a8b17[_0xe689c6(0x1cd)]()['padStart'](0x2,'0');return _0x13329f+'-'+_0xd438b5+'-'+_0x5b272f+'\x20'+_0x29f870+':'+_0x18d8ce+':'+_0x1d893e+'.'+_0x102af3+_0x1ed50a;}
1
+ (function(_0x5f60b8,_0x1dd3b9){const _0x58147b=a204_0x19fb,_0xabcf2d=_0x5f60b8();while(!![]){try{const _0xc827b1=parseInt(_0x58147b(0x1bb))/0x1*(parseInt(_0x58147b(0x1c5))/0x2)+parseInt(_0x58147b(0x1c9))/0x3+parseInt(_0x58147b(0x1b2))/0x4+parseInt(_0x58147b(0x1bf))/0x5+parseInt(_0x58147b(0x1c7))/0x6*(parseInt(_0x58147b(0x1b3))/0x7)+-parseInt(_0x58147b(0x1b1))/0x8+-parseInt(_0x58147b(0x1c1))/0x9;if(_0xc827b1===_0x1dd3b9)break;else _0xabcf2d['push'](_0xabcf2d['shift']());}catch(_0x3d8e51){_0xabcf2d['push'](_0xabcf2d['shift']());}}}(a204_0x21b6,0x8431b));export var LogLevel;(function(_0x3186a6){const _0x2be39=a204_0x19fb;_0x3186a6[_0x3186a6[_0x2be39(0x1c4)]=-0x2]=_0x2be39(0x1c4),_0x3186a6[_0x3186a6[_0x2be39(0x1b7)]=-0x1]=_0x2be39(0x1b7),_0x3186a6[_0x3186a6[_0x2be39(0x1af)]=0x0]='INFO',_0x3186a6[_0x3186a6[_0x2be39(0x1b8)]=0x1]='WARN',_0x3186a6[_0x3186a6[_0x2be39(0x1b0)]=0x2]=_0x2be39(0x1b0);}(LogLevel||(LogLevel={})));function a204_0x21b6(){const _0x234f7b=['toString','toUpperCase','INFO','ERROR','4956640WgmZUP','627600feZRLE','1841cepMUq','getTimezoneOffset','trace','warn','DEBUG','WARN','getHours','padStart','53FLzXZz','debug','getDate','abs','2532050rnhItI','info','8443071xbwmxD','getMilliseconds','error','TRACE','29096TtEKVX','getMinutes','570mOSoSU','getFullYear','1919481SwMSew'];a204_0x21b6=function(){return _0x234f7b;};return a204_0x21b6();}function a204_0x19fb(_0x1fdabb,_0x3ef681){_0x1fdabb=_0x1fdabb-0x1af;const _0x21b61f=a204_0x21b6();let _0x19fb31=_0x21b61f[_0x1fdabb];return _0x19fb31;}export function parseLogLevel(_0x28634d){const _0x3aaed6=a204_0x19fb;switch(_0x28634d[_0x3aaed6(0x1cb)]()){case'TRACE':return LogLevel[_0x3aaed6(0x1c4)];case'DEBUG':return LogLevel[_0x3aaed6(0x1b7)];case _0x3aaed6(0x1af):return LogLevel[_0x3aaed6(0x1af)];case'WARN':case'WARNING':return LogLevel[_0x3aaed6(0x1b8)];case _0x3aaed6(0x1b0):return LogLevel[_0x3aaed6(0x1b0)];default:return LogLevel['INFO'];}}export function logLevelToString(_0x50a672){const _0x56e1e8=a204_0x19fb;switch(_0x50a672){case LogLevel[_0x56e1e8(0x1c4)]:return _0x56e1e8(0x1b5);case LogLevel[_0x56e1e8(0x1b7)]:return _0x56e1e8(0x1bc);case LogLevel[_0x56e1e8(0x1af)]:return'info';case LogLevel[_0x56e1e8(0x1b8)]:return _0x56e1e8(0x1b6);case LogLevel[_0x56e1e8(0x1b0)]:return _0x56e1e8(0x1c3);default:return _0x56e1e8(0x1c0);}}export function formatTimestamp(_0x453cbf){const _0x28247a=a204_0x19fb,_0x3b301f=_0x453cbf[_0x28247a(0x1c8)](),_0x169898=(_0x453cbf['getMonth']()+0x1)[_0x28247a(0x1ca)]()[_0x28247a(0x1ba)](0x2,'0'),_0x96445f=_0x453cbf[_0x28247a(0x1bd)]()['toString']()[_0x28247a(0x1ba)](0x2,'0'),_0x257f47=_0x453cbf[_0x28247a(0x1b9)]()[_0x28247a(0x1ca)]()[_0x28247a(0x1ba)](0x2,'0'),_0x5a0ec1=_0x453cbf[_0x28247a(0x1c6)]()[_0x28247a(0x1ca)]()[_0x28247a(0x1ba)](0x2,'0'),_0x45fdd0=_0x453cbf['getSeconds']()[_0x28247a(0x1ca)]()['padStart'](0x2,'0'),_0x446ca5=_0x453cbf[_0x28247a(0x1c2)]()[_0x28247a(0x1ca)]()[_0x28247a(0x1ba)](0x3,'0'),_0x9761c6=-_0x453cbf[_0x28247a(0x1b4)](),_0x1ea558=Math['floor'](Math[_0x28247a(0x1be)](_0x9761c6)/0x3c),_0x3ce008=Math[_0x28247a(0x1be)](_0x9761c6)%0x3c,_0xcf15e4=_0x9761c6>=0x0?'+':'-',_0x108868=''+_0xcf15e4+_0x1ea558[_0x28247a(0x1ca)]()[_0x28247a(0x1ba)](0x2,'0')+_0x3ce008['toString']()[_0x28247a(0x1ba)](0x2,'0');return _0x3b301f+'-'+_0x169898+'-'+_0x96445f+'\x20'+_0x257f47+':'+_0x5a0ec1+':'+_0x45fdd0+'.'+_0x446ca5+_0x108868;}
@@ -1 +1 @@
1
- function a205_0x123d(_0x19272d,_0x1a293b){_0x19272d=_0x19272d-0xa6;const _0x531795=a205_0x5317();let _0x123d0b=_0x531795[_0x19272d];return _0x123d0b;}function a205_0x5317(){const _0x57d334=['4mjUKVp','Invalid\x20limit\x20value:\x20','46465QKdxts','3360213feiLRF','117627kCwwqf','isInteger','354maDcuF','number','114812wDJMgH','.\x20Must\x20be\x20an\x20integer.','600096ArBUvI','.\x20Must\x20be\x20a\x20positive\x20integer.','101544bzVydu','Invalid\x20timeout\x20value:\x20','11886WSmqDu','10bvjYJI','.\x20Must\x20be\x20a\x20positive\x20number.'];a205_0x5317=function(){return _0x57d334;};return a205_0x5317();}(function(_0x563f3c,_0x13f14f){const _0x48df0f=a205_0x123d,_0x6d0387=_0x563f3c();while(!![]){try{const _0x148afe=-parseInt(_0x48df0f(0xa8))/0x1+parseInt(_0x48df0f(0xac))/0x2+-parseInt(_0x48df0f(0xb5))/0x3*(parseInt(_0x48df0f(0xb1))/0x4)+parseInt(_0x48df0f(0xb3))/0x5+-parseInt(_0x48df0f(0xa6))/0x6*(parseInt(_0x48df0f(0xae))/0x7)+-parseInt(_0x48df0f(0xaa))/0x8+-parseInt(_0x48df0f(0xb4))/0x9*(-parseInt(_0x48df0f(0xaf))/0xa);if(_0x148afe===_0x13f14f)break;else _0x6d0387['push'](_0x6d0387['shift']());}catch(_0xed1897){_0x6d0387['push'](_0x6d0387['shift']());}}}(a205_0x5317,0x1970f));export function validateLimitOption(_0x2eac33){const _0x1165d8=a205_0x123d;if(!Number[_0x1165d8(0xb6)](_0x2eac33))return{'isValid':![],'error':_0x1165d8(0xb2)+_0x2eac33+_0x1165d8(0xa9)};if(_0x2eac33<=0x0)return{'isValid':![],'error':_0x1165d8(0xb2)+_0x2eac33+_0x1165d8(0xab)};return{'isValid':!![],'value':_0x2eac33};}export function validateTimeoutOption(_0xa06fc4,_0x432a02=0x1e){const _0x7b34ec=a205_0x123d;if(_0xa06fc4===undefined)return{'isValid':!![],'value':_0x432a02};const _0x284b6d=typeof _0xa06fc4===_0x7b34ec(0xa7)?_0xa06fc4:parseFloat(_0xa06fc4);if(isNaN(_0x284b6d))return{'isValid':![],'error':_0x7b34ec(0xad)+_0xa06fc4+'.\x20Must\x20be\x20a\x20number.'};if(_0x284b6d<=0x0)return{'isValid':![],'error':_0x7b34ec(0xad)+_0x284b6d+_0x7b34ec(0xb0)};return{'isValid':!![],'value':_0x284b6d};}
1
+ (function(_0x4e59d1,_0x28d886){const _0x165477=a205_0x5a97,_0x6efaad=_0x4e59d1();while(!![]){try{const _0x27f436=-parseInt(_0x165477(0x173))/0x1*(-parseInt(_0x165477(0x175))/0x2)+-parseInt(_0x165477(0x176))/0x3*(-parseInt(_0x165477(0x171))/0x4)+parseInt(_0x165477(0x16e))/0x5+-parseInt(_0x165477(0x179))/0x6*(parseInt(_0x165477(0x16a))/0x7)+parseInt(_0x165477(0x170))/0x8*(parseInt(_0x165477(0x16f))/0x9)+-parseInt(_0x165477(0x16b))/0xa*(parseInt(_0x165477(0x17b))/0xb)+-parseInt(_0x165477(0x16d))/0xc*(-parseInt(_0x165477(0x174))/0xd);if(_0x27f436===_0x28d886)break;else _0x6efaad['push'](_0x6efaad['shift']());}catch(_0x460cd8){_0x6efaad['push'](_0x6efaad['shift']());}}}(a205_0x312b,0xc21d1));export function validateLimitOption(_0x688d98){const _0x41ce37=a205_0x5a97;if(!Number[_0x41ce37(0x17a)](_0x688d98))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x688d98+'.\x20Must\x20be\x20an\x20integer.'};if(_0x688d98<=0x0)return{'isValid':![],'error':_0x41ce37(0x177)+_0x688d98+_0x41ce37(0x172)};return{'isValid':!![],'value':_0x688d98};}export function validateTimeoutOption(_0x43fba2,_0x3c61fc=0x1e){const _0x18c38a=a205_0x5a97;if(_0x43fba2===undefined)return{'isValid':!![],'value':_0x3c61fc};const _0x4f2a3c=typeof _0x43fba2==='number'?_0x43fba2:parseFloat(_0x43fba2);if(isNaN(_0x4f2a3c))return{'isValid':![],'error':_0x18c38a(0x17c)+_0x43fba2+_0x18c38a(0x16c)};if(_0x4f2a3c<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4f2a3c+_0x18c38a(0x178)};return{'isValid':!![],'value':_0x4f2a3c};}function a205_0x5a97(_0x6864c6,_0x59b785){_0x6864c6=_0x6864c6-0x16a;const _0x312b0b=a205_0x312b();let _0x5a97ac=_0x312b0b[_0x6864c6];return _0x5a97ac;}function a205_0x312b(){const _0x36e052=['4307608XXRWJI','4jibUzD','.\x20Must\x20be\x20a\x20positive\x20integer.','11SnjAUC','481yaFrBO','46642wGngKq','1886241MUAAjs','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20number.','2142252IJynVT','isInteger','55lrWXIe','Invalid\x20timeout\x20value:\x20','21KaxPCj','1967980miUzpM','.\x20Must\x20be\x20a\x20number.','114828sXWLEX','5362115qRGTYW','9AvpwTE'];a205_0x312b=function(){return _0x36e052;};return a205_0x312b();}
@@ -1 +1 @@
1
- const a206_0x226564=a206_0x24aa;(function(_0x13a6da,_0x1fde98){const _0x5105dc=a206_0x24aa,_0x192db7=_0x13a6da();while(!![]){try{const _0x30183f=-parseInt(_0x5105dc(0x159))/0x1+parseInt(_0x5105dc(0x13f))/0x2*(-parseInt(_0x5105dc(0x16a))/0x3)+-parseInt(_0x5105dc(0x15c))/0x4*(-parseInt(_0x5105dc(0x172))/0x5)+parseInt(_0x5105dc(0x15f))/0x6*(parseInt(_0x5105dc(0x170))/0x7)+parseInt(_0x5105dc(0x137))/0x8*(-parseInt(_0x5105dc(0x14f))/0x9)+parseInt(_0x5105dc(0x16b))/0xa+-parseInt(_0x5105dc(0x140))/0xb;if(_0x30183f===_0x1fde98)break;else _0x192db7['push'](_0x192db7['shift']());}catch(_0x377f03){_0x192db7['push'](_0x192db7['shift']());}}}(a206_0x266c,0x4ff84));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x226564(0x139),a206_0x226564(0x153),'sh',a206_0x226564(0x16c),a206_0x226564(0x145),a206_0x226564(0x16d),a206_0x226564(0x13e),'dash','pwsh',a206_0x226564(0x155),'nu',a206_0x226564(0x142),a206_0x226564(0x14a),a206_0x226564(0x156)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x226564(0x151),a206_0x226564(0x13d),'cursor',a206_0x226564(0x167),a206_0x226564(0x171)]);function getProcessInfoWindows(_0x250dc0){const _0x4b0941=a206_0x226564;try{if(!Number[_0x4b0941(0x138)](_0x250dc0)||_0x250dc0<=0x0)return null;const _0x13f7d5=_0x4b0941(0x13c)+_0x250dc0+_0x4b0941(0x144),_0x5dd5e3=execSync(_0x4b0941(0x14c)+_0x13f7d5+'\x22',{'encoding':_0x4b0941(0x147),'windowsHide':!![],'stdio':[_0x4b0941(0x148),_0x4b0941(0x148),'pipe']})[_0x4b0941(0x13b)]();if(!_0x5dd5e3)return null;const [_0x3a79fd,..._0x260356]=_0x5dd5e3[_0x4b0941(0x14e)](','),_0x539f78=parseInt(_0x3a79fd,0xa),_0x53e4ee=_0x260356[_0x4b0941(0x15b)](',')[_0x4b0941(0x13b)]();if(isNaN(_0x539f78)||!_0x53e4ee)return null;return{'pid':_0x250dc0,'ppid':_0x539f78,'comm':_0x53e4ee[_0x4b0941(0x143)](/\.exe$/i,'')};}catch{return null;}}function a206_0x266c(){const _0x1224f8=['\x20-o\x20ppid=,comm=','264630HaMyAt','kill','win32','protocol','cmd.exe','error','which','has','electron','http:','ps\x20-p\x20','417327mTbjub','4693650mYCYiH','fish','tcsh','map','toString','49JpxBJp','treasure\x20studio','6530yPSTuE','Invalid\x20URL:\x20','exit','256ECcGaP','isInteger','bash','darwin','trim','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','code','csh','6eiZNVA','3895573IgRMxZ','href','ion','replace','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','ksh','where.exe','utf-8','pipe','unref','elvish','start','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','pop','split','37431izppQa','data','claude','platform','zsh','toLowerCase','powershell','xonsh','pid','comm','95812tImcqJ','stderr','join','1684IxKJKo','ppid'];a206_0x266c=function(){return _0x1224f8;};return a206_0x266c();}function getProcessInfoPosix(_0x169e7c){const _0x1bb1bb=a206_0x226564;try{const _0x146d1a=0x400000;if(!Number[_0x1bb1bb(0x138)](_0x169e7c)||_0x169e7c<=0x0||_0x169e7c>_0x146d1a)return null;const _0x1ee971=execSync(_0x1bb1bb(0x169)+_0x169e7c+_0x1bb1bb(0x15e),{'encoding':_0x1bb1bb(0x147),'stdio':_0x1bb1bb(0x148)})[_0x1bb1bb(0x13b)](),[_0x38a669,..._0x55b88f]=_0x1ee971[_0x1bb1bb(0x14e)](/\s+/),_0x236f29=parseInt(_0x38a669,0xa),_0x24a6ff=_0x55b88f[_0x1bb1bb(0x15b)]('\x20');if(isNaN(_0x236f29))return null;return{'pid':_0x169e7c,'ppid':_0x236f29,'comm':_0x24a6ff};}catch{return null;}}function getProcessInfo(_0x39814f){const _0x2d199e=a206_0x226564;if(process[_0x2d199e(0x152)]===_0x2d199e(0x161))return getProcessInfoWindows(_0x39814f);return getProcessInfoPosix(_0x39814f);}function getBasename(_0x5f3330){const _0x3d9fa7=a206_0x226564;return _0x5f3330[_0x3d9fa7(0x143)](/^-/,'')['split']('/')[_0x3d9fa7(0x14d)]()?.[_0x3d9fa7(0x154)]()||'';}function isShell(_0x5e0ba1){const _0x2997a1=a206_0x226564;return SHELL_NAMES[_0x2997a1(0x166)](getBasename(_0x5e0ba1));}function isEphemeralShellSpawner(_0x35c383){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x35c383));}function a206_0x24aa(_0x3006af,_0x750635){_0x3006af=_0x3006af-0x135;const _0x266c9c=a206_0x266c();let _0x24aab2=_0x266c9c[_0x3006af];return _0x24aab2;}let cachedShellPID;function findShellPID(){const _0x47744e=a206_0x226564;if(process[_0x47744e(0x15d)]===undefined)return process[_0x47744e(0x157)];let _0x215288=process['ppid'];const _0x2ee015=0xa;let _0x1fd880=0x0;while(_0x1fd880<_0x2ee015){const _0x3e48be=getProcessInfo(_0x215288);if(!_0x3e48be)break;if(isShell(_0x3e48be[_0x47744e(0x158)])){const _0x3d3056=getProcessInfo(_0x3e48be[_0x47744e(0x15d)]);if(_0x3d3056&&isEphemeralShellSpawner(_0x3d3056[_0x47744e(0x158)])){_0x215288=_0x3e48be[_0x47744e(0x15d)],_0x1fd880++;continue;}return _0x3e48be['pid'];}if(_0x3e48be[_0x47744e(0x15d)]===0x0||_0x3e48be[_0x47744e(0x15d)]===0x1){if(isShell(_0x3e48be[_0x47744e(0x158)]))return _0x3e48be[_0x47744e(0x157)];break;}_0x215288=_0x3e48be['ppid'],_0x1fd880++;}return process[_0x47744e(0x15d)]!==undefined?process[_0x47744e(0x15d)]:process[_0x47744e(0x157)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x44d421){const _0x30da0e=a206_0x226564;if(!Number[_0x30da0e(0x138)](_0x44d421)||_0x44d421<=0x0)return![];try{return process[_0x30da0e(0x160)](_0x44d421,0x0),!![];}catch{return![];}}export function openBrowser(_0x553753){const _0x4dab71=a206_0x226564;let _0x57afc7;try{_0x57afc7=new URL(_0x553753);}catch{throw new Error(_0x4dab71(0x135)+_0x553753);}if(_0x57afc7[_0x4dab71(0x162)]!==_0x4dab71(0x168)&&_0x57afc7[_0x4dab71(0x162)]!=='https:')throw new Error('Unsupported\x20protocol:\x20'+_0x57afc7[_0x4dab71(0x162)]);const _0x3355a3=_0x57afc7[_0x4dab71(0x141)],_0x40971f=process[_0x4dab71(0x152)];if(_0x40971f===_0x4dab71(0x161))spawn(_0x4dab71(0x163),['/c',_0x4dab71(0x14b),'',_0x3355a3],{'detached':!![],'stdio':'ignore'})[_0x4dab71(0x149)]();else{const _0x2c6340=_0x40971f===_0x4dab71(0x13a)?'open':'xdg-open';spawn(_0x2c6340,[_0x3355a3],{'detached':!![],'stdio':'ignore'})[_0x4dab71(0x149)]();}}export function isWindows(){const _0x53dc48=a206_0x226564;return process['platform']===_0x53dc48(0x161);}export function getCrossSpawnOptions(_0x3213b4){return{..._0x3213b4??{},'shell':isWindows()};}export function escapeWindowsArg(_0x40dc09){const _0xe7f496=a206_0x226564;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x40dc09))return _0x40dc09;const _0x5b6a52=_0x40dc09[_0xe7f496(0x143)](/"/g,'\x22\x22');return'\x22'+_0x5b6a52+'\x22';}export function crossSpawn(_0x3d074d,_0x2cf346,_0x68f93d){const _0x6b418e=a206_0x226564;if(isWindows()){const _0x317ccf=escapeWindowsArg(_0x3d074d),_0x5683a6=_0x2cf346[_0x6b418e(0x16e)](escapeWindowsArg),_0x180982=[_0x317ccf,..._0x5683a6][_0x6b418e(0x15b)]('\x20');return spawn(_0x180982,[],{..._0x68f93d,'shell':!![]});}return spawn(_0x3d074d,_0x2cf346,{..._0x68f93d,'shell':![]});}export function gracefulExit(_0x522f7f=0x0){const _0x2a429e=a206_0x226564;isWindows()?setTimeout(()=>process[_0x2a429e(0x136)](_0x522f7f),0x32):process[_0x2a429e(0x136)](_0x522f7f);}export function findExecutable(_0x4507fd,_0x15806b=0x1388){return new Promise(_0x5128b2=>{const _0x2cfa6d=a206_0x24aa,_0x4fec79=isWindows()?_0x2cfa6d(0x146):_0x2cfa6d(0x165);let _0x320e33=![];const _0x33e345=crossSpawn(_0x4fec79,[_0x4507fd],{'stdio':_0x2cfa6d(0x148),'shell':isWindows()}),_0x2ba007=setTimeout(()=>{const _0xe4bd0f=_0x2cfa6d;!_0x320e33&&(_0x320e33=!![],_0x33e345[_0xe4bd0f(0x160)](),_0x5128b2(null));},_0x15806b);let _0x1f0709='';_0x33e345['stdout']?.['on']('data',_0xa078b1=>{const _0x313980=_0x2cfa6d;_0x1f0709+=_0xa078b1[_0x313980(0x16f)]();}),_0x33e345[_0x2cfa6d(0x15a)]?.['on'](_0x2cfa6d(0x150),()=>{}),_0x33e345['on'](_0x2cfa6d(0x136),_0x4b3f20=>{const _0x5eb09c=_0x2cfa6d;if(_0x320e33)return;_0x320e33=!![],clearTimeout(_0x2ba007);if(_0x4b3f20===0x0&&_0x1f0709['trim']()){const _0x6e902=_0x1f0709['trim']()[_0x5eb09c(0x14e)](/\r?\n/)[0x0];_0x5128b2(_0x6e902);}else _0x5128b2(null);}),_0x33e345['on'](_0x2cfa6d(0x164),()=>{if(_0x320e33)return;_0x320e33=!![],clearTimeout(_0x2ba007),_0x5128b2(null);});});}
1
+ const a206_0x5d5f90=a206_0x2743;(function(_0x3d5da6,_0x1455f1){const _0x34110a=a206_0x2743,_0x5d5dd4=_0x3d5da6();while(!![]){try{const _0x24bd38=-parseInt(_0x34110a(0xd5))/0x1*(parseInt(_0x34110a(0xa1))/0x2)+parseInt(_0x34110a(0xa8))/0x3*(parseInt(_0x34110a(0xb7))/0x4)+parseInt(_0x34110a(0xaf))/0x5*(-parseInt(_0x34110a(0xd3))/0x6)+-parseInt(_0x34110a(0xa4))/0x7*(parseInt(_0x34110a(0xa2))/0x8)+parseInt(_0x34110a(0xa0))/0x9+-parseInt(_0x34110a(0xc4))/0xa+parseInt(_0x34110a(0xa9))/0xb*(parseInt(_0x34110a(0xb9))/0xc);if(_0x24bd38===_0x1455f1)break;else _0x5d5dd4['push'](_0x5d5dd4['shift']());}catch(_0x242e6a){_0x5d5dd4['push'](_0x5d5dd4['shift']());}}}(a206_0x3762,0xd04ac));function a206_0x2743(_0x317d55,_0xcee58){_0x317d55=_0x317d55-0xa0;const _0x3762be=a206_0x3762();let _0x274349=_0x3762be[_0x317d55];return _0x274349;}function a206_0x3762(){const _0xa10edf=['stdout','ps\x20-p\x20','error','tcsh','ksh','1743900ycqAsI','where.exe','stderr','open','treasure\x20studio','href','trim','protocol','ppid','dash','join','Unsupported\x20protocol:\x20','ion','data','kill','2502vCKZSk','pwsh','1gceOir','https:','map','test','powershell','exit','comm','xonsh','14335038Dwleom','2163714IuaYXE','3671504WPnHND','split','21SPofRu','pipe','zsh','xdg-open','985353VDXYcM','22fkIkjP','platform','fish','which','cmd.exe','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','11080ubkkRJ','win32','isInteger','has','pop','replace','unref','pid','20jyQoDy','code','7051560USqfcI','toString','elvish','start','Invalid\x20URL:\x20','electron'];a206_0x3762=function(){return _0xa10edf;};return a206_0x3762();}import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a206_0x5d5f90(0xa6),'sh',a206_0x5d5f90(0xab),a206_0x5d5f90(0xc3),a206_0x5d5f90(0xc2),'csh',a206_0x5d5f90(0xcd),a206_0x5d5f90(0xd4),a206_0x5d5f90(0xd9),'nu',a206_0x5d5f90(0xd0),a206_0x5d5f90(0xbb),a206_0x5d5f90(0xdc)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a206_0x5d5f90(0xb8),'cursor',a206_0x5d5f90(0xbe),a206_0x5d5f90(0xc8)]);function getProcessInfoWindows(_0x30a4fa){const _0x145d28=a206_0x5d5f90;try{if(!Number[_0x145d28(0xb1)](_0x30a4fa)||_0x30a4fa<=0x0)return null;const _0x321e01='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x30a4fa+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0xc43f45=execSync(_0x145d28(0xae)+_0x321e01+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x145d28(0xa5),_0x145d28(0xa5),_0x145d28(0xa5)]})[_0x145d28(0xca)]();if(!_0xc43f45)return null;const [_0x59dfd5,..._0x2a19d8]=_0xc43f45['split'](','),_0x3d6d65=parseInt(_0x59dfd5,0xa),_0x2d8b7a=_0x2a19d8['join'](',')[_0x145d28(0xca)]();if(isNaN(_0x3d6d65)||!_0x2d8b7a)return null;return{'pid':_0x30a4fa,'ppid':_0x3d6d65,'comm':_0x2d8b7a['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x526aac){const _0x4473b9=a206_0x5d5f90;try{const _0x2920c1=0x400000;if(!Number[_0x4473b9(0xb1)](_0x526aac)||_0x526aac<=0x0||_0x526aac>_0x2920c1)return null;const _0xd16601=execSync(_0x4473b9(0xc0)+_0x526aac+'\x20-o\x20ppid=,comm=',{'encoding':'utf-8','stdio':_0x4473b9(0xa5)})['trim'](),[_0x29fd4f,..._0x53b7e1]=_0xd16601['split'](/\s+/),_0x6fba48=parseInt(_0x29fd4f,0xa),_0x1339ae=_0x53b7e1[_0x4473b9(0xce)]('\x20');if(isNaN(_0x6fba48))return null;return{'pid':_0x526aac,'ppid':_0x6fba48,'comm':_0x1339ae};}catch{return null;}}function getProcessInfo(_0x4af919){const _0x4d8be3=a206_0x5d5f90;if(process[_0x4d8be3(0xaa)]===_0x4d8be3(0xb0))return getProcessInfoWindows(_0x4af919);return getProcessInfoPosix(_0x4af919);}function getBasename(_0x50b0a8){const _0x5247d1=a206_0x5d5f90;return _0x50b0a8[_0x5247d1(0xb4)](/^-/,'')[_0x5247d1(0xa3)]('/')[_0x5247d1(0xb3)]()?.['toLowerCase']()||'';}function isShell(_0xf28b95){const _0x40f2ad=a206_0x5d5f90;return SHELL_NAMES[_0x40f2ad(0xb2)](getBasename(_0xf28b95));}function isEphemeralShellSpawner(_0x18c5f8){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x18c5f8));}let cachedShellPID;function findShellPID(){const _0x19290f=a206_0x5d5f90;if(process[_0x19290f(0xcc)]===undefined)return process[_0x19290f(0xb6)];let _0x1c53c0=process['ppid'];const _0x43bdcf=0xa;let _0x4c4022=0x0;while(_0x4c4022<_0x43bdcf){const _0x4b5360=getProcessInfo(_0x1c53c0);if(!_0x4b5360)break;if(isShell(_0x4b5360[_0x19290f(0xdb)])){const _0x1b053e=getProcessInfo(_0x4b5360[_0x19290f(0xcc)]);if(_0x1b053e&&isEphemeralShellSpawner(_0x1b053e[_0x19290f(0xdb)])){_0x1c53c0=_0x4b5360[_0x19290f(0xcc)],_0x4c4022++;continue;}return _0x4b5360[_0x19290f(0xb6)];}if(_0x4b5360[_0x19290f(0xcc)]===0x0||_0x4b5360[_0x19290f(0xcc)]===0x1){if(isShell(_0x4b5360[_0x19290f(0xdb)]))return _0x4b5360[_0x19290f(0xb6)];break;}_0x1c53c0=_0x4b5360['ppid'],_0x4c4022++;}return process['ppid']!==undefined?process[_0x19290f(0xcc)]:process[_0x19290f(0xb6)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2daf2d){const _0x1cd832=a206_0x5d5f90;if(!Number[_0x1cd832(0xb1)](_0x2daf2d)||_0x2daf2d<=0x0)return![];try{return process[_0x1cd832(0xd2)](_0x2daf2d,0x0),!![];}catch{return![];}}export function openBrowser(_0x3ca662){const _0x10685f=a206_0x5d5f90;let _0x3b94f6;try{_0x3b94f6=new URL(_0x3ca662);}catch{throw new Error(_0x10685f(0xbd)+_0x3ca662);}if(_0x3b94f6[_0x10685f(0xcb)]!=='http:'&&_0x3b94f6[_0x10685f(0xcb)]!==_0x10685f(0xd6))throw new Error(_0x10685f(0xcf)+_0x3b94f6['protocol']);const _0x237b0e=_0x3b94f6[_0x10685f(0xc9)],_0x16eea5=process[_0x10685f(0xaa)];if(_0x16eea5===_0x10685f(0xb0))spawn(_0x10685f(0xad),['/c',_0x10685f(0xbc),'',_0x237b0e],{'detached':!![],'stdio':'ignore'})[_0x10685f(0xb5)]();else{const _0x197769=_0x16eea5==='darwin'?_0x10685f(0xc7):_0x10685f(0xa7);spawn(_0x197769,[_0x237b0e],{'detached':!![],'stdio':'ignore'})[_0x10685f(0xb5)]();}}export function isWindows(){const _0x20763e=a206_0x5d5f90;return process[_0x20763e(0xaa)]===_0x20763e(0xb0);}export function getCrossSpawnOptions(_0x22666e){return{..._0x22666e??{},'shell':isWindows()};}export function escapeWindowsArg(_0x23af78){const _0x52c3c2=a206_0x5d5f90;if(!/[ \t"&|<>^%!`\r\n]/[_0x52c3c2(0xd8)](_0x23af78))return _0x23af78;const _0x1376e2=_0x23af78['replace'](/"/g,'\x22\x22');return'\x22'+_0x1376e2+'\x22';}export function crossSpawn(_0x487d48,_0x2efa0f,_0x2e92ce){const _0x501b50=a206_0x5d5f90;if(isWindows()){const _0x13e7e1=escapeWindowsArg(_0x487d48),_0x8b6710=_0x2efa0f[_0x501b50(0xd7)](escapeWindowsArg),_0x22797b=[_0x13e7e1,..._0x8b6710][_0x501b50(0xce)]('\x20');return spawn(_0x22797b,[],{..._0x2e92ce,'shell':!![]});}return spawn(_0x487d48,_0x2efa0f,{..._0x2e92ce,'shell':![]});}export function gracefulExit(_0x489207=0x0){const _0x349820=a206_0x5d5f90;isWindows()?setTimeout(()=>process[_0x349820(0xda)](_0x489207),0x32):process[_0x349820(0xda)](_0x489207);}export function findExecutable(_0xcab5fa,_0x538cb4=0x1388){return new Promise(_0x538726=>{const _0x5f42cb=a206_0x2743,_0x16eeb8=isWindows()?_0x5f42cb(0xc5):_0x5f42cb(0xac);let _0x11d53a=![];const _0x42230d=crossSpawn(_0x16eeb8,[_0xcab5fa],{'stdio':_0x5f42cb(0xa5),'shell':isWindows()}),_0x7c2458=setTimeout(()=>{const _0x27ccc6=_0x5f42cb;!_0x11d53a&&(_0x11d53a=!![],_0x42230d[_0x27ccc6(0xd2)](),_0x538726(null));},_0x538cb4);let _0x595aec='';_0x42230d[_0x5f42cb(0xbf)]?.['on'](_0x5f42cb(0xd1),_0x190c98=>{const _0x462cb8=_0x5f42cb;_0x595aec+=_0x190c98[_0x462cb8(0xba)]();}),_0x42230d[_0x5f42cb(0xc6)]?.['on']('data',()=>{}),_0x42230d['on'](_0x5f42cb(0xda),_0x5c3b0d=>{const _0x3018bb=_0x5f42cb;if(_0x11d53a)return;_0x11d53a=!![],clearTimeout(_0x7c2458);if(_0x5c3b0d===0x0&&_0x595aec[_0x3018bb(0xca)]()){const _0x285d7f=_0x595aec['trim']()['split'](/\r?\n/)[0x0];_0x538726(_0x285d7f);}else _0x538726(null);}),_0x42230d['on'](_0x5f42cb(0xc1),()=>{if(_0x11d53a)return;_0x11d53a=!![],clearTimeout(_0x7c2458),_0x538726(null);});});}
@@ -1 +1 @@
1
- (function(_0x201a98,_0x156983){const _0x20a034=a207_0x33ae,_0x450e42=_0x201a98();while(!![]){try{const _0x8afef9=parseInt(_0x20a034(0x1fd))/0x1*(parseInt(_0x20a034(0x205))/0x2)+-parseInt(_0x20a034(0x200))/0x3+parseInt(_0x20a034(0x1f2))/0x4*(-parseInt(_0x20a034(0x20b))/0x5)+-parseInt(_0x20a034(0x1f4))/0x6*(-parseInt(_0x20a034(0x1fe))/0x7)+-parseInt(_0x20a034(0x1f9))/0x8+-parseInt(_0x20a034(0x201))/0x9+-parseInt(_0x20a034(0x202))/0xa*(-parseInt(_0x20a034(0x206))/0xb);if(_0x8afef9===_0x156983)break;else _0x450e42['push'](_0x450e42['shift']());}catch(_0x1cf8c5){_0x450e42['push'](_0x450e42['shift']());}}}(a207_0xa918,0xdcc54));function a207_0x33ae(_0x3476e5,_0x207617){_0x3476e5=_0x3476e5-0x1f1;const _0xa91891=a207_0xa918();let _0x33ae11=_0xa91891[_0x3476e5];return _0x33ae11;}import*as a207_0x197d76 from'readline';function a207_0xa918(){const _0x27b9d4=['7JJandX','write','263289zevfRl','11786193ZKGtvp','10IBcVpk','close','data','186NtfnPK','30308289VzrMTi','\x20(y/N):\x20','pause','toLowerCase','createInterface','1073455tNSQhD','utf8','28pYdHPE','setEncoding','8232858JsDfCT','question','removeListener','stderr','stdin','8675040IpSZtm','stdout','yes','isTTY','8187ZsFAUx'];a207_0xa918=function(){return _0x27b9d4;};return a207_0xa918();}import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}export async function confirm(_0x3c7821){const _0x41aeef=a207_0x33ae,_0x89cf34=a207_0x197d76[_0x41aeef(0x20a)]({'input':process[_0x41aeef(0x1f8)],'output':process[_0x41aeef(0x1fa)]});return new Promise(_0x42b1f9=>{const _0x2dd4a8=_0x41aeef;_0x89cf34[_0x2dd4a8(0x1f5)](_0x3c7821+_0x2dd4a8(0x207),_0x20d147=>{const _0x2533bd=_0x2dd4a8;_0x89cf34[_0x2533bd(0x203)](),_0x42b1f9(_0x20d147[_0x2533bd(0x209)]()==='y'||_0x20d147[_0x2533bd(0x209)]()===_0x2533bd(0x1fb));});});}export async function confirmKey(_0x333b3a){const _0x5f1d7d=a207_0x33ae;if(!process['stdin'][_0x5f1d7d(0x1fc)])return![];return process['stderr'][_0x5f1d7d(0x1ff)](_0x333b3a+'\x20[y/N]\x20'),new Promise(_0x5665d4=>{const _0x547247=_0x5f1d7d,_0x590813=process[_0x547247(0x1f8)];_0x590813['setRawMode'](!![]),_0x590813['resume'](),_0x590813[_0x547247(0x1f3)](_0x547247(0x1f1));const _0x2e07c4=_0xa4db4d=>{const _0x3453d5=_0x547247;_0x590813['setRawMode'](![]),_0x590813[_0x3453d5(0x208)](),_0x590813[_0x3453d5(0x1f6)](_0x3453d5(0x204),_0x2e07c4);if(_0xa4db4d==='\x1b'){process[_0x3453d5(0x1f7)]['write']('\x0a'),_0x5665d4(![]);return;}_0xa4db4d==='\x03'&&(process[_0x3453d5(0x1f7)][_0x3453d5(0x1ff)]('\x0a'),gracefulExit(0x82));if(_0xa4db4d['toLowerCase']()==='y'){process[_0x3453d5(0x1f7)][_0x3453d5(0x1ff)]('y\x0a'),_0x5665d4(!![]);return;}process[_0x3453d5(0x1f7)][_0x3453d5(0x1ff)]('\x0a'),_0x5665d4(![]);};_0x590813['on'](_0x547247(0x204),_0x2e07c4);});}
1
+ function a207_0x32c2(_0x412d16,_0x575fff){_0x412d16=_0x412d16-0x1bc;const _0x293a1a=a207_0x293a();let _0x32c2ef=_0x293a1a[_0x412d16];return _0x32c2ef;}(function(_0x142d4e,_0x3ef44d){const _0x3f8512=a207_0x32c2,_0x56283f=_0x142d4e();while(!![]){try{const _0x41a158=parseInt(_0x3f8512(0x1c6))/0x1*(parseInt(_0x3f8512(0x1d2))/0x2)+parseInt(_0x3f8512(0x1c1))/0x3+parseInt(_0x3f8512(0x1c4))/0x4+-parseInt(_0x3f8512(0x1ce))/0x5+-parseInt(_0x3f8512(0x1c2))/0x6*(parseInt(_0x3f8512(0x1bd))/0x7)+-parseInt(_0x3f8512(0x1cf))/0x8+parseInt(_0x3f8512(0x1cb))/0x9;if(_0x41a158===_0x3ef44d)break;else _0x56283f['push'](_0x56283f['shift']());}catch(_0x381cbc){_0x56283f['push'](_0x56283f['shift']());}}}(a207_0x293a,0xab77a));function a207_0x293a(){const _0xa32f2b=['4045984iijzZT','write','18439dHqtOz','stdout','stdin','toLowerCase','isTTY','9326502IvoJJR','stderr','close','6605205WaVAdJ','7478632OjNALI','pause','question','68JIGtbL','setRawMode','56gdPSOB','\x20[y/N]\x20','data','resume','3727788ZjYeXG','719322DlHIWN','createInterface'];a207_0x293a=function(){return _0xa32f2b;};return a207_0x293a();}import*as a207_0x2c6a00 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}export async function confirm(_0x493716){const _0x119e75=a207_0x32c2,_0x5e4c34=a207_0x2c6a00[_0x119e75(0x1c3)]({'input':process[_0x119e75(0x1c8)],'output':process[_0x119e75(0x1c7)]});return new Promise(_0x508ceb=>{const _0x563a0e=_0x119e75;_0x5e4c34[_0x563a0e(0x1d1)](_0x493716+'\x20(y/N):\x20',_0x48ec95=>{const _0x455b42=_0x563a0e;_0x5e4c34[_0x455b42(0x1cd)](),_0x508ceb(_0x48ec95['toLowerCase']()==='y'||_0x48ec95[_0x455b42(0x1c9)]()==='yes');});});}export async function confirmKey(_0x8c3ec8){const _0x5bf635=a207_0x32c2;if(!process[_0x5bf635(0x1c8)][_0x5bf635(0x1ca)])return![];return process[_0x5bf635(0x1cc)][_0x5bf635(0x1c5)](_0x8c3ec8+_0x5bf635(0x1be)),new Promise(_0x52c4bb=>{const _0x576245=_0x5bf635,_0x1ea76a=process[_0x576245(0x1c8)];_0x1ea76a[_0x576245(0x1bc)](!![]),_0x1ea76a[_0x576245(0x1c0)](),_0x1ea76a['setEncoding']('utf8');const _0x318135=_0x305948=>{const _0x3f008d=_0x576245;_0x1ea76a['setRawMode'](![]),_0x1ea76a[_0x3f008d(0x1d0)](),_0x1ea76a['removeListener']('data',_0x318135);if(_0x305948==='\x1b'){process[_0x3f008d(0x1cc)][_0x3f008d(0x1c5)]('\x0a'),_0x52c4bb(![]);return;}_0x305948==='\x03'&&(process[_0x3f008d(0x1cc)]['write']('\x0a'),gracefulExit(0x82));if(_0x305948[_0x3f008d(0x1c9)]()==='y'){process['stderr']['write']('y\x0a'),_0x52c4bb(!![]);return;}process[_0x3f008d(0x1cc)]['write']('\x0a'),_0x52c4bb(![]);};_0x1ea76a['on'](_0x576245(0x1bf),_0x318135);});}
@@ -1 +1 @@
1
- (function(_0x1aec3f,_0x309462){const _0x5ddc66=a208_0x3482,_0x22a337=_0x1aec3f();while(!![]){try{const _0x251150=-parseInt(_0x5ddc66(0x191))/0x1+-parseInt(_0x5ddc66(0x194))/0x2+parseInt(_0x5ddc66(0x18d))/0x3+-parseInt(_0x5ddc66(0x1a2))/0x4*(-parseInt(_0x5ddc66(0x19b))/0x5)+-parseInt(_0x5ddc66(0x1a0))/0x6+parseInt(_0x5ddc66(0x196))/0x7*(parseInt(_0x5ddc66(0x19d))/0x8)+parseInt(_0x5ddc66(0x18a))/0x9;if(_0x251150===_0x309462)break;else _0x22a337['push'](_0x22a337['shift']());}catch(_0x200e67){_0x22a337['push'](_0x22a337['shift']());}}}(a208_0x18d1,0x9a26b));import a208_0xdf524 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a208_0x18d1(){const _0x361ee6=['598110akvNDv','text','64NwzlXA','...','\x20[Job\x20ID:\x20','5282640bxmRfP','Processing','4xiHJCA','phase','11283930bBDkZn','jobId','intervalFactory','925755VgthCW','clock','trim','isSpinning','818188mBrQSG','stop','isTTY','959956bojBIC','start','987028wmMymx','stderr','extra','now','cyan'];a208_0x18d1=function(){return _0x361ee6;};return a208_0x18d1();}export function createCommandSpinner(_0x54c7ec,_0x272fac={}){const _0x37cc5c=a208_0x3482,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x272fac;return a208_0xdf524({'text':_0x54c7ec,'color':_0x37cc5c(0x19a),'stream':process[_0x37cc5c(0x197)],'isEnabled':forceEnabled||process[_0x37cc5c(0x197)][_0x37cc5c(0x193)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x44cf77,_0x48c445,_0x2e752b={}){const _0x3de3bd=a208_0x3482,_0x15bdcd=_0x2e752b[_0x3de3bd(0x18e)]??(()=>Date[_0x3de3bd(0x199)]()),_0x4a5e5f=createCommandSpinner(_0x44cf77,_0x2e752b);_0x4a5e5f['start']();const _0x46536f=_0x15bdcd();try{const _0x4be6c8=await _0x48c445(),_0x19690b=_0x15bdcd()-_0x46536f;return _0x4a5e5f[_0x3de3bd(0x192)](),{'data':_0x4be6c8,'elapsedMs':_0x19690b};}catch(_0x3c67cf){_0x4a5e5f[_0x3de3bd(0x192)]();throw _0x3c67cf;}}function a208_0x3482(_0x4a9b7e,_0x389cbc){_0x4a9b7e=_0x4a9b7e-0x189;const _0x18d113=a208_0x18d1();let _0x34829a=_0x18d113[_0x4a9b7e];return _0x34829a;}export async function withProgressSpinner(_0x524760,_0xf4fc59,_0x4b9aea={}){const _0x3b2f8c=a208_0x3482,_0x1dad68=_0x4b9aea['clock']??(()=>Date['now']()),_0x27c2f8=_0x4b9aea[_0x3b2f8c(0x18c)]??setInterval,_0x5ef76d=createCommandSpinner(_0x524760,_0x4b9aea);_0x5ef76d[_0x3b2f8c(0x195)]();const _0x3909bf=_0x1dad68(),_0x1c6cda=_0x524760['replace'](_0x3b2f8c(0x19e),'')[_0x3b2f8c(0x18f)]()||_0x3b2f8c(0x1a1),_0x701351={};let _0x4ecb51=_0x524760;const _0x263062=()=>{const _0x2c57fe=_0x3b2f8c;if(!_0x5ef76d['isSpinning'])return;const _0x3b7832=_0x1dad68()-_0x3909bf,_0x42aa04=formatElapsed(_0x3b7832),_0x3e2868=_0x701351[_0x2c57fe(0x189)]?.[_0x2c57fe(0x18f)]()||_0x1c6cda,_0x591875=_0x701351['jobId']?_0x2c57fe(0x19f)+_0x701351['jobId']+']':'',_0x456c09=_0x701351[_0x2c57fe(0x198)]?'\x20'+_0x701351[_0x2c57fe(0x198)]:'',_0x5c2cd1=_0x3e2868+'\x20'+_0x42aa04+_0x456c09+_0x591875;_0x5c2cd1!==_0x4ecb51&&_0x5c2cd1[_0x2c57fe(0x18f)]()&&(_0x5ef76d[_0x2c57fe(0x19c)]=_0x5c2cd1,_0x4ecb51=_0x5c2cd1);},_0x534481=_0x27c2f8(()=>{_0x263062();},0x3e8),_0x28f1a9={'setPhase':_0x5f4538=>{const _0x42f69f=_0x3b2f8c;_0x701351['phase']=_0x5f4538;const _0x5e3955=_0x5f4538?.[_0x42f69f(0x18f)]()||_0x1c6cda,_0x21df41=_0x1dad68()-_0x3909bf,_0x40a5cf=formatElapsed(_0x21df41),_0x3926a2=_0x701351['jobId']?'\x20[Job\x20ID:\x20'+_0x701351[_0x42f69f(0x18b)]+']':'',_0x48f77d=_0x701351[_0x42f69f(0x198)]?'\x20'+_0x701351['extra']:'',_0x1d626c=_0x5e3955+'\x20'+_0x40a5cf+_0x48f77d+_0x3926a2;_0x5ef76d[_0x42f69f(0x190)]&&_0x1d626c['trim']()&&(_0x5ef76d[_0x42f69f(0x19c)]=_0x1d626c,_0x4ecb51=_0x1d626c);},'setJobId':_0x44d4ca=>{const _0x54e2dc=_0x3b2f8c;_0x701351[_0x54e2dc(0x18b)]=_0x44d4ca,_0x263062();},'setExtra':_0xa395c=>{_0x701351['extra']=_0xa395c,_0x263062();}};_0x263062();try{const _0x227520=await _0xf4fc59(_0x28f1a9),_0xe94f07=_0x1dad68()-_0x3909bf;return{'data':_0x227520,'elapsedMs':_0xe94f07};}finally{clearInterval(_0x534481),_0x5ef76d[_0x3b2f8c(0x192)]();}}export function formatElapsed(_0x5a2550){const _0x5d6570=Math['floor'](_0x5a2550/0x3e8);if(_0x5d6570<0x3c)return(_0x5a2550/0x3e8)['toFixed'](0x1)+'s';const _0x10102e=Math['floor'](_0x5d6570/0x3c),_0x43d087=_0x5d6570%0x3c;if(_0x10102e<0x3c)return _0x10102e+'m\x20'+_0x43d087+'s';const _0x30146a=Math['floor'](_0x10102e/0x3c),_0x1299ed=_0x10102e%0x3c;return _0x30146a+'h\x20'+_0x1299ed+'m';}
1
+ (function(_0x445076,_0x1661e8){const _0x5e474b=a208_0x5ea0,_0x9a69da=_0x445076();while(!![]){try{const _0x105bb9=parseInt(_0x5e474b(0x1b1))/0x1+-parseInt(_0x5e474b(0x1b2))/0x2+-parseInt(_0x5e474b(0x1c0))/0x3+parseInt(_0x5e474b(0x1af))/0x4*(parseInt(_0x5e474b(0x1c2))/0x5)+parseInt(_0x5e474b(0x1b4))/0x6*(parseInt(_0x5e474b(0x1ba))/0x7)+-parseInt(_0x5e474b(0x1ad))/0x8*(parseInt(_0x5e474b(0x1b3))/0x9)+-parseInt(_0x5e474b(0x1b8))/0xa*(parseInt(_0x5e474b(0x1b0))/0xb);if(_0x105bb9===_0x1661e8)break;else _0x9a69da['push'](_0x9a69da['shift']());}catch(_0x3bf183){_0x9a69da['push'](_0x9a69da['shift']());}}}(a208_0x5d1b,0xa1584));import a208_0x500382 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a208_0x5ea0(_0x53cd17,_0x42741e){_0x53cd17=_0x53cd17-0x1a7;const _0x5d1b3a=a208_0x5d1b();let _0x5ea0bd=_0x5d1b3a[_0x53cd17];return _0x5ea0bd;}export function createCommandSpinner(_0x3d98e4,_0x3aff54={}){const _0x3393f3=a208_0x5ea0,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3aff54;return a208_0x500382({'text':_0x3d98e4,'color':_0x3393f3(0x1bc),'stream':process[_0x3393f3(0x1b5)],'isEnabled':forceEnabled||process[_0x3393f3(0x1b5)][_0x3393f3(0x1a8)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x4a8147,_0x41cc2f,_0x22c620={}){const _0x21cd28=a208_0x5ea0,_0x167c33=_0x22c620[_0x21cd28(0x1c1)]??(()=>Date['now']()),_0x3fec5a=createCommandSpinner(_0x4a8147,_0x22c620);_0x3fec5a['start']();const _0x301632=_0x167c33();try{const _0x46b532=await _0x41cc2f(),_0x2e878f=_0x167c33()-_0x301632;return _0x3fec5a[_0x21cd28(0x1ac)](),{'data':_0x46b532,'elapsedMs':_0x2e878f};}catch(_0x7c3cf6){_0x3fec5a['stop']();throw _0x7c3cf6;}}export async function withProgressSpinner(_0xbc0fda,_0x241e4c,_0x4af13f={}){const _0x5ee578=a208_0x5ea0,_0x3fcf4c=_0x4af13f[_0x5ee578(0x1c1)]??(()=>Date[_0x5ee578(0x1ae)]()),_0x561896=_0x4af13f[_0x5ee578(0x1a9)]??setInterval,_0x9399a8=createCommandSpinner(_0xbc0fda,_0x4af13f);_0x9399a8['start']();const _0x2a549d=_0x3fcf4c(),_0x1c4fee=_0xbc0fda[_0x5ee578(0x1aa)](_0x5ee578(0x1bd),'')[_0x5ee578(0x1bf)]()||_0x5ee578(0x1c3),_0x19c3a9={};let _0x35acc3=_0xbc0fda;const _0x340fe8=()=>{const _0x2f6f17=_0x5ee578;if(!_0x9399a8[_0x2f6f17(0x1a7)])return;const _0x2381ff=_0x3fcf4c()-_0x2a549d,_0x11d88f=formatElapsed(_0x2381ff),_0x429eee=_0x19c3a9[_0x2f6f17(0x1bb)]?.[_0x2f6f17(0x1bf)]()||_0x1c4fee,_0x2201e5=_0x19c3a9[_0x2f6f17(0x1b6)]?'\x20[Job\x20ID:\x20'+_0x19c3a9[_0x2f6f17(0x1b6)]+']':'',_0x23e941=_0x19c3a9[_0x2f6f17(0x1b7)]?'\x20'+_0x19c3a9['extra']:'',_0x2fbcc0=_0x429eee+'\x20'+_0x11d88f+_0x23e941+_0x2201e5;_0x2fbcc0!==_0x35acc3&&_0x2fbcc0[_0x2f6f17(0x1bf)]()&&(_0x9399a8[_0x2f6f17(0x1ab)]=_0x2fbcc0,_0x35acc3=_0x2fbcc0);},_0x73c0d2=_0x561896(()=>{_0x340fe8();},0x3e8),_0x5786bb={'setPhase':_0x4d46cb=>{const _0x366adc=_0x5ee578;_0x19c3a9[_0x366adc(0x1bb)]=_0x4d46cb;const _0x25a880=_0x4d46cb?.[_0x366adc(0x1bf)]()||_0x1c4fee,_0x38a469=_0x3fcf4c()-_0x2a549d,_0x4f8e36=formatElapsed(_0x38a469),_0x3e2c28=_0x19c3a9[_0x366adc(0x1b6)]?'\x20[Job\x20ID:\x20'+_0x19c3a9[_0x366adc(0x1b6)]+']':'',_0x3ef2ee=_0x19c3a9[_0x366adc(0x1b7)]?'\x20'+_0x19c3a9[_0x366adc(0x1b7)]:'',_0x2e212c=_0x25a880+'\x20'+_0x4f8e36+_0x3ef2ee+_0x3e2c28;_0x9399a8[_0x366adc(0x1a7)]&&_0x2e212c[_0x366adc(0x1bf)]()&&(_0x9399a8['text']=_0x2e212c,_0x35acc3=_0x2e212c);},'setJobId':_0x84418a=>{const _0x563009=_0x5ee578;_0x19c3a9[_0x563009(0x1b6)]=_0x84418a,_0x340fe8();},'setExtra':_0xb9d292=>{_0x19c3a9['extra']=_0xb9d292,_0x340fe8();}};_0x340fe8();try{const _0x2bba2e=await _0x241e4c(_0x5786bb),_0x34173f=_0x3fcf4c()-_0x2a549d;return{'data':_0x2bba2e,'elapsedMs':_0x34173f};}finally{clearInterval(_0x73c0d2),_0x9399a8[_0x5ee578(0x1ac)]();}}function a208_0x5d1b(){const _0x2efe32=['stop','272KHUGxG','now','4eOKgsS','174779piFaJN','388040jbQrpb','304514OwWkLs','62289CdUqFh','6gWuLIh','stderr','jobId','extra','30vXfJbU','toFixed','6976599XjTZBl','phase','cyan','...','floor','trim','1667466KfxXvR','clock','1336155IfOzCC','Processing','isSpinning','isTTY','intervalFactory','replace','text'];a208_0x5d1b=function(){return _0x2efe32;};return a208_0x5d1b();}export function formatElapsed(_0x442688){const _0x899b76=a208_0x5ea0,_0x59082f=Math[_0x899b76(0x1be)](_0x442688/0x3e8);if(_0x59082f<0x3c)return(_0x442688/0x3e8)[_0x899b76(0x1b9)](0x1)+'s';const _0x53d682=Math[_0x899b76(0x1be)](_0x59082f/0x3c),_0x40f6c6=_0x59082f%0x3c;if(_0x53d682<0x3c)return _0x53d682+'m\x20'+_0x40f6c6+'s';const _0x5543c5=Math[_0x899b76(0x1be)](_0x53d682/0x3c),_0x4de37a=_0x53d682%0x3c;return _0x5543c5+'h\x20'+_0x4de37a+'m';}
@@ -1 +1 @@
1
- (function(_0x134b24,_0x389296){const _0xa48011=a209_0x1dff,_0x273a41=_0x134b24();while(!![]){try{const _0x5ee4b5=parseInt(_0xa48011(0xcf))/0x1*(-parseInt(_0xa48011(0xce))/0x2)+parseInt(_0xa48011(0xc0))/0x3+-parseInt(_0xa48011(0xc5))/0x4*(parseInt(_0xa48011(0xcc))/0x5)+-parseInt(_0xa48011(0xc7))/0x6*(parseInt(_0xa48011(0xcb))/0x7)+parseInt(_0xa48011(0xc4))/0x8+-parseInt(_0xa48011(0xc9))/0x9+-parseInt(_0xa48011(0xb9))/0xa*(-parseInt(_0xa48011(0xca))/0xb);if(_0x5ee4b5===_0x389296)break;else _0x273a41['push'](_0x273a41['shift']());}catch(_0x4512f1){_0x273a41['push'](_0x273a41['shift']());}}}(a209_0x2338,0x377d8));export async function*parseSSEStream(_0x53d427,_0x45dfee){const _0x1ba6dc=a209_0x1dff;if(!_0x53d427[_0x1ba6dc(0xc6)])throw new Error(_0x1ba6dc(0xbd));const _0xcf2817=_0x53d427['body'][_0x1ba6dc(0xbe)](),_0x5cba87=new TextDecoder();let _0x4798dc='',_0x2fcede={};try{while(!![]){const {done:_0x9779fc,value:_0x48b3af}=await _0xcf2817['read']();if(_0x9779fc){if(_0x2fcede['data']){_0x45dfee?.[_0x1ba6dc(0xb8)](_0x1ba6dc(0xcd)+_0x2fcede[_0x1ba6dc(0xc2)]);const _0xc444c1=parseSSEData(_0x2fcede['data']);yield _0xc444c1;}break;}_0x4798dc+=_0x5cba87['decode'](_0x48b3af,{'stream':!![]});const _0x2ebf87=_0x4798dc[_0x1ba6dc(0xbb)]('\x0a');_0x4798dc=_0x2ebf87[_0x1ba6dc(0xb6)]()||'';for(const _0x568a90 of _0x2ebf87){if(_0x568a90[_0x1ba6dc(0xc1)]()===''){if(_0x2fcede['data']){_0x45dfee?.['debug'](_0x1ba6dc(0xcd)+_0x2fcede['data']);const _0x83ce4d=parseSSEData(_0x2fcede['data']);yield _0x83ce4d,_0x2fcede={};}continue;}if(_0x568a90[_0x1ba6dc(0xbf)](':'))continue;const _0x5c8c14=_0x568a90[_0x1ba6dc(0xc3)](':');if(_0x5c8c14===-0x1)continue;const _0x465101=_0x568a90[_0x1ba6dc(0xba)](0x0,_0x5c8c14);let _0x5664b1=_0x568a90['slice'](_0x5c8c14+0x1);_0x5664b1[_0x1ba6dc(0xbf)]('\x20')&&(_0x5664b1=_0x5664b1[_0x1ba6dc(0xba)](0x1));switch(_0x465101){case _0x1ba6dc(0xb7):_0x2fcede[_0x1ba6dc(0xb7)]=_0x5664b1;break;case _0x1ba6dc(0xc2):_0x2fcede[_0x1ba6dc(0xc2)]=_0x2fcede[_0x1ba6dc(0xc2)]?_0x2fcede[_0x1ba6dc(0xc2)]+'\x0a'+_0x5664b1:_0x5664b1;break;case'id':_0x2fcede['id']=_0x5664b1;break;}}}}finally{_0xcf2817[_0x1ba6dc(0xc8)]();}}function a209_0x1dff(_0x1a84fd,_0x578084){_0x1a84fd=_0x1a84fd-0xb6;const _0x2338a8=a209_0x2338();let _0x1dff3e=_0x2338a8[_0x1a84fd];return _0x1dff3e;}function parseSSEData(_0xc16be3){const _0x49a5e2=a209_0x1dff;try{return JSON[_0x49a5e2(0xbc)](_0xc16be3);}catch(_0x3ff08a){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0xc16be3,{'cause':_0x3ff08a});}}function a209_0x2338(){const _0x594482=['615rRfsuB','[LLM\x20API\x20SSE]\x20','44pyWwVu','6718fEkkva','pop','event','debug','3010TwXTmV','slice','split','parse','Response\x20body\x20is\x20null','getReader','startsWith','469929rermhe','trim','data','indexOf','1753640zJQccc','10460pkPgYA','body','75204lzzvJW','releaseLock','3069225yoiLHH','30602hWyVVA','98BddLGh'];a209_0x2338=function(){return _0x594482;};return a209_0x2338();}
1
+ (function(_0x48521d,_0xc923b1){const _0x2b0994=a209_0x3b83,_0x23406f=_0x48521d();while(!![]){try{const _0x2941e8=-parseInt(_0x2b0994(0x206))/0x1*(-parseInt(_0x2b0994(0x203))/0x2)+parseInt(_0x2b0994(0x209))/0x3*(-parseInt(_0x2b0994(0x20d))/0x4)+parseInt(_0x2b0994(0x1fc))/0x5*(-parseInt(_0x2b0994(0x1f7))/0x6)+-parseInt(_0x2b0994(0x1f9))/0x7+-parseInt(_0x2b0994(0x20a))/0x8*(-parseInt(_0x2b0994(0x1ff))/0x9)+parseInt(_0x2b0994(0x20c))/0xa*(parseInt(_0x2b0994(0x1f5))/0xb)+-parseInt(_0x2b0994(0x200))/0xc*(-parseInt(_0x2b0994(0x20b))/0xd);if(_0x2941e8===_0xc923b1)break;else _0x23406f['push'](_0x23406f['shift']());}catch(_0xc81997){_0x23406f['push'](_0x23406f['shift']());}}}(a209_0x3761,0xc3aad));export async function*parseSSEStream(_0x226afd,_0x1e6474){const _0x4c211e=a209_0x3b83;if(!_0x226afd['body'])throw new Error(_0x4c211e(0x1f6));const _0x477fca=_0x226afd[_0x4c211e(0x207)][_0x4c211e(0x208)](),_0x1521d8=new TextDecoder();let _0x517ea3='',_0x449f57={};try{while(!![]){const {done:_0x11eeb4,value:_0x2b416e}=await _0x477fca[_0x4c211e(0x1f3)]();if(_0x11eeb4){if(_0x449f57[_0x4c211e(0x1fe)]){_0x1e6474?.['debug'](_0x4c211e(0x1fa)+_0x449f57[_0x4c211e(0x1fe)]);const _0x190dff=parseSSEData(_0x449f57[_0x4c211e(0x1fe)]);yield _0x190dff;}break;}_0x517ea3+=_0x1521d8['decode'](_0x2b416e,{'stream':!![]});const _0x432b34=_0x517ea3[_0x4c211e(0x205)]('\x0a');_0x517ea3=_0x432b34[_0x4c211e(0x1f4)]()||'';for(const _0xed2c73 of _0x432b34){if(_0xed2c73[_0x4c211e(0x1fb)]()===''){if(_0x449f57[_0x4c211e(0x1fe)]){_0x1e6474?.[_0x4c211e(0x20f)](_0x4c211e(0x1fa)+_0x449f57[_0x4c211e(0x1fe)]);const _0x1aed00=parseSSEData(_0x449f57['data']);yield _0x1aed00,_0x449f57={};}continue;}if(_0xed2c73['startsWith'](':'))continue;const _0x25b270=_0xed2c73[_0x4c211e(0x204)](':');if(_0x25b270===-0x1)continue;const _0x39ae9e=_0xed2c73[_0x4c211e(0x20e)](0x0,_0x25b270);let _0x1e8cdf=_0xed2c73[_0x4c211e(0x20e)](_0x25b270+0x1);_0x1e8cdf[_0x4c211e(0x1f8)]('\x20')&&(_0x1e8cdf=_0x1e8cdf[_0x4c211e(0x20e)](0x1));switch(_0x39ae9e){case'event':_0x449f57[_0x4c211e(0x1fd)]=_0x1e8cdf;break;case _0x4c211e(0x1fe):_0x449f57[_0x4c211e(0x1fe)]=_0x449f57[_0x4c211e(0x1fe)]?_0x449f57[_0x4c211e(0x1fe)]+'\x0a'+_0x1e8cdf:_0x1e8cdf;break;case'id':_0x449f57['id']=_0x1e8cdf;break;}}}}finally{_0x477fca[_0x4c211e(0x1f2)]();}}function parseSSEData(_0x306189){const _0x131a74=a209_0x3b83;try{return JSON[_0x131a74(0x202)](_0x306189);}catch(_0x21ddeb){throw new Error(_0x131a74(0x201)+_0x306189,{'cause':_0x21ddeb});}}function a209_0x3b83(_0x5f3cfb,_0x45ec95){_0x5f3cfb=_0x5f3cfb-0x1f2;const _0x37619c=a209_0x3761();let _0x3b83e1=_0x37619c[_0x5f3cfb];return _0x3b83e1;}function a209_0x3761(){const _0x513beb=['indexOf','split','45581TGrRbq','body','getReader','4638723lbnexq','648xNJoTk','2939729oLDyes','348590bwkPyA','4FslnDs','slice','debug','releaseLock','read','pop','297OJwiqc','Response\x20body\x20is\x20null','100344zdiJTe','startsWith','4139639CyfnIb','[LLM\x20API\x20SSE]\x20','trim','30cqAZJe','event','data','112374ziVAYS','48JlWqye','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','parse','8XAjHni'];a209_0x3761=function(){return _0x513beb;};return a209_0x3761();}
@@ -1 +1 @@
1
- (function(_0x1021b0,_0x2cd495){const _0x398c71=a210_0x402a,_0x204661=_0x1021b0();while(!![]){try{const _0x570013=parseInt(_0x398c71(0x11b))/0x1+-parseInt(_0x398c71(0x121))/0x2*(parseInt(_0x398c71(0x123))/0x3)+-parseInt(_0x398c71(0x125))/0x4+parseInt(_0x398c71(0x11d))/0x5*(parseInt(_0x398c71(0x118))/0x6)+-parseInt(_0x398c71(0x113))/0x7+parseInt(_0x398c71(0x10f))/0x8+-parseInt(_0x398c71(0x127))/0x9;if(_0x570013===_0x2cd495)break;else _0x204661['push'](_0x204661['shift']());}catch(_0x1f61ec){_0x204661['push'](_0x204661['shift']());}}}(a210_0x1ee4,0xaa4d1));function a210_0x1ee4(){const _0x2b2acd=['Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','test','1774866TlgbYa','\x5c$&','slice','1176629dzvylA','random','5vJReBV','toLowerCase','substring','Cannot\x20escape\x20empty\x20string\x20literal','272606KrpBhb','trim','3zhnuxA','length','1771308LXOeod','replace','4917600ijJSFA','7504168Gyenyy','unknown','floor','toString','4111646VwoZgH','padStart','repeat'];a210_0x1ee4=function(){return _0x2b2acd;};return a210_0x1ee4();}function a210_0x402a(_0x3c7b99,_0x246802){_0x3c7b99=_0x3c7b99-0x10f;const _0x1ee474=a210_0x1ee4();let _0x402a8a=_0x1ee474[_0x3c7b99];return _0x402a8a;}import a210_0x191d3a from'string-width';export function stringWidth(_0x444c7c){return a210_0x191d3a(_0x444c7c);}export function padEnd(_0x166178,_0x3eb202){const _0x55b0e6=a210_0x402a,_0x4b2b5c=stringWidth(_0x166178);if(_0x4b2b5c>=_0x3eb202)return _0x166178;return _0x166178+'\x20'[_0x55b0e6(0x115)](_0x3eb202-_0x4b2b5c);}export function padStart(_0x5c9838,_0x31b4de){const _0x27fe1b=stringWidth(_0x5c9838);if(_0x27fe1b>=_0x31b4de)return _0x5c9838;return'\x20'['repeat'](_0x31b4de-_0x27fe1b)+_0x5c9838;}export function centerAlign(_0x471fc0,_0x1215ca){const _0x165fc1=a210_0x402a,_0x288566=stringWidth(_0x471fc0);if(_0x288566>_0x1215ca){if(_0x1215ca<=0x1)return'…'[_0x165fc1(0x11f)](0x0,_0x1215ca);let _0x5bd19d=_0x471fc0;while(stringWidth(_0x5bd19d+'…')>_0x1215ca){_0x5bd19d=_0x5bd19d[_0x165fc1(0x11a)](0x0,-0x1);}return _0x5bd19d+'…';}if(_0x288566===_0x1215ca)return _0x471fc0;const _0x51623e=_0x1215ca-_0x288566,_0x18bca2=Math[_0x165fc1(0x111)](_0x51623e/0x2),_0x3f2cce=_0x51623e-_0x18bca2;return'\x20'[_0x165fc1(0x115)](_0x18bca2)+_0x471fc0+'\x20'[_0x165fc1(0x115)](_0x3f2cce);}export function escapeStringLiteral(_0x51d463){const _0x521262=a210_0x402a;if(!_0x51d463||_0x51d463[_0x521262(0x122)]()[_0x521262(0x124)]===0x0)throw new Error(_0x521262(0x120));const _0x46b710=_0x51d463[_0x521262(0x126)](/'/g,'\x27\x27');return'\x27'+_0x46b710+'\x27';}export function globToLike(_0x1b785d){const _0x4331bc=a210_0x402a;let _0xcbd50=_0x1b785d[_0x4331bc(0x126)](/\\/g,'\x5c\x5c')[_0x4331bc(0x126)](/%/g,'\x5c%')[_0x4331bc(0x126)](/_/g,'\x5c_');return _0xcbd50=_0xcbd50[_0x4331bc(0x126)](/\*/g,'%')['replace'](/\?/g,'_'),_0xcbd50;}export function buildLikePattern(_0x1a76db){const _0x2750b2=a210_0x402a;if(!_0x1a76db||_0x1a76db[_0x2750b2(0x122)]()[_0x2750b2(0x124)]===0x0)throw new Error(_0x2750b2(0x116));const _0x4a94ba=globToLike(_0x1a76db),_0x40ea71=_0x4a94ba[_0x2750b2(0x126)](/'/g,'\x27\x27');return'\x27'+_0x40ea71+'\x27';}export function matchGlobPattern(_0x5d30f4,_0x2d617c){const _0x5d8f56=a210_0x402a,_0x381d53=_0x2d617c[_0x5d8f56(0x126)](/[.+^${}()|[\]\\]/g,_0x5d8f56(0x119))[_0x5d8f56(0x126)](/\*/g,'.*')[_0x5d8f56(0x126)](/\?/g,'.'),_0x33739c=new RegExp('^'+_0x381d53+'$');return _0x33739c[_0x5d8f56(0x117)](_0x5d30f4);}export function getSanitizedUsername(){const _0x591cbc=a210_0x402a,_0x3dac99=process.env.USER||process.env.USERNAME||_0x591cbc(0x110);return _0x3dac99['replace'](/[^a-zA-Z0-9]/g,'')[_0x591cbc(0x11e)]();}export function generateRandomHex(){const _0xe93203=a210_0x402a,_0x5e6c70=Math[_0xe93203(0x111)](Math[_0xe93203(0x11c)]()*0xfffff);return _0x5e6c70[_0xe93203(0x112)](0x10)[_0xe93203(0x114)](0x5,'0');}export function sanitizeFileName(_0x31357c){const _0x47fcd7=a210_0x402a;return _0x31357c[_0x47fcd7(0x11e)]()['replace'](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x47fcd7(0x126)](/-+/g,'-')['replace'](/^-|-$/g,'');}
1
+ (function(_0x2530b0,_0x548258){const _0x1f12e0=a210_0xc0d7,_0x7836ee=_0x2530b0();while(!![]){try{const _0x4f4a34=-parseInt(_0x1f12e0(0xdd))/0x1*(parseInt(_0x1f12e0(0xe3))/0x2)+parseInt(_0x1f12e0(0xcf))/0x3+-parseInt(_0x1f12e0(0xd3))/0x4+-parseInt(_0x1f12e0(0xe1))/0x5*(parseInt(_0x1f12e0(0xce))/0x6)+parseInt(_0x1f12e0(0xd0))/0x7*(parseInt(_0x1f12e0(0xe5))/0x8)+-parseInt(_0x1f12e0(0xdb))/0x9*(parseInt(_0x1f12e0(0xe2))/0xa)+parseInt(_0x1f12e0(0xd5))/0xb*(parseInt(_0x1f12e0(0xd6))/0xc);if(_0x4f4a34===_0x548258)break;else _0x7836ee['push'](_0x7836ee['shift']());}catch(_0x35df66){_0x7836ee['push'](_0x7836ee['shift']());}}}(a210_0x4d4d,0x4a091));import a210_0x2e6307 from'string-width';export function stringWidth(_0x2885ce){return a210_0x2e6307(_0x2885ce);}export function padEnd(_0x4cae3e,_0x591697){const _0x2e47f5=a210_0xc0d7,_0x3ea6d1=stringWidth(_0x4cae3e);if(_0x3ea6d1>=_0x591697)return _0x4cae3e;return _0x4cae3e+'\x20'[_0x2e47f5(0xd1)](_0x591697-_0x3ea6d1);}export function padStart(_0x431162,_0x516146){const _0x18f763=stringWidth(_0x431162);if(_0x18f763>=_0x516146)return _0x431162;return'\x20'['repeat'](_0x516146-_0x18f763)+_0x431162;}export function centerAlign(_0x4609f1,_0x19079f){const _0x26f125=a210_0xc0d7,_0x5b58df=stringWidth(_0x4609f1);if(_0x5b58df>_0x19079f){if(_0x19079f<=0x1)return'…'['substring'](0x0,_0x19079f);let _0x1df686=_0x4609f1;while(stringWidth(_0x1df686+'…')>_0x19079f){_0x1df686=_0x1df686[_0x26f125(0xd4)](0x0,-0x1);}return _0x1df686+'…';}if(_0x5b58df===_0x19079f)return _0x4609f1;const _0x488c0b=_0x19079f-_0x5b58df,_0x214749=Math[_0x26f125(0xe0)](_0x488c0b/0x2),_0x37172d=_0x488c0b-_0x214749;return'\x20'['repeat'](_0x214749)+_0x4609f1+'\x20'[_0x26f125(0xd1)](_0x37172d);}function a210_0x4d4d(){const _0x486e5a=['floor','153575vqwByW','940PzZIRd','124150lvAeYX','length','16kdisPw','padStart','78EitjgV','1081656mONJGj','518889UcsQjL','repeat','trim','2136344rKocfL','slice','1254NomKmo','115764CQlWPa','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','unknown','toLowerCase','replace','23724IhTQud','random','2ZvFhFm','\x5c$&','toString'];a210_0x4d4d=function(){return _0x486e5a;};return a210_0x4d4d();}export function escapeStringLiteral(_0x5ac4ad){const _0x342aec=a210_0xc0d7;if(!_0x5ac4ad||_0x5ac4ad[_0x342aec(0xd2)]()[_0x342aec(0xe4)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2ef396=_0x5ac4ad[_0x342aec(0xda)](/'/g,'\x27\x27');return'\x27'+_0x2ef396+'\x27';}export function globToLike(_0xd41144){const _0x26e2ce=a210_0xc0d7;let _0x3aa243=_0xd41144[_0x26e2ce(0xda)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x26e2ce(0xda)](/_/g,'\x5c_');return _0x3aa243=_0x3aa243[_0x26e2ce(0xda)](/\*/g,'%')[_0x26e2ce(0xda)](/\?/g,'_'),_0x3aa243;}function a210_0xc0d7(_0x8e365a,_0x1d2f81){_0x8e365a=_0x8e365a-0xce;const _0x4d4d36=a210_0x4d4d();let _0xc0d7cb=_0x4d4d36[_0x8e365a];return _0xc0d7cb;}export function buildLikePattern(_0x23bf85){const _0x3ba70f=a210_0xc0d7;if(!_0x23bf85||_0x23bf85[_0x3ba70f(0xd2)]()[_0x3ba70f(0xe4)]===0x0)throw new Error(_0x3ba70f(0xd7));const _0x392c43=globToLike(_0x23bf85),_0x25a20f=_0x392c43['replace'](/'/g,'\x27\x27');return'\x27'+_0x25a20f+'\x27';}export function matchGlobPattern(_0x47d869,_0x32bed6){const _0x1eb847=a210_0xc0d7,_0x438ed0=_0x32bed6[_0x1eb847(0xda)](/[.+^${}()|[\]\\]/g,_0x1eb847(0xde))[_0x1eb847(0xda)](/\*/g,'.*')[_0x1eb847(0xda)](/\?/g,'.'),_0x33127d=new RegExp('^'+_0x438ed0+'$');return _0x33127d['test'](_0x47d869);}export function getSanitizedUsername(){const _0x442ff8=a210_0xc0d7,_0x118538=process.env.USER||process.env.USERNAME||_0x442ff8(0xd8);return _0x118538[_0x442ff8(0xda)](/[^a-zA-Z0-9]/g,'')[_0x442ff8(0xd9)]();}export function generateRandomHex(){const _0x652357=a210_0xc0d7,_0x5bcbb4=Math['floor'](Math[_0x652357(0xdc)]()*0xfffff);return _0x5bcbb4[_0x652357(0xdf)](0x10)[_0x652357(0xe6)](0x5,'0');}export function sanitizeFileName(_0x34c375){const _0x227b5e=a210_0xc0d7;return _0x34c375[_0x227b5e(0xd9)]()[_0x227b5e(0xda)](/[/\\:*?"<>|]/g,'-')[_0x227b5e(0xda)](/\s+/g,'-')[_0x227b5e(0xda)](/-+/g,'-')[_0x227b5e(0xda)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- function a211_0x42d8(_0xe8da71,_0x1f8e91){_0xe8da71=_0xe8da71-0x17b;const _0x5bce45=a211_0x5bce();let _0x42d835=_0x5bce45[_0xe8da71];return _0x42d835;}(function(_0x37a2a4,_0x5299d7){const _0x1654d5=a211_0x42d8,_0x44c88e=_0x37a2a4();while(!![]){try{const _0x41a30c=-parseInt(_0x1654d5(0x17d))/0x1*(-parseInt(_0x1654d5(0x18c))/0x2)+-parseInt(_0x1654d5(0x190))/0x3*(-parseInt(_0x1654d5(0x18f))/0x4)+parseInt(_0x1654d5(0x183))/0x5+-parseInt(_0x1654d5(0x195))/0x6*(-parseInt(_0x1654d5(0x192))/0x7)+-parseInt(_0x1654d5(0x184))/0x8+-parseInt(_0x1654d5(0x193))/0x9*(parseInt(_0x1654d5(0x196))/0xa)+-parseInt(_0x1654d5(0x188))/0xb*(-parseInt(_0x1654d5(0x17c))/0xc);if(_0x41a30c===_0x5299d7)break;else _0x44c88e['push'](_0x44c88e['shift']());}catch(_0x4df10d){_0x44c88e['push'](_0x44c88e['shift']());}}}(a211_0x5bce,0x26db3));function a211_0x5bce(){const _0xf50922=['91190LOmjYZ','1443176VzSQBn','trim','table','join','11PmDhya','includes','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','catalog','2JeUAlL','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','4772huecNB','66sICdek','push','1834847yLrzws','2030895HbTlkG','database','6xoplRm','10xUdvwV','split','9096rjhlQT','257844mpwrjf','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','length','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only'];a211_0x5bce=function(){return _0xf50922;};return a211_0x5bce();}function hasWildcard(_0xb5d9b5){const _0x20a483=a211_0x42d8;return _0xb5d9b5[_0x20a483(0x189)]('*')||_0xb5d9b5[_0x20a483(0x189)]('?');}export function parseTableReference(_0x58eb77){const _0x2d7c57=a211_0x42d8;if(!_0x58eb77||_0x58eb77[_0x2d7c57(0x185)]()[_0x2d7c57(0x180)]===0x0)throw new Error(_0x2d7c57(0x182));const _0x189160=_0x58eb77[_0x2d7c57(0x185)](),_0x491f9b={'original':_0x189160},_0x4f8f29=_0x189160[_0x2d7c57(0x17b)]('.');if(_0x4f8f29[_0x2d7c57(0x180)]===0x1){const _0x3942c7=_0x4f8f29[0x0];if(!_0x3942c7)throw new Error(_0x2d7c57(0x181));_0x491f9b[_0x2d7c57(0x186)]=_0x3942c7;}else{if(_0x4f8f29[_0x2d7c57(0x180)]===0x2){const [_0x51257a,_0x50b003]=_0x4f8f29;if(!_0x51257a)throw new Error(_0x2d7c57(0x18a));if(!_0x50b003)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x491f9b[_0x2d7c57(0x194)]=_0x51257a,_0x491f9b['table']=_0x50b003;}else{if(_0x4f8f29[_0x2d7c57(0x180)]===0x3){const [_0x7b2c09,_0x4dce96,_0x4484e0]=_0x4f8f29;if(!_0x7b2c09||!_0x4dce96||!_0x4484e0)throw new Error(_0x2d7c57(0x18d));_0x491f9b[_0x2d7c57(0x18b)]=_0x7b2c09,_0x491f9b[_0x2d7c57(0x194)]=_0x4dce96,_0x491f9b[_0x2d7c57(0x186)]=_0x4484e0;}else throw new Error(_0x2d7c57(0x18e));}}return _0x491f9b;}export function formatTableReference(_0x450ace){const _0x56b524=a211_0x42d8,_0x2934f3=[];return _0x450ace[_0x56b524(0x18b)]&&_0x2934f3[_0x56b524(0x191)](_0x450ace[_0x56b524(0x18b)]),_0x450ace[_0x56b524(0x194)]&&_0x2934f3[_0x56b524(0x191)](_0x450ace[_0x56b524(0x194)]),_0x450ace[_0x56b524(0x186)]&&_0x2934f3[_0x56b524(0x191)](_0x450ace['table']),_0x2934f3[_0x56b524(0x187)]('.');}export function validateTableListReference(_0x21bc32){return undefined;}export function validateTableDescribeReference(_0x52678a){const _0x50b318=a211_0x42d8;if(!_0x52678a[_0x50b318(0x186)])return _0x50b318(0x17f);if(_0x52678a[_0x50b318(0x194)]&&hasWildcard(_0x52678a[_0x50b318(0x194)]))return _0x50b318(0x17e);if(hasWildcard(_0x52678a['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
1
+ function a211_0x178a(_0x4aa56c,_0x3f6750){_0x4aa56c=_0x4aa56c-0x1b6;const _0x547343=a211_0x5473();let _0x178ad5=_0x547343[_0x4aa56c];return _0x178ad5;}(function(_0x2145d1,_0x4d98ef){const _0x17f117=a211_0x178a,_0x4e98d2=_0x2145d1();while(!![]){try{const _0x23ba14=-parseInt(_0x17f117(0x1c5))/0x1+parseInt(_0x17f117(0x1bf))/0x2+-parseInt(_0x17f117(0x1c8))/0x3+parseInt(_0x17f117(0x1c6))/0x4*(-parseInt(_0x17f117(0x1cc))/0x5)+parseInt(_0x17f117(0x1cb))/0x6+parseInt(_0x17f117(0x1cd))/0x7*(-parseInt(_0x17f117(0x1c7))/0x8)+parseInt(_0x17f117(0x1bc))/0x9;if(_0x23ba14===_0x4d98ef)break;else _0x4e98d2['push'](_0x4e98d2['shift']());}catch(_0x4063ba){_0x4e98d2['push'](_0x4e98d2['shift']());}}}(a211_0x5473,0x6bc48));function hasWildcard(_0x4bc89f){const _0x2e3bb3=a211_0x178a;return _0x4bc89f[_0x2e3bb3(0x1b8)]('*')||_0x4bc89f[_0x2e3bb3(0x1b8)]('?');}export function parseTableReference(_0x20fa0c){const _0x282e3b=a211_0x178a;if(!_0x20fa0c||_0x20fa0c[_0x282e3b(0x1b9)]()[_0x282e3b(0x1c1)]===0x0)throw new Error(_0x282e3b(0x1b7));const _0x5dee15=_0x20fa0c['trim'](),_0x549f00={'original':_0x5dee15},_0x3473a1=_0x5dee15[_0x282e3b(0x1bd)]('.');if(_0x3473a1[_0x282e3b(0x1c1)]===0x1){const _0x326648=_0x3473a1[0x0];if(!_0x326648)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x549f00[_0x282e3b(0x1c0)]=_0x326648;}else{if(_0x3473a1[_0x282e3b(0x1c1)]===0x2){const [_0x4316d0,_0x126587]=_0x3473a1;if(!_0x4316d0)throw new Error(_0x282e3b(0x1ba));if(!_0x126587)throw new Error(_0x282e3b(0x1c4));_0x549f00[_0x282e3b(0x1c2)]=_0x4316d0,_0x549f00[_0x282e3b(0x1c0)]=_0x126587;}else{if(_0x3473a1['length']===0x3){const [_0x4f544e,_0x53db22,_0x31f291]=_0x3473a1;if(!_0x4f544e||!_0x53db22||!_0x31f291)throw new Error(_0x282e3b(0x1be));_0x549f00[_0x282e3b(0x1c3)]=_0x4f544e,_0x549f00[_0x282e3b(0x1c2)]=_0x53db22,_0x549f00[_0x282e3b(0x1c0)]=_0x31f291;}else throw new Error(_0x282e3b(0x1bb));}}return _0x549f00;}function a211_0x5473(){const _0x166539=['Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','166860TFVreB','2456EIFgBb','1528rWJhbu','933105sUQOkc','join','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','2377182jRcpbr','4835GUZplp','12026lcwhUt','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','includes','trim','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','10830348IRGTLY','split','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','483236jrbVMG','table','length','database','catalog'];a211_0x5473=function(){return _0x166539;};return a211_0x5473();}export function formatTableReference(_0x11e7f8){const _0x3e00ab=a211_0x178a,_0x547136=[];return _0x11e7f8['catalog']&&_0x547136['push'](_0x11e7f8[_0x3e00ab(0x1c3)]),_0x11e7f8[_0x3e00ab(0x1c2)]&&_0x547136['push'](_0x11e7f8[_0x3e00ab(0x1c2)]),_0x11e7f8[_0x3e00ab(0x1c0)]&&_0x547136['push'](_0x11e7f8[_0x3e00ab(0x1c0)]),_0x547136[_0x3e00ab(0x1c9)]('.');}export function validateTableListReference(_0x3f4608){return undefined;}export function validateTableDescribeReference(_0x55e833){const _0x256d44=a211_0x178a;if(!_0x55e833[_0x256d44(0x1c0)])return _0x256d44(0x1ca);if(_0x55e833['database']&&hasWildcard(_0x55e833[_0x256d44(0x1c2)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x55e833['table']))return _0x256d44(0x1b6);return undefined;}
@@ -1 +1 @@
1
- function a212_0x2048(){const _0x503a9e=['warn','info','trace','6528OaviNz','logs','error','6000318HJEjZH','addHandler','158254gJyqBP','2499300vGPMAU','isInitialized','750170rcnpnL','logFileName','init','getLogPath','fileOnly','7UlrveC','close','shutdown','logLevel','958896TUFHNQ','1515ILtlmX','tdx.log','push','5770331iaqHTw','INFO','logger','logDir','fileHandler','consoleHandler'];a212_0x2048=function(){return _0x503a9e;};return a212_0x2048();}const a212_0x54c8f7=a212_0x3a10;(function(_0x584f5b,_0x274bd2){const _0x3ad9fe=a212_0x3a10,_0x2743e8=_0x584f5b();while(!![]){try{const _0x52efc1=parseInt(_0x3ad9fe(0x122))/0x1*(-parseInt(_0x3ad9fe(0x138))/0x2)+parseInt(_0x3ad9fe(0x127))/0x3*(parseInt(_0x3ad9fe(0x133))/0x4)+-parseInt(_0x3ad9fe(0x13b))/0x5+parseInt(_0x3ad9fe(0x139))/0x6+parseInt(_0x3ad9fe(0x12a))/0x7+-parseInt(_0x3ad9fe(0x126))/0x8+-parseInt(_0x3ad9fe(0x136))/0x9;if(_0x52efc1===_0x274bd2)break;else _0x2743e8['push'](_0x2743e8['shift']());}catch(_0x38c002){_0x2743e8['push'](_0x2743e8['shift']());}}}(a212_0x2048,0x8c45c));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';function a212_0x3a10(_0x5d232c,_0x4f7dff){_0x5d232c=_0x5d232c-0x122;const _0x2048ac=a212_0x2048();let _0x3a104c=_0x2048ac[_0x5d232c];return _0x3a104c;}export class TDXLogger{['logLevel'];[a212_0x54c8f7(0x13f)];[a212_0x54c8f7(0x12d)];[a212_0x54c8f7(0x13c)];[a212_0x54c8f7(0x12c)];[a212_0x54c8f7(0x12e)]=null;['consoleHandler']=null;constructor(_0x55cf0e=LogLevel[a212_0x54c8f7(0x12b)],_0x2e64b8=![],_0x2fd1cc,_0x218f3e=a212_0x54c8f7(0x128)){const _0x3ae422=a212_0x54c8f7;this[_0x3ae422(0x125)]=_0x55cf0e,this['fileOnly']=_0x2e64b8,this['logDir']=_0x2fd1cc||join(getGlobalCacheDir(),_0x3ae422(0x134)),this[_0x3ae422(0x13c)]=_0x218f3e,this[_0x3ae422(0x12c)]=Logger['of']('tdx');}async[a212_0x54c8f7(0x13d)](){const _0x2fd5d7=a212_0x54c8f7,_0x299261=join(this['logDir'],this[_0x2fd5d7(0x13c)]);if(Logger[_0x2fd5d7(0x13a)]()){!this[_0x2fd5d7(0x13f)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x2fd5d7(0x12b)],'colors':!![]}),Logger[_0x2fd5d7(0x137)](this[_0x2fd5d7(0x12f)]));return;}this['fileHandler']=new FileHandler({'filePath':_0x299261});const _0x385077=[this[_0x2fd5d7(0x12e)]];!this[_0x2fd5d7(0x13f)]&&(this[_0x2fd5d7(0x12f)]=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),_0x385077[_0x2fd5d7(0x129)](this[_0x2fd5d7(0x12f)])),await Logger[_0x2fd5d7(0x13d)]({'defaultLevel':this['logLevel'],'handlers':_0x385077,'formatter':new DefaultLogFormatter({'colors':!![]})});}['debug'](..._0x142f39){const _0x587647=a212_0x54c8f7;this[_0x587647(0x12c)]['debug'](..._0x142f39);}[a212_0x54c8f7(0x132)](..._0x5a80a1){const _0x5ad6a0=a212_0x54c8f7;this[_0x5ad6a0(0x12c)][_0x5ad6a0(0x132)](..._0x5a80a1);}[a212_0x54c8f7(0x131)](..._0x2166a7){const _0x5c1b8d=a212_0x54c8f7;this[_0x5c1b8d(0x12c)][_0x5c1b8d(0x131)](..._0x2166a7);}['warn'](..._0x53a6ea){const _0x29ba78=a212_0x54c8f7;this[_0x29ba78(0x12c)][_0x29ba78(0x130)](..._0x53a6ea);}[a212_0x54c8f7(0x135)](..._0x47422b){const _0x162ac5=a212_0x54c8f7;this[_0x162ac5(0x12c)][_0x162ac5(0x135)](..._0x47422b);}async[a212_0x54c8f7(0x123)](){const _0x3c1fdb=a212_0x54c8f7;this[_0x3c1fdb(0x12c)][_0x3c1fdb(0x131)]('Session\x20ended'),await Logger[_0x3c1fdb(0x124)]();}[a212_0x54c8f7(0x13e)](){const _0x429cb8=a212_0x54c8f7;return join(this[_0x429cb8(0x12d)],this[_0x429cb8(0x13c)]);}}
1
+ const a212_0x3fa210=a212_0x4d08;(function(_0x5784c7,_0x28ff93){const _0x170dbf=a212_0x4d08,_0x18190c=_0x5784c7();while(!![]){try{const _0x56e1ca=-parseInt(_0x170dbf(0x1ba))/0x1+-parseInt(_0x170dbf(0x1ce))/0x2*(parseInt(_0x170dbf(0x1cd))/0x3)+parseInt(_0x170dbf(0x1c0))/0x4+parseInt(_0x170dbf(0x1d1))/0x5*(-parseInt(_0x170dbf(0x1d5))/0x6)+parseInt(_0x170dbf(0x1d2))/0x7+-parseInt(_0x170dbf(0x1cf))/0x8*(parseInt(_0x170dbf(0x1be))/0x9)+parseInt(_0x170dbf(0x1c8))/0xa;if(_0x56e1ca===_0x28ff93)break;else _0x18190c['push'](_0x18190c['shift']());}catch(_0x446533){_0x18190c['push'](_0x18190c['shift']());}}}(a212_0x3f04,0x6ecfc));function a212_0x4d08(_0x15fff6,_0x470354){_0x15fff6=_0x15fff6-0x1b8;const _0x3f0414=a212_0x3f04();let _0x4d0827=_0x3f0414[_0x15fff6];return _0x4d0827;}import{join}from'path';function a212_0x3f04(){const _0x3aab1d=['close','push','479185NcAdbK','fileOnly','Session\x20ended','isInitialized','261jFCnYG','fileHandler','3426176ClEjPx','logDir','warn','INFO','logger','consoleHandler','init','trace','14297070mWaqRn','tdx','logLevel','debug','addHandler','3867MSsenS','1126NxFPBN','135656eODXAl','tdx.log','2111165UhdRpC','4961208BCkRUJ','shutdown','logFileName','12JNOZeU','getLogPath','info'];a212_0x3f04=function(){return _0x3aab1d;};return a212_0x3f04();}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{[a212_0x3fa210(0x1ca)];[a212_0x3fa210(0x1bb)];[a212_0x3fa210(0x1c1)];[a212_0x3fa210(0x1d4)];[a212_0x3fa210(0x1c4)];[a212_0x3fa210(0x1bf)]=null;[a212_0x3fa210(0x1c5)]=null;constructor(_0x5a93af=LogLevel[a212_0x3fa210(0x1c3)],_0x4aa5f0=![],_0x351636,_0x3eb4ad=a212_0x3fa210(0x1d0)){const _0x16ce3c=a212_0x3fa210;this[_0x16ce3c(0x1ca)]=_0x5a93af,this[_0x16ce3c(0x1bb)]=_0x4aa5f0,this['logDir']=_0x351636||join(getGlobalCacheDir(),'logs'),this[_0x16ce3c(0x1d4)]=_0x3eb4ad,this[_0x16ce3c(0x1c4)]=Logger['of'](_0x16ce3c(0x1c9));}async[a212_0x3fa210(0x1c6)](){const _0x3cd991=a212_0x3fa210,_0x547a9c=join(this[_0x3cd991(0x1c1)],this[_0x3cd991(0x1d4)]);if(Logger[_0x3cd991(0x1bd)]()){!this[_0x3cd991(0x1bb)]&&(this[_0x3cd991(0x1c5)]=new ConsoleHandler({'minLevel':LogLevel[_0x3cd991(0x1c3)],'colors':!![]}),Logger[_0x3cd991(0x1cc)](this['consoleHandler']));return;}this[_0x3cd991(0x1bf)]=new FileHandler({'filePath':_0x547a9c});const _0x1307f1=[this[_0x3cd991(0x1bf)]];!this[_0x3cd991(0x1bb)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x3cd991(0x1c3)],'colors':!![]}),_0x1307f1[_0x3cd991(0x1b9)](this['consoleHandler'])),await Logger[_0x3cd991(0x1c6)]({'defaultLevel':this['logLevel'],'handlers':_0x1307f1,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x3fa210(0x1cb)](..._0x1925e6){const _0x415880=a212_0x3fa210;this[_0x415880(0x1c4)]['debug'](..._0x1925e6);}[a212_0x3fa210(0x1c7)](..._0xe0e2dd){const _0x187808=a212_0x3fa210;this['logger'][_0x187808(0x1c7)](..._0xe0e2dd);}[a212_0x3fa210(0x1d7)](..._0x346248){const _0x22c337=a212_0x3fa210;this[_0x22c337(0x1c4)][_0x22c337(0x1d7)](..._0x346248);}[a212_0x3fa210(0x1c2)](..._0x483a5f){const _0x3f3532=a212_0x3fa210;this[_0x3f3532(0x1c4)][_0x3f3532(0x1c2)](..._0x483a5f);}['error'](..._0x1f2e86){const _0x1b6599=a212_0x3fa210;this[_0x1b6599(0x1c4)]['error'](..._0x1f2e86);}async[a212_0x3fa210(0x1b8)](){const _0x348e5f=a212_0x3fa210;this['logger'][_0x348e5f(0x1d7)](_0x348e5f(0x1bc)),await Logger[_0x348e5f(0x1d3)]();}[a212_0x3fa210(0x1d6)](){return join(this['logDir'],this['logFileName']);}}
@@ -1 +1 @@
1
- function a213_0x45fa(_0x44e3c9,_0x398e14){_0x44e3c9=_0x44e3c9-0xd6;const _0x18d92c=a213_0x18d9();let _0x45fa0d=_0x18d92c[_0x44e3c9];return _0x45fa0d;}const a213_0x4969bf=a213_0x45fa;(function(_0x130bf7,_0x16eadc){const _0x35deb6=a213_0x45fa,_0x1d6956=_0x130bf7();while(!![]){try{const _0x1c85a2=parseInt(_0x35deb6(0xf8))/0x1*(-parseInt(_0x35deb6(0xda))/0x2)+-parseInt(_0x35deb6(0xff))/0x3*(-parseInt(_0x35deb6(0xe9))/0x4)+parseInt(_0x35deb6(0xf3))/0x5*(parseInt(_0x35deb6(0xd6))/0x6)+-parseInt(_0x35deb6(0xe8))/0x7*(-parseInt(_0x35deb6(0xea))/0x8)+-parseInt(_0x35deb6(0xe4))/0x9*(parseInt(_0x35deb6(0xf1))/0xa)+parseInt(_0x35deb6(0xf9))/0xb+-parseInt(_0x35deb6(0xf4))/0xc;if(_0x1c85a2===_0x16eadc)break;else _0x1d6956['push'](_0x1d6956['shift']());}catch(_0x122074){_0x1d6956['push'](_0x1d6956['shift']());}}}(a213_0x18d9,0x28f6e));import{get}from'https';import{gt,valid}from'semver';import a213_0x415bbb from'chalk';function a213_0x18d9(){const _0x164e4f=['last_version_check_next','isTTY','56712eCfexH','24CVjxns','currentVersion','stderr','\x0aUpdate\x20available:\x20','56734nEroGS','dim','gray','getTime','unref','HTTP\x20','last_version_check','next','utils/version-check','latestVersion','36EDkNVv','https://registry.npmjs.org/@treasuredata/tdx','latest','end','7FyScZW','64MgtJIn','463800QyivNj','lastCheck','write','statusCode','stable','tdx\x20upgrade\x20--next','Invalid\x20version\x20format','208670TJlPPV','tdx\x20upgrade','135000qlBwEk','2179008dlwbsi','data','parse','Run:','8XmCwMK','2104729IBYPru','toISOString','Update\x20available:','version'];a213_0x18d9=function(){return _0x164e4f;};return a213_0x18d9();}import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a213_0x4969bf(0xe5),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a213_0x4969bf(0xe0),a213_0x4969bf(0xe2)),nextVersionCache=createGlobalCache(a213_0x4969bf(0xfd),'utils/version-check-next');function getCacheForChannel(_0x43bcca){const _0x26b998=a213_0x4969bf;return _0x43bcca===_0x26b998(0xe1)?nextVersionCache:stableVersionCache;}function readCache(_0x3534c3){return getCacheForChannel(_0x3534c3)['read']()??null;}function writeCache(_0x285b03,_0x574011){const _0x4b88c5=a213_0x4969bf;try{getCacheForChannel(_0x574011)[_0x4b88c5(0xec)]({'lastCheck':new Date()[_0x4b88c5(0xfa)](),'latestVersion':_0x285b03});}catch{}}function isCacheValid(_0x2f05e5){const _0x3b6dce=a213_0x4969bf;if(!_0x2f05e5)return![];const _0x5ed032=new Date(_0x2f05e5[_0x3b6dce(0xeb)])[_0x3b6dce(0xdd)](),_0x735cf1=Date['now']();return _0x735cf1-_0x5ed032<CACHE_DURATION_MS;}export function fetchLatestVersion(_0xf86cc6=a213_0x4969bf(0xee)){const _0x4e3a8a=a213_0x4969bf,_0x4c9b05=_0xf86cc6===_0x4e3a8a(0xe1)?_0x4e3a8a(0xe1):_0x4e3a8a(0xe6),_0x1d214c=NPM_REGISTRY_BASE+'/'+_0x4c9b05;return new Promise((_0x4a34d1,_0x1dc9d8)=>{const _0x4f55db=_0x4e3a8a,_0x17b77c=get(_0x1d214c,{'timeout':TIMEOUT_MS},_0x3cef95=>{const _0x24871f=a213_0x45fa;if(_0x3cef95[_0x24871f(0xed)]!==0xc8){clearTimeout(_0x4d3d25),_0x1dc9d8(new Error(_0x24871f(0xdf)+_0x3cef95[_0x24871f(0xed)]));return;}let _0x529657='';_0x3cef95['on'](_0x24871f(0xf5),_0x5aac18=>{_0x529657+=_0x5aac18;}),_0x3cef95['on'](_0x24871f(0xe7),()=>{const _0x294596=_0x24871f;clearTimeout(_0x4d3d25);try{const _0x44de02=JSON[_0x294596(0xf6)](_0x529657);if(!valid(_0x44de02[_0x294596(0xfc)])){_0x1dc9d8(new Error(_0x294596(0xf0)));return;}_0x4a34d1(_0x44de02[_0x294596(0xfc)]);}catch(_0x17235d){_0x1dc9d8(_0x17235d);}});})['on']('error',_0x2d6120=>{clearTimeout(_0x4d3d25),_0x1dc9d8(_0x2d6120);});_0x17b77c['on']('socket',_0x17e6e1=>{_0x17e6e1['unref']();});const _0x4d3d25=setTimeout(()=>{_0x17b77c['destroy'](),_0x1dc9d8(new Error('Request\x20timeout'));},TIMEOUT_MS);_0x4d3d25[_0x4f55db(0xde)]();});}export async function checkForUpdate(_0x2ba39d,_0x3c917a=a213_0x4969bf(0xee)){const _0x403ec3=a213_0x4969bf;try{const _0xf2e5c8=readCache(_0x3c917a);if(isCacheValid(_0xf2e5c8)){const _0x2dc25e=gt(_0xf2e5c8[_0x403ec3(0xe3)],_0x2ba39d);return{'updateAvailable':_0x2dc25e,'currentVersion':_0x2ba39d,'latestVersion':_0xf2e5c8['latestVersion'],'channel':_0x3c917a};}const _0x3538c7=await fetchLatestVersion(_0x3c917a);writeCache(_0x3538c7,_0x3c917a);const _0x4209c9=gt(_0x3538c7,_0x2ba39d);return{'updateAvailable':_0x4209c9,'currentVersion':_0x2ba39d,'latestVersion':_0x3538c7,'channel':_0x3c917a};}catch{return null;}}export function displayUpdateNotification(_0x4f5032){const _0x1a9ca1=a213_0x4969bf;if(!_0x4f5032['updateAvailable'])return;const _0x579236=_0x4f5032['channel']===_0x1a9ca1(0xe1)?_0x1a9ca1(0xef):_0x1a9ca1(0xf2),_0x22aa07=process[_0x1a9ca1(0xd8)][_0x1a9ca1(0xfe)]&&!process.env.NO_COLOR,_0x2f76ce=_0x22aa07?a213_0x415bbb[_0x1a9ca1(0xdc)]('→'):'→',_0x20876a=_0x22aa07?a213_0x415bbb['dim'](_0x4f5032[_0x1a9ca1(0xd7)]):_0x4f5032['currentVersion'],_0x23a6c8=_0x22aa07?a213_0x415bbb['green'](_0x4f5032['latestVersion']):_0x4f5032['latestVersion'],_0x39a3d6=_0x22aa07?a213_0x415bbb['cyan'](_0x579236):_0x579236,_0x3e3c6d=_0x22aa07?'\x0a'+a213_0x415bbb['yellow'](_0x1a9ca1(0xfb))+'\x20'+_0x20876a+'\x20'+_0x2f76ce+'\x20'+_0x23a6c8+'\x0a'+a213_0x415bbb[_0x1a9ca1(0xdb)](_0x1a9ca1(0xf7))+'\x20'+_0x39a3d6+'\x0a':_0x1a9ca1(0xd9)+_0x20876a+'\x20'+_0x2f76ce+'\x20'+_0x23a6c8+'\x0aRun:\x20'+_0x39a3d6+'\x0a';process[_0x1a9ca1(0xd8)]['write'](_0x3e3c6d);}
1
+ const a213_0x170c05=a213_0x30dd;(function(_0x343f9a,_0xfc8666){const _0x45b2b6=a213_0x30dd,_0x527551=_0x343f9a();while(!![]){try{const _0x12483b=parseInt(_0x45b2b6(0xe7))/0x1*(-parseInt(_0x45b2b6(0xf9))/0x2)+parseInt(_0x45b2b6(0x10e))/0x3+-parseInt(_0x45b2b6(0xe2))/0x4+parseInt(_0x45b2b6(0xfc))/0x5*(parseInt(_0x45b2b6(0x106))/0x6)+-parseInt(_0x45b2b6(0xe4))/0x7+parseInt(_0x45b2b6(0xe1))/0x8+parseInt(_0x45b2b6(0x10c))/0x9*(parseInt(_0x45b2b6(0xee))/0xa);if(_0x12483b===_0xfc8666)break;else _0x527551['push'](_0x527551['shift']());}catch(_0x16011f){_0x527551['push'](_0x527551['shift']());}}}(a213_0x3217,0xb83de));import{get}from'https';import{gt,valid}from'semver';import a213_0x4814c8 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE='https://registry.npmjs.org/@treasuredata/tdx',TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a213_0x170c05(0x107),'utils/version-check'),nextVersionCache=createGlobalCache(a213_0x170c05(0x10b),a213_0x170c05(0xf6));function getCacheForChannel(_0x873e43){const _0x30d168=a213_0x170c05;return _0x873e43===_0x30d168(0xfa)?nextVersionCache:stableVersionCache;}function readCache(_0x51721b){const _0x5dfb51=a213_0x170c05;return getCacheForChannel(_0x51721b)[_0x5dfb51(0xf7)]()??null;}function a213_0x3217(){const _0x1e9bf7=['end','464358xqrACw','last_version_check','isTTY','Run:','gray','last_version_check_next','34794mhPwHc','\x0aRun:\x20','3629919gpbxEy','4439640IzoSUt','5513352WjMOpU','lastCheck','8232630wySgLT','cyan','error','26nCcCoS','parse','getTime','unref','currentVersion','stable','HTTP\x20','5060drhPrD','Request\x20timeout','version','latestVersion','tdx\x20upgrade\x20--next','write','Update\x20available:','socket','utils/version-check-next','read','stderr','79322zHrfUY','next','now','40ofLQvj','dim','data','channel','yellow','\x0aUpdate\x20available:\x20','statusCode','destroy','Invalid\x20version\x20format'];a213_0x3217=function(){return _0x1e9bf7;};return a213_0x3217();}function writeCache(_0x4db1dc,_0x472a08){const _0x49e39=a213_0x170c05;try{getCacheForChannel(_0x472a08)[_0x49e39(0xf3)]({'lastCheck':new Date()['toISOString'](),'latestVersion':_0x4db1dc});}catch{}}function isCacheValid(_0xb67092){const _0x1dc637=a213_0x170c05;if(!_0xb67092)return![];const _0x38789e=new Date(_0xb67092[_0x1dc637(0xe3)])[_0x1dc637(0xe9)](),_0x1831d1=Date[_0x1dc637(0xfb)]();return _0x1831d1-_0x38789e<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x45459d=a213_0x170c05(0xec)){const _0x1c61ab=a213_0x170c05,_0xbafed=_0x45459d==='next'?_0x1c61ab(0xfa):'latest',_0x1a09d2=NPM_REGISTRY_BASE+'/'+_0xbafed;return new Promise((_0xb4ab90,_0x578f3c)=>{const _0x20f900=_0x1c61ab,_0x52550b=get(_0x1a09d2,{'timeout':TIMEOUT_MS},_0xca9bd=>{const _0x1d288e=a213_0x30dd;if(_0xca9bd[_0x1d288e(0x102)]!==0xc8){clearTimeout(_0x35b811),_0x578f3c(new Error(_0x1d288e(0xed)+_0xca9bd[_0x1d288e(0x102)]));return;}let _0x324163='';_0xca9bd['on'](_0x1d288e(0xfe),_0x6f6bda=>{_0x324163+=_0x6f6bda;}),_0xca9bd['on'](_0x1d288e(0x105),()=>{const _0x25270f=_0x1d288e;clearTimeout(_0x35b811);try{const _0x128219=JSON[_0x25270f(0xe8)](_0x324163);if(!valid(_0x128219[_0x25270f(0xf0)])){_0x578f3c(new Error(_0x25270f(0x104)));return;}_0xb4ab90(_0x128219['version']);}catch(_0x4e3095){_0x578f3c(_0x4e3095);}});})['on'](_0x20f900(0xe6),_0x1c164e=>{clearTimeout(_0x35b811),_0x578f3c(_0x1c164e);});_0x52550b['on'](_0x20f900(0xf5),_0x33703d=>{const _0x4e0035=_0x20f900;_0x33703d[_0x4e0035(0xea)]();});const _0x35b811=setTimeout(()=>{const _0x57d364=_0x20f900;_0x52550b[_0x57d364(0x103)](),_0x578f3c(new Error(_0x57d364(0xef)));},TIMEOUT_MS);_0x35b811[_0x20f900(0xea)]();});}export async function checkForUpdate(_0x2524df,_0x3465f1=a213_0x170c05(0xec)){const _0x32e519=a213_0x170c05;try{const _0x3572d8=readCache(_0x3465f1);if(isCacheValid(_0x3572d8)){const _0x49fd4e=gt(_0x3572d8[_0x32e519(0xf1)],_0x2524df);return{'updateAvailable':_0x49fd4e,'currentVersion':_0x2524df,'latestVersion':_0x3572d8['latestVersion'],'channel':_0x3465f1};}const _0x195f80=await fetchLatestVersion(_0x3465f1);writeCache(_0x195f80,_0x3465f1);const _0x27a691=gt(_0x195f80,_0x2524df);return{'updateAvailable':_0x27a691,'currentVersion':_0x2524df,'latestVersion':_0x195f80,'channel':_0x3465f1};}catch{return null;}}function a213_0x30dd(_0x3edc7f,_0x46ad5b){_0x3edc7f=_0x3edc7f-0xe1;const _0x32179c=a213_0x3217();let _0x30dd40=_0x32179c[_0x3edc7f];return _0x30dd40;}export function displayUpdateNotification(_0x3b6b60){const _0x6a1442=a213_0x170c05;if(!_0x3b6b60['updateAvailable'])return;const _0x4fb458=_0x3b6b60[_0x6a1442(0xff)]===_0x6a1442(0xfa)?_0x6a1442(0xf2):'tdx\x20upgrade',_0x2d7157=process[_0x6a1442(0xf8)][_0x6a1442(0x108)]&&!process.env.NO_COLOR,_0xab354e=_0x2d7157?a213_0x4814c8[_0x6a1442(0x10a)]('→'):'→',_0x222425=_0x2d7157?a213_0x4814c8[_0x6a1442(0xfd)](_0x3b6b60[_0x6a1442(0xeb)]):_0x3b6b60[_0x6a1442(0xeb)],_0x322227=_0x2d7157?a213_0x4814c8['green'](_0x3b6b60[_0x6a1442(0xf1)]):_0x3b6b60[_0x6a1442(0xf1)],_0x3f89c2=_0x2d7157?a213_0x4814c8[_0x6a1442(0xe5)](_0x4fb458):_0x4fb458,_0x655fcf=_0x2d7157?'\x0a'+a213_0x4814c8[_0x6a1442(0x100)](_0x6a1442(0xf4))+'\x20'+_0x222425+'\x20'+_0xab354e+'\x20'+_0x322227+'\x0a'+a213_0x4814c8[_0x6a1442(0xfd)](_0x6a1442(0x109))+'\x20'+_0x3f89c2+'\x0a':_0x6a1442(0x101)+_0x222425+'\x20'+_0xab354e+'\x20'+_0x322227+_0x6a1442(0x10d)+_0x3f89c2+'\x0a';process['stderr'][_0x6a1442(0xf3)](_0x655fcf);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.9",
3
+ "version": "2026.3.10",
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": {