@treasuredata/tdx 0.28.4 → 0.28.5

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 (179) 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/delivery-command.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-campaign-pull-command.js +1 -1
  20. package/dist/commands/engage-campaign-push-command.js +1 -1
  21. package/dist/commands/engage-campaign-validate-command.js +1 -1
  22. package/dist/commands/engage-command.js +1 -1
  23. package/dist/commands/job-command.js +1 -1
  24. package/dist/commands/journey-command.js +1 -1
  25. package/dist/commands/journey-validate-command.js +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/mcp-command.js +1 -1
  28. package/dist/commands/parent-segment-command.js +1 -1
  29. package/dist/commands/profile-command.js +1 -1
  30. package/dist/commands/profiles-command.js +1 -1
  31. package/dist/commands/query-command.js +1 -1
  32. package/dist/commands/schedule-command.js +1 -1
  33. package/dist/commands/segment-command.js +1 -1
  34. package/dist/commands/segment-create-command.js +1 -1
  35. package/dist/commands/segment-fields-command.js +1 -1
  36. package/dist/commands/segment-pull-command.js +1 -1
  37. package/dist/commands/segment-push-command.js +1 -1
  38. package/dist/commands/segment-update-command.js +1 -1
  39. package/dist/commands/segment-use-command.js +1 -1
  40. package/dist/commands/segment-validate-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/status-command.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/unset-command.js +1 -1
  46. package/dist/commands/use-command.js +1 -1
  47. package/dist/commands/user-command.js +1 -1
  48. package/dist/commands/workflow-command.js +1 -1
  49. package/dist/core/auth.js +1 -1
  50. package/dist/core/command-output.js +1 -1
  51. package/dist/core/config.js +1 -1
  52. package/dist/core/connection-cache.js +1 -1
  53. package/dist/core/constants.js +1 -1
  54. package/dist/core/credential-cache.js +1 -1
  55. package/dist/core/global-context.js +1 -1
  56. package/dist/core/keychain.js +1 -1
  57. package/dist/core/profile.js +1 -1
  58. package/dist/core/project-config.js +1 -1
  59. package/dist/core/session.js +1 -1
  60. package/dist/core/user-cache.js +1 -1
  61. package/dist/core/version.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/mcp/server.js +1 -1
  64. package/dist/mcp/tools/index.js +1 -1
  65. package/dist/mcp/tools/tdx-run.js +1 -1
  66. package/dist/mcp/tools/tdx-search.js +1 -1
  67. package/dist/mcp/utils.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.js +1 -1
  69. package/dist/proxy/passthrough-server.js +1 -1
  70. package/dist/proxy/sse-usage-parser.js +1 -1
  71. package/dist/sdk/agent/agent-config.js +1 -1
  72. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  73. package/dist/sdk/agent/agent-yaml.js +1 -1
  74. package/dist/sdk/agent/test/evaluator.js +1 -1
  75. package/dist/sdk/agent/test/executor.js +1 -1
  76. package/dist/sdk/agent/test/index.js +1 -1
  77. package/dist/sdk/agent/test/output.js +1 -1
  78. package/dist/sdk/agent/test/parser.js +1 -1
  79. package/dist/sdk/agent/tool-target-registry.js +1 -1
  80. package/dist/sdk/api.js +1 -1
  81. package/dist/sdk/client/cdp-api-client.js +1 -1
  82. package/dist/sdk/client/delivery-api-client.js +1 -1
  83. package/dist/sdk/client/endpoints.js +1 -1
  84. package/dist/sdk/client/engage-api-client.js +1 -1
  85. package/dist/sdk/client/http-client.js +1 -1
  86. package/dist/sdk/client/llm-api-client.js +1 -1
  87. package/dist/sdk/client/rate-limiter.js +1 -1
  88. package/dist/sdk/client/td-api-client.js +1 -1
  89. package/dist/sdk/client/trino-api-client.js +1 -1
  90. package/dist/sdk/client/workflow-client.js +1 -1
  91. package/dist/sdk/connection-validator.js +1 -1
  92. package/dist/sdk/connection.js +1 -1
  93. package/dist/sdk/delivery.js +1 -1
  94. package/dist/sdk/engage/campaign-pull.js +1 -1
  95. package/dist/sdk/engage/campaign-push.js +1 -1
  96. package/dist/sdk/engage/campaign-validator.js +1 -1
  97. package/dist/sdk/engage/campaign-yaml.js +1 -1
  98. package/dist/sdk/engage/types/campaign-def.js +1 -1
  99. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  100. package/dist/sdk/engage.js +1 -1
  101. package/dist/sdk/errors.js +1 -1
  102. package/dist/sdk/index.js +1 -1
  103. package/dist/sdk/io/index.js +1 -1
  104. package/dist/sdk/io/node-filesystem.js +1 -1
  105. package/dist/sdk/job.js +1 -1
  106. package/dist/sdk/journey.js +1 -1
  107. package/dist/sdk/llm/chat-cache.js +1 -1
  108. package/dist/sdk/llm/index.js +1 -1
  109. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  110. package/dist/sdk/llm/model-factors.js +1 -1
  111. package/dist/sdk/personalization.js +1 -1
  112. package/dist/sdk/query/index.js +1 -1
  113. package/dist/sdk/query/sql-parser.js +1 -1
  114. package/dist/sdk/realtime.js +1 -1
  115. package/dist/sdk/schedule.js +1 -1
  116. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  117. package/dist/sdk/segment/fields-display.js +1 -1
  118. package/dist/sdk/segment/file-discovery.js +1 -1
  119. package/dist/sdk/segment/journey-utils.js +1 -1
  120. package/dist/sdk/segment/journey-validator.js +1 -1
  121. package/dist/sdk/segment/journey-yaml.js +1 -1
  122. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  123. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  124. package/dist/sdk/segment/pull-workflow.js +1 -1
  125. package/dist/sdk/segment/push-recovery.js +1 -1
  126. package/dist/sdk/segment/push-workflow.js +1 -1
  127. package/dist/sdk/segment/resolution-context.js +1 -1
  128. package/dist/sdk/segment/segment-path-parser.js +1 -1
  129. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  130. package/dist/sdk/segment/target-resolution.js +1 -1
  131. package/dist/sdk/segment/tdx-config.js +1 -1
  132. package/dist/sdk/segment/validate-files.js +1 -1
  133. package/dist/sdk/segment/yaml-validator.js +1 -1
  134. package/dist/sdk/segment.js +1 -1
  135. package/dist/sdk/types/index.js +1 -1
  136. package/dist/sdk/types/progress.js +1 -1
  137. package/dist/sdk/user.js +1 -1
  138. package/dist/sdk/util/format-detector.js +1 -1
  139. package/dist/sdk/util/formatters.js +1 -1
  140. package/dist/sdk/util/index.js +1 -1
  141. package/dist/sdk/util/tree-formatter.js +1 -1
  142. package/dist/sdk/workflow/archive-validation.js +1 -1
  143. package/dist/sdk/workflow/clone-workflow.js +1 -1
  144. package/dist/sdk/workflow/index.js +1 -1
  145. package/dist/sdk/workflow/pull-workflow.js +1 -1
  146. package/dist/sdk/workflow/push-workflow.js +1 -1
  147. package/dist/sdk/workflow/tdx-config.js +1 -1
  148. package/dist/sdk/workflow/workflow-utils.js +1 -1
  149. package/dist/test-utils/command-runner.js +1 -1
  150. package/dist/test-utils/factories.js +1 -1
  151. package/dist/test-utils/fixtures.js +1 -1
  152. package/dist/test-utils/http-mock.js +1 -1
  153. package/dist/test-utils/index.js +1 -1
  154. package/dist/utils/async.js +1 -1
  155. package/dist/utils/colors.js +1 -1
  156. package/dist/utils/diff.js +1 -1
  157. package/dist/utils/file-permissions.js +1 -1
  158. package/dist/utils/global-cache.js +1 -1
  159. package/dist/utils/json-loader.js +1 -1
  160. package/dist/utils/local-cache.js +1 -1
  161. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  162. package/dist/utils/logger/formatters/index.js +1 -1
  163. package/dist/utils/logger/handlers/console-handler.js +1 -1
  164. package/dist/utils/logger/handlers/file-handler.js +1 -1
  165. package/dist/utils/logger/handlers/index.js +1 -1
  166. package/dist/utils/logger/handlers/null-handler.js +1 -1
  167. package/dist/utils/logger/index.js +1 -1
  168. package/dist/utils/logger/logger.js +1 -1
  169. package/dist/utils/logger/types.js +1 -1
  170. package/dist/utils/option-validation.js +1 -1
  171. package/dist/utils/process.js +1 -1
  172. package/dist/utils/prompt.js +1 -1
  173. package/dist/utils/spinner.js +1 -1
  174. package/dist/utils/sse-parser.js +1 -1
  175. package/dist/utils/string-utils.js +1 -1
  176. package/dist/utils/table-ref-parser.js +1 -1
  177. package/dist/utils/tdx-logger.js +1 -1
  178. package/dist/utils/version-check.js +1 -1
  179. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1d30c7,_0x142d12){const _0x4d1381=a163_0x4f9f,_0x3905a3=_0x1d30c7();while(!![]){try{const _0x42222a=-parseInt(_0x4d1381(0x6a))/0x1*(-parseInt(_0x4d1381(0x75))/0x2)+parseInt(_0x4d1381(0x7f))/0x3+-parseInt(_0x4d1381(0x69))/0x4+-parseInt(_0x4d1381(0x74))/0x5+parseInt(_0x4d1381(0x6e))/0x6*(parseInt(_0x4d1381(0x6f))/0x7)+parseInt(_0x4d1381(0x78))/0x8*(-parseInt(_0x4d1381(0x68))/0x9)+parseInt(_0x4d1381(0x72))/0xa;if(_0x42222a===_0x142d12)break;else _0x3905a3['push'](_0x3905a3['shift']());}catch(_0xbc9de3){_0x3905a3['push'](_0x3905a3['shift']());}}}(a163_0x2f72,0xcbfb7));import{promises as a163_0x20dcf3}from'fs';import a163_0x3da4fa from'path';import a163_0x360f3e from'ignore';export const WORKFLOW_FILE_EXTENSION='.dig';function a163_0x2f72(){const _0x5c255c=['18ygxNvk','2763229VsbvaW','slice','code','7965950EjPJED','length','4702630EOMHnX','292042qpVhid','.digdag','endsWith','2340376eSZeMb','map','join','.digdagignore','replace','trim','readFile','3527913hHviby','startsWith','18CTsZpt','3766788QXXYkU','1nhUBsk','add','filter','utf-8'];a163_0x2f72=function(){return _0x5c255c;};return a163_0x2f72();}export function shouldIncludeInArchive(_0x3634fc){const _0x573019=a163_0x4f9f;if(_0x3634fc===_0x573019(0x76))return!![];if(_0x3634fc[_0x573019(0x80)]('.'))return![];if(_0x3634fc[_0x573019(0x77)]('~'))return![];if(_0x3634fc==='Thumbs.db'||_0x3634fc==='.DS_Store')return![];return!![];}export function parseDigdagignore(_0x598b7f){const _0x5c6d10=a163_0x4f9f;return _0x598b7f['split']('\x0a')[_0x5c6d10(0x79)](_0x4e8df2=>_0x4e8df2[_0x5c6d10(0x7d)]())[_0x5c6d10(0x6c)](_0x34db4e=>_0x34db4e[_0x5c6d10(0x73)]>0x0&&!_0x34db4e[_0x5c6d10(0x80)]('#'));}export async function loadDigdagignore(_0x55a4c5){const _0x50c0cd=a163_0x4f9f,_0x4db895=a163_0x3da4fa[_0x50c0cd(0x7a)](_0x55a4c5,_0x50c0cd(0x7b));try{const _0x5d239c=await a163_0x20dcf3[_0x50c0cd(0x7e)](_0x4db895,_0x50c0cd(0x6d));return parseDigdagignore(_0x5d239c);}catch(_0x4f6ced){if(_0x4f6ced[_0x50c0cd(0x71)]==='ENOENT')return null;throw _0x4f6ced;}}export function createIgnoreInstance(_0x44bbb7){const _0x590fe0=a163_0x4f9f,_0x54fd53=a163_0x360f3e();return _0x44bbb7&&_0x44bbb7['length']>0x0&&_0x54fd53[_0x590fe0(0x6b)](_0x44bbb7),_0x54fd53;}export function addScopedPatterns(_0x19fede,_0x1c89ed,_0x314a2e){const _0x50a62d=a163_0x4f9f,_0x4e1609=_0x1c89ed[_0x50a62d(0x79)](_0x4bc0e9=>{const _0x4978c7=_0x50a62d;if(_0x4bc0e9[_0x4978c7(0x80)]('!')){const _0x526d41=_0x4bc0e9[_0x4978c7(0x70)](0x1);if(_0x526d41[_0x4978c7(0x80)]('/'))return'!'+_0x314a2e+_0x526d41;return'!'+_0x314a2e+'/'+_0x526d41;}if(_0x4bc0e9['startsWith']('/'))return''+_0x314a2e+_0x4bc0e9;return _0x314a2e+'/'+_0x4bc0e9;});return _0x19fede[_0x50a62d(0x6b)](_0x4e1609),_0x19fede;}function a163_0x4f9f(_0x2c5203,_0x3d6bfb){_0x2c5203=_0x2c5203-0x68;const _0x2f7268=a163_0x2f72();let _0x4f9fdf=_0x2f7268[_0x2c5203];return _0x4f9fdf;}export function shouldIgnoreWithInstance(_0xff7375,_0x4d3d67,_0x57e2d2){const _0x5a06cc=a163_0x4f9f,_0x529ed9=_0x4d3d67[_0x5a06cc(0x7c)](/\\/g,'/'),_0x41c16b=_0x57e2d2?_0x529ed9+'/':_0x529ed9;return _0xff7375['ignores'](_0x41c16b);}
1
+ const a163_0x4f6a1a=a163_0x29cc;(function(_0x2111b9,_0x26f23d){const _0x5c33e8=a163_0x29cc,_0x303cd2=_0x2111b9();while(!![]){try{const _0x701ee0=parseInt(_0x5c33e8(0x145))/0x1+parseInt(_0x5c33e8(0x144))/0x2*(parseInt(_0x5c33e8(0x137))/0x3)+parseInt(_0x5c33e8(0x135))/0x4+-parseInt(_0x5c33e8(0x133))/0x5+-parseInt(_0x5c33e8(0x131))/0x6*(-parseInt(_0x5c33e8(0x134))/0x7)+parseInt(_0x5c33e8(0x141))/0x8+parseInt(_0x5c33e8(0x13f))/0x9*(-parseInt(_0x5c33e8(0x132))/0xa);if(_0x701ee0===_0x26f23d)break;else _0x303cd2['push'](_0x303cd2['shift']());}catch(_0x4ad452){_0x303cd2['push'](_0x303cd2['shift']());}}}(a163_0x26bd,0x6f40d));import{promises as a163_0x752d0f}from'fs';import a163_0x2ffab7 from'path';import a163_0x4659fa from'ignore';export const WORKFLOW_FILE_EXTENSION=a163_0x4f6a1a(0x12f);function a163_0x26bd(){const _0x1f4180=['length','trim','27uuvxRz','map','5819208cSvEdW','.digdagignore','Thumbs.db','16yIBdfI','803635FncWWW','startsWith','ENOENT','replace','add','code','.dig','.digdag','115488qavtnE','7497190GaoFkc','2648040QtOXZB','266rxqgZW','1619160dfNlIk','utf-8','212703brgFyC','.DS_Store','ignores','join','slice','split'];a163_0x26bd=function(){return _0x1f4180;};return a163_0x26bd();}export function shouldIncludeInArchive(_0x253ccf){const _0xcd3bf2=a163_0x4f6a1a;if(_0x253ccf===_0xcd3bf2(0x130))return!![];if(_0x253ccf['startsWith']('.'))return![];if(_0x253ccf['endsWith']('~'))return![];if(_0x253ccf===_0xcd3bf2(0x143)||_0x253ccf===_0xcd3bf2(0x138))return![];return!![];}export function parseDigdagignore(_0x5d271b){const _0x4249f0=a163_0x4f6a1a;return _0x5d271b[_0x4249f0(0x13c)]('\x0a')['map'](_0x4eadd4=>_0x4eadd4[_0x4249f0(0x13e)]())['filter'](_0x1c84cf=>_0x1c84cf[_0x4249f0(0x13d)]>0x0&&!_0x1c84cf['startsWith']('#'));}function a163_0x29cc(_0x4bdbf4,_0x2fcb8a){_0x4bdbf4=_0x4bdbf4-0x12b;const _0x26bd81=a163_0x26bd();let _0x29cc63=_0x26bd81[_0x4bdbf4];return _0x29cc63;}export async function loadDigdagignore(_0x1bc614){const _0x2498f9=a163_0x4f6a1a,_0x5b7f75=a163_0x2ffab7[_0x2498f9(0x13a)](_0x1bc614,_0x2498f9(0x142));try{const _0x2fda16=await a163_0x752d0f['readFile'](_0x5b7f75,_0x2498f9(0x136));return parseDigdagignore(_0x2fda16);}catch(_0x91381d){if(_0x91381d[_0x2498f9(0x12e)]===_0x2498f9(0x12b))return null;throw _0x91381d;}}export function createIgnoreInstance(_0x547931){const _0x22b202=a163_0x4f6a1a,_0x11898f=a163_0x4659fa();return _0x547931&&_0x547931['length']>0x0&&_0x11898f[_0x22b202(0x12d)](_0x547931),_0x11898f;}export function addScopedPatterns(_0x4f694f,_0x5a7675,_0x17c06f){const _0x7a8038=a163_0x4f6a1a,_0x58c3f2=_0x5a7675[_0x7a8038(0x140)](_0x32661e=>{const _0x25877e=_0x7a8038;if(_0x32661e[_0x25877e(0x146)]('!')){const _0x54a789=_0x32661e[_0x25877e(0x13b)](0x1);if(_0x54a789['startsWith']('/'))return'!'+_0x17c06f+_0x54a789;return'!'+_0x17c06f+'/'+_0x54a789;}if(_0x32661e[_0x25877e(0x146)]('/'))return''+_0x17c06f+_0x32661e;return _0x17c06f+'/'+_0x32661e;});return _0x4f694f['add'](_0x58c3f2),_0x4f694f;}export function shouldIgnoreWithInstance(_0x212edd,_0x4187e8,_0x43aa6c){const _0x12afb5=a163_0x4f6a1a,_0x1525f8=_0x4187e8[_0x12afb5(0x12c)](/\\/g,'/'),_0x13cf78=_0x43aa6c?_0x1525f8+'/':_0x1525f8;return _0x212edd[_0x12afb5(0x139)](_0x13cf78);}
@@ -1 +1 @@
1
- const a164_0x258eb8=a164_0x53ff;(function(_0x876f77,_0x1fcf04){const _0x22d5d0=a164_0x53ff,_0x49ddc7=_0x876f77();while(!![]){try{const _0x375007=-parseInt(_0x22d5d0(0x1e7))/0x1*(-parseInt(_0x22d5d0(0x1f0))/0x2)+-parseInt(_0x22d5d0(0x1e9))/0x3+-parseInt(_0x22d5d0(0x1ea))/0x4+-parseInt(_0x22d5d0(0x1eb))/0x5+parseInt(_0x22d5d0(0x1ec))/0x6+-parseInt(_0x22d5d0(0x1ef))/0x7+parseInt(_0x22d5d0(0x1e8))/0x8;if(_0x375007===_0x1fcf04)break;else _0x49ddc7['push'](_0x49ddc7['shift']());}catch(_0x4740c5){_0x49ddc7['push'](_0x49ddc7['shift']());}}}(a164_0x346a,0xde634));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a164_0x258eb8(0x1fb)];['originalFetch'];constructor(){const _0x4460b2=a164_0x258eb8;this[_0x4460b2(0x1fb)]=createHTTPMock(),this[_0x4460b2(0x1f8)]=global[_0x4460b2(0x1e5)];}['setup'](){const _0x550690=a164_0x258eb8;this['originalFetch']=global['fetch'],global[_0x550690(0x1e5)]=this[_0x550690(0x1fb)]['createFetch']();}[a164_0x258eb8(0x1f1)](_0x3ea6f5){const _0x10f676=a164_0x258eb8;try{_0x3ea6f5?.[_0x10f676(0x1ee)]&&this[_0x10f676(0x1fb)][_0x10f676(0x1e3)](_0x3ea6f5);}finally{global[_0x10f676(0x1e5)]=this[_0x10f676(0x1f8)],this[_0x10f676(0x1fb)][_0x10f676(0x1e6)]();}}async[a164_0x258eb8(0x1fa)](_0x280c70,_0x28bede={}){const _0x1573b1=a164_0x258eb8,_0x11e444=[],_0x5c4802=[],_0x2970d3=console[_0x1573b1(0x1f5)],_0x406d52=console['error'],_0x3a5db2=console[_0x1573b1(0x1f4)];console[_0x1573b1(0x1f5)]=(..._0xe7bcb6)=>{const _0x43a960=_0x1573b1;_0x11e444[_0x43a960(0x1ed)](_0xe7bcb6[_0x43a960(0x1f6)](String)[_0x43a960(0x1e2)]('\x20'));},console[_0x1573b1(0x1f2)]=(..._0x1726ce)=>{const _0x2b4c30=_0x1573b1;_0x5c4802[_0x2b4c30(0x1ed)](_0x1726ce[_0x2b4c30(0x1f6)](String)['join']('\x20'));},console[_0x1573b1(0x1f4)]=(..._0x514e7a)=>{const _0x2c2cff=_0x1573b1;_0x5c4802[_0x2c2cff(0x1ed)](_0x514e7a[_0x2c2cff(0x1f6)](String)[_0x2c2cff(0x1e2)]('\x20'));};try{const _0x48262a=new TDX({'site':_0x28bede['options']?.['site']??_0x1573b1(0x1e4),'apiKey':_0x1573b1(0x1e1),'logLevel':LogLevel[_0x1573b1(0x1f3)]}),_0x216886={'options':createTestGlobalOptions(_0x28bede[_0x1573b1(0x1f9)]),'args':_0x28bede[_0x1573b1(0x1f7)]??[],'tdx':_0x48262a},_0x52a60c=new _0x280c70(),_0x2e740c=await _0x52a60c[_0x1573b1(0x1fa)](_0x216886);return{'exitCode':_0x2e740c,'stdout':_0x11e444,'stderr':_0x5c4802};}finally{console[_0x1573b1(0x1f5)]=_0x2970d3,console[_0x1573b1(0x1f2)]=_0x406d52,console['warn']=_0x3a5db2;}}async['runSequence'](_0x263b24){const _0x184d1c=a164_0x258eb8,_0x4feb28=[];for(const {command:_0x8b9021,options:_0x53cfb4}of _0x263b24){const _0x2c8de3=await this[_0x184d1c(0x1fa)](_0x8b9021,_0x53cfb4);_0x4feb28['push'](_0x2c8de3);if(_0x2c8de3['exitCode']!==0x0)break;}return _0x4feb28;}}function a164_0x346a(){const _0x235dd6=['3Xlmyij','6857528JhIUjP','203538ryBSzx','57560bpJTRK','2465865tAaWva','3608904brhWBT','push','fail','7060067dwEaHG','690810oqSUKu','teardown','error','ERROR','warn','log','map','args','originalFetch','options','run','http','test-api-key-id/test-api-key-secret','join','verify','us01','fetch','reset'];a164_0x346a=function(){return _0x235dd6;};return a164_0x346a();}function a164_0x53ff(_0x3e62b1,_0x3a43b5){_0x3e62b1=_0x3e62b1-0x1e1;const _0x346a99=a164_0x346a();let _0x53ffac=_0x346a99[_0x3e62b1];return _0x53ffac;}export function createCommandRunner(){return new CommandRunner();}
1
+ const a164_0x4e25a1=a164_0x1928;(function(_0x2ff172,_0x325a72){const _0x5673e8=a164_0x1928,_0x2c822a=_0x2ff172();while(!![]){try{const _0x1f1e2f=parseInt(_0x5673e8(0x1b6))/0x1+parseInt(_0x5673e8(0x1ad))/0x2+parseInt(_0x5673e8(0x1ac))/0x3*(parseInt(_0x5673e8(0x1b4))/0x4)+-parseInt(_0x5673e8(0x1b8))/0x5*(parseInt(_0x5673e8(0x1b7))/0x6)+-parseInt(_0x5673e8(0x1b0))/0x7*(parseInt(_0x5673e8(0x1a1))/0x8)+parseInt(_0x5673e8(0x199))/0x9+parseInt(_0x5673e8(0x1aa))/0xa*(-parseInt(_0x5673e8(0x19f))/0xb);if(_0x1f1e2f===_0x325a72)break;else _0x2c822a['push'](_0x2c822a['shift']());}catch(_0x9a572e){_0x2c822a['push'](_0x2c822a['shift']());}}}(a164_0x42e8,0x40049));function a164_0x1928(_0x425e94,_0x159503){_0x425e94=_0x425e94-0x199;const _0x42e889=a164_0x42e8();let _0x19280d=_0x42e889[_0x425e94];return _0x19280d;}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a164_0x4e25a1(0x1b2)];['originalFetch'];constructor(){const _0x3b6a84=a164_0x4e25a1;this['http']=createHTTPMock(),this[_0x3b6a84(0x1a4)]=global[_0x3b6a84(0x1a5)];}['setup'](){const _0x18dbc6=a164_0x4e25a1;this['originalFetch']=global[_0x18dbc6(0x1a5)],global['fetch']=this[_0x18dbc6(0x1b2)][_0x18dbc6(0x19e)]();}[a164_0x4e25a1(0x19c)](_0x25506a){const _0x238800=a164_0x4e25a1;try{_0x25506a?.[_0x238800(0x1ae)]&&this[_0x238800(0x1b2)]['verify'](_0x25506a);}finally{global[_0x238800(0x1a5)]=this[_0x238800(0x1a4)],this[_0x238800(0x1b2)][_0x238800(0x1a8)]();}}async[a164_0x4e25a1(0x1af)](_0x252cbb,_0x5f0cee={}){const _0x1348d9=a164_0x4e25a1,_0x250b92=[],_0x343fe0=[],_0x3999a1=console[_0x1348d9(0x1b3)],_0x1727a3=console['error'],_0x33a28c=console['warn'];console[_0x1348d9(0x1b3)]=(..._0x3e07bc)=>{const _0x1516be=_0x1348d9;_0x250b92[_0x1516be(0x19a)](_0x3e07bc['map'](String)[_0x1516be(0x1a9)]('\x20'));},console[_0x1348d9(0x19d)]=(..._0x134438)=>{const _0x2d3c35=_0x1348d9;_0x343fe0[_0x2d3c35(0x19a)](_0x134438[_0x2d3c35(0x19b)](String)['join']('\x20'));},console[_0x1348d9(0x1a2)]=(..._0x367b61)=>{const _0x1bbf2a=_0x1348d9;_0x343fe0[_0x1bbf2a(0x19a)](_0x367b61['map'](String)['join']('\x20'));};try{const _0x5c734e=new TDX({'site':_0x5f0cee[_0x1348d9(0x1a6)]?.[_0x1348d9(0x1a3)]??'us01','apiKey':_0x1348d9(0x1a7),'logLevel':LogLevel[_0x1348d9(0x1b1)]}),_0x533a10={'options':createTestGlobalOptions(_0x5f0cee[_0x1348d9(0x1a6)]),'args':_0x5f0cee[_0x1348d9(0x1a0)]??[],'tdx':_0x5c734e},_0x58b858=new _0x252cbb(),_0xc44a=await _0x58b858[_0x1348d9(0x1af)](_0x533a10);return{'exitCode':_0xc44a,'stdout':_0x250b92,'stderr':_0x343fe0};}finally{console[_0x1348d9(0x1b3)]=_0x3999a1,console[_0x1348d9(0x19d)]=_0x1727a3,console[_0x1348d9(0x1a2)]=_0x33a28c;}}async[a164_0x4e25a1(0x1b5)](_0x2acdc3){const _0x14e5e2=a164_0x4e25a1,_0x3b2342=[];for(const {command:_0x503360,options:_0x37b8af}of _0x2acdc3){const _0xfa39a4=await this['run'](_0x503360,_0x37b8af);_0x3b2342['push'](_0xfa39a4);if(_0xfa39a4[_0x14e5e2(0x1ab)]!==0x0)break;}return _0x3b2342;}}function a164_0x42e8(){const _0x4f5231=['fetch','options','test-api-key-id/test-api-key-secret','reset','join','50hGqSYZ','exitCode','369279mVOofG','819198FtRszT','fail','run','56kHOfsB','ERROR','http','log','4bqOIFD','runSequence','252835bDPbtC','3600SaUIwn','2585jlDAlI','1568439xWuDEq','push','map','teardown','error','createFetch','815947TWhMvB','args','16496VdSTYq','warn','site','originalFetch'];a164_0x42e8=function(){return _0x4f5231;};return a164_0x42e8();}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0x4863e6,_0x1075d8){const _0x39741f=a165_0x1291,_0x352b82=_0x4863e6();while(!![]){try{const _0x3ac31f=parseInt(_0x39741f(0xf8))/0x1+-parseInt(_0x39741f(0xef))/0x2*(parseInt(_0x39741f(0xfe))/0x3)+-parseInt(_0x39741f(0xf0))/0x4+-parseInt(_0x39741f(0x101))/0x5*(-parseInt(_0x39741f(0xf7))/0x6)+-parseInt(_0x39741f(0xf2))/0x7+-parseInt(_0x39741f(0xe6))/0x8*(-parseInt(_0x39741f(0xf5))/0x9)+parseInt(_0x39741f(0xfd))/0xa;if(_0x3ac31f===_0x1075d8)break;else _0x352b82['push'](_0x352b82['shift']());}catch(_0x38dc9d){_0x352b82['push'](_0x352b82['shift']());}}}(a165_0x1a5b,0xf3d27));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x380583){const _0x40fc2=a165_0x1291;return{'site':_0x40fc2(0xff),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x40fc2(0xee)],..._0x380583};}function a165_0x1291(_0x1270ec,_0x107765){_0x1270ec=_0x1270ec-0xe3;const _0x1a5b2d=a165_0x1a5b();let _0x129178=_0x1a5b2d[_0x1270ec];return _0x129178;}export function createTestGlobalOptions(_0x420173){const _0x10b344=a165_0x1291;return{'site':_0x10b344(0xff),'format':_0x10b344(0xf6),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x10b344(0xfc),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x10b344(0xee)],..._0x420173};}export async function initTestLogger(){const _0x1c4cf6=a165_0x1291;Logger[_0x1c4cf6(0xf3)]();const _0x51f3f2=join(getGlobalCacheDir(),_0x1c4cf6(0x102),'tdx-test.log');await Logger[_0x1c4cf6(0xf9)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0x51f3f2,'rotate':![]})]});}function a165_0x1a5b(){const _0x4bd0fe=['6009936AiRtsq','journey','10435908tvUPIU','reset','warn','47934fbAqKt','table','42YonbvG','391591QuLqdl','init','api','map','30000','37225370xUZRlb','3lcitRX','us01','args','394745irSujC','logs','query','workflow','tdx','664vIHEvL','user','join','segment','error','push','log','options','ERROR','2233612BFEDQK'];a165_0x1a5b=function(){return _0x4bd0fe;};return a165_0x1a5b();}export function resetTestLogger(){Logger['reset']();}export function createMockTDX(_0x3635a6){const _0x1ff063=a165_0x1291;return{'context':{'site':_0x1ff063(0xff),'apiKey':'test-api-key','logLevel':LogLevel[_0x1ff063(0xee)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x3635a6?.[_0x1ff063(0xe3)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3635a6?.[_0x1ff063(0xe9)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3635a6?.[_0x1ff063(0xf1)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x3635a6?.[_0x1ff063(0xe4)]},'user':{'show':vi['fn'](),..._0x3635a6?.[_0x1ff063(0xe7)]},'api':{'request':vi['fn'](),..._0x3635a6?.[_0x1ff063(0xfa)]},..._0x3635a6};}export function createTestCommandContext(_0x4de9a4){const _0x3d8490=a165_0x1291,_0x593e85=createTestGlobalOptions(_0x4de9a4?.[_0x3d8490(0xed)]),_0x1cb0b2=_0x4de9a4?.[_0x3d8490(0xe5)]??createMockTDX();return{'options':_0x593e85,'args':_0x4de9a4?.[_0x3d8490(0x100)]??[],'tdx':_0x1cb0b2};}export function captureConsole(){const _0x3c31d9=a165_0x1291,_0x9c9430=[],_0x2be387=[],_0x1295e8=console[_0x3c31d9(0xec)],_0x232fdf=console['error'],_0xdb1159=console['warn'];return console[_0x3c31d9(0xec)]=(..._0x5f29a2)=>{const _0xcd1935=_0x3c31d9;_0x9c9430[_0xcd1935(0xeb)](_0x5f29a2[_0xcd1935(0xfb)](String)[_0xcd1935(0xe8)]('\x20'));},console['error']=(..._0x35239c)=>{const _0x274f49=_0x3c31d9;_0x2be387[_0x274f49(0xeb)](_0x35239c['map'](String)[_0x274f49(0xe8)]('\x20'));},console[_0x3c31d9(0xf4)]=(..._0x3c35b5)=>{const _0x3f6e5a=_0x3c31d9;_0x2be387[_0x3f6e5a(0xeb)](_0x3c35b5[_0x3f6e5a(0xfb)](String)['join']('\x20'));},{'stdout':_0x9c9430,'stderr':_0x2be387,'restore':()=>{const _0x45df4a=_0x3c31d9;console[_0x45df4a(0xec)]=_0x1295e8,console[_0x45df4a(0xea)]=_0x232fdf,console[_0x45df4a(0xf4)]=_0xdb1159;}};}
1
+ function a165_0x34e4(_0x5d7bfc,_0x5d0cc4){_0x5d7bfc=_0x5d7bfc-0x1b4;const _0x1bf48f=a165_0x1bf4();let _0x34e4bd=_0x1bf48f[_0x5d7bfc];return _0x34e4bd;}(function(_0x2fe6b7,_0x9b5e91){const _0x58f4f2=a165_0x34e4,_0x58ba21=_0x2fe6b7();while(!![]){try{const _0x25aefa=parseInt(_0x58f4f2(0x1ce))/0x1*(parseInt(_0x58f4f2(0x1ca))/0x2)+-parseInt(_0x58f4f2(0x1c7))/0x3*(parseInt(_0x58f4f2(0x1c6))/0x4)+parseInt(_0x58f4f2(0x1ba))/0x5+-parseInt(_0x58f4f2(0x1bc))/0x6*(-parseInt(_0x58f4f2(0x1cf))/0x7)+parseInt(_0x58f4f2(0x1cd))/0x8+parseInt(_0x58f4f2(0x1b9))/0x9+-parseInt(_0x58f4f2(0x1c4))/0xa;if(_0x25aefa===_0x9b5e91)break;else _0x58ba21['push'](_0x58ba21['shift']());}catch(_0x12994c){_0x58ba21['push'](_0x58ba21['shift']());}}}(a165_0x1bf4,0x7ef98));import{vi}from'vitest';function a165_0x1bf4(){const _0x1769ca=['test-api-key-id/test-api-key-secret','journey','10722110oOKKdU','DEBUG','4zfjtnm','1706505jJTdNk','args','push','82AjPcby','user','options','1128472yNKPZH','12310PdSaLd','7IxbooX','init','us01','warn','map','api','reset','5744340kcCMcd','4376920SIHXzt','log','10326RpuKbh','table','error','join','tdx','ERROR'];a165_0x1bf4=function(){return _0x1769ca;};return a165_0x1bf4();}import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x380ed8){const _0x2a1374=a165_0x34e4;return{'site':_0x2a1374(0x1b4),'apiKey':_0x2a1374(0x1c2),'logLevel':LogLevel['ERROR'],..._0x380ed8};}export function createTestGlobalOptions(_0x409c1a){const _0x5ca7bd=a165_0x34e4;return{'site':_0x5ca7bd(0x1b4),'format':_0x5ca7bd(0x1bd),'noColor':!![],'limit':0x64,'verbose':![],'timeout':'30000','dryRun':![],'yes':![],'logLevel':LogLevel[_0x5ca7bd(0x1c1)],..._0x409c1a};}export async function initTestLogger(){const _0x35b4ec=a165_0x34e4;Logger[_0x35b4ec(0x1b8)]();const _0x29ed26=join(getGlobalCacheDir(),'logs','tdx-test.log');await Logger[_0x35b4ec(0x1d0)]({'defaultLevel':LogLevel[_0x35b4ec(0x1c5)],'handlers':[new FileHandler({'filePath':_0x29ed26,'rotate':![]})]});}export function resetTestLogger(){Logger['reset']();}export function createMockTDX(_0x4ac89a){const _0x21e27f=a165_0x34e4;return{'context':{'site':_0x21e27f(0x1b4),'apiKey':'test-api-key','logLevel':LogLevel[_0x21e27f(0x1c1)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x4ac89a?.['query']},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4ac89a?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4ac89a?.[_0x21e27f(0x1c3)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x4ac89a?.['workflow']},'user':{'show':vi['fn'](),..._0x4ac89a?.[_0x21e27f(0x1cb)]},'api':{'request':vi['fn'](),..._0x4ac89a?.[_0x21e27f(0x1b7)]},..._0x4ac89a};}export function createTestCommandContext(_0x51b70b){const _0x37763e=a165_0x34e4,_0x28dea2=createTestGlobalOptions(_0x51b70b?.[_0x37763e(0x1cc)]),_0x5be5c0=_0x51b70b?.[_0x37763e(0x1c0)]??createMockTDX();return{'options':_0x28dea2,'args':_0x51b70b?.[_0x37763e(0x1c8)]??[],'tdx':_0x5be5c0};}export function captureConsole(){const _0x1fcceb=a165_0x34e4,_0x3c4330=[],_0xb37c40=[],_0x5d960f=console['log'],_0x31e7de=console[_0x1fcceb(0x1be)],_0x3a2734=console[_0x1fcceb(0x1b5)];return console[_0x1fcceb(0x1bb)]=(..._0x160b0b)=>{const _0x4c0eb3=_0x1fcceb;_0x3c4330[_0x4c0eb3(0x1c9)](_0x160b0b[_0x4c0eb3(0x1b6)](String)[_0x4c0eb3(0x1bf)]('\x20'));},console['error']=(..._0x419983)=>{const _0x52e594=_0x1fcceb;_0xb37c40[_0x52e594(0x1c9)](_0x419983[_0x52e594(0x1b6)](String)[_0x52e594(0x1bf)]('\x20'));},console['warn']=(..._0x21bf3d)=>{const _0x24b47c=_0x1fcceb;_0xb37c40[_0x24b47c(0x1c9)](_0x21bf3d[_0x24b47c(0x1b6)](String)[_0x24b47c(0x1bf)]('\x20'));},{'stdout':_0x3c4330,'stderr':_0xb37c40,'restore':()=>{const _0x3f1fc6=_0x1fcceb;console['log']=_0x5d960f,console[_0x3f1fc6(0x1be)]=_0x31e7de,console[_0x3f1fc6(0x1b5)]=_0x3a2734;}};}
@@ -1 +1 @@
1
- const a166_0x5379e7=a166_0x2e2e;(function(_0x4c90e4,_0x1f5211){const _0x418f1f=a166_0x2e2e,_0x345c09=_0x4c90e4();while(!![]){try{const _0x40a363=parseInt(_0x418f1f(0xae))/0x1*(parseInt(_0x418f1f(0x99))/0x2)+parseInt(_0x418f1f(0xdb))/0x3*(-parseInt(_0x418f1f(0x9f))/0x4)+parseInt(_0x418f1f(0x8c))/0x5+-parseInt(_0x418f1f(0xf4))/0x6+-parseInt(_0x418f1f(0x87))/0x7*(parseInt(_0x418f1f(0xc9))/0x8)+parseInt(_0x418f1f(0x8e))/0x9*(parseInt(_0x418f1f(0xd7))/0xa)+-parseInt(_0x418f1f(0xd3))/0xb*(-parseInt(_0x418f1f(0xb0))/0xc);if(_0x40a363===_0x1f5211)break;else _0x345c09['push'](_0x345c09['shift']());}catch(_0x9f3bc7){_0x345c09['push'](_0x345c09['shift']());}}}(a166_0x2c14,0x6a847));export const fixtures={'database':{'basic':{'name':a166_0x5379e7(0x86),'count':0x5,'created_at':a166_0x5379e7(0xbf),'updated_at':a166_0x5379e7(0xbf),'permission':a166_0x5379e7(0xb4)},'withTables':{'name':'production_db','count':0x64,'created_at':a166_0x5379e7(0xba),'updated_at':'2024-01-15T08:00:00Z','permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':a166_0x5379e7(0xa6),'type':a166_0x5379e7(0xad),'schema':JSON['stringify']([['id',a166_0x5379e7(0xb3)],['time',a166_0x5379e7(0xbd)],[a166_0x5379e7(0x9c),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':'events','type':a166_0x5379e7(0xad),'schema':JSON[a166_0x5379e7(0xde)]([[a166_0x5379e7(0xa0),a166_0x5379e7(0xb3)],[a166_0x5379e7(0xdf),'long'],[a166_0x5379e7(0xe2),'string'],[a166_0x5379e7(0xbc),a166_0x5379e7(0xb3)],[a166_0x5379e7(0xd8),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a166_0x5379e7(0x96)}},'parentSegment':{'basic':{'id':a166_0x5379e7(0xb9),'name':a166_0x5379e7(0xf3),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a166_0x5379e7(0xd6),'master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a166_0x5379e7(0xc0),'type':'string','key':!![]},{'name':a166_0x5379e7(0xe7),'type':a166_0x5379e7(0xb3)},{'name':a166_0x5379e7(0xb6),'type':'timestamp'}],'created_at':a166_0x5379e7(0xbf),'updated_at':a166_0x5379e7(0xda)},'withBehaviors':{'id':a166_0x5379e7(0xc7),'name':a166_0x5379e7(0xe4),'description':a166_0x5379e7(0xcb),'status':a166_0x5379e7(0xd6),'master_table':{'database':a166_0x5379e7(0xd2),'table':a166_0x5379e7(0xce)},'behaviors':[{'name':a166_0x5379e7(0x8f),'table':{'database':a166_0x5379e7(0xef),'table':a166_0x5379e7(0x8f)},'join_key':'customer_id'},{'name':a166_0x5379e7(0xd4),'table':{'database':a166_0x5379e7(0xef),'table':'pageviews'},'join_key':a166_0x5379e7(0xc0)}],'created_at':a166_0x5379e7(0xbf),'updated_at':a166_0x5379e7(0xda)}},'segment':{'basic':{'id':a166_0x5379e7(0xe8),'name':a166_0x5379e7(0xd1),'description':a166_0x5379e7(0xc4),'parent_segment_id':a166_0x5379e7(0xb9),'status':a166_0x5379e7(0xd6),'rules':[{'type':a166_0x5379e7(0x9d),'field':a166_0x5379e7(0xaf),'operator':a166_0x5379e7(0x92),'value':a166_0x5379e7(0x8d)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a166_0x5379e7(0xda)},'withMultipleRules':{'id':a166_0x5379e7(0xac),'name':a166_0x5379e7(0xa2),'description':a166_0x5379e7(0xf5),'parent_segment_id':a166_0x5379e7(0xb9),'status':a166_0x5379e7(0xd6),'rules':[{'type':a166_0x5379e7(0x9d),'field':a166_0x5379e7(0xaf),'operator':a166_0x5379e7(0x92),'value':a166_0x5379e7(0x8d)},{'type':a166_0x5379e7(0x9d),'field':a166_0x5379e7(0x9b),'operator':a166_0x5379e7(0xc2),'value':0x3e8}],'count':0x5dc,'created_at':a166_0x5379e7(0xbf),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a166_0x5379e7(0xee),'name':a166_0x5379e7(0x9e),'description':a166_0x5379e7(0x8b),'status':a166_0x5379e7(0xc6),'version':0x1,'steps':[{'id':a166_0x5379e7(0x93),'type':a166_0x5379e7(0xaa),'duration':'1d'},{'id':a166_0x5379e7(0x84),'type':'activation','activation_id':a166_0x5379e7(0x98)}],'created_at':a166_0x5379e7(0xbf),'updated_at':a166_0x5379e7(0xda)},'withDecision':{'id':a166_0x5379e7(0xf2),'name':a166_0x5379e7(0xe3),'description':a166_0x5379e7(0xbe),'status':a166_0x5379e7(0xd6),'version':0x2,'steps':[{'id':a166_0x5379e7(0x93),'type':a166_0x5379e7(0xdd),'segment_id':a166_0x5379e7(0xe8),'yes_path':a166_0x5379e7(0x84),'no_path':a166_0x5379e7(0xa8)},{'id':a166_0x5379e7(0x84),'type':a166_0x5379e7(0xd0),'activation_id':a166_0x5379e7(0xa3)},{'id':'step-3','type':a166_0x5379e7(0xb5)}],'created_at':a166_0x5379e7(0xbf),'updated_at':a166_0x5379e7(0xda)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a166_0x5379e7(0x9a)},{'name':a166_0x5379e7(0x9c),'type':a166_0x5379e7(0x9a)},{'name':a166_0x5379e7(0xa1),'type':'bigint'}],'data':[[a166_0x5379e7(0xb1),a166_0x5379e7(0xed),0x64],[a166_0x5379e7(0xe9),a166_0x5379e7(0xd5),0xc8],[a166_0x5379e7(0xe5),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a166_0x5379e7(0x9a)},{'name':a166_0x5379e7(0x9c),'type':a166_0x5379e7(0x9a)}],'data':[]},'singleRow':{'schema':[{'name':a166_0x5379e7(0xa9),'type':a166_0x5379e7(0xc8)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a166_0x5379e7(0xd9),'created_at':a166_0x5379e7(0xbf),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a166_0x5379e7(0xa5),'created_at':'2023-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a166_0x5379e7(0x86),'status':a166_0x5379e7(0xcc),'query':a166_0x5379e7(0xea),'start_at':'2024-01-15T10:00:00Z','end_at':a166_0x5379e7(0x85),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a166_0x5379e7(0x86),'status':'running','query':a166_0x5379e7(0xc3),'start_at':a166_0x5379e7(0x8a),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a166_0x5379e7(0xc1),'database':a166_0x5379e7(0x86),'status':a166_0x5379e7(0x97),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a166_0x5379e7(0xe1),'end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a166_0x5379e7(0x89)}},'workflow':{'basic':{'id':'wf-12345','name':'daily_etl','project':a166_0x5379e7(0xa4),'revision':a166_0x5379e7(0xcf),'timezone':a166_0x5379e7(0xe6),'schedule':{'cron':a166_0x5379e7(0xa7)}},'withSessions':{'id':a166_0x5379e7(0xec),'name':a166_0x5379e7(0xb8),'project':a166_0x5379e7(0xf6),'revision':'def456','timezone':'America/Los_Angeles','schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a166_0x5379e7(0x88),'status':a166_0x5379e7(0xcc),'started_at':a166_0x5379e7(0x95),'finished_at':a166_0x5379e7(0x91)}}},'apiError':{'unauthorized':{'errors':{'error':a166_0x5379e7(0xca),'message':'Invalid\x20API\x20key','severity':a166_0x5379e7(0x97),'status_code':0x191}},'notFound':{'errors':{'error':a166_0x5379e7(0xf0),'message':a166_0x5379e7(0xc5),'severity':a166_0x5379e7(0x97),'status_code':0x194}},'rateLimited':{'detail':a166_0x5379e7(0x94)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':'Forbidden','status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a166_0x5379e7(0xe0)}}};export function createDatabase(_0x1601b2){const _0x4191a3=a166_0x5379e7;return{...fixtures['database'][_0x4191a3(0xcd)],..._0x1601b2};}export function createTable(_0x1d336d){const _0x2aecbb=a166_0x5379e7;return{...fixtures[_0x2aecbb(0xbb)][_0x2aecbb(0xcd)],..._0x1d336d};}export function createParentSegment(_0x4c1e41){const _0x44f670=a166_0x5379e7;return{...fixtures[_0x44f670(0xdc)][_0x44f670(0xcd)],..._0x4c1e41};}function a166_0x2c14(){const _0x393ba4=['Active\x20users\x20with\x20high\x20lifetime\x20value','data_sync','workflow','step-2','2024-01-15T10:00:05Z','test_db','7lyOacr','sess-111','Table\x20does\x20not\x20exist:\x20nonexistent_table','2024-01-15T10:05:00Z','Onboarding\x20journey\x20for\x20new\x20users','4179315wGKXsx','30d','63wQorje','purchases','user','2024-01-15T09:05:00Z','TimeWithinPast','step-1','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','2024-01-15T09:00:00Z','2024-01-15T12:00:00Z','error','act-123','922BqcKHz','varchar','lifetime_value','name','attribute','Welcome\x20Journey','644CGltcA','event_id','count','High\x20Value\x20Active\x20Users','act-email','data_pipeline','admin@example.com','users','0\x200\x20*\x20*\x20*','step-3','total','wait','journey','cs-111222','log','189IJqold','last_login','1212NeIGJG','user-1','job','string','administrator','end','created_at','completed','hourly_sync','ps-123456','2023-06-15T10:30:00Z','table','event_type','long','Journey\x20with\x20decision\x20point','2024-01-01T00:00:00Z','customer_id','presto','Greater','SELECT\x20COUNT(*)\x20FROM\x20events','Users\x20active\x20in\x20the\x20last\x2030\x20days','The\x20requested\x20resource\x20does\x20not\x20exist','draft','ps-789012','bigint','207056dqUCGD','Invalid\x20API\x20key','Parent\x20segment\x20with\x20behavioral\x20data','success','basic','customers','abc123','activation','Active\x20Users','cdp_db','12309CywaSn','page_views','Bob','active','962890pFzPaP','properties','test@example.com','2024-01-15T00:00:00Z','11163WTuOCP','parentSegment','decision_point','stringify','time','/v3/database/list','2024-01-15T10:10:00Z','user_id','Purchase\x20Reminder','Customers\x20with\x20Behaviors','user-3','UTC','email','cs-456789','user-2','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','segment','wf-67890','Alice','j-abc123','events_db','Resource\x20not\x20found','queryResult','j-def456','Test\x20Parent\x20Segment','3892656FgptRW'];a166_0x2c14=function(){return _0x393ba4;};return a166_0x2c14();}export function createSegment(_0xc33385){const _0x5b272b=a166_0x5379e7;return{...fixtures[_0x5b272b(0xeb)][_0x5b272b(0xcd)],..._0xc33385};}export function createJourney(_0x14f63){const _0x2d7a45=a166_0x5379e7;return{...fixtures[_0x2d7a45(0xab)][_0x2d7a45(0xcd)],..._0x14f63};}export function createQueryResult(_0x5b52e7){const _0x4484fb=a166_0x5379e7;return{...fixtures[_0x4484fb(0xf1)][_0x4484fb(0xcd)],..._0x5b52e7};}export function createUser(_0xc92dc0){const _0x561dca=a166_0x5379e7;return{...fixtures[_0x561dca(0x90)][_0x561dca(0xcd)],..._0xc92dc0};}export function createJob(_0x4f0948){const _0x1aeee2=a166_0x5379e7;return{...fixtures[_0x1aeee2(0xb2)][_0x1aeee2(0xb7)],..._0x4f0948};}function a166_0x2e2e(_0x3c97f3,_0x45b95d){_0x3c97f3=_0x3c97f3-0x84;const _0x2c14f9=a166_0x2c14();let _0x2e2e8b=_0x2c14f9[_0x3c97f3];return _0x2e2e8b;}export function createWorkflow(_0x5c8bbb){const _0x44c2fe=a166_0x5379e7;return{...fixtures[_0x44c2fe(0xf7)][_0x44c2fe(0xcd)],..._0x5c8bbb};}
1
+ const a166_0x1e9895=a166_0x5fe1;(function(_0x41c8fe,_0x53203c){const _0x2e3d7c=a166_0x5fe1,_0x204bd6=_0x41c8fe();while(!![]){try{const _0x183dfd=-parseInt(_0x2e3d7c(0x180))/0x1*(-parseInt(_0x2e3d7c(0x194))/0x2)+parseInt(_0x2e3d7c(0x1ab))/0x3+parseInt(_0x2e3d7c(0x186))/0x4*(-parseInt(_0x2e3d7c(0x1d8))/0x5)+parseInt(_0x2e3d7c(0x172))/0x6*(-parseInt(_0x2e3d7c(0x1bf))/0x7)+-parseInt(_0x2e3d7c(0x18a))/0x8+-parseInt(_0x2e3d7c(0x1c7))/0x9+-parseInt(_0x2e3d7c(0x1bb))/0xa*(parseInt(_0x2e3d7c(0x1b3))/0xb);if(_0x183dfd===_0x53203c)break;else _0x204bd6['push'](_0x204bd6['shift']());}catch(_0x241cb6){_0x204bd6['push'](_0x204bd6['shift']());}}}(a166_0x1a05,0x50e32));export const fixtures={'database':{'basic':{'name':a166_0x1e9895(0x18d),'count':0x5,'created_at':a166_0x1e9895(0x16e),'updated_at':a166_0x1e9895(0x16e),'permission':a166_0x1e9895(0x1cc)},'withTables':{'name':'production_db','count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a166_0x1e9895(0x1b1),'permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':a166_0x1e9895(0x174),'type':a166_0x1e9895(0x1b2),'schema':JSON['stringify']([['id',a166_0x1e9895(0x170)],[a166_0x1e9895(0x171),a166_0x1e9895(0x1db)],[a166_0x1e9895(0x17f),a166_0x1e9895(0x170)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a166_0x1e9895(0x16e),'updated_at':a166_0x1e9895(0x16e)},'events':{'id':0x303a,'name':a166_0x1e9895(0x191),'type':a166_0x1e9895(0x1b2),'schema':JSON[a166_0x1e9895(0x1be)]([[a166_0x1e9895(0x167),a166_0x1e9895(0x170)],[a166_0x1e9895(0x171),a166_0x1e9895(0x1db)],[a166_0x1e9895(0x1cd),a166_0x1e9895(0x170)],[a166_0x1e9895(0x188),a166_0x1e9895(0x170)],[a166_0x1e9895(0x1ba),a166_0x1e9895(0x1c3)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a166_0x1e9895(0x16e),'updated_at':a166_0x1e9895(0x17c)}},'parentSegment':{'basic':{'id':a166_0x1e9895(0x1ac),'name':a166_0x1e9895(0x184),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a166_0x1e9895(0x1b9),'master_table':{'database':a166_0x1e9895(0x1a0),'table':a166_0x1e9895(0x1b4)},'attributes':[{'name':'customer_id','type':a166_0x1e9895(0x170),'key':!![]},{'name':a166_0x1e9895(0x193),'type':a166_0x1e9895(0x170)},{'name':a166_0x1e9895(0x175),'type':a166_0x1e9895(0x19f)}],'created_at':a166_0x1e9895(0x16e),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a166_0x1e9895(0x198),'name':'Customers\x20with\x20Behaviors','description':a166_0x1e9895(0x19d),'status':a166_0x1e9895(0x1b9),'master_table':{'database':'cdp_db','table':a166_0x1e9895(0x18e)},'behaviors':[{'name':a166_0x1e9895(0x1a4),'table':{'database':a166_0x1e9895(0x16f),'table':a166_0x1e9895(0x1a4)},'join_key':a166_0x1e9895(0x18f)},{'name':'page_views','table':{'database':a166_0x1e9895(0x16f),'table':a166_0x1e9895(0x1c8)},'join_key':a166_0x1e9895(0x18f)}],'created_at':a166_0x1e9895(0x16e),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a166_0x1e9895(0x166),'name':a166_0x1e9895(0x1bc),'description':a166_0x1e9895(0x1ad),'parent_segment_id':'ps-123456','status':a166_0x1e9895(0x1b9),'rules':[{'type':'attribute','field':a166_0x1e9895(0x1ca),'operator':a166_0x1e9895(0x16b),'value':a166_0x1e9895(0x19b)}],'count':0x1388,'created_at':a166_0x1e9895(0x16e),'updated_at':a166_0x1e9895(0x1d3)},'withMultipleRules':{'id':a166_0x1e9895(0x178),'name':'High\x20Value\x20Active\x20Users','description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a166_0x1e9895(0x1ac),'status':a166_0x1e9895(0x1b9),'rules':[{'type':a166_0x1e9895(0x1a6),'field':a166_0x1e9895(0x1ca),'operator':a166_0x1e9895(0x16b),'value':a166_0x1e9895(0x19b)},{'type':'attribute','field':a166_0x1e9895(0x1bd),'operator':a166_0x1e9895(0x1b6),'value':0x3e8}],'count':0x5dc,'created_at':a166_0x1e9895(0x16e),'updated_at':a166_0x1e9895(0x1d3)}},'journey':{'basic':{'id':a166_0x1e9895(0x1cb),'name':a166_0x1e9895(0x19a),'description':a166_0x1e9895(0x197),'status':a166_0x1e9895(0x195),'version':0x1,'steps':[{'id':a166_0x1e9895(0x1dc),'type':a166_0x1e9895(0x1a9),'duration':'1d'},{'id':a166_0x1e9895(0x1c0),'type':'activation','activation_id':a166_0x1e9895(0x179)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withDecision':{'id':'j-def456','name':a166_0x1e9895(0x189),'description':a166_0x1e9895(0x192),'status':'active','version':0x2,'steps':[{'id':'step-1','type':a166_0x1e9895(0x18c),'segment_id':a166_0x1e9895(0x166),'yes_path':'step-2','no_path':a166_0x1e9895(0x1c6)},{'id':'step-2','type':a166_0x1e9895(0x1d9),'activation_id':a166_0x1e9895(0x199)},{'id':'step-3','type':a166_0x1e9895(0x1a8)}],'created_at':a166_0x1e9895(0x16e),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a166_0x1e9895(0x190)},{'name':'name','type':a166_0x1e9895(0x190)},{'name':a166_0x1e9895(0x1d1),'type':a166_0x1e9895(0x1b5)}],'data':[[a166_0x1e9895(0x187),a166_0x1e9895(0x19e),0x64],[a166_0x1e9895(0x1c1),a166_0x1e9895(0x17d),0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a166_0x1e9895(0x190)},{'name':a166_0x1e9895(0x17f),'type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a166_0x1e9895(0x173),'type':a166_0x1e9895(0x1b5)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a166_0x1e9895(0x17e),'email':a166_0x1e9895(0x1a1),'created_at':a166_0x1e9895(0x16e),'updated_at':a166_0x1e9895(0x1d3),'administrator':![]},'admin':{'id':0x1,'name':a166_0x1e9895(0x18b),'email':a166_0x1e9895(0x181),'created_at':a166_0x1e9895(0x1c4),'updated_at':a166_0x1e9895(0x1d3),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a166_0x1e9895(0x169),'database':'test_db','status':a166_0x1e9895(0x1ce),'query':a166_0x1e9895(0x196),'start_at':'2024-01-15T10:00:00Z','end_at':a166_0x1e9895(0x1a7),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a166_0x1e9895(0x169),'database':a166_0x1e9895(0x18d),'status':a166_0x1e9895(0x1c9),'query':a166_0x1e9895(0x1b0),'start_at':a166_0x1e9895(0x17a),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a166_0x1e9895(0x169),'database':a166_0x1e9895(0x18d),'status':a166_0x1e9895(0x17b),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a166_0x1e9895(0x1d6),'end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a166_0x1e9895(0x1de)}},'workflow':{'basic':{'id':a166_0x1e9895(0x1a3),'name':'daily_etl','project':a166_0x1e9895(0x1b7),'revision':a166_0x1e9895(0x1dd),'timezone':'UTC','schedule':{'cron':a166_0x1e9895(0x1d7)}},'withSessions':{'id':a166_0x1e9895(0x185),'name':a166_0x1e9895(0x1d0),'project':a166_0x1e9895(0x1af),'revision':a166_0x1e9895(0x177),'timezone':a166_0x1e9895(0x1d2),'schedule':{'cron':a166_0x1e9895(0x182)},'last_session':{'id':a166_0x1e9895(0x16c),'status':a166_0x1e9895(0x1ce),'started_at':a166_0x1e9895(0x1a2),'finished_at':a166_0x1e9895(0x1c2)}}},'apiError':{'unauthorized':{'errors':{'error':a166_0x1e9895(0x183),'message':a166_0x1e9895(0x183),'severity':'error','status_code':0x191}},'notFound':{'errors':{'error':a166_0x1e9895(0x19c),'message':a166_0x1e9895(0x1d5),'severity':a166_0x1e9895(0x17b),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a166_0x1e9895(0x1da),'title':a166_0x1e9895(0x1cf),'status':0x193,'detail':a166_0x1e9895(0x1d4),'instance':'/v3/database/list'}}};export function createDatabase(_0x410a7e){const _0x3fe192=a166_0x1e9895;return{...fixtures[_0x3fe192(0x1aa)][_0x3fe192(0x16d)],..._0x410a7e};}export function createTable(_0x5e2044){const _0x2ddec1=a166_0x1e9895;return{...fixtures[_0x2ddec1(0x168)][_0x2ddec1(0x16d)],..._0x5e2044};}export function createParentSegment(_0x3c1dcb){const _0x3cc923=a166_0x1e9895;return{...fixtures[_0x3cc923(0x1a5)][_0x3cc923(0x16d)],..._0x3c1dcb};}function a166_0x1a05(){const _0xed4199=['lifetime_value','stringify','35TXYzXN','step-2','user-2','2024-01-15T09:05:00Z','map<string,string>','2023-01-01T00:00:00Z','completed','step-3','2147733EFHNYT','pageviews','running','last_login','j-abc123','administrator','user_id','success','Forbidden','hourly_sync','count','America/Los_Angeles','2024-01-15T00:00:00Z','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','The\x20requested\x20resource\x20does\x20not\x20exist','2024-01-15T10:10:00Z','0\x200\x20*\x20*\x20*','137290qdZFBc','activation','https://api.treasuredata.com/errors/forbidden','long','step-1','abc123','Table\x20does\x20not\x20exist:\x20nonexistent_table','cs-456789','event_id','table','presto','job','TimeWithinPast','sess-111','basic','2024-01-01T00:00:00Z','events_db','string','time','453414DqcqMT','total','users','created_at','journey','def456','cs-111222','act-123','2024-01-15T10:05:00Z','error','2024-01-15T12:00:00Z','Bob','Test\x20User','name','65ibBGqb','admin@example.com','0\x20*\x20*\x20*\x20*','Invalid\x20API\x20key','Test\x20Parent\x20Segment','wf-67890','4CrRFgG','user-1','event_type','Purchase\x20Reminder','372208xSmPvm','Admin\x20User','decision_point','test_db','customers','customer_id','varchar','events','Journey\x20with\x20decision\x20point','email','17162TIXWCc','draft','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','Onboarding\x20journey\x20for\x20new\x20users','ps-789012','act-email','Welcome\x20Journey','30d','Resource\x20not\x20found','Parent\x20segment\x20with\x20behavioral\x20data','Alice','timestamp','cdp_db','test@example.com','2024-01-15T09:00:00Z','wf-12345','purchases','parentSegment','attribute','2024-01-15T10:00:05Z','end','wait','database','1669824YvXNdI','ps-123456','Users\x20active\x20in\x20the\x20last\x2030\x20days','segment','data_sync','SELECT\x20COUNT(*)\x20FROM\x20events','2024-01-15T08:00:00Z','log','1018523urzRTf','unified_customers','bigint','Greater','data_pipeline','workflow','active','properties','10VWDpZd','Active\x20Users'];a166_0x1a05=function(){return _0xed4199;};return a166_0x1a05();}export function createSegment(_0x30a2f0){const _0x3b5786=a166_0x1e9895;return{...fixtures[_0x3b5786(0x1ae)][_0x3b5786(0x16d)],..._0x30a2f0};}export function createJourney(_0x57e9ef){const _0x5388a4=a166_0x1e9895;return{...fixtures[_0x5388a4(0x176)][_0x5388a4(0x16d)],..._0x57e9ef};}export function createQueryResult(_0x26351b){const _0x43330e=a166_0x1e9895;return{...fixtures['queryResult'][_0x43330e(0x16d)],..._0x26351b};}export function createUser(_0x55c253){const _0x2f4310=a166_0x1e9895;return{...fixtures['user'][_0x2f4310(0x16d)],..._0x55c253};}export function createJob(_0x29e9b5){const _0x34c990=a166_0x1e9895;return{...fixtures[_0x34c990(0x16a)][_0x34c990(0x1c5)],..._0x29e9b5};}function a166_0x5fe1(_0x395896,_0x59043a){_0x395896=_0x395896-0x166;const _0x1a055b=a166_0x1a05();let _0x5fe1dc=_0x1a055b[_0x395896];return _0x5fe1dc;}export function createWorkflow(_0x4d7cc6){const _0x1bb7cc=a166_0x1e9895;return{...fixtures[_0x1bb7cc(0x1b8)]['basic'],..._0x4d7cc6};}
@@ -1 +1 @@
1
- const a167_0x3010ba=a167_0x2cd9;function a167_0x1f7b(){const _0x21d02c=['72UnTAvy','isArray','mockImplementation','Forbidden','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Too\x20Many\x20Requests','stubs','3177riIouO','test','simple','Unknown','GET','string','rfc9457','parse','registerWithInspector','push','matcher','pathname','map','application/json','toUpperCase','4521190FIviKr','register','withHost','Bad\x20Request','verify','requests','join','getRequests','reset','Created','searchParams','\x20registered\x20at:\x0a','headers','stringify','description','withBody','parseRequest','Service\x20Unavailable','getMatchCount','createFetch','315312YXpYsM','jsonResponse','fetchMock','withQuery','slice','REST','get','Unprocessable\x20Entity','responder','url','No\x20stub\x20matched\x20request:\x20','entries','length','Conflict','matchCount','body','stack','getLastRequest','No\x20Content','https://api.treasuredata.com/errors/','includes','Unmatched\x20stub','toLowerCase','321955GaIGTh','55270hEefvd','463498txfSWq','forEach','td-api','matched','function','241804FKFzhN','Unauthorized','split','4Uqhdqv','4337448YpWuNR','\x20\x20(none)','method','unnamed\x20stub','errorResponse','getStatusText','Bad\x20Gateway'];a167_0x1f7b=function(){return _0x21d02c;};return a167_0x1f7b();}function a167_0x2cd9(_0x480a05,_0x41b49b){_0x480a05=_0x480a05-0x80;const _0x1f7b54=a167_0x1f7b();let _0x2cd915=_0x1f7b54[_0x480a05];return _0x2cd915;}(function(_0x37b85f,_0x3022fa){const _0x171196=a167_0x2cd9,_0x12ca17=_0x37b85f();while(!![]){try{const _0x16e3cc=parseInt(_0x171196(0xc4))/0x1+parseInt(_0x171196(0xcb))/0x2+-parseInt(_0x171196(0xad))/0x3+-parseInt(_0x171196(0xce))/0x4*(-parseInt(_0x171196(0x99))/0x5)+parseInt(_0x171196(0xcf))/0x6+parseInt(_0x171196(0xc6))/0x7*(parseInt(_0x171196(0x83))/0x8)+-parseInt(_0x171196(0x8a))/0x9*(parseInt(_0x171196(0xc5))/0xa);if(_0x16e3cc===_0x3022fa)break;else _0x12ca17['push'](_0x12ca17['shift']());}catch(_0x42460e){_0x12ca17['push'](_0x12ca17['shift']());}}}(a167_0x1f7b,0x94e02));import{vi}from'vitest';export class HTTPMockRegistry{[a167_0x3010ba(0x89)]=[];['requests']=[];[a167_0x3010ba(0xaf)]=null;[a167_0x3010ba(0xb2)](_0x264da9,_0x4e953a){return _0x3a8449=>{const _0x2d6e7a=a167_0x2cd9;if(_0x3a8449[_0x2d6e7a(0xd1)][_0x2d6e7a(0x98)]()!==_0x264da9[_0x2d6e7a(0x98)]())return![];const _0x597765=new URL(_0x3a8449[_0x2d6e7a(0xb6)]);if(typeof _0x4e953a===_0x2d6e7a(0x8f))return _0x597765[_0x2d6e7a(0x95)]===_0x4e953a||_0x597765['pathname'][_0x2d6e7a(0xc1)](_0x4e953a);return _0x4e953a['test'](_0x597765[_0x2d6e7a(0x95)]);};}[a167_0x3010ba(0xb0)](_0x19b3b8,_0x9d2f7){return _0xb52faf=>{const _0x2dac92=a167_0x2cd9;if(!_0x19b3b8(_0xb52faf))return![];const _0x2b1b28=new URL(_0xb52faf[_0x2dac92(0xb6)]);return Object[_0x2dac92(0xb8)](_0x9d2f7)['every'](([_0x24f5a5,_0x208a47])=>_0x2b1b28[_0x2dac92(0xa3)][_0x2dac92(0xb3)](_0x24f5a5)===_0x208a47);};}[a167_0x3010ba(0xa8)](_0x2c409e,_0x27ea89){return _0x360549=>{const _0x42236a=a167_0x2cd9;if(!_0x2c409e(_0x360549))return![];if(typeof _0x27ea89===_0x42236a(0xca))return _0x27ea89(_0x360549[_0x42236a(0xbc)]);return JSON[_0x42236a(0xa6)](_0x360549[_0x42236a(0xbc)])===JSON[_0x42236a(0xa6)](_0x27ea89);};}[a167_0x3010ba(0x9b)](_0x56e07c,_0x517bf3){return _0x293ac4=>{const _0x2ae30d=a167_0x2cd9;if(!_0x56e07c(_0x293ac4))return![];const _0x3f8c0c=new URL(_0x293ac4[_0x2ae30d(0xb6)]);return _0x3f8c0c['host']===_0x517bf3;};}[a167_0x3010ba(0x9a)](_0x345f1b,_0x1d11b3,_0x46f097){const _0x3f7ae1=a167_0x3010ba;this[_0x3f7ae1(0x89)]['push']({'matcher':_0x345f1b,'responder':_0x1d11b3,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x46f097?.[_0x3f7ae1(0xa7)]});}[a167_0x3010ba(0x92)](_0x3f396e,_0x1a0c77,_0x55c5f0){const _0x6ed931=a167_0x3010ba,_0x232e29=_0x472de8=>{const _0x4aa11d=a167_0x2cd9;return _0x55c5f0(_0x472de8[_0x4aa11d(0xbc)],_0x472de8),_0x1a0c77(_0x472de8);};this[_0x6ed931(0x9a)](_0x3f396e,_0x232e29);}static[a167_0x3010ba(0xae)](_0x4a20f3,_0x385369=0xc8){const _0x507e05=a167_0x3010ba;return()=>new Response(JSON[_0x507e05(0xa6)](_0x4a20f3),{'status':_0x385369,'headers':{'Content-Type':'application/json'}});}static[a167_0x3010ba(0x80)](_0x56fd20,_0x24417a,_0x15500f=a167_0x3010ba(0x8c)){return()=>{const _0x14abbe=a167_0x2cd9;let _0x16526a;switch(_0x15500f){case _0x14abbe(0xc8):_0x16526a={'errors':{'error':_0x24417a,'message':_0x24417a,'severity':'error','status_code':_0x56fd20}};break;case _0x14abbe(0x90):_0x16526a={'type':_0x14abbe(0xc0)+_0x56fd20,'title':HTTPMockRegistry[_0x14abbe(0x81)](_0x56fd20),'status':_0x56fd20,'detail':_0x24417a};break;default:_0x16526a={'error':_0x24417a};}return new Response(JSON[_0x14abbe(0xa6)](_0x16526a),{'status':_0x56fd20,'headers':{'Content-Type':_0x14abbe(0x97)}});};}static['jsonResponseWithHeaders'](_0xc602c1,_0x684cb6,_0x3e466e=0xc8){const _0x1e1375=a167_0x3010ba;return()=>new Response(JSON['stringify'](_0xc602c1),{'status':_0x3e466e,'headers':{'Content-Type':_0x1e1375(0x97),..._0x684cb6}});}static['textResponse'](_0x5a86c6,_0x3b6051=0xc8){return()=>new Response(_0x5a86c6,{'status':_0x3b6051,'headers':{'Content-Type':'text/plain'}});}static['networkError'](_0xdd8660){return()=>{throw new Error(_0xdd8660);};}[a167_0x3010ba(0xac)](){const _0x47512e=a167_0x3010ba;return this[_0x47512e(0xaf)]=vi['fn']()[_0x47512e(0x85)](async(_0x5c6799,_0x592017)=>{const _0x361f3c=_0x47512e,_0x5b1309=this[_0x361f3c(0xa9)](_0x5c6799,_0x592017);this[_0x361f3c(0x9e)][_0x361f3c(0x93)](_0x5b1309);for(const _0x1e1730 of this['stubs']){if(_0x1e1730[_0x361f3c(0x94)](_0x5b1309))return _0x1e1730[_0x361f3c(0xc9)]=!![],_0x1e1730[_0x361f3c(0xbb)]++,_0x1e1730[_0x361f3c(0xb5)](_0x5b1309);}const _0x30d206=this[_0x361f3c(0x89)]['map']((_0x255fb0,_0x202cb2)=>'\x20\x20'+(_0x202cb2+0x1)+'.\x20'+(_0x255fb0[_0x361f3c(0xa7)]??_0x361f3c(0xd2)))[_0x361f3c(0x9f)]('\x0a');throw new Error(_0x361f3c(0xb7)+_0x5b1309[_0x361f3c(0xd1)]+'\x20'+_0x5b1309[_0x361f3c(0xb6)]+'\x0a'+('Request\x20body:\x20'+JSON['stringify'](_0x5b1309[_0x361f3c(0xbc)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x30d206||_0x361f3c(0xd0))));}),this['fetchMock'];}[a167_0x3010ba(0xa9)](_0x5d8237,_0xba2080){const _0x3818d2=a167_0x3010ba,_0x17e9a1={};if(_0xba2080?.[_0x3818d2(0xa5)]){if(_0xba2080[_0x3818d2(0xa5)]instanceof Headers)_0xba2080[_0x3818d2(0xa5)][_0x3818d2(0xc7)]((_0x72aefb,_0x388913)=>{const _0x4d58e6=_0x3818d2;_0x17e9a1[_0x388913[_0x4d58e6(0xc3)]()]=_0x72aefb;});else{if(Array[_0x3818d2(0x84)](_0xba2080[_0x3818d2(0xa5)]))for(const [_0x2a541d,_0x3bfb22]of _0xba2080[_0x3818d2(0xa5)]){_0x17e9a1[_0x2a541d[_0x3818d2(0xc3)]()]=_0x3bfb22;}else for(const [_0x4f8166,_0x47f2bc]of Object[_0x3818d2(0xb8)](_0xba2080[_0x3818d2(0xa5)])){_0x47f2bc!==undefined&&(_0x17e9a1[_0x4f8166['toLowerCase']()]=_0x47f2bc);}}}let _0x603499;if(_0xba2080?.[_0x3818d2(0xbc)])try{_0x603499=JSON[_0x3818d2(0x91)](_0xba2080[_0x3818d2(0xbc)]);}catch{_0x603499=_0xba2080[_0x3818d2(0xbc)];}return{'method':_0xba2080?.[_0x3818d2(0xd1)]??_0x3818d2(0x8e),'url':_0x5d8237,'headers':_0x17e9a1,'body':_0x603499};}[a167_0x3010ba(0x9d)](_0x2f6b41){const _0x4ef7d2=a167_0x3010ba,_0x3c18a2=this['stubs']['filter'](_0x36c7bb=>!_0x36c7bb[_0x4ef7d2(0xc9)]);if(_0x3c18a2['length']>0x0){const _0x59fdfa=_0x3c18a2[_0x4ef7d2(0x96)](_0x4367e6=>{const _0x582850=_0x4ef7d2,_0x165546=_0x4367e6['description']?'\x20('+_0x4367e6[_0x582850(0xa7)]+')':'',_0x332f46=_0x4367e6[_0x582850(0xbd)][_0x582850(0xcd)]('\x0a')[_0x582850(0xb1)](0x2,0x5)[_0x582850(0x9f)]('\x0a');return _0x582850(0xc2)+_0x165546+_0x582850(0xa4)+_0x332f46;});_0x2f6b41['fail'](_0x3c18a2[_0x4ef7d2(0xb9)]+_0x4ef7d2(0x87)+_0x59fdfa[_0x4ef7d2(0x9f)]('\x0a\x0a'));}}[a167_0x3010ba(0xa0)](){const _0x21a017=a167_0x3010ba;return[...this[_0x21a017(0x9e)]];}[a167_0x3010ba(0xbe)](){const _0xa52981=a167_0x3010ba;return this[_0xa52981(0x9e)][this['requests']['length']-0x1];}['wasCalled'](_0x2d3996,_0xfcd8f5){return this['requests']['some'](_0x38c257=>{const _0x338abe=a167_0x2cd9;if(_0x38c257[_0x338abe(0xd1)][_0x338abe(0x98)]()!==_0x2d3996['toUpperCase']())return![];if(typeof _0xfcd8f5==='string')return _0x38c257['url'][_0x338abe(0xc1)](_0xfcd8f5);return _0xfcd8f5[_0x338abe(0x8b)](_0x38c257[_0x338abe(0xb6)]);});}[a167_0x3010ba(0xab)](_0x184835){const _0x235739=a167_0x3010ba;return this[_0x235739(0x89)][_0x184835]?.[_0x235739(0xbb)]??0x0;}[a167_0x3010ba(0xa1)](){const _0x3b2dab=a167_0x3010ba;this[_0x3b2dab(0x89)]=[],this[_0x3b2dab(0x9e)]=[],this[_0x3b2dab(0xaf)]=null;}static[a167_0x3010ba(0x81)](_0x503c88){const _0x5893bf=a167_0x3010ba,_0x5a4bae={0xc8:'OK',0xc9:_0x5893bf(0xa2),0xcc:_0x5893bf(0xbf),0x190:_0x5893bf(0x9c),0x191:_0x5893bf(0xcc),0x193:_0x5893bf(0x86),0x194:'Not\x20Found',0x199:_0x5893bf(0xba),0x1a6:_0x5893bf(0xb4),0x1ad:_0x5893bf(0x88),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0x5893bf(0x82),0x1f7:_0x5893bf(0xaa)};return _0x5a4bae[_0x503c88]??_0x5893bf(0x8d);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ function a167_0x56fe(_0x4d33c9,_0x89cef4){_0x4d33c9=_0x4d33c9-0x92;const _0x1cb7a1=a167_0x1cb7();let _0x56fe01=_0x1cb7a1[_0x4d33c9];return _0x56fe01;}function a167_0x1cb7(){const _0x58e06a=['Bad\x20Request','function','jsonResponseWithHeaders','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','\x20\x20(none)','491210tEeslm','54098LsYHqH','https://api.treasuredata.com/errors/','Unauthorized','REST','register','parseRequest','length','networkError','41514qQsiVW','Created','textResponse','Registered\x20stubs:\x0a','map','GET','fetchMock','No\x20Content','stringify','string','Request\x20body:\x20','unnamed\x20stub','No\x20stub\x20matched\x20request:\x20','method','description','body','error','url','join','1316266jpPEtS','stack','forEach','test','toUpperCase','application/json','parse','withQuery','Too\x20Many\x20Requests','searchParams','matched','includes','Internal\x20Server\x20Error','stubs','jsonResponse','headers','fail','split','Forbidden','Not\x20Found','withBody','toLowerCase','requests','Bad\x20Gateway','reset','matcher','errorResponse','Unmatched\x20stub','filter','slice','pathname','9pGsWWn','8TXPEMB','matchCount','mockImplementation','text/plain','getMatchCount','simple','493376gBVywb','rfc9457','213183yiiDXE','push','entries','15MdFLxT','317571moqgqu','registerWithInspector'];a167_0x1cb7=function(){return _0x58e06a;};return a167_0x1cb7();}const a167_0xcd6139=a167_0x56fe;(function(_0x3a9c49,_0x744af5){const _0x3b2220=a167_0x56fe,_0x4d424a=_0x3a9c49();while(!![]){try{const _0x2cc4c2=parseInt(_0x3b2220(0xad))/0x1+parseInt(_0x3b2220(0xb5))/0x2+-parseInt(_0x3b2220(0xa9))/0x3+parseInt(_0x3b2220(0xa7))/0x4+parseInt(_0x3b2220(0xac))/0x5*(parseInt(_0x3b2220(0xbd))/0x6)+-parseInt(_0x3b2220(0xd0))/0x7*(parseInt(_0x3b2220(0xa1))/0x8)+-parseInt(_0x3b2220(0xa0))/0x9*(parseInt(_0x3b2220(0xb4))/0xa);if(_0x2cc4c2===_0x744af5)break;else _0x4d424a['push'](_0x4d424a['shift']());}catch(_0x5545dc){_0x4d424a['push'](_0x4d424a['shift']());}}}(a167_0x1cb7,0x2c115));import{vi}from'vitest';export class HTTPMockRegistry{[a167_0xcd6139(0xdd)]=[];[a167_0xcd6139(0x97)]=[];[a167_0xcd6139(0xc3)]=null;[a167_0xcd6139(0xb8)](_0x745203,_0x11a8c7){return _0x1637da=>{const _0xbe54eb=a167_0x56fe;if(_0x1637da['method'][_0xbe54eb(0xd4)]()!==_0x745203[_0xbe54eb(0xd4)]())return![];const _0x2cbfb2=new URL(_0x1637da[_0xbe54eb(0xce)]);if(typeof _0x11a8c7===_0xbe54eb(0xc6))return _0x2cbfb2[_0xbe54eb(0x9f)]===_0x11a8c7||_0x2cbfb2[_0xbe54eb(0x9f)][_0xbe54eb(0xdb)](_0x11a8c7);return _0x11a8c7[_0xbe54eb(0xd3)](_0x2cbfb2['pathname']);};}[a167_0xcd6139(0xd7)](_0x564632,_0x5dcb50){return _0x56c742=>{const _0x4d922b=a167_0x56fe;if(!_0x564632(_0x56c742))return![];const _0x3efe32=new URL(_0x56c742[_0x4d922b(0xce)]);return Object[_0x4d922b(0xab)](_0x5dcb50)['every'](([_0x5f59ea,_0x5e8101])=>_0x3efe32[_0x4d922b(0xd9)]['get'](_0x5f59ea)===_0x5e8101);};}[a167_0xcd6139(0x95)](_0x3cb053,_0x4094ef){return _0x246469=>{const _0x53f508=a167_0x56fe;if(!_0x3cb053(_0x246469))return![];if(typeof _0x4094ef===_0x53f508(0xb0))return _0x4094ef(_0x246469[_0x53f508(0xcc)]);return JSON[_0x53f508(0xc5)](_0x246469[_0x53f508(0xcc)])===JSON[_0x53f508(0xc5)](_0x4094ef);};}['withHost'](_0x4937f4,_0x28f4c0){return _0xc83a4b=>{const _0x28ed48=a167_0x56fe;if(!_0x4937f4(_0xc83a4b))return![];const _0x12822a=new URL(_0xc83a4b[_0x28ed48(0xce)]);return _0x12822a['host']===_0x28f4c0;};}[a167_0xcd6139(0xb9)](_0x5b1573,_0x55b5e9,_0x432f34){const _0x430fd9=a167_0xcd6139;this[_0x430fd9(0xdd)][_0x430fd9(0xaa)]({'matcher':_0x5b1573,'responder':_0x55b5e9,'matched':![],'matchCount':0x0,'stack':new Error()[_0x430fd9(0xd1)]??'','description':_0x432f34?.[_0x430fd9(0xcb)]});}[a167_0xcd6139(0xae)](_0x125dd4,_0x55d641,_0x86fa32){const _0x249f1c=a167_0xcd6139,_0x34616f=_0x53ebd1=>{return _0x86fa32(_0x53ebd1['body'],_0x53ebd1),_0x55d641(_0x53ebd1);};this[_0x249f1c(0xb9)](_0x125dd4,_0x34616f);}static[a167_0xcd6139(0xde)](_0x3b7fda,_0xa168e1=0xc8){const _0x5d2af2=a167_0xcd6139;return()=>new Response(JSON['stringify'](_0x3b7fda),{'status':_0xa168e1,'headers':{'Content-Type':_0x5d2af2(0xd5)}});}static[a167_0xcd6139(0x9b)](_0x4a6153,_0xf5df12,_0x4c336b=a167_0xcd6139(0xa6)){return()=>{const _0x340e89=a167_0x56fe;let _0x453c94;switch(_0x4c336b){case'td-api':_0x453c94={'errors':{'error':_0xf5df12,'message':_0xf5df12,'severity':_0x340e89(0xcd),'status_code':_0x4a6153}};break;case _0x340e89(0xa8):_0x453c94={'type':_0x340e89(0xb6)+_0x4a6153,'title':HTTPMockRegistry['getStatusText'](_0x4a6153),'status':_0x4a6153,'detail':_0xf5df12};break;default:_0x453c94={'error':_0xf5df12};}return new Response(JSON['stringify'](_0x453c94),{'status':_0x4a6153,'headers':{'Content-Type':_0x340e89(0xd5)}});};}static[a167_0xcd6139(0xb1)](_0x572ac3,_0x61a1f4,_0x1f4c3c=0xc8){const _0x4f3485=a167_0xcd6139;return()=>new Response(JSON[_0x4f3485(0xc5)](_0x572ac3),{'status':_0x1f4c3c,'headers':{'Content-Type':_0x4f3485(0xd5),..._0x61a1f4}});}static[a167_0xcd6139(0xbf)](_0x29b01c,_0x441efe=0xc8){const _0x34a5fe=a167_0xcd6139;return()=>new Response(_0x29b01c,{'status':_0x441efe,'headers':{'Content-Type':_0x34a5fe(0xa4)}});}static[a167_0xcd6139(0xbc)](_0x2e194c){return()=>{throw new Error(_0x2e194c);};}['createFetch'](){const _0x20a01e=a167_0xcd6139;return this[_0x20a01e(0xc3)]=vi['fn']()[_0x20a01e(0xa3)](async(_0x118c1b,_0x2ef53c)=>{const _0xd9f13=_0x20a01e,_0x113e84=this[_0xd9f13(0xba)](_0x118c1b,_0x2ef53c);this[_0xd9f13(0x97)][_0xd9f13(0xaa)](_0x113e84);for(const _0x363f89 of this['stubs']){if(_0x363f89[_0xd9f13(0x9a)](_0x113e84))return _0x363f89[_0xd9f13(0xda)]=!![],_0x363f89[_0xd9f13(0xa2)]++,_0x363f89['responder'](_0x113e84);}const _0x5e5a51=this['stubs'][_0xd9f13(0xc1)]((_0xd8b864,_0x78f5c6)=>'\x20\x20'+(_0x78f5c6+0x1)+'.\x20'+(_0xd8b864[_0xd9f13(0xcb)]??_0xd9f13(0xc8)))['join']('\x0a');throw new Error(_0xd9f13(0xc9)+_0x113e84[_0xd9f13(0xca)]+'\x20'+_0x113e84[_0xd9f13(0xce)]+'\x0a'+(_0xd9f13(0xc7)+JSON[_0xd9f13(0xc5)](_0x113e84[_0xd9f13(0xcc)])+'\x0a')+(_0xd9f13(0xc0)+(_0x5e5a51||_0xd9f13(0xb3))));}),this[_0x20a01e(0xc3)];}[a167_0xcd6139(0xba)](_0x258752,_0x408a2d){const _0x5cd8c7=a167_0xcd6139,_0x1e4872={};if(_0x408a2d?.[_0x5cd8c7(0xdf)]){if(_0x408a2d['headers']instanceof Headers)_0x408a2d['headers'][_0x5cd8c7(0xd2)]((_0x431b20,_0x48a6e4)=>{const _0x182ff0=_0x5cd8c7;_0x1e4872[_0x48a6e4[_0x182ff0(0x96)]()]=_0x431b20;});else{if(Array['isArray'](_0x408a2d['headers']))for(const [_0x23f07f,_0x3fa526]of _0x408a2d[_0x5cd8c7(0xdf)]){_0x1e4872[_0x23f07f['toLowerCase']()]=_0x3fa526;}else for(const [_0x1ab3b6,_0x33f0bd]of Object[_0x5cd8c7(0xab)](_0x408a2d[_0x5cd8c7(0xdf)])){_0x33f0bd!==undefined&&(_0x1e4872[_0x1ab3b6['toLowerCase']()]=_0x33f0bd);}}}let _0x1a9e31;if(_0x408a2d?.[_0x5cd8c7(0xcc)])try{_0x1a9e31=JSON[_0x5cd8c7(0xd6)](_0x408a2d['body']);}catch{_0x1a9e31=_0x408a2d[_0x5cd8c7(0xcc)];}return{'method':_0x408a2d?.['method']??_0x5cd8c7(0xc2),'url':_0x258752,'headers':_0x1e4872,'body':_0x1a9e31};}['verify'](_0x1311c7){const _0x3091c6=a167_0xcd6139,_0x35080f=this[_0x3091c6(0xdd)][_0x3091c6(0x9d)](_0x35a9a2=>!_0x35a9a2['matched']);if(_0x35080f[_0x3091c6(0xbb)]>0x0){const _0x1eb744=_0x35080f['map'](_0x37a290=>{const _0x32749=_0x3091c6,_0x22699f=_0x37a290[_0x32749(0xcb)]?'\x20('+_0x37a290['description']+')':'',_0x20a43c=_0x37a290['stack'][_0x32749(0x92)]('\x0a')[_0x32749(0x9e)](0x2,0x5)[_0x32749(0xcf)]('\x0a');return _0x32749(0x9c)+_0x22699f+'\x20registered\x20at:\x0a'+_0x20a43c;});_0x1311c7[_0x3091c6(0xe0)](_0x35080f[_0x3091c6(0xbb)]+_0x3091c6(0xb2)+_0x1eb744[_0x3091c6(0xcf)]('\x0a\x0a'));}}['getRequests'](){return[...this['requests']];}['getLastRequest'](){const _0x143120=a167_0xcd6139;return this[_0x143120(0x97)][this['requests']['length']-0x1];}['wasCalled'](_0x2234da,_0x58d69b){const _0x5eb5f5=a167_0xcd6139;return this[_0x5eb5f5(0x97)]['some'](_0x3a8bb7=>{const _0x584c61=_0x5eb5f5;if(_0x3a8bb7[_0x584c61(0xca)]['toUpperCase']()!==_0x2234da[_0x584c61(0xd4)]())return![];if(typeof _0x58d69b===_0x584c61(0xc6))return _0x3a8bb7[_0x584c61(0xce)][_0x584c61(0xdb)](_0x58d69b);return _0x58d69b[_0x584c61(0xd3)](_0x3a8bb7[_0x584c61(0xce)]);});}[a167_0xcd6139(0xa5)](_0x38567a){const _0x2ceced=a167_0xcd6139;return this[_0x2ceced(0xdd)][_0x38567a]?.['matchCount']??0x0;}[a167_0xcd6139(0x99)](){const _0xec31a8=a167_0xcd6139;this['stubs']=[],this['requests']=[],this[_0xec31a8(0xc3)]=null;}static['getStatusText'](_0x1b41c8){const _0x1c2ef2=a167_0xcd6139,_0x57eead={0xc8:'OK',0xc9:_0x1c2ef2(0xbe),0xcc:_0x1c2ef2(0xc4),0x190:_0x1c2ef2(0xaf),0x191:_0x1c2ef2(0xb7),0x193:_0x1c2ef2(0x93),0x194:_0x1c2ef2(0x94),0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:_0x1c2ef2(0xd8),0x1f4:_0x1c2ef2(0xdc),0x1f6:_0x1c2ef2(0x98),0x1f7:'Service\x20Unavailable'};return _0x57eead[_0x1b41c8]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x291a7d,_0x4c0370){var _0x2c8a18=a168_0x5a46,_0x3de17a=_0x291a7d();while(!![]){try{var _0xd3b169=parseInt(_0x2c8a18(0x1ec))/0x1*(-parseInt(_0x2c8a18(0x1ed))/0x2)+-parseInt(_0x2c8a18(0x1eb))/0x3+parseInt(_0x2c8a18(0x1f0))/0x4+-parseInt(_0x2c8a18(0x1ea))/0x5+-parseInt(_0x2c8a18(0x1ef))/0x6*(parseInt(_0x2c8a18(0x1e8))/0x7)+-parseInt(_0x2c8a18(0x1e7))/0x8+-parseInt(_0x2c8a18(0x1e9))/0x9*(-parseInt(_0x2c8a18(0x1ee))/0xa);if(_0xd3b169===_0x4c0370)break;else _0x3de17a['push'](_0x3de17a['shift']());}catch(_0x451f6b){_0x3de17a['push'](_0x3de17a['shift']());}}}(a168_0x5da7,0xadaa1));function a168_0x5da7(){var _0x291017=['72vHbmKP','4366412DWnFIf','5234784acPxal','182539cjomTu','76563PUtDOm','973170VsjVgg','1118424DmlJNP','3vKdVgO','483738cbontx','2210gjXgPs'];a168_0x5da7=function(){return _0x291017;};return a168_0x5da7();}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a168_0x5a46(_0x5c2722,_0x3d3319){_0x5c2722=_0x5c2722-0x1e7;var _0x5da7ab=a168_0x5da7();var _0x5a46bf=_0x5da7ab[_0x5c2722];return _0x5a46bf;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ function a168_0x17d1(_0x4701f,_0x16e55c){_0x4701f=_0x4701f-0x1e8;var _0x57317b=a168_0x5731();var _0x17d135=_0x57317b[_0x4701f];return _0x17d135;}function a168_0x5731(){var _0x1db05f=['3406890Cwgcmr','2vlpAdj','930ayGPJH','30248kXrwBd','240910UglaKg','6409616Filade','240EBGJDI','21077YETpsh','417907iTmGee','781MYaukH','3558510fFXjQH'];a168_0x5731=function(){return _0x1db05f;};return a168_0x5731();}(function(_0x1a6812,_0x2be13c){var _0x9239fa=a168_0x17d1,_0x423bbd=_0x1a6812();while(!![]){try{var _0x1a6714=parseInt(_0x9239fa(0x1ec))/0x1*(-parseInt(_0x9239fa(0x1f0))/0x2)+-parseInt(_0x9239fa(0x1ea))/0x3*(-parseInt(_0x9239fa(0x1f2))/0x4)+-parseInt(_0x9239fa(0x1ef))/0x5+parseInt(_0x9239fa(0x1f1))/0x6*(parseInt(_0x9239fa(0x1eb))/0x7)+-parseInt(_0x9239fa(0x1e9))/0x8+-parseInt(_0x9239fa(0x1ee))/0x9+-parseInt(_0x9239fa(0x1e8))/0xa*(-parseInt(_0x9239fa(0x1ed))/0xb);if(_0x1a6714===_0x2be13c)break;else _0x423bbd['push'](_0x423bbd['shift']());}catch(_0x3dd03a){_0x423bbd['push'](_0x423bbd['shift']());}}}(a168_0x5731,0x76b69));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a169_0x4d29(_0x13a26d,_0xdb61c8){_0x13a26d=_0x13a26d-0x108;const _0x2ed9c8=a169_0x2ed9();let _0x4d29f5=_0x2ed9c8[_0x13a26d];return _0x4d29f5;}function a169_0x2ed9(){const _0x2c6a4b=['2763211oGbPXB','1480rUHegV','length','4KCuvWU','map','all','push','351017bfLTmQ','600KdEjAN','slice','40zgUKNX','110547CXiXah','972960xboeSn','1052653llbVjD','2848848NAuMya','12KaTRrb','5172ZGzOjN'];a169_0x2ed9=function(){return _0x2c6a4b;};return a169_0x2ed9();}(function(_0x17b37e,_0xbc367d){const _0x1c0561=a169_0x4d29,_0x982030=_0x17b37e();while(!![]){try{const _0x5cc873=parseInt(_0x1c0561(0x110))/0x1*(-parseInt(_0x1c0561(0x10c))/0x2)+parseInt(_0x1c0561(0x117))/0x3+parseInt(_0x1c0561(0x115))/0x4+parseInt(_0x1c0561(0x10a))/0x5*(parseInt(_0x1c0561(0x108))/0x6)+parseInt(_0x1c0561(0x116))/0x7*(parseInt(_0x1c0561(0x113))/0x8)+-parseInt(_0x1c0561(0x114))/0x9*(parseInt(_0x1c0561(0x111))/0xa)+parseInt(_0x1c0561(0x109))/0xb*(-parseInt(_0x1c0561(0x118))/0xc);if(_0x5cc873===_0xbc367d)break;else _0x982030['push'](_0x982030['shift']());}catch(_0x39c5e5){_0x982030['push'](_0x982030['shift']());}}}(a169_0x2ed9,0x7c6f8));export async function batchAsync(_0x10a50d,_0x37dc6a,_0x174d47=0xa){const _0x5ebb2a=a169_0x4d29,_0x55695a=[];for(let _0x82479c=0x0;_0x82479c<_0x10a50d[_0x5ebb2a(0x10b)];_0x82479c+=_0x174d47){const _0xc132a9=_0x10a50d[_0x5ebb2a(0x112)](_0x82479c,_0x82479c+_0x174d47),_0x473961=await Promise[_0x5ebb2a(0x10e)](_0xc132a9[_0x5ebb2a(0x10d)](_0x37dc6a));_0x55695a[_0x5ebb2a(0x10f)](..._0x473961);}return _0x55695a;}
1
+ (function(_0x13c000,_0x3b7171){const _0x431514=a169_0x2f0e,_0x1b2850=_0x13c000();while(!![]){try{const _0x496307=parseInt(_0x431514(0x1ba))/0x1+parseInt(_0x431514(0x1c3))/0x2+-parseInt(_0x431514(0x1c0))/0x3*(parseInt(_0x431514(0x1be))/0x4)+parseInt(_0x431514(0x1c6))/0x5*(-parseInt(_0x431514(0x1bd))/0x6)+-parseInt(_0x431514(0x1c5))/0x7*(-parseInt(_0x431514(0x1bc))/0x8)+parseInt(_0x431514(0x1bf))/0x9*(-parseInt(_0x431514(0x1c7))/0xa)+-parseInt(_0x431514(0x1c1))/0xb*(parseInt(_0x431514(0x1c8))/0xc);if(_0x496307===_0x3b7171)break;else _0x1b2850['push'](_0x1b2850['shift']());}catch(_0x48ef5a){_0x1b2850['push'](_0x1b2850['shift']());}}}(a169_0x2022,0xb8cec));export async function batchAsync(_0x8479fa,_0x2b72d4,_0x250d42=0xa){const _0x2a0a80=a169_0x2f0e,_0x1a0eee=[];for(let _0x6cb2aa=0x0;_0x6cb2aa<_0x8479fa['length'];_0x6cb2aa+=_0x250d42){const _0x47182f=_0x8479fa[_0x2a0a80(0x1c4)](_0x6cb2aa,_0x6cb2aa+_0x250d42),_0x22927e=await Promise['all'](_0x47182f[_0x2a0a80(0x1bb)](_0x2b72d4));_0x1a0eee[_0x2a0a80(0x1c2)](..._0x22927e);}return _0x1a0eee;}function a169_0x2f0e(_0x2b36ac,_0x33835f){_0x2b36ac=_0x2b36ac-0x1ba;const _0x202288=a169_0x2022();let _0x2f0e30=_0x202288[_0x2b36ac];return _0x2f0e30;}function a169_0x2022(){const _0x4ff488=['map','5733304FVCuib','78shbsAc','8JeCbJA','9LBOOic','346221Egfvvy','979pOLaLY','push','1668738OAgvux','slice','7OIDcpc','482945inZrNq','2256040wwBmpO','22416YbDaLR','1084267LJscmu'];a169_0x2022=function(){return _0x4ff488;};return a169_0x2022();}
@@ -1 +1 @@
1
- (function(_0x4a4238,_0x3d0aa1){const _0x41cdca=a170_0xfa80,_0x360ded=_0x4a4238();while(!![]){try{const _0x47a7d2=parseInt(_0x41cdca(0x9f))/0x1*(-parseInt(_0x41cdca(0x9e))/0x2)+-parseInt(_0x41cdca(0xa4))/0x3+parseInt(_0x41cdca(0x91))/0x4*(parseInt(_0x41cdca(0x9a))/0x5)+parseInt(_0x41cdca(0xa0))/0x6*(parseInt(_0x41cdca(0xa2))/0x7)+-parseInt(_0x41cdca(0x93))/0x8*(parseInt(_0x41cdca(0x98))/0x9)+-parseInt(_0x41cdca(0x90))/0xa*(-parseInt(_0x41cdca(0x8a))/0xb)+parseInt(_0x41cdca(0x8e))/0xc*(-parseInt(_0x41cdca(0x96))/0xd);if(_0x47a7d2===_0x3d0aa1)break;else _0x360ded['push'](_0x360ded['shift']());}catch(_0x52ebae){_0x360ded['push'](_0x360ded['shift']());}}}(a170_0x5ac0,0x6d491));import*as a170_0x2330df from'chalk';const Chalk=a170_0x2330df['Chalk'];export function shouldUseColor(_0x16a8c3={}){const _0x382978=a170_0xfa80;if(_0x16a8c3[_0x382978(0x8d)]===!![])return![];if(_0x16a8c3['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x382978(0x9b)][_0x382978(0x87)]??![];}export function getChalk(_0x37b97e={}){if(shouldUseColor(_0x37b97e))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x136743,_0x365bc3={}){const _0x3abb40=a170_0xfa80;return getChalk(_0x365bc3)[_0x3abb40(0x9d)](_0x136743);}export function colorHeader(_0x168b64,_0x1c14f0={}){const _0x496cfe=a170_0xfa80;return getChalk(_0x1c14f0)[_0x496cfe(0xa1)](_0x168b64);}export function colorType(_0x446c21,_0x2242d8={}){const _0x3b6b95=a170_0xfa80;return getChalk(_0x2242d8)[_0x3b6b95(0x9d)](_0x446c21);}export function colorJSONKey(_0x4bed4e,_0x37cf3a={}){const _0x43f6d1=a170_0xfa80;return getChalk(_0x37cf3a)[_0x43f6d1(0x95)](_0x4bed4e);}export function colorJSONString(_0x3eba38,_0x2e2a20={}){return getChalk(_0x2e2a20)['green'](_0x3eba38);}export function colorJSONNumber(_0x3de147,_0x3dfed8={}){return getChalk(_0x3dfed8)['cyan'](_0x3de147);}export function colorJSONBoolean(_0x287fe2,_0x546d76={}){const _0x203393=a170_0xfa80;return getChalk(_0x546d76)[_0x203393(0xa3)](_0x287fe2);}export function colorJSONNull(_0x2e5e2d,_0x53e232={}){return getChalk(_0x53e232)['dim'](_0x2e5e2d);}function a170_0xfa80(_0x462cee,_0x8b7b66){_0x462cee=_0x462cee-0x86;const _0x5ac03b=a170_0x5ac0();let _0xfa80c2=_0x5ac03b[_0x462cee];return _0xfa80c2;}function a170_0x5ac0(){const _0x236390=['map','3502536EtWSPF','length','blue','2327lJFbmO','number','9xLxgHo','stringify','33945GxiIoB','stdout','isArray','dim','10XrAyYr','54967UlxHeC','944700dZvTwZ','cyan','28dFcFwD','yellow','1146093hQCUOr','string','object','isTTY','entries','boolean','6193QaUGDq','join','null','noColor','7404QrXMVA','repeat','5870iMPtGM','408zcqiOu'];a170_0x5ac0=function(){return _0x236390;};return a170_0x5ac0();}export function colorizeJSONCompact(_0x4111ed,_0x5aaf61={}){const _0x380089=a170_0xfa80;if(!shouldUseColor(_0x5aaf61))return JSON[_0x380089(0x99)](_0x4111ed);if(_0x4111ed===null)return colorJSONNull(_0x380089(0x8c),_0x5aaf61);if(typeof _0x4111ed==='boolean')return colorJSONBoolean(String(_0x4111ed),_0x5aaf61);if(typeof _0x4111ed===_0x380089(0x97))return colorJSONNumber(String(_0x4111ed),_0x5aaf61);if(typeof _0x4111ed==='string')return colorJSONString(JSON[_0x380089(0x99)](_0x4111ed),_0x5aaf61);if(Array[_0x380089(0x9c)](_0x4111ed)){if(_0x4111ed[_0x380089(0x94)]===0x0)return'[]';const _0x94fa8b=_0x4111ed[_0x380089(0x92)](_0x1295c5=>colorizeJSONCompact(_0x1295c5,_0x5aaf61));return'['+_0x94fa8b[_0x380089(0x8b)](',')+']';}if(typeof _0x4111ed===_0x380089(0x86)){const _0x569c0c=Object['entries'](_0x4111ed);if(_0x569c0c['length']===0x0)return'{}';const _0x11c32b=_0x569c0c[_0x380089(0x92)](([_0x1f3e61,_0x33c9c3])=>{const _0x4d96d4=colorJSONKey(JSON['stringify'](_0x1f3e61),_0x5aaf61),_0x3fa062=colorizeJSONCompact(_0x33c9c3,_0x5aaf61);return _0x4d96d4+':'+_0x3fa062;});return'{'+_0x11c32b[_0x380089(0x8b)](',')+'}';}return String(_0x4111ed);}export function colorizeJSON(_0x3fee28,_0x84e63c={},_0x21883d=0x0){const _0x1a33e2=a170_0xfa80;if(!shouldUseColor(_0x84e63c))return JSON['stringify'](_0x3fee28,null,0x2);const _0x269c8a='\x20'[_0x1a33e2(0x8f)](_0x21883d),_0x391ebf=_0x21883d+0x2;if(_0x3fee28===null)return colorJSONNull('null',_0x84e63c);if(typeof _0x3fee28===_0x1a33e2(0x89))return colorJSONBoolean(String(_0x3fee28),_0x84e63c);if(typeof _0x3fee28===_0x1a33e2(0x97))return colorJSONNumber(String(_0x3fee28),_0x84e63c);if(typeof _0x3fee28===_0x1a33e2(0xa5))return colorJSONString(JSON['stringify'](_0x3fee28),_0x84e63c);if(Array[_0x1a33e2(0x9c)](_0x3fee28)){if(_0x3fee28[_0x1a33e2(0x94)]===0x0)return'[]';const _0x5effb5=_0x3fee28['map'](_0x3d167e=>{const _0x114099=_0x1a33e2,_0x256c97=colorizeJSON(_0x3d167e,_0x84e63c,_0x391ebf);return''+'\x20'[_0x114099(0x8f)](_0x391ebf)+_0x256c97;});return'[\x0a'+_0x5effb5[_0x1a33e2(0x8b)](',\x0a')+('\x0a'+_0x269c8a+']');}if(typeof _0x3fee28==='object'){const _0x480aa9=Object[_0x1a33e2(0x88)](_0x3fee28);if(_0x480aa9[_0x1a33e2(0x94)]===0x0)return'{}';const _0x47225c=_0x480aa9['map'](([_0x1a87ed,_0x1580bd])=>{const _0x7941a4=_0x1a33e2,_0x18f9ef=colorJSONKey(JSON[_0x7941a4(0x99)](_0x1a87ed),_0x84e63c),_0x36daf5=colorizeJSON(_0x1580bd,_0x84e63c,_0x391ebf);return''+'\x20'['repeat'](_0x391ebf)+_0x18f9ef+':\x20'+_0x36daf5;});return'{\x0a'+_0x47225c[_0x1a33e2(0x8b)](',\x0a')+('\x0a'+_0x269c8a+'}');}return String(_0x3fee28);}
1
+ const a170_0x3af5cd=a170_0x3e3a;(function(_0x24ef20,_0x55c12e){const _0xcefc14=a170_0x3e3a,_0x2959ec=_0x24ef20();while(!![]){try{const _0x158f40=-parseInt(_0xcefc14(0x1bd))/0x1*(parseInt(_0xcefc14(0x1a5))/0x2)+parseInt(_0xcefc14(0x1b5))/0x3+-parseInt(_0xcefc14(0x1af))/0x4+-parseInt(_0xcefc14(0x1a2))/0x5*(parseInt(_0xcefc14(0x1b8))/0x6)+parseInt(_0xcefc14(0x1ae))/0x7*(parseInt(_0xcefc14(0x1b9))/0x8)+-parseInt(_0xcefc14(0x1b3))/0x9+-parseInt(_0xcefc14(0x1b6))/0xa*(-parseInt(_0xcefc14(0x19e))/0xb);if(_0x158f40===_0x55c12e)break;else _0x2959ec['push'](_0x2959ec['shift']());}catch(_0x43f25e){_0x2959ec['push'](_0x2959ec['shift']());}}}(a170_0x522b,0x33187));import*as a170_0x3ad43e from'chalk';const Chalk=a170_0x3ad43e[a170_0x3af5cd(0x1a3)];export function shouldUseColor(_0x59cb8={}){const _0x4f1766=a170_0x3af5cd;if(_0x59cb8[_0x4f1766(0x1bc)]===!![])return![];if(_0x59cb8[_0x4f1766(0x1be)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x4f1766(0x1ac)][_0x4f1766(0x1a4)]??![];}export function getChalk(_0x4d6962={}){if(shouldUseColor(_0x4d6962))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2fbcca,_0x34c37e={}){const _0x29a24b=a170_0x3af5cd;return getChalk(_0x34c37e)[_0x29a24b(0x19f)](_0x2fbcca);}export function colorHeader(_0x58ceae,_0x650056={}){return getChalk(_0x650056)['cyan'](_0x58ceae);}export function colorType(_0x2953cb,_0x23a112={}){const _0xb4c0de=a170_0x3af5cd;return getChalk(_0x23a112)[_0xb4c0de(0x19f)](_0x2953cb);}export function colorJSONKey(_0x36971d,_0x508b04={}){const _0x423e45=a170_0x3af5cd;return getChalk(_0x508b04)[_0x423e45(0x1ad)](_0x36971d);}export function colorJSONString(_0x11c250,_0x1ba3bf={}){const _0x5470c3=a170_0x3af5cd;return getChalk(_0x1ba3bf)[_0x5470c3(0x1ba)](_0x11c250);}function a170_0x522b(){const _0x2b5101=['map','1092072TAaoAr','867920fBZBpe','entries','261354pWokfY','304EEttRB','green','yellow','noColor','51TPizTm','color','99cDdPqU','dim','stringify','string','40tVtpxn','Chalk','isTTY','9482DKOXoV','object','number','boolean','null','repeat','cyan','stdout','blue','32998IlJfBx','905204vwSxmV','length','isArray','join','2685897NjLbxp'];a170_0x522b=function(){return _0x2b5101;};return a170_0x522b();}export function colorJSONNumber(_0x43bbb8,_0x55069a={}){const _0x1f36c0=a170_0x3af5cd;return getChalk(_0x55069a)[_0x1f36c0(0x1ab)](_0x43bbb8);}export function colorJSONBoolean(_0x4bcae0,_0x4e9b68={}){const _0x2052cd=a170_0x3af5cd;return getChalk(_0x4e9b68)[_0x2052cd(0x1bb)](_0x4bcae0);}function a170_0x3e3a(_0x529b47,_0x4dc9a5){_0x529b47=_0x529b47-0x19e;const _0x522ba1=a170_0x522b();let _0x3e3a09=_0x522ba1[_0x529b47];return _0x3e3a09;}export function colorJSONNull(_0x5a084a,_0x1fd48f={}){const _0x23d5d4=a170_0x3af5cd;return getChalk(_0x1fd48f)[_0x23d5d4(0x19f)](_0x5a084a);}export function colorizeJSONCompact(_0x469f84,_0x1ffdea={}){const _0x1fd54e=a170_0x3af5cd;if(!shouldUseColor(_0x1ffdea))return JSON[_0x1fd54e(0x1a0)](_0x469f84);if(_0x469f84===null)return colorJSONNull(_0x1fd54e(0x1a9),_0x1ffdea);if(typeof _0x469f84===_0x1fd54e(0x1a8))return colorJSONBoolean(String(_0x469f84),_0x1ffdea);if(typeof _0x469f84===_0x1fd54e(0x1a7))return colorJSONNumber(String(_0x469f84),_0x1ffdea);if(typeof _0x469f84==='string')return colorJSONString(JSON[_0x1fd54e(0x1a0)](_0x469f84),_0x1ffdea);if(Array[_0x1fd54e(0x1b1)](_0x469f84)){if(_0x469f84[_0x1fd54e(0x1b0)]===0x0)return'[]';const _0x288559=_0x469f84[_0x1fd54e(0x1b4)](_0xaf84f9=>colorizeJSONCompact(_0xaf84f9,_0x1ffdea));return'['+_0x288559[_0x1fd54e(0x1b2)](',')+']';}if(typeof _0x469f84===_0x1fd54e(0x1a6)){const _0x5011c2=Object[_0x1fd54e(0x1b7)](_0x469f84);if(_0x5011c2[_0x1fd54e(0x1b0)]===0x0)return'{}';const _0x2b1032=_0x5011c2[_0x1fd54e(0x1b4)](([_0x45cc8e,_0x1a9020])=>{const _0x490f3a=_0x1fd54e,_0x194e4a=colorJSONKey(JSON[_0x490f3a(0x1a0)](_0x45cc8e),_0x1ffdea),_0x37393e=colorizeJSONCompact(_0x1a9020,_0x1ffdea);return _0x194e4a+':'+_0x37393e;});return'{'+_0x2b1032['join'](',')+'}';}return String(_0x469f84);}export function colorizeJSON(_0x2006e4,_0x7a75e6={},_0x5944bd=0x0){const _0x506a7f=a170_0x3af5cd;if(!shouldUseColor(_0x7a75e6))return JSON[_0x506a7f(0x1a0)](_0x2006e4,null,0x2);const _0x34466a='\x20'[_0x506a7f(0x1aa)](_0x5944bd),_0x35cfc2=_0x5944bd+0x2;if(_0x2006e4===null)return colorJSONNull(_0x506a7f(0x1a9),_0x7a75e6);if(typeof _0x2006e4===_0x506a7f(0x1a8))return colorJSONBoolean(String(_0x2006e4),_0x7a75e6);if(typeof _0x2006e4==='number')return colorJSONNumber(String(_0x2006e4),_0x7a75e6);if(typeof _0x2006e4===_0x506a7f(0x1a1))return colorJSONString(JSON[_0x506a7f(0x1a0)](_0x2006e4),_0x7a75e6);if(Array['isArray'](_0x2006e4)){if(_0x2006e4['length']===0x0)return'[]';const _0x5e7537=_0x2006e4['map'](_0x36900b=>{const _0x8322c2=_0x506a7f,_0x970665=colorizeJSON(_0x36900b,_0x7a75e6,_0x35cfc2);return''+'\x20'[_0x8322c2(0x1aa)](_0x35cfc2)+_0x970665;});return'[\x0a'+_0x5e7537[_0x506a7f(0x1b2)](',\x0a')+('\x0a'+_0x34466a+']');}if(typeof _0x2006e4===_0x506a7f(0x1a6)){const _0x1c08e0=Object['entries'](_0x2006e4);if(_0x1c08e0[_0x506a7f(0x1b0)]===0x0)return'{}';const _0x256add=_0x1c08e0['map'](([_0x6eaa80,_0x1a5ef7])=>{const _0x330553=_0x506a7f,_0x281353=colorJSONKey(JSON[_0x330553(0x1a0)](_0x6eaa80),_0x7a75e6),_0x5206aa=colorizeJSON(_0x1a5ef7,_0x7a75e6,_0x35cfc2);return''+'\x20'[_0x330553(0x1aa)](_0x35cfc2)+_0x281353+':\x20'+_0x5206aa;});return'{\x0a'+_0x256add[_0x506a7f(0x1b2)](',\x0a')+('\x0a'+_0x34466a+'}');}return String(_0x2006e4);}
@@ -1 +1 @@
1
- (function(_0x13b35f,_0x2b67c9){const _0x3cbc0c=a171_0x17e8,_0x21267f=_0x13b35f();while(!![]){try{const _0x3017dd=parseInt(_0x3cbc0c(0x10b))/0x1+parseInt(_0x3cbc0c(0xfc))/0x2*(parseInt(_0x3cbc0c(0x104))/0x3)+-parseInt(_0x3cbc0c(0x10d))/0x4*(parseInt(_0x3cbc0c(0xf2))/0x5)+-parseInt(_0x3cbc0c(0x101))/0x6*(parseInt(_0x3cbc0c(0x10e))/0x7)+-parseInt(_0x3cbc0c(0xf9))/0x8+-parseInt(_0x3cbc0c(0xf7))/0x9*(parseInt(_0x3cbc0c(0x10c))/0xa)+parseInt(_0x3cbc0c(0x102))/0xb;if(_0x3017dd===_0x2b67c9)break;else _0x21267f['push'](_0x21267f['shift']());}catch(_0x3e441d){_0x21267f['push'](_0x21267f['shift']());}}}(a171_0x1ee1,0x7e469));function a171_0x17e8(_0x56ee96,_0xf2baf0){_0x56ee96=_0x56ee96-0xf2;const _0x1ee106=a171_0x1ee1();let _0x17e8b7=_0x1ee106[_0x56ee96];return _0x17e8b7;}import a171_0x1eadb8 from'chalk';export function generateDiff(_0x4a1544,_0x180a0a){const _0x1c3bea=a171_0x17e8,_0x168833=_0x4a1544[_0x1c3bea(0x10f)]('\x0a'),_0xe3efa6=_0x180a0a[_0x1c3bea(0x10f)]('\x0a'),_0x562176=[],_0x3fe83d=computeLCS(_0x168833,_0xe3efa6);let _0xce29b0=0x0,_0x5496b7=0x0,_0x2e845f=0x0;while(_0xce29b0<_0x168833[_0x1c3bea(0xf3)]||_0x5496b7<_0xe3efa6[_0x1c3bea(0xf3)]){if(_0x2e845f<_0x3fe83d['length']&&_0xce29b0<_0x168833['length']&&_0x168833[_0xce29b0]===_0x3fe83d[_0x2e845f])_0x5496b7<_0xe3efa6['length']&&_0xe3efa6[_0x5496b7]===_0x3fe83d[_0x2e845f]?(_0x562176[_0x1c3bea(0xfe)]({'type':'unchanged','content':_0x168833[_0xce29b0]}),_0xce29b0++,_0x5496b7++,_0x2e845f++):(_0x562176[_0x1c3bea(0xfe)]({'type':_0x1c3bea(0xfb),'content':_0xe3efa6[_0x5496b7]}),_0x5496b7++);else{if(_0x2e845f<_0x3fe83d[_0x1c3bea(0xf3)]&&_0x5496b7<_0xe3efa6[_0x1c3bea(0xf3)]&&_0xe3efa6[_0x5496b7]===_0x3fe83d[_0x2e845f])_0x562176[_0x1c3bea(0xfe)]({'type':'removed','content':_0x168833[_0xce29b0]}),_0xce29b0++;else{if(_0xce29b0<_0x168833['length']&&(_0x2e845f>=_0x3fe83d[_0x1c3bea(0xf3)]||_0x168833[_0xce29b0]!==_0x3fe83d[_0x2e845f]))_0x562176[_0x1c3bea(0xfe)]({'type':_0x1c3bea(0x110),'content':_0x168833[_0xce29b0]}),_0xce29b0++;else _0x5496b7<_0xe3efa6['length']&&(_0x562176[_0x1c3bea(0xfe)]({'type':_0x1c3bea(0xfb),'content':_0xe3efa6[_0x5496b7]}),_0x5496b7++);}}}return _0x562176;}function computeLCS(_0x44d47e,_0x32c8eb){const _0x22efca=a171_0x17e8,_0x5a8129=_0x44d47e[_0x22efca(0xf3)],_0x4f72c1=_0x32c8eb[_0x22efca(0xf3)],_0x361c94=Array(_0x5a8129+0x1)['fill'](null)[_0x22efca(0xf6)](()=>Array(_0x4f72c1+0x1)[_0x22efca(0x115)](0x0));for(let _0x283a89=0x1;_0x283a89<=_0x5a8129;_0x283a89++){for(let _0x994e3b=0x1;_0x994e3b<=_0x4f72c1;_0x994e3b++){_0x44d47e[_0x283a89-0x1]===_0x32c8eb[_0x994e3b-0x1]?_0x361c94[_0x283a89][_0x994e3b]=_0x361c94[_0x283a89-0x1][_0x994e3b-0x1]+0x1:_0x361c94[_0x283a89][_0x994e3b]=Math[_0x22efca(0xfd)](_0x361c94[_0x283a89-0x1][_0x994e3b],_0x361c94[_0x283a89][_0x994e3b-0x1]);}}const _0x1d3de6=[];let _0x4dfbb1=_0x5a8129,_0x3d4af7=_0x4f72c1;while(_0x4dfbb1>0x0&&_0x3d4af7>0x0){if(_0x44d47e[_0x4dfbb1-0x1]===_0x32c8eb[_0x3d4af7-0x1])_0x1d3de6[_0x22efca(0xff)](_0x44d47e[_0x4dfbb1-0x1]),_0x4dfbb1--,_0x3d4af7--;else _0x361c94[_0x4dfbb1-0x1][_0x3d4af7]>_0x361c94[_0x4dfbb1][_0x3d4af7-0x1]?_0x4dfbb1--:_0x3d4af7--;}return _0x1d3de6;}export function formatDiffWithColors(_0x20d79f,_0xc3204e=0x3){const _0x55e6ff=a171_0x17e8,_0x21a132=new Set();_0x20d79f[_0x55e6ff(0x106)]((_0x3f05b6,_0x19a5b6)=>{const _0x217ddc=_0x55e6ff;_0x3f05b6[_0x217ddc(0x116)]!==_0x217ddc(0x111)&&_0x21a132[_0x217ddc(0x105)](_0x19a5b6);});if(_0x21a132['size']===0x0)return'';const _0xb81b2a=new Set();for(const _0x49dcd3 of _0x21a132){for(let _0x157354=Math[_0x55e6ff(0xfd)](0x0,_0x49dcd3-_0xc3204e);_0x157354<=Math[_0x55e6ff(0x107)](_0x20d79f[_0x55e6ff(0xf3)]-0x1,_0x49dcd3+_0xc3204e);_0x157354++){_0xb81b2a['add'](_0x157354);}}const _0x3f270c=[];let _0x30c7c0=-0x1;const _0x48db41=_0x20d79f['length'],_0x512013=Math[_0x55e6ff(0xfd)](0x3,String(_0x48db41)[_0x55e6ff(0xf3)]),_0x3af15c=[];let _0x5d6b44=0x0,_0x57828c=0x0;for(const _0xa3fdac of _0x20d79f){if(_0xa3fdac['type']===_0x55e6ff(0x110))_0x5d6b44++,_0x3af15c[_0x55e6ff(0xfe)]({'old':_0x5d6b44,'new':0x0});else _0xa3fdac[_0x55e6ff(0x116)]===_0x55e6ff(0xfb)?(_0x57828c++,_0x3af15c[_0x55e6ff(0xfe)]({'old':0x0,'new':_0x57828c})):(_0x5d6b44++,_0x57828c++,_0x3af15c[_0x55e6ff(0xfe)]({'old':_0x5d6b44,'new':_0x57828c}));}for(let _0x424c93=0x0;_0x424c93<_0x20d79f[_0x55e6ff(0xf3)];_0x424c93++){if(!_0xb81b2a['has'](_0x424c93))continue;_0x30c7c0!==-0x1&&_0x424c93>_0x30c7c0+0x1&&_0x3f270c['push'](a171_0x1eadb8['cyan'](_0x55e6ff(0x100)));_0x30c7c0=_0x424c93;const _0x2985e5=_0x20d79f[_0x424c93],_0x31f6cc=_0x3af15c[_0x424c93],_0x4560df=_0x31f6cc[_0x55e6ff(0x112)]>0x0?String(_0x31f6cc['old'])['padStart'](_0x512013):'\x20'[_0x55e6ff(0x108)](_0x512013),_0x3515ed=_0x31f6cc[_0x55e6ff(0xf4)]>0x0?String(_0x31f6cc[_0x55e6ff(0xf4)])[_0x55e6ff(0xf5)](_0x512013):'\x20'[_0x55e6ff(0x108)](_0x512013);switch(_0x2985e5[_0x55e6ff(0x116)]){case'removed':_0x3f270c[_0x55e6ff(0xfe)](a171_0x1eadb8[_0x55e6ff(0x109)](_0x4560df+'\x20'+_0x3515ed+_0x55e6ff(0x113)+_0x2985e5[_0x55e6ff(0xfa)]));break;case'added':_0x3f270c['push'](a171_0x1eadb8[_0x55e6ff(0xf8)](_0x4560df+'\x20'+_0x3515ed+_0x55e6ff(0x114)+_0x2985e5['content']));break;default:_0x3f270c[_0x55e6ff(0xfe)](a171_0x1eadb8[_0x55e6ff(0x103)](_0x4560df+'\x20'+_0x3515ed+_0x55e6ff(0x10a)+_0x2985e5['content']));break;}}return _0x3f270c['join']('\x0a');}export function hasChanges(_0x38984b){const _0x26e6b8=a171_0x17e8;return _0x38984b['some'](_0xef0a18=>_0xef0a18[_0x26e6b8(0x116)]!==_0x26e6b8(0x111));}function a171_0x1ee1(){const _0x5575e2=['59735DECFAQ','length','new','padStart','map','279drgWhP','green','5513296jGOepH','content','added','104HzUrKs','max','push','unshift','\x20\x20...','26682Lkqxrf','21706113fTMaJr','dim','10866OeluFW','add','forEach','min','repeat','red','\x20\x20\x20','909809kJvGdn','175410EELkdu','292oIobKJ','707bBnbhA','split','removed','unchanged','old','\x20-\x20','\x20+\x20','fill','type'];a171_0x1ee1=function(){return _0x5575e2;};return a171_0x1ee1();}
1
+ function a171_0x4c05(){const _0x5ea9bd=['9873210KZabvr','added','new','forEach','dim','cyan','removed','green','7192WloGaC','unchanged','1735764TVbMSN','length','type','\x20+\x20','1147293QGrCYv','2gQlEBb','push','331952OCjfAh','content','has','repeat','520760tYtEtH','padStart','unshift','\x20\x20\x20','833jkWRer','1124988xBRVuk','map','\x20\x20...','some','red','fill','split','size','old','9DMmXpR','add'];a171_0x4c05=function(){return _0x5ea9bd;};return a171_0x4c05();}(function(_0x305479,_0x13efbb){const _0x98f998=a171_0x50e3,_0x5354d6=_0x305479();while(!![]){try{const _0x46260a=-parseInt(_0x98f998(0x1cb))/0x1+parseInt(_0x98f998(0x1c9))/0x2*(-parseInt(_0x98f998(0x1c8))/0x3)+-parseInt(_0x98f998(0x1c4))/0x4+parseInt(_0x98f998(0x1cf))/0x5+parseInt(_0x98f998(0x1af))/0x6+parseInt(_0x98f998(0x1ae))/0x7*(parseInt(_0x98f998(0x1c2))/0x8)+-parseInt(_0x98f998(0x1b8))/0x9*(-parseInt(_0x98f998(0x1ba))/0xa);if(_0x46260a===_0x13efbb)break;else _0x5354d6['push'](_0x5354d6['shift']());}catch(_0x54b684){_0x5354d6['push'](_0x5354d6['shift']());}}}(a171_0x4c05,0x3a03c));import a171_0x39b532 from'chalk';export function generateDiff(_0x26f858,_0x221fd0){const _0x788266=a171_0x50e3,_0x4c0d4d=_0x26f858[_0x788266(0x1b5)]('\x0a'),_0x332652=_0x221fd0[_0x788266(0x1b5)]('\x0a'),_0x43346b=[],_0x438fc1=computeLCS(_0x4c0d4d,_0x332652);let _0x187334=0x0,_0x56334d=0x0,_0x7c8e0c=0x0;while(_0x187334<_0x4c0d4d['length']||_0x56334d<_0x332652[_0x788266(0x1c5)]){if(_0x7c8e0c<_0x438fc1[_0x788266(0x1c5)]&&_0x187334<_0x4c0d4d[_0x788266(0x1c5)]&&_0x4c0d4d[_0x187334]===_0x438fc1[_0x7c8e0c])_0x56334d<_0x332652[_0x788266(0x1c5)]&&_0x332652[_0x56334d]===_0x438fc1[_0x7c8e0c]?(_0x43346b[_0x788266(0x1ca)]({'type':_0x788266(0x1c3),'content':_0x4c0d4d[_0x187334]}),_0x187334++,_0x56334d++,_0x7c8e0c++):(_0x43346b[_0x788266(0x1ca)]({'type':_0x788266(0x1bb),'content':_0x332652[_0x56334d]}),_0x56334d++);else{if(_0x7c8e0c<_0x438fc1[_0x788266(0x1c5)]&&_0x56334d<_0x332652['length']&&_0x332652[_0x56334d]===_0x438fc1[_0x7c8e0c])_0x43346b['push']({'type':'removed','content':_0x4c0d4d[_0x187334]}),_0x187334++;else{if(_0x187334<_0x4c0d4d['length']&&(_0x7c8e0c>=_0x438fc1[_0x788266(0x1c5)]||_0x4c0d4d[_0x187334]!==_0x438fc1[_0x7c8e0c]))_0x43346b[_0x788266(0x1ca)]({'type':_0x788266(0x1c0),'content':_0x4c0d4d[_0x187334]}),_0x187334++;else _0x56334d<_0x332652[_0x788266(0x1c5)]&&(_0x43346b[_0x788266(0x1ca)]({'type':_0x788266(0x1bb),'content':_0x332652[_0x56334d]}),_0x56334d++);}}}return _0x43346b;}function computeLCS(_0xd714a8,_0x70403b){const _0x8d8768=a171_0x50e3,_0x530838=_0xd714a8[_0x8d8768(0x1c5)],_0x1dc25c=_0x70403b[_0x8d8768(0x1c5)],_0x5a76c2=Array(_0x530838+0x1)[_0x8d8768(0x1b4)](null)[_0x8d8768(0x1b0)](()=>Array(_0x1dc25c+0x1)[_0x8d8768(0x1b4)](0x0));for(let _0x4abdd6=0x1;_0x4abdd6<=_0x530838;_0x4abdd6++){for(let _0x1087fb=0x1;_0x1087fb<=_0x1dc25c;_0x1087fb++){_0xd714a8[_0x4abdd6-0x1]===_0x70403b[_0x1087fb-0x1]?_0x5a76c2[_0x4abdd6][_0x1087fb]=_0x5a76c2[_0x4abdd6-0x1][_0x1087fb-0x1]+0x1:_0x5a76c2[_0x4abdd6][_0x1087fb]=Math['max'](_0x5a76c2[_0x4abdd6-0x1][_0x1087fb],_0x5a76c2[_0x4abdd6][_0x1087fb-0x1]);}}const _0x4b8d61=[];let _0x2ddcbc=_0x530838,_0x56945c=_0x1dc25c;while(_0x2ddcbc>0x0&&_0x56945c>0x0){if(_0xd714a8[_0x2ddcbc-0x1]===_0x70403b[_0x56945c-0x1])_0x4b8d61[_0x8d8768(0x1d1)](_0xd714a8[_0x2ddcbc-0x1]),_0x2ddcbc--,_0x56945c--;else _0x5a76c2[_0x2ddcbc-0x1][_0x56945c]>_0x5a76c2[_0x2ddcbc][_0x56945c-0x1]?_0x2ddcbc--:_0x56945c--;}return _0x4b8d61;}export function formatDiffWithColors(_0x22196e,_0x53400d=0x3){const _0x1282a1=a171_0x50e3,_0x5acc2f=new Set();_0x22196e[_0x1282a1(0x1bd)]((_0x967820,_0x31464b)=>{const _0x3a0cca=_0x1282a1;_0x967820['type']!==_0x3a0cca(0x1c3)&&_0x5acc2f['add'](_0x31464b);});if(_0x5acc2f[_0x1282a1(0x1b6)]===0x0)return'';const _0x4f92a4=new Set();for(const _0x5391d9 of _0x5acc2f){for(let _0x572472=Math['max'](0x0,_0x5391d9-_0x53400d);_0x572472<=Math['min'](_0x22196e[_0x1282a1(0x1c5)]-0x1,_0x5391d9+_0x53400d);_0x572472++){_0x4f92a4[_0x1282a1(0x1b9)](_0x572472);}}const _0xbaf690=[];let _0x24275a=-0x1;const _0x30d3a4=_0x22196e[_0x1282a1(0x1c5)],_0xe5b57c=Math['max'](0x3,String(_0x30d3a4)[_0x1282a1(0x1c5)]),_0x4362db=[];let _0x315a40=0x0,_0x354a04=0x0;for(const _0x2b5a1f of _0x22196e){if(_0x2b5a1f[_0x1282a1(0x1c6)]===_0x1282a1(0x1c0))_0x315a40++,_0x4362db[_0x1282a1(0x1ca)]({'old':_0x315a40,'new':0x0});else _0x2b5a1f[_0x1282a1(0x1c6)]==='added'?(_0x354a04++,_0x4362db['push']({'old':0x0,'new':_0x354a04})):(_0x315a40++,_0x354a04++,_0x4362db[_0x1282a1(0x1ca)]({'old':_0x315a40,'new':_0x354a04}));}for(let _0x173f0d=0x0;_0x173f0d<_0x22196e[_0x1282a1(0x1c5)];_0x173f0d++){if(!_0x4f92a4[_0x1282a1(0x1cd)](_0x173f0d))continue;_0x24275a!==-0x1&&_0x173f0d>_0x24275a+0x1&&_0xbaf690[_0x1282a1(0x1ca)](a171_0x39b532[_0x1282a1(0x1bf)](_0x1282a1(0x1b1)));_0x24275a=_0x173f0d;const _0x5626d4=_0x22196e[_0x173f0d],_0x6c41bd=_0x4362db[_0x173f0d],_0x303e94=_0x6c41bd[_0x1282a1(0x1b7)]>0x0?String(_0x6c41bd[_0x1282a1(0x1b7)])[_0x1282a1(0x1d0)](_0xe5b57c):'\x20'[_0x1282a1(0x1ce)](_0xe5b57c),_0x5c89cc=_0x6c41bd[_0x1282a1(0x1bc)]>0x0?String(_0x6c41bd[_0x1282a1(0x1bc)])[_0x1282a1(0x1d0)](_0xe5b57c):'\x20'[_0x1282a1(0x1ce)](_0xe5b57c);switch(_0x5626d4[_0x1282a1(0x1c6)]){case _0x1282a1(0x1c0):_0xbaf690[_0x1282a1(0x1ca)](a171_0x39b532[_0x1282a1(0x1b3)](_0x303e94+'\x20'+_0x5c89cc+'\x20-\x20'+_0x5626d4[_0x1282a1(0x1cc)]));break;case _0x1282a1(0x1bb):_0xbaf690['push'](a171_0x39b532[_0x1282a1(0x1c1)](_0x303e94+'\x20'+_0x5c89cc+_0x1282a1(0x1c7)+_0x5626d4[_0x1282a1(0x1cc)]));break;default:_0xbaf690[_0x1282a1(0x1ca)](a171_0x39b532[_0x1282a1(0x1be)](_0x303e94+'\x20'+_0x5c89cc+_0x1282a1(0x1d2)+_0x5626d4[_0x1282a1(0x1cc)]));break;}}return _0xbaf690['join']('\x0a');}function a171_0x50e3(_0x3c1049,_0x154390){_0x3c1049=_0x3c1049-0x1ae;const _0x4c05b4=a171_0x4c05();let _0x50e381=_0x4c05b4[_0x3c1049];return _0x50e381;}export function hasChanges(_0x95f95e){const _0x1c09a3=a171_0x50e3;return _0x95f95e[_0x1c09a3(0x1b2)](_0x40994d=>_0x40994d[_0x1c09a3(0x1c6)]!==_0x1c09a3(0x1c3));}
@@ -1 +1 @@
1
- (function(_0x43660a,_0x41eccf){const _0x175c48=a172_0x2b66,_0x49f58c=_0x43660a();while(!![]){try{const _0x1ad512=parseInt(_0x175c48(0x1c8))/0x1+-parseInt(_0x175c48(0x1c0))/0x2*(parseInt(_0x175c48(0x1be))/0x3)+parseInt(_0x175c48(0x1c7))/0x4+-parseInt(_0x175c48(0x1c4))/0x5+-parseInt(_0x175c48(0x1bb))/0x6+-parseInt(_0x175c48(0x1bf))/0x7+parseInt(_0x175c48(0x1bc))/0x8*(parseInt(_0x175c48(0x1c9))/0x9);if(_0x1ad512===_0x41eccf)break;else _0x49f58c['push'](_0x49f58c['shift']());}catch(_0xcf13d0){_0x49f58c['push'](_0x49f58c['shift']());}}}(a172_0x454b,0x9cfe3));function a172_0x2b66(_0x1f886b,_0x579458){_0x1f886b=_0x1f886b-0x1bb;const _0x454bf7=a172_0x454b();let _0x2b66a6=_0x454bf7[_0x1f886b];return _0x2b66a6;}import*as a172_0x19203b from'node:fs';import*as a172_0x459235 from'node:path';export function setSecureFilePermissions(_0x3a1d8f){const _0x98c082=a172_0x2b66;try{a172_0x19203b[_0x98c082(0x1c3)](_0x3a1d8f,0x180);}catch{console[_0x98c082(0x1c6)](_0x98c082(0x1cb)+_0x3a1d8f);}}export function setSecureDirectoryPermissions(_0x35ab18){const _0x580634=a172_0x2b66;try{a172_0x19203b[_0x580634(0x1c3)](_0x35ab18,0x1c0);}catch{console[_0x580634(0x1c6)](_0x580634(0x1cb)+_0x35ab18);}}export function createSecureDirectory(_0x1c3cb6){const _0xf078a1=a172_0x2b66;!a172_0x19203b[_0xf078a1(0x1bd)](_0x1c3cb6)&&(a172_0x19203b['mkdirSync'](_0x1c3cb6,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1c3cb6));}export function validateSecureFilePermissions(_0x4ccbe5){const _0x56b0dd=a172_0x2b66;try{const _0x55aef1=a172_0x19203b['statSync'](_0x4ccbe5),_0xde9bda=_0x55aef1[_0x56b0dd(0x1cc)]&0x1ff,_0x37c09f=(_0xde9bda&0x3f)!==0x0;if(_0x37c09f)return console[_0x56b0dd(0x1c6)](_0x56b0dd(0x1ca)+_0x4ccbe5+'\x20has\x20insecure\x20permissions\x20('+_0xde9bda[_0x56b0dd(0x1c1)](0x8)+_0x56b0dd(0x1c2)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}function a172_0x454b(){const _0x4c038e=['65588VSfdQl','toString',').\x20','chmodSync','5564180mgyDjM','writeFileSync','warn','358440tUtUTj','141650PqnszC','338472FUXeNy','Warning:\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mode','6680700EMxbky','888azOBRu','existsSync','27HaoApA','8688911byLXVd'];a172_0x454b=function(){return _0x4c038e;};return a172_0x454b();}export function writeSecureFile(_0x321554,_0xa23286){const _0x5dbf17=a172_0x2b66,_0x595124=a172_0x459235['dirname'](_0x321554);createSecureDirectory(_0x595124),a172_0x19203b[_0x5dbf17(0x1c5)](_0x321554,_0xa23286,{'mode':0x180}),setSecureFilePermissions(_0x321554);}
1
+ (function(_0xa85dc9,_0xd0e911){const _0xae8e9f=a172_0x5985,_0x8e146b=_0xa85dc9();while(!![]){try{const _0x316a3d=parseInt(_0xae8e9f(0x1d2))/0x1*(-parseInt(_0xae8e9f(0x1d5))/0x2)+-parseInt(_0xae8e9f(0x1d6))/0x3*(-parseInt(_0xae8e9f(0x1de))/0x4)+parseInt(_0xae8e9f(0x1d9))/0x5*(parseInt(_0xae8e9f(0x1dd))/0x6)+-parseInt(_0xae8e9f(0x1df))/0x7+parseInt(_0xae8e9f(0x1db))/0x8+parseInt(_0xae8e9f(0x1d1))/0x9*(-parseInt(_0xae8e9f(0x1e0))/0xa)+parseInt(_0xae8e9f(0x1d0))/0xb*(-parseInt(_0xae8e9f(0x1e2))/0xc);if(_0x316a3d===_0xd0e911)break;else _0x8e146b['push'](_0x8e146b['shift']());}catch(_0x5c6672){_0x8e146b['push'](_0x8e146b['shift']());}}}(a172_0x4494,0x6f079));import*as a172_0xd6c45a from'node:fs';import*as a172_0x2e71ae from'node:path';function a172_0x4494(){const _0x10a020=['6303iiGPAh','5157AEwaSg','43MoWcPX','mkdirSync','\x20has\x20insecure\x20permissions\x20(','16498ZUJOFn','135369ushyhh','mode','Should\x20be\x200600\x20or\x20more\x20restrictive.','671680aqWfwO','chmodSync','6026808TEfBNp','warn','18KmHicU','20NNIawm','818685WZYgex','2170hvIyKJ','writeFileSync','6936uaOZBU','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','existsSync'];a172_0x4494=function(){return _0x10a020;};return a172_0x4494();}export function setSecureFilePermissions(_0xb4333b){const _0x9d573=a172_0x5985;try{a172_0xd6c45a[_0x9d573(0x1da)](_0xb4333b,0x180);}catch{console[_0x9d573(0x1dc)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xb4333b);}}function a172_0x5985(_0x40be0b,_0x43c2f0){_0x40be0b=_0x40be0b-0x1cf;const _0x449433=a172_0x4494();let _0x59858c=_0x449433[_0x40be0b];return _0x59858c;}export function setSecureDirectoryPermissions(_0x52e1ee){const _0x4c0fe9=a172_0x5985;try{a172_0xd6c45a[_0x4c0fe9(0x1da)](_0x52e1ee,0x1c0);}catch{console[_0x4c0fe9(0x1dc)](_0x4c0fe9(0x1e3)+_0x52e1ee);}}export function createSecureDirectory(_0x594077){const _0x4b408b=a172_0x5985;!a172_0xd6c45a[_0x4b408b(0x1cf)](_0x594077)&&(a172_0xd6c45a[_0x4b408b(0x1d3)](_0x594077,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x594077));}export function validateSecureFilePermissions(_0x233c70){const _0x4210f9=a172_0x5985;try{const _0x4d5f3b=a172_0xd6c45a['statSync'](_0x233c70),_0x7284b8=_0x4d5f3b[_0x4210f9(0x1d7)]&0x1ff,_0x50debd=(_0x7284b8&0x3f)!==0x0;if(_0x50debd)return console[_0x4210f9(0x1dc)]('Warning:\x20'+_0x233c70+_0x4210f9(0x1d4)+_0x7284b8['toString'](0x8)+').\x20'+_0x4210f9(0x1d8)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x280f17,_0xa9ccb7){const _0x58308b=a172_0x5985,_0x2c36ea=a172_0x2e71ae['dirname'](_0x280f17);createSecureDirectory(_0x2c36ea),a172_0xd6c45a[_0x58308b(0x1e1)](_0x280f17,_0xa9ccb7,{'mode':0x180}),setSecureFilePermissions(_0x280f17);}
@@ -1 +1 @@
1
- (function(_0x1d597e,_0xa61177){const _0x15775c=a173_0xfd21,_0x4b6143=_0x1d597e();while(!![]){try{const _0x1a4e4c=-parseInt(_0x15775c(0x17a))/0x1+parseInt(_0x15775c(0x17e))/0x2*(-parseInt(_0x15775c(0x17f))/0x3)+parseInt(_0x15775c(0x175))/0x4+-parseInt(_0x15775c(0x17b))/0x5+parseInt(_0x15775c(0x183))/0x6*(-parseInt(_0x15775c(0x17d))/0x7)+-parseInt(_0x15775c(0x177))/0x8*(parseInt(_0x15775c(0x182))/0x9)+parseInt(_0x15775c(0x179))/0xa;if(_0x1a4e4c===_0xa61177)break;else _0x4b6143['push'](_0x4b6143['shift']());}catch(_0x5f1b96){_0x4b6143['push'](_0x4b6143['shift']());}}}(a173_0x2ba7,0x519bf));function a173_0xfd21(_0x513377,_0x530fc6){_0x513377=_0x513377-0x174;const _0x2ba78b=a173_0x2ba7();let _0xfd21bc=_0x2ba78b[_0x513377];return _0xfd21bc;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0xb99046=a173_0xfd21;return process.env.TDX_CACHE_DIR||join(homedir(),_0xb99046(0x184),_0xb99046(0x176));}const registry=new Map();export function registerGlobalCacheKey(_0x52e4f2,_0x1d3c06){const _0x18b682=a173_0xfd21,_0x1b873c=registry[_0x18b682(0x178)](_0x52e4f2);if(_0x1b873c&&_0x1b873c!==_0x1d3c06)throw new Error('Global\x20cache\x20key\x20\x22'+_0x52e4f2+'\x22\x20already\x20registered\x20by\x20\x22'+_0x1b873c+_0x18b682(0x186)+_0x1d3c06+'\x22');registry['set'](_0x52e4f2,_0x1d3c06);}export function getGlobalCachePath(_0x58cf0c){return join(getGlobalCacheDir(),_0x58cf0c);}function ensureGlobalCacheDir(){const _0x4a2da7=getGlobalCacheDir();!existsSync(_0x4a2da7)&&mkdirSync(_0x4a2da7,{'recursive':!![]});}function readCacheJson(_0x364eda){const _0x3da54d=a173_0xfd21,_0x20e582=getGlobalCachePath(_0x364eda);if(!existsSync(_0x20e582))return undefined;try{const _0x450701=readFileSync(_0x20e582,_0x3da54d(0x180));return JSON[_0x3da54d(0x185)](_0x450701);}catch{return undefined;}}function writeCacheJson(_0x260e2b,_0x5ca9ec){const _0x36fa56=a173_0xfd21;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x260e2b),JSON['stringify'](_0x5ca9ec,null,0x2),_0x36fa56(0x180));}function readCacheText(_0x227aeb){const _0x1c6d5e=a173_0xfd21,_0x3dda9e=getGlobalCachePath(_0x227aeb);if(!existsSync(_0x3dda9e))return undefined;try{return readFileSync(_0x3dda9e,_0x1c6d5e(0x180));}catch{return undefined;}}function writeCacheText(_0x445423,_0x14f8ac){const _0x53d1f0=a173_0xfd21;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x445423),_0x14f8ac,_0x53d1f0(0x180));}function clearCache(_0x77e187){const _0x4f1a4e=getGlobalCachePath(_0x77e187);if(existsSync(_0x4f1a4e))try{unlinkSync(_0x4f1a4e);}catch{}}function a173_0x2ba7(){const _0x5ef1da=['.cache','parse','\x22,\x20cannot\x20register\x20for\x20\x22','{profile}','220620DqBrUI','tdx','3497736gPJGIP','get','20035010qnUtjh','513077onkILL','440225PDdWET','clear','4340efFXHx','4SjdgKF','343659XqGOnn','utf-8','replace','9EPFTzE','4422YZuWkl'];a173_0x2ba7=function(){return _0x5ef1da;};return a173_0x2ba7();}function cacheExists(_0x58907c){return existsSync(getGlobalCachePath(_0x58907c));}export function createGlobalCache(_0x57e3c9,_0x2112bc){return registerGlobalCacheKey(_0x57e3c9,_0x2112bc),{'read':()=>readCacheJson(_0x57e3c9),'write':_0x156aef=>writeCacheJson(_0x57e3c9,_0x156aef),'clear':()=>clearCache(_0x57e3c9),'exists':()=>cacheExists(_0x57e3c9),'path':()=>getGlobalCachePath(_0x57e3c9)};}export function createGlobalTextCache(_0x447e7e,_0x534b21){return registerGlobalCacheKey(_0x447e7e,_0x534b21),{'read':()=>readCacheText(_0x447e7e)?.['trim']()||undefined,'write':_0x553d9f=>writeCacheText(_0x447e7e,_0x553d9f),'clear':()=>clearCache(_0x447e7e),'exists':()=>cacheExists(_0x447e7e),'path':()=>getGlobalCachePath(_0x447e7e)};}export function createProfileCache(_0x17f03b,_0x583a1d){const _0x38f4ac=_0x128e85=>{const _0x123044=a173_0xfd21,_0x16a1f6=_0x128e85||'default';return _0x17f03b[_0x123044(0x181)](_0x123044(0x174),_0x16a1f6);};return{'read':_0x159d6d=>{const _0x38bec9=_0x38f4ac(_0x159d6d);return registerGlobalCacheKey(_0x38bec9,_0x583a1d),readCacheJson(_0x38bec9);},'write':(_0xfd1fdb,_0x353481)=>{const _0x3a1b8b=_0x38f4ac(_0xfd1fdb);registerGlobalCacheKey(_0x3a1b8b,_0x583a1d),writeCacheJson(_0x3a1b8b,_0x353481);},'clear':_0x2eb3d4=>{const _0x4ef8ef=_0x38f4ac(_0x2eb3d4);clearCache(_0x4ef8ef);},'exists':_0x518e9c=>{const _0x704c45=_0x38f4ac(_0x518e9c);return cacheExists(_0x704c45);},'path':_0x1084e8=>{const _0xe06db3=_0x38f4ac(_0x1084e8);return getGlobalCachePath(_0xe06db3);}};}export function createOptionalProfileCache(_0x59c279,_0x488608,_0x5726a8={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x5726a8,_0x358e57=_0x4a0428=>{return _0x4a0428?''+_0x59c279+profileSeparator+_0x4a0428+suffix:''+_0x59c279+suffix;};return{'read':_0x15ec46=>{const _0x1dfbff=_0x358e57(_0x15ec46);return registerGlobalCacheKey(_0x1dfbff,_0x488608),readCacheJson(_0x1dfbff);},'write':(_0x654757,_0x16ee17)=>{const _0x514f2f=_0x358e57(_0x16ee17);registerGlobalCacheKey(_0x514f2f,_0x488608),writeCacheJson(_0x514f2f,_0x654757);},'clear':_0x2ed272=>{const _0x33911c=_0x358e57(_0x2ed272);clearCache(_0x33911c);},'exists':_0x33dddb=>{const _0x40e20c=_0x358e57(_0x33dddb);return cacheExists(_0x40e20c);},'path':_0x20c62c=>{const _0x5d90b3=_0x358e57(_0x20c62c);return getGlobalCachePath(_0x5d90b3);}};}export function clearGlobalRegistry(){const _0x12d192=a173_0xfd21;registry[_0x12d192(0x17c)]();}
1
+ function a173_0x1675(_0x4e9a5f,_0x56ac1a){_0x4e9a5f=_0x4e9a5f-0xe2;const _0x5f100d=a173_0x5f10();let _0x167593=_0x5f100d[_0x4e9a5f];return _0x167593;}(function(_0x5d350a,_0x2603a1){const _0x2c29d8=a173_0x1675,_0x5ea072=_0x5d350a();while(!![]){try{const _0x442052=-parseInt(_0x2c29d8(0xf3))/0x1+-parseInt(_0x2c29d8(0xe8))/0x2*(parseInt(_0x2c29d8(0xe2))/0x3)+parseInt(_0x2c29d8(0xf1))/0x4+-parseInt(_0x2c29d8(0xf0))/0x5*(-parseInt(_0x2c29d8(0xec))/0x6)+parseInt(_0x2c29d8(0xf2))/0x7*(-parseInt(_0x2c29d8(0xf5))/0x8)+parseInt(_0x2c29d8(0xf6))/0x9*(-parseInt(_0x2c29d8(0xe5))/0xa)+parseInt(_0x2c29d8(0xe9))/0xb*(parseInt(_0x2c29d8(0xe4))/0xc);if(_0x442052===_0x2603a1)break;else _0x5ea072['push'](_0x5ea072['shift']());}catch(_0x38fcdc){_0x5ea072['push'](_0x5ea072['shift']());}}}(a173_0x5f10,0x77f4b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a173_0x5f10(){const _0x33b27d=['set','1366WxSfRC','11GlWBMl','{profile}','stringify','414iIKYJO','trim','utf-8','clear','20845OsAGph','2626700YYOItn','48846lmzonj','855164hrQRjx','\x22\x20already\x20registered\x20by\x20\x22','360YBmAgR','99sCMNex','3297hxlJTG','.cache','25142820kBekTG','571310OxyDbw','tdx'];a173_0x5f10=function(){return _0x33b27d;};return a173_0x5f10();}import{homedir}from'os';export function getGlobalCacheDir(){const _0x264fd9=a173_0x1675;return process.env.TDX_CACHE_DIR||join(homedir(),_0x264fd9(0xe3),_0x264fd9(0xe6));}const registry=new Map();export function registerGlobalCacheKey(_0x3422b1,_0x22e591){const _0x54787f=a173_0x1675,_0x2d76bc=registry['get'](_0x3422b1);if(_0x2d76bc&&_0x2d76bc!==_0x22e591)throw new Error('Global\x20cache\x20key\x20\x22'+_0x3422b1+_0x54787f(0xf4)+_0x2d76bc+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x22e591+'\x22');registry[_0x54787f(0xe7)](_0x3422b1,_0x22e591);}export function getGlobalCachePath(_0x614340){return join(getGlobalCacheDir(),_0x614340);}function ensureGlobalCacheDir(){const _0x4ac2d1=getGlobalCacheDir();!existsSync(_0x4ac2d1)&&mkdirSync(_0x4ac2d1,{'recursive':!![]});}function readCacheJson(_0x5e78d6){const _0x564bce=getGlobalCachePath(_0x5e78d6);if(!existsSync(_0x564bce))return undefined;try{const _0x364486=readFileSync(_0x564bce,'utf-8');return JSON['parse'](_0x364486);}catch{return undefined;}}function writeCacheJson(_0xda72e6,_0x36b4b5){const _0x5a920f=a173_0x1675;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xda72e6),JSON[_0x5a920f(0xeb)](_0x36b4b5,null,0x2),'utf-8');}function readCacheText(_0x24ce06){const _0x560a19=a173_0x1675,_0x4355a5=getGlobalCachePath(_0x24ce06);if(!existsSync(_0x4355a5))return undefined;try{return readFileSync(_0x4355a5,_0x560a19(0xee));}catch{return undefined;}}function writeCacheText(_0x1eafc9,_0x2ddd7c){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1eafc9),_0x2ddd7c,'utf-8');}function clearCache(_0xb9f25d){const _0x13ce75=getGlobalCachePath(_0xb9f25d);if(existsSync(_0x13ce75))try{unlinkSync(_0x13ce75);}catch{}}function cacheExists(_0x12b55d){return existsSync(getGlobalCachePath(_0x12b55d));}export function createGlobalCache(_0x4bffc5,_0x4d9a57){return registerGlobalCacheKey(_0x4bffc5,_0x4d9a57),{'read':()=>readCacheJson(_0x4bffc5),'write':_0x232cab=>writeCacheJson(_0x4bffc5,_0x232cab),'clear':()=>clearCache(_0x4bffc5),'exists':()=>cacheExists(_0x4bffc5),'path':()=>getGlobalCachePath(_0x4bffc5)};}export function createGlobalTextCache(_0x5ef701,_0xaa14f1){const _0x1289ff=a173_0x1675;return registerGlobalCacheKey(_0x5ef701,_0xaa14f1),{'read':()=>readCacheText(_0x5ef701)?.[_0x1289ff(0xed)]()||undefined,'write':_0x2a0894=>writeCacheText(_0x5ef701,_0x2a0894),'clear':()=>clearCache(_0x5ef701),'exists':()=>cacheExists(_0x5ef701),'path':()=>getGlobalCachePath(_0x5ef701)};}export function createProfileCache(_0x3d9277,_0x58f8e7){const _0x2b8eae=_0x2c5079=>{const _0x142efe=a173_0x1675,_0x3c0b06=_0x2c5079||'default';return _0x3d9277['replace'](_0x142efe(0xea),_0x3c0b06);};return{'read':_0x4a42ec=>{const _0x5bf97e=_0x2b8eae(_0x4a42ec);return registerGlobalCacheKey(_0x5bf97e,_0x58f8e7),readCacheJson(_0x5bf97e);},'write':(_0x1f2c99,_0x14584c)=>{const _0x58ed7c=_0x2b8eae(_0x1f2c99);registerGlobalCacheKey(_0x58ed7c,_0x58f8e7),writeCacheJson(_0x58ed7c,_0x14584c);},'clear':_0x561dcb=>{const _0x2264c5=_0x2b8eae(_0x561dcb);clearCache(_0x2264c5);},'exists':_0x5a71c8=>{const _0x671ab3=_0x2b8eae(_0x5a71c8);return cacheExists(_0x671ab3);},'path':_0x9fbdb=>{const _0x2d52c8=_0x2b8eae(_0x9fbdb);return getGlobalCachePath(_0x2d52c8);}};}export function createOptionalProfileCache(_0x7bfbb2,_0x1e3b41,_0x28c69b={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x28c69b,_0x5c7354=_0x433637=>{return _0x433637?''+_0x7bfbb2+profileSeparator+_0x433637+suffix:''+_0x7bfbb2+suffix;};return{'read':_0xe44dec=>{const _0x6f7a8e=_0x5c7354(_0xe44dec);return registerGlobalCacheKey(_0x6f7a8e,_0x1e3b41),readCacheJson(_0x6f7a8e);},'write':(_0x3289e4,_0x545fe7)=>{const _0x49765e=_0x5c7354(_0x545fe7);registerGlobalCacheKey(_0x49765e,_0x1e3b41),writeCacheJson(_0x49765e,_0x3289e4);},'clear':_0x5023ec=>{const _0x21f234=_0x5c7354(_0x5023ec);clearCache(_0x21f234);},'exists':_0x49e73b=>{const _0x1fa24a=_0x5c7354(_0x49e73b);return cacheExists(_0x1fa24a);},'path':_0x393df8=>{const _0x3ca395=_0x5c7354(_0x393df8);return getGlobalCachePath(_0x3ca395);}};}export function clearGlobalRegistry(){const _0x8bd21b=a173_0x1675;registry[_0x8bd21b(0xef)]();}
@@ -1 +1 @@
1
- function a174_0x247e(_0x1e92ff,_0x313354){_0x1e92ff=_0x1e92ff-0x12b;const _0x46e8a8=a174_0x46e8();let _0x247eb3=_0x46e8a8[_0x1e92ff];return _0x247eb3;}(function(_0x2750be,_0x40c3f2){const _0xe6a673=a174_0x247e,_0x2aff28=_0x2750be();while(!![]){try{const _0x8b5bcd=-parseInt(_0xe6a673(0x139))/0x1*(-parseInt(_0xe6a673(0x131))/0x2)+-parseInt(_0xe6a673(0x134))/0x3*(-parseInt(_0xe6a673(0x12d))/0x4)+-parseInt(_0xe6a673(0x135))/0x5+parseInt(_0xe6a673(0x13b))/0x6+-parseInt(_0xe6a673(0x132))/0x7+-parseInt(_0xe6a673(0x130))/0x8+-parseInt(_0xe6a673(0x12c))/0x9*(-parseInt(_0xe6a673(0x13a))/0xa);if(_0x8b5bcd===_0x40c3f2)break;else _0x2aff28['push'](_0x2aff28['shift']());}catch(_0xbc76b8){_0x2aff28['push'](_0x2aff28['shift']());}}}(a174_0x46e8,0xd0ca4));function a174_0x46e8(){const _0x406ba7=['code','Failed\x20to\x20load\x20JSON:\x20','INTERNAL','Invalid\x20JSON\x20in\x20file\x20\x27','message','95301BoyGDe','14676bXMiah','INVALID_ARGUMENT','parse','2411792JHzSKi','362ITVyof','6633396yitnUQ','PERMISSION_DENIED','1323cnhQQT','3467800MuSFbx','\x27:\x20','NOT_FOUND','utf-8','1573vQQuLr','730PpsBMm','732762QRMeTE'];a174_0x46e8=function(){return _0x406ba7;};return a174_0x46e8();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x7547e4,_0x1885bd){const _0x1b4713=a174_0x247e;try{if(_0x1885bd){const _0x4f9572=await readFile(_0x7547e4,_0x1b4713(0x138));try{return JSON[_0x1b4713(0x12f)](_0x4f9572);}catch(_0xc7670a){throw new SDKError(ErrorCode[_0x1b4713(0x12e)],_0x1b4713(0x13f)+_0x7547e4+_0x1b4713(0x136)+(_0xc7670a instanceof Error?_0xc7670a[_0x1b4713(0x12b)]:String(_0xc7670a)));}}else try{return JSON[_0x1b4713(0x12f)](_0x7547e4);}catch(_0x417aa2){throw new SDKError(ErrorCode[_0x1b4713(0x12e)],'Invalid\x20JSON\x20string:\x20'+(_0x417aa2 instanceof Error?_0x417aa2['message']:String(_0x417aa2)));}}catch(_0x53db2e){if(_0x53db2e instanceof SDKError)throw _0x53db2e;if(_0x53db2e instanceof Error&&_0x1b4713(0x13c)in _0x53db2e){const _0x4b8b6d=_0x53db2e;if(_0x4b8b6d['code']==='ENOENT')throw new SDKError(ErrorCode[_0x1b4713(0x137)],'File\x20not\x20found:\x20'+_0x7547e4);else{if(_0x4b8b6d[_0x1b4713(0x13c)]==='EACCES')throw new SDKError(ErrorCode[_0x1b4713(0x133)],'Permission\x20denied\x20reading\x20file:\x20'+_0x7547e4);}}throw new SDKError(ErrorCode[_0x1b4713(0x13e)],_0x1b4713(0x13d)+(_0x53db2e instanceof Error?_0x53db2e['message']:String(_0x53db2e)));}}export async function loadJSONFromOptions(_0xb8fe13,_0xc26989){const _0x18b1c2=a174_0x247e;if(_0xb8fe13&&_0xc26989)throw new SDKError(ErrorCode[_0x18b1c2(0x12e)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0xb8fe13)return await loadJSON(_0xb8fe13,![]);if(_0xc26989)return await loadJSON(_0xc26989,!![]);return undefined;}
1
+ (function(_0x11d363,_0x563b1b){const _0x27c13b=a174_0xe4f4,_0x5e6906=_0x11d363();while(!![]){try{const _0x2a86ae=-parseInt(_0x27c13b(0x76))/0x1+parseInt(_0x27c13b(0x7e))/0x2*(parseInt(_0x27c13b(0x87))/0x3)+parseInt(_0x27c13b(0x7f))/0x4+-parseInt(_0x27c13b(0x73))/0x5*(-parseInt(_0x27c13b(0x79))/0x6)+-parseInt(_0x27c13b(0x77))/0x7*(-parseInt(_0x27c13b(0x71))/0x8)+parseInt(_0x27c13b(0x85))/0x9*(parseInt(_0x27c13b(0x84))/0xa)+-parseInt(_0x27c13b(0x82))/0xb;if(_0x2a86ae===_0x563b1b)break;else _0x5e6906['push'](_0x5e6906['shift']());}catch(_0x395a24){_0x5e6906['push'](_0x5e6906['shift']());}}}(a174_0x3db2,0x78dfd));function a174_0xe4f4(_0x1f8f84,_0x3c0c86){_0x1f8f84=_0x1f8f84-0x71;const _0x3db262=a174_0x3db2();let _0xe4f4d0=_0x3db262[_0x1f8f84];return _0xe4f4d0;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x124d28,_0x40ae50){const _0x1f6528=a174_0xe4f4;try{if(_0x40ae50){const _0x2f6b9c=await readFile(_0x124d28,_0x1f6528(0x72));try{return JSON[_0x1f6528(0x80)](_0x2f6b9c);}catch(_0xc8b634){throw new SDKError(ErrorCode[_0x1f6528(0x7b)],_0x1f6528(0x88)+_0x124d28+'\x27:\x20'+(_0xc8b634 instanceof Error?_0xc8b634[_0x1f6528(0x75)]:String(_0xc8b634)));}}else try{return JSON[_0x1f6528(0x80)](_0x124d28);}catch(_0x3faf56){throw new SDKError(ErrorCode[_0x1f6528(0x7b)],_0x1f6528(0x7c)+(_0x3faf56 instanceof Error?_0x3faf56['message']:String(_0x3faf56)));}}catch(_0x1bb4a7){if(_0x1bb4a7 instanceof SDKError)throw _0x1bb4a7;if(_0x1bb4a7 instanceof Error&&_0x1f6528(0x7d)in _0x1bb4a7){const _0x2c6876=_0x1bb4a7;if(_0x2c6876[_0x1f6528(0x7d)]===_0x1f6528(0x81))throw new SDKError(ErrorCode[_0x1f6528(0x86)],_0x1f6528(0x89)+_0x124d28);else{if(_0x2c6876[_0x1f6528(0x7d)]===_0x1f6528(0x7a))throw new SDKError(ErrorCode[_0x1f6528(0x8a)],_0x1f6528(0x83)+_0x124d28);}}throw new SDKError(ErrorCode[_0x1f6528(0x74)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x1bb4a7 instanceof Error?_0x1bb4a7[_0x1f6528(0x75)]:String(_0x1bb4a7)));}}export async function loadJSONFromOptions(_0x5379ad,_0x394545){const _0x2b2c5c=a174_0xe4f4;if(_0x5379ad&&_0x394545)throw new SDKError(ErrorCode[_0x2b2c5c(0x7b)],_0x2b2c5c(0x78));if(_0x5379ad)return await loadJSON(_0x5379ad,![]);if(_0x394545)return await loadJSON(_0x394545,!![]);return undefined;}function a174_0x3db2(){const _0x397b53=['Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','12066bitSoY','EACCES','INVALID_ARGUMENT','Invalid\x20JSON\x20string:\x20','code','12212LAJVHb','90504zQRJMY','parse','ENOENT','9105261DlLaLr','Permission\x20denied\x20reading\x20file:\x20','5140670pZAVyk','9WfWcEs','NOT_FOUND','60VpWpbo','Invalid\x20JSON\x20in\x20file\x20\x27','File\x20not\x20found:\x20','PERMISSION_DENIED','640BMqYGV','utf-8','275IUprWB','INTERNAL','message','9206hdRdLy','49231FKFNIx'];a174_0x3db2=function(){return _0x397b53;};return a174_0x3db2();}
@@ -1 +1 @@
1
- const a175_0x35d21f=a175_0xb38a;(function(_0x49dcf8,_0x371879){const _0x2f2ac0=a175_0xb38a,_0x35b25b=_0x49dcf8();while(!![]){try{const _0x4c8cdd=parseInt(_0x2f2ac0(0xd9))/0x1*(parseInt(_0x2f2ac0(0xe8))/0x2)+parseInt(_0x2f2ac0(0xe9))/0x3+-parseInt(_0x2f2ac0(0xda))/0x4+-parseInt(_0x2f2ac0(0xdc))/0x5*(-parseInt(_0x2f2ac0(0xd8))/0x6)+parseInt(_0x2f2ac0(0xdb))/0x7*(parseInt(_0x2f2ac0(0xe4))/0x8)+parseInt(_0x2f2ac0(0xe7))/0x9+-parseInt(_0x2f2ac0(0xe6))/0xa*(parseInt(_0x2f2ac0(0xe5))/0xb);if(_0x4c8cdd===_0x371879)break;else _0x35b25b['push'](_0x35b25b['shift']());}catch(_0x92006d){_0x35b25b['push'](_0x35b25b['shift']());}}}(a175_0x237f,0x4a375));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a175_0x35d21f(0xe3),registry=new Map();export function registerCacheKey(_0x1e7297,_0x3fbb43){const _0x350e29=a175_0x35d21f,_0x554f1a=registry[_0x350e29(0xd7)](_0x1e7297);if(_0x554f1a&&_0x554f1a!==_0x3fbb43)throw new Error('Cache\x20key\x20\x22'+_0x1e7297+'\x22\x20already\x20registered\x20by\x20\x22'+_0x554f1a+_0x350e29(0xd6)+_0x3fbb43+'\x22');registry[_0x350e29(0xd5)](_0x1e7297,_0x3fbb43);}function a175_0xb38a(_0x552fca,_0x3da040){_0x552fca=_0x552fca-0xd4;const _0x237f97=a175_0x237f();let _0xb38acc=_0x237f97[_0x552fca];return _0xb38acc;}export function getCacheDir(){const _0x2f0189=a175_0x35d21f,_0x5b6756=process[_0x2f0189(0xde)](),_0x894c9c=_0x5b6756===parse(_0x5b6756)[_0x2f0189(0xd4)]?homedir():_0x5b6756;return join(_0x894c9c,LOCAL_CACHE_DIR);}export function getCachePath(_0x5806df){return join(getCacheDir(),_0x5806df);}function ensureCacheDir(){const _0x3276f0=getCacheDir();!existsSync(_0x3276f0)&&mkdirSync(_0x3276f0,{'recursive':!![]});}function readCacheJson(_0x1fabed){const _0x4f7b43=a175_0x35d21f,_0x17b2dd=getCachePath(_0x1fabed);if(!existsSync(_0x17b2dd))return undefined;try{const _0x253f99=readFileSync(_0x17b2dd,'utf-8');return JSON[_0x4f7b43(0xe2)](_0x253f99);}catch{return undefined;}}function writeCacheJson(_0x58bd1d,_0x4c17d1){const _0x3fa13a=a175_0x35d21f;ensureCacheDir(),writeFileSync(getCachePath(_0x58bd1d),JSON[_0x3fa13a(0xe1)](_0x4c17d1,null,0x2),_0x3fa13a(0xdf));}function readCacheText(_0xe1a79){const _0x222078=getCachePath(_0xe1a79);if(!existsSync(_0x222078))return undefined;try{return readFileSync(_0x222078,'utf-8');}catch{return undefined;}}function writeCacheText(_0x636c51,_0xf993ca){const _0x14e8c4=a175_0x35d21f;ensureCacheDir(),writeFileSync(getCachePath(_0x636c51),_0xf993ca,_0x14e8c4(0xdf));}function clearCache(_0x17b46b){const _0x1c337e=getCachePath(_0x17b46b);if(existsSync(_0x1c337e))try{unlinkSync(_0x1c337e);}catch{}}function cacheExists(_0x47c659){return existsSync(getCachePath(_0x47c659));}export function createCache(_0xe43b60,_0xc502c0){return registerCacheKey(_0xe43b60,_0xc502c0),{'read':()=>readCacheJson(_0xe43b60),'write':_0x5f3cda=>writeCacheJson(_0xe43b60,_0x5f3cda),'clear':()=>clearCache(_0xe43b60),'exists':()=>cacheExists(_0xe43b60),'path':()=>getCachePath(_0xe43b60)};}function a175_0x237f(){const _0x15fb2c=['538338takIqZ','root','set','\x22,\x20cannot\x20register\x20for\x20\x22','get','3478452UOAlLR','2630JrQhOg','2404428WagUWg','7PmtuWN','5YKrUPT','trim','cwd','utf-8','clear','stringify','parse','.cache/tdx','1247128LjFLnT','11TbbSoE','4212730KyGlEs','2115720uHFzRG','134JwWMhV'];a175_0x237f=function(){return _0x15fb2c;};return a175_0x237f();}export function createTextCache(_0x351578,_0xe29bba){const _0x552420=a175_0x35d21f;return registerCacheKey(_0x351578,_0xe29bba),{'read':()=>readCacheText(_0x351578)?.[_0x552420(0xdd)]()||undefined,'write':_0x27bca0=>writeCacheText(_0x351578,_0x27bca0),'clear':()=>clearCache(_0x351578),'exists':()=>cacheExists(_0x351578),'path':()=>getCachePath(_0x351578)};}export function clearRegistry(){const _0x3c3abb=a175_0x35d21f;registry[_0x3c3abb(0xe0)]();}
1
+ (function(_0x4bb067,_0x37fb8c){const _0x3e32b4=a175_0x2202,_0x20924d=_0x4bb067();while(!![]){try{const _0x1143a7=-parseInt(_0x3e32b4(0xc9))/0x1*(parseInt(_0x3e32b4(0xc2))/0x2)+parseInt(_0x3e32b4(0xbc))/0x3*(parseInt(_0x3e32b4(0xba))/0x4)+-parseInt(_0x3e32b4(0xb8))/0x5+-parseInt(_0x3e32b4(0xc6))/0x6+-parseInt(_0x3e32b4(0xbb))/0x7+-parseInt(_0x3e32b4(0xc4))/0x8+parseInt(_0x3e32b4(0xc0))/0x9*(parseInt(_0x3e32b4(0xbe))/0xa);if(_0x1143a7===_0x37fb8c)break;else _0x20924d['push'](_0x20924d['shift']());}catch(_0x15b923){_0x20924d['push'](_0x20924d['shift']());}}}(a175_0x225a,0x68459));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a175_0x225a(){const _0x3ef5a3=['trim','3801906EnPvNN','set','stringify','13901RwAUDf','Cache\x20key\x20\x22','1618570rsrVkn','root','1664DQhWoL','1732017BTKXBV','837SIyhlB','utf-8','23470mCVFSC','clear','8145GWYtWv','\x22,\x20cannot\x20register\x20for\x20\x22','6oQewHb','parse','4532024woOwaa'];a175_0x225a=function(){return _0x3ef5a3;};return a175_0x225a();}function a175_0x2202(_0x3b4683,_0x1b6dea){_0x3b4683=_0x3b4683-0xb8;const _0x225a11=a175_0x225a();let _0x22027b=_0x225a11[_0x3b4683];return _0x22027b;}import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x569b04,_0x30b6a2){const _0xdd2143=a175_0x2202,_0x1a1849=registry['get'](_0x569b04);if(_0x1a1849&&_0x1a1849!==_0x30b6a2)throw new Error(_0xdd2143(0xca)+_0x569b04+'\x22\x20already\x20registered\x20by\x20\x22'+_0x1a1849+_0xdd2143(0xc1)+_0x30b6a2+'\x22');registry[_0xdd2143(0xc7)](_0x569b04,_0x30b6a2);}export function getCacheDir(){const _0x46c96b=a175_0x2202,_0x464168=process['cwd'](),_0x28baa7=_0x464168===parse(_0x464168)[_0x46c96b(0xb9)]?homedir():_0x464168;return join(_0x28baa7,LOCAL_CACHE_DIR);}export function getCachePath(_0x44d7f9){return join(getCacheDir(),_0x44d7f9);}function ensureCacheDir(){const _0x244cf8=getCacheDir();!existsSync(_0x244cf8)&&mkdirSync(_0x244cf8,{'recursive':!![]});}function readCacheJson(_0x18de13){const _0x21c0e1=a175_0x2202,_0xb171ed=getCachePath(_0x18de13);if(!existsSync(_0xb171ed))return undefined;try{const _0x33f74c=readFileSync(_0xb171ed,_0x21c0e1(0xbd));return JSON[_0x21c0e1(0xc3)](_0x33f74c);}catch{return undefined;}}function writeCacheJson(_0x36521e,_0x133168){const _0x427e0a=a175_0x2202;ensureCacheDir(),writeFileSync(getCachePath(_0x36521e),JSON[_0x427e0a(0xc8)](_0x133168,null,0x2),_0x427e0a(0xbd));}function readCacheText(_0x1da0df){const _0x572718=getCachePath(_0x1da0df);if(!existsSync(_0x572718))return undefined;try{return readFileSync(_0x572718,'utf-8');}catch{return undefined;}}function writeCacheText(_0x61d32e,_0x4683e9){const _0x24e729=a175_0x2202;ensureCacheDir(),writeFileSync(getCachePath(_0x61d32e),_0x4683e9,_0x24e729(0xbd));}function clearCache(_0x4a977e){const _0x98b2d9=getCachePath(_0x4a977e);if(existsSync(_0x98b2d9))try{unlinkSync(_0x98b2d9);}catch{}}function cacheExists(_0x46516a){return existsSync(getCachePath(_0x46516a));}export function createCache(_0x55daa2,_0x4709cb){return registerCacheKey(_0x55daa2,_0x4709cb),{'read':()=>readCacheJson(_0x55daa2),'write':_0x388d1f=>writeCacheJson(_0x55daa2,_0x388d1f),'clear':()=>clearCache(_0x55daa2),'exists':()=>cacheExists(_0x55daa2),'path':()=>getCachePath(_0x55daa2)};}export function createTextCache(_0x305163,_0x49a73c){const _0x471780=a175_0x2202;return registerCacheKey(_0x305163,_0x49a73c),{'read':()=>readCacheText(_0x305163)?.[_0x471780(0xc5)]()||undefined,'write':_0x3b01dd=>writeCacheText(_0x305163,_0x3b01dd),'clear':()=>clearCache(_0x305163),'exists':()=>cacheExists(_0x305163),'path':()=>getCachePath(_0x305163)};}export function clearRegistry(){const _0x542038=a175_0x2202;registry[_0x542038(0xbf)]();}
@@ -1 +1 @@
1
- const a176_0x1e5eeb=a176_0x4c98;(function(_0x5da667,_0x4ef2a7){const _0x1a507d=a176_0x4c98,_0x1cebf3=_0x5da667();while(!![]){try{const _0x558cd6=-parseInt(_0x1a507d(0x167))/0x1*(-parseInt(_0x1a507d(0x173))/0x2)+parseInt(_0x1a507d(0x179))/0x3+-parseInt(_0x1a507d(0x15c))/0x4*(parseInt(_0x1a507d(0x178))/0x5)+parseInt(_0x1a507d(0x15e))/0x6+-parseInt(_0x1a507d(0x15d))/0x7*(parseInt(_0x1a507d(0x172))/0x8)+-parseInt(_0x1a507d(0x168))/0x9+-parseInt(_0x1a507d(0x16a))/0xa*(-parseInt(_0x1a507d(0x15f))/0xb);if(_0x558cd6===_0x4ef2a7)break;else _0x1cebf3['push'](_0x1cebf3['shift']());}catch(_0x5ebbe9){_0x1cebf3['push'](_0x1cebf3['shift']());}}}(a176_0x10fa,0x46983));import a176_0x40653b from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a176_0x10fa(){const _0x39f0db=['colorLevel','cyan','ERROR','colors','16qTlSTC','81254ZdSDxp','chalk','message','DEBUG','red','5GdsAXf','987204qkRsxV','yellow','component','2218652hEUQVK','1823759nChYyH','2463126ViHpDB','8348351ogiYNC','WARN',']\x20[','blue','INFO','default','Chalk','dim','1rcTVlj','1568385TphVrA','TRACE','10PGAjZy','green','format','level'];a176_0x10fa=function(){return _0x39f0db;};return a176_0x10fa();}const chalkModule=a176_0x40653b,ChalkClass=chalkModule[a176_0x1e5eeb(0x165)]||chalkModule[a176_0x1e5eeb(0x164)]?.[a176_0x1e5eeb(0x165)];function a176_0x4c98(_0x22ff03,_0x40aa0c){_0x22ff03=_0x22ff03-0x15b;const _0x10fa73=a176_0x10fa();let _0x4c98e0=_0x10fa73[_0x22ff03];return _0x4c98e0;}export class DefaultLogFormatter{[a176_0x1e5eeb(0x171)];[a176_0x1e5eeb(0x174)];constructor(_0xe4be43={}){const _0x1c5a07=a176_0x1e5eeb;this[_0x1c5a07(0x171)]=_0xe4be43[_0x1c5a07(0x171)]??![],this[_0x1c5a07(0x174)]=_0xe4be43[_0x1c5a07(0x171)]&&ChalkClass?new ChalkClass({'level':0x3}):a176_0x40653b;}[a176_0x1e5eeb(0x16c)](_0x1ef046){const _0x6d5cd5=a176_0x1e5eeb,_0x445c5f=formatTimestamp(_0x1ef046['timestamp']),_0x5938e5=logLevelToString(_0x1ef046[_0x6d5cd5(0x16d)]);if(!this[_0x6d5cd5(0x171)])return _0x445c5f+'\x20['+_0x5938e5+_0x6d5cd5(0x161)+_0x1ef046[_0x6d5cd5(0x15b)]+']\x20'+_0x1ef046[_0x6d5cd5(0x175)];const _0x4a5423=this[_0x6d5cd5(0x174)][_0x6d5cd5(0x166)](_0x445c5f),_0x368821=this[_0x6d5cd5(0x16e)](_0x5938e5,_0x1ef046[_0x6d5cd5(0x16d)]),_0x3e5a29=this[_0x6d5cd5(0x174)][_0x6d5cd5(0x162)]('['+_0x1ef046[_0x6d5cd5(0x15b)]+']');return _0x4a5423+'\x20'+_0x368821+'\x20'+_0x3e5a29+'\x20'+_0x1ef046[_0x6d5cd5(0x175)];}[a176_0x1e5eeb(0x16e)](_0x237b4c,_0x1c097b){const _0x48ffa1=a176_0x1e5eeb;switch(_0x1c097b){case LogLevel[_0x48ffa1(0x169)]:return this[_0x48ffa1(0x174)]['gray']('['+_0x237b4c+']');case LogLevel[_0x48ffa1(0x176)]:return this[_0x48ffa1(0x174)][_0x48ffa1(0x16b)]('['+_0x237b4c+']');case LogLevel[_0x48ffa1(0x163)]:return this[_0x48ffa1(0x174)][_0x48ffa1(0x16f)]('['+_0x237b4c+']');case LogLevel[_0x48ffa1(0x160)]:return this[_0x48ffa1(0x174)][_0x48ffa1(0x17a)]('['+_0x237b4c+']');case LogLevel[_0x48ffa1(0x170)]:return this[_0x48ffa1(0x174)][_0x48ffa1(0x177)]('['+_0x237b4c+']');default:return'['+_0x237b4c+']';}}}
1
+ const a176_0x57c26e=a176_0x190b;function a176_0x2fa7(){const _0xf16c0d=['374415qvuIWr','INFO','43704Bsocph','green','component','format','cyan','TRACE','gray','12uKbEcl','91250NvafMA','level','chalk','36xvCBgB','DEBUG','WARN','dim','colorLevel','colors','Chalk','1525808gVKviL','message','39622594rNzgUM','854GDChAL','41osPCyk','1255GIfEbd','red','default','11756750BJBzef','timestamp','23956jUZyME','ERROR'];a176_0x2fa7=function(){return _0xf16c0d;};return a176_0x2fa7();}(function(_0x579f7f,_0x389265){const _0x29c131=a176_0x190b,_0x253bd6=_0x579f7f();while(!![]){try{const _0x2999d0=-parseInt(_0x29c131(0x196))/0x1*(-parseInt(_0x29c131(0x1a8))/0x2)+-parseInt(_0x29c131(0x19e))/0x3+parseInt(_0x29c131(0x19c))/0x4*(parseInt(_0x29c131(0x197))/0x5)+-parseInt(_0x29c131(0x1a0))/0x6*(-parseInt(_0x29c131(0x195))/0x7)+-parseInt(_0x29c131(0x1b2))/0x8*(parseInt(_0x29c131(0x1ab))/0x9)+parseInt(_0x29c131(0x19a))/0xa+-parseInt(_0x29c131(0x1b4))/0xb*(parseInt(_0x29c131(0x1a7))/0xc);if(_0x2999d0===_0x389265)break;else _0x253bd6['push'](_0x253bd6['shift']());}catch(_0x1acbd4){_0x253bd6['push'](_0x253bd6['shift']());}}}(a176_0x2fa7,0xe78c8));import a176_0x1101e6 from'chalk';function a176_0x190b(_0x36ecd8,_0x1b30cd){_0x36ecd8=_0x36ecd8-0x195;const _0x2fa726=a176_0x2fa7();let _0x190bad=_0x2fa726[_0x36ecd8];return _0x190bad;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a176_0x1101e6,ChalkClass=chalkModule[a176_0x57c26e(0x1b1)]||chalkModule[a176_0x57c26e(0x199)]?.[a176_0x57c26e(0x1b1)];export class DefaultLogFormatter{[a176_0x57c26e(0x1b0)];[a176_0x57c26e(0x1aa)];constructor(_0x121d87={}){const _0x57aca1=a176_0x57c26e;this[_0x57aca1(0x1b0)]=_0x121d87['colors']??![],this[_0x57aca1(0x1aa)]=_0x121d87[_0x57aca1(0x1b0)]&&ChalkClass?new ChalkClass({'level':0x3}):a176_0x1101e6;}[a176_0x57c26e(0x1a3)](_0x4b8f55){const _0x6b9ec7=a176_0x57c26e,_0x2fec92=formatTimestamp(_0x4b8f55[_0x6b9ec7(0x19b)]),_0x2cf7d4=logLevelToString(_0x4b8f55[_0x6b9ec7(0x1a9)]);if(!this['colors'])return _0x2fec92+'\x20['+_0x2cf7d4+']\x20['+_0x4b8f55[_0x6b9ec7(0x1a2)]+']\x20'+_0x4b8f55[_0x6b9ec7(0x1b3)];const _0x1d9be7=this[_0x6b9ec7(0x1aa)][_0x6b9ec7(0x1ae)](_0x2fec92),_0x34f40c=this['colorLevel'](_0x2cf7d4,_0x4b8f55[_0x6b9ec7(0x1a9)]),_0x47dc5e=this[_0x6b9ec7(0x1aa)]['blue']('['+_0x4b8f55[_0x6b9ec7(0x1a2)]+']');return _0x1d9be7+'\x20'+_0x34f40c+'\x20'+_0x47dc5e+'\x20'+_0x4b8f55[_0x6b9ec7(0x1b3)];}[a176_0x57c26e(0x1af)](_0x3e01c5,_0x5dc266){const _0xeaf23c=a176_0x57c26e;switch(_0x5dc266){case LogLevel[_0xeaf23c(0x1a5)]:return this[_0xeaf23c(0x1aa)][_0xeaf23c(0x1a6)]('['+_0x3e01c5+']');case LogLevel[_0xeaf23c(0x1ac)]:return this[_0xeaf23c(0x1aa)][_0xeaf23c(0x1a1)]('['+_0x3e01c5+']');case LogLevel[_0xeaf23c(0x19f)]:return this['chalk'][_0xeaf23c(0x1a4)]('['+_0x3e01c5+']');case LogLevel[_0xeaf23c(0x1ad)]:return this[_0xeaf23c(0x1aa)]['yellow']('['+_0x3e01c5+']');case LogLevel[_0xeaf23c(0x19d)]:return this[_0xeaf23c(0x1aa)][_0xeaf23c(0x198)]('['+_0x3e01c5+']');default:return'['+_0x3e01c5+']';}}}
@@ -1 +1 @@
1
- function a177_0x3d29(_0x323062,_0x5c9f41){_0x323062=_0x323062-0xc7;var _0x2eb1e3=a177_0x2eb1();var _0x3d29b0=_0x2eb1e3[_0x323062];return _0x3d29b0;}function a177_0x2eb1(){var _0x5a5370=['204wGBcfV','760092paDYNC','2672088jGEZZM','4SmGqLp','125706TSQeoO','3035775YnITJo','166441LnCslv','8508411zFrDzm','6526JuRStT','804fcsgpM','10OwdVeS','301fJBfXe'];a177_0x2eb1=function(){return _0x5a5370;};return a177_0x2eb1();}(function(_0x4bafe7,_0x26243e){var _0x225667=a177_0x3d29,_0x2c4a31=_0x4bafe7();while(!![]){try{var _0x1f02bb=-parseInt(_0x225667(0xcf))/0x1+parseInt(_0x225667(0xca))/0x2*(parseInt(_0x225667(0xcb))/0x3)+parseInt(_0x225667(0xd1))/0x4*(parseInt(_0x225667(0xc7))/0x5)+-parseInt(_0x225667(0xd2))/0x6*(-parseInt(_0x225667(0xcd))/0x7)+-parseInt(_0x225667(0xd0))/0x8+parseInt(_0x225667(0xc9))/0x9*(-parseInt(_0x225667(0xcc))/0xa)+parseInt(_0x225667(0xc8))/0xb*(parseInt(_0x225667(0xce))/0xc);if(_0x1f02bb===_0x26243e)break;else _0x2c4a31['push'](_0x2c4a31['shift']());}catch(_0x2c9eb3){_0x2c4a31['push'](_0x2c4a31['shift']());}}}(a177_0x2eb1,0x928d5));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x359ab5,_0x327b07){var _0x266e95=a177_0x5a1e,_0x386bc9=_0x359ab5();while(!![]){try{var _0x509c92=-parseInt(_0x266e95(0xdb))/0x1*(-parseInt(_0x266e95(0xd9))/0x2)+-parseInt(_0x266e95(0xd3))/0x3+-parseInt(_0x266e95(0xd4))/0x4*(-parseInt(_0x266e95(0xd1))/0x5)+parseInt(_0x266e95(0xda))/0x6*(-parseInt(_0x266e95(0xd7))/0x7)+parseInt(_0x266e95(0xd5))/0x8+-parseInt(_0x266e95(0xd2))/0x9+-parseInt(_0x266e95(0xd8))/0xa*(parseInt(_0x266e95(0xd6))/0xb);if(_0x509c92===_0x327b07)break;else _0x386bc9['push'](_0x386bc9['shift']());}catch(_0x3ed1c9){_0x386bc9['push'](_0x386bc9['shift']());}}}(a177_0x5753,0xa5aa4));function a177_0x5a1e(_0x158787,_0x2cc023){_0x158787=_0x158787-0xd1;var _0x57538e=a177_0x5753();var _0x5a1e07=_0x57538e[_0x158787];return _0x5a1e07;}function a177_0x5753(){var _0x352bab=['1825860JMmBeA','13116CKAott','9901384TqwaKr','1399376CdRnnG','11088byrReE','70IQsWLo','368uYWShL','2292bCsxeI','6379RGVzDd','1905eluAiO','7901316QOLVHo'];a177_0x5753=function(){return _0x352bab;};return a177_0x5753();}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a178_0x935aa6=a178_0x576e;(function(_0x4675e3,_0x3f4b8e){const _0x58df73=a178_0x576e,_0x6c954b=_0x4675e3();while(!![]){try{const _0x12c77c=-parseInt(_0x58df73(0x141))/0x1*(parseInt(_0x58df73(0x144))/0x2)+-parseInt(_0x58df73(0x140))/0x3+parseInt(_0x58df73(0x14c))/0x4+-parseInt(_0x58df73(0x142))/0x5*(parseInt(_0x58df73(0x152))/0x6)+parseInt(_0x58df73(0x14f))/0x7+parseInt(_0x58df73(0x153))/0x8*(parseInt(_0x58df73(0x146))/0x9)+-parseInt(_0x58df73(0x145))/0xa*(parseInt(_0x58df73(0x150))/0xb);if(_0x12c77c===_0x3f4b8e)break;else _0x6c954b['push'](_0x6c954b['shift']());}catch(_0x27a49d){_0x6c954b['push'](_0x6c954b['shift']());}}}(a178_0x4be0,0x6b911));import{LogLevel as a178_0x5578cc}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a178_0x4be0(){const _0x58e53f=['error','3448448xRyedr','minLevel','WARN','5722570vRtZtj','11Hzpznl','colors','42jpNBuc','33688kisIml','useStderr','2416959pvZZvs','9kXlIAV','213275LiSTml','handle','33066iQSVhO','70490EUkIDI','45aEjkdi','level','log','formatter','format'];a178_0x4be0=function(){return _0x58e53f;};return a178_0x4be0();}function a178_0x576e(_0x2d114a,_0x99497b){_0x2d114a=_0x2d114a-0x140;const _0x4be003=a178_0x4be0();let _0x576e2d=_0x4be003[_0x2d114a];return _0x576e2d;}export class ConsoleHandler{[a178_0x935aa6(0x14d)];[a178_0x935aa6(0x154)];[a178_0x935aa6(0x149)];constructor(_0x4337e2={}){const _0x4e3120=a178_0x935aa6;this[_0x4e3120(0x14d)]=_0x4337e2[_0x4e3120(0x14d)]??a178_0x5578cc[_0x4e3120(0x14e)],this[_0x4e3120(0x154)]=_0x4337e2[_0x4e3120(0x154)]??!![],this[_0x4e3120(0x149)]=new DefaultLogFormatter({'colors':_0x4337e2[_0x4e3120(0x151)]??!![]});}[a178_0x935aa6(0x143)](_0x5b411f){const _0x579e9d=a178_0x935aa6;if(_0x5b411f[_0x579e9d(0x147)]<this[_0x579e9d(0x14d)])return;const _0x3e7651=this['formatter'][_0x579e9d(0x14a)](_0x5b411f);this[_0x579e9d(0x154)]&&_0x5b411f[_0x579e9d(0x147)]>=a178_0x5578cc[_0x579e9d(0x14e)]?console[_0x579e9d(0x14b)](_0x3e7651):console[_0x579e9d(0x148)](_0x3e7651);}}
1
+ function a178_0x361d(_0x1aba5d,_0x67957c){_0x1aba5d=_0x1aba5d-0x100;const _0x27c5a1=a178_0x27c5();let _0x361d94=_0x27c5a1[_0x1aba5d];return _0x361d94;}const a178_0x246978=a178_0x361d;(function(_0x5a198e,_0x1a4ecd){const _0x4e47b0=a178_0x361d,_0x389f48=_0x5a198e();while(!![]){try{const _0x90ae7b=-parseInt(_0x4e47b0(0x113))/0x1*(parseInt(_0x4e47b0(0x10e))/0x2)+parseInt(_0x4e47b0(0x109))/0x3*(parseInt(_0x4e47b0(0x100))/0x4)+parseInt(_0x4e47b0(0x112))/0x5*(parseInt(_0x4e47b0(0x10a))/0x6)+parseInt(_0x4e47b0(0x101))/0x7+parseInt(_0x4e47b0(0x111))/0x8*(-parseInt(_0x4e47b0(0x110))/0x9)+-parseInt(_0x4e47b0(0x10c))/0xa+-parseInt(_0x4e47b0(0x106))/0xb*(-parseInt(_0x4e47b0(0x10d))/0xc);if(_0x90ae7b===_0x1a4ecd)break;else _0x389f48['push'](_0x389f48['shift']());}catch(_0x46e76c){_0x389f48['push'](_0x389f48['shift']());}}}(a178_0x27c5,0xccd24));import{LogLevel as a178_0x19de1d}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a178_0x246978(0x103)];[a178_0x246978(0x102)];[a178_0x246978(0x108)];constructor(_0x16cb66={}){const _0x368a58=a178_0x246978;this[_0x368a58(0x103)]=_0x16cb66[_0x368a58(0x103)]??a178_0x19de1d['WARN'],this['useStderr']=_0x16cb66[_0x368a58(0x102)]??!![],this[_0x368a58(0x108)]=new DefaultLogFormatter({'colors':_0x16cb66[_0x368a58(0x107)]??!![]});}[a178_0x246978(0x114)](_0x2ee3c0){const _0x55ffa5=a178_0x246978;if(_0x2ee3c0[_0x55ffa5(0x10b)]<this[_0x55ffa5(0x103)])return;const _0x464a1d=this[_0x55ffa5(0x108)]['format'](_0x2ee3c0);this[_0x55ffa5(0x102)]&&_0x2ee3c0[_0x55ffa5(0x10b)]>=a178_0x19de1d[_0x55ffa5(0x10f)]?console[_0x55ffa5(0x105)](_0x464a1d):console[_0x55ffa5(0x104)](_0x464a1d);}}function a178_0x27c5(){const _0x239d32=['WARN','6532830RtUnnP','8yufqBA','184620VuvLnS','100cFXsCi','handle','20JvxUKw','7960967nJJAIE','useStderr','minLevel','log','error','286zxihep','colors','formatter','850893CZhwkn','54yqhLGi','level','3456260QNpOjA','12504OJwklO','20088QgrcLB'];a178_0x27c5=function(){return _0x239d32;};return a178_0x27c5();}