@treasuredata/tdx 2026.4.15 → 2026.4.17

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 (220) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/access-tracker.js +1 -1
  182. package/dist/sdk/workspace/frontmatter.js +1 -1
  183. package/dist/sdk/workspace/git.js +1 -1
  184. package/dist/sdk/workspace/index.js +1 -1
  185. package/dist/sdk/workspace/templates.js +1 -1
  186. package/dist/sdk/workspace/weekly.js +1 -1
  187. package/dist/sdk/workspace/wikilinks.js +1 -1
  188. package/dist/test-utils/command-runner.js +1 -1
  189. package/dist/test-utils/factories.js +1 -1
  190. package/dist/test-utils/fixtures.js +1 -1
  191. package/dist/test-utils/http-mock.js +1 -1
  192. package/dist/test-utils/index.js +1 -1
  193. package/dist/utils/async.js +1 -1
  194. package/dist/utils/colors.js +1 -1
  195. package/dist/utils/diff.js +1 -1
  196. package/dist/utils/file-permissions.js +1 -1
  197. package/dist/utils/file-reader.js +1 -1
  198. package/dist/utils/github-releases.js +1 -1
  199. package/dist/utils/global-cache.js +1 -1
  200. package/dist/utils/json-loader.js +1 -1
  201. package/dist/utils/local-cache.js +1 -1
  202. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  203. package/dist/utils/logger/formatters/index.js +1 -1
  204. package/dist/utils/logger/handlers/console-handler.js +1 -1
  205. package/dist/utils/logger/handlers/file-handler.js +1 -1
  206. package/dist/utils/logger/handlers/index.js +1 -1
  207. package/dist/utils/logger/handlers/null-handler.js +1 -1
  208. package/dist/utils/logger/index.js +1 -1
  209. package/dist/utils/logger/logger.js +1 -1
  210. package/dist/utils/logger/types.js +1 -1
  211. package/dist/utils/option-validation.js +1 -1
  212. package/dist/utils/process.js +1 -1
  213. package/dist/utils/prompt.js +1 -1
  214. package/dist/utils/spinner.js +1 -1
  215. package/dist/utils/sse-parser.js +1 -1
  216. package/dist/utils/string-utils.js +1 -1
  217. package/dist/utils/table-ref-parser.js +1 -1
  218. package/dist/utils/tdx-logger.js +1 -1
  219. package/dist/utils/version-check.js +1 -1
  220. package/package.json +1 -1
@@ -1 +1 @@
1
- const a207_0x23a277=a207_0x58bb;(function(_0xfad23a,_0x1662d8){const _0x5b14e4=a207_0x58bb,_0x58b04f=_0xfad23a();while(!![]){try{const _0x82eebd=parseInt(_0x5b14e4(0x172))/0x1+-parseInt(_0x5b14e4(0x16f))/0x2+parseInt(_0x5b14e4(0x146))/0x3*(parseInt(_0x5b14e4(0x174))/0x4)+parseInt(_0x5b14e4(0x129))/0x5+parseInt(_0x5b14e4(0x148))/0x6+parseInt(_0x5b14e4(0x14b))/0x7+parseInt(_0x5b14e4(0x167))/0x8*(-parseInt(_0x5b14e4(0x144))/0x9);if(_0x82eebd===_0x1662d8)break;else _0x58b04f['push'](_0x58b04f['shift']());}catch(_0x49272d){_0x58b04f['push'](_0x58b04f['shift']());}}}(a207_0x3a86,0xe20b0));function a207_0x3a86(){const _0x475a39=['Internal\x20Server\x20Error','entries','split','\x20\x20(none)','fail','responder','forEach','Unauthorized','error','createFetch','parse','method','test','toUpperCase','rfc9457','toLowerCase','length','td-api','Unprocessable\x20Entity','get','stack','textResponse','14960152xVsvSb','Request\x20body:\x20','getStatusText','simple','requests','Bad\x20Request','stubs','host','114288NzCCiA','slice','getLastRequest','989107QzTOZy','url','4boAjIn','matchCount','No\x20stub\x20matched\x20request:\x20','Unmatched\x20stub','isArray','getMatchCount','withQuery','5658370GAtoRi','Forbidden','unnamed\x20stub','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','withBody','REST','every','fetchMock','GET','Bad\x20Gateway','string','parseRequest','Conflict','matcher','jsonResponseWithHeaders','getRequests','Service\x20Unavailable','some','Unknown','stringify','text/plain','jsonResponse','Registered\x20stubs:\x0a','function','Not\x20Found','register','join','18pLBqHx','headers','1666569apHrnD','pathname','5207532iUtRXd','push','map','8251796eimlBk','body','description','includes','matched','application/json'];a207_0x3a86=function(){return _0x475a39;};return a207_0x3a86();}import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];['requests']=[];[a207_0x23a277(0x130)]=null;[a207_0x23a277(0x12e)](_0x1675e2,_0x2b09cf){return _0x2d94c3=>{const _0x388f38=a207_0x58bb;if(_0x2d94c3[_0x388f38(0x15c)][_0x388f38(0x15e)]()!==_0x1675e2[_0x388f38(0x15e)]())return![];const _0x3111b5=new URL(_0x2d94c3[_0x388f38(0x173)]);if(typeof _0x2b09cf===_0x388f38(0x133))return _0x3111b5['pathname']===_0x2b09cf||_0x3111b5[_0x388f38(0x147)]['includes'](_0x2b09cf);return _0x2b09cf['test'](_0x3111b5[_0x388f38(0x147)]);};}[a207_0x23a277(0x17a)](_0x2e5d89,_0x308760){return _0x570e91=>{const _0x53a93d=a207_0x58bb;if(!_0x2e5d89(_0x570e91))return![];const _0x21ccfc=new URL(_0x570e91[_0x53a93d(0x173)]);return Object[_0x53a93d(0x152)](_0x308760)[_0x53a93d(0x12f)](([_0x295a77,_0x3343c2])=>_0x21ccfc['searchParams'][_0x53a93d(0x164)](_0x295a77)===_0x3343c2);};}[a207_0x23a277(0x12d)](_0x1f5edf,_0x406b09){return _0x1a6905=>{const _0x144cfb=a207_0x58bb;if(!_0x1f5edf(_0x1a6905))return![];if(typeof _0x406b09===_0x144cfb(0x140))return _0x406b09(_0x1a6905[_0x144cfb(0x14c)]);return JSON[_0x144cfb(0x13c)](_0x1a6905[_0x144cfb(0x14c)])===JSON[_0x144cfb(0x13c)](_0x406b09);};}['withHost'](_0x1f9393,_0x3741dc){return _0x53e30f=>{const _0x31bb89=a207_0x58bb;if(!_0x1f9393(_0x53e30f))return![];const _0xa4275a=new URL(_0x53e30f[_0x31bb89(0x173)]);return _0xa4275a[_0x31bb89(0x16e)]===_0x3741dc;};}[a207_0x23a277(0x142)](_0x11b5a6,_0x1f624e,_0x1b230b){const _0x505897=a207_0x23a277;this[_0x505897(0x16d)][_0x505897(0x149)]({'matcher':_0x11b5a6,'responder':_0x1f624e,'matched':![],'matchCount':0x0,'stack':new Error()[_0x505897(0x165)]??'','description':_0x1b230b?.[_0x505897(0x14d)]});}['registerWithInspector'](_0xf89c0,_0x2381ea,_0x58668a){const _0x14f9e9=_0x312681=>{const _0x3dcb6e=a207_0x58bb;return _0x58668a(_0x312681[_0x3dcb6e(0x14c)],_0x312681),_0x2381ea(_0x312681);};this['register'](_0xf89c0,_0x14f9e9);}static[a207_0x23a277(0x13e)](_0xf98de3,_0x4657b4=0xc8){const _0x551415=a207_0x23a277;return()=>new Response(JSON[_0x551415(0x13c)](_0xf98de3),{'status':_0x4657b4,'headers':{'Content-Type':'application/json'}});}static['errorResponse'](_0x454d10,_0x22a810,_0x147edc=a207_0x23a277(0x16a)){return()=>{const _0x386389=a207_0x58bb;let _0x37430e;switch(_0x147edc){case _0x386389(0x162):_0x37430e={'errors':{'error':_0x22a810,'message':_0x22a810,'severity':_0x386389(0x159),'status_code':_0x454d10}};break;case _0x386389(0x15f):_0x37430e={'type':'https://api.treasuredata.com/errors/'+_0x454d10,'title':HTTPMockRegistry['getStatusText'](_0x454d10),'status':_0x454d10,'detail':_0x22a810};break;default:_0x37430e={'error':_0x22a810};}return new Response(JSON[_0x386389(0x13c)](_0x37430e),{'status':_0x454d10,'headers':{'Content-Type':_0x386389(0x150)}});};}static[a207_0x23a277(0x137)](_0x23e1d6,_0x322038,_0x1d30a7=0xc8){const _0x594221=a207_0x23a277;return()=>new Response(JSON[_0x594221(0x13c)](_0x23e1d6),{'status':_0x1d30a7,'headers':{'Content-Type':'application/json',..._0x322038}});}static[a207_0x23a277(0x166)](_0x3e3e53,_0x5acd40=0xc8){const _0x12b6b5=a207_0x23a277;return()=>new Response(_0x3e3e53,{'status':_0x5acd40,'headers':{'Content-Type':_0x12b6b5(0x13d)}});}static['networkError'](_0x2f0d65){return()=>{throw new Error(_0x2f0d65);};}[a207_0x23a277(0x15a)](){return this['fetchMock']=vi['fn']()['mockImplementation'](async(_0x3adff0,_0x4314b5)=>{const _0x445c9e=a207_0x58bb,_0x38f0f7=this[_0x445c9e(0x134)](_0x3adff0,_0x4314b5);this[_0x445c9e(0x16b)][_0x445c9e(0x149)](_0x38f0f7);for(const _0x3b2647 of this[_0x445c9e(0x16d)]){if(_0x3b2647[_0x445c9e(0x136)](_0x38f0f7))return _0x3b2647[_0x445c9e(0x14f)]=!![],_0x3b2647['matchCount']++,_0x3b2647[_0x445c9e(0x156)](_0x38f0f7);}const _0x111ef7=this[_0x445c9e(0x16d)][_0x445c9e(0x14a)]((_0x39fc95,_0x433ace)=>'\x20\x20'+(_0x433ace+0x1)+'.\x20'+(_0x39fc95[_0x445c9e(0x14d)]??_0x445c9e(0x12b)))[_0x445c9e(0x143)]('\x0a');throw new Error(_0x445c9e(0x176)+_0x38f0f7['method']+'\x20'+_0x38f0f7[_0x445c9e(0x173)]+'\x0a'+(_0x445c9e(0x168)+JSON['stringify'](_0x38f0f7['body'])+'\x0a')+(_0x445c9e(0x13f)+(_0x111ef7||_0x445c9e(0x154))));}),this['fetchMock'];}[a207_0x23a277(0x134)](_0x308cb5,_0x3a9c36){const _0x25e6d7=a207_0x23a277,_0x18c310={};if(_0x3a9c36?.[_0x25e6d7(0x145)]){if(_0x3a9c36[_0x25e6d7(0x145)]instanceof Headers)_0x3a9c36[_0x25e6d7(0x145)][_0x25e6d7(0x157)]((_0x454b83,_0x559761)=>{const _0x6b79d6=_0x25e6d7;_0x18c310[_0x559761[_0x6b79d6(0x160)]()]=_0x454b83;});else{if(Array[_0x25e6d7(0x178)](_0x3a9c36[_0x25e6d7(0x145)]))for(const [_0x5bea95,_0x2ffd0e]of _0x3a9c36[_0x25e6d7(0x145)]){_0x18c310[_0x5bea95[_0x25e6d7(0x160)]()]=_0x2ffd0e;}else for(const [_0x3f4347,_0x59cea0]of Object['entries'](_0x3a9c36[_0x25e6d7(0x145)])){_0x59cea0!==undefined&&(_0x18c310[_0x3f4347[_0x25e6d7(0x160)]()]=_0x59cea0);}}}let _0x5843bf;if(_0x3a9c36?.[_0x25e6d7(0x14c)])try{_0x5843bf=JSON[_0x25e6d7(0x15b)](_0x3a9c36['body']);}catch{_0x5843bf=_0x3a9c36[_0x25e6d7(0x14c)];}return{'method':_0x3a9c36?.[_0x25e6d7(0x15c)]??_0x25e6d7(0x131),'url':_0x308cb5,'headers':_0x18c310,'body':_0x5843bf};}['verify'](_0x5dfed8){const _0x667ee=a207_0x23a277,_0x100eab=this[_0x667ee(0x16d)]['filter'](_0x149b07=>!_0x149b07[_0x667ee(0x14f)]);if(_0x100eab[_0x667ee(0x161)]>0x0){const _0x2d35f5=_0x100eab[_0x667ee(0x14a)](_0x53cb76=>{const _0x58528a=_0x667ee,_0x1b59a9=_0x53cb76[_0x58528a(0x14d)]?'\x20('+_0x53cb76['description']+')':'',_0x346db7=_0x53cb76[_0x58528a(0x165)][_0x58528a(0x153)]('\x0a')[_0x58528a(0x170)](0x2,0x5)[_0x58528a(0x143)]('\x0a');return _0x58528a(0x177)+_0x1b59a9+'\x20registered\x20at:\x0a'+_0x346db7;});_0x5dfed8[_0x667ee(0x155)](_0x100eab['length']+_0x667ee(0x12c)+_0x2d35f5[_0x667ee(0x143)]('\x0a\x0a'));}}[a207_0x23a277(0x138)](){const _0x1f0e39=a207_0x23a277;return[...this[_0x1f0e39(0x16b)]];}[a207_0x23a277(0x171)](){const _0x4cd176=a207_0x23a277;return this['requests'][this[_0x4cd176(0x16b)]['length']-0x1];}['wasCalled'](_0x479084,_0x1c4d54){const _0x58bd9c=a207_0x23a277;return this[_0x58bd9c(0x16b)][_0x58bd9c(0x13a)](_0x427945=>{const _0xcd9183=_0x58bd9c;if(_0x427945[_0xcd9183(0x15c)]['toUpperCase']()!==_0x479084[_0xcd9183(0x15e)]())return![];if(typeof _0x1c4d54==='string')return _0x427945['url'][_0xcd9183(0x14e)](_0x1c4d54);return _0x1c4d54[_0xcd9183(0x15d)](_0x427945[_0xcd9183(0x173)]);});}[a207_0x23a277(0x179)](_0x3ec64b){const _0x363f1f=a207_0x23a277;return this[_0x363f1f(0x16d)][_0x3ec64b]?.[_0x363f1f(0x175)]??0x0;}['reset'](){const _0x21fdbf=a207_0x23a277;this[_0x21fdbf(0x16d)]=[],this[_0x21fdbf(0x16b)]=[],this[_0x21fdbf(0x130)]=null;}static[a207_0x23a277(0x169)](_0xdca309){const _0x5e2058=a207_0x23a277,_0x39ae74={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:_0x5e2058(0x16c),0x191:_0x5e2058(0x158),0x193:_0x5e2058(0x12a),0x194:_0x5e2058(0x141),0x199:_0x5e2058(0x135),0x1a6:_0x5e2058(0x163),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x5e2058(0x151),0x1f6:_0x5e2058(0x132),0x1f7:_0x5e2058(0x139)};return _0x39ae74[_0xdca309]??_0x5e2058(0x13b);}}function a207_0x58bb(_0x24fca6,_0x2afadf){_0x24fca6=_0x24fca6-0x129;const _0x3a867b=a207_0x3a86();let _0x58bb48=_0x3a867b[_0x24fca6];return _0x58bb48;}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a207_0x168bd8=a207_0x34a4;function a207_0x5b92(){const _0x40c436=['responder','withBody','test','length','stubs','text/plain','150454kTKklY','Unknown','8bfVBBP','withHost','1309155BZTLpv','No\x20stub\x20matched\x20request:\x20','Not\x20Found','entries','headers','Created','split','isArray','Unauthorized','method','Too\x20Many\x20Requests','5MUkFOF','3090QTOwVq','getMatchCount','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','slice','wasCalled','rfc9457','\x20\x20(none)','requests','map','Bad\x20Gateway','30360iknGai','some','td-api','jsonResponseWithHeaders','Conflict','getRequests','filter','unnamed\x20stub','toUpperCase','2703992WZbSmn','application/json','53256FlTvtl','register','description','url','931qHKSdv','get','every','Service\x20Unavailable','forEach','No\x20Content','errorResponse','Forbidden','pathname','networkError','parseRequest','matcher','function','host','Request\x20body:\x20','\x20registered\x20at:\x0a','body','1878291LXLVpq','toLowerCase','REST','fail','error','Bad\x20Request','jsonResponse','stringify','getStatusText','fetchMock','string','3391758OMLByR','stack','push','join','textResponse','includes'];a207_0x5b92=function(){return _0x40c436;};return a207_0x5b92();}(function(_0xecaf01,_0x274695){const _0x5fc237=a207_0x34a4,_0x27fbf5=_0xecaf01();while(!![]){try{const _0xf64f57=-parseInt(_0x5fc237(0x20e))/0x1*(-parseInt(_0x5fc237(0x20c))/0x2)+-parseInt(_0x5fc237(0x210))/0x3+parseInt(_0x5fc237(0x22f))/0x4+-parseInt(_0x5fc237(0x21b))/0x5*(parseInt(_0x5fc237(0x200))/0x6)+parseInt(_0x5fc237(0x235))/0x7*(-parseInt(_0x5fc237(0x231))/0x8)+parseInt(_0x5fc237(0x1f5))/0x9+parseInt(_0x5fc237(0x21c))/0xa*(parseInt(_0x5fc237(0x226))/0xb);if(_0xf64f57===_0x274695)break;else _0x27fbf5['push'](_0x27fbf5['shift']());}catch(_0x39ee21){_0x27fbf5['push'](_0x27fbf5['shift']());}}}(a207_0x5b92,0x6e6c6));function a207_0x34a4(_0x27cc19,_0x20b1ce){_0x27cc19=_0x27cc19-0x1e8;const _0x5b920b=a207_0x5b92();let _0x34a4c0=_0x5b920b[_0x27cc19];return _0x34a4c0;}import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];[a207_0x168bd8(0x223)]=[];[a207_0x168bd8(0x1fe)]=null;[a207_0x168bd8(0x1f7)](_0x37c312,_0x415afd){return _0x3c3df1=>{const _0x54e009=a207_0x34a4;if(_0x3c3df1[_0x54e009(0x219)][_0x54e009(0x22e)]()!==_0x37c312['toUpperCase']())return![];const _0x3560ac=new URL(_0x3c3df1[_0x54e009(0x234)]);if(typeof _0x415afd===_0x54e009(0x1ff))return _0x3560ac[_0x54e009(0x1ec)]===_0x415afd||_0x3560ac[_0x54e009(0x1ec)][_0x54e009(0x205)](_0x415afd);return _0x415afd[_0x54e009(0x208)](_0x3560ac['pathname']);};}['withQuery'](_0x13d8e3,_0x394242){return _0x51e300=>{const _0x10fbbc=a207_0x34a4;if(!_0x13d8e3(_0x51e300))return![];const _0xc31730=new URL(_0x51e300[_0x10fbbc(0x234)]);return Object[_0x10fbbc(0x213)](_0x394242)[_0x10fbbc(0x237)](([_0x35ea57,_0x4e9511])=>_0xc31730['searchParams'][_0x10fbbc(0x236)](_0x35ea57)===_0x4e9511);};}[a207_0x168bd8(0x207)](_0x3f6399,_0x3ae323){return _0x1503bf=>{const _0x109bdf=a207_0x34a4;if(!_0x3f6399(_0x1503bf))return![];if(typeof _0x3ae323===_0x109bdf(0x1f0))return _0x3ae323(_0x1503bf[_0x109bdf(0x1f4)]);return JSON[_0x109bdf(0x1fc)](_0x1503bf[_0x109bdf(0x1f4)])===JSON['stringify'](_0x3ae323);};}[a207_0x168bd8(0x20f)](_0x306a8d,_0x48d00a){return _0x308a54=>{const _0x41ce81=a207_0x34a4;if(!_0x306a8d(_0x308a54))return![];const _0x20eec2=new URL(_0x308a54[_0x41ce81(0x234)]);return _0x20eec2[_0x41ce81(0x1f1)]===_0x48d00a;};}[a207_0x168bd8(0x232)](_0x4f7ef1,_0x4b5eac,_0x108f16){const _0x3acaff=a207_0x168bd8;this['stubs'][_0x3acaff(0x202)]({'matcher':_0x4f7ef1,'responder':_0x4b5eac,'matched':![],'matchCount':0x0,'stack':new Error()[_0x3acaff(0x201)]??'','description':_0x108f16?.[_0x3acaff(0x233)]});}['registerWithInspector'](_0x3dc913,_0x4efd73,_0x1b864c){const _0x543cad=a207_0x168bd8,_0x416f4b=_0x4f4c3b=>{const _0x418832=a207_0x34a4;return _0x1b864c(_0x4f4c3b[_0x418832(0x1f4)],_0x4f4c3b),_0x4efd73(_0x4f4c3b);};this[_0x543cad(0x232)](_0x3dc913,_0x416f4b);}static[a207_0x168bd8(0x1fb)](_0x776204,_0x3be197=0xc8){const _0x2ad248=a207_0x168bd8;return()=>new Response(JSON[_0x2ad248(0x1fc)](_0x776204),{'status':_0x3be197,'headers':{'Content-Type':_0x2ad248(0x230)}});}static[a207_0x168bd8(0x1ea)](_0x297d4b,_0x29e40f,_0x718c4='simple'){return()=>{const _0x45d679=a207_0x34a4;let _0x25c904;switch(_0x718c4){case _0x45d679(0x228):_0x25c904={'errors':{'error':_0x29e40f,'message':_0x29e40f,'severity':_0x45d679(0x1f9),'status_code':_0x297d4b}};break;case _0x45d679(0x221):_0x25c904={'type':'https://api.treasuredata.com/errors/'+_0x297d4b,'title':HTTPMockRegistry[_0x45d679(0x1fd)](_0x297d4b),'status':_0x297d4b,'detail':_0x29e40f};break;default:_0x25c904={'error':_0x29e40f};}return new Response(JSON[_0x45d679(0x1fc)](_0x25c904),{'status':_0x297d4b,'headers':{'Content-Type':'application/json'}});};}static[a207_0x168bd8(0x229)](_0x343ee1,_0x19f580,_0x11cc81=0xc8){const _0x29bc4d=a207_0x168bd8;return()=>new Response(JSON[_0x29bc4d(0x1fc)](_0x343ee1),{'status':_0x11cc81,'headers':{'Content-Type':'application/json',..._0x19f580}});}static[a207_0x168bd8(0x204)](_0x1d7759,_0x431388=0xc8){const _0x33aaab=a207_0x168bd8;return()=>new Response(_0x1d7759,{'status':_0x431388,'headers':{'Content-Type':_0x33aaab(0x20b)}});}static[a207_0x168bd8(0x1ed)](_0x155a7f){return()=>{throw new Error(_0x155a7f);};}['createFetch'](){const _0xf15427=a207_0x168bd8;return this[_0xf15427(0x1fe)]=vi['fn']()['mockImplementation'](async(_0x16cd53,_0x4cbf2e)=>{const _0x59ad21=_0xf15427,_0x2ce6c7=this['parseRequest'](_0x16cd53,_0x4cbf2e);this[_0x59ad21(0x223)][_0x59ad21(0x202)](_0x2ce6c7);for(const _0x5d21ea of this[_0x59ad21(0x20a)]){if(_0x5d21ea[_0x59ad21(0x1ef)](_0x2ce6c7))return _0x5d21ea['matched']=!![],_0x5d21ea['matchCount']++,_0x5d21ea[_0x59ad21(0x206)](_0x2ce6c7);}const _0x364849=this[_0x59ad21(0x20a)][_0x59ad21(0x224)]((_0x559631,_0x40dbf0)=>'\x20\x20'+(_0x40dbf0+0x1)+'.\x20'+(_0x559631[_0x59ad21(0x233)]??_0x59ad21(0x22d)))[_0x59ad21(0x203)]('\x0a');throw new Error(_0x59ad21(0x211)+_0x2ce6c7[_0x59ad21(0x219)]+'\x20'+_0x2ce6c7[_0x59ad21(0x234)]+'\x0a'+(_0x59ad21(0x1f2)+JSON[_0x59ad21(0x1fc)](_0x2ce6c7['body'])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x364849||_0x59ad21(0x222))));}),this['fetchMock'];}[a207_0x168bd8(0x1ee)](_0x586ed5,_0x1ca20e){const _0x1a8793=a207_0x168bd8,_0x7559d={};if(_0x1ca20e?.[_0x1a8793(0x214)]){if(_0x1ca20e[_0x1a8793(0x214)]instanceof Headers)_0x1ca20e[_0x1a8793(0x214)][_0x1a8793(0x1e8)]((_0x80894f,_0x2ff725)=>{const _0x415fe0=_0x1a8793;_0x7559d[_0x2ff725[_0x415fe0(0x1f6)]()]=_0x80894f;});else{if(Array[_0x1a8793(0x217)](_0x1ca20e['headers']))for(const [_0x3ab69f,_0x335d2b]of _0x1ca20e[_0x1a8793(0x214)]){_0x7559d[_0x3ab69f[_0x1a8793(0x1f6)]()]=_0x335d2b;}else for(const [_0x4e3c99,_0x225a36]of Object['entries'](_0x1ca20e[_0x1a8793(0x214)])){_0x225a36!==undefined&&(_0x7559d[_0x4e3c99['toLowerCase']()]=_0x225a36);}}}let _0x5dcc26;if(_0x1ca20e?.[_0x1a8793(0x1f4)])try{_0x5dcc26=JSON['parse'](_0x1ca20e[_0x1a8793(0x1f4)]);}catch{_0x5dcc26=_0x1ca20e[_0x1a8793(0x1f4)];}return{'method':_0x1ca20e?.[_0x1a8793(0x219)]??'GET','url':_0x586ed5,'headers':_0x7559d,'body':_0x5dcc26};}['verify'](_0x2e025e){const _0x4fb285=a207_0x168bd8,_0x29db6c=this[_0x4fb285(0x20a)][_0x4fb285(0x22c)](_0x241519=>!_0x241519['matched']);if(_0x29db6c['length']>0x0){const _0x51d9b7=_0x29db6c[_0x4fb285(0x224)](_0xfaf5dc=>{const _0x1d85ea=_0x4fb285,_0x196ed8=_0xfaf5dc[_0x1d85ea(0x233)]?'\x20('+_0xfaf5dc[_0x1d85ea(0x233)]+')':'',_0x3733fd=_0xfaf5dc[_0x1d85ea(0x201)][_0x1d85ea(0x216)]('\x0a')[_0x1d85ea(0x21f)](0x2,0x5)[_0x1d85ea(0x203)]('\x0a');return'Unmatched\x20stub'+_0x196ed8+_0x1d85ea(0x1f3)+_0x3733fd;});_0x2e025e[_0x4fb285(0x1f8)](_0x29db6c[_0x4fb285(0x209)]+_0x4fb285(0x21e)+_0x51d9b7[_0x4fb285(0x203)]('\x0a\x0a'));}}[a207_0x168bd8(0x22b)](){const _0x5ed4cf=a207_0x168bd8;return[...this[_0x5ed4cf(0x223)]];}['getLastRequest'](){const _0x3f9bcf=a207_0x168bd8;return this[_0x3f9bcf(0x223)][this['requests'][_0x3f9bcf(0x209)]-0x1];}[a207_0x168bd8(0x220)](_0x23f497,_0x1aa700){const _0x173ace=a207_0x168bd8;return this[_0x173ace(0x223)][_0x173ace(0x227)](_0x3575b7=>{const _0x218ee4=_0x173ace;if(_0x3575b7[_0x218ee4(0x219)][_0x218ee4(0x22e)]()!==_0x23f497['toUpperCase']())return![];if(typeof _0x1aa700===_0x218ee4(0x1ff))return _0x3575b7[_0x218ee4(0x234)][_0x218ee4(0x205)](_0x1aa700);return _0x1aa700[_0x218ee4(0x208)](_0x3575b7[_0x218ee4(0x234)]);});}[a207_0x168bd8(0x21d)](_0x49978e){const _0x5aad79=a207_0x168bd8;return this[_0x5aad79(0x20a)][_0x49978e]?.['matchCount']??0x0;}['reset'](){const _0x23cb5a=a207_0x168bd8;this[_0x23cb5a(0x20a)]=[],this[_0x23cb5a(0x223)]=[],this[_0x23cb5a(0x1fe)]=null;}static['getStatusText'](_0x41a6f5){const _0x47fcd5=a207_0x168bd8,_0xe766de={0xc8:'OK',0xc9:_0x47fcd5(0x215),0xcc:_0x47fcd5(0x1e9),0x190:_0x47fcd5(0x1fa),0x191:_0x47fcd5(0x218),0x193:_0x47fcd5(0x1eb),0x194:_0x47fcd5(0x212),0x199:_0x47fcd5(0x22a),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x47fcd5(0x21a),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0x47fcd5(0x225),0x1f7:_0x47fcd5(0x238)};return _0xe766de[_0x41a6f5]??_0x47fcd5(0x20d);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x57d300,_0x18fa30){var _0x1078a5=a208_0x3e84,_0x290421=_0x57d300();while(!![]){try{var _0x1e1d8=-parseInt(_0x1078a5(0xea))/0x1+-parseInt(_0x1078a5(0xee))/0x2+parseInt(_0x1078a5(0xe9))/0x3*(-parseInt(_0x1078a5(0xed))/0x4)+-parseInt(_0x1078a5(0xef))/0x5*(-parseInt(_0x1078a5(0xe8))/0x6)+parseInt(_0x1078a5(0xeb))/0x7*(parseInt(_0x1078a5(0xf0))/0x8)+parseInt(_0x1078a5(0xec))/0x9+-parseInt(_0x1078a5(0xe6))/0xa*(-parseInt(_0x1078a5(0xe7))/0xb);if(_0x1e1d8===_0x18fa30)break;else _0x290421['push'](_0x290421['shift']());}catch(_0x5cc607){_0x290421['push'](_0x290421['shift']());}}}(a208_0x44bb,0x38786));function a208_0x44bb(){var _0x288e11=['8kvYyqy','434920flFglZ','5YRModn','780760ayYmOS','3809710xVGOSU','11SaDrmN','584052vUgjoM','315522bFkoDt','212720dNLhMG','7TUVUJp','2663298nLjdKo'];a208_0x44bb=function(){return _0x288e11;};return a208_0x44bb();}function a208_0x3e84(_0x2382f1,_0x227cb2){_0x2382f1=_0x2382f1-0xe6;var _0x44bb0f=a208_0x44bb();var _0x3e848b=_0x44bb0f[_0x2382f1];return _0x3e848b;}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
+ (function(_0x2764e5,_0x4e6612){var _0x3f2ffb=a208_0x3170,_0x1387b1=_0x2764e5();while(!![]){try{var _0x3d6348=parseInt(_0x3f2ffb(0x101))/0x1*(parseInt(_0x3f2ffb(0xfb))/0x2)+-parseInt(_0x3f2ffb(0x105))/0x3*(-parseInt(_0x3f2ffb(0xfe))/0x4)+-parseInt(_0x3f2ffb(0xfc))/0x5*(-parseInt(_0x3f2ffb(0x103))/0x6)+-parseInt(_0x3f2ffb(0x104))/0x7*(parseInt(_0x3f2ffb(0x100))/0x8)+parseInt(_0x3f2ffb(0x102))/0x9+parseInt(_0x3f2ffb(0xff))/0xa+-parseInt(_0x3f2ffb(0xfd))/0xb;if(_0x3d6348===_0x4e6612)break;else _0x1387b1['push'](_0x1387b1['shift']());}catch(_0x4e7367){_0x1387b1['push'](_0x1387b1['shift']());}}}(a208_0x26f7,0x908ca));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';function a208_0x3170(_0x125a92,_0x50f62d){_0x125a92=_0x125a92-0xfb;var _0x26f77b=a208_0x26f7();var _0x3170cb=_0x26f77b[_0x125a92];return _0x3170cb;}export{CommandRunner,createCommandRunner}from'./command-runner.js';function a208_0x26f7(){var _0x46fcbc=['14724INKSmm','14xLYUXS','3NpeFxE','63814DINuPZ','890UwNpbo','13020601mVPvRb','3058896wIOwal','4795040JsPCaQ','2786504nguYcR','4BpUBBg','5973507zcDmON'];a208_0x26f7=function(){return _0x46fcbc;};return a208_0x26f7();}
@@ -1 +1 @@
1
- function a209_0x5392(_0x1a11c0,_0xcc9016){_0x1a11c0=_0x1a11c0-0x1d5;const _0x37a44e=a209_0x37a4();let _0x53922f=_0x37a44e[_0x1a11c0];return _0x53922f;}(function(_0x14d827,_0x20909a){const _0x212140=a209_0x5392,_0x1eb052=_0x14d827();while(!![]){try{const _0x3323be=parseInt(_0x212140(0x1e2))/0x1*(parseInt(_0x212140(0x1db))/0x2)+-parseInt(_0x212140(0x1d7))/0x3+parseInt(_0x212140(0x1dd))/0x4*(parseInt(_0x212140(0x1de))/0x5)+-parseInt(_0x212140(0x1d6))/0x6+-parseInt(_0x212140(0x1dc))/0x7*(parseInt(_0x212140(0x1d9))/0x8)+-parseInt(_0x212140(0x1e3))/0x9*(parseInt(_0x212140(0x1e0))/0xa)+-parseInt(_0x212140(0x1df))/0xb*(-parseInt(_0x212140(0x1d5))/0xc);if(_0x3323be===_0x20909a)break;else _0x1eb052['push'](_0x1eb052['shift']());}catch(_0x29a918){_0x1eb052['push'](_0x1eb052['shift']());}}}(a209_0x37a4,0x7e5e7));function a209_0x37a4(){const _0x3cb305=['89FvRcdr','279VVoKPT','12RhwitN','4382880tXCEym','1935285MIIYjm','map','184ojNlDU','slice','12890ZDnHFf','118027zfXPhz','16kbAcBH','621340DZfuZq','23430517Kcrbkj','296690UfZqFE','length'];a209_0x37a4=function(){return _0x3cb305;};return a209_0x37a4();}export async function batchAsync(_0x23f8a5,_0x5259df,_0xc4dc36=0xa){const _0xacbff3=a209_0x5392,_0x4c9b12=[];for(let _0x2d60a7=0x0;_0x2d60a7<_0x23f8a5[_0xacbff3(0x1e1)];_0x2d60a7+=_0xc4dc36){const _0x5d7749=_0x23f8a5[_0xacbff3(0x1da)](_0x2d60a7,_0x2d60a7+_0xc4dc36),_0x1bd440=await Promise['all'](_0x5d7749[_0xacbff3(0x1d8)](_0x5259df));_0x4c9b12['push'](..._0x1bd440);}return _0x4c9b12;}
1
+ function a209_0x4391(){const _0xbe9007=['30635802ERXWyO','438VGLVHf','1135728wPjvJb','184IiAZXr','161098zDZnNS','484710HZdlrw','push','3477150XrefaJ','map','slice','396tmJOKj','all','4059640lEHJVL'];a209_0x4391=function(){return _0xbe9007;};return a209_0x4391();}function a209_0x253c(_0x4dac49,_0x1f90cc){_0x4dac49=_0x4dac49-0x1da;const _0x4391be=a209_0x4391();let _0x253c50=_0x4391be[_0x4dac49];return _0x253c50;}(function(_0x4b4474,_0x27f01e){const _0x21b5ba=a209_0x253c,_0x5bea5e=_0x4b4474();while(!![]){try{const _0x2b86be=-parseInt(_0x21b5ba(0x1e6))/0x1+-parseInt(_0x21b5ba(0x1e3))/0x2+-parseInt(_0x21b5ba(0x1e2))/0x3*(parseInt(_0x21b5ba(0x1de))/0x4)+-parseInt(_0x21b5ba(0x1e0))/0x5+-parseInt(_0x21b5ba(0x1db))/0x6+parseInt(_0x21b5ba(0x1e5))/0x7*(-parseInt(_0x21b5ba(0x1e4))/0x8)+parseInt(_0x21b5ba(0x1e1))/0x9;if(_0x2b86be===_0x27f01e)break;else _0x5bea5e['push'](_0x5bea5e['shift']());}catch(_0x115252){_0x5bea5e['push'](_0x5bea5e['shift']());}}}(a209_0x4391,0x659af));export async function batchAsync(_0x20ceea,_0x17a0b1,_0x3ef193=0xa){const _0x284077=a209_0x253c,_0x15f9c8=[];for(let _0x57a8db=0x0;_0x57a8db<_0x20ceea['length'];_0x57a8db+=_0x3ef193){const _0xe2a0d=_0x20ceea[_0x284077(0x1dd)](_0x57a8db,_0x57a8db+_0x3ef193),_0x3ef6ea=await Promise[_0x284077(0x1df)](_0xe2a0d[_0x284077(0x1dc)](_0x17a0b1));_0x15f9c8[_0x284077(0x1da)](..._0x3ef6ea);}return _0x15f9c8;}
@@ -1 +1 @@
1
- const a210_0x18c017=a210_0x56ee;(function(_0x44fe85,_0x19514a){const _0x5278cd=a210_0x56ee,_0x4d6f7f=_0x44fe85();while(!![]){try{const _0xb36aaf=-parseInt(_0x5278cd(0x95))/0x1+-parseInt(_0x5278cd(0x84))/0x2+-parseInt(_0x5278cd(0x86))/0x3+-parseInt(_0x5278cd(0x91))/0x4+-parseInt(_0x5278cd(0x93))/0x5*(-parseInt(_0x5278cd(0x83))/0x6)+-parseInt(_0x5278cd(0x8d))/0x7*(parseInt(_0x5278cd(0x9e))/0x8)+parseInt(_0x5278cd(0x9d))/0x9;if(_0xb36aaf===_0x19514a)break;else _0x4d6f7f['push'](_0x4d6f7f['shift']());}catch(_0x30ebe2){_0x4d6f7f['push'](_0x4d6f7f['shift']());}}}(a210_0x1e68,0xbaad2));import*as a210_0x3aafbc from'chalk';const Chalk=a210_0x3aafbc[a210_0x18c017(0x8e)];function a210_0x56ee(_0xeed038,_0x3fa51b){_0xeed038=_0xeed038-0x80;const _0x1e6808=a210_0x1e68();let _0x56ee5f=_0x1e6808[_0xeed038];return _0x56ee5f;}export function shouldUseColor(_0xcdbf29={}){const _0x373c11=a210_0x18c017;if(_0xcdbf29[_0x373c11(0x9c)]===!![])return![];if(_0xcdbf29[_0x373c11(0x92)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x373c11(0x89)][_0x373c11(0x87)]??![];}export function getChalk(_0x3f12f9={}){if(shouldUseColor(_0x3f12f9))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x18a913,_0x457c01={}){const _0x5f5af6=a210_0x18c017;return getChalk(_0x457c01)[_0x5f5af6(0x90)](_0x18a913);}export function colorHeader(_0x5df11a,_0x58926e={}){const _0x516922=a210_0x18c017;return getChalk(_0x58926e)[_0x516922(0x85)](_0x5df11a);}export function colorType(_0x3cfbd5,_0xdd24f8={}){return getChalk(_0xdd24f8)['dim'](_0x3cfbd5);}export function colorJSONKey(_0x1c22e1,_0x575fa9={}){const _0x1d6c55=a210_0x18c017;return getChalk(_0x575fa9)[_0x1d6c55(0x8c)](_0x1c22e1);}export function colorJSONString(_0x2e4d9b,_0x162844={}){const _0x20200d=a210_0x18c017;return getChalk(_0x162844)[_0x20200d(0x96)](_0x2e4d9b);}export function colorJSONNumber(_0x17bbd5,_0x409178={}){const _0x50ad1b=a210_0x18c017;return getChalk(_0x409178)[_0x50ad1b(0x85)](_0x17bbd5);}export function colorJSONBoolean(_0x284dcf,_0x1cb9a5={}){const _0xc9e761=a210_0x18c017;return getChalk(_0x1cb9a5)[_0xc9e761(0x82)](_0x284dcf);}function a210_0x1e68(){const _0x1bb2c7=['repeat','number','stringify','noColor','45798921TXxyqk','6867560SLGYnz','isArray','object','yellow','1050rcYwXt','1804954LeHDBY','cyan','3271407Gikymu','isTTY','boolean','stdout','string','join','blue','7fpZMDL','Chalk','map','dim','4306656MrZPKV','color','2855DehhlT','null','496013QTyAsM','green','entries','length'];a210_0x1e68=function(){return _0x1bb2c7;};return a210_0x1e68();}export function colorJSONNull(_0x5c3ee3,_0x21e0a8={}){const _0x630e59=a210_0x18c017;return getChalk(_0x21e0a8)[_0x630e59(0x90)](_0x5c3ee3);}export function colorizeJSONCompact(_0x4561e5,_0x2ffecc={}){const _0x3f2bbb=a210_0x18c017;if(!shouldUseColor(_0x2ffecc))return JSON[_0x3f2bbb(0x9b)](_0x4561e5);if(_0x4561e5===null)return colorJSONNull(_0x3f2bbb(0x94),_0x2ffecc);if(typeof _0x4561e5===_0x3f2bbb(0x88))return colorJSONBoolean(String(_0x4561e5),_0x2ffecc);if(typeof _0x4561e5===_0x3f2bbb(0x9a))return colorJSONNumber(String(_0x4561e5),_0x2ffecc);if(typeof _0x4561e5===_0x3f2bbb(0x8a))return colorJSONString(JSON['stringify'](_0x4561e5),_0x2ffecc);if(Array[_0x3f2bbb(0x80)](_0x4561e5)){if(_0x4561e5[_0x3f2bbb(0x98)]===0x0)return'[]';const _0x33a4a3=_0x4561e5[_0x3f2bbb(0x8f)](_0x13d6fb=>colorizeJSONCompact(_0x13d6fb,_0x2ffecc));return'['+_0x33a4a3[_0x3f2bbb(0x8b)](',')+']';}if(typeof _0x4561e5===_0x3f2bbb(0x81)){const _0x4c2097=Object[_0x3f2bbb(0x97)](_0x4561e5);if(_0x4c2097[_0x3f2bbb(0x98)]===0x0)return'{}';const _0x392bcb=_0x4c2097[_0x3f2bbb(0x8f)](([_0x1fa7d2,_0x2fda48])=>{const _0x10b404=colorJSONKey(JSON['stringify'](_0x1fa7d2),_0x2ffecc),_0x50a11f=colorizeJSONCompact(_0x2fda48,_0x2ffecc);return _0x10b404+':'+_0x50a11f;});return'{'+_0x392bcb[_0x3f2bbb(0x8b)](',')+'}';}return String(_0x4561e5);}export function colorizeJSON(_0x28c3fc,_0x4baf2a={},_0x5a5465=0x0){const _0x347d8e=a210_0x18c017;if(!shouldUseColor(_0x4baf2a))return JSON[_0x347d8e(0x9b)](_0x28c3fc,null,0x2);const _0x502870='\x20'[_0x347d8e(0x99)](_0x5a5465),_0x13078b=_0x5a5465+0x2;if(_0x28c3fc===null)return colorJSONNull(_0x347d8e(0x94),_0x4baf2a);if(typeof _0x28c3fc==='boolean')return colorJSONBoolean(String(_0x28c3fc),_0x4baf2a);if(typeof _0x28c3fc===_0x347d8e(0x9a))return colorJSONNumber(String(_0x28c3fc),_0x4baf2a);if(typeof _0x28c3fc===_0x347d8e(0x8a))return colorJSONString(JSON['stringify'](_0x28c3fc),_0x4baf2a);if(Array[_0x347d8e(0x80)](_0x28c3fc)){if(_0x28c3fc['length']===0x0)return'[]';const _0x4c05b=_0x28c3fc[_0x347d8e(0x8f)](_0x366a27=>{const _0x5570a6=_0x347d8e,_0x4ba756=colorizeJSON(_0x366a27,_0x4baf2a,_0x13078b);return''+'\x20'[_0x5570a6(0x99)](_0x13078b)+_0x4ba756;});return'[\x0a'+_0x4c05b[_0x347d8e(0x8b)](',\x0a')+('\x0a'+_0x502870+']');}if(typeof _0x28c3fc===_0x347d8e(0x81)){const _0x450ac2=Object[_0x347d8e(0x97)](_0x28c3fc);if(_0x450ac2['length']===0x0)return'{}';const _0x39c34f=_0x450ac2['map'](([_0x1ad9e9,_0x4c9ade])=>{const _0x3ea8f2=_0x347d8e,_0x1f4c84=colorJSONKey(JSON[_0x3ea8f2(0x9b)](_0x1ad9e9),_0x4baf2a),_0x1e3d51=colorizeJSON(_0x4c9ade,_0x4baf2a,_0x13078b);return''+'\x20'[_0x3ea8f2(0x99)](_0x13078b)+_0x1f4c84+':\x20'+_0x1e3d51;});return'{\x0a'+_0x39c34f[_0x347d8e(0x8b)](',\x0a')+('\x0a'+_0x502870+'}');}return String(_0x28c3fc);}
1
+ const a210_0x5e3619=a210_0x1b5d;(function(_0x33e0a7,_0x43bdb0){const _0x478020=a210_0x1b5d,_0x5996ad=_0x33e0a7();while(!![]){try{const _0x7ff023=parseInt(_0x478020(0x170))/0x1+parseInt(_0x478020(0x164))/0x2*(-parseInt(_0x478020(0x161))/0x3)+parseInt(_0x478020(0x172))/0x4+-parseInt(_0x478020(0x160))/0x5+parseInt(_0x478020(0x163))/0x6+-parseInt(_0x478020(0x169))/0x7+parseInt(_0x478020(0x16e))/0x8;if(_0x7ff023===_0x43bdb0)break;else _0x5996ad['push'](_0x5996ad['shift']());}catch(_0x84d7f6){_0x5996ad['push'](_0x5996ad['shift']());}}}(a210_0x17da,0x8dff1));function a210_0x1b5d(_0x376ff3,_0xa3ee5f){_0x376ff3=_0x376ff3-0x15c;const _0x17da2c=a210_0x17da();let _0x1b5dc8=_0x17da2c[_0x376ff3];return _0x1b5dc8;}import*as a210_0x20bfac from'chalk';const Chalk=a210_0x20bfac[a210_0x5e3619(0x165)];export function shouldUseColor(_0x13cda7={}){const _0x1428c3=a210_0x5e3619;if(_0x13cda7['noColor']===!![])return![];if(_0x13cda7[_0x1428c3(0x171)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x1428c3(0x15d)]['isTTY']??![];}export function getChalk(_0x4d3b6c={}){if(shouldUseColor(_0x4d3b6c))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x439a3e,_0x47b8b5={}){const _0x1f500d=a210_0x5e3619;return getChalk(_0x47b8b5)[_0x1f500d(0x162)](_0x439a3e);}export function colorHeader(_0x470c59,_0x431c66={}){const _0x311f7e=a210_0x5e3619;return getChalk(_0x431c66)[_0x311f7e(0x168)](_0x470c59);}export function colorType(_0x47fa5f,_0x309346={}){const _0x54b96d=a210_0x5e3619;return getChalk(_0x309346)[_0x54b96d(0x162)](_0x47fa5f);}function a210_0x17da(){const _0x4f4d5a=['7970256nAaULL','length','629251xUwnis','color','1498572sIjbGT','entries','null','join','number','stdout','stringify','string','3735025RQqJol','228mkdaJT','dim','1384002SYRiDY','12238hdaDqo','Chalk','map','object','cyan','3060239afgfUs','boolean','yellow','repeat','isArray'];a210_0x17da=function(){return _0x4f4d5a;};return a210_0x17da();}export function colorJSONKey(_0x245f49,_0x11babd={}){return getChalk(_0x11babd)['blue'](_0x245f49);}export function colorJSONString(_0x4a619d,_0x47fc0e={}){return getChalk(_0x47fc0e)['green'](_0x4a619d);}export function colorJSONNumber(_0x5e1ab2,_0x4695dc={}){const _0x2faa2f=a210_0x5e3619;return getChalk(_0x4695dc)[_0x2faa2f(0x168)](_0x5e1ab2);}export function colorJSONBoolean(_0x5341ba,_0x1c7634={}){const _0x23b34a=a210_0x5e3619;return getChalk(_0x1c7634)[_0x23b34a(0x16b)](_0x5341ba);}export function colorJSONNull(_0x13e3be,_0x230dbc={}){const _0x2c6f08=a210_0x5e3619;return getChalk(_0x230dbc)[_0x2c6f08(0x162)](_0x13e3be);}export function colorizeJSONCompact(_0x7a3fec,_0x33d915={}){const _0x1b0182=a210_0x5e3619;if(!shouldUseColor(_0x33d915))return JSON['stringify'](_0x7a3fec);if(_0x7a3fec===null)return colorJSONNull(_0x1b0182(0x174),_0x33d915);if(typeof _0x7a3fec===_0x1b0182(0x16a))return colorJSONBoolean(String(_0x7a3fec),_0x33d915);if(typeof _0x7a3fec===_0x1b0182(0x15c))return colorJSONNumber(String(_0x7a3fec),_0x33d915);if(typeof _0x7a3fec==='string')return colorJSONString(JSON[_0x1b0182(0x15e)](_0x7a3fec),_0x33d915);if(Array[_0x1b0182(0x16d)](_0x7a3fec)){if(_0x7a3fec[_0x1b0182(0x16f)]===0x0)return'[]';const _0x32aad6=_0x7a3fec[_0x1b0182(0x166)](_0x2d3537=>colorizeJSONCompact(_0x2d3537,_0x33d915));return'['+_0x32aad6['join'](',')+']';}if(typeof _0x7a3fec===_0x1b0182(0x167)){const _0x10659a=Object['entries'](_0x7a3fec);if(_0x10659a[_0x1b0182(0x16f)]===0x0)return'{}';const _0x111fef=_0x10659a[_0x1b0182(0x166)](([_0x97c6f7,_0x413e41])=>{const _0x2a11af=_0x1b0182,_0x1637bb=colorJSONKey(JSON[_0x2a11af(0x15e)](_0x97c6f7),_0x33d915),_0xcb625c=colorizeJSONCompact(_0x413e41,_0x33d915);return _0x1637bb+':'+_0xcb625c;});return'{'+_0x111fef[_0x1b0182(0x175)](',')+'}';}return String(_0x7a3fec);}export function colorizeJSON(_0x58cd8f,_0x866e97={},_0x44ec69=0x0){const _0xe9714f=a210_0x5e3619;if(!shouldUseColor(_0x866e97))return JSON[_0xe9714f(0x15e)](_0x58cd8f,null,0x2);const _0x43883c='\x20'[_0xe9714f(0x16c)](_0x44ec69),_0x2d8aed=_0x44ec69+0x2;if(_0x58cd8f===null)return colorJSONNull('null',_0x866e97);if(typeof _0x58cd8f==='boolean')return colorJSONBoolean(String(_0x58cd8f),_0x866e97);if(typeof _0x58cd8f===_0xe9714f(0x15c))return colorJSONNumber(String(_0x58cd8f),_0x866e97);if(typeof _0x58cd8f===_0xe9714f(0x15f))return colorJSONString(JSON['stringify'](_0x58cd8f),_0x866e97);if(Array[_0xe9714f(0x16d)](_0x58cd8f)){if(_0x58cd8f[_0xe9714f(0x16f)]===0x0)return'[]';const _0xda889f=_0x58cd8f[_0xe9714f(0x166)](_0x4c8816=>{const _0x4a04aa=_0xe9714f,_0x181be4=colorizeJSON(_0x4c8816,_0x866e97,_0x2d8aed);return''+'\x20'[_0x4a04aa(0x16c)](_0x2d8aed)+_0x181be4;});return'[\x0a'+_0xda889f['join'](',\x0a')+('\x0a'+_0x43883c+']');}if(typeof _0x58cd8f===_0xe9714f(0x167)){const _0x35a36b=Object[_0xe9714f(0x173)](_0x58cd8f);if(_0x35a36b[_0xe9714f(0x16f)]===0x0)return'{}';const _0x4bd5a0=_0x35a36b[_0xe9714f(0x166)](([_0x521b3b,_0x49f7ef])=>{const _0x49e183=_0xe9714f,_0x1eefca=colorJSONKey(JSON[_0x49e183(0x15e)](_0x521b3b),_0x866e97),_0x514343=colorizeJSON(_0x49f7ef,_0x866e97,_0x2d8aed);return''+'\x20'[_0x49e183(0x16c)](_0x2d8aed)+_0x1eefca+':\x20'+_0x514343;});return'{\x0a'+_0x4bd5a0[_0xe9714f(0x175)](',\x0a')+('\x0a'+_0x43883c+'}');}return String(_0x58cd8f);}
@@ -1 +1 @@
1
- function a211_0x3ae2(){const _0x4f5adc=['length','6788970gFACiL','14qHYWtV','5GQOUGm','11013OXYeiW','some','250ZUVdqJ','old','size','fill','\x20\x20...','added','map','max','type','min','14280650GUYcwI','green','padStart','split','push','1958718UiNFpW','\x20\x20\x20','repeat','new','unchanged','\x20-\x20','content','4945104lrzSYD','1231676ZsdbqS','removed','forEach','has','join','288632LVsgYQ','\x20+\x20'];a211_0x3ae2=function(){return _0x4f5adc;};return a211_0x3ae2();}(function(_0xf8b27,_0x2ae06a){const _0x2a0102=a211_0x5873,_0x1ac316=_0xf8b27();while(!![]){try{const _0x2786c8=-parseInt(_0x2a0102(0x1bf))/0x1+parseInt(_0x2a0102(0x1a3))/0x2*(parseInt(_0x2a0102(0x1a1))/0x3)+parseInt(_0x2a0102(0x1ba))/0x4*(-parseInt(_0x2a0102(0x1a0))/0x5)+-parseInt(_0x2a0102(0x1b2))/0x6*(-parseInt(_0x2a0102(0x19f))/0x7)+parseInt(_0x2a0102(0x1b9))/0x8+parseInt(_0x2a0102(0x19e))/0x9+-parseInt(_0x2a0102(0x1ad))/0xa;if(_0x2786c8===_0x2ae06a)break;else _0x1ac316['push'](_0x1ac316['shift']());}catch(_0x10edbd){_0x1ac316['push'](_0x1ac316['shift']());}}}(a211_0x3ae2,0x70371));import a211_0x1362db from'chalk';export function generateDiff(_0x449f91,_0x117ca1){const _0x3a2add=a211_0x5873,_0x33f63f=_0x449f91['split']('\x0a'),_0x14e069=_0x117ca1[_0x3a2add(0x1b0)]('\x0a'),_0x3199f6=[],_0xeca68c=computeLCS(_0x33f63f,_0x14e069);let _0x28cece=0x0,_0x20a535=0x0,_0x964fbe=0x0;while(_0x28cece<_0x33f63f['length']||_0x20a535<_0x14e069[_0x3a2add(0x19d)]){if(_0x964fbe<_0xeca68c[_0x3a2add(0x19d)]&&_0x28cece<_0x33f63f['length']&&_0x33f63f[_0x28cece]===_0xeca68c[_0x964fbe])_0x20a535<_0x14e069[_0x3a2add(0x19d)]&&_0x14e069[_0x20a535]===_0xeca68c[_0x964fbe]?(_0x3199f6[_0x3a2add(0x1b1)]({'type':_0x3a2add(0x1b6),'content':_0x33f63f[_0x28cece]}),_0x28cece++,_0x20a535++,_0x964fbe++):(_0x3199f6[_0x3a2add(0x1b1)]({'type':'added','content':_0x14e069[_0x20a535]}),_0x20a535++);else{if(_0x964fbe<_0xeca68c[_0x3a2add(0x19d)]&&_0x20a535<_0x14e069['length']&&_0x14e069[_0x20a535]===_0xeca68c[_0x964fbe])_0x3199f6[_0x3a2add(0x1b1)]({'type':_0x3a2add(0x1bb),'content':_0x33f63f[_0x28cece]}),_0x28cece++;else{if(_0x28cece<_0x33f63f[_0x3a2add(0x19d)]&&(_0x964fbe>=_0xeca68c[_0x3a2add(0x19d)]||_0x33f63f[_0x28cece]!==_0xeca68c[_0x964fbe]))_0x3199f6[_0x3a2add(0x1b1)]({'type':_0x3a2add(0x1bb),'content':_0x33f63f[_0x28cece]}),_0x28cece++;else _0x20a535<_0x14e069[_0x3a2add(0x19d)]&&(_0x3199f6[_0x3a2add(0x1b1)]({'type':_0x3a2add(0x1a8),'content':_0x14e069[_0x20a535]}),_0x20a535++);}}}return _0x3199f6;}function computeLCS(_0x31dd4,_0x28fc6f){const _0x490b87=a211_0x5873,_0x3aab6f=_0x31dd4['length'],_0x3d1c1b=_0x28fc6f[_0x490b87(0x19d)],_0x111fee=Array(_0x3aab6f+0x1)[_0x490b87(0x1a6)](null)[_0x490b87(0x1a9)](()=>Array(_0x3d1c1b+0x1)[_0x490b87(0x1a6)](0x0));for(let _0x365df0=0x1;_0x365df0<=_0x3aab6f;_0x365df0++){for(let _0x303a5b=0x1;_0x303a5b<=_0x3d1c1b;_0x303a5b++){_0x31dd4[_0x365df0-0x1]===_0x28fc6f[_0x303a5b-0x1]?_0x111fee[_0x365df0][_0x303a5b]=_0x111fee[_0x365df0-0x1][_0x303a5b-0x1]+0x1:_0x111fee[_0x365df0][_0x303a5b]=Math[_0x490b87(0x1aa)](_0x111fee[_0x365df0-0x1][_0x303a5b],_0x111fee[_0x365df0][_0x303a5b-0x1]);}}const _0x1bfe5f=[];let _0x50e419=_0x3aab6f,_0x55e250=_0x3d1c1b;while(_0x50e419>0x0&&_0x55e250>0x0){if(_0x31dd4[_0x50e419-0x1]===_0x28fc6f[_0x55e250-0x1])_0x1bfe5f['unshift'](_0x31dd4[_0x50e419-0x1]),_0x50e419--,_0x55e250--;else _0x111fee[_0x50e419-0x1][_0x55e250]>_0x111fee[_0x50e419][_0x55e250-0x1]?_0x50e419--:_0x55e250--;}return _0x1bfe5f;}export function formatDiffWithColors(_0x4cbe0f,_0x1fee11=0x3){const _0xb8bf93=a211_0x5873,_0x14e178=new Set();_0x4cbe0f[_0xb8bf93(0x1bc)]((_0xbe9db6,_0x4bd583)=>{const _0x5bfd25=_0xb8bf93;_0xbe9db6[_0x5bfd25(0x1ab)]!==_0x5bfd25(0x1b6)&&_0x14e178['add'](_0x4bd583);});if(_0x14e178[_0xb8bf93(0x1a5)]===0x0)return'';const _0x3b3fc9=new Set();for(const _0x49eeaf of _0x14e178){for(let _0x1609b3=Math[_0xb8bf93(0x1aa)](0x0,_0x49eeaf-_0x1fee11);_0x1609b3<=Math[_0xb8bf93(0x1ac)](_0x4cbe0f['length']-0x1,_0x49eeaf+_0x1fee11);_0x1609b3++){_0x3b3fc9['add'](_0x1609b3);}}const _0x22bd24=[];let _0x222eb3=-0x1;const _0x3967af=_0x4cbe0f[_0xb8bf93(0x19d)],_0x2d19b7=Math[_0xb8bf93(0x1aa)](0x3,String(_0x3967af)[_0xb8bf93(0x19d)]),_0x3be524=[];let _0x4d9ed1=0x0,_0x50053b=0x0;for(const _0xd2db7a of _0x4cbe0f){if(_0xd2db7a['type']===_0xb8bf93(0x1bb))_0x4d9ed1++,_0x3be524[_0xb8bf93(0x1b1)]({'old':_0x4d9ed1,'new':0x0});else _0xd2db7a[_0xb8bf93(0x1ab)]===_0xb8bf93(0x1a8)?(_0x50053b++,_0x3be524[_0xb8bf93(0x1b1)]({'old':0x0,'new':_0x50053b})):(_0x4d9ed1++,_0x50053b++,_0x3be524[_0xb8bf93(0x1b1)]({'old':_0x4d9ed1,'new':_0x50053b}));}for(let _0xe25a6=0x0;_0xe25a6<_0x4cbe0f[_0xb8bf93(0x19d)];_0xe25a6++){if(!_0x3b3fc9[_0xb8bf93(0x1bd)](_0xe25a6))continue;_0x222eb3!==-0x1&&_0xe25a6>_0x222eb3+0x1&&_0x22bd24[_0xb8bf93(0x1b1)](a211_0x1362db['cyan'](_0xb8bf93(0x1a7)));_0x222eb3=_0xe25a6;const _0x46ca82=_0x4cbe0f[_0xe25a6],_0x1ca6c9=_0x3be524[_0xe25a6],_0x19c7ec=_0x1ca6c9[_0xb8bf93(0x1a4)]>0x0?String(_0x1ca6c9[_0xb8bf93(0x1a4)])[_0xb8bf93(0x1af)](_0x2d19b7):'\x20'[_0xb8bf93(0x1b4)](_0x2d19b7),_0x3c3394=_0x1ca6c9[_0xb8bf93(0x1b5)]>0x0?String(_0x1ca6c9['new'])[_0xb8bf93(0x1af)](_0x2d19b7):'\x20'[_0xb8bf93(0x1b4)](_0x2d19b7);switch(_0x46ca82[_0xb8bf93(0x1ab)]){case _0xb8bf93(0x1bb):_0x22bd24['push'](a211_0x1362db['red'](_0x19c7ec+'\x20'+_0x3c3394+_0xb8bf93(0x1b7)+_0x46ca82[_0xb8bf93(0x1b8)]));break;case _0xb8bf93(0x1a8):_0x22bd24[_0xb8bf93(0x1b1)](a211_0x1362db[_0xb8bf93(0x1ae)](_0x19c7ec+'\x20'+_0x3c3394+_0xb8bf93(0x19c)+_0x46ca82['content']));break;default:_0x22bd24['push'](a211_0x1362db['dim'](_0x19c7ec+'\x20'+_0x3c3394+_0xb8bf93(0x1b3)+_0x46ca82['content']));break;}}return _0x22bd24[_0xb8bf93(0x1be)]('\x0a');}function a211_0x5873(_0xfb9af8,_0x236259){_0xfb9af8=_0xfb9af8-0x19c;const _0x3ae20a=a211_0x3ae2();let _0x587310=_0x3ae20a[_0xfb9af8];return _0x587310;}export function hasChanges(_0x569319){const _0xd48d41=a211_0x5873;return _0x569319[_0xd48d41(0x1a2)](_0x4527ca=>_0x4527ca[_0xd48d41(0x1ab)]!==_0xd48d41(0x1b6));}
1
+ (function(_0x3c1efc,_0x2d6ec5){const _0x2dd715=a211_0x3f9b,_0x2c5501=_0x3c1efc();while(!![]){try{const _0x10acab=-parseInt(_0x2dd715(0xf0))/0x1*(parseInt(_0x2dd715(0xee))/0x2)+parseInt(_0x2dd715(0xfe))/0x3*(-parseInt(_0x2dd715(0xf7))/0x4)+-parseInt(_0x2dd715(0xe4))/0x5*(parseInt(_0x2dd715(0xe1))/0x6)+parseInt(_0x2dd715(0xe0))/0x7*(parseInt(_0x2dd715(0xe3))/0x8)+parseInt(_0x2dd715(0xfa))/0x9*(parseInt(_0x2dd715(0xe6))/0xa)+parseInt(_0x2dd715(0x102))/0xb+parseInt(_0x2dd715(0xfc))/0xc*(-parseInt(_0x2dd715(0xff))/0xd);if(_0x10acab===_0x2d6ec5)break;else _0x2c5501['push'](_0x2c5501['shift']());}catch(_0x2264bc){_0x2c5501['push'](_0x2c5501['shift']());}}}(a211_0x4c2a,0xf0a25));import a211_0x10cd07 from'chalk';export function generateDiff(_0x27e94f,_0x333582){const _0x5dc847=a211_0x3f9b,_0x454be0=_0x27e94f[_0x5dc847(0xed)]('\x0a'),_0x5d39a4=_0x333582[_0x5dc847(0xed)]('\x0a'),_0x25a6e9=[],_0x522534=computeLCS(_0x454be0,_0x5d39a4);let _0x9f37b6=0x0,_0x441b1b=0x0,_0x254bfb=0x0;while(_0x9f37b6<_0x454be0['length']||_0x441b1b<_0x5d39a4[_0x5dc847(0xf2)]){if(_0x254bfb<_0x522534[_0x5dc847(0xf2)]&&_0x9f37b6<_0x454be0[_0x5dc847(0xf2)]&&_0x454be0[_0x9f37b6]===_0x522534[_0x254bfb])_0x441b1b<_0x5d39a4[_0x5dc847(0xf2)]&&_0x5d39a4[_0x441b1b]===_0x522534[_0x254bfb]?(_0x25a6e9[_0x5dc847(0xe2)]({'type':_0x5dc847(0xf8),'content':_0x454be0[_0x9f37b6]}),_0x9f37b6++,_0x441b1b++,_0x254bfb++):(_0x25a6e9[_0x5dc847(0xe2)]({'type':_0x5dc847(0xf9),'content':_0x5d39a4[_0x441b1b]}),_0x441b1b++);else{if(_0x254bfb<_0x522534['length']&&_0x441b1b<_0x5d39a4[_0x5dc847(0xf2)]&&_0x5d39a4[_0x441b1b]===_0x522534[_0x254bfb])_0x25a6e9[_0x5dc847(0xe2)]({'type':_0x5dc847(0xec),'content':_0x454be0[_0x9f37b6]}),_0x9f37b6++;else{if(_0x9f37b6<_0x454be0['length']&&(_0x254bfb>=_0x522534[_0x5dc847(0xf2)]||_0x454be0[_0x9f37b6]!==_0x522534[_0x254bfb]))_0x25a6e9[_0x5dc847(0xe2)]({'type':_0x5dc847(0xec),'content':_0x454be0[_0x9f37b6]}),_0x9f37b6++;else _0x441b1b<_0x5d39a4[_0x5dc847(0xf2)]&&(_0x25a6e9[_0x5dc847(0xe2)]({'type':_0x5dc847(0xf9),'content':_0x5d39a4[_0x441b1b]}),_0x441b1b++);}}}return _0x25a6e9;}function a211_0x3f9b(_0x3659d9,_0x25ff68){_0x3659d9=_0x3659d9-0xdf;const _0x4c2ae4=a211_0x4c2a();let _0x3f9bd6=_0x4c2ae4[_0x3659d9];return _0x3f9bd6;}function computeLCS(_0x5d3d9b,_0x60ff3){const _0x13a543=a211_0x3f9b,_0x98e45d=_0x5d3d9b[_0x13a543(0xf2)],_0x49541c=_0x60ff3[_0x13a543(0xf2)],_0xa1daaa=Array(_0x98e45d+0x1)['fill'](null)[_0x13a543(0xef)](()=>Array(_0x49541c+0x1)[_0x13a543(0x100)](0x0));for(let _0x97e819=0x1;_0x97e819<=_0x98e45d;_0x97e819++){for(let _0x13f2cc=0x1;_0x13f2cc<=_0x49541c;_0x13f2cc++){_0x5d3d9b[_0x97e819-0x1]===_0x60ff3[_0x13f2cc-0x1]?_0xa1daaa[_0x97e819][_0x13f2cc]=_0xa1daaa[_0x97e819-0x1][_0x13f2cc-0x1]+0x1:_0xa1daaa[_0x97e819][_0x13f2cc]=Math[_0x13a543(0xf4)](_0xa1daaa[_0x97e819-0x1][_0x13f2cc],_0xa1daaa[_0x97e819][_0x13f2cc-0x1]);}}const _0x4515c3=[];let _0x451c26=_0x98e45d,_0x13b300=_0x49541c;while(_0x451c26>0x0&&_0x13b300>0x0){if(_0x5d3d9b[_0x451c26-0x1]===_0x60ff3[_0x13b300-0x1])_0x4515c3[_0x13a543(0xfb)](_0x5d3d9b[_0x451c26-0x1]),_0x451c26--,_0x13b300--;else _0xa1daaa[_0x451c26-0x1][_0x13b300]>_0xa1daaa[_0x451c26][_0x13b300-0x1]?_0x451c26--:_0x13b300--;}return _0x4515c3;}export function formatDiffWithColors(_0x2b642a,_0x43f4e2=0x3){const _0xf362aa=a211_0x3f9b,_0x1830a7=new Set();_0x2b642a[_0xf362aa(0xf5)]((_0x51f619,_0x5385d6)=>{const _0x2a7b3a=_0xf362aa;_0x51f619['type']!==_0x2a7b3a(0xf8)&&_0x1830a7[_0x2a7b3a(0xe9)](_0x5385d6);});if(_0x1830a7['size']===0x0)return'';const _0x4d8308=new Set();for(const _0x27a1e9 of _0x1830a7){for(let _0x9e1219=Math['max'](0x0,_0x27a1e9-_0x43f4e2);_0x9e1219<=Math[_0xf362aa(0x104)](_0x2b642a[_0xf362aa(0xf2)]-0x1,_0x27a1e9+_0x43f4e2);_0x9e1219++){_0x4d8308[_0xf362aa(0xe9)](_0x9e1219);}}const _0x35a38c=[];let _0x1a66a2=-0x1;const _0x3edf4c=_0x2b642a[_0xf362aa(0xf2)],_0x5b795f=Math[_0xf362aa(0xf4)](0x3,String(_0x3edf4c)[_0xf362aa(0xf2)]),_0x497007=[];let _0x25031c=0x0,_0x287833=0x0;for(const _0x3a343c of _0x2b642a){if(_0x3a343c[_0xf362aa(0x101)]===_0xf362aa(0xec))_0x25031c++,_0x497007[_0xf362aa(0xe2)]({'old':_0x25031c,'new':0x0});else _0x3a343c[_0xf362aa(0x101)]===_0xf362aa(0xf9)?(_0x287833++,_0x497007['push']({'old':0x0,'new':_0x287833})):(_0x25031c++,_0x287833++,_0x497007[_0xf362aa(0xe2)]({'old':_0x25031c,'new':_0x287833}));}for(let _0x34fbbd=0x0;_0x34fbbd<_0x2b642a[_0xf362aa(0xf2)];_0x34fbbd++){if(!_0x4d8308[_0xf362aa(0xdf)](_0x34fbbd))continue;_0x1a66a2!==-0x1&&_0x34fbbd>_0x1a66a2+0x1&&_0x35a38c[_0xf362aa(0xe2)](a211_0x10cd07[_0xf362aa(0xf6)](_0xf362aa(0xf3)));_0x1a66a2=_0x34fbbd;const _0x22aab2=_0x2b642a[_0x34fbbd],_0xe4b05=_0x497007[_0x34fbbd],_0x3d0d81=_0xe4b05[_0xf362aa(0x103)]>0x0?String(_0xe4b05[_0xf362aa(0x103)])[_0xf362aa(0xeb)](_0x5b795f):'\x20'['repeat'](_0x5b795f),_0x34dc0f=_0xe4b05[_0xf362aa(0xe8)]>0x0?String(_0xe4b05[_0xf362aa(0xe8)])[_0xf362aa(0xeb)](_0x5b795f):'\x20'['repeat'](_0x5b795f);switch(_0x22aab2[_0xf362aa(0x101)]){case _0xf362aa(0xec):_0x35a38c[_0xf362aa(0xe2)](a211_0x10cd07[_0xf362aa(0xf1)](_0x3d0d81+'\x20'+_0x34dc0f+_0xf362aa(0xea)+_0x22aab2[_0xf362aa(0xe7)]));break;case _0xf362aa(0xf9):_0x35a38c[_0xf362aa(0xe2)](a211_0x10cd07['green'](_0x3d0d81+'\x20'+_0x34dc0f+'\x20+\x20'+_0x22aab2[_0xf362aa(0xe7)]));break;default:_0x35a38c[_0xf362aa(0xe2)](a211_0x10cd07['dim'](_0x3d0d81+'\x20'+_0x34dc0f+'\x20\x20\x20'+_0x22aab2['content']));break;}}return _0x35a38c[_0xf362aa(0xe5)]('\x0a');}function a211_0x4c2a(){const _0x4642b0=['add','\x20-\x20','padStart','removed','split','14092TSaUVg','map','11jPPKmH','red','length','\x20\x20...','max','forEach','cyan','4HkDAbR','unchanged','added','33975OoPArF','unshift','27444xoBTwS','some','2015451vJlJXO','2197ztLjLb','fill','type','7173639JZuDrK','old','min','has','7PzMwqL','2410410eFVkKq','push','4670192DosVUb','5bOJPBB','join','3410JAwPvx','content','new'];a211_0x4c2a=function(){return _0x4642b0;};return a211_0x4c2a();}export function hasChanges(_0x548541){const _0x1c63b9=a211_0x3f9b;return _0x548541[_0x1c63b9(0xfd)](_0x490e9b=>_0x490e9b['type']!==_0x1c63b9(0xf8));}
@@ -1 +1 @@
1
- function a212_0x49fe(){const _0x44218c=['\x20has\x20insecure\x20permissions\x20(','dirname','1480780tzIkIm','1503DJSjou','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync','857015OpJKOM','warn','2892250YHOwAu',').\x20','chmodSync','statSync','Warning:\x20','138llEPAn','mkdirSync','9904tKEBRV','Should\x20be\x200600\x20or\x20more\x20restrictive.','toString','4792680DxLTwa','3046386HawyvX','288092OgFHKT','mode'];a212_0x49fe=function(){return _0x44218c;};return a212_0x49fe();}(function(_0x2f7c30,_0x432ced){const _0x2de34f=a212_0x2cc0,_0x164195=_0x2f7c30();while(!![]){try{const _0x310122=parseInt(_0x2de34f(0x1c9))/0x1+parseInt(_0x2de34f(0x1c5))/0x2+-parseInt(_0x2de34f(0x1c0))/0x3+-parseInt(_0x2de34f(0x1bf))/0x4+parseInt(_0x2de34f(0x1cb))/0x5+parseInt(_0x2de34f(0x1ba))/0x6*(parseInt(_0x2de34f(0x1c1))/0x7)+parseInt(_0x2de34f(0x1bc))/0x8*(-parseInt(_0x2de34f(0x1c6))/0x9);if(_0x310122===_0x432ced)break;else _0x164195['push'](_0x164195['shift']());}catch(_0x1e7c6f){_0x164195['push'](_0x164195['shift']());}}}(a212_0x49fe,0xab671));import*as a212_0x48ad11 from'node:fs';import*as a212_0x47f600 from'node:path';export function setSecureFilePermissions(_0x62ea66){const _0xb02d79=a212_0x2cc0;try{a212_0x48ad11[_0xb02d79(0x1b7)](_0x62ea66,0x180);}catch{console[_0xb02d79(0x1ca)](_0xb02d79(0x1c7)+_0x62ea66);}}export function setSecureDirectoryPermissions(_0x1c31b5){const _0x26805d=a212_0x2cc0;try{a212_0x48ad11[_0x26805d(0x1b7)](_0x1c31b5,0x1c0);}catch{console[_0x26805d(0x1ca)](_0x26805d(0x1c7)+_0x1c31b5);}}export function createSecureDirectory(_0x58a765){const _0x214fe5=a212_0x2cc0;!a212_0x48ad11['existsSync'](_0x58a765)&&(a212_0x48ad11[_0x214fe5(0x1bb)](_0x58a765,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x58a765));}function a212_0x2cc0(_0x756714,_0x23d963){_0x756714=_0x756714-0x1b6;const _0x49fe3b=a212_0x49fe();let _0x2cc0d0=_0x49fe3b[_0x756714];return _0x2cc0d0;}export function validateSecureFilePermissions(_0x508bcc){const _0x442ee3=a212_0x2cc0;try{const _0x49f37e=a212_0x48ad11[_0x442ee3(0x1b8)](_0x508bcc),_0x41e48b=_0x49f37e[_0x442ee3(0x1c2)]&0x1ff,_0x4053a9=(_0x41e48b&0x3f)!==0x0;if(_0x4053a9)return console[_0x442ee3(0x1ca)](_0x442ee3(0x1b9)+_0x508bcc+_0x442ee3(0x1c3)+_0x41e48b[_0x442ee3(0x1be)](0x8)+_0x442ee3(0x1b6)+_0x442ee3(0x1bd)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x28be95,_0x4e3afe){const _0x2d0232=a212_0x2cc0,_0x1e4d71=a212_0x47f600[_0x2d0232(0x1c4)](_0x28be95);createSecureDirectory(_0x1e4d71),a212_0x48ad11[_0x2d0232(0x1c8)](_0x28be95,_0x4e3afe,{'mode':0x180}),setSecureFilePermissions(_0x28be95);}
1
+ (function(_0x5d5457,_0xe4856e){const _0x27e939=a212_0x5488,_0x25fa1f=_0x5d5457();while(!![]){try{const _0x19c163=-parseInt(_0x27e939(0x19e))/0x1+parseInt(_0x27e939(0x1a0))/0x2*(-parseInt(_0x27e939(0x1a3))/0x3)+-parseInt(_0x27e939(0x1a2))/0x4*(-parseInt(_0x27e939(0x19c))/0x5)+-parseInt(_0x27e939(0x1a1))/0x6+-parseInt(_0x27e939(0x194))/0x7+parseInt(_0x27e939(0x19b))/0x8+parseInt(_0x27e939(0x196))/0x9*(parseInt(_0x27e939(0x193))/0xa);if(_0x19c163===_0xe4856e)break;else _0x25fa1f['push'](_0x25fa1f['shift']());}catch(_0x731548){_0x25fa1f['push'](_0x25fa1f['shift']());}}}(a212_0x190e,0x39ce9));import*as a212_0x42e05b from'node:fs';import*as a212_0x1ae963 from'node:path';export function setSecureFilePermissions(_0x1b6134){const _0x5625b0=a212_0x5488;try{a212_0x42e05b[_0x5625b0(0x19f)](_0x1b6134,0x180);}catch{console[_0x5625b0(0x199)](_0x5625b0(0x198)+_0x1b6134);}}function a212_0x190e(){const _0x2ab898=['statSync','871488wEaPgQ','502345FkvaNE','mode','104767dAdNit','chmodSync','2bsnYqL','413130OTemnN','8DZtTUQ','86367JuIDde','toString','\x20has\x20insecure\x20permissions\x20(','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.',').\x20','dirname','10hHYvOz','1216173lJwjzZ','Warning:\x20','2727477cIUWab','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','warn'];a212_0x190e=function(){return _0x2ab898;};return a212_0x190e();}function a212_0x5488(_0xfd82f2,_0x49912a){_0xfd82f2=_0xfd82f2-0x192;const _0x190e67=a212_0x190e();let _0x5488ea=_0x190e67[_0xfd82f2];return _0x5488ea;}export function setSecureDirectoryPermissions(_0x36c3bd){const _0x20ef2b=a212_0x5488;try{a212_0x42e05b[_0x20ef2b(0x19f)](_0x36c3bd,0x1c0);}catch{console[_0x20ef2b(0x199)](_0x20ef2b(0x198)+_0x36c3bd);}}export function createSecureDirectory(_0x163172){const _0x45d40e=a212_0x5488;!a212_0x42e05b[_0x45d40e(0x197)](_0x163172)&&(a212_0x42e05b[_0x45d40e(0x1a6)](_0x163172,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x163172));}export function validateSecureFilePermissions(_0x40c400){const _0x484c54=a212_0x5488;try{const _0x2b3a2a=a212_0x42e05b[_0x484c54(0x19a)](_0x40c400),_0x35b84f=_0x2b3a2a[_0x484c54(0x19d)]&0x1ff,_0x4748ed=(_0x35b84f&0x3f)!==0x0;if(_0x4748ed)return console[_0x484c54(0x199)](_0x484c54(0x195)+_0x40c400+_0x484c54(0x1a5)+_0x35b84f[_0x484c54(0x1a4)](0x8)+_0x484c54(0x1a8)+_0x484c54(0x1a7)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x436017,_0x267117){const _0xe606be=a212_0x5488,_0x179d63=a212_0x1ae963[_0xe606be(0x192)](_0x436017);createSecureDirectory(_0x179d63),a212_0x42e05b['writeFileSync'](_0x436017,_0x267117,{'mode':0x180}),setSecureFilePermissions(_0x436017);}
@@ -1 +1 @@
1
- (function(_0x1375b2,_0x50b3a8){const _0x209e78=a213_0x4aff,_0x4384c8=_0x1375b2();while(!![]){try{const _0x69b9ae=parseInt(_0x209e78(0x1bc))/0x1*(-parseInt(_0x209e78(0x1b8))/0x2)+-parseInt(_0x209e78(0x1c5))/0x3*(parseInt(_0x209e78(0x1c3))/0x4)+parseInt(_0x209e78(0x1c9))/0x5*(parseInt(_0x209e78(0x1be))/0x6)+parseInt(_0x209e78(0x1bd))/0x7+parseInt(_0x209e78(0x1cb))/0x8*(-parseInt(_0x209e78(0x1bf))/0x9)+-parseInt(_0x209e78(0x1c6))/0xa*(parseInt(_0x209e78(0x1c2))/0xb)+parseInt(_0x209e78(0x1b9))/0xc;if(_0x69b9ae===_0x50b3a8)break;else _0x4384c8['push'](_0x4384c8['shift']());}catch(_0x37ed97){_0x4384c8['push'](_0x4384c8['shift']());}}}(a213_0x597f,0x3933f));function a213_0x4aff(_0x40321e,_0x11a6d5){_0x40321e=_0x40321e-0x1b6;const _0x597f06=a213_0x597f();let _0x4aff9f=_0x597f06[_0x40321e];return _0x4aff9f;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x529bbe){const _0xf48636=a213_0x4aff;try{return readFileSync(_0x529bbe,_0xf48636(0x1c0));}catch(_0x1d790c){const _0x5cdb8c=_0x1d790c[_0xf48636(0x1c4)];if(_0x5cdb8c==='ENOENT')throw new SDKError(ErrorCode[_0xf48636(0x1c1)],_0xf48636(0x1c7)+_0x529bbe+_0xf48636(0x1ba),_0x1d790c);else{if(_0x5cdb8c===_0xf48636(0x1cc))throw new SDKError(ErrorCode[_0xf48636(0x1b6)],_0xf48636(0x1b7)+_0x529bbe+'\x27',_0x1d790c);else throw new SDKError(ErrorCode[_0xf48636(0x1bb)],'Error\x20reading\x20file\x20\x27'+_0x529bbe+_0xf48636(0x1c8)+_0x1d790c[_0xf48636(0x1ca)],_0x1d790c);}}}function a213_0x597f(){const _0x22f5ae=['Permission\x20denied\x20reading\x20file\x20\x27','7916HdwIBl','10743108QqbuHB','\x27\x20not\x20found','INTERNAL','82pJEXRT','1843674sRFouy','6gjTMHe','353043XtxvcV','utf-8','NOT_FOUND','15059CRcXNz','483236icNmXi','code','3rbjISm','1070CYZkVA','File\x20\x27','\x27:\x20','495035PzBOHL','message','88mWkfXl','EACCES','PERMISSION_DENIED'];a213_0x597f=function(){return _0x22f5ae;};return a213_0x597f();}
1
+ (function(_0x50ac0f,_0x44c9ea){const _0x282ebb=a213_0x136d,_0x71037d=_0x50ac0f();while(!![]){try{const _0x23cbbc=parseInt(_0x282ebb(0x122))/0x1*(parseInt(_0x282ebb(0x127))/0x2)+parseInt(_0x282ebb(0x11b))/0x3*(-parseInt(_0x282ebb(0x128))/0x4)+parseInt(_0x282ebb(0x11d))/0x5*(parseInt(_0x282ebb(0x11f))/0x6)+-parseInt(_0x282ebb(0x119))/0x7+parseInt(_0x282ebb(0x126))/0x8+parseInt(_0x282ebb(0x121))/0x9*(-parseInt(_0x282ebb(0x11a))/0xa)+parseInt(_0x282ebb(0x114))/0xb;if(_0x23cbbc===_0x44c9ea)break;else _0x71037d['push'](_0x71037d['shift']());}catch(_0x5b8240){_0x71037d['push'](_0x71037d['shift']());}}}(a213_0x490b,0x4ac39));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x161a92){const _0x4e15ca=a213_0x136d;try{return readFileSync(_0x161a92,'utf-8');}catch(_0x20b353){const _0x7e8ee4=_0x20b353['code'];if(_0x7e8ee4===_0x4e15ca(0x118))throw new SDKError(ErrorCode[_0x4e15ca(0x125)],_0x4e15ca(0x120)+_0x161a92+_0x4e15ca(0x11e),_0x20b353);else{if(_0x7e8ee4===_0x4e15ca(0x124))throw new SDKError(ErrorCode[_0x4e15ca(0x117)],_0x4e15ca(0x116)+_0x161a92+'\x27',_0x20b353);else throw new SDKError(ErrorCode[_0x4e15ca(0x123)],_0x4e15ca(0x11c)+_0x161a92+_0x4e15ca(0x115)+_0x20b353['message'],_0x20b353);}}}function a213_0x136d(_0x96a893,_0x3b90c9){_0x96a893=_0x96a893-0x114;const _0x490bb2=a213_0x490b();let _0x136d70=_0x490bb2[_0x96a893];return _0x136d70;}function a213_0x490b(){const _0x308bdb=['21nXOAcv','Error\x20reading\x20file\x20\x27','5ynwNFY','\x27\x20not\x20found','2130888gcNFiJ','File\x20\x27','427032XlnPry','2vKWBoC','INTERNAL','EACCES','NOT_FOUND','686112ZTtzup','181912SbbllC','142908vgSSof','7601583bxxTPB','\x27:\x20','Permission\x20denied\x20reading\x20file\x20\x27','PERMISSION_DENIED','ENOENT','1649389btmTui','110FSxoar'];a213_0x490b=function(){return _0x308bdb;};return a213_0x490b();}
@@ -1 +1 @@
1
- function a214_0x3f43(_0x4d3565,_0x2a9b9b){_0x4d3565=_0x4d3565-0xd4;const _0x5d5979=a214_0x5d59();let _0x3f43d6=_0x5d5979[_0x4d3565];return _0x3f43d6;}(function(_0x20d8ab,_0xd5806){const _0x4b8430=a214_0x3f43,_0x42c6d2=_0x20d8ab();while(!![]){try{const _0x17d573=-parseInt(_0x4b8430(0xed))/0x1+parseInt(_0x4b8430(0xd4))/0x2+parseInt(_0x4b8430(0xef))/0x3*(parseInt(_0x4b8430(0xeb))/0x4)+-parseInt(_0x4b8430(0xd9))/0x5*(-parseInt(_0x4b8430(0xe3))/0x6)+-parseInt(_0x4b8430(0xe4))/0x7*(-parseInt(_0x4b8430(0xe6))/0x8)+parseInt(_0x4b8430(0xf0))/0x9+-parseInt(_0x4b8430(0xd6))/0xa;if(_0x17d573===_0xd5806)break;else _0x42c6d2['push'](_0x42c6d2['shift']());}catch(_0x31099b){_0x42c6d2['push'](_0x42c6d2['shift']());}}}(a214_0x5d59,0x7bd71));import*as a214_0x22f992 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a214_0x5d59(){const _0x126168=['set','data','toString','GitHub\x20API\x20returned\x20','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','tag_name','24dbcsbc','5501447dNElDF','now','8rSpbXI','statusCode','end','find','resolve','20LRzqcr','length','541207KQRPpA','fetchedAt','414381dLKQnI','8545734szOpxt','prerelease','/repos/','/releases?per_page=20','next','error','258622Swgtyp','timeout','24370170RiMUnt','releases','application/vnd.github+json','1162600RqQjfn','get','destroy','api.github.com'];a214_0x5d59=function(){return _0x126168;};return a214_0x5d59();}export function fetchGitHubReleases(_0x30ddee,_0x38097e,_0xac37fb){const _0x5a393e=a214_0x3f43,_0x25d6f3=_0x30ddee+'/'+_0x38097e,_0x51fcce=cache['get'](_0x25d6f3);if(_0x51fcce&&Date[_0x5a393e(0xe5)]()-_0x51fcce[_0x5a393e(0xee)]<CACHE_TTL_MS)return Promise[_0x5a393e(0xea)](_0x51fcce[_0x5a393e(0xd7)]);return new Promise((_0x2f37d0,_0x1b5e2c)=>{const _0x7a5066=_0x5a393e,_0x2cae9c={'hostname':_0x7a5066(0xdc),'path':_0x7a5066(0xf2)+_0x30ddee+'/'+_0x38097e+_0x7a5066(0xf3),'headers':{'User-Agent':_0xac37fb,'Accept':_0x7a5066(0xd8)},'timeout':REQUEST_TIMEOUT_MS},_0x43e543=a214_0x22f992[_0x7a5066(0xda)](_0x2cae9c,_0x18d699=>{const _0x5c2327=_0x7a5066;let _0x23ed7a='';_0x18d699['on'](_0x5c2327(0xde),_0x3eabe9=>{const _0x33eca8=_0x5c2327;_0x23ed7a+=_0x3eabe9[_0x33eca8(0xdf)]();}),_0x18d699['on'](_0x5c2327(0xe8),()=>{const _0x32ab30=_0x5c2327;if(_0x18d699[_0x32ab30(0xe7)]!==0xc8){_0x1b5e2c(new Error(_0x32ab30(0xe0)+_0x18d699[_0x32ab30(0xe7)]+':\x20'+_0x23ed7a['slice'](0x0,0xc8)));return;}try{const _0x54ac60=JSON['parse'](_0x23ed7a);cache[_0x32ab30(0xdd)](_0x25d6f3,{'releases':_0x54ac60,'fetchedAt':Date[_0x32ab30(0xe5)]()}),_0x2f37d0(_0x54ac60);}catch(_0x5aef30){_0x1b5e2c(_0x5aef30);}});});_0x43e543['on'](_0x7a5066(0xd5),()=>{const _0x22a2e1=_0x7a5066;_0x43e543[_0x22a2e1(0xdb)](),_0x1b5e2c(new Error(_0x22a2e1(0xe1)+REQUEST_TIMEOUT_MS+'ms'));}),_0x43e543['on'](_0x7a5066(0xf5),_0x1b5e2c);});}export async function resolveReleaseTag(_0x262bf8,_0x363639,_0x551db4,_0xd64ad){const _0x5dce9f=a214_0x3f43;if(_0x262bf8===_0x5dce9f(0xf4))return null;const _0xc1d493=await fetchGitHubReleases(_0x363639,_0x551db4,_0xd64ad);if(_0xc1d493[_0x5dce9f(0xec)]===0x0)return null;const _0x317930=_0xc1d493[_0x5dce9f(0xe9)](_0x4e29c2=>!_0x4e29c2[_0x5dce9f(0xf1)]);return _0x317930?_0x317930[_0x5dce9f(0xe2)]:null;}
1
+ (function(_0x1ce4d7,_0x2622f1){const _0x3b4066=a214_0x3410,_0x678b7e=_0x1ce4d7();while(!![]){try{const _0x4ce6b6=parseInt(_0x3b4066(0x95))/0x1*(-parseInt(_0x3b4066(0x9a))/0x2)+parseInt(_0x3b4066(0xa0))/0x3*(parseInt(_0x3b4066(0x8b))/0x4)+parseInt(_0x3b4066(0x9d))/0x5+parseInt(_0x3b4066(0x9c))/0x6*(parseInt(_0x3b4066(0xa4))/0x7)+parseInt(_0x3b4066(0x99))/0x8*(-parseInt(_0x3b4066(0x9f))/0x9)+-parseInt(_0x3b4066(0x89))/0xa*(-parseInt(_0x3b4066(0x9e))/0xb)+-parseInt(_0x3b4066(0x88))/0xc;if(_0x4ce6b6===_0x2622f1)break;else _0x678b7e['push'](_0x678b7e['shift']());}catch(_0x1972ed){_0x678b7e['push'](_0x678b7e['shift']());}}}(a214_0x52e8,0xad948));function a214_0x52e8(){const _0x10681a=['1004890BvbXZC','find','208yXWwWk','statusCode','length','error','slice','next','now','resolve','get','tag_name','2JTUGZF','/releases?per_page=20','api.github.com','fetchedAt','8gksxfn','1049674YRdzcI','releases','6CsuuNf','7055005OAcSQY','44hZeoFu','5815044GjJcrT','67140NgdJLg','prerelease','GitHub\x20API\x20returned\x20','parse','6275262zmKVVL','/repos/','application/vnd.github+json','end','toString','17596908GpSdqI'];a214_0x52e8=function(){return _0x10681a;};return a214_0x52e8();}import*as a214_0x2ec2c4 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x4d5dc2,_0xb17050,_0x3ba71f){const _0xfe62e9=a214_0x3410,_0x118c69=_0x4d5dc2+'/'+_0xb17050,_0x40026d=cache[_0xfe62e9(0x93)](_0x118c69);if(_0x40026d&&Date[_0xfe62e9(0x91)]()-_0x40026d[_0xfe62e9(0x98)]<CACHE_TTL_MS)return Promise[_0xfe62e9(0x92)](_0x40026d[_0xfe62e9(0x9b)]);return new Promise((_0x23ef75,_0x134c47)=>{const _0x3d81e0=_0xfe62e9,_0x2dcdcf={'hostname':_0x3d81e0(0x97),'path':_0x3d81e0(0x84)+_0x4d5dc2+'/'+_0xb17050+_0x3d81e0(0x96),'headers':{'User-Agent':_0x3ba71f,'Accept':_0x3d81e0(0x85)},'timeout':REQUEST_TIMEOUT_MS},_0x5bebe1=a214_0x2ec2c4['get'](_0x2dcdcf,_0x1fe446=>{const _0x5c5864=_0x3d81e0;let _0x52f521='';_0x1fe446['on']('data',_0x1ed411=>{const _0x550c3b=a214_0x3410;_0x52f521+=_0x1ed411[_0x550c3b(0x87)]();}),_0x1fe446['on'](_0x5c5864(0x86),()=>{const _0x2dd813=_0x5c5864;if(_0x1fe446['statusCode']!==0xc8){_0x134c47(new Error(_0x2dd813(0xa2)+_0x1fe446[_0x2dd813(0x8c)]+':\x20'+_0x52f521[_0x2dd813(0x8f)](0x0,0xc8)));return;}try{const _0x33118f=JSON[_0x2dd813(0xa3)](_0x52f521);cache['set'](_0x118c69,{'releases':_0x33118f,'fetchedAt':Date[_0x2dd813(0x91)]()}),_0x23ef75(_0x33118f);}catch(_0xdcca31){_0x134c47(_0xdcca31);}});});_0x5bebe1['on']('timeout',()=>{_0x5bebe1['destroy'](),_0x134c47(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x5bebe1['on'](_0x3d81e0(0x8e),_0x134c47);});}function a214_0x3410(_0x195c68,_0x240302){_0x195c68=_0x195c68-0x84;const _0x52e84f=a214_0x52e8();let _0x3410b0=_0x52e84f[_0x195c68];return _0x3410b0;}export async function resolveReleaseTag(_0x3aa78d,_0x1bcd9b,_0x38a0f3,_0x50c9d3){const _0x271dbb=a214_0x3410;if(_0x3aa78d===_0x271dbb(0x90))return null;const _0x1aa7f5=await fetchGitHubReleases(_0x1bcd9b,_0x38a0f3,_0x50c9d3);if(_0x1aa7f5[_0x271dbb(0x8d)]===0x0)return null;const _0x45d5ba=_0x1aa7f5[_0x271dbb(0x8a)](_0xb25d6c=>!_0xb25d6c[_0x271dbb(0xa1)]);return _0x45d5ba?_0x45d5ba[_0x271dbb(0x94)]:null;}
@@ -1 +1 @@
1
- (function(_0x2cedb8,_0x32b595){const _0x2e067c=a215_0x4980,_0x435f7e=_0x2cedb8();while(!![]){try{const _0x392882=-parseInt(_0x2e067c(0xa1))/0x1+-parseInt(_0x2e067c(0xa4))/0x2*(-parseInt(_0x2e067c(0x99))/0x3)+parseInt(_0x2e067c(0xa7))/0x4*(parseInt(_0x2e067c(0x9b))/0x5)+parseInt(_0x2e067c(0xa0))/0x6+-parseInt(_0x2e067c(0xaa))/0x7*(-parseInt(_0x2e067c(0xad))/0x8)+parseInt(_0x2e067c(0xa5))/0x9*(-parseInt(_0x2e067c(0xae))/0xa)+parseInt(_0x2e067c(0xb0))/0xb;if(_0x392882===_0x32b595)break;else _0x435f7e['push'](_0x435f7e['shift']());}catch(_0x2a09b1){_0x435f7e['push'](_0x435f7e['shift']());}}}(a215_0x4d16,0xe2df1));function a215_0x4980(_0xba3639,_0x271d51){_0xba3639=_0xba3639-0x98;const _0x4d162a=a215_0x4d16();let _0x498054=_0x4d162a[_0xba3639];return _0x498054;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x58f82e=a215_0x4980;return process.env.TDX_CACHE_DIR||join(homedir(),_0x58f82e(0xab),_0x58f82e(0xa6));}const registry=new Map();function a215_0x4d16(){const _0x1fa25c=['set','\x22,\x20cannot\x20register\x20for\x20\x22','get','3619320XEBXAT','1372957TxtrZs','\x22\x20already\x20registered\x20by\x20\x22','{profile}','2feMeiK','3480579jenYwy','tdx','2988108PrLLet','utf-8','replace','42qABitJ','.cache','default','142088zxYkaU','20oatpEo','stringify','15281035UTOivo','clear','689058lCxzyx','trim','5ZDFMFh','Global\x20cache\x20key\x20\x22'];a215_0x4d16=function(){return _0x1fa25c;};return a215_0x4d16();}export function registerGlobalCacheKey(_0x44b300,_0x90aaf1){const _0x188acd=a215_0x4980,_0x137e29=registry[_0x188acd(0x9f)](_0x44b300);if(_0x137e29&&_0x137e29!==_0x90aaf1)throw new Error(_0x188acd(0x9c)+_0x44b300+_0x188acd(0xa2)+_0x137e29+_0x188acd(0x9e)+_0x90aaf1+'\x22');registry[_0x188acd(0x9d)](_0x44b300,_0x90aaf1);}export function getGlobalCachePath(_0x3ebf38){return join(getGlobalCacheDir(),_0x3ebf38);}function ensureGlobalCacheDir(){const _0x25f7a8=getGlobalCacheDir();!existsSync(_0x25f7a8)&&mkdirSync(_0x25f7a8,{'recursive':!![]});}function readCacheJson(_0xd097c9){const _0x1778c9=a215_0x4980,_0x37649f=getGlobalCachePath(_0xd097c9);if(!existsSync(_0x37649f))return undefined;try{const _0x5a001a=readFileSync(_0x37649f,_0x1778c9(0xa8));return JSON['parse'](_0x5a001a);}catch{return undefined;}}function writeCacheJson(_0x27170b,_0x411355){const _0x1eeac7=a215_0x4980;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x27170b),JSON[_0x1eeac7(0xaf)](_0x411355,null,0x2),_0x1eeac7(0xa8));}function readCacheText(_0x56504e){const _0x178dcf=a215_0x4980,_0x43cbbf=getGlobalCachePath(_0x56504e);if(!existsSync(_0x43cbbf))return undefined;try{return readFileSync(_0x43cbbf,_0x178dcf(0xa8));}catch{return undefined;}}function writeCacheText(_0x203db8,_0x3288b9){const _0x1ba255=a215_0x4980;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x203db8),_0x3288b9,_0x1ba255(0xa8));}function clearCache(_0x1ec946){const _0x324394=getGlobalCachePath(_0x1ec946);if(existsSync(_0x324394))try{unlinkSync(_0x324394);}catch{}}function cacheExists(_0x5162ed){return existsSync(getGlobalCachePath(_0x5162ed));}export function createGlobalCache(_0x5cb9f0,_0x5163ed){return registerGlobalCacheKey(_0x5cb9f0,_0x5163ed),{'read':()=>readCacheJson(_0x5cb9f0),'write':_0x2175ea=>writeCacheJson(_0x5cb9f0,_0x2175ea),'clear':()=>clearCache(_0x5cb9f0),'exists':()=>cacheExists(_0x5cb9f0),'path':()=>getGlobalCachePath(_0x5cb9f0)};}export function createGlobalTextCache(_0x30e01c,_0x423848){const _0x43603e=a215_0x4980;return registerGlobalCacheKey(_0x30e01c,_0x423848),{'read':()=>readCacheText(_0x30e01c)?.[_0x43603e(0x9a)]()||undefined,'write':_0x30a15a=>writeCacheText(_0x30e01c,_0x30a15a),'clear':()=>clearCache(_0x30e01c),'exists':()=>cacheExists(_0x30e01c),'path':()=>getGlobalCachePath(_0x30e01c)};}export function createProfileCache(_0x5e939c,_0x328594){const _0x5bc244=_0x54152e=>{const _0x317250=a215_0x4980,_0x58b99b=_0x54152e||_0x317250(0xac);return _0x5e939c[_0x317250(0xa9)](_0x317250(0xa3),_0x58b99b);};return{'read':_0x586102=>{const _0x5c69af=_0x5bc244(_0x586102);return registerGlobalCacheKey(_0x5c69af,_0x328594),readCacheJson(_0x5c69af);},'write':(_0x463cf7,_0x19a12f)=>{const _0xc49b69=_0x5bc244(_0x463cf7);registerGlobalCacheKey(_0xc49b69,_0x328594),writeCacheJson(_0xc49b69,_0x19a12f);},'clear':_0x52e0c7=>{const _0x2fdabb=_0x5bc244(_0x52e0c7);clearCache(_0x2fdabb);},'exists':_0xe66efa=>{const _0x959519=_0x5bc244(_0xe66efa);return cacheExists(_0x959519);},'path':_0x2fd7c6=>{const _0x6f4819=_0x5bc244(_0x2fd7c6);return getGlobalCachePath(_0x6f4819);}};}export function createOptionalProfileCache(_0x50f4bb,_0x103956,_0x392d22={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x392d22,_0x302639=_0x29512d=>{return _0x29512d?''+_0x50f4bb+profileSeparator+_0x29512d+suffix:''+_0x50f4bb+suffix;};return{'read':_0x2600a5=>{const _0x2df82a=_0x302639(_0x2600a5);return registerGlobalCacheKey(_0x2df82a,_0x103956),readCacheJson(_0x2df82a);},'write':(_0x17fbd8,_0x1fa0b7)=>{const _0x5446a5=_0x302639(_0x1fa0b7);registerGlobalCacheKey(_0x5446a5,_0x103956),writeCacheJson(_0x5446a5,_0x17fbd8);},'clear':_0x4d5a4f=>{const _0x515a43=_0x302639(_0x4d5a4f);clearCache(_0x515a43);},'exists':_0x1924d9=>{const _0x342cdc=_0x302639(_0x1924d9);return cacheExists(_0x342cdc);},'path':_0x225d5c=>{const _0x39db15=_0x302639(_0x225d5c);return getGlobalCachePath(_0x39db15);}};}export function clearGlobalRegistry(){const _0x46fa6e=a215_0x4980;registry[_0x46fa6e(0x98)]();}
1
+ (function(_0x4a319a,_0x5e594d){const _0x3dcda1=a215_0xbf88,_0x5be755=_0x4a319a();while(!![]){try{const _0x3dd44e=parseInt(_0x3dcda1(0x156))/0x1+-parseInt(_0x3dcda1(0x15e))/0x2+-parseInt(_0x3dcda1(0x161))/0x3*(parseInt(_0x3dcda1(0x164))/0x4)+parseInt(_0x3dcda1(0x15b))/0x5*(parseInt(_0x3dcda1(0x159))/0x6)+-parseInt(_0x3dcda1(0x169))/0x7*(-parseInt(_0x3dcda1(0x165))/0x8)+-parseInt(_0x3dcda1(0x166))/0x9*(parseInt(_0x3dcda1(0x168))/0xa)+parseInt(_0x3dcda1(0x16a))/0xb*(-parseInt(_0x3dcda1(0x155))/0xc);if(_0x3dd44e===_0x5e594d)break;else _0x5be755['push'](_0x5be755['shift']());}catch(_0x5282e9){_0x5be755['push'](_0x5be755['shift']());}}}(a215_0x5625,0x59192));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x249bdf=a215_0xbf88;return process.env.TDX_CACHE_DIR||join(homedir(),_0x249bdf(0x15d),_0x249bdf(0x15a));}const registry=new Map();export function registerGlobalCacheKey(_0xd9d342,_0x347880){const _0x2ac892=a215_0xbf88,_0x3c055b=registry['get'](_0xd9d342);if(_0x3c055b&&_0x3c055b!==_0x347880)throw new Error(_0x2ac892(0x15f)+_0xd9d342+_0x2ac892(0x157)+_0x3c055b+_0x2ac892(0x154)+_0x347880+'\x22');registry['set'](_0xd9d342,_0x347880);}export function getGlobalCachePath(_0x29c5fb){return join(getGlobalCacheDir(),_0x29c5fb);}function ensureGlobalCacheDir(){const _0x1cd41d=getGlobalCacheDir();!existsSync(_0x1cd41d)&&mkdirSync(_0x1cd41d,{'recursive':!![]});}function readCacheJson(_0x406813){const _0x187ff3=a215_0xbf88,_0x2dc7ee=getGlobalCachePath(_0x406813);if(!existsSync(_0x2dc7ee))return undefined;try{const _0x7ce0dc=readFileSync(_0x2dc7ee,'utf-8');return JSON[_0x187ff3(0x160)](_0x7ce0dc);}catch{return undefined;}}function writeCacheJson(_0x469968,_0x1fa220){const _0x3118ad=a215_0xbf88;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x469968),JSON[_0x3118ad(0x162)](_0x1fa220,null,0x2),'utf-8');}function readCacheText(_0xc8b7f0){const _0x35d693=a215_0xbf88,_0x4c1f9d=getGlobalCachePath(_0xc8b7f0);if(!existsSync(_0x4c1f9d))return undefined;try{return readFileSync(_0x4c1f9d,_0x35d693(0x15c));}catch{return undefined;}}function writeCacheText(_0x5ed30b,_0xb71302){const _0x2d1bcf=a215_0xbf88;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5ed30b),_0xb71302,_0x2d1bcf(0x15c));}function a215_0xbf88(_0x21040f,_0x4506af){_0x21040f=_0x21040f-0x153;const _0x5625fa=a215_0x5625();let _0xbf885d=_0x5625fa[_0x21040f];return _0xbf885d;}function clearCache(_0x5ba7d2){const _0x25e031=getGlobalCachePath(_0x5ba7d2);if(existsSync(_0x25e031))try{unlinkSync(_0x25e031);}catch{}}function cacheExists(_0xdbdf20){return existsSync(getGlobalCachePath(_0xdbdf20));}function a215_0x5625(){const _0x3beeed=['tdx','30nbDBHQ','utf-8','.cache','1162826bAbleH','Global\x20cache\x20key\x20\x22','parse','718167aNycEm','stringify','default','8hfbHEV','16504NvrNSP','1404eRwVyy','trim','17870VgSlHT','1673hhLtWO','55rhmnIP','{profile}','replace','\x22,\x20cannot\x20register\x20for\x20\x22','73968fxrpUE','527984YoovvA','\x22\x20already\x20registered\x20by\x20\x22','clear','713688QvuzfE'];a215_0x5625=function(){return _0x3beeed;};return a215_0x5625();}export function createGlobalCache(_0x3c009d,_0x4e6648){return registerGlobalCacheKey(_0x3c009d,_0x4e6648),{'read':()=>readCacheJson(_0x3c009d),'write':_0x5cb434=>writeCacheJson(_0x3c009d,_0x5cb434),'clear':()=>clearCache(_0x3c009d),'exists':()=>cacheExists(_0x3c009d),'path':()=>getGlobalCachePath(_0x3c009d)};}export function createGlobalTextCache(_0x50aecb,_0x394813){const _0x19dc56=a215_0xbf88;return registerGlobalCacheKey(_0x50aecb,_0x394813),{'read':()=>readCacheText(_0x50aecb)?.[_0x19dc56(0x167)]()||undefined,'write':_0x5e7bc4=>writeCacheText(_0x50aecb,_0x5e7bc4),'clear':()=>clearCache(_0x50aecb),'exists':()=>cacheExists(_0x50aecb),'path':()=>getGlobalCachePath(_0x50aecb)};}export function createProfileCache(_0x299891,_0x405919){const _0x24582f=_0x2b9303=>{const _0x5cd4fc=a215_0xbf88,_0x3c0f09=_0x2b9303||_0x5cd4fc(0x163);return _0x299891[_0x5cd4fc(0x153)](_0x5cd4fc(0x16b),_0x3c0f09);};return{'read':_0x4171be=>{const _0x5676e3=_0x24582f(_0x4171be);return registerGlobalCacheKey(_0x5676e3,_0x405919),readCacheJson(_0x5676e3);},'write':(_0x5e562b,_0x520aae)=>{const _0x34bb6a=_0x24582f(_0x5e562b);registerGlobalCacheKey(_0x34bb6a,_0x405919),writeCacheJson(_0x34bb6a,_0x520aae);},'clear':_0x30357c=>{const _0x4aed86=_0x24582f(_0x30357c);clearCache(_0x4aed86);},'exists':_0x58041f=>{const _0x5f0a72=_0x24582f(_0x58041f);return cacheExists(_0x5f0a72);},'path':_0x1bd290=>{const _0xc222bc=_0x24582f(_0x1bd290);return getGlobalCachePath(_0xc222bc);}};}export function createOptionalProfileCache(_0xe0923b,_0x471584,_0x11c374={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x11c374,_0x5e4bfe=_0x3bb524=>{return _0x3bb524?''+_0xe0923b+profileSeparator+_0x3bb524+suffix:''+_0xe0923b+suffix;};return{'read':_0x1c4cf1=>{const _0xea5632=_0x5e4bfe(_0x1c4cf1);return registerGlobalCacheKey(_0xea5632,_0x471584),readCacheJson(_0xea5632);},'write':(_0x2203ea,_0x4fef6f)=>{const _0x18b025=_0x5e4bfe(_0x4fef6f);registerGlobalCacheKey(_0x18b025,_0x471584),writeCacheJson(_0x18b025,_0x2203ea);},'clear':_0x3bc88f=>{const _0x5d4315=_0x5e4bfe(_0x3bc88f);clearCache(_0x5d4315);},'exists':_0x201c07=>{const _0x1c603b=_0x5e4bfe(_0x201c07);return cacheExists(_0x1c603b);},'path':_0x516e2d=>{const _0x237446=_0x5e4bfe(_0x516e2d);return getGlobalCachePath(_0x237446);}};}export function clearGlobalRegistry(){const _0x3d74e9=a215_0xbf88;registry[_0x3d74e9(0x158)]();}
@@ -1 +1 @@
1
- function a216_0x118a(_0x2eee8e,_0x125f42){_0x2eee8e=_0x2eee8e-0x10d;const _0x281657=a216_0x2816();let _0x118a82=_0x281657[_0x2eee8e];return _0x118a82;}(function(_0x27f8cd,_0x162aa2){const _0x25b70d=a216_0x118a,_0xfb7880=_0x27f8cd();while(!![]){try{const _0xaa2617=-parseInt(_0x25b70d(0x11a))/0x1*(-parseInt(_0x25b70d(0x11c))/0x2)+parseInt(_0x25b70d(0x114))/0x3*(parseInt(_0x25b70d(0x120))/0x4)+parseInt(_0x25b70d(0x11d))/0x5*(parseInt(_0x25b70d(0x125))/0x6)+-parseInt(_0x25b70d(0x10e))/0x7*(parseInt(_0x25b70d(0x122))/0x8)+parseInt(_0x25b70d(0x119))/0x9+parseInt(_0x25b70d(0x127))/0xa*(parseInt(_0x25b70d(0x112))/0xb)+parseInt(_0x25b70d(0x121))/0xc*(-parseInt(_0x25b70d(0x111))/0xd);if(_0xaa2617===_0x162aa2)break;else _0xfb7880['push'](_0xfb7880['shift']());}catch(_0x3a446c){_0xfb7880['push'](_0xfb7880['shift']());}}}(a216_0x2816,0x9906b));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0xa60122,_0x3f74e0){const _0x370717=a216_0x118a;try{if(_0x3f74e0){const _0x60eae4=await readFile(_0xa60122,_0x370717(0x115));try{return JSON[_0x370717(0x117)](_0x60eae4);}catch(_0x19bdfa){throw new SDKError(ErrorCode[_0x370717(0x118)],_0x370717(0x123)+_0xa60122+'\x27:\x20'+(_0x19bdfa instanceof Error?_0x19bdfa[_0x370717(0x110)]:String(_0x19bdfa)));}}else try{return JSON[_0x370717(0x117)](_0xa60122);}catch(_0x533c75){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x370717(0x116)+(_0x533c75 instanceof Error?_0x533c75[_0x370717(0x110)]:String(_0x533c75)));}}catch(_0x23ddb0){if(_0x23ddb0 instanceof SDKError)throw _0x23ddb0;if(_0x23ddb0 instanceof Error&&'code'in _0x23ddb0){const _0x2b90a6=_0x23ddb0;if(_0x2b90a6[_0x370717(0x128)]===_0x370717(0x11e))throw new SDKError(ErrorCode[_0x370717(0x10d)],'File\x20not\x20found:\x20'+_0xa60122);else{if(_0x2b90a6[_0x370717(0x128)]===_0x370717(0x126))throw new SDKError(ErrorCode[_0x370717(0x10f)],_0x370717(0x113)+_0xa60122);}}throw new SDKError(ErrorCode[_0x370717(0x124)],_0x370717(0x11f)+(_0x23ddb0 instanceof Error?_0x23ddb0[_0x370717(0x110)]:String(_0x23ddb0)));}}function a216_0x2816(){const _0x5f1eb3=['10625616zcwAli','23hfpjBN','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','4024gkhCOs','217820nBfhWy','ENOENT','Failed\x20to\x20load\x20JSON:\x20','1677052pFZqqe','12ZADOWN','923920ifbmtF','Invalid\x20JSON\x20in\x20file\x20\x27','INTERNAL','84ZlqnqT','EACCES','50Ywwnrk','code','NOT_FOUND','35NnnBif','PERMISSION_DENIED','message','18182047zHejvK','762971yCJfRe','Permission\x20denied\x20reading\x20file:\x20','3aNUlzw','utf-8','Invalid\x20JSON\x20string:\x20','parse','INVALID_ARGUMENT'];a216_0x2816=function(){return _0x5f1eb3;};return a216_0x2816();}export async function loadJSONFromOptions(_0x870cfd,_0xd3393e){const _0x556e04=a216_0x118a;if(_0x870cfd&&_0xd3393e)throw new SDKError(ErrorCode[_0x556e04(0x118)],_0x556e04(0x11b));if(_0x870cfd)return await loadJSON(_0x870cfd,![]);if(_0xd3393e)return await loadJSON(_0xd3393e,!![]);return undefined;}
1
+ function a216_0x2ff4(_0x1fee74,_0x48a6da){_0x1fee74=_0x1fee74-0x103;const _0x5d324c=a216_0x5d32();let _0x2ff442=_0x5d324c[_0x1fee74];return _0x2ff442;}function a216_0x5d32(){const _0x44879c=['12ainfjx','code','2ksamMZ','INVALID_ARGUMENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','243PAUNwc','INTERNAL','12PoQuxa','EACCES','parse','PERMISSION_DENIED','Permission\x20denied\x20reading\x20file:\x20','message','2428255MkUEqD','14296399VsTEdt','50Kiifrr','9798984gxiXfW','14eUyNZm','4564688cSfnLb','34552gyXWtu','File\x20not\x20found:\x20','506231aslJUz','962909UgeiQE','Failed\x20to\x20load\x20JSON:\x20'];a216_0x5d32=function(){return _0x44879c;};return a216_0x5d32();}(function(_0x38f139,_0x4b257e){const _0x590c77=a216_0x2ff4,_0x409ea2=_0x38f139();while(!![]){try{const _0x14b470=-parseInt(_0x590c77(0x105))/0x1*(parseInt(_0x590c77(0x109))/0x2)+parseInt(_0x590c77(0x10c))/0x3*(-parseInt(_0x590c77(0x11a))/0x4)+parseInt(_0x590c77(0x114))/0x5*(parseInt(_0x590c77(0x107))/0x6)+parseInt(_0x590c77(0x118))/0x7*(-parseInt(_0x590c77(0x119))/0x8)+parseInt(_0x590c77(0x117))/0x9+-parseInt(_0x590c77(0x116))/0xa*(-parseInt(_0x590c77(0x104))/0xb)+-parseInt(_0x590c77(0x10e))/0xc*(-parseInt(_0x590c77(0x115))/0xd);if(_0x14b470===_0x4b257e)break;else _0x409ea2['push'](_0x409ea2['shift']());}catch(_0x1f8529){_0x409ea2['push'](_0x409ea2['shift']());}}}(a216_0x5d32,0x8f1a3));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x24c1ed,_0x469db3){const _0x5ad2fc=a216_0x2ff4;try{if(_0x469db3){const _0x213a0f=await readFile(_0x24c1ed,'utf-8');try{return JSON[_0x5ad2fc(0x110)](_0x213a0f);}catch(_0x35166c){throw new SDKError(ErrorCode[_0x5ad2fc(0x10a)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x24c1ed+'\x27:\x20'+(_0x35166c instanceof Error?_0x35166c['message']:String(_0x35166c)));}}else try{return JSON[_0x5ad2fc(0x110)](_0x24c1ed);}catch(_0x26cffb){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x26cffb instanceof Error?_0x26cffb[_0x5ad2fc(0x113)]:String(_0x26cffb)));}}catch(_0x56f32a){if(_0x56f32a instanceof SDKError)throw _0x56f32a;if(_0x56f32a instanceof Error&&_0x5ad2fc(0x108)in _0x56f32a){const _0x1eef41=_0x56f32a;if(_0x1eef41[_0x5ad2fc(0x108)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x5ad2fc(0x103)+_0x24c1ed);else{if(_0x1eef41[_0x5ad2fc(0x108)]===_0x5ad2fc(0x10f))throw new SDKError(ErrorCode[_0x5ad2fc(0x111)],_0x5ad2fc(0x112)+_0x24c1ed);}}throw new SDKError(ErrorCode[_0x5ad2fc(0x10d)],_0x5ad2fc(0x106)+(_0x56f32a instanceof Error?_0x56f32a['message']:String(_0x56f32a)));}}export async function loadJSONFromOptions(_0x402db9,_0x15d75c){const _0x3ba98e=a216_0x2ff4;if(_0x402db9&&_0x15d75c)throw new SDKError(ErrorCode[_0x3ba98e(0x10a)],_0x3ba98e(0x10b));if(_0x402db9)return await loadJSON(_0x402db9,![]);if(_0x15d75c)return await loadJSON(_0x15d75c,!![]);return undefined;}
@@ -1 +1 @@
1
- const a217_0x10f1b5=a217_0x30b6;(function(_0x4ecb61,_0x3afb40){const _0x2c6b56=a217_0x30b6,_0x150a43=_0x4ecb61();while(!![]){try{const _0x4442fc=-parseInt(_0x2c6b56(0xab))/0x1+-parseInt(_0x2c6b56(0xa7))/0x2*(-parseInt(_0x2c6b56(0xb3))/0x3)+-parseInt(_0x2c6b56(0xb5))/0x4+parseInt(_0x2c6b56(0xae))/0x5+-parseInt(_0x2c6b56(0xaf))/0x6+parseInt(_0x2c6b56(0xa9))/0x7+parseInt(_0x2c6b56(0xa8))/0x8;if(_0x4442fc===_0x3afb40)break;else _0x150a43['push'](_0x150a43['shift']());}catch(_0x70c25){_0x150a43['push'](_0x150a43['shift']());}}}(a217_0x162f,0x9c26b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a217_0x162f(){const _0x579ff8=['trim','utf-8','.cache/tdx','cwd','2uEeOpn','6670112IQhOGH','8541057idARWR','stringify','510165bbhlTU','\x22,\x20cannot\x20register\x20for\x20\x22','get','67685dNasTe','2992974ykItZQ','clear','root','parse','1135194aBhYMp','\x22\x20already\x20registered\x20by\x20\x22','3189044oGnnDw'];a217_0x162f=function(){return _0x579ff8;};return a217_0x162f();}import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a217_0x10f1b5(0xa5),registry=new Map();export function registerCacheKey(_0x20de37,_0x859c){const _0x649db=a217_0x10f1b5,_0x4abd0f=registry[_0x649db(0xad)](_0x20de37);if(_0x4abd0f&&_0x4abd0f!==_0x859c)throw new Error('Cache\x20key\x20\x22'+_0x20de37+_0x649db(0xb4)+_0x4abd0f+_0x649db(0xac)+_0x859c+'\x22');registry['set'](_0x20de37,_0x859c);}export function getCacheDir(){const _0x2db60b=a217_0x10f1b5,_0x2ec219=process[_0x2db60b(0xa6)](),_0x263ec1=_0x2ec219===parse(_0x2ec219)[_0x2db60b(0xb1)]?homedir():_0x2ec219;return join(_0x263ec1,LOCAL_CACHE_DIR);}export function getCachePath(_0xd3ee90){return join(getCacheDir(),_0xd3ee90);}function ensureCacheDir(){const _0x24180b=getCacheDir();!existsSync(_0x24180b)&&mkdirSync(_0x24180b,{'recursive':!![]});}function readCacheJson(_0x3c7f6b){const _0x540b45=a217_0x10f1b5,_0x4df60d=getCachePath(_0x3c7f6b);if(!existsSync(_0x4df60d))return undefined;try{const _0x4d93ba=readFileSync(_0x4df60d,'utf-8');return JSON[_0x540b45(0xb2)](_0x4d93ba);}catch{return undefined;}}function writeCacheJson(_0x21fba6,_0x30d4ba){const _0x1d4ea2=a217_0x10f1b5;ensureCacheDir(),writeFileSync(getCachePath(_0x21fba6),JSON[_0x1d4ea2(0xaa)](_0x30d4ba,null,0x2),_0x1d4ea2(0xa4));}function readCacheText(_0x2f96f9){const _0x209e72=a217_0x10f1b5,_0x26b04a=getCachePath(_0x2f96f9);if(!existsSync(_0x26b04a))return undefined;try{return readFileSync(_0x26b04a,_0x209e72(0xa4));}catch{return undefined;}}function a217_0x30b6(_0x416354,_0x295c76){_0x416354=_0x416354-0xa4;const _0x162faf=a217_0x162f();let _0x30b6ec=_0x162faf[_0x416354];return _0x30b6ec;}function writeCacheText(_0x39c27c,_0x2a703c){const _0x1320ac=a217_0x10f1b5;ensureCacheDir(),writeFileSync(getCachePath(_0x39c27c),_0x2a703c,_0x1320ac(0xa4));}function clearCache(_0xc5fe86){const _0x57ce23=getCachePath(_0xc5fe86);if(existsSync(_0x57ce23))try{unlinkSync(_0x57ce23);}catch{}}function cacheExists(_0x29e357){return existsSync(getCachePath(_0x29e357));}export function createCache(_0x393437,_0x196910){return registerCacheKey(_0x393437,_0x196910),{'read':()=>readCacheJson(_0x393437),'write':_0x49d687=>writeCacheJson(_0x393437,_0x49d687),'clear':()=>clearCache(_0x393437),'exists':()=>cacheExists(_0x393437),'path':()=>getCachePath(_0x393437)};}export function createTextCache(_0x2d2e5d,_0x5ef2ec){const _0x12066e=a217_0x10f1b5;return registerCacheKey(_0x2d2e5d,_0x5ef2ec),{'read':()=>readCacheText(_0x2d2e5d)?.[_0x12066e(0xb6)]()||undefined,'write':_0x43dcbe=>writeCacheText(_0x2d2e5d,_0x43dcbe),'clear':()=>clearCache(_0x2d2e5d),'exists':()=>cacheExists(_0x2d2e5d),'path':()=>getCachePath(_0x2d2e5d)};}export function clearRegistry(){const _0x5e2314=a217_0x10f1b5;registry[_0x5e2314(0xb0)]();}
1
+ const a217_0x166cdc=a217_0x8f4e;(function(_0x4c758c,_0x3bf69a){const _0x4c38a6=a217_0x8f4e,_0x56fbb1=_0x4c758c();while(!![]){try{const _0x12f8af=-parseInt(_0x4c38a6(0x1e8))/0x1+parseInt(_0x4c38a6(0x1f5))/0x2+-parseInt(_0x4c38a6(0x1f7))/0x3+parseInt(_0x4c38a6(0x1e9))/0x4*(parseInt(_0x4c38a6(0x1fa))/0x5)+parseInt(_0x4c38a6(0x1f8))/0x6+parseInt(_0x4c38a6(0x1ec))/0x7+parseInt(_0x4c38a6(0x1ea))/0x8*(-parseInt(_0x4c38a6(0x1f6))/0x9);if(_0x12f8af===_0x3bf69a)break;else _0x56fbb1['push'](_0x56fbb1['shift']());}catch(_0x4fa00d){_0x56fbb1['push'](_0x56fbb1['shift']());}}}(a217_0x1e52,0x6bbb5));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a217_0x1e52(){const _0x295e7a=['1044745ZVjpux','root','parse','791241IjzEpB','4WRdiBb','19736HmcDMM','get','4260760PbzvYK','utf-8','\x22\x20already\x20registered\x20by\x20\x22','stringify','\x22,\x20cannot\x20register\x20for\x20\x22','clear','.cache/tdx','trim','Cache\x20key\x20\x22','449028nGIhPc','99dLlraG','1145793YHXijV','3596610xfpKEB','set'];a217_0x1e52=function(){return _0x295e7a;};return a217_0x1e52();}import{homedir}from'os';const LOCAL_CACHE_DIR=a217_0x166cdc(0x1f2),registry=new Map();export function registerCacheKey(_0x2aa40b,_0x53ad0d){const _0xd6ef13=a217_0x166cdc,_0x3f0cec=registry[_0xd6ef13(0x1eb)](_0x2aa40b);if(_0x3f0cec&&_0x3f0cec!==_0x53ad0d)throw new Error(_0xd6ef13(0x1f4)+_0x2aa40b+_0xd6ef13(0x1ee)+_0x3f0cec+_0xd6ef13(0x1f0)+_0x53ad0d+'\x22');registry[_0xd6ef13(0x1f9)](_0x2aa40b,_0x53ad0d);}export function getCacheDir(){const _0x110a79=a217_0x166cdc,_0x1c833c=process['cwd'](),_0x3f1db0=_0x1c833c===parse(_0x1c833c)[_0x110a79(0x1fb)]?homedir():_0x1c833c;return join(_0x3f1db0,LOCAL_CACHE_DIR);}export function getCachePath(_0x1b4bc2){return join(getCacheDir(),_0x1b4bc2);}function ensureCacheDir(){const _0x413428=getCacheDir();!existsSync(_0x413428)&&mkdirSync(_0x413428,{'recursive':!![]});}function readCacheJson(_0x1161d6){const _0x21c875=a217_0x166cdc,_0x50757d=getCachePath(_0x1161d6);if(!existsSync(_0x50757d))return undefined;try{const _0x24f736=readFileSync(_0x50757d,'utf-8');return JSON[_0x21c875(0x1fc)](_0x24f736);}catch{return undefined;}}function a217_0x8f4e(_0x17e0d9,_0x34c71b){_0x17e0d9=_0x17e0d9-0x1e8;const _0x1e5221=a217_0x1e52();let _0x8f4e22=_0x1e5221[_0x17e0d9];return _0x8f4e22;}function writeCacheJson(_0x1c91b5,_0x254e9a){const _0x2529ab=a217_0x166cdc;ensureCacheDir(),writeFileSync(getCachePath(_0x1c91b5),JSON[_0x2529ab(0x1ef)](_0x254e9a,null,0x2),_0x2529ab(0x1ed));}function readCacheText(_0x192688){const _0x3a417e=a217_0x166cdc,_0x3d70b4=getCachePath(_0x192688);if(!existsSync(_0x3d70b4))return undefined;try{return readFileSync(_0x3d70b4,_0x3a417e(0x1ed));}catch{return undefined;}}function writeCacheText(_0x1fdf5c,_0x153a59){const _0x213138=a217_0x166cdc;ensureCacheDir(),writeFileSync(getCachePath(_0x1fdf5c),_0x153a59,_0x213138(0x1ed));}function clearCache(_0x576552){const _0x51ddc7=getCachePath(_0x576552);if(existsSync(_0x51ddc7))try{unlinkSync(_0x51ddc7);}catch{}}function cacheExists(_0x30401f){return existsSync(getCachePath(_0x30401f));}export function createCache(_0x3033d7,_0xb265f9){return registerCacheKey(_0x3033d7,_0xb265f9),{'read':()=>readCacheJson(_0x3033d7),'write':_0x5af4e2=>writeCacheJson(_0x3033d7,_0x5af4e2),'clear':()=>clearCache(_0x3033d7),'exists':()=>cacheExists(_0x3033d7),'path':()=>getCachePath(_0x3033d7)};}export function createTextCache(_0x469ecb,_0x36f756){const _0x5b089a=a217_0x166cdc;return registerCacheKey(_0x469ecb,_0x36f756),{'read':()=>readCacheText(_0x469ecb)?.[_0x5b089a(0x1f3)]()||undefined,'write':_0x2a1858=>writeCacheText(_0x469ecb,_0x2a1858),'clear':()=>clearCache(_0x469ecb),'exists':()=>cacheExists(_0x469ecb),'path':()=>getCachePath(_0x469ecb)};}export function clearRegistry(){const _0x2b5739=a217_0x166cdc;registry[_0x2b5739(0x1f1)]();}
@@ -1 +1 @@
1
- const a218_0x5996e8=a218_0x1df8;function a218_0x1df8(_0x4b0847,_0x529684){_0x4b0847=_0x4b0847-0x1ae;const _0x2401fc=a218_0x2401();let _0x1df8fe=_0x2401fc[_0x4b0847];return _0x1df8fe;}(function(_0x3fee67,_0x5e5e50){const _0x96b774=a218_0x1df8,_0x1a5c18=_0x3fee67();while(!![]){try{const _0x2ed656=parseInt(_0x96b774(0x1b8))/0x1*(parseInt(_0x96b774(0x1bd))/0x2)+parseInt(_0x96b774(0x1c3))/0x3*(parseInt(_0x96b774(0x1c9))/0x4)+parseInt(_0x96b774(0x1ba))/0x5+parseInt(_0x96b774(0x1ae))/0x6+-parseInt(_0x96b774(0x1be))/0x7*(-parseInt(_0x96b774(0x1c7))/0x8)+parseInt(_0x96b774(0x1c0))/0x9+-parseInt(_0x96b774(0x1b7))/0xa;if(_0x2ed656===_0x5e5e50)break;else _0x1a5c18['push'](_0x1a5c18['shift']());}catch(_0x1f367d){_0x1a5c18['push'](_0x1a5c18['shift']());}}}(a218_0x2401,0xda972));import a218_0x57b629 from'chalk';function a218_0x2401(){const _0x334f4d=['timestamp','Chalk','ERROR','28314910slZcqW','219JKFIiW','component','646195IQOywd','default','message','15256UsGdPO','21091aocsVm','format','3954501akhqRI','colors','INFO','42WrJgFh','WARN','colorLevel','cyan','1552rfcvfy','chalk','207404BseJck','DEBUG','1063446dzqMVL','dim','red','yellow','TRACE','gray'];a218_0x2401=function(){return _0x334f4d;};return a218_0x2401();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x57b629,ChalkClass=chalkModule['Chalk']||chalkModule[a218_0x5996e8(0x1bb)]?.[a218_0x5996e8(0x1b5)];export class DefaultLogFormatter{['colors'];['chalk'];constructor(_0x15ecbc={}){const _0x3ca814=a218_0x5996e8;this[_0x3ca814(0x1c1)]=_0x15ecbc[_0x3ca814(0x1c1)]??![],this[_0x3ca814(0x1c8)]=_0x15ecbc['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x57b629;}[a218_0x5996e8(0x1bf)](_0x18ac92){const _0x4d68f2=a218_0x5996e8,_0x53b140=formatTimestamp(_0x18ac92[_0x4d68f2(0x1b4)]),_0x3defee=logLevelToString(_0x18ac92['level']);if(!this[_0x4d68f2(0x1c1)])return _0x53b140+'\x20['+_0x3defee+']\x20['+_0x18ac92[_0x4d68f2(0x1b9)]+']\x20'+_0x18ac92[_0x4d68f2(0x1bc)];const _0x43218=this[_0x4d68f2(0x1c8)][_0x4d68f2(0x1af)](_0x53b140),_0x523115=this[_0x4d68f2(0x1c5)](_0x3defee,_0x18ac92['level']),_0x4a7bce=this['chalk']['blue']('['+_0x18ac92[_0x4d68f2(0x1b9)]+']');return _0x43218+'\x20'+_0x523115+'\x20'+_0x4a7bce+'\x20'+_0x18ac92[_0x4d68f2(0x1bc)];}['colorLevel'](_0xd03f48,_0x49bcab){const _0x411aa7=a218_0x5996e8;switch(_0x49bcab){case LogLevel[_0x411aa7(0x1b2)]:return this[_0x411aa7(0x1c8)][_0x411aa7(0x1b3)]('['+_0xd03f48+']');case LogLevel[_0x411aa7(0x1ca)]:return this[_0x411aa7(0x1c8)]['green']('['+_0xd03f48+']');case LogLevel[_0x411aa7(0x1c2)]:return this[_0x411aa7(0x1c8)][_0x411aa7(0x1c6)]('['+_0xd03f48+']');case LogLevel[_0x411aa7(0x1c4)]:return this[_0x411aa7(0x1c8)][_0x411aa7(0x1b1)]('['+_0xd03f48+']');case LogLevel[_0x411aa7(0x1b6)]:return this[_0x411aa7(0x1c8)][_0x411aa7(0x1b0)]('['+_0xd03f48+']');default:return'['+_0xd03f48+']';}}}
1
+ const a218_0x500ad5=a218_0xbc79;function a218_0xbc79(_0x5b67c6,_0x24fcb6){_0x5b67c6=_0x5b67c6-0x177;const _0x1a8213=a218_0x1a82();let _0xbc7987=_0x1a8213[_0x5b67c6];return _0xbc7987;}(function(_0x3c83a1,_0x5e866f){const _0x4801a5=a218_0xbc79,_0x40be15=_0x3c83a1();while(!![]){try{const _0x5b0629=parseInt(_0x4801a5(0x192))/0x1+-parseInt(_0x4801a5(0x181))/0x2*(-parseInt(_0x4801a5(0x18c))/0x3)+-parseInt(_0x4801a5(0x17d))/0x4*(parseInt(_0x4801a5(0x180))/0x5)+parseInt(_0x4801a5(0x193))/0x6*(parseInt(_0x4801a5(0x18b))/0x7)+parseInt(_0x4801a5(0x186))/0x8*(-parseInt(_0x4801a5(0x18a))/0x9)+-parseInt(_0x4801a5(0x18e))/0xa+parseInt(_0x4801a5(0x17a))/0xb;if(_0x5b0629===_0x5e866f)break;else _0x40be15['push'](_0x40be15['shift']());}catch(_0x30ee4c){_0x40be15['push'](_0x40be15['shift']());}}}(a218_0x1a82,0xd6dc7));import a218_0x50f9b1 from'chalk';function a218_0x1a82(){const _0x1073ee=['yellow','colors','DEBUG','55312hqklxu','component','default','format','540iWGgXg','4018MFfxKF','498faKvyO','blue','10960240yPbAyV','message','Chalk','INFO','1070653hHAJYW','1896ABGuEg','chalk','timestamp','level','cyan','13848560koWVcy','colorLevel','dim','1144rijUVf','ERROR',']\x20[','15260DsFInx','9070MAoRAN','green'];a218_0x1a82=function(){return _0x1073ee;};return a218_0x1a82();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x50f9b1,ChalkClass=chalkModule[a218_0x500ad5(0x190)]||chalkModule[a218_0x500ad5(0x188)]?.[a218_0x500ad5(0x190)];export class DefaultLogFormatter{[a218_0x500ad5(0x184)];[a218_0x500ad5(0x194)];constructor(_0x1d7d7b={}){const _0x53a2c9=a218_0x500ad5;this[_0x53a2c9(0x184)]=_0x1d7d7b[_0x53a2c9(0x184)]??![],this['chalk']=_0x1d7d7b[_0x53a2c9(0x184)]&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x50f9b1;}[a218_0x500ad5(0x189)](_0x3653d0){const _0x4b1da8=a218_0x500ad5,_0x4320f8=formatTimestamp(_0x3653d0[_0x4b1da8(0x177)]),_0x2470ca=logLevelToString(_0x3653d0[_0x4b1da8(0x178)]);if(!this[_0x4b1da8(0x184)])return _0x4320f8+'\x20['+_0x2470ca+_0x4b1da8(0x17f)+_0x3653d0[_0x4b1da8(0x187)]+']\x20'+_0x3653d0[_0x4b1da8(0x18f)];const _0x19287b=this['chalk'][_0x4b1da8(0x17c)](_0x4320f8),_0x16813c=this[_0x4b1da8(0x17b)](_0x2470ca,_0x3653d0['level']),_0x273112=this[_0x4b1da8(0x194)][_0x4b1da8(0x18d)]('['+_0x3653d0['component']+']');return _0x19287b+'\x20'+_0x16813c+'\x20'+_0x273112+'\x20'+_0x3653d0[_0x4b1da8(0x18f)];}['colorLevel'](_0x3ca36f,_0x5c6e2f){const _0x384866=a218_0x500ad5;switch(_0x5c6e2f){case LogLevel['TRACE']:return this[_0x384866(0x194)]['gray']('['+_0x3ca36f+']');case LogLevel[_0x384866(0x185)]:return this['chalk'][_0x384866(0x182)]('['+_0x3ca36f+']');case LogLevel[_0x384866(0x191)]:return this[_0x384866(0x194)][_0x384866(0x179)]('['+_0x3ca36f+']');case LogLevel['WARN']:return this['chalk'][_0x384866(0x183)]('['+_0x3ca36f+']');case LogLevel[_0x384866(0x17e)]:return this[_0x384866(0x194)]['red']('['+_0x3ca36f+']');default:return'['+_0x3ca36f+']';}}}
@@ -1 +1 @@
1
- function a219_0xcd38(){var _0x20d79b=['27562510gHtKGs','73617KtjMAz','8831565sPfrBP','26jreJHS','14232Aengzj','5590250yAANiL','916059nBoaBL','2408BmncZR','2034474wlKfEM','4tVxemA'];a219_0xcd38=function(){return _0x20d79b;};return a219_0xcd38();}function a219_0x3a9c(_0x1fb92f,_0x5a7483){_0x1fb92f=_0x1fb92f-0xfb;var _0xcd38dd=a219_0xcd38();var _0x3a9c56=_0xcd38dd[_0x1fb92f];return _0x3a9c56;}(function(_0x137729,_0x56c58b){var _0x58d854=a219_0x3a9c,_0x5a00e2=_0x137729();while(!![]){try{var _0x2b1e41=-parseInt(_0x58d854(0xfe))/0x1*(parseInt(_0x58d854(0x100))/0x2)+parseInt(_0x58d854(0x103))/0x3*(-parseInt(_0x58d854(0xfc))/0x4)+parseInt(_0x58d854(0x102))/0x5+-parseInt(_0x58d854(0xfb))/0x6+parseInt(_0x58d854(0x104))/0x7*(-parseInt(_0x58d854(0x101))/0x8)+-parseInt(_0x58d854(0xff))/0x9+parseInt(_0x58d854(0xfd))/0xa;if(_0x2b1e41===_0x56c58b)break;else _0x5a00e2['push'](_0x5a00e2['shift']());}catch(_0x33c69d){_0x5a00e2['push'](_0x5a00e2['shift']());}}}(a219_0xcd38,0xa5ea3));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a219_0x301d(){var _0x52dd80=['4530adlXxS','300302Obofcm','15aqyCKy','195080lritcK','215060uxklun','1710144BkVtyn','2191DHxeoz','149860UZGJHb','52816olvEAm'];a219_0x301d=function(){return _0x52dd80;};return a219_0x301d();}function a219_0x17a3(_0x169cf8,_0x1e8e07){_0x169cf8=_0x169cf8-0x171;var _0x301d7f=a219_0x301d();var _0x17a306=_0x301d7f[_0x169cf8];return _0x17a306;}(function(_0x5a78a0,_0x507419){var _0x351db1=a219_0x17a3,_0x5cc9f1=_0x5a78a0();while(!![]){try{var _0x2d255a=parseInt(_0x351db1(0x177))/0x1+parseInt(_0x351db1(0x175))/0x2+parseInt(_0x351db1(0x178))/0x3*(parseInt(_0x351db1(0x171))/0x4)+-parseInt(_0x351db1(0x174))/0x5+parseInt(_0x351db1(0x176))/0x6*(-parseInt(_0x351db1(0x173))/0x7)+parseInt(_0x351db1(0x179))/0x8+-parseInt(_0x351db1(0x172))/0x9;if(_0x2d255a===_0x507419)break;else _0x5cc9f1['push'](_0x5cc9f1['shift']());}catch(_0x1a92c1){_0x5cc9f1['push'](_0x5cc9f1['shift']());}}}(a219_0x301d,0x27f21));export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a220_0xc1baa=a220_0x16fa;(function(_0x38bb8d,_0x27a2bc){const _0x483f31=a220_0x16fa,_0x5aedc=_0x38bb8d();while(!![]){try{const _0x4d49ee=parseInt(_0x483f31(0x95))/0x1*(-parseInt(_0x483f31(0x8f))/0x2)+parseInt(_0x483f31(0x8e))/0x3*(-parseInt(_0x483f31(0x85))/0x4)+parseInt(_0x483f31(0x96))/0x5+-parseInt(_0x483f31(0x94))/0x6*(parseInt(_0x483f31(0x88))/0x7)+-parseInt(_0x483f31(0x98))/0x8*(parseInt(_0x483f31(0x8a))/0x9)+-parseInt(_0x483f31(0x89))/0xa*(-parseInt(_0x483f31(0x93))/0xb)+parseInt(_0x483f31(0x8d))/0xc;if(_0x4d49ee===_0x27a2bc)break;else _0x5aedc['push'](_0x5aedc['shift']());}catch(_0x5e25c5){_0x5aedc['push'](_0x5aedc['shift']());}}}(a220_0x37c3,0xf3537));import{LogLevel as a220_0x3fd61c}from'../types.js';function a220_0x16fa(_0x4e3a43,_0xda6381){_0x4e3a43=_0x4e3a43-0x84;const _0x37c382=a220_0x37c3();let _0x16fad0=_0x37c382[_0x4e3a43];return _0x16fad0;}function a220_0x37c3(){const _0x34ac09=['19643635BNnCGX','6sCnbWC','234qExRhN','4251745sLOmIy','minLevel','665744bQvLrM','error','log','11200VqPBxH','colors','handle','10327660lQhBPe','10hxZwnS','144wUXKKK','formatter','useStderr','56945892fYBIBe','2106zCrpRr','13782DRnzmr','WARN','level','format'];a220_0x37c3=function(){return _0x34ac09;};return a220_0x37c3();}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a220_0xc1baa(0x97)];[a220_0xc1baa(0x8c)];[a220_0xc1baa(0x8b)];constructor(_0x4207e9={}){const _0x2f4b8b=a220_0xc1baa;this['minLevel']=_0x4207e9[_0x2f4b8b(0x97)]??a220_0x3fd61c[_0x2f4b8b(0x90)],this[_0x2f4b8b(0x8c)]=_0x4207e9[_0x2f4b8b(0x8c)]??!![],this[_0x2f4b8b(0x8b)]=new DefaultLogFormatter({'colors':_0x4207e9[_0x2f4b8b(0x86)]??!![]});}[a220_0xc1baa(0x87)](_0x3d0d48){const _0x414cf=a220_0xc1baa;if(_0x3d0d48[_0x414cf(0x91)]<this['minLevel'])return;const _0x469f5c=this['formatter'][_0x414cf(0x92)](_0x3d0d48);this['useStderr']&&_0x3d0d48[_0x414cf(0x91)]>=a220_0x3fd61c[_0x414cf(0x90)]?console[_0x414cf(0x99)](_0x469f5c):console[_0x414cf(0x84)](_0x469f5c);}}
1
+ const a220_0x971015=a220_0x458c;(function(_0x51c371,_0x119878){const _0x205d80=a220_0x458c,_0x3d7eeb=_0x51c371();while(!![]){try{const _0x531c88=-parseInt(_0x205d80(0xff))/0x1+parseInt(_0x205d80(0x10d))/0x2*(parseInt(_0x205d80(0xfe))/0x3)+parseInt(_0x205d80(0x109))/0x4*(-parseInt(_0x205d80(0x103))/0x5)+parseInt(_0x205d80(0x10b))/0x6+parseInt(_0x205d80(0x101))/0x7+-parseInt(_0x205d80(0x104))/0x8*(parseInt(_0x205d80(0x108))/0x9)+-parseInt(_0x205d80(0x10a))/0xa;if(_0x531c88===_0x119878)break;else _0x3d7eeb['push'](_0x3d7eeb['shift']());}catch(_0x7ef77c){_0x3d7eeb['push'](_0x3d7eeb['shift']());}}}(a220_0x387e,0x284fd));import{LogLevel as a220_0x431e23}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a220_0x971015(0x105)];['useStderr'];[a220_0x971015(0x10e)];constructor(_0x1c1567={}){const _0x22ddb8=a220_0x971015;this[_0x22ddb8(0x105)]=_0x1c1567[_0x22ddb8(0x105)]??a220_0x431e23[_0x22ddb8(0x102)],this['useStderr']=_0x1c1567[_0x22ddb8(0x106)]??!![],this[_0x22ddb8(0x10e)]=new DefaultLogFormatter({'colors':_0x1c1567['colors']??!![]});}[a220_0x971015(0x10c)](_0x1da070){const _0x4ff7cd=a220_0x971015;if(_0x1da070[_0x4ff7cd(0x107)]<this[_0x4ff7cd(0x105)])return;const _0xd50f78=this[_0x4ff7cd(0x10e)][_0x4ff7cd(0x100)](_0x1da070);this['useStderr']&&_0x1da070[_0x4ff7cd(0x107)]>=a220_0x431e23[_0x4ff7cd(0x102)]?console['error'](_0xd50f78):console['log'](_0xd50f78);}}function a220_0x458c(_0x4fe114,_0x592a8d){_0x4fe114=_0x4fe114-0xfe;const _0x387e33=a220_0x387e();let _0x458c93=_0x387e33[_0x4fe114];return _0x458c93;}function a220_0x387e(){const _0x163b9c=['level','9iRGkUA','285132MsTXoK','933660UnuZcX','1892730cLMEbg','handle','58YBuHxP','formatter','24663dhZQME','103400OxIUEg','format','1387127CnchWB','WARN','5uESzQV','2550872dnFTAI','minLevel','useStderr'];a220_0x387e=function(){return _0x163b9c;};return a220_0x387e();}
@@ -1 +1 @@
1
- const a221_0x3b1569=a221_0x4be8;(function(_0x1bb802,_0x291e65){const _0x45f32b=a221_0x4be8,_0x342923=_0x1bb802();while(!![]){try{const _0x10adab=-parseInt(_0x45f32b(0x13c))/0x1+parseInt(_0x45f32b(0x11c))/0x2+-parseInt(_0x45f32b(0x121))/0x3*(parseInt(_0x45f32b(0x12f))/0x4)+parseInt(_0x45f32b(0x132))/0x5+-parseInt(_0x45f32b(0x135))/0x6+-parseInt(_0x45f32b(0x13a))/0x7+parseInt(_0x45f32b(0x136))/0x8*(parseInt(_0x45f32b(0x11e))/0x9);if(_0x10adab===_0x291e65)break;else _0x342923['push'](_0x342923['shift']());}catch(_0x5b2b97){_0x342923['push'](_0x342923['shift']());}}}(a221_0x1525,0x84403));import{createWriteStream,createReadStream}from'fs';function a221_0x1525(){const _0x236bc8=['write','rotate','logStream','4388qvkTkR','includes','getLogPath','842845TafyGd','logBaseName','\x5c$&','2007690RHglbS','136dOwspN','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','rotateOldLogs','.log','5021310DzpMHl','close','24353bAWiCY','format','tdx.log','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','1871170ktRIgf','.gz','665793tXUfER','filter','logDir','2034JOxdZC','message','filePath','logFileName','replace','error','toISOString','split','logs','handle','logPath'];a221_0x1525=function(){return _0x236bc8;};return a221_0x1525();}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 a221_0x4be8(_0x1b016a,_0x4b3199){_0x1b016a=_0x1b016a-0x119;const _0x152528=a221_0x1525();let _0x4be8a3=_0x152528[_0x1b016a];return _0x4be8a3;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a221_0x3b1569(0x12b)];[a221_0x3b1569(0x120)];['logFileName'];['logBaseName'];[a221_0x3b1569(0x12e)]=null;[a221_0x3b1569(0x12d)];constructor(_0x59d009={}){const _0x1928cf=a221_0x3b1569;this['logPath']=_0x59d009[_0x1928cf(0x123)]??join(getGlobalCacheDir(),_0x1928cf(0x129),_0x1928cf(0x11a)),this[_0x1928cf(0x120)]=dirname(this[_0x1928cf(0x12b)]),this[_0x1928cf(0x124)]=basename(this[_0x1928cf(0x12b)]),this['logBaseName']=this[_0x1928cf(0x124)][_0x1928cf(0x125)](/\.log$/,''),this[_0x1928cf(0x12d)]=_0x59d009[_0x1928cf(0x12d)]??!![];}async['init'](){const _0x445ec0=a221_0x3b1569;try{await mkdir(this[_0x445ec0(0x120)],{'recursive':!![]}),this[_0x445ec0(0x12d)]&&await this[_0x445ec0(0x138)](),this[_0x445ec0(0x12e)]=createWriteStream(this[_0x445ec0(0x12b)],{'flags':'a'}),this[_0x445ec0(0x12e)]['on'](_0x445ec0(0x126),_0x5800bd=>{const _0x166631=_0x445ec0;console[_0x166631(0x126)]('Warning:\x20Error\x20writing\x20to\x20'+this[_0x166631(0x124)]+':',_0x5800bd[_0x166631(0x122)]);});}catch(_0x1338e0){console[_0x445ec0(0x126)](_0x445ec0(0x11b),_0x1338e0);}}[a221_0x3b1569(0x12a)](_0x185659){const _0x2a17d4=a221_0x3b1569;if(!this[_0x2a17d4(0x12e)])return;const _0x503e16=Logger[_0x2a17d4(0x119)](_0x185659);this[_0x2a17d4(0x12e)][_0x2a17d4(0x12c)](_0x503e16+'\x0a');}async[a221_0x3b1569(0x13b)](){return new Promise(_0x42626b=>{const _0x18a140=a221_0x4be8;this[_0x18a140(0x12e)]?this[_0x18a140(0x12e)]['end'](()=>{const _0x2d971e=_0x18a140;this[_0x2d971e(0x12e)]=null,_0x42626b();}):_0x42626b();});}[a221_0x3b1569(0x131)](){const _0x391fe7=a221_0x3b1569;return this[_0x391fe7(0x12b)];}async[a221_0x3b1569(0x138)](){const _0x533f8d=a221_0x3b1569;try{const _0x3c9c09=await readdir(this[_0x533f8d(0x120)]),_0x5e8936=new Date()[_0x533f8d(0x127)]()[_0x533f8d(0x128)]('T')[0x0];if(_0x3c9c09[_0x533f8d(0x130)](this[_0x533f8d(0x124)])){const _0x341087=join(this['logDir'],this[_0x533f8d(0x124)]),_0x493d88=await stat(_0x341087),_0x20e9f5=new Date(_0x493d88['mtime'])[_0x533f8d(0x127)]()[_0x533f8d(0x128)]('T')[0x0];if(_0x20e9f5<_0x5e8936){const _0x7ab621=join(this[_0x533f8d(0x120)],this['logBaseName']+'-'+_0x20e9f5+_0x533f8d(0x139));await rename(_0x341087,_0x7ab621);}}const _0x5d93e7=await readdir(this['logDir']),_0x2c16a6=this[_0x533f8d(0x133)][_0x533f8d(0x125)](/[.*+?^${}()|[\]\\]/g,_0x533f8d(0x134)),_0x23439b=new RegExp('^'+_0x2c16a6+_0x533f8d(0x137)),_0x483df9=_0x5d93e7[_0x533f8d(0x11f)](_0x5b896f=>_0x23439b['test'](_0x5b896f));for(const _0x33ef26 of _0x483df9){const _0x29d54b=join(this['logDir'],_0x33ef26),_0x41dd70=join(this[_0x533f8d(0x120)],_0x33ef26+_0x533f8d(0x11d));try{await pipeline(createReadStream(_0x29d54b),createGzip(),createWriteStream(_0x41dd70)),await unlink(_0x29d54b);}catch(_0x69cb33){console[_0x533f8d(0x126)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x33ef26+':',_0x69cb33);}}}catch{}}}
1
+ const a221_0x39b800=a221_0x5e02;(function(_0x21a704,_0x83337){const _0x545f01=a221_0x5e02,_0x1cd750=_0x21a704();while(!![]){try{const _0x3fa34c=-parseInt(_0x545f01(0x15c))/0x1+-parseInt(_0x545f01(0x155))/0x2*(parseInt(_0x545f01(0x171))/0x3)+-parseInt(_0x545f01(0x16c))/0x4*(parseInt(_0x545f01(0x15a))/0x5)+-parseInt(_0x545f01(0x16f))/0x6+-parseInt(_0x545f01(0x16e))/0x7+parseInt(_0x545f01(0x161))/0x8+parseInt(_0x545f01(0x16b))/0x9*(parseInt(_0x545f01(0x169))/0xa);if(_0x3fa34c===_0x83337)break;else _0x1cd750['push'](_0x1cd750['shift']());}catch(_0x13a551){_0x1cd750['push'](_0x1cd750['shift']());}}}(a221_0x15fc,0x6c1f9));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a221_0x5e02(_0x54d3ef,_0x11c7b0){_0x54d3ef=_0x54d3ef-0x14c;const _0x15fce1=a221_0x15fc();let _0x5e0206=_0x15fce1[_0x54d3ef];return _0x5e0206;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';function a221_0x15fc(){const _0x320a87=['\x5c$&','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','filePath','5862136IDmVtu','error','logPath','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logBaseName','logDir','format','split','24290sWUJHj','toISOString','5715JarkJi','4yQlhrG','Warning:\x20Error\x20writing\x20to\x20','754285DQjHCY','1159830zbTFJS','init','1035xYyqEJ','handle','logFileName','rotateOldLogs','logs','mtime','getLogPath','end','test','includes','rotate','.log','close','2606dpDggR','tdx.log','.gz','Warning:\x20Failed\x20to\x20compress\x20','filter','3637965tkCLaF','logStream','354121ToeDmv','replace'];a221_0x15fc=function(){return _0x320a87;};return a221_0x15fc();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a221_0x39b800(0x163)];['logDir'];[a221_0x39b800(0x173)];['logBaseName'];[a221_0x39b800(0x15b)]=null;[a221_0x39b800(0x152)];constructor(_0x4ddd93={}){const _0x1ced12=a221_0x39b800;this['logPath']=_0x4ddd93[_0x1ced12(0x160)]??join(getGlobalCacheDir(),_0x1ced12(0x14c),_0x1ced12(0x156)),this['logDir']=dirname(this[_0x1ced12(0x163)]),this[_0x1ced12(0x173)]=basename(this[_0x1ced12(0x163)]),this[_0x1ced12(0x165)]=this[_0x1ced12(0x173)][_0x1ced12(0x15d)](/\.log$/,''),this[_0x1ced12(0x152)]=_0x4ddd93[_0x1ced12(0x152)]??!![];}async[a221_0x39b800(0x170)](){const _0x3784ca=a221_0x39b800;try{await mkdir(this[_0x3784ca(0x166)],{'recursive':!![]}),this[_0x3784ca(0x152)]&&await this['rotateOldLogs'](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x3784ca(0x15b)]['on']('error',_0x48a9a0=>{const _0x42941a=_0x3784ca;console[_0x42941a(0x162)](_0x42941a(0x16d)+this[_0x42941a(0x173)]+':',_0x48a9a0['message']);});}catch(_0x5788aa){console[_0x3784ca(0x162)](_0x3784ca(0x15f),_0x5788aa);}}[a221_0x39b800(0x172)](_0x380852){const _0x45bd74=a221_0x39b800;if(!this[_0x45bd74(0x15b)])return;const _0x47d771=Logger[_0x45bd74(0x167)](_0x380852);this[_0x45bd74(0x15b)]['write'](_0x47d771+'\x0a');}async[a221_0x39b800(0x154)](){return new Promise(_0x3de906=>{const _0x42c3d9=a221_0x5e02;this['logStream']?this['logStream'][_0x42c3d9(0x14f)](()=>{this['logStream']=null,_0x3de906();}):_0x3de906();});}[a221_0x39b800(0x14e)](){return this['logPath'];}async[a221_0x39b800(0x174)](){const _0x25f6d0=a221_0x39b800;try{const _0x4b4e8e=await readdir(this[_0x25f6d0(0x166)]),_0x16abeb=new Date()['toISOString']()[_0x25f6d0(0x168)]('T')[0x0];if(_0x4b4e8e[_0x25f6d0(0x151)](this[_0x25f6d0(0x173)])){const _0xcac979=join(this['logDir'],this['logFileName']),_0x51a456=await stat(_0xcac979),_0x78cd36=new Date(_0x51a456[_0x25f6d0(0x14d)])[_0x25f6d0(0x16a)]()[_0x25f6d0(0x168)]('T')[0x0];if(_0x78cd36<_0x16abeb){const _0x136e05=join(this[_0x25f6d0(0x166)],this[_0x25f6d0(0x165)]+'-'+_0x78cd36+_0x25f6d0(0x153));await rename(_0xcac979,_0x136e05);}}const _0x1a8bc6=await readdir(this[_0x25f6d0(0x166)]),_0x56cdad=this[_0x25f6d0(0x165)][_0x25f6d0(0x15d)](/[.*+?^${}()|[\]\\]/g,_0x25f6d0(0x15e)),_0x5eb864=new RegExp('^'+_0x56cdad+_0x25f6d0(0x164)),_0x5e77a2=_0x1a8bc6[_0x25f6d0(0x159)](_0x341b68=>_0x5eb864[_0x25f6d0(0x150)](_0x341b68));for(const _0x4ec023 of _0x5e77a2){const _0x539968=join(this[_0x25f6d0(0x166)],_0x4ec023),_0xf1412b=join(this[_0x25f6d0(0x166)],_0x4ec023+_0x25f6d0(0x157));try{await pipeline(createReadStream(_0x539968),createGzip(),createWriteStream(_0xf1412b)),await unlink(_0x539968);}catch(_0x2b23b4){console[_0x25f6d0(0x162)](_0x25f6d0(0x158)+_0x4ec023+':',_0x2b23b4);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x64e747,_0x31b1d4){var _0x3dbf8b=a222_0x36c4,_0x150a05=_0x64e747();while(!![]){try{var _0x287d62=parseInt(_0x3dbf8b(0x186))/0x1*(-parseInt(_0x3dbf8b(0x184))/0x2)+-parseInt(_0x3dbf8b(0x18d))/0x3*(parseInt(_0x3dbf8b(0x185))/0x4)+-parseInt(_0x3dbf8b(0x189))/0x5+parseInt(_0x3dbf8b(0x188))/0x6+parseInt(_0x3dbf8b(0x18c))/0x7*(-parseInt(_0x3dbf8b(0x18a))/0x8)+-parseInt(_0x3dbf8b(0x187))/0x9+parseInt(_0x3dbf8b(0x18b))/0xa;if(_0x287d62===_0x31b1d4)break;else _0x150a05['push'](_0x150a05['shift']());}catch(_0x4f63ca){_0x150a05['push'](_0x150a05['shift']());}}}(a222_0x4a36,0xccbf1));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a222_0x36c4(_0x12150e,_0x33e770){_0x12150e=_0x12150e-0x184;var _0x4a3631=a222_0x4a36();var _0x36c4fd=_0x4a3631[_0x12150e];return _0x36c4fd;}export{NullHandler}from'./null-handler.js';function a222_0x4a36(){var _0x54883d=['26226420kbjeSd','910DoUBPn','144vqkMNW','26kroLut','14936jiNiej','86433rMqbVE','12262689KSTNzR','8870118jknikn','2964710ywGWTE','248QotQgp'];a222_0x4a36=function(){return _0x54883d;};return a222_0x4a36();}
1
+ (function(_0x7f9bbc,_0x4bfdae){var _0x3d2225=a222_0x3fe2,_0x1e8ab7=_0x7f9bbc();while(!![]){try{var _0x529db6=parseInt(_0x3d2225(0x1be))/0x1*(parseInt(_0x3d2225(0x1bc))/0x2)+parseInt(_0x3d2225(0x1b6))/0x3*(parseInt(_0x3d2225(0x1b8))/0x4)+parseInt(_0x3d2225(0x1bf))/0x5+parseInt(_0x3d2225(0x1b9))/0x6*(-parseInt(_0x3d2225(0x1bd))/0x7)+-parseInt(_0x3d2225(0x1b7))/0x8+parseInt(_0x3d2225(0x1b4))/0x9*(-parseInt(_0x3d2225(0x1ba))/0xa)+-parseInt(_0x3d2225(0x1b5))/0xb*(-parseInt(_0x3d2225(0x1bb))/0xc);if(_0x529db6===_0x4bfdae)break;else _0x1e8ab7['push'](_0x1e8ab7['shift']());}catch(_0x3daf94){_0x1e8ab7['push'](_0x1e8ab7['shift']());}}}(a222_0xddf9,0xb5496));function a222_0x3fe2(_0x497dee,_0x51b5d3){_0x497dee=_0x497dee-0x1b4;var _0xddf9b1=a222_0xddf9();var _0x3fe203=_0xddf9b1[_0x497dee];return _0x3fe203;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a222_0xddf9(){var _0x2df017=['4773855COjvMJ','8091IAkwmW','4575274lKdOic','492990ddqMIS','9443120PXKOxg','20MajPcV','432186oDdGVQ','6190SIszUV','12WlyXDl','62742STIzQj','91VWjXfn','39oUsHjN'];a222_0xddf9=function(){return _0x2df017;};return a222_0xddf9();}export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a223_0x40f5(){var _0x79114e=['18399sbYzqo','3036656GXfJgw','110YncGYI','handle','1088517MfWArH','210942pUzVWm','156jESJUl','1725PnfvRF','372383TYdrKR','6ZgAqHs','2706557aiBjDo','26NfgDPE','2308DRHNNq'];a223_0x40f5=function(){return _0x79114e;};return a223_0x40f5();}var a223_0xaaf599=a223_0x2dd9;(function(_0x5d9a88,_0x1b2543){var _0x1825ea=a223_0x2dd9,_0x2719dd=_0x5d9a88();while(!![]){try{var _0x1c865e=parseInt(_0x1825ea(0xcf))/0x1*(parseInt(_0x1825ea(0xcd))/0x2)+parseInt(_0x1825ea(0xd3))/0x3+parseInt(_0x1825ea(0xce))/0x4*(-parseInt(_0x1825ea(0xd6))/0x5)+parseInt(_0x1825ea(0xcb))/0x6*(-parseInt(_0x1825ea(0xcc))/0x7)+parseInt(_0x1825ea(0xd0))/0x8+-parseInt(_0x1825ea(0xd4))/0x9*(-parseInt(_0x1825ea(0xd1))/0xa)+parseInt(_0x1825ea(0xd7))/0xb*(-parseInt(_0x1825ea(0xd5))/0xc);if(_0x1c865e===_0x1b2543)break;else _0x2719dd['push'](_0x2719dd['shift']());}catch(_0x1730b7){_0x2719dd['push'](_0x2719dd['shift']());}}}(a223_0x40f5,0x34275));function a223_0x2dd9(_0x2b8b4d,_0x25a296){_0x2b8b4d=_0x2b8b4d-0xcb;var _0x40f59a=a223_0x40f5();var _0x2dd9af=_0x40f59a[_0x2b8b4d];return _0x2dd9af;}export class NullHandler{[a223_0xaaf599(0xd2)](_0x5eb430){}}
1
+ function a223_0xe1f9(_0x8ce5e1,_0x203c70){_0x8ce5e1=_0x8ce5e1-0x7b;var _0x461cc4=a223_0x461c();var _0xe1f9ed=_0x461cc4[_0x8ce5e1];return _0xe1f9ed;}var a223_0x1e90a6=a223_0xe1f9;function a223_0x461c(){var _0x18f0f7=['12472HXGIRZ','82888ikZbjq','3926kqqfvp','250asCIYH','624402qWQLHX','379245KiSWzE','237882TBeddy','127773lDlLwS','handle','52CqjMsZ','329vTCnQZ'];a223_0x461c=function(){return _0x18f0f7;};return a223_0x461c();}(function(_0xe6d012,_0x36cd7a){var _0x2f1aec=a223_0xe1f9,_0x2a142e=_0xe6d012();while(!![]){try{var _0x47ff02=parseInt(_0x2f1aec(0x81))/0x1*(parseInt(_0x2f1aec(0x85))/0x2)+-parseInt(_0x2f1aec(0x7c))/0x3+-parseInt(_0x2f1aec(0x84))/0x4+-parseInt(_0x2f1aec(0x7d))/0x5+parseInt(_0x2f1aec(0x7e))/0x6+parseInt(_0x2f1aec(0x82))/0x7*(-parseInt(_0x2f1aec(0x83))/0x8)+parseInt(_0x2f1aec(0x7f))/0x9*(parseInt(_0x2f1aec(0x7b))/0xa);if(_0x47ff02===_0x36cd7a)break;else _0x2a142e['push'](_0x2a142e['shift']());}catch(_0x518f3a){_0x2a142e['push'](_0x2a142e['shift']());}}}(a223_0x461c,0x1cf8e));export class NullHandler{[a223_0x1e90a6(0x80)](_0x371411){}}
@@ -1 +1 @@
1
- (function(_0x5a3857,_0x49ab7f){var _0x85dad1=a224_0x5acd,_0x3bb014=_0x5a3857();while(!![]){try{var _0x3f9d7b=-parseInt(_0x85dad1(0xdb))/0x1*(-parseInt(_0x85dad1(0xe2))/0x2)+-parseInt(_0x85dad1(0xdf))/0x3*(-parseInt(_0x85dad1(0xde))/0x4)+parseInt(_0x85dad1(0xe5))/0x5+-parseInt(_0x85dad1(0xe0))/0x6*(parseInt(_0x85dad1(0xe3))/0x7)+-parseInt(_0x85dad1(0xe4))/0x8+parseInt(_0x85dad1(0xe1))/0x9*(parseInt(_0x85dad1(0xdd))/0xa)+-parseInt(_0x85dad1(0xdc))/0xb;if(_0x3f9d7b===_0x49ab7f)break;else _0x3bb014['push'](_0x3bb014['shift']());}catch(_0x365524){_0x3bb014['push'](_0x3bb014['shift']());}}}(a224_0x3f3a,0xd1155));export{Logger}from'./logger.js';function a224_0x5acd(_0x5b6dea,_0x4c5fca){_0x5b6dea=_0x5b6dea-0xdb;var _0x3f3a61=a224_0x3f3a();var _0x5acdee=_0x3f3a61[_0x5b6dea];return _0x5acdee;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a224_0x3f3a(){var _0x308b0a=['8129485TCOlBK','1EXyfCv','6601936qTRmYb','140920nNgALP','28468NnymQn','276PBrDDd','1628640GSkVKh','396eenLSG','154328dIajsm','14hrZiol','7827296IRBgKt'];a224_0x3f3a=function(){return _0x308b0a;};return a224_0x3f3a();}
1
+ (function(_0x5312a7,_0x41a0fa){var _0x5f1f55=a224_0x2acd,_0x4ad80c=_0x5312a7();while(!![]){try{var _0x14b0ea=-parseInt(_0x5f1f55(0xd0))/0x1*(-parseInt(_0x5f1f55(0xcc))/0x2)+-parseInt(_0x5f1f55(0xce))/0x3*(-parseInt(_0x5f1f55(0xcf))/0x4)+-parseInt(_0x5f1f55(0xcd))/0x5*(-parseInt(_0x5f1f55(0xc9))/0x6)+parseInt(_0x5f1f55(0xc5))/0x7*(parseInt(_0x5f1f55(0xc8))/0x8)+-parseInt(_0x5f1f55(0xcb))/0x9*(-parseInt(_0x5f1f55(0xc6))/0xa)+parseInt(_0x5f1f55(0xc7))/0xb+-parseInt(_0x5f1f55(0xca))/0xc;if(_0x14b0ea===_0x41a0fa)break;else _0x4ad80c['push'](_0x4ad80c['shift']());}catch(_0x31cbd5){_0x4ad80c['push'](_0x4ad80c['shift']());}}}(a224_0x143b,0x45f58));function a224_0x2acd(_0x156c5a,_0x50f462){_0x156c5a=_0x156c5a-0xc5;var _0x143b8a=a224_0x143b();var _0x2acd11=_0x143b8a[_0x156c5a];return _0x2acd11;}export{Logger}from'./logger.js';function a224_0x143b(){var _0x264d22=['17493852EPoVBT','39771WyEiZA','350414oqvvIE','5fcObSR','248499qdZtrr','16DZTDoz','1GbCBDf','280zOBigs','50SFKqNl','3896222EyGCpM','105472FsMgPD','2005062LUeigM'];a224_0x143b=function(){return _0x264d22;};return a224_0x143b();}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';