@treasuredata/tdx 2026.4.19 → 2026.4.21

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 +47 -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.d.ts +1 -0
  35. package/dist/commands/journey-command.d.ts.map +1 -1
  36. package/dist/commands/journey-command.js +1 -1
  37. package/dist/commands/journey-command.js.map +1 -1
  38. package/dist/commands/journey-validate-command.js +1 -1
  39. package/dist/commands/llm-command.js +1 -1
  40. package/dist/commands/mcp-command.js +1 -1
  41. package/dist/commands/parent-segment-command.js +1 -1
  42. package/dist/commands/policy-command.js +1 -1
  43. package/dist/commands/profile-command.js +1 -1
  44. package/dist/commands/profiles-command.js +1 -1
  45. package/dist/commands/query-command.js +1 -1
  46. package/dist/commands/schedule-command.js +1 -1
  47. package/dist/commands/segment-command.js +1 -1
  48. package/dist/commands/segment-create-command.js +1 -1
  49. package/dist/commands/segment-fields-command.js +1 -1
  50. package/dist/commands/segment-pull-command.js +1 -1
  51. package/dist/commands/segment-push-command.js +1 -1
  52. package/dist/commands/segment-update-command.js +1 -1
  53. package/dist/commands/segment-use-command.js +1 -1
  54. package/dist/commands/segment-validate-command.js +1 -1
  55. package/dist/commands/segments.js +1 -1
  56. package/dist/commands/show.js +1 -1
  57. package/dist/commands/status-command.js +1 -1
  58. package/dist/commands/tables.js +1 -1
  59. package/dist/commands/unset-command.js +1 -1
  60. package/dist/commands/upgrade-command.js +1 -1
  61. package/dist/commands/use-command.js +1 -1
  62. package/dist/commands/user-command.js +1 -1
  63. package/dist/commands/work-command.js +1 -1
  64. package/dist/commands/workflow-command.d.ts +1 -0
  65. package/dist/commands/workflow-command.d.ts.map +1 -1
  66. package/dist/commands/workflow-command.js +1 -1
  67. package/dist/commands/workflow-command.js.map +1 -1
  68. package/dist/core/auth.js +1 -1
  69. package/dist/core/command-output.js +1 -1
  70. package/dist/core/config.js +1 -1
  71. package/dist/core/connection-cache.js +1 -1
  72. package/dist/core/constants.js +1 -1
  73. package/dist/core/credential-cache.js +1 -1
  74. package/dist/core/global-context.js +1 -1
  75. package/dist/core/keychain.js +1 -1
  76. package/dist/core/oauth-keychain.js +1 -1
  77. package/dist/core/oauth.js +1 -1
  78. package/dist/core/profile.js +1 -1
  79. package/dist/core/project-config.js +1 -1
  80. package/dist/core/session.js +1 -1
  81. package/dist/core/user-cache.js +1 -1
  82. package/dist/core/version.js +1 -1
  83. package/dist/index.js +1 -1
  84. package/dist/mcp/server.js +1 -1
  85. package/dist/mcp/tools/index.js +1 -1
  86. package/dist/mcp/tools/tdx-run.js +1 -1
  87. package/dist/mcp/tools/tdx-search.js +1 -1
  88. package/dist/mcp/tools/work-create-item.js +1 -1
  89. package/dist/mcp/utils.js +1 -1
  90. package/dist/proxy/claude-usage-tracker.js +1 -1
  91. package/dist/proxy/passthrough-server.js +1 -1
  92. package/dist/proxy/sse-usage-parser.js +1 -1
  93. package/dist/sdk/agent/agent-config.js +1 -1
  94. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  95. package/dist/sdk/agent/agent-yaml.js +1 -1
  96. package/dist/sdk/agent/test/evaluator.js +1 -1
  97. package/dist/sdk/agent/test/executor.js +1 -1
  98. package/dist/sdk/agent/test/index.js +1 -1
  99. package/dist/sdk/agent/test/output.js +1 -1
  100. package/dist/sdk/agent/test/parser.js +1 -1
  101. package/dist/sdk/agent/tool-target-registry.js +1 -1
  102. package/dist/sdk/api.js +1 -1
  103. package/dist/sdk/cas/cas-api-client.js +1 -1
  104. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  105. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  106. package/dist/sdk/cas/index.js +1 -1
  107. package/dist/sdk/cas/pull-workflow.js +1 -1
  108. package/dist/sdk/cas/push-workflow.js +1 -1
  109. package/dist/sdk/client/cdp-api-client.js +1 -1
  110. package/dist/sdk/client/delivery-api-client.js +1 -1
  111. package/dist/sdk/client/endpoints.js +1 -1
  112. package/dist/sdk/client/engage-api-client.d.ts +50 -1
  113. package/dist/sdk/client/engage-api-client.d.ts.map +1 -1
  114. package/dist/sdk/client/engage-api-client.js +1 -1
  115. package/dist/sdk/client/engage-api-client.js.map +1 -1
  116. package/dist/sdk/client/http-client.js +1 -1
  117. package/dist/sdk/client/llm-api-client.js +1 -1
  118. package/dist/sdk/client/oauth-refresh.js +1 -1
  119. package/dist/sdk/client/rate-limiter.js +1 -1
  120. package/dist/sdk/client/td-api-client.js +1 -1
  121. package/dist/sdk/client/trino-api-client.js +1 -1
  122. package/dist/sdk/client/workflow-client.d.ts +7 -0
  123. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  124. package/dist/sdk/client/workflow-client.js +1 -1
  125. package/dist/sdk/client/workflow-client.js.map +1 -1
  126. package/dist/sdk/connection-validator.js +1 -1
  127. package/dist/sdk/connection.js +1 -1
  128. package/dist/sdk/delivery.js +1 -1
  129. package/dist/sdk/engage/campaign-pull.js +1 -1
  130. package/dist/sdk/engage/campaign-push.js +1 -1
  131. package/dist/sdk/engage/campaign-validator.js +1 -1
  132. package/dist/sdk/engage/campaign-yaml.js +1 -1
  133. package/dist/sdk/engage/template-pull.js +1 -1
  134. package/dist/sdk/engage/template-push.js +1 -1
  135. package/dist/sdk/engage/template-validator.js +1 -1
  136. package/dist/sdk/engage/template-yaml.js +1 -1
  137. package/dist/sdk/engage/types/campaign-def.js +1 -1
  138. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  139. package/dist/sdk/engage/types/template-schema.js +1 -1
  140. package/dist/sdk/engage.d.ts +35 -1
  141. package/dist/sdk/engage.d.ts.map +1 -1
  142. package/dist/sdk/engage.js +1 -1
  143. package/dist/sdk/engage.js.map +1 -1
  144. package/dist/sdk/errors.js +1 -1
  145. package/dist/sdk/index.js +1 -1
  146. package/dist/sdk/io/index.js +1 -1
  147. package/dist/sdk/io/node-filesystem.js +1 -1
  148. package/dist/sdk/job.js +1 -1
  149. package/dist/sdk/journey.js +1 -1
  150. package/dist/sdk/llm/chat-cache.js +1 -1
  151. package/dist/sdk/llm/index.js +1 -1
  152. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  153. package/dist/sdk/llm/model-factors.js +1 -1
  154. package/dist/sdk/personalization.js +1 -1
  155. package/dist/sdk/policy.js +1 -1
  156. package/dist/sdk/query/index.js +1 -1
  157. package/dist/sdk/query/sql-parser.js +1 -1
  158. package/dist/sdk/realtime.js +1 -1
  159. package/dist/sdk/schedule.js +1 -1
  160. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  161. package/dist/sdk/segment/fields-display.js +1 -1
  162. package/dist/sdk/segment/file-discovery.js +1 -1
  163. package/dist/sdk/segment/journey-utils.js +1 -1
  164. package/dist/sdk/segment/journey-validator.js +1 -1
  165. package/dist/sdk/segment/journey-yaml.js +1 -1
  166. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  167. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  168. package/dist/sdk/segment/pull-workflow.js +1 -1
  169. package/dist/sdk/segment/push-recovery.js +1 -1
  170. package/dist/sdk/segment/push-workflow.js +1 -1
  171. package/dist/sdk/segment/resolution-context.js +1 -1
  172. package/dist/sdk/segment/segment-path-parser.js +1 -1
  173. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  174. package/dist/sdk/segment/segment-validator.js +1 -1
  175. package/dist/sdk/segment/target-resolution.js +1 -1
  176. package/dist/sdk/segment/tdx-config.js +1 -1
  177. package/dist/sdk/segment/types/activation-schema.js +1 -1
  178. package/dist/sdk/segment/types/journey-def.js +1 -1
  179. package/dist/sdk/segment/types/journey-schema.js +1 -1
  180. package/dist/sdk/segment/types/segment-def.js +1 -1
  181. package/dist/sdk/segment/types/segment-schema.js +1 -1
  182. package/dist/sdk/segment/validate-files.js +1 -1
  183. package/dist/sdk/segment/yaml-validator.js +1 -1
  184. package/dist/sdk/segment.js +1 -1
  185. package/dist/sdk/types/engage.d.ts +53 -0
  186. package/dist/sdk/types/engage.d.ts.map +1 -1
  187. package/dist/sdk/types/index.d.ts +1 -1
  188. package/dist/sdk/types/index.d.ts.map +1 -1
  189. package/dist/sdk/types/index.js +1 -1
  190. package/dist/sdk/types/index.js.map +1 -1
  191. package/dist/sdk/types/progress.js +1 -1
  192. package/dist/sdk/types/workspace.js +1 -1
  193. package/dist/sdk/user.js +1 -1
  194. package/dist/sdk/util/format-detector.js +1 -1
  195. package/dist/sdk/util/formatters.js +1 -1
  196. package/dist/sdk/util/index.js +1 -1
  197. package/dist/sdk/util/paginate.js +1 -1
  198. package/dist/sdk/util/tree-formatter.js +1 -1
  199. package/dist/sdk/workflow/archive-validation.js +1 -1
  200. package/dist/sdk/workflow/clone-workflow.js +1 -1
  201. package/dist/sdk/workflow/index.d.ts +14 -1
  202. package/dist/sdk/workflow/index.d.ts.map +1 -1
  203. package/dist/sdk/workflow/index.js +1 -1
  204. package/dist/sdk/workflow/index.js.map +1 -1
  205. package/dist/sdk/workflow/pull-workflow.js +1 -1
  206. package/dist/sdk/workflow/push-workflow.js +1 -1
  207. package/dist/sdk/workflow/task-graph.d.ts +65 -0
  208. package/dist/sdk/workflow/task-graph.d.ts.map +1 -0
  209. package/dist/sdk/workflow/task-graph.js +1 -0
  210. package/dist/sdk/workflow/task-graph.js.map +1 -0
  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 +1 -1
@@ -1 +1 @@
1
- const a207_0x5442b3=a207_0x26b1;(function(_0x300e43,_0x4195f3){const _0x2715e2=a207_0x26b1,_0x429422=_0x300e43();while(!![]){try{const _0x573638=parseInt(_0x2715e2(0x85))/0x1*(parseInt(_0x2715e2(0x8c))/0x2)+-parseInt(_0x2715e2(0x69))/0x3+-parseInt(_0x2715e2(0x7e))/0x4*(parseInt(_0x2715e2(0x93))/0x5)+-parseInt(_0x2715e2(0x7b))/0x6+-parseInt(_0x2715e2(0x6c))/0x7+parseInt(_0x2715e2(0x65))/0x8*(parseInt(_0x2715e2(0x76))/0x9)+parseInt(_0x2715e2(0x67))/0xa*(parseInt(_0x2715e2(0x71))/0xb);if(_0x573638===_0x4195f3)break;else _0x429422['push'](_0x429422['shift']());}catch(_0x12d959){_0x429422['push'](_0x429422['shift']());}}}(a207_0x30f6,0xbae69));function a207_0x26b1(_0x30bfa2,_0x27af22){_0x30bfa2=_0x30bfa2-0x65;const _0x30f6a9=a207_0x30f6();let _0x26b1ce=_0x30f6a9[_0x30bfa2];return _0x26b1ce;}function a207_0x30f6(){const _0x90e867=['entries','Service\x20Unavailable','text/plain','errorResponse','4008mPqzSW','rfc9457','10SKlOxb','stack','4528617iyaWOy','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','getRequests','10659313yXBoUl','map','description','simple','createFetch','26522771YTvnpZ','split','reset','unnamed\x20stub','method','8874cLFrEQ','Bad\x20Gateway','textResponse','url','headers','2455974ZzJGMV','REST','fail','43780ZrOJpb','Conflict','No\x20Content','Registered\x20stubs:\x0a','Unmatched\x20stub','toLowerCase','jsonResponse','656485tFmQlw','\x20\x20(none)','matched','withHost','Bad\x20Request','register','Internal\x20Server\x20Error','4DkNrNc','requests','Not\x20Found','matcher','searchParams','td-api','GET','5fDlLuT','getStatusText','string','filter','withBody','join','get','pathname','No\x20stub\x20matched\x20request:\x20','networkError','fetchMock','some','body','toUpperCase','\x20registered\x20at:\x0a','push','host','stubs','stringify','Unknown','slice','parseRequest','test','forEach','Request\x20body:\x20','Too\x20Many\x20Requests','Unprocessable\x20Entity','Created','every','responder','length','application/json'];a207_0x30f6=function(){return _0x90e867;};return a207_0x30f6();}import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];[a207_0x5442b3(0x8d)]=[];[a207_0x5442b3(0x9d)]=null;[a207_0x5442b3(0x7c)](_0x38d147,_0x94c218){return _0x56c8e2=>{const _0x3643e5=a207_0x26b1;if(_0x56c8e2[_0x3643e5(0x75)][_0x3643e5(0xa0)]()!==_0x38d147[_0x3643e5(0xa0)]())return![];const _0x26db4b=new URL(_0x56c8e2[_0x3643e5(0x79)]);if(typeof _0x94c218===_0x3643e5(0x95))return _0x26db4b[_0x3643e5(0x9a)]===_0x94c218||_0x26db4b[_0x3643e5(0x9a)]['includes'](_0x94c218);return _0x94c218[_0x3643e5(0xa9)](_0x26db4b[_0x3643e5(0x9a)]);};}['withQuery'](_0x3d0cb3,_0xe0aaed){return _0x329d0b=>{const _0x873ded=a207_0x26b1;if(!_0x3d0cb3(_0x329d0b))return![];const _0x30fd85=new URL(_0x329d0b['url']);return Object[_0x873ded(0xb3)](_0xe0aaed)[_0x873ded(0xaf)](([_0x4e7f3c,_0x16072c])=>_0x30fd85[_0x873ded(0x90)][_0x873ded(0x99)](_0x4e7f3c)===_0x16072c);};}[a207_0x5442b3(0x97)](_0x2c506f,_0x513648){return _0x668323=>{const _0x2d869b=a207_0x26b1;if(!_0x2c506f(_0x668323))return![];if(typeof _0x513648==='function')return _0x513648(_0x668323[_0x2d869b(0x9f)]);return JSON[_0x2d869b(0xa5)](_0x668323[_0x2d869b(0x9f)])===JSON[_0x2d869b(0xa5)](_0x513648);};}[a207_0x5442b3(0x88)](_0x163bec,_0x4be866){return _0x35e4ef=>{const _0x16217c=a207_0x26b1;if(!_0x163bec(_0x35e4ef))return![];const _0x1ea902=new URL(_0x35e4ef['url']);return _0x1ea902[_0x16217c(0xa3)]===_0x4be866;};}[a207_0x5442b3(0x8a)](_0x1bd1e4,_0x28a812,_0x371e52){const _0x300cb2=a207_0x5442b3;this[_0x300cb2(0xa4)][_0x300cb2(0xa2)]({'matcher':_0x1bd1e4,'responder':_0x28a812,'matched':![],'matchCount':0x0,'stack':new Error()[_0x300cb2(0x68)]??'','description':_0x371e52?.['description']});}['registerWithInspector'](_0x566e39,_0x37b28a,_0xba3d50){const _0x5009f6=_0x478af2=>{const _0x589c31=a207_0x26b1;return _0xba3d50(_0x478af2[_0x589c31(0x9f)],_0x478af2),_0x37b28a(_0x478af2);};this['register'](_0x566e39,_0x5009f6);}static[a207_0x5442b3(0x84)](_0xba8ed2,_0x34478d=0xc8){return()=>new Response(JSON['stringify'](_0xba8ed2),{'status':_0x34478d,'headers':{'Content-Type':'application/json'}});}static[a207_0x5442b3(0xb6)](_0x2934fe,_0x360a08,_0x273986=a207_0x5442b3(0x6f)){return()=>{const _0x50910d=a207_0x26b1;let _0x121590;switch(_0x273986){case _0x50910d(0x91):_0x121590={'errors':{'error':_0x360a08,'message':_0x360a08,'severity':'error','status_code':_0x2934fe}};break;case _0x50910d(0x66):_0x121590={'type':'https://api.treasuredata.com/errors/'+_0x2934fe,'title':HTTPMockRegistry[_0x50910d(0x94)](_0x2934fe),'status':_0x2934fe,'detail':_0x360a08};break;default:_0x121590={'error':_0x360a08};}return new Response(JSON[_0x50910d(0xa5)](_0x121590),{'status':_0x2934fe,'headers':{'Content-Type':_0x50910d(0xb2)}});};}static['jsonResponseWithHeaders'](_0x4f230f,_0x387590,_0x432387=0xc8){const _0xd1c2f4=a207_0x5442b3;return()=>new Response(JSON[_0xd1c2f4(0xa5)](_0x4f230f),{'status':_0x432387,'headers':{'Content-Type':'application/json',..._0x387590}});}static[a207_0x5442b3(0x78)](_0x181aa6,_0xafa6fc=0xc8){const _0x3e0142=a207_0x5442b3;return()=>new Response(_0x181aa6,{'status':_0xafa6fc,'headers':{'Content-Type':_0x3e0142(0xb5)}});}static[a207_0x5442b3(0x9c)](_0x569b27){return()=>{throw new Error(_0x569b27);};}[a207_0x5442b3(0x70)](){const _0x275aef=a207_0x5442b3;return this[_0x275aef(0x9d)]=vi['fn']()['mockImplementation'](async(_0xfb86db,_0x1053b5)=>{const _0x10f3cf=_0x275aef,_0x5a1503=this['parseRequest'](_0xfb86db,_0x1053b5);this['requests'][_0x10f3cf(0xa2)](_0x5a1503);for(const _0x1206db of this['stubs']){if(_0x1206db[_0x10f3cf(0x8f)](_0x5a1503))return _0x1206db['matched']=!![],_0x1206db['matchCount']++,_0x1206db[_0x10f3cf(0xb0)](_0x5a1503);}const _0x307965=this['stubs'][_0x10f3cf(0x6d)]((_0x76c22,_0x2c19f8)=>'\x20\x20'+(_0x2c19f8+0x1)+'.\x20'+(_0x76c22[_0x10f3cf(0x6e)]??_0x10f3cf(0x74)))[_0x10f3cf(0x98)]('\x0a');throw new Error(_0x10f3cf(0x9b)+_0x5a1503[_0x10f3cf(0x75)]+'\x20'+_0x5a1503[_0x10f3cf(0x79)]+'\x0a'+(_0x10f3cf(0xab)+JSON['stringify'](_0x5a1503['body'])+'\x0a')+(_0x10f3cf(0x81)+(_0x307965||_0x10f3cf(0x86))));}),this[_0x275aef(0x9d)];}[a207_0x5442b3(0xa8)](_0x51b0ec,_0x3d3987){const _0x45dd92=a207_0x5442b3,_0xa73f4={};if(_0x3d3987?.[_0x45dd92(0x7a)]){if(_0x3d3987['headers']instanceof Headers)_0x3d3987[_0x45dd92(0x7a)][_0x45dd92(0xaa)]((_0x5522d4,_0x118a03)=>{const _0x315771=_0x45dd92;_0xa73f4[_0x118a03[_0x315771(0x83)]()]=_0x5522d4;});else{if(Array['isArray'](_0x3d3987[_0x45dd92(0x7a)]))for(const [_0xa99c5a,_0x3da0a4]of _0x3d3987[_0x45dd92(0x7a)]){_0xa73f4[_0xa99c5a['toLowerCase']()]=_0x3da0a4;}else for(const [_0x2aeb49,_0x3ce39d]of Object[_0x45dd92(0xb3)](_0x3d3987[_0x45dd92(0x7a)])){_0x3ce39d!==undefined&&(_0xa73f4[_0x2aeb49[_0x45dd92(0x83)]()]=_0x3ce39d);}}}let _0x202976;if(_0x3d3987?.['body'])try{_0x202976=JSON['parse'](_0x3d3987['body']);}catch{_0x202976=_0x3d3987[_0x45dd92(0x9f)];}return{'method':_0x3d3987?.['method']??_0x45dd92(0x92),'url':_0x51b0ec,'headers':_0xa73f4,'body':_0x202976};}['verify'](_0x1bc9d7){const _0x7da09b=a207_0x5442b3,_0x4d614b=this[_0x7da09b(0xa4)][_0x7da09b(0x96)](_0x1e941e=>!_0x1e941e[_0x7da09b(0x87)]);if(_0x4d614b[_0x7da09b(0xb1)]>0x0){const _0x524c6b=_0x4d614b['map'](_0x2184d5=>{const _0x1b25b5=_0x7da09b,_0x3a2b8c=_0x2184d5['description']?'\x20('+_0x2184d5[_0x1b25b5(0x6e)]+')':'',_0x34b1ed=_0x2184d5['stack'][_0x1b25b5(0x72)]('\x0a')[_0x1b25b5(0xa7)](0x2,0x5)[_0x1b25b5(0x98)]('\x0a');return _0x1b25b5(0x82)+_0x3a2b8c+_0x1b25b5(0xa1)+_0x34b1ed;});_0x1bc9d7[_0x7da09b(0x7d)](_0x4d614b['length']+_0x7da09b(0x6a)+_0x524c6b[_0x7da09b(0x98)]('\x0a\x0a'));}}[a207_0x5442b3(0x6b)](){return[...this['requests']];}['getLastRequest'](){const _0x15f573=a207_0x5442b3;return this[_0x15f573(0x8d)][this['requests']['length']-0x1];}['wasCalled'](_0x4955ee,_0x3a355c){const _0x379d38=a207_0x5442b3;return this['requests'][_0x379d38(0x9e)](_0x250b3c=>{const _0x2693af=_0x379d38;if(_0x250b3c[_0x2693af(0x75)]['toUpperCase']()!==_0x4955ee[_0x2693af(0xa0)]())return![];if(typeof _0x3a355c===_0x2693af(0x95))return _0x250b3c[_0x2693af(0x79)]['includes'](_0x3a355c);return _0x3a355c[_0x2693af(0xa9)](_0x250b3c[_0x2693af(0x79)]);});}['getMatchCount'](_0x50811e){const _0x1e1ff3=a207_0x5442b3;return this[_0x1e1ff3(0xa4)][_0x50811e]?.['matchCount']??0x0;}[a207_0x5442b3(0x73)](){const _0x1044f1=a207_0x5442b3;this[_0x1044f1(0xa4)]=[],this[_0x1044f1(0x8d)]=[],this[_0x1044f1(0x9d)]=null;}static[a207_0x5442b3(0x94)](_0x2ea6f1){const _0x2d7da1=a207_0x5442b3,_0x4e7206={0xc8:'OK',0xc9:_0x2d7da1(0xae),0xcc:_0x2d7da1(0x80),0x190:_0x2d7da1(0x89),0x191:'Unauthorized',0x193:'Forbidden',0x194:_0x2d7da1(0x8e),0x199:_0x2d7da1(0x7f),0x1a6:_0x2d7da1(0xad),0x1ad:_0x2d7da1(0xac),0x1f4:_0x2d7da1(0x8b),0x1f6:_0x2d7da1(0x77),0x1f7:_0x2d7da1(0xb4)};return _0x4e7206[_0x2ea6f1]??_0x2d7da1(0xa6);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ function a208_0x16ee(_0x1b3656,_0x470805){_0x1b3656=_0x1b3656-0x168;const _0x313c56=a208_0x313c();let _0x16ee4a=_0x313c56[_0x1b3656];return _0x16ee4a;}const a208_0x52ed3f=a208_0x16ee;(function(_0x401ca6,_0x18ebd6){const _0x27ca18=a208_0x16ee,_0x3c98fa=_0x401ca6();while(!![]){try{const _0x26ad5d=parseInt(_0x27ca18(0x198))/0x1*(parseInt(_0x27ca18(0x1a4))/0x2)+parseInt(_0x27ca18(0x1a6))/0x3+-parseInt(_0x27ca18(0x1b8))/0x4+-parseInt(_0x27ca18(0x177))/0x5+parseInt(_0x27ca18(0x16b))/0x6+parseInt(_0x27ca18(0x16e))/0x7*(-parseInt(_0x27ca18(0x1b7))/0x8)+parseInt(_0x27ca18(0x19d))/0x9;if(_0x26ad5d===_0x18ebd6)break;else _0x3c98fa['push'](_0x3c98fa['shift']());}catch(_0x5055e0){_0x3c98fa['push'](_0x3c98fa['shift']());}}}(a208_0x313c,0x72d10));function a208_0x313c(){const _0x35eb0=['3693912SlqhZn','Registered\x20stubs:\x0a','length','forEach','1729758LhUpve','map','method','7pefNxs','join','reset','stubs','networkError','\x20\x20(none)','slice','Created','matcher','2727005LgzGWQ','Service\x20Unavailable','Unprocessable\x20Entity','fail','Conflict','wasCalled','getStatusText','register','push','Not\x20Found','stringify','string','createFetch','Unmatched\x20stub','errorResponse','https://api.treasuredata.com/errors/','Unknown','simple','host','isArray','includes','toUpperCase','Request\x20body:\x20','withHost','registerWithInspector','pathname','GET','rfc9457','stack','description','verify','application/json','No\x20stub\x20matched\x20request:\x20','28ZVnmXq','toLowerCase','get','No\x20Content','Unauthorized','10749609zgbSyy','test','every','filter','searchParams','parseRequest','Forbidden','52642bSGBbC','some','1548216RHSdgn','headers','matched','Too\x20Many\x20Requests','td-api','getLastRequest','body','error','entries','getMatchCount','url','split','fetchMock','withBody','textResponse','requests','REST','6372696vmMsEu'];a208_0x313c=function(){return _0x35eb0;};return a208_0x313c();}import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];['requests']=[];['fetchMock']=null;[a208_0x52ed3f(0x1b6)](_0xd0f1a,_0x5108b9){return _0x1e8792=>{const _0x53afa=a208_0x16ee;if(_0x1e8792[_0x53afa(0x16d)][_0x53afa(0x18c)]()!==_0xd0f1a[_0x53afa(0x18c)]())return![];const _0x2433e4=new URL(_0x1e8792['url']);if(typeof _0x5108b9===_0x53afa(0x182))return _0x2433e4[_0x53afa(0x190)]===_0x5108b9||_0x2433e4[_0x53afa(0x190)][_0x53afa(0x18b)](_0x5108b9);return _0x5108b9[_0x53afa(0x19e)](_0x2433e4['pathname']);};}['withQuery'](_0x14ad81,_0x1689af){return _0x51f868=>{const _0x35a3fe=a208_0x16ee;if(!_0x14ad81(_0x51f868))return![];const _0x3ec16c=new URL(_0x51f868[_0x35a3fe(0x1b0)]);return Object[_0x35a3fe(0x1ae)](_0x1689af)[_0x35a3fe(0x19f)](([_0x55b8de,_0x46fe41])=>_0x3ec16c[_0x35a3fe(0x1a1)][_0x35a3fe(0x19a)](_0x55b8de)===_0x46fe41);};}[a208_0x52ed3f(0x1b3)](_0x18e8cb,_0x299717){return _0x58faba=>{const _0x355fa8=a208_0x16ee;if(!_0x18e8cb(_0x58faba))return![];if(typeof _0x299717==='function')return _0x299717(_0x58faba[_0x355fa8(0x1ac)]);return JSON[_0x355fa8(0x181)](_0x58faba['body'])===JSON[_0x355fa8(0x181)](_0x299717);};}[a208_0x52ed3f(0x18e)](_0xe41adf,_0x45cd75){return _0x2addf7=>{const _0x318760=a208_0x16ee;if(!_0xe41adf(_0x2addf7))return![];const _0x1a85a9=new URL(_0x2addf7[_0x318760(0x1b0)]);return _0x1a85a9[_0x318760(0x189)]===_0x45cd75;};}[a208_0x52ed3f(0x17e)](_0x51459e,_0x3bb63c,_0x400c19){const _0x4382dc=a208_0x52ed3f;this[_0x4382dc(0x171)][_0x4382dc(0x17f)]({'matcher':_0x51459e,'responder':_0x3bb63c,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x400c19?.[_0x4382dc(0x194)]});}[a208_0x52ed3f(0x18f)](_0x161df9,_0x91baab,_0x16cd5f){const _0x1cd6a6=_0x4752e9=>{const _0x303abd=a208_0x16ee;return _0x16cd5f(_0x4752e9[_0x303abd(0x1ac)],_0x4752e9),_0x91baab(_0x4752e9);};this['register'](_0x161df9,_0x1cd6a6);}static['jsonResponse'](_0x2ff236,_0x989885=0xc8){const _0x9ca5ca=a208_0x52ed3f;return()=>new Response(JSON['stringify'](_0x2ff236),{'status':_0x989885,'headers':{'Content-Type':_0x9ca5ca(0x196)}});}static[a208_0x52ed3f(0x185)](_0x38cbe0,_0x19c7e5,_0x6ae012=a208_0x52ed3f(0x188)){return()=>{const _0x197a0b=a208_0x16ee;let _0x10a21d;switch(_0x6ae012){case _0x197a0b(0x1aa):_0x10a21d={'errors':{'error':_0x19c7e5,'message':_0x19c7e5,'severity':_0x197a0b(0x1ad),'status_code':_0x38cbe0}};break;case _0x197a0b(0x192):_0x10a21d={'type':_0x197a0b(0x186)+_0x38cbe0,'title':HTTPMockRegistry[_0x197a0b(0x17d)](_0x38cbe0),'status':_0x38cbe0,'detail':_0x19c7e5};break;default:_0x10a21d={'error':_0x19c7e5};}return new Response(JSON[_0x197a0b(0x181)](_0x10a21d),{'status':_0x38cbe0,'headers':{'Content-Type':_0x197a0b(0x196)}});};}static['jsonResponseWithHeaders'](_0x3c1e87,_0x584ece,_0x981244=0xc8){const _0x52e917=a208_0x52ed3f;return()=>new Response(JSON[_0x52e917(0x181)](_0x3c1e87),{'status':_0x981244,'headers':{'Content-Type':_0x52e917(0x196),..._0x584ece}});}static[a208_0x52ed3f(0x1b4)](_0x533d1c,_0x485b63=0xc8){return()=>new Response(_0x533d1c,{'status':_0x485b63,'headers':{'Content-Type':'text/plain'}});}static[a208_0x52ed3f(0x172)](_0x13b4d3){return()=>{throw new Error(_0x13b4d3);};}[a208_0x52ed3f(0x183)](){const _0x5d4b4b=a208_0x52ed3f;return this[_0x5d4b4b(0x1b2)]=vi['fn']()['mockImplementation'](async(_0x2adb83,_0x2ccf38)=>{const _0x19854a=_0x5d4b4b,_0xb18ad9=this[_0x19854a(0x1a2)](_0x2adb83,_0x2ccf38);this[_0x19854a(0x1b5)][_0x19854a(0x17f)](_0xb18ad9);for(const _0x239c34 of this[_0x19854a(0x171)]){if(_0x239c34[_0x19854a(0x176)](_0xb18ad9))return _0x239c34[_0x19854a(0x1a8)]=!![],_0x239c34['matchCount']++,_0x239c34['responder'](_0xb18ad9);}const _0x4de59d=this[_0x19854a(0x171)][_0x19854a(0x16c)]((_0x973b35,_0x48c7d4)=>'\x20\x20'+(_0x48c7d4+0x1)+'.\x20'+(_0x973b35['description']??'unnamed\x20stub'))['join']('\x0a');throw new Error(_0x19854a(0x197)+_0xb18ad9[_0x19854a(0x16d)]+'\x20'+_0xb18ad9[_0x19854a(0x1b0)]+'\x0a'+(_0x19854a(0x18d)+JSON[_0x19854a(0x181)](_0xb18ad9[_0x19854a(0x1ac)])+'\x0a')+(_0x19854a(0x168)+(_0x4de59d||_0x19854a(0x173))));}),this[_0x5d4b4b(0x1b2)];}[a208_0x52ed3f(0x1a2)](_0x13b2e5,_0x518cc7){const _0x1f747a=a208_0x52ed3f,_0x5d267d={};if(_0x518cc7?.[_0x1f747a(0x1a7)]){if(_0x518cc7['headers']instanceof Headers)_0x518cc7[_0x1f747a(0x1a7)][_0x1f747a(0x16a)]((_0x497cb2,_0x382652)=>{const _0x58443a=_0x1f747a;_0x5d267d[_0x382652[_0x58443a(0x199)]()]=_0x497cb2;});else{if(Array[_0x1f747a(0x18a)](_0x518cc7[_0x1f747a(0x1a7)]))for(const [_0x3724f2,_0xf1a76e]of _0x518cc7[_0x1f747a(0x1a7)]){_0x5d267d[_0x3724f2['toLowerCase']()]=_0xf1a76e;}else for(const [_0x60bbc5,_0x2b7757]of Object['entries'](_0x518cc7[_0x1f747a(0x1a7)])){_0x2b7757!==undefined&&(_0x5d267d[_0x60bbc5[_0x1f747a(0x199)]()]=_0x2b7757);}}}let _0x41ef41;if(_0x518cc7?.[_0x1f747a(0x1ac)])try{_0x41ef41=JSON['parse'](_0x518cc7['body']);}catch{_0x41ef41=_0x518cc7[_0x1f747a(0x1ac)];}return{'method':_0x518cc7?.[_0x1f747a(0x16d)]??_0x1f747a(0x191),'url':_0x13b2e5,'headers':_0x5d267d,'body':_0x41ef41};}[a208_0x52ed3f(0x195)](_0x2ee96f){const _0x36cb12=a208_0x52ed3f,_0x4c953f=this[_0x36cb12(0x171)][_0x36cb12(0x1a0)](_0x37c7cd=>!_0x37c7cd[_0x36cb12(0x1a8)]);if(_0x4c953f[_0x36cb12(0x169)]>0x0){const _0x92409f=_0x4c953f[_0x36cb12(0x16c)](_0x55de00=>{const _0x43d936=_0x36cb12,_0x190dd4=_0x55de00[_0x43d936(0x194)]?'\x20('+_0x55de00[_0x43d936(0x194)]+')':'',_0x3dc0d1=_0x55de00[_0x43d936(0x193)][_0x43d936(0x1b1)]('\x0a')[_0x43d936(0x174)](0x2,0x5)[_0x43d936(0x16f)]('\x0a');return _0x43d936(0x184)+_0x190dd4+'\x20registered\x20at:\x0a'+_0x3dc0d1;});_0x2ee96f[_0x36cb12(0x17a)](_0x4c953f['length']+'\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a'+_0x92409f['join']('\x0a\x0a'));}}['getRequests'](){const _0x42337c=a208_0x52ed3f;return[...this[_0x42337c(0x1b5)]];}[a208_0x52ed3f(0x1ab)](){const _0x56939a=a208_0x52ed3f;return this[_0x56939a(0x1b5)][this[_0x56939a(0x1b5)][_0x56939a(0x169)]-0x1];}[a208_0x52ed3f(0x17c)](_0x5e81cd,_0x4352cd){const _0x337ec2=a208_0x52ed3f;return this[_0x337ec2(0x1b5)][_0x337ec2(0x1a5)](_0x39b6d9=>{const _0x5440ff=_0x337ec2;if(_0x39b6d9[_0x5440ff(0x16d)][_0x5440ff(0x18c)]()!==_0x5e81cd[_0x5440ff(0x18c)]())return![];if(typeof _0x4352cd===_0x5440ff(0x182))return _0x39b6d9[_0x5440ff(0x1b0)][_0x5440ff(0x18b)](_0x4352cd);return _0x4352cd[_0x5440ff(0x19e)](_0x39b6d9[_0x5440ff(0x1b0)]);});}[a208_0x52ed3f(0x1af)](_0x4bdebb){const _0x2c48be=a208_0x52ed3f;return this[_0x2c48be(0x171)][_0x4bdebb]?.['matchCount']??0x0;}[a208_0x52ed3f(0x170)](){const _0x733a3b=a208_0x52ed3f;this['stubs']=[],this[_0x733a3b(0x1b5)]=[],this[_0x733a3b(0x1b2)]=null;}static['getStatusText'](_0xdd492d){const _0x24032=a208_0x52ed3f,_0x561415={0xc8:'OK',0xc9:_0x24032(0x175),0xcc:_0x24032(0x19b),0x190:'Bad\x20Request',0x191:_0x24032(0x19c),0x193:_0x24032(0x1a3),0x194:_0x24032(0x180),0x199:_0x24032(0x17b),0x1a6:_0x24032(0x179),0x1ad:_0x24032(0x1a9),0x1f4:'Internal\x20Server\x20Error',0x1f6:'Bad\x20Gateway',0x1f7:_0x24032(0x178)};return _0x561415[_0xdd492d]??_0x24032(0x187);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x5ccf19,_0x2feeee){var _0x2388a5=a208_0x552b,_0x4b61e4=_0x5ccf19();while(!![]){try{var _0x4a7599=parseInt(_0x2388a5(0xf1))/0x1+parseInt(_0x2388a5(0xf4))/0x2*(parseInt(_0x2388a5(0xf2))/0x3)+parseInt(_0x2388a5(0xef))/0x4+-parseInt(_0x2388a5(0xf6))/0x5+-parseInt(_0x2388a5(0xf3))/0x6+-parseInt(_0x2388a5(0xf5))/0x7*(parseInt(_0x2388a5(0xf8))/0x8)+parseInt(_0x2388a5(0xf0))/0x9*(parseInt(_0x2388a5(0xf7))/0xa);if(_0x4a7599===_0x2feeee)break;else _0x4b61e4['push'](_0x4b61e4['shift']());}catch(_0x4005e6){_0x4b61e4['push'](_0x4b61e4['shift']());}}}(a208_0x2477,0xb6332));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a208_0x2477(){var _0x536cd4=['6245375IJqwsq','887440kHOvEH','168iiTiHb','5685976qcPQVZ','9yJcLuU','713052tOOiof','849327PQDKYf','5747124xHiEnl','8lIfRMI','134169OxGPWi'];a208_0x2477=function(){return _0x536cd4;};return a208_0x2477();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a208_0x552b(_0x4f6715,_0x5ec78c){_0x4f6715=_0x4f6715-0xef;var _0x2477e5=a208_0x2477();var _0x552b9a=_0x2477e5[_0x4f6715];return _0x552b9a;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ function a209_0x13ad(){var _0x506164=['12yMLkoO','241330YUOITy','515rpIVkA','378180ndEKOf','4139649YLnsQA','604681dstTHM','10416heYvvH','273602VKUZhh','1195416nVoPVu'];a209_0x13ad=function(){return _0x506164;};return a209_0x13ad();}function a209_0x217f(_0xabba23,_0x45f91b){_0xabba23=_0xabba23-0x85;var _0x13ad36=a209_0x13ad();var _0x217fb=_0x13ad36[_0xabba23];return _0x217fb;}(function(_0x4b544f,_0x4b5dda){var _0x42afe1=a209_0x217f,_0x1a4e69=_0x4b544f();while(!![]){try{var _0x4cf272=-parseInt(_0x42afe1(0x88))/0x1+-parseInt(_0x42afe1(0x8b))/0x2+parseInt(_0x42afe1(0x8d))/0x3+-parseInt(_0x42afe1(0x87))/0x4*(-parseInt(_0x42afe1(0x8c))/0x5)+-parseInt(_0x42afe1(0x8a))/0x6*(parseInt(_0x42afe1(0x86))/0x7)+-parseInt(_0x42afe1(0x89))/0x8+parseInt(_0x42afe1(0x85))/0x9;if(_0x4cf272===_0x4b5dda)break;else _0x1a4e69['push'](_0x1a4e69['shift']());}catch(_0xe7add8){_0x1a4e69['push'](_0x1a4e69['shift']());}}}(a209_0x13ad,0x21a2d));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x431cd4,_0x2831e6){const _0x86d1f0=a209_0x5d13,_0x1634f7=_0x431cd4();while(!![]){try{const _0x9172ff=-parseInt(_0x86d1f0(0x91))/0x1*(parseInt(_0x86d1f0(0x93))/0x2)+parseInt(_0x86d1f0(0x95))/0x3*(-parseInt(_0x86d1f0(0x97))/0x4)+-parseInt(_0x86d1f0(0x8e))/0x5+-parseInt(_0x86d1f0(0x96))/0x6*(parseInt(_0x86d1f0(0x9a))/0x7)+-parseInt(_0x86d1f0(0x8d))/0x8*(parseInt(_0x86d1f0(0x98))/0x9)+parseInt(_0x86d1f0(0x92))/0xa+-parseInt(_0x86d1f0(0x94))/0xb*(-parseInt(_0x86d1f0(0x8f))/0xc);if(_0x9172ff===_0x2831e6)break;else _0x1634f7['push'](_0x1634f7['shift']());}catch(_0x4f7b21){_0x1634f7['push'](_0x1634f7['shift']());}}}(a209_0x3008,0xb6b98));export async function batchAsync(_0x16252e,_0x46f4ec,_0x57e5cf=0xa){const _0xb70716=a209_0x5d13,_0x3c34eb=[];for(let _0x3ceef4=0x0;_0x3ceef4<_0x16252e[_0xb70716(0x99)];_0x3ceef4+=_0x57e5cf){const _0x2deaa5=_0x16252e[_0xb70716(0x9d)](_0x3ceef4,_0x3ceef4+_0x57e5cf),_0x491927=await Promise[_0xb70716(0x9c)](_0x2deaa5[_0xb70716(0x9b)](_0x46f4ec));_0x3c34eb[_0xb70716(0x90)](..._0x491927);}return _0x3c34eb;}function a209_0x5d13(_0x2336dc,_0x5d932d){_0x2336dc=_0x2336dc-0x8d;const _0x300847=a209_0x3008();let _0x5d13a3=_0x300847[_0x2336dc];return _0x5d13a3;}function a209_0x3008(){const _0x1cb7a0=['push','2YGMzpM','9136940ShJDrK','123622bNtAjp','110KsmXrp','3083493TyhSNu','6MQSFgw','4SfECAk','1169451CgPnZz','length','29813cdRING','map','all','slice','8bmrloJ','4892115LlgSdd','2518584IqSMxO'];a209_0x3008=function(){return _0x1cb7a0;};return a209_0x3008();}
1
+ function a210_0x319d(_0x4bc10b,_0x3a4407){_0x4bc10b=_0x4bc10b-0x1da;const _0x8abd74=a210_0x8abd();let _0x319d93=_0x8abd74[_0x4bc10b];return _0x319d93;}(function(_0x5e84a8,_0x2df1b8){const _0x155803=a210_0x319d,_0x2e61d6=_0x5e84a8();while(!![]){try{const _0x17388e=-parseInt(_0x155803(0x1dd))/0x1+-parseInt(_0x155803(0x1e1))/0x2+parseInt(_0x155803(0x1de))/0x3+parseInt(_0x155803(0x1e2))/0x4*(-parseInt(_0x155803(0x1e0))/0x5)+parseInt(_0x155803(0x1da))/0x6+parseInt(_0x155803(0x1dc))/0x7*(parseInt(_0x155803(0x1df))/0x8)+-parseInt(_0x155803(0x1e4))/0x9;if(_0x17388e===_0x2df1b8)break;else _0x2e61d6['push'](_0x2e61d6['shift']());}catch(_0x401c9d){_0x2e61d6['push'](_0x2e61d6['shift']());}}}(a210_0x8abd,0x631c1));function a210_0x8abd(){const _0x1a0fd9=['1491930FQyDuM','2584jJNljV','779170KJWFTD','1382030XKgWCF','4UReYkQ','slice','487494tdqspg','2761098taplaD','map','17220xThKkL','445105bDcUtb'];a210_0x8abd=function(){return _0x1a0fd9;};return a210_0x8abd();}export async function batchAsync(_0x4415ae,_0x51fda8,_0xdc639d=0xa){const _0x3a8f4b=a210_0x319d,_0x3f7c8b=[];for(let _0x188a01=0x0;_0x188a01<_0x4415ae['length'];_0x188a01+=_0xdc639d){const _0x44fd3b=_0x4415ae[_0x3a8f4b(0x1e3)](_0x188a01,_0x188a01+_0xdc639d),_0x4a0a0a=await Promise['all'](_0x44fd3b[_0x3a8f4b(0x1db)](_0x51fda8));_0x3f7c8b['push'](..._0x4a0a0a);}return _0x3f7c8b;}
@@ -1 +1 @@
1
- (function(_0x146ca9,_0x21f0cb){const _0x17b010=a210_0x1480,_0x479e2f=_0x146ca9();while(!![]){try{const _0x1a3133=-parseInt(_0x17b010(0xe8))/0x1*(parseInt(_0x17b010(0xd1))/0x2)+parseInt(_0x17b010(0xdb))/0x3*(parseInt(_0x17b010(0xe7))/0x4)+-parseInt(_0x17b010(0xd4))/0x5*(parseInt(_0x17b010(0xdd))/0x6)+parseInt(_0x17b010(0xdc))/0x7*(-parseInt(_0x17b010(0xe1))/0x8)+parseInt(_0x17b010(0xe5))/0x9*(parseInt(_0x17b010(0xd5))/0xa)+-parseInt(_0x17b010(0xd0))/0xb+parseInt(_0x17b010(0xcf))/0xc;if(_0x1a3133===_0x21f0cb)break;else _0x479e2f['push'](_0x479e2f['shift']());}catch(_0xad44c8){_0x479e2f['push'](_0x479e2f['shift']());}}}(a210_0x5e3e,0xe272b));function a210_0x5e3e(){const _0x405b35=['number','isTTY','stringify','1696xmizuc','dim','stdout','yellow','6427665AoKrGw','object','1039524DkmRCx','426064PNsXVh','boolean','blue','33755808Bqkrqx','4851264QaAIiP','4YBzNvs','join','repeat','65LVwVSd','10iXXUtA','string','null','isArray','length','map','3EanDiR','51205guqTXW','7194CIFwGp'];a210_0x5e3e=function(){return _0x405b35;};return a210_0x5e3e();}import*as a210_0x309a73 from'chalk';const Chalk=a210_0x309a73['Chalk'];export function shouldUseColor(_0x21ca75={}){const _0x2c2ee4=a210_0x1480;if(_0x21ca75['noColor']===!![])return![];if(_0x21ca75['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2c2ee4(0xe3)][_0x2c2ee4(0xdf)]??![];}export function getChalk(_0x20daff={}){if(shouldUseColor(_0x20daff))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x8a8e46,_0x5c3d19={}){const _0x5f3546=a210_0x1480;return getChalk(_0x5c3d19)[_0x5f3546(0xe2)](_0x8a8e46);}export function colorHeader(_0x12feed,_0x2d77e5={}){return getChalk(_0x2d77e5)['cyan'](_0x12feed);}export function colorType(_0x3f9bbd,_0x1c79d5={}){const _0x4133bf=a210_0x1480;return getChalk(_0x1c79d5)[_0x4133bf(0xe2)](_0x3f9bbd);}export function colorJSONKey(_0x26ea24,_0x3556b5={}){const _0x40a25d=a210_0x1480;return getChalk(_0x3556b5)[_0x40a25d(0xea)](_0x26ea24);}export function colorJSONString(_0x4c2396,_0x5b3222={}){return getChalk(_0x5b3222)['green'](_0x4c2396);}function a210_0x1480(_0x1179c2,_0x5f7ead){_0x1179c2=_0x1179c2-0xcf;const _0x5e3e2e=a210_0x5e3e();let _0x14803b=_0x5e3e2e[_0x1179c2];return _0x14803b;}export function colorJSONNumber(_0x235c69,_0x37c833={}){return getChalk(_0x37c833)['cyan'](_0x235c69);}export function colorJSONBoolean(_0x36990e,_0x1fe6d3={}){const _0x1cd7ca=a210_0x1480;return getChalk(_0x1fe6d3)[_0x1cd7ca(0xe4)](_0x36990e);}export function colorJSONNull(_0x32cf88,_0x1d6820={}){const _0x3eade5=a210_0x1480;return getChalk(_0x1d6820)[_0x3eade5(0xe2)](_0x32cf88);}export function colorizeJSONCompact(_0x3b1848,_0x43eadf={}){const _0x166065=a210_0x1480;if(!shouldUseColor(_0x43eadf))return JSON[_0x166065(0xe0)](_0x3b1848);if(_0x3b1848===null)return colorJSONNull(_0x166065(0xd7),_0x43eadf);if(typeof _0x3b1848===_0x166065(0xe9))return colorJSONBoolean(String(_0x3b1848),_0x43eadf);if(typeof _0x3b1848===_0x166065(0xde))return colorJSONNumber(String(_0x3b1848),_0x43eadf);if(typeof _0x3b1848===_0x166065(0xd6))return colorJSONString(JSON[_0x166065(0xe0)](_0x3b1848),_0x43eadf);if(Array[_0x166065(0xd8)](_0x3b1848)){if(_0x3b1848[_0x166065(0xd9)]===0x0)return'[]';const _0x4e6e57=_0x3b1848[_0x166065(0xda)](_0x4eb531=>colorizeJSONCompact(_0x4eb531,_0x43eadf));return'['+_0x4e6e57[_0x166065(0xd2)](',')+']';}if(typeof _0x3b1848===_0x166065(0xe6)){const _0x21dafa=Object['entries'](_0x3b1848);if(_0x21dafa[_0x166065(0xd9)]===0x0)return'{}';const _0x145143=_0x21dafa[_0x166065(0xda)](([_0x56f871,_0x18f6f6])=>{const _0xa58b3a=_0x166065,_0x5f539c=colorJSONKey(JSON[_0xa58b3a(0xe0)](_0x56f871),_0x43eadf),_0x74e851=colorizeJSONCompact(_0x18f6f6,_0x43eadf);return _0x5f539c+':'+_0x74e851;});return'{'+_0x145143[_0x166065(0xd2)](',')+'}';}return String(_0x3b1848);}export function colorizeJSON(_0x4cd49f,_0x400569={},_0x447f2b=0x0){const _0x511d33=a210_0x1480;if(!shouldUseColor(_0x400569))return JSON[_0x511d33(0xe0)](_0x4cd49f,null,0x2);const _0x10fd7e='\x20'[_0x511d33(0xd3)](_0x447f2b),_0x2f13dd=_0x447f2b+0x2;if(_0x4cd49f===null)return colorJSONNull(_0x511d33(0xd7),_0x400569);if(typeof _0x4cd49f==='boolean')return colorJSONBoolean(String(_0x4cd49f),_0x400569);if(typeof _0x4cd49f==='number')return colorJSONNumber(String(_0x4cd49f),_0x400569);if(typeof _0x4cd49f===_0x511d33(0xd6))return colorJSONString(JSON[_0x511d33(0xe0)](_0x4cd49f),_0x400569);if(Array[_0x511d33(0xd8)](_0x4cd49f)){if(_0x4cd49f['length']===0x0)return'[]';const _0x36a4ad=_0x4cd49f[_0x511d33(0xda)](_0x3753ae=>{const _0x34a3cb=colorizeJSON(_0x3753ae,_0x400569,_0x2f13dd);return''+'\x20'['repeat'](_0x2f13dd)+_0x34a3cb;});return'[\x0a'+_0x36a4ad[_0x511d33(0xd2)](',\x0a')+('\x0a'+_0x10fd7e+']');}if(typeof _0x4cd49f===_0x511d33(0xe6)){const _0x1e0b5e=Object['entries'](_0x4cd49f);if(_0x1e0b5e[_0x511d33(0xd9)]===0x0)return'{}';const _0x1cfbd8=_0x1e0b5e['map'](([_0xeb0048,_0xa5cd84])=>{const _0x52b1cd=_0x511d33,_0x2440c8=colorJSONKey(JSON[_0x52b1cd(0xe0)](_0xeb0048),_0x400569),_0x4ecf2b=colorizeJSON(_0xa5cd84,_0x400569,_0x2f13dd);return''+'\x20'[_0x52b1cd(0xd3)](_0x2f13dd)+_0x2440c8+':\x20'+_0x4ecf2b;});return'{\x0a'+_0x1cfbd8[_0x511d33(0xd2)](',\x0a')+('\x0a'+_0x10fd7e+'}');}return String(_0x4cd49f);}
1
+ const a211_0x413987=a211_0x88c0;(function(_0x11be1e,_0x39f8a3){const _0x5e1cd7=a211_0x88c0,_0x576d56=_0x11be1e();while(!![]){try{const _0x1e0678=-parseInt(_0x5e1cd7(0x124))/0x1+parseInt(_0x5e1cd7(0x11a))/0x2+parseInt(_0x5e1cd7(0x12f))/0x3+parseInt(_0x5e1cd7(0x129))/0x4*(-parseInt(_0x5e1cd7(0x126))/0x5)+-parseInt(_0x5e1cd7(0x12e))/0x6*(-parseInt(_0x5e1cd7(0x120))/0x7)+-parseInt(_0x5e1cd7(0x119))/0x8*(parseInt(_0x5e1cd7(0x11d))/0x9)+parseInt(_0x5e1cd7(0x12c))/0xa;if(_0x1e0678===_0x39f8a3)break;else _0x576d56['push'](_0x576d56['shift']());}catch(_0x3f1fb4){_0x576d56['push'](_0x576d56['shift']());}}}(a211_0x3b06,0x862d9));import*as a211_0x3c1c3e from'chalk';function a211_0x3b06(){const _0x135029=['775730EdIrCg','cyan','null','5577975LsfBiV','map','color','7HqhcWW','stringify','noColor','entries','549010vRysug','string','2610lPvoev','isArray','Chalk','8348XUFtAp','length','join','12927290eIrPRm','object','6218376hWsRsw','272406XofMEq','dim','isTTY','number','repeat','boolean','8hNprxG'];a211_0x3b06=function(){return _0x135029;};return a211_0x3b06();}const Chalk=a211_0x3c1c3e[a211_0x413987(0x128)];export function shouldUseColor(_0x2a803c={}){const _0x1b3828=a211_0x413987;if(_0x2a803c[_0x1b3828(0x122)]===!![])return![];if(_0x2a803c[_0x1b3828(0x11f)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x1b3828(0x115)]??![];}export function getChalk(_0x3aa3bf={}){if(shouldUseColor(_0x3aa3bf))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x38c3a2,_0x1adc97={}){return getChalk(_0x1adc97)['dim'](_0x38c3a2);}export function colorHeader(_0x195658,_0x2645f9={}){return getChalk(_0x2645f9)['cyan'](_0x195658);}export function colorType(_0x35f9fb,_0x33c574={}){return getChalk(_0x33c574)['dim'](_0x35f9fb);}export function colorJSONKey(_0x2949ed,_0x1743a4={}){return getChalk(_0x1743a4)['blue'](_0x2949ed);}export function colorJSONString(_0x272f12,_0x41c424={}){return getChalk(_0x41c424)['green'](_0x272f12);}export function colorJSONNumber(_0x2981d5,_0x37e5e7={}){const _0x5d6df8=a211_0x413987;return getChalk(_0x37e5e7)[_0x5d6df8(0x11b)](_0x2981d5);}function a211_0x88c0(_0xf2fdfb,_0x3a1ae0){_0xf2fdfb=_0xf2fdfb-0x115;const _0x3b0667=a211_0x3b06();let _0x88c007=_0x3b0667[_0xf2fdfb];return _0x88c007;}export function colorJSONBoolean(_0x43155d,_0x2dfef1={}){return getChalk(_0x2dfef1)['yellow'](_0x43155d);}export function colorJSONNull(_0x1d7906,_0x4c50aa={}){const _0x4f1352=a211_0x413987;return getChalk(_0x4c50aa)[_0x4f1352(0x130)](_0x1d7906);}export function colorizeJSONCompact(_0x5b6fdd,_0x31792b={}){const _0x40d64c=a211_0x413987;if(!shouldUseColor(_0x31792b))return JSON['stringify'](_0x5b6fdd);if(_0x5b6fdd===null)return colorJSONNull(_0x40d64c(0x11c),_0x31792b);if(typeof _0x5b6fdd===_0x40d64c(0x118))return colorJSONBoolean(String(_0x5b6fdd),_0x31792b);if(typeof _0x5b6fdd==='number')return colorJSONNumber(String(_0x5b6fdd),_0x31792b);if(typeof _0x5b6fdd==='string')return colorJSONString(JSON[_0x40d64c(0x121)](_0x5b6fdd),_0x31792b);if(Array[_0x40d64c(0x127)](_0x5b6fdd)){if(_0x5b6fdd[_0x40d64c(0x12a)]===0x0)return'[]';const _0x5bec9e=_0x5b6fdd[_0x40d64c(0x11e)](_0x3ccb0d=>colorizeJSONCompact(_0x3ccb0d,_0x31792b));return'['+_0x5bec9e['join'](',')+']';}if(typeof _0x5b6fdd==='object'){const _0x35f5a9=Object[_0x40d64c(0x123)](_0x5b6fdd);if(_0x35f5a9[_0x40d64c(0x12a)]===0x0)return'{}';const _0xb9d8ad=_0x35f5a9[_0x40d64c(0x11e)](([_0x269495,_0x28eb82])=>{const _0x32dfac=colorJSONKey(JSON['stringify'](_0x269495),_0x31792b),_0x3de605=colorizeJSONCompact(_0x28eb82,_0x31792b);return _0x32dfac+':'+_0x3de605;});return'{'+_0xb9d8ad['join'](',')+'}';}return String(_0x5b6fdd);}export function colorizeJSON(_0x2e7895,_0x444f65={},_0x46e6e6=0x0){const _0x847107=a211_0x413987;if(!shouldUseColor(_0x444f65))return JSON[_0x847107(0x121)](_0x2e7895,null,0x2);const _0x237fcd='\x20'[_0x847107(0x117)](_0x46e6e6),_0x21d707=_0x46e6e6+0x2;if(_0x2e7895===null)return colorJSONNull(_0x847107(0x11c),_0x444f65);if(typeof _0x2e7895===_0x847107(0x118))return colorJSONBoolean(String(_0x2e7895),_0x444f65);if(typeof _0x2e7895===_0x847107(0x116))return colorJSONNumber(String(_0x2e7895),_0x444f65);if(typeof _0x2e7895===_0x847107(0x125))return colorJSONString(JSON[_0x847107(0x121)](_0x2e7895),_0x444f65);if(Array['isArray'](_0x2e7895)){if(_0x2e7895[_0x847107(0x12a)]===0x0)return'[]';const _0x3fc9d4=_0x2e7895[_0x847107(0x11e)](_0x1688f9=>{const _0x948a4f=_0x847107,_0x12fa84=colorizeJSON(_0x1688f9,_0x444f65,_0x21d707);return''+'\x20'[_0x948a4f(0x117)](_0x21d707)+_0x12fa84;});return'[\x0a'+_0x3fc9d4[_0x847107(0x12b)](',\x0a')+('\x0a'+_0x237fcd+']');}if(typeof _0x2e7895===_0x847107(0x12d)){const _0x3a61d2=Object[_0x847107(0x123)](_0x2e7895);if(_0x3a61d2[_0x847107(0x12a)]===0x0)return'{}';const _0x180505=_0x3a61d2[_0x847107(0x11e)](([_0x43e2e3,_0x4d5dc0])=>{const _0x400e7a=_0x847107,_0x511cbb=colorJSONKey(JSON[_0x400e7a(0x121)](_0x43e2e3),_0x444f65),_0x60b827=colorizeJSON(_0x4d5dc0,_0x444f65,_0x21d707);return''+'\x20'[_0x400e7a(0x117)](_0x21d707)+_0x511cbb+':\x20'+_0x60b827;});return'{\x0a'+_0x180505[_0x847107(0x12b)](',\x0a')+('\x0a'+_0x237fcd+'}');}return String(_0x2e7895);}
@@ -1 +1 @@
1
- (function(_0x96a89f,_0x5ea4b4){const _0x849f=a211_0x2f2c,_0x4262dc=_0x96a89f();while(!![]){try{const _0x22be88=-parseInt(_0x849f(0x110))/0x1*(parseInt(_0x849f(0xf1))/0x2)+-parseInt(_0x849f(0x108))/0x3+-parseInt(_0x849f(0x101))/0x4*(parseInt(_0x849f(0x107))/0x5)+parseInt(_0x849f(0x10a))/0x6*(-parseInt(_0x849f(0x10d))/0x7)+parseInt(_0x849f(0x10f))/0x8*(-parseInt(_0x849f(0xf3))/0x9)+-parseInt(_0x849f(0x10c))/0xa+parseInt(_0x849f(0xfd))/0xb;if(_0x22be88===_0x5ea4b4)break;else _0x4262dc['push'](_0x4262dc['shift']());}catch(_0x46b2a4){_0x4262dc['push'](_0x4262dc['shift']());}}}(a211_0x3940,0x8dd6f));import a211_0x2e8dc6 from'chalk';export function generateDiff(_0x587e84,_0x9ba7c5){const _0x3d144c=a211_0x2f2c,_0x247ce1=_0x587e84[_0x3d144c(0x10e)]('\x0a'),_0x5a8200=_0x9ba7c5['split']('\x0a'),_0x82213c=[],_0x512db8=computeLCS(_0x247ce1,_0x5a8200);let _0x421550=0x0,_0x188ba5=0x0,_0x2dcc2f=0x0;while(_0x421550<_0x247ce1[_0x3d144c(0x105)]||_0x188ba5<_0x5a8200[_0x3d144c(0x105)]){if(_0x2dcc2f<_0x512db8[_0x3d144c(0x105)]&&_0x421550<_0x247ce1['length']&&_0x247ce1[_0x421550]===_0x512db8[_0x2dcc2f])_0x188ba5<_0x5a8200[_0x3d144c(0x105)]&&_0x5a8200[_0x188ba5]===_0x512db8[_0x2dcc2f]?(_0x82213c['push']({'type':_0x3d144c(0xef),'content':_0x247ce1[_0x421550]}),_0x421550++,_0x188ba5++,_0x2dcc2f++):(_0x82213c[_0x3d144c(0xf4)]({'type':_0x3d144c(0xf8),'content':_0x5a8200[_0x188ba5]}),_0x188ba5++);else{if(_0x2dcc2f<_0x512db8[_0x3d144c(0x105)]&&_0x188ba5<_0x5a8200[_0x3d144c(0x105)]&&_0x5a8200[_0x188ba5]===_0x512db8[_0x2dcc2f])_0x82213c[_0x3d144c(0xf4)]({'type':'removed','content':_0x247ce1[_0x421550]}),_0x421550++;else{if(_0x421550<_0x247ce1[_0x3d144c(0x105)]&&(_0x2dcc2f>=_0x512db8[_0x3d144c(0x105)]||_0x247ce1[_0x421550]!==_0x512db8[_0x2dcc2f]))_0x82213c['push']({'type':'removed','content':_0x247ce1[_0x421550]}),_0x421550++;else _0x188ba5<_0x5a8200[_0x3d144c(0x105)]&&(_0x82213c[_0x3d144c(0xf4)]({'type':_0x3d144c(0xf8),'content':_0x5a8200[_0x188ba5]}),_0x188ba5++);}}}return _0x82213c;}function computeLCS(_0x9c3c05,_0xb18bad){const _0x336e82=a211_0x2f2c,_0x4f5802=_0x9c3c05[_0x336e82(0x105)],_0x3c7f0d=_0xb18bad[_0x336e82(0x105)],_0x1dca61=Array(_0x4f5802+0x1)[_0x336e82(0xf7)](null)[_0x336e82(0xff)](()=>Array(_0x3c7f0d+0x1)['fill'](0x0));for(let _0x37687c=0x1;_0x37687c<=_0x4f5802;_0x37687c++){for(let _0x2ab287=0x1;_0x2ab287<=_0x3c7f0d;_0x2ab287++){_0x9c3c05[_0x37687c-0x1]===_0xb18bad[_0x2ab287-0x1]?_0x1dca61[_0x37687c][_0x2ab287]=_0x1dca61[_0x37687c-0x1][_0x2ab287-0x1]+0x1:_0x1dca61[_0x37687c][_0x2ab287]=Math['max'](_0x1dca61[_0x37687c-0x1][_0x2ab287],_0x1dca61[_0x37687c][_0x2ab287-0x1]);}}const _0x537c44=[];let _0x31130b=_0x4f5802,_0x2b821a=_0x3c7f0d;while(_0x31130b>0x0&&_0x2b821a>0x0){if(_0x9c3c05[_0x31130b-0x1]===_0xb18bad[_0x2b821a-0x1])_0x537c44['unshift'](_0x9c3c05[_0x31130b-0x1]),_0x31130b--,_0x2b821a--;else _0x1dca61[_0x31130b-0x1][_0x2b821a]>_0x1dca61[_0x31130b][_0x2b821a-0x1]?_0x31130b--:_0x2b821a--;}return _0x537c44;}function a211_0x3940(){const _0x3be306=['cyan','old','join','41264641eZkADf','type','map','red','8PPmRqQ','size','add','\x20+\x20','length','repeat','748735BNxVwZ','2852295brnDIq','padStart','1490442NONbei','forEach','102360HRXwEq','21eshLHw','split','88RtvzIz','1071NqYhop','content','new','min','unchanged','\x20-\x20','1058NuoFtT','\x20\x20...','489339vxGHya','push','max','has','fill','added','green'];a211_0x3940=function(){return _0x3be306;};return a211_0x3940();}export function formatDiffWithColors(_0x436004,_0x2d7de1=0x3){const _0x3140a0=a211_0x2f2c,_0xffceb5=new Set();_0x436004[_0x3140a0(0x10b)]((_0x14aea4,_0x591ad1)=>{const _0x1f3108=_0x3140a0;_0x14aea4['type']!==_0x1f3108(0xef)&&_0xffceb5[_0x1f3108(0x103)](_0x591ad1);});if(_0xffceb5[_0x3140a0(0x102)]===0x0)return'';const _0x1d8b81=new Set();for(const _0x50d135 of _0xffceb5){for(let _0x30431c=Math[_0x3140a0(0xf5)](0x0,_0x50d135-_0x2d7de1);_0x30431c<=Math[_0x3140a0(0x113)](_0x436004[_0x3140a0(0x105)]-0x1,_0x50d135+_0x2d7de1);_0x30431c++){_0x1d8b81[_0x3140a0(0x103)](_0x30431c);}}const _0x57a688=[];let _0xcc2be3=-0x1;const _0x2ee4f6=_0x436004[_0x3140a0(0x105)],_0x1a3564=Math['max'](0x3,String(_0x2ee4f6)[_0x3140a0(0x105)]),_0x380658=[];let _0xf42d20=0x0,_0xa2ea06=0x0;for(const _0xd92548 of _0x436004){if(_0xd92548[_0x3140a0(0xfe)]==='removed')_0xf42d20++,_0x380658[_0x3140a0(0xf4)]({'old':_0xf42d20,'new':0x0});else _0xd92548[_0x3140a0(0xfe)]==='added'?(_0xa2ea06++,_0x380658[_0x3140a0(0xf4)]({'old':0x0,'new':_0xa2ea06})):(_0xf42d20++,_0xa2ea06++,_0x380658[_0x3140a0(0xf4)]({'old':_0xf42d20,'new':_0xa2ea06}));}for(let _0x22b810=0x0;_0x22b810<_0x436004[_0x3140a0(0x105)];_0x22b810++){if(!_0x1d8b81[_0x3140a0(0xf6)](_0x22b810))continue;_0xcc2be3!==-0x1&&_0x22b810>_0xcc2be3+0x1&&_0x57a688[_0x3140a0(0xf4)](a211_0x2e8dc6[_0x3140a0(0xfa)](_0x3140a0(0xf2)));_0xcc2be3=_0x22b810;const _0x2e24be=_0x436004[_0x22b810],_0x388ce6=_0x380658[_0x22b810],_0x43d316=_0x388ce6[_0x3140a0(0xfb)]>0x0?String(_0x388ce6['old'])[_0x3140a0(0x109)](_0x1a3564):'\x20'[_0x3140a0(0x106)](_0x1a3564),_0x465885=_0x388ce6[_0x3140a0(0x112)]>0x0?String(_0x388ce6[_0x3140a0(0x112)])[_0x3140a0(0x109)](_0x1a3564):'\x20'[_0x3140a0(0x106)](_0x1a3564);switch(_0x2e24be[_0x3140a0(0xfe)]){case'removed':_0x57a688[_0x3140a0(0xf4)](a211_0x2e8dc6[_0x3140a0(0x100)](_0x43d316+'\x20'+_0x465885+_0x3140a0(0xf0)+_0x2e24be['content']));break;case _0x3140a0(0xf8):_0x57a688[_0x3140a0(0xf4)](a211_0x2e8dc6[_0x3140a0(0xf9)](_0x43d316+'\x20'+_0x465885+_0x3140a0(0x104)+_0x2e24be[_0x3140a0(0x111)]));break;default:_0x57a688[_0x3140a0(0xf4)](a211_0x2e8dc6['dim'](_0x43d316+'\x20'+_0x465885+'\x20\x20\x20'+_0x2e24be['content']));break;}}return _0x57a688[_0x3140a0(0xfc)]('\x0a');}function a211_0x2f2c(_0x525d44,_0x1f9b69){_0x525d44=_0x525d44-0xef;const _0x39408a=a211_0x3940();let _0x2f2c47=_0x39408a[_0x525d44];return _0x2f2c47;}export function hasChanges(_0x3d5729){const _0xac6bd5=a211_0x2f2c;return _0x3d5729['some'](_0x5bad4d=>_0x5bad4d['type']!==_0xac6bd5(0xef));}
1
+ (function(_0x436791,_0x37c8a2){const _0x439e50=a212_0x5467,_0x11ef23=_0x436791();while(!![]){try{const _0x1cccca=parseInt(_0x439e50(0x1e4))/0x1+-parseInt(_0x439e50(0x1fa))/0x2+parseInt(_0x439e50(0x1fd))/0x3*(parseInt(_0x439e50(0x205))/0x4)+-parseInt(_0x439e50(0x1f7))/0x5+-parseInt(_0x439e50(0x1e7))/0x6+parseInt(_0x439e50(0x1f3))/0x7+-parseInt(_0x439e50(0x1ec))/0x8*(-parseInt(_0x439e50(0x1f1))/0x9);if(_0x1cccca===_0x37c8a2)break;else _0x11ef23['push'](_0x11ef23['shift']());}catch(_0x5b4b90){_0x11ef23['push'](_0x11ef23['shift']());}}}(a212_0x6fbf,0x2d9c0));import a212_0x2bcddc from'chalk';export function generateDiff(_0x595dc6,_0x4300e4){const _0x301d10=a212_0x5467,_0x13593d=_0x595dc6[_0x301d10(0x1e8)]('\x0a'),_0x1de9b0=_0x4300e4[_0x301d10(0x1e8)]('\x0a'),_0x1828c9=[],_0x1827c1=computeLCS(_0x13593d,_0x1de9b0);let _0x243e8f=0x0,_0x23b6e0=0x0,_0x24e98b=0x0;while(_0x243e8f<_0x13593d[_0x301d10(0x1e1)]||_0x23b6e0<_0x1de9b0[_0x301d10(0x1e1)]){if(_0x24e98b<_0x1827c1[_0x301d10(0x1e1)]&&_0x243e8f<_0x13593d[_0x301d10(0x1e1)]&&_0x13593d[_0x243e8f]===_0x1827c1[_0x24e98b])_0x23b6e0<_0x1de9b0[_0x301d10(0x1e1)]&&_0x1de9b0[_0x23b6e0]===_0x1827c1[_0x24e98b]?(_0x1828c9['push']({'type':_0x301d10(0x203),'content':_0x13593d[_0x243e8f]}),_0x243e8f++,_0x23b6e0++,_0x24e98b++):(_0x1828c9[_0x301d10(0x1f8)]({'type':_0x301d10(0x1fc),'content':_0x1de9b0[_0x23b6e0]}),_0x23b6e0++);else{if(_0x24e98b<_0x1827c1[_0x301d10(0x1e1)]&&_0x23b6e0<_0x1de9b0[_0x301d10(0x1e1)]&&_0x1de9b0[_0x23b6e0]===_0x1827c1[_0x24e98b])_0x1828c9[_0x301d10(0x1f8)]({'type':_0x301d10(0x1ed),'content':_0x13593d[_0x243e8f]}),_0x243e8f++;else{if(_0x243e8f<_0x13593d[_0x301d10(0x1e1)]&&(_0x24e98b>=_0x1827c1['length']||_0x13593d[_0x243e8f]!==_0x1827c1[_0x24e98b]))_0x1828c9[_0x301d10(0x1f8)]({'type':'removed','content':_0x13593d[_0x243e8f]}),_0x243e8f++;else _0x23b6e0<_0x1de9b0[_0x301d10(0x1e1)]&&(_0x1828c9[_0x301d10(0x1f8)]({'type':_0x301d10(0x1fc),'content':_0x1de9b0[_0x23b6e0]}),_0x23b6e0++);}}}return _0x1828c9;}function a212_0x5467(_0x4181df,_0x156d7e){_0x4181df=_0x4181df-0x1e1;const _0x6fbfbd=a212_0x6fbf();let _0x5467da=_0x6fbfbd[_0x4181df];return _0x5467da;}function computeLCS(_0x1d8f9a,_0x5f06a1){const _0x413782=a212_0x5467,_0x11ca3c=_0x1d8f9a['length'],_0x4fdae0=_0x5f06a1[_0x413782(0x1e1)],_0x2a7bf3=Array(_0x11ca3c+0x1)[_0x413782(0x1eb)](null)[_0x413782(0x1e6)](()=>Array(_0x4fdae0+0x1)[_0x413782(0x1eb)](0x0));for(let _0x1592ca=0x1;_0x1592ca<=_0x11ca3c;_0x1592ca++){for(let _0x1f9233=0x1;_0x1f9233<=_0x4fdae0;_0x1f9233++){_0x1d8f9a[_0x1592ca-0x1]===_0x5f06a1[_0x1f9233-0x1]?_0x2a7bf3[_0x1592ca][_0x1f9233]=_0x2a7bf3[_0x1592ca-0x1][_0x1f9233-0x1]+0x1:_0x2a7bf3[_0x1592ca][_0x1f9233]=Math[_0x413782(0x1e5)](_0x2a7bf3[_0x1592ca-0x1][_0x1f9233],_0x2a7bf3[_0x1592ca][_0x1f9233-0x1]);}}const _0xd48532=[];let _0xd561b9=_0x11ca3c,_0x435268=_0x4fdae0;while(_0xd561b9>0x0&&_0x435268>0x0){if(_0x1d8f9a[_0xd561b9-0x1]===_0x5f06a1[_0x435268-0x1])_0xd48532[_0x413782(0x1ee)](_0x1d8f9a[_0xd561b9-0x1]),_0xd561b9--,_0x435268--;else _0x2a7bf3[_0xd561b9-0x1][_0x435268]>_0x2a7bf3[_0xd561b9][_0x435268-0x1]?_0xd561b9--:_0x435268--;}return _0xd48532;}export function formatDiffWithColors(_0x1a3d0f,_0x252e3b=0x3){const _0x5afbcb=a212_0x5467,_0x40cfad=new Set();_0x1a3d0f[_0x5afbcb(0x204)]((_0x21ad18,_0x5996af)=>{const _0x215e46=_0x5afbcb;_0x21ad18['type']!==_0x215e46(0x203)&&_0x40cfad['add'](_0x5996af);});if(_0x40cfad[_0x5afbcb(0x1e2)]===0x0)return'';const _0x23de27=new Set();for(const _0x574b29 of _0x40cfad){for(let _0x447ab5=Math['max'](0x0,_0x574b29-_0x252e3b);_0x447ab5<=Math[_0x5afbcb(0x1f2)](_0x1a3d0f[_0x5afbcb(0x1e1)]-0x1,_0x574b29+_0x252e3b);_0x447ab5++){_0x23de27[_0x5afbcb(0x1f0)](_0x447ab5);}}const _0x209edd=[];let _0x47d418=-0x1;const _0x2d3e2a=_0x1a3d0f[_0x5afbcb(0x1e1)],_0x6210ba=Math[_0x5afbcb(0x1e5)](0x3,String(_0x2d3e2a)[_0x5afbcb(0x1e1)]),_0x1d696e=[];let _0x19fc43=0x0,_0x3a17e2=0x0;for(const _0x88ff24 of _0x1a3d0f){if(_0x88ff24[_0x5afbcb(0x1f4)]===_0x5afbcb(0x1ed))_0x19fc43++,_0x1d696e[_0x5afbcb(0x1f8)]({'old':_0x19fc43,'new':0x0});else _0x88ff24[_0x5afbcb(0x1f4)]===_0x5afbcb(0x1fc)?(_0x3a17e2++,_0x1d696e['push']({'old':0x0,'new':_0x3a17e2})):(_0x19fc43++,_0x3a17e2++,_0x1d696e['push']({'old':_0x19fc43,'new':_0x3a17e2}));}for(let _0x1bc8b6=0x0;_0x1bc8b6<_0x1a3d0f[_0x5afbcb(0x1e1)];_0x1bc8b6++){if(!_0x23de27['has'](_0x1bc8b6))continue;_0x47d418!==-0x1&&_0x1bc8b6>_0x47d418+0x1&&_0x209edd[_0x5afbcb(0x1f8)](a212_0x2bcddc['cyan'](_0x5afbcb(0x1ef)));_0x47d418=_0x1bc8b6;const _0x466cc2=_0x1a3d0f[_0x1bc8b6],_0x494d43=_0x1d696e[_0x1bc8b6],_0xe63f73=_0x494d43['old']>0x0?String(_0x494d43[_0x5afbcb(0x200)])[_0x5afbcb(0x202)](_0x6210ba):'\x20'[_0x5afbcb(0x201)](_0x6210ba),_0x1a8b2d=_0x494d43[_0x5afbcb(0x1ea)]>0x0?String(_0x494d43[_0x5afbcb(0x1ea)])[_0x5afbcb(0x202)](_0x6210ba):'\x20'[_0x5afbcb(0x201)](_0x6210ba);switch(_0x466cc2[_0x5afbcb(0x1f4)]){case _0x5afbcb(0x1ed):_0x209edd[_0x5afbcb(0x1f8)](a212_0x2bcddc[_0x5afbcb(0x1e9)](_0xe63f73+'\x20'+_0x1a8b2d+_0x5afbcb(0x1fb)+_0x466cc2[_0x5afbcb(0x1fe)]));break;case _0x5afbcb(0x1fc):_0x209edd[_0x5afbcb(0x1f8)](a212_0x2bcddc[_0x5afbcb(0x1f5)](_0xe63f73+'\x20'+_0x1a8b2d+_0x5afbcb(0x1f6)+_0x466cc2['content']));break;default:_0x209edd['push'](a212_0x2bcddc[_0x5afbcb(0x1f9)](_0xe63f73+'\x20'+_0x1a8b2d+_0x5afbcb(0x1e3)+_0x466cc2['content']));break;}}return _0x209edd['join']('\x0a');}function a212_0x6fbf(){const _0x87c8cd=['960aAxfPk','removed','unshift','\x20\x20...','add','7083dRbxSz','min','2613443FsBJtj','type','green','\x20+\x20','1652165GMaNjV','push','dim','85054vaNSbL','\x20-\x20','added','602418EIRaNp','content','some','old','repeat','padStart','unchanged','forEach','4NYtXed','length','size','\x20\x20\x20','10857PDYzsC','max','map','718056UkVUWq','split','red','new','fill'];a212_0x6fbf=function(){return _0x87c8cd;};return a212_0x6fbf();}export function hasChanges(_0xff69c){const _0x3a9d41=a212_0x5467;return _0xff69c[_0x3a9d41(0x1ff)](_0x3e7a54=>_0x3e7a54[_0x3a9d41(0x1f4)]!==_0x3a9d41(0x203));}
@@ -1 +1 @@
1
- (function(_0xa121b9,_0x26b542){const _0x5223e7=a212_0x1085,_0x44e3d9=_0xa121b9();while(!![]){try{const _0x348ee8=parseInt(_0x5223e7(0x90))/0x1*(parseInt(_0x5223e7(0x8f))/0x2)+-parseInt(_0x5223e7(0x92))/0x3+parseInt(_0x5223e7(0x9b))/0x4*(-parseInt(_0x5223e7(0x97))/0x5)+-parseInt(_0x5223e7(0x8e))/0x6+parseInt(_0x5223e7(0x95))/0x7*(-parseInt(_0x5223e7(0x98))/0x8)+parseInt(_0x5223e7(0x94))/0x9*(-parseInt(_0x5223e7(0x9d))/0xa)+-parseInt(_0x5223e7(0x8d))/0xb*(-parseInt(_0x5223e7(0x9c))/0xc);if(_0x348ee8===_0x26b542)break;else _0x44e3d9['push'](_0x44e3d9['shift']());}catch(_0x3b535c){_0x44e3d9['push'](_0x44e3d9['shift']());}}}(a212_0x51e1,0xa1743));function a212_0x1085(_0x3eb79b,_0x55c5ca){_0x3eb79b=_0x3eb79b-0x8c;const _0x51e1aa=a212_0x51e1();let _0x1085bd=_0x51e1aa[_0x3eb79b];return _0x1085bd;}import*as a212_0x4b398d from'node:fs';function a212_0x51e1(){const _0x2b9c48=['3977396jgVWCv','1110348UhFeiF','173430yjvVtF','dirname','chmodSync','warn','407ooHpnq','2170290fmnyaN','2XjzYqX','725929kgIlrB','Should\x20be\x200600\x20or\x20more\x20restrictive.','2854932mJpoRH','existsSync','369jutaDj','547652vYiVHY',').\x20','5TeZnIv','48JydFTL','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','statSync'];a212_0x51e1=function(){return _0x2b9c48;};return a212_0x51e1();}import*as a212_0x4f28fb from'node:path';export function setSecureFilePermissions(_0x4a44ab){const _0x18e6e3=a212_0x1085;try{a212_0x4b398d[_0x18e6e3(0x9f)](_0x4a44ab,0x180);}catch{console[_0x18e6e3(0x8c)](_0x18e6e3(0x99)+_0x4a44ab);}}export function setSecureDirectoryPermissions(_0x52fb49){const _0x1e9b2f=a212_0x1085;try{a212_0x4b398d['chmodSync'](_0x52fb49,0x1c0);}catch{console[_0x1e9b2f(0x8c)](_0x1e9b2f(0x99)+_0x52fb49);}}export function createSecureDirectory(_0x2c8ea5){const _0x1ba984=a212_0x1085;!a212_0x4b398d[_0x1ba984(0x93)](_0x2c8ea5)&&(a212_0x4b398d['mkdirSync'](_0x2c8ea5,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2c8ea5));}export function validateSecureFilePermissions(_0x45ad68){const _0xf9f8d1=a212_0x1085;try{const _0x2ace93=a212_0x4b398d[_0xf9f8d1(0x9a)](_0x45ad68),_0x4cbe74=_0x2ace93['mode']&0x1ff,_0x342988=(_0x4cbe74&0x3f)!==0x0;if(_0x342988)return console[_0xf9f8d1(0x8c)]('Warning:\x20'+_0x45ad68+'\x20has\x20insecure\x20permissions\x20('+_0x4cbe74['toString'](0x8)+_0xf9f8d1(0x96)+_0xf9f8d1(0x91)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x401792,_0x4ca26b){const _0x532221=a212_0x1085,_0x3b9529=a212_0x4f28fb[_0x532221(0x9e)](_0x401792);createSecureDirectory(_0x3b9529),a212_0x4b398d['writeFileSync'](_0x401792,_0x4ca26b,{'mode':0x180}),setSecureFilePermissions(_0x401792);}
1
+ (function(_0x386927,_0x54848f){const _0x1e1663=a213_0x28fe,_0x511cca=_0x386927();while(!![]){try{const _0x1876b2=-parseInt(_0x1e1663(0x190))/0x1+-parseInt(_0x1e1663(0x197))/0x2*(parseInt(_0x1e1663(0x196))/0x3)+parseInt(_0x1e1663(0x194))/0x4+parseInt(_0x1e1663(0x1a0))/0x5*(-parseInt(_0x1e1663(0x193))/0x6)+parseInt(_0x1e1663(0x19c))/0x7+-parseInt(_0x1e1663(0x189))/0x8*(-parseInt(_0x1e1663(0x18a))/0x9)+parseInt(_0x1e1663(0x18b))/0xa*(-parseInt(_0x1e1663(0x18d))/0xb);if(_0x1876b2===_0x54848f)break;else _0x511cca['push'](_0x511cca['shift']());}catch(_0x4df86d){_0x511cca['push'](_0x511cca['shift']());}}}(a213_0x437d,0xd16b7));import*as a213_0x5c8b29 from'node:fs';import*as a213_0x485404 from'node:path';export function setSecureFilePermissions(_0x27052c){const _0x5cb103=a213_0x28fe;try{a213_0x5c8b29['chmodSync'](_0x27052c,0x180);}catch{console[_0x5cb103(0x199)](_0x5cb103(0x19b)+_0x27052c);}}export function setSecureDirectoryPermissions(_0x4d1115){const _0x518004=a213_0x28fe;try{a213_0x5c8b29[_0x518004(0x198)](_0x4d1115,0x1c0);}catch{console[_0x518004(0x199)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4d1115);}}function a213_0x28fe(_0x153ef7,_0x570472){_0x153ef7=_0x153ef7-0x189;const _0x437de9=a213_0x437d();let _0x28fed4=_0x437de9[_0x153ef7];return _0x28fed4;}export function createSecureDirectory(_0x169df7){const _0x4dbeb5=a213_0x28fe;!a213_0x5c8b29[_0x4dbeb5(0x18f)](_0x169df7)&&(a213_0x5c8b29[_0x4dbeb5(0x192)](_0x169df7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x169df7));}function a213_0x437d(){const _0x566a9f=['Should\x20be\x200600\x20or\x20more\x20restrictive.','existsSync','239820KJAbjY','writeFileSync','mkdirSync','311052YhayDi','3431516rWYLzS','toString','24LEkjmV','285898GVuGKl','chmodSync','warn',').\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','4204823MoQsds','dirname','Warning:\x20','\x20has\x20insecure\x20permissions\x20(','35OFNAQE','12504616DwHEvn','9UCMCop','2780jiLeSF','mode','16522riRGbz'];a213_0x437d=function(){return _0x566a9f;};return a213_0x437d();}export function validateSecureFilePermissions(_0x9ad561){const _0x2385f9=a213_0x28fe;try{const _0x771cae=a213_0x5c8b29['statSync'](_0x9ad561),_0x572538=_0x771cae[_0x2385f9(0x18c)]&0x1ff,_0x5223d5=(_0x572538&0x3f)!==0x0;if(_0x5223d5)return console[_0x2385f9(0x199)](_0x2385f9(0x19e)+_0x9ad561+_0x2385f9(0x19f)+_0x572538[_0x2385f9(0x195)](0x8)+_0x2385f9(0x19a)+_0x2385f9(0x18e)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xac7541,_0x9535f9){const _0x415db4=a213_0x28fe,_0x5d61f9=a213_0x485404[_0x415db4(0x19d)](_0xac7541);createSecureDirectory(_0x5d61f9),a213_0x5c8b29[_0x415db4(0x191)](_0xac7541,_0x9535f9,{'mode':0x180}),setSecureFilePermissions(_0xac7541);}
@@ -1 +1 @@
1
- function a213_0x46e1(){const _0x1f3315=['utf-8','4090825blIRuc','775928OiIaAF','NOT_FOUND','3740373dorgAR','message','5267090VdcHMT','Permission\x20denied\x20reading\x20file\x20\x27','18UsojbG','\x27:\x20','5492AicWUP','EACCES','3711rjVdRi','832698oXUHMK','162CrbIBQ','INTERNAL','19603CmiMwb','code','ENOENT','File\x20\x27'];a213_0x46e1=function(){return _0x1f3315;};return a213_0x46e1();}(function(_0x526b6b,_0x351857){const _0x5c36a8=a213_0x235e,_0x5ecc25=_0x526b6b();while(!![]){try{const _0x2a5355=parseInt(_0x5c36a8(0x18d))/0x1*(parseInt(_0x5c36a8(0x199))/0x2)+-parseInt(_0x5c36a8(0x189))/0x3*(parseInt(_0x5c36a8(0x187))/0x4)+parseInt(_0x5c36a8(0x192))/0x5+-parseInt(_0x5c36a8(0x18a))/0x6+parseInt(_0x5c36a8(0x195))/0x7+-parseInt(_0x5c36a8(0x193))/0x8*(-parseInt(_0x5c36a8(0x18b))/0x9)+-parseInt(_0x5c36a8(0x197))/0xa;if(_0x2a5355===_0x351857)break;else _0x5ecc25['push'](_0x5ecc25['shift']());}catch(_0x1728c5){_0x5ecc25['push'](_0x5ecc25['shift']());}}}(a213_0x46e1,0xde61c));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a213_0x235e(_0x4027ac,_0x15a2d9){_0x4027ac=_0x4027ac-0x187;const _0x46e105=a213_0x46e1();let _0x235eaf=_0x46e105[_0x4027ac];return _0x235eaf;}export function readFileContent(_0x27a80d){const _0x30b48c=a213_0x235e;try{return readFileSync(_0x27a80d,_0x30b48c(0x191));}catch(_0x15ae39){const _0x55244d=_0x15ae39[_0x30b48c(0x18e)];if(_0x55244d===_0x30b48c(0x18f))throw new SDKError(ErrorCode[_0x30b48c(0x194)],_0x30b48c(0x190)+_0x27a80d+'\x27\x20not\x20found',_0x15ae39);else{if(_0x55244d===_0x30b48c(0x188))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x30b48c(0x198)+_0x27a80d+'\x27',_0x15ae39);else throw new SDKError(ErrorCode[_0x30b48c(0x18c)],'Error\x20reading\x20file\x20\x27'+_0x27a80d+_0x30b48c(0x19a)+_0x15ae39[_0x30b48c(0x196)],_0x15ae39);}}}
1
+ (function(_0x1f2f5e,_0x1a8c27){const _0x3d3d0c=a214_0x183a,_0xa61e68=_0x1f2f5e();while(!![]){try{const _0xa4ff98=-parseInt(_0x3d3d0c(0x7c))/0x1+parseInt(_0x3d3d0c(0x6f))/0x2*(-parseInt(_0x3d3d0c(0x79))/0x3)+parseInt(_0x3d3d0c(0x75))/0x4+parseInt(_0x3d3d0c(0x7f))/0x5+parseInt(_0x3d3d0c(0x78))/0x6*(-parseInt(_0x3d3d0c(0x77))/0x7)+-parseInt(_0x3d3d0c(0x80))/0x8+parseInt(_0x3d3d0c(0x6d))/0x9*(parseInt(_0x3d3d0c(0x70))/0xa);if(_0xa4ff98===_0x1a8c27)break;else _0xa61e68['push'](_0xa61e68['shift']());}catch(_0x4b85ff){_0xa61e68['push'](_0xa61e68['shift']());}}}(a214_0xf1a5,0xd3079));import{readFileSync}from'fs';function a214_0xf1a5(){const _0x305ea5=['30FvsPbO','EACCES','\x27:\x20','PERMISSION_DENIED','Permission\x20denied\x20reading\x20file\x20\x27','3532628NdbcPJ','code','1084377pszygh','48DxftDV','3202491LizNdX','\x27\x20not\x20found','Error\x20reading\x20file\x20\x27','823920hHEQuU','utf-8','File\x20\x27','5153585nbAYsl','1887576ScIPzV','6951465YUPVSH','NOT_FOUND','2JODmMs'];a214_0xf1a5=function(){return _0x305ea5;};return a214_0xf1a5();}function a214_0x183a(_0x520015,_0x92ae29){_0x520015=_0x520015-0x6d;const _0xf1a56b=a214_0xf1a5();let _0x183a10=_0xf1a56b[_0x520015];return _0x183a10;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x3e7626){const _0x15cdec=a214_0x183a;try{return readFileSync(_0x3e7626,_0x15cdec(0x7d));}catch(_0x150e1f){const _0x5c6e2e=_0x150e1f[_0x15cdec(0x76)];if(_0x5c6e2e==='ENOENT')throw new SDKError(ErrorCode[_0x15cdec(0x6e)],_0x15cdec(0x7e)+_0x3e7626+_0x15cdec(0x7a),_0x150e1f);else{if(_0x5c6e2e===_0x15cdec(0x71))throw new SDKError(ErrorCode[_0x15cdec(0x73)],_0x15cdec(0x74)+_0x3e7626+'\x27',_0x150e1f);else throw new SDKError(ErrorCode['INTERNAL'],_0x15cdec(0x7b)+_0x3e7626+_0x15cdec(0x72)+_0x150e1f['message'],_0x150e1f);}}}
@@ -1 +1 @@
1
- (function(_0x43fded,_0x6d9c72){const _0xbb4874=a214_0x2f97,_0x197e5e=_0x43fded();while(!![]){try{const _0x5cefe8=-parseInt(_0xbb4874(0x1cc))/0x1*(parseInt(_0xbb4874(0x1d3))/0x2)+-parseInt(_0xbb4874(0x1d1))/0x3*(parseInt(_0xbb4874(0x1d5))/0x4)+-parseInt(_0xbb4874(0x1d9))/0x5+-parseInt(_0xbb4874(0x1db))/0x6*(parseInt(_0xbb4874(0x1e3))/0x7)+-parseInt(_0xbb4874(0x1e4))/0x8+-parseInt(_0xbb4874(0x1e6))/0x9+-parseInt(_0xbb4874(0x1ca))/0xa*(-parseInt(_0xbb4874(0x1d2))/0xb);if(_0x5cefe8===_0x6d9c72)break;else _0x197e5e['push'](_0x197e5e['shift']());}catch(_0x2d5fae){_0x197e5e['push'](_0x197e5e['shift']());}}}(a214_0x30f2,0x4b048));import*as a214_0xa901bc from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a214_0x30f2(){const _0x180f73=['3iFUZHN','33neUgSq','181954JsIvzj','slice','868668puTpiB','toString','api.github.com','/releases?per_page=20','190955ILObbH','destroy','21210BEKRMH','get','now','length','application/vnd.github+json','set','resolve','parse','1029WZQkCT','2885336EjRmXL','tag_name','3868038Wrolvq','statusCode','/repos/','6545670DqWokO','next','1MHVIRQ','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','error','end','timeout'];a214_0x30f2=function(){return _0x180f73;};return a214_0x30f2();}function a214_0x2f97(_0x66d87a,_0x115802){_0x66d87a=_0x66d87a-0x1ca;const _0x30f236=a214_0x30f2();let _0x2f97aa=_0x30f236[_0x66d87a];return _0x2f97aa;}export function fetchGitHubReleases(_0x1c4ba8,_0x46e670,_0xf6878){const _0x1be20d=a214_0x2f97,_0x15999d=_0x1c4ba8+'/'+_0x46e670,_0x4bd780=cache[_0x1be20d(0x1dc)](_0x15999d);if(_0x4bd780&&Date['now']()-_0x4bd780['fetchedAt']<CACHE_TTL_MS)return Promise[_0x1be20d(0x1e1)](_0x4bd780['releases']);return new Promise((_0xabe1fe,_0x24e926)=>{const _0x32640e=_0x1be20d,_0xe4e975={'hostname':_0x32640e(0x1d7),'path':_0x32640e(0x1e8)+_0x1c4ba8+'/'+_0x46e670+_0x32640e(0x1d8),'headers':{'User-Agent':_0xf6878,'Accept':_0x32640e(0x1df)},'timeout':REQUEST_TIMEOUT_MS},_0x5869ed=a214_0xa901bc[_0x32640e(0x1dc)](_0xe4e975,_0x4a7690=>{const _0x346d61=_0x32640e;let _0x6f769a='';_0x4a7690['on']('data',_0x4cfa50=>{const _0x56afd6=a214_0x2f97;_0x6f769a+=_0x4cfa50[_0x56afd6(0x1d6)]();}),_0x4a7690['on'](_0x346d61(0x1cf),()=>{const _0x3cb257=_0x346d61;if(_0x4a7690[_0x3cb257(0x1e7)]!==0xc8){_0x24e926(new Error('GitHub\x20API\x20returned\x20'+_0x4a7690[_0x3cb257(0x1e7)]+':\x20'+_0x6f769a[_0x3cb257(0x1d4)](0x0,0xc8)));return;}try{const _0x45b9b4=JSON[_0x3cb257(0x1e2)](_0x6f769a);cache[_0x3cb257(0x1e0)](_0x15999d,{'releases':_0x45b9b4,'fetchedAt':Date[_0x3cb257(0x1dd)]()}),_0xabe1fe(_0x45b9b4);}catch(_0x88ef88){_0x24e926(_0x88ef88);}});});_0x5869ed['on'](_0x32640e(0x1d0),()=>{const _0x2490bd=_0x32640e;_0x5869ed[_0x2490bd(0x1da)](),_0x24e926(new Error(_0x2490bd(0x1cd)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5869ed['on'](_0x32640e(0x1ce),_0x24e926);});}export async function resolveReleaseTag(_0x23871a,_0x239756,_0xf00e8d,_0x2425b6){const _0x1f47c5=a214_0x2f97;if(_0x23871a===_0x1f47c5(0x1cb))return null;const _0x1b00b=await fetchGitHubReleases(_0x239756,_0xf00e8d,_0x2425b6);if(_0x1b00b[_0x1f47c5(0x1de)]===0x0)return null;const _0x1995e7=_0x1b00b['find'](_0x6ff7fb=>!_0x6ff7fb['prerelease']);return _0x1995e7?_0x1995e7[_0x1f47c5(0x1e5)]:null;}
1
+ (function(_0x4840b3,_0x91221d){const _0x4d3302=a215_0x5eb7,_0x218bd5=_0x4840b3();while(!![]){try{const _0x395825=parseInt(_0x4d3302(0x92))/0x1*(parseInt(_0x4d3302(0xa7))/0x2)+parseInt(_0x4d3302(0xa1))/0x3*(-parseInt(_0x4d3302(0x8d))/0x4)+parseInt(_0x4d3302(0x95))/0x5*(parseInt(_0x4d3302(0x99))/0x6)+-parseInt(_0x4d3302(0xaa))/0x7*(parseInt(_0x4d3302(0x9d))/0x8)+-parseInt(_0x4d3302(0x98))/0x9*(-parseInt(_0x4d3302(0x96))/0xa)+parseInt(_0x4d3302(0x8f))/0xb+-parseInt(_0x4d3302(0x9b))/0xc;if(_0x395825===_0x91221d)break;else _0x218bd5['push'](_0x218bd5['shift']());}catch(_0x200019){_0x218bd5['push'](_0x218bd5['shift']());}}}(a215_0x342d,0x56c83));function a215_0x342d(){const _0x11c58d=['slice','application/vnd.github+json','destroy','546JOWxjc','/repos/','data','parse','length','end','190HQvGOf','timeout','GitHub\x20API\x20returned\x20','49UcPyFr','fetchedAt','statusCode','8812WIcpHl','now','1364583KnzOMi','api.github.com','releases','4358GfOtLR','resolve','tag_name','40mPYvwp','6880oQiIoD','toString','8388kdETEg','82452xMyJgQ','get','2355588VBhagC','error','384584roTerA'];a215_0x342d=function(){return _0x11c58d;};return a215_0x342d();}import*as a215_0x81ca97 from'node:https';function a215_0x5eb7(_0x144a57,_0x4b8e14){_0x144a57=_0x144a57-0x8c;const _0x342d59=a215_0x342d();let _0x5eb772=_0x342d59[_0x144a57];return _0x5eb772;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x123e44,_0x3ce096,_0x7f741){const _0x2b1479=a215_0x5eb7,_0x2fa970=_0x123e44+'/'+_0x3ce096,_0x14c076=cache[_0x2b1479(0x9a)](_0x2fa970);if(_0x14c076&&Date[_0x2b1479(0x8e)]()-_0x14c076[_0x2b1479(0xab)]<CACHE_TTL_MS)return Promise[_0x2b1479(0x93)](_0x14c076[_0x2b1479(0x91)]);return new Promise((_0x1ebbbf,_0x1953ef)=>{const _0x184f28=_0x2b1479,_0x1901c1={'hostname':_0x184f28(0x90),'path':_0x184f28(0xa2)+_0x123e44+'/'+_0x3ce096+'/releases?per_page=20','headers':{'User-Agent':_0x7f741,'Accept':_0x184f28(0x9f)},'timeout':REQUEST_TIMEOUT_MS},_0x31b98e=a215_0x81ca97[_0x184f28(0x9a)](_0x1901c1,_0x3fb8ea=>{const _0x1bd3b2=_0x184f28;let _0x3f776a='';_0x3fb8ea['on'](_0x1bd3b2(0xa3),_0x3b01bc=>{const _0x2d5957=_0x1bd3b2;_0x3f776a+=_0x3b01bc[_0x2d5957(0x97)]();}),_0x3fb8ea['on'](_0x1bd3b2(0xa6),()=>{const _0x19acf2=_0x1bd3b2;if(_0x3fb8ea['statusCode']!==0xc8){_0x1953ef(new Error(_0x19acf2(0xa9)+_0x3fb8ea[_0x19acf2(0x8c)]+':\x20'+_0x3f776a[_0x19acf2(0x9e)](0x0,0xc8)));return;}try{const _0x358bfb=JSON[_0x19acf2(0xa4)](_0x3f776a);cache['set'](_0x2fa970,{'releases':_0x358bfb,'fetchedAt':Date[_0x19acf2(0x8e)]()}),_0x1ebbbf(_0x358bfb);}catch(_0x26c2e3){_0x1953ef(_0x26c2e3);}});});_0x31b98e['on'](_0x184f28(0xa8),()=>{const _0x3ae1cd=_0x184f28;_0x31b98e[_0x3ae1cd(0xa0)](),_0x1953ef(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x31b98e['on'](_0x184f28(0x9c),_0x1953ef);});}export async function resolveReleaseTag(_0x4f3db0,_0x4bf071,_0x42af1a,_0x56b5f0){const _0x51caaa=a215_0x5eb7;if(_0x4f3db0==='next')return null;const _0x49e9b3=await fetchGitHubReleases(_0x4bf071,_0x42af1a,_0x56b5f0);if(_0x49e9b3[_0x51caaa(0xa5)]===0x0)return null;const _0x3ca323=_0x49e9b3['find'](_0x147a67=>!_0x147a67['prerelease']);return _0x3ca323?_0x3ca323[_0x51caaa(0x94)]:null;}
@@ -1 +1 @@
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
+ (function(_0x24acdf,_0x91d580){const _0x1b2800=a216_0x39b5,_0x10a575=_0x24acdf();while(!![]){try{const _0x29a7a1=-parseInt(_0x1b2800(0xb5))/0x1+parseInt(_0x1b2800(0xb7))/0x2*(-parseInt(_0x1b2800(0xc3))/0x3)+-parseInt(_0x1b2800(0xb8))/0x4+-parseInt(_0x1b2800(0xbd))/0x5*(parseInt(_0x1b2800(0xc4))/0x6)+-parseInt(_0x1b2800(0xbf))/0x7*(parseInt(_0x1b2800(0xb3))/0x8)+-parseInt(_0x1b2800(0xb1))/0x9+parseInt(_0x1b2800(0xba))/0xa*(parseInt(_0x1b2800(0xc1))/0xb);if(_0x29a7a1===_0x91d580)break;else _0x10a575['push'](_0x10a575['shift']());}catch(_0x3f4a65){_0x10a575['push'](_0x10a575['shift']());}}}(a216_0xd7c5,0x65aaa));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x6c7397=a216_0x39b5;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x6c7397(0xbb));}const registry=new Map();export function registerGlobalCacheKey(_0x2962f9,_0x19e188){const _0x36a41b=a216_0x39b5,_0x20b28a=registry['get'](_0x2962f9);if(_0x20b28a&&_0x20b28a!==_0x19e188)throw new Error(_0x36a41b(0xb9)+_0x2962f9+_0x36a41b(0xb4)+_0x20b28a+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x19e188+'\x22');registry['set'](_0x2962f9,_0x19e188);}export function getGlobalCachePath(_0xba7b45){return join(getGlobalCacheDir(),_0xba7b45);}function ensureGlobalCacheDir(){const _0x321e10=getGlobalCacheDir();!existsSync(_0x321e10)&&mkdirSync(_0x321e10,{'recursive':!![]});}function readCacheJson(_0x2ca624){const _0x27fbb=getGlobalCachePath(_0x2ca624);if(!existsSync(_0x27fbb))return undefined;try{const _0x7c3521=readFileSync(_0x27fbb,'utf-8');return JSON['parse'](_0x7c3521);}catch{return undefined;}}function writeCacheJson(_0xeee363,_0x213ec2){const _0x1508fe=a216_0x39b5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xeee363),JSON[_0x1508fe(0xbe)](_0x213ec2,null,0x2),'utf-8');}function readCacheText(_0xf58093){const _0x530df8=a216_0x39b5,_0x14a45f=getGlobalCachePath(_0xf58093);if(!existsSync(_0x14a45f))return undefined;try{return readFileSync(_0x14a45f,_0x530df8(0xb6));}catch{return undefined;}}function a216_0x39b5(_0x452cb2,_0x374987){_0x452cb2=_0x452cb2-0xb1;const _0xd7c563=a216_0xd7c5();let _0x39b54f=_0xd7c563[_0x452cb2];return _0x39b54f;}function a216_0xd7c5(){const _0x4d63d9=['18145NDyivl','stringify','27790DAGzHe','{profile}','66LgenAl','trim','1737576MhgzIp','570gVuWBg','6290118uNnYCD','default','1592pvtBWh','\x22\x20already\x20registered\x20by\x20\x22','424892SrBOHg','utf-8','2PffKzb','1588868PjKMhk','Global\x20cache\x20key\x20\x22','6085690fZpTOI','tdx','replace'];a216_0xd7c5=function(){return _0x4d63d9;};return a216_0xd7c5();}function writeCacheText(_0x4424e2,_0x5ed4d4){const _0x1d2e40=a216_0x39b5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4424e2),_0x5ed4d4,_0x1d2e40(0xb6));}function clearCache(_0x54e085){const _0x56f6dd=getGlobalCachePath(_0x54e085);if(existsSync(_0x56f6dd))try{unlinkSync(_0x56f6dd);}catch{}}function cacheExists(_0x2ae77c){return existsSync(getGlobalCachePath(_0x2ae77c));}export function createGlobalCache(_0x51169e,_0x88fb27){return registerGlobalCacheKey(_0x51169e,_0x88fb27),{'read':()=>readCacheJson(_0x51169e),'write':_0x11ad3e=>writeCacheJson(_0x51169e,_0x11ad3e),'clear':()=>clearCache(_0x51169e),'exists':()=>cacheExists(_0x51169e),'path':()=>getGlobalCachePath(_0x51169e)};}export function createGlobalTextCache(_0x11ac44,_0x29f92f){const _0x3b202d=a216_0x39b5;return registerGlobalCacheKey(_0x11ac44,_0x29f92f),{'read':()=>readCacheText(_0x11ac44)?.[_0x3b202d(0xc2)]()||undefined,'write':_0xce9527=>writeCacheText(_0x11ac44,_0xce9527),'clear':()=>clearCache(_0x11ac44),'exists':()=>cacheExists(_0x11ac44),'path':()=>getGlobalCachePath(_0x11ac44)};}export function createProfileCache(_0x40c63d,_0x4b77e1){const _0x117b2b=_0x3ac983=>{const _0x2dc99f=a216_0x39b5,_0x4da27d=_0x3ac983||_0x2dc99f(0xb2);return _0x40c63d[_0x2dc99f(0xbc)](_0x2dc99f(0xc0),_0x4da27d);};return{'read':_0xcb6e62=>{const _0x482c21=_0x117b2b(_0xcb6e62);return registerGlobalCacheKey(_0x482c21,_0x4b77e1),readCacheJson(_0x482c21);},'write':(_0x1f6a6d,_0x167f68)=>{const _0x172d8e=_0x117b2b(_0x1f6a6d);registerGlobalCacheKey(_0x172d8e,_0x4b77e1),writeCacheJson(_0x172d8e,_0x167f68);},'clear':_0x1f8b04=>{const _0x24d871=_0x117b2b(_0x1f8b04);clearCache(_0x24d871);},'exists':_0x5b5867=>{const _0x1aaa9b=_0x117b2b(_0x5b5867);return cacheExists(_0x1aaa9b);},'path':_0x2d8081=>{const _0x4f4857=_0x117b2b(_0x2d8081);return getGlobalCachePath(_0x4f4857);}};}export function createOptionalProfileCache(_0x2e5e2f,_0x410740,_0x3b0331={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x3b0331,_0x4bdc22=_0x4dd4b2=>{return _0x4dd4b2?''+_0x2e5e2f+profileSeparator+_0x4dd4b2+suffix:''+_0x2e5e2f+suffix;};return{'read':_0x16c8f2=>{const _0x46a95c=_0x4bdc22(_0x16c8f2);return registerGlobalCacheKey(_0x46a95c,_0x410740),readCacheJson(_0x46a95c);},'write':(_0x515e02,_0x415696)=>{const _0x567708=_0x4bdc22(_0x415696);registerGlobalCacheKey(_0x567708,_0x410740),writeCacheJson(_0x567708,_0x515e02);},'clear':_0x28a9bf=>{const _0x3688d0=_0x4bdc22(_0x28a9bf);clearCache(_0x3688d0);},'exists':_0x13f4ca=>{const _0x46b46f=_0x4bdc22(_0x13f4ca);return cacheExists(_0x46b46f);},'path':_0x16b667=>{const _0x1a07ea=_0x4bdc22(_0x16b667);return getGlobalCachePath(_0x1a07ea);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
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
+ (function(_0x4d3d1b,_0x509258){const _0x330438=a217_0x24cc,_0x5870f6=_0x4d3d1b();while(!![]){try{const _0x2adf77=-parseInt(_0x330438(0x1f7))/0x1*(-parseInt(_0x330438(0x1fa))/0x2)+parseInt(_0x330438(0x1fd))/0x3*(-parseInt(_0x330438(0x1fb))/0x4)+parseInt(_0x330438(0x1ec))/0x5*(parseInt(_0x330438(0x1ea))/0x6)+-parseInt(_0x330438(0x1fc))/0x7+parseInt(_0x330438(0x200))/0x8*(-parseInt(_0x330438(0x1e9))/0x9)+parseInt(_0x330438(0x1f5))/0xa*(parseInt(_0x330438(0x1f0))/0xb)+parseInt(_0x330438(0x1f9))/0xc;if(_0x2adf77===_0x509258)break;else _0x5870f6['push'](_0x5870f6['shift']());}catch(_0x11cc45){_0x5870f6['push'](_0x5870f6['shift']());}}}(a217_0xb862,0x201cd));import{readFile}from'fs/promises';function a217_0xb862(){const _0x49bca7=['INVALID_ARGUMENT','message','2058104skROrz','Invalid\x20JSON\x20string:\x20','9aJdGZX','6QEoPoA','\x27:\x20','62515sifcrS','Failed\x20to\x20load\x20JSON:\x20','File\x20not\x20found:\x20','utf-8','253dgGDId','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Invalid\x20JSON\x20in\x20file\x20\x27','parse','code','9430vGvBJZ','NOT_FOUND','1hKVXzd','EACCES','4603764cURwze','456690sWyiAH','8484KSPiYZ','1697787DoXjwc','21FZdhlm'];a217_0xb862=function(){return _0x49bca7;};return a217_0xb862();}function a217_0x24cc(_0x35acaf,_0x565f3a){_0x35acaf=_0x35acaf-0x1e9;const _0xb862b=a217_0xb862();let _0x24ccb4=_0xb862b[_0x35acaf];return _0x24ccb4;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1d03ac,_0x5387a7){const _0x4ad01a=a217_0x24cc;try{if(_0x5387a7){const _0xe45a33=await readFile(_0x1d03ac,_0x4ad01a(0x1ef));try{return JSON['parse'](_0xe45a33);}catch(_0x5df373){throw new SDKError(ErrorCode[_0x4ad01a(0x1fe)],_0x4ad01a(0x1f2)+_0x1d03ac+_0x4ad01a(0x1eb)+(_0x5df373 instanceof Error?_0x5df373[_0x4ad01a(0x1ff)]:String(_0x5df373)));}}else try{return JSON[_0x4ad01a(0x1f3)](_0x1d03ac);}catch(_0x496629){throw new SDKError(ErrorCode[_0x4ad01a(0x1fe)],_0x4ad01a(0x201)+(_0x496629 instanceof Error?_0x496629[_0x4ad01a(0x1ff)]:String(_0x496629)));}}catch(_0x387662){if(_0x387662 instanceof SDKError)throw _0x387662;if(_0x387662 instanceof Error&&_0x4ad01a(0x1f4)in _0x387662){const _0x1fe97b=_0x387662;if(_0x1fe97b[_0x4ad01a(0x1f4)]==='ENOENT')throw new SDKError(ErrorCode[_0x4ad01a(0x1f6)],_0x4ad01a(0x1ee)+_0x1d03ac);else{if(_0x1fe97b['code']===_0x4ad01a(0x1f8))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0x1d03ac);}}throw new SDKError(ErrorCode['INTERNAL'],_0x4ad01a(0x1ed)+(_0x387662 instanceof Error?_0x387662[_0x4ad01a(0x1ff)]:String(_0x387662)));}}export async function loadJSONFromOptions(_0x2ab678,_0x5da5f1){const _0x122d69=a217_0x24cc;if(_0x2ab678&&_0x5da5f1)throw new SDKError(ErrorCode[_0x122d69(0x1fe)],_0x122d69(0x1f1));if(_0x2ab678)return await loadJSON(_0x2ab678,![]);if(_0x5da5f1)return await loadJSON(_0x5da5f1,!![]);return undefined;}
@@ -1 +1 @@
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
+ const a218_0x1db90c=a218_0x1b62;(function(_0x231331,_0x2c0552){const _0x436fd5=a218_0x1b62,_0x5e5884=_0x231331();while(!![]){try{const _0x53d5bf=-parseInt(_0x436fd5(0x1b5))/0x1*(-parseInt(_0x436fd5(0x1b3))/0x2)+-parseInt(_0x436fd5(0x1a3))/0x3*(parseInt(_0x436fd5(0x1b1))/0x4)+-parseInt(_0x436fd5(0x1a9))/0x5+-parseInt(_0x436fd5(0x1a7))/0x6*(-parseInt(_0x436fd5(0x1ab))/0x7)+-parseInt(_0x436fd5(0x1a5))/0x8*(-parseInt(_0x436fd5(0x1b6))/0x9)+-parseInt(_0x436fd5(0x1b2))/0xa*(parseInt(_0x436fd5(0x1b4))/0xb)+-parseInt(_0x436fd5(0x1b9))/0xc*(-parseInt(_0x436fd5(0x1b0))/0xd);if(_0x53d5bf===_0x2c0552)break;else _0x5e5884['push'](_0x5e5884['shift']());}catch(_0x421d85){_0x5e5884['push'](_0x5e5884['shift']());}}}(a218_0x51be,0x38c8a));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a218_0x1db90c(0x1a4),registry=new Map();export function registerCacheKey(_0x36df2f,_0x86a640){const _0x169a7=a218_0x1db90c,_0x76db8d=registry[_0x169a7(0x1b8)](_0x36df2f);if(_0x76db8d&&_0x76db8d!==_0x86a640)throw new Error(_0x169a7(0x1aa)+_0x36df2f+'\x22\x20already\x20registered\x20by\x20\x22'+_0x76db8d+_0x169a7(0x1af)+_0x86a640+'\x22');registry[_0x169a7(0x1a8)](_0x36df2f,_0x86a640);}function a218_0x51be(){const _0x25adbe=['clear','722184eJAGxg','set','779145zyAUcX','Cache\x20key\x20\x22','7nXmWwY','trim','cwd','root','\x22,\x20cannot\x20register\x20for\x20\x22','949iiPTaG','4BRBZrg','540pioHXN','26330lRNfPL','34749ipiMFj','10GPmXAh','54YSthgF','utf-8','get','102792NwOKxE','parse','1226091cdFvxi','.cache/tdx','120488MxErhZ'];a218_0x51be=function(){return _0x25adbe;};return a218_0x51be();}export function getCacheDir(){const _0x4a2c69=a218_0x1db90c,_0x3e9619=process[_0x4a2c69(0x1ad)](),_0x24befb=_0x3e9619===parse(_0x3e9619)[_0x4a2c69(0x1ae)]?homedir():_0x3e9619;return join(_0x24befb,LOCAL_CACHE_DIR);}export function getCachePath(_0x227f6d){return join(getCacheDir(),_0x227f6d);}function ensureCacheDir(){const _0x2a07e5=getCacheDir();!existsSync(_0x2a07e5)&&mkdirSync(_0x2a07e5,{'recursive':!![]});}function a218_0x1b62(_0x1ece55,_0x384d1c){_0x1ece55=_0x1ece55-0x1a3;const _0x51be40=a218_0x51be();let _0x1b6252=_0x51be40[_0x1ece55];return _0x1b6252;}function readCacheJson(_0xdc23b0){const _0x5090e9=a218_0x1db90c,_0x50a78c=getCachePath(_0xdc23b0);if(!existsSync(_0x50a78c))return undefined;try{const _0x350db3=readFileSync(_0x50a78c,'utf-8');return JSON[_0x5090e9(0x1ba)](_0x350db3);}catch{return undefined;}}function writeCacheJson(_0x38ada8,_0x13d13d){const _0x211454=a218_0x1db90c;ensureCacheDir(),writeFileSync(getCachePath(_0x38ada8),JSON['stringify'](_0x13d13d,null,0x2),_0x211454(0x1b7));}function readCacheText(_0x575b39){const _0xdc1adb=getCachePath(_0x575b39);if(!existsSync(_0xdc1adb))return undefined;try{return readFileSync(_0xdc1adb,'utf-8');}catch{return undefined;}}function writeCacheText(_0x45128b,_0x51fdfa){const _0x29cbdb=a218_0x1db90c;ensureCacheDir(),writeFileSync(getCachePath(_0x45128b),_0x51fdfa,_0x29cbdb(0x1b7));}function clearCache(_0x13322e){const _0x3400d8=getCachePath(_0x13322e);if(existsSync(_0x3400d8))try{unlinkSync(_0x3400d8);}catch{}}function cacheExists(_0x315209){return existsSync(getCachePath(_0x315209));}export function createCache(_0x139f2b,_0x3b8b4d){return registerCacheKey(_0x139f2b,_0x3b8b4d),{'read':()=>readCacheJson(_0x139f2b),'write':_0x171913=>writeCacheJson(_0x139f2b,_0x171913),'clear':()=>clearCache(_0x139f2b),'exists':()=>cacheExists(_0x139f2b),'path':()=>getCachePath(_0x139f2b)};}export function createTextCache(_0x4c690a,_0x2039b0){const _0x4e29f3=a218_0x1db90c;return registerCacheKey(_0x4c690a,_0x2039b0),{'read':()=>readCacheText(_0x4c690a)?.[_0x4e29f3(0x1ac)]()||undefined,'write':_0x2a0593=>writeCacheText(_0x4c690a,_0x2a0593),'clear':()=>clearCache(_0x4c690a),'exists':()=>cacheExists(_0x4c690a),'path':()=>getCachePath(_0x4c690a)};}export function clearRegistry(){const _0x4cc8e5=a218_0x1db90c;registry[_0x4cc8e5(0x1a6)]();}
@@ -1 +1 @@
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
+ const a219_0x147107=a219_0xc6c1;function a219_0xc6c1(_0x4ffffc,_0x15557e){_0x4ffffc=_0x4ffffc-0x1c8;const _0x2f055e=a219_0x2f05();let _0xc6c1ad=_0x2f055e[_0x4ffffc];return _0xc6c1ad;}(function(_0x14fc45,_0x138294){const _0x5ea80d=a219_0xc6c1,_0x173169=_0x14fc45();while(!![]){try{const _0x42e4bf=-parseInt(_0x5ea80d(0x1cd))/0x1+parseInt(_0x5ea80d(0x1d1))/0x2*(-parseInt(_0x5ea80d(0x1d6))/0x3)+parseInt(_0x5ea80d(0x1e0))/0x4+parseInt(_0x5ea80d(0x1dd))/0x5+parseInt(_0x5ea80d(0x1e3))/0x6*(parseInt(_0x5ea80d(0x1df))/0x7)+-parseInt(_0x5ea80d(0x1e1))/0x8*(parseInt(_0x5ea80d(0x1d7))/0x9)+-parseInt(_0x5ea80d(0x1d9))/0xa;if(_0x42e4bf===_0x138294)break;else _0x173169['push'](_0x173169['shift']());}catch(_0x1e9525){_0x173169['push'](_0x173169['shift']());}}}(a219_0x2f05,0x238d1));import a219_0x5cb232 from'chalk';function a219_0x2f05(){const _0x1e1a18=['component','yellow','dim','1449515LOajLj','colors','64295xBBqIL','824180iGOMHR','16zJMcWB',']\x20[','66qYXMXZ','DEBUG','chalk','colorLevel','Chalk','TRACE','cyan','253817dzRFTn','format','gray','timestamp','3862vrvyDN','green','red','level','ERROR','15TXiMpy','716949jTtmsh','message','285720kVsILd'];a219_0x2f05=function(){return _0x1e1a18;};return a219_0x2f05();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a219_0x5cb232,ChalkClass=chalkModule[a219_0x147107(0x1ca)]||chalkModule['default']?.[a219_0x147107(0x1ca)];export class DefaultLogFormatter{['colors'];['chalk'];constructor(_0x345d9e={}){const _0x305492=a219_0x147107;this['colors']=_0x345d9e['colors']??![],this[_0x305492(0x1c8)]=_0x345d9e[_0x305492(0x1de)]&&ChalkClass?new ChalkClass({'level':0x3}):a219_0x5cb232;}[a219_0x147107(0x1ce)](_0x2e91bd){const _0x2df3e7=a219_0x147107,_0x2f2d68=formatTimestamp(_0x2e91bd[_0x2df3e7(0x1d0)]),_0x4bc2b5=logLevelToString(_0x2e91bd[_0x2df3e7(0x1d4)]);if(!this[_0x2df3e7(0x1de)])return _0x2f2d68+'\x20['+_0x4bc2b5+_0x2df3e7(0x1e2)+_0x2e91bd[_0x2df3e7(0x1da)]+']\x20'+_0x2e91bd[_0x2df3e7(0x1d8)];const _0x53ee75=this[_0x2df3e7(0x1c8)][_0x2df3e7(0x1dc)](_0x2f2d68),_0x55391a=this['colorLevel'](_0x4bc2b5,_0x2e91bd['level']),_0x3ef972=this[_0x2df3e7(0x1c8)]['blue']('['+_0x2e91bd[_0x2df3e7(0x1da)]+']');return _0x53ee75+'\x20'+_0x55391a+'\x20'+_0x3ef972+'\x20'+_0x2e91bd[_0x2df3e7(0x1d8)];}[a219_0x147107(0x1c9)](_0xd28966,_0x57a3e5){const _0x1efe31=a219_0x147107;switch(_0x57a3e5){case LogLevel[_0x1efe31(0x1cb)]:return this['chalk'][_0x1efe31(0x1cf)]('['+_0xd28966+']');case LogLevel[_0x1efe31(0x1e4)]:return this[_0x1efe31(0x1c8)][_0x1efe31(0x1d2)]('['+_0xd28966+']');case LogLevel['INFO']:return this['chalk'][_0x1efe31(0x1cc)]('['+_0xd28966+']');case LogLevel['WARN']:return this[_0x1efe31(0x1c8)][_0x1efe31(0x1db)]('['+_0xd28966+']');case LogLevel[_0x1efe31(0x1d5)]:return this[_0x1efe31(0x1c8)][_0x1efe31(0x1d3)]('['+_0xd28966+']');default:return'['+_0xd28966+']';}}}
@@ -1 +1 @@
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
+ function a220_0x15e7(_0x2f656f,_0x3f636b){_0x2f656f=_0x2f656f-0x93;var _0x30d19b=a220_0x30d1();var _0x15e777=_0x30d19b[_0x2f656f];return _0x15e777;}function a220_0x30d1(){var _0x45d247=['31227yIsSJw','30xKLIOw','25TCdHES','93519fwQEvf','295515aYeZaE','184YXZRyH','23184722JZIXDe','710lndcZL','12674IvmkiZ','574916dlwuhx','1415022FKkbiR'];a220_0x30d1=function(){return _0x45d247;};return a220_0x30d1();}(function(_0x230b5a,_0x353f62){var _0x5f06a5=a220_0x15e7,_0x52ef7f=_0x230b5a();while(!![]){try{var _0x597b8f=-parseInt(_0x5f06a5(0x9a))/0x1+parseInt(_0x5f06a5(0x93))/0x2*(-parseInt(_0x5f06a5(0x97))/0x3)+parseInt(_0x5f06a5(0x94))/0x4*(-parseInt(_0x5f06a5(0x98))/0x5)+parseInt(_0x5f06a5(0x95))/0x6+-parseInt(_0x5f06a5(0x96))/0x7*(parseInt(_0x5f06a5(0x9b))/0x8)+-parseInt(_0x5f06a5(0x99))/0x9*(parseInt(_0x5f06a5(0x9d))/0xa)+parseInt(_0x5f06a5(0x9c))/0xb;if(_0x597b8f===_0x353f62)break;else _0x52ef7f['push'](_0x52ef7f['shift']());}catch(_0xe2b264){_0x52ef7f['push'](_0x52ef7f['shift']());}}}(a220_0x30d1,0x67ead));export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
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
+ const a221_0x5c245a=a221_0x4c92;(function(_0x35a7d7,_0x5e84f1){const _0x170592=a221_0x4c92,_0x3ef75c=_0x35a7d7();while(!![]){try{const _0x143b0b=parseInt(_0x170592(0x1b3))/0x1+-parseInt(_0x170592(0x1a3))/0x2+-parseInt(_0x170592(0x1b2))/0x3+parseInt(_0x170592(0x1af))/0x4*(parseInt(_0x170592(0x1a6))/0x5)+parseInt(_0x170592(0x1a7))/0x6+-parseInt(_0x170592(0x1a5))/0x7*(parseInt(_0x170592(0x1ac))/0x8)+parseInt(_0x170592(0x1a4))/0x9*(-parseInt(_0x170592(0x1b0))/0xa);if(_0x143b0b===_0x5e84f1)break;else _0x3ef75c['push'](_0x3ef75c['shift']());}catch(_0x423c89){_0x3ef75c['push'](_0x3ef75c['shift']());}}}(a221_0x1553,0x7e0d7));import{LogLevel as a221_0x5c9abd}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a221_0x5c245a(0x1a8)];[a221_0x5c245a(0x1ad)];[a221_0x5c245a(0x1aa)];constructor(_0x846fcb={}){const _0xdc0bfb=a221_0x5c245a;this[_0xdc0bfb(0x1a8)]=_0x846fcb['minLevel']??a221_0x5c9abd[_0xdc0bfb(0x1ab)],this[_0xdc0bfb(0x1ad)]=_0x846fcb['useStderr']??!![],this[_0xdc0bfb(0x1aa)]=new DefaultLogFormatter({'colors':_0x846fcb[_0xdc0bfb(0x1b1)]??!![]});}[a221_0x5c245a(0x1ae)](_0x390498){const _0x21b142=a221_0x5c245a;if(_0x390498[_0x21b142(0x1a2)]<this[_0x21b142(0x1a8)])return;const _0x18cb5f=this[_0x21b142(0x1aa)][_0x21b142(0x1a9)](_0x390498);this[_0x21b142(0x1ad)]&&_0x390498[_0x21b142(0x1a2)]>=a221_0x5c9abd[_0x21b142(0x1ab)]?console['error'](_0x18cb5f):console['log'](_0x18cb5f);}}function a221_0x4c92(_0x3f27e6,_0x1fe77b){_0x3f27e6=_0x3f27e6-0x1a2;const _0x155308=a221_0x1553();let _0x4c92a0=_0x155308[_0x3f27e6];return _0x4c92a0;}function a221_0x1553(){const _0x5a1803=['handle','697388JQmxQN','940vOEiYR','colors','1537917igPyso','779177ISAdTd','level','351736bgCRnI','24669hZmrzP','35QcWGnZ','15YERmWd','2953944uhvOTB','minLevel','format','formatter','WARN','531312OVztop','useStderr'];a221_0x1553=function(){return _0x5a1803;};return a221_0x1553();}
@@ -1 +1 @@
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
+ const a222_0x2a7ada=a222_0x340e;(function(_0x43cbaa,_0x41e11c){const _0xf808e4=a222_0x340e,_0x5bfe59=_0x43cbaa();while(!![]){try{const _0x24bf7e=parseInt(_0xf808e4(0x13d))/0x1+parseInt(_0xf808e4(0x12c))/0x2*(-parseInt(_0xf808e4(0x12e))/0x3)+-parseInt(_0xf808e4(0x134))/0x4+-parseInt(_0xf808e4(0x128))/0x5*(-parseInt(_0xf808e4(0x139))/0x6)+-parseInt(_0xf808e4(0x12b))/0x7+-parseInt(_0xf808e4(0x138))/0x8*(-parseInt(_0xf808e4(0x13b))/0x9)+-parseInt(_0xf808e4(0x125))/0xa*(parseInt(_0xf808e4(0x132))/0xb);if(_0x24bf7e===_0x41e11c)break;else _0x5bfe59['push'](_0x5bfe59['shift']());}catch(_0x5a9854){_0x5bfe59['push'](_0x5bfe59['shift']());}}}(a222_0x374f,0xdf7c0));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a222_0x374f(){const _0x2dee14=['includes','8622215zXvlGO','filter','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','2672537JJbIcj','188162RyVsiX','rotate','21facElY','close','end','Warning:\x20Error\x20writing\x20to\x20','1025992wuMTUj','replace','2197900jAWjbc','handle','format','logBaseName','514168QVdPiq','6CDIpiB','logFileName','27ezlbzN','split','681241xJkScf','logs','filePath','error','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logDir','rotateOldLogs','message','logStream','toISOString','mtime','test','init','write','logPath','10rzRqdn','Warning:\x20Failed\x20to\x20compress\x20'];a222_0x374f=function(){return _0x2dee14;};return a222_0x374f();}import{Logger}from'../logger.js';function a222_0x340e(_0x5ca8b0,_0x447dd3){_0x5ca8b0=_0x5ca8b0-0x125;const _0x374f17=a222_0x374f();let _0x340e0a=_0x374f17[_0x5ca8b0];return _0x340e0a;}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a222_0x2a7ada(0x14b)];['logDir'];[a222_0x2a7ada(0x13a)];[a222_0x2a7ada(0x137)];[a222_0x2a7ada(0x145)]=null;[a222_0x2a7ada(0x12d)];constructor(_0x165117={}){const _0x32819c=a222_0x2a7ada;this[_0x32819c(0x14b)]=_0x165117[_0x32819c(0x13f)]??join(getGlobalCacheDir(),_0x32819c(0x13e),'tdx.log'),this[_0x32819c(0x142)]=dirname(this['logPath']),this['logFileName']=basename(this['logPath']),this[_0x32819c(0x137)]=this['logFileName'][_0x32819c(0x133)](/\.log$/,''),this[_0x32819c(0x12d)]=_0x165117[_0x32819c(0x12d)]??!![];}async[a222_0x2a7ada(0x149)](){const _0x2df8f7=a222_0x2a7ada;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x2df8f7(0x12d)]&&await this['rotateOldLogs'](),this[_0x2df8f7(0x145)]=createWriteStream(this[_0x2df8f7(0x14b)],{'flags':'a'}),this[_0x2df8f7(0x145)]['on'](_0x2df8f7(0x140),_0x50eb05=>{const _0x181ace=_0x2df8f7;console[_0x181ace(0x140)](_0x181ace(0x131)+this[_0x181ace(0x13a)]+':',_0x50eb05[_0x181ace(0x144)]);});}catch(_0x598e96){console[_0x2df8f7(0x140)](_0x2df8f7(0x141),_0x598e96);}}[a222_0x2a7ada(0x135)](_0x5049b8){const _0x1003d7=a222_0x2a7ada;if(!this[_0x1003d7(0x145)])return;const _0x6e5373=Logger[_0x1003d7(0x136)](_0x5049b8);this[_0x1003d7(0x145)][_0x1003d7(0x14a)](_0x6e5373+'\x0a');}async[a222_0x2a7ada(0x12f)](){return new Promise(_0x2de545=>{const _0x4289f0=a222_0x340e;this[_0x4289f0(0x145)]?this[_0x4289f0(0x145)][_0x4289f0(0x130)](()=>{const _0x53769b=_0x4289f0;this[_0x53769b(0x145)]=null,_0x2de545();}):_0x2de545();});}['getLogPath'](){return this['logPath'];}async[a222_0x2a7ada(0x143)](){const _0x1c2598=a222_0x2a7ada;try{const _0x21f867=await readdir(this[_0x1c2598(0x142)]),_0x344524=new Date()[_0x1c2598(0x146)]()[_0x1c2598(0x13c)]('T')[0x0];if(_0x21f867[_0x1c2598(0x127)](this['logFileName'])){const _0x942686=join(this[_0x1c2598(0x142)],this[_0x1c2598(0x13a)]),_0x8a3cd4=await stat(_0x942686),_0x3b67c6=new Date(_0x8a3cd4[_0x1c2598(0x147)])[_0x1c2598(0x146)]()[_0x1c2598(0x13c)]('T')[0x0];if(_0x3b67c6<_0x344524){const _0x6da990=join(this['logDir'],this[_0x1c2598(0x137)]+'-'+_0x3b67c6+'.log');await rename(_0x942686,_0x6da990);}}const _0x2204d5=await readdir(this['logDir']),_0x1bdcb1=this[_0x1c2598(0x137)][_0x1c2598(0x133)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x1fbca2=new RegExp('^'+_0x1bdcb1+_0x1c2598(0x12a)),_0x4fea8a=_0x2204d5[_0x1c2598(0x129)](_0x40ab60=>_0x1fbca2[_0x1c2598(0x148)](_0x40ab60));for(const _0x2ef335 of _0x4fea8a){const _0x2a971e=join(this[_0x1c2598(0x142)],_0x2ef335),_0x497655=join(this[_0x1c2598(0x142)],_0x2ef335+'.gz');try{await pipeline(createReadStream(_0x2a971e),createGzip(),createWriteStream(_0x497655)),await unlink(_0x2a971e);}catch(_0x2f005b){console[_0x1c2598(0x140)](_0x1c2598(0x126)+_0x2ef335+':',_0x2f005b);}}}catch{}}}
@@ -1 +1 @@
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
+ (function(_0x5b0192,_0x36d896){var _0x3c8d09=a223_0x1e9c,_0xd1ed71=_0x5b0192();while(!![]){try{var _0x51869a=parseInt(_0x3c8d09(0x10b))/0x1*(parseInt(_0x3c8d09(0x102))/0x2)+parseInt(_0x3c8d09(0x105))/0x3*(-parseInt(_0x3c8d09(0x107))/0x4)+parseInt(_0x3c8d09(0x109))/0x5+parseInt(_0x3c8d09(0x106))/0x6*(parseInt(_0x3c8d09(0x104))/0x7)+-parseInt(_0x3c8d09(0x103))/0x8+-parseInt(_0x3c8d09(0x108))/0x9+-parseInt(_0x3c8d09(0x10a))/0xa*(parseInt(_0x3c8d09(0x10c))/0xb);if(_0x51869a===_0x36d896)break;else _0xd1ed71['push'](_0xd1ed71['shift']());}catch(_0x4beba0){_0xd1ed71['push'](_0xd1ed71['shift']());}}}(a223_0x7f52,0x423f8));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a223_0x1e9c(_0xe5a792,_0x584238){_0xe5a792=_0xe5a792-0x102;var _0x7f52c1=a223_0x7f52();var _0x1e9c72=_0x7f52c1[_0xe5a792];return _0x1e9c72;}function a223_0x7f52(){var _0x3d7006=['30603BGeFry','176737pbjniV','10shFzET','2048072JilZhE','723807qijNRg','3lbnsyH','24VuPVyt','223660GfsejR','23319BpGEoW','2425955YAzqyW','290PAPGQY'];a223_0x7f52=function(){return _0x3d7006;};return a223_0x7f52();}
@@ -1 +1 @@
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
+ (function(_0xa9589e,_0x14845f){var _0x550687=a224_0x412d,_0x26d36c=_0xa9589e();while(!![]){try{var _0x109f12=parseInt(_0x550687(0x123))/0x1+-parseInt(_0x550687(0x128))/0x2*(parseInt(_0x550687(0x126))/0x3)+-parseInt(_0x550687(0x12c))/0x4*(-parseInt(_0x550687(0x124))/0x5)+parseInt(_0x550687(0x12a))/0x6*(-parseInt(_0x550687(0x121))/0x7)+parseInt(_0x550687(0x125))/0x8+-parseInt(_0x550687(0x12b))/0x9*(parseInt(_0x550687(0x122))/0xa)+parseInt(_0x550687(0x127))/0xb*(parseInt(_0x550687(0x129))/0xc);if(_0x109f12===_0x14845f)break;else _0x26d36c['push'](_0x26d36c['shift']());}catch(_0x2e288a){_0x26d36c['push'](_0x26d36c['shift']());}}}(a224_0x365f,0x85f81));function a224_0x412d(_0x5c1d96,_0xf7b4d6){_0x5c1d96=_0x5c1d96-0x121;var _0x365f77=a224_0x365f();var _0x412dff=_0x365f77[_0x5c1d96];return _0x412dff;}function a224_0x365f(){var _0x1dca48=['36xkFVvV','494310IcmZCN','138825yMTFut','84HAQRMZ','77XdsAcM','190MwapeP','957597WqNEdT','123210VjpUvd','4373600UIDzaI','3387NuRWaB','263054PRvVqT','612tyuYpc'];a224_0x365f=function(){return _0x1dca48;};return a224_0x365f();}export class NullHandler{['handle'](_0x266797){}}
@@ -1 +1 @@
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
+ (function(_0x12b9b0,_0xe2efee){var _0x4d6776=a225_0x5cd7,_0x37b5d4=_0x12b9b0();while(!![]){try{var _0x19aa83=-parseInt(_0x4d6776(0x112))/0x1*(-parseInt(_0x4d6776(0x117))/0x2)+parseInt(_0x4d6776(0x110))/0x3*(parseInt(_0x4d6776(0x114))/0x4)+-parseInt(_0x4d6776(0x119))/0x5+parseInt(_0x4d6776(0x115))/0x6+-parseInt(_0x4d6776(0x116))/0x7+-parseInt(_0x4d6776(0x113))/0x8*(parseInt(_0x4d6776(0x118))/0x9)+parseInt(_0x4d6776(0x111))/0xa;if(_0x19aa83===_0xe2efee)break;else _0x37b5d4['push'](_0x37b5d4['shift']());}catch(_0x114a1e){_0x37b5d4['push'](_0x37b5d4['shift']());}}}(a225_0x5aa6,0x80e95));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a225_0x5cd7(_0x5b3cbe,_0x54f666){_0x5b3cbe=_0x5b3cbe-0x110;var _0x5aa6f4=a225_0x5aa6();var _0x5cd70a=_0x5aa6f4[_0x5b3cbe];return _0x5cd70a;}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a225_0x5aa6(){var _0x287af3=['5020920feMHrf','9Kuqpsv','21567000iecudY','12429PnLKlc','6632nMlFgz','10092GqSyGk','5331636LfCvGr','6442814LOriPC','24QthhSl','8136iOhPHw'];a225_0x5aa6=function(){return _0x287af3;};return a225_0x5aa6();}