@treasuredata/tdx 0.26.2 → 0.26.3

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 (167) 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/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/engage-command.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/journey-command.js +1 -1
  21. package/dist/commands/journey-validate-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/mcp-command.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profile-command.js +1 -1
  26. package/dist/commands/profiles-command.js +1 -1
  27. package/dist/commands/query-command.js +1 -1
  28. package/dist/commands/schedule-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/status-command.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/unset-command.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/user-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/command-output.js +1 -1
  47. package/dist/core/config.js +1 -1
  48. package/dist/core/connection-cache.js +1 -1
  49. package/dist/core/constants.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/core/version.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/mcp/server.js +1 -1
  60. package/dist/mcp/tools/index.js +1 -1
  61. package/dist/mcp/tools/tdx-run.js +1 -1
  62. package/dist/mcp/tools/tdx-search.js +1 -1
  63. package/dist/mcp/utils.js +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/passthrough-server.js +1 -1
  66. package/dist/proxy/sse-usage-parser.js +1 -1
  67. package/dist/sdk/agent/agent-config.js +1 -1
  68. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.js +1 -1
  70. package/dist/sdk/agent/test/evaluator.js +1 -1
  71. package/dist/sdk/agent/test/executor.js +1 -1
  72. package/dist/sdk/agent/test/index.js +1 -1
  73. package/dist/sdk/agent/test/output.js +1 -1
  74. package/dist/sdk/agent/test/parser.js +1 -1
  75. package/dist/sdk/api.js +1 -1
  76. package/dist/sdk/client/cdp-api-client.js +1 -1
  77. package/dist/sdk/client/endpoints.js +1 -1
  78. package/dist/sdk/client/engage-api-client.js +1 -1
  79. package/dist/sdk/client/http-client.js +1 -1
  80. package/dist/sdk/client/llm-api-client.js +1 -1
  81. package/dist/sdk/client/rate-limiter.js +1 -1
  82. package/dist/sdk/client/td-api-client.js +1 -1
  83. package/dist/sdk/client/trino-api-client.js +1 -1
  84. package/dist/sdk/client/workflow-client.js +1 -1
  85. package/dist/sdk/connection-validator.js +1 -1
  86. package/dist/sdk/connection.js +1 -1
  87. package/dist/sdk/engage.js +1 -1
  88. package/dist/sdk/errors.js +1 -1
  89. package/dist/sdk/index.js +1 -1
  90. package/dist/sdk/io/index.js +1 -1
  91. package/dist/sdk/io/node-filesystem.js +1 -1
  92. package/dist/sdk/job.js +1 -1
  93. package/dist/sdk/journey.js +1 -1
  94. package/dist/sdk/llm/chat-cache.js +1 -1
  95. package/dist/sdk/llm/index.js +1 -1
  96. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  97. package/dist/sdk/llm/model-factors.js +1 -1
  98. package/dist/sdk/personalization.js +1 -1
  99. package/dist/sdk/query/index.js +1 -1
  100. package/dist/sdk/query/sql-parser.js +1 -1
  101. package/dist/sdk/realtime.js +1 -1
  102. package/dist/sdk/schedule.js +1 -1
  103. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  104. package/dist/sdk/segment/fields-display.js +1 -1
  105. package/dist/sdk/segment/file-discovery.js +1 -1
  106. package/dist/sdk/segment/journey-utils.js +1 -1
  107. package/dist/sdk/segment/journey-validator.js +1 -1
  108. package/dist/sdk/segment/journey-yaml.js +1 -1
  109. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  110. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  111. package/dist/sdk/segment/pull-workflow.js +1 -1
  112. package/dist/sdk/segment/push-recovery.js +1 -1
  113. package/dist/sdk/segment/push-workflow.js +1 -1
  114. package/dist/sdk/segment/resolution-context.js +1 -1
  115. package/dist/sdk/segment/segment-path-parser.js +1 -1
  116. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  117. package/dist/sdk/segment/target-resolution.js +1 -1
  118. package/dist/sdk/segment/tdx-config.js +1 -1
  119. package/dist/sdk/segment/validate-files.js +1 -1
  120. package/dist/sdk/segment/yaml-validator.js +1 -1
  121. package/dist/sdk/segment.js +1 -1
  122. package/dist/sdk/types/index.js +1 -1
  123. package/dist/sdk/types/progress.js +1 -1
  124. package/dist/sdk/user.js +1 -1
  125. package/dist/sdk/util/format-detector.js +1 -1
  126. package/dist/sdk/util/formatters.js +1 -1
  127. package/dist/sdk/util/index.js +1 -1
  128. package/dist/sdk/util/tree-formatter.js +1 -1
  129. package/dist/sdk/workflow/archive-validation.js +1 -1
  130. package/dist/sdk/workflow/clone-workflow.js +1 -1
  131. package/dist/sdk/workflow/index.js +1 -1
  132. package/dist/sdk/workflow/pull-workflow.js +1 -1
  133. package/dist/sdk/workflow/push-workflow.js +1 -1
  134. package/dist/sdk/workflow/tdx-config.js +1 -1
  135. package/dist/sdk/workflow/workflow-utils.js +1 -1
  136. package/dist/test-utils/command-runner.js +1 -1
  137. package/dist/test-utils/factories.js +1 -1
  138. package/dist/test-utils/fixtures.js +1 -1
  139. package/dist/test-utils/http-mock.js +1 -1
  140. package/dist/test-utils/index.js +1 -1
  141. package/dist/utils/async.js +1 -1
  142. package/dist/utils/colors.js +1 -1
  143. package/dist/utils/diff.js +1 -1
  144. package/dist/utils/file-permissions.js +1 -1
  145. package/dist/utils/global-cache.js +1 -1
  146. package/dist/utils/json-loader.js +1 -1
  147. package/dist/utils/local-cache.js +1 -1
  148. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  149. package/dist/utils/logger/formatters/index.js +1 -1
  150. package/dist/utils/logger/handlers/console-handler.js +1 -1
  151. package/dist/utils/logger/handlers/file-handler.js +1 -1
  152. package/dist/utils/logger/handlers/index.js +1 -1
  153. package/dist/utils/logger/handlers/null-handler.js +1 -1
  154. package/dist/utils/logger/index.js +1 -1
  155. package/dist/utils/logger/logger.js +1 -1
  156. package/dist/utils/logger/types.js +1 -1
  157. package/dist/utils/option-validation.js +1 -1
  158. package/dist/utils/port.js +1 -1
  159. package/dist/utils/process.js +1 -1
  160. package/dist/utils/prompt.js +1 -1
  161. package/dist/utils/spinner.js +1 -1
  162. package/dist/utils/sse-parser.js +1 -1
  163. package/dist/utils/string-utils.js +1 -1
  164. package/dist/utils/table-ref-parser.js +1 -1
  165. package/dist/utils/tdx-logger.js +1 -1
  166. package/dist/utils/version-check.js +1 -1
  167. package/package.json +1 -1
@@ -1 +1 @@
1
- const a153_0x31e3d3=a153_0x3bbd;(function(_0x5730b3,_0x57e2fc){const _0x194a06=a153_0x3bbd,_0x38b565=_0x5730b3();while(!![]){try{const _0xbfa6=parseInt(_0x194a06(0x10b))/0x1*(parseInt(_0x194a06(0xf0))/0x2)+-parseInt(_0x194a06(0x101))/0x3*(-parseInt(_0x194a06(0xc2))/0x4)+parseInt(_0x194a06(0xe2))/0x5*(-parseInt(_0x194a06(0xed))/0x6)+parseInt(_0x194a06(0x11d))/0x7+-parseInt(_0x194a06(0x117))/0x8*(-parseInt(_0x194a06(0x124))/0x9)+-parseInt(_0x194a06(0x114))/0xa*(parseInt(_0x194a06(0xf2))/0xb)+-parseInt(_0x194a06(0x100))/0xc;if(_0xbfa6===_0x57e2fc)break;else _0x38b565['push'](_0x38b565['shift']());}catch(_0x59aed4){_0x38b565['push'](_0x38b565['shift']());}}}(a153_0x36a1,0x6fd85));export const fixtures={'database':{'basic':{'name':a153_0x31e3d3(0xd2),'count':0x5,'created_at':a153_0x31e3d3(0xd7),'updated_at':'2024-01-01T00:00:00Z','permission':a153_0x31e3d3(0x119)},'withTables':{'name':a153_0x31e3d3(0xc4),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':'2024-01-15T08:00:00Z','permission':a153_0x31e3d3(0xec)}},'table':{'basic':{'id':0x3039,'name':a153_0x31e3d3(0xd8),'type':'log','schema':JSON['stringify']([['id',a153_0x31e3d3(0xe4)],[a153_0x31e3d3(0x122),a153_0x31e3d3(0xe6)],[a153_0x31e3d3(0xda),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a153_0x31e3d3(0xd7),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a153_0x31e3d3(0xca),'type':a153_0x31e3d3(0xcd),'schema':JSON[a153_0x31e3d3(0x112)]([[a153_0x31e3d3(0xd3),'string'],['time','long'],['user_id',a153_0x31e3d3(0xe4)],['event_type','string'],['properties',a153_0x31e3d3(0xea)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0x31e3d3(0x120)}},'parentSegment':{'basic':{'id':a153_0x31e3d3(0xcb),'name':a153_0x31e3d3(0x10d),'description':a153_0x31e3d3(0x111),'status':a153_0x31e3d3(0xd0),'master_table':{'database':a153_0x31e3d3(0xc6),'table':a153_0x31e3d3(0xe3)},'attributes':[{'name':'customer_id','type':'string','key':!![]},{'name':a153_0x31e3d3(0x109),'type':a153_0x31e3d3(0xe4)},{'name':'created_at','type':a153_0x31e3d3(0x10a)}],'created_at':a153_0x31e3d3(0xd7),'updated_at':a153_0x31e3d3(0x10e)},'withBehaviors':{'id':a153_0x31e3d3(0xbe),'name':a153_0x31e3d3(0xf5),'description':a153_0x31e3d3(0xdb),'status':a153_0x31e3d3(0xd0),'master_table':{'database':a153_0x31e3d3(0xc6),'table':a153_0x31e3d3(0x102)},'behaviors':[{'name':a153_0x31e3d3(0x104),'table':{'database':'events_db','table':'purchases'},'join_key':a153_0x31e3d3(0x123)},{'name':'page_views','table':{'database':a153_0x31e3d3(0xdc),'table':'pageviews'},'join_key':a153_0x31e3d3(0x123)}],'created_at':a153_0x31e3d3(0xd7),'updated_at':a153_0x31e3d3(0x10e)}},'segment':{'basic':{'id':a153_0x31e3d3(0xfc),'name':a153_0x31e3d3(0xf8),'description':a153_0x31e3d3(0x126),'parent_segment_id':a153_0x31e3d3(0xcb),'status':'active','rules':[{'type':'attribute','field':a153_0x31e3d3(0x118),'operator':'TimeWithinPast','value':a153_0x31e3d3(0x10c)}],'count':0x1388,'created_at':a153_0x31e3d3(0xd7),'updated_at':a153_0x31e3d3(0x10e)},'withMultipleRules':{'id':'cs-111222','name':'High\x20Value\x20Active\x20Users','description':a153_0x31e3d3(0x125),'parent_segment_id':a153_0x31e3d3(0xcb),'status':a153_0x31e3d3(0xd0),'rules':[{'type':a153_0x31e3d3(0xde),'field':a153_0x31e3d3(0x118),'operator':'TimeWithinPast','value':a153_0x31e3d3(0x10c)},{'type':a153_0x31e3d3(0xde),'field':a153_0x31e3d3(0xe9),'operator':a153_0x31e3d3(0xd5),'value':0x3e8}],'count':0x5dc,'created_at':a153_0x31e3d3(0xd7),'updated_at':a153_0x31e3d3(0x10e)}},'journey':{'basic':{'id':'j-abc123','name':a153_0x31e3d3(0xce),'description':a153_0x31e3d3(0xef),'status':a153_0x31e3d3(0x11b),'version':0x1,'steps':[{'id':'step-1','type':a153_0x31e3d3(0xc7),'duration':'1d'},{'id':a153_0x31e3d3(0xee),'type':a153_0x31e3d3(0x105),'activation_id':a153_0x31e3d3(0xe5)}],'created_at':a153_0x31e3d3(0xd7),'updated_at':a153_0x31e3d3(0x10e)},'withDecision':{'id':a153_0x31e3d3(0xdd),'name':a153_0x31e3d3(0xe7),'description':'Journey\x20with\x20decision\x20point','status':a153_0x31e3d3(0xd0),'version':0x2,'steps':[{'id':'step-1','type':a153_0x31e3d3(0xdf),'segment_id':'cs-456789','yes_path':a153_0x31e3d3(0xee),'no_path':'step-3'},{'id':a153_0x31e3d3(0xee),'type':'activation','activation_id':a153_0x31e3d3(0xc3)},{'id':a153_0x31e3d3(0xe0),'type':a153_0x31e3d3(0xeb)}],'created_at':a153_0x31e3d3(0xd7),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a153_0x31e3d3(0x127)},{'name':a153_0x31e3d3(0xda),'type':a153_0x31e3d3(0x127)},{'name':'count','type':'bigint'}],'data':[[a153_0x31e3d3(0x11e),a153_0x31e3d3(0xe8),0x64],['user-2',a153_0x31e3d3(0xff),0xc8],[a153_0x31e3d3(0x108),a153_0x31e3d3(0xf7),0x96]]},'empty':{'schema':[{'name':'id','type':a153_0x31e3d3(0x127)},{'name':a153_0x31e3d3(0xda),'type':a153_0x31e3d3(0x127)}],'data':[]},'singleRow':{'schema':[{'name':a153_0x31e3d3(0xbc),'type':a153_0x31e3d3(0x11f)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a153_0x31e3d3(0xd9),'email':'test@example.com','created_at':a153_0x31e3d3(0xd7),'updated_at':a153_0x31e3d3(0x10e),'administrator':![]},'admin':{'id':0x1,'name':a153_0x31e3d3(0x12a),'email':a153_0x31e3d3(0x10f),'created_at':a153_0x31e3d3(0xc0),'updated_at':a153_0x31e3d3(0x10e),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a153_0x31e3d3(0xd2),'status':'success','query':a153_0x31e3d3(0x128),'start_at':'2024-01-15T10:00:00Z','end_at':a153_0x31e3d3(0x121),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a153_0x31e3d3(0xfe),'database':a153_0x31e3d3(0xd2),'status':a153_0x31e3d3(0xf6),'query':a153_0x31e3d3(0xe1),'start_at':a153_0x31e3d3(0xf1),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a153_0x31e3d3(0xfe),'database':a153_0x31e3d3(0xd2),'status':'error','query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a153_0x31e3d3(0xf3),'end_at':a153_0x31e3d3(0xd6),'duration':0x1,'result_size':null,'error':a153_0x31e3d3(0xc9)}},'workflow':{'basic':{'id':'wf-12345','name':a153_0x31e3d3(0x12b),'project':a153_0x31e3d3(0x107),'revision':'abc123','timezone':'UTC','schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':'wf-67890','name':a153_0x31e3d3(0xd1),'project':a153_0x31e3d3(0xf4),'revision':a153_0x31e3d3(0xcc),'timezone':a153_0x31e3d3(0xfb),'schedule':{'cron':a153_0x31e3d3(0xc1)},'last_session':{'id':a153_0x31e3d3(0xc8),'status':a153_0x31e3d3(0xbd),'started_at':'2024-01-15T09:00:00Z','finished_at':a153_0x31e3d3(0x106)}}},'apiError':{'unauthorized':{'errors':{'error':a153_0x31e3d3(0xf9),'message':a153_0x31e3d3(0xf9),'severity':'error','status_code':0x191}},'notFound':{'errors':{'error':a153_0x31e3d3(0xfd),'message':a153_0x31e3d3(0xbf),'severity':'error','status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a153_0x31e3d3(0x11a),'title':a153_0x31e3d3(0x11c),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a153_0x31e3d3(0xfa)}}};function a153_0x36a1(){const _0x2bed26=['varchar','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','segment','Admin\x20User','daily_etl','total','success','ps-789012','The\x20requested\x20resource\x20does\x20not\x20exist','2023-01-01T00:00:00Z','0\x20*\x20*\x20*\x20*','12DQSQAw','act-email','production_db','user','cdp_db','wait','sess-111','Table\x20does\x20not\x20exist:\x20nonexistent_table','events','ps-123456','def456','log','Welcome\x20Journey','table','active','hourly_sync','test_db','event_id','job','Greater','2024-01-15T10:10:01Z','2024-01-01T00:00:00Z','users','Test\x20User','name','Parent\x20segment\x20with\x20behavioral\x20data','events_db','j-def456','attribute','decision_point','step-3','SELECT\x20COUNT(*)\x20FROM\x20events','5aekDuL','unified_customers','string','act-123','long','Purchase\x20Reminder','Alice','lifetime_value','map<string,string>','end','full_access','777486zPFcLJ','step-2','Onboarding\x20journey\x20for\x20new\x20users','2MkJGIk','2024-01-15T10:05:00Z','174581hQYFMf','2024-01-15T10:10:00Z','data_sync','Customers\x20with\x20Behaviors','running','Charlie','Active\x20Users','Invalid\x20API\x20key','/v3/database/list','America/Los_Angeles','cs-456789','Resource\x20not\x20found','presto','Bob','14354880kRnoAM','854421vcFyRT','customers','database','purchases','activation','2024-01-15T09:05:00Z','data_pipeline','user-3','email','timestamp','412330VDNBmt','30d','Test\x20Parent\x20Segment','2024-01-15T00:00:00Z','admin@example.com','basic','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','stringify','queryResult','10CdZfrM','parentSegment','workflow','16dVeOfl','last_login','administrator','https://api.treasuredata.com/errors/forbidden','draft','Forbidden','965020cAJzYc','user-1','bigint','2024-01-15T12:00:00Z','2024-01-15T10:00:05Z','time','customer_id','1778391OOMHdZ','Active\x20users\x20with\x20high\x20lifetime\x20value','Users\x20active\x20in\x20the\x20last\x2030\x20days'];a153_0x36a1=function(){return _0x2bed26;};return a153_0x36a1();}export function createDatabase(_0x23760d){const _0x5c12f2=a153_0x31e3d3;return{...fixtures[_0x5c12f2(0x103)][_0x5c12f2(0x110)],..._0x23760d};}export function createTable(_0x25e8d3){const _0x42b282=a153_0x31e3d3;return{...fixtures[_0x42b282(0xcf)][_0x42b282(0x110)],..._0x25e8d3};}export function createParentSegment(_0x51b4f8){const _0x572a9f=a153_0x31e3d3;return{...fixtures[_0x572a9f(0x115)]['basic'],..._0x51b4f8};}export function createSegment(_0x24c9b2){const _0x15d2d8=a153_0x31e3d3;return{...fixtures[_0x15d2d8(0x129)][_0x15d2d8(0x110)],..._0x24c9b2};}export function createJourney(_0x22852f){const _0x4a9e05=a153_0x31e3d3;return{...fixtures['journey'][_0x4a9e05(0x110)],..._0x22852f};}export function createQueryResult(_0xf74995){const _0x568e3c=a153_0x31e3d3;return{...fixtures[_0x568e3c(0x113)][_0x568e3c(0x110)],..._0xf74995};}export function createUser(_0x3ffcaf){const _0x23541d=a153_0x31e3d3;return{...fixtures[_0x23541d(0xc5)]['basic'],..._0x3ffcaf};}export function createJob(_0x22ca98){const _0x5dcb53=a153_0x31e3d3;return{...fixtures[_0x5dcb53(0xd4)]['completed'],..._0x22ca98};}function a153_0x3bbd(_0x4ff4e9,_0x5021ec){_0x4ff4e9=_0x4ff4e9-0xbc;const _0x36a19c=a153_0x36a1();let _0x3bbd78=_0x36a19c[_0x4ff4e9];return _0x3bbd78;}export function createWorkflow(_0x13bae5){const _0x17d9a6=a153_0x31e3d3;return{...fixtures[_0x17d9a6(0x116)][_0x17d9a6(0x110)],..._0x13bae5};}
1
+ const a153_0xc36ca=a153_0x3641;(function(_0x5270a3,_0x4f8445){const _0x2526d1=a153_0x3641,_0x100808=_0x5270a3();while(!![]){try{const _0x4f3b25=-parseInt(_0x2526d1(0x213))/0x1*(parseInt(_0x2526d1(0x1f4))/0x2)+parseInt(_0x2526d1(0x242))/0x3*(-parseInt(_0x2526d1(0x24d))/0x4)+parseInt(_0x2526d1(0x20d))/0x5*(parseInt(_0x2526d1(0x200))/0x6)+parseInt(_0x2526d1(0x250))/0x7*(parseInt(_0x2526d1(0x221))/0x8)+parseInt(_0x2526d1(0x25d))/0x9+parseInt(_0x2526d1(0x20b))/0xa+-parseInt(_0x2526d1(0x21d))/0xb*(parseInt(_0x2526d1(0x233))/0xc);if(_0x4f3b25===_0x4f8445)break;else _0x100808['push'](_0x100808['shift']());}catch(_0x18ac56){_0x100808['push'](_0x100808['shift']());}}}(a153_0x1afe,0x221e8));export const fixtures={'database':{'basic':{'name':a153_0xc36ca(0x235),'count':0x5,'created_at':a153_0xc36ca(0x246),'updated_at':'2024-01-01T00:00:00Z','permission':a153_0xc36ca(0x1fc)},'withTables':{'name':'production_db','count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a153_0xc36ca(0x24e),'permission':a153_0xc36ca(0x21f)}},'table':{'basic':{'id':0x3039,'name':'users','type':'log','schema':JSON['stringify']([['id','string'],[a153_0xc36ca(0x238),a153_0xc36ca(0x20f)],[a153_0xc36ca(0x23b),a153_0xc36ca(0x222)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a153_0xc36ca(0x246),'updated_at':a153_0xc36ca(0x246)},'events':{'id':0x303a,'name':a153_0xc36ca(0x1f8),'type':a153_0xc36ca(0x243),'schema':JSON[a153_0xc36ca(0x1f7)]([[a153_0xc36ca(0x255),a153_0xc36ca(0x222)],['time',a153_0xc36ca(0x20f)],[a153_0xc36ca(0x215),a153_0xc36ca(0x222)],['event_type',a153_0xc36ca(0x222)],[a153_0xc36ca(0x209),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a153_0xc36ca(0x246),'updated_at':a153_0xc36ca(0x249)}},'parentSegment':{'basic':{'id':a153_0xc36ca(0x25b),'name':'Test\x20Parent\x20Segment','description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':'active','master_table':{'database':a153_0xc36ca(0x22c),'table':a153_0xc36ca(0x23e)},'attributes':[{'name':a153_0xc36ca(0x210),'type':a153_0xc36ca(0x222),'key':!![]},{'name':a153_0xc36ca(0x257),'type':a153_0xc36ca(0x222)},{'name':a153_0xc36ca(0x201),'type':a153_0xc36ca(0x25e)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0xc36ca(0x234)},'withBehaviors':{'id':a153_0xc36ca(0x259),'name':'Customers\x20with\x20Behaviors','description':a153_0xc36ca(0x219),'status':'active','master_table':{'database':'cdp_db','table':a153_0xc36ca(0x1f5)},'behaviors':[{'name':a153_0xc36ca(0x240),'table':{'database':a153_0xc36ca(0x256),'table':a153_0xc36ca(0x240)},'join_key':a153_0xc36ca(0x210)},{'name':a153_0xc36ca(0x206),'table':{'database':a153_0xc36ca(0x256),'table':a153_0xc36ca(0x224)},'join_key':a153_0xc36ca(0x210)}],'created_at':a153_0xc36ca(0x246),'updated_at':a153_0xc36ca(0x234)}},'segment':{'basic':{'id':a153_0xc36ca(0x24b),'name':a153_0xc36ca(0x258),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a153_0xc36ca(0x25b),'status':a153_0xc36ca(0x248),'rules':[{'type':a153_0xc36ca(0x25f),'field':'last_login','operator':a153_0xc36ca(0x1fa),'value':'30d'}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0xc36ca(0x234)},'withMultipleRules':{'id':a153_0xc36ca(0x24c),'name':a153_0xc36ca(0x204),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a153_0xc36ca(0x25b),'status':a153_0xc36ca(0x248),'rules':[{'type':'attribute','field':a153_0xc36ca(0x1f6),'operator':a153_0xc36ca(0x1fa),'value':a153_0xc36ca(0x23a)},{'type':a153_0xc36ca(0x25f),'field':a153_0xc36ca(0x227),'operator':a153_0xc36ca(0x207),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0xc36ca(0x234)}},'journey':{'basic':{'id':a153_0xc36ca(0x251),'name':a153_0xc36ca(0x244),'description':'Onboarding\x20journey\x20for\x20new\x20users','status':a153_0xc36ca(0x253),'version':0x1,'steps':[{'id':a153_0xc36ca(0x1fe),'type':'wait','duration':'1d'},{'id':a153_0xc36ca(0x1fd),'type':a153_0xc36ca(0x231),'activation_id':a153_0xc36ca(0x24a)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0xc36ca(0x234)},'withDecision':{'id':'j-def456','name':a153_0xc36ca(0x223),'description':a153_0xc36ca(0x229),'status':a153_0xc36ca(0x248),'version':0x2,'steps':[{'id':a153_0xc36ca(0x1fe),'type':a153_0xc36ca(0x22f),'segment_id':a153_0xc36ca(0x24b),'yes_path':'step-2','no_path':a153_0xc36ca(0x22e)},{'id':a153_0xc36ca(0x1fd),'type':a153_0xc36ca(0x231),'activation_id':a153_0xc36ca(0x247)},{'id':a153_0xc36ca(0x22e),'type':a153_0xc36ca(0x236)}],'created_at':a153_0xc36ca(0x246),'updated_at':a153_0xc36ca(0x234)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a153_0xc36ca(0x252)},{'name':a153_0xc36ca(0x23b),'type':'varchar'},{'name':'count','type':a153_0xc36ca(0x1f9)}],'data':[[a153_0xc36ca(0x22a),a153_0xc36ca(0x228),0x64],[a153_0xc36ca(0x25c),a153_0xc36ca(0x21c),0xc8],[a153_0xc36ca(0x214),a153_0xc36ca(0x230),0x96]]},'empty':{'schema':[{'name':'id','type':a153_0xc36ca(0x252)},{'name':a153_0xc36ca(0x23b),'type':a153_0xc36ca(0x252)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a153_0xc36ca(0x1f9)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a153_0xc36ca(0x23f),'email':a153_0xc36ca(0x239),'created_at':a153_0xc36ca(0x246),'updated_at':a153_0xc36ca(0x234),'administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':'admin@example.com','created_at':a153_0xc36ca(0x25a),'updated_at':a153_0xc36ca(0x234),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a153_0xc36ca(0x203),'database':a153_0xc36ca(0x235),'status':a153_0xc36ca(0x1fb),'query':a153_0xc36ca(0x20c),'start_at':a153_0xc36ca(0x205),'end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a153_0xc36ca(0x235),'status':a153_0xc36ca(0x20a),'query':a153_0xc36ca(0x262),'start_at':a153_0xc36ca(0x263),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a153_0xc36ca(0x203),'database':'test_db','status':'error','query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a153_0xc36ca(0x22b),'end_at':a153_0xc36ca(0x21b),'duration':0x1,'result_size':null,'error':a153_0xc36ca(0x261)}},'workflow':{'basic':{'id':a153_0xc36ca(0x202),'name':a153_0xc36ca(0x23c),'project':'data_pipeline','revision':a153_0xc36ca(0x24f),'timezone':a153_0xc36ca(0x226),'schedule':{'cron':a153_0xc36ca(0x254)}},'withSessions':{'id':'wf-67890','name':a153_0xc36ca(0x218),'project':a153_0xc36ca(0x225),'revision':a153_0xc36ca(0x237),'timezone':a153_0xc36ca(0x241),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':'sess-111','status':a153_0xc36ca(0x1fb),'started_at':'2024-01-15T09:00:00Z','finished_at':a153_0xc36ca(0x232)}}},'apiError':{'unauthorized':{'errors':{'error':a153_0xc36ca(0x211),'message':a153_0xc36ca(0x211),'severity':a153_0xc36ca(0x220),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':'error','status_code':0x194}},'rateLimited':{'detail':a153_0xc36ca(0x20e)},'rfc9457':{'type':a153_0xc36ca(0x21e),'title':'Forbidden','status':0x193,'detail':a153_0xc36ca(0x1ff),'instance':a153_0xc36ca(0x260)}}};export function createDatabase(_0x43f93e){const _0x2d3621=a153_0xc36ca;return{...fixtures[_0x2d3621(0x212)][_0x2d3621(0x21a)],..._0x43f93e};}export function createTable(_0x1c2671){const _0x8b6e7d=a153_0xc36ca;return{...fixtures[_0x8b6e7d(0x22d)][_0x8b6e7d(0x21a)],..._0x1c2671};}export function createParentSegment(_0x127dbd){const _0x29c96d=a153_0xc36ca;return{...fixtures[_0x29c96d(0x245)][_0x29c96d(0x21a)],..._0x127dbd};}export function createSegment(_0x4be7be){const _0x11a6f9=a153_0xc36ca;return{...fixtures[_0x11a6f9(0x208)][_0x11a6f9(0x21a)],..._0x4be7be};}export function createJourney(_0x4613c4){const _0x5ad4fe=a153_0xc36ca;return{...fixtures[_0x5ad4fe(0x217)][_0x5ad4fe(0x21a)],..._0x4613c4};}export function createQueryResult(_0x157c20){const _0x3ca481=a153_0xc36ca;return{...fixtures[_0x3ca481(0x216)][_0x3ca481(0x21a)],..._0x157c20};}export function createUser(_0x41cdcc){return{...fixtures['user']['basic'],..._0x41cdcc};}function a153_0x3641(_0x2fb2be,_0x3b19f5){_0x2fb2be=_0x2fb2be-0x1f4;const _0x1afedf=a153_0x1afe();let _0x364125=_0x1afedf[_0x2fb2be];return _0x364125;}export function createJob(_0x2b5bff){return{...fixtures['job']['completed'],..._0x2b5bff};}export function createWorkflow(_0x1dce1f){const _0x320188=a153_0xc36ca;return{...fixtures[_0x320188(0x23d)][_0x320188(0x21a)],..._0x1dce1f};}function a153_0x1afe(){const _0x309e56=['customer_id','Invalid\x20API\x20key','database','2Bbsttu','user-3','user_id','queryResult','journey','hourly_sync','Parent\x20segment\x20with\x20behavioral\x20data','basic','2024-01-15T10:10:01Z','Bob','1936GAmHUQ','https://api.treasuredata.com/errors/forbidden','full_access','error','8DXiORE','string','Purchase\x20Reminder','pageviews','data_sync','UTC','lifetime_value','Alice','Journey\x20with\x20decision\x20point','user-1','2024-01-15T10:10:00Z','cdp_db','table','step-3','decision_point','Charlie','activation','2024-01-15T09:05:00Z','19788aMlVPY','2024-01-15T00:00:00Z','test_db','end','def456','time','test@example.com','30d','name','daily_etl','workflow','unified_customers','Test\x20User','purchases','America/Los_Angeles','825801yrqTMD','log','Welcome\x20Journey','parentSegment','2024-01-01T00:00:00Z','act-email','active','2024-01-15T12:00:00Z','act-123','cs-456789','cs-111222','4ZMtiug','2024-01-15T08:00:00Z','abc123','1634570KnMyMD','j-abc123','varchar','draft','0\x200\x20*\x20*\x20*','event_id','events_db','email','Active\x20Users','ps-789012','2023-01-01T00:00:00Z','ps-123456','user-2','1899864NMNEhy','timestamp','attribute','/v3/database/list','Table\x20does\x20not\x20exist:\x20nonexistent_table','SELECT\x20COUNT(*)\x20FROM\x20events','2024-01-15T10:05:00Z','148658uJvATx','customers','last_login','stringify','events','bigint','TimeWithinPast','success','administrator','step-2','step-1','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','7842UvwFLB','created_at','wf-12345','presto','High\x20Value\x20Active\x20Users','2024-01-15T10:00:00Z','page_views','Greater','segment','properties','running','2511480MwIdJI','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','605OeEYNG','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','long'];a153_0x1afe=function(){return _0x309e56;};return a153_0x1afe();}
@@ -1 +1 @@
1
- const a154_0x1cc1c2=a154_0xa1a9;(function(_0x5792e4,_0x1b7968){const _0xe814b0=a154_0xa1a9,_0x1d85b7=_0x5792e4();while(!![]){try{const _0x38a073=parseInt(_0xe814b0(0x135))/0x1*(-parseInt(_0xe814b0(0x14e))/0x2)+-parseInt(_0xe814b0(0x138))/0x3+-parseInt(_0xe814b0(0x173))/0x4*(parseInt(_0xe814b0(0x163))/0x5)+-parseInt(_0xe814b0(0x155))/0x6+parseInt(_0xe814b0(0x13f))/0x7*(-parseInt(_0xe814b0(0x17e))/0x8)+parseInt(_0xe814b0(0x133))/0x9*(-parseInt(_0xe814b0(0x161))/0xa)+parseInt(_0xe814b0(0x165))/0xb;if(_0x38a073===_0x1b7968)break;else _0x1d85b7['push'](_0x1d85b7['shift']());}catch(_0x4a50ad){_0x1d85b7['push'](_0x1d85b7['shift']());}}}(a154_0x353a,0x89b16));function a154_0x353a(){const _0xb50bbe=['length','forEach','Not\x20Found','pathname','mockImplementation','Unmatched\x20stub','3299324XllfOC','Registered\x20stubs:\x0a','fail','Bad\x20Request','\x20\x20(none)','body','stubs','every','getRequests','Forbidden','reset','parseRequest','string','textResponse','wasCalled','2OePGBU','isArray','withHost','toUpperCase','verify','filter','searchParams','2677362udbuMm','Unauthorized','method','getStatusText','No\x20stub\x20matched\x20request:\x20','some','getLastRequest','push','getMatchCount','register','url','join','6790EBbyMt','function','290395PHXMEh','entries','37892932EycgfZ','registerWithInspector','jsonResponse','errorResponse','parse','get','toLowerCase','responder','Created','description','requests','unnamed\x20stub','fetchMock','matched','20NBTXiB','slice','headers','map','rfc9457','withQuery','text/plain','stack','includes','stringify','application/json','8iyEsAV','No\x20Content','Too\x20Many\x20Requests','withBody','\x20registered\x20at:\x0a','td-api','test','13257uObvgq','Service\x20Unavailable','262166mDRIEY','split','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','1231605VuoPjQ'];a154_0x353a=function(){return _0xb50bbe;};return a154_0x353a();}import{vi}from'vitest';export class HTTPMockRegistry{[a154_0x1cc1c2(0x145)]=[];[a154_0x1cc1c2(0x16f)]=[];['fetchMock']=null;['REST'](_0x3acb5e,_0x1cad95){return _0x58c9cd=>{const _0x4be247=a154_0xa1a9;if(_0x58c9cd['method'][_0x4be247(0x151)]()!==_0x3acb5e[_0x4be247(0x151)]())return![];const _0x275454=new URL(_0x58c9cd[_0x4be247(0x15f)]);if(typeof _0x1cad95===_0x4be247(0x14b))return _0x275454[_0x4be247(0x13c)]===_0x1cad95||_0x275454[_0x4be247(0x13c)]['includes'](_0x1cad95);return _0x1cad95[_0x4be247(0x132)](_0x275454[_0x4be247(0x13c)]);};}[a154_0x1cc1c2(0x178)](_0x50589b,_0x44964c){return _0x211d93=>{const _0x4b07fa=a154_0xa1a9;if(!_0x50589b(_0x211d93))return![];const _0xbd00e5=new URL(_0x211d93['url']);return Object[_0x4b07fa(0x164)](_0x44964c)[_0x4b07fa(0x146)](([_0x15da08,_0x35e8c7])=>_0xbd00e5[_0x4b07fa(0x154)][_0x4b07fa(0x16a)](_0x15da08)===_0x35e8c7);};}[a154_0x1cc1c2(0x181)](_0x4d380c,_0x3fc73b){return _0x4a006f=>{const _0x21c9fd=a154_0xa1a9;if(!_0x4d380c(_0x4a006f))return![];if(typeof _0x3fc73b===_0x21c9fd(0x162))return _0x3fc73b(_0x4a006f[_0x21c9fd(0x144)]);return JSON['stringify'](_0x4a006f[_0x21c9fd(0x144)])===JSON[_0x21c9fd(0x17c)](_0x3fc73b);};}[a154_0x1cc1c2(0x150)](_0x2a332c,_0x544405){return _0x46ae13=>{const _0x460361=a154_0xa1a9;if(!_0x2a332c(_0x46ae13))return![];const _0x1478ea=new URL(_0x46ae13[_0x460361(0x15f)]);return _0x1478ea['host']===_0x544405;};}[a154_0x1cc1c2(0x15e)](_0x5dcbe1,_0x3cde98,_0x1b81af){const _0x3da918=a154_0x1cc1c2;this[_0x3da918(0x145)][_0x3da918(0x15c)]({'matcher':_0x5dcbe1,'responder':_0x3cde98,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x1b81af?.[_0x3da918(0x16e)]});}[a154_0x1cc1c2(0x166)](_0x30d15b,_0xd993b3,_0x5cf35f){const _0x2d3f20=a154_0x1cc1c2,_0x12efd1=_0x2f7209=>{const _0x114d51=a154_0xa1a9;return _0x5cf35f(_0x2f7209[_0x114d51(0x144)],_0x2f7209),_0xd993b3(_0x2f7209);};this[_0x2d3f20(0x15e)](_0x30d15b,_0x12efd1);}static[a154_0x1cc1c2(0x167)](_0x467e05,_0x85777=0xc8){const _0x1c1307=a154_0x1cc1c2;return()=>new Response(JSON[_0x1c1307(0x17c)](_0x467e05),{'status':_0x85777,'headers':{'Content-Type':'application/json'}});}static[a154_0x1cc1c2(0x168)](_0x3bd20b,_0x58a817,_0x297464='simple'){return()=>{const _0x101c94=a154_0xa1a9;let _0x5d5505;switch(_0x297464){case _0x101c94(0x131):_0x5d5505={'errors':{'error':_0x58a817,'message':_0x58a817,'severity':'error','status_code':_0x3bd20b}};break;case _0x101c94(0x177):_0x5d5505={'type':'https://api.treasuredata.com/errors/'+_0x3bd20b,'title':HTTPMockRegistry[_0x101c94(0x158)](_0x3bd20b),'status':_0x3bd20b,'detail':_0x58a817};break;default:_0x5d5505={'error':_0x58a817};}return new Response(JSON['stringify'](_0x5d5505),{'status':_0x3bd20b,'headers':{'Content-Type':_0x101c94(0x17d)}});};}static['jsonResponseWithHeaders'](_0x4bd89e,_0xd6fadd,_0x5295a1=0xc8){const _0xd8f1d2=a154_0x1cc1c2;return()=>new Response(JSON[_0xd8f1d2(0x17c)](_0x4bd89e),{'status':_0x5295a1,'headers':{'Content-Type':'application/json',..._0xd6fadd}});}static[a154_0x1cc1c2(0x14c)](_0x57318a,_0x2525b1=0xc8){const _0x46266e=a154_0x1cc1c2;return()=>new Response(_0x57318a,{'status':_0x2525b1,'headers':{'Content-Type':_0x46266e(0x179)}});}static['networkError'](_0x454524){return()=>{throw new Error(_0x454524);};}['createFetch'](){const _0x43f5bb=a154_0x1cc1c2;return this[_0x43f5bb(0x171)]=vi['fn']()[_0x43f5bb(0x13d)](async(_0x79bcb4,_0x2180db)=>{const _0x18f868=_0x43f5bb,_0x1b194d=this['parseRequest'](_0x79bcb4,_0x2180db);this['requests'][_0x18f868(0x15c)](_0x1b194d);for(const _0x398bfc of this[_0x18f868(0x145)]){if(_0x398bfc['matcher'](_0x1b194d))return _0x398bfc[_0x18f868(0x172)]=!![],_0x398bfc['matchCount']++,_0x398bfc[_0x18f868(0x16c)](_0x1b194d);}const _0x3ee575=this[_0x18f868(0x145)][_0x18f868(0x176)]((_0x5a7ea0,_0x2dc7cf)=>'\x20\x20'+(_0x2dc7cf+0x1)+'.\x20'+(_0x5a7ea0[_0x18f868(0x16e)]??_0x18f868(0x170)))[_0x18f868(0x160)]('\x0a');throw new Error(_0x18f868(0x159)+_0x1b194d[_0x18f868(0x157)]+'\x20'+_0x1b194d[_0x18f868(0x15f)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x18f868(0x17c)](_0x1b194d[_0x18f868(0x144)])+'\x0a')+(_0x18f868(0x140)+(_0x3ee575||_0x18f868(0x143))));}),this[_0x43f5bb(0x171)];}[a154_0x1cc1c2(0x14a)](_0x576873,_0x589c77){const _0x100f44=a154_0x1cc1c2,_0x19d92c={};if(_0x589c77?.['headers']){if(_0x589c77[_0x100f44(0x175)]instanceof Headers)_0x589c77[_0x100f44(0x175)][_0x100f44(0x13a)]((_0x4c9c09,_0xbc3d15)=>{const _0xf5d92d=_0x100f44;_0x19d92c[_0xbc3d15[_0xf5d92d(0x16b)]()]=_0x4c9c09;});else{if(Array[_0x100f44(0x14f)](_0x589c77[_0x100f44(0x175)]))for(const [_0x4fa7f2,_0x37bf4a]of _0x589c77[_0x100f44(0x175)]){_0x19d92c[_0x4fa7f2[_0x100f44(0x16b)]()]=_0x37bf4a;}else for(const [_0x3db732,_0x1a7f84]of Object[_0x100f44(0x164)](_0x589c77[_0x100f44(0x175)])){_0x1a7f84!==undefined&&(_0x19d92c[_0x3db732['toLowerCase']()]=_0x1a7f84);}}}let _0xd87e11;if(_0x589c77?.[_0x100f44(0x144)])try{_0xd87e11=JSON[_0x100f44(0x169)](_0x589c77[_0x100f44(0x144)]);}catch{_0xd87e11=_0x589c77[_0x100f44(0x144)];}return{'method':_0x589c77?.[_0x100f44(0x157)]??'GET','url':_0x576873,'headers':_0x19d92c,'body':_0xd87e11};}[a154_0x1cc1c2(0x152)](_0x5b90e1){const _0x3a1d72=a154_0x1cc1c2,_0x1fd884=this[_0x3a1d72(0x145)][_0x3a1d72(0x153)](_0x47ca62=>!_0x47ca62[_0x3a1d72(0x172)]);if(_0x1fd884[_0x3a1d72(0x139)]>0x0){const _0x3305ee=_0x1fd884['map'](_0x3f230b=>{const _0x8178bd=_0x3a1d72,_0x39f5ff=_0x3f230b[_0x8178bd(0x16e)]?'\x20('+_0x3f230b['description']+')':'',_0x5a062d=_0x3f230b[_0x8178bd(0x17a)][_0x8178bd(0x136)]('\x0a')[_0x8178bd(0x174)](0x2,0x5)[_0x8178bd(0x160)]('\x0a');return _0x8178bd(0x13e)+_0x39f5ff+_0x8178bd(0x182)+_0x5a062d;});_0x5b90e1[_0x3a1d72(0x141)](_0x1fd884[_0x3a1d72(0x139)]+_0x3a1d72(0x137)+_0x3305ee[_0x3a1d72(0x160)]('\x0a\x0a'));}}[a154_0x1cc1c2(0x147)](){const _0x1c2208=a154_0x1cc1c2;return[...this[_0x1c2208(0x16f)]];}[a154_0x1cc1c2(0x15b)](){const _0x40edc3=a154_0x1cc1c2;return this[_0x40edc3(0x16f)][this[_0x40edc3(0x16f)]['length']-0x1];}[a154_0x1cc1c2(0x14d)](_0x1a8070,_0x1cd190){const _0x885c67=a154_0x1cc1c2;return this[_0x885c67(0x16f)][_0x885c67(0x15a)](_0x374d48=>{const _0x35438b=_0x885c67;if(_0x374d48[_0x35438b(0x157)][_0x35438b(0x151)]()!==_0x1a8070[_0x35438b(0x151)]())return![];if(typeof _0x1cd190==='string')return _0x374d48[_0x35438b(0x15f)][_0x35438b(0x17b)](_0x1cd190);return _0x1cd190['test'](_0x374d48[_0x35438b(0x15f)]);});}[a154_0x1cc1c2(0x15d)](_0x2018d3){const _0x2c0b67=a154_0x1cc1c2;return this[_0x2c0b67(0x145)][_0x2018d3]?.['matchCount']??0x0;}[a154_0x1cc1c2(0x149)](){const _0x579024=a154_0x1cc1c2;this['stubs']=[],this[_0x579024(0x16f)]=[],this['fetchMock']=null;}static['getStatusText'](_0x13430a){const _0x210200=a154_0x1cc1c2,_0x3dfcd5={0xc8:'OK',0xc9:_0x210200(0x16d),0xcc:_0x210200(0x17f),0x190:_0x210200(0x142),0x191:_0x210200(0x156),0x193:_0x210200(0x148),0x194:_0x210200(0x13b),0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:_0x210200(0x180),0x1f4:'Internal\x20Server\x20Error',0x1f6:'Bad\x20Gateway',0x1f7:_0x210200(0x134)};return _0x3dfcd5[_0x13430a]??'Unknown';}}function a154_0xa1a9(_0x261107,_0x241439){_0x261107=_0x261107-0x131;const _0x353a04=a154_0x353a();let _0xa1a90c=_0x353a04[_0x261107];return _0xa1a90c;}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a154_0x5c9fb8=a154_0x2915;function a154_0x3095(){const _0x54a61d=['Forbidden','Service\x20Unavailable','jsonResponseWithHeaders','205458GBsPbC','getRequests','Registered\x20stubs:\x0a','No\x20stub\x20matched\x20request:\x20','responder','headers','createFetch','entries','\x20registered\x20at:\x0a','Unknown','No\x20Content','8923869hfrUcl','verify','327988kMUmkk','stack','forEach','includes','test','host','getStatusText','withQuery','requests','method','pathname','some','matchCount','2268800cZZnbn','networkError','Unauthorized','Conflict','91511aEzegR','description','isArray','url','toLowerCase','td-api','GET','application/json','wasCalled','Bad\x20Gateway','simple','534YMxvOt','join','slice','unnamed\x20stub','stubs','fetchMock','fail','rfc9457','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','registerWithInspector','parseRequest','mockImplementation','every','Not\x20Found','error','24uLQhfo','toUpperCase','50BfufOI','matcher','string','text/plain','Unprocessable\x20Entity','jsonResponse','body','reset','Too\x20Many\x20Requests','matched','stringify','withBody','8186497jamGJS','Internal\x20Server\x20Error','split','1469148ZYYvnd','register','filter','12vvvbmS','map','Unmatched\x20stub','textResponse','Bad\x20Request','parse','REST','8UgMAzg','length','Request\x20body:\x20'];a154_0x3095=function(){return _0x54a61d;};return a154_0x3095();}(function(_0x3f0b09,_0x3484a8){const _0x4b29aa=a154_0x2915,_0x492841=_0x3f0b09();while(!![]){try{const _0x1fd5e0=-parseInt(_0x4b29aa(0x106))/0x1*(parseInt(_0x4b29aa(0x113))/0x2)+-parseInt(_0x4b29aa(0x103))/0x3+-parseInt(_0x4b29aa(0x120))/0x4*(-parseInt(_0x4b29aa(0xf4))/0x5)+-parseInt(_0x4b29aa(0xe3))/0x6*(parseInt(_0x4b29aa(0xd8))/0x7)+parseInt(_0x4b29aa(0x10d))/0x8*(parseInt(_0x4b29aa(0x11e))/0x9)+parseInt(_0x4b29aa(0xd4))/0xa+parseInt(_0x4b29aa(0x100))/0xb*(parseInt(_0x4b29aa(0xf2))/0xc);if(_0x1fd5e0===_0x3484a8)break;else _0x492841['push'](_0x492841['shift']());}catch(_0x270802){_0x492841['push'](_0x492841['shift']());}}}(a154_0x3095,0x9c774));import{vi}from'vitest';export class HTTPMockRegistry{[a154_0x5c9fb8(0xe7)]=[];[a154_0x5c9fb8(0xcf)]=[];[a154_0x5c9fb8(0xe8)]=null;[a154_0x5c9fb8(0x10c)](_0x937adc,_0x3c3460){return _0x9a5303=>{const _0x22caa5=a154_0x2915;if(_0x9a5303[_0x22caa5(0xd0)][_0x22caa5(0xf3)]()!==_0x937adc['toUpperCase']())return![];const _0x2b94f5=new URL(_0x9a5303[_0x22caa5(0xdb)]);if(typeof _0x3c3460===_0x22caa5(0xf6))return _0x2b94f5['pathname']===_0x3c3460||_0x2b94f5[_0x22caa5(0xd1)][_0x22caa5(0x123)](_0x3c3460);return _0x3c3460[_0x22caa5(0x124)](_0x2b94f5[_0x22caa5(0xd1)]);};}[a154_0x5c9fb8(0xce)](_0x1cdf46,_0x8c82fd){return _0x5342ce=>{const _0x3089d9=a154_0x2915;if(!_0x1cdf46(_0x5342ce))return![];const _0x5c77b1=new URL(_0x5342ce[_0x3089d9(0xdb)]);return Object['entries'](_0x8c82fd)[_0x3089d9(0xef)](([_0x5d5a10,_0x4ab5ba])=>_0x5c77b1['searchParams']['get'](_0x5d5a10)===_0x4ab5ba);};}[a154_0x5c9fb8(0xff)](_0x289789,_0x1dbe10){return _0x11a07f=>{const _0x327381=a154_0x2915;if(!_0x289789(_0x11a07f))return![];if(typeof _0x1dbe10==='function')return _0x1dbe10(_0x11a07f['body']);return JSON[_0x327381(0xfe)](_0x11a07f['body'])===JSON['stringify'](_0x1dbe10);};}['withHost'](_0x16a081,_0x1de48e){return _0x395fed=>{const _0x278519=a154_0x2915;if(!_0x16a081(_0x395fed))return![];const _0x290e0d=new URL(_0x395fed[_0x278519(0xdb)]);return _0x290e0d[_0x278519(0x125)]===_0x1de48e;};}[a154_0x5c9fb8(0x104)](_0x2b8eb0,_0x29bf1d,_0x2b158c){const _0x15d92b=a154_0x5c9fb8;this[_0x15d92b(0xe7)]['push']({'matcher':_0x2b8eb0,'responder':_0x29bf1d,'matched':![],'matchCount':0x0,'stack':new Error()[_0x15d92b(0x121)]??'','description':_0x2b158c?.['description']});}[a154_0x5c9fb8(0xec)](_0x56bc5b,_0x25244d,_0x32addd){const _0x4dec89=a154_0x5c9fb8,_0x4688f8=_0x4cf239=>{const _0x5207aa=a154_0x2915;return _0x32addd(_0x4cf239[_0x5207aa(0xfa)],_0x4cf239),_0x25244d(_0x4cf239);};this[_0x4dec89(0x104)](_0x56bc5b,_0x4688f8);}static[a154_0x5c9fb8(0xf9)](_0x227b0b,_0x3aba56=0xc8){const _0x4b67db=a154_0x5c9fb8;return()=>new Response(JSON['stringify'](_0x227b0b),{'status':_0x3aba56,'headers':{'Content-Type':_0x4b67db(0xdf)}});}static['errorResponse'](_0x1976bd,_0x41eb6f,_0x511c78=a154_0x5c9fb8(0xe2)){return()=>{const _0x24dc70=a154_0x2915;let _0x2ecd58;switch(_0x511c78){case _0x24dc70(0xdd):_0x2ecd58={'errors':{'error':_0x41eb6f,'message':_0x41eb6f,'severity':_0x24dc70(0xf1),'status_code':_0x1976bd}};break;case _0x24dc70(0xea):_0x2ecd58={'type':'https://api.treasuredata.com/errors/'+_0x1976bd,'title':HTTPMockRegistry[_0x24dc70(0x126)](_0x1976bd),'status':_0x1976bd,'detail':_0x41eb6f};break;default:_0x2ecd58={'error':_0x41eb6f};}return new Response(JSON['stringify'](_0x2ecd58),{'status':_0x1976bd,'headers':{'Content-Type':_0x24dc70(0xdf)}});};}static[a154_0x5c9fb8(0x112)](_0xcf4f58,_0x3dbcb6,_0x1384e9=0xc8){const _0x36e3d9=a154_0x5c9fb8;return()=>new Response(JSON['stringify'](_0xcf4f58),{'status':_0x1384e9,'headers':{'Content-Type':_0x36e3d9(0xdf),..._0x3dbcb6}});}static[a154_0x5c9fb8(0x109)](_0xd161b5,_0x2e9114=0xc8){const _0xda0d23=a154_0x5c9fb8;return()=>new Response(_0xd161b5,{'status':_0x2e9114,'headers':{'Content-Type':_0xda0d23(0xf7)}});}static[a154_0x5c9fb8(0xd5)](_0x746af){return()=>{throw new Error(_0x746af);};}[a154_0x5c9fb8(0x119)](){const _0x409fdf=a154_0x5c9fb8;return this[_0x409fdf(0xe8)]=vi['fn']()[_0x409fdf(0xee)](async(_0x385508,_0xefe9b4)=>{const _0x4e974f=_0x409fdf,_0x4cd7b9=this[_0x4e974f(0xed)](_0x385508,_0xefe9b4);this[_0x4e974f(0xcf)]['push'](_0x4cd7b9);for(const _0x58b2d6 of this[_0x4e974f(0xe7)]){if(_0x58b2d6[_0x4e974f(0xf5)](_0x4cd7b9))return _0x58b2d6[_0x4e974f(0xfd)]=!![],_0x58b2d6['matchCount']++,_0x58b2d6[_0x4e974f(0x117)](_0x4cd7b9);}const _0x63dd6d=this[_0x4e974f(0xe7)][_0x4e974f(0x107)]((_0x5abde7,_0x36cbd0)=>'\x20\x20'+(_0x36cbd0+0x1)+'.\x20'+(_0x5abde7[_0x4e974f(0xd9)]??_0x4e974f(0xe6)))[_0x4e974f(0xe4)]('\x0a');throw new Error(_0x4e974f(0x116)+_0x4cd7b9['method']+'\x20'+_0x4cd7b9[_0x4e974f(0xdb)]+'\x0a'+(_0x4e974f(0x10f)+JSON[_0x4e974f(0xfe)](_0x4cd7b9[_0x4e974f(0xfa)])+'\x0a')+(_0x4e974f(0x115)+(_0x63dd6d||'\x20\x20(none)')));}),this['fetchMock'];}[a154_0x5c9fb8(0xed)](_0x1acc42,_0x45e75e){const _0x19425a=a154_0x5c9fb8,_0x5081ba={};if(_0x45e75e?.[_0x19425a(0x118)]){if(_0x45e75e[_0x19425a(0x118)]instanceof Headers)_0x45e75e[_0x19425a(0x118)][_0x19425a(0x122)]((_0x189084,_0x5f4465)=>{_0x5081ba[_0x5f4465['toLowerCase']()]=_0x189084;});else{if(Array[_0x19425a(0xda)](_0x45e75e[_0x19425a(0x118)]))for(const [_0x503782,_0x2a53b2]of _0x45e75e['headers']){_0x5081ba[_0x503782['toLowerCase']()]=_0x2a53b2;}else for(const [_0xa3b83a,_0x1d94af]of Object[_0x19425a(0x11a)](_0x45e75e['headers'])){_0x1d94af!==undefined&&(_0x5081ba[_0xa3b83a[_0x19425a(0xdc)]()]=_0x1d94af);}}}let _0x4cac8a;if(_0x45e75e?.[_0x19425a(0xfa)])try{_0x4cac8a=JSON[_0x19425a(0x10b)](_0x45e75e[_0x19425a(0xfa)]);}catch{_0x4cac8a=_0x45e75e[_0x19425a(0xfa)];}return{'method':_0x45e75e?.[_0x19425a(0xd0)]??_0x19425a(0xde),'url':_0x1acc42,'headers':_0x5081ba,'body':_0x4cac8a};}[a154_0x5c9fb8(0x11f)](_0x44e8e6){const _0x14ace6=a154_0x5c9fb8,_0x4a25da=this['stubs'][_0x14ace6(0x105)](_0x18a215=>!_0x18a215[_0x14ace6(0xfd)]);if(_0x4a25da[_0x14ace6(0x10e)]>0x0){const _0x376a60=_0x4a25da[_0x14ace6(0x107)](_0x2dba26=>{const _0x534b11=_0x14ace6,_0x1db0e8=_0x2dba26[_0x534b11(0xd9)]?'\x20('+_0x2dba26[_0x534b11(0xd9)]+')':'',_0x4956c8=_0x2dba26[_0x534b11(0x121)][_0x534b11(0x102)]('\x0a')[_0x534b11(0xe5)](0x2,0x5)[_0x534b11(0xe4)]('\x0a');return _0x534b11(0x108)+_0x1db0e8+_0x534b11(0x11b)+_0x4956c8;});_0x44e8e6[_0x14ace6(0xe9)](_0x4a25da[_0x14ace6(0x10e)]+_0x14ace6(0xeb)+_0x376a60[_0x14ace6(0xe4)]('\x0a\x0a'));}}[a154_0x5c9fb8(0x114)](){const _0x14a67e=a154_0x5c9fb8;return[...this[_0x14a67e(0xcf)]];}['getLastRequest'](){const _0x11611e=a154_0x5c9fb8;return this[_0x11611e(0xcf)][this[_0x11611e(0xcf)][_0x11611e(0x10e)]-0x1];}[a154_0x5c9fb8(0xe0)](_0x1499f9,_0x3a7d33){const _0x10bc3f=a154_0x5c9fb8;return this[_0x10bc3f(0xcf)][_0x10bc3f(0xd2)](_0x2e8aff=>{const _0x19ff5b=_0x10bc3f;if(_0x2e8aff[_0x19ff5b(0xd0)][_0x19ff5b(0xf3)]()!==_0x1499f9[_0x19ff5b(0xf3)]())return![];if(typeof _0x3a7d33===_0x19ff5b(0xf6))return _0x2e8aff['url'][_0x19ff5b(0x123)](_0x3a7d33);return _0x3a7d33[_0x19ff5b(0x124)](_0x2e8aff[_0x19ff5b(0xdb)]);});}['getMatchCount'](_0x3b8c1f){const _0x26ce6e=a154_0x5c9fb8;return this[_0x26ce6e(0xe7)][_0x3b8c1f]?.[_0x26ce6e(0xd3)]??0x0;}[a154_0x5c9fb8(0xfb)](){this['stubs']=[],this['requests']=[],this['fetchMock']=null;}static[a154_0x5c9fb8(0x126)](_0x222b7f){const _0x26c548=a154_0x5c9fb8,_0xa0dda3={0xc8:'OK',0xc9:'Created',0xcc:_0x26c548(0x11d),0x190:_0x26c548(0x10a),0x191:_0x26c548(0xd6),0x193:_0x26c548(0x110),0x194:_0x26c548(0xf0),0x199:_0x26c548(0xd7),0x1a6:_0x26c548(0xf8),0x1ad:_0x26c548(0xfc),0x1f4:_0x26c548(0x101),0x1f6:_0x26c548(0xe1),0x1f7:_0x26c548(0x111)};return _0xa0dda3[_0x222b7f]??_0x26c548(0x11c);}}function a154_0x2915(_0x595800,_0x27bb72){_0x595800=_0x595800-0xce;const _0x3095ca=a154_0x3095();let _0x291520=_0x3095ca[_0x595800];return _0x291520;}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0xcb955f,_0x9c2b00){var _0xfdd07a=a155_0x57f3,_0x13db7d=_0xcb955f();while(!![]){try{var _0x15bc4f=parseInt(_0xfdd07a(0x1b1))/0x1*(-parseInt(_0xfdd07a(0x1a8))/0x2)+parseInt(_0xfdd07a(0x1ab))/0x3*(-parseInt(_0xfdd07a(0x1af))/0x4)+-parseInt(_0xfdd07a(0x1ae))/0x5*(-parseInt(_0xfdd07a(0x1aa))/0x6)+parseInt(_0xfdd07a(0x1ad))/0x7+-parseInt(_0xfdd07a(0x1a6))/0x8+parseInt(_0xfdd07a(0x1b0))/0x9*(-parseInt(_0xfdd07a(0x1ac))/0xa)+parseInt(_0xfdd07a(0x1a7))/0xb*(parseInt(_0xfdd07a(0x1a9))/0xc);if(_0x15bc4f===_0x9c2b00)break;else _0x13db7d['push'](_0x13db7d['shift']());}catch(_0x263c8a){_0x13db7d['push'](_0x13db7d['shift']());}}}(a155_0x3fcf,0x595e1));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a155_0x57f3(_0x3821e1,_0xfc1701){_0x3821e1=_0x3821e1-0x1a6;var _0x3fcfe3=a155_0x3fcf();var _0x57f3ff=_0x3fcfe3[_0x3821e1];return _0x57f3ff;}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';function a155_0x3fcf(){var _0x2bd245=['4CGsviG','18OJediu','2mIgqKR','1949176HgnWSA','14684857QYVVjU','428426wOKaiC','12fltkHs','1794ydzsEk','2132292dFvmUD','2053570UCOPRg','2383724AJDlxN','8095cnNvgU'];a155_0x3fcf=function(){return _0x2bd245;};return a155_0x3fcf();}
1
+ (function(_0xf29621,_0x4781c5){var _0x5b5276=a155_0x15a1,_0x4cc6d3=_0xf29621();while(!![]){try{var _0x3fa96a=-parseInt(_0x5b5276(0xf4))/0x1+-parseInt(_0x5b5276(0xf2))/0x2*(parseInt(_0x5b5276(0xed))/0x3)+parseInt(_0x5b5276(0xef))/0x4+-parseInt(_0x5b5276(0xf5))/0x5*(-parseInt(_0x5b5276(0xf1))/0x6)+-parseInt(_0x5b5276(0xee))/0x7+-parseInt(_0x5b5276(0xf3))/0x8*(parseInt(_0x5b5276(0xf0))/0x9)+parseInt(_0x5b5276(0xec))/0xa;if(_0x3fa96a===_0x4781c5)break;else _0x4cc6d3['push'](_0x4cc6d3['shift']());}catch(_0x286d55){_0x4cc6d3['push'](_0x4cc6d3['shift']());}}}(a155_0xabc0,0xc9780));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a155_0xabc0(){var _0x413559=['929777KDJRLZ','40aQjLxQ','27328870jjDpeS','3qaLUPi','11171055FZPBog','3205192VNWRzq','56601wchLWp','337872uBQhDp','336874WexGsV','592xQyVMc'];a155_0xabc0=function(){return _0x413559;};return a155_0xabc0();}function a155_0x15a1(_0x2775b1,_0xf76812){_0x2775b1=_0x2775b1-0xec;var _0xabc0e9=a155_0xabc0();var _0x15a1d9=_0xabc0e9[_0x2775b1];return _0x15a1d9;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a156_0x89ef(){const _0x53eb0c=['map','282573YhrdxW','56792WtdJPD','push','length','32ZneqpI','4160313ltBdhD','11eYJoMY','134jlkCzZ','1460704UABLnq','14985560lOwaZb','3721030SXIKFF','1724viCafJ','6gKQPAx'];a156_0x89ef=function(){return _0x53eb0c;};return a156_0x89ef();}(function(_0x3abbac,_0x9f249f){const _0x1b7d43=a156_0x59a8,_0x499e21=_0x3abbac();while(!![]){try{const _0x364909=parseInt(_0x1b7d43(0x141))/0x1*(-parseInt(_0x1b7d43(0x145))/0x2)+parseInt(_0x1b7d43(0x13a))/0x3+-parseInt(_0x1b7d43(0x13b))/0x4+parseInt(_0x1b7d43(0x144))/0x5*(parseInt(_0x1b7d43(0x146))/0x6)+parseInt(_0x1b7d43(0x142))/0x7*(parseInt(_0x1b7d43(0x13e))/0x8)+parseInt(_0x1b7d43(0x13f))/0x9+-parseInt(_0x1b7d43(0x143))/0xa*(parseInt(_0x1b7d43(0x140))/0xb);if(_0x364909===_0x9f249f)break;else _0x499e21['push'](_0x499e21['shift']());}catch(_0x4c0329){_0x499e21['push'](_0x499e21['shift']());}}}(a156_0x89ef,0x7bcc8));function a156_0x59a8(_0x4947b9,_0x22c04c){_0x4947b9=_0x4947b9-0x139;const _0x89efe5=a156_0x89ef();let _0x59a8e9=_0x89efe5[_0x4947b9];return _0x59a8e9;}export async function batchAsync(_0x5f1cb0,_0x4c90b5,_0x444c0e=0xa){const _0x268c51=a156_0x59a8,_0x5ab03a=[];for(let _0xac97ad=0x0;_0xac97ad<_0x5f1cb0[_0x268c51(0x13d)];_0xac97ad+=_0x444c0e){const _0x2cf0cb=_0x5f1cb0['slice'](_0xac97ad,_0xac97ad+_0x444c0e),_0x219b35=await Promise['all'](_0x2cf0cb[_0x268c51(0x139)](_0x4c90b5));_0x5ab03a[_0x268c51(0x13c)](..._0x219b35);}return _0x5ab03a;}
1
+ function a156_0x31fe(_0x4a0fae,_0xdcffb5){_0x4a0fae=_0x4a0fae-0x81;const _0x777047=a156_0x7770();let _0x31fe05=_0x777047[_0x4a0fae];return _0x31fe05;}(function(_0x30aa94,_0xa7b707){const _0x49622c=a156_0x31fe,_0x35670a=_0x30aa94();while(!![]){try{const _0xed89fc=-parseInt(_0x49622c(0x90))/0x1+-parseInt(_0x49622c(0x8e))/0x2*(-parseInt(_0x49622c(0x8d))/0x3)+-parseInt(_0x49622c(0x8f))/0x4+parseInt(_0x49622c(0x8c))/0x5+parseInt(_0x49622c(0x88))/0x6*(-parseInt(_0x49622c(0x86))/0x7)+parseInt(_0x49622c(0x85))/0x8*(parseInt(_0x49622c(0x8a))/0x9)+-parseInt(_0x49622c(0x89))/0xa*(-parseInt(_0x49622c(0x84))/0xb);if(_0xed89fc===_0xa7b707)break;else _0x35670a['push'](_0x35670a['shift']());}catch(_0x3b3cb5){_0x35670a['push'](_0x35670a['shift']());}}}(a156_0x7770,0x6b20a));function a156_0x7770(){const _0xcaff2e=['1324152tWbMiO','470mSTjVi','33327UpiDML','length','3248750CbBSVF','1257JXbzhk','1068EMBrSk','2651364BJQnUd','139772ksyoRh','push','map','slice','165143WzgKYq','224pEKhmR','14thZwoa','all'];a156_0x7770=function(){return _0xcaff2e;};return a156_0x7770();}export async function batchAsync(_0x26cb12,_0x226388,_0x317cbc=0xa){const _0x3511fc=a156_0x31fe,_0xbad9ac=[];for(let _0x648b24=0x0;_0x648b24<_0x26cb12[_0x3511fc(0x8b)];_0x648b24+=_0x317cbc){const _0x228c8f=_0x26cb12[_0x3511fc(0x83)](_0x648b24,_0x648b24+_0x317cbc),_0xef3a2a=await Promise[_0x3511fc(0x87)](_0x228c8f[_0x3511fc(0x82)](_0x226388));_0xbad9ac[_0x3511fc(0x81)](..._0xef3a2a);}return _0xbad9ac;}
@@ -1 +1 @@
1
- (function(_0x17810a,_0x22ad8b){const _0x45cf19=a157_0x4e64,_0x306bae=_0x17810a();while(!![]){try{const _0x738e49=-parseInt(_0x45cf19(0x1db))/0x1*(parseInt(_0x45cf19(0x1e4))/0x2)+-parseInt(_0x45cf19(0x1ef))/0x3+-parseInt(_0x45cf19(0x1dd))/0x4*(-parseInt(_0x45cf19(0x1ed))/0x5)+parseInt(_0x45cf19(0x1d5))/0x6+parseInt(_0x45cf19(0x1d7))/0x7+parseInt(_0x45cf19(0x1d6))/0x8*(parseInt(_0x45cf19(0x1e7))/0x9)+-parseInt(_0x45cf19(0x1ec))/0xa*(parseInt(_0x45cf19(0x1e0))/0xb);if(_0x738e49===_0x22ad8b)break;else _0x306bae['push'](_0x306bae['shift']());}catch(_0x3ca784){_0x306bae['push'](_0x306bae['shift']());}}}(a157_0x364a,0xc5b31));import*as a157_0x8e05f1 from'chalk';function a157_0x364a(){const _0x3d8f00=['158590AveeYZ','color','506475oJZyRI','map','object','stdout','null','5232702xlUTMF','72FUWlqR','9274482rRsnYT','boolean','green','string','1544731gYekKi','length','76CWQIGd','join','dim','16486943kRWufe','isArray','isTTY','entries','2gXadIR','number','yellow','1222461NSzhDG','stringify','blue','repeat','cyan','10KrTUij'];a157_0x364a=function(){return _0x3d8f00;};return a157_0x364a();}const Chalk=a157_0x8e05f1['Chalk'];export function shouldUseColor(_0x1a2c6f={}){const _0x22cfc2=a157_0x4e64;if(_0x1a2c6f['noColor']===!![])return![];if(_0x1a2c6f[_0x22cfc2(0x1ee)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x22cfc2(0x1f2)][_0x22cfc2(0x1e2)]??![];}export function getChalk(_0x54dc39={}){if(shouldUseColor(_0x54dc39))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x6a2a65,_0xedb7a2={}){const _0x365df9=a157_0x4e64;return getChalk(_0xedb7a2)[_0x365df9(0x1df)](_0x6a2a65);}export function colorHeader(_0x12654c,_0x463c1b={}){const _0x70f8f7=a157_0x4e64;return getChalk(_0x463c1b)[_0x70f8f7(0x1eb)](_0x12654c);}export function colorType(_0x1a8268,_0x37cc04={}){const _0x536776=a157_0x4e64;return getChalk(_0x37cc04)[_0x536776(0x1df)](_0x1a8268);}export function colorJSONKey(_0x182b15,_0x4f3ee1={}){const _0x5bf610=a157_0x4e64;return getChalk(_0x4f3ee1)[_0x5bf610(0x1e9)](_0x182b15);}export function colorJSONString(_0xae6c57,_0x3284b5={}){const _0x153aa3=a157_0x4e64;return getChalk(_0x3284b5)[_0x153aa3(0x1d9)](_0xae6c57);}export function colorJSONNumber(_0x2a4ade,_0x7620bd={}){const _0x302718=a157_0x4e64;return getChalk(_0x7620bd)[_0x302718(0x1eb)](_0x2a4ade);}export function colorJSONBoolean(_0x50f7ed,_0xd8a009={}){const _0x1edce6=a157_0x4e64;return getChalk(_0xd8a009)[_0x1edce6(0x1e6)](_0x50f7ed);}function a157_0x4e64(_0x13ccfc,_0x47bfcb){_0x13ccfc=_0x13ccfc-0x1d5;const _0x364afc=a157_0x364a();let _0x4e6408=_0x364afc[_0x13ccfc];return _0x4e6408;}export function colorJSONNull(_0x1e6b7e,_0x214dad={}){return getChalk(_0x214dad)['dim'](_0x1e6b7e);}export function colorizeJSONCompact(_0x50ede5,_0x3d21e3={}){const _0x3ae842=a157_0x4e64;if(!shouldUseColor(_0x3d21e3))return JSON['stringify'](_0x50ede5);if(_0x50ede5===null)return colorJSONNull('null',_0x3d21e3);if(typeof _0x50ede5==='boolean')return colorJSONBoolean(String(_0x50ede5),_0x3d21e3);if(typeof _0x50ede5===_0x3ae842(0x1e5))return colorJSONNumber(String(_0x50ede5),_0x3d21e3);if(typeof _0x50ede5===_0x3ae842(0x1da))return colorJSONString(JSON[_0x3ae842(0x1e8)](_0x50ede5),_0x3d21e3);if(Array[_0x3ae842(0x1e1)](_0x50ede5)){if(_0x50ede5['length']===0x0)return'[]';const _0x8a40d2=_0x50ede5[_0x3ae842(0x1f0)](_0x107023=>colorizeJSONCompact(_0x107023,_0x3d21e3));return'['+_0x8a40d2[_0x3ae842(0x1de)](',')+']';}if(typeof _0x50ede5===_0x3ae842(0x1f1)){const _0x2f555c=Object[_0x3ae842(0x1e3)](_0x50ede5);if(_0x2f555c[_0x3ae842(0x1dc)]===0x0)return'{}';const _0x348448=_0x2f555c[_0x3ae842(0x1f0)](([_0x3b7d55,_0x24930c])=>{const _0x5d37d9=colorJSONKey(JSON['stringify'](_0x3b7d55),_0x3d21e3),_0xb7f016=colorizeJSONCompact(_0x24930c,_0x3d21e3);return _0x5d37d9+':'+_0xb7f016;});return'{'+_0x348448['join'](',')+'}';}return String(_0x50ede5);}export function colorizeJSON(_0x37732f,_0x347b11={},_0x2c1452=0x0){const _0x94f93d=a157_0x4e64;if(!shouldUseColor(_0x347b11))return JSON[_0x94f93d(0x1e8)](_0x37732f,null,0x2);const _0x33986c='\x20'[_0x94f93d(0x1ea)](_0x2c1452),_0x5a568a=_0x2c1452+0x2;if(_0x37732f===null)return colorJSONNull(_0x94f93d(0x1f3),_0x347b11);if(typeof _0x37732f===_0x94f93d(0x1d8))return colorJSONBoolean(String(_0x37732f),_0x347b11);if(typeof _0x37732f===_0x94f93d(0x1e5))return colorJSONNumber(String(_0x37732f),_0x347b11);if(typeof _0x37732f===_0x94f93d(0x1da))return colorJSONString(JSON['stringify'](_0x37732f),_0x347b11);if(Array[_0x94f93d(0x1e1)](_0x37732f)){if(_0x37732f[_0x94f93d(0x1dc)]===0x0)return'[]';const _0xbf3dca=_0x37732f[_0x94f93d(0x1f0)](_0x2d08d0=>{const _0x557248=colorizeJSON(_0x2d08d0,_0x347b11,_0x5a568a);return''+'\x20'['repeat'](_0x5a568a)+_0x557248;});return'[\x0a'+_0xbf3dca[_0x94f93d(0x1de)](',\x0a')+('\x0a'+_0x33986c+']');}if(typeof _0x37732f===_0x94f93d(0x1f1)){const _0x286101=Object[_0x94f93d(0x1e3)](_0x37732f);if(_0x286101[_0x94f93d(0x1dc)]===0x0)return'{}';const _0x4c6e3f=_0x286101[_0x94f93d(0x1f0)](([_0x6177c1,_0x323a13])=>{const _0x566ab6=_0x94f93d,_0x2efa00=colorJSONKey(JSON[_0x566ab6(0x1e8)](_0x6177c1),_0x347b11),_0x56811a=colorizeJSON(_0x323a13,_0x347b11,_0x5a568a);return''+'\x20'['repeat'](_0x5a568a)+_0x2efa00+':\x20'+_0x56811a;});return'{\x0a'+_0x4c6e3f['join'](',\x0a')+('\x0a'+_0x33986c+'}');}return String(_0x37732f);}
1
+ (function(_0x2d2ff3,_0x39c160){const _0xc8641a=a157_0x5394,_0x2cbb78=_0x2d2ff3();while(!![]){try{const _0x57ad37=parseInt(_0xc8641a(0x110))/0x1*(parseInt(_0xc8641a(0x100))/0x2)+-parseInt(_0xc8641a(0x101))/0x3*(-parseInt(_0xc8641a(0x114))/0x4)+-parseInt(_0xc8641a(0x116))/0x5+parseInt(_0xc8641a(0x112))/0x6*(parseInt(_0xc8641a(0x103))/0x7)+-parseInt(_0xc8641a(0x106))/0x8+-parseInt(_0xc8641a(0x105))/0x9*(parseInt(_0xc8641a(0x10f))/0xa)+parseInt(_0xc8641a(0x111))/0xb;if(_0x57ad37===_0x39c160)break;else _0x2cbb78['push'](_0x2cbb78['shift']());}catch(_0x17290d){_0x2cbb78['push'](_0x2cbb78['shift']());}}}(a157_0x952b,0xd0398));import*as a157_0x24bdec from'chalk';const Chalk=a157_0x24bdec['Chalk'];export function shouldUseColor(_0x443c20={}){const _0x342efb=a157_0x5394;if(_0x443c20['noColor']===!![])return![];if(_0x443c20[_0x342efb(0x10a)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x342efb(0x10c)][_0x342efb(0x10e)]??![];}export function getChalk(_0x3d3d3a={}){if(shouldUseColor(_0x3d3d3a))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x42f76e,_0x126682={}){const _0x3f214d=a157_0x5394;return getChalk(_0x126682)[_0x3f214d(0x102)](_0x42f76e);}export function colorHeader(_0x59d18c,_0x195160={}){const _0x470274=a157_0x5394;return getChalk(_0x195160)[_0x470274(0x119)](_0x59d18c);}export function colorType(_0x26b294,_0x5bfa99={}){return getChalk(_0x5bfa99)['dim'](_0x26b294);}function a157_0x952b(){const _0x31c9dc=['77230sqquCv','3UyohPP','29991896SzXRvT','1104MEPVWU','green','1459012GjTiCI','entries','6462110wGSenl','join','null','cyan','number','boolean','isArray','string','19704WFlLHF','3azFsSO','dim','26005XUQJvl','length','423oyIoIQ','10368912dHqYiU','map','stringify','repeat','color','object','stdout','yellow','isTTY'];a157_0x952b=function(){return _0x31c9dc;};return a157_0x952b();}export function colorJSONKey(_0x33600a,_0x4961f2={}){return getChalk(_0x4961f2)['blue'](_0x33600a);}export function colorJSONString(_0x2a88fa,_0x56fc0b={}){const _0x22c24e=a157_0x5394;return getChalk(_0x56fc0b)[_0x22c24e(0x113)](_0x2a88fa);}export function colorJSONNumber(_0x4274ea,_0x489fa9={}){const _0x3d0454=a157_0x5394;return getChalk(_0x489fa9)[_0x3d0454(0x119)](_0x4274ea);}export function colorJSONBoolean(_0x405694,_0x20deac={}){const _0x4221ab=a157_0x5394;return getChalk(_0x20deac)[_0x4221ab(0x10d)](_0x405694);}function a157_0x5394(_0x23b386,_0x339877){_0x23b386=_0x23b386-0xfd;const _0x952be8=a157_0x952b();let _0x53945c=_0x952be8[_0x23b386];return _0x53945c;}export function colorJSONNull(_0x436932,_0xd0b146={}){const _0x2db45f=a157_0x5394;return getChalk(_0xd0b146)[_0x2db45f(0x102)](_0x436932);}export function colorizeJSONCompact(_0x406090,_0x41c9d6={}){const _0x25582d=a157_0x5394;if(!shouldUseColor(_0x41c9d6))return JSON[_0x25582d(0x108)](_0x406090);if(_0x406090===null)return colorJSONNull(_0x25582d(0x118),_0x41c9d6);if(typeof _0x406090===_0x25582d(0xfd))return colorJSONBoolean(String(_0x406090),_0x41c9d6);if(typeof _0x406090==='number')return colorJSONNumber(String(_0x406090),_0x41c9d6);if(typeof _0x406090===_0x25582d(0xff))return colorJSONString(JSON[_0x25582d(0x108)](_0x406090),_0x41c9d6);if(Array[_0x25582d(0xfe)](_0x406090)){if(_0x406090[_0x25582d(0x104)]===0x0)return'[]';const _0x5267a5=_0x406090[_0x25582d(0x107)](_0x10cf39=>colorizeJSONCompact(_0x10cf39,_0x41c9d6));return'['+_0x5267a5[_0x25582d(0x117)](',')+']';}if(typeof _0x406090==='object'){const _0x22832b=Object['entries'](_0x406090);if(_0x22832b[_0x25582d(0x104)]===0x0)return'{}';const _0x1db4d2=_0x22832b['map'](([_0x3b2104,_0x3cd350])=>{const _0x41c38f=_0x25582d,_0x44c364=colorJSONKey(JSON[_0x41c38f(0x108)](_0x3b2104),_0x41c9d6),_0x5ca20b=colorizeJSONCompact(_0x3cd350,_0x41c9d6);return _0x44c364+':'+_0x5ca20b;});return'{'+_0x1db4d2['join'](',')+'}';}return String(_0x406090);}export function colorizeJSON(_0x3b0472,_0x1e22b6={},_0x2889c8=0x0){const _0x4ecfbd=a157_0x5394;if(!shouldUseColor(_0x1e22b6))return JSON['stringify'](_0x3b0472,null,0x2);const _0x39714d='\x20'['repeat'](_0x2889c8),_0x5eb120=_0x2889c8+0x2;if(_0x3b0472===null)return colorJSONNull('null',_0x1e22b6);if(typeof _0x3b0472===_0x4ecfbd(0xfd))return colorJSONBoolean(String(_0x3b0472),_0x1e22b6);if(typeof _0x3b0472===_0x4ecfbd(0x11a))return colorJSONNumber(String(_0x3b0472),_0x1e22b6);if(typeof _0x3b0472===_0x4ecfbd(0xff))return colorJSONString(JSON[_0x4ecfbd(0x108)](_0x3b0472),_0x1e22b6);if(Array[_0x4ecfbd(0xfe)](_0x3b0472)){if(_0x3b0472['length']===0x0)return'[]';const _0x520ea7=_0x3b0472['map'](_0x236c91=>{const _0x5511ec=_0x4ecfbd,_0x2529c8=colorizeJSON(_0x236c91,_0x1e22b6,_0x5eb120);return''+'\x20'[_0x5511ec(0x109)](_0x5eb120)+_0x2529c8;});return'[\x0a'+_0x520ea7[_0x4ecfbd(0x117)](',\x0a')+('\x0a'+_0x39714d+']');}if(typeof _0x3b0472===_0x4ecfbd(0x10b)){const _0x5bdeb3=Object[_0x4ecfbd(0x115)](_0x3b0472);if(_0x5bdeb3['length']===0x0)return'{}';const _0x2ab49f=_0x5bdeb3[_0x4ecfbd(0x107)](([_0x54f0f8,_0x4ab2e4])=>{const _0xb1b54e=_0x4ecfbd,_0xde74cf=colorJSONKey(JSON['stringify'](_0x54f0f8),_0x1e22b6),_0x22d7e5=colorizeJSON(_0x4ab2e4,_0x1e22b6,_0x5eb120);return''+'\x20'[_0xb1b54e(0x109)](_0x5eb120)+_0xde74cf+':\x20'+_0x22d7e5;});return'{\x0a'+_0x2ab49f[_0x4ecfbd(0x117)](',\x0a')+('\x0a'+_0x39714d+'}');}return String(_0x3b0472);}
@@ -1 +1 @@
1
- (function(_0x6983bc,_0x42b665){const _0x5619a4=a158_0x3ab0,_0x4ecbc5=_0x6983bc();while(!![]){try{const _0x382c0e=-parseInt(_0x5619a4(0xf8))/0x1+-parseInt(_0x5619a4(0x112))/0x2+-parseInt(_0x5619a4(0xf5))/0x3*(parseInt(_0x5619a4(0x115))/0x4)+parseInt(_0x5619a4(0xff))/0x5*(-parseInt(_0x5619a4(0x10b))/0x6)+-parseInt(_0x5619a4(0x103))/0x7+parseInt(_0x5619a4(0x113))/0x8*(-parseInt(_0x5619a4(0xfa))/0x9)+parseInt(_0x5619a4(0x111))/0xa;if(_0x382c0e===_0x42b665)break;else _0x4ecbc5['push'](_0x4ecbc5['shift']());}catch(_0x3062c6){_0x4ecbc5['push'](_0x4ecbc5['shift']());}}}(a158_0x5404,0xa4128));import a158_0x8f652e from'chalk';export function generateDiff(_0x5aa389,_0x525170){const _0x338572=a158_0x3ab0,_0xb388c=_0x5aa389[_0x338572(0xf7)]('\x0a'),_0x445c07=_0x525170[_0x338572(0xf7)]('\x0a'),_0x1c1efb=[],_0x3bdaeb=computeLCS(_0xb388c,_0x445c07);let _0x11629f=0x0,_0x34083e=0x0,_0x5a4bb1=0x0;while(_0x11629f<_0xb388c['length']||_0x34083e<_0x445c07['length']){if(_0x5a4bb1<_0x3bdaeb[_0x338572(0x109)]&&_0x11629f<_0xb388c['length']&&_0xb388c[_0x11629f]===_0x3bdaeb[_0x5a4bb1])_0x34083e<_0x445c07[_0x338572(0x109)]&&_0x445c07[_0x34083e]===_0x3bdaeb[_0x5a4bb1]?(_0x1c1efb['push']({'type':_0x338572(0xfe),'content':_0xb388c[_0x11629f]}),_0x11629f++,_0x34083e++,_0x5a4bb1++):(_0x1c1efb[_0x338572(0x10c)]({'type':_0x338572(0x10a),'content':_0x445c07[_0x34083e]}),_0x34083e++);else{if(_0x5a4bb1<_0x3bdaeb['length']&&_0x34083e<_0x445c07['length']&&_0x445c07[_0x34083e]===_0x3bdaeb[_0x5a4bb1])_0x1c1efb[_0x338572(0x10c)]({'type':_0x338572(0x100),'content':_0xb388c[_0x11629f]}),_0x11629f++;else{if(_0x11629f<_0xb388c[_0x338572(0x109)]&&(_0x5a4bb1>=_0x3bdaeb[_0x338572(0x109)]||_0xb388c[_0x11629f]!==_0x3bdaeb[_0x5a4bb1]))_0x1c1efb['push']({'type':'removed','content':_0xb388c[_0x11629f]}),_0x11629f++;else _0x34083e<_0x445c07[_0x338572(0x109)]&&(_0x1c1efb[_0x338572(0x10c)]({'type':_0x338572(0x10a),'content':_0x445c07[_0x34083e]}),_0x34083e++);}}}return _0x1c1efb;}function computeLCS(_0x32a0e8,_0x565a27){const _0x400a63=a158_0x3ab0,_0x258133=_0x32a0e8['length'],_0xc1c38e=_0x565a27[_0x400a63(0x109)],_0x3d891d=Array(_0x258133+0x1)[_0x400a63(0x106)](null)['map'](()=>Array(_0xc1c38e+0x1)['fill'](0x0));for(let _0x458332=0x1;_0x458332<=_0x258133;_0x458332++){for(let _0x26a192=0x1;_0x26a192<=_0xc1c38e;_0x26a192++){_0x32a0e8[_0x458332-0x1]===_0x565a27[_0x26a192-0x1]?_0x3d891d[_0x458332][_0x26a192]=_0x3d891d[_0x458332-0x1][_0x26a192-0x1]+0x1:_0x3d891d[_0x458332][_0x26a192]=Math[_0x400a63(0xf9)](_0x3d891d[_0x458332-0x1][_0x26a192],_0x3d891d[_0x458332][_0x26a192-0x1]);}}const _0x17b39d=[];let _0x3373bb=_0x258133,_0x16edbd=_0xc1c38e;while(_0x3373bb>0x0&&_0x16edbd>0x0){if(_0x32a0e8[_0x3373bb-0x1]===_0x565a27[_0x16edbd-0x1])_0x17b39d['unshift'](_0x32a0e8[_0x3373bb-0x1]),_0x3373bb--,_0x16edbd--;else _0x3d891d[_0x3373bb-0x1][_0x16edbd]>_0x3d891d[_0x3373bb][_0x16edbd-0x1]?_0x3373bb--:_0x16edbd--;}return _0x17b39d;}function a158_0x5404(){const _0x5f3301=['30egGdvY','green','split','133803XQPvRq','max','9FHeVER','\x20-\x20','some','join','unchanged','490tQOTUq','removed','old','has','3401713uohquD','repeat','\x20\x20...','fill','padStart','add','length','added','80124gYBUMe','push','new','\x20\x20\x20','cyan','type','52376030ygDQmt','734512VBrabs','9911864BIEXvb','red','412348bysUyp','size','content'];a158_0x5404=function(){return _0x5f3301;};return a158_0x5404();}export function formatDiffWithColors(_0x13c4ac,_0x3fd625=0x3){const _0x36a936=a158_0x3ab0,_0x48db90=new Set();_0x13c4ac['forEach']((_0x38304b,_0x4068e9)=>{const _0x5abce1=a158_0x3ab0;_0x38304b[_0x5abce1(0x110)]!==_0x5abce1(0xfe)&&_0x48db90['add'](_0x4068e9);});if(_0x48db90[_0x36a936(0xf3)]===0x0)return'';const _0x16eadc=new Set();for(const _0x15636c of _0x48db90){for(let _0x8703f2=Math[_0x36a936(0xf9)](0x0,_0x15636c-_0x3fd625);_0x8703f2<=Math['min'](_0x13c4ac[_0x36a936(0x109)]-0x1,_0x15636c+_0x3fd625);_0x8703f2++){_0x16eadc[_0x36a936(0x108)](_0x8703f2);}}const _0x208d99=[];let _0xd7924a=-0x1;const _0x3fff6f=_0x13c4ac[_0x36a936(0x109)],_0x5997a6=Math[_0x36a936(0xf9)](0x3,String(_0x3fff6f)[_0x36a936(0x109)]),_0x5f3eb2=[];let _0xa45ec4=0x0,_0x8b07b9=0x0;for(const _0x17d6a3 of _0x13c4ac){if(_0x17d6a3[_0x36a936(0x110)]===_0x36a936(0x100))_0xa45ec4++,_0x5f3eb2['push']({'old':_0xa45ec4,'new':0x0});else _0x17d6a3['type']===_0x36a936(0x10a)?(_0x8b07b9++,_0x5f3eb2[_0x36a936(0x10c)]({'old':0x0,'new':_0x8b07b9})):(_0xa45ec4++,_0x8b07b9++,_0x5f3eb2['push']({'old':_0xa45ec4,'new':_0x8b07b9}));}for(let _0x37e7b7=0x0;_0x37e7b7<_0x13c4ac[_0x36a936(0x109)];_0x37e7b7++){if(!_0x16eadc[_0x36a936(0x102)](_0x37e7b7))continue;_0xd7924a!==-0x1&&_0x37e7b7>_0xd7924a+0x1&&_0x208d99[_0x36a936(0x10c)](a158_0x8f652e[_0x36a936(0x10f)](_0x36a936(0x105)));_0xd7924a=_0x37e7b7;const _0x4ec80c=_0x13c4ac[_0x37e7b7],_0x11d93a=_0x5f3eb2[_0x37e7b7],_0x26499b=_0x11d93a['old']>0x0?String(_0x11d93a[_0x36a936(0x101)])[_0x36a936(0x107)](_0x5997a6):'\x20'[_0x36a936(0x104)](_0x5997a6),_0x4dc440=_0x11d93a['new']>0x0?String(_0x11d93a[_0x36a936(0x10d)])['padStart'](_0x5997a6):'\x20'[_0x36a936(0x104)](_0x5997a6);switch(_0x4ec80c[_0x36a936(0x110)]){case _0x36a936(0x100):_0x208d99[_0x36a936(0x10c)](a158_0x8f652e[_0x36a936(0x114)](_0x26499b+'\x20'+_0x4dc440+_0x36a936(0xfb)+_0x4ec80c[_0x36a936(0xf4)]));break;case _0x36a936(0x10a):_0x208d99[_0x36a936(0x10c)](a158_0x8f652e[_0x36a936(0xf6)](_0x26499b+'\x20'+_0x4dc440+'\x20+\x20'+_0x4ec80c['content']));break;default:_0x208d99['push'](a158_0x8f652e['dim'](_0x26499b+'\x20'+_0x4dc440+_0x36a936(0x10e)+_0x4ec80c[_0x36a936(0xf4)]));break;}}return _0x208d99[_0x36a936(0xfd)]('\x0a');}function a158_0x3ab0(_0xd66104,_0x1da5ae){_0xd66104=_0xd66104-0xf3;const _0x5404b8=a158_0x5404();let _0x3ab0d7=_0x5404b8[_0xd66104];return _0x3ab0d7;}export function hasChanges(_0x3416b0){const _0x1f8279=a158_0x3ab0;return _0x3416b0[_0x1f8279(0xfc)](_0x49e9d9=>_0x49e9d9[_0x1f8279(0x110)]!==_0x1f8279(0xfe));}
1
+ (function(_0x1aa894,_0x12e363){const _0x27236b=a158_0x1d9d,_0x39ac0f=_0x1aa894();while(!![]){try{const _0x29dd60=parseInt(_0x27236b(0x177))/0x1*(parseInt(_0x27236b(0x168))/0x2)+parseInt(_0x27236b(0x185))/0x3*(parseInt(_0x27236b(0x16d))/0x4)+-parseInt(_0x27236b(0x167))/0x5*(-parseInt(_0x27236b(0x17b))/0x6)+parseInt(_0x27236b(0x184))/0x7+parseInt(_0x27236b(0x174))/0x8+-parseInt(_0x27236b(0x17a))/0x9*(-parseInt(_0x27236b(0x186))/0xa)+-parseInt(_0x27236b(0x16a))/0xb*(parseInt(_0x27236b(0x17e))/0xc);if(_0x29dd60===_0x12e363)break;else _0x39ac0f['push'](_0x39ac0f['shift']());}catch(_0x5990c5){_0x39ac0f['push'](_0x39ac0f['shift']());}}}(a158_0x2d35,0xf324f));import a158_0x597efc from'chalk';function a158_0x1d9d(_0xacef14,_0x480f30){_0xacef14=_0xacef14-0x166;const _0x2d35c9=a158_0x2d35();let _0x1d9df0=_0x2d35c9[_0xacef14];return _0x1d9df0;}export function generateDiff(_0x34f290,_0x11545e){const _0x231244=a158_0x1d9d,_0x4b11ad=_0x34f290[_0x231244(0x188)]('\x0a'),_0x2fa2c3=_0x11545e['split']('\x0a'),_0x52dfb5=[],_0x609280=computeLCS(_0x4b11ad,_0x2fa2c3);let _0x49bc49=0x0,_0x375382=0x0,_0x468422=0x0;while(_0x49bc49<_0x4b11ad[_0x231244(0x16e)]||_0x375382<_0x2fa2c3['length']){if(_0x468422<_0x609280[_0x231244(0x16e)]&&_0x49bc49<_0x4b11ad[_0x231244(0x16e)]&&_0x4b11ad[_0x49bc49]===_0x609280[_0x468422])_0x375382<_0x2fa2c3[_0x231244(0x16e)]&&_0x2fa2c3[_0x375382]===_0x609280[_0x468422]?(_0x52dfb5[_0x231244(0x17c)]({'type':_0x231244(0x178),'content':_0x4b11ad[_0x49bc49]}),_0x49bc49++,_0x375382++,_0x468422++):(_0x52dfb5['push']({'type':_0x231244(0x173),'content':_0x2fa2c3[_0x375382]}),_0x375382++);else{if(_0x468422<_0x609280[_0x231244(0x16e)]&&_0x375382<_0x2fa2c3[_0x231244(0x16e)]&&_0x2fa2c3[_0x375382]===_0x609280[_0x468422])_0x52dfb5[_0x231244(0x17c)]({'type':_0x231244(0x182),'content':_0x4b11ad[_0x49bc49]}),_0x49bc49++;else{if(_0x49bc49<_0x4b11ad['length']&&(_0x468422>=_0x609280[_0x231244(0x16e)]||_0x4b11ad[_0x49bc49]!==_0x609280[_0x468422]))_0x52dfb5[_0x231244(0x17c)]({'type':_0x231244(0x182),'content':_0x4b11ad[_0x49bc49]}),_0x49bc49++;else _0x375382<_0x2fa2c3['length']&&(_0x52dfb5[_0x231244(0x17c)]({'type':_0x231244(0x173),'content':_0x2fa2c3[_0x375382]}),_0x375382++);}}}return _0x52dfb5;}function computeLCS(_0x5c8e18,_0xe0e205){const _0x4d9ee2=a158_0x1d9d,_0x34d8bb=_0x5c8e18[_0x4d9ee2(0x16e)],_0xb4c84d=_0xe0e205['length'],_0x479495=Array(_0x34d8bb+0x1)[_0x4d9ee2(0x176)](null)[_0x4d9ee2(0x169)](()=>Array(_0xb4c84d+0x1)[_0x4d9ee2(0x176)](0x0));for(let _0x6010cc=0x1;_0x6010cc<=_0x34d8bb;_0x6010cc++){for(let _0x5cddca=0x1;_0x5cddca<=_0xb4c84d;_0x5cddca++){_0x5c8e18[_0x6010cc-0x1]===_0xe0e205[_0x5cddca-0x1]?_0x479495[_0x6010cc][_0x5cddca]=_0x479495[_0x6010cc-0x1][_0x5cddca-0x1]+0x1:_0x479495[_0x6010cc][_0x5cddca]=Math['max'](_0x479495[_0x6010cc-0x1][_0x5cddca],_0x479495[_0x6010cc][_0x5cddca-0x1]);}}const _0x444d9a=[];let _0x5bde14=_0x34d8bb,_0xf1a7dc=_0xb4c84d;while(_0x5bde14>0x0&&_0xf1a7dc>0x0){if(_0x5c8e18[_0x5bde14-0x1]===_0xe0e205[_0xf1a7dc-0x1])_0x444d9a[_0x4d9ee2(0x17d)](_0x5c8e18[_0x5bde14-0x1]),_0x5bde14--,_0xf1a7dc--;else _0x479495[_0x5bde14-0x1][_0xf1a7dc]>_0x479495[_0x5bde14][_0xf1a7dc-0x1]?_0x5bde14--:_0xf1a7dc--;}return _0x444d9a;}export function formatDiffWithColors(_0x358b6d,_0x183ec6=0x3){const _0x5972dd=a158_0x1d9d,_0x12ff22=new Set();_0x358b6d[_0x5972dd(0x175)]((_0x143a9d,_0x437038)=>{const _0x37ba3d=_0x5972dd;_0x143a9d['type']!==_0x37ba3d(0x178)&&_0x12ff22[_0x37ba3d(0x172)](_0x437038);});if(_0x12ff22[_0x5972dd(0x18b)]===0x0)return'';const _0x4338a5=new Set();for(const _0x275fb5 of _0x12ff22){for(let _0x5bfecd=Math['max'](0x0,_0x275fb5-_0x183ec6);_0x5bfecd<=Math['min'](_0x358b6d[_0x5972dd(0x16e)]-0x1,_0x275fb5+_0x183ec6);_0x5bfecd++){_0x4338a5[_0x5972dd(0x172)](_0x5bfecd);}}const _0x29fac8=[];let _0xf09eb7=-0x1;const _0x935822=_0x358b6d[_0x5972dd(0x16e)],_0x4c896a=Math[_0x5972dd(0x17f)](0x3,String(_0x935822)['length']),_0x57bdd3=[];let _0x5c46f5=0x0,_0x4a0dbe=0x0;for(const _0xb13027 of _0x358b6d){if(_0xb13027[_0x5972dd(0x187)]===_0x5972dd(0x182))_0x5c46f5++,_0x57bdd3[_0x5972dd(0x17c)]({'old':_0x5c46f5,'new':0x0});else _0xb13027[_0x5972dd(0x187)]===_0x5972dd(0x173)?(_0x4a0dbe++,_0x57bdd3[_0x5972dd(0x17c)]({'old':0x0,'new':_0x4a0dbe})):(_0x5c46f5++,_0x4a0dbe++,_0x57bdd3[_0x5972dd(0x17c)]({'old':_0x5c46f5,'new':_0x4a0dbe}));}for(let _0x169812=0x0;_0x169812<_0x358b6d[_0x5972dd(0x16e)];_0x169812++){if(!_0x4338a5[_0x5972dd(0x180)](_0x169812))continue;_0xf09eb7!==-0x1&&_0x169812>_0xf09eb7+0x1&&_0x29fac8[_0x5972dd(0x17c)](a158_0x597efc['cyan']('\x20\x20...'));_0xf09eb7=_0x169812;const _0x5e09bc=_0x358b6d[_0x169812],_0x2b67d9=_0x57bdd3[_0x169812],_0x39ff4f=_0x2b67d9['old']>0x0?String(_0x2b67d9[_0x5972dd(0x16c)])['padStart'](_0x4c896a):'\x20'[_0x5972dd(0x166)](_0x4c896a),_0x131545=_0x2b67d9[_0x5972dd(0x16f)]>0x0?String(_0x2b67d9[_0x5972dd(0x16f)])[_0x5972dd(0x181)](_0x4c896a):'\x20'[_0x5972dd(0x166)](_0x4c896a);switch(_0x5e09bc[_0x5972dd(0x187)]){case _0x5972dd(0x182):_0x29fac8[_0x5972dd(0x17c)](a158_0x597efc[_0x5972dd(0x183)](_0x39ff4f+'\x20'+_0x131545+'\x20-\x20'+_0x5e09bc['content']));break;case _0x5972dd(0x173):_0x29fac8['push'](a158_0x597efc[_0x5972dd(0x171)](_0x39ff4f+'\x20'+_0x131545+_0x5972dd(0x18a)+_0x5e09bc[_0x5972dd(0x189)]));break;default:_0x29fac8[_0x5972dd(0x17c)](a158_0x597efc[_0x5972dd(0x16b)](_0x39ff4f+'\x20'+_0x131545+_0x5972dd(0x170)+_0x5e09bc['content']));break;}}return _0x29fac8[_0x5972dd(0x179)]('\x0a');}export function hasChanges(_0x1cf3cc){const _0x32fbf8=a158_0x1d9d;return _0x1cf3cc['some'](_0xa2d957=>_0xa2d957[_0x32fbf8(0x187)]!=='unchanged');}function a158_0x2d35(){const _0x57709d=['12laCuKW','max','has','padStart','removed','red','11933992lShBPA','84eNKQOJ','16341340kFVFoU','type','split','content','\x20+\x20','size','repeat','2296905zIqhwC','3332870Azmoqq','map','78230977UownCp','dim','old','119768IdZhag','length','new','\x20\x20\x20','green','add','added','14437152PZHtSc','forEach','fill','1aOpLjB','unchanged','join','9iqiPYL','6KrkMPs','push','unshift'];a158_0x2d35=function(){return _0x57709d;};return a158_0x2d35();}
@@ -1 +1 @@
1
- (function(_0x4feb11,_0x426f2f){const _0x38d471=a159_0x5b51,_0x1b6ea1=_0x4feb11();while(!![]){try{const _0x1db761=parseInt(_0x38d471(0xaa))/0x1+-parseInt(_0x38d471(0xb0))/0x2*(-parseInt(_0x38d471(0xb2))/0x3)+-parseInt(_0x38d471(0xb6))/0x4+-parseInt(_0x38d471(0xb4))/0x5+parseInt(_0x38d471(0xad))/0x6*(-parseInt(_0x38d471(0xab))/0x7)+parseInt(_0x38d471(0xb7))/0x8*(-parseInt(_0x38d471(0xa7))/0x9)+parseInt(_0x38d471(0xae))/0xa;if(_0x1db761===_0x426f2f)break;else _0x1b6ea1['push'](_0x1b6ea1['shift']());}catch(_0xb5b84f){_0x1b6ea1['push'](_0x1b6ea1['shift']());}}}(a159_0x5281,0x3d5b8));import*as a159_0x3963ca from'node:fs';import*as a159_0x35e68b from'node:path';export function setSecureFilePermissions(_0x422929){const _0x3b97c5=a159_0x5b51;try{a159_0x3963ca[_0x3b97c5(0xac)](_0x422929,0x180);}catch{console[_0x3b97c5(0xb5)](_0x3b97c5(0xa9)+_0x422929);}}export function setSecureDirectoryPermissions(_0x543ea8){const _0xc2eb41=a159_0x5b51;try{a159_0x3963ca[_0xc2eb41(0xac)](_0x543ea8,0x1c0);}catch{console[_0xc2eb41(0xb5)](_0xc2eb41(0xa9)+_0x543ea8);}}function a159_0x5b51(_0x2fbfad,_0x202880){_0x2fbfad=_0x2fbfad-0xa7;const _0x5281ab=a159_0x5281();let _0x5b5197=_0x5281ab[_0x2fbfad];return _0x5b5197;}export function createSecureDirectory(_0x355904){const _0x5e8170=a159_0x5b51;!a159_0x3963ca[_0x5e8170(0xb8)](_0x355904)&&(a159_0x3963ca['mkdirSync'](_0x355904,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x355904));}function a159_0x5281(){const _0x2c75a6=['8zlXKve','existsSync','Warning:\x20','1930617sWezJw','mode','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','63386gKtelE','717157aqvxIH','chmodSync','12dERGtr','9608440XFECDu','toString','746278gpoVVB','writeFileSync','3areAgL','statSync','1875275bSYVni','warn','1406316XxItEI'];a159_0x5281=function(){return _0x2c75a6;};return a159_0x5281();}export function validateSecureFilePermissions(_0x429ae4){const _0x4b35d=a159_0x5b51;try{const _0x3e715e=a159_0x3963ca[_0x4b35d(0xb3)](_0x429ae4),_0x267236=_0x3e715e[_0x4b35d(0xa8)]&0x1ff,_0x11a767=(_0x267236&0x3f)!==0x0;if(_0x11a767)return console[_0x4b35d(0xb5)](_0x4b35d(0xb9)+_0x429ae4+'\x20has\x20insecure\x20permissions\x20('+_0x267236[_0x4b35d(0xaf)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x5df07c,_0x47c00e){const _0x2eccac=a159_0x5b51,_0x3b530b=a159_0x35e68b['dirname'](_0x5df07c);createSecureDirectory(_0x3b530b),a159_0x3963ca[_0x2eccac(0xb1)](_0x5df07c,_0x47c00e,{'mode':0x180}),setSecureFilePermissions(_0x5df07c);}
1
+ function a159_0x2df8(){const _0x3d60df=['mkdirSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','8656665OBegOA','statSync','Warning:\x20','11531982VSjZqi','existsSync','dirname','1316204FCTDuu','Should\x20be\x200600\x20or\x20more\x20restrictive.','warn','1826253JaSTss','6MmtHNg','3383112dpjisx','3gBSebx','\x20has\x20insecure\x20permissions\x20(','chmodSync','19589895TMFrEk','3600628ttCfNf','toString'];a159_0x2df8=function(){return _0x3d60df;};return a159_0x2df8();}function a159_0x367f(_0x274828,_0x4a248e){_0x274828=_0x274828-0x110;const _0x2df83b=a159_0x2df8();let _0x367fcf=_0x2df83b[_0x274828];return _0x367fcf;}(function(_0x231453,_0x44a9d0){const _0x550213=a159_0x367f,_0x8417dc=_0x231453();while(!![]){try{const _0x405cb8=-parseInt(_0x550213(0x118))/0x1+-parseInt(_0x550213(0x115))/0x2*(parseInt(_0x550213(0x11b))/0x3)+parseInt(_0x550213(0x11f))/0x4+-parseInt(_0x550213(0x123))/0x5+-parseInt(_0x550213(0x119))/0x6*(-parseInt(_0x550213(0x112))/0x7)+parseInt(_0x550213(0x11a))/0x8+parseInt(_0x550213(0x11e))/0x9;if(_0x405cb8===_0x44a9d0)break;else _0x8417dc['push'](_0x8417dc['shift']());}catch(_0x2a7dab){_0x8417dc['push'](_0x8417dc['shift']());}}}(a159_0x2df8,0xe366f));import*as a159_0x439cb9 from'node:fs';import*as a159_0x435678 from'node:path';export function setSecureFilePermissions(_0x294372){const _0x3144cc=a159_0x367f;try{a159_0x439cb9[_0x3144cc(0x11d)](_0x294372,0x180);}catch{console[_0x3144cc(0x117)](_0x3144cc(0x122)+_0x294372);}}export function setSecureDirectoryPermissions(_0x122795){const _0x17ff1d=a159_0x367f;try{a159_0x439cb9[_0x17ff1d(0x11d)](_0x122795,0x1c0);}catch{console[_0x17ff1d(0x117)](_0x17ff1d(0x122)+_0x122795);}}export function createSecureDirectory(_0x5eb42f){const _0x3362aa=a159_0x367f;!a159_0x439cb9[_0x3362aa(0x113)](_0x5eb42f)&&(a159_0x439cb9[_0x3362aa(0x121)](_0x5eb42f,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5eb42f));}export function validateSecureFilePermissions(_0x339bbf){const _0x37b6c9=a159_0x367f;try{const _0x27ddc3=a159_0x439cb9[_0x37b6c9(0x110)](_0x339bbf),_0x211981=_0x27ddc3['mode']&0x1ff,_0x5145f7=(_0x211981&0x3f)!==0x0;if(_0x5145f7)return console[_0x37b6c9(0x117)](_0x37b6c9(0x111)+_0x339bbf+_0x37b6c9(0x11c)+_0x211981[_0x37b6c9(0x120)](0x8)+').\x20'+_0x37b6c9(0x116)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2a0ad9,_0x2b7aca){const _0x5904d9=a159_0x367f,_0x9daf5c=a159_0x435678[_0x5904d9(0x114)](_0x2a0ad9);createSecureDirectory(_0x9daf5c),a159_0x439cb9['writeFileSync'](_0x2a0ad9,_0x2b7aca,{'mode':0x180}),setSecureFilePermissions(_0x2a0ad9);}
@@ -1 +1 @@
1
- function a160_0x2e15(){const _0x1c1d78=['utf-8','8NJiFSw','get','stringify','525630YuXsHd','5638721UMxdaU','3081440ZtMydx','2407278gLbnMA','5OEwRfW','1053724sujlQv','parse','1772649wIBiWR','default','228mJJAyQ','trim','550BVEaUX','tdx','12ooraVA','3jENAKP','\x22,\x20cannot\x20register\x20for\x20\x22','set','\x22\x20already\x20registered\x20by\x20\x22','replace'];a160_0x2e15=function(){return _0x1c1d78;};return a160_0x2e15();}(function(_0x1adf0b,_0x34694e){const _0x58ca73=a160_0x10c9,_0x239479=_0x1adf0b();while(!![]){try{const _0x25fc78=-parseInt(_0x58ca73(0x159))/0x1*(-parseInt(_0x58ca73(0x157))/0x2)+parseInt(_0x58ca73(0x15c))/0x3*(parseInt(_0x58ca73(0x16a))/0x4)+-parseInt(_0x58ca73(0x169))/0x5*(-parseInt(_0x58ca73(0x168))/0x6)+-parseInt(_0x58ca73(0x165))/0x7+parseInt(_0x58ca73(0x162))/0x8*(-parseInt(_0x58ca73(0x155))/0x9)+parseInt(_0x58ca73(0x167))/0xa+-parseInt(_0x58ca73(0x166))/0xb*(parseInt(_0x58ca73(0x15b))/0xc);if(_0x25fc78===_0x34694e)break;else _0x239479['push'](_0x239479['shift']());}catch(_0x43f652){_0x239479['push'](_0x239479['shift']());}}}(a160_0x2e15,0x3d3ca));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x1c0047=a160_0x10c9;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x1c0047(0x15a));}function a160_0x10c9(_0x327526,_0x7a57d9){_0x327526=_0x327526-0x155;const _0x2e15ee=a160_0x2e15();let _0x10c9ed=_0x2e15ee[_0x327526];return _0x10c9ed;}const registry=new Map();export function registerGlobalCacheKey(_0x290a17,_0x4302a1){const _0x905ef5=a160_0x10c9,_0x6b1d1c=registry[_0x905ef5(0x163)](_0x290a17);if(_0x6b1d1c&&_0x6b1d1c!==_0x4302a1)throw new Error('Global\x20cache\x20key\x20\x22'+_0x290a17+_0x905ef5(0x15f)+_0x6b1d1c+_0x905ef5(0x15d)+_0x4302a1+'\x22');registry[_0x905ef5(0x15e)](_0x290a17,_0x4302a1);}export function getGlobalCachePath(_0x3d473c){return join(getGlobalCacheDir(),_0x3d473c);}function ensureGlobalCacheDir(){const _0x59901c=getGlobalCacheDir();!existsSync(_0x59901c)&&mkdirSync(_0x59901c,{'recursive':!![]});}function readCacheJson(_0x5dc1ba){const _0x340998=a160_0x10c9,_0x530562=getGlobalCachePath(_0x5dc1ba);if(!existsSync(_0x530562))return undefined;try{const _0x1199b2=readFileSync(_0x530562,_0x340998(0x161));return JSON[_0x340998(0x16b)](_0x1199b2);}catch{return undefined;}}function writeCacheJson(_0x4c89fa,_0x188a1d){const _0x4dec05=a160_0x10c9;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4c89fa),JSON[_0x4dec05(0x164)](_0x188a1d,null,0x2),_0x4dec05(0x161));}function readCacheText(_0x1c9772){const _0x23820b=getGlobalCachePath(_0x1c9772);if(!existsSync(_0x23820b))return undefined;try{return readFileSync(_0x23820b,'utf-8');}catch{return undefined;}}function writeCacheText(_0x2309da,_0x30cc06){const _0x103e92=a160_0x10c9;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2309da),_0x30cc06,_0x103e92(0x161));}function clearCache(_0x354705){const _0x2a7d1c=getGlobalCachePath(_0x354705);if(existsSync(_0x2a7d1c))try{unlinkSync(_0x2a7d1c);}catch{}}function cacheExists(_0x3a43eb){return existsSync(getGlobalCachePath(_0x3a43eb));}export function createGlobalCache(_0x1282eb,_0x5e819c){return registerGlobalCacheKey(_0x1282eb,_0x5e819c),{'read':()=>readCacheJson(_0x1282eb),'write':_0x3032ae=>writeCacheJson(_0x1282eb,_0x3032ae),'clear':()=>clearCache(_0x1282eb),'exists':()=>cacheExists(_0x1282eb),'path':()=>getGlobalCachePath(_0x1282eb)};}export function createGlobalTextCache(_0x2e1180,_0xcef8ba){const _0x260c15=a160_0x10c9;return registerGlobalCacheKey(_0x2e1180,_0xcef8ba),{'read':()=>readCacheText(_0x2e1180)?.[_0x260c15(0x158)]()||undefined,'write':_0x8d63de=>writeCacheText(_0x2e1180,_0x8d63de),'clear':()=>clearCache(_0x2e1180),'exists':()=>cacheExists(_0x2e1180),'path':()=>getGlobalCachePath(_0x2e1180)};}export function createProfileCache(_0x5cfff3,_0x2814fc){const _0x30b5f8=_0x5ee47a=>{const _0x2bebc3=a160_0x10c9,_0x446141=_0x5ee47a||_0x2bebc3(0x156);return _0x5cfff3[_0x2bebc3(0x160)]('{profile}',_0x446141);};return{'read':_0x2ce766=>{const _0x1bbf75=_0x30b5f8(_0x2ce766);return registerGlobalCacheKey(_0x1bbf75,_0x2814fc),readCacheJson(_0x1bbf75);},'write':(_0x342b44,_0x18d1f0)=>{const _0x169d5b=_0x30b5f8(_0x342b44);registerGlobalCacheKey(_0x169d5b,_0x2814fc),writeCacheJson(_0x169d5b,_0x18d1f0);},'clear':_0x2d1e73=>{const _0x26f22c=_0x30b5f8(_0x2d1e73);clearCache(_0x26f22c);},'exists':_0x205fc5=>{const _0x1a2bcc=_0x30b5f8(_0x205fc5);return cacheExists(_0x1a2bcc);},'path':_0x2e257e=>{const _0x445cc9=_0x30b5f8(_0x2e257e);return getGlobalCachePath(_0x445cc9);}};}export function createOptionalProfileCache(_0x20ac04,_0x31fa3d,_0x182d29={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x182d29,_0x9731c7=_0x568469=>{return _0x568469?''+_0x20ac04+profileSeparator+_0x568469+suffix:''+_0x20ac04+suffix;};return{'read':_0x4ecb93=>{const _0x8bf31b=_0x9731c7(_0x4ecb93);return registerGlobalCacheKey(_0x8bf31b,_0x31fa3d),readCacheJson(_0x8bf31b);},'write':(_0x46305c,_0x2ea2aa)=>{const _0x551c98=_0x9731c7(_0x2ea2aa);registerGlobalCacheKey(_0x551c98,_0x31fa3d),writeCacheJson(_0x551c98,_0x46305c);},'clear':_0x1b4b1f=>{const _0x16aecf=_0x9731c7(_0x1b4b1f);clearCache(_0x16aecf);},'exists':_0x29ffa4=>{const _0x40a6f4=_0x9731c7(_0x29ffa4);return cacheExists(_0x40a6f4);},'path':_0xed32a6=>{const _0x587c2b=_0x9731c7(_0xed32a6);return getGlobalCachePath(_0x587c2b);}};}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x1d784e,_0x4e22ff){const _0x31f86e=a160_0x1101,_0x4a31a1=_0x1d784e();while(!![]){try{const _0x51590b=-parseInt(_0x31f86e(0x11d))/0x1*(-parseInt(_0x31f86e(0x118))/0x2)+parseInt(_0x31f86e(0x10c))/0x3+parseInt(_0x31f86e(0x119))/0x4+parseInt(_0x31f86e(0x11e))/0x5+parseInt(_0x31f86e(0x10e))/0x6+parseInt(_0x31f86e(0x11b))/0x7*(-parseInt(_0x31f86e(0x117))/0x8)+-parseInt(_0x31f86e(0x114))/0x9;if(_0x51590b===_0x4e22ff)break;else _0x4a31a1['push'](_0x4a31a1['shift']());}catch(_0x4f06ae){_0x4a31a1['push'](_0x4a31a1['shift']());}}}(a160_0x1e72,0xd3615));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x106930=a160_0x1101;return process.env.TDX_CACHE_DIR||join(homedir(),_0x106930(0x11a),_0x106930(0x113));}const registry=new Map();export function registerGlobalCacheKey(_0x5d29ca,_0x482382){const _0x38ee86=a160_0x1101,_0x3e8663=registry[_0x38ee86(0x115)](_0x5d29ca);if(_0x3e8663&&_0x3e8663!==_0x482382)throw new Error(_0x38ee86(0x11f)+_0x5d29ca+'\x22\x20already\x20registered\x20by\x20\x22'+_0x3e8663+_0x38ee86(0x120)+_0x482382+'\x22');registry['set'](_0x5d29ca,_0x482382);}export function getGlobalCachePath(_0x1bbbac){return join(getGlobalCacheDir(),_0x1bbbac);}function ensureGlobalCacheDir(){const _0x10180c=getGlobalCacheDir();!existsSync(_0x10180c)&&mkdirSync(_0x10180c,{'recursive':!![]});}function readCacheJson(_0x5bc0a7){const _0x5e342e=a160_0x1101,_0x249038=getGlobalCachePath(_0x5bc0a7);if(!existsSync(_0x249038))return undefined;try{const _0xb2a625=readFileSync(_0x249038,_0x5e342e(0x11c));return JSON[_0x5e342e(0x111)](_0xb2a625);}catch{return undefined;}}function writeCacheJson(_0x15951d,_0x3c04a1){const _0x26076f=a160_0x1101;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x15951d),JSON[_0x26076f(0x10f)](_0x3c04a1,null,0x2),_0x26076f(0x11c));}function readCacheText(_0x34a39d){const _0x378579=getGlobalCachePath(_0x34a39d);if(!existsSync(_0x378579))return undefined;try{return readFileSync(_0x378579,'utf-8');}catch{return undefined;}}function a160_0x1e72(){const _0xc28375=['.cache','4347679hTMhhe','utf-8','3134MrJpnl','6038205LLvdDV','Global\x20cache\x20key\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','replace','2060175hFvHRs','trim','8962152zTXiHh','stringify','{profile}','parse','default','tdx','35354601khjkvY','get','clear','8HIjtaE','1052kvgGDW','1514628jtQhHy'];a160_0x1e72=function(){return _0xc28375;};return a160_0x1e72();}function a160_0x1101(_0x3b2588,_0x4979b4){_0x3b2588=_0x3b2588-0x10b;const _0x1e728c=a160_0x1e72();let _0x1101c5=_0x1e728c[_0x3b2588];return _0x1101c5;}function writeCacheText(_0x5cd822,_0x51781b){const _0x48d61d=a160_0x1101;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5cd822),_0x51781b,_0x48d61d(0x11c));}function clearCache(_0x810ae5){const _0xdaa750=getGlobalCachePath(_0x810ae5);if(existsSync(_0xdaa750))try{unlinkSync(_0xdaa750);}catch{}}function cacheExists(_0x148b54){return existsSync(getGlobalCachePath(_0x148b54));}export function createGlobalCache(_0x1bde1f,_0x2afa1e){return registerGlobalCacheKey(_0x1bde1f,_0x2afa1e),{'read':()=>readCacheJson(_0x1bde1f),'write':_0x53164d=>writeCacheJson(_0x1bde1f,_0x53164d),'clear':()=>clearCache(_0x1bde1f),'exists':()=>cacheExists(_0x1bde1f),'path':()=>getGlobalCachePath(_0x1bde1f)};}export function createGlobalTextCache(_0x112e51,_0x12041b){const _0x494a05=a160_0x1101;return registerGlobalCacheKey(_0x112e51,_0x12041b),{'read':()=>readCacheText(_0x112e51)?.[_0x494a05(0x10d)]()||undefined,'write':_0x5d4796=>writeCacheText(_0x112e51,_0x5d4796),'clear':()=>clearCache(_0x112e51),'exists':()=>cacheExists(_0x112e51),'path':()=>getGlobalCachePath(_0x112e51)};}export function createProfileCache(_0x357cad,_0x5a0b10){const _0x4b4e65=_0x51fb5c=>{const _0x9b0d65=a160_0x1101,_0x33f492=_0x51fb5c||_0x9b0d65(0x112);return _0x357cad[_0x9b0d65(0x10b)](_0x9b0d65(0x110),_0x33f492);};return{'read':_0x17aa85=>{const _0x351421=_0x4b4e65(_0x17aa85);return registerGlobalCacheKey(_0x351421,_0x5a0b10),readCacheJson(_0x351421);},'write':(_0x1650e6,_0xe2df8b)=>{const _0x3cd5df=_0x4b4e65(_0x1650e6);registerGlobalCacheKey(_0x3cd5df,_0x5a0b10),writeCacheJson(_0x3cd5df,_0xe2df8b);},'clear':_0x13435b=>{const _0x5f0930=_0x4b4e65(_0x13435b);clearCache(_0x5f0930);},'exists':_0x41f974=>{const _0x37b0c1=_0x4b4e65(_0x41f974);return cacheExists(_0x37b0c1);},'path':_0x5a930b=>{const _0x16358d=_0x4b4e65(_0x5a930b);return getGlobalCachePath(_0x16358d);}};}export function createOptionalProfileCache(_0x1fe9ba,_0x312b8b,_0x3b8e77={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x3b8e77,_0x2dd2b4=_0x42fd4a=>{return _0x42fd4a?''+_0x1fe9ba+profileSeparator+_0x42fd4a+suffix:''+_0x1fe9ba+suffix;};return{'read':_0x2093aa=>{const _0xf97b1f=_0x2dd2b4(_0x2093aa);return registerGlobalCacheKey(_0xf97b1f,_0x312b8b),readCacheJson(_0xf97b1f);},'write':(_0x3eae3a,_0x4564b5)=>{const _0x39af69=_0x2dd2b4(_0x4564b5);registerGlobalCacheKey(_0x39af69,_0x312b8b),writeCacheJson(_0x39af69,_0x3eae3a);},'clear':_0x6d5243=>{const _0xe668fe=_0x2dd2b4(_0x6d5243);clearCache(_0xe668fe);},'exists':_0x16611d=>{const _0x28336c=_0x2dd2b4(_0x16611d);return cacheExists(_0x28336c);},'path':_0x41613d=>{const _0x12028b=_0x2dd2b4(_0x41613d);return getGlobalCachePath(_0x12028b);}};}export function clearGlobalRegistry(){const _0x809a35=a160_0x1101;registry[_0x809a35(0x116)]();}
@@ -1 +1 @@
1
- (function(_0x2f6cd4,_0x429e16){const _0x24bace=a161_0x936b,_0x424c48=_0x2f6cd4();while(!![]){try{const _0x1bf0bc=parseInt(_0x24bace(0x9c))/0x1*(-parseInt(_0x24bace(0x9b))/0x2)+parseInt(_0x24bace(0x90))/0x3*(-parseInt(_0x24bace(0x9a))/0x4)+parseInt(_0x24bace(0x8e))/0x5+parseInt(_0x24bace(0x89))/0x6*(parseInt(_0x24bace(0x99))/0x7)+-parseInt(_0x24bace(0x9e))/0x8+parseInt(_0x24bace(0x8a))/0x9+-parseInt(_0x24bace(0x92))/0xa;if(_0x1bf0bc===_0x429e16)break;else _0x424c48['push'](_0x424c48['shift']());}catch(_0x25de78){_0x424c48['push'](_0x424c48['shift']());}}}(a161_0x541d,0x6e2d1));function a161_0x936b(_0x300f32,_0x56b240){_0x300f32=_0x300f32-0x87;const _0x541d8b=a161_0x541d();let _0x936b8c=_0x541d8b[_0x300f32];return _0x936b8c;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a161_0x541d(){const _0x23b30a=['24JTzRUx','7610202CPyNRE','PERMISSION_DENIED','Permission\x20denied\x20reading\x20file:\x20','message','61375fRJbDS','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','174kgkxvQ','Invalid\x20JSON\x20in\x20file\x20\x27','4856350JNsxlN','ENOENT','NOT_FOUND','\x27:\x20','File\x20not\x20found:\x20','parse','INVALID_ARGUMENT','1280174dCxCoU','876PzRhfr','10238xdaEYe','1WJbreq','Invalid\x20JSON\x20string:\x20','5077152RlizAk','code','INTERNAL'];a161_0x541d=function(){return _0x23b30a;};return a161_0x541d();}export async function loadJSON(_0x296d3d,_0x321627){const _0x499bc2=a161_0x936b;try{if(_0x321627){const _0x55ddee=await readFile(_0x296d3d,'utf-8');try{return JSON[_0x499bc2(0x97)](_0x55ddee);}catch(_0x257c36){throw new SDKError(ErrorCode[_0x499bc2(0x98)],_0x499bc2(0x91)+_0x296d3d+_0x499bc2(0x95)+(_0x257c36 instanceof Error?_0x257c36[_0x499bc2(0x8d)]:String(_0x257c36)));}}else try{return JSON[_0x499bc2(0x97)](_0x296d3d);}catch(_0x4bdb67){throw new SDKError(ErrorCode[_0x499bc2(0x98)],_0x499bc2(0x9d)+(_0x4bdb67 instanceof Error?_0x4bdb67['message']:String(_0x4bdb67)));}}catch(_0x38f7f2){if(_0x38f7f2 instanceof SDKError)throw _0x38f7f2;if(_0x38f7f2 instanceof Error&&'code'in _0x38f7f2){const _0xa70aa9=_0x38f7f2;if(_0xa70aa9[_0x499bc2(0x87)]===_0x499bc2(0x93))throw new SDKError(ErrorCode[_0x499bc2(0x94)],_0x499bc2(0x96)+_0x296d3d);else{if(_0xa70aa9['code']==='EACCES')throw new SDKError(ErrorCode[_0x499bc2(0x8b)],_0x499bc2(0x8c)+_0x296d3d);}}throw new SDKError(ErrorCode[_0x499bc2(0x88)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x38f7f2 instanceof Error?_0x38f7f2[_0x499bc2(0x8d)]:String(_0x38f7f2)));}}export async function loadJSONFromOptions(_0x5501da,_0x55baf7){const _0x44d735=a161_0x936b;if(_0x5501da&&_0x55baf7)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x44d735(0x8f));if(_0x5501da)return await loadJSON(_0x5501da,![]);if(_0x55baf7)return await loadJSON(_0x55baf7,!![]);return undefined;}
1
+ function a161_0x4645(_0x480983,_0x30b4f3){_0x480983=_0x480983-0x1d2;const _0x578739=a161_0x5787();let _0x464514=_0x578739[_0x480983];return _0x464514;}(function(_0x38e0f0,_0x2e06d7){const _0x56af75=a161_0x4645,_0x18706f=_0x38e0f0();while(!![]){try{const _0x2caace=parseInt(_0x56af75(0x1d2))/0x1+-parseInt(_0x56af75(0x1eb))/0x2*(parseInt(_0x56af75(0x1de))/0x3)+parseInt(_0x56af75(0x1e8))/0x4+-parseInt(_0x56af75(0x1d5))/0x5*(parseInt(_0x56af75(0x1dc))/0x6)+parseInt(_0x56af75(0x1d3))/0x7*(-parseInt(_0x56af75(0x1d4))/0x8)+parseInt(_0x56af75(0x1d7))/0x9*(parseInt(_0x56af75(0x1d8))/0xa)+parseInt(_0x56af75(0x1dd))/0xb;if(_0x2caace===_0x2e06d7)break;else _0x18706f['push'](_0x18706f['shift']());}catch(_0xbaf065){_0x18706f['push'](_0x18706f['shift']());}}}(a161_0x5787,0x384dc));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a161_0x5787(){const _0x9b514d=['Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20string:\x20','2ZhbQUT','128986pSZoqb','14WbDWwW','75424wlApBd','35DXWNnQ','File\x20not\x20found:\x20','36279coWbvy','620vzyaft','PERMISSION_DENIED','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','62274ODicmE','1718178GRnMAY','1144257CrFevO','INVALID_ARGUMENT','parse','EACCES','code','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','message','ENOENT','utf-8','NOT_FOUND','673768VIFODG'];a161_0x5787=function(){return _0x9b514d;};return a161_0x5787();}export async function loadJSON(_0x4c27f5,_0x4db551){const _0x560bfd=a161_0x4645;try{if(_0x4db551){const _0x17961c=await readFile(_0x4c27f5,_0x560bfd(0x1e6));try{return JSON[_0x560bfd(0x1e0)](_0x17961c);}catch(_0x25d38e){throw new SDKError(ErrorCode[_0x560bfd(0x1df)],_0x560bfd(0x1db)+_0x4c27f5+'\x27:\x20'+(_0x25d38e instanceof Error?_0x25d38e[_0x560bfd(0x1e4)]:String(_0x25d38e)));}}else try{return JSON[_0x560bfd(0x1e0)](_0x4c27f5);}catch(_0x433fea){throw new SDKError(ErrorCode[_0x560bfd(0x1df)],_0x560bfd(0x1ea)+(_0x433fea instanceof Error?_0x433fea['message']:String(_0x433fea)));}}catch(_0x57f334){if(_0x57f334 instanceof SDKError)throw _0x57f334;if(_0x57f334 instanceof Error&&'code'in _0x57f334){const _0x4ce757=_0x57f334;if(_0x4ce757['code']===_0x560bfd(0x1e5))throw new SDKError(ErrorCode[_0x560bfd(0x1e7)],_0x560bfd(0x1d6)+_0x4c27f5);else{if(_0x4ce757[_0x560bfd(0x1e2)]===_0x560bfd(0x1e1))throw new SDKError(ErrorCode[_0x560bfd(0x1d9)],_0x560bfd(0x1da)+_0x4c27f5);}}throw new SDKError(ErrorCode['INTERNAL'],_0x560bfd(0x1e9)+(_0x57f334 instanceof Error?_0x57f334[_0x560bfd(0x1e4)]:String(_0x57f334)));}}export async function loadJSONFromOptions(_0x89d064,_0x5a7074){const _0x2c24c2=a161_0x4645;if(_0x89d064&&_0x5a7074)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x2c24c2(0x1e3));if(_0x89d064)return await loadJSON(_0x89d064,![]);if(_0x5a7074)return await loadJSON(_0x5a7074,!![]);return undefined;}
@@ -1 +1 @@
1
- const a162_0x125929=a162_0x484e;(function(_0x21d5a3,_0x3ec61d){const _0x135b50=a162_0x484e,_0x518b9f=_0x21d5a3();while(!![]){try{const _0x20c1b5=parseInt(_0x135b50(0x9f))/0x1*(parseInt(_0x135b50(0x8e))/0x2)+-parseInt(_0x135b50(0x99))/0x3+-parseInt(_0x135b50(0x94))/0x4*(-parseInt(_0x135b50(0x9c))/0x5)+parseInt(_0x135b50(0xa1))/0x6+-parseInt(_0x135b50(0x91))/0x7+-parseInt(_0x135b50(0x9d))/0x8*(-parseInt(_0x135b50(0x9e))/0x9)+-parseInt(_0x135b50(0xa2))/0xa;if(_0x20c1b5===_0x3ec61d)break;else _0x518b9f['push'](_0x518b9f['shift']());}catch(_0x3021ea){_0x518b9f['push'](_0x518b9f['shift']());}}}(a162_0x27a3,0xa2730));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a162_0x125929(0x96),registry=new Map();function a162_0x27a3(){const _0x5ef862=['clear','set','296079QFpXKr','\x22\x20already\x20registered\x20by\x20\x22','Cache\x20key\x20\x22','8YgtwMG','\x22,\x20cannot\x20register\x20for\x20\x22','.cache/tdx','get','utf-8','1522239DjTzBZ','stringify','trim','61395dcacvj','8wXbFTz','9757485MIRtZL','28005sTGHQL','parse','7638048PMjxak','19787740Asereu','cwd','58JUeBhT'];a162_0x27a3=function(){return _0x5ef862;};return a162_0x27a3();}export function registerCacheKey(_0x9a3512,_0x59b48d){const _0x47df0a=a162_0x125929,_0x58e8c1=registry[_0x47df0a(0x97)](_0x9a3512);if(_0x58e8c1&&_0x58e8c1!==_0x59b48d)throw new Error(_0x47df0a(0x93)+_0x9a3512+_0x47df0a(0x92)+_0x58e8c1+_0x47df0a(0x95)+_0x59b48d+'\x22');registry[_0x47df0a(0x90)](_0x9a3512,_0x59b48d);}export function getCacheDir(){const _0x1cb18a=a162_0x125929,_0x568810=process[_0x1cb18a(0x8d)](),_0x4814b=_0x568810===parse(_0x568810)['root']?homedir():_0x568810;return join(_0x4814b,LOCAL_CACHE_DIR);}export function getCachePath(_0x3c1210){return join(getCacheDir(),_0x3c1210);}function ensureCacheDir(){const _0x4a67cf=getCacheDir();!existsSync(_0x4a67cf)&&mkdirSync(_0x4a67cf,{'recursive':!![]});}function a162_0x484e(_0x782fe,_0xbd8bb5){_0x782fe=_0x782fe-0x8d;const _0x27a3e8=a162_0x27a3();let _0x484e34=_0x27a3e8[_0x782fe];return _0x484e34;}function readCacheJson(_0x59f1f6){const _0x236c58=a162_0x125929,_0x4d476b=getCachePath(_0x59f1f6);if(!existsSync(_0x4d476b))return undefined;try{const _0x167195=readFileSync(_0x4d476b,_0x236c58(0x98));return JSON[_0x236c58(0xa0)](_0x167195);}catch{return undefined;}}function writeCacheJson(_0x482bd6,_0x133936){const _0x3e6f67=a162_0x125929;ensureCacheDir(),writeFileSync(getCachePath(_0x482bd6),JSON[_0x3e6f67(0x9a)](_0x133936,null,0x2),_0x3e6f67(0x98));}function readCacheText(_0x4d835e){const _0x49cf79=getCachePath(_0x4d835e);if(!existsSync(_0x49cf79))return undefined;try{return readFileSync(_0x49cf79,'utf-8');}catch{return undefined;}}function writeCacheText(_0x49002f,_0x3ecf0c){ensureCacheDir(),writeFileSync(getCachePath(_0x49002f),_0x3ecf0c,'utf-8');}function clearCache(_0x20703d){const _0x504e99=getCachePath(_0x20703d);if(existsSync(_0x504e99))try{unlinkSync(_0x504e99);}catch{}}function cacheExists(_0x3186f4){return existsSync(getCachePath(_0x3186f4));}export function createCache(_0x3b75d2,_0x5eeeed){return registerCacheKey(_0x3b75d2,_0x5eeeed),{'read':()=>readCacheJson(_0x3b75d2),'write':_0x11dfaa=>writeCacheJson(_0x3b75d2,_0x11dfaa),'clear':()=>clearCache(_0x3b75d2),'exists':()=>cacheExists(_0x3b75d2),'path':()=>getCachePath(_0x3b75d2)};}export function createTextCache(_0x2af902,_0x3f0665){const _0x3c7638=a162_0x125929;return registerCacheKey(_0x2af902,_0x3f0665),{'read':()=>readCacheText(_0x2af902)?.[_0x3c7638(0x9b)]()||undefined,'write':_0x53a4f7=>writeCacheText(_0x2af902,_0x53a4f7),'clear':()=>clearCache(_0x2af902),'exists':()=>cacheExists(_0x2af902),'path':()=>getCachePath(_0x2af902)};}export function clearRegistry(){const _0x54a7ab=a162_0x125929;registry[_0x54a7ab(0x8f)]();}
1
+ const a162_0x4e1df1=a162_0x1525;(function(_0x28e470,_0xa8002f){const _0x286171=a162_0x1525,_0x49000c=_0x28e470();while(!![]){try{const _0x5d343c=parseInt(_0x286171(0xa1))/0x1+parseInt(_0x286171(0xa0))/0x2+parseInt(_0x286171(0xad))/0x3+-parseInt(_0x286171(0xa2))/0x4+parseInt(_0x286171(0xa6))/0x5+parseInt(_0x286171(0xaf))/0x6+-parseInt(_0x286171(0x9f))/0x7;if(_0x5d343c===_0xa8002f)break;else _0x49000c['push'](_0x49000c['shift']());}catch(_0x5582ea){_0x49000c['push'](_0x49000c['shift']());}}}(a162_0x37cf,0xcaeb0));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a162_0x4e1df1(0xae),registry=new Map();export function registerCacheKey(_0x2178fc,_0x27618d){const _0x59e054=a162_0x4e1df1,_0x48f695=registry[_0x59e054(0xa8)](_0x2178fc);if(_0x48f695&&_0x48f695!==_0x27618d)throw new Error(_0x59e054(0xa3)+_0x2178fc+'\x22\x20already\x20registered\x20by\x20\x22'+_0x48f695+_0x59e054(0xa7)+_0x27618d+'\x22');registry[_0x59e054(0xac)](_0x2178fc,_0x27618d);}export function getCacheDir(){const _0x460dbd=a162_0x4e1df1,_0x2bb0f1=process[_0x460dbd(0xa9)](),_0xd0c02a=_0x2bb0f1===parse(_0x2bb0f1)[_0x460dbd(0xa4)]?homedir():_0x2bb0f1;return join(_0xd0c02a,LOCAL_CACHE_DIR);}function a162_0x37cf(){const _0x822b10=['get','cwd','parse','trim','set','2495727SPKrjM','.cache/tdx','4817124EGTpMK','utf-8','19788153TVEplY','2825104XjZmve','674965FfylDl','6469628fsSgIQ','Cache\x20key\x20\x22','root','stringify','7765790kmrhBH','\x22,\x20cannot\x20register\x20for\x20\x22'];a162_0x37cf=function(){return _0x822b10;};return a162_0x37cf();}export function getCachePath(_0x515799){return join(getCacheDir(),_0x515799);}function ensureCacheDir(){const _0xb1ff99=getCacheDir();!existsSync(_0xb1ff99)&&mkdirSync(_0xb1ff99,{'recursive':!![]});}function readCacheJson(_0x43a62c){const _0x56fb1c=a162_0x4e1df1,_0x24dd63=getCachePath(_0x43a62c);if(!existsSync(_0x24dd63))return undefined;try{const _0x5a393e=readFileSync(_0x24dd63,_0x56fb1c(0xb0));return JSON[_0x56fb1c(0xaa)](_0x5a393e);}catch{return undefined;}}function writeCacheJson(_0x54e497,_0x1ce562){const _0x1df46f=a162_0x4e1df1;ensureCacheDir(),writeFileSync(getCachePath(_0x54e497),JSON[_0x1df46f(0xa5)](_0x1ce562,null,0x2),_0x1df46f(0xb0));}function readCacheText(_0x47d2aa){const _0x41c234=a162_0x4e1df1,_0x35538c=getCachePath(_0x47d2aa);if(!existsSync(_0x35538c))return undefined;try{return readFileSync(_0x35538c,_0x41c234(0xb0));}catch{return undefined;}}function writeCacheText(_0x2501f5,_0x114fe4){ensureCacheDir(),writeFileSync(getCachePath(_0x2501f5),_0x114fe4,'utf-8');}function clearCache(_0x3d8947){const _0x33e6af=getCachePath(_0x3d8947);if(existsSync(_0x33e6af))try{unlinkSync(_0x33e6af);}catch{}}function cacheExists(_0x369002){return existsSync(getCachePath(_0x369002));}export function createCache(_0x846d9f,_0x5722a9){return registerCacheKey(_0x846d9f,_0x5722a9),{'read':()=>readCacheJson(_0x846d9f),'write':_0x5f38c0=>writeCacheJson(_0x846d9f,_0x5f38c0),'clear':()=>clearCache(_0x846d9f),'exists':()=>cacheExists(_0x846d9f),'path':()=>getCachePath(_0x846d9f)};}export function createTextCache(_0x5409e1,_0x1af6ff){const _0x565c61=a162_0x4e1df1;return registerCacheKey(_0x5409e1,_0x1af6ff),{'read':()=>readCacheText(_0x5409e1)?.[_0x565c61(0xab)]()||undefined,'write':_0x543630=>writeCacheText(_0x5409e1,_0x543630),'clear':()=>clearCache(_0x5409e1),'exists':()=>cacheExists(_0x5409e1),'path':()=>getCachePath(_0x5409e1)};}function a162_0x1525(_0xb73d9c,_0x35fa4c){_0xb73d9c=_0xb73d9c-0x9f;const _0x37cf77=a162_0x37cf();let _0x15253a=_0x37cf77[_0xb73d9c];return _0x15253a;}export function clearRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- const a163_0x36161f=a163_0x1af8;(function(_0x3e0a45,_0xa0282f){const _0x17aa3b=a163_0x1af8,_0x195e7d=_0x3e0a45();while(!![]){try{const _0x3552de=parseInt(_0x17aa3b(0x138))/0x1+-parseInt(_0x17aa3b(0x139))/0x2+parseInt(_0x17aa3b(0x13d))/0x3+-parseInt(_0x17aa3b(0x13c))/0x4+parseInt(_0x17aa3b(0x142))/0x5+parseInt(_0x17aa3b(0x144))/0x6*(-parseInt(_0x17aa3b(0x140))/0x7)+-parseInt(_0x17aa3b(0x12b))/0x8*(-parseInt(_0x17aa3b(0x134))/0x9);if(_0x3552de===_0xa0282f)break;else _0x195e7d['push'](_0x195e7d['shift']());}catch(_0x49d05c){_0x195e7d['push'](_0x195e7d['shift']());}}}(a163_0x270b,0x61acb));function a163_0x1af8(_0x244a1d,_0x5bf36a){_0x244a1d=_0x244a1d-0x12a;const _0x270b54=a163_0x270b();let _0x1af891=_0x270b54[_0x244a1d];return _0x1af891;}import a163_0x9eb131 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a163_0x9eb131,ChalkClass=chalkModule['Chalk']||chalkModule[a163_0x36161f(0x12d)]?.[a163_0x36161f(0x136)];export class DefaultLogFormatter{[a163_0x36161f(0x12f)];[a163_0x36161f(0x13a)];constructor(_0x55f589={}){const _0x24b9a4=a163_0x36161f;this[_0x24b9a4(0x12f)]=_0x55f589[_0x24b9a4(0x12f)]??![],this[_0x24b9a4(0x13a)]=_0x55f589[_0x24b9a4(0x12f)]&&ChalkClass?new ChalkClass({'level':0x3}):a163_0x9eb131;}[a163_0x36161f(0x12e)](_0x2ee25c){const _0x21e68c=a163_0x36161f,_0x2e231e=formatTimestamp(_0x2ee25c[_0x21e68c(0x133)]),_0x95c36=logLevelToString(_0x2ee25c[_0x21e68c(0x12a)]);if(!this[_0x21e68c(0x12f)])return _0x2e231e+'\x20['+_0x95c36+_0x21e68c(0x131)+_0x2ee25c[_0x21e68c(0x12c)]+']\x20'+_0x2ee25c['message'];const _0x129e47=this[_0x21e68c(0x13a)]['dim'](_0x2e231e),_0x4352ec=this[_0x21e68c(0x130)](_0x95c36,_0x2ee25c[_0x21e68c(0x12a)]),_0x99fa47=this[_0x21e68c(0x13a)][_0x21e68c(0x143)]('['+_0x2ee25c[_0x21e68c(0x12c)]+']');return _0x129e47+'\x20'+_0x4352ec+'\x20'+_0x99fa47+'\x20'+_0x2ee25c[_0x21e68c(0x13b)];}[a163_0x36161f(0x130)](_0xcd6477,_0x40abec){const _0x4de6ca=a163_0x36161f;switch(_0x40abec){case LogLevel[_0x4de6ca(0x13f)]:return this[_0x4de6ca(0x13a)][_0x4de6ca(0x137)]('['+_0xcd6477+']');case LogLevel['DEBUG']:return this[_0x4de6ca(0x13a)]['green']('['+_0xcd6477+']');case LogLevel['INFO']:return this[_0x4de6ca(0x13a)]['cyan']('['+_0xcd6477+']');case LogLevel[_0x4de6ca(0x135)]:return this[_0x4de6ca(0x13a)][_0x4de6ca(0x132)]('['+_0xcd6477+']');case LogLevel[_0x4de6ca(0x141)]:return this['chalk'][_0x4de6ca(0x13e)]('['+_0xcd6477+']');default:return'['+_0xcd6477+']';}}}function a163_0x270b(){const _0x20b6e4=['level','16VeXOgk','component','default','format','colors','colorLevel',']\x20[','yellow','timestamp','2990583jNLWZp','WARN','Chalk','gray','221854UjwerX','116758xJHHqL','chalk','message','1128552qWZBwq','1466430fZtRrI','red','TRACE','63pCUiiI','ERROR','241685vFkXID','blue','455322FJskRY'];a163_0x270b=function(){return _0x20b6e4;};return a163_0x270b();}
1
+ const a163_0x32ea56=a163_0x2610;function a163_0x2610(_0x164445,_0x26111f){_0x164445=_0x164445-0x65;const _0xf40646=a163_0xf406();let _0x2610b3=_0xf40646[_0x164445];return _0x2610b3;}(function(_0x308690,_0x4dbb23){const _0x5a71c5=a163_0x2610,_0x511c76=_0x308690();while(!![]){try{const _0x2a9345=-parseInt(_0x5a71c5(0x6d))/0x1*(parseInt(_0x5a71c5(0x7f))/0x2)+parseInt(_0x5a71c5(0x7e))/0x3*(-parseInt(_0x5a71c5(0x79))/0x4)+parseInt(_0x5a71c5(0x7a))/0x5*(parseInt(_0x5a71c5(0x82))/0x6)+parseInt(_0x5a71c5(0x6a))/0x7+-parseInt(_0x5a71c5(0x65))/0x8+parseInt(_0x5a71c5(0x81))/0x9*(-parseInt(_0x5a71c5(0x70))/0xa)+parseInt(_0x5a71c5(0x77))/0xb;if(_0x2a9345===_0x4dbb23)break;else _0x511c76['push'](_0x511c76['shift']());}catch(_0x58bd40){_0x511c76['push'](_0x511c76['shift']());}}}(a163_0xf406,0xc06b9));function a163_0xf406(){const _0x36fe97=['colors','56169dllEpo','1189724ayWmYZ','yellow','207Mvqevd','575088fJHmrV','8380040pJUIYI','red','component','WARN','green','100912RnxFgw','message','ERROR','1ZOpQEE','default','DEBUG','289010DdpRKL','Chalk','cyan','timestamp','chalk','format','level','31971280ADyaZf','dim','188lfifLl','55eCehsC','blue',']\x20['];a163_0xf406=function(){return _0x36fe97;};return a163_0xf406();}import a163_0x4e1113 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a163_0x4e1113,ChalkClass=chalkModule[a163_0x32ea56(0x71)]||chalkModule[a163_0x32ea56(0x6e)]?.[a163_0x32ea56(0x71)];export class DefaultLogFormatter{[a163_0x32ea56(0x7d)];[a163_0x32ea56(0x74)];constructor(_0x52241c={}){const _0x3e0d18=a163_0x32ea56;this[_0x3e0d18(0x7d)]=_0x52241c[_0x3e0d18(0x7d)]??![],this[_0x3e0d18(0x74)]=_0x52241c['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a163_0x4e1113;}[a163_0x32ea56(0x75)](_0x365cee){const _0x2055d5=a163_0x32ea56,_0x357369=formatTimestamp(_0x365cee[_0x2055d5(0x73)]),_0x2b559f=logLevelToString(_0x365cee[_0x2055d5(0x76)]);if(!this[_0x2055d5(0x7d)])return _0x357369+'\x20['+_0x2b559f+_0x2055d5(0x7c)+_0x365cee[_0x2055d5(0x67)]+']\x20'+_0x365cee[_0x2055d5(0x6b)];const _0x174f21=this[_0x2055d5(0x74)][_0x2055d5(0x78)](_0x357369),_0x2707be=this['colorLevel'](_0x2b559f,_0x365cee[_0x2055d5(0x76)]),_0x133ef6=this['chalk'][_0x2055d5(0x7b)]('['+_0x365cee[_0x2055d5(0x67)]+']');return _0x174f21+'\x20'+_0x2707be+'\x20'+_0x133ef6+'\x20'+_0x365cee[_0x2055d5(0x6b)];}['colorLevel'](_0x5e8422,_0x2728a0){const _0x4ca106=a163_0x32ea56;switch(_0x2728a0){case LogLevel['TRACE']:return this[_0x4ca106(0x74)]['gray']('['+_0x5e8422+']');case LogLevel[_0x4ca106(0x6f)]:return this[_0x4ca106(0x74)][_0x4ca106(0x69)]('['+_0x5e8422+']');case LogLevel['INFO']:return this[_0x4ca106(0x74)][_0x4ca106(0x72)]('['+_0x5e8422+']');case LogLevel[_0x4ca106(0x68)]:return this[_0x4ca106(0x74)][_0x4ca106(0x80)]('['+_0x5e8422+']');case LogLevel[_0x4ca106(0x6c)]:return this[_0x4ca106(0x74)][_0x4ca106(0x66)]('['+_0x5e8422+']');default:return'['+_0x5e8422+']';}}}
@@ -1 +1 @@
1
- (function(_0x2e434f,_0x17b511){var _0x55cafa=a164_0x56d6,_0x1c7482=_0x2e434f();while(!![]){try{var _0x899940=-parseInt(_0x55cafa(0x1c9))/0x1+-parseInt(_0x55cafa(0x1d2))/0x2*(parseInt(_0x55cafa(0x1cd))/0x3)+parseInt(_0x55cafa(0x1d1))/0x4*(parseInt(_0x55cafa(0x1cb))/0x5)+parseInt(_0x55cafa(0x1ca))/0x6*(parseInt(_0x55cafa(0x1ce))/0x7)+parseInt(_0x55cafa(0x1cf))/0x8+parseInt(_0x55cafa(0x1d0))/0x9+-parseInt(_0x55cafa(0x1cc))/0xa;if(_0x899940===_0x17b511)break;else _0x1c7482['push'](_0x1c7482['shift']());}catch(_0x1f96dd){_0x1c7482['push'](_0x1c7482['shift']());}}}(a164_0x3dae,0x58589));function a164_0x56d6(_0x5c2d45,_0x5e723c){_0x5c2d45=_0x5c2d45-0x1c9;var _0x3dae2c=a164_0x3dae();var _0x56d626=_0x3dae2c[_0x5c2d45];return _0x56d626;}function a164_0x3dae(){var _0x58363b=['2454039NUxOSp','44eQOEvL','508vJhEcU','27058dsfuHw','713034xvdAWq','251395QxdKCx','7808750warPuF','7221zIaPrt','21JnphZk','4791352jdOxqM'];a164_0x3dae=function(){return _0x58363b;};return a164_0x3dae();}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a164_0x113e(){var _0x13f050=['611434OEEFtU','7DLRpmv','2249944yZtfJv','13016982GBZIAY','1022084zqWqlq','5130DnRyeD','1341258YYlPzl','2658Oflnmk','7330SJQjGF','11670IHhZDY','4OZtnsk'];a164_0x113e=function(){return _0x13f050;};return a164_0x113e();}(function(_0x5c09a4,_0x10747c){var _0x3cc11d=a164_0x3528,_0x493cde=_0x5c09a4();while(!![]){try{var _0x555211=parseInt(_0x3cc11d(0xfb))/0x1+-parseInt(_0x3cc11d(0xfa))/0x2*(parseInt(_0x3cc11d(0x101))/0x3)+parseInt(_0x3cc11d(0xff))/0x4+-parseInt(_0x3cc11d(0xf9))/0x5*(-parseInt(_0x3cc11d(0x102))/0x6)+-parseInt(_0x3cc11d(0xfc))/0x7*(-parseInt(_0x3cc11d(0xfd))/0x8)+-parseInt(_0x3cc11d(0x100))/0x9*(-parseInt(_0x3cc11d(0xf8))/0xa)+-parseInt(_0x3cc11d(0xfe))/0xb;if(_0x555211===_0x10747c)break;else _0x493cde['push'](_0x493cde['shift']());}catch(_0x9a55ea){_0x493cde['push'](_0x493cde['shift']());}}}(a164_0x113e,0x7f8c4));function a164_0x3528(_0x331f84,_0x4d314b){_0x331f84=_0x331f84-0xf8;var _0x113e67=a164_0x113e();var _0x3528f5=_0x113e67[_0x331f84];return _0x3528f5;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a165_0x4d43f3=a165_0x1e3b;function a165_0x5c29(){const _0x5d8c33=['colors','8944SrEKts','8557842EueFRQ','minLevel','format','level','12519pISBvz','formatter','14130950DpreJQ','WARN','2470276nnuwJB','error','1987351HuWhNr','321330tAuEpH','3CrXKXZ','55WSEnqg','60HpcjyN','useStderr','7679007YcwJRx'];a165_0x5c29=function(){return _0x5d8c33;};return a165_0x5c29();}function a165_0x1e3b(_0x2d3079,_0x4dc745){_0x2d3079=_0x2d3079-0xdf;const _0x5c2943=a165_0x5c29();let _0x1e3b35=_0x5c2943[_0x2d3079];return _0x1e3b35;}(function(_0x2bbec4,_0x4da788){const _0x476a6c=a165_0x1e3b,_0x3136ae=_0x2bbec4();while(!![]){try{const _0x26d689=-parseInt(_0x476a6c(0xef))/0x1+parseInt(_0x476a6c(0xed))/0x2*(-parseInt(_0x476a6c(0xf1))/0x3)+parseInt(_0x476a6c(0xe0))/0x4*(-parseInt(_0x476a6c(0xf0))/0x5)+-parseInt(_0x476a6c(0xe5))/0x6+parseInt(_0x476a6c(0xe2))/0x7+-parseInt(_0x476a6c(0xe4))/0x8*(parseInt(_0x476a6c(0xe9))/0x9)+parseInt(_0x476a6c(0xeb))/0xa*(parseInt(_0x476a6c(0xdf))/0xb);if(_0x26d689===_0x4da788)break;else _0x3136ae['push'](_0x3136ae['shift']());}catch(_0x3a640b){_0x3136ae['push'](_0x3136ae['shift']());}}}(a165_0x5c29,0xf2cf8));import{LogLevel as a165_0x5d053a}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a165_0x4d43f3(0xe6)];[a165_0x4d43f3(0xe1)];[a165_0x4d43f3(0xea)];constructor(_0x23bf52={}){const _0x17bc3c=a165_0x4d43f3;this[_0x17bc3c(0xe6)]=_0x23bf52['minLevel']??a165_0x5d053a[_0x17bc3c(0xec)],this['useStderr']=_0x23bf52[_0x17bc3c(0xe1)]??!![],this[_0x17bc3c(0xea)]=new DefaultLogFormatter({'colors':_0x23bf52[_0x17bc3c(0xe3)]??!![]});}['handle'](_0x1a0134){const _0x4559f1=a165_0x4d43f3;if(_0x1a0134[_0x4559f1(0xe8)]<this[_0x4559f1(0xe6)])return;const _0x576d66=this[_0x4559f1(0xea)][_0x4559f1(0xe7)](_0x1a0134);this[_0x4559f1(0xe1)]&&_0x1a0134[_0x4559f1(0xe8)]>=a165_0x5d053a[_0x4559f1(0xec)]?console[_0x4559f1(0xee)](_0x576d66):console['log'](_0x576d66);}}
1
+ const a165_0x2a126e=a165_0x5b9e;(function(_0x1ff3db,_0x18fceb){const _0x225c00=a165_0x5b9e,_0x55af20=_0x1ff3db();while(!![]){try{const _0x3c33bd=parseInt(_0x225c00(0x1d7))/0x1*(-parseInt(_0x225c00(0x1d5))/0x2)+-parseInt(_0x225c00(0x1d8))/0x3+parseInt(_0x225c00(0x1e3))/0x4+parseInt(_0x225c00(0x1dd))/0x5+parseInt(_0x225c00(0x1d9))/0x6*(-parseInt(_0x225c00(0x1e0))/0x7)+parseInt(_0x225c00(0x1de))/0x8+-parseInt(_0x225c00(0x1df))/0x9*(parseInt(_0x225c00(0x1da))/0xa);if(_0x3c33bd===_0x18fceb)break;else _0x55af20['push'](_0x55af20['shift']());}catch(_0x1000cb){_0x55af20['push'](_0x55af20['shift']());}}}(a165_0x2efd,0xab776));function a165_0x2efd(){const _0x1f8194=['2196411IBItbB','181668YsrglF','10FzyBth','useStderr','log','6580870ECKYjl','10165368bkJEmj','5586804rGXRej','91imTJsw','colors','handle','1888824JyQvgk','level','formatter','348mqHJXp','minLevel','3507wlCpQJ'];a165_0x2efd=function(){return _0x1f8194;};return a165_0x2efd();}import{LogLevel as a165_0x5350ea}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a165_0x5b9e(_0x14d42b,_0x4c3b53){_0x14d42b=_0x14d42b-0x1d5;const _0x2efd0=a165_0x2efd();let _0x5b9e13=_0x2efd0[_0x14d42b];return _0x5b9e13;}export class ConsoleHandler{[a165_0x2a126e(0x1d6)];[a165_0x2a126e(0x1db)];[a165_0x2a126e(0x1e5)];constructor(_0x453328={}){const _0x19495b=a165_0x2a126e;this[_0x19495b(0x1d6)]=_0x453328[_0x19495b(0x1d6)]??a165_0x5350ea['WARN'],this['useStderr']=_0x453328[_0x19495b(0x1db)]??!![],this[_0x19495b(0x1e5)]=new DefaultLogFormatter({'colors':_0x453328[_0x19495b(0x1e1)]??!![]});}[a165_0x2a126e(0x1e2)](_0xcf3c88){const _0x304f5c=a165_0x2a126e;if(_0xcf3c88[_0x304f5c(0x1e4)]<this[_0x304f5c(0x1d6)])return;const _0x8e2c48=this[_0x304f5c(0x1e5)]['format'](_0xcf3c88);this['useStderr']&&_0xcf3c88[_0x304f5c(0x1e4)]>=a165_0x5350ea['WARN']?console['error'](_0x8e2c48):console[_0x304f5c(0x1dc)](_0x8e2c48);}}
@@ -1 +1 @@
1
- const a166_0x54be0c=a166_0x5805;(function(_0xbf01dc,_0xd31a5c){const _0x25101f=a166_0x5805,_0x570571=_0xbf01dc();while(!![]){try{const _0x4aee37=-parseInt(_0x25101f(0x1b5))/0x1+-parseInt(_0x25101f(0x1b1))/0x2+-parseInt(_0x25101f(0x1bd))/0x3*(-parseInt(_0x25101f(0x1b4))/0x4)+parseInt(_0x25101f(0x1b8))/0x5+parseInt(_0x25101f(0x1b3))/0x6+parseInt(_0x25101f(0x1bf))/0x7*(parseInt(_0x25101f(0x1b0))/0x8)+-parseInt(_0x25101f(0x1ba))/0x9;if(_0x4aee37===_0xd31a5c)break;else _0x570571['push'](_0x570571['shift']());}catch(_0x2a81db){_0x570571['push'](_0x570571['shift']());}}}(a166_0x335c,0x9c654));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a166_0x5805(_0x4b2169,_0x4c9cb8){_0x4b2169=_0x4b2169-0x1af;const _0x335c6e=a166_0x335c();let _0x5805b5=_0x335c6e[_0x4b2169];return _0x5805b5;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a166_0x335c(){const _0x1186c8=['logStream','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','filePath','filter','split','logFileName','logBaseName','test','tdx.log','handle','logDir','logPath','init','replace','write','.gz','logs','toISOString','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','error','1890496MwEDjb','1406504LCYhwn','Warning:\x20Failed\x20to\x20compress\x20','5053086HcMMpW','7360OmiNmE','642099gqVaBK','Warning:\x20Error\x20writing\x20to\x20','rotate','6150695ctzhms','rotateOldLogs','8988813VjUPja','getLogPath','end','717trsMOV','.log','14xyNjxs','format'];a166_0x335c=function(){return _0x1186c8;};return a166_0x335c();}export class FileHandler{[a166_0x54be0c(0x1cc)];[a166_0x54be0c(0x1cb)];['logFileName'];[a166_0x54be0c(0x1c7)];[a166_0x54be0c(0x1c1)]=null;['rotate'];constructor(_0x3c5196={}){const _0x28d77f=a166_0x54be0c;this['logPath']=_0x3c5196[_0x28d77f(0x1c3)]??join(getGlobalCacheDir(),_0x28d77f(0x1d1),_0x28d77f(0x1c9)),this['logDir']=dirname(this[_0x28d77f(0x1cc)]),this[_0x28d77f(0x1c6)]=basename(this['logPath']),this[_0x28d77f(0x1c7)]=this[_0x28d77f(0x1c6)][_0x28d77f(0x1ce)](/\.log$/,''),this[_0x28d77f(0x1b7)]=_0x3c5196[_0x28d77f(0x1b7)]??!![];}async[a166_0x54be0c(0x1cd)](){const _0x2b451c=a166_0x54be0c;try{await mkdir(this[_0x2b451c(0x1cb)],{'recursive':!![]}),this[_0x2b451c(0x1b7)]&&await this['rotateOldLogs'](),this[_0x2b451c(0x1c1)]=createWriteStream(this[_0x2b451c(0x1cc)],{'flags':'a'}),this[_0x2b451c(0x1c1)]['on'](_0x2b451c(0x1af),_0x11c46d=>{const _0x341cd6=_0x2b451c;console[_0x341cd6(0x1af)](_0x341cd6(0x1b6)+this[_0x341cd6(0x1c6)]+':',_0x11c46d['message']);});}catch(_0x1f3af8){console[_0x2b451c(0x1af)](_0x2b451c(0x1c2),_0x1f3af8);}}[a166_0x54be0c(0x1ca)](_0x1c4609){const _0x35fbf5=a166_0x54be0c;if(!this['logStream'])return;const _0x23a267=Logger[_0x35fbf5(0x1c0)](_0x1c4609);this[_0x35fbf5(0x1c1)][_0x35fbf5(0x1cf)](_0x23a267+'\x0a');}async['close'](){return new Promise(_0x58fd3f=>{const _0x54722a=a166_0x5805;this[_0x54722a(0x1c1)]?this['logStream'][_0x54722a(0x1bc)](()=>{this['logStream']=null,_0x58fd3f();}):_0x58fd3f();});}[a166_0x54be0c(0x1bb)](){const _0x47177a=a166_0x54be0c;return this[_0x47177a(0x1cc)];}async[a166_0x54be0c(0x1b9)](){const _0x543238=a166_0x54be0c;try{const _0x3f181a=await readdir(this[_0x543238(0x1cb)]),_0x48b2e4=new Date()[_0x543238(0x1d2)]()[_0x543238(0x1c5)]('T')[0x0];if(_0x3f181a['includes'](this[_0x543238(0x1c6)])){const _0x56e2a6=join(this[_0x543238(0x1cb)],this[_0x543238(0x1c6)]),_0x4fc479=await stat(_0x56e2a6),_0x49b9ef=new Date(_0x4fc479['mtime'])[_0x543238(0x1d2)]()[_0x543238(0x1c5)]('T')[0x0];if(_0x49b9ef<_0x48b2e4){const _0xde1150=join(this[_0x543238(0x1cb)],this['logBaseName']+'-'+_0x49b9ef+_0x543238(0x1be));await rename(_0x56e2a6,_0xde1150);}}const _0x378750=await readdir(this[_0x543238(0x1cb)]),_0x44cb7a=this[_0x543238(0x1c7)]['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0xaa4675=new RegExp('^'+_0x44cb7a+_0x543238(0x1d3)),_0x236fe5=_0x378750[_0x543238(0x1c4)](_0x1380e1=>_0xaa4675[_0x543238(0x1c8)](_0x1380e1));for(const _0x33e4d0 of _0x236fe5){const _0x388bce=join(this[_0x543238(0x1cb)],_0x33e4d0),_0x50e6cb=join(this['logDir'],_0x33e4d0+_0x543238(0x1d0));try{await pipeline(createReadStream(_0x388bce),createGzip(),createWriteStream(_0x50e6cb)),await unlink(_0x388bce);}catch(_0x44f012){console['error'](_0x543238(0x1b2)+_0x33e4d0+':',_0x44f012);}}}catch{}}}
1
+ const a166_0x4b4b24=a166_0x4137;(function(_0x1a473e,_0x5895ef){const _0x104c03=a166_0x4137,_0x1a0020=_0x1a473e();while(!![]){try{const _0x4712fa=-parseInt(_0x104c03(0x98))/0x1+-parseInt(_0x104c03(0xb2))/0x2*(parseInt(_0x104c03(0x8a))/0x3)+parseInt(_0x104c03(0xa9))/0x4*(parseInt(_0x104c03(0xaa))/0x5)+parseInt(_0x104c03(0x95))/0x6+parseInt(_0x104c03(0xb3))/0x7*(parseInt(_0x104c03(0xa6))/0x8)+parseInt(_0x104c03(0xa5))/0x9*(-parseInt(_0x104c03(0x9c))/0xa)+-parseInt(_0x104c03(0xa4))/0xb;if(_0x4712fa===_0x5895ef)break;else _0x1a0020['push'](_0x1a0020['shift']());}catch(_0x2f3441){_0x1a0020['push'](_0x1a0020['shift']());}}}(a166_0x2ba9,0xe6505));function a166_0x2ba9(){const _0x105650=['logDir','.log','1228667gEFuwG','3357UFCTOb','88dvGPah','mtime','split','12AcGiGP','107895rSbBFt','init','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','close','replace','filePath','format','write','4kFkZmx','1033207aFahIM','2396916Tzkjto','rotateOldLogs','filter','message','.gz','toISOString','test','error','getLogPath','includes','\x5c$&','7360752AMFPRF','Warning:\x20Error\x20writing\x20to\x20','logBaseName','185296DbYhWv','logPath','logStream','handle','2060gDioHI','tdx.log','rotate','logFileName','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','end'];a166_0x2ba9=function(){return _0x105650;};return a166_0x2ba9();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a166_0x4137(_0x3cef04,_0x2f8766){_0x3cef04=_0x3cef04-0x8a;const _0x2ba9df=a166_0x2ba9();let _0x413766=_0x2ba9df[_0x3cef04];return _0x413766;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a166_0x4b4b24(0xa2)];[a166_0x4b4b24(0x9f)];['logBaseName'];['logStream']=null;['rotate'];constructor(_0xb3b164={}){const _0xa941fb=a166_0x4b4b24;this[_0xa941fb(0x99)]=_0xb3b164[_0xa941fb(0xaf)]??join(getGlobalCacheDir(),'logs',_0xa941fb(0x9d)),this['logDir']=dirname(this[_0xa941fb(0x99)]),this['logFileName']=basename(this['logPath']),this['logBaseName']=this[_0xa941fb(0x9f)][_0xa941fb(0xae)](/\.log$/,''),this[_0xa941fb(0x9e)]=_0xb3b164[_0xa941fb(0x9e)]??!![];}async[a166_0x4b4b24(0xab)](){const _0x4fe2ec=a166_0x4b4b24;try{await mkdir(this[_0x4fe2ec(0xa2)],{'recursive':!![]}),this['rotate']&&await this[_0x4fe2ec(0x8b)](),this[_0x4fe2ec(0x9a)]=createWriteStream(this[_0x4fe2ec(0x99)],{'flags':'a'}),this[_0x4fe2ec(0x9a)]['on'](_0x4fe2ec(0x91),_0x2cfd6c=>{const _0x469428=_0x4fe2ec;console[_0x469428(0x91)](_0x469428(0x96)+this[_0x469428(0x9f)]+':',_0x2cfd6c[_0x469428(0x8d)]);});}catch(_0x255ffe){console[_0x4fe2ec(0x91)](_0x4fe2ec(0xa0),_0x255ffe);}}[a166_0x4b4b24(0x9b)](_0x9e5c66){const _0x35c1f4=a166_0x4b4b24;if(!this[_0x35c1f4(0x9a)])return;const _0x15a0a6=Logger[_0x35c1f4(0xb0)](_0x9e5c66);this[_0x35c1f4(0x9a)][_0x35c1f4(0xb1)](_0x15a0a6+'\x0a');}async[a166_0x4b4b24(0xad)](){return new Promise(_0x511d98=>{const _0x5a3d07=a166_0x4137;this[_0x5a3d07(0x9a)]?this[_0x5a3d07(0x9a)][_0x5a3d07(0xa1)](()=>{const _0x5cf9b7=_0x5a3d07;this[_0x5cf9b7(0x9a)]=null,_0x511d98();}):_0x511d98();});}[a166_0x4b4b24(0x92)](){const _0x52642c=a166_0x4b4b24;return this[_0x52642c(0x99)];}async['rotateOldLogs'](){const _0x159dd4=a166_0x4b4b24;try{const _0x1dcf7d=await readdir(this[_0x159dd4(0xa2)]),_0x1c788f=new Date()[_0x159dd4(0x8f)]()['split']('T')[0x0];if(_0x1dcf7d[_0x159dd4(0x93)](this[_0x159dd4(0x9f)])){const _0x171d7c=join(this[_0x159dd4(0xa2)],this['logFileName']),_0x45277f=await stat(_0x171d7c),_0xbefc6d=new Date(_0x45277f[_0x159dd4(0xa7)])[_0x159dd4(0x8f)]()[_0x159dd4(0xa8)]('T')[0x0];if(_0xbefc6d<_0x1c788f){const _0x56a09c=join(this[_0x159dd4(0xa2)],this[_0x159dd4(0x97)]+'-'+_0xbefc6d+_0x159dd4(0xa3));await rename(_0x171d7c,_0x56a09c);}}const _0x18f885=await readdir(this['logDir']),_0x1db7ad=this[_0x159dd4(0x97)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x159dd4(0x94)),_0x23ffaa=new RegExp('^'+_0x1db7ad+_0x159dd4(0xac)),_0x2d7479=_0x18f885[_0x159dd4(0x8c)](_0x5ec4a8=>_0x23ffaa[_0x159dd4(0x90)](_0x5ec4a8));for(const _0x24c048 of _0x2d7479){const _0x2e1cf5=join(this['logDir'],_0x24c048),_0x3942e3=join(this[_0x159dd4(0xa2)],_0x24c048+_0x159dd4(0x8e));try{await pipeline(createReadStream(_0x2e1cf5),createGzip(),createWriteStream(_0x3942e3)),await unlink(_0x2e1cf5);}catch(_0x5ec3fd){console[_0x159dd4(0x91)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x24c048+':',_0x5ec3fd);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x2d7d49,_0xe9b43){var _0x4c3d67=a167_0x4475,_0x2377d6=_0x2d7d49();while(!![]){try{var _0x21f9b9=-parseInt(_0x4c3d67(0x14e))/0x1*(parseInt(_0x4c3d67(0x14c))/0x2)+parseInt(_0x4c3d67(0x147))/0x3+-parseInt(_0x4c3d67(0x14f))/0x4+parseInt(_0x4c3d67(0x148))/0x5*(-parseInt(_0x4c3d67(0x14b))/0x6)+-parseInt(_0x4c3d67(0x14a))/0x7+parseInt(_0x4c3d67(0x149))/0x8+parseInt(_0x4c3d67(0x14d))/0x9;if(_0x21f9b9===_0xe9b43)break;else _0x2377d6['push'](_0x2377d6['shift']());}catch(_0x4aaf9a){_0x2377d6['push'](_0x2377d6['shift']());}}}(a167_0x2b1d,0x9d447));function a167_0x4475(_0x1a137e,_0x2b5d9c){_0x1a137e=_0x1a137e-0x147;var _0x2b1da5=a167_0x2b1d();var _0x4475dd=_0x2b1da5[_0x1a137e];return _0x4475dd;}function a167_0x2b1d(){var _0x520623=['33ApTIoz','1009724XJIPFG','2898252nCEVIA','346585BKbwzT','3799392xZlRVL','5551287YLrSvy','78aCzOle','39158HeYthl','16162731tDZNZg'];a167_0x2b1d=function(){return _0x520623;};return a167_0x2b1d();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ function a167_0x473f(){var _0x5dfd29=['124ddSZBy','1546910PSRfGa','35580CAjIGh','148315fUpMam','20txSrcI','5052627MvFNPQ','712904JALQgr','165yRuVmZ','99132jimFVG','70pAPZpv','1697234phXjxq'];a167_0x473f=function(){return _0x5dfd29;};return a167_0x473f();}(function(_0x4f49fe,_0x14f27a){var _0x59ed07=a167_0x5414,_0xd8b0a7=_0x4f49fe();while(!![]){try{var _0x4d549d=parseInt(_0x59ed07(0x170))/0x1+-parseInt(_0x59ed07(0x177))/0x2+-parseInt(_0x59ed07(0x17a))/0x3*(-parseInt(_0x59ed07(0x178))/0x4)+parseInt(_0x59ed07(0x171))/0x5*(-parseInt(_0x59ed07(0x175))/0x6)+-parseInt(_0x59ed07(0x176))/0x7*(parseInt(_0x59ed07(0x173))/0x8)+-parseInt(_0x59ed07(0x172))/0x9+parseInt(_0x59ed07(0x179))/0xa*(parseInt(_0x59ed07(0x174))/0xb);if(_0x4d549d===_0x14f27a)break;else _0xd8b0a7['push'](_0xd8b0a7['shift']());}catch(_0x29d70c){_0xd8b0a7['push'](_0xd8b0a7['shift']());}}}(a167_0x473f,0x7286e));export{FileHandler}from'./file-handler.js';function a167_0x5414(_0x26244b,_0x2ccc65){_0x26244b=_0x26244b-0x170;var _0x473f8a=a167_0x473f();var _0x5414b2=_0x473f8a[_0x26244b];return _0x5414b2;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a168_0x5c9d9d=a168_0x15a0;function a168_0x1576(){var _0x2c76bf=['668288WDjFkk','4roUPch','7086420cPefIA','3898248EDMsJO','224HdfaIR','5230180moMiQu','handle','365950dIPePw','243HSKtyD','238903GoXSvK','3800916pQMEZc'];a168_0x1576=function(){return _0x2c76bf;};return a168_0x1576();}function a168_0x15a0(_0xcb9dc4,_0x413930){_0xcb9dc4=_0xcb9dc4-0x12b;var _0x1576f9=a168_0x1576();var _0x15a0ac=_0x1576f9[_0xcb9dc4];return _0x15a0ac;}(function(_0xaa777c,_0x18226b){var _0x189d60=a168_0x15a0,_0x56a1f9=_0xaa777c();while(!![]){try{var _0x9595dd=parseInt(_0x189d60(0x130))/0x1*(parseInt(_0x189d60(0x131))/0x2)+-parseInt(_0x189d60(0x12f))/0x3+parseInt(_0x189d60(0x133))/0x4+-parseInt(_0x189d60(0x135))/0x5+-parseInt(_0x189d60(0x132))/0x6+parseInt(_0x189d60(0x12e))/0x7*(parseInt(_0x189d60(0x134))/0x8)+parseInt(_0x189d60(0x12d))/0x9*(parseInt(_0x189d60(0x12c))/0xa);if(_0x9595dd===_0x18226b)break;else _0x56a1f9['push'](_0x56a1f9['shift']());}catch(_0x3e9b1c){_0x56a1f9['push'](_0x56a1f9['shift']());}}}(a168_0x1576,0xb9ba1));export class NullHandler{[a168_0x5c9d9d(0x12b)](_0x4c9c07){}}
1
+ var a168_0x1cd83b=a168_0x1ee7;function a168_0x1ee7(_0xddca81,_0x3eb58c){_0xddca81=_0xddca81-0x11a;var _0x41b2de=a168_0x41b2();var _0x1ee765=_0x41b2de[_0xddca81];return _0x1ee765;}(function(_0x163348,_0x26188e){var _0x541385=a168_0x1ee7,_0x5a7efc=_0x163348();while(!![]){try{var _0x1cb5e5=-parseInt(_0x541385(0x11c))/0x1*(-parseInt(_0x541385(0x121))/0x2)+parseInt(_0x541385(0x120))/0x3+-parseInt(_0x541385(0x11a))/0x4+parseInt(_0x541385(0x124))/0x5*(-parseInt(_0x541385(0x122))/0x6)+-parseInt(_0x541385(0x123))/0x7+-parseInt(_0x541385(0x11b))/0x8+-parseInt(_0x541385(0x11d))/0x9*(-parseInt(_0x541385(0x11f))/0xa);if(_0x1cb5e5===_0x26188e)break;else _0x5a7efc['push'](_0x5a7efc['shift']());}catch(_0x3a54b5){_0x5a7efc['push'](_0x5a7efc['shift']());}}}(a168_0x41b2,0x75dfe));function a168_0x41b2(){var _0x335935=['1875824oezwyp','6221440JIcDsF','288649MPxQoW','297ctloQh','handle','655530hhKQTl','1136823KqpCbL','6AlYmzg','6QAjQln','5427275GxrKRd','4516810DXNgIJ'];a168_0x41b2=function(){return _0x335935;};return a168_0x41b2();}export class NullHandler{[a168_0x1cd83b(0x11e)](_0x2d8d6c){}}
@@ -1 +1 @@
1
- (function(_0x3c5f65,_0x66e6fa){var _0x59dee6=a169_0xa837,_0x4e2d62=_0x3c5f65();while(!![]){try{var _0x430646=parseInt(_0x59dee6(0xa2))/0x1*(parseInt(_0x59dee6(0xa4))/0x2)+-parseInt(_0x59dee6(0xa7))/0x3*(parseInt(_0x59dee6(0xab))/0x4)+-parseInt(_0x59dee6(0xa0))/0x5*(parseInt(_0x59dee6(0xa3))/0x6)+parseInt(_0x59dee6(0xaa))/0x7*(-parseInt(_0x59dee6(0xa5))/0x8)+-parseInt(_0x59dee6(0xa8))/0x9+parseInt(_0x59dee6(0xa9))/0xa*(parseInt(_0x59dee6(0xa1))/0xb)+parseInt(_0x59dee6(0xa6))/0xc;if(_0x430646===_0x66e6fa)break;else _0x4e2d62['push'](_0x4e2d62['shift']());}catch(_0x2fc244){_0x4e2d62['push'](_0x4e2d62['shift']());}}}(a169_0x18c8,0x4f29b));export{Logger}from'./logger.js';function a169_0xa837(_0x3fef41,_0x3f12be){_0x3fef41=_0x3fef41-0xa0;var _0x18c878=a169_0x18c8();var _0xa8374e=_0x18c878[_0x3fef41];return _0xa8374e;}function a169_0x18c8(){var _0x2fb2d4=['220diOFmG','4135rDIRXu','968cQMsDg','11eqSZll','3462NkvNUn','102622NgBRco','8TebpSQ','4883004okziZs','9507qADsyt','2881440FaEeYa','38600ZjGEor','105931wsWQXi'];a169_0x18c8=function(){return _0x2fb2d4;};return a169_0x18c8();}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x16006b,_0x55793c){var _0x58ab08=a169_0x4662,_0x3b8b85=_0x16006b();while(!![]){try{var _0x18f6fb=parseInt(_0x58ab08(0x1b6))/0x1+-parseInt(_0x58ab08(0x1b8))/0x2+-parseInt(_0x58ab08(0x1bb))/0x3+parseInt(_0x58ab08(0x1b9))/0x4*(parseInt(_0x58ab08(0x1ba))/0x5)+parseInt(_0x58ab08(0x1b7))/0x6+-parseInt(_0x58ab08(0x1b5))/0x7+-parseInt(_0x58ab08(0x1bc))/0x8*(parseInt(_0x58ab08(0x1bd))/0x9);if(_0x18f6fb===_0x55793c)break;else _0x3b8b85['push'](_0x3b8b85['shift']());}catch(_0xaedd49){_0x3b8b85['push'](_0x3b8b85['shift']());}}}(a169_0x1515,0x928ee));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a169_0x4662(_0x247a6c,_0xf287b3){_0x247a6c=_0x247a6c-0x1b5;var _0x151554=a169_0x1515();var _0x4662ee=_0x151554[_0x247a6c];return _0x4662ee;}function a169_0x1515(){var _0x34a637=['717772BUISCD','2683052iAbxOX','5RBuOLk','1985805BoCpLT','50408OYIaOd','1179JWJtFU','1373085OblodX','916731OSsiZQ','6331290djxmsn'];a169_0x1515=function(){return _0x34a637;};return a169_0x1515();}