@treasuredata/tdx 2026.4.17 → 2026.4.19

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 (252) 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/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.d.ts +38 -0
  27. package/dist/commands/engage-command.d.ts.map +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/engage-command.js.map +1 -1
  30. package/dist/commands/engage-template-pull-command.js +1 -1
  31. package/dist/commands/engage-template-push-command.js +1 -1
  32. package/dist/commands/engage-template-validate-command.js +1 -1
  33. package/dist/commands/job-command.js +1 -1
  34. package/dist/commands/journey-command.js +1 -1
  35. package/dist/commands/journey-validate-command.js +1 -1
  36. package/dist/commands/llm-command.js +1 -1
  37. package/dist/commands/mcp-command.js +1 -1
  38. package/dist/commands/parent-segment-command.js +1 -1
  39. package/dist/commands/policy-command.js +1 -1
  40. package/dist/commands/profile-command.js +1 -1
  41. package/dist/commands/profiles-command.js +1 -1
  42. package/dist/commands/query-command.js +1 -1
  43. package/dist/commands/schedule-command.js +1 -1
  44. package/dist/commands/segment-command.js +1 -1
  45. package/dist/commands/segment-create-command.js +1 -1
  46. package/dist/commands/segment-fields-command.js +1 -1
  47. package/dist/commands/segment-pull-command.js +1 -1
  48. package/dist/commands/segment-push-command.js +1 -1
  49. package/dist/commands/segment-update-command.js +1 -1
  50. package/dist/commands/segment-use-command.js +1 -1
  51. package/dist/commands/segment-validate-command.js +1 -1
  52. package/dist/commands/segments.js +1 -1
  53. package/dist/commands/show.js +1 -1
  54. package/dist/commands/status-command.js +1 -1
  55. package/dist/commands/tables.js +1 -1
  56. package/dist/commands/unset-command.js +1 -1
  57. package/dist/commands/upgrade-command.js +1 -1
  58. package/dist/commands/use-command.js +1 -1
  59. package/dist/commands/user-command.js +1 -1
  60. package/dist/commands/work-command.js +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/core/auth.js +1 -1
  63. package/dist/core/command-output.js +1 -1
  64. package/dist/core/config.js +1 -1
  65. package/dist/core/connection-cache.js +1 -1
  66. package/dist/core/constants.js +1 -1
  67. package/dist/core/credential-cache.js +1 -1
  68. package/dist/core/global-context.js +1 -1
  69. package/dist/core/keychain.js +1 -1
  70. package/dist/core/oauth-keychain.js +1 -1
  71. package/dist/core/oauth.js +1 -1
  72. package/dist/core/profile.js +1 -1
  73. package/dist/core/project-config.js +1 -1
  74. package/dist/core/session.js +1 -1
  75. package/dist/core/user-cache.js +1 -1
  76. package/dist/core/version.js +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/mcp/server.js +1 -1
  79. package/dist/mcp/tools/index.js +1 -1
  80. package/dist/mcp/tools/tdx-run.js +1 -1
  81. package/dist/mcp/tools/tdx-search.js +1 -1
  82. package/dist/mcp/tools/work-create-item.js +1 -1
  83. package/dist/mcp/utils.js +1 -1
  84. package/dist/proxy/claude-usage-tracker.js +1 -1
  85. package/dist/proxy/passthrough-server.js +1 -1
  86. package/dist/proxy/sse-usage-parser.js +1 -1
  87. package/dist/sdk/agent/agent-config.js +1 -1
  88. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  89. package/dist/sdk/agent/agent-yaml.js +1 -1
  90. package/dist/sdk/agent/test/evaluator.js +1 -1
  91. package/dist/sdk/agent/test/executor.js +1 -1
  92. package/dist/sdk/agent/test/index.js +1 -1
  93. package/dist/sdk/agent/test/output.js +1 -1
  94. package/dist/sdk/agent/test/parser.js +1 -1
  95. package/dist/sdk/agent/tool-target-registry.js +1 -1
  96. package/dist/sdk/api.js +1 -1
  97. package/dist/sdk/cas/cas-api-client.js +1 -1
  98. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  99. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  100. package/dist/sdk/cas/index.js +1 -1
  101. package/dist/sdk/cas/pull-workflow.js +1 -1
  102. package/dist/sdk/cas/push-workflow.js +1 -1
  103. package/dist/sdk/client/cdp-api-client.js +1 -1
  104. package/dist/sdk/client/delivery-api-client.js +1 -1
  105. package/dist/sdk/client/endpoints.js +1 -1
  106. package/dist/sdk/client/engage-api-client.d.ts +26 -1
  107. package/dist/sdk/client/engage-api-client.d.ts.map +1 -1
  108. package/dist/sdk/client/engage-api-client.js +1 -1
  109. package/dist/sdk/client/engage-api-client.js.map +1 -1
  110. package/dist/sdk/client/http-client.d.ts +1 -1
  111. package/dist/sdk/client/http-client.d.ts.map +1 -1
  112. package/dist/sdk/client/http-client.js +1 -1
  113. package/dist/sdk/client/http-client.js.map +1 -1
  114. package/dist/sdk/client/llm-api-client.js +1 -1
  115. package/dist/sdk/client/oauth-refresh.js +1 -1
  116. package/dist/sdk/client/rate-limiter.js +1 -1
  117. package/dist/sdk/client/td-api-client.js +1 -1
  118. package/dist/sdk/client/trino-api-client.js +1 -1
  119. package/dist/sdk/client/workflow-client.js +1 -1
  120. package/dist/sdk/connection-validator.js +1 -1
  121. package/dist/sdk/connection.js +1 -1
  122. package/dist/sdk/delivery.js +1 -1
  123. package/dist/sdk/engage/campaign-pull.js +1 -1
  124. package/dist/sdk/engage/campaign-push.js +1 -1
  125. package/dist/sdk/engage/campaign-validator.js +1 -1
  126. package/dist/sdk/engage/campaign-validator.js.map +1 -1
  127. package/dist/sdk/engage/campaign-yaml.d.ts +1 -1
  128. package/dist/sdk/engage/campaign-yaml.d.ts.map +1 -1
  129. package/dist/sdk/engage/campaign-yaml.js +1 -1
  130. package/dist/sdk/engage/campaign-yaml.js.map +1 -1
  131. package/dist/sdk/engage/template-pull.js +1 -1
  132. package/dist/sdk/engage/template-push.js +1 -1
  133. package/dist/sdk/engage/template-validator.js +1 -1
  134. package/dist/sdk/engage/template-yaml.js +1 -1
  135. package/dist/sdk/engage/types/campaign-def.d.ts +2 -2
  136. package/dist/sdk/engage/types/campaign-def.d.ts.map +1 -1
  137. package/dist/sdk/engage/types/campaign-def.js +1 -1
  138. package/dist/sdk/engage/types/campaign-def.js.map +1 -1
  139. package/dist/sdk/engage/types/campaign-schema.d.ts +256 -8
  140. package/dist/sdk/engage/types/campaign-schema.d.ts.map +1 -1
  141. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  142. package/dist/sdk/engage/types/campaign-schema.js.map +1 -1
  143. package/dist/sdk/engage/types/template-schema.js +1 -1
  144. package/dist/sdk/engage.d.ts +28 -1
  145. package/dist/sdk/engage.d.ts.map +1 -1
  146. package/dist/sdk/engage.js +1 -1
  147. package/dist/sdk/engage.js.map +1 -1
  148. package/dist/sdk/errors.js +1 -1
  149. package/dist/sdk/index.d.ts +1 -1
  150. package/dist/sdk/index.d.ts.map +1 -1
  151. package/dist/sdk/index.js +1 -1
  152. package/dist/sdk/index.js.map +1 -1
  153. package/dist/sdk/io/index.js +1 -1
  154. package/dist/sdk/io/node-filesystem.js +1 -1
  155. package/dist/sdk/job.js +1 -1
  156. package/dist/sdk/journey.js +1 -1
  157. package/dist/sdk/llm/chat-cache.js +1 -1
  158. package/dist/sdk/llm/index.js +1 -1
  159. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  160. package/dist/sdk/llm/model-factors.js +1 -1
  161. package/dist/sdk/personalization.js +1 -1
  162. package/dist/sdk/policy.js +1 -1
  163. package/dist/sdk/query/index.js +1 -1
  164. package/dist/sdk/query/sql-parser.js +1 -1
  165. package/dist/sdk/realtime.js +1 -1
  166. package/dist/sdk/schedule.js +1 -1
  167. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  168. package/dist/sdk/segment/fields-display.js +1 -1
  169. package/dist/sdk/segment/file-discovery.js +1 -1
  170. package/dist/sdk/segment/journey-utils.js +1 -1
  171. package/dist/sdk/segment/journey-validator.js +1 -1
  172. package/dist/sdk/segment/journey-yaml.js +1 -1
  173. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  174. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  175. package/dist/sdk/segment/pull-workflow.js +1 -1
  176. package/dist/sdk/segment/push-recovery.js +1 -1
  177. package/dist/sdk/segment/push-workflow.js +1 -1
  178. package/dist/sdk/segment/resolution-context.js +1 -1
  179. package/dist/sdk/segment/segment-path-parser.js +1 -1
  180. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  181. package/dist/sdk/segment/segment-validator.js +1 -1
  182. package/dist/sdk/segment/target-resolution.js +1 -1
  183. package/dist/sdk/segment/tdx-config.js +1 -1
  184. package/dist/sdk/segment/types/activation-schema.js +1 -1
  185. package/dist/sdk/segment/types/journey-def.js +1 -1
  186. package/dist/sdk/segment/types/journey-schema.js +1 -1
  187. package/dist/sdk/segment/types/segment-def.js +1 -1
  188. package/dist/sdk/segment/types/segment-schema.js +1 -1
  189. package/dist/sdk/segment/validate-files.js +1 -1
  190. package/dist/sdk/segment/yaml-validator.js +1 -1
  191. package/dist/sdk/segment.js +1 -1
  192. package/dist/sdk/types/engage.d.ts +125 -1
  193. package/dist/sdk/types/engage.d.ts.map +1 -1
  194. package/dist/sdk/types/index.d.ts +1 -1
  195. package/dist/sdk/types/index.d.ts.map +1 -1
  196. package/dist/sdk/types/index.js +1 -1
  197. package/dist/sdk/types/index.js.map +1 -1
  198. package/dist/sdk/types/progress.js +1 -1
  199. package/dist/sdk/types/workspace.js +1 -1
  200. package/dist/sdk/user.js +1 -1
  201. package/dist/sdk/util/format-detector.js +1 -1
  202. package/dist/sdk/util/formatters.js +1 -1
  203. package/dist/sdk/util/index.js +1 -1
  204. package/dist/sdk/util/paginate.js +1 -1
  205. package/dist/sdk/util/tree-formatter.js +1 -1
  206. package/dist/sdk/workflow/archive-validation.js +1 -1
  207. package/dist/sdk/workflow/clone-workflow.js +1 -1
  208. package/dist/sdk/workflow/index.js +1 -1
  209. package/dist/sdk/workflow/pull-workflow.js +1 -1
  210. package/dist/sdk/workflow/push-workflow.js +1 -1
  211. package/dist/sdk/workflow/tdx-config.js +1 -1
  212. package/dist/sdk/workflow/workflow-utils.js +1 -1
  213. package/dist/sdk/workspace/access-tracker.js +1 -1
  214. package/dist/sdk/workspace/frontmatter.js +1 -1
  215. package/dist/sdk/workspace/git.js +1 -1
  216. package/dist/sdk/workspace/index.js +1 -1
  217. package/dist/sdk/workspace/templates.js +1 -1
  218. package/dist/sdk/workspace/weekly.js +1 -1
  219. package/dist/sdk/workspace/wikilinks.js +1 -1
  220. package/dist/test-utils/command-runner.js +1 -1
  221. package/dist/test-utils/factories.js +1 -1
  222. package/dist/test-utils/fixtures.js +1 -1
  223. package/dist/test-utils/http-mock.js +1 -1
  224. package/dist/test-utils/index.js +1 -1
  225. package/dist/utils/async.js +1 -1
  226. package/dist/utils/colors.js +1 -1
  227. package/dist/utils/diff.js +1 -1
  228. package/dist/utils/file-permissions.js +1 -1
  229. package/dist/utils/file-reader.js +1 -1
  230. package/dist/utils/github-releases.js +1 -1
  231. package/dist/utils/global-cache.js +1 -1
  232. package/dist/utils/json-loader.js +1 -1
  233. package/dist/utils/local-cache.js +1 -1
  234. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  235. package/dist/utils/logger/formatters/index.js +1 -1
  236. package/dist/utils/logger/handlers/console-handler.js +1 -1
  237. package/dist/utils/logger/handlers/file-handler.js +1 -1
  238. package/dist/utils/logger/handlers/index.js +1 -1
  239. package/dist/utils/logger/handlers/null-handler.js +1 -1
  240. package/dist/utils/logger/index.js +1 -1
  241. package/dist/utils/logger/logger.js +1 -1
  242. package/dist/utils/logger/types.js +1 -1
  243. package/dist/utils/option-validation.js +1 -1
  244. package/dist/utils/process.js +1 -1
  245. package/dist/utils/prompt.js +1 -1
  246. package/dist/utils/spinner.js +1 -1
  247. package/dist/utils/sse-parser.js +1 -1
  248. package/dist/utils/string-utils.js +1 -1
  249. package/dist/utils/table-ref-parser.js +1 -1
  250. package/dist/utils/tdx-logger.js +1 -1
  251. package/dist/utils/version-check.js +1 -1
  252. package/package.json +17 -2
@@ -1 +1 @@
1
- (function(_0x4a319a,_0x5e594d){const _0x3dcda1=a215_0xbf88,_0x5be755=_0x4a319a();while(!![]){try{const _0x3dd44e=parseInt(_0x3dcda1(0x156))/0x1+-parseInt(_0x3dcda1(0x15e))/0x2+-parseInt(_0x3dcda1(0x161))/0x3*(parseInt(_0x3dcda1(0x164))/0x4)+parseInt(_0x3dcda1(0x15b))/0x5*(parseInt(_0x3dcda1(0x159))/0x6)+-parseInt(_0x3dcda1(0x169))/0x7*(-parseInt(_0x3dcda1(0x165))/0x8)+-parseInt(_0x3dcda1(0x166))/0x9*(parseInt(_0x3dcda1(0x168))/0xa)+parseInt(_0x3dcda1(0x16a))/0xb*(-parseInt(_0x3dcda1(0x155))/0xc);if(_0x3dd44e===_0x5e594d)break;else _0x5be755['push'](_0x5be755['shift']());}catch(_0x5282e9){_0x5be755['push'](_0x5be755['shift']());}}}(a215_0x5625,0x59192));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x249bdf=a215_0xbf88;return process.env.TDX_CACHE_DIR||join(homedir(),_0x249bdf(0x15d),_0x249bdf(0x15a));}const registry=new Map();export function registerGlobalCacheKey(_0xd9d342,_0x347880){const _0x2ac892=a215_0xbf88,_0x3c055b=registry['get'](_0xd9d342);if(_0x3c055b&&_0x3c055b!==_0x347880)throw new Error(_0x2ac892(0x15f)+_0xd9d342+_0x2ac892(0x157)+_0x3c055b+_0x2ac892(0x154)+_0x347880+'\x22');registry['set'](_0xd9d342,_0x347880);}export function getGlobalCachePath(_0x29c5fb){return join(getGlobalCacheDir(),_0x29c5fb);}function ensureGlobalCacheDir(){const _0x1cd41d=getGlobalCacheDir();!existsSync(_0x1cd41d)&&mkdirSync(_0x1cd41d,{'recursive':!![]});}function readCacheJson(_0x406813){const _0x187ff3=a215_0xbf88,_0x2dc7ee=getGlobalCachePath(_0x406813);if(!existsSync(_0x2dc7ee))return undefined;try{const _0x7ce0dc=readFileSync(_0x2dc7ee,'utf-8');return JSON[_0x187ff3(0x160)](_0x7ce0dc);}catch{return undefined;}}function writeCacheJson(_0x469968,_0x1fa220){const _0x3118ad=a215_0xbf88;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x469968),JSON[_0x3118ad(0x162)](_0x1fa220,null,0x2),'utf-8');}function readCacheText(_0xc8b7f0){const _0x35d693=a215_0xbf88,_0x4c1f9d=getGlobalCachePath(_0xc8b7f0);if(!existsSync(_0x4c1f9d))return undefined;try{return readFileSync(_0x4c1f9d,_0x35d693(0x15c));}catch{return undefined;}}function writeCacheText(_0x5ed30b,_0xb71302){const _0x2d1bcf=a215_0xbf88;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5ed30b),_0xb71302,_0x2d1bcf(0x15c));}function a215_0xbf88(_0x21040f,_0x4506af){_0x21040f=_0x21040f-0x153;const _0x5625fa=a215_0x5625();let _0xbf885d=_0x5625fa[_0x21040f];return _0xbf885d;}function clearCache(_0x5ba7d2){const _0x25e031=getGlobalCachePath(_0x5ba7d2);if(existsSync(_0x25e031))try{unlinkSync(_0x25e031);}catch{}}function cacheExists(_0xdbdf20){return existsSync(getGlobalCachePath(_0xdbdf20));}function a215_0x5625(){const _0x3beeed=['tdx','30nbDBHQ','utf-8','.cache','1162826bAbleH','Global\x20cache\x20key\x20\x22','parse','718167aNycEm','stringify','default','8hfbHEV','16504NvrNSP','1404eRwVyy','trim','17870VgSlHT','1673hhLtWO','55rhmnIP','{profile}','replace','\x22,\x20cannot\x20register\x20for\x20\x22','73968fxrpUE','527984YoovvA','\x22\x20already\x20registered\x20by\x20\x22','clear','713688QvuzfE'];a215_0x5625=function(){return _0x3beeed;};return a215_0x5625();}export function createGlobalCache(_0x3c009d,_0x4e6648){return registerGlobalCacheKey(_0x3c009d,_0x4e6648),{'read':()=>readCacheJson(_0x3c009d),'write':_0x5cb434=>writeCacheJson(_0x3c009d,_0x5cb434),'clear':()=>clearCache(_0x3c009d),'exists':()=>cacheExists(_0x3c009d),'path':()=>getGlobalCachePath(_0x3c009d)};}export function createGlobalTextCache(_0x50aecb,_0x394813){const _0x19dc56=a215_0xbf88;return registerGlobalCacheKey(_0x50aecb,_0x394813),{'read':()=>readCacheText(_0x50aecb)?.[_0x19dc56(0x167)]()||undefined,'write':_0x5e7bc4=>writeCacheText(_0x50aecb,_0x5e7bc4),'clear':()=>clearCache(_0x50aecb),'exists':()=>cacheExists(_0x50aecb),'path':()=>getGlobalCachePath(_0x50aecb)};}export function createProfileCache(_0x299891,_0x405919){const _0x24582f=_0x2b9303=>{const _0x5cd4fc=a215_0xbf88,_0x3c0f09=_0x2b9303||_0x5cd4fc(0x163);return _0x299891[_0x5cd4fc(0x153)](_0x5cd4fc(0x16b),_0x3c0f09);};return{'read':_0x4171be=>{const _0x5676e3=_0x24582f(_0x4171be);return registerGlobalCacheKey(_0x5676e3,_0x405919),readCacheJson(_0x5676e3);},'write':(_0x5e562b,_0x520aae)=>{const _0x34bb6a=_0x24582f(_0x5e562b);registerGlobalCacheKey(_0x34bb6a,_0x405919),writeCacheJson(_0x34bb6a,_0x520aae);},'clear':_0x30357c=>{const _0x4aed86=_0x24582f(_0x30357c);clearCache(_0x4aed86);},'exists':_0x58041f=>{const _0x5f0a72=_0x24582f(_0x58041f);return cacheExists(_0x5f0a72);},'path':_0x1bd290=>{const _0xc222bc=_0x24582f(_0x1bd290);return getGlobalCachePath(_0xc222bc);}};}export function createOptionalProfileCache(_0xe0923b,_0x471584,_0x11c374={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x11c374,_0x5e4bfe=_0x3bb524=>{return _0x3bb524?''+_0xe0923b+profileSeparator+_0x3bb524+suffix:''+_0xe0923b+suffix;};return{'read':_0x1c4cf1=>{const _0xea5632=_0x5e4bfe(_0x1c4cf1);return registerGlobalCacheKey(_0xea5632,_0x471584),readCacheJson(_0xea5632);},'write':(_0x2203ea,_0x4fef6f)=>{const _0x18b025=_0x5e4bfe(_0x4fef6f);registerGlobalCacheKey(_0x18b025,_0x471584),writeCacheJson(_0x18b025,_0x2203ea);},'clear':_0x3bc88f=>{const _0x5d4315=_0x5e4bfe(_0x3bc88f);clearCache(_0x5d4315);},'exists':_0x201c07=>{const _0x1c603b=_0x5e4bfe(_0x201c07);return cacheExists(_0x1c603b);},'path':_0x516e2d=>{const _0x237446=_0x5e4bfe(_0x516e2d);return getGlobalCachePath(_0x237446);}};}export function clearGlobalRegistry(){const _0x3d74e9=a215_0xbf88;registry[_0x3d74e9(0x158)]();}
1
+ (function(_0x11ce4c,_0x4192a6){const _0x531f41=a215_0x2402,_0xdf83a9=_0x11ce4c();while(!![]){try{const _0x504484=parseInt(_0x531f41(0x1ed))/0x1*(-parseInt(_0x531f41(0x1f0))/0x2)+parseInt(_0x531f41(0x1ec))/0x3*(parseInt(_0x531f41(0x1e6))/0x4)+parseInt(_0x531f41(0x1ea))/0x5+parseInt(_0x531f41(0x1e8))/0x6+parseInt(_0x531f41(0x1eb))/0x7*(parseInt(_0x531f41(0x1e3))/0x8)+parseInt(_0x531f41(0x1f1))/0x9*(-parseInt(_0x531f41(0x1ee))/0xa)+parseInt(_0x531f41(0x1f5))/0xb;if(_0x504484===_0x4192a6)break;else _0xdf83a9['push'](_0xdf83a9['shift']());}catch(_0x1457b1){_0xdf83a9['push'](_0xdf83a9['shift']());}}}(a215_0x31e2,0xcb51c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x277f1f=a215_0x2402;return process.env.TDX_CACHE_DIR||join(homedir(),_0x277f1f(0x1f2),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x3799d3,_0x362861){const _0x3a0330=a215_0x2402,_0x1a0534=registry[_0x3a0330(0x1e4)](_0x3799d3);if(_0x1a0534&&_0x1a0534!==_0x362861)throw new Error('Global\x20cache\x20key\x20\x22'+_0x3799d3+'\x22\x20already\x20registered\x20by\x20\x22'+_0x1a0534+_0x3a0330(0x1f4)+_0x362861+'\x22');registry['set'](_0x3799d3,_0x362861);}export function getGlobalCachePath(_0x46b30e){return join(getGlobalCacheDir(),_0x46b30e);}function a215_0x31e2(){const _0x538d59=['315228kVfDnp','2979342TUfFUw','.cache','trim','\x22,\x20cannot\x20register\x20for\x20\x22','5896759wUSXjd','{profile}','618568kpKduH','get','clear','620212jtBOAn','utf-8','2703642LNLeNm','stringify','7514605ePrfOi','70WBUMuU','3zHIiLh','8TjYQRj','40pUtXsr','parse'];a215_0x31e2=function(){return _0x538d59;};return a215_0x31e2();}function ensureGlobalCacheDir(){const _0x5b62d4=getGlobalCacheDir();!existsSync(_0x5b62d4)&&mkdirSync(_0x5b62d4,{'recursive':!![]});}function readCacheJson(_0x5ec810){const _0xd6c517=a215_0x2402,_0x4dfc1c=getGlobalCachePath(_0x5ec810);if(!existsSync(_0x4dfc1c))return undefined;try{const _0x25e4a3=readFileSync(_0x4dfc1c,_0xd6c517(0x1e7));return JSON[_0xd6c517(0x1ef)](_0x25e4a3);}catch{return undefined;}}function a215_0x2402(_0x382e19,_0x169180){_0x382e19=_0x382e19-0x1e3;const _0x31e21a=a215_0x31e2();let _0x240210=_0x31e21a[_0x382e19];return _0x240210;}function writeCacheJson(_0xa5f99c,_0x5c9c28){const _0x18d453=a215_0x2402;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xa5f99c),JSON[_0x18d453(0x1e9)](_0x5c9c28,null,0x2),_0x18d453(0x1e7));}function readCacheText(_0x14ba9c){const _0x4c5fa4=getGlobalCachePath(_0x14ba9c);if(!existsSync(_0x4c5fa4))return undefined;try{return readFileSync(_0x4c5fa4,'utf-8');}catch{return undefined;}}function writeCacheText(_0x565a05,_0x42a40a){const _0x320e5e=a215_0x2402;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x565a05),_0x42a40a,_0x320e5e(0x1e7));}function clearCache(_0x2e5d3d){const _0x17c36c=getGlobalCachePath(_0x2e5d3d);if(existsSync(_0x17c36c))try{unlinkSync(_0x17c36c);}catch{}}function cacheExists(_0x16200c){return existsSync(getGlobalCachePath(_0x16200c));}export function createGlobalCache(_0x1d26ce,_0x1e6c05){return registerGlobalCacheKey(_0x1d26ce,_0x1e6c05),{'read':()=>readCacheJson(_0x1d26ce),'write':_0xb6d58c=>writeCacheJson(_0x1d26ce,_0xb6d58c),'clear':()=>clearCache(_0x1d26ce),'exists':()=>cacheExists(_0x1d26ce),'path':()=>getGlobalCachePath(_0x1d26ce)};}export function createGlobalTextCache(_0x449820,_0x1e014e){const _0x50587b=a215_0x2402;return registerGlobalCacheKey(_0x449820,_0x1e014e),{'read':()=>readCacheText(_0x449820)?.[_0x50587b(0x1f3)]()||undefined,'write':_0x470a5f=>writeCacheText(_0x449820,_0x470a5f),'clear':()=>clearCache(_0x449820),'exists':()=>cacheExists(_0x449820),'path':()=>getGlobalCachePath(_0x449820)};}export function createProfileCache(_0x35e814,_0x254540){const _0x36eb00=_0x17c64d=>{const _0x547acc=a215_0x2402,_0x2d22a6=_0x17c64d||'default';return _0x35e814['replace'](_0x547acc(0x1f6),_0x2d22a6);};return{'read':_0x591573=>{const _0x127c65=_0x36eb00(_0x591573);return registerGlobalCacheKey(_0x127c65,_0x254540),readCacheJson(_0x127c65);},'write':(_0x5440db,_0x4a453b)=>{const _0x4b9cf3=_0x36eb00(_0x5440db);registerGlobalCacheKey(_0x4b9cf3,_0x254540),writeCacheJson(_0x4b9cf3,_0x4a453b);},'clear':_0xb007b5=>{const _0x58967d=_0x36eb00(_0xb007b5);clearCache(_0x58967d);},'exists':_0x450803=>{const _0x3b0dd4=_0x36eb00(_0x450803);return cacheExists(_0x3b0dd4);},'path':_0x305efa=>{const _0x58057c=_0x36eb00(_0x305efa);return getGlobalCachePath(_0x58057c);}};}export function createOptionalProfileCache(_0x54d104,_0x11d464,_0x29652f={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x29652f,_0x467316=_0x5d2daf=>{return _0x5d2daf?''+_0x54d104+profileSeparator+_0x5d2daf+suffix:''+_0x54d104+suffix;};return{'read':_0x37a41b=>{const _0xee6b0c=_0x467316(_0x37a41b);return registerGlobalCacheKey(_0xee6b0c,_0x11d464),readCacheJson(_0xee6b0c);},'write':(_0x542a75,_0x4944ce)=>{const _0x2fbc20=_0x467316(_0x4944ce);registerGlobalCacheKey(_0x2fbc20,_0x11d464),writeCacheJson(_0x2fbc20,_0x542a75);},'clear':_0x496d13=>{const _0x58abdb=_0x467316(_0x496d13);clearCache(_0x58abdb);},'exists':_0x1c7b67=>{const _0x280238=_0x467316(_0x1c7b67);return cacheExists(_0x280238);},'path':_0x1230fc=>{const _0x5b1476=_0x467316(_0x1230fc);return getGlobalCachePath(_0x5b1476);}};}export function clearGlobalRegistry(){const _0x3399ea=a215_0x2402;registry[_0x3399ea(0x1e5)]();}
@@ -1 +1 @@
1
- function a216_0x2ff4(_0x1fee74,_0x48a6da){_0x1fee74=_0x1fee74-0x103;const _0x5d324c=a216_0x5d32();let _0x2ff442=_0x5d324c[_0x1fee74];return _0x2ff442;}function a216_0x5d32(){const _0x44879c=['12ainfjx','code','2ksamMZ','INVALID_ARGUMENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','243PAUNwc','INTERNAL','12PoQuxa','EACCES','parse','PERMISSION_DENIED','Permission\x20denied\x20reading\x20file:\x20','message','2428255MkUEqD','14296399VsTEdt','50Kiifrr','9798984gxiXfW','14eUyNZm','4564688cSfnLb','34552gyXWtu','File\x20not\x20found:\x20','506231aslJUz','962909UgeiQE','Failed\x20to\x20load\x20JSON:\x20'];a216_0x5d32=function(){return _0x44879c;};return a216_0x5d32();}(function(_0x38f139,_0x4b257e){const _0x590c77=a216_0x2ff4,_0x409ea2=_0x38f139();while(!![]){try{const _0x14b470=-parseInt(_0x590c77(0x105))/0x1*(parseInt(_0x590c77(0x109))/0x2)+parseInt(_0x590c77(0x10c))/0x3*(-parseInt(_0x590c77(0x11a))/0x4)+parseInt(_0x590c77(0x114))/0x5*(parseInt(_0x590c77(0x107))/0x6)+parseInt(_0x590c77(0x118))/0x7*(-parseInt(_0x590c77(0x119))/0x8)+parseInt(_0x590c77(0x117))/0x9+-parseInt(_0x590c77(0x116))/0xa*(-parseInt(_0x590c77(0x104))/0xb)+-parseInt(_0x590c77(0x10e))/0xc*(-parseInt(_0x590c77(0x115))/0xd);if(_0x14b470===_0x4b257e)break;else _0x409ea2['push'](_0x409ea2['shift']());}catch(_0x1f8529){_0x409ea2['push'](_0x409ea2['shift']());}}}(a216_0x5d32,0x8f1a3));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x24c1ed,_0x469db3){const _0x5ad2fc=a216_0x2ff4;try{if(_0x469db3){const _0x213a0f=await readFile(_0x24c1ed,'utf-8');try{return JSON[_0x5ad2fc(0x110)](_0x213a0f);}catch(_0x35166c){throw new SDKError(ErrorCode[_0x5ad2fc(0x10a)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x24c1ed+'\x27:\x20'+(_0x35166c instanceof Error?_0x35166c['message']:String(_0x35166c)));}}else try{return JSON[_0x5ad2fc(0x110)](_0x24c1ed);}catch(_0x26cffb){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x26cffb instanceof Error?_0x26cffb[_0x5ad2fc(0x113)]:String(_0x26cffb)));}}catch(_0x56f32a){if(_0x56f32a instanceof SDKError)throw _0x56f32a;if(_0x56f32a instanceof Error&&_0x5ad2fc(0x108)in _0x56f32a){const _0x1eef41=_0x56f32a;if(_0x1eef41[_0x5ad2fc(0x108)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x5ad2fc(0x103)+_0x24c1ed);else{if(_0x1eef41[_0x5ad2fc(0x108)]===_0x5ad2fc(0x10f))throw new SDKError(ErrorCode[_0x5ad2fc(0x111)],_0x5ad2fc(0x112)+_0x24c1ed);}}throw new SDKError(ErrorCode[_0x5ad2fc(0x10d)],_0x5ad2fc(0x106)+(_0x56f32a instanceof Error?_0x56f32a['message']:String(_0x56f32a)));}}export async function loadJSONFromOptions(_0x402db9,_0x15d75c){const _0x3ba98e=a216_0x2ff4;if(_0x402db9&&_0x15d75c)throw new SDKError(ErrorCode[_0x3ba98e(0x10a)],_0x3ba98e(0x10b));if(_0x402db9)return await loadJSON(_0x402db9,![]);if(_0x15d75c)return await loadJSON(_0x15d75c,!![]);return undefined;}
1
+ function a216_0x5182(_0x3f7cb9,_0x3b263f){_0x3f7cb9=_0x3f7cb9-0x74;const _0x30918e=a216_0x3091();let _0x51823c=_0x30918e[_0x3f7cb9];return _0x51823c;}(function(_0xee18eb,_0x91430a){const _0x2c692a=a216_0x5182,_0x1e170d=_0xee18eb();while(!![]){try{const _0x2670af=parseInt(_0x2c692a(0x8a))/0x1+-parseInt(_0x2c692a(0x74))/0x2+parseInt(_0x2c692a(0x79))/0x3*(parseInt(_0x2c692a(0x8b))/0x4)+parseInt(_0x2c692a(0x78))/0x5*(parseInt(_0x2c692a(0x89))/0x6)+-parseInt(_0x2c692a(0x7e))/0x7*(parseInt(_0x2c692a(0x7b))/0x8)+parseInt(_0x2c692a(0x76))/0x9+-parseInt(_0x2c692a(0x77))/0xa;if(_0x2670af===_0x91430a)break;else _0x1e170d['push'](_0x1e170d['shift']());}catch(_0x681378){_0x1e170d['push'](_0x1e170d['shift']());}}}(a216_0x3091,0x2319a));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x3f0c11,_0x4adba2){const _0x4b66d9=a216_0x5182;try{if(_0x4adba2){const _0x3d0ab1=await readFile(_0x3f0c11,_0x4b66d9(0x7c));try{return JSON[_0x4b66d9(0x7d)](_0x3d0ab1);}catch(_0x5996de){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4b66d9(0x86)+_0x3f0c11+_0x4b66d9(0x85)+(_0x5996de instanceof Error?_0x5996de['message']:String(_0x5996de)));}}else try{return JSON[_0x4b66d9(0x7d)](_0x3f0c11);}catch(_0x5e0b74){throw new SDKError(ErrorCode[_0x4b66d9(0x84)],'Invalid\x20JSON\x20string:\x20'+(_0x5e0b74 instanceof Error?_0x5e0b74[_0x4b66d9(0x81)]:String(_0x5e0b74)));}}catch(_0x1b9c39){if(_0x1b9c39 instanceof SDKError)throw _0x1b9c39;if(_0x1b9c39 instanceof Error&&'code'in _0x1b9c39){const _0x3a1870=_0x1b9c39;if(_0x3a1870[_0x4b66d9(0x83)]===_0x4b66d9(0x7a))throw new SDKError(ErrorCode[_0x4b66d9(0x87)],_0x4b66d9(0x80)+_0x3f0c11);else{if(_0x3a1870[_0x4b66d9(0x83)]===_0x4b66d9(0x75))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x4b66d9(0x7f)+_0x3f0c11);}}throw new SDKError(ErrorCode[_0x4b66d9(0x88)],_0x4b66d9(0x8c)+(_0x1b9c39 instanceof Error?_0x1b9c39[_0x4b66d9(0x81)]:String(_0x1b9c39)));}}function a216_0x3091(){const _0x17904f=['Invalid\x20JSON\x20in\x20file\x20\x27','NOT_FOUND','INTERNAL','1536378CILSFZ','201055agBMaz','4LKkVQA','Failed\x20to\x20load\x20JSON:\x20','125374tqJdvP','EACCES','2063556qzFWII','4596450RYevPV','5NRLWzZ','61881cuYCoF','ENOENT','8vsQwNL','utf-8','parse','286489oueZAe','Permission\x20denied\x20reading\x20file:\x20','File\x20not\x20found:\x20','message','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','code','INVALID_ARGUMENT','\x27:\x20'];a216_0x3091=function(){return _0x17904f;};return a216_0x3091();}export async function loadJSONFromOptions(_0xbdc4c5,_0x3f2ec9){const _0x3d2e5c=a216_0x5182;if(_0xbdc4c5&&_0x3f2ec9)throw new SDKError(ErrorCode[_0x3d2e5c(0x84)],_0x3d2e5c(0x82));if(_0xbdc4c5)return await loadJSON(_0xbdc4c5,![]);if(_0x3f2ec9)return await loadJSON(_0x3f2ec9,!![]);return undefined;}
@@ -1 +1 @@
1
- const a217_0x166cdc=a217_0x8f4e;(function(_0x4c758c,_0x3bf69a){const _0x4c38a6=a217_0x8f4e,_0x56fbb1=_0x4c758c();while(!![]){try{const _0x12f8af=-parseInt(_0x4c38a6(0x1e8))/0x1+parseInt(_0x4c38a6(0x1f5))/0x2+-parseInt(_0x4c38a6(0x1f7))/0x3+parseInt(_0x4c38a6(0x1e9))/0x4*(parseInt(_0x4c38a6(0x1fa))/0x5)+parseInt(_0x4c38a6(0x1f8))/0x6+parseInt(_0x4c38a6(0x1ec))/0x7+parseInt(_0x4c38a6(0x1ea))/0x8*(-parseInt(_0x4c38a6(0x1f6))/0x9);if(_0x12f8af===_0x3bf69a)break;else _0x56fbb1['push'](_0x56fbb1['shift']());}catch(_0x4fa00d){_0x56fbb1['push'](_0x56fbb1['shift']());}}}(a217_0x1e52,0x6bbb5));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a217_0x1e52(){const _0x295e7a=['1044745ZVjpux','root','parse','791241IjzEpB','4WRdiBb','19736HmcDMM','get','4260760PbzvYK','utf-8','\x22\x20already\x20registered\x20by\x20\x22','stringify','\x22,\x20cannot\x20register\x20for\x20\x22','clear','.cache/tdx','trim','Cache\x20key\x20\x22','449028nGIhPc','99dLlraG','1145793YHXijV','3596610xfpKEB','set'];a217_0x1e52=function(){return _0x295e7a;};return a217_0x1e52();}import{homedir}from'os';const LOCAL_CACHE_DIR=a217_0x166cdc(0x1f2),registry=new Map();export function registerCacheKey(_0x2aa40b,_0x53ad0d){const _0xd6ef13=a217_0x166cdc,_0x3f0cec=registry[_0xd6ef13(0x1eb)](_0x2aa40b);if(_0x3f0cec&&_0x3f0cec!==_0x53ad0d)throw new Error(_0xd6ef13(0x1f4)+_0x2aa40b+_0xd6ef13(0x1ee)+_0x3f0cec+_0xd6ef13(0x1f0)+_0x53ad0d+'\x22');registry[_0xd6ef13(0x1f9)](_0x2aa40b,_0x53ad0d);}export function getCacheDir(){const _0x110a79=a217_0x166cdc,_0x1c833c=process['cwd'](),_0x3f1db0=_0x1c833c===parse(_0x1c833c)[_0x110a79(0x1fb)]?homedir():_0x1c833c;return join(_0x3f1db0,LOCAL_CACHE_DIR);}export function getCachePath(_0x1b4bc2){return join(getCacheDir(),_0x1b4bc2);}function ensureCacheDir(){const _0x413428=getCacheDir();!existsSync(_0x413428)&&mkdirSync(_0x413428,{'recursive':!![]});}function readCacheJson(_0x1161d6){const _0x21c875=a217_0x166cdc,_0x50757d=getCachePath(_0x1161d6);if(!existsSync(_0x50757d))return undefined;try{const _0x24f736=readFileSync(_0x50757d,'utf-8');return JSON[_0x21c875(0x1fc)](_0x24f736);}catch{return undefined;}}function a217_0x8f4e(_0x17e0d9,_0x34c71b){_0x17e0d9=_0x17e0d9-0x1e8;const _0x1e5221=a217_0x1e52();let _0x8f4e22=_0x1e5221[_0x17e0d9];return _0x8f4e22;}function writeCacheJson(_0x1c91b5,_0x254e9a){const _0x2529ab=a217_0x166cdc;ensureCacheDir(),writeFileSync(getCachePath(_0x1c91b5),JSON[_0x2529ab(0x1ef)](_0x254e9a,null,0x2),_0x2529ab(0x1ed));}function readCacheText(_0x192688){const _0x3a417e=a217_0x166cdc,_0x3d70b4=getCachePath(_0x192688);if(!existsSync(_0x3d70b4))return undefined;try{return readFileSync(_0x3d70b4,_0x3a417e(0x1ed));}catch{return undefined;}}function writeCacheText(_0x1fdf5c,_0x153a59){const _0x213138=a217_0x166cdc;ensureCacheDir(),writeFileSync(getCachePath(_0x1fdf5c),_0x153a59,_0x213138(0x1ed));}function clearCache(_0x576552){const _0x51ddc7=getCachePath(_0x576552);if(existsSync(_0x51ddc7))try{unlinkSync(_0x51ddc7);}catch{}}function cacheExists(_0x30401f){return existsSync(getCachePath(_0x30401f));}export function createCache(_0x3033d7,_0xb265f9){return registerCacheKey(_0x3033d7,_0xb265f9),{'read':()=>readCacheJson(_0x3033d7),'write':_0x5af4e2=>writeCacheJson(_0x3033d7,_0x5af4e2),'clear':()=>clearCache(_0x3033d7),'exists':()=>cacheExists(_0x3033d7),'path':()=>getCachePath(_0x3033d7)};}export function createTextCache(_0x469ecb,_0x36f756){const _0x5b089a=a217_0x166cdc;return registerCacheKey(_0x469ecb,_0x36f756),{'read':()=>readCacheText(_0x469ecb)?.[_0x5b089a(0x1f3)]()||undefined,'write':_0x2a1858=>writeCacheText(_0x469ecb,_0x2a1858),'clear':()=>clearCache(_0x469ecb),'exists':()=>cacheExists(_0x469ecb),'path':()=>getCachePath(_0x469ecb)};}export function clearRegistry(){const _0x2b5739=a217_0x166cdc;registry[_0x2b5739(0x1f1)]();}
1
+ function a217_0x3b06(_0x479f0f,_0x3860a0){_0x479f0f=_0x479f0f-0x17b;const _0x3f77f8=a217_0x3f77();let _0x3b06bc=_0x3f77f8[_0x479f0f];return _0x3b06bc;}(function(_0x3a6ee0,_0x12b148){const _0x1b123e=a217_0x3b06,_0x246909=_0x3a6ee0();while(!![]){try{const _0x4b88c5=-parseInt(_0x1b123e(0x182))/0x1*(parseInt(_0x1b123e(0x189))/0x2)+-parseInt(_0x1b123e(0x17b))/0x3+-parseInt(_0x1b123e(0x181))/0x4*(-parseInt(_0x1b123e(0x17c))/0x5)+parseInt(_0x1b123e(0x186))/0x6+-parseInt(_0x1b123e(0x187))/0x7*(parseInt(_0x1b123e(0x18c))/0x8)+-parseInt(_0x1b123e(0x17f))/0x9+parseInt(_0x1b123e(0x17e))/0xa;if(_0x4b88c5===_0x12b148)break;else _0x246909['push'](_0x246909['shift']());}catch(_0x1d302e){_0x246909['push'](_0x246909['shift']());}}}(a217_0x3f77,0xdb714));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x5a1e0c,_0x249c22){const _0x31cb21=a217_0x3b06,_0x11954e=registry['get'](_0x5a1e0c);if(_0x11954e&&_0x11954e!==_0x249c22)throw new Error(_0x31cb21(0x18b)+_0x5a1e0c+_0x31cb21(0x180)+_0x11954e+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x249c22+'\x22');registry[_0x31cb21(0x183)](_0x5a1e0c,_0x249c22);}function a217_0x3f77(){const _0x21aa27=['1DPFUYk','set','utf-8','root','1144626HaIvlt','729946vTASmr','trim','1498138zyzVNJ','clear','Cache\x20key\x20\x22','72GVcZLp','stringify','3470223EpzPpI','5FSfPNb','cwd','46112160JZkCpx','10639242JWzOat','\x22\x20already\x20registered\x20by\x20\x22','493196sMNSrQ'];a217_0x3f77=function(){return _0x21aa27;};return a217_0x3f77();}export function getCacheDir(){const _0xf3caae=a217_0x3b06,_0x4e6df3=process[_0xf3caae(0x17d)](),_0x27e4f3=_0x4e6df3===parse(_0x4e6df3)[_0xf3caae(0x185)]?homedir():_0x4e6df3;return join(_0x27e4f3,LOCAL_CACHE_DIR);}export function getCachePath(_0x20c3b4){return join(getCacheDir(),_0x20c3b4);}function ensureCacheDir(){const _0x6447b0=getCacheDir();!existsSync(_0x6447b0)&&mkdirSync(_0x6447b0,{'recursive':!![]});}function readCacheJson(_0x2b1afb){const _0x31cdfb=a217_0x3b06,_0x5bdb9d=getCachePath(_0x2b1afb);if(!existsSync(_0x5bdb9d))return undefined;try{const _0x1214bc=readFileSync(_0x5bdb9d,_0x31cdfb(0x184));return JSON['parse'](_0x1214bc);}catch{return undefined;}}function writeCacheJson(_0x5695bf,_0xf31c88){const _0x45caf2=a217_0x3b06;ensureCacheDir(),writeFileSync(getCachePath(_0x5695bf),JSON[_0x45caf2(0x18d)](_0xf31c88,null,0x2),_0x45caf2(0x184));}function readCacheText(_0x2c1498){const _0x638dbe=a217_0x3b06,_0x16a1db=getCachePath(_0x2c1498);if(!existsSync(_0x16a1db))return undefined;try{return readFileSync(_0x16a1db,_0x638dbe(0x184));}catch{return undefined;}}function writeCacheText(_0x3b2bc9,_0x4e61a7){const _0x19776c=a217_0x3b06;ensureCacheDir(),writeFileSync(getCachePath(_0x3b2bc9),_0x4e61a7,_0x19776c(0x184));}function clearCache(_0x3e8f59){const _0x4ba54d=getCachePath(_0x3e8f59);if(existsSync(_0x4ba54d))try{unlinkSync(_0x4ba54d);}catch{}}function cacheExists(_0xdbd37e){return existsSync(getCachePath(_0xdbd37e));}export function createCache(_0x5cc20f,_0x31865e){return registerCacheKey(_0x5cc20f,_0x31865e),{'read':()=>readCacheJson(_0x5cc20f),'write':_0x282fb3=>writeCacheJson(_0x5cc20f,_0x282fb3),'clear':()=>clearCache(_0x5cc20f),'exists':()=>cacheExists(_0x5cc20f),'path':()=>getCachePath(_0x5cc20f)};}export function createTextCache(_0x49d164,_0x1c6514){const _0x7b54cb=a217_0x3b06;return registerCacheKey(_0x49d164,_0x1c6514),{'read':()=>readCacheText(_0x49d164)?.[_0x7b54cb(0x188)]()||undefined,'write':_0x8aa39a=>writeCacheText(_0x49d164,_0x8aa39a),'clear':()=>clearCache(_0x49d164),'exists':()=>cacheExists(_0x49d164),'path':()=>getCachePath(_0x49d164)};}export function clearRegistry(){const _0x29491e=a217_0x3b06;registry[_0x29491e(0x18a)]();}
@@ -1 +1 @@
1
- const a218_0x500ad5=a218_0xbc79;function a218_0xbc79(_0x5b67c6,_0x24fcb6){_0x5b67c6=_0x5b67c6-0x177;const _0x1a8213=a218_0x1a82();let _0xbc7987=_0x1a8213[_0x5b67c6];return _0xbc7987;}(function(_0x3c83a1,_0x5e866f){const _0x4801a5=a218_0xbc79,_0x40be15=_0x3c83a1();while(!![]){try{const _0x5b0629=parseInt(_0x4801a5(0x192))/0x1+-parseInt(_0x4801a5(0x181))/0x2*(-parseInt(_0x4801a5(0x18c))/0x3)+-parseInt(_0x4801a5(0x17d))/0x4*(parseInt(_0x4801a5(0x180))/0x5)+parseInt(_0x4801a5(0x193))/0x6*(parseInt(_0x4801a5(0x18b))/0x7)+parseInt(_0x4801a5(0x186))/0x8*(-parseInt(_0x4801a5(0x18a))/0x9)+-parseInt(_0x4801a5(0x18e))/0xa+parseInt(_0x4801a5(0x17a))/0xb;if(_0x5b0629===_0x5e866f)break;else _0x40be15['push'](_0x40be15['shift']());}catch(_0x30ee4c){_0x40be15['push'](_0x40be15['shift']());}}}(a218_0x1a82,0xd6dc7));import a218_0x50f9b1 from'chalk';function a218_0x1a82(){const _0x1073ee=['yellow','colors','DEBUG','55312hqklxu','component','default','format','540iWGgXg','4018MFfxKF','498faKvyO','blue','10960240yPbAyV','message','Chalk','INFO','1070653hHAJYW','1896ABGuEg','chalk','timestamp','level','cyan','13848560koWVcy','colorLevel','dim','1144rijUVf','ERROR',']\x20[','15260DsFInx','9070MAoRAN','green'];a218_0x1a82=function(){return _0x1073ee;};return a218_0x1a82();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x50f9b1,ChalkClass=chalkModule[a218_0x500ad5(0x190)]||chalkModule[a218_0x500ad5(0x188)]?.[a218_0x500ad5(0x190)];export class DefaultLogFormatter{[a218_0x500ad5(0x184)];[a218_0x500ad5(0x194)];constructor(_0x1d7d7b={}){const _0x53a2c9=a218_0x500ad5;this[_0x53a2c9(0x184)]=_0x1d7d7b[_0x53a2c9(0x184)]??![],this['chalk']=_0x1d7d7b[_0x53a2c9(0x184)]&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x50f9b1;}[a218_0x500ad5(0x189)](_0x3653d0){const _0x4b1da8=a218_0x500ad5,_0x4320f8=formatTimestamp(_0x3653d0[_0x4b1da8(0x177)]),_0x2470ca=logLevelToString(_0x3653d0[_0x4b1da8(0x178)]);if(!this[_0x4b1da8(0x184)])return _0x4320f8+'\x20['+_0x2470ca+_0x4b1da8(0x17f)+_0x3653d0[_0x4b1da8(0x187)]+']\x20'+_0x3653d0[_0x4b1da8(0x18f)];const _0x19287b=this['chalk'][_0x4b1da8(0x17c)](_0x4320f8),_0x16813c=this[_0x4b1da8(0x17b)](_0x2470ca,_0x3653d0['level']),_0x273112=this[_0x4b1da8(0x194)][_0x4b1da8(0x18d)]('['+_0x3653d0['component']+']');return _0x19287b+'\x20'+_0x16813c+'\x20'+_0x273112+'\x20'+_0x3653d0[_0x4b1da8(0x18f)];}['colorLevel'](_0x3ca36f,_0x5c6e2f){const _0x384866=a218_0x500ad5;switch(_0x5c6e2f){case LogLevel['TRACE']:return this[_0x384866(0x194)]['gray']('['+_0x3ca36f+']');case LogLevel[_0x384866(0x185)]:return this['chalk'][_0x384866(0x182)]('['+_0x3ca36f+']');case LogLevel[_0x384866(0x191)]:return this[_0x384866(0x194)][_0x384866(0x179)]('['+_0x3ca36f+']');case LogLevel['WARN']:return this['chalk'][_0x384866(0x183)]('['+_0x3ca36f+']');case LogLevel[_0x384866(0x17e)]:return this[_0x384866(0x194)]['red']('['+_0x3ca36f+']');default:return'['+_0x3ca36f+']';}}}
1
+ const a218_0x2b5e01=a218_0x283d;function a218_0x2175(){const _0x1a5e5b=['yellow','902836LtghnS','component','5730129dZbElq','TRACE','message','19115280WFMblj','174557TjqpHf','colors','133203agvzxK','blue','ERROR','721484XZXSzy','default','timestamp','colorLevel','80TXPxZa','level','7290ajIEev','chalk','cyan','1848CQrbmo','gray',']\x20[','3nuamcn'];a218_0x2175=function(){return _0x1a5e5b;};return a218_0x2175();}(function(_0x179d43,_0x1374ec){const _0x4fb2ac=a218_0x283d,_0x2913f9=_0x179d43();while(!![]){try{const _0x4ce0f0=parseInt(_0x4fb2ac(0x16a))/0x1+-parseInt(_0x4fb2ac(0x164))/0x2+parseInt(_0x4fb2ac(0x162))/0x3*(-parseInt(_0x4fb2ac(0x156))/0x4)+-parseInt(_0x4fb2ac(0x15c))/0x5*(parseInt(_0x4fb2ac(0x15f))/0x6)+-parseInt(_0x4fb2ac(0x153))/0x7*(-parseInt(_0x4fb2ac(0x15a))/0x8)+-parseInt(_0x4fb2ac(0x166))/0x9+parseInt(_0x4fb2ac(0x169))/0xa;if(_0x4ce0f0===_0x1374ec)break;else _0x2913f9['push'](_0x2913f9['shift']());}catch(_0x148332){_0x2913f9['push'](_0x2913f9['shift']());}}}(a218_0x2175,0x886f9));import a218_0x21589a from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a218_0x283d(_0x36705d,_0x1e05a0){_0x36705d=_0x36705d-0x152;const _0x217547=a218_0x2175();let _0x283d8d=_0x217547[_0x36705d];return _0x283d8d;}const chalkModule=a218_0x21589a,ChalkClass=chalkModule['Chalk']||chalkModule[a218_0x2b5e01(0x157)]?.['Chalk'];export class DefaultLogFormatter{[a218_0x2b5e01(0x152)];[a218_0x2b5e01(0x15d)];constructor(_0x1672b1={}){const _0x253cc2=a218_0x2b5e01;this[_0x253cc2(0x152)]=_0x1672b1['colors']??![],this[_0x253cc2(0x15d)]=_0x1672b1[_0x253cc2(0x152)]&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x21589a;}['format'](_0x29183a){const _0x443502=a218_0x2b5e01,_0x1d63a0=formatTimestamp(_0x29183a[_0x443502(0x158)]),_0x2de5dc=logLevelToString(_0x29183a[_0x443502(0x15b)]);if(!this[_0x443502(0x152)])return _0x1d63a0+'\x20['+_0x2de5dc+_0x443502(0x161)+_0x29183a['component']+']\x20'+_0x29183a[_0x443502(0x168)];const _0x12be05=this[_0x443502(0x15d)]['dim'](_0x1d63a0),_0x11a7a2=this['colorLevel'](_0x2de5dc,_0x29183a[_0x443502(0x15b)]),_0x222315=this[_0x443502(0x15d)][_0x443502(0x154)]('['+_0x29183a[_0x443502(0x165)]+']');return _0x12be05+'\x20'+_0x11a7a2+'\x20'+_0x222315+'\x20'+_0x29183a['message'];}[a218_0x2b5e01(0x159)](_0x369c41,_0x1411cc){const _0x350a31=a218_0x2b5e01;switch(_0x1411cc){case LogLevel[_0x350a31(0x167)]:return this[_0x350a31(0x15d)][_0x350a31(0x160)]('['+_0x369c41+']');case LogLevel['DEBUG']:return this[_0x350a31(0x15d)]['green']('['+_0x369c41+']');case LogLevel['INFO']:return this[_0x350a31(0x15d)][_0x350a31(0x15e)]('['+_0x369c41+']');case LogLevel['WARN']:return this[_0x350a31(0x15d)][_0x350a31(0x163)]('['+_0x369c41+']');case LogLevel[_0x350a31(0x155)]:return this[_0x350a31(0x15d)]['red']('['+_0x369c41+']');default:return'['+_0x369c41+']';}}}
@@ -1 +1 @@
1
- function a219_0x301d(){var _0x52dd80=['4530adlXxS','300302Obofcm','15aqyCKy','195080lritcK','215060uxklun','1710144BkVtyn','2191DHxeoz','149860UZGJHb','52816olvEAm'];a219_0x301d=function(){return _0x52dd80;};return a219_0x301d();}function a219_0x17a3(_0x169cf8,_0x1e8e07){_0x169cf8=_0x169cf8-0x171;var _0x301d7f=a219_0x301d();var _0x17a306=_0x301d7f[_0x169cf8];return _0x17a306;}(function(_0x5a78a0,_0x507419){var _0x351db1=a219_0x17a3,_0x5cc9f1=_0x5a78a0();while(!![]){try{var _0x2d255a=parseInt(_0x351db1(0x177))/0x1+parseInt(_0x351db1(0x175))/0x2+parseInt(_0x351db1(0x178))/0x3*(parseInt(_0x351db1(0x171))/0x4)+-parseInt(_0x351db1(0x174))/0x5+parseInt(_0x351db1(0x176))/0x6*(-parseInt(_0x351db1(0x173))/0x7)+parseInt(_0x351db1(0x179))/0x8+-parseInt(_0x351db1(0x172))/0x9;if(_0x2d255a===_0x507419)break;else _0x5cc9f1['push'](_0x5cc9f1['shift']());}catch(_0x1a92c1){_0x5cc9f1['push'](_0x5cc9f1['shift']());}}}(a219_0x301d,0x27f21));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x4544b3,_0xeb4e45){var _0xcb2c5c=a219_0x1aca,_0x32671c=_0x4544b3();while(!![]){try{var _0x1e2b0a=parseInt(_0xcb2c5c(0x144))/0x1*(-parseInt(_0xcb2c5c(0x141))/0x2)+parseInt(_0xcb2c5c(0x146))/0x3*(parseInt(_0xcb2c5c(0x145))/0x4)+-parseInt(_0xcb2c5c(0x140))/0x5+parseInt(_0xcb2c5c(0x147))/0x6*(parseInt(_0xcb2c5c(0x143))/0x7)+parseInt(_0xcb2c5c(0x142))/0x8*(parseInt(_0xcb2c5c(0x14a))/0x9)+parseInt(_0xcb2c5c(0x149))/0xa+-parseInt(_0xcb2c5c(0x148))/0xb;if(_0x1e2b0a===_0xeb4e45)break;else _0x32671c['push'](_0x32671c['shift']());}catch(_0x554e68){_0x32671c['push'](_0x32671c['shift']());}}}(a219_0xbf5d,0x3fa24));function a219_0x1aca(_0x202946,_0x44aebb){_0x202946=_0x202946-0x140;var _0xbf5d27=a219_0xbf5d();var _0x1aca82=_0xbf5d27[_0x202946];return _0x1aca82;}function a219_0xbf5d(){var _0x5dd45a=['333GdKMyC','888828xGbVAs','6ypJsYY','1051122mMHrqH','5363039lPtvii','3386100qBQtyl','2105658vLmgcy','2185080neXNNN','1094tgkqel','8AruaOD','14uJLQZs'];a219_0xbf5d=function(){return _0x5dd45a;};return a219_0xbf5d();}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a220_0x971015=a220_0x458c;(function(_0x51c371,_0x119878){const _0x205d80=a220_0x458c,_0x3d7eeb=_0x51c371();while(!![]){try{const _0x531c88=-parseInt(_0x205d80(0xff))/0x1+parseInt(_0x205d80(0x10d))/0x2*(parseInt(_0x205d80(0xfe))/0x3)+parseInt(_0x205d80(0x109))/0x4*(-parseInt(_0x205d80(0x103))/0x5)+parseInt(_0x205d80(0x10b))/0x6+parseInt(_0x205d80(0x101))/0x7+-parseInt(_0x205d80(0x104))/0x8*(parseInt(_0x205d80(0x108))/0x9)+-parseInt(_0x205d80(0x10a))/0xa;if(_0x531c88===_0x119878)break;else _0x3d7eeb['push'](_0x3d7eeb['shift']());}catch(_0x7ef77c){_0x3d7eeb['push'](_0x3d7eeb['shift']());}}}(a220_0x387e,0x284fd));import{LogLevel as a220_0x431e23}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a220_0x971015(0x105)];['useStderr'];[a220_0x971015(0x10e)];constructor(_0x1c1567={}){const _0x22ddb8=a220_0x971015;this[_0x22ddb8(0x105)]=_0x1c1567[_0x22ddb8(0x105)]??a220_0x431e23[_0x22ddb8(0x102)],this['useStderr']=_0x1c1567[_0x22ddb8(0x106)]??!![],this[_0x22ddb8(0x10e)]=new DefaultLogFormatter({'colors':_0x1c1567['colors']??!![]});}[a220_0x971015(0x10c)](_0x1da070){const _0x4ff7cd=a220_0x971015;if(_0x1da070[_0x4ff7cd(0x107)]<this[_0x4ff7cd(0x105)])return;const _0xd50f78=this[_0x4ff7cd(0x10e)][_0x4ff7cd(0x100)](_0x1da070);this['useStderr']&&_0x1da070[_0x4ff7cd(0x107)]>=a220_0x431e23[_0x4ff7cd(0x102)]?console['error'](_0xd50f78):console['log'](_0xd50f78);}}function a220_0x458c(_0x4fe114,_0x592a8d){_0x4fe114=_0x4fe114-0xfe;const _0x387e33=a220_0x387e();let _0x458c93=_0x387e33[_0x4fe114];return _0x458c93;}function a220_0x387e(){const _0x163b9c=['level','9iRGkUA','285132MsTXoK','933660UnuZcX','1892730cLMEbg','handle','58YBuHxP','formatter','24663dhZQME','103400OxIUEg','format','1387127CnchWB','WARN','5uESzQV','2550872dnFTAI','minLevel','useStderr'];a220_0x387e=function(){return _0x163b9c;};return a220_0x387e();}
1
+ function a220_0x8083(_0x214446,_0x127992){_0x214446=_0x214446-0x140;const _0x30d87d=a220_0x30d8();let _0x808355=_0x30d87d[_0x214446];return _0x808355;}const a220_0x494790=a220_0x8083;(function(_0x29d0e2,_0x280ed8){const _0x3f8f77=a220_0x8083,_0x145dd7=_0x29d0e2();while(!![]){try{const _0x28bf7a=-parseInt(_0x3f8f77(0x14f))/0x1+parseInt(_0x3f8f77(0x146))/0x2*(parseInt(_0x3f8f77(0x147))/0x3)+parseInt(_0x3f8f77(0x144))/0x4*(-parseInt(_0x3f8f77(0x14b))/0x5)+-parseInt(_0x3f8f77(0x143))/0x6+parseInt(_0x3f8f77(0x145))/0x7*(parseInt(_0x3f8f77(0x150))/0x8)+-parseInt(_0x3f8f77(0x149))/0x9*(-parseInt(_0x3f8f77(0x14a))/0xa)+parseInt(_0x3f8f77(0x151))/0xb*(parseInt(_0x3f8f77(0x153))/0xc);if(_0x28bf7a===_0x280ed8)break;else _0x145dd7['push'](_0x145dd7['shift']());}catch(_0x54cea4){_0x145dd7['push'](_0x145dd7['shift']());}}}(a220_0x30d8,0x30fdd));import{LogLevel as a220_0x177055}from'../types.js';function a220_0x30d8(){const _0x496da8=['19480nviAEa','260BvUDzk','formatter','format','colors','295439iteiIV','80wumhNK','680581vhFjHF','handle','60qspCuA','level','WARN','minLevel','1470990KkPGDY','18636Xitbov','218771QOyiPP','48476UoqYgk','18eUwjfO','useStderr','999dAxudT'];a220_0x30d8=function(){return _0x496da8;};return a220_0x30d8();}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a220_0x494790(0x142)];[a220_0x494790(0x148)];[a220_0x494790(0x14c)];constructor(_0x508300={}){const _0x3e14fd=a220_0x494790;this[_0x3e14fd(0x142)]=_0x508300['minLevel']??a220_0x177055[_0x3e14fd(0x141)],this[_0x3e14fd(0x148)]=_0x508300['useStderr']??!![],this[_0x3e14fd(0x14c)]=new DefaultLogFormatter({'colors':_0x508300[_0x3e14fd(0x14e)]??!![]});}[a220_0x494790(0x152)](_0x4659da){const _0x1d6c05=a220_0x494790;if(_0x4659da[_0x1d6c05(0x140)]<this[_0x1d6c05(0x142)])return;const _0x4924b3=this['formatter'][_0x1d6c05(0x14d)](_0x4659da);this[_0x1d6c05(0x148)]&&_0x4659da['level']>=a220_0x177055[_0x1d6c05(0x141)]?console['error'](_0x4924b3):console['log'](_0x4924b3);}}
@@ -1 +1 @@
1
- const a221_0x39b800=a221_0x5e02;(function(_0x21a704,_0x83337){const _0x545f01=a221_0x5e02,_0x1cd750=_0x21a704();while(!![]){try{const _0x3fa34c=-parseInt(_0x545f01(0x15c))/0x1+-parseInt(_0x545f01(0x155))/0x2*(parseInt(_0x545f01(0x171))/0x3)+-parseInt(_0x545f01(0x16c))/0x4*(parseInt(_0x545f01(0x15a))/0x5)+-parseInt(_0x545f01(0x16f))/0x6+-parseInt(_0x545f01(0x16e))/0x7+parseInt(_0x545f01(0x161))/0x8+parseInt(_0x545f01(0x16b))/0x9*(parseInt(_0x545f01(0x169))/0xa);if(_0x3fa34c===_0x83337)break;else _0x1cd750['push'](_0x1cd750['shift']());}catch(_0x13a551){_0x1cd750['push'](_0x1cd750['shift']());}}}(a221_0x15fc,0x6c1f9));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a221_0x5e02(_0x54d3ef,_0x11c7b0){_0x54d3ef=_0x54d3ef-0x14c;const _0x15fce1=a221_0x15fc();let _0x5e0206=_0x15fce1[_0x54d3ef];return _0x5e0206;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';function a221_0x15fc(){const _0x320a87=['\x5c$&','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','filePath','5862136IDmVtu','error','logPath','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logBaseName','logDir','format','split','24290sWUJHj','toISOString','5715JarkJi','4yQlhrG','Warning:\x20Error\x20writing\x20to\x20','754285DQjHCY','1159830zbTFJS','init','1035xYyqEJ','handle','logFileName','rotateOldLogs','logs','mtime','getLogPath','end','test','includes','rotate','.log','close','2606dpDggR','tdx.log','.gz','Warning:\x20Failed\x20to\x20compress\x20','filter','3637965tkCLaF','logStream','354121ToeDmv','replace'];a221_0x15fc=function(){return _0x320a87;};return a221_0x15fc();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a221_0x39b800(0x163)];['logDir'];[a221_0x39b800(0x173)];['logBaseName'];[a221_0x39b800(0x15b)]=null;[a221_0x39b800(0x152)];constructor(_0x4ddd93={}){const _0x1ced12=a221_0x39b800;this['logPath']=_0x4ddd93[_0x1ced12(0x160)]??join(getGlobalCacheDir(),_0x1ced12(0x14c),_0x1ced12(0x156)),this['logDir']=dirname(this[_0x1ced12(0x163)]),this[_0x1ced12(0x173)]=basename(this[_0x1ced12(0x163)]),this[_0x1ced12(0x165)]=this[_0x1ced12(0x173)][_0x1ced12(0x15d)](/\.log$/,''),this[_0x1ced12(0x152)]=_0x4ddd93[_0x1ced12(0x152)]??!![];}async[a221_0x39b800(0x170)](){const _0x3784ca=a221_0x39b800;try{await mkdir(this[_0x3784ca(0x166)],{'recursive':!![]}),this[_0x3784ca(0x152)]&&await this['rotateOldLogs'](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x3784ca(0x15b)]['on']('error',_0x48a9a0=>{const _0x42941a=_0x3784ca;console[_0x42941a(0x162)](_0x42941a(0x16d)+this[_0x42941a(0x173)]+':',_0x48a9a0['message']);});}catch(_0x5788aa){console[_0x3784ca(0x162)](_0x3784ca(0x15f),_0x5788aa);}}[a221_0x39b800(0x172)](_0x380852){const _0x45bd74=a221_0x39b800;if(!this[_0x45bd74(0x15b)])return;const _0x47d771=Logger[_0x45bd74(0x167)](_0x380852);this[_0x45bd74(0x15b)]['write'](_0x47d771+'\x0a');}async[a221_0x39b800(0x154)](){return new Promise(_0x3de906=>{const _0x42c3d9=a221_0x5e02;this['logStream']?this['logStream'][_0x42c3d9(0x14f)](()=>{this['logStream']=null,_0x3de906();}):_0x3de906();});}[a221_0x39b800(0x14e)](){return this['logPath'];}async[a221_0x39b800(0x174)](){const _0x25f6d0=a221_0x39b800;try{const _0x4b4e8e=await readdir(this[_0x25f6d0(0x166)]),_0x16abeb=new Date()['toISOString']()[_0x25f6d0(0x168)]('T')[0x0];if(_0x4b4e8e[_0x25f6d0(0x151)](this[_0x25f6d0(0x173)])){const _0xcac979=join(this['logDir'],this['logFileName']),_0x51a456=await stat(_0xcac979),_0x78cd36=new Date(_0x51a456[_0x25f6d0(0x14d)])[_0x25f6d0(0x16a)]()[_0x25f6d0(0x168)]('T')[0x0];if(_0x78cd36<_0x16abeb){const _0x136e05=join(this[_0x25f6d0(0x166)],this[_0x25f6d0(0x165)]+'-'+_0x78cd36+_0x25f6d0(0x153));await rename(_0xcac979,_0x136e05);}}const _0x1a8bc6=await readdir(this[_0x25f6d0(0x166)]),_0x56cdad=this[_0x25f6d0(0x165)][_0x25f6d0(0x15d)](/[.*+?^${}()|[\]\\]/g,_0x25f6d0(0x15e)),_0x5eb864=new RegExp('^'+_0x56cdad+_0x25f6d0(0x164)),_0x5e77a2=_0x1a8bc6[_0x25f6d0(0x159)](_0x341b68=>_0x5eb864[_0x25f6d0(0x150)](_0x341b68));for(const _0x4ec023 of _0x5e77a2){const _0x539968=join(this[_0x25f6d0(0x166)],_0x4ec023),_0xf1412b=join(this[_0x25f6d0(0x166)],_0x4ec023+_0x25f6d0(0x157));try{await pipeline(createReadStream(_0x539968),createGzip(),createWriteStream(_0xf1412b)),await unlink(_0x539968);}catch(_0x2b23b4){console[_0x25f6d0(0x162)](_0x25f6d0(0x158)+_0x4ec023+':',_0x2b23b4);}}}catch{}}}
1
+ function a221_0x5c6c(){const _0x5a4cf2=['split','tdx.log','rotate','error','181208ciUrWU','672648eZocBy','logPath','toISOString','\x5c$&','format','logs','Warning:\x20Failed\x20to\x20compress\x20','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','9pgeTSJ','logDir','includes','587154PHStJD','write','336YdonHj','filePath','filter','logFileName','handle','test','replace','init','528aKhMTm','20787852gPyABm','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logBaseName','mtime','905324okvCWW','176390JUociJ','157941DYpAFN','end','12DIgzNO','getLogPath','.log','35VsuRWt','rotateOldLogs','logStream'];a221_0x5c6c=function(){return _0x5a4cf2;};return a221_0x5c6c();}const a221_0x5bae27=a221_0x26bc;(function(_0x38c5e1,_0x5b6abc){const _0x5ae8d=a221_0x26bc,_0xea32f2=_0x38c5e1();while(!![]){try{const _0x3ab407=parseInt(_0x5ae8d(0xab))/0x1*(parseInt(_0x5ae8d(0xa2))/0x2)+-parseInt(_0x5ae8d(0xc1))/0x3*(-parseInt(_0x5ae8d(0xa3))/0x4)+-parseInt(_0x5ae8d(0xc4))/0x5*(-parseInt(_0x5ae8d(0xae))/0x6)+parseInt(_0x5ae8d(0xbd))/0x7+-parseInt(_0x5ae8d(0xb0))/0x8*(-parseInt(_0x5ae8d(0xbf))/0x9)+-parseInt(_0x5ae8d(0xbe))/0xa*(parseInt(_0x5ae8d(0xb8))/0xb)+-parseInt(_0x5ae8d(0xb9))/0xc;if(_0x3ab407===_0x5b6abc)break;else _0xea32f2['push'](_0xea32f2['shift']());}catch(_0x591767){_0xea32f2['push'](_0xea32f2['shift']());}}}(a221_0x5c6c,0x706ce));import{createWriteStream,createReadStream}from'fs';function a221_0x26bc(_0x2d24fd,_0x589dae){_0x2d24fd=_0x2d24fd-0xa0;const _0x5c6c24=a221_0x5c6c();let _0x26bc42=_0x5c6c24[_0x2d24fd];return _0x26bc42;}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a221_0x5bae27(0xa4)];[a221_0x5bae27(0xac)];['logFileName'];[a221_0x5bae27(0xbb)];[a221_0x5bae27(0xc6)]=null;[a221_0x5bae27(0xa0)];constructor(_0x23c41b={}){const _0x4ce8b2=a221_0x5bae27;this[_0x4ce8b2(0xa4)]=_0x23c41b[_0x4ce8b2(0xb1)]??join(getGlobalCacheDir(),_0x4ce8b2(0xa8),_0x4ce8b2(0xc8)),this['logDir']=dirname(this[_0x4ce8b2(0xa4)]),this[_0x4ce8b2(0xb3)]=basename(this[_0x4ce8b2(0xa4)]),this[_0x4ce8b2(0xbb)]=this[_0x4ce8b2(0xb3)][_0x4ce8b2(0xb6)](/\.log$/,''),this[_0x4ce8b2(0xa0)]=_0x23c41b[_0x4ce8b2(0xa0)]??!![];}async[a221_0x5bae27(0xb7)](){const _0xac55ca=a221_0x5bae27;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0xac55ca(0xa0)]&&await this[_0xac55ca(0xc5)](),this[_0xac55ca(0xc6)]=createWriteStream(this[_0xac55ca(0xa4)],{'flags':'a'}),this[_0xac55ca(0xc6)]['on'](_0xac55ca(0xa1),_0x5a2867=>{const _0x56a661=_0xac55ca;console['error']('Warning:\x20Error\x20writing\x20to\x20'+this[_0x56a661(0xb3)]+':',_0x5a2867['message']);});}catch(_0x5610ad){console[_0xac55ca(0xa1)](_0xac55ca(0xba),_0x5610ad);}}[a221_0x5bae27(0xb4)](_0x1d6ff2){const _0x1dacf4=a221_0x5bae27;if(!this['logStream'])return;const _0x511b3b=Logger[_0x1dacf4(0xa7)](_0x1d6ff2);this[_0x1dacf4(0xc6)][_0x1dacf4(0xaf)](_0x511b3b+'\x0a');}async['close'](){return new Promise(_0x1b7dd6=>{const _0x2e7075=a221_0x26bc;this[_0x2e7075(0xc6)]?this[_0x2e7075(0xc6)][_0x2e7075(0xc0)](()=>{const _0x16567b=_0x2e7075;this[_0x16567b(0xc6)]=null,_0x1b7dd6();}):_0x1b7dd6();});}[a221_0x5bae27(0xc2)](){const _0x1426a1=a221_0x5bae27;return this[_0x1426a1(0xa4)];}async[a221_0x5bae27(0xc5)](){const _0x5df29d=a221_0x5bae27;try{const _0x192f66=await readdir(this['logDir']),_0x412b13=new Date()[_0x5df29d(0xa5)]()[_0x5df29d(0xc7)]('T')[0x0];if(_0x192f66[_0x5df29d(0xad)](this['logFileName'])){const _0x1ba899=join(this['logDir'],this[_0x5df29d(0xb3)]),_0x2a6691=await stat(_0x1ba899),_0x1948ec=new Date(_0x2a6691[_0x5df29d(0xbc)])[_0x5df29d(0xa5)]()[_0x5df29d(0xc7)]('T')[0x0];if(_0x1948ec<_0x412b13){const _0x50ff22=join(this[_0x5df29d(0xac)],this[_0x5df29d(0xbb)]+'-'+_0x1948ec+_0x5df29d(0xc3));await rename(_0x1ba899,_0x50ff22);}}const _0x4e4604=await readdir(this[_0x5df29d(0xac)]),_0x46e7f5=this[_0x5df29d(0xbb)][_0x5df29d(0xb6)](/[.*+?^${}()|[\]\\]/g,_0x5df29d(0xa6)),_0x46ab00=new RegExp('^'+_0x46e7f5+_0x5df29d(0xaa)),_0x28b8f8=_0x4e4604[_0x5df29d(0xb2)](_0x86f5d=>_0x46ab00[_0x5df29d(0xb5)](_0x86f5d));for(const _0x47a495 of _0x28b8f8){const _0x4b6017=join(this['logDir'],_0x47a495),_0x984ca9=join(this[_0x5df29d(0xac)],_0x47a495+'.gz');try{await pipeline(createReadStream(_0x4b6017),createGzip(),createWriteStream(_0x984ca9)),await unlink(_0x4b6017);}catch(_0x52e74f){console[_0x5df29d(0xa1)](_0x5df29d(0xa9)+_0x47a495+':',_0x52e74f);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x7f9bbc,_0x4bfdae){var _0x3d2225=a222_0x3fe2,_0x1e8ab7=_0x7f9bbc();while(!![]){try{var _0x529db6=parseInt(_0x3d2225(0x1be))/0x1*(parseInt(_0x3d2225(0x1bc))/0x2)+parseInt(_0x3d2225(0x1b6))/0x3*(parseInt(_0x3d2225(0x1b8))/0x4)+parseInt(_0x3d2225(0x1bf))/0x5+parseInt(_0x3d2225(0x1b9))/0x6*(-parseInt(_0x3d2225(0x1bd))/0x7)+-parseInt(_0x3d2225(0x1b7))/0x8+parseInt(_0x3d2225(0x1b4))/0x9*(-parseInt(_0x3d2225(0x1ba))/0xa)+-parseInt(_0x3d2225(0x1b5))/0xb*(-parseInt(_0x3d2225(0x1bb))/0xc);if(_0x529db6===_0x4bfdae)break;else _0x1e8ab7['push'](_0x1e8ab7['shift']());}catch(_0x3daf94){_0x1e8ab7['push'](_0x1e8ab7['shift']());}}}(a222_0xddf9,0xb5496));function a222_0x3fe2(_0x497dee,_0x51b5d3){_0x497dee=_0x497dee-0x1b4;var _0xddf9b1=a222_0xddf9();var _0x3fe203=_0xddf9b1[_0x497dee];return _0x3fe203;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a222_0xddf9(){var _0x2df017=['4773855COjvMJ','8091IAkwmW','4575274lKdOic','492990ddqMIS','9443120PXKOxg','20MajPcV','432186oDdGVQ','6190SIszUV','12WlyXDl','62742STIzQj','91VWjXfn','39oUsHjN'];a222_0xddf9=function(){return _0x2df017;};return a222_0xddf9();}export{NullHandler}from'./null-handler.js';
1
+ (function(_0xcc9ce4,_0x43e18a){var _0x2b444e=a222_0x5a37,_0x3d2d2c=_0xcc9ce4();while(!![]){try{var _0x4027c5=-parseInt(_0x2b444e(0x9e))/0x1+-parseInt(_0x2b444e(0x99))/0x2*(parseInt(_0x2b444e(0xa1))/0x3)+-parseInt(_0x2b444e(0x9b))/0x4+parseInt(_0x2b444e(0x98))/0x5+parseInt(_0x2b444e(0xa0))/0x6+parseInt(_0x2b444e(0x9d))/0x7*(-parseInt(_0x2b444e(0x9c))/0x8)+-parseInt(_0x2b444e(0x9a))/0x9*(-parseInt(_0x2b444e(0x9f))/0xa);if(_0x4027c5===_0x43e18a)break;else _0x3d2d2c['push'](_0x3d2d2c['shift']());}catch(_0x3ae4ab){_0x3d2d2c['push'](_0x3d2d2c['shift']());}}}(a222_0x312b,0xe2982));function a222_0x5a37(_0x5ac1f4,_0x49907f){_0x5ac1f4=_0x5ac1f4-0x98;var _0x312b71=a222_0x312b();var _0x5a3719=_0x312b71[_0x5ac1f4];return _0x5a3719;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a222_0x312b(){var _0x51f51f=['10GxkINu','10443858mFUfTK','57wRVDCx','4784890AnIXOW','83796uThWpW','18960543ikivao','3192992AhbiiE','72APrYjr','401135DURzYZ','1766163QIahXa'];a222_0x312b=function(){return _0x51f51f;};return a222_0x312b();}
@@ -1 +1 @@
1
- function a223_0xe1f9(_0x8ce5e1,_0x203c70){_0x8ce5e1=_0x8ce5e1-0x7b;var _0x461cc4=a223_0x461c();var _0xe1f9ed=_0x461cc4[_0x8ce5e1];return _0xe1f9ed;}var a223_0x1e90a6=a223_0xe1f9;function a223_0x461c(){var _0x18f0f7=['12472HXGIRZ','82888ikZbjq','3926kqqfvp','250asCIYH','624402qWQLHX','379245KiSWzE','237882TBeddy','127773lDlLwS','handle','52CqjMsZ','329vTCnQZ'];a223_0x461c=function(){return _0x18f0f7;};return a223_0x461c();}(function(_0xe6d012,_0x36cd7a){var _0x2f1aec=a223_0xe1f9,_0x2a142e=_0xe6d012();while(!![]){try{var _0x47ff02=parseInt(_0x2f1aec(0x81))/0x1*(parseInt(_0x2f1aec(0x85))/0x2)+-parseInt(_0x2f1aec(0x7c))/0x3+-parseInt(_0x2f1aec(0x84))/0x4+-parseInt(_0x2f1aec(0x7d))/0x5+parseInt(_0x2f1aec(0x7e))/0x6+parseInt(_0x2f1aec(0x82))/0x7*(-parseInt(_0x2f1aec(0x83))/0x8)+parseInt(_0x2f1aec(0x7f))/0x9*(parseInt(_0x2f1aec(0x7b))/0xa);if(_0x47ff02===_0x36cd7a)break;else _0x2a142e['push'](_0x2a142e['shift']());}catch(_0x518f3a){_0x2a142e['push'](_0x2a142e['shift']());}}}(a223_0x461c,0x1cf8e));export class NullHandler{[a223_0x1e90a6(0x80)](_0x371411){}}
1
+ var a223_0x1abe7e=a223_0x482e;(function(_0x1c3cad,_0x2ff4fb){var _0xbd8fa8=a223_0x482e,_0x4307b5=_0x1c3cad();while(!![]){try{var _0x56f0e5=-parseInt(_0xbd8fa8(0x1cf))/0x1+-parseInt(_0xbd8fa8(0x1cc))/0x2+parseInt(_0xbd8fa8(0x1cb))/0x3+parseInt(_0xbd8fa8(0x1d1))/0x4+parseInt(_0xbd8fa8(0x1cd))/0x5+-parseInt(_0xbd8fa8(0x1ca))/0x6+parseInt(_0xbd8fa8(0x1d0))/0x7;if(_0x56f0e5===_0x2ff4fb)break;else _0x4307b5['push'](_0x4307b5['shift']());}catch(_0x339279){_0x4307b5['push'](_0x4307b5['shift']());}}}(a223_0x3749,0xcdb9d));function a223_0x482e(_0x44c7e9,_0x545122){_0x44c7e9=_0x44c7e9-0x1ca;var _0x3749f2=a223_0x3749();var _0x482e9a=_0x3749f2[_0x44c7e9];return _0x482e9a;}function a223_0x3749(){var _0x12375a=['1469688BNZOpS','7112964dEXUSx','4303200enYdEO','1596960Rboymz','4526350bspqBG','handle','659066GHUBXa','5450207KSgKaC'];a223_0x3749=function(){return _0x12375a;};return a223_0x3749();}export class NullHandler{[a223_0x1abe7e(0x1ce)](_0x576fa2){}}
@@ -1 +1 @@
1
- (function(_0x5312a7,_0x41a0fa){var _0x5f1f55=a224_0x2acd,_0x4ad80c=_0x5312a7();while(!![]){try{var _0x14b0ea=-parseInt(_0x5f1f55(0xd0))/0x1*(-parseInt(_0x5f1f55(0xcc))/0x2)+-parseInt(_0x5f1f55(0xce))/0x3*(-parseInt(_0x5f1f55(0xcf))/0x4)+-parseInt(_0x5f1f55(0xcd))/0x5*(-parseInt(_0x5f1f55(0xc9))/0x6)+parseInt(_0x5f1f55(0xc5))/0x7*(parseInt(_0x5f1f55(0xc8))/0x8)+-parseInt(_0x5f1f55(0xcb))/0x9*(-parseInt(_0x5f1f55(0xc6))/0xa)+parseInt(_0x5f1f55(0xc7))/0xb+-parseInt(_0x5f1f55(0xca))/0xc;if(_0x14b0ea===_0x41a0fa)break;else _0x4ad80c['push'](_0x4ad80c['shift']());}catch(_0x31cbd5){_0x4ad80c['push'](_0x4ad80c['shift']());}}}(a224_0x143b,0x45f58));function a224_0x2acd(_0x156c5a,_0x50f462){_0x156c5a=_0x156c5a-0xc5;var _0x143b8a=a224_0x143b();var _0x2acd11=_0x143b8a[_0x156c5a];return _0x2acd11;}export{Logger}from'./logger.js';function a224_0x143b(){var _0x264d22=['17493852EPoVBT','39771WyEiZA','350414oqvvIE','5fcObSR','248499qdZtrr','16DZTDoz','1GbCBDf','280zOBigs','50SFKqNl','3896222EyGCpM','105472FsMgPD','2005062LUeigM'];a224_0x143b=function(){return _0x264d22;};return a224_0x143b();}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0xb77186,_0x577945){var _0x73e68e=a224_0x473d,_0x121a96=_0xb77186();while(!![]){try{var _0x339e12=parseInt(_0x73e68e(0x1db))/0x1+-parseInt(_0x73e68e(0x1d6))/0x2+-parseInt(_0x73e68e(0x1d9))/0x3+-parseInt(_0x73e68e(0x1d8))/0x4*(-parseInt(_0x73e68e(0x1da))/0x5)+parseInt(_0x73e68e(0x1dc))/0x6+-parseInt(_0x73e68e(0x1d5))/0x7*(parseInt(_0x73e68e(0x1d3))/0x8)+parseInt(_0x73e68e(0x1d4))/0x9*(-parseInt(_0x73e68e(0x1d7))/0xa);if(_0x339e12===_0x577945)break;else _0x121a96['push'](_0x121a96['shift']());}catch(_0x40b71c){_0x121a96['push'](_0x121a96['shift']());}}}(a224_0x387d,0xb49f8));function a224_0x387d(){var _0x23976e=['875PWZIEQ','1213539rdiZZV','4070148rfuncY','4957664YKYKQi','3086307icYvoh','7noRdVY','666332PmkTuK','10Amqljg','9220yhaDWM','778929azmjLQ'];a224_0x387d=function(){return _0x23976e;};return a224_0x387d();}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a224_0x473d(_0x351341,_0x1acf94){_0x351341=_0x351341-0x1d3;var _0x387dc4=a224_0x387d();var _0x473d0c=_0x387dc4[_0x351341];return _0x473d0c;}export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- const a225_0x4d339b=a225_0x54e8;(function(_0x33868b,_0xd786ea){const _0xb261a7=a225_0x54e8,_0x365291=_0x33868b();while(!![]){try{const _0x2eeca5=parseInt(_0xb261a7(0x1f2))/0x1+parseInt(_0xb261a7(0x201))/0x2*(-parseInt(_0xb261a7(0x1e2))/0x3)+-parseInt(_0xb261a7(0x1d5))/0x4+parseInt(_0xb261a7(0x1fa))/0x5+parseInt(_0xb261a7(0x1c9))/0x6*(parseInt(_0xb261a7(0x1f0))/0x7)+-parseInt(_0xb261a7(0x1de))/0x8+-parseInt(_0xb261a7(0x1f6))/0x9;if(_0x2eeca5===_0xd786ea)break;else _0x365291['push'](_0x365291['shift']());}catch(_0x17bb9c){_0x365291['push'](_0x365291['shift']());}}}(a225_0x4d65,0x7e035));function a225_0x54e8(_0x24ef62,_0xd5f91c){_0x24ef62=_0x24ef62-0x1c9;const _0x4d658b=a225_0x4d65();let _0x54e83e=_0x4d658b[_0x24ef62];return _0x54e83e;}function a225_0x4d65(){const _0x577b60=['18kvxlmT','get','name','getEffectiveLevel','reset','dispatch','error','set','shouldLog','loggers','length','timestamp','level','initialized','10129sxAtxR','string','589496zeSAes','close','toISOString','log','2618352qunKnG','isInitialized','init','component','4949670kjnVCE','WARN','map','has','setDefaultLevel','formatter','setLogLevel','212394CiEHsI','2802tEuUQi','ERROR','warn','format','INFO','handlers','pendingRecords','clearHandlers','TRACE','message','defaultLevel','split','1034468rJkqGr','addHandler','clear','levelOverrides','stack','info','slice','debug','trace','4418424BNpkMA','shutdown','push',']\x20['];a225_0x4d65=function(){return _0x577b60;};return a225_0x4d65();}import{LogLevel as a225_0x525891,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a225_0x525891[a225_0x4d339b(0x1cd)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x36117d){const _0x120f24=a225_0x4d339b;if(typeof _0x36117d==='string')return _0x36117d;if(_0x36117d instanceof Error)return _0x36117d[_0x120f24(0x1d9)]||_0x36117d[_0x120f24(0x1e4)]+':\x20'+_0x36117d[_0x120f24(0x1d2)];try{return JSON['stringify'](_0x36117d,(_0x1e3ec0,_0x404420)=>{const _0x61fa8f=_0x120f24;if(_0x404420 instanceof Error)return{'name':_0x404420[_0x61fa8f(0x1e4)],'message':_0x404420['message'],'stack':_0x404420[_0x61fa8f(0x1d9)],'cause':_0x404420['cause']};return _0x404420;});}catch{return String(_0x36117d);}}export class Logger{[a225_0x4d339b(0x1f9)];constructor(_0x4798b8){const _0x1b0800=a225_0x4d339b;this[_0x1b0800(0x1f9)]=_0x4798b8;}static['of'](_0x3207be){const _0x1878a1=a225_0x4d339b,_0x1c5e2d=typeof _0x3207be===_0x1878a1(0x1f1)?_0x3207be:_0x3207be[_0x1878a1(0x1e4)];let _0x1c39e2=state[_0x1878a1(0x1eb)][_0x1878a1(0x1e3)](_0x1c5e2d);return!_0x1c39e2&&(_0x1c39e2=new Logger(_0x1c5e2d),state[_0x1878a1(0x1eb)]['set'](_0x1c5e2d,_0x1c39e2)),_0x1c39e2;}static async['init'](_0x55d24a={}){const _0x1d0d88=a225_0x4d339b;state[_0x1d0d88(0x1d3)]=_0x55d24a[_0x1d0d88(0x1d3)]??a225_0x525891['INFO'],state[_0x1d0d88(0x1ce)]=_0x55d24a[_0x1d0d88(0x1ce)]??[],state[_0x1d0d88(0x1ff)]=_0x55d24a['formatter']??null,state['levelOverrides'][_0x1d0d88(0x1d7)]();if(_0x55d24a['levelOverrides'])for(const [_0xbe3e39,_0x5557af]of Object['entries'](_0x55d24a[_0x1d0d88(0x1d8)])){state[_0x1d0d88(0x1d8)][_0x1d0d88(0x1e9)](_0xbe3e39,_0x5557af);}for(const _0x261346 of state['handlers']){_0x261346[_0x1d0d88(0x1f8)]&&await _0x261346[_0x1d0d88(0x1f8)]();}state[_0x1d0d88(0x1ef)]=!![];for(const _0x422fc3 of state[_0x1d0d88(0x1cf)]){Logger['dispatch'](_0x422fc3);}state['pendingRecords']=[];}static[a225_0x4d339b(0x200)](_0x1283ac,_0x5c1421){const _0x449ca3=a225_0x4d339b;state[_0x449ca3(0x1d8)][_0x449ca3(0x1e9)](_0x1283ac,_0x5c1421);}static[a225_0x4d339b(0x1fe)](_0x334462){const _0x511736=a225_0x4d339b;state[_0x511736(0x1d3)]=_0x334462;}static[a225_0x4d339b(0x1d6)](_0x2bbe49){const _0x4a8d1d=a225_0x4d339b;state[_0x4a8d1d(0x1ce)][_0x4a8d1d(0x1e0)](_0x2bbe49),state['initialized']&&_0x2bbe49[_0x4a8d1d(0x1f8)]&&_0x2bbe49[_0x4a8d1d(0x1f8)]();}static[a225_0x4d339b(0x1d0)](){state['handlers']=[];}static async[a225_0x4d339b(0x1df)](){const _0x3c8bf7=a225_0x4d339b;for(const _0x2bdb9e of state['handlers']){_0x2bdb9e[_0x3c8bf7(0x1f3)]&&await _0x2bdb9e['close']();}state[_0x3c8bf7(0x1ce)]=[],state['initialized']=![],state[_0x3c8bf7(0x1eb)]['clear'](),state['pendingRecords']=[];}static[a225_0x4d339b(0x1e6)](){const _0x149ebd=a225_0x4d339b;state[_0x149ebd(0x1ef)]=![],state['defaultLevel']=a225_0x525891[_0x149ebd(0x1cd)],state['levelOverrides'][_0x149ebd(0x1d7)](),state[_0x149ebd(0x1ce)]=[],state[_0x149ebd(0x1ff)]=null,state['loggers'][_0x149ebd(0x1d7)](),state[_0x149ebd(0x1cf)]=[];}static[a225_0x4d339b(0x1f7)](){const _0x45fadb=a225_0x4d339b;return state[_0x45fadb(0x1ef)];}static[a225_0x4d339b(0x1e5)](_0x7c36f5){const _0x3ca132=a225_0x4d339b;if(state[_0x3ca132(0x1d8)][_0x3ca132(0x1fd)](_0x7c36f5))return state[_0x3ca132(0x1d8)]['get'](_0x7c36f5);const _0x365e11=_0x7c36f5[_0x3ca132(0x1d4)]('.');for(let _0x54ea48=_0x365e11[_0x3ca132(0x1ec)]-0x1;_0x54ea48>0x0;_0x54ea48--){const _0x1b0a02=_0x365e11[_0x3ca132(0x1db)](0x0,_0x54ea48)['join']('.');if(state[_0x3ca132(0x1d8)][_0x3ca132(0x1fd)](_0x1b0a02))return state[_0x3ca132(0x1d8)][_0x3ca132(0x1e3)](_0x1b0a02);}return state[_0x3ca132(0x1d3)];}[a225_0x4d339b(0x1ea)](_0x29e858){const _0x231c6e=a225_0x4d339b,_0xa7fbb8=Logger[_0x231c6e(0x1e5)](this[_0x231c6e(0x1f9)]);return _0x29e858>=_0xa7fbb8;}static[a225_0x4d339b(0x1e7)](_0x360fa4){const _0x116f34=a225_0x4d339b;for(const _0x301dc6 of state[_0x116f34(0x1ce)]){_0x301dc6['handle'](_0x360fa4);}}[a225_0x4d339b(0x1f5)](_0x1686d9,_0x36a952){const _0x5c40be=a225_0x4d339b;if(!this[_0x5c40be(0x1ea)](_0x1686d9))return;const _0x225d6b=_0x36a952['map'](_0x4f37bc=>typeof _0x4f37bc==='function'?_0x4f37bc():_0x4f37bc),_0x4abb1b=_0x225d6b[_0x5c40be(0x1fc)](safeStringify)['join']('\x20'),_0x54b986={'timestamp':new Date(),'level':_0x1686d9,'component':this[_0x5c40be(0x1f9)],'message':_0x4abb1b};if(!state['initialized']){state[_0x5c40be(0x1cf)]['length']<MAX_PENDING_RECORDS&&state[_0x5c40be(0x1cf)][_0x5c40be(0x1e0)](_0x54b986);return;}Logger['dispatch'](_0x54b986);}[a225_0x4d339b(0x1dd)](..._0x285f51){const _0x34aa5b=a225_0x4d339b;this[_0x34aa5b(0x1f5)](a225_0x525891[_0x34aa5b(0x1d1)],_0x285f51);}[a225_0x4d339b(0x1dc)](..._0x4b13e3){this['log'](a225_0x525891['DEBUG'],_0x4b13e3);}[a225_0x4d339b(0x1da)](..._0x266fe4){const _0x5078aa=a225_0x4d339b;this['log'](a225_0x525891[_0x5078aa(0x1cd)],_0x266fe4);}[a225_0x4d339b(0x1cb)](..._0x108e70){const _0x4dc803=a225_0x4d339b;this[_0x4dc803(0x1f5)](a225_0x525891[_0x4dc803(0x1fb)],_0x108e70);}[a225_0x4d339b(0x1e8)](..._0x549471){const _0x501308=a225_0x4d339b;this['log'](a225_0x525891[_0x501308(0x1ca)],_0x549471);}static['getFormatter'](){const _0x5d1e0b=a225_0x4d339b;return state[_0x5d1e0b(0x1ff)];}static[a225_0x4d339b(0x1cc)](_0xba3f87){const _0x83f3d4=a225_0x4d339b;if(state['formatter'])return state[_0x83f3d4(0x1ff)][_0x83f3d4(0x1cc)](_0xba3f87);return _0xba3f87[_0x83f3d4(0x1ed)][_0x83f3d4(0x1f4)]()+'\x20['+logLevelToString(_0xba3f87[_0x83f3d4(0x1ee)])+_0x83f3d4(0x1e1)+_0xba3f87[_0x83f3d4(0x1f9)]+']\x20'+_0xba3f87['message'];}}
1
+ const a225_0x22b950=a225_0x2062;(function(_0x419410,_0xf450a2){const _0x51fd94=a225_0x2062,_0x3405e8=_0x419410();while(!![]){try{const _0x372f7a=-parseInt(_0x51fd94(0x7e))/0x1+parseInt(_0x51fd94(0x97))/0x2+parseInt(_0x51fd94(0x9d))/0x3+parseInt(_0x51fd94(0x79))/0x4+-parseInt(_0x51fd94(0x90))/0x5*(parseInt(_0x51fd94(0x78))/0x6)+parseInt(_0x51fd94(0x6e))/0x7*(parseInt(_0x51fd94(0x76))/0x8)+-parseInt(_0x51fd94(0x7d))/0x9;if(_0x372f7a===_0xf450a2)break;else _0x3405e8['push'](_0x3405e8['shift']());}catch(_0x556025){_0x3405e8['push'](_0x3405e8['shift']());}}}(a225_0xa9b4,0xe6052));function a225_0xa9b4(){const _0x22b503=['timestamp','set','77705BtaGdj','slice','trace','setDefaultLevel','format','defaultLevel','message','3750510GIcAQd','shouldLog','WARN','info','log','handlers','4115880GuWzdL','length','cause','clear','1307236arySOs','component','loggers','getEffectiveLevel','pendingRecords','entries','addHandler','INFO','64OTDnvk','close','504JGFebK','2144004SzKILv','level','handle','name','23437242ixQTok','425456AvIYUq','has','push','isInitialized','initialized','reset','dispatch','get','string','formatter','function','levelOverrides','init',']\x20[','clearHandlers','stringify'];a225_0xa9b4=function(){return _0x22b503;};return a225_0xa9b4();}import{LogLevel as a225_0x107f7a,logLevelToString}from'./types.js';function a225_0x2062(_0x288fd8,_0x569872){_0x288fd8=_0x288fd8-0x6b;const _0xa9b40c=a225_0xa9b4();let _0x2062b7=_0xa9b40c[_0x288fd8];return _0x2062b7;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a225_0x107f7a['INFO'],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x432a92){const _0x360563=a225_0x2062;if(typeof _0x432a92==='string')return _0x432a92;if(_0x432a92 instanceof Error)return _0x432a92['stack']||_0x432a92[_0x360563(0x7c)]+':\x20'+_0x432a92[_0x360563(0x96)];try{return JSON[_0x360563(0x8d)](_0x432a92,(_0x227540,_0x4343fa)=>{const _0x772dd0=_0x360563;if(_0x4343fa instanceof Error)return{'name':_0x4343fa[_0x772dd0(0x7c)],'message':_0x4343fa[_0x772dd0(0x96)],'stack':_0x4343fa['stack'],'cause':_0x4343fa[_0x772dd0(0x6c)]};return _0x4343fa;});}catch{return String(_0x432a92);}}export class Logger{[a225_0x22b950(0x6f)];constructor(_0x3206dc){this['component']=_0x3206dc;}static['of'](_0x582aef){const _0x1e6547=a225_0x22b950,_0x4160c0=typeof _0x582aef===_0x1e6547(0x86)?_0x582aef:_0x582aef[_0x1e6547(0x7c)];let _0x13949e=state[_0x1e6547(0x70)][_0x1e6547(0x85)](_0x4160c0);return!_0x13949e&&(_0x13949e=new Logger(_0x4160c0),state[_0x1e6547(0x70)]['set'](_0x4160c0,_0x13949e)),_0x13949e;}static async[a225_0x22b950(0x8a)](_0x3db691={}){const _0x261f2b=a225_0x22b950;state[_0x261f2b(0x95)]=_0x3db691['defaultLevel']??a225_0x107f7a[_0x261f2b(0x75)],state['handlers']=_0x3db691['handlers']??[],state[_0x261f2b(0x87)]=_0x3db691[_0x261f2b(0x87)]??null,state[_0x261f2b(0x89)][_0x261f2b(0x6d)]();if(_0x3db691[_0x261f2b(0x89)])for(const [_0x4f302d,_0x464bda]of Object[_0x261f2b(0x73)](_0x3db691['levelOverrides'])){state[_0x261f2b(0x89)][_0x261f2b(0x8f)](_0x4f302d,_0x464bda);}for(const _0xe3a441 of state['handlers']){_0xe3a441['init']&&await _0xe3a441['init']();}state[_0x261f2b(0x82)]=!![];for(const _0x28f797 of state['pendingRecords']){Logger['dispatch'](_0x28f797);}state[_0x261f2b(0x72)]=[];}static['setLogLevel'](_0x31d30d,_0x3160b1){const _0x4d5a24=a225_0x22b950;state['levelOverrides'][_0x4d5a24(0x8f)](_0x31d30d,_0x3160b1);}static[a225_0x22b950(0x93)](_0x2dfa4e){const _0x52fc9a=a225_0x22b950;state[_0x52fc9a(0x95)]=_0x2dfa4e;}static[a225_0x22b950(0x74)](_0x13d99e){const _0x3aaadc=a225_0x22b950;state['handlers'][_0x3aaadc(0x80)](_0x13d99e),state[_0x3aaadc(0x82)]&&_0x13d99e['init']&&_0x13d99e[_0x3aaadc(0x8a)]();}static[a225_0x22b950(0x8c)](){state['handlers']=[];}static async['shutdown'](){const _0x386a45=a225_0x22b950;for(const _0x61186a of state[_0x386a45(0x9c)]){_0x61186a[_0x386a45(0x77)]&&await _0x61186a[_0x386a45(0x77)]();}state[_0x386a45(0x9c)]=[],state[_0x386a45(0x82)]=![],state[_0x386a45(0x70)][_0x386a45(0x6d)](),state['pendingRecords']=[];}static[a225_0x22b950(0x83)](){const _0x24b112=a225_0x22b950;state['initialized']=![],state[_0x24b112(0x95)]=a225_0x107f7a[_0x24b112(0x75)],state[_0x24b112(0x89)]['clear'](),state[_0x24b112(0x9c)]=[],state[_0x24b112(0x87)]=null,state[_0x24b112(0x70)][_0x24b112(0x6d)](),state[_0x24b112(0x72)]=[];}static[a225_0x22b950(0x81)](){const _0xb2a4a7=a225_0x22b950;return state[_0xb2a4a7(0x82)];}static[a225_0x22b950(0x71)](_0xd9c493){const _0x333b27=a225_0x22b950;if(state[_0x333b27(0x89)][_0x333b27(0x7f)](_0xd9c493))return state[_0x333b27(0x89)][_0x333b27(0x85)](_0xd9c493);const _0x386d8a=_0xd9c493['split']('.');for(let _0x1fe369=_0x386d8a[_0x333b27(0x6b)]-0x1;_0x1fe369>0x0;_0x1fe369--){const _0x312d58=_0x386d8a[_0x333b27(0x91)](0x0,_0x1fe369)['join']('.');if(state['levelOverrides'][_0x333b27(0x7f)](_0x312d58))return state[_0x333b27(0x89)][_0x333b27(0x85)](_0x312d58);}return state[_0x333b27(0x95)];}['shouldLog'](_0x946cbb){const _0x84949a=a225_0x22b950,_0x2318e4=Logger[_0x84949a(0x71)](this['component']);return _0x946cbb>=_0x2318e4;}static[a225_0x22b950(0x84)](_0xf0749a){const _0x42a674=a225_0x22b950;for(const _0x20a4e4 of state['handlers']){_0x20a4e4[_0x42a674(0x7b)](_0xf0749a);}}[a225_0x22b950(0x9b)](_0x7aada2,_0xa2a36f){const _0x44533b=a225_0x22b950;if(!this[_0x44533b(0x98)](_0x7aada2))return;const _0x3d1ec4=_0xa2a36f['map'](_0x52eeec=>typeof _0x52eeec===_0x44533b(0x88)?_0x52eeec():_0x52eeec),_0x272418=_0x3d1ec4['map'](safeStringify)['join']('\x20'),_0x2140d0={'timestamp':new Date(),'level':_0x7aada2,'component':this[_0x44533b(0x6f)],'message':_0x272418};if(!state[_0x44533b(0x82)]){state['pendingRecords'][_0x44533b(0x6b)]<MAX_PENDING_RECORDS&&state[_0x44533b(0x72)][_0x44533b(0x80)](_0x2140d0);return;}Logger[_0x44533b(0x84)](_0x2140d0);}[a225_0x22b950(0x92)](..._0x90bb09){const _0x4da04e=a225_0x22b950;this[_0x4da04e(0x9b)](a225_0x107f7a['TRACE'],_0x90bb09);}['debug'](..._0x3c40b8){const _0x1be801=a225_0x22b950;this[_0x1be801(0x9b)](a225_0x107f7a['DEBUG'],_0x3c40b8);}[a225_0x22b950(0x9a)](..._0x8ff341){const _0x5445e0=a225_0x22b950;this[_0x5445e0(0x9b)](a225_0x107f7a['INFO'],_0x8ff341);}['warn'](..._0x56407c){const _0x234ba7=a225_0x22b950;this[_0x234ba7(0x9b)](a225_0x107f7a[_0x234ba7(0x99)],_0x56407c);}['error'](..._0x487c09){this['log'](a225_0x107f7a['ERROR'],_0x487c09);}static['getFormatter'](){const _0x382842=a225_0x22b950;return state[_0x382842(0x87)];}static[a225_0x22b950(0x94)](_0x48e520){const _0x12c02e=a225_0x22b950;if(state[_0x12c02e(0x87)])return state[_0x12c02e(0x87)][_0x12c02e(0x94)](_0x48e520);return _0x48e520[_0x12c02e(0x8e)]['toISOString']()+'\x20['+logLevelToString(_0x48e520[_0x12c02e(0x7a)])+_0x12c02e(0x8b)+_0x48e520['component']+']\x20'+_0x48e520[_0x12c02e(0x96)];}}
@@ -1 +1 @@
1
- (function(_0x5c41c6,_0x36131f){const _0x1db59e=a226_0x9569,_0x33636e=_0x5c41c6();while(!![]){try{const _0x4adc8d=-parseInt(_0x1db59e(0xda))/0x1*(-parseInt(_0x1db59e(0xcb))/0x2)+parseInt(_0x1db59e(0xdb))/0x3*(parseInt(_0x1db59e(0xdd))/0x4)+-parseInt(_0x1db59e(0xd9))/0x5*(parseInt(_0x1db59e(0xc1))/0x6)+parseInt(_0x1db59e(0xd8))/0x7+-parseInt(_0x1db59e(0xd6))/0x8*(-parseInt(_0x1db59e(0xe1))/0x9)+-parseInt(_0x1db59e(0xd4))/0xa*(parseInt(_0x1db59e(0xcc))/0xb)+-parseInt(_0x1db59e(0xcd))/0xc*(parseInt(_0x1db59e(0xe2))/0xd);if(_0x4adc8d===_0x36131f)break;else _0x33636e['push'](_0x33636e['shift']());}catch(_0x3b7e85){_0x33636e['push'](_0x33636e['shift']());}}}(a226_0x5381,0x8fefd));export var LogLevel;function a226_0x9569(_0x18803d,_0x31c45e){_0x18803d=_0x18803d-0xc0;const _0x53818c=a226_0x5381();let _0x956948=_0x53818c[_0x18803d];return _0x956948;}(function(_0x2029e4){const _0x17e5f7=a226_0x9569;_0x2029e4[_0x2029e4[_0x17e5f7(0xc8)]=-0x2]=_0x17e5f7(0xc8),_0x2029e4[_0x2029e4[_0x17e5f7(0xdf)]=-0x1]='DEBUG',_0x2029e4[_0x2029e4[_0x17e5f7(0xcf)]=0x0]=_0x17e5f7(0xcf),_0x2029e4[_0x2029e4[_0x17e5f7(0xca)]=0x1]=_0x17e5f7(0xca),_0x2029e4[_0x2029e4[_0x17e5f7(0xc5)]=0x2]=_0x17e5f7(0xc5);}(LogLevel||(LogLevel={})));function a226_0x5381(){const _0x28d934=['getDate','error','TRACE','getTimezoneOffset','WARN','4306ZzwxTS','88AibAWy','1190232lpcqkX','abs','INFO','getHours','WARNING','trace','getMinutes','90010OEbcud','getFullYear','2526512PfVmFq','toUpperCase','5357800tXoOvD','200930AnwjWw','239GfvZHX','90wZIZaT','toString','69476MCwrQI','floor','DEBUG','info','9tyxwGv','117MkhCmz','padStart','84OqEIkz','warn','getMonth','getMilliseconds','ERROR'];a226_0x5381=function(){return _0x28d934;};return a226_0x5381();}export function parseLogLevel(_0x464f4a){const _0x5cb026=a226_0x9569;switch(_0x464f4a[_0x5cb026(0xd7)]()){case'TRACE':return LogLevel[_0x5cb026(0xc8)];case'DEBUG':return LogLevel['DEBUG'];case _0x5cb026(0xcf):return LogLevel[_0x5cb026(0xcf)];case _0x5cb026(0xca):case _0x5cb026(0xd1):return LogLevel[_0x5cb026(0xca)];case _0x5cb026(0xc5):return LogLevel[_0x5cb026(0xc5)];default:return LogLevel[_0x5cb026(0xcf)];}}export function logLevelToString(_0x1b7ef0){const _0x7b04b4=a226_0x9569;switch(_0x1b7ef0){case LogLevel[_0x7b04b4(0xc8)]:return _0x7b04b4(0xd2);case LogLevel[_0x7b04b4(0xdf)]:return'debug';case LogLevel[_0x7b04b4(0xcf)]:return _0x7b04b4(0xe0);case LogLevel[_0x7b04b4(0xca)]:return _0x7b04b4(0xc2);case LogLevel[_0x7b04b4(0xc5)]:return _0x7b04b4(0xc7);default:return _0x7b04b4(0xe0);}}export function formatTimestamp(_0x317ed2){const _0x643982=a226_0x9569,_0x59fa19=_0x317ed2[_0x643982(0xd5)](),_0x249341=(_0x317ed2[_0x643982(0xc3)]()+0x1)['toString']()[_0x643982(0xc0)](0x2,'0'),_0x276554=_0x317ed2[_0x643982(0xc6)]()[_0x643982(0xdc)]()[_0x643982(0xc0)](0x2,'0'),_0x8e4b38=_0x317ed2[_0x643982(0xd0)]()[_0x643982(0xdc)]()['padStart'](0x2,'0'),_0x221ed8=_0x317ed2[_0x643982(0xd3)]()['toString']()[_0x643982(0xc0)](0x2,'0'),_0x483234=_0x317ed2['getSeconds']()[_0x643982(0xdc)]()['padStart'](0x2,'0'),_0x4797be=_0x317ed2[_0x643982(0xc4)]()[_0x643982(0xdc)]()[_0x643982(0xc0)](0x3,'0'),_0x1f7e8b=-_0x317ed2[_0x643982(0xc9)](),_0x182856=Math[_0x643982(0xde)](Math[_0x643982(0xce)](_0x1f7e8b)/0x3c),_0x36fe88=Math[_0x643982(0xce)](_0x1f7e8b)%0x3c,_0x38a732=_0x1f7e8b>=0x0?'+':'-',_0x5bebb1=''+_0x38a732+_0x182856[_0x643982(0xdc)]()[_0x643982(0xc0)](0x2,'0')+_0x36fe88[_0x643982(0xdc)]()[_0x643982(0xc0)](0x2,'0');return _0x59fa19+'-'+_0x249341+'-'+_0x276554+'\x20'+_0x8e4b38+':'+_0x221ed8+':'+_0x483234+'.'+_0x4797be+_0x5bebb1;}
1
+ (function(_0x3ffab3,_0x3d181b){const _0x4ccca6=a226_0x19dd,_0x241fa8=_0x3ffab3();while(!![]){try{const _0x2c5216=-parseInt(_0x4ccca6(0x1a7))/0x1+-parseInt(_0x4ccca6(0x19e))/0x2+-parseInt(_0x4ccca6(0x1a2))/0x3*(-parseInt(_0x4ccca6(0x19c))/0x4)+parseInt(_0x4ccca6(0x19a))/0x5*(parseInt(_0x4ccca6(0x1a1))/0x6)+-parseInt(_0x4ccca6(0x1a9))/0x7+parseInt(_0x4ccca6(0x1a0))/0x8*(parseInt(_0x4ccca6(0x1a5))/0x9)+parseInt(_0x4ccca6(0x1ab))/0xa;if(_0x2c5216===_0x3d181b)break;else _0x241fa8['push'](_0x241fa8['shift']());}catch(_0x29e4d9){_0x241fa8['push'](_0x241fa8['shift']());}}}(a226_0x232f,0xb84f4));function a226_0x232f(){const _0x50d704=['toUpperCase','486956CICaqq','getSeconds','29128EUwkLD','120UYxPyc','612sZSCXc','debug','abs','3123dkyURo','getFullYear','1349757ZNpTLO','getMonth','2115988CImbCu','INFO','9333000RFuVfD','getTimezoneOffset','toString','TRACE','info','DEBUG','warn','padStart','WARNING','ERROR','floor','WARN','88645RxrJUh','getHours','1944UsxhAp'];a226_0x232f=function(){return _0x50d704;};return a226_0x232f();}function a226_0x19dd(_0x46bf8b,_0x5291a6){_0x46bf8b=_0x46bf8b-0x19a;const _0x232fbd=a226_0x232f();let _0x19dd7c=_0x232fbd[_0x46bf8b];return _0x19dd7c;}export var LogLevel;(function(_0x1b7ac3){const _0x509183=a226_0x19dd;_0x1b7ac3[_0x1b7ac3['TRACE']=-0x2]=_0x509183(0x1ae),_0x1b7ac3[_0x1b7ac3[_0x509183(0x1b0)]=-0x1]=_0x509183(0x1b0),_0x1b7ac3[_0x1b7ac3['INFO']=0x0]=_0x509183(0x1aa),_0x1b7ac3[_0x1b7ac3[_0x509183(0x1b6)]=0x1]='WARN',_0x1b7ac3[_0x1b7ac3[_0x509183(0x1b4)]=0x2]=_0x509183(0x1b4);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x103602){const _0xbcfb37=a226_0x19dd;switch(_0x103602[_0xbcfb37(0x19d)]()){case _0xbcfb37(0x1ae):return LogLevel[_0xbcfb37(0x1ae)];case'DEBUG':return LogLevel[_0xbcfb37(0x1b0)];case _0xbcfb37(0x1aa):return LogLevel[_0xbcfb37(0x1aa)];case'WARN':case _0xbcfb37(0x1b3):return LogLevel['WARN'];case _0xbcfb37(0x1b4):return LogLevel['ERROR'];default:return LogLevel[_0xbcfb37(0x1aa)];}}export function logLevelToString(_0x2e82ec){const _0x5dbf14=a226_0x19dd;switch(_0x2e82ec){case LogLevel[_0x5dbf14(0x1ae)]:return'trace';case LogLevel[_0x5dbf14(0x1b0)]:return _0x5dbf14(0x1a3);case LogLevel[_0x5dbf14(0x1aa)]:return'info';case LogLevel[_0x5dbf14(0x1b6)]:return _0x5dbf14(0x1b1);case LogLevel[_0x5dbf14(0x1b4)]:return'error';default:return _0x5dbf14(0x1af);}}export function formatTimestamp(_0x1f8e18){const _0x3f2cb2=a226_0x19dd,_0x2438f4=_0x1f8e18[_0x3f2cb2(0x1a6)](),_0x525a42=(_0x1f8e18[_0x3f2cb2(0x1a8)]()+0x1)[_0x3f2cb2(0x1ad)]()[_0x3f2cb2(0x1b2)](0x2,'0'),_0x58158f=_0x1f8e18['getDate']()['toString']()[_0x3f2cb2(0x1b2)](0x2,'0'),_0x874ed5=_0x1f8e18[_0x3f2cb2(0x19b)]()[_0x3f2cb2(0x1ad)]()[_0x3f2cb2(0x1b2)](0x2,'0'),_0x5d45cd=_0x1f8e18['getMinutes']()[_0x3f2cb2(0x1ad)]()[_0x3f2cb2(0x1b2)](0x2,'0'),_0x50e7a4=_0x1f8e18[_0x3f2cb2(0x19f)]()[_0x3f2cb2(0x1ad)]()[_0x3f2cb2(0x1b2)](0x2,'0'),_0x2e94cf=_0x1f8e18['getMilliseconds']()['toString']()[_0x3f2cb2(0x1b2)](0x3,'0'),_0x5c0d70=-_0x1f8e18[_0x3f2cb2(0x1ac)](),_0x10a3b6=Math[_0x3f2cb2(0x1b5)](Math[_0x3f2cb2(0x1a4)](_0x5c0d70)/0x3c),_0x574176=Math['abs'](_0x5c0d70)%0x3c,_0x1a3593=_0x5c0d70>=0x0?'+':'-',_0x36c2f2=''+_0x1a3593+_0x10a3b6['toString']()['padStart'](0x2,'0')+_0x574176[_0x3f2cb2(0x1ad)]()[_0x3f2cb2(0x1b2)](0x2,'0');return _0x2438f4+'-'+_0x525a42+'-'+_0x58158f+'\x20'+_0x874ed5+':'+_0x5d45cd+':'+_0x50e7a4+'.'+_0x2e94cf+_0x36c2f2;}
@@ -1 +1 @@
1
- function a227_0x374f(_0x42cfb2,_0x134bc6){_0x42cfb2=_0x42cfb2-0x81;const _0x2774ce=a227_0x2774();let _0x374f16=_0x2774ce[_0x42cfb2];return _0x374f16;}function a227_0x2774(){const _0x397964=['.\x20Must\x20be\x20a\x20positive\x20number.','11AqUmSy','2279601DRpSJW','166910lTbaqp','5211855BWVTzx','312YwlNsz','Invalid\x20limit\x20value:\x20','21132eBxPQn','isInteger','130851TQhfdd','.\x20Must\x20be\x20a\x20positive\x20integer.','number','42hvZogn','.\x20Must\x20be\x20an\x20integer.','396CmSYhh','29145240EiUcLh','.\x20Must\x20be\x20a\x20number.','168872RprUUc','32MQejWj'];a227_0x2774=function(){return _0x397964;};return a227_0x2774();}(function(_0x44f985,_0x530a90){const _0x50e416=a227_0x374f,_0x3d02e0=_0x44f985();while(!![]){try{const _0x16d67b=-parseInt(_0x50e416(0x8a))/0x1*(parseInt(_0x50e416(0x87))/0x2)+parseInt(_0x50e416(0x90))/0x3*(parseInt(_0x50e416(0x8e))/0x4)+-parseInt(_0x50e416(0x8d))/0x5+parseInt(_0x50e416(0x82))/0x6*(parseInt(_0x50e416(0x92))/0x7)+parseInt(_0x50e416(0x88))/0x8*(-parseInt(_0x50e416(0x8b))/0x9)+parseInt(_0x50e416(0x8c))/0xa*(parseInt(_0x50e416(0x84))/0xb)+parseInt(_0x50e416(0x85))/0xc;if(_0x16d67b===_0x530a90)break;else _0x3d02e0['push'](_0x3d02e0['shift']());}catch(_0x1d8ca5){_0x3d02e0['push'](_0x3d02e0['shift']());}}}(a227_0x2774,0xb1266));export function validateLimitOption(_0x15e902){const _0xd6b70f=a227_0x374f;if(!Number[_0xd6b70f(0x91)](_0x15e902))return{'isValid':![],'error':_0xd6b70f(0x8f)+_0x15e902+_0xd6b70f(0x83)};if(_0x15e902<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x15e902+_0xd6b70f(0x93)};return{'isValid':!![],'value':_0x15e902};}export function validateTimeoutOption(_0x520d42,_0x2f049d=0x1e){const _0x384d00=a227_0x374f;if(_0x520d42===undefined)return{'isValid':!![],'value':_0x2f049d};const _0x1a9463=typeof _0x520d42===_0x384d00(0x81)?_0x520d42:parseFloat(_0x520d42);if(isNaN(_0x1a9463))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x520d42+_0x384d00(0x86)};if(_0x1a9463<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x1a9463+_0x384d00(0x89)};return{'isValid':!![],'value':_0x1a9463};}
1
+ (function(_0x2cfad1,_0x113c64){const _0x1022a7=a227_0x318e,_0x1e721c=_0x2cfad1();while(!![]){try{const _0x198cf3=-parseInt(_0x1022a7(0x148))/0x1+-parseInt(_0x1022a7(0x14c))/0x2*(-parseInt(_0x1022a7(0x140))/0x3)+parseInt(_0x1022a7(0x13f))/0x4+parseInt(_0x1022a7(0x144))/0x5+parseInt(_0x1022a7(0x14d))/0x6+parseInt(_0x1022a7(0x143))/0x7*(-parseInt(_0x1022a7(0x14b))/0x8)+parseInt(_0x1022a7(0x149))/0x9;if(_0x198cf3===_0x113c64)break;else _0x1e721c['push'](_0x1e721c['shift']());}catch(_0x561140){_0x1e721c['push'](_0x1e721c['shift']());}}}(a227_0x3874,0xbb594));function a227_0x3874(){const _0x3e3983=['.\x20Must\x20be\x20a\x20positive\x20integer.','1690364QAAjcQ','130845RojBWD','number','isInteger','1701LkVQgv','4264395jGUzIL','.\x20Must\x20be\x20a\x20number.','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','212133gWwynN','463257etdLYF','Invalid\x20timeout\x20value:\x20','28776BUPuqT','14GEJvxo','1328016kFwPsg','.\x20Must\x20be\x20a\x20positive\x20number.'];a227_0x3874=function(){return _0x3e3983;};return a227_0x3874();}function a227_0x318e(_0x59796f,_0x586750){_0x59796f=_0x59796f-0x13f;const _0x38747b=a227_0x3874();let _0x318e72=_0x38747b[_0x59796f];return _0x318e72;}export function validateLimitOption(_0x56e0e1){const _0x318651=a227_0x318e;if(!Number[_0x318651(0x142)](_0x56e0e1))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x56e0e1+_0x318651(0x147)};if(_0x56e0e1<=0x0)return{'isValid':![],'error':_0x318651(0x146)+_0x56e0e1+_0x318651(0x14f)};return{'isValid':!![],'value':_0x56e0e1};}export function validateTimeoutOption(_0x48de9c,_0x2491f3=0x1e){const _0xb64f54=a227_0x318e;if(_0x48de9c===undefined)return{'isValid':!![],'value':_0x2491f3};const _0x40895f=typeof _0x48de9c===_0xb64f54(0x141)?_0x48de9c:parseFloat(_0x48de9c);if(isNaN(_0x40895f))return{'isValid':![],'error':_0xb64f54(0x14a)+_0x48de9c+_0xb64f54(0x145)};if(_0x40895f<=0x0)return{'isValid':![],'error':_0xb64f54(0x14a)+_0x40895f+_0xb64f54(0x14e)};return{'isValid':!![],'value':_0x40895f};}
@@ -1 +1 @@
1
- const a228_0x1b95f6=a228_0x14b6;function a228_0x5873(){const _0x1863af=['join','1927648EzlyYQ','284486sTHiBt','unref','which','cmd.exe','cursor','platform','ignore','ppid','3001684mbYjjd','2136048OkDORc','pop','win32','powershell','start','pipe','elvish','ion','open','treasure\x20studio','kill','map','split','bash','7362tOkqBh','pwsh','xonsh','10kHcoqU','exit','1352928hSfGCD','Invalid\x20URL:\x20','comm','darwin','\x20-o\x20ppid=,comm=','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','code','trim','fish','89493adpKpj','xdg-open','has','isInteger','electron','zsh','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','dash','6830MCgZxM','replace','3SoBGZj','utf-8','claude','https:','test','csh','where.exe','toLowerCase','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','pid','protocol'];a228_0x5873=function(){return _0x1863af;};return a228_0x5873();}(function(_0x4ff82e,_0x30796a){const _0x13484e=a228_0x14b6,_0x354c77=_0x4ff82e();while(!![]){try{const _0x204cea=-parseInt(_0x13484e(0x20d))/0x1+parseInt(_0x13484e(0x224))/0x2*(-parseInt(_0x13484e(0x217))/0x3)+parseInt(_0x13484e(0x223))/0x4+parseInt(_0x13484e(0x202))/0x5*(parseInt(_0x13484e(0x204))/0x6)+parseInt(_0x13484e(0x22c))/0x7+-parseInt(_0x13484e(0x1f1))/0x8+parseInt(_0x13484e(0x1ff))/0x9*(-parseInt(_0x13484e(0x215))/0xa);if(_0x204cea===_0x30796a)break;else _0x354c77['push'](_0x354c77['shift']());}catch(_0x119e0d){_0x354c77['push'](_0x354c77['shift']());}}}(a228_0x5873,0x4a488));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a228_0x1b95f6(0x1fe),a228_0x1b95f6(0x212),'sh',a228_0x1b95f6(0x20c),'ksh','tcsh',a228_0x1b95f6(0x21c),a228_0x1b95f6(0x214),a228_0x1b95f6(0x200),a228_0x1b95f6(0x1f4),'nu',a228_0x1b95f6(0x1f8),a228_0x1b95f6(0x1f7),a228_0x1b95f6(0x201)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a228_0x1b95f6(0x219),a228_0x1b95f6(0x20a),a228_0x1b95f6(0x228),a228_0x1b95f6(0x211),a228_0x1b95f6(0x1fa)]);function getProcessInfoWindows(_0x35b25a){const _0x3354d8=a228_0x1b95f6;try{if(!Number[_0x3354d8(0x210)](_0x35b25a)||_0x35b25a<=0x0)return null;const _0x5e6571=_0x3354d8(0x21f)+_0x35b25a+_0x3354d8(0x213),_0xf4ee21=execSync(_0x3354d8(0x209)+_0x5e6571+'\x22',{'encoding':_0x3354d8(0x218),'windowsHide':!![],'stdio':[_0x3354d8(0x1f6),_0x3354d8(0x1f6),_0x3354d8(0x1f6)]})[_0x3354d8(0x20b)]();if(!_0xf4ee21)return null;const [_0xcff53,..._0x6cb398]=_0xf4ee21[_0x3354d8(0x1fd)](','),_0x343edc=parseInt(_0xcff53,0xa),_0x450729=_0x6cb398[_0x3354d8(0x222)](',')[_0x3354d8(0x20b)]();if(isNaN(_0x343edc)||!_0x450729)return null;return{'pid':_0x35b25a,'ppid':_0x343edc,'comm':_0x450729[_0x3354d8(0x216)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x574d5a){const _0x2197be=a228_0x1b95f6;try{const _0x15688d=0x400000;if(!Number['isInteger'](_0x574d5a)||_0x574d5a<=0x0||_0x574d5a>_0x15688d)return null;const _0x2609cf=execSync('ps\x20-p\x20'+_0x574d5a+_0x2197be(0x208),{'encoding':_0x2197be(0x218),'stdio':_0x2197be(0x1f6)})['trim'](),[_0x288776,..._0x4d20fe]=_0x2609cf[_0x2197be(0x1fd)](/\s+/),_0x357e0f=parseInt(_0x288776,0xa),_0x3e84b8=_0x4d20fe[_0x2197be(0x222)]('\x20');if(isNaN(_0x357e0f))return null;return{'pid':_0x574d5a,'ppid':_0x357e0f,'comm':_0x3e84b8};}catch{return null;}}function getProcessInfo(_0xaf5660){const _0x358ba4=a228_0x1b95f6;if(process[_0x358ba4(0x229)]===_0x358ba4(0x1f3))return getProcessInfoWindows(_0xaf5660);return getProcessInfoPosix(_0xaf5660);}function getBasename(_0x698e99){const _0x5d207d=a228_0x1b95f6;return _0x698e99[_0x5d207d(0x216)](/^-/,'')[_0x5d207d(0x1fd)]('/')[_0x5d207d(0x1f2)]()?.[_0x5d207d(0x21e)]()||'';}function isShell(_0x4d8547){const _0x203776=a228_0x1b95f6;return SHELL_NAMES[_0x203776(0x20f)](getBasename(_0x4d8547));}function isEphemeralShellSpawner(_0xe0457f){const _0x3f9ef1=a228_0x1b95f6;return EPHEMERAL_SHELL_SPAWNERS[_0x3f9ef1(0x20f)](getBasename(_0xe0457f));}let cachedShellPID;function findShellPID(){const _0x1400d7=a228_0x1b95f6;if(process[_0x1400d7(0x22b)]===undefined)return process[_0x1400d7(0x220)];let _0xa39175=process[_0x1400d7(0x22b)];const _0x325ac0=0xa;let _0x170cea=0x0;while(_0x170cea<_0x325ac0){const _0x49a715=getProcessInfo(_0xa39175);if(!_0x49a715)break;if(isShell(_0x49a715[_0x1400d7(0x206)])){const _0x132861=getProcessInfo(_0x49a715['ppid']);if(_0x132861&&isEphemeralShellSpawner(_0x132861[_0x1400d7(0x206)])){_0xa39175=_0x49a715[_0x1400d7(0x22b)],_0x170cea++;continue;}return _0x49a715[_0x1400d7(0x220)];}if(_0x49a715['ppid']===0x0||_0x49a715[_0x1400d7(0x22b)]===0x1){if(isShell(_0x49a715[_0x1400d7(0x206)]))return _0x49a715['pid'];break;}_0xa39175=_0x49a715['ppid'],_0x170cea++;}return process[_0x1400d7(0x22b)]!==undefined?process[_0x1400d7(0x22b)]:process['pid'];}function a228_0x14b6(_0x3ed781,_0x3b868a){_0x3ed781=_0x3ed781-0x1f1;const _0x587341=a228_0x5873();let _0x14b662=_0x587341[_0x3ed781];return _0x14b662;}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x15001d){const _0x481a32=a228_0x1b95f6;if(!Number[_0x481a32(0x210)](_0x15001d)||_0x15001d<=0x0)return![];try{return process[_0x481a32(0x1fb)](_0x15001d,0x0),!![];}catch{return![];}}export function openBrowser(_0x22e395){const _0x38c61f=a228_0x1b95f6;let _0x2efeb1;try{_0x2efeb1=new URL(_0x22e395);}catch{throw new Error(_0x38c61f(0x205)+_0x22e395);}if(_0x2efeb1['protocol']!=='http:'&&_0x2efeb1[_0x38c61f(0x221)]!==_0x38c61f(0x21a))throw new Error('Unsupported\x20protocol:\x20'+_0x2efeb1[_0x38c61f(0x221)]);const _0x5a2061=_0x2efeb1['href'],_0x2b4837=process[_0x38c61f(0x229)];if(_0x2b4837==='win32')spawn(_0x38c61f(0x227),['/c',_0x38c61f(0x1f5),'',_0x5a2061],{'detached':!![],'stdio':_0x38c61f(0x22a)})[_0x38c61f(0x225)]();else{const _0x518a75=_0x2b4837===_0x38c61f(0x207)?_0x38c61f(0x1f9):_0x38c61f(0x20e);spawn(_0x518a75,[_0x5a2061],{'detached':!![],'stdio':_0x38c61f(0x22a)})[_0x38c61f(0x225)]();}}export function isWindows(){const _0xdbe7de=a228_0x1b95f6;return process[_0xdbe7de(0x229)]===_0xdbe7de(0x1f3);}export function getCrossSpawnOptions(_0x210e4a){return{..._0x210e4a??{},'shell':isWindows()};}export function escapeWindowsArg(_0x2f9717){const _0x27b368=a228_0x1b95f6;if(!/[ \t"&|<>^%!`\r\n]/[_0x27b368(0x21b)](_0x2f9717))return _0x2f9717;const _0x201fdd=_0x2f9717[_0x27b368(0x216)](/"/g,'\x22\x22');return'\x22'+_0x201fdd+'\x22';}export function crossSpawn(_0x170469,_0x265758,_0x45d578){const _0x4fc0f5=a228_0x1b95f6;if(isWindows()){const _0x33257a=escapeWindowsArg(_0x170469),_0x407201=_0x265758[_0x4fc0f5(0x1fc)](escapeWindowsArg),_0x576334=[_0x33257a,..._0x407201][_0x4fc0f5(0x222)]('\x20');return spawn(_0x576334,[],{..._0x45d578,'shell':!![]});}return spawn(_0x170469,_0x265758,{..._0x45d578,'shell':![]});}export function gracefulExit(_0xe64bb5=0x0){const _0x1582cd=a228_0x1b95f6;isWindows()?setTimeout(()=>process[_0x1582cd(0x203)](_0xe64bb5),0x32):process['exit'](_0xe64bb5);}export function findExecutable(_0x28ffea,_0x90e6a6=0x1388){return new Promise(_0x45948f=>{const _0x3d3f7c=a228_0x14b6,_0x416c31=isWindows()?_0x3d3f7c(0x21d):_0x3d3f7c(0x226);execFile(_0x416c31,[_0x28ffea],{'timeout':_0x90e6a6,'windowsHide':!![]},(_0x2cd04a,_0x357f10)=>{const _0x46e114=_0x3d3f7c;if(_0x2cd04a||!_0x357f10[_0x46e114(0x20b)]())_0x45948f(null);else{const _0x5bf4f8=_0x357f10[_0x46e114(0x20b)]()[_0x46e114(0x1fd)](/\r?\n/)[0x0];_0x45948f(_0x5bf4f8);}});});}
1
+ const a228_0x2577eb=a228_0x454e;(function(_0x112e21,_0x39c753){const _0x30cc08=a228_0x454e,_0x220953=_0x112e21();while(!![]){try{const _0x32be09=parseInt(_0x30cc08(0x146))/0x1+parseInt(_0x30cc08(0x162))/0x2+-parseInt(_0x30cc08(0x16c))/0x3+parseInt(_0x30cc08(0x14d))/0x4+parseInt(_0x30cc08(0x165))/0x5*(parseInt(_0x30cc08(0x171))/0x6)+-parseInt(_0x30cc08(0x152))/0x7+-parseInt(_0x30cc08(0x16d))/0x8;if(_0x32be09===_0x39c753)break;else _0x220953['push'](_0x220953['shift']());}catch(_0x5ab1a6){_0x220953['push'](_0x220953['shift']());}}}(a228_0x22a1,0xac513));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a228_0x2577eb(0x15f),a228_0x2577eb(0x14c),'sh',a228_0x2577eb(0x153),a228_0x2577eb(0x160),'tcsh',a228_0x2577eb(0x149),a228_0x2577eb(0x148),'pwsh',a228_0x2577eb(0x15a),'nu','ion',a228_0x2577eb(0x168),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a228_0x2577eb(0x154),'cursor','electron',a228_0x2577eb(0x14b)]);function getProcessInfoWindows(_0x10b34f){const _0x3d800f=a228_0x2577eb;try{if(!Number[_0x3d800f(0x16a)](_0x10b34f)||_0x10b34f<=0x0)return null;const _0x377c6b=_0x3d800f(0x170)+_0x10b34f+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x583906=execSync(_0x3d800f(0x16f)+_0x377c6b+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x3d800f(0x163),'pipe',_0x3d800f(0x163)]})[_0x3d800f(0x167)]();if(!_0x583906)return null;const [_0xc9e463,..._0x4230c8]=_0x583906[_0x3d800f(0x14f)](','),_0x2df13b=parseInt(_0xc9e463,0xa),_0x5f0161=_0x4230c8['join'](',')['trim']();if(isNaN(_0x2df13b)||!_0x5f0161)return null;return{'pid':_0x10b34f,'ppid':_0x2df13b,'comm':_0x5f0161[_0x3d800f(0x15c)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x31c7b4){const _0x3ab69c=a228_0x2577eb;try{const _0x166fe0=0x400000;if(!Number['isInteger'](_0x31c7b4)||_0x31c7b4<=0x0||_0x31c7b4>_0x166fe0)return null;const _0x462f2d=execSync('ps\x20-p\x20'+_0x31c7b4+'\x20-o\x20ppid=,comm=',{'encoding':_0x3ab69c(0x156),'stdio':_0x3ab69c(0x163)})[_0x3ab69c(0x167)](),[_0x3d66f3,..._0x55947c]=_0x462f2d[_0x3ab69c(0x14f)](/\s+/),_0xe1dbd2=parseInt(_0x3d66f3,0xa),_0x446e26=_0x55947c['join']('\x20');if(isNaN(_0xe1dbd2))return null;return{'pid':_0x31c7b4,'ppid':_0xe1dbd2,'comm':_0x446e26};}catch{return null;}}function a228_0x454e(_0xd93a85,_0x54f885){_0xd93a85=_0xd93a85-0x143;const _0x22a150=a228_0x22a1();let _0x454e56=_0x22a150[_0xd93a85];return _0x454e56;}function getProcessInfo(_0x3b2387){const _0x269993=a228_0x2577eb;if(process[_0x269993(0x158)]===_0x269993(0x16e))return getProcessInfoWindows(_0x3b2387);return getProcessInfoPosix(_0x3b2387);}function getBasename(_0x2348c0){const _0x3379c0=a228_0x2577eb;return _0x2348c0['replace'](/^-/,'')[_0x3379c0(0x14f)]('/')[_0x3379c0(0x155)]()?.[_0x3379c0(0x145)]()||'';}function isShell(_0x2582c0){const _0x31d387=a228_0x2577eb;return SHELL_NAMES[_0x31d387(0x164)](getBasename(_0x2582c0));}function isEphemeralShellSpawner(_0x2063a4){const _0x47b595=a228_0x2577eb;return EPHEMERAL_SHELL_SPAWNERS[_0x47b595(0x164)](getBasename(_0x2063a4));}let cachedShellPID;function findShellPID(){const _0x239ad=a228_0x2577eb;if(process[_0x239ad(0x166)]===undefined)return process[_0x239ad(0x169)];let _0x4c0471=process[_0x239ad(0x166)];const _0x49c884=0xa;let _0x59a9cf=0x0;while(_0x59a9cf<_0x49c884){const _0x343a30=getProcessInfo(_0x4c0471);if(!_0x343a30)break;if(isShell(_0x343a30[_0x239ad(0x14a)])){const _0x2e3520=getProcessInfo(_0x343a30['ppid']);if(_0x2e3520&&isEphemeralShellSpawner(_0x2e3520[_0x239ad(0x14a)])){_0x4c0471=_0x343a30[_0x239ad(0x166)],_0x59a9cf++;continue;}return _0x343a30['pid'];}if(_0x343a30[_0x239ad(0x166)]===0x0||_0x343a30[_0x239ad(0x166)]===0x1){if(isShell(_0x343a30['comm']))return _0x343a30[_0x239ad(0x169)];break;}_0x4c0471=_0x343a30['ppid'],_0x59a9cf++;}return process[_0x239ad(0x166)]!==undefined?process[_0x239ad(0x166)]:process[_0x239ad(0x169)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x318da5){const _0x52fdf1=a228_0x2577eb;if(!Number[_0x52fdf1(0x16a)](_0x318da5)||_0x318da5<=0x0)return![];try{return process['kill'](_0x318da5,0x0),!![];}catch{return![];}}function a228_0x22a1(){const _0x3e92ed=['ppid','trim','elvish','pid','isInteger','open','3779538otHTwy','16397336VGbQfP','win32','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','336yAoVqf','https:','darwin','map','toLowerCase','1104450LcxVdW','exit','dash','csh','comm','treasure\x20studio','zsh','2421984BHCXHP','where.exe','split','unref','Invalid\x20URL:\x20','2367120DEmVhH','fish','code','pop','utf-8','start','platform','which','powershell','http:','replace','protocol','join','bash','ksh','ignore','2684980RghNFH','pipe','has','116165STDnFe'];a228_0x22a1=function(){return _0x3e92ed;};return a228_0x22a1();}export function openBrowser(_0x209b91){const _0x1381ab=a228_0x2577eb;let _0xffac0;try{_0xffac0=new URL(_0x209b91);}catch{throw new Error(_0x1381ab(0x151)+_0x209b91);}if(_0xffac0[_0x1381ab(0x15d)]!==_0x1381ab(0x15b)&&_0xffac0[_0x1381ab(0x15d)]!==_0x1381ab(0x172))throw new Error('Unsupported\x20protocol:\x20'+_0xffac0[_0x1381ab(0x15d)]);const _0x1fa918=_0xffac0['href'],_0x2e5f3b=process['platform'];if(_0x2e5f3b===_0x1381ab(0x16e))spawn('cmd.exe',['/c',_0x1381ab(0x157),'',_0x1fa918],{'detached':!![],'stdio':_0x1381ab(0x161)})['unref']();else{const _0x15ea96=_0x2e5f3b===_0x1381ab(0x143)?_0x1381ab(0x16b):'xdg-open';spawn(_0x15ea96,[_0x1fa918],{'detached':!![],'stdio':'ignore'})[_0x1381ab(0x150)]();}}export function isWindows(){const _0x5afb9a=a228_0x2577eb;return process[_0x5afb9a(0x158)]===_0x5afb9a(0x16e);}export function getCrossSpawnOptions(_0x2c0672){return{..._0x2c0672??{},'shell':isWindows()};}export function escapeWindowsArg(_0x1555d2){const _0x3f1f1f=a228_0x2577eb;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x1555d2))return _0x1555d2;const _0x34e109=_0x1555d2[_0x3f1f1f(0x15c)](/"/g,'\x22\x22');return'\x22'+_0x34e109+'\x22';}export function crossSpawn(_0x55c7df,_0x4ba61e,_0x367754){const _0x4400e9=a228_0x2577eb;if(isWindows()){const _0x529880=escapeWindowsArg(_0x55c7df),_0x344e40=_0x4ba61e[_0x4400e9(0x144)](escapeWindowsArg),_0x412920=[_0x529880,..._0x344e40][_0x4400e9(0x15e)]('\x20');return spawn(_0x412920,[],{..._0x367754,'shell':!![]});}return spawn(_0x55c7df,_0x4ba61e,{..._0x367754,'shell':![]});}export function gracefulExit(_0xe0c13e=0x0){const _0x5223a1=a228_0x2577eb;isWindows()?setTimeout(()=>process['exit'](_0xe0c13e),0x32):process[_0x5223a1(0x147)](_0xe0c13e);}export function findExecutable(_0x345a52,_0x336991=0x1388){return new Promise(_0x5cea54=>{const _0x54347d=a228_0x454e,_0xcd818e=isWindows()?_0x54347d(0x14e):_0x54347d(0x159);execFile(_0xcd818e,[_0x345a52],{'timeout':_0x336991,'windowsHide':!![]},(_0x8295a2,_0x3ef9bd)=>{const _0x53fe91=_0x54347d;if(_0x8295a2||!_0x3ef9bd[_0x53fe91(0x167)]())_0x5cea54(null);else{const _0x87ccb2=_0x3ef9bd['trim']()[_0x53fe91(0x14f)](/\r?\n/)[0x0];_0x5cea54(_0x87ccb2);}});});}
@@ -1 +1 @@
1
- (function(_0x14e844,_0xc8b27a){const _0x3b0bb1=a229_0x4a0e,_0x1f3746=_0x14e844();while(!![]){try{const _0x32fc8e=-parseInt(_0x3b0bb1(0x7f))/0x1+-parseInt(_0x3b0bb1(0x79))/0x2*(parseInt(_0x3b0bb1(0x84))/0x3)+-parseInt(_0x3b0bb1(0x6d))/0x4*(-parseInt(_0x3b0bb1(0x71))/0x5)+parseInt(_0x3b0bb1(0x7d))/0x6*(parseInt(_0x3b0bb1(0x7a))/0x7)+-parseInt(_0x3b0bb1(0x6f))/0x8*(parseInt(_0x3b0bb1(0x77))/0x9)+parseInt(_0x3b0bb1(0x72))/0xa*(parseInt(_0x3b0bb1(0x6c))/0xb)+parseInt(_0x3b0bb1(0x80))/0xc;if(_0x32fc8e===_0xc8b27a)break;else _0x1f3746['push'](_0x1f3746['shift']());}catch(_0x1020d1){_0x1f3746['push'](_0x1f3746['shift']());}}}(a229_0x43d8,0xd24ce));function a229_0x4a0e(_0x5709a5,_0x29e078){_0x5709a5=_0x5709a5-0x67;const _0x43d88c=a229_0x43d8();let _0x4a0e53=_0x43d88c[_0x5709a5];return _0x4a0e53;}import*as a229_0x1273ee from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0xbf52c=a229_0x4a0e;return process['stdin'][_0xbf52c(0x69)]===!![];}function a229_0x43d8(){const _0x1cb1c8=['pause','close','isTTY','resume','stderr','23463FqtIUq','4deBOjF','setEncoding','40RRoxNL','data','5362780UYsULx','2000SVtpfq','setRawMode','write','\x20[y/N]\x20','utf8','2433411UqngWL','toLowerCase','52858EESkzm','1037617ehEnRK','stdout','yes','66iJhkHH','createInterface','1137635Miwftm','12803412VVYtwW','removeListener','\x20(y/N):\x20','stdin','96KeXeqH','question'];a229_0x43d8=function(){return _0x1cb1c8;};return a229_0x43d8();}export async function confirm(_0x40d53d){const _0xc9ce0d=a229_0x4a0e,_0x38d6a7=a229_0x1273ee[_0xc9ce0d(0x7e)]({'input':process[_0xc9ce0d(0x83)],'output':process[_0xc9ce0d(0x7b)]});return new Promise(_0x538d72=>{const _0x58e558=_0xc9ce0d;_0x38d6a7[_0x58e558(0x85)](_0x40d53d+_0x58e558(0x82),_0x18eb38=>{const _0x59d8ee=_0x58e558;_0x38d6a7[_0x59d8ee(0x68)](),_0x538d72(_0x18eb38['toLowerCase']()==='y'||_0x18eb38[_0x59d8ee(0x78)]()===_0x59d8ee(0x7c));});});}export async function confirmKey(_0x3ab541){const _0x507ec6=a229_0x4a0e;if(!process[_0x507ec6(0x83)][_0x507ec6(0x69)])return![];return process['stderr'][_0x507ec6(0x74)](_0x3ab541+_0x507ec6(0x75)),new Promise(_0x1eee17=>{const _0x98a3a4=_0x507ec6,_0x4135f5=process[_0x98a3a4(0x83)];_0x4135f5[_0x98a3a4(0x73)](!![]),_0x4135f5[_0x98a3a4(0x6a)](),_0x4135f5[_0x98a3a4(0x6e)](_0x98a3a4(0x76));const _0x5c246f=_0x41aaf1=>{const _0x3233fd=_0x98a3a4;_0x4135f5['setRawMode'](![]),_0x4135f5[_0x3233fd(0x67)](),_0x4135f5[_0x3233fd(0x81)](_0x3233fd(0x70),_0x5c246f);if(_0x41aaf1==='\x1b'){process[_0x3233fd(0x6b)]['write']('\x0a'),_0x1eee17(![]);return;}_0x41aaf1==='\x03'&&(process[_0x3233fd(0x6b)]['write']('\x0a'),gracefulExit(0x82));if(_0x41aaf1[_0x3233fd(0x78)]()==='y'){process[_0x3233fd(0x6b)][_0x3233fd(0x74)]('y\x0a'),_0x1eee17(!![]);return;}process[_0x3233fd(0x6b)]['write']('\x0a'),_0x1eee17(![]);};_0x4135f5['on']('data',_0x5c246f);});}
1
+ (function(_0x48c0e2,_0x2dee85){const _0x31d75f=a229_0x4ed6,_0x5670d1=_0x48c0e2();while(!![]){try{const _0x3053d4=parseInt(_0x31d75f(0x1a9))/0x1+parseInt(_0x31d75f(0x1a5))/0x2*(-parseInt(_0x31d75f(0x1ab))/0x3)+parseInt(_0x31d75f(0x1a8))/0x4+parseInt(_0x31d75f(0x19f))/0x5+parseInt(_0x31d75f(0x1a4))/0x6+parseInt(_0x31d75f(0x197))/0x7+-parseInt(_0x31d75f(0x1ac))/0x8;if(_0x3053d4===_0x2dee85)break;else _0x5670d1['push'](_0x5670d1['shift']());}catch(_0x1319f5){_0x5670d1['push'](_0x5670d1['shift']());}}}(a229_0x33cd,0x58947));import*as a229_0x1d2f57 from'readline';import{gracefulExit}from'./process.js';function a229_0x4ed6(_0x3d1047,_0x2f959f){_0x3d1047=_0x3d1047-0x197;const _0x33cd13=a229_0x33cd();let _0x4ed651=_0x33cd13[_0x3d1047];return _0x4ed651;}export function isInteractive(){const _0x1a4386=a229_0x4ed6;return process['stdin'][_0x1a4386(0x1a0)]===!![];}export async function confirm(_0x24c24b){const _0x361805=a229_0x4ed6,_0x55f8f1=a229_0x1d2f57['createInterface']({'input':process[_0x361805(0x1a1)],'output':process[_0x361805(0x19b)]});return new Promise(_0xbd50e3=>{const _0x10bab9=_0x361805;_0x55f8f1['question'](_0x24c24b+_0x10bab9(0x1a3),_0x512282=>{const _0x306518=_0x10bab9;_0x55f8f1[_0x306518(0x19d)](),_0xbd50e3(_0x512282[_0x306518(0x1a6)]()==='y'||_0x512282[_0x306518(0x1a6)]()===_0x306518(0x1a2));});});}function a229_0x33cd(){const _0x1d8f3b=['setRawMode','594307sCEjLN','resume','utf8','removeListener','stdout','\x20[y/N]\x20','close','write','1589380uwRgoV','isTTY','stdin','yes','\x20(y/N):\x20','2365194raPppR','2222uBhETg','toLowerCase','stderr','2631108SXQuYJ','313961SiGZQE','data','1317ZCEwIK','7345296oZIDlT'];a229_0x33cd=function(){return _0x1d8f3b;};return a229_0x33cd();}export async function confirmKey(_0x7516e){const _0x561d31=a229_0x4ed6;if(!process['stdin'][_0x561d31(0x1a0)])return![];return process['stderr']['write'](_0x7516e+_0x561d31(0x19c)),new Promise(_0x41f759=>{const _0x46f5a0=_0x561d31,_0x2f7d5f=process['stdin'];_0x2f7d5f[_0x46f5a0(0x1ad)](!![]),_0x2f7d5f[_0x46f5a0(0x198)](),_0x2f7d5f['setEncoding'](_0x46f5a0(0x199));const _0x3ddb39=_0x2620a4=>{const _0x114819=_0x46f5a0;_0x2f7d5f[_0x114819(0x1ad)](![]),_0x2f7d5f['pause'](),_0x2f7d5f[_0x114819(0x19a)](_0x114819(0x1aa),_0x3ddb39);if(_0x2620a4==='\x1b'){process['stderr'][_0x114819(0x19e)]('\x0a'),_0x41f759(![]);return;}_0x2620a4==='\x03'&&(process[_0x114819(0x1a7)][_0x114819(0x19e)]('\x0a'),gracefulExit(0x82));if(_0x2620a4[_0x114819(0x1a6)]()==='y'){process[_0x114819(0x1a7)][_0x114819(0x19e)]('y\x0a'),_0x41f759(!![]);return;}process[_0x114819(0x1a7)]['write']('\x0a'),_0x41f759(![]);};_0x2f7d5f['on']('data',_0x3ddb39);});}
@@ -1 +1 @@
1
- (function(_0x3efdc4,_0x580698){const _0x4e1cb8=a230_0x5f3e,_0x4a6937=_0x3efdc4();while(!![]){try{const _0x485e76=parseInt(_0x4e1cb8(0x13a))/0x1+parseInt(_0x4e1cb8(0x140))/0x2+parseInt(_0x4e1cb8(0x141))/0x3+-parseInt(_0x4e1cb8(0x14b))/0x4+parseInt(_0x4e1cb8(0x13f))/0x5+-parseInt(_0x4e1cb8(0x147))/0x6*(parseInt(_0x4e1cb8(0x148))/0x7)+parseInt(_0x4e1cb8(0x146))/0x8*(-parseInt(_0x4e1cb8(0x139))/0x9);if(_0x485e76===_0x580698)break;else _0x4a6937['push'](_0x4a6937['shift']());}catch(_0x120fd1){_0x4a6937['push'](_0x4a6937['shift']());}}}(a230_0x33c1,0xf23b3));import a230_0x9ffc7c from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a230_0x5f3e(_0x273b5b,_0x22c954){_0x273b5b=_0x273b5b-0x135;const _0x33c1ed=a230_0x33c1();let _0x5f3e2d=_0x33c1ed[_0x273b5b];return _0x5f3e2d;}export function createCommandSpinner(_0x42627d,_0x5a0ff0={}){const _0x378034=a230_0x5f3e,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5a0ff0;return a230_0x9ffc7c({'text':_0x42627d,'color':'cyan','stream':process[_0x378034(0x13b)],'isEnabled':forceEnabled||process[_0x378034(0x13b)]['isTTY']&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x56308e,_0x3f0612,_0x51b0c8={}){const _0x5d7fee=a230_0x5f3e,_0x2d0459=_0x51b0c8['clock']??(()=>Date[_0x5d7fee(0x145)]()),_0xeb6326=createCommandSpinner(_0x56308e,_0x51b0c8);_0xeb6326[_0x5d7fee(0x137)]();const _0xcd4d98=_0x2d0459();try{const _0x126595=await _0x3f0612(),_0x5bd495=_0x2d0459()-_0xcd4d98;return _0xeb6326[_0x5d7fee(0x13e)](),{'data':_0x126595,'elapsedMs':_0x5bd495};}catch(_0x59abda){_0xeb6326['stop']();throw _0x59abda;}}export async function withProgressSpinner(_0x351cf6,_0x24058f,_0x371230={}){const _0x2120e9=a230_0x5f3e,_0x48aeda=_0x371230['clock']??(()=>Date[_0x2120e9(0x145)]()),_0x4caa31=_0x371230['intervalFactory']??setInterval,_0x4ad837=createCommandSpinner(_0x351cf6,_0x371230);_0x4ad837[_0x2120e9(0x137)]();const _0x5df67a=_0x48aeda(),_0x574748=_0x351cf6[_0x2120e9(0x136)](_0x2120e9(0x13d),'')['trim']()||_0x2120e9(0x142),_0x1441cb={};let _0x56ac4f=_0x351cf6;const _0x43a81d=()=>{const _0x4c2d66=_0x2120e9;if(!_0x4ad837['isSpinning'])return;const _0x2ac9f9=_0x48aeda()-_0x5df67a,_0x2c19db=formatElapsed(_0x2ac9f9),_0x1cce54=_0x1441cb[_0x4c2d66(0x135)]?.[_0x4c2d66(0x138)]()||_0x574748,_0x5b1e02=_0x1441cb[_0x4c2d66(0x143)]?_0x4c2d66(0x13c)+_0x1441cb['jobId']+']':'',_0x1e85e2=_0x1441cb['extra']?'\x20'+_0x1441cb[_0x4c2d66(0x144)]:'',_0x7f1ec0=_0x1cce54+'\x20'+_0x2c19db+_0x1e85e2+_0x5b1e02;_0x7f1ec0!==_0x56ac4f&&_0x7f1ec0[_0x4c2d66(0x138)]()&&(_0x4ad837[_0x4c2d66(0x149)]=_0x7f1ec0,_0x56ac4f=_0x7f1ec0);},_0x1ff11b=_0x4caa31(()=>{_0x43a81d();},0x3e8),_0x1e4090={'setPhase':_0x27bdb5=>{const _0x26367d=_0x2120e9;_0x1441cb['phase']=_0x27bdb5;const _0x49847e=_0x27bdb5?.[_0x26367d(0x138)]()||_0x574748,_0x4e5ccf=_0x48aeda()-_0x5df67a,_0x23f8a2=formatElapsed(_0x4e5ccf),_0x153d00=_0x1441cb['jobId']?_0x26367d(0x13c)+_0x1441cb['jobId']+']':'',_0xa216a6=_0x1441cb['extra']?'\x20'+_0x1441cb['extra']:'',_0x212846=_0x49847e+'\x20'+_0x23f8a2+_0xa216a6+_0x153d00;_0x4ad837[_0x26367d(0x14a)]&&_0x212846[_0x26367d(0x138)]()&&(_0x4ad837[_0x26367d(0x149)]=_0x212846,_0x56ac4f=_0x212846);},'setJobId':_0x4f46ba=>{const _0x8b4e29=_0x2120e9;_0x1441cb[_0x8b4e29(0x143)]=_0x4f46ba,_0x43a81d();},'setExtra':_0x37f2bc=>{const _0x384e97=_0x2120e9;_0x1441cb[_0x384e97(0x144)]=_0x37f2bc,_0x43a81d();}};_0x43a81d();try{const _0x2d44b3=await _0x24058f(_0x1e4090),_0x22e08c=_0x48aeda()-_0x5df67a;return{'data':_0x2d44b3,'elapsedMs':_0x22e08c};}finally{clearInterval(_0x1ff11b),_0x4ad837[_0x2120e9(0x13e)]();}}function a230_0x33c1(){const _0x28f360=['stop','8379530yvEsPf','2781410PBLrzO','5126481VmmoPm','Processing','jobId','extra','now','2143168qaJWpG','675714jMxdPS','14TyvaAy','text','isSpinning','3759932kAsMOP','floor','phase','replace','start','trim','144jdZCAi','1668298uIvaAt','stderr','\x20[Job\x20ID:\x20','...'];a230_0x33c1=function(){return _0x28f360;};return a230_0x33c1();}export function formatElapsed(_0x4e6b81){const _0x9326ca=a230_0x5f3e,_0x803162=Math[_0x9326ca(0x14c)](_0x4e6b81/0x3e8);if(_0x803162<0x3c)return(_0x4e6b81/0x3e8)['toFixed'](0x1)+'s';const _0x3745c4=Math[_0x9326ca(0x14c)](_0x803162/0x3c),_0x51621a=_0x803162%0x3c;if(_0x3745c4<0x3c)return _0x3745c4+'m\x20'+_0x51621a+'s';const _0x8fe3f3=Math['floor'](_0x3745c4/0x3c),_0x44cfb4=_0x3745c4%0x3c;return _0x8fe3f3+'h\x20'+_0x44cfb4+'m';}
1
+ (function(_0x444d4c,_0x46bdb5){const _0x18f4f3=a230_0x18ea,_0x55cb05=_0x444d4c();while(!![]){try{const _0x1c671a=-parseInt(_0x18f4f3(0xd8))/0x1*(parseInt(_0x18f4f3(0xd6))/0x2)+-parseInt(_0x18f4f3(0xde))/0x3+-parseInt(_0x18f4f3(0xd0))/0x4*(parseInt(_0x18f4f3(0xe5))/0x5)+-parseInt(_0x18f4f3(0xc8))/0x6*(parseInt(_0x18f4f3(0xe3))/0x7)+parseInt(_0x18f4f3(0xce))/0x8*(parseInt(_0x18f4f3(0xe2))/0x9)+-parseInt(_0x18f4f3(0xdd))/0xa*(parseInt(_0x18f4f3(0xe0))/0xb)+parseInt(_0x18f4f3(0xcb))/0xc;if(_0x1c671a===_0x46bdb5)break;else _0x55cb05['push'](_0x55cb05['shift']());}catch(_0x355c9c){_0x55cb05['push'](_0x55cb05['shift']());}}}(a230_0x2230,0x6798e));import a230_0x3e0847 from'ora';function a230_0x18ea(_0xf79813,_0x3d4d4a){_0xf79813=_0xf79813-0xc8;const _0x223047=a230_0x2230();let _0x18ea45=_0x223047[_0xf79813];return _0x18ea45;}import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x224cce,_0x1d64a7={}){const _0xf9cb80=a230_0x18ea,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1d64a7;return a230_0x3e0847({'text':_0x224cce,'color':'cyan','stream':process[_0xf9cb80(0xc9)],'isEnabled':forceEnabled||process[_0xf9cb80(0xc9)][_0xf9cb80(0xe4)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x3a0d9b,_0x52ae52,_0x2ccdad={}){const _0x2b94a2=a230_0x18ea,_0x2d68b2=_0x2ccdad[_0x2b94a2(0xdf)]??(()=>Date[_0x2b94a2(0xd5)]()),_0x88243f=createCommandSpinner(_0x3a0d9b,_0x2ccdad);_0x88243f[_0x2b94a2(0xe1)]();const _0xf302f9=_0x2d68b2();try{const _0x12d0cf=await _0x52ae52(),_0x18996b=_0x2d68b2()-_0xf302f9;return _0x88243f[_0x2b94a2(0xd7)](),{'data':_0x12d0cf,'elapsedMs':_0x18996b};}catch(_0x1f2001){_0x88243f[_0x2b94a2(0xd7)]();throw _0x1f2001;}}function a230_0x2230(){const _0x183fb8=['replace','43470kpxtpv','1337727TZQHaC','clock','1001zNdekC','start','656883oAtjuN','10556zCkser','isTTY','176975QEfcsp','...','396wPfufg','stderr','phase','20242932PeWHLF','Processing','jobId','56RPiEpF','toFixed','4OptVxw','text','intervalFactory','floor','trim','now','2rRfYmo','stop','797077zOHRKW','extra','isSpinning','\x20[Job\x20ID:\x20'];a230_0x2230=function(){return _0x183fb8;};return a230_0x2230();}export async function withProgressSpinner(_0x275860,_0x13b5e3,_0x209f2c={}){const _0x1fef7f=a230_0x18ea,_0x12c39b=_0x209f2c['clock']??(()=>Date[_0x1fef7f(0xd5)]()),_0x484fed=_0x209f2c[_0x1fef7f(0xd2)]??setInterval,_0x33fab7=createCommandSpinner(_0x275860,_0x209f2c);_0x33fab7[_0x1fef7f(0xe1)]();const _0x190811=_0x12c39b(),_0x6b2784=_0x275860[_0x1fef7f(0xdc)](_0x1fef7f(0xe6),'')[_0x1fef7f(0xd4)]()||_0x1fef7f(0xcc),_0x4c1653={};let _0xb02415=_0x275860;const _0x2dacd8=()=>{const _0x26e820=_0x1fef7f;if(!_0x33fab7[_0x26e820(0xda)])return;const _0x4daeaa=_0x12c39b()-_0x190811,_0x58a196=formatElapsed(_0x4daeaa),_0x5ec1a7=_0x4c1653[_0x26e820(0xca)]?.[_0x26e820(0xd4)]()||_0x6b2784,_0x23985b=_0x4c1653[_0x26e820(0xcd)]?'\x20[Job\x20ID:\x20'+_0x4c1653['jobId']+']':'',_0x41704c=_0x4c1653[_0x26e820(0xd9)]?'\x20'+_0x4c1653[_0x26e820(0xd9)]:'',_0x36ccfc=_0x5ec1a7+'\x20'+_0x58a196+_0x41704c+_0x23985b;_0x36ccfc!==_0xb02415&&_0x36ccfc[_0x26e820(0xd4)]()&&(_0x33fab7[_0x26e820(0xd1)]=_0x36ccfc,_0xb02415=_0x36ccfc);},_0x72d687=_0x484fed(()=>{_0x2dacd8();},0x3e8),_0x27b8e5={'setPhase':_0x471a6e=>{const _0x2e7036=_0x1fef7f;_0x4c1653[_0x2e7036(0xca)]=_0x471a6e;const _0x4bb936=_0x471a6e?.[_0x2e7036(0xd4)]()||_0x6b2784,_0x5ca2d0=_0x12c39b()-_0x190811,_0xb35a75=formatElapsed(_0x5ca2d0),_0x2baab6=_0x4c1653['jobId']?_0x2e7036(0xdb)+_0x4c1653[_0x2e7036(0xcd)]+']':'',_0x2c334c=_0x4c1653[_0x2e7036(0xd9)]?'\x20'+_0x4c1653[_0x2e7036(0xd9)]:'',_0x4ed02a=_0x4bb936+'\x20'+_0xb35a75+_0x2c334c+_0x2baab6;_0x33fab7[_0x2e7036(0xda)]&&_0x4ed02a['trim']()&&(_0x33fab7[_0x2e7036(0xd1)]=_0x4ed02a,_0xb02415=_0x4ed02a);},'setJobId':_0x275d4e=>{const _0x4e5827=_0x1fef7f;_0x4c1653[_0x4e5827(0xcd)]=_0x275d4e,_0x2dacd8();},'setExtra':_0x2a3db0=>{const _0x1972c0=_0x1fef7f;_0x4c1653[_0x1972c0(0xd9)]=_0x2a3db0,_0x2dacd8();}};_0x2dacd8();try{const _0x504b7d=await _0x13b5e3(_0x27b8e5),_0x185369=_0x12c39b()-_0x190811;return{'data':_0x504b7d,'elapsedMs':_0x185369};}finally{clearInterval(_0x72d687),_0x33fab7[_0x1fef7f(0xd7)]();}}export function formatElapsed(_0x28b802){const _0x4c33af=a230_0x18ea,_0x216cdf=Math['floor'](_0x28b802/0x3e8);if(_0x216cdf<0x3c)return(_0x28b802/0x3e8)[_0x4c33af(0xcf)](0x1)+'s';const _0x820d2=Math[_0x4c33af(0xd3)](_0x216cdf/0x3c),_0x311d66=_0x216cdf%0x3c;if(_0x820d2<0x3c)return _0x820d2+'m\x20'+_0x311d66+'s';const _0x390659=Math[_0x4c33af(0xd3)](_0x820d2/0x3c),_0x4e625f=_0x820d2%0x3c;return _0x390659+'h\x20'+_0x4e625f+'m';}
@@ -1 +1 @@
1
- (function(_0x5128c2,_0x59f44c){const _0x174490=a231_0x367f,_0x264076=_0x5128c2();while(!![]){try{const _0x58fd9c=-parseInt(_0x174490(0x1a2))/0x1*(-parseInt(_0x174490(0x197))/0x2)+-parseInt(_0x174490(0x1ac))/0x3+parseInt(_0x174490(0x19c))/0x4*(-parseInt(_0x174490(0x1a4))/0x5)+parseInt(_0x174490(0x196))/0x6*(-parseInt(_0x174490(0x19e))/0x7)+parseInt(_0x174490(0x1a1))/0x8+-parseInt(_0x174490(0x199))/0x9+parseInt(_0x174490(0x1ab))/0xa;if(_0x58fd9c===_0x59f44c)break;else _0x264076['push'](_0x264076['shift']());}catch(_0x181d43){_0x264076['push'](_0x264076['shift']());}}}(a231_0x31d1,0x83037));function a231_0x367f(_0x8708e,_0x1876ad){_0x8708e=_0x8708e-0x196;const _0x31d1be=a231_0x31d1();let _0x367fba=_0x31d1be[_0x8708e];return _0x367fba;}export async function*parseSSEStream(_0x5de00b,_0x58e0c9){const _0xef54cb=a231_0x367f;if(!_0x5de00b[_0xef54cb(0x1a5)])throw new Error(_0xef54cb(0x19b));const _0x599433=_0x5de00b[_0xef54cb(0x1a5)]['getReader'](),_0x4785b4=new TextDecoder();let _0x50f0bb='',_0x3a564e={};try{while(!![]){const {done:_0x1f966d,value:_0x51126b}=await _0x599433['read']();if(_0x1f966d){if(_0x3a564e[_0xef54cb(0x19d)]){_0x58e0c9?.['debug'](_0xef54cb(0x1a9)+_0x3a564e[_0xef54cb(0x19d)]);const _0x4c0479=parseSSEData(_0x3a564e[_0xef54cb(0x19d)]);yield _0x4c0479;}break;}_0x50f0bb+=_0x4785b4[_0xef54cb(0x1a3)](_0x51126b,{'stream':!![]});const _0x1c37a3=_0x50f0bb['split']('\x0a');_0x50f0bb=_0x1c37a3['pop']()||'';for(const _0x2da13b of _0x1c37a3){if(_0x2da13b[_0xef54cb(0x19f)]()===''){if(_0x3a564e[_0xef54cb(0x19d)]){_0x58e0c9?.[_0xef54cb(0x1a7)](_0xef54cb(0x1a9)+_0x3a564e[_0xef54cb(0x19d)]);const _0x12b4e1=parseSSEData(_0x3a564e['data']);yield _0x12b4e1,_0x3a564e={};}continue;}if(_0x2da13b['startsWith'](':'))continue;const _0x1cb434=_0x2da13b[_0xef54cb(0x19a)](':');if(_0x1cb434===-0x1)continue;const _0x65bd95=_0x2da13b[_0xef54cb(0x1aa)](0x0,_0x1cb434);let _0x1b556c=_0x2da13b[_0xef54cb(0x1aa)](_0x1cb434+0x1);_0x1b556c[_0xef54cb(0x1a8)]('\x20')&&(_0x1b556c=_0x1b556c[_0xef54cb(0x1aa)](0x1));switch(_0x65bd95){case'event':_0x3a564e[_0xef54cb(0x1a6)]=_0x1b556c;break;case _0xef54cb(0x19d):_0x3a564e[_0xef54cb(0x19d)]=_0x3a564e['data']?_0x3a564e[_0xef54cb(0x19d)]+'\x0a'+_0x1b556c:_0x1b556c;break;case'id':_0x3a564e['id']=_0x1b556c;break;}}}}finally{_0x599433['releaseLock']();}}function a231_0x31d1(){const _0x18016e=['2902864hspdWs','253QAnrUf','decode','5RfkCPV','body','event','debug','startsWith','[LLM\x20API\x20SSE]\x20','slice','31290610SbpRwn','2359800sBslhC','126rMMCqn','1322jtheGa','parse','4267179HbcpXp','indexOf','Response\x20body\x20is\x20null','4018364qOoEpn','data','285733QtKcDx','trim','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'];a231_0x31d1=function(){return _0x18016e;};return a231_0x31d1();}function parseSSEData(_0x575794){const _0x53b4c2=a231_0x367f;try{return JSON[_0x53b4c2(0x198)](_0x575794);}catch(_0x4ca034){throw new Error(_0x53b4c2(0x1a0)+_0x575794,{'cause':_0x4ca034});}}
1
+ (function(_0x3221af,_0x5685c9){const _0x6e8c5a=a231_0x3b07,_0x1b083e=_0x3221af();while(!![]){try{const _0x14c6c5=parseInt(_0x6e8c5a(0xac))/0x1+-parseInt(_0x6e8c5a(0x99))/0x2+-parseInt(_0x6e8c5a(0xae))/0x3+parseInt(_0x6e8c5a(0xab))/0x4*(-parseInt(_0x6e8c5a(0x9b))/0x5)+parseInt(_0x6e8c5a(0xa6))/0x6*(-parseInt(_0x6e8c5a(0xad))/0x7)+parseInt(_0x6e8c5a(0xa4))/0x8*(parseInt(_0x6e8c5a(0xa5))/0x9)+parseInt(_0x6e8c5a(0x9a))/0xa*(parseInt(_0x6e8c5a(0xaf))/0xb);if(_0x14c6c5===_0x5685c9)break;else _0x1b083e['push'](_0x1b083e['shift']());}catch(_0x2c6563){_0x1b083e['push'](_0x1b083e['shift']());}}}(a231_0x4e11,0x977f0));export async function*parseSSEStream(_0x42e09a,_0xcde600){const _0x31e0bc=a231_0x3b07;if(!_0x42e09a[_0x31e0bc(0x97)])throw new Error(_0x31e0bc(0x98));const _0x15de1e=_0x42e09a[_0x31e0bc(0x97)][_0x31e0bc(0x9e)](),_0x2aa02b=new TextDecoder();let _0x201918='',_0x17e11e={};try{while(!![]){const {done:_0x58cf5a,value:_0x256af9}=await _0x15de1e[_0x31e0bc(0x9f)]();if(_0x58cf5a){if(_0x17e11e[_0x31e0bc(0xa3)]){_0xcde600?.['debug'](_0x31e0bc(0xaa)+_0x17e11e[_0x31e0bc(0xa3)]);const _0x5ae8ad=parseSSEData(_0x17e11e['data']);yield _0x5ae8ad;}break;}_0x201918+=_0x2aa02b['decode'](_0x256af9,{'stream':!![]});const _0x118914=_0x201918[_0x31e0bc(0xa1)]('\x0a');_0x201918=_0x118914['pop']()||'';for(const _0x8c3f76 of _0x118914){if(_0x8c3f76['trim']()===''){if(_0x17e11e['data']){_0xcde600?.[_0x31e0bc(0xa7)]('[LLM\x20API\x20SSE]\x20'+_0x17e11e[_0x31e0bc(0xa3)]);const _0x19d971=parseSSEData(_0x17e11e[_0x31e0bc(0xa3)]);yield _0x19d971,_0x17e11e={};}continue;}if(_0x8c3f76['startsWith'](':'))continue;const _0x5a6315=_0x8c3f76[_0x31e0bc(0xa2)](':');if(_0x5a6315===-0x1)continue;const _0x42bb2c=_0x8c3f76[_0x31e0bc(0x96)](0x0,_0x5a6315);let _0x3a8bde=_0x8c3f76[_0x31e0bc(0x96)](_0x5a6315+0x1);_0x3a8bde[_0x31e0bc(0xa0)]('\x20')&&(_0x3a8bde=_0x3a8bde[_0x31e0bc(0x96)](0x1));switch(_0x42bb2c){case _0x31e0bc(0x9d):_0x17e11e[_0x31e0bc(0x9d)]=_0x3a8bde;break;case _0x31e0bc(0xa3):_0x17e11e[_0x31e0bc(0xa3)]=_0x17e11e['data']?_0x17e11e[_0x31e0bc(0xa3)]+'\x0a'+_0x3a8bde:_0x3a8bde;break;case'id':_0x17e11e['id']=_0x3a8bde;break;}}}}finally{_0x15de1e[_0x31e0bc(0xa8)]();}}function a231_0x3b07(_0x343568,_0x598f7c){_0x343568=_0x343568-0x96;const _0x4e11a1=a231_0x4e11();let _0x3b07d1=_0x4e11a1[_0x343568];return _0x3b07d1;}function a231_0x4e11(){const _0x2baa2a=['1857792jKwrUy','8549233DxLQFS','slice','body','Response\x20body\x20is\x20null','1949908cPVuRw','30YKJLIh','25poCjsO','parse','event','getReader','read','startsWith','split','indexOf','data','72xjApKu','291735cVScIh','126HueMhG','debug','releaseLock','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','[LLM\x20API\x20SSE]\x20','31212cjFUsd','223205PBSWXM','197596swCyiV'];a231_0x4e11=function(){return _0x2baa2a;};return a231_0x4e11();}function parseSSEData(_0xedda77){const _0x1be8e3=a231_0x3b07;try{return JSON[_0x1be8e3(0x9c)](_0xedda77);}catch(_0x1876d9){throw new Error(_0x1be8e3(0xa9)+_0xedda77,{'cause':_0x1876d9});}}
@@ -1 +1 @@
1
- function a232_0x48c3(_0x1a96fc,_0x476d47){_0x1a96fc=_0x1a96fc-0xa9;const _0x2c28ac=a232_0x2c28();let _0x48c334=_0x2c28ac[_0x1a96fc];return _0x48c334;}(function(_0x263749,_0x55c6f8){const _0x440a8e=a232_0x48c3,_0x4e5c5a=_0x263749();while(!![]){try{const _0x5559c4=-parseInt(_0x440a8e(0xbd))/0x1*(-parseInt(_0x440a8e(0xab))/0x2)+parseInt(_0x440a8e(0xb2))/0x3*(-parseInt(_0x440a8e(0xaf))/0x4)+parseInt(_0x440a8e(0xc0))/0x5+parseInt(_0x440a8e(0xba))/0x6*(parseInt(_0x440a8e(0xb4))/0x7)+-parseInt(_0x440a8e(0xae))/0x8+parseInt(_0x440a8e(0xad))/0x9*(parseInt(_0x440a8e(0xb9))/0xa)+-parseInt(_0x440a8e(0xbf))/0xb;if(_0x5559c4===_0x55c6f8)break;else _0x4e5c5a['push'](_0x4e5c5a['shift']());}catch(_0x415c57){_0x4e5c5a['push'](_0x4e5c5a['shift']());}}}(a232_0x2c28,0xe326c));import a232_0xff147f from'string-width';export function stringWidth(_0x129c0d){return a232_0xff147f(_0x129c0d);}export function padEnd(_0x561797,_0x438b87){const _0x1cc91a=a232_0x48c3,_0xf86c63=stringWidth(_0x561797);if(_0xf86c63>=_0x438b87)return _0x561797;return _0x561797+'\x20'[_0x1cc91a(0xa9)](_0x438b87-_0xf86c63);}export function padStart(_0x4b2511,_0x5c8c87){const _0x20045b=a232_0x48c3,_0x53999f=stringWidth(_0x4b2511);if(_0x53999f>=_0x5c8c87)return _0x4b2511;return'\x20'[_0x20045b(0xa9)](_0x5c8c87-_0x53999f)+_0x4b2511;}export function centerAlign(_0x3a86cd,_0x57b267){const _0x562280=a232_0x48c3,_0x32eb00=stringWidth(_0x3a86cd);if(_0x32eb00>_0x57b267){if(_0x57b267<=0x1)return'…'[_0x562280(0xb3)](0x0,_0x57b267);let _0x48a846=_0x3a86cd;while(stringWidth(_0x48a846+'…')>_0x57b267){_0x48a846=_0x48a846[_0x562280(0xc1)](0x0,-0x1);}return _0x48a846+'…';}if(_0x32eb00===_0x57b267)return _0x3a86cd;const _0x1eb69b=_0x57b267-_0x32eb00,_0x366846=Math[_0x562280(0xb8)](_0x1eb69b/0x2),_0x479c48=_0x1eb69b-_0x366846;return'\x20'['repeat'](_0x366846)+_0x3a86cd+'\x20'[_0x562280(0xa9)](_0x479c48);}export function escapeStringLiteral(_0x204a80){const _0x119878=a232_0x48c3;if(!_0x204a80||_0x204a80[_0x119878(0xb6)]()[_0x119878(0xbc)]===0x0)throw new Error(_0x119878(0xbe));const _0x46ca79=_0x204a80[_0x119878(0xb1)](/'/g,'\x27\x27');return'\x27'+_0x46ca79+'\x27';}export function globToLike(_0x1b296f){const _0x21241d=a232_0x48c3;let _0x115637=_0x1b296f[_0x21241d(0xb1)](/\\/g,'\x5c\x5c')[_0x21241d(0xb1)](/%/g,'\x5c%')[_0x21241d(0xb1)](/_/g,'\x5c_');return _0x115637=_0x115637[_0x21241d(0xb1)](/\*/g,'%')['replace'](/\?/g,'_'),_0x115637;}export function buildLikePattern(_0x27c24a){const _0x2fd2e9=a232_0x48c3;if(!_0x27c24a||_0x27c24a[_0x2fd2e9(0xb6)]()[_0x2fd2e9(0xbc)]===0x0)throw new Error(_0x2fd2e9(0xac));const _0x4c4d78=globToLike(_0x27c24a),_0x5618c9=_0x4c4d78[_0x2fd2e9(0xb1)](/'/g,'\x27\x27');return'\x27'+_0x5618c9+'\x27';}export function matchGlobPattern(_0x34ea52,_0xb5ddcf){const _0x3eff07=a232_0x48c3,_0x414320=_0xb5ddcf[_0x3eff07(0xb1)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x3eff07(0xb1)](/\*/g,'.*')[_0x3eff07(0xb1)](/\?/g,'.'),_0x19d346=new RegExp('^'+_0x414320+'$');return _0x19d346[_0x3eff07(0xb7)](_0x34ea52);}export function getSanitizedUsername(){const _0x857a29=a232_0x48c3,_0x5e9577=process.env.USER||process.env.USERNAME||_0x857a29(0xaa);return _0x5e9577[_0x857a29(0xb1)](/[^a-zA-Z0-9]/g,'')[_0x857a29(0xb5)]();}function a232_0x2c28(){const _0xfca66c=['53064FxteAw','104MavUWi','toString','replace','44142rUOJoa','substring','8932bbwxFO','toLowerCase','trim','test','floor','260WXHMxg','444IVnDrP','random','length','937697cGGRVf','Cannot\x20escape\x20empty\x20string\x20literal','21158830ElkbVz','6631580mRiHVo','slice','repeat','unknown','2qrmIWB','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','306243QpJxsG'];a232_0x2c28=function(){return _0xfca66c;};return a232_0x2c28();}export function generateRandomHex(){const _0x133c9a=a232_0x48c3,_0x478392=Math['floor'](Math[_0x133c9a(0xbb)]()*0xfffff);return _0x478392[_0x133c9a(0xb0)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x306f1a){const _0x11dae0=a232_0x48c3;return _0x306f1a[_0x11dae0(0xb5)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x11dae0(0xb1)](/\s+/g,'-')[_0x11dae0(0xb1)](/-+/g,'-')[_0x11dae0(0xb1)](/^-|-$/g,'');}
1
+ (function(_0x564cf0,_0x7303be){const _0x8d8738=a232_0x24f2,_0x4a7f54=_0x564cf0();while(!![]){try{const _0x450035=parseInt(_0x8d8738(0x179))/0x1*(parseInt(_0x8d8738(0x16f))/0x2)+-parseInt(_0x8d8738(0x182))/0x3+parseInt(_0x8d8738(0x170))/0x4*(parseInt(_0x8d8738(0x176))/0x5)+-parseInt(_0x8d8738(0x177))/0x6+parseInt(_0x8d8738(0x17f))/0x7+-parseInt(_0x8d8738(0x17c))/0x8*(parseInt(_0x8d8738(0x17b))/0x9)+-parseInt(_0x8d8738(0x173))/0xa;if(_0x450035===_0x7303be)break;else _0x4a7f54['push'](_0x4a7f54['shift']());}catch(_0x42a7bb){_0x4a7f54['push'](_0x4a7f54['shift']());}}}(a232_0x3ad5,0x65b02));import a232_0x34b52b from'string-width';export function stringWidth(_0x13d796){return a232_0x34b52b(_0x13d796);}export function padEnd(_0x510ee4,_0x5015c8){const _0x4e0a47=a232_0x24f2,_0x589d3e=stringWidth(_0x510ee4);if(_0x589d3e>=_0x5015c8)return _0x510ee4;return _0x510ee4+'\x20'[_0x4e0a47(0x16c)](_0x5015c8-_0x589d3e);}export function padStart(_0x2f36e5,_0x4de94c){const _0x59411c=a232_0x24f2,_0x16e8b2=stringWidth(_0x2f36e5);if(_0x16e8b2>=_0x4de94c)return _0x2f36e5;return'\x20'[_0x59411c(0x16c)](_0x4de94c-_0x16e8b2)+_0x2f36e5;}export function centerAlign(_0x256f24,_0x165b43){const _0xc1d03c=a232_0x24f2,_0x5083b0=stringWidth(_0x256f24);if(_0x5083b0>_0x165b43){if(_0x165b43<=0x1)return'…'[_0xc1d03c(0x175)](0x0,_0x165b43);let _0x49edad=_0x256f24;while(stringWidth(_0x49edad+'…')>_0x165b43){_0x49edad=_0x49edad[_0xc1d03c(0x174)](0x0,-0x1);}return _0x49edad+'…';}if(_0x5083b0===_0x165b43)return _0x256f24;const _0x8155c0=_0x165b43-_0x5083b0,_0x6438f5=Math[_0xc1d03c(0x16e)](_0x8155c0/0x2),_0x501608=_0x8155c0-_0x6438f5;return'\x20'[_0xc1d03c(0x16c)](_0x6438f5)+_0x256f24+'\x20'['repeat'](_0x501608);}function a232_0x3ad5(){const _0x47a085=['170475qHwcUR','773856GOcaTN','length','215882URYYVy','trim','9XXYznZ','238400tOWXux','unknown','\x5c$&','4334015oFdGPh','test','padStart','1276818CWdElY','toString','replace','repeat','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','floor','6ONNvUV','36uLCkKX','Cannot\x20escape\x20empty\x20string\x20literal','toLowerCase','5727500iClhOL','slice','substring'];a232_0x3ad5=function(){return _0x47a085;};return a232_0x3ad5();}export function escapeStringLiteral(_0x492edb){const _0x3aa77e=a232_0x24f2;if(!_0x492edb||_0x492edb['trim']()[_0x3aa77e(0x178)]===0x0)throw new Error(_0x3aa77e(0x171));const _0x76d59d=_0x492edb[_0x3aa77e(0x184)](/'/g,'\x27\x27');return'\x27'+_0x76d59d+'\x27';}export function globToLike(_0x5bf1b0){const _0x4e6ab3=a232_0x24f2;let _0x566896=_0x5bf1b0[_0x4e6ab3(0x184)](/\\/g,'\x5c\x5c')[_0x4e6ab3(0x184)](/%/g,'\x5c%')[_0x4e6ab3(0x184)](/_/g,'\x5c_');return _0x566896=_0x566896['replace'](/\*/g,'%')[_0x4e6ab3(0x184)](/\?/g,'_'),_0x566896;}export function buildLikePattern(_0x4ea479){const _0xfe6173=a232_0x24f2;if(!_0x4ea479||_0x4ea479[_0xfe6173(0x17a)]()['length']===0x0)throw new Error(_0xfe6173(0x16d));const _0x1ac546=globToLike(_0x4ea479),_0x20b37a=_0x1ac546['replace'](/'/g,'\x27\x27');return'\x27'+_0x20b37a+'\x27';}export function matchGlobPattern(_0x3aa2e7,_0x3ebe31){const _0x43342b=a232_0x24f2,_0x1304c8=_0x3ebe31[_0x43342b(0x184)](/[.+^${}()|[\]\\]/g,_0x43342b(0x17e))[_0x43342b(0x184)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x53fe1a=new RegExp('^'+_0x1304c8+'$');return _0x53fe1a[_0x43342b(0x180)](_0x3aa2e7);}export function getSanitizedUsername(){const _0x6bbd0d=a232_0x24f2,_0x4a8a26=process.env.USER||process.env.USERNAME||_0x6bbd0d(0x17d);return _0x4a8a26[_0x6bbd0d(0x184)](/[^a-zA-Z0-9]/g,'')[_0x6bbd0d(0x172)]();}export function generateRandomHex(){const _0x142b6c=a232_0x24f2,_0x38c068=Math[_0x142b6c(0x16e)](Math['random']()*0xfffff);return _0x38c068[_0x142b6c(0x183)](0x10)[_0x142b6c(0x181)](0x5,'0');}function a232_0x24f2(_0x5d3621,_0x52c6a3){_0x5d3621=_0x5d3621-0x16c;const _0x3ad55f=a232_0x3ad5();let _0x24f21c=_0x3ad55f[_0x5d3621];return _0x24f21c;}export function sanitizeFileName(_0x3ba581){const _0x4312cc=a232_0x24f2;return _0x3ba581[_0x4312cc(0x172)]()[_0x4312cc(0x184)](/[/\\:*?"<>|]/g,'-')[_0x4312cc(0x184)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x4312cc(0x184)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x490884,_0x1f3ef1){const _0x8c4881=a233_0x3f1d,_0x1b911e=_0x490884();while(!![]){try{const _0x42d997=parseInt(_0x8c4881(0x179))/0x1*(parseInt(_0x8c4881(0x182))/0x2)+parseInt(_0x8c4881(0x17c))/0x3*(parseInt(_0x8c4881(0x190))/0x4)+-parseInt(_0x8c4881(0x18d))/0x5*(parseInt(_0x8c4881(0x181))/0x6)+-parseInt(_0x8c4881(0x191))/0x7*(parseInt(_0x8c4881(0x189))/0x8)+-parseInt(_0x8c4881(0x17a))/0x9+-parseInt(_0x8c4881(0x180))/0xa+parseInt(_0x8c4881(0x192))/0xb;if(_0x42d997===_0x1f3ef1)break;else _0x1b911e['push'](_0x1b911e['shift']());}catch(_0x97b85f){_0x1b911e['push'](_0x1b911e['shift']());}}}(a233_0x1577,0x36934));function hasWildcard(_0x9fa599){const _0x4b5e86=a233_0x3f1d;return _0x9fa599[_0x4b5e86(0x17b)]('*')||_0x9fa599[_0x4b5e86(0x17b)]('?');}export function parseTableReference(_0x4e70f7){const _0x4a8878=a233_0x3f1d;if(!_0x4e70f7||_0x4e70f7[_0x4a8878(0x188)]()[_0x4a8878(0x18c)]===0x0)throw new Error(_0x4a8878(0x18a));const _0x1a886b=_0x4e70f7[_0x4a8878(0x188)](),_0x41ccc7={'original':_0x1a886b},_0x312bac=_0x1a886b[_0x4a8878(0x18b)]('.');if(_0x312bac['length']===0x1){const _0x11b175=_0x312bac[0x0];if(!_0x11b175)throw new Error(_0x4a8878(0x17d));_0x41ccc7[_0x4a8878(0x18e)]=_0x11b175;}else{if(_0x312bac[_0x4a8878(0x18c)]===0x2){const [_0x341a8b,_0x46cc91]=_0x312bac;if(!_0x341a8b)throw new Error(_0x4a8878(0x186));if(!_0x46cc91)throw new Error(_0x4a8878(0x17f));_0x41ccc7[_0x4a8878(0x193)]=_0x341a8b,_0x41ccc7[_0x4a8878(0x18e)]=_0x46cc91;}else{if(_0x312bac['length']===0x3){const [_0x2d3159,_0x256a5f,_0x1dbe5f]=_0x312bac;if(!_0x2d3159||!_0x256a5f||!_0x1dbe5f)throw new Error(_0x4a8878(0x187));_0x41ccc7[_0x4a8878(0x17e)]=_0x2d3159,_0x41ccc7[_0x4a8878(0x193)]=_0x256a5f,_0x41ccc7[_0x4a8878(0x18e)]=_0x1dbe5f;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x41ccc7;}function a233_0x3f1d(_0x339c28,_0x12e086){_0x339c28=_0x339c28-0x179;const _0x157770=a233_0x1577();let _0x3f1d1c=_0x157770[_0x339c28];return _0x3f1d1c;}export function formatTableReference(_0x536d50){const _0x3a9a0b=a233_0x3f1d,_0x1c9384=[];return _0x536d50[_0x3a9a0b(0x17e)]&&_0x1c9384['push'](_0x536d50['catalog']),_0x536d50[_0x3a9a0b(0x193)]&&_0x1c9384[_0x3a9a0b(0x18f)](_0x536d50[_0x3a9a0b(0x193)]),_0x536d50[_0x3a9a0b(0x18e)]&&_0x1c9384[_0x3a9a0b(0x18f)](_0x536d50[_0x3a9a0b(0x18e)]),_0x1c9384['join']('.');}function a233_0x1577(){const _0x4585ec=['catalog','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','3262080WFlvuh','245652VHIvGk','4oIIBci','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','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','trim','88JhrXJz','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','split','length','10YitJFT','table','push','4RjbKiO','42707aUKnRC','7271099IoSQFQ','database','103903IavfjO','2196945OmXkhu','includes','222099aVnZWu','Pattern\x20cannot\x20be\x20just\x20a\x20dot'];a233_0x1577=function(){return _0x4585ec;};return a233_0x1577();}export function validateTableListReference(_0x370ee2){return undefined;}export function validateTableDescribeReference(_0x54e12c){const _0x1f2125=a233_0x3f1d;if(!_0x54e12c[_0x1f2125(0x18e)])return _0x1f2125(0x183);if(_0x54e12c['database']&&hasWildcard(_0x54e12c[_0x1f2125(0x193)]))return _0x1f2125(0x185);if(hasWildcard(_0x54e12c['table']))return _0x1f2125(0x184);return undefined;}
1
+ function a233_0x467a(_0x11bd91,_0xa2bfb9){_0x11bd91=_0x11bd91-0x1e0;const _0xda38b0=a233_0xda38();let _0x467a53=_0xda38b0[_0x11bd91];return _0x467a53;}(function(_0x53cde7,_0x1714b4){const _0x5f1e9e=a233_0x467a,_0x4f0928=_0x53cde7();while(!![]){try{const _0x1e3499=parseInt(_0x5f1e9e(0x1e9))/0x1*(-parseInt(_0x5f1e9e(0x1e8))/0x2)+-parseInt(_0x5f1e9e(0x1ee))/0x3*(parseInt(_0x5f1e9e(0x1e0))/0x4)+-parseInt(_0x5f1e9e(0x1e2))/0x5+-parseInt(_0x5f1e9e(0x1f0))/0x6+parseInt(_0x5f1e9e(0x1f4))/0x7+-parseInt(_0x5f1e9e(0x1f7))/0x8*(parseInt(_0x5f1e9e(0x1f1))/0x9)+parseInt(_0x5f1e9e(0x1e5))/0xa;if(_0x1e3499===_0x1714b4)break;else _0x4f0928['push'](_0x4f0928['shift']());}catch(_0x56b00b){_0x4f0928['push'](_0x4f0928['shift']());}}}(a233_0xda38,0xd9365));function hasWildcard(_0x541f34){const _0x36ee78=a233_0x467a;return _0x541f34[_0x36ee78(0x1e6)]('*')||_0x541f34[_0x36ee78(0x1e6)]('?');}export function parseTableReference(_0x34bbd8){const _0x79f41a=a233_0x467a;if(!_0x34bbd8||_0x34bbd8[_0x79f41a(0x1f5)]()[_0x79f41a(0x1f6)]===0x0)throw new Error(_0x79f41a(0x1e3));const _0x5cc4c7=_0x34bbd8['trim'](),_0x118e16={'original':_0x5cc4c7},_0xe55f0c=_0x5cc4c7[_0x79f41a(0x1f3)]('.');if(_0xe55f0c['length']===0x1){const _0x24ec82=_0xe55f0c[0x0];if(!_0x24ec82)throw new Error(_0x79f41a(0x1f2));_0x118e16['table']=_0x24ec82;}else{if(_0xe55f0c['length']===0x2){const [_0x3b4a07,_0xfbaed5]=_0xe55f0c;if(!_0x3b4a07)throw new Error(_0x79f41a(0x1e1));if(!_0xfbaed5)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x118e16[_0x79f41a(0x1ec)]=_0x3b4a07,_0x118e16[_0x79f41a(0x1e7)]=_0xfbaed5;}else{if(_0xe55f0c[_0x79f41a(0x1f6)]===0x3){const [_0x2cf15b,_0x186fe6,_0x78e649]=_0xe55f0c;if(!_0x2cf15b||!_0x186fe6||!_0x78e649)throw new Error(_0x79f41a(0x1e4));_0x118e16[_0x79f41a(0x1ef)]=_0x2cf15b,_0x118e16[_0x79f41a(0x1ec)]=_0x186fe6,_0x118e16[_0x79f41a(0x1e7)]=_0x78e649;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x118e16;}export function formatTableReference(_0x446b3e){const _0x192593=a233_0x467a,_0x3e54ae=[];return _0x446b3e[_0x192593(0x1ef)]&&_0x3e54ae['push'](_0x446b3e[_0x192593(0x1ef)]),_0x446b3e[_0x192593(0x1ec)]&&_0x3e54ae[_0x192593(0x1eb)](_0x446b3e[_0x192593(0x1ec)]),_0x446b3e[_0x192593(0x1e7)]&&_0x3e54ae[_0x192593(0x1eb)](_0x446b3e[_0x192593(0x1e7)]),_0x3e54ae[_0x192593(0x1ea)]('.');}export function validateTableListReference(_0x581309){return undefined;}function a233_0xda38(){const _0x3a975b=['push','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','24303ibtPPj','catalog','2086968Xzuqsl','9TKfQPV','Pattern\x20cannot\x20be\x20just\x20a\x20dot','split','7082530LcIWZd','trim','length','7817608sULqVw','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','460mpQvGC','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','3401235Zjuxsx','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','39064660sQbMKh','includes','table','1444wKhJVr','1512ljPZRH','join'];a233_0xda38=function(){return _0x3a975b;};return a233_0xda38();}export function validateTableDescribeReference(_0x1ad268){const _0x50549a=a233_0x467a;if(!_0x1ad268[_0x50549a(0x1e7)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x1ad268['database']&&hasWildcard(_0x1ad268['database']))return _0x50549a(0x1f8);if(hasWildcard(_0x1ad268['table']))return _0x50549a(0x1ed);return undefined;}