@treasuredata/tdx 0.22.0 → 0.23.1

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 (174) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-command.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/journey-command.js +1 -1
  23. package/dist/commands/journey-validate-command.js +1 -1
  24. package/dist/commands/llm-command.js +1 -1
  25. package/dist/commands/mcp-command.js +1 -1
  26. package/dist/commands/parent-segment-command.d.ts +11 -2
  27. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  28. package/dist/commands/parent-segment-command.js +1 -1
  29. package/dist/commands/parent-segment-command.js.map +1 -1
  30. package/dist/commands/profile-command.js +1 -1
  31. package/dist/commands/profiles-command.js +1 -1
  32. package/dist/commands/query-command.js +1 -1
  33. package/dist/commands/schedule-command.js +1 -1
  34. package/dist/commands/segment-command.js +1 -1
  35. package/dist/commands/segment-create-command.js +1 -1
  36. package/dist/commands/segment-fields-command.js +1 -1
  37. package/dist/commands/segment-pull-command.js +1 -1
  38. package/dist/commands/segment-push-command.js +1 -1
  39. package/dist/commands/segment-update-command.js +1 -1
  40. package/dist/commands/segment-use-command.js +1 -1
  41. package/dist/commands/segment-validate-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/status-command.js +1 -1
  45. package/dist/commands/tables.js +1 -1
  46. package/dist/commands/unset-command.js +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/user-command.js +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/command-output.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/connection-cache.js +1 -1
  54. package/dist/core/constants.js +1 -1
  55. package/dist/core/credential-cache.js +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/keychain.js +1 -1
  58. package/dist/core/profile.d.ts +1 -0
  59. package/dist/core/profile.d.ts.map +1 -1
  60. package/dist/core/profile.js +1 -1
  61. package/dist/core/profile.js.map +1 -1
  62. package/dist/core/project-config.js +1 -1
  63. package/dist/core/session.js +1 -1
  64. package/dist/core/user-cache.js +1 -1
  65. package/dist/core/version.js +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/mcp/server.js +1 -1
  68. package/dist/mcp/tools/index.js +1 -1
  69. package/dist/mcp/tools/tdx-run.js +1 -1
  70. package/dist/mcp/tools/tdx-search.js +1 -1
  71. package/dist/mcp/utils.js +1 -1
  72. package/dist/proxy/claude-usage-tracker.js +1 -1
  73. package/dist/proxy/passthrough-server.js +1 -1
  74. package/dist/proxy/sse-usage-parser.js +1 -1
  75. package/dist/sdk/agent/agent-config.js +1 -1
  76. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  77. package/dist/sdk/agent/agent-yaml.js +1 -1
  78. package/dist/sdk/agent/test/evaluator.js +1 -1
  79. package/dist/sdk/agent/test/executor.js +1 -1
  80. package/dist/sdk/agent/test/index.js +1 -1
  81. package/dist/sdk/agent/test/output.js +1 -1
  82. package/dist/sdk/agent/test/parser.js +1 -1
  83. package/dist/sdk/api.js +1 -1
  84. package/dist/sdk/client/cdp-api-client.js +1 -1
  85. package/dist/sdk/client/endpoints.js +1 -1
  86. package/dist/sdk/client/engage-api-client.js +1 -1
  87. package/dist/sdk/client/http-client.js +1 -1
  88. package/dist/sdk/client/llm-api-client.js +1 -1
  89. package/dist/sdk/client/rate-limiter.js +1 -1
  90. package/dist/sdk/client/td-api-client.js +1 -1
  91. package/dist/sdk/client/trino-api-client.js +1 -1
  92. package/dist/sdk/client/workflow-client.js +1 -1
  93. package/dist/sdk/connection-validator.js +1 -1
  94. package/dist/sdk/connection.js +1 -1
  95. package/dist/sdk/engage.js +1 -1
  96. package/dist/sdk/errors.js +1 -1
  97. package/dist/sdk/index.js +1 -1
  98. package/dist/sdk/io/index.js +1 -1
  99. package/dist/sdk/io/node-filesystem.js +1 -1
  100. package/dist/sdk/job.js +1 -1
  101. package/dist/sdk/journey.js +1 -1
  102. package/dist/sdk/llm/chat-cache.js +1 -1
  103. package/dist/sdk/llm/index.js +1 -1
  104. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  105. package/dist/sdk/llm/model-factors.js +1 -1
  106. package/dist/sdk/query/index.js +1 -1
  107. package/dist/sdk/query/sql-parser.js +1 -1
  108. package/dist/sdk/schedule.js +1 -1
  109. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  110. package/dist/sdk/segment/fields-display.js +1 -1
  111. package/dist/sdk/segment/file-discovery.js +1 -1
  112. package/dist/sdk/segment/journey-utils.js +1 -1
  113. package/dist/sdk/segment/journey-yaml.js +1 -1
  114. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  115. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  116. package/dist/sdk/segment/pull-workflow.js +1 -1
  117. package/dist/sdk/segment/push-workflow.js +1 -1
  118. package/dist/sdk/segment/resolution-context.js +1 -1
  119. package/dist/sdk/segment/segment-path-parser.js +1 -1
  120. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  121. package/dist/sdk/segment/target-resolution.js +1 -1
  122. package/dist/sdk/segment/tdx-config.js +1 -1
  123. package/dist/sdk/segment/validate-files.js +1 -1
  124. package/dist/sdk/segment/yaml-validator.js +1 -1
  125. package/dist/sdk/segment.d.ts +24 -0
  126. package/dist/sdk/segment.d.ts.map +1 -1
  127. package/dist/sdk/segment.js +1 -1
  128. package/dist/sdk/segment.js.map +1 -1
  129. package/dist/sdk/types/index.js +1 -1
  130. package/dist/sdk/types/progress.js +1 -1
  131. package/dist/sdk/user.js +1 -1
  132. package/dist/sdk/util/format-detector.js +1 -1
  133. package/dist/sdk/util/formatters.js +1 -1
  134. package/dist/sdk/util/index.js +1 -1
  135. package/dist/sdk/util/tree-formatter.js +1 -1
  136. package/dist/sdk/workflow/archive-validation.js +1 -1
  137. package/dist/sdk/workflow/clone-workflow.js +1 -1
  138. package/dist/sdk/workflow/index.js +1 -1
  139. package/dist/sdk/workflow/pull-workflow.js +1 -1
  140. package/dist/sdk/workflow/push-workflow.js +1 -1
  141. package/dist/sdk/workflow/tdx-config.js +1 -1
  142. package/dist/sdk/workflow/workflow-utils.js +1 -1
  143. package/dist/test-utils/command-runner.js +1 -1
  144. package/dist/test-utils/factories.js +1 -1
  145. package/dist/test-utils/fixtures.js +1 -1
  146. package/dist/test-utils/http-mock.js +1 -1
  147. package/dist/test-utils/index.js +1 -1
  148. package/dist/utils/async.js +1 -1
  149. package/dist/utils/colors.js +1 -1
  150. package/dist/utils/diff.js +1 -1
  151. package/dist/utils/file-permissions.js +1 -1
  152. package/dist/utils/global-cache.js +1 -1
  153. package/dist/utils/json-loader.js +1 -1
  154. package/dist/utils/local-cache.js +1 -1
  155. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  156. package/dist/utils/logger/formatters/index.js +1 -1
  157. package/dist/utils/logger/handlers/console-handler.js +1 -1
  158. package/dist/utils/logger/handlers/file-handler.js +1 -1
  159. package/dist/utils/logger/handlers/index.js +1 -1
  160. package/dist/utils/logger/handlers/null-handler.js +1 -1
  161. package/dist/utils/logger/index.js +1 -1
  162. package/dist/utils/logger/logger.js +1 -1
  163. package/dist/utils/logger/types.js +1 -1
  164. package/dist/utils/option-validation.js +1 -1
  165. package/dist/utils/port.js +1 -1
  166. package/dist/utils/process.js +1 -1
  167. package/dist/utils/prompt.js +1 -1
  168. package/dist/utils/spinner.js +1 -1
  169. package/dist/utils/sse-parser.js +1 -1
  170. package/dist/utils/string-utils.js +1 -1
  171. package/dist/utils/table-ref-parser.js +1 -1
  172. package/dist/utils/tdx-logger.js +1 -1
  173. package/dist/utils/version-check.js +1 -1
  174. package/package.json +1 -1
@@ -1 +1 @@
1
- function a160_0x386d(){var _0x4f9992=['493866cfXoGF','21Azuulc','9HKeKPA','4209780NBOvMJ','31952822CEBHoS','7USvGQS','184740GndLKn','10xrxtFO','5092712dFdlqa','2110888thiqit','279532YXPmeE'];a160_0x386d=function(){return _0x4f9992;};return a160_0x386d();}(function(_0xa90b85,_0x57d1a2){var _0x37b540=a160_0x5051,_0x522dcc=_0xa90b85();while(!![]){try{var _0x54b1a0=-parseInt(_0x37b540(0x1cc))/0x1+parseInt(_0x37b540(0x1d3))/0x2*(-parseInt(_0x37b540(0x1ce))/0x3)+parseInt(_0x37b540(0x1d6))/0x4*(-parseInt(_0x37b540(0x1d4))/0x5)+parseInt(_0x37b540(0x1cd))/0x6*(-parseInt(_0x37b540(0x1d2))/0x7)+-parseInt(_0x37b540(0x1d5))/0x8+-parseInt(_0x37b540(0x1cf))/0x9*(-parseInt(_0x37b540(0x1d0))/0xa)+parseInt(_0x37b540(0x1d1))/0xb;if(_0x54b1a0===_0x57d1a2)break;else _0x522dcc['push'](_0x522dcc['shift']());}catch(_0x36599d){_0x522dcc['push'](_0x522dcc['shift']());}}}(a160_0x386d,0x98aa2));function a160_0x5051(_0x599710,_0xb9eb31){_0x599710=_0x599710-0x1cc;var _0x386d0b=a160_0x386d();var _0x50515c=_0x386d0b[_0x599710];return _0x50515c;}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x3e3a4f,_0x43efde){var _0x15b812=a160_0x5158,_0x1a286d=_0x3e3a4f();while(!![]){try{var _0x1acc21=parseInt(_0x15b812(0x19c))/0x1+-parseInt(_0x15b812(0x195))/0x2*(-parseInt(_0x15b812(0x196))/0x3)+parseInt(_0x15b812(0x19e))/0x4*(parseInt(_0x15b812(0x197))/0x5)+parseInt(_0x15b812(0x194))/0x6*(-parseInt(_0x15b812(0x199))/0x7)+-parseInt(_0x15b812(0x19b))/0x8+parseInt(_0x15b812(0x19d))/0x9*(-parseInt(_0x15b812(0x198))/0xa)+-parseInt(_0x15b812(0x19a))/0xb*(-parseInt(_0x15b812(0x19f))/0xc);if(_0x1acc21===_0x43efde)break;else _0x1a286d['push'](_0x1a286d['shift']());}catch(_0x2c44fc){_0x1a286d['push'](_0x1a286d['shift']());}}}(a160_0xce18,0x3e3ef));function a160_0x5158(_0xabfaee,_0xa1e6e3){_0xabfaee=_0xabfaee-0x194;var _0xce1804=a160_0xce18();var _0x515806=_0xce1804[_0xabfaee];return _0x515806;}function a160_0xce18(){var _0x563851=['730HaCaZZ','1869343Hkjfcw','12133YJznlH','1780360kKyAnn','161561yYVXWb','8028IotpRY','248hBuuLH','4308GfuUxv','6kNaNqd','2eubsrR','580623xlZgvZ','4725okoQqj'];a160_0xce18=function(){return _0x563851;};return a160_0xce18();}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a161_0x2696e7=a161_0x15f3;function a161_0x45d5(){const _0x23aab9=['colors','150112SGVZJm','36GSOmwd','WARN','handle','14AYgbIc','formatter','minLevel','300556ofENuv','565557okXftw','2DdJknb','940204fSxMBM','level','629620wORxbJ','log','1102600pHtpEe','useStderr','956076KAQHgr','error','format'];a161_0x45d5=function(){return _0x23aab9;};return a161_0x45d5();}function a161_0x15f3(_0x15f2b7,_0x22153d){_0x15f2b7=_0x15f2b7-0xad;const _0x45d5ab=a161_0x45d5();let _0x15f332=_0x45d5ab[_0x15f2b7];return _0x15f332;}(function(_0x229eac,_0x49c152){const _0x1c5f6a=a161_0x15f3,_0x2ecb86=_0x229eac();while(!![]){try{const _0x110ed0=-parseInt(_0x1c5f6a(0xb3))/0x1+-parseInt(_0x1c5f6a(0xb5))/0x2*(parseInt(_0x1c5f6a(0xb4))/0x3)+parseInt(_0x1c5f6a(0xb6))/0x4+-parseInt(_0x1c5f6a(0xb8))/0x5+parseInt(_0x1c5f6a(0xbc))/0x6+parseInt(_0x1c5f6a(0xb0))/0x7*(parseInt(_0x1c5f6a(0xc0))/0x8)+-parseInt(_0x1c5f6a(0xad))/0x9*(-parseInt(_0x1c5f6a(0xba))/0xa);if(_0x110ed0===_0x49c152)break;else _0x2ecb86['push'](_0x2ecb86['shift']());}catch(_0x3c0244){_0x2ecb86['push'](_0x2ecb86['shift']());}}}(a161_0x45d5,0x3efae));import{LogLevel as a161_0x251532}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a161_0x2696e7(0xb2)];[a161_0x2696e7(0xbb)];[a161_0x2696e7(0xb1)];constructor(_0x2b56a8={}){const _0x5d293f=a161_0x2696e7;this[_0x5d293f(0xb2)]=_0x2b56a8[_0x5d293f(0xb2)]??a161_0x251532[_0x5d293f(0xae)],this['useStderr']=_0x2b56a8[_0x5d293f(0xbb)]??!![],this[_0x5d293f(0xb1)]=new DefaultLogFormatter({'colors':_0x2b56a8[_0x5d293f(0xbf)]??!![]});}[a161_0x2696e7(0xaf)](_0x30dfdd){const _0x23fe0a=a161_0x2696e7;if(_0x30dfdd[_0x23fe0a(0xb7)]<this[_0x23fe0a(0xb2)])return;const _0x22ca25=this[_0x23fe0a(0xb1)][_0x23fe0a(0xbe)](_0x30dfdd);this[_0x23fe0a(0xbb)]&&_0x30dfdd[_0x23fe0a(0xb7)]>=a161_0x251532['WARN']?console[_0x23fe0a(0xbd)](_0x22ca25):console[_0x23fe0a(0xb9)](_0x22ca25);}}
1
+ const a161_0x4df5c5=a161_0x47d4;(function(_0x5b7351,_0x2398e3){const _0x14bd69=a161_0x47d4,_0x31d57f=_0x5b7351();while(!![]){try{const _0x4e2075=-parseInt(_0x14bd69(0x84))/0x1*(parseInt(_0x14bd69(0x85))/0x2)+parseInt(_0x14bd69(0x8b))/0x3*(parseInt(_0x14bd69(0x90))/0x4)+parseInt(_0x14bd69(0x8c))/0x5*(-parseInt(_0x14bd69(0x93))/0x6)+-parseInt(_0x14bd69(0x95))/0x7+-parseInt(_0x14bd69(0x8d))/0x8+-parseInt(_0x14bd69(0x92))/0x9+parseInt(_0x14bd69(0x89))/0xa;if(_0x4e2075===_0x2398e3)break;else _0x31d57f['push'](_0x31d57f['shift']());}catch(_0x38122d){_0x31d57f['push'](_0x31d57f['shift']());}}}(a161_0x22c2,0x3f65a));import{LogLevel as a161_0x53982e}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a161_0x4df5c5(0x91)];['formatter'];constructor(_0xc03524={}){const _0x2cd28d=a161_0x4df5c5;this['minLevel']=_0xc03524['minLevel']??a161_0x53982e[_0x2cd28d(0x8e)],this[_0x2cd28d(0x91)]=_0xc03524[_0x2cd28d(0x91)]??!![],this[_0x2cd28d(0x87)]=new DefaultLogFormatter({'colors':_0xc03524[_0x2cd28d(0x88)]??!![]});}[a161_0x4df5c5(0x97)](_0x553c7a){const _0x358cea=a161_0x4df5c5;if(_0x553c7a['level']<this[_0x358cea(0x94)])return;const _0x276e8f=this['formatter'][_0x358cea(0x8a)](_0x553c7a);this[_0x358cea(0x91)]&&_0x553c7a[_0x358cea(0x86)]>=a161_0x53982e[_0x358cea(0x8e)]?console[_0x358cea(0x8f)](_0x276e8f):console[_0x358cea(0x96)](_0x276e8f);}}function a161_0x47d4(_0x35f90c,_0x5bd735){_0x35f90c=_0x35f90c-0x84;const _0x22c243=a161_0x22c2();let _0x47d483=_0x22c243[_0x35f90c];return _0x47d483;}function a161_0x22c2(){const _0x3da228=['2150PZfddC','level','formatter','colors','8120440trmDGd','format','33CXLzPH','10jasjEM','2608480XVGiQI','WARN','error','106552FRbhvU','useStderr','2695257EgUxMg','37482MchxYl','minLevel','179802ixXtDe','log','handle','169THtlle'];a161_0x22c2=function(){return _0x3da228;};return a161_0x22c2();}
@@ -1 +1 @@
1
- const a162_0x3123b6=a162_0x3b12;(function(_0x5ab5ee,_0x12dfa7){const _0x179e27=a162_0x3b12,_0x5e546d=_0x5ab5ee();while(!![]){try{const _0x56bc09=parseInt(_0x179e27(0x82))/0x1+parseInt(_0x179e27(0xa5))/0x2+parseInt(_0x179e27(0x8f))/0x3+parseInt(_0x179e27(0x92))/0x4*(-parseInt(_0x179e27(0x90))/0x5)+parseInt(_0x179e27(0x9d))/0x6*(-parseInt(_0x179e27(0x86))/0x7)+parseInt(_0x179e27(0x99))/0x8+parseInt(_0x179e27(0x91))/0x9*(-parseInt(_0x179e27(0x87))/0xa);if(_0x56bc09===_0x12dfa7)break;else _0x5e546d['push'](_0x5e546d['shift']());}catch(_0x38d4eb){_0x5e546d['push'](_0x5e546d['shift']());}}}(a162_0x3feb,0xe9316));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a162_0x3feb(){const _0x702936=['filePath','rotate','1112054OmBVMr','mtime','1452653NFjuvt','Warning:\x20Failed\x20to\x20compress\x20','logDir','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','8437646UnrxAM','17250010tQXfOV','includes','replace','\x5c$&','close','filter','error','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','3705840FHRiSf','5258485SMZyuQ','9bYXsGI','4eMuYPb','logPath','format','toISOString','test','end','handle','13546192VeApYO','logs','logStream','tdx.log','6uVfNAG','logFileName','init','logBaseName','split','write'];a162_0x3feb=function(){return _0x702936;};return a162_0x3feb();}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a162_0x3b12(_0x21c3fd,_0x99540d){_0x21c3fd=_0x21c3fd-0x81;const _0x3feb13=a162_0x3feb();let _0x3b12b7=_0x3feb13[_0x21c3fd];return _0x3b12b7;}export class FileHandler{[a162_0x3123b6(0x93)];[a162_0x3123b6(0x84)];[a162_0x3123b6(0x9e)];[a162_0x3123b6(0xa0)];[a162_0x3123b6(0x9b)]=null;[a162_0x3123b6(0xa4)];constructor(_0x563d0f={}){const _0x4d2ac9=a162_0x3123b6;this['logPath']=_0x563d0f[_0x4d2ac9(0xa3)]??join(getGlobalCacheDir(),_0x4d2ac9(0x9a),_0x4d2ac9(0x9c)),this[_0x4d2ac9(0x84)]=dirname(this[_0x4d2ac9(0x93)]),this[_0x4d2ac9(0x9e)]=basename(this[_0x4d2ac9(0x93)]),this[_0x4d2ac9(0xa0)]=this['logFileName']['replace'](/\.log$/,''),this[_0x4d2ac9(0xa4)]=_0x563d0f['rotate']??!![];}async[a162_0x3123b6(0x9f)](){const _0x48b560=a162_0x3123b6;try{await mkdir(this[_0x48b560(0x84)],{'recursive':!![]}),this[_0x48b560(0xa4)]&&await this['rotateOldLogs'](),this[_0x48b560(0x9b)]=createWriteStream(this[_0x48b560(0x93)],{'flags':'a'}),this['logStream']['on'](_0x48b560(0x8d),_0x10f72d=>{const _0x546080=_0x48b560;console[_0x546080(0x8d)]('Warning:\x20Error\x20writing\x20to\x20'+this[_0x546080(0x9e)]+':',_0x10f72d['message']);});}catch(_0x23f6de){console['error'](_0x48b560(0x8e),_0x23f6de);}}[a162_0x3123b6(0x98)](_0x20d99b){const _0x4d51ab=a162_0x3123b6;if(!this['logStream'])return;const _0x117093=Logger[_0x4d51ab(0x94)](_0x20d99b);this[_0x4d51ab(0x9b)][_0x4d51ab(0xa2)](_0x117093+'\x0a');}async[a162_0x3123b6(0x8b)](){return new Promise(_0x5808f2=>{const _0x4b30ed=a162_0x3b12;this[_0x4b30ed(0x9b)]?this[_0x4b30ed(0x9b)][_0x4b30ed(0x97)](()=>{const _0x527aaf=_0x4b30ed;this[_0x527aaf(0x9b)]=null,_0x5808f2();}):_0x5808f2();});}['getLogPath'](){const _0x130bcd=a162_0x3123b6;return this[_0x130bcd(0x93)];}async['rotateOldLogs'](){const _0x1c052c=a162_0x3123b6;try{const _0x4b035b=await readdir(this[_0x1c052c(0x84)]),_0x23e60d=new Date()[_0x1c052c(0x95)]()['split']('T')[0x0];if(_0x4b035b[_0x1c052c(0x88)](this[_0x1c052c(0x9e)])){const _0x7d8fa0=join(this[_0x1c052c(0x84)],this[_0x1c052c(0x9e)]),_0x4c8e13=await stat(_0x7d8fa0),_0x1625e5=new Date(_0x4c8e13[_0x1c052c(0x81)])[_0x1c052c(0x95)]()[_0x1c052c(0xa1)]('T')[0x0];if(_0x1625e5<_0x23e60d){const _0x53c336=join(this[_0x1c052c(0x84)],this[_0x1c052c(0xa0)]+'-'+_0x1625e5+'.log');await rename(_0x7d8fa0,_0x53c336);}}const _0x33f661=await readdir(this[_0x1c052c(0x84)]),_0x2337e7=this[_0x1c052c(0xa0)][_0x1c052c(0x89)](/[.*+?^${}()|[\]\\]/g,_0x1c052c(0x8a)),_0x1e2972=new RegExp('^'+_0x2337e7+_0x1c052c(0x85)),_0x244ebb=_0x33f661[_0x1c052c(0x8c)](_0x3312bc=>_0x1e2972[_0x1c052c(0x96)](_0x3312bc));for(const _0x4297b7 of _0x244ebb){const _0x437a0f=join(this[_0x1c052c(0x84)],_0x4297b7),_0x24262e=join(this[_0x1c052c(0x84)],_0x4297b7+'.gz');try{await pipeline(createReadStream(_0x437a0f),createGzip(),createWriteStream(_0x24262e)),await unlink(_0x437a0f);}catch(_0x319ffb){console['error'](_0x1c052c(0x83)+_0x4297b7+':',_0x319ffb);}}}catch{}}}
1
+ const a162_0x75747b=a162_0x5248;(function(_0xb7bee,_0x773548){const _0x26d8bc=a162_0x5248,_0x23710d=_0xb7bee();while(!![]){try{const _0x5c043d=parseInt(_0x26d8bc(0x174))/0x1+parseInt(_0x26d8bc(0x154))/0x2*(parseInt(_0x26d8bc(0x177))/0x3)+parseInt(_0x26d8bc(0x172))/0x4+-parseInt(_0x26d8bc(0x16d))/0x5*(parseInt(_0x26d8bc(0x15b))/0x6)+parseInt(_0x26d8bc(0x155))/0x7+parseInt(_0x26d8bc(0x166))/0x8*(-parseInt(_0x26d8bc(0x15a))/0x9)+parseInt(_0x26d8bc(0x157))/0xa*(-parseInt(_0x26d8bc(0x161))/0xb);if(_0x5c043d===_0x773548)break;else _0x23710d['push'](_0x23710d['shift']());}catch(_0x16c927){_0x23710d['push'](_0x23710d['shift']());}}}(a162_0x512c,0x42005));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a162_0x512c(){const _0x3bd102=['2xGJSFz','2966229kjduyC','split','10USohks','.log','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','45nJQSKf','7386QXtTdB','rotateOldLogs','logBaseName','close','rotate','logs','4673757IUZRhm','replace','Warning:\x20Error\x20writing\x20to\x20','includes','filePath','299008oDmgXG','toISOString','handle','write','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','init','tdx.log','1385GCJIbN','format','message','Warning:\x20Failed\x20to\x20compress\x20','test','354000WXkGUU','logDir','273994kqMfue','logPath','\x5c$&','1310562tTwAEG','logStream','error','logFileName'];a162_0x512c=function(){return _0x3bd102;};return a162_0x512c();}import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a162_0x5248(_0x4e9793,_0xd2ac31){_0x4e9793=_0x4e9793-0x153;const _0x512c17=a162_0x512c();let _0x5248f9=_0x512c17[_0x4e9793];return _0x5248f9;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a162_0x75747b(0x175)];[a162_0x75747b(0x173)];[a162_0x75747b(0x153)];[a162_0x75747b(0x15d)];['logStream']=null;[a162_0x75747b(0x15f)];constructor(_0x5cca6f={}){const _0x3c0033=a162_0x75747b;this['logPath']=_0x5cca6f[_0x3c0033(0x165)]??join(getGlobalCacheDir(),_0x3c0033(0x160),_0x3c0033(0x16c)),this[_0x3c0033(0x173)]=dirname(this[_0x3c0033(0x175)]),this[_0x3c0033(0x153)]=basename(this[_0x3c0033(0x175)]),this[_0x3c0033(0x15d)]=this['logFileName']['replace'](/\.log$/,''),this[_0x3c0033(0x15f)]=_0x5cca6f[_0x3c0033(0x15f)]??!![];}async[a162_0x75747b(0x16b)](){const _0x37ac32=a162_0x75747b;try{await mkdir(this[_0x37ac32(0x173)],{'recursive':!![]}),this[_0x37ac32(0x15f)]&&await this['rotateOldLogs'](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x37ac32(0x178)]['on'](_0x37ac32(0x179),_0x56ae45=>{const _0x22e10b=_0x37ac32;console[_0x22e10b(0x179)](_0x22e10b(0x163)+this[_0x22e10b(0x153)]+':',_0x56ae45[_0x22e10b(0x16f)]);});}catch(_0x242adb){console[_0x37ac32(0x179)](_0x37ac32(0x159),_0x242adb);}}[a162_0x75747b(0x168)](_0x3e5d9d){const _0x46531f=a162_0x75747b;if(!this[_0x46531f(0x178)])return;const _0x5acdb0=Logger[_0x46531f(0x16e)](_0x3e5d9d);this[_0x46531f(0x178)][_0x46531f(0x169)](_0x5acdb0+'\x0a');}async[a162_0x75747b(0x15e)](){return new Promise(_0x592779=>{const _0x127d5d=a162_0x5248;this['logStream']?this[_0x127d5d(0x178)]['end'](()=>{const _0x3be28e=_0x127d5d;this[_0x3be28e(0x178)]=null,_0x592779();}):_0x592779();});}['getLogPath'](){const _0x227f13=a162_0x75747b;return this[_0x227f13(0x175)];}async[a162_0x75747b(0x15c)](){const _0x1de092=a162_0x75747b;try{const _0x39a068=await readdir(this[_0x1de092(0x173)]),_0xd3c913=new Date()[_0x1de092(0x167)]()['split']('T')[0x0];if(_0x39a068[_0x1de092(0x164)](this[_0x1de092(0x153)])){const _0x37325b=join(this[_0x1de092(0x173)],this[_0x1de092(0x153)]),_0x488e48=await stat(_0x37325b),_0x4f9cd9=new Date(_0x488e48['mtime'])[_0x1de092(0x167)]()[_0x1de092(0x156)]('T')[0x0];if(_0x4f9cd9<_0xd3c913){const _0xe103d0=join(this['logDir'],this[_0x1de092(0x15d)]+'-'+_0x4f9cd9+_0x1de092(0x158));await rename(_0x37325b,_0xe103d0);}}const _0x3a139f=await readdir(this['logDir']),_0x1a5dff=this[_0x1de092(0x15d)][_0x1de092(0x162)](/[.*+?^${}()|[\]\\]/g,_0x1de092(0x176)),_0x1106db=new RegExp('^'+_0x1a5dff+_0x1de092(0x16a)),_0x416135=_0x3a139f['filter'](_0x4a0188=>_0x1106db[_0x1de092(0x171)](_0x4a0188));for(const _0x554b38 of _0x416135){const _0x579aa3=join(this[_0x1de092(0x173)],_0x554b38),_0x5778a9=join(this[_0x1de092(0x173)],_0x554b38+'.gz');try{await pipeline(createReadStream(_0x579aa3),createGzip(),createWriteStream(_0x5778a9)),await unlink(_0x579aa3);}catch(_0x213a41){console[_0x1de092(0x179)](_0x1de092(0x170)+_0x554b38+':',_0x213a41);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x4ad4bf,_0x3c1630){var _0x154aa6=a163_0x24e8,_0x35b351=_0x4ad4bf();while(!![]){try{var _0x4760e4=-parseInt(_0x154aa6(0x71))/0x1*(parseInt(_0x154aa6(0x72))/0x2)+-parseInt(_0x154aa6(0x70))/0x3*(parseInt(_0x154aa6(0x6c))/0x4)+-parseInt(_0x154aa6(0x6d))/0x5*(parseInt(_0x154aa6(0x75))/0x6)+parseInt(_0x154aa6(0x76))/0x7+parseInt(_0x154aa6(0x6f))/0x8+parseInt(_0x154aa6(0x74))/0x9+-parseInt(_0x154aa6(0x73))/0xa*(-parseInt(_0x154aa6(0x6e))/0xb);if(_0x4760e4===_0x3c1630)break;else _0x35b351['push'](_0x35b351['shift']());}catch(_0x571fca){_0x35b351['push'](_0x35b351['shift']());}}}(a163_0x2c76,0x5a96c));function a163_0x24e8(_0x16e9ea,_0x8f7743){_0x16e9ea=_0x16e9ea-0x6c;var _0x2c7677=a163_0x2c76();var _0x24e829=_0x2c7677[_0x16e9ea];return _0x24e829;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a163_0x2c76(){var _0x31040b=['1swVhxt','171854zuvRoW','6590DnPeCG','333450hswzXF','538392AJhahr','1781787yEHnsX','10484fNYRcy','10RLzUUH','1243NJwbbQ','4993760hfQnwC','405lUCqjg'];a163_0x2c76=function(){return _0x31040b;};return a163_0x2c76();}export{NullHandler}from'./null-handler.js';
1
+ function a163_0x5ba1(_0x4a5f33,_0x396883){_0x4a5f33=_0x4a5f33-0xa9;var _0x5a7f74=a163_0x5a7f();var _0x5ba107=_0x5a7f74[_0x4a5f33];return _0x5ba107;}(function(_0x2dd23f,_0x2e7f09){var _0x2f5560=a163_0x5ba1,_0x53f4b8=_0x2dd23f();while(!![]){try{var _0x402ff4=parseInt(_0x2f5560(0xa9))/0x1+parseInt(_0x2f5560(0xaf))/0x2+parseInt(_0x2f5560(0xac))/0x3*(-parseInt(_0x2f5560(0xaa))/0x4)+-parseInt(_0x2f5560(0xae))/0x5+parseInt(_0x2f5560(0xb1))/0x6+parseInt(_0x2f5560(0xb0))/0x7+-parseInt(_0x2f5560(0xad))/0x8*(parseInt(_0x2f5560(0xab))/0x9);if(_0x402ff4===_0x2e7f09)break;else _0x53f4b8['push'](_0x53f4b8['shift']());}catch(_0x4c06d4){_0x53f4b8['push'](_0x53f4b8['shift']());}}}(a163_0x5a7f,0xec96f));export{FileHandler}from'./file-handler.js';function a163_0x5a7f(){var _0x28a105=['1101697hGoAYU','4QzSdbD','9BfBzpv','3640977GOgCRU','9665640fJvycc','1743100GJhVgA','1783794mBgzTl','5724257dKCPAG','5569260LvvyVH'];a163_0x5a7f=function(){return _0x28a105;};return a163_0x5a7f();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- (function(_0x49e8ce,_0x1ac744){var _0x2fe1f6=a164_0x5f15,_0x1475fc=_0x49e8ce();while(!![]){try{var _0xcea72=-parseInt(_0x2fe1f6(0x1ba))/0x1+-parseInt(_0x2fe1f6(0x1be))/0x2*(parseInt(_0x2fe1f6(0x1bd))/0x3)+parseInt(_0x2fe1f6(0x1b9))/0x4+parseInt(_0x2fe1f6(0x1c1))/0x5*(parseInt(_0x2fe1f6(0x1c0))/0x6)+parseInt(_0x2fe1f6(0x1bc))/0x7+parseInt(_0x2fe1f6(0x1bf))/0x8+-parseInt(_0x2fe1f6(0x1bb))/0x9;if(_0xcea72===_0x1ac744)break;else _0x1475fc['push'](_0x1475fc['shift']());}catch(_0x2b2d59){_0x1475fc['push'](_0x1475fc['shift']());}}}(a164_0x539f,0xe1321));function a164_0x539f(){var _0xc0b5cf=['40sguhHx','2738560qnXTjA','423689BJqTdp','22497561PpzKzB','9281769UFPNCi','629922NCHbEg','2ZvpbBy','8369040DdGHEs','749292nJjMro'];a164_0x539f=function(){return _0xc0b5cf;};return a164_0x539f();}function a164_0x5f15(_0x516f50,_0x105992){_0x516f50=_0x516f50-0x1b9;var _0x539f18=a164_0x539f();var _0x5f152d=_0x539f18[_0x516f50];return _0x5f152d;}export class NullHandler{['handle'](_0x267591){}}
1
+ var a164_0x2df2a9=a164_0x5c4a;(function(_0x21ea97,_0x32ca8c){var _0x282406=a164_0x5c4a,_0x214819=_0x21ea97();while(!![]){try{var _0x5d6499=parseInt(_0x282406(0x6d))/0x1+parseInt(_0x282406(0x72))/0x2+parseInt(_0x282406(0x79))/0x3*(parseInt(_0x282406(0x73))/0x4)+-parseInt(_0x282406(0x6f))/0x5*(-parseInt(_0x282406(0x70))/0x6)+-parseInt(_0x282406(0x75))/0x7*(parseInt(_0x282406(0x6e))/0x8)+parseInt(_0x282406(0x76))/0x9*(parseInt(_0x282406(0x78))/0xa)+-parseInt(_0x282406(0x74))/0xb*(parseInt(_0x282406(0x77))/0xc);if(_0x5d6499===_0x32ca8c)break;else _0x214819['push'](_0x214819['shift']());}catch(_0x1f971f){_0x214819['push'](_0x214819['shift']());}}}(a164_0x385c,0x57934));function a164_0x385c(){var _0xd861a6=['1221164CswPvO','18070679KGLLSg','7OvjSuq','117FwAnuH','12caPyat','135550lzfQkM','6FkpOUb','664153bcjHsH','1971336YJUrxc','355jgQTZM','7530wJmvIg','handle','1415718KVYcoM'];a164_0x385c=function(){return _0xd861a6;};return a164_0x385c();}function a164_0x5c4a(_0x25ad10,_0x181bd2){_0x25ad10=_0x25ad10-0x6d;var _0x385c11=a164_0x385c();var _0x5c4a81=_0x385c11[_0x25ad10];return _0x5c4a81;}export class NullHandler{[a164_0x2df2a9(0x71)](_0x269a64){}}
@@ -1 +1 @@
1
- function a165_0x3c1e(){var _0x192f7a=['41972PrGBzk','4cvXMtm','12YCCduJ','1553270wsPxsR','3334890buGQuW','2938544hBJVwF','76imOAHy','3039417VyJSzZ','1663785CtjIMO','33fBpzaw','21358bFqOGB'];a165_0x3c1e=function(){return _0x192f7a;};return a165_0x3c1e();}function a165_0x2cae(_0x32adba,_0x5e9783){_0x32adba=_0x32adba-0x1a0;var _0x3c1e56=a165_0x3c1e();var _0x2caec3=_0x3c1e56[_0x32adba];return _0x2caec3;}(function(_0x5d7aaf,_0x26738e){var _0x1256cd=a165_0x2cae,_0x438c9e=_0x5d7aaf();while(!![]){try{var _0x40fea5=parseInt(_0x1256cd(0x1a6))/0x1*(parseInt(_0x1256cd(0x1aa))/0x2)+-parseInt(_0x1256cd(0x1a8))/0x3*(parseInt(_0x1256cd(0x1a1))/0x4)+parseInt(_0x1256cd(0x1a4))/0x5+parseInt(_0x1256cd(0x1a2))/0x6*(-parseInt(_0x1256cd(0x1a0))/0x7)+-parseInt(_0x1256cd(0x1a5))/0x8+parseInt(_0x1256cd(0x1a7))/0x9+parseInt(_0x1256cd(0x1a3))/0xa*(-parseInt(_0x1256cd(0x1a9))/0xb);if(_0x40fea5===_0x26738e)break;else _0x438c9e['push'](_0x438c9e['shift']());}catch(_0x34617e){_0x438c9e['push'](_0x438c9e['shift']());}}}(a165_0x3c1e,0x65a99));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x33512f,_0x273f7a){var _0x4ba3dc=a165_0x1515,_0x56ee21=_0x33512f();while(!![]){try{var _0x5018c7=-parseInt(_0x4ba3dc(0x12a))/0x1+-parseInt(_0x4ba3dc(0x12e))/0x2+parseInt(_0x4ba3dc(0x130))/0x3*(parseInt(_0x4ba3dc(0x132))/0x4)+-parseInt(_0x4ba3dc(0x129))/0x5*(parseInt(_0x4ba3dc(0x12d))/0x6)+-parseInt(_0x4ba3dc(0x12f))/0x7+parseInt(_0x4ba3dc(0x12c))/0x8+-parseInt(_0x4ba3dc(0x12b))/0x9*(-parseInt(_0x4ba3dc(0x131))/0xa);if(_0x5018c7===_0x273f7a)break;else _0x56ee21['push'](_0x56ee21['shift']());}catch(_0x141ca4){_0x56ee21['push'](_0x56ee21['shift']());}}}(a165_0x42f8,0x836fc));function a165_0x42f8(){var _0x1c5322=['1613546NCuRyT','4042577EQzEBh','2035551zwVvHK','5956300cYiFlo','4htySCt','175YSCdCe','116720uyqoKm','9eoOYqB','6187008OyFcLI','1398BpJTOP'];a165_0x42f8=function(){return _0x1c5322;};return a165_0x42f8();}export{Logger}from'./logger.js';function a165_0x1515(_0x9f1382,_0x5e3a31){_0x9f1382=_0x9f1382-0x129;var _0x42f897=a165_0x42f8();var _0x1515e5=_0x42f897[_0x9f1382];return _0x1515e5;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- function a166_0x110a(_0x2e3944,_0x3570c5){_0x2e3944=_0x2e3944-0x83;const _0x25fef9=a166_0x25fe();let _0x110a5b=_0x25fef9[_0x2e3944];return _0x110a5b;}function a166_0x25fe(){const _0x12709d=['shouldLog','error','set','push','function','490750KesNkg','format','410968AMRYFF','83237OIzdyL','close','get','INFO','map','handlers','log','info','handle','6OKKZYF','pendingRecords','init','9HgMIfz','formatter','getFormatter','levelOverrides','141125YRQqGH','debug','join','addHandler','78fpGMss','toISOString','defaultLevel','2910qlOsbI','getEffectiveLevel','has','dispatch','slice','cause','184HIGEmz','setDefaultLevel','setLogLevel','component','clear','1125980XRHjbe','reset','WARN','initialized','11982674XJefQm','loggers','stack','string','trace','level','name','length','stringify','message'];a166_0x25fe=function(){return _0x12709d;};return a166_0x25fe();}const a166_0x2e5bf4=a166_0x110a;(function(_0x2c80a0,_0xa2e18){const _0xd25924=a166_0x110a,_0x2e510f=_0x2c80a0();while(!![]){try{const _0x112768=-parseInt(_0xd25924(0x8f))/0x1+-parseInt(_0xd25924(0x91))/0x2+parseInt(_0xd25924(0x9b))/0x3*(parseInt(_0xd25924(0xb4))/0x4)+-parseInt(_0xd25924(0xa2))/0x5*(parseInt(_0xd25924(0xa6))/0x6)+parseInt(_0xd25924(0x92))/0x7*(-parseInt(_0xd25924(0xaf))/0x8)+parseInt(_0xd25924(0x9e))/0x9*(-parseInt(_0xd25924(0xa9))/0xa)+parseInt(_0xd25924(0xb8))/0xb;if(_0x112768===_0xa2e18)break;else _0x2e510f['push'](_0x2e510f['shift']());}catch(_0x5954a6){_0x2e510f['push'](_0x2e510f['shift']());}}}(a166_0x25fe,0x4cff5));import{LogLevel as a166_0x45e8f0,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a166_0x45e8f0[a166_0x2e5bf4(0x95)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x5004ae){const _0x2d252c=a166_0x2e5bf4;if(typeof _0x5004ae===_0x2d252c(0x83))return _0x5004ae;if(_0x5004ae instanceof Error)return _0x5004ae[_0x2d252c(0xba)]||_0x5004ae[_0x2d252c(0x86)]+':\x20'+_0x5004ae['message'];try{return JSON[_0x2d252c(0x88)](_0x5004ae,(_0x3ee65b,_0x13e546)=>{const _0x3802eb=_0x2d252c;if(_0x13e546 instanceof Error)return{'name':_0x13e546[_0x3802eb(0x86)],'message':_0x13e546['message'],'stack':_0x13e546['stack'],'cause':_0x13e546[_0x3802eb(0xae)]};return _0x13e546;});}catch{return String(_0x5004ae);}}export class Logger{[a166_0x2e5bf4(0xb2)];constructor(_0x172e11){const _0x520863=a166_0x2e5bf4;this[_0x520863(0xb2)]=_0x172e11;}static['of'](_0x46a4b0){const _0x46a5c0=a166_0x2e5bf4,_0x3e57a6=typeof _0x46a4b0===_0x46a5c0(0x83)?_0x46a4b0:_0x46a4b0[_0x46a5c0(0x86)];let _0x99deab=state[_0x46a5c0(0xb9)][_0x46a5c0(0x94)](_0x3e57a6);return!_0x99deab&&(_0x99deab=new Logger(_0x3e57a6),state['loggers'][_0x46a5c0(0x8c)](_0x3e57a6,_0x99deab)),_0x99deab;}static async[a166_0x2e5bf4(0x9d)](_0x31c4e3={}){const _0x541d13=a166_0x2e5bf4;state[_0x541d13(0xa8)]=_0x31c4e3[_0x541d13(0xa8)]??a166_0x45e8f0[_0x541d13(0x95)],state[_0x541d13(0x97)]=_0x31c4e3['handlers']??[],state[_0x541d13(0x9f)]=_0x31c4e3['formatter']??null,state['levelOverrides'][_0x541d13(0xb3)]();if(_0x31c4e3['levelOverrides'])for(const [_0x5f2d03,_0x15563f]of Object['entries'](_0x31c4e3[_0x541d13(0xa1)])){state[_0x541d13(0xa1)][_0x541d13(0x8c)](_0x5f2d03,_0x15563f);}for(const _0x4554da of state[_0x541d13(0x97)]){_0x4554da['init']&&await _0x4554da['init']();}state[_0x541d13(0xb7)]=!![];for(const _0x17b00f of state[_0x541d13(0x9c)]){Logger[_0x541d13(0xac)](_0x17b00f);}state['pendingRecords']=[];}static[a166_0x2e5bf4(0xb1)](_0x4a89dd,_0x166171){const _0x379b15=a166_0x2e5bf4;state[_0x379b15(0xa1)][_0x379b15(0x8c)](_0x4a89dd,_0x166171);}static[a166_0x2e5bf4(0xb0)](_0x3cd80b){const _0x18a06f=a166_0x2e5bf4;state[_0x18a06f(0xa8)]=_0x3cd80b;}static[a166_0x2e5bf4(0xa5)](_0x3f5fd4){const _0x5c8c2f=a166_0x2e5bf4;state[_0x5c8c2f(0x97)][_0x5c8c2f(0x8d)](_0x3f5fd4),state['initialized']&&_0x3f5fd4[_0x5c8c2f(0x9d)]&&_0x3f5fd4[_0x5c8c2f(0x9d)]();}static['clearHandlers'](){const _0x5cd048=a166_0x2e5bf4;state[_0x5cd048(0x97)]=[];}static async['shutdown'](){const _0x4944f1=a166_0x2e5bf4;for(const _0x397406 of state['handlers']){_0x397406['close']&&await _0x397406[_0x4944f1(0x93)]();}state[_0x4944f1(0x97)]=[],state['initialized']=![],state[_0x4944f1(0xb9)][_0x4944f1(0xb3)](),state['pendingRecords']=[];}static[a166_0x2e5bf4(0xb5)](){const _0x5bb5b8=a166_0x2e5bf4;state[_0x5bb5b8(0xb7)]=![],state[_0x5bb5b8(0xa8)]=a166_0x45e8f0[_0x5bb5b8(0x95)],state[_0x5bb5b8(0xa1)][_0x5bb5b8(0xb3)](),state['handlers']=[],state[_0x5bb5b8(0x9f)]=null,state[_0x5bb5b8(0xb9)][_0x5bb5b8(0xb3)](),state['pendingRecords']=[];}static['isInitialized'](){return state['initialized'];}static[a166_0x2e5bf4(0xaa)](_0x476682){const _0x3ffd36=a166_0x2e5bf4;if(state[_0x3ffd36(0xa1)][_0x3ffd36(0xab)](_0x476682))return state[_0x3ffd36(0xa1)][_0x3ffd36(0x94)](_0x476682);const _0x15ba95=_0x476682['split']('.');for(let _0x2d287f=_0x15ba95[_0x3ffd36(0x87)]-0x1;_0x2d287f>0x0;_0x2d287f--){const _0x1f41c0=_0x15ba95[_0x3ffd36(0xad)](0x0,_0x2d287f)['join']('.');if(state[_0x3ffd36(0xa1)]['has'](_0x1f41c0))return state[_0x3ffd36(0xa1)]['get'](_0x1f41c0);}return state[_0x3ffd36(0xa8)];}[a166_0x2e5bf4(0x8a)](_0x4c1260){const _0x306c88=a166_0x2e5bf4,_0x39edcc=Logger['getEffectiveLevel'](this[_0x306c88(0xb2)]);return _0x4c1260>=_0x39edcc;}static[a166_0x2e5bf4(0xac)](_0x157d41){const _0x3c4b01=a166_0x2e5bf4;for(const _0x3018db of state[_0x3c4b01(0x97)]){_0x3018db[_0x3c4b01(0x9a)](_0x157d41);}}[a166_0x2e5bf4(0x98)](_0x46e69d,_0x3c3ccb){const _0x114013=a166_0x2e5bf4;if(!this[_0x114013(0x8a)](_0x46e69d))return;const _0x212ed6=_0x3c3ccb[_0x114013(0x96)](_0x4d406f=>typeof _0x4d406f===_0x114013(0x8e)?_0x4d406f():_0x4d406f),_0x3908d9=_0x212ed6['map'](safeStringify)[_0x114013(0xa4)]('\x20'),_0x455929={'timestamp':new Date(),'level':_0x46e69d,'component':this[_0x114013(0xb2)],'message':_0x3908d9};if(!state[_0x114013(0xb7)]){state[_0x114013(0x9c)]['length']<MAX_PENDING_RECORDS&&state[_0x114013(0x9c)][_0x114013(0x8d)](_0x455929);return;}Logger[_0x114013(0xac)](_0x455929);}[a166_0x2e5bf4(0x84)](..._0x4fc356){this['log'](a166_0x45e8f0['TRACE'],_0x4fc356);}[a166_0x2e5bf4(0xa3)](..._0x55abef){const _0x454979=a166_0x2e5bf4;this[_0x454979(0x98)](a166_0x45e8f0['DEBUG'],_0x55abef);}[a166_0x2e5bf4(0x99)](..._0x299ce2){const _0x3b3078=a166_0x2e5bf4;this[_0x3b3078(0x98)](a166_0x45e8f0[_0x3b3078(0x95)],_0x299ce2);}['warn'](..._0x252edc){const _0x50986b=a166_0x2e5bf4;this[_0x50986b(0x98)](a166_0x45e8f0[_0x50986b(0xb6)],_0x252edc);}[a166_0x2e5bf4(0x8b)](..._0x22c845){const _0x3e5ef5=a166_0x2e5bf4;this[_0x3e5ef5(0x98)](a166_0x45e8f0['ERROR'],_0x22c845);}static[a166_0x2e5bf4(0xa0)](){const _0x4c01e7=a166_0x2e5bf4;return state[_0x4c01e7(0x9f)];}static[a166_0x2e5bf4(0x90)](_0x4cb47c){const _0x56e12d=a166_0x2e5bf4;if(state[_0x56e12d(0x9f)])return state[_0x56e12d(0x9f)]['format'](_0x4cb47c);return _0x4cb47c['timestamp'][_0x56e12d(0xa7)]()+'\x20['+logLevelToString(_0x4cb47c[_0x56e12d(0x85)])+']\x20['+_0x4cb47c[_0x56e12d(0xb2)]+']\x20'+_0x4cb47c[_0x56e12d(0x89)];}}
1
+ const a166_0x1277ea=a166_0x3b7f;(function(_0x2e3e62,_0x58bb25){const _0x4094be=a166_0x3b7f,_0xcf07c0=_0x2e3e62();while(!![]){try{const _0x39efce=-parseInt(_0x4094be(0x19d))/0x1+parseInt(_0x4094be(0x1a6))/0x2+parseInt(_0x4094be(0x17b))/0x3+-parseInt(_0x4094be(0x190))/0x4*(-parseInt(_0x4094be(0x197))/0x5)+-parseInt(_0x4094be(0x19a))/0x6+parseInt(_0x4094be(0x1ad))/0x7+parseInt(_0x4094be(0x1af))/0x8;if(_0x39efce===_0x58bb25)break;else _0xcf07c0['push'](_0xcf07c0['shift']());}catch(_0x4c86db){_0xcf07c0['push'](_0xcf07c0['shift']());}}}(a166_0x5d10,0xca6e0));import{LogLevel as a166_0x4d60b3,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a166_0x4d60b3[a166_0x1277ea(0x1b0)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x4d9db5){const _0x553caf=a166_0x1277ea;if(typeof _0x4d9db5===_0x553caf(0x1aa))return _0x4d9db5;if(_0x4d9db5 instanceof Error)return _0x4d9db5['stack']||_0x4d9db5[_0x553caf(0x1a2)]+':\x20'+_0x4d9db5[_0x553caf(0x1a4)];try{return JSON['stringify'](_0x4d9db5,(_0x509a3a,_0x19c109)=>{const _0x9dcd94=_0x553caf;if(_0x19c109 instanceof Error)return{'name':_0x19c109[_0x9dcd94(0x1a2)],'message':_0x19c109['message'],'stack':_0x19c109[_0x9dcd94(0x183)],'cause':_0x19c109[_0x9dcd94(0x184)]};return _0x19c109;});}catch{return String(_0x4d9db5);}}function a166_0x5d10(){const _0x4ea4f8=['reset','stack','cause','addHandler','DEBUG','getFormatter','push','getEffectiveLevel','dispatch','map','length','level','close','loggers','1464644nWqQBy','shouldLog','component','slice','clearHandlers','initialized','format','5SKVWbn','timestamp','trace','8041584LYbrEj','info','formatter','1446233tvGNXh','has','defaultLevel','WARN','entries','name','clear','message','error','978376PSKKjT','get','handlers','set','string','setDefaultLevel','warn','2977464QmUhWj','split','16636080zAPsIO','INFO','setLogLevel','handle','pendingRecords','766314DzIyeA','levelOverrides','log',']\x20[','init','join','isInitialized'];a166_0x5d10=function(){return _0x4ea4f8;};return a166_0x5d10();}function a166_0x3b7f(_0x3f9d89,_0x207219){_0x3f9d89=_0x3f9d89-0x17b;const _0x5d10c3=a166_0x5d10();let _0x3b7fb6=_0x5d10c3[_0x3f9d89];return _0x3b7fb6;}export class Logger{[a166_0x1277ea(0x192)];constructor(_0x4eb9b1){const _0x278cff=a166_0x1277ea;this[_0x278cff(0x192)]=_0x4eb9b1;}static['of'](_0x1d39e8){const _0x58eb45=a166_0x1277ea,_0x3a77e4=typeof _0x1d39e8==='string'?_0x1d39e8:_0x1d39e8[_0x58eb45(0x1a2)];let _0x4a8905=state[_0x58eb45(0x18f)]['get'](_0x3a77e4);return!_0x4a8905&&(_0x4a8905=new Logger(_0x3a77e4),state[_0x58eb45(0x18f)]['set'](_0x3a77e4,_0x4a8905)),_0x4a8905;}static async[a166_0x1277ea(0x17f)](_0x1abe2f={}){const _0x899298=a166_0x1277ea;state['defaultLevel']=_0x1abe2f[_0x899298(0x19f)]??a166_0x4d60b3[_0x899298(0x1b0)],state[_0x899298(0x1a8)]=_0x1abe2f[_0x899298(0x1a8)]??[],state['formatter']=_0x1abe2f[_0x899298(0x19c)]??null,state[_0x899298(0x17c)][_0x899298(0x1a3)]();if(_0x1abe2f['levelOverrides'])for(const [_0xe2b935,_0x14de4b]of Object[_0x899298(0x1a1)](_0x1abe2f['levelOverrides'])){state[_0x899298(0x17c)][_0x899298(0x1a9)](_0xe2b935,_0x14de4b);}for(const _0x9eef6c of state[_0x899298(0x1a8)]){_0x9eef6c['init']&&await _0x9eef6c[_0x899298(0x17f)]();}state['initialized']=!![];for(const _0x4ccf9e of state[_0x899298(0x1b3)]){Logger['dispatch'](_0x4ccf9e);}state[_0x899298(0x1b3)]=[];}static[a166_0x1277ea(0x1b1)](_0x4b7153,_0x5256ec){const _0x54fd33=a166_0x1277ea;state[_0x54fd33(0x17c)][_0x54fd33(0x1a9)](_0x4b7153,_0x5256ec);}static[a166_0x1277ea(0x1ab)](_0x39af30){state['defaultLevel']=_0x39af30;}static[a166_0x1277ea(0x185)](_0x4117b9){const _0x1d3b16=a166_0x1277ea;state[_0x1d3b16(0x1a8)][_0x1d3b16(0x188)](_0x4117b9),state[_0x1d3b16(0x195)]&&_0x4117b9[_0x1d3b16(0x17f)]&&_0x4117b9[_0x1d3b16(0x17f)]();}static[a166_0x1277ea(0x194)](){const _0x5868e9=a166_0x1277ea;state[_0x5868e9(0x1a8)]=[];}static async['shutdown'](){const _0x4b18ed=a166_0x1277ea;for(const _0x3dc8c5 of state['handlers']){_0x3dc8c5[_0x4b18ed(0x18e)]&&await _0x3dc8c5[_0x4b18ed(0x18e)]();}state[_0x4b18ed(0x1a8)]=[],state[_0x4b18ed(0x195)]=![],state['loggers']['clear'](),state[_0x4b18ed(0x1b3)]=[];}static[a166_0x1277ea(0x182)](){const _0xfdbf77=a166_0x1277ea;state['initialized']=![],state[_0xfdbf77(0x19f)]=a166_0x4d60b3['INFO'],state['levelOverrides'][_0xfdbf77(0x1a3)](),state[_0xfdbf77(0x1a8)]=[],state[_0xfdbf77(0x19c)]=null,state[_0xfdbf77(0x18f)][_0xfdbf77(0x1a3)](),state[_0xfdbf77(0x1b3)]=[];}static[a166_0x1277ea(0x181)](){const _0x4bc354=a166_0x1277ea;return state[_0x4bc354(0x195)];}static[a166_0x1277ea(0x189)](_0x23f5b7){const _0x1e5d09=a166_0x1277ea;if(state[_0x1e5d09(0x17c)][_0x1e5d09(0x19e)](_0x23f5b7))return state[_0x1e5d09(0x17c)][_0x1e5d09(0x1a7)](_0x23f5b7);const _0x30c141=_0x23f5b7[_0x1e5d09(0x1ae)]('.');for(let _0x17c8a0=_0x30c141[_0x1e5d09(0x18c)]-0x1;_0x17c8a0>0x0;_0x17c8a0--){const _0x517521=_0x30c141[_0x1e5d09(0x193)](0x0,_0x17c8a0)[_0x1e5d09(0x180)]('.');if(state[_0x1e5d09(0x17c)][_0x1e5d09(0x19e)](_0x517521))return state[_0x1e5d09(0x17c)][_0x1e5d09(0x1a7)](_0x517521);}return state[_0x1e5d09(0x19f)];}[a166_0x1277ea(0x191)](_0x44311a){const _0x56931d=a166_0x1277ea,_0x5e40fb=Logger[_0x56931d(0x189)](this['component']);return _0x44311a>=_0x5e40fb;}static[a166_0x1277ea(0x18a)](_0x162742){const _0x38b2fd=a166_0x1277ea;for(const _0x4ddd23 of state[_0x38b2fd(0x1a8)]){_0x4ddd23[_0x38b2fd(0x1b2)](_0x162742);}}[a166_0x1277ea(0x17d)](_0x40f0b7,_0x32c1e1){const _0x45bcc7=a166_0x1277ea;if(!this['shouldLog'](_0x40f0b7))return;const _0x57a254=_0x32c1e1['map'](_0x72ec7a=>typeof _0x72ec7a==='function'?_0x72ec7a():_0x72ec7a),_0x13f5f9=_0x57a254[_0x45bcc7(0x18b)](safeStringify)['join']('\x20'),_0x2b2942={'timestamp':new Date(),'level':_0x40f0b7,'component':this[_0x45bcc7(0x192)],'message':_0x13f5f9};if(!state['initialized']){state[_0x45bcc7(0x1b3)][_0x45bcc7(0x18c)]<MAX_PENDING_RECORDS&&state[_0x45bcc7(0x1b3)]['push'](_0x2b2942);return;}Logger[_0x45bcc7(0x18a)](_0x2b2942);}[a166_0x1277ea(0x199)](..._0x13f33c){const _0x310d3c=a166_0x1277ea;this[_0x310d3c(0x17d)](a166_0x4d60b3['TRACE'],_0x13f33c);}['debug'](..._0x2c45ae){const _0x3281e2=a166_0x1277ea;this[_0x3281e2(0x17d)](a166_0x4d60b3[_0x3281e2(0x186)],_0x2c45ae);}[a166_0x1277ea(0x19b)](..._0x1d3977){const _0x5072d7=a166_0x1277ea;this['log'](a166_0x4d60b3[_0x5072d7(0x1b0)],_0x1d3977);}[a166_0x1277ea(0x1ac)](..._0x3abbc1){const _0x47c238=a166_0x1277ea;this[_0x47c238(0x17d)](a166_0x4d60b3[_0x47c238(0x1a0)],_0x3abbc1);}[a166_0x1277ea(0x1a5)](..._0x120494){const _0x4d10aa=a166_0x1277ea;this[_0x4d10aa(0x17d)](a166_0x4d60b3['ERROR'],_0x120494);}static[a166_0x1277ea(0x187)](){const _0xc53376=a166_0x1277ea;return state[_0xc53376(0x19c)];}static[a166_0x1277ea(0x196)](_0x46d2a6){const _0x1592b2=a166_0x1277ea;if(state[_0x1592b2(0x19c)])return state['formatter']['format'](_0x46d2a6);return _0x46d2a6[_0x1592b2(0x198)]['toISOString']()+'\x20['+logLevelToString(_0x46d2a6[_0x1592b2(0x18d)])+_0x1592b2(0x17e)+_0x46d2a6['component']+']\x20'+_0x46d2a6['message'];}}
@@ -1 +1 @@
1
- (function(_0x3a387e,_0x30a6fb){const _0x2da9cd=a167_0x12ba,_0x3f54f8=_0x3a387e();while(!![]){try{const _0x5954c3=-parseInt(_0x2da9cd(0xab))/0x1*(parseInt(_0x2da9cd(0xae))/0x2)+parseInt(_0x2da9cd(0xac))/0x3*(parseInt(_0x2da9cd(0x9c))/0x4)+-parseInt(_0x2da9cd(0xa8))/0x5+-parseInt(_0x2da9cd(0xa9))/0x6*(parseInt(_0x2da9cd(0xb1))/0x7)+parseInt(_0x2da9cd(0xb0))/0x8*(-parseInt(_0x2da9cd(0xaa))/0x9)+-parseInt(_0x2da9cd(0xaf))/0xa+parseInt(_0x2da9cd(0xb2))/0xb;if(_0x5954c3===_0x30a6fb)break;else _0x3f54f8['push'](_0x3f54f8['shift']());}catch(_0x664463){_0x3f54f8['push'](_0x3f54f8['shift']());}}}(a167_0x5105,0xa3d83));export var LogLevel;(function(_0x1a5f7c){const _0x45cf41=a167_0x12ba;_0x1a5f7c[_0x1a5f7c[_0x45cf41(0xb7)]=-0x2]=_0x45cf41(0xb7),_0x1a5f7c[_0x1a5f7c[_0x45cf41(0xa7)]=-0x1]='DEBUG',_0x1a5f7c[_0x1a5f7c[_0x45cf41(0xa2)]=0x0]=_0x45cf41(0xa2),_0x1a5f7c[_0x1a5f7c[_0x45cf41(0xa6)]=0x1]=_0x45cf41(0xa6),_0x1a5f7c[_0x1a5f7c[_0x45cf41(0xa3)]=0x2]=_0x45cf41(0xa3);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x11a182){const _0xefd199=a167_0x12ba;switch(_0x11a182[_0xefd199(0x9f)]()){case _0xefd199(0xb7):return LogLevel[_0xefd199(0xb7)];case _0xefd199(0xa7):return LogLevel[_0xefd199(0xa7)];case _0xefd199(0xa2):return LogLevel[_0xefd199(0xa2)];case'WARN':case _0xefd199(0xa5):return LogLevel['WARN'];case _0xefd199(0xa3):return LogLevel[_0xefd199(0xa3)];default:return LogLevel['INFO'];}}export function logLevelToString(_0x3ed6c6){const _0x102932=a167_0x12ba;switch(_0x3ed6c6){case LogLevel[_0x102932(0xb7)]:return _0x102932(0xb6);case LogLevel['DEBUG']:return'debug';case LogLevel[_0x102932(0xa2)]:return _0x102932(0xa1);case LogLevel[_0x102932(0xa6)]:return _0x102932(0xb3);case LogLevel['ERROR']:return _0x102932(0xa0);default:return _0x102932(0xa1);}}function a167_0x5105(){const _0x2f378d=['17NBeNgS','51717Nwuhuf','toString','94762ParHAk','2820250NUEQJQ','2797224qIrcxq','7AcdvcI','32908997NDLnqM','warn','getHours','padStart','trace','TRACE','80bzzXIj','getMonth','abs','toUpperCase','error','info','INFO','ERROR','getMinutes','WARNING','WARN','DEBUG','1322630fZjRlh','3684396fVGItr','18iZrKfZ'];a167_0x5105=function(){return _0x2f378d;};return a167_0x5105();}function a167_0x12ba(_0x35b2b2,_0x42a71b){_0x35b2b2=_0x35b2b2-0x9c;const _0x51050e=a167_0x5105();let _0x12ba85=_0x51050e[_0x35b2b2];return _0x12ba85;}export function formatTimestamp(_0x420b53){const _0x2c1a4d=a167_0x12ba,_0x413878=_0x420b53['getFullYear'](),_0x218da8=(_0x420b53[_0x2c1a4d(0x9d)]()+0x1)[_0x2c1a4d(0xad)]()[_0x2c1a4d(0xb5)](0x2,'0'),_0xdd093d=_0x420b53['getDate']()[_0x2c1a4d(0xad)]()['padStart'](0x2,'0'),_0x2334d7=_0x420b53[_0x2c1a4d(0xb4)]()[_0x2c1a4d(0xad)]()[_0x2c1a4d(0xb5)](0x2,'0'),_0x2107ef=_0x420b53[_0x2c1a4d(0xa4)]()[_0x2c1a4d(0xad)]()[_0x2c1a4d(0xb5)](0x2,'0'),_0x2032dc=_0x420b53['getSeconds']()['toString']()[_0x2c1a4d(0xb5)](0x2,'0'),_0x470eaf=_0x420b53['getMilliseconds']()[_0x2c1a4d(0xad)]()[_0x2c1a4d(0xb5)](0x3,'0'),_0x1797bd=-_0x420b53['getTimezoneOffset'](),_0xd2960f=Math['floor'](Math['abs'](_0x1797bd)/0x3c),_0x38858a=Math[_0x2c1a4d(0x9e)](_0x1797bd)%0x3c,_0x2f9b76=_0x1797bd>=0x0?'+':'-',_0x50ff2a=''+_0x2f9b76+_0xd2960f[_0x2c1a4d(0xad)]()[_0x2c1a4d(0xb5)](0x2,'0')+_0x38858a[_0x2c1a4d(0xad)]()['padStart'](0x2,'0');return _0x413878+'-'+_0x218da8+'-'+_0xdd093d+'\x20'+_0x2334d7+':'+_0x2107ef+':'+_0x2032dc+'.'+_0x470eaf+_0x50ff2a;}
1
+ (function(_0x2cdfb8,_0x992f3a){const _0x77fcd7=a167_0x1703,_0x38eb75=_0x2cdfb8();while(!![]){try{const _0x4b107c=parseInt(_0x77fcd7(0xb5))/0x1+-parseInt(_0x77fcd7(0xa4))/0x2+parseInt(_0x77fcd7(0xa3))/0x3+parseInt(_0x77fcd7(0xaf))/0x4+-parseInt(_0x77fcd7(0x9f))/0x5+parseInt(_0x77fcd7(0xab))/0x6*(parseInt(_0x77fcd7(0xbb))/0x7)+-parseInt(_0x77fcd7(0xaa))/0x8*(parseInt(_0x77fcd7(0xa9))/0x9);if(_0x4b107c===_0x992f3a)break;else _0x38eb75['push'](_0x38eb75['shift']());}catch(_0x4fa59b){_0x38eb75['push'](_0x38eb75['shift']());}}}(a167_0x3648,0xa2f34));export var LogLevel;function a167_0x3648(){const _0x47e281=['error','1763405XqBdgr','padStart','6133325ibzwgx','getFullYear','floor','getTimezoneOffset','3884163Mparna','1094460XGWdpv','DEBUG','getMilliseconds','ERROR','info','5646330aqeUIS','16CkjCdB','12mUbVRi','INFO','warn','abs','2343116ESmtuS','toString','debug','getSeconds','toUpperCase','getHours','1311749SqSyBl','WARN','TRACE','getDate','getMinutes'];a167_0x3648=function(){return _0x47e281;};return a167_0x3648();}(function(_0x848d73){const _0x32d9a7=a167_0x1703;_0x848d73[_0x848d73[_0x32d9a7(0xb7)]=-0x2]='TRACE',_0x848d73[_0x848d73[_0x32d9a7(0xa5)]=-0x1]=_0x32d9a7(0xa5),_0x848d73[_0x848d73['INFO']=0x0]=_0x32d9a7(0xac),_0x848d73[_0x848d73[_0x32d9a7(0xb6)]=0x1]=_0x32d9a7(0xb6),_0x848d73[_0x848d73['ERROR']=0x2]='ERROR';}(LogLevel||(LogLevel={})));function a167_0x1703(_0x3c17b4,_0x541fc3){_0x3c17b4=_0x3c17b4-0x9e;const _0x3648bf=a167_0x3648();let _0x1703ee=_0x3648bf[_0x3c17b4];return _0x1703ee;}export function parseLogLevel(_0x5b5bc0){const _0xe13751=a167_0x1703;switch(_0x5b5bc0[_0xe13751(0xb3)]()){case _0xe13751(0xb7):return LogLevel[_0xe13751(0xb7)];case _0xe13751(0xa5):return LogLevel[_0xe13751(0xa5)];case _0xe13751(0xac):return LogLevel[_0xe13751(0xac)];case _0xe13751(0xb6):case'WARNING':return LogLevel[_0xe13751(0xb6)];case _0xe13751(0xa7):return LogLevel[_0xe13751(0xa7)];default:return LogLevel[_0xe13751(0xac)];}}export function logLevelToString(_0x5b924e){const _0x1875a7=a167_0x1703;switch(_0x5b924e){case LogLevel[_0x1875a7(0xb7)]:return'trace';case LogLevel[_0x1875a7(0xa5)]:return _0x1875a7(0xb1);case LogLevel['INFO']:return _0x1875a7(0xa8);case LogLevel[_0x1875a7(0xb6)]:return _0x1875a7(0xad);case LogLevel[_0x1875a7(0xa7)]:return _0x1875a7(0xba);default:return _0x1875a7(0xa8);}}export function formatTimestamp(_0xebe3e){const _0x3d9866=a167_0x1703,_0x21643e=_0xebe3e[_0x3d9866(0xa0)](),_0x548085=(_0xebe3e['getMonth']()+0x1)[_0x3d9866(0xb0)]()['padStart'](0x2,'0'),_0x1b6ba9=_0xebe3e[_0x3d9866(0xb8)]()[_0x3d9866(0xb0)]()[_0x3d9866(0x9e)](0x2,'0'),_0x28674f=_0xebe3e[_0x3d9866(0xb4)]()['toString']()[_0x3d9866(0x9e)](0x2,'0'),_0x578a69=_0xebe3e[_0x3d9866(0xb9)]()[_0x3d9866(0xb0)]()[_0x3d9866(0x9e)](0x2,'0'),_0x3b0e9a=_0xebe3e[_0x3d9866(0xb2)]()['toString']()['padStart'](0x2,'0'),_0x2155b4=_0xebe3e[_0x3d9866(0xa6)]()[_0x3d9866(0xb0)]()['padStart'](0x3,'0'),_0x4b58a5=-_0xebe3e[_0x3d9866(0xa2)](),_0x1a581e=Math[_0x3d9866(0xa1)](Math[_0x3d9866(0xae)](_0x4b58a5)/0x3c),_0x21bb43=Math[_0x3d9866(0xae)](_0x4b58a5)%0x3c,_0x1f00bb=_0x4b58a5>=0x0?'+':'-',_0x5333d9=''+_0x1f00bb+_0x1a581e['toString']()[_0x3d9866(0x9e)](0x2,'0')+_0x21bb43[_0x3d9866(0xb0)]()[_0x3d9866(0x9e)](0x2,'0');return _0x21643e+'-'+_0x548085+'-'+_0x1b6ba9+'\x20'+_0x28674f+':'+_0x578a69+':'+_0x3b0e9a+'.'+_0x2155b4+_0x5333d9;}
@@ -1 +1 @@
1
- (function(_0x198df0,_0x17c143){const _0x1dd885=a168_0x54b8,_0x6b369e=_0x198df0();while(!![]){try{const _0x4ab53d=-parseInt(_0x1dd885(0x85))/0x1+-parseInt(_0x1dd885(0x8e))/0x2*(-parseInt(_0x1dd885(0x8f))/0x3)+parseInt(_0x1dd885(0x87))/0x4*(-parseInt(_0x1dd885(0x89))/0x5)+-parseInt(_0x1dd885(0x86))/0x6+-parseInt(_0x1dd885(0x8c))/0x7+-parseInt(_0x1dd885(0x88))/0x8+-parseInt(_0x1dd885(0x8d))/0x9*(-parseInt(_0x1dd885(0x84))/0xa);if(_0x4ab53d===_0x17c143)break;else _0x6b369e['push'](_0x6b369e['shift']());}catch(_0x195628){_0x6b369e['push'](_0x6b369e['shift']());}}}(a168_0x23af,0x39c7f));export function validateLimitOption(_0x320889){const _0x25f52c=a168_0x54b8;if(!Number[_0x25f52c(0x8b)](_0x320889))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x320889+_0x25f52c(0x90)};if(_0x320889<=0x0)return{'isValid':![],'error':_0x25f52c(0x91)+_0x320889+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x320889};}function a168_0x54b8(_0xf9f741,_0x4bc92b){_0xf9f741=_0xf9f741-0x83;const _0x23af7f=a168_0x23af();let _0x54b8b9=_0x23af7f[_0xf9f741];return _0x54b8b9;}function a168_0x23af(){const _0x1efec3=['.\x20Must\x20be\x20a\x20positive\x20number.','isInteger','1964872phPMyX','8790543chHfjm','8GcYbiL','34404brRlFW','.\x20Must\x20be\x20an\x20integer.','Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20','10rkDvbS','102036LHcncw','424248bYGnYi','11604dubMuy','1012136GXofkq','355xoBowI'];a168_0x23af=function(){return _0x1efec3;};return a168_0x23af();}export function validateTimeoutOption(_0x5abeb5,_0x2b0f6a=0x1e){const _0x3a2c63=a168_0x54b8;if(_0x5abeb5===undefined)return{'isValid':!![],'value':_0x2b0f6a};const _0x951b12=typeof _0x5abeb5==='number'?_0x5abeb5:parseFloat(_0x5abeb5);if(isNaN(_0x951b12))return{'isValid':![],'error':_0x3a2c63(0x83)+_0x5abeb5+'.\x20Must\x20be\x20a\x20number.'};if(_0x951b12<=0x0)return{'isValid':![],'error':_0x3a2c63(0x83)+_0x951b12+_0x3a2c63(0x8a)};return{'isValid':!![],'value':_0x951b12};}
1
+ function a168_0x32ae(_0x22539f,_0x4b86e4){_0x22539f=_0x22539f-0xce;const _0x54f0c4=a168_0x54f0();let _0x32ae81=_0x54f0c4[_0x22539f];return _0x32ae81;}function a168_0x54f0(){const _0x47abe0=['Invalid\x20limit\x20value:\x20','1571308sWgMoI','1cDSHjC','13992072oKbuwD','11854920jeqsGN','isInteger','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20a\x20number.','.\x20Must\x20be\x20a\x20positive\x20number.','4714650mfWnDg','number','5522340uUfiMy','40LXbbgr','9693474oTTWwX','6rFrOYX','.\x20Must\x20be\x20an\x20integer.','2351162cdlByM','Invalid\x20timeout\x20value:\x20'];a168_0x54f0=function(){return _0x47abe0;};return a168_0x54f0();}(function(_0x2293e0,_0x589a81){const _0x374bbc=a168_0x32ae,_0x25732b=_0x2293e0();while(!![]){try{const _0x402338=parseInt(_0x374bbc(0xd3))/0x1*(parseInt(_0x374bbc(0xcf))/0x2)+parseInt(_0x374bbc(0xdf))/0x3*(-parseInt(_0x374bbc(0xd2))/0x4)+parseInt(_0x374bbc(0xdc))/0x5+parseInt(_0x374bbc(0xde))/0x6+parseInt(_0x374bbc(0xd5))/0x7+-parseInt(_0x374bbc(0xd4))/0x8+parseInt(_0x374bbc(0xda))/0x9*(-parseInt(_0x374bbc(0xdd))/0xa);if(_0x402338===_0x589a81)break;else _0x25732b['push'](_0x25732b['shift']());}catch(_0xd289c2){_0x25732b['push'](_0x25732b['shift']());}}}(a168_0x54f0,0xea295));export function validateLimitOption(_0x7e441e){const _0x3295a5=a168_0x32ae;if(!Number[_0x3295a5(0xd6)](_0x7e441e))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x7e441e+_0x3295a5(0xce)};if(_0x7e441e<=0x0)return{'isValid':![],'error':_0x3295a5(0xd1)+_0x7e441e+_0x3295a5(0xd7)};return{'isValid':!![],'value':_0x7e441e};}export function validateTimeoutOption(_0x511392,_0x12ea89=0x1e){const _0x3db348=a168_0x32ae;if(_0x511392===undefined)return{'isValid':!![],'value':_0x12ea89};const _0x14b6ff=typeof _0x511392===_0x3db348(0xdb)?_0x511392:parseFloat(_0x511392);if(isNaN(_0x14b6ff))return{'isValid':![],'error':_0x3db348(0xd0)+_0x511392+_0x3db348(0xd8)};if(_0x14b6ff<=0x0)return{'isValid':![],'error':_0x3db348(0xd0)+_0x14b6ff+_0x3db348(0xd9)};return{'isValid':!![],'value':_0x14b6ff};}
@@ -1 +1 @@
1
- function a169_0x2a14(){const _0x2fe91a=['163059KUSbrQ','1651520FNijat','12HmqLUP','close','885660UaVAKM','listening','No\x20available\x20port\x20found\x20between\x20','3673375lnQINE','4867240RkQvnQ','0.0.0.0','code','94934UdEkAr','EADDRINUSE','once','listen','204771crLAnA'];a169_0x2a14=function(){return _0x2fe91a;};return a169_0x2a14();}function a169_0x3b15(_0x24c21c,_0x48d5a2){_0x24c21c=_0x24c21c-0x185;const _0x2a149a=a169_0x2a14();let _0x3b1521=_0x2a149a[_0x24c21c];return _0x3b1521;}(function(_0x368393,_0x4eff28){const _0x54c8ea=a169_0x3b15,_0xa07c0c=_0x368393();while(!![]){try{const _0x33f670=parseInt(_0x54c8ea(0x191))/0x1+parseInt(_0x54c8ea(0x188))/0x2+parseInt(_0x54c8ea(0x18d))/0x3+-parseInt(_0x54c8ea(0x18e))/0x4+-parseInt(_0x54c8ea(0x194))/0x5+-parseInt(_0x54c8ea(0x18f))/0x6*(-parseInt(_0x54c8ea(0x18c))/0x7)+parseInt(_0x54c8ea(0x185))/0x8;if(_0x33f670===_0x4eff28)break;else _0xa07c0c['push'](_0xa07c0c['shift']());}catch(_0x23e2ee){_0xa07c0c['push'](_0xa07c0c['shift']());}}}(a169_0x2a14,0x7bbd4));import{createServer}from'node:net';export async function isPortAvailable(_0x167eb4){return new Promise(_0x33e212=>{const _0x4d8064=a169_0x3b15,_0x5617af=createServer();_0x5617af[_0x4d8064(0x18a)]('error',_0x227839=>{const _0x147bc9=_0x4d8064;_0x227839[_0x147bc9(0x187)]===_0x147bc9(0x189)?_0x33e212(![]):_0x33e212(![]);}),_0x5617af[_0x4d8064(0x18a)](_0x4d8064(0x192),()=>{const _0x3dde5a=_0x4d8064;_0x5617af[_0x3dde5a(0x190)](),_0x33e212(!![]);}),_0x5617af[_0x4d8064(0x18b)](_0x167eb4,_0x4d8064(0x186));});}export async function findAvailablePort(_0x2ab9d6=0xfa0,_0x5a1b0c=0x64){const _0xad2c04=a169_0x3b15;for(let _0x55206a=0x0;_0x55206a<_0x5a1b0c;_0x55206a++){const _0x20b059=_0x2ab9d6+_0x55206a;if(await isPortAvailable(_0x20b059))return _0x20b059;}throw new Error(_0xad2c04(0x193)+_0x2ab9d6+'\x20and\x20'+(_0x2ab9d6+_0x5a1b0c-0x1));}
1
+ (function(_0x22779b,_0x528a66){const _0x17f670=a169_0x4107,_0x46bce4=_0x22779b();while(!![]){try{const _0x4783f1=-parseInt(_0x17f670(0xd9))/0x1*(-parseInt(_0x17f670(0xd4))/0x2)+parseInt(_0x17f670(0xd1))/0x3*(-parseInt(_0x17f670(0xda))/0x4)+parseInt(_0x17f670(0xdb))/0x5+parseInt(_0x17f670(0xca))/0x6+-parseInt(_0x17f670(0xdc))/0x7+-parseInt(_0x17f670(0xd3))/0x8*(-parseInt(_0x17f670(0xdd))/0x9)+parseInt(_0x17f670(0xd2))/0xa*(-parseInt(_0x17f670(0xcd))/0xb);if(_0x4783f1===_0x528a66)break;else _0x46bce4['push'](_0x46bce4['shift']());}catch(_0x2d1a2a){_0x46bce4['push'](_0x46bce4['shift']());}}}(a169_0x32e3,0x45f83));import{createServer}from'node:net';function a169_0x4107(_0xade896,_0x145ab9){_0xade896=_0xade896-0xca;const _0x32e32e=a169_0x32e3();let _0x4107c1=_0x32e32e[_0xade896];return _0x4107c1;}export async function isPortAvailable(_0x5e56bb){return new Promise(_0x2c6423=>{const _0x58d5c4=a169_0x4107,_0x38ad18=createServer();_0x38ad18[_0x58d5c4(0xd7)](_0x58d5c4(0xcb),_0x23c6af=>{const _0x30cc2c=_0x58d5c4;_0x23c6af['code']===_0x30cc2c(0xd0)?_0x2c6423(![]):_0x2c6423(![]);}),_0x38ad18[_0x58d5c4(0xd7)](_0x58d5c4(0xcc),()=>{const _0x53cb3b=_0x58d5c4;_0x38ad18[_0x53cb3b(0xd5)](),_0x2c6423(!![]);}),_0x38ad18[_0x58d5c4(0xd8)](_0x5e56bb,_0x58d5c4(0xd6));});}function a169_0x32e3(){const _0x1f9b1d=['No\x20available\x20port\x20found\x20between\x20','EADDRINUSE','33KnxyVs','1019530KuruKM','136LNDUSf','28698RimgeN','close','0.0.0.0','once','listen','15drGKRd','20676PQmsQU','2833910BuMUal','1270115LJMjmL','104679AUMZak','941238nPhqGz','error','listening','66OXHssZ','\x20and\x20'];a169_0x32e3=function(){return _0x1f9b1d;};return a169_0x32e3();}export async function findAvailablePort(_0x56d7d6=0xfa0,_0x7c03ca=0x64){const _0x553e76=a169_0x4107;for(let _0x5ef5b1=0x0;_0x5ef5b1<_0x7c03ca;_0x5ef5b1++){const _0x560a4e=_0x56d7d6+_0x5ef5b1;if(await isPortAvailable(_0x560a4e))return _0x560a4e;}throw new Error(_0x553e76(0xcf)+_0x56d7d6+_0x553e76(0xce)+(_0x56d7d6+_0x7c03ca-0x1));}
@@ -1 +1 @@
1
- const a170_0x106e5e=a170_0x5760;(function(_0x53d820,_0x3a4807){const _0x2a9739=a170_0x5760,_0x15c094=_0x53d820();while(!![]){try{const _0x11acbe=parseInt(_0x2a9739(0x1b5))/0x1*(parseInt(_0x2a9739(0x1db))/0x2)+-parseInt(_0x2a9739(0x1d3))/0x3+-parseInt(_0x2a9739(0x1e2))/0x4*(-parseInt(_0x2a9739(0x1b6))/0x5)+-parseInt(_0x2a9739(0x1d9))/0x6*(parseInt(_0x2a9739(0x1e7))/0x7)+parseInt(_0x2a9739(0x1bb))/0x8*(-parseInt(_0x2a9739(0x1eb))/0x9)+parseInt(_0x2a9739(0x1e4))/0xa+parseInt(_0x2a9739(0x1ed))/0xb;if(_0x11acbe===_0x3a4807)break;else _0x15c094['push'](_0x15c094['shift']());}catch(_0x6973db){_0x15c094['push'](_0x15c094['shift']());}}}(a170_0x1d0a,0xe2044));function a170_0x5760(_0x2b6f46,_0x585965){_0x2b6f46=_0x2b6f46-0x1b3;const _0x1d0af2=a170_0x1d0a();let _0x5760ca=_0x1d0af2[_0x2b6f46];return _0x5760ca;}import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a170_0x106e5e(0x1bc),a170_0x106e5e(0x1ba),'sh','fish',a170_0x106e5e(0x1c7),a170_0x106e5e(0x1c0),'csh',a170_0x106e5e(0x1c6),a170_0x106e5e(0x1d7),'powershell','nu',a170_0x106e5e(0x1bf),'elvish',a170_0x106e5e(0x1cc)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a170_0x106e5e(0x1c1),'cursor',a170_0x106e5e(0x1e1),a170_0x106e5e(0x1d6)]);function getProcessInfoWindows(_0x1fd830){const _0x5a06c7=a170_0x106e5e;try{if(!Number[_0x5a06c7(0x1c3)](_0x1fd830)||_0x1fd830<=0x0)return null;const _0x1d3778=_0x5a06c7(0x1c2)+_0x1fd830+_0x5a06c7(0x1e6),_0x2d9398=execSync(_0x5a06c7(0x1e9)+_0x1d3778+'\x22',{'encoding':_0x5a06c7(0x1cb),'windowsHide':!![],'stdio':[_0x5a06c7(0x1cd),'pipe','pipe']})[_0x5a06c7(0x1e3)]();if(!_0x2d9398)return null;const [_0x2d381a,..._0x3aff75]=_0x2d9398[_0x5a06c7(0x1dc)](','),_0x40c8bc=parseInt(_0x2d381a,0xa),_0x3c91a5=_0x3aff75['join'](',')[_0x5a06c7(0x1e3)]();if(isNaN(_0x40c8bc)||!_0x3c91a5)return null;return{'pid':_0x1fd830,'ppid':_0x40c8bc,'comm':_0x3c91a5['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x11ac95){const _0x290142=a170_0x106e5e;try{const _0x3e0ed3=0x400000;if(!Number[_0x290142(0x1c3)](_0x11ac95)||_0x11ac95<=0x0||_0x11ac95>_0x3e0ed3)return null;const _0x4707aa=execSync(_0x290142(0x1cf)+_0x11ac95+'\x20-o\x20ppid=,comm=',{'encoding':_0x290142(0x1cb),'stdio':_0x290142(0x1cd)})[_0x290142(0x1e3)](),[_0x4d7405,..._0x3654ad]=_0x4707aa[_0x290142(0x1dc)](/\s+/),_0x3d0ce7=parseInt(_0x4d7405,0xa),_0x3b9212=_0x3654ad[_0x290142(0x1d8)]('\x20');if(isNaN(_0x3d0ce7))return null;return{'pid':_0x11ac95,'ppid':_0x3d0ce7,'comm':_0x3b9212};}catch{return null;}}function getProcessInfo(_0x2dcccc){const _0x327326=a170_0x106e5e;if(process[_0x327326(0x1ea)]===_0x327326(0x1c5))return getProcessInfoWindows(_0x2dcccc);return getProcessInfoPosix(_0x2dcccc);}function getBasename(_0x7592a6){const _0x2d9459=a170_0x106e5e;return _0x7592a6[_0x2d9459(0x1ec)](/^-/,'')[_0x2d9459(0x1dc)]('/')['pop']()?.[_0x2d9459(0x1d2)]()||'';}function isShell(_0x38f457){const _0x21cdd3=a170_0x106e5e;return SHELL_NAMES[_0x21cdd3(0x1bd)](getBasename(_0x38f457));}function isEphemeralShellSpawner(_0x2b71cc){const _0x356160=a170_0x106e5e;return EPHEMERAL_SHELL_SPAWNERS[_0x356160(0x1bd)](getBasename(_0x2b71cc));}let cachedShellPID;function findShellPID(){const _0x5a2ca0=a170_0x106e5e;if(process[_0x5a2ca0(0x1de)]===undefined)return process[_0x5a2ca0(0x1e8)];let _0x9e1a64=process[_0x5a2ca0(0x1de)];const _0x176ebc=0xa;let _0x4a79ab=0x0;while(_0x4a79ab<_0x176ebc){const _0x47d121=getProcessInfo(_0x9e1a64);if(!_0x47d121)break;if(isShell(_0x47d121[_0x5a2ca0(0x1c4)])){const _0x2a5106=getProcessInfo(_0x47d121[_0x5a2ca0(0x1de)]);if(_0x2a5106&&isEphemeralShellSpawner(_0x2a5106[_0x5a2ca0(0x1c4)])){_0x9e1a64=_0x47d121[_0x5a2ca0(0x1de)],_0x4a79ab++;continue;}return _0x47d121[_0x5a2ca0(0x1e8)];}if(_0x47d121[_0x5a2ca0(0x1de)]===0x0||_0x47d121[_0x5a2ca0(0x1de)]===0x1){if(isShell(_0x47d121[_0x5a2ca0(0x1c4)]))return _0x47d121[_0x5a2ca0(0x1e8)];break;}_0x9e1a64=_0x47d121[_0x5a2ca0(0x1de)],_0x4a79ab++;}return process[_0x5a2ca0(0x1de)]!==undefined?process[_0x5a2ca0(0x1de)]:process[_0x5a2ca0(0x1e8)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a170_0x1d0a(){const _0x4ed7e9=['30738HOYZey','https:','2MOVVSu','split','unref','ppid','protocol','Invalid\x20URL:\x20','electron','44GjNorT','trim','16678420kClbQs','data','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','98DmYlHX','pid','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','platform','18QbhiJQ','replace','2405821BbICLR','map','stdout','1321981HvVumj','236980SlGQAf','ignore','kill','test','zsh','6993728TheHcw','bash','has','which','ion','tcsh','code','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','isInteger','comm','win32','dash','ksh','href','exit','error','utf-8','xonsh','pipe','stderr','ps\x20-p\x20','toString','darwin','toLowerCase','2951916CmmMYe','start','http:','treasure\x20studio','pwsh','join'];a170_0x1d0a=function(){return _0x4ed7e9;};return a170_0x1d0a();}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x1de268){const _0xc373c=a170_0x106e5e;if(!Number[_0xc373c(0x1c3)](_0x1de268)||_0x1de268<=0x0)return![];try{return process[_0xc373c(0x1b8)](_0x1de268,0x0),!![];}catch{return![];}}export function openBrowser(_0x5bcc66){const _0x54e818=a170_0x106e5e;let _0x4841ce;try{_0x4841ce=new URL(_0x5bcc66);}catch{throw new Error(_0x54e818(0x1e0)+_0x5bcc66);}if(_0x4841ce[_0x54e818(0x1df)]!==_0x54e818(0x1d5)&&_0x4841ce['protocol']!==_0x54e818(0x1da))throw new Error('Unsupported\x20protocol:\x20'+_0x4841ce[_0x54e818(0x1df)]);const _0x47b9ad=_0x4841ce[_0x54e818(0x1c8)],_0x17fe3e=process['platform'];if(_0x17fe3e==='win32')spawn('cmd.exe',['/c',_0x54e818(0x1d4),'',_0x47b9ad],{'detached':!![],'stdio':'ignore'})['unref']();else{const _0x22ee7e=_0x17fe3e===_0x54e818(0x1d1)?'open':'xdg-open';spawn(_0x22ee7e,[_0x47b9ad],{'detached':!![],'stdio':_0x54e818(0x1b7)})[_0x54e818(0x1dd)]();}}export function isWindows(){const _0x38ed7b=a170_0x106e5e;return process['platform']===_0x38ed7b(0x1c5);}export function getCrossSpawnOptions(_0x39bd3f){return{..._0x39bd3f??{},'shell':isWindows()};}export function escapeWindowsArg(_0xf3aa35){const _0x3a2333=a170_0x106e5e;if(!/[ \t"&|<>^%!`\r\n]/[_0x3a2333(0x1b9)](_0xf3aa35))return _0xf3aa35;const _0xc1c026=_0xf3aa35['replace'](/"/g,'\x22\x22');return'\x22'+_0xc1c026+'\x22';}export function crossSpawn(_0x41f130,_0x3faa19,_0x1f4e7b){const _0x590fd7=a170_0x106e5e;if(isWindows()){const _0x221a97=escapeWindowsArg(_0x41f130),_0x1b2bf2=_0x3faa19[_0x590fd7(0x1b3)](escapeWindowsArg),_0x10ed2f=[_0x221a97,..._0x1b2bf2][_0x590fd7(0x1d8)]('\x20');return spawn(_0x10ed2f,[],{..._0x1f4e7b,'shell':!![]});}return spawn(_0x41f130,_0x3faa19,{..._0x1f4e7b,'shell':![]});}export function gracefulExit(_0x436a8f=0x0){const _0x21a41e=a170_0x106e5e;isWindows()?setImmediate(()=>process['exit'](_0x436a8f)):process[_0x21a41e(0x1c9)](_0x436a8f);}export function findExecutable(_0x34eafb,_0x2eb91d=0x1388){return new Promise(_0xdfb07e=>{const _0x4e5489=a170_0x5760,_0x290cb6=isWindows()?'where.exe':_0x4e5489(0x1be);let _0x24b8f0=![];const _0x14a6f9=crossSpawn(_0x290cb6,[_0x34eafb],{'stdio':_0x4e5489(0x1cd)}),_0x581ccf=setTimeout(()=>{const _0x3c902b=_0x4e5489;!_0x24b8f0&&(_0x24b8f0=!![],_0x14a6f9[_0x3c902b(0x1b8)](),_0xdfb07e(null));},_0x2eb91d);let _0x5766a3='';_0x14a6f9[_0x4e5489(0x1b4)]?.['on'](_0x4e5489(0x1e5),_0x3b1695=>{const _0x2ad1ef=_0x4e5489;_0x5766a3+=_0x3b1695[_0x2ad1ef(0x1d0)]();}),_0x14a6f9[_0x4e5489(0x1ce)]?.['on'](_0x4e5489(0x1e5),()=>{}),_0x14a6f9['on']('exit',_0x5973da=>{const _0x5815f9=_0x4e5489;if(_0x24b8f0)return;_0x24b8f0=!![],clearTimeout(_0x581ccf);if(_0x5973da===0x0&&_0x5766a3[_0x5815f9(0x1e3)]()){const _0x350efb=_0x5766a3[_0x5815f9(0x1e3)]()[_0x5815f9(0x1dc)](/\r?\n/)[0x0];_0xdfb07e(_0x350efb);}else _0xdfb07e(null);}),_0x14a6f9['on'](_0x4e5489(0x1ca),()=>{if(_0x24b8f0)return;_0x24b8f0=!![],clearTimeout(_0x581ccf),_0xdfb07e(null);});});}
1
+ const a170_0xcc23f2=a170_0x2c86;(function(_0x308128,_0x3061b6){const _0x5c9771=a170_0x2c86,_0x2842aa=_0x308128();while(!![]){try{const _0x24115c=parseInt(_0x5c9771(0x1d4))/0x1+parseInt(_0x5c9771(0x1d2))/0x2+parseInt(_0x5c9771(0x1e0))/0x3*(-parseInt(_0x5c9771(0x1cc))/0x4)+-parseInt(_0x5c9771(0x1df))/0x5*(-parseInt(_0x5c9771(0x1d8))/0x6)+-parseInt(_0x5c9771(0x1b9))/0x7*(parseInt(_0x5c9771(0x1dd))/0x8)+-parseInt(_0x5c9771(0x1ae))/0x9*(parseInt(_0x5c9771(0x1d5))/0xa)+parseInt(_0x5c9771(0x1cb))/0xb;if(_0x24115c===_0x3061b6)break;else _0x2842aa['push'](_0x2842aa['shift']());}catch(_0x53038a){_0x2842aa['push'](_0x2842aa['shift']());}}}(a170_0xc8f8,0xb3d34));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a170_0xcc23f2(0x1c8),a170_0xcc23f2(0x1b5),'sh','fish',a170_0xcc23f2(0x1cd),'tcsh',a170_0xcc23f2(0x1a9),a170_0xcc23f2(0x1b2),a170_0xcc23f2(0x1e7),a170_0xcc23f2(0x1d1),'nu',a170_0xcc23f2(0x1da),'elvish','xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a170_0xcc23f2(0x1b1),a170_0xcc23f2(0x1de),a170_0xcc23f2(0x1ce),'electron','treasure\x20studio']);function getProcessInfoWindows(_0x5e4bd7){const _0x3c3c65=a170_0xcc23f2;try{if(!Number['isInteger'](_0x5e4bd7)||_0x5e4bd7<=0x0)return null;const _0x3da0ad=_0x3c3c65(0x1db)+_0x5e4bd7+_0x3c3c65(0x1cf),_0xdaa796=execSync(_0x3c3c65(0x1bb)+_0x3da0ad+'\x22',{'encoding':_0x3c3c65(0x1be),'windowsHide':!![],'stdio':[_0x3c3c65(0x1d6),'pipe','pipe']})['trim']();if(!_0xdaa796)return null;const [_0x44c343,..._0xa4600d]=_0xdaa796[_0x3c3c65(0x1d9)](','),_0x38eaa4=parseInt(_0x44c343,0xa),_0x3cbab6=_0xa4600d[_0x3c3c65(0x1ac)](',')['trim']();if(isNaN(_0x38eaa4)||!_0x3cbab6)return null;return{'pid':_0x5e4bd7,'ppid':_0x38eaa4,'comm':_0x3cbab6[_0x3c3c65(0x1c7)](/\.exe$/i,'')};}catch{return null;}}function a170_0xc8f8(){const _0x9c77a5=['4328FeBzZy','ksh','cursor','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','open','powershell','2057576xhWCwX','toString','1156869pwBtMv','390eWAbRW','pipe','map','60BtHQbb','split','ion','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','xdg-open','645776XzZjfk','code','122690wxzViq','3675TRDpls','which','href','ignore','trim','exit','start','pwsh','csh','where.exe','data','join','unref','333603brediz','ps\x20-p\x20','Invalid\x20URL:\x20','claude','dash','Unsupported\x20protocol:\x20','platform','zsh','https:','ppid','stderr','35MgaPgW','comm','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','pid','error','utf-8','\x20-o\x20ppid=,comm=','has','http:','isInteger','darwin','stdout','kill','protocol','replace','bash','win32','test','16282200mUnHaF'];a170_0xc8f8=function(){return _0x9c77a5;};return a170_0xc8f8();}function getProcessInfoPosix(_0xe8eab7){const _0x575a28=a170_0xcc23f2;try{const _0x2ee97f=0x400000;if(!Number[_0x575a28(0x1c2)](_0xe8eab7)||_0xe8eab7<=0x0||_0xe8eab7>_0x2ee97f)return null;const _0x1dedc8=execSync(_0x575a28(0x1af)+_0xe8eab7+_0x575a28(0x1bf),{'encoding':_0x575a28(0x1be),'stdio':'pipe'})[_0x575a28(0x1e4)](),[_0xcf11a6,..._0x3db586]=_0x1dedc8[_0x575a28(0x1d9)](/\s+/),_0x353de1=parseInt(_0xcf11a6,0xa),_0x2cd378=_0x3db586[_0x575a28(0x1ac)]('\x20');if(isNaN(_0x353de1))return null;return{'pid':_0xe8eab7,'ppid':_0x353de1,'comm':_0x2cd378};}catch{return null;}}function getProcessInfo(_0xfc5dd){const _0x2d53ac=a170_0xcc23f2;if(process[_0x2d53ac(0x1b4)]==='win32')return getProcessInfoWindows(_0xfc5dd);return getProcessInfoPosix(_0xfc5dd);}function getBasename(_0x3e6183){return _0x3e6183['replace'](/^-/,'')['split']('/')['pop']()?.['toLowerCase']()||'';}function isShell(_0x5b74c9){return SHELL_NAMES['has'](getBasename(_0x5b74c9));}function isEphemeralShellSpawner(_0x20bc42){const _0xc4f0aa=a170_0xcc23f2;return EPHEMERAL_SHELL_SPAWNERS[_0xc4f0aa(0x1c0)](getBasename(_0x20bc42));}let cachedShellPID;function findShellPID(){const _0x40be62=a170_0xcc23f2;if(process['ppid']===undefined)return process['pid'];let _0x2323a4=process[_0x40be62(0x1b7)];const _0xf65e26=0xa;let _0x2b5326=0x0;while(_0x2b5326<_0xf65e26){const _0x41d8c6=getProcessInfo(_0x2323a4);if(!_0x41d8c6)break;if(isShell(_0x41d8c6['comm'])){const _0x5b0892=getProcessInfo(_0x41d8c6[_0x40be62(0x1b7)]);if(_0x5b0892&&isEphemeralShellSpawner(_0x5b0892[_0x40be62(0x1ba)])){_0x2323a4=_0x41d8c6[_0x40be62(0x1b7)],_0x2b5326++;continue;}return _0x41d8c6[_0x40be62(0x1bc)];}if(_0x41d8c6['ppid']===0x0||_0x41d8c6[_0x40be62(0x1b7)]===0x1){if(isShell(_0x41d8c6[_0x40be62(0x1ba)]))return _0x41d8c6[_0x40be62(0x1bc)];break;}_0x2323a4=_0x41d8c6[_0x40be62(0x1b7)],_0x2b5326++;}return process[_0x40be62(0x1b7)]!==undefined?process[_0x40be62(0x1b7)]:process[_0x40be62(0x1bc)];}function a170_0x2c86(_0x559223,_0x2adccf){_0x559223=_0x559223-0x1a9;const _0xc8f8ad=a170_0xc8f8();let _0x2c8653=_0xc8f8ad[_0x559223];return _0x2c8653;}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3cbe67){const _0x418d9e=a170_0xcc23f2;if(!Number[_0x418d9e(0x1c2)](_0x3cbe67)||_0x3cbe67<=0x0)return![];try{return process[_0x418d9e(0x1c5)](_0x3cbe67,0x0),!![];}catch{return![];}}export function openBrowser(_0x2af9b8){const _0x26c2f5=a170_0xcc23f2;let _0x44650e;try{_0x44650e=new URL(_0x2af9b8);}catch{throw new Error(_0x26c2f5(0x1b0)+_0x2af9b8);}if(_0x44650e[_0x26c2f5(0x1c6)]!==_0x26c2f5(0x1c1)&&_0x44650e['protocol']!==_0x26c2f5(0x1b6))throw new Error(_0x26c2f5(0x1b3)+_0x44650e[_0x26c2f5(0x1c6)]);const _0x1cd842=_0x44650e[_0x26c2f5(0x1e2)],_0x129f86=process['platform'];if(_0x129f86===_0x26c2f5(0x1c9))spawn('cmd.exe',['/c',_0x26c2f5(0x1e6),'',_0x1cd842],{'detached':!![],'stdio':_0x26c2f5(0x1e3)})[_0x26c2f5(0x1ad)]();else{const _0x34aab8=_0x129f86===_0x26c2f5(0x1c3)?_0x26c2f5(0x1d0):_0x26c2f5(0x1dc);spawn(_0x34aab8,[_0x1cd842],{'detached':!![],'stdio':'ignore'})[_0x26c2f5(0x1ad)]();}}export function isWindows(){const _0x3b7230=a170_0xcc23f2;return process[_0x3b7230(0x1b4)]===_0x3b7230(0x1c9);}export function getCrossSpawnOptions(_0x506124){return{..._0x506124??{},'shell':isWindows()};}export function escapeWindowsArg(_0x2447d7){const _0x470fe6=a170_0xcc23f2;if(!/[ \t"&|<>^%!`\r\n]/[_0x470fe6(0x1ca)](_0x2447d7))return _0x2447d7;const _0x10831c=_0x2447d7[_0x470fe6(0x1c7)](/"/g,'\x22\x22');return'\x22'+_0x10831c+'\x22';}export function crossSpawn(_0x1d4bbd,_0x1c7a62,_0x3abd14){const _0x48f728=a170_0xcc23f2;if(isWindows()){const _0x2d52fa=escapeWindowsArg(_0x1d4bbd),_0x586adc=_0x1c7a62[_0x48f728(0x1d7)](escapeWindowsArg),_0x8a8504=[_0x2d52fa,..._0x586adc][_0x48f728(0x1ac)]('\x20');return spawn(_0x8a8504,[],{..._0x3abd14,'shell':!![]});}return spawn(_0x1d4bbd,_0x1c7a62,{..._0x3abd14,'shell':![]});}export function gracefulExit(_0x58e374=0x0){const _0x2846b1=a170_0xcc23f2;isWindows()?setImmediate(()=>process[_0x2846b1(0x1e5)](_0x58e374)):process['exit'](_0x58e374);}export function findExecutable(_0x11b6a6,_0x3e6d85=0x1388){return new Promise(_0x5a6a4d=>{const _0x1fd172=a170_0x2c86,_0x512f74=isWindows()?_0x1fd172(0x1aa):_0x1fd172(0x1e1);let _0x476cc7=![];const _0x325027=crossSpawn(_0x512f74,[_0x11b6a6],{'stdio':_0x1fd172(0x1d6)}),_0x263be6=setTimeout(()=>{const _0x45337a=_0x1fd172;!_0x476cc7&&(_0x476cc7=!![],_0x325027[_0x45337a(0x1c5)](),_0x5a6a4d(null));},_0x3e6d85);let _0x21875f='';_0x325027[_0x1fd172(0x1c4)]?.['on'](_0x1fd172(0x1ab),_0x2722df=>{const _0x233e7f=_0x1fd172;_0x21875f+=_0x2722df[_0x233e7f(0x1d3)]();}),_0x325027[_0x1fd172(0x1b8)]?.['on'](_0x1fd172(0x1ab),()=>{}),_0x325027['on']('exit',_0x38d832=>{const _0x999ca3=_0x1fd172;if(_0x476cc7)return;_0x476cc7=!![],clearTimeout(_0x263be6);if(_0x38d832===0x0&&_0x21875f['trim']()){const _0x5b51a2=_0x21875f[_0x999ca3(0x1e4)]()[_0x999ca3(0x1d9)](/\r?\n/)[0x0];_0x5a6a4d(_0x5b51a2);}else _0x5a6a4d(null);}),_0x325027['on'](_0x1fd172(0x1bd),()=>{if(_0x476cc7)return;_0x476cc7=!![],clearTimeout(_0x263be6),_0x5a6a4d(null);});});}
@@ -1 +1 @@
1
- function a171_0x429a(_0x3cf4bd,_0x90afbc){_0x3cf4bd=_0x3cf4bd-0x10e;const _0x357270=a171_0x3572();let _0x429ab8=_0x357270[_0x3cf4bd];return _0x429ab8;}(function(_0x27f638,_0x160605){const _0x3cc6ad=a171_0x429a,_0x2f5c3b=_0x27f638();while(!![]){try{const _0x2013b5=parseInt(_0x3cc6ad(0x127))/0x1+parseInt(_0x3cc6ad(0x112))/0x2+-parseInt(_0x3cc6ad(0x11f))/0x3+-parseInt(_0x3cc6ad(0x117))/0x4*(-parseInt(_0x3cc6ad(0x125))/0x5)+parseInt(_0x3cc6ad(0x11a))/0x6+-parseInt(_0x3cc6ad(0x111))/0x7*(-parseInt(_0x3cc6ad(0x126))/0x8)+parseInt(_0x3cc6ad(0x120))/0x9;if(_0x2013b5===_0x160605)break;else _0x2f5c3b['push'](_0x2f5c3b['shift']());}catch(_0x527388){_0x2f5c3b['push'](_0x2f5c3b['shift']());}}}(a171_0x3572,0xc6f4d));import*as a171_0x5a27bf from'readline';export function isInteractive(){const _0x3a8bf6=a171_0x429a;return process[_0x3a8bf6(0x115)][_0x3a8bf6(0x118)]===!![];}export async function confirm(_0x4e4792){const _0x1d834d=a171_0x429a,_0x125baf=a171_0x5a27bf[_0x1d834d(0x11c)]({'input':process['stdin'],'output':process[_0x1d834d(0x121)]});return new Promise(_0x500c05=>{const _0xd595ed=_0x1d834d;_0x125baf['question'](_0x4e4792+_0xd595ed(0x116),_0x2ad4f9=>{const _0x428dfd=_0xd595ed;_0x125baf['close'](),_0x500c05(_0x2ad4f9[_0x428dfd(0x11d)]()==='y'||_0x2ad4f9[_0x428dfd(0x11d)]()==='yes');});});}export async function confirmKey(_0xec2204){const _0x295d38=a171_0x429a;if(!process[_0x295d38(0x115)][_0x295d38(0x118)])return![];return process[_0x295d38(0x124)][_0x295d38(0x122)](_0xec2204+_0x295d38(0x113)),new Promise(_0x2f4356=>{const _0x1adbc4=_0x295d38,_0x3a9dad=process[_0x1adbc4(0x115)];_0x3a9dad[_0x1adbc4(0x110)](!![]),_0x3a9dad[_0x1adbc4(0x11b)](),_0x3a9dad[_0x1adbc4(0x123)](_0x1adbc4(0x11e));const _0x27d739=_0x528a26=>{const _0x46d207=_0x1adbc4;_0x3a9dad[_0x46d207(0x110)](![]),_0x3a9dad[_0x46d207(0x10f)](),_0x3a9dad[_0x46d207(0x114)](_0x46d207(0x10e),_0x27d739);if(_0x528a26==='\x1b'){process['stderr'][_0x46d207(0x122)]('\x0a'),_0x2f4356(![]);return;}_0x528a26==='\x03'&&(process[_0x46d207(0x124)][_0x46d207(0x122)]('\x0a'),process[_0x46d207(0x119)](0x82));if(_0x528a26['toLowerCase']()==='y'){process[_0x46d207(0x124)]['write']('y\x0a'),_0x2f4356(!![]);return;}process['stderr'][_0x46d207(0x122)]('\x0a'),_0x2f4356(![]);};_0x3a9dad['on']('data',_0x27d739);});}function a171_0x3572(){const _0x31c9a7=['\x20(y/N):\x20','4PSaTTP','isTTY','exit','2423886ZRwDYW','resume','createInterface','toLowerCase','utf8','3932793WMUoOR','6779916kHIfCI','stdout','write','setEncoding','stderr','952045QAEcBV','16VcFKRz','299083JGKKxL','data','pause','setRawMode','424214GFWsyh','715710fsGqFn','\x20[y/N]\x20','removeListener','stdin'];a171_0x3572=function(){return _0x31c9a7;};return a171_0x3572();}
1
+ (function(_0xf17857,_0x3a0679){const _0x3aa72c=a171_0x2419,_0x49fa0e=_0xf17857();while(!![]){try{const _0x55dca2=-parseInt(_0x3aa72c(0xa0))/0x1*(-parseInt(_0x3aa72c(0x9d))/0x2)+-parseInt(_0x3aa72c(0xa8))/0x3+-parseInt(_0x3aa72c(0xa6))/0x4+parseInt(_0x3aa72c(0x99))/0x5*(parseInt(_0x3aa72c(0xad))/0x6)+parseInt(_0x3aa72c(0xb1))/0x7+-parseInt(_0x3aa72c(0xa9))/0x8*(-parseInt(_0x3aa72c(0x9c))/0x9)+parseInt(_0x3aa72c(0x9b))/0xa;if(_0x55dca2===_0x3a0679)break;else _0x49fa0e['push'](_0x49fa0e['shift']());}catch(_0x5dea64){_0x49fa0e['push'](_0x49fa0e['shift']());}}}(a171_0x2e45,0x36a6b));function a171_0x2e45(){const _0x339246=['231135bFVyNP','close','data','toLowerCase','exit','resume','1238904oZdBrr','setRawMode','1103391tnJSzX','383704CcMcjb','write','removeListener','isTTY','70116rigFKR','utf8','setEncoding','stderr','1055047qhlWmc','pause','stdin','stdout','30fXiTCP','\x20(y/N):\x20','1136610LHBLDq','63bDagqQ','2XfpIBG','question','\x20[y/N]\x20'];a171_0x2e45=function(){return _0x339246;};return a171_0x2e45();}function a171_0x2419(_0xd5cdf3,_0x5550b4){_0xd5cdf3=_0xd5cdf3-0x98;const _0x2e4505=a171_0x2e45();let _0x241912=_0x2e4505[_0xd5cdf3];return _0x241912;}import*as a171_0x4fb01c from'readline';export function isInteractive(){const _0x2be09e=a171_0x2419;return process[_0x2be09e(0xb3)][_0x2be09e(0xac)]===!![];}export async function confirm(_0x1a3d41){const _0x2599ea=a171_0x2419,_0x10dc32=a171_0x4fb01c['createInterface']({'input':process[_0x2599ea(0xb3)],'output':process[_0x2599ea(0x98)]});return new Promise(_0x2bf1fa=>{const _0x5279cf=_0x2599ea;_0x10dc32[_0x5279cf(0x9e)](_0x1a3d41+_0x5279cf(0x9a),_0x110795=>{const _0x592705=_0x5279cf;_0x10dc32[_0x592705(0xa1)](),_0x2bf1fa(_0x110795['toLowerCase']()==='y'||_0x110795[_0x592705(0xa3)]()==='yes');});});}export async function confirmKey(_0x16219b){const _0x4e75f8=a171_0x2419;if(!process[_0x4e75f8(0xb3)][_0x4e75f8(0xac)])return![];return process['stderr']['write'](_0x16219b+_0x4e75f8(0x9f)),new Promise(_0xe5cd3a=>{const _0x7f1d86=_0x4e75f8,_0x481979=process[_0x7f1d86(0xb3)];_0x481979[_0x7f1d86(0xa7)](!![]),_0x481979[_0x7f1d86(0xa5)](),_0x481979[_0x7f1d86(0xaf)](_0x7f1d86(0xae));const _0x31c780=_0x1d021a=>{const _0x50d0d6=_0x7f1d86;_0x481979[_0x50d0d6(0xa7)](![]),_0x481979[_0x50d0d6(0xb2)](),_0x481979[_0x50d0d6(0xab)](_0x50d0d6(0xa2),_0x31c780);if(_0x1d021a==='\x1b'){process[_0x50d0d6(0xb0)][_0x50d0d6(0xaa)]('\x0a'),_0xe5cd3a(![]);return;}_0x1d021a==='\x03'&&(process[_0x50d0d6(0xb0)]['write']('\x0a'),process[_0x50d0d6(0xa4)](0x82));if(_0x1d021a[_0x50d0d6(0xa3)]()==='y'){process['stderr'][_0x50d0d6(0xaa)]('y\x0a'),_0xe5cd3a(!![]);return;}process[_0x50d0d6(0xb0)][_0x50d0d6(0xaa)]('\x0a'),_0xe5cd3a(![]);};_0x481979['on'](_0x7f1d86(0xa2),_0x31c780);});}
@@ -1 +1 @@
1
- (function(_0xc0834e,_0x2116ed){const _0xea21f8=a172_0x1c82,_0x56a1a0=_0xc0834e();while(!![]){try{const _0x3ec39e=-parseInt(_0xea21f8(0x1f3))/0x1*(-parseInt(_0xea21f8(0x1f1))/0x2)+parseInt(_0xea21f8(0x1fc))/0x3+parseInt(_0xea21f8(0x1e7))/0x4+-parseInt(_0xea21f8(0x1f7))/0x5*(parseInt(_0xea21f8(0x1e8))/0x6)+-parseInt(_0xea21f8(0x1ec))/0x7+parseInt(_0xea21f8(0x1f9))/0x8*(-parseInt(_0xea21f8(0x1f0))/0x9)+-parseInt(_0xea21f8(0x1fd))/0xa*(-parseInt(_0xea21f8(0x1ed))/0xb);if(_0x3ec39e===_0x2116ed)break;else _0x56a1a0['push'](_0x56a1a0['shift']());}catch(_0x508bd2){_0x56a1a0['push'](_0x56a1a0['shift']());}}}(a172_0x2791,0x51ae9));function a172_0x2791(){const _0x38f7d9=['isTTY','text','7868whbdyH','583cdXRfp','\x20[Job\x20ID:\x20','trim','72DxHSZX','1364YkulYO','now','176slKNmE','start','stderr','...','20195SwYQQt','stop','656976nxPwTY','floor','replace','404763ENxVJR','211490HexAyY','Processing','intervalFactory','jobId','isSpinning','phase','clock','664492jmVaIH','816QTKMKp','extra'];a172_0x2791=function(){return _0x38f7d9;};return a172_0x2791();}import a172_0x300af9 from'ora';function a172_0x1c82(_0x5c6123,_0xc6af93){_0x5c6123=_0x5c6123-0x1e3;const _0x279154=a172_0x2791();let _0x1c8236=_0x279154[_0x5c6123];return _0x1c8236;}import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x137997,_0x2c0511={}){const _0x49113b=a172_0x1c82,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x2c0511;return a172_0x300af9({'text':_0x137997,'color':'cyan','stream':process[_0x49113b(0x1f5)],'isEnabled':forceEnabled||process[_0x49113b(0x1f5)][_0x49113b(0x1ea)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x2c4b62,_0x16904d,_0x235ac6={}){const _0x20053f=a172_0x1c82,_0x4d2810=_0x235ac6[_0x20053f(0x1e6)]??(()=>Date['now']()),_0x50edcf=createCommandSpinner(_0x2c4b62,_0x235ac6);_0x50edcf[_0x20053f(0x1f4)]();const _0x191879=_0x4d2810();try{const _0x47b5f8=await _0x16904d(),_0x3492b2=_0x4d2810()-_0x191879;return _0x50edcf['stop'](),{'data':_0x47b5f8,'elapsedMs':_0x3492b2};}catch(_0x1c7997){_0x50edcf[_0x20053f(0x1f8)]();throw _0x1c7997;}}export async function withProgressSpinner(_0x12edc6,_0x918650,_0x545eaf={}){const _0x302e03=a172_0x1c82,_0x4789c9=_0x545eaf[_0x302e03(0x1e6)]??(()=>Date[_0x302e03(0x1f2)]()),_0x1e7baa=_0x545eaf[_0x302e03(0x1ff)]??setInterval,_0x5358a0=createCommandSpinner(_0x12edc6,_0x545eaf);_0x5358a0['start']();const _0x4542c0=_0x4789c9(),_0x4dc3f0=_0x12edc6[_0x302e03(0x1fb)](_0x302e03(0x1f6),'')['trim']()||_0x302e03(0x1fe),_0x4011ad={};let _0x462bd2=_0x12edc6;const _0x58aa28=()=>{const _0x597972=_0x302e03;if(!_0x5358a0[_0x597972(0x1e4)])return;const _0x1ded54=_0x4789c9()-_0x4542c0,_0x54149a=formatElapsed(_0x1ded54),_0x59c6b0=_0x4011ad[_0x597972(0x1e5)]?.[_0x597972(0x1ef)]()||_0x4dc3f0,_0x2b4c21=_0x4011ad['jobId']?_0x597972(0x1ee)+_0x4011ad['jobId']+']':'',_0x46eb65=_0x4011ad[_0x597972(0x1e9)]?'\x20'+_0x4011ad['extra']:'',_0x2590f5=_0x59c6b0+'\x20'+_0x54149a+_0x46eb65+_0x2b4c21;_0x2590f5!==_0x462bd2&&_0x2590f5[_0x597972(0x1ef)]()&&(_0x5358a0[_0x597972(0x1eb)]=_0x2590f5,_0x462bd2=_0x2590f5);},_0xbbf6f6=_0x1e7baa(()=>{_0x58aa28();},0x3e8),_0x347b72={'setPhase':_0x5ebd73=>{const _0x2ea0c9=_0x302e03;_0x4011ad[_0x2ea0c9(0x1e5)]=_0x5ebd73;const _0x5425c1=_0x5ebd73?.[_0x2ea0c9(0x1ef)]()||_0x4dc3f0,_0x5c3aa2=_0x4789c9()-_0x4542c0,_0x32da04=formatElapsed(_0x5c3aa2),_0x75a8fd=_0x4011ad['jobId']?'\x20[Job\x20ID:\x20'+_0x4011ad[_0x2ea0c9(0x1e3)]+']':'',_0x101523=_0x4011ad['extra']?'\x20'+_0x4011ad[_0x2ea0c9(0x1e9)]:'',_0x42c55a=_0x5425c1+'\x20'+_0x32da04+_0x101523+_0x75a8fd;_0x5358a0['isSpinning']&&_0x42c55a[_0x2ea0c9(0x1ef)]()&&(_0x5358a0['text']=_0x42c55a,_0x462bd2=_0x42c55a);},'setJobId':_0x98ad1c=>{const _0x1914e4=_0x302e03;_0x4011ad[_0x1914e4(0x1e3)]=_0x98ad1c,_0x58aa28();},'setExtra':_0x2bff77=>{const _0x281b51=_0x302e03;_0x4011ad[_0x281b51(0x1e9)]=_0x2bff77,_0x58aa28();}};_0x58aa28();try{const _0x44272f=await _0x918650(_0x347b72),_0x45b411=_0x4789c9()-_0x4542c0;return{'data':_0x44272f,'elapsedMs':_0x45b411};}finally{clearInterval(_0xbbf6f6),_0x5358a0[_0x302e03(0x1f8)]();}}export function formatElapsed(_0x3468ba){const _0x4b9368=a172_0x1c82,_0x216a98=Math[_0x4b9368(0x1fa)](_0x3468ba/0x3e8);if(_0x216a98<0x3c)return(_0x3468ba/0x3e8)['toFixed'](0x1)+'s';const _0x32dc39=Math[_0x4b9368(0x1fa)](_0x216a98/0x3c),_0x333f6c=_0x216a98%0x3c;if(_0x32dc39<0x3c)return _0x32dc39+'m\x20'+_0x333f6c+'s';const _0x277fdd=Math[_0x4b9368(0x1fa)](_0x32dc39/0x3c),_0x1fa673=_0x32dc39%0x3c;return _0x277fdd+'h\x20'+_0x1fa673+'m';}
1
+ (function(_0x590fa7,_0x272bb1){const _0x1ed9e6=a172_0x38dc,_0x10a627=_0x590fa7();while(!![]){try{const _0x9632e9=parseInt(_0x1ed9e6(0x153))/0x1+parseInt(_0x1ed9e6(0x150))/0x2+-parseInt(_0x1ed9e6(0x160))/0x3+parseInt(_0x1ed9e6(0x14c))/0x4*(-parseInt(_0x1ed9e6(0x158))/0x5)+parseInt(_0x1ed9e6(0x15d))/0x6*(-parseInt(_0x1ed9e6(0x149))/0x7)+parseInt(_0x1ed9e6(0x15c))/0x8*(parseInt(_0x1ed9e6(0x14d))/0x9)+-parseInt(_0x1ed9e6(0x147))/0xa*(-parseInt(_0x1ed9e6(0x159))/0xb);if(_0x9632e9===_0x272bb1)break;else _0x10a627['push'](_0x10a627['shift']());}catch(_0x3d5eb0){_0x10a627['push'](_0x10a627['shift']());}}}(a172_0x3e62,0x31565));import a172_0x24c05a from'ora';function a172_0x38dc(_0x2705de,_0xc1d54b){_0x2705de=_0x2705de-0x147;const _0x3e62e6=a172_0x3e62();let _0x38dccc=_0x3e62e6[_0x2705de];return _0x38dccc;}import{isWindows}from'./process.js';function a172_0x3e62(){const _0x480976=['extra','isTTY','96lceXkb','14754BaexJF','...','isSpinning','1005882kRswCI','jobId','trim','20LtzpNK','floor','721GlHwlS','text','toFixed','4lpskFT','52911okgANf','\x20[Job\x20ID:\x20','clock','252670hTCTEP','stop','start','39067aoLGMu','intervalFactory','cyan','Processing','phase','559670JzbYnb','3666520MpzMes'];a172_0x3e62=function(){return _0x480976;};return a172_0x3e62();}const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x307428,_0x1024fd={}){const _0x4f6352=a172_0x38dc,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1024fd;return a172_0x24c05a({'text':_0x307428,'color':_0x4f6352(0x155),'stream':process['stderr'],'isEnabled':forceEnabled||process['stderr'][_0x4f6352(0x15b)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x33b668,_0x568134,_0x4be899={}){const _0x5e3301=a172_0x38dc,_0x4a79a4=_0x4be899[_0x5e3301(0x14f)]??(()=>Date['now']()),_0x418d00=createCommandSpinner(_0x33b668,_0x4be899);_0x418d00[_0x5e3301(0x152)]();const _0x5caf94=_0x4a79a4();try{const _0xa77ae8=await _0x568134(),_0x3faeae=_0x4a79a4()-_0x5caf94;return _0x418d00[_0x5e3301(0x151)](),{'data':_0xa77ae8,'elapsedMs':_0x3faeae};}catch(_0x203929){_0x418d00['stop']();throw _0x203929;}}export async function withProgressSpinner(_0x42759b,_0x2054d0,_0x32f48c={}){const _0x2927ad=a172_0x38dc,_0x3770c1=_0x32f48c['clock']??(()=>Date['now']()),_0x1ad28e=_0x32f48c[_0x2927ad(0x154)]??setInterval,_0x4593f0=createCommandSpinner(_0x42759b,_0x32f48c);_0x4593f0[_0x2927ad(0x152)]();const _0x45cf6e=_0x3770c1(),_0x229ae1=_0x42759b['replace'](_0x2927ad(0x15e),'')[_0x2927ad(0x162)]()||_0x2927ad(0x156),_0x27176d={};let _0x43ffd6=_0x42759b;const _0x26c194=()=>{const _0x2c6033=_0x2927ad;if(!_0x4593f0['isSpinning'])return;const _0x47bc59=_0x3770c1()-_0x45cf6e,_0x2b9cea=formatElapsed(_0x47bc59),_0x44268c=_0x27176d[_0x2c6033(0x157)]?.['trim']()||_0x229ae1,_0x2b59fe=_0x27176d[_0x2c6033(0x161)]?_0x2c6033(0x14e)+_0x27176d[_0x2c6033(0x161)]+']':'',_0x53d99c=_0x27176d[_0x2c6033(0x15a)]?'\x20'+_0x27176d[_0x2c6033(0x15a)]:'',_0x10a357=_0x44268c+'\x20'+_0x2b9cea+_0x53d99c+_0x2b59fe;_0x10a357!==_0x43ffd6&&_0x10a357[_0x2c6033(0x162)]()&&(_0x4593f0['text']=_0x10a357,_0x43ffd6=_0x10a357);},_0x2fc6db=_0x1ad28e(()=>{_0x26c194();},0x3e8),_0x341035={'setPhase':_0x3a6a80=>{const _0x3b9f20=_0x2927ad;_0x27176d[_0x3b9f20(0x157)]=_0x3a6a80;const _0x1142df=_0x3a6a80?.['trim']()||_0x229ae1,_0x2a3ad0=_0x3770c1()-_0x45cf6e,_0x73f095=formatElapsed(_0x2a3ad0),_0x2c4947=_0x27176d[_0x3b9f20(0x161)]?'\x20[Job\x20ID:\x20'+_0x27176d[_0x3b9f20(0x161)]+']':'',_0x4350b7=_0x27176d[_0x3b9f20(0x15a)]?'\x20'+_0x27176d[_0x3b9f20(0x15a)]:'',_0x3c98da=_0x1142df+'\x20'+_0x73f095+_0x4350b7+_0x2c4947;_0x4593f0[_0x3b9f20(0x15f)]&&_0x3c98da['trim']()&&(_0x4593f0[_0x3b9f20(0x14a)]=_0x3c98da,_0x43ffd6=_0x3c98da);},'setJobId':_0x1d4d7b=>{const _0x33047d=_0x2927ad;_0x27176d[_0x33047d(0x161)]=_0x1d4d7b,_0x26c194();},'setExtra':_0x5790cc=>{const _0x458f57=_0x2927ad;_0x27176d[_0x458f57(0x15a)]=_0x5790cc,_0x26c194();}};_0x26c194();try{const _0x2bc4b3=await _0x2054d0(_0x341035),_0x21d897=_0x3770c1()-_0x45cf6e;return{'data':_0x2bc4b3,'elapsedMs':_0x21d897};}finally{clearInterval(_0x2fc6db),_0x4593f0[_0x2927ad(0x151)]();}}export function formatElapsed(_0x57273c){const _0x4fbd20=a172_0x38dc,_0xcb0a4d=Math[_0x4fbd20(0x148)](_0x57273c/0x3e8);if(_0xcb0a4d<0x3c)return(_0x57273c/0x3e8)[_0x4fbd20(0x14b)](0x1)+'s';const _0x56efed=Math[_0x4fbd20(0x148)](_0xcb0a4d/0x3c),_0x299a81=_0xcb0a4d%0x3c;if(_0x56efed<0x3c)return _0x56efed+'m\x20'+_0x299a81+'s';const _0x50e8ca=Math['floor'](_0x56efed/0x3c),_0x1f8a26=_0x56efed%0x3c;return _0x50e8ca+'h\x20'+_0x1f8a26+'m';}
@@ -1 +1 @@
1
- function a173_0xe401(_0x2d23b2,_0x1720c4){_0x2d23b2=_0x2d23b2-0x14e;const _0x21496b=a173_0x2149();let _0xe401f4=_0x21496b[_0x2d23b2];return _0xe401f4;}(function(_0x4c185f,_0x34cda8){const _0x4919f5=a173_0xe401,_0x1b7fa8=_0x4c185f();while(!![]){try{const _0x53899f=parseInt(_0x4919f5(0x150))/0x1+-parseInt(_0x4919f5(0x159))/0x2+parseInt(_0x4919f5(0x15d))/0x3+-parseInt(_0x4919f5(0x162))/0x4*(parseInt(_0x4919f5(0x160))/0x5)+-parseInt(_0x4919f5(0x14f))/0x6+-parseInt(_0x4919f5(0x156))/0x7+parseInt(_0x4919f5(0x15a))/0x8;if(_0x53899f===_0x34cda8)break;else _0x1b7fa8['push'](_0x1b7fa8['shift']());}catch(_0x41ed07){_0x1b7fa8['push'](_0x1b7fa8['shift']());}}}(a173_0x2149,0x217bf));function a173_0x2149(){const _0x762af=['150516RRQrEU','237136FRhlEu','indexOf','data','549324QdQqbb','body','trim','123995BnkNqd','releaseLock','16kIXxYe','startsWith','pop','444636oKLKMI','226415DFiEXe','slice','[LLM\x20API\x20SSE]\x20','getReader','debug','Response\x20body\x20is\x20null','374178aqiooc','split','parse'];a173_0x2149=function(){return _0x762af;};return a173_0x2149();}export async function*parseSSEStream(_0x1b56a4,_0x4b122a){const _0x1bcf3e=a173_0xe401;if(!_0x1b56a4[_0x1bcf3e(0x15e)])throw new Error(_0x1bcf3e(0x155));const _0x17938d=_0x1b56a4[_0x1bcf3e(0x15e)][_0x1bcf3e(0x153)](),_0x4b5468=new TextDecoder();let _0x521b75='',_0x526b10={};try{while(!![]){const {done:_0x389a17,value:_0x3b07eb}=await _0x17938d['read']();if(_0x389a17){if(_0x526b10[_0x1bcf3e(0x15c)]){_0x4b122a?.[_0x1bcf3e(0x154)](_0x1bcf3e(0x152)+_0x526b10['data']);const _0x1b334c=parseSSEData(_0x526b10[_0x1bcf3e(0x15c)]);yield _0x1b334c;}break;}_0x521b75+=_0x4b5468['decode'](_0x3b07eb,{'stream':!![]});const _0x1e09fb=_0x521b75[_0x1bcf3e(0x157)]('\x0a');_0x521b75=_0x1e09fb[_0x1bcf3e(0x14e)]()||'';for(const _0x1e4416 of _0x1e09fb){if(_0x1e4416[_0x1bcf3e(0x15f)]()===''){if(_0x526b10[_0x1bcf3e(0x15c)]){_0x4b122a?.[_0x1bcf3e(0x154)](_0x1bcf3e(0x152)+_0x526b10[_0x1bcf3e(0x15c)]);const _0x214973=parseSSEData(_0x526b10['data']);yield _0x214973,_0x526b10={};}continue;}if(_0x1e4416[_0x1bcf3e(0x163)](':'))continue;const _0x3be2c5=_0x1e4416[_0x1bcf3e(0x15b)](':');if(_0x3be2c5===-0x1)continue;const _0x2d82ec=_0x1e4416[_0x1bcf3e(0x151)](0x0,_0x3be2c5);let _0x3f45fb=_0x1e4416[_0x1bcf3e(0x151)](_0x3be2c5+0x1);_0x3f45fb[_0x1bcf3e(0x163)]('\x20')&&(_0x3f45fb=_0x3f45fb['slice'](0x1));switch(_0x2d82ec){case'event':_0x526b10['event']=_0x3f45fb;break;case'data':_0x526b10['data']=_0x526b10[_0x1bcf3e(0x15c)]?_0x526b10[_0x1bcf3e(0x15c)]+'\x0a'+_0x3f45fb:_0x3f45fb;break;case'id':_0x526b10['id']=_0x3f45fb;break;}}}}finally{_0x17938d[_0x1bcf3e(0x161)]();}}function parseSSEData(_0x3ef727){const _0x1be20c=a173_0xe401;try{return JSON[_0x1be20c(0x158)](_0x3ef727);}catch(_0x10f943){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x3ef727,{'cause':_0x10f943});}}
1
+ function a173_0x3a3b(_0x28b1ac,_0x1f8fea){_0x28b1ac=_0x28b1ac-0x157;const _0x2cb65b=a173_0x2cb6();let _0x3a3b71=_0x2cb65b[_0x28b1ac];return _0x3a3b71;}(function(_0x474295,_0x4abbe6){const _0x122492=a173_0x3a3b,_0x44720d=_0x474295();while(!![]){try{const _0x3221d3=parseInt(_0x122492(0x15a))/0x1+parseInt(_0x122492(0x165))/0x2*(parseInt(_0x122492(0x168))/0x3)+parseInt(_0x122492(0x157))/0x4+-parseInt(_0x122492(0x159))/0x5+parseInt(_0x122492(0x169))/0x6+parseInt(_0x122492(0x160))/0x7+-parseInt(_0x122492(0x16a))/0x8;if(_0x3221d3===_0x4abbe6)break;else _0x44720d['push'](_0x44720d['shift']());}catch(_0x5ad35d){_0x44720d['push'](_0x44720d['shift']());}}}(a173_0x2cb6,0xc1708));export async function*parseSSEStream(_0x40d214,_0x4daa8d){const _0x16077f=a173_0x3a3b;if(!_0x40d214['body'])throw new Error(_0x16077f(0x15e));const _0x80dcf6=_0x40d214[_0x16077f(0x167)][_0x16077f(0x163)](),_0xabb4a3=new TextDecoder();let _0x4d9f10='',_0x230571={};try{while(!![]){const {done:_0x31739a,value:_0x5436f9}=await _0x80dcf6[_0x16077f(0x15d)]();if(_0x31739a){if(_0x230571[_0x16077f(0x162)]){_0x4daa8d?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x230571[_0x16077f(0x162)]);const _0xab315a=parseSSEData(_0x230571['data']);yield _0xab315a;}break;}_0x4d9f10+=_0xabb4a3['decode'](_0x5436f9,{'stream':!![]});const _0x28c7d5=_0x4d9f10['split']('\x0a');_0x4d9f10=_0x28c7d5[_0x16077f(0x16b)]()||'';for(const _0x39410c of _0x28c7d5){if(_0x39410c[_0x16077f(0x15f)]()===''){if(_0x230571[_0x16077f(0x162)]){_0x4daa8d?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x230571[_0x16077f(0x162)]);const _0x165140=parseSSEData(_0x230571[_0x16077f(0x162)]);yield _0x165140,_0x230571={};}continue;}if(_0x39410c[_0x16077f(0x15c)](':'))continue;const _0x4b4686=_0x39410c[_0x16077f(0x158)](':');if(_0x4b4686===-0x1)continue;const _0x5cf70a=_0x39410c['slice'](0x0,_0x4b4686);let _0x556899=_0x39410c[_0x16077f(0x15b)](_0x4b4686+0x1);_0x556899[_0x16077f(0x15c)]('\x20')&&(_0x556899=_0x556899['slice'](0x1));switch(_0x5cf70a){case _0x16077f(0x164):_0x230571[_0x16077f(0x164)]=_0x556899;break;case _0x16077f(0x162):_0x230571[_0x16077f(0x162)]=_0x230571[_0x16077f(0x162)]?_0x230571['data']+'\x0a'+_0x556899:_0x556899;break;case'id':_0x230571['id']=_0x556899;break;}}}}finally{_0x80dcf6[_0x16077f(0x161)]();}}function parseSSEData(_0xaab342){const _0x3199d2=a173_0x3a3b;try{return JSON[_0x3199d2(0x166)](_0xaab342);}catch(_0xbff293){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0xaab342,{'cause':_0xbff293});}}function a173_0x2cb6(){const _0x512a32=['read','Response\x20body\x20is\x20null','trim','9465316dHFbnh','releaseLock','data','getReader','event','4imyyLp','parse','body','1944771PJKuIa','2293422cQgyZz','26526856laqHQR','pop','3306996YjrTDC','indexOf','986490HjajKh','447795eIBEJb','slice','startsWith'];a173_0x2cb6=function(){return _0x512a32;};return a173_0x2cb6();}
@@ -1 +1 @@
1
- (function(_0x172084,_0x5eb921){const _0x2a5925=a174_0x4f5a,_0x19aba1=_0x172084();while(!![]){try{const _0x13804e=-parseInt(_0x2a5925(0x14a))/0x1*(parseInt(_0x2a5925(0x13c))/0x2)+-parseInt(_0x2a5925(0x142))/0x3+-parseInt(_0x2a5925(0x140))/0x4*(-parseInt(_0x2a5925(0x152))/0x5)+parseInt(_0x2a5925(0x141))/0x6+-parseInt(_0x2a5925(0x143))/0x7+parseInt(_0x2a5925(0x150))/0x8+parseInt(_0x2a5925(0x13d))/0x9*(parseInt(_0x2a5925(0x149))/0xa);if(_0x13804e===_0x5eb921)break;else _0x19aba1['push'](_0x19aba1['shift']());}catch(_0x519425){_0x19aba1['push'](_0x19aba1['shift']());}}}(a174_0x4c34,0x4e2a7));import a174_0x1e8169 from'string-width';export function stringWidth(_0x2279dc){return a174_0x1e8169(_0x2279dc);}export function padEnd(_0x53dcb8,_0xf3115e){const _0x3ed8aa=a174_0x4f5a,_0xa9e7df=stringWidth(_0x53dcb8);if(_0xa9e7df>=_0xf3115e)return _0x53dcb8;return _0x53dcb8+'\x20'[_0x3ed8aa(0x14b)](_0xf3115e-_0xa9e7df);}export function padStart(_0x12a533,_0x2dfeec){const _0x14ed32=a174_0x4f5a,_0xae3b73=stringWidth(_0x12a533);if(_0xae3b73>=_0x2dfeec)return _0x12a533;return'\x20'[_0x14ed32(0x14b)](_0x2dfeec-_0xae3b73)+_0x12a533;}export function centerAlign(_0x1073e5,_0xc98d69){const _0x26c51f=a174_0x4f5a,_0x3a8122=stringWidth(_0x1073e5);if(_0x3a8122>_0xc98d69){if(_0xc98d69<=0x1)return'…'[_0x26c51f(0x151)](0x0,_0xc98d69);let _0xfa7981=_0x1073e5;while(stringWidth(_0xfa7981+'…')>_0xc98d69){_0xfa7981=_0xfa7981[_0x26c51f(0x144)](0x0,-0x1);}return _0xfa7981+'…';}if(_0x3a8122===_0xc98d69)return _0x1073e5;const _0x6e852a=_0xc98d69-_0x3a8122,_0x11f850=Math[_0x26c51f(0x13a)](_0x6e852a/0x2),_0x10777a=_0x6e852a-_0x11f850;return'\x20'[_0x26c51f(0x14b)](_0x11f850)+_0x1073e5+'\x20'[_0x26c51f(0x14b)](_0x10777a);}function a174_0x4f5a(_0x11d582,_0x2a7f6b){_0x11d582=_0x11d582-0x13a;const _0x4c34b4=a174_0x4c34();let _0x4f5acf=_0x4c34b4[_0x11d582];return _0x4f5acf;}export function escapeStringLiteral(_0x459346){const _0x5d6bba=a174_0x4f5a;if(!_0x459346||_0x459346[_0x5d6bba(0x14d)]()[_0x5d6bba(0x147)]===0x0)throw new Error(_0x5d6bba(0x14f));const _0x1b4c4b=_0x459346[_0x5d6bba(0x148)](/'/g,'\x27\x27');return'\x27'+_0x1b4c4b+'\x27';}export function globToLike(_0x1f94b0){const _0x1e218a=a174_0x4f5a;let _0x26cdc5=_0x1f94b0[_0x1e218a(0x148)](/\\/g,'\x5c\x5c')[_0x1e218a(0x148)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x26cdc5=_0x26cdc5[_0x1e218a(0x148)](/\*/g,'%')[_0x1e218a(0x148)](/\?/g,'_'),_0x26cdc5;}export function buildLikePattern(_0x41a55f){const _0x45b9d1=a174_0x4f5a;if(!_0x41a55f||_0x41a55f[_0x45b9d1(0x14d)]()[_0x45b9d1(0x147)]===0x0)throw new Error(_0x45b9d1(0x145));const _0x28a878=globToLike(_0x41a55f),_0x1fc2df=_0x28a878[_0x45b9d1(0x148)](/'/g,'\x27\x27');return'\x27'+_0x1fc2df+'\x27';}export function matchGlobPattern(_0x2e42c8,_0x39b468){const _0x1ef8e3=a174_0x4f5a,_0x2f44a7=_0x39b468['replace'](/[.+^${}()|[\]\\]/g,_0x1ef8e3(0x14e))[_0x1ef8e3(0x148)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x1811c6=new RegExp('^'+_0x2f44a7+'$');return _0x1811c6[_0x1ef8e3(0x13f)](_0x2e42c8);}export function getSanitizedUsername(){const _0x16e353=a174_0x4f5a,_0x171364=process.env.USER||process.env.USERNAME||'unknown';return _0x171364['replace'](/[^a-zA-Z0-9]/g,'')[_0x16e353(0x13b)]();}export function generateRandomHex(){const _0x442f19=a174_0x4f5a,_0x553776=Math['floor'](Math[_0x442f19(0x13e)]()*0xfffff);return _0x553776[_0x442f19(0x146)](0x10)[_0x442f19(0x14c)](0x5,'0');}function a174_0x4c34(){const _0x4257ed=['floor','toLowerCase','2CiTNFk','44685zkJrLp','random','test','54764XmNwZq','3244776nfhGRU','1060929aOfTGI','1638770MjPTGq','slice','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toString','length','replace','230MXfOuw','258159pETNzg','repeat','padStart','trim','\x5c$&','Cannot\x20escape\x20empty\x20string\x20literal','255224zqRfGu','substring','175DoFLkq'];a174_0x4c34=function(){return _0x4257ed;};return a174_0x4c34();}export function sanitizeFileName(_0xbd1ebc){const _0x5485bd=a174_0x4f5a;return _0xbd1ebc[_0x5485bd(0x13b)]()[_0x5485bd(0x148)](/[/\\:*?"<>|]/g,'-')[_0x5485bd(0x148)](/\s+/g,'-')[_0x5485bd(0x148)](/-+/g,'-')[_0x5485bd(0x148)](/^-|-$/g,'');}
1
+ (function(_0x56abb1,_0x20e853){const _0xe99aec=a174_0x423e,_0x2563e2=_0x56abb1();while(!![]){try{const _0x5d66fa=parseInt(_0xe99aec(0xa9))/0x1+parseInt(_0xe99aec(0xb1))/0x2*(parseInt(_0xe99aec(0xa3))/0x3)+-parseInt(_0xe99aec(0xa0))/0x4*(-parseInt(_0xe99aec(0xaf))/0x5)+-parseInt(_0xe99aec(0xa7))/0x6*(-parseInt(_0xe99aec(0xa8))/0x7)+parseInt(_0xe99aec(0x9d))/0x8*(parseInt(_0xe99aec(0x9f))/0x9)+parseInt(_0xe99aec(0xaa))/0xa+-parseInt(_0xe99aec(0xa4))/0xb;if(_0x5d66fa===_0x20e853)break;else _0x2563e2['push'](_0x2563e2['shift']());}catch(_0x413b5c){_0x2563e2['push'](_0x2563e2['shift']());}}}(a174_0xea8e,0xf2ba6));import a174_0x42599e from'string-width';export function stringWidth(_0xa7991){return a174_0x42599e(_0xa7991);}export function padEnd(_0x409152,_0x15e075){const _0x5d372e=stringWidth(_0x409152);if(_0x5d372e>=_0x15e075)return _0x409152;return _0x409152+'\x20'['repeat'](_0x15e075-_0x5d372e);}export function padStart(_0xc9c941,_0x5961dd){const _0x44e932=a174_0x423e,_0x20e9f1=stringWidth(_0xc9c941);if(_0x20e9f1>=_0x5961dd)return _0xc9c941;return'\x20'[_0x44e932(0xb5)](_0x5961dd-_0x20e9f1)+_0xc9c941;}export function centerAlign(_0x4f7c44,_0x296555){const _0x57bde1=a174_0x423e,_0x49e61f=stringWidth(_0x4f7c44);if(_0x49e61f>_0x296555){if(_0x296555<=0x1)return'…'[_0x57bde1(0xb2)](0x0,_0x296555);let _0x54fd1d=_0x4f7c44;while(stringWidth(_0x54fd1d+'…')>_0x296555){_0x54fd1d=_0x54fd1d[_0x57bde1(0xa1)](0x0,-0x1);}return _0x54fd1d+'…';}if(_0x49e61f===_0x296555)return _0x4f7c44;const _0xbae3b5=_0x296555-_0x49e61f,_0xd0591b=Math[_0x57bde1(0xb4)](_0xbae3b5/0x2),_0xf2666d=_0xbae3b5-_0xd0591b;return'\x20'['repeat'](_0xd0591b)+_0x4f7c44+'\x20'[_0x57bde1(0xb5)](_0xf2666d);}export function escapeStringLiteral(_0x36dbbd){const _0x476046=a174_0x423e;if(!_0x36dbbd||_0x36dbbd['trim']()[_0x476046(0xab)]===0x0)throw new Error(_0x476046(0xa5));const _0x3a54d6=_0x36dbbd[_0x476046(0xb0)](/'/g,'\x27\x27');return'\x27'+_0x3a54d6+'\x27';}export function globToLike(_0x2c76bb){const _0x15951c=a174_0x423e;let _0x1fec16=_0x2c76bb[_0x15951c(0xb0)](/\\/g,'\x5c\x5c')[_0x15951c(0xb0)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x1fec16=_0x1fec16[_0x15951c(0xb0)](/\*/g,'%')['replace'](/\?/g,'_'),_0x1fec16;}function a174_0xea8e(){const _0x4962cb=['1356dWQBXs','3199xoefrc','438581tRZTFP','8163310erxEEw','length','padStart','toLowerCase','toString','5dxoSei','replace','427802rQVQsL','substring','random','floor','repeat','8iodatv','unknown','13935447XUIXKe','7059352TVzZyy','slice','trim','3pOKRNJ','42802122yGYPFR','Cannot\x20escape\x20empty\x20string\x20literal','test'];a174_0xea8e=function(){return _0x4962cb;};return a174_0xea8e();}export function buildLikePattern(_0x57a60f){const _0x1a2538=a174_0x423e;if(!_0x57a60f||_0x57a60f[_0x1a2538(0xa2)]()[_0x1a2538(0xab)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x5851b2=globToLike(_0x57a60f),_0x5f0e99=_0x5851b2[_0x1a2538(0xb0)](/'/g,'\x27\x27');return'\x27'+_0x5f0e99+'\x27';}export function matchGlobPattern(_0x2f3888,_0x17b8be){const _0x3a1bb1=a174_0x423e,_0x1869b9=_0x17b8be[_0x3a1bb1(0xb0)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x3a1bb1(0xb0)](/\*/g,'.*')[_0x3a1bb1(0xb0)](/\?/g,'.'),_0x3957b7=new RegExp('^'+_0x1869b9+'$');return _0x3957b7[_0x3a1bb1(0xa6)](_0x2f3888);}function a174_0x423e(_0x31eca0,_0x18d708){_0x31eca0=_0x31eca0-0x9d;const _0xea8e69=a174_0xea8e();let _0x423eab=_0xea8e69[_0x31eca0];return _0x423eab;}export function getSanitizedUsername(){const _0x40ff26=a174_0x423e,_0x3b5b48=process.env.USER||process.env.USERNAME||_0x40ff26(0x9e);return _0x3b5b48['replace'](/[^a-zA-Z0-9]/g,'')[_0x40ff26(0xad)]();}export function generateRandomHex(){const _0x5ea8f6=a174_0x423e,_0x1766fb=Math[_0x5ea8f6(0xb4)](Math[_0x5ea8f6(0xb3)]()*0xfffff);return _0x1766fb[_0x5ea8f6(0xae)](0x10)[_0x5ea8f6(0xac)](0x5,'0');}export function sanitizeFileName(_0x5de935){const _0x335baf=a174_0x423e;return _0x5de935[_0x335baf(0xad)]()[_0x335baf(0xb0)](/[/\\:*?"<>|]/g,'-')[_0x335baf(0xb0)](/\s+/g,'-')[_0x335baf(0xb0)](/-+/g,'-')['replace'](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x3e0b1f,_0x45e26b){const _0x4e2b53=a175_0x5686,_0x207e5f=_0x3e0b1f();while(!![]){try{const _0xc950c6=parseInt(_0x4e2b53(0x178))/0x1*(-parseInt(_0x4e2b53(0x169))/0x2)+parseInt(_0x4e2b53(0x173))/0x3*(-parseInt(_0x4e2b53(0x166))/0x4)+-parseInt(_0x4e2b53(0x17b))/0x5*(-parseInt(_0x4e2b53(0x170))/0x6)+parseInt(_0x4e2b53(0x179))/0x7+parseInt(_0x4e2b53(0x176))/0x8+parseInt(_0x4e2b53(0x167))/0x9*(-parseInt(_0x4e2b53(0x175))/0xa)+parseInt(_0x4e2b53(0x172))/0xb;if(_0xc950c6===_0x45e26b)break;else _0x207e5f['push'](_0x207e5f['shift']());}catch(_0x4696b7){_0x207e5f['push'](_0x207e5f['shift']());}}}(a175_0x40af,0x4206d));function a175_0x40af(){const _0x2f1559=['145LjYQBz','Pattern\x20cannot\x20be\x20just\x20a\x20dot','includes','4FovxLw','9UCrUjK','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','46lJCmxy','database','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','table','length','catalog','7926IzbwLk','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','4072046csCCzA','378207OHHVip','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','5307530AiHzoz','3444224KjBqfQ','push','18548etBZGm','3603936wVWKxR','Table\x20name\x20is\x20required\x20for\x20describe\x20operation'];a175_0x40af=function(){return _0x2f1559;};return a175_0x40af();}function hasWildcard(_0x2612e5){const _0x805c91=a175_0x5686;return _0x2612e5[_0x805c91(0x17d)]('*')||_0x2612e5[_0x805c91(0x17d)]('?');}export function parseTableReference(_0x43d0e4){const _0x27ad29=a175_0x5686;if(!_0x43d0e4||_0x43d0e4['trim']()[_0x27ad29(0x16e)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x100597=_0x43d0e4['trim'](),_0x2dc562={'original':_0x100597},_0xd971f0=_0x100597['split']('.');if(_0xd971f0[_0x27ad29(0x16e)]===0x1){const _0x760486=_0xd971f0[0x0];if(!_0x760486)throw new Error(_0x27ad29(0x17c));_0x2dc562['table']=_0x760486;}else{if(_0xd971f0[_0x27ad29(0x16e)]===0x2){const [_0x4153e1,_0x28ba16]=_0xd971f0;if(!_0x4153e1)throw new Error(_0x27ad29(0x16b));if(!_0x28ba16)throw new Error(_0x27ad29(0x168));_0x2dc562[_0x27ad29(0x16a)]=_0x4153e1,_0x2dc562[_0x27ad29(0x16d)]=_0x28ba16;}else{if(_0xd971f0[_0x27ad29(0x16e)]===0x3){const [_0x5b209a,_0x99e2a9,_0x1e71c0]=_0xd971f0;if(!_0x5b209a||!_0x99e2a9||!_0x1e71c0)throw new Error(_0x27ad29(0x16c));_0x2dc562[_0x27ad29(0x16f)]=_0x5b209a,_0x2dc562[_0x27ad29(0x16a)]=_0x99e2a9,_0x2dc562[_0x27ad29(0x16d)]=_0x1e71c0;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x2dc562;}function a175_0x5686(_0x27c807,_0x29d7aa){_0x27c807=_0x27c807-0x166;const _0x40afa7=a175_0x40af();let _0x5686e3=_0x40afa7[_0x27c807];return _0x5686e3;}export function formatTableReference(_0x1459bc){const _0x3b1239=a175_0x5686,_0x30e658=[];return _0x1459bc[_0x3b1239(0x16f)]&&_0x30e658[_0x3b1239(0x177)](_0x1459bc[_0x3b1239(0x16f)]),_0x1459bc[_0x3b1239(0x16a)]&&_0x30e658[_0x3b1239(0x177)](_0x1459bc[_0x3b1239(0x16a)]),_0x1459bc[_0x3b1239(0x16d)]&&_0x30e658['push'](_0x1459bc[_0x3b1239(0x16d)]),_0x30e658['join']('.');}export function validateTableListReference(_0x2a6589){return undefined;}export function validateTableDescribeReference(_0x3690f4){const _0x25896f=a175_0x5686;if(!_0x3690f4[_0x25896f(0x16d)])return _0x25896f(0x17a);if(_0x3690f4[_0x25896f(0x16a)]&&hasWildcard(_0x3690f4[_0x25896f(0x16a)]))return _0x25896f(0x171);if(hasWildcard(_0x3690f4[_0x25896f(0x16d)]))return _0x25896f(0x174);return undefined;}
1
+ (function(_0x1918d6,_0x517949){const _0x41f418=a175_0x3e8a,_0xebfba5=_0x1918d6();while(!![]){try{const _0x312225=-parseInt(_0x41f418(0x184))/0x1+parseInt(_0x41f418(0x18f))/0x2*(parseInt(_0x41f418(0x18d))/0x3)+-parseInt(_0x41f418(0x188))/0x4*(-parseInt(_0x41f418(0x183))/0x5)+-parseInt(_0x41f418(0x18a))/0x6*(-parseInt(_0x41f418(0x190))/0x7)+-parseInt(_0x41f418(0x189))/0x8+-parseInt(_0x41f418(0x18c))/0x9*(-parseInt(_0x41f418(0x182))/0xa)+parseInt(_0x41f418(0x17e))/0xb*(parseInt(_0x41f418(0x180))/0xc);if(_0x312225===_0x517949)break;else _0xebfba5['push'](_0xebfba5['shift']());}catch(_0x4d6bca){_0xebfba5['push'](_0xebfba5['shift']());}}}(a175_0x3161,0xd735c));function hasWildcard(_0x40efba){const _0x2153c7=a175_0x3e8a;return _0x40efba[_0x2153c7(0x18b)]('*')||_0x40efba['includes']('?');}export function parseTableReference(_0x4d026d){const _0x103ea9=a175_0x3e8a;if(!_0x4d026d||_0x4d026d[_0x103ea9(0x187)]()[_0x103ea9(0x18e)]===0x0)throw new Error(_0x103ea9(0x193));const _0x54abd2=_0x4d026d[_0x103ea9(0x187)](),_0x2eb839={'original':_0x54abd2},_0x5a7228=_0x54abd2['split']('.');if(_0x5a7228['length']===0x1){const _0x161d5d=_0x5a7228[0x0];if(!_0x161d5d)throw new Error(_0x103ea9(0x185));_0x2eb839[_0x103ea9(0x195)]=_0x161d5d;}else{if(_0x5a7228[_0x103ea9(0x18e)]===0x2){const [_0x155879,_0x550ffe]=_0x5a7228;if(!_0x155879)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x550ffe)throw new Error(_0x103ea9(0x186));_0x2eb839[_0x103ea9(0x181)]=_0x155879,_0x2eb839[_0x103ea9(0x195)]=_0x550ffe;}else{if(_0x5a7228[_0x103ea9(0x18e)]===0x3){const [_0x5ed378,_0x1191ba,_0x2108c5]=_0x5a7228;if(!_0x5ed378||!_0x1191ba||!_0x2108c5)throw new Error(_0x103ea9(0x194));_0x2eb839[_0x103ea9(0x192)]=_0x5ed378,_0x2eb839[_0x103ea9(0x181)]=_0x1191ba,_0x2eb839[_0x103ea9(0x195)]=_0x2108c5;}else throw new Error(_0x103ea9(0x191));}}return _0x2eb839;}function a175_0x3e8a(_0x1d1787,_0x3d7c8c){_0x1d1787=_0x1d1787-0x17e;const _0x316148=a175_0x3161();let _0x3e8af7=_0x316148[_0x1d1787];return _0x3e8af7;}export function formatTableReference(_0x753bd5){const _0x2fc418=a175_0x3e8a,_0x1de2e0=[];return _0x753bd5[_0x2fc418(0x192)]&&_0x1de2e0[_0x2fc418(0x196)](_0x753bd5['catalog']),_0x753bd5['database']&&_0x1de2e0['push'](_0x753bd5[_0x2fc418(0x181)]),_0x753bd5[_0x2fc418(0x195)]&&_0x1de2e0[_0x2fc418(0x196)](_0x753bd5['table']),_0x1de2e0['join']('.');}function a175_0x3161(){const _0x320d18=['22090KMKtJe','4485QhQFjv','758161rIqkqn','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','trim','4208zdjImg','11192440eFncXS','533874fbZdhX','includes','531Zrompt','3VCVjEo','length','285364mhKhSE','28PKiwOq','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','catalog','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','table','push','16127573UeSgvZ','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','12wkXEhC','database'];a175_0x3161=function(){return _0x320d18;};return a175_0x3161();}export function validateTableListReference(_0x37046d){return undefined;}export function validateTableDescribeReference(_0x75e050){const _0x4739b6=a175_0x3e8a;if(!_0x75e050[_0x4739b6(0x195)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x75e050['database']&&hasWildcard(_0x75e050[_0x4739b6(0x181)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x75e050[_0x4739b6(0x195)]))return _0x4739b6(0x17f);return undefined;}
@@ -1 +1 @@
1
- const a176_0x43f5bb=a176_0x107f;(function(_0x36684a,_0x4ef552){const _0x372d54=a176_0x107f,_0x4ef02e=_0x36684a();while(!![]){try{const _0x3bcd1d=parseInt(_0x372d54(0xaa))/0x1+-parseInt(_0x372d54(0x94))/0x2*(-parseInt(_0x372d54(0x95))/0x3)+-parseInt(_0x372d54(0x99))/0x4+parseInt(_0x372d54(0xa8))/0x5+-parseInt(_0x372d54(0x8c))/0x6*(-parseInt(_0x372d54(0xa0))/0x7)+-parseInt(_0x372d54(0x8f))/0x8+-parseInt(_0x372d54(0x93))/0x9*(parseInt(_0x372d54(0x92))/0xa);if(_0x3bcd1d===_0x4ef552)break;else _0x4ef02e['push'](_0x4ef02e['shift']());}catch(_0x3089d7){_0x4ef02e['push'](_0x4ef02e['shift']());}}}(a176_0x576a,0xe9883));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';function a176_0x107f(_0x585bba,_0x3b3ab4){_0x585bba=_0x585bba-0x8c;const _0x576ac3=a176_0x576a();let _0x107f6b=_0x576ac3[_0x585bba];return _0x107f6b;}import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';function a176_0x576a(){const _0x34f30b=['504511rZwESo','fileOnly','logs','addHandler','error','logFileName','close','logLevel','7102105gYHvzQ','logger','951211AzbUXu','debug','102fypIQe','isInitialized','consoleHandler','9280472PSkWpL','shutdown','info','20iUhRlz','2065671XDPbjG','988294ecuhzo','3afOrUt','init','fileHandler','INFO','6061504UBoIAt','tdx','logDir','trace','warn','Session\x20ended','getLogPath'];a176_0x576a=function(){return _0x34f30b;};return a176_0x576a();}export class TDXLogger{[a176_0x43f5bb(0xa7)];['fileOnly'];[a176_0x43f5bb(0x9b)];[a176_0x43f5bb(0xa5)];[a176_0x43f5bb(0xa9)];[a176_0x43f5bb(0x97)]=null;[a176_0x43f5bb(0x8e)]=null;constructor(_0x31f257=LogLevel['INFO'],_0xe4bde5=![],_0x41fbfd,_0x239d68='tdx.log'){const _0x7b5592=a176_0x43f5bb;this[_0x7b5592(0xa7)]=_0x31f257,this['fileOnly']=_0xe4bde5,this['logDir']=_0x41fbfd||join(getGlobalCacheDir(),_0x7b5592(0xa2)),this[_0x7b5592(0xa5)]=_0x239d68,this['logger']=Logger['of'](_0x7b5592(0x9a));}async[a176_0x43f5bb(0x96)](){const _0xc37dd2=a176_0x43f5bb,_0x4a4b1f=join(this[_0xc37dd2(0x9b)],this[_0xc37dd2(0xa5)]);if(Logger[_0xc37dd2(0x8d)]()){!this[_0xc37dd2(0xa1)]&&(this[_0xc37dd2(0x8e)]=new ConsoleHandler({'minLevel':LogLevel[_0xc37dd2(0x98)],'colors':!![]}),Logger[_0xc37dd2(0xa3)](this[_0xc37dd2(0x8e)]));return;}this[_0xc37dd2(0x97)]=new FileHandler({'filePath':_0x4a4b1f});const _0x3793d6=[this[_0xc37dd2(0x97)]];!this[_0xc37dd2(0xa1)]&&(this[_0xc37dd2(0x8e)]=new ConsoleHandler({'minLevel':LogLevel[_0xc37dd2(0x98)],'colors':!![]}),_0x3793d6['push'](this['consoleHandler'])),await Logger[_0xc37dd2(0x96)]({'defaultLevel':this[_0xc37dd2(0xa7)],'handlers':_0x3793d6,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a176_0x43f5bb(0xab)](..._0x57b403){const _0x44d08e=a176_0x43f5bb;this['logger'][_0x44d08e(0xab)](..._0x57b403);}[a176_0x43f5bb(0x9c)](..._0x2b4c1e){const _0x38e251=a176_0x43f5bb;this[_0x38e251(0xa9)][_0x38e251(0x9c)](..._0x2b4c1e);}[a176_0x43f5bb(0x91)](..._0x47e7fd){const _0x3febc5=a176_0x43f5bb;this[_0x3febc5(0xa9)]['info'](..._0x47e7fd);}['warn'](..._0x1ae1f8){const _0xfab9a4=a176_0x43f5bb;this[_0xfab9a4(0xa9)][_0xfab9a4(0x9d)](..._0x1ae1f8);}[a176_0x43f5bb(0xa4)](..._0x4b2d18){const _0x4c91b4=a176_0x43f5bb;this[_0x4c91b4(0xa9)]['error'](..._0x4b2d18);}async[a176_0x43f5bb(0xa6)](){const _0x50a926=a176_0x43f5bb;this[_0x50a926(0xa9)]['info'](_0x50a926(0x9e)),await Logger[_0x50a926(0x90)]();}[a176_0x43f5bb(0x9f)](){const _0x5d848a=a176_0x43f5bb;return join(this[_0x5d848a(0x9b)],this[_0x5d848a(0xa5)]);}}
1
+ const a176_0x1c9afc=a176_0x13bf;(function(_0x5065bc,_0x22fe79){const _0xb4fef2=a176_0x13bf,_0x3f548c=_0x5065bc();while(!![]){try{const _0x3cc95f=parseInt(_0xb4fef2(0x20a))/0x1+-parseInt(_0xb4fef2(0x1f8))/0x2*(parseInt(_0xb4fef2(0x201))/0x3)+parseInt(_0xb4fef2(0x208))/0x4+-parseInt(_0xb4fef2(0x1ff))/0x5+-parseInt(_0xb4fef2(0x1f1))/0x6*(parseInt(_0xb4fef2(0x200))/0x7)+-parseInt(_0xb4fef2(0x203))/0x8+parseInt(_0xb4fef2(0x1ec))/0x9*(parseInt(_0xb4fef2(0x1fe))/0xa);if(_0x3cc95f===_0x22fe79)break;else _0x3f548c['push'](_0x3f548c['shift']());}catch(_0x77663d){_0x3f548c['push'](_0x3f548c['shift']());}}}(a176_0x2e1f,0x95301));import{join}from'path';function a176_0x2e1f(){const _0x275ee8=['tdx.log','shutdown','fileHandler','12rxbFuv','debug','logLevel','error','close','warn','isInitialized','4eGwdwA','tdx','logger','push','trace','addHandler','250PmCLli','1963050nArOSk','978229bcIAlt','356304WKwhlM','Session\x20ended','3810944exYThK','consoleHandler','info','INFO','logs','1954836xtYKhE','getLogPath','694847uRstFu','logFileName','fileOnly','logDir','292869vgMloT','init'];a176_0x2e1f=function(){return _0x275ee8;};return a176_0x2e1f();}function a176_0x13bf(_0x4d2208,_0x36a175){_0x4d2208=_0x4d2208-0x1eb;const _0x2e1f0a=a176_0x2e1f();let _0x13bfab=_0x2e1f0a[_0x4d2208];return _0x13bfab;}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{[a176_0x1c9afc(0x1f3)];[a176_0x1c9afc(0x20c)];['logDir'];['logFileName'];['logger'];[a176_0x1c9afc(0x1f0)]=null;[a176_0x1c9afc(0x204)]=null;constructor(_0x58854b=LogLevel[a176_0x1c9afc(0x206)],_0x28256b=![],_0x322b87,_0x3b5728=a176_0x1c9afc(0x1ee)){const _0x54176f=a176_0x1c9afc;this['logLevel']=_0x58854b,this[_0x54176f(0x20c)]=_0x28256b,this[_0x54176f(0x1eb)]=_0x322b87||join(getGlobalCacheDir(),_0x54176f(0x207)),this[_0x54176f(0x20b)]=_0x3b5728,this[_0x54176f(0x1fa)]=Logger['of'](_0x54176f(0x1f9));}async[a176_0x1c9afc(0x1ed)](){const _0xe5a39=a176_0x1c9afc,_0x404886=join(this[_0xe5a39(0x1eb)],this[_0xe5a39(0x20b)]);if(Logger[_0xe5a39(0x1f7)]()){!this[_0xe5a39(0x20c)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),Logger[_0xe5a39(0x1fd)](this[_0xe5a39(0x204)]));return;}this[_0xe5a39(0x1f0)]=new FileHandler({'filePath':_0x404886});const _0x11925e=[this[_0xe5a39(0x1f0)]];!this[_0xe5a39(0x20c)]&&(this[_0xe5a39(0x204)]=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),_0x11925e[_0xe5a39(0x1fb)](this[_0xe5a39(0x204)])),await Logger[_0xe5a39(0x1ed)]({'defaultLevel':this[_0xe5a39(0x1f3)],'handlers':_0x11925e,'formatter':new DefaultLogFormatter({'colors':!![]})});}['debug'](..._0x123894){const _0x3a9917=a176_0x1c9afc;this[_0x3a9917(0x1fa)][_0x3a9917(0x1f2)](..._0x123894);}['trace'](..._0x48e904){const _0xaa51cc=a176_0x1c9afc;this['logger'][_0xaa51cc(0x1fc)](..._0x48e904);}[a176_0x1c9afc(0x205)](..._0x48c37b){const _0x1c5459=a176_0x1c9afc;this[_0x1c5459(0x1fa)][_0x1c5459(0x205)](..._0x48c37b);}[a176_0x1c9afc(0x1f6)](..._0x26418d){const _0x23e91f=a176_0x1c9afc;this['logger'][_0x23e91f(0x1f6)](..._0x26418d);}[a176_0x1c9afc(0x1f4)](..._0x3c9879){this['logger']['error'](..._0x3c9879);}async[a176_0x1c9afc(0x1f5)](){const _0x1f87f3=a176_0x1c9afc;this[_0x1f87f3(0x1fa)][_0x1f87f3(0x205)](_0x1f87f3(0x202)),await Logger[_0x1f87f3(0x1ef)]();}[a176_0x1c9afc(0x209)](){const _0x3ea1e3=a176_0x1c9afc;return join(this[_0x3ea1e3(0x1eb)],this[_0x3ea1e3(0x20b)]);}}
@@ -1 +1 @@
1
- const a177_0x5a873f=a177_0x4d2d;(function(_0x49ad77,_0x4b1eb7){const _0x43d853=a177_0x4d2d,_0x323d62=_0x49ad77();while(!![]){try{const _0x3c0a15=parseInt(_0x43d853(0x10d))/0x1+-parseInt(_0x43d853(0x109))/0x2*(parseInt(_0x43d853(0x110))/0x3)+-parseInt(_0x43d853(0x117))/0x4*(parseInt(_0x43d853(0xff))/0x5)+-parseInt(_0x43d853(0xf6))/0x6+-parseInt(_0x43d853(0xf2))/0x7+parseInt(_0x43d853(0xf4))/0x8+parseInt(_0x43d853(0x108))/0x9*(parseInt(_0x43d853(0x115))/0xa);if(_0x3c0a15===_0x4b1eb7)break;else _0x323d62['push'](_0x323d62['shift']());}catch(_0x2c0d4c){_0x323d62['push'](_0x323d62['shift']());}}}(a177_0x3dc7,0x37c38));import{get}from'https';import{gt,valid}from'semver';import a177_0x23e9b9 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a177_0x5a873f(0xf8),TIMEOUT_MS=0x7d0,versionCache=createGlobalCache(a177_0x5a873f(0xf5),a177_0x5a873f(0xf7));function readCache(){return versionCache['read']()??null;}function a177_0x4d2d(_0x38fce7,_0x3e55b9){_0x38fce7=_0x38fce7-0xf1;const _0x3dc755=a177_0x3dc7();let _0x4d2d26=_0x3dc755[_0x38fce7];return _0x4d2d26;}function writeCache(_0x29da7f){const _0x5f036c=a177_0x5a873f;try{versionCache[_0x5f036c(0x10f)]({'lastCheck':new Date()[_0x5f036c(0x111)](),'latestVersion':_0x29da7f});}catch{}}function isCacheValid(_0x413877){const _0x54cdff=a177_0x5a873f;if(!_0x413877)return![];const _0x24427f=new Date(_0x413877[_0x54cdff(0xf9)])[_0x54cdff(0x107)](),_0x5b501f=Date['now']();return _0x5b501f-_0x24427f<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x520179,_0x167424)=>{const _0x1482d4=a177_0x4d2d,_0x4b2b41=get(NPM_REGISTRY_URL,_0x45c8c0=>{const _0x576057=a177_0x4d2d;if(_0x45c8c0[_0x576057(0xf1)]!==0xc8){clearTimeout(_0x3672f1),_0x167424(new Error(_0x576057(0x103)+_0x45c8c0[_0x576057(0xf1)]));return;}let _0x585fea='';_0x45c8c0['on'](_0x576057(0x100),_0x5730fe=>{_0x585fea+=_0x5730fe;}),_0x45c8c0['on'](_0x576057(0x101),()=>{const _0x51d6c1=_0x576057;clearTimeout(_0x3672f1);try{const _0x50e210=JSON[_0x51d6c1(0x116)](_0x585fea);if(!valid(_0x50e210[_0x51d6c1(0x102)])){_0x167424(new Error('Invalid\x20version\x20format'));return;}_0x520179(_0x50e210[_0x51d6c1(0x102)]);}catch(_0x354687){_0x167424(_0x354687);}});})['on'](_0x1482d4(0x104),_0x51a1f6=>{clearTimeout(_0x3672f1),_0x167424(_0x51a1f6);}),_0x3672f1=setTimeout(()=>{const _0x50aa2a=_0x1482d4;_0x4b2b41[_0x50aa2a(0xf3)](),_0x167424(new Error(_0x50aa2a(0x10e)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4f2c6d){const _0x4b0871=a177_0x5a873f;try{const _0x2fb38c=readCache();if(isCacheValid(_0x2fb38c)){const _0x4099c3=gt(_0x2fb38c['latestVersion'],_0x4f2c6d);return{'updateAvailable':_0x4099c3,'currentVersion':_0x4f2c6d,'latestVersion':_0x2fb38c[_0x4b0871(0xfc)]};}const _0x52fe2a=await fetchLatestVersion();writeCache(_0x52fe2a);const _0x429db5=gt(_0x52fe2a,_0x4f2c6d);return{'updateAvailable':_0x429db5,'currentVersion':_0x4f2c6d,'latestVersion':_0x52fe2a};}catch{return null;}}function a177_0x3dc7(){const _0x4bd965=['currentVersion','cyan','16190powtwM','parse','60PmuOuP','statusCode','1225966NJAQmw','destroy','2771000Gbfsou','last_version_check','2247090oAypOT','utils/version-check','https://registry.npmjs.org/@treasuredata/tdx/latest','lastCheck','\x0aUpdate\x20available:\x20','dim','latestVersion','gray','stderr','59445urUXMu','data','end','version','HTTP\x20','error','Run:','\x0aRun:\x20','getTime','2529pifZCL','20222qPJmSe','yellow','npm\x20install\x20-g\x20@treasuredata/tdx@latest','updateAvailable','367413WvSpRn','Request\x20timeout','write','63tztsKw','toISOString','isTTY'];a177_0x3dc7=function(){return _0x4bd965;};return a177_0x3dc7();}export function displayUpdateNotification(_0x5058d9){const _0x51ebcc=a177_0x5a873f;if(!_0x5058d9[_0x51ebcc(0x10c)])return;const _0x50b666=process['stderr'][_0x51ebcc(0x112)]&&!process.env.NO_COLOR,_0x48208c=_0x50b666?a177_0x23e9b9[_0x51ebcc(0xfd)]('→'):'→',_0x1254a5=_0x50b666?a177_0x23e9b9[_0x51ebcc(0xfb)](_0x5058d9[_0x51ebcc(0x113)]):_0x5058d9[_0x51ebcc(0x113)],_0x36ba6d=_0x50b666?a177_0x23e9b9['green'](_0x5058d9[_0x51ebcc(0xfc)]):_0x5058d9['latestVersion'],_0x392a7e=_0x50b666?a177_0x23e9b9[_0x51ebcc(0x114)]('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0x51ebcc(0x10b),_0xfeb411=_0x50b666?'\x0a'+a177_0x23e9b9[_0x51ebcc(0x10a)]('Update\x20available:')+'\x20'+_0x1254a5+'\x20'+_0x48208c+'\x20'+_0x36ba6d+'\x0a'+a177_0x23e9b9[_0x51ebcc(0xfb)](_0x51ebcc(0x105))+'\x20'+_0x392a7e+'\x0a':_0x51ebcc(0xfa)+_0x1254a5+'\x20'+_0x48208c+'\x20'+_0x36ba6d+_0x51ebcc(0x106)+_0x392a7e+'\x0a';process[_0x51ebcc(0xfe)][_0x51ebcc(0x10f)](_0xfeb411);}
1
+ const a177_0x2393d7=a177_0x10bb;(function(_0x55704f,_0x58fa75){const _0x53b442=a177_0x10bb,_0x4b9294=_0x55704f();while(!![]){try{const _0x53279e=parseInt(_0x53b442(0x1b6))/0x1+-parseInt(_0x53b442(0x1d3))/0x2*(parseInt(_0x53b442(0x1cf))/0x3)+parseInt(_0x53b442(0x1c8))/0x4+-parseInt(_0x53b442(0x1d2))/0x5*(-parseInt(_0x53b442(0x1d8))/0x6)+-parseInt(_0x53b442(0x1cc))/0x7+parseInt(_0x53b442(0x1b8))/0x8+-parseInt(_0x53b442(0x1cd))/0x9*(parseInt(_0x53b442(0x1c5))/0xa);if(_0x53279e===_0x58fa75)break;else _0x4b9294['push'](_0x4b9294['shift']());}catch(_0xf2b788){_0x4b9294['push'](_0x4b9294['shift']());}}}(a177_0x454a,0x6d4e7));import{get}from'https';import{gt,valid}from'semver';import a177_0xdb36b from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a177_0x2393d7(0x1d4),TIMEOUT_MS=0x7d0,versionCache=createGlobalCache('last_version_check',a177_0x2393d7(0x1c4));function readCache(){const _0x4cf749=a177_0x2393d7;return versionCache[_0x4cf749(0x1d6)]()??null;}function writeCache(_0x1cbc9e){const _0x5c5be6=a177_0x2393d7;try{versionCache[_0x5c5be6(0x1b7)]({'lastCheck':new Date()[_0x5c5be6(0x1ca)](),'latestVersion':_0x1cbc9e});}catch{}}function isCacheValid(_0x3f0cc9){const _0x198ceb=a177_0x2393d7;if(!_0x3f0cc9)return![];const _0x205d1d=new Date(_0x3f0cc9[_0x198ceb(0x1b5)])[_0x198ceb(0x1d5)](),_0x3cd42d=Date['now']();return _0x3cd42d-_0x205d1d<CACHE_DURATION_MS;}function a177_0x10bb(_0x49cc74,_0x36063f){_0x49cc74=_0x49cc74-0x1b5;const _0x454a90=a177_0x454a();let _0x10bba2=_0x454a90[_0x49cc74];return _0x10bba2;}function fetchLatestVersion(){return new Promise((_0x2535f8,_0xf23776)=>{const _0x482908=a177_0x10bb,_0x3096c3=get(NPM_REGISTRY_URL,_0x448713=>{const _0x3b1621=a177_0x10bb;if(_0x448713[_0x3b1621(0x1c7)]!==0xc8){clearTimeout(_0x56e42e),_0xf23776(new Error(_0x3b1621(0x1c6)+_0x448713[_0x3b1621(0x1c7)]));return;}let _0x38d751='';_0x448713['on'](_0x3b1621(0x1c1),_0x46c2e7=>{_0x38d751+=_0x46c2e7;}),_0x448713['on'](_0x3b1621(0x1bb),()=>{const _0x4ad15b=_0x3b1621;clearTimeout(_0x56e42e);try{const _0x3345e0=JSON[_0x4ad15b(0x1d0)](_0x38d751);if(!valid(_0x3345e0[_0x4ad15b(0x1d7)])){_0xf23776(new Error(_0x4ad15b(0x1da)));return;}_0x2535f8(_0x3345e0[_0x4ad15b(0x1d7)]);}catch(_0x342e72){_0xf23776(_0x342e72);}});})['on'](_0x482908(0x1c9),_0x4e10ad=>{clearTimeout(_0x56e42e),_0xf23776(_0x4e10ad);}),_0x56e42e=setTimeout(()=>{const _0xd2b99d=_0x482908;_0x3096c3[_0xd2b99d(0x1ba)](),_0xf23776(new Error(_0xd2b99d(0x1bd)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x52973e){const _0x4d2523=a177_0x2393d7;try{const _0x462cd3=readCache();if(isCacheValid(_0x462cd3)){const _0x50e53e=gt(_0x462cd3[_0x4d2523(0x1c3)],_0x52973e);return{'updateAvailable':_0x50e53e,'currentVersion':_0x52973e,'latestVersion':_0x462cd3[_0x4d2523(0x1c3)]};}const _0x22c577=await fetchLatestVersion();writeCache(_0x22c577);const _0x431d17=gt(_0x22c577,_0x52973e);return{'updateAvailable':_0x431d17,'currentVersion':_0x52973e,'latestVersion':_0x22c577};}catch{return null;}}function a177_0x454a(){const _0x48b923=['npm\x20install\x20-g\x20@treasuredata/tdx@latest','isTTY','dim','data','\x0aRun:\x20','latestVersion','utils/version-check','90RuZYNZ','HTTP\x20','statusCode','1310100xYKPhY','error','toISOString','Update\x20available:','1278382woFjLj','277731cpPGFp','yellow','1262697jHrlvH','parse','Run:','205FOdNtN','2mJoVMr','https://registry.npmjs.org/@treasuredata/tdx/latest','getTime','read','version','40380rMRPac','updateAvailable','Invalid\x20version\x20format','lastCheck','501876PjbuDh','write','1789152jblVum','stderr','destroy','end','currentVersion','Request\x20timeout'];a177_0x454a=function(){return _0x48b923;};return a177_0x454a();}export function displayUpdateNotification(_0x9913dd){const _0xa2ccae=a177_0x2393d7;if(!_0x9913dd[_0xa2ccae(0x1d9)])return;const _0x17e767=process[_0xa2ccae(0x1b9)][_0xa2ccae(0x1bf)]&&!process.env.NO_COLOR,_0x488354=_0x17e767?a177_0xdb36b['gray']('→'):'→',_0x5d194a=_0x17e767?a177_0xdb36b[_0xa2ccae(0x1c0)](_0x9913dd['currentVersion']):_0x9913dd[_0xa2ccae(0x1bc)],_0x2d03ec=_0x17e767?a177_0xdb36b['green'](_0x9913dd['latestVersion']):_0x9913dd[_0xa2ccae(0x1c3)],_0x39fa01=_0x17e767?a177_0xdb36b['cyan']('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0xa2ccae(0x1be),_0x3fd42c=_0x17e767?'\x0a'+a177_0xdb36b[_0xa2ccae(0x1ce)](_0xa2ccae(0x1cb))+'\x20'+_0x5d194a+'\x20'+_0x488354+'\x20'+_0x2d03ec+'\x0a'+a177_0xdb36b[_0xa2ccae(0x1c0)](_0xa2ccae(0x1d1))+'\x20'+_0x39fa01+'\x0a':'\x0aUpdate\x20available:\x20'+_0x5d194a+'\x20'+_0x488354+'\x20'+_0x2d03ec+_0xa2ccae(0x1c2)+_0x39fa01+'\x0a';process[_0xa2ccae(0x1b9)][_0xa2ccae(0x1b7)](_0x3fd42c);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.22.0",
3
+ "version": "0.23.1",
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": {