@treasuredata/tdx 2026.5.1 → 2026.6.0

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 (228) 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/table-deleted.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/unset-command.js +1 -1
  53. package/dist/commands/upgrade-command.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.js +1 -1
  56. package/dist/commands/work-command.js +1 -1
  57. package/dist/commands/workflow-command.js +1 -1
  58. package/dist/core/auth.js +1 -1
  59. package/dist/core/command-output.js +1 -1
  60. package/dist/core/config.js +1 -1
  61. package/dist/core/connection-cache.js +1 -1
  62. package/dist/core/constants.js +1 -1
  63. package/dist/core/credential-cache.js +1 -1
  64. package/dist/core/global-context.js +1 -1
  65. package/dist/core/keychain.js +1 -1
  66. package/dist/core/oauth-keychain.js +1 -1
  67. package/dist/core/oauth.js +1 -1
  68. package/dist/core/profile.js +1 -1
  69. package/dist/core/project-config.js +1 -1
  70. package/dist/core/session.js +1 -1
  71. package/dist/core/user-cache.js +1 -1
  72. package/dist/core/version.js +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/mcp/server.js +1 -1
  75. package/dist/mcp/tools/index.js +1 -1
  76. package/dist/mcp/tools/tdx-run.js +1 -1
  77. package/dist/mcp/tools/tdx-search.js +1 -1
  78. package/dist/mcp/tools/work-create-item.js +1 -1
  79. package/dist/mcp/utils.js +1 -1
  80. package/dist/proxy/claude-usage-tracker.js +1 -1
  81. package/dist/proxy/passthrough-server.js +1 -1
  82. package/dist/proxy/sse-usage-parser.js +1 -1
  83. package/dist/sdk/agent/agent-config.js +1 -1
  84. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  85. package/dist/sdk/agent/agent-yaml.js +1 -1
  86. package/dist/sdk/agent/test/evaluator.js +1 -1
  87. package/dist/sdk/agent/test/executor.js +1 -1
  88. package/dist/sdk/agent/test/index.js +1 -1
  89. package/dist/sdk/agent/test/output.js +1 -1
  90. package/dist/sdk/agent/test/parser.js +1 -1
  91. package/dist/sdk/agent/tool-target-registry.js +1 -1
  92. package/dist/sdk/api.js +1 -1
  93. package/dist/sdk/cas/cas-api-client.js +1 -1
  94. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  95. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  96. package/dist/sdk/cas/index.js +1 -1
  97. package/dist/sdk/cas/pull-workflow.js +1 -1
  98. package/dist/sdk/cas/push-workflow.js +1 -1
  99. package/dist/sdk/client/cdp-api-client.js +1 -1
  100. package/dist/sdk/client/delivery-api-client.js +1 -1
  101. package/dist/sdk/client/endpoints.js +1 -1
  102. package/dist/sdk/client/engage-api-client.js +1 -1
  103. package/dist/sdk/client/http-client.js +1 -1
  104. package/dist/sdk/client/llm-api-client.js +1 -1
  105. package/dist/sdk/client/oauth-refresh.js +1 -1
  106. package/dist/sdk/client/rate-limiter.js +1 -1
  107. package/dist/sdk/client/td-api-client.js +1 -1
  108. package/dist/sdk/client/trino-api-client.js +1 -1
  109. package/dist/sdk/client/workflow-client.js +1 -1
  110. package/dist/sdk/connection-validator.js +1 -1
  111. package/dist/sdk/connection.js +1 -1
  112. package/dist/sdk/delivery.js +1 -1
  113. package/dist/sdk/engage/campaign-pull.js +1 -1
  114. package/dist/sdk/engage/campaign-push.js +1 -1
  115. package/dist/sdk/engage/campaign-validator.js +1 -1
  116. package/dist/sdk/engage/campaign-yaml.js +1 -1
  117. package/dist/sdk/engage/template-pull.js +1 -1
  118. package/dist/sdk/engage/template-push.js +1 -1
  119. package/dist/sdk/engage/template-validator.js +1 -1
  120. package/dist/sdk/engage/template-yaml.js +1 -1
  121. package/dist/sdk/engage/types/campaign-def.js +1 -1
  122. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  123. package/dist/sdk/engage/types/template-schema.js +1 -1
  124. package/dist/sdk/engage.js +1 -1
  125. package/dist/sdk/errors.js +1 -1
  126. package/dist/sdk/index.js +1 -1
  127. package/dist/sdk/io/index.js +1 -1
  128. package/dist/sdk/io/node-filesystem.js +1 -1
  129. package/dist/sdk/job.js +1 -1
  130. package/dist/sdk/journey.js +1 -1
  131. package/dist/sdk/llm/chat-cache.js +1 -1
  132. package/dist/sdk/llm/index.js +1 -1
  133. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  134. package/dist/sdk/llm/model-factors.js +1 -1
  135. package/dist/sdk/llm/user-settings.js +1 -1
  136. package/dist/sdk/personalization.js +1 -1
  137. package/dist/sdk/policy.js +1 -1
  138. package/dist/sdk/query/deleted-table-validation.js +1 -1
  139. package/dist/sdk/query/index.js +1 -1
  140. package/dist/sdk/query/sql-parser.js +1 -1
  141. package/dist/sdk/realtime.js +1 -1
  142. package/dist/sdk/schedule.js +1 -1
  143. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  144. package/dist/sdk/segment/fields-display.js +1 -1
  145. package/dist/sdk/segment/file-discovery.js +1 -1
  146. package/dist/sdk/segment/journey-utils.js +1 -1
  147. package/dist/sdk/segment/journey-validator.js +1 -1
  148. package/dist/sdk/segment/journey-yaml.js +1 -1
  149. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  150. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  151. package/dist/sdk/segment/pull-workflow.js +1 -1
  152. package/dist/sdk/segment/push-recovery.js +1 -1
  153. package/dist/sdk/segment/push-workflow.js +1 -1
  154. package/dist/sdk/segment/resolution-context.js +1 -1
  155. package/dist/sdk/segment/segment-path-parser.js +1 -1
  156. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  157. package/dist/sdk/segment/segment-validator.js +1 -1
  158. package/dist/sdk/segment/segment-validator.js.map +1 -1
  159. package/dist/sdk/segment/target-resolution.js +1 -1
  160. package/dist/sdk/segment/tdx-config.js +1 -1
  161. package/dist/sdk/segment/types/activation-schema.js +1 -1
  162. package/dist/sdk/segment/types/journey-def.js +1 -1
  163. package/dist/sdk/segment/types/journey-schema.js +1 -1
  164. package/dist/sdk/segment/types/segment-def.js +1 -1
  165. package/dist/sdk/segment/types/segment-schema.js +1 -1
  166. package/dist/sdk/segment/validate-files.js +1 -1
  167. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  168. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  169. package/dist/sdk/segment/yaml-validator.js +1 -1
  170. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  171. package/dist/sdk/segment.js +1 -1
  172. package/dist/sdk/types/index.js +1 -1
  173. package/dist/sdk/types/progress.js +1 -1
  174. package/dist/sdk/types/workspace.js +1 -1
  175. package/dist/sdk/user.js +1 -1
  176. package/dist/sdk/util/format-detector.js +1 -1
  177. package/dist/sdk/util/formatters.js +1 -1
  178. package/dist/sdk/util/index.js +1 -1
  179. package/dist/sdk/util/paginate.js +1 -1
  180. package/dist/sdk/util/tree-formatter.js +1 -1
  181. package/dist/sdk/workflow/archive-validation.js +1 -1
  182. package/dist/sdk/workflow/clone-workflow.js +1 -1
  183. package/dist/sdk/workflow/index.js +1 -1
  184. package/dist/sdk/workflow/pull-workflow.js +1 -1
  185. package/dist/sdk/workflow/push-workflow.js +1 -1
  186. package/dist/sdk/workflow/task-graph.js +1 -1
  187. package/dist/sdk/workflow/tdx-config.js +1 -1
  188. package/dist/sdk/workflow/workflow-utils.js +1 -1
  189. package/dist/sdk/workspace/access-tracker.js +1 -1
  190. package/dist/sdk/workspace/frontmatter.js +1 -1
  191. package/dist/sdk/workspace/git.js +1 -1
  192. package/dist/sdk/workspace/index.js +1 -1
  193. package/dist/sdk/workspace/templates.js +1 -1
  194. package/dist/sdk/workspace/weekly.js +1 -1
  195. package/dist/sdk/workspace/wikilinks.js +1 -1
  196. package/dist/test-utils/command-runner.js +1 -1
  197. package/dist/test-utils/factories.js +1 -1
  198. package/dist/test-utils/fixtures.js +1 -1
  199. package/dist/test-utils/http-mock.js +1 -1
  200. package/dist/test-utils/index.js +1 -1
  201. package/dist/utils/async.js +1 -1
  202. package/dist/utils/colors.js +1 -1
  203. package/dist/utils/diff.js +1 -1
  204. package/dist/utils/file-permissions.js +1 -1
  205. package/dist/utils/file-reader.js +1 -1
  206. package/dist/utils/github-releases.js +1 -1
  207. package/dist/utils/global-cache.js +1 -1
  208. package/dist/utils/json-loader.js +1 -1
  209. package/dist/utils/local-cache.js +1 -1
  210. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  211. package/dist/utils/logger/formatters/index.js +1 -1
  212. package/dist/utils/logger/handlers/console-handler.js +1 -1
  213. package/dist/utils/logger/handlers/file-handler.js +1 -1
  214. package/dist/utils/logger/handlers/index.js +1 -1
  215. package/dist/utils/logger/handlers/null-handler.js +1 -1
  216. package/dist/utils/logger/index.js +1 -1
  217. package/dist/utils/logger/logger.js +1 -1
  218. package/dist/utils/logger/types.js +1 -1
  219. package/dist/utils/option-validation.js +1 -1
  220. package/dist/utils/process.js +1 -1
  221. package/dist/utils/prompt.js +1 -1
  222. package/dist/utils/spinner.js +1 -1
  223. package/dist/utils/sse-parser.js +1 -1
  224. package/dist/utils/string-utils.js +1 -1
  225. package/dist/utils/table-ref-parser.js +1 -1
  226. package/dist/utils/tdx-logger.js +1 -1
  227. package/dist/utils/version-check.js +1 -1
  228. package/package.json +1 -1
@@ -1 +1 @@
1
- function a211_0x330c(_0x539b08,_0x512b19){_0x539b08=_0x539b08-0x1d9;const _0xf20192=a211_0xf201();let _0x330cc0=_0xf20192[_0x539b08];return _0x330cc0;}const a211_0xdee843=a211_0x330c;function a211_0xf201(){const _0x542224=['rfc9457','Not\x20Found','Forbidden','matcher','35312nDOUUr','toLowerCase','Request\x20body:\x20','length','searchParams','join','115278frVMZJ','every','getMatchCount','td-api','filter','simple','473996PjsMWI','host','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','jsonResponseWithHeaders','description','Unknown','No\x20stub\x20matched\x20request:\x20','verify','textResponse','Unprocessable\x20Entity','Bad\x20Gateway','fail','865580xxOIjj','Internal\x20Server\x20Error','180bWDwcV','matchCount','wasCalled','Bad\x20Request','fetchMock','map','errorResponse','Unmatched\x20stub','stubs','toUpperCase','parse','getStatusText','networkError','reset','requests','2194hJfmGO','getRequests','getLastRequest','method','url','text/plain','pathname','split','Unauthorized','createFetch','error','push','body','https://api.treasuredata.com/errors/','REST','includes','Too\x20Many\x20Requests','Registered\x20stubs:\x0a','GET','\x20registered\x20at:\x0a','Service\x20Unavailable','\x20\x20(none)','mockImplementation','stringify','No\x20Content','348ieYuQj','stack','3791150gOegTT','application/json','some','headers','jsonResponse','register','withQuery','test','152fZxoxz','entries','get','function','withBody','parseRequest','17843uvJmxl'];a211_0xf201=function(){return _0x542224;};return a211_0xf201();}(function(_0x492aeb,_0x371544){const _0x3b18a7=a211_0x330c,_0x5ec89f=_0x492aeb();while(!![]){try{const _0x594c46=-parseInt(_0x3b18a7(0x1e2))/0x1*(parseInt(_0x3b18a7(0x205))/0x2)+-parseInt(_0x3b18a7(0x216))/0x3+-parseInt(_0x3b18a7(0x21c))/0x4+-parseInt(_0x3b18a7(0x228))/0x5+parseInt(_0x3b18a7(0x1fb))/0x6*(parseInt(_0x3b18a7(0x20b))/0x7)+parseInt(_0x3b18a7(0x210))/0x8*(parseInt(_0x3b18a7(0x22a))/0x9)+parseInt(_0x3b18a7(0x1fd))/0xa;if(_0x594c46===_0x371544)break;else _0x5ec89f['push'](_0x5ec89f['shift']());}catch(_0xa300fd){_0x5ec89f['push'](_0x5ec89f['shift']());}}}(a211_0xf201,0x1ceb4));import{vi}from'vitest';export class HTTPMockRegistry{[a211_0xdee843(0x1db)]=[];[a211_0xdee843(0x1e1)]=[];[a211_0xdee843(0x22e)]=null;[a211_0xdee843(0x1f0)](_0x506eee,_0x4b3eb9){return _0x198c66=>{const _0x46cdf9=a211_0x330c;if(_0x198c66[_0x46cdf9(0x1e5)][_0x46cdf9(0x1dc)]()!==_0x506eee[_0x46cdf9(0x1dc)]())return![];const _0x1cfb83=new URL(_0x198c66[_0x46cdf9(0x1e6)]);if(typeof _0x4b3eb9==='string')return _0x1cfb83[_0x46cdf9(0x1e8)]===_0x4b3eb9||_0x1cfb83[_0x46cdf9(0x1e8)][_0x46cdf9(0x1f1)](_0x4b3eb9);return _0x4b3eb9[_0x46cdf9(0x204)](_0x1cfb83[_0x46cdf9(0x1e8)]);};}[a211_0xdee843(0x203)](_0x3b793f,_0x2714d8){return _0x63ae28=>{const _0x238144=a211_0x330c;if(!_0x3b793f(_0x63ae28))return![];const _0x323d66=new URL(_0x63ae28['url']);return Object['entries'](_0x2714d8)[_0x238144(0x217)](([_0x222e71,_0x3bb56c])=>_0x323d66[_0x238144(0x214)][_0x238144(0x207)](_0x222e71)===_0x3bb56c);};}[a211_0xdee843(0x209)](_0xb4e249,_0x20acaa){return _0x4cbc4f=>{const _0x50558c=a211_0x330c;if(!_0xb4e249(_0x4cbc4f))return![];if(typeof _0x20acaa===_0x50558c(0x208))return _0x20acaa(_0x4cbc4f[_0x50558c(0x1ee)]);return JSON[_0x50558c(0x1f9)](_0x4cbc4f[_0x50558c(0x1ee)])===JSON['stringify'](_0x20acaa);};}['withHost'](_0x4e0721,_0x50004b){return _0x205b50=>{const _0x33c1ee=a211_0x330c;if(!_0x4e0721(_0x205b50))return![];const _0x990d3d=new URL(_0x205b50[_0x33c1ee(0x1e6)]);return _0x990d3d[_0x33c1ee(0x21d)]===_0x50004b;};}['register'](_0xd0f6a5,_0x80dc6f,_0x37289a){const _0x532332=a211_0xdee843;this[_0x532332(0x1db)]['push']({'matcher':_0xd0f6a5,'responder':_0x80dc6f,'matched':![],'matchCount':0x0,'stack':new Error()[_0x532332(0x1fc)]??'','description':_0x37289a?.['description']});}['registerWithInspector'](_0x333427,_0x433d3d,_0x514595){const _0x4bdf11=a211_0xdee843,_0xf5788d=_0x40b94f=>{return _0x514595(_0x40b94f['body'],_0x40b94f),_0x433d3d(_0x40b94f);};this[_0x4bdf11(0x202)](_0x333427,_0xf5788d);}static[a211_0xdee843(0x201)](_0x1436d8,_0x5a075c=0xc8){const _0x1be4d5=a211_0xdee843;return()=>new Response(JSON[_0x1be4d5(0x1f9)](_0x1436d8),{'status':_0x5a075c,'headers':{'Content-Type':'application/json'}});}static[a211_0xdee843(0x1d9)](_0x17975f,_0x458bd5,_0x313bcf=a211_0xdee843(0x21b)){return()=>{const _0x4ec742=a211_0x330c;let _0x1f61f3;switch(_0x313bcf){case _0x4ec742(0x219):_0x1f61f3={'errors':{'error':_0x458bd5,'message':_0x458bd5,'severity':_0x4ec742(0x1ec),'status_code':_0x17975f}};break;case _0x4ec742(0x20c):_0x1f61f3={'type':_0x4ec742(0x1ef)+_0x17975f,'title':HTTPMockRegistry['getStatusText'](_0x17975f),'status':_0x17975f,'detail':_0x458bd5};break;default:_0x1f61f3={'error':_0x458bd5};}return new Response(JSON[_0x4ec742(0x1f9)](_0x1f61f3),{'status':_0x17975f,'headers':{'Content-Type':'application/json'}});};}static[a211_0xdee843(0x21f)](_0xad1f73,_0x3d5273,_0x1dd155=0xc8){const _0x7c32c0=a211_0xdee843;return()=>new Response(JSON[_0x7c32c0(0x1f9)](_0xad1f73),{'status':_0x1dd155,'headers':{'Content-Type':_0x7c32c0(0x1fe),..._0x3d5273}});}static[a211_0xdee843(0x224)](_0x21f06f,_0x5c052d=0xc8){const _0x24da05=a211_0xdee843;return()=>new Response(_0x21f06f,{'status':_0x5c052d,'headers':{'Content-Type':_0x24da05(0x1e7)}});}static[a211_0xdee843(0x1df)](_0x54070c){return()=>{throw new Error(_0x54070c);};}[a211_0xdee843(0x1eb)](){const _0x349a3f=a211_0xdee843;return this['fetchMock']=vi['fn']()[_0x349a3f(0x1f8)](async(_0x491b95,_0x1b186d)=>{const _0x14c06a=_0x349a3f,_0x51b899=this['parseRequest'](_0x491b95,_0x1b186d);this[_0x14c06a(0x1e1)][_0x14c06a(0x1ed)](_0x51b899);for(const _0x1b7e61 of this[_0x14c06a(0x1db)]){if(_0x1b7e61[_0x14c06a(0x20f)](_0x51b899))return _0x1b7e61['matched']=!![],_0x1b7e61['matchCount']++,_0x1b7e61['responder'](_0x51b899);}const _0x260455=this[_0x14c06a(0x1db)][_0x14c06a(0x22f)]((_0x25f7bb,_0x404d5b)=>'\x20\x20'+(_0x404d5b+0x1)+'.\x20'+(_0x25f7bb['description']??'unnamed\x20stub'))['join']('\x0a');throw new Error(_0x14c06a(0x222)+_0x51b899[_0x14c06a(0x1e5)]+'\x20'+_0x51b899[_0x14c06a(0x1e6)]+'\x0a'+(_0x14c06a(0x212)+JSON['stringify'](_0x51b899[_0x14c06a(0x1ee)])+'\x0a')+(_0x14c06a(0x1f3)+(_0x260455||_0x14c06a(0x1f7))));}),this[_0x349a3f(0x22e)];}[a211_0xdee843(0x20a)](_0x254602,_0x122540){const _0x20f9a6=a211_0xdee843,_0x1516c2={};if(_0x122540?.[_0x20f9a6(0x200)]){if(_0x122540[_0x20f9a6(0x200)]instanceof Headers)_0x122540[_0x20f9a6(0x200)]['forEach']((_0x1c35b5,_0x51b9c1)=>{const _0x23385f=_0x20f9a6;_0x1516c2[_0x51b9c1[_0x23385f(0x211)]()]=_0x1c35b5;});else{if(Array['isArray'](_0x122540[_0x20f9a6(0x200)]))for(const [_0x4844a6,_0x1269e3]of _0x122540[_0x20f9a6(0x200)]){_0x1516c2[_0x4844a6[_0x20f9a6(0x211)]()]=_0x1269e3;}else for(const [_0x4c7bdc,_0x538566]of Object[_0x20f9a6(0x206)](_0x122540[_0x20f9a6(0x200)])){_0x538566!==undefined&&(_0x1516c2[_0x4c7bdc[_0x20f9a6(0x211)]()]=_0x538566);}}}let _0x7570ac;if(_0x122540?.[_0x20f9a6(0x1ee)])try{_0x7570ac=JSON[_0x20f9a6(0x1dd)](_0x122540[_0x20f9a6(0x1ee)]);}catch{_0x7570ac=_0x122540[_0x20f9a6(0x1ee)];}return{'method':_0x122540?.[_0x20f9a6(0x1e5)]??_0x20f9a6(0x1f4),'url':_0x254602,'headers':_0x1516c2,'body':_0x7570ac};}[a211_0xdee843(0x223)](_0x593c5b){const _0x3df9e2=a211_0xdee843,_0x3ece0f=this[_0x3df9e2(0x1db)][_0x3df9e2(0x21a)](_0x472d69=>!_0x472d69['matched']);if(_0x3ece0f['length']>0x0){const _0x2df7ec=_0x3ece0f[_0x3df9e2(0x22f)](_0x53e4e1=>{const _0x2256c8=_0x3df9e2,_0x4f46e2=_0x53e4e1['description']?'\x20('+_0x53e4e1[_0x2256c8(0x220)]+')':'',_0x287b29=_0x53e4e1[_0x2256c8(0x1fc)][_0x2256c8(0x1e9)]('\x0a')['slice'](0x2,0x5)['join']('\x0a');return _0x2256c8(0x1da)+_0x4f46e2+_0x2256c8(0x1f5)+_0x287b29;});_0x593c5b[_0x3df9e2(0x227)](_0x3ece0f['length']+_0x3df9e2(0x21e)+_0x2df7ec[_0x3df9e2(0x215)]('\x0a\x0a'));}}[a211_0xdee843(0x1e3)](){return[...this['requests']];}[a211_0xdee843(0x1e4)](){const _0x4a95fe=a211_0xdee843;return this['requests'][this[_0x4a95fe(0x1e1)][_0x4a95fe(0x213)]-0x1];}[a211_0xdee843(0x22c)](_0x2552d9,_0x5c309c){const _0x1af775=a211_0xdee843;return this[_0x1af775(0x1e1)][_0x1af775(0x1ff)](_0x4ee321=>{const _0x55c8e9=_0x1af775;if(_0x4ee321[_0x55c8e9(0x1e5)][_0x55c8e9(0x1dc)]()!==_0x2552d9['toUpperCase']())return![];if(typeof _0x5c309c==='string')return _0x4ee321[_0x55c8e9(0x1e6)]['includes'](_0x5c309c);return _0x5c309c[_0x55c8e9(0x204)](_0x4ee321[_0x55c8e9(0x1e6)]);});}[a211_0xdee843(0x218)](_0x574659){const _0x2bfddc=a211_0xdee843;return this[_0x2bfddc(0x1db)][_0x574659]?.[_0x2bfddc(0x22b)]??0x0;}[a211_0xdee843(0x1e0)](){const _0x40cc00=a211_0xdee843;this[_0x40cc00(0x1db)]=[],this['requests']=[],this[_0x40cc00(0x22e)]=null;}static[a211_0xdee843(0x1de)](_0xc75129){const _0x4b60a0=a211_0xdee843,_0x21208e={0xc8:'OK',0xc9:'Created',0xcc:_0x4b60a0(0x1fa),0x190:_0x4b60a0(0x22d),0x191:_0x4b60a0(0x1ea),0x193:_0x4b60a0(0x20e),0x194:_0x4b60a0(0x20d),0x199:'Conflict',0x1a6:_0x4b60a0(0x225),0x1ad:_0x4b60a0(0x1f2),0x1f4:_0x4b60a0(0x229),0x1f6:_0x4b60a0(0x226),0x1f7:_0x4b60a0(0x1f6)};return _0x21208e[_0xc75129]??_0x4b60a0(0x221);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a211_0x172e79=a211_0x9f39;(function(_0x18723a,_0x223356){const _0x223f9d=a211_0x9f39,_0x47bb5f=_0x18723a();while(!![]){try{const _0x2a80e6=-parseInt(_0x223f9d(0xdf))/0x1*(parseInt(_0x223f9d(0x10b))/0x2)+parseInt(_0x223f9d(0x122))/0x3+-parseInt(_0x223f9d(0x106))/0x4*(-parseInt(_0x223f9d(0x103))/0x5)+-parseInt(_0x223f9d(0xe7))/0x6+parseInt(_0x223f9d(0xd9))/0x7*(parseInt(_0x223f9d(0xd5))/0x8)+parseInt(_0x223f9d(0x118))/0x9*(-parseInt(_0x223f9d(0x100))/0xa)+parseInt(_0x223f9d(0x11b))/0xb;if(_0x2a80e6===_0x223356)break;else _0x47bb5f['push'](_0x47bb5f['shift']());}catch(_0x135523){_0x47bb5f['push'](_0x47bb5f['shift']());}}}(a211_0x248f,0x9b7fe));import{vi}from'vitest';export class HTTPMockRegistry{[a211_0x172e79(0xeb)]=[];[a211_0x172e79(0x121)]=[];[a211_0x172e79(0xdb)]=null;[a211_0x172e79(0xe1)](_0x3023d8,_0x15faa3){return _0x1c735e=>{const _0x587fcf=a211_0x9f39;if(_0x1c735e[_0x587fcf(0x11a)][_0x587fcf(0xd8)]()!==_0x3023d8[_0x587fcf(0xd8)]())return![];const _0x30dd0e=new URL(_0x1c735e[_0x587fcf(0xe5)]);if(typeof _0x15faa3===_0x587fcf(0xd4))return _0x30dd0e['pathname']===_0x15faa3||_0x30dd0e['pathname'][_0x587fcf(0xd6)](_0x15faa3);return _0x15faa3[_0x587fcf(0xe8)](_0x30dd0e[_0x587fcf(0x10f)]);};}[a211_0x172e79(0x124)](_0xece147,_0x34f9b1){return _0x1ef4e6=>{const _0x27242d=a211_0x9f39;if(!_0xece147(_0x1ef4e6))return![];const _0x68800=new URL(_0x1ef4e6['url']);return Object['entries'](_0x34f9b1)[_0x27242d(0x108)](([_0x494aa5,_0x4926e4])=>_0x68800[_0x27242d(0x11f)][_0x27242d(0x126)](_0x494aa5)===_0x4926e4);};}[a211_0x172e79(0xfb)](_0x122d82,_0x328c3f){return _0x64163f=>{const _0x552864=a211_0x9f39;if(!_0x122d82(_0x64163f))return![];if(typeof _0x328c3f===_0x552864(0x110))return _0x328c3f(_0x64163f[_0x552864(0xe3)]);return JSON[_0x552864(0x109)](_0x64163f[_0x552864(0xe3)])===JSON[_0x552864(0x109)](_0x328c3f);};}[a211_0x172e79(0x114)](_0x47641a,_0x68d431){return _0x11d921=>{const _0x3afc6e=a211_0x9f39;if(!_0x47641a(_0x11d921))return![];const _0x439a4f=new URL(_0x11d921[_0x3afc6e(0xe5)]);return _0x439a4f[_0x3afc6e(0xfd)]===_0x68d431;};}[a211_0x172e79(0xf0)](_0x4448ab,_0x2a76d5,_0x5d929e){const _0x57e929=a211_0x172e79;this[_0x57e929(0xeb)]['push']({'matcher':_0x4448ab,'responder':_0x2a76d5,'matched':![],'matchCount':0x0,'stack':new Error()[_0x57e929(0x111)]??'','description':_0x5d929e?.[_0x57e929(0x123)]});}[a211_0x172e79(0xe2)](_0xb5d413,_0x58f3ba,_0xda6e7a){const _0x566c74=a211_0x172e79,_0x1a0757=_0x253b2e=>{const _0x11b4d3=a211_0x9f39;return _0xda6e7a(_0x253b2e[_0x11b4d3(0xe3)],_0x253b2e),_0x58f3ba(_0x253b2e);};this[_0x566c74(0xf0)](_0xb5d413,_0x1a0757);}static[a211_0x172e79(0xdc)](_0x3016a0,_0x16f595=0xc8){const _0x83460d=a211_0x172e79;return()=>new Response(JSON[_0x83460d(0x109)](_0x3016a0),{'status':_0x16f595,'headers':{'Content-Type':'application/json'}});}static[a211_0x172e79(0xf7)](_0x58fb34,_0xe86ec3,_0x3481b7=a211_0x172e79(0xf9)){return()=>{const _0x5eb920=a211_0x9f39;let _0xfa0f13;switch(_0x3481b7){case'td-api':_0xfa0f13={'errors':{'error':_0xe86ec3,'message':_0xe86ec3,'severity':_0x5eb920(0x112),'status_code':_0x58fb34}};break;case _0x5eb920(0x105):_0xfa0f13={'type':_0x5eb920(0xea)+_0x58fb34,'title':HTTPMockRegistry[_0x5eb920(0xe0)](_0x58fb34),'status':_0x58fb34,'detail':_0xe86ec3};break;default:_0xfa0f13={'error':_0xe86ec3};}return new Response(JSON[_0x5eb920(0x109)](_0xfa0f13),{'status':_0x58fb34,'headers':{'Content-Type':'application/json'}});};}static[a211_0x172e79(0x116)](_0x23c236,_0x524215,_0x334bd2=0xc8){const _0x2181b6=a211_0x172e79;return()=>new Response(JSON[_0x2181b6(0x109)](_0x23c236),{'status':_0x334bd2,'headers':{'Content-Type':_0x2181b6(0xfe),..._0x524215}});}static['textResponse'](_0x5b03e6,_0xa41b5a=0xc8){const _0x49ad3e=a211_0x172e79;return()=>new Response(_0x5b03e6,{'status':_0xa41b5a,'headers':{'Content-Type':_0x49ad3e(0xd3)}});}static[a211_0x172e79(0xda)](_0x37aea6){return()=>{throw new Error(_0x37aea6);};}['createFetch'](){const _0x969ff7=a211_0x172e79;return this[_0x969ff7(0xdb)]=vi['fn']()[_0x969ff7(0xed)](async(_0x309b94,_0x2f6b99)=>{const _0x17e6d8=_0x969ff7,_0x3927b1=this['parseRequest'](_0x309b94,_0x2f6b99);this[_0x17e6d8(0x121)][_0x17e6d8(0x102)](_0x3927b1);for(const _0x5013da of this[_0x17e6d8(0xeb)]){if(_0x5013da[_0x17e6d8(0x115)](_0x3927b1))return _0x5013da[_0x17e6d8(0x11e)]=!![],_0x5013da['matchCount']++,_0x5013da['responder'](_0x3927b1);}const _0x3af31c=this[_0x17e6d8(0xeb)][_0x17e6d8(0xf5)]((_0x56117b,_0x227a8a)=>'\x20\x20'+(_0x227a8a+0x1)+'.\x20'+(_0x56117b[_0x17e6d8(0x123)]??_0x17e6d8(0xfc)))[_0x17e6d8(0xe4)]('\x0a');throw new Error(_0x17e6d8(0xe6)+_0x3927b1[_0x17e6d8(0x11a)]+'\x20'+_0x3927b1[_0x17e6d8(0xe5)]+'\x0a'+(_0x17e6d8(0xe9)+JSON[_0x17e6d8(0x109)](_0x3927b1[_0x17e6d8(0xe3)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x3af31c||_0x17e6d8(0x125))));}),this[_0x969ff7(0xdb)];}[a211_0x172e79(0xdd)](_0x586d7a,_0x172342){const _0x10e6c0=a211_0x172e79,_0x2ff121={};if(_0x172342?.[_0x10e6c0(0xf4)]){if(_0x172342['headers']instanceof Headers)_0x172342[_0x10e6c0(0xf4)][_0x10e6c0(0x119)]((_0x42c5a6,_0xe852fa)=>{const _0xb7628b=_0x10e6c0;_0x2ff121[_0xe852fa[_0xb7628b(0xec)]()]=_0x42c5a6;});else{if(Array[_0x10e6c0(0x10a)](_0x172342[_0x10e6c0(0xf4)]))for(const [_0x21bce4,_0x1155f6]of _0x172342[_0x10e6c0(0xf4)]){_0x2ff121[_0x21bce4[_0x10e6c0(0xec)]()]=_0x1155f6;}else for(const [_0x4b2881,_0x94d998]of Object[_0x10e6c0(0x104)](_0x172342[_0x10e6c0(0xf4)])){_0x94d998!==undefined&&(_0x2ff121[_0x4b2881[_0x10e6c0(0xec)]()]=_0x94d998);}}}let _0x58d240;if(_0x172342?.[_0x10e6c0(0xe3)])try{_0x58d240=JSON['parse'](_0x172342['body']);}catch{_0x58d240=_0x172342[_0x10e6c0(0xe3)];}return{'method':_0x172342?.[_0x10e6c0(0x11a)]??_0x10e6c0(0x113),'url':_0x586d7a,'headers':_0x2ff121,'body':_0x58d240};}[a211_0x172e79(0xff)](_0x478743){const _0x4361d5=a211_0x172e79,_0x461c07=this[_0x4361d5(0xeb)][_0x4361d5(0x120)](_0x2f82bd=>!_0x2f82bd[_0x4361d5(0x11e)]);if(_0x461c07['length']>0x0){const _0x480a71=_0x461c07['map'](_0x1f4c70=>{const _0xe3bc7=_0x4361d5,_0x2b0e37=_0x1f4c70[_0xe3bc7(0x123)]?'\x20('+_0x1f4c70[_0xe3bc7(0x123)]+')':'',_0x4c23cb=_0x1f4c70[_0xe3bc7(0x111)]['split']('\x0a')[_0xe3bc7(0x107)](0x2,0x5)[_0xe3bc7(0xe4)]('\x0a');return _0xe3bc7(0x11d)+_0x2b0e37+_0xe3bc7(0x11c)+_0x4c23cb;});_0x478743[_0x4361d5(0xfa)](_0x461c07[_0x4361d5(0xef)]+'\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a'+_0x480a71[_0x4361d5(0xe4)]('\x0a\x0a'));}}['getRequests'](){const _0x2ade46=a211_0x172e79;return[...this[_0x2ade46(0x121)]];}['getLastRequest'](){const _0x1c0415=a211_0x172e79;return this[_0x1c0415(0x121)][this['requests']['length']-0x1];}['wasCalled'](_0x49b412,_0x1f1797){const _0x4069b8=a211_0x172e79;return this['requests'][_0x4069b8(0xf3)](_0x27a7ab=>{const _0x5f02b8=_0x4069b8;if(_0x27a7ab['method'][_0x5f02b8(0xd8)]()!==_0x49b412['toUpperCase']())return![];if(typeof _0x1f1797===_0x5f02b8(0xd4))return _0x27a7ab['url'][_0x5f02b8(0xd6)](_0x1f1797);return _0x1f1797[_0x5f02b8(0xe8)](_0x27a7ab[_0x5f02b8(0xe5)]);});}['getMatchCount'](_0x1567bc){const _0x2e668e=a211_0x172e79;return this[_0x2e668e(0xeb)][_0x1567bc]?.[_0x2e668e(0xf6)]??0x0;}[a211_0x172e79(0x10d)](){const _0x4a75f8=a211_0x172e79;this[_0x4a75f8(0xeb)]=[],this[_0x4a75f8(0x121)]=[],this[_0x4a75f8(0xdb)]=null;}static[a211_0x172e79(0xe0)](_0x115427){const _0x5b3497=a211_0x172e79,_0x1da000={0xc8:'OK',0xc9:_0x5b3497(0xf1),0xcc:_0x5b3497(0xd7),0x190:'Bad\x20Request',0x191:_0x5b3497(0x10c),0x193:_0x5b3497(0xf2),0x194:_0x5b3497(0x10e),0x199:_0x5b3497(0xde),0x1a6:_0x5b3497(0x117),0x1ad:_0x5b3497(0xf8),0x1f4:_0x5b3497(0xee),0x1f6:'Bad\x20Gateway',0x1f7:'Service\x20Unavailable'};return _0x1da000[_0x115427]??_0x5b3497(0x101);}}function a211_0x9f39(_0x4d02a6,_0x46fffd){_0x4d02a6=_0x4d02a6-0xd3;const _0x248fb1=a211_0x248f();let _0x9f39a2=_0x248fb1[_0x4d02a6];return _0x9f39a2;}function a211_0x248f(){const _0x35d273=['Internal\x20Server\x20Error','length','register','Created','Forbidden','some','headers','map','matchCount','errorResponse','Too\x20Many\x20Requests','simple','fail','withBody','unnamed\x20stub','host','application/json','verify','1450ewHXbg','Unknown','push','5nwDkZc','entries','rfc9457','1340356VJCjRS','slice','every','stringify','isArray','19010INIIkc','Unauthorized','reset','Not\x20Found','pathname','function','stack','error','GET','withHost','matcher','jsonResponseWithHeaders','Unprocessable\x20Entity','38169CxmZRi','forEach','method','8955540dSvaxu','\x20registered\x20at:\x0a','Unmatched\x20stub','matched','searchParams','filter','requests','2113710gZTsEY','description','withQuery','\x20\x20(none)','get','text/plain','string','1206696TvjZCr','includes','No\x20Content','toUpperCase','7IhhpEt','networkError','fetchMock','jsonResponse','parseRequest','Conflict','56ykGzdf','getStatusText','REST','registerWithInspector','body','join','url','No\x20stub\x20matched\x20request:\x20','1322910boDqrI','test','Request\x20body:\x20','https://api.treasuredata.com/errors/','stubs','toLowerCase','mockImplementation'];a211_0x248f=function(){return _0x35d273;};return a211_0x248f();}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- function a212_0x2422(){var _0x590cf5=['5957478oYQNIp','11746MibDgB','2308eTUfGQ','7947471qcZSTT','565AdtetI','20qWuoaH','405390sqUxIH','10927040RyiCeE','1637184YLvciZ','240ZtFKXf'];a212_0x2422=function(){return _0x590cf5;};return a212_0x2422();}function a212_0x8ece(_0x368f1f,_0x4454ed){_0x368f1f=_0x368f1f-0xba;var _0x24229f=a212_0x2422();var _0x8eced5=_0x24229f[_0x368f1f];return _0x8eced5;}(function(_0x442b4a,_0x5cbdaf){var _0x32bd8=a212_0x8ece,_0x2ede32=_0x442b4a();while(!![]){try{var _0x104b12=-parseInt(_0x32bd8(0xc1))/0x1*(-parseInt(_0x32bd8(0xc3))/0x2)+parseInt(_0x32bd8(0xc0))/0x3+parseInt(_0x32bd8(0xba))/0x4*(-parseInt(_0x32bd8(0xbc))/0x5)+-parseInt(_0x32bd8(0xbe))/0x6+-parseInt(_0x32bd8(0xbb))/0x7+parseInt(_0x32bd8(0xbf))/0x8+-parseInt(_0x32bd8(0xc2))/0x9*(parseInt(_0x32bd8(0xbd))/0xa);if(_0x104b12===_0x5cbdaf)break;else _0x2ede32['push'](_0x2ede32['shift']());}catch(_0x39f844){_0x2ede32['push'](_0x2ede32['shift']());}}}(a212_0x2422,0xb2025));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(_0x2cafc2,_0x8e88df){var _0x2c0efd=a212_0xe570,_0x4e7120=_0x2cafc2();while(!![]){try{var _0x45cd25=-parseInt(_0x2c0efd(0x1a4))/0x1*(-parseInt(_0x2c0efd(0x1a1))/0x2)+-parseInt(_0x2c0efd(0x19e))/0x3*(parseInt(_0x2c0efd(0x1a3))/0x4)+parseInt(_0x2c0efd(0x199))/0x5*(parseInt(_0x2c0efd(0x19b))/0x6)+-parseInt(_0x2c0efd(0x1a0))/0x7*(parseInt(_0x2c0efd(0x19c))/0x8)+-parseInt(_0x2c0efd(0x19d))/0x9+parseInt(_0x2c0efd(0x1a5))/0xa*(-parseInt(_0x2c0efd(0x19a))/0xb)+parseInt(_0x2c0efd(0x19f))/0xc*(parseInt(_0x2c0efd(0x1a2))/0xd);if(_0x45cd25===_0x8e88df)break;else _0x4e7120['push'](_0x4e7120['shift']());}catch(_0x2dcb12){_0x4e7120['push'](_0x4e7120['shift']());}}}(a212_0x3325,0x52b23));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 a212_0xe570(_0x9aa7f3,_0x5e0ce2){_0x9aa7f3=_0x9aa7f3-0x199;var _0x3325fc=a212_0x3325();var _0xe5705c=_0x3325fc[_0x9aa7f3];return _0xe5705c;}export{CommandRunner,createCommandRunner}from'./command-runner.js';function a212_0x3325(){var _0x2641c9=['210YSaXCq','84dZoTQr','52urfCeu','17252XlExTX','4526CrJUPl','16140ctSZus','5RdydDB','2497VjuFCH','1258218MVXtQl','114416moVFVb','2901951ZuHYod','153gNLOEX','3830304ENKPLg'];a212_0x3325=function(){return _0x2641c9;};return a212_0x3325();}
@@ -1 +1 @@
1
- (function(_0x192785,_0x45e6ff){const _0x42015d=a213_0x3b24,_0x4c46d0=_0x192785();while(!![]){try{const _0x41a7f1=parseInt(_0x42015d(0x1d8))/0x1+-parseInt(_0x42015d(0x1e1))/0x2*(-parseInt(_0x42015d(0x1e4))/0x3)+-parseInt(_0x42015d(0x1e3))/0x4*(-parseInt(_0x42015d(0x1df))/0x5)+-parseInt(_0x42015d(0x1de))/0x6+-parseInt(_0x42015d(0x1e5))/0x7*(parseInt(_0x42015d(0x1dc))/0x8)+-parseInt(_0x42015d(0x1db))/0x9+parseInt(_0x42015d(0x1d9))/0xa;if(_0x41a7f1===_0x45e6ff)break;else _0x4c46d0['push'](_0x4c46d0['shift']());}catch(_0x1f4057){_0x4c46d0['push'](_0x4c46d0['shift']());}}}(a213_0x9f43,0x9df39));function a213_0x3b24(_0x14f6d4,_0x11e843){_0x14f6d4=_0x14f6d4-0x1d7;const _0x9f434a=a213_0x9f43();let _0x3b2400=_0x9f434a[_0x14f6d4];return _0x3b2400;}function a213_0x9f43(){const _0x3a9f57=['4QeczsM','3uoDIqh','37709XpIitz','length','482606OoYlOv','19345800XjpBht','map','6287679OMmYex','1288EnUtXn','slice','5645514kLwWef','556735OjHtqB','push','1250586tMDXGT','all'];a213_0x9f43=function(){return _0x3a9f57;};return a213_0x9f43();}export async function batchAsync(_0x2a2550,_0x406ee3,_0x3c106e=0xa){const _0x2b2a13=a213_0x3b24,_0x27ffd3=[];for(let _0x4c2e37=0x0;_0x4c2e37<_0x2a2550[_0x2b2a13(0x1d7)];_0x4c2e37+=_0x3c106e){const _0x3eb9cd=_0x2a2550[_0x2b2a13(0x1dd)](_0x4c2e37,_0x4c2e37+_0x3c106e),_0x38cbfe=await Promise[_0x2b2a13(0x1e2)](_0x3eb9cd[_0x2b2a13(0x1da)](_0x406ee3));_0x27ffd3[_0x2b2a13(0x1e0)](..._0x38cbfe);}return _0x27ffd3;}
1
+ (function(_0x1c7c49,_0x5b5c0a){const _0x90959=a213_0x37dc,_0x2d622c=_0x1c7c49();while(!![]){try{const _0x2614c6=-parseInt(_0x90959(0xe6))/0x1+-parseInt(_0x90959(0xec))/0x2+parseInt(_0x90959(0xe4))/0x3+-parseInt(_0x90959(0xe8))/0x4*(-parseInt(_0x90959(0xe9))/0x5)+parseInt(_0x90959(0xed))/0x6*(-parseInt(_0x90959(0xe7))/0x7)+-parseInt(_0x90959(0xee))/0x8+parseInt(_0x90959(0xe1))/0x9;if(_0x2614c6===_0x5b5c0a)break;else _0x2d622c['push'](_0x2d622c['shift']());}catch(_0x3dc29d){_0x2d622c['push'](_0x2d622c['shift']());}}}(a213_0x18ac,0x79f36));function a213_0x18ac(){const _0x1926f3=['45156vnKEOT','360dfkVJm','all','length','747342pqgBIA','156ReGeqf','6528024GDCqNP','14809032iFAzCR','slice','push','686322xfalsv','map','369816zYQqMG','169085JUmSGZ'];a213_0x18ac=function(){return _0x1926f3;};return a213_0x18ac();}function a213_0x37dc(_0x3da90a,_0x4fb2e6){_0x3da90a=_0x3da90a-0xe1;const _0x18aced=a213_0x18ac();let _0x37dc58=_0x18aced[_0x3da90a];return _0x37dc58;}export async function batchAsync(_0x3e36d2,_0x18aa75,_0x4d6c65=0xa){const _0x289e84=a213_0x37dc,_0x17ee6b=[];for(let _0x4a0bed=0x0;_0x4a0bed<_0x3e36d2[_0x289e84(0xeb)];_0x4a0bed+=_0x4d6c65){const _0x2372c0=_0x3e36d2[_0x289e84(0xe2)](_0x4a0bed,_0x4a0bed+_0x4d6c65),_0x10dc4d=await Promise[_0x289e84(0xea)](_0x2372c0[_0x289e84(0xe5)](_0x18aa75));_0x17ee6b[_0x289e84(0xe3)](..._0x10dc4d);}return _0x17ee6b;}
@@ -1 +1 @@
1
- (function(_0x12f7ed,_0xbe7695){const _0x316e9a=a214_0x30e6,_0x2d55aa=_0x12f7ed();while(!![]){try{const _0x4fb23a=-parseInt(_0x316e9a(0xb6))/0x1*(-parseInt(_0x316e9a(0xbf))/0x2)+parseInt(_0x316e9a(0xc4))/0x3+-parseInt(_0x316e9a(0xb1))/0x4*(parseInt(_0x316e9a(0xb7))/0x5)+-parseInt(_0x316e9a(0xba))/0x6+parseInt(_0x316e9a(0xbb))/0x7+parseInt(_0x316e9a(0xc1))/0x8*(parseInt(_0x316e9a(0xc6))/0x9)+-parseInt(_0x316e9a(0xc8))/0xa*(parseInt(_0x316e9a(0xb8))/0xb);if(_0x4fb23a===_0xbe7695)break;else _0x2d55aa['push'](_0x2d55aa['shift']());}catch(_0x212864){_0x2d55aa['push'](_0x2d55aa['shift']());}}}(a214_0x4bb9,0x7f642));import*as a214_0x5253e3 from'chalk';const Chalk=a214_0x5253e3['Chalk'];export function shouldUseColor(_0x5adb07={}){const _0x86466a=a214_0x30e6;if(_0x5adb07['noColor']===!![])return![];if(_0x5adb07['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x86466a(0xc5)][_0x86466a(0xc2)]??![];}export function getChalk(_0x1c44ce={}){if(shouldUseColor(_0x1c44ce))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1e1585,_0x394f09={}){const _0x3b96a4=a214_0x30e6;return getChalk(_0x394f09)[_0x3b96a4(0xb2)](_0x1e1585);}export function colorHeader(_0x28243d,_0x224ffb={}){const _0x45fee9=a214_0x30e6;return getChalk(_0x224ffb)[_0x45fee9(0xbd)](_0x28243d);}export function colorType(_0xff31b6,_0x39775e={}){const _0x3e4cf1=a214_0x30e6;return getChalk(_0x39775e)[_0x3e4cf1(0xb2)](_0xff31b6);}export function colorJSONKey(_0x4bb7ff,_0x59b4b1={}){const _0x259b1d=a214_0x30e6;return getChalk(_0x59b4b1)[_0x259b1d(0xb3)](_0x4bb7ff);}export function colorJSONString(_0x598ec4,_0x3ab514={}){const _0x4e7b9a=a214_0x30e6;return getChalk(_0x3ab514)[_0x4e7b9a(0xcc)](_0x598ec4);}function a214_0x30e6(_0x22bea7,_0x51778e){_0x22bea7=_0x22bea7-0xb1;const _0x4bb919=a214_0x4bb9();let _0x30e693=_0x4bb919[_0x22bea7];return _0x30e693;}export function colorJSONNumber(_0x226108,_0x5a5173={}){const _0x220239=a214_0x30e6;return getChalk(_0x5a5173)[_0x220239(0xbd)](_0x226108);}export function colorJSONBoolean(_0x1bf5bf,_0x25ecbe={}){const _0x4c4159=a214_0x30e6;return getChalk(_0x25ecbe)[_0x4c4159(0xca)](_0x1bf5bf);}export function colorJSONNull(_0x337e74,_0x4286c4={}){const _0x178e9b=a214_0x30e6;return getChalk(_0x4286c4)[_0x178e9b(0xb2)](_0x337e74);}export function colorizeJSONCompact(_0x54550f,_0x3347d9={}){const _0x1f0ae8=a214_0x30e6;if(!shouldUseColor(_0x3347d9))return JSON[_0x1f0ae8(0xc3)](_0x54550f);if(_0x54550f===null)return colorJSONNull(_0x1f0ae8(0xcd),_0x3347d9);if(typeof _0x54550f==='boolean')return colorJSONBoolean(String(_0x54550f),_0x3347d9);if(typeof _0x54550f===_0x1f0ae8(0xc9))return colorJSONNumber(String(_0x54550f),_0x3347d9);if(typeof _0x54550f==='string')return colorJSONString(JSON[_0x1f0ae8(0xc3)](_0x54550f),_0x3347d9);if(Array[_0x1f0ae8(0xb9)](_0x54550f)){if(_0x54550f[_0x1f0ae8(0xcb)]===0x0)return'[]';const _0xfc7a66=_0x54550f[_0x1f0ae8(0xb5)](_0x410c4d=>colorizeJSONCompact(_0x410c4d,_0x3347d9));return'['+_0xfc7a66[_0x1f0ae8(0xc7)](',')+']';}if(typeof _0x54550f===_0x1f0ae8(0xb4)){const _0x1e1fcc=Object[_0x1f0ae8(0xbc)](_0x54550f);if(_0x1e1fcc[_0x1f0ae8(0xcb)]===0x0)return'{}';const _0x577eb0=_0x1e1fcc['map'](([_0x4f3ce7,_0x1f6912])=>{const _0x27d630=_0x1f0ae8,_0x2645d3=colorJSONKey(JSON[_0x27d630(0xc3)](_0x4f3ce7),_0x3347d9),_0x140d6d=colorizeJSONCompact(_0x1f6912,_0x3347d9);return _0x2645d3+':'+_0x140d6d;});return'{'+_0x577eb0[_0x1f0ae8(0xc7)](',')+'}';}return String(_0x54550f);}export function colorizeJSON(_0x256237,_0x32384b={},_0x390ad2=0x0){const _0x2d1427=a214_0x30e6;if(!shouldUseColor(_0x32384b))return JSON['stringify'](_0x256237,null,0x2);const _0x29543e='\x20'['repeat'](_0x390ad2),_0x340d1a=_0x390ad2+0x2;if(_0x256237===null)return colorJSONNull(_0x2d1427(0xcd),_0x32384b);if(typeof _0x256237==='boolean')return colorJSONBoolean(String(_0x256237),_0x32384b);if(typeof _0x256237==='number')return colorJSONNumber(String(_0x256237),_0x32384b);if(typeof _0x256237===_0x2d1427(0xc0))return colorJSONString(JSON[_0x2d1427(0xc3)](_0x256237),_0x32384b);if(Array[_0x2d1427(0xb9)](_0x256237)){if(_0x256237['length']===0x0)return'[]';const _0x3d63c4=_0x256237[_0x2d1427(0xb5)](_0x5dacaf=>{const _0x50625d=colorizeJSON(_0x5dacaf,_0x32384b,_0x340d1a);return''+'\x20'['repeat'](_0x340d1a)+_0x50625d;});return'[\x0a'+_0x3d63c4[_0x2d1427(0xc7)](',\x0a')+('\x0a'+_0x29543e+']');}if(typeof _0x256237==='object'){const _0x5221cc=Object['entries'](_0x256237);if(_0x5221cc['length']===0x0)return'{}';const _0x2dbf6b=_0x5221cc[_0x2d1427(0xb5)](([_0x346e7d,_0xf2e1ec])=>{const _0x65a610=_0x2d1427,_0x117caf=colorJSONKey(JSON[_0x65a610(0xc3)](_0x346e7d),_0x32384b),_0x5ca87a=colorizeJSON(_0xf2e1ec,_0x32384b,_0x340d1a);return''+'\x20'[_0x65a610(0xbe)](_0x340d1a)+_0x117caf+':\x20'+_0x5ca87a;});return'{\x0a'+_0x2dbf6b[_0x2d1427(0xc7)](',\x0a')+('\x0a'+_0x29543e+'}');}return String(_0x256237);}function a214_0x4bb9(){const _0xd96e35=['isTTY','stringify','2328015ndhCxN','stdout','2782179VUIAdx','join','118070qbAOnK','number','yellow','length','green','null','2410552YpNwWK','dim','blue','object','map','59LRfgfy','5ayMnNV','1595KOvzMB','isArray','737484BFcZvf','1540700MKVORU','entries','cyan','repeat','35114eUhPJe','string','24JylWqO'];a214_0x4bb9=function(){return _0xd96e35;};return a214_0x4bb9();}
1
+ const a214_0x4eea81=a214_0x39bd;function a214_0x6f08(){const _0x3611ad=['40nAbENR','object','number','dim','stdout','24zWZJMj','5660wuONXd','string','isArray','1606750uUhQhu','Chalk','3083349IUQgNw','green','6fIeprb','1218222HQWRgi','6410jwlNtK','7005713yNgmBV','24xasqoo','color','8393826yBDcjD','stringify','map','yellow','entries','length','null','repeat','4QDVrpq','boolean','join'];a214_0x6f08=function(){return _0x3611ad;};return a214_0x6f08();}(function(_0x44c1fe,_0x5fe0c0){const _0x522c2b=a214_0x39bd,_0x471812=_0x44c1fe();while(!![]){try{const _0x5e84a6=-parseInt(_0x522c2b(0x147))/0x1*(parseInt(_0x522c2b(0x12f))/0x2)+parseInt(_0x522c2b(0x134))/0x3+parseInt(_0x522c2b(0x144))/0x4*(parseInt(_0x522c2b(0x138))/0x5)+parseInt(_0x522c2b(0x136))/0x6*(-parseInt(_0x522c2b(0x13c))/0x7)+parseInt(_0x522c2b(0x13a))/0x8*(-parseInt(_0x522c2b(0x137))/0x9)+parseInt(_0x522c2b(0x132))/0xa+-parseInt(_0x522c2b(0x139))/0xb*(-parseInt(_0x522c2b(0x12e))/0xc);if(_0x5e84a6===_0x5fe0c0)break;else _0x471812['push'](_0x471812['shift']());}catch(_0x5afd8a){_0x471812['push'](_0x471812['shift']());}}}(a214_0x6f08,0xb5e9a));import*as a214_0x5b8090 from'chalk';const Chalk=a214_0x5b8090[a214_0x4eea81(0x133)];export function shouldUseColor(_0x514ce7={}){const _0x475ea0=a214_0x4eea81;if(_0x514ce7['noColor']===!![])return![];if(_0x514ce7[_0x475ea0(0x13b)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x475ea0(0x12d)]['isTTY']??![];}export function getChalk(_0x14c418={}){if(shouldUseColor(_0x14c418))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x394f71,_0x17fe56={}){const _0x235c05=a214_0x4eea81;return getChalk(_0x17fe56)[_0x235c05(0x12c)](_0x394f71);}export function colorHeader(_0x47960e,_0x362179={}){return getChalk(_0x362179)['cyan'](_0x47960e);}export function colorType(_0x4cd4fb,_0x2c71a9={}){const _0x283b73=a214_0x4eea81;return getChalk(_0x2c71a9)[_0x283b73(0x12c)](_0x4cd4fb);}export function colorJSONKey(_0x5dc6ce,_0x53a432={}){return getChalk(_0x53a432)['blue'](_0x5dc6ce);}export function colorJSONString(_0x39d9b7,_0xdb7701={}){const _0x2c7e54=a214_0x4eea81;return getChalk(_0xdb7701)[_0x2c7e54(0x135)](_0x39d9b7);}export function colorJSONNumber(_0x4572a1,_0x769210={}){return getChalk(_0x769210)['cyan'](_0x4572a1);}export function colorJSONBoolean(_0x174d37,_0x493e6a={}){const _0x3ed5d3=a214_0x4eea81;return getChalk(_0x493e6a)[_0x3ed5d3(0x13f)](_0x174d37);}export function colorJSONNull(_0x29186a,_0xecc8a8={}){const _0x1862bc=a214_0x4eea81;return getChalk(_0xecc8a8)[_0x1862bc(0x12c)](_0x29186a);}function a214_0x39bd(_0x39b77f,_0x1daeb6){_0x39b77f=_0x39b77f-0x12a;const _0x6f086b=a214_0x6f08();let _0x39bdaa=_0x6f086b[_0x39b77f];return _0x39bdaa;}export function colorizeJSONCompact(_0x7545f4,_0x3774a3={}){const _0x5ba85e=a214_0x4eea81;if(!shouldUseColor(_0x3774a3))return JSON[_0x5ba85e(0x13d)](_0x7545f4);if(_0x7545f4===null)return colorJSONNull(_0x5ba85e(0x142),_0x3774a3);if(typeof _0x7545f4===_0x5ba85e(0x145))return colorJSONBoolean(String(_0x7545f4),_0x3774a3);if(typeof _0x7545f4===_0x5ba85e(0x12b))return colorJSONNumber(String(_0x7545f4),_0x3774a3);if(typeof _0x7545f4===_0x5ba85e(0x130))return colorJSONString(JSON[_0x5ba85e(0x13d)](_0x7545f4),_0x3774a3);if(Array[_0x5ba85e(0x131)](_0x7545f4)){if(_0x7545f4[_0x5ba85e(0x141)]===0x0)return'[]';const _0x111dc7=_0x7545f4[_0x5ba85e(0x13e)](_0x534481=>colorizeJSONCompact(_0x534481,_0x3774a3));return'['+_0x111dc7[_0x5ba85e(0x146)](',')+']';}if(typeof _0x7545f4===_0x5ba85e(0x12a)){const _0x200310=Object[_0x5ba85e(0x140)](_0x7545f4);if(_0x200310[_0x5ba85e(0x141)]===0x0)return'{}';const _0x5d2b9f=_0x200310[_0x5ba85e(0x13e)](([_0x3fd78b,_0x583752])=>{const _0x289ba2=_0x5ba85e,_0x1a234a=colorJSONKey(JSON[_0x289ba2(0x13d)](_0x3fd78b),_0x3774a3),_0x15543d=colorizeJSONCompact(_0x583752,_0x3774a3);return _0x1a234a+':'+_0x15543d;});return'{'+_0x5d2b9f['join'](',')+'}';}return String(_0x7545f4);}export function colorizeJSON(_0x2807da,_0x59acc1={},_0x6ca48a=0x0){const _0x510ebe=a214_0x4eea81;if(!shouldUseColor(_0x59acc1))return JSON['stringify'](_0x2807da,null,0x2);const _0x1e8d60='\x20'['repeat'](_0x6ca48a),_0x1fe429=_0x6ca48a+0x2;if(_0x2807da===null)return colorJSONNull('null',_0x59acc1);if(typeof _0x2807da===_0x510ebe(0x145))return colorJSONBoolean(String(_0x2807da),_0x59acc1);if(typeof _0x2807da===_0x510ebe(0x12b))return colorJSONNumber(String(_0x2807da),_0x59acc1);if(typeof _0x2807da===_0x510ebe(0x130))return colorJSONString(JSON['stringify'](_0x2807da),_0x59acc1);if(Array[_0x510ebe(0x131)](_0x2807da)){if(_0x2807da[_0x510ebe(0x141)]===0x0)return'[]';const _0x5519d2=_0x2807da[_0x510ebe(0x13e)](_0x134711=>{const _0x5f4db5=_0x510ebe,_0x58f3a6=colorizeJSON(_0x134711,_0x59acc1,_0x1fe429);return''+'\x20'[_0x5f4db5(0x143)](_0x1fe429)+_0x58f3a6;});return'[\x0a'+_0x5519d2[_0x510ebe(0x146)](',\x0a')+('\x0a'+_0x1e8d60+']');}if(typeof _0x2807da===_0x510ebe(0x12a)){const _0x563429=Object[_0x510ebe(0x140)](_0x2807da);if(_0x563429['length']===0x0)return'{}';const _0x6d25aa=_0x563429['map'](([_0x1fc2b6,_0x2f878f])=>{const _0x553cd9=_0x510ebe,_0x54e179=colorJSONKey(JSON[_0x553cd9(0x13d)](_0x1fc2b6),_0x59acc1),_0x52d928=colorizeJSON(_0x2f878f,_0x59acc1,_0x1fe429);return''+'\x20'['repeat'](_0x1fe429)+_0x54e179+':\x20'+_0x52d928;});return'{\x0a'+_0x6d25aa[_0x510ebe(0x146)](',\x0a')+('\x0a'+_0x1e8d60+'}');}return String(_0x2807da);}
@@ -1 +1 @@
1
- (function(_0x354036,_0x53d7f9){const _0x5ef976=a215_0x1f04,_0x34f501=_0x354036();while(!![]){try{const _0xb71bd9=parseInt(_0x5ef976(0x79))/0x1+parseInt(_0x5ef976(0x8a))/0x2*(-parseInt(_0x5ef976(0x85))/0x3)+parseInt(_0x5ef976(0x7c))/0x4*(parseInt(_0x5ef976(0x7f))/0x5)+-parseInt(_0x5ef976(0x8e))/0x6*(-parseInt(_0x5ef976(0x8d))/0x7)+parseInt(_0x5ef976(0x7b))/0x8+-parseInt(_0x5ef976(0x6b))/0x9+-parseInt(_0x5ef976(0x73))/0xa;if(_0xb71bd9===_0x53d7f9)break;else _0x34f501['push'](_0x34f501['shift']());}catch(_0x23df9e){_0x34f501['push'](_0x34f501['shift']());}}}(a215_0x2806,0xe552e));import a215_0x124b23 from'chalk';function a215_0x1f04(_0x430d64,_0x3538df){_0x430d64=_0x430d64-0x6b;const _0x28062c=a215_0x2806();let _0x1f0450=_0x28062c[_0x430d64];return _0x1f0450;}export function generateDiff(_0x3495f6,_0x2cf736){const _0x2997c4=a215_0x1f04,_0x512958=_0x3495f6['split']('\x0a'),_0x2af839=_0x2cf736['split']('\x0a'),_0x1bfc13=[],_0x5c95eb=computeLCS(_0x512958,_0x2af839);let _0x468c54=0x0,_0x5d969b=0x0,_0x572e27=0x0;while(_0x468c54<_0x512958['length']||_0x5d969b<_0x2af839[_0x2997c4(0x6e)]){if(_0x572e27<_0x5c95eb[_0x2997c4(0x6e)]&&_0x468c54<_0x512958[_0x2997c4(0x6e)]&&_0x512958[_0x468c54]===_0x5c95eb[_0x572e27])_0x5d969b<_0x2af839[_0x2997c4(0x6e)]&&_0x2af839[_0x5d969b]===_0x5c95eb[_0x572e27]?(_0x1bfc13['push']({'type':_0x2997c4(0x89),'content':_0x512958[_0x468c54]}),_0x468c54++,_0x5d969b++,_0x572e27++):(_0x1bfc13[_0x2997c4(0x8c)]({'type':_0x2997c4(0x6f),'content':_0x2af839[_0x5d969b]}),_0x5d969b++);else{if(_0x572e27<_0x5c95eb['length']&&_0x5d969b<_0x2af839[_0x2997c4(0x6e)]&&_0x2af839[_0x5d969b]===_0x5c95eb[_0x572e27])_0x1bfc13['push']({'type':_0x2997c4(0x71),'content':_0x512958[_0x468c54]}),_0x468c54++;else{if(_0x468c54<_0x512958[_0x2997c4(0x6e)]&&(_0x572e27>=_0x5c95eb[_0x2997c4(0x6e)]||_0x512958[_0x468c54]!==_0x5c95eb[_0x572e27]))_0x1bfc13['push']({'type':_0x2997c4(0x71),'content':_0x512958[_0x468c54]}),_0x468c54++;else _0x5d969b<_0x2af839[_0x2997c4(0x6e)]&&(_0x1bfc13['push']({'type':_0x2997c4(0x6f),'content':_0x2af839[_0x5d969b]}),_0x5d969b++);}}}return _0x1bfc13;}function computeLCS(_0x225ecc,_0x292e7b){const _0x1e5665=a215_0x1f04,_0x33e936=_0x225ecc[_0x1e5665(0x6e)],_0x2043cb=_0x292e7b['length'],_0x5c7647=Array(_0x33e936+0x1)[_0x1e5665(0x88)](null)['map'](()=>Array(_0x2043cb+0x1)['fill'](0x0));for(let _0x23bb7c=0x1;_0x23bb7c<=_0x33e936;_0x23bb7c++){for(let _0x56858d=0x1;_0x56858d<=_0x2043cb;_0x56858d++){_0x225ecc[_0x23bb7c-0x1]===_0x292e7b[_0x56858d-0x1]?_0x5c7647[_0x23bb7c][_0x56858d]=_0x5c7647[_0x23bb7c-0x1][_0x56858d-0x1]+0x1:_0x5c7647[_0x23bb7c][_0x56858d]=Math[_0x1e5665(0x83)](_0x5c7647[_0x23bb7c-0x1][_0x56858d],_0x5c7647[_0x23bb7c][_0x56858d-0x1]);}}const _0x35436c=[];let _0x289235=_0x33e936,_0x38714d=_0x2043cb;while(_0x289235>0x0&&_0x38714d>0x0){if(_0x225ecc[_0x289235-0x1]===_0x292e7b[_0x38714d-0x1])_0x35436c[_0x1e5665(0x7a)](_0x225ecc[_0x289235-0x1]),_0x289235--,_0x38714d--;else _0x5c7647[_0x289235-0x1][_0x38714d]>_0x5c7647[_0x289235][_0x38714d-0x1]?_0x289235--:_0x38714d--;}return _0x35436c;}export function formatDiffWithColors(_0xe8da95,_0x30366f=0x3){const _0x4b2227=a215_0x1f04,_0x36b6e1=new Set();_0xe8da95['forEach']((_0x4024e1,_0x55c0d3)=>{const _0x438cbc=a215_0x1f04;_0x4024e1['type']!==_0x438cbc(0x89)&&_0x36b6e1[_0x438cbc(0x87)](_0x55c0d3);});if(_0x36b6e1[_0x4b2227(0x6d)]===0x0)return'';const _0x3e3178=new Set();for(const _0x1bb67d of _0x36b6e1){for(let _0xb07d89=Math[_0x4b2227(0x83)](0x0,_0x1bb67d-_0x30366f);_0xb07d89<=Math[_0x4b2227(0x84)](_0xe8da95['length']-0x1,_0x1bb67d+_0x30366f);_0xb07d89++){_0x3e3178[_0x4b2227(0x87)](_0xb07d89);}}const _0x5a25c6=[];let _0x535aae=-0x1;const _0x4597bb=_0xe8da95[_0x4b2227(0x6e)],_0x5ec405=Math[_0x4b2227(0x83)](0x3,String(_0x4597bb)['length']),_0x138878=[];let _0x155e4f=0x0,_0x3b0646=0x0;for(const _0x4ea85a of _0xe8da95){if(_0x4ea85a['type']==='removed')_0x155e4f++,_0x138878[_0x4b2227(0x8c)]({'old':_0x155e4f,'new':0x0});else _0x4ea85a[_0x4b2227(0x74)]==='added'?(_0x3b0646++,_0x138878['push']({'old':0x0,'new':_0x3b0646})):(_0x155e4f++,_0x3b0646++,_0x138878['push']({'old':_0x155e4f,'new':_0x3b0646}));}for(let _0x3717bd=0x0;_0x3717bd<_0xe8da95[_0x4b2227(0x6e)];_0x3717bd++){if(!_0x3e3178[_0x4b2227(0x77)](_0x3717bd))continue;_0x535aae!==-0x1&&_0x3717bd>_0x535aae+0x1&&_0x5a25c6['push'](a215_0x124b23[_0x4b2227(0x8b)](_0x4b2227(0x78)));_0x535aae=_0x3717bd;const _0x11a1be=_0xe8da95[_0x3717bd],_0x161fd0=_0x138878[_0x3717bd],_0x19207a=_0x161fd0[_0x4b2227(0x7d)]>0x0?String(_0x161fd0['old'])[_0x4b2227(0x6c)](_0x5ec405):'\x20'[_0x4b2227(0x7e)](_0x5ec405),_0x129565=_0x161fd0[_0x4b2227(0x76)]>0x0?String(_0x161fd0[_0x4b2227(0x76)])[_0x4b2227(0x6c)](_0x5ec405):'\x20'[_0x4b2227(0x7e)](_0x5ec405);switch(_0x11a1be['type']){case _0x4b2227(0x71):_0x5a25c6[_0x4b2227(0x8c)](a215_0x124b23[_0x4b2227(0x70)](_0x19207a+'\x20'+_0x129565+_0x4b2227(0x75)+_0x11a1be[_0x4b2227(0x81)]));break;case _0x4b2227(0x6f):_0x5a25c6[_0x4b2227(0x8c)](a215_0x124b23[_0x4b2227(0x86)](_0x19207a+'\x20'+_0x129565+_0x4b2227(0x82)+_0x11a1be[_0x4b2227(0x81)]));break;default:_0x5a25c6['push'](a215_0x124b23[_0x4b2227(0x72)](_0x19207a+'\x20'+_0x129565+_0x4b2227(0x8f)+_0x11a1be[_0x4b2227(0x81)]));break;}}return _0x5a25c6[_0x4b2227(0x80)]('\x0a');}export function hasChanges(_0x2cdd50){const _0x12b189=a215_0x1f04;return _0x2cdd50['some'](_0x5c003f=>_0x5c003f['type']!==_0x12b189(0x89));}function a215_0x2806(){const _0xf8c45f=['1487406Ttmpcp','unshift','12241336JPgViv','18188MmQXVU','old','repeat','470PUVlIZ','join','content','\x20+\x20','max','min','9EQNldZ','green','add','fill','unchanged','12816COQCHL','cyan','push','21ioLgUk','142146wmghSj','\x20\x20\x20','11419119OtPDyE','padStart','size','length','added','red','removed','dim','12887390xMBfTk','type','\x20-\x20','new','has','\x20\x20...'];a215_0x2806=function(){return _0xf8c45f;};return a215_0x2806();}
1
+ (function(_0x37558e,_0x22a0f1){const _0x2b5e1d=a215_0x30a8,_0x286891=_0x37558e();while(!![]){try{const _0x2c5b56=-parseInt(_0x2b5e1d(0x20d))/0x1+-parseInt(_0x2b5e1d(0x209))/0x2*(-parseInt(_0x2b5e1d(0x207))/0x3)+parseInt(_0x2b5e1d(0x1f8))/0x4*(parseInt(_0x2b5e1d(0x1ff))/0x5)+parseInt(_0x2b5e1d(0x1ef))/0x6+-parseInt(_0x2b5e1d(0x1f3))/0x7+-parseInt(_0x2b5e1d(0x1f7))/0x8+parseInt(_0x2b5e1d(0x1fb))/0x9*(parseInt(_0x2b5e1d(0x1fa))/0xa);if(_0x2c5b56===_0x22a0f1)break;else _0x286891['push'](_0x286891['shift']());}catch(_0x4c96f0){_0x286891['push'](_0x286891['shift']());}}}(a215_0x256e,0xbf331));import a215_0x56d617 from'chalk';export function generateDiff(_0x4bee80,_0x1fbac6){const _0x11ba71=a215_0x30a8,_0x47a05c=_0x4bee80[_0x11ba71(0x1fe)]('\x0a'),_0x27535f=_0x1fbac6[_0x11ba71(0x1fe)]('\x0a'),_0x3a4382=[],_0x223bc6=computeLCS(_0x47a05c,_0x27535f);let _0xdec2d1=0x0,_0x132da1=0x0,_0x510fd7=0x0;while(_0xdec2d1<_0x47a05c[_0x11ba71(0x20e)]||_0x132da1<_0x27535f[_0x11ba71(0x20e)]){if(_0x510fd7<_0x223bc6[_0x11ba71(0x20e)]&&_0xdec2d1<_0x47a05c['length']&&_0x47a05c[_0xdec2d1]===_0x223bc6[_0x510fd7])_0x132da1<_0x27535f['length']&&_0x27535f[_0x132da1]===_0x223bc6[_0x510fd7]?(_0x3a4382[_0x11ba71(0x1fd)]({'type':_0x11ba71(0x1f0),'content':_0x47a05c[_0xdec2d1]}),_0xdec2d1++,_0x132da1++,_0x510fd7++):(_0x3a4382[_0x11ba71(0x1fd)]({'type':_0x11ba71(0x208),'content':_0x27535f[_0x132da1]}),_0x132da1++);else{if(_0x510fd7<_0x223bc6[_0x11ba71(0x20e)]&&_0x132da1<_0x27535f[_0x11ba71(0x20e)]&&_0x27535f[_0x132da1]===_0x223bc6[_0x510fd7])_0x3a4382[_0x11ba71(0x1fd)]({'type':_0x11ba71(0x1f9),'content':_0x47a05c[_0xdec2d1]}),_0xdec2d1++;else{if(_0xdec2d1<_0x47a05c[_0x11ba71(0x20e)]&&(_0x510fd7>=_0x223bc6['length']||_0x47a05c[_0xdec2d1]!==_0x223bc6[_0x510fd7]))_0x3a4382['push']({'type':_0x11ba71(0x1f9),'content':_0x47a05c[_0xdec2d1]}),_0xdec2d1++;else _0x132da1<_0x27535f['length']&&(_0x3a4382[_0x11ba71(0x1fd)]({'type':_0x11ba71(0x208),'content':_0x27535f[_0x132da1]}),_0x132da1++);}}}return _0x3a4382;}function a215_0x256e(){const _0x2bce02=['4110EIfpHB','max','repeat','type','cyan','content','has','green','269211NvLBTx','added','20UYFikA','unshift','\x20-\x20','min','271879BEdSnx','length','padStart','dim','forEach','5872476ysfrWi','unchanged','join','new','8689471CCNztf','red','\x20\x20\x20','\x20+\x20','11657960aIBuwk','36mcZBzB','removed','20YLwBKP','8415522RUVocl','old','push','split'];a215_0x256e=function(){return _0x2bce02;};return a215_0x256e();}function a215_0x30a8(_0x4ef141,_0x2574f9){_0x4ef141=_0x4ef141-0x1ec;const _0x256ed0=a215_0x256e();let _0x30a897=_0x256ed0[_0x4ef141];return _0x30a897;}function computeLCS(_0x513c8b,_0xe1a04b){const _0x84a620=a215_0x30a8,_0x2a0ca5=_0x513c8b[_0x84a620(0x20e)],_0x4a36cd=_0xe1a04b['length'],_0x3532fd=Array(_0x2a0ca5+0x1)['fill'](null)['map'](()=>Array(_0x4a36cd+0x1)['fill'](0x0));for(let _0x2be03b=0x1;_0x2be03b<=_0x2a0ca5;_0x2be03b++){for(let _0x3e7bb5=0x1;_0x3e7bb5<=_0x4a36cd;_0x3e7bb5++){_0x513c8b[_0x2be03b-0x1]===_0xe1a04b[_0x3e7bb5-0x1]?_0x3532fd[_0x2be03b][_0x3e7bb5]=_0x3532fd[_0x2be03b-0x1][_0x3e7bb5-0x1]+0x1:_0x3532fd[_0x2be03b][_0x3e7bb5]=Math[_0x84a620(0x200)](_0x3532fd[_0x2be03b-0x1][_0x3e7bb5],_0x3532fd[_0x2be03b][_0x3e7bb5-0x1]);}}const _0x2b485b=[];let _0x2d7b65=_0x2a0ca5,_0x711e2d=_0x4a36cd;while(_0x2d7b65>0x0&&_0x711e2d>0x0){if(_0x513c8b[_0x2d7b65-0x1]===_0xe1a04b[_0x711e2d-0x1])_0x2b485b[_0x84a620(0x20a)](_0x513c8b[_0x2d7b65-0x1]),_0x2d7b65--,_0x711e2d--;else _0x3532fd[_0x2d7b65-0x1][_0x711e2d]>_0x3532fd[_0x2d7b65][_0x711e2d-0x1]?_0x2d7b65--:_0x711e2d--;}return _0x2b485b;}export function formatDiffWithColors(_0xeff9a5,_0x91d18c=0x3){const _0x40a4a0=a215_0x30a8,_0x550e45=new Set();_0xeff9a5[_0x40a4a0(0x1ee)]((_0x142b9d,_0x3a502d)=>{const _0x1e9b30=_0x40a4a0;_0x142b9d[_0x1e9b30(0x202)]!=='unchanged'&&_0x550e45['add'](_0x3a502d);});if(_0x550e45['size']===0x0)return'';const _0x1d5fdb=new Set();for(const _0x497dd9 of _0x550e45){for(let _0x39bfae=Math[_0x40a4a0(0x200)](0x0,_0x497dd9-_0x91d18c);_0x39bfae<=Math[_0x40a4a0(0x20c)](_0xeff9a5['length']-0x1,_0x497dd9+_0x91d18c);_0x39bfae++){_0x1d5fdb['add'](_0x39bfae);}}const _0x4ac84c=[];let _0x5f12f7=-0x1;const _0x5c9d3b=_0xeff9a5[_0x40a4a0(0x20e)],_0x4939fb=Math[_0x40a4a0(0x200)](0x3,String(_0x5c9d3b)[_0x40a4a0(0x20e)]),_0x40da5c=[];let _0x2fe8ce=0x0,_0x7b4bb7=0x0;for(const _0x27b286 of _0xeff9a5){if(_0x27b286[_0x40a4a0(0x202)]===_0x40a4a0(0x1f9))_0x2fe8ce++,_0x40da5c['push']({'old':_0x2fe8ce,'new':0x0});else _0x27b286[_0x40a4a0(0x202)]===_0x40a4a0(0x208)?(_0x7b4bb7++,_0x40da5c[_0x40a4a0(0x1fd)]({'old':0x0,'new':_0x7b4bb7})):(_0x2fe8ce++,_0x7b4bb7++,_0x40da5c['push']({'old':_0x2fe8ce,'new':_0x7b4bb7}));}for(let _0x308dc4=0x0;_0x308dc4<_0xeff9a5['length'];_0x308dc4++){if(!_0x1d5fdb[_0x40a4a0(0x205)](_0x308dc4))continue;_0x5f12f7!==-0x1&&_0x308dc4>_0x5f12f7+0x1&&_0x4ac84c[_0x40a4a0(0x1fd)](a215_0x56d617[_0x40a4a0(0x203)]('\x20\x20...'));_0x5f12f7=_0x308dc4;const _0x20ce51=_0xeff9a5[_0x308dc4],_0x28efcb=_0x40da5c[_0x308dc4],_0x1f1a60=_0x28efcb[_0x40a4a0(0x1fc)]>0x0?String(_0x28efcb['old'])[_0x40a4a0(0x1ec)](_0x4939fb):'\x20'[_0x40a4a0(0x201)](_0x4939fb),_0xd6e89c=_0x28efcb[_0x40a4a0(0x1f2)]>0x0?String(_0x28efcb[_0x40a4a0(0x1f2)])[_0x40a4a0(0x1ec)](_0x4939fb):'\x20'[_0x40a4a0(0x201)](_0x4939fb);switch(_0x20ce51[_0x40a4a0(0x202)]){case _0x40a4a0(0x1f9):_0x4ac84c['push'](a215_0x56d617[_0x40a4a0(0x1f4)](_0x1f1a60+'\x20'+_0xd6e89c+_0x40a4a0(0x20b)+_0x20ce51['content']));break;case'added':_0x4ac84c['push'](a215_0x56d617[_0x40a4a0(0x206)](_0x1f1a60+'\x20'+_0xd6e89c+_0x40a4a0(0x1f6)+_0x20ce51[_0x40a4a0(0x204)]));break;default:_0x4ac84c[_0x40a4a0(0x1fd)](a215_0x56d617[_0x40a4a0(0x1ed)](_0x1f1a60+'\x20'+_0xd6e89c+_0x40a4a0(0x1f5)+_0x20ce51['content']));break;}}return _0x4ac84c[_0x40a4a0(0x1f1)]('\x0a');}export function hasChanges(_0x4afada){const _0x3bb956=a215_0x30a8;return _0x4afada['some'](_0x168637=>_0x168637[_0x3bb956(0x202)]!==_0x3bb956(0x1f0));}
@@ -1 +1 @@
1
- (function(_0x47be3b,_0x1913e3){const _0x4cce2c=a216_0x4ec3,_0x363052=_0x47be3b();while(!![]){try{const _0x4edefc=parseInt(_0x4cce2c(0x1f3))/0x1+-parseInt(_0x4cce2c(0x1eb))/0x2*(-parseInt(_0x4cce2c(0x1ec))/0x3)+parseInt(_0x4cce2c(0x1e6))/0x4*(parseInt(_0x4cce2c(0x1f1))/0x5)+parseInt(_0x4cce2c(0x1e8))/0x6+parseInt(_0x4cce2c(0x1f0))/0x7+-parseInt(_0x4cce2c(0x1ef))/0x8*(-parseInt(_0x4cce2c(0x1f5))/0x9)+-parseInt(_0x4cce2c(0x1e3))/0xa;if(_0x4edefc===_0x1913e3)break;else _0x363052['push'](_0x363052['shift']());}catch(_0x3694a8){_0x363052['push'](_0x363052['shift']());}}}(a216_0x424f,0x4742e));import*as a216_0x5e9808 from'node:fs';function a216_0x4ec3(_0x12d3ef,_0x11a637){_0x12d3ef=_0x12d3ef-0x1e0;const _0x424f26=a216_0x424f();let _0x4ec3bd=_0x424f26[_0x12d3ef];return _0x4ec3bd;}import*as a216_0x4846ba from'node:path';export function setSecureFilePermissions(_0x52bf9f){const _0x2cd365=a216_0x4ec3;try{a216_0x5e9808[_0x2cd365(0x1f4)](_0x52bf9f,0x180);}catch{console[_0x2cd365(0x1e0)](_0x2cd365(0x1f2)+_0x52bf9f);}}export function setSecureDirectoryPermissions(_0xf9794c){const _0x4ba19f=a216_0x4ec3;try{a216_0x5e9808[_0x4ba19f(0x1f4)](_0xf9794c,0x1c0);}catch{console[_0x4ba19f(0x1e0)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xf9794c);}}function a216_0x424f(){const _0x363577=[').\x20','2221044qqaIWm','Warning:\x20','writeFileSync','90366eGLWSV','6kZRewF','Should\x20be\x200600\x20or\x20more\x20restrictive.','existsSync','608onTuEz','216146QMpiKo','52395ORNWNt','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','379331QURcLi','chmodSync','68508kjNKYr','warn','mode','mkdirSync','13145600TAiKoz','dirname','statSync','60WVtVDa'];a216_0x424f=function(){return _0x363577;};return a216_0x424f();}export function createSecureDirectory(_0x2560b6){const _0x2a218f=a216_0x4ec3;!a216_0x5e9808[_0x2a218f(0x1ee)](_0x2560b6)&&(a216_0x5e9808[_0x2a218f(0x1e2)](_0x2560b6,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2560b6));}export function validateSecureFilePermissions(_0xd1926e){const _0x25fbd9=a216_0x4ec3;try{const _0x52449f=a216_0x5e9808[_0x25fbd9(0x1e5)](_0xd1926e),_0x4be1b1=_0x52449f[_0x25fbd9(0x1e1)]&0x1ff,_0x513845=(_0x4be1b1&0x3f)!==0x0;if(_0x513845)return console['warn'](_0x25fbd9(0x1e9)+_0xd1926e+'\x20has\x20insecure\x20permissions\x20('+_0x4be1b1['toString'](0x8)+_0x25fbd9(0x1e7)+_0x25fbd9(0x1ed)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x51d3ef,_0x38b0ea){const _0x445819=a216_0x4ec3,_0x56b24d=a216_0x4846ba[_0x445819(0x1e4)](_0x51d3ef);createSecureDirectory(_0x56b24d),a216_0x5e9808[_0x445819(0x1ea)](_0x51d3ef,_0x38b0ea,{'mode':0x180}),setSecureFilePermissions(_0x51d3ef);}
1
+ (function(_0x573a93,_0xd7735c){const _0x532522=a216_0x51e8,_0x48e13b=_0x573a93();while(!![]){try{const _0x4dcf4f=-parseInt(_0x532522(0x126))/0x1*(-parseInt(_0x532522(0x121))/0x2)+-parseInt(_0x532522(0x135))/0x3*(-parseInt(_0x532522(0x129))/0x4)+parseInt(_0x532522(0x12b))/0x5*(parseInt(_0x532522(0x125))/0x6)+parseInt(_0x532522(0x132))/0x7+parseInt(_0x532522(0x12f))/0x8+-parseInt(_0x532522(0x131))/0x9*(-parseInt(_0x532522(0x130))/0xa)+-parseInt(_0x532522(0x123))/0xb;if(_0x4dcf4f===_0xd7735c)break;else _0x48e13b['push'](_0x48e13b['shift']());}catch(_0x38fa3e){_0x48e13b['push'](_0x48e13b['shift']());}}}(a216_0x5315,0x628ab));import*as a216_0x32d234 from'node:fs';function a216_0x51e8(_0x13646d,_0x30f126){_0x13646d=_0x13646d-0x11f;const _0x531528=a216_0x5315();let _0x51e809=_0x531528[_0x13646d];return _0x51e809;}import*as a216_0x5b9b68 from'node:path';function a216_0x5315(){const _0x109462=['existsSync','writeFileSync','warn','4336392oWLuvx','8070NGYtsd','6723klYRfn','3702699oZhreD','Warning:\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','21JpatTr','chmodSync','mode','191686aMFUbm',').\x20','26146835PtvjuR','Should\x20be\x200600\x20or\x20more\x20restrictive.','18hIKydZ','3GARznk','dirname','statSync','135668ddMQdO','toString','969715joLbqE'];a216_0x5315=function(){return _0x109462;};return a216_0x5315();}export function setSecureFilePermissions(_0x1459ce){const _0x3e48d9=a216_0x51e8;try{a216_0x32d234[_0x3e48d9(0x11f)](_0x1459ce,0x180);}catch{console['warn'](_0x3e48d9(0x134)+_0x1459ce);}}export function setSecureDirectoryPermissions(_0x35a470){const _0x20c4a8=a216_0x51e8;try{a216_0x32d234['chmodSync'](_0x35a470,0x1c0);}catch{console[_0x20c4a8(0x12e)](_0x20c4a8(0x134)+_0x35a470);}}export function createSecureDirectory(_0x49e9c0){const _0x3adcdf=a216_0x51e8;!a216_0x32d234[_0x3adcdf(0x12c)](_0x49e9c0)&&(a216_0x32d234['mkdirSync'](_0x49e9c0,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x49e9c0));}export function validateSecureFilePermissions(_0x4e15bd){const _0x5d9619=a216_0x51e8;try{const _0x257aab=a216_0x32d234[_0x5d9619(0x128)](_0x4e15bd),_0x1c157f=_0x257aab[_0x5d9619(0x120)]&0x1ff,_0x5b9d63=(_0x1c157f&0x3f)!==0x0;if(_0x5b9d63)return console['warn'](_0x5d9619(0x133)+_0x4e15bd+'\x20has\x20insecure\x20permissions\x20('+_0x1c157f[_0x5d9619(0x12a)](0x8)+_0x5d9619(0x122)+_0x5d9619(0x124)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x505a66,_0x18d35a){const _0x42083b=a216_0x51e8,_0x5d786c=a216_0x5b9b68[_0x42083b(0x127)](_0x505a66);createSecureDirectory(_0x5d786c),a216_0x32d234[_0x42083b(0x12d)](_0x505a66,_0x18d35a,{'mode':0x180}),setSecureFilePermissions(_0x505a66);}
@@ -1 +1 @@
1
- (function(_0x5bed1d,_0x1a8549){const _0x1908e9=a217_0x3fd5,_0x829371=_0x5bed1d();while(!![]){try{const _0x2f8e94=parseInt(_0x1908e9(0x160))/0x1*(-parseInt(_0x1908e9(0x152))/0x2)+parseInt(_0x1908e9(0x163))/0x3+parseInt(_0x1908e9(0x15c))/0x4+parseInt(_0x1908e9(0x158))/0x5*(parseInt(_0x1908e9(0x162))/0x6)+-parseInt(_0x1908e9(0x165))/0x7+-parseInt(_0x1908e9(0x154))/0x8*(-parseInt(_0x1908e9(0x167))/0x9)+-parseInt(_0x1908e9(0x15f))/0xa*(-parseInt(_0x1908e9(0x15e))/0xb);if(_0x2f8e94===_0x1a8549)break;else _0x829371['push'](_0x829371['shift']());}catch(_0x93dc5b){_0x829371['push'](_0x829371['shift']());}}}(a217_0x2abd,0xc3915));function a217_0x3fd5(_0x359c19,_0x1b7dfa){_0x359c19=_0x359c19-0x152;const _0x2abdef=a217_0x2abd();let _0x3fd544=_0x2abdef[_0x359c19];return _0x3fd544;}function a217_0x2abd(){const _0x2233d0=['\x27:\x20','4760980SOEthD','INTERNAL','22kTIJOT','2850190xVwPXB','4pZIqDE','\x27\x20not\x20found','6VUxRJm','2113989ofGfXF','ENOENT','5288997IMNUxp','message','1151523PWjqlM','667312vUpcTU','utf-8','8FyThOu','PERMISSION_DENIED','code','NOT_FOUND','1491735RFjNIn','Error\x20reading\x20file\x20\x27','File\x20\x27'];a217_0x2abd=function(){return _0x2233d0;};return a217_0x2abd();}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x21c940){const _0x390c0b=a217_0x3fd5;try{return readFileSync(_0x21c940,_0x390c0b(0x153));}catch(_0x40c964){const _0x5c6058=_0x40c964[_0x390c0b(0x156)];if(_0x5c6058===_0x390c0b(0x164))throw new SDKError(ErrorCode[_0x390c0b(0x157)],_0x390c0b(0x15a)+_0x21c940+_0x390c0b(0x161),_0x40c964);else{if(_0x5c6058==='EACCES')throw new SDKError(ErrorCode[_0x390c0b(0x155)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x21c940+'\x27',_0x40c964);else throw new SDKError(ErrorCode[_0x390c0b(0x15d)],_0x390c0b(0x159)+_0x21c940+_0x390c0b(0x15b)+_0x40c964[_0x390c0b(0x166)],_0x40c964);}}}
1
+ (function(_0x340d55,_0x337e62){const _0x1cd6c4=a217_0x24eb,_0xebd3bb=_0x340d55();while(!![]){try{const _0x3b64fe=parseInt(_0x1cd6c4(0xe4))/0x1*(-parseInt(_0x1cd6c4(0xe0))/0x2)+parseInt(_0x1cd6c4(0xd5))/0x3+-parseInt(_0x1cd6c4(0xdb))/0x4*(parseInt(_0x1cd6c4(0xda))/0x5)+parseInt(_0x1cd6c4(0xd8))/0x6*(parseInt(_0x1cd6c4(0xe3))/0x7)+-parseInt(_0x1cd6c4(0xd1))/0x8+parseInt(_0x1cd6c4(0xe1))/0x9+parseInt(_0x1cd6c4(0xdc))/0xa;if(_0x3b64fe===_0x337e62)break;else _0xebd3bb['push'](_0xebd3bb['shift']());}catch(_0x7c5234){_0xebd3bb['push'](_0xebd3bb['shift']());}}}(a217_0x1242,0x20350));function a217_0x1242(){const _0x17355c=['INTERNAL','\x27\x20not\x20found','6DEeJvi','Error\x20reading\x20file\x20\x27','413090HCEaiY','8pkMbXO','3202420gQOWyu','PERMISSION_DENIED','EACCES','File\x20\x27','2406wipTyb','2239749kpmTSO','utf-8','940303LizYXd','215SupTBr','1698336beBUdz','ENOENT','NOT_FOUND','\x27:\x20','193983yALmAo'];a217_0x1242=function(){return _0x17355c;};return a217_0x1242();}function a217_0x24eb(_0x124f85,_0xe2a1ec){_0x124f85=_0x124f85-0xd1;const _0x1242d8=a217_0x1242();let _0x24eba9=_0x1242d8[_0x124f85];return _0x24eba9;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x2d37c6){const _0x2540b3=a217_0x24eb;try{return readFileSync(_0x2d37c6,_0x2540b3(0xe2));}catch(_0x434674){const _0x91f0e=_0x434674['code'];if(_0x91f0e===_0x2540b3(0xd2))throw new SDKError(ErrorCode[_0x2540b3(0xd3)],_0x2540b3(0xdf)+_0x2d37c6+_0x2540b3(0xd7),_0x434674);else{if(_0x91f0e===_0x2540b3(0xde))throw new SDKError(ErrorCode[_0x2540b3(0xdd)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x2d37c6+'\x27',_0x434674);else throw new SDKError(ErrorCode[_0x2540b3(0xd6)],_0x2540b3(0xd9)+_0x2d37c6+_0x2540b3(0xd4)+_0x434674['message'],_0x434674);}}}
@@ -1 +1 @@
1
- function a218_0x5581(_0x70fee0,_0x3de140){_0x70fee0=_0x70fee0-0xa7;const _0x373bb3=a218_0x373b();let _0x5581d1=_0x373bb3[_0x70fee0];return _0x5581d1;}(function(_0x3582eb,_0x3f49d2){const _0x224477=a218_0x5581,_0x5c03c6=_0x3582eb();while(!![]){try{const _0x45827d=parseInt(_0x224477(0xbf))/0x1+parseInt(_0x224477(0xb1))/0x2*(parseInt(_0x224477(0xb0))/0x3)+-parseInt(_0x224477(0xaa))/0x4+-parseInt(_0x224477(0xb3))/0x5+parseInt(_0x224477(0xc0))/0x6*(parseInt(_0x224477(0xc2))/0x7)+parseInt(_0x224477(0xa9))/0x8*(parseInt(_0x224477(0xba))/0x9)+-parseInt(_0x224477(0xb9))/0xa;if(_0x45827d===_0x3f49d2)break;else _0x5c03c6['push'](_0x5c03c6['shift']());}catch(_0x513ec8){_0x5c03c6['push'](_0x5c03c6['shift']());}}}(a218_0x373b,0xaf9c2));import*as a218_0x442e5a from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x1e994c,_0x575ac8,_0x1c5ae4){const _0x514b43=a218_0x5581,_0x363ad1=_0x1e994c+'/'+_0x575ac8,_0x1a565a=cache[_0x514b43(0xb5)](_0x363ad1);if(_0x1a565a&&Date[_0x514b43(0xae)]()-_0x1a565a[_0x514b43(0xbc)]<CACHE_TTL_MS)return Promise['resolve'](_0x1a565a[_0x514b43(0xbe)]);return new Promise((_0x54edeb,_0x2da5ea)=>{const _0x3725f8=_0x514b43,_0x569c24={'hostname':'api.github.com','path':_0x3725f8(0xbd)+_0x1e994c+'/'+_0x575ac8+_0x3725f8(0xad),'headers':{'User-Agent':_0x1c5ae4,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x3f2815=a218_0x442e5a[_0x3725f8(0xb5)](_0x569c24,_0xf8ad02=>{const _0x574a48=_0x3725f8;let _0x543a4b='';_0xf8ad02['on'](_0x574a48(0xaf),_0x12362d=>{_0x543a4b+=_0x12362d['toString']();}),_0xf8ad02['on']('end',()=>{const _0x448a89=_0x574a48;if(_0xf8ad02[_0x448a89(0xb6)]!==0xc8){_0x2da5ea(new Error(_0x448a89(0xb2)+_0xf8ad02[_0x448a89(0xb6)]+':\x20'+_0x543a4b[_0x448a89(0xb7)](0x0,0xc8)));return;}try{const _0xf66ed5=JSON['parse'](_0x543a4b);cache[_0x448a89(0xa7)](_0x363ad1,{'releases':_0xf66ed5,'fetchedAt':Date[_0x448a89(0xae)]()}),_0x54edeb(_0xf66ed5);}catch(_0x52fff0){_0x2da5ea(_0x52fff0);}});});_0x3f2815['on'](_0x3725f8(0xb8),()=>{const _0x228259=_0x3725f8;_0x3f2815[_0x228259(0xac)](),_0x2da5ea(new Error(_0x228259(0xa8)+REQUEST_TIMEOUT_MS+'ms'));}),_0x3f2815['on'](_0x3725f8(0xb4),_0x2da5ea);});}export async function resolveReleaseTag(_0x4b25a7,_0x3322a9,_0x40e297,_0x226f43){const _0x2920ee=a218_0x5581;if(_0x4b25a7==='next')return null;const _0x3317d2=await fetchGitHubReleases(_0x3322a9,_0x40e297,_0x226f43);if(_0x3317d2[_0x2920ee(0xc1)]===0x0)return null;const _0x3001ad=_0x3317d2[_0x2920ee(0xab)](_0x239dfe=>!_0x239dfe[_0x2920ee(0xbb)]);return _0x3001ad?_0x3001ad['tag_name']:null;}function a218_0x373b(){const _0x5c8ece=['596184COrNYw','length','7hxcivS','set','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','205968xLilGP','5556728EOfndl','find','destroy','/releases?per_page=20','now','data','3747lGGehP','818auiTeX','GitHub\x20API\x20returned\x20','894175TeOUXg','error','get','statusCode','slice','timeout','8106970svDdqz','387JCPXMz','prerelease','fetchedAt','/repos/','releases','1380729IrdLRG'];a218_0x373b=function(){return _0x5c8ece;};return a218_0x373b();}
1
+ (function(_0x1e8fd6,_0x2bf571){const _0x2b4445=a218_0x3cfe,_0x51fd3d=_0x1e8fd6();while(!![]){try{const _0x30f67b=parseInt(_0x2b4445(0x1e8))/0x1+-parseInt(_0x2b4445(0x1ed))/0x2+-parseInt(_0x2b4445(0x1ec))/0x3+-parseInt(_0x2b4445(0x1ea))/0x4+-parseInt(_0x2b4445(0x1e5))/0x5*(-parseInt(_0x2b4445(0x1e2))/0x6)+parseInt(_0x2b4445(0x1f0))/0x7+-parseInt(_0x2b4445(0x1db))/0x8*(parseInt(_0x2b4445(0x1eb))/0x9);if(_0x30f67b===_0x2bf571)break;else _0x51fd3d['push'](_0x51fd3d['shift']());}catch(_0x5aa83a){_0x51fd3d['push'](_0x51fd3d['shift']());}}}(a218_0x54f3,0x67188));function a218_0x54f3(){const _0x2fe264=['/releases?per_page=20','713498lmOHwU','toString','25488nATUoM','262161yAkdHh','1019994WytIjf','1586422AlvymE','statusCode','/repos/','5317522wFRphI','prerelease','length','find','next','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','get','timeout','fetchedAt','152CAmCUw','resolve','parse','GitHub\x20API\x20returned\x20','now','slice','error','48KRuCVa','destroy','set','401355XzekBB','tag_name'];a218_0x54f3=function(){return _0x2fe264;};return a218_0x54f3();}function a218_0x3cfe(_0x5a41d4,_0x3fb020){_0x5a41d4=_0x5a41d4-0x1d3;const _0x54f30c=a218_0x54f3();let _0x3cfef9=_0x54f30c[_0x5a41d4];return _0x3cfef9;}import*as a218_0x5595ff from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x394464,_0x831f99,_0x1f75e3){const _0x9d6ee1=a218_0x3cfe,_0x4bedd9=_0x394464+'/'+_0x831f99,_0x213d70=cache[_0x9d6ee1(0x1d8)](_0x4bedd9);if(_0x213d70&&Date['now']()-_0x213d70[_0x9d6ee1(0x1da)]<CACHE_TTL_MS)return Promise[_0x9d6ee1(0x1dc)](_0x213d70['releases']);return new Promise((_0x3638f3,_0x33dbfc)=>{const _0x38dd21=_0x9d6ee1,_0x1af045={'hostname':'api.github.com','path':_0x38dd21(0x1ef)+_0x394464+'/'+_0x831f99+_0x38dd21(0x1e7),'headers':{'User-Agent':_0x1f75e3,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x1a1d97=a218_0x5595ff['get'](_0x1af045,_0x5a9185=>{let _0x4071f4='';_0x5a9185['on']('data',_0x130bf0=>{const _0x201833=a218_0x3cfe;_0x4071f4+=_0x130bf0[_0x201833(0x1e9)]();}),_0x5a9185['on']('end',()=>{const _0x58036c=a218_0x3cfe;if(_0x5a9185[_0x58036c(0x1ee)]!==0xc8){_0x33dbfc(new Error(_0x58036c(0x1de)+_0x5a9185[_0x58036c(0x1ee)]+':\x20'+_0x4071f4[_0x58036c(0x1e0)](0x0,0xc8)));return;}try{const _0x41585c=JSON[_0x58036c(0x1dd)](_0x4071f4);cache[_0x58036c(0x1e4)](_0x4bedd9,{'releases':_0x41585c,'fetchedAt':Date[_0x58036c(0x1df)]()}),_0x3638f3(_0x41585c);}catch(_0x41fccf){_0x33dbfc(_0x41fccf);}});});_0x1a1d97['on'](_0x38dd21(0x1d9),()=>{const _0x14e0a7=_0x38dd21;_0x1a1d97[_0x14e0a7(0x1e3)](),_0x33dbfc(new Error(_0x14e0a7(0x1d7)+REQUEST_TIMEOUT_MS+'ms'));}),_0x1a1d97['on'](_0x38dd21(0x1e1),_0x33dbfc);});}export async function resolveReleaseTag(_0x412664,_0x36485b,_0x2c6d62,_0x104424){const _0x26614f=a218_0x3cfe;if(_0x412664===_0x26614f(0x1d6))return null;const _0x493a77=await fetchGitHubReleases(_0x36485b,_0x2c6d62,_0x104424);if(_0x493a77[_0x26614f(0x1d4)]===0x0)return null;const _0x339834=_0x493a77[_0x26614f(0x1d5)](_0xb19f11=>!_0xb19f11[_0x26614f(0x1d3)]);return _0x339834?_0x339834[_0x26614f(0x1e6)]:null;}
@@ -1 +1 @@
1
- (function(_0x58e7a8,_0x33fac0){const _0x5b411b=a219_0x1822,_0x277076=_0x58e7a8();while(!![]){try{const _0x687de3=parseInt(_0x5b411b(0x177))/0x1+-parseInt(_0x5b411b(0x186))/0x2*(-parseInt(_0x5b411b(0x170))/0x3)+parseInt(_0x5b411b(0x17a))/0x4*(parseInt(_0x5b411b(0x182))/0x5)+-parseInt(_0x5b411b(0x173))/0x6*(-parseInt(_0x5b411b(0x16f))/0x7)+parseInt(_0x5b411b(0x181))/0x8*(-parseInt(_0x5b411b(0x176))/0x9)+-parseInt(_0x5b411b(0x184))/0xa*(-parseInt(_0x5b411b(0x180))/0xb)+-parseInt(_0x5b411b(0x178))/0xc;if(_0x687de3===_0x33fac0)break;else _0x277076['push'](_0x277076['shift']());}catch(_0x556a52){_0x277076['push'](_0x277076['shift']());}}}(a219_0x2eb2,0x95568));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x190f2c=a219_0x1822;return process.env.TDX_CACHE_DIR||join(homedir(),_0x190f2c(0x172),_0x190f2c(0x17b));}const registry=new Map();export function registerGlobalCacheKey(_0x24cf74,_0x1ab1bb){const _0x2cc57c=a219_0x1822,_0x4b76ef=registry[_0x2cc57c(0x171)](_0x24cf74);if(_0x4b76ef&&_0x4b76ef!==_0x1ab1bb)throw new Error(_0x2cc57c(0x16e)+_0x24cf74+'\x22\x20already\x20registered\x20by\x20\x22'+_0x4b76ef+_0x2cc57c(0x17e)+_0x1ab1bb+'\x22');registry[_0x2cc57c(0x185)](_0x24cf74,_0x1ab1bb);}export function getGlobalCachePath(_0xd6f86e){return join(getGlobalCacheDir(),_0xd6f86e);}function ensureGlobalCacheDir(){const _0x36a55f=getGlobalCacheDir();!existsSync(_0x36a55f)&&mkdirSync(_0x36a55f,{'recursive':!![]});}function readCacheJson(_0x1bd99a){const _0x31e662=a219_0x1822,_0x523c9a=getGlobalCachePath(_0x1bd99a);if(!existsSync(_0x523c9a))return undefined;try{const _0x506f5e=readFileSync(_0x523c9a,_0x31e662(0x17d));return JSON[_0x31e662(0x179)](_0x506f5e);}catch{return undefined;}}function writeCacheJson(_0x3934d7,_0xd6efec){const _0x32e1bd=a219_0x1822;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3934d7),JSON[_0x32e1bd(0x175)](_0xd6efec,null,0x2),_0x32e1bd(0x17d));}function readCacheText(_0xea2348){const _0x25f08d=a219_0x1822,_0x1b52d6=getGlobalCachePath(_0xea2348);if(!existsSync(_0x1b52d6))return undefined;try{return readFileSync(_0x1b52d6,_0x25f08d(0x17d));}catch{return undefined;}}function a219_0x2eb2(){const _0x4e2cf5=['60777fpSVLM','174236dTOBNM','7326936ZxBRxy','parse','8vnmeay','tdx','{profile}','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','trim','4939qGlbaU','744gSJedh','292850GsPuXz','default','8290dXeKho','set','2kEyoRI','Global\x20cache\x20key\x20\x22','6434645oalmwZ','802389nuVkVB','get','.cache','6hAkiKT','clear','stringify'];a219_0x2eb2=function(){return _0x4e2cf5;};return a219_0x2eb2();}function writeCacheText(_0x28ea9b,_0x526a25){const _0x5a7166=a219_0x1822;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x28ea9b),_0x526a25,_0x5a7166(0x17d));}function clearCache(_0x2492bd){const _0x1bf128=getGlobalCachePath(_0x2492bd);if(existsSync(_0x1bf128))try{unlinkSync(_0x1bf128);}catch{}}function cacheExists(_0x4e8e3a){return existsSync(getGlobalCachePath(_0x4e8e3a));}export function createGlobalCache(_0x499602,_0x2cb9d9){return registerGlobalCacheKey(_0x499602,_0x2cb9d9),{'read':()=>readCacheJson(_0x499602),'write':_0x4e48fd=>writeCacheJson(_0x499602,_0x4e48fd),'clear':()=>clearCache(_0x499602),'exists':()=>cacheExists(_0x499602),'path':()=>getGlobalCachePath(_0x499602)};}export function createGlobalTextCache(_0x394aa4,_0x4638c0){const _0x3c0fb6=a219_0x1822;return registerGlobalCacheKey(_0x394aa4,_0x4638c0),{'read':()=>readCacheText(_0x394aa4)?.[_0x3c0fb6(0x17f)]()||undefined,'write':_0x493d18=>writeCacheText(_0x394aa4,_0x493d18),'clear':()=>clearCache(_0x394aa4),'exists':()=>cacheExists(_0x394aa4),'path':()=>getGlobalCachePath(_0x394aa4)};}export function createProfileCache(_0x6e5e68,_0x40c23a){const _0x1dcc38=_0x89425e=>{const _0x3c9439=a219_0x1822,_0x1da892=_0x89425e||_0x3c9439(0x183);return _0x6e5e68['replace'](_0x3c9439(0x17c),_0x1da892);};return{'read':_0x370072=>{const _0x3b2037=_0x1dcc38(_0x370072);return registerGlobalCacheKey(_0x3b2037,_0x40c23a),readCacheJson(_0x3b2037);},'write':(_0x48f0fa,_0x4155e3)=>{const _0x3db9b4=_0x1dcc38(_0x48f0fa);registerGlobalCacheKey(_0x3db9b4,_0x40c23a),writeCacheJson(_0x3db9b4,_0x4155e3);},'clear':_0x4327f1=>{const _0x32b933=_0x1dcc38(_0x4327f1);clearCache(_0x32b933);},'exists':_0x48baaf=>{const _0x2b2dfc=_0x1dcc38(_0x48baaf);return cacheExists(_0x2b2dfc);},'path':_0x4eb892=>{const _0x23a879=_0x1dcc38(_0x4eb892);return getGlobalCachePath(_0x23a879);}};}function a219_0x1822(_0x3eeec1,_0x112988){_0x3eeec1=_0x3eeec1-0x16e;const _0x2eb229=a219_0x2eb2();let _0x182234=_0x2eb229[_0x3eeec1];return _0x182234;}export function createOptionalProfileCache(_0x3a9634,_0x5078ca,_0x33ca50={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x33ca50,_0x39d569=_0x17e615=>{return _0x17e615?''+_0x3a9634+profileSeparator+_0x17e615+suffix:''+_0x3a9634+suffix;};return{'read':_0x4cc78f=>{const _0x2169c3=_0x39d569(_0x4cc78f);return registerGlobalCacheKey(_0x2169c3,_0x5078ca),readCacheJson(_0x2169c3);},'write':(_0x9ce0b3,_0x45b8b3)=>{const _0x5508ed=_0x39d569(_0x45b8b3);registerGlobalCacheKey(_0x5508ed,_0x5078ca),writeCacheJson(_0x5508ed,_0x9ce0b3);},'clear':_0x1d9c27=>{const _0x27b4b7=_0x39d569(_0x1d9c27);clearCache(_0x27b4b7);},'exists':_0x21843b=>{const _0x23d7e3=_0x39d569(_0x21843b);return cacheExists(_0x23d7e3);},'path':_0x477fd4=>{const _0x5e91d5=_0x39d569(_0x477fd4);return getGlobalCachePath(_0x5e91d5);}};}export function clearGlobalRegistry(){const _0x53849f=a219_0x1822;registry[_0x53849f(0x174)]();}
1
+ function a219_0x5534(_0x4d2e0e,_0x3d384b){_0x4d2e0e=_0x4d2e0e-0x6d;const _0x1fafa1=a219_0x1faf();let _0x553449=_0x1fafa1[_0x4d2e0e];return _0x553449;}(function(_0x407b17,_0x516d83){const _0x1de01e=a219_0x5534,_0x5eec5f=_0x407b17();while(!![]){try{const _0x263470=parseInt(_0x1de01e(0x83))/0x1+-parseInt(_0x1de01e(0x75))/0x2*(-parseInt(_0x1de01e(0x79))/0x3)+parseInt(_0x1de01e(0x7a))/0x4*(parseInt(_0x1de01e(0x71))/0x5)+-parseInt(_0x1de01e(0x80))/0x6*(parseInt(_0x1de01e(0x72))/0x7)+-parseInt(_0x1de01e(0x82))/0x8+parseInt(_0x1de01e(0x7e))/0x9+parseInt(_0x1de01e(0x7f))/0xa*(parseInt(_0x1de01e(0x6d))/0xb);if(_0x263470===_0x516d83)break;else _0x5eec5f['push'](_0x5eec5f['shift']());}catch(_0x245e68){_0x5eec5f['push'](_0x5eec5f['shift']());}}}(a219_0x1faf,0x8e200));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x4955a5=a219_0x5534;return process.env.TDX_CACHE_DIR||join(homedir(),_0x4955a5(0x7b),_0x4955a5(0x73));}const registry=new Map();export function registerGlobalCacheKey(_0x2fbb30,_0x946976){const _0x1f136c=a219_0x5534,_0x420d76=registry['get'](_0x2fbb30);if(_0x420d76&&_0x420d76!==_0x946976)throw new Error(_0x1f136c(0x74)+_0x2fbb30+_0x1f136c(0x6f)+_0x420d76+_0x1f136c(0x78)+_0x946976+'\x22');registry[_0x1f136c(0x7c)](_0x2fbb30,_0x946976);}export function getGlobalCachePath(_0xba6e6a){return join(getGlobalCacheDir(),_0xba6e6a);}function ensureGlobalCacheDir(){const _0x2df7a6=getGlobalCacheDir();!existsSync(_0x2df7a6)&&mkdirSync(_0x2df7a6,{'recursive':!![]});}function readCacheJson(_0x3def80){const _0x381f1d=getGlobalCachePath(_0x3def80);if(!existsSync(_0x381f1d))return undefined;try{const _0x24adab=readFileSync(_0x381f1d,'utf-8');return JSON['parse'](_0x24adab);}catch{return undefined;}}function writeCacheJson(_0x2393e8,_0x1dc7d3){const _0x7de6cd=a219_0x5534;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2393e8),JSON[_0x7de6cd(0x70)](_0x1dc7d3,null,0x2),'utf-8');}function readCacheText(_0x74bbc3){const _0x213d78=a219_0x5534,_0x469938=getGlobalCachePath(_0x74bbc3);if(!existsSync(_0x469938))return undefined;try{return readFileSync(_0x469938,_0x213d78(0x77));}catch{return undefined;}}function writeCacheText(_0x3aaff1,_0x54c0fe){const _0x24fcf7=a219_0x5534;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3aaff1),_0x54c0fe,_0x24fcf7(0x77));}function clearCache(_0x26908e){const _0x51213b=getGlobalCachePath(_0x26908e);if(existsSync(_0x51213b))try{unlinkSync(_0x51213b);}catch{}}function cacheExists(_0x19612a){return existsSync(getGlobalCachePath(_0x19612a));}export function createGlobalCache(_0xcb72bf,_0x279fec){return registerGlobalCacheKey(_0xcb72bf,_0x279fec),{'read':()=>readCacheJson(_0xcb72bf),'write':_0x3ccd9d=>writeCacheJson(_0xcb72bf,_0x3ccd9d),'clear':()=>clearCache(_0xcb72bf),'exists':()=>cacheExists(_0xcb72bf),'path':()=>getGlobalCachePath(_0xcb72bf)};}function a219_0x1faf(){const _0x521452=['stringify','485ypyzZN','35kGYKWe','tdx','Global\x20cache\x20key\x20\x22','11254yvZUpr','clear','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','6ntBsaW','11716QcWHkJ','.cache','set','replace','375633ItpHNU','188120fhXmoS','1033716zrziwb','trim','1852144WuoDIb','1131056gMDDta','121qXVsTp','{profile}','\x22\x20already\x20registered\x20by\x20\x22'];a219_0x1faf=function(){return _0x521452;};return a219_0x1faf();}export function createGlobalTextCache(_0x5d68e8,_0x20091b){const _0x27fad9=a219_0x5534;return registerGlobalCacheKey(_0x5d68e8,_0x20091b),{'read':()=>readCacheText(_0x5d68e8)?.[_0x27fad9(0x81)]()||undefined,'write':_0x3e4d14=>writeCacheText(_0x5d68e8,_0x3e4d14),'clear':()=>clearCache(_0x5d68e8),'exists':()=>cacheExists(_0x5d68e8),'path':()=>getGlobalCachePath(_0x5d68e8)};}export function createProfileCache(_0x16b82,_0x529a65){const _0x25b010=_0x2c7840=>{const _0x1406fc=a219_0x5534,_0x46a7dd=_0x2c7840||'default';return _0x16b82[_0x1406fc(0x7d)](_0x1406fc(0x6e),_0x46a7dd);};return{'read':_0x4ec185=>{const _0x26c31d=_0x25b010(_0x4ec185);return registerGlobalCacheKey(_0x26c31d,_0x529a65),readCacheJson(_0x26c31d);},'write':(_0x17384b,_0x1e6d22)=>{const _0x45d3a4=_0x25b010(_0x17384b);registerGlobalCacheKey(_0x45d3a4,_0x529a65),writeCacheJson(_0x45d3a4,_0x1e6d22);},'clear':_0x3e6378=>{const _0x40a071=_0x25b010(_0x3e6378);clearCache(_0x40a071);},'exists':_0x41ebf0=>{const _0x157a57=_0x25b010(_0x41ebf0);return cacheExists(_0x157a57);},'path':_0x22102b=>{const _0x239b53=_0x25b010(_0x22102b);return getGlobalCachePath(_0x239b53);}};}export function createOptionalProfileCache(_0x42438f,_0x3f18ff,_0x4f3371={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4f3371,_0x49470d=_0x5b515d=>{return _0x5b515d?''+_0x42438f+profileSeparator+_0x5b515d+suffix:''+_0x42438f+suffix;};return{'read':_0x3c8e3e=>{const _0x3e20d9=_0x49470d(_0x3c8e3e);return registerGlobalCacheKey(_0x3e20d9,_0x3f18ff),readCacheJson(_0x3e20d9);},'write':(_0x122490,_0xd49ef6)=>{const _0x1ad3f5=_0x49470d(_0xd49ef6);registerGlobalCacheKey(_0x1ad3f5,_0x3f18ff),writeCacheJson(_0x1ad3f5,_0x122490);},'clear':_0x5683e4=>{const _0x2bdc84=_0x49470d(_0x5683e4);clearCache(_0x2bdc84);},'exists':_0x11eae2=>{const _0x1acc09=_0x49470d(_0x11eae2);return cacheExists(_0x1acc09);},'path':_0x519cc3=>{const _0x25bed4=_0x49470d(_0x519cc3);return getGlobalCachePath(_0x25bed4);}};}export function clearGlobalRegistry(){const _0x3d1703=a219_0x5534;registry[_0x3d1703(0x76)]();}
@@ -1 +1 @@
1
- (function(_0x1e491c,_0x3b10a5){const _0x6ee2d3=a220_0x3fc6,_0x3a1a56=_0x1e491c();while(!![]){try{const _0x48ca0c=parseInt(_0x6ee2d3(0xee))/0x1+parseInt(_0x6ee2d3(0xf4))/0x2+parseInt(_0x6ee2d3(0xf6))/0x3*(-parseInt(_0x6ee2d3(0xf7))/0x4)+parseInt(_0x6ee2d3(0xe8))/0x5+-parseInt(_0x6ee2d3(0xeb))/0x6*(-parseInt(_0x6ee2d3(0xf3))/0x7)+-parseInt(_0x6ee2d3(0xf1))/0x8*(parseInt(_0x6ee2d3(0xf0))/0x9)+-parseInt(_0x6ee2d3(0xfa))/0xa*(parseInt(_0x6ee2d3(0xf9))/0xb);if(_0x48ca0c===_0x3b10a5)break;else _0x3a1a56['push'](_0x3a1a56['shift']());}catch(_0x5bbd38){_0x3a1a56['push'](_0x3a1a56['shift']());}}}(a220_0x404f,0xde819));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x52b9ad,_0x3d4726){const _0x3f4feb=a220_0x3fc6;try{if(_0x3d4726){const _0x57337c=await readFile(_0x52b9ad,_0x3f4feb(0xea));try{return JSON[_0x3f4feb(0xe9)](_0x57337c);}catch(_0x2d1de1){throw new SDKError(ErrorCode[_0x3f4feb(0xe5)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x52b9ad+'\x27:\x20'+(_0x2d1de1 instanceof Error?_0x2d1de1[_0x3f4feb(0xed)]:String(_0x2d1de1)));}}else try{return JSON[_0x3f4feb(0xe9)](_0x52b9ad);}catch(_0x179f2c){throw new SDKError(ErrorCode[_0x3f4feb(0xe5)],'Invalid\x20JSON\x20string:\x20'+(_0x179f2c instanceof Error?_0x179f2c[_0x3f4feb(0xed)]:String(_0x179f2c)));}}catch(_0x513401){if(_0x513401 instanceof SDKError)throw _0x513401;if(_0x513401 instanceof Error&&'code'in _0x513401){const _0x2bf426=_0x513401;if(_0x2bf426[_0x3f4feb(0xf8)]==='ENOENT')throw new SDKError(ErrorCode[_0x3f4feb(0xef)],'File\x20not\x20found:\x20'+_0x52b9ad);else{if(_0x2bf426[_0x3f4feb(0xf8)]===_0x3f4feb(0xe6))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x3f4feb(0xec)+_0x52b9ad);}}throw new SDKError(ErrorCode[_0x3f4feb(0xe7)],_0x3f4feb(0xf2)+(_0x513401 instanceof Error?_0x513401[_0x3f4feb(0xed)]:String(_0x513401)));}}function a220_0x3fc6(_0x5c2dd2,_0x4d82ab){_0x5c2dd2=_0x5c2dd2-0xe5;const _0x404fff=a220_0x404f();let _0x3fc60e=_0x404fff[_0x5c2dd2];return _0x3fc60e;}export async function loadJSONFromOptions(_0x5afbf3,_0x215919){const _0x470201=a220_0x3fc6;if(_0x5afbf3&&_0x215919)throw new SDKError(ErrorCode[_0x470201(0xe5)],_0x470201(0xf5));if(_0x5afbf3)return await loadJSON(_0x5afbf3,![]);if(_0x215919)return await loadJSON(_0x215919,!![]);return undefined;}function a220_0x404f(){const _0x13af92=['Permission\x20denied\x20reading\x20file:\x20','message','1312889sDDQml','NOT_FOUND','13404510dluIfR','8tHEeOd','Failed\x20to\x20load\x20JSON:\x20','280itQteg','1698236dITjLM','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','100293sKwXxf','92dOQJTR','code','793507WIAXAR','200FSzohJ','INVALID_ARGUMENT','EACCES','INTERNAL','6029705zhMgOn','parse','utf-8','186672ephWXQ'];a220_0x404f=function(){return _0x13af92;};return a220_0x404f();}
1
+ (function(_0x2bbb8c,_0x5183ea){const _0x29fff0=a220_0x2ccd,_0x37bdbe=_0x2bbb8c();while(!![]){try{const _0xa274ee=-parseInt(_0x29fff0(0x114))/0x1*(parseInt(_0x29fff0(0x113))/0x2)+-parseInt(_0x29fff0(0x11c))/0x3+parseInt(_0x29fff0(0x10f))/0x4*(parseInt(_0x29fff0(0x11b))/0x5)+parseInt(_0x29fff0(0x11d))/0x6*(-parseInt(_0x29fff0(0x110))/0x7)+-parseInt(_0x29fff0(0x11e))/0x8+parseInt(_0x29fff0(0x11f))/0x9*(-parseInt(_0x29fff0(0x115))/0xa)+parseInt(_0x29fff0(0x116))/0xb;if(_0xa274ee===_0x5183ea)break;else _0x37bdbe['push'](_0x37bdbe['shift']());}catch(_0x1a8641){_0x37bdbe['push'](_0x37bdbe['shift']());}}}(a220_0x33ad,0x18a4d));function a220_0x2ccd(_0x126109,_0x507eb5){_0x126109=_0x126109-0x10a;const _0x33adb4=a220_0x33ad();let _0x2ccd25=_0x33adb4[_0x126109];return _0x2ccd25;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x3fa191,_0x47dbf4){const _0x4b641=a220_0x2ccd;try{if(_0x47dbf4){const _0x2d59e4=await readFile(_0x3fa191,'utf-8');try{return JSON[_0x4b641(0x121)](_0x2d59e4);}catch(_0x3cfdc2){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4b641(0x11a)+_0x3fa191+_0x4b641(0x10d)+(_0x3cfdc2 instanceof Error?_0x3cfdc2[_0x4b641(0x112)]:String(_0x3cfdc2)));}}else try{return JSON[_0x4b641(0x121)](_0x3fa191);}catch(_0x5f10ab){throw new SDKError(ErrorCode[_0x4b641(0x118)],_0x4b641(0x10c)+(_0x5f10ab instanceof Error?_0x5f10ab[_0x4b641(0x112)]:String(_0x5f10ab)));}}catch(_0x5b38a9){if(_0x5b38a9 instanceof SDKError)throw _0x5b38a9;if(_0x5b38a9 instanceof Error&&_0x4b641(0x10a)in _0x5b38a9){const _0x4b5080=_0x5b38a9;if(_0x4b5080[_0x4b641(0x10a)]==='ENOENT')throw new SDKError(ErrorCode[_0x4b641(0x120)],_0x4b641(0x10b)+_0x3fa191);else{if(_0x4b5080[_0x4b641(0x10a)]===_0x4b641(0x117))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x4b641(0x10e)+_0x3fa191);}}throw new SDKError(ErrorCode['INTERNAL'],_0x4b641(0x111)+(_0x5b38a9 instanceof Error?_0x5b38a9['message']:String(_0x5b38a9)));}}export async function loadJSONFromOptions(_0x1c9c5a,_0x1e5bb7){const _0x54ffcc=a220_0x2ccd;if(_0x1c9c5a&&_0x1e5bb7)throw new SDKError(ErrorCode[_0x54ffcc(0x118)],_0x54ffcc(0x119));if(_0x1c9c5a)return await loadJSON(_0x1c9c5a,![]);if(_0x1e5bb7)return await loadJSON(_0x1e5bb7,!![]);return undefined;}function a220_0x33ad(){const _0x38b9f2=['305874XQeuaK','677940QmeBje','1033264NlHpJg','126pnZUaA','NOT_FOUND','parse','code','File\x20not\x20found:\x20','Invalid\x20JSON\x20string:\x20','\x27:\x20','Permission\x20denied\x20reading\x20file:\x20','4FzrpxG','7DaERqX','Failed\x20to\x20load\x20JSON:\x20','message','232922NfpKop','1anNCZz','48280unQfXC','6485853bxuWNZ','EACCES','INVALID_ARGUMENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Invalid\x20JSON\x20in\x20file\x20\x27','197385bgVXnF'];a220_0x33ad=function(){return _0x38b9f2;};return a220_0x33ad();}
@@ -1 +1 @@
1
- const a221_0x5e9198=a221_0x4926;(function(_0x2eb198,_0x151ad5){const _0x1f215b=a221_0x4926,_0x1fe549=_0x2eb198();while(!![]){try{const _0x5a3191=-parseInt(_0x1f215b(0x1a7))/0x1+-parseInt(_0x1f215b(0x1a5))/0x2+-parseInt(_0x1f215b(0x1a1))/0x3+-parseInt(_0x1f215b(0x1a4))/0x4+-parseInt(_0x1f215b(0x1a6))/0x5*(parseInt(_0x1f215b(0x1b1))/0x6)+parseInt(_0x1f215b(0x1a3))/0x7*(parseInt(_0x1f215b(0x1ac))/0x8)+parseInt(_0x1f215b(0x19e))/0x9*(parseInt(_0x1f215b(0x1af))/0xa);if(_0x5a3191===_0x151ad5)break;else _0x1fe549['push'](_0x1fe549['shift']());}catch(_0x38f753){_0x1fe549['push'](_0x1fe549['shift']());}}}(a221_0x3443,0xe104d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a221_0x5e9198(0x1a8),registry=new Map();export function registerCacheKey(_0x1202bb,_0x73b216){const _0x3e4806=a221_0x5e9198,_0xd626a1=registry[_0x3e4806(0x1aa)](_0x1202bb);if(_0xd626a1&&_0xd626a1!==_0x73b216)throw new Error('Cache\x20key\x20\x22'+_0x1202bb+'\x22\x20already\x20registered\x20by\x20\x22'+_0xd626a1+_0x3e4806(0x1a0)+_0x73b216+'\x22');registry['set'](_0x1202bb,_0x73b216);}export function getCacheDir(){const _0x649791=a221_0x5e9198,_0x8039f7=process[_0x649791(0x1a2)](),_0x446b2b=_0x8039f7===parse(_0x8039f7)[_0x649791(0x19f)]?homedir():_0x8039f7;return join(_0x446b2b,LOCAL_CACHE_DIR);}export function getCachePath(_0x1616b6){return join(getCacheDir(),_0x1616b6);}function ensureCacheDir(){const _0x3e9f70=getCacheDir();!existsSync(_0x3e9f70)&&mkdirSync(_0x3e9f70,{'recursive':!![]});}function readCacheJson(_0x51ce6f){const _0x2f17e4=a221_0x5e9198,_0x968511=getCachePath(_0x51ce6f);if(!existsSync(_0x968511))return undefined;try{const _0x5d882c=readFileSync(_0x968511,_0x2f17e4(0x1b0));return JSON[_0x2f17e4(0x1ae)](_0x5d882c);}catch{return undefined;}}function writeCacheJson(_0x4f06c9,_0x41b48c){const _0x2ecf5d=a221_0x5e9198;ensureCacheDir(),writeFileSync(getCachePath(_0x4f06c9),JSON[_0x2ecf5d(0x1a9)](_0x41b48c,null,0x2),'utf-8');}function readCacheText(_0x2593a0){const _0x3ef55e=a221_0x5e9198,_0x53c909=getCachePath(_0x2593a0);if(!existsSync(_0x53c909))return undefined;try{return readFileSync(_0x53c909,_0x3ef55e(0x1b0));}catch{return undefined;}}function a221_0x3443(){const _0x23efb5=['10IGgahQ','679671iAUeiW','.cache/tdx','stringify','get','clear','1205656gvnzSO','trim','parse','17730yJlZnw','utf-8','2195556JxPhWK','17838JaTMqD','root','\x22,\x20cannot\x20register\x20for\x20\x22','531687ohjpRl','cwd','21cnfvoz','3712544UOqMMx','1055284VxhiQy'];a221_0x3443=function(){return _0x23efb5;};return a221_0x3443();}function writeCacheText(_0x5d6604,_0x59b5a4){const _0x3edb35=a221_0x5e9198;ensureCacheDir(),writeFileSync(getCachePath(_0x5d6604),_0x59b5a4,_0x3edb35(0x1b0));}function clearCache(_0x1fcd9f){const _0x6a300a=getCachePath(_0x1fcd9f);if(existsSync(_0x6a300a))try{unlinkSync(_0x6a300a);}catch{}}function a221_0x4926(_0x48d2e7,_0x14bcaf){_0x48d2e7=_0x48d2e7-0x19e;const _0x344376=a221_0x3443();let _0x49266d=_0x344376[_0x48d2e7];return _0x49266d;}function cacheExists(_0x549033){return existsSync(getCachePath(_0x549033));}export function createCache(_0x278314,_0x5de53c){return registerCacheKey(_0x278314,_0x5de53c),{'read':()=>readCacheJson(_0x278314),'write':_0xc889a7=>writeCacheJson(_0x278314,_0xc889a7),'clear':()=>clearCache(_0x278314),'exists':()=>cacheExists(_0x278314),'path':()=>getCachePath(_0x278314)};}export function createTextCache(_0x32ea94,_0x4928c9){const _0x163d16=a221_0x5e9198;return registerCacheKey(_0x32ea94,_0x4928c9),{'read':()=>readCacheText(_0x32ea94)?.[_0x163d16(0x1ad)]()||undefined,'write':_0x4b657d=>writeCacheText(_0x32ea94,_0x4b657d),'clear':()=>clearCache(_0x32ea94),'exists':()=>cacheExists(_0x32ea94),'path':()=>getCachePath(_0x32ea94)};}export function clearRegistry(){const _0x25fcdc=a221_0x5e9198;registry[_0x25fcdc(0x1ab)]();}
1
+ const a221_0x5e7cfd=a221_0x1095;(function(_0x16a9cd,_0x154dd2){const _0x5ea649=a221_0x1095,_0x580db7=_0x16a9cd();while(!![]){try{const _0x3880ee=parseInt(_0x5ea649(0x1d3))/0x1*(parseInt(_0x5ea649(0x1d4))/0x2)+parseInt(_0x5ea649(0x1cf))/0x3+-parseInt(_0x5ea649(0x1d2))/0x4+parseInt(_0x5ea649(0x1de))/0x5*(parseInt(_0x5ea649(0x1d0))/0x6)+parseInt(_0x5ea649(0x1db))/0x7+parseInt(_0x5ea649(0x1e4))/0x8*(-parseInt(_0x5ea649(0x1da))/0x9)+-parseInt(_0x5ea649(0x1d6))/0xa*(parseInt(_0x5ea649(0x1dd))/0xb);if(_0x3880ee===_0x154dd2)break;else _0x580db7['push'](_0x580db7['shift']());}catch(_0x325724){_0x580db7['push'](_0x580db7['shift']());}}}(a221_0x3271,0x1c2ee));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a221_0x5e7cfd(0x1d7),registry=new Map();export function registerCacheKey(_0x20cb55,_0x4b05f6){const _0x35aeb0=a221_0x5e7cfd,_0x520ed0=registry[_0x35aeb0(0x1e0)](_0x20cb55);if(_0x520ed0&&_0x520ed0!==_0x4b05f6)throw new Error(_0x35aeb0(0x1d8)+_0x20cb55+'\x22\x20already\x20registered\x20by\x20\x22'+_0x520ed0+_0x35aeb0(0x1e1)+_0x4b05f6+'\x22');registry[_0x35aeb0(0x1ce)](_0x20cb55,_0x4b05f6);}function a221_0x1095(_0x4f537c,_0x2515e9){_0x4f537c=_0x4f537c-0x1ce;const _0x327140=a221_0x3271();let _0x10958e=_0x327140[_0x4f537c];return _0x10958e;}export function getCacheDir(){const _0x5e97ec=a221_0x5e7cfd,_0x46bd94=process[_0x5e97ec(0x1d9)](),_0x23edd1=_0x46bd94===parse(_0x46bd94)[_0x5e97ec(0x1e2)]?homedir():_0x46bd94;return join(_0x23edd1,LOCAL_CACHE_DIR);}export function getCachePath(_0x56043a){return join(getCacheDir(),_0x56043a);}function ensureCacheDir(){const _0x1b9b8e=getCacheDir();!existsSync(_0x1b9b8e)&&mkdirSync(_0x1b9b8e,{'recursive':!![]});}function readCacheJson(_0x384ce9){const _0x59a209=a221_0x5e7cfd,_0x29f6d8=getCachePath(_0x384ce9);if(!existsSync(_0x29f6d8))return undefined;try{const _0x50248f=readFileSync(_0x29f6d8,'utf-8');return JSON[_0x59a209(0x1dc)](_0x50248f);}catch{return undefined;}}function writeCacheJson(_0xee228b,_0x19e0f7){const _0x49166d=a221_0x5e7cfd;ensureCacheDir(),writeFileSync(getCachePath(_0xee228b),JSON[_0x49166d(0x1df)](_0x19e0f7,null,0x2),_0x49166d(0x1e3));}function readCacheText(_0x1e70af){const _0x556aff=a221_0x5e7cfd,_0x23b10e=getCachePath(_0x1e70af);if(!existsSync(_0x23b10e))return undefined;try{return readFileSync(_0x23b10e,_0x556aff(0x1e3));}catch{return undefined;}}function writeCacheText(_0x478944,_0x1762e3){ensureCacheDir(),writeFileSync(getCachePath(_0x478944),_0x1762e3,'utf-8');}function clearCache(_0x591973){const _0x7bba0e=getCachePath(_0x591973);if(existsSync(_0x7bba0e))try{unlinkSync(_0x7bba0e);}catch{}}function cacheExists(_0x329cf5){return existsSync(getCachePath(_0x329cf5));}function a221_0x3271(){const _0x78a2=['\x22,\x20cannot\x20register\x20for\x20\x22','root','utf-8','80NZqRso','set','689682jMydSR','1169490HIAdnM','trim','256536jGfCXS','3uYqFTj','68510spztMU','clear','1920220xGFrgH','.cache/tdx','Cache\x20key\x20\x22','cwd','183987zKuwLh','339150FrovkD','parse','11YrrhRu','5GjXUJd','stringify','get'];a221_0x3271=function(){return _0x78a2;};return a221_0x3271();}export function createCache(_0x290ab8,_0x516a31){return registerCacheKey(_0x290ab8,_0x516a31),{'read':()=>readCacheJson(_0x290ab8),'write':_0x2d6a9f=>writeCacheJson(_0x290ab8,_0x2d6a9f),'clear':()=>clearCache(_0x290ab8),'exists':()=>cacheExists(_0x290ab8),'path':()=>getCachePath(_0x290ab8)};}export function createTextCache(_0x338dab,_0x47fb7d){const _0x3bacaa=a221_0x5e7cfd;return registerCacheKey(_0x338dab,_0x47fb7d),{'read':()=>readCacheText(_0x338dab)?.[_0x3bacaa(0x1d1)]()||undefined,'write':_0x304d6d=>writeCacheText(_0x338dab,_0x304d6d),'clear':()=>clearCache(_0x338dab),'exists':()=>cacheExists(_0x338dab),'path':()=>getCachePath(_0x338dab)};}export function clearRegistry(){const _0x3b9aff=a221_0x5e7cfd;registry[_0x3b9aff(0x1d5)]();}
@@ -1 +1 @@
1
- const a222_0x42548c=a222_0x71b9;(function(_0x32206f,_0xa9181d){const _0x4630d4=a222_0x71b9,_0x19b941=_0x32206f();while(!![]){try{const _0x5aea92=parseInt(_0x4630d4(0x209))/0x1*(parseInt(_0x4630d4(0x1f0))/0x2)+parseInt(_0x4630d4(0x207))/0x3*(parseInt(_0x4630d4(0x1f4))/0x4)+parseInt(_0x4630d4(0x204))/0x5*(parseInt(_0x4630d4(0x1f8))/0x6)+parseInt(_0x4630d4(0x1ed))/0x7+parseInt(_0x4630d4(0x1f3))/0x8*(parseInt(_0x4630d4(0x205))/0x9)+-parseInt(_0x4630d4(0x202))/0xa*(parseInt(_0x4630d4(0x1f7))/0xb)+-parseInt(_0x4630d4(0x1ec))/0xc;if(_0x5aea92===_0xa9181d)break;else _0x19b941['push'](_0x19b941['shift']());}catch(_0x40cf94){_0x19b941['push'](_0x19b941['shift']());}}}(a222_0x26ea,0xd0ea9));import a222_0x57ae90 from'chalk';function a222_0x71b9(_0x5e68ac,_0x27f92a){_0x5e68ac=_0x5e68ac-0x1ec;const _0x26eac4=a222_0x26ea();let _0x71b93a=_0x26eac4[_0x5e68ac];return _0x71b93a;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a222_0x26ea(){const _0x58cd8d=['chalk','gray','6kFMYKU','INFO','message','160120JpyrDs','16RlYRQl','Chalk','colors','11nKEOcT','12nkgcda','format','WARN','ERROR','red','yellow','timestamp','green','cyan','level','12339700qutTFu','colorLevel','4179900NmPAMK','225ZqvCIn','TRACE','595191DVnVvD','blue','451131PFjJBU','DEBUG','component','dim','default','27028236zccDRY','159096oTHKxx'];a222_0x26ea=function(){return _0x58cd8d;};return a222_0x26ea();}const chalkModule=a222_0x57ae90,ChalkClass=chalkModule[a222_0x42548c(0x1f5)]||chalkModule[a222_0x42548c(0x20d)]?.[a222_0x42548c(0x1f5)];export class DefaultLogFormatter{['colors'];[a222_0x42548c(0x1ee)];constructor(_0x49acba={}){const _0x32031b=a222_0x42548c;this[_0x32031b(0x1f6)]=_0x49acba['colors']??![],this[_0x32031b(0x1ee)]=_0x49acba[_0x32031b(0x1f6)]&&ChalkClass?new ChalkClass({'level':0x3}):a222_0x57ae90;}[a222_0x42548c(0x1f9)](_0x1a81fe){const _0x4fa527=a222_0x42548c,_0x116e90=formatTimestamp(_0x1a81fe[_0x4fa527(0x1fe)]),_0x11c3e8=logLevelToString(_0x1a81fe[_0x4fa527(0x201)]);if(!this[_0x4fa527(0x1f6)])return _0x116e90+'\x20['+_0x11c3e8+']\x20['+_0x1a81fe[_0x4fa527(0x20b)]+']\x20'+_0x1a81fe[_0x4fa527(0x1f2)];const _0x50ca72=this[_0x4fa527(0x1ee)][_0x4fa527(0x20c)](_0x116e90),_0x1fc023=this['colorLevel'](_0x11c3e8,_0x1a81fe[_0x4fa527(0x201)]),_0x5d4008=this[_0x4fa527(0x1ee)][_0x4fa527(0x208)]('['+_0x1a81fe[_0x4fa527(0x20b)]+']');return _0x50ca72+'\x20'+_0x1fc023+'\x20'+_0x5d4008+'\x20'+_0x1a81fe['message'];}[a222_0x42548c(0x203)](_0x3487a8,_0x147dc6){const _0x19137d=a222_0x42548c;switch(_0x147dc6){case LogLevel[_0x19137d(0x206)]:return this[_0x19137d(0x1ee)][_0x19137d(0x1ef)]('['+_0x3487a8+']');case LogLevel[_0x19137d(0x20a)]:return this['chalk'][_0x19137d(0x1ff)]('['+_0x3487a8+']');case LogLevel[_0x19137d(0x1f1)]:return this[_0x19137d(0x1ee)][_0x19137d(0x200)]('['+_0x3487a8+']');case LogLevel[_0x19137d(0x1fa)]:return this['chalk'][_0x19137d(0x1fd)]('['+_0x3487a8+']');case LogLevel[_0x19137d(0x1fb)]:return this[_0x19137d(0x1ee)][_0x19137d(0x1fc)]('['+_0x3487a8+']');default:return'['+_0x3487a8+']';}}}
1
+ function a222_0x353a(){const _0x1ad033=['blue','177423UESLJV','dim','Chalk','green','WARN','TRACE',']\x20[','INFO','4235139edQCKh','ERROR','gray','colors','2065XtcREW','2496pxozuz','17401681FDKeEJ','component','10KzdQJx','32PCuvnO','message','cyan','red','380WZuDuo','800978mQxYYo','yellow','format','level','1878gTXdaj','302308FdQXdy','chalk','colorLevel'];a222_0x353a=function(){return _0x1ad033;};return a222_0x353a();}function a222_0x1d56(_0x275d93,_0x1f7cb3){_0x275d93=_0x275d93-0x139;const _0x353ac8=a222_0x353a();let _0x1d567f=_0x353ac8[_0x275d93];return _0x1d567f;}const a222_0x2cac88=a222_0x1d56;(function(_0x37d3a0,_0x167be6){const _0x244e8d=a222_0x1d56,_0x432bfd=_0x37d3a0();while(!![]){try{const _0xbd1a16=-parseInt(_0x244e8d(0x13b))/0x1+-parseInt(_0x244e8d(0x140))/0x2+parseInt(_0x244e8d(0x144))/0x3*(-parseInt(_0x244e8d(0x155))/0x4)+-parseInt(_0x244e8d(0x13a))/0x5*(-parseInt(_0x244e8d(0x13f))/0x6)+-parseInt(_0x244e8d(0x150))/0x7*(-parseInt(_0x244e8d(0x151))/0x8)+parseInt(_0x244e8d(0x14c))/0x9*(parseInt(_0x244e8d(0x154))/0xa)+parseInt(_0x244e8d(0x152))/0xb;if(_0xbd1a16===_0x167be6)break;else _0x432bfd['push'](_0x432bfd['shift']());}catch(_0x369d9e){_0x432bfd['push'](_0x432bfd['shift']());}}}(a222_0x353a,0xb56c6));import a222_0x2806ec from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a222_0x2806ec,ChalkClass=chalkModule[a222_0x2cac88(0x146)]||chalkModule['default']?.[a222_0x2cac88(0x146)];export class DefaultLogFormatter{[a222_0x2cac88(0x14f)];[a222_0x2cac88(0x141)];constructor(_0x175c1c={}){const _0xaca5d8=a222_0x2cac88;this[_0xaca5d8(0x14f)]=_0x175c1c[_0xaca5d8(0x14f)]??![],this[_0xaca5d8(0x141)]=_0x175c1c[_0xaca5d8(0x14f)]&&ChalkClass?new ChalkClass({'level':0x3}):a222_0x2806ec;}[a222_0x2cac88(0x13d)](_0x5bae5d){const _0x38e30c=a222_0x2cac88,_0x387b7e=formatTimestamp(_0x5bae5d['timestamp']),_0x16d318=logLevelToString(_0x5bae5d[_0x38e30c(0x13e)]);if(!this[_0x38e30c(0x14f)])return _0x387b7e+'\x20['+_0x16d318+_0x38e30c(0x14a)+_0x5bae5d[_0x38e30c(0x153)]+']\x20'+_0x5bae5d[_0x38e30c(0x156)];const _0x37e0b5=this[_0x38e30c(0x141)][_0x38e30c(0x145)](_0x387b7e),_0x1f0b5e=this[_0x38e30c(0x142)](_0x16d318,_0x5bae5d[_0x38e30c(0x13e)]),_0x929854=this[_0x38e30c(0x141)][_0x38e30c(0x143)]('['+_0x5bae5d['component']+']');return _0x37e0b5+'\x20'+_0x1f0b5e+'\x20'+_0x929854+'\x20'+_0x5bae5d[_0x38e30c(0x156)];}['colorLevel'](_0x40174b,_0x32244d){const _0x46ae41=a222_0x2cac88;switch(_0x32244d){case LogLevel[_0x46ae41(0x149)]:return this[_0x46ae41(0x141)][_0x46ae41(0x14e)]('['+_0x40174b+']');case LogLevel['DEBUG']:return this[_0x46ae41(0x141)][_0x46ae41(0x147)]('['+_0x40174b+']');case LogLevel[_0x46ae41(0x14b)]:return this['chalk'][_0x46ae41(0x157)]('['+_0x40174b+']');case LogLevel[_0x46ae41(0x148)]:return this['chalk'][_0x46ae41(0x13c)]('['+_0x40174b+']');case LogLevel[_0x46ae41(0x14d)]:return this[_0x46ae41(0x141)][_0x46ae41(0x139)]('['+_0x40174b+']');default:return'['+_0x40174b+']';}}}
@@ -1 +1 @@
1
- function a223_0x5c6e(){var _0x31e024=['4238300DIoPLq','4048MwYxFm','224EkDqRh','5EAfWoR','77kTWiIk','267035xTDDBI','1923256zLYmxJ','44028FmZOOb','44094MKfxVB','3108TejcAj','1773HVezmu','1650EiyEuB'];a223_0x5c6e=function(){return _0x31e024;};return a223_0x5c6e();}(function(_0x444757,_0x66c2c2){var _0x32621a=a223_0x499a,_0x4d7e04=_0x444757();while(!![]){try{var _0x341fc9=parseInt(_0x32621a(0xe4))/0x1+parseInt(_0x32621a(0xde))/0x2*(parseInt(_0x32621a(0xdd))/0x3)+-parseInt(_0x32621a(0xe5))/0x4*(parseInt(_0x32621a(0xe2))/0x5)+-parseInt(_0x32621a(0xdb))/0x6*(parseInt(_0x32621a(0xe3))/0x7)+-parseInt(_0x32621a(0xe1))/0x8*(parseInt(_0x32621a(0xe6))/0x9)+parseInt(_0x32621a(0xdf))/0xa+parseInt(_0x32621a(0xe0))/0xb*(-parseInt(_0x32621a(0xdc))/0xc);if(_0x341fc9===_0x66c2c2)break;else _0x4d7e04['push'](_0x4d7e04['shift']());}catch(_0x11a416){_0x4d7e04['push'](_0x4d7e04['shift']());}}}(a223_0x5c6e,0x5ddf3));function a223_0x499a(_0x1560a9,_0x2808ae){_0x1560a9=_0x1560a9-0xdb;var _0x5c6e2d=a223_0x5c6e();var _0x499aaf=_0x5c6e2d[_0x1560a9];return _0x499aaf;}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0xc98944,_0x4510e3){var _0x3d113c=a223_0x3c28,_0x15c282=_0xc98944();while(!![]){try{var _0x364aa0=parseInt(_0x3d113c(0x7f))/0x1+-parseInt(_0x3d113c(0x85))/0x2+parseInt(_0x3d113c(0x7e))/0x3+parseInt(_0x3d113c(0x80))/0x4*(parseInt(_0x3d113c(0x82))/0x5)+parseInt(_0x3d113c(0x83))/0x6+parseInt(_0x3d113c(0x81))/0x7+-parseInt(_0x3d113c(0x84))/0x8;if(_0x364aa0===_0x4510e3)break;else _0x15c282['push'](_0x15c282['shift']());}catch(_0x18935f){_0x15c282['push'](_0x15c282['shift']());}}}(a223_0x4012,0x27e37));function a223_0x3c28(_0x580c91,_0x3be9e4){_0x580c91=_0x580c91-0x7e;var _0x401253=a223_0x4012();var _0x3c288a=_0x401253[_0x580c91];return _0x3c288a;}function a223_0x4012(){var _0x28196e=['466249raukVW','205115jHxcPg','113748lpmUmF','2690944PiLNKT','434916AgsKTc','138972ydhnKL','298159RgthOo','28SfDdHf'];a223_0x4012=function(){return _0x28196e;};return a223_0x4012();}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a224_0x1b97b7=a224_0x3eee;(function(_0x22f135,_0x15fa41){const _0x395216=a224_0x3eee,_0x1c301b=_0x22f135();while(!![]){try{const _0x11884f=parseInt(_0x395216(0x96))/0x1*(parseInt(_0x395216(0x97))/0x2)+-parseInt(_0x395216(0x91))/0x3*(-parseInt(_0x395216(0xa1))/0x4)+-parseInt(_0x395216(0x9e))/0x5+parseInt(_0x395216(0x92))/0x6+-parseInt(_0x395216(0xa0))/0x7+parseInt(_0x395216(0xa2))/0x8+-parseInt(_0x395216(0x9d))/0x9*(parseInt(_0x395216(0x9a))/0xa);if(_0x11884f===_0x15fa41)break;else _0x1c301b['push'](_0x1c301b['shift']());}catch(_0x4ba6ce){_0x1c301b['push'](_0x1c301b['shift']());}}}(a224_0x3f13,0xcbd79));import{LogLevel as a224_0xdd49f6}from'../types.js';function a224_0x3f13(){const _0x47aebc=['4980095iJKjju','level','7315455HEORvk','124noCcHH','2084440qETkGl','87219KTPRGq','5630934tjsYVB','useStderr','format','error','1320479KrNYQm','2drfprM','minLevel','formatter','83810duEugC','log','WARN','585wTbwAx'];a224_0x3f13=function(){return _0x47aebc;};return a224_0x3f13();}import{DefaultLogFormatter}from'../formatters/index.js';function a224_0x3eee(_0x2ad2c0,_0x23bac0){_0x2ad2c0=_0x2ad2c0-0x91;const _0x3f1366=a224_0x3f13();let _0x3eeebb=_0x3f1366[_0x2ad2c0];return _0x3eeebb;}export class ConsoleHandler{[a224_0x1b97b7(0x98)];[a224_0x1b97b7(0x93)];['formatter'];constructor(_0x1cfce2={}){const _0x943aeb=a224_0x1b97b7;this['minLevel']=_0x1cfce2[_0x943aeb(0x98)]??a224_0xdd49f6[_0x943aeb(0x9c)],this['useStderr']=_0x1cfce2[_0x943aeb(0x93)]??!![],this[_0x943aeb(0x99)]=new DefaultLogFormatter({'colors':_0x1cfce2['colors']??!![]});}['handle'](_0xff6f6d){const _0x3b2e7b=a224_0x1b97b7;if(_0xff6f6d[_0x3b2e7b(0x9f)]<this['minLevel'])return;const _0x32ebfb=this[_0x3b2e7b(0x99)][_0x3b2e7b(0x94)](_0xff6f6d);this['useStderr']&&_0xff6f6d[_0x3b2e7b(0x9f)]>=a224_0xdd49f6[_0x3b2e7b(0x9c)]?console[_0x3b2e7b(0x95)](_0x32ebfb):console[_0x3b2e7b(0x9b)](_0x32ebfb);}}
1
+ const a224_0x4349a3=a224_0x5cb4;(function(_0x15373d,_0x6f610a){const _0x204d92=a224_0x5cb4,_0xa17f47=_0x15373d();while(!![]){try{const _0x4eb65a=-parseInt(_0x204d92(0x1a1))/0x1+parseInt(_0x204d92(0x193))/0x2*(parseInt(_0x204d92(0x19a))/0x3)+-parseInt(_0x204d92(0x194))/0x4+-parseInt(_0x204d92(0x190))/0x5+-parseInt(_0x204d92(0x196))/0x6*(-parseInt(_0x204d92(0x191))/0x7)+parseInt(_0x204d92(0x198))/0x8*(-parseInt(_0x204d92(0x19c))/0x9)+parseInt(_0x204d92(0x18f))/0xa*(parseInt(_0x204d92(0x19f))/0xb);if(_0x4eb65a===_0x6f610a)break;else _0xa17f47['push'](_0xa17f47['shift']());}catch(_0x1042da){_0xa17f47['push'](_0xa17f47['shift']());}}}(a224_0x38c4,0xace83));function a224_0x5cb4(_0x267384,_0x4a12b4){_0x267384=_0x267384-0x18f;const _0x38c480=a224_0x38c4();let _0x5cb44e=_0x38c480[_0x267384];return _0x5cb44e;}import{LogLevel as a224_0x48c5b1}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a224_0x38c4(){const _0x38a1ba=['useStderr','8gmgwAD','4952724XHDrcv','format','60RMgZSy','log','413544KjHyCH','handle','279213vUfBcA','minLevel','72ienTTZ','colors','formatter','11MBOVcz','WARN','833055ZhLVmN','level','29726180LvPypv','2854025OuBxYL','293237xEAWhI'];a224_0x38c4=function(){return _0x38a1ba;};return a224_0x38c4();}export class ConsoleHandler{[a224_0x4349a3(0x19b)];[a224_0x4349a3(0x192)];[a224_0x4349a3(0x19e)];constructor(_0x2ffe41={}){const _0x3acabe=a224_0x4349a3;this[_0x3acabe(0x19b)]=_0x2ffe41[_0x3acabe(0x19b)]??a224_0x48c5b1[_0x3acabe(0x1a0)],this['useStderr']=_0x2ffe41[_0x3acabe(0x192)]??!![],this[_0x3acabe(0x19e)]=new DefaultLogFormatter({'colors':_0x2ffe41[_0x3acabe(0x19d)]??!![]});}[a224_0x4349a3(0x199)](_0x1e94b0){const _0x1df795=a224_0x4349a3;if(_0x1e94b0[_0x1df795(0x1a2)]<this[_0x1df795(0x19b)])return;const _0x2a2cfd=this[_0x1df795(0x19e)][_0x1df795(0x195)](_0x1e94b0);this[_0x1df795(0x192)]&&_0x1e94b0[_0x1df795(0x1a2)]>=a224_0x48c5b1[_0x1df795(0x1a0)]?console['error'](_0x2a2cfd):console[_0x1df795(0x197)](_0x2a2cfd);}}
@@ -1 +1 @@
1
- const a225_0x387099=a225_0x1402;(function(_0x152341,_0x2dde15){const _0x58b10b=a225_0x1402,_0x1ddee9=_0x152341();while(!![]){try{const _0x1266fa=-parseInt(_0x58b10b(0xce))/0x1+parseInt(_0x58b10b(0xc2))/0x2+-parseInt(_0x58b10b(0xc7))/0x3+parseInt(_0x58b10b(0xcc))/0x4+parseInt(_0x58b10b(0xc8))/0x5+parseInt(_0x58b10b(0xc9))/0x6*(-parseInt(_0x58b10b(0xe1))/0x7)+parseInt(_0x58b10b(0xe0))/0x8;if(_0x1266fa===_0x2dde15)break;else _0x1ddee9['push'](_0x1ddee9['shift']());}catch(_0x1346e2){_0x1ddee9['push'](_0x1ddee9['shift']());}}}(a225_0x1c9b,0x93f01));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a225_0x1c9b(){const _0x2f965a=['replace','4626120oPvgdu','210aNkHEd','logBaseName','write','error','split','filter','2046232lYViKm','rotateOldLogs','.gz','toISOString','rotate','102792ZIcgLX','1529765NPjTQP','80562ZdvLIE','tdx.log','includes','564652gbcpVH','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','1005470JIZgMe','mtime','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','end','logStream','logFileName','handle','close','logPath','\x5c$&','Warning:\x20Error\x20writing\x20to\x20','format','logDir','.log','logs','getLogPath','message'];a225_0x1c9b=function(){return _0x2f965a;};return a225_0x1c9b();}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a225_0x1402(_0x3bfed0,_0x3d594b){_0x3bfed0=_0x3bfed0-0xbe;const _0x1c9bba=a225_0x1c9b();let _0x14025e=_0x1c9bba[_0x3bfed0];return _0x14025e;}export class FileHandler{[a225_0x387099(0xd6)];[a225_0x387099(0xda)];['logFileName'];[a225_0x387099(0xe2)];[a225_0x387099(0xd2)]=null;[a225_0x387099(0xc6)];constructor(_0xd0c76b={}){const _0x1f2b6c=a225_0x387099;this[_0x1f2b6c(0xd6)]=_0xd0c76b['filePath']??join(getGlobalCacheDir(),_0x1f2b6c(0xdc),_0x1f2b6c(0xca)),this[_0x1f2b6c(0xda)]=dirname(this[_0x1f2b6c(0xd6)]),this['logFileName']=basename(this['logPath']),this[_0x1f2b6c(0xe2)]=this[_0x1f2b6c(0xd3)][_0x1f2b6c(0xdf)](/\.log$/,''),this[_0x1f2b6c(0xc6)]=_0xd0c76b[_0x1f2b6c(0xc6)]??!![];}async['init'](){const _0x9d27f=a225_0x387099;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x9d27f(0xc6)]&&await this['rotateOldLogs'](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x9d27f(0xd2)]['on'](_0x9d27f(0xbf),_0xf03225=>{const _0x3c9cf9=_0x9d27f;console[_0x3c9cf9(0xbf)](_0x3c9cf9(0xd8)+this['logFileName']+':',_0xf03225[_0x3c9cf9(0xde)]);});}catch(_0x3fdf74){console[_0x9d27f(0xbf)](_0x9d27f(0xd0),_0x3fdf74);}}[a225_0x387099(0xd4)](_0xa8d379){const _0x359920=a225_0x387099;if(!this['logStream'])return;const _0x40f111=Logger[_0x359920(0xd9)](_0xa8d379);this[_0x359920(0xd2)][_0x359920(0xbe)](_0x40f111+'\x0a');}async[a225_0x387099(0xd5)](){return new Promise(_0x3e1250=>{const _0x252355=a225_0x1402;this[_0x252355(0xd2)]?this['logStream'][_0x252355(0xd1)](()=>{const _0x498a6f=_0x252355;this[_0x498a6f(0xd2)]=null,_0x3e1250();}):_0x3e1250();});}[a225_0x387099(0xdd)](){return this['logPath'];}async[a225_0x387099(0xc3)](){const _0x1d3d53=a225_0x387099;try{const _0xc2610=await readdir(this[_0x1d3d53(0xda)]),_0x55c18a=new Date()['toISOString']()[_0x1d3d53(0xc0)]('T')[0x0];if(_0xc2610[_0x1d3d53(0xcb)](this[_0x1d3d53(0xd3)])){const _0x12af31=join(this['logDir'],this[_0x1d3d53(0xd3)]),_0x588c0a=await stat(_0x12af31),_0x1fe9b4=new Date(_0x588c0a[_0x1d3d53(0xcf)])[_0x1d3d53(0xc5)]()[_0x1d3d53(0xc0)]('T')[0x0];if(_0x1fe9b4<_0x55c18a){const _0x53765d=join(this[_0x1d3d53(0xda)],this[_0x1d3d53(0xe2)]+'-'+_0x1fe9b4+_0x1d3d53(0xdb));await rename(_0x12af31,_0x53765d);}}const _0x2c0af1=await readdir(this[_0x1d3d53(0xda)]),_0x3fa5b8=this['logBaseName'][_0x1d3d53(0xdf)](/[.*+?^${}()|[\]\\]/g,_0x1d3d53(0xd7)),_0x3a8a87=new RegExp('^'+_0x3fa5b8+_0x1d3d53(0xcd)),_0xb751f7=_0x2c0af1[_0x1d3d53(0xc1)](_0x2ee79f=>_0x3a8a87['test'](_0x2ee79f));for(const _0x3a21c8 of _0xb751f7){const _0x45600c=join(this[_0x1d3d53(0xda)],_0x3a21c8),_0x1eda12=join(this[_0x1d3d53(0xda)],_0x3a21c8+_0x1d3d53(0xc4));try{await pipeline(createReadStream(_0x45600c),createGzip(),createWriteStream(_0x1eda12)),await unlink(_0x45600c);}catch(_0x526ca7){console[_0x1d3d53(0xbf)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x3a21c8+':',_0x526ca7);}}}catch{}}}
1
+ const a225_0x5a92af=a225_0x22de;function a225_0x22de(_0x49cccb,_0x5b7ffe){_0x49cccb=_0x49cccb-0x84;const _0x522a87=a225_0x522a();let _0x22de40=_0x522a87[_0x49cccb];return _0x22de40;}(function(_0x397e55,_0xfef519){const _0x5bf8cd=a225_0x22de,_0x36224e=_0x397e55();while(!![]){try{const _0x132cca=parseInt(_0x5bf8cd(0x8e))/0x1*(parseInt(_0x5bf8cd(0x86))/0x2)+parseInt(_0x5bf8cd(0x8b))/0x3*(-parseInt(_0x5bf8cd(0xa0))/0x4)+parseInt(_0x5bf8cd(0xa8))/0x5*(parseInt(_0x5bf8cd(0x88))/0x6)+-parseInt(_0x5bf8cd(0x91))/0x7*(-parseInt(_0x5bf8cd(0x90))/0x8)+-parseInt(_0x5bf8cd(0x87))/0x9+-parseInt(_0x5bf8cd(0x93))/0xa+parseInt(_0x5bf8cd(0xa5))/0xb;if(_0x132cca===_0xfef519)break;else _0x36224e['push'](_0x36224e['shift']());}catch(_0x371e0b){_0x36224e['push'](_0x36224e['shift']());}}}(a225_0x522a,0xbfa20));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a225_0x522a(){const _0xf3c62f=['toISOString','16lCvinY','logDir','error','handle','message','2861485gqqjqx','logs','tdx.log','5418545lvEYyp','logStream','includes','2HDbuto','11547738WwszaT','6ISUkmP','filePath','filter','67038JZRxTu','Warning:\x20Failed\x20to\x20compress\x20','rotate','78464rXCLTx','end','8IvfNNR','7288568jZBRGs','logPath','3061380ZsutYa','logBaseName','rotateOldLogs','Warning:\x20Error\x20writing\x20to\x20','init','logFileName','mtime','.log','.gz','write','\x5c$&','split'];a225_0x522a=function(){return _0xf3c62f;};return a225_0x522a();}import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a225_0x5a92af(0x92)];[a225_0x5a92af(0xa1)];[a225_0x5a92af(0x98)];[a225_0x5a92af(0x94)];[a225_0x5a92af(0x84)]=null;[a225_0x5a92af(0x8d)];constructor(_0x43235f={}){const _0x23da9e=a225_0x5a92af;this[_0x23da9e(0x92)]=_0x43235f[_0x23da9e(0x89)]??join(getGlobalCacheDir(),_0x23da9e(0xa6),_0x23da9e(0xa7)),this['logDir']=dirname(this[_0x23da9e(0x92)]),this[_0x23da9e(0x98)]=basename(this[_0x23da9e(0x92)]),this[_0x23da9e(0x94)]=this[_0x23da9e(0x98)]['replace'](/\.log$/,''),this[_0x23da9e(0x8d)]=_0x43235f[_0x23da9e(0x8d)]??!![];}async[a225_0x5a92af(0x97)](){const _0x3b2640=a225_0x5a92af;try{await mkdir(this[_0x3b2640(0xa1)],{'recursive':!![]}),this[_0x3b2640(0x8d)]&&await this['rotateOldLogs'](),this['logStream']=createWriteStream(this[_0x3b2640(0x92)],{'flags':'a'}),this['logStream']['on'](_0x3b2640(0xa2),_0x4876da=>{const _0x2d38ab=_0x3b2640;console[_0x2d38ab(0xa2)](_0x2d38ab(0x96)+this[_0x2d38ab(0x98)]+':',_0x4876da[_0x2d38ab(0xa4)]);});}catch(_0xa30ac2){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0xa30ac2);}}[a225_0x5a92af(0xa3)](_0x1c64be){const _0x19ee80=a225_0x5a92af;if(!this[_0x19ee80(0x84)])return;const _0x1d6a5f=Logger['format'](_0x1c64be);this['logStream'][_0x19ee80(0x9c)](_0x1d6a5f+'\x0a');}async['close'](){return new Promise(_0x57dff9=>{const _0x3f2e1d=a225_0x22de;this[_0x3f2e1d(0x84)]?this['logStream'][_0x3f2e1d(0x8f)](()=>{const _0x1421b3=_0x3f2e1d;this[_0x1421b3(0x84)]=null,_0x57dff9();}):_0x57dff9();});}['getLogPath'](){const _0x1e6652=a225_0x5a92af;return this[_0x1e6652(0x92)];}async[a225_0x5a92af(0x95)](){const _0x11a081=a225_0x5a92af;try{const _0x25b48f=await readdir(this['logDir']),_0x4377cb=new Date()[_0x11a081(0x9f)]()[_0x11a081(0x9e)]('T')[0x0];if(_0x25b48f[_0x11a081(0x85)](this['logFileName'])){const _0x5f46e3=join(this[_0x11a081(0xa1)],this[_0x11a081(0x98)]),_0xbcb9fb=await stat(_0x5f46e3),_0x480ab2=new Date(_0xbcb9fb[_0x11a081(0x99)])[_0x11a081(0x9f)]()[_0x11a081(0x9e)]('T')[0x0];if(_0x480ab2<_0x4377cb){const _0x1a31a2=join(this[_0x11a081(0xa1)],this[_0x11a081(0x94)]+'-'+_0x480ab2+_0x11a081(0x9a));await rename(_0x5f46e3,_0x1a31a2);}}const _0x34fe3b=await readdir(this['logDir']),_0x33cc51=this[_0x11a081(0x94)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x11a081(0x9d)),_0x2444c0=new RegExp('^'+_0x33cc51+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x202853=_0x34fe3b[_0x11a081(0x8a)](_0x5ddb7c=>_0x2444c0['test'](_0x5ddb7c));for(const _0x27860d of _0x202853){const _0x3fe99c=join(this[_0x11a081(0xa1)],_0x27860d),_0x3ef85a=join(this[_0x11a081(0xa1)],_0x27860d+_0x11a081(0x9b));try{await pipeline(createReadStream(_0x3fe99c),createGzip(),createWriteStream(_0x3ef85a)),await unlink(_0x3fe99c);}catch(_0x1900f6){console[_0x11a081(0xa2)](_0x11a081(0x8c)+_0x27860d+':',_0x1900f6);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0xc958d6,_0x4bbc52){var _0x345220=a226_0x2067,_0x3fde08=_0xc958d6();while(!![]){try{var _0x4919d6=-parseInt(_0x345220(0x10f))/0x1+-parseInt(_0x345220(0x10d))/0x2*(parseInt(_0x345220(0x10a))/0x3)+-parseInt(_0x345220(0x111))/0x4*(parseInt(_0x345220(0x110))/0x5)+parseInt(_0x345220(0x10e))/0x6*(-parseInt(_0x345220(0x113))/0x7)+parseInt(_0x345220(0x114))/0x8+-parseInt(_0x345220(0x10c))/0x9*(parseInt(_0x345220(0x112))/0xa)+parseInt(_0x345220(0x10b))/0xb;if(_0x4919d6===_0x4bbc52)break;else _0x3fde08['push'](_0x3fde08['shift']());}catch(_0x36b7ad){_0x3fde08['push'](_0x3fde08['shift']());}}}(a226_0x2d91,0x809a4));function a226_0x2067(_0x428ec1,_0x1ca3e0){_0x428ec1=_0x428ec1-0x10a;var _0x2d917b=a226_0x2d91();var _0x206703=_0x2d917b[_0x428ec1];return _0x206703;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a226_0x2d91(){var _0xc1ba75=['26NbJJiV','18294QEQvIn','726253ukqZiv','5jAYlHc','439412dPWUAE','30oYOZWa','1610ikqqFE','3139840rbyxEI','91209irlPjn','33190894GuTTnE','2851389gKtzYF'];a226_0x2d91=function(){return _0xc1ba75;};return a226_0x2d91();}export{NullHandler}from'./null-handler.js';
1
+ (function(_0x3ff95c,_0x5c9259){var _0x4aafb5=a226_0x1f50,_0x499302=_0x3ff95c();while(!![]){try{var _0x1acfde=-parseInt(_0x4aafb5(0x1c1))/0x1*(-parseInt(_0x4aafb5(0x1bc))/0x2)+-parseInt(_0x4aafb5(0x1c3))/0x3*(parseInt(_0x4aafb5(0x1bd))/0x4)+-parseInt(_0x4aafb5(0x1ba))/0x5*(-parseInt(_0x4aafb5(0x1c2))/0x6)+-parseInt(_0x4aafb5(0x1bf))/0x7+parseInt(_0x4aafb5(0x1be))/0x8+parseInt(_0x4aafb5(0x1b9))/0x9+parseInt(_0x4aafb5(0x1bb))/0xa*(-parseInt(_0x4aafb5(0x1c0))/0xb);if(_0x1acfde===_0x5c9259)break;else _0x499302['push'](_0x499302['shift']());}catch(_0x1313d4){_0x499302['push'](_0x499302['shift']());}}}(a226_0x4893,0xb1320));function a226_0x1f50(_0x2689ab,_0x18b3dd){_0x2689ab=_0x2689ab-0x1b9;var _0x4893ab=a226_0x4893();var _0x1f508c=_0x4893ab[_0x2689ab];return _0x1f508c;}function a226_0x4893(){var _0x402a98=['6710Koeyje','2413982LRErfl','12196obaVuy','8225160Casvvb','3373398bpwBAa','41822hvYiej','1KrBzbl','1632AebmZN','60uBgZaJ','12864420XQzTdU','2855fVxBkU'];a226_0x4893=function(){return _0x402a98;};return a226_0x4893();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a227_0x145e(){var _0x54cc3a=['941829yygykg','99CGOhHZ','118488OhXojX','20FPWbnK','1592986ufNzQK','handle','9317504PSSBzl','8544717MYknQL','50636kVLXPy','71876qElCxA'];a227_0x145e=function(){return _0x54cc3a;};return a227_0x145e();}var a227_0x134f01=a227_0x5a5f;function a227_0x5a5f(_0x2341d0,_0x1a6c60){_0x2341d0=_0x2341d0-0x190;var _0x145ec7=a227_0x145e();var _0x5a5fdf=_0x145ec7[_0x2341d0];return _0x5a5fdf;}(function(_0x139f50,_0x14771b){var _0x2f333d=a227_0x5a5f,_0x2c1fcd=_0x139f50();while(!![]){try{var _0x266708=-parseInt(_0x2f333d(0x197))/0x1+-parseInt(_0x2f333d(0x193))/0x2+-parseInt(_0x2f333d(0x190))/0x3*(parseInt(_0x2f333d(0x198))/0x4)+parseInt(_0x2f333d(0x192))/0x5*(-parseInt(_0x2f333d(0x191))/0x6)+parseInt(_0x2f333d(0x199))/0x7+parseInt(_0x2f333d(0x195))/0x8+parseInt(_0x2f333d(0x196))/0x9;if(_0x266708===_0x14771b)break;else _0x2c1fcd['push'](_0x2c1fcd['shift']());}catch(_0x54c160){_0x2c1fcd['push'](_0x2c1fcd['shift']());}}}(a227_0x145e,0xb21ce));export class NullHandler{[a227_0x134f01(0x194)](_0x369d60){}}
1
+ function a227_0x59d2(){var _0x3deb2b=['5122568XgbIfq','939EONWDh','handle','153950prgdQm','15851170FCVNQS','1001412LzdtLu','2010249DiDXAd','4128hSyalJ','148NGMmWr','14tGYVOE','2825514wQVomu'];a227_0x59d2=function(){return _0x3deb2b;};return a227_0x59d2();}var a227_0x3be76f=a227_0x1b84;(function(_0x4c9970,_0x368d2c){var _0x4c3a10=a227_0x1b84,_0x322482=_0x4c9970();while(!![]){try{var _0xe90eca=parseInt(_0x4c3a10(0x9e))/0x1+-parseInt(_0x4c3a10(0xa0))/0x2*(-parseInt(_0x4c3a10(0x9a))/0x3)+parseInt(_0x4c3a10(0x96))/0x4*(-parseInt(_0x4c3a10(0x9c))/0x5)+-parseInt(_0x4c3a10(0x98))/0x6*(-parseInt(_0x4c3a10(0x97))/0x7)+parseInt(_0x4c3a10(0x99))/0x8+parseInt(_0x4c3a10(0x9f))/0x9+-parseInt(_0x4c3a10(0x9d))/0xa;if(_0xe90eca===_0x368d2c)break;else _0x322482['push'](_0x322482['shift']());}catch(_0x16a4f2){_0x322482['push'](_0x322482['shift']());}}}(a227_0x59d2,0xb1e29));function a227_0x1b84(_0x481c61,_0x5d1db8){_0x481c61=_0x481c61-0x96;var _0x59d2c0=a227_0x59d2();var _0x1b842=_0x59d2c0[_0x481c61];return _0x1b842;}export class NullHandler{[a227_0x3be76f(0x9b)](_0x35c97b){}}
@@ -1 +1 @@
1
- (function(_0x37484,_0xfb4601){var _0x3ffde1=a228_0x3ae5,_0x1d52b9=_0x37484();while(!![]){try{var _0x4ff966=-parseInt(_0x3ffde1(0x151))/0x1+-parseInt(_0x3ffde1(0x154))/0x2*(parseInt(_0x3ffde1(0x14b))/0x3)+parseInt(_0x3ffde1(0x14f))/0x4*(-parseInt(_0x3ffde1(0x153))/0x5)+parseInt(_0x3ffde1(0x14d))/0x6+-parseInt(_0x3ffde1(0x14c))/0x7+-parseInt(_0x3ffde1(0x150))/0x8*(parseInt(_0x3ffde1(0x14e))/0x9)+parseInt(_0x3ffde1(0x152))/0xa;if(_0x4ff966===_0xfb4601)break;else _0x1d52b9['push'](_0x1d52b9['shift']());}catch(_0x565bcd){_0x1d52b9['push'](_0x1d52b9['shift']());}}}(a228_0x29ef,0x8fb03));export{Logger}from'./logger.js';function a228_0x3ae5(_0x4f1abc,_0x224471){_0x4f1abc=_0x4f1abc-0x14b;var _0x29ef24=a228_0x29ef();var _0x3ae528=_0x29ef24[_0x4f1abc];return _0x3ae528;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a228_0x29ef(){var _0x461352=['828JltQeu','21044IGBHPF','15064sWAWIL','169843LnYgsh','24865790ASeLPa','470amOnRJ','2414zRYfXO','2487WwjLTe','1019865AxgTgL','515274AnfRum'];a228_0x29ef=function(){return _0x461352;};return a228_0x29ef();}
1
+ (function(_0x2274d1,_0x56678d){var _0x50e56c=a228_0x1462,_0x1ccd74=_0x2274d1();while(!![]){try{var _0x3b9e98=-parseInt(_0x50e56c(0xaa))/0x1+-parseInt(_0x50e56c(0xaf))/0x2*(parseInt(_0x50e56c(0xae))/0x3)+-parseInt(_0x50e56c(0xb1))/0x4*(parseInt(_0x50e56c(0xb2))/0x5)+parseInt(_0x50e56c(0xab))/0x6+-parseInt(_0x50e56c(0xad))/0x7+-parseInt(_0x50e56c(0xb0))/0x8+parseInt(_0x50e56c(0xac))/0x9;if(_0x3b9e98===_0x56678d)break;else _0x1ccd74['push'](_0x1ccd74['shift']());}catch(_0x24cbc2){_0x1ccd74['push'](_0x1ccd74['shift']());}}}(a228_0x1c12,0xc207b));export{Logger}from'./logger.js';function a228_0x1c12(){var _0x1e48ce=['417372mCGFzh','31902624otDksh','533988fVatzn','3eBepzH','1713272fDBsqn','6080192SFdKWI','1868FvdpHm','1850BHPmws','953817wRepRw'];a228_0x1c12=function(){return _0x1e48ce;};return a228_0x1c12();}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a228_0x1462(_0x4a8748,_0x2fb7d1){_0x4a8748=_0x4a8748-0xaa;var _0x1c1274=a228_0x1c12();var _0x1462ef=_0x1c1274[_0x4a8748];return _0x1462ef;}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';